@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,106 +0,0 @@
1
- 'use strict';
2
-
3
- const formatDistanceLocale = {
4
- lessThanXSeconds: {
5
- one: "less than a second",
6
- other: "less than {{count}} seconds",
7
- },
8
-
9
- xSeconds: {
10
- one: "1 second",
11
- other: "{{count}} seconds",
12
- },
13
-
14
- halfAMinute: "half a minute",
15
-
16
- lessThanXMinutes: {
17
- one: "less than a minute",
18
- other: "less than {{count}} minutes",
19
- },
20
-
21
- xMinutes: {
22
- one: "1 minute",
23
- other: "{{count}} minutes",
24
- },
25
-
26
- aboutXHours: {
27
- one: "about 1 hour",
28
- other: "about {{count}} hours",
29
- },
30
-
31
- xHours: {
32
- one: "1 hour",
33
- other: "{{count}} hours",
34
- },
35
-
36
- xDays: {
37
- one: "1 day",
38
- other: "{{count}} days",
39
- },
40
-
41
- aboutXWeeks: {
42
- one: "about 1 week",
43
- other: "about {{count}} weeks",
44
- },
45
-
46
- xWeeks: {
47
- one: "1 week",
48
- other: "{{count}} weeks",
49
- },
50
-
51
- aboutXMonths: {
52
- one: "about 1 month",
53
- other: "about {{count}} months",
54
- },
55
-
56
- xMonths: {
57
- one: "1 month",
58
- other: "{{count}} months",
59
- },
60
-
61
- aboutXYears: {
62
- one: "about 1 year",
63
- other: "about {{count}} years",
64
- },
65
-
66
- xYears: {
67
- one: "1 year",
68
- other: "{{count}} years",
69
- },
70
-
71
- overXYears: {
72
- one: "over 1 year",
73
- other: "over {{count}} years",
74
- },
75
-
76
- almostXYears: {
77
- one: "almost 1 year",
78
- other: "almost {{count}} years",
79
- },
80
- };
81
-
82
- const formatDistance = (token, count, options) => {
83
- let result;
84
-
85
- const tokenValue = formatDistanceLocale[token];
86
- if (typeof tokenValue === "string") {
87
- result = tokenValue;
88
- } else if (count === 1) {
89
- result = tokenValue.one;
90
- } else {
91
- result = tokenValue.other.replace("{{count}}", count.toString());
92
- }
93
-
94
- if (options?.addSuffix) {
95
- if (options.comparison && options.comparison > 0) {
96
- return "in " + result;
97
- } else {
98
- return result + " ago";
99
- }
100
- }
101
-
102
- return result;
103
- };
104
-
105
- exports.formatDistance = formatDistance;
106
- //# 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/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":[],"mappings":";;AAAA,MAAM,oBAAoB,GAAG;AAC7B,EAAE,gBAAgB,EAAE;AACpB,IAAI,GAAG,EAAE,oBAAoB;AAC7B,IAAI,KAAK,EAAE,6BAA6B;AACxC,GAAG;;AAEH,EAAE,QAAQ,EAAE;AACZ,IAAI,GAAG,EAAE,UAAU;AACnB,IAAI,KAAK,EAAE,mBAAmB;AAC9B,GAAG;;AAEH,EAAE,WAAW,EAAE,eAAe;;AAE9B,EAAE,gBAAgB,EAAE;AACpB,IAAI,GAAG,EAAE,oBAAoB;AAC7B,IAAI,KAAK,EAAE,6BAA6B;AACxC,GAAG;;AAEH,EAAE,QAAQ,EAAE;AACZ,IAAI,GAAG,EAAE,UAAU;AACnB,IAAI,KAAK,EAAE,mBAAmB;AAC9B,GAAG;;AAEH,EAAE,WAAW,EAAE;AACf,IAAI,GAAG,EAAE,cAAc;AACvB,IAAI,KAAK,EAAE,uBAAuB;AAClC,GAAG;;AAEH,EAAE,MAAM,EAAE;AACV,IAAI,GAAG,EAAE,QAAQ;AACjB,IAAI,KAAK,EAAE,iBAAiB;AAC5B,GAAG;;AAEH,EAAE,KAAK,EAAE;AACT,IAAI,GAAG,EAAE,OAAO;AAChB,IAAI,KAAK,EAAE,gBAAgB;AAC3B,GAAG;;AAEH,EAAE,WAAW,EAAE;AACf,IAA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pE,EAAE;;AAEF,EAAE,IAAI,OAAO,EAAE,SAAS,EAAE;AAC1B,IAAI,IAAI,OAAO,CAAC,UAAU,IAAI,OAAO,CAAC,UAAU,GAAG,CAAC,EAAE;AACtD,MAAM,OAAO,KAAK,GAAG,MAAM;AAC3B,IAAI,CAAC,MAAM;AACX,MAAM,OAAO,MAAM,GAAG,MAAM;AAC5B,IAAI;AACJ,EAAE;;AAEF,EAAE,OAAO,MAAM;AACf;;;;","x_google_ignoreList":[0]}
@@ -1,44 +0,0 @@
1
- 'use strict';
2
-
3
- var buildFormatLongFn = require('../../_lib/buildFormatLongFn.cjs');
4
-
5
- const dateFormats = {
6
- full: "EEEE, MMMM do, y",
7
- long: "MMMM do, y",
8
- medium: "MMM d, y",
9
- short: "MM/dd/yyyy",
10
- };
11
-
12
- const timeFormats = {
13
- full: "h:mm:ss a zzzz",
14
- long: "h:mm:ss a z",
15
- medium: "h:mm:ss a",
16
- short: "h:mm a",
17
- };
18
-
19
- const dateTimeFormats = {
20
- full: "{{date}} 'at' {{time}}",
21
- long: "{{date}} 'at' {{time}}",
22
- medium: "{{date}}, {{time}}",
23
- short: "{{date}}, {{time}}",
24
- };
25
-
26
- const formatLong = {
27
- date: buildFormatLongFn.buildFormatLongFn({
28
- formats: dateFormats,
29
- defaultWidth: "full",
30
- }),
31
-
32
- time: buildFormatLongFn.buildFormatLongFn({
33
- formats: timeFormats,
34
- defaultWidth: "full",
35
- }),
36
-
37
- dateTime: buildFormatLongFn.buildFormatLongFn({
38
- formats: dateTimeFormats,
39
- defaultWidth: "full",
40
- }),
41
- };
42
-
43
- exports.formatLong = formatLong;
44
- //# sourceMappingURL=formatLong.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatLong.cjs","sources":["../../../../../../../../../../../node_modules/.pnpm/date-fns@4.1.0/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":["buildFormatLongFn"],"mappings":";;;;AAEA,MAAM,WAAW,GAAG;AACpB,EAAE,IAAI,EAAE,kBAAkB;AAC1B,EAAE,IAAI,EAAE,YAAY;AACpB,EAAE,MAAM,EAAE,UAAU;AACpB,EAAE,KAAK,EAAE,YAAY;AACrB,CAAC;;AAED,MAAM,WAAW,GAAG;AACpB,EAAE,IAAI,EAAE,gBAAgB;AACxB,EAAE,IAAI,EAAE,aAAa;AACrB,EAAE,MAAM,EAAE,WAAW;AACrB,EAAE,KAAK,EAAE,QAAQ;AACjB,CAAC;;AAED,MAAM,eAAe,GAAG;AACxB,EAAE,IAAI,EAAE,wBAAwB;AAChC,EAAE,IAAI,EAAE,wBAAwB;AAChC,EAAE,MAAM,EAAE,oBAAoB;AAC9B,EAAE,KAAK,EAAE,oBAAoB;AAC7B,CAAC;;AAEW,MAAC,UAAU,GAAG;AAC1B,EAAE,IAAI,EAAEA,mCAAiB,CAAC;AAC1B,IAAI,OAAO,EAAE,WAAW;AACxB,IAAI,YAAY,EAAE,MAAM;AACxB,GAAG,CAAC;;AAEJ,EAAE,IAAI,EAAEA,mCAAiB,CAAC;AAC1B,IAAI,OAAO,EAAE,WAAW;AACxB,IAAI,YAAY,EAAE,MAAM;AACxB,GAAG,CAAC;;AAEJ,EAAE,QAAQ,EAAEA,mCAAiB,CAAC;AAC9B,IAAI,OAAO,EAAE,eAAe;AAC5B,IAAI,YAAY,EAAE,MAAM;AACxB,GAAG,CAAC;AACJ;;;;","x_google_ignoreList":[0]}
@@ -1,16 +0,0 @@
1
- 'use strict';
2
-
3
- const formatRelativeLocale = {
4
- lastWeek: "'last' eeee 'at' p",
5
- yesterday: "'yesterday at' p",
6
- today: "'today at' p",
7
- tomorrow: "'tomorrow at' p",
8
- nextWeek: "eeee 'at' p",
9
- other: "P",
10
- };
11
-
12
- const formatRelative = (token, _date, _baseDate, _options) =>
13
- formatRelativeLocale[token];
14
-
15
- exports.formatRelative = formatRelative;
16
- //# sourceMappingURL=formatRelative.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatRelative.cjs","sources":["../../../../../../../../../../../node_modules/.pnpm/date-fns@4.1.0/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":[],"mappings":";;AAAA,MAAM,oBAAoB,GAAG;AAC7B,EAAE,QAAQ,EAAE,oBAAoB;AAChC,EAAE,SAAS,EAAE,kBAAkB;AAC/B,EAAE,KAAK,EAAE,cAAc;AACvB,EAAE,QAAQ,EAAE,iBAAiB;AAC7B,EAAE,QAAQ,EAAE,aAAa;AACzB,EAAE,KAAK,EAAE,GAAG;AACZ,CAAC;;AAEW,MAAC,cAAc,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ;AAChE,EAAE,oBAAoB,CAAC,KAAK;;;;","x_google_ignoreList":[0]}
@@ -1,192 +0,0 @@
1
- 'use strict';
2
-
3
- var buildLocalizeFn = require('../../_lib/buildLocalizeFn.cjs');
4
-
5
- const eraValues = {
6
- narrow: ["B", "A"],
7
- abbreviated: ["BC", "AD"],
8
- wide: ["Before Christ", "Anno Domini"],
9
- };
10
-
11
- const quarterValues = {
12
- narrow: ["1", "2", "3", "4"],
13
- abbreviated: ["Q1", "Q2", "Q3", "Q4"],
14
- wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"],
15
- };
16
-
17
- // Note: in English, the names of days of the week and months are capitalized.
18
- // If you are making a new locale based on this one, check if the same is true for the language you're working on.
19
- // Generally, formatted dates should look like they are in the middle of a sentence,
20
- // e.g. in Spanish language the weekdays and months should be in the lowercase.
21
- const monthValues = {
22
- narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
23
- abbreviated: [
24
- "Jan",
25
- "Feb",
26
- "Mar",
27
- "Apr",
28
- "May",
29
- "Jun",
30
- "Jul",
31
- "Aug",
32
- "Sep",
33
- "Oct",
34
- "Nov",
35
- "Dec",
36
- ],
37
-
38
- wide: [
39
- "January",
40
- "February",
41
- "March",
42
- "April",
43
- "May",
44
- "June",
45
- "July",
46
- "August",
47
- "September",
48
- "October",
49
- "November",
50
- "December",
51
- ],
52
- };
53
-
54
- const dayValues = {
55
- narrow: ["S", "M", "T", "W", "T", "F", "S"],
56
- short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
57
- abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
58
- wide: [
59
- "Sunday",
60
- "Monday",
61
- "Tuesday",
62
- "Wednesday",
63
- "Thursday",
64
- "Friday",
65
- "Saturday",
66
- ],
67
- };
68
-
69
- const dayPeriodValues = {
70
- narrow: {
71
- am: "a",
72
- pm: "p",
73
- midnight: "mi",
74
- noon: "n",
75
- morning: "morning",
76
- afternoon: "afternoon",
77
- evening: "evening",
78
- night: "night",
79
- },
80
- abbreviated: {
81
- am: "AM",
82
- pm: "PM",
83
- midnight: "midnight",
84
- noon: "noon",
85
- morning: "morning",
86
- afternoon: "afternoon",
87
- evening: "evening",
88
- night: "night",
89
- },
90
- wide: {
91
- am: "a.m.",
92
- pm: "p.m.",
93
- midnight: "midnight",
94
- noon: "noon",
95
- morning: "morning",
96
- afternoon: "afternoon",
97
- evening: "evening",
98
- night: "night",
99
- },
100
- };
101
-
102
- const formattingDayPeriodValues = {
103
- narrow: {
104
- am: "a",
105
- pm: "p",
106
- midnight: "mi",
107
- noon: "n",
108
- morning: "in the morning",
109
- afternoon: "in the afternoon",
110
- evening: "in the evening",
111
- night: "at night",
112
- },
113
- abbreviated: {
114
- am: "AM",
115
- pm: "PM",
116
- midnight: "midnight",
117
- noon: "noon",
118
- morning: "in the morning",
119
- afternoon: "in the afternoon",
120
- evening: "in the evening",
121
- night: "at night",
122
- },
123
- wide: {
124
- am: "a.m.",
125
- pm: "p.m.",
126
- midnight: "midnight",
127
- noon: "noon",
128
- morning: "in the morning",
129
- afternoon: "in the afternoon",
130
- evening: "in the evening",
131
- night: "at night",
132
- },
133
- };
134
-
135
- const ordinalNumber = (dirtyNumber, _options) => {
136
- const number = Number(dirtyNumber);
137
-
138
- // If ordinal numbers depend on context, for example,
139
- // if they are different for different grammatical genders,
140
- // use `options.unit`.
141
- //
142
- // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
143
- // 'day', 'hour', 'minute', 'second'.
144
-
145
- const rem100 = number % 100;
146
- if (rem100 > 20 || rem100 < 10) {
147
- switch (rem100 % 10) {
148
- case 1:
149
- return number + "st";
150
- case 2:
151
- return number + "nd";
152
- case 3:
153
- return number + "rd";
154
- }
155
- }
156
- return number + "th";
157
- };
158
-
159
- const localize = {
160
- ordinalNumber,
161
-
162
- era: buildLocalizeFn.buildLocalizeFn({
163
- values: eraValues,
164
- defaultWidth: "wide",
165
- }),
166
-
167
- quarter: buildLocalizeFn.buildLocalizeFn({
168
- values: quarterValues,
169
- defaultWidth: "wide",
170
- argumentCallback: (quarter) => quarter - 1,
171
- }),
172
-
173
- month: buildLocalizeFn.buildLocalizeFn({
174
- values: monthValues,
175
- defaultWidth: "wide",
176
- }),
177
-
178
- day: buildLocalizeFn.buildLocalizeFn({
179
- values: dayValues,
180
- defaultWidth: "wide",
181
- }),
182
-
183
- dayPeriod: buildLocalizeFn.buildLocalizeFn({
184
- values: dayPeriodValues,
185
- defaultWidth: "wide",
186
- formattingValues: formattingDayPeriodValues,
187
- defaultFormattingWidth: "wide",
188
- }),
189
- };
190
-
191
- exports.localize = localize;
192
- //# sourceMappingURL=localize.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"localize.cjs","sources":["../../../../../../../../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/localize.js"],"sourcesContent":["import { buildLocalizeFn } from \"../../_lib/buildLocalizeFn.js\";\n\nconst eraValues = {\n narrow: [\"B\", \"A\"],\n abbreviated: [\"BC\", \"AD\"],\n wide: [\"Before Christ\", \"Anno Domini\"],\n};\n\nconst quarterValues = {\n narrow: [\"1\", \"2\", \"3\", \"4\"],\n abbreviated: [\"Q1\", \"Q2\", \"Q3\", \"Q4\"],\n wide: [\"1st quarter\", \"2nd quarter\", \"3rd quarter\", \"4th quarter\"],\n};\n\n// Note: in English, the names of days of the week and months are capitalized.\n// If you are making a new locale based on this one, check if the same is true for the language you're working on.\n// Generally, formatted dates should look like they are in the middle of a sentence,\n// e.g. in Spanish language the weekdays and months should be in the lowercase.\nconst monthValues = {\n narrow: [\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"],\n abbreviated: [\n \"Jan\",\n \"Feb\",\n \"Mar\",\n \"Apr\",\n \"May\",\n \"Jun\",\n \"Jul\",\n \"Aug\",\n \"Sep\",\n \"Oct\",\n \"Nov\",\n \"Dec\",\n ],\n\n wide: [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\",\n ],\n};\n\nconst dayValues = {\n narrow: [\"S\", \"M\", \"T\", \"W\", \"T\", \"F\", \"S\"],\n short: [\"Su\", \"Mo\", \"Tu\", \"We\", \"Th\", \"Fr\", \"Sa\"],\n abbreviated: [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"],\n wide: [\n \"Sunday\",\n \"Monday\",\n \"Tuesday\",\n \"Wednesday\",\n \"Thursday\",\n \"Friday\",\n \"Saturday\",\n ],\n};\n\nconst dayPeriodValues = {\n narrow: {\n am: \"a\",\n pm: \"p\",\n midnight: \"mi\",\n noon: \"n\",\n morning: \"morning\",\n afternoon: \"afternoon\",\n evening: \"evening\",\n night: \"night\",\n },\n abbreviated: {\n am: \"AM\",\n pm: \"PM\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"morning\",\n afternoon: \"afternoon\",\n evening: \"evening\",\n night: \"night\",\n },\n wide: {\n am: \"a.m.\",\n pm: \"p.m.\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"morning\",\n afternoon: \"afternoon\",\n evening: \"evening\",\n night: \"night\",\n },\n};\n\nconst formattingDayPeriodValues = {\n narrow: {\n am: \"a\",\n pm: \"p\",\n midnight: \"mi\",\n noon: \"n\",\n morning: \"in the morning\",\n afternoon: \"in the afternoon\",\n evening: \"in the evening\",\n night: \"at night\",\n },\n abbreviated: {\n am: \"AM\",\n pm: \"PM\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"in the morning\",\n afternoon: \"in the afternoon\",\n evening: \"in the evening\",\n night: \"at night\",\n },\n wide: {\n am: \"a.m.\",\n pm: \"p.m.\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"in the morning\",\n afternoon: \"in the afternoon\",\n evening: \"in the evening\",\n night: \"at night\",\n },\n};\n\nconst ordinalNumber = (dirtyNumber, _options) => {\n const number = Number(dirtyNumber);\n\n // If ordinal numbers depend on context, for example,\n // if they are different for different grammatical genders,\n // use `options.unit`.\n //\n // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',\n // 'day', 'hour', 'minute', 'second'.\n\n const rem100 = number % 100;\n if (rem100 > 20 || rem100 < 10) {\n switch (rem100 % 10) {\n case 1:\n return number + \"st\";\n case 2:\n return number + \"nd\";\n case 3:\n return number + \"rd\";\n }\n }\n return number + \"th\";\n};\n\nexport const localize = {\n ordinalNumber,\n\n era: buildLocalizeFn({\n values: eraValues,\n defaultWidth: \"wide\",\n }),\n\n quarter: buildLocalizeFn({\n values: quarterValues,\n defaultWidth: \"wide\",\n argumentCallback: (quarter) => quarter - 1,\n }),\n\n month: buildLocalizeFn({\n values: monthValues,\n defaultWidth: \"wide\",\n }),\n\n day: buildLocalizeFn({\n values: dayValues,\n defaultWidth: \"wide\",\n }),\n\n dayPeriod: buildLocalizeFn({\n values: dayPeriodValues,\n defaultWidth: \"wide\",\n formattingValues: formattingDayPeriodValues,\n defaultFormattingWidth: \"wide\",\n }),\n};\n"],"names":["buildLocalizeFn"],"mappings":";;;;AAEA,MAAM,SAAS,GAAG;AAClB,EAAE,MAAM,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;AACpB,EAAE,WAAW,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;AAC3B,EAAE,IAAI,EAAE,CAAC,eAAe,EAAE,aAAa,CAAC;AACxC,CAAC;;AAED,MAAM,aAAa,GAAG;AACtB,EAAE,MAAM,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;AAC9B,EAAE,WAAW,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;AACvC,EAAE,IAAI,EAAE,CAAC,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,CAAC;AACpE,CAAC;;AAED;AACA;AACA;AACA;AACA,MAAM,WAAW,GAAG;AACpB,EAAE,MAAM,EAAE,CAAC,GAAG,EAAE,G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AAI,YAAY,EAAE,MAAM;AACxB,IAAI,gBAAgB,EAAE,CAAC,OAAO,KAAK,OAAO,GAAG,CAAC;AAC9C,GAAG,CAAC;;AAEJ,EAAE,KAAK,EAAEA,+BAAe,CAAC;AACzB,IAAI,MAAM,EAAE,WAAW;AACvB,IAAI,YAAY,EAAE,MAAM;AACxB,GAAG,CAAC;;AAEJ,EAAE,GAAG,EAAEA,+BAAe,CAAC;AACvB,IAAI,MAAM,EAAE,SAAS;AACrB,IAAI,YAAY,EAAE,MAAM;AACxB,GAAG,CAAC;;AAEJ,EAAE,SAAS,EAAEA,+BAAe,CAAC;AAC7B,IAAI,MAAM,EAAE,eAAe;AAC3B,IAAI,YAAY,EAAE,MAAM;AACxB,IAAI,gBAAgB,EAAE,yBAAyB;AAC/C,IAAI,sBAAsB,EAAE,MAAM;AAClC,GAAG,CAAC;AACJ;;;;","x_google_ignoreList":[0]}
@@ -1,137 +0,0 @@
1
- 'use strict';
2
-
3
- var buildMatchFn = require('../../_lib/buildMatchFn.cjs');
4
- var buildMatchPatternFn = require('../../_lib/buildMatchPatternFn.cjs');
5
-
6
- const matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
7
- const parseOrdinalNumberPattern = /\d+/i;
8
-
9
- const matchEraPatterns = {
10
- narrow: /^(b|a)/i,
11
- abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
12
- wide: /^(before christ|before common era|anno domini|common era)/i,
13
- };
14
- const parseEraPatterns = {
15
- any: [/^b/i, /^(a|c)/i],
16
- };
17
-
18
- const matchQuarterPatterns = {
19
- narrow: /^[1234]/i,
20
- abbreviated: /^q[1234]/i,
21
- wide: /^[1234](th|st|nd|rd)? quarter/i,
22
- };
23
- const parseQuarterPatterns = {
24
- any: [/1/i, /2/i, /3/i, /4/i],
25
- };
26
-
27
- const matchMonthPatterns = {
28
- narrow: /^[jfmasond]/i,
29
- abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
30
- wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i,
31
- };
32
- const parseMonthPatterns = {
33
- narrow: [
34
- /^j/i,
35
- /^f/i,
36
- /^m/i,
37
- /^a/i,
38
- /^m/i,
39
- /^j/i,
40
- /^j/i,
41
- /^a/i,
42
- /^s/i,
43
- /^o/i,
44
- /^n/i,
45
- /^d/i,
46
- ],
47
-
48
- any: [
49
- /^ja/i,
50
- /^f/i,
51
- /^mar/i,
52
- /^ap/i,
53
- /^may/i,
54
- /^jun/i,
55
- /^jul/i,
56
- /^au/i,
57
- /^s/i,
58
- /^o/i,
59
- /^n/i,
60
- /^d/i,
61
- ],
62
- };
63
-
64
- const matchDayPatterns = {
65
- narrow: /^[smtwf]/i,
66
- short: /^(su|mo|tu|we|th|fr|sa)/i,
67
- abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
68
- wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i,
69
- };
70
- const parseDayPatterns = {
71
- narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
72
- any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i],
73
- };
74
-
75
- const matchDayPeriodPatterns = {
76
- narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
77
- any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i,
78
- };
79
- const parseDayPeriodPatterns = {
80
- any: {
81
- am: /^a/i,
82
- pm: /^p/i,
83
- midnight: /^mi/i,
84
- noon: /^no/i,
85
- morning: /morning/i,
86
- afternoon: /afternoon/i,
87
- evening: /evening/i,
88
- night: /night/i,
89
- },
90
- };
91
-
92
- const match = {
93
- ordinalNumber: buildMatchPatternFn.buildMatchPatternFn({
94
- matchPattern: matchOrdinalNumberPattern,
95
- parsePattern: parseOrdinalNumberPattern,
96
- valueCallback: (value) => parseInt(value, 10),
97
- }),
98
-
99
- era: buildMatchFn.buildMatchFn({
100
- matchPatterns: matchEraPatterns,
101
- defaultMatchWidth: "wide",
102
- parsePatterns: parseEraPatterns,
103
- defaultParseWidth: "any",
104
- }),
105
-
106
- quarter: buildMatchFn.buildMatchFn({
107
- matchPatterns: matchQuarterPatterns,
108
- defaultMatchWidth: "wide",
109
- parsePatterns: parseQuarterPatterns,
110
- defaultParseWidth: "any",
111
- valueCallback: (index) => index + 1,
112
- }),
113
-
114
- month: buildMatchFn.buildMatchFn({
115
- matchPatterns: matchMonthPatterns,
116
- defaultMatchWidth: "wide",
117
- parsePatterns: parseMonthPatterns,
118
- defaultParseWidth: "any",
119
- }),
120
-
121
- day: buildMatchFn.buildMatchFn({
122
- matchPatterns: matchDayPatterns,
123
- defaultMatchWidth: "wide",
124
- parsePatterns: parseDayPatterns,
125
- defaultParseWidth: "any",
126
- }),
127
-
128
- dayPeriod: buildMatchFn.buildMatchFn({
129
- matchPatterns: matchDayPeriodPatterns,
130
- defaultMatchWidth: "any",
131
- parsePatterns: parseDayPeriodPatterns,
132
- defaultParseWidth: "any",
133
- }),
134
- };
135
-
136
- exports.match = match;
137
- //# sourceMappingURL=match.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"match.cjs","sources":["../../../../../../../../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/match.js"],"sourcesContent":["import { buildMatchFn } from \"../../_lib/buildMatchFn.js\";\nimport { buildMatchPatternFn } from \"../../_lib/buildMatchPatternFn.js\";\n\nconst matchOrdinalNumberPattern = /^(\\d+)(th|st|nd|rd)?/i;\nconst parseOrdinalNumberPattern = /\\d+/i;\n\nconst matchEraPatterns = {\n narrow: /^(b|a)/i,\n abbreviated: /^(b\\.?\\s?c\\.?|b\\.?\\s?c\\.?\\s?e\\.?|a\\.?\\s?d\\.?|c\\.?\\s?e\\.?)/i,\n wide: /^(before christ|before common era|anno domini|common era)/i,\n};\nconst parseEraPatterns = {\n any: [/^b/i, /^(a|c)/i],\n};\n\nconst matchQuarterPatterns = {\n narrow: /^[1234]/i,\n abbreviated: /^q[1234]/i,\n wide: /^[1234](th|st|nd|rd)? quarter/i,\n};\nconst parseQuarterPatterns = {\n any: [/1/i, /2/i, /3/i, /4/i],\n};\n\nconst matchMonthPatterns = {\n narrow: /^[jfmasond]/i,\n abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,\n wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i,\n};\nconst parseMonthPatterns = {\n narrow: [\n /^j/i,\n /^f/i,\n /^m/i,\n /^a/i,\n /^m/i,\n /^j/i,\n /^j/i,\n /^a/i,\n /^s/i,\n /^o/i,\n /^n/i,\n /^d/i,\n ],\n\n any: [\n /^ja/i,\n /^f/i,\n /^mar/i,\n /^ap/i,\n /^may/i,\n /^jun/i,\n /^jul/i,\n /^au/i,\n /^s/i,\n /^o/i,\n /^n/i,\n /^d/i,\n ],\n};\n\nconst matchDayPatterns = {\n narrow: /^[smtwf]/i,\n short: /^(su|mo|tu|we|th|fr|sa)/i,\n abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,\n wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i,\n};\nconst parseDayPatterns = {\n narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],\n any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i],\n};\n\nconst matchDayPeriodPatterns = {\n narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,\n any: /^([ap]\\.?\\s?m\\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i,\n};\nconst parseDayPeriodPatterns = {\n any: {\n am: /^a/i,\n pm: /^p/i,\n midnight: /^mi/i,\n noon: /^no/i,\n morning: /morning/i,\n afternoon: /afternoon/i,\n evening: /evening/i,\n night: /night/i,\n },\n};\n\nexport const match = {\n ordinalNumber: buildMatchPatternFn({\n matchPattern: matchOrdinalNumberPattern,\n parsePattern: parseOrdinalNumberPattern,\n valueCallback: (value) => parseInt(value, 10),\n }),\n\n era: buildMatchFn({\n matchPatterns: matchEraPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseEraPatterns,\n defaultParseWidth: \"any\",\n }),\n\n quarter: buildMatchFn({\n matchPatterns: matchQuarterPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseQuarterPatterns,\n defaultParseWidth: \"any\",\n valueCallback: (index) => index + 1,\n }),\n\n month: buildMatchFn({\n matchPatterns: matchMonthPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseMonthPatterns,\n defaultParseWidth: \"any\",\n }),\n\n day: buildMatchFn({\n matchPatterns: matchDayPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseDayPatterns,\n defaultParseWidth: \"any\",\n }),\n\n dayPeriod: buildMatchFn({\n matchPatterns: matchDayPeriodPatterns,\n defaultMatchWidth: \"any\",\n parsePatterns: parseDayPeriodPatterns,\n defaultParseWidth: \"any\",\n }),\n};\n"],"names":["buildMatchPatternFn","buildMatchFn"],"mappings":";;;;;AAGA,MAAM,yBAAyB,GAAG,uBAAuB;AACzD,MAAM,yBAAyB,GAAG,MAAM;;AAExC,MAAM,gBAAgB,GAAG;AACzB,EAAE,MAAM,EAAE,SAAS;AACnB,EAAE,WAAW,EAAE,4DAA4D;AAC3E,EAAE,IAAI,EAAE,4DAA4D;AACpE,CAAC;AACD,MAAM,gBAAgB,GAAG;AACzB,EAAE,GAAG,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC;AACzB,CAAC;;AAED,MAAM,oBAAoB,GAAG;AAC7B,EAAE,MAAM,EAAE,UAAU;AACpB,EAAE,WAAW,EAAE,WAAW;AAC1B,EAAE,IAAI,EAAE,gCAAgC;AACxC,CAAC;AACD,MAAM,oBAAoB,GAAG;AAC7B,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAA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BAAgB;AACnC,IAAI,iBAAiB,EAAE,MAAM;AAC7B,IAAI,aAAa,EAAE,gBAAgB;AACnC,IAAI,iBAAiB,EAAE,KAAK;AAC5B,GAAG,CAAC;;AAEJ,EAAE,SAAS,EAAEA,yBAAY,CAAC;AAC1B,IAAI,aAAa,EAAE,sBAAsB;AACzC,IAAI,iBAAiB,EAAE,KAAK;AAC5B,IAAI,aAAa,EAAE,sBAAsB;AACzC,IAAI,iBAAiB,EAAE,KAAK;AAC5B,GAAG,CAAC;AACJ;;;;","x_google_ignoreList":[0]}
@@ -1,34 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var formatDistance = require('./en-US/_lib/formatDistance.cjs');
6
- var formatLong = require('./en-US/_lib/formatLong.cjs');
7
- var formatRelative = require('./en-US/_lib/formatRelative.cjs');
8
- var localize = require('./en-US/_lib/localize.cjs');
9
- var match = require('./en-US/_lib/match.cjs');
10
-
11
- /**
12
- * @category Locales
13
- * @summary English locale (United States).
14
- * @language English
15
- * @iso-639-2 eng
16
- * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp)
17
- * @author Lesha Koss [@leshakoss](https://github.com/leshakoss)
18
- */
19
- const enUS = {
20
- code: "en-US",
21
- formatDistance: formatDistance.formatDistance,
22
- formatLong: formatLong.formatLong,
23
- formatRelative: formatRelative.formatRelative,
24
- localize: localize.localize,
25
- match: match.match,
26
- options: {
27
- weekStartsOn: 0 /* Sunday */,
28
- firstWeekContainsDate: 1,
29
- },
30
- };
31
-
32
- exports.default = enUS;
33
- exports.enUS = enUS;
34
- //# sourceMappingURL=en-US.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"en-US.cjs","sources":["../../../../../../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US.js"],"sourcesContent":["import { formatDistance } from \"./en-US/_lib/formatDistance.js\";\nimport { formatLong } from \"./en-US/_lib/formatLong.js\";\nimport { formatRelative } from \"./en-US/_lib/formatRelative.js\";\nimport { localize } from \"./en-US/_lib/localize.js\";\nimport { match } from \"./en-US/_lib/match.js\";\n\n/**\n * @category Locales\n * @summary English locale (United States).\n * @language English\n * @iso-639-2 eng\n * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp)\n * @author Lesha Koss [@leshakoss](https://github.com/leshakoss)\n */\nexport const enUS = {\n code: \"en-US\",\n formatDistance: formatDistance,\n formatLong: formatLong,\n formatRelative: formatRelative,\n localize: localize,\n match: match,\n options: {\n weekStartsOn: 0 /* Sunday */,\n firstWeekContainsDate: 1,\n },\n};\n\n// Fallback for modularized imports:\nexport default enUS;\n"],"names":["formatDistance","formatLong","formatRelative","localize","match"],"mappings":";;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,IAAI,GAAG;AACpB,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,cAAc,EAAEA,6BAAc;AAChC,EAAE,UAAU,EAAEC,qBAAU;AACxB,EAAE,cAAc,EAAEC,6BAAc;AAChC,EAAE,QAAQ,EAAEC,iBAAQ;AACpB,EAAE,KAAK,EAAEC,WAAK;AACd,EAAE,OAAO,EAAE;AACX,IAAI,YAAY,EAAE,CAAC;AACnB,IAAI,qBAAqB,EAAE,CAAC;AAC5B,GAAG;AACH;;;;;","x_google_ignoreList":[0]}