@okam/stack-ui 1.44.0 → 1.44.1

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 (349) hide show
  1. package/CHANGELOG.md +26 -4
  2. package/components/Popover/interface.d.ts +3 -3
  3. package/components/TagGroup/interface.d.ts +2 -2
  4. package/index.d.ts +2 -0
  5. package/index145.js +1 -1
  6. package/index145.mjs +1 -1
  7. package/index149.mjs +1 -1
  8. package/index155.js +1 -1
  9. package/index155.mjs +4 -4
  10. package/index157.js +1 -1
  11. package/index157.mjs +4 -4
  12. package/index158.js +1 -1
  13. package/index158.mjs +2 -2
  14. package/index159.js +1 -1
  15. package/index159.mjs +1 -1
  16. package/index160.js +1 -1
  17. package/index160.mjs +1 -1
  18. package/index161.js +1 -2
  19. package/index161.mjs +39 -12
  20. package/index162.js +1 -1
  21. package/index162.mjs +12 -38
  22. package/index163.js +2 -1
  23. package/index163.mjs +26 -11
  24. package/index164.js +2 -1
  25. package/index164.mjs +38 -13
  26. package/index165.js +1 -1
  27. package/index165.mjs +21 -38
  28. package/index166.js +1 -2
  29. package/index166.mjs +44 -24
  30. package/index167.js +1 -1
  31. package/index167.mjs +25 -22
  32. package/index168.js +1 -1
  33. package/index168.mjs +40 -45
  34. package/index169.js +2 -1
  35. package/index169.mjs +57 -25
  36. package/index170.js +1 -1
  37. package/index170.mjs +39 -41
  38. package/index171.js +1 -2
  39. package/index171.mjs +30 -57
  40. package/index172.js +2 -1
  41. package/index172.mjs +8 -38
  42. package/index173.js +2 -1
  43. package/index173.mjs +9 -30
  44. package/index174.js +1 -2
  45. package/index174.mjs +32 -9
  46. package/index175.js +1 -2
  47. package/index175.mjs +14 -9
  48. package/index176.js +1 -1
  49. package/index176.mjs +16 -31
  50. package/index177.js +1 -1
  51. package/index177.mjs +11 -15
  52. package/index178.js +2 -1
  53. package/index178.mjs +47 -16
  54. package/index179.js +1 -2
  55. package/index179.mjs +36 -46
  56. package/index180.js +1 -1
  57. package/index180.mjs +31 -36
  58. package/index181.js +1 -1
  59. package/index181.mjs +20 -31
  60. package/index182.js +1 -1
  61. package/index182.mjs +32 -18
  62. package/index183.js +1 -1
  63. package/index183.mjs +14 -36
  64. package/index185.js +1 -1
  65. package/index185.mjs +3 -3
  66. package/index186.js +1 -1
  67. package/index186.mjs +23 -23
  68. package/index187.js +1 -1
  69. package/index187.mjs +12 -12
  70. package/index188.js +1 -1
  71. package/index188.mjs +104 -105
  72. package/index191.js +1 -1
  73. package/index191.mjs +203 -5
  74. package/index192.js +1 -2
  75. package/index192.mjs +62 -47
  76. package/index193.js +1 -1
  77. package/index193.mjs +141 -9
  78. package/index194.js +1 -1
  79. package/index194.mjs +110 -189
  80. package/index195.js +1 -1
  81. package/index195.mjs +213 -53
  82. package/index196.js +1 -1
  83. package/index196.mjs +176 -129
  84. package/index197.js +1 -1
  85. package/index197.mjs +61 -116
  86. package/index198.js +1 -1
  87. package/index198.mjs +265 -210
  88. package/index199.js +1 -1
  89. package/index199.mjs +88 -180
  90. package/index2.mjs +35 -35
  91. package/index200.js +1 -1
  92. package/index200.mjs +179 -60
  93. package/index201.js +1 -1
  94. package/index201.mjs +71 -266
  95. package/index202.js +1 -1
  96. package/index202.mjs +52 -92
  97. package/index203.js +1 -1
  98. package/index203.mjs +120 -182
  99. package/index204.js +1 -1
  100. package/index204.mjs +108 -76
  101. package/index205.js +1 -1
  102. package/index205.mjs +114 -50
  103. package/index206.js +1 -1
  104. package/index206.mjs +64 -118
  105. package/index207.js +1 -1
  106. package/index207.mjs +105 -111
  107. package/index208.js +1 -1
  108. package/index208.mjs +47 -117
  109. package/index209.js +1 -1
  110. package/index209.mjs +88 -67
  111. package/index210.js +1 -1
  112. package/index210.mjs +68 -108
  113. package/index211.js +1 -1
  114. package/index211.mjs +45 -41
  115. package/index212.js +1 -1
  116. package/index212.mjs +83 -77
  117. package/index213.js +5 -1
  118. package/index213.mjs +59 -49
  119. package/index214.js +1 -1
  120. package/index214.mjs +12 -57
  121. package/index215.js +1 -1
  122. package/index215.mjs +5 -99
  123. package/index216.js +2 -5
  124. package/index216.mjs +48 -79
  125. package/index217.js +1 -1
  126. package/index217.mjs +9 -130
  127. package/index218.js +1 -1
  128. package/index218.mjs +52 -184
  129. package/index219.js +1 -1
  130. package/index219.mjs +130 -121
  131. package/index220.js +1 -1
  132. package/index220.mjs +14 -134
  133. package/index221.js +1 -1
  134. package/index221.mjs +41 -73
  135. package/index222.js +1 -1
  136. package/index222.mjs +231 -14
  137. package/index223.js +1 -1
  138. package/index223.mjs +120 -90
  139. package/index224.js +1 -1
  140. package/index224.mjs +66 -100
  141. package/index225.js +7 -1
  142. package/index225.mjs +439 -4
  143. package/index226.js +1 -1
  144. package/index226.mjs +58 -3
  145. package/index227.js +1 -1
  146. package/index227.mjs +52 -123
  147. package/index228.js +1 -1
  148. package/index228.mjs +4 -30
  149. package/index229.js +1 -1
  150. package/index229.mjs +24 -50
  151. package/index230.js +1 -1
  152. package/index230.mjs +46 -43
  153. package/index231.js +1 -1
  154. package/index231.mjs +5 -37
  155. package/index232.js +1 -1
  156. package/index232.mjs +24 -113
  157. package/index233.js +1 -1
  158. package/index233.mjs +11 -76
  159. package/index234.js +1 -1
  160. package/index234.mjs +4 -101
  161. package/index235.js +1 -1
  162. package/index235.mjs +15 -98
  163. package/index236.js +1 -1
  164. package/index236.mjs +36 -119
  165. package/index237.js +1 -1
  166. package/index237.mjs +41 -70
  167. package/index238.js +1 -7
  168. package/index238.mjs +27 -434
  169. package/index239.js +1 -1
  170. package/index239.mjs +30 -57
  171. package/index240.js +1 -1
  172. package/index240.mjs +11 -4
  173. package/index241.js +1 -1
  174. package/index241.mjs +27 -23
  175. package/index242.js +1 -1
  176. package/index242.mjs +15 -47
  177. package/index243.js +1 -1
  178. package/index243.mjs +9 -5
  179. package/index244.js +1 -1
  180. package/index244.mjs +6 -24
  181. package/index245.js +1 -1
  182. package/index245.mjs +5 -12
  183. package/index246.js +1 -1
  184. package/index246.mjs +7 -4
  185. package/index247.js +1 -1
  186. package/index247.mjs +29 -14
  187. package/index248.js +1 -1
  188. package/index248.mjs +17 -42
  189. package/index249.js +1 -1
  190. package/index249.mjs +41 -55
  191. package/index250.js +1 -1
  192. package/index250.mjs +7 -42
  193. package/index251.js +1 -1
  194. package/index251.mjs +15 -31
  195. package/index252.js +1 -1
  196. package/index252.mjs +3 -32
  197. package/index253.js +1 -1
  198. package/index253.mjs +19 -14
  199. package/index254.js +1 -1
  200. package/index254.mjs +34 -10
  201. package/index255.js +1 -1
  202. package/index255.mjs +21 -28
  203. package/index256.js +1 -1
  204. package/index256.mjs +26 -14
  205. package/index257.js +1 -1
  206. package/index257.mjs +129 -8
  207. package/index258.js +1 -1
  208. package/index258.mjs +190 -6
  209. package/index259.js +1 -1
  210. package/index259.mjs +9 -5
  211. package/index260.js +1 -1
  212. package/index260.mjs +3 -7
  213. package/index261.js +1 -1
  214. package/index261.mjs +35 -28
  215. package/index262.js +1 -1
  216. package/index262.mjs +5 -17
  217. package/index263.js +1 -1
  218. package/index263.mjs +27 -42
  219. package/index264.js +1 -1
  220. package/index264.mjs +6 -8
  221. package/index265.js +1 -1
  222. package/index265.mjs +124 -16
  223. package/index266.js +1 -1
  224. package/index266.mjs +135 -3
  225. package/index267.js +1 -1
  226. package/index267.mjs +75 -19
  227. package/index268.js +1 -1
  228. package/index268.mjs +12 -32
  229. package/index269.js +1 -1
  230. package/index269.mjs +93 -20
  231. package/index270.js +1 -1
  232. package/index270.mjs +105 -53
  233. package/index271.js +1 -1
  234. package/index271.mjs +4 -27
  235. package/index272.js +1 -1
  236. package/index272.mjs +3 -144
  237. package/index273.js +1 -1
  238. package/index273.mjs +119 -207
  239. package/index274.js +1 -1
  240. package/index274.mjs +29 -22
  241. package/index275.js +1 -1
  242. package/index275.mjs +51 -49
  243. package/index276.js +1 -1
  244. package/index276.mjs +43 -45
  245. package/index277.js +1 -6
  246. package/index277.mjs +35 -111
  247. package/index278.js +1 -1
  248. package/index278.mjs +114 -72
  249. package/index279.js +1 -1
  250. package/index279.mjs +76 -73
  251. package/index28.js +1 -1
  252. package/index28.mjs +38 -94
  253. package/index280.js +1 -1
  254. package/index280.mjs +101 -7
  255. package/index281.js +1 -1
  256. package/index281.mjs +98 -12
  257. package/index282.js +1 -1
  258. package/index282.mjs +144 -9
  259. package/index283.js +1 -1
  260. package/index283.mjs +207 -127
  261. package/index284.js +1 -1
  262. package/index284.mjs +22 -43
  263. package/index285.js +1 -1
  264. package/index285.mjs +44 -226
  265. package/index286.js +1 -1
  266. package/index286.mjs +45 -30
  267. package/index287.js +6 -1
  268. package/index287.mjs +112 -8
  269. package/index288.js +1 -1
  270. package/index288.mjs +72 -4
  271. package/index289.js +1 -1
  272. package/index289.mjs +71 -33
  273. package/index29.js +1 -1
  274. package/index29.mjs +2 -2
  275. package/index290.js +1 -1
  276. package/index290.mjs +7 -5
  277. package/index291.js +1 -1
  278. package/index291.mjs +11 -29
  279. package/index292.js +1 -1
  280. package/index292.mjs +31 -6
  281. package/index293.js +1 -1
  282. package/index293.mjs +3 -4
  283. package/index294.js +1 -1
  284. package/index294.mjs +4 -3
  285. package/index30.js +1 -1
  286. package/index30.mjs +1 -1
  287. package/index329.js +1 -1
  288. package/index329.mjs +17 -59
  289. package/index33.js +1 -1
  290. package/index33.mjs +2 -2
  291. package/index330.js +1 -1
  292. package/index330.mjs +30 -7
  293. package/index331.js +1 -1
  294. package/index331.mjs +63 -27
  295. package/index332.js +1 -1
  296. package/index332.mjs +15 -87
  297. package/index333.js +1 -1
  298. package/index333.mjs +48 -7
  299. package/index334.js +1 -1
  300. package/index334.mjs +7 -26
  301. package/index335.js +1 -1
  302. package/index335.mjs +26 -32
  303. package/index336.js +1 -1
  304. package/index336.mjs +87 -6
  305. package/index337.js +1 -1
  306. package/index337.mjs +9 -6
  307. package/index338.js +1 -1
  308. package/index338.mjs +23 -48
  309. package/index339.js +1 -1
  310. package/index339.mjs +32 -28
  311. package/index34.js +1 -1
  312. package/index34.mjs +3 -3
  313. package/index340.js +1 -1
  314. package/index340.mjs +6 -15
  315. package/index341.js +1 -1
  316. package/index341.mjs +6 -21
  317. package/index342.js +1 -1
  318. package/index342.mjs +28 -28
  319. package/index345.js +1 -1
  320. package/index345.mjs +1 -1
  321. package/index35.js +1 -1
  322. package/index35.mjs +1 -1
  323. package/index36.js +1 -1
  324. package/index36.mjs +2 -2
  325. package/index38.js +1 -1
  326. package/index38.mjs +3 -3
  327. package/index39.js +1 -1
  328. package/index39.mjs +3 -3
  329. package/index40.js +1 -1
  330. package/index40.mjs +3 -3
  331. package/index42.js +1 -1
  332. package/index42.mjs +1 -1
  333. package/index44.js +1 -1
  334. package/index44.mjs +2 -2
  335. package/index45.js +1 -1
  336. package/index45.mjs +1 -1
  337. package/index48.js +1 -1
  338. package/index48.mjs +2 -2
  339. package/index52.js +1 -1
  340. package/index52.mjs +1 -1
  341. package/index54.js +1 -1
  342. package/index54.mjs +3 -3
  343. package/index56.js +1 -1
  344. package/index56.mjs +2 -2
  345. package/index57.js +1 -1
  346. package/index57.mjs +1 -1
  347. package/index59.js +1 -1
  348. package/index59.mjs +2 -2
  349. package/package.json +1 -1
package/index275.mjs CHANGED
@@ -1,52 +1,54 @@
1
- import { isElementInChildOfActiveScope as g } from "@react-aria/focus";
2
- import { useEffect as m } from "react";
3
- import { useFocusWithin as v } from "./index270.mjs";
4
- import { useInteractOutside as b } from "./index276.mjs";
5
- const t = [];
6
- function C(a, i) {
7
- let { onClose: o, shouldCloseOnBlur: l, isOpen: n, isDismissable: d = !1, isKeyboardDismissDisabled: u = !1, shouldCloseOnInteractOutside: s } = a;
8
- m(() => {
9
- if (n && !t.includes(i))
10
- return t.push(i), () => {
11
- let e = t.indexOf(i);
12
- e >= 0 && t.splice(e, 1);
13
- };
14
- }, [
15
- n,
16
- i
17
- ]);
18
- let r = () => {
19
- t[t.length - 1] === i && o && o();
20
- }, f = (e) => {
21
- (!s || s(e.target)) && t[t.length - 1] === i && (e.stopPropagation(), e.preventDefault());
22
- }, p = (e) => {
23
- (!s || s(e.target)) && (t[t.length - 1] === i && (e.stopPropagation(), e.preventDefault()), r());
24
- }, c = (e) => {
25
- e.key === "Escape" && !u && !e.nativeEvent.isComposing && (e.stopPropagation(), e.preventDefault(), r());
26
- };
27
- b({
28
- ref: i,
29
- onInteractOutside: d && n ? p : void 0,
30
- onInteractOutsideStart: f
31
- });
32
- let { focusWithinProps: O } = v({
33
- isDisabled: !l,
34
- onBlurWithin: (e) => {
35
- !e.relatedTarget || g(e.relatedTarget) || (!s || s(e.relatedTarget)) && (o == null || o());
36
- }
37
- }), D = (e) => {
38
- e.target === e.currentTarget && e.preventDefault();
39
- };
40
- return {
41
- overlayProps: {
42
- onKeyDown: c,
43
- ...O
44
- },
45
- underlayProps: {
46
- onPointerDown: D
47
- }
48
- };
1
+ import { CalendarDate as f } from "./index265.mjs";
2
+ import { GregorianCalendar as c, getExtendedYear as s, fromExtendedYear as g } from "./index269.mjs";
3
+ const n = 1911;
4
+ function i(r) {
5
+ return r.era === "minguo" ? r.year + n : 1 - r.year + n;
6
+ }
7
+ function o(r) {
8
+ let e = r - n;
9
+ return e > 0 ? [
10
+ "minguo",
11
+ e
12
+ ] : [
13
+ "before_minguo",
14
+ 1 - e
15
+ ];
16
+ }
17
+ class m extends c {
18
+ fromJulianDay(e) {
19
+ let a = super.fromJulianDay(e), t = s(a.era, a.year), [u, $] = o(t);
20
+ return new f(this, u, $, a.month, a.day);
21
+ }
22
+ toJulianDay(e) {
23
+ return super.toJulianDay(b(e));
24
+ }
25
+ getEras() {
26
+ return [
27
+ "before_minguo",
28
+ "minguo"
29
+ ];
30
+ }
31
+ balanceDate(e) {
32
+ let [a, t] = o(i(e));
33
+ e.era = a, e.year = t;
34
+ }
35
+ isInverseEra(e) {
36
+ return e.era === "before_minguo";
37
+ }
38
+ getDaysInMonth(e) {
39
+ return super.getDaysInMonth(b(e));
40
+ }
41
+ getYearsInEra(e) {
42
+ return e.era === "before_minguo" ? 9999 : 9999 - n;
43
+ }
44
+ constructor(...e) {
45
+ super(...e), this.identifier = "roc";
46
+ }
47
+ }
48
+ function b(r) {
49
+ let [e, a] = g(i(r));
50
+ return new f(e, a, r.month, r.day);
49
51
  }
50
52
  export {
51
- C as useOverlay
53
+ m as TaiwanCalendar
52
54
  };
package/index276.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("./index245.js"),v=require("./index256.js"),m=require("react");function g(r){let{ref:n,onInteractOutside:o,isDisabled:d,onInteractOutsideStart:l}=r,E=m.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=v.useEffectEvent(e=>{o&&c(e,n)&&(l&&l(e),E.current.isPointerDown=!0)}),f=v.useEffectEvent(e=>{o&&o(e)});m.useEffect(()=>{let e=E.current;if(d)return;const w=n.current,t=D.getOwnerDocument(w);if(typeof PointerEvent<"u"){let i=u=>{e.isPointerDown&&c(u,n)&&f(u),e.isPointerDown=!1};return t.addEventListener("pointerdown",s,!0),t.addEventListener("click",i,!0),()=>{t.removeEventListener("pointerdown",s,!0),t.removeEventListener("click",i,!0)}}else if(process.env.NODE_ENV==="test"){let i=a=>{e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:e.isPointerDown&&c(a,n)&&f(a),e.isPointerDown=!1},u=a=>{e.ignoreEmulatedMouseEvents=!0,e.isPointerDown&&c(a,n)&&f(a),e.isPointerDown=!1};return t.addEventListener("mousedown",s,!0),t.addEventListener("mouseup",i,!0),t.addEventListener("touchstart",s,!0),t.addEventListener("touchend",u,!0),()=>{t.removeEventListener("mousedown",s,!0),t.removeEventListener("mouseup",i,!0),t.removeEventListener("touchstart",s,!0),t.removeEventListener("touchend",u,!0)}}},[n,d])}function c(r,n){if(r.button>0)return!1;if(r.target){const o=r.target.ownerDocument;if(!o||!o.documentElement.contains(r.target)||r.target.closest("[data-react-aria-top-layer]"))return!1}return n.current?!r.composedPath().includes(n.current):!1}exports.useInteractOutside=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index265.js"),u=require("./index272.js"),o=1948320,l=[0,31,62,93,124,155,186,216,246,276,306,336];class c{fromJulianDay(e){let r=e-o,a=1+Math.floor((33*r+3)/12053),i=365*(a-1)+Math.floor((8*a+21)/33),t=r-i,n=t<216?Math.floor(t/31):Math.floor((t-6)/30),s=t-l[n]+1;return new f.CalendarDate(this,a,n+1,s)}toJulianDay(e){let r=o-1+365*(e.year-1)+Math.floor((8*e.year+21)/33);return r+=l[e.month-1],r+=e.day,r}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||u.mod(25*e.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}exports.PersianCalendar=c;
package/index276.mjs CHANGED
@@ -1,49 +1,47 @@
1
- import { getOwnerDocument as p } from "./index245.mjs";
2
- import { useEffectEvent as m } from "./index256.mjs";
3
- import { useRef as w, useEffect as D } from "react";
4
- function g(r) {
5
- let { ref: n, onInteractOutside: o, isDisabled: d, onInteractOutsideStart: l } = r, E = w({
6
- isPointerDown: !1,
7
- ignoreEmulatedMouseEvents: !1
8
- }), s = m((e) => {
9
- o && f(e, n) && (l && l(e), E.current.isPointerDown = !0);
10
- }), c = m((e) => {
11
- o && o(e);
12
- });
13
- D(() => {
14
- let e = E.current;
15
- if (d) return;
16
- const v = n.current, t = p(v);
17
- if (typeof PointerEvent < "u") {
18
- let i = (u) => {
19
- e.isPointerDown && f(u, n) && c(u), e.isPointerDown = !1;
20
- };
21
- return t.addEventListener("pointerdown", s, !0), t.addEventListener("click", i, !0), () => {
22
- t.removeEventListener("pointerdown", s, !0), t.removeEventListener("click", i, !0);
23
- };
24
- } else if (process.env.NODE_ENV === "test") {
25
- let i = (a) => {
26
- e.ignoreEmulatedMouseEvents ? e.ignoreEmulatedMouseEvents = !1 : e.isPointerDown && f(a, n) && c(a), e.isPointerDown = !1;
27
- }, u = (a) => {
28
- e.ignoreEmulatedMouseEvents = !0, e.isPointerDown && f(a, n) && c(a), e.isPointerDown = !1;
29
- };
30
- return t.addEventListener("mousedown", s, !0), t.addEventListener("mouseup", i, !0), t.addEventListener("touchstart", s, !0), t.addEventListener("touchend", u, !0), () => {
31
- t.removeEventListener("mousedown", s, !0), t.removeEventListener("mouseup", i, !0), t.removeEventListener("touchstart", s, !0), t.removeEventListener("touchend", u, !0);
32
- };
33
- }
34
- }, [
35
- n,
36
- d
37
- ]);
38
- }
39
- function f(r, n) {
40
- if (r.button > 0) return !1;
41
- if (r.target) {
42
- const o = r.target.ownerDocument;
43
- if (!o || !o.documentElement.contains(r.target) || r.target.closest("[data-react-aria-top-layer]")) return !1;
1
+ import { CalendarDate as i } from "./index265.mjs";
2
+ import { mod as c } from "./index272.mjs";
3
+ const n = 1948320, f = [
4
+ 0,
5
+ 31,
6
+ 62,
7
+ 93,
8
+ 124,
9
+ 155,
10
+ 186,
11
+ 216,
12
+ 246,
13
+ 276,
14
+ 306,
15
+ 336
16
+ // Esfand
17
+ ];
18
+ class u {
19
+ fromJulianDay(e) {
20
+ let r = e - n, t = 1 + Math.floor((33 * r + 3) / 12053), s = 365 * (t - 1) + Math.floor((8 * t + 21) / 33), a = r - s, o = a < 216 ? Math.floor(a / 31) : Math.floor((a - 6) / 30), l = a - f[o] + 1;
21
+ return new i(this, t, o + 1, l);
22
+ }
23
+ toJulianDay(e) {
24
+ let r = n - 1 + 365 * (e.year - 1) + Math.floor((8 * e.year + 21) / 33);
25
+ return r += f[e.month - 1], r += e.day, r;
26
+ }
27
+ getMonthsInYear() {
28
+ return 12;
29
+ }
30
+ getDaysInMonth(e) {
31
+ return e.month <= 6 ? 31 : e.month <= 11 || c(25 * e.year + 11, 33) < 8 ? 30 : 29;
32
+ }
33
+ getEras() {
34
+ return [
35
+ "AP"
36
+ ];
37
+ }
38
+ getYearsInEra() {
39
+ return 9377;
40
+ }
41
+ constructor() {
42
+ this.identifier = "persian";
44
43
  }
45
- return n.current ? !r.composedPath().includes(n.current) : !1;
46
44
  }
47
45
  export {
48
- g as useInteractOutside
46
+ u as PersianCalendar
49
47
  };
package/index277.js CHANGED
@@ -1,6 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("./index243.js"),w=require("./index240.js"),y=require("./index258.js"),T=require("./index259.js"),M=require("./index250.js"),p=require("./index267.js"),a=typeof document<"u"&&window.visualViewport;let s=0,h;function H(e={}){let{isDisabled:t}=e;w.useLayoutEffect(()=>{if(!t)return s++,s===1&&(M.isIOS()?h=q():h=L()),()=>{s--,s===0&&h()}},[t])}function L(){let e=window.innerWidth-document.documentElement.clientWidth;return S.chain(e>0&&("scrollbarGutter"in document.documentElement.style?$(document.documentElement,"scrollbarGutter","stable"):$(document.documentElement,"paddingRight",`${e}px`)),$(document.documentElement,"overflow","hidden"))}function q(){let e,t=!1,n=c=>{let l=c.target;e=T.isScrollable(l)?l:y.getScrollParent(l,!0),t=!1;let r=l.ownerDocument.defaultView.getSelection();r&&!r.isCollapsed&&r.containsNode(l,!0)&&(t=!0),"selectionStart"in l&&"selectionEnd"in l&&l.selectionStart<l.selectionEnd&&l.ownerDocument.activeElement===l&&(t=!0)},o=document.createElement("style");o.textContent=`
2
- @layer {
3
- * {
4
- overscroll-behavior: contain;
5
- }
6
- }`.trim(),document.head.prepend(o);let i=c=>{if(!(c.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){c.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&c.preventDefault()}},u=c=>{let l=c.target,r=c.relatedTarget;if(r&&p.willOpenKeyboard(r))r.focus({preventScroll:!0}),g(r,p.willOpenKeyboard(l));else if(!r){var f;let v=(f=l.parentElement)===null||f===void 0?void 0:f.closest("[tabindex]");v==null||v.focus({preventScroll:!0})}},d=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(c){let l=document.activeElement!=null&&p.willOpenKeyboard(document.activeElement);d.call(this,{...c,preventScroll:!0}),(!c||!c.preventScroll)&&g(this,l)};let m=S.chain(b(document,"touchstart",n,{passive:!1,capture:!0}),b(document,"touchmove",i,{passive:!1,capture:!0}),b(document,"blur",u,!0));return()=>{m(),o.remove(),HTMLElement.prototype.focus=d}}function $(e,t,n){let o=e.style[t];return e.style[t]=n,()=>{e.style[t]=o}}function b(e,t,n,o){return e.addEventListener(t,n,o),()=>{e.removeEventListener(t,n,o)}}function g(e,t){t||!a?E(e):a.addEventListener("resize",()=>E(e),{once:!0})}function E(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let o=y.getScrollParent(n);if(o!==document.documentElement&&o!==document.body&&o!==n){let i=o.getBoundingClientRect(),u=n.getBoundingClientRect();if(u.top<i.top||u.bottom>i.top+n.clientHeight){let d=i.bottom;a&&(d=Math.min(d,a.offsetTop+a.height));let m=u.top-i.top-((d-i.top)/2-u.height/2);o.scrollTo({top:Math.max(0,Math.min(o.scrollHeight-o.clientHeight,o.scrollTop+m)),behavior:"smooth"})}}n=o.parentElement}}exports.usePreventScroll=H;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index265.js"),t=require("./index269.js"),u=78,y=80;class f extends t.GregorianCalendar{fromJulianDay(e){let i=super.fromJulianDay(e),l=i.year-u,r=e-t.gregorianToJulianDay(i.era,i.year,1,1),n;r<y?(l--,n=t.isLeapYear(i.year-1)?31:30,r+=n+155+90+10):(n=t.isLeapYear(i.year)?31:30,r-=y);let a,s;if(r<n)a=1,s=r+1;else{let o=r-n;o<155?(a=Math.floor(o/31)+2,s=o%31+1):(o-=155,a=Math.floor(o/30)+7,s=o%30+1)}return new d.CalendarDate(this,l,a,s)}toJulianDay(e){let i=e.year+u,[l,r]=t.fromExtendedYear(i),n,a;return t.isLeapYear(r)?(n=31,a=t.gregorianToJulianDay(l,r,3,21)):(n=30,a=t.gregorianToJulianDay(l,r,3,22)),e.month===1?a+e.day-1:(a+=n+Math.min(e.month-2,5)*31,e.month>=8&&(a+=(e.month-7)*30),a+=e.day-1,a)}getDaysInMonth(e){return e.month===1&&t.isLeapYear(e.year+u)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}exports.IndianCalendar=f;
package/index277.mjs CHANGED
@@ -1,116 +1,40 @@
1
- import { chain as S } from "./index243.mjs";
2
- import { useLayoutEffect as y } from "./index240.mjs";
3
- import { getScrollParent as w } from "./index258.mjs";
4
- import { isScrollable as x } from "./index259.mjs";
5
- import { isIOS as T } from "./index250.mjs";
6
- import { willOpenKeyboard as p } from "./index267.mjs";
7
- const u = typeof document < "u" && window.visualViewport;
8
- let s = 0, v;
9
- function B(e = {}) {
10
- let { isDisabled: t } = e;
11
- y(() => {
12
- if (!t)
13
- return s++, s === 1 && (T() ? v = H() : v = M()), () => {
14
- s--, s === 0 && v();
15
- };
16
- }, [
17
- t
18
- ]);
19
- }
20
- function M() {
21
- let e = window.innerWidth - document.documentElement.clientWidth;
22
- return S(e > 0 && // Use scrollbar-gutter when supported because it also works for fixed positioned elements.
23
- ("scrollbarGutter" in document.documentElement.style ? b(document.documentElement, "scrollbarGutter", "stable") : b(document.documentElement, "paddingRight", `${e}px`)), b(document.documentElement, "overflow", "hidden"));
24
- }
25
- function H() {
26
- let e, t = !1, l = (n) => {
27
- let c = n.target;
28
- e = x(c) ? c : w(c, !0), t = !1;
29
- let r = c.ownerDocument.defaultView.getSelection();
30
- r && !r.isCollapsed && r.containsNode(c, !0) && (t = !0), "selectionStart" in c && "selectionEnd" in c && c.selectionStart < c.selectionEnd && c.ownerDocument.activeElement === c && (t = !0);
31
- }, o = document.createElement("style");
32
- o.textContent = `
33
- @layer {
34
- * {
35
- overscroll-behavior: contain;
36
- }
37
- }`.trim(), document.head.prepend(o);
38
- let i = (n) => {
39
- if (!(n.touches.length === 2 || t)) {
40
- if (!e || e === document.documentElement || e === document.body) {
41
- n.preventDefault();
42
- return;
43
- }
44
- e.scrollHeight === e.clientHeight && e.scrollWidth === e.clientWidth && n.preventDefault();
45
- }
46
- }, d = (n) => {
47
- let c = n.target, r = n.relatedTarget;
48
- if (r && p(r))
49
- r.focus({
50
- preventScroll: !0
51
- }), E(r, p(c));
52
- else if (!r) {
53
- var m;
54
- let $ = (m = c.parentElement) === null || m === void 0 ? void 0 : m.closest("[tabindex]");
55
- $ == null || $.focus({
56
- preventScroll: !0
57
- });
1
+ import { CalendarDate as c } from "./index265.mjs";
2
+ import { GregorianCalendar as y, gregorianToJulianDay as f, isLeapYear as s, fromExtendedYear as d } from "./index269.mjs";
3
+ const $ = 78, b = 80;
4
+ class p extends y {
5
+ fromJulianDay(e) {
6
+ let t = super.fromJulianDay(e), i = t.year - $, r = e - f(t.era, t.year, 1, 1), n;
7
+ r < b ? (i--, n = s(t.year - 1) ? 31 : 30, r += n + 155 + 90 + 10) : (n = s(t.year) ? 31 : 30, r -= b);
8
+ let a, l;
9
+ if (r < n)
10
+ a = 1, l = r + 1;
11
+ else {
12
+ let o = r - n;
13
+ o < 155 ? (a = Math.floor(o / 31) + 2, l = o % 31 + 1) : (o -= 155, a = Math.floor(o / 30) + 7, l = o % 30 + 1);
58
14
  }
59
- }, a = HTMLElement.prototype.focus;
60
- HTMLElement.prototype.focus = function(n) {
61
- let c = document.activeElement != null && p(document.activeElement);
62
- a.call(this, {
63
- ...n,
64
- preventScroll: !0
65
- }), (!n || !n.preventScroll) && E(this, c);
66
- };
67
- let f = S(h(document, "touchstart", l, {
68
- passive: !1,
69
- capture: !0
70
- }), h(document, "touchmove", i, {
71
- passive: !1,
72
- capture: !0
73
- }), h(document, "blur", d, !0));
74
- return () => {
75
- f(), o.remove(), HTMLElement.prototype.focus = a;
76
- };
77
- }
78
- function b(e, t, l) {
79
- let o = e.style[t];
80
- return e.style[t] = l, () => {
81
- e.style[t] = o;
82
- };
83
- }
84
- function h(e, t, l, o) {
85
- return e.addEventListener(t, l, o), () => {
86
- e.removeEventListener(t, l, o);
87
- };
88
- }
89
- function E(e, t) {
90
- t || !u ? g(e) : u.addEventListener("resize", () => g(e), {
91
- once: !0
92
- });
93
- }
94
- function g(e) {
95
- let t = document.scrollingElement || document.documentElement, l = e;
96
- for (; l && l !== t; ) {
97
- let o = w(l);
98
- if (o !== document.documentElement && o !== document.body && o !== l) {
99
- let i = o.getBoundingClientRect(), d = l.getBoundingClientRect();
100
- if (d.top < i.top || d.bottom > i.top + l.clientHeight) {
101
- let a = i.bottom;
102
- u && (a = Math.min(a, u.offsetTop + u.height));
103
- let f = d.top - i.top - ((a - i.top) / 2 - d.height / 2);
104
- o.scrollTo({
105
- // Clamp to the valid range to prevent over-scrolling.
106
- top: Math.max(0, Math.min(o.scrollHeight - o.clientHeight, o.scrollTop + f)),
107
- behavior: "smooth"
108
- });
109
- }
110
- }
111
- l = o.parentElement;
15
+ return new c(this, i, a, l);
16
+ }
17
+ toJulianDay(e) {
18
+ let t = e.year + $, [i, r] = d(t), n, a;
19
+ return s(r) ? (n = 31, a = f(i, r, 3, 21)) : (n = 30, a = f(i, r, 3, 22)), e.month === 1 ? a + e.day - 1 : (a += n + Math.min(e.month - 2, 5) * 31, e.month >= 8 && (a += (e.month - 7) * 30), a += e.day - 1, a);
20
+ }
21
+ getDaysInMonth(e) {
22
+ return e.month === 1 && s(e.year + $) || e.month >= 2 && e.month <= 6 ? 31 : 30;
23
+ }
24
+ getYearsInEra() {
25
+ return 9919;
26
+ }
27
+ getEras() {
28
+ return [
29
+ "saka"
30
+ ];
31
+ }
32
+ balanceDate() {
33
+ }
34
+ constructor(...e) {
35
+ super(...e), this.identifier = "indian";
112
36
  }
113
37
  }
114
38
  export {
115
- B as usePreventScroll
39
+ p as IndianCalendar
116
40
  };
package/index278.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index295.js"),r=require("./index296.js"),t=require("./index297.js"),s=require("./index298.js"),u=require("./index299.js"),n=require("./index300.js"),i=require("./index301.js"),o=require("./index302.js"),c=require("./index303.js"),q=require("./index304.js"),R=require("./index305.js"),l=require("./index306.js"),E=require("./index307.js"),S=require("./index308.js"),h=require("./index309.js"),L=require("./index310.js"),T=require("./index311.js"),a=require("./index312.js"),I=require("./index313.js"),P=require("./index314.js"),U=require("./index315.js"),d=require("./index316.js"),f=require("./index317.js"),p=require("./index318.js"),k=require("./index319.js"),K=require("./index320.js"),N=require("./index321.js"),b=require("./index322.js"),v=require("./index323.js"),z=require("./index324.js"),A=require("./index325.js"),B=require("./index326.js"),C=require("./index327.js"),D=require("./index328.js");exports.default={};exports.default={"ar-AE":e,"bg-BG":r,"cs-CZ":t,"da-DK":s,"de-DE":u,"el-GR":n,"en-US":i,"es-ES":o,"et-EE":c,"fi-FI":q,"fr-FR":R,"he-IL":l,"hr-HR":E,"hu-HU":S,"it-IT":h,"ja-JP":L,"ko-KR":T,"lt-LT":a,"lv-LV":I,"nb-NO":P,"nl-NL":U,"pl-PL":d,"pt-BR":f,"pt-PT":p,"ro-RO":k,"ru-RU":K,"sk-SK":N,"sl-SI":b,"sr-SP":v,"sv-SE":z,"tr-TR":A,"uk-UA":B,"zh-CN":C,"zh-TW":D};module.exports=exports.default;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("./index265.js"),d=1948440,U=1948439,n=1300,u=1600,h=460322;function $(a,e,r,t){return t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+a-1}function p(a,e,r){let t=Math.floor((30*(r-e)+10646)/10631),C=Math.min(12,Math.ceil((r-(29+$(e,t,1,1)))/29.5)+1),l=r-$(e,t,C,1)+1;return new B.CalendarDate(a,t,C,l)}function b(a){return(14+11*a)%30<11}class Q{fromJulianDay(e){return p(this,d,e)}toJulianDay(e){return $(d,e.year,e.month,e.day)}getDaysInMonth(e){let r=29+e.month%2;return e.month===12&&b(e.year)&&r++,r}getMonthsInYear(){return 12}getDaysInYear(e){return b(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class w extends Q{fromJulianDay(e){return p(this,U,e)}toJulianDay(e){return $(U,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}const J="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let y,s;function g(a){return h+s[a-n]}function f(a,e){let r=a-n,t=1<<11-(e-1);return y[r]&t?30:29}function m(a,e){let r=g(a);for(let t=1;t<e;t++)r+=f(a,t);return r}function D(a){return s[a+1-n]-s[a-n]}class q extends Q{fromJulianDay(e){let r=e-d,t=g(n),C=g(u);if(r<t||r>C)return super.fromJulianDay(e);{let l=n-1,i=1,o=1;for(;o>0;){l++,o=r-g(l)+1;let c=D(l);if(o===c){i=12;break}else if(o<c){let A=f(l,i);for(i=1;o>A;)o-=A,i++,A=f(l,i);break}}return new B.CalendarDate(this,l,i,r-m(l,i)+1)}}toJulianDay(e){return e.year<n||e.year>u?super.toJulianDay(e):d+m(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<n||e.year>u?super.getDaysInMonth(e):f(e.year,e.month)}getDaysInYear(e){return e.year<n||e.year>u?super.getDaysInYear(e):D(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",y||(y=new Uint16Array(Uint8Array.from(atob(J),e=>e.charCodeAt(0)).buffer)),!s){s=new Uint32Array(u-n+1);let e=0;for(let r=n;r<=u;r++){s[r-n]=e;for(let t=1;t<=12;t++)e+=f(r,t)}}}}exports.IslamicCivilCalendar=Q;exports.IslamicTabularCalendar=w;exports.IslamicUmalquraCalendar=q;
package/index278.mjs CHANGED
@@ -1,74 +1,116 @@
1
- import r from "./index295.mjs";
2
- import o from "./index296.mjs";
3
- import f from "./index297.mjs";
4
- import t from "./index298.mjs";
5
- import p from "./index299.mjs";
6
- import $ from "./index300.mjs";
7
- import e from "./index301.mjs";
8
- import m from "./index302.mjs";
9
- import s from "./index303.mjs";
10
- import d from "./index304.mjs";
11
- import c from "./index305.mjs";
12
- import i from "./index306.mjs";
13
- import x from "./index307.mjs";
14
- import a from "./index308.mjs";
15
- import b from "./index309.mjs";
16
- import R from "./index310.mjs";
17
- import l from "./index311.mjs";
18
- import E from "./index312.mjs";
19
- import S from "./index313.mjs";
20
- import h from "./index314.mjs";
21
- import L from "./index315.mjs";
22
- import T from "./index316.mjs";
23
- import u from "./index317.mjs";
24
- import I from "./index318.mjs";
25
- import P from "./index319.mjs";
26
- import U from "./index320.mjs";
27
- import k from "./index321.mjs";
28
- import n from "./index322.mjs";
29
- import v from "./index323.mjs";
30
- import K from "./index324.mjs";
31
- import N from "./index325.mjs";
32
- import z from "./index326.mjs";
33
- import A from "./index327.mjs";
34
- import B from "./index328.mjs";
35
- var C = {};
36
- C = {
37
- "ar-AE": r,
38
- "bg-BG": o,
39
- "cs-CZ": f,
40
- "da-DK": t,
41
- "de-DE": p,
42
- "el-GR": $,
43
- "en-US": e,
44
- "es-ES": m,
45
- "et-EE": s,
46
- "fi-FI": d,
47
- "fr-FR": c,
48
- "he-IL": i,
49
- "hr-HR": x,
50
- "hu-HU": a,
51
- "it-IT": b,
52
- "ja-JP": R,
53
- "ko-KR": l,
54
- "lt-LT": E,
55
- "lv-LV": S,
56
- "nb-NO": h,
57
- "nl-NL": L,
58
- "pl-PL": T,
59
- "pt-BR": u,
60
- "pt-PT": I,
61
- "ro-RO": P,
62
- "ru-RU": U,
63
- "sk-SK": k,
64
- "sl-SI": n,
65
- "sr-SP": v,
66
- "sv-SE": K,
67
- "tr-TR": N,
68
- "uk-UA": z,
69
- "zh-CN": A,
70
- "zh-TW": B
71
- };
1
+ import { CalendarDate as D } from "./index265.mjs";
2
+ const g = 1948440, y = 1948439, n = 1300, f = 1600, h = 460322;
3
+ function d(a, e, r, t) {
4
+ return t + Math.ceil(29.5 * (r - 1)) + (e - 1) * 354 + Math.floor((3 + 11 * e) / 30) + a - 1;
5
+ }
6
+ function p(a, e, r) {
7
+ let t = Math.floor((30 * (r - e) + 10646) / 10631), C = Math.min(12, Math.ceil((r - (29 + d(e, t, 1, 1))) / 29.5) + 1), l = r - d(e, t, C, 1) + 1;
8
+ return new D(a, t, C, l);
9
+ }
10
+ function U(a) {
11
+ return (14 + 11 * a) % 30 < 11;
12
+ }
13
+ class B {
14
+ fromJulianDay(e) {
15
+ return p(this, g, e);
16
+ }
17
+ toJulianDay(e) {
18
+ return d(g, e.year, e.month, e.day);
19
+ }
20
+ getDaysInMonth(e) {
21
+ let r = 29 + e.month % 2;
22
+ return e.month === 12 && U(e.year) && r++, r;
23
+ }
24
+ getMonthsInYear() {
25
+ return 12;
26
+ }
27
+ getDaysInYear(e) {
28
+ return U(e.year) ? 355 : 354;
29
+ }
30
+ getYearsInEra() {
31
+ return 9665;
32
+ }
33
+ getEras() {
34
+ return [
35
+ "AH"
36
+ ];
37
+ }
38
+ constructor() {
39
+ this.identifier = "islamic-civil";
40
+ }
41
+ }
42
+ class L extends B {
43
+ fromJulianDay(e) {
44
+ return p(this, y, e);
45
+ }
46
+ toJulianDay(e) {
47
+ return d(y, e.year, e.month, e.day);
48
+ }
49
+ constructor(...e) {
50
+ super(...e), this.identifier = "islamic-tbla";
51
+ }
52
+ }
53
+ const w = "qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";
54
+ let c, s;
55
+ function $(a) {
56
+ return h + s[a - n];
57
+ }
58
+ function u(a, e) {
59
+ let r = a - n, t = 1 << 11 - (e - 1);
60
+ return c[r] & t ? 30 : 29;
61
+ }
62
+ function b(a, e) {
63
+ let r = $(a);
64
+ for (let t = 1; t < e; t++) r += u(a, t);
65
+ return r;
66
+ }
67
+ function m(a) {
68
+ return s[a + 1 - n] - s[a - n];
69
+ }
70
+ class q extends B {
71
+ fromJulianDay(e) {
72
+ let r = e - g, t = $(n), C = $(f);
73
+ if (r < t || r > C) return super.fromJulianDay(e);
74
+ {
75
+ let l = n - 1, i = 1, o = 1;
76
+ for (; o > 0; ) {
77
+ l++, o = r - $(l) + 1;
78
+ let Q = m(l);
79
+ if (o === Q) {
80
+ i = 12;
81
+ break;
82
+ } else if (o < Q) {
83
+ let A = u(l, i);
84
+ for (i = 1; o > A; )
85
+ o -= A, i++, A = u(l, i);
86
+ break;
87
+ }
88
+ }
89
+ return new D(this, l, i, r - b(l, i) + 1);
90
+ }
91
+ }
92
+ toJulianDay(e) {
93
+ return e.year < n || e.year > f ? super.toJulianDay(e) : g + b(e.year, e.month) + (e.day - 1);
94
+ }
95
+ getDaysInMonth(e) {
96
+ return e.year < n || e.year > f ? super.getDaysInMonth(e) : u(e.year, e.month);
97
+ }
98
+ getDaysInYear(e) {
99
+ return e.year < n || e.year > f ? super.getDaysInYear(e) : m(e.year);
100
+ }
101
+ constructor() {
102
+ if (super(), this.identifier = "islamic-umalqura", c || (c = new Uint16Array(Uint8Array.from(atob(w), (e) => e.charCodeAt(0)).buffer)), !s) {
103
+ s = new Uint32Array(f - n + 1);
104
+ let e = 0;
105
+ for (let r = n; r <= f; r++) {
106
+ s[r - n] = e;
107
+ for (let t = 1; t <= 12; t++) e += u(r, t);
108
+ }
109
+ }
110
+ }
111
+ }
72
112
  export {
73
- C as default
113
+ B as IslamicCivilCalendar,
114
+ L as IslamicTabularCalendar,
115
+ q as IslamicUmalquraCalendar
74
116
  };
package/index279.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./index245.js"),M=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let c=new WeakMap,i=[];function F(l,o){let u=w.getOwnerWindow(l==null?void 0:l[0]),d=o instanceof u.Element?{root:o}:o;var v;let p=(v=d==null?void 0:d.root)!==null&&v!==void 0?v:document.body,E=(d==null?void 0:d.shouldUseInert)&&M,a=new Set(l),s=new Set,g=e=>E&&e instanceof u.HTMLElement?e.inert:e.getAttribute("aria-hidden")==="true",h=(e,t)=>{E&&e instanceof u.HTMLElement?e.inert=t:t?e.setAttribute("aria-hidden","true"):(e.removeAttribute("aria-hidden"),e instanceof u.HTMLElement&&(e.inert=!1))},N=e=>{for(let n of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))a.add(n);let t=n=>{if(s.has(n)||a.has(n)||n.parentElement&&s.has(n.parentElement)&&n.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let $ of a)if(n.contains($))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),L=t(e);if(L===NodeFilter.FILTER_ACCEPT&&T(e),L!==NodeFilter.FILTER_REJECT){let n=r.nextNode();for(;n!=null;)T(n),n=r.nextNode()}},T=e=>{var t;let r=(t=c.get(e))!==null&&t!==void 0?t:0;g(e)&&r===0||(r===0&&h(e,!0),s.add(e),c.set(e,r+1))};i.length&&i[i.length-1].disconnect(),N(p);let f=new MutationObserver(e=>{for(let t of e)if(t.type==="childList"&&![...a,...s].some(r=>r.contains(t.target)))for(let r of t.addedNodes)(r instanceof HTMLElement||r instanceof SVGElement)&&(r.dataset.liveAnnouncer==="true"||r.dataset.reactAriaTopLayer==="true")?a.add(r):r instanceof Element&&N(r)});f.observe(p,{childList:!0,subtree:!0});let b={visibleNodes:a,hiddenNodes:s,observe(){f.observe(p,{childList:!0,subtree:!0})},disconnect(){f.disconnect()}};return i.push(b),()=>{f.disconnect();for(let e of s){let t=c.get(e);t!=null&&(t===1?(h(e,!1),c.delete(e)):c.set(e,t-1))}b===i[i.length-1]?(i.pop(),i.length&&i[i.length-1].observe()):i.splice(i.indexOf(b),1)}}function H(l){let o=i[i.length-1];if(o&&!o.visibleNodes.has(l))return o.visibleNodes.add(l),()=>{o.visibleNodes.delete(l)}}exports.ariaHideOutside=F;exports.keepVisible=H;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./index265.js"),b=require("./index272.js"),y=347997,h=1080,M=24*h,T=29,w=12*h+793,D=T*M+w;function n(e){return b.mod(e*7+1,19)<7}function i(e){let r=Math.floor((235*e-234)/19),t=12084+13753*r,f=r*29+Math.floor(t/25920);return b.mod(3*(f+1),7)<3&&(f+=1),f}function O(e){let r=i(e-1),t=i(e);return i(e+1)-t===356?2:t-r===382?1:0}function c(e){return i(e)+O(e)}function g(e){return c(e+1)-c(e)}function A(e){let r=g(e);switch(r>380&&(r-=30),r){case 353:return 0;case 354:return 1;case 355:return 2}}function u(e,r){if(r>=6&&!n(e)&&r++,r===4||r===7||r===9||r===11||r===13)return 29;let t=A(e);return r===2?t===2?30:29:r===3?t===0?29:30:r===6?n(e)?30:0:30}class H{fromJulianDay(r){let t=r-y,f=t*M/D,a=Math.floor((19*f+234)/235)+1,s=c(a),l=Math.floor(t-s);for(;l<1;)a--,s=c(a),l=Math.floor(t-s);let $=1,o=0;for(;o<l;)o+=u(a,$),$++;$--,o-=u(a,$);let Y=l-o;return new v.CalendarDate(this,a,$,Y)}toJulianDay(r){let t=c(r.year);for(let f=1;f<r.month;f++)t+=u(r.year,f);return t+r.day+y}getDaysInMonth(r){return u(r.year,r.month)}getMonthsInYear(r){return n(r.year)?13:12}getDaysInYear(r){return g(r.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(r,t){t.year!==r.year&&(n(t.year)&&!n(r.year)&&t.month>6?r.month--:!n(t.year)&&n(r.year)&&t.month>6&&r.month++)}constructor(){this.identifier="hebrew"}}exports.HebrewCalendar=H;