@jnrs/shared 1.1.2 → 1.1.4

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 (265) hide show
  1. package/README.md +29 -6
  2. package/dist/index.d.ts +2 -2
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +2 -0
  5. package/dist/index.js.map +1 -1
  6. package/dist/locales/en.d.ts +57 -0
  7. package/dist/locales/en.d.ts.map +1 -0
  8. package/dist/locales/en.js +58 -0
  9. package/dist/locales/en.js.map +1 -0
  10. package/dist/locales/i18next.d.ts +4 -0
  11. package/dist/locales/i18next.d.ts.map +1 -0
  12. package/dist/locales/i18next.js +16 -0
  13. package/dist/locales/i18next.js.map +1 -0
  14. package/dist/locales/index.d.ts +3 -0
  15. package/dist/locales/index.d.ts.map +1 -0
  16. package/dist/locales/index.js +10 -0
  17. package/dist/locales/index.js.map +1 -0
  18. package/dist/locales/zhCn.d.ts +57 -0
  19. package/dist/locales/zhCn.d.ts.map +1 -0
  20. package/dist/locales/zhCn.js +58 -0
  21. package/dist/locales/zhCn.js.map +1 -0
  22. package/dist/mitt.d.ts +3 -0
  23. package/dist/mitt.d.ts.map +1 -0
  24. package/dist/mitt.js +6 -0
  25. package/dist/mitt.js.map +1 -0
  26. package/dist/styles/theme.scss +52 -0
  27. package/dist/types/base.d.ts +46 -0
  28. package/dist/types/base.d.ts.map +1 -0
  29. package/dist/utils/date.d.ts +5 -15
  30. package/dist/utils/date.d.ts.map +1 -1
  31. package/dist/utils/date.js +6 -17
  32. package/dist/utils/date.js.map +1 -1
  33. package/dist/utils/dict.d.ts +40 -0
  34. package/dist/utils/dict.d.ts.map +1 -0
  35. package/dist/utils/dict.js +61 -0
  36. package/dist/utils/dict.js.map +1 -0
  37. package/dist/utils/fullscreen.d.ts.map +1 -1
  38. package/dist/utils/fullscreen.js +4 -2
  39. package/dist/utils/fullscreen.js.map +1 -1
  40. package/dist/utils/index.d.ts +5 -0
  41. package/dist/utils/index.d.ts.map +1 -0
  42. package/dist/utils/permission.d.ts +2 -0
  43. package/dist/utils/permission.d.ts.map +1 -0
  44. package/dist/utils/permission.js +20 -0
  45. package/dist/utils/permission.js.map +1 -0
  46. package/dist/utils/validate.d.ts.map +1 -0
  47. package/dist/utils/validate.js.map +1 -0
  48. package/dist/{validator.d.ts → utils/validator.d.ts} +2 -2
  49. package/dist/utils/validator.d.ts.map +1 -0
  50. package/dist/utils/validator.js +129 -0
  51. package/dist/utils/validator.js.map +1 -0
  52. package/package.json +26 -10
  53. package/dist/date-fns.cjs +0 -11
  54. package/dist/date-fns.cjs.map +0 -1
  55. package/dist/index.cjs +0 -12
  56. package/dist/index.cjs.map +0 -1
  57. package/dist/lodash.cjs +0 -51
  58. package/dist/lodash.cjs.map +0 -1
  59. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/defaultOptions.cjs +0 -10
  60. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/defaultOptions.cjs.map +0 -1
  61. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/normalizeDates.cjs +0 -14
  62. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/normalizeDates.cjs.map +0 -1
  63. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constants.cjs +0 -35
  64. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constants.cjs.map +0 -1
  65. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constructFrom.cjs +0 -55
  66. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constructFrom.cjs.map +0 -1
  67. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameWeek.cjs +0 -57
  68. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameWeek.cjs.map +0 -1
  69. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.cjs +0 -13
  70. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.cjs.map +0 -1
  71. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.cjs +0 -67
  72. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.cjs.map +0 -1
  73. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.cjs +0 -62
  74. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.cjs.map +0 -1
  75. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.cjs +0 -25
  76. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.cjs.map +0 -1
  77. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatDistance.cjs +0 -201
  78. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatDistance.cjs.map +0 -1
  79. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatDistance.js +0 -199
  80. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatDistance.js.map +0 -1
  81. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatLong.cjs +0 -45
  82. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatLong.cjs.map +0 -1
  83. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatLong.js +0 -43
  84. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatLong.js.map +0 -1
  85. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatRelative.cjs +0 -16
  86. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatRelative.cjs.map +0 -1
  87. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatRelative.js +0 -14
  88. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatRelative.js.map +0 -1
  89. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/localize.cjs +0 -196
  90. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/localize.cjs.map +0 -1
  91. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/localize.js +0 -194
  92. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/localize.js.map +0 -1
  93. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/match.cjs +0 -139
  94. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/match.cjs.map +0 -1
  95. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/match.js +0 -137
  96. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/match.js.map +0 -1
  97. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de.cjs +0 -37
  98. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de.cjs.map +0 -1
  99. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de.js +0 -32
  100. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de.js.map +0 -1
  101. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs +0 -106
  102. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs.map +0 -1
  103. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatLong.cjs +0 -44
  104. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatLong.cjs.map +0 -1
  105. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs +0 -16
  106. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs.map +0 -1
  107. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/localize.cjs +0 -192
  108. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/localize.cjs.map +0 -1
  109. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/match.cjs +0 -137
  110. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/match.cjs.map +0 -1
  111. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US.cjs +0 -34
  112. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US.cjs.map +0 -1
  113. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatDistance.cjs +0 -106
  114. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatDistance.cjs.map +0 -1
  115. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatDistance.js +0 -104
  116. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatDistance.js.map +0 -1
  117. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatLong.cjs +0 -44
  118. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatLong.cjs.map +0 -1
  119. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatLong.js +0 -42
  120. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatLong.js.map +0 -1
  121. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatRelative.cjs +0 -30
  122. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatRelative.cjs.map +0 -1
  123. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatRelative.js +0 -28
  124. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatRelative.js.map +0 -1
  125. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/localize.cjs +0 -169
  126. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/localize.cjs.map +0 -1
  127. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/localize.js +0 -167
  128. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/localize.js.map +0 -1
  129. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/match.cjs +0 -143
  130. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/match.cjs.map +0 -1
  131. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/match.js +0 -141
  132. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/match.js.map +0 -1
  133. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es.cjs +0 -37
  134. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es.cjs.map +0 -1
  135. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es.js +0 -32
  136. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es.js.map +0 -1
  137. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatDistance.cjs +0 -105
  138. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatDistance.cjs.map +0 -1
  139. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatDistance.js +0 -103
  140. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatDistance.js.map +0 -1
  141. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatLong.cjs +0 -44
  142. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatLong.cjs.map +0 -1
  143. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatLong.js +0 -42
  144. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatLong.js.map +0 -1
  145. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatRelative.cjs +0 -16
  146. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatRelative.cjs.map +0 -1
  147. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatRelative.js +0 -14
  148. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatRelative.js.map +0 -1
  149. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/localize.cjs +0 -170
  150. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/localize.cjs.map +0 -1
  151. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/localize.js +0 -168
  152. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/localize.js.map +0 -1
  153. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/match.cjs +0 -138
  154. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/match.cjs.map +0 -1
  155. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/match.js +0 -136
  156. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/match.js.map +0 -1
  157. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr.cjs +0 -34
  158. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr.cjs.map +0 -1
  159. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr.js +0 -29
  160. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr.js.map +0 -1
  161. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatDistance.cjs +0 -120
  162. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatDistance.cjs.map +0 -1
  163. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatDistance.js +0 -118
  164. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatDistance.js.map +0 -1
  165. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatLong.cjs +0 -44
  166. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatLong.cjs.map +0 -1
  167. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatLong.js +0 -42
  168. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatLong.js.map +0 -1
  169. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatRelative.cjs +0 -17
  170. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatRelative.cjs.map +0 -1
  171. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatRelative.js +0 -15
  172. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatRelative.js.map +0 -1
  173. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/localize.cjs +0 -182
  174. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/localize.cjs.map +0 -1
  175. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/localize.js +0 -180
  176. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/localize.js.map +0 -1
  177. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/match.cjs +0 -123
  178. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/match.cjs.map +0 -1
  179. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/match.js +0 -121
  180. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/match.js.map +0 -1
  181. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja.cjs +0 -37
  182. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja.cjs.map +0 -1
  183. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja.js +0 -32
  184. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja.js.map +0 -1
  185. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatDistance.cjs +0 -106
  186. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatDistance.cjs.map +0 -1
  187. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatDistance.js +0 -104
  188. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatDistance.js.map +0 -1
  189. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatLong.cjs +0 -44
  190. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatLong.cjs.map +0 -1
  191. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatLong.js +0 -42
  192. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatLong.js.map +0 -1
  193. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatRelative.cjs +0 -16
  194. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatRelative.cjs.map +0 -1
  195. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatRelative.js +0 -14
  196. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatRelative.js.map +0 -1
  197. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/localize.cjs +0 -172
  198. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/localize.cjs.map +0 -1
  199. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/localize.js +0 -170
  200. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/localize.js.map +0 -1
  201. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/match.cjs +0 -120
  202. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/match.cjs.map +0 -1
  203. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/match.js +0 -118
  204. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/match.js.map +0 -1
  205. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko.cjs +0 -35
  206. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko.cjs.map +0 -1
  207. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko.js +0 -30
  208. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko.js.map +0 -1
  209. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatDistance.cjs +0 -251
  210. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatDistance.cjs.map +0 -1
  211. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatDistance.js +0 -249
  212. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatDistance.js.map +0 -1
  213. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatLong.cjs +0 -41
  214. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatLong.cjs.map +0 -1
  215. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatLong.js +0 -39
  216. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatLong.js.map +0 -1
  217. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatRelative.cjs +0 -93
  218. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatRelative.cjs.map +0 -1
  219. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatRelative.js +0 -91
  220. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatRelative.js.map +0 -1
  221. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/localize.cjs +0 -215
  222. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/localize.cjs.map +0 -1
  223. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/localize.js +0 -213
  224. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/localize.js.map +0 -1
  225. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/match.cjs +0 -143
  226. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/match.cjs.map +0 -1
  227. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/match.js +0 -141
  228. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/match.js.map +0 -1
  229. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru.cjs +0 -34
  230. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru.cjs.map +0 -1
  231. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru.js +0 -29
  232. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru.js.map +0 -1
  233. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/formatDistance.cjs +0 -106
  234. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/formatDistance.cjs.map +0 -1
  235. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/formatLong.cjs +0 -44
  236. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/formatLong.cjs.map +0 -1
  237. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/formatRelative.cjs +0 -36
  238. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/formatRelative.cjs.map +0 -1
  239. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/localize.cjs +0 -188
  240. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/localize.cjs.map +0 -1
  241. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/match.cjs +0 -135
  242. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/match.cjs.map +0 -1
  243. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN.cjs +0 -37
  244. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN.cjs.map +0 -1
  245. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfWeek.cjs +0 -59
  246. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfWeek.cjs.map +0 -1
  247. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/toDate.cjs +0 -52
  248. package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/toDate.cjs.map +0 -1
  249. package/dist/utils/date.cjs +0 -70
  250. package/dist/utils/date.cjs.map +0 -1
  251. package/dist/utils/fullscreen.cjs +0 -81
  252. package/dist/utils/fullscreen.cjs.map +0 -1
  253. package/dist/uuid.cjs +0 -15
  254. package/dist/uuid.cjs.map +0 -1
  255. package/dist/validate.cjs +0 -326
  256. package/dist/validate.cjs.map +0 -1
  257. package/dist/validate.d.ts.map +0 -1
  258. package/dist/validate.js.map +0 -1
  259. package/dist/validator.cjs +0 -173
  260. package/dist/validator.cjs.map +0 -1
  261. package/dist/validator.d.ts.map +0 -1
  262. package/dist/validator.js +0 -128
  263. package/dist/validator.js.map +0 -1
  264. /package/dist/{validate.d.ts → utils/validate.d.ts} +0 -0
  265. /package/dist/{validate.js → utils/validate.js} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.cjs","sources":["../../../../../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constants.js"],"sourcesContent":["/**\n * @module constants\n * @summary Useful constants\n * @description\n * Collection of useful date constants.\n *\n * The constants could be imported from `date-fns/constants`:\n *\n * ```ts\n * import { maxTime, minTime } from \"./constants/date-fns/constants\";\n *\n * function isAllowedTime(time) {\n * return time <= maxTime && time >= minTime;\n * }\n * ```\n */\n\n/**\n * @constant\n * @name daysInWeek\n * @summary Days in 1 week.\n */\nexport const daysInWeek = 7;\n\n/**\n * @constant\n * @name daysInYear\n * @summary Days in 1 year.\n *\n * @description\n * How many days in a year.\n *\n * One years equals 365.2425 days according to the formula:\n *\n * > Leap year occurs every 4 years, except for years that are divisible by 100 and not divisible by 400.\n * > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days\n */\nexport const daysInYear = 365.2425;\n\n/**\n * @constant\n * @name maxTime\n * @summary Maximum allowed time.\n *\n * @example\n * import { maxTime } from \"./constants/date-fns/constants\";\n *\n * const isValid = 8640000000000001 <= maxTime;\n * //=> false\n *\n * new Date(8640000000000001);\n * //=> Invalid Date\n */\nexport const maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000;\n\n/**\n * @constant\n * @name minTime\n * @summary Minimum allowed time.\n *\n * @example\n * import { minTime } from \"./constants/date-fns/constants\";\n *\n * const isValid = -8640000000000001 >= minTime;\n * //=> false\n *\n * new Date(-8640000000000001)\n * //=> Invalid Date\n */\nexport const minTime = -maxTime;\n\n/**\n * @constant\n * @name millisecondsInWeek\n * @summary Milliseconds in 1 week.\n */\nexport const millisecondsInWeek = 604800000;\n\n/**\n * @constant\n * @name millisecondsInDay\n * @summary Milliseconds in 1 day.\n */\nexport const millisecondsInDay = 86400000;\n\n/**\n * @constant\n * @name millisecondsInMinute\n * @summary Milliseconds in 1 minute\n */\nexport const millisecondsInMinute = 60000;\n\n/**\n * @constant\n * @name millisecondsInHour\n * @summary Milliseconds in 1 hour\n */\nexport const millisecondsInHour = 3600000;\n\n/**\n * @constant\n * @name millisecondsInSecond\n * @summary Milliseconds in 1 second\n */\nexport const millisecondsInSecond = 1000;\n\n/**\n * @constant\n * @name minutesInYear\n * @summary Minutes in 1 year.\n */\nexport const minutesInYear = 525600;\n\n/**\n * @constant\n * @name minutesInMonth\n * @summary Minutes in 1 month.\n */\nexport const minutesInMonth = 43200;\n\n/**\n * @constant\n * @name minutesInDay\n * @summary Minutes in 1 day.\n */\nexport const minutesInDay = 1440;\n\n/**\n * @constant\n * @name minutesInHour\n * @summary Minutes in 1 hour.\n */\nexport const minutesInHour = 60;\n\n/**\n * @constant\n * @name monthsInQuarter\n * @summary Months in 1 quarter.\n */\nexport const monthsInQuarter = 3;\n\n/**\n * @constant\n * @name monthsInYear\n * @summary Months in 1 year.\n */\nexport const monthsInYear = 12;\n\n/**\n * @constant\n * @name quartersInYear\n * @summary Quarters in 1 year\n */\nexport const quartersInYear = 4;\n\n/**\n * @constant\n * @name secondsInHour\n * @summary Seconds in 1 hour.\n */\nexport const secondsInHour = 3600;\n\n/**\n * @constant\n * @name secondsInMinute\n * @summary Seconds in 1 minute.\n */\nexport const secondsInMinute = 60;\n\n/**\n * @constant\n * @name secondsInDay\n * @summary Seconds in 1 day.\n */\nexport const secondsInDay = secondsInHour * 24;\n\n/**\n * @constant\n * @name secondsInWeek\n * @summary Seconds in 1 week.\n */\nexport const secondsInWeek = secondsInDay * 7;\n\n/**\n * @constant\n * @name secondsInYear\n * @summary Seconds in 1 year.\n */\nexport const secondsInYear = secondsInDay * daysInYear;\n\n/**\n * @constant\n * @name secondsInMonth\n * @summary Seconds in 1 month\n */\nexport const secondsInMonth = secondsInYear / 12;\n\n/**\n * @constant\n * @name secondsInQuarter\n * @summary Seconds in 1 quarter.\n */\nexport const secondsInQuarter = secondsInMonth * 3;\n\n/**\n * @constant\n * @name constructFromSymbol\n * @summary Symbol enabling Date extensions to inherit properties from the reference date.\n *\n * The symbol is used to enable the `constructFrom` function to construct a date\n * using a reference date and a value. It allows to transfer extra properties\n * from the reference date to the new date. It's useful for extensions like\n * [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as\n * a constructor argument.\n */\nexport const constructFromSymbol = Symbol.for(\"constructDateFrom\");\n"],"names":[],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AA6LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAC,mBAAmB;;;;","x_google_ignoreList":[0]}
@@ -1,55 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var constants = require('./constants.cjs');
6
-
7
- /**
8
- * @name constructFrom
9
- * @category Generic Helpers
10
- * @summary Constructs a date using the reference date and the value
11
- *
12
- * @description
13
- * The function constructs a new date using the constructor from the reference
14
- * date and the given value. It helps to build generic functions that accept
15
- * date extensions.
16
- *
17
- * It defaults to `Date` if the passed reference date is a number or a string.
18
- *
19
- * Starting from v3.7.0, it allows to construct a date using `[Symbol.for("constructDateFrom")]`
20
- * enabling to transfer extra properties from the reference date to the new date.
21
- * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)
22
- * that accept a time zone as a constructor argument.
23
- *
24
- * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
25
- *
26
- * @param date - The reference date to take constructor from
27
- * @param value - The value to create the date
28
- *
29
- * @returns Date initialized using the given date and value
30
- *
31
- * @example
32
- * import { constructFrom } from "./constructFrom/date-fns";
33
- *
34
- * // A function that clones a date preserving the original type
35
- * function cloneDate<DateType extends Date>(date: DateType): DateType {
36
- * return constructFrom(
37
- * date, // Use constructor from the given date
38
- * date.getTime() // Use the date value to create a new date
39
- * );
40
- * }
41
- */
42
- function constructFrom(date, value) {
43
- if (typeof date === "function") return date(value);
44
-
45
- if (date && typeof date === "object" && constants.constructFromSymbol in date)
46
- return date[constants.constructFromSymbol](value);
47
-
48
- if (date instanceof Date) return new date.constructor(value);
49
-
50
- return new Date(value);
51
- }
52
-
53
- exports.constructFrom = constructFrom;
54
- exports.default = constructFrom;
55
- //# sourceMappingURL=constructFrom.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constructFrom.cjs","sources":["../../../../../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constructFrom.js"],"sourcesContent":["import { constructFromSymbol } from \"./constants.js\";\n\n/**\n * @name constructFrom\n * @category Generic Helpers\n * @summary Constructs a date using the reference date and the value\n *\n * @description\n * The function constructs a new date using the constructor from the reference\n * date and the given value. It helps to build generic functions that accept\n * date extensions.\n *\n * It defaults to `Date` if the passed reference date is a number or a string.\n *\n * Starting from v3.7.0, it allows to construct a date using `[Symbol.for(\"constructDateFrom\")]`\n * enabling to transfer extra properties from the reference date to the new date.\n * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)\n * that accept a time zone as a constructor argument.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The reference date to take constructor from\n * @param value - The value to create the date\n *\n * @returns Date initialized using the given date and value\n *\n * @example\n * import { constructFrom } from \"./constructFrom/date-fns\";\n *\n * // A function that clones a date preserving the original type\n * function cloneDate<DateType extends Date>(date: DateType): DateType {\n * return constructFrom(\n * date, // Use constructor from the given date\n * date.getTime() // Use the date value to create a new date\n * );\n * }\n */\nexport function constructFrom(date, value) {\n if (typeof date === \"function\") return date(value);\n\n if (date && typeof date === \"object\" && constructFromSymbol in date)\n return date[constructFromSymbol](value);\n\n if (date instanceof Date) return new date.constructor(value);\n\n return new Date(value);\n}\n\n// Fallback for modularized imports:\nexport default constructFrom;\n"],"names":["constructFromSymbol"],"mappings":";;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,aAAa,CAAC,IAAI,EAAE,KAAK,EAAE;AAC3C,EAAE,IAAI,OAAO,IAAI,KAAK,UAAU,EAAE,OAAO,IAAI,CAAC,KAAK,CAAC;;AAEpD,EAAE,IAAI,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAIA,6BAAmB,IAAI,IAAI;AACrE,IAAI,OAAO,IAAI,CAACA,6BAAmB,CAAC,CAAC,KAAK,CAAC;;AAE3C,EAAE,IAAI,IAAI,YAAY,IAAI,EAAE,OAAO,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;;AAE9D,EAAE,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC;AACxB;;;;;","x_google_ignoreList":[0]}
@@ -1,57 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var normalizeDates = require('./_lib/normalizeDates.cjs');
6
- var startOfWeek = require('./startOfWeek.cjs');
7
-
8
- /**
9
- * The {@link isSameWeek} function options.
10
- */
11
-
12
- /**
13
- * @name isSameWeek
14
- * @category Week Helpers
15
- * @summary Are the given dates in the same week (and month and year)?
16
- *
17
- * @description
18
- * Are the given dates in the same week (and month and year)?
19
- *
20
- * @param laterDate - The first date to check
21
- * @param earlierDate - The second date to check
22
- * @param options - An object with options
23
- *
24
- * @returns The dates are in the same week (and month and year)
25
- *
26
- * @example
27
- * // Are 31 August 2014 and 4 September 2014 in the same week?
28
- * const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4))
29
- * //=> true
30
- *
31
- * @example
32
- * // If week starts with Monday,
33
- * // are 31 August 2014 and 4 September 2014 in the same week?
34
- * const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), {
35
- * weekStartsOn: 1
36
- * })
37
- * //=> false
38
- *
39
- * @example
40
- * // Are 1 January 2014 and 1 January 2015 in the same week?
41
- * const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1))
42
- * //=> false
43
- */
44
- function isSameWeek(laterDate, earlierDate, options) {
45
- const [laterDate_, earlierDate_] = normalizeDates.normalizeDates(
46
- options?.in,
47
- laterDate,
48
- earlierDate,
49
- );
50
- return (
51
- +startOfWeek.startOfWeek(laterDate_, options) === +startOfWeek.startOfWeek(earlierDate_, options)
52
- );
53
- }
54
-
55
- exports.default = isSameWeek;
56
- exports.isSameWeek = isSameWeek;
57
- //# sourceMappingURL=isSameWeek.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isSameWeek.cjs","sources":["../../../../../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameWeek.js"],"sourcesContent":["import { normalizeDates } from \"./_lib/normalizeDates.js\";\nimport { startOfWeek } from \"./startOfWeek.js\";\n\n/**\n * The {@link isSameWeek} function options.\n */\n\n/**\n * @name isSameWeek\n * @category Week Helpers\n * @summary Are the given dates in the same week (and month and year)?\n *\n * @description\n * Are the given dates in the same week (and month and year)?\n *\n * @param laterDate - The first date to check\n * @param earlierDate - The second date to check\n * @param options - An object with options\n *\n * @returns The dates are in the same week (and month and year)\n *\n * @example\n * // Are 31 August 2014 and 4 September 2014 in the same week?\n * const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4))\n * //=> true\n *\n * @example\n * // If week starts with Monday,\n * // are 31 August 2014 and 4 September 2014 in the same week?\n * const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), {\n * weekStartsOn: 1\n * })\n * //=> false\n *\n * @example\n * // Are 1 January 2014 and 1 January 2015 in the same week?\n * const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1))\n * //=> false\n */\nexport function isSameWeek(laterDate, earlierDate, options) {\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n laterDate,\n earlierDate,\n );\n return (\n +startOfWeek(laterDate_, options) === +startOfWeek(earlierDate_, options)\n );\n}\n\n// Fallback for modularized imports:\nexport default isSameWeek;\n"],"names":["normalizeDates","startOfWeek"],"mappings":";;;;;;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,UAAU,CAAC,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE;AAC5D,EAAE,MAAM,CAAC,UAAU,EAAE,YAAY,CAAC,GAAGA,6BAAc;AACnD,IAAI,OAAO,EAAE,EAAE;AACf,IAAI,SAAS;AACb,IAAI,WAAW;AACf,GAAG;AACH,EAAE;AACF,IAAI,CAACC,uBAAW,CAAC,UAAU,EAAE,OAAO,CAAC,KAAK,CAACA,uBAAW,CAAC,YAAY,EAAE,OAAO;AAC5E;AACA;;;;;","x_google_ignoreList":[0]}
@@ -1,13 +0,0 @@
1
- 'use strict';
2
-
3
- function buildFormatLongFn(args) {
4
- return (options = {}) => {
5
- // TODO: Remove String()
6
- const width = options.width ? String(options.width) : args.defaultWidth;
7
- const format = args.formats[width] || args.formats[args.defaultWidth];
8
- return format;
9
- };
10
- }
11
-
12
- exports.buildFormatLongFn = buildFormatLongFn;
13
- //# sourceMappingURL=buildFormatLongFn.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"buildFormatLongFn.cjs","sources":["../../../../../../../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js"],"sourcesContent":["export function buildFormatLongFn(args) {\n return (options = {}) => {\n // TODO: Remove String()\n const width = options.width ? String(options.width) : args.defaultWidth;\n const format = args.formats[width] || args.formats[args.defaultWidth];\n return format;\n };\n}\n"],"names":[],"mappings":";;AAAO,SAAS,iBAAiB,CAAC,IAAI,EAAE;AACxC,EAAE,OAAO,CAAC,OAAO,GAAG,EAAE,KAAK;AAC3B;AACA,IAAI,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,YAAY;AAC3E,IAAI,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC;AACzE,IAAI,OAAO,MAAM;AACjB,EAAE,CAAC;AACH;;;;","x_google_ignoreList":[0]}
@@ -1,67 +0,0 @@
1
- 'use strict';
2
-
3
- /**
4
- * The localize function argument callback which allows to convert raw value to
5
- * the actual type.
6
- *
7
- * @param value - The value to convert
8
- *
9
- * @returns The converted value
10
- */
11
-
12
- /**
13
- * The map of localized values for each width.
14
- */
15
-
16
- /**
17
- * The index type of the locale unit value. It types conversion of units of
18
- * values that don't start at 0 (i.e. quarters).
19
- */
20
-
21
- /**
22
- * Converts the unit value to the tuple of values.
23
- */
24
-
25
- /**
26
- * The tuple of localized era values. The first element represents BC,
27
- * the second element represents AD.
28
- */
29
-
30
- /**
31
- * The tuple of localized quarter values. The first element represents Q1.
32
- */
33
-
34
- /**
35
- * The tuple of localized day values. The first element represents Sunday.
36
- */
37
-
38
- /**
39
- * The tuple of localized month values. The first element represents January.
40
- */
41
-
42
- function buildLocalizeFn(args) {
43
- return (value, options) => {
44
- const context = options?.context ? String(options.context) : "standalone";
45
-
46
- let valuesArray;
47
- if (context === "formatting" && args.formattingValues) {
48
- const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
49
- const width = options?.width ? String(options.width) : defaultWidth;
50
-
51
- valuesArray =
52
- args.formattingValues[width] || args.formattingValues[defaultWidth];
53
- } else {
54
- const defaultWidth = args.defaultWidth;
55
- const width = options?.width ? String(options.width) : args.defaultWidth;
56
-
57
- valuesArray = args.values[width] || args.values[defaultWidth];
58
- }
59
- const index = args.argumentCallback ? args.argumentCallback(value) : value;
60
-
61
- // @ts-expect-error - For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!
62
- return valuesArray[index];
63
- };
64
- }
65
-
66
- exports.buildLocalizeFn = buildLocalizeFn;
67
- //# sourceMappingURL=buildLocalizeFn.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"buildLocalizeFn.cjs","sources":["../../../../../../../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js"],"sourcesContent":["/**\n * The localize function argument callback which allows to convert raw value to\n * the actual type.\n *\n * @param value - The value to convert\n *\n * @returns The converted value\n */\n\n/**\n * The map of localized values for each width.\n */\n\n/**\n * The index type of the locale unit value. It types conversion of units of\n * values that don't start at 0 (i.e. quarters).\n */\n\n/**\n * Converts the unit value to the tuple of values.\n */\n\n/**\n * The tuple of localized era values. The first element represents BC,\n * the second element represents AD.\n */\n\n/**\n * The tuple of localized quarter values. The first element represents Q1.\n */\n\n/**\n * The tuple of localized day values. The first element represents Sunday.\n */\n\n/**\n * The tuple of localized month values. The first element represents January.\n */\n\nexport function buildLocalizeFn(args) {\n return (value, options) => {\n const context = options?.context ? String(options.context) : \"standalone\";\n\n let valuesArray;\n if (context === \"formatting\" && args.formattingValues) {\n const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;\n const width = options?.width ? String(options.width) : defaultWidth;\n\n valuesArray =\n args.formattingValues[width] || args.formattingValues[defaultWidth];\n } else {\n const defaultWidth = args.defaultWidth;\n const width = options?.width ? String(options.width) : args.defaultWidth;\n\n valuesArray = args.values[width] || args.values[defaultWidth];\n }\n const index = args.argumentCallback ? args.argumentCallback(value) : value;\n\n // @ts-expect-error - For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!\n return valuesArray[index];\n };\n}\n"],"names":[],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEO,SAAS,eAAe,CAAC,IAAI,EAAE;AACtC,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,KAAK;AAC7B,IAAI,MAAM,OAAO,GAAG,OAAO,EAAE,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,YAAY;;AAE7E,IAAI,IAAI,WAAW;AACnB,IAAI,IAAI,OAAO,KAAK,YAAY,IAAI,IAAI,CAAC,gBAAgB,EAAE;AAC3D,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,sBAAsB,IAAI,IAAI,CAAC,YAAY;AAC3E,MAAM,MAAM,KAAK,GAAG,OAAO,EAAE,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,YAAY;;AAEzE,MAAM,WAAW;AACjB,QAAQ,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC;AAC3E,IAAI,CAAC,MAAM;AACX,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,YAAY;AAC5C,MAAM,MAAM,KAAK,GAAG,OAAO,EAAE,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,YAAY;;AAE9E,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC;AACnE,IAAI;AACJ,IAAI,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,GAAG,KAAK;;AAE9E;AACA,IAAI,OAAO,WAAW,CAAC,KAAK,CAAC;AAC7B,EAAE,CAAC;AACH;;;;","x_google_ignoreList":[0]}
@@ -1,62 +0,0 @@
1
- 'use strict';
2
-
3
- function buildMatchFn(args) {
4
- return (string, options = {}) => {
5
- const width = options.width;
6
-
7
- const matchPattern =
8
- (width && args.matchPatterns[width]) ||
9
- args.matchPatterns[args.defaultMatchWidth];
10
- const matchResult = string.match(matchPattern);
11
-
12
- if (!matchResult) {
13
- return null;
14
- }
15
- const matchedString = matchResult[0];
16
-
17
- const parsePatterns =
18
- (width && args.parsePatterns[width]) ||
19
- args.parsePatterns[args.defaultParseWidth];
20
-
21
- const key = Array.isArray(parsePatterns)
22
- ? findIndex(parsePatterns, (pattern) => pattern.test(matchedString))
23
- : // [TODO] -- I challenge you to fix the type
24
- findKey(parsePatterns, (pattern) => pattern.test(matchedString));
25
-
26
- let value;
27
-
28
- value = args.valueCallback ? args.valueCallback(key) : key;
29
- value = options.valueCallback
30
- ? // [TODO] -- I challenge you to fix the type
31
- options.valueCallback(value)
32
- : value;
33
-
34
- const rest = string.slice(matchedString.length);
35
-
36
- return { value, rest };
37
- };
38
- }
39
-
40
- function findKey(object, predicate) {
41
- for (const key in object) {
42
- if (
43
- Object.prototype.hasOwnProperty.call(object, key) &&
44
- predicate(object[key])
45
- ) {
46
- return key;
47
- }
48
- }
49
- return undefined;
50
- }
51
-
52
- function findIndex(array, predicate) {
53
- for (let key = 0; key < array.length; key++) {
54
- if (predicate(array[key])) {
55
- return key;
56
- }
57
- }
58
- return undefined;
59
- }
60
-
61
- exports.buildMatchFn = buildMatchFn;
62
- //# sourceMappingURL=buildMatchFn.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"buildMatchFn.cjs","sources":["../../../../../../../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.js"],"sourcesContent":["export function buildMatchFn(args) {\n return (string, options = {}) => {\n const width = options.width;\n\n const matchPattern =\n (width && args.matchPatterns[width]) ||\n args.matchPatterns[args.defaultMatchWidth];\n const matchResult = string.match(matchPattern);\n\n if (!matchResult) {\n return null;\n }\n const matchedString = matchResult[0];\n\n const parsePatterns =\n (width && args.parsePatterns[width]) ||\n args.parsePatterns[args.defaultParseWidth];\n\n const key = Array.isArray(parsePatterns)\n ? findIndex(parsePatterns, (pattern) => pattern.test(matchedString))\n : // [TODO] -- I challenge you to fix the type\n findKey(parsePatterns, (pattern) => pattern.test(matchedString));\n\n let value;\n\n value = args.valueCallback ? args.valueCallback(key) : key;\n value = options.valueCallback\n ? // [TODO] -- I challenge you to fix the type\n options.valueCallback(value)\n : value;\n\n const rest = string.slice(matchedString.length);\n\n return { value, rest };\n };\n}\n\nfunction findKey(object, predicate) {\n for (const key in object) {\n if (\n Object.prototype.hasOwnProperty.call(object, key) &&\n predicate(object[key])\n ) {\n return key;\n }\n }\n return undefined;\n}\n\nfunction findIndex(array, predicate) {\n for (let key = 0; key < array.length; key++) {\n if (predicate(array[key])) {\n return key;\n }\n }\n return undefined;\n}\n"],"names":[],"mappings":";;AAAO,SAAS,YAAY,CAAC,IAAI,EAAE;AACnC,EAAE,OAAO,CAAC,MAAM,EAAE,OAAO,GAAG,EAAE,KAAK;AACnC,IAAI,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK;;AAE/B,IAAI,MAAM,YAAY;AACtB,MAAM,CAAC,KAAK,IAAI,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC;AACzC,MAAM,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,iBAAiB,CAAC;AAChD,IAAI,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC;;AAElD,IAAI,IAAI,CAAC,WAAW,EAAE;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S,CAAC,KAAK,EAAE,SAAS,EAAE;AACrC,EAAE,KAAK,IAAI,GAAG,GAAG,CAAC,EAAE,GAAG,GAAG,KAAK,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE;AAC/C,IAAI,IAAI,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE;AAC/B,MAAM,OAAO,GAAG;AAChB,IAAI;AACJ,EAAE;AACF,EAAE,OAAO,SAAS;AAClB;;;;","x_google_ignoreList":[0]}
@@ -1,25 +0,0 @@
1
- 'use strict';
2
-
3
- function buildMatchPatternFn(args) {
4
- return (string, options = {}) => {
5
- const matchResult = string.match(args.matchPattern);
6
- if (!matchResult) return null;
7
- const matchedString = matchResult[0];
8
-
9
- const parseResult = string.match(args.parsePattern);
10
- if (!parseResult) return null;
11
- let value = args.valueCallback
12
- ? args.valueCallback(parseResult[0])
13
- : parseResult[0];
14
-
15
- // [TODO] I challenge you to fix the type
16
- value = options.valueCallback ? options.valueCallback(value) : value;
17
-
18
- const rest = string.slice(matchedString.length);
19
-
20
- return { value, rest };
21
- };
22
- }
23
-
24
- exports.buildMatchPatternFn = buildMatchPatternFn;
25
- //# sourceMappingURL=buildMatchPatternFn.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"buildMatchPatternFn.cjs","sources":["../../../../../../../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js"],"sourcesContent":["export function buildMatchPatternFn(args) {\n return (string, options = {}) => {\n const matchResult = string.match(args.matchPattern);\n if (!matchResult) return null;\n const matchedString = matchResult[0];\n\n const parseResult = string.match(args.parsePattern);\n if (!parseResult) return null;\n let value = args.valueCallback\n ? args.valueCallback(parseResult[0])\n : parseResult[0];\n\n // [TODO] I challenge you to fix the type\n value = options.valueCallback ? options.valueCallback(value) : value;\n\n const rest = string.slice(matchedString.length);\n\n return { value, rest };\n };\n}\n"],"names":[],"mappings":";;AAAO,SAAS,mBAAmB,CAAC,IAAI,EAAE;AAC1C,EAAE,OAAO,CAAC,MAAM,EAAE,OAAO,GAAG,EAAE,KAAK;AACnC,IAAI,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC;AACvD,IAAI,IAAI,CAAC,WAAW,EAAE,OAAO,IAAI;AACjC,IAAI,MAAM,aAAa,GAAG,WAAW,CAAC,CAAC,CAAC;;AAExC,IAAI,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC;AACvD,IAAI,IAAI,CAAC,WAAW,EAAE,OAAO,IAAI;AACjC,IAAI,IAAI,KAAK,GAAG,IAAI,CAAC;AACrB,QAAQ,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC;AACzC,QAAQ,WAAW,CAAC,CAAC,CAAC;;AAEtB;AACA,IAAI,KAAK,GAAG,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,KAAK;;AAExE,IAAI,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC;;AAEnD,IAAI,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE;AAC1B,EAAE,CAAC;AACH;;;;","x_google_ignoreList":[0]}
@@ -1,201 +0,0 @@
1
- 'use strict';
2
-
3
- const formatDistanceLocale = {
4
- lessThanXSeconds: {
5
- standalone: {
6
- one: "weniger als 1 Sekunde",
7
- other: "weniger als {{count}} Sekunden",
8
- },
9
- withPreposition: {
10
- one: "weniger als 1 Sekunde",
11
- other: "weniger als {{count}} Sekunden",
12
- },
13
- },
14
-
15
- xSeconds: {
16
- standalone: {
17
- one: "1 Sekunde",
18
- other: "{{count}} Sekunden",
19
- },
20
- withPreposition: {
21
- one: "1 Sekunde",
22
- other: "{{count}} Sekunden",
23
- },
24
- },
25
-
26
- halfAMinute: {
27
- standalone: "eine halbe Minute",
28
- withPreposition: "einer halben Minute",
29
- },
30
-
31
- lessThanXMinutes: {
32
- standalone: {
33
- one: "weniger als 1 Minute",
34
- other: "weniger als {{count}} Minuten",
35
- },
36
- withPreposition: {
37
- one: "weniger als 1 Minute",
38
- other: "weniger als {{count}} Minuten",
39
- },
40
- },
41
-
42
- xMinutes: {
43
- standalone: {
44
- one: "1 Minute",
45
- other: "{{count}} Minuten",
46
- },
47
- withPreposition: {
48
- one: "1 Minute",
49
- other: "{{count}} Minuten",
50
- },
51
- },
52
-
53
- aboutXHours: {
54
- standalone: {
55
- one: "etwa 1 Stunde",
56
- other: "etwa {{count}} Stunden",
57
- },
58
- withPreposition: {
59
- one: "etwa 1 Stunde",
60
- other: "etwa {{count}} Stunden",
61
- },
62
- },
63
-
64
- xHours: {
65
- standalone: {
66
- one: "1 Stunde",
67
- other: "{{count}} Stunden",
68
- },
69
- withPreposition: {
70
- one: "1 Stunde",
71
- other: "{{count}} Stunden",
72
- },
73
- },
74
-
75
- xDays: {
76
- standalone: {
77
- one: "1 Tag",
78
- other: "{{count}} Tage",
79
- },
80
- withPreposition: {
81
- one: "1 Tag",
82
- other: "{{count}} Tagen",
83
- },
84
- },
85
-
86
- aboutXWeeks: {
87
- standalone: {
88
- one: "etwa 1 Woche",
89
- other: "etwa {{count}} Wochen",
90
- },
91
- withPreposition: {
92
- one: "etwa 1 Woche",
93
- other: "etwa {{count}} Wochen",
94
- },
95
- },
96
-
97
- xWeeks: {
98
- standalone: {
99
- one: "1 Woche",
100
- other: "{{count}} Wochen",
101
- },
102
- withPreposition: {
103
- one: "1 Woche",
104
- other: "{{count}} Wochen",
105
- },
106
- },
107
-
108
- aboutXMonths: {
109
- standalone: {
110
- one: "etwa 1 Monat",
111
- other: "etwa {{count}} Monate",
112
- },
113
- withPreposition: {
114
- one: "etwa 1 Monat",
115
- other: "etwa {{count}} Monaten",
116
- },
117
- },
118
-
119
- xMonths: {
120
- standalone: {
121
- one: "1 Monat",
122
- other: "{{count}} Monate",
123
- },
124
- withPreposition: {
125
- one: "1 Monat",
126
- other: "{{count}} Monaten",
127
- },
128
- },
129
-
130
- aboutXYears: {
131
- standalone: {
132
- one: "etwa 1 Jahr",
133
- other: "etwa {{count}} Jahre",
134
- },
135
- withPreposition: {
136
- one: "etwa 1 Jahr",
137
- other: "etwa {{count}} Jahren",
138
- },
139
- },
140
-
141
- xYears: {
142
- standalone: {
143
- one: "1 Jahr",
144
- other: "{{count}} Jahre",
145
- },
146
- withPreposition: {
147
- one: "1 Jahr",
148
- other: "{{count}} Jahren",
149
- },
150
- },
151
-
152
- overXYears: {
153
- standalone: {
154
- one: "mehr als 1 Jahr",
155
- other: "mehr als {{count}} Jahre",
156
- },
157
- withPreposition: {
158
- one: "mehr als 1 Jahr",
159
- other: "mehr als {{count}} Jahren",
160
- },
161
- },
162
-
163
- almostXYears: {
164
- standalone: {
165
- one: "fast 1 Jahr",
166
- other: "fast {{count}} Jahre",
167
- },
168
- withPreposition: {
169
- one: "fast 1 Jahr",
170
- other: "fast {{count}} Jahren",
171
- },
172
- },
173
- };
174
-
175
- const formatDistance = (token, count, options) => {
176
- let result;
177
-
178
- const tokenValue = options?.addSuffix
179
- ? formatDistanceLocale[token].withPreposition
180
- : formatDistanceLocale[token].standalone;
181
- if (typeof tokenValue === "string") {
182
- result = tokenValue;
183
- } else if (count === 1) {
184
- result = tokenValue.one;
185
- } else {
186
- result = tokenValue.other.replace("{{count}}", String(count));
187
- }
188
-
189
- if (options?.addSuffix) {
190
- if (options.comparison && options.comparison > 0) {
191
- return "in " + result;
192
- } else {
193
- return "vor " + result;
194
- }
195
- }
196
-
197
- return result;
198
- };
199
-
200
- exports.formatDistance = formatDistance;
201
- //# sourceMappingURL=formatDistance.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatDistance.cjs","sources":["../../../../../../../../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatDistance.js"],"sourcesContent":["const formatDistanceLocale = {\n lessThanXSeconds: {\n standalone: {\n one: \"weniger als 1 Sekunde\",\n other: \"weniger als {{count}} Sekunden\",\n },\n withPreposition: {\n one: \"weniger als 1 Sekunde\",\n other: \"weniger als {{count}} Sekunden\",\n },\n },\n\n xSeconds: {\n standalone: {\n one: \"1 Sekunde\",\n other: \"{{count}} Sekunden\",\n },\n withPreposition: {\n one: \"1 Sekunde\",\n other: \"{{count}} Sekunden\",\n },\n },\n\n halfAMinute: {\n standalone: \"eine halbe Minute\",\n withPreposition: \"einer halben Minute\",\n },\n\n lessThanXMinutes: {\n standalone: {\n one: \"weniger als 1 Minute\",\n other: \"weniger als {{count}} Minuten\",\n },\n withPreposition: {\n one: \"weniger als 1 Minute\",\n other: \"weniger als {{count}} Minuten\",\n },\n },\n\n xMinutes: {\n standalone: {\n one: \"1 Minute\",\n other: \"{{count}} Minuten\",\n },\n withPreposition: {\n one: \"1 Minute\",\n other: \"{{count}} Minuten\",\n },\n },\n\n aboutXHours: {\n standalone: {\n one: \"etwa 1 Stunde\",\n other: \"etwa {{count}} Stunden\",\n },\n withPreposition: {\n one: \"etwa 1 Stunde\",\n other: \"etwa {{count}} Stunden\",\n },\n },\n\n xHours: {\n standalone: {\n one: \"1 Stunde\",\n other: \"{{count}} Stunden\",\n },\n withPreposition: {\n one: \"1 Stunde\",\n other: \"{{count}} Stunden\",\n },\n },\n\n xDays: {\n standalone: {\n one: \"1 Tag\",\n other: \"{{count}} Tage\",\n },\n withPreposition: {\n one: \"1 Tag\",\n other: \"{{count}} Tagen\",\n },\n },\n\n aboutXWeeks: {\n standalone: {\n one: \"etwa 1 Woche\",\n other: \"etwa {{count}} Wochen\",\n },\n withPreposition: {\n one: \"etwa 1 Woche\",\n other: \"etwa {{count}} Wochen\",\n },\n },\n\n xWeeks: {\n standalone: {\n one: \"1 Woche\",\n other: \"{{count}} Wochen\",\n },\n withPreposition: {\n one: \"1 Woche\",\n other: \"{{count}} Wochen\",\n },\n },\n\n aboutXMonths: {\n standalone: {\n one: \"etwa 1 Monat\",\n other: \"etwa {{count}} Monate\",\n },\n withPreposition: {\n one: \"etwa 1 Monat\",\n other: \"etwa {{count}} Monaten\",\n },\n },\n\n xMonths: {\n standalone: {\n one: \"1 Monat\",\n other: \"{{count}} Monate\",\n },\n withPreposition: {\n one: \"1 Monat\",\n other: \"{{count}} Monaten\",\n },\n },\n\n aboutXYears: {\n standalone: {\n one: \"etwa 1 Jahr\",\n other: \"etwa {{count}} Jahre\",\n },\n withPreposition: {\n one: \"etwa 1 Jahr\",\n other: \"etwa {{count}} Jahren\",\n },\n },\n\n xYears: {\n standalone: {\n one: \"1 Jahr\",\n other: \"{{count}} Jahre\",\n },\n withPreposition: {\n one: \"1 Jahr\",\n other: \"{{count}} Jahren\",\n },\n },\n\n overXYears: {\n standalone: {\n one: \"mehr als 1 Jahr\",\n other: \"mehr als {{count}} Jahre\",\n },\n withPreposition: {\n one: \"mehr als 1 Jahr\",\n other: \"mehr als {{count}} Jahren\",\n },\n },\n\n almostXYears: {\n standalone: {\n one: \"fast 1 Jahr\",\n other: \"fast {{count}} Jahre\",\n },\n withPreposition: {\n one: \"fast 1 Jahr\",\n other: \"fast {{count}} Jahren\",\n },\n },\n};\n\nexport const formatDistance = (token, count, options) => {\n let result;\n\n const tokenValue = options?.addSuffix\n ? formatDistanceLocale[token].withPreposition\n : formatDistanceLocale[token].standalone;\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}}\", String(count));\n }\n\n if (options?.addSuffix) {\n if (options.comparison && options.comparison > 0) {\n return \"in \" + result;\n } else {\n return \"vor \" + result;\n }\n }\n\n return result;\n};\n"],"names":[],"mappings":";;AAAA,MAAM,oBAAoB,GAAG;AAC7B,EAAE,gBAAgB,EAAE;AACpB,IAAI,UAAU,EAAE;AAChB,MAAM,GAAG,EAAE,uBAAuB;AAClC,MAAM,KAAK,EAAE,gCAAgC;AAC7C,KAAK;AACL,IAAI,eAAe,EAAE;AACrB,MAAM,GAAG,EAAE,uBAAuB;AAClC,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