zudoku 0.39.4 → 0.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (247) hide show
  1. package/dist/app/entry.client.js +2 -0
  2. package/dist/app/entry.client.js.map +1 -1
  3. package/dist/config/config.d.ts +3 -1
  4. package/dist/config/loader.d.ts +1 -0
  5. package/dist/config/loader.js +1 -1
  6. package/dist/config/loader.js.map +1 -1
  7. package/dist/config/validators/BuildSchema.d.ts +59 -0
  8. package/dist/config/validators/BuildSchema.js +31 -0
  9. package/dist/config/validators/BuildSchema.js.map +1 -0
  10. package/dist/config/validators/common.d.ts +7 -51
  11. package/dist/config/validators/common.js +1 -7
  12. package/dist/config/validators/common.js.map +1 -1
  13. package/dist/config/validators/icon-types.d.ts +1 -1
  14. package/dist/config/validators/validate.d.ts +2 -18
  15. package/dist/index.d.ts +1 -1
  16. package/dist/lib/authentication/providers/clerk.js +2 -2
  17. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  18. package/dist/lib/components/Footer.js +2 -2
  19. package/dist/lib/components/Footer.js.map +1 -1
  20. package/dist/lib/components/Layout.js +2 -1
  21. package/dist/lib/components/Layout.js.map +1 -1
  22. package/dist/lib/components/Search.js +7 -1
  23. package/dist/lib/components/Search.js.map +1 -1
  24. package/dist/lib/components/navigation/Sidebar.js +3 -1
  25. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  26. package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
  27. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  28. package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
  29. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
  30. package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
  31. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
  32. package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
  33. package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
  34. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
  35. package/dist/lib/ui/Callout.js +1 -1
  36. package/dist/lib/ui/Callout.js.map +1 -1
  37. package/dist/lib/ui/Form.d.ts +1 -1
  38. package/dist/lib/util/MdxComponents.d.ts +1 -0
  39. package/dist/lib/util/MdxComponents.js +2 -0
  40. package/dist/lib/util/MdxComponents.js.map +1 -1
  41. package/dist/lib/util/detectOS.d.ts +1 -0
  42. package/dist/lib/util/detectOS.js +11 -0
  43. package/dist/lib/util/detectOS.js.map +1 -0
  44. package/dist/vite/api/schema-codegen.js +8 -7
  45. package/dist/vite/api/schema-codegen.js.map +1 -1
  46. package/dist/vite/plugin-api.js +34 -13
  47. package/dist/vite/plugin-api.js.map +1 -1
  48. package/dist/vite/plugin-sidebar.js +1 -1
  49. package/dist/vite/plugin-sidebar.js.map +1 -1
  50. package/dist/vite/prerender/prerender.js +6 -5
  51. package/dist/vite/prerender/prerender.js.map +1 -1
  52. package/dist/zuplo/with-zuplo-processors.js +3 -3
  53. package/dist/zuplo/with-zuplo-processors.js.map +1 -1
  54. package/dist/zuplo/with-zuplo.d.ts +1 -1
  55. package/lib/{AuthenticationPlugin-foqdvvkf.js → AuthenticationPlugin-CJOFRBk3.js} +4 -4
  56. package/lib/{AuthenticationPlugin-foqdvvkf.js.map → AuthenticationPlugin-CJOFRBk3.js.map} +1 -1
  57. package/lib/{Button-Fp19CMUr.js → Button-BBNrKpQd.js} +2 -2
  58. package/lib/{Button-Fp19CMUr.js.map → Button-BBNrKpQd.js.map} +1 -1
  59. package/lib/{Callout-B2vsR09t.js → Callout-D3Ja4OPX.js} +14 -13
  60. package/lib/{Callout-B2vsR09t.js.map → Callout-D3Ja4OPX.js.map} +1 -1
  61. package/lib/{CategoryHeading-DpB47wvk.js → CategoryHeading-D06WK_Wo.js} +2 -2
  62. package/lib/{CategoryHeading-DpB47wvk.js.map → CategoryHeading-D06WK_Wo.js.map} +1 -1
  63. package/lib/{Dialog-sbgekbjb.js → Dialog-ByYz4ABw.js} +2 -2
  64. package/lib/{Dialog-sbgekbjb.js.map → Dialog-ByYz4ABw.js.map} +1 -1
  65. package/lib/{Drawer-kDAfOq_2.js → Drawer-CEwbkLDb.js} +2 -2
  66. package/lib/Drawer-CEwbkLDb.js.map +1 -0
  67. package/lib/{Markdown-aF5FdsNi.js → Markdown-C5h6bxbE.js} +4239 -4073
  68. package/lib/Markdown-C5h6bxbE.js.map +1 -0
  69. package/lib/{MdxPage-Vw_dc9Yz.js → MdxPage-B66ht0D_.js} +9 -9
  70. package/lib/{MdxPage-Vw_dc9Yz.js.map → MdxPage-B66ht0D_.js.map} +1 -1
  71. package/lib/{OasProvider-CjXTP-nz.js → OasProvider-BKPF0Pbt.js} +6 -6
  72. package/lib/{OasProvider-CjXTP-nz.js.map → OasProvider-BKPF0Pbt.js.map} +1 -1
  73. package/lib/{OperationList-BYemrDYk.js → OperationList-0bhBU7ME.js} +121 -120
  74. package/lib/OperationList-0bhBU7ME.js.map +1 -0
  75. package/lib/{Pagination-SdlocK96.js → Pagination-Bt1czAiJ.js} +4 -4
  76. package/lib/{Pagination-SdlocK96.js.map → Pagination-Bt1czAiJ.js.map} +1 -1
  77. package/lib/{RouteGuard-CqZPoZYJ.js → RouteGuard-BZ_VsiXc.js} +6 -6
  78. package/lib/{RouteGuard-CqZPoZYJ.js.map → RouteGuard-BZ_VsiXc.js.map} +1 -1
  79. package/lib/{SchemaList-CAeKy9pV.js → SchemaList-CsTIT1pi.js} +10 -10
  80. package/lib/{SchemaList-CAeKy9pV.js.map → SchemaList-CsTIT1pi.js.map} +1 -1
  81. package/lib/{SchemaView-B3fOPR4V.js → SchemaView-DCSWtnYr.js} +5 -5
  82. package/lib/{SchemaView-B3fOPR4V.js.map → SchemaView-DCSWtnYr.js.map} +1 -1
  83. package/lib/{Select-DVFRKf1R.js → Select-Dg5R11Dx.js} +4 -4
  84. package/lib/{Select-DVFRKf1R.js.map → Select-Dg5R11Dx.js.map} +1 -1
  85. package/lib/{SlotletProvider-DXvc0aY6.js → SlotletProvider-VUmTNmLZ.js} +41 -39
  86. package/lib/SlotletProvider-VUmTNmLZ.js.map +1 -0
  87. package/lib/{Spinner-CE68iCm0.js → Spinner-mNLZ6awP.js} +2 -2
  88. package/lib/{Spinner-CE68iCm0.js.map → Spinner-mNLZ6awP.js.map} +1 -1
  89. package/lib/{SyntaxHighlight-BEoSoPEo.js → SyntaxHighlight-CxhyyMkF.js} +6 -6
  90. package/lib/{SyntaxHighlight-BEoSoPEo.js.map → SyntaxHighlight-CxhyyMkF.js.map} +1 -1
  91. package/lib/{Toc-YBsgI72s.js → Toc-BK39DQvI.js} +3 -3
  92. package/lib/{Toc-YBsgI72s.js.map → Toc-BK39DQvI.js.map} +1 -1
  93. package/lib/{_commonjsHelpers-BkfeUUK-.js → _commonjsHelpers-B4e78b8K.js} +2 -2
  94. package/lib/_commonjsHelpers-B4e78b8K.js.map +1 -0
  95. package/lib/{chunk-HA7DTUK3-C4gP41vD.js → chunk-KNED5TY2-BUPjb3LQ.js} +314 -313
  96. package/lib/chunk-KNED5TY2-BUPjb3LQ.js.map +1 -0
  97. package/lib/{context-DLCwaMXN.js → context-Lrf2Y9bR.js} +2 -2
  98. package/lib/{context-DLCwaMXN.js.map → context-Lrf2Y9bR.js.map} +1 -1
  99. package/lib/{createServer-mYvGvmc0.js → createServer-DLN7APz_.js} +5381 -5517
  100. package/lib/createServer-DLN7APz_.js.map +1 -0
  101. package/lib/{hook-CqpVYDqN.js → hook-pPrHCB6G.js} +460 -465
  102. package/lib/hook-pPrHCB6G.js.map +1 -0
  103. package/lib/{index-C1OzjGUK.js → index-Ba_X7EnR.js} +16 -16
  104. package/lib/{index-C1OzjGUK.js.map → index-Ba_X7EnR.js.map} +1 -1
  105. package/lib/index-CuBIgTKC.js +316 -0
  106. package/lib/index-CuBIgTKC.js.map +1 -0
  107. package/lib/{index-Dl3Yl0yb.js → index-DcHeSvkE.js} +51 -38
  108. package/lib/index-DcHeSvkE.js.map +1 -0
  109. package/lib/index-DwT-v3zK.js.map +1 -1
  110. package/lib/{index-D48iOQvJ.js → index-tpbiZmWp.js} +586 -543
  111. package/lib/index-tpbiZmWp.js.map +1 -0
  112. package/lib/index.esm-D2ZUREQN.js +1216 -0
  113. package/lib/index.esm-D2ZUREQN.js.map +1 -0
  114. package/lib/jsx-runtime-C5mzlN2N.js +285 -0
  115. package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
  116. package/lib/{mutation-8LjrN7uz.js → mutation-Csa9eQDM.js} +70 -67
  117. package/lib/mutation-Csa9eQDM.js.map +1 -0
  118. package/lib/{prism-csharp.min-bQAo2pmx.js → prism-csharp.min-C43x1RY2.js} +2 -2
  119. package/lib/{prism-csharp.min-bQAo2pmx.js.map → prism-csharp.min-C43x1RY2.js.map} +1 -1
  120. package/lib/{prism-java.min-BpvsOuIa.js → prism-java.min-CQzr40NQ.js} +2 -2
  121. package/lib/{prism-java.min-BpvsOuIa.js.map → prism-java.min-CQzr40NQ.js.map} +1 -1
  122. package/lib/{prism-ruby.min-Dx9KO9ds.js → prism-ruby.min-L9OdQ6tU.js} +2 -2
  123. package/lib/{prism-ruby.min-Dx9KO9ds.js.map → prism-ruby.min-L9OdQ6tU.js.map} +1 -1
  124. package/lib/{prism-typescript.min-CD7H2IYQ.js → prism-typescript.min-qTySPvCh.js} +2 -2
  125. package/lib/{prism-typescript.min-CD7H2IYQ.js.map → prism-typescript.min-qTySPvCh.js.map} +1 -1
  126. package/lib/processors/removeExtensions.js.map +1 -0
  127. package/lib/processors/removeParameters.js.map +1 -0
  128. package/lib/processors/removePaths.js.map +1 -0
  129. package/lib/ui/Accordion.js +1 -1
  130. package/lib/ui/ActionButton.js +3 -3
  131. package/lib/ui/Alert.js +1 -1
  132. package/lib/ui/AlertDialog.js +1 -1
  133. package/lib/ui/Badge.js +1 -1
  134. package/lib/ui/Breadcrumb.js +1 -1
  135. package/lib/ui/Button.js +1 -1
  136. package/lib/ui/Callout.js +10 -9
  137. package/lib/ui/Callout.js.map +1 -1
  138. package/lib/ui/Card.js +1 -1
  139. package/lib/ui/Carousel.js +207 -207
  140. package/lib/ui/Carousel.js.map +1 -1
  141. package/lib/ui/Checkbox.js +1 -1
  142. package/lib/ui/Command.js +3 -3
  143. package/lib/ui/Dialog.js +1 -1
  144. package/lib/ui/Drawer.js +2 -2
  145. package/lib/ui/DropdownMenu.js +1 -1
  146. package/lib/ui/Form.js +2 -2
  147. package/lib/ui/HoverCard.js +1 -1
  148. package/lib/ui/Input.js +1 -1
  149. package/lib/ui/Label.js +1 -1
  150. package/lib/ui/Pagination.js +1 -1
  151. package/lib/ui/Popover.js +1 -1
  152. package/lib/ui/Progress.js +1 -1
  153. package/lib/ui/RadioGroup.js +1 -1
  154. package/lib/ui/ScrollArea.js +1 -1
  155. package/lib/ui/Select.js +1 -1
  156. package/lib/ui/Skeleton.js +1 -1
  157. package/lib/ui/Slider.js +1 -1
  158. package/lib/ui/Stepper.js +1 -1
  159. package/lib/ui/Switch.js +1 -1
  160. package/lib/ui/SyntaxHighlight.js +2 -2
  161. package/lib/ui/Tabs.js +1 -1
  162. package/lib/ui/Textarea.js +1 -1
  163. package/lib/ui/Toggle.js +1 -1
  164. package/lib/ui/ToggleGroup.js +1 -1
  165. package/lib/ui/Tooltip.js +1 -1
  166. package/lib/{useExposedProps-B9qXJedG.js → useExposedProps-Dq2yUQIG.js} +2 -2
  167. package/lib/{useExposedProps-B9qXJedG.js.map → useExposedProps-Dq2yUQIG.js.map} +1 -1
  168. package/lib/zudoku.auth-auth0.js +1 -1
  169. package/lib/zudoku.auth-clerk.js +4 -4
  170. package/lib/zudoku.auth-clerk.js.map +1 -1
  171. package/lib/zudoku.auth-openid.js +5 -5
  172. package/lib/zudoku.components.js +7 -7
  173. package/lib/zudoku.hooks.js +1 -1
  174. package/lib/zudoku.icons.js +1 -1
  175. package/lib/zudoku.plugin-api-catalog.js +6 -6
  176. package/lib/zudoku.plugin-api-keys.js +6 -6
  177. package/lib/zudoku.plugin-custom-pages.js +3 -3
  178. package/lib/zudoku.plugin-markdown.js +2 -2
  179. package/lib/zudoku.plugin-openapi.js +4 -4
  180. package/lib/zudoku.plugin-redirect.js +1 -1
  181. package/lib/zudoku.plugin-search-inkeep.js +1 -1
  182. package/lib/zudoku.plugin-search-pagefind.js +7 -7
  183. package/package.json +62 -63
  184. package/src/app/entry.client.tsx +2 -0
  185. package/src/app/main.css +8 -2
  186. package/src/lib/authentication/providers/clerk.tsx +2 -2
  187. package/src/lib/components/Footer.tsx +6 -3
  188. package/src/lib/components/Layout.tsx +8 -1
  189. package/src/lib/components/Search.tsx +14 -3
  190. package/src/lib/components/navigation/Sidebar.tsx +8 -1
  191. package/src/lib/components/navigation/SidebarWrapper.tsx +1 -1
  192. package/src/lib/ui/Callout.tsx +1 -0
  193. package/src/lib/util/MdxComponents.tsx +2 -0
  194. package/src/lib/util/detectOS.ts +9 -0
  195. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +0 -1
  196. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +0 -1
  197. package/dist/lib/plugins/openapi/post-processors/removeParameters.js.map +0 -1
  198. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js.map +0 -1
  199. package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +0 -1
  200. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +0 -1
  201. package/dist/lib/plugins/openapi/post-processors/traverse.js.map +0 -1
  202. package/lib/Drawer-kDAfOq_2.js.map +0 -1
  203. package/lib/Markdown-aF5FdsNi.js.map +0 -1
  204. package/lib/OperationList-BYemrDYk.js.map +0 -1
  205. package/lib/SlotletProvider-DXvc0aY6.js.map +0 -1
  206. package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
  207. package/lib/chunk-HA7DTUK3-C4gP41vD.js.map +0 -1
  208. package/lib/createServer-mYvGvmc0.js.map +0 -1
  209. package/lib/hook-CqpVYDqN.js.map +0 -1
  210. package/lib/index-D48iOQvJ.js.map +0 -1
  211. package/lib/index-Dl3Yl0yb.js.map +0 -1
  212. package/lib/index-gQD2h1wX.js +0 -447
  213. package/lib/index-gQD2h1wX.js.map +0 -1
  214. package/lib/index.esm--gIChbWs.js +0 -1207
  215. package/lib/index.esm--gIChbWs.js.map +0 -1
  216. package/lib/jsx-runtime-CYK1ROHF.js +0 -446
  217. package/lib/jsx-runtime-CYK1ROHF.js.map +0 -1
  218. package/lib/mutation-8LjrN7uz.js.map +0 -1
  219. package/lib/post-processors/removeExtensions.js.map +0 -1
  220. package/lib/post-processors/removeParameters.js.map +0 -1
  221. package/lib/post-processors/removePaths.js.map +0 -1
  222. /package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.d.ts +0 -0
  223. /package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.js +0 -0
  224. /package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.d.ts +0 -0
  225. /package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.js +0 -0
  226. /package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.d.ts +0 -0
  227. /package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.js +0 -0
  228. /package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.d.ts +0 -0
  229. /package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.js +0 -0
  230. /package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.d.ts +0 -0
  231. /package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.js +0 -0
  232. /package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.test.d.ts +0 -0
  233. /package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.test.js +0 -0
  234. /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.d.ts +0 -0
  235. /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.js +0 -0
  236. /package/lib/{post-processors → processors}/removeExtensions.js +0 -0
  237. /package/lib/{post-processors → processors}/removeParameters.js +0 -0
  238. /package/lib/{post-processors → processors}/removePaths.js +0 -0
  239. /package/lib/{post-processors → processors}/traverse.js +0 -0
  240. /package/lib/{post-processors → processors}/traverse.js.map +0 -0
  241. /package/src/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.ts +0 -0
  242. /package/src/lib/plugins/openapi/{post-processors → processors}/removeExtensions.ts +0 -0
  243. /package/src/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.ts +0 -0
  244. /package/src/lib/plugins/openapi/{post-processors → processors}/removeParameters.ts +0 -0
  245. /package/src/lib/plugins/openapi/{post-processors → processors}/removePaths.test.ts +0 -0
  246. /package/src/lib/plugins/openapi/{post-processors → processors}/removePaths.ts +0 -0
  247. /package/src/lib/plugins/openapi/{post-processors → processors}/traverse.ts +0 -0
@@ -1,16 +1,16 @@
1
- import { j as R } from "../jsx-runtime-CYK1ROHF.js";
1
+ import { j as R } from "../jsx-runtime-C5mzlN2N.js";
2
2
  import * as j from "react";
3
- import { useRef as Ht, useState as qt, useCallback as ln, useEffect as It } from "react";
4
- import { ArrowLeft as fn, ArrowRight as dn } from "lucide-react";
3
+ import { useRef as qt, useState as $t, useCallback as fn, useEffect as It } from "react";
4
+ import { ArrowLeft as dn, ArrowRight as pn } from "lucide-react";
5
5
  import { c as gt } from "../cn-qaFjX9_3.js";
6
- import { Button as Jt } from "./Button.js";
7
- function pn(t) {
6
+ import { Button as Xt } from "./Button.js";
7
+ function mn(t) {
8
8
  return Object.prototype.toString.call(t) === "[object Object]";
9
9
  }
10
- function $t(t) {
11
- return pn(t) || Array.isArray(t);
10
+ function Kt(t) {
11
+ return mn(t) || Array.isArray(t);
12
12
  }
13
- function mn() {
13
+ function gn() {
14
14
  return !!(typeof window < "u" && window.document && window.document.createElement);
15
15
  }
16
16
  function At(t, n) {
@@ -19,15 +19,15 @@ function At(t, n) {
19
19
  const i = JSON.stringify(Object.keys(t.breakpoints || {})), s = JSON.stringify(Object.keys(n.breakpoints || {}));
20
20
  return i !== s ? !1 : o.every((e) => {
21
21
  const a = t[e], u = n[e];
22
- return typeof a == "function" ? `${a}` == `${u}` : !$t(a) || !$t(u) ? a === u : At(a, u);
22
+ return typeof a == "function" ? `${a}` == `${u}` : !Kt(a) || !Kt(u) ? a === u : At(a, u);
23
23
  });
24
24
  }
25
- function Kt(t) {
25
+ function Ut(t) {
26
26
  return t.concat().sort((n, o) => n.name > o.name ? 1 : -1).map((n) => n.options);
27
27
  }
28
- function gn(t, n) {
28
+ function hn(t, n) {
29
29
  if (t.length !== n.length) return !1;
30
- const o = Kt(t), r = Kt(n);
30
+ const o = Ut(t), r = Ut(n);
31
31
  return o.every((i, s) => {
32
32
  const e = r[s];
33
33
  return At(i, e);
@@ -42,7 +42,7 @@ function Tt(t) {
42
42
  function xt(t) {
43
43
  return typeof t == "boolean";
44
44
  }
45
- function Ut(t) {
45
+ function Qt(t) {
46
46
  return Object.prototype.toString.call(t) === "[object Object]";
47
47
  }
48
48
  function D(t) {
@@ -54,7 +54,7 @@ function Pt(t) {
54
54
  function ft(t, n) {
55
55
  return D(t - n);
56
56
  }
57
- function hn(t, n) {
57
+ function Sn(t, n) {
58
58
  if (t === 0 || n === 0 || D(t) <= D(n)) return 0;
59
59
  const o = ft(D(t), D(n));
60
60
  return D(o / t);
@@ -74,22 +74,22 @@ function ht(t) {
74
74
  function Ot(t, n) {
75
75
  return n === ht(t);
76
76
  }
77
- function Qt(t, n = 0) {
77
+ function Jt(t, n = 0) {
78
78
  return Array.from(Array(t), (o, r) => n + r);
79
79
  }
80
80
  function pt(t) {
81
81
  return Object.keys(t);
82
82
  }
83
- function Xt(t, n) {
83
+ function Yt(t, n) {
84
84
  return [t, n].reduce((o, r) => (pt(r).forEach((i) => {
85
- const s = o[i], e = r[i], a = Ut(s) && Ut(e);
86
- o[i] = a ? Xt(s, e) : e;
85
+ const s = o[i], e = r[i], a = Qt(s) && Qt(e);
86
+ o[i] = a ? Yt(s, e) : e;
87
87
  }), o), {});
88
88
  }
89
89
  function Nt(t, n) {
90
90
  return typeof n.MouseEvent < "u" && t instanceof n.MouseEvent;
91
91
  }
92
- function Sn(t, n) {
92
+ function xn(t, n) {
93
93
  const o = {
94
94
  start: r,
95
95
  center: i,
@@ -134,7 +134,7 @@ function mt() {
134
134
  };
135
135
  return r;
136
136
  }
137
- function xn(t, n, o, r) {
137
+ function bn(t, n, o, r) {
138
138
  const i = mt(), s = 1e3 / 60;
139
139
  let e = null, a = 0, u = 0;
140
140
  function c() {
@@ -142,7 +142,7 @@ function xn(t, n, o, r) {
142
142
  t.hidden && l();
143
143
  });
144
144
  }
145
- function y() {
145
+ function S() {
146
146
  x(), i.clear();
147
147
  }
148
148
  function d(h) {
@@ -165,15 +165,15 @@ function xn(t, n, o, r) {
165
165
  }
166
166
  return {
167
167
  init: c,
168
- destroy: y,
168
+ destroy: S,
169
169
  start: p,
170
170
  stop: x,
171
171
  update: o,
172
172
  render: r
173
173
  };
174
174
  }
175
- function bn(t, n) {
176
- const o = n === "rtl", r = t === "y", i = r ? "y" : "x", s = r ? "x" : "y", e = !r && o ? -1 : 1, a = y(), u = d();
175
+ function En(t, n) {
176
+ const o = n === "rtl", r = t === "y", i = r ? "y" : "x", s = r ? "x" : "y", e = !r && o ? -1 : 1, a = S(), u = d();
177
177
  function c(l) {
178
178
  const {
179
179
  height: m,
@@ -181,7 +181,7 @@ function bn(t, n) {
181
181
  } = l;
182
182
  return r ? m : h;
183
183
  }
184
- function y() {
184
+ function S() {
185
185
  return r ? "top" : o ? "right" : "left";
186
186
  }
187
187
  function d() {
@@ -227,7 +227,7 @@ function et(t = 0, n = 0) {
227
227
  removeOffset: a
228
228
  };
229
229
  }
230
- function Yt(t, n, o) {
230
+ function _t(t, n, o) {
231
231
  const {
232
232
  constrain: r
233
233
  } = et(0, t), i = t + 1;
@@ -242,20 +242,20 @@ function Yt(t, n, o) {
242
242
  return s = e(p), d;
243
243
  }
244
244
  function c(p) {
245
- return y().set(a() + p);
245
+ return S().set(a() + p);
246
246
  }
247
- function y() {
248
- return Yt(t, a(), o);
247
+ function S() {
248
+ return _t(t, a(), o);
249
249
  }
250
250
  const d = {
251
251
  get: a,
252
252
  set: u,
253
253
  add: c,
254
- clone: y
254
+ clone: S
255
255
  };
256
256
  return d;
257
257
  }
258
- function En(t, n, o, r, i, s, e, a, u, c, y, d, p, x, l, m, h, f, g) {
258
+ function vn(t, n, o, r, i, s, e, a, u, c, S, d, p, x, l, m, h, f, g) {
259
259
  const {
260
260
  cross: b,
261
261
  direction: L
@@ -269,10 +269,10 @@ function En(t, n, o, r, i, s, e, a, u, c, y, d, p, x, l, m, h, f, g) {
269
269
  touch: 600
270
270
  }, F = l ? 43 : 25;
271
271
  let G = !1, H = 0, q = 0, W = !1, _ = !1, U = !1, Q = !1;
272
- function it(S) {
272
+ function it(y) {
273
273
  if (!g) return;
274
274
  function T(k) {
275
- (xt(g) || g(S, k)) && ut(k);
275
+ (xt(g) || g(y, k)) && ut(k);
276
276
  }
277
277
  const O = n;
278
278
  E.add(O, "dragstart", (k) => k.preventDefault(), C).add(O, "touchmove", () => {
@@ -283,38 +283,38 @@ function En(t, n, o, r, i, s, e, a, u, c, y, d, p, x, l, m, h, f, g) {
283
283
  E.clear(), v.clear();
284
284
  }
285
285
  function ot() {
286
- const S = Q ? o : n;
287
- v.add(S, "touchmove", z, C).add(S, "touchend", M).add(S, "mousemove", z, C).add(S, "mouseup", M);
286
+ const y = Q ? o : n;
287
+ v.add(y, "touchmove", z, C).add(y, "touchend", M).add(y, "mousemove", z, C).add(y, "mouseup", M);
288
288
  }
289
- function rt(S) {
290
- const T = S.nodeName || "";
289
+ function rt(y) {
290
+ const T = y.nodeName || "";
291
291
  return N.includes(T);
292
292
  }
293
293
  function J() {
294
294
  return (l ? I : P)[Q ? "mouse" : "touch"];
295
295
  }
296
- function ct(S, T) {
297
- const O = d.add(Pt(S) * -1), k = y.byDistance(S, !l).distance;
298
- return l || D(S) < w ? k : h && T ? k * 0.5 : y.byIndex(O.get(), 0).distance;
296
+ function ct(y, T) {
297
+ const O = d.add(Pt(y) * -1), k = S.byDistance(y, !l).distance;
298
+ return l || D(y) < w ? k : h && T ? k * 0.5 : S.byIndex(O.get(), 0).distance;
299
299
  }
300
- function ut(S) {
301
- const T = Nt(S, r);
302
- Q = T, U = l && T && !S.buttons && G, G = ft(i.get(), e.get()) >= 2, !(T && S.button !== 0) && (rt(S.target) || (W = !0, s.pointerDown(S), c.useFriction(0).useDuration(0), i.set(e), ot(), H = s.readPoint(S), q = s.readPoint(S, b), p.emit("pointerDown")));
300
+ function ut(y) {
301
+ const T = Nt(y, r);
302
+ Q = T, U = l && T && !y.buttons && G, G = ft(i.get(), e.get()) >= 2, !(T && y.button !== 0) && (rt(y.target) || (W = !0, s.pointerDown(y), c.useFriction(0).useDuration(0), i.set(e), ot(), H = s.readPoint(y), q = s.readPoint(y, b), p.emit("pointerDown")));
303
303
  }
304
- function z(S) {
305
- if (!Nt(S, r) && S.touches.length >= 2) return M(S);
306
- const O = s.readPoint(S), k = s.readPoint(S, b), K = ft(O, H), Y = ft(k, q);
307
- if (!_ && !Q && (!S.cancelable || (_ = K > Y, !_)))
308
- return M(S);
309
- const tt = s.pointerMove(S);
310
- K > m && (U = !0), c.useFriction(0.3).useDuration(0.75), a.start(), i.add(L(tt)), S.preventDefault();
304
+ function z(y) {
305
+ if (!Nt(y, r) && y.touches.length >= 2) return M(y);
306
+ const O = s.readPoint(y), k = s.readPoint(y, b), K = ft(O, H), Y = ft(k, q);
307
+ if (!_ && !Q && (!y.cancelable || (_ = K > Y, !_)))
308
+ return M(y);
309
+ const tt = s.pointerMove(y);
310
+ K > m && (U = !0), c.useFriction(0.3).useDuration(0.75), a.start(), i.add(L(tt)), y.preventDefault();
311
311
  }
312
- function M(S) {
313
- const O = y.byDistance(0, !1).index !== d.get(), k = s.pointerUp(S) * J(), K = ct(L(k), O), Y = hn(k, K), tt = F - 10 * Y, Z = f + Y / 50;
312
+ function M(y) {
313
+ const O = S.byDistance(0, !1).index !== d.get(), k = s.pointerUp(y) * J(), K = ct(L(k), O), Y = Sn(k, K), tt = F - 10 * Y, Z = f + Y / 50;
314
314
  _ = !1, W = !1, v.clear(), c.useDuration(tt).useFriction(Z), u.distance(K, !l), Q = !1, p.emit("pointerUp");
315
315
  }
316
- function X(S) {
317
- U && (S.stopPropagation(), S.preventDefault(), U = !1);
316
+ function X(y) {
317
+ U && (y.stopPropagation(), y.preventDefault(), U = !1);
318
318
  }
319
319
  function B() {
320
320
  return W;
@@ -325,7 +325,7 @@ function En(t, n, o, r, i, s, e, a, u, c, y, d, p, x, l, m, h, f, g) {
325
325
  pointerDown: B
326
326
  };
327
327
  }
328
- function vn(t, n) {
328
+ function Ln(t, n) {
329
329
  let r, i;
330
330
  function s(d) {
331
331
  return d.timeStamp;
@@ -353,7 +353,7 @@ function vn(t, n) {
353
353
  readPoint: e
354
354
  };
355
355
  }
356
- function Ln() {
356
+ function Cn() {
357
357
  function t(o) {
358
358
  const {
359
359
  offsetTop: r,
@@ -374,7 +374,7 @@ function Ln() {
374
374
  measure: t
375
375
  };
376
376
  }
377
- function Cn(t) {
377
+ function wn(t) {
378
378
  function n(r) {
379
379
  return t * (r / 100);
380
380
  }
@@ -382,19 +382,19 @@ function Cn(t) {
382
382
  measure: n
383
383
  };
384
384
  }
385
- function wn(t, n, o, r, i, s, e) {
385
+ function In(t, n, o, r, i, s, e) {
386
386
  const a = [t].concat(r);
387
- let u, c, y = [], d = !1;
387
+ let u, c, S = [], d = !1;
388
388
  function p(h) {
389
389
  return i.measureSize(e.measure(h));
390
390
  }
391
391
  function x(h) {
392
392
  if (!s) return;
393
- c = p(t), y = r.map(p);
393
+ c = p(t), S = r.map(p);
394
394
  function f(g) {
395
395
  for (const b of g) {
396
396
  if (d) return;
397
- const L = b.target === t, N = r.indexOf(b.target), C = L ? c : y[N], E = p(L ? t : r[N]);
397
+ const L = b.target === t, N = r.indexOf(b.target), C = L ? c : S[N], E = p(L ? t : r[N]);
398
398
  if (D(E - C) >= 0.5) {
399
399
  h.reInit(), n.emit("resize");
400
400
  break;
@@ -415,12 +415,12 @@ function wn(t, n, o, r, i, s, e) {
415
415
  destroy: l
416
416
  };
417
417
  }
418
- function In(t, n, o, r, i, s) {
419
- let e = 0, a = 0, u = i, c = s, y = t.get(), d = 0;
418
+ function Tn(t, n, o, r, i, s) {
419
+ let e = 0, a = 0, u = i, c = s, S = t.get(), d = 0;
420
420
  function p() {
421
421
  const C = r.get() - t.get(), E = !u;
422
422
  let v = 0;
423
- return E ? (e = 0, o.set(r), t.set(r), v = C) : (o.set(t), e += C / u, e *= c, y += e, t.add(e), v = y - d), a = Pt(v), d = y, N;
423
+ return E ? (e = 0, o.set(r), t.set(r), v = C) : (o.set(t), e += C / u, e *= c, S += e, t.add(e), v = S - d), a = Pt(v), d = S, N;
424
424
  }
425
425
  function x() {
426
426
  const C = r.get() - n.get();
@@ -460,13 +460,13 @@ function In(t, n, o, r, i, s) {
460
460
  };
461
461
  return N;
462
462
  }
463
- function Tn(t, n, o, r, i) {
463
+ function Nn(t, n, o, r, i) {
464
464
  const s = i.measure(10), e = i.measure(50), a = et(0.1, 0.99);
465
465
  let u = !1;
466
466
  function c() {
467
467
  return !(u || !t.reachedAny(o.get()) || !t.reachedAny(n.get()));
468
468
  }
469
- function y(x) {
469
+ function S(x) {
470
470
  if (!c()) return;
471
471
  const l = t.reachedMin(n.get()) ? "min" : "max", m = D(t[l] - n.get()), h = o.get() - n.get(), f = a.constrain(m / e);
472
472
  o.subtract(h * f), !x && D(h) < s && (o.set(t.constrain(o.get())), r.useDuration(25).useBaseFriction());
@@ -476,16 +476,16 @@ function Tn(t, n, o, r, i) {
476
476
  }
477
477
  return {
478
478
  shouldConstrain: c,
479
- constrain: y,
479
+ constrain: S,
480
480
  toggleActive: d
481
481
  };
482
482
  }
483
- function Nn(t, n, o, r, i) {
484
- const s = et(-n + t, 0), e = d(), a = y(), u = p();
483
+ function An(t, n, o, r, i) {
484
+ const s = et(-n + t, 0), e = d(), a = S(), u = p();
485
485
  function c(l, m) {
486
486
  return ft(l, m) <= 1;
487
487
  }
488
- function y() {
488
+ function S() {
489
489
  const l = e[0], m = V(e), h = e.lastIndexOf(l), f = e.indexOf(m) + 1;
490
490
  return et(h, f);
491
491
  }
@@ -512,13 +512,13 @@ function Nn(t, n, o, r, i) {
512
512
  scrollContainLimit: a
513
513
  };
514
514
  }
515
- function An(t, n, o) {
515
+ function Dn(t, n, o) {
516
516
  const r = n[0], i = o ? r - t : V(n);
517
517
  return {
518
518
  limit: et(i, r)
519
519
  };
520
520
  }
521
- function Dn(t, n, o, r) {
521
+ function Pn(t, n, o, r) {
522
522
  const s = n.min + 0.1, e = n.max + 0.1, {
523
523
  reachedMin: a,
524
524
  reachedMax: u
@@ -526,16 +526,16 @@ function Dn(t, n, o, r) {
526
526
  function c(p) {
527
527
  return p === 1 ? u(o.get()) : p === -1 ? a(o.get()) : !1;
528
528
  }
529
- function y(p) {
529
+ function S(p) {
530
530
  if (!c(p)) return;
531
531
  const x = t * (p * -1);
532
532
  r.forEach((l) => l.add(x));
533
533
  }
534
534
  return {
535
- loop: y
535
+ loop: S
536
536
  };
537
537
  }
538
- function Pn(t) {
538
+ function On(t) {
539
539
  const {
540
540
  max: n,
541
541
  length: o
@@ -548,13 +548,13 @@ function Pn(t) {
548
548
  get: r
549
549
  };
550
550
  }
551
- function On(t, n, o, r, i) {
551
+ function Mn(t, n, o, r, i) {
552
552
  const {
553
553
  startEdge: s,
554
554
  endEdge: e
555
555
  } = t, {
556
556
  groupSlides: a
557
- } = i, u = d().map(n.measure), c = p(), y = x();
557
+ } = i, u = d().map(n.measure), c = p(), S = x();
558
558
  function d() {
559
559
  return a(r).map((m) => V(m)[e] - m[0][s]).map(D);
560
560
  }
@@ -566,27 +566,27 @@ function On(t, n, o, r, i) {
566
566
  }
567
567
  return {
568
568
  snaps: c,
569
- snapsAligned: y
569
+ snapsAligned: S
570
570
  };
571
571
  }
572
- function Mn(t, n, o, r, i, s) {
572
+ function kn(t, n, o, r, i, s) {
573
573
  const {
574
574
  groupSlides: e
575
575
  } = i, {
576
576
  min: a,
577
577
  max: u
578
- } = r, c = y();
579
- function y() {
578
+ } = r, c = S();
579
+ function S() {
580
580
  const p = e(s), x = !t || n === "keepSnaps";
581
581
  return o.length === 1 ? [s] : x ? p : p.slice(a, u).map((l, m, h) => {
582
582
  const f = !m, g = Ot(h, m);
583
583
  if (f) {
584
584
  const b = V(h[0]) + 1;
585
- return Qt(b);
585
+ return Jt(b);
586
586
  }
587
587
  if (g) {
588
588
  const b = ht(s) - V(h)[0] + 1;
589
- return Qt(b, V(h)[0]);
589
+ return Jt(b, V(h)[0]);
590
590
  }
591
591
  return l;
592
592
  });
@@ -595,7 +595,7 @@ function Mn(t, n, o, r, i, s) {
595
595
  slideRegistry: c
596
596
  };
597
597
  }
598
- function kn(t, n, o, r, i) {
598
+ function jn(t, n, o, r, i) {
599
599
  const {
600
600
  reachedAny: s,
601
601
  removeOffset: e,
@@ -606,7 +606,7 @@ function kn(t, n, o, r, i) {
606
606
  }
607
607
  function c(l) {
608
608
  const m = t ? e(l) : a(l), h = n.map((g, b) => ({
609
- diff: y(g - m, 0),
609
+ diff: S(g - m, 0),
610
610
  index: b
611
611
  })).sort((g, b) => D(g.diff) - D(b.diff)), {
612
612
  index: f
@@ -616,7 +616,7 @@ function kn(t, n, o, r, i) {
616
616
  distance: m
617
617
  };
618
618
  }
619
- function y(l, m) {
619
+ function S(l, m) {
620
620
  const h = [l, l + o, l - o];
621
621
  if (!t) return l;
622
622
  if (!m) return u(h);
@@ -624,7 +624,7 @@ function kn(t, n, o, r, i) {
624
624
  return f.length ? u(f) : V(h) - o;
625
625
  }
626
626
  function d(l, m) {
627
- const h = n[l] - i.get(), f = y(h, m);
627
+ const h = n[l] - i.get(), f = S(h, m);
628
628
  return {
629
629
  index: l,
630
630
  distance: f
@@ -639,7 +639,7 @@ function kn(t, n, o, r, i) {
639
639
  index: f,
640
640
  distance: l
641
641
  };
642
- const L = n[f] - g, N = l + y(L, 0);
642
+ const L = n[f] - g, N = l + S(L, 0);
643
643
  return {
644
644
  index: f,
645
645
  distance: N
@@ -648,10 +648,10 @@ function kn(t, n, o, r, i) {
648
648
  return {
649
649
  byDistance: p,
650
650
  byIndex: d,
651
- shortcut: y
651
+ shortcut: S
652
652
  };
653
653
  }
654
- function jn(t, n, o, r, i, s, e) {
654
+ function Fn(t, n, o, r, i, s, e) {
655
655
  function a(d) {
656
656
  const p = d.distance, x = d.index !== n.get();
657
657
  s.add(p), p && (r.duration() ? t.start() : (t.update(), t.render(1), t.update())), x && (o.set(n.get()), n.set(d.index), e.emit("select"));
@@ -669,13 +669,13 @@ function jn(t, n, o, r, i, s, e) {
669
669
  index: c
670
670
  };
671
671
  }
672
- function Fn(t, n, o, r, i, s, e, a) {
672
+ function zn(t, n, o, r, i, s, e, a) {
673
673
  const u = {
674
674
  passive: !0,
675
675
  capture: !0
676
676
  };
677
677
  let c = 0;
678
- function y(x) {
678
+ function S(x) {
679
679
  if (!a) return;
680
680
  function l(m) {
681
681
  if ((/* @__PURE__ */ new Date()).getTime() - c > 10) return;
@@ -693,7 +693,7 @@ function Fn(t, n, o, r, i, s, e, a) {
693
693
  x.code === "Tab" && (c = (/* @__PURE__ */ new Date()).getTime());
694
694
  }
695
695
  return {
696
- init: y
696
+ init: S
697
697
  };
698
698
  }
699
699
  function lt(t) {
@@ -720,7 +720,7 @@ function lt(t) {
720
720
  subtract: s
721
721
  };
722
722
  }
723
- function _t(t, n) {
723
+ function Zt(t, n) {
724
724
  const o = t.scroll === "x" ? e : a, r = n.style;
725
725
  let i = null, s = !1;
726
726
  function e(p) {
@@ -737,17 +737,17 @@ function _t(t, n) {
737
737
  function c(p) {
738
738
  s = !p;
739
739
  }
740
- function y() {
740
+ function S() {
741
741
  s || (r.transform = "", n.getAttribute("style") || n.removeAttribute("style"));
742
742
  }
743
743
  return {
744
- clear: y,
744
+ clear: S,
745
745
  to: u,
746
746
  toggleActive: c
747
747
  };
748
748
  }
749
- function zn(t, n, o, r, i, s, e, a, u) {
750
- const y = dt(i), d = dt(i).reverse(), p = f().concat(g());
749
+ function Bn(t, n, o, r, i, s, e, a, u) {
750
+ const S = dt(i), d = dt(i).reverse(), p = f().concat(g());
751
751
  function x(E, v) {
752
752
  return E.reduce((w, P) => w - i[P], v);
753
753
  }
@@ -768,7 +768,7 @@ function zn(t, n, o, r, i, s, e, a, u) {
768
768
  index: I,
769
769
  loopPoint: q,
770
770
  slideLocation: lt(-1),
771
- translate: _t(t, u[I]),
771
+ translate: Zt(t, u[I]),
772
772
  target: () => a.get() > q ? F : G
773
773
  };
774
774
  });
@@ -778,14 +778,14 @@ function zn(t, n, o, r, i, s, e, a, u) {
778
778
  return h(v, o, !1);
779
779
  }
780
780
  function g() {
781
- const E = n - e[0] - 1, v = l(y, E);
781
+ const E = n - e[0] - 1, v = l(S, E);
782
782
  return h(v, -o, !0);
783
783
  }
784
784
  function b() {
785
785
  return p.every(({
786
786
  index: E
787
787
  }) => {
788
- const v = y.filter((w) => w !== E);
788
+ const v = S.filter((w) => w !== E);
789
789
  return x(v, n) <= 0.1;
790
790
  });
791
791
  }
@@ -809,19 +809,19 @@ function zn(t, n, o, r, i, s, e, a, u) {
809
809
  loopPoints: p
810
810
  };
811
811
  }
812
- function Bn(t, n, o) {
812
+ function Rn(t, n, o) {
813
813
  let r, i = !1;
814
814
  function s(u) {
815
815
  if (!o) return;
816
- function c(y) {
817
- for (const d of y)
816
+ function c(S) {
817
+ for (const d of S)
818
818
  if (d.type === "childList") {
819
819
  u.reInit(), n.emit("slidesChanged");
820
820
  break;
821
821
  }
822
822
  }
823
- r = new MutationObserver((y) => {
824
- i || (xt(o) || o(u, y)) && c(y);
823
+ r = new MutationObserver((S) => {
824
+ i || (xt(o) || o(u, S)) && c(S);
825
825
  }), r.observe(t, {
826
826
  childList: !0
827
827
  });
@@ -834,7 +834,7 @@ function Bn(t, n, o) {
834
834
  destroy: e
835
835
  };
836
836
  }
837
- function Rn(t, n, o, r) {
837
+ function Vn(t, n, o, r) {
838
838
  const i = {};
839
839
  let s = null, e = null, a, u = !1;
840
840
  function c() {
@@ -848,7 +848,7 @@ function Rn(t, n, o, r) {
848
848
  threshold: r
849
849
  }), n.forEach((l) => a.observe(l));
850
850
  }
851
- function y() {
851
+ function S() {
852
852
  a && a.disconnect(), u = !0;
853
853
  }
854
854
  function d(l) {
@@ -867,16 +867,16 @@ function Rn(t, n, o, r) {
867
867
  }
868
868
  return {
869
869
  init: c,
870
- destroy: y,
870
+ destroy: S,
871
871
  get: p
872
872
  };
873
873
  }
874
- function Vn(t, n, o, r, i, s) {
874
+ function Gn(t, n, o, r, i, s) {
875
875
  const {
876
876
  measureSize: e,
877
877
  startEdge: a,
878
878
  endEdge: u
879
- } = t, c = o[0] && i, y = l(), d = m(), p = o.map(e), x = h();
879
+ } = t, c = o[0] && i, S = l(), d = m(), p = o.map(e), x = h();
880
880
  function l() {
881
881
  if (!c) return 0;
882
882
  const g = o[0];
@@ -890,20 +890,20 @@ function Vn(t, n, o, r, i, s) {
890
890
  function h() {
891
891
  return o.map((g, b, L) => {
892
892
  const N = !b, C = Ot(L, b);
893
- return N ? p[b] + y : C ? p[b] + d : L[b + 1][a] - g[a];
893
+ return N ? p[b] + S : C ? p[b] + d : L[b + 1][a] - g[a];
894
894
  }).map(D);
895
895
  }
896
896
  return {
897
897
  slideSizes: p,
898
898
  slideSizesWithGaps: x,
899
- startGap: y,
899
+ startGap: S,
900
900
  endGap: d
901
901
  };
902
902
  }
903
- function Gn(t, n, o, r, i, s, e, a, u) {
903
+ function Hn(t, n, o, r, i, s, e, a, u) {
904
904
  const {
905
905
  startEdge: c,
906
- endEdge: y,
906
+ endEdge: S,
907
907
  direction: d
908
908
  } = t, p = Dt(o);
909
909
  function x(f, g) {
@@ -911,7 +911,7 @@ function Gn(t, n, o, r, i, s, e, a, u) {
911
911
  }
912
912
  function l(f) {
913
913
  return f.length ? dt(f).reduce((g, b, L) => {
914
- const N = V(g) || 0, C = N === 0, E = b === ht(f), v = i[c] - s[N][c], w = i[c] - s[b][y], P = !r && C ? d(e) : 0, I = !r && E ? d(a) : 0, F = D(w - I - (v + P));
914
+ const N = V(g) || 0, C = N === 0, E = b === ht(f), v = i[c] - s[N][c], w = i[c] - s[b][S], P = !r && C ? d(e) : 0, I = !r && E ? d(a) : 0, F = D(w - I - (v + P));
915
915
  return L && F > n + u && g.push(b), E && g.push(f.length), g;
916
916
  }, []).map((g, b, L) => {
917
917
  const N = Math.max(L[b - 1] || 0);
@@ -925,12 +925,12 @@ function Gn(t, n, o, r, i, s, e, a, u) {
925
925
  groupSlides: m
926
926
  };
927
927
  }
928
- function Hn(t, n, o, r, i, s, e) {
928
+ function qn(t, n, o, r, i, s, e) {
929
929
  const {
930
930
  align: a,
931
931
  axis: u,
932
932
  direction: c,
933
- startIndex: y,
933
+ startIndex: S,
934
934
  loop: d,
935
935
  duration: p,
936
936
  dragFree: x,
@@ -943,51 +943,51 @@ function Hn(t, n, o, r, i, s, e) {
943
943
  watchSlides: L,
944
944
  watchDrag: N,
945
945
  watchFocus: C
946
- } = s, E = 2, v = Ln(), w = v.measure(n), P = o.map(v.measure), I = bn(u, c), F = I.measureSize(w), G = Cn(F), H = Sn(a, F), q = !d && !!g, W = d || !!g, {
946
+ } = s, E = 2, v = Cn(), w = v.measure(n), P = o.map(v.measure), I = En(u, c), F = I.measureSize(w), G = wn(F), H = xn(a, F), q = !d && !!g, W = d || !!g, {
947
947
  slideSizes: _,
948
948
  slideSizesWithGaps: U,
949
949
  startGap: Q,
950
950
  endGap: it
951
- } = Vn(I, w, P, o, W, i), $ = Gn(I, F, h, d, w, P, Q, it, E), {
951
+ } = Gn(I, w, P, o, W, i), $ = Hn(I, F, h, d, w, P, Q, it, E), {
952
952
  snaps: ot,
953
953
  snapsAligned: rt
954
- } = On(I, H, w, P, $), J = -V(ot) + V(U), {
954
+ } = Mn(I, H, w, P, $), J = -V(ot) + V(U), {
955
955
  snapsContained: ct,
956
956
  scrollContainLimit: ut
957
- } = Nn(F, J, rt, g, E), z = q ? ct : rt, {
957
+ } = An(F, J, rt, g, E), z = q ? ct : rt, {
958
958
  limit: M
959
- } = An(J, z, d), X = Yt(ht(z), y, d), B = X.clone(), A = dt(o), S = ({
959
+ } = Dn(J, z, d), X = _t(ht(z), S, d), B = X.clone(), A = dt(o), y = ({
960
960
  dragHandler: st,
961
961
  scrollBody: Ct,
962
962
  scrollBounds: wt,
963
963
  options: {
964
- loop: yt
964
+ loop: St
965
965
  }
966
966
  }) => {
967
- yt || wt.constrain(st.pointerDown()), Ct.seek();
967
+ St || wt.constrain(st.pointerDown()), Ct.seek();
968
968
  }, T = ({
969
969
  scrollBody: st,
970
970
  translate: Ct,
971
971
  location: wt,
972
- offsetLocation: yt,
973
- previousLocation: nn,
974
- scrollLooper: en,
975
- slideLooper: on,
976
- dragHandler: rn,
977
- animation: sn,
972
+ offsetLocation: St,
973
+ previousLocation: en,
974
+ scrollLooper: on,
975
+ slideLooper: rn,
976
+ dragHandler: sn,
977
+ animation: cn,
978
978
  eventHandler: zt,
979
- scrollBounds: cn,
979
+ scrollBounds: un,
980
980
  options: {
981
981
  loop: Bt
982
982
  }
983
983
  }, Rt) => {
984
- const Vt = st.settled(), un = !cn.shouldConstrain(), Gt = Bt ? Vt : Vt && un;
985
- Gt && !rn.pointerDown() && (sn.stop(), zt.emit("settle")), Gt || zt.emit("scroll");
986
- const an = wt.get() * Rt + nn.get() * (1 - Rt);
987
- yt.set(an), Bt && (en.loop(st.direction()), on.loop()), Ct.to(yt.get());
988
- }, O = xn(r, i, () => S(Lt), (st) => T(Lt, st)), k = 0.68, K = z[X.get()], Y = lt(K), tt = lt(K), Z = lt(K), nt = lt(K), at = In(Y, Z, tt, nt, p, k), Et = kn(d, z, J, M, nt), vt = jn(O, X, B, at, Et, nt, e), kt = Pn(M), jt = mt(), Wt = Rn(n, o, e, m), {
984
+ const Vt = st.settled(), an = !un.shouldConstrain(), Gt = Bt ? Vt : Vt && an, Ht = Gt && !sn.pointerDown();
985
+ Ht && cn.stop();
986
+ const ln = wt.get() * Rt + en.get() * (1 - Rt);
987
+ St.set(ln), Bt && (on.loop(st.direction()), rn.loop()), Ct.to(St.get()), Ht && zt.emit("settle"), Gt || zt.emit("scroll");
988
+ }, O = bn(r, i, () => y(Lt), (st) => T(Lt, st)), k = 0.68, K = z[X.get()], Y = lt(K), tt = lt(K), Z = lt(K), nt = lt(K), at = Tn(Y, Z, tt, nt, p, k), Et = jn(d, z, J, M, nt), vt = Fn(O, X, B, at, Et, nt, e), kt = On(M), jt = mt(), tn = Vn(n, o, e, m), {
989
989
  slideRegistry: Ft
990
- } = Mn(q, g, z, ut, $, A), tn = Fn(t, o, Ft, vt, at, jt, e, C), Lt = {
990
+ } = kn(q, g, z, ut, $, A), nn = zn(t, o, Ft, vt, at, jt, e, C), Lt = {
991
991
  ownerDocument: r,
992
992
  ownerWindow: i,
993
993
  eventHandler: e,
@@ -995,7 +995,7 @@ function Hn(t, n, o, r, i, s, e) {
995
995
  slideRects: P,
996
996
  animation: O,
997
997
  axis: I,
998
- dragHandler: En(I, t, r, i, nt, vn(I, i), Y, O, vt, at, Et, X, e, G, x, l, f, k, N),
998
+ dragHandler: vn(I, t, r, i, nt, Ln(I, i), Y, O, vt, at, Et, X, e, G, x, l, f, k, N),
999
999
  eventStore: jt,
1000
1000
  percentOfView: G,
1001
1001
  index: X,
@@ -1005,28 +1005,28 @@ function Hn(t, n, o, r, i, s, e) {
1005
1005
  offsetLocation: Z,
1006
1006
  previousLocation: tt,
1007
1007
  options: s,
1008
- resizeHandler: wn(n, e, i, o, I, b, v),
1008
+ resizeHandler: In(n, e, i, o, I, b, v),
1009
1009
  scrollBody: at,
1010
- scrollBounds: Tn(M, Z, nt, at, G),
1011
- scrollLooper: Dn(J, M, Z, [Y, Z, tt, nt]),
1010
+ scrollBounds: Nn(M, Z, nt, at, G),
1011
+ scrollLooper: Pn(J, M, Z, [Y, Z, tt, nt]),
1012
1012
  scrollProgress: kt,
1013
1013
  scrollSnapList: z.map(kt.get),
1014
1014
  scrollSnaps: z,
1015
1015
  scrollTarget: Et,
1016
1016
  scrollTo: vt,
1017
- slideLooper: zn(I, F, J, _, U, ot, z, Z, o),
1018
- slideFocus: tn,
1019
- slidesHandler: Bn(n, e, L),
1020
- slidesInView: Wt,
1017
+ slideLooper: Bn(I, F, J, _, U, ot, z, Z, o),
1018
+ slideFocus: nn,
1019
+ slidesHandler: Rn(n, e, L),
1020
+ slidesInView: tn,
1021
1021
  slideIndexes: A,
1022
1022
  slideRegistry: Ft,
1023
1023
  slidesToScroll: $,
1024
1024
  target: nt,
1025
- translate: _t(I, n)
1025
+ translate: Zt(I, n)
1026
1026
  };
1027
1027
  return Lt;
1028
1028
  }
1029
- function qn() {
1029
+ function $n() {
1030
1030
  let t = {}, n;
1031
1031
  function o(c) {
1032
1032
  n = c;
@@ -1035,13 +1035,13 @@ function qn() {
1035
1035
  return t[c] || [];
1036
1036
  }
1037
1037
  function i(c) {
1038
- return r(c).forEach((y) => y(n, c)), u;
1038
+ return r(c).forEach((S) => S(n, c)), u;
1039
1039
  }
1040
- function s(c, y) {
1041
- return t[c] = r(c).concat([y]), u;
1040
+ function s(c, S) {
1041
+ return t[c] = r(c).concat([S]), u;
1042
1042
  }
1043
- function e(c, y) {
1044
- return t[c] = r(c).filter((d) => d !== y), u;
1043
+ function e(c, S) {
1044
+ return t[c] = r(c).filter((d) => d !== S), u;
1045
1045
  }
1046
1046
  function a() {
1047
1047
  t = {};
@@ -1055,7 +1055,7 @@ function qn() {
1055
1055
  };
1056
1056
  return u;
1057
1057
  }
1058
- const $n = {
1058
+ const Kn = {
1059
1059
  align: "center",
1060
1060
  axis: "x",
1061
1061
  container: null,
@@ -1077,9 +1077,9 @@ const $n = {
1077
1077
  watchSlides: !0,
1078
1078
  watchFocus: !0
1079
1079
  };
1080
- function Kn(t) {
1080
+ function Un(t) {
1081
1081
  function n(s, e) {
1082
- return Xt(s, e || {});
1082
+ return Yt(s, e || {});
1083
1083
  }
1084
1084
  function o(s) {
1085
1085
  const e = s.breakpoints || {}, a = pt(e).filter((u) => t.matchMedia(u).matches).map((u) => e[u]).reduce((u, c) => n(u, c), {});
@@ -1094,7 +1094,7 @@ function Kn(t) {
1094
1094
  optionsMediaQueries: r
1095
1095
  };
1096
1096
  }
1097
- function Un(t) {
1097
+ function Qn(t) {
1098
1098
  let n = [];
1099
1099
  function o(s, e) {
1100
1100
  return n = e.filter(({
@@ -1111,46 +1111,46 @@ function Un(t) {
1111
1111
  destroy: r
1112
1112
  };
1113
1113
  }
1114
- function St(t, n, o) {
1115
- const r = t.ownerDocument, i = r.defaultView, s = Kn(i), e = Un(s), a = mt(), u = qn(), {
1114
+ function yt(t, n, o) {
1115
+ const r = t.ownerDocument, i = r.defaultView, s = Un(i), e = Qn(s), a = mt(), u = $n(), {
1116
1116
  mergeOptions: c,
1117
- optionsAtMedia: y,
1117
+ optionsAtMedia: S,
1118
1118
  optionsMediaQueries: d
1119
1119
  } = s, {
1120
1120
  on: p,
1121
1121
  off: x,
1122
1122
  emit: l
1123
1123
  } = u, m = I;
1124
- let h = !1, f, g = c($n, St.globalOptions), b = c(g), L = [], N, C, E;
1124
+ let h = !1, f, g = c(Kn, yt.globalOptions), b = c(g), L = [], N, C, E;
1125
1125
  function v() {
1126
1126
  const {
1127
1127
  container: A,
1128
- slides: S
1128
+ slides: y
1129
1129
  } = b;
1130
1130
  C = (Tt(A) ? t.querySelector(A) : A) || t.children[0];
1131
- const O = Tt(S) ? C.querySelectorAll(S) : S;
1131
+ const O = Tt(y) ? C.querySelectorAll(y) : y;
1132
1132
  E = [].slice.call(O || C.children);
1133
1133
  }
1134
1134
  function w(A) {
1135
- const S = Hn(t, C, E, r, i, A, u);
1136
- if (A.loop && !S.slideLooper.canLoop()) {
1135
+ const y = qn(t, C, E, r, i, A, u);
1136
+ if (A.loop && !y.slideLooper.canLoop()) {
1137
1137
  const T = Object.assign({}, A, {
1138
1138
  loop: !1
1139
1139
  });
1140
1140
  return w(T);
1141
1141
  }
1142
- return S;
1142
+ return y;
1143
1143
  }
1144
- function P(A, S) {
1145
- h || (g = c(g, A), b = y(g), L = S || L, v(), f = w(b), d([g, ...L.map(({
1144
+ function P(A, y) {
1145
+ h || (g = c(g, A), b = S(g), L = y || L, v(), f = w(b), d([g, ...L.map(({
1146
1146
  options: T
1147
1147
  }) => T)]).forEach((T) => a.add(T, "change", I)), b.active && (f.translate.to(f.location.get()), f.animation.init(), f.slidesInView.init(), f.slideFocus.init(B), f.eventHandler.init(B), f.resizeHandler.init(B), f.slidesHandler.init(B), f.options.loop && f.slideLooper.loop(), C.offsetParent && E.length && f.dragHandler.init(B), N = e.init(B, L)));
1148
1148
  }
1149
- function I(A, S) {
1149
+ function I(A, y) {
1150
1150
  const T = $();
1151
1151
  F(), P(c({
1152
1152
  startIndex: T
1153
- }, A), S), u.emit("reInit");
1153
+ }, A), y), u.emit("reInit");
1154
1154
  }
1155
1155
  function F() {
1156
1156
  f.dragHandler.destroy(), f.eventStore.clear(), f.translate.clear(), f.slideLooper.clear(), f.resizeHandler.destroy(), f.slidesHandler.destroy(), f.slidesInView.destroy(), f.animation.destroy(), e.destroy(), a.clear();
@@ -1158,16 +1158,16 @@ function St(t, n, o) {
1158
1158
  function G() {
1159
1159
  h || (h = !0, a.clear(), F(), u.emit("destroy"), u.clear());
1160
1160
  }
1161
- function H(A, S, T) {
1162
- !b.active || h || (f.scrollBody.useBaseFriction().useDuration(S === !0 ? 0 : b.duration), f.scrollTo.index(A, T || 0));
1161
+ function H(A, y, T) {
1162
+ !b.active || h || (f.scrollBody.useBaseFriction().useDuration(y === !0 ? 0 : b.duration), f.scrollTo.index(A, T || 0));
1163
1163
  }
1164
1164
  function q(A) {
1165
- const S = f.index.add(1).get();
1166
- H(S, A, -1);
1165
+ const y = f.index.add(1).get();
1166
+ H(y, A, -1);
1167
1167
  }
1168
1168
  function W(A) {
1169
- const S = f.index.add(-1).get();
1170
- H(S, A, 1);
1169
+ const y = f.index.add(-1).get();
1170
+ H(y, A, 1);
1171
1171
  }
1172
1172
  function _() {
1173
1173
  return f.index.add(1).get() !== $();
@@ -1179,7 +1179,7 @@ function St(t, n, o) {
1179
1179
  return f.scrollSnapList;
1180
1180
  }
1181
1181
  function it() {
1182
- return f.scrollProgress.get(f.location.get());
1182
+ return f.scrollProgress.get(f.offsetLocation.get());
1183
1183
  }
1184
1184
  function $() {
1185
1185
  return f.index.get();
@@ -1233,33 +1233,33 @@ function St(t, n, o) {
1233
1233
  };
1234
1234
  return P(n, o), setTimeout(() => u.emit("init"), 0), B;
1235
1235
  }
1236
- St.globalOptions = void 0;
1236
+ yt.globalOptions = void 0;
1237
1237
  function Mt(t = {}, n = []) {
1238
- const o = Ht(t), r = Ht(n), [i, s] = qt(), [e, a] = qt(), u = ln(() => {
1238
+ const o = qt(t), r = qt(n), [i, s] = $t(), [e, a] = $t(), u = fn(() => {
1239
1239
  i && i.reInit(o.current, r.current);
1240
1240
  }, [i]);
1241
1241
  return It(() => {
1242
1242
  At(o.current, t) || (o.current = t, u());
1243
1243
  }, [t, u]), It(() => {
1244
- gn(r.current, n) || (r.current = n, u());
1244
+ hn(r.current, n) || (r.current = n, u());
1245
1245
  }, [n, u]), It(() => {
1246
- if (mn() && e) {
1247
- St.globalOptions = Mt.globalOptions;
1248
- const c = St(e, o.current, r.current);
1246
+ if (gn() && e) {
1247
+ yt.globalOptions = Mt.globalOptions;
1248
+ const c = yt(e, o.current, r.current);
1249
1249
  return s(c), () => c.destroy();
1250
1250
  } else
1251
1251
  s(void 0);
1252
1252
  }, [e, s]), [a, i];
1253
1253
  }
1254
1254
  Mt.globalOptions = void 0;
1255
- const Zt = j.createContext(null);
1255
+ const Wt = j.createContext(null);
1256
1256
  function bt() {
1257
- const t = j.useContext(Zt);
1257
+ const t = j.useContext(Wt);
1258
1258
  if (!t)
1259
1259
  throw new Error("useCarousel must be used within a <Carousel />");
1260
1260
  return t;
1261
1261
  }
1262
- const Qn = j.forwardRef(
1262
+ const Jn = j.forwardRef(
1263
1263
  ({
1264
1264
  orientation: t = "horizontal",
1265
1265
  opts: n,
@@ -1275,7 +1275,7 @@ const Qn = j.forwardRef(
1275
1275
  axis: t === "horizontal" ? "x" : "y"
1276
1276
  },
1277
1277
  r
1278
- ), [y, d] = j.useState(!1), [p, x] = j.useState(!1), l = j.useCallback((g) => {
1278
+ ), [S, d] = j.useState(!1), [p, x] = j.useState(!1), l = j.useCallback((g) => {
1279
1279
  g && (d(g.canScrollPrev()), x(g.canScrollNext()));
1280
1280
  }, []), m = j.useCallback(() => {
1281
1281
  c == null || c.scrollPrev();
@@ -1295,7 +1295,7 @@ const Qn = j.forwardRef(
1295
1295
  c.off("select", l);
1296
1296
  };
1297
1297
  }, [c, l]), /* @__PURE__ */ R.jsx(
1298
- Zt.Provider,
1298
+ Wt.Provider,
1299
1299
  {
1300
1300
  value: {
1301
1301
  carouselRef: u,
@@ -1304,7 +1304,7 @@ const Qn = j.forwardRef(
1304
1304
  orientation: t || ((n == null ? void 0 : n.axis) === "y" ? "vertical" : "horizontal"),
1305
1305
  scrollPrev: m,
1306
1306
  scrollNext: h,
1307
- canScrollPrev: y,
1307
+ canScrollPrev: S,
1308
1308
  canScrollNext: p
1309
1309
  },
1310
1310
  children: /* @__PURE__ */ R.jsx(
@@ -1323,8 +1323,8 @@ const Qn = j.forwardRef(
1323
1323
  );
1324
1324
  }
1325
1325
  );
1326
- Qn.displayName = "Carousel";
1327
- const Jn = j.forwardRef(({ className: t, ...n }, o) => {
1326
+ Jn.displayName = "Carousel";
1327
+ const Xn = j.forwardRef(({ className: t, ...n }, o) => {
1328
1328
  const { carouselRef: r, orientation: i } = bt();
1329
1329
  return /* @__PURE__ */ R.jsx("div", { ref: r, className: "overflow-hidden", children: /* @__PURE__ */ R.jsx(
1330
1330
  "div",
@@ -1339,8 +1339,8 @@ const Jn = j.forwardRef(({ className: t, ...n }, o) => {
1339
1339
  }
1340
1340
  ) });
1341
1341
  });
1342
- Jn.displayName = "CarouselContent";
1343
- const Xn = j.forwardRef(({ className: t, ...n }, o) => {
1342
+ Xn.displayName = "CarouselContent";
1343
+ const Yn = j.forwardRef(({ className: t, ...n }, o) => {
1344
1344
  const { orientation: r } = bt();
1345
1345
  return /* @__PURE__ */ R.jsx(
1346
1346
  "div",
@@ -1357,11 +1357,11 @@ const Xn = j.forwardRef(({ className: t, ...n }, o) => {
1357
1357
  }
1358
1358
  );
1359
1359
  });
1360
- Xn.displayName = "CarouselItem";
1361
- const Yn = j.forwardRef(({ className: t, variant: n = "outline", size: o = "icon", ...r }, i) => {
1360
+ Yn.displayName = "CarouselItem";
1361
+ const _n = j.forwardRef(({ className: t, variant: n = "outline", size: o = "icon", ...r }, i) => {
1362
1362
  const { orientation: s, scrollPrev: e, canScrollPrev: a } = bt();
1363
1363
  return /* @__PURE__ */ R.jsxs(
1364
- Jt,
1364
+ Xt,
1365
1365
  {
1366
1366
  ref: i,
1367
1367
  variant: n,
@@ -1375,17 +1375,17 @@ const Yn = j.forwardRef(({ className: t, variant: n = "outline", size: o = "icon
1375
1375
  onClick: e,
1376
1376
  ...r,
1377
1377
  children: [
1378
- /* @__PURE__ */ R.jsx(fn, { className: "h-4 w-4" }),
1378
+ /* @__PURE__ */ R.jsx(dn, { className: "h-4 w-4" }),
1379
1379
  /* @__PURE__ */ R.jsx("span", { className: "sr-only", children: "Previous slide" })
1380
1380
  ]
1381
1381
  }
1382
1382
  );
1383
1383
  });
1384
- Yn.displayName = "CarouselPrevious";
1385
- const _n = j.forwardRef(({ className: t, variant: n = "outline", size: o = "icon", ...r }, i) => {
1384
+ _n.displayName = "CarouselPrevious";
1385
+ const Zn = j.forwardRef(({ className: t, variant: n = "outline", size: o = "icon", ...r }, i) => {
1386
1386
  const { orientation: s, scrollNext: e, canScrollNext: a } = bt();
1387
1387
  return /* @__PURE__ */ R.jsxs(
1388
- Jt,
1388
+ Xt,
1389
1389
  {
1390
1390
  ref: i,
1391
1391
  variant: n,
@@ -1399,18 +1399,18 @@ const _n = j.forwardRef(({ className: t, variant: n = "outline", size: o = "icon
1399
1399
  onClick: e,
1400
1400
  ...r,
1401
1401
  children: [
1402
- /* @__PURE__ */ R.jsx(dn, { className: "h-4 w-4" }),
1402
+ /* @__PURE__ */ R.jsx(pn, { className: "h-4 w-4" }),
1403
1403
  /* @__PURE__ */ R.jsx("span", { className: "sr-only", children: "Next slide" })
1404
1404
  ]
1405
1405
  }
1406
1406
  );
1407
1407
  });
1408
- _n.displayName = "CarouselNext";
1408
+ Zn.displayName = "CarouselNext";
1409
1409
  export {
1410
- Qn as Carousel,
1411
- Jn as CarouselContent,
1412
- Xn as CarouselItem,
1413
- _n as CarouselNext,
1414
- Yn as CarouselPrevious
1410
+ Jn as Carousel,
1411
+ Xn as CarouselContent,
1412
+ Yn as CarouselItem,
1413
+ Zn as CarouselNext,
1414
+ _n as CarouselPrevious
1415
1415
  };
1416
1416
  //# sourceMappingURL=Carousel.js.map