@rpcbase/ui 0.233.0 → 0.235.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (267) hide show
  1. package/dist/components/FilesUploadField/index.d.ts.map +1 -1
  2. package/dist/index151.js +4 -4
  3. package/dist/index156.js +1 -1
  4. package/dist/index157.js +1 -1
  5. package/dist/index164.js +1 -1
  6. package/dist/index165.js +6 -6
  7. package/dist/index167.js +4 -4
  8. package/dist/index169.js +1 -1
  9. package/dist/index172.js +9 -9
  10. package/dist/index175.js +1 -1
  11. package/dist/index176.js +4 -4
  12. package/dist/index178.js +1 -1
  13. package/dist/index182.js +1 -1
  14. package/dist/index184.js +12 -12
  15. package/dist/index185.js +1 -1
  16. package/dist/index187.js +6 -6
  17. package/dist/index189.js +6 -6
  18. package/dist/index190.js +5 -5
  19. package/dist/index193.js +3 -3
  20. package/dist/index194.js +5 -5
  21. package/dist/index198.js +57 -36
  22. package/dist/index198.js.map +1 -1
  23. package/dist/index199.js.map +1 -1
  24. package/dist/index256.js +20 -14
  25. package/dist/index256.js.map +1 -1
  26. package/dist/index257.js +58 -146
  27. package/dist/index257.js.map +1 -1
  28. package/dist/index258.js +6 -30
  29. package/dist/index258.js.map +1 -1
  30. package/dist/index259.js +11 -9
  31. package/dist/index259.js.map +1 -1
  32. package/dist/index260.js +46 -44
  33. package/dist/index260.js.map +1 -1
  34. package/dist/index261.js +4 -12
  35. package/dist/index261.js.map +1 -1
  36. package/dist/index262.js +28 -43
  37. package/dist/index262.js.map +1 -1
  38. package/dist/index263.js +14 -93
  39. package/dist/index263.js.map +1 -1
  40. package/dist/index264.js +5 -86
  41. package/dist/index264.js.map +1 -1
  42. package/dist/index265.js +21 -105
  43. package/dist/index265.js.map +1 -1
  44. package/dist/index266.js +50 -51
  45. package/dist/index266.js.map +1 -1
  46. package/dist/index267.js +25 -11
  47. package/dist/index267.js.map +1 -1
  48. package/dist/index268.js +41 -37
  49. package/dist/index268.js.map +1 -1
  50. package/dist/index269.js +39 -8
  51. package/dist/index269.js.map +1 -1
  52. package/dist/index270.js +45 -117
  53. package/dist/index270.js.map +1 -1
  54. package/dist/index271.js +20 -17
  55. package/dist/index271.js.map +1 -1
  56. package/dist/index272.js +69 -14
  57. package/dist/index272.js.map +1 -1
  58. package/dist/index273.js +17 -3
  59. package/dist/index273.js.map +1 -1
  60. package/dist/index274.js +11 -36
  61. package/dist/index274.js.map +1 -1
  62. package/dist/index275.js +27 -20
  63. package/dist/index275.js.map +1 -1
  64. package/dist/index276.js +13 -9
  65. package/dist/index276.js.map +1 -1
  66. package/dist/index277.js +18 -8
  67. package/dist/index277.js.map +1 -1
  68. package/dist/index278.js +37 -20
  69. package/dist/index278.js.map +1 -1
  70. package/dist/index279.js +255 -59
  71. package/dist/index279.js.map +1 -1
  72. package/dist/index280.js +278 -6
  73. package/dist/index280.js.map +1 -1
  74. package/dist/index281.js +67 -10
  75. package/dist/index281.js.map +1 -1
  76. package/dist/index282.js +96 -47
  77. package/dist/index282.js.map +1 -1
  78. package/dist/index283.js +84 -4
  79. package/dist/index283.js.map +1 -1
  80. package/dist/index284.js +3 -29
  81. package/dist/index284.js.map +1 -1
  82. package/dist/index285.js +28 -15
  83. package/dist/index285.js.map +1 -1
  84. package/dist/index286.js +16 -5
  85. package/dist/index286.js.map +1 -1
  86. package/dist/index287.js +35 -22
  87. package/dist/index287.js.map +1 -1
  88. package/dist/index288.js +16 -51
  89. package/dist/index288.js.map +1 -1
  90. package/dist/index289.js +3 -25
  91. package/dist/index289.js.map +1 -1
  92. package/dist/index290.js +26 -41
  93. package/dist/index290.js.map +1 -1
  94. package/dist/index291.js +27 -38
  95. package/dist/index291.js.map +1 -1
  96. package/dist/index292.js +4 -45
  97. package/dist/index292.js.map +1 -1
  98. package/dist/index293.js +78 -20
  99. package/dist/index293.js.map +1 -1
  100. package/dist/index294.js +264 -65
  101. package/dist/index294.js.map +1 -1
  102. package/dist/index295.js +11 -17
  103. package/dist/index295.js.map +1 -1
  104. package/dist/index296.js +10 -11
  105. package/dist/index296.js.map +1 -1
  106. package/dist/index297.js +24 -26
  107. package/dist/index297.js.map +1 -1
  108. package/dist/index298.js +16 -13
  109. package/dist/index298.js.map +1 -1
  110. package/dist/index299.js +122 -15
  111. package/dist/index299.js.map +1 -1
  112. package/dist/index300.js +5 -36
  113. package/dist/index300.js.map +1 -1
  114. package/dist/index301.js +38 -260
  115. package/dist/index301.js.map +1 -1
  116. package/dist/index302.js +62 -275
  117. package/dist/index302.js.map +1 -1
  118. package/dist/index303.js +13 -68
  119. package/dist/index303.js.map +1 -1
  120. package/dist/index304.js +7 -99
  121. package/dist/index304.js.map +1 -1
  122. package/dist/index305.js +5 -83
  123. package/dist/index305.js.map +1 -1
  124. package/dist/index306.js +3 -3
  125. package/dist/index306.js.map +1 -1
  126. package/dist/index307.js +10 -29
  127. package/dist/index307.js.map +1 -1
  128. package/dist/index308.js +6 -15
  129. package/dist/index308.js.map +1 -1
  130. package/dist/index309.js +133 -34
  131. package/dist/index309.js.map +1 -1
  132. package/dist/index310.js +398 -15
  133. package/dist/index310.js.map +1 -1
  134. package/dist/index311.js +52 -3
  135. package/dist/index311.js.map +1 -1
  136. package/dist/index312.js +11 -26
  137. package/dist/index312.js.map +1 -1
  138. package/dist/index313.js +10 -27
  139. package/dist/index313.js.map +1 -1
  140. package/dist/index314.js +14 -4
  141. package/dist/index314.js.map +1 -1
  142. package/dist/index315.js +151 -75
  143. package/dist/index315.js.map +1 -1
  144. package/dist/index316.js +28 -267
  145. package/dist/index316.js.map +1 -1
  146. package/dist/index317.js +9 -11
  147. package/dist/index317.js.map +1 -1
  148. package/dist/index318.js +49 -11
  149. package/dist/index318.js.map +1 -1
  150. package/dist/index319.js +11 -25
  151. package/dist/index319.js.map +1 -1
  152. package/dist/index320.js +43 -15
  153. package/dist/index320.js.map +1 -1
  154. package/dist/index321.js +89 -119
  155. package/dist/index321.js.map +1 -1
  156. package/dist/index322.js +86 -5
  157. package/dist/index322.js.map +1 -1
  158. package/dist/index323.js +104 -39
  159. package/dist/index323.js.map +1 -1
  160. package/dist/index324.js +47 -60
  161. package/dist/index324.js.map +1 -1
  162. package/dist/index325.js +11 -13
  163. package/dist/index325.js.map +1 -1
  164. package/dist/index326.js +37 -7
  165. package/dist/index326.js.map +1 -1
  166. package/dist/index327.js +8 -5
  167. package/dist/index327.js.map +1 -1
  168. package/dist/index328.js +116 -3
  169. package/dist/index328.js.map +1 -1
  170. package/dist/index329.js +17 -10
  171. package/dist/index329.js.map +1 -1
  172. package/dist/index330.js +15 -7
  173. package/dist/index330.js.map +1 -1
  174. package/dist/index331.js +3 -133
  175. package/dist/index331.js.map +1 -1
  176. package/dist/index332.js +35 -398
  177. package/dist/index332.js.map +1 -1
  178. package/dist/index333.js +20 -52
  179. package/dist/index333.js.map +1 -1
  180. package/dist/index334.js +9 -11
  181. package/dist/index334.js.map +1 -1
  182. package/dist/index335.js +8 -11
  183. package/dist/index335.js.map +1 -1
  184. package/dist/index336.js +8 -19
  185. package/dist/index336.js.map +1 -1
  186. package/dist/index337.js +11 -28
  187. package/dist/index337.js.map +1 -1
  188. package/dist/index338.js +7 -15
  189. package/dist/index338.js.map +1 -1
  190. package/dist/index339.js +13 -8
  191. package/dist/index339.js.map +1 -1
  192. package/dist/index340.js +3 -11
  193. package/dist/index340.js.map +1 -1
  194. package/dist/index341.js +3 -8
  195. package/dist/index341.js.map +1 -1
  196. package/dist/index342.js +16 -12
  197. package/dist/index342.js.map +1 -1
  198. package/dist/index343.js +19 -3
  199. package/dist/index343.js.map +1 -1
  200. package/dist/index344.js +28 -3
  201. package/dist/index344.js.map +1 -1
  202. package/dist/index345.js +15 -16
  203. package/dist/index345.js.map +1 -1
  204. package/dist/index346.js +2 -2
  205. package/dist/index347.js +122 -5
  206. package/dist/index347.js.map +1 -1
  207. package/dist/index348.js +31 -121
  208. package/dist/index348.js.map +1 -1
  209. package/dist/index349.js +72 -31
  210. package/dist/index349.js.map +1 -1
  211. package/dist/index350.js +139 -70
  212. package/dist/index350.js.map +1 -1
  213. package/dist/index351.js +35 -116
  214. package/dist/index351.js.map +1 -1
  215. package/dist/index352.js +44 -56
  216. package/dist/index352.js.map +1 -1
  217. package/dist/index353.js +14 -49
  218. package/dist/index353.js.map +1 -1
  219. package/dist/index354.js +6 -15
  220. package/dist/index354.js.map +1 -1
  221. package/dist/index362.js +10 -19
  222. package/dist/index362.js.map +1 -1
  223. package/dist/index363.js +17 -4
  224. package/dist/index363.js.map +1 -1
  225. package/dist/index364.js +5 -11
  226. package/dist/index364.js.map +1 -1
  227. package/dist/index365.js +4 -17
  228. package/dist/index365.js.map +1 -1
  229. package/dist/index366.js +20 -5
  230. package/dist/index366.js.map +1 -1
  231. package/dist/index367.js +43 -19
  232. package/dist/index367.js.map +1 -1
  233. package/dist/index368.js +13 -40
  234. package/dist/index368.js.map +1 -1
  235. package/dist/index369.js +4 -17
  236. package/dist/index369.js.map +1 -1
  237. package/dist/index370.js +200 -4
  238. package/dist/index370.js.map +1 -1
  239. package/dist/index371.js +74 -197
  240. package/dist/index371.js.map +1 -1
  241. package/dist/index372.js +20 -77
  242. package/dist/index372.js.map +1 -1
  243. package/dist/index374.js +3 -3
  244. package/dist/index375.js +1 -1
  245. package/dist/index376.js +3 -3
  246. package/dist/index378.js +2 -2
  247. package/dist/index380.js +1 -1
  248. package/dist/index381.js +2 -2
  249. package/dist/index384.js +2 -2
  250. package/dist/index386.js +1 -1
  251. package/dist/index407.js +1 -1
  252. package/dist/index49.js +28 -28
  253. package/dist/index50.js +21 -21
  254. package/dist/index51.js +1 -1
  255. package/dist/index52.js +8 -8
  256. package/dist/index53.js +2 -2
  257. package/dist/index55.js +17 -17
  258. package/dist/index56.js +4 -4
  259. package/dist/index57.js +3 -3
  260. package/dist/index58.js +7 -7
  261. package/dist/index59.js +4 -4
  262. package/dist/index60.js +12 -12
  263. package/dist/index61.js +2 -2
  264. package/dist/index62.js +2 -2
  265. package/dist/index8.js +533 -698
  266. package/dist/index8.js.map +1 -1
  267. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FilesUploadField/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAmB5E,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AA0aD,KAAK,YAAY,GAAG,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAA;AAExE,KAAK,aAAa,GAAG,CACnB,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,EACtC,OAAO,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,KACnD,YAAY,CAAA;AAEjB,MAAM,MAAM,+BAA+B,GAAG;IAC5C,IAAI,EAAE,oBAAoB,CAAA;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,UAAU,GAAG,WAAW,GAAG,OAAO,CAAA;IAC1C,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,YAAY,CAAC,EAAE,oBAAoB,EAAE,CAAA;IACrC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,EAAE,KAAK,IAAI,CAAA;IAClD,MAAM,CAAC,EAAE,aAAa,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,iBAAiB,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,KAAK,IAAI,CAAA;IAClD,MAAM,CAAC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EAAE,UAAU,GAAG,WAAW,GAAG,OAAO,CAAA;IAC1C,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,YAAY,CAAC,EAAE,oBAAoB,EAAE,CAAA;IACrC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,EAAE,KAAK,IAAI,CAAA;IAClD,MAAM,CAAC,EAAE,aAAa,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,iBAAiB,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,KAAK,IAAI,CAAA;IAClD,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC1B,YAAY,CAAC,EAAE,MAAM,SAAS,CAAA;IAC9B,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,+BAA+B,KAAK,SAAS,CAAA;IAClE,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAC1B,CAAA;AA2CD,wBAAgB,gBAAgB,CAAC,EAC/B,YAAiB,EACjB,QAAQ,EACR,MAAsB,EACtB,cAAsB,EACtB,QAAgB,EAChB,iBAAiB,EACjB,MAAM,EACN,YAAY,EACZ,UAAU,EACV,kBAAyC,EACzC,qBAA8C,EAC9C,OAAgB,GACjB,EAAE,qBAAqB,2CAmwBvB"}
package/dist/index151.js CHANGED
@@ -1,8 +1,8 @@
1
- import m from "./index265.js";
2
- import p from "./index266.js";
3
- import y from "./index264.js";
1
+ import m from "./index323.js";
2
+ import p from "./index324.js";
3
+ import y from "./index322.js";
4
4
  import b from "./index164.js";
5
- import l from "./index256.js";
5
+ import l from "./index314.js";
6
6
  function i(e) {
7
7
  "@babel/helpers - typeof";
8
8
  return i = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
package/dist/index156.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index256.js";
1
+ import f from "./index314.js";
2
2
  import u from "./index158.js";
3
3
  import m from "./index159.js";
4
4
  function p(a, t, r) {
package/dist/index157.js CHANGED
@@ -1,4 +1,4 @@
1
- import w from "./index257.js";
1
+ import w from "./index315.js";
2
2
  function p(r, e) {
3
3
  var t = typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
4
4
  if (t) return (t = t.call(r)).next.bind(t);
package/dist/index164.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index267.js";
1
+ import f from "./index325.js";
2
2
  import l from "./index170.js";
3
3
  function a(n) {
4
4
  "@babel/helpers - typeof";
package/dist/index165.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import l, { validateMetadata as h } from "./index164.js";
2
- import d from "./index258.js";
3
- import v from "./index259.js";
4
- import w from "./index260.js";
5
- import P from "./index261.js";
6
- import C from "./index262.js";
2
+ import d from "./index316.js";
3
+ import v from "./index317.js";
4
+ import w from "./index318.js";
5
+ import P from "./index319.js";
6
+ import C from "./index320.js";
7
7
  import s from "./index170.js";
8
- import E from "./index263.js";
8
+ import E from "./index321.js";
9
9
  function o(r) {
10
10
  "@babel/helpers - typeof";
11
11
  return o = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
package/dist/index167.js CHANGED
@@ -1,7 +1,7 @@
1
- import b from "./index262.js";
2
- import y from "./index336.js";
3
- import m from "./index337.js";
4
- import C from "./index338.js";
1
+ import b from "./index320.js";
2
+ import y from "./index343.js";
3
+ import m from "./index344.js";
4
+ import C from "./index345.js";
5
5
  import v from "./index158.js";
6
6
  import { VALID_PUNCTUATION as s, VALID_DIGITS as g, PLUS_CHARS as p } from "./index160.js";
7
7
  function d(i) {
package/dist/index169.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import l from "./index164.js";
2
- import f from "./index260.js";
2
+ import f from "./index318.js";
3
3
  function d(e, r) {
4
4
  var t = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
5
5
  if (t) return (t = t.call(e)).next.bind(t);
package/dist/index172.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import b from "./index191.js";
2
2
  import * as c from "react";
3
3
  import { createElement as p } from "react";
4
- import { useMergedRefs as E, useMergedRefsN as g } from "./index279.js";
5
- import { getReactElementRef as y } from "./index339.js";
6
- import { mergeObjects as R } from "./index340.js";
7
- import { warn as v } from "./index341.js";
8
- import { EMPTY_OBJECT as f } from "./index286.js";
9
- import { getStateAttributesProps as w } from "./index342.js";
10
- import { resolveClassName as C } from "./index343.js";
11
- import { resolveStyle as T } from "./index344.js";
12
- import { mergeClassNames as _, mergeProps as h, mergePropsN as k } from "./index304.js";
4
+ import { useMergedRefs as E, useMergedRefsN as g } from "./index257.js";
5
+ import { getReactElementRef as y } from "./index336.js";
6
+ import { mergeObjects as R } from "./index337.js";
7
+ import { warn as v } from "./index338.js";
8
+ import { EMPTY_OBJECT as f } from "./index264.js";
9
+ import { getStateAttributesProps as w } from "./index339.js";
10
+ import { resolveClassName as C } from "./index340.js";
11
+ import { resolveStyle as T } from "./index341.js";
12
+ import { mergeClassNames as _, mergeProps as h, mergePropsN as k } from "./index282.js";
13
13
  function q(r, e, t = {}) {
14
14
  const a = e.render, s = I(e, t);
15
15
  if (t.enabled === !1)
package/dist/index175.js CHANGED
@@ -1,4 +1,4 @@
1
- import { EMPTY_OBJECT as l } from "./index286.js";
1
+ import { EMPTY_OBJECT as l } from "./index264.js";
2
2
  function u(a, n, o, s) {
3
3
  let e = !1, t = !1;
4
4
  const r = l;
package/dist/index176.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import * as l from "react";
2
- import { isHTMLElement as M } from "./index331.js";
3
- import { useStableCallback as H } from "./index284.js";
2
+ import { isHTMLElement as M } from "./index309.js";
3
+ import { useStableCallback as H } from "./index262.js";
4
4
  import { error as y } from "./index355.js";
5
5
  import { SafeReact as B } from "./index356.js";
6
- import { useIsoLayoutEffect as A } from "./index283.js";
6
+ import { useIsoLayoutEffect as A } from "./index261.js";
7
7
  import { useCompositeRootContext as L } from "./index357.js";
8
8
  import { useFocusableWhenDisabled as W } from "./index358.js";
9
- import { mergeProps as $, makeEventPreventable as x } from "./index304.js";
9
+ import { mergeProps as $, makeEventPreventable as x } from "./index282.js";
10
10
  function Y(a = {}) {
11
11
  const {
12
12
  disabled: o = !1,
package/dist/index178.js CHANGED
@@ -1,4 +1,4 @@
1
- import { useId as r } from "./index345.js";
1
+ import { useId as r } from "./index342.js";
2
2
  function i(e) {
3
3
  return r(e, "base-ui");
4
4
  }
package/dist/index182.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as l from "react";
2
- import { useStableCallback as m } from "./index284.js";
2
+ import { useStableCallback as m } from "./index262.js";
3
3
  import { useAnimationsFinished as f } from "./index346.js";
4
4
  function c(a) {
5
5
  const {
package/dist/index184.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import * as p from "react";
2
- import { isHTMLElement as G, getNodeName as We, getWindow as _e } from "./index331.js";
3
- import { addEventListener as I } from "./index322.js";
2
+ import { isHTMLElement as G, getNodeName as We, getWindow as _e } from "./index309.js";
3
+ import { addEventListener as I } from "./index300.js";
4
4
  import { mergeCleanups as Te } from "./index373.js";
5
- import { useMergedRefs as Fe } from "./index279.js";
6
- import { useValueAsRef as te } from "./index285.js";
7
- import { useStableCallback as ne } from "./index284.js";
8
- import { useIsoLayoutEffect as _ } from "./index283.js";
9
- import { useTimeout as ye } from "./index307.js";
10
- import { isWebKit as Ue } from "./index323.js";
11
- import { useAnimationFrame as $e } from "./index324.js";
12
- import { ownerDocument as O } from "./index306.js";
5
+ import { useMergedRefs as Fe } from "./index257.js";
6
+ import { useValueAsRef as te } from "./index263.js";
7
+ import { useStableCallback as ne } from "./index262.js";
8
+ import { useIsoLayoutEffect as _ } from "./index261.js";
9
+ import { useTimeout as ye } from "./index285.js";
10
+ import { isWebKit as Ue } from "./index301.js";
11
+ import { useAnimationFrame as $e } from "./index302.js";
12
+ import { ownerDocument as O } from "./index284.js";
13
13
  import { FocusGuard as xe } from "./index374.js";
14
- import { isTypeableCombobox as Ie, getFloatingFocusElement as he, isTypeableElement as Be } from "./index312.js";
14
+ import { isTypeableCombobox as Ie, getFloatingFocusElement as he, isTypeableElement as Be } from "./index290.js";
15
15
  import { isVirtualClick as ze, isVirtualPointerEvent as Je, stopEvent as Qe } from "./index375.js";
16
16
  import { isOutsideEvent as ve, getNextTabbable as Xe, getPreviousTabbable as Ye, tabbable as Se, isTabbable as ue, focusable as Ze } from "./index376.js";
17
17
  import { getNodeAncestors as Ce, getNodeChildren as ke } from "./index377.js";
@@ -25,7 +25,7 @@ import { useFloatingTree as rt } from "./index382.js";
25
25
  import { CLICK_TRIGGER_IDENTIFIER as ot } from "./index192.js";
26
26
  import { resolveRef as w } from "./index383.js";
27
27
  import { j as oe } from "./index30.js";
28
- import { activeElement as V, contains as a, getTarget as B } from "./index313.js";
28
+ import { activeElement as V, contains as a, getTarget as B } from "./index291.js";
29
29
  import { triggerHover as st, outsidePress as ut, focusOut as it } from "./index177.js";
30
30
  function ct(t, h) {
31
31
  const D = _e(B(t));
package/dist/index185.js CHANGED
@@ -1,4 +1,4 @@
1
- import { isReactVersionAtLeast as r } from "./index347.js";
1
+ import { isReactVersionAtLeast as r } from "./index354.js";
2
2
  function n(e) {
3
3
  return r(19) ? e : e ? "true" : void 0;
4
4
  }
package/dist/index187.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import * as o from "react";
2
2
  import * as I from "react-dom";
3
- import { isNode as V } from "./index331.js";
4
- import { addEventListener as O } from "./index322.js";
3
+ import { isNode as V } from "./index309.js";
4
+ import { addEventListener as O } from "./index300.js";
5
5
  import { mergeCleanups as w } from "./index373.js";
6
- import { useId as G } from "./index345.js";
7
- import { useIsoLayoutEffect as _ } from "./index283.js";
8
- import { useStableCallback as L } from "./index284.js";
9
- import { EMPTY_OBJECT as k } from "./index286.js";
6
+ import { useId as G } from "./index342.js";
7
+ import { useIsoLayoutEffect as _ } from "./index261.js";
8
+ import { useStableCallback as L } from "./index262.js";
9
+ import { EMPTY_OBJECT as k } from "./index264.js";
10
10
  import { FocusGuard as S } from "./index374.js";
11
11
  import { enableFocusInside as T, isOutsideEvent as C, getPreviousTabbable as q, getNextTabbable as A, disableFocusInside as B } from "./index376.js";
12
12
  import { createChangeEventDetails as H } from "./index175.js";
package/dist/index189.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import * as t from "react";
2
- import { useScrollLock as v } from "./index348.js";
3
- import { useOpenInteractionType as I } from "./index297.js";
2
+ import { useScrollLock as v } from "./index347.js";
3
+ import { useOpenInteractionType as I } from "./index275.js";
4
4
  import { createChangeEventDetails as A } from "./index175.js";
5
5
  import { useImplicitActiveTrigger as M, useOpenStateTransitions as B } from "./index193.js";
6
- import { useSyncedFloatingRootContext as F } from "./index349.js";
7
- import { useRole as H } from "./index350.js";
8
- import { useDismiss as K } from "./index301.js";
6
+ import { useSyncedFloatingRootContext as F } from "./index348.js";
7
+ import { useRole as H } from "./index349.js";
8
+ import { useDismiss as K } from "./index279.js";
9
9
  import { useInteractions as L } from "./index195.js";
10
- import { getTarget as U, contains as V } from "./index313.js";
10
+ import { getTarget as U, contains as V } from "./index291.js";
11
11
  import { imperativeAction as j } from "./index177.js";
12
12
  function $(P) {
13
13
  const {
package/dist/index190.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as i from "react";
2
- import { useRefWithInit as d } from "./index280.js";
3
- import { ReactStore as a } from "./index351.js";
4
- import { PopupTriggerMap as p } from "./index352.js";
5
- import { popupStoreSelectors as u, createInitialPopupStoreState as c } from "./index353.js";
6
- import { createSelector as n } from "./index354.js";
2
+ import { useRefWithInit as d } from "./index258.js";
3
+ import { ReactStore as a } from "./index350.js";
4
+ import { PopupTriggerMap as p } from "./index351.js";
5
+ import { popupStoreSelectors as u, createInitialPopupStoreState as c } from "./index352.js";
6
+ import { createSelector as n } from "./index353.js";
7
7
  const m = {
8
8
  ...u,
9
9
  modal: n((e) => e.modal),
package/dist/index193.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as l from "react";
2
- import { useStableCallback as a } from "./index284.js";
3
- import { useIsoLayoutEffect as s } from "./index283.js";
4
- import { useTransitionStatus as f } from "./index291.js";
2
+ import { useStableCallback as a } from "./index262.js";
3
+ import { useIsoLayoutEffect as s } from "./index261.js";
4
+ import { useTransitionStatus as f } from "./index269.js";
5
5
  import { useOpenChangeComplete as m } from "./index182.js";
6
6
  function d(e, n) {
7
7
  const t = l.useRef(null), r = l.useRef(null);
package/dist/index194.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import * as k from "react";
2
- import { useAnimationFrame as b } from "./index324.js";
3
- import { useTimeout as I } from "./index307.js";
4
- import { EMPTY_OBJECT as x } from "./index286.js";
5
- import { isTypeableElement as L } from "./index312.js";
2
+ import { useAnimationFrame as b } from "./index302.js";
3
+ import { useTimeout as I } from "./index285.js";
4
+ import { EMPTY_OBJECT as x } from "./index264.js";
5
+ import { isTypeableElement as L } from "./index290.js";
6
6
  import { isMouseLikePointerType as M, isClickLikeEvent as S } from "./index375.js";
7
7
  import { createChangeEventDetails as y } from "./index175.js";
8
- import { getTarget as q } from "./index313.js";
8
+ import { getTarget as q } from "./index291.js";
9
9
  import { triggerPress as A } from "./index177.js";
10
10
  function G(T, D = {}) {
11
11
  const e = "rootStore" in T ? T.rootStore : T, g = e.context.dataRef, {
package/dist/index198.js CHANGED
@@ -1,16 +1,16 @@
1
1
  import { tzOffset as s } from "./index199.js";
2
- class n extends Date {
2
+ class o extends Date {
3
3
  //#region static
4
4
  constructor(...e) {
5
- super(), e.length > 1 && typeof e[e.length - 1] == "string" && (this.timeZone = e.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(s(this.timeZone, this)) ? this.setTime(NaN) : e.length ? typeof e[0] == "number" && (e.length === 1 || e.length === 2 && typeof e[1] != "number") ? this.setTime(e[0]) : typeof e[0] == "string" ? this.setTime(+new Date(e[0])) : e[0] instanceof Date ? this.setTime(+e[0]) : (this.setTime(+new Date(...e)), U(this), a(this)) : this.setTime(Date.now());
5
+ super(), e.length > 1 && typeof e[e.length - 1] == "string" && (this.timeZone = e.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(s(this.timeZone, this)) ? this.setTime(NaN) : e.length ? typeof e[0] == "number" && (e.length === 1 || e.length === 2 && typeof e[1] != "number") ? this.setTime(e[0]) : typeof e[0] == "string" ? this.setTime(+new Date(e[0])) : e[0] instanceof Date ? this.setTime(+e[0]) : (this.setTime(+new Date(...e)), z(this, e)) : this.setTime(Date.now());
6
6
  }
7
- static tz(e, ...o) {
8
- return o.length ? new n(...o, e) : new n(Date.now(), e);
7
+ static tz(e, ...n) {
8
+ return n.length ? new o(...n, e) : new o(Date.now(), e);
9
9
  }
10
10
  //#endregion
11
11
  //#region time zone
12
12
  withTimeZone(e) {
13
- return new n(+this, e);
13
+ return new o(+this, e);
14
14
  }
15
15
  getTimezoneOffset() {
16
16
  const e = -s(this.timeZone, this);
@@ -19,52 +19,73 @@ class n extends Date {
19
19
  //#endregion
20
20
  //#region time
21
21
  setTime(e) {
22
- return Date.prototype.setTime.apply(this, arguments), a(this), +this;
22
+ return Date.prototype.setTime.apply(this, arguments), p(this), +this;
23
23
  }
24
24
  //#endregion
25
25
  //#region date-fns integration
26
26
  [/* @__PURE__ */ Symbol.for("constructDateFrom")](e) {
27
- return new n(+new Date(e), this.timeZone);
27
+ return new o(+new Date(e), this.timeZone);
28
28
  }
29
29
  //#endregion
30
30
  }
31
- const D = /^(get|set)(?!UTC)/;
31
+ const Z = /^(get|set)(?!UTC)/;
32
32
  Object.getOwnPropertyNames(Date.prototype).forEach((t) => {
33
- if (!D.test(t)) return;
34
- const e = t.replace(D, "$1UTC");
35
- n.prototype[e] && (t.startsWith("get") ? n.prototype[t] = function() {
33
+ if (!Z.test(t)) return;
34
+ const e = t.replace(Z, "$1UTC");
35
+ o.prototype[e] && (t.startsWith("get") ? o.prototype[t] = function() {
36
36
  return this.internal[e]();
37
- } : (n.prototype[t] = function() {
38
- return Date.prototype[e].apply(this.internal, arguments), H(this), +this;
39
- }, n.prototype[e] = function() {
40
- return Date.prototype[e].apply(this, arguments), a(this), +this;
37
+ } : (o.prototype[t] = function() {
38
+ return Date.prototype[e].apply(this.internal, arguments), j(this), +this;
39
+ }, o.prototype[e] = function() {
40
+ return Date.prototype[e].apply(this, arguments), p(this), +this;
41
41
  }));
42
42
  });
43
- function a(t) {
44
- t.internal.setTime(+t), t.internal.setUTCSeconds(t.internal.getUTCSeconds() - Math.round(-s(t.timeZone, t) * 60));
43
+ function p(t) {
44
+ t.internal.setTime(+t), t.internal.setUTCSeconds(t.internal.getUTCSeconds() - // Round after converting minutes to seconds to avoid fractional offset
45
+ // precision errors from historical offsets.
46
+ Math.round(-s(t.timeZone, t) * 60));
45
47
  }
46
- function H(t) {
47
- Date.prototype.setFullYear.call(t, t.internal.getUTCFullYear(), t.internal.getUTCMonth(), t.internal.getUTCDate()), Date.prototype.setHours.call(t, t.internal.getUTCHours(), t.internal.getUTCMinutes(), t.internal.getUTCSeconds(), t.internal.getUTCMilliseconds()), U(t);
48
+ function j(t) {
49
+ Date.prototype.setFullYear.call(t, t.internal.getUTCFullYear(), t.internal.getUTCMonth(), t.internal.getUTCDate()), Date.prototype.setHours.call(t, t.internal.getUTCHours(), t.internal.getUTCMinutes(), t.internal.getUTCSeconds(), t.internal.getUTCMilliseconds()), z(t);
48
50
  }
49
- function U(t) {
50
- const e = s(t.timeZone, t), o = e > 0 ? Math.floor(e) : Math.ceil(e), i = /* @__PURE__ */ new Date(+t);
51
- i.setUTCHours(i.getUTCHours() - 1);
52
- const r = -(/* @__PURE__ */ new Date(+t)).getTimezoneOffset(), g = -(/* @__PURE__ */ new Date(+i)).getTimezoneOffset(), m = r - g, M = Date.prototype.getHours.apply(t) !== t.internal.getUTCHours();
53
- m && M && t.internal.setUTCMinutes(t.internal.getUTCMinutes() + m);
54
- const f = r - o;
55
- f && Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + f);
56
- const l = /* @__PURE__ */ new Date(+t);
57
- l.setUTCSeconds(0);
58
- const y = r > 0 ? l.getSeconds() : (l.getSeconds() - 60) % 60, c = Math.round(-(s(t.timeZone, t) * 60)) % 60;
59
- (c || y) && (t.internal.setUTCSeconds(t.internal.getUTCSeconds() + c), Date.prototype.setUTCSeconds.call(t, Date.prototype.getUTCSeconds.call(t) + c + y));
60
- const p = s(t.timeZone, t), u = p > 0 ? Math.floor(p) : Math.ceil(p), w = -(/* @__PURE__ */ new Date(+t)).getTimezoneOffset() - u, O = u !== o, C = w - f;
61
- if (O && C) {
62
- Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + C);
63
- const h = s(t.timeZone, t), S = h > 0 ? Math.floor(h) : Math.ceil(h), T = u - S;
64
- T && (t.internal.setUTCMinutes(t.internal.getUTCMinutes() + T), Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + T));
51
+ function z(t, e) {
52
+ const n = Array.isArray(e) ? v(e) : +t.internal, h = s(t.timeZone, t), i = h > 0 ? Math.floor(h) : Math.ceil(h), T = /* @__PURE__ */ new Date(+t);
53
+ T.setUTCHours(T.getUTCHours() - 1);
54
+ const r = -(/* @__PURE__ */ new Date(+t)).getTimezoneOffset(), S = -(/* @__PURE__ */ new Date(+T)).getTimezoneOffset(), b = r - S;
55
+ let M = r;
56
+ if (b && r !== i) {
57
+ const l = Date.prototype.getHours.apply(t), U = Array.isArray(e) ? e[3] || 0 : t.internal.getUTCHours();
58
+ if (l !== U) {
59
+ const f = /* @__PURE__ */ new Date(+t), H = r - i;
60
+ H && f.setUTCMinutes(f.getUTCMinutes() + H);
61
+ const O = s(t.timeZone, f);
62
+ (O > 0 ? Math.floor(O) : Math.ceil(O)) === i && (M = S);
63
+ }
65
64
  }
65
+ const u = M - i;
66
+ u && Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + u);
67
+ const m = /* @__PURE__ */ new Date(+t);
68
+ m.setUTCSeconds(0);
69
+ const g = r > 0 ? m.getSeconds() : (m.getSeconds() - 60) % 60, a = Math.round(-(s(t.timeZone, t) * 60)) % 60;
70
+ (a || g) && Date.prototype.setUTCSeconds.call(t, Date.prototype.getUTCSeconds.call(t) + a + g);
71
+ const y = s(t.timeZone, t), c = y > 0 ? Math.floor(y) : Math.ceil(y), F = -(/* @__PURE__ */ new Date(+t)).getTimezoneOffset() - c, I = c !== i, D = F - u, w = c - i, N = n - c * 60 * 1e3, W = w > 0 && x(t) - n === w * 60 * 1e3 && x(t, N) !== n;
72
+ if (I && D && !W) {
73
+ Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + D);
74
+ const l = s(t.timeZone, t), U = l > 0 ? Math.floor(l) : Math.ceil(l), f = c - U;
75
+ f && D < 0 && Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + f);
76
+ }
77
+ p(t);
78
+ const C = (e ? n : n + a * 1e3) - +t.internal;
79
+ C && Math.abs(C) < 1800 * 1e3 && (Date.prototype.setTime.call(t, +t + C), p(t));
80
+ }
81
+ function v(t) {
82
+ return Date.UTC(t[0], t.length > 1 ? t[1] : 0, t.length > 2 ? t[2] : 1, ...t.slice(3));
83
+ }
84
+ function x(t, e) {
85
+ const n = new Date(e ?? +t);
86
+ return n.setUTCSeconds(n.getUTCSeconds() - Math.round(-s(t.timeZone, n) * 60)), +n;
66
87
  }
67
88
  export {
68
- n as TZDateMini
89
+ o as TZDateMini
69
90
  };
70
91
  //# sourceMappingURL=index198.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index198.js","sources":["../../../node_modules/@date-fns/tz/date/mini.js"],"sourcesContent":["import { tzOffset } from \"../tzOffset/index.js\";\nexport class TZDateMini extends Date {\n //#region static\n\n constructor(...args) {\n super();\n if (args.length > 1 && typeof args[args.length - 1] === \"string\") {\n this.timeZone = args.pop();\n }\n this.internal = new Date();\n if (isNaN(tzOffset(this.timeZone, this))) {\n this.setTime(NaN);\n } else {\n if (!args.length) {\n this.setTime(Date.now());\n } else if (typeof args[0] === \"number\" && (args.length === 1 || args.length === 2 && typeof args[1] !== \"number\")) {\n this.setTime(args[0]);\n } else if (typeof args[0] === \"string\") {\n this.setTime(+new Date(args[0]));\n } else if (args[0] instanceof Date) {\n this.setTime(+args[0]);\n } else {\n this.setTime(+new Date(...args));\n adjustToSystemTZ(this, NaN);\n syncToInternal(this);\n }\n }\n }\n static tz(tz, ...args) {\n return args.length ? new TZDateMini(...args, tz) : new TZDateMini(Date.now(), tz);\n }\n\n //#endregion\n\n //#region time zone\n\n withTimeZone(timeZone) {\n return new TZDateMini(+this, timeZone);\n }\n getTimezoneOffset() {\n const offset = -tzOffset(this.timeZone, this);\n // Remove the seconds offset\n // use Math.floor for negative GMT timezones and Math.ceil for positive GMT timezones.\n return offset > 0 ? Math.floor(offset) : Math.ceil(offset);\n }\n\n //#endregion\n\n //#region time\n\n setTime(time) {\n Date.prototype.setTime.apply(this, arguments);\n syncToInternal(this);\n return +this;\n }\n\n //#endregion\n\n //#region date-fns integration\n\n [Symbol.for(\"constructDateFrom\")](date) {\n return new TZDateMini(+new Date(date), this.timeZone);\n }\n\n //#endregion\n}\n\n// Assign getters and setters\nconst re = /^(get|set)(?!UTC)/;\nObject.getOwnPropertyNames(Date.prototype).forEach(method => {\n if (!re.test(method)) return;\n const utcMethod = method.replace(re, \"$1UTC\");\n // Filter out methods without UTC counterparts\n if (!TZDateMini.prototype[utcMethod]) return;\n if (method.startsWith(\"get\")) {\n // Delegate to internal date's UTC method\n TZDateMini.prototype[method] = function () {\n return this.internal[utcMethod]();\n };\n } else {\n // Assign regular setter\n TZDateMini.prototype[method] = function () {\n Date.prototype[utcMethod].apply(this.internal, arguments);\n syncFromInternal(this);\n return +this;\n };\n\n // Assign UTC setter\n TZDateMini.prototype[utcMethod] = function () {\n Date.prototype[utcMethod].apply(this, arguments);\n syncToInternal(this);\n return +this;\n };\n }\n});\n\n/**\n * Function syncs time to internal date, applying the time zone offset.\n *\n * @param {Date} date - Date to sync\n */\nfunction syncToInternal(date) {\n date.internal.setTime(+date);\n date.internal.setUTCSeconds(date.internal.getUTCSeconds() - Math.round(-tzOffset(date.timeZone, date) * 60));\n}\n\n/**\n * Function syncs the internal date UTC values to the date. It allows to get\n * accurate timestamp value.\n *\n * @param {Date} date - The date to sync\n */\nfunction syncFromInternal(date) {\n // First we transpose the internal values\n Date.prototype.setFullYear.call(date, date.internal.getUTCFullYear(), date.internal.getUTCMonth(), date.internal.getUTCDate());\n Date.prototype.setHours.call(date, date.internal.getUTCHours(), date.internal.getUTCMinutes(), date.internal.getUTCSeconds(), date.internal.getUTCMilliseconds());\n\n // Now we have to adjust the date to the system time zone\n adjustToSystemTZ(date);\n}\n\n/**\n * Function adjusts the date to the system time zone. It uses the time zone\n * differences to calculate the offset and adjust the date.\n *\n * @param {Date} date - Date to adjust\n */\nfunction adjustToSystemTZ(date) {\n // Save the time zone offset before all the adjustments\n const baseOffset = tzOffset(date.timeZone, date);\n // Remove the seconds offset\n // use Math.floor for negative GMT timezones and Math.ceil for positive GMT timezones.\n const offset = baseOffset > 0 ? Math.floor(baseOffset) : Math.ceil(baseOffset);\n //#region System DST adjustment\n\n // The biggest problem with using the system time zone is that when we create\n // a date from internal values stored in UTC, the system time zone might end\n // up on the DST hour:\n //\n // $ TZ=America/New_York node\n // > new Date(2020, 2, 8, 1).toString()\n // 'Sun Mar 08 2020 01:00:00 GMT-0500 (Eastern Standard Time)'\n // > new Date(2020, 2, 8, 2).toString()\n // 'Sun Mar 08 2020 03:00:00 GMT-0400 (Eastern Daylight Time)'\n // > new Date(2020, 2, 8, 3).toString()\n // 'Sun Mar 08 2020 03:00:00 GMT-0400 (Eastern Daylight Time)'\n // > new Date(2020, 2, 8, 4).toString()\n // 'Sun Mar 08 2020 04:00:00 GMT-0400 (Eastern Daylight Time)'\n //\n // Here we get the same hour for both 2 and 3, because the system time zone\n // has DST beginning at 8 March 2020, 2 a.m. and jumps to 3 a.m. So we have\n // to adjust the internal date to reflect that.\n //\n // However we want to adjust only if that's the DST hour the change happenes,\n // not the hour where DST moves to.\n\n // We calculate the previous hour to see if the time zone offset has changed\n // and we have landed on the DST hour.\n const prevHour = new Date(+date);\n // We use UTC methods here as we don't want to land on the same hour again\n // in case of DST.\n prevHour.setUTCHours(prevHour.getUTCHours() - 1);\n\n // Calculate if we are on the system DST hour.\n const systemOffset = -new Date(+date).getTimezoneOffset();\n const prevHourSystemOffset = -new Date(+prevHour).getTimezoneOffset();\n const systemDSTChange = systemOffset - prevHourSystemOffset;\n // Detect the DST shift. System DST change will occur both on\n const dstShift = Date.prototype.getHours.apply(date) !== date.internal.getUTCHours();\n\n // Move the internal date when we are on the system DST hour.\n if (systemDSTChange && dstShift) date.internal.setUTCMinutes(date.internal.getUTCMinutes() + systemDSTChange);\n\n //#endregion\n\n //#region System diff adjustment\n\n // Now we need to adjust the date, since we just applied internal values.\n // We need to calculate the difference between the system and date time zones\n // and apply it to the date.\n\n const offsetDiff = systemOffset - offset;\n if (offsetDiff) Date.prototype.setUTCMinutes.call(date, Date.prototype.getUTCMinutes.call(date) + offsetDiff);\n\n //#endregion\n\n //#region Seconds System diff adjustment\n\n const systemDate = new Date(+date);\n // Set the UTC seconds to 0 to isolate the timezone offset in seconds.\n systemDate.setUTCSeconds(0);\n // For negative systemOffset, invert the seconds.\n const systemSecondsOffset = systemOffset > 0 ? systemDate.getSeconds() : (systemDate.getSeconds() - 60) % 60;\n\n // Calculate the seconds offset based on the timezone offset.\n const secondsOffset = Math.round(-(tzOffset(date.timeZone, date) * 60)) % 60;\n if (secondsOffset || systemSecondsOffset) {\n date.internal.setUTCSeconds(date.internal.getUTCSeconds() + secondsOffset);\n Date.prototype.setUTCSeconds.call(date, Date.prototype.getUTCSeconds.call(date) + secondsOffset + systemSecondsOffset);\n }\n\n //#endregion\n\n //#region Post-adjustment DST fix\n\n const postBaseOffset = tzOffset(date.timeZone, date);\n // Remove the seconds offset\n // use Math.floor for negative GMT timezones and Math.ceil for positive GMT timezones.\n const postOffset = postBaseOffset > 0 ? Math.floor(postBaseOffset) : Math.ceil(postBaseOffset);\n const postSystemOffset = -new Date(+date).getTimezoneOffset();\n const postOffsetDiff = postSystemOffset - postOffset;\n const offsetChanged = postOffset !== offset;\n const postDiff = postOffsetDiff - offsetDiff;\n if (offsetChanged && postDiff) {\n Date.prototype.setUTCMinutes.call(date, Date.prototype.getUTCMinutes.call(date) + postDiff);\n\n // Now we need to check if got offset change during the post-adjustment.\n // If so, we also need both dates to reflect that.\n\n const newBaseOffset = tzOffset(date.timeZone, date);\n // Remove the seconds offset\n // use Math.floor for negative GMT timezones and Math.ceil for positive GMT timezones.\n const newOffset = newBaseOffset > 0 ? Math.floor(newBaseOffset) : Math.ceil(newBaseOffset);\n const offsetChange = postOffset - newOffset;\n if (offsetChange) {\n date.internal.setUTCMinutes(date.internal.getUTCMinutes() + offsetChange);\n Date.prototype.setUTCMinutes.call(date, Date.prototype.getUTCMinutes.call(date) + offsetChange);\n }\n }\n\n //#endregion\n}"],"names":["TZDateMini","args","tzOffset","adjustToSystemTZ","syncToInternal","tz","timeZone","offset","time","date","re","method","utcMethod","syncFromInternal","baseOffset","prevHour","systemOffset","prevHourSystemOffset","systemDSTChange","dstShift","offsetDiff","systemDate","systemSecondsOffset","secondsOffset","postBaseOffset","postOffset","postOffsetDiff","offsetChanged","postDiff","newBaseOffset","newOffset","offsetChange"],"mappings":";AACO,MAAMA,UAAmB,KAAK;AAAA;AAAA,EAGnC,eAAeC,GAAM;AACnB,UAAK,GACDA,EAAK,SAAS,KAAK,OAAOA,EAAKA,EAAK,SAAS,CAAC,KAAM,aACtD,KAAK,WAAWA,EAAK,IAAG,IAE1B,KAAK,WAAW,oBAAI,KAAI,GACpB,MAAMC,EAAS,KAAK,UAAU,IAAI,CAAC,IACrC,KAAK,QAAQ,GAAG,IAEXD,EAAK,SAEC,OAAOA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D,IAAgB,IAAI,KAAK,MAAMA,CAAa,IAAI,KAAK,KAAKA,CAAa,GACnFE,IAAeN,IAAaK;AAClC,IAAIC,MACFtB,EAAK,SAAS,cAAcA,EAAK,SAAS,cAAa,IAAKsB,CAAY,GACxE,KAAK,UAAU,cAAc,KAAKtB,GAAM,KAAK,UAAU,cAAc,KAAKA,CAAI,IAAIsB,CAAY;AAAA,EAElG;AAGF;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index198.js","sources":["../../../node_modules/@date-fns/tz/date/mini.js"],"sourcesContent":["import { tzOffset } from \"../tzOffset/index.js\";\n\n// TZDate stores time in two `Date` objects because native `Date` can only\n// expose local fields in the system time zone.\n//\n// The external date (`this`) stores the real timestamp. It is the value used by\n// `getTime()`, `valueOf()`, UTC getters/setters, comparisons, and arithmetic.\n// Its local getters are not used for target-zone fields because they would read\n// the timestamp through the system time zone.\n//\n// The internal date (`this.internal`) stores the target-zone wall-clock fields.\n// We read and write those fields through UTC getters/setters so the host system\n// time zone cannot reinterpret them. For example, `getHours()` returns\n// `internal.getUTCHours()`, and `setHours()` writes `internal.setUTCHours(...)`.\n//\n// Syncing moves data between the two representations:\n//\n// - `syncToInternal` starts from the external timestamp and rebuilds internal\n// wall-clock fields using `this.timeZone` offset.\n//\n// - `syncFromInternal` starts from internal wall-clock fields, writes them into\n// the external date, then adjusts that timestamp for the system/target offset\n// difference and DST edge cases.\n//\n// The public TZDate value is the combination of both: external is the instant,\n// internal is the wall-clock view of that instant in `this.timeZone`.\n\nexport class TZDateMini extends Date {\n //#region static\n\n constructor(...args) {\n super();\n\n // Time zone string is always the last string argument unless date string\n // is passed (as a single argument).\n if (args.length > 1 && typeof args[args.length - 1] === \"string\") {\n this.timeZone = args.pop();\n }\n this.internal = new Date();\n\n // Validate the time zone by checking its offset.\n if (isNaN(tzOffset(this.timeZone, this))) {\n this.setTime(NaN);\n } else {\n if (!args.length) {\n // No arguments passed: use current time\n this.setTime(Date.now());\n } else if (typeof args[0] === \"number\" && (args.length === 1 || args.length === 2 && typeof args[1] !== \"number\")) {\n // Timestamp passed: use it as is\n this.setTime(args[0]);\n } else if (typeof args[0] === \"string\") {\n // `Date` string passed: parse it as external date\n this.setTime(+new Date(args[0]));\n } else if (args[0] instanceof Date) {\n // `Date` passed: use its timestamp\n this.setTime(+args[0]);\n } else {\n // `Date` values passed:\n\n // Set it as external date.\n this.setTime(+new Date(...args));\n\n // Adjust internal and external dates considering that we might have\n // landed on the DST hour.\n adjustToSystemTZ(this, args);\n }\n }\n }\n static tz(tz, ...args) {\n return args.length ? new TZDateMini(...args, tz) : new TZDateMini(Date.now(), tz);\n }\n\n //#endregion\n\n //#region time zone\n\n withTimeZone(timeZone) {\n return new TZDateMini(+this, timeZone);\n }\n getTimezoneOffset() {\n const offset = -tzOffset(this.timeZone, this);\n // Remove the seconds offset using `Math.floor` for negative UTC time zones\n // and `Math.ceil` for positive UTC time zones.\n return offset > 0 ? Math.floor(offset) : Math.ceil(offset);\n }\n\n //#endregion\n\n //#region time\n\n setTime(_time) {\n // Use the native `setTime` to the external date time.\n Date.prototype.setTime.apply(this, arguments);\n\n // Then apply it to the internal date adjusting to the timezone offset.\n syncToInternal(this);\n return +this;\n }\n\n //#endregion\n\n //#region date-fns integration\n\n [Symbol.for(\"constructDateFrom\")](date) {\n return new TZDateMini(+new Date(date), this.timeZone);\n }\n\n //#endregion\n}\n\n// Assign getters and setters\nconst re = /^(get|set)(?!UTC)/;\nObject.getOwnPropertyNames(Date.prototype).forEach(method => {\n if (!re.test(method)) return;\n const utcMethod = method.replace(re, \"$1UTC\");\n // Filter out methods without UTC counterparts\n if (!TZDateMini.prototype[utcMethod]) return;\n if (method.startsWith(\"get\")) {\n // Delegate to internal date's UTC method\n TZDateMini.prototype[method] = function () {\n return this.internal[utcMethod]();\n };\n } else {\n // Assign regular setter\n TZDateMini.prototype[method] = function () {\n Date.prototype[utcMethod].apply(this.internal, arguments);\n syncFromInternal(this);\n return +this;\n };\n\n // Assign UTC setter\n TZDateMini.prototype[utcMethod] = function () {\n Date.prototype[utcMethod].apply(this, arguments);\n syncToInternal(this);\n return +this;\n };\n }\n});\n\n/**\n * @internal\n * Function syncs time to internal date, applying the current time zone offset.\n *\n * @param {Date} date - `Date` to sync\n */\nfunction syncToInternal(date) {\n // Start internal from the same real timestamp as external.\n date.internal.setTime(+date);\n\n // Shift internal by the target offset so its UTC fields become the target-zone\n // wall-clock fields for the external timestamp.\n //\n // o internal UTC fields: 2024-02-11 00:00\n // |\n // | + Asia/Singapore offset (+08:00)\n // v\n // x internal UTC fields: 2024-02-11 08:00\n //\n date.internal.setUTCSeconds(date.internal.getUTCSeconds() -\n // Round after converting minutes to seconds to avoid fractional offset\n // precision errors from historical offsets.\n Math.round(-tzOffset(date.timeZone, date) * 60));\n}\n\n/**\n * @internal\n * Function syncs internal wall-clock fields into the external date.\n *\n * @param {Date} date - The date to sync\n */\nfunction syncFromInternal(date) {\n // Copy target-zone wall-clock fields from internal into external using native\n // local setters. At this point external holds the right field values but they\n // are interpreted in the system time zone; `adjustToSystemTZ` fixes that.\n Date.prototype.setFullYear.call(date, date.internal.getUTCFullYear(), date.internal.getUTCMonth(), date.internal.getUTCDate());\n Date.prototype.setHours.call(date, date.internal.getUTCHours(), date.internal.getUTCMinutes(), date.internal.getUTCSeconds(), date.internal.getUTCMilliseconds());\n\n // Now we have to adjust the date to the system time zone\n adjustToSystemTZ(date);\n}\n\n/**\n * @internal\n * Function adjusts the date to the system time zone. It uses the time zone\n * differences to calculate the offset and adjust the date.\n *\n * We use it when constructing `TZDate` and syncing the external date from\n * the internal one.\n *\n * @param {TZDate} date - `TZDate` to adjust.\n */\nfunction adjustToSystemTZ(date, constructorArgs) {\n // Keep the intended target-zone wall-clock value before native Date/system\n // time zone normalization can move it. Later corrections compare against this\n // value to distinguish intended DST normalization from accidental drift.\n const expectedInternalTime = Array.isArray(constructorArgs) ? constructorArgsToInternalTime(constructorArgs) : +date.internal;\n //#region Initial offset calculation\n\n // Current target time zone offset at the native timestamp. It may include\n // historical offset seconds, which we preserve for the seconds adjustment.\n const offsetWithSeconds = tzOffset(date.timeZone, date);\n\n // Minute-precision target offset used by minute-based timestamp adjustments.\n // Historical offsets can contain seconds, so we strip the fractional minute\n // here and handle remaining seconds in the seconds adjustment below.\n const offset = offsetWithSeconds > 0 ? Math.floor(offsetWithSeconds) : Math.ceil(offsetWithSeconds);\n\n //#endregion\n\n //#region System DST adjustment\n\n // Native `Date` may normalize the requested wall time when the system time\n // zone skips that hour for DST.\n //\n // We compare the system wall-clock hour represented by the external date with\n // the wall-clock hour stored in the internal date. If they differ, the next\n // offset-diff calculation may need the previous system offset, because the\n // current external timestamp is already after the system DST jump.\n\n // Previous-hour reference used to detect whether the system offset changed\n // immediately before the current native timestamp.\n const prevHour = new Date(+date);\n\n // Use UTC math so subtracting one hour cannot be normalized back into the\n // same missing local DST hour.\n prevHour.setUTCHours(prevHour.getUTCHours() - 1);\n\n // Current system offset at the native timestamp.\n const systemOffset = -new Date(+date).getTimezoneOffset();\n\n // System offset one real hour before the native timestamp.\n const prevHourSystemOffset = -new Date(+prevHour).getTimezoneOffset();\n\n // Non-zero when the system offset changed between `prevHour` and `date`.\n const systemDSTChange = systemOffset - prevHourSystemOffset;\n\n // System offset to use in the later system-target offset difference.\n // Defaults to the current system offset and switches to the previous offset\n // only when native `Date` normalized a missing system wall time.\n let systemOffsetForDiff = systemOffset;\n if (systemDSTChange && systemOffset !== offset) {\n // System wall-clock hour represented by the current external timestamp.\n const systemHour = Date.prototype.getHours.apply(date);\n\n // Target wall-clock hour currently stored in internal fields. Constructors\n // get it from arguments because internal may have already been synced from\n // the normalized external timestamp; setters get it directly from internal.\n const expectedHour = Array.isArray(constructorArgs) ? constructorArgs[3] || 0 : date.internal.getUTCHours();\n if (systemHour !== expectedHour) {\n // Check whether using the current system offset would keep the target\n // offset unchanged. If so, the only DST jump we crossed is the system\n // one, so the diff should use the pre-DST system offset.\n const testDate = new Date(+date);\n\n // Difference that the later offset-diff step would apply with the\n // current system offset.\n const testOffsetDiff = systemOffset - offset;\n if (testOffsetDiff) testDate.setUTCMinutes(testDate.getUTCMinutes() + testOffsetDiff);\n\n // Target offset after applying the current system offset difference.\n const testOffsetWithSeconds = tzOffset(date.timeZone, testDate);\n\n // Target offset without historical seconds, matching `offset`.\n const testOffset = testOffsetWithSeconds > 0 ? Math.floor(testOffsetWithSeconds) : Math.ceil(testOffsetWithSeconds);\n if (testOffset === offset) systemOffsetForDiff = prevHourSystemOffset;\n }\n }\n\n //#endregion\n\n //#region System diff adjustment\n\n // Move external from the system-zone interpretation of internal fields toward\n // the timestamp that represents those fields in the target time zone.\n //\n // At this point native `Date` has treated the internal wall-clock fields as if\n // they belonged to the system zone. The system-target offset difference moves\n // external by the distance between that system interpretation and the target\n // interpretation.\n\n // Difference between the system offset selected above and the minute-precision\n // target offset. Positive values move external forward; negative values move\n // it backward.\n const offsetDiff = systemOffsetForDiff - offset;\n if (offsetDiff)\n // Apply the system-target minute difference to external. Internal is\n // rebuilt from the final external timestamp after all adjustments are\n // complete.\n //\n // o external as target: 2023-01-31 23:00\n // |\n // | add `offsetDiff`\n // v\n // x external as target: 2023-02-01 12:00\n //\n Date.prototype.setUTCMinutes.call(date, Date.prototype.getUTCMinutes.call(date) + offsetDiff);\n\n //#endregion\n\n //#region Seconds system diff adjustment\n\n // Historical time zone offsets can include seconds, but the minute-based\n // offset adjustment above intentionally used minute precision.\n //\n // This adjustment applies the remaining seconds difference to external. For\n // example, historical Singapore used UTC+06:55:25, while ISO formatting shows\n // only `+06:55`; without the seconds correction, setter paths keep the wrong\n // wall-clock seconds.\n\n // Clone external as a native `Date` so we can inspect how the system time zone\n // represents the same timestamp.\n const systemDate = new Date(+date);\n\n // Zero UTC seconds before reading system seconds. Any remaining local seconds\n // then come from the system time zone offset rather than from the timestamp's\n // own seconds value.\n systemDate.setUTCSeconds(0);\n\n // Seconds part contributed by the system time zone offset. Negative offsets\n // need wrapping because `Date#getSeconds()` returns values in the 0..59 range.\n const systemSecondsOffset = systemOffset > 0 ? systemDate.getSeconds() : (systemDate.getSeconds() - 60) % 60;\n\n // Seconds part contributed by the target time zone offset.\n const secondsOffset = Math.round(-(tzOffset(date.timeZone, date) * 60)) % 60;\n if (secondsOffset || systemSecondsOffset)\n // Apply the remaining second-level system-target difference to external.\n //\n // o external as Asia/Singapore: 1900-01-01 00:00:56\n // |\n // | + `secondsOffset`\n // | + `systemSecondsOffset`\n // v\n // x external as Asia/Singapore: 1900-01-01 00:00:31\n //\n Date.prototype.setUTCSeconds.call(date, Date.prototype.getUTCSeconds.call(date) + secondsOffset + systemSecondsOffset);\n\n //#endregion\n\n //#region Post-adjustment DST fix\n\n // The first system-target offset move can cross a target-zone DST boundary.\n //\n // When that happens, the target offset at the new external timestamp differs\n // from the target offset used for `offsetDiff`. We compare the original move\n // with the move that would be calculated at the new timestamp, then apply the\n // difference to external.\n\n // Target offset at the current external timestamp, including historical\n // seconds for the later seconds adjustment.\n const postOffsetWithSeconds = tzOffset(date.timeZone, date);\n\n // Minute-precision target offset at the current external timestamp.\n const postOffset = postOffsetWithSeconds > 0 ? Math.floor(postOffsetWithSeconds) : Math.ceil(postOffsetWithSeconds);\n\n // System offset at the current external timestamp.\n const postSystemOffset = -new Date(+date).getTimezoneOffset();\n\n // System-target offset difference at the current external timestamp.\n const postOffsetDiff = postSystemOffset - postOffset;\n\n // Whether the target offset changed after the first offset move.\n const offsetChanged = postOffset !== offset;\n\n // Difference between the current offset move and the move already applied.\n const postDiff = postOffsetDiff - offsetDiff;\n\n // If the first offset move already normalized a target DST gap forward, the\n // generic post-DST correction below would undo that valid normalization. This\n // happens, for example, with America/New_York 02:00 during spring-forward when\n // the system zone also changes offset around the same instant.\n const targetDSTShift = postOffset - offset;\n\n // Candidate timestamp that would represent the requested wall-clock time with\n // the post-transition target offset. If it still does not round-trip to the\n // requested wall-clock fields, the requested time is inside a target DST gap.\n const postOffsetCandidate = expectedInternalTime - postOffset * 60 * 1000;\n\n // Only positive target offset shifts are spring-forward gaps. Negative shifts\n // are fall-back overlaps and still need the regular post-adjustment path.\n const normalizedTargetDSTGap = targetDSTShift > 0 && targetInternalTime(date) - expectedInternalTime === targetDSTShift * 60 * 1000 && targetInternalTime(date, postOffsetCandidate) !== expectedInternalTime;\n if (offsetChanged && postDiff && !normalizedTargetDSTGap) {\n // Apply the target-DST correction to external. In the backward-crossing case\n // shown here, this lands on an intermediate value that needs `offsetChange`\n // below.\n //\n // o external as America/New_York: 2023-03-12 03:00 EDT\n // |\n // | + `postDiff`\n // v\n // x external as America/New_York: 2023-03-12 01:00 EST\n //\n Date.prototype.setUTCMinutes.call(date, Date.prototype.getUTCMinutes.call(date) + postDiff);\n\n // Target offset after applying `postDiff`. It may change again if the\n // correction itself crosses a target-zone DST boundary.\n const newOffsetWithSeconds = tzOffset(date.timeZone, date);\n\n // Minute-precision target offset after applying `postDiff`.\n const newOffset = newOffsetWithSeconds > 0 ? Math.floor(newOffsetWithSeconds) : Math.ceil(newOffsetWithSeconds);\n\n // Offset change caused by the `postDiff` move itself.\n const offsetChange = postOffset - newOffset;\n\n // If the correction moved external backward across the target DST boundary,\n // apply the boundary change so external lands on the valid target-zone\n // timestamp. Forward crossings are already normalized by native Date, and\n // applying this correction there would undo the valid post-DST result.\n if (offsetChange && postDiff < 0) {\n // Apply the second target-DST correction to external.\n //\n // o external as America/New_York: 2023-03-12 01:00 EST\n // |\n // | + `offsetChange`\n // v\n // x external as America/New_York: 2023-03-12 03:00 EDT\n //\n Date.prototype.setUTCMinutes.call(date, Date.prototype.getUTCMinutes.call(date) + offsetChange);\n }\n }\n\n //#endregion\n\n // Rebuild internal wall-clock fields from the final external timestamp.\n syncToInternal(date);\n\n // Native Date can normalize historical system offsets with minute and second\n // precision before we adjust to the target time zone. Correct only small\n // historical drift so DST gap normalization (usually one hour) remains intact.\n const expectedTime = constructorArgs ? expectedInternalTime : expectedInternalTime + secondsOffset * 1000;\n const drift = expectedTime - +date.internal;\n if (drift && Math.abs(drift) < 30 * 60 * 1000) {\n Date.prototype.setTime.call(date, +date + drift);\n syncToInternal(date);\n }\n}\nfunction constructorArgsToInternalTime(args) {\n // Mirror Date's date-value constructor defaults while preserving explicit\n // `undefined` behavior. Missing month/day default, but passed `undefined`\n // should remain invalid just like `Date.UTC(year, undefined, ...)`.\n return Date.UTC(args[0], args.length > 1 ? args[1] : 0, args.length > 2 ? args[2] : 1, ...args.slice(3));\n}\nfunction targetInternalTime(date, time) {\n // Compute the target-zone wall-clock representation for a timestamp without\n // mutating the TZDate. This mirrors syncToInternal for temporary checks.\n const internal = new Date(time ?? +date);\n internal.setUTCSeconds(internal.getUTCSeconds() - Math.round(-tzOffset(date.timeZone, internal) * 60));\n return +internal;\n}"],"names":["TZDateMini","args","tzOffset","adjustToSystemTZ","tz","timeZone","offset","_time","syncToInternal","date","re","method","utcMethod","syncFromInternal","constructorArgs","expectedInternalTime","constructorArgsToInternalTime","offsetWithSeconds","prevHour","systemOffset","prevHourSystemOffset","systemDSTChange","systemOffsetForDiff","systemHour","expectedHour","testDate","testOffsetDiff","testOffsetWithSeconds","offsetDiff","systemDate","systemSecondsOffset","secondsOffset","postOffsetWithSeconds","postOffset","postOffsetDiff","offsetChanged","postDiff","targetDSTShift","postOffsetCandidate","normalizedTargetDSTGap","targetInternalTime","newOffsetWithSeconds","newOffset","offsetChange","drift","time","internal"],"mappings":";AA2BO,MAAMA,UAAmB,KAAK;AAAA;AAAA,EAGnC,eAAeC,GAAM;AACnB,UAAK,GAIDA,EAAK,SAAS,KAAK,OAAOA,EAAKA,EAAK,SAAS,CAAC,KAAM,aACtD,KAAK,WAAWA,EAAK,IAAG,IAE1B,KAAK,WAAW,oBAAI,KAAI,GAGpB,MAAMC,EAAS,KAAK,UAAU,IAAI,CAAC,IACrC,KAAK,QAAQ,GAAG,IAEXD,EAAK,SAGC,OAAOA,EAAK,CAAC,KAAM,aAAaA,EAAK,WAAW,KAAKA,EAAK,WAAW,KAAK,OAAOA,EAAK,CAAC,KAAM,YAE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AAM;AAGtC,QAAMC,IAAW,IAAI,KAAKD,KAAQ,CAACpC,CAAI;AACvC,SAAAqC,EAAS,cAAcA,EAAS,cAAa,IAAK,KAAK,MAAM,CAAC5C,EAASO,EAAK,UAAUqC,CAAQ,IAAI,EAAE,CAAC,GAC9F,CAACA;AACV;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"index199.js","sources":["../../../node_modules/@date-fns/tz/tzOffset/index.js"],"sourcesContent":["const offsetFormatCache = {};\nconst offsetCache = {};\n\n/**\n * The function extracts UTC offset in minutes from the given date in specified\n * time zone.\n *\n * Unlike `Date.prototype.getTimezoneOffset`, this function returns the value\n * mirrored to the sign of the offset in the time zone. For Asia/Singapore\n * (UTC+8), `tzOffset` returns 480, while `getTimezoneOffset` returns -480.\n *\n * @param timeZone - Time zone name (IANA or UTC offset)\n * @param date - Date to check the offset for\n *\n * @returns UTC offset in minutes\n */\nexport function tzOffset(timeZone, date) {\n try {\n const format = offsetFormatCache[timeZone] ||= new Intl.DateTimeFormat(\"en-US\", {\n timeZone,\n timeZoneName: \"longOffset\"\n }).format;\n const offsetStr = format(date).split(\"GMT\")[1];\n if (offsetStr in offsetCache) return offsetCache[offsetStr];\n return calcOffset(offsetStr, offsetStr.split(\":\"));\n } catch {\n // Fallback to manual parsing if the runtime doesn't support ±HH:MM/±HHMM/±HH\n // See: https://github.com/nodejs/node/issues/53419\n if (timeZone in offsetCache) return offsetCache[timeZone];\n const captures = timeZone?.match(offsetRe);\n if (captures) return calcOffset(timeZone, captures.slice(1));\n return NaN;\n }\n}\nconst offsetRe = /([+-]\\d\\d):?(\\d\\d)?/;\nfunction calcOffset(cacheStr, values) {\n const hours = +(values[0] || 0);\n const minutes = +(values[1] || 0);\n // Convert seconds to minutes by dividing by 60 to keep the function return in minutes.\n const seconds = +(values[2] || 0) / 60;\n return offsetCache[cacheStr] = hours * 60 + minutes > 0 ? hours * 60 + minutes + seconds : hours * 60 - minutes - seconds;\n}"],"names":["offsetFormatCache","offsetCache","tzOffset","timeZone","date","offsetStr","calcOffset","captures","offsetRe","cacheStr","values","hours","minutes","seconds"],"mappings":"AAAA,MAAMA,IAAoB,CAAA,GACpBC,IAAc,CAAA;AAeb,SAASC,EAASC,GAAUC,GAAM;AACvC,MAAI;AAKF,UAAMC,KAJSL,EAAkBG,CAAQ,MAAM,IAAI,KAAK,eAAe,SAAS;AAAA,MAC9E,UAAAA;AAAA,MACA,cAAc;AAAA,IACpB,CAAK,EAAE,QACsBC,CAAI,EAAE,MAAM,KAAK,EAAE,CAAC;AAC7C,WAAIC,KAAaJ,IAAoBA,EAAYI,CAAS,IACnDC,EAAWD,GAAWA,EAAU,MAAM,GAAG,CAAC;AAAA,EACnD,QAAQ;AAGN,QAAIF,KAAYF,EAAa,QAAOA,EAAYE,CAAQ;AACxD,UAAMI,IAAWJ,GAAU,MAAMK,CAAQ;AACzC,WAAID,IAAiBD,EAAWH,GAAUI,EAAS,MAAM,CAAC,CAAC,IACpD;AAAA,EACT;AACF;AACA,MAAMC,IAAW;AACjB,SAASF,EAAWG,GAAUC,GAAQ;AACpC,QAAMC,IAAQ,EAAED,EAAO,CAAC,KAAK,IACvBE,IAAU,EAAEF,EAAO,CAAC,KAAK,IAEzBG,IAAU,EAAEH,EAAO,CAAC,KAAK,KAAK;AACpC,SAAOT,EAAYQ,CAAQ,IAAIE,IAAQ,KAAKC,IAAU,IAAID,IAAQ,KAAKC,IAAUC,IAAUF,IAAQ,KAAKC,IAAUC;AACpH;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index199.js","sources":["../../../node_modules/@date-fns/tz/tzOffset/index.js"],"sourcesContent":["const offsetFormatCache = {};\nconst offsetCache = {};\n\n/**\n * The function returns UTC offset in minutes for the given date in specified\n * time zone.\n *\n * Unlike `Date.prototype.getTimezoneOffset`, this function returns the value\n * mirrored to the sign of the offset in the time zone. For Asia/Singapore\n * (UTC+8), `tzOffset` returns `480`, while `getTimezoneOffset` returns `-480`.\n *\n * It uses `Intl.DateTimeFormat` internally to access otherwise unavailable\n * runtime's time zone data, and falls back to basic manual parsing if Intl API\n * is not supported (e.g., older Node.js versions, React Native's Hermes, etc.).\n *\n * @param timeZone - Time zone name (IANA or UTC offset).\n * @param date - Date to check the offset for.\n *\n * @returns UTC offset in minutes (e.g., `480` for date in UTC+8).\n */\nexport function tzOffset(timeZone, date) {\n try {\n // Create `Intl.DateTimeFormat` with `\"longOffset\"` that gives us consistent\n // date strings like `\"5/19/2026, GMT-08:00\"`.\n const format = offsetFormatCache[timeZone] ||= new Intl.DateTimeFormat(\"en-US\", {\n timeZone,\n timeZoneName: \"longOffset\"\n }).format;\n\n // Get `\"-08:00\"`.\n const offsetStr = format(date).split(\"GMT\")[1];\n\n // Avoid parsing the same offset string.\n if (offsetStr in offsetCache) return offsetCache[offsetStr];\n\n // Calculate offset from `[\"-08\", \"00\"]` and cache it.\n return calcOffset(offsetStr, offsetStr.split(\":\"));\n } catch {\n // Fallback to manual parsing if the runtime doesn't support\n // `±HH:MM/±HHMM/±HH`. See: https://github.com/nodejs/node/issues/53419.\n if (timeZone in offsetCache) return offsetCache[timeZone];\n const captures = timeZone?.match(offsetRe);\n if (captures) return calcOffset(timeZone, captures.slice(1));\n return NaN;\n }\n}\nconst offsetRe = /([+-]\\d\\d):?(\\d\\d)?/;\nfunction calcOffset(cacheStr, values) {\n const hours = +(values[0] || 0);\n const minutes = +(values[1] || 0);\n // Convert seconds to minutes by dividing by 60 to keep the function return in minutes.\n const seconds = +(values[2] || 0) / 60;\n return offsetCache[cacheStr] = hours * 60 + minutes > 0 ? hours * 60 + minutes + seconds : hours * 60 - minutes - seconds;\n}"],"names":["offsetFormatCache","offsetCache","tzOffset","timeZone","date","offsetStr","calcOffset","captures","offsetRe","cacheStr","values","hours","minutes","seconds"],"mappings":"AAAA,MAAMA,IAAoB,CAAA,GACpBC,IAAc,CAAA;AAmBb,SAASC,EAASC,GAAUC,GAAM;AACvC,MAAI;AASF,UAAMC,KANSL,EAAkBG,CAAQ,MAAM,IAAI,KAAK,eAAe,SAAS;AAAA,MAC9E,UAAAA;AAAA,MACA,cAAc;AAAA,IACpB,CAAK,EAAE,QAGsBC,CAAI,EAAE,MAAM,KAAK,EAAE,CAAC;AAG7C,WAAIC,KAAaJ,IAAoBA,EAAYI,CAAS,IAGnDC,EAAWD,GAAWA,EAAU,MAAM,GAAG,CAAC;AAAA,EACnD,QAAQ;AAGN,QAAIF,KAAYF,EAAa,QAAOA,EAAYE,CAAQ;AACxD,UAAMI,IAAWJ,GAAU,MAAMK,CAAQ;AACzC,WAAID,IAAiBD,EAAWH,GAAUI,EAAS,MAAM,CAAC,CAAC,IACpD;AAAA,EACT;AACF;AACA,MAAMC,IAAW;AACjB,SAASF,EAAWG,GAAUC,GAAQ;AACpC,QAAMC,IAAQ,EAAED,EAAO,CAAC,KAAK,IACvBE,IAAU,EAAEF,EAAO,CAAC,KAAK,IAEzBG,IAAU,EAAEH,EAAO,CAAC,KAAK,KAAK;AACpC,SAAOT,EAAYQ,CAAQ,IAAIE,IAAQ,KAAKC,IAAU,IAAID,IAAQ,KAAKC,IAAUC,IAAUF,IAAQ,KAAKC,IAAUC;AACpH;","x_google_ignoreList":[0]}
package/dist/index256.js CHANGED
@@ -1,17 +1,23 @@
1
- import h from "./index164.js";
2
- function L(i, r, u) {
3
- return s(i, r, void 0, u);
4
- }
5
- function s(i, r, u, e) {
6
- r && (e = new h(e.metadata), e.selectNumberingPlan(r));
7
- var f = e.type(u), n = f && f.possibleLengths() || e.possibleLengths();
8
- if (!n)
9
- return "IS_POSSIBLE";
10
- var t = i.length, l = n[0];
11
- return l === t ? "IS_POSSIBLE" : l > t ? "TOO_SHORT" : n[n.length - 1] < t ? "TOO_LONG" : n.indexOf(t, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
12
- }
1
+ const i = {
2
+ clipPath: "inset(50%)",
3
+ overflow: "hidden",
4
+ whiteSpace: "nowrap",
5
+ border: 0,
6
+ padding: 0,
7
+ width: 1,
8
+ height: 1,
9
+ margin: -1
10
+ }, e = {
11
+ ...i,
12
+ position: "fixed",
13
+ top: 0,
14
+ left: 0
15
+ }, t = {
16
+ ...i,
17
+ position: "absolute"
18
+ };
13
19
  export {
14
- s as checkNumberLengthForType,
15
- L as default
20
+ e as visuallyHidden,
21
+ t as visuallyHiddenInput
16
22
  };
17
23
  //# sourceMappingURL=index256.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index256.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js"],"sourcesContent":["import Metadata from '../metadata.js';\nimport mergeArrays from './mergeArrays.js';\nexport default function checkNumberLength(nationalNumber, country, metadata) {\n return checkNumberLengthForType(nationalNumber, country, undefined, metadata);\n}\n\n// Checks whether a number is possible for a certain `country` based on the number length.\n//\n// This function is not supported by metadata generated with ancient versions of\n// `libphonenumber-js` (before version `1.0.18`) which didn't include \"possible lengths\".\n//\n// There was also a known issue with `checkNumberLength()` function:\n// if a number is possible only in a certain `country` among several `countries`\n// that share the same \"country calling code\", that function would check\n// the possibility of the phone number only in the \"main\" `country` for the \"country calling code\"\n// and would not check if it's actually be possible in the speciifc `country`.\n//\n// For example, \"+1310xxxx\" numbers are valid in Canada.\n// However, they are not possible in the US due to being too short.\n// Since Canada and the US share the same country calling code — \"+1\" —\n// `checkNumberLength()` function used to return not \"IS_POSSIBLE\" for \"+1310xxxx\" numbers.\n//\n// In such cases, when using \"/max\" metadata, `isValid()` could output `true`\n// but at the same time `isPossible()` could output `false`, which was contradictory.\n//\n// See https://issuetracker.google.com/issues/335892662 for the discusson in Google's issues.\n//\n// The solution suggested by Google was implemented: an optional `country` argument\n// was added to `checkNumberLength()` function. If present, that `country` will be used\n// to check phone number length for that specific `country` rather than the \"main\" country\n// for the shared \"country calling code\".\n//\nexport function checkNumberLengthForType(nationalNumber, country, type, metadata) {\n // If the exact `country` is specified, it's no necessarily already selected in `metadata`.\n // Most likely, in cases when there're multiple countries corresponding to the same\n // \"country calling code\", the \"main\" country for that \"country calling code\" will be selected.\n if (country) {\n metadata = new Metadata(metadata.metadata);\n metadata.selectNumberingPlan(country);\n }\n var type_info = metadata.type(type);\n\n // There should always be \"<possiblePengths/>\" set for every type element.\n // This is declared in the XML schema.\n // For size efficiency, where a sub-description (e.g. fixed-line)\n // has the same \"<possiblePengths/>\" as the \"general description\", this is missing,\n // so we fall back to the \"general description\". Where no numbers of the type\n // exist at all, there is one possible length (-1) which is guaranteed\n // not to match the length of any real phone number.\n var possible_lengths = type_info && type_info.possibleLengths() || metadata.possibleLengths();\n // let local_lengths = type_info && type.possibleLengthsLocal() || metadata.possibleLengthsLocal()\n\n // Metadata before version `1.0.18` didn't contain `possible_lengths`.\n if (!possible_lengths) {\n return 'IS_POSSIBLE';\n }\n if (type === 'FIXED_LINE_OR_MOBILE') {\n // No such country in metadata.\n /* istanbul ignore next */\n if (!metadata.type('FIXED_LINE')) {\n // The rare case has been encountered where no fixedLine data is available\n // (true for some non-geographic entities), so we just check mobile.\n return checkNumberLengthForType(nationalNumber, country, 'MOBILE', metadata);\n }\n var mobile_type = metadata.type('MOBILE');\n if (mobile_type) {\n // Merge the mobile data in if there was any. \"Concat\" creates a new\n // array, it doesn't edit possible_lengths in place, so we don't need a copy.\n // Note that when adding the possible lengths from mobile, we have\n // to again check they aren't empty since if they are this indicates\n // they are the same as the general desc and should be obtained from there.\n possible_lengths = mergeArrays(possible_lengths, mobile_type.possibleLengths());\n // The current list is sorted; we need to merge in the new list and\n // re-sort (duplicates are okay). Sorting isn't so expensive because\n // the lists are very small.\n\n // if (local_lengths) {\n // \tlocal_lengths = mergeArrays(local_lengths, mobile_type.possibleLengthsLocal())\n // } else {\n // \tlocal_lengths = mobile_type.possibleLengthsLocal()\n // }\n }\n }\n // If the type doesn't exist then return 'INVALID_LENGTH'.\n else if (type && !type_info) {\n return 'INVALID_LENGTH';\n }\n var actual_length = nationalNumber.length;\n\n // In `libphonenumber-js` all \"local-only\" formats are dropped for simplicity.\n // // This is safe because there is never an overlap beween the possible lengths\n // // and the local-only lengths; this is checked at build time.\n // if (local_lengths && local_lengths.indexOf(nationalNumber.length) >= 0)\n // {\n // \treturn 'IS_POSSIBLE_LOCAL_ONLY'\n // }\n\n var minimum_length = possible_lengths[0];\n if (minimum_length === actual_length) {\n return 'IS_POSSIBLE';\n }\n if (minimum_length > actual_length) {\n return 'TOO_SHORT';\n }\n if (possible_lengths[possible_lengths.length - 1] < actual_length) {\n return 'TOO_LONG';\n }\n\n // We skip the first element since we've already checked it.\n return possible_lengths.indexOf(actual_length, 1) >= 0 ? 'IS_POSSIBLE' : 'INVALID_LENGTH';\n}\n//# sourceMappingURL=checkNumberLength.js.map"],"names":["checkNumberLength","nationalNumber","country","metadata","checkNumberLengthForType","type","Metadata","type_info","possible_lengths","actual_length","minimum_length"],"mappings":";AAEe,SAASA,EAAkBC,GAAgBC,GAASC,GAAU;AAC3E,SAAOC,EAAyBH,GAAgBC,GAAS,QAAWC,CAAQ;AAC9E;AA4BO,SAASC,EAAyBH,GAAgBC,GAASG,GAAMF,GAAU;AAIhF,EAAID,MACFC,IAAW,IAAIG,EAASH,EAAS,QAAQ,GACzCA,EAAS,oBAAoBD,CAAO;AAEtC,MAAIK,IAAYJ,EAAS,KAAKE,CAAI,GAS9BG,IAAmBD,KAAaA,EAAU,gBAAe,KAAMJ,EAAS,gBAAe;AAI3F,MAAI,CAACK;AACH,WAAO;AAiCT,MAAIC,IAAgBR,EAAe,QAU/BS,IAAiBF,EAAiB,CAAC;AACvC,SAAIE,MAAmBD,IACd,gBAELC,IAAiBD,IACZ,cAELD,EAAiBA,EAAiB,SAAS,CAAC,IAAIC,IAC3C,aAIFD,EAAiB,QAAQC,GAAe,CAAC,KAAK,IAAI,gBAAgB;AAC3E;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index256.js","sources":["../../../node_modules/@base-ui/utils/esm/visuallyHidden.js"],"sourcesContent":["const visuallyHiddenBase = {\n clipPath: 'inset(50%)',\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n border: 0,\n padding: 0,\n width: 1,\n height: 1,\n margin: -1\n};\nexport const visuallyHidden = {\n ...visuallyHiddenBase,\n position: 'fixed',\n top: 0,\n left: 0\n};\nexport const visuallyHiddenInput = {\n ...visuallyHiddenBase,\n position: 'absolute'\n};"],"names":["visuallyHiddenBase","visuallyHidden","visuallyHiddenInput"],"mappings":"AAAA,MAAMA,IAAqB;AAAA,EACzB,UAAU;AAAA,EACV,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,QAAQ;AACV,GACaC,IAAiB;AAAA,EAC5B,GAAGD;AAAA,EACH,UAAU;AAAA,EACV,KAAK;AAAA,EACL,MAAM;AACR,GACaE,IAAsB;AAAA,EACjC,GAAGF;AAAA,EACH,UAAU;AACZ;","x_google_ignoreList":[0]}