@vc-shell/framework 1.1.99-alpha.1 → 1.2.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 (397) hide show
  1. package/core/api/platform.ts +9883 -9883
  2. package/core/composables/useDynamicProperties/index.ts +16 -10
  3. package/core/composables/useNotifications/index.ts +1 -32
  4. package/core/composables/useSettings/index.ts +3 -8
  5. package/core/composables/useUser/index.ts +171 -74
  6. package/core/composables/useUserManagement/index.ts +25 -67
  7. package/core/interceptors/index.ts +56 -19
  8. package/core/plugins/signalR/index.ts +1 -27
  9. package/core/types/index.ts +0 -2
  10. package/dist/core/api/platform.d.ts +1 -1
  11. package/dist/core/api/platform.d.ts.map +1 -1
  12. package/dist/core/composables/useDynamicProperties/index.d.ts.map +1 -1
  13. package/dist/core/composables/useNotifications/index.d.ts.map +1 -1
  14. package/dist/core/composables/useSettings/index.d.ts.map +1 -1
  15. package/dist/core/composables/useUser/index.d.ts +9 -18
  16. package/dist/core/composables/useUser/index.d.ts.map +1 -1
  17. package/dist/core/composables/useUserManagement/index.d.ts +7 -7
  18. package/dist/core/composables/useUserManagement/index.d.ts.map +1 -1
  19. package/dist/core/interceptors/index.d.ts +1 -2
  20. package/dist/core/interceptors/index.d.ts.map +1 -1
  21. package/dist/core/plugins/signalR/index.d.ts +0 -2
  22. package/dist/core/plugins/signalR/index.d.ts.map +1 -1
  23. package/dist/core/types/index.d.ts +1 -1
  24. package/dist/core/types/index.d.ts.map +1 -1
  25. package/dist/index.d.ts +0 -8
  26. package/dist/index.d.ts.map +1 -1
  27. package/dist/injection-keys.d.ts +1 -2
  28. package/dist/injection-keys.d.ts.map +1 -1
  29. package/dist/shared/components/app-switcher/composables/useAppSwitcher/index.d.ts.map +1 -1
  30. package/dist/shared/components/multilanguage-selector/multilanguage-selector.vue.d.ts +1 -1
  31. package/dist/shared/components/notifications/components/notification-container/index.d.ts +10 -10
  32. package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
  33. package/dist/shared/components/sign-in/useExternalProvider.d.ts +1 -1
  34. package/dist/shared/components/sign-in/useExternalProvider.d.ts.map +1 -1
  35. package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +2 -2
  36. package/dist/shared/modules/dynamic/helpers/nodeBuilder.d.ts.map +1 -1
  37. package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +2 -2
  38. package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +2 -2
  39. package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts +1 -1
  40. package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts.map +1 -1
  41. package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts +1 -1
  42. package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts.map +1 -1
  43. package/dist/tsconfig.tsbuildinfo +1 -1
  44. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +1 -1
  45. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
  46. package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts +2 -2
  47. package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts +1 -1
  48. package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -1
  49. package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +1 -1
  50. package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -1
  51. package/dist/ui/components/molecules/index.d.ts +1 -0
  52. package/dist/ui/components/molecules/index.d.ts.map +1 -1
  53. package/dist/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue.d.ts +34 -0
  54. package/dist/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue.d.ts.map +1 -0
  55. package/dist/ui/components/molecules/vc-accordion/index.d.ts +7 -0
  56. package/dist/ui/components/molecules/vc-accordion/index.d.ts.map +1 -0
  57. package/dist/ui/components/molecules/vc-accordion/vc-accordion.vue.d.ts +42 -0
  58. package/dist/ui/components/molecules/vc-accordion/vc-accordion.vue.d.ts.map +1 -0
  59. package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-button.vue.d.ts +1 -1
  60. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +2 -2
  61. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
  62. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts +1 -1
  63. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
  64. package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +1 -1
  65. package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +1 -1
  66. package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
  67. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts +1 -1
  68. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts.map +1 -1
  69. package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
  70. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-base-button.vue.d.ts +1 -1
  71. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts +1 -1
  72. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts.map +1 -1
  73. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-circle-button.vue.d.ts +1 -1
  74. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-circle-button.vue.d.ts.map +1 -1
  75. package/dist/ui/components/organisms/vc-blade/vc-blade.backupsb.d.ts +3 -3
  76. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +1 -1
  77. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
  78. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
  79. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +2 -2
  80. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +1 -1
  81. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
  82. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +5 -5
  83. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
  84. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +1 -1
  85. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
  86. package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +1 -1
  87. package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts.map +1 -1
  88. package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-body/vc-table-body.vue.d.ts +2 -2
  89. package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-row/vc-table-row.vue.d.ts +2 -2
  90. package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/vc-table-desktop-view.vue.d.ts +3 -3
  91. package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +1 -1
  92. package/package.json +5 -7
  93. package/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue +2 -2
  94. package/shared/components/app-switcher/composables/useAppSwitcher/index.ts +1 -15
  95. package/shared/components/sign-in/useExternalProvider.ts +1 -11
  96. package/shared/modules/dynamic/helpers/nodeBuilder.ts +3 -11
  97. package/ui/components/atoms/vc-badge/vc-badge.stories.ts +1 -1
  98. package/ui/components/atoms/vc-button/vc-button.stories.ts +1 -1
  99. package/ui/components/atoms/vc-card/vc-card.stories.ts +1 -1
  100. package/ui/components/atoms/vc-col/vc-col.stories.ts +1 -1
  101. package/ui/components/atoms/vc-container/vc-container.stories.ts +1 -1
  102. package/ui/components/atoms/vc-hint/vc-hint.stories.ts +1 -1
  103. package/ui/components/atoms/vc-icon/vc-icon.stories.ts +1 -1
  104. package/ui/components/atoms/vc-image/vc-image.stories.ts +1 -1
  105. package/ui/components/atoms/vc-label/vc-label.stories.ts +1 -1
  106. package/ui/components/atoms/vc-link/vc-link.stories.ts +1 -1
  107. package/ui/components/atoms/vc-progress/vc-progress.stories.ts +1 -1
  108. package/ui/components/atoms/vc-row/vc-row.stories.ts +1 -1
  109. package/ui/components/atoms/vc-skeleton/vc-skeleton.stories.ts +1 -1
  110. package/ui/components/atoms/vc-status/vc-status.stories.ts +1 -1
  111. package/ui/components/atoms/vc-status-icon/vc-status-icon.stories.ts +1 -1
  112. package/ui/components/atoms/vc-tooltip/vc-tooltip.stories.ts +1 -1
  113. package/ui/components/atoms/vc-video/vc-video.stories.ts +1 -1
  114. package/ui/components/atoms/vc-widget/vc-widget.stories.ts +1 -1
  115. package/ui/components/molecules/index.ts +1 -0
  116. package/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue +251 -0
  117. package/ui/components/molecules/vc-accordion/index.ts +11 -0
  118. package/ui/components/molecules/vc-accordion/vc-accordion.stories.ts +526 -0
  119. package/ui/components/molecules/vc-accordion/vc-accordion.vue +176 -0
  120. package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.ts +1 -1
  121. package/ui/components/molecules/vc-checkbox/vc-checkbox.stories.ts +1 -1
  122. package/ui/components/molecules/vc-editor/vc-editor.stories.ts +1 -1
  123. package/ui/components/molecules/vc-field/vc-field.stories.ts +1 -1
  124. package/ui/components/molecules/vc-file-upload/vc-file-upload.stories.ts +1 -1
  125. package/ui/components/molecules/vc-form/vc-form.stories.ts +1 -1
  126. package/ui/components/molecules/vc-input/vc-input.stories.ts +1 -1
  127. package/ui/components/molecules/vc-input-currency/vc-input-currency.stories.ts +1 -1
  128. package/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.stories.ts +1 -1
  129. package/ui/components/molecules/vc-multivalue/vc-multivalue.stories.ts +1 -1
  130. package/ui/components/molecules/vc-pagination/vc-pagination.stories.ts +1 -1
  131. package/ui/components/molecules/vc-radio-button/vc-radio-button.stories.ts +1 -1
  132. package/ui/components/molecules/vc-rating/vc-rating.stories.ts +1 -1
  133. package/ui/components/molecules/vc-select/vc-select.stories.ts +1 -1
  134. package/ui/components/molecules/vc-slider/vc-slider.stories.ts +1 -1
  135. package/ui/components/molecules/vc-switch/vc-switch.stories.ts +1 -1
  136. package/ui/components/molecules/vc-textarea/vc-textarea.stories.ts +1 -1
  137. package/ui/components/molecules/vc-toast/vc-toast.stories.ts +1 -1
  138. package/ui/components/organisms/vc-app/vc-app.vue +2 -20
  139. package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +4 -0
  140. package/ui/components/organisms/vc-gallery/vc-gallery.stories.ts +1 -1
  141. package/ui/components/organisms/vc-popup/vc-popup.stories.ts +1 -1
  142. package/core/providers/README.md +0 -176
  143. package/core/providers/auth-provider-manager.ts +0 -74
  144. package/core/providers/auth-provider-utils.ts +0 -26
  145. package/core/providers/example-custom-auth-provider.ts +0 -162
  146. package/core/providers/index.ts +0 -3
  147. package/core/providers/platform-auth-provider.ts +0 -207
  148. package/core/types/auth-provider.ts +0 -40
  149. package/dist/assets/042c75b764bc78a7.svg +0 -1
  150. package/dist/assets/0ba156439a339f2a.svg +0 -1
  151. package/dist/assets/0be560bfb22d0e72.woff2 +0 -0
  152. package/dist/assets/0f590f8a94577092.svg +0 -1
  153. package/dist/assets/0fc5820f8be53a1b.svg +0 -1
  154. package/dist/assets/105efd028edc1dfe.woff +0 -0
  155. package/dist/assets/10768e2cc79fc60b.svg +0 -1
  156. package/dist/assets/11b3d25a56fd9a21.woff2 +0 -0
  157. package/dist/assets/154365acf3010d96.woff2 +0 -0
  158. package/dist/assets/157b8721e0600ea8.svg +0 -1
  159. package/dist/assets/15e91cdd649cde9a.svg +0 -1
  160. package/dist/assets/19275e398ae57130.woff2 +0 -0
  161. package/dist/assets/1a3e84b2457f709a.woff +0 -0
  162. package/dist/assets/1de63eb118636cce.svg +0 -1
  163. package/dist/assets/1ea01de36eb5491b.svg +0 -1
  164. package/dist/assets/204eaf512fde2023.svg +0 -1
  165. package/dist/assets/2088983edf42e153.svg +0 -1
  166. package/dist/assets/208f810a9321a327.svg +0 -1
  167. package/dist/assets/21220a9d10e6c558.svg +0 -1
  168. package/dist/assets/220db345a102045d.woff2 +0 -0
  169. package/dist/assets/225da11d23968333.svg +0 -1
  170. package/dist/assets/226f862dd81bdc13.woff2 +0 -0
  171. package/dist/assets/23a2d53395ddb14f.woff +0 -0
  172. package/dist/assets/259e6ad461a52ad7.svg +0 -1
  173. package/dist/assets/261e6dec4d53b9ac.woff +0 -0
  174. package/dist/assets/262f46a0b6d94bb6.svg +0 -1
  175. package/dist/assets/2857c513073467da.svg +0 -1
  176. package/dist/assets/2b3be7889467d98f.woff +0 -0
  177. package/dist/assets/2d4e6190eec72737.svg +0 -1
  178. package/dist/assets/2eba973185078bc8.woff +0 -0
  179. package/dist/assets/334d3f6bc766c516.woff +0 -0
  180. package/dist/assets/34ff7dd0c2285956.svg +0 -1
  181. package/dist/assets/3d26b7c1ab78bbe2.woff +0 -0
  182. package/dist/assets/3d892965ab4f1cbb.woff2 +0 -0
  183. package/dist/assets/3f8c4cc8099e34b6.woff2 +0 -0
  184. package/dist/assets/40a0e53b79ce63c6.woff2 +0 -0
  185. package/dist/assets/41275bcb979cb650.svg +0 -1
  186. package/dist/assets/434f7982590e462f.woff +0 -0
  187. package/dist/assets/475937116ee3314a.woff2 +0 -0
  188. package/dist/assets/489710fb710e73f0.woff +0 -0
  189. package/dist/assets/49791943b3872376.woff2 +0 -0
  190. package/dist/assets/4ae5f23e0ca888e7.woff2 +0 -0
  191. package/dist/assets/4d7a77b0e5373992.svg +0 -1
  192. package/dist/assets/4e43c74354534fb3.svg +0 -1
  193. package/dist/assets/4fe75f5117100705.svg +0 -1
  194. package/dist/assets/52e261a005074e1b.woff +0 -0
  195. package/dist/assets/5304c3d05a5f9789.woff2 +0 -0
  196. package/dist/assets/54cda5482c6c9218.woff +0 -0
  197. package/dist/assets/550f52072e8ccafe.woff2 +0 -0
  198. package/dist/assets/572bb1bb4156a9c1.svg +0 -1
  199. package/dist/assets/6075995d7e74da46.woff2 +0 -0
  200. package/dist/assets/617c4736236e199e.woff +0 -0
  201. package/dist/assets/67230f05dc94a265.svg +0 -1
  202. package/dist/assets/6798e4dd4add9b48.svg +0 -1
  203. package/dist/assets/686d4077c1e26876.woff2 +0 -0
  204. package/dist/assets/698ec6c722d4cb05.woff2 +0 -0
  205. package/dist/assets/6a3e73faf406cf33.svg +0 -1
  206. package/dist/assets/72de3a63bc0b70dd.svg +0 -1
  207. package/dist/assets/74c6a6ab81bb6340.woff2 +0 -0
  208. package/dist/assets/74ed5f8a78e71106.svg +0 -1
  209. package/dist/assets/7a5aa5abd625137f.ttf +0 -0
  210. package/dist/assets/7ce0c166fd6a1204.woff +0 -0
  211. package/dist/assets/7d55399c2a7bc985.svg +0 -1
  212. package/dist/assets/7d970675c69fca1d.woff +0 -0
  213. package/dist/assets/7eda727273fd98d3.svg +0 -1
  214. package/dist/assets/7f6ebfd707b76ca2.woff +0 -0
  215. package/dist/assets/7fa898d213fcc7bc.woff2 +0 -0
  216. package/dist/assets/861e6b7192b3b6c7.woff +0 -0
  217. package/dist/assets/8bbcde81ba21ecb2.woff2 +0 -0
  218. package/dist/assets/8f6657e5e0b8d3e4.woff +0 -0
  219. package/dist/assets/910b0d99b9e26568.svg +0 -1
  220. package/dist/assets/91fe94e424323d61.woff +0 -0
  221. package/dist/assets/92508f8707159b51.svg +0 -1
  222. package/dist/assets/9392bf1d591e1abb.svg +0 -1
  223. package/dist/assets/97e8d4984ba0713a.woff2 +0 -0
  224. package/dist/assets/9cb83236f6bb7ab1.svg +0 -1
  225. package/dist/assets/9d37314695c0b68d.woff +0 -0
  226. package/dist/assets/a03cdcd8da5bb987.woff +0 -0
  227. package/dist/assets/a18404194e3f9047.svg +0 -1
  228. package/dist/assets/a2017fe7f0a26510.svg +0 -1
  229. package/dist/assets/ab6e7190bb1492d5.woff2 +0 -0
  230. package/dist/assets/abf88f301a0730f4.svg +0 -1
  231. package/dist/assets/ac1a99b3d05d8232.woff +0 -0
  232. package/dist/assets/aed17cb6fdad2ada.woff2 +0 -0
  233. package/dist/assets/b1a596e31ad1185a.svg +0 -1
  234. package/dist/assets/b27767411c8427be.woff +0 -0
  235. package/dist/assets/b325adcae33bbe7a.svg +0 -1
  236. package/dist/assets/b372390551ca2fa1.svg +0 -1
  237. package/dist/assets/b5bb1e8fc975decd.svg +0 -1
  238. package/dist/assets/b645a4a2181b9dc1.svg +0 -1
  239. package/dist/assets/b6499ddce0a4ef7d.svg +0 -1
  240. package/dist/assets/b94421fadd23b0f2.svg +0 -1
  241. package/dist/assets/bb28fb0f27f1c11b.svg +0 -1
  242. package/dist/assets/c9191b638a10f67b.woff2 +0 -0
  243. package/dist/assets/ca791c5ca5848a03.svg +0 -1
  244. package/dist/assets/cb32840ce330103f.woff +0 -0
  245. package/dist/assets/ccc878931d74181b.woff2 +0 -0
  246. package/dist/assets/d084bda16abe8a56.svg +0 -1
  247. package/dist/assets/d32b129cae2fffd6.svg +0 -1
  248. package/dist/assets/d35a4c7113315758.woff2 +0 -0
  249. package/dist/assets/d3f792f54ae4c307.svg +0 -1
  250. package/dist/assets/d5a5b8630120073d.svg +0 -1
  251. package/dist/assets/d5f9664ebbfb104b.svg +0 -1
  252. package/dist/assets/d84247b59449dd88.woff2 +0 -0
  253. package/dist/assets/dceaf3b39091e6a4.woff +0 -0
  254. package/dist/assets/dd05d43ff0df2fc7.svg +0 -1
  255. package/dist/assets/e2ad5b3428289141.woff +0 -0
  256. package/dist/assets/e38acaa1757232e0.svg +0 -1
  257. package/dist/assets/e4a8550f1c7ffe36.svg +0 -1
  258. package/dist/assets/e5adb5ae3a3698f6.svg +0 -1
  259. package/dist/assets/e61a1889bac955f4.woff2 +0 -0
  260. package/dist/assets/e72bb11356af94c7.svg +0 -1
  261. package/dist/assets/e98196a9f8dcb2f0.svg +0 -1
  262. package/dist/assets/ebec912a42ad49ff.woff +0 -0
  263. package/dist/assets/ee6983981ffcbb41.woff2 +0 -0
  264. package/dist/assets/f09d89268e4c0317.svg +0 -1
  265. package/dist/assets/f239394367fcf005.woff2 +0 -0
  266. package/dist/assets/f5722262b6e7214e.woff2 +0 -0
  267. package/dist/assets/f7fc8bf46089d8b2.svg +0 -1
  268. package/dist/assets/fc829e3f399b70e0.woff2 +0 -0
  269. package/dist/assets/fe141d99763f5d2b.woff +0 -0
  270. package/dist/assets/fed13b0d59903483.svg +0 -1
  271. package/dist/assets/fed757d2c2344ead.woff2 +0 -0
  272. package/dist/assets/ffc438f20e79ce73.woff +0 -0
  273. package/dist/core/providers/auth-provider-manager.d.ts +0 -34
  274. package/dist/core/providers/auth-provider-manager.d.ts.map +0 -1
  275. package/dist/core/providers/auth-provider-utils.d.ts +0 -17
  276. package/dist/core/providers/auth-provider-utils.d.ts.map +0 -1
  277. package/dist/core/providers/example-custom-auth-provider.d.ts +0 -45
  278. package/dist/core/providers/example-custom-auth-provider.d.ts.map +0 -1
  279. package/dist/core/providers/index.d.ts +0 -3
  280. package/dist/core/providers/index.d.ts.map +0 -1
  281. package/dist/core/providers/platform-auth-provider.d.ts +0 -34
  282. package/dist/core/providers/platform-auth-provider.d.ts.map +0 -1
  283. package/dist/core/types/auth-provider.d.ts +0 -27
  284. package/dist/core/types/auth-provider.d.ts.map +0 -1
  285. package/dist/framework.js +0 -25048
  286. package/dist/index.css +0 -9
  287. package/dist/vendor-boolbase-A_-Pp38P.js +0 -23
  288. package/dist/vendor-cheerio-C46iBpCu.js +0 -1053
  289. package/dist/vendor-cheerio-select-C8emRZsx.js +0 -191
  290. package/dist/vendor-core-js-DDuR6YMQ.js +0 -1206
  291. package/dist/vendor-css-select-DR9bp36p.js +0 -622
  292. package/dist/vendor-css-what-CZZaquJM.js +0 -267
  293. package/dist/vendor-cypress-signalr-mock-DjBxJHA6.js +0 -769
  294. package/dist/vendor-date-fns-sZ1zMzTH.js +0 -3008
  295. package/dist/vendor-dom-serializer-Sk3xHhQk.js +0 -213
  296. package/dist/vendor-domelementtype-B3sFIGaC.js +0 -21
  297. package/dist/vendor-domhandler-CL40eeX9.js +0 -311
  298. package/dist/vendor-dompurify-BuxjWxA2.js +0 -553
  299. package/dist/vendor-domutils-BiVCXO8c.js +0 -386
  300. package/dist/vendor-entities-CCReaWqU.js +0 -364
  301. package/dist/vendor-floating-ui-core-Cl9nBI4j.js +0 -349
  302. package/dist/vendor-floating-ui-dom-3z44E4mf.js +0 -395
  303. package/dist/vendor-floating-ui-utils-D2sT7feD.js +0 -259
  304. package/dist/vendor-floating-ui-vue-ClrgkeO5.js +0 -107
  305. package/dist/vendor-headlessui-vue-D7tzx4PC.js +0 -961
  306. package/dist/vendor-htmlparser2-CpQu33io.js +0 -735
  307. package/dist/vendor-intlify-core-base-Da62SG4M.js +0 -1130
  308. package/dist/vendor-intlify-message-compiler-CHvGSH2u.js +0 -952
  309. package/dist/vendor-intlify-shared-jWBPd9WB.js +0 -144
  310. package/dist/vendor-iso-639-1-BJO6WZAt.js +0 -781
  311. package/dist/vendor-linkify-it-LzoUhj6C.js +0 -199
  312. package/dist/vendor-linkifyjs-dCH9UYes.js +0 -701
  313. package/dist/vendor-lodash-es-BqkGj3Jl.js +0 -4816
  314. package/dist/vendor-lucide-vue-next-m0L4DzUL.js +0 -29780
  315. package/dist/vendor-markdown-it-Czg9qJTh.js +0 -2263
  316. package/dist/vendor-markdown-it-task-lists-BxLwscWK.js +0 -69
  317. package/dist/vendor-mdurl-DZFDNdqC.js +0 -192
  318. package/dist/vendor-microsoft-applicationinsights-analytics-js-C1Yxuzwg.js +0 -1207
  319. package/dist/vendor-microsoft-applicationinsights-cfgsync-js-DArHD4Dn.js +0 -261
  320. package/dist/vendor-microsoft-applicationinsights-channel-js-Dbs0XRes.js +0 -1822
  321. package/dist/vendor-microsoft-applicationinsights-common-OjU3Zs6r.js +0 -1921
  322. package/dist/vendor-microsoft-applicationinsights-core-js-DWRvqBek.js +0 -4276
  323. package/dist/vendor-microsoft-applicationinsights-dependencies-js-BxTNw-Sk.js +0 -1407
  324. package/dist/vendor-microsoft-applicationinsights-properties-js-Gfhpu-At.js +0 -572
  325. package/dist/vendor-microsoft-applicationinsights-shims-CxtPYiwp.js +0 -43
  326. package/dist/vendor-microsoft-applicationinsights-web-9yeJ0EZv.js +0 -487
  327. package/dist/vendor-microsoft-dynamicproto-js-DSkQkH3T.js +0 -147
  328. package/dist/vendor-microsoft-signalr-Bgpbb4fW.js +0 -1761
  329. package/dist/vendor-moment-DMLRxgRE.js +0 -2589
  330. package/dist/vendor-nevware21-ts-async-CdMc_sGt.js +0 -261
  331. package/dist/vendor-nevware21-ts-utils-Dy41wRhA.js +0 -853
  332. package/dist/vendor-nth-check-CS1D-zr5.js +0 -45
  333. package/dist/vendor-orderedmap-B3SOk52B.js +0 -103
  334. package/dist/vendor-parse5-htmlparser2-tree-adapter-BWywtwol.js +0 -143
  335. package/dist/vendor-parse5-zq5Hn0y9.js +0 -5749
  336. package/dist/vendor-prettier-cZc5sCiS.js +0 -4875
  337. package/dist/vendor-prosemirror-commands-Cu1q5ZDk.js +0 -385
  338. package/dist/vendor-prosemirror-dropcursor-BuGmFgFS.js +0 -86
  339. package/dist/vendor-prosemirror-gapcursor-CyYcCWVK.js +0 -203
  340. package/dist/vendor-prosemirror-history-DzRcbrCw.js +0 -248
  341. package/dist/vendor-prosemirror-keymap-KfbdOEJw.js +0 -62
  342. package/dist/vendor-prosemirror-markdown-OyxRuawK.js +0 -650
  343. package/dist/vendor-prosemirror-model-DFp4ML7B.js +0 -2730
  344. package/dist/vendor-prosemirror-schema-list-CwCUArvx.js +0 -87
  345. package/dist/vendor-prosemirror-state-DHaVEu5h.js +0 -821
  346. package/dist/vendor-prosemirror-tables-mYok4vGT.js +0 -1711
  347. package/dist/vendor-prosemirror-transform-CAHmg-qG.js +0 -1508
  348. package/dist/vendor-prosemirror-view-CspJa44O.js +0 -3751
  349. package/dist/vendor-punycode-js-CgGegfA_.js +0 -133
  350. package/dist/vendor-rope-sequence-BWC2FSrq.js +0 -100
  351. package/dist/vendor-semver-Dar8oU3V.js +0 -1023
  352. package/dist/vendor-swiper-1bp0oJwt.js +0 -3387
  353. package/dist/vendor-tanstack-virtual-core-l0sNRNKZ.js +0 -1
  354. package/dist/vendor-tanstack-vue-virtual-CD9yLWd7.js +0 -1
  355. package/dist/vendor-tiptap-core-ClsTgaMv.js +0 -3699
  356. package/dist/vendor-tiptap-extension-blockquote-r1MBx4hD.js +0 -54
  357. package/dist/vendor-tiptap-extension-bold-BjLI4i8b.js +0 -74
  358. package/dist/vendor-tiptap-extension-code-D5-kDnMW.js +0 -52
  359. package/dist/vendor-tiptap-extension-code-block-RjEb0zPA.js +0 -215
  360. package/dist/vendor-tiptap-extension-document--PLOxIdq.js +0 -12
  361. package/dist/vendor-tiptap-extension-hard-break-9cxC2YOS.js +0 -59
  362. package/dist/vendor-tiptap-extension-heading-2w0TutHn.js +0 -63
  363. package/dist/vendor-tiptap-extension-horizontal-rule-CFowa_lc.js +0 -56
  364. package/dist/vendor-tiptap-extension-image-aWn-na6j.js +0 -127
  365. package/dist/vendor-tiptap-extension-italic-Bn-6saY0.js +0 -73
  366. package/dist/vendor-tiptap-extension-link-BmcG1_k-.js +0 -298
  367. package/dist/vendor-tiptap-extension-list-BrNBJ45n.js +0 -707
  368. package/dist/vendor-tiptap-extension-paragraph-DAiYhwUB.js +0 -41
  369. package/dist/vendor-tiptap-extension-placeholder-9tURDKy-.js +0 -1
  370. package/dist/vendor-tiptap-extension-strike-DqbXPfos.js +0 -64
  371. package/dist/vendor-tiptap-extension-table-DQwPaR7v.js +0 -374
  372. package/dist/vendor-tiptap-extension-table-cell-C0tEP_0i.js +0 -1
  373. package/dist/vendor-tiptap-extension-table-header-C0tEP_0i.js +0 -1
  374. package/dist/vendor-tiptap-extension-table-row-C0tEP_0i.js +0 -1
  375. package/dist/vendor-tiptap-extension-text-BFnfj70b.js +0 -13
  376. package/dist/vendor-tiptap-extension-text-style-Darua3qr.js +0 -235
  377. package/dist/vendor-tiptap-extension-underline-QyVnBqQZ.js +0 -65
  378. package/dist/vendor-tiptap-extensions-CU-D7bfm.js +0 -290
  379. package/dist/vendor-tiptap-markdown-BwATYN5A.js +0 -826
  380. package/dist/vendor-tiptap-pm-d91nGny8.js +0 -1
  381. package/dist/vendor-tiptap-starter-kit-5luf7zzS.js +0 -28
  382. package/dist/vendor-tiptap-vue-3-CFBErZGb.js +0 -157
  383. package/dist/vendor-truncate-html-DYC0Lj9o.js +0 -145
  384. package/dist/vendor-uc-micro-4lbSaZOs.js +0 -17
  385. package/dist/vendor-vee-validate-i18n-zT8NxX3R.js +0 -93
  386. package/dist/vendor-vee-validate-rules-4oWUZPpG.js +0 -316
  387. package/dist/vendor-vue-currency-input-BqaYAdhD.js +0 -317
  388. package/dist/vendor-vue-demi-CD9yLWd7.js +0 -1
  389. package/dist/vendor-vue-devtools-api-aVYGocXp.js +0 -93
  390. package/dist/vendor-vue-i18n-CO5LWKE0.js +0 -1370
  391. package/dist/vendor-vue3-application-insights-BKiiWnf2.js +0 -69
  392. package/dist/vendor-vue3-touch-events-DqysuuWh.js +0 -169
  393. package/dist/vendor-vuepic-vue-datepicker-CaY_xSnG.js +0 -4998
  394. package/dist/vendor-vueuse-components-sgKpNzof.js +0 -542
  395. package/dist/vendor-vueuse-core-D0cN7FqY.js +0 -5130
  396. package/dist/vendor-vueuse-shared-Pt0UEStA.js +0 -1169
  397. package/dist/vendor-w3c-keyname-CLxH8j-f.js +0 -92
@@ -1,3387 +0,0 @@
1
- import { ref as _, onUpdated as ye, provide as Te, watch as Re, nextTick as Fe, onMounted as xe, onBeforeUnmount as Ee, h as D, onBeforeUpdate as He, computed as je } from "vue";
2
- function ce(t) {
3
- return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
4
- }
5
- function de(t, e) {
6
- t === void 0 && (t = {}), e === void 0 && (e = {});
7
- const i = ["__proto__", "constructor", "prototype"];
8
- Object.keys(e).filter((n) => i.indexOf(n) < 0).forEach((n) => {
9
- typeof t[n] > "u" ? t[n] = e[n] : ce(e[n]) && ce(t[n]) && Object.keys(e[n]).length > 0 && de(t[n], e[n]);
10
- });
11
- }
12
- const Pe = {
13
- body: {},
14
- addEventListener() {
15
- },
16
- removeEventListener() {
17
- },
18
- activeElement: {
19
- blur() {
20
- },
21
- nodeName: ""
22
- },
23
- querySelector() {
24
- return null;
25
- },
26
- querySelectorAll() {
27
- return [];
28
- },
29
- getElementById() {
30
- return null;
31
- },
32
- createEvent() {
33
- return {
34
- initEvent() {
35
- }
36
- };
37
- },
38
- createElement() {
39
- return {
40
- children: [],
41
- childNodes: [],
42
- style: {},
43
- setAttribute() {
44
- },
45
- getElementsByTagName() {
46
- return [];
47
- }
48
- };
49
- },
50
- createElementNS() {
51
- return {};
52
- },
53
- importNode() {
54
- return null;
55
- },
56
- location: {
57
- hash: "",
58
- host: "",
59
- hostname: "",
60
- href: "",
61
- origin: "",
62
- pathname: "",
63
- protocol: "",
64
- search: ""
65
- }
66
- };
67
- function W() {
68
- const t = typeof document < "u" ? document : {};
69
- return de(t, Pe), t;
70
- }
71
- const $e = {
72
- document: Pe,
73
- navigator: {
74
- userAgent: ""
75
- },
76
- location: {
77
- hash: "",
78
- host: "",
79
- hostname: "",
80
- href: "",
81
- origin: "",
82
- pathname: "",
83
- protocol: "",
84
- search: ""
85
- },
86
- history: {
87
- replaceState() {
88
- },
89
- pushState() {
90
- },
91
- go() {
92
- },
93
- back() {
94
- }
95
- },
96
- CustomEvent: function() {
97
- return this;
98
- },
99
- addEventListener() {
100
- },
101
- removeEventListener() {
102
- },
103
- getComputedStyle() {
104
- return {
105
- getPropertyValue() {
106
- return "";
107
- }
108
- };
109
- },
110
- Image() {
111
- },
112
- Date() {
113
- },
114
- screen: {},
115
- setTimeout() {
116
- },
117
- clearTimeout() {
118
- },
119
- matchMedia() {
120
- return {};
121
- },
122
- requestAnimationFrame(t) {
123
- return typeof setTimeout > "u" ? (t(), null) : setTimeout(t, 0);
124
- },
125
- cancelAnimationFrame(t) {
126
- typeof setTimeout > "u" || clearTimeout(t);
127
- }
128
- };
129
- function B() {
130
- const t = typeof window < "u" ? window : {};
131
- return de(t, $e), t;
132
- }
133
- function We(t) {
134
- return t === void 0 && (t = ""), t.trim().split(" ").filter((e) => !!e.trim());
135
- }
136
- function qe(t) {
137
- const e = t;
138
- Object.keys(e).forEach((i) => {
139
- try {
140
- e[i] = null;
141
- } catch {
142
- }
143
- try {
144
- delete e[i];
145
- } catch {
146
- }
147
- });
148
- }
149
- function Ce(t, e) {
150
- return e === void 0 && (e = 0), setTimeout(t, e);
151
- }
152
- function K() {
153
- return Date.now();
154
- }
155
- function Ye(t) {
156
- const e = B();
157
- let i;
158
- return e.getComputedStyle && (i = e.getComputedStyle(t, null)), !i && t.currentStyle && (i = t.currentStyle), i || (i = t.style), i;
159
- }
160
- function Xe(t, e) {
161
- e === void 0 && (e = "x");
162
- const i = B();
163
- let n, s, r;
164
- const l = Ye(t);
165
- return i.WebKitCSSMatrix ? (s = l.transform || l.webkitTransform, s.split(",").length > 6 && (s = s.split(", ").map((a) => a.replace(",", ".")).join(", ")), r = new i.WebKitCSSMatrix(s === "none" ? "" : s)) : (r = l.MozTransform || l.OTransform || l.MsTransform || l.msTransform || l.transform || l.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), n = r.toString().split(",")), e === "x" && (i.WebKitCSSMatrix ? s = r.m41 : n.length === 16 ? s = parseFloat(n[12]) : s = parseFloat(n[4])), e === "y" && (i.WebKitCSSMatrix ? s = r.m42 : n.length === 16 ? s = parseFloat(n[13]) : s = parseFloat(n[5])), s || 0;
166
- }
167
- function Y(t) {
168
- return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object";
169
- }
170
- function Ue(t) {
171
- return typeof window < "u" && typeof window.HTMLElement < "u" ? t instanceof HTMLElement : t && (t.nodeType === 1 || t.nodeType === 11);
172
- }
173
- function G() {
174
- const t = Object(arguments.length <= 0 ? void 0 : arguments[0]), e = ["__proto__", "constructor", "prototype"];
175
- for (let i = 1; i < arguments.length; i += 1) {
176
- const n = i < 0 || arguments.length <= i ? void 0 : arguments[i];
177
- if (n != null && !Ue(n)) {
178
- const s = Object.keys(Object(n)).filter((r) => e.indexOf(r) < 0);
179
- for (let r = 0, l = s.length; r < l; r += 1) {
180
- const a = s[r], o = Object.getOwnPropertyDescriptor(n, a);
181
- o !== void 0 && o.enumerable && (Y(t[a]) && Y(n[a]) ? n[a].__swiper__ ? t[a] = n[a] : G(t[a], n[a]) : !Y(t[a]) && Y(n[a]) ? (t[a] = {}, n[a].__swiper__ ? t[a] = n[a] : G(t[a], n[a])) : t[a] = n[a]);
182
- }
183
- }
184
- }
185
- return t;
186
- }
187
- function X(t, e, i) {
188
- t.style.setProperty(e, i);
189
- }
190
- function Me(t) {
191
- let {
192
- swiper: e,
193
- targetPosition: i,
194
- side: n
195
- } = t;
196
- const s = B(), r = -e.translate;
197
- let l = null, a;
198
- const o = e.params.speed;
199
- e.wrapperEl.style.scrollSnapType = "none", s.cancelAnimationFrame(e.cssModeFrameID);
200
- const d = i > r ? "next" : "prev", u = (p, h) => d === "next" && p >= h || d === "prev" && p <= h, f = () => {
201
- a = (/* @__PURE__ */ new Date()).getTime(), l === null && (l = a);
202
- const p = Math.max(Math.min((a - l) / o, 1), 0), h = 0.5 - Math.cos(p * Math.PI) / 2;
203
- let c = r + h * (i - r);
204
- if (u(c, i) && (c = i), e.wrapperEl.scrollTo({
205
- [n]: c
206
- }), u(c, i)) {
207
- e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.scrollSnapType = "", setTimeout(() => {
208
- e.wrapperEl.style.overflow = "", e.wrapperEl.scrollTo({
209
- [n]: c
210
- });
211
- }), s.cancelAnimationFrame(e.cssModeFrameID);
212
- return;
213
- }
214
- e.cssModeFrameID = s.requestAnimationFrame(f);
215
- };
216
- f();
217
- }
218
- function N(t, e) {
219
- e === void 0 && (e = "");
220
- const i = B(), n = [...t.children];
221
- return i.HTMLSlotElement && t instanceof HTMLSlotElement && n.push(...t.assignedElements()), e ? n.filter((s) => s.matches(e)) : n;
222
- }
223
- function Ke(t, e) {
224
- const i = [e];
225
- for (; i.length > 0; ) {
226
- const n = i.shift();
227
- if (t === n)
228
- return !0;
229
- i.push(...n.children, ...n.shadowRoot ? n.shadowRoot.children : [], ...n.assignedElements ? n.assignedElements() : []);
230
- }
231
- }
232
- function Qe(t, e) {
233
- const i = B();
234
- let n = e.contains(t);
235
- return !n && i.HTMLSlotElement && e instanceof HTMLSlotElement && (n = [...e.assignedElements()].includes(t), n || (n = Ke(t, e))), n;
236
- }
237
- function Q(t) {
238
- try {
239
- console.warn(t);
240
- return;
241
- } catch {
242
- }
243
- }
244
- function Z(t, e) {
245
- e === void 0 && (e = []);
246
- const i = document.createElement(t);
247
- return i.classList.add(...Array.isArray(e) ? e : We(e)), i;
248
- }
249
- function Ze(t, e) {
250
- const i = [];
251
- for (; t.previousElementSibling; ) {
252
- const n = t.previousElementSibling;
253
- e ? n.matches(e) && i.push(n) : i.push(n), t = n;
254
- }
255
- return i;
256
- }
257
- function Je(t, e) {
258
- const i = [];
259
- for (; t.nextElementSibling; ) {
260
- const n = t.nextElementSibling;
261
- e ? n.matches(e) && i.push(n) : i.push(n), t = n;
262
- }
263
- return i;
264
- }
265
- function j(t, e) {
266
- return B().getComputedStyle(t, null).getPropertyValue(e);
267
- }
268
- function pe(t) {
269
- let e = t, i;
270
- if (e) {
271
- for (i = 0; (e = e.previousSibling) !== null; )
272
- e.nodeType === 1 && (i += 1);
273
- return i;
274
- }
275
- }
276
- function et(t, e) {
277
- const i = [];
278
- let n = t.parentElement;
279
- for (; n; )
280
- i.push(n), n = n.parentElement;
281
- return i;
282
- }
283
- function he(t, e, i) {
284
- const n = B();
285
- return t[e === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(n.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-right" : "margin-top")) + parseFloat(n.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-left" : "margin-bottom"));
286
- }
287
- function k(t) {
288
- return (Array.isArray(t) ? t : [t]).filter((e) => !!e);
289
- }
290
- function me(t, e) {
291
- e === void 0 && (e = ""), typeof trustedTypes < "u" ? t.innerHTML = trustedTypes.createPolicy("html", {
292
- createHTML: (i) => i
293
- }).createHTML(e) : t.innerHTML = e;
294
- }
295
- let J;
296
- function tt() {
297
- const t = B(), e = W();
298
- return {
299
- smoothScroll: e.documentElement && e.documentElement.style && "scrollBehavior" in e.documentElement.style,
300
- touch: !!("ontouchstart" in t || t.DocumentTouch && e instanceof t.DocumentTouch)
301
- };
302
- }
303
- function Ie() {
304
- return J || (J = tt()), J;
305
- }
306
- let ee;
307
- function it(t) {
308
- let {
309
- userAgent: e
310
- } = t === void 0 ? {} : t;
311
- const i = Ie(), n = B(), s = n.navigator.platform, r = e || n.navigator.userAgent, l = {
312
- ios: !1,
313
- android: !1
314
- }, a = n.screen.width, o = n.screen.height, d = r.match(/(Android);?[\s\/]+([\d.]+)?/);
315
- let u = r.match(/(iPad).*OS\s([\d_]+)/);
316
- const f = r.match(/(iPod)(.*OS\s([\d_]+))?/), p = !u && r.match(/(iPhone\sOS|iOS)\s([\d_]+)/), h = s === "Win32";
317
- let c = s === "MacIntel";
318
- const m = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
319
- return !u && c && i.touch && m.indexOf(`${a}x${o}`) >= 0 && (u = r.match(/(Version)\/([\d.]+)/), u || (u = [0, 1, "13_0_0"]), c = !1), d && !h && (l.os = "android", l.android = !0), (u || p || f) && (l.os = "ios", l.ios = !0), l;
320
- }
321
- function Oe(t) {
322
- return t === void 0 && (t = {}), ee || (ee = it(t)), ee;
323
- }
324
- let te;
325
- function nt() {
326
- const t = B(), e = Oe();
327
- let i = !1;
328
- function n() {
329
- const a = t.navigator.userAgent.toLowerCase();
330
- return a.indexOf("safari") >= 0 && a.indexOf("chrome") < 0 && a.indexOf("android") < 0;
331
- }
332
- if (n()) {
333
- const a = String(t.navigator.userAgent);
334
- if (a.includes("Version/")) {
335
- const [o, d] = a.split("Version/")[1].split(" ")[0].split(".").map((u) => Number(u));
336
- i = o < 16 || o === 16 && d < 2;
337
- }
338
- }
339
- const s = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent), r = n(), l = r || s && e.ios;
340
- return {
341
- isSafari: i || r,
342
- needPerspectiveFix: i,
343
- need3dFix: l,
344
- isWebView: s
345
- };
346
- }
347
- function Le() {
348
- return te || (te = nt()), te;
349
- }
350
- function st(t) {
351
- let {
352
- swiper: e,
353
- on: i,
354
- emit: n
355
- } = t;
356
- const s = B();
357
- let r = null, l = null;
358
- const a = () => {
359
- !e || e.destroyed || !e.initialized || (n("beforeResize"), n("resize"));
360
- }, o = () => {
361
- !e || e.destroyed || !e.initialized || (r = new ResizeObserver((f) => {
362
- l = s.requestAnimationFrame(() => {
363
- const {
364
- width: p,
365
- height: h
366
- } = e;
367
- let c = p, m = h;
368
- f.forEach((y) => {
369
- let {
370
- contentBoxSize: g,
371
- contentRect: w,
372
- target: v
373
- } = y;
374
- v && v !== e.el || (c = w ? w.width : (g[0] || g).inlineSize, m = w ? w.height : (g[0] || g).blockSize);
375
- }), (c !== p || m !== h) && a();
376
- });
377
- }), r.observe(e.el));
378
- }, d = () => {
379
- l && s.cancelAnimationFrame(l), r && r.unobserve && e.el && (r.unobserve(e.el), r = null);
380
- }, u = () => {
381
- !e || e.destroyed || !e.initialized || n("orientationchange");
382
- };
383
- i("init", () => {
384
- if (e.params.resizeObserver && typeof s.ResizeObserver < "u") {
385
- o();
386
- return;
387
- }
388
- s.addEventListener("resize", a), s.addEventListener("orientationchange", u);
389
- }), i("destroy", () => {
390
- d(), s.removeEventListener("resize", a), s.removeEventListener("orientationchange", u);
391
- });
392
- }
393
- function rt(t) {
394
- let {
395
- swiper: e,
396
- extendParams: i,
397
- on: n,
398
- emit: s
399
- } = t;
400
- const r = [], l = B(), a = function(u, f) {
401
- f === void 0 && (f = {});
402
- const p = l.MutationObserver || l.WebkitMutationObserver, h = new p((c) => {
403
- if (e.__preventObserver__) return;
404
- if (c.length === 1) {
405
- s("observerUpdate", c[0]);
406
- return;
407
- }
408
- const m = function() {
409
- s("observerUpdate", c[0]);
410
- };
411
- l.requestAnimationFrame ? l.requestAnimationFrame(m) : l.setTimeout(m, 0);
412
- });
413
- h.observe(u, {
414
- attributes: typeof f.attributes > "u" ? !0 : f.attributes,
415
- childList: e.isElement || (typeof f.childList > "u" ? !0 : f).childList,
416
- characterData: typeof f.characterData > "u" ? !0 : f.characterData
417
- }), r.push(h);
418
- }, o = () => {
419
- if (e.params.observer) {
420
- if (e.params.observeParents) {
421
- const u = et(e.hostEl);
422
- for (let f = 0; f < u.length; f += 1)
423
- a(u[f]);
424
- }
425
- a(e.hostEl, {
426
- childList: e.params.observeSlideChildren
427
- }), a(e.wrapperEl, {
428
- attributes: !1
429
- });
430
- }
431
- }, d = () => {
432
- r.forEach((u) => {
433
- u.disconnect();
434
- }), r.splice(0, r.length);
435
- };
436
- i({
437
- observer: !1,
438
- observeParents: !1,
439
- observeSlideChildren: !1
440
- }), n("init", o), n("destroy", d);
441
- }
442
- var at = {
443
- on(t, e, i) {
444
- const n = this;
445
- if (!n.eventsListeners || n.destroyed || typeof e != "function") return n;
446
- const s = i ? "unshift" : "push";
447
- return t.split(" ").forEach((r) => {
448
- n.eventsListeners[r] || (n.eventsListeners[r] = []), n.eventsListeners[r][s](e);
449
- }), n;
450
- },
451
- once(t, e, i) {
452
- const n = this;
453
- if (!n.eventsListeners || n.destroyed || typeof e != "function") return n;
454
- function s() {
455
- n.off(t, s), s.__emitterProxy && delete s.__emitterProxy;
456
- for (var r = arguments.length, l = new Array(r), a = 0; a < r; a++)
457
- l[a] = arguments[a];
458
- e.apply(n, l);
459
- }
460
- return s.__emitterProxy = e, n.on(t, s, i);
461
- },
462
- onAny(t, e) {
463
- const i = this;
464
- if (!i.eventsListeners || i.destroyed || typeof t != "function") return i;
465
- const n = e ? "unshift" : "push";
466
- return i.eventsAnyListeners.indexOf(t) < 0 && i.eventsAnyListeners[n](t), i;
467
- },
468
- offAny(t) {
469
- const e = this;
470
- if (!e.eventsListeners || e.destroyed || !e.eventsAnyListeners) return e;
471
- const i = e.eventsAnyListeners.indexOf(t);
472
- return i >= 0 && e.eventsAnyListeners.splice(i, 1), e;
473
- },
474
- off(t, e) {
475
- const i = this;
476
- return !i.eventsListeners || i.destroyed || !i.eventsListeners || t.split(" ").forEach((n) => {
477
- typeof e > "u" ? i.eventsListeners[n] = [] : i.eventsListeners[n] && i.eventsListeners[n].forEach((s, r) => {
478
- (s === e || s.__emitterProxy && s.__emitterProxy === e) && i.eventsListeners[n].splice(r, 1);
479
- });
480
- }), i;
481
- },
482
- emit() {
483
- const t = this;
484
- if (!t.eventsListeners || t.destroyed || !t.eventsListeners) return t;
485
- let e, i, n;
486
- for (var s = arguments.length, r = new Array(s), l = 0; l < s; l++)
487
- r[l] = arguments[l];
488
- return typeof r[0] == "string" || Array.isArray(r[0]) ? (e = r[0], i = r.slice(1, r.length), n = t) : (e = r[0].events, i = r[0].data, n = r[0].context || t), i.unshift(n), (Array.isArray(e) ? e : e.split(" ")).forEach((o) => {
489
- t.eventsAnyListeners && t.eventsAnyListeners.length && t.eventsAnyListeners.forEach((d) => {
490
- d.apply(n, [o, ...i]);
491
- }), t.eventsListeners && t.eventsListeners[o] && t.eventsListeners[o].forEach((d) => {
492
- d.apply(n, i);
493
- });
494
- }), t;
495
- }
496
- };
497
- function lt() {
498
- const t = this;
499
- let e, i;
500
- const n = t.el;
501
- typeof t.params.width < "u" && t.params.width !== null ? e = t.params.width : e = n.clientWidth, typeof t.params.height < "u" && t.params.height !== null ? i = t.params.height : i = n.clientHeight, !(e === 0 && t.isHorizontal() || i === 0 && t.isVertical()) && (e = e - parseInt(j(n, "padding-left") || 0, 10) - parseInt(j(n, "padding-right") || 0, 10), i = i - parseInt(j(n, "padding-top") || 0, 10) - parseInt(j(n, "padding-bottom") || 0, 10), Number.isNaN(e) && (e = 0), Number.isNaN(i) && (i = 0), Object.assign(t, {
502
- width: e,
503
- height: i,
504
- size: t.isHorizontal() ? e : i
505
- }));
506
- }
507
- function ot() {
508
- const t = this;
509
- function e(b, P) {
510
- return parseFloat(b.getPropertyValue(t.getDirectionLabel(P)) || 0);
511
- }
512
- const i = t.params, {
513
- wrapperEl: n,
514
- slidesEl: s,
515
- size: r,
516
- rtlTranslate: l,
517
- wrongRTL: a
518
- } = t, o = t.virtual && i.virtual.enabled, d = o ? t.virtual.slides.length : t.slides.length, u = N(s, `.${t.params.slideClass}, swiper-slide`), f = o ? t.virtual.slides.length : u.length;
519
- let p = [];
520
- const h = [], c = [];
521
- let m = i.slidesOffsetBefore;
522
- typeof m == "function" && (m = i.slidesOffsetBefore.call(t));
523
- let y = i.slidesOffsetAfter;
524
- typeof y == "function" && (y = i.slidesOffsetAfter.call(t));
525
- const g = t.snapGrid.length, w = t.slidesGrid.length;
526
- let v = i.spaceBetween, E = -m, T = 0, M = 0;
527
- if (typeof r > "u")
528
- return;
529
- typeof v == "string" && v.indexOf("%") >= 0 ? v = parseFloat(v.replace("%", "")) / 100 * r : typeof v == "string" && (v = parseFloat(v)), t.virtualSize = -v, u.forEach((b) => {
530
- l ? b.style.marginLeft = "" : b.style.marginRight = "", b.style.marginBottom = "", b.style.marginTop = "";
531
- }), i.centeredSlides && i.cssMode && (X(n, "--swiper-centered-offset-before", ""), X(n, "--swiper-centered-offset-after", ""));
532
- const C = i.grid && i.grid.rows > 1 && t.grid;
533
- C ? t.grid.initSlides(u) : t.grid && t.grid.unsetSlides();
534
- let x;
535
- const S = i.slidesPerView === "auto" && i.breakpoints && Object.keys(i.breakpoints).filter((b) => typeof i.breakpoints[b].slidesPerView < "u").length > 0;
536
- for (let b = 0; b < f; b += 1) {
537
- x = 0;
538
- let P;
539
- if (u[b] && (P = u[b]), C && t.grid.updateSlide(b, P, u), !(u[b] && j(P, "display") === "none")) {
540
- if (i.slidesPerView === "auto") {
541
- S && (u[b].style[t.getDirectionLabel("width")] = "");
542
- const O = getComputedStyle(P), L = P.style.transform, F = P.style.webkitTransform;
543
- if (L && (P.style.transform = "none"), F && (P.style.webkitTransform = "none"), i.roundLengths)
544
- x = t.isHorizontal() ? he(P, "width") : he(P, "height");
545
- else {
546
- const H = e(O, "width"), I = e(O, "padding-left"), z = e(O, "padding-right"), A = e(O, "margin-left"), V = e(O, "margin-right"), fe = O.getPropertyValue("box-sizing");
547
- if (fe && fe === "border-box")
548
- x = H + A + V;
549
- else {
550
- const {
551
- clientWidth: Ve,
552
- offsetWidth: ke
553
- } = P;
554
- x = H + I + z + A + V + (ke - Ve);
555
- }
556
- }
557
- L && (P.style.transform = L), F && (P.style.webkitTransform = F), i.roundLengths && (x = Math.floor(x));
558
- } else
559
- x = (r - (i.slidesPerView - 1) * v) / i.slidesPerView, i.roundLengths && (x = Math.floor(x)), u[b] && (u[b].style[t.getDirectionLabel("width")] = `${x}px`);
560
- u[b] && (u[b].swiperSlideSize = x), c.push(x), i.centeredSlides ? (E = E + x / 2 + T / 2 + v, T === 0 && b !== 0 && (E = E - r / 2 - v), b === 0 && (E = E - r / 2 - v), Math.abs(E) < 1 / 1e3 && (E = 0), i.roundLengths && (E = Math.floor(E)), M % i.slidesPerGroup === 0 && p.push(E), h.push(E)) : (i.roundLengths && (E = Math.floor(E)), (M - Math.min(t.params.slidesPerGroupSkip, M)) % t.params.slidesPerGroup === 0 && p.push(E), h.push(E), E = E + x + v), t.virtualSize += x + v, T = x, M += 1;
561
- }
562
- }
563
- if (t.virtualSize = Math.max(t.virtualSize, r) + y, l && a && (i.effect === "slide" || i.effect === "coverflow") && (n.style.width = `${t.virtualSize + v}px`), i.setWrapperSize && (n.style[t.getDirectionLabel("width")] = `${t.virtualSize + v}px`), C && t.grid.updateWrapperSize(x, p), !i.centeredSlides) {
564
- const b = [];
565
- for (let P = 0; P < p.length; P += 1) {
566
- let O = p[P];
567
- i.roundLengths && (O = Math.floor(O)), p[P] <= t.virtualSize - r && b.push(O);
568
- }
569
- p = b, Math.floor(t.virtualSize - r) - Math.floor(p[p.length - 1]) > 1 && p.push(t.virtualSize - r);
570
- }
571
- if (o && i.loop) {
572
- const b = c[0] + v;
573
- if (i.slidesPerGroup > 1) {
574
- const P = Math.ceil((t.virtual.slidesBefore + t.virtual.slidesAfter) / i.slidesPerGroup), O = b * i.slidesPerGroup;
575
- for (let L = 0; L < P; L += 1)
576
- p.push(p[p.length - 1] + O);
577
- }
578
- for (let P = 0; P < t.virtual.slidesBefore + t.virtual.slidesAfter; P += 1)
579
- i.slidesPerGroup === 1 && p.push(p[p.length - 1] + b), h.push(h[h.length - 1] + b), t.virtualSize += b;
580
- }
581
- if (p.length === 0 && (p = [0]), v !== 0) {
582
- const b = t.isHorizontal() && l ? "marginLeft" : t.getDirectionLabel("marginRight");
583
- u.filter((P, O) => !i.cssMode || i.loop ? !0 : O !== u.length - 1).forEach((P) => {
584
- P.style[b] = `${v}px`;
585
- });
586
- }
587
- if (i.centeredSlides && i.centeredSlidesBounds) {
588
- let b = 0;
589
- c.forEach((O) => {
590
- b += O + (v || 0);
591
- }), b -= v;
592
- const P = b > r ? b - r : 0;
593
- p = p.map((O) => O <= 0 ? -m : O > P ? P + y : O);
594
- }
595
- if (i.centerInsufficientSlides) {
596
- let b = 0;
597
- c.forEach((O) => {
598
- b += O + (v || 0);
599
- }), b -= v;
600
- const P = (i.slidesOffsetBefore || 0) + (i.slidesOffsetAfter || 0);
601
- if (b + P < r) {
602
- const O = (r - b - P) / 2;
603
- p.forEach((L, F) => {
604
- p[F] = L - O;
605
- }), h.forEach((L, F) => {
606
- h[F] = L + O;
607
- });
608
- }
609
- }
610
- if (Object.assign(t, {
611
- slides: u,
612
- snapGrid: p,
613
- slidesGrid: h,
614
- slidesSizesGrid: c
615
- }), i.centeredSlides && i.cssMode && !i.centeredSlidesBounds) {
616
- X(n, "--swiper-centered-offset-before", `${-p[0]}px`), X(n, "--swiper-centered-offset-after", `${t.size / 2 - c[c.length - 1] / 2}px`);
617
- const b = -t.snapGrid[0], P = -t.slidesGrid[0];
618
- t.snapGrid = t.snapGrid.map((O) => O + b), t.slidesGrid = t.slidesGrid.map((O) => O + P);
619
- }
620
- if (f !== d && t.emit("slidesLengthChange"), p.length !== g && (t.params.watchOverflow && t.checkOverflow(), t.emit("snapGridLengthChange")), h.length !== w && t.emit("slidesGridLengthChange"), i.watchSlidesProgress && t.updateSlidesOffset(), t.emit("slidesUpdated"), !o && !i.cssMode && (i.effect === "slide" || i.effect === "fade")) {
621
- const b = `${i.containerModifierClass}backface-hidden`, P = t.el.classList.contains(b);
622
- f <= i.maxBackfaceHiddenSlides ? P || t.el.classList.add(b) : P && t.el.classList.remove(b);
623
- }
624
- }
625
- function dt(t) {
626
- const e = this, i = [], n = e.virtual && e.params.virtual.enabled;
627
- let s = 0, r;
628
- typeof t == "number" ? e.setTransition(t) : t === !0 && e.setTransition(e.params.speed);
629
- const l = (a) => n ? e.slides[e.getSlideIndexByData(a)] : e.slides[a];
630
- if (e.params.slidesPerView !== "auto" && e.params.slidesPerView > 1)
631
- if (e.params.centeredSlides)
632
- (e.visibleSlides || []).forEach((a) => {
633
- i.push(a);
634
- });
635
- else
636
- for (r = 0; r < Math.ceil(e.params.slidesPerView); r += 1) {
637
- const a = e.activeIndex + r;
638
- if (a > e.slides.length && !n) break;
639
- i.push(l(a));
640
- }
641
- else
642
- i.push(l(e.activeIndex));
643
- for (r = 0; r < i.length; r += 1)
644
- if (typeof i[r] < "u") {
645
- const a = i[r].offsetHeight;
646
- s = a > s ? a : s;
647
- }
648
- (s || s === 0) && (e.wrapperEl.style.height = `${s}px`);
649
- }
650
- function ut() {
651
- const t = this, e = t.slides, i = t.isElement ? t.isHorizontal() ? t.wrapperEl.offsetLeft : t.wrapperEl.offsetTop : 0;
652
- for (let n = 0; n < e.length; n += 1)
653
- e[n].swiperSlideOffset = (t.isHorizontal() ? e[n].offsetLeft : e[n].offsetTop) - i - t.cssOverflowAdjustment();
654
- }
655
- const ge = (t, e, i) => {
656
- e && !t.classList.contains(i) ? t.classList.add(i) : !e && t.classList.contains(i) && t.classList.remove(i);
657
- };
658
- function ft(t) {
659
- t === void 0 && (t = this && this.translate || 0);
660
- const e = this, i = e.params, {
661
- slides: n,
662
- rtlTranslate: s,
663
- snapGrid: r
664
- } = e;
665
- if (n.length === 0) return;
666
- typeof n[0].swiperSlideOffset > "u" && e.updateSlidesOffset();
667
- let l = -t;
668
- s && (l = t), e.visibleSlidesIndexes = [], e.visibleSlides = [];
669
- let a = i.spaceBetween;
670
- typeof a == "string" && a.indexOf("%") >= 0 ? a = parseFloat(a.replace("%", "")) / 100 * e.size : typeof a == "string" && (a = parseFloat(a));
671
- for (let o = 0; o < n.length; o += 1) {
672
- const d = n[o];
673
- let u = d.swiperSlideOffset;
674
- i.cssMode && i.centeredSlides && (u -= n[0].swiperSlideOffset);
675
- const f = (l + (i.centeredSlides ? e.minTranslate() : 0) - u) / (d.swiperSlideSize + a), p = (l - r[0] + (i.centeredSlides ? e.minTranslate() : 0) - u) / (d.swiperSlideSize + a), h = -(l - u), c = h + e.slidesSizesGrid[o], m = h >= 0 && h <= e.size - e.slidesSizesGrid[o], y = h >= 0 && h < e.size - 1 || c > 1 && c <= e.size || h <= 0 && c >= e.size;
676
- y && (e.visibleSlides.push(d), e.visibleSlidesIndexes.push(o)), ge(d, y, i.slideVisibleClass), ge(d, m, i.slideFullyVisibleClass), d.progress = s ? -f : f, d.originalProgress = s ? -p : p;
677
- }
678
- }
679
- function ct(t) {
680
- const e = this;
681
- if (typeof t > "u") {
682
- const u = e.rtlTranslate ? -1 : 1;
683
- t = e && e.translate && e.translate * u || 0;
684
- }
685
- const i = e.params, n = e.maxTranslate() - e.minTranslate();
686
- let {
687
- progress: s,
688
- isBeginning: r,
689
- isEnd: l,
690
- progressLoop: a
691
- } = e;
692
- const o = r, d = l;
693
- if (n === 0)
694
- s = 0, r = !0, l = !0;
695
- else {
696
- s = (t - e.minTranslate()) / n;
697
- const u = Math.abs(t - e.minTranslate()) < 1, f = Math.abs(t - e.maxTranslate()) < 1;
698
- r = u || s <= 0, l = f || s >= 1, u && (s = 0), f && (s = 1);
699
- }
700
- if (i.loop) {
701
- const u = e.getSlideIndexByData(0), f = e.getSlideIndexByData(e.slides.length - 1), p = e.slidesGrid[u], h = e.slidesGrid[f], c = e.slidesGrid[e.slidesGrid.length - 1], m = Math.abs(t);
702
- m >= p ? a = (m - p) / c : a = (m + c - h) / c, a > 1 && (a -= 1);
703
- }
704
- Object.assign(e, {
705
- progress: s,
706
- progressLoop: a,
707
- isBeginning: r,
708
- isEnd: l
709
- }), (i.watchSlidesProgress || i.centeredSlides && i.autoHeight) && e.updateSlidesProgress(t), r && !o && e.emit("reachBeginning toEdge"), l && !d && e.emit("reachEnd toEdge"), (o && !r || d && !l) && e.emit("fromEdge"), e.emit("progress", s);
710
- }
711
- const ie = (t, e, i) => {
712
- e && !t.classList.contains(i) ? t.classList.add(i) : !e && t.classList.contains(i) && t.classList.remove(i);
713
- };
714
- function pt() {
715
- const t = this, {
716
- slides: e,
717
- params: i,
718
- slidesEl: n,
719
- activeIndex: s
720
- } = t, r = t.virtual && i.virtual.enabled, l = t.grid && i.grid && i.grid.rows > 1, a = (f) => N(n, `.${i.slideClass}${f}, swiper-slide${f}`)[0];
721
- let o, d, u;
722
- if (r)
723
- if (i.loop) {
724
- let f = s - t.virtual.slidesBefore;
725
- f < 0 && (f = t.virtual.slides.length + f), f >= t.virtual.slides.length && (f -= t.virtual.slides.length), o = a(`[data-swiper-slide-index="${f}"]`);
726
- } else
727
- o = a(`[data-swiper-slide-index="${s}"]`);
728
- else
729
- l ? (o = e.find((f) => f.column === s), u = e.find((f) => f.column === s + 1), d = e.find((f) => f.column === s - 1)) : o = e[s];
730
- o && (l || (u = Je(o, `.${i.slideClass}, swiper-slide`)[0], i.loop && !u && (u = e[0]), d = Ze(o, `.${i.slideClass}, swiper-slide`)[0], i.loop && !d === 0 && (d = e[e.length - 1]))), e.forEach((f) => {
731
- ie(f, f === o, i.slideActiveClass), ie(f, f === u, i.slideNextClass), ie(f, f === d, i.slidePrevClass);
732
- }), t.emitSlidesClasses();
733
- }
734
- const U = (t, e) => {
735
- if (!t || t.destroyed || !t.params) return;
736
- const i = () => t.isElement ? "swiper-slide" : `.${t.params.slideClass}`, n = e.closest(i());
737
- if (n) {
738
- let s = n.querySelector(`.${t.params.lazyPreloaderClass}`);
739
- !s && t.isElement && (n.shadowRoot ? s = n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`) : requestAnimationFrame(() => {
740
- n.shadowRoot && (s = n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`), s && s.remove());
741
- })), s && s.remove();
742
- }
743
- }, ne = (t, e) => {
744
- if (!t.slides[e]) return;
745
- const i = t.slides[e].querySelector('[loading="lazy"]');
746
- i && i.removeAttribute("loading");
747
- }, le = (t) => {
748
- if (!t || t.destroyed || !t.params) return;
749
- let e = t.params.lazyPreloadPrevNext;
750
- const i = t.slides.length;
751
- if (!i || !e || e < 0) return;
752
- e = Math.min(e, i);
753
- const n = t.params.slidesPerView === "auto" ? t.slidesPerViewDynamic() : Math.ceil(t.params.slidesPerView), s = t.activeIndex;
754
- if (t.params.grid && t.params.grid.rows > 1) {
755
- const l = s, a = [l - e];
756
- a.push(...Array.from({
757
- length: e
758
- }).map((o, d) => l + n + d)), t.slides.forEach((o, d) => {
759
- a.includes(o.column) && ne(t, d);
760
- });
761
- return;
762
- }
763
- const r = s + n - 1;
764
- if (t.params.rewind || t.params.loop)
765
- for (let l = s - e; l <= r + e; l += 1) {
766
- const a = (l % i + i) % i;
767
- (a < s || a > r) && ne(t, a);
768
- }
769
- else
770
- for (let l = Math.max(s - e, 0); l <= Math.min(r + e, i - 1); l += 1)
771
- l !== s && (l > r || l < s) && ne(t, l);
772
- };
773
- function ht(t) {
774
- const {
775
- slidesGrid: e,
776
- params: i
777
- } = t, n = t.rtlTranslate ? t.translate : -t.translate;
778
- let s;
779
- for (let r = 0; r < e.length; r += 1)
780
- typeof e[r + 1] < "u" ? n >= e[r] && n < e[r + 1] - (e[r + 1] - e[r]) / 2 ? s = r : n >= e[r] && n < e[r + 1] && (s = r + 1) : n >= e[r] && (s = r);
781
- return i.normalizeSlideIndex && (s < 0 || typeof s > "u") && (s = 0), s;
782
- }
783
- function mt(t) {
784
- const e = this, i = e.rtlTranslate ? e.translate : -e.translate, {
785
- snapGrid: n,
786
- params: s,
787
- activeIndex: r,
788
- realIndex: l,
789
- snapIndex: a
790
- } = e;
791
- let o = t, d;
792
- const u = (h) => {
793
- let c = h - e.virtual.slidesBefore;
794
- return c < 0 && (c = e.virtual.slides.length + c), c >= e.virtual.slides.length && (c -= e.virtual.slides.length), c;
795
- };
796
- if (typeof o > "u" && (o = ht(e)), n.indexOf(i) >= 0)
797
- d = n.indexOf(i);
798
- else {
799
- const h = Math.min(s.slidesPerGroupSkip, o);
800
- d = h + Math.floor((o - h) / s.slidesPerGroup);
801
- }
802
- if (d >= n.length && (d = n.length - 1), o === r && !e.params.loop) {
803
- d !== a && (e.snapIndex = d, e.emit("snapIndexChange"));
804
- return;
805
- }
806
- if (o === r && e.params.loop && e.virtual && e.params.virtual.enabled) {
807
- e.realIndex = u(o);
808
- return;
809
- }
810
- const f = e.grid && s.grid && s.grid.rows > 1;
811
- let p;
812
- if (e.virtual && s.virtual.enabled && s.loop)
813
- p = u(o);
814
- else if (f) {
815
- const h = e.slides.find((m) => m.column === o);
816
- let c = parseInt(h.getAttribute("data-swiper-slide-index"), 10);
817
- Number.isNaN(c) && (c = Math.max(e.slides.indexOf(h), 0)), p = Math.floor(c / s.grid.rows);
818
- } else if (e.slides[o]) {
819
- const h = e.slides[o].getAttribute("data-swiper-slide-index");
820
- h ? p = parseInt(h, 10) : p = o;
821
- } else
822
- p = o;
823
- Object.assign(e, {
824
- previousSnapIndex: a,
825
- snapIndex: d,
826
- previousRealIndex: l,
827
- realIndex: p,
828
- previousIndex: r,
829
- activeIndex: o
830
- }), e.initialized && le(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (l !== p && e.emit("realIndexChange"), e.emit("slideChange"));
831
- }
832
- function gt(t, e) {
833
- const i = this, n = i.params;
834
- let s = t.closest(`.${n.slideClass}, swiper-slide`);
835
- !s && i.isElement && e && e.length > 1 && e.includes(t) && [...e.slice(e.indexOf(t) + 1, e.length)].forEach((a) => {
836
- !s && a.matches && a.matches(`.${n.slideClass}, swiper-slide`) && (s = a);
837
- });
838
- let r = !1, l;
839
- if (s) {
840
- for (let a = 0; a < i.slides.length; a += 1)
841
- if (i.slides[a] === s) {
842
- r = !0, l = a;
843
- break;
844
- }
845
- }
846
- if (s && r)
847
- i.clickedSlide = s, i.virtual && i.params.virtual.enabled ? i.clickedIndex = parseInt(s.getAttribute("data-swiper-slide-index"), 10) : i.clickedIndex = l;
848
- else {
849
- i.clickedSlide = void 0, i.clickedIndex = void 0;
850
- return;
851
- }
852
- n.slideToClickedSlide && i.clickedIndex !== void 0 && i.clickedIndex !== i.activeIndex && i.slideToClickedSlide();
853
- }
854
- var vt = {
855
- updateSize: lt,
856
- updateSlides: ot,
857
- updateAutoHeight: dt,
858
- updateSlidesOffset: ut,
859
- updateSlidesProgress: ft,
860
- updateProgress: ct,
861
- updateSlidesClasses: pt,
862
- updateActiveIndex: mt,
863
- updateClickedSlide: gt
864
- };
865
- function wt(t) {
866
- t === void 0 && (t = this.isHorizontal() ? "x" : "y");
867
- const e = this, {
868
- params: i,
869
- rtlTranslate: n,
870
- translate: s,
871
- wrapperEl: r
872
- } = e;
873
- if (i.virtualTranslate)
874
- return n ? -s : s;
875
- if (i.cssMode)
876
- return s;
877
- let l = Xe(r, t);
878
- return l += e.cssOverflowAdjustment(), n && (l = -l), l || 0;
879
- }
880
- function St(t, e) {
881
- const i = this, {
882
- rtlTranslate: n,
883
- params: s,
884
- wrapperEl: r,
885
- progress: l
886
- } = i;
887
- let a = 0, o = 0;
888
- const d = 0;
889
- i.isHorizontal() ? a = n ? -t : t : o = t, s.roundLengths && (a = Math.floor(a), o = Math.floor(o)), i.previousTranslate = i.translate, i.translate = i.isHorizontal() ? a : o, s.cssMode ? r[i.isHorizontal() ? "scrollLeft" : "scrollTop"] = i.isHorizontal() ? -a : -o : s.virtualTranslate || (i.isHorizontal() ? a -= i.cssOverflowAdjustment() : o -= i.cssOverflowAdjustment(), r.style.transform = `translate3d(${a}px, ${o}px, ${d}px)`);
890
- let u;
891
- const f = i.maxTranslate() - i.minTranslate();
892
- f === 0 ? u = 0 : u = (t - i.minTranslate()) / f, u !== l && i.updateProgress(t), i.emit("setTranslate", i.translate, e);
893
- }
894
- function bt() {
895
- return -this.snapGrid[0];
896
- }
897
- function yt() {
898
- return -this.snapGrid[this.snapGrid.length - 1];
899
- }
900
- function Tt(t, e, i, n, s) {
901
- t === void 0 && (t = 0), e === void 0 && (e = this.params.speed), i === void 0 && (i = !0), n === void 0 && (n = !0);
902
- const r = this, {
903
- params: l,
904
- wrapperEl: a
905
- } = r;
906
- if (r.animating && l.preventInteractionOnTransition)
907
- return !1;
908
- const o = r.minTranslate(), d = r.maxTranslate();
909
- let u;
910
- if (n && t > o ? u = o : n && t < d ? u = d : u = t, r.updateProgress(u), l.cssMode) {
911
- const f = r.isHorizontal();
912
- if (e === 0)
913
- a[f ? "scrollLeft" : "scrollTop"] = -u;
914
- else {
915
- if (!r.support.smoothScroll)
916
- return Me({
917
- swiper: r,
918
- targetPosition: -u,
919
- side: f ? "left" : "top"
920
- }), !0;
921
- a.scrollTo({
922
- [f ? "left" : "top"]: -u,
923
- behavior: "smooth"
924
- });
925
- }
926
- return !0;
927
- }
928
- return e === 0 ? (r.setTransition(0), r.setTranslate(u), i && (r.emit("beforeTransitionStart", e, s), r.emit("transitionEnd"))) : (r.setTransition(e), r.setTranslate(u), i && (r.emit("beforeTransitionStart", e, s), r.emit("transitionStart")), r.animating || (r.animating = !0, r.onTranslateToWrapperTransitionEnd || (r.onTranslateToWrapperTransitionEnd = function(p) {
929
- !r || r.destroyed || p.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onTranslateToWrapperTransitionEnd), r.onTranslateToWrapperTransitionEnd = null, delete r.onTranslateToWrapperTransitionEnd, r.animating = !1, i && r.emit("transitionEnd"));
930
- }), r.wrapperEl.addEventListener("transitionend", r.onTranslateToWrapperTransitionEnd))), !0;
931
- }
932
- var xt = {
933
- getTranslate: wt,
934
- setTranslate: St,
935
- minTranslate: bt,
936
- maxTranslate: yt,
937
- translateTo: Tt
938
- };
939
- function Et(t, e) {
940
- const i = this;
941
- i.params.cssMode || (i.wrapperEl.style.transitionDuration = `${t}ms`, i.wrapperEl.style.transitionDelay = t === 0 ? "0ms" : ""), i.emit("setTransition", t, e);
942
- }
943
- function ze(t) {
944
- let {
945
- swiper: e,
946
- runCallbacks: i,
947
- direction: n,
948
- step: s
949
- } = t;
950
- const {
951
- activeIndex: r,
952
- previousIndex: l
953
- } = e;
954
- let a = n;
955
- a || (r > l ? a = "next" : r < l ? a = "prev" : a = "reset"), e.emit(`transition${s}`), i && a === "reset" ? e.emit(`slideResetTransition${s}`) : i && r !== l && (e.emit(`slideChangeTransition${s}`), a === "next" ? e.emit(`slideNextTransition${s}`) : e.emit(`slidePrevTransition${s}`));
956
- }
957
- function Pt(t, e) {
958
- t === void 0 && (t = !0);
959
- const i = this, {
960
- params: n
961
- } = i;
962
- n.cssMode || (n.autoHeight && i.updateAutoHeight(), ze({
963
- swiper: i,
964
- runCallbacks: t,
965
- direction: e,
966
- step: "Start"
967
- }));
968
- }
969
- function Ct(t, e) {
970
- t === void 0 && (t = !0);
971
- const i = this, {
972
- params: n
973
- } = i;
974
- i.animating = !1, !n.cssMode && (i.setTransition(0), ze({
975
- swiper: i,
976
- runCallbacks: t,
977
- direction: e,
978
- step: "End"
979
- }));
980
- }
981
- var Mt = {
982
- setTransition: Et,
983
- transitionStart: Pt,
984
- transitionEnd: Ct
985
- };
986
- function It(t, e, i, n, s) {
987
- t === void 0 && (t = 0), i === void 0 && (i = !0), typeof t == "string" && (t = parseInt(t, 10));
988
- const r = this;
989
- let l = t;
990
- l < 0 && (l = 0);
991
- const {
992
- params: a,
993
- snapGrid: o,
994
- slidesGrid: d,
995
- previousIndex: u,
996
- activeIndex: f,
997
- rtlTranslate: p,
998
- wrapperEl: h,
999
- enabled: c
1000
- } = r;
1001
- if (!c && !n && !s || r.destroyed || r.animating && a.preventInteractionOnTransition)
1002
- return !1;
1003
- typeof e > "u" && (e = r.params.speed);
1004
- const m = Math.min(r.params.slidesPerGroupSkip, l);
1005
- let y = m + Math.floor((l - m) / r.params.slidesPerGroup);
1006
- y >= o.length && (y = o.length - 1);
1007
- const g = -o[y];
1008
- if (a.normalizeSlideIndex)
1009
- for (let C = 0; C < d.length; C += 1) {
1010
- const x = -Math.floor(g * 100), S = Math.floor(d[C] * 100), b = Math.floor(d[C + 1] * 100);
1011
- typeof d[C + 1] < "u" ? x >= S && x < b - (b - S) / 2 ? l = C : x >= S && x < b && (l = C + 1) : x >= S && (l = C);
1012
- }
1013
- if (r.initialized && l !== f && (!r.allowSlideNext && (p ? g > r.translate && g > r.minTranslate() : g < r.translate && g < r.minTranslate()) || !r.allowSlidePrev && g > r.translate && g > r.maxTranslate() && (f || 0) !== l))
1014
- return !1;
1015
- l !== (u || 0) && i && r.emit("beforeSlideChangeStart"), r.updateProgress(g);
1016
- let w;
1017
- l > f ? w = "next" : l < f ? w = "prev" : w = "reset";
1018
- const v = r.virtual && r.params.virtual.enabled;
1019
- if (!(v && s) && (p && -g === r.translate || !p && g === r.translate))
1020
- return r.updateActiveIndex(l), a.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), a.effect !== "slide" && r.setTranslate(g), w !== "reset" && (r.transitionStart(i, w), r.transitionEnd(i, w)), !1;
1021
- if (a.cssMode) {
1022
- const C = r.isHorizontal(), x = p ? g : -g;
1023
- if (e === 0)
1024
- v && (r.wrapperEl.style.scrollSnapType = "none", r._immediateVirtual = !0), v && !r._cssModeVirtualInitialSet && r.params.initialSlide > 0 ? (r._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
1025
- h[C ? "scrollLeft" : "scrollTop"] = x;
1026
- })) : h[C ? "scrollLeft" : "scrollTop"] = x, v && requestAnimationFrame(() => {
1027
- r.wrapperEl.style.scrollSnapType = "", r._immediateVirtual = !1;
1028
- });
1029
- else {
1030
- if (!r.support.smoothScroll)
1031
- return Me({
1032
- swiper: r,
1033
- targetPosition: x,
1034
- side: C ? "left" : "top"
1035
- }), !0;
1036
- h.scrollTo({
1037
- [C ? "left" : "top"]: x,
1038
- behavior: "smooth"
1039
- });
1040
- }
1041
- return !0;
1042
- }
1043
- const M = Le().isSafari;
1044
- return v && !s && M && r.isElement && r.virtual.update(!1, !1, l), r.setTransition(e), r.setTranslate(g), r.updateActiveIndex(l), r.updateSlidesClasses(), r.emit("beforeTransitionStart", e, n), r.transitionStart(i, w), e === 0 ? r.transitionEnd(i, w) : r.animating || (r.animating = !0, r.onSlideToWrapperTransitionEnd || (r.onSlideToWrapperTransitionEnd = function(x) {
1045
- !r || r.destroyed || x.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.onSlideToWrapperTransitionEnd = null, delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(i, w));
1046
- }), r.wrapperEl.addEventListener("transitionend", r.onSlideToWrapperTransitionEnd)), !0;
1047
- }
1048
- function Ot(t, e, i, n) {
1049
- t === void 0 && (t = 0), i === void 0 && (i = !0), typeof t == "string" && (t = parseInt(t, 10));
1050
- const s = this;
1051
- if (s.destroyed) return;
1052
- typeof e > "u" && (e = s.params.speed);
1053
- const r = s.grid && s.params.grid && s.params.grid.rows > 1;
1054
- let l = t;
1055
- if (s.params.loop)
1056
- if (s.virtual && s.params.virtual.enabled)
1057
- l = l + s.virtual.slidesBefore;
1058
- else {
1059
- let a;
1060
- if (r) {
1061
- const p = l * s.params.grid.rows;
1062
- a = s.slides.find((h) => h.getAttribute("data-swiper-slide-index") * 1 === p).column;
1063
- } else
1064
- a = s.getSlideIndexByData(l);
1065
- const o = r ? Math.ceil(s.slides.length / s.params.grid.rows) : s.slides.length, {
1066
- centeredSlides: d
1067
- } = s.params;
1068
- let u = s.params.slidesPerView;
1069
- u === "auto" ? u = s.slidesPerViewDynamic() : (u = Math.ceil(parseFloat(s.params.slidesPerView, 10)), d && u % 2 === 0 && (u = u + 1));
1070
- let f = o - a < u;
1071
- if (d && (f = f || a < Math.ceil(u / 2)), n && d && s.params.slidesPerView !== "auto" && !r && (f = !1), f) {
1072
- const p = d ? a < s.activeIndex ? "prev" : "next" : a - s.activeIndex - 1 < s.params.slidesPerView ? "next" : "prev";
1073
- s.loopFix({
1074
- direction: p,
1075
- slideTo: !0,
1076
- activeSlideIndex: p === "next" ? a + 1 : a - o + 1,
1077
- slideRealIndex: p === "next" ? s.realIndex : void 0
1078
- });
1079
- }
1080
- if (r) {
1081
- const p = l * s.params.grid.rows;
1082
- l = s.slides.find((h) => h.getAttribute("data-swiper-slide-index") * 1 === p).column;
1083
- } else
1084
- l = s.getSlideIndexByData(l);
1085
- }
1086
- return requestAnimationFrame(() => {
1087
- s.slideTo(l, e, i, n);
1088
- }), s;
1089
- }
1090
- function Lt(t, e, i) {
1091
- e === void 0 && (e = !0);
1092
- const n = this, {
1093
- enabled: s,
1094
- params: r,
1095
- animating: l
1096
- } = n;
1097
- if (!s || n.destroyed) return n;
1098
- typeof t > "u" && (t = n.params.speed);
1099
- let a = r.slidesPerGroup;
1100
- r.slidesPerView === "auto" && r.slidesPerGroup === 1 && r.slidesPerGroupAuto && (a = Math.max(n.slidesPerViewDynamic("current", !0), 1));
1101
- const o = n.activeIndex < r.slidesPerGroupSkip ? 1 : a, d = n.virtual && r.virtual.enabled;
1102
- if (r.loop) {
1103
- if (l && !d && r.loopPreventsSliding) return !1;
1104
- if (n.loopFix({
1105
- direction: "next"
1106
- }), n._clientLeft = n.wrapperEl.clientLeft, n.activeIndex === n.slides.length - 1 && r.cssMode)
1107
- return requestAnimationFrame(() => {
1108
- n.slideTo(n.activeIndex + o, t, e, i);
1109
- }), !0;
1110
- }
1111
- return r.rewind && n.isEnd ? n.slideTo(0, t, e, i) : n.slideTo(n.activeIndex + o, t, e, i);
1112
- }
1113
- function zt(t, e, i) {
1114
- e === void 0 && (e = !0);
1115
- const n = this, {
1116
- params: s,
1117
- snapGrid: r,
1118
- slidesGrid: l,
1119
- rtlTranslate: a,
1120
- enabled: o,
1121
- animating: d
1122
- } = n;
1123
- if (!o || n.destroyed) return n;
1124
- typeof t > "u" && (t = n.params.speed);
1125
- const u = n.virtual && s.virtual.enabled;
1126
- if (s.loop) {
1127
- if (d && !u && s.loopPreventsSliding) return !1;
1128
- n.loopFix({
1129
- direction: "prev"
1130
- }), n._clientLeft = n.wrapperEl.clientLeft;
1131
- }
1132
- const f = a ? n.translate : -n.translate;
1133
- function p(w) {
1134
- return w < 0 ? -Math.floor(Math.abs(w)) : Math.floor(w);
1135
- }
1136
- const h = p(f), c = r.map((w) => p(w)), m = s.freeMode && s.freeMode.enabled;
1137
- let y = r[c.indexOf(h) - 1];
1138
- if (typeof y > "u" && (s.cssMode || m)) {
1139
- let w;
1140
- r.forEach((v, E) => {
1141
- h >= v && (w = E);
1142
- }), typeof w < "u" && (y = m ? r[w] : r[w > 0 ? w - 1 : w]);
1143
- }
1144
- let g = 0;
1145
- if (typeof y < "u" && (g = l.indexOf(y), g < 0 && (g = n.activeIndex - 1), s.slidesPerView === "auto" && s.slidesPerGroup === 1 && s.slidesPerGroupAuto && (g = g - n.slidesPerViewDynamic("previous", !0) + 1, g = Math.max(g, 0))), s.rewind && n.isBeginning) {
1146
- const w = n.params.virtual && n.params.virtual.enabled && n.virtual ? n.virtual.slides.length - 1 : n.slides.length - 1;
1147
- return n.slideTo(w, t, e, i);
1148
- } else if (s.loop && n.activeIndex === 0 && s.cssMode)
1149
- return requestAnimationFrame(() => {
1150
- n.slideTo(g, t, e, i);
1151
- }), !0;
1152
- return n.slideTo(g, t, e, i);
1153
- }
1154
- function Bt(t, e, i) {
1155
- e === void 0 && (e = !0);
1156
- const n = this;
1157
- if (!n.destroyed)
1158
- return typeof t > "u" && (t = n.params.speed), n.slideTo(n.activeIndex, t, e, i);
1159
- }
1160
- function At(t, e, i, n) {
1161
- e === void 0 && (e = !0), n === void 0 && (n = 0.5);
1162
- const s = this;
1163
- if (s.destroyed) return;
1164
- typeof t > "u" && (t = s.params.speed);
1165
- let r = s.activeIndex;
1166
- const l = Math.min(s.params.slidesPerGroupSkip, r), a = l + Math.floor((r - l) / s.params.slidesPerGroup), o = s.rtlTranslate ? s.translate : -s.translate;
1167
- if (o >= s.snapGrid[a]) {
1168
- const d = s.snapGrid[a], u = s.snapGrid[a + 1];
1169
- o - d > (u - d) * n && (r += s.params.slidesPerGroup);
1170
- } else {
1171
- const d = s.snapGrid[a - 1], u = s.snapGrid[a];
1172
- o - d <= (u - d) * n && (r -= s.params.slidesPerGroup);
1173
- }
1174
- return r = Math.max(r, 0), r = Math.min(r, s.slidesGrid.length - 1), s.slideTo(r, t, e, i);
1175
- }
1176
- function _t() {
1177
- const t = this;
1178
- if (t.destroyed) return;
1179
- const {
1180
- params: e,
1181
- slidesEl: i
1182
- } = t, n = e.slidesPerView === "auto" ? t.slidesPerViewDynamic() : e.slidesPerView;
1183
- let s = t.getSlideIndexWhenGrid(t.clickedIndex), r;
1184
- const l = t.isElement ? "swiper-slide" : `.${e.slideClass}`, a = t.grid && t.params.grid && t.params.grid.rows > 1;
1185
- if (e.loop) {
1186
- if (t.animating) return;
1187
- r = parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"), 10), e.centeredSlides ? t.slideToLoop(r) : s > (a ? (t.slides.length - n) / 2 - (t.params.grid.rows - 1) : t.slides.length - n) ? (t.loopFix(), s = t.getSlideIndex(N(i, `${l}[data-swiper-slide-index="${r}"]`)[0]), Ce(() => {
1188
- t.slideTo(s);
1189
- })) : t.slideTo(s);
1190
- } else
1191
- t.slideTo(s);
1192
- }
1193
- var Gt = {
1194
- slideTo: It,
1195
- slideToLoop: Ot,
1196
- slideNext: Lt,
1197
- slidePrev: zt,
1198
- slideReset: Bt,
1199
- slideToClosest: At,
1200
- slideToClickedSlide: _t
1201
- };
1202
- function Dt(t, e) {
1203
- const i = this, {
1204
- params: n,
1205
- slidesEl: s
1206
- } = i;
1207
- if (!n.loop || i.virtual && i.params.virtual.enabled) return;
1208
- const r = () => {
1209
- N(s, `.${n.slideClass}, swiper-slide`).forEach((h, c) => {
1210
- h.setAttribute("data-swiper-slide-index", c);
1211
- });
1212
- }, l = () => {
1213
- const p = N(s, `.${n.slideBlankClass}`);
1214
- p.forEach((h) => {
1215
- h.remove();
1216
- }), p.length > 0 && (i.recalcSlides(), i.updateSlides());
1217
- }, a = i.grid && n.grid && n.grid.rows > 1;
1218
- n.loopAddBlankSlides && (n.slidesPerGroup > 1 || a) && l();
1219
- const o = n.slidesPerGroup * (a ? n.grid.rows : 1), d = i.slides.length % o !== 0, u = a && i.slides.length % n.grid.rows !== 0, f = (p) => {
1220
- for (let h = 0; h < p; h += 1) {
1221
- const c = i.isElement ? Z("swiper-slide", [n.slideBlankClass]) : Z("div", [n.slideClass, n.slideBlankClass]);
1222
- i.slidesEl.append(c);
1223
- }
1224
- };
1225
- if (d) {
1226
- if (n.loopAddBlankSlides) {
1227
- const p = o - i.slides.length % o;
1228
- f(p), i.recalcSlides(), i.updateSlides();
1229
- } else
1230
- Q("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
1231
- r();
1232
- } else if (u) {
1233
- if (n.loopAddBlankSlides) {
1234
- const p = n.grid.rows - i.slides.length % n.grid.rows;
1235
- f(p), i.recalcSlides(), i.updateSlides();
1236
- } else
1237
- Q("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
1238
- r();
1239
- } else
1240
- r();
1241
- i.loopFix({
1242
- slideRealIndex: t,
1243
- direction: n.centeredSlides ? void 0 : "next",
1244
- initial: e
1245
- });
1246
- }
1247
- function Nt(t) {
1248
- let {
1249
- slideRealIndex: e,
1250
- slideTo: i = !0,
1251
- direction: n,
1252
- setTranslate: s,
1253
- activeSlideIndex: r,
1254
- initial: l,
1255
- byController: a,
1256
- byMousewheel: o
1257
- } = t === void 0 ? {} : t;
1258
- const d = this;
1259
- if (!d.params.loop) return;
1260
- d.emit("beforeLoopFix");
1261
- const {
1262
- slides: u,
1263
- allowSlidePrev: f,
1264
- allowSlideNext: p,
1265
- slidesEl: h,
1266
- params: c
1267
- } = d, {
1268
- centeredSlides: m,
1269
- initialSlide: y
1270
- } = c;
1271
- if (d.allowSlidePrev = !0, d.allowSlideNext = !0, d.virtual && c.virtual.enabled) {
1272
- i && (!c.centeredSlides && d.snapIndex === 0 ? d.slideTo(d.virtual.slides.length, 0, !1, !0) : c.centeredSlides && d.snapIndex < c.slidesPerView ? d.slideTo(d.virtual.slides.length + d.snapIndex, 0, !1, !0) : d.snapIndex === d.snapGrid.length - 1 && d.slideTo(d.virtual.slidesBefore, 0, !1, !0)), d.allowSlidePrev = f, d.allowSlideNext = p, d.emit("loopFix");
1273
- return;
1274
- }
1275
- let g = c.slidesPerView;
1276
- g === "auto" ? g = d.slidesPerViewDynamic() : (g = Math.ceil(parseFloat(c.slidesPerView, 10)), m && g % 2 === 0 && (g = g + 1));
1277
- const w = c.slidesPerGroupAuto ? g : c.slidesPerGroup;
1278
- let v = m ? Math.max(w, Math.ceil(g / 2)) : w;
1279
- v % w !== 0 && (v += w - v % w), v += c.loopAdditionalSlides, d.loopedSlides = v;
1280
- const E = d.grid && c.grid && c.grid.rows > 1;
1281
- u.length < g + v || d.params.effect === "cards" && u.length < g + v * 2 ? Q("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : E && c.grid.fill === "row" && Q("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
1282
- const T = [], M = [], C = E ? Math.ceil(u.length / c.grid.rows) : u.length, x = l && C - y < g && !m;
1283
- let S = x ? y : d.activeIndex;
1284
- typeof r > "u" ? r = d.getSlideIndex(u.find((I) => I.classList.contains(c.slideActiveClass))) : S = r;
1285
- const b = n === "next" || !n, P = n === "prev" || !n;
1286
- let O = 0, L = 0;
1287
- const H = (E ? u[r].column : r) + (m && typeof s > "u" ? -g / 2 + 0.5 : 0);
1288
- if (H < v) {
1289
- O = Math.max(v - H, w);
1290
- for (let I = 0; I < v - H; I += 1) {
1291
- const z = I - Math.floor(I / C) * C;
1292
- if (E) {
1293
- const A = C - z - 1;
1294
- for (let V = u.length - 1; V >= 0; V -= 1)
1295
- u[V].column === A && T.push(V);
1296
- } else
1297
- T.push(C - z - 1);
1298
- }
1299
- } else if (H + g > C - v) {
1300
- L = Math.max(H - (C - v * 2), w), x && (L = Math.max(L, g - C + y + 1));
1301
- for (let I = 0; I < L; I += 1) {
1302
- const z = I - Math.floor(I / C) * C;
1303
- E ? u.forEach((A, V) => {
1304
- A.column === z && M.push(V);
1305
- }) : M.push(z);
1306
- }
1307
- }
1308
- if (d.__preventObserver__ = !0, requestAnimationFrame(() => {
1309
- d.__preventObserver__ = !1;
1310
- }), d.params.effect === "cards" && u.length < g + v * 2 && (M.includes(r) && M.splice(M.indexOf(r), 1), T.includes(r) && T.splice(T.indexOf(r), 1)), P && T.forEach((I) => {
1311
- u[I].swiperLoopMoveDOM = !0, h.prepend(u[I]), u[I].swiperLoopMoveDOM = !1;
1312
- }), b && M.forEach((I) => {
1313
- u[I].swiperLoopMoveDOM = !0, h.append(u[I]), u[I].swiperLoopMoveDOM = !1;
1314
- }), d.recalcSlides(), c.slidesPerView === "auto" ? d.updateSlides() : E && (T.length > 0 && P || M.length > 0 && b) && d.slides.forEach((I, z) => {
1315
- d.grid.updateSlide(z, I, d.slides);
1316
- }), c.watchSlidesProgress && d.updateSlidesOffset(), i) {
1317
- if (T.length > 0 && P) {
1318
- if (typeof e > "u") {
1319
- const I = d.slidesGrid[S], A = d.slidesGrid[S + O] - I;
1320
- o ? d.setTranslate(d.translate - A) : (d.slideTo(S + Math.ceil(O), 0, !1, !0), s && (d.touchEventsData.startTranslate = d.touchEventsData.startTranslate - A, d.touchEventsData.currentTranslate = d.touchEventsData.currentTranslate - A));
1321
- } else if (s) {
1322
- const I = E ? T.length / c.grid.rows : T.length;
1323
- d.slideTo(d.activeIndex + I, 0, !1, !0), d.touchEventsData.currentTranslate = d.translate;
1324
- }
1325
- } else if (M.length > 0 && b)
1326
- if (typeof e > "u") {
1327
- const I = d.slidesGrid[S], A = d.slidesGrid[S - L] - I;
1328
- o ? d.setTranslate(d.translate - A) : (d.slideTo(S - L, 0, !1, !0), s && (d.touchEventsData.startTranslate = d.touchEventsData.startTranslate - A, d.touchEventsData.currentTranslate = d.touchEventsData.currentTranslate - A));
1329
- } else {
1330
- const I = E ? M.length / c.grid.rows : M.length;
1331
- d.slideTo(d.activeIndex - I, 0, !1, !0);
1332
- }
1333
- }
1334
- if (d.allowSlidePrev = f, d.allowSlideNext = p, d.controller && d.controller.control && !a) {
1335
- const I = {
1336
- slideRealIndex: e,
1337
- direction: n,
1338
- setTranslate: s,
1339
- activeSlideIndex: r,
1340
- byController: !0
1341
- };
1342
- Array.isArray(d.controller.control) ? d.controller.control.forEach((z) => {
1343
- !z.destroyed && z.params.loop && z.loopFix({
1344
- ...I,
1345
- slideTo: z.params.slidesPerView === c.slidesPerView ? i : !1
1346
- });
1347
- }) : d.controller.control instanceof d.constructor && d.controller.control.params.loop && d.controller.control.loopFix({
1348
- ...I,
1349
- slideTo: d.controller.control.params.slidesPerView === c.slidesPerView ? i : !1
1350
- });
1351
- }
1352
- d.emit("loopFix");
1353
- }
1354
- function Vt() {
1355
- const t = this, {
1356
- params: e,
1357
- slidesEl: i
1358
- } = t;
1359
- if (!e.loop || !i || t.virtual && t.params.virtual.enabled) return;
1360
- t.recalcSlides();
1361
- const n = [];
1362
- t.slides.forEach((s) => {
1363
- const r = typeof s.swiperSlideIndex > "u" ? s.getAttribute("data-swiper-slide-index") * 1 : s.swiperSlideIndex;
1364
- n[r] = s;
1365
- }), t.slides.forEach((s) => {
1366
- s.removeAttribute("data-swiper-slide-index");
1367
- }), n.forEach((s) => {
1368
- i.append(s);
1369
- }), t.recalcSlides(), t.slideTo(t.realIndex, 0);
1370
- }
1371
- var kt = {
1372
- loopCreate: Dt,
1373
- loopFix: Nt,
1374
- loopDestroy: Vt
1375
- };
1376
- function Rt(t) {
1377
- const e = this;
1378
- if (!e.params.simulateTouch || e.params.watchOverflow && e.isLocked || e.params.cssMode) return;
1379
- const i = e.params.touchEventsTarget === "container" ? e.el : e.wrapperEl;
1380
- e.isElement && (e.__preventObserver__ = !0), i.style.cursor = "move", i.style.cursor = t ? "grabbing" : "grab", e.isElement && requestAnimationFrame(() => {
1381
- e.__preventObserver__ = !1;
1382
- });
1383
- }
1384
- function Ft() {
1385
- const t = this;
1386
- t.params.watchOverflow && t.isLocked || t.params.cssMode || (t.isElement && (t.__preventObserver__ = !0), t[t.params.touchEventsTarget === "container" ? "el" : "wrapperEl"].style.cursor = "", t.isElement && requestAnimationFrame(() => {
1387
- t.__preventObserver__ = !1;
1388
- }));
1389
- }
1390
- var Ht = {
1391
- setGrabCursor: Rt,
1392
- unsetGrabCursor: Ft
1393
- };
1394
- function jt(t, e) {
1395
- e === void 0 && (e = this);
1396
- function i(n) {
1397
- if (!n || n === W() || n === B()) return null;
1398
- n.assignedSlot && (n = n.assignedSlot);
1399
- const s = n.closest(t);
1400
- return !s && !n.getRootNode ? null : s || i(n.getRootNode().host);
1401
- }
1402
- return i(e);
1403
- }
1404
- function ve(t, e, i) {
1405
- const n = B(), {
1406
- params: s
1407
- } = t, r = s.edgeSwipeDetection, l = s.edgeSwipeThreshold;
1408
- return r && (i <= l || i >= n.innerWidth - l) ? r === "prevent" ? (e.preventDefault(), !0) : !1 : !0;
1409
- }
1410
- function $t(t) {
1411
- const e = this, i = W();
1412
- let n = t;
1413
- n.originalEvent && (n = n.originalEvent);
1414
- const s = e.touchEventsData;
1415
- if (n.type === "pointerdown") {
1416
- if (s.pointerId !== null && s.pointerId !== n.pointerId)
1417
- return;
1418
- s.pointerId = n.pointerId;
1419
- } else n.type === "touchstart" && n.targetTouches.length === 1 && (s.touchId = n.targetTouches[0].identifier);
1420
- if (n.type === "touchstart") {
1421
- ve(e, n, n.targetTouches[0].pageX);
1422
- return;
1423
- }
1424
- const {
1425
- params: r,
1426
- touches: l,
1427
- enabled: a
1428
- } = e;
1429
- if (!a || !r.simulateTouch && n.pointerType === "mouse" || e.animating && r.preventInteractionOnTransition)
1430
- return;
1431
- !e.animating && r.cssMode && r.loop && e.loopFix();
1432
- let o = n.target;
1433
- if (r.touchEventsTarget === "wrapper" && !Qe(o, e.wrapperEl) || "which" in n && n.which === 3 || "button" in n && n.button > 0 || s.isTouched && s.isMoved) return;
1434
- const d = !!r.noSwipingClass && r.noSwipingClass !== "", u = n.composedPath ? n.composedPath() : n.path;
1435
- d && n.target && n.target.shadowRoot && u && (o = u[0]);
1436
- const f = r.noSwipingSelector ? r.noSwipingSelector : `.${r.noSwipingClass}`, p = !!(n.target && n.target.shadowRoot);
1437
- if (r.noSwiping && (p ? jt(f, o) : o.closest(f))) {
1438
- e.allowClick = !0;
1439
- return;
1440
- }
1441
- if (r.swipeHandler && !o.closest(r.swipeHandler))
1442
- return;
1443
- l.currentX = n.pageX, l.currentY = n.pageY;
1444
- const h = l.currentX, c = l.currentY;
1445
- if (!ve(e, n, h))
1446
- return;
1447
- Object.assign(s, {
1448
- isTouched: !0,
1449
- isMoved: !1,
1450
- allowTouchCallbacks: !0,
1451
- isScrolling: void 0,
1452
- startMoving: void 0
1453
- }), l.startX = h, l.startY = c, s.touchStartTime = K(), e.allowClick = !0, e.updateSize(), e.swipeDirection = void 0, r.threshold > 0 && (s.allowThresholdMove = !1);
1454
- let m = !0;
1455
- o.matches(s.focusableElements) && (m = !1, o.nodeName === "SELECT" && (s.isTouched = !1)), i.activeElement && i.activeElement.matches(s.focusableElements) && i.activeElement !== o && (n.pointerType === "mouse" || n.pointerType !== "mouse" && !o.matches(s.focusableElements)) && i.activeElement.blur();
1456
- const y = m && e.allowTouchMove && r.touchStartPreventDefault;
1457
- (r.touchStartForcePreventDefault || y) && !o.isContentEditable && n.preventDefault(), r.freeMode && r.freeMode.enabled && e.freeMode && e.animating && !r.cssMode && e.freeMode.onTouchStart(), e.emit("touchStart", n);
1458
- }
1459
- function Wt(t) {
1460
- const e = W(), i = this, n = i.touchEventsData, {
1461
- params: s,
1462
- touches: r,
1463
- rtlTranslate: l,
1464
- enabled: a
1465
- } = i;
1466
- if (!a || !s.simulateTouch && t.pointerType === "mouse") return;
1467
- let o = t;
1468
- if (o.originalEvent && (o = o.originalEvent), o.type === "pointermove" && (n.touchId !== null || o.pointerId !== n.pointerId))
1469
- return;
1470
- let d;
1471
- if (o.type === "touchmove") {
1472
- if (d = [...o.changedTouches].find((T) => T.identifier === n.touchId), !d || d.identifier !== n.touchId) return;
1473
- } else
1474
- d = o;
1475
- if (!n.isTouched) {
1476
- n.startMoving && n.isScrolling && i.emit("touchMoveOpposite", o);
1477
- return;
1478
- }
1479
- const u = d.pageX, f = d.pageY;
1480
- if (o.preventedByNestedSwiper) {
1481
- r.startX = u, r.startY = f;
1482
- return;
1483
- }
1484
- if (!i.allowTouchMove) {
1485
- o.target.matches(n.focusableElements) || (i.allowClick = !1), n.isTouched && (Object.assign(r, {
1486
- startX: u,
1487
- startY: f,
1488
- currentX: u,
1489
- currentY: f
1490
- }), n.touchStartTime = K());
1491
- return;
1492
- }
1493
- if (s.touchReleaseOnEdges && !s.loop)
1494
- if (i.isVertical()) {
1495
- if (f < r.startY && i.translate <= i.maxTranslate() || f > r.startY && i.translate >= i.minTranslate()) {
1496
- n.isTouched = !1, n.isMoved = !1;
1497
- return;
1498
- }
1499
- } else {
1500
- if (l && (u > r.startX && -i.translate <= i.maxTranslate() || u < r.startX && -i.translate >= i.minTranslate()))
1501
- return;
1502
- if (!l && (u < r.startX && i.translate <= i.maxTranslate() || u > r.startX && i.translate >= i.minTranslate()))
1503
- return;
1504
- }
1505
- if (e.activeElement && e.activeElement.matches(n.focusableElements) && e.activeElement !== o.target && o.pointerType !== "mouse" && e.activeElement.blur(), e.activeElement && o.target === e.activeElement && o.target.matches(n.focusableElements)) {
1506
- n.isMoved = !0, i.allowClick = !1;
1507
- return;
1508
- }
1509
- n.allowTouchCallbacks && i.emit("touchMove", o), r.previousX = r.currentX, r.previousY = r.currentY, r.currentX = u, r.currentY = f;
1510
- const p = r.currentX - r.startX, h = r.currentY - r.startY;
1511
- if (i.params.threshold && Math.sqrt(p ** 2 + h ** 2) < i.params.threshold) return;
1512
- if (typeof n.isScrolling > "u") {
1513
- let T;
1514
- i.isHorizontal() && r.currentY === r.startY || i.isVertical() && r.currentX === r.startX ? n.isScrolling = !1 : p * p + h * h >= 25 && (T = Math.atan2(Math.abs(h), Math.abs(p)) * 180 / Math.PI, n.isScrolling = i.isHorizontal() ? T > s.touchAngle : 90 - T > s.touchAngle);
1515
- }
1516
- if (n.isScrolling && i.emit("touchMoveOpposite", o), typeof n.startMoving > "u" && (r.currentX !== r.startX || r.currentY !== r.startY) && (n.startMoving = !0), n.isScrolling || o.type === "touchmove" && n.preventTouchMoveFromPointerMove) {
1517
- n.isTouched = !1;
1518
- return;
1519
- }
1520
- if (!n.startMoving)
1521
- return;
1522
- i.allowClick = !1, !s.cssMode && o.cancelable && o.preventDefault(), s.touchMoveStopPropagation && !s.nested && o.stopPropagation();
1523
- let c = i.isHorizontal() ? p : h, m = i.isHorizontal() ? r.currentX - r.previousX : r.currentY - r.previousY;
1524
- s.oneWayMovement && (c = Math.abs(c) * (l ? 1 : -1), m = Math.abs(m) * (l ? 1 : -1)), r.diff = c, c *= s.touchRatio, l && (c = -c, m = -m);
1525
- const y = i.touchesDirection;
1526
- i.swipeDirection = c > 0 ? "prev" : "next", i.touchesDirection = m > 0 ? "prev" : "next";
1527
- const g = i.params.loop && !s.cssMode, w = i.touchesDirection === "next" && i.allowSlideNext || i.touchesDirection === "prev" && i.allowSlidePrev;
1528
- if (!n.isMoved) {
1529
- if (g && w && i.loopFix({
1530
- direction: i.swipeDirection
1531
- }), n.startTranslate = i.getTranslate(), i.setTransition(0), i.animating) {
1532
- const T = new window.CustomEvent("transitionend", {
1533
- bubbles: !0,
1534
- cancelable: !0,
1535
- detail: {
1536
- bySwiperTouchMove: !0
1537
- }
1538
- });
1539
- i.wrapperEl.dispatchEvent(T);
1540
- }
1541
- n.allowMomentumBounce = !1, s.grabCursor && (i.allowSlideNext === !0 || i.allowSlidePrev === !0) && i.setGrabCursor(!0), i.emit("sliderFirstMove", o);
1542
- }
1543
- if ((/* @__PURE__ */ new Date()).getTime(), s._loopSwapReset !== !1 && n.isMoved && n.allowThresholdMove && y !== i.touchesDirection && g && w && Math.abs(c) >= 1) {
1544
- Object.assign(r, {
1545
- startX: u,
1546
- startY: f,
1547
- currentX: u,
1548
- currentY: f,
1549
- startTranslate: n.currentTranslate
1550
- }), n.loopSwapReset = !0, n.startTranslate = n.currentTranslate;
1551
- return;
1552
- }
1553
- i.emit("sliderMove", o), n.isMoved = !0, n.currentTranslate = c + n.startTranslate;
1554
- let v = !0, E = s.resistanceRatio;
1555
- if (s.touchReleaseOnEdges && (E = 0), c > 0 ? (g && w && n.allowThresholdMove && n.currentTranslate > (s.centeredSlides ? i.minTranslate() - i.slidesSizesGrid[i.activeIndex + 1] - (s.slidesPerView !== "auto" && i.slides.length - s.slidesPerView >= 2 ? i.slidesSizesGrid[i.activeIndex + 1] + i.params.spaceBetween : 0) - i.params.spaceBetween : i.minTranslate()) && i.loopFix({
1556
- direction: "prev",
1557
- setTranslate: !0,
1558
- activeSlideIndex: 0
1559
- }), n.currentTranslate > i.minTranslate() && (v = !1, s.resistance && (n.currentTranslate = i.minTranslate() - 1 + (-i.minTranslate() + n.startTranslate + c) ** E))) : c < 0 && (g && w && n.allowThresholdMove && n.currentTranslate < (s.centeredSlides ? i.maxTranslate() + i.slidesSizesGrid[i.slidesSizesGrid.length - 1] + i.params.spaceBetween + (s.slidesPerView !== "auto" && i.slides.length - s.slidesPerView >= 2 ? i.slidesSizesGrid[i.slidesSizesGrid.length - 1] + i.params.spaceBetween : 0) : i.maxTranslate()) && i.loopFix({
1560
- direction: "next",
1561
- setTranslate: !0,
1562
- activeSlideIndex: i.slides.length - (s.slidesPerView === "auto" ? i.slidesPerViewDynamic() : Math.ceil(parseFloat(s.slidesPerView, 10)))
1563
- }), n.currentTranslate < i.maxTranslate() && (v = !1, s.resistance && (n.currentTranslate = i.maxTranslate() + 1 - (i.maxTranslate() - n.startTranslate - c) ** E))), v && (o.preventedByNestedSwiper = !0), !i.allowSlideNext && i.swipeDirection === "next" && n.currentTranslate < n.startTranslate && (n.currentTranslate = n.startTranslate), !i.allowSlidePrev && i.swipeDirection === "prev" && n.currentTranslate > n.startTranslate && (n.currentTranslate = n.startTranslate), !i.allowSlidePrev && !i.allowSlideNext && (n.currentTranslate = n.startTranslate), s.threshold > 0)
1564
- if (Math.abs(c) > s.threshold || n.allowThresholdMove) {
1565
- if (!n.allowThresholdMove) {
1566
- n.allowThresholdMove = !0, r.startX = r.currentX, r.startY = r.currentY, n.currentTranslate = n.startTranslate, r.diff = i.isHorizontal() ? r.currentX - r.startX : r.currentY - r.startY;
1567
- return;
1568
- }
1569
- } else {
1570
- n.currentTranslate = n.startTranslate;
1571
- return;
1572
- }
1573
- !s.followFinger || s.cssMode || ((s.freeMode && s.freeMode.enabled && i.freeMode || s.watchSlidesProgress) && (i.updateActiveIndex(), i.updateSlidesClasses()), s.freeMode && s.freeMode.enabled && i.freeMode && i.freeMode.onTouchMove(), i.updateProgress(n.currentTranslate), i.setTranslate(n.currentTranslate));
1574
- }
1575
- function qt(t) {
1576
- const e = this, i = e.touchEventsData;
1577
- let n = t;
1578
- n.originalEvent && (n = n.originalEvent);
1579
- let s;
1580
- if (n.type === "touchend" || n.type === "touchcancel") {
1581
- if (s = [...n.changedTouches].find((T) => T.identifier === i.touchId), !s || s.identifier !== i.touchId) return;
1582
- } else {
1583
- if (i.touchId !== null || n.pointerId !== i.pointerId) return;
1584
- s = n;
1585
- }
1586
- if (["pointercancel", "pointerout", "pointerleave", "contextmenu"].includes(n.type) && !(["pointercancel", "contextmenu"].includes(n.type) && (e.browser.isSafari || e.browser.isWebView)))
1587
- return;
1588
- i.pointerId = null, i.touchId = null;
1589
- const {
1590
- params: l,
1591
- touches: a,
1592
- rtlTranslate: o,
1593
- slidesGrid: d,
1594
- enabled: u
1595
- } = e;
1596
- if (!u || !l.simulateTouch && n.pointerType === "mouse") return;
1597
- if (i.allowTouchCallbacks && e.emit("touchEnd", n), i.allowTouchCallbacks = !1, !i.isTouched) {
1598
- i.isMoved && l.grabCursor && e.setGrabCursor(!1), i.isMoved = !1, i.startMoving = !1;
1599
- return;
1600
- }
1601
- l.grabCursor && i.isMoved && i.isTouched && (e.allowSlideNext === !0 || e.allowSlidePrev === !0) && e.setGrabCursor(!1);
1602
- const f = K(), p = f - i.touchStartTime;
1603
- if (e.allowClick) {
1604
- const T = n.path || n.composedPath && n.composedPath();
1605
- e.updateClickedSlide(T && T[0] || n.target, T), e.emit("tap click", n), p < 300 && f - i.lastClickTime < 300 && e.emit("doubleTap doubleClick", n);
1606
- }
1607
- if (i.lastClickTime = K(), Ce(() => {
1608
- e.destroyed || (e.allowClick = !0);
1609
- }), !i.isTouched || !i.isMoved || !e.swipeDirection || a.diff === 0 && !i.loopSwapReset || i.currentTranslate === i.startTranslate && !i.loopSwapReset) {
1610
- i.isTouched = !1, i.isMoved = !1, i.startMoving = !1;
1611
- return;
1612
- }
1613
- i.isTouched = !1, i.isMoved = !1, i.startMoving = !1;
1614
- let h;
1615
- if (l.followFinger ? h = o ? e.translate : -e.translate : h = -i.currentTranslate, l.cssMode)
1616
- return;
1617
- if (l.freeMode && l.freeMode.enabled) {
1618
- e.freeMode.onTouchEnd({
1619
- currentPos: h
1620
- });
1621
- return;
1622
- }
1623
- const c = h >= -e.maxTranslate() && !e.params.loop;
1624
- let m = 0, y = e.slidesSizesGrid[0];
1625
- for (let T = 0; T < d.length; T += T < l.slidesPerGroupSkip ? 1 : l.slidesPerGroup) {
1626
- const M = T < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
1627
- typeof d[T + M] < "u" ? (c || h >= d[T] && h < d[T + M]) && (m = T, y = d[T + M] - d[T]) : (c || h >= d[T]) && (m = T, y = d[d.length - 1] - d[d.length - 2]);
1628
- }
1629
- let g = null, w = null;
1630
- l.rewind && (e.isBeginning ? w = l.virtual && l.virtual.enabled && e.virtual ? e.virtual.slides.length - 1 : e.slides.length - 1 : e.isEnd && (g = 0));
1631
- const v = (h - d[m]) / y, E = m < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
1632
- if (p > l.longSwipesMs) {
1633
- if (!l.longSwipes) {
1634
- e.slideTo(e.activeIndex);
1635
- return;
1636
- }
1637
- e.swipeDirection === "next" && (v >= l.longSwipesRatio ? e.slideTo(l.rewind && e.isEnd ? g : m + E) : e.slideTo(m)), e.swipeDirection === "prev" && (v > 1 - l.longSwipesRatio ? e.slideTo(m + E) : w !== null && v < 0 && Math.abs(v) > l.longSwipesRatio ? e.slideTo(w) : e.slideTo(m));
1638
- } else {
1639
- if (!l.shortSwipes) {
1640
- e.slideTo(e.activeIndex);
1641
- return;
1642
- }
1643
- e.navigation && (n.target === e.navigation.nextEl || n.target === e.navigation.prevEl) ? n.target === e.navigation.nextEl ? e.slideTo(m + E) : e.slideTo(m) : (e.swipeDirection === "next" && e.slideTo(g !== null ? g : m + E), e.swipeDirection === "prev" && e.slideTo(w !== null ? w : m));
1644
- }
1645
- }
1646
- function we() {
1647
- const t = this, {
1648
- params: e,
1649
- el: i
1650
- } = t;
1651
- if (i && i.offsetWidth === 0) return;
1652
- e.breakpoints && t.setBreakpoint();
1653
- const {
1654
- allowSlideNext: n,
1655
- allowSlidePrev: s,
1656
- snapGrid: r
1657
- } = t, l = t.virtual && t.params.virtual.enabled;
1658
- t.allowSlideNext = !0, t.allowSlidePrev = !0, t.updateSize(), t.updateSlides(), t.updateSlidesClasses();
1659
- const a = l && e.loop;
1660
- (e.slidesPerView === "auto" || e.slidesPerView > 1) && t.isEnd && !t.isBeginning && !t.params.centeredSlides && !a ? t.slideTo(t.slides.length - 1, 0, !1, !0) : t.params.loop && !l ? t.slideToLoop(t.realIndex, 0, !1, !0) : t.slideTo(t.activeIndex, 0, !1, !0), t.autoplay && t.autoplay.running && t.autoplay.paused && (clearTimeout(t.autoplay.resizeTimeout), t.autoplay.resizeTimeout = setTimeout(() => {
1661
- t.autoplay && t.autoplay.running && t.autoplay.paused && t.autoplay.resume();
1662
- }, 500)), t.allowSlidePrev = s, t.allowSlideNext = n, t.params.watchOverflow && r !== t.snapGrid && t.checkOverflow();
1663
- }
1664
- function Yt(t) {
1665
- const e = this;
1666
- e.enabled && (e.allowClick || (e.params.preventClicks && t.preventDefault(), e.params.preventClicksPropagation && e.animating && (t.stopPropagation(), t.stopImmediatePropagation())));
1667
- }
1668
- function Xt() {
1669
- const t = this, {
1670
- wrapperEl: e,
1671
- rtlTranslate: i,
1672
- enabled: n
1673
- } = t;
1674
- if (!n) return;
1675
- t.previousTranslate = t.translate, t.isHorizontal() ? t.translate = -e.scrollLeft : t.translate = -e.scrollTop, t.translate === 0 && (t.translate = 0), t.updateActiveIndex(), t.updateSlidesClasses();
1676
- let s;
1677
- const r = t.maxTranslate() - t.minTranslate();
1678
- r === 0 ? s = 0 : s = (t.translate - t.minTranslate()) / r, s !== t.progress && t.updateProgress(i ? -t.translate : t.translate), t.emit("setTranslate", t.translate, !1);
1679
- }
1680
- function Ut(t) {
1681
- const e = this;
1682
- U(e, t.target), !(e.params.cssMode || e.params.slidesPerView !== "auto" && !e.params.autoHeight) && e.update();
1683
- }
1684
- function Kt() {
1685
- const t = this;
1686
- t.documentTouchHandlerProceeded || (t.documentTouchHandlerProceeded = !0, t.params.touchReleaseOnEdges && (t.el.style.touchAction = "auto"));
1687
- }
1688
- const Be = (t, e) => {
1689
- const i = W(), {
1690
- params: n,
1691
- el: s,
1692
- wrapperEl: r,
1693
- device: l
1694
- } = t, a = !!n.nested, o = e === "on" ? "addEventListener" : "removeEventListener", d = e;
1695
- !s || typeof s == "string" || (i[o]("touchstart", t.onDocumentTouchStart, {
1696
- passive: !1,
1697
- capture: a
1698
- }), s[o]("touchstart", t.onTouchStart, {
1699
- passive: !1
1700
- }), s[o]("pointerdown", t.onTouchStart, {
1701
- passive: !1
1702
- }), i[o]("touchmove", t.onTouchMove, {
1703
- passive: !1,
1704
- capture: a
1705
- }), i[o]("pointermove", t.onTouchMove, {
1706
- passive: !1,
1707
- capture: a
1708
- }), i[o]("touchend", t.onTouchEnd, {
1709
- passive: !0
1710
- }), i[o]("pointerup", t.onTouchEnd, {
1711
- passive: !0
1712
- }), i[o]("pointercancel", t.onTouchEnd, {
1713
- passive: !0
1714
- }), i[o]("touchcancel", t.onTouchEnd, {
1715
- passive: !0
1716
- }), i[o]("pointerout", t.onTouchEnd, {
1717
- passive: !0
1718
- }), i[o]("pointerleave", t.onTouchEnd, {
1719
- passive: !0
1720
- }), i[o]("contextmenu", t.onTouchEnd, {
1721
- passive: !0
1722
- }), (n.preventClicks || n.preventClicksPropagation) && s[o]("click", t.onClick, !0), n.cssMode && r[o]("scroll", t.onScroll), n.updateOnWindowResize ? t[d](l.ios || l.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", we, !0) : t[d]("observerUpdate", we, !0), s[o]("load", t.onLoad, {
1723
- capture: !0
1724
- }));
1725
- };
1726
- function Qt() {
1727
- const t = this, {
1728
- params: e
1729
- } = t;
1730
- t.onTouchStart = $t.bind(t), t.onTouchMove = Wt.bind(t), t.onTouchEnd = qt.bind(t), t.onDocumentTouchStart = Kt.bind(t), e.cssMode && (t.onScroll = Xt.bind(t)), t.onClick = Yt.bind(t), t.onLoad = Ut.bind(t), Be(t, "on");
1731
- }
1732
- function Zt() {
1733
- Be(this, "off");
1734
- }
1735
- var Jt = {
1736
- attachEvents: Qt,
1737
- detachEvents: Zt
1738
- };
1739
- const Se = (t, e) => t.grid && e.grid && e.grid.rows > 1;
1740
- function ei() {
1741
- const t = this, {
1742
- realIndex: e,
1743
- initialized: i,
1744
- params: n,
1745
- el: s
1746
- } = t, r = n.breakpoints;
1747
- if (!r || r && Object.keys(r).length === 0) return;
1748
- const l = W(), a = n.breakpointsBase === "window" || !n.breakpointsBase ? n.breakpointsBase : "container", o = ["window", "container"].includes(n.breakpointsBase) || !n.breakpointsBase ? t.el : l.querySelector(n.breakpointsBase), d = t.getBreakpoint(r, a, o);
1749
- if (!d || t.currentBreakpoint === d) return;
1750
- const f = (d in r ? r[d] : void 0) || t.originalParams, p = Se(t, n), h = Se(t, f), c = t.params.grabCursor, m = f.grabCursor, y = n.enabled;
1751
- p && !h ? (s.classList.remove(`${n.containerModifierClass}grid`, `${n.containerModifierClass}grid-column`), t.emitContainerClasses()) : !p && h && (s.classList.add(`${n.containerModifierClass}grid`), (f.grid.fill && f.grid.fill === "column" || !f.grid.fill && n.grid.fill === "column") && s.classList.add(`${n.containerModifierClass}grid-column`), t.emitContainerClasses()), c && !m ? t.unsetGrabCursor() : !c && m && t.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((M) => {
1752
- if (typeof f[M] > "u") return;
1753
- const C = n[M] && n[M].enabled, x = f[M] && f[M].enabled;
1754
- C && !x && t[M].disable(), !C && x && t[M].enable();
1755
- });
1756
- const g = f.direction && f.direction !== n.direction, w = n.loop && (f.slidesPerView !== n.slidesPerView || g), v = n.loop;
1757
- g && i && t.changeDirection(), G(t.params, f);
1758
- const E = t.params.enabled, T = t.params.loop;
1759
- Object.assign(t, {
1760
- allowTouchMove: t.params.allowTouchMove,
1761
- allowSlideNext: t.params.allowSlideNext,
1762
- allowSlidePrev: t.params.allowSlidePrev
1763
- }), y && !E ? t.disable() : !y && E && t.enable(), t.currentBreakpoint = d, t.emit("_beforeBreakpoint", f), i && (w ? (t.loopDestroy(), t.loopCreate(e), t.updateSlides()) : !v && T ? (t.loopCreate(e), t.updateSlides()) : v && !T && t.loopDestroy()), t.emit("breakpoint", f);
1764
- }
1765
- function ti(t, e, i) {
1766
- if (e === void 0 && (e = "window"), !t || e === "container" && !i) return;
1767
- let n = !1;
1768
- const s = B(), r = e === "window" ? s.innerHeight : i.clientHeight, l = Object.keys(t).map((a) => {
1769
- if (typeof a == "string" && a.indexOf("@") === 0) {
1770
- const o = parseFloat(a.substr(1));
1771
- return {
1772
- value: r * o,
1773
- point: a
1774
- };
1775
- }
1776
- return {
1777
- value: a,
1778
- point: a
1779
- };
1780
- });
1781
- l.sort((a, o) => parseInt(a.value, 10) - parseInt(o.value, 10));
1782
- for (let a = 0; a < l.length; a += 1) {
1783
- const {
1784
- point: o,
1785
- value: d
1786
- } = l[a];
1787
- e === "window" ? s.matchMedia(`(min-width: ${d}px)`).matches && (n = o) : d <= i.clientWidth && (n = o);
1788
- }
1789
- return n || "max";
1790
- }
1791
- var ii = {
1792
- setBreakpoint: ei,
1793
- getBreakpoint: ti
1794
- };
1795
- function ni(t, e) {
1796
- const i = [];
1797
- return t.forEach((n) => {
1798
- typeof n == "object" ? Object.keys(n).forEach((s) => {
1799
- n[s] && i.push(e + s);
1800
- }) : typeof n == "string" && i.push(e + n);
1801
- }), i;
1802
- }
1803
- function si() {
1804
- const t = this, {
1805
- classNames: e,
1806
- params: i,
1807
- rtl: n,
1808
- el: s,
1809
- device: r
1810
- } = t, l = ni(["initialized", i.direction, {
1811
- "free-mode": t.params.freeMode && i.freeMode.enabled
1812
- }, {
1813
- autoheight: i.autoHeight
1814
- }, {
1815
- rtl: n
1816
- }, {
1817
- grid: i.grid && i.grid.rows > 1
1818
- }, {
1819
- "grid-column": i.grid && i.grid.rows > 1 && i.grid.fill === "column"
1820
- }, {
1821
- android: r.android
1822
- }, {
1823
- ios: r.ios
1824
- }, {
1825
- "css-mode": i.cssMode
1826
- }, {
1827
- centered: i.cssMode && i.centeredSlides
1828
- }, {
1829
- "watch-progress": i.watchSlidesProgress
1830
- }], i.containerModifierClass);
1831
- e.push(...l), s.classList.add(...e), t.emitContainerClasses();
1832
- }
1833
- function ri() {
1834
- const t = this, {
1835
- el: e,
1836
- classNames: i
1837
- } = t;
1838
- !e || typeof e == "string" || (e.classList.remove(...i), t.emitContainerClasses());
1839
- }
1840
- var ai = {
1841
- addClasses: si,
1842
- removeClasses: ri
1843
- };
1844
- function li() {
1845
- const t = this, {
1846
- isLocked: e,
1847
- params: i
1848
- } = t, {
1849
- slidesOffsetBefore: n
1850
- } = i;
1851
- if (n) {
1852
- const s = t.slides.length - 1, r = t.slidesGrid[s] + t.slidesSizesGrid[s] + n * 2;
1853
- t.isLocked = t.size > r;
1854
- } else
1855
- t.isLocked = t.snapGrid.length === 1;
1856
- i.allowSlideNext === !0 && (t.allowSlideNext = !t.isLocked), i.allowSlidePrev === !0 && (t.allowSlidePrev = !t.isLocked), e && e !== t.isLocked && (t.isEnd = !1), e !== t.isLocked && t.emit(t.isLocked ? "lock" : "unlock");
1857
- }
1858
- var oi = {
1859
- checkOverflow: li
1860
- }, oe = {
1861
- init: !0,
1862
- direction: "horizontal",
1863
- oneWayMovement: !1,
1864
- swiperElementNodeName: "SWIPER-CONTAINER",
1865
- touchEventsTarget: "wrapper",
1866
- initialSlide: 0,
1867
- speed: 300,
1868
- cssMode: !1,
1869
- updateOnWindowResize: !0,
1870
- resizeObserver: !0,
1871
- nested: !1,
1872
- createElements: !1,
1873
- eventsPrefix: "swiper",
1874
- enabled: !0,
1875
- focusableElements: "input, select, option, textarea, button, video, label",
1876
- // Overrides
1877
- width: null,
1878
- height: null,
1879
- //
1880
- preventInteractionOnTransition: !1,
1881
- // ssr
1882
- userAgent: null,
1883
- url: null,
1884
- // To support iOS's swipe-to-go-back gesture (when being used in-app).
1885
- edgeSwipeDetection: !1,
1886
- edgeSwipeThreshold: 20,
1887
- // Autoheight
1888
- autoHeight: !1,
1889
- // Set wrapper width
1890
- setWrapperSize: !1,
1891
- // Virtual Translate
1892
- virtualTranslate: !1,
1893
- // Effects
1894
- effect: "slide",
1895
- // 'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'
1896
- // Breakpoints
1897
- breakpoints: void 0,
1898
- breakpointsBase: "window",
1899
- // Slides grid
1900
- spaceBetween: 0,
1901
- slidesPerView: 1,
1902
- slidesPerGroup: 1,
1903
- slidesPerGroupSkip: 0,
1904
- slidesPerGroupAuto: !1,
1905
- centeredSlides: !1,
1906
- centeredSlidesBounds: !1,
1907
- slidesOffsetBefore: 0,
1908
- // in px
1909
- slidesOffsetAfter: 0,
1910
- // in px
1911
- normalizeSlideIndex: !0,
1912
- centerInsufficientSlides: !1,
1913
- // Disable swiper and hide navigation when container not overflow
1914
- watchOverflow: !0,
1915
- // Round length
1916
- roundLengths: !1,
1917
- // Touches
1918
- touchRatio: 1,
1919
- touchAngle: 45,
1920
- simulateTouch: !0,
1921
- shortSwipes: !0,
1922
- longSwipes: !0,
1923
- longSwipesRatio: 0.5,
1924
- longSwipesMs: 300,
1925
- followFinger: !0,
1926
- allowTouchMove: !0,
1927
- threshold: 5,
1928
- touchMoveStopPropagation: !1,
1929
- touchStartPreventDefault: !0,
1930
- touchStartForcePreventDefault: !1,
1931
- touchReleaseOnEdges: !1,
1932
- // Unique Navigation Elements
1933
- uniqueNavElements: !0,
1934
- // Resistance
1935
- resistance: !0,
1936
- resistanceRatio: 0.85,
1937
- // Progress
1938
- watchSlidesProgress: !1,
1939
- // Cursor
1940
- grabCursor: !1,
1941
- // Clicks
1942
- preventClicks: !0,
1943
- preventClicksPropagation: !0,
1944
- slideToClickedSlide: !1,
1945
- // loop
1946
- loop: !1,
1947
- loopAddBlankSlides: !0,
1948
- loopAdditionalSlides: 0,
1949
- loopPreventsSliding: !0,
1950
- // rewind
1951
- rewind: !1,
1952
- // Swiping/no swiping
1953
- allowSlidePrev: !0,
1954
- allowSlideNext: !0,
1955
- swipeHandler: null,
1956
- // '.swipe-handler',
1957
- noSwiping: !0,
1958
- noSwipingClass: "swiper-no-swiping",
1959
- noSwipingSelector: null,
1960
- // Passive Listeners
1961
- passiveListeners: !0,
1962
- maxBackfaceHiddenSlides: 10,
1963
- // NS
1964
- containerModifierClass: "swiper-",
1965
- // NEW
1966
- slideClass: "swiper-slide",
1967
- slideBlankClass: "swiper-slide-blank",
1968
- slideActiveClass: "swiper-slide-active",
1969
- slideVisibleClass: "swiper-slide-visible",
1970
- slideFullyVisibleClass: "swiper-slide-fully-visible",
1971
- slideNextClass: "swiper-slide-next",
1972
- slidePrevClass: "swiper-slide-prev",
1973
- wrapperClass: "swiper-wrapper",
1974
- lazyPreloaderClass: "swiper-lazy-preloader",
1975
- lazyPreloadPrevNext: 0,
1976
- // Callbacks
1977
- runCallbacksOnInit: !0,
1978
- // Internals
1979
- _emitClasses: !1
1980
- };
1981
- function di(t, e) {
1982
- return function(n) {
1983
- n === void 0 && (n = {});
1984
- const s = Object.keys(n)[0], r = n[s];
1985
- if (typeof r != "object" || r === null) {
1986
- G(e, n);
1987
- return;
1988
- }
1989
- if (t[s] === !0 && (t[s] = {
1990
- enabled: !0
1991
- }), s === "navigation" && t[s] && t[s].enabled && !t[s].prevEl && !t[s].nextEl && (t[s].auto = !0), ["pagination", "scrollbar"].indexOf(s) >= 0 && t[s] && t[s].enabled && !t[s].el && (t[s].auto = !0), !(s in t && "enabled" in r)) {
1992
- G(e, n);
1993
- return;
1994
- }
1995
- typeof t[s] == "object" && !("enabled" in t[s]) && (t[s].enabled = !0), t[s] || (t[s] = {
1996
- enabled: !1
1997
- }), G(e, n);
1998
- };
1999
- }
2000
- const se = {
2001
- eventsEmitter: at,
2002
- update: vt,
2003
- translate: xt,
2004
- transition: Mt,
2005
- slide: Gt,
2006
- loop: kt,
2007
- grabCursor: Ht,
2008
- events: Jt,
2009
- breakpoints: ii,
2010
- checkOverflow: oi,
2011
- classes: ai
2012
- }, re = {};
2013
- let ue = class R {
2014
- constructor() {
2015
- let e, i;
2016
- for (var n = arguments.length, s = new Array(n), r = 0; r < n; r++)
2017
- s[r] = arguments[r];
2018
- s.length === 1 && s[0].constructor && Object.prototype.toString.call(s[0]).slice(8, -1) === "Object" ? i = s[0] : [e, i] = s, i || (i = {}), i = G({}, i), e && !i.el && (i.el = e);
2019
- const l = W();
2020
- if (i.el && typeof i.el == "string" && l.querySelectorAll(i.el).length > 1) {
2021
- const u = [];
2022
- return l.querySelectorAll(i.el).forEach((f) => {
2023
- const p = G({}, i, {
2024
- el: f
2025
- });
2026
- u.push(new R(p));
2027
- }), u;
2028
- }
2029
- const a = this;
2030
- a.__swiper__ = !0, a.support = Ie(), a.device = Oe({
2031
- userAgent: i.userAgent
2032
- }), a.browser = Le(), a.eventsListeners = {}, a.eventsAnyListeners = [], a.modules = [...a.__modules__], i.modules && Array.isArray(i.modules) && a.modules.push(...i.modules);
2033
- const o = {};
2034
- a.modules.forEach((u) => {
2035
- u({
2036
- params: i,
2037
- swiper: a,
2038
- extendParams: di(i, o),
2039
- on: a.on.bind(a),
2040
- once: a.once.bind(a),
2041
- off: a.off.bind(a),
2042
- emit: a.emit.bind(a)
2043
- });
2044
- });
2045
- const d = G({}, oe, o);
2046
- return a.params = G({}, d, re, i), a.originalParams = G({}, a.params), a.passedParams = G({}, i), a.params && a.params.on && Object.keys(a.params.on).forEach((u) => {
2047
- a.on(u, a.params.on[u]);
2048
- }), a.params && a.params.onAny && a.onAny(a.params.onAny), Object.assign(a, {
2049
- enabled: a.params.enabled,
2050
- el: e,
2051
- // Classes
2052
- classNames: [],
2053
- // Slides
2054
- slides: [],
2055
- slidesGrid: [],
2056
- snapGrid: [],
2057
- slidesSizesGrid: [],
2058
- // isDirection
2059
- isHorizontal() {
2060
- return a.params.direction === "horizontal";
2061
- },
2062
- isVertical() {
2063
- return a.params.direction === "vertical";
2064
- },
2065
- // Indexes
2066
- activeIndex: 0,
2067
- realIndex: 0,
2068
- //
2069
- isBeginning: !0,
2070
- isEnd: !1,
2071
- // Props
2072
- translate: 0,
2073
- previousTranslate: 0,
2074
- progress: 0,
2075
- velocity: 0,
2076
- animating: !1,
2077
- cssOverflowAdjustment() {
2078
- return Math.trunc(this.translate / 2 ** 23) * 2 ** 23;
2079
- },
2080
- // Locks
2081
- allowSlideNext: a.params.allowSlideNext,
2082
- allowSlidePrev: a.params.allowSlidePrev,
2083
- // Touch Events
2084
- touchEventsData: {
2085
- isTouched: void 0,
2086
- isMoved: void 0,
2087
- allowTouchCallbacks: void 0,
2088
- touchStartTime: void 0,
2089
- isScrolling: void 0,
2090
- currentTranslate: void 0,
2091
- startTranslate: void 0,
2092
- allowThresholdMove: void 0,
2093
- // Form elements to match
2094
- focusableElements: a.params.focusableElements,
2095
- // Last click time
2096
- lastClickTime: 0,
2097
- clickTimeout: void 0,
2098
- // Velocities
2099
- velocities: [],
2100
- allowMomentumBounce: void 0,
2101
- startMoving: void 0,
2102
- pointerId: null,
2103
- touchId: null
2104
- },
2105
- // Clicks
2106
- allowClick: !0,
2107
- // Touches
2108
- allowTouchMove: a.params.allowTouchMove,
2109
- touches: {
2110
- startX: 0,
2111
- startY: 0,
2112
- currentX: 0,
2113
- currentY: 0,
2114
- diff: 0
2115
- },
2116
- // Images
2117
- imagesToLoad: [],
2118
- imagesLoaded: 0
2119
- }), a.emit("_swiper"), a.params.init && a.init(), a;
2120
- }
2121
- getDirectionLabel(e) {
2122
- return this.isHorizontal() ? e : {
2123
- width: "height",
2124
- "margin-top": "margin-left",
2125
- "margin-bottom ": "margin-right",
2126
- "margin-left": "margin-top",
2127
- "margin-right": "margin-bottom",
2128
- "padding-left": "padding-top",
2129
- "padding-right": "padding-bottom",
2130
- marginRight: "marginBottom"
2131
- }[e];
2132
- }
2133
- getSlideIndex(e) {
2134
- const {
2135
- slidesEl: i,
2136
- params: n
2137
- } = this, s = N(i, `.${n.slideClass}, swiper-slide`), r = pe(s[0]);
2138
- return pe(e) - r;
2139
- }
2140
- getSlideIndexByData(e) {
2141
- return this.getSlideIndex(this.slides.find((i) => i.getAttribute("data-swiper-slide-index") * 1 === e));
2142
- }
2143
- getSlideIndexWhenGrid(e) {
2144
- return this.grid && this.params.grid && this.params.grid.rows > 1 && (this.params.grid.fill === "column" ? e = Math.floor(e / this.params.grid.rows) : this.params.grid.fill === "row" && (e = e % Math.ceil(this.slides.length / this.params.grid.rows))), e;
2145
- }
2146
- recalcSlides() {
2147
- const e = this, {
2148
- slidesEl: i,
2149
- params: n
2150
- } = e;
2151
- e.slides = N(i, `.${n.slideClass}, swiper-slide`);
2152
- }
2153
- enable() {
2154
- const e = this;
2155
- e.enabled || (e.enabled = !0, e.params.grabCursor && e.setGrabCursor(), e.emit("enable"));
2156
- }
2157
- disable() {
2158
- const e = this;
2159
- e.enabled && (e.enabled = !1, e.params.grabCursor && e.unsetGrabCursor(), e.emit("disable"));
2160
- }
2161
- setProgress(e, i) {
2162
- const n = this;
2163
- e = Math.min(Math.max(e, 0), 1);
2164
- const s = n.minTranslate(), l = (n.maxTranslate() - s) * e + s;
2165
- n.translateTo(l, typeof i > "u" ? 0 : i), n.updateActiveIndex(), n.updateSlidesClasses();
2166
- }
2167
- emitContainerClasses() {
2168
- const e = this;
2169
- if (!e.params._emitClasses || !e.el) return;
2170
- const i = e.el.className.split(" ").filter((n) => n.indexOf("swiper") === 0 || n.indexOf(e.params.containerModifierClass) === 0);
2171
- e.emit("_containerClasses", i.join(" "));
2172
- }
2173
- getSlideClasses(e) {
2174
- const i = this;
2175
- return i.destroyed ? "" : e.className.split(" ").filter((n) => n.indexOf("swiper-slide") === 0 || n.indexOf(i.params.slideClass) === 0).join(" ");
2176
- }
2177
- emitSlidesClasses() {
2178
- const e = this;
2179
- if (!e.params._emitClasses || !e.el) return;
2180
- const i = [];
2181
- e.slides.forEach((n) => {
2182
- const s = e.getSlideClasses(n);
2183
- i.push({
2184
- slideEl: n,
2185
- classNames: s
2186
- }), e.emit("_slideClass", n, s);
2187
- }), e.emit("_slideClasses", i);
2188
- }
2189
- slidesPerViewDynamic(e, i) {
2190
- e === void 0 && (e = "current"), i === void 0 && (i = !1);
2191
- const n = this, {
2192
- params: s,
2193
- slides: r,
2194
- slidesGrid: l,
2195
- slidesSizesGrid: a,
2196
- size: o,
2197
- activeIndex: d
2198
- } = n;
2199
- let u = 1;
2200
- if (typeof s.slidesPerView == "number") return s.slidesPerView;
2201
- if (s.centeredSlides) {
2202
- let f = r[d] ? Math.ceil(r[d].swiperSlideSize) : 0, p;
2203
- for (let h = d + 1; h < r.length; h += 1)
2204
- r[h] && !p && (f += Math.ceil(r[h].swiperSlideSize), u += 1, f > o && (p = !0));
2205
- for (let h = d - 1; h >= 0; h -= 1)
2206
- r[h] && !p && (f += r[h].swiperSlideSize, u += 1, f > o && (p = !0));
2207
- } else if (e === "current")
2208
- for (let f = d + 1; f < r.length; f += 1)
2209
- (i ? l[f] + a[f] - l[d] < o : l[f] - l[d] < o) && (u += 1);
2210
- else
2211
- for (let f = d - 1; f >= 0; f -= 1)
2212
- l[d] - l[f] < o && (u += 1);
2213
- return u;
2214
- }
2215
- update() {
2216
- const e = this;
2217
- if (!e || e.destroyed) return;
2218
- const {
2219
- snapGrid: i,
2220
- params: n
2221
- } = e;
2222
- n.breakpoints && e.setBreakpoint(), [...e.el.querySelectorAll('[loading="lazy"]')].forEach((l) => {
2223
- l.complete && U(e, l);
2224
- }), e.updateSize(), e.updateSlides(), e.updateProgress(), e.updateSlidesClasses();
2225
- function s() {
2226
- const l = e.rtlTranslate ? e.translate * -1 : e.translate, a = Math.min(Math.max(l, e.maxTranslate()), e.minTranslate());
2227
- e.setTranslate(a), e.updateActiveIndex(), e.updateSlidesClasses();
2228
- }
2229
- let r;
2230
- if (n.freeMode && n.freeMode.enabled && !n.cssMode)
2231
- s(), n.autoHeight && e.updateAutoHeight();
2232
- else {
2233
- if ((n.slidesPerView === "auto" || n.slidesPerView > 1) && e.isEnd && !n.centeredSlides) {
2234
- const l = e.virtual && n.virtual.enabled ? e.virtual.slides : e.slides;
2235
- r = e.slideTo(l.length - 1, 0, !1, !0);
2236
- } else
2237
- r = e.slideTo(e.activeIndex, 0, !1, !0);
2238
- r || s();
2239
- }
2240
- n.watchOverflow && i !== e.snapGrid && e.checkOverflow(), e.emit("update");
2241
- }
2242
- changeDirection(e, i) {
2243
- i === void 0 && (i = !0);
2244
- const n = this, s = n.params.direction;
2245
- return e || (e = s === "horizontal" ? "vertical" : "horizontal"), e === s || e !== "horizontal" && e !== "vertical" || (n.el.classList.remove(`${n.params.containerModifierClass}${s}`), n.el.classList.add(`${n.params.containerModifierClass}${e}`), n.emitContainerClasses(), n.params.direction = e, n.slides.forEach((r) => {
2246
- e === "vertical" ? r.style.width = "" : r.style.height = "";
2247
- }), n.emit("changeDirection"), i && n.update()), n;
2248
- }
2249
- changeLanguageDirection(e) {
2250
- const i = this;
2251
- i.rtl && e === "rtl" || !i.rtl && e === "ltr" || (i.rtl = e === "rtl", i.rtlTranslate = i.params.direction === "horizontal" && i.rtl, i.rtl ? (i.el.classList.add(`${i.params.containerModifierClass}rtl`), i.el.dir = "rtl") : (i.el.classList.remove(`${i.params.containerModifierClass}rtl`), i.el.dir = "ltr"), i.update());
2252
- }
2253
- mount(e) {
2254
- const i = this;
2255
- if (i.mounted) return !0;
2256
- let n = e || i.params.el;
2257
- if (typeof n == "string" && (n = document.querySelector(n)), !n)
2258
- return !1;
2259
- n.swiper = i, n.parentNode && n.parentNode.host && n.parentNode.host.nodeName === i.params.swiperElementNodeName.toUpperCase() && (i.isElement = !0);
2260
- const s = () => `.${(i.params.wrapperClass || "").trim().split(" ").join(".")}`;
2261
- let l = n && n.shadowRoot && n.shadowRoot.querySelector ? n.shadowRoot.querySelector(s()) : N(n, s())[0];
2262
- return !l && i.params.createElements && (l = Z("div", i.params.wrapperClass), n.append(l), N(n, `.${i.params.slideClass}`).forEach((a) => {
2263
- l.append(a);
2264
- })), Object.assign(i, {
2265
- el: n,
2266
- wrapperEl: l,
2267
- slidesEl: i.isElement && !n.parentNode.host.slideSlots ? n.parentNode.host : l,
2268
- hostEl: i.isElement ? n.parentNode.host : n,
2269
- mounted: !0,
2270
- // RTL
2271
- rtl: n.dir.toLowerCase() === "rtl" || j(n, "direction") === "rtl",
2272
- rtlTranslate: i.params.direction === "horizontal" && (n.dir.toLowerCase() === "rtl" || j(n, "direction") === "rtl"),
2273
- wrongRTL: j(l, "display") === "-webkit-box"
2274
- }), !0;
2275
- }
2276
- init(e) {
2277
- const i = this;
2278
- if (i.initialized || i.mount(e) === !1) return i;
2279
- i.emit("beforeInit"), i.params.breakpoints && i.setBreakpoint(), i.addClasses(), i.updateSize(), i.updateSlides(), i.params.watchOverflow && i.checkOverflow(), i.params.grabCursor && i.enabled && i.setGrabCursor(), i.params.loop && i.virtual && i.params.virtual.enabled ? i.slideTo(i.params.initialSlide + i.virtual.slidesBefore, 0, i.params.runCallbacksOnInit, !1, !0) : i.slideTo(i.params.initialSlide, 0, i.params.runCallbacksOnInit, !1, !0), i.params.loop && i.loopCreate(void 0, !0), i.attachEvents();
2280
- const s = [...i.el.querySelectorAll('[loading="lazy"]')];
2281
- return i.isElement && s.push(...i.hostEl.querySelectorAll('[loading="lazy"]')), s.forEach((r) => {
2282
- r.complete ? U(i, r) : r.addEventListener("load", (l) => {
2283
- U(i, l.target);
2284
- });
2285
- }), le(i), i.initialized = !0, le(i), i.emit("init"), i.emit("afterInit"), i;
2286
- }
2287
- destroy(e, i) {
2288
- e === void 0 && (e = !0), i === void 0 && (i = !0);
2289
- const n = this, {
2290
- params: s,
2291
- el: r,
2292
- wrapperEl: l,
2293
- slides: a
2294
- } = n;
2295
- return typeof n.params > "u" || n.destroyed || (n.emit("beforeDestroy"), n.initialized = !1, n.detachEvents(), s.loop && n.loopDestroy(), i && (n.removeClasses(), r && typeof r != "string" && r.removeAttribute("style"), l && l.removeAttribute("style"), a && a.length && a.forEach((o) => {
2296
- o.classList.remove(s.slideVisibleClass, s.slideFullyVisibleClass, s.slideActiveClass, s.slideNextClass, s.slidePrevClass), o.removeAttribute("style"), o.removeAttribute("data-swiper-slide-index");
2297
- })), n.emit("destroy"), Object.keys(n.eventsListeners).forEach((o) => {
2298
- n.off(o);
2299
- }), e !== !1 && (n.el && typeof n.el != "string" && (n.el.swiper = null), qe(n)), n.destroyed = !0), null;
2300
- }
2301
- static extendDefaults(e) {
2302
- G(re, e);
2303
- }
2304
- static get extendedDefaults() {
2305
- return re;
2306
- }
2307
- static get defaults() {
2308
- return oe;
2309
- }
2310
- static installModule(e) {
2311
- R.prototype.__modules__ || (R.prototype.__modules__ = []);
2312
- const i = R.prototype.__modules__;
2313
- typeof e == "function" && i.indexOf(e) < 0 && i.push(e);
2314
- }
2315
- static use(e) {
2316
- return Array.isArray(e) ? (e.forEach((i) => R.installModule(i)), R) : (R.installModule(e), R);
2317
- }
2318
- };
2319
- Object.keys(se).forEach((t) => {
2320
- Object.keys(se[t]).forEach((e) => {
2321
- ue.prototype[e] = se[t][e];
2322
- });
2323
- });
2324
- ue.use([st, rt]);
2325
- const Ae = [
2326
- "eventsPrefix",
2327
- "injectStyles",
2328
- "injectStylesUrls",
2329
- "modules",
2330
- "init",
2331
- "_direction",
2332
- "oneWayMovement",
2333
- "swiperElementNodeName",
2334
- "touchEventsTarget",
2335
- "initialSlide",
2336
- "_speed",
2337
- "cssMode",
2338
- "updateOnWindowResize",
2339
- "resizeObserver",
2340
- "nested",
2341
- "focusableElements",
2342
- "_enabled",
2343
- "_width",
2344
- "_height",
2345
- "preventInteractionOnTransition",
2346
- "userAgent",
2347
- "url",
2348
- "_edgeSwipeDetection",
2349
- "_edgeSwipeThreshold",
2350
- "_freeMode",
2351
- "_autoHeight",
2352
- "setWrapperSize",
2353
- "virtualTranslate",
2354
- "_effect",
2355
- "breakpoints",
2356
- "breakpointsBase",
2357
- "_spaceBetween",
2358
- "_slidesPerView",
2359
- "maxBackfaceHiddenSlides",
2360
- "_grid",
2361
- "_slidesPerGroup",
2362
- "_slidesPerGroupSkip",
2363
- "_slidesPerGroupAuto",
2364
- "_centeredSlides",
2365
- "_centeredSlidesBounds",
2366
- "_slidesOffsetBefore",
2367
- "_slidesOffsetAfter",
2368
- "normalizeSlideIndex",
2369
- "_centerInsufficientSlides",
2370
- "_watchOverflow",
2371
- "roundLengths",
2372
- "touchRatio",
2373
- "touchAngle",
2374
- "simulateTouch",
2375
- "_shortSwipes",
2376
- "_longSwipes",
2377
- "longSwipesRatio",
2378
- "longSwipesMs",
2379
- "_followFinger",
2380
- "allowTouchMove",
2381
- "_threshold",
2382
- "touchMoveStopPropagation",
2383
- "touchStartPreventDefault",
2384
- "touchStartForcePreventDefault",
2385
- "touchReleaseOnEdges",
2386
- "uniqueNavElements",
2387
- "_resistance",
2388
- "_resistanceRatio",
2389
- "_watchSlidesProgress",
2390
- "_grabCursor",
2391
- "preventClicks",
2392
- "preventClicksPropagation",
2393
- "_slideToClickedSlide",
2394
- "_loop",
2395
- "loopAdditionalSlides",
2396
- "loopAddBlankSlides",
2397
- "loopPreventsSliding",
2398
- "_rewind",
2399
- "_allowSlidePrev",
2400
- "_allowSlideNext",
2401
- "_swipeHandler",
2402
- "_noSwiping",
2403
- "noSwipingClass",
2404
- "noSwipingSelector",
2405
- "passiveListeners",
2406
- "containerModifierClass",
2407
- "slideClass",
2408
- "slideActiveClass",
2409
- "slideVisibleClass",
2410
- "slideFullyVisibleClass",
2411
- "slideNextClass",
2412
- "slidePrevClass",
2413
- "slideBlankClass",
2414
- "wrapperClass",
2415
- "lazyPreloaderClass",
2416
- "lazyPreloadPrevNext",
2417
- "runCallbacksOnInit",
2418
- "observer",
2419
- "observeParents",
2420
- "observeSlideChildren",
2421
- // modules
2422
- "a11y",
2423
- "_autoplay",
2424
- "_controller",
2425
- "coverflowEffect",
2426
- "cubeEffect",
2427
- "fadeEffect",
2428
- "flipEffect",
2429
- "creativeEffect",
2430
- "cardsEffect",
2431
- "hashNavigation",
2432
- "history",
2433
- "keyboard",
2434
- "mousewheel",
2435
- "_navigation",
2436
- "_pagination",
2437
- "parallax",
2438
- "_scrollbar",
2439
- "_thumbs",
2440
- "virtual",
2441
- "zoom",
2442
- "control"
2443
- ];
2444
- function $(t) {
2445
- return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object" && !t.__swiper__;
2446
- }
2447
- function q(t, e) {
2448
- const i = ["__proto__", "constructor", "prototype"];
2449
- Object.keys(e).filter((n) => i.indexOf(n) < 0).forEach((n) => {
2450
- typeof t[n] > "u" ? t[n] = e[n] : $(e[n]) && $(t[n]) && Object.keys(e[n]).length > 0 ? e[n].__swiper__ ? t[n] = e[n] : q(t[n], e[n]) : t[n] = e[n];
2451
- });
2452
- }
2453
- function _e(t) {
2454
- return t === void 0 && (t = {}), t.navigation && typeof t.navigation.nextEl > "u" && typeof t.navigation.prevEl > "u";
2455
- }
2456
- function Ge(t) {
2457
- return t === void 0 && (t = {}), t.pagination && typeof t.pagination.el > "u";
2458
- }
2459
- function De(t) {
2460
- return t === void 0 && (t = {}), t.scrollbar && typeof t.scrollbar.el > "u";
2461
- }
2462
- function Ne(t) {
2463
- t === void 0 && (t = "");
2464
- const e = t.split(" ").map((n) => n.trim()).filter((n) => !!n), i = [];
2465
- return e.forEach((n) => {
2466
- i.indexOf(n) < 0 && i.push(n);
2467
- }), i.join(" ");
2468
- }
2469
- function ui(t) {
2470
- return t === void 0 && (t = ""), t ? t.includes("swiper-wrapper") ? t : `swiper-wrapper ${t}` : "swiper-wrapper";
2471
- }
2472
- function fi(t) {
2473
- let {
2474
- swiper: e,
2475
- slides: i,
2476
- passedParams: n,
2477
- changedParams: s,
2478
- nextEl: r,
2479
- prevEl: l,
2480
- scrollbarEl: a,
2481
- paginationEl: o
2482
- } = t;
2483
- const d = s.filter((S) => S !== "children" && S !== "direction" && S !== "wrapperClass"), {
2484
- params: u,
2485
- pagination: f,
2486
- navigation: p,
2487
- scrollbar: h,
2488
- virtual: c,
2489
- thumbs: m
2490
- } = e;
2491
- let y, g, w, v, E, T, M, C;
2492
- s.includes("thumbs") && n.thumbs && n.thumbs.swiper && !n.thumbs.swiper.destroyed && u.thumbs && (!u.thumbs.swiper || u.thumbs.swiper.destroyed) && (y = !0), s.includes("controller") && n.controller && n.controller.control && u.controller && !u.controller.control && (g = !0), s.includes("pagination") && n.pagination && (n.pagination.el || o) && (u.pagination || u.pagination === !1) && f && !f.el && (w = !0), s.includes("scrollbar") && n.scrollbar && (n.scrollbar.el || a) && (u.scrollbar || u.scrollbar === !1) && h && !h.el && (v = !0), s.includes("navigation") && n.navigation && (n.navigation.prevEl || l) && (n.navigation.nextEl || r) && (u.navigation || u.navigation === !1) && p && !p.prevEl && !p.nextEl && (E = !0);
2493
- const x = (S) => {
2494
- e[S] && (e[S].destroy(), S === "navigation" ? (e.isElement && (e[S].prevEl.remove(), e[S].nextEl.remove()), u[S].prevEl = void 0, u[S].nextEl = void 0, e[S].prevEl = void 0, e[S].nextEl = void 0) : (e.isElement && e[S].el.remove(), u[S].el = void 0, e[S].el = void 0));
2495
- };
2496
- s.includes("loop") && e.isElement && (u.loop && !n.loop ? T = !0 : !u.loop && n.loop ? M = !0 : C = !0), d.forEach((S) => {
2497
- if ($(u[S]) && $(n[S]))
2498
- Object.assign(u[S], n[S]), (S === "navigation" || S === "pagination" || S === "scrollbar") && "enabled" in n[S] && !n[S].enabled && x(S);
2499
- else {
2500
- const b = n[S];
2501
- (b === !0 || b === !1) && (S === "navigation" || S === "pagination" || S === "scrollbar") ? b === !1 && x(S) : u[S] = n[S];
2502
- }
2503
- }), d.includes("controller") && !g && e.controller && e.controller.control && u.controller && u.controller.control && (e.controller.control = u.controller.control), s.includes("children") && i && c && u.virtual.enabled ? (c.slides = i, c.update(!0)) : s.includes("virtual") && c && u.virtual.enabled && (i && (c.slides = i), c.update(!0)), s.includes("children") && i && u.loop && (C = !0), y && m.init() && m.update(!0), g && (e.controller.control = u.controller.control), w && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-pagination"), o.part.add("pagination"), e.el.appendChild(o)), o && (u.pagination.el = o), f.init(), f.render(), f.update()), v && (e.isElement && (!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-scrollbar"), a.part.add("scrollbar"), e.el.appendChild(a)), a && (u.scrollbar.el = a), h.init(), h.updateSize(), h.setTranslate()), E && (e.isElement && ((!r || typeof r == "string") && (r = document.createElement("div"), r.classList.add("swiper-button-next"), me(r, e.hostEl.constructor.nextButtonSvg), r.part.add("button-next"), e.el.appendChild(r)), (!l || typeof l == "string") && (l = document.createElement("div"), l.classList.add("swiper-button-prev"), me(l, e.hostEl.constructor.prevButtonSvg), l.part.add("button-prev"), e.el.appendChild(l))), r && (u.navigation.nextEl = r), l && (u.navigation.prevEl = l), p.init(), p.update()), s.includes("allowSlideNext") && (e.allowSlideNext = n.allowSlideNext), s.includes("allowSlidePrev") && (e.allowSlidePrev = n.allowSlidePrev), s.includes("direction") && e.changeDirection(n.direction, !1), (T || C) && e.loopDestroy(), (M || C) && e.loopCreate(), e.update();
2504
- }
2505
- function be(t, e) {
2506
- t === void 0 && (t = {});
2507
- const i = {
2508
- on: {}
2509
- }, n = {}, s = {};
2510
- q(i, oe), i._emitClasses = !0, i.init = !1;
2511
- const r = {}, l = Ae.map((o) => o.replace(/_/, "")), a = Object.assign({}, t);
2512
- return Object.keys(a).forEach((o) => {
2513
- typeof t[o] > "u" || (l.indexOf(o) >= 0 ? $(t[o]) ? (i[o] = {}, s[o] = {}, q(i[o], t[o]), q(s[o], t[o])) : (i[o] = t[o], s[o] = t[o]) : o.search(/on[A-Z]/) === 0 && typeof t[o] == "function" ? i.on[`${o[2].toLowerCase()}${o.substr(3)}`] = t[o] : r[o] = t[o]);
2514
- }), ["navigation", "pagination", "scrollbar"].forEach((o) => {
2515
- i[o] === !0 && (i[o] = {}), i[o] === !1 && delete i[o];
2516
- }), {
2517
- params: i,
2518
- passedParams: s,
2519
- rest: r,
2520
- events: n
2521
- };
2522
- }
2523
- function ci(t, e) {
2524
- let {
2525
- el: i,
2526
- nextEl: n,
2527
- prevEl: s,
2528
- paginationEl: r,
2529
- scrollbarEl: l,
2530
- swiper: a
2531
- } = t;
2532
- _e(e) && n && s && (a.params.navigation.nextEl = n, a.originalParams.navigation.nextEl = n, a.params.navigation.prevEl = s, a.originalParams.navigation.prevEl = s), Ge(e) && r && (a.params.pagination.el = r, a.originalParams.pagination.el = r), De(e) && l && (a.params.scrollbar.el = l, a.originalParams.scrollbar.el = l), a.init(i);
2533
- }
2534
- function pi(t, e, i, n, s) {
2535
- const r = [];
2536
- if (!e) return r;
2537
- const l = (o) => {
2538
- r.indexOf(o) < 0 && r.push(o);
2539
- };
2540
- if (i && n) {
2541
- const o = n.map(s), d = i.map(s);
2542
- o.join("") !== d.join("") && l("children"), n.length !== i.length && l("children");
2543
- }
2544
- return Ae.filter((o) => o[0] === "_").map((o) => o.replace(/_/, "")).forEach((o) => {
2545
- if (o in t && o in e)
2546
- if ($(t[o]) && $(e[o])) {
2547
- const d = Object.keys(t[o]), u = Object.keys(e[o]);
2548
- d.length !== u.length ? l(o) : (d.forEach((f) => {
2549
- t[o][f] !== e[o][f] && l(o);
2550
- }), u.forEach((f) => {
2551
- t[o][f] !== e[o][f] && l(o);
2552
- }));
2553
- } else t[o] !== e[o] && l(o);
2554
- }), r;
2555
- }
2556
- const hi = (t) => {
2557
- !t || t.destroyed || !t.params.virtual || t.params.virtual && !t.params.virtual.enabled || (t.updateSlides(), t.updateProgress(), t.updateSlidesClasses(), t.emit("_virtualUpdated"), t.parallax && t.params.parallax && t.params.parallax.enabled && t.parallax.setTranslate());
2558
- };
2559
- function ae(t, e, i) {
2560
- t === void 0 && (t = {});
2561
- const n = [], s = {
2562
- "container-start": [],
2563
- "container-end": [],
2564
- "wrapper-start": [],
2565
- "wrapper-end": []
2566
- }, r = (l, a) => {
2567
- Array.isArray(l) && l.forEach((o) => {
2568
- const d = typeof o.type == "symbol";
2569
- a === "default" && (a = "container-end"), d && o.children ? r(o.children, a) : o.type && (o.type.name === "SwiperSlide" || o.type.name === "AsyncComponentWrapper") || o.componentOptions && o.componentOptions.tag === "SwiperSlide" ? n.push(o) : s[a] && s[a].push(o);
2570
- });
2571
- };
2572
- return Object.keys(t).forEach((l) => {
2573
- if (typeof t[l] != "function") return;
2574
- const a = t[l]();
2575
- r(a, l);
2576
- }), i.value = e.value, e.value = n, {
2577
- slides: n,
2578
- slots: s
2579
- };
2580
- }
2581
- function mi(t, e, i) {
2582
- if (!i) return null;
2583
- const n = (u) => {
2584
- let f = u;
2585
- return u < 0 ? f = e.length + u : f >= e.length && (f = f - e.length), f;
2586
- }, s = t.value.isHorizontal() ? {
2587
- [t.value.rtlTranslate ? "right" : "left"]: `${i.offset}px`
2588
- } : {
2589
- top: `${i.offset}px`
2590
- }, {
2591
- from: r,
2592
- to: l
2593
- } = i, a = t.value.params.loop ? -e.length : 0, o = t.value.params.loop ? e.length * 2 : e.length, d = [];
2594
- for (let u = a; u < o; u += 1)
2595
- u >= r && u <= l && d.length < e.length && d.push(e[n(u)]);
2596
- return d.map((u) => {
2597
- if (u.props || (u.props = {}), u.props.style || (u.props.style = {}), u.props.swiperRef = t, u.props.style = s, u.type)
2598
- return D(u.type, {
2599
- ...u.props
2600
- }, u.children);
2601
- if (u.componentOptions)
2602
- return D(u.componentOptions.Ctor, {
2603
- ...u.props
2604
- }, u.componentOptions.children);
2605
- });
2606
- }
2607
- const wi = {
2608
- name: "Swiper",
2609
- props: {
2610
- tag: {
2611
- type: String,
2612
- default: "div"
2613
- },
2614
- wrapperTag: {
2615
- type: String,
2616
- default: "div"
2617
- },
2618
- modules: {
2619
- type: Array,
2620
- default: void 0
2621
- },
2622
- init: {
2623
- type: Boolean,
2624
- default: void 0
2625
- },
2626
- direction: {
2627
- type: String,
2628
- default: void 0
2629
- },
2630
- oneWayMovement: {
2631
- type: Boolean,
2632
- default: void 0
2633
- },
2634
- swiperElementNodeName: {
2635
- type: String,
2636
- default: "SWIPER-CONTAINER"
2637
- },
2638
- touchEventsTarget: {
2639
- type: String,
2640
- default: void 0
2641
- },
2642
- initialSlide: {
2643
- type: Number,
2644
- default: void 0
2645
- },
2646
- speed: {
2647
- type: Number,
2648
- default: void 0
2649
- },
2650
- cssMode: {
2651
- type: Boolean,
2652
- default: void 0
2653
- },
2654
- updateOnWindowResize: {
2655
- type: Boolean,
2656
- default: void 0
2657
- },
2658
- resizeObserver: {
2659
- type: Boolean,
2660
- default: void 0
2661
- },
2662
- nested: {
2663
- type: Boolean,
2664
- default: void 0
2665
- },
2666
- focusableElements: {
2667
- type: String,
2668
- default: void 0
2669
- },
2670
- width: {
2671
- type: Number,
2672
- default: void 0
2673
- },
2674
- height: {
2675
- type: Number,
2676
- default: void 0
2677
- },
2678
- preventInteractionOnTransition: {
2679
- type: Boolean,
2680
- default: void 0
2681
- },
2682
- userAgent: {
2683
- type: String,
2684
- default: void 0
2685
- },
2686
- url: {
2687
- type: String,
2688
- default: void 0
2689
- },
2690
- edgeSwipeDetection: {
2691
- type: [Boolean, String],
2692
- default: void 0
2693
- },
2694
- edgeSwipeThreshold: {
2695
- type: Number,
2696
- default: void 0
2697
- },
2698
- autoHeight: {
2699
- type: Boolean,
2700
- default: void 0
2701
- },
2702
- setWrapperSize: {
2703
- type: Boolean,
2704
- default: void 0
2705
- },
2706
- virtualTranslate: {
2707
- type: Boolean,
2708
- default: void 0
2709
- },
2710
- effect: {
2711
- type: String,
2712
- default: void 0
2713
- },
2714
- breakpoints: {
2715
- type: Object,
2716
- default: void 0
2717
- },
2718
- breakpointsBase: {
2719
- type: String,
2720
- default: void 0
2721
- },
2722
- spaceBetween: {
2723
- type: [Number, String],
2724
- default: void 0
2725
- },
2726
- slidesPerView: {
2727
- type: [Number, String],
2728
- default: void 0
2729
- },
2730
- maxBackfaceHiddenSlides: {
2731
- type: Number,
2732
- default: void 0
2733
- },
2734
- slidesPerGroup: {
2735
- type: Number,
2736
- default: void 0
2737
- },
2738
- slidesPerGroupSkip: {
2739
- type: Number,
2740
- default: void 0
2741
- },
2742
- slidesPerGroupAuto: {
2743
- type: Boolean,
2744
- default: void 0
2745
- },
2746
- centeredSlides: {
2747
- type: Boolean,
2748
- default: void 0
2749
- },
2750
- centeredSlidesBounds: {
2751
- type: Boolean,
2752
- default: void 0
2753
- },
2754
- slidesOffsetBefore: {
2755
- type: Number,
2756
- default: void 0
2757
- },
2758
- slidesOffsetAfter: {
2759
- type: Number,
2760
- default: void 0
2761
- },
2762
- normalizeSlideIndex: {
2763
- type: Boolean,
2764
- default: void 0
2765
- },
2766
- centerInsufficientSlides: {
2767
- type: Boolean,
2768
- default: void 0
2769
- },
2770
- watchOverflow: {
2771
- type: Boolean,
2772
- default: void 0
2773
- },
2774
- roundLengths: {
2775
- type: Boolean,
2776
- default: void 0
2777
- },
2778
- touchRatio: {
2779
- type: Number,
2780
- default: void 0
2781
- },
2782
- touchAngle: {
2783
- type: Number,
2784
- default: void 0
2785
- },
2786
- simulateTouch: {
2787
- type: Boolean,
2788
- default: void 0
2789
- },
2790
- shortSwipes: {
2791
- type: Boolean,
2792
- default: void 0
2793
- },
2794
- longSwipes: {
2795
- type: Boolean,
2796
- default: void 0
2797
- },
2798
- longSwipesRatio: {
2799
- type: Number,
2800
- default: void 0
2801
- },
2802
- longSwipesMs: {
2803
- type: Number,
2804
- default: void 0
2805
- },
2806
- followFinger: {
2807
- type: Boolean,
2808
- default: void 0
2809
- },
2810
- allowTouchMove: {
2811
- type: Boolean,
2812
- default: void 0
2813
- },
2814
- threshold: {
2815
- type: Number,
2816
- default: void 0
2817
- },
2818
- touchMoveStopPropagation: {
2819
- type: Boolean,
2820
- default: void 0
2821
- },
2822
- touchStartPreventDefault: {
2823
- type: Boolean,
2824
- default: void 0
2825
- },
2826
- touchStartForcePreventDefault: {
2827
- type: Boolean,
2828
- default: void 0
2829
- },
2830
- touchReleaseOnEdges: {
2831
- type: Boolean,
2832
- default: void 0
2833
- },
2834
- uniqueNavElements: {
2835
- type: Boolean,
2836
- default: void 0
2837
- },
2838
- resistance: {
2839
- type: Boolean,
2840
- default: void 0
2841
- },
2842
- resistanceRatio: {
2843
- type: Number,
2844
- default: void 0
2845
- },
2846
- watchSlidesProgress: {
2847
- type: Boolean,
2848
- default: void 0
2849
- },
2850
- grabCursor: {
2851
- type: Boolean,
2852
- default: void 0
2853
- },
2854
- preventClicks: {
2855
- type: Boolean,
2856
- default: void 0
2857
- },
2858
- preventClicksPropagation: {
2859
- type: Boolean,
2860
- default: void 0
2861
- },
2862
- slideToClickedSlide: {
2863
- type: Boolean,
2864
- default: void 0
2865
- },
2866
- loop: {
2867
- type: Boolean,
2868
- default: void 0
2869
- },
2870
- loopedSlides: {
2871
- type: Number,
2872
- default: void 0
2873
- },
2874
- loopPreventsSliding: {
2875
- type: Boolean,
2876
- default: void 0
2877
- },
2878
- loopAdditionalSlides: {
2879
- type: Number,
2880
- default: void 0
2881
- },
2882
- loopAddBlankSlides: {
2883
- type: Boolean,
2884
- default: void 0
2885
- },
2886
- rewind: {
2887
- type: Boolean,
2888
- default: void 0
2889
- },
2890
- allowSlidePrev: {
2891
- type: Boolean,
2892
- default: void 0
2893
- },
2894
- allowSlideNext: {
2895
- type: Boolean,
2896
- default: void 0
2897
- },
2898
- swipeHandler: {
2899
- type: Boolean,
2900
- default: void 0
2901
- },
2902
- noSwiping: {
2903
- type: Boolean,
2904
- default: void 0
2905
- },
2906
- noSwipingClass: {
2907
- type: String,
2908
- default: void 0
2909
- },
2910
- noSwipingSelector: {
2911
- type: String,
2912
- default: void 0
2913
- },
2914
- passiveListeners: {
2915
- type: Boolean,
2916
- default: void 0
2917
- },
2918
- containerModifierClass: {
2919
- type: String,
2920
- default: void 0
2921
- },
2922
- slideClass: {
2923
- type: String,
2924
- default: void 0
2925
- },
2926
- slideActiveClass: {
2927
- type: String,
2928
- default: void 0
2929
- },
2930
- slideVisibleClass: {
2931
- type: String,
2932
- default: void 0
2933
- },
2934
- slideFullyVisibleClass: {
2935
- type: String,
2936
- default: void 0
2937
- },
2938
- slideBlankClass: {
2939
- type: String,
2940
- default: void 0
2941
- },
2942
- slideNextClass: {
2943
- type: String,
2944
- default: void 0
2945
- },
2946
- slidePrevClass: {
2947
- type: String,
2948
- default: void 0
2949
- },
2950
- wrapperClass: {
2951
- type: String,
2952
- default: void 0
2953
- },
2954
- lazyPreloaderClass: {
2955
- type: String,
2956
- default: void 0
2957
- },
2958
- lazyPreloadPrevNext: {
2959
- type: Number,
2960
- default: void 0
2961
- },
2962
- runCallbacksOnInit: {
2963
- type: Boolean,
2964
- default: void 0
2965
- },
2966
- observer: {
2967
- type: Boolean,
2968
- default: void 0
2969
- },
2970
- observeParents: {
2971
- type: Boolean,
2972
- default: void 0
2973
- },
2974
- observeSlideChildren: {
2975
- type: Boolean,
2976
- default: void 0
2977
- },
2978
- a11y: {
2979
- type: [Boolean, Object],
2980
- default: void 0
2981
- },
2982
- autoplay: {
2983
- type: [Boolean, Object],
2984
- default: void 0
2985
- },
2986
- controller: {
2987
- type: Object,
2988
- default: void 0
2989
- },
2990
- coverflowEffect: {
2991
- type: Object,
2992
- default: void 0
2993
- },
2994
- cubeEffect: {
2995
- type: Object,
2996
- default: void 0
2997
- },
2998
- fadeEffect: {
2999
- type: Object,
3000
- default: void 0
3001
- },
3002
- flipEffect: {
3003
- type: Object,
3004
- default: void 0
3005
- },
3006
- creativeEffect: {
3007
- type: Object,
3008
- default: void 0
3009
- },
3010
- cardsEffect: {
3011
- type: Object,
3012
- default: void 0
3013
- },
3014
- hashNavigation: {
3015
- type: [Boolean, Object],
3016
- default: void 0
3017
- },
3018
- history: {
3019
- type: [Boolean, Object],
3020
- default: void 0
3021
- },
3022
- keyboard: {
3023
- type: [Boolean, Object],
3024
- default: void 0
3025
- },
3026
- mousewheel: {
3027
- type: [Boolean, Object],
3028
- default: void 0
3029
- },
3030
- navigation: {
3031
- type: [Boolean, Object],
3032
- default: void 0
3033
- },
3034
- pagination: {
3035
- type: [Boolean, Object],
3036
- default: void 0
3037
- },
3038
- parallax: {
3039
- type: [Boolean, Object],
3040
- default: void 0
3041
- },
3042
- scrollbar: {
3043
- type: [Boolean, Object],
3044
- default: void 0
3045
- },
3046
- thumbs: {
3047
- type: Object,
3048
- default: void 0
3049
- },
3050
- virtual: {
3051
- type: [Boolean, Object],
3052
- default: void 0
3053
- },
3054
- zoom: {
3055
- type: [Boolean, Object],
3056
- default: void 0
3057
- },
3058
- grid: {
3059
- type: [Object],
3060
- default: void 0
3061
- },
3062
- freeMode: {
3063
- type: [Boolean, Object],
3064
- default: void 0
3065
- },
3066
- enabled: {
3067
- type: Boolean,
3068
- default: void 0
3069
- }
3070
- },
3071
- emits: ["_beforeBreakpoint", "_containerClasses", "_slideClass", "_slideClasses", "_swiper", "_freeModeNoMomentumRelease", "_virtualUpdated", "activeIndexChange", "afterInit", "autoplay", "autoplayStart", "autoplayStop", "autoplayPause", "autoplayResume", "autoplayTimeLeft", "beforeDestroy", "beforeInit", "beforeLoopFix", "beforeResize", "beforeSlideChangeStart", "beforeTransitionStart", "breakpoint", "changeDirection", "click", "disable", "doubleTap", "doubleClick", "destroy", "enable", "fromEdge", "hashChange", "hashSet", "init", "keyPress", "lock", "loopFix", "momentumBounce", "navigationHide", "navigationShow", "navigationPrev", "navigationNext", "observerUpdate", "orientationchange", "paginationHide", "paginationRender", "paginationShow", "paginationUpdate", "progress", "reachBeginning", "reachEnd", "realIndexChange", "resize", "scroll", "scrollbarDragEnd", "scrollbarDragMove", "scrollbarDragStart", "setTransition", "setTranslate", "slidesUpdated", "slideChange", "slideChangeTransitionEnd", "slideChangeTransitionStart", "slideNextTransitionEnd", "slideNextTransitionStart", "slidePrevTransitionEnd", "slidePrevTransitionStart", "slideResetTransitionStart", "slideResetTransitionEnd", "sliderMove", "sliderFirstMove", "slidesLengthChange", "slidesGridLengthChange", "snapGridLengthChange", "snapIndexChange", "swiper", "tap", "toEdge", "touchEnd", "touchMove", "touchMoveOpposite", "touchStart", "transitionEnd", "transitionStart", "unlock", "update", "virtualUpdate", "zoomChange"],
3072
- setup(t, e) {
3073
- let {
3074
- slots: i,
3075
- emit: n
3076
- } = e;
3077
- const {
3078
- tag: s,
3079
- wrapperTag: r
3080
- } = t, l = _("swiper"), a = _(null), o = _(!1), d = _(!1), u = _(null), f = _(null), p = _(null), h = {
3081
- value: []
3082
- }, c = {
3083
- value: []
3084
- }, m = _(null), y = _(null), g = _(null), w = _(null), {
3085
- params: v,
3086
- passedParams: E
3087
- } = be(t);
3088
- ae(i, h, c), p.value = E, c.value = h.value;
3089
- const T = () => {
3090
- ae(i, h, c), o.value = !0;
3091
- };
3092
- v.onAny = function(x) {
3093
- for (var S = arguments.length, b = new Array(S > 1 ? S - 1 : 0), P = 1; P < S; P++)
3094
- b[P - 1] = arguments[P];
3095
- n(x, ...b);
3096
- }, Object.assign(v.on, {
3097
- _beforeBreakpoint: T,
3098
- _containerClasses(x, S) {
3099
- l.value = S;
3100
- }
3101
- });
3102
- const M = {
3103
- ...v
3104
- };
3105
- if (delete M.wrapperClass, f.value = new ue(M), f.value.virtual && f.value.params.virtual.enabled) {
3106
- f.value.virtual.slides = h.value;
3107
- const x = {
3108
- cache: !1,
3109
- slides: h.value,
3110
- renderExternal: (S) => {
3111
- a.value = S;
3112
- },
3113
- renderExternalUpdate: !1
3114
- };
3115
- q(f.value.params.virtual, x), q(f.value.originalParams.virtual, x);
3116
- }
3117
- ye(() => {
3118
- !d.value && f.value && (f.value.emitSlidesClasses(), d.value = !0);
3119
- const {
3120
- passedParams: x
3121
- } = be(t), S = pi(x, p.value, h.value, c.value, (b) => b.props && b.props.key);
3122
- p.value = x, (S.length || o.value) && f.value && !f.value.destroyed && fi({
3123
- swiper: f.value,
3124
- slides: h.value,
3125
- passedParams: x,
3126
- changedParams: S,
3127
- nextEl: m.value,
3128
- prevEl: y.value,
3129
- scrollbarEl: w.value,
3130
- paginationEl: g.value
3131
- }), o.value = !1;
3132
- }), Te("swiper", f), Re(a, () => {
3133
- Fe(() => {
3134
- hi(f.value);
3135
- });
3136
- }), xe(() => {
3137
- u.value && (ci({
3138
- el: u.value,
3139
- nextEl: m.value,
3140
- prevEl: y.value,
3141
- paginationEl: g.value,
3142
- scrollbarEl: w.value,
3143
- swiper: f.value
3144
- }, v), n("swiper", f.value));
3145
- }), Ee(() => {
3146
- f.value && !f.value.destroyed && f.value.destroy(!0, !1);
3147
- });
3148
- function C(x) {
3149
- return v.virtual ? mi(f, x, a.value) : (x.forEach((S, b) => {
3150
- S.props || (S.props = {}), S.props.swiperRef = f, S.props.swiperSlideIndex = b;
3151
- }), x);
3152
- }
3153
- return () => {
3154
- const {
3155
- slides: x,
3156
- slots: S
3157
- } = ae(i, h, c);
3158
- return D(s, {
3159
- ref: u,
3160
- class: Ne(l.value)
3161
- }, [S["container-start"], D(r, {
3162
- class: ui(v.wrapperClass)
3163
- }, [S["wrapper-start"], C(x), S["wrapper-end"]]), _e(t) && [D("div", {
3164
- ref: y,
3165
- class: "swiper-button-prev"
3166
- }), D("div", {
3167
- ref: m,
3168
- class: "swiper-button-next"
3169
- })], De(t) && D("div", {
3170
- ref: w,
3171
- class: "swiper-scrollbar"
3172
- }), Ge(t) && D("div", {
3173
- ref: g,
3174
- class: "swiper-pagination"
3175
- }), S["container-end"]]);
3176
- };
3177
- }
3178
- }, Si = {
3179
- name: "SwiperSlide",
3180
- props: {
3181
- tag: {
3182
- type: String,
3183
- default: "div"
3184
- },
3185
- swiperRef: {
3186
- type: Object,
3187
- required: !1
3188
- },
3189
- swiperSlideIndex: {
3190
- type: Number,
3191
- default: void 0,
3192
- required: !1
3193
- },
3194
- zoom: {
3195
- type: Boolean,
3196
- default: void 0,
3197
- required: !1
3198
- },
3199
- lazy: {
3200
- type: Boolean,
3201
- default: !1,
3202
- required: !1
3203
- },
3204
- virtualIndex: {
3205
- type: [String, Number],
3206
- default: void 0
3207
- }
3208
- },
3209
- setup(t, e) {
3210
- let {
3211
- slots: i
3212
- } = e, n = !1;
3213
- const {
3214
- swiperRef: s
3215
- } = t, r = _(null), l = _("swiper-slide"), a = _(!1);
3216
- function o(f, p, h) {
3217
- p === r.value && (l.value = h);
3218
- }
3219
- xe(() => {
3220
- !s || !s.value || (s.value.on("_slideClass", o), n = !0);
3221
- }), He(() => {
3222
- n || !s || !s.value || (s.value.on("_slideClass", o), n = !0);
3223
- }), ye(() => {
3224
- !r.value || !s || !s.value || (typeof t.swiperSlideIndex < "u" && (r.value.swiperSlideIndex = t.swiperSlideIndex), s.value.destroyed && l.value !== "swiper-slide" && (l.value = "swiper-slide"));
3225
- }), Ee(() => {
3226
- !s || !s.value || s.value.off("_slideClass", o);
3227
- });
3228
- const d = je(() => ({
3229
- isActive: l.value.indexOf("swiper-slide-active") >= 0,
3230
- isVisible: l.value.indexOf("swiper-slide-visible") >= 0,
3231
- isPrev: l.value.indexOf("swiper-slide-prev") >= 0,
3232
- isNext: l.value.indexOf("swiper-slide-next") >= 0
3233
- }));
3234
- Te("swiperSlide", d);
3235
- const u = () => {
3236
- a.value = !0;
3237
- };
3238
- return () => D(t.tag, {
3239
- class: Ne(`${l.value}`),
3240
- ref: r,
3241
- "data-swiper-slide-index": typeof t.virtualIndex > "u" && s && s.value && s.value.params.loop ? t.swiperSlideIndex : t.virtualIndex,
3242
- onLoadCapture: u
3243
- }, t.zoom ? D("div", {
3244
- class: "swiper-zoom-container",
3245
- "data-swiper-zoom": typeof t.zoom == "number" ? t.zoom : void 0
3246
- }, [i.default && i.default(d.value), t.lazy && !a.value && D("div", {
3247
- class: "swiper-lazy-preloader"
3248
- })]) : [i.default && i.default(d.value), t.lazy && !a.value && D("div", {
3249
- class: "swiper-lazy-preloader"
3250
- })]);
3251
- }
3252
- };
3253
- function gi(t, e, i, n) {
3254
- return t.params.createElements && Object.keys(n).forEach((s) => {
3255
- if (!i[s] && i.auto === !0) {
3256
- let r = N(t.el, `.${n[s]}`)[0];
3257
- r || (r = Z("div", n[s]), r.className = n[s], t.el.append(r)), i[s] = r, e[s] = r;
3258
- }
3259
- }), i;
3260
- }
3261
- function bi(t) {
3262
- let {
3263
- swiper: e,
3264
- extendParams: i,
3265
- on: n,
3266
- emit: s
3267
- } = t;
3268
- i({
3269
- navigation: {
3270
- nextEl: null,
3271
- prevEl: null,
3272
- hideOnClick: !1,
3273
- disabledClass: "swiper-button-disabled",
3274
- hiddenClass: "swiper-button-hidden",
3275
- lockClass: "swiper-button-lock",
3276
- navigationDisabledClass: "swiper-navigation-disabled"
3277
- }
3278
- }), e.navigation = {
3279
- nextEl: null,
3280
- prevEl: null
3281
- };
3282
- function r(c) {
3283
- let m;
3284
- return c && typeof c == "string" && e.isElement && (m = e.el.querySelector(c) || e.hostEl.querySelector(c), m) ? m : (c && (typeof c == "string" && (m = [...document.querySelectorAll(c)]), e.params.uniqueNavElements && typeof c == "string" && m && m.length > 1 && e.el.querySelectorAll(c).length === 1 ? m = e.el.querySelector(c) : m && m.length === 1 && (m = m[0])), c && !m ? c : m);
3285
- }
3286
- function l(c, m) {
3287
- const y = e.params.navigation;
3288
- c = k(c), c.forEach((g) => {
3289
- g && (g.classList[m ? "add" : "remove"](...y.disabledClass.split(" ")), g.tagName === "BUTTON" && (g.disabled = m), e.params.watchOverflow && e.enabled && g.classList[e.isLocked ? "add" : "remove"](y.lockClass));
3290
- });
3291
- }
3292
- function a() {
3293
- const {
3294
- nextEl: c,
3295
- prevEl: m
3296
- } = e.navigation;
3297
- if (e.params.loop) {
3298
- l(m, !1), l(c, !1);
3299
- return;
3300
- }
3301
- l(m, e.isBeginning && !e.params.rewind), l(c, e.isEnd && !e.params.rewind);
3302
- }
3303
- function o(c) {
3304
- c.preventDefault(), !(e.isBeginning && !e.params.loop && !e.params.rewind) && (e.slidePrev(), s("navigationPrev"));
3305
- }
3306
- function d(c) {
3307
- c.preventDefault(), !(e.isEnd && !e.params.loop && !e.params.rewind) && (e.slideNext(), s("navigationNext"));
3308
- }
3309
- function u() {
3310
- const c = e.params.navigation;
3311
- if (e.params.navigation = gi(e, e.originalParams.navigation, e.params.navigation, {
3312
- nextEl: "swiper-button-next",
3313
- prevEl: "swiper-button-prev"
3314
- }), !(c.nextEl || c.prevEl)) return;
3315
- let m = r(c.nextEl), y = r(c.prevEl);
3316
- Object.assign(e.navigation, {
3317
- nextEl: m,
3318
- prevEl: y
3319
- }), m = k(m), y = k(y);
3320
- const g = (w, v) => {
3321
- w && w.addEventListener("click", v === "next" ? d : o), !e.enabled && w && w.classList.add(...c.lockClass.split(" "));
3322
- };
3323
- m.forEach((w) => g(w, "next")), y.forEach((w) => g(w, "prev"));
3324
- }
3325
- function f() {
3326
- let {
3327
- nextEl: c,
3328
- prevEl: m
3329
- } = e.navigation;
3330
- c = k(c), m = k(m);
3331
- const y = (g, w) => {
3332
- g.removeEventListener("click", w === "next" ? d : o), g.classList.remove(...e.params.navigation.disabledClass.split(" "));
3333
- };
3334
- c.forEach((g) => y(g, "next")), m.forEach((g) => y(g, "prev"));
3335
- }
3336
- n("init", () => {
3337
- e.params.navigation.enabled === !1 ? h() : (u(), a());
3338
- }), n("toEdge fromEdge lock unlock", () => {
3339
- a();
3340
- }), n("destroy", () => {
3341
- f();
3342
- }), n("enable disable", () => {
3343
- let {
3344
- nextEl: c,
3345
- prevEl: m
3346
- } = e.navigation;
3347
- if (c = k(c), m = k(m), e.enabled) {
3348
- a();
3349
- return;
3350
- }
3351
- [...c, ...m].filter((y) => !!y).forEach((y) => y.classList.add(e.params.navigation.lockClass));
3352
- }), n("click", (c, m) => {
3353
- let {
3354
- nextEl: y,
3355
- prevEl: g
3356
- } = e.navigation;
3357
- y = k(y), g = k(g);
3358
- const w = m.target;
3359
- let v = g.includes(w) || y.includes(w);
3360
- if (e.isElement && !v) {
3361
- const E = m.path || m.composedPath && m.composedPath();
3362
- E && (v = E.find((T) => y.includes(T) || g.includes(T)));
3363
- }
3364
- if (e.params.navigation.hideOnClick && !v) {
3365
- if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === w || e.pagination.el.contains(w))) return;
3366
- let E;
3367
- y.length ? E = y[0].classList.contains(e.params.navigation.hiddenClass) : g.length && (E = g[0].classList.contains(e.params.navigation.hiddenClass)), s(E === !0 ? "navigationShow" : "navigationHide"), [...y, ...g].filter((T) => !!T).forEach((T) => T.classList.toggle(e.params.navigation.hiddenClass));
3368
- }
3369
- });
3370
- const p = () => {
3371
- e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")), u(), a();
3372
- }, h = () => {
3373
- e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")), f();
3374
- };
3375
- Object.assign(e.navigation, {
3376
- enable: p,
3377
- disable: h,
3378
- update: a,
3379
- init: u,
3380
- destroy: f
3381
- });
3382
- }
3383
- export {
3384
- bi as N,
3385
- wi as S,
3386
- Si as a
3387
- };