@okam/stack-ui 1.32.2 → 1.32.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (332) hide show
  1. package/components/fields/TextInputField/index.d.ts +1 -1
  2. package/components/fields/TextInputField/interface.d.ts +1 -2
  3. package/index.d.ts +1 -1
  4. package/index.js +1 -1
  5. package/index.mjs +145 -144
  6. package/index101.js +1 -1
  7. package/index101.mjs +1 -1
  8. package/index102.js +1 -1
  9. package/index102.mjs +3 -3
  10. package/index103.js +1 -1
  11. package/index103.mjs +1 -1
  12. package/index115.js +1 -1
  13. package/index115.mjs +2 -2
  14. package/index118.js +1 -1
  15. package/index118.mjs +3 -3
  16. package/index119.js +1 -1
  17. package/index119.mjs +3 -3
  18. package/index120.js +1 -1
  19. package/index120.mjs +2 -2
  20. package/index122.js +1 -1
  21. package/index122.mjs +2 -2
  22. package/index123.js +1 -1
  23. package/index123.mjs +8 -8
  24. package/index124.js +1 -1
  25. package/index124.mjs +1 -1
  26. package/index125.js +1 -1
  27. package/index125.mjs +1 -1
  28. package/index139.js +1 -1
  29. package/index139.mjs +52 -46
  30. package/index140.js +1 -1
  31. package/index140.mjs +46 -241
  32. package/index141.js +1 -2
  33. package/index141.mjs +241 -13
  34. package/index142.js +2 -1
  35. package/index142.mjs +12 -29
  36. package/index143.js +1 -1
  37. package/index143.mjs +30 -52
  38. package/index144.js +1 -1
  39. package/index144.mjs +23 -21
  40. package/index145.js +1 -1
  41. package/index145.mjs +113 -38
  42. package/index146.js +1 -1
  43. package/index146.mjs +22 -25
  44. package/index147.js +1 -1
  45. package/index147.mjs +35 -251
  46. package/index148.js +1 -1
  47. package/index148.mjs +25 -106
  48. package/index149.js +1 -1
  49. package/index149.mjs +242 -320
  50. package/index150.js +1 -1
  51. package/index150.mjs +105 -23
  52. package/index151.js +1 -1
  53. package/index151.mjs +323 -104
  54. package/index153.js +1 -1
  55. package/index153.mjs +1 -1
  56. package/index154.js +1 -1
  57. package/index154.mjs +1 -1
  58. package/index155.js +1 -1
  59. package/index155.mjs +1 -1
  60. package/index158.js +1 -1
  61. package/index158.mjs +3 -3
  62. package/index159.js +1 -1
  63. package/index159.mjs +2 -2
  64. package/index160.js +1 -1
  65. package/index160.mjs +9 -9
  66. package/index167.js +1 -1
  67. package/index167.mjs +1 -1
  68. package/index169.js +1 -1
  69. package/index169.mjs +3 -3
  70. package/index170.js +1 -1
  71. package/index170.mjs +1 -1
  72. package/index171.js +1 -1
  73. package/index171.mjs +1 -1
  74. package/index173.js +1 -1
  75. package/index173.mjs +1 -1
  76. package/index175.js +1 -1
  77. package/index175.mjs +1 -1
  78. package/index176.js +1 -1
  79. package/index176.mjs +1 -1
  80. package/index177.js +1 -1
  81. package/index177.mjs +1 -1
  82. package/index178.js +1 -1
  83. package/index178.mjs +4 -4
  84. package/index179.js +1 -1
  85. package/index179.mjs +1 -1
  86. package/index184.js +1 -1
  87. package/index184.mjs +1 -1
  88. package/index185.js +1 -1
  89. package/index185.mjs +197 -205
  90. package/index186.js +1 -1
  91. package/index186.mjs +64 -24
  92. package/index187.js +1 -1
  93. package/index187.mjs +143 -4
  94. package/index188.js +1 -1
  95. package/index188.mjs +124 -3
  96. package/index189.js +1 -1
  97. package/index189.mjs +215 -116
  98. package/index190.js +1 -1
  99. package/index190.mjs +184 -23
  100. package/index191.js +1 -1
  101. package/index191.mjs +69 -51
  102. package/index192.js +1 -1
  103. package/index192.mjs +278 -43
  104. package/index193.js +1 -1
  105. package/index193.mjs +92 -31
  106. package/index194.js +1 -1
  107. package/index194.mjs +184 -109
  108. package/index195.js +1 -1
  109. package/index195.mjs +84 -77
  110. package/index196.js +1 -1
  111. package/index196.mjs +58 -101
  112. package/index197.js +1 -1
  113. package/index197.mjs +127 -98
  114. package/index198.js +1 -1
  115. package/index198.mjs +114 -70
  116. package/index199.js +1 -1
  117. package/index199.mjs +118 -91
  118. package/index200.js +1 -1
  119. package/index200.mjs +69 -152
  120. package/index201.js +1 -1
  121. package/index201.mjs +111 -72
  122. package/index202.js +1 -1
  123. package/index202.mjs +51 -41
  124. package/index203.js +1 -1
  125. package/index203.mjs +93 -5
  126. package/index204.js +1 -1
  127. package/index204.mjs +69 -60
  128. package/index205.js +1 -1
  129. package/index205.mjs +55 -58
  130. package/index206.js +1 -1
  131. package/index206.mjs +92 -196
  132. package/index207.js +5 -1
  133. package/index207.mjs +75 -59
  134. package/index208.js +1 -1
  135. package/index208.mjs +2008 -126
  136. package/index209.js +1 -1
  137. package/index209.mjs +56 -121
  138. package/index210.js +1 -1
  139. package/index210.mjs +185 -221
  140. package/index211.js +1 -1
  141. package/index211.mjs +206 -185
  142. package/index212.js +1 -1
  143. package/index212.mjs +24 -69
  144. package/index213.js +1 -1
  145. package/index213.mjs +4 -279
  146. package/index214.js +1 -1
  147. package/index214.mjs +3 -98
  148. package/index215.js +1 -1
  149. package/index215.mjs +116 -179
  150. package/index216.js +1 -1
  151. package/index216.mjs +29 -84
  152. package/index217.js +1 -1
  153. package/index217.mjs +51 -58
  154. package/index218.js +1 -1
  155. package/index218.mjs +43 -125
  156. package/index219.js +1 -1
  157. package/index219.mjs +33 -112
  158. package/index22.js +1 -1
  159. package/index22.mjs +109 -102
  160. package/index220.js +1 -1
  161. package/index220.mjs +110 -119
  162. package/index221.js +1 -1
  163. package/index221.mjs +77 -72
  164. package/index222.js +1 -1
  165. package/index222.mjs +96 -105
  166. package/index223.js +1 -1
  167. package/index223.mjs +98 -53
  168. package/index224.js +1 -1
  169. package/index224.mjs +68 -89
  170. package/index225.js +1 -1
  171. package/index225.mjs +93 -68
  172. package/index226.js +1 -1
  173. package/index226.mjs +151 -52
  174. package/index227.js +1 -1
  175. package/index227.mjs +72 -100
  176. package/index228.js +1 -5
  177. package/index228.mjs +40 -78
  178. package/index229.js +1 -1
  179. package/index229.mjs +5 -2025
  180. package/index230.js +1 -1
  181. package/index230.mjs +61 -59
  182. package/index231.js +1 -1
  183. package/index231.mjs +58 -187
  184. package/index269.js +1 -1
  185. package/index269.mjs +130 -4
  186. package/index270.js +1 -1
  187. package/index270.mjs +184 -42
  188. package/index271.js +1 -1
  189. package/index271.mjs +9 -9
  190. package/index272.js +1 -1
  191. package/index272.mjs +4 -16
  192. package/index273.js +1 -1
  193. package/index273.mjs +37 -16
  194. package/index274.js +1 -1
  195. package/index274.mjs +6 -16
  196. package/index275.js +1 -1
  197. package/index275.mjs +30 -16
  198. package/index276.js +1 -1
  199. package/index276.mjs +7 -16
  200. package/index277.js +1 -1
  201. package/index277.mjs +141 -16
  202. package/index278.js +1 -1
  203. package/index278.mjs +198 -16
  204. package/index279.js +1 -1
  205. package/index279.mjs +23 -16
  206. package/index280.js +1 -1
  207. package/index280.mjs +29 -16
  208. package/index281.js +1 -1
  209. package/index281.mjs +47 -16
  210. package/index282.js +1 -1
  211. package/index282.mjs +49 -16
  212. package/index283.js +1 -1
  213. package/index283.mjs +101 -16
  214. package/index284.js +1 -1
  215. package/index284.mjs +6 -16
  216. package/index285.js +1 -1
  217. package/index285.mjs +71 -15
  218. package/index286.js +1 -1
  219. package/index286.mjs +59 -16
  220. package/index287.js +1 -1
  221. package/index287.mjs +8 -16
  222. package/index288.js +1 -1
  223. package/index288.mjs +12 -16
  224. package/index289.js +1 -1
  225. package/index289.mjs +48 -16
  226. package/index290.js +1 -1
  227. package/index290.mjs +25 -16
  228. package/index291.js +1 -1
  229. package/index291.mjs +6 -16
  230. package/index292.js +1 -1
  231. package/index292.mjs +15 -16
  232. package/index293.js +1 -1
  233. package/index293.mjs +25 -16
  234. package/index294.js +1 -1
  235. package/index294.mjs +29 -16
  236. package/index295.js +1 -1
  237. package/index295.mjs +32 -16
  238. package/index296.js +1 -1
  239. package/index296.mjs +10 -16
  240. package/index297.js +1 -1
  241. package/index297.mjs +10 -16
  242. package/index298.js +1 -1
  243. package/index298.mjs +6 -16
  244. package/index299.js +1 -1
  245. package/index299.mjs +8 -16
  246. package/index300.js +1 -1
  247. package/index300.mjs +14 -16
  248. package/index301.js +1 -1
  249. package/index301.mjs +9 -16
  250. package/index302.js +1 -1
  251. package/index302.mjs +5 -16
  252. package/index303.js +1 -1
  253. package/index303.mjs +49 -16
  254. package/index304.js +1 -1
  255. package/index304.mjs +12 -12
  256. package/index305.js +1 -1
  257. package/index305.mjs +12 -12
  258. package/index306.js +1 -1
  259. package/index306.mjs +15 -130
  260. package/index307.js +1 -1
  261. package/index307.mjs +16 -191
  262. package/index308.js +1 -1
  263. package/index308.mjs +16 -10
  264. package/index309.js +1 -1
  265. package/index309.mjs +16 -4
  266. package/index310.js +1 -1
  267. package/index310.mjs +16 -37
  268. package/index311.js +1 -1
  269. package/index311.mjs +16 -6
  270. package/index312.js +1 -1
  271. package/index312.mjs +16 -30
  272. package/index313.js +1 -1
  273. package/index313.mjs +16 -7
  274. package/index314.js +1 -1
  275. package/index314.mjs +16 -141
  276. package/index315.js +1 -1
  277. package/index315.mjs +16 -198
  278. package/index316.js +1 -1
  279. package/index316.mjs +16 -23
  280. package/index317.js +1 -1
  281. package/index317.mjs +16 -29
  282. package/index318.js +1 -1
  283. package/index318.mjs +16 -47
  284. package/index319.js +1 -1
  285. package/index319.mjs +16 -49
  286. package/index320.js +1 -1
  287. package/index320.mjs +16 -101
  288. package/index321.js +1 -1
  289. package/index321.mjs +16 -6
  290. package/index322.js +1 -1
  291. package/index322.mjs +15 -71
  292. package/index323.js +1 -1
  293. package/index323.mjs +16 -59
  294. package/index324.js +1 -1
  295. package/index324.mjs +16 -8
  296. package/index325.js +1 -1
  297. package/index325.mjs +16 -12
  298. package/index326.js +1 -1
  299. package/index326.mjs +16 -48
  300. package/index327.js +1 -1
  301. package/index327.mjs +16 -25
  302. package/index328.js +1 -1
  303. package/index328.mjs +16 -6
  304. package/index329.js +1 -1
  305. package/index329.mjs +16 -15
  306. package/index330.js +1 -1
  307. package/index330.mjs +16 -25
  308. package/index331.js +1 -1
  309. package/index331.mjs +16 -29
  310. package/index332.js +1 -1
  311. package/index332.mjs +16 -32
  312. package/index333.js +1 -1
  313. package/index333.mjs +16 -10
  314. package/index334.js +1 -1
  315. package/index334.mjs +16 -6
  316. package/index335.js +1 -1
  317. package/index335.mjs +16 -8
  318. package/index336.js +1 -1
  319. package/index336.mjs +16 -14
  320. package/index337.js +1 -1
  321. package/index337.mjs +16 -9
  322. package/index340.js +1 -1
  323. package/index340.mjs +1 -1
  324. package/index341.js +1 -1
  325. package/index341.mjs +2 -2
  326. package/index344.js +1 -1
  327. package/index344.mjs +1 -1
  328. package/index345.js +1 -1
  329. package/index345.mjs +71 -117
  330. package/index346.js +1 -1
  331. package/index346.mjs +117 -71
  332. package/package.json +1 -1
package/index194.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("./index169.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;
1
+ "use strict";const F=require("./index269.js"),y=require("./index272.js"),a=require("./index270.js");function K(P){let{swiper:i,extendParams:N,on:o}=P;N({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0}}),i.a11y={clicked:!1};let r=null,p,u,L=new Date().getTime();function f(e){const t=r;t.length!==0&&(t.innerHTML="",t.innerHTML=e)}function B(e){const t=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(e).replace(/x/g,t)}function g(e){e=a.m(e),e.forEach(t=>{t.setAttribute("tabIndex","0")})}function M(e){e=a.m(e),e.forEach(t=>{t.setAttribute("tabIndex","-1")})}function m(e,t){e=a.m(e),e.forEach(n=>{n.setAttribute("role",t)})}function x(e,t){e=a.m(e),e.forEach(n=>{n.setAttribute("aria-roledescription",t)})}function q(e,t){e=a.m(e),e.forEach(n=>{n.setAttribute("aria-controls",t)})}function E(e,t){e=a.m(e),e.forEach(n=>{n.setAttribute("aria-label",t)})}function O(e,t){e=a.m(e),e.forEach(n=>{n.setAttribute("id",t)})}function H(e,t){e=a.m(e),e.forEach(n=>{n.setAttribute("aria-live",t)})}function w(e){e=a.m(e),e.forEach(t=>{t.setAttribute("aria-disabled",!0)})}function A(e){e=a.m(e),e.forEach(t=>{t.setAttribute("aria-disabled",!1)})}function d(e){if(e.keyCode!==13&&e.keyCode!==32)return;const t=i.params.a11y,n=e.target;if(!(i.pagination&&i.pagination.el&&(n===i.pagination.el||i.pagination.el.contains(e.target))&&!e.target.matches(y.c(i.params.pagination.bulletClass)))){if(i.navigation&&i.navigation.prevEl&&i.navigation.nextEl){const s=a.m(i.navigation.prevEl);a.m(i.navigation.nextEl).includes(n)&&(i.isEnd&&!i.params.loop||i.slideNext(),i.isEnd?f(t.lastSlideMessage):f(t.nextSlideMessage)),s.includes(n)&&(i.isBeginning&&!i.params.loop||i.slidePrev(),i.isBeginning?f(t.firstSlideMessage):f(t.prevSlideMessage))}i.pagination&&n.matches(y.c(i.params.pagination.bulletClass))&&n.click()}}function G(){if(i.params.loop||i.params.rewind||!i.navigation)return;const{nextEl:e,prevEl:t}=i.navigation;t&&(i.isBeginning?(w(t),M(t)):(A(t),g(t))),e&&(i.isEnd?(w(e),M(e)):(A(e),g(e)))}function k(){return i.pagination&&i.pagination.bullets&&i.pagination.bullets.length}function C(){return k()&&i.params.pagination.clickable}function U(){const e=i.params.a11y;k()&&i.pagination.bullets.forEach(t=>{i.params.pagination.clickable&&(g(t),i.params.pagination.renderBullet||(m(t,"button"),E(t,e.paginationBulletMessage.replace(/\{\{index\}\}/,a.h(t)+1)))),t.matches(y.c(i.params.pagination.bulletActiveClass))?t.setAttribute("aria-current","true"):t.removeAttribute("aria-current")})}const S=(e,t,n)=>{g(e),e.tagName!=="BUTTON"&&(m(e,"button"),e.addEventListener("keydown",d)),E(e,n),q(e,t)},R=e=>{u&&u!==e.target&&!u.contains(e.target)&&(p=!0),i.a11y.clicked=!0},T=()=>{p=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.destroyed||(i.a11y.clicked=!1)})})},D=e=>{L=new Date().getTime()},h=e=>{if(i.a11y.clicked||!i.params.a11y.scrollOnFocus||new Date().getTime()-L<100)return;const t=e.target.closest(`.${i.params.slideClass}, swiper-slide`);if(!t||!i.slides.includes(t))return;u=t;const n=i.slides.indexOf(t)===i.activeIndex,s=i.params.watchSlidesProgress&&i.visibleSlides&&i.visibleSlides.includes(t);n||s||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(i.isHorizontal()?i.el.scrollLeft=0:i.el.scrollTop=0,requestAnimationFrame(()=>{p||(i.params.loop?i.slideToLoop(parseInt(t.getAttribute("data-swiper-slide-index")),0):i.slideTo(i.slides.indexOf(t),0),p=!1)}))},I=()=>{const e=i.params.a11y;e.itemRoleDescriptionMessage&&x(i.slides,e.itemRoleDescriptionMessage),e.slideRole&&m(i.slides,e.slideRole);const t=i.slides.length;e.slideLabelMessage&&i.slides.forEach((n,s)=>{const l=i.params.loop?parseInt(n.getAttribute("data-swiper-slide-index"),10):s,c=e.slideLabelMessage.replace(/\{\{index\}\}/,l+1).replace(/\{\{slidesLength\}\}/,t);E(n,c)})},V=()=>{const e=i.params.a11y;i.el.append(r);const t=i.el;e.containerRoleDescriptionMessage&&x(t,e.containerRoleDescriptionMessage),e.containerMessage&&E(t,e.containerMessage),e.containerRole&&m(t,e.containerRole);const n=i.wrapperEl,s=e.id||n.getAttribute("id")||`swiper-wrapper-${B(16)}`,l=i.params.autoplay&&i.params.autoplay.enabled?"off":"polite";O(n,s),H(n,l),I();let{nextEl:c,prevEl:v}=i.navigation?i.navigation:{};c=a.m(c),v=a.m(v),c&&c.forEach(b=>S(b,s,e.nextSlideMessage)),v&&v.forEach(b=>S(b,s,e.prevSlideMessage)),C()&&a.m(i.pagination.el).forEach(z=>{z.addEventListener("keydown",d)}),F.g().addEventListener("visibilitychange",D),i.el.addEventListener("focus",h,!0),i.el.addEventListener("focus",h,!0),i.el.addEventListener("pointerdown",R,!0),i.el.addEventListener("pointerup",T,!0)};function $(){r&&r.remove();let{nextEl:e,prevEl:t}=i.navigation?i.navigation:{};e=a.m(e),t=a.m(t),e&&e.forEach(s=>s.removeEventListener("keydown",d)),t&&t.forEach(s=>s.removeEventListener("keydown",d)),C()&&a.m(i.pagination.el).forEach(l=>{l.removeEventListener("keydown",d)}),F.g().removeEventListener("visibilitychange",D),i.el&&typeof i.el!="string"&&(i.el.removeEventListener("focus",h,!0),i.el.removeEventListener("pointerdown",R,!0),i.el.removeEventListener("pointerup",T,!0))}o("beforeInit",()=>{r=a.c("span",i.params.a11y.notificationClass),r.setAttribute("aria-live","assertive"),r.setAttribute("aria-atomic","true")}),o("afterInit",()=>{i.params.a11y.enabled&&V()}),o("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{i.params.a11y.enabled&&I()}),o("fromEdge toEdge afterInit lock unlock",()=>{i.params.a11y.enabled&&G()}),o("paginationUpdate",()=>{i.params.a11y.enabled&&U()}),o("destroy",()=>{i.params.a11y.enabled&&$()})}module.exports=K;
package/index194.mjs CHANGED
@@ -1,116 +1,191 @@
1
- import { CalendarDate as D } from "./index169.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);
1
+ import { g as F } from "./index269.mjs";
2
+ import { c as y } from "./index272.mjs";
3
+ import { c as K, h as j, m as n } from "./index270.mjs";
4
+ function Y(P) {
5
+ let {
6
+ swiper: i,
7
+ extendParams: N,
8
+ on: o
9
+ } = P;
10
+ N({
11
+ a11y: {
12
+ enabled: !0,
13
+ notificationClass: "swiper-notification",
14
+ prevSlideMessage: "Previous slide",
15
+ nextSlideMessage: "Next slide",
16
+ firstSlideMessage: "This is the first slide",
17
+ lastSlideMessage: "This is the last slide",
18
+ paginationBulletMessage: "Go to slide {{index}}",
19
+ slideLabelMessage: "{{index}} / {{slidesLength}}",
20
+ containerMessage: null,
21
+ containerRoleDescriptionMessage: null,
22
+ containerRole: null,
23
+ itemRoleDescriptionMessage: null,
24
+ slideRole: "group",
25
+ id: null,
26
+ scrollOnFocus: !0
90
27
  }
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);
28
+ }), i.a11y = {
29
+ clicked: !1
30
+ };
31
+ let r = null, p, f, L = (/* @__PURE__ */ new Date()).getTime();
32
+ function u(e) {
33
+ const t = r;
34
+ t.length !== 0 && (t.innerHTML = "", t.innerHTML = e);
35
+ }
36
+ function B(e) {
37
+ const t = () => Math.round(16 * Math.random()).toString(16);
38
+ return "x".repeat(e).replace(/x/g, t);
39
+ }
40
+ function g(e) {
41
+ e = n(e), e.forEach((t) => {
42
+ t.setAttribute("tabIndex", "0");
43
+ });
44
+ }
45
+ function x(e) {
46
+ e = n(e), e.forEach((t) => {
47
+ t.setAttribute("tabIndex", "-1");
48
+ });
49
+ }
50
+ function m(e, t) {
51
+ e = n(e), e.forEach((a) => {
52
+ a.setAttribute("role", t);
53
+ });
54
+ }
55
+ function M(e, t) {
56
+ e = n(e), e.forEach((a) => {
57
+ a.setAttribute("aria-roledescription", t);
58
+ });
59
+ }
60
+ function O(e, t) {
61
+ e = n(e), e.forEach((a) => {
62
+ a.setAttribute("aria-controls", t);
63
+ });
64
+ }
65
+ function E(e, t) {
66
+ e = n(e), e.forEach((a) => {
67
+ a.setAttribute("aria-label", t);
68
+ });
69
+ }
70
+ function H(e, t) {
71
+ e = n(e), e.forEach((a) => {
72
+ a.setAttribute("id", t);
73
+ });
74
+ }
75
+ function q(e, t) {
76
+ e = n(e), e.forEach((a) => {
77
+ a.setAttribute("aria-live", t);
78
+ });
79
+ }
80
+ function A(e) {
81
+ e = n(e), e.forEach((t) => {
82
+ t.setAttribute("aria-disabled", !0);
83
+ });
84
+ }
85
+ function w(e) {
86
+ e = n(e), e.forEach((t) => {
87
+ t.setAttribute("aria-disabled", !1);
88
+ });
89
+ }
90
+ function d(e) {
91
+ if (e.keyCode !== 13 && e.keyCode !== 32) return;
92
+ const t = i.params.a11y, a = e.target;
93
+ if (!(i.pagination && i.pagination.el && (a === i.pagination.el || i.pagination.el.contains(e.target)) && !e.target.matches(y(i.params.pagination.bulletClass)))) {
94
+ if (i.navigation && i.navigation.prevEl && i.navigation.nextEl) {
95
+ const s = n(i.navigation.prevEl);
96
+ n(i.navigation.nextEl).includes(a) && (i.isEnd && !i.params.loop || i.slideNext(), i.isEnd ? u(t.lastSlideMessage) : u(t.nextSlideMessage)), s.includes(a) && (i.isBeginning && !i.params.loop || i.slidePrev(), i.isBeginning ? u(t.firstSlideMessage) : u(t.prevSlideMessage));
108
97
  }
98
+ i.pagination && a.matches(y(i.params.pagination.bulletClass)) && a.click();
109
99
  }
110
100
  }
101
+ function G() {
102
+ if (i.params.loop || i.params.rewind || !i.navigation) return;
103
+ const {
104
+ nextEl: e,
105
+ prevEl: t
106
+ } = i.navigation;
107
+ t && (i.isBeginning ? (A(t), x(t)) : (w(t), g(t))), e && (i.isEnd ? (A(e), x(e)) : (w(e), g(e)));
108
+ }
109
+ function k() {
110
+ return i.pagination && i.pagination.bullets && i.pagination.bullets.length;
111
+ }
112
+ function C() {
113
+ return k() && i.params.pagination.clickable;
114
+ }
115
+ function U() {
116
+ const e = i.params.a11y;
117
+ k() && i.pagination.bullets.forEach((t) => {
118
+ i.params.pagination.clickable && (g(t), i.params.pagination.renderBullet || (m(t, "button"), E(t, e.paginationBulletMessage.replace(/\{\{index\}\}/, j(t) + 1)))), t.matches(y(i.params.pagination.bulletActiveClass)) ? t.setAttribute("aria-current", "true") : t.removeAttribute("aria-current");
119
+ });
120
+ }
121
+ const S = (e, t, a) => {
122
+ g(e), e.tagName !== "BUTTON" && (m(e, "button"), e.addEventListener("keydown", d)), E(e, a), O(e, t);
123
+ }, R = (e) => {
124
+ f && f !== e.target && !f.contains(e.target) && (p = !0), i.a11y.clicked = !0;
125
+ }, T = () => {
126
+ p = !1, requestAnimationFrame(() => {
127
+ requestAnimationFrame(() => {
128
+ i.destroyed || (i.a11y.clicked = !1);
129
+ });
130
+ });
131
+ }, D = (e) => {
132
+ L = (/* @__PURE__ */ new Date()).getTime();
133
+ }, h = (e) => {
134
+ if (i.a11y.clicked || !i.params.a11y.scrollOnFocus || (/* @__PURE__ */ new Date()).getTime() - L < 100) return;
135
+ const t = e.target.closest(`.${i.params.slideClass}, swiper-slide`);
136
+ if (!t || !i.slides.includes(t)) return;
137
+ f = t;
138
+ const a = i.slides.indexOf(t) === i.activeIndex, s = i.params.watchSlidesProgress && i.visibleSlides && i.visibleSlides.includes(t);
139
+ a || s || e.sourceCapabilities && e.sourceCapabilities.firesTouchEvents || (i.isHorizontal() ? i.el.scrollLeft = 0 : i.el.scrollTop = 0, requestAnimationFrame(() => {
140
+ p || (i.params.loop ? i.slideToLoop(parseInt(t.getAttribute("data-swiper-slide-index")), 0) : i.slideTo(i.slides.indexOf(t), 0), p = !1);
141
+ }));
142
+ }, I = () => {
143
+ const e = i.params.a11y;
144
+ e.itemRoleDescriptionMessage && M(i.slides, e.itemRoleDescriptionMessage), e.slideRole && m(i.slides, e.slideRole);
145
+ const t = i.slides.length;
146
+ e.slideLabelMessage && i.slides.forEach((a, s) => {
147
+ const l = i.params.loop ? parseInt(a.getAttribute("data-swiper-slide-index"), 10) : s, c = e.slideLabelMessage.replace(/\{\{index\}\}/, l + 1).replace(/\{\{slidesLength\}\}/, t);
148
+ E(a, c);
149
+ });
150
+ }, V = () => {
151
+ const e = i.params.a11y;
152
+ i.el.append(r);
153
+ const t = i.el;
154
+ e.containerRoleDescriptionMessage && M(t, e.containerRoleDescriptionMessage), e.containerMessage && E(t, e.containerMessage), e.containerRole && m(t, e.containerRole);
155
+ const a = i.wrapperEl, s = e.id || a.getAttribute("id") || `swiper-wrapper-${B(16)}`, l = i.params.autoplay && i.params.autoplay.enabled ? "off" : "polite";
156
+ H(a, s), q(a, l), I();
157
+ let {
158
+ nextEl: c,
159
+ prevEl: v
160
+ } = i.navigation ? i.navigation : {};
161
+ c = n(c), v = n(v), c && c.forEach((b) => S(b, s, e.nextSlideMessage)), v && v.forEach((b) => S(b, s, e.prevSlideMessage)), C() && n(i.pagination.el).forEach((z) => {
162
+ z.addEventListener("keydown", d);
163
+ }), F().addEventListener("visibilitychange", D), i.el.addEventListener("focus", h, !0), i.el.addEventListener("focus", h, !0), i.el.addEventListener("pointerdown", R, !0), i.el.addEventListener("pointerup", T, !0);
164
+ };
165
+ function $() {
166
+ r && r.remove();
167
+ let {
168
+ nextEl: e,
169
+ prevEl: t
170
+ } = i.navigation ? i.navigation : {};
171
+ e = n(e), t = n(t), e && e.forEach((s) => s.removeEventListener("keydown", d)), t && t.forEach((s) => s.removeEventListener("keydown", d)), C() && n(i.pagination.el).forEach((l) => {
172
+ l.removeEventListener("keydown", d);
173
+ }), F().removeEventListener("visibilitychange", D), i.el && typeof i.el != "string" && (i.el.removeEventListener("focus", h, !0), i.el.removeEventListener("pointerdown", R, !0), i.el.removeEventListener("pointerup", T, !0));
174
+ }
175
+ o("beforeInit", () => {
176
+ r = K("span", i.params.a11y.notificationClass), r.setAttribute("aria-live", "assertive"), r.setAttribute("aria-atomic", "true");
177
+ }), o("afterInit", () => {
178
+ i.params.a11y.enabled && V();
179
+ }), o("slidesLengthChange snapGridLengthChange slidesGridLengthChange", () => {
180
+ i.params.a11y.enabled && I();
181
+ }), o("fromEdge toEdge afterInit lock unlock", () => {
182
+ i.params.a11y.enabled && G();
183
+ }), o("paginationUpdate", () => {
184
+ i.params.a11y.enabled && U();
185
+ }), o("destroy", () => {
186
+ i.params.a11y.enabled && $();
187
+ });
111
188
  }
112
189
  export {
113
- B as IslamicCivilCalendar,
114
- L as IslamicTabularCalendar,
115
- q as IslamicUmalquraCalendar
190
+ Y as default
116
191
  };
package/index195.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./index169.js"),b=require("./index188.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;
1
+ "use strict";const h=require("./index269.js");function $(w){let{swiper:e,extendParams:S,on:c}=w;S({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let d=!1,l={};const y=t=>t.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),f=t=>{const o=h.a();let r;t?r=new URL(t):r=o.location;const a=r.pathname.slice(1).split("/").filter(i=>i!==""),n=a.length,s=a[n-2],p=a[n-1];return{key:s,value:p}},m=(t,o)=>{const r=h.a();if(!d||!e.params.history.enabled)return;let a;e.params.url?a=new URL(e.params.url):a=r.location;const n=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${o}"]`):e.slides[o];let s=y(n.getAttribute("data-history"));if(e.params.history.root.length>0){let i=e.params.history.root;i[i.length-1]==="/"&&(i=i.slice(0,i.length-1)),s=`${i}/${t?`${t}/`:""}${s}`}else a.pathname.includes(t)||(s=`${t?`${t}/`:""}${s}`);e.params.history.keepQuery&&(s+=a.search);const p=r.history.state;p&&p.value===s||(e.params.history.replaceState?r.history.replaceState({value:s},null,s):r.history.pushState({value:s},null,s))},g=(t,o,r)=>{if(o)for(let a=0,n=e.slides.length;a<n;a+=1){const s=e.slides[a];if(y(s.getAttribute("data-history"))===o){const i=e.getSlideIndex(s);e.slideTo(i,t,r)}}else e.slideTo(0,t,r)},u=()=>{l=f(e.params.url),g(e.params.speed,l.value,!1)},v=()=>{const t=h.a();if(e.params.history){if(!t.history||!t.history.pushState){e.params.history.enabled=!1,e.params.hashNavigation.enabled=!0;return}if(d=!0,l=f(e.params.url),!l.key&&!l.value){e.params.history.replaceState||t.addEventListener("popstate",u);return}g(0,l.value,e.params.runCallbacksOnInit),e.params.history.replaceState||t.addEventListener("popstate",u)}},b=()=>{const t=h.a();e.params.history.replaceState||t.removeEventListener("popstate",u)};c("init",()=>{e.params.history.enabled&&v()}),c("destroy",()=>{e.params.history.enabled&&b()}),c("transitionEnd _freeModeNoMomentumRelease",()=>{d&&m(e.params.history.key,e.activeIndex)}),c("slideChange",()=>{d&&e.params.cssMode&&m(e.params.history.key,e.activeIndex)})}module.exports=$;
package/index195.mjs CHANGED
@@ -1,80 +1,87 @@
1
- import { CalendarDate as v } from "./index169.mjs";
2
- import { mod as y } from "./index188.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
- }
1
+ import { a as h } from "./index269.mjs";
2
+ function x(w) {
3
+ let {
4
+ swiper: e,
5
+ extendParams: S,
6
+ on: c
7
+ } = w;
8
+ S({
9
+ history: {
10
+ enabled: !1,
11
+ root: "",
12
+ replaceState: !1,
13
+ key: "slides",
14
+ keepQuery: !1
15
+ }
16
+ });
17
+ let d = !1, l = {};
18
+ const y = (t) => t.toString().replace(/\s+/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/^-+/, "").replace(/-+$/, ""), f = (t) => {
19
+ const o = h();
20
+ let r;
21
+ t ? r = new URL(t) : r = o.location;
22
+ const a = r.pathname.slice(1).split("/").filter((i) => i !== ""), n = a.length, s = a[n - 2], p = a[n - 1];
23
+ return {
24
+ key: s,
25
+ value: p
26
+ };
27
+ }, m = (t, o) => {
28
+ const r = h();
29
+ if (!d || !e.params.history.enabled) return;
30
+ let a;
31
+ e.params.url ? a = new URL(e.params.url) : a = r.location;
32
+ const n = e.virtual && e.params.virtual.enabled ? e.slidesEl.querySelector(`[data-swiper-slide-index="${o}"]`) : e.slides[o];
33
+ let s = y(n.getAttribute("data-history"));
34
+ if (e.params.history.root.length > 0) {
35
+ let i = e.params.history.root;
36
+ i[i.length - 1] === "/" && (i = i.slice(0, i.length - 1)), s = `${i}/${t ? `${t}/` : ""}${s}`;
37
+ } else a.pathname.includes(t) || (s = `${t ? `${t}/` : ""}${s}`);
38
+ e.params.history.keepQuery && (s += a.search);
39
+ const p = r.history.state;
40
+ p && p.value === s || (e.params.history.replaceState ? r.history.replaceState({
41
+ value: s
42
+ }, null, s) : r.history.pushState({
43
+ value: s
44
+ }, null, s));
45
+ }, g = (t, o, r) => {
46
+ if (o)
47
+ for (let a = 0, n = e.slides.length; a < n; a += 1) {
48
+ const s = e.slides[a];
49
+ if (y(s.getAttribute("data-history")) === o) {
50
+ const i = e.getSlideIndex(s);
51
+ e.slideTo(i, t, r);
52
+ }
53
+ }
54
+ else
55
+ e.slideTo(0, t, r);
56
+ }, u = () => {
57
+ l = f(e.params.url), g(e.params.speed, l.value, !1);
58
+ }, v = () => {
59
+ const t = h();
60
+ if (e.params.history) {
61
+ if (!t.history || !t.history.pushState) {
62
+ e.params.history.enabled = !1, e.params.hashNavigation.enabled = !0;
63
+ return;
64
+ }
65
+ if (d = !0, l = f(e.params.url), !l.key && !l.value) {
66
+ e.params.history.replaceState || t.addEventListener("popstate", u);
67
+ return;
68
+ }
69
+ g(0, l.value, e.params.runCallbacksOnInit), e.params.history.replaceState || t.addEventListener("popstate", u);
70
+ }
71
+ }, b = () => {
72
+ const t = h();
73
+ e.params.history.replaceState || t.removeEventListener("popstate", u);
74
+ };
75
+ c("init", () => {
76
+ e.params.history.enabled && v();
77
+ }), c("destroy", () => {
78
+ e.params.history.enabled && b();
79
+ }), c("transitionEnd _freeModeNoMomentumRelease", () => {
80
+ d && m(e.params.history.key, e.activeIndex);
81
+ }), c("slideChange", () => {
82
+ d && e.params.cssMode && m(e.params.history.key, e.activeIndex);
83
+ });
77
84
  }
78
85
  export {
79
- O as HebrewCalendar
86
+ x as default
80
87
  };
package/index196.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index169.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;
1
+ "use strict";const p=require("./index269.js"),S=require("./index270.js");function x(u){let{swiper:e,extendParams:v,emit:l,on:n}=u,r=!1;const h=p.g(),i=p.a();v({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(a,t){if(e.virtual&&e.params.virtual.enabled){const s=e.slides.filter(f=>f.getAttribute("data-hash")===t)[0];return s?parseInt(s.getAttribute("data-swiper-slide-index"),10):0}return e.getSlideIndex(S.e(e.slidesEl,`.${e.params.slideClass}[data-hash="${t}"], swiper-slide[data-hash="${t}"]`)[0])}}});const o=()=>{l("hashChange");const a=h.location.hash.replace("#",""),t=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],s=t?t.getAttribute("data-hash"):"";if(a!==s){const d=e.params.hashNavigation.getSlideIndex(e,a);if(typeof d>"u"||Number.isNaN(d))return;e.slideTo(d)}},c=()=>{if(!r||!e.params.hashNavigation.enabled)return;const a=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],t=a?a.getAttribute("data-hash")||a.getAttribute("data-history"):"";e.params.hashNavigation.replaceState&&i.history&&i.history.replaceState?(i.history.replaceState(null,null,`#${t}`||""),l("hashSet")):(h.location.hash=t||"",l("hashSet"))},g=()=>{if(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)return;r=!0;const a=h.location.hash.replace("#","");if(a){const s=e.params.hashNavigation.getSlideIndex(e,a);e.slideTo(s||0,0,e.params.runCallbacksOnInit,!0)}e.params.hashNavigation.watchState&&i.addEventListener("hashchange",o)},m=()=>{e.params.hashNavigation.watchState&&i.removeEventListener("hashchange",o)};n("init",()=>{e.params.hashNavigation.enabled&&g()}),n("destroy",()=>{e.params.hashNavigation.enabled&&m()}),n("transitionEnd _freeModeNoMomentumRelease",()=>{r&&c()}),n("slideChange",()=>{r&&e.params.cssMode&&c()})}module.exports=x;