@okam/stack-ui 1.44.1 → 1.44.3

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 (277) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/index145.js +1 -1
  3. package/index145.mjs +1 -1
  4. package/index149.js +1 -1
  5. package/index149.mjs +3 -3
  6. package/index155.js +1 -1
  7. package/index155.mjs +1 -1
  8. package/index157.js +1 -1
  9. package/index157.mjs +4 -4
  10. package/index158.js +1 -1
  11. package/index158.mjs +2 -2
  12. package/index159.js +1 -1
  13. package/index159.mjs +1 -1
  14. package/index160.js +1 -1
  15. package/index160.mjs +1 -1
  16. package/index161.js +1 -1
  17. package/index161.mjs +2 -2
  18. package/index165.js +1 -1
  19. package/index165.mjs +2 -2
  20. package/index166.js +1 -1
  21. package/index166.mjs +4 -4
  22. package/index167.js +1 -1
  23. package/index167.mjs +3 -3
  24. package/index168.js +1 -1
  25. package/index168.mjs +9 -9
  26. package/index169.js +1 -1
  27. package/index169.mjs +2 -2
  28. package/index174.js +1 -1
  29. package/index174.mjs +2 -2
  30. package/index179.js +1 -1
  31. package/index179.mjs +4 -4
  32. package/index180.js +1 -1
  33. package/index180.mjs +1 -1
  34. package/index181.js +1 -1
  35. package/index181.mjs +2 -2
  36. package/index182.js +1 -1
  37. package/index182.mjs +3 -3
  38. package/index185.js +1 -1
  39. package/index185.mjs +3 -3
  40. package/index186.js +1 -1
  41. package/index186.mjs +23 -23
  42. package/index187.js +1 -1
  43. package/index187.mjs +12 -12
  44. package/index188.js +1 -1
  45. package/index188.mjs +5 -2024
  46. package/index189.js +2 -1
  47. package/index189.mjs +48 -58
  48. package/index190.js +1 -1
  49. package/index190.mjs +2010 -174
  50. package/index191.js +1 -1
  51. package/index191.mjs +56 -200
  52. package/index192.js +1 -1
  53. package/index192.mjs +186 -62
  54. package/index193.js +1 -1
  55. package/index193.mjs +189 -129
  56. package/index194.js +1 -1
  57. package/index194.mjs +55 -115
  58. package/index195.js +1 -1
  59. package/index195.mjs +127 -208
  60. package/index196.js +1 -1
  61. package/index196.mjs +107 -173
  62. package/index197.js +1 -1
  63. package/index197.mjs +215 -60
  64. package/index198.js +1 -1
  65. package/index198.mjs +178 -267
  66. package/index199.js +1 -1
  67. package/index199.mjs +63 -92
  68. package/index200.js +1 -1
  69. package/index200.mjs +254 -163
  70. package/index201.js +1 -1
  71. package/index201.mjs +91 -77
  72. package/index202.js +1 -1
  73. package/index202.mjs +183 -53
  74. package/index203.js +1 -1
  75. package/index203.mjs +72 -114
  76. package/index204.js +1 -1
  77. package/index204.mjs +51 -109
  78. package/index205.js +1 -1
  79. package/index205.mjs +112 -108
  80. package/index206.js +1 -1
  81. package/index206.mjs +109 -65
  82. package/index207.js +1 -1
  83. package/index207.mjs +117 -105
  84. package/index208.js +1 -1
  85. package/index208.mjs +68 -48
  86. package/index209.js +1 -1
  87. package/index209.mjs +108 -91
  88. package/index210.js +1 -1
  89. package/index210.mjs +36 -54
  90. package/index211.js +1 -1
  91. package/index211.mjs +78 -41
  92. package/index212.js +1 -1
  93. package/index212.mjs +52 -81
  94. package/index213.js +1 -5
  95. package/index213.mjs +42 -66
  96. package/index214.js +1 -1
  97. package/index214.mjs +100 -12
  98. package/index215.js +5 -1
  99. package/index215.mjs +80 -5
  100. package/index216.js +1 -2
  101. package/index216.mjs +11 -49
  102. package/index217.js +1 -1
  103. package/index217.mjs +124 -9
  104. package/index218.js +1 -1
  105. package/index218.mjs +132 -56
  106. package/index219.js +1 -1
  107. package/index219.mjs +73 -131
  108. package/index220.js +1 -1
  109. package/index220.mjs +14 -14
  110. package/index221.js +1 -1
  111. package/index221.mjs +85 -33
  112. package/index222.js +1 -1
  113. package/index222.mjs +104 -229
  114. package/index223.js +1 -1
  115. package/index223.mjs +4 -125
  116. package/index224.js +1 -1
  117. package/index224.mjs +3 -72
  118. package/index225.js +1 -7
  119. package/index225.mjs +117 -431
  120. package/index226.js +1 -1
  121. package/index226.mjs +29 -58
  122. package/index227.js +1 -1
  123. package/index227.mjs +51 -54
  124. package/index228.js +1 -1
  125. package/index228.mjs +45 -4
  126. package/index229.js +1 -1
  127. package/index229.mjs +36 -24
  128. package/index230.js +1 -1
  129. package/index230.mjs +106 -40
  130. package/index231.js +1 -1
  131. package/index231.mjs +77 -5
  132. package/index232.js +1 -1
  133. package/index232.mjs +100 -23
  134. package/index233.js +1 -1
  135. package/index233.mjs +98 -13
  136. package/index234.js +1 -1
  137. package/index234.mjs +130 -4
  138. package/index235.js +1 -1
  139. package/index235.mjs +190 -14
  140. package/index236.js +1 -1
  141. package/index236.mjs +4 -43
  142. package/index237.js +1 -1
  143. package/index237.mjs +25 -43
  144. package/index238.js +1 -1
  145. package/index238.mjs +44 -29
  146. package/index239.js +1 -1
  147. package/index239.mjs +4 -30
  148. package/index240.js +1 -1
  149. package/index240.mjs +24 -10
  150. package/index241.js +1 -1
  151. package/index241.mjs +11 -28
  152. package/index242.js +1 -1
  153. package/index242.mjs +4 -15
  154. package/index243.js +1 -1
  155. package/index243.mjs +14 -9
  156. package/index244.js +1 -1
  157. package/index244.mjs +42 -6
  158. package/index245.js +1 -1
  159. package/index245.mjs +58 -5
  160. package/index246.js +1 -1
  161. package/index246.mjs +43 -7
  162. package/index247.js +1 -1
  163. package/index247.mjs +30 -27
  164. package/index248.js +1 -1
  165. package/index248.mjs +29 -15
  166. package/index249.js +1 -1
  167. package/index249.mjs +14 -44
  168. package/index250.js +1 -1
  169. package/index250.mjs +10 -8
  170. package/index251.js +1 -1
  171. package/index251.mjs +27 -14
  172. package/index252.js +1 -1
  173. package/index252.mjs +16 -3
  174. package/index253.js +1 -1
  175. package/index253.mjs +9 -19
  176. package/index254.js +1 -1
  177. package/index254.mjs +6 -34
  178. package/index255.js +1 -1
  179. package/index255.mjs +5 -22
  180. package/index256.js +1 -1
  181. package/index256.mjs +7 -27
  182. package/index257.js +1 -1
  183. package/index257.mjs +27 -128
  184. package/index258.js +1 -1
  185. package/index258.mjs +17 -190
  186. package/index259.js +1 -1
  187. package/index259.mjs +43 -8
  188. package/index260.js +1 -1
  189. package/index260.mjs +8 -3
  190. package/index261.js +1 -1
  191. package/index261.mjs +15 -35
  192. package/index262.js +1 -1
  193. package/index262.mjs +3 -6
  194. package/index263.js +1 -1
  195. package/index263.mjs +19 -29
  196. package/index264.js +1 -1
  197. package/index264.mjs +34 -6
  198. package/index265.js +1 -1
  199. package/index265.mjs +20 -122
  200. package/index266.js +1 -1
  201. package/index266.mjs +8 -133
  202. package/index267.js +1 -1
  203. package/index267.mjs +3 -75
  204. package/index268.js +1 -1
  205. package/index268.mjs +36 -14
  206. package/index269.js +1 -1
  207. package/index269.mjs +5 -95
  208. package/index270.js +1 -1
  209. package/index270.mjs +28 -105
  210. package/index271.js +1 -1
  211. package/index271.mjs +6 -4
  212. package/index272.js +1 -1
  213. package/index272.mjs +9 -3
  214. package/index273.js +1 -1
  215. package/index273.mjs +130 -122
  216. package/index274.js +1 -1
  217. package/index274.mjs +37 -23
  218. package/index275.js +1 -1
  219. package/index275.mjs +231 -51
  220. package/index276.js +1 -1
  221. package/index276.mjs +122 -41
  222. package/index277.js +1 -1
  223. package/index277.mjs +70 -35
  224. package/index278.js +7 -1
  225. package/index278.mjs +429 -103
  226. package/index279.js +1 -1
  227. package/index279.mjs +58 -77
  228. package/index280.js +1 -1
  229. package/index280.mjs +52 -99
  230. package/index281.js +1 -1
  231. package/index281.mjs +27 -97
  232. package/index282.js +1 -1
  233. package/index282.mjs +28 -141
  234. package/index283.js +1 -1
  235. package/index283.mjs +140 -209
  236. package/index284.js +1 -1
  237. package/index284.mjs +213 -22
  238. package/index285.js +1 -1
  239. package/index285.mjs +20 -47
  240. package/index286.js +1 -1
  241. package/index286.mjs +45 -42
  242. package/index287.js +1 -6
  243. package/index287.mjs +41 -108
  244. package/index288.js +6 -1
  245. package/index288.mjs +114 -72
  246. package/index289.js +1 -1
  247. package/index289.mjs +72 -75
  248. package/index290.js +1 -1
  249. package/index290.mjs +74 -7
  250. package/index291.js +1 -1
  251. package/index291.mjs +7 -11
  252. package/index292.js +1 -1
  253. package/index292.mjs +10 -30
  254. package/index293.js +1 -1
  255. package/index293.mjs +4 -3
  256. package/index294.js +1 -1
  257. package/index294.mjs +3 -4
  258. package/index329.js +1 -1
  259. package/index329.mjs +1 -1
  260. package/index331.js +1 -1
  261. package/index331.mjs +4 -4
  262. package/index332.js +1 -1
  263. package/index332.mjs +4 -4
  264. package/index333.js +1 -1
  265. package/index333.mjs +5 -5
  266. package/index335.js +1 -1
  267. package/index335.mjs +2 -2
  268. package/index336.js +1 -1
  269. package/index336.mjs +4 -4
  270. package/index339.js +1 -1
  271. package/index339.mjs +3 -3
  272. package/index342.js +1 -1
  273. package/index342.mjs +1 -1
  274. package/index345.js +1 -1
  275. package/index345.mjs +1 -1
  276. package/logger.d.ts +2 -2
  277. package/package.json +2 -2
package/index227.mjs CHANGED
@@ -1,57 +1,54 @@
1
- import { useSyntheticBlurEvent as F, setEventTarget as W, createSyntheticEvent as v } from "./index336.mjs";
2
- import { useRef as x, useCallback as $ } from "react";
3
- import { getActiveElement as E, getEventTarget as T, nodeContains as B } from "./index232.mjs";
4
- import { getOwnerDocument as G } from "./index233.mjs";
5
- import { useGlobalListeners as L } from "./index239.mjs";
6
- function S(b) {
7
- let { isDisabled: h, onBlurWithin: i, onFocusWithin: o, onFocusWithinChange: t } = b, r = x({
8
- isFocusWithin: !1
9
- }), { addGlobalListener: c, removeAllGlobalListeners: s } = L(), n = $((e) => {
10
- e.currentTarget.contains(e.target) && r.current.isFocusWithin && !e.currentTarget.contains(e.relatedTarget) && (r.current.isFocusWithin = !1, s(), i && i(e), t && t(!1));
11
- }, [
12
- i,
13
- t,
14
- r,
15
- s
16
- ]), u = F(n), g = $((e) => {
17
- if (!e.currentTarget.contains(e.target)) return;
18
- const a = G(e.target), p = E(a);
19
- if (!r.current.isFocusWithin && p === T(e.nativeEvent)) {
20
- o && o(e), t && t(!0), r.current.isFocusWithin = !0, u(e);
21
- let f = e.currentTarget;
22
- c(a, "focus", (l) => {
23
- if (r.current.isFocusWithin && !B(f, l.target)) {
24
- let d = new a.defaultView.FocusEvent("blur", {
25
- relatedTarget: l.target
26
- });
27
- W(d, f);
28
- let m = v(d);
29
- n(m);
30
- }
31
- }, {
32
- capture: !0
33
- });
34
- }
35
- }, [
36
- o,
37
- t,
38
- u,
39
- c,
40
- n
41
- ]);
42
- return h ? {
43
- focusWithinProps: {
44
- // These cannot be null, that would conflict in mergeProps
45
- onFocus: void 0,
46
- onBlur: void 0
47
- }
48
- } : {
49
- focusWithinProps: {
50
- onFocus: g,
51
- onBlur: n
52
- }
53
- };
1
+ import { CalendarDate as f } from "./index217.mjs";
2
+ import { GregorianCalendar as c, getExtendedYear as s, fromExtendedYear as g } from "./index221.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);
54
51
  }
55
52
  export {
56
- S as useFocusWithin
53
+ m as TaiwanCalendar
57
54
  };
package/index228.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=typeof document<"u"?e.useLayoutEffect:()=>{};exports.useLayoutEffect=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index217.js"),u=require("./index224.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/index228.mjs CHANGED
@@ -1,6 +1,47 @@
1
- import e from "react";
2
- const f = typeof document < "u" ? e.useLayoutEffect : () => {
3
- };
1
+ import { CalendarDate as i } from "./index217.mjs";
2
+ import { mod as c } from "./index224.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";
43
+ }
44
+ }
4
45
  export {
5
- f as useLayoutEffect
46
+ u as PersianCalendar
6
47
  };
package/index229.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index228.js"),u=require("react");function o(l){let[n,f]=u.useState(l),c=u.useRef(n),e=u.useRef(null),r=u.useRef(()=>{if(!e.current)return;let t=e.current.next();if(t.done){e.current=null;return}c.current===t.value?r.current():f(t.value)});s.useLayoutEffect(()=>{c.current=n,e.current&&r.current()});let a=u.useCallback(t=>{e.current=t(c.current),r.current()},[r]);return[n,a]}exports.useValueEffect=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index217.js"),t=require("./index221.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/index229.mjs CHANGED
@@ -1,28 +1,40 @@
1
- import { useLayoutEffect as o } from "./index228.mjs";
2
- import { useState as s, useRef as n, useCallback as d } from "react";
3
- function b(f) {
4
- let [u, l] = s(f), c = n(u), e = n(null), t = n(() => {
5
- if (!e.current) return;
6
- let r = e.current.next();
7
- if (r.done) {
8
- e.current = null;
9
- return;
1
+ import { CalendarDate as c } from "./index217.mjs";
2
+ import { GregorianCalendar as y, gregorianToJulianDay as f, isLeapYear as s, fromExtendedYear as d } from "./index221.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);
10
14
  }
11
- c.current === r.value ? t.current() : l(r.value);
12
- });
13
- o(() => {
14
- c.current = u, e.current && t.current();
15
- });
16
- let a = d((r) => {
17
- e.current = r(c.current), t.current();
18
- }, [
19
- t
20
- ]);
21
- return [
22
- u,
23
- a
24
- ];
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";
36
+ }
25
37
  }
26
38
  export {
27
- b as useValueEffect
39
+ p as IndianCalendar
28
40
  };
package/index230.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),c={prefix:String(Math.round(Math.random()*1e10)),current:0},d=e.createContext(c),l=e.createContext(!1);let f=!!(typeof window<"u"&&window.document&&window.document.createElement),s=new WeakMap;function v(r=!1){let t=e.useContext(d),n=e.useRef(null);if(n.current===null&&!r){var a,u;let o=(u=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||u===void 0||(a=u.ReactCurrentOwner)===null||a===void 0?void 0:a.current;if(o){let i=s.get(o);i==null?s.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==i.state&&(t.current=i.id,s.delete(o))}n.current=++t.current}return n.current}function p(r){let t=e.useContext(d);t===c&&!f&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=v(!!r),a=t===c&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return r||`${a}-${n}`}function S(r){let t=e.useId(),[n]=e.useState($()),a=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${c.prefix}`;return r||`${a}-${t}`}const b=typeof e.useId=="function"?S:p;function x(){return!1}function m(){return!0}function g(r){return()=>{}}function $(){return typeof e.useSyncExternalStore=="function"?e.useSyncExternalStore(g,x,m):e.useContext(l)}exports.useIsSSR=$;exports.useSSRSafeId=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("./index217.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/index230.mjs CHANGED
@@ -1,50 +1,116 @@
1
- import a, { useContext as d, useState as f, useRef as l } from "react";
2
- const c = {
3
- prefix: String(Math.round(Math.random() * 1e10)),
4
- current: 0
5
- }, $ = /* @__PURE__ */ a.createContext(c), p = /* @__PURE__ */ a.createContext(!1);
6
- let v = !!(typeof window < "u" && window.document && window.document.createElement), s = /* @__PURE__ */ new WeakMap();
7
- function S(t = !1) {
8
- let e = d($), r = l(null);
9
- if (r.current === null && !t) {
10
- var n, u;
11
- let o = (u = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || u === void 0 || (n = u.ReactCurrentOwner) === null || n === void 0 ? void 0 : n.current;
12
- if (o) {
13
- let i = s.get(o);
14
- i == null ? s.set(o, {
15
- id: e.current,
16
- state: o.memoizedState
17
- }) : o.memoizedState !== i.state && (e.current = i.id, s.delete(o));
18
- }
19
- r.current = ++e.current;
1
+ import { CalendarDate as D } from "./index217.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";
20
40
  }
21
- return r.current;
22
41
  }
23
- function b(t) {
24
- let e = d($);
25
- e === c && !v && process.env.NODE_ENV !== "production" && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
26
- let r = S(!!t), n = e === c && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${e.prefix}`;
27
- return t || `${n}-${r}`;
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
+ }
28
52
  }
29
- function x(t) {
30
- let e = a.useId(), [r] = f(y()), n = r || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${c.prefix}`;
31
- return t || `${n}-${e}`;
53
+ const w = "qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";
54
+ let c, s;
55
+ function $(a) {
56
+ return h + s[a - n];
32
57
  }
33
- const C = typeof a.useId == "function" ? x : b;
34
- function m() {
35
- return !1;
58
+ function u(a, e) {
59
+ let r = a - n, t = 1 << 11 - (e - 1);
60
+ return c[r] & t ? 30 : 29;
36
61
  }
37
- function w() {
38
- return !0;
62
+ function b(a, e) {
63
+ let r = $(a);
64
+ for (let t = 1; t < e; t++) r += u(a, t);
65
+ return r;
39
66
  }
40
- function g(t) {
41
- return () => {
42
- };
67
+ function m(a) {
68
+ return s[a + 1 - n] - s[a - n];
43
69
  }
44
- function y() {
45
- return typeof a.useSyncExternalStore == "function" ? a.useSyncExternalStore(g, m, w) : d(p);
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
+ }
46
111
  }
47
112
  export {
48
- y as useIsSSR,
49
- C as useSSRSafeId
113
+ B as IslamicCivilCalendar,
114
+ L as IslamicTabularCalendar,
115
+ q as IslamicUmalquraCalendar
50
116
  };
package/index231.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function o(...t){return(...f)=>{for(let e of t)typeof e=="function"&&e(...f)}}exports.chain=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./index217.js"),b=require("./index224.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;
package/index231.mjs CHANGED
@@ -1,8 +1,80 @@
1
- function o(...f) {
2
- return (...c) => {
3
- for (let e of f) typeof e == "function" && e(...c);
4
- };
1
+ import { CalendarDate as v } from "./index217.mjs";
2
+ import { mod as y } from "./index224.mjs";
3
+ const b = 347997, h = 1080, M = 24 * h, T = 29, m = 12 * h + 793, w = T * M + m;
4
+ function a(e) {
5
+ return y(e * 7 + 1, 19) < 7;
6
+ }
7
+ function i(e) {
8
+ let r = Math.floor((235 * e - 234) / 19), t = 12084 + 13753 * r, f = r * 29 + Math.floor(t / 25920);
9
+ return y(3 * (f + 1), 7) < 3 && (f += 1), f;
10
+ }
11
+ function p(e) {
12
+ let r = i(e - 1), t = i(e);
13
+ return i(e + 1) - t === 356 ? 2 : t - r === 382 ? 1 : 0;
14
+ }
15
+ function c(e) {
16
+ return i(e) + p(e);
17
+ }
18
+ function Y(e) {
19
+ return c(e + 1) - c(e);
20
+ }
21
+ function A(e) {
22
+ let r = Y(e);
23
+ switch (r > 380 && (r -= 30), r) {
24
+ case 353:
25
+ return 0;
26
+ case 354:
27
+ return 1;
28
+ case 355:
29
+ return 2;
30
+ }
31
+ }
32
+ function s(e, r) {
33
+ if (r >= 6 && !a(e) && r++, r === 4 || r === 7 || r === 9 || r === 11 || r === 13) return 29;
34
+ let t = A(e);
35
+ return r === 2 ? t === 2 ? 30 : 29 : r === 3 ? t === 0 ? 29 : 30 : r === 6 ? a(e) ? 30 : 0 : 30;
36
+ }
37
+ class O {
38
+ fromJulianDay(r) {
39
+ let t = r - b, f = t * M / w, n = Math.floor((19 * f + 234) / 235) + 1, u = c(n), o = Math.floor(t - u);
40
+ for (; o < 1; )
41
+ n--, u = c(n), o = Math.floor(t - u);
42
+ let $ = 1, l = 0;
43
+ for (; l < o; )
44
+ l += s(n, $), $++;
45
+ $--, l -= s(n, $);
46
+ let g = o - l;
47
+ return new v(this, n, $, g);
48
+ }
49
+ toJulianDay(r) {
50
+ let t = c(r.year);
51
+ for (let f = 1; f < r.month; f++) t += s(r.year, f);
52
+ return t + r.day + b;
53
+ }
54
+ getDaysInMonth(r) {
55
+ return s(r.year, r.month);
56
+ }
57
+ getMonthsInYear(r) {
58
+ return a(r.year) ? 13 : 12;
59
+ }
60
+ getDaysInYear(r) {
61
+ return Y(r.year);
62
+ }
63
+ getYearsInEra() {
64
+ return 9999;
65
+ }
66
+ getEras() {
67
+ return [
68
+ "AM"
69
+ ];
70
+ }
71
+ balanceYearMonth(r, t) {
72
+ t.year !== r.year && (a(t.year) && !a(r.year) && t.month > 6 ? r.month-- : !a(t.year) && a(r.year) && t.month > 6 && r.month++);
73
+ }
74
+ constructor() {
75
+ this.identifier = "hebrew";
76
+ }
5
77
  }
6
78
  export {
7
- o as chain
79
+ O as HebrewCalendar
8
80
  };
package/index232.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index233.js"),r=require("./index234.js");function i(t,o){if(!r.shadowDOM())return o&&t?t.contains(o):!1;if(!t||!o)return!1;let e=o;for(;e!==null;){if(e===t)return!0;e.tagName==="SLOT"&&e.assignedSlot?e=e.assignedSlot.parentNode:a.isShadowRoot(e)?e=e.host:e=e.parentNode}return!1}const n=(t=document)=>{var o;if(!r.shadowDOM())return t.activeElement;let e=t.activeElement;for(;e&&"shadowRoot"in e&&(!((o=e.shadowRoot)===null||o===void 0)&&o.activeElement);)e=e.shadowRoot.activeElement;return e};function s(t){return r.shadowDOM()&&t.target.shadowRoot&&t.composedPath?t.composedPath()[0]:t.target}exports.getActiveElement=n;exports.getEventTarget=s;exports.nodeContains=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index217.js"),f=1723856,y=1824665,u=5500;function i(a,r,e,t){return a+365*r+Math.floor(r/4)+30*(e-1)+t-1}function s(a,r){let e=Math.floor(4*(r-a)/1461),t=1+Math.floor((r-i(a,e,1,1))/30),n=r+1-i(a,e,t,1);return[e,t,n]}function $(a){return Math.floor(a%4/3)}function E(a,r){return r%13!==0?30:$(a)+5}class l{fromJulianDay(r){let[e,t,n]=s(f,r),o="AM";return e<=0&&(o="AA",e+=u),new c.CalendarDate(this,o,e,t,n)}toJulianDay(r){let e=r.year;return r.era==="AA"&&(e-=u),i(f,e,r.month,r.day)}getDaysInMonth(r){return E(r.year,r.month)}getMonthsInYear(){return 13}getDaysInYear(r){return 365+$(r.year)}getYearsInEra(r){return r.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class b extends l{fromJulianDay(r){let[e,t,n]=s(f,r);return e+=u,new c.CalendarDate(this,"AA",e,t,n)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...r){super(...r),this.identifier="ethioaa"}}class C extends l{fromJulianDay(r){let[e,t,n]=s(y,r),o="CE";return e<=0&&(o="BCE",e=1-e),new c.CalendarDate(this,o,e,t,n)}toJulianDay(r){let e=r.year;return r.era==="BCE"&&(e=1-e),i(y,e,r.month,r.day)}getDaysInMonth(r){let e=r.year;return r.era==="BCE"&&(e=1-e),E(e,r.month)}isInverseEra(r){return r.era==="BCE"}balanceDate(r){r.year<=0&&(r.era=r.era==="BCE"?"CE":"BCE",r.year=1-r.year)}getEras(){return["BCE","CE"]}getYearsInEra(r){return r.era==="BCE"?9999:9715}constructor(...r){super(...r),this.identifier="coptic"}}exports.CopticCalendar=C;exports.EthiopicAmeteAlemCalendar=b;exports.EthiopicCalendar=l;
package/index232.mjs CHANGED
@@ -1,27 +1,104 @@
1
- import { isShadowRoot as f } from "./index233.mjs";
2
- import { shadowDOM as o } from "./index234.mjs";
3
- function n(t, a) {
4
- if (!o()) return a && t ? t.contains(a) : !1;
5
- if (!t || !a) return !1;
6
- let e = a;
7
- for (; e !== null; ) {
8
- if (e === t) return !0;
9
- e.tagName === "SLOT" && e.assignedSlot ? e = e.assignedSlot.parentNode : f(e) ? e = e.host : e = e.parentNode;
10
- }
11
- return !1;
1
+ import { CalendarDate as s } from "./index217.mjs";
2
+ const i = 1723856, $ = 1824665, c = 5500;
3
+ function f(a, r, e, t) {
4
+ return a + 365 * r + Math.floor(r / 4) + 30 * (e - 1) + t - 1;
12
5
  }
13
- const s = (t = document) => {
14
- var a;
15
- if (!o()) return t.activeElement;
16
- let e = t.activeElement;
17
- for (; e && "shadowRoot" in e && (!((a = e.shadowRoot) === null || a === void 0) && a.activeElement); ) e = e.shadowRoot.activeElement;
18
- return e;
19
- };
20
- function d(t) {
21
- return o() && t.target.shadowRoot && t.composedPath ? t.composedPath()[0] : t.target;
6
+ function u(a, r) {
7
+ let e = Math.floor(4 * (r - a) / 1461), t = 1 + Math.floor((r - f(a, e, 1, 1)) / 30), n = r + 1 - f(a, e, t, 1);
8
+ return [
9
+ e,
10
+ t,
11
+ n
12
+ ];
13
+ }
14
+ function l(a) {
15
+ return Math.floor(a % 4 / 3);
16
+ }
17
+ function y(a, r) {
18
+ return r % 13 !== 0 ? 30 : l(a) + 5;
19
+ }
20
+ class b {
21
+ fromJulianDay(r) {
22
+ let [e, t, n] = u(i, r), o = "AM";
23
+ return e <= 0 && (o = "AA", e += c), new s(this, o, e, t, n);
24
+ }
25
+ toJulianDay(r) {
26
+ let e = r.year;
27
+ return r.era === "AA" && (e -= c), f(i, e, r.month, r.day);
28
+ }
29
+ getDaysInMonth(r) {
30
+ return y(r.year, r.month);
31
+ }
32
+ getMonthsInYear() {
33
+ return 13;
34
+ }
35
+ getDaysInYear(r) {
36
+ return 365 + l(r.year);
37
+ }
38
+ getYearsInEra(r) {
39
+ return r.era === "AA" ? 9999 : 9991;
40
+ }
41
+ getEras() {
42
+ return [
43
+ "AA",
44
+ "AM"
45
+ ];
46
+ }
47
+ constructor() {
48
+ this.identifier = "ethiopic";
49
+ }
50
+ }
51
+ class h extends b {
52
+ fromJulianDay(r) {
53
+ let [e, t, n] = u(i, r);
54
+ return e += c, new s(this, "AA", e, t, n);
55
+ }
56
+ getEras() {
57
+ return [
58
+ "AA"
59
+ ];
60
+ }
61
+ getYearsInEra() {
62
+ return 9999;
63
+ }
64
+ constructor(...r) {
65
+ super(...r), this.identifier = "ethioaa";
66
+ }
67
+ }
68
+ class C extends b {
69
+ fromJulianDay(r) {
70
+ let [e, t, n] = u($, r), o = "CE";
71
+ return e <= 0 && (o = "BCE", e = 1 - e), new s(this, o, e, t, n);
72
+ }
73
+ toJulianDay(r) {
74
+ let e = r.year;
75
+ return r.era === "BCE" && (e = 1 - e), f($, e, r.month, r.day);
76
+ }
77
+ getDaysInMonth(r) {
78
+ let e = r.year;
79
+ return r.era === "BCE" && (e = 1 - e), y(e, r.month);
80
+ }
81
+ isInverseEra(r) {
82
+ return r.era === "BCE";
83
+ }
84
+ balanceDate(r) {
85
+ r.year <= 0 && (r.era = r.era === "BCE" ? "CE" : "BCE", r.year = 1 - r.year);
86
+ }
87
+ getEras() {
88
+ return [
89
+ "BCE",
90
+ "CE"
91
+ ];
92
+ }
93
+ getYearsInEra(r) {
94
+ return r.era === "BCE" ? 9999 : 9715;
95
+ }
96
+ constructor(...r) {
97
+ super(...r), this.identifier = "coptic";
98
+ }
22
99
  }
23
100
  export {
24
- s as getActiveElement,
25
- d as getEventTarget,
26
- n as nodeContains
101
+ C as CopticCalendar,
102
+ h as EthiopicAmeteAlemCalendar,
103
+ b as EthiopicCalendar
27
104
  };