@zappway/embeds 1.1.15 → 1.1.16

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 (305) hide show
  1. package/dist/chatbox/index.global.js +69 -69
  2. package/dist/chatbox/index.js +3 -3
  3. package/dist/chatbox/legacy.js +1 -1
  4. package/dist/form/index.js +3 -3
  5. package/dist/locales/locales-Integrations/ar/translations.json +14 -0
  6. package/dist/locales/locales-Integrations/az/translations.json +27 -13
  7. package/dist/locales/locales-Integrations/bg/translations.json +14 -0
  8. package/dist/locales/locales-Integrations/bn/translations.json +16 -2
  9. package/dist/locales/locales-Integrations/ca/translations.json +27 -13
  10. package/dist/locales/locales-Integrations/cs/translations.json +27 -13
  11. package/dist/locales/locales-Integrations/da/translations.json +27 -13
  12. package/dist/locales/locales-Integrations/de/translations.json +27 -13
  13. package/dist/locales/locales-Integrations/el/translations.json +14 -0
  14. package/dist/locales/locales-Integrations/en/translations.json +27 -13
  15. package/dist/locales/locales-Integrations/eo/translations.json +27 -13
  16. package/dist/locales/locales-Integrations/es/translations.json +27 -13
  17. package/dist/locales/locales-Integrations/et/translations.json +17 -3
  18. package/dist/locales/locales-Integrations/fa/translations.json +14 -0
  19. package/dist/locales/locales-Integrations/fi/translations.json +27 -13
  20. package/dist/locales/locales-Integrations/fr/translations.json +27 -13
  21. package/dist/locales/locales-Integrations/ga/translations.json +14 -0
  22. package/dist/locales/locales-Integrations/he/translations.json +16 -2
  23. package/dist/locales/locales-Integrations/hi/translations.json +16 -2
  24. package/dist/locales/locales-Integrations/hu/translations.json +14 -0
  25. package/dist/locales/locales-Integrations/id/translations.json +14 -0
  26. package/dist/locales/locales-Integrations/it/translations.json +27 -13
  27. package/dist/locales/locales-Integrations/ja/translations.json +14 -0
  28. package/dist/locales/locales-Integrations/ko/translations.json +14 -0
  29. package/dist/locales/locales-Integrations/lt/translations.json +27 -13
  30. package/dist/locales/locales-Integrations/lv/translations.json +14 -0
  31. package/dist/locales/locales-Integrations/ms/translations.json +14 -0
  32. package/dist/locales/locales-Integrations/nb/translations.json +27 -13
  33. package/dist/locales/locales-Integrations/nl/translations.json +27 -13
  34. package/dist/locales/locales-Integrations/pl/translations.json +27 -13
  35. package/dist/locales/locales-Integrations/pt/translations.json +27 -13
  36. package/dist/locales/locales-Integrations/pt-BR/translations.json +25 -11
  37. package/dist/locales/locales-Integrations/ro/translations.json +27 -13
  38. package/dist/locales/locales-Integrations/ru/translations.json +14 -0
  39. package/dist/locales/locales-Integrations/sk/translations.json +27 -13
  40. package/dist/locales/locales-Integrations/sl/translations.json +27 -13
  41. package/dist/locales/locales-Integrations/sv/translations.json +27 -13
  42. package/dist/locales/locales-Integrations/th/translations.json +16 -2
  43. package/dist/locales/locales-Integrations/tl/translations.json +26 -12
  44. package/dist/locales/locales-Integrations/tr/translations.json +27 -13
  45. package/dist/locales/locales-Integrations/uk/translations.json +14 -0
  46. package/dist/locales/locales-Integrations/ur/translations.json +16 -2
  47. package/dist/locales/locales-Integrations/zh/translations.json +14 -0
  48. package/dist/locales/locales-ZappWay/ar/MakeSettings.json +7 -0
  49. package/dist/locales/locales-ZappWay/ar/ZapierSettings.json +7 -0
  50. package/dist/locales/locales-ZappWay/ar/integrations.json +14 -0
  51. package/dist/locales/locales-ZappWay/ar/translations.json +28 -0
  52. package/dist/locales/locales-ZappWay/az/MakeSettings.json +7 -0
  53. package/dist/locales/locales-ZappWay/az/Make_IntegrationSettings.json +6 -6
  54. package/dist/locales/locales-ZappWay/az/ZapierSettings.json +7 -0
  55. package/dist/locales/locales-ZappWay/az/Zapier_IntegrationSettings.json +6 -6
  56. package/dist/locales/locales-ZappWay/az/crispConfig.json +1 -1
  57. package/dist/locales/locales-ZappWay/az/integrations.json +27 -13
  58. package/dist/locales/locales-ZappWay/az/translations.json +54 -26
  59. package/dist/locales/locales-ZappWay/bg/MakeSettings.json +7 -0
  60. package/dist/locales/locales-ZappWay/bg/ZapierSettings.json +7 -0
  61. package/dist/locales/locales-ZappWay/bg/integrations.json +14 -0
  62. package/dist/locales/locales-ZappWay/bg/translations.json +28 -0
  63. package/dist/locales/locales-ZappWay/bn/MakeSettings.json +7 -0
  64. package/dist/locales/locales-ZappWay/bn/Make_IntegrationSettings.json +1 -1
  65. package/dist/locales/locales-ZappWay/bn/ZapierSettings.json +7 -0
  66. package/dist/locales/locales-ZappWay/bn/Zapier_IntegrationSettings.json +1 -1
  67. package/dist/locales/locales-ZappWay/bn/integrations.json +16 -2
  68. package/dist/locales/locales-ZappWay/bn/translations.json +32 -4
  69. package/dist/locales/locales-ZappWay/ca/MakeSettings.json +7 -0
  70. package/dist/locales/locales-ZappWay/ca/Make_IntegrationSettings.json +6 -6
  71. package/dist/locales/locales-ZappWay/ca/ZapierSettings.json +7 -0
  72. package/dist/locales/locales-ZappWay/ca/Zapier_IntegrationSettings.json +6 -6
  73. package/dist/locales/locales-ZappWay/ca/crispConfig.json +1 -1
  74. package/dist/locales/locales-ZappWay/ca/integrations.json +27 -13
  75. package/dist/locales/locales-ZappWay/ca/translations.json +54 -26
  76. package/dist/locales/locales-ZappWay/cs/MakeSettings.json +7 -0
  77. package/dist/locales/locales-ZappWay/cs/Make_IntegrationSettings.json +6 -6
  78. package/dist/locales/locales-ZappWay/cs/ZapierSettings.json +7 -0
  79. package/dist/locales/locales-ZappWay/cs/Zapier_IntegrationSettings.json +6 -6
  80. package/dist/locales/locales-ZappWay/cs/crispConfig.json +1 -1
  81. package/dist/locales/locales-ZappWay/cs/integrations.json +27 -13
  82. package/dist/locales/locales-ZappWay/cs/translations.json +54 -26
  83. package/dist/locales/locales-ZappWay/da/MakeSettings.json +7 -0
  84. package/dist/locales/locales-ZappWay/da/Make_IntegrationSettings.json +6 -6
  85. package/dist/locales/locales-ZappWay/da/ZapierSettings.json +7 -0
  86. package/dist/locales/locales-ZappWay/da/Zapier_IntegrationSettings.json +6 -6
  87. package/dist/locales/locales-ZappWay/da/crispConfig.json +1 -1
  88. package/dist/locales/locales-ZappWay/da/integrations.json +27 -13
  89. package/dist/locales/locales-ZappWay/da/translations.json +54 -26
  90. package/dist/locales/locales-ZappWay/de/MakeSettings.json +7 -0
  91. package/dist/locales/locales-ZappWay/de/Make_IntegrationSettings.json +6 -6
  92. package/dist/locales/locales-ZappWay/de/ZapierSettings.json +7 -0
  93. package/dist/locales/locales-ZappWay/de/Zapier_IntegrationSettings.json +6 -6
  94. package/dist/locales/locales-ZappWay/de/crispConfig.json +1 -1
  95. package/dist/locales/locales-ZappWay/de/integrations.json +27 -13
  96. package/dist/locales/locales-ZappWay/de/translations.json +54 -26
  97. package/dist/locales/locales-ZappWay/el/MakeSettings.json +7 -0
  98. package/dist/locales/locales-ZappWay/el/ZapierSettings.json +7 -0
  99. package/dist/locales/locales-ZappWay/el/integrations.json +14 -0
  100. package/dist/locales/locales-ZappWay/el/translations.json +28 -0
  101. package/dist/locales/locales-ZappWay/en/MakeSettings.json +7 -0
  102. package/dist/locales/locales-ZappWay/en/Make_IntegrationSettings.json +6 -6
  103. package/dist/locales/locales-ZappWay/en/ZapierSettings.json +7 -0
  104. package/dist/locales/locales-ZappWay/en/Zapier_IntegrationSettings.json +6 -6
  105. package/dist/locales/locales-ZappWay/en/crispConfig.json +1 -1
  106. package/dist/locales/locales-ZappWay/en/integrations.json +27 -13
  107. package/dist/locales/locales-ZappWay/en/translations.json +54 -26
  108. package/dist/locales/locales-ZappWay/eo/MakeSettings.json +7 -0
  109. package/dist/locales/locales-ZappWay/eo/Make_IntegrationSettings.json +6 -6
  110. package/dist/locales/locales-ZappWay/eo/ZapierSettings.json +7 -0
  111. package/dist/locales/locales-ZappWay/eo/Zapier_IntegrationSettings.json +6 -6
  112. package/dist/locales/locales-ZappWay/eo/crispConfig.json +1 -1
  113. package/dist/locales/locales-ZappWay/eo/integrations.json +27 -13
  114. package/dist/locales/locales-ZappWay/eo/translations.json +54 -26
  115. package/dist/locales/locales-ZappWay/es/MakeSettings.json +7 -0
  116. package/dist/locales/locales-ZappWay/es/Make_IntegrationSettings.json +6 -6
  117. package/dist/locales/locales-ZappWay/es/ZapierSettings.json +7 -0
  118. package/dist/locales/locales-ZappWay/es/Zapier_IntegrationSettings.json +6 -6
  119. package/dist/locales/locales-ZappWay/es/crispConfig.json +1 -1
  120. package/dist/locales/locales-ZappWay/es/integrations.json +27 -13
  121. package/dist/locales/locales-ZappWay/es/translations.json +54 -26
  122. package/dist/locales/locales-ZappWay/et/MakeSettings.json +7 -0
  123. package/dist/locales/locales-ZappWay/et/Make_IntegrationSettings.json +1 -1
  124. package/dist/locales/locales-ZappWay/et/ZapierSettings.json +7 -0
  125. package/dist/locales/locales-ZappWay/et/Zapier_IntegrationSettings.json +1 -1
  126. package/dist/locales/locales-ZappWay/et/crispConfig.json +1 -1
  127. package/dist/locales/locales-ZappWay/et/integrations.json +17 -3
  128. package/dist/locales/locales-ZappWay/et/translations.json +34 -6
  129. package/dist/locales/locales-ZappWay/fa/MakeSettings.json +7 -0
  130. package/dist/locales/locales-ZappWay/fa/ZapierSettings.json +7 -0
  131. package/dist/locales/locales-ZappWay/fa/integrations.json +14 -0
  132. package/dist/locales/locales-ZappWay/fa/translations.json +28 -0
  133. package/dist/locales/locales-ZappWay/fi/MakeSettings.json +7 -0
  134. package/dist/locales/locales-ZappWay/fi/Make_IntegrationSettings.json +6 -6
  135. package/dist/locales/locales-ZappWay/fi/ZapierSettings.json +7 -0
  136. package/dist/locales/locales-ZappWay/fi/Zapier_IntegrationSettings.json +6 -6
  137. package/dist/locales/locales-ZappWay/fi/crispConfig.json +1 -1
  138. package/dist/locales/locales-ZappWay/fi/integrations.json +27 -13
  139. package/dist/locales/locales-ZappWay/fi/translations.json +54 -26
  140. package/dist/locales/locales-ZappWay/fr/MakeSettings.json +7 -0
  141. package/dist/locales/locales-ZappWay/fr/Make_IntegrationSettings.json +6 -6
  142. package/dist/locales/locales-ZappWay/fr/ZapierSettings.json +7 -0
  143. package/dist/locales/locales-ZappWay/fr/Zapier_IntegrationSettings.json +6 -6
  144. package/dist/locales/locales-ZappWay/fr/crispConfig.json +1 -1
  145. package/dist/locales/locales-ZappWay/fr/integrations.json +27 -13
  146. package/dist/locales/locales-ZappWay/fr/translations.json +54 -26
  147. package/dist/locales/locales-ZappWay/ga/MakeSettings.json +7 -0
  148. package/dist/locales/locales-ZappWay/ga/ZapierSettings.json +7 -0
  149. package/dist/locales/locales-ZappWay/ga/integrations.json +14 -0
  150. package/dist/locales/locales-ZappWay/ga/translations.json +28 -0
  151. package/dist/locales/locales-ZappWay/he/MakeSettings.json +7 -0
  152. package/dist/locales/locales-ZappWay/he/Make_IntegrationSettings.json +1 -1
  153. package/dist/locales/locales-ZappWay/he/ZapierSettings.json +7 -0
  154. package/dist/locales/locales-ZappWay/he/Zapier_IntegrationSettings.json +1 -1
  155. package/dist/locales/locales-ZappWay/he/integrations.json +16 -2
  156. package/dist/locales/locales-ZappWay/he/translations.json +32 -4
  157. package/dist/locales/locales-ZappWay/hi/MakeSettings.json +7 -0
  158. package/dist/locales/locales-ZappWay/hi/Make_IntegrationSettings.json +1 -1
  159. package/dist/locales/locales-ZappWay/hi/ZapierSettings.json +7 -0
  160. package/dist/locales/locales-ZappWay/hi/Zapier_IntegrationSettings.json +1 -1
  161. package/dist/locales/locales-ZappWay/hi/integrations.json +16 -2
  162. package/dist/locales/locales-ZappWay/hi/translations.json +32 -4
  163. package/dist/locales/locales-ZappWay/hu/MakeSettings.json +7 -0
  164. package/dist/locales/locales-ZappWay/hu/ZapierSettings.json +7 -0
  165. package/dist/locales/locales-ZappWay/hu/integrations.json +14 -0
  166. package/dist/locales/locales-ZappWay/hu/translations.json +28 -0
  167. package/dist/locales/locales-ZappWay/id/MakeSettings.json +7 -0
  168. package/dist/locales/locales-ZappWay/id/ZapierSettings.json +7 -0
  169. package/dist/locales/locales-ZappWay/id/integrations.json +14 -0
  170. package/dist/locales/locales-ZappWay/id/translations.json +28 -0
  171. package/dist/locales/locales-ZappWay/it/MakeSettings.json +7 -0
  172. package/dist/locales/locales-ZappWay/it/Make_IntegrationSettings.json +6 -6
  173. package/dist/locales/locales-ZappWay/it/ZapierSettings.json +7 -0
  174. package/dist/locales/locales-ZappWay/it/Zapier_IntegrationSettings.json +6 -6
  175. package/dist/locales/locales-ZappWay/it/crispConfig.json +1 -1
  176. package/dist/locales/locales-ZappWay/it/integrations.json +27 -13
  177. package/dist/locales/locales-ZappWay/it/translations.json +54 -26
  178. package/dist/locales/locales-ZappWay/ja/MakeSettings.json +7 -0
  179. package/dist/locales/locales-ZappWay/ja/ZapierSettings.json +7 -0
  180. package/dist/locales/locales-ZappWay/ja/integrations.json +14 -0
  181. package/dist/locales/locales-ZappWay/ja/translations.json +28 -0
  182. package/dist/locales/locales-ZappWay/ko/MakeSettings.json +7 -0
  183. package/dist/locales/locales-ZappWay/ko/ZapierSettings.json +7 -0
  184. package/dist/locales/locales-ZappWay/ko/integrations.json +14 -0
  185. package/dist/locales/locales-ZappWay/ko/translations.json +28 -0
  186. package/dist/locales/locales-ZappWay/lt/MakeSettings.json +7 -0
  187. package/dist/locales/locales-ZappWay/lt/Make_IntegrationSettings.json +6 -6
  188. package/dist/locales/locales-ZappWay/lt/ZapierSettings.json +7 -0
  189. package/dist/locales/locales-ZappWay/lt/Zapier_IntegrationSettings.json +6 -6
  190. package/dist/locales/locales-ZappWay/lt/crispConfig.json +1 -1
  191. package/dist/locales/locales-ZappWay/lt/integrations.json +27 -13
  192. package/dist/locales/locales-ZappWay/lt/translations.json +54 -26
  193. package/dist/locales/locales-ZappWay/lv/MakeSettings.json +7 -0
  194. package/dist/locales/locales-ZappWay/lv/ZapierSettings.json +7 -0
  195. package/dist/locales/locales-ZappWay/lv/integrations.json +14 -0
  196. package/dist/locales/locales-ZappWay/lv/translations.json +28 -0
  197. package/dist/locales/locales-ZappWay/ms/MakeSettings.json +7 -0
  198. package/dist/locales/locales-ZappWay/ms/ZapierSettings.json +7 -0
  199. package/dist/locales/locales-ZappWay/ms/integrations.json +14 -0
  200. package/dist/locales/locales-ZappWay/ms/translations.json +28 -0
  201. package/dist/locales/locales-ZappWay/nb/MakeSettings.json +7 -0
  202. package/dist/locales/locales-ZappWay/nb/Make_IntegrationSettings.json +6 -6
  203. package/dist/locales/locales-ZappWay/nb/ZapierSettings.json +7 -0
  204. package/dist/locales/locales-ZappWay/nb/Zapier_IntegrationSettings.json +6 -6
  205. package/dist/locales/locales-ZappWay/nb/crispConfig.json +1 -1
  206. package/dist/locales/locales-ZappWay/nb/integrations.json +27 -13
  207. package/dist/locales/locales-ZappWay/nb/translations.json +54 -26
  208. package/dist/locales/locales-ZappWay/nl/MakeSettings.json +7 -0
  209. package/dist/locales/locales-ZappWay/nl/Make_IntegrationSettings.json +6 -6
  210. package/dist/locales/locales-ZappWay/nl/ZapierSettings.json +7 -0
  211. package/dist/locales/locales-ZappWay/nl/Zapier_IntegrationSettings.json +6 -6
  212. package/dist/locales/locales-ZappWay/nl/crispConfig.json +1 -1
  213. package/dist/locales/locales-ZappWay/nl/integrations.json +27 -13
  214. package/dist/locales/locales-ZappWay/nl/translations.json +54 -26
  215. package/dist/locales/locales-ZappWay/pl/MakeSettings.json +7 -0
  216. package/dist/locales/locales-ZappWay/pl/Make_IntegrationSettings.json +6 -6
  217. package/dist/locales/locales-ZappWay/pl/ZapierSettings.json +7 -0
  218. package/dist/locales/locales-ZappWay/pl/Zapier_IntegrationSettings.json +6 -6
  219. package/dist/locales/locales-ZappWay/pl/crispConfig.json +1 -1
  220. package/dist/locales/locales-ZappWay/pl/integrations.json +27 -13
  221. package/dist/locales/locales-ZappWay/pl/translations.json +54 -26
  222. package/dist/locales/locales-ZappWay/pt/MakeSettings.json +7 -0
  223. package/dist/locales/locales-ZappWay/pt/Make_IntegrationSettings.json +6 -6
  224. package/dist/locales/locales-ZappWay/pt/ZapierSettings.json +7 -0
  225. package/dist/locales/locales-ZappWay/pt/Zapier_IntegrationSettings.json +6 -6
  226. package/dist/locales/locales-ZappWay/pt/crispConfig.json +1 -1
  227. package/dist/locales/locales-ZappWay/pt/integrations.json +27 -13
  228. package/dist/locales/locales-ZappWay/pt/translations.json +54 -26
  229. package/dist/locales/locales-ZappWay/pt-BR/MakeSettings.json +7 -0
  230. package/dist/locales/locales-ZappWay/pt-BR/Make_IntegrationSettings.json +5 -5
  231. package/dist/locales/locales-ZappWay/pt-BR/ZapierSettings.json +7 -0
  232. package/dist/locales/locales-ZappWay/pt-BR/Zapier_IntegrationSettings.json +5 -5
  233. package/dist/locales/locales-ZappWay/pt-BR/crispConfig.json +1 -1
  234. package/dist/locales/locales-ZappWay/pt-BR/integrations.json +25 -11
  235. package/dist/locales/locales-ZappWay/pt-BR/translations.json +50 -22
  236. package/dist/locales/locales-ZappWay/ro/MakeSettings.json +7 -0
  237. package/dist/locales/locales-ZappWay/ro/Make_IntegrationSettings.json +6 -6
  238. package/dist/locales/locales-ZappWay/ro/ZapierSettings.json +7 -0
  239. package/dist/locales/locales-ZappWay/ro/Zapier_IntegrationSettings.json +6 -6
  240. package/dist/locales/locales-ZappWay/ro/crispConfig.json +1 -1
  241. package/dist/locales/locales-ZappWay/ro/integrations.json +27 -13
  242. package/dist/locales/locales-ZappWay/ro/translations.json +54 -26
  243. package/dist/locales/locales-ZappWay/ru/MakeSettings.json +7 -0
  244. package/dist/locales/locales-ZappWay/ru/ZapierSettings.json +7 -0
  245. package/dist/locales/locales-ZappWay/ru/integrations.json +14 -0
  246. package/dist/locales/locales-ZappWay/ru/translations.json +28 -0
  247. package/dist/locales/locales-ZappWay/sk/MakeSettings.json +7 -0
  248. package/dist/locales/locales-ZappWay/sk/Make_IntegrationSettings.json +6 -6
  249. package/dist/locales/locales-ZappWay/sk/ZapierSettings.json +7 -0
  250. package/dist/locales/locales-ZappWay/sk/Zapier_IntegrationSettings.json +6 -6
  251. package/dist/locales/locales-ZappWay/sk/crispConfig.json +1 -1
  252. package/dist/locales/locales-ZappWay/sk/integrations.json +27 -13
  253. package/dist/locales/locales-ZappWay/sk/translations.json +54 -26
  254. package/dist/locales/locales-ZappWay/sl/MakeSettings.json +7 -0
  255. package/dist/locales/locales-ZappWay/sl/Make_IntegrationSettings.json +6 -6
  256. package/dist/locales/locales-ZappWay/sl/ZapierSettings.json +7 -0
  257. package/dist/locales/locales-ZappWay/sl/Zapier_IntegrationSettings.json +6 -6
  258. package/dist/locales/locales-ZappWay/sl/crispConfig.json +1 -1
  259. package/dist/locales/locales-ZappWay/sl/integrations.json +27 -13
  260. package/dist/locales/locales-ZappWay/sl/translations.json +54 -26
  261. package/dist/locales/locales-ZappWay/sv/MakeSettings.json +7 -0
  262. package/dist/locales/locales-ZappWay/sv/Make_IntegrationSettings.json +6 -6
  263. package/dist/locales/locales-ZappWay/sv/ZapierSettings.json +7 -0
  264. package/dist/locales/locales-ZappWay/sv/Zapier_IntegrationSettings.json +6 -6
  265. package/dist/locales/locales-ZappWay/sv/crispConfig.json +1 -1
  266. package/dist/locales/locales-ZappWay/sv/integrations.json +27 -13
  267. package/dist/locales/locales-ZappWay/sv/translations.json +54 -26
  268. package/dist/locales/locales-ZappWay/th/MakeSettings.json +7 -0
  269. package/dist/locales/locales-ZappWay/th/Make_IntegrationSettings.json +1 -1
  270. package/dist/locales/locales-ZappWay/th/ZapierSettings.json +7 -0
  271. package/dist/locales/locales-ZappWay/th/Zapier_IntegrationSettings.json +1 -1
  272. package/dist/locales/locales-ZappWay/th/integrations.json +16 -2
  273. package/dist/locales/locales-ZappWay/th/translations.json +32 -4
  274. package/dist/locales/locales-ZappWay/tl/MakeSettings.json +7 -0
  275. package/dist/locales/locales-ZappWay/tl/Make_IntegrationSettings.json +6 -6
  276. package/dist/locales/locales-ZappWay/tl/ZapierSettings.json +7 -0
  277. package/dist/locales/locales-ZappWay/tl/Zapier_IntegrationSettings.json +6 -6
  278. package/dist/locales/locales-ZappWay/tl/integrations.json +26 -12
  279. package/dist/locales/locales-ZappWay/tl/translations.json +52 -24
  280. package/dist/locales/locales-ZappWay/tr/MakeSettings.json +7 -0
  281. package/dist/locales/locales-ZappWay/tr/Make_IntegrationSettings.json +6 -6
  282. package/dist/locales/locales-ZappWay/tr/ZapierSettings.json +7 -0
  283. package/dist/locales/locales-ZappWay/tr/Zapier_IntegrationSettings.json +6 -6
  284. package/dist/locales/locales-ZappWay/tr/crispConfig.json +1 -1
  285. package/dist/locales/locales-ZappWay/tr/integrations.json +27 -13
  286. package/dist/locales/locales-ZappWay/tr/translations.json +54 -26
  287. package/dist/locales/locales-ZappWay/uk/MakeSettings.json +7 -0
  288. package/dist/locales/locales-ZappWay/uk/ZapierSettings.json +7 -0
  289. package/dist/locales/locales-ZappWay/uk/integrations.json +14 -0
  290. package/dist/locales/locales-ZappWay/uk/translations.json +28 -0
  291. package/dist/locales/locales-ZappWay/ur/MakeSettings.json +7 -0
  292. package/dist/locales/locales-ZappWay/ur/Make_IntegrationSettings.json +1 -1
  293. package/dist/locales/locales-ZappWay/ur/ZapierSettings.json +7 -0
  294. package/dist/locales/locales-ZappWay/ur/Zapier_IntegrationSettings.json +1 -1
  295. package/dist/locales/locales-ZappWay/ur/integrations.json +16 -2
  296. package/dist/locales/locales-ZappWay/ur/translations.json +32 -4
  297. package/dist/locales/locales-ZappWay/zh/MakeSettings.json +7 -0
  298. package/dist/locales/locales-ZappWay/zh/ZapierSettings.json +7 -0
  299. package/dist/locales/locales-ZappWay/zh/integrations.json +14 -0
  300. package/dist/locales/locales-ZappWay/zh/translations.json +28 -0
  301. package/dist/pdfviewer/index.js +3 -3
  302. package/dist/zappflux/index.js +1 -1
  303. package/dist/zappflux/web.global.js +1 -1
  304. package/dist/zappflux/web.js +1 -1
  305. package/package.json +2 -2
@@ -424,8 +424,8 @@ try {
424
424
  ${c}.setAttribute('${n}', colorScheme);
425
425
  }
426
426
  } catch(e){}})();`}},"mui-color-scheme-init")}s();_1();var Me=j(U());function GV(e){if(typeof window<"u"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function KV(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function Ch1(e){return KV(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function Kw(e,t){if(typeof window>"u")return;let o;try{o=localStorage.getItem(e)||void 0,o||localStorage.setItem(e,t)}catch{}return o||t}function qw(e){let{defaultMode:t="light",defaultLightColorScheme:o,defaultDarkColorScheme:a,supportedColorSchemes:i=[],modeStorageKey:r=xl,colorSchemeStorageKey:n=zl,storageWindow:c=typeof window>"u"?void 0:window}=e,l=i.join(","),[f,m]=Me.useState(()=>{let x=Kw(r,t),y=Kw(`${n}-light`,o),v=Kw(`${n}-dark`,a);return{mode:x,systemMode:GV(x),lightColorScheme:y,darkColorScheme:v}}),d=Ch1(f),u=Me.useCallback(x=>{m(y=>{if(x===y.mode)return y;let v=x??t;try{localStorage.setItem(r,v)}catch{}return I({},y,{mode:v,systemMode:GV(v)})})},[r,t]),p=Me.useCallback(x=>{x?typeof x=="string"?x&&!l.includes(x)?console.error(`\`${x}\` does not exist in \`theme.colorSchemes\`.`):m(y=>{let v=I({},y);return KV(y,k=>{try{localStorage.setItem(`${n}-${k}`,x)}catch{}k==="light"&&(v.lightColorScheme=x),k==="dark"&&(v.darkColorScheme=x)}),v}):m(y=>{let v=I({},y),k=x.light===null?o:x.light,w=x.dark===null?a:x.dark;if(k)if(!l.includes(k))console.error(`\`${k}\` does not exist in \`theme.colorSchemes\`.`);else{v.lightColorScheme=k;try{localStorage.setItem(`${n}-light`,k)}catch{}}if(w)if(!l.includes(w))console.error(`\`${w}\` does not exist in \`theme.colorSchemes\`.`);else{v.darkColorScheme=w;try{localStorage.setItem(`${n}-dark`,w)}catch{}}return v}):m(y=>{try{localStorage.setItem(`${n}-light`,o),localStorage.setItem(`${n}-dark`,a)}catch{}return I({},y,{lightColorScheme:o,darkColorScheme:a})})},[l,n,o,a]),b=Me.useCallback(x=>{f.mode==="system"&&m(y=>{let v=x!=null&&x.matches?"dark":"light";return y.systemMode===v?y:I({},y,{systemMode:v})})},[f.mode]),g=Me.useRef(b);return g.current=b,Me.useEffect(()=>{let x=(...v)=>g.current(...v),y=window.matchMedia("(prefers-color-scheme: dark)");return y.addListener(x),x(y),()=>{y.removeListener(x)}},[]),Me.useEffect(()=>{if(c){let x=y=>{let v=y.newValue;typeof y.key=="string"&&y.key.startsWith(n)&&(!v||l.match(v))&&(y.key.endsWith("light")&&p({light:v}),y.key.endsWith("dark")&&p({dark:v})),y.key===r&&(!v||["light","dark","system"].includes(v))&&u(v||t)};return c.addEventListener("storage",x),()=>{c.removeEventListener("storage",x)}}},[p,u,r,n,l,t,c]),I({},f,{colorScheme:d,setMode:u,setColorScheme:p})}var Di=j(m1()),Ww=j(m1()),Ph1=["colorSchemes","components","generateCssVars","cssVarPrefix"],Ah1="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function rp(e){let{themeId:t,theme:o={},attribute:a=Hw,modeStorageKey:i=xl,colorSchemeStorageKey:r=zl,defaultMode:n="light",defaultColorScheme:c,disableTransitionOnChange:l=!1,resolveTheme:f,excludeVariablesFromRoot:m}=e;(!o.colorSchemes||typeof c=="string"&&!o.colorSchemes[c]||typeof c=="object"&&!o.colorSchemes[c?.light]||typeof c=="object"&&!o.colorSchemes[c?.dark])&&console.error(`MUI: \`${c}\` does not exist in \`theme.colorSchemes\`.`);let d=J0.createContext(void 0),u=()=>{let y=J0.useContext(d);if(!y)throw new Error(O0(19));return y};function p(y){let{children:v,theme:k=o,modeStorageKey:w=i,colorSchemeStorageKey:T=r,attribute:O=a,defaultMode:C=n,defaultColorScheme:z=c,disableTransitionOnChange:M=l,storageWindow:S=typeof window>"u"?void 0:window,documentNode:N=typeof document>"u"?void 0:document,colorSchemeNode:P=typeof document>"u"?void 0:document.documentElement,colorSchemeSelector:R=":root",disableNestedContext:A=!1,disableStyleSheetGeneration:_=!1}=y,E=J0.useRef(!1),D=D7(),L=J0.useContext(d),$=!!L&&!A,B=k[t],q=B||k,{colorSchemes:Q={},components:o1={},generateCssVars:e1=()=>({vars:{},css:{}}),cssVarPrefix:K}=q,n1=k1(q,Ph1),Z=Object.keys(Q),X=typeof z=="string"?z:z.light,c1=typeof z=="string"?z:z.dark,{mode:z1,setMode:v1,systemMode:C1,lightColorScheme:L1,darkColorScheme:F1,colorScheme:l1,setColorScheme:T1}=qw({supportedColorSchemes:Z,defaultLightColorScheme:X,defaultDarkColorScheme:c1,modeStorageKey:w,colorSchemeStorageKey:T,defaultMode:C,storageWindow:S}),S1=z1,w1=l1;$&&(S1=L.mode,w1=L.colorScheme);let O1=w1||((S1||(C==="system"?n:C))==="dark"?c1:X),{css:q1,vars:n2}=e1(),u1=I({},n1,{components:o1,colorSchemes:Q,cssVarPrefix:K,vars:n2,getColorSchemeSelector:G=>`[${O}="${G}"] &`}),F={},V={};Object.entries(Q).forEach(([G,J])=>{let{css:h1,vars:i1}=e1(G);u1.vars=R2(u1.vars,i1),G===O1&&(Object.keys(J).forEach(R1=>{J[R1]&&typeof J[R1]=="object"?u1[R1]=I({},u1[R1],J[R1]):u1[R1]=J[R1]}),u1.palette&&(u1.palette.colorScheme=G));let f1=typeof z=="string"?z:C==="dark"?z.dark:z.light;if(G===f1){if(m){let R1={};m(K).forEach(B1=>{R1[B1]=h1[B1],delete h1[B1]}),F[`[${O}="${G}"]`]=R1}F[`${R}, [${O}="${G}"]`]=h1}else V[`${R===":root"?"":R}[${O}="${G}"]`]=h1}),u1.vars=R2(u1.vars,n2),J0.useEffect(()=>{w1&&P&&P.setAttribute(O,w1)},[w1,O,P]),J0.useEffect(()=>{let G;if(M&&E.current&&N){let J=N.createElement("style");J.appendChild(N.createTextNode(Ah1)),N.head.appendChild(J),window.getComputedStyle(N.body),G=setTimeout(()=>{N.head.removeChild(J)},1)}return()=>{clearTimeout(G)}},[w1,M,N]),J0.useEffect(()=>(E.current=!0,()=>{E.current=!1}),[]);let W=J0.useMemo(()=>({allColorSchemes:Z,colorScheme:w1,darkColorScheme:F1,lightColorScheme:L1,mode:S1,setColorScheme:T1,setMode:v1,systemMode:C1}),[Z,w1,F1,L1,S1,T1,v1,C1]),a1=!0;(_||$&&D?.cssVarPrefix===K)&&(a1=!1);let H=(0,Ww.jsxs)(J0.Fragment,{children:[a1&&(0,Ww.jsxs)(J0.Fragment,{children:[(0,Di.jsx)(_6,{styles:{[R]:q1}}),(0,Di.jsx)(_6,{styles:F}),(0,Di.jsx)(_6,{styles:V})]}),(0,Di.jsx)(ip,{themeId:B?t:void 0,theme:f?f(u1):u1,children:v})]});return $?H:(0,Di.jsx)(d.Provider,{value:W,children:H})}let b=typeof c=="string"?c:c.light,g=typeof c=="string"?c:c.dark;return{CssVarsProvider:p,useColorScheme:u,getInitColorSchemeScript:y=>Gw(I({attribute:a,colorSchemeStorageKey:r,defaultMode:n,defaultLightColorScheme:b,defaultDarkColorScheme:g,modeStorageKey:i},y))}}s();function ro(e=""){function t(...a){if(!a.length)return"";let i=a[0];return typeof i=="string"&&!i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${i}${t(...a.slice(1))})`:`, ${i}`}return(a,...i)=>`var(--${e?`${e}-`:""}${a}${t(...i)})`}s();var qV=(e,t,o,a=[])=>{let i=e;t.forEach((r,n)=>{n===t.length-1?Array.isArray(i)?i[Number(r)]=o:i&&typeof i=="object"&&(i[r]=o):i&&typeof i=="object"&&(i[r]||(i[r]=a.includes(r)?[]:{}),i=i[r])})},Oh1=(e,t,o)=>{function a(i,r=[],n=[]){Object.entries(i).forEach(([c,l])=>{(!o||o&&!o([...r,c]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?a(l,[...r,c],Array.isArray(l)?[...n,c]:n):t([...r,c],l,n))})}a(e)},$h1=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(a=>e.includes(a))||e[e.length-1].toLowerCase().indexOf("opacity")>=0?t:`${t}px`:t;function wl(e,t){let{prefix:o,shouldSkipGeneratingVar:a}=t||{},i={},r={},n={};return Oh1(e,(c,l,f)=>{if((typeof l=="string"||typeof l=="number")&&(!a||!a(c,l))){let m=`--${o?`${o}-`:""}${c.join("-")}`;Object.assign(i,{[m]:$h1(c,l)}),qV(r,c,`var(${m})`,f),qV(n,c,`var(${m}, ${l})`,f)}},c=>c[0]==="vars"),{css:i,vars:r,varsWithDefaults:n}}s();_1();s();s();function no(e){"@babel/helpers - typeof";return no=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},no(e)}s();function WV(e,t){if(no(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var a=o.call(e,t||"default");if(no(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZV(e){var t=WV(e,"string");return no(t)=="symbol"?t:t+""}Y1();D4();var Ih1=["colorSchemes","components","defaultColorScheme"];function Dh1(e,t){let{colorSchemes:o={},defaultColorScheme:a="light"}=e,i=k1(e,Ih1),{vars:r,css:n,varsWithDefaults:c}=wl(i,t),l=c,f={},{[a]:m}=o,d=k1(o,[a].map(ZV));if(Object.entries(d||{}).forEach(([p,b])=>{let{vars:g,css:x,varsWithDefaults:y}=wl(b,t);l=R2(l,y),f[p]={css:x,vars:g}}),m){let{css:p,vars:b,varsWithDefaults:g}=wl(m,t);l=R2(l,g),f[a]={css:p,vars:b}}return{vars:l,generateCssVars:p=>{var b;if(!p){var g;let y=I({},n);return{css:y,vars:r,selector:(t==null||(g=t.getSelector)==null?void 0:g.call(t,p,y))||":root"}}let x=I({},f[p].css);return{css:x,vars:f[p].vars,selector:(t==null||(b=t.getSelector)==null?void 0:b.call(t,p,x))||":root"}}}}var Zw=Dh1;s();Y1();_1();var Ni=j(U());L3();D4();X9();Xu();J9();Z9();Y8();K9();var JV=j(m1()),Nh1=["component","direction","spacing","divider","children","className","useFlexGap"],Lh1=A6(),jh1=NB("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Fh1(e){return Y9({props:e,name:"MuiStack",defaultTheme:Lh1})}function Bh1(e,t){let o=Ni.Children.toArray(e).filter(Boolean);return o.reduce((a,i,r)=>(a.push(i),r<o.length-1&&a.push(Ni.cloneElement(t,{key:`separator-${r}`})),a),[])}var Vh1=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Uh1=({ownerState:e,theme:t})=>{let o=I({display:"flex",flexDirection:"column"},y0({theme:t},ku({values:e.direction,breakpoints:t.breakpoints.values}),a=>({flexDirection:a})));if(e.spacing){let a=dl(t),i=Object.keys(t.breakpoints.values).reduce((l,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(l[f]=!0),l),{}),r=ku({values:e.direction,base:i}),n=ku({values:e.spacing,base:i});typeof r=="object"&&Object.keys(r).forEach((l,f,m)=>{if(!r[l]){let u=f>0?r[m[f-1]]:"column";r[l]=u}}),o=R2(o,y0({theme:t},n,(l,f)=>e.useFlexGap?{gap:P6(a,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Vh1(f?r[f]:e.direction)}`]:P6(a,l)}}))}return o=lB(t.breakpoints,o),o};function np(e={}){let{createStyledComponent:t=jh1,useThemeProps:o=Fh1,componentName:a="MuiStack"}=e,i=()=>V1({root:["root"]},l=>ze(a,l),{}),r=t(Uh1);return Ni.forwardRef(function(l,f){let m=o(l),d=O6(m),{component:u="div",direction:p="column",spacing:b=0,divider:g,children:x,className:y,useFlexGap:v=!1}=d,k=k1(d,Nh1),w={direction:p,spacing:b,useFlexGap:v},T=i();return(0,JV.jsx)(r,I({as:u,ownerState:w,ref:f,className:m2(T.root,y)},k,{children:g?Bh1(x,g):x}))})}s();s();s();_1();Y1();u2();Z9();s();_1();var Hh1=I({},o5,{borderRadius:{themeKey:"radius"},boxShadow:{themeKey:"shadow"},fontFamily:{themeKey:"fontFamily"},fontSize:{themeKey:"fontSize"},fontWeight:{themeKey:"fontWeight"},letterSpacing:{themeKey:"letterSpacing"},lineHeight:{themeKey:"lineHeight"}}),XV=Hh1;s();s();var Gh1={grey:{50:"#FBFCFE",100:"#F0F4F8",200:"#DDE7EE",300:"#CDD7E1",400:"#9FA6AD",500:"#636B74",600:"#555E68",700:"#32383E",800:"#171A1C",900:"#0B0D0E"},blue:{50:"#EDF5FD",100:"#E3EFFB",200:"#C7DFF7",300:"#97C3F0",400:"#4393E4",500:"#0B6BCB",600:"#185EA5",700:"#12467B",800:"#0A2744",900:"#051423"},yellow:{50:"#FEFAF6",100:"#FDF0E1",200:"#FCE1C2",300:"#F3C896",400:"#EA9A3E",500:"#9A5B13",600:"#72430D",700:"#492B08",800:"#2E1B05",900:"#1D1002"},red:{50:"#FEF6F6",100:"#FCE4E4",200:"#F7C5C5",300:"#F09898",400:"#E47474",500:"#C41C1C",600:"#A51818",700:"#7D1212",800:"#430A0A",900:"#240505"},green:{50:"#F6FEF6",100:"#E3FBE3",200:"#C7F7C7",300:"#A1E8A1",400:"#51BC51",500:"#1F7A1F",600:"#136C13",700:"#0A470A",800:"#042F04",900:"#021D02"}},co=Gh1;s();function Jw(e){var t;return!!e[0].match(/^(typography|variants|breakpoints)$/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/^(mode)$/))||e[0]==="focus"&&e[1]!=="thickness"}s();u2();u2();var G1=(e,t)=>ze(e,t,"Mui"),H1=(e,t)=>C7(e,t,"Mui");s();_1();var Kh1=e=>e&&typeof e=="object"&&Object.keys(e).some(t=>{var o;return(o=t.match)==null?void 0:o.call(t,/^(plain(Hover|Active|Disabled)?(Color|Bg)|outlined(Hover|Active|Disabled)?(Color|Border|Bg)|soft(Hover|Active|Disabled)?(Color|Bg)|solid(Hover|Active|Disabled)?(Color|Bg))$/)}),YV=(e,t,o)=>{t.includes("Color")&&(e.color=o),t.includes("Bg")&&(e.backgroundColor=o),t.includes("Border")&&(e.borderColor=o)},QV=(e,t,o)=>{let a={};return Object.entries(t||{}).forEach(([i,r])=>{if(i.match(new RegExp(`${e}(color|bg|border)`,"i"))&&r){let n=o?o(i):r;i.includes("Disabled")&&(a.pointerEvents="none",a.cursor="default",a["--Icon-color"]="currentColor"),i.match(/(Hover|Active|Disabled)/)||(a["--variant-borderWidth"]||(a["--variant-borderWidth"]="0px"),i.includes("Border")&&(a["--variant-borderWidth"]="1px",a.border="var(--variant-borderWidth) solid")),YV(a,i,n)}}),a},I0=(e,t)=>{let o={};if(t){let{getCssVar:a,palette:i}=t;Object.entries(i).forEach(r=>{let[n,c]=r;Kh1(c)&&typeof c=="object"&&(o=I({},o,{[n]:QV(e,c,l=>`var(--variant-${l}, ${a(`palette-${n}-${l}`,i[n][l])})`)}))})}return o.context=QV(e,{plainColor:"var(--variant-plainColor)",plainHoverColor:"var(--variant-plainHoverColor)",plainHoverBg:"var(--variant-plainHoverBg)",plainActiveBg:"var(--variant-plainActiveBg)",plainDisabledColor:"var(--variant-plainDisabledColor)",outlinedColor:"var(--variant-outlinedColor)",outlinedBorder:"var(--variant-outlinedBorder)",outlinedHoverColor:"var(--variant-outlinedHoverColor)",outlinedHoverBorder:"var(--variant-outlinedHoverBorder)",outlinedHoverBg:"var(--variant-outlinedHoverBg)",outlinedActiveBg:"var(--variant-outlinedActiveBg)",outlinedDisabledColor:"var(--variant-outlinedDisabledColor)",outlinedDisabledBorder:"var(--variant-outlinedDisabledBorder)",softColor:"var(--variant-softColor)",softBg:"var(--variant-softBg)",softHoverColor:"var(--variant-softHoverColor)",softHoverBg:"var(--variant-softHoverBg)",softActiveBg:"var(--variant-softActiveBg)",softDisabledColor:"var(--variant-softDisabledColor)",softDisabledBg:"var(--variant-softDisabledBg)",solidColor:"var(--variant-solidColor)",solidBg:"var(--variant-solidBg)",solidHoverBg:"var(--variant-solidHoverBg)",solidActiveBg:"var(--variant-solidActiveBg)",solidDisabledColor:"var(--variant-solidDisabledColor)",solidDisabledBg:"var(--variant-solidDisabledBg)"}),o};var qh1=["cssVarPrefix","breakpoints","spacing","components","variants","shouldSkipGeneratingVar"],Wh1=["colorSchemes"],eU=(e="joy")=>ro(e);function Li(e){var t,o,a,i,r,n,c,l,f,m;let d=e||{},{cssVarPrefix:u="joy",breakpoints:p,spacing:b,components:g,variants:x,shouldSkipGeneratingVar:y=Jw}=d,v=k1(d,qh1),k=eU(u),w={primary:co.blue,neutral:co.grey,danger:co.red,success:co.green,warning:co.yellow,common:{white:"#FFF",black:"#000"}},T=X=>{var c1;let z1=X.split("-"),v1=z1[1],C1=z1[2];return k(X,(c1=w[v1])==null?void 0:c1[C1])},O=X=>({plainColor:T(`palette-${X}-500`),plainHoverBg:T(`palette-${X}-100`),plainActiveBg:T(`palette-${X}-200`),plainDisabledColor:T("palette-neutral-400"),outlinedColor:T(`palette-${X}-500`),outlinedBorder:T(`palette-${X}-300`),outlinedHoverBg:T(`palette-${X}-100`),outlinedActiveBg:T(`palette-${X}-200`),outlinedDisabledColor:T("palette-neutral-400"),outlinedDisabledBorder:T("palette-neutral-200"),softColor:T(`palette-${X}-700`),softBg:T(`palette-${X}-100`),softHoverBg:T(`palette-${X}-200`),softActiveColor:T(`palette-${X}-800`),softActiveBg:T(`palette-${X}-300`),softDisabledColor:T("palette-neutral-400"),softDisabledBg:T("palette-neutral-50"),solidColor:T("palette-common-white"),solidBg:T(`palette-${X}-500`),solidHoverBg:T(`palette-${X}-600`),solidActiveBg:T(`palette-${X}-700`),solidDisabledColor:T("palette-neutral-400"),solidDisabledBg:T("palette-neutral-100")}),C=X=>({plainColor:T(`palette-${X}-300`),plainHoverBg:T(`palette-${X}-800`),plainActiveBg:T(`palette-${X}-700`),plainDisabledColor:T("palette-neutral-500"),outlinedColor:T(`palette-${X}-200`),outlinedBorder:T(`palette-${X}-700`),outlinedHoverBg:T(`palette-${X}-800`),outlinedActiveBg:T(`palette-${X}-700`),outlinedDisabledColor:T("palette-neutral-500"),outlinedDisabledBorder:T("palette-neutral-800"),softColor:T(`palette-${X}-200`),softBg:T(`palette-${X}-800`),softHoverBg:T(`palette-${X}-700`),softActiveColor:T(`palette-${X}-100`),softActiveBg:T(`palette-${X}-600`),softDisabledColor:T("palette-neutral-500"),softDisabledBg:T("palette-neutral-800"),solidColor:T("palette-common-white"),solidBg:T(`palette-${X}-500`),solidHoverBg:T(`palette-${X}-600`),solidActiveBg:T(`palette-${X}-700`),solidDisabledColor:T("palette-neutral-500"),solidDisabledBg:T("palette-neutral-800")}),z={palette:{mode:"light",primary:I({},w.primary,O("primary")),neutral:I({},w.neutral,O("neutral"),{plainColor:T("palette-neutral-700"),plainHoverColor:T("palette-neutral-900"),outlinedColor:T("palette-neutral-700")}),danger:I({},w.danger,O("danger")),success:I({},w.success,O("success")),warning:I({},w.warning,O("warning")),common:{white:"#FFF",black:"#000"},text:{primary:T("palette-neutral-800"),secondary:T("palette-neutral-700"),tertiary:T("palette-neutral-600"),icon:T("palette-neutral-500")},background:{body:T("palette-common-white"),surface:T("palette-neutral-50"),popup:T("palette-common-white"),level1:T("palette-neutral-100"),level2:T("palette-neutral-200"),level3:T("palette-neutral-300"),tooltip:T("palette-neutral-500"),backdrop:`rgba(${k("palette-neutral-darkChannel",ot(w.neutral[900]))} / 0.25)`},divider:`rgba(${k("palette-neutral-mainChannel",ot(w.neutral[500]))} / 0.2)`,focusVisible:T("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"21 21 21",shadowOpacity:"0.08"},M={palette:{mode:"dark",primary:I({},w.primary,C("primary")),neutral:I({},w.neutral,C("neutral"),{plainColor:T("palette-neutral-300"),plainHoverColor:T("palette-neutral-300")}),danger:I({},w.danger,C("danger")),success:I({},w.success,C("success")),warning:I({},w.warning,C("warning")),common:{white:"#FFF",black:"#000"},text:{primary:T("palette-neutral-100"),secondary:T("palette-neutral-300"),tertiary:T("palette-neutral-400"),icon:T("palette-neutral-400")},background:{body:T("palette-common-black"),surface:T("palette-neutral-900"),popup:T("palette-common-black"),level1:T("palette-neutral-800"),level2:T("palette-neutral-700"),level3:T("palette-neutral-600"),tooltip:T("palette-neutral-600"),backdrop:`rgba(${k("palette-neutral-darkChannel",ot(w.neutral[50]))} / 0.25)`},divider:`rgba(${k("palette-neutral-mainChannel",ot(w.neutral[500]))} / 0.16)`,focusVisible:T("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0",shadowOpacity:"0.6"},S='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',N=I({body:`"Inter", ${k(`fontFamily-fallback, ${S}`)}`,display:`"Inter", ${k(`fontFamily-fallback, ${S}`)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:S},v.fontFamily),P=I({sm:300,md:500,lg:600,xl:700},v.fontWeight),R=I({xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem"},v.fontSize),A=I({xs:"1.33334",sm:"1.42858",md:"1.5",lg:"1.55556",xl:"1.66667"},v.lineHeight),_=(t=(o=v.colorSchemes)==null||(o=o.light)==null?void 0:o.shadowRing)!=null?t:z.shadowRing,E=(a=(i=v.colorSchemes)==null||(i=i.light)==null?void 0:i.shadowChannel)!=null?a:z.shadowChannel,D=(r=(n=v.colorSchemes)==null||(n=n.light)==null?void 0:n.shadowOpacity)!=null?r:z.shadowOpacity,L={colorSchemes:{light:z,dark:M},fontSize:R,fontFamily:N,fontWeight:P,focus:{thickness:"2px",selector:`&.${G1("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${k("focus-thickness",(c=(l=v.focus)==null?void 0:l.thickness)!=null?c:"2px")})`,outline:`${k("focus-thickness",(f=(m=v.focus)==null?void 0:m.thickness)!=null?f:"2px")} solid ${k("palette-focusVisible",w.primary[500])}`}},lineHeight:A,radius:{xs:"2px",sm:"6px",md:"8px",lg:"12px",xl:"16px"},shadow:{xs:`${k("shadowRing",_)}, 0px 1px 2px 0px rgba(${k("shadowChannel",E)} / ${k("shadowOpacity",D)})`,sm:`${k("shadowRing",_)}, 0px 1px 2px 0px rgba(${k("shadowChannel",E)} / ${k("shadowOpacity",D)}), 0px 2px 4px 0px rgba(${k("shadowChannel",E)} / ${k("shadowOpacity",D)})`,md:`${k("shadowRing",_)}, 0px 2px 8px -2px rgba(${k("shadowChannel",E)} / ${k("shadowOpacity",D)}), 0px 6px 12px -2px rgba(${k("shadowChannel",E)} / ${k("shadowOpacity",D)})`,lg:`${k("shadowRing",_)}, 0px 2px 8px -2px rgba(${k("shadowChannel",E)} / ${k("shadowOpacity",D)}), 0px 12px 16px -4px rgba(${k("shadowChannel",E)} / ${k("shadowOpacity",D)})`,xl:`${k("shadowRing",_)}, 0px 2px 8px -2px rgba(${k("shadowChannel",E)} / ${k("shadowOpacity",D)}), 0px 20px 24px -4px rgba(${k("shadowChannel",E)} / ${k("shadowOpacity",D)})`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,snackbar:1400,tooltip:1500},typography:{h1:{fontFamily:k(`fontFamily-display, ${N.display}`),fontWeight:k(`fontWeight-xl, ${P.xl}`),fontSize:k(`fontSize-xl4, ${R.xl4}`),lineHeight:k(`lineHeight-xs, ${A.xs}`),letterSpacing:"-0.025em",color:k(`palette-text-primary, ${z.palette.text.primary}`)},h2:{fontFamily:k(`fontFamily-display, ${N.display}`),fontWeight:k(`fontWeight-xl, ${P.xl}`),fontSize:k(`fontSize-xl3, ${R.xl3}`),lineHeight:k(`lineHeight-xs, ${A.xs}`),letterSpacing:"-0.025em",color:k(`palette-text-primary, ${z.palette.text.primary}`)},h3:{fontFamily:k(`fontFamily-display, ${N.display}`),fontWeight:k(`fontWeight-lg, ${P.lg}`),fontSize:k(`fontSize-xl2, ${R.xl2}`),lineHeight:k(`lineHeight-xs, ${A.xs}`),letterSpacing:"-0.025em",color:k(`palette-text-primary, ${z.palette.text.primary}`)},h4:{fontFamily:k(`fontFamily-display, ${N.display}`),fontWeight:k(`fontWeight-lg, ${P.lg}`),fontSize:k(`fontSize-xl, ${R.xl}`),lineHeight:k(`lineHeight-md, ${A.md}`),letterSpacing:"-0.025em",color:k(`palette-text-primary, ${z.palette.text.primary}`)},"title-lg":{fontFamily:k(`fontFamily-body, ${N.body}`),fontWeight:k(`fontWeight-lg, ${P.lg}`),fontSize:k(`fontSize-lg, ${R.lg}`),lineHeight:k(`lineHeight-xs, ${A.xs}`),color:k(`palette-text-primary, ${z.palette.text.primary}`)},"title-md":{fontFamily:k(`fontFamily-body, ${N.body}`),fontWeight:k(`fontWeight-md, ${P.md}`),fontSize:k(`fontSize-md, ${R.md}`),lineHeight:k(`lineHeight-md, ${A.md}`),color:k(`palette-text-primary, ${z.palette.text.primary}`)},"title-sm":{fontFamily:k(`fontFamily-body, ${N.body}`),fontWeight:k(`fontWeight-md, ${P.md}`),fontSize:k(`fontSize-sm, ${R.sm}`),lineHeight:k(`lineHeight-sm, ${A.sm}`),color:k(`palette-text-primary, ${z.palette.text.primary}`)},"body-lg":{fontFamily:k(`fontFamily-body, ${N.body}`),fontSize:k(`fontSize-lg, ${R.lg}`),lineHeight:k(`lineHeight-md, ${A.md}`),color:k(`palette-text-secondary, ${z.palette.text.secondary}`)},"body-md":{fontFamily:k(`fontFamily-body, ${N.body}`),fontSize:k(`fontSize-md, ${R.md}`),lineHeight:k(`lineHeight-md, ${A.md}`),color:k(`palette-text-secondary, ${z.palette.text.secondary}`)},"body-sm":{fontFamily:k(`fontFamily-body, ${N.body}`),fontSize:k(`fontSize-sm, ${R.sm}`),lineHeight:k(`lineHeight-md, ${A.md}`),color:k(`palette-text-tertiary, ${z.palette.text.tertiary}`)},"body-xs":{fontFamily:k(`fontFamily-body, ${N.body}`),fontWeight:k(`fontWeight-md, ${P.md}`),fontSize:k(`fontSize-xs, ${R.xs}`),lineHeight:k(`lineHeight-md, ${A.md}`),color:k(`palette-text-tertiary, ${z.palette.text.tertiary}`)}}},$=v?R2(L,v):L,{colorSchemes:B}=$,q=k1($,Wh1),Q=I({colorSchemes:B},q,{breakpoints:J8(p??{}),components:R2({MuiSvgIcon:{defaultProps:{fontSize:"xl2"},styleOverrides:{root:({ownerState:X,theme:c1})=>{var z1;let v1=X.instanceFontSize;return I({margin:"var(--Icon-margin)"},X.fontSize&&X.fontSize!=="inherit"&&{fontSize:`var(--Icon-fontSize, ${c1.vars.fontSize[X.fontSize]})`},!X.htmlColor&&I({color:`var(--Icon-color, ${Q.vars.palette.text.icon})`},X.color&&X.color!=="inherit"&&c1.vars.palette[X.color]&&{color:`rgba(${(z1=c1.vars.palette[X.color])==null?void 0:z1.mainChannel} / 1)`}),v1&&v1!=="inherit"&&{"--Icon-fontSize":c1.vars.fontSize[v1]})}}}},g),cssVarPrefix:u,getCssVar:k,spacing:Pi(b)});function o1(X,c1){Object.keys(c1).forEach(z1=>{let v1={main:"500",light:"200",dark:"700"};X==="dark"&&(v1.main=400),!c1[z1].mainChannel&&c1[z1][v1.main]&&(c1[z1].mainChannel=ot(c1[z1][v1.main])),!c1[z1].lightChannel&&c1[z1][v1.light]&&(c1[z1].lightChannel=ot(c1[z1][v1.light])),!c1[z1].darkChannel&&c1[z1][v1.dark]&&(c1[z1].darkChannel=ot(c1[z1][v1.dark]))})}Object.entries(Q.colorSchemes).forEach(([X,c1])=>{o1(X,c1.palette)});let e1={prefix:u,shouldSkipGeneratingVar:y},{vars:K,generateCssVars:n1}=Zw(I({colorSchemes:B},q),e1);Q.vars=K,Q.generateCssVars=n1,Q.unstable_sxConfig=I({},XV,e?.unstable_sxConfig),Q.unstable_sx=function(c1){return a5({sx:c1,theme:this})},Q.getColorSchemeSelector=X=>X==="light"?"&":`&[data-joy-color-scheme="${X}"], [data-joy-color-scheme="${X}"] &`;let Z={getCssVar:k,palette:Q.colorSchemes.light.palette};return Q.variants=R2({plain:I0("plain",Z),plainHover:I0("plainHover",Z),plainActive:I0("plainActive",Z),plainDisabled:I0("plainDisabled",Z),outlined:I0("outlined",Z),outlinedHover:I0("outlinedHover",Z),outlinedActive:I0("outlinedActive",Z),outlinedDisabled:I0("outlinedDisabled",Z),soft:I0("soft",Z),softHover:I0("softHover",Z),softActive:I0("softActive",Z),softDisabled:I0("softDisabled",Z),solid:I0("solid",Z),solidHover:I0("solidHover",Z),solidActive:I0("solidActive",Z),solidDisabled:I0("solidDisabled",Z)},x),Q.palette=I({},Q.colorSchemes.light.palette,{colorScheme:"light"}),Q.shouldSkipGeneratingVar=y,Q.applyStyles=W9,Q}var Zh1=Li(),D6=Zh1;s();_1();var L02=j(U());var Jh1=j(m1()),ji={attribute:"data-joy-color-scheme",colorSchemeStorageKey:"joy-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"joy-mode"};var{CssVarsProvider:Xw,useColorScheme:lo,getInitColorSchemeScript:G02}=rp({themeId:E6,theme:D6,attribute:ji.attribute,modeStorageKey:ji.modeStorageKey,colorSchemeStorageKey:ji.colorSchemeStorageKey,defaultColorScheme:{light:ji.defaultLightColorScheme,dark:ji.defaultDarkColorScheme}});s();var Xh1=Oi({defaultTheme:D6,themeId:E6}),y1=Xh1;s();var Yh1=j(U());var Qh1=j(m1()),tU=()=>{let e=E7(D6);return e[E6]||e};s();_1();function K1({props:e,name:t}){return Y9({props:e,name:t,defaultTheme:I({},D6,{components:{}}),themeId:E6})}s();s();Y1();_1();var jH=j(U());L3();s();s();s();$w();s();function Fi(e,t,o=(a,i)=>a===i){return e.length===t.length&&e.every((a,i)=>o(a,t[i]))}s();var Ml=j(U()),eg1=j(m1()),tg1={disableDefaultClasses:!1},og1=Ml.createContext(tg1);function oU(e){let{disableDefaultClasses:t}=Ml.useContext(og1);return o=>t?"":e(o)}s();Iw();s();Ow();s();Nw();s();var Sl=j(U());function aU(e){let{rootElementName:t="",componentName:o}=e,[a,i]=Sl.useState(t.toUpperCase()),r=Sl.useCallback(n=>{var c;i((c=n?.tagName)!=null?c:"")},[]);return[a,r]}s();TV();s();Dw();s();u2();s();s();X9();var iU="base";function ag1(e){return`${iU}--${e}`}function ig1(e,t){return`${iU}-${e}-${t}`}function cp(e,t){let o=fw[t];return o?ag1(o):ig1(e,t)}function rU(e,t){let o={};return t.forEach(a=>{o[a]=cp(e,a)}),o}s();s();_1();var so=j(U());u2();function i5(e={}){let{disabled:t=!1,focusableWhenDisabled:o,href:a,rootRef:i,tabIndex:r,to:n,type:c,rootElementName:l}=e,f=so.useRef(null),[m,d]=so.useState(!1),{isFocusVisibleRef:u,onFocus:p,onBlur:b,ref:g}=we(),[x,y]=so.useState(!1);t&&!o&&x&&y(!1),so.useEffect(()=>{u.current=x},[x,u]);let[v,k]=aU({rootElementName:l??(a||n?"a":void 0),componentName:"Button"}),w=_=>E=>{var D;x&&E.preventDefault(),(D=_.onMouseLeave)==null||D.call(_,E)},T=_=>E=>{var D;b(E),u.current===!1&&y(!1),(D=_.onBlur)==null||D.call(_,E)},O=_=>E=>{var D;if(f.current||(f.current=E.currentTarget),p(E),u.current===!0){var L;y(!0),(L=_.onFocusVisible)==null||L.call(_,E)}(D=_.onFocus)==null||D.call(_,E)},C=()=>{let _=f.current;return v==="BUTTON"||v==="INPUT"&&["button","submit","reset"].includes(_?.type)||v==="A"&&_?.href},z=_=>E=>{if(!t){var D;(D=_.onClick)==null||D.call(_,E)}},M=_=>E=>{var D;t||(d(!0),document.addEventListener("mouseup",()=>{d(!1)},{once:!0})),(D=_.onMouseDown)==null||D.call(_,E)},S=_=>E=>{var D;if((D=_.onKeyDown)==null||D.call(_,E),!E.defaultMuiPrevented&&(E.target===E.currentTarget&&!C()&&E.key===" "&&E.preventDefault(),E.target===E.currentTarget&&E.key===" "&&!t&&d(!0),E.target===E.currentTarget&&!C()&&E.key==="Enter"&&!t)){var L;(L=_.onClick)==null||L.call(_,E),E.preventDefault()}},N=_=>E=>{var D;if(E.target===E.currentTarget&&d(!1),(D=_.onKeyUp)==null||D.call(_,E),E.target===E.currentTarget&&!C()&&!t&&E.key===" "&&!E.defaultMuiPrevented){var L;(L=_.onClick)==null||L.call(_,E)}},P=Z1(k,i,g,f),R={};return r!==void 0&&(R.tabIndex=r),v==="BUTTON"?(R.type=c??"button",o?R["aria-disabled"]=t:R.disabled=t):v==="INPUT"?c&&["button","submit","reset"].includes(c)&&(o?R["aria-disabled"]=t:R.disabled=t):v!==""&&(!a&&!n&&(R.role="button",R.tabIndex=r??0),t&&(R["aria-disabled"]=t,R.tabIndex=o?r??0:-1)),{getRootProps:(_={})=>{let E=I({},D2(e),D2(_)),D=I({type:c},E,R,_,{onBlur:T(E),onClick:z(E),onFocus:O(E),onKeyDown:S(E),onKeyUp:N(E),onMouseDown:M(E),onMouseLeave:w(E),ref:P});return delete D.onFocusVisible,D},focusVisible:x,setFocusVisible:y,active:m,rootRef:P}}s();var r5=j(U());u2();var cU=j(m1());function nU(e){return e.substring(2).toLowerCase()}function rg1(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function lU(e){let{children:t,disableReactTree:o=!1,mouseEvent:a="onClick",onClickAway:i,touchEvent:r="onTouchEnd"}=e,n=r5.useRef(!1),c=r5.useRef(null),l=r5.useRef(!1),f=r5.useRef(!1);r5.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);let m=Z1(I7(t),c),d=Z0(b=>{let g=f.current;f.current=!1;let x=c0(c.current);if(!l.current||!c.current||"clientX"in b&&rg1(b,x))return;if(n.current){n.current=!1;return}let y;b.composedPath?y=b.composedPath().indexOf(c.current)>-1:y=!x.documentElement.contains(b.target)||c.current.contains(b.target),!y&&(o||!g)&&i(b)}),u=b=>g=>{f.current=!0;let x=t.props[b];x&&x(g)},p={ref:m};return r!==!1&&(p[r]=u(r)),r5.useEffect(()=>{if(r!==!1){let b=nU(r),g=c0(c.current),x=()=>{n.current=!0};return g.addEventListener(b,d),g.addEventListener("touchmove",x),()=>{g.removeEventListener(b,d),g.removeEventListener("touchmove",x)}}},[d,r]),a!==!1&&(p[a]=u(a)),r5.useEffect(()=>{if(a!==!1){let b=nU(a),g=c0(c.current);return g.addEventListener(b,d),()=>{g.removeEventListener(b,d)}}},[d,a]),(0,cU.jsx)(r5.Fragment,{children:r5.cloneElement(t,p)})}s();_1();var Se=j(U());function ng1(e,t){return e===t}var Yw={},sU=()=>{};function Qw(e,t){let o=I({},e);return Object.keys(t).forEach(a=>{t[a]!==void 0&&(o[a]=t[a])}),o}function cg1(e){let{nextState:t,initialState:o,stateComparers:a,onStateChange:i,controlledProps:r,lastActionRef:n}=e,c=Se.useRef(o);Se.useEffect(()=>{if(n.current===null)return;let l=Qw(c.current,r);Object.keys(t).forEach(f=>{var m;let d=(m=a[f])!=null?m:ng1,u=t[f],p=l[f];if(p==null&&u!=null||p!=null&&u==null||p!=null&&u!=null&&!d(u,p)){var b,g;i?.((b=n.current.event)!=null?b:null,f,u,(g=n.current.type)!=null?g:"",t)}}),c.current=t,n.current=null},[c,t,n,i,a,r])}function fU(e){let t=Se.useRef(null),{reducer:o,initialState:a,controlledProps:i=Yw,stateComparers:r=Yw,onStateChange:n=sU,actionContext:c,componentName:l=""}=e,f=Se.useRef(i),m=Se.useCallback((b,g)=>{t.current=g;let x=Qw(b,i);return o(x,g)},[i,o]),[d,u]=Se.useReducer(m,a),p=Se.useCallback(b=>{u(I({},b,{context:c}))},[c]);return cg1({nextState:d,initialState:a,stateComparers:r??Yw,onStateChange:n??sU,controlledProps:i,lastActionRef:t}),[Qw(d,i),p]}s();s();var mU=j(U()),dU=mU.createContext(void 0);s();var uU=j(U());function eM(){return uU.useContext(dU)}s();s();_1();W8();var N7=j(U());u2();function tM(e={}){let{defaultValue:t,disabled:o=!1,error:a=!1,onBlur:i,onChange:r,onFocus:n,required:c=!1,value:l,inputRef:f}=e,m=eM(),d,u,p,b,g;if(m){var x,y,v;d=void 0,u=(x=m.disabled)!=null?x:!1,p=(y=m.error)!=null?y:!1,b=(v=m.required)!=null?v:!1,g=m.value}else d=t,u=o,p=a,b=c,g=l;let{current:k}=N7.useRef(g!=null),w=N7.useCallback(_=>{},[]),T=N7.useRef(null),O=Z1(T,f,w),[C,z]=N7.useState(!1);N7.useEffect(()=>{!m&&u&&C&&(z(!1),i?.())},[m,u,C,i]);let M=_=>E=>{var D;if(m!=null&&m.disabled){E.stopPropagation();return}if((D=_.onFocus)==null||D.call(_,E),m&&m.onFocus){var L;m==null||(L=m.onFocus)==null||L.call(m)}else z(!0)},S=_=>E=>{var D;(D=_.onBlur)==null||D.call(_,E),m&&m.onBlur?m.onBlur():z(!1)},N=_=>(E,...D)=>{var L,$;if(!k&&(E.target||T.current)==null)throw new Error(O0(17));m==null||(L=m.onChange)==null||L.call(m,E),($=_.onChange)==null||$.call(_,E,...D)},P=_=>E=>{var D;T.current&&E.currentTarget===E.target&&T.current.focus(),(D=_.onClick)==null||D.call(_,E)};return{disabled:u,error:p,focused:C,formControlContext:m,getInputProps:(_={})=>{let D=I({},{onBlur:i,onChange:r,onFocus:n},D2(_)),L=I({},D,{onBlur:S(D),onChange:N(D),onFocus:M(D)});return I({},L,{"aria-invalid":p||void 0,defaultValue:d,value:g,required:b,disabled:u},_,{ref:O},L)},getRootProps:(_={})=>{let E=D2(e,["onBlur","onChange","onFocus"]),D=I({},E,D2(_));return I({},_,D,{onClick:P(D)})},inputRef:O,required:b,value:g}}s();s();_1();var X0=j(U());u2();s();var W2={blur:"list:blur",focus:"list:focus",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",highlightLast:"list:highlightLast",textNavigation:"list:textNavigation",clearSelection:"list:clearSelection"};s();_1();function lg1(e,t,o,a,i,r){if(o.length===0||!a&&o.every((c,l)=>i(c,l)))return-1;let n=e;for(;;){if(!r&&t==="next"&&n===o.length||!r&&t==="previous"&&n===-1)return-1;if(a?!1:i(o[n],n))n+=t==="next"?1:-1,r&&(n=(n+o.length)%o.length);else return n}}function k0(e,t,o){var a;let{items:i,isItemDisabled:r,disableListWrap:n,disabledItemsFocusable:c,itemComparer:l,focusManagement:f}=o,m=f==="DOM"?0:-1,d=i.length-1,u=e==null?-1:i.findIndex(y=>l(y,e)),p,b,g=!n;switch(t){case"reset":if(m===-1)return null;p=0,b="next",g=!1;break;case"start":p=0,b="next",g=!1;break;case"end":p=d,b="previous",g=!1;break;default:{let y=u+t;y<0?!g&&u!==-1||Math.abs(t)>1?(p=0,b="next"):(p=d,b="previous"):y>d?!g||Math.abs(t)>1?(p=d,b="previous"):(p=0,b="next"):(p=y,b=t>=0?"next":"previous")}}let x=lg1(p,b,i,c,r,g);return x===-1&&e!==null&&!r(e,u)?e:(a=i[x])!=null?a:null}function sg1(e,t,o,a){return o==="none"?[]:o==="single"?a(t[0],e)?t:[e]:t.some(i=>a(i,e))?t.filter(i=>!a(i,e)):[...t,e]}function lp(e,t,o){let{itemComparer:a,isItemDisabled:i,selectionMode:r,items:n}=o,{selectedValues:c}=t,l=n.findIndex(m=>a(e,m));if(i(e,l))return t;let f=sg1(e,c,r,a);return I({},t,{selectedValues:f,highlightedValue:e})}function fg1(e,t,o){let a=t.highlightedValue,{orientation:i,pageSize:r}=o;switch(e){case"Home":return I({},t,{highlightedValue:k0(a,"start",o)});case"End":return I({},t,{highlightedValue:k0(a,"end",o)});case"PageUp":return I({},t,{highlightedValue:k0(a,-r,o)});case"PageDown":return I({},t,{highlightedValue:k0(a,r,o)});case"ArrowUp":if(i!=="vertical")break;return I({},t,{highlightedValue:k0(a,-1,o)});case"ArrowDown":if(i!=="vertical")break;return I({},t,{highlightedValue:k0(a,1,o)});case"ArrowLeft":{if(i==="vertical")break;return I({},t,{highlightedValue:k0(a,i==="horizontal-ltr"?-1:1,o)})}case"ArrowRight":{if(i==="vertical")break;return I({},t,{highlightedValue:k0(a,i==="horizontal-ltr"?1:-1,o)})}case"Enter":case" ":return t.highlightedValue===null?t:lp(t.highlightedValue,t,o);default:break}return t}function mg1(e,t){return t.focusManagement==="DOM"?e:I({},e,{highlightedValue:null})}function dg1(e,t,o){var a;let i=(a=o(e))==null?void 0:a.trim().toLowerCase();return!i||i.length===0?!1:i.indexOf(t)===0}function ug1(e,t,o){let{items:a,isItemDisabled:i,disabledItemsFocusable:r,getItemAsString:n}=o,c=t.length>1,l=c?e.highlightedValue:k0(e.highlightedValue,1,o);for(let f=0;f<a.length;f+=1){if(!l||!c&&e.highlightedValue===l)return e;if(dg1(l,t,n)&&(!i(l,a.indexOf(l))||r))return I({},e,{highlightedValue:l});l=k0(l,1,o)}return e}function pg1(e,t,o,a){var i;let{itemComparer:r,focusManagement:n}=a,c=null;if(o.highlightedValue!=null){var l;c=(l=e.find(d=>r(d,o.highlightedValue)))!=null?l:null}else n==="DOM"&&t.length===0&&(c=k0(null,"reset",a));let m=((i=o.selectedValues)!=null?i:[]).filter(d=>e.some(u=>r(u,d)));return I({},o,{highlightedValue:c,selectedValues:m})}function hg1(e,t){return I({},e,{highlightedValue:k0(null,"reset",t)})}function gg1(e,t){return I({},e,{highlightedValue:k0(null,"end",t)})}function vg1(e,t){return I({},e,{selectedValues:[],highlightedValue:k0(null,"reset",t)})}function sp(e,t){let{type:o,context:a}=t;switch(o){case W2.keyDown:return fg1(t.key,e,a);case W2.itemClick:return lp(t.item,e,a);case W2.blur:return mg1(e,a);case W2.textNavigation:return ug1(e,t.searchString,a);case W2.itemsChange:return pg1(t.items,t.previousItems,e,a);case W2.resetHighlight:return hg1(e,a);case W2.highlightLast:return gg1(e,a);case W2.clearSelection:return vg1(e,a);default:return e}}s();var fp=j(U()),bg1=500;function pU(e){let t=fp.useRef({searchString:"",lastTime:null});return fp.useCallback(o=>{if(o.key.length===1&&o.key!==" "){let a=t.current,i=o.key.toLowerCase(),r=performance.now();a.searchString.length>0&&a.lastTime&&r-a.lastTime>bg1?a.searchString=i:(a.searchString.length!==1||i!==a.searchString)&&(a.searchString+=i),a.lastTime=r,e(a.searchString,o)}},[e])}var hU={},yg1=()=>{},kg1=(e,t)=>e===t,xg1=()=>!1,zg1=e=>typeof e=="string"?e:String(e),wg1=()=>({highlightedValue:null,selectedValues:[]});function oM(e){let{controlledProps:t=hU,disabledItemsFocusable:o=!1,disableListWrap:a=!1,focusManagement:i="activeDescendant",getInitialState:r=wg1,getItemDomElement:n,getItemId:c,isItemDisabled:l=xg1,rootRef:f,onStateChange:m=yg1,items:d,itemComparer:u=kg1,getItemAsString:p=zg1,onChange:b,onHighlightChange:g,onItemsChange:x,orientation:y="vertical",pageSize:v=5,reducerActionContext:k=hU,selectionMode:w="single",stateReducer:T,componentName:O="useList"}=e,C=X0.useRef(null),z=Z1(f,C),M=X0.useCallback((Z,X,c1)=>{if(g?.(Z,X,c1),i==="DOM"&&X!=null&&(c1===W2.itemClick||c1===W2.keyDown||c1===W2.textNavigation)){var z1;n==null||(z1=n(X))==null||z1.focus()}},[n,g,i]),S=X0.useMemo(()=>({highlightedValue:u,selectedValues:(Z,X)=>Fi(Z,X,u)}),[u]),N=X0.useCallback((Z,X,c1,z1,v1)=>{switch(m?.(Z,X,c1,z1,v1),X){case"highlightedValue":M(Z,c1,z1);break;case"selectedValues":b?.(Z,c1,z1);break;default:break}},[M,b,m]),P=X0.useMemo(()=>({disabledItemsFocusable:o,disableListWrap:a,focusManagement:i,isItemDisabled:l,itemComparer:u,items:d,getItemAsString:p,onHighlightChange:M,orientation:y,pageSize:v,selectionMode:w,stateComparers:S}),[o,a,i,l,u,d,p,M,y,v,w,S]),R=r(),A=T??sp,_=X0.useMemo(()=>I({},k,P),[k,P]),[E,D]=fU({reducer:A,actionContext:_,initialState:R,controlledProps:t,stateComparers:S,onStateChange:N,componentName:O}),{highlightedValue:L,selectedValues:$}=E,B=pU((Z,X)=>D({type:W2.textNavigation,event:X,searchString:Z})),q=X0.useRef([]);X0.useEffect(()=>{Fi(q.current,d,u)||(D({type:W2.itemsChange,event:null,items:d,previousItems:q.current}),q.current=d,x?.(d))},[d,u,D,x]);let Q=Z=>X=>{var c1;if((c1=Z.onKeyDown)==null||c1.call(Z,X),X.defaultMuiPrevented)return;let z1=["Home","End","PageUp","PageDown"];y==="vertical"?z1.push("ArrowUp","ArrowDown"):z1.push("ArrowLeft","ArrowRight"),i==="activeDescendant"&&z1.push(" ","Enter"),z1.includes(X.key)&&X.preventDefault(),D({type:W2.keyDown,key:X.key,event:X}),B(X)},o1=Z=>X=>{var c1,z1;(c1=Z.onBlur)==null||c1.call(Z,X),!X.defaultMuiPrevented&&((z1=C.current)!=null&&z1.contains(X.relatedTarget)||D({type:W2.blur,event:X}))},e1=(Z={})=>{let X=D2(Z);return I({},Z,{"aria-activedescendant":i==="activeDescendant"&&L!=null?c(L):void 0,tabIndex:i==="DOM"?-1:0,ref:z},X,{onBlur:o1(X),onKeyDown:Q(X)})},K=X0.useCallback(Z=>{let X=($??[]).some(v1=>v1!=null&&u(Z,v1)),c1=L!=null&&u(Z,L);return{focusable:i==="DOM",highlighted:c1,selected:X}},[u,$,L,i]),n1=X0.useMemo(()=>({dispatch:D,getItemState:K}),[D,K]);return X0.useDebugValue({state:E}),{contextValue:n1,dispatch:D,getRootProps:e1,rootRef:z,state:E}}s();_1();var Tl=j(U());s();var gU=j(U()),it=gU.createContext(null);function aM(e){let{handlePointerOverEvents:t=!1,item:o}=e,a=Tl.useContext(it);if(!a)throw new Error("useListItem must be used within a ListProvider");let{dispatch:i,getItemState:r}=a,{highlighted:n,selected:c,focusable:l}=r(o),f=Tl.useCallback(p=>b=>{var g;(g=p.onClick)==null||g.call(p,b),!b.defaultPrevented&&i({type:W2.itemClick,item:o,event:b})},[i,o]),m=Tl.useCallback(p=>b=>{var g;(g=p.onMouseOver)==null||g.call(p,b),!b.defaultPrevented&&i({type:W2.itemHover,item:o,event:b})},[i,o]),d;return l&&(d=n?0:-1),{getRootProps:(p={})=>{let b=D2(p);return I({},p,{onClick:f(b),onPointerOver:t?m(b):void 0,tabIndex:d})},highlighted:n,selected:c}}s();var n5=j(U()),mp=n5.createContext(null);function Mg1(e){let t=Array.from(e.keys()).map(o=>{let a=e.get(o);return{key:o,subitem:a}});return t.sort((o,a)=>{let i=o.subitem.ref.current,r=a.subitem.ref.current;return i===null||r===null||i===r?0:i.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(t.map(o=>[o.key,o.subitem]))}function vU(){let[e,t]=n5.useState(new Map),o=n5.useRef(new Set),a=n5.useCallback(function(f){o.current.delete(f),t(m=>{let d=new Map(m);return d.delete(f),d})},[]),i=n5.useCallback(function(f,m){let d;return typeof f=="function"?d=f(o.current):d=f,o.current.add(d),t(u=>{let p=new Map(u);return p.set(d,m),p}),{id:d,deregister:()=>a(d)}},[a]),r=n5.useMemo(()=>Mg1(e),[e]),n=n5.useCallback(function(f){return Array.from(r.keys()).indexOf(f)},[r]);return{contextValue:n5.useMemo(()=>({getItemIndex:n,registerItem:i,totalSubitemCount:e.size}),[n,i,e.size]),subitems:r}}s();var dp=j(U());u2();function bU(e,t){let o=dp.useContext(mp);if(o===null)throw new Error("useCompoundItem must be used within a useCompoundParent");let{registerItem:a}=o,[i,r]=dp.useState(typeof e=="function"?void 0:e);return y3(()=>{let{id:n,deregister:c}=a(e,t);return r(n),c},[a,t,e]),{id:i,index:i!==void 0?o.getItemIndex(i):-1,totalItemCount:o.totalSubitemCount}}s();_1();function Bi(e,t){return function(a={}){let i=I({},a,e(a));return I({},i,t(i))}}s();s();s();s();var N6=Math.min,l0=Math.max,fo=Math.round,Vi=Math.floor,Te=e=>({x:e,y:e}),Sg1={left:"right",right:"left",bottom:"top",top:"bottom"};function iM(e,t,o){return l0(e,N6(t,o))}function rt(e,t){return typeof e=="function"?e(t):e}function L7(e){return e.split("-")[0]}function Ui(e){return e.split("-")[1]}function rM(e){return e==="x"?"y":"x"}function nM(e){return e==="y"?"height":"width"}function L6(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function cM(e){return rM(L6(e))}function xU(e,t,o){o===void 0&&(o=!1);let a=Ui(e),i=cM(e),r=nM(i),n=i==="x"?a===(o?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(n=Rl(n)),[n,Rl(n)]}function zU(e){let t=Rl(e);return[up(e),t,up(t)]}function up(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var yU=["left","right"],kU=["right","left"],Tg1=["top","bottom"],Rg1=["bottom","top"];function Eg1(e,t,o){switch(e){case"top":case"bottom":return o?t?kU:yU:t?yU:kU;case"left":case"right":return t?Tg1:Rg1;default:return[]}}function wU(e,t,o,a){let i=Ui(e),r=Eg1(L7(e),o==="start",a);return i&&(r=r.map(n=>n+"-"+i),t&&(r=r.concat(r.map(up)))),r}function Rl(e){let t=L7(e);return Sg1[t]+e.slice(t.length)}function _g1(e){return{top:0,right:0,bottom:0,left:0,...e}}function MU(e){return typeof e!="number"?_g1(e):{top:e,right:e,bottom:e,left:e}}function mo(e){let{x:t,y:o,width:a,height:i}=e;return{width:a,height:i,top:o,left:t,right:t+a,bottom:o+i,x:t,y:o}}function SU(e,t,o){let{reference:a,floating:i}=e,r=L6(t),n=cM(t),c=nM(n),l=L7(t),f=r==="y",m=a.x+a.width/2-i.width/2,d=a.y+a.height/2-i.height/2,u=a[c]/2-i[c]/2,p;switch(l){case"top":p={x:m,y:a.y-i.height};break;case"bottom":p={x:m,y:a.y+a.height};break;case"right":p={x:a.x+a.width,y:d};break;case"left":p={x:a.x-i.width,y:d};break;default:p={x:a.x,y:a.y}}switch(Ui(t)){case"start":p[n]-=u*(o&&f?-1:1);break;case"end":p[n]+=u*(o&&f?-1:1);break}return p}async function lM(e,t){var o;t===void 0&&(t={});let{x:a,y:i,platform:r,rects:n,elements:c,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:m="viewport",elementContext:d="floating",altBoundary:u=!1,padding:p=0}=rt(t,e),b=MU(p),x=c[u?d==="floating"?"reference":"floating":d],y=mo(await r.getClippingRect({element:(o=await(r.isElement==null?void 0:r.isElement(x)))==null||o?x:x.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:f,rootBoundary:m,strategy:l})),v=d==="floating"?{x:a,y:i,width:n.floating.width,height:n.floating.height}:n.reference,k=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),w=await(r.isElement==null?void 0:r.isElement(k))?await(r.getScale==null?void 0:r.getScale(k))||{x:1,y:1}:{x:1,y:1},T=mo(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:v,offsetParent:k,strategy:l}):v);return{top:(y.top-T.top+b.top)/w.y,bottom:(T.bottom-y.bottom+b.bottom)/w.y,left:(y.left-T.left+b.left)/w.x,right:(T.right-y.right+b.right)/w.x}}var Cg1=50,TU=async(e,t,o)=>{let{placement:a="bottom",strategy:i="absolute",middleware:r=[],platform:n}=o,c=n.detectOverflow?n:{...n,detectOverflow:lM},l=await(n.isRTL==null?void 0:n.isRTL(t)),f=await n.getElementRects({reference:e,floating:t,strategy:i}),{x:m,y:d}=SU(f,a,l),u=a,p=0,b={};for(let g=0;g<r.length;g++){let x=r[g];if(!x)continue;let{name:y,fn:v}=x,{x:k,y:w,data:T,reset:O}=await v({x:m,y:d,initialPlacement:a,placement:u,strategy:i,middlewareData:b,rects:f,platform:c,elements:{reference:e,floating:t}});m=k??m,d=w??d,b[y]={...b[y],...T},O&&p<Cg1&&(p++,typeof O=="object"&&(O.placement&&(u=O.placement),O.rects&&(f=O.rects===!0?await n.getElementRects({reference:e,floating:t,strategy:i}):O.rects),{x:m,y:d}=SU(f,u,l)),g=-1)}return{x:m,y:d,placement:u,strategy:i,middlewareData:b}};var RU=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,a;let{placement:i,middlewareData:r,rects:n,initialPlacement:c,platform:l,elements:f}=t,{mainAxis:m=!0,crossAxis:d=!0,fallbackPlacements:u,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:g=!0,...x}=rt(e,t);if((o=r.arrow)!=null&&o.alignmentOffset)return{};let y=L7(i),v=L6(c),k=L7(c)===c,w=await(l.isRTL==null?void 0:l.isRTL(f.floating)),T=u||(k||!g?[Rl(c)]:zU(c)),O=b!=="none";!u&&O&&T.push(...wU(c,g,b,w));let C=[c,...T],z=await l.detectOverflow(t,x),M=[],S=((a=r.flip)==null?void 0:a.overflows)||[];if(m&&M.push(z[y]),d){let A=xU(i,n,w);M.push(z[A[0]],z[A[1]])}if(S=[...S,{placement:i,overflows:M}],!M.every(A=>A<=0)){var N,P;let A=(((N=r.flip)==null?void 0:N.index)||0)+1,_=C[A];if(_&&(!(d==="alignment"?v!==L6(_):!1)||S.every(L=>L6(L.placement)===v?L.overflows[0]>0:!0)))return{data:{index:A,overflows:S},reset:{placement:_}};let E=(P=S.filter(D=>D.overflows[0]<=0).sort((D,L)=>D.overflows[1]-L.overflows[1])[0])==null?void 0:P.placement;if(!E)switch(p){case"bestFit":{var R;let D=(R=S.filter(L=>{if(O){let $=L6(L.placement);return $===v||$==="y"}return!0}).map(L=>[L.placement,L.overflows.filter($=>$>0).reduce(($,B)=>$+B,0)]).sort((L,$)=>L[1]-$[1])[0])==null?void 0:R[0];D&&(E=D);break}case"initialPlacement":E=c;break}if(i!==E)return{reset:{placement:E}}}return{}}}};var Pg1=new Set(["left","top"]);async function Ag1(e,t){let{placement:o,platform:a,elements:i}=e,r=await(a.isRTL==null?void 0:a.isRTL(i.floating)),n=L7(o),c=Ui(o),l=L6(o)==="y",f=Pg1.has(n)?-1:1,m=r&&l?-1:1,d=rt(t,e),{mainAxis:u,crossAxis:p,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return c&&typeof b=="number"&&(p=c==="end"?b*-1:b),l?{x:p*m,y:u*f}:{x:u*f,y:p*m}}var EU=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,a;let{x:i,y:r,placement:n,middlewareData:c}=t,l=await Ag1(t,e);return n===((o=c.offset)==null?void 0:o.placement)&&(a=c.arrow)!=null&&a.alignmentOffset?{}:{x:i+l.x,y:r+l.y,data:{...l,placement:n}}}}},_U=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:a,placement:i,platform:r}=t,{mainAxis:n=!0,crossAxis:c=!1,limiter:l={fn:y=>{let{x:v,y:k}=y;return{x:v,y:k}}},...f}=rt(e,t),m={x:o,y:a},d=await r.detectOverflow(t,f),u=L6(L7(i)),p=rM(u),b=m[p],g=m[u];if(n){let y=p==="y"?"top":"left",v=p==="y"?"bottom":"right",k=b+d[y],w=b-d[v];b=iM(k,b,w)}if(c){let y=u==="y"?"top":"left",v=u==="y"?"bottom":"right",k=g+d[y],w=g-d[v];g=iM(k,g,w)}let x=l.fn({...t,[p]:b,[u]:g});return{...x,data:{x:x.x-o,y:x.y-a,enabled:{[p]:n,[u]:c}}}}}};var CU=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o,a;let{placement:i,rects:r,platform:n,elements:c}=t,{apply:l=()=>{},...f}=rt(e,t),m=await n.detectOverflow(t,f),d=L7(i),u=Ui(i),p=L6(i)==="y",{width:b,height:g}=r.floating,x,y;d==="top"||d==="bottom"?(x=d,y=u===(await(n.isRTL==null?void 0:n.isRTL(c.floating))?"start":"end")?"left":"right"):(y=d,x=u==="end"?"top":"bottom");let v=g-m.top-m.bottom,k=b-m.left-m.right,w=N6(g-m[x],v),T=N6(b-m[y],k),O=!t.middlewareData.shift,C=w,z=T;if((o=t.middlewareData.shift)!=null&&o.enabled.x&&(z=k),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(C=v),O&&!u){let S=l0(m.left,0),N=l0(m.right,0),P=l0(m.top,0),R=l0(m.bottom,0);p?z=b-2*(S!==0||N!==0?S+N:l0(m.left,m.right)):C=g-2*(P!==0||R!==0?P+R:l0(m.top,m.bottom))}await l({...t,availableWidth:z,availableHeight:C});let M=await n.getDimensions(c.floating);return b!==M.width||g!==M.height?{reset:{rects:!0}}:{}}}};s();function pp(){return typeof window<"u"}function nt(e){return AU(e)?(e.nodeName||"").toLowerCase():"#document"}function h4(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Re(e){var t;return(t=(AU(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function AU(e){return pp()?e instanceof Node||e instanceof h4(e).Node:!1}function D0(e){return pp()?e instanceof Element||e instanceof h4(e).Element:!1}function Ee(e){return pp()?e instanceof HTMLElement||e instanceof h4(e).HTMLElement:!1}function PU(e){return!pp()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof h4(e).ShadowRoot}function Hi(e){let{overflow:t,overflowX:o,overflowY:a,display:i}=c5(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+o)&&i!=="inline"&&i!=="contents"}function OU(e){return/^(table|td|th)$/.test(nt(e))}function El(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var Og1=/transform|translate|scale|rotate|perspective|filter/,$g1=/paint|layout|strict|content/,uo=e=>!!e&&e!=="none",sM;function hp(e){let t=D0(e)?c5(e):e;return uo(t.transform)||uo(t.translate)||uo(t.scale)||uo(t.rotate)||uo(t.perspective)||!_l()&&(uo(t.backdropFilter)||uo(t.filter))||Og1.test(t.willChange||"")||$g1.test(t.contain||"")}function $U(e){let t=j6(e);for(;Ee(t)&&!ct(t);){if(hp(t))return t;if(El(t))return null;t=j6(t)}return null}function _l(){return sM==null&&(sM=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),sM}function ct(e){return/^(html|body|#document)$/.test(nt(e))}function c5(e){return h4(e).getComputedStyle(e)}function Cl(e){return D0(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function j6(e){if(nt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||PU(e)&&e.host||Re(e);return PU(t)?t.host:t}function IU(e){let t=j6(e);return ct(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ee(t)&&Hi(t)?t:IU(t)}function j7(e,t,o){var a;t===void 0&&(t=[]),o===void 0&&(o=!0);let i=IU(e),r=i===((a=e.ownerDocument)==null?void 0:a.body),n=h4(i);if(r){let c=gp(n);return t.concat(n,n.visualViewport||[],Hi(i)?i:[],c&&o?j7(c):[])}else return t.concat(i,j7(i,[],o))}function gp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function jU(e){let t=c5(e),o=parseFloat(t.width)||0,a=parseFloat(t.height)||0,i=Ee(e),r=i?e.offsetWidth:o,n=i?e.offsetHeight:a,c=fo(o)!==r||fo(a)!==n;return c&&(o=r,a=n),{width:o,height:a,$:c}}function mM(e){return D0(e)?e:e.contextElement}function Gi(e){let t=mM(e);if(!Ee(t))return Te(1);let o=t.getBoundingClientRect(),{width:a,height:i,$:r}=jU(t),n=(r?fo(o.width):o.width)/a,c=(r?fo(o.height):o.height)/i;return(!n||!Number.isFinite(n))&&(n=1),(!c||!Number.isFinite(c))&&(c=1),{x:n,y:c}}var Ig1=Te(0);function FU(e){let t=h4(e);return!_l()||!t.visualViewport?Ig1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Dg1(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==h4(e)?!1:t}function po(e,t,o,a){t===void 0&&(t=!1),o===void 0&&(o=!1);let i=e.getBoundingClientRect(),r=mM(e),n=Te(1);t&&(a?D0(a)&&(n=Gi(a)):n=Gi(e));let c=Dg1(r,o,a)?FU(r):Te(0),l=(i.left+c.x)/n.x,f=(i.top+c.y)/n.y,m=i.width/n.x,d=i.height/n.y;if(r){let u=h4(r),p=a&&D0(a)?h4(a):a,b=u,g=gp(b);for(;g&&a&&p!==b;){let x=Gi(g),y=g.getBoundingClientRect(),v=c5(g),k=y.left+(g.clientLeft+parseFloat(v.paddingLeft))*x.x,w=y.top+(g.clientTop+parseFloat(v.paddingTop))*x.y;l*=x.x,f*=x.y,m*=x.x,d*=x.y,l+=k,f+=w,b=h4(g),g=gp(b)}}return mo({width:m,height:d,x:l,y:f})}function vp(e,t){let o=Cl(e).scrollLeft;return t?t.left+o:po(Re(e)).left+o}function BU(e,t){let o=e.getBoundingClientRect(),a=o.left+t.scrollLeft-vp(e,o),i=o.top+t.scrollTop;return{x:a,y:i}}function Ng1(e){let{elements:t,rect:o,offsetParent:a,strategy:i}=e,r=i==="fixed",n=Re(a),c=t?El(t.floating):!1;if(a===n||c&&r)return o;let l={scrollLeft:0,scrollTop:0},f=Te(1),m=Te(0),d=Ee(a);if((d||!d&&!r)&&((nt(a)!=="body"||Hi(n))&&(l=Cl(a)),d)){let p=po(a);f=Gi(a),m.x=p.x+a.clientLeft,m.y=p.y+a.clientTop}let u=n&&!d&&!r?BU(n,l):Te(0);return{width:o.width*f.x,height:o.height*f.y,x:o.x*f.x-l.scrollLeft*f.x+m.x+u.x,y:o.y*f.y-l.scrollTop*f.y+m.y+u.y}}function Lg1(e){return Array.from(e.getClientRects())}function jg1(e){let t=Re(e),o=Cl(e),a=e.ownerDocument.body,i=l0(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),r=l0(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight),n=-o.scrollLeft+vp(e),c=-o.scrollTop;return c5(a).direction==="rtl"&&(n+=l0(t.clientWidth,a.clientWidth)-i),{width:i,height:r,x:n,y:c}}var DU=25;function Fg1(e,t){let o=h4(e),a=Re(e),i=o.visualViewport,r=a.clientWidth,n=a.clientHeight,c=0,l=0;if(i){r=i.width,n=i.height;let m=_l();(!m||m&&t==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}let f=vp(a);if(f<=0){let m=a.ownerDocument,d=m.body,u=getComputedStyle(d),p=m.compatMode==="CSS1Compat"&&parseFloat(u.marginLeft)+parseFloat(u.marginRight)||0,b=Math.abs(a.clientWidth-d.clientWidth-p);b<=DU&&(r-=b)}else f<=DU&&(r+=f);return{width:r,height:n,x:c,y:l}}function Bg1(e,t){let o=po(e,!0,t==="fixed"),a=o.top+e.clientTop,i=o.left+e.clientLeft,r=Ee(e)?Gi(e):Te(1),n=e.clientWidth*r.x,c=e.clientHeight*r.y,l=i*r.x,f=a*r.y;return{width:n,height:c,x:l,y:f}}function NU(e,t,o){let a;if(t==="viewport")a=Fg1(e,o);else if(t==="document")a=jg1(Re(e));else if(D0(t))a=Bg1(t,o);else{let i=FU(e);a={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return mo(a)}function VU(e,t){let o=j6(e);return o===t||!D0(o)||ct(o)?!1:c5(o).position==="fixed"||VU(o,t)}function Vg1(e,t){let o=t.get(e);if(o)return o;let a=j7(e,[],!1).filter(c=>D0(c)&&nt(c)!=="body"),i=null,r=c5(e).position==="fixed",n=r?j6(e):e;for(;D0(n)&&!ct(n);){let c=c5(n),l=hp(n);!l&&c.position==="fixed"&&(i=null),(r?!l&&!i:!l&&c.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||Hi(n)&&!l&&VU(e,n))?a=a.filter(m=>m!==n):i=c,n=j6(n)}return t.set(e,a),a}function Ug1(e){let{element:t,boundary:o,rootBoundary:a,strategy:i}=e,n=[...o==="clippingAncestors"?El(t)?[]:Vg1(t,this._c):[].concat(o),a],c=NU(t,n[0],i),l=c.top,f=c.right,m=c.bottom,d=c.left;for(let u=1;u<n.length;u++){let p=NU(t,n[u],i);l=l0(p.top,l),f=N6(p.right,f),m=N6(p.bottom,m),d=l0(p.left,d)}return{width:f-d,height:m-l,x:d,y:l}}function Hg1(e){let{width:t,height:o}=jU(e);return{width:t,height:o}}function Gg1(e,t,o){let a=Ee(t),i=Re(t),r=o==="fixed",n=po(e,!0,r,t),c={scrollLeft:0,scrollTop:0},l=Te(0);function f(){l.x=vp(i)}if(a||!a&&!r)if((nt(t)!=="body"||Hi(i))&&(c=Cl(t)),a){let p=po(t,!0,r,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&f();r&&!a&&i&&f();let m=i&&!a&&!r?BU(i,c):Te(0),d=n.left+c.scrollLeft-l.x-m.x,u=n.top+c.scrollTop-l.y-m.y;return{x:d,y:u,width:n.width,height:n.height}}function fM(e){return c5(e).position==="static"}function LU(e,t){if(!Ee(e)||c5(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return Re(e)===o&&(o=o.ownerDocument.body),o}function UU(e,t){let o=h4(e);if(El(e))return o;if(!Ee(e)){let i=j6(e);for(;i&&!ct(i);){if(D0(i)&&!fM(i))return i;i=j6(i)}return o}let a=LU(e,t);for(;a&&OU(a)&&fM(a);)a=LU(a,t);return a&&ct(a)&&fM(a)&&!hp(a)?o:a||$U(e)||o}var Kg1=async function(e){let t=this.getOffsetParent||UU,o=this.getDimensions,a=await o(e.floating);return{reference:Gg1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function qg1(e){return c5(e).direction==="rtl"}var dM={convertOffsetParentRelativeRectToViewportRelativeRect:Ng1,getDocumentElement:Re,getClippingRect:Ug1,getOffsetParent:UU,getElementRects:Kg1,getClientRects:Lg1,getDimensions:Hg1,getScale:Gi,isElement:D0,isRTL:qg1};function HU(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Wg1(e,t){let o=null,a,i=Re(e);function r(){var c;clearTimeout(a),(c=o)==null||c.disconnect(),o=null}function n(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),r();let f=e.getBoundingClientRect(),{left:m,top:d,width:u,height:p}=f;if(c||t(),!u||!p)return;let b=Vi(d),g=Vi(i.clientWidth-(m+u)),x=Vi(i.clientHeight-(d+p)),y=Vi(m),k={rootMargin:-b+"px "+-g+"px "+-x+"px "+-y+"px",threshold:l0(0,N6(1,l))||1},w=!0;function T(O){let C=O[0].intersectionRatio;if(C!==l){if(!w)return n();C?n(!1,C):a=setTimeout(()=>{n(!1,1e-7)},1e3)}C===1&&!HU(f,e.getBoundingClientRect())&&n(),w=!1}try{o=new IntersectionObserver(T,{...k,root:i.ownerDocument})}catch{o=new IntersectionObserver(T,k)}o.observe(e)}return n(!0),r}function bp(e,t,o,a){a===void 0&&(a={});let{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:n=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=a,f=mM(e),m=i||r?[...f?j7(f):[],...t?j7(t):[]]:[];m.forEach(y=>{i&&y.addEventListener("scroll",o,{passive:!0}),r&&y.addEventListener("resize",o)});let d=f&&c?Wg1(f,o):null,u=-1,p=null;n&&(p=new ResizeObserver(y=>{let[v]=y;v&&v.target===f&&p&&t&&(p.unobserve(t),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var k;(k=p)==null||k.observe(t)})),o()}),f&&!l&&p.observe(f),t&&p.observe(t));let b,g=l?po(e):null;l&&x();function x(){let y=po(e);g&&!HU(g,y)&&o(),g=y,b=requestAnimationFrame(x)}return o(),()=>{var y;m.forEach(v=>{i&&v.removeEventListener("scroll",o),r&&v.removeEventListener("resize",o)}),d?.(),(y=p)==null||y.disconnect(),p=null,l&&cancelAnimationFrame(b)}}var Ki=lM,GU=EU;var KU=_U,qU=RU,WU=CU;var yp=(e,t,o)=>{let a=new Map,i={platform:dM,...o},r={...i.platform,_c:a};return TU(e,t,{...i,platform:r})};var Q3=j(U(),1),eH=j(U(),1),tH=j(st(),1),Yg1=typeof document<"u",Qg1=function(){},xp=Yg1?eH.useLayoutEffect:Qg1;function zp(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let o,a,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!==t.length)return!1;for(a=o;a--!==0;)if(!zp(e[a],t[a]))return!1;return!0}if(i=Object.keys(e),o=i.length,o!==Object.keys(t).length)return!1;for(a=o;a--!==0;)if(!{}.hasOwnProperty.call(t,i[a]))return!1;for(a=o;a--!==0;){let r=i[a];if(!(r==="_owner"&&e.$$typeof)&&!zp(e[r],t[r]))return!1}return!0}return e!==e&&t!==t}function oH(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function QU(e,t){let o=oH(e);return Math.round(t*o)/o}function uM(e){let t=Q3.useRef(e);return xp(()=>{t.current=e}),t}function aH(e){e===void 0&&(e={});let{placement:t="bottom",strategy:o="absolute",middleware:a=[],platform:i,elements:{reference:r,floating:n}={},transform:c=!0,whileElementsMounted:l,open:f}=e,[m,d]=Q3.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[u,p]=Q3.useState(a);zp(u,a)||p(a);let[b,g]=Q3.useState(null),[x,y]=Q3.useState(null),v=Q3.useCallback(L=>{L!==O.current&&(O.current=L,g(L))},[]),k=Q3.useCallback(L=>{L!==C.current&&(C.current=L,y(L))},[]),w=r||b,T=n||x,O=Q3.useRef(null),C=Q3.useRef(null),z=Q3.useRef(m),M=l!=null,S=uM(l),N=uM(i),P=uM(f),R=Q3.useCallback(()=>{if(!O.current||!C.current)return;let L={placement:t,strategy:o,middleware:u};N.current&&(L.platform=N.current),yp(O.current,C.current,L).then($=>{let B={...$,isPositioned:P.current!==!1};A.current&&!zp(z.current,B)&&(z.current=B,tH.flushSync(()=>{d(B)}))})},[u,t,o,N,P]);xp(()=>{f===!1&&z.current.isPositioned&&(z.current.isPositioned=!1,d(L=>({...L,isPositioned:!1})))},[f]);let A=Q3.useRef(!1);xp(()=>(A.current=!0,()=>{A.current=!1}),[]),xp(()=>{if(w&&(O.current=w),T&&(C.current=T),w&&T){if(S.current)return S.current(w,T,R);R()}},[w,T,R,S,M]);let _=Q3.useMemo(()=>({reference:O,floating:C,setReference:v,setFloating:k}),[v,k]),E=Q3.useMemo(()=>({reference:w,floating:T}),[w,T]),D=Q3.useMemo(()=>{let L={position:o,left:0,top:0};if(!E.floating)return L;let $=QU(E.floating,m.x),B=QU(E.floating,m.y);return c?{...L,transform:"translate("+$+"px, "+B+"px)",...oH(E.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:$,top:B}},[o,c,E.floating,m.x,m.y]);return Q3.useMemo(()=>({...m,update:R,refs:_,elements:E,floatingStyles:D}),[m,R,_,E,D])}var Al=(e,t)=>{let o=GU(e);return{name:o.name,fn:o.fn,options:[e,t]}},pM=(e,t)=>{let o=KU(e);return{name:o.name,fn:o.fn,options:[e,t]}};var hM=(e,t)=>{let o=qU(e);return{name:o.name,fn:o.fn,options:[e,t]}},gM=(e,t)=>{let o=WU(e);return{name:o.name,fn:o.fn,options:[e,t]}};s();s();var j5=j(U()),iH=j(st());Lw();u2();var vM=j(m1());function ev1(e){return typeof e=="function"?e():e}var bM=j5.forwardRef(function(t,o){let{children:a,container:i,disablePortal:r=!1}=t,[n,c]=j5.useState(null),l=Z1(j5.isValidElement(a)?I7(a):null,o);return y3(()=>{r||c(ev1(i)||document.body)},[i,r]),y3(()=>{if(n&&!r)return $6(o,n),()=>{$6(o,null)}},[o,n,r]),r?j5.isValidElement(a)?j5.cloneElement(a,{ref:l}):(0,vM.jsx)(j5.Fragment,{children:a}):(0,vM.jsx)(j5.Fragment,{children:n&&iH.createPortal(a,n)})});s();s();_1();var wp=j(U());u2();function yM(e){let{value:t,label:o,disabled:a,rootRef:i,id:r}=e,{getRootProps:n,highlighted:c,selected:l}=aM({item:t}),{getRootProps:f,rootRef:m}=i5({disabled:a,focusableWhenDisabled:!0}),d=$0(r),u=wp.useRef(null),p=wp.useMemo(()=>({disabled:a,label:o,value:t,ref:u,id:d}),[a,o,t,d]),{index:b}=bU(t,p),g=Z1(i,u,m),x=v=>k=>{var w;(w=v.onKeyDown)==null||w.call(v,k),!k.defaultMuiPrevented&&[" ","Enter"].includes(k.key)&&(k.defaultMuiPrevented=!0)},y=(v={})=>({onKeyDown:x(v)});return{getRootProps:(v={})=>{let k=D2(v),w=Bi(n,Bi(f,y));return I({},v,k,w(k),{id:d,ref:g,role:"option","aria-selected":l})},highlighted:c,index:b,selected:l,rootRef:g}}s();var qi=j(U());function rH(e){let t=qi.useContext(it);if(!t)throw new Error("Option: ListContext was not found.");let{getItemState:o,dispatch:a}=t,{highlighted:i,selected:r,focusable:n}=o(e),c=qi.useCallback(f=>{if(f!==e)throw new Error(["Base UI Option: Tried to access the state of another Option.","This is unsupported when the Option uses the OptionContextStabilizer as a performance optimization."].join("/n"));return{highlighted:i,selected:r,focusable:n}},[i,r,n,e]);return{contextValue:qi.useMemo(()=>({dispatch:a,getItemState:c}),[a,c])}}s();s();_1();Y1();var Y0=j(U());u2();s();s();var T3="top",s0="bottom",e0="right",j3="left",Mp="auto",ft=[T3,s0,e0,j3],F7="start",ho="end",nH="clippingParents",Sp="viewport",Wi="popper",cH="reference",kM=ft.reduce(function(e,t){return e.concat([t+"-"+F7,t+"-"+ho])},[]),Tp=[].concat(ft,[Mp]).reduce(function(e,t){return e.concat([t,t+"-"+F7,t+"-"+ho])},[]),tv1="beforeRead",ov1="read",av1="afterRead",iv1="beforeMain",rv1="main",nv1="afterMain",cv1="beforeWrite",lv1="write",sv1="afterWrite",lH=[tv1,ov1,av1,iv1,rv1,nv1,cv1,lv1,sv1];s();s();function x0(e){return e?(e.nodeName||"").toLowerCase():null}s();s();function s3(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function F5(e){var t=s3(e).Element;return e instanceof t||e instanceof Element}function f0(e){var t=s3(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Zi(e){if(typeof ShadowRoot>"u")return!1;var t=s3(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function fv1(e){var t=e.state;Object.keys(t.elements).forEach(function(o){var a=t.styles[o]||{},i=t.attributes[o]||{},r=t.elements[o];!f0(r)||!x0(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(n){var c=i[n];c===!1?r.removeAttribute(n):r.setAttribute(n,c===!0?"":c)}))})}function mv1(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(a){var i=t.elements[a],r=t.attributes[a]||{},n=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:o[a]),c=n.reduce(function(l,f){return l[f]="",l},{});!f0(i)||!x0(i)||(Object.assign(i.style,c),Object.keys(r).forEach(function(l){i.removeAttribute(l)}))})}}var sH={name:"applyStyles",enabled:!0,phase:"write",fn:fv1,effect:mv1,requires:["computeStyles"]};s();s();function z0(e){return e.split("-")[0]}s();s();s();var _e=Math.max,go=Math.min,B7=Math.round;s();s();function Ji(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ol(){return!/^((?!chrome|android).)*safari/i.test(Ji())}function B5(e,t,o){t===void 0&&(t=!1),o===void 0&&(o=!1);var a=e.getBoundingClientRect(),i=1,r=1;t&&f0(e)&&(i=e.offsetWidth>0&&B7(a.width)/e.offsetWidth||1,r=e.offsetHeight>0&&B7(a.height)/e.offsetHeight||1);var n=F5(e)?s3(e):window,c=n.visualViewport,l=!Ol()&&o,f=(a.left+(l&&c?c.offsetLeft:0))/i,m=(a.top+(l&&c?c.offsetTop:0))/r,d=a.width/i,u=a.height/r;return{width:d,height:u,top:m,right:f+d,bottom:m+u,left:f,x:f,y:m}}function vo(e){var t=B5(e),o=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:a}}s();function $l(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&Zi(o)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}s();s();function b4(e){return s3(e).getComputedStyle(e)}s();function xM(e){return["table","td","th"].indexOf(x0(e))>=0}s();s();function N0(e){return((F5(e)?e.ownerDocument:e.document)||window.document).documentElement}function V7(e){return x0(e)==="html"?e:e.assignedSlot||e.parentNode||(Zi(e)?e.host:null)||N0(e)}function fH(e){return!f0(e)||b4(e).position==="fixed"?null:e.offsetParent}function dv1(e){var t=/firefox/i.test(Ji()),o=/Trident/i.test(Ji());if(o&&f0(e)){var a=b4(e);if(a.position==="fixed")return null}var i=V7(e);for(Zi(i)&&(i=i.host);f0(i)&&["html","body"].indexOf(x0(i))<0;){var r=b4(i);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return i;i=i.parentNode}return null}function Ce(e){for(var t=s3(e),o=fH(e);o&&xM(o)&&b4(o).position==="static";)o=fH(o);return o&&(x0(o)==="html"||x0(o)==="body"&&b4(o).position==="static")?t:o||dv1(e)||t}s();function bo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}s();function yo(e,t,o){return _e(e,go(t,o))}function mH(e,t,o){var a=yo(e,t,o);return a>o?o:a}s();s();function Il(){return{top:0,right:0,bottom:0,left:0}}function Dl(e){return Object.assign({},Il(),e)}s();function Nl(e,t){return t.reduce(function(o,a){return o[a]=e,o},{})}var uv1=function(t,o){return t=typeof t=="function"?t(Object.assign({},o.rects,{placement:o.placement})):t,Dl(typeof t!="number"?t:Nl(t,ft))};function pv1(e){var t,o=e.state,a=e.name,i=e.options,r=o.elements.arrow,n=o.modifiersData.popperOffsets,c=z0(o.placement),l=bo(c),f=[j3,e0].indexOf(c)>=0,m=f?"height":"width";if(!(!r||!n)){var d=uv1(i.padding,o),u=vo(r),p=l==="y"?T3:j3,b=l==="y"?s0:e0,g=o.rects.reference[m]+o.rects.reference[l]-n[l]-o.rects.popper[m],x=n[l]-o.rects.reference[l],y=Ce(r),v=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,k=g/2-x/2,w=d[p],T=v-u[m]-d[b],O=v/2-u[m]/2+k,C=yo(w,O,T),z=l;o.modifiersData[a]=(t={},t[z]=C,t.centerOffset=C-O,t)}}function hv1(e){var t=e.state,o=e.options,a=o.element,i=a===void 0?"[data-popper-arrow]":a;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||$l(t.elements.popper,i)&&(t.elements.arrow=i))}var dH={name:"arrow",enabled:!0,phase:"main",fn:pv1,effect:hv1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};s();s();function V5(e){return e.split("-")[1]}var gv1={top:"auto",right:"auto",bottom:"auto",left:"auto"};function vv1(e,t){var o=e.x,a=e.y,i=t.devicePixelRatio||1;return{x:B7(o*i)/i||0,y:B7(a*i)/i||0}}function uH(e){var t,o=e.popper,a=e.popperRect,i=e.placement,r=e.variation,n=e.offsets,c=e.position,l=e.gpuAcceleration,f=e.adaptive,m=e.roundOffsets,d=e.isFixed,u=n.x,p=u===void 0?0:u,b=n.y,g=b===void 0?0:b,x=typeof m=="function"?m({x:p,y:g}):{x:p,y:g};p=x.x,g=x.y;var y=n.hasOwnProperty("x"),v=n.hasOwnProperty("y"),k=j3,w=T3,T=window;if(f){var O=Ce(o),C="clientHeight",z="clientWidth";if(O===s3(o)&&(O=N0(o),b4(O).position!=="static"&&c==="absolute"&&(C="scrollHeight",z="scrollWidth")),O=O,i===T3||(i===j3||i===e0)&&r===ho){w=s0;var M=d&&O===T&&T.visualViewport?T.visualViewport.height:O[C];g-=M-a.height,g*=l?1:-1}if(i===j3||(i===T3||i===s0)&&r===ho){k=e0;var S=d&&O===T&&T.visualViewport?T.visualViewport.width:O[z];p-=S-a.width,p*=l?1:-1}}var N=Object.assign({position:c},f&&gv1),P=m===!0?vv1({x:p,y:g},s3(o)):{x:p,y:g};if(p=P.x,g=P.y,l){var R;return Object.assign({},N,(R={},R[w]=v?"0":"",R[k]=y?"0":"",R.transform=(T.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",R))}return Object.assign({},N,(t={},t[w]=v?g+"px":"",t[k]=y?p+"px":"",t.transform="",t))}function bv1(e){var t=e.state,o=e.options,a=o.gpuAcceleration,i=a===void 0?!0:a,r=o.adaptive,n=r===void 0?!0:r,c=o.roundOffsets,l=c===void 0?!0:c,f={placement:z0(t.placement),variation:V5(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,uH(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:n,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,uH(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var pH={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:bv1,data:{}};s();var Rp={passive:!0};function yv1(e){var t=e.state,o=e.instance,a=e.options,i=a.scroll,r=i===void 0?!0:i,n=a.resize,c=n===void 0?!0:n,l=s3(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&f.forEach(function(m){m.addEventListener("scroll",o.update,Rp)}),c&&l.addEventListener("resize",o.update,Rp),function(){r&&f.forEach(function(m){m.removeEventListener("scroll",o.update,Rp)}),c&&l.removeEventListener("resize",o.update,Rp)}}var hH={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:yv1,data:{}};s();s();var kv1={left:"right",right:"left",bottom:"top",top:"bottom"};function Xi(e){return e.replace(/left|right|bottom|top/g,function(t){return kv1[t]})}s();var xv1={start:"end",end:"start"};function Ep(e){return e.replace(/start|end/g,function(t){return xv1[t]})}s();s();s();s();s();function ko(e){var t=s3(e),o=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:o,scrollTop:a}}function xo(e){return B5(N0(e)).left+ko(e).scrollLeft}function zM(e,t){var o=s3(e),a=N0(e),i=o.visualViewport,r=a.clientWidth,n=a.clientHeight,c=0,l=0;if(i){r=i.width,n=i.height;var f=Ol();(f||!f&&t==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}return{width:r,height:n,x:c+xo(e),y:l}}s();function wM(e){var t,o=N0(e),a=ko(e),i=(t=e.ownerDocument)==null?void 0:t.body,r=_e(o.scrollWidth,o.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),n=_e(o.scrollHeight,o.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),c=-a.scrollLeft+xo(e),l=-a.scrollTop;return b4(i||o).direction==="rtl"&&(c+=_e(o.clientWidth,i?i.clientWidth:0)-r),{width:r,height:n,x:c,y:l}}s();s();s();function zo(e){var t=b4(e),o=t.overflow,a=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+i+a)}function _p(e){return["html","body","#document"].indexOf(x0(e))>=0?e.ownerDocument.body:f0(e)&&zo(e)?e:_p(V7(e))}function mt(e,t){var o;t===void 0&&(t=[]);var a=_p(e),i=a===((o=e.ownerDocument)==null?void 0:o.body),r=s3(a),n=i?[r].concat(r.visualViewport||[],zo(a)?a:[]):a,c=t.concat(n);return i?c:c.concat(mt(V7(n)))}s();function Yi(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function zv1(e,t){var o=B5(e,!1,t==="fixed");return o.top=o.top+e.clientTop,o.left=o.left+e.clientLeft,o.bottom=o.top+e.clientHeight,o.right=o.left+e.clientWidth,o.width=e.clientWidth,o.height=e.clientHeight,o.x=o.left,o.y=o.top,o}function gH(e,t,o){return t===Sp?Yi(zM(e,o)):F5(t)?zv1(t,o):Yi(wM(N0(e)))}function wv1(e){var t=mt(V7(e)),o=["absolute","fixed"].indexOf(b4(e).position)>=0,a=o&&f0(e)?Ce(e):e;return F5(a)?t.filter(function(i){return F5(i)&&$l(i,a)&&x0(i)!=="body"}):[]}function MM(e,t,o,a){var i=t==="clippingParents"?wv1(e):[].concat(t),r=[].concat(i,[o]),n=r[0],c=r.reduce(function(l,f){var m=gH(e,f,a);return l.top=_e(m.top,l.top),l.right=go(m.right,l.right),l.bottom=go(m.bottom,l.bottom),l.left=_e(m.left,l.left),l},gH(e,n,a));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}s();function Ll(e){var t=e.reference,o=e.element,a=e.placement,i=a?z0(a):null,r=a?V5(a):null,n=t.x+t.width/2-o.width/2,c=t.y+t.height/2-o.height/2,l;switch(i){case T3:l={x:n,y:t.y-o.height};break;case s0:l={x:n,y:t.y+t.height};break;case e0:l={x:t.x+t.width,y:c};break;case j3:l={x:t.x-o.width,y:c};break;default:l={x:t.x,y:t.y}}var f=i?bo(i):null;if(f!=null){var m=f==="y"?"height":"width";switch(r){case F7:l[f]=l[f]-(t[m]/2-o[m]/2);break;case ho:l[f]=l[f]+(t[m]/2-o[m]/2);break;default:}}return l}function Pe(e,t){t===void 0&&(t={});var o=t,a=o.placement,i=a===void 0?e.placement:a,r=o.strategy,n=r===void 0?e.strategy:r,c=o.boundary,l=c===void 0?nH:c,f=o.rootBoundary,m=f===void 0?Sp:f,d=o.elementContext,u=d===void 0?Wi:d,p=o.altBoundary,b=p===void 0?!1:p,g=o.padding,x=g===void 0?0:g,y=Dl(typeof x!="number"?x:Nl(x,ft)),v=u===Wi?cH:Wi,k=e.rects.popper,w=e.elements[b?v:u],T=MM(F5(w)?w:w.contextElement||N0(e.elements.popper),l,m,n),O=B5(e.elements.reference),C=Ll({reference:O,element:k,strategy:"absolute",placement:i}),z=Yi(Object.assign({},k,C)),M=u===Wi?z:O,S={top:T.top-M.top+y.top,bottom:M.bottom-T.bottom+y.bottom,left:T.left-M.left+y.left,right:M.right-T.right+y.right},N=e.modifiersData.offset;if(u===Wi&&N){var P=N[i];Object.keys(S).forEach(function(R){var A=[e0,s0].indexOf(R)>=0?1:-1,_=[T3,s0].indexOf(R)>=0?"y":"x";S[R]+=P[_]*A})}return S}s();function SM(e,t){t===void 0&&(t={});var o=t,a=o.placement,i=o.boundary,r=o.rootBoundary,n=o.padding,c=o.flipVariations,l=o.allowedAutoPlacements,f=l===void 0?Tp:l,m=V5(a),d=m?c?kM:kM.filter(function(b){return V5(b)===m}):ft,u=d.filter(function(b){return f.indexOf(b)>=0});u.length===0&&(u=d);var p=u.reduce(function(b,g){return b[g]=Pe(e,{placement:g,boundary:i,rootBoundary:r,padding:n})[z0(g)],b},{});return Object.keys(p).sort(function(b,g){return p[b]-p[g]})}function Mv1(e){if(z0(e)===Mp)return[];var t=Xi(e);return[Ep(e),t,Ep(t)]}function Sv1(e){var t=e.state,o=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var i=o.mainAxis,r=i===void 0?!0:i,n=o.altAxis,c=n===void 0?!0:n,l=o.fallbackPlacements,f=o.padding,m=o.boundary,d=o.rootBoundary,u=o.altBoundary,p=o.flipVariations,b=p===void 0?!0:p,g=o.allowedAutoPlacements,x=t.options.placement,y=z0(x),v=y===x,k=l||(v||!b?[Xi(x)]:Mv1(x)),w=[x].concat(k).reduce(function(e1,K){return e1.concat(z0(K)===Mp?SM(t,{placement:K,boundary:m,rootBoundary:d,padding:f,flipVariations:b,allowedAutoPlacements:g}):K)},[]),T=t.rects.reference,O=t.rects.popper,C=new Map,z=!0,M=w[0],S=0;S<w.length;S++){var N=w[S],P=z0(N),R=V5(N)===F7,A=[T3,s0].indexOf(P)>=0,_=A?"width":"height",E=Pe(t,{placement:N,boundary:m,rootBoundary:d,altBoundary:u,padding:f}),D=A?R?e0:j3:R?s0:T3;T[_]>O[_]&&(D=Xi(D));var L=Xi(D),$=[];if(r&&$.push(E[P]<=0),c&&$.push(E[D]<=0,E[L]<=0),$.every(function(e1){return e1})){M=N,z=!1;break}C.set(N,$)}if(z)for(var B=b?3:1,q=function(K){var n1=w.find(function(Z){var X=C.get(Z);if(X)return X.slice(0,K).every(function(c1){return c1})});if(n1)return M=n1,"break"},Q=B;Q>0;Q--){var o1=q(Q);if(o1==="break")break}t.placement!==M&&(t.modifiersData[a]._skip=!0,t.placement=M,t.reset=!0)}}var vH={name:"flip",enabled:!0,phase:"main",fn:Sv1,requiresIfExists:["offset"],data:{_skip:!1}};s();function bH(e,t,o){return o===void 0&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function yH(e){return[T3,e0,s0,j3].some(function(t){return e[t]>=0})}function Tv1(e){var t=e.state,o=e.name,a=t.rects.reference,i=t.rects.popper,r=t.modifiersData.preventOverflow,n=Pe(t,{elementContext:"reference"}),c=Pe(t,{altBoundary:!0}),l=bH(n,a),f=bH(c,i,r),m=yH(l),d=yH(f);t.modifiersData[o]={referenceClippingOffsets:l,popperEscapeOffsets:f,isReferenceHidden:m,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":d})}var kH={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Tv1};s();function Rv1(e,t,o){var a=z0(e),i=[j3,T3].indexOf(a)>=0?-1:1,r=typeof o=="function"?o(Object.assign({},t,{placement:e})):o,n=r[0],c=r[1];return n=n||0,c=(c||0)*i,[j3,e0].indexOf(a)>=0?{x:c,y:n}:{x:n,y:c}}function Ev1(e){var t=e.state,o=e.options,a=e.name,i=o.offset,r=i===void 0?[0,0]:i,n=Tp.reduce(function(m,d){return m[d]=Rv1(d,t.rects,r),m},{}),c=n[t.placement],l=c.x,f=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=f),t.modifiersData[a]=n}var xH={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ev1};s();function _v1(e){var t=e.state,o=e.name;t.modifiersData[o]=Ll({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var zH={name:"popperOffsets",enabled:!0,phase:"read",fn:_v1,data:{}};s();s();function TM(e){return e==="x"?"y":"x"}function Cv1(e){var t=e.state,o=e.options,a=e.name,i=o.mainAxis,r=i===void 0?!0:i,n=o.altAxis,c=n===void 0?!1:n,l=o.boundary,f=o.rootBoundary,m=o.altBoundary,d=o.padding,u=o.tether,p=u===void 0?!0:u,b=o.tetherOffset,g=b===void 0?0:b,x=Pe(t,{boundary:l,rootBoundary:f,padding:d,altBoundary:m}),y=z0(t.placement),v=V5(t.placement),k=!v,w=bo(y),T=TM(w),O=t.modifiersData.popperOffsets,C=t.rects.reference,z=t.rects.popper,M=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,S=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(O){if(r){var R,A=w==="y"?T3:j3,_=w==="y"?s0:e0,E=w==="y"?"height":"width",D=O[w],L=D+x[A],$=D-x[_],B=p?-z[E]/2:0,q=v===F7?C[E]:z[E],Q=v===F7?-z[E]:-C[E],o1=t.elements.arrow,e1=p&&o1?vo(o1):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Il(),n1=K[A],Z=K[_],X=yo(0,C[E],e1[E]),c1=k?C[E]/2-B-X-n1-S.mainAxis:q-X-n1-S.mainAxis,z1=k?-C[E]/2+B+X+Z+S.mainAxis:Q+X+Z+S.mainAxis,v1=t.elements.arrow&&Ce(t.elements.arrow),C1=v1?w==="y"?v1.clientTop||0:v1.clientLeft||0:0,L1=(R=N?.[w])!=null?R:0,F1=D+c1-L1-C1,l1=D+z1-L1,T1=yo(p?go(L,F1):L,D,p?_e($,l1):$);O[w]=T1,P[w]=T1-D}if(c){var S1,w1=w==="x"?T3:j3,j1=w==="x"?s0:e0,O1=O[T],q1=T==="y"?"height":"width",n2=O1+x[w1],u1=O1-x[j1],F=[T3,j3].indexOf(y)!==-1,V=(S1=N?.[T])!=null?S1:0,W=F?n2:O1-C[q1]-z[q1]-V+S.altAxis,a1=F?O1+C[q1]+z[q1]-V-S.altAxis:u1,H=p&&F?mH(W,O1,a1):yo(p?W:n2,O1,p?a1:u1);O[T]=H,P[T]=H-O1}t.modifiersData[a]=P}}var wH={name:"preventOverflow",enabled:!0,phase:"main",fn:Cv1,requiresIfExists:["offset"]};s();s();s();s();function RM(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function EM(e){return e===s3(e)||!f0(e)?ko(e):RM(e)}function Pv1(e){var t=e.getBoundingClientRect(),o=B7(t.width)/e.offsetWidth||1,a=B7(t.height)/e.offsetHeight||1;return o!==1||a!==1}function _M(e,t,o){o===void 0&&(o=!1);var a=f0(t),i=f0(t)&&Pv1(t),r=N0(t),n=B5(e,i,o),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(a||!a&&!o)&&((x0(t)!=="body"||zo(r))&&(c=EM(t)),f0(t)?(l=B5(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):r&&(l.x=xo(r))),{x:n.left+c.scrollLeft-l.x,y:n.top+c.scrollTop-l.y,width:n.width,height:n.height}}s();function Av1(e){var t=new Map,o=new Set,a=[];e.forEach(function(r){t.set(r.name,r)});function i(r){o.add(r.name);var n=[].concat(r.requires||[],r.requiresIfExists||[]);n.forEach(function(c){if(!o.has(c)){var l=t.get(c);l&&i(l)}}),a.push(r)}return e.forEach(function(r){o.has(r.name)||i(r)}),a}function CM(e){var t=Av1(e);return lH.reduce(function(o,a){return o.concat(t.filter(function(i){return i.phase===a}))},[])}s();function PM(e){var t;return function(){return t||(t=new Promise(function(o){Promise.resolve().then(function(){t=void 0,o(e())})})),t}}s();function AM(e){var t=e.reduce(function(o,a){var i=o[a.name];return o[a.name]=i?Object.assign({},i,a,{options:Object.assign({},i.options,a.options),data:Object.assign({},i.data,a.data)}):a,o},{});return Object.keys(t).map(function(o){return t[o]})}var MH={placement:"bottom",modifiers:[],strategy:"absolute"};function SH(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function TH(e){e===void 0&&(e={});var t=e,o=t.defaultModifiers,a=o===void 0?[]:o,i=t.defaultOptions,r=i===void 0?MH:i;return function(c,l,f){f===void 0&&(f=r);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},MH,r),modifiersData:{},elements:{reference:c,popper:l},attributes:{},styles:{}},d=[],u=!1,p={state:m,setOptions:function(y){var v=typeof y=="function"?y(m.options):y;g(),m.options=Object.assign({},r,m.options,v),m.scrollParents={reference:F5(c)?mt(c):c.contextElement?mt(c.contextElement):[],popper:mt(l)};var k=CM(AM([].concat(a,m.options.modifiers)));return m.orderedModifiers=k.filter(function(w){return w.enabled}),b(),p.update()},forceUpdate:function(){if(!u){var y=m.elements,v=y.reference,k=y.popper;if(SH(v,k)){m.rects={reference:_M(v,Ce(k),m.options.strategy==="fixed"),popper:vo(k)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach(function(S){return m.modifiersData[S.name]=Object.assign({},S.data)});for(var w=0;w<m.orderedModifiers.length;w++){if(m.reset===!0){m.reset=!1,w=-1;continue}var T=m.orderedModifiers[w],O=T.fn,C=T.options,z=C===void 0?{}:C,M=T.name;typeof O=="function"&&(m=O({state:m,options:z,name:M,instance:p})||m)}}}},update:PM(function(){return new Promise(function(x){p.forceUpdate(),x(m)})}),destroy:function(){g(),u=!0}};if(!SH(c,l))return p;p.setOptions(f).then(function(x){!u&&f.onFirstUpdate&&f.onFirstUpdate(x)});function b(){m.orderedModifiers.forEach(function(x){var y=x.name,v=x.options,k=v===void 0?{}:v,w=x.effect;if(typeof w=="function"){var T=w({state:m,name:y,instance:p,options:k}),O=function(){};d.push(T||O)}})}function g(){d.forEach(function(x){return x()}),d=[]}return p}}s();var Ov1=[hH,zH,pH,sH,xH,vH,wH,dH,kH],OM=TH({defaultModifiers:Ov1});s();var RH="Popper";function EH(e){return cp(RH,e)}var jo2=rU(RH,["root"]);var Cp=j(m1()),$v1=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Iv1=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Dv1(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function $M(e){return typeof e=="function"?e():e}function Nv1(e){return e.nodeType!==void 0}var Lv1=()=>V1({root:["root"]},oU(EH)),jv1={},Fv1=Y0.forwardRef(function(t,o){var a;let{anchorEl:i,children:r,direction:n,disablePortal:c,modifiers:l,open:f,placement:m,popperOptions:d,popperRef:u,slotProps:p={},slots:b={},TransitionProps:g}=t,x=k1(t,$v1),y=Y0.useRef(null),v=Z1(y,o),k=Y0.useRef(null),w=Z1(k,u),T=Y0.useRef(w);y3(()=>{T.current=w},[w]),Y0.useImperativeHandle(u,()=>k.current,[]);let O=Dv1(m,n),[C,z]=Y0.useState(O),[M,S]=Y0.useState($M(i));Y0.useEffect(()=>{k.current&&k.current.forceUpdate()}),Y0.useEffect(()=>{i&&S($M(i))},[i]),y3(()=>{if(!M||!f)return;let _=L=>{z(L.placement)},E=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:L})=>{_(L)}}];l!=null&&(E=E.concat(l)),d&&d.modifiers!=null&&(E=E.concat(d.modifiers));let D=OM(M,y.current,I({placement:O},d,{modifiers:E}));return T.current(D),()=>{D.destroy(),T.current(null)}},[M,c,l,f,d,O]);let N={placement:C};g!==null&&(N.TransitionProps=g);let P=Lv1(),R=(a=b.root)!=null?a:"div",A=kl({elementType:R,externalSlotProps:p.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:v},ownerState:t,className:P.root});return(0,Cp.jsx)(R,I({},A,{children:typeof r=="function"?r(N):r}))}),Qi=Y0.forwardRef(function(t,o){let{anchorEl:a,children:i,container:r,direction:n="ltr",disablePortal:c=!1,keepMounted:l=!1,modifiers:f,open:m,placement:d="bottom",popperOptions:u=jv1,popperRef:p,style:b,transition:g=!1,slotProps:x={},slots:y={}}=t,v=k1(t,Iv1),[k,w]=Y0.useState(!0),T=()=>{w(!1)},O=()=>{w(!0)};if(!l&&!m&&(!g||k))return null;let C;if(r)C=r;else if(a){let S=$M(a);C=S&&Nv1(S)?c0(S).body:c0(null).body}let z=!m&&l&&(!g||k)?"none":void 0,M=g?{in:m,onEnter:T,onExited:O}:void 0;return(0,Cp.jsx)(bM,{disablePortal:c,container:C,children:(0,Cp.jsx)(Fv1,I({anchorEl:a,direction:n,disablePortal:c,modifiers:f,ref:o,open:g?!k:m,placement:d,popperOptions:u,popperRef:p,slotProps:x,slots:y},v,{style:I({position:"fixed",top:0,left:0,display:z},b),TransitionProps:M,children:i}))})});s();s();_1();var t3=j(U());u2();s();var er={buttonClick:"buttonClick",browserAutoFill:"browserAutoFill"};s();var _H=e=>{let{label:t,value:o}=e;return typeof t=="string"?t:typeof o=="string"?o:String(e)};s();_1();function CH(e,t){let{open:o}=e,{context:{selectionMode:a}}=t;if(t.type===er.buttonClick){var i;let l=(i=e.selectedValues[0])!=null?i:k0(null,"start",t.context);return I({},e,{open:!o,highlightedValue:o?null:l})}if(t.type===er.browserAutoFill)return lp(t.item,e,t.context);let r=sp(e,t);switch(t.type){case W2.keyDown:if(e.open){if(t.event.key==="Escape")return I({},r,{open:!1})}else{if(t.event.key==="ArrowDown"){var n;return I({},e,{open:!0,highlightedValue:(n=e.selectedValues[0])!=null?n:k0(null,"start",t.context)})}if(t.event.key==="ArrowUp"){var c;return I({},e,{open:!0,highlightedValue:(c=e.selectedValues[0])!=null?c:k0(null,"end",t.context)})}}break;case W2.itemClick:if(a==="single")return I({},r,{open:!1});break;case W2.blur:return I({},r,{open:!1});default:return r}return r}function Bv1(e){return Array.isArray(e)?e.length===0?"":JSON.stringify(e.map(t=>t.value)):e?.value==null?"":typeof e.value=="string"||typeof e.value=="number"?e.value:JSON.stringify(e.value)}function IM(e){let{areOptionsEqual:t,buttonRef:o,defaultOpen:a=!1,defaultValue:i,disabled:r=!1,listboxId:n,listboxRef:c,multiple:l=!1,name:f,required:m,onChange:d,onHighlightChange:u,onOpenChange:p,open:b,options:g,getOptionAsString:x=_H,getSerializedValue:y=Bv1,value:v,componentName:k="useSelect"}=e,w=t3.useRef(null),T=Z1(o,w),O=t3.useRef(null),C=$0(n),z;v===void 0&&i===void 0?z=[]:i!==void 0&&(l?z=i:z=i==null?[]:[i]);let M=t3.useMemo(()=>{if(v!==void 0)return l?v:v==null?[]:[v]},[v,l]),{subitems:S,contextValue:N}=vU(),P=t3.useMemo(()=>g!=null?new Map(g.map((i1,f1)=>[i1.value,{value:i1.value,label:i1.label,disabled:i1.disabled,ref:t3.createRef(),id:`${C}_${f1}`}])):S,[g,S,C]),R=Z1(c,O),{getRootProps:A,active:_,focusVisible:E,rootRef:D}=i5({disabled:r,rootRef:T}),L=t3.useMemo(()=>Array.from(P.keys()),[P]),$=t3.useCallback(i1=>{if(t!==void 0){let f1=L.find(R1=>t(R1,i1));return P.get(f1)}return P.get(i1)},[P,t,L]),B=t3.useCallback(i1=>{var f1;let R1=$(i1);return(f1=R1?.disabled)!=null?f1:!1},[$]),q=t3.useCallback(i1=>{let f1=$(i1);return f1?x(f1):""},[$,x]),Q=t3.useMemo(()=>({selectedValues:M,open:b}),[M,b]),o1=t3.useCallback(i1=>{var f1;return(f1=P.get(i1))==null?void 0:f1.id},[P]),e1=t3.useCallback((i1,f1)=>{if(l)d?.(i1,f1);else{var R1;d?.(i1,(R1=f1[0])!=null?R1:null)}},[l,d]),K=t3.useCallback((i1,f1)=>{u?.(i1,f1??null)},[u]),n1=t3.useCallback((i1,f1,R1)=>{if(f1==="open"&&(p?.(R1),R1===!1&&i1?.type!=="blur")){var B1;(B1=w.current)==null||B1.focus()}},[p]),Z=t3.useCallback(i1=>{var f1,R1;return i1==null?null:(f1=(R1=S.get(i1))==null?void 0:R1.ref.current)!=null?f1:null},[S]),X={getInitialState:()=>{var i1;return{highlightedValue:null,selectedValues:(i1=z)!=null?i1:[],open:a}},getItemId:o1,controlledProps:Q,focusManagement:"DOM",getItemDomElement:Z,itemComparer:t,isItemDisabled:B,rootRef:R,onChange:e1,onHighlightChange:K,onStateChange:n1,reducerActionContext:t3.useMemo(()=>({multiple:l}),[l]),items:L,getItemAsString:q,selectionMode:l?"multiple":"single",stateReducer:CH,componentName:k},{dispatch:c1,getRootProps:z1,contextValue:v1,state:{open:C1,highlightedValue:L1,selectedValues:F1},rootRef:l1}=oM(X),T1=t3.useRef(C1);y3(()=>{if(C1&&L1!==null){var i1;let f1=(i1=$(L1))==null?void 0:i1.ref;if(!O.current||!(f1!=null&&f1.current))return;T1.current||f1.current.focus({preventScroll:!0});let R1=O.current.getBoundingClientRect(),B1=f1.current.getBoundingClientRect();B1.top<R1.top?O.current.scrollTop-=R1.top-B1.top:B1.bottom>R1.bottom&&(O.current.scrollTop+=B1.bottom-R1.bottom)}},[C1,L1,$]);let S1=t3.useCallback(i1=>$(i1),[$]),w1=i1=>f1=>{var R1;if(i1==null||(R1=i1.onClick)==null||R1.call(i1,f1),!f1.defaultMuiPrevented){let B1={type:er.buttonClick,event:f1};c1(B1)}},j1=i1=>f1=>{var R1;(R1=i1.onKeyDown)==null||R1.call(i1,f1),!f1.defaultMuiPrevented&&(f1.key==="ArrowDown"||f1.key==="ArrowUp")&&(f1.preventDefault(),c1({type:W2.keyDown,key:f1.key,event:f1}))},O1=(i1={})=>({onClick:w1(i1),onKeyDown:j1(i1)}),q1=(i1={})=>I({},i1,O1(i1),{role:"combobox","aria-expanded":C1,"aria-controls":C}),n2=(i1={})=>{let f1=D2(i1),R1=Bi(q1,A);return I({},i1,R1(f1))},u1=i1=>f1=>{var R1,B1;(R1=i1.onBlur)==null||R1.call(i1,f1),!f1.defaultMuiPrevented&&((B1=O.current)!=null&&B1.contains(f1.relatedTarget)||f1.relatedTarget===w.current)&&(f1.defaultMuiPrevented=!0)},F=(i1={})=>({onBlur:u1(i1)}),V=(i1={})=>{let f1=D2(i1),R1=Bi(F,z1);return I({id:C,role:"listbox","aria-multiselectable":l?"true":void 0},i1,R1(f1))};t3.useDebugValue({selectedOptions:F1,highlightedOption:L1,open:C1});let W=t3.useMemo(()=>I({},v1,N),[v1,N]),a1;e.multiple?a1=F1:a1=F1.length>0?F1[0]:null;let H;if(l)H=a1.map(i1=>S1(i1)).filter(i1=>i1!==void 0);else{var G;H=(G=S1(a1))!=null?G:null}let J=i1=>f1=>{var R1;if(i1==null||(R1=i1.onChange)==null||R1.call(i1,f1),f1.defaultMuiPrevented)return;let B1=P.get(f1.target.value);f1.target.value===""?c1({type:W2.clearSelection}):B1!==void 0&&c1({type:er.browserAutoFill,item:B1.value,event:f1})};return{buttonActive:_,buttonFocusVisible:E,buttonRef:D,contextValue:W,disabled:r,dispatch:c1,getButtonProps:n2,getHiddenInputProps:(i1={})=>{let f1=D2(i1);return I({name:f,tabIndex:-1,"aria-hidden":!0,required:m?!0:void 0,value:y(H),style:Ii},i1,{onChange:J(f1)})},getListboxProps:V,getOptionMetadata:S1,listboxRef:l1,open:C1,options:L,value:a1,highlightedOption:L1}}s();var DM=j(U());var NM=j(m1());function PH(e){let{value:t,children:o}=e,{dispatch:a,getItemIndex:i,getItemState:r,registerItem:n,totalSubitemCount:c}=t,l=DM.useMemo(()=>({dispatch:a,getItemState:r,getItemIndex:i}),[a,i,r]),f=DM.useMemo(()=>({getItemIndex:i,registerItem:n,totalSubitemCount:c}),[n,i,c]);return(0,NM.jsx)(mp.Provider,{value:f,children:(0,NM.jsx)(it.Provider,{value:l,children:o})})}s();_1();var y4=j(U());u2();var Vv1=2;function IH(e,t){return e-t}function AH(e,t){var o;let{index:a}=(o=e.reduce((i,r,n)=>{let c=Math.abs(t-r);return i===null||c<i.distance||c===i.distance?{distance:c,index:n}:i},null))!=null?o:{};return a}function Pp(e,t){if(t.current!==void 0&&e.changedTouches){let o=e;for(let a=0;a<o.changedTouches.length;a+=1){let i=o.changedTouches[a];if(i.identifier===t.current)return{x:i.clientX,y:i.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function jl(e,t,o){return(e-t)*100/(o-t)}function Uv1(e,t,o){return(o-t)*e+t}function Hv1(e){if(Math.abs(e)<1){let o=e.toExponential().split("e-"),a=o[0].split(".")[1];return(a?a.length:0)+parseInt(o[1],10)}let t=e.toString().split(".")[1];return t?t.length:0}function Gv1(e,t,o){let a=Math.round((e-o)/t)*t+o;return Number(a.toFixed(Hv1(t)))}function OH({values:e,newValue:t,index:o}){let a=e.slice();return a[o]=t,a.sort(IH)}function Ap({sliderRef:e,activeIndex:t,setActive:o}){var a,i;let r=c0(e.current);if(!((a=e.current)!=null&&a.contains(r.activeElement))||Number(r==null||(i=r.activeElement)==null?void 0:i.getAttribute("data-index"))!==t){var n;(n=e.current)==null||n.querySelector(`[type="range"][data-index="${t}"]`).focus()}o&&o(t)}function Op(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?Fi(e,t):!1}var Kv1={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},qv1=e=>e,$p;function $H(){return $p===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?$p=CSS.supports("touch-action","none"):$p=!0),$p}function DH(e){let{"aria-labelledby":t,defaultValue:o,disabled:a=!1,disableSwap:i=!1,isRtl:r=!1,marks:n=!1,max:c=100,min:l=0,name:f,onChange:m,onChangeCommitted:d,orientation:u="horizontal",rootRef:p,scale:b=qv1,step:g=1,shiftStep:x=10,tabIndex:y,value:v}=e,k=y4.useRef(void 0),[w,T]=y4.useState(-1),[O,C]=y4.useState(-1),[z,M]=y4.useState(!1),S=y4.useRef(0),[N,P]=O7({controlled:v,default:o??l,name:"Slider"}),R=m&&((H,G,J)=>{let h1=H.nativeEvent||H,i1=new h1.constructor(h1.type,h1);Object.defineProperty(i1,"target",{writable:!0,value:{value:G,name:f}}),m(i1,G,J)}),A=Array.isArray(N),_=A?N.slice().sort(IH):[N];_=_.map(H=>H==null?l:P7(H,l,c));let E=n===!0&&g!==null?[...Array(Math.floor((c-l)/g)+1)].map((H,G)=>({value:l+g*G})):n||[],D=E.map(H=>H.value),{isFocusVisibleRef:L,onBlur:$,onFocus:B,ref:q}=we(),[Q,o1]=y4.useState(-1),e1=y4.useRef(null),K=Z1(q,e1),n1=Z1(p,K),Z=H=>G=>{var J;let h1=Number(G.currentTarget.getAttribute("data-index"));B(G),L.current===!0&&o1(h1),C(h1),H==null||(J=H.onFocus)==null||J.call(H,G)},X=H=>G=>{var J;$(G),L.current===!1&&o1(-1),C(-1),H==null||(J=H.onBlur)==null||J.call(H,G)},c1=(H,G)=>{let J=Number(H.currentTarget.getAttribute("data-index")),h1=_[J],i1=D.indexOf(h1),f1=G;if(E&&g==null){let R1=D[D.length-1];f1>R1?f1=R1:f1<D[0]?f1=D[0]:f1=f1<h1?D[i1-1]:D[i1+1]}if(f1=P7(f1,l,c),A){i&&(f1=P7(f1,_[J-1]||-1/0,_[J+1]||1/0));let R1=f1;f1=OH({values:_,newValue:f1,index:J});let B1=J;i||(B1=f1.indexOf(R1)),Ap({sliderRef:e1,activeIndex:B1})}P(f1),o1(J),R&&!Op(f1,N)&&R(H,f1,J),d&&d(H,f1)},z1=H=>G=>{var J;if(g!==null){let h1=Number(G.currentTarget.getAttribute("data-index")),i1=_[h1],f1=null;(G.key==="ArrowLeft"||G.key==="ArrowDown")&&G.shiftKey||G.key==="PageDown"?f1=Math.max(i1-x,l):((G.key==="ArrowRight"||G.key==="ArrowUp")&&G.shiftKey||G.key==="PageUp")&&(f1=Math.min(i1+x,c)),f1!==null&&(c1(G,f1),G.preventDefault())}H==null||(J=H.onKeyDown)==null||J.call(H,G)};y3(()=>{if(a&&e1.current.contains(document.activeElement)){var H;(H=document.activeElement)==null||H.blur()}},[a]),a&&w!==-1&&T(-1),a&&Q!==-1&&o1(-1);let v1=H=>G=>{var J;(J=H.onChange)==null||J.call(H,G),c1(G,G.target.valueAsNumber)},C1=y4.useRef(void 0),L1=u;r&&u==="horizontal"&&(L1+="-reverse");let F1=({finger:H,move:G=!1})=>{let{current:J}=e1,{width:h1,height:i1,bottom:f1,left:R1}=J.getBoundingClientRect(),B1;L1.indexOf("vertical")===0?B1=(f1-H.y)/i1:B1=(H.x-R1)/h1,L1.indexOf("-reverse")!==-1&&(B1=1-B1);let F2;if(F2=Uv1(B1,l,c),g)F2=Gv1(F2,g,l);else{let B2=AH(D,F2);F2=D[B2]}F2=P7(F2,l,c);let M2=0;if(A){G?M2=C1.current:M2=AH(_,F2),i&&(F2=P7(F2,_[M2-1]||-1/0,_[M2+1]||1/0));let B2=F2;F2=OH({values:_,newValue:F2,index:M2}),i&&G||(M2=F2.indexOf(B2),C1.current=M2)}return{newValue:F2,activeIndex:M2}},l1=Z0(H=>{let G=Pp(H,k);if(!G)return;if(S.current+=1,H.type==="mousemove"&&H.buttons===0){T1(H);return}let{newValue:J,activeIndex:h1}=F1({finger:G,move:!0});Ap({sliderRef:e1,activeIndex:h1,setActive:T}),P(J),!z&&S.current>Vv1&&M(!0),R&&!Op(J,N)&&R(H,J,h1)}),T1=Z0(H=>{let G=Pp(H,k);if(M(!1),!G)return;let{newValue:J}=F1({finger:G,move:!0});T(-1),H.type==="touchend"&&C(-1),d&&d(H,J),k.current=void 0,w1()}),S1=Z0(H=>{if(a)return;$H()||H.preventDefault();let G=H.changedTouches[0];G!=null&&(k.current=G.identifier);let J=Pp(H,k);if(J!==!1){let{newValue:i1,activeIndex:f1}=F1({finger:J});Ap({sliderRef:e1,activeIndex:f1,setActive:T}),P(i1),R&&!Op(i1,N)&&R(H,i1,f1)}S.current=0;let h1=c0(e1.current);h1.addEventListener("touchmove",l1,{passive:!0}),h1.addEventListener("touchend",T1,{passive:!0})}),w1=y4.useCallback(()=>{let H=c0(e1.current);H.removeEventListener("mousemove",l1),H.removeEventListener("mouseup",T1),H.removeEventListener("touchmove",l1),H.removeEventListener("touchend",T1)},[T1,l1]);y4.useEffect(()=>{let{current:H}=e1;return H.addEventListener("touchstart",S1,{passive:$H()}),()=>{H.removeEventListener("touchstart",S1),w1()}},[w1,S1]),y4.useEffect(()=>{a&&w1()},[a,w1]);let j1=H=>G=>{var J;if((J=H.onMouseDown)==null||J.call(H,G),a||G.defaultPrevented||G.button!==0)return;G.preventDefault();let h1=Pp(G,k);if(h1!==!1){let{newValue:f1,activeIndex:R1}=F1({finger:h1});Ap({sliderRef:e1,activeIndex:R1,setActive:T}),P(f1),R&&!Op(f1,N)&&R(G,f1,R1)}S.current=0;let i1=c0(e1.current);i1.addEventListener("mousemove",l1,{passive:!0}),i1.addEventListener("mouseup",T1)},O1=jl(A?_[0]:l,l,c),q1=jl(_[_.length-1],l,c)-O1,n2=(H={})=>{let G=D2(H),J={onMouseDown:j1(G||{})},h1=I({},G,J);return I({},H,{ref:n1},h1)},u1=H=>G=>{var J;(J=H.onMouseOver)==null||J.call(H,G);let h1=Number(G.currentTarget.getAttribute("data-index"));C(h1)},F=H=>G=>{var J;(J=H.onMouseLeave)==null||J.call(H,G),C(-1)};return{active:w,axis:L1,axisProps:Kv1,dragging:z,focusedThumbIndex:Q,getHiddenInputProps:(H={})=>{var G;let J=D2(H),h1={onChange:v1(J||{}),onFocus:Z(J||{}),onBlur:X(J||{}),onKeyDown:z1(J||{})},i1=I({},J,h1);return I({tabIndex:y,"aria-labelledby":t,"aria-orientation":u,"aria-valuemax":b(c),"aria-valuemin":b(l),name:f,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(G=e.step)!=null?G:void 0,disabled:a},H,i1,{style:I({},Ii,{direction:r?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:n2,getThumbProps:(H={})=>{let G=D2(H),J={onMouseOver:u1(G||{}),onMouseLeave:F(G||{})};return I({},H,G,J)},marks:E,open:O,range:A,rootRef:n1,trackLeap:q1,trackOffset:O1,values:_,getThumbStyle:H=>({pointerEvents:w!==-1&&w!==H?"none":void 0})}}s();s();_1();var tr=j(U());u2();function LM(e={}){let{autoHideDuration:t=null,disableWindowBlurListener:o=!1,onClose:a,open:i,resumeHideDuration:r}=e,n=I6();tr.useEffect(()=>{if(!i)return;function y(v){v.defaultPrevented||(v.key==="Escape"||v.key==="Esc")&&a?.(v,"escapeKeyDown")}return document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y)}},[i,a]);let c=Z0((y,v)=>{a?.(y,v)}),l=Z0(y=>{!a||y==null||n.start(y,()=>{c(null,"timeout")})});tr.useEffect(()=>(i&&l(t),n.clear),[i,t,l,n]);let f=y=>{a?.(y,"clickaway")},m=n.clear,d=tr.useCallback(()=>{t!=null&&l(r??t*.5)},[t,r,l]),u=y=>v=>{let k=y.onBlur;k?.(v),d()},p=y=>v=>{let k=y.onFocus;k?.(v),m()},b=y=>v=>{let k=y.onMouseEnter;k?.(v),m()},g=y=>v=>{let k=y.onMouseLeave;k?.(v),d()};return tr.useEffect(()=>{if(!o&&i)return window.addEventListener("focus",d),window.addEventListener("blur",m),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",m)}},[o,i,d,m]),{getRootProps:(y={})=>{let v=I({},D2(e),D2(y));return I({role:"presentation"},y,v,{onBlur:u(v),onFocus:p(v),onMouseEnter:b(v),onMouseLeave:g(v)})},onClickAway:f}}s();s();_1();Y1();var U5=j(U());u2();var jM=j(m1()),NH=j(m1()),Wv1=["onChange","maxRows","minRows","style","value"];function Ip(e){return parseInt(e,10)||0}var Zv1={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Jv1(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}var FM=U5.forwardRef(function(t,o){let{onChange:a,maxRows:i,minRows:r=1,style:n,value:c}=t,l=k1(t,Wv1),{current:f}=U5.useRef(c!=null),m=U5.useRef(null),d=Z1(o,m),u=U5.useRef(null),p=U5.useRef(null),b=U5.useCallback(()=>{let y=m.current,k=at(y).getComputedStyle(y);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};let w=p.current;w.style.width=k.width,w.value=y.value||t.placeholder||"x",w.value.slice(-1)===`
427
- `&&(w.value+=" ");let T=k.boxSizing,O=Ip(k.paddingBottom)+Ip(k.paddingTop),C=Ip(k.borderBottomWidth)+Ip(k.borderTopWidth),z=w.scrollHeight;w.value="x";let M=w.scrollHeight,S=z;r&&(S=Math.max(Number(r)*M,S)),i&&(S=Math.min(Number(i)*M,S)),S=Math.max(S,M);let N=S+(T==="border-box"?O+C:0),P=Math.abs(S-z)<=1;return{outerHeightStyle:N,overflowing:P}},[i,r,t.placeholder]),g=U5.useCallback(()=>{let y=b();if(Jv1(y))return;let v=y.outerHeightStyle,k=m.current;u.current!==v&&(u.current=v,k.style.height=`${v}px`),k.style.overflow=y.overflowing?"hidden":""},[b]);return y3(()=>{let y=()=>{g()},v,k=()=>{cancelAnimationFrame(v),v=requestAnimationFrame(()=>{y()})},w=Q9(y),T=m.current,O=at(T);O.addEventListener("resize",w);let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(y),C.observe(T)),()=>{w.clear(),cancelAnimationFrame(v),O.removeEventListener("resize",w),C&&C.disconnect()}},[b,g]),y3(()=>{g()}),(0,NH.jsxs)(U5.Fragment,{children:[(0,jM.jsx)("textarea",I({value:c,onChange:y=>{f||g(),a&&a(y)},ref:d,rows:r,style:n},l)),(0,jM.jsx)("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:I({},Zv1.shadow,n,{paddingTop:0,paddingBottom:0})})]})});s();function LH(e){return G1("MuiScopedCssBaseline",e)}var Xi2=H1("MuiScopedCssBaseline",["root"]);s();_1();Y1();u2();var Xv1=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],Yv1=["component","slots","slotProps"],Qv1=["component"];function E1(e,t){let{className:o,elementType:a,ownerState:i,externalForwardedProps:r,getSlotOwnerState:n,internalForwardedProps:c}=t,l=k1(t,Xv1),{component:f,slots:m={[e]:void 0},slotProps:d={[e]:void 0}}=r,u=k1(r,Yv1),p=m[e]||a,b=io(d[e],i),g=ao(I({className:o},l,{externalForwardedProps:e==="root"?u:void 0,externalSlotProps:b})),{props:{component:x},internalRef:y}=g,v=k1(g.props,Qv1),k=Z1(y,b?.ref,t.ref),w=n?n(v):{},T=I({},i,w),O=e==="root"?x||f:x,C=oo(p,I({},e==="root"&&!f&&!m[e]&&c,e!=="root"&&!m[e]&&c,v,O&&{as:O},{ref:k}),T);return Object.keys(w).forEach(z=>{delete C[z]}),[p,C]}var FH=j(m1()),eb1=["className","component","disableColorScheme","slots","slotProps"],tb1=()=>V1({root:["root"]},LH,{}),ob1=y1("div",{name:"JoyScopedCssBaseline",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{let o={};return!t.disableColorScheme&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,i])=>{var r;o[`&${e.getColorSchemeSelector(a).replace(/\s*&/,"")}`]={colorScheme:(r=i.palette)==null?void 0:r.mode}}),I({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",color:e.vars.palette.text.primary},e.typography["body-md"],{backgroundColor:e.vars.palette.background.body,"@media print":{backgroundColor:"#fff"},"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:"bold"}},o)}),ab1=jH.forwardRef(function(t,o){let a=K1({props:t,name:"JoyScopedCssBaseline"}),{className:i,component:r="div",disableColorScheme:n=!1,slots:c={},slotProps:l={}}=a,f=k1(a,eb1),m=I({},a,{component:r,disableColorScheme:n}),d=tb1(),u=I({},f,{component:r,slots:c,slotProps:l}),[p,b]=E1("root",{ref:o,className:m2(d.root,i),elementType:ob1,externalForwardedProps:u,ownerState:m});return(0,FH.jsx)(p,I({},b))}),BM=ab1;al();var gZ=j(uZ());s();s();var kR={50:"#A3FFD7",100:"#8CFFCD",200:"#80FFD2",300:"#48D7A3",400:"#34D399",500:"#2EBD89",600:"#10B981",700:"#009A7E",800:"#006640",900:"#00331F"};var pZ=(e="zappway")=>({modeStorageKey:e,colorSchemeStorageKey:`${e}-color-scheme`,attribute:`data-${e}`}),hZ=(e={})=>Li({cssVarPrefix:e.prefix,fontFamily:{body:"Inter, sans-serif",display:"Poppins, sans-serif"},typography:{display1:{background:"linear-gradient(-30deg, var(--joy-palette-primary-900), var(--joy-palette-primary-400))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",fontSize:"57px",lineHeight:"64px",letterSpacing:"-0.25px"},kbd:{background:"linear-gradient(to top, var(--joy-palette-background-level2), var(--joy-palette-background-surface))",border:"1px solid var(--joy-palette-neutral-outlinedBorder)",borderRadius:"var(--joy-radius-xs)",boxShadow:"var(--joy-shadow-sm)",padding:"0.125em 0.375em"}},fontSize:{xl7:"4.5rem",xl6:"3.75rem",xl5:"3rem",xs2:"0.625rem",xs3:"0.5rem"},fontWeight:{xs:200,xl2:800,xl3:900},components:{JoySelect:{defaultProps:{slotProps:{listbox:{container:e.container}}},styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}},JoyModal:{defaultProps:{container:e.container}},JoyCard:{styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}},JoyInput:{styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}},JoyTextarea:{styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}},JoyButton:{styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}},JoyIconButton:{styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}}},colorSchemes:{dark:{palette:{primary:kR}},light:{palette:{primary:kR,neutral:{solidBg:"#000"}}}}});var Kr=j(m1()),Ck1="CREATE_NEW_CONVERSATION",xR={"phone-number":"phoneNumber","user-id":"userId","first-name":"firstName","last-name":"lastName",email:"email"},vZ="zappway-embeds",fg=pZ(vZ),Pk1=(typeof NEXT_PUBLIC_ASSETS_BASE_URL<"u"?NEXT_PUBLIC_ASSETS_BASE_URL:"")||"https://cdn.jsdelivr.net/npm/@zappway/embeds@latest",Ak1=(typeof NEXT_PUBLIC_DASHBOARD_URL<"u"?NEXT_PUBLIC_DASHBOARD_URL:"")||"",e4=typeof window<"u"&&!window.location.origin.includes("app.zappway"),Ok1=e=>{let t=e.getAttribute("locale");if(t)return e4&&console.log("[ShadowDOM] Locale detectado via atributo direto:",t),t;let o=e.getAttribute("lang");if(o)return e4&&console.log("[ShadowDOM] Locale detectado via atributo lang:",o),o;try{let r=e.ownerDocument?.documentElement?.lang;if(r)return e4&&console.log("[ShadowDOM] Locale detectado via document.documentElement.lang:",r),r}catch(i){e4&&console.warn("[ShadowDOM] Não foi possível acessar documento pai:",i)}try{let r=e.ownerDocument?.querySelector('meta[name="locale"]')?.getAttribute("content");if(r)return e4&&console.log("[ShadowDOM] Locale detectado via meta tag:",r),r}catch(i){e4&&console.warn("[ShadowDOM] Não foi possível acessar meta tags:",i)}let a=navigator.language||navigator.userLanguage;return a?(e4&&console.log("[ShadowDOM] Locale detectado via navigator:",a),a):(e4&&console.log("[ShadowDOM] Usando fallback en"),"en")},$k1=e=>{let t=e.getAttribute("color-mode")||e.getAttribute("data-color-mode");if(t==="dark"||t==="light")return e4&&console.log("[ShadowDOM] Color mode from attribute:",t),t;try{let o=e.ownerDocument,a=o?.documentElement,i=a?.className||"",r=o?.body?.className||"",n=a?.getAttribute("data-theme")||a?.getAttribute("data-mode"),c=o?.body?.getAttribute("data-theme")||o?.body?.getAttribute("data-mode");if(i.includes("dark")||r.includes("dark")||n==="dark"||c==="dark")return e4&&console.log("[ShadowDOM] Color mode from parent class/data: dark"),"dark";if(i.includes("light")||r.includes("light")||n==="light"||c==="light")return e4&&console.log("[ShadowDOM] Color mode from parent class/data: light"),"light";let l=a?.getAttribute("data-joy-color-scheme");if(l==="dark"||l==="light")return e4&&console.log("[ShadowDOM] Color mode from Joy UI scheme:",l),l;if(window.matchMedia?.("(prefers-color-scheme: dark)").matches)return e4&&console.log("[ShadowDOM] Color mode from media query: dark"),"dark"}catch(o){e4&&console.warn("[ShadowDOM] Could not detect color mode:",o)}return e4&&console.log("[ShadowDOM] Color mode fallback: light"),"light"};if(typeof window<"u"){let e=console.warn;console.warn=(...t)=>{t[0]&&typeof t[0]=="string"&&(t[0].includes("TextLayer styles not found")||t[0].includes("AnnotationLayer styles not found"))||e(...t)}}var Ik1=({name:e,widget:t,type:o})=>class extends HTMLElement{cssProvider=Pk1+`/dist/${o}/index.css`;root;cache;shadowRootElement;emotionRoot;instanceId;setIsOpen;isOpen;onEnd;locale;colorMode="light";constructor(i){super(),this.instanceId=i?.instanceId,this.onEnd=i?.onEnd;let r=this.attachShadow({mode:"open"}),n=document.createElement("link");n.rel="stylesheet",n.type="text/css",n.href="https://fonts.googleapis.com/css2?family=Poppins:wght@200..800&family=Inter:wght@100..900&display=swap";let c=document.createElement("link");if(c.rel="stylesheet",c.type="text/css",c.href=this.cssProvider,this.emotionRoot=document.createElement("style"),this.shadowRootElement=document.createElement("div"),this.shadowRootElement.className="zappway-widget",r.appendChild(n),r.appendChild(c),r.appendChild(this.emotionRoot),r.appendChild(this.shadowRootElement),o==="pdfviewer"){let l=document.createElement("style");if(l.innerHTML=Dj+`
428
- `+Nj,r.appendChild(l),!document.getElementById("react-pdf-global-vars")){let m=document.createElement("style");m.id="react-pdf-global-vars",m.innerHTML="body { --react-pdf-text-layer: 1; --react-pdf-annotation-layer: 1; }",document.head.appendChild(m)}}this.cache=xi({key:e,prepend:!0,container:this.emotionRoot}),this.cache.compat=!0,this.root=(0,gZ.createRoot)(this.shadowRootElement)}open(){this.setIsOpen?.(!0)}close(){this.setIsOpen?.(!1)}toggle(){this.setIsOpen?.(!this.isOpen)}destroy(){this.innerHTML="",this.instanceId&&(window[this.instanceId]=null)}createNewConversation(){this.dispatchEvent(new Event(Ck1,{bubbles:!0,composed:!0}))}Component=i=>{let[r,n]=(0,qr.useState)(!1);this.setIsOpen=n,this.isOpen=r;let c={};for(let u in xR)if(xR.hasOwnProperty(u)){let p=xR[u],b=this.getAttribute(u);b&&(c[p]=b)}let l=this.getAttribute("context"),f={};try{f=JSON.parse(this.getAttribute("interface"))}catch{}let m=hZ({container:this.shadowRootElement,prefix:vZ}),d={...m,colorSchemes:{...m.colorSchemes,light:{...m.colorSchemes?.light,palette:{...m.colorSchemes?.light?.palette,mode:"light"}},dark:{...m.colorSchemes?.dark,palette:{...m.colorSchemes?.dark?.palette,mode:"dark"}}}};return(0,Kr.jsx)(qr.StrictMode,{children:(0,Kr.jsx)(fl,{value:this.cache,children:(0,Kr.jsx)(Xw,{theme:d,defaultMode:this.colorMode,modeStorageKey:fg.modeStorageKey,attribute:fg.attribute,colorSchemeStorageKey:fg.colorSchemeStorageKey,colorSchemeNode:this.shadowRootElement,children:(0,Kr.jsx)(BM,{sx:{background:"transparent"},children:qr.default.createElement(t,{...i,isOpen:r,onEnd:this.onEnd,initConfig:f,context:l,agentId:this.getAttribute("agent-id")||"",formId:this.getAttribute("form-id")||"",apiHost:Ak1,fileUrl:this.getAttribute("file-url")||void 0,datasourceId:this.getAttribute("datasource-id")||void 0,pageNumber:this.getAttribute("page-number")?parseInt(this.getAttribute("page-number"),10):void 0,search:this.getAttribute("search")||void 0,colorMode:this.colorMode,contact:c,locale:this.locale,styles:this.getAttribute("styles")?JSON.parse(this.getAttribute("styles")):{},onAgentLoaded:u=>{let p=u?.interfaceConfig?.customCSS;if(p){let b=document.createElement("style");b.innerHTML=p,this.shadowRootElement.appendChild(b)}}})})})})})};connectedCallback(){this.locale=Ok1(this),this.colorMode=$k1(this),this.shadowRootElement.setAttribute(fg.attribute,this.colorMode),e4&&console.log("[ShadowDOM] Element conectado com locale:",this.locale,"colorMode:",this.colorMode),this.root.render((0,Kr.jsx)(this.Component,{isOpen:this.isOpen,onEnd:this.onEnd}))}},bZ=Ik1;s();var ei=j(U());s();s();var Ef=j(m1(),1),Le=j(U(),1);s();var yZ=j(U(),1),Wr=(0,yZ.createContext)({});s();var kZ=j(U(),1);function Zr(e){let t=(0,kZ.useRef)(null);return t.current===null&&(t.current=e()),t.current}s();var mg=j(U(),1);s();var xZ=typeof window<"u";var dg=xZ?mg.useLayoutEffect:mg.useEffect;s();var CE=j(m1(),1),PX=j(U(),1),Tf=j(U(),1);s();var zZ=j(U(),1),jt=(0,zZ.createContext)(null);s();var _X=j(m1(),1);s();s();s();s();function Uo(e,t){e.indexOf(t)===-1&&e.push(t)}function Ft(e,t){let o=e.indexOf(t);o>-1&&e.splice(o,1)}s();var u0=(e,t,o)=>o>t?t:o<e?e:o;s();var s8=()=>{},te=()=>{};s();var x4={};s();var Fs=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);s();function Bs(e){return typeof e=="object"&&e!==null}s();var Vs=e=>/^0[^.\s]+$/u.test(e);s();function Us(e){let t;return()=>(t===void 0&&(t=e()),t)}s();var k3=e=>e;s();var Dk1=(e,t)=>o=>t(e(o)),Ie=(...e)=>e.reduce(Dk1);s();var q6=(e,t,o)=>{let a=t-e;return a===0?1:(o-e)/a};s();var f8=class{constructor(){this.subscriptions=[]}add(t){return Uo(this.subscriptions,t),()=>Ft(this.subscriptions,t)}notify(t,o,a){let i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,o,a);else for(let r=0;r<i;r++){let n=this.subscriptions[r];n&&n(t,o,a)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};s();var V3=e=>e*1e3,T0=e=>e/1e3;s();function Hs(e,t){return t?e*(1e3/t):0}s();s();s();var wZ=(e,t,o)=>(((1-3*o+3*t)*e+(3*o-6*t))*e+3*t)*e,Nk1=1e-7,Lk1=12;function jk1(e,t,o,a,i){let r,n,c=0;do n=t+(o-t)/2,r=wZ(n,a,i)-e,r>0?o=n:t=n;while(Math.abs(r)>Nk1&&++c<Lk1);return n}function Bt(e,t,o,a){if(e===t&&o===a)return k3;let i=r=>jk1(r,0,1,e,o);return r=>r===0||r===1?r:wZ(i(r),t,a)}s();var ug=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;s();var pg=e=>t=>1-e(1-t);var hg=Bt(.33,1.53,.69,.99),Jr=pg(hg),Gs=ug(Jr);var Ks=e=>e>=1?1:(e*=2)<1?.5*Jr(e):.5*(2-Math.pow(2,-10*(e-1)));s();var qs=e=>1-Math.sin(Math.acos(e)),Ws=pg(qs),Zs=ug(qs);s();var zR=Bt(.42,0,1,1),wR=Bt(0,0,.58,1),Js=Bt(.42,0,.58,1);s();var MR=e=>Array.isArray(e)&&typeof e[0]!="number";s();var Xs=e=>Array.isArray(e)&&typeof e[0]=="number";s();var MZ={linear:k3,easeIn:zR,easeInOut:Js,easeOut:wR,circIn:qs,circInOut:Zs,circOut:Ws,backIn:Jr,backInOut:Gs,backOut:hg,anticipate:Ks},Fk1=e=>typeof e=="string",gg=e=>{if(Xs(e)){te(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,o,a,i]=e;return Bt(t,o,a,i)}else if(Fk1(e))return te(MZ[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),MZ[e];return e};s();s();s();s();var Ys=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];s();s();var b5={value:null,addProjectionMetrics:null};function SZ(e,t){let o=new Set,a=new Set,i=!1,r=!1,n=new WeakSet,c={delta:0,timestamp:0,isProcessing:!1},l=0;function f(d){n.has(d)&&(m.schedule(d),e()),l++,d(c)}let m={schedule:(d,u=!1,p=!1)=>{let g=p&&i?o:a;return u&&n.add(d),g.add(d),d},cancel:d=>{a.delete(d),n.delete(d)},process:d=>{if(c=d,i){r=!0;return}i=!0;let u=o;o=a,a=u,o.forEach(f),t&&b5.value&&b5.value.frameloop[t].push(l),l=0,o.clear(),i=!1,r&&(r=!1,m.process(d))}};return m}var Bk1=40;function vg(e,t){let o=!1,a=!0,i={delta:0,timestamp:0,isProcessing:!1},r=()=>o=!0,n=Ys.reduce((k,w)=>(k[w]=SZ(r,t?w:void 0),k),{}),{setup:c,read:l,resolveKeyframes:f,preUpdate:m,update:d,preRender:u,render:p,postRender:b}=n,g=()=>{let k=x4.useManualTiming,w=k?i.timestamp:performance.now();o=!1,k||(i.delta=a?1e3/60:Math.max(Math.min(w-i.timestamp,Bk1),1)),i.timestamp=w,i.isProcessing=!0,c.process(i),l.process(i),f.process(i),m.process(i),d.process(i),u.process(i),p.process(i),b.process(i),i.isProcessing=!1,o&&t&&(a=!1,e(g))},x=()=>{o=!0,a=!0,i.isProcessing||e(g)};return{schedule:Ys.reduce((k,w)=>{let T=n[w];return k[w]=(O,C=!1,z=!1)=>(o||x(),T.schedule(O,C,z)),k},{}),cancel:k=>{for(let w=0;w<Ys.length;w++)n[Ys[w]].cancel(k)},state:i,steps:n}}var{schedule:l2,cancel:G4,state:_3,steps:Qs}=vg(typeof requestAnimationFrame<"u"?requestAnimationFrame:k3,!0);var bg;function Vk1(){bg=void 0}var x3={now:()=>(bg===void 0&&x3.set(_3.isProcessing||x4.useManualTiming?_3.timestamp:performance.now()),bg),set:e=>{bg=e,queueMicrotask(Vk1)}};s();s();var W6={layout:0,mainThread:0,waapi:0};s();s();s();var TZ=e=>t=>typeof t=="string"&&t.startsWith(e),yg=TZ("--"),Uk1=TZ("var(--"),Xr=e=>Uk1(e)?Hk1.test(e.split("/*")[0].trim()):!1,Hk1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function SR(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}s();s();s();s();var Z6={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},m8={...Z6,transform:e=>u0(0,1,e)},ef={...Z6,default:1};s();var Vt=e=>Math.round(e*1e5)/1e5;s();s();var Yr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;s();function RZ(e){return e==null}s();var EZ=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var Qr=(e,t)=>o=>!!(typeof o=="string"&&EZ.test(o)&&o.startsWith(e)||t&&!RZ(o)&&Object.prototype.hasOwnProperty.call(o,t)),kg=(e,t,o)=>a=>{if(typeof a!="string")return a;let[i,r,n,c]=a.match(Yr);return{[e]:parseFloat(i),[t]:parseFloat(r),[o]:parseFloat(n),alpha:c!==void 0?parseFloat(c):1}};var Gk1=e=>u0(0,255,e),TR={...Z6,transform:e=>Math.round(Gk1(e))},J6={test:Qr("rgb","red"),parse:kg("red","green","blue"),transform:({red:e,green:t,blue:o,alpha:a=1})=>"rgba("+TR.transform(e)+", "+TR.transform(t)+", "+TR.transform(o)+", "+Vt(m8.transform(a))+")"};function Kk1(e){let t="",o="",a="",i="";return e.length>5?(t=e.substring(1,3),o=e.substring(3,5),a=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),o=e.substring(2,3),a=e.substring(3,4),i=e.substring(4,5),t+=t,o+=o,a+=a,i+=i),{red:parseInt(t,16),green:parseInt(o,16),blue:parseInt(a,16),alpha:i?parseInt(i,16)/255:1}}var tf={test:Qr("#"),parse:Kk1,transform:J6.transform};s();s();var of=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),De=of("deg"),t4=of("%"),I1=of("px"),RR=of("vh"),ER=of("vw"),xg={...t4,parse:e=>t4.parse(e)/100,transform:e=>t4.transform(e*100)};var Ut={test:Qr("hsl","hue"),parse:kg("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:o,alpha:a=1})=>"hsla("+Math.round(e)+", "+t4.transform(Vt(t))+", "+t4.transform(Vt(o))+", "+Vt(m8.transform(a))+")"};var d3={test:e=>J6.test(e)||tf.test(e)||Ut.test(e),parse:e=>J6.test(e)?J6.parse(e):Ut.test(e)?Ut.parse(e):tf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?J6.transform(e):Ut.transform(e),getAnimatableNone:e=>{let t=d3.parse(e);return t.alpha=0,d3.transform(t)}};s();s();var _Z=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function qk1(e){return isNaN(e)&&typeof e=="string"&&(e.match(Yr)?.length||0)+(e.match(_Z)?.length||0)>0}var PZ="number",AZ="color",Wk1="var",Zk1="var(",CZ="${}",Jk1=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ht(e){let t=e.toString(),o=[],a={color:[],number:[],var:[]},i=[],r=0,c=t.replace(Jk1,l=>(d3.test(l)?(a.color.push(r),i.push(AZ),o.push(d3.parse(l))):l.startsWith(Zk1)?(a.var.push(r),i.push(Wk1),o.push(l)):(a.number.push(r),i.push(PZ),o.push(parseFloat(l))),++r,CZ)).split(CZ);return{values:o,split:c,indexes:a,types:i}}function Xk1(e){return Ht(e).values}function OZ({split:e,types:t}){let o=e.length;return a=>{let i="";for(let r=0;r<o;r++)if(i+=e[r],a[r]!==void 0){let n=t[r];n===PZ?i+=Vt(a[r]):n===AZ?i+=d3.transform(a[r]):i+=a[r]}return i}}function Yk1(e){return OZ(Ht(e))}var Qk1=e=>typeof e=="number"?0:d3.test(e)?d3.getAnimatableNone(e):e,ex1=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:Qk1(e);function tx1(e){let t=Ht(e);return OZ(t)(t.values.map((a,i)=>ex1(a,t.split[i])))}var p0={test:qk1,parse:Xk1,createTransformer:Yk1,getAnimatableNone:tx1};s();s();function _R(e,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+(t-e)*6*o:o<1/2?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function $Z({hue:e,saturation:t,lightness:o,alpha:a}){e/=360,t/=100,o/=100;let i=0,r=0,n=0;if(!t)i=r=n=o;else{let c=o<.5?o*(1+t):o+t-o*t,l=2*o-c;i=_R(l,c,e+1/3),r=_R(l,c,e),n=_R(l,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(n*255),alpha:a}}s();function en(e,t){return o=>o>0?t:e}s();var g2=(e,t,o)=>e+(t-e)*o;var CR=(e,t,o)=>{let a=e*e,i=o*(t*t-a)+a;return i<0?0:Math.sqrt(i)},ox1=[tf,J6,Ut],ax1=e=>ox1.find(t=>t.test(e));function IZ(e){let t=ax1(e);if(s8(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let o=t.parse(e);return t===Ut&&(o=$Z(o)),o}var PR=(e,t)=>{let o=IZ(e),a=IZ(t);if(!o||!a)return en(e,t);let i={...o};return r=>(i.red=CR(o.red,a.red,r),i.green=CR(o.green,a.green,r),i.blue=CR(o.blue,a.blue,r),i.alpha=g2(o.alpha,a.alpha,r),J6.transform(i))};s();var zg=new Set(["none","hidden"]);function DZ(e,t){return zg.has(e)?o=>o<=0?e:t:o=>o>=1?t:e}function ix1(e,t){return o=>g2(e,t,o)}function wg(e){return typeof e=="number"?ix1:typeof e=="string"?Xr(e)?en:d3.test(e)?PR:cx1:Array.isArray(e)?NZ:typeof e=="object"?d3.test(e)?PR:rx1:en}function NZ(e,t){let o=[...e],a=o.length,i=e.map((r,n)=>wg(r)(r,t[n]));return r=>{for(let n=0;n<a;n++)o[n]=i[n](r);return o}}function rx1(e,t){let o={...e,...t},a={};for(let i in o)e[i]!==void 0&&t[i]!==void 0&&(a[i]=wg(e[i])(e[i],t[i]));return i=>{for(let r in a)o[r]=a[r](i);return o}}function nx1(e,t){let o=[],a={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let r=t.types[i],n=e.indexes[r][a[r]],c=e.values[n]??0;o[i]=c,a[r]++}return o}var cx1=(e,t)=>{let o=p0.createTransformer(t),a=Ht(e),i=Ht(t);return a.indexes.var.length===i.indexes.var.length&&a.indexes.color.length===i.indexes.color.length&&a.indexes.number.length>=i.indexes.number.length?zg.has(e)&&!i.values.length||zg.has(t)&&!a.values.length?DZ(e,t):Ie(NZ(nx1(a,i),i.values),o):(s8(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),en(e,t))};function Mg(e,t,o){return typeof e=="number"&&typeof t=="number"&&typeof o=="number"?g2(e,t,o):wg(e)(e,t)}s();var LZ=e=>{let t=({timestamp:o})=>e(o);return{start:(o=!0)=>l2.update(t,o),stop:()=>G4(t),now:()=>_3.isProcessing?_3.timestamp:x3.now()}};s();s();s();var Sg=(e,t,o=10)=>{let a="",i=Math.max(Math.round(t/o),2);for(let r=0;r<i;r++)a+=Math.round(e(r/(i-1))*1e4)/1e4+", ";return`linear(${a.substring(0,a.length-2)})`};s();function tn(e){let t=0,o=50,a=e.next(t);for(;!a.done&&t<2e4;)t+=o,a=e.next(t);return t>=2e4?1/0:t}s();function jZ(e,t=100,o){let a=o({...e,keyframes:[0,t]}),i=Math.min(tn(a),2e4);return{type:"keyframes",ease:r=>a.next(i*r).value/t,duration:T0(i)}}var z3={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function $R(e,t){return e*Math.sqrt(1-t*t)}var lx1=12;function sx1(e,t,o){let a=o;for(let i=1;i<lx1;i++)a=a-e(a)/t(a);return a}var OR=.001;function fx1({duration:e=z3.duration,bounce:t=z3.bounce,velocity:o=z3.velocity,mass:a=z3.mass}){let i,r;s8(e<=V3(z3.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let n=1-t;n=u0(z3.minDamping,z3.maxDamping,n),e=u0(z3.minDuration,z3.maxDuration,T0(e)),n<1?(i=f=>{let m=f*n,d=m*e,u=m-o,p=$R(f,n),b=Math.exp(-d);return OR-u/p*b},r=f=>{let d=f*n*e,u=d*o+o,p=Math.pow(n,2)*Math.pow(f,2)*e,b=Math.exp(-d),g=$R(Math.pow(f,2),n);return(-i(f)+OR>0?-1:1)*((u-p)*b)/g}):(i=f=>{let m=Math.exp(-f*e),d=(f-o)*e+1;return-OR+m*d},r=f=>{let m=Math.exp(-f*e),d=(o-f)*(e*e);return m*d});let c=5/e,l=sx1(i,r,c);if(e=V3(e),isNaN(l))return{stiffness:z3.stiffness,damping:z3.damping,duration:e};{let f=Math.pow(l,2)*a;return{stiffness:f,damping:n*2*Math.sqrt(a*f),duration:e}}}var mx1=["duration","bounce"],dx1=["stiffness","damping","mass"];function FZ(e,t){return t.some(o=>e[o]!==void 0)}function ux1(e){let t={velocity:z3.velocity,stiffness:z3.stiffness,damping:z3.damping,mass:z3.mass,isResolvedFromDuration:!1,...e};if(!FZ(e,dx1)&&FZ(e,mx1))if(t.velocity=0,e.visualDuration){let o=e.visualDuration,a=2*Math.PI/(o*1.2),i=a*a,r=2*u0(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:z3.mass,stiffness:i,damping:r}}else{let o=fx1({...e,velocity:0});t={...t,...o,mass:z3.mass},t.isResolvedFromDuration=!0}return t}function on(e=z3.visualDuration,t=z3.bounce){let o=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:a,restDelta:i}=o,r=o.keyframes[0],n=o.keyframes[o.keyframes.length-1],c={done:!1,value:r},{stiffness:l,damping:f,mass:m,duration:d,velocity:u,isResolvedFromDuration:p}=ux1({...o,velocity:-T0(o.velocity||0)}),b=u||0,g=f/(2*Math.sqrt(l*m)),x=n-r,y=T0(Math.sqrt(l/m)),v=Math.abs(x)<5;a||(a=v?z3.restSpeed.granular:z3.restSpeed.default),i||(i=v?z3.restDelta.granular:z3.restDelta.default);let k,w,T,O,C,z;if(g<1)T=$R(y,g),O=(b+g*y*x)/T,k=S=>{let N=Math.exp(-g*y*S);return n-N*(O*Math.sin(T*S)+x*Math.cos(T*S))},C=g*y*O+x*T,z=g*y*x-O*T,w=S=>Math.exp(-g*y*S)*(C*Math.sin(T*S)+z*Math.cos(T*S));else if(g===1){k=N=>n-Math.exp(-y*N)*(x+(b+y*x)*N);let S=b+y*x;w=N=>Math.exp(-y*N)*(y*S*N-b)}else{let S=y*Math.sqrt(g*g-1);k=A=>{let _=Math.exp(-g*y*A),E=Math.min(S*A,300);return n-_*((b+g*y*x)*Math.sinh(E)+S*x*Math.cosh(E))/S};let N=(b+g*y*x)/S,P=g*y*N-x*S,R=g*y*x-N*S;w=A=>{let _=Math.exp(-g*y*A),E=Math.min(S*A,300);return _*(P*Math.sinh(E)+R*Math.cosh(E))}}let M={calculatedDuration:p&&d||null,velocity:S=>V3(w(S)),next:S=>{if(!p&&g<1){let P=Math.exp(-g*y*S),R=Math.sin(T*S),A=Math.cos(T*S),_=n-P*(O*R+x*A),E=V3(P*(C*R+z*A));return c.done=Math.abs(E)<=a&&Math.abs(n-_)<=i,c.value=c.done?n:_,c}let N=k(S);if(p)c.done=S>=d;else{let P=V3(w(S));c.done=Math.abs(P)<=a&&Math.abs(n-N)<=i}return c.value=c.done?n:N,c},toString:()=>{let S=Math.min(tn(M),2e4),N=Sg(P=>M.next(S*P).value,S,30);return S+"ms "+N},toTransition:()=>{}};return M}on.applyToOptions=e=>{let t=jZ(e,100,on);return e.ease=t.ease,e.duration=V3(t.duration),e.type="keyframes",e};s();var px1=5;function Tg(e,t,o){let a=Math.max(t-px1,0);return Hs(o-e(a),t-a)}function af({keyframes:e,velocity:t=0,power:o=.8,timeConstant:a=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:n,min:c,max:l,restDelta:f=.5,restSpeed:m}){let d=e[0],u={done:!1,value:d},p=z=>c!==void 0&&z<c||l!==void 0&&z>l,b=z=>c===void 0?l:l===void 0||Math.abs(c-z)<Math.abs(l-z)?c:l,g=o*t,x=d+g,y=n===void 0?x:n(x);y!==x&&(g=y-d);let v=z=>-g*Math.exp(-z/a),k=z=>y+v(z),w=z=>{let M=v(z),S=k(z);u.done=Math.abs(M)<=f,u.value=u.done?y:S},T,O,C=z=>{p(u.value)&&(T=z,O=on({keyframes:[u.value,b(u.value)],velocity:Tg(k,z,u.value),damping:i,stiffness:r,restDelta:f,restSpeed:m}))};return C(0),{calculatedDuration:null,next:z=>{let M=!1;return!O&&T===void 0&&(M=!0,w(z),C(z)),T!==void 0&&z>=T?O.next(z-T):(!M&&w(z),u)}}}s();s();function hx1(e,t,o){let a=[],i=o||x4.mix||Mg,r=e.length-1;for(let n=0;n<r;n++){let c=i(e[n],e[n+1]);if(t){let l=Array.isArray(t)?t[n]||k3:t;c=Ie(l,c)}a.push(c)}return a}function BZ(e,t,{clamp:o=!0,ease:a,mixer:i}={}){let r=e.length;if(te(r===t.length,"Both input and output ranges must be the same length","range-length"),r===1)return()=>t[0];if(r===2&&t[0]===t[1])return()=>t[1];let n=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());let c=hx1(t,a,i),l=c.length,f=m=>{if(n&&m<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(m<e[d+1]);d++);let u=q6(e[d],e[d+1],m);return c[d](u)};return o?m=>f(u0(e[0],e[r-1],m)):f}s();s();function VZ(e,t){let o=e[e.length-1];for(let a=1;a<=t;a++){let i=q6(0,t,a);e.push(g2(o,1,i))}}function UZ(e){let t=[0];return VZ(t,e.length-1),t}s();function HZ(e,t){return e.map(o=>o*t)}function gx1(e,t){return e.map(()=>t||Js).splice(0,e.length-1)}function Ho({duration:e=300,keyframes:t,times:o,ease:a="easeInOut"}){let i=MR(a)?a.map(gg):gg(a),r={done:!1,value:t[0]},n=HZ(o&&o.length===t.length?o:UZ(t),e),c=BZ(n,t,{ease:Array.isArray(i)?i:gx1(t,i)});return{calculatedDuration:e,next:l=>(r.value=c(l),r.done=l>=e,r)}}s();var vx1=e=>e!==null;function Gt(e,{repeat:t,repeatType:o="loop"},a,i=1){let r=e.filter(vx1),c=i<0||t&&o!=="loop"&&t%2===1?0:r.length-1;return!c||a===void 0?r[c]:a}s();var bx1={decay:af,inertia:af,tween:Ho,keyframes:Ho,spring:on};function Rg(e){typeof e.type=="string"&&(e.type=bx1[e.type])}s();var Kt=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,o){return this.finished.then(t,o)}};var yx1=e=>e/100,d8=class extends Kt{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:o}=this.options;o&&o.updatedAt!==x3.now()&&this.tick(x3.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},W6.mainThread++,this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){let{options:t}=this;Rg(t);let{type:o=Ho,repeat:a=0,repeatDelay:i=0,repeatType:r,velocity:n=0}=t,{keyframes:c}=t,l=o||Ho;l!==Ho&&typeof c[0]!="number"&&(this.mixKeyframes=Ie(yx1,Mg(c[0],c[1])),c=[0,100]);let f=l({...t,keyframes:c});r==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...c].reverse(),velocity:-n})),f.calculatedDuration===null&&(f.calculatedDuration=tn(f));let{calculatedDuration:m}=f;this.calculatedDuration=m,this.resolvedDuration=m+i,this.totalDuration=this.resolvedDuration*(a+1)-i,this.generator=f}updateTime(t){let o=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=o}tick(t,o=!1){let{generator:a,totalDuration:i,mixKeyframes:r,mirroredGenerator:n,resolvedDuration:c,calculatedDuration:l}=this;if(this.startTime===null)return a.next(0);let{delay:f=0,keyframes:m,repeat:d,repeatType:u,repeatDelay:p,type:b,onUpdate:g,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),o?this.currentTime=t:this.updateTime(t);let y=this.currentTime-f*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?y<0:y>i;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let k=this.currentTime,w=a;if(d){let z=Math.min(this.currentTime,i)/c,M=Math.floor(z),S=z%1;!S&&z>=1&&(S=1),S===1&&M--,M=Math.min(M,d+1),M%2&&(u==="reverse"?(S=1-S,p&&(S-=p/c)):u==="mirror"&&(w=n)),k=u0(0,1,S)*c}let T;v?(this.delayState.value=m[0],T=this.delayState):T=w.next(k),r&&!v&&(T.value=r(T.value));let{done:O}=T;!v&&l!==null&&(O=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&O);return C&&b!==af&&(T.value=Gt(m,this.options,x,this.speed)),g&&g(T.value),C&&this.finish(),T}then(t,o){return this.finished.then(t,o)}get duration(){return T0(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+T0(t)}get time(){return T0(this.currentTime)}set time(t){t=V3(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let o=this.generator.next(t).value;return Tg(a=>this.generator.next(a).value,t,o)}get speed(){return this.playbackSpeed}set speed(t){let o=this.playbackSpeed!==t;o&&this.driver&&this.updateTime(x3.now()),this.playbackSpeed=t,o&&this.driver&&(this.time=T0(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=LZ,startTime:o}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();let a=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=a):this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime||(this.startTime=o??a),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(x3.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,W6.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}};s();s();function GZ(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}s();s();var Go=e=>e*180/Math.PI,IR=e=>{let t=Go(Math.atan2(e[1],e[0]));return DR(t)},kx1={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:IR,rotateZ:IR,skewX:e=>Go(Math.atan(e[1])),skewY:e=>Go(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},DR=e=>(e=e%360,e<0&&(e+=360),e),KZ=IR,qZ=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),WZ=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),xx1={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:qZ,scaleY:WZ,scale:e=>(qZ(e)+WZ(e))/2,rotateX:e=>DR(Go(Math.atan2(e[6],e[5]))),rotateY:e=>DR(Go(Math.atan2(-e[2],e[0]))),rotateZ:KZ,rotate:KZ,skewX:e=>Go(Math.atan(e[4])),skewY:e=>Go(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Eg(e){return e.includes("scale")?1:0}function _g(e,t){if(!e||e==="none")return Eg(t);let o=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),a,i;if(o)a=xx1,i=o;else{let c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);a=kx1,i=c}if(!i)return Eg(t);let r=a[t],n=i[1].split(",").map(zx1);return typeof r=="function"?r(n):n[r]}var ZZ=(e,t)=>{let{transform:o="none"}=getComputedStyle(e);return _g(o,t)};function zx1(e){return parseFloat(e.trim())}s();var X6=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],oe=new Set(X6);var NR=e=>e===Z6||e===I1,wx1=new Set(["x","y","z"]),Mx1=X6.filter(e=>!wx1.has(e));function JZ(e){let t=[];return Mx1.forEach(o=>{let a=e.getValue(o);a!==void 0&&(t.push([o,a.get()]),a.set(o.startsWith("scale")?1:0))}),t}var u8={width:({x:e},{paddingLeft:t="0",paddingRight:o="0",boxSizing:a})=>{let i=e.max-e.min;return a==="border-box"?i:i-parseFloat(t)-parseFloat(o)},height:({y:e},{paddingTop:t="0",paddingBottom:o="0",boxSizing:a})=>{let i=e.max-e.min;return a==="border-box"?i:i-parseFloat(t)-parseFloat(o)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>_g(t,"x"),y:(e,{transform:t})=>_g(t,"y")};u8.translateX=u8.x;u8.translateY=u8.y;var Ko=new Set,LR=!1,jR=!1,FR=!1;function XZ(){if(jR){let e=Array.from(Ko).filter(a=>a.needsMeasurement),t=new Set(e.map(a=>a.element)),o=new Map;t.forEach(a=>{let i=JZ(a);i.length&&(o.set(a,i),a.render())}),e.forEach(a=>a.measureInitialState()),t.forEach(a=>{a.render();let i=o.get(a);i&&i.forEach(([r,n])=>{a.getValue(r)?.set(n)})}),e.forEach(a=>a.measureEndState()),e.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}jR=!1,LR=!1,Ko.forEach(e=>e.complete(FR)),Ko.clear()}function YZ(){Ko.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(jR=!0)})}function QZ(){FR=!0,YZ(),XZ(),FR=!1}var qt=class{constructor(t,o,a,i,r,n=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=o,this.name=a,this.motionValue=i,this.element=r,this.isAsync=n}scheduleResolve(){this.state="scheduled",this.isAsync?(Ko.add(this),LR||(LR=!0,l2.read(YZ),l2.resolveKeyframes(XZ))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:o,element:a,motionValue:i}=this;if(t[0]===null){let r=i?.get(),n=t[t.length-1];if(r!==void 0)t[0]=r;else if(a&&o){let c=a.readValue(o,n);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=n),i&&r===void 0&&i.set(t[0])}GZ(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ko.delete(this)}cancel(){this.state==="scheduled"&&(Ko.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};s();s();s();var eJ=e=>e.startsWith("--");function Cg(e,t,o){eJ(t)?e.style.setProperty(t,o):e.style[t]=o}s();s();s();s();var tJ={};function Pg(e,t){let o=Us(e);return()=>tJ[t]??o()}var oJ=Pg(()=>window.ScrollTimeline!==void 0,"scrollTimeline");s();s();s();var Ag=Pg(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");s();var qo=([e,t,o,a])=>`cubic-bezier(${e}, ${t}, ${o}, ${a})`;s();var BR={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:qo([0,.65,.55,1]),circOut:qo([.55,0,1,.45]),backIn:qo([.31,.01,.66,-.59]),backOut:qo([.33,1.53,.69,.99])};function VR(e,t){if(e)return typeof e=="function"?Ag()?Sg(e,t):"ease-out":Xs(e)?qo(e):Array.isArray(e)?e.map(o=>VR(o,t)||BR.easeOut):BR[e]}function aJ(e,t,o,{delay:a=0,duration:i=300,repeat:r=0,repeatType:n="loop",ease:c="easeOut",times:l}={},f=void 0){let m={[t]:o};l&&(m.offset=l);let d=VR(c,i);Array.isArray(d)&&(m.easing=d),b5.value&&W6.waapi++;let u={delay:a,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:n==="reverse"?"alternate":"normal"};f&&(u.pseudoElement=f);let p=e.animate(m,u);return b5.value&&p.finished.finally(()=>{W6.waapi--}),p}s();s();function Og(e){return typeof e=="function"&&"applyToOptions"in e}function iJ({type:e,...t}){return Og(e)&&Ag()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var an=class extends Kt{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:o,name:a,keyframes:i,pseudoElement:r,allowFlatten:n=!1,finalKeyframe:c,onComplete:l}=t;this.isPseudoElement=!!r,this.allowFlatten=n,this.options=t,te(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let f=iJ(t);this.animation=aJ(o,a,i,f,r),f.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let m=Gt(i,this.options,c,this.speed);this.updateMotionValue&&this.updateMotionValue(m),Cg(o,a,m),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return T0(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+T0(t)}get time(){return T0(Number(this.animation.currentTime)||0)}set time(t){let o=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=V3(t),o&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:o,rangeEnd:a,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&oJ()?(this.animation.timeline=t,o&&(this.animation.rangeStart=o),a&&(this.animation.rangeEnd=a),k3):i(this)}};s();var rJ={anticipate:Ks,backInOut:Gs,circInOut:Zs};function Sx1(e){return e in rJ}function nJ(e){typeof e.ease=="string"&&Sx1(e.ease)&&(e.ease=rJ[e.ease])}var UR=10,$g=class extends an{constructor(t){nJ(t),Rg(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:o,onUpdate:a,onComplete:i,element:r,...n}=this.options;if(!o)return;if(t!==void 0){o.set(t);return}let c=new d8({...n,autoplay:!1}),l=Math.max(UR,x3.now()-this.startTime),f=u0(0,UR,l-UR),m=c.sample(l).value,{name:d}=this.options;r&&d&&Cg(r,d,m),o.setWithVelocity(c.sample(Math.max(0,l-f)).value,m,f),c.stop()}};s();s();var HR=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(p0.test(e)||e==="0")&&!e.startsWith("url("));function Tx1(e){let t=e[0];if(e.length===1)return!0;for(let o=0;o<e.length;o++)if(e[o]!==t)return!0}function cJ(e,t,o,a){let i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;let r=e[e.length-1],n=HR(i,t),c=HR(r,t);return s8(n===c,`You are trying to animate ${t} from "${i}" to "${r}". "${n?r:i}" is not an animatable value.`,"value-not-animatable"),!n||!c?!1:Tx1(e)||(o==="spring"||Og(o))&&a}s();function rf(e){e.duration=0,e.type="keyframes"}s();s();var Ig=new Set(["opacity","clipPath","filter","transform"]);s();var Rx1=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function lJ(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&Rx1.test(e[t]))return!0;return!1}var Ex1=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),_x1=Us(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function sJ(e){let{motionValue:t,name:o,repeatDelay:a,repeatType:i,damping:r,type:n,keyframes:c}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:f,transformTemplate:m}=t.owner.getProps();return _x1()&&o&&(Ig.has(o)||Ex1.has(o)&&lJ(c))&&(o!=="transform"||!m)&&!f&&!a&&i!=="mirror"&&r!==0&&n!=="inertia"}var Cx1=40,Dg=class extends Kt{constructor({autoplay:t=!0,delay:o=0,type:a="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:n="loop",keyframes:c,name:l,motionValue:f,element:m,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=x3.now();let u={autoplay:t,delay:o,type:a,repeat:i,repeatDelay:r,repeatType:n,name:l,motionValue:f,element:m,...d},p=m?.KeyframeResolver||qt;this.keyframeResolver=new p(c,(b,g,x)=>this.onKeyframesResolved(b,g,u,!x),l,f,m),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,o,a,i){this.keyframeResolver=void 0;let{name:r,type:n,velocity:c,delay:l,isHandoff:f,onUpdate:m}=a;this.resolvedAt=x3.now();let d=!0;cJ(t,r,n,c)||(d=!1,(x4.instantAnimations||!l)&&m?.(Gt(t,a,o)),t[0]=t[t.length-1],rf(a),a.repeat=0);let p={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Cx1?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:o,...a,keyframes:t},b=d&&!f&&sJ(p),g=p.motionValue?.owner?.current,x;if(b)try{x=new $g({...p,element:g})}catch{x=new d8(p)}else x=new d8(p);x.finished.then(()=>{this.notifyFinished()}).catch(k3),this.pendingTimeline&&(this.stopTimeline=x.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=x}get finished(){return this._animation?this.animation.finished:this._finished}then(t,o){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),QZ()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};s();function Ng(e,t,o,a=0,i=1){let r=Array.from(e).sort((f,m)=>f.sortNodePosition(m)).indexOf(t),n=e.size,c=(n-1)*a;return typeof o=="function"?o(r,n):i===1?r*a:c-r*a}s();var Px1=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ax1(e){let t=Px1.exec(e);if(!t)return[,];let[,o,a,i]=t;return[`--${o??a}`,i]}var Ox1=4;function GR(e,t,o=1){te(o<=Ox1,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[a,i]=Ax1(e);if(!a)return;let r=window.getComputedStyle(t).getPropertyValue(a);if(r){let n=r.trim();return Fs(n)?parseFloat(n):n}return Xr(i)?GR(i,t,o+1):i}s();var $x1={type:"spring",stiffness:500,damping:25,restSpeed:10},Ix1=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Dx1={type:"keyframes",duration:.8},Nx1={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},fJ=(e,{keyframes:t})=>t.length>2?Dx1:oe.has(e)?e.startsWith("scale")?Ix1(t[1]):$x1:Nx1;s();s();function Lg(e,t){if(e?.inherit&&t){let{inherit:o,...a}=e;return{...t,...a}}return e}function rn(e,t){let o=e?.[t]??e?.default??e;return o!==e?Lg(o,e):o}s();var Lx1=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function mJ(e){for(let t in e)if(!Lx1.has(t))return!0;return!1}s();var Wo=(e,t,o,a={},i,r)=>n=>{let c=rn(a,e)||{},l=c.delay||a.delay||0,{elapsed:f=0}=a;f=f-V3(l);let m={keyframes:Array.isArray(o)?o:[null,o],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-f,onUpdate:u=>{t.set(u),c.onUpdate&&c.onUpdate(u)},onComplete:()=>{n(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:r?void 0:i};mJ(c)||Object.assign(m,fJ(e,m)),m.duration&&(m.duration=V3(m.duration)),m.repeatDelay&&(m.repeatDelay=V3(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let d=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(rf(m),m.delay===0&&(d=!0)),(x4.instantAnimations||x4.skipAnimations||i?.shouldSkipAnimations)&&(d=!0,rf(m),m.delay=0),m.allowFlatten=!c.type&&!c.ease,d&&!r&&t.get()!==void 0){let u=Gt(m.keyframes,c);if(u!==void 0){l2.update(()=>{m.onUpdate(u),m.onComplete()});return}}return c.isSync?new d8(m):new Dg(m)};s();s();s();function dJ(e){let t=[{},{}];return e?.values.forEach((o,a)=>{t[0][a]=o.get(),t[1][a]=o.getVelocity()}),t}function Zo(e,t,o,a){if(typeof t=="function"){let[i,r]=dJ(a);t=t(o!==void 0?o:e.custom,i,r)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[i,r]=dJ(a);t=t(o!==void 0?o:e.custom,i,r)}return t}function y5(e,t,o){let a=e.getProps();return Zo(a,t,o!==void 0?o:a.custom,e)}s();s();var jg=new Set(["width","height","top","left","right","bottom",...X6]);s();s();var uJ=30,jx1=e=>!isNaN(parseFloat(e)),pJ={current:void 0},KR=class{constructor(t,o={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{let i=x3.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=o.owner}setCurrent(t){this.current=t,this.updatedAt=x3.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=jx1(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,o){this.events[t]||(this.events[t]=new f8);let a=this.events[t].add(o);return t==="change"?()=>{a(),l2.read(()=>{this.events.change.getSize()||this.stop()})}:a}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,o){this.passiveEffect=t,this.stopPassiveEffect=o}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,o,a){this.set(o),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-a}jump(t,o=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,o&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return pJ.current&&pJ.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=x3.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>uJ)return 0;let o=Math.min(this.updatedAt-this.prevUpdatedAt,uJ);return Hs(parseFloat(this.current)-parseFloat(this.prevFrameValue),o)}start(t){return this.stop(),new Promise(o=>{this.hasAnimated=!0,this.animation=t(o),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Ne(e,t){return new KR(e,t)}s();var nf=e=>Array.isArray(e);function Fx1(e,t,o){e.hasValue(t)?e.getValue(t).set(o):e.addValue(t,Ne(o))}function Bx1(e){return nf(e)?e[e.length-1]||0:e}function hJ(e,t){let o=y5(e,t),{transitionEnd:a={},transition:i={},...r}=o||{};r={...r,...a};for(let n in r){let c=Bx1(r[n]);Fx1(e,n,c)}}s();s();s();var j2=e=>!!(e&&e.getVelocity);function gJ(e){return!!(j2(e)&&e.add)}function nn(e,t){let o=e.getValue("willChange");if(gJ(o))return o.add(t);if(!o&&x4.WillChange){let a=new x4.WillChange("auto");e.addValue("willChange",a),a.add(t)}}s();s();s();function cn(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}var vJ="framerAppearId",cf="data-"+cn(vJ);function Fg(e){return e.props[cf]}function Vx1({protectedKeys:e,needsAnimating:t},o){let a=e.hasOwnProperty(o)&&t[o]!==!0;return t[o]=!1,a}function Bg(e,t,{delay:o=0,transitionOverride:a,type:i}={}){let{transition:r,transitionEnd:n,...c}=t,l=e.getDefaultTransition();r=r?Lg(r,l):l;let f=r?.reduceMotion;a&&(r=a);let m=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let u in c){let p=e.getValue(u,e.latestValues[u]??null),b=c[u];if(b===void 0||d&&Vx1(d,u))continue;let g={delay:o,...rn(r||{},u)},x=p.get();if(x!==void 0&&!p.isAnimating()&&!Array.isArray(b)&&b===x&&!g.velocity){l2.update(()=>p.set(b));continue}let y=!1;if(window.MotionHandoffAnimation){let w=Fg(e);if(w){let T=window.MotionHandoffAnimation(w,u,l2);T!==null&&(g.startTime=T,y=!0)}}nn(e,u);let v=f??e.shouldReduceMotion;p.start(Wo(u,p,b,v&&jg.has(u)?{type:!1}:g,e,y));let k=p.animation;k&&m.push(k)}if(n){let u=()=>l2.update(()=>{n&&hJ(e,n)});m.length?Promise.all(m).then(u):u()}return m}s();function Vg(e,t,o={}){let a=y5(e,t,o.type==="exit"?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=a||{};o.transitionOverride&&(i=o.transitionOverride);let r=a?()=>Promise.all(Bg(e,a,o)):()=>Promise.resolve(),n=e.variantChildren&&e.variantChildren.size?(l=0)=>{let{delayChildren:f=0,staggerChildren:m,staggerDirection:d}=i;return Ux1(e,t,l,f,m,d,o)}:()=>Promise.resolve(),{when:c}=i;if(c){let[l,f]=c==="beforeChildren"?[r,n]:[n,r];return l().then(()=>f())}else return Promise.all([r(),n(o.delay)])}function Ux1(e,t,o=0,a=0,i=0,r=1,n){let c=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),c.push(Vg(l,t,{...n,delay:o+(typeof a=="function"?0:a)+Ng(e.variantChildren,l,a,i,r)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(c)}function bJ(e,t,o={}){e.notify("AnimationStart",t);let a;if(Array.isArray(t)){let i=t.map(r=>Vg(e,r,o));a=Promise.all(i)}else if(typeof t=="string")a=Vg(e,t,o);else{let i=typeof t=="function"?y5(e,t,o.custom):t;a=Promise.all(Bg(e,i,o))}return a.then(()=>{e.notify("AnimationComplete",t)})}s();s();s();var yJ={test:e=>e==="auto",parse:e=>e};s();var Ug=e=>t=>t.test(e);var qR=[Z6,I1,t4,De,ER,RR,yJ],WR=e=>qR.find(Ug(e));s();function kJ(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Vs(e):!0}s();s();s();var Hx1=new Set(["brightness","contrast","saturate","opacity"]);function Gx1(e){let[t,o]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[a]=o.match(Yr)||[];if(!a)return e;let i=o.replace(a,""),r=Hx1.has(t)?1:0;return a!==o&&(r*=100),t+"("+r+i+")"}var Kx1=/\b([a-z-]*)\(.*?\)/gu,lf={...p0,getAnimatableNone:e=>{let t=e.match(Kx1);return t?t.map(Gx1).join(" "):e}};s();var sf={...p0,getAnimatableNone:e=>{let t=p0.parse(e);return p0.createTransformer(e)(t.map(a=>typeof a=="number"?0:typeof a=="object"?{...a,alpha:1}:a))}};s();s();s();var ZR={...Z6,transform:Math.round};s();var xJ={rotate:De,rotateX:De,rotateY:De,rotateZ:De,scale:ef,scaleX:ef,scaleY:ef,scaleZ:ef,skew:De,skewX:De,skewY:De,distance:I1,translateX:I1,translateY:I1,translateZ:I1,x:I1,y:I1,z:I1,perspective:I1,transformPerspective:I1,opacity:m8,originX:xg,originY:xg,originZ:I1};var ln={borderWidth:I1,borderTopWidth:I1,borderRightWidth:I1,borderBottomWidth:I1,borderLeftWidth:I1,borderRadius:I1,borderTopLeftRadius:I1,borderTopRightRadius:I1,borderBottomRightRadius:I1,borderBottomLeftRadius:I1,width:I1,maxWidth:I1,height:I1,maxHeight:I1,top:I1,right:I1,bottom:I1,left:I1,inset:I1,insetBlock:I1,insetBlockStart:I1,insetBlockEnd:I1,insetInline:I1,insetInlineStart:I1,insetInlineEnd:I1,padding:I1,paddingTop:I1,paddingRight:I1,paddingBottom:I1,paddingLeft:I1,paddingBlock:I1,paddingBlockStart:I1,paddingBlockEnd:I1,paddingInline:I1,paddingInlineStart:I1,paddingInlineEnd:I1,margin:I1,marginTop:I1,marginRight:I1,marginBottom:I1,marginLeft:I1,marginBlock:I1,marginBlockStart:I1,marginBlockEnd:I1,marginInline:I1,marginInlineStart:I1,marginInlineEnd:I1,fontSize:I1,backgroundPositionX:I1,backgroundPositionY:I1,...xJ,zIndex:ZR,fillOpacity:m8,strokeOpacity:m8,numOctaves:ZR};var qx1={...ln,color:d3,backgroundColor:d3,outlineColor:d3,fill:d3,stroke:d3,borderColor:d3,borderTopColor:d3,borderRightColor:d3,borderBottomColor:d3,borderLeftColor:d3,filter:lf,WebkitFilter:lf,mask:sf,WebkitMask:sf},Hg=e=>qx1[e];var Wx1=new Set([lf,sf]);function Gg(e,t){let o=Hg(e);return Wx1.has(o)||(o=p0),o.getAnimatableNone?o.getAnimatableNone(t):void 0}var Zx1=new Set(["auto","none","0"]);function zJ(e,t,o){let a=0,i;for(;a<e.length&&!i;){let r=e[a];typeof r=="string"&&!Zx1.has(r)&&Ht(r).values.length&&(i=e[a]),a++}if(i&&o)for(let r of t)e[r]=Gg(o,i)}var Kg=class extends qt{constructor(t,o,a,i,r){super(t,o,a,i,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:o,name:a}=this;if(!o||!o.current)return;super.readKeyframes();for(let m=0;m<t.length;m++){let d=t[m];if(typeof d=="string"&&(d=d.trim(),Xr(d))){let u=GR(d,o.current);u!==void 0&&(t[m]=u),m===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!jg.has(a)||t.length!==2)return;let[i,r]=t,n=WR(i),c=WR(r),l=SR(i),f=SR(r);if(l!==f&&u8[a]){this.needsMeasurement=!0;return}if(n!==c)if(NR(n)&&NR(c))for(let m=0;m<t.length;m++){let d=t[m];typeof d=="string"&&(t[m]=parseFloat(d))}else u8[a]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:o}=this,a=[];for(let i=0;i<t.length;i++)(t[i]===null||kJ(t[i]))&&a.push(i);a.length&&zJ(t,a,o)}measureInitialState(){let{element:t,unresolvedKeyframes:o,name:a}=this;if(!t||!t.current)return;a==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=u8[a](t.measureViewportBox(),window.getComputedStyle(t.current)),o[0]=this.measuredOrigin;let i=o[o.length-1];i!==void 0&&t.getValue(a,i).jump(i,!1)}measureEndState(){let{element:t,name:o,unresolvedKeyframes:a}=this;if(!t||!t.current)return;let i=t.getValue(o);i&&i.jump(this.measuredOrigin,!1);let r=a.length-1,n=a[r];a[r]=u8[o](t.measureViewportBox(),window.getComputedStyle(t.current)),n!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=n),this.removedTransforms?.length&&this.removedTransforms.forEach(([c,l])=>{t.getValue(c).set(l)}),this.resolveNoneKeyframes()}};s();function qg(e,t,o){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let a=document;t&&(a=t.current);let i=o?.[e]??a.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(a=>a!=null)}s();var Wg=(e,t)=>t&&typeof e=="number"?t.transform(e):e;s();function Jo(e){return Bs(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}s();var{schedule:Xo,cancel:Jx1}=vg(queueMicrotask,!1);s();var ae={x:!1,y:!1};function Zg(){return ae.x||ae.y}s();function JR(e){return e==="x"||e==="y"?ae[e]?null:(ae[e]=!0,()=>{ae[e]=!1}):ae.x||ae.y?null:(ae.x=ae.y=!0,()=>{ae.x=ae.y=!1})}s();s();function Jg(e,t){let o=qg(e),a=new AbortController,i={passive:!0,...t,signal:a.signal};return[o,i,()=>a.abort()]}function Xx1(e){return!(e.pointerType==="touch"||Zg())}function XR(e,t,o={}){let[a,i,r]=Jg(e,o);return a.forEach(n=>{let c=!1,l=!1,f,m=()=>{n.removeEventListener("pointerleave",b)},d=x=>{f&&(f(x),f=void 0),m()},u=x=>{c=!1,window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",u),l&&(l=!1,d(x))},p=()=>{c=!0,window.addEventListener("pointerup",u,i),window.addEventListener("pointercancel",u,i)},b=x=>{if(x.pointerType!=="touch"){if(c){l=!0;return}d(x)}},g=x=>{if(!Xx1(x))return;l=!1;let y=t(n,x);typeof y=="function"&&(f=y,n.addEventListener("pointerleave",b,i))};n.addEventListener("pointerenter",g,i),n.addEventListener("pointerdown",p,i)}),r}s();s();var YR=(e,t)=>t?e===t?!0:YR(e,t.parentElement):!1;s();var Yo=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;s();var Yx1=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function QR(e){return Yx1.has(e.tagName)||e.isContentEditable===!0}var Qx1=new Set(["INPUT","SELECT","TEXTAREA"]);function eE(e){return Qx1.has(e.tagName)||e.isContentEditable===!0}s();s();var sn=new WeakSet;function wJ(e){return t=>{t.key==="Enter"&&e(t)}}function tE(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var MJ=(e,t)=>{let o=e.currentTarget;if(!o)return;let a=wJ(()=>{if(sn.has(o))return;tE(o,"down");let i=wJ(()=>{tE(o,"up")}),r=()=>tE(o,"cancel");o.addEventListener("keyup",i,t),o.addEventListener("blur",r,t)});o.addEventListener("keydown",a,t),o.addEventListener("blur",()=>o.removeEventListener("keydown",a),t)};function SJ(e){return Yo(e)&&!Zg()}var TJ=new WeakSet;function oE(e,t,o={}){let[a,i,r]=Jg(e,o),n=c=>{let l=c.currentTarget;if(!SJ(c)||TJ.has(c))return;sn.add(l),o.stopPropagation&&TJ.add(c);let f=t(l,c),m=(p,b)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",u),sn.has(l)&&sn.delete(l),SJ(p)&&typeof f=="function"&&f(p,{success:b})},d=p=>{m(p,l===window||l===document||o.useGlobalTarget||YR(l,p.target))},u=p=>{m(p,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",u,i)};return a.forEach(c=>{(o.useGlobalTarget?window:c).addEventListener("pointerdown",n,i),Jo(c)&&(c.addEventListener("focus",f=>MJ(f,i)),!QR(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),r}s();s();s();function fn(e){return Bs(e)&&"ownerSVGElement"in e}var Xg=new WeakMap,Yg,RJ=(e,t,o)=>(a,i)=>i&&i[0]?i[0][e+"Size"]:fn(a)&&"getBBox"in a?a.getBBox()[t]:a[o],ez1=RJ("inline","width","offsetWidth"),tz1=RJ("block","height","offsetHeight");function oz1({target:e,borderBoxSize:t}){Xg.get(e)?.forEach(o=>{o(e,{get width(){return ez1(e,t)},get height(){return tz1(e,t)}})})}function az1(e){e.forEach(oz1)}function iz1(){typeof ResizeObserver>"u"||(Yg=new ResizeObserver(az1))}function EJ(e,t){Yg||iz1();let o=qg(e);return o.forEach(a=>{let i=Xg.get(a);i||(i=new Set,Xg.set(a,i)),i.add(t),Yg?.observe(a)}),()=>{o.forEach(a=>{let i=Xg.get(a);i?.delete(t),i?.size||Yg?.unobserve(a)})}}s();var Qg=new Set,mn;function rz1(){mn=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Qg.forEach(t=>t(e))},window.addEventListener("resize",mn)}function _J(e){return Qg.add(e),mn||rz1(),()=>{Qg.delete(e),!Qg.size&&typeof mn=="function"&&(window.removeEventListener("resize",mn),mn=void 0)}}function ev(e,t){return typeof e=="function"?_J(e):EJ(e,t)}s();function CJ(e){return fn(e)&&e.tagName==="svg"}s();var nz1=[...qR,d3,p0],PJ=e=>nz1.find(Ug(e));s();s();s();var aE=()=>({translate:0,scale:1,origin:0,originPoint:0}),Wt=()=>({x:aE(),y:aE()}),iE=()=>({min:0,max:0}),u3=()=>({x:iE(),y:iE()});s();var AJ=new WeakMap;s();s();function p8(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}s();function Y6(e){return typeof e=="string"||Array.isArray(e)}s();var tv=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ff=["initial",...tv];function Zt(e){return p8(e.animate)||ff.some(t=>Y6(e[t]))}function mf(e){return!!(Zt(e)||e.variants)}s();function OJ(e,t,o){for(let a in t){let i=t[a],r=o[a];if(j2(i))e.addValue(a,i);else if(j2(r))e.addValue(a,Ne(i,{owner:e}));else if(r!==i)if(e.hasValue(a)){let n=e.getValue(a);n.liveStyle===!0?n.jump(i):n.hasAnimated||n.set(i)}else{let n=e.getStaticValue(a);e.addValue(a,Ne(n!==void 0?n:i,{owner:e}))}}for(let a in o)t[a]===void 0&&e.removeValue(a);return t}s();s();var df={current:null},ov={current:!1};var cz1=typeof window<"u";function $J(){if(ov.current=!0,!!cz1)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>df.current=e.matches;e.addEventListener("change",t),t()}else df.current=!1}var IJ=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],av={};function pf(e){av=e}function rE(){return av}var uf=class{scrapeMotionValuesFromProps(t,o,a){return{}}constructor({parent:t,props:o,presenceContext:a,reducedMotionConfig:i,skipAnimations:r,blockInitialAnimation:n,visualState:c},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=qt,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let p=x3.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,l2.render(this.render,!1,!0))};let{latestValues:f,renderState:m}=c;this.latestValues=f,this.baseTarget={...f},this.initialValues=o.initial?{...f}:{},this.renderState=m,this.parent=t,this.props=o,this.presenceContext=a,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=r,this.options=l,this.blockInitialAnimation=!!n,this.isControllingVariants=Zt(o),this.isVariantNode=mf(o),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:d,...u}=this.scrapeMotionValuesFromProps(o,{},this);for(let p in u){let b=u[p];f[p]!==void 0&&j2(b)&&b.set(f[p])}}mount(t){if(this.hasBeenMounted)for(let o in this.initialValues)this.values.get(o)?.jump(this.initialValues[o]),this.latestValues[o]=this.initialValues[o];this.current=t,AJ.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((o,a)=>this.bindToMotionValue(a,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(ov.current||$J(),this.shouldReduceMotion=df.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),G4(this.notifyUpdate),G4(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let t in this.events)this.events[t].clear();for(let t in this.features){let o=this.features[t];o&&(o.unmount(),o.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,o){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),o.accelerate&&Ig.has(t)&&this.current instanceof HTMLElement){let{factory:n,keyframes:c,times:l,ease:f,duration:m}=o.accelerate,d=new an({element:this.current,name:t,keyframes:c,times:l,ease:f,duration:V3(m)}),u=n(d);this.valueSubscriptions.set(t,()=>{u(),d.cancel()});return}let a=oe.has(t);a&&this.onBindTransform&&this.onBindTransform();let i=o.on("change",n=>{this.latestValues[t]=n,this.props.onUpdate&&l2.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,t,o)),this.valueSubscriptions.set(t,()=>{i(),r&&r(),o.owner&&o.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in av){let o=av[t];if(!o)continue;let{isEnabled:a,Feature:i}=o;if(!this.features[t]&&i&&a(this.props)&&(this.features[t]=new i(this)),this.features[t]){let r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):u3()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,o){this.latestValues[t]=o}update(t,o){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=o;for(let a=0;a<IJ.length;a++){let i=IJ[a];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let r="on"+i,n=t[r];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=OJ(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let o=this.getClosestVariantNode();if(o)return o.variantChildren&&o.variantChildren.add(t),()=>o.variantChildren.delete(t)}addValue(t,o){let a=this.values.get(t);o!==a&&(a&&this.removeValue(t),this.bindToMotionValue(t,o),this.values.set(t,o),this.latestValues[t]=o.get())}removeValue(t){this.values.delete(t);let o=this.valueSubscriptions.get(t);o&&(o(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,o){if(this.props.values&&this.props.values[t])return this.props.values[t];let a=this.values.get(t);return a===void 0&&o!==void 0&&(a=Ne(o===null?void 0:o,{owner:this}),this.addValue(t,a)),a}readValue(t,o){let a=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return a!=null&&(typeof a=="string"&&(Fs(a)||Vs(a))?a=parseFloat(a):!PJ(a)&&p0.test(o)&&(a=Gg(t,o)),this.setBaseTarget(t,j2(a)?a.get():a)),j2(a)?a.get():a}setBaseTarget(t,o){this.baseTarget[t]=o}getBaseTarget(t){let{initial:o}=this.props,a;if(typeof o=="string"||typeof o=="object"){let r=Zo(this.props,o,this.presenceContext?.custom);r&&(a=r[t])}if(o&&a!==void 0)return a;let i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!j2(i)?i:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,o){return this.events[t]||(this.events[t]=new f8),this.events[t].add(o)}notify(t,...o){this.events[t]&&this.events[t].notify(...o)}scheduleRenderMicrotask(){Xo.render(this.render)}};var dn=class extends uf{constructor(){super(...arguments),this.KeyframeResolver=Kg}sortInstanceNodePosition(t,o){return t.compareDocumentPosition(o)&2?1:-1}getBaseTargetFromProps(t,o){let a=t.style;return a?a[o]:void 0}removeValueFromRenderState(t,{vars:o,style:a}){delete o[t],delete a[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;j2(t)&&(this.childSubscription=t.on("change",o=>{this.current&&(this.current.textContent=`${o}`)}))}};s();var h0=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};s();s();s();function hf({top:e,left:t,right:o,bottom:a}){return{x:{min:t,max:o},y:{min:e,max:a}}}function nE({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function cE(e,t){if(!t)return e;let o=t({x:e.left,y:e.top}),a=t({x:e.right,y:e.bottom});return{top:o.y,left:o.x,bottom:a.y,right:a.x}}s();s();function lE(e){return e===void 0||e===1}function iv({scale:e,scaleX:t,scaleY:o}){return!lE(e)||!lE(t)||!lE(o)}function h8(e){return iv(e)||sE(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function sE(e){return DJ(e.x)||DJ(e.y)}function DJ(e){return e&&e!=="0%"}function gf(e,t,o){let a=e-o,i=t*a;return o+i}function NJ(e,t,o,a,i){return i!==void 0&&(e=gf(e,i,a)),gf(e,o,a)+t}function fE(e,t=0,o=1,a,i){e.min=NJ(e.min,t,o,a,i),e.max=NJ(e.max,t,o,a,i)}function mE(e,{x:t,y:o}){fE(e.x,t.translate,t.scale,t.originPoint),fE(e.y,o.translate,o.scale,o.originPoint)}var LJ=.999999999999,jJ=1.0000000000001;function VJ(e,t,o,a=!1){let i=o.length;if(!i)return;t.x=t.y=1;let r,n;for(let c=0;c<i;c++){r=o[c],n=r.projectionDelta;let{visualElement:l}=r.options;l&&l.props.style&&l.props.style.display==="contents"||(a&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(ie(e.x,-r.scroll.offset.x),ie(e.y,-r.scroll.offset.y)),n&&(t.x*=n.x.scale,t.y*=n.y.scale,mE(e,n)),a&&h8(r.latestValues)&&vf(e,r.latestValues,r.layout?.layoutBox))}t.x<jJ&&t.x>LJ&&(t.x=1),t.y<jJ&&t.y>LJ&&(t.y=1)}function ie(e,t){e.min+=t,e.max+=t}function FJ(e,t,o,a,i=.5){let r=g2(e.min,e.max,i);fE(e,t,o,r,a)}function BJ(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function vf(e,t,o){let a=o??e;FJ(e.x,BJ(t.x,a.x),t.scaleX,t.scale,t.originX),FJ(e.y,BJ(t.y,a.y),t.scaleY,t.scale,t.originY)}function rv(e,t){return hf(cE(e.getBoundingClientRect(),t))}function dE(e,t,o){let a=rv(e,o),{scroll:i}=t;return i&&(ie(a.x,i.offset.x),ie(a.y,i.offset.y)),a}s();s();var lz1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},sz1=X6.length;function UJ(e,t,o){let a="",i=!0;for(let r=0;r<sz1;r++){let n=X6[r],c=e[n];if(c===void 0)continue;let l=!0;if(typeof c=="number")l=c===(n.startsWith("scale")?1:0);else{let f=parseFloat(c);l=n.startsWith("scale")?f===1:f===0}if(!l||o){let f=Wg(c,ln[n]);if(!l){i=!1;let m=lz1[n]||n;a+=`${m}(${f}) `}o&&(t[n]=f)}}return a=a.trim(),o?a=o(t,i?"":a):i&&(a="none"),a}function Qo(e,t,o){let{style:a,vars:i,transformOrigin:r}=e,n=!1,c=!1;for(let l in t){let f=t[l];if(oe.has(l)){n=!0;continue}else if(yg(l)){i[l]=f;continue}else{let m=Wg(f,ln[l]);l.startsWith("origin")?(c=!0,r[l]=m):a[l]=m}}if(t.transform||(n||o?a.transform=UJ(t,e.transform,o):a.transform&&(a.transform="none")),c){let{originX:l="50%",originY:f="50%",originZ:m=0}=r;a.transformOrigin=`${l} ${f} ${m}`}}s();function nv(e,{style:t,vars:o},a,i){let r=e.style,n;for(n in t)r[n]=t[n];i?.applyProjectionStyles(r,a);for(n in o)r.setProperty(n,o[n])}s();s();s();s();function HJ(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var un={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(I1.test(e))e=parseFloat(e);else return e;let o=HJ(e,t.target.x),a=HJ(e,t.target.y);return`${o}% ${a}%`}};s();var GJ={correct:(e,{treeScale:t,projectionDelta:o})=>{let a=e,i=p0.parse(e);if(i.length>5)return a;let r=p0.createTransformer(e),n=typeof i[0]!="number"?1:0,c=o.x.scale*t.x,l=o.y.scale*t.y;i[0+n]/=c,i[1+n]/=l;let f=g2(c,l,.5);return typeof i[2+n]=="number"&&(i[2+n]/=f),typeof i[3+n]=="number"&&(i[3+n]/=f),r(i)}};var bf={borderRadius:{...un,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:un,borderTopRightRadius:un,borderBottomLeftRadius:un,borderBottomRightRadius:un,boxShadow:GJ};function yf(e,{layout:t,layoutId:o}){return oe.has(e)||e.startsWith("origin")||(t||o!==void 0)&&(!!bf[e]||e==="opacity")}function ea(e,t,o){let a=e.style,i=t?.style,r={};if(!a)return r;for(let n in a)(j2(a[n])||i&&j2(i[n])||yf(n,e)||o?.getValue(n)?.liveStyle!==void 0)&&(r[n]=a[n]);return r}function fz1(e){return window.getComputedStyle(e)}var kf=class extends dn{constructor(){super(...arguments),this.type="html",this.renderInstance=nv}readValueFromInstance(t,o){if(oe.has(o))return this.projection?.isProjecting?Eg(o):ZZ(t,o);{let a=fz1(t),i=(yg(o)?a.getPropertyValue(o):a[o])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:o}){return rv(t,o)}build(t,o,a){Qo(t,o,a.transformTemplate)}scrapeMotionValuesFromProps(t,o,a){return ea(t,o,a)}};s();s();s();var mz1={offset:"stroke-dashoffset",array:"stroke-dasharray"},dz1={offset:"strokeDashoffset",array:"strokeDasharray"};function KJ(e,t,o=1,a=0,i=!0){e.pathLength=1;let r=i?mz1:dz1;e[r.offset]=`${-a}`,e[r.array]=`${t} ${o}`}var uz1=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function xf(e,{attrX:t,attrY:o,attrScale:a,pathLength:i,pathSpacing:r=1,pathOffset:n=0,...c},l,f,m){if(Qo(e,c,f),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:u}=e;d.transform&&(u.transform=d.transform,delete d.transform),(u.transform||d.transformOrigin)&&(u.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),u.transform&&(u.transformBox=m?.transformBox??"fill-box",delete d.transformBox);for(let p of uz1)d[p]!==void 0&&(u[p]=d[p],delete d[p]);t!==void 0&&(d.x=t),o!==void 0&&(d.y=o),a!==void 0&&(d.scale=a),i!==void 0&&KJ(d,i,r,n,!1)}s();var cv=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);s();var zf=e=>typeof e=="string"&&e.toLowerCase()==="svg";s();function qJ(e,t,o,a){nv(e,t,void 0,a);for(let i in t.attrs)e.setAttribute(cv.has(i)?i:cn(i),t.attrs[i])}s();function wf(e,t,o){let a=ea(e,t,o);for(let i in e)if(j2(e[i])||j2(t[i])){let r=X6.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;a[r]=e[i]}return a}var Mf=class extends dn{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=u3}getBaseTargetFromProps(t,o){return t[o]}readValueFromInstance(t,o){if(oe.has(o)){let a=Hg(o);return a&&a.default||0}return o=cv.has(o)?o:cn(o),t.getAttribute(o)}scrapeMotionValuesFromProps(t,o,a){return wf(t,o,a)}build(t,o,a){xf(t,o,this.isSVGTag,a.transformTemplate,a.style)}renderInstance(t,o,a,i){qJ(t,o,a,i)}mount(t){this.isSVGTag=zf(t.tagName),super.mount(t)}};s();s();var pz1=ff.length;function uE(e){if(!e)return;if(!e.isControllingVariants){let o=e.parent?uE(e.parent)||{}:{};return e.props.initial!==void 0&&(o.initial=e.props.initial),o}let t={};for(let o=0;o<pz1;o++){let a=ff[o],i=e.props[a];(Y6(i)||i===!1)&&(t[a]=i)}return t}s();function pE(e,t){if(!Array.isArray(t))return!1;let o=t.length;if(o!==e.length)return!1;for(let a=0;a<o;a++)if(t[a]!==e[a])return!1;return!0}var hz1=[...tv].reverse(),gz1=tv.length;function vz1(e){return t=>Promise.all(t.map(({animation:o,options:a})=>bJ(e,o,a)))}function hE(e){let t=vz1(e),o=WJ(),a=!0,i=!1,r=f=>(m,d)=>{let u=y5(e,d,f==="exit"?e.presenceContext?.custom:void 0);if(u){let{transition:p,transitionEnd:b,...g}=u;m={...m,...g,...b}}return m};function n(f){t=f(e)}function c(f){let{props:m}=e,d=uE(e.parent)||{},u=[],p=new Set,b={},g=1/0;for(let y=0;y<gz1;y++){let v=hz1[y],k=o[v],w=m[v]!==void 0?m[v]:d[v],T=Y6(w),O=v===f?k.isActive:null;O===!1&&(g=y);let C=w===d[v]&&w!==m[v]&&T;if(C&&(a||i)&&e.manuallyAnimateOnMount&&(C=!1),k.protectedKeys={...b},!k.isActive&&O===null||!w&&!k.prevProp||p8(w)||typeof w=="boolean")continue;if(v==="exit"&&k.isActive&&O!==!0){k.prevResolvedValues&&(b={...b,...k.prevResolvedValues});continue}let z=ZJ(k.prevProp,w),M=z||v===f&&k.isActive&&!C&&T||y>g&&T,S=!1,N=Array.isArray(w)?w:[w],P=N.reduce(r(v),{});O===!1&&(P={});let{prevResolvedValues:R={}}=k,A={...R,...P},_=L=>{M=!0,p.has(L)&&(S=!0,p.delete(L)),k.needsAnimating[L]=!0;let $=e.getValue(L);$&&($.liveStyle=!1)};for(let L in A){let $=P[L],B=R[L];if(b.hasOwnProperty(L))continue;let q=!1;nf($)&&nf(B)?q=!pE($,B):q=$!==B,q?$!=null?_(L):p.add(L):$!==void 0&&p.has(L)?_(L):k.protectedKeys[L]=!0}k.prevProp=w,k.prevResolvedValues=P,k.isActive&&(b={...b,...P}),(a||i)&&e.blockInitialAnimation&&(M=!1);let E=C&&z;M&&(!E||S)&&u.push(...N.map(L=>{let $={type:v};if(typeof L=="string"&&(a||i)&&!E&&e.manuallyAnimateOnMount&&e.parent){let{parent:B}=e,q=y5(B,L);if(B.enteringChildren&&q){let{delayChildren:Q}=q.transition||{};$.delay=Ng(B.enteringChildren,e,Q)}}return{animation:L,options:$}}))}if(p.size){let y={};if(typeof m.initial!="boolean"){let v=y5(e,Array.isArray(m.initial)?m.initial[0]:m.initial);v&&v.transition&&(y.transition=v.transition)}p.forEach(v=>{let k=e.getBaseTarget(v),w=e.getValue(v);w&&(w.liveStyle=!0),y[v]=k??null}),u.push({animation:y})}let x=!!u.length;return a&&(m.initial===!1||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(x=!1),a=!1,i=!1,x?t(u):Promise.resolve()}function l(f,m){if(o[f].isActive===m)return Promise.resolve();e.variantChildren?.forEach(u=>u.animationState?.setActive(f,m)),o[f].isActive=m;let d=c(f);for(let u in o)o[u].protectedKeys={};return d}return{animateChanges:c,setActive:l,setAnimateFunction:n,getState:()=>o,reset:()=>{o=WJ(),i=!0}}}function ZJ(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!pE(t,e):!1}function ta(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function WJ(){return{animate:ta(!0),whileInView:ta(),whileHover:ta(),whileTap:ta(),whileDrag:ta(),whileFocus:ta(),exit:ta()}}s();function lv(e,t){e.min=t.min,e.max=t.max}function re(e,t){lv(e.x,t.x),lv(e.y,t.y)}function gE(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}s();var JJ=1e-4,bz1=1-JJ,yz1=1+JJ,XJ=.01,kz1=0-XJ,xz1=0+XJ;function r0(e){return e.max-e.min}function kE(e,t,o){return Math.abs(e-t)<=o}function vE(e,t,o,a=.5){e.origin=a,e.originPoint=g2(t.min,t.max,e.origin),e.scale=r0(o)/r0(t),e.translate=g2(o.min,o.max,e.origin)-e.originPoint,(e.scale>=bz1&&e.scale<=yz1||isNaN(e.scale))&&(e.scale=1),(e.translate>=kz1&&e.translate<=xz1||isNaN(e.translate))&&(e.translate=0)}function oa(e,t,o,a){vE(e.x,t.x,o.x,a?a.originX:void 0),vE(e.y,t.y,o.y,a?a.originY:void 0)}function bE(e,t,o,a=0){let i=a?g2(o.min,o.max,a):o.min;e.min=i+t.min,e.max=e.min+r0(t)}function xE(e,t,o,a){bE(e.x,t.x,o.x,a?.x),bE(e.y,t.y,o.y,a?.y)}function yE(e,t,o,a=0){let i=a?g2(o.min,o.max,a):o.min;e.min=t.min-i,e.max=e.min+r0(t)}function pn(e,t,o,a){yE(e.x,t.x,o.x,a?.x),yE(e.y,t.y,o.y,a?.y)}s();function YJ(e,t,o,a,i){return e-=t,e=gf(e,1/o,a),i!==void 0&&(e=gf(e,1/i,a)),e}function zz1(e,t=0,o=1,a=.5,i,r=e,n=e){if(t4.test(t)&&(t=parseFloat(t),t=g2(n.min,n.max,t/100)-n.min),typeof t!="number")return;let c=g2(r.min,r.max,a);e===r&&(c-=t),e.min=YJ(e.min,t,o,c,i),e.max=YJ(e.max,t,o,c,i)}function QJ(e,t,[o,a,i],r,n){zz1(e,t[o],t[a],t[i],t.scale,r,n)}var wz1=["x","scaleX","originX"],Mz1=["y","scaleY","originY"];function zE(e,t,o,a){QJ(e.x,t,wz1,o?o.x:void 0,a?a.x:void 0),QJ(e.y,t,Mz1,o?o.y:void 0,a?a.y:void 0)}s();function eX(e){return e.translate===0&&e.scale===1}function wE(e){return eX(e.x)&&eX(e.y)}function tX(e,t){return e.min===t.min&&e.max===t.max}function aX(e,t){return tX(e.x,t.x)&&tX(e.y,t.y)}function oX(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ME(e,t){return oX(e.x,t.x)&&oX(e.y,t.y)}function SE(e){return r0(e.x)/r0(e.y)}function TE(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}s();function k5(e){return[e("x"),e("y")]}s();function iX(e,t,o){let a="",i=e.x.translate/t.x,r=e.y.translate/t.y,n=o?.z||0;if((i||r||n)&&(a=`translate3d(${i}px, ${r}px, ${n}px) `),(t.x!==1||t.y!==1)&&(a+=`scale(${1/t.x}, ${1/t.y}) `),o){let{transformPerspective:f,rotate:m,rotateX:d,rotateY:u,skewX:p,skewY:b}=o;f&&(a=`perspective(${f}px) ${a}`),m&&(a+=`rotate(${m}deg) `),d&&(a+=`rotateX(${d}deg) `),u&&(a+=`rotateY(${u}deg) `),p&&(a+=`skewX(${p}deg) `),b&&(a+=`skewY(${b}deg) `)}let c=e.x.scale*t.x,l=e.y.scale*t.y;return(c!==1||l!==1)&&(a+=`scale(${c}, ${l})`),a||"none"}s();var lX=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],Sz1=lX.length,rX=e=>typeof e=="string"?parseFloat(e):e,nX=e=>typeof e=="number"||I1.test(e);function sX(e,t,o,a,i,r){i?(e.opacity=g2(0,o.opacity??1,Tz1(a)),e.opacityExit=g2(t.opacity??1,0,Rz1(a))):r&&(e.opacity=g2(t.opacity??1,o.opacity??1,a));for(let n=0;n<Sz1;n++){let c=lX[n],l=cX(t,c),f=cX(o,c);if(l===void 0&&f===void 0)continue;l||(l=0),f||(f=0),l===0||f===0||nX(l)===nX(f)?(e[c]=Math.max(g2(rX(l),rX(f),a),0),(t4.test(f)||t4.test(l))&&(e[c]+="%")):e[c]=f}(t.rotate||o.rotate)&&(e.rotate=g2(t.rotate||0,o.rotate||0,a))}function cX(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var Tz1=fX(0,.5,Ws),Rz1=fX(.5,.95,k3);function fX(e,t,o){return a=>a<e?0:a>t?1:o(q6(e,t,a))}s();function mX(e,t,o){let a=j2(e)?e:Ne(e);return a.start(Wo("",a,t,o)),a.animation}s();function Q6(e,t,o,a={passive:!0}){return e.addEventListener(t,o,a),()=>e.removeEventListener(t,o)}s();var dX=(e,t)=>e.depth-t.depth;s();var sv=class{constructor(){this.children=[],this.isDirty=!1}add(t){Uo(this.children,t),this.isDirty=!0}remove(t){Ft(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(dX),this.isDirty=!1,this.children.forEach(t)}};s();function uX(e,t){let o=x3.now(),a=({timestamp:i})=>{let r=i-o;r>=t&&(G4(a),e(r-t))};return l2.setup(a,!0),()=>G4(a)}s();function aa(e){return j2(e)?e.get():e}s();s();var fv=class{constructor(){this.members=[]}add(t){Uo(this.members,t);for(let o=this.members.length-1;o>=0;o--){let a=this.members[o];if(a===t||a===this.lead||a===this.prevLead)continue;let i=a.instance;(!i||i.isConnected===!1)&&!a.snapshot&&(Ft(this.members,a),a.unmount())}t.scheduleRender()}remove(t){if(Ft(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let o=this.members[this.members.length-1];o&&this.promote(o)}}relegate(t){for(let o=this.members.indexOf(t)-1;o>=0;o--){let a=this.members[o];if(a.isPresent!==!1&&a.instance?.isConnected!==!1)return this.promote(a),!0}return!1}promote(t,o){let a=this.lead;if(t!==a&&(this.prevLead=a,this.lead=t,t.show(),a)){a.updateSnapshot(),t.scheduleRender();let{layoutDependency:i}=a.options,{layoutDependency:r}=t.options;(i===void 0||i!==r)&&(t.resumeFrom=a,o&&(a.preserveOpacity=!0),a.snapshot&&(t.snapshot=a.snapshot,t.snapshot.latestValues=a.animationValues||a.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&a.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}};s();var ia={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var ra={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},RE=["","X","Y","Z"],Ez1=1e3,_z1=0;function EE(e,t,o,a){let{latestValues:i}=t;i[e]&&(o[e]=i[e],t.setStaticValue(e,0),a&&(a[e]=0))}function zX(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let o=Fg(t);if(window.MotionHasOptimisedAnimation(o,"transform")){let{layout:i,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(o,"transform",l2,!(i||r))}let{parent:a}=e;a&&!a.hasCheckedOptimisedAppear&&zX(a)}function mv({attachResizeListener:e,defaultParent:t,measureScroll:o,checkIsScrollRoot:a,resetTransform:i}){return class{constructor(n={},c=t?.()){this.id=_z1++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,b5.value&&(ra.nodes=ra.calculatedTargetDeltas=ra.calculatedProjections=0),this.nodes.forEach(Az1),this.nodes.forEach(Lz1),this.nodes.forEach(jz1),this.nodes.forEach(Oz1),b5.addProjectionMetrics&&b5.addProjectionMetrics(ra)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=n,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new sv)}addEventListener(n,c){return this.eventHandlers.has(n)||this.eventHandlers.set(n,new f8),this.eventHandlers.get(n).add(c)}notifyListeners(n,...c){let l=this.eventHandlers.get(n);l&&l.notify(...c)}hasListeners(n){return this.eventHandlers.has(n)}mount(n){if(this.instance)return;this.isSVG=fn(n)&&!CJ(n),this.instance=n;let{layoutId:c,layout:l,visualElement:f}=this.options;if(f&&!f.current&&f.mount(n),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||c)&&(this.isLayoutDirty=!0),e){let m,d=0,u=()=>this.root.updateBlockedByResize=!1;l2.read(()=>{d=window.innerWidth}),e(n,()=>{let p=window.innerWidth;p!==d&&(d=p,this.root.updateBlockedByResize=!0,m&&m(),m=uX(u,250),ia.hasAnimatedSinceResize&&(ia.hasAnimatedSinceResize=!1,this.nodes.forEach(gX)))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&f&&(c||l)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:d,hasRelativeLayoutChanged:u,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let b=this.options.transition||f.getDefaultTransition()||Hz1,{onLayoutAnimationStart:g,onLayoutAnimationComplete:x}=f.getProps(),y=!this.targetLayout||!ME(this.targetLayout,p),v=!d&&u;if(this.options.layoutRoot||this.resumeFrom||v||d&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let k={...rn(b,"layout"),onPlay:g,onComplete:x};(f.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k),this.setAnimationOrigin(m,v)}else d||gX(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let n=this.getStack();n&&n.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),G4(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Fz1),this.animationId++)}getTransformTemplate(){let{visualElement:n}=this.options;return n&&n.getProps().transformTemplate}willUpdate(n=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&zX(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){let d=this.path[m];d.shouldResetTransform=!0,(typeof d.latestValues.x=="string"||typeof d.latestValues.y=="string")&&(d.isLayoutDirty=!0),d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}let{layoutId:c,layout:l}=this.options;if(c===void 0&&!l)return;let f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),n&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(Iz1),this.nodes.forEach(pX);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(hX);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Dz1),this.nodes.forEach(Nz1),this.nodes.forEach(Cz1),this.nodes.forEach(Pz1)):this.nodes.forEach(hX),this.clearAllSnapshots();let c=x3.now();_3.delta=u0(0,1e3/60,c-_3.timestamp),_3.timestamp=c,_3.isProcessing=!0,Qs.update.process(_3),Qs.preRender.process(_3),Qs.render.process(_3),_3.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Xo.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach($z1),this.sharedNodes.forEach(Bz1)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,l2.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){l2.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!r0(this.snapshot.measuredBox.x)&&!r0(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();let n=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=u3()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,n?n.layoutBox:void 0)}updateScroll(n="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===n&&(c=!1),c&&this.instance){let l=a(this.instance);this.scroll={animationId:this.root.animationId,phase:n,isRoot:l,offset:o(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;let n=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!wE(this.projectionDelta),l=this.getTransformTemplate(),f=l?l(this.latestValues,""):void 0,m=f!==this.prevTransformTemplateValue;n&&this.instance&&(c||h8(this.latestValues)||m)&&(i(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(n=!0){let c=this.measurePageBox(),l=this.removeElementScroll(c);return n&&(l=this.removeTransform(l)),Gz1(l),{animationId:this.root.animationId,measuredBox:c,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:n}=this.options;if(!n)return u3();let c=n.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Kz1))){let{scroll:f}=this.root;f&&(ie(c.x,f.offset.x),ie(c.y,f.offset.y))}return c}removeElementScroll(n){let c=u3();if(re(c,n),this.scroll?.wasRoot)return c;for(let l=0;l<this.path.length;l++){let f=this.path[l],{scroll:m,options:d}=f;f!==this.root&&m&&d.layoutScroll&&(m.wasRoot&&re(c,n),ie(c.x,m.offset.x),ie(c.y,m.offset.y))}return c}applyTransform(n,c=!1,l){let f=l||u3();re(f,n);for(let m=0;m<this.path.length;m++){let d=this.path[m];!c&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(ie(f.x,-d.scroll.offset.x),ie(f.y,-d.scroll.offset.y)),h8(d.latestValues)&&vf(f,d.latestValues,d.layout?.layoutBox)}return h8(this.latestValues)&&vf(f,this.latestValues,this.layout?.layoutBox),f}removeTransform(n){let c=u3();re(c,n);for(let l=0;l<this.path.length;l++){let f=this.path[l];if(!h8(f.latestValues))continue;let m;f.instance&&(iv(f.latestValues)&&f.updateSnapshot(),m=u3(),re(m,f.measurePageBox())),zE(c,f.latestValues,f.snapshot?.layoutBox,m)}return h8(this.latestValues)&&zE(c,this.latestValues),c}setTargetDelta(n){this.targetDelta=n,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(n){this.options={...this.options,...n,crossfade:n.crossfade!==void 0?n.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==_3.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(n=!1){let c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);let l=!!this.resumingFrom||this!==c;if(!(n||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:m,layoutId:d}=this.options;if(!this.layout||!(m||d))return;this.resolvedRelativeTargetAt=_3.timestamp;let u=this.getClosestProjectingParent();u&&this.linkedParentVersion!==u.layoutVersion&&!u.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&u&&u.layout?this.createRelativeTarget(u,this.layout.layoutBox,u.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=u3(),this.targetWithTransforms=u3()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),xE(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):re(this.target,this.layout.layoutBox),mE(this.target,this.targetDelta)):re(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&u&&!!u.resumingFrom==!!this.resumingFrom&&!u.options.layoutScroll&&u.target&&this.animationProgress!==1?this.createRelativeTarget(u,this.target,u.target):this.relativeParent=this.relativeTarget=void 0),b5.value&&ra.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||iv(this.parent.latestValues)||sE(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(n,c,l){this.relativeParent=n,this.linkedParentVersion=n.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=u3(),this.relativeTargetOrigin=u3(),pn(this.relativeTargetOrigin,c,l,this.options.layoutAnchor||void 0),re(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let n=this.getLead(),c=!!this.resumingFrom||this!==n,l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===_3.timestamp&&(l=!1),l)return;let{layout:f,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||m))return;re(this.layoutCorrected,this.layout.layoutBox);let d=this.treeScale.x,u=this.treeScale.y;VJ(this.layoutCorrected,this.treeScale,this.path,c),n.layout&&!n.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(n.target=n.layout.layoutBox,n.targetWithTransforms=u3());let{target:p}=n;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(gE(this.prevProjectionDelta.x,this.projectionDelta.x),gE(this.prevProjectionDelta.y,this.projectionDelta.y)),oa(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==u||!TE(this.projectionDelta.x,this.prevProjectionDelta.x)||!TE(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p)),b5.value&&ra.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(n=!0){if(this.options.visualElement?.scheduleRender(),n){let c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Wt(),this.projectionDelta=Wt(),this.projectionDeltaWithTransform=Wt()}setAnimationOrigin(n,c=!1){let l=this.snapshot,f=l?l.latestValues:{},m={...this.latestValues},d=Wt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;let u=u3(),p=l?l.source:void 0,b=this.layout?this.layout.source:void 0,g=p!==b,x=this.getStack(),y=!x||x.members.length<=1,v=!!(g&&!y&&this.options.crossfade===!0&&!this.path.some(Uz1));this.animationProgress=0;let k;this.mixTargetDelta=w=>{let T=w/1e3;vX(d.x,n.x,T),vX(d.y,n.y,T),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(pn(u,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Vz1(this.relativeTarget,this.relativeTargetOrigin,u,T),k&&aX(this.relativeTarget,k)&&(this.isProjectionDirty=!1),k||(k=u3()),re(k,this.relativeTarget)),g&&(this.animationValues=m,sX(m,f,this.latestValues,T,v,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(n){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(G4(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=l2.update(()=>{ia.hasAnimatedSinceResize=!0,W6.layout++,this.motionValue||(this.motionValue=Ne(0)),this.motionValue.jump(0,!1),this.currentAnimation=mX(this.motionValue,[0,1e3],{...n,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),n.onUpdate&&n.onUpdate(c)},onStop:()=>{W6.layout--},onComplete:()=>{W6.layout--,n.onComplete&&n.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let n=this.getStack();n&&n.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ez1),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let n=this.getLead(),{targetWithTransforms:c,target:l,layout:f,latestValues:m}=n;if(!(!c||!l||!f)){if(this!==n&&this.layout&&f&&wX(this.options.animationType,this.layout.layoutBox,f.layoutBox)){l=this.target||u3();let d=r0(this.layout.layoutBox.x);l.x.min=n.target.x.min,l.x.max=l.x.min+d;let u=r0(this.layout.layoutBox.y);l.y.min=n.target.y.min,l.y.max=l.y.min+u}re(c,l),vf(c,m),oa(this.projectionDeltaWithTransform,this.layoutCorrected,c,m)}}registerSharedNode(n,c){this.sharedNodes.has(n)||this.sharedNodes.set(n,new fv),this.sharedNodes.get(n).add(c);let f=c.options.initialPromotionConfig;c.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(c):void 0})}isLead(){let n=this.getStack();return n?n.lead===this:!0}getLead(){let{layoutId:n}=this.options;return n?this.getStack()?.lead||this:this}getPrevLead(){let{layoutId:n}=this.options;return n?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:n}=this.options;if(n)return this.root.sharedNodes.get(n)}promote({needsReset:n,transition:c,preserveFollowOpacity:l}={}){let f=this.getStack();f&&f.promote(this,l),n&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){let n=this.getStack();return n?n.relegate(this):!1}resetSkewAndRotation(){let{visualElement:n}=this.options;if(!n)return;let c=!1,{latestValues:l}=n;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(c=!0),!c)return;let f={};l.z&&EE("z",n,f,this.animationValues);for(let m=0;m<RE.length;m++)EE(`rotate${RE[m]}`,n,f,this.animationValues),EE(`skew${RE[m]}`,n,f,this.animationValues);n.render();for(let m in f)n.setStaticValue(m,f[m]),this.animationValues&&(this.animationValues[m]=f[m]);n.scheduleRender()}applyProjectionStyles(n,c){if(!this.instance||this.isSVG)return;if(!this.isVisible){n.visibility="hidden";return}let l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,n.visibility="",n.opacity="",n.pointerEvents=aa(c?.pointerEvents)||"",n.transform=l?l(this.latestValues,""):"none";return}let f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){this.options.layoutId&&(n.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,n.pointerEvents=aa(c?.pointerEvents)||""),this.hasProjected&&!h8(this.latestValues)&&(n.transform=l?l({},""):"none",this.hasProjected=!1);return}n.visibility="";let m=f.animationValues||f.latestValues;this.applyTransformsToTarget();let d=iX(this.projectionDeltaWithTransform,this.treeScale,m);l&&(d=l(m,d)),n.transform=d;let{x:u,y:p}=this.projectionDelta;n.transformOrigin=`${u.origin*100}% ${p.origin*100}% 0`,f.animationValues?n.opacity=f===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:n.opacity=f===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(let b in bf){if(m[b]===void 0)continue;let{correct:g,applyTo:x,isCSSVariable:y}=bf[b],v=d==="none"?m[b]:g(m[b],f);if(x){let k=x.length;for(let w=0;w<k;w++)n[x[w]]=v}else y?this.options.visualElement.renderState.vars[b]=v:n[b]=v}this.options.layoutId&&(n.pointerEvents=f===this?aa(c?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(n=>n.currentAnimation?.stop()),this.root.nodes.forEach(pX),this.root.sharedNodes.clear()}}}function Cz1(e){e.updateLayout()}function Pz1(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:o,measuredBox:a}=e.layout,{animationType:i}=e.options,r=t.source!==e.layout.source;if(i==="size")k5(m=>{let d=r?t.measuredBox[m]:t.layoutBox[m],u=r0(d);d.min=o[m].min,d.max=d.min+u});else if(i==="x"||i==="y"){let m=i==="x"?"y":"x";lv(r?t.measuredBox[m]:t.layoutBox[m],o[m])}else wX(i,t.layoutBox,o)&&k5(m=>{let d=r?t.measuredBox[m]:t.layoutBox[m],u=r0(o[m]);d.max=d.min+u,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+u)});let n=Wt();oa(n,o,t.layoutBox);let c=Wt();r?oa(c,e.applyTransform(a,!0),t.measuredBox):oa(c,o,t.layoutBox);let l=!wE(n),f=!1;if(!e.resumeFrom){let m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){let{snapshot:d,layout:u}=m;if(d&&u){let p=e.options.layoutAnchor||void 0,b=u3();pn(b,t.layoutBox,d.layoutBox,p);let g=u3();pn(g,o,u.layoutBox,p),ME(b,g)||(f=!0),m.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=b,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:t,delta:c,layoutDelta:n,hasLayoutChanged:l,hasRelativeLayoutChanged:f})}else if(e.isLead()){let{onExitComplete:o}=e.options;o&&o()}e.options.transition=void 0}function Az1(e){b5.value&&ra.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Oz1(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function $z1(e){e.clearSnapshot()}function pX(e){e.clearMeasurements()}function Iz1(e){e.isLayoutDirty=!0,e.updateLayout()}function hX(e){e.isLayoutDirty=!1}function Dz1(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Nz1(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function gX(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Lz1(e){e.resolveTargetDelta()}function jz1(e){e.calcProjection()}function Fz1(e){e.resetSkewAndRotation()}function Bz1(e){e.removeLeadSnapshot()}function vX(e,t,o){e.translate=g2(t.translate,0,o),e.scale=g2(t.scale,1,o),e.origin=t.origin,e.originPoint=t.originPoint}function bX(e,t,o,a){e.min=g2(t.min,o.min,a),e.max=g2(t.max,o.max,a)}function Vz1(e,t,o,a){bX(e.x,t.x,o.x,a),bX(e.y,t.y,o.y,a)}function Uz1(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Hz1={duration:.45,ease:[.4,0,.1,1]},yX=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),kX=yX("applewebkit/")&&!yX("chrome/")?Math.round:k3;function xX(e){e.min=kX(e.min),e.max=kX(e.max)}function Gz1(e){xX(e.x),xX(e.y)}function wX(e,t,o){return e==="position"||e==="preserve-aspect"&&!kE(SE(t),SE(o),.2)}function Kz1(e){return e!==e.root&&e.scroll?.wasRoot}s();var MX=mv({attachResizeListener:(e,t)=>Q6(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0});s();var dv={current:void 0},Sf=mv({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!dv.current){let e=new MX({});e.mount(window),e.setOptions({layoutScroll:!0}),dv.current=e}return dv.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var uv=j(U(),1),g8=j(U(),1);s();var SX=j(U(),1),hn=(0,SX.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});s();var RX=j(U(),1);function TX(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function qz1(...e){return t=>{let o=!1,a=e.map(i=>{let r=TX(i,t);return!o&&typeof r=="function"&&(o=!0),r});if(o)return()=>{for(let i=0;i<a.length;i++){let r=a[i];typeof r=="function"?r():TX(e[i],null)}}}}function EX(...e){return RX.useCallback(qz1(...e),e)}var _E=class extends uv.Component{getSnapshotBeforeUpdate(t){let o=this.props.childRef.current;if(Jo(o)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let a=o.offsetParent,i=Jo(a)&&a.offsetWidth||0,r=Jo(a)&&a.offsetHeight||0,n=getComputedStyle(o),c=this.props.sizeRef.current;c.height=parseFloat(n.height),c.width=parseFloat(n.width),c.top=o.offsetTop,c.left=o.offsetLeft,c.right=i-c.width-c.left,c.bottom=r-c.height-c.top}return null}componentDidUpdate(){}render(){return this.props.children}};function CX({children:e,isPresent:t,anchorX:o,anchorY:a,root:i,pop:r}){let n=(0,g8.useId)(),c=(0,g8.useRef)(null),l=(0,g8.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:f}=(0,g8.useContext)(hn),m=e.props?.ref??e?.ref,d=EX(c,m);return(0,g8.useInsertionEffect)(()=>{let{width:u,height:p,top:b,left:g,right:x,bottom:y}=l.current;if(t||r===!1||!c.current||!u||!p)return;let v=o==="left"?`left: ${g}`:`right: ${x}`,k=a==="bottom"?`bottom: ${y}`:`top: ${b}`;c.current.dataset.motionPopId=n;let w=document.createElement("style");f&&(w.nonce=f);let T=i??document.head;return T.appendChild(w),w.sheet&&w.sheet.insertRule(`
427
+ `&&(w.value+=" ");let T=k.boxSizing,O=Ip(k.paddingBottom)+Ip(k.paddingTop),C=Ip(k.borderBottomWidth)+Ip(k.borderTopWidth),z=w.scrollHeight;w.value="x";let M=w.scrollHeight,S=z;r&&(S=Math.max(Number(r)*M,S)),i&&(S=Math.min(Number(i)*M,S)),S=Math.max(S,M);let N=S+(T==="border-box"?O+C:0),P=Math.abs(S-z)<=1;return{outerHeightStyle:N,overflowing:P}},[i,r,t.placeholder]),g=U5.useCallback(()=>{let y=b();if(Jv1(y))return;let v=y.outerHeightStyle,k=m.current;u.current!==v&&(u.current=v,k.style.height=`${v}px`),k.style.overflow=y.overflowing?"hidden":""},[b]);return y3(()=>{let y=()=>{g()},v,k=()=>{cancelAnimationFrame(v),v=requestAnimationFrame(()=>{y()})},w=Q9(y),T=m.current,O=at(T);O.addEventListener("resize",w);let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(y),C.observe(T)),()=>{w.clear(),cancelAnimationFrame(v),O.removeEventListener("resize",w),C&&C.disconnect()}},[b,g]),y3(()=>{g()}),(0,NH.jsxs)(U5.Fragment,{children:[(0,jM.jsx)("textarea",I({value:c,onChange:y=>{f||g(),a&&a(y)},ref:d,rows:r,style:n},l)),(0,jM.jsx)("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:I({},Zv1.shadow,n,{paddingTop:0,paddingBottom:0})})]})});s();function LH(e){return G1("MuiScopedCssBaseline",e)}var Xi2=H1("MuiScopedCssBaseline",["root"]);s();_1();Y1();u2();var Xv1=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],Yv1=["component","slots","slotProps"],Qv1=["component"];function E1(e,t){let{className:o,elementType:a,ownerState:i,externalForwardedProps:r,getSlotOwnerState:n,internalForwardedProps:c}=t,l=k1(t,Xv1),{component:f,slots:m={[e]:void 0},slotProps:d={[e]:void 0}}=r,u=k1(r,Yv1),p=m[e]||a,b=io(d[e],i),g=ao(I({className:o},l,{externalForwardedProps:e==="root"?u:void 0,externalSlotProps:b})),{props:{component:x},internalRef:y}=g,v=k1(g.props,Qv1),k=Z1(y,b?.ref,t.ref),w=n?n(v):{},T=I({},i,w),O=e==="root"?x||f:x,C=oo(p,I({},e==="root"&&!f&&!m[e]&&c,e!=="root"&&!m[e]&&c,v,O&&{as:O},{ref:k}),T);return Object.keys(w).forEach(z=>{delete C[z]}),[p,C]}var FH=j(m1()),eb1=["className","component","disableColorScheme","slots","slotProps"],tb1=()=>V1({root:["root"]},LH,{}),ob1=y1("div",{name:"JoyScopedCssBaseline",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{let o={};return!t.disableColorScheme&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,i])=>{var r;o[`&${e.getColorSchemeSelector(a).replace(/\s*&/,"")}`]={colorScheme:(r=i.palette)==null?void 0:r.mode}}),I({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",color:e.vars.palette.text.primary},e.typography["body-md"],{backgroundColor:e.vars.palette.background.body,"@media print":{backgroundColor:"#fff"},"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:"bold"}},o)}),ab1=jH.forwardRef(function(t,o){let a=K1({props:t,name:"JoyScopedCssBaseline"}),{className:i,component:r="div",disableColorScheme:n=!1,slots:c={},slotProps:l={}}=a,f=k1(a,eb1),m=I({},a,{component:r,disableColorScheme:n}),d=tb1(),u=I({},f,{component:r,slots:c,slotProps:l}),[p,b]=E1("root",{ref:o,className:m2(d.root,i),elementType:ob1,externalForwardedProps:u,ownerState:m});return(0,FH.jsx)(p,I({},b))}),BM=ab1;al();var gZ=j(uZ());s();s();var kR={50:"#A3FFD7",100:"#8CFFCD",200:"#80FFD2",300:"#48D7A3",400:"#34D399",500:"#2EBD89",600:"#10B981",700:"#009A7E",800:"#006640",900:"#00331F"};var pZ=(e="zappway")=>({modeStorageKey:e,colorSchemeStorageKey:`${e}-color-scheme`,attribute:`data-${e}`}),hZ=(e={})=>Li({cssVarPrefix:e.prefix,fontFamily:{body:"Inter, sans-serif",display:"Poppins, sans-serif"},typography:{display1:{background:"linear-gradient(-30deg, var(--joy-palette-primary-900), var(--joy-palette-primary-400))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",fontSize:"57px",lineHeight:"64px",letterSpacing:"-0.25px"},kbd:{background:"linear-gradient(to top, var(--joy-palette-background-level2), var(--joy-palette-background-surface))",border:"1px solid var(--joy-palette-neutral-outlinedBorder)",borderRadius:"var(--joy-radius-xs)",boxShadow:"var(--joy-shadow-sm)",padding:"0.125em 0.375em"}},fontSize:{xl7:"4.5rem",xl6:"3.75rem",xl5:"3rem",xs2:"0.625rem",xs3:"0.5rem"},fontWeight:{xs:200,xl2:800,xl3:900},components:{JoySelect:{defaultProps:{slotProps:{listbox:{container:e.container}}},styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}},JoyModal:{defaultProps:{container:e.container}},JoyCard:{styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}},JoyInput:{styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}},JoyTextarea:{styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}},JoyButton:{styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}},JoyIconButton:{styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}}},colorSchemes:{dark:{palette:{primary:kR}},light:{palette:{primary:kR,neutral:{solidBg:"#000"}}}}});var Kr=j(m1()),Ck1="CREATE_NEW_CONVERSATION",xR={"phone-number":"phoneNumber","user-id":"userId","first-name":"firstName","last-name":"lastName",email:"email"},vZ="zappway-embeds",fg=pZ(vZ),e4=typeof process<"u"&&!1,Pk1=typeof NEXT_PUBLIC_DASHBOARD_URL<"u"?NEXT_PUBLIC_DASHBOARD_URL:"https://app.zappway.ai",Ak1=(typeof NEXT_PUBLIC_ASSETS_BASE_URL<"u"?NEXT_PUBLIC_ASSETS_BASE_URL:"")||"https://cdn.jsdelivr.net/npm/@zappway/embeds@1.1.15",Ok1=e=>{let t=e.getAttribute("locale");if(t)return e4&&console.log("[ShadowDOM] Locale detectado via atributo direto:",t),t;let o=e.getAttribute("lang");if(o)return e4&&console.log("[ShadowDOM] Locale detectado via atributo lang:",o),o;try{let r=e.ownerDocument?.documentElement?.lang;if(r)return e4&&console.log("[ShadowDOM] Locale detectado via document.documentElement.lang:",r),r}catch(i){e4&&console.warn("[ShadowDOM] Não foi possível acessar documento pai:",i)}try{let r=e.ownerDocument?.querySelector('meta[name="locale"]')?.getAttribute("content");if(r)return e4&&console.log("[ShadowDOM] Locale detectado via meta tag:",r),r}catch(i){e4&&console.warn("[ShadowDOM] Não foi possível acessar meta tags:",i)}let a=navigator.language||navigator.userLanguage;return a?(e4&&console.log("[ShadowDOM] Locale detectado via navigator:",a),a):(e4&&console.log("[ShadowDOM] Usando fallback en"),"en")},$k1=e=>{let t=e.getAttribute("color-mode")||e.getAttribute("data-color-mode");if(t==="dark"||t==="light")return e4&&console.log("[ShadowDOM] Color mode from attribute:",t),t;try{let o=e.ownerDocument,a=o?.documentElement,i=a?.className||"",r=o?.body?.className||"",n=a?.getAttribute("data-theme")||a?.getAttribute("data-mode"),c=o?.body?.getAttribute("data-theme")||o?.body?.getAttribute("data-mode");if(i.includes("dark")||r.includes("dark")||n==="dark"||c==="dark")return e4&&console.log("[ShadowDOM] Color mode from parent class/data: dark"),"dark";if(i.includes("light")||r.includes("light")||n==="light"||c==="light")return e4&&console.log("[ShadowDOM] Color mode from parent class/data: light"),"light";let l=a?.getAttribute("data-joy-color-scheme");if(l==="dark"||l==="light")return e4&&console.log("[ShadowDOM] Color mode from Joy UI scheme:",l),l;if(window.matchMedia?.("(prefers-color-scheme: dark)").matches)return e4&&console.log("[ShadowDOM] Color mode from media query: dark"),"dark"}catch(o){e4&&console.warn("[ShadowDOM] Could not detect color mode:",o)}return e4&&console.log("[ShadowDOM] Color mode fallback: light"),"light"};if(typeof window<"u"){let e=console.warn;console.warn=(...t)=>{t[0]&&typeof t[0]=="string"&&(t[0].includes("TextLayer styles not found")||t[0].includes("AnnotationLayer styles not found"))||e(...t)}}var Ik1=({name:e,widget:t,type:o})=>class extends HTMLElement{cssProvider=Ak1+`/dist/${o}/index.css`;root;cache;shadowRootElement;emotionRoot;instanceId;setIsOpen;isOpen;onEnd;locale;colorMode="light";constructor(i){super(),this.instanceId=i?.instanceId,this.onEnd=i?.onEnd;let r=this.attachShadow({mode:"open"}),n=document.createElement("link");n.rel="stylesheet",n.type="text/css",n.href="https://fonts.googleapis.com/css2?family=Poppins:wght@200..800&family=Inter:wght@100..900&display=swap";let c=document.createElement("link");if(c.rel="stylesheet",c.type="text/css",c.href=this.cssProvider,this.emotionRoot=document.createElement("style"),this.shadowRootElement=document.createElement("div"),this.shadowRootElement.className="zappway-widget",r.appendChild(n),r.appendChild(c),r.appendChild(this.emotionRoot),r.appendChild(this.shadowRootElement),o==="pdfviewer"){let l=document.createElement("style");if(l.innerHTML=Dj+`
428
+ `+Nj,r.appendChild(l),!document.getElementById("react-pdf-global-vars")){let m=document.createElement("style");m.id="react-pdf-global-vars",m.innerHTML="body { --react-pdf-text-layer: 1; --react-pdf-annotation-layer: 1; }",document.head.appendChild(m)}}this.cache=xi({key:e,prepend:!0,container:this.emotionRoot}),this.cache.compat=!0,this.root=(0,gZ.createRoot)(this.shadowRootElement)}open(){this.setIsOpen?.(!0)}close(){this.setIsOpen?.(!1)}toggle(){this.setIsOpen?.(!this.isOpen)}destroy(){this.innerHTML="",this.instanceId&&(window[this.instanceId]=null)}createNewConversation(){this.dispatchEvent(new Event(Ck1,{bubbles:!0,composed:!0}))}Component=i=>{let[r,n]=(0,qr.useState)(!1);this.setIsOpen=n,this.isOpen=r;let c={};for(let u in xR)if(xR.hasOwnProperty(u)){let p=xR[u],b=this.getAttribute(u);b&&(c[p]=b)}let l=this.getAttribute("context"),f={};try{f=JSON.parse(this.getAttribute("interface"))}catch{}let m=hZ({container:this.shadowRootElement,prefix:vZ}),d={...m,colorSchemes:{...m.colorSchemes,light:{...m.colorSchemes?.light,palette:{...m.colorSchemes?.light?.palette,mode:"light"}},dark:{...m.colorSchemes?.dark,palette:{...m.colorSchemes?.dark?.palette,mode:"dark"}}}};return(0,Kr.jsx)(qr.StrictMode,{children:(0,Kr.jsx)(fl,{value:this.cache,children:(0,Kr.jsx)(Xw,{theme:d,defaultMode:this.colorMode,modeStorageKey:fg.modeStorageKey,attribute:fg.attribute,colorSchemeStorageKey:fg.colorSchemeStorageKey,colorSchemeNode:this.shadowRootElement,children:(0,Kr.jsx)(BM,{sx:{background:"transparent"},children:qr.default.createElement(t,{...i,isOpen:r,onEnd:this.onEnd,initConfig:f,context:l,agentId:this.getAttribute("agent-id")||"",formId:this.getAttribute("form-id")||"",apiHost:Pk1,fileUrl:this.getAttribute("file-url")||void 0,datasourceId:this.getAttribute("datasource-id")||void 0,pageNumber:this.getAttribute("page-number")?parseInt(this.getAttribute("page-number"),10):void 0,search:this.getAttribute("search")||void 0,colorMode:this.colorMode,contact:c,locale:this.locale,styles:this.getAttribute("styles")?JSON.parse(this.getAttribute("styles")):{},onAgentLoaded:u=>{let p=u?.interfaceConfig?.customCSS;if(p){let b=document.createElement("style");b.innerHTML=p,this.shadowRootElement.appendChild(b)}}})})})})})};connectedCallback(){this.locale=Ok1(this),this.colorMode=$k1(this),this.shadowRootElement.setAttribute(fg.attribute,this.colorMode),e4&&console.log("[ShadowDOM] Element conectado com locale:",this.locale,"colorMode:",this.colorMode),this.root.render((0,Kr.jsx)(this.Component,{isOpen:this.isOpen,onEnd:this.onEnd}))}},bZ=Ik1;s();var ei=j(U());s();s();var Ef=j(m1(),1),Le=j(U(),1);s();var yZ=j(U(),1),Wr=(0,yZ.createContext)({});s();var kZ=j(U(),1);function Zr(e){let t=(0,kZ.useRef)(null);return t.current===null&&(t.current=e()),t.current}s();var mg=j(U(),1);s();var xZ=typeof window<"u";var dg=xZ?mg.useLayoutEffect:mg.useEffect;s();var CE=j(m1(),1),PX=j(U(),1),Tf=j(U(),1);s();var zZ=j(U(),1),jt=(0,zZ.createContext)(null);s();var _X=j(m1(),1);s();s();s();s();function Uo(e,t){e.indexOf(t)===-1&&e.push(t)}function Ft(e,t){let o=e.indexOf(t);o>-1&&e.splice(o,1)}s();var u0=(e,t,o)=>o>t?t:o<e?e:o;s();var s8=()=>{},te=()=>{};s();var x4={};s();var Fs=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);s();function Bs(e){return typeof e=="object"&&e!==null}s();var Vs=e=>/^0[^.\s]+$/u.test(e);s();function Us(e){let t;return()=>(t===void 0&&(t=e()),t)}s();var k3=e=>e;s();var Dk1=(e,t)=>o=>t(e(o)),Ie=(...e)=>e.reduce(Dk1);s();var q6=(e,t,o)=>{let a=t-e;return a===0?1:(o-e)/a};s();var f8=class{constructor(){this.subscriptions=[]}add(t){return Uo(this.subscriptions,t),()=>Ft(this.subscriptions,t)}notify(t,o,a){let i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,o,a);else for(let r=0;r<i;r++){let n=this.subscriptions[r];n&&n(t,o,a)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};s();var V3=e=>e*1e3,T0=e=>e/1e3;s();function Hs(e,t){return t?e*(1e3/t):0}s();s();s();var wZ=(e,t,o)=>(((1-3*o+3*t)*e+(3*o-6*t))*e+3*t)*e,Nk1=1e-7,Lk1=12;function jk1(e,t,o,a,i){let r,n,c=0;do n=t+(o-t)/2,r=wZ(n,a,i)-e,r>0?o=n:t=n;while(Math.abs(r)>Nk1&&++c<Lk1);return n}function Bt(e,t,o,a){if(e===t&&o===a)return k3;let i=r=>jk1(r,0,1,e,o);return r=>r===0||r===1?r:wZ(i(r),t,a)}s();var ug=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;s();var pg=e=>t=>1-e(1-t);var hg=Bt(.33,1.53,.69,.99),Jr=pg(hg),Gs=ug(Jr);var Ks=e=>e>=1?1:(e*=2)<1?.5*Jr(e):.5*(2-Math.pow(2,-10*(e-1)));s();var qs=e=>1-Math.sin(Math.acos(e)),Ws=pg(qs),Zs=ug(qs);s();var zR=Bt(.42,0,1,1),wR=Bt(0,0,.58,1),Js=Bt(.42,0,.58,1);s();var MR=e=>Array.isArray(e)&&typeof e[0]!="number";s();var Xs=e=>Array.isArray(e)&&typeof e[0]=="number";s();var MZ={linear:k3,easeIn:zR,easeInOut:Js,easeOut:wR,circIn:qs,circInOut:Zs,circOut:Ws,backIn:Jr,backInOut:Gs,backOut:hg,anticipate:Ks},Fk1=e=>typeof e=="string",gg=e=>{if(Xs(e)){te(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,o,a,i]=e;return Bt(t,o,a,i)}else if(Fk1(e))return te(MZ[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),MZ[e];return e};s();s();s();s();var Ys=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];s();s();var b5={value:null,addProjectionMetrics:null};function SZ(e,t){let o=new Set,a=new Set,i=!1,r=!1,n=new WeakSet,c={delta:0,timestamp:0,isProcessing:!1},l=0;function f(d){n.has(d)&&(m.schedule(d),e()),l++,d(c)}let m={schedule:(d,u=!1,p=!1)=>{let g=p&&i?o:a;return u&&n.add(d),g.add(d),d},cancel:d=>{a.delete(d),n.delete(d)},process:d=>{if(c=d,i){r=!0;return}i=!0;let u=o;o=a,a=u,o.forEach(f),t&&b5.value&&b5.value.frameloop[t].push(l),l=0,o.clear(),i=!1,r&&(r=!1,m.process(d))}};return m}var Bk1=40;function vg(e,t){let o=!1,a=!0,i={delta:0,timestamp:0,isProcessing:!1},r=()=>o=!0,n=Ys.reduce((k,w)=>(k[w]=SZ(r,t?w:void 0),k),{}),{setup:c,read:l,resolveKeyframes:f,preUpdate:m,update:d,preRender:u,render:p,postRender:b}=n,g=()=>{let k=x4.useManualTiming,w=k?i.timestamp:performance.now();o=!1,k||(i.delta=a?1e3/60:Math.max(Math.min(w-i.timestamp,Bk1),1)),i.timestamp=w,i.isProcessing=!0,c.process(i),l.process(i),f.process(i),m.process(i),d.process(i),u.process(i),p.process(i),b.process(i),i.isProcessing=!1,o&&t&&(a=!1,e(g))},x=()=>{o=!0,a=!0,i.isProcessing||e(g)};return{schedule:Ys.reduce((k,w)=>{let T=n[w];return k[w]=(O,C=!1,z=!1)=>(o||x(),T.schedule(O,C,z)),k},{}),cancel:k=>{for(let w=0;w<Ys.length;w++)n[Ys[w]].cancel(k)},state:i,steps:n}}var{schedule:l2,cancel:G4,state:_3,steps:Qs}=vg(typeof requestAnimationFrame<"u"?requestAnimationFrame:k3,!0);var bg;function Vk1(){bg=void 0}var x3={now:()=>(bg===void 0&&x3.set(_3.isProcessing||x4.useManualTiming?_3.timestamp:performance.now()),bg),set:e=>{bg=e,queueMicrotask(Vk1)}};s();s();var W6={layout:0,mainThread:0,waapi:0};s();s();s();var TZ=e=>t=>typeof t=="string"&&t.startsWith(e),yg=TZ("--"),Uk1=TZ("var(--"),Xr=e=>Uk1(e)?Hk1.test(e.split("/*")[0].trim()):!1,Hk1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function SR(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}s();s();s();s();var Z6={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},m8={...Z6,transform:e=>u0(0,1,e)},ef={...Z6,default:1};s();var Vt=e=>Math.round(e*1e5)/1e5;s();s();var Yr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;s();function RZ(e){return e==null}s();var EZ=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var Qr=(e,t)=>o=>!!(typeof o=="string"&&EZ.test(o)&&o.startsWith(e)||t&&!RZ(o)&&Object.prototype.hasOwnProperty.call(o,t)),kg=(e,t,o)=>a=>{if(typeof a!="string")return a;let[i,r,n,c]=a.match(Yr);return{[e]:parseFloat(i),[t]:parseFloat(r),[o]:parseFloat(n),alpha:c!==void 0?parseFloat(c):1}};var Gk1=e=>u0(0,255,e),TR={...Z6,transform:e=>Math.round(Gk1(e))},J6={test:Qr("rgb","red"),parse:kg("red","green","blue"),transform:({red:e,green:t,blue:o,alpha:a=1})=>"rgba("+TR.transform(e)+", "+TR.transform(t)+", "+TR.transform(o)+", "+Vt(m8.transform(a))+")"};function Kk1(e){let t="",o="",a="",i="";return e.length>5?(t=e.substring(1,3),o=e.substring(3,5),a=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),o=e.substring(2,3),a=e.substring(3,4),i=e.substring(4,5),t+=t,o+=o,a+=a,i+=i),{red:parseInt(t,16),green:parseInt(o,16),blue:parseInt(a,16),alpha:i?parseInt(i,16)/255:1}}var tf={test:Qr("#"),parse:Kk1,transform:J6.transform};s();s();var of=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),De=of("deg"),t4=of("%"),I1=of("px"),RR=of("vh"),ER=of("vw"),xg={...t4,parse:e=>t4.parse(e)/100,transform:e=>t4.transform(e*100)};var Ut={test:Qr("hsl","hue"),parse:kg("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:o,alpha:a=1})=>"hsla("+Math.round(e)+", "+t4.transform(Vt(t))+", "+t4.transform(Vt(o))+", "+Vt(m8.transform(a))+")"};var d3={test:e=>J6.test(e)||tf.test(e)||Ut.test(e),parse:e=>J6.test(e)?J6.parse(e):Ut.test(e)?Ut.parse(e):tf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?J6.transform(e):Ut.transform(e),getAnimatableNone:e=>{let t=d3.parse(e);return t.alpha=0,d3.transform(t)}};s();s();var _Z=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function qk1(e){return isNaN(e)&&typeof e=="string"&&(e.match(Yr)?.length||0)+(e.match(_Z)?.length||0)>0}var PZ="number",AZ="color",Wk1="var",Zk1="var(",CZ="${}",Jk1=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ht(e){let t=e.toString(),o=[],a={color:[],number:[],var:[]},i=[],r=0,c=t.replace(Jk1,l=>(d3.test(l)?(a.color.push(r),i.push(AZ),o.push(d3.parse(l))):l.startsWith(Zk1)?(a.var.push(r),i.push(Wk1),o.push(l)):(a.number.push(r),i.push(PZ),o.push(parseFloat(l))),++r,CZ)).split(CZ);return{values:o,split:c,indexes:a,types:i}}function Xk1(e){return Ht(e).values}function OZ({split:e,types:t}){let o=e.length;return a=>{let i="";for(let r=0;r<o;r++)if(i+=e[r],a[r]!==void 0){let n=t[r];n===PZ?i+=Vt(a[r]):n===AZ?i+=d3.transform(a[r]):i+=a[r]}return i}}function Yk1(e){return OZ(Ht(e))}var Qk1=e=>typeof e=="number"?0:d3.test(e)?d3.getAnimatableNone(e):e,ex1=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:Qk1(e);function tx1(e){let t=Ht(e);return OZ(t)(t.values.map((a,i)=>ex1(a,t.split[i])))}var p0={test:qk1,parse:Xk1,createTransformer:Yk1,getAnimatableNone:tx1};s();s();function _R(e,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+(t-e)*6*o:o<1/2?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function $Z({hue:e,saturation:t,lightness:o,alpha:a}){e/=360,t/=100,o/=100;let i=0,r=0,n=0;if(!t)i=r=n=o;else{let c=o<.5?o*(1+t):o+t-o*t,l=2*o-c;i=_R(l,c,e+1/3),r=_R(l,c,e),n=_R(l,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(n*255),alpha:a}}s();function en(e,t){return o=>o>0?t:e}s();var g2=(e,t,o)=>e+(t-e)*o;var CR=(e,t,o)=>{let a=e*e,i=o*(t*t-a)+a;return i<0?0:Math.sqrt(i)},ox1=[tf,J6,Ut],ax1=e=>ox1.find(t=>t.test(e));function IZ(e){let t=ax1(e);if(s8(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let o=t.parse(e);return t===Ut&&(o=$Z(o)),o}var PR=(e,t)=>{let o=IZ(e),a=IZ(t);if(!o||!a)return en(e,t);let i={...o};return r=>(i.red=CR(o.red,a.red,r),i.green=CR(o.green,a.green,r),i.blue=CR(o.blue,a.blue,r),i.alpha=g2(o.alpha,a.alpha,r),J6.transform(i))};s();var zg=new Set(["none","hidden"]);function DZ(e,t){return zg.has(e)?o=>o<=0?e:t:o=>o>=1?t:e}function ix1(e,t){return o=>g2(e,t,o)}function wg(e){return typeof e=="number"?ix1:typeof e=="string"?Xr(e)?en:d3.test(e)?PR:cx1:Array.isArray(e)?NZ:typeof e=="object"?d3.test(e)?PR:rx1:en}function NZ(e,t){let o=[...e],a=o.length,i=e.map((r,n)=>wg(r)(r,t[n]));return r=>{for(let n=0;n<a;n++)o[n]=i[n](r);return o}}function rx1(e,t){let o={...e,...t},a={};for(let i in o)e[i]!==void 0&&t[i]!==void 0&&(a[i]=wg(e[i])(e[i],t[i]));return i=>{for(let r in a)o[r]=a[r](i);return o}}function nx1(e,t){let o=[],a={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let r=t.types[i],n=e.indexes[r][a[r]],c=e.values[n]??0;o[i]=c,a[r]++}return o}var cx1=(e,t)=>{let o=p0.createTransformer(t),a=Ht(e),i=Ht(t);return a.indexes.var.length===i.indexes.var.length&&a.indexes.color.length===i.indexes.color.length&&a.indexes.number.length>=i.indexes.number.length?zg.has(e)&&!i.values.length||zg.has(t)&&!a.values.length?DZ(e,t):Ie(NZ(nx1(a,i),i.values),o):(s8(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),en(e,t))};function Mg(e,t,o){return typeof e=="number"&&typeof t=="number"&&typeof o=="number"?g2(e,t,o):wg(e)(e,t)}s();var LZ=e=>{let t=({timestamp:o})=>e(o);return{start:(o=!0)=>l2.update(t,o),stop:()=>G4(t),now:()=>_3.isProcessing?_3.timestamp:x3.now()}};s();s();s();var Sg=(e,t,o=10)=>{let a="",i=Math.max(Math.round(t/o),2);for(let r=0;r<i;r++)a+=Math.round(e(r/(i-1))*1e4)/1e4+", ";return`linear(${a.substring(0,a.length-2)})`};s();function tn(e){let t=0,o=50,a=e.next(t);for(;!a.done&&t<2e4;)t+=o,a=e.next(t);return t>=2e4?1/0:t}s();function jZ(e,t=100,o){let a=o({...e,keyframes:[0,t]}),i=Math.min(tn(a),2e4);return{type:"keyframes",ease:r=>a.next(i*r).value/t,duration:T0(i)}}var z3={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function $R(e,t){return e*Math.sqrt(1-t*t)}var lx1=12;function sx1(e,t,o){let a=o;for(let i=1;i<lx1;i++)a=a-e(a)/t(a);return a}var OR=.001;function fx1({duration:e=z3.duration,bounce:t=z3.bounce,velocity:o=z3.velocity,mass:a=z3.mass}){let i,r;s8(e<=V3(z3.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let n=1-t;n=u0(z3.minDamping,z3.maxDamping,n),e=u0(z3.minDuration,z3.maxDuration,T0(e)),n<1?(i=f=>{let m=f*n,d=m*e,u=m-o,p=$R(f,n),b=Math.exp(-d);return OR-u/p*b},r=f=>{let d=f*n*e,u=d*o+o,p=Math.pow(n,2)*Math.pow(f,2)*e,b=Math.exp(-d),g=$R(Math.pow(f,2),n);return(-i(f)+OR>0?-1:1)*((u-p)*b)/g}):(i=f=>{let m=Math.exp(-f*e),d=(f-o)*e+1;return-OR+m*d},r=f=>{let m=Math.exp(-f*e),d=(o-f)*(e*e);return m*d});let c=5/e,l=sx1(i,r,c);if(e=V3(e),isNaN(l))return{stiffness:z3.stiffness,damping:z3.damping,duration:e};{let f=Math.pow(l,2)*a;return{stiffness:f,damping:n*2*Math.sqrt(a*f),duration:e}}}var mx1=["duration","bounce"],dx1=["stiffness","damping","mass"];function FZ(e,t){return t.some(o=>e[o]!==void 0)}function ux1(e){let t={velocity:z3.velocity,stiffness:z3.stiffness,damping:z3.damping,mass:z3.mass,isResolvedFromDuration:!1,...e};if(!FZ(e,dx1)&&FZ(e,mx1))if(t.velocity=0,e.visualDuration){let o=e.visualDuration,a=2*Math.PI/(o*1.2),i=a*a,r=2*u0(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:z3.mass,stiffness:i,damping:r}}else{let o=fx1({...e,velocity:0});t={...t,...o,mass:z3.mass},t.isResolvedFromDuration=!0}return t}function on(e=z3.visualDuration,t=z3.bounce){let o=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:a,restDelta:i}=o,r=o.keyframes[0],n=o.keyframes[o.keyframes.length-1],c={done:!1,value:r},{stiffness:l,damping:f,mass:m,duration:d,velocity:u,isResolvedFromDuration:p}=ux1({...o,velocity:-T0(o.velocity||0)}),b=u||0,g=f/(2*Math.sqrt(l*m)),x=n-r,y=T0(Math.sqrt(l/m)),v=Math.abs(x)<5;a||(a=v?z3.restSpeed.granular:z3.restSpeed.default),i||(i=v?z3.restDelta.granular:z3.restDelta.default);let k,w,T,O,C,z;if(g<1)T=$R(y,g),O=(b+g*y*x)/T,k=S=>{let N=Math.exp(-g*y*S);return n-N*(O*Math.sin(T*S)+x*Math.cos(T*S))},C=g*y*O+x*T,z=g*y*x-O*T,w=S=>Math.exp(-g*y*S)*(C*Math.sin(T*S)+z*Math.cos(T*S));else if(g===1){k=N=>n-Math.exp(-y*N)*(x+(b+y*x)*N);let S=b+y*x;w=N=>Math.exp(-y*N)*(y*S*N-b)}else{let S=y*Math.sqrt(g*g-1);k=A=>{let _=Math.exp(-g*y*A),E=Math.min(S*A,300);return n-_*((b+g*y*x)*Math.sinh(E)+S*x*Math.cosh(E))/S};let N=(b+g*y*x)/S,P=g*y*N-x*S,R=g*y*x-N*S;w=A=>{let _=Math.exp(-g*y*A),E=Math.min(S*A,300);return _*(P*Math.sinh(E)+R*Math.cosh(E))}}let M={calculatedDuration:p&&d||null,velocity:S=>V3(w(S)),next:S=>{if(!p&&g<1){let P=Math.exp(-g*y*S),R=Math.sin(T*S),A=Math.cos(T*S),_=n-P*(O*R+x*A),E=V3(P*(C*R+z*A));return c.done=Math.abs(E)<=a&&Math.abs(n-_)<=i,c.value=c.done?n:_,c}let N=k(S);if(p)c.done=S>=d;else{let P=V3(w(S));c.done=Math.abs(P)<=a&&Math.abs(n-N)<=i}return c.value=c.done?n:N,c},toString:()=>{let S=Math.min(tn(M),2e4),N=Sg(P=>M.next(S*P).value,S,30);return S+"ms "+N},toTransition:()=>{}};return M}on.applyToOptions=e=>{let t=jZ(e,100,on);return e.ease=t.ease,e.duration=V3(t.duration),e.type="keyframes",e};s();var px1=5;function Tg(e,t,o){let a=Math.max(t-px1,0);return Hs(o-e(a),t-a)}function af({keyframes:e,velocity:t=0,power:o=.8,timeConstant:a=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:n,min:c,max:l,restDelta:f=.5,restSpeed:m}){let d=e[0],u={done:!1,value:d},p=z=>c!==void 0&&z<c||l!==void 0&&z>l,b=z=>c===void 0?l:l===void 0||Math.abs(c-z)<Math.abs(l-z)?c:l,g=o*t,x=d+g,y=n===void 0?x:n(x);y!==x&&(g=y-d);let v=z=>-g*Math.exp(-z/a),k=z=>y+v(z),w=z=>{let M=v(z),S=k(z);u.done=Math.abs(M)<=f,u.value=u.done?y:S},T,O,C=z=>{p(u.value)&&(T=z,O=on({keyframes:[u.value,b(u.value)],velocity:Tg(k,z,u.value),damping:i,stiffness:r,restDelta:f,restSpeed:m}))};return C(0),{calculatedDuration:null,next:z=>{let M=!1;return!O&&T===void 0&&(M=!0,w(z),C(z)),T!==void 0&&z>=T?O.next(z-T):(!M&&w(z),u)}}}s();s();function hx1(e,t,o){let a=[],i=o||x4.mix||Mg,r=e.length-1;for(let n=0;n<r;n++){let c=i(e[n],e[n+1]);if(t){let l=Array.isArray(t)?t[n]||k3:t;c=Ie(l,c)}a.push(c)}return a}function BZ(e,t,{clamp:o=!0,ease:a,mixer:i}={}){let r=e.length;if(te(r===t.length,"Both input and output ranges must be the same length","range-length"),r===1)return()=>t[0];if(r===2&&t[0]===t[1])return()=>t[1];let n=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());let c=hx1(t,a,i),l=c.length,f=m=>{if(n&&m<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(m<e[d+1]);d++);let u=q6(e[d],e[d+1],m);return c[d](u)};return o?m=>f(u0(e[0],e[r-1],m)):f}s();s();function VZ(e,t){let o=e[e.length-1];for(let a=1;a<=t;a++){let i=q6(0,t,a);e.push(g2(o,1,i))}}function UZ(e){let t=[0];return VZ(t,e.length-1),t}s();function HZ(e,t){return e.map(o=>o*t)}function gx1(e,t){return e.map(()=>t||Js).splice(0,e.length-1)}function Ho({duration:e=300,keyframes:t,times:o,ease:a="easeInOut"}){let i=MR(a)?a.map(gg):gg(a),r={done:!1,value:t[0]},n=HZ(o&&o.length===t.length?o:UZ(t),e),c=BZ(n,t,{ease:Array.isArray(i)?i:gx1(t,i)});return{calculatedDuration:e,next:l=>(r.value=c(l),r.done=l>=e,r)}}s();var vx1=e=>e!==null;function Gt(e,{repeat:t,repeatType:o="loop"},a,i=1){let r=e.filter(vx1),c=i<0||t&&o!=="loop"&&t%2===1?0:r.length-1;return!c||a===void 0?r[c]:a}s();var bx1={decay:af,inertia:af,tween:Ho,keyframes:Ho,spring:on};function Rg(e){typeof e.type=="string"&&(e.type=bx1[e.type])}s();var Kt=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,o){return this.finished.then(t,o)}};var yx1=e=>e/100,d8=class extends Kt{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:o}=this.options;o&&o.updatedAt!==x3.now()&&this.tick(x3.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},W6.mainThread++,this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){let{options:t}=this;Rg(t);let{type:o=Ho,repeat:a=0,repeatDelay:i=0,repeatType:r,velocity:n=0}=t,{keyframes:c}=t,l=o||Ho;l!==Ho&&typeof c[0]!="number"&&(this.mixKeyframes=Ie(yx1,Mg(c[0],c[1])),c=[0,100]);let f=l({...t,keyframes:c});r==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...c].reverse(),velocity:-n})),f.calculatedDuration===null&&(f.calculatedDuration=tn(f));let{calculatedDuration:m}=f;this.calculatedDuration=m,this.resolvedDuration=m+i,this.totalDuration=this.resolvedDuration*(a+1)-i,this.generator=f}updateTime(t){let o=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=o}tick(t,o=!1){let{generator:a,totalDuration:i,mixKeyframes:r,mirroredGenerator:n,resolvedDuration:c,calculatedDuration:l}=this;if(this.startTime===null)return a.next(0);let{delay:f=0,keyframes:m,repeat:d,repeatType:u,repeatDelay:p,type:b,onUpdate:g,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),o?this.currentTime=t:this.updateTime(t);let y=this.currentTime-f*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?y<0:y>i;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let k=this.currentTime,w=a;if(d){let z=Math.min(this.currentTime,i)/c,M=Math.floor(z),S=z%1;!S&&z>=1&&(S=1),S===1&&M--,M=Math.min(M,d+1),M%2&&(u==="reverse"?(S=1-S,p&&(S-=p/c)):u==="mirror"&&(w=n)),k=u0(0,1,S)*c}let T;v?(this.delayState.value=m[0],T=this.delayState):T=w.next(k),r&&!v&&(T.value=r(T.value));let{done:O}=T;!v&&l!==null&&(O=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&O);return C&&b!==af&&(T.value=Gt(m,this.options,x,this.speed)),g&&g(T.value),C&&this.finish(),T}then(t,o){return this.finished.then(t,o)}get duration(){return T0(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+T0(t)}get time(){return T0(this.currentTime)}set time(t){t=V3(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let o=this.generator.next(t).value;return Tg(a=>this.generator.next(a).value,t,o)}get speed(){return this.playbackSpeed}set speed(t){let o=this.playbackSpeed!==t;o&&this.driver&&this.updateTime(x3.now()),this.playbackSpeed=t,o&&this.driver&&(this.time=T0(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=LZ,startTime:o}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();let a=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=a):this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime||(this.startTime=o??a),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(x3.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,W6.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}};s();s();function GZ(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}s();s();var Go=e=>e*180/Math.PI,IR=e=>{let t=Go(Math.atan2(e[1],e[0]));return DR(t)},kx1={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:IR,rotateZ:IR,skewX:e=>Go(Math.atan(e[1])),skewY:e=>Go(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},DR=e=>(e=e%360,e<0&&(e+=360),e),KZ=IR,qZ=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),WZ=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),xx1={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:qZ,scaleY:WZ,scale:e=>(qZ(e)+WZ(e))/2,rotateX:e=>DR(Go(Math.atan2(e[6],e[5]))),rotateY:e=>DR(Go(Math.atan2(-e[2],e[0]))),rotateZ:KZ,rotate:KZ,skewX:e=>Go(Math.atan(e[4])),skewY:e=>Go(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Eg(e){return e.includes("scale")?1:0}function _g(e,t){if(!e||e==="none")return Eg(t);let o=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),a,i;if(o)a=xx1,i=o;else{let c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);a=kx1,i=c}if(!i)return Eg(t);let r=a[t],n=i[1].split(",").map(zx1);return typeof r=="function"?r(n):n[r]}var ZZ=(e,t)=>{let{transform:o="none"}=getComputedStyle(e);return _g(o,t)};function zx1(e){return parseFloat(e.trim())}s();var X6=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],oe=new Set(X6);var NR=e=>e===Z6||e===I1,wx1=new Set(["x","y","z"]),Mx1=X6.filter(e=>!wx1.has(e));function JZ(e){let t=[];return Mx1.forEach(o=>{let a=e.getValue(o);a!==void 0&&(t.push([o,a.get()]),a.set(o.startsWith("scale")?1:0))}),t}var u8={width:({x:e},{paddingLeft:t="0",paddingRight:o="0",boxSizing:a})=>{let i=e.max-e.min;return a==="border-box"?i:i-parseFloat(t)-parseFloat(o)},height:({y:e},{paddingTop:t="0",paddingBottom:o="0",boxSizing:a})=>{let i=e.max-e.min;return a==="border-box"?i:i-parseFloat(t)-parseFloat(o)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>_g(t,"x"),y:(e,{transform:t})=>_g(t,"y")};u8.translateX=u8.x;u8.translateY=u8.y;var Ko=new Set,LR=!1,jR=!1,FR=!1;function XZ(){if(jR){let e=Array.from(Ko).filter(a=>a.needsMeasurement),t=new Set(e.map(a=>a.element)),o=new Map;t.forEach(a=>{let i=JZ(a);i.length&&(o.set(a,i),a.render())}),e.forEach(a=>a.measureInitialState()),t.forEach(a=>{a.render();let i=o.get(a);i&&i.forEach(([r,n])=>{a.getValue(r)?.set(n)})}),e.forEach(a=>a.measureEndState()),e.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}jR=!1,LR=!1,Ko.forEach(e=>e.complete(FR)),Ko.clear()}function YZ(){Ko.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(jR=!0)})}function QZ(){FR=!0,YZ(),XZ(),FR=!1}var qt=class{constructor(t,o,a,i,r,n=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=o,this.name=a,this.motionValue=i,this.element=r,this.isAsync=n}scheduleResolve(){this.state="scheduled",this.isAsync?(Ko.add(this),LR||(LR=!0,l2.read(YZ),l2.resolveKeyframes(XZ))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:o,element:a,motionValue:i}=this;if(t[0]===null){let r=i?.get(),n=t[t.length-1];if(r!==void 0)t[0]=r;else if(a&&o){let c=a.readValue(o,n);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=n),i&&r===void 0&&i.set(t[0])}GZ(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ko.delete(this)}cancel(){this.state==="scheduled"&&(Ko.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};s();s();s();var eJ=e=>e.startsWith("--");function Cg(e,t,o){eJ(t)?e.style.setProperty(t,o):e.style[t]=o}s();s();s();s();var tJ={};function Pg(e,t){let o=Us(e);return()=>tJ[t]??o()}var oJ=Pg(()=>window.ScrollTimeline!==void 0,"scrollTimeline");s();s();s();var Ag=Pg(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");s();var qo=([e,t,o,a])=>`cubic-bezier(${e}, ${t}, ${o}, ${a})`;s();var BR={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:qo([0,.65,.55,1]),circOut:qo([.55,0,1,.45]),backIn:qo([.31,.01,.66,-.59]),backOut:qo([.33,1.53,.69,.99])};function VR(e,t){if(e)return typeof e=="function"?Ag()?Sg(e,t):"ease-out":Xs(e)?qo(e):Array.isArray(e)?e.map(o=>VR(o,t)||BR.easeOut):BR[e]}function aJ(e,t,o,{delay:a=0,duration:i=300,repeat:r=0,repeatType:n="loop",ease:c="easeOut",times:l}={},f=void 0){let m={[t]:o};l&&(m.offset=l);let d=VR(c,i);Array.isArray(d)&&(m.easing=d),b5.value&&W6.waapi++;let u={delay:a,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:n==="reverse"?"alternate":"normal"};f&&(u.pseudoElement=f);let p=e.animate(m,u);return b5.value&&p.finished.finally(()=>{W6.waapi--}),p}s();s();function Og(e){return typeof e=="function"&&"applyToOptions"in e}function iJ({type:e,...t}){return Og(e)&&Ag()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var an=class extends Kt{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:o,name:a,keyframes:i,pseudoElement:r,allowFlatten:n=!1,finalKeyframe:c,onComplete:l}=t;this.isPseudoElement=!!r,this.allowFlatten=n,this.options=t,te(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let f=iJ(t);this.animation=aJ(o,a,i,f,r),f.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let m=Gt(i,this.options,c,this.speed);this.updateMotionValue&&this.updateMotionValue(m),Cg(o,a,m),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return T0(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+T0(t)}get time(){return T0(Number(this.animation.currentTime)||0)}set time(t){let o=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=V3(t),o&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:o,rangeEnd:a,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&oJ()?(this.animation.timeline=t,o&&(this.animation.rangeStart=o),a&&(this.animation.rangeEnd=a),k3):i(this)}};s();var rJ={anticipate:Ks,backInOut:Gs,circInOut:Zs};function Sx1(e){return e in rJ}function nJ(e){typeof e.ease=="string"&&Sx1(e.ease)&&(e.ease=rJ[e.ease])}var UR=10,$g=class extends an{constructor(t){nJ(t),Rg(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:o,onUpdate:a,onComplete:i,element:r,...n}=this.options;if(!o)return;if(t!==void 0){o.set(t);return}let c=new d8({...n,autoplay:!1}),l=Math.max(UR,x3.now()-this.startTime),f=u0(0,UR,l-UR),m=c.sample(l).value,{name:d}=this.options;r&&d&&Cg(r,d,m),o.setWithVelocity(c.sample(Math.max(0,l-f)).value,m,f),c.stop()}};s();s();var HR=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(p0.test(e)||e==="0")&&!e.startsWith("url("));function Tx1(e){let t=e[0];if(e.length===1)return!0;for(let o=0;o<e.length;o++)if(e[o]!==t)return!0}function cJ(e,t,o,a){let i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;let r=e[e.length-1],n=HR(i,t),c=HR(r,t);return s8(n===c,`You are trying to animate ${t} from "${i}" to "${r}". "${n?r:i}" is not an animatable value.`,"value-not-animatable"),!n||!c?!1:Tx1(e)||(o==="spring"||Og(o))&&a}s();function rf(e){e.duration=0,e.type="keyframes"}s();s();var Ig=new Set(["opacity","clipPath","filter","transform"]);s();var Rx1=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function lJ(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&Rx1.test(e[t]))return!0;return!1}var Ex1=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),_x1=Us(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function sJ(e){let{motionValue:t,name:o,repeatDelay:a,repeatType:i,damping:r,type:n,keyframes:c}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:f,transformTemplate:m}=t.owner.getProps();return _x1()&&o&&(Ig.has(o)||Ex1.has(o)&&lJ(c))&&(o!=="transform"||!m)&&!f&&!a&&i!=="mirror"&&r!==0&&n!=="inertia"}var Cx1=40,Dg=class extends Kt{constructor({autoplay:t=!0,delay:o=0,type:a="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:n="loop",keyframes:c,name:l,motionValue:f,element:m,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=x3.now();let u={autoplay:t,delay:o,type:a,repeat:i,repeatDelay:r,repeatType:n,name:l,motionValue:f,element:m,...d},p=m?.KeyframeResolver||qt;this.keyframeResolver=new p(c,(b,g,x)=>this.onKeyframesResolved(b,g,u,!x),l,f,m),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,o,a,i){this.keyframeResolver=void 0;let{name:r,type:n,velocity:c,delay:l,isHandoff:f,onUpdate:m}=a;this.resolvedAt=x3.now();let d=!0;cJ(t,r,n,c)||(d=!1,(x4.instantAnimations||!l)&&m?.(Gt(t,a,o)),t[0]=t[t.length-1],rf(a),a.repeat=0);let p={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Cx1?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:o,...a,keyframes:t},b=d&&!f&&sJ(p),g=p.motionValue?.owner?.current,x;if(b)try{x=new $g({...p,element:g})}catch{x=new d8(p)}else x=new d8(p);x.finished.then(()=>{this.notifyFinished()}).catch(k3),this.pendingTimeline&&(this.stopTimeline=x.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=x}get finished(){return this._animation?this.animation.finished:this._finished}then(t,o){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),QZ()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};s();function Ng(e,t,o,a=0,i=1){let r=Array.from(e).sort((f,m)=>f.sortNodePosition(m)).indexOf(t),n=e.size,c=(n-1)*a;return typeof o=="function"?o(r,n):i===1?r*a:c-r*a}s();var Px1=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ax1(e){let t=Px1.exec(e);if(!t)return[,];let[,o,a,i]=t;return[`--${o??a}`,i]}var Ox1=4;function GR(e,t,o=1){te(o<=Ox1,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[a,i]=Ax1(e);if(!a)return;let r=window.getComputedStyle(t).getPropertyValue(a);if(r){let n=r.trim();return Fs(n)?parseFloat(n):n}return Xr(i)?GR(i,t,o+1):i}s();var $x1={type:"spring",stiffness:500,damping:25,restSpeed:10},Ix1=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Dx1={type:"keyframes",duration:.8},Nx1={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},fJ=(e,{keyframes:t})=>t.length>2?Dx1:oe.has(e)?e.startsWith("scale")?Ix1(t[1]):$x1:Nx1;s();s();function Lg(e,t){if(e?.inherit&&t){let{inherit:o,...a}=e;return{...t,...a}}return e}function rn(e,t){let o=e?.[t]??e?.default??e;return o!==e?Lg(o,e):o}s();var Lx1=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function mJ(e){for(let t in e)if(!Lx1.has(t))return!0;return!1}s();var Wo=(e,t,o,a={},i,r)=>n=>{let c=rn(a,e)||{},l=c.delay||a.delay||0,{elapsed:f=0}=a;f=f-V3(l);let m={keyframes:Array.isArray(o)?o:[null,o],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-f,onUpdate:u=>{t.set(u),c.onUpdate&&c.onUpdate(u)},onComplete:()=>{n(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:r?void 0:i};mJ(c)||Object.assign(m,fJ(e,m)),m.duration&&(m.duration=V3(m.duration)),m.repeatDelay&&(m.repeatDelay=V3(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let d=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(rf(m),m.delay===0&&(d=!0)),(x4.instantAnimations||x4.skipAnimations||i?.shouldSkipAnimations)&&(d=!0,rf(m),m.delay=0),m.allowFlatten=!c.type&&!c.ease,d&&!r&&t.get()!==void 0){let u=Gt(m.keyframes,c);if(u!==void 0){l2.update(()=>{m.onUpdate(u),m.onComplete()});return}}return c.isSync?new d8(m):new Dg(m)};s();s();s();function dJ(e){let t=[{},{}];return e?.values.forEach((o,a)=>{t[0][a]=o.get(),t[1][a]=o.getVelocity()}),t}function Zo(e,t,o,a){if(typeof t=="function"){let[i,r]=dJ(a);t=t(o!==void 0?o:e.custom,i,r)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[i,r]=dJ(a);t=t(o!==void 0?o:e.custom,i,r)}return t}function y5(e,t,o){let a=e.getProps();return Zo(a,t,o!==void 0?o:a.custom,e)}s();s();var jg=new Set(["width","height","top","left","right","bottom",...X6]);s();s();var uJ=30,jx1=e=>!isNaN(parseFloat(e)),pJ={current:void 0},KR=class{constructor(t,o={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{let i=x3.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=o.owner}setCurrent(t){this.current=t,this.updatedAt=x3.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=jx1(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,o){this.events[t]||(this.events[t]=new f8);let a=this.events[t].add(o);return t==="change"?()=>{a(),l2.read(()=>{this.events.change.getSize()||this.stop()})}:a}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,o){this.passiveEffect=t,this.stopPassiveEffect=o}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,o,a){this.set(o),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-a}jump(t,o=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,o&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return pJ.current&&pJ.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=x3.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>uJ)return 0;let o=Math.min(this.updatedAt-this.prevUpdatedAt,uJ);return Hs(parseFloat(this.current)-parseFloat(this.prevFrameValue),o)}start(t){return this.stop(),new Promise(o=>{this.hasAnimated=!0,this.animation=t(o),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Ne(e,t){return new KR(e,t)}s();var nf=e=>Array.isArray(e);function Fx1(e,t,o){e.hasValue(t)?e.getValue(t).set(o):e.addValue(t,Ne(o))}function Bx1(e){return nf(e)?e[e.length-1]||0:e}function hJ(e,t){let o=y5(e,t),{transitionEnd:a={},transition:i={},...r}=o||{};r={...r,...a};for(let n in r){let c=Bx1(r[n]);Fx1(e,n,c)}}s();s();s();var j2=e=>!!(e&&e.getVelocity);function gJ(e){return!!(j2(e)&&e.add)}function nn(e,t){let o=e.getValue("willChange");if(gJ(o))return o.add(t);if(!o&&x4.WillChange){let a=new x4.WillChange("auto");e.addValue("willChange",a),a.add(t)}}s();s();s();function cn(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}var vJ="framerAppearId",cf="data-"+cn(vJ);function Fg(e){return e.props[cf]}function Vx1({protectedKeys:e,needsAnimating:t},o){let a=e.hasOwnProperty(o)&&t[o]!==!0;return t[o]=!1,a}function Bg(e,t,{delay:o=0,transitionOverride:a,type:i}={}){let{transition:r,transitionEnd:n,...c}=t,l=e.getDefaultTransition();r=r?Lg(r,l):l;let f=r?.reduceMotion;a&&(r=a);let m=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let u in c){let p=e.getValue(u,e.latestValues[u]??null),b=c[u];if(b===void 0||d&&Vx1(d,u))continue;let g={delay:o,...rn(r||{},u)},x=p.get();if(x!==void 0&&!p.isAnimating()&&!Array.isArray(b)&&b===x&&!g.velocity){l2.update(()=>p.set(b));continue}let y=!1;if(window.MotionHandoffAnimation){let w=Fg(e);if(w){let T=window.MotionHandoffAnimation(w,u,l2);T!==null&&(g.startTime=T,y=!0)}}nn(e,u);let v=f??e.shouldReduceMotion;p.start(Wo(u,p,b,v&&jg.has(u)?{type:!1}:g,e,y));let k=p.animation;k&&m.push(k)}if(n){let u=()=>l2.update(()=>{n&&hJ(e,n)});m.length?Promise.all(m).then(u):u()}return m}s();function Vg(e,t,o={}){let a=y5(e,t,o.type==="exit"?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=a||{};o.transitionOverride&&(i=o.transitionOverride);let r=a?()=>Promise.all(Bg(e,a,o)):()=>Promise.resolve(),n=e.variantChildren&&e.variantChildren.size?(l=0)=>{let{delayChildren:f=0,staggerChildren:m,staggerDirection:d}=i;return Ux1(e,t,l,f,m,d,o)}:()=>Promise.resolve(),{when:c}=i;if(c){let[l,f]=c==="beforeChildren"?[r,n]:[n,r];return l().then(()=>f())}else return Promise.all([r(),n(o.delay)])}function Ux1(e,t,o=0,a=0,i=0,r=1,n){let c=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),c.push(Vg(l,t,{...n,delay:o+(typeof a=="function"?0:a)+Ng(e.variantChildren,l,a,i,r)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(c)}function bJ(e,t,o={}){e.notify("AnimationStart",t);let a;if(Array.isArray(t)){let i=t.map(r=>Vg(e,r,o));a=Promise.all(i)}else if(typeof t=="string")a=Vg(e,t,o);else{let i=typeof t=="function"?y5(e,t,o.custom):t;a=Promise.all(Bg(e,i,o))}return a.then(()=>{e.notify("AnimationComplete",t)})}s();s();s();var yJ={test:e=>e==="auto",parse:e=>e};s();var Ug=e=>t=>t.test(e);var qR=[Z6,I1,t4,De,ER,RR,yJ],WR=e=>qR.find(Ug(e));s();function kJ(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Vs(e):!0}s();s();s();var Hx1=new Set(["brightness","contrast","saturate","opacity"]);function Gx1(e){let[t,o]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[a]=o.match(Yr)||[];if(!a)return e;let i=o.replace(a,""),r=Hx1.has(t)?1:0;return a!==o&&(r*=100),t+"("+r+i+")"}var Kx1=/\b([a-z-]*)\(.*?\)/gu,lf={...p0,getAnimatableNone:e=>{let t=e.match(Kx1);return t?t.map(Gx1).join(" "):e}};s();var sf={...p0,getAnimatableNone:e=>{let t=p0.parse(e);return p0.createTransformer(e)(t.map(a=>typeof a=="number"?0:typeof a=="object"?{...a,alpha:1}:a))}};s();s();s();var ZR={...Z6,transform:Math.round};s();var xJ={rotate:De,rotateX:De,rotateY:De,rotateZ:De,scale:ef,scaleX:ef,scaleY:ef,scaleZ:ef,skew:De,skewX:De,skewY:De,distance:I1,translateX:I1,translateY:I1,translateZ:I1,x:I1,y:I1,z:I1,perspective:I1,transformPerspective:I1,opacity:m8,originX:xg,originY:xg,originZ:I1};var ln={borderWidth:I1,borderTopWidth:I1,borderRightWidth:I1,borderBottomWidth:I1,borderLeftWidth:I1,borderRadius:I1,borderTopLeftRadius:I1,borderTopRightRadius:I1,borderBottomRightRadius:I1,borderBottomLeftRadius:I1,width:I1,maxWidth:I1,height:I1,maxHeight:I1,top:I1,right:I1,bottom:I1,left:I1,inset:I1,insetBlock:I1,insetBlockStart:I1,insetBlockEnd:I1,insetInline:I1,insetInlineStart:I1,insetInlineEnd:I1,padding:I1,paddingTop:I1,paddingRight:I1,paddingBottom:I1,paddingLeft:I1,paddingBlock:I1,paddingBlockStart:I1,paddingBlockEnd:I1,paddingInline:I1,paddingInlineStart:I1,paddingInlineEnd:I1,margin:I1,marginTop:I1,marginRight:I1,marginBottom:I1,marginLeft:I1,marginBlock:I1,marginBlockStart:I1,marginBlockEnd:I1,marginInline:I1,marginInlineStart:I1,marginInlineEnd:I1,fontSize:I1,backgroundPositionX:I1,backgroundPositionY:I1,...xJ,zIndex:ZR,fillOpacity:m8,strokeOpacity:m8,numOctaves:ZR};var qx1={...ln,color:d3,backgroundColor:d3,outlineColor:d3,fill:d3,stroke:d3,borderColor:d3,borderTopColor:d3,borderRightColor:d3,borderBottomColor:d3,borderLeftColor:d3,filter:lf,WebkitFilter:lf,mask:sf,WebkitMask:sf},Hg=e=>qx1[e];var Wx1=new Set([lf,sf]);function Gg(e,t){let o=Hg(e);return Wx1.has(o)||(o=p0),o.getAnimatableNone?o.getAnimatableNone(t):void 0}var Zx1=new Set(["auto","none","0"]);function zJ(e,t,o){let a=0,i;for(;a<e.length&&!i;){let r=e[a];typeof r=="string"&&!Zx1.has(r)&&Ht(r).values.length&&(i=e[a]),a++}if(i&&o)for(let r of t)e[r]=Gg(o,i)}var Kg=class extends qt{constructor(t,o,a,i,r){super(t,o,a,i,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:o,name:a}=this;if(!o||!o.current)return;super.readKeyframes();for(let m=0;m<t.length;m++){let d=t[m];if(typeof d=="string"&&(d=d.trim(),Xr(d))){let u=GR(d,o.current);u!==void 0&&(t[m]=u),m===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!jg.has(a)||t.length!==2)return;let[i,r]=t,n=WR(i),c=WR(r),l=SR(i),f=SR(r);if(l!==f&&u8[a]){this.needsMeasurement=!0;return}if(n!==c)if(NR(n)&&NR(c))for(let m=0;m<t.length;m++){let d=t[m];typeof d=="string"&&(t[m]=parseFloat(d))}else u8[a]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:o}=this,a=[];for(let i=0;i<t.length;i++)(t[i]===null||kJ(t[i]))&&a.push(i);a.length&&zJ(t,a,o)}measureInitialState(){let{element:t,unresolvedKeyframes:o,name:a}=this;if(!t||!t.current)return;a==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=u8[a](t.measureViewportBox(),window.getComputedStyle(t.current)),o[0]=this.measuredOrigin;let i=o[o.length-1];i!==void 0&&t.getValue(a,i).jump(i,!1)}measureEndState(){let{element:t,name:o,unresolvedKeyframes:a}=this;if(!t||!t.current)return;let i=t.getValue(o);i&&i.jump(this.measuredOrigin,!1);let r=a.length-1,n=a[r];a[r]=u8[o](t.measureViewportBox(),window.getComputedStyle(t.current)),n!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=n),this.removedTransforms?.length&&this.removedTransforms.forEach(([c,l])=>{t.getValue(c).set(l)}),this.resolveNoneKeyframes()}};s();function qg(e,t,o){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let a=document;t&&(a=t.current);let i=o?.[e]??a.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(a=>a!=null)}s();var Wg=(e,t)=>t&&typeof e=="number"?t.transform(e):e;s();function Jo(e){return Bs(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}s();var{schedule:Xo,cancel:Jx1}=vg(queueMicrotask,!1);s();var ae={x:!1,y:!1};function Zg(){return ae.x||ae.y}s();function JR(e){return e==="x"||e==="y"?ae[e]?null:(ae[e]=!0,()=>{ae[e]=!1}):ae.x||ae.y?null:(ae.x=ae.y=!0,()=>{ae.x=ae.y=!1})}s();s();function Jg(e,t){let o=qg(e),a=new AbortController,i={passive:!0,...t,signal:a.signal};return[o,i,()=>a.abort()]}function Xx1(e){return!(e.pointerType==="touch"||Zg())}function XR(e,t,o={}){let[a,i,r]=Jg(e,o);return a.forEach(n=>{let c=!1,l=!1,f,m=()=>{n.removeEventListener("pointerleave",b)},d=x=>{f&&(f(x),f=void 0),m()},u=x=>{c=!1,window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",u),l&&(l=!1,d(x))},p=()=>{c=!0,window.addEventListener("pointerup",u,i),window.addEventListener("pointercancel",u,i)},b=x=>{if(x.pointerType!=="touch"){if(c){l=!0;return}d(x)}},g=x=>{if(!Xx1(x))return;l=!1;let y=t(n,x);typeof y=="function"&&(f=y,n.addEventListener("pointerleave",b,i))};n.addEventListener("pointerenter",g,i),n.addEventListener("pointerdown",p,i)}),r}s();s();var YR=(e,t)=>t?e===t?!0:YR(e,t.parentElement):!1;s();var Yo=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;s();var Yx1=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function QR(e){return Yx1.has(e.tagName)||e.isContentEditable===!0}var Qx1=new Set(["INPUT","SELECT","TEXTAREA"]);function eE(e){return Qx1.has(e.tagName)||e.isContentEditable===!0}s();s();var sn=new WeakSet;function wJ(e){return t=>{t.key==="Enter"&&e(t)}}function tE(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var MJ=(e,t)=>{let o=e.currentTarget;if(!o)return;let a=wJ(()=>{if(sn.has(o))return;tE(o,"down");let i=wJ(()=>{tE(o,"up")}),r=()=>tE(o,"cancel");o.addEventListener("keyup",i,t),o.addEventListener("blur",r,t)});o.addEventListener("keydown",a,t),o.addEventListener("blur",()=>o.removeEventListener("keydown",a),t)};function SJ(e){return Yo(e)&&!Zg()}var TJ=new WeakSet;function oE(e,t,o={}){let[a,i,r]=Jg(e,o),n=c=>{let l=c.currentTarget;if(!SJ(c)||TJ.has(c))return;sn.add(l),o.stopPropagation&&TJ.add(c);let f=t(l,c),m=(p,b)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",u),sn.has(l)&&sn.delete(l),SJ(p)&&typeof f=="function"&&f(p,{success:b})},d=p=>{m(p,l===window||l===document||o.useGlobalTarget||YR(l,p.target))},u=p=>{m(p,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",u,i)};return a.forEach(c=>{(o.useGlobalTarget?window:c).addEventListener("pointerdown",n,i),Jo(c)&&(c.addEventListener("focus",f=>MJ(f,i)),!QR(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),r}s();s();s();function fn(e){return Bs(e)&&"ownerSVGElement"in e}var Xg=new WeakMap,Yg,RJ=(e,t,o)=>(a,i)=>i&&i[0]?i[0][e+"Size"]:fn(a)&&"getBBox"in a?a.getBBox()[t]:a[o],ez1=RJ("inline","width","offsetWidth"),tz1=RJ("block","height","offsetHeight");function oz1({target:e,borderBoxSize:t}){Xg.get(e)?.forEach(o=>{o(e,{get width(){return ez1(e,t)},get height(){return tz1(e,t)}})})}function az1(e){e.forEach(oz1)}function iz1(){typeof ResizeObserver>"u"||(Yg=new ResizeObserver(az1))}function EJ(e,t){Yg||iz1();let o=qg(e);return o.forEach(a=>{let i=Xg.get(a);i||(i=new Set,Xg.set(a,i)),i.add(t),Yg?.observe(a)}),()=>{o.forEach(a=>{let i=Xg.get(a);i?.delete(t),i?.size||Yg?.unobserve(a)})}}s();var Qg=new Set,mn;function rz1(){mn=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Qg.forEach(t=>t(e))},window.addEventListener("resize",mn)}function _J(e){return Qg.add(e),mn||rz1(),()=>{Qg.delete(e),!Qg.size&&typeof mn=="function"&&(window.removeEventListener("resize",mn),mn=void 0)}}function ev(e,t){return typeof e=="function"?_J(e):EJ(e,t)}s();function CJ(e){return fn(e)&&e.tagName==="svg"}s();var nz1=[...qR,d3,p0],PJ=e=>nz1.find(Ug(e));s();s();s();var aE=()=>({translate:0,scale:1,origin:0,originPoint:0}),Wt=()=>({x:aE(),y:aE()}),iE=()=>({min:0,max:0}),u3=()=>({x:iE(),y:iE()});s();var AJ=new WeakMap;s();s();function p8(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}s();function Y6(e){return typeof e=="string"||Array.isArray(e)}s();var tv=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ff=["initial",...tv];function Zt(e){return p8(e.animate)||ff.some(t=>Y6(e[t]))}function mf(e){return!!(Zt(e)||e.variants)}s();function OJ(e,t,o){for(let a in t){let i=t[a],r=o[a];if(j2(i))e.addValue(a,i);else if(j2(r))e.addValue(a,Ne(i,{owner:e}));else if(r!==i)if(e.hasValue(a)){let n=e.getValue(a);n.liveStyle===!0?n.jump(i):n.hasAnimated||n.set(i)}else{let n=e.getStaticValue(a);e.addValue(a,Ne(n!==void 0?n:i,{owner:e}))}}for(let a in o)t[a]===void 0&&e.removeValue(a);return t}s();s();var df={current:null},ov={current:!1};var cz1=typeof window<"u";function $J(){if(ov.current=!0,!!cz1)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>df.current=e.matches;e.addEventListener("change",t),t()}else df.current=!1}var IJ=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],av={};function pf(e){av=e}function rE(){return av}var uf=class{scrapeMotionValuesFromProps(t,o,a){return{}}constructor({parent:t,props:o,presenceContext:a,reducedMotionConfig:i,skipAnimations:r,blockInitialAnimation:n,visualState:c},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=qt,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let p=x3.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,l2.render(this.render,!1,!0))};let{latestValues:f,renderState:m}=c;this.latestValues=f,this.baseTarget={...f},this.initialValues=o.initial?{...f}:{},this.renderState=m,this.parent=t,this.props=o,this.presenceContext=a,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=r,this.options=l,this.blockInitialAnimation=!!n,this.isControllingVariants=Zt(o),this.isVariantNode=mf(o),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:d,...u}=this.scrapeMotionValuesFromProps(o,{},this);for(let p in u){let b=u[p];f[p]!==void 0&&j2(b)&&b.set(f[p])}}mount(t){if(this.hasBeenMounted)for(let o in this.initialValues)this.values.get(o)?.jump(this.initialValues[o]),this.latestValues[o]=this.initialValues[o];this.current=t,AJ.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((o,a)=>this.bindToMotionValue(a,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(ov.current||$J(),this.shouldReduceMotion=df.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),G4(this.notifyUpdate),G4(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let t in this.events)this.events[t].clear();for(let t in this.features){let o=this.features[t];o&&(o.unmount(),o.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,o){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),o.accelerate&&Ig.has(t)&&this.current instanceof HTMLElement){let{factory:n,keyframes:c,times:l,ease:f,duration:m}=o.accelerate,d=new an({element:this.current,name:t,keyframes:c,times:l,ease:f,duration:V3(m)}),u=n(d);this.valueSubscriptions.set(t,()=>{u(),d.cancel()});return}let a=oe.has(t);a&&this.onBindTransform&&this.onBindTransform();let i=o.on("change",n=>{this.latestValues[t]=n,this.props.onUpdate&&l2.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,t,o)),this.valueSubscriptions.set(t,()=>{i(),r&&r(),o.owner&&o.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in av){let o=av[t];if(!o)continue;let{isEnabled:a,Feature:i}=o;if(!this.features[t]&&i&&a(this.props)&&(this.features[t]=new i(this)),this.features[t]){let r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):u3()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,o){this.latestValues[t]=o}update(t,o){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=o;for(let a=0;a<IJ.length;a++){let i=IJ[a];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let r="on"+i,n=t[r];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=OJ(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let o=this.getClosestVariantNode();if(o)return o.variantChildren&&o.variantChildren.add(t),()=>o.variantChildren.delete(t)}addValue(t,o){let a=this.values.get(t);o!==a&&(a&&this.removeValue(t),this.bindToMotionValue(t,o),this.values.set(t,o),this.latestValues[t]=o.get())}removeValue(t){this.values.delete(t);let o=this.valueSubscriptions.get(t);o&&(o(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,o){if(this.props.values&&this.props.values[t])return this.props.values[t];let a=this.values.get(t);return a===void 0&&o!==void 0&&(a=Ne(o===null?void 0:o,{owner:this}),this.addValue(t,a)),a}readValue(t,o){let a=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return a!=null&&(typeof a=="string"&&(Fs(a)||Vs(a))?a=parseFloat(a):!PJ(a)&&p0.test(o)&&(a=Gg(t,o)),this.setBaseTarget(t,j2(a)?a.get():a)),j2(a)?a.get():a}setBaseTarget(t,o){this.baseTarget[t]=o}getBaseTarget(t){let{initial:o}=this.props,a;if(typeof o=="string"||typeof o=="object"){let r=Zo(this.props,o,this.presenceContext?.custom);r&&(a=r[t])}if(o&&a!==void 0)return a;let i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!j2(i)?i:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,o){return this.events[t]||(this.events[t]=new f8),this.events[t].add(o)}notify(t,...o){this.events[t]&&this.events[t].notify(...o)}scheduleRenderMicrotask(){Xo.render(this.render)}};var dn=class extends uf{constructor(){super(...arguments),this.KeyframeResolver=Kg}sortInstanceNodePosition(t,o){return t.compareDocumentPosition(o)&2?1:-1}getBaseTargetFromProps(t,o){let a=t.style;return a?a[o]:void 0}removeValueFromRenderState(t,{vars:o,style:a}){delete o[t],delete a[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;j2(t)&&(this.childSubscription=t.on("change",o=>{this.current&&(this.current.textContent=`${o}`)}))}};s();var h0=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};s();s();s();function hf({top:e,left:t,right:o,bottom:a}){return{x:{min:t,max:o},y:{min:e,max:a}}}function nE({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function cE(e,t){if(!t)return e;let o=t({x:e.left,y:e.top}),a=t({x:e.right,y:e.bottom});return{top:o.y,left:o.x,bottom:a.y,right:a.x}}s();s();function lE(e){return e===void 0||e===1}function iv({scale:e,scaleX:t,scaleY:o}){return!lE(e)||!lE(t)||!lE(o)}function h8(e){return iv(e)||sE(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function sE(e){return DJ(e.x)||DJ(e.y)}function DJ(e){return e&&e!=="0%"}function gf(e,t,o){let a=e-o,i=t*a;return o+i}function NJ(e,t,o,a,i){return i!==void 0&&(e=gf(e,i,a)),gf(e,o,a)+t}function fE(e,t=0,o=1,a,i){e.min=NJ(e.min,t,o,a,i),e.max=NJ(e.max,t,o,a,i)}function mE(e,{x:t,y:o}){fE(e.x,t.translate,t.scale,t.originPoint),fE(e.y,o.translate,o.scale,o.originPoint)}var LJ=.999999999999,jJ=1.0000000000001;function VJ(e,t,o,a=!1){let i=o.length;if(!i)return;t.x=t.y=1;let r,n;for(let c=0;c<i;c++){r=o[c],n=r.projectionDelta;let{visualElement:l}=r.options;l&&l.props.style&&l.props.style.display==="contents"||(a&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(ie(e.x,-r.scroll.offset.x),ie(e.y,-r.scroll.offset.y)),n&&(t.x*=n.x.scale,t.y*=n.y.scale,mE(e,n)),a&&h8(r.latestValues)&&vf(e,r.latestValues,r.layout?.layoutBox))}t.x<jJ&&t.x>LJ&&(t.x=1),t.y<jJ&&t.y>LJ&&(t.y=1)}function ie(e,t){e.min+=t,e.max+=t}function FJ(e,t,o,a,i=.5){let r=g2(e.min,e.max,i);fE(e,t,o,r,a)}function BJ(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function vf(e,t,o){let a=o??e;FJ(e.x,BJ(t.x,a.x),t.scaleX,t.scale,t.originX),FJ(e.y,BJ(t.y,a.y),t.scaleY,t.scale,t.originY)}function rv(e,t){return hf(cE(e.getBoundingClientRect(),t))}function dE(e,t,o){let a=rv(e,o),{scroll:i}=t;return i&&(ie(a.x,i.offset.x),ie(a.y,i.offset.y)),a}s();s();var lz1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},sz1=X6.length;function UJ(e,t,o){let a="",i=!0;for(let r=0;r<sz1;r++){let n=X6[r],c=e[n];if(c===void 0)continue;let l=!0;if(typeof c=="number")l=c===(n.startsWith("scale")?1:0);else{let f=parseFloat(c);l=n.startsWith("scale")?f===1:f===0}if(!l||o){let f=Wg(c,ln[n]);if(!l){i=!1;let m=lz1[n]||n;a+=`${m}(${f}) `}o&&(t[n]=f)}}return a=a.trim(),o?a=o(t,i?"":a):i&&(a="none"),a}function Qo(e,t,o){let{style:a,vars:i,transformOrigin:r}=e,n=!1,c=!1;for(let l in t){let f=t[l];if(oe.has(l)){n=!0;continue}else if(yg(l)){i[l]=f;continue}else{let m=Wg(f,ln[l]);l.startsWith("origin")?(c=!0,r[l]=m):a[l]=m}}if(t.transform||(n||o?a.transform=UJ(t,e.transform,o):a.transform&&(a.transform="none")),c){let{originX:l="50%",originY:f="50%",originZ:m=0}=r;a.transformOrigin=`${l} ${f} ${m}`}}s();function nv(e,{style:t,vars:o},a,i){let r=e.style,n;for(n in t)r[n]=t[n];i?.applyProjectionStyles(r,a);for(n in o)r.setProperty(n,o[n])}s();s();s();s();function HJ(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var un={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(I1.test(e))e=parseFloat(e);else return e;let o=HJ(e,t.target.x),a=HJ(e,t.target.y);return`${o}% ${a}%`}};s();var GJ={correct:(e,{treeScale:t,projectionDelta:o})=>{let a=e,i=p0.parse(e);if(i.length>5)return a;let r=p0.createTransformer(e),n=typeof i[0]!="number"?1:0,c=o.x.scale*t.x,l=o.y.scale*t.y;i[0+n]/=c,i[1+n]/=l;let f=g2(c,l,.5);return typeof i[2+n]=="number"&&(i[2+n]/=f),typeof i[3+n]=="number"&&(i[3+n]/=f),r(i)}};var bf={borderRadius:{...un,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:un,borderTopRightRadius:un,borderBottomLeftRadius:un,borderBottomRightRadius:un,boxShadow:GJ};function yf(e,{layout:t,layoutId:o}){return oe.has(e)||e.startsWith("origin")||(t||o!==void 0)&&(!!bf[e]||e==="opacity")}function ea(e,t,o){let a=e.style,i=t?.style,r={};if(!a)return r;for(let n in a)(j2(a[n])||i&&j2(i[n])||yf(n,e)||o?.getValue(n)?.liveStyle!==void 0)&&(r[n]=a[n]);return r}function fz1(e){return window.getComputedStyle(e)}var kf=class extends dn{constructor(){super(...arguments),this.type="html",this.renderInstance=nv}readValueFromInstance(t,o){if(oe.has(o))return this.projection?.isProjecting?Eg(o):ZZ(t,o);{let a=fz1(t),i=(yg(o)?a.getPropertyValue(o):a[o])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:o}){return rv(t,o)}build(t,o,a){Qo(t,o,a.transformTemplate)}scrapeMotionValuesFromProps(t,o,a){return ea(t,o,a)}};s();s();s();var mz1={offset:"stroke-dashoffset",array:"stroke-dasharray"},dz1={offset:"strokeDashoffset",array:"strokeDasharray"};function KJ(e,t,o=1,a=0,i=!0){e.pathLength=1;let r=i?mz1:dz1;e[r.offset]=`${-a}`,e[r.array]=`${t} ${o}`}var uz1=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function xf(e,{attrX:t,attrY:o,attrScale:a,pathLength:i,pathSpacing:r=1,pathOffset:n=0,...c},l,f,m){if(Qo(e,c,f),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:u}=e;d.transform&&(u.transform=d.transform,delete d.transform),(u.transform||d.transformOrigin)&&(u.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),u.transform&&(u.transformBox=m?.transformBox??"fill-box",delete d.transformBox);for(let p of uz1)d[p]!==void 0&&(u[p]=d[p],delete d[p]);t!==void 0&&(d.x=t),o!==void 0&&(d.y=o),a!==void 0&&(d.scale=a),i!==void 0&&KJ(d,i,r,n,!1)}s();var cv=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);s();var zf=e=>typeof e=="string"&&e.toLowerCase()==="svg";s();function qJ(e,t,o,a){nv(e,t,void 0,a);for(let i in t.attrs)e.setAttribute(cv.has(i)?i:cn(i),t.attrs[i])}s();function wf(e,t,o){let a=ea(e,t,o);for(let i in e)if(j2(e[i])||j2(t[i])){let r=X6.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;a[r]=e[i]}return a}var Mf=class extends dn{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=u3}getBaseTargetFromProps(t,o){return t[o]}readValueFromInstance(t,o){if(oe.has(o)){let a=Hg(o);return a&&a.default||0}return o=cv.has(o)?o:cn(o),t.getAttribute(o)}scrapeMotionValuesFromProps(t,o,a){return wf(t,o,a)}build(t,o,a){xf(t,o,this.isSVGTag,a.transformTemplate,a.style)}renderInstance(t,o,a,i){qJ(t,o,a,i)}mount(t){this.isSVGTag=zf(t.tagName),super.mount(t)}};s();s();var pz1=ff.length;function uE(e){if(!e)return;if(!e.isControllingVariants){let o=e.parent?uE(e.parent)||{}:{};return e.props.initial!==void 0&&(o.initial=e.props.initial),o}let t={};for(let o=0;o<pz1;o++){let a=ff[o],i=e.props[a];(Y6(i)||i===!1)&&(t[a]=i)}return t}s();function pE(e,t){if(!Array.isArray(t))return!1;let o=t.length;if(o!==e.length)return!1;for(let a=0;a<o;a++)if(t[a]!==e[a])return!1;return!0}var hz1=[...tv].reverse(),gz1=tv.length;function vz1(e){return t=>Promise.all(t.map(({animation:o,options:a})=>bJ(e,o,a)))}function hE(e){let t=vz1(e),o=WJ(),a=!0,i=!1,r=f=>(m,d)=>{let u=y5(e,d,f==="exit"?e.presenceContext?.custom:void 0);if(u){let{transition:p,transitionEnd:b,...g}=u;m={...m,...g,...b}}return m};function n(f){t=f(e)}function c(f){let{props:m}=e,d=uE(e.parent)||{},u=[],p=new Set,b={},g=1/0;for(let y=0;y<gz1;y++){let v=hz1[y],k=o[v],w=m[v]!==void 0?m[v]:d[v],T=Y6(w),O=v===f?k.isActive:null;O===!1&&(g=y);let C=w===d[v]&&w!==m[v]&&T;if(C&&(a||i)&&e.manuallyAnimateOnMount&&(C=!1),k.protectedKeys={...b},!k.isActive&&O===null||!w&&!k.prevProp||p8(w)||typeof w=="boolean")continue;if(v==="exit"&&k.isActive&&O!==!0){k.prevResolvedValues&&(b={...b,...k.prevResolvedValues});continue}let z=ZJ(k.prevProp,w),M=z||v===f&&k.isActive&&!C&&T||y>g&&T,S=!1,N=Array.isArray(w)?w:[w],P=N.reduce(r(v),{});O===!1&&(P={});let{prevResolvedValues:R={}}=k,A={...R,...P},_=L=>{M=!0,p.has(L)&&(S=!0,p.delete(L)),k.needsAnimating[L]=!0;let $=e.getValue(L);$&&($.liveStyle=!1)};for(let L in A){let $=P[L],B=R[L];if(b.hasOwnProperty(L))continue;let q=!1;nf($)&&nf(B)?q=!pE($,B):q=$!==B,q?$!=null?_(L):p.add(L):$!==void 0&&p.has(L)?_(L):k.protectedKeys[L]=!0}k.prevProp=w,k.prevResolvedValues=P,k.isActive&&(b={...b,...P}),(a||i)&&e.blockInitialAnimation&&(M=!1);let E=C&&z;M&&(!E||S)&&u.push(...N.map(L=>{let $={type:v};if(typeof L=="string"&&(a||i)&&!E&&e.manuallyAnimateOnMount&&e.parent){let{parent:B}=e,q=y5(B,L);if(B.enteringChildren&&q){let{delayChildren:Q}=q.transition||{};$.delay=Ng(B.enteringChildren,e,Q)}}return{animation:L,options:$}}))}if(p.size){let y={};if(typeof m.initial!="boolean"){let v=y5(e,Array.isArray(m.initial)?m.initial[0]:m.initial);v&&v.transition&&(y.transition=v.transition)}p.forEach(v=>{let k=e.getBaseTarget(v),w=e.getValue(v);w&&(w.liveStyle=!0),y[v]=k??null}),u.push({animation:y})}let x=!!u.length;return a&&(m.initial===!1||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(x=!1),a=!1,i=!1,x?t(u):Promise.resolve()}function l(f,m){if(o[f].isActive===m)return Promise.resolve();e.variantChildren?.forEach(u=>u.animationState?.setActive(f,m)),o[f].isActive=m;let d=c(f);for(let u in o)o[u].protectedKeys={};return d}return{animateChanges:c,setActive:l,setAnimateFunction:n,getState:()=>o,reset:()=>{o=WJ(),i=!0}}}function ZJ(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!pE(t,e):!1}function ta(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function WJ(){return{animate:ta(!0),whileInView:ta(),whileHover:ta(),whileTap:ta(),whileDrag:ta(),whileFocus:ta(),exit:ta()}}s();function lv(e,t){e.min=t.min,e.max=t.max}function re(e,t){lv(e.x,t.x),lv(e.y,t.y)}function gE(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}s();var JJ=1e-4,bz1=1-JJ,yz1=1+JJ,XJ=.01,kz1=0-XJ,xz1=0+XJ;function r0(e){return e.max-e.min}function kE(e,t,o){return Math.abs(e-t)<=o}function vE(e,t,o,a=.5){e.origin=a,e.originPoint=g2(t.min,t.max,e.origin),e.scale=r0(o)/r0(t),e.translate=g2(o.min,o.max,e.origin)-e.originPoint,(e.scale>=bz1&&e.scale<=yz1||isNaN(e.scale))&&(e.scale=1),(e.translate>=kz1&&e.translate<=xz1||isNaN(e.translate))&&(e.translate=0)}function oa(e,t,o,a){vE(e.x,t.x,o.x,a?a.originX:void 0),vE(e.y,t.y,o.y,a?a.originY:void 0)}function bE(e,t,o,a=0){let i=a?g2(o.min,o.max,a):o.min;e.min=i+t.min,e.max=e.min+r0(t)}function xE(e,t,o,a){bE(e.x,t.x,o.x,a?.x),bE(e.y,t.y,o.y,a?.y)}function yE(e,t,o,a=0){let i=a?g2(o.min,o.max,a):o.min;e.min=t.min-i,e.max=e.min+r0(t)}function pn(e,t,o,a){yE(e.x,t.x,o.x,a?.x),yE(e.y,t.y,o.y,a?.y)}s();function YJ(e,t,o,a,i){return e-=t,e=gf(e,1/o,a),i!==void 0&&(e=gf(e,1/i,a)),e}function zz1(e,t=0,o=1,a=.5,i,r=e,n=e){if(t4.test(t)&&(t=parseFloat(t),t=g2(n.min,n.max,t/100)-n.min),typeof t!="number")return;let c=g2(r.min,r.max,a);e===r&&(c-=t),e.min=YJ(e.min,t,o,c,i),e.max=YJ(e.max,t,o,c,i)}function QJ(e,t,[o,a,i],r,n){zz1(e,t[o],t[a],t[i],t.scale,r,n)}var wz1=["x","scaleX","originX"],Mz1=["y","scaleY","originY"];function zE(e,t,o,a){QJ(e.x,t,wz1,o?o.x:void 0,a?a.x:void 0),QJ(e.y,t,Mz1,o?o.y:void 0,a?a.y:void 0)}s();function eX(e){return e.translate===0&&e.scale===1}function wE(e){return eX(e.x)&&eX(e.y)}function tX(e,t){return e.min===t.min&&e.max===t.max}function aX(e,t){return tX(e.x,t.x)&&tX(e.y,t.y)}function oX(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ME(e,t){return oX(e.x,t.x)&&oX(e.y,t.y)}function SE(e){return r0(e.x)/r0(e.y)}function TE(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}s();function k5(e){return[e("x"),e("y")]}s();function iX(e,t,o){let a="",i=e.x.translate/t.x,r=e.y.translate/t.y,n=o?.z||0;if((i||r||n)&&(a=`translate3d(${i}px, ${r}px, ${n}px) `),(t.x!==1||t.y!==1)&&(a+=`scale(${1/t.x}, ${1/t.y}) `),o){let{transformPerspective:f,rotate:m,rotateX:d,rotateY:u,skewX:p,skewY:b}=o;f&&(a=`perspective(${f}px) ${a}`),m&&(a+=`rotate(${m}deg) `),d&&(a+=`rotateX(${d}deg) `),u&&(a+=`rotateY(${u}deg) `),p&&(a+=`skewX(${p}deg) `),b&&(a+=`skewY(${b}deg) `)}let c=e.x.scale*t.x,l=e.y.scale*t.y;return(c!==1||l!==1)&&(a+=`scale(${c}, ${l})`),a||"none"}s();var lX=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],Sz1=lX.length,rX=e=>typeof e=="string"?parseFloat(e):e,nX=e=>typeof e=="number"||I1.test(e);function sX(e,t,o,a,i,r){i?(e.opacity=g2(0,o.opacity??1,Tz1(a)),e.opacityExit=g2(t.opacity??1,0,Rz1(a))):r&&(e.opacity=g2(t.opacity??1,o.opacity??1,a));for(let n=0;n<Sz1;n++){let c=lX[n],l=cX(t,c),f=cX(o,c);if(l===void 0&&f===void 0)continue;l||(l=0),f||(f=0),l===0||f===0||nX(l)===nX(f)?(e[c]=Math.max(g2(rX(l),rX(f),a),0),(t4.test(f)||t4.test(l))&&(e[c]+="%")):e[c]=f}(t.rotate||o.rotate)&&(e.rotate=g2(t.rotate||0,o.rotate||0,a))}function cX(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var Tz1=fX(0,.5,Ws),Rz1=fX(.5,.95,k3);function fX(e,t,o){return a=>a<e?0:a>t?1:o(q6(e,t,a))}s();function mX(e,t,o){let a=j2(e)?e:Ne(e);return a.start(Wo("",a,t,o)),a.animation}s();function Q6(e,t,o,a={passive:!0}){return e.addEventListener(t,o,a),()=>e.removeEventListener(t,o)}s();var dX=(e,t)=>e.depth-t.depth;s();var sv=class{constructor(){this.children=[],this.isDirty=!1}add(t){Uo(this.children,t),this.isDirty=!0}remove(t){Ft(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(dX),this.isDirty=!1,this.children.forEach(t)}};s();function uX(e,t){let o=x3.now(),a=({timestamp:i})=>{let r=i-o;r>=t&&(G4(a),e(r-t))};return l2.setup(a,!0),()=>G4(a)}s();function aa(e){return j2(e)?e.get():e}s();s();var fv=class{constructor(){this.members=[]}add(t){Uo(this.members,t);for(let o=this.members.length-1;o>=0;o--){let a=this.members[o];if(a===t||a===this.lead||a===this.prevLead)continue;let i=a.instance;(!i||i.isConnected===!1)&&!a.snapshot&&(Ft(this.members,a),a.unmount())}t.scheduleRender()}remove(t){if(Ft(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let o=this.members[this.members.length-1];o&&this.promote(o)}}relegate(t){for(let o=this.members.indexOf(t)-1;o>=0;o--){let a=this.members[o];if(a.isPresent!==!1&&a.instance?.isConnected!==!1)return this.promote(a),!0}return!1}promote(t,o){let a=this.lead;if(t!==a&&(this.prevLead=a,this.lead=t,t.show(),a)){a.updateSnapshot(),t.scheduleRender();let{layoutDependency:i}=a.options,{layoutDependency:r}=t.options;(i===void 0||i!==r)&&(t.resumeFrom=a,o&&(a.preserveOpacity=!0),a.snapshot&&(t.snapshot=a.snapshot,t.snapshot.latestValues=a.animationValues||a.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&a.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}};s();var ia={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var ra={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},RE=["","X","Y","Z"],Ez1=1e3,_z1=0;function EE(e,t,o,a){let{latestValues:i}=t;i[e]&&(o[e]=i[e],t.setStaticValue(e,0),a&&(a[e]=0))}function zX(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let o=Fg(t);if(window.MotionHasOptimisedAnimation(o,"transform")){let{layout:i,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(o,"transform",l2,!(i||r))}let{parent:a}=e;a&&!a.hasCheckedOptimisedAppear&&zX(a)}function mv({attachResizeListener:e,defaultParent:t,measureScroll:o,checkIsScrollRoot:a,resetTransform:i}){return class{constructor(n={},c=t?.()){this.id=_z1++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,b5.value&&(ra.nodes=ra.calculatedTargetDeltas=ra.calculatedProjections=0),this.nodes.forEach(Az1),this.nodes.forEach(Lz1),this.nodes.forEach(jz1),this.nodes.forEach(Oz1),b5.addProjectionMetrics&&b5.addProjectionMetrics(ra)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=n,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new sv)}addEventListener(n,c){return this.eventHandlers.has(n)||this.eventHandlers.set(n,new f8),this.eventHandlers.get(n).add(c)}notifyListeners(n,...c){let l=this.eventHandlers.get(n);l&&l.notify(...c)}hasListeners(n){return this.eventHandlers.has(n)}mount(n){if(this.instance)return;this.isSVG=fn(n)&&!CJ(n),this.instance=n;let{layoutId:c,layout:l,visualElement:f}=this.options;if(f&&!f.current&&f.mount(n),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||c)&&(this.isLayoutDirty=!0),e){let m,d=0,u=()=>this.root.updateBlockedByResize=!1;l2.read(()=>{d=window.innerWidth}),e(n,()=>{let p=window.innerWidth;p!==d&&(d=p,this.root.updateBlockedByResize=!0,m&&m(),m=uX(u,250),ia.hasAnimatedSinceResize&&(ia.hasAnimatedSinceResize=!1,this.nodes.forEach(gX)))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&f&&(c||l)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:d,hasRelativeLayoutChanged:u,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let b=this.options.transition||f.getDefaultTransition()||Hz1,{onLayoutAnimationStart:g,onLayoutAnimationComplete:x}=f.getProps(),y=!this.targetLayout||!ME(this.targetLayout,p),v=!d&&u;if(this.options.layoutRoot||this.resumeFrom||v||d&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let k={...rn(b,"layout"),onPlay:g,onComplete:x};(f.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k),this.setAnimationOrigin(m,v)}else d||gX(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let n=this.getStack();n&&n.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),G4(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Fz1),this.animationId++)}getTransformTemplate(){let{visualElement:n}=this.options;return n&&n.getProps().transformTemplate}willUpdate(n=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&zX(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){let d=this.path[m];d.shouldResetTransform=!0,(typeof d.latestValues.x=="string"||typeof d.latestValues.y=="string")&&(d.isLayoutDirty=!0),d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}let{layoutId:c,layout:l}=this.options;if(c===void 0&&!l)return;let f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),n&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(Iz1),this.nodes.forEach(pX);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(hX);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Dz1),this.nodes.forEach(Nz1),this.nodes.forEach(Cz1),this.nodes.forEach(Pz1)):this.nodes.forEach(hX),this.clearAllSnapshots();let c=x3.now();_3.delta=u0(0,1e3/60,c-_3.timestamp),_3.timestamp=c,_3.isProcessing=!0,Qs.update.process(_3),Qs.preRender.process(_3),Qs.render.process(_3),_3.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Xo.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach($z1),this.sharedNodes.forEach(Bz1)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,l2.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){l2.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!r0(this.snapshot.measuredBox.x)&&!r0(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();let n=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=u3()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,n?n.layoutBox:void 0)}updateScroll(n="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===n&&(c=!1),c&&this.instance){let l=a(this.instance);this.scroll={animationId:this.root.animationId,phase:n,isRoot:l,offset:o(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;let n=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!wE(this.projectionDelta),l=this.getTransformTemplate(),f=l?l(this.latestValues,""):void 0,m=f!==this.prevTransformTemplateValue;n&&this.instance&&(c||h8(this.latestValues)||m)&&(i(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(n=!0){let c=this.measurePageBox(),l=this.removeElementScroll(c);return n&&(l=this.removeTransform(l)),Gz1(l),{animationId:this.root.animationId,measuredBox:c,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:n}=this.options;if(!n)return u3();let c=n.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Kz1))){let{scroll:f}=this.root;f&&(ie(c.x,f.offset.x),ie(c.y,f.offset.y))}return c}removeElementScroll(n){let c=u3();if(re(c,n),this.scroll?.wasRoot)return c;for(let l=0;l<this.path.length;l++){let f=this.path[l],{scroll:m,options:d}=f;f!==this.root&&m&&d.layoutScroll&&(m.wasRoot&&re(c,n),ie(c.x,m.offset.x),ie(c.y,m.offset.y))}return c}applyTransform(n,c=!1,l){let f=l||u3();re(f,n);for(let m=0;m<this.path.length;m++){let d=this.path[m];!c&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(ie(f.x,-d.scroll.offset.x),ie(f.y,-d.scroll.offset.y)),h8(d.latestValues)&&vf(f,d.latestValues,d.layout?.layoutBox)}return h8(this.latestValues)&&vf(f,this.latestValues,this.layout?.layoutBox),f}removeTransform(n){let c=u3();re(c,n);for(let l=0;l<this.path.length;l++){let f=this.path[l];if(!h8(f.latestValues))continue;let m;f.instance&&(iv(f.latestValues)&&f.updateSnapshot(),m=u3(),re(m,f.measurePageBox())),zE(c,f.latestValues,f.snapshot?.layoutBox,m)}return h8(this.latestValues)&&zE(c,this.latestValues),c}setTargetDelta(n){this.targetDelta=n,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(n){this.options={...this.options,...n,crossfade:n.crossfade!==void 0?n.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==_3.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(n=!1){let c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);let l=!!this.resumingFrom||this!==c;if(!(n||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:m,layoutId:d}=this.options;if(!this.layout||!(m||d))return;this.resolvedRelativeTargetAt=_3.timestamp;let u=this.getClosestProjectingParent();u&&this.linkedParentVersion!==u.layoutVersion&&!u.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&u&&u.layout?this.createRelativeTarget(u,this.layout.layoutBox,u.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=u3(),this.targetWithTransforms=u3()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),xE(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):re(this.target,this.layout.layoutBox),mE(this.target,this.targetDelta)):re(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&u&&!!u.resumingFrom==!!this.resumingFrom&&!u.options.layoutScroll&&u.target&&this.animationProgress!==1?this.createRelativeTarget(u,this.target,u.target):this.relativeParent=this.relativeTarget=void 0),b5.value&&ra.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||iv(this.parent.latestValues)||sE(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(n,c,l){this.relativeParent=n,this.linkedParentVersion=n.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=u3(),this.relativeTargetOrigin=u3(),pn(this.relativeTargetOrigin,c,l,this.options.layoutAnchor||void 0),re(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let n=this.getLead(),c=!!this.resumingFrom||this!==n,l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===_3.timestamp&&(l=!1),l)return;let{layout:f,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||m))return;re(this.layoutCorrected,this.layout.layoutBox);let d=this.treeScale.x,u=this.treeScale.y;VJ(this.layoutCorrected,this.treeScale,this.path,c),n.layout&&!n.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(n.target=n.layout.layoutBox,n.targetWithTransforms=u3());let{target:p}=n;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(gE(this.prevProjectionDelta.x,this.projectionDelta.x),gE(this.prevProjectionDelta.y,this.projectionDelta.y)),oa(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==u||!TE(this.projectionDelta.x,this.prevProjectionDelta.x)||!TE(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p)),b5.value&&ra.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(n=!0){if(this.options.visualElement?.scheduleRender(),n){let c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Wt(),this.projectionDelta=Wt(),this.projectionDeltaWithTransform=Wt()}setAnimationOrigin(n,c=!1){let l=this.snapshot,f=l?l.latestValues:{},m={...this.latestValues},d=Wt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;let u=u3(),p=l?l.source:void 0,b=this.layout?this.layout.source:void 0,g=p!==b,x=this.getStack(),y=!x||x.members.length<=1,v=!!(g&&!y&&this.options.crossfade===!0&&!this.path.some(Uz1));this.animationProgress=0;let k;this.mixTargetDelta=w=>{let T=w/1e3;vX(d.x,n.x,T),vX(d.y,n.y,T),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(pn(u,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Vz1(this.relativeTarget,this.relativeTargetOrigin,u,T),k&&aX(this.relativeTarget,k)&&(this.isProjectionDirty=!1),k||(k=u3()),re(k,this.relativeTarget)),g&&(this.animationValues=m,sX(m,f,this.latestValues,T,v,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(n){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(G4(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=l2.update(()=>{ia.hasAnimatedSinceResize=!0,W6.layout++,this.motionValue||(this.motionValue=Ne(0)),this.motionValue.jump(0,!1),this.currentAnimation=mX(this.motionValue,[0,1e3],{...n,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),n.onUpdate&&n.onUpdate(c)},onStop:()=>{W6.layout--},onComplete:()=>{W6.layout--,n.onComplete&&n.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let n=this.getStack();n&&n.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ez1),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let n=this.getLead(),{targetWithTransforms:c,target:l,layout:f,latestValues:m}=n;if(!(!c||!l||!f)){if(this!==n&&this.layout&&f&&wX(this.options.animationType,this.layout.layoutBox,f.layoutBox)){l=this.target||u3();let d=r0(this.layout.layoutBox.x);l.x.min=n.target.x.min,l.x.max=l.x.min+d;let u=r0(this.layout.layoutBox.y);l.y.min=n.target.y.min,l.y.max=l.y.min+u}re(c,l),vf(c,m),oa(this.projectionDeltaWithTransform,this.layoutCorrected,c,m)}}registerSharedNode(n,c){this.sharedNodes.has(n)||this.sharedNodes.set(n,new fv),this.sharedNodes.get(n).add(c);let f=c.options.initialPromotionConfig;c.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(c):void 0})}isLead(){let n=this.getStack();return n?n.lead===this:!0}getLead(){let{layoutId:n}=this.options;return n?this.getStack()?.lead||this:this}getPrevLead(){let{layoutId:n}=this.options;return n?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:n}=this.options;if(n)return this.root.sharedNodes.get(n)}promote({needsReset:n,transition:c,preserveFollowOpacity:l}={}){let f=this.getStack();f&&f.promote(this,l),n&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){let n=this.getStack();return n?n.relegate(this):!1}resetSkewAndRotation(){let{visualElement:n}=this.options;if(!n)return;let c=!1,{latestValues:l}=n;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(c=!0),!c)return;let f={};l.z&&EE("z",n,f,this.animationValues);for(let m=0;m<RE.length;m++)EE(`rotate${RE[m]}`,n,f,this.animationValues),EE(`skew${RE[m]}`,n,f,this.animationValues);n.render();for(let m in f)n.setStaticValue(m,f[m]),this.animationValues&&(this.animationValues[m]=f[m]);n.scheduleRender()}applyProjectionStyles(n,c){if(!this.instance||this.isSVG)return;if(!this.isVisible){n.visibility="hidden";return}let l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,n.visibility="",n.opacity="",n.pointerEvents=aa(c?.pointerEvents)||"",n.transform=l?l(this.latestValues,""):"none";return}let f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){this.options.layoutId&&(n.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,n.pointerEvents=aa(c?.pointerEvents)||""),this.hasProjected&&!h8(this.latestValues)&&(n.transform=l?l({},""):"none",this.hasProjected=!1);return}n.visibility="";let m=f.animationValues||f.latestValues;this.applyTransformsToTarget();let d=iX(this.projectionDeltaWithTransform,this.treeScale,m);l&&(d=l(m,d)),n.transform=d;let{x:u,y:p}=this.projectionDelta;n.transformOrigin=`${u.origin*100}% ${p.origin*100}% 0`,f.animationValues?n.opacity=f===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:n.opacity=f===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(let b in bf){if(m[b]===void 0)continue;let{correct:g,applyTo:x,isCSSVariable:y}=bf[b],v=d==="none"?m[b]:g(m[b],f);if(x){let k=x.length;for(let w=0;w<k;w++)n[x[w]]=v}else y?this.options.visualElement.renderState.vars[b]=v:n[b]=v}this.options.layoutId&&(n.pointerEvents=f===this?aa(c?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(n=>n.currentAnimation?.stop()),this.root.nodes.forEach(pX),this.root.sharedNodes.clear()}}}function Cz1(e){e.updateLayout()}function Pz1(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:o,measuredBox:a}=e.layout,{animationType:i}=e.options,r=t.source!==e.layout.source;if(i==="size")k5(m=>{let d=r?t.measuredBox[m]:t.layoutBox[m],u=r0(d);d.min=o[m].min,d.max=d.min+u});else if(i==="x"||i==="y"){let m=i==="x"?"y":"x";lv(r?t.measuredBox[m]:t.layoutBox[m],o[m])}else wX(i,t.layoutBox,o)&&k5(m=>{let d=r?t.measuredBox[m]:t.layoutBox[m],u=r0(o[m]);d.max=d.min+u,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+u)});let n=Wt();oa(n,o,t.layoutBox);let c=Wt();r?oa(c,e.applyTransform(a,!0),t.measuredBox):oa(c,o,t.layoutBox);let l=!wE(n),f=!1;if(!e.resumeFrom){let m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){let{snapshot:d,layout:u}=m;if(d&&u){let p=e.options.layoutAnchor||void 0,b=u3();pn(b,t.layoutBox,d.layoutBox,p);let g=u3();pn(g,o,u.layoutBox,p),ME(b,g)||(f=!0),m.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=b,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:t,delta:c,layoutDelta:n,hasLayoutChanged:l,hasRelativeLayoutChanged:f})}else if(e.isLead()){let{onExitComplete:o}=e.options;o&&o()}e.options.transition=void 0}function Az1(e){b5.value&&ra.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Oz1(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function $z1(e){e.clearSnapshot()}function pX(e){e.clearMeasurements()}function Iz1(e){e.isLayoutDirty=!0,e.updateLayout()}function hX(e){e.isLayoutDirty=!1}function Dz1(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Nz1(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function gX(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Lz1(e){e.resolveTargetDelta()}function jz1(e){e.calcProjection()}function Fz1(e){e.resetSkewAndRotation()}function Bz1(e){e.removeLeadSnapshot()}function vX(e,t,o){e.translate=g2(t.translate,0,o),e.scale=g2(t.scale,1,o),e.origin=t.origin,e.originPoint=t.originPoint}function bX(e,t,o,a){e.min=g2(t.min,o.min,a),e.max=g2(t.max,o.max,a)}function Vz1(e,t,o,a){bX(e.x,t.x,o.x,a),bX(e.y,t.y,o.y,a)}function Uz1(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Hz1={duration:.45,ease:[.4,0,.1,1]},yX=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),kX=yX("applewebkit/")&&!yX("chrome/")?Math.round:k3;function xX(e){e.min=kX(e.min),e.max=kX(e.max)}function Gz1(e){xX(e.x),xX(e.y)}function wX(e,t,o){return e==="position"||e==="preserve-aspect"&&!kE(SE(t),SE(o),.2)}function Kz1(e){return e!==e.root&&e.scroll?.wasRoot}s();var MX=mv({attachResizeListener:(e,t)=>Q6(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0});s();var dv={current:void 0},Sf=mv({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!dv.current){let e=new MX({});e.mount(window),e.setOptions({layoutScroll:!0}),dv.current=e}return dv.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var uv=j(U(),1),g8=j(U(),1);s();var SX=j(U(),1),hn=(0,SX.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});s();var RX=j(U(),1);function TX(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function qz1(...e){return t=>{let o=!1,a=e.map(i=>{let r=TX(i,t);return!o&&typeof r=="function"&&(o=!0),r});if(o)return()=>{for(let i=0;i<a.length;i++){let r=a[i];typeof r=="function"?r():TX(e[i],null)}}}}function EX(...e){return RX.useCallback(qz1(...e),e)}var _E=class extends uv.Component{getSnapshotBeforeUpdate(t){let o=this.props.childRef.current;if(Jo(o)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let a=o.offsetParent,i=Jo(a)&&a.offsetWidth||0,r=Jo(a)&&a.offsetHeight||0,n=getComputedStyle(o),c=this.props.sizeRef.current;c.height=parseFloat(n.height),c.width=parseFloat(n.width),c.top=o.offsetTop,c.left=o.offsetLeft,c.right=i-c.width-c.left,c.bottom=r-c.height-c.top}return null}componentDidUpdate(){}render(){return this.props.children}};function CX({children:e,isPresent:t,anchorX:o,anchorY:a,root:i,pop:r}){let n=(0,g8.useId)(),c=(0,g8.useRef)(null),l=(0,g8.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:f}=(0,g8.useContext)(hn),m=e.props?.ref??e?.ref,d=EX(c,m);return(0,g8.useInsertionEffect)(()=>{let{width:u,height:p,top:b,left:g,right:x,bottom:y}=l.current;if(t||r===!1||!c.current||!u||!p)return;let v=o==="left"?`left: ${g}`:`right: ${x}`,k=a==="bottom"?`bottom: ${y}`:`top: ${b}`;c.current.dataset.motionPopId=n;let w=document.createElement("style");f&&(w.nonce=f);let T=i??document.head;return T.appendChild(w),w.sheet&&w.sheet.insertRule(`
429
429
  [data-motion-pop-id="${n}"] {
430
430
  position: absolute !important;
431
431
  width: ${u}px !important;
@@ -514,7 +514,7 @@ try {
514
514
  transform: translateX(var(--Snackbar-translateX, 0px)) translateY(calc(var(--_Snackbar-anchorBottom, 1) * 100%));
515
515
  opacity: 0;
516
516
  }
517
- `)),DR1=y1("div",{name:"JoySnackbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var o,a,i,r,n,c,l;let{p:f,padding:m,borderRadius:d}=se({theme:e,ownerState:t},["p","padding","borderRadius"]);return[I({"--Snackbar-radius":e.vars.radius.sm,"--Snackbar-decoratorChildRadius":"max((var(--Snackbar-radius) - var(--variant-borderWidth, 0px)) - var(--Snackbar-padding), min(var(--Snackbar-padding) + var(--variant-borderWidth, 0px), var(--Snackbar-radius) / 2))","--Button-minHeight":"var(--Snackbar-decoratorChildHeight)","--IconButton-size":"var(--Snackbar-decoratorChildHeight)","--Button-radius":"var(--Snackbar-decoratorChildRadius)","--IconButton-radius":"var(--Snackbar-decoratorChildRadius)","--Icon-color":"currentColor"},t.size==="sm"&&{"--Snackbar-padding":"0.75rem","--Snackbar-inset":"0.5rem","--Snackbar-decoratorChildHeight":"1.5rem","--Icon-fontSize":e.vars.fontSize.xl,gap:"0.5rem"},t.size==="md"&&{"--Snackbar-padding":"1rem","--Snackbar-inset":"0.75rem","--Snackbar-decoratorChildHeight":"2rem","--Icon-fontSize":e.vars.fontSize.xl,gap:"0.625rem"},t.size==="lg"&&{"--Snackbar-padding":"1.25rem","--Snackbar-inset":"1rem","--Snackbar-decoratorChildHeight":"2.375rem","--Icon-fontSize":e.vars.fontSize.xl2,gap:"0.875rem"},{zIndex:e.vars.zIndex.snackbar,position:"fixed",display:"flex",alignItems:"center",minWidth:300,top:((o=t.anchorOrigin)==null?void 0:o.vertical)==="top"?"var(--Snackbar-inset)":void 0,left:((a=t.anchorOrigin)==null?void 0:a.horizontal)==="left"?"var(--Snackbar-inset)":void 0,bottom:((i=t.anchorOrigin)==null?void 0:i.vertical)==="bottom"?"var(--Snackbar-inset)":void 0,right:((r=t.anchorOrigin)==null?void 0:r.horizontal)==="right"?"var(--Snackbar-inset)":void 0},((n=t.anchorOrigin)==null?void 0:n.horizontal)==="center"&&{"--Snackbar-translateX":"-50%",left:"50%",transform:"translateX(var(--Snackbar-translateX))"},((c=t.anchorOrigin)==null?void 0:c.vertical)==="top"&&{"--_Snackbar-anchorBottom":"-1"},{animation:`${$R1} ${t.animationDuration}ms forwards`},!t.open&&{animationName:IR1},{boxShadow:e.vars.shadow.lg,backgroundColor:e.vars.palette.background.surface,padding:"var(--Snackbar-padding)",borderRadius:"var(--Snackbar-radius)"},e.typography[`body-${{sm:"xs",md:"sm",lg:"md"}[t.size]}`],t.variant==="solid"&&t.color&&t.invertedColors&&ha(t.color)(e),t.variant==="soft"&&t.color&&t.invertedColors&&ga(t.color)(e),(l=e.variants[t.variant])==null?void 0:l[t.color]),f!==void 0&&{"--Snackbar-padding":f},m!==void 0&&{"--Snackbar-padding":m},d!==void 0&&{"--Snackbar-radius":d}]}),NR1=y1("span",{name:"JoySnackbar",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({display:"inherit",flex:"none"}),LR1=y1("span",{name:"JoySnackbar",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({display:"inherit",flex:"none",marginLeft:"auto"}),jR1={vertical:"bottom",horizontal:"right"},FR1=M8.forwardRef(function(t,o){let a=K1({props:t,name:"JoySnackbar"}),{anchorOrigin:i=jR1,animationDuration:r=300,autoHideDuration:n=null,color:c="neutral",children:l,className:f,component:m,disableWindowBlurListener:d=!1,endDecorator:u,invertedColors:p=!1,onUnmount:b,open:g,size:x="md",slots:y={},slotProps:v,startDecorator:k,variant:w="outlined"}=a,T=k1(a,AR1),[O,C]=M8.useState(!0),[z,M]=M8.useState(!1),S=M8.useRef(b);S.current=b,M8.useEffect(()=>{if(g)M(!1),C(!1);else{M(!0);let e1=setTimeout(()=>{var K;C(!0),M(!1),(K=S.current)==null||K.call(S)},r);return()=>{clearTimeout(e1)}}},[g,r]);let N=I({},a,{anchorOrigin:i,autoHideDuration:n,color:c,animationDuration:r,disableWindowBlurListener:d,invertedColors:p,size:x,variant:w});delete N.onUnmount;let P=OR1(N),{getRootProps:R,onClickAway:A}=LM(N),_=e1=>{z||A(e1)},E=I({},T,{component:m,slots:y,slotProps:v}),[D,L]=E1("root",{ref:o,className:m2(P.root,f),elementType:DR1,externalForwardedProps:E,getSlotProps:R,ownerState:N}),[$,B]=E1("startDecorator",{className:P.startDecorator,elementType:NR1,externalForwardedProps:E,ownerState:N}),[q,Q]=E1("endDecorator",{className:P.endDecorator,elementType:LR1,externalForwardedProps:E,ownerState:N}),o1=y.clickAway||lU;return!g&&O?null:(0,kb.jsx)(o1,I({onClickAway:_},typeof v?.clickAway=="function"?v.clickAway(N):v?.clickAway,{children:(0,h31.jsxs)(D,I({},L,{children:[k&&(0,kb.jsx)($,I({},B,{children:k})),l,u&&(0,kb.jsx)(q,I({},Q,{children:u}))]}))}))}),qf=FR1;s();s();var BR1=np({createStyledComponent:y1("div",{name:"JoyStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>K1({props:e,name:"JoyStack"})}),s2=BR1;s();s();Y1();_1();var I_=j(U());u2();s();function g31(e){return G1("MuiTextarea",e)}var VR1=H1("MuiTextarea",["root","textarea","startDecorator","endDecorator","formControl","disabled","error","focused","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft"]),$_=VR1;var xb=j(m1()),v31=j(m1()),UR1=["propsToForward","rootStateClasses","inputStateClasses","getRootProps","getInputProps","formControl","focused","error","disabled","size","color","variant","startDecorator","endDecorator","minRows","maxRows","component","slots","slotProps"],HR1=e=>{let{disabled:t,variant:o,color:a,size:i}=e,r={root:["root",t&&"disabled",o&&`variant${P1(o)}`,a&&`color${P1(a)}`,i&&`size${P1(i)}`],textarea:["textarea"],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return V1(r,g31,{})},GR1=y1("div",{name:"JoyTextarea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var o,a,i,r,n,c;let l=(o=e.variants[`${t.variant}`])==null?void 0:o[t.color];return[I({"--Textarea-radius":e.vars.radius.sm,"--Textarea-gap":"0.5rem","--Textarea-placeholderColor":"inherit","--Textarea-placeholderOpacity":.64,"--Textarea-decoratorColor":e.vars.palette.text.icon,"--Textarea-focused":"0","--Textarea-focusedThickness":e.vars.focus.thickness,"--Textarea-focusedHighlight":(a=e.vars.palette[t.color==="neutral"?"primary":t.color])==null?void 0:a[500],'&:not([data-inverted-colors="false"])':I({},t.instanceColor&&{"--_Textarea-focusedHighlight":(i=e.vars.palette[t.instanceColor==="neutral"?"primary":t.instanceColor])==null?void 0:i[500]},{"--Textarea-focusedHighlight":`var(--_Textarea-focusedHighlight, ${e.vars.palette.focusVisible})`})},t.size==="sm"&&{"--Textarea-minHeight":"2rem","--Textarea-paddingBlock":"calc(0.375rem - 0.5px - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"0.5rem","--Textarea-decoratorChildHeight":"min(1.5rem, var(--Textarea-minHeight))","--Icon-fontSize":e.vars.fontSize.xl},t.size==="md"&&{"--Textarea-minHeight":"2.25rem","--Textarea-paddingBlock":"calc(0.375rem - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"0.75rem","--Textarea-decoratorChildHeight":"min(1.75rem, var(--Textarea-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},t.size==="lg"&&{"--Textarea-minHeight":"3rem","--Textarea-paddingBlock":"calc(0.75rem - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"1rem","--Textarea-gap":"0.75rem","--Textarea-decoratorChildHeight":"min(2.375rem, var(--Textarea-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},{"--_Textarea-paddingBlock":"max((var(--Textarea-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Textarea-decoratorChildHeight)) / 2, 0px)","--Textarea-decoratorChildRadius":"max(var(--Textarea-radius) - var(--variant-borderWidth, 0px) - var(--_Textarea-paddingBlock), min(var(--_Textarea-paddingBlock) + var(--variant-borderWidth, 0px), var(--Textarea-radius) / 2))","--Button-minHeight":"var(--Textarea-decoratorChildHeight)","--Button-paddingBlock":"0px","--IconButton-size":"var(--Textarea-decoratorChildHeight)","--Button-radius":"var(--Textarea-decoratorChildRadius)","--IconButton-radius":"var(--Textarea-decoratorChildRadius)",boxSizing:"border-box"},t.variant!=="plain"&&{boxShadow:e.shadow.xs},{minWidth:0,minHeight:"var(--Textarea-minHeight)",cursor:"text",position:"relative",display:"flex",flexDirection:"column",paddingInlineStart:"var(--Textarea-paddingInline)",paddingBlock:"var(--Textarea-paddingBlock)",borderRadius:"var(--Textarea-radius)"},e.typography[`body-${t.size}`],l,{backgroundColor:(r=l?.backgroundColor)!=null?r:e.vars.palette.background.surface,"&::before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)",boxShadow:"var(--Textarea-focusedInset, inset) 0 0 0 calc(var(--Textarea-focused) * var(--Textarea-focusedThickness)) var(--Textarea-focusedHighlight)"}}),{"&:hover":I({},(n=e.variants[`${t.variant}Hover`])==null?void 0:n[t.color],{backgroundColor:null,cursor:"text"}),[`&.${$_.disabled}`]:(c=e.variants[`${t.variant}Disabled`])==null?void 0:c[t.color],"&:focus-within::before":{"--Textarea-focused":"1"}}]}),KR1=y1(FM,{name:"JoyTextarea",slot:"Textarea",overridesResolver:(e,t)=>t.textarea})({resize:"none",border:"none",minWidth:0,outline:0,padding:0,paddingInlineEnd:"var(--Textarea-paddingInline)",flex:"auto",alignSelf:"stretch",color:"inherit",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontWeight:"inherit",lineHeight:"inherit","&::-webkit-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&::-moz-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&:-ms-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&::-ms-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"}}),qR1=y1("div",{name:"JoyTextarea",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({display:"flex",marginInlineStart:"calc(var(--Textarea-paddingBlock) - var(--Textarea-paddingInline))",marginInlineEnd:"var(--Textarea-paddingBlock)",marginBlockEnd:"var(--Textarea-gap)",color:"var(--Textarea-decoratorColor)",cursor:"initial"}),WR1=y1("div",{name:"JoyTextarea",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({display:"flex",marginInlineStart:"calc(var(--Textarea-paddingBlock) - var(--Textarea-paddingInline))",marginInlineEnd:"var(--Textarea-paddingBlock)",marginBlockStart:"var(--Textarea-gap)",color:"var(--Textarea-decoratorColor)",cursor:"initial"}),ZR1=I_.forwardRef(function(t,o){var a,i,r,n,c,l,f,m;let d=K1({props:t,name:"JoyTextarea"}),u=Bf(d,$_),{propsToForward:p,rootStateClasses:b,inputStateClasses:g,getRootProps:x,getInputProps:y,formControl:v,focused:k,error:w=!1,disabled:T=!1,size:O="md",color:C="neutral",variant:z="outlined",startDecorator:M,endDecorator:S,minRows:N,maxRows:P,component:R,slots:A={},slotProps:_={}}=u,E=k1(u,UR1),D=(a=(i=t.disabled)!=null?i:v?.disabled)!=null?a:T,L=(r=(n=t.error)!=null?n:v?.error)!=null?r:w,$=(c=(l=t.size)!=null?l:v?.size)!=null?c:O,B=(f=t.color)!=null?f:L?"danger":(m=v?.color)!=null?m:C,q=I({instanceColor:L?"danger":t.color},d,{color:B,disabled:D,error:L,focused:k,size:$,variant:z}),Q=HR1(q),o1=I({},E,{component:R,slots:A,slotProps:_}),[e1,K]=E1("root",{ref:o,className:[Q.root,b],elementType:GR1,externalForwardedProps:o1,getSlotProps:x,ownerState:q}),[n1,Z]=E1("textarea",{additionalProps:{id:v?.htmlFor,"aria-describedby":v?.["aria-describedby"]},className:[Q.textarea,g],elementType:KR1,internalForwardedProps:I({},p,{minRows:N,maxRows:P}),externalForwardedProps:o1,getSlotProps:y,ownerState:q}),[X,c1]=E1("startDecorator",{className:Q.startDecorator,elementType:qR1,externalForwardedProps:o1,ownerState:q}),[z1,v1]=E1("endDecorator",{className:Q.endDecorator,elementType:WR1,externalForwardedProps:o1,ownerState:q});return(0,v31.jsxs)(e1,I({},K,{children:[M&&(0,xb.jsx)(X,I({},c1,{children:M})),(0,xb.jsx)(n1,I({},Z)),S&&(0,xb.jsx)(z1,I({},v1,{children:S}))]}))}),zb=ZR1;s();s();Y1();_1();var H3=j(U());L3();u2();s();function b31(e){return G1("MuiTooltip",e)}var RF2=H1("MuiTooltip",["root","tooltipArrow","arrow","touch","placementLeft","placementRight","placementTop","placementBottom","colorPrimary","colorDanger","colorNeutral","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);var z31=j(m1()),D_=j(m1()),JR1=["children","className","component","arrow","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","disablePortal","direction","keepMounted","modifiers","placement","title","color","variant","size","slots","slotProps"],XR1=e=>{let{arrow:t,variant:o,color:a,size:i,placement:r,touch:n}=e,c={root:["root",t&&"tooltipArrow",n&&"touch",i&&`size${P1(i)}`,a&&`color${P1(a)}`,o&&`variant${P1(o)}`,`tooltipPlacement${P1(r.split("-")[0])}`],arrow:["arrow"]};return V1(c,b31,{})},YR1=y1("div",{name:"JoyTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>{var o,a,i;let r=(o=t.variants[e.variant])==null?void 0:o[e.color];return I({},e.size==="sm"&&{"--Icon-fontSize":t.vars.fontSize.md,"--Tooltip-arrowSize":"8px",padding:t.spacing(.25,.625)},e.size==="md"&&{"--Icon-fontSize":t.vars.fontSize.lg,"--Tooltip-arrowSize":"10px",padding:t.spacing(.5,.75)},e.size==="lg"&&{"--Icon-fontSize":t.vars.fontSize.xl,"--Tooltip-arrowSize":"12px",padding:t.spacing(.75,1)},{zIndex:t.vars.zIndex.tooltip,borderRadius:t.vars.radius.sm,boxShadow:t.shadow.sm,wordWrap:"break-word",position:"relative"},e.disableInteractive&&{pointerEvents:"none"},t.typography[`body-${{sm:"xs",md:"sm",lg:"md"}[e.size]}`],r,!r.backgroundColor&&{backgroundColor:t.vars.palette.background.surface},{"&::before":{content:'""',display:"block",position:"absolute",width:(a=e.placement)!=null&&a.match(/(top|bottom)/)?"100%":"calc(10px + var(--variant-borderWidth, 0px))",height:(i=e.placement)!=null&&i.match(/(top|bottom)/)?"calc(10px + var(--variant-borderWidth, 0px))":"100%"},'&[data-popper-placement*="bottom"]::before':{top:0,left:0,transform:"translateY(-100%)"},'&[data-popper-placement*="left"]::before':{top:0,right:0,transform:"translateX(100%)"},'&[data-popper-placement*="right"]::before':{top:0,left:0,transform:"translateX(-100%)"},'&[data-popper-placement*="top"]::before':{bottom:0,left:0,transform:"translateY(100%)"}})}),QR1=y1("span",{name:"JoyTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e,ownerState:t})=>{var o,a,i;let r=(o=e.variants[t.variant])==null?void 0:o[t.color];return{"--unstable_Tooltip-arrowRotation":0,width:"var(--Tooltip-arrowSize)",height:"var(--Tooltip-arrowSize)",boxSizing:"border-box","&::before":{content:'""',display:"block",position:"absolute",width:0,height:0,border:"calc(var(--Tooltip-arrowSize) / 2) solid",borderLeftColor:"transparent",borderBottomColor:"transparent",borderTopColor:(a=r?.backgroundColor)!=null?a:e.vars.palette.background.surface,borderRightColor:(i=r?.backgroundColor)!=null?i:e.vars.palette.background.surface,borderRadius:"0px 2px 0px 0px",boxShadow:`var(--variant-borderWidth, 0px) calc(-1 * var(--variant-borderWidth, 0px)) 0px 0px ${r.borderColor}`,transformOrigin:"center center",transform:"rotate(calc(-45deg + 90deg * var(--unstable_Tooltip-arrowRotation)))"},'[data-popper-placement*="bottom"] &':{top:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="top"] &':{"--unstable_Tooltip-arrowRotation":2,bottom:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="left"] &':{"--unstable_Tooltip-arrowRotation":1,right:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="right"] &':{"--unstable_Tooltip-arrowRotation":3,left:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"}}}),wb=!1,y31=new $7,Wf={x:0,y:0};function k31(e,t){return o=>{t&&t(o),e(o)}}function x31(e,t){return(o,...a)=>{t&&t(o,...a),e(o,...a)}}var eE1=H3.forwardRef(function(t,o){var a;let i=K1({props:t,name:"JoyTooltip"}),{children:r,className:n,component:c,arrow:l=!1,describeChild:f=!1,disableFocusListener:m=!1,disableHoverListener:d=!1,disableInteractive:u=!1,disableTouchListener:p=!1,enterDelay:b=100,enterNextDelay:g=0,enterTouchDelay:x=700,followCursor:y=!1,id:v,leaveDelay:k=0,leaveTouchDelay:w=1500,onClose:T,onOpen:O,open:C,disablePortal:z,direction:M,keepMounted:S,modifiers:N,placement:P="bottom",title:R,color:A="neutral",variant:_="solid",size:E="md",slots:D={},slotProps:L={}}=i,$=k1(i,JR1),[B,q]=H3.useState(),[Q,o1]=H3.useState(null),e1=H3.useRef(!1),K=u||y,n1=I6(),Z=I6(),X=I6(),c1=I6(),[z1,v1]=O7({controlled:C,default:!1,name:"Tooltip",state:"open"}),C1=z1,L1=$0(v),F1=H3.useRef(void 0),l1=Z0(()=>{F1.current!==void 0&&(document.body.style.WebkitUserSelect=F1.current,F1.current=void 0),c1.clear()});H3.useEffect(()=>l1,[l1]);let T1=x2=>{y31.clear(),wb=!0,v1(!0),O&&!C1&&O(x2)},S1=Z0(x2=>{y31.start(800+k,()=>{wb=!1}),v1(!1),T&&C1&&T(x2),n1.start(150,()=>{e1.current=!1})}),w1=x2=>{e1.current&&x2.type!=="touchstart"||(B&&B.removeAttribute("title"),Z.clear(),X.clear(),b||wb&&g?Z.start(wb?g:b,()=>{T1(x2)}):T1(x2))},j1=x2=>{Z.clear(),X.start(k,()=>{S1(x2)})},{isFocusVisibleRef:O1,onBlur:q1,onFocus:n2,ref:u1}=we(),[,F]=H3.useState(!1),V=x2=>{q1(x2),O1.current===!1&&(F(!1),j1(x2))},W=x2=>{B||q(x2.currentTarget),n2(x2),O1.current===!0&&(F(!0),w1(x2))},a1=x2=>{e1.current=!0;let m4=r.props;m4.onTouchStart&&m4.onTouchStart(x2)},H=x2=>{a1(x2),X.clear(),n1.clear(),l1(),F1.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",c1.start(x,()=>{document.body.style.WebkitUserSelect=F1.current,w1(x2)})},G=x2=>{r.props.onTouchEnd&&r.props.onTouchEnd(x2),l1(),X.start(w,()=>{S1(x2)})};H3.useEffect(()=>{if(!C1)return;function x2(m4){(m4.key==="Escape"||m4.key==="Esc")&&S1(m4)}return document.addEventListener("keydown",x2),()=>{document.removeEventListener("keydown",x2)}},[S1,C1]);let J=Z1(q,o),h1=Z1(u1,J),i1=Z1(I7(r),h1);typeof R!="number"&&!R&&(C1=!1);let f1=H3.useRef(null),R1=x2=>{let m4=r.props;m4.onMouseMove&&m4.onMouseMove(x2),Wf={x:x2.clientX,y:x2.clientY},f1.current&&f1.current.update()},B1={},F2=typeof R=="string";f?(B1.title=!C1&&F2&&!d?R:null,B1["aria-describedby"]=C1?L1:null):(B1["aria-label"]=F2?R:null,B1["aria-labelledby"]=C1&&!F2?L1:null);let M2=I({},B1,$,{component:c},r.props,{className:m2(n,r.props.className),onTouchStart:a1,ref:i1},y?{onMouseMove:R1}:{}),B2={};p||(M2.onTouchStart=H,M2.onTouchEnd=G),d||(M2.onMouseOver=k31(w1,M2.onMouseOver),M2.onMouseLeave=k31(j1,M2.onMouseLeave),K||(B2.onMouseOver=w1,B2.onMouseLeave=j1)),m||(M2.onFocus=x31(W,M2.onFocus),M2.onBlur=x31(V,M2.onBlur),K||(B2.onFocus=W,B2.onBlur=V));let I4=I({},i,{arrow:l,disableInteractive:K,placement:P,touch:e1.current,color:A,variant:_,size:E}),M7=XR1(I4),F8=I({},$,{component:c,slots:D,slotProps:L}),B8=H3.useMemo(()=>[{name:"arrow",enabled:!!Q,options:{element:Q,padding:6}},{name:"offset",options:{offset:[0,10]}},...N||[]],[Q,N]),[Xc,Yc]=E1("root",{additionalProps:I({id:L1,popperRef:f1,placement:P,anchorEl:y?{getBoundingClientRect:()=>({top:Wf.y,left:Wf.x,right:Wf.x,bottom:Wf.y,width:0,height:0})}:B,open:B?C1:!1,disablePortal:z,keepMounted:S,direction:M,modifiers:B8},B2),ref:null,className:M7.root,elementType:YR1,externalForwardedProps:F8,ownerState:I4}),[oi,J3]=E1("arrow",{ref:o1,className:M7.arrow,elementType:QR1,externalForwardedProps:F8,ownerState:I4});return(0,D_.jsxs)(H3.Fragment,{children:[H3.isValidElement(r)&&H3.cloneElement(r,M2),(0,D_.jsxs)(Xc,I({},Yc,!((a=i.slots)!=null&&a.root)&&{as:Qi,slots:{root:c||"div"}},{children:[R,l?(0,z31.jsx)(oi,I({},J3)):null]}))]})}),Be=eE1;s();s();s();var X1=e=>typeof e=="string",Zf=()=>{let e,t,o=new Promise((a,i)=>{e=a,t=i});return o.resolve=e,o.reject=t,o},w31=e=>e==null?"":String(e),tE1=(e,t,o)=>{e.forEach(a=>{t[a]&&(o[a]=t[a])})},oE1=/###/g,M31=e=>e&&e.includes("###")?e.replace(oE1,"."):e,S31=e=>!e||X1(e),Jf=(e,t,o)=>{let a=X1(t)?t.split("."):t,i=0;for(;i<a.length-1;){if(S31(e))return{};let r=M31(a[i]);!e[r]&&o&&(e[r]=new o),Object.prototype.hasOwnProperty.call(e,r)?e=e[r]:e={},++i}return S31(e)?{}:{obj:e,k:M31(a[i])}},T31=(e,t,o)=>{let{obj:a,k:i}=Jf(e,t,Object);if(a!==void 0||t.length===1){a[i]=o;return}let r=t[t.length-1],n=t.slice(0,t.length-1),c=Jf(e,n,Object);for(;c.obj===void 0&&n.length;)r=`${n[n.length-1]}.${r}`,n=n.slice(0,n.length-1),c=Jf(e,n,Object),c?.obj&&typeof c.obj[`${c.k}.${r}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${r}`]=o},aE1=(e,t,o,a)=>{let{obj:i,k:r}=Jf(e,t,Object);i[r]=i[r]||[],i[r].push(o)},Sb=(e,t)=>{let{obj:o,k:a}=Jf(e,t);if(o&&Object.prototype.hasOwnProperty.call(o,a))return o[a]},iE1=(e,t,o)=>{let a=Sb(e,o);return a!==void 0?a:Sb(t,o)},A31=(e,t,o)=>{for(let a in t)a!=="__proto__"&&a!=="constructor"&&(a in e?X1(e[a])||e[a]instanceof String||X1(t[a])||t[a]instanceof String?o&&(e[a]=t[a]):A31(e[a],t[a],o):e[a]=t[a]);return e},S8=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),rE1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},nE1=e=>X1(e)?e.replace(/[&<>"'\/]/g,t=>rE1[t]):e,F_=class{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let o=this.regExpMap.get(t);if(o!==void 0)return o;let a=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,a),this.regExpQueue.push(t),a}},cE1=[" ",",","?","!",";"],lE1=new F_(20),sE1=(e,t,o)=>{t=t||"",o=o||"";let a=cE1.filter(n=>!t.includes(n)&&!o.includes(n));if(a.length===0)return!0;let i=lE1.getRegExp(`(${a.map(n=>n==="?"?"\\?":n).join("|")})`),r=!i.test(e);if(!r){let n=e.indexOf(o);n>0&&!i.test(e.substring(0,n))&&(r=!0)}return r},B_=(e,t,o=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let a=t.split(o),i=e;for(let r=0;r<a.length;){if(!i||typeof i!="object")return;let n,c="";for(let l=r;l<a.length;++l)if(l!==r&&(c+=o),c+=a[l],n=i[c],n!==void 0){if(["string","number","boolean"].includes(typeof n)&&l<a.length-1)continue;r+=l-r+1;break}i=n}return i},Xf=e=>e?.replace(/_/g,"-"),fE1={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}},V_=class e{constructor(t,o={}){this.init(t,o)}init(t,o={}){this.prefix=o.prefix||"i18next:",this.logger=t||fE1,this.options=o,this.debug=o.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,o,a,i){return i&&!this.debug?null:(t=t.map(r=>X1(r)?r.replace(/[\r\n\x00-\x1F\x7F]/g," "):r),X1(t[0])&&(t[0]=`${a}${this.prefix} ${t[0]}`),this.logger[o](t))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},n7=new V_,$n=class{constructor(){this.observers={}}on(t,o){return t.split(" ").forEach(a=>{this.observers[a]||(this.observers[a]=new Map);let i=this.observers[a].get(o)||0;this.observers[a].set(o,i+1)}),this}off(t,o){if(this.observers[t]){if(!o){delete this.observers[t];return}this.observers[t].delete(o)}}once(t,o){let a=(...i)=>{o(...i),this.off(t,a)};return this.on(t,a),this}emit(t,...o){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([i,r])=>{for(let n=0;n<r;n++)i(...o)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([i,r])=>{for(let n=0;n<r;n++)i(t,...o)})}},Tb=class extends $n{constructor(t,o={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.includes(t)||this.options.ns.push(t)}removeNamespaces(t){let o=this.options.ns.indexOf(t);o>-1&&this.options.ns.splice(o,1)}getResource(t,o,a,i={}){let r=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,n=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,c;t.includes(".")?c=t.split("."):(c=[t,o],a&&(Array.isArray(a)?c.push(...a):X1(a)&&r?c.push(...a.split(r)):c.push(a)));let l=Sb(this.data,c);return!l&&!o&&!a&&t.includes(".")&&(t=c[0],o=c[1],a=c.slice(2).join(".")),l||!n||!X1(a)?l:B_(this.data?.[t]?.[o],a,r)}addResource(t,o,a,i,r={silent:!1}){let n=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,c=[t,o];a&&(c=c.concat(n?a.split(n):a)),t.includes(".")&&(c=t.split("."),i=o,o=c[1]),this.addNamespaces(o),T31(this.data,c,i),r.silent||this.emit("added",t,o,a,i)}addResources(t,o,a,i={silent:!1}){for(let r in a)(X1(a[r])||Array.isArray(a[r]))&&this.addResource(t,o,r,a[r],{silent:!0});i.silent||this.emit("added",t,o,a)}addResourceBundle(t,o,a,i,r,n={silent:!1,skipCopy:!1}){let c=[t,o];t.includes(".")&&(c=t.split("."),i=a,a=o,o=c[1]),this.addNamespaces(o);let l=Sb(this.data,c)||{};n.skipCopy||(a=JSON.parse(JSON.stringify(a))),i?A31(l,a,r):l={...l,...a},T31(this.data,c,l),n.silent||this.emit("added",t,o,a)}removeResourceBundle(t,o){this.hasResourceBundle(t,o)&&delete this.data[t][o],this.removeNamespaces(o),this.emit("removed",t,o)}hasResourceBundle(t,o){return this.getResource(t,o)!==void 0}getResourceBundle(t,o){return o||(o=this.options.defaultNS),this.getResource(t,o)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let o=this.getDataByLanguage(t);return!!(o&&Object.keys(o)||[]).find(i=>o[i]&&Object.keys(o[i]).length>0)}toJSON(){return this.data}},O31={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,o,a,i){return e.forEach(r=>{t=this.processors[r]?.process(t,o,a,i)??t}),t}},$31=Symbol("i18next/PATH_KEY");function mE1(){let e=[],t=Object.create(null),o;return t.get=(a,i)=>(o?.revoke?.(),i===$31?e:(e.push(i),o=Proxy.revocable(a,t),o.proxy)),Proxy.revocable(Object.create(null),t).proxy}function za(e,t){let{[$31]:o}=e(mE1()),a=t?.keySeparator??".",i=t?.nsSeparator??":";if(o.length>1&&i){let r=t?.ns,n=Array.isArray(r)?r:null;if(n&&n.length>1&&n.slice(1).includes(o[0]))return`${o[0]}${i}${o.slice(1).join(a)}`}return o.join(a)}var N_=e=>!X1(e)&&typeof e!="boolean"&&typeof e!="number",Rb=class e extends $n{constructor(t,o={}){super(),tE1(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=n7.create("translator"),this.checkedLoadedFor={}}changeLanguage(t){t&&(this.language=t)}exists(t,o={interpolation:{}}){let a={...o};if(t==null)return!1;let i=this.resolve(t,a);if(i?.res===void 0)return!1;let r=N_(i.res);return!(a.returnObjects===!1&&r)}extractFromKey(t,o){let a=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");let i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,r=o.ns||this.options.defaultNS||[],n=a&&t.includes(a),c=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!sE1(t,a,i);if(n&&!c){let l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:X1(r)?[r]:r};let f=t.split(a);(a!==i||a===i&&this.options.ns.includes(f[0]))&&(r=f.shift()),t=f.join(i)}return{key:t,namespaces:X1(r)?[r]:r}}translate(t,o,a){let i=typeof o=="object"?{...o}:o;if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),t==null)return"";typeof t=="function"&&(t=za(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(R=>typeof R=="function"?za(R,{...this.options,...i}):String(R));let r=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,n=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:c,namespaces:l}=this.extractFromKey(t[t.length-1],i),f=l[l.length-1],m=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;m===void 0&&(m=":");let d=i.lng||this.language,u=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()==="cimode")return u?r?{res:`${f}${m}${c}`,usedKey:c,exactUsedKey:c,usedLng:d,usedNS:f,usedParams:this.getUsedParamsDetails(i)}:`${f}${m}${c}`:r?{res:c,usedKey:c,exactUsedKey:c,usedLng:d,usedNS:f,usedParams:this.getUsedParamsDetails(i)}:c;let p=this.resolve(t,i),b=p?.res,g=p?.usedKey||c,x=p?.exactUsedKey||c,y=["[object Number]","[object Function]","[object RegExp]"],v=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,w=i.count!==void 0&&!X1(i.count),T=e.hasDefaultValue(i),O=w?this.pluralResolver.getSuffix(d,i.count,i):"",C=i.ordinal&&w?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):"",z=w&&!i.ordinal&&i.count===0,M=z&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${O}`]||i[`defaultValue${C}`]||i.defaultValue,S=b;k&&!b&&T&&(S=M);let N=N_(S),P=Object.prototype.toString.apply(S);if(k&&S&&N&&!y.includes(P)&&!(X1(v)&&Array.isArray(S))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let R=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,S,{...i,ns:l}):`key '${c} (${this.language})' returned an object instead of string.`;return r?(p.res=R,p.usedParams=this.getUsedParamsDetails(i),p):R}if(n){let R=Array.isArray(S),A=R?[]:{},_=R?x:g;for(let E in S)if(Object.prototype.hasOwnProperty.call(S,E)){let D=`${_}${n}${E}`;T&&!b?A[E]=this.translate(D,{...i,defaultValue:N_(M)?M[E]:void 0,joinArrays:!1,ns:l}):A[E]=this.translate(D,{...i,joinArrays:!1,ns:l}),A[E]===D&&(A[E]=S[E])}b=A}}else if(k&&X1(v)&&Array.isArray(b))b=b.join(v),b&&(b=this.extendTranslation(b,t,i,a));else{let R=!1,A=!1;!this.isValidLookup(b)&&T&&(R=!0,b=M),this.isValidLookup(b)||(A=!0,b=c);let E=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&A?void 0:b,D=T&&M!==b&&this.options.updateMissing;if(A||R||D){if(this.logger.log(D?"updateKey":"missingKey",d,f,w&&!D?`${c}${this.pluralResolver.getSuffix(d,i.count,i)}`:c,D?M:b),n){let q=this.resolve(c,{...i,keySeparator:!1});q&&q.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let L=[],$=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&$&&$[0])for(let q=0;q<$.length;q++)L.push($[q]);else this.options.saveMissingTo==="all"?L=this.languageUtils.toResolveHierarchy(i.lng||this.language):L.push(i.lng||this.language);let B=(q,Q,o1)=>{let e1=T&&o1!==b?o1:E;this.options.missingKeyHandler?this.options.missingKeyHandler(q,f,Q,e1,D,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(q,f,Q,e1,D,i),this.emit("missingKey",q,f,Q,b)};this.options.saveMissing&&(this.options.saveMissingPlurals&&w?L.forEach(q=>{let Q=this.pluralResolver.getSuffixes(q,i);z&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!Q.includes(`${this.options.pluralSeparator}zero`)&&Q.push(`${this.options.pluralSeparator}zero`),Q.forEach(o1=>{B([q],c+o1,i[`defaultValue${o1}`]||M)})}):B(L,c,M))}b=this.extendTranslation(b,t,i,p,a),A&&b===c&&this.options.appendNamespaceToMissingKey&&(b=`${f}${m}${c}`),(A||R)&&this.options.parseMissingKeyHandler&&(b=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${f}${m}${c}`:c,R?b:void 0,i))}return r?(p.res=b,p.usedParams=this.getUsedParamsDetails(i),p):b}extendTranslation(t,o,a,i,r){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...a},a.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init({...a,interpolation:{...this.options.interpolation,...a.interpolation}});let l=X1(t)&&(a?.interpolation?.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),f;if(l){let d=t.match(this.interpolator.nestingRegexp);f=d&&d.length}let m=a.replace&&!X1(a.replace)?a.replace:a;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,a.lng||this.language||i.usedLng,a),l){let d=t.match(this.interpolator.nestingRegexp),u=d&&d.length;f<u&&(a.nest=!1)}!a.lng&&i&&i.res&&(a.lng=this.language||i.usedLng),a.nest!==!1&&(t=this.interpolator.nest(t,(...d)=>r?.[0]===d[0]&&!a.context?(this.logger.warn(`It seems you are nesting recursively key: ${d[0]} in key: ${o[0]}`),null):this.translate(...d,o),a)),a.interpolation&&this.interpolator.reset()}let n=a.postProcess||this.options.postProcess,c=X1(n)?[n]:n;return t!=null&&c?.length&&a.applyPostProcessor!==!1&&(t=O31.handle(c,t,o,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(a)},...a}:a,this)),t}resolve(t,o={}){let a,i,r,n,c;return X1(t)&&(t=[t]),Array.isArray(t)&&(t=t.map(l=>typeof l=="function"?za(l,{...this.options,...o}):l)),t.forEach(l=>{if(this.isValidLookup(a))return;let f=this.extractFromKey(l,o),m=f.key;i=m;let d=f.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));let u=o.count!==void 0&&!X1(o.count),p=u&&!o.ordinal&&o.count===0,b=o.context!==void 0&&(X1(o.context)||typeof o.context=="number")&&o.context!=="",g=o.lngs?o.lngs:this.languageUtils.toResolveHierarchy(o.lng||this.language,o.fallbackLng);d.forEach(x=>{this.isValidLookup(a)||(c=x,!this.checkedLoadedFor[`${g[0]}-${x}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(c)&&(this.checkedLoadedFor[`${g[0]}-${x}`]=!0,this.logger.warn(`key "${i}" for languages "${g.join(", ")}" won't get resolved as namespace "${c}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(y=>{if(this.isValidLookup(a))return;n=y;let v=[m];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(v,m,y,x,o);else{let w;u&&(w=this.pluralResolver.getSuffix(y,o.count,o));let T=`${this.options.pluralSeparator}zero`,O=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(o.ordinal&&w.startsWith(O)&&v.push(m+w.replace(O,this.options.pluralSeparator)),v.push(m+w),p&&v.push(m+T)),b){let C=`${m}${this.options.contextSeparator||"_"}${o.context}`;v.push(C),u&&(o.ordinal&&w.startsWith(O)&&v.push(C+w.replace(O,this.options.pluralSeparator)),v.push(C+w),p&&v.push(C+T))}}let k;for(;k=v.pop();)this.isValidLookup(a)||(r=k,a=this.getResource(y,x,k,o))}))})}),{res:a,usedKey:i,exactUsedKey:r,usedLng:n,usedNS:c}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,o,a,i={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,o,a,i):this.resourceStore.getResource(t,o,a,i)}getUsedParamsDetails(t={}){let o=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],a=t.replace&&!X1(t.replace),i=a?t.replace:t;if(a&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!a){i={...i};for(let r of o)delete i[r]}return i}static hasDefaultValue(t){let o="defaultValue";for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&a.startsWith(o)&&t[a]!==void 0)return!0;return!1}},Eb=class{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=n7.create("languageUtils")}getScriptPartFromCode(t){if(t=Xf(t),!t||!t.includes("-"))return null;let o=t.split("-");return o.length===2||(o.pop(),o[o.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(o.join("-"))}getLanguagePartFromCode(t){if(t=Xf(t),!t||!t.includes("-"))return t;let o=t.split("-");return this.formatLanguageCode(o[0])}formatLanguageCode(t){if(X1(t)&&t.includes("-")){let o;try{o=Intl.getCanonicalLocales(t)[0]}catch{}return o&&this.options.lowerCaseLng&&(o=o.toLowerCase()),o||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(t)}getBestMatchFromCodes(t){if(!t)return null;let o;return t.forEach(a=>{if(o)return;let i=this.formatLanguageCode(a);(!this.options.supportedLngs||this.isSupportedCode(i))&&(o=i)}),!o&&this.options.supportedLngs&&t.forEach(a=>{if(o)return;let i=this.getScriptPartFromCode(a);if(this.isSupportedCode(i))return o=i;let r=this.getLanguagePartFromCode(a);if(this.isSupportedCode(r))return o=r;o=this.options.supportedLngs.find(n=>n===r?!0:!n.includes("-")&&!r.includes("-")?!1:!!(n.includes("-")&&!r.includes("-")&&n.slice(0,n.indexOf("-"))===r||n.startsWith(r)&&r.length>1))}),o||(o=this.getFallbackCodes(this.options.fallbackLng)[0]),o}getFallbackCodes(t,o){if(!t)return[];if(typeof t=="function"&&(t=t(o)),X1(t)&&(t=[t]),Array.isArray(t))return t;if(!o)return t.default||[];let a=t[o];return a||(a=t[this.getScriptPartFromCode(o)]),a||(a=t[this.formatLanguageCode(o)]),a||(a=t[this.getLanguagePartFromCode(o)]),a||(a=t.default),a||[]}toResolveHierarchy(t,o){let a=this.getFallbackCodes((o===!1?[]:o)||this.options.fallbackLng||[],t),i=[],r=n=>{n&&(this.isSupportedCode(n)?i.push(n):this.logger.warn(`rejecting language code not found in supportedLngs: ${n}`))};return X1(t)&&(t.includes("-")||t.includes("_"))?(this.options.load!=="languageOnly"&&r(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&r(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&r(this.getLanguagePartFromCode(t))):X1(t)&&r(this.formatLanguageCode(t)),a.forEach(n=>{i.includes(n)||r(this.formatLanguageCode(n))}),i}},R31={zero:0,one:1,two:2,few:3,many:4,other:5},E31={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})},U_=class{constructor(t,o={}){this.languageUtils=t,this.options=o,this.logger=n7.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,o={}){let a=Xf(t==="dev"?"en":t),i=o.ordinal?"ordinal":"cardinal",r=JSON.stringify({cleanedCode:a,type:i});if(r in this.pluralRulesCache)return this.pluralRulesCache[r];let n;try{n=new Intl.PluralRules(a,{type:i})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),E31;if(!t.match(/-|_/))return E31;let l=this.languageUtils.getLanguagePartFromCode(t);n=this.getRule(l,o)}return this.pluralRulesCache[r]=n,n}needsPlural(t,o={}){let a=this.getRule(t,o);return a||(a=this.getRule("dev",o)),a?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,o,a={}){return this.getSuffixes(t,a).map(i=>`${o}${i}`)}getSuffixes(t,o={}){let a=this.getRule(t,o);return a||(a=this.getRule("dev",o)),a?a.resolvedOptions().pluralCategories.sort((i,r)=>R31[i]-R31[r]).map(i=>`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(t,o,a={}){let i=this.getRule(t,a);return i?`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${i.select(o)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",o,a))}},_31=(e,t,o,a=".",i=!0)=>{let r=iE1(e,t,o);return!r&&i&&X1(o)&&(r=B_(e,o,a),r===void 0&&(r=B_(t,o,a))),r},L_=e=>e.replace(/\$/g,"$$$$"),_b=class{constructor(t={}){this.logger=n7.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(o=>o),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});let{escape:o,escapeValue:a,useRawValueToEscape:i,prefix:r,prefixEscaped:n,suffix:c,suffixEscaped:l,formatSeparator:f,unescapeSuffix:m,unescapePrefix:d,nestingPrefix:u,nestingPrefixEscaped:p,nestingSuffix:b,nestingSuffixEscaped:g,nestingOptionsSeparator:x,maxReplaces:y,alwaysFormat:v}=t.interpolation;this.escape=o!==void 0?o:nE1,this.escapeValue=a!==void 0?a:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=r?S8(r):n||"{{",this.suffix=c?S8(c):l||"}}",this.formatSeparator=f||",",this.unescapePrefix=m?"":d?S8(d):"-",this.unescapeSuffix=this.unescapePrefix?"":m?S8(m):"",this.nestingPrefix=u?S8(u):p||S8("$t("),this.nestingSuffix=b?S8(b):g||S8(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=y||1e3,this.alwaysFormat=v!==void 0?v:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=(o,a)=>o?.source===a?(o.lastIndex=0,o):new RegExp(a,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,o,a,i){let r,n,c,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},f=p=>{if(!p.includes(this.formatSeparator)){let y=_31(o,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(y,void 0,a,{...i,...o,interpolationkey:p}):y}let b=p.split(this.formatSeparator),g=b.shift().trim(),x=b.join(this.formatSeparator).trim();return this.format(_31(o,l,g,this.options.keySeparator,this.options.ignoreJSONStructure),x,a,{...i,...o,interpolationkey:g})};this.resetRegExp(),!this.escapeValue&&typeof t=="string"&&/\$t\([^)]*\{[^}]*\{\{/.test(t)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");let m=i?.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>L_(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?L_(this.escape(p)):L_(p)}].forEach(p=>{for(c=0;r=p.regex.exec(t);){let b=r[1].trim();if(n=f(b),n===void 0)if(typeof m=="function"){let x=m(t,r,i);n=X1(x)?x:""}else if(i&&Object.prototype.hasOwnProperty.call(i,b))n="";else if(d){n=r[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${t}`),n="";else!X1(n)&&!this.useRawValueToEscape&&(n=w31(n));let g=p.safeValue(n);if(t=t.replace(r[0],g),d?(p.regex.lastIndex+=n.length,p.regex.lastIndex-=r[0].length):p.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),t}nest(t,o,a={}){let i,r,n,c=(l,f)=>{let m=this.nestingOptionsSeparator;if(!l.includes(m))return l;let d=l.split(new RegExp(`${S8(m)}[ ]*{`)),u=`{${d[1]}`;l=d[0],u=this.interpolate(u,n);let p=u.match(/'/g),b=u.match(/"/g);((p?.length??0)%2===0&&!b||(b?.length??0)%2!==0)&&(u=u.replace(/'/g,'"'));try{n=JSON.parse(u),f&&(n={...f,...n})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,g),`${l}${m}${u}`}return n.defaultValue&&n.defaultValue.includes(this.prefix)&&delete n.defaultValue,l};for(;i=this.nestingRegexp.exec(t);){let l=[];n={...a},n=n.replace&&!X1(n.replace)?n.replace:n,n.applyPostProcessor=!1,delete n.defaultValue;let f=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(f!==-1&&(l=i[1].slice(f).split(this.formatSeparator).map(m=>m.trim()).filter(Boolean),i[1]=i[1].slice(0,f)),r=o(c.call(this,i[1].trim(),n),n),r&&i[0]===t&&!X1(r))return r;X1(r)||(r=w31(r)),r||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),r=""),l.length&&(r=l.reduce((m,d)=>this.format(m,d,a.lng,{...a,interpolationkey:i[1].trim()}),r.trim())),t=t.replace(i[0],r),this.regexp.lastIndex=0}return t}},dE1=e=>{let t=e.toLowerCase().trim(),o={};if(e.includes("(")){let a=e.split("(");t=a[0].toLowerCase().trim();let i=a[1].slice(0,-1);t==="currency"&&!i.includes(":")?o.currency||(o.currency=i.trim()):t==="relativetime"&&!i.includes(":")?o.range||(o.range=i.trim()):i.split(";").forEach(n=>{if(n){let[c,...l]=n.split(":"),f=l.join(":").trim().replace(/^'+|'+$/g,""),m=c.trim();o[m]||(o[m]=f),f==="false"&&(o[m]=!1),f==="true"&&(o[m]=!0),isNaN(f)||(o[m]=parseInt(f,10))}})}return{formatName:t,formatOptions:o}},C31=e=>{let t={};return(o,a,i)=>{let r=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(r={...r,[i.interpolationkey]:void 0});let n=a+JSON.stringify(r),c=t[n];return c||(c=e(Xf(a),i),t[n]=c),c(o)}},uE1=e=>(t,o,a)=>e(Xf(o),a)(t),H_=class{constructor(t={}){this.logger=n7.create("formatter"),this.options=t,this.init(t)}init(t,o={interpolation:{}}){this.formatSeparator=o.interpolation.formatSeparator||",";let a=o.cacheInBuiltFormats?C31:uE1;this.formats={number:a((i,r)=>{let n=new Intl.NumberFormat(i,{...r});return c=>n.format(c)}),currency:a((i,r)=>{let n=new Intl.NumberFormat(i,{...r,style:"currency"});return c=>n.format(c)}),datetime:a((i,r)=>{let n=new Intl.DateTimeFormat(i,{...r});return c=>n.format(c)}),relativetime:a((i,r)=>{let n=new Intl.RelativeTimeFormat(i,{...r});return c=>n.format(c,r.range||"day")}),list:a((i,r)=>{let n=new Intl.ListFormat(i,{...r});return c=>n.format(c)})}}add(t,o){this.formats[t.toLowerCase().trim()]=o}addCached(t,o){this.formats[t.toLowerCase().trim()]=C31(o)}format(t,o,a,i={}){if(!o||t==null)return t;let r=o.split(this.formatSeparator);if(r.length>1&&r[0].indexOf("(")>1&&!r[0].includes(")")&&r.find(c=>c.includes(")"))){let c=r.findIndex(l=>l.includes(")"));r[0]=[r[0],...r.splice(1,c)].join(this.formatSeparator)}return r.reduce((c,l)=>{let{formatName:f,formatOptions:m}=dE1(l);if(this.formats[f]){let d=c;try{let u=i?.formatParams?.[i.interpolationkey]||{},p=u.locale||u.lng||i.locale||i.lng||a;d=this.formats[f](c,p,{...m,...i,...u})}catch(u){this.logger.warn(u)}return d}else this.logger.warn(`there was no format function for ${f}`);return c},t)}},pE1=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},G_=class extends $n{constructor(t,o,a,i={}){super(),this.backend=t,this.store=o,this.services=a,this.languageUtils=a.languageUtils,this.options=i,this.logger=n7.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(a,i.backend,i)}queueLoad(t,o,a,i){let r={},n={},c={},l={};return t.forEach(f=>{let m=!0;o.forEach(d=>{let u=`${f}|${d}`;!a.reload&&this.store.hasResourceBundle(f,d)?this.state[u]=2:this.state[u]<0||(this.state[u]===1?n[u]===void 0&&(n[u]=!0):(this.state[u]=1,m=!1,n[u]===void 0&&(n[u]=!0),r[u]===void 0&&(r[u]=!0),l[d]===void 0&&(l[d]=!0)))}),m||(c[f]=!0)}),(Object.keys(r).length||Object.keys(n).length)&&this.queue.push({pending:n,pendingCount:Object.keys(n).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(r),pending:Object.keys(n),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(l)}}loaded(t,o,a){let i=t.split("|"),r=i[0],n=i[1];o&&this.emit("failedLoading",r,n,o),!o&&a&&this.store.addResourceBundle(r,n,a,void 0,void 0,{skipCopy:!0}),this.state[t]=o?-1:2,o&&a&&(this.state[t]=0);let c={};this.queue.forEach(l=>{aE1(l.loaded,[r],n),pE1(l,t),o&&l.errors.push(o),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(f=>{c[f]||(c[f]={});let m=l.loaded[f];m.length&&m.forEach(d=>{c[f][d]===void 0&&(c[f][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(l=>!l.done)}read(t,o,a,i=0,r=this.retryTimeout,n){if(!t.length)return n(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:o,fcName:a,tried:i,wait:r,callback:n});return}this.readingCalls++;let c=(f,m)=>{if(this.readingCalls--,this.waitingReads.length>0){let d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(f&&m&&i<this.maxRetries){setTimeout(()=>{this.read(t,o,a,i+1,r*2,n)},r);return}n(f,m)},l=this.backend[a].bind(this.backend);if(l.length===2){try{let f=l(t,o);f&&typeof f.then=="function"?f.then(m=>c(null,m)).catch(c):c(null,f)}catch(f){c(f)}return}return l(t,o,c)}prepareLoading(t,o,a={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();X1(t)&&(t=this.languageUtils.toResolveHierarchy(t)),X1(o)&&(o=[o]);let r=this.queueLoad(t,o,a,i);if(!r.toLoad.length)return r.pending.length||i(),null;r.toLoad.forEach(n=>{this.loadOne(n)})}load(t,o,a){this.prepareLoading(t,o,{},a)}reload(t,o,a){this.prepareLoading(t,o,{reload:!0},a)}loadOne(t,o=""){let a=t.split("|"),i=a[0],r=a[1];this.read(i,r,"read",void 0,void 0,(n,c)=>{n&&this.logger.warn(`${o}loading namespace ${r} for language ${i} failed`,n),!n&&c&&this.logger.log(`${o}loaded namespace ${r} for language ${i}`,c),this.loaded(t,n,c)})}saveMissing(t,o,a,i,r,n={},c=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(o)){this.logger.warn(`did not save key "${a}" as the namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend?.create){let l={...n,isUpdate:r},f=this.backend.create.bind(this.backend);if(f.length<6)try{let m;f.length===5?m=f(t,o,a,i,l):m=f(t,o,a,i),m&&typeof m.then=="function"?m.then(d=>c(null,d)).catch(c):c(null,m)}catch(m){c(m)}else f(t,o,a,i,c,l)}!t||!t[0]||this.store.addResource(t[0],o,a,i)}}},j_=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),X1(e[1])&&(t.defaultValue=e[1]),X1(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let o=e[3]||e[2];Object.keys(o).forEach(a=>{t[a]=o[a]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),P31=e=>(X1(e.ns)&&(e.ns=[e.ns]),X1(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),X1(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Mb=()=>{},hE1=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(o=>{typeof e[o]=="function"&&(e[o]=e[o].bind(e))})},K_=class e extends $n{constructor(t={},o){if(super(),this.options=P31(t),this.services={},this.logger=n7,this.modules={external:[]},hE1(this),o&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,o),this;setTimeout(()=>{this.init(t,o)},0)}}init(t={},o){this.isInitializing=!0,typeof t=="function"&&(o=t,t={}),t.defaultNS==null&&t.ns&&(X1(t.ns)?t.defaultNS=t.ns:t.ns.includes("translation")||(t.defaultNS=t.ns[0]));let a=j_();this.options={...a,...this.options,...P31(t)},this.options.interpolation={...a.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=a.overloadTranslationOptionHandler);let i=f=>f?typeof f=="function"?new f:f:null;if(!this.options.isClone){this.modules.logger?n7.init(i(this.modules.logger),this.options):n7.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:f=H_;let m=new Eb(this.options);this.store=new Tb(this.options.resources,this.options);let d=this.services;d.logger=n7,d.resourceStore=this.store,d.languageUtils=m,d.pluralResolver=new U_(m,{prepend:this.options.pluralSeparator}),f&&(d.formatter=i(f),d.formatter.init&&d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new _b(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new G_(i(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",(u,...p)=>{this.emit(u,...p)}),this.modules.languageDetector&&(d.languageDetector=i(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=i(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new Rb(this.services,this.options),this.translator.on("*",(u,...p)=>{this.emit(u,...p)}),this.modules.external.forEach(u=>{u.init&&u.init(this)})}if(this.format=this.options.interpolation.format,o||(o=Mb),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(f=>{this[f]=(...m)=>this.store[f](...m)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=(...m)=>(this.store[f](...m),this)});let c=Zf(),l=()=>{let f=(m,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(d),o(m,d)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),c}loadResources(t,o=Mb){let a=o,i=X1(t)?t:this.language;if(typeof t=="function"&&(a=t),!this.options.resources||this.options.partialBundledLanguages){if(i?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return a();let r=[],n=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(f=>{f!=="cimode"&&(r.includes(f)||r.push(f))})};i?n(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>n(l)),this.options.preload?.forEach?.(c=>n(c)),this.services.backendConnector.load(r,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),a(c)})}else a(null)}reloadResources(t,o,a){let i=Zf();return typeof t=="function"&&(a=t,t=void 0),typeof o=="function"&&(a=o,o=void 0),t||(t=this.languages),o||(o=this.options.ns),a||(a=Mb),this.services.backendConnector.reload(t,o,r=>{i.resolve(),a(r)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&O31.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!["cimode","dev"].includes(t)){for(let o=0;o<this.languages.length;o++){let a=this.languages[o];if(!["cimode","dev"].includes(a)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}!this.resolvedLanguage&&!this.languages.includes(t)&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,o){this.isLanguageChangingTo=t;let a=Zf();this.emit("languageChanging",t);let i=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},r=(c,l)=>{l?this.isLanguageChangingTo===t&&(i(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,a.resolve((...f)=>this.t(...f)),o&&o(c,(...f)=>this.t(...f))},n=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);let l=X1(c)?c:c&&c[0],f=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(X1(c)?[c]:c);f&&(this.language||i(f),this.translator.language||this.translator.changeLanguage(f),this.services.languageDetector?.cacheUserLanguage?.(f)),this.loadResources(f,m=>{r(m,f)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?n(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(n):this.services.languageDetector.detect(n):n(t),a}getFixedT(t,o,a,i){let r=i?.scopeNs,n=(c,l,...f)=>{let m;typeof l!="object"?m=this.options.overloadTranslationOptionHandler([c,l].concat(f)):m={...l},m.lng=m.lng||n.lng,m.lngs=m.lngs||n.lngs;let d=m.ns!==void 0&&m.ns!==null;m.ns=m.ns||n.ns,m.keyPrefix!==""&&(m.keyPrefix=m.keyPrefix||a||n.keyPrefix);let u={...this.options,...m};Array.isArray(r)&&!d&&(u.ns=r),typeof m.keyPrefix=="function"&&(m.keyPrefix=za(m.keyPrefix,u));let p=this.options.keySeparator||".",b;return m.keyPrefix&&Array.isArray(c)?b=c.map(g=>(typeof g=="function"&&(g=za(g,u)),`${m.keyPrefix}${p}${g}`)):(typeof c=="function"&&(c=za(c,u)),b=m.keyPrefix?`${m.keyPrefix}${p}${c}`:c),this.t(b,m)};return X1(t)?n.lng=t:n.lngs=t,n.ns=o,n.keyPrefix=a,n}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,o={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let a=o.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,r=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;let n=(c,l)=>{let f=this.services.backendConnector.state[`${c}|${l}`];return f===-1||f===0||f===2};if(o.precheck){let c=o.precheck(this,n);if(c!==void 0)return c}return!!(this.hasResourceBundle(a,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||n(a,t)&&(!i||n(r,t)))}loadNamespaces(t,o){let a=Zf();return this.options.ns?(X1(t)&&(t=[t]),t.forEach(i=>{this.options.ns.includes(i)||this.options.ns.push(i)}),this.loadResources(i=>{a.resolve(),o&&o(i)}),a):(o&&o(),Promise.resolve())}loadLanguages(t,o){let a=Zf();X1(t)&&(t=[t]);let i=this.options.preload||[],r=t.filter(n=>!i.includes(n)&&this.services.languageUtils.isSupportedCode(n));return r.length?(this.options.preload=i.concat(r),this.loadResources(n=>{a.resolve(),o&&o(n)}),a):(o&&o(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{let i=new Intl.Locale(t);if(i&&i.getTextInfo){let r=i.getTextInfo();if(r&&r.direction)return r.direction}}catch{}let o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services?.languageUtils||new Eb(j_());return t.toLowerCase().indexOf("-latn")>1?"ltr":o.includes(a.getLanguagePartFromCode(t))||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},o){let a=new e(t,o);return a.createInstance=e.createInstance,a}cloneInstance(t={},o=Mb){let a=t.forkResourceStore;a&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},r=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(r.logger=r.logger.clone(t)),["store","services","language"].forEach(c=>{r[c]=this[c]}),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},a){let c=Object.keys(this.store.data).reduce((l,f)=>(l[f]={...this.store.data[f]},l[f]=Object.keys(l[f]).reduce((m,d)=>(m[d]={...l[f][d]},m),l[f]),l),{});r.store=new Tb(c,i),r.services.resourceStore=r.store}if(t.interpolation){let l={...j_().interpolation,...this.options.interpolation,...t.interpolation},f={...i,interpolation:l};r.services.interpolator=new _b(f)}return r.translator=new Rb(r.services,i),r.translator.on("*",(c,...l)=>{r.emit(c,...l)}),r.init(i,o),r.translator.options=i,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},R0=K_.createInstance(),I31=R0.createInstance,WV2=R0.dir,ZV2=R0.init,JV2=R0.loadResources,XV2=R0.reloadResources,YV2=R0.use,QV2=R0.changeLanguage,eU2=R0.getFixedT,tU2=R0.t,oU2=R0.exists,aU2=R0.setDefaultNamespace,iU2=R0.hasLoadedNamespace,rU2=R0.loadNamespaces,nU2=R0.loadLanguages;s();var{slice:gE1,forEach:vE1}=[];function bE1(e){return vE1.call(gE1.call(arguments,1),t=>{if(t)for(let o in t)e[o]===void 0&&(e[o]=t[o])}),e}function yE1(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(o=>o.test(e))}var D31=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,kE1=function(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},i=encodeURIComponent(t),r=`${e}=${i}`;if(a.maxAge>0){let n=a.maxAge-0;if(Number.isNaN(n))throw new Error("maxAge should be a Number");r+=`; Max-Age=${Math.floor(n)}`}if(a.domain){if(!D31.test(a.domain))throw new TypeError("option domain is invalid");r+=`; Domain=${a.domain}`}if(a.path){if(!D31.test(a.path))throw new TypeError("option path is invalid");r+=`; Path=${a.path}`}if(a.expires){if(typeof a.expires.toUTCString!="function")throw new TypeError("option expires is invalid");r+=`; Expires=${a.expires.toUTCString()}`}if(a.httpOnly&&(r+="; HttpOnly"),a.secure&&(r+="; Secure"),a.sameSite)switch(typeof a.sameSite=="string"?a.sameSite.toLowerCase():a.sameSite){case!0:r+="; SameSite=Strict";break;case"lax":r+="; SameSite=Lax";break;case"strict":r+="; SameSite=Strict";break;case"none":r+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return a.partitioned&&(r+="; Partitioned"),r},N31={create(e,t,o,a){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};o&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+o*60*1e3)),a&&(i.domain=a),document.cookie=kE1(e,t,i)},read(e){let t=`${e}=`,o=document.cookie.split(";");for(let a=0;a<o.length;a++){let i=o[a];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null},remove(e,t){this.create(e,"",-1,t)}},xE1={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return N31.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:o,cookieMinutes:a,cookieDomain:i,cookieOptions:r}=t;o&&typeof document<"u"&&N31.create(o,e,a,i,r)}},zE1={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,o;if(typeof window<"u"){let{search:a}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(a=window.location.hash.substring(window.location.hash.indexOf("?")));let r=a.substring(1).split("&");for(let n=0;n<r.length;n++){let c=r[n].indexOf("=");c>0&&r[n].substring(0,c)===t&&(o=r[n].substring(c+1))}}return o}},wE1={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:o}=e,a;if(typeof window<"u"){let{hash:i}=window.location;if(i&&i.length>2){let r=i.substring(1);if(t){let n=r.split("&");for(let c=0;c<n.length;c++){let l=n[c].indexOf("=");l>0&&n[c].substring(0,l)===t&&(a=n[c].substring(l+1))}}if(a)return a;if(!a&&o>-1){let n=i.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof o=="number"?o:0]?.replace("/",""):void 0}}}return a}},In=null,L31=()=>{if(In!==null)return In;try{if(In=typeof window<"u"&&window.localStorage!==null,!In)return!1;let e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{In=!1}return In},ME1={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&L31())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:o}=t;o&&L31()&&window.localStorage.setItem(o,e)}},Dn=null,j31=()=>{if(Dn!==null)return Dn;try{if(Dn=typeof window<"u"&&window.sessionStorage!==null,!Dn)return!1;let e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Dn=!1}return Dn},SE1={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&j31())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:o}=t;o&&j31()&&window.sessionStorage.setItem(o,e)}},TE1={name:"navigator",lookup(e){let t=[];if(typeof navigator<"u"){let{languages:o,userLanguage:a,language:i}=navigator;if(o)for(let r=0;r<o.length;r++)t.push(o[r]);a&&t.push(a),i&&t.push(i)}return t.length>0?t:void 0}},RE1={name:"htmlTag",lookup(e){let{htmlTag:t}=e,o,a=t||(typeof document<"u"?document.documentElement:null);return a&&typeof a.getAttribute=="function"&&(o=a.getAttribute("lang")),o}},EE1={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;let o=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(o)?o[typeof t=="number"?t:0]?.replace("/",""):void 0}},_E1={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e,o=typeof t=="number"?t+1:1,a=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(a)return a[o]}},F31=!1;try{document.cookie,F31=!0}catch{}var B31=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];F31||B31.splice(1,1);var CE1=()=>({order:B31,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}),Yf=class{constructor(t){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,o)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=bE1(o,this.options||{},CE1()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=i=>i.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=a,this.addDetector(xE1),this.addDetector(zE1),this.addDetector(ME1),this.addDetector(SE1),this.addDetector(TE1),this.addDetector(RE1),this.addDetector(EE1),this.addDetector(_E1),this.addDetector(wE1)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,o=[];return t.forEach(a=>{if(this.detectors[a]){let i=this.detectors[a].lookup(this.options);i&&typeof i=="string"&&(i=[i]),i&&(o=o.concat(i))}}),o=o.filter(a=>a!=null&&!yE1(a)).map(a=>this.options.convertDetectedLanguage(a)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?o:o.length>0?o[0]:null}cacheUserLanguage(t){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;o&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||o.forEach(a=>{this.detectors[a]&&this.detectors[a].cacheUserLanguage(t,this.options)}))}};Yf.type="languageDetector";s();s();var NE1=j(U(),1);s();var em=j(U(),1);s();var PE1=j(U31());s();var Cb=(e,t,o,a)=>{let i=[o,{code:t,...a||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);Ve(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},H31={},r9=(e,t,o,a)=>{Ve(o)&&H31[o]||(Ve(o)&&(H31[o]=new Date),Cb(e,t,o,a))},G31=(e,t)=>()=>{if(e.isInitialized)t();else{let o=()=>{setTimeout(()=>{e.off("initialized",o)},0),t()};e.on("initialized",o)}},Pb=(e,t,o)=>{e.loadNamespaces(t,G31(e,o))},q_=(e,t,o,a)=>{if(Ve(o)&&(o=[o]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Pb(e,o,a);o.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,G31(e,a))},K31=(e,t,o={})=>!t.languages||!t.languages.length?(r9(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:o.lng,precheck:(a,i)=>{if(o.bindI18n&&o.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!i(a.isLanguageChangingTo,e))return!1}});var Ve=e=>typeof e=="string",W_=e=>typeof e=="object"&&e!==null;s();s();var AE1=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,OE1={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},$E1=e=>OE1[e],Z_=e=>e.replace(AE1,$E1);var J_={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Z_,transDefaultProps:void 0},Ab=(e={})=>{J_={...J_,...e}},Qf=()=>J_;s();var q31,Ob=e=>{q31=e},Ue=()=>q31;s();var W31=j(U(),1);s();var $b={type:"3rdParty",init(e){Ab(e.options.react),Ob(e)}};var T8=(0,W31.createContext)(),Ib=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(o=>{this.usedNamespaces[o]||(this.usedNamespaces[o]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}};s();var Q31=j(U(),1);s();var wa=j(U(),1);s();s();var Nn=class e extends Error{constructor(t,o,a){super(t),this.name="TranslationParserError",this.position=o,this.translationString=a,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};s();var Z31={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&copy;":"©","&reg;":"®","&trade;":"™","&hellip;":"…","&ndash;":"–","&mdash;":"—","&lsquo;":"‘","&rsquo;":"’","&sbquo;":"‚","&ldquo;":"“","&rdquo;":"”","&bdquo;":"„","&dagger;":"†","&Dagger;":"‡","&bull;":"•","&prime;":"′","&Prime;":"″","&lsaquo;":"‹","&rsaquo;":"›","&sect;":"§","&para;":"¶","&middot;":"·","&ensp;":" ","&emsp;":" ","&thinsp;":" ","&euro;":"€","&pound;":"£","&yen;":"¥","&cent;":"¢","&curren;":"¤","&times;":"×","&divide;":"÷","&minus;":"−","&plusmn;":"±","&ne;":"≠","&le;":"≤","&ge;":"≥","&asymp;":"≈","&equiv;":"≡","&infin;":"∞","&int;":"∫","&sum;":"∑","&prod;":"∏","&radic;":"√","&part;":"∂","&permil;":"‰","&deg;":"°","&micro;":"µ","&larr;":"←","&uarr;":"↑","&rarr;":"→","&darr;":"↓","&harr;":"↔","&crarr;":"↵","&lArr;":"⇐","&uArr;":"⇑","&rArr;":"⇒","&dArr;":"⇓","&hArr;":"⇔","&alpha;":"α","&beta;":"β","&gamma;":"γ","&delta;":"δ","&epsilon;":"ε","&zeta;":"ζ","&eta;":"η","&theta;":"θ","&iota;":"ι","&kappa;":"κ","&lambda;":"λ","&mu;":"μ","&nu;":"ν","&xi;":"ξ","&omicron;":"ο","&pi;":"π","&rho;":"ρ","&sigma;":"σ","&tau;":"τ","&upsilon;":"υ","&phi;":"φ","&chi;":"χ","&psi;":"ψ","&omega;":"ω","&Alpha;":"Α","&Beta;":"Β","&Gamma;":"Γ","&Delta;":"Δ","&Epsilon;":"Ε","&Zeta;":"Ζ","&Eta;":"Η","&Theta;":"Θ","&Iota;":"Ι","&Kappa;":"Κ","&Lambda;":"Λ","&Mu;":"Μ","&Nu;":"Ν","&Xi;":"Ξ","&Omicron;":"Ο","&Pi;":"Π","&Rho;":"Ρ","&Sigma;":"Σ","&Tau;":"Τ","&Upsilon;":"Υ","&Phi;":"Φ","&Chi;":"Χ","&Psi;":"Ψ","&Omega;":"Ω","&Agrave;":"À","&Aacute;":"Á","&Acirc;":"Â","&Atilde;":"Ã","&Auml;":"Ä","&Aring;":"Å","&AElig;":"Æ","&Ccedil;":"Ç","&Egrave;":"È","&Eacute;":"É","&Ecirc;":"Ê","&Euml;":"Ë","&Igrave;":"Ì","&Iacute;":"Í","&Icirc;":"Î","&Iuml;":"Ï","&ETH;":"Ð","&Ntilde;":"Ñ","&Ograve;":"Ò","&Oacute;":"Ó","&Ocirc;":"Ô","&Otilde;":"Õ","&Ouml;":"Ö","&Oslash;":"Ø","&Ugrave;":"Ù","&Uacute;":"Ú","&Ucirc;":"Û","&Uuml;":"Ü","&Yacute;":"Ý","&THORN;":"Þ","&szlig;":"ß","&agrave;":"à","&aacute;":"á","&acirc;":"â","&atilde;":"ã","&auml;":"ä","&aring;":"å","&aelig;":"æ","&ccedil;":"ç","&egrave;":"è","&eacute;":"é","&ecirc;":"ê","&euml;":"ë","&igrave;":"ì","&iacute;":"í","&icirc;":"î","&iuml;":"ï","&eth;":"ð","&ntilde;":"ñ","&ograve;":"ò","&oacute;":"ó","&ocirc;":"ô","&otilde;":"õ","&ouml;":"ö","&oslash;":"ø","&ugrave;":"ù","&uacute;":"ú","&ucirc;":"û","&uuml;":"ü","&yacute;":"ý","&thorn;":"þ","&yuml;":"ÿ","&iexcl;":"¡","&iquest;":"¿","&fnof;":"ƒ","&circ;":"ˆ","&tilde;":"˜","&OElig;":"Œ","&oelig;":"œ","&Scaron;":"Š","&scaron;":"š","&Yuml;":"Ÿ","&ordf;":"ª","&ordm;":"º","&macr;":"¯","&acute;":"´","&cedil;":"¸","&sup1;":"¹","&sup2;":"²","&sup3;":"³","&frac14;":"¼","&frac12;":"½","&frac34;":"¾","&spades;":"♠","&clubs;":"♣","&hearts;":"♥","&diams;":"♦","&loz;":"◊","&oline;":"‾","&frasl;":"⁄","&weierp;":"℘","&image;":"ℑ","&real;":"ℜ","&alefsym;":"ℵ"},LE1=new RegExp(Object.keys(Z31).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g"),J31=e=>e.replace(LE1,t=>Z31[t]).replace(/&#(\d+);/g,(t,o)=>String.fromCharCode(parseInt(o,10))).replace(/&#x([0-9a-fA-F]+);/g,(t,o)=>String.fromCharCode(parseInt(o,16)));s();var X31=e=>{let t=[],o=0,a="",i=()=>{a&&(t.push({type:"Text",value:a,position:o-a.length}),a="")};for(;o<e.length;){let r=e[o];if(r==="<"){let n=e.slice(o).match(/^<(\d+)>/);if(n)i(),t.push({type:"TagOpen",value:n[0],position:o,tagNumber:parseInt(n[1],10)}),o+=n[0].length;else{let c=e.slice(o).match(/^<\/(\d+)>/);c?(i(),t.push({type:"TagClose",value:c[0],position:o,tagNumber:parseInt(c[1],10)}),o+=c[0].length):(a+=r,o+=1)}}else a+=r,o+=1}return i(),t};s();var tm=j(U(),1);var jE1=(e,t,o)=>{let{type:a,props:i={}}=e;if(i.children&&Array.isArray(i.children)&&o){let{children:r,...n}=i;return tm.default.createElement(a,n,...t)}return t.length===0?tm.default.createElement(a,i):t.length===1?tm.default.createElement(a,i,t[0]):tm.default.createElement(a,i,...t)},Y31=(e,t=[])=>{if(!e)return[];let o=X31(e),a=[],i=[],r=new Set,n=()=>{if(i.length===0)return t;let c=i[i.length-1];return c.declaration.props?.children&&Array.isArray(c.declaration.props.children)?c.declaration.props.children:c.declarations};if(o.forEach(c=>{switch(c.type){case"Text":{let l=J31(c.value);(i.length>0?i[i.length-1].children:a).push(l)}break;case"TagOpen":{let{tagNumber:l}=c,f=n(),m=f[l];if(!m){r.add(l);let d=`<${l}>`;(i.length>0?i[i.length-1].children:a).push(d);break}i.push({tagNumber:l,children:[],position:c.position,declaration:m,declarations:f})}break;case"TagClose":{let{tagNumber:l}=c;if(r.has(l)){let u=`</${l}>`;(i.length>0?i[i.length-1].children:a).push(u),r.delete(l);break}if(i.length===0)throw new Nn(`Unexpected closing tag </${l}> at position ${c.position}`,c.position,e);let f=i.pop();if(f.tagNumber!==l)throw new Nn(`Mismatched tags: expected </${f.tagNumber}> but got </${l}> at position ${c.position}`,c.position,e);let m=jE1(f.declaration,f.children,f.declarations);(i.length>0?i[i.length-1].children:a).push(m)}break}}),i.length>0){let c=i[i.length-1];throw new Nn(`Unclosed tag <${c.tagNumber}> at position ${c.position}`,c.position,e)}return a};function Db({i18nKey:e,defaultTranslation:t,content:o,ns:a,values:i={},i18n:r,t:n}){let c=r||Ue();if(!c)return r9(c,"NO_I18NEXT_INSTANCE","IcuTrans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:e}),wa.default.createElement(wa.default.Fragment,{},t);let l=n||c.t?.bind(c)||(u=>u),f=a||l.ns||c.options?.defaultNS;f=Ve(f)?[f]:f||["translation"];let m=i;c.options?.interpolation?.defaultVariables&&(m=i&&Object.keys(i).length>0?{...i,...c.options.interpolation.defaultVariables}:{...c.options.interpolation.defaultVariables});let d=l(e,{defaultValue:t,...m,ns:f});try{let u=Y31(d,o);return wa.default.createElement(wa.default.Fragment,{},...u)}catch(u){return Cb(c,"ICU_TRANS_RENDER_ERROR",`IcuTrans component error for key "${e}": ${u.message}`,{i18nKey:e,error:u}),wa.default.createElement(wa.default.Fragment,{},d)}}Db.displayName="IcuTransWithoutContext";function e01({i18nKey:e,defaultTranslation:t,content:o,ns:a,values:i={},i18n:r,t:n}){let{i18n:c,defaultNS:l}=(0,Q31.useContext)(T8)||{},f=r||c||Ue(),m=n||f?.t.bind(f);return Db({i18nKey:e,defaultTranslation:t,content:o,ns:a||m?.ns||l||f?.options?.defaultNS,values:i,i18n:f,t:n})}e01.displayName="IcuTrans";s();var E0=j(U(),1),i01=j(Y_(),1);var ZE1=(e,t)=>{if(Ve(t))return t;if(W_(t)&&Ve(t.defaultValue))return t.defaultValue;if(typeof e=="function")return"";if(Array.isArray(e)){let o=e[e.length-1];return typeof o=="function"?"":o}return e},JE1={t:ZE1,ready:!1},XE1=()=>()=>{},He=(e,t={})=>{let{i18n:o}=t,{i18n:a,defaultNS:i}=(0,E0.useContext)(T8)||{},r=o||a||Ue();r&&!r.reportNamespaces&&(r.reportNamespaces=new Ib),r||r9(r,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");let n=(0,E0.useMemo)(()=>({...Qf(),...r?.options?.react,...t}),[r,t]),{useSuspense:c,keyPrefix:l}=n,f=e||i||r?.options?.defaultNS,m=Ve(f)?[f]:f||["translation"],d=(0,E0.useMemo)(()=>m,m);r?.reportNamespaces?.addUsedNamespaces?.(d);let u=(0,E0.useRef)(0),p=(0,E0.useCallback)(M=>{if(!r)return XE1;let{bindI18n:S,bindI18nStore:N}=n,P=()=>{u.current+=1,M()};return S&&r.on(S,P),N&&r.store.on(N,P),()=>{S&&S.split(" ").forEach(R=>r.off(R,P)),N&&N.split(" ").forEach(R=>r.store.off(R,P))}},[r,n]),b=(0,E0.useRef)(),g=(0,E0.useCallback)(()=>{if(!r)return JE1;let M=!!(r.isInitialized||r.initializedStoreOnce)&&d.every(_=>K31(_,r,n)),S=t.lng||r.language,N=u.current,P=b.current;if(P&&P.ready===M&&P.lng===S&&P.keyPrefix===l&&P.revision===N)return P;let A={t:r.getFixedT(S,n.nsMode==="fallback"?d:d[0],l,{scopeNs:d}),ready:M,lng:S,keyPrefix:l,revision:N};return b.current=A,A},[r,d,l,n,t.lng]),[x,y]=(0,E0.useState)(0),{t:v,ready:k}=(0,i01.useSyncExternalStore)(p,g,g);(0,E0.useEffect)(()=>{if(r&&!k&&!c){let M=()=>y(S=>S+1);t.lng?q_(r,t.lng,d,M):Pb(r,d,M)}},[r,t.lng,d,k,c,x]);let w=r||{},T=(0,E0.useRef)(null),O=(0,E0.useRef)(),C=M=>{let S=Object.getOwnPropertyDescriptors(M);S.__original&&delete S.__original;let N=Object.create(Object.getPrototypeOf(M),S);if(!Object.prototype.hasOwnProperty.call(N,"__original"))try{Object.defineProperty(N,"__original",{value:M,writable:!1,enumerable:!1,configurable:!1})}catch{}return N},z=(0,E0.useMemo)(()=>{let M=w,S=M?.language,N=M;M&&(T.current&&T.current.__original===M?O.current!==S?(N=C(M),T.current=N,O.current=S):N=T.current:(N=C(M),T.current=N,O.current=S));let P=!k&&!c?(...A)=>(r9(r,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),v(...A)):v,R=[P,N,k];return R.t=P,R.i18n=N,R.ready=k,R},[v,w,k,w.resolvedLanguage,w.language,w.languages]);if(r&&c&&!k)throw new Promise(M=>{let S=()=>M();t.lng?q_(r,t.lng,d,S):Pb(r,d,S)});return z};s();var r01=j(U(),1);s();s();var Nb=j(U(),1);function Lb({i18n:e,defaultNS:t,children:o}){let a=(0,Nb.useMemo)(()=>({i18n:e,defaultNS:t}),[e,t]);return(0,Nb.createElement)(T8.Provider,{value:a},o)}s();var o_1=j(U(),1);s();var QE1=j(U(),1);s();var $3="translations";var am="https://cdn.jsdelivr.net/npm/@zappway/embeds@latest/dist/locales",aC=["ar","az","bg","bn","ca","cs","da","de","el","eo","es","et","fa","fi","fr","ga","he","hi","hu","id","it","ja","ko","lt","lv","ms","nb","nl","pl","pt","ro","ru","sk","sl","sv","th","tl","tr","uk","ur","zh","en","pt-BR"],a_1=new Set(aC),im={main:{localeDirectory:"locales-ZappWay",splitDirectories:["i18n-split"],browserDirectories:[],cdnDirectory:"locales-ZappWay",cdnSplit:!0},lp:{localeDirectory:"locales-ZappWay-LP",splitDirectories:["i18n-split-lp","i18n-split-zappway-lp"],browserDirectories:[],cdnDirectory:"locales-ZappWay-LP",cdnSplit:!1},integrations:{localeDirectory:"locales-Integrations",splitDirectories:["i18n-split-integrations"],browserDirectories:[],cdnDirectory:"locales-Integrations",cdnSplit:!1},emails:{localeDirectory:"locales-Emails",splitDirectories:["i18n-split-emails"],browserDirectories:[],cdnDirectory:"locales-Emails",cdnSplit:!1},workers:{localeDirectory:"locales-Workers",splitDirectories:["i18n-split-workers"],browserDirectories:[],cdnDirectory:"locales-Workers",cdnSplit:!1},zappflux:{localeDirectory:"locales-ZappFlux",splitDirectories:["i18n-split-zappflux"],browserDirectories:[],cdnDirectory:"locales-ZappFlux",cdnSplit:!1},"zappflux-lp":{localeDirectory:"locales-ZappFlux-LP",splitDirectories:["i18n-split-zappflux-lp"],browserDirectories:[],cdnDirectory:"locales-ZappFlux-LP",cdnSplit:!1},"zappflux-templates":{localeDirectory:"locales-ZappFlux-Templates",splitDirectories:["i18n-split-zappflux-templates"],browserDirectories:[],cdnDirectory:"locales-ZappFlux-Templates",cdnSplit:!1,namespaceFiles:!0},"pitch-deck":{localeDirectory:"locales-PitchDeck",splitDirectories:["i18n-split-pitch-deck"],browserDirectories:[],cdnDirectory:"locales-PitchDeck",cdnSplit:!1},reports:{localeDirectory:"locales-Reports",splitDirectories:["i18n-split-reports"],browserDirectories:[],cdnDirectory:"locales-Reports",cdnSplit:!1},rag:{localeDirectory:"locales-RAG",splitDirectories:["i18n-split-rag"],browserDirectories:[],cdnDirectory:"locales-RAG",cdnSplit:!1}},Hb={lp:"lp",rag:"rag",flow:"zappflux",emails:"emails",workers:"workers",reports:"reports",zappflux:"zappflux",integrations:"integrations","pitch-deck":"pitch-deck","zappflux-lp":"zappflux-lp","zappflux-templates":"zappflux-templates",WhatsAppSettings:"integrations",WhatsAppIntegrationPage:"integrations",WhatsAppBusiness_IntegrationSettings:"integrations",TelegramSettings:"integrations",Telegram_IntegrationSettings:"integrations",InstagramSettings:"integrations",Instagram_IntegrationSettings:"integrations",MessengerSettings:"integrations",Messenger_IntegrationSettings:"integrations",TikTokSettings:"integrations",TikTok_IntegrationSettings:"integrations",ZendeskSettings:"integrations",Zendesk_IntegrationSettings:"integrations",SlackSettings:"integrations",ShopifySettings:"integrations",ConnectWhatsApp:"integrations",QRCode:"integrations",crisp:"integrations",crispConfig:"integrations",crispSettingsModal:"integrations"},jb=null,om=null,c7=null,tC=null,jn=null,n9=null,_0=null,oC=null,i_1=globalThis.eval;function r_1(){if(c7)return c7;try{if(typeof __non_webpack_require__=="function")c7=__non_webpack_require__;else if(typeof G8=="function")c7=G8;else if(globalThis.require)c7=globalThis.require;else{let e="require";c7=globalThis[e]||i_1(e)}return c7}catch(e){return console.error(" [i18n-runtime-loader] Critical: Failed to obtain require function",e),null}}function Fn(){if(typeof window<"u")return!1;if(jb&&om)return!0;try{let e=r_1();return e?(jb=e("fs"),om=e("path"),tC=jb.readFileSync,jn=jb.existsSync,n9=om.join,_0=om.resolve,oC=om.dirname,!0):!1}catch{return!1}}var Fb=new Map,n01=new Map;function iC(e){if(Fn(),!jn)return[];let t=new Set;return e.filter(o=>!!o).filter(o=>t.has(o)||!jn(o)?!1:(t.add(o),!0))}function n_1(e){if(Fn(),!(!c7||!oC))try{let o=c7.resolve.call(c7,`${e}/package.json`);return oC(o)}catch{return}}var Bb=null;function c_1(){if(Bb)return Bb;if(Fn(),!_0)return[];let e=process.cwd(),t=h.ZW_I18N_CACHE_ROOT;return Bb=iC([t,_0(e,".next/cache"),_0(e,"../.next/cache"),_0(e,"../../.next/cache"),_0(e,"apps/zappway/dashboard/.next/cache"),_0(e,"packages/zappflux/packages/app/.next/cache"),"/var/task/.next/cache","/var/task/apps/zappway/dashboard/.next/cache"]),Bb}var Vb=null;function l_1(){if(Vb)return Vb;if(Fn(),!_0||!n9)return[];let e=process.cwd(),t=n_1("@zappway/lib");return Vb=iC([t,_0(e,"packages/zappway/lib"),_0(e,"../packages/zappway/lib"),_0(e,"../../packages/zappway/lib"),_0(e,"../../../packages/zappway/lib"),_0(e,"../../../../packages/zappway/lib"),_0(e,"node_modules/@zappway/lib"),_0(e,"../node_modules/@zappway/lib"),_0(e,"../../node_modules/@zappway/lib"),_0(e,"../../../node_modules/@zappway/lib"),_0(e,"../../../../node_modules/@zappway/lib")]).filter(o=>jn(n9(o,"locales"))),Vb}var Q_=new Map;function c01(e){if(Q_.has(e))return Q_.get(e);if(Fn(),!tC||!jn||!jn(e))return null;try{let t=tC(e,"utf8"),o=JSON.parse(t);return Q_.set(e,o),o}catch{return null}}function l01(e,t){if(!e)return null;let o=t||$3;if(o===$3)return e;if(e[o])return e[o];let a=o.split("."),i=e,r=!0;for(let n of a)if(i&&typeof i=="object"&&n in i)i=i[n];else{r=!1;break}return r&&i&&typeof i=="object"?i:o!==$3?{}:e}var Ub=null;function s_1(){return Ub||(Ub=iC([...c_1(),...l_1()]),Ub)}function Gb(e){if(!e)return"en";if(e==="pt-BR"||e==="pt")return e;let t=e.split("-")[0].toLowerCase();return a_1.has(t)?t:"en"}function rC(e,t,o){if(typeof window<"u"||!Fn())return{};let a=Gb(e),i=o||$3,r=`node:${a}:${t}:${i}`,n=Fb.get(r);if(n)return n;let c=im[t];if(t==="main"&&i!==$3&&Hb[i])return Fb.set(r,{}),{};let l=s_1(),f=[];for(let d of l){for(let u of c.splitDirectories)f.push(n9(d,u,a,`${i}.json`)),f.push(n9(d,"locales",u,a,`${i}.json`));f.push(n9(d,c.localeDirectory,a,`${i}.json`)),f.push(n9(d,"locales",c.localeDirectory,a,`${i}.json`))}for(let d of f){let u=c01(d);if(u&&Object.keys(u).length>0)return Fb.set(r,u),u}let m={};for(let d of l){let u=n9(d,"locales",c.localeDirectory,a,"translations.json"),p=c01(u);if(p&&(m=l01(p,o)||{},Object.keys(m).length>0))break}return Object.keys(m).length===0&&a!=="en"?rC("en",t,o):(Fb.set(r,m),m)}function nC(e,t,o){let a=t.map(i=>rC(e,i,o));return f01(a)}async function eC(e,t=2e3){let o=new AbortController,a=setTimeout(()=>o.abort(),t);try{let i=await fetch(`${e}?v=${Date.now()}`,{signal:o.signal,cache:"force-cache"});return clearTimeout(a),i.ok?await i.json():null}catch{return clearTimeout(a),null}}async function f_1(e,t,o){if(typeof window>"u")return rC(e,t,o);let a=Gb(e),i=o||$3,r=`browser:${a}:${t}:${i}`,n=n01.get(r);if(n)return await n||{};let c=im[t],l=(async()=>{for(let u of c.browserDirectories){let p=await eC(`/locales-runtime/${u}/${a}/${i}.json`);if(p)return p}let f=await eC(`/api/i18n/${a}/${i}`);if(f)return f;let m=c.cdnSplit&&i!==$3&&!i.includes(".")?`${am}/${c.cdnDirectory}/${a}/${i}.json`:`${am}/${c.cdnDirectory}/${a}/translations.json`,d=await eC(m);return d?l01(d,o)||{}:{}})();return n01.set(r,l),l||{}}async function Kb(e,t,o){let a=t.map(r=>f_1(e,r,o)),i=await Promise.all(a);return f01(i)}function s01(e,t){let o={...e};for(let[a,i]of Object.entries(t||{})){let r=o[a];r&&typeof r=="object"&&i&&typeof i=="object"&&!Array.isArray(i)?o[a]=s01(r,i):o[a]=i}return o}function f01(e){return e.reduce((t,o)=>s01(t,o||{}),{})}var m_1={type:"backend",init:()=>{},read:(e,t,o)=>{Kb(e,["main"],t).then(a=>{t===$3&&a&&Object.entries(a).forEach(([i,r])=>{i!==$3&&r&&typeof r=="object"&&!Array.isArray(r)&&R0.addResourceBundle(e,i,r,!0,!0)}),o(null,a)}).catch(a=>{o(a,null)})}};R0.use(m_1).use(Yf).use($b).init({fallbackLng:"en",supportedLngs:aC,ns:[$3],defaultNS:$3,partialBundledLanguages:!0,nonExplicitSupportedLngs:!0,nsSeparator:":",keySeparator:".",interpolation:{escapeValue:!1},detection:{order:["cookie","localStorage","sessionStorage","navigator"],lookupCookie:"NEXT_LOCALE",caches:["cookie"]}});var O2=R0;s();var P2=j(U());s();var g0=j(U(),1),xC=j(Y_(),1);s();s();var H0=j(U(),1);var c9={};X3(c9,{ERROR_REVALIDATE_EVENT:()=>d_1,FOCUS_EVENT:()=>m01,MUTATE_EVENT:()=>u01,RECONNECT_EVENT:()=>d01});s();var m01=0,d01=1,u01=2,d_1=3;s();var p01=Object.prototype.hasOwnProperty;function qb(e,t){var o,a;if(e===t)return!0;if(e&&t&&(o=e.constructor)===t.constructor){if(o===Date)return e.getTime()===t.getTime();if(o===RegExp)return e.toString()===t.toString();if(o===Array){if((a=e.length)===t.length)for(;a--&&qb(e[a],t[a]););return a===-1}if(!o||typeof e=="object"){a=0;for(o in e)if(p01.call(e,o)&&++a&&!p01.call(t,o)||!(o in t)||!qb(e[o],t[o]))return!1;return Object.keys(t).length===a}}return e!==e&&t!==t}var Ge=new WeakMap,Ke=()=>{},g3=Ke(),Bn=Object,v2=e=>e===g3,T5=e=>typeof e=="function",S4=(e,t)=>({...e,...t}),Qb=e=>T5(e.then),cC={},Wb={},pC="undefined",Vn=typeof window!=pC,Jb=typeof document!=pC,g01=Vn&&"Deno"in window,v01=()=>Vn&&typeof window.requestAnimationFrame!=pC,ey=(e,t)=>{let o=Ge.get(e);return[()=>!v2(t)&&e.get(t)||cC,a=>{if(!v2(t)){let i=e.get(t);t in Wb||(Wb[t]=i),o[5](t,S4(i,a),i||cC)}},o[6],()=>!v2(t)&&t in Wb?Wb[t]:!v2(t)&&e.get(t)||cC]},fC=!0,u_1=()=>fC,[mC,dC]=Vn&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Ke,Ke],p_1=()=>{let e=Jb&&document.visibilityState;return v2(e)||e!=="hidden"},h_1=e=>(Jb&&document.addEventListener("visibilitychange",e),mC("focus",e),()=>{Jb&&document.removeEventListener("visibilitychange",e),dC("focus",e)}),g_1=e=>{let t=()=>{fC=!0,e()},o=()=>{fC=!1};return mC("online",t),mC("offline",o),()=>{dC("online",t),dC("offline",o)}},b01={isOnline:u_1,isVisible:p_1},y01={initFocus:h_1,initReconnect:g_1},Un=!H0.default.useId,s9=!Vn||g01,hC=e=>v01()?window.requestAnimationFrame(e):setTimeout(e,1),R8=s9?H0.useEffect:H0.useLayoutEffect,lC=typeof navigator<"u"&&navigator.connection,uC=!s9&&lC&&(["slow-2g","2g"].includes(lC.effectiveType)||lC.saveData),Zb=new WeakMap,v_1=e=>Bn.prototype.toString.call(e),sC=(e,t)=>e===`[object ${t}]`,b_1=0,Xb=e=>{let t=typeof e,o=v_1(e),a=sC(o,"Date"),i=sC(o,"RegExp"),r=sC(o,"Object"),n,c;if(Bn(e)===e&&!a&&!i){if(n=Zb.get(e),n)return n;if(n=++b_1+"~",Zb.set(e,n),Array.isArray(e)){for(n="@",c=0;c<e.length;c++)n+=Xb(e[c])+",";Zb.set(e,n)}if(r){n="#";let l=Bn.keys(e).sort();for(;!v2(c=l.pop());)v2(e[c])||(n+=c+":"+Xb(e[c])+",");Zb.set(e,n)}}else n=a?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return n},Ma=e=>{if(T5(e))try{e=e()}catch{e=""}let t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Xb(e):"",[e,t]},y_1=0,l9=()=>++y_1;async function ty(...e){let[t,o,a,i]=e,r=S4({populateCache:!0,throwOnError:!0},typeof i=="boolean"?{revalidate:i}:i||{}),n=r.populateCache,c=r.rollbackOnError,l=r.optimisticData,f=u=>typeof c=="function"?c(u):c!==!1,m=r.throwOnError;if(T5(o)){let u=o,p=[],b=t.keys();for(let g of b)!/^\$(inf|sub)\$/.test(g)&&u(t.get(g)._k)&&p.push(g);return Promise.all(p.map(d))}return d(o);async function d(u){let[p]=Ma(u);if(!p)return;let[b,g]=ey(t,p),[x,y,v,k]=Ge.get(t),w=()=>{let A=x[p];return(T5(r.revalidate)?r.revalidate(b().data,u):r.revalidate!==!1)&&(delete v[p],delete k[p],A&&A[0])?A[0](2).then(()=>b().data):b().data};if(e.length<3)return w();let T=a,O,C=!1,z=l9();y[p]=[z,0];let M=!v2(l),S=b(),N=S.data,P=S._c,R=v2(P)?N:P;if(M&&(l=T5(l)?l(R,N):l,g({data:l,_c:R})),T5(T))try{T=T(R)}catch(A){O=A,C=!0}if(T&&Qb(T))if(T=await T.catch(A=>{O=A,C=!0}),z!==y[p][0]){if(C)throw O;return T}else C&&M&&f(O)&&(n=!0,g({data:R,_c:g3}));if(n&&!C)if(T5(n)){let A=n(T,R);g({data:A,error:g3,_c:g3})}else g({data:T,error:g3,_c:g3});if(y[p][1]=l9(),Promise.resolve(w()).then(()=>{g({_c:g3})}),C){if(m)throw O;return}return T}}var h01=(e,t)=>{for(let o in e)e[o][0]&&e[o][0](t)},gC=(e,t)=>{if(!Ge.has(e)){let o=S4(y01,t),a=Object.create(null),i=ty.bind(g3,e),r=Ke,n=Object.create(null),c=(m,d)=>{let u=n[m]||[];return n[m]=u,u.push(d),()=>u.splice(u.indexOf(d),1)},l=(m,d,u)=>{e.set(m,d);let p=n[m];if(p)for(let b of p)b(d,u)},f=()=>{if(!Ge.has(e)&&(Ge.set(e,[a,Object.create(null),Object.create(null),Object.create(null),i,l,c]),!s9)){let m=o.initFocus(setTimeout.bind(g3,h01.bind(g3,a,0))),d=o.initReconnect(setTimeout.bind(g3,h01.bind(g3,a,1)));r=()=>{m&&m(),d&&d(),Ge.delete(e)}}};return f(),[e,i,f,r]}return[e,Ge.get(e)[4]]},k_1=(e,t,o,a,i)=>{let r=o.errorRetryCount,n=i.retryCount,c=~~((Math.random()+.5)*(1<<(n<8?n:8)))*o.errorRetryInterval;!v2(r)&&n>r||setTimeout(a,c,i)},k01=qb,[oy,rm]=gC(new Map),ay=S4({onLoadingSlow:Ke,onSuccess:Ke,onError:Ke,onErrorRetry:k_1,onDiscarded:Ke,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:uC?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:uC?5e3:3e3,compare:k01,isPaused:()=>!1,cache:oy,mutate:rm,fallback:{}},b01),vC=(e,t)=>{let o=S4(e,t);if(t){let{use:a,fallback:i}=e,{use:r,fallback:n}=t;a&&r&&(o.use=a.concat(r)),i&&n&&(o.fallback=S4(i,n))}return o},Yb=(0,H0.createContext)({}),bC=e=>{let{value:t}=e,o=(0,H0.useContext)(Yb),a=T5(t),i=(0,H0.useMemo)(()=>a?t(o):t,[a,o,t]),r=(0,H0.useMemo)(()=>a?i:vC(o,i),[a,o,i]),n=i&&i.provider,c=(0,H0.useRef)(g3);n&&!c.current&&(c.current=gC(n(r.cache||oy),i));let l=c.current;return l&&(r.cache=l[0],r.mutate=l[1]),R8(()=>{if(l)return l[2]&&l[2](),l[3]},[]),(0,H0.createElement)(Yb.Provider,S4(e,{value:r}))};s();var x01="$inf$";var Hn=j(U(),1);var z01=Vn&&window.__SWR_DEVTOOLS_USE__,x_1=z01?window.__SWR_DEVTOOLS_USE__:[],z_1=()=>{z01&&(window.__SWR_DEVTOOLS_REACT__=Hn.default)},w01=e=>T5(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],iy=()=>{let e=(0,Hn.useContext)(Yb);return(0,Hn.useMemo)(()=>S4(ay,e),[e])};var w_1=e=>(t,o,a)=>e(t,o&&((...r)=>{let[n]=Ma(t),[,,,c]=Ge.get(oy);if(n.startsWith(x01))return o(...r);let l=c[n];return v2(l)?o(...r):(delete c[n],l)}),a),M_1=x_1.concat(w_1),M01=e=>function(...o){let a=iy(),[i,r,n]=w01(o),c=vC(a,n),l=e,{use:f}=c,m=(f||[]).concat(M_1);for(let d=m.length;d--;)l=m[d](l);return l(i,r||c.fetcher||null,c)},S01=(e,t,o)=>{let a=t[e]||(t[e]=[]);return a.push(o),()=>{let i=a.indexOf(o);i>=0&&(a[i]=a[a.length-1],a.pop())}},T01=(e,t)=>(...o)=>{let[a,i,r]=w01(o),n=(r.use||[]).concat(t);return e(a,i,{...r,use:n})};z_1();var S_1=()=>{},LG2=S_1();var yC=g0.default.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),kC={dedupe:!0},R01=Promise.resolve(g3),T_1=()=>Ke,R_1=(e,t,o)=>{let{cache:a,compare:i,suspense:r,fallbackData:n,revalidateOnMount:c,revalidateIfStale:l,refreshInterval:f,refreshWhenHidden:m,refreshWhenOffline:d,keepPreviousData:u,strictServerPrefetchWarning:p}=o,[b,g,x,y]=Ge.get(a),[v,k]=Ma(e),w=(0,g0.useRef)(!1),T=(0,g0.useRef)(!1),O=(0,g0.useRef)(v),C=(0,g0.useRef)(t),z=(0,g0.useRef)(o),M=()=>z.current,S=()=>M().isVisible()&&M().isOnline(),[N,P,R,A]=ey(a,v),_=(0,g0.useRef)({}).current,E=v2(n)?v2(o.fallback)?g3:o.fallback[v]:n,D=(S1,w1)=>{for(let j1 in _){let O1=j1;if(O1==="data"){if(!i(S1[O1],w1[O1])&&(!v2(S1[O1])||!i(n1,w1[O1])))return!1}else if(w1[O1]!==S1[O1])return!1}return!0},L=!w.current,$=(0,g0.useMemo)(()=>{let S1=N(),w1=A(),j1=u1=>{let F=S4(u1);return delete F._k,(()=>{if(!v||!t||M().isPaused())return!1;if(L&&!v2(c))return c;let W=v2(E)?F.data:E;return r?v2(W)||l:v2(W)||l})()?{isValidating:!0,isLoading:!0,...F}:F},O1=j1(S1),q1=S1===w1?O1:j1(w1),n2=O1;return[()=>{let u1=j1(N());return D(u1,n2)?(n2.data=u1.data,n2.isLoading=u1.isLoading,n2.isValidating=u1.isValidating,n2.error=u1.error,n2):(n2=u1,u1)},()=>q1]},[a,v]),B=(0,xC.useSyncExternalStore)((0,g0.useCallback)(S1=>R(v,(w1,j1)=>{D(j1,w1)||S1()}),[a,v]),$[0],$[1]),q=b[v]&&b[v].length>0,Q=B.data,o1=v2(Q)?E&&Qb(E)?yC(E):E:Q,e1=B.error,K=(0,g0.useRef)(o1),n1=u?v2(Q)?v2(K.current)?o1:K.current:Q:o1,Z=v&&v2(o1),X=(0,g0.useRef)(null);!s9&&(0,xC.useSyncExternalStore)(T_1,()=>(X.current=!1,X),()=>(X.current=!0,X));let c1=X.current;p&&c1&&!r&&Z&&console.warn(`Missing pre-initiated data for serialized key "${v}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);let z1=!v||!t||M().isPaused()||q&&!v2(e1)?!1:L&&!v2(c)?c:r?v2(o1)?!1:l:v2(o1)||l,v1=L&&z1,C1=v2(B.isValidating)?v1:B.isValidating,L1=v2(B.isLoading)?v1:B.isLoading,F1=(0,g0.useCallback)(async S1=>{let w1=C.current;if(!v||!w1||T.current||M().isPaused())return!1;let j1,O1,q1=!0,n2=S1||{},u1=!x[v]||!n2.dedupe,F=()=>Un?!T.current&&v===O.current&&w.current:v===O.current,V={isValidating:!1,isLoading:!1},W=()=>{P(V)},a1=()=>{let G=x[v];G&&G[1]===O1&&delete x[v]},H={isValidating:!0};v2(N().data)&&(H.isLoading=!0);try{if(u1&&(P(H),o.loadingTimeout&&v2(N().data)&&setTimeout(()=>{q1&&F()&&M().onLoadingSlow(v,o)},o.loadingTimeout),x[v]=[w1(k),l9()]),[j1,O1]=x[v],j1=await j1,u1&&setTimeout(a1,o.dedupingInterval),!x[v]||x[v][1]!==O1)return u1&&F()&&M().onDiscarded(v),!1;V.error=g3;let G=g[v];if(!v2(G)&&(O1<=G[0]||O1<=G[1]||G[1]===0))return W(),u1&&F()&&M().onDiscarded(v),!1;let J=N().data;V.data=i(J,j1)?J:j1,u1&&F()&&M().onSuccess(j1,v,o)}catch(G){a1();let J=M(),{shouldRetryOnError:h1}=J;J.isPaused()||(V.error=G,u1&&F()&&(J.onError(G,v,J),(h1===!0||T5(h1)&&h1(G))&&(!M().revalidateOnFocus||!M().revalidateOnReconnect||S())&&J.onErrorRetry(G,v,J,i1=>{let f1=b[v];f1&&f1[0]&&f1[0](c9.ERROR_REVALIDATE_EVENT,i1)},{retryCount:(n2.retryCount||0)+1,dedupe:!0})))}return q1=!1,W(),!0},[v,a]),l1=(0,g0.useCallback)((...S1)=>ty(a,O.current,...S1),[]);if(R8(()=>{C.current=t,z.current=o,v2(Q)||(K.current=Q)}),R8(()=>{if(!v)return;let S1=F1.bind(g3,kC),w1=0;M().revalidateOnFocus&&(w1=Date.now()+M().focusThrottleInterval);let O1=S01(v,b,(q1,n2={})=>{if(q1==c9.FOCUS_EVENT){let u1=Date.now();M().revalidateOnFocus&&u1>w1&&S()&&(w1=u1+M().focusThrottleInterval,S1())}else if(q1==c9.RECONNECT_EVENT)M().revalidateOnReconnect&&S()&&S1();else{if(q1==c9.MUTATE_EVENT)return F1();if(q1==c9.ERROR_REVALIDATE_EVENT)return F1(n2)}});return T.current=!1,O.current=v,w.current=!0,P({_k:k}),z1&&(x[v]||(v2(o1)||s9?S1():hC(S1))),()=>{T.current=!0,O1()}},[v]),R8(()=>{let S1;function w1(){let O1=T5(f)?f(N().data):f;O1&&S1!==-1&&(S1=setTimeout(j1,O1))}function j1(){!N().error&&(m||M().isVisible())&&(d||M().isOnline())?F1(kC).then(w1):w1()}return w1(),()=>{S1&&(clearTimeout(S1),S1=-1)}},[f,m,d,v]),(0,g0.useDebugValue)(n1),r){if(!Un&&s9&&Z)throw new Error("Fallback data is required when using Suspense in SSR.");Z&&(C.current=t,z.current=o,T.current=!1);let S1=y[v],w1=!v2(S1)&&Z?l1(S1):R01;if(yC(w1),!v2(e1)&&Z)throw e1;let j1=Z?F1(kC):R01;!v2(n1)&&Z&&(j1.status="fulfilled",j1.value=!0),yC(j1)}return{mutate:l1,get data(){return _.data=!0,n1},get error(){return _.error=!0,e1},get isValidating(){return _.isValidating=!0,C1},get isLoading(){return _.isLoading=!0,L1}}},jG2=Bn.defineProperty(bC,"defaultValue",{value:ay}),ry=M01(R_1);s();s();var E01=(e,t,o)=>{if(e&&"reportValidity"in e){let a=A1(o,t);e.setCustomValidity(a&&a.message||""),e.reportValidity()}},ny=(e,t)=>{for(let o in t.fields){let a=t.fields[o];a&&a.ref&&"reportValidity"in a.ref?E01(a.ref,o,e):a&&a.refs&&a.refs.forEach(i=>E01(i,o,e))}},zC=(e,t)=>{t.shouldUseNativeValidation&&ny(e,t);let o={};for(let a in e){let i=A1(t.fields,a),r=Object.assign(e[a]||{},{ref:i&&i.ref});if(E_1(t.names||Object.keys(e),a)){let n=Object.assign({},A1(o,a));A2(n,"root",r),A2(o,a,n)}else A2(o,a,r)}return o},E_1=(e,t)=>{let o=_01(t);return e.some(a=>_01(a).match(`^${o}\\.\\d+`))};function _01(e){return e.replace(/\]|\[/g,"")}var m7={};X3(m7,{$ZodAny:()=>dA,$ZodArray:()=>vA,$ZodAsyncError:()=>qe,$ZodBase64:()=>oA,$ZodBase64URL:()=>aA,$ZodBigInt:()=>Ty,$ZodBigIntFormat:()=>lA,$ZodBoolean:()=>vm,$ZodCIDRv4:()=>QP,$ZodCIDRv6:()=>eA,$ZodCUID:()=>BP,$ZodCUID2:()=>VP,$ZodCatch:()=>IA,$ZodCheck:()=>J2,$ZodCheckBigIntFormat:()=>vP,$ZodCheckEndsWith:()=>_P,$ZodCheckGreaterThan:()=>ky,$ZodCheckIncludes:()=>RP,$ZodCheckLengthEquals:()=>wP,$ZodCheckLessThan:()=>yy,$ZodCheckLowerCase:()=>SP,$ZodCheckMaxLength:()=>xP,$ZodCheckMaxSize:()=>bP,$ZodCheckMimeType:()=>PP,$ZodCheckMinLength:()=>zP,$ZodCheckMinSize:()=>yP,$ZodCheckMultipleOf:()=>hP,$ZodCheckNumberFormat:()=>gP,$ZodCheckOverwrite:()=>AP,$ZodCheckProperty:()=>CP,$ZodCheckRegex:()=>MP,$ZodCheckSizeEquals:()=>kP,$ZodCheckStartsWith:()=>EP,$ZodCheckStringFormat:()=>ec,$ZodCheckUpperCase:()=>TP,$ZodCodec:()=>ym,$ZodCustom:()=>UA,$ZodCustomStringFormat:()=>nA,$ZodDate:()=>gA,$ZodDefault:()=>PA,$ZodDiscriminatedUnion:()=>kA,$ZodE164:()=>iA,$ZodEmail:()=>NP,$ZodEmoji:()=>jP,$ZodEncodeError:()=>f9,$ZodEnum:()=>SA,$ZodError:()=>Ra,$ZodExactOptional:()=>_A,$ZodFile:()=>RA,$ZodFunction:()=>FA,$ZodGUID:()=>IP,$ZodIPv4:()=>JP,$ZodIPv6:()=>XP,$ZodISODate:()=>qP,$ZodISODateTime:()=>KP,$ZodISODuration:()=>ZP,$ZodISOTime:()=>WP,$ZodIntersection:()=>xA,$ZodJWT:()=>rA,$ZodKSUID:()=>GP,$ZodLazy:()=>VA,$ZodLiteral:()=>TA,$ZodMAC:()=>YP,$ZodMap:()=>wA,$ZodNaN:()=>DA,$ZodNanoID:()=>FP,$ZodNever:()=>pA,$ZodNonOptional:()=>OA,$ZodNull:()=>mA,$ZodNullable:()=>CA,$ZodNumber:()=>Sy,$ZodNumberFormat:()=>cA,$ZodObject:()=>n41,$ZodObjectJIT:()=>bA,$ZodOptional:()=>Ey,$ZodPipe:()=>_y,$ZodPrefault:()=>AA,$ZodPreprocess:()=>NA,$ZodPromise:()=>BA,$ZodReadonly:()=>LA,$ZodRealError:()=>q4,$ZodRecord:()=>zA,$ZodRegistry:()=>Oy,$ZodSet:()=>MA,$ZodString:()=>_a,$ZodStringFormat:()=>H2,$ZodSuccess:()=>$A,$ZodSymbol:()=>sA,$ZodTemplateLiteral:()=>jA,$ZodTransform:()=>EA,$ZodTuple:()=>Ry,$ZodType:()=>Q1,$ZodULID:()=>UP,$ZodURL:()=>LP,$ZodUUID:()=>DP,$ZodUndefined:()=>fA,$ZodUnion:()=>bm,$ZodUnknown:()=>uA,$ZodVoid:()=>hA,$ZodXID:()=>HP,$ZodXor:()=>yA,$brand:()=>MC,$constructor:()=>Y,$input:()=>GA,$output:()=>HA,Doc:()=>gm,JSONSchema:()=>l51,JSONSchemaGenerator:()=>fk,NEVER:()=>wC,TimePrecision:()=>ZA,_any:()=>gO,_array:()=>wO,_base64:()=>Xy,_base64url:()=>Yy,_bigint:()=>sO,_boolean:()=>cO,_catch:()=>XP1,_check:()=>c51,_cidrv4:()=>Zy,_cidrv6:()=>Jy,_coercedBigint:()=>fO,_coercedBoolean:()=>lO,_coercedDate:()=>xO,_coercedNumber:()=>tO,_coercedString:()=>qA,_cuid:()=>Vy,_cuid2:()=>Uy,_custom:()=>SO,_date:()=>kO,_decode:()=>fy,_decodeAsync:()=>dy,_default:()=>WP1,_discriminatedUnion:()=>DP1,_e164:()=>Qy,_email:()=>Iy,_emoji:()=>Fy,_encode:()=>sy,_encodeAsync:()=>my,_endsWith:()=>cc,_enum:()=>VP1,_file:()=>MO,_float32:()=>aO,_float64:()=>iO,_gt:()=>s7,_gte:()=>E4,_guid:()=>zm,_includes:()=>rc,_int:()=>oO,_int32:()=>rO,_int64:()=>mO,_intersection:()=>NP1,_ipv4:()=>qy,_ipv6:()=>Wy,_isoDate:()=>XA,_isoDateTime:()=>JA,_isoDuration:()=>QA,_isoTime:()=>YA,_jwt:()=>ek,_ksuid:()=>Ky,_lazy:()=>tA1,_length:()=>Aa,_literal:()=>HP1,_lowercase:()=>ac,_lt:()=>l7,_lte:()=>E5,_mac:()=>WA,_map:()=>FP1,_max:()=>E5,_maxLength:()=>Pa,_maxSize:()=>g9,_mime:()=>lc,_min:()=>E4,_minLength:()=>_8,_minSize:()=>f7,_multipleOf:()=>h9,_nan:()=>zO,_nanoid:()=>By,_nativeEnum:()=>UP1,_negative:()=>ok,_never:()=>bO,_nonnegative:()=>ik,_nonoptional:()=>ZP1,_nonpositive:()=>ak,_normalize:()=>sc,_null:()=>hO,_nullable:()=>qP1,_number:()=>eO,_optional:()=>KP1,_overwrite:()=>We,_parse:()=>Wn,_parseAsync:()=>Jn,_pipe:()=>YP1,_positive:()=>tk,_promise:()=>oA1,_property:()=>rk,_readonly:()=>QP1,_record:()=>jP1,_refine:()=>TO,_regex:()=>oc,_safeDecode:()=>py,_safeDecodeAsync:()=>gy,_safeEncode:()=>uy,_safeEncodeAsync:()=>hy,_safeParse:()=>Yn,_safeParseAsync:()=>Qn,_set:()=>BP1,_size:()=>Ca,_slugify:()=>uc,_startsWith:()=>nc,_string:()=>KA,_stringFormat:()=>pc,_stringbool:()=>CO,_success:()=>JP1,_superRefine:()=>RO,_symbol:()=>uO,_templateLiteral:()=>eA1,_toLowerCase:()=>mc,_toUpperCase:()=>dc,_transform:()=>GP1,_trim:()=>fc,_tuple:()=>LP1,_uint32:()=>nO,_uint64:()=>dO,_ulid:()=>Hy,_undefined:()=>pO,_union:()=>$P1,_unknown:()=>vO,_uppercase:()=>ic,_url:()=>wm,_uuid:()=>Dy,_uuidv4:()=>Ny,_uuidv6:()=>Ly,_uuidv7:()=>jy,_void:()=>yO,_xid:()=>Gy,_xor:()=>IP1,clone:()=>T4,config:()=>I3,createStandardJSONSchemaMethod:()=>hc,createToJSONSchemaMethod:()=>PO,decode:()=>oC1,decodeAsync:()=>iC1,describe:()=>EO,encode:()=>tC1,encodeAsync:()=>aC1,extractDefs:()=>b9,finalize:()=>y9,flattenError:()=>dm,formatError:()=>um,globalConfig:()=>Sa,globalRegistry:()=>G0,initializeContext:()=>v9,isValidBase64:()=>tA,isValidBase64URL:()=>o41,isValidJWT:()=>a41,locales:()=>xm,meta:()=>_O,parse:()=>Zn,parseAsync:()=>Xn,prettifyError:()=>NC,process:()=>$2,regexes:()=>R5,registry:()=>$y,safeDecode:()=>nC1,safeDecodeAsync:()=>lC1,safeEncode:()=>rC1,safeEncodeAsync:()=>cC1,safeParse:()=>LC,safeParseAsync:()=>jC,toDotPath:()=>I01,toJSONSchema:()=>sk,treeifyError:()=>DC,util:()=>x1,version:()=>OP});s();s();var C01,wC=Object.freeze({status:"aborted"});function Y(e,t,o){function a(c,l){if(c._zod||Object.defineProperty(c,"_zod",{value:{def:l,constr:n,traits:new Set},enumerable:!1}),c._zod.traits.has(e))return;c._zod.traits.add(e),t(c,l);let f=n.prototype,m=Object.keys(f);for(let d=0;d<m.length;d++){let u=m[d];u in c||(c[u]=f[u].bind(c))}}let i=o?.Parent??Object;class r extends i{}Object.defineProperty(r,"name",{value:e});function n(c){var l;let f=o?.Parent?new r:this;a(f,c),(l=f._zod).deferred??(l.deferred=[]);for(let m of f._zod.deferred)m();return f}return Object.defineProperty(n,"init",{value:a}),Object.defineProperty(n,Symbol.hasInstance,{value:c=>o?.Parent&&c instanceof o.Parent?!0:c?._zod?.traits?.has(e)}),Object.defineProperty(n,"name",{value:e}),n}var MC=Symbol("zod_brand"),qe=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},f9=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(C01=globalThis).__zod_globalConfig??(C01.__zod_globalConfig={});var Sa=globalThis.__zod_globalConfig;function I3(e){return e&&Object.assign(Sa,e),Sa}s();s();var x1={};X3(x1,{BIGINT_FORMAT_RANGES:()=>$C,Class:()=>TC,NUMBER_FORMAT_RANGES:()=>OC,aborted:()=>p9,allowsEval:()=>_C,assert:()=>O_1,assertEqual:()=>__1,assertIs:()=>P_1,assertNever:()=>A_1,assertNotEqual:()=>C_1,assignProp:()=>d9,base64ToUint8Array:()=>A01,base64urlToUint8Array:()=>J_1,cached:()=>Kn,captureStackTrace:()=>ly,cleanEnum:()=>Z_1,cleanRegex:()=>lm,clone:()=>T4,cloneDef:()=>I_1,createTransparentProxy:()=>B_1,defineLazy:()=>p2,esc:()=>cy,escapeRegex:()=>fe,explicitlyAborted:()=>IC,extend:()=>H_1,finalizeIssue:()=>R4,floatSafeRemainder:()=>RC,getElementAtPath:()=>D_1,getEnumValues:()=>cm,getLengthableOrigin:()=>mm,getParsedType:()=>F_1,getSizableOrigin:()=>fm,hexToUint8Array:()=>Y_1,isObject:()=>Ta,isPlainObject:()=>u9,issue:()=>qn,joinValues:()=>r1,jsonStringifyReplacer:()=>Gn,merge:()=>K_1,mergeDefs:()=>E8,normalizeParams:()=>M1,nullish:()=>m9,numKeys:()=>j_1,objectClone:()=>$_1,omit:()=>U_1,optionalKeys:()=>AC,parsedType:()=>b1,partial:()=>q_1,pick:()=>V_1,prefixIssues:()=>K4,primitiveTypes:()=>PC,promiseAllObject:()=>N_1,propertyKeyTypes:()=>sm,randomString:()=>L_1,required:()=>W_1,safeExtend:()=>G_1,shallowClone:()=>CC,slugify:()=>EC,stringifyPrimitive:()=>g1,uint8ArrayToBase64:()=>O01,uint8ArrayToBase64url:()=>X_1,uint8ArrayToHex:()=>Q_1,unwrapMessage:()=>nm});s();function __1(e){return e}function C_1(e){return e}function P_1(e){}function A_1(e){throw new Error("Unexpected value in exhaustive check")}function O_1(e){}function cm(e){let t=Object.values(e).filter(a=>typeof a=="number");return Object.entries(e).filter(([a,i])=>t.indexOf(+a)===-1).map(([a,i])=>i)}function r1(e,t="|"){return e.map(o=>g1(o)).join(t)}function Gn(e,t){return typeof t=="bigint"?t.toString():t}function Kn(e){return{get value(){{let o=e();return Object.defineProperty(this,"value",{value:o}),o}throw new Error("cached value already set")}}}function m9(e){return e==null}function lm(e){let t=e.startsWith("^")?1:0,o=e.endsWith("$")?e.length-1:e.length;return e.slice(t,o)}function RC(e,t){let o=e/t,a=Math.round(o),i=Number.EPSILON*Math.max(Math.abs(o),1);return Math.abs(o-a)<i?0:o-a}var P01=Symbol("evaluating");function p2(e,t,o){let a;Object.defineProperty(e,t,{get(){if(a!==P01)return a===void 0&&(a=P01,a=o()),a},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function $_1(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function d9(e,t,o){Object.defineProperty(e,t,{value:o,writable:!0,enumerable:!0,configurable:!0})}function E8(...e){let t={};for(let o of e){let a=Object.getOwnPropertyDescriptors(o);Object.assign(t,a)}return Object.defineProperties({},t)}function I_1(e){return E8(e._zod.def)}function D_1(e,t){return t?t.reduce((o,a)=>o?.[a],e):e}function N_1(e){let t=Object.keys(e),o=t.map(a=>e[a]);return Promise.all(o).then(a=>{let i={};for(let r=0;r<t.length;r++)i[t[r]]=a[r];return i})}function L_1(e=10){let t="abcdefghijklmnopqrstuvwxyz",o="";for(let a=0;a<e;a++)o+=t[Math.floor(Math.random()*t.length)];return o}function cy(e){return JSON.stringify(e)}function EC(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var ly="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ta(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var _C=Kn(()=>{if(Sa.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function u9(e){if(Ta(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let o=t.prototype;return!(Ta(o)===!1||Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)}function CC(e){return u9(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function j_1(e){let t=0;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&t++;return t}var F_1=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},sm=new Set(["string","number","symbol"]),PC=new Set(["string","number","bigint","boolean","symbol","undefined"]);function fe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function T4(e,t,o){let a=new e._zod.constr(t??e._zod.def);return(!t||o?.parent)&&(a._zod.parent=e),a}function M1(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function B_1(e){let t;return new Proxy({},{get(o,a,i){return t??(t=e()),Reflect.get(t,a,i)},set(o,a,i,r){return t??(t=e()),Reflect.set(t,a,i,r)},has(o,a){return t??(t=e()),Reflect.has(t,a)},deleteProperty(o,a){return t??(t=e()),Reflect.deleteProperty(t,a)},ownKeys(o){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(o,a){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,a)},defineProperty(o,a,i){return t??(t=e()),Reflect.defineProperty(t,a,i)}})}function g1(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function AC(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var OC={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},$C={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function V_1(e,t){let o=e._zod.def,a=o.checks;if(a&&a.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let r=E8(e._zod.def,{get shape(){let n={};for(let c in t){if(!(c in o.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&(n[c]=o.shape[c])}return d9(this,"shape",n),n},checks:[]});return T4(e,r)}function U_1(e,t){let o=e._zod.def,a=o.checks;if(a&&a.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let r=E8(e._zod.def,{get shape(){let n={...e._zod.def.shape};for(let c in t){if(!(c in o.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&delete n[c]}return d9(this,"shape",n),n},checks:[]});return T4(e,r)}function H_1(e,t){if(!u9(t))throw new Error("Invalid input to extend: expected a plain object");let o=e._zod.def.checks;if(o&&o.length>0){let r=e._zod.def.shape;for(let n in t)if(Object.getOwnPropertyDescriptor(r,n)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let i=E8(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return d9(this,"shape",r),r}});return T4(e,i)}function G_1(e,t){if(!u9(t))throw new Error("Invalid input to safeExtend: expected a plain object");let o=E8(e._zod.def,{get shape(){let a={...e._zod.def.shape,...t};return d9(this,"shape",a),a}});return T4(e,o)}function K_1(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let o=E8(e._zod.def,{get shape(){let a={...e._zod.def.shape,...t._zod.def.shape};return d9(this,"shape",a),a},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return T4(e,o)}function q_1(e,t,o){let i=t._zod.def.checks;if(i&&i.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let n=E8(t._zod.def,{get shape(){let c=t._zod.def.shape,l={...c};if(o)for(let f in o){if(!(f in c))throw new Error(`Unrecognized key: "${f}"`);o[f]&&(l[f]=e?new e({type:"optional",innerType:c[f]}):c[f])}else for(let f in c)l[f]=e?new e({type:"optional",innerType:c[f]}):c[f];return d9(this,"shape",l),l},checks:[]});return T4(t,n)}function W_1(e,t,o){let a=E8(t._zod.def,{get shape(){let i=t._zod.def.shape,r={...i};if(o)for(let n in o){if(!(n in r))throw new Error(`Unrecognized key: "${n}"`);o[n]&&(r[n]=new e({type:"nonoptional",innerType:i[n]}))}else for(let n in i)r[n]=new e({type:"nonoptional",innerType:i[n]});return d9(this,"shape",r),r}});return T4(t,a)}function p9(e,t=0){if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(e.issues[o]?.continue!==!0)return!0;return!1}function IC(e,t=0){if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(e.issues[o]?.continue===!1)return!0;return!1}function K4(e,t){return t.map(o=>{var a;return(a=o).path??(a.path=[]),o.path.unshift(e),o})}function nm(e){return typeof e=="string"?e:e?.message}function R4(e,t,o){let a=e.message?e.message:nm(e.inst?._zod.def?.error?.(e))??nm(t?.error?.(e))??nm(o.customError?.(e))??nm(o.localeError?.(e))??"Invalid input",{inst:i,continue:r,input:n,...c}=e;return c.path??(c.path=[]),c.message=a,t?.reportInput&&(c.input=n),c}function fm(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function mm(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function b1(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let o=e;if(o&&Object.getPrototypeOf(o)!==Object.prototype&&"constructor"in o&&o.constructor)return o.constructor.name}}return t}function qn(...e){let[t,o,a]=e;return typeof t=="string"?{message:t,code:"custom",input:o,inst:a}:{...t}}function Z_1(e){return Object.entries(e).filter(([t,o])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function A01(e){let t=atob(e),o=new Uint8Array(t.length);for(let a=0;a<t.length;a++)o[a]=t.charCodeAt(a);return o}function O01(e){let t="";for(let o=0;o<e.length;o++)t+=String.fromCharCode(e[o]);return btoa(t)}function J_1(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),o="=".repeat((4-t.length%4)%4);return A01(t+o)}function X_1(e){return O01(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Y_1(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let o=new Uint8Array(t.length/2);for(let a=0;a<t.length;a+=2)o[a/2]=Number.parseInt(t.slice(a,a+2),16);return o}function Q_1(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var TC=class{constructor(...t){}};var $01=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Gn,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Ra=Y("$ZodError",$01),q4=Y("$ZodError",$01,{Parent:Error});function dm(e,t=o=>o.message){let o={},a=[];for(let i of e.issues)i.path.length>0?(o[i.path[0]]=o[i.path[0]]||[],o[i.path[0]].push(t(i))):a.push(t(i));return{formErrors:a,fieldErrors:o}}function um(e,t=o=>o.message){let o={_errors:[]},a=(i,r=[])=>{for(let n of i.issues)if(n.code==="invalid_union"&&n.errors.length)n.errors.map(c=>a({issues:c},[...r,...n.path]));else if(n.code==="invalid_key")a({issues:n.issues},[...r,...n.path]);else if(n.code==="invalid_element")a({issues:n.issues},[...r,...n.path]);else{let c=[...r,...n.path];if(c.length===0)o._errors.push(t(n));else{let l=o,f=0;for(;f<c.length;){let m=c[f];f===c.length-1?(l[m]=l[m]||{_errors:[]},l[m]._errors.push(t(n))):l[m]=l[m]||{_errors:[]},l=l[m],f++}}}};return a(e),o}function DC(e,t=o=>o.message){let o={errors:[]},a=(i,r=[])=>{var n,c;for(let l of i.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(f=>a({issues:f},[...r,...l.path]));else if(l.code==="invalid_key")a({issues:l.issues},[...r,...l.path]);else if(l.code==="invalid_element")a({issues:l.issues},[...r,...l.path]);else{let f=[...r,...l.path];if(f.length===0){o.errors.push(t(l));continue}let m=o,d=0;for(;d<f.length;){let u=f[d],p=d===f.length-1;typeof u=="string"?(m.properties??(m.properties={}),(n=m.properties)[u]??(n[u]={errors:[]}),m=m.properties[u]):(m.items??(m.items=[]),(c=m.items)[u]??(c[u]={errors:[]}),m=m.items[u]),p&&m.errors.push(t(l)),d++}}};return a(e),o}function I01(e){let t=[],o=e.map(a=>typeof a=="object"?a.key:a);for(let a of o)typeof a=="number"?t.push(`[${a}]`):typeof a=="symbol"?t.push(`[${JSON.stringify(String(a))}]`):/[^\w$]/.test(a)?t.push(`[${JSON.stringify(a)}]`):(t.length&&t.push("."),t.push(a));return t.join("")}function NC(e){let t=[],o=[...e.issues].sort((a,i)=>(a.path??[]).length-(i.path??[]).length);for(let a of o)t.push(`✖ ${a.message}`),a.path?.length&&t.push(` → at ${I01(a.path)}`);return t.join(`
517
+ `)),DR1=y1("div",{name:"JoySnackbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var o,a,i,r,n,c,l;let{p:f,padding:m,borderRadius:d}=se({theme:e,ownerState:t},["p","padding","borderRadius"]);return[I({"--Snackbar-radius":e.vars.radius.sm,"--Snackbar-decoratorChildRadius":"max((var(--Snackbar-radius) - var(--variant-borderWidth, 0px)) - var(--Snackbar-padding), min(var(--Snackbar-padding) + var(--variant-borderWidth, 0px), var(--Snackbar-radius) / 2))","--Button-minHeight":"var(--Snackbar-decoratorChildHeight)","--IconButton-size":"var(--Snackbar-decoratorChildHeight)","--Button-radius":"var(--Snackbar-decoratorChildRadius)","--IconButton-radius":"var(--Snackbar-decoratorChildRadius)","--Icon-color":"currentColor"},t.size==="sm"&&{"--Snackbar-padding":"0.75rem","--Snackbar-inset":"0.5rem","--Snackbar-decoratorChildHeight":"1.5rem","--Icon-fontSize":e.vars.fontSize.xl,gap:"0.5rem"},t.size==="md"&&{"--Snackbar-padding":"1rem","--Snackbar-inset":"0.75rem","--Snackbar-decoratorChildHeight":"2rem","--Icon-fontSize":e.vars.fontSize.xl,gap:"0.625rem"},t.size==="lg"&&{"--Snackbar-padding":"1.25rem","--Snackbar-inset":"1rem","--Snackbar-decoratorChildHeight":"2.375rem","--Icon-fontSize":e.vars.fontSize.xl2,gap:"0.875rem"},{zIndex:e.vars.zIndex.snackbar,position:"fixed",display:"flex",alignItems:"center",minWidth:300,top:((o=t.anchorOrigin)==null?void 0:o.vertical)==="top"?"var(--Snackbar-inset)":void 0,left:((a=t.anchorOrigin)==null?void 0:a.horizontal)==="left"?"var(--Snackbar-inset)":void 0,bottom:((i=t.anchorOrigin)==null?void 0:i.vertical)==="bottom"?"var(--Snackbar-inset)":void 0,right:((r=t.anchorOrigin)==null?void 0:r.horizontal)==="right"?"var(--Snackbar-inset)":void 0},((n=t.anchorOrigin)==null?void 0:n.horizontal)==="center"&&{"--Snackbar-translateX":"-50%",left:"50%",transform:"translateX(var(--Snackbar-translateX))"},((c=t.anchorOrigin)==null?void 0:c.vertical)==="top"&&{"--_Snackbar-anchorBottom":"-1"},{animation:`${$R1} ${t.animationDuration}ms forwards`},!t.open&&{animationName:IR1},{boxShadow:e.vars.shadow.lg,backgroundColor:e.vars.palette.background.surface,padding:"var(--Snackbar-padding)",borderRadius:"var(--Snackbar-radius)"},e.typography[`body-${{sm:"xs",md:"sm",lg:"md"}[t.size]}`],t.variant==="solid"&&t.color&&t.invertedColors&&ha(t.color)(e),t.variant==="soft"&&t.color&&t.invertedColors&&ga(t.color)(e),(l=e.variants[t.variant])==null?void 0:l[t.color]),f!==void 0&&{"--Snackbar-padding":f},m!==void 0&&{"--Snackbar-padding":m},d!==void 0&&{"--Snackbar-radius":d}]}),NR1=y1("span",{name:"JoySnackbar",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({display:"inherit",flex:"none"}),LR1=y1("span",{name:"JoySnackbar",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({display:"inherit",flex:"none",marginLeft:"auto"}),jR1={vertical:"bottom",horizontal:"right"},FR1=M8.forwardRef(function(t,o){let a=K1({props:t,name:"JoySnackbar"}),{anchorOrigin:i=jR1,animationDuration:r=300,autoHideDuration:n=null,color:c="neutral",children:l,className:f,component:m,disableWindowBlurListener:d=!1,endDecorator:u,invertedColors:p=!1,onUnmount:b,open:g,size:x="md",slots:y={},slotProps:v,startDecorator:k,variant:w="outlined"}=a,T=k1(a,AR1),[O,C]=M8.useState(!0),[z,M]=M8.useState(!1),S=M8.useRef(b);S.current=b,M8.useEffect(()=>{if(g)M(!1),C(!1);else{M(!0);let e1=setTimeout(()=>{var K;C(!0),M(!1),(K=S.current)==null||K.call(S)},r);return()=>{clearTimeout(e1)}}},[g,r]);let N=I({},a,{anchorOrigin:i,autoHideDuration:n,color:c,animationDuration:r,disableWindowBlurListener:d,invertedColors:p,size:x,variant:w});delete N.onUnmount;let P=OR1(N),{getRootProps:R,onClickAway:A}=LM(N),_=e1=>{z||A(e1)},E=I({},T,{component:m,slots:y,slotProps:v}),[D,L]=E1("root",{ref:o,className:m2(P.root,f),elementType:DR1,externalForwardedProps:E,getSlotProps:R,ownerState:N}),[$,B]=E1("startDecorator",{className:P.startDecorator,elementType:NR1,externalForwardedProps:E,ownerState:N}),[q,Q]=E1("endDecorator",{className:P.endDecorator,elementType:LR1,externalForwardedProps:E,ownerState:N}),o1=y.clickAway||lU;return!g&&O?null:(0,kb.jsx)(o1,I({onClickAway:_},typeof v?.clickAway=="function"?v.clickAway(N):v?.clickAway,{children:(0,h31.jsxs)(D,I({},L,{children:[k&&(0,kb.jsx)($,I({},B,{children:k})),l,u&&(0,kb.jsx)(q,I({},Q,{children:u}))]}))}))}),qf=FR1;s();s();var BR1=np({createStyledComponent:y1("div",{name:"JoyStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>K1({props:e,name:"JoyStack"})}),s2=BR1;s();s();Y1();_1();var I_=j(U());u2();s();function g31(e){return G1("MuiTextarea",e)}var VR1=H1("MuiTextarea",["root","textarea","startDecorator","endDecorator","formControl","disabled","error","focused","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft"]),$_=VR1;var xb=j(m1()),v31=j(m1()),UR1=["propsToForward","rootStateClasses","inputStateClasses","getRootProps","getInputProps","formControl","focused","error","disabled","size","color","variant","startDecorator","endDecorator","minRows","maxRows","component","slots","slotProps"],HR1=e=>{let{disabled:t,variant:o,color:a,size:i}=e,r={root:["root",t&&"disabled",o&&`variant${P1(o)}`,a&&`color${P1(a)}`,i&&`size${P1(i)}`],textarea:["textarea"],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return V1(r,g31,{})},GR1=y1("div",{name:"JoyTextarea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var o,a,i,r,n,c;let l=(o=e.variants[`${t.variant}`])==null?void 0:o[t.color];return[I({"--Textarea-radius":e.vars.radius.sm,"--Textarea-gap":"0.5rem","--Textarea-placeholderColor":"inherit","--Textarea-placeholderOpacity":.64,"--Textarea-decoratorColor":e.vars.palette.text.icon,"--Textarea-focused":"0","--Textarea-focusedThickness":e.vars.focus.thickness,"--Textarea-focusedHighlight":(a=e.vars.palette[t.color==="neutral"?"primary":t.color])==null?void 0:a[500],'&:not([data-inverted-colors="false"])':I({},t.instanceColor&&{"--_Textarea-focusedHighlight":(i=e.vars.palette[t.instanceColor==="neutral"?"primary":t.instanceColor])==null?void 0:i[500]},{"--Textarea-focusedHighlight":`var(--_Textarea-focusedHighlight, ${e.vars.palette.focusVisible})`})},t.size==="sm"&&{"--Textarea-minHeight":"2rem","--Textarea-paddingBlock":"calc(0.375rem - 0.5px - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"0.5rem","--Textarea-decoratorChildHeight":"min(1.5rem, var(--Textarea-minHeight))","--Icon-fontSize":e.vars.fontSize.xl},t.size==="md"&&{"--Textarea-minHeight":"2.25rem","--Textarea-paddingBlock":"calc(0.375rem - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"0.75rem","--Textarea-decoratorChildHeight":"min(1.75rem, var(--Textarea-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},t.size==="lg"&&{"--Textarea-minHeight":"3rem","--Textarea-paddingBlock":"calc(0.75rem - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"1rem","--Textarea-gap":"0.75rem","--Textarea-decoratorChildHeight":"min(2.375rem, var(--Textarea-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},{"--_Textarea-paddingBlock":"max((var(--Textarea-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Textarea-decoratorChildHeight)) / 2, 0px)","--Textarea-decoratorChildRadius":"max(var(--Textarea-radius) - var(--variant-borderWidth, 0px) - var(--_Textarea-paddingBlock), min(var(--_Textarea-paddingBlock) + var(--variant-borderWidth, 0px), var(--Textarea-radius) / 2))","--Button-minHeight":"var(--Textarea-decoratorChildHeight)","--Button-paddingBlock":"0px","--IconButton-size":"var(--Textarea-decoratorChildHeight)","--Button-radius":"var(--Textarea-decoratorChildRadius)","--IconButton-radius":"var(--Textarea-decoratorChildRadius)",boxSizing:"border-box"},t.variant!=="plain"&&{boxShadow:e.shadow.xs},{minWidth:0,minHeight:"var(--Textarea-minHeight)",cursor:"text",position:"relative",display:"flex",flexDirection:"column",paddingInlineStart:"var(--Textarea-paddingInline)",paddingBlock:"var(--Textarea-paddingBlock)",borderRadius:"var(--Textarea-radius)"},e.typography[`body-${t.size}`],l,{backgroundColor:(r=l?.backgroundColor)!=null?r:e.vars.palette.background.surface,"&::before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)",boxShadow:"var(--Textarea-focusedInset, inset) 0 0 0 calc(var(--Textarea-focused) * var(--Textarea-focusedThickness)) var(--Textarea-focusedHighlight)"}}),{"&:hover":I({},(n=e.variants[`${t.variant}Hover`])==null?void 0:n[t.color],{backgroundColor:null,cursor:"text"}),[`&.${$_.disabled}`]:(c=e.variants[`${t.variant}Disabled`])==null?void 0:c[t.color],"&:focus-within::before":{"--Textarea-focused":"1"}}]}),KR1=y1(FM,{name:"JoyTextarea",slot:"Textarea",overridesResolver:(e,t)=>t.textarea})({resize:"none",border:"none",minWidth:0,outline:0,padding:0,paddingInlineEnd:"var(--Textarea-paddingInline)",flex:"auto",alignSelf:"stretch",color:"inherit",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontWeight:"inherit",lineHeight:"inherit","&::-webkit-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&::-moz-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&:-ms-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&::-ms-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"}}),qR1=y1("div",{name:"JoyTextarea",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({display:"flex",marginInlineStart:"calc(var(--Textarea-paddingBlock) - var(--Textarea-paddingInline))",marginInlineEnd:"var(--Textarea-paddingBlock)",marginBlockEnd:"var(--Textarea-gap)",color:"var(--Textarea-decoratorColor)",cursor:"initial"}),WR1=y1("div",{name:"JoyTextarea",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({display:"flex",marginInlineStart:"calc(var(--Textarea-paddingBlock) - var(--Textarea-paddingInline))",marginInlineEnd:"var(--Textarea-paddingBlock)",marginBlockStart:"var(--Textarea-gap)",color:"var(--Textarea-decoratorColor)",cursor:"initial"}),ZR1=I_.forwardRef(function(t,o){var a,i,r,n,c,l,f,m;let d=K1({props:t,name:"JoyTextarea"}),u=Bf(d,$_),{propsToForward:p,rootStateClasses:b,inputStateClasses:g,getRootProps:x,getInputProps:y,formControl:v,focused:k,error:w=!1,disabled:T=!1,size:O="md",color:C="neutral",variant:z="outlined",startDecorator:M,endDecorator:S,minRows:N,maxRows:P,component:R,slots:A={},slotProps:_={}}=u,E=k1(u,UR1),D=(a=(i=t.disabled)!=null?i:v?.disabled)!=null?a:T,L=(r=(n=t.error)!=null?n:v?.error)!=null?r:w,$=(c=(l=t.size)!=null?l:v?.size)!=null?c:O,B=(f=t.color)!=null?f:L?"danger":(m=v?.color)!=null?m:C,q=I({instanceColor:L?"danger":t.color},d,{color:B,disabled:D,error:L,focused:k,size:$,variant:z}),Q=HR1(q),o1=I({},E,{component:R,slots:A,slotProps:_}),[e1,K]=E1("root",{ref:o,className:[Q.root,b],elementType:GR1,externalForwardedProps:o1,getSlotProps:x,ownerState:q}),[n1,Z]=E1("textarea",{additionalProps:{id:v?.htmlFor,"aria-describedby":v?.["aria-describedby"]},className:[Q.textarea,g],elementType:KR1,internalForwardedProps:I({},p,{minRows:N,maxRows:P}),externalForwardedProps:o1,getSlotProps:y,ownerState:q}),[X,c1]=E1("startDecorator",{className:Q.startDecorator,elementType:qR1,externalForwardedProps:o1,ownerState:q}),[z1,v1]=E1("endDecorator",{className:Q.endDecorator,elementType:WR1,externalForwardedProps:o1,ownerState:q});return(0,v31.jsxs)(e1,I({},K,{children:[M&&(0,xb.jsx)(X,I({},c1,{children:M})),(0,xb.jsx)(n1,I({},Z)),S&&(0,xb.jsx)(z1,I({},v1,{children:S}))]}))}),zb=ZR1;s();s();Y1();_1();var H3=j(U());L3();u2();s();function b31(e){return G1("MuiTooltip",e)}var RF2=H1("MuiTooltip",["root","tooltipArrow","arrow","touch","placementLeft","placementRight","placementTop","placementBottom","colorPrimary","colorDanger","colorNeutral","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);var z31=j(m1()),D_=j(m1()),JR1=["children","className","component","arrow","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","disablePortal","direction","keepMounted","modifiers","placement","title","color","variant","size","slots","slotProps"],XR1=e=>{let{arrow:t,variant:o,color:a,size:i,placement:r,touch:n}=e,c={root:["root",t&&"tooltipArrow",n&&"touch",i&&`size${P1(i)}`,a&&`color${P1(a)}`,o&&`variant${P1(o)}`,`tooltipPlacement${P1(r.split("-")[0])}`],arrow:["arrow"]};return V1(c,b31,{})},YR1=y1("div",{name:"JoyTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>{var o,a,i;let r=(o=t.variants[e.variant])==null?void 0:o[e.color];return I({},e.size==="sm"&&{"--Icon-fontSize":t.vars.fontSize.md,"--Tooltip-arrowSize":"8px",padding:t.spacing(.25,.625)},e.size==="md"&&{"--Icon-fontSize":t.vars.fontSize.lg,"--Tooltip-arrowSize":"10px",padding:t.spacing(.5,.75)},e.size==="lg"&&{"--Icon-fontSize":t.vars.fontSize.xl,"--Tooltip-arrowSize":"12px",padding:t.spacing(.75,1)},{zIndex:t.vars.zIndex.tooltip,borderRadius:t.vars.radius.sm,boxShadow:t.shadow.sm,wordWrap:"break-word",position:"relative"},e.disableInteractive&&{pointerEvents:"none"},t.typography[`body-${{sm:"xs",md:"sm",lg:"md"}[e.size]}`],r,!r.backgroundColor&&{backgroundColor:t.vars.palette.background.surface},{"&::before":{content:'""',display:"block",position:"absolute",width:(a=e.placement)!=null&&a.match(/(top|bottom)/)?"100%":"calc(10px + var(--variant-borderWidth, 0px))",height:(i=e.placement)!=null&&i.match(/(top|bottom)/)?"calc(10px + var(--variant-borderWidth, 0px))":"100%"},'&[data-popper-placement*="bottom"]::before':{top:0,left:0,transform:"translateY(-100%)"},'&[data-popper-placement*="left"]::before':{top:0,right:0,transform:"translateX(100%)"},'&[data-popper-placement*="right"]::before':{top:0,left:0,transform:"translateX(-100%)"},'&[data-popper-placement*="top"]::before':{bottom:0,left:0,transform:"translateY(100%)"}})}),QR1=y1("span",{name:"JoyTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e,ownerState:t})=>{var o,a,i;let r=(o=e.variants[t.variant])==null?void 0:o[t.color];return{"--unstable_Tooltip-arrowRotation":0,width:"var(--Tooltip-arrowSize)",height:"var(--Tooltip-arrowSize)",boxSizing:"border-box","&::before":{content:'""',display:"block",position:"absolute",width:0,height:0,border:"calc(var(--Tooltip-arrowSize) / 2) solid",borderLeftColor:"transparent",borderBottomColor:"transparent",borderTopColor:(a=r?.backgroundColor)!=null?a:e.vars.palette.background.surface,borderRightColor:(i=r?.backgroundColor)!=null?i:e.vars.palette.background.surface,borderRadius:"0px 2px 0px 0px",boxShadow:`var(--variant-borderWidth, 0px) calc(-1 * var(--variant-borderWidth, 0px)) 0px 0px ${r.borderColor}`,transformOrigin:"center center",transform:"rotate(calc(-45deg + 90deg * var(--unstable_Tooltip-arrowRotation)))"},'[data-popper-placement*="bottom"] &':{top:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="top"] &':{"--unstable_Tooltip-arrowRotation":2,bottom:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="left"] &':{"--unstable_Tooltip-arrowRotation":1,right:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="right"] &':{"--unstable_Tooltip-arrowRotation":3,left:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"}}}),wb=!1,y31=new $7,Wf={x:0,y:0};function k31(e,t){return o=>{t&&t(o),e(o)}}function x31(e,t){return(o,...a)=>{t&&t(o,...a),e(o,...a)}}var eE1=H3.forwardRef(function(t,o){var a;let i=K1({props:t,name:"JoyTooltip"}),{children:r,className:n,component:c,arrow:l=!1,describeChild:f=!1,disableFocusListener:m=!1,disableHoverListener:d=!1,disableInteractive:u=!1,disableTouchListener:p=!1,enterDelay:b=100,enterNextDelay:g=0,enterTouchDelay:x=700,followCursor:y=!1,id:v,leaveDelay:k=0,leaveTouchDelay:w=1500,onClose:T,onOpen:O,open:C,disablePortal:z,direction:M,keepMounted:S,modifiers:N,placement:P="bottom",title:R,color:A="neutral",variant:_="solid",size:E="md",slots:D={},slotProps:L={}}=i,$=k1(i,JR1),[B,q]=H3.useState(),[Q,o1]=H3.useState(null),e1=H3.useRef(!1),K=u||y,n1=I6(),Z=I6(),X=I6(),c1=I6(),[z1,v1]=O7({controlled:C,default:!1,name:"Tooltip",state:"open"}),C1=z1,L1=$0(v),F1=H3.useRef(void 0),l1=Z0(()=>{F1.current!==void 0&&(document.body.style.WebkitUserSelect=F1.current,F1.current=void 0),c1.clear()});H3.useEffect(()=>l1,[l1]);let T1=x2=>{y31.clear(),wb=!0,v1(!0),O&&!C1&&O(x2)},S1=Z0(x2=>{y31.start(800+k,()=>{wb=!1}),v1(!1),T&&C1&&T(x2),n1.start(150,()=>{e1.current=!1})}),w1=x2=>{e1.current&&x2.type!=="touchstart"||(B&&B.removeAttribute("title"),Z.clear(),X.clear(),b||wb&&g?Z.start(wb?g:b,()=>{T1(x2)}):T1(x2))},j1=x2=>{Z.clear(),X.start(k,()=>{S1(x2)})},{isFocusVisibleRef:O1,onBlur:q1,onFocus:n2,ref:u1}=we(),[,F]=H3.useState(!1),V=x2=>{q1(x2),O1.current===!1&&(F(!1),j1(x2))},W=x2=>{B||q(x2.currentTarget),n2(x2),O1.current===!0&&(F(!0),w1(x2))},a1=x2=>{e1.current=!0;let m4=r.props;m4.onTouchStart&&m4.onTouchStart(x2)},H=x2=>{a1(x2),X.clear(),n1.clear(),l1(),F1.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",c1.start(x,()=>{document.body.style.WebkitUserSelect=F1.current,w1(x2)})},G=x2=>{r.props.onTouchEnd&&r.props.onTouchEnd(x2),l1(),X.start(w,()=>{S1(x2)})};H3.useEffect(()=>{if(!C1)return;function x2(m4){(m4.key==="Escape"||m4.key==="Esc")&&S1(m4)}return document.addEventListener("keydown",x2),()=>{document.removeEventListener("keydown",x2)}},[S1,C1]);let J=Z1(q,o),h1=Z1(u1,J),i1=Z1(I7(r),h1);typeof R!="number"&&!R&&(C1=!1);let f1=H3.useRef(null),R1=x2=>{let m4=r.props;m4.onMouseMove&&m4.onMouseMove(x2),Wf={x:x2.clientX,y:x2.clientY},f1.current&&f1.current.update()},B1={},F2=typeof R=="string";f?(B1.title=!C1&&F2&&!d?R:null,B1["aria-describedby"]=C1?L1:null):(B1["aria-label"]=F2?R:null,B1["aria-labelledby"]=C1&&!F2?L1:null);let M2=I({},B1,$,{component:c},r.props,{className:m2(n,r.props.className),onTouchStart:a1,ref:i1},y?{onMouseMove:R1}:{}),B2={};p||(M2.onTouchStart=H,M2.onTouchEnd=G),d||(M2.onMouseOver=k31(w1,M2.onMouseOver),M2.onMouseLeave=k31(j1,M2.onMouseLeave),K||(B2.onMouseOver=w1,B2.onMouseLeave=j1)),m||(M2.onFocus=x31(W,M2.onFocus),M2.onBlur=x31(V,M2.onBlur),K||(B2.onFocus=W,B2.onBlur=V));let I4=I({},i,{arrow:l,disableInteractive:K,placement:P,touch:e1.current,color:A,variant:_,size:E}),M7=XR1(I4),F8=I({},$,{component:c,slots:D,slotProps:L}),B8=H3.useMemo(()=>[{name:"arrow",enabled:!!Q,options:{element:Q,padding:6}},{name:"offset",options:{offset:[0,10]}},...N||[]],[Q,N]),[Xc,Yc]=E1("root",{additionalProps:I({id:L1,popperRef:f1,placement:P,anchorEl:y?{getBoundingClientRect:()=>({top:Wf.y,left:Wf.x,right:Wf.x,bottom:Wf.y,width:0,height:0})}:B,open:B?C1:!1,disablePortal:z,keepMounted:S,direction:M,modifiers:B8},B2),ref:null,className:M7.root,elementType:YR1,externalForwardedProps:F8,ownerState:I4}),[oi,J3]=E1("arrow",{ref:o1,className:M7.arrow,elementType:QR1,externalForwardedProps:F8,ownerState:I4});return(0,D_.jsxs)(H3.Fragment,{children:[H3.isValidElement(r)&&H3.cloneElement(r,M2),(0,D_.jsxs)(Xc,I({},Yc,!((a=i.slots)!=null&&a.root)&&{as:Qi,slots:{root:c||"div"}},{children:[R,l?(0,z31.jsx)(oi,I({},J3)):null]}))]})}),Be=eE1;s();s();s();var X1=e=>typeof e=="string",Zf=()=>{let e,t,o=new Promise((a,i)=>{e=a,t=i});return o.resolve=e,o.reject=t,o},w31=e=>e==null?"":String(e),tE1=(e,t,o)=>{e.forEach(a=>{t[a]&&(o[a]=t[a])})},oE1=/###/g,M31=e=>e&&e.includes("###")?e.replace(oE1,"."):e,S31=e=>!e||X1(e),Jf=(e,t,o)=>{let a=X1(t)?t.split("."):t,i=0;for(;i<a.length-1;){if(S31(e))return{};let r=M31(a[i]);!e[r]&&o&&(e[r]=new o),Object.prototype.hasOwnProperty.call(e,r)?e=e[r]:e={},++i}return S31(e)?{}:{obj:e,k:M31(a[i])}},T31=(e,t,o)=>{let{obj:a,k:i}=Jf(e,t,Object);if(a!==void 0||t.length===1){a[i]=o;return}let r=t[t.length-1],n=t.slice(0,t.length-1),c=Jf(e,n,Object);for(;c.obj===void 0&&n.length;)r=`${n[n.length-1]}.${r}`,n=n.slice(0,n.length-1),c=Jf(e,n,Object),c?.obj&&typeof c.obj[`${c.k}.${r}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${r}`]=o},aE1=(e,t,o,a)=>{let{obj:i,k:r}=Jf(e,t,Object);i[r]=i[r]||[],i[r].push(o)},Sb=(e,t)=>{let{obj:o,k:a}=Jf(e,t);if(o&&Object.prototype.hasOwnProperty.call(o,a))return o[a]},iE1=(e,t,o)=>{let a=Sb(e,o);return a!==void 0?a:Sb(t,o)},A31=(e,t,o)=>{for(let a in t)a!=="__proto__"&&a!=="constructor"&&(a in e?X1(e[a])||e[a]instanceof String||X1(t[a])||t[a]instanceof String?o&&(e[a]=t[a]):A31(e[a],t[a],o):e[a]=t[a]);return e},S8=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),rE1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},nE1=e=>X1(e)?e.replace(/[&<>"'\/]/g,t=>rE1[t]):e,F_=class{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let o=this.regExpMap.get(t);if(o!==void 0)return o;let a=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,a),this.regExpQueue.push(t),a}},cE1=[" ",",","?","!",";"],lE1=new F_(20),sE1=(e,t,o)=>{t=t||"",o=o||"";let a=cE1.filter(n=>!t.includes(n)&&!o.includes(n));if(a.length===0)return!0;let i=lE1.getRegExp(`(${a.map(n=>n==="?"?"\\?":n).join("|")})`),r=!i.test(e);if(!r){let n=e.indexOf(o);n>0&&!i.test(e.substring(0,n))&&(r=!0)}return r},B_=(e,t,o=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let a=t.split(o),i=e;for(let r=0;r<a.length;){if(!i||typeof i!="object")return;let n,c="";for(let l=r;l<a.length;++l)if(l!==r&&(c+=o),c+=a[l],n=i[c],n!==void 0){if(["string","number","boolean"].includes(typeof n)&&l<a.length-1)continue;r+=l-r+1;break}i=n}return i},Xf=e=>e?.replace(/_/g,"-"),fE1={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}},V_=class e{constructor(t,o={}){this.init(t,o)}init(t,o={}){this.prefix=o.prefix||"i18next:",this.logger=t||fE1,this.options=o,this.debug=o.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,o,a,i){return i&&!this.debug?null:(t=t.map(r=>X1(r)?r.replace(/[\r\n\x00-\x1F\x7F]/g," "):r),X1(t[0])&&(t[0]=`${a}${this.prefix} ${t[0]}`),this.logger[o](t))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},n7=new V_,$n=class{constructor(){this.observers={}}on(t,o){return t.split(" ").forEach(a=>{this.observers[a]||(this.observers[a]=new Map);let i=this.observers[a].get(o)||0;this.observers[a].set(o,i+1)}),this}off(t,o){if(this.observers[t]){if(!o){delete this.observers[t];return}this.observers[t].delete(o)}}once(t,o){let a=(...i)=>{o(...i),this.off(t,a)};return this.on(t,a),this}emit(t,...o){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([i,r])=>{for(let n=0;n<r;n++)i(...o)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([i,r])=>{for(let n=0;n<r;n++)i(t,...o)})}},Tb=class extends $n{constructor(t,o={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.includes(t)||this.options.ns.push(t)}removeNamespaces(t){let o=this.options.ns.indexOf(t);o>-1&&this.options.ns.splice(o,1)}getResource(t,o,a,i={}){let r=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,n=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,c;t.includes(".")?c=t.split("."):(c=[t,o],a&&(Array.isArray(a)?c.push(...a):X1(a)&&r?c.push(...a.split(r)):c.push(a)));let l=Sb(this.data,c);return!l&&!o&&!a&&t.includes(".")&&(t=c[0],o=c[1],a=c.slice(2).join(".")),l||!n||!X1(a)?l:B_(this.data?.[t]?.[o],a,r)}addResource(t,o,a,i,r={silent:!1}){let n=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,c=[t,o];a&&(c=c.concat(n?a.split(n):a)),t.includes(".")&&(c=t.split("."),i=o,o=c[1]),this.addNamespaces(o),T31(this.data,c,i),r.silent||this.emit("added",t,o,a,i)}addResources(t,o,a,i={silent:!1}){for(let r in a)(X1(a[r])||Array.isArray(a[r]))&&this.addResource(t,o,r,a[r],{silent:!0});i.silent||this.emit("added",t,o,a)}addResourceBundle(t,o,a,i,r,n={silent:!1,skipCopy:!1}){let c=[t,o];t.includes(".")&&(c=t.split("."),i=a,a=o,o=c[1]),this.addNamespaces(o);let l=Sb(this.data,c)||{};n.skipCopy||(a=JSON.parse(JSON.stringify(a))),i?A31(l,a,r):l={...l,...a},T31(this.data,c,l),n.silent||this.emit("added",t,o,a)}removeResourceBundle(t,o){this.hasResourceBundle(t,o)&&delete this.data[t][o],this.removeNamespaces(o),this.emit("removed",t,o)}hasResourceBundle(t,o){return this.getResource(t,o)!==void 0}getResourceBundle(t,o){return o||(o=this.options.defaultNS),this.getResource(t,o)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let o=this.getDataByLanguage(t);return!!(o&&Object.keys(o)||[]).find(i=>o[i]&&Object.keys(o[i]).length>0)}toJSON(){return this.data}},O31={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,o,a,i){return e.forEach(r=>{t=this.processors[r]?.process(t,o,a,i)??t}),t}},$31=Symbol("i18next/PATH_KEY");function mE1(){let e=[],t=Object.create(null),o;return t.get=(a,i)=>(o?.revoke?.(),i===$31?e:(e.push(i),o=Proxy.revocable(a,t),o.proxy)),Proxy.revocable(Object.create(null),t).proxy}function za(e,t){let{[$31]:o}=e(mE1()),a=t?.keySeparator??".",i=t?.nsSeparator??":";if(o.length>1&&i){let r=t?.ns,n=Array.isArray(r)?r:null;if(n&&n.length>1&&n.slice(1).includes(o[0]))return`${o[0]}${i}${o.slice(1).join(a)}`}return o.join(a)}var N_=e=>!X1(e)&&typeof e!="boolean"&&typeof e!="number",Rb=class e extends $n{constructor(t,o={}){super(),tE1(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=n7.create("translator"),this.checkedLoadedFor={}}changeLanguage(t){t&&(this.language=t)}exists(t,o={interpolation:{}}){let a={...o};if(t==null)return!1;let i=this.resolve(t,a);if(i?.res===void 0)return!1;let r=N_(i.res);return!(a.returnObjects===!1&&r)}extractFromKey(t,o){let a=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");let i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,r=o.ns||this.options.defaultNS||[],n=a&&t.includes(a),c=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!sE1(t,a,i);if(n&&!c){let l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:X1(r)?[r]:r};let f=t.split(a);(a!==i||a===i&&this.options.ns.includes(f[0]))&&(r=f.shift()),t=f.join(i)}return{key:t,namespaces:X1(r)?[r]:r}}translate(t,o,a){let i=typeof o=="object"?{...o}:o;if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),t==null)return"";typeof t=="function"&&(t=za(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(R=>typeof R=="function"?za(R,{...this.options,...i}):String(R));let r=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,n=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:c,namespaces:l}=this.extractFromKey(t[t.length-1],i),f=l[l.length-1],m=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;m===void 0&&(m=":");let d=i.lng||this.language,u=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()==="cimode")return u?r?{res:`${f}${m}${c}`,usedKey:c,exactUsedKey:c,usedLng:d,usedNS:f,usedParams:this.getUsedParamsDetails(i)}:`${f}${m}${c}`:r?{res:c,usedKey:c,exactUsedKey:c,usedLng:d,usedNS:f,usedParams:this.getUsedParamsDetails(i)}:c;let p=this.resolve(t,i),b=p?.res,g=p?.usedKey||c,x=p?.exactUsedKey||c,y=["[object Number]","[object Function]","[object RegExp]"],v=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,w=i.count!==void 0&&!X1(i.count),T=e.hasDefaultValue(i),O=w?this.pluralResolver.getSuffix(d,i.count,i):"",C=i.ordinal&&w?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):"",z=w&&!i.ordinal&&i.count===0,M=z&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${O}`]||i[`defaultValue${C}`]||i.defaultValue,S=b;k&&!b&&T&&(S=M);let N=N_(S),P=Object.prototype.toString.apply(S);if(k&&S&&N&&!y.includes(P)&&!(X1(v)&&Array.isArray(S))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let R=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,S,{...i,ns:l}):`key '${c} (${this.language})' returned an object instead of string.`;return r?(p.res=R,p.usedParams=this.getUsedParamsDetails(i),p):R}if(n){let R=Array.isArray(S),A=R?[]:{},_=R?x:g;for(let E in S)if(Object.prototype.hasOwnProperty.call(S,E)){let D=`${_}${n}${E}`;T&&!b?A[E]=this.translate(D,{...i,defaultValue:N_(M)?M[E]:void 0,joinArrays:!1,ns:l}):A[E]=this.translate(D,{...i,joinArrays:!1,ns:l}),A[E]===D&&(A[E]=S[E])}b=A}}else if(k&&X1(v)&&Array.isArray(b))b=b.join(v),b&&(b=this.extendTranslation(b,t,i,a));else{let R=!1,A=!1;!this.isValidLookup(b)&&T&&(R=!0,b=M),this.isValidLookup(b)||(A=!0,b=c);let E=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&A?void 0:b,D=T&&M!==b&&this.options.updateMissing;if(A||R||D){if(this.logger.log(D?"updateKey":"missingKey",d,f,w&&!D?`${c}${this.pluralResolver.getSuffix(d,i.count,i)}`:c,D?M:b),n){let q=this.resolve(c,{...i,keySeparator:!1});q&&q.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let L=[],$=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&$&&$[0])for(let q=0;q<$.length;q++)L.push($[q]);else this.options.saveMissingTo==="all"?L=this.languageUtils.toResolveHierarchy(i.lng||this.language):L.push(i.lng||this.language);let B=(q,Q,o1)=>{let e1=T&&o1!==b?o1:E;this.options.missingKeyHandler?this.options.missingKeyHandler(q,f,Q,e1,D,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(q,f,Q,e1,D,i),this.emit("missingKey",q,f,Q,b)};this.options.saveMissing&&(this.options.saveMissingPlurals&&w?L.forEach(q=>{let Q=this.pluralResolver.getSuffixes(q,i);z&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!Q.includes(`${this.options.pluralSeparator}zero`)&&Q.push(`${this.options.pluralSeparator}zero`),Q.forEach(o1=>{B([q],c+o1,i[`defaultValue${o1}`]||M)})}):B(L,c,M))}b=this.extendTranslation(b,t,i,p,a),A&&b===c&&this.options.appendNamespaceToMissingKey&&(b=`${f}${m}${c}`),(A||R)&&this.options.parseMissingKeyHandler&&(b=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${f}${m}${c}`:c,R?b:void 0,i))}return r?(p.res=b,p.usedParams=this.getUsedParamsDetails(i),p):b}extendTranslation(t,o,a,i,r){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...a},a.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init({...a,interpolation:{...this.options.interpolation,...a.interpolation}});let l=X1(t)&&(a?.interpolation?.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),f;if(l){let d=t.match(this.interpolator.nestingRegexp);f=d&&d.length}let m=a.replace&&!X1(a.replace)?a.replace:a;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,a.lng||this.language||i.usedLng,a),l){let d=t.match(this.interpolator.nestingRegexp),u=d&&d.length;f<u&&(a.nest=!1)}!a.lng&&i&&i.res&&(a.lng=this.language||i.usedLng),a.nest!==!1&&(t=this.interpolator.nest(t,(...d)=>r?.[0]===d[0]&&!a.context?(this.logger.warn(`It seems you are nesting recursively key: ${d[0]} in key: ${o[0]}`),null):this.translate(...d,o),a)),a.interpolation&&this.interpolator.reset()}let n=a.postProcess||this.options.postProcess,c=X1(n)?[n]:n;return t!=null&&c?.length&&a.applyPostProcessor!==!1&&(t=O31.handle(c,t,o,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(a)},...a}:a,this)),t}resolve(t,o={}){let a,i,r,n,c;return X1(t)&&(t=[t]),Array.isArray(t)&&(t=t.map(l=>typeof l=="function"?za(l,{...this.options,...o}):l)),t.forEach(l=>{if(this.isValidLookup(a))return;let f=this.extractFromKey(l,o),m=f.key;i=m;let d=f.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));let u=o.count!==void 0&&!X1(o.count),p=u&&!o.ordinal&&o.count===0,b=o.context!==void 0&&(X1(o.context)||typeof o.context=="number")&&o.context!=="",g=o.lngs?o.lngs:this.languageUtils.toResolveHierarchy(o.lng||this.language,o.fallbackLng);d.forEach(x=>{this.isValidLookup(a)||(c=x,!this.checkedLoadedFor[`${g[0]}-${x}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(c)&&(this.checkedLoadedFor[`${g[0]}-${x}`]=!0,this.logger.warn(`key "${i}" for languages "${g.join(", ")}" won't get resolved as namespace "${c}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(y=>{if(this.isValidLookup(a))return;n=y;let v=[m];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(v,m,y,x,o);else{let w;u&&(w=this.pluralResolver.getSuffix(y,o.count,o));let T=`${this.options.pluralSeparator}zero`,O=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(o.ordinal&&w.startsWith(O)&&v.push(m+w.replace(O,this.options.pluralSeparator)),v.push(m+w),p&&v.push(m+T)),b){let C=`${m}${this.options.contextSeparator||"_"}${o.context}`;v.push(C),u&&(o.ordinal&&w.startsWith(O)&&v.push(C+w.replace(O,this.options.pluralSeparator)),v.push(C+w),p&&v.push(C+T))}}let k;for(;k=v.pop();)this.isValidLookup(a)||(r=k,a=this.getResource(y,x,k,o))}))})}),{res:a,usedKey:i,exactUsedKey:r,usedLng:n,usedNS:c}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,o,a,i={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,o,a,i):this.resourceStore.getResource(t,o,a,i)}getUsedParamsDetails(t={}){let o=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],a=t.replace&&!X1(t.replace),i=a?t.replace:t;if(a&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!a){i={...i};for(let r of o)delete i[r]}return i}static hasDefaultValue(t){let o="defaultValue";for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&a.startsWith(o)&&t[a]!==void 0)return!0;return!1}},Eb=class{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=n7.create("languageUtils")}getScriptPartFromCode(t){if(t=Xf(t),!t||!t.includes("-"))return null;let o=t.split("-");return o.length===2||(o.pop(),o[o.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(o.join("-"))}getLanguagePartFromCode(t){if(t=Xf(t),!t||!t.includes("-"))return t;let o=t.split("-");return this.formatLanguageCode(o[0])}formatLanguageCode(t){if(X1(t)&&t.includes("-")){let o;try{o=Intl.getCanonicalLocales(t)[0]}catch{}return o&&this.options.lowerCaseLng&&(o=o.toLowerCase()),o||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(t)}getBestMatchFromCodes(t){if(!t)return null;let o;return t.forEach(a=>{if(o)return;let i=this.formatLanguageCode(a);(!this.options.supportedLngs||this.isSupportedCode(i))&&(o=i)}),!o&&this.options.supportedLngs&&t.forEach(a=>{if(o)return;let i=this.getScriptPartFromCode(a);if(this.isSupportedCode(i))return o=i;let r=this.getLanguagePartFromCode(a);if(this.isSupportedCode(r))return o=r;o=this.options.supportedLngs.find(n=>n===r?!0:!n.includes("-")&&!r.includes("-")?!1:!!(n.includes("-")&&!r.includes("-")&&n.slice(0,n.indexOf("-"))===r||n.startsWith(r)&&r.length>1))}),o||(o=this.getFallbackCodes(this.options.fallbackLng)[0]),o}getFallbackCodes(t,o){if(!t)return[];if(typeof t=="function"&&(t=t(o)),X1(t)&&(t=[t]),Array.isArray(t))return t;if(!o)return t.default||[];let a=t[o];return a||(a=t[this.getScriptPartFromCode(o)]),a||(a=t[this.formatLanguageCode(o)]),a||(a=t[this.getLanguagePartFromCode(o)]),a||(a=t.default),a||[]}toResolveHierarchy(t,o){let a=this.getFallbackCodes((o===!1?[]:o)||this.options.fallbackLng||[],t),i=[],r=n=>{n&&(this.isSupportedCode(n)?i.push(n):this.logger.warn(`rejecting language code not found in supportedLngs: ${n}`))};return X1(t)&&(t.includes("-")||t.includes("_"))?(this.options.load!=="languageOnly"&&r(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&r(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&r(this.getLanguagePartFromCode(t))):X1(t)&&r(this.formatLanguageCode(t)),a.forEach(n=>{i.includes(n)||r(this.formatLanguageCode(n))}),i}},R31={zero:0,one:1,two:2,few:3,many:4,other:5},E31={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})},U_=class{constructor(t,o={}){this.languageUtils=t,this.options=o,this.logger=n7.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,o={}){let a=Xf(t==="dev"?"en":t),i=o.ordinal?"ordinal":"cardinal",r=JSON.stringify({cleanedCode:a,type:i});if(r in this.pluralRulesCache)return this.pluralRulesCache[r];let n;try{n=new Intl.PluralRules(a,{type:i})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),E31;if(!t.match(/-|_/))return E31;let l=this.languageUtils.getLanguagePartFromCode(t);n=this.getRule(l,o)}return this.pluralRulesCache[r]=n,n}needsPlural(t,o={}){let a=this.getRule(t,o);return a||(a=this.getRule("dev",o)),a?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,o,a={}){return this.getSuffixes(t,a).map(i=>`${o}${i}`)}getSuffixes(t,o={}){let a=this.getRule(t,o);return a||(a=this.getRule("dev",o)),a?a.resolvedOptions().pluralCategories.sort((i,r)=>R31[i]-R31[r]).map(i=>`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(t,o,a={}){let i=this.getRule(t,a);return i?`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${i.select(o)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",o,a))}},_31=(e,t,o,a=".",i=!0)=>{let r=iE1(e,t,o);return!r&&i&&X1(o)&&(r=B_(e,o,a),r===void 0&&(r=B_(t,o,a))),r},L_=e=>e.replace(/\$/g,"$$$$"),_b=class{constructor(t={}){this.logger=n7.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(o=>o),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});let{escape:o,escapeValue:a,useRawValueToEscape:i,prefix:r,prefixEscaped:n,suffix:c,suffixEscaped:l,formatSeparator:f,unescapeSuffix:m,unescapePrefix:d,nestingPrefix:u,nestingPrefixEscaped:p,nestingSuffix:b,nestingSuffixEscaped:g,nestingOptionsSeparator:x,maxReplaces:y,alwaysFormat:v}=t.interpolation;this.escape=o!==void 0?o:nE1,this.escapeValue=a!==void 0?a:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=r?S8(r):n||"{{",this.suffix=c?S8(c):l||"}}",this.formatSeparator=f||",",this.unescapePrefix=m?"":d?S8(d):"-",this.unescapeSuffix=this.unescapePrefix?"":m?S8(m):"",this.nestingPrefix=u?S8(u):p||S8("$t("),this.nestingSuffix=b?S8(b):g||S8(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=y||1e3,this.alwaysFormat=v!==void 0?v:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=(o,a)=>o?.source===a?(o.lastIndex=0,o):new RegExp(a,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,o,a,i){let r,n,c,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},f=p=>{if(!p.includes(this.formatSeparator)){let y=_31(o,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(y,void 0,a,{...i,...o,interpolationkey:p}):y}let b=p.split(this.formatSeparator),g=b.shift().trim(),x=b.join(this.formatSeparator).trim();return this.format(_31(o,l,g,this.options.keySeparator,this.options.ignoreJSONStructure),x,a,{...i,...o,interpolationkey:g})};this.resetRegExp(),!this.escapeValue&&typeof t=="string"&&/\$t\([^)]*\{[^}]*\{\{/.test(t)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");let m=i?.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>L_(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?L_(this.escape(p)):L_(p)}].forEach(p=>{for(c=0;r=p.regex.exec(t);){let b=r[1].trim();if(n=f(b),n===void 0)if(typeof m=="function"){let x=m(t,r,i);n=X1(x)?x:""}else if(i&&Object.prototype.hasOwnProperty.call(i,b))n="";else if(d){n=r[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${t}`),n="";else!X1(n)&&!this.useRawValueToEscape&&(n=w31(n));let g=p.safeValue(n);if(t=t.replace(r[0],g),d?(p.regex.lastIndex+=n.length,p.regex.lastIndex-=r[0].length):p.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),t}nest(t,o,a={}){let i,r,n,c=(l,f)=>{let m=this.nestingOptionsSeparator;if(!l.includes(m))return l;let d=l.split(new RegExp(`${S8(m)}[ ]*{`)),u=`{${d[1]}`;l=d[0],u=this.interpolate(u,n);let p=u.match(/'/g),b=u.match(/"/g);((p?.length??0)%2===0&&!b||(b?.length??0)%2!==0)&&(u=u.replace(/'/g,'"'));try{n=JSON.parse(u),f&&(n={...f,...n})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,g),`${l}${m}${u}`}return n.defaultValue&&n.defaultValue.includes(this.prefix)&&delete n.defaultValue,l};for(;i=this.nestingRegexp.exec(t);){let l=[];n={...a},n=n.replace&&!X1(n.replace)?n.replace:n,n.applyPostProcessor=!1,delete n.defaultValue;let f=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(f!==-1&&(l=i[1].slice(f).split(this.formatSeparator).map(m=>m.trim()).filter(Boolean),i[1]=i[1].slice(0,f)),r=o(c.call(this,i[1].trim(),n),n),r&&i[0]===t&&!X1(r))return r;X1(r)||(r=w31(r)),r||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),r=""),l.length&&(r=l.reduce((m,d)=>this.format(m,d,a.lng,{...a,interpolationkey:i[1].trim()}),r.trim())),t=t.replace(i[0],r),this.regexp.lastIndex=0}return t}},dE1=e=>{let t=e.toLowerCase().trim(),o={};if(e.includes("(")){let a=e.split("(");t=a[0].toLowerCase().trim();let i=a[1].slice(0,-1);t==="currency"&&!i.includes(":")?o.currency||(o.currency=i.trim()):t==="relativetime"&&!i.includes(":")?o.range||(o.range=i.trim()):i.split(";").forEach(n=>{if(n){let[c,...l]=n.split(":"),f=l.join(":").trim().replace(/^'+|'+$/g,""),m=c.trim();o[m]||(o[m]=f),f==="false"&&(o[m]=!1),f==="true"&&(o[m]=!0),isNaN(f)||(o[m]=parseInt(f,10))}})}return{formatName:t,formatOptions:o}},C31=e=>{let t={};return(o,a,i)=>{let r=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(r={...r,[i.interpolationkey]:void 0});let n=a+JSON.stringify(r),c=t[n];return c||(c=e(Xf(a),i),t[n]=c),c(o)}},uE1=e=>(t,o,a)=>e(Xf(o),a)(t),H_=class{constructor(t={}){this.logger=n7.create("formatter"),this.options=t,this.init(t)}init(t,o={interpolation:{}}){this.formatSeparator=o.interpolation.formatSeparator||",";let a=o.cacheInBuiltFormats?C31:uE1;this.formats={number:a((i,r)=>{let n=new Intl.NumberFormat(i,{...r});return c=>n.format(c)}),currency:a((i,r)=>{let n=new Intl.NumberFormat(i,{...r,style:"currency"});return c=>n.format(c)}),datetime:a((i,r)=>{let n=new Intl.DateTimeFormat(i,{...r});return c=>n.format(c)}),relativetime:a((i,r)=>{let n=new Intl.RelativeTimeFormat(i,{...r});return c=>n.format(c,r.range||"day")}),list:a((i,r)=>{let n=new Intl.ListFormat(i,{...r});return c=>n.format(c)})}}add(t,o){this.formats[t.toLowerCase().trim()]=o}addCached(t,o){this.formats[t.toLowerCase().trim()]=C31(o)}format(t,o,a,i={}){if(!o||t==null)return t;let r=o.split(this.formatSeparator);if(r.length>1&&r[0].indexOf("(")>1&&!r[0].includes(")")&&r.find(c=>c.includes(")"))){let c=r.findIndex(l=>l.includes(")"));r[0]=[r[0],...r.splice(1,c)].join(this.formatSeparator)}return r.reduce((c,l)=>{let{formatName:f,formatOptions:m}=dE1(l);if(this.formats[f]){let d=c;try{let u=i?.formatParams?.[i.interpolationkey]||{},p=u.locale||u.lng||i.locale||i.lng||a;d=this.formats[f](c,p,{...m,...i,...u})}catch(u){this.logger.warn(u)}return d}else this.logger.warn(`there was no format function for ${f}`);return c},t)}},pE1=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},G_=class extends $n{constructor(t,o,a,i={}){super(),this.backend=t,this.store=o,this.services=a,this.languageUtils=a.languageUtils,this.options=i,this.logger=n7.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(a,i.backend,i)}queueLoad(t,o,a,i){let r={},n={},c={},l={};return t.forEach(f=>{let m=!0;o.forEach(d=>{let u=`${f}|${d}`;!a.reload&&this.store.hasResourceBundle(f,d)?this.state[u]=2:this.state[u]<0||(this.state[u]===1?n[u]===void 0&&(n[u]=!0):(this.state[u]=1,m=!1,n[u]===void 0&&(n[u]=!0),r[u]===void 0&&(r[u]=!0),l[d]===void 0&&(l[d]=!0)))}),m||(c[f]=!0)}),(Object.keys(r).length||Object.keys(n).length)&&this.queue.push({pending:n,pendingCount:Object.keys(n).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(r),pending:Object.keys(n),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(l)}}loaded(t,o,a){let i=t.split("|"),r=i[0],n=i[1];o&&this.emit("failedLoading",r,n,o),!o&&a&&this.store.addResourceBundle(r,n,a,void 0,void 0,{skipCopy:!0}),this.state[t]=o?-1:2,o&&a&&(this.state[t]=0);let c={};this.queue.forEach(l=>{aE1(l.loaded,[r],n),pE1(l,t),o&&l.errors.push(o),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(f=>{c[f]||(c[f]={});let m=l.loaded[f];m.length&&m.forEach(d=>{c[f][d]===void 0&&(c[f][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(l=>!l.done)}read(t,o,a,i=0,r=this.retryTimeout,n){if(!t.length)return n(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:o,fcName:a,tried:i,wait:r,callback:n});return}this.readingCalls++;let c=(f,m)=>{if(this.readingCalls--,this.waitingReads.length>0){let d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(f&&m&&i<this.maxRetries){setTimeout(()=>{this.read(t,o,a,i+1,r*2,n)},r);return}n(f,m)},l=this.backend[a].bind(this.backend);if(l.length===2){try{let f=l(t,o);f&&typeof f.then=="function"?f.then(m=>c(null,m)).catch(c):c(null,f)}catch(f){c(f)}return}return l(t,o,c)}prepareLoading(t,o,a={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();X1(t)&&(t=this.languageUtils.toResolveHierarchy(t)),X1(o)&&(o=[o]);let r=this.queueLoad(t,o,a,i);if(!r.toLoad.length)return r.pending.length||i(),null;r.toLoad.forEach(n=>{this.loadOne(n)})}load(t,o,a){this.prepareLoading(t,o,{},a)}reload(t,o,a){this.prepareLoading(t,o,{reload:!0},a)}loadOne(t,o=""){let a=t.split("|"),i=a[0],r=a[1];this.read(i,r,"read",void 0,void 0,(n,c)=>{n&&this.logger.warn(`${o}loading namespace ${r} for language ${i} failed`,n),!n&&c&&this.logger.log(`${o}loaded namespace ${r} for language ${i}`,c),this.loaded(t,n,c)})}saveMissing(t,o,a,i,r,n={},c=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(o)){this.logger.warn(`did not save key "${a}" as the namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend?.create){let l={...n,isUpdate:r},f=this.backend.create.bind(this.backend);if(f.length<6)try{let m;f.length===5?m=f(t,o,a,i,l):m=f(t,o,a,i),m&&typeof m.then=="function"?m.then(d=>c(null,d)).catch(c):c(null,m)}catch(m){c(m)}else f(t,o,a,i,c,l)}!t||!t[0]||this.store.addResource(t[0],o,a,i)}}},j_=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),X1(e[1])&&(t.defaultValue=e[1]),X1(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let o=e[3]||e[2];Object.keys(o).forEach(a=>{t[a]=o[a]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),P31=e=>(X1(e.ns)&&(e.ns=[e.ns]),X1(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),X1(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Mb=()=>{},hE1=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(o=>{typeof e[o]=="function"&&(e[o]=e[o].bind(e))})},K_=class e extends $n{constructor(t={},o){if(super(),this.options=P31(t),this.services={},this.logger=n7,this.modules={external:[]},hE1(this),o&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,o),this;setTimeout(()=>{this.init(t,o)},0)}}init(t={},o){this.isInitializing=!0,typeof t=="function"&&(o=t,t={}),t.defaultNS==null&&t.ns&&(X1(t.ns)?t.defaultNS=t.ns:t.ns.includes("translation")||(t.defaultNS=t.ns[0]));let a=j_();this.options={...a,...this.options,...P31(t)},this.options.interpolation={...a.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=a.overloadTranslationOptionHandler);let i=f=>f?typeof f=="function"?new f:f:null;if(!this.options.isClone){this.modules.logger?n7.init(i(this.modules.logger),this.options):n7.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:f=H_;let m=new Eb(this.options);this.store=new Tb(this.options.resources,this.options);let d=this.services;d.logger=n7,d.resourceStore=this.store,d.languageUtils=m,d.pluralResolver=new U_(m,{prepend:this.options.pluralSeparator}),f&&(d.formatter=i(f),d.formatter.init&&d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new _b(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new G_(i(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",(u,...p)=>{this.emit(u,...p)}),this.modules.languageDetector&&(d.languageDetector=i(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=i(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new Rb(this.services,this.options),this.translator.on("*",(u,...p)=>{this.emit(u,...p)}),this.modules.external.forEach(u=>{u.init&&u.init(this)})}if(this.format=this.options.interpolation.format,o||(o=Mb),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(f=>{this[f]=(...m)=>this.store[f](...m)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=(...m)=>(this.store[f](...m),this)});let c=Zf(),l=()=>{let f=(m,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(d),o(m,d)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),c}loadResources(t,o=Mb){let a=o,i=X1(t)?t:this.language;if(typeof t=="function"&&(a=t),!this.options.resources||this.options.partialBundledLanguages){if(i?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return a();let r=[],n=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(f=>{f!=="cimode"&&(r.includes(f)||r.push(f))})};i?n(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>n(l)),this.options.preload?.forEach?.(c=>n(c)),this.services.backendConnector.load(r,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),a(c)})}else a(null)}reloadResources(t,o,a){let i=Zf();return typeof t=="function"&&(a=t,t=void 0),typeof o=="function"&&(a=o,o=void 0),t||(t=this.languages),o||(o=this.options.ns),a||(a=Mb),this.services.backendConnector.reload(t,o,r=>{i.resolve(),a(r)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&O31.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!["cimode","dev"].includes(t)){for(let o=0;o<this.languages.length;o++){let a=this.languages[o];if(!["cimode","dev"].includes(a)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}!this.resolvedLanguage&&!this.languages.includes(t)&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,o){this.isLanguageChangingTo=t;let a=Zf();this.emit("languageChanging",t);let i=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},r=(c,l)=>{l?this.isLanguageChangingTo===t&&(i(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,a.resolve((...f)=>this.t(...f)),o&&o(c,(...f)=>this.t(...f))},n=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);let l=X1(c)?c:c&&c[0],f=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(X1(c)?[c]:c);f&&(this.language||i(f),this.translator.language||this.translator.changeLanguage(f),this.services.languageDetector?.cacheUserLanguage?.(f)),this.loadResources(f,m=>{r(m,f)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?n(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(n):this.services.languageDetector.detect(n):n(t),a}getFixedT(t,o,a,i){let r=i?.scopeNs,n=(c,l,...f)=>{let m;typeof l!="object"?m=this.options.overloadTranslationOptionHandler([c,l].concat(f)):m={...l},m.lng=m.lng||n.lng,m.lngs=m.lngs||n.lngs;let d=m.ns!==void 0&&m.ns!==null;m.ns=m.ns||n.ns,m.keyPrefix!==""&&(m.keyPrefix=m.keyPrefix||a||n.keyPrefix);let u={...this.options,...m};Array.isArray(r)&&!d&&(u.ns=r),typeof m.keyPrefix=="function"&&(m.keyPrefix=za(m.keyPrefix,u));let p=this.options.keySeparator||".",b;return m.keyPrefix&&Array.isArray(c)?b=c.map(g=>(typeof g=="function"&&(g=za(g,u)),`${m.keyPrefix}${p}${g}`)):(typeof c=="function"&&(c=za(c,u)),b=m.keyPrefix?`${m.keyPrefix}${p}${c}`:c),this.t(b,m)};return X1(t)?n.lng=t:n.lngs=t,n.ns=o,n.keyPrefix=a,n}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,o={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let a=o.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,r=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;let n=(c,l)=>{let f=this.services.backendConnector.state[`${c}|${l}`];return f===-1||f===0||f===2};if(o.precheck){let c=o.precheck(this,n);if(c!==void 0)return c}return!!(this.hasResourceBundle(a,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||n(a,t)&&(!i||n(r,t)))}loadNamespaces(t,o){let a=Zf();return this.options.ns?(X1(t)&&(t=[t]),t.forEach(i=>{this.options.ns.includes(i)||this.options.ns.push(i)}),this.loadResources(i=>{a.resolve(),o&&o(i)}),a):(o&&o(),Promise.resolve())}loadLanguages(t,o){let a=Zf();X1(t)&&(t=[t]);let i=this.options.preload||[],r=t.filter(n=>!i.includes(n)&&this.services.languageUtils.isSupportedCode(n));return r.length?(this.options.preload=i.concat(r),this.loadResources(n=>{a.resolve(),o&&o(n)}),a):(o&&o(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{let i=new Intl.Locale(t);if(i&&i.getTextInfo){let r=i.getTextInfo();if(r&&r.direction)return r.direction}}catch{}let o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services?.languageUtils||new Eb(j_());return t.toLowerCase().indexOf("-latn")>1?"ltr":o.includes(a.getLanguagePartFromCode(t))||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},o){let a=new e(t,o);return a.createInstance=e.createInstance,a}cloneInstance(t={},o=Mb){let a=t.forkResourceStore;a&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},r=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(r.logger=r.logger.clone(t)),["store","services","language"].forEach(c=>{r[c]=this[c]}),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},a){let c=Object.keys(this.store.data).reduce((l,f)=>(l[f]={...this.store.data[f]},l[f]=Object.keys(l[f]).reduce((m,d)=>(m[d]={...l[f][d]},m),l[f]),l),{});r.store=new Tb(c,i),r.services.resourceStore=r.store}if(t.interpolation){let l={...j_().interpolation,...this.options.interpolation,...t.interpolation},f={...i,interpolation:l};r.services.interpolator=new _b(f)}return r.translator=new Rb(r.services,i),r.translator.on("*",(c,...l)=>{r.emit(c,...l)}),r.init(i,o),r.translator.options=i,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},R0=K_.createInstance(),I31=R0.createInstance,WV2=R0.dir,ZV2=R0.init,JV2=R0.loadResources,XV2=R0.reloadResources,YV2=R0.use,QV2=R0.changeLanguage,eU2=R0.getFixedT,tU2=R0.t,oU2=R0.exists,aU2=R0.setDefaultNamespace,iU2=R0.hasLoadedNamespace,rU2=R0.loadNamespaces,nU2=R0.loadLanguages;s();var{slice:gE1,forEach:vE1}=[];function bE1(e){return vE1.call(gE1.call(arguments,1),t=>{if(t)for(let o in t)e[o]===void 0&&(e[o]=t[o])}),e}function yE1(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(o=>o.test(e))}var D31=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,kE1=function(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},i=encodeURIComponent(t),r=`${e}=${i}`;if(a.maxAge>0){let n=a.maxAge-0;if(Number.isNaN(n))throw new Error("maxAge should be a Number");r+=`; Max-Age=${Math.floor(n)}`}if(a.domain){if(!D31.test(a.domain))throw new TypeError("option domain is invalid");r+=`; Domain=${a.domain}`}if(a.path){if(!D31.test(a.path))throw new TypeError("option path is invalid");r+=`; Path=${a.path}`}if(a.expires){if(typeof a.expires.toUTCString!="function")throw new TypeError("option expires is invalid");r+=`; Expires=${a.expires.toUTCString()}`}if(a.httpOnly&&(r+="; HttpOnly"),a.secure&&(r+="; Secure"),a.sameSite)switch(typeof a.sameSite=="string"?a.sameSite.toLowerCase():a.sameSite){case!0:r+="; SameSite=Strict";break;case"lax":r+="; SameSite=Lax";break;case"strict":r+="; SameSite=Strict";break;case"none":r+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return a.partitioned&&(r+="; Partitioned"),r},N31={create(e,t,o,a){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};o&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+o*60*1e3)),a&&(i.domain=a),document.cookie=kE1(e,t,i)},read(e){let t=`${e}=`,o=document.cookie.split(";");for(let a=0;a<o.length;a++){let i=o[a];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null},remove(e,t){this.create(e,"",-1,t)}},xE1={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return N31.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:o,cookieMinutes:a,cookieDomain:i,cookieOptions:r}=t;o&&typeof document<"u"&&N31.create(o,e,a,i,r)}},zE1={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,o;if(typeof window<"u"){let{search:a}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(a=window.location.hash.substring(window.location.hash.indexOf("?")));let r=a.substring(1).split("&");for(let n=0;n<r.length;n++){let c=r[n].indexOf("=");c>0&&r[n].substring(0,c)===t&&(o=r[n].substring(c+1))}}return o}},wE1={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:o}=e,a;if(typeof window<"u"){let{hash:i}=window.location;if(i&&i.length>2){let r=i.substring(1);if(t){let n=r.split("&");for(let c=0;c<n.length;c++){let l=n[c].indexOf("=");l>0&&n[c].substring(0,l)===t&&(a=n[c].substring(l+1))}}if(a)return a;if(!a&&o>-1){let n=i.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof o=="number"?o:0]?.replace("/",""):void 0}}}return a}},In=null,L31=()=>{if(In!==null)return In;try{if(In=typeof window<"u"&&window.localStorage!==null,!In)return!1;let e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{In=!1}return In},ME1={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&L31())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:o}=t;o&&L31()&&window.localStorage.setItem(o,e)}},Dn=null,j31=()=>{if(Dn!==null)return Dn;try{if(Dn=typeof window<"u"&&window.sessionStorage!==null,!Dn)return!1;let e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Dn=!1}return Dn},SE1={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&j31())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:o}=t;o&&j31()&&window.sessionStorage.setItem(o,e)}},TE1={name:"navigator",lookup(e){let t=[];if(typeof navigator<"u"){let{languages:o,userLanguage:a,language:i}=navigator;if(o)for(let r=0;r<o.length;r++)t.push(o[r]);a&&t.push(a),i&&t.push(i)}return t.length>0?t:void 0}},RE1={name:"htmlTag",lookup(e){let{htmlTag:t}=e,o,a=t||(typeof document<"u"?document.documentElement:null);return a&&typeof a.getAttribute=="function"&&(o=a.getAttribute("lang")),o}},EE1={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;let o=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(o)?o[typeof t=="number"?t:0]?.replace("/",""):void 0}},_E1={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e,o=typeof t=="number"?t+1:1,a=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(a)return a[o]}},F31=!1;try{document.cookie,F31=!0}catch{}var B31=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];F31||B31.splice(1,1);var CE1=()=>({order:B31,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}),Yf=class{constructor(t){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,o)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=bE1(o,this.options||{},CE1()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=i=>i.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=a,this.addDetector(xE1),this.addDetector(zE1),this.addDetector(ME1),this.addDetector(SE1),this.addDetector(TE1),this.addDetector(RE1),this.addDetector(EE1),this.addDetector(_E1),this.addDetector(wE1)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,o=[];return t.forEach(a=>{if(this.detectors[a]){let i=this.detectors[a].lookup(this.options);i&&typeof i=="string"&&(i=[i]),i&&(o=o.concat(i))}}),o=o.filter(a=>a!=null&&!yE1(a)).map(a=>this.options.convertDetectedLanguage(a)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?o:o.length>0?o[0]:null}cacheUserLanguage(t){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;o&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||o.forEach(a=>{this.detectors[a]&&this.detectors[a].cacheUserLanguage(t,this.options)}))}};Yf.type="languageDetector";s();s();var NE1=j(U(),1);s();var em=j(U(),1);s();var PE1=j(U31());s();var Cb=(e,t,o,a)=>{let i=[o,{code:t,...a||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);Ve(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},H31={},r9=(e,t,o,a)=>{Ve(o)&&H31[o]||(Ve(o)&&(H31[o]=new Date),Cb(e,t,o,a))},G31=(e,t)=>()=>{if(e.isInitialized)t();else{let o=()=>{setTimeout(()=>{e.off("initialized",o)},0),t()};e.on("initialized",o)}},Pb=(e,t,o)=>{e.loadNamespaces(t,G31(e,o))},q_=(e,t,o,a)=>{if(Ve(o)&&(o=[o]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Pb(e,o,a);o.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,G31(e,a))},K31=(e,t,o={})=>!t.languages||!t.languages.length?(r9(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:o.lng,precheck:(a,i)=>{if(o.bindI18n&&o.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!i(a.isLanguageChangingTo,e))return!1}});var Ve=e=>typeof e=="string",W_=e=>typeof e=="object"&&e!==null;s();s();var AE1=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,OE1={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},$E1=e=>OE1[e],Z_=e=>e.replace(AE1,$E1);var J_={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Z_,transDefaultProps:void 0},Ab=(e={})=>{J_={...J_,...e}},Qf=()=>J_;s();var q31,Ob=e=>{q31=e},Ue=()=>q31;s();var W31=j(U(),1);s();var $b={type:"3rdParty",init(e){Ab(e.options.react),Ob(e)}};var T8=(0,W31.createContext)(),Ib=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(o=>{this.usedNamespaces[o]||(this.usedNamespaces[o]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}};s();var Q31=j(U(),1);s();var wa=j(U(),1);s();s();var Nn=class e extends Error{constructor(t,o,a){super(t),this.name="TranslationParserError",this.position=o,this.translationString=a,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};s();var Z31={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&copy;":"©","&reg;":"®","&trade;":"™","&hellip;":"…","&ndash;":"–","&mdash;":"—","&lsquo;":"‘","&rsquo;":"’","&sbquo;":"‚","&ldquo;":"“","&rdquo;":"”","&bdquo;":"„","&dagger;":"†","&Dagger;":"‡","&bull;":"•","&prime;":"′","&Prime;":"″","&lsaquo;":"‹","&rsaquo;":"›","&sect;":"§","&para;":"¶","&middot;":"·","&ensp;":" ","&emsp;":" ","&thinsp;":" ","&euro;":"€","&pound;":"£","&yen;":"¥","&cent;":"¢","&curren;":"¤","&times;":"×","&divide;":"÷","&minus;":"−","&plusmn;":"±","&ne;":"≠","&le;":"≤","&ge;":"≥","&asymp;":"≈","&equiv;":"≡","&infin;":"∞","&int;":"∫","&sum;":"∑","&prod;":"∏","&radic;":"√","&part;":"∂","&permil;":"‰","&deg;":"°","&micro;":"µ","&larr;":"←","&uarr;":"↑","&rarr;":"→","&darr;":"↓","&harr;":"↔","&crarr;":"↵","&lArr;":"⇐","&uArr;":"⇑","&rArr;":"⇒","&dArr;":"⇓","&hArr;":"⇔","&alpha;":"α","&beta;":"β","&gamma;":"γ","&delta;":"δ","&epsilon;":"ε","&zeta;":"ζ","&eta;":"η","&theta;":"θ","&iota;":"ι","&kappa;":"κ","&lambda;":"λ","&mu;":"μ","&nu;":"ν","&xi;":"ξ","&omicron;":"ο","&pi;":"π","&rho;":"ρ","&sigma;":"σ","&tau;":"τ","&upsilon;":"υ","&phi;":"φ","&chi;":"χ","&psi;":"ψ","&omega;":"ω","&Alpha;":"Α","&Beta;":"Β","&Gamma;":"Γ","&Delta;":"Δ","&Epsilon;":"Ε","&Zeta;":"Ζ","&Eta;":"Η","&Theta;":"Θ","&Iota;":"Ι","&Kappa;":"Κ","&Lambda;":"Λ","&Mu;":"Μ","&Nu;":"Ν","&Xi;":"Ξ","&Omicron;":"Ο","&Pi;":"Π","&Rho;":"Ρ","&Sigma;":"Σ","&Tau;":"Τ","&Upsilon;":"Υ","&Phi;":"Φ","&Chi;":"Χ","&Psi;":"Ψ","&Omega;":"Ω","&Agrave;":"À","&Aacute;":"Á","&Acirc;":"Â","&Atilde;":"Ã","&Auml;":"Ä","&Aring;":"Å","&AElig;":"Æ","&Ccedil;":"Ç","&Egrave;":"È","&Eacute;":"É","&Ecirc;":"Ê","&Euml;":"Ë","&Igrave;":"Ì","&Iacute;":"Í","&Icirc;":"Î","&Iuml;":"Ï","&ETH;":"Ð","&Ntilde;":"Ñ","&Ograve;":"Ò","&Oacute;":"Ó","&Ocirc;":"Ô","&Otilde;":"Õ","&Ouml;":"Ö","&Oslash;":"Ø","&Ugrave;":"Ù","&Uacute;":"Ú","&Ucirc;":"Û","&Uuml;":"Ü","&Yacute;":"Ý","&THORN;":"Þ","&szlig;":"ß","&agrave;":"à","&aacute;":"á","&acirc;":"â","&atilde;":"ã","&auml;":"ä","&aring;":"å","&aelig;":"æ","&ccedil;":"ç","&egrave;":"è","&eacute;":"é","&ecirc;":"ê","&euml;":"ë","&igrave;":"ì","&iacute;":"í","&icirc;":"î","&iuml;":"ï","&eth;":"ð","&ntilde;":"ñ","&ograve;":"ò","&oacute;":"ó","&ocirc;":"ô","&otilde;":"õ","&ouml;":"ö","&oslash;":"ø","&ugrave;":"ù","&uacute;":"ú","&ucirc;":"û","&uuml;":"ü","&yacute;":"ý","&thorn;":"þ","&yuml;":"ÿ","&iexcl;":"¡","&iquest;":"¿","&fnof;":"ƒ","&circ;":"ˆ","&tilde;":"˜","&OElig;":"Œ","&oelig;":"œ","&Scaron;":"Š","&scaron;":"š","&Yuml;":"Ÿ","&ordf;":"ª","&ordm;":"º","&macr;":"¯","&acute;":"´","&cedil;":"¸","&sup1;":"¹","&sup2;":"²","&sup3;":"³","&frac14;":"¼","&frac12;":"½","&frac34;":"¾","&spades;":"♠","&clubs;":"♣","&hearts;":"♥","&diams;":"♦","&loz;":"◊","&oline;":"‾","&frasl;":"⁄","&weierp;":"℘","&image;":"ℑ","&real;":"ℜ","&alefsym;":"ℵ"},LE1=new RegExp(Object.keys(Z31).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g"),J31=e=>e.replace(LE1,t=>Z31[t]).replace(/&#(\d+);/g,(t,o)=>String.fromCharCode(parseInt(o,10))).replace(/&#x([0-9a-fA-F]+);/g,(t,o)=>String.fromCharCode(parseInt(o,16)));s();var X31=e=>{let t=[],o=0,a="",i=()=>{a&&(t.push({type:"Text",value:a,position:o-a.length}),a="")};for(;o<e.length;){let r=e[o];if(r==="<"){let n=e.slice(o).match(/^<(\d+)>/);if(n)i(),t.push({type:"TagOpen",value:n[0],position:o,tagNumber:parseInt(n[1],10)}),o+=n[0].length;else{let c=e.slice(o).match(/^<\/(\d+)>/);c?(i(),t.push({type:"TagClose",value:c[0],position:o,tagNumber:parseInt(c[1],10)}),o+=c[0].length):(a+=r,o+=1)}}else a+=r,o+=1}return i(),t};s();var tm=j(U(),1);var jE1=(e,t,o)=>{let{type:a,props:i={}}=e;if(i.children&&Array.isArray(i.children)&&o){let{children:r,...n}=i;return tm.default.createElement(a,n,...t)}return t.length===0?tm.default.createElement(a,i):t.length===1?tm.default.createElement(a,i,t[0]):tm.default.createElement(a,i,...t)},Y31=(e,t=[])=>{if(!e)return[];let o=X31(e),a=[],i=[],r=new Set,n=()=>{if(i.length===0)return t;let c=i[i.length-1];return c.declaration.props?.children&&Array.isArray(c.declaration.props.children)?c.declaration.props.children:c.declarations};if(o.forEach(c=>{switch(c.type){case"Text":{let l=J31(c.value);(i.length>0?i[i.length-1].children:a).push(l)}break;case"TagOpen":{let{tagNumber:l}=c,f=n(),m=f[l];if(!m){r.add(l);let d=`<${l}>`;(i.length>0?i[i.length-1].children:a).push(d);break}i.push({tagNumber:l,children:[],position:c.position,declaration:m,declarations:f})}break;case"TagClose":{let{tagNumber:l}=c;if(r.has(l)){let u=`</${l}>`;(i.length>0?i[i.length-1].children:a).push(u),r.delete(l);break}if(i.length===0)throw new Nn(`Unexpected closing tag </${l}> at position ${c.position}`,c.position,e);let f=i.pop();if(f.tagNumber!==l)throw new Nn(`Mismatched tags: expected </${f.tagNumber}> but got </${l}> at position ${c.position}`,c.position,e);let m=jE1(f.declaration,f.children,f.declarations);(i.length>0?i[i.length-1].children:a).push(m)}break}}),i.length>0){let c=i[i.length-1];throw new Nn(`Unclosed tag <${c.tagNumber}> at position ${c.position}`,c.position,e)}return a};function Db({i18nKey:e,defaultTranslation:t,content:o,ns:a,values:i={},i18n:r,t:n}){let c=r||Ue();if(!c)return r9(c,"NO_I18NEXT_INSTANCE","IcuTrans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:e}),wa.default.createElement(wa.default.Fragment,{},t);let l=n||c.t?.bind(c)||(u=>u),f=a||l.ns||c.options?.defaultNS;f=Ve(f)?[f]:f||["translation"];let m=i;c.options?.interpolation?.defaultVariables&&(m=i&&Object.keys(i).length>0?{...i,...c.options.interpolation.defaultVariables}:{...c.options.interpolation.defaultVariables});let d=l(e,{defaultValue:t,...m,ns:f});try{let u=Y31(d,o);return wa.default.createElement(wa.default.Fragment,{},...u)}catch(u){return Cb(c,"ICU_TRANS_RENDER_ERROR",`IcuTrans component error for key "${e}": ${u.message}`,{i18nKey:e,error:u}),wa.default.createElement(wa.default.Fragment,{},d)}}Db.displayName="IcuTransWithoutContext";function e01({i18nKey:e,defaultTranslation:t,content:o,ns:a,values:i={},i18n:r,t:n}){let{i18n:c,defaultNS:l}=(0,Q31.useContext)(T8)||{},f=r||c||Ue(),m=n||f?.t.bind(f);return Db({i18nKey:e,defaultTranslation:t,content:o,ns:a||m?.ns||l||f?.options?.defaultNS,values:i,i18n:f,t:n})}e01.displayName="IcuTrans";s();var E0=j(U(),1),i01=j(Y_(),1);var ZE1=(e,t)=>{if(Ve(t))return t;if(W_(t)&&Ve(t.defaultValue))return t.defaultValue;if(typeof e=="function")return"";if(Array.isArray(e)){let o=e[e.length-1];return typeof o=="function"?"":o}return e},JE1={t:ZE1,ready:!1},XE1=()=>()=>{},He=(e,t={})=>{let{i18n:o}=t,{i18n:a,defaultNS:i}=(0,E0.useContext)(T8)||{},r=o||a||Ue();r&&!r.reportNamespaces&&(r.reportNamespaces=new Ib),r||r9(r,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");let n=(0,E0.useMemo)(()=>({...Qf(),...r?.options?.react,...t}),[r,t]),{useSuspense:c,keyPrefix:l}=n,f=e||i||r?.options?.defaultNS,m=Ve(f)?[f]:f||["translation"],d=(0,E0.useMemo)(()=>m,m);r?.reportNamespaces?.addUsedNamespaces?.(d);let u=(0,E0.useRef)(0),p=(0,E0.useCallback)(M=>{if(!r)return XE1;let{bindI18n:S,bindI18nStore:N}=n,P=()=>{u.current+=1,M()};return S&&r.on(S,P),N&&r.store.on(N,P),()=>{S&&S.split(" ").forEach(R=>r.off(R,P)),N&&N.split(" ").forEach(R=>r.store.off(R,P))}},[r,n]),b=(0,E0.useRef)(),g=(0,E0.useCallback)(()=>{if(!r)return JE1;let M=!!(r.isInitialized||r.initializedStoreOnce)&&d.every(_=>K31(_,r,n)),S=t.lng||r.language,N=u.current,P=b.current;if(P&&P.ready===M&&P.lng===S&&P.keyPrefix===l&&P.revision===N)return P;let A={t:r.getFixedT(S,n.nsMode==="fallback"?d:d[0],l,{scopeNs:d}),ready:M,lng:S,keyPrefix:l,revision:N};return b.current=A,A},[r,d,l,n,t.lng]),[x,y]=(0,E0.useState)(0),{t:v,ready:k}=(0,i01.useSyncExternalStore)(p,g,g);(0,E0.useEffect)(()=>{if(r&&!k&&!c){let M=()=>y(S=>S+1);t.lng?q_(r,t.lng,d,M):Pb(r,d,M)}},[r,t.lng,d,k,c,x]);let w=r||{},T=(0,E0.useRef)(null),O=(0,E0.useRef)(),C=M=>{let S=Object.getOwnPropertyDescriptors(M);S.__original&&delete S.__original;let N=Object.create(Object.getPrototypeOf(M),S);if(!Object.prototype.hasOwnProperty.call(N,"__original"))try{Object.defineProperty(N,"__original",{value:M,writable:!1,enumerable:!1,configurable:!1})}catch{}return N},z=(0,E0.useMemo)(()=>{let M=w,S=M?.language,N=M;M&&(T.current&&T.current.__original===M?O.current!==S?(N=C(M),T.current=N,O.current=S):N=T.current:(N=C(M),T.current=N,O.current=S));let P=!k&&!c?(...A)=>(r9(r,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),v(...A)):v,R=[P,N,k];return R.t=P,R.i18n=N,R.ready=k,R},[v,w,k,w.resolvedLanguage,w.language,w.languages]);if(r&&c&&!k)throw new Promise(M=>{let S=()=>M();t.lng?q_(r,t.lng,d,S):Pb(r,d,S)});return z};s();var r01=j(U(),1);s();s();var Nb=j(U(),1);function Lb({i18n:e,defaultNS:t,children:o}){let a=(0,Nb.useMemo)(()=>({i18n:e,defaultNS:t}),[e,t]);return(0,Nb.createElement)(T8.Provider,{value:a},o)}s();var o_1=j(U(),1);s();var QE1=j(U(),1);s();var $3="translations";var am="https://cdn.jsdelivr.net/npm/@zappway/embeds@1.1.15/dist/locales",aC=["ar","az","bg","bn","ca","cs","da","de","el","eo","es","et","fa","fi","fr","ga","he","hi","hu","id","it","ja","ko","lt","lv","ms","nb","nl","pl","pt","ro","ru","sk","sl","sv","th","tl","tr","uk","ur","zh","en","pt-BR"],a_1=new Set(aC),im={main:{localeDirectory:"locales-ZappWay",splitDirectories:["i18n-split"],browserDirectories:[],cdnDirectory:"locales-ZappWay",cdnSplit:!0},lp:{localeDirectory:"locales-ZappWay-LP",splitDirectories:["i18n-split-lp","i18n-split-zappway-lp"],browserDirectories:[],cdnDirectory:"locales-ZappWay-LP",cdnSplit:!1},integrations:{localeDirectory:"locales-Integrations",splitDirectories:["i18n-split-integrations"],browserDirectories:[],cdnDirectory:"locales-Integrations",cdnSplit:!1},emails:{localeDirectory:"locales-Emails",splitDirectories:["i18n-split-emails"],browserDirectories:[],cdnDirectory:"locales-Emails",cdnSplit:!1},workers:{localeDirectory:"locales-Workers",splitDirectories:["i18n-split-workers"],browserDirectories:[],cdnDirectory:"locales-Workers",cdnSplit:!1},zappflux:{localeDirectory:"locales-ZappFlux",splitDirectories:["i18n-split-zappflux"],browserDirectories:[],cdnDirectory:"locales-ZappFlux",cdnSplit:!1},"zappflux-lp":{localeDirectory:"locales-ZappFlux-LP",splitDirectories:["i18n-split-zappflux-lp"],browserDirectories:[],cdnDirectory:"locales-ZappFlux-LP",cdnSplit:!1},"zappflux-templates":{localeDirectory:"locales-ZappFlux-Templates",splitDirectories:["i18n-split-zappflux-templates"],browserDirectories:[],cdnDirectory:"locales-ZappFlux-Templates",cdnSplit:!1,namespaceFiles:!0},"pitch-deck":{localeDirectory:"locales-PitchDeck",splitDirectories:["i18n-split-pitch-deck"],browserDirectories:[],cdnDirectory:"locales-PitchDeck",cdnSplit:!1},reports:{localeDirectory:"locales-Reports",splitDirectories:["i18n-split-reports"],browserDirectories:[],cdnDirectory:"locales-Reports",cdnSplit:!1},rag:{localeDirectory:"locales-RAG",splitDirectories:["i18n-split-rag"],browserDirectories:[],cdnDirectory:"locales-RAG",cdnSplit:!1}},Hb={lp:"lp",rag:"rag",flow:"zappflux",emails:"emails",workers:"workers",reports:"reports",zappflux:"zappflux",integrations:"integrations","pitch-deck":"pitch-deck","zappflux-lp":"zappflux-lp","zappflux-templates":"zappflux-templates",WhatsAppSettings:"integrations",WhatsAppIntegrationPage:"integrations",WhatsAppBusiness_IntegrationSettings:"integrations",TelegramSettings:"integrations",Telegram_IntegrationSettings:"integrations",InstagramSettings:"integrations",Instagram_IntegrationSettings:"integrations",MessengerSettings:"integrations",Messenger_IntegrationSettings:"integrations",TikTokSettings:"integrations",TikTok_IntegrationSettings:"integrations",ZendeskSettings:"integrations",Zendesk_IntegrationSettings:"integrations",SlackSettings:"integrations",ShopifySettings:"integrations",ConnectWhatsApp:"integrations",QRCode:"integrations",crisp:"integrations",crispConfig:"integrations",crispSettingsModal:"integrations"},jb=null,om=null,c7=null,tC=null,jn=null,n9=null,_0=null,oC=null,i_1=globalThis.eval;function r_1(){if(c7)return c7;try{if(typeof __non_webpack_require__=="function")c7=__non_webpack_require__;else if(typeof G8=="function")c7=G8;else if(globalThis.require)c7=globalThis.require;else{let e="require";c7=globalThis[e]||i_1(e)}return c7}catch(e){return console.error(" [i18n-runtime-loader] Critical: Failed to obtain require function",e),null}}function Fn(){if(typeof window<"u")return!1;if(jb&&om)return!0;try{let e=r_1();return e?(jb=e("fs"),om=e("path"),tC=jb.readFileSync,jn=jb.existsSync,n9=om.join,_0=om.resolve,oC=om.dirname,!0):!1}catch{return!1}}var Fb=new Map,n01=new Map;function iC(e){if(Fn(),!jn)return[];let t=new Set;return e.filter(o=>!!o).filter(o=>t.has(o)||!jn(o)?!1:(t.add(o),!0))}function n_1(e){if(Fn(),!(!c7||!oC))try{let o=c7.resolve.call(c7,`${e}/package.json`);return oC(o)}catch{return}}var Bb=null;function c_1(){if(Bb)return Bb;if(Fn(),!_0)return[];let e=process.cwd(),t=h.ZW_I18N_CACHE_ROOT;return Bb=iC([t,_0(e,".next/cache"),_0(e,"../.next/cache"),_0(e,"../../.next/cache"),_0(e,"apps/zappway/dashboard/.next/cache"),_0(e,"packages/zappflux/packages/app/.next/cache"),"/var/task/.next/cache","/var/task/apps/zappway/dashboard/.next/cache"]),Bb}var Vb=null;function l_1(){if(Vb)return Vb;if(Fn(),!_0||!n9)return[];let e=process.cwd(),t=n_1("@zappway/lib");return Vb=iC([t,_0(e,"packages/zappway/lib"),_0(e,"../packages/zappway/lib"),_0(e,"../../packages/zappway/lib"),_0(e,"../../../packages/zappway/lib"),_0(e,"../../../../packages/zappway/lib"),_0(e,"node_modules/@zappway/lib"),_0(e,"../node_modules/@zappway/lib"),_0(e,"../../node_modules/@zappway/lib"),_0(e,"../../../node_modules/@zappway/lib"),_0(e,"../../../../node_modules/@zappway/lib")]).filter(o=>jn(n9(o,"locales"))),Vb}var Q_=new Map;function c01(e){if(Q_.has(e))return Q_.get(e);if(Fn(),!tC||!jn||!jn(e))return null;try{let t=tC(e,"utf8"),o=JSON.parse(t);return Q_.set(e,o),o}catch{return null}}function l01(e,t){if(!e)return null;let o=t||$3;if(o===$3)return e;if(e[o])return e[o];let a=o.split("."),i=e,r=!0;for(let n of a)if(i&&typeof i=="object"&&n in i)i=i[n];else{r=!1;break}return r&&i&&typeof i=="object"?i:o!==$3?{}:e}var Ub=null;function s_1(){return Ub||(Ub=iC([...c_1(),...l_1()]),Ub)}function Gb(e){if(!e)return"en";if(e==="pt-BR"||e==="pt")return e;let t=e.split("-")[0].toLowerCase();return a_1.has(t)?t:"en"}function rC(e,t,o){if(typeof window<"u"||!Fn())return{};let a=Gb(e),i=o||$3,r=`node:${a}:${t}:${i}`,n=Fb.get(r);if(n)return n;let c=im[t];if(t==="main"&&i!==$3&&Hb[i])return Fb.set(r,{}),{};let l=s_1(),f=[];for(let d of l){for(let u of c.splitDirectories)f.push(n9(d,u,a,`${i}.json`)),f.push(n9(d,"locales",u,a,`${i}.json`));f.push(n9(d,c.localeDirectory,a,`${i}.json`)),f.push(n9(d,"locales",c.localeDirectory,a,`${i}.json`))}for(let d of f){let u=c01(d);if(u&&Object.keys(u).length>0)return Fb.set(r,u),u}let m={};for(let d of l){let u=n9(d,"locales",c.localeDirectory,a,"translations.json"),p=c01(u);if(p&&(m=l01(p,o)||{},Object.keys(m).length>0))break}return Object.keys(m).length===0&&a!=="en"?rC("en",t,o):(Fb.set(r,m),m)}function nC(e,t,o){let a=t.map(i=>rC(e,i,o));return f01(a)}async function eC(e,t=2e3){let o=new AbortController,a=setTimeout(()=>o.abort(),t);try{let i=await fetch(`${e}?v=${Date.now()}`,{signal:o.signal,cache:"force-cache"});return clearTimeout(a),i.ok?await i.json():null}catch{return clearTimeout(a),null}}async function f_1(e,t,o){if(typeof window>"u")return rC(e,t,o);let a=Gb(e),i=o||$3,r=`browser:${a}:${t}:${i}`,n=n01.get(r);if(n)return await n||{};let c=im[t],l=(async()=>{for(let u of c.browserDirectories){let p=await eC(`/locales-runtime/${u}/${a}/${i}.json`);if(p)return p}let f=await eC(`/api/i18n/${a}/${i}`);if(f)return f;let m=c.cdnSplit&&i!==$3&&!i.includes(".")?`${am}/${c.cdnDirectory}/${a}/${i}.json`:`${am}/${c.cdnDirectory}/${a}/translations.json`,d=await eC(m);return d?l01(d,o)||{}:{}})();return n01.set(r,l),l||{}}async function Kb(e,t,o){let a=t.map(r=>f_1(e,r,o)),i=await Promise.all(a);return f01(i)}function s01(e,t){let o={...e};for(let[a,i]of Object.entries(t||{})){let r=o[a];r&&typeof r=="object"&&i&&typeof i=="object"&&!Array.isArray(i)?o[a]=s01(r,i):o[a]=i}return o}function f01(e){return e.reduce((t,o)=>s01(t,o||{}),{})}var m_1={type:"backend",init:()=>{},read:(e,t,o)=>{Kb(e,["main"],t).then(a=>{t===$3&&a&&Object.entries(a).forEach(([i,r])=>{i!==$3&&r&&typeof r=="object"&&!Array.isArray(r)&&R0.addResourceBundle(e,i,r,!0,!0)}),o(null,a)}).catch(a=>{o(a,null)})}};R0.use(m_1).use(Yf).use($b).init({fallbackLng:"en",supportedLngs:aC,ns:[$3],defaultNS:$3,partialBundledLanguages:!0,nonExplicitSupportedLngs:!0,nsSeparator:":",keySeparator:".",interpolation:{escapeValue:!1},detection:{order:["cookie","localStorage","sessionStorage","navigator"],lookupCookie:"NEXT_LOCALE",caches:["cookie"]}});var O2=R0;s();var P2=j(U());s();var g0=j(U(),1),xC=j(Y_(),1);s();s();var H0=j(U(),1);var c9={};X3(c9,{ERROR_REVALIDATE_EVENT:()=>d_1,FOCUS_EVENT:()=>m01,MUTATE_EVENT:()=>u01,RECONNECT_EVENT:()=>d01});s();var m01=0,d01=1,u01=2,d_1=3;s();var p01=Object.prototype.hasOwnProperty;function qb(e,t){var o,a;if(e===t)return!0;if(e&&t&&(o=e.constructor)===t.constructor){if(o===Date)return e.getTime()===t.getTime();if(o===RegExp)return e.toString()===t.toString();if(o===Array){if((a=e.length)===t.length)for(;a--&&qb(e[a],t[a]););return a===-1}if(!o||typeof e=="object"){a=0;for(o in e)if(p01.call(e,o)&&++a&&!p01.call(t,o)||!(o in t)||!qb(e[o],t[o]))return!1;return Object.keys(t).length===a}}return e!==e&&t!==t}var Ge=new WeakMap,Ke=()=>{},g3=Ke(),Bn=Object,v2=e=>e===g3,T5=e=>typeof e=="function",S4=(e,t)=>({...e,...t}),Qb=e=>T5(e.then),cC={},Wb={},pC="undefined",Vn=typeof window!=pC,Jb=typeof document!=pC,g01=Vn&&"Deno"in window,v01=()=>Vn&&typeof window.requestAnimationFrame!=pC,ey=(e,t)=>{let o=Ge.get(e);return[()=>!v2(t)&&e.get(t)||cC,a=>{if(!v2(t)){let i=e.get(t);t in Wb||(Wb[t]=i),o[5](t,S4(i,a),i||cC)}},o[6],()=>!v2(t)&&t in Wb?Wb[t]:!v2(t)&&e.get(t)||cC]},fC=!0,u_1=()=>fC,[mC,dC]=Vn&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Ke,Ke],p_1=()=>{let e=Jb&&document.visibilityState;return v2(e)||e!=="hidden"},h_1=e=>(Jb&&document.addEventListener("visibilitychange",e),mC("focus",e),()=>{Jb&&document.removeEventListener("visibilitychange",e),dC("focus",e)}),g_1=e=>{let t=()=>{fC=!0,e()},o=()=>{fC=!1};return mC("online",t),mC("offline",o),()=>{dC("online",t),dC("offline",o)}},b01={isOnline:u_1,isVisible:p_1},y01={initFocus:h_1,initReconnect:g_1},Un=!H0.default.useId,s9=!Vn||g01,hC=e=>v01()?window.requestAnimationFrame(e):setTimeout(e,1),R8=s9?H0.useEffect:H0.useLayoutEffect,lC=typeof navigator<"u"&&navigator.connection,uC=!s9&&lC&&(["slow-2g","2g"].includes(lC.effectiveType)||lC.saveData),Zb=new WeakMap,v_1=e=>Bn.prototype.toString.call(e),sC=(e,t)=>e===`[object ${t}]`,b_1=0,Xb=e=>{let t=typeof e,o=v_1(e),a=sC(o,"Date"),i=sC(o,"RegExp"),r=sC(o,"Object"),n,c;if(Bn(e)===e&&!a&&!i){if(n=Zb.get(e),n)return n;if(n=++b_1+"~",Zb.set(e,n),Array.isArray(e)){for(n="@",c=0;c<e.length;c++)n+=Xb(e[c])+",";Zb.set(e,n)}if(r){n="#";let l=Bn.keys(e).sort();for(;!v2(c=l.pop());)v2(e[c])||(n+=c+":"+Xb(e[c])+",");Zb.set(e,n)}}else n=a?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return n},Ma=e=>{if(T5(e))try{e=e()}catch{e=""}let t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Xb(e):"",[e,t]},y_1=0,l9=()=>++y_1;async function ty(...e){let[t,o,a,i]=e,r=S4({populateCache:!0,throwOnError:!0},typeof i=="boolean"?{revalidate:i}:i||{}),n=r.populateCache,c=r.rollbackOnError,l=r.optimisticData,f=u=>typeof c=="function"?c(u):c!==!1,m=r.throwOnError;if(T5(o)){let u=o,p=[],b=t.keys();for(let g of b)!/^\$(inf|sub)\$/.test(g)&&u(t.get(g)._k)&&p.push(g);return Promise.all(p.map(d))}return d(o);async function d(u){let[p]=Ma(u);if(!p)return;let[b,g]=ey(t,p),[x,y,v,k]=Ge.get(t),w=()=>{let A=x[p];return(T5(r.revalidate)?r.revalidate(b().data,u):r.revalidate!==!1)&&(delete v[p],delete k[p],A&&A[0])?A[0](2).then(()=>b().data):b().data};if(e.length<3)return w();let T=a,O,C=!1,z=l9();y[p]=[z,0];let M=!v2(l),S=b(),N=S.data,P=S._c,R=v2(P)?N:P;if(M&&(l=T5(l)?l(R,N):l,g({data:l,_c:R})),T5(T))try{T=T(R)}catch(A){O=A,C=!0}if(T&&Qb(T))if(T=await T.catch(A=>{O=A,C=!0}),z!==y[p][0]){if(C)throw O;return T}else C&&M&&f(O)&&(n=!0,g({data:R,_c:g3}));if(n&&!C)if(T5(n)){let A=n(T,R);g({data:A,error:g3,_c:g3})}else g({data:T,error:g3,_c:g3});if(y[p][1]=l9(),Promise.resolve(w()).then(()=>{g({_c:g3})}),C){if(m)throw O;return}return T}}var h01=(e,t)=>{for(let o in e)e[o][0]&&e[o][0](t)},gC=(e,t)=>{if(!Ge.has(e)){let o=S4(y01,t),a=Object.create(null),i=ty.bind(g3,e),r=Ke,n=Object.create(null),c=(m,d)=>{let u=n[m]||[];return n[m]=u,u.push(d),()=>u.splice(u.indexOf(d),1)},l=(m,d,u)=>{e.set(m,d);let p=n[m];if(p)for(let b of p)b(d,u)},f=()=>{if(!Ge.has(e)&&(Ge.set(e,[a,Object.create(null),Object.create(null),Object.create(null),i,l,c]),!s9)){let m=o.initFocus(setTimeout.bind(g3,h01.bind(g3,a,0))),d=o.initReconnect(setTimeout.bind(g3,h01.bind(g3,a,1)));r=()=>{m&&m(),d&&d(),Ge.delete(e)}}};return f(),[e,i,f,r]}return[e,Ge.get(e)[4]]},k_1=(e,t,o,a,i)=>{let r=o.errorRetryCount,n=i.retryCount,c=~~((Math.random()+.5)*(1<<(n<8?n:8)))*o.errorRetryInterval;!v2(r)&&n>r||setTimeout(a,c,i)},k01=qb,[oy,rm]=gC(new Map),ay=S4({onLoadingSlow:Ke,onSuccess:Ke,onError:Ke,onErrorRetry:k_1,onDiscarded:Ke,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:uC?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:uC?5e3:3e3,compare:k01,isPaused:()=>!1,cache:oy,mutate:rm,fallback:{}},b01),vC=(e,t)=>{let o=S4(e,t);if(t){let{use:a,fallback:i}=e,{use:r,fallback:n}=t;a&&r&&(o.use=a.concat(r)),i&&n&&(o.fallback=S4(i,n))}return o},Yb=(0,H0.createContext)({}),bC=e=>{let{value:t}=e,o=(0,H0.useContext)(Yb),a=T5(t),i=(0,H0.useMemo)(()=>a?t(o):t,[a,o,t]),r=(0,H0.useMemo)(()=>a?i:vC(o,i),[a,o,i]),n=i&&i.provider,c=(0,H0.useRef)(g3);n&&!c.current&&(c.current=gC(n(r.cache||oy),i));let l=c.current;return l&&(r.cache=l[0],r.mutate=l[1]),R8(()=>{if(l)return l[2]&&l[2](),l[3]},[]),(0,H0.createElement)(Yb.Provider,S4(e,{value:r}))};s();var x01="$inf$";var Hn=j(U(),1);var z01=Vn&&window.__SWR_DEVTOOLS_USE__,x_1=z01?window.__SWR_DEVTOOLS_USE__:[],z_1=()=>{z01&&(window.__SWR_DEVTOOLS_REACT__=Hn.default)},w01=e=>T5(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],iy=()=>{let e=(0,Hn.useContext)(Yb);return(0,Hn.useMemo)(()=>S4(ay,e),[e])};var w_1=e=>(t,o,a)=>e(t,o&&((...r)=>{let[n]=Ma(t),[,,,c]=Ge.get(oy);if(n.startsWith(x01))return o(...r);let l=c[n];return v2(l)?o(...r):(delete c[n],l)}),a),M_1=x_1.concat(w_1),M01=e=>function(...o){let a=iy(),[i,r,n]=w01(o),c=vC(a,n),l=e,{use:f}=c,m=(f||[]).concat(M_1);for(let d=m.length;d--;)l=m[d](l);return l(i,r||c.fetcher||null,c)},S01=(e,t,o)=>{let a=t[e]||(t[e]=[]);return a.push(o),()=>{let i=a.indexOf(o);i>=0&&(a[i]=a[a.length-1],a.pop())}},T01=(e,t)=>(...o)=>{let[a,i,r]=w01(o),n=(r.use||[]).concat(t);return e(a,i,{...r,use:n})};z_1();var S_1=()=>{},LG2=S_1();var yC=g0.default.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),kC={dedupe:!0},R01=Promise.resolve(g3),T_1=()=>Ke,R_1=(e,t,o)=>{let{cache:a,compare:i,suspense:r,fallbackData:n,revalidateOnMount:c,revalidateIfStale:l,refreshInterval:f,refreshWhenHidden:m,refreshWhenOffline:d,keepPreviousData:u,strictServerPrefetchWarning:p}=o,[b,g,x,y]=Ge.get(a),[v,k]=Ma(e),w=(0,g0.useRef)(!1),T=(0,g0.useRef)(!1),O=(0,g0.useRef)(v),C=(0,g0.useRef)(t),z=(0,g0.useRef)(o),M=()=>z.current,S=()=>M().isVisible()&&M().isOnline(),[N,P,R,A]=ey(a,v),_=(0,g0.useRef)({}).current,E=v2(n)?v2(o.fallback)?g3:o.fallback[v]:n,D=(S1,w1)=>{for(let j1 in _){let O1=j1;if(O1==="data"){if(!i(S1[O1],w1[O1])&&(!v2(S1[O1])||!i(n1,w1[O1])))return!1}else if(w1[O1]!==S1[O1])return!1}return!0},L=!w.current,$=(0,g0.useMemo)(()=>{let S1=N(),w1=A(),j1=u1=>{let F=S4(u1);return delete F._k,(()=>{if(!v||!t||M().isPaused())return!1;if(L&&!v2(c))return c;let W=v2(E)?F.data:E;return r?v2(W)||l:v2(W)||l})()?{isValidating:!0,isLoading:!0,...F}:F},O1=j1(S1),q1=S1===w1?O1:j1(w1),n2=O1;return[()=>{let u1=j1(N());return D(u1,n2)?(n2.data=u1.data,n2.isLoading=u1.isLoading,n2.isValidating=u1.isValidating,n2.error=u1.error,n2):(n2=u1,u1)},()=>q1]},[a,v]),B=(0,xC.useSyncExternalStore)((0,g0.useCallback)(S1=>R(v,(w1,j1)=>{D(j1,w1)||S1()}),[a,v]),$[0],$[1]),q=b[v]&&b[v].length>0,Q=B.data,o1=v2(Q)?E&&Qb(E)?yC(E):E:Q,e1=B.error,K=(0,g0.useRef)(o1),n1=u?v2(Q)?v2(K.current)?o1:K.current:Q:o1,Z=v&&v2(o1),X=(0,g0.useRef)(null);!s9&&(0,xC.useSyncExternalStore)(T_1,()=>(X.current=!1,X),()=>(X.current=!0,X));let c1=X.current;p&&c1&&!r&&Z&&console.warn(`Missing pre-initiated data for serialized key "${v}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);let z1=!v||!t||M().isPaused()||q&&!v2(e1)?!1:L&&!v2(c)?c:r?v2(o1)?!1:l:v2(o1)||l,v1=L&&z1,C1=v2(B.isValidating)?v1:B.isValidating,L1=v2(B.isLoading)?v1:B.isLoading,F1=(0,g0.useCallback)(async S1=>{let w1=C.current;if(!v||!w1||T.current||M().isPaused())return!1;let j1,O1,q1=!0,n2=S1||{},u1=!x[v]||!n2.dedupe,F=()=>Un?!T.current&&v===O.current&&w.current:v===O.current,V={isValidating:!1,isLoading:!1},W=()=>{P(V)},a1=()=>{let G=x[v];G&&G[1]===O1&&delete x[v]},H={isValidating:!0};v2(N().data)&&(H.isLoading=!0);try{if(u1&&(P(H),o.loadingTimeout&&v2(N().data)&&setTimeout(()=>{q1&&F()&&M().onLoadingSlow(v,o)},o.loadingTimeout),x[v]=[w1(k),l9()]),[j1,O1]=x[v],j1=await j1,u1&&setTimeout(a1,o.dedupingInterval),!x[v]||x[v][1]!==O1)return u1&&F()&&M().onDiscarded(v),!1;V.error=g3;let G=g[v];if(!v2(G)&&(O1<=G[0]||O1<=G[1]||G[1]===0))return W(),u1&&F()&&M().onDiscarded(v),!1;let J=N().data;V.data=i(J,j1)?J:j1,u1&&F()&&M().onSuccess(j1,v,o)}catch(G){a1();let J=M(),{shouldRetryOnError:h1}=J;J.isPaused()||(V.error=G,u1&&F()&&(J.onError(G,v,J),(h1===!0||T5(h1)&&h1(G))&&(!M().revalidateOnFocus||!M().revalidateOnReconnect||S())&&J.onErrorRetry(G,v,J,i1=>{let f1=b[v];f1&&f1[0]&&f1[0](c9.ERROR_REVALIDATE_EVENT,i1)},{retryCount:(n2.retryCount||0)+1,dedupe:!0})))}return q1=!1,W(),!0},[v,a]),l1=(0,g0.useCallback)((...S1)=>ty(a,O.current,...S1),[]);if(R8(()=>{C.current=t,z.current=o,v2(Q)||(K.current=Q)}),R8(()=>{if(!v)return;let S1=F1.bind(g3,kC),w1=0;M().revalidateOnFocus&&(w1=Date.now()+M().focusThrottleInterval);let O1=S01(v,b,(q1,n2={})=>{if(q1==c9.FOCUS_EVENT){let u1=Date.now();M().revalidateOnFocus&&u1>w1&&S()&&(w1=u1+M().focusThrottleInterval,S1())}else if(q1==c9.RECONNECT_EVENT)M().revalidateOnReconnect&&S()&&S1();else{if(q1==c9.MUTATE_EVENT)return F1();if(q1==c9.ERROR_REVALIDATE_EVENT)return F1(n2)}});return T.current=!1,O.current=v,w.current=!0,P({_k:k}),z1&&(x[v]||(v2(o1)||s9?S1():hC(S1))),()=>{T.current=!0,O1()}},[v]),R8(()=>{let S1;function w1(){let O1=T5(f)?f(N().data):f;O1&&S1!==-1&&(S1=setTimeout(j1,O1))}function j1(){!N().error&&(m||M().isVisible())&&(d||M().isOnline())?F1(kC).then(w1):w1()}return w1(),()=>{S1&&(clearTimeout(S1),S1=-1)}},[f,m,d,v]),(0,g0.useDebugValue)(n1),r){if(!Un&&s9&&Z)throw new Error("Fallback data is required when using Suspense in SSR.");Z&&(C.current=t,z.current=o,T.current=!1);let S1=y[v],w1=!v2(S1)&&Z?l1(S1):R01;if(yC(w1),!v2(e1)&&Z)throw e1;let j1=Z?F1(kC):R01;!v2(n1)&&Z&&(j1.status="fulfilled",j1.value=!0),yC(j1)}return{mutate:l1,get data(){return _.data=!0,n1},get error(){return _.error=!0,e1},get isValidating(){return _.isValidating=!0,C1},get isLoading(){return _.isLoading=!0,L1}}},jG2=Bn.defineProperty(bC,"defaultValue",{value:ay}),ry=M01(R_1);s();s();var E01=(e,t,o)=>{if(e&&"reportValidity"in e){let a=A1(o,t);e.setCustomValidity(a&&a.message||""),e.reportValidity()}},ny=(e,t)=>{for(let o in t.fields){let a=t.fields[o];a&&a.ref&&"reportValidity"in a.ref?E01(a.ref,o,e):a&&a.refs&&a.refs.forEach(i=>E01(i,o,e))}},zC=(e,t)=>{t.shouldUseNativeValidation&&ny(e,t);let o={};for(let a in e){let i=A1(t.fields,a),r=Object.assign(e[a]||{},{ref:i&&i.ref});if(E_1(t.names||Object.keys(e),a)){let n=Object.assign({},A1(o,a));A2(n,"root",r),A2(o,a,n)}else A2(o,a,r)}return o},E_1=(e,t)=>{let o=_01(t);return e.some(a=>_01(a).match(`^${o}\\.\\d+`))};function _01(e){return e.replace(/\]|\[/g,"")}var m7={};X3(m7,{$ZodAny:()=>dA,$ZodArray:()=>vA,$ZodAsyncError:()=>qe,$ZodBase64:()=>oA,$ZodBase64URL:()=>aA,$ZodBigInt:()=>Ty,$ZodBigIntFormat:()=>lA,$ZodBoolean:()=>vm,$ZodCIDRv4:()=>QP,$ZodCIDRv6:()=>eA,$ZodCUID:()=>BP,$ZodCUID2:()=>VP,$ZodCatch:()=>IA,$ZodCheck:()=>J2,$ZodCheckBigIntFormat:()=>vP,$ZodCheckEndsWith:()=>_P,$ZodCheckGreaterThan:()=>ky,$ZodCheckIncludes:()=>RP,$ZodCheckLengthEquals:()=>wP,$ZodCheckLessThan:()=>yy,$ZodCheckLowerCase:()=>SP,$ZodCheckMaxLength:()=>xP,$ZodCheckMaxSize:()=>bP,$ZodCheckMimeType:()=>PP,$ZodCheckMinLength:()=>zP,$ZodCheckMinSize:()=>yP,$ZodCheckMultipleOf:()=>hP,$ZodCheckNumberFormat:()=>gP,$ZodCheckOverwrite:()=>AP,$ZodCheckProperty:()=>CP,$ZodCheckRegex:()=>MP,$ZodCheckSizeEquals:()=>kP,$ZodCheckStartsWith:()=>EP,$ZodCheckStringFormat:()=>ec,$ZodCheckUpperCase:()=>TP,$ZodCodec:()=>ym,$ZodCustom:()=>UA,$ZodCustomStringFormat:()=>nA,$ZodDate:()=>gA,$ZodDefault:()=>PA,$ZodDiscriminatedUnion:()=>kA,$ZodE164:()=>iA,$ZodEmail:()=>NP,$ZodEmoji:()=>jP,$ZodEncodeError:()=>f9,$ZodEnum:()=>SA,$ZodError:()=>Ra,$ZodExactOptional:()=>_A,$ZodFile:()=>RA,$ZodFunction:()=>FA,$ZodGUID:()=>IP,$ZodIPv4:()=>JP,$ZodIPv6:()=>XP,$ZodISODate:()=>qP,$ZodISODateTime:()=>KP,$ZodISODuration:()=>ZP,$ZodISOTime:()=>WP,$ZodIntersection:()=>xA,$ZodJWT:()=>rA,$ZodKSUID:()=>GP,$ZodLazy:()=>VA,$ZodLiteral:()=>TA,$ZodMAC:()=>YP,$ZodMap:()=>wA,$ZodNaN:()=>DA,$ZodNanoID:()=>FP,$ZodNever:()=>pA,$ZodNonOptional:()=>OA,$ZodNull:()=>mA,$ZodNullable:()=>CA,$ZodNumber:()=>Sy,$ZodNumberFormat:()=>cA,$ZodObject:()=>n41,$ZodObjectJIT:()=>bA,$ZodOptional:()=>Ey,$ZodPipe:()=>_y,$ZodPrefault:()=>AA,$ZodPreprocess:()=>NA,$ZodPromise:()=>BA,$ZodReadonly:()=>LA,$ZodRealError:()=>q4,$ZodRecord:()=>zA,$ZodRegistry:()=>Oy,$ZodSet:()=>MA,$ZodString:()=>_a,$ZodStringFormat:()=>H2,$ZodSuccess:()=>$A,$ZodSymbol:()=>sA,$ZodTemplateLiteral:()=>jA,$ZodTransform:()=>EA,$ZodTuple:()=>Ry,$ZodType:()=>Q1,$ZodULID:()=>UP,$ZodURL:()=>LP,$ZodUUID:()=>DP,$ZodUndefined:()=>fA,$ZodUnion:()=>bm,$ZodUnknown:()=>uA,$ZodVoid:()=>hA,$ZodXID:()=>HP,$ZodXor:()=>yA,$brand:()=>MC,$constructor:()=>Y,$input:()=>GA,$output:()=>HA,Doc:()=>gm,JSONSchema:()=>l51,JSONSchemaGenerator:()=>fk,NEVER:()=>wC,TimePrecision:()=>ZA,_any:()=>gO,_array:()=>wO,_base64:()=>Xy,_base64url:()=>Yy,_bigint:()=>sO,_boolean:()=>cO,_catch:()=>XP1,_check:()=>c51,_cidrv4:()=>Zy,_cidrv6:()=>Jy,_coercedBigint:()=>fO,_coercedBoolean:()=>lO,_coercedDate:()=>xO,_coercedNumber:()=>tO,_coercedString:()=>qA,_cuid:()=>Vy,_cuid2:()=>Uy,_custom:()=>SO,_date:()=>kO,_decode:()=>fy,_decodeAsync:()=>dy,_default:()=>WP1,_discriminatedUnion:()=>DP1,_e164:()=>Qy,_email:()=>Iy,_emoji:()=>Fy,_encode:()=>sy,_encodeAsync:()=>my,_endsWith:()=>cc,_enum:()=>VP1,_file:()=>MO,_float32:()=>aO,_float64:()=>iO,_gt:()=>s7,_gte:()=>E4,_guid:()=>zm,_includes:()=>rc,_int:()=>oO,_int32:()=>rO,_int64:()=>mO,_intersection:()=>NP1,_ipv4:()=>qy,_ipv6:()=>Wy,_isoDate:()=>XA,_isoDateTime:()=>JA,_isoDuration:()=>QA,_isoTime:()=>YA,_jwt:()=>ek,_ksuid:()=>Ky,_lazy:()=>tA1,_length:()=>Aa,_literal:()=>HP1,_lowercase:()=>ac,_lt:()=>l7,_lte:()=>E5,_mac:()=>WA,_map:()=>FP1,_max:()=>E5,_maxLength:()=>Pa,_maxSize:()=>g9,_mime:()=>lc,_min:()=>E4,_minLength:()=>_8,_minSize:()=>f7,_multipleOf:()=>h9,_nan:()=>zO,_nanoid:()=>By,_nativeEnum:()=>UP1,_negative:()=>ok,_never:()=>bO,_nonnegative:()=>ik,_nonoptional:()=>ZP1,_nonpositive:()=>ak,_normalize:()=>sc,_null:()=>hO,_nullable:()=>qP1,_number:()=>eO,_optional:()=>KP1,_overwrite:()=>We,_parse:()=>Wn,_parseAsync:()=>Jn,_pipe:()=>YP1,_positive:()=>tk,_promise:()=>oA1,_property:()=>rk,_readonly:()=>QP1,_record:()=>jP1,_refine:()=>TO,_regex:()=>oc,_safeDecode:()=>py,_safeDecodeAsync:()=>gy,_safeEncode:()=>uy,_safeEncodeAsync:()=>hy,_safeParse:()=>Yn,_safeParseAsync:()=>Qn,_set:()=>BP1,_size:()=>Ca,_slugify:()=>uc,_startsWith:()=>nc,_string:()=>KA,_stringFormat:()=>pc,_stringbool:()=>CO,_success:()=>JP1,_superRefine:()=>RO,_symbol:()=>uO,_templateLiteral:()=>eA1,_toLowerCase:()=>mc,_toUpperCase:()=>dc,_transform:()=>GP1,_trim:()=>fc,_tuple:()=>LP1,_uint32:()=>nO,_uint64:()=>dO,_ulid:()=>Hy,_undefined:()=>pO,_union:()=>$P1,_unknown:()=>vO,_uppercase:()=>ic,_url:()=>wm,_uuid:()=>Dy,_uuidv4:()=>Ny,_uuidv6:()=>Ly,_uuidv7:()=>jy,_void:()=>yO,_xid:()=>Gy,_xor:()=>IP1,clone:()=>T4,config:()=>I3,createStandardJSONSchemaMethod:()=>hc,createToJSONSchemaMethod:()=>PO,decode:()=>oC1,decodeAsync:()=>iC1,describe:()=>EO,encode:()=>tC1,encodeAsync:()=>aC1,extractDefs:()=>b9,finalize:()=>y9,flattenError:()=>dm,formatError:()=>um,globalConfig:()=>Sa,globalRegistry:()=>G0,initializeContext:()=>v9,isValidBase64:()=>tA,isValidBase64URL:()=>o41,isValidJWT:()=>a41,locales:()=>xm,meta:()=>_O,parse:()=>Zn,parseAsync:()=>Xn,prettifyError:()=>NC,process:()=>$2,regexes:()=>R5,registry:()=>$y,safeDecode:()=>nC1,safeDecodeAsync:()=>lC1,safeEncode:()=>rC1,safeEncodeAsync:()=>cC1,safeParse:()=>LC,safeParseAsync:()=>jC,toDotPath:()=>I01,toJSONSchema:()=>sk,treeifyError:()=>DC,util:()=>x1,version:()=>OP});s();s();var C01,wC=Object.freeze({status:"aborted"});function Y(e,t,o){function a(c,l){if(c._zod||Object.defineProperty(c,"_zod",{value:{def:l,constr:n,traits:new Set},enumerable:!1}),c._zod.traits.has(e))return;c._zod.traits.add(e),t(c,l);let f=n.prototype,m=Object.keys(f);for(let d=0;d<m.length;d++){let u=m[d];u in c||(c[u]=f[u].bind(c))}}let i=o?.Parent??Object;class r extends i{}Object.defineProperty(r,"name",{value:e});function n(c){var l;let f=o?.Parent?new r:this;a(f,c),(l=f._zod).deferred??(l.deferred=[]);for(let m of f._zod.deferred)m();return f}return Object.defineProperty(n,"init",{value:a}),Object.defineProperty(n,Symbol.hasInstance,{value:c=>o?.Parent&&c instanceof o.Parent?!0:c?._zod?.traits?.has(e)}),Object.defineProperty(n,"name",{value:e}),n}var MC=Symbol("zod_brand"),qe=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},f9=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(C01=globalThis).__zod_globalConfig??(C01.__zod_globalConfig={});var Sa=globalThis.__zod_globalConfig;function I3(e){return e&&Object.assign(Sa,e),Sa}s();s();var x1={};X3(x1,{BIGINT_FORMAT_RANGES:()=>$C,Class:()=>TC,NUMBER_FORMAT_RANGES:()=>OC,aborted:()=>p9,allowsEval:()=>_C,assert:()=>O_1,assertEqual:()=>__1,assertIs:()=>P_1,assertNever:()=>A_1,assertNotEqual:()=>C_1,assignProp:()=>d9,base64ToUint8Array:()=>A01,base64urlToUint8Array:()=>J_1,cached:()=>Kn,captureStackTrace:()=>ly,cleanEnum:()=>Z_1,cleanRegex:()=>lm,clone:()=>T4,cloneDef:()=>I_1,createTransparentProxy:()=>B_1,defineLazy:()=>p2,esc:()=>cy,escapeRegex:()=>fe,explicitlyAborted:()=>IC,extend:()=>H_1,finalizeIssue:()=>R4,floatSafeRemainder:()=>RC,getElementAtPath:()=>D_1,getEnumValues:()=>cm,getLengthableOrigin:()=>mm,getParsedType:()=>F_1,getSizableOrigin:()=>fm,hexToUint8Array:()=>Y_1,isObject:()=>Ta,isPlainObject:()=>u9,issue:()=>qn,joinValues:()=>r1,jsonStringifyReplacer:()=>Gn,merge:()=>K_1,mergeDefs:()=>E8,normalizeParams:()=>M1,nullish:()=>m9,numKeys:()=>j_1,objectClone:()=>$_1,omit:()=>U_1,optionalKeys:()=>AC,parsedType:()=>b1,partial:()=>q_1,pick:()=>V_1,prefixIssues:()=>K4,primitiveTypes:()=>PC,promiseAllObject:()=>N_1,propertyKeyTypes:()=>sm,randomString:()=>L_1,required:()=>W_1,safeExtend:()=>G_1,shallowClone:()=>CC,slugify:()=>EC,stringifyPrimitive:()=>g1,uint8ArrayToBase64:()=>O01,uint8ArrayToBase64url:()=>X_1,uint8ArrayToHex:()=>Q_1,unwrapMessage:()=>nm});s();function __1(e){return e}function C_1(e){return e}function P_1(e){}function A_1(e){throw new Error("Unexpected value in exhaustive check")}function O_1(e){}function cm(e){let t=Object.values(e).filter(a=>typeof a=="number");return Object.entries(e).filter(([a,i])=>t.indexOf(+a)===-1).map(([a,i])=>i)}function r1(e,t="|"){return e.map(o=>g1(o)).join(t)}function Gn(e,t){return typeof t=="bigint"?t.toString():t}function Kn(e){return{get value(){{let o=e();return Object.defineProperty(this,"value",{value:o}),o}throw new Error("cached value already set")}}}function m9(e){return e==null}function lm(e){let t=e.startsWith("^")?1:0,o=e.endsWith("$")?e.length-1:e.length;return e.slice(t,o)}function RC(e,t){let o=e/t,a=Math.round(o),i=Number.EPSILON*Math.max(Math.abs(o),1);return Math.abs(o-a)<i?0:o-a}var P01=Symbol("evaluating");function p2(e,t,o){let a;Object.defineProperty(e,t,{get(){if(a!==P01)return a===void 0&&(a=P01,a=o()),a},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function $_1(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function d9(e,t,o){Object.defineProperty(e,t,{value:o,writable:!0,enumerable:!0,configurable:!0})}function E8(...e){let t={};for(let o of e){let a=Object.getOwnPropertyDescriptors(o);Object.assign(t,a)}return Object.defineProperties({},t)}function I_1(e){return E8(e._zod.def)}function D_1(e,t){return t?t.reduce((o,a)=>o?.[a],e):e}function N_1(e){let t=Object.keys(e),o=t.map(a=>e[a]);return Promise.all(o).then(a=>{let i={};for(let r=0;r<t.length;r++)i[t[r]]=a[r];return i})}function L_1(e=10){let t="abcdefghijklmnopqrstuvwxyz",o="";for(let a=0;a<e;a++)o+=t[Math.floor(Math.random()*t.length)];return o}function cy(e){return JSON.stringify(e)}function EC(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var ly="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ta(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var _C=Kn(()=>{if(Sa.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function u9(e){if(Ta(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let o=t.prototype;return!(Ta(o)===!1||Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)}function CC(e){return u9(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function j_1(e){let t=0;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&t++;return t}var F_1=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},sm=new Set(["string","number","symbol"]),PC=new Set(["string","number","bigint","boolean","symbol","undefined"]);function fe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function T4(e,t,o){let a=new e._zod.constr(t??e._zod.def);return(!t||o?.parent)&&(a._zod.parent=e),a}function M1(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function B_1(e){let t;return new Proxy({},{get(o,a,i){return t??(t=e()),Reflect.get(t,a,i)},set(o,a,i,r){return t??(t=e()),Reflect.set(t,a,i,r)},has(o,a){return t??(t=e()),Reflect.has(t,a)},deleteProperty(o,a){return t??(t=e()),Reflect.deleteProperty(t,a)},ownKeys(o){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(o,a){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,a)},defineProperty(o,a,i){return t??(t=e()),Reflect.defineProperty(t,a,i)}})}function g1(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function AC(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var OC={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},$C={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function V_1(e,t){let o=e._zod.def,a=o.checks;if(a&&a.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let r=E8(e._zod.def,{get shape(){let n={};for(let c in t){if(!(c in o.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&(n[c]=o.shape[c])}return d9(this,"shape",n),n},checks:[]});return T4(e,r)}function U_1(e,t){let o=e._zod.def,a=o.checks;if(a&&a.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let r=E8(e._zod.def,{get shape(){let n={...e._zod.def.shape};for(let c in t){if(!(c in o.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&delete n[c]}return d9(this,"shape",n),n},checks:[]});return T4(e,r)}function H_1(e,t){if(!u9(t))throw new Error("Invalid input to extend: expected a plain object");let o=e._zod.def.checks;if(o&&o.length>0){let r=e._zod.def.shape;for(let n in t)if(Object.getOwnPropertyDescriptor(r,n)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let i=E8(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return d9(this,"shape",r),r}});return T4(e,i)}function G_1(e,t){if(!u9(t))throw new Error("Invalid input to safeExtend: expected a plain object");let o=E8(e._zod.def,{get shape(){let a={...e._zod.def.shape,...t};return d9(this,"shape",a),a}});return T4(e,o)}function K_1(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let o=E8(e._zod.def,{get shape(){let a={...e._zod.def.shape,...t._zod.def.shape};return d9(this,"shape",a),a},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return T4(e,o)}function q_1(e,t,o){let i=t._zod.def.checks;if(i&&i.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let n=E8(t._zod.def,{get shape(){let c=t._zod.def.shape,l={...c};if(o)for(let f in o){if(!(f in c))throw new Error(`Unrecognized key: "${f}"`);o[f]&&(l[f]=e?new e({type:"optional",innerType:c[f]}):c[f])}else for(let f in c)l[f]=e?new e({type:"optional",innerType:c[f]}):c[f];return d9(this,"shape",l),l},checks:[]});return T4(t,n)}function W_1(e,t,o){let a=E8(t._zod.def,{get shape(){let i=t._zod.def.shape,r={...i};if(o)for(let n in o){if(!(n in r))throw new Error(`Unrecognized key: "${n}"`);o[n]&&(r[n]=new e({type:"nonoptional",innerType:i[n]}))}else for(let n in i)r[n]=new e({type:"nonoptional",innerType:i[n]});return d9(this,"shape",r),r}});return T4(t,a)}function p9(e,t=0){if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(e.issues[o]?.continue!==!0)return!0;return!1}function IC(e,t=0){if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(e.issues[o]?.continue===!1)return!0;return!1}function K4(e,t){return t.map(o=>{var a;return(a=o).path??(a.path=[]),o.path.unshift(e),o})}function nm(e){return typeof e=="string"?e:e?.message}function R4(e,t,o){let a=e.message?e.message:nm(e.inst?._zod.def?.error?.(e))??nm(t?.error?.(e))??nm(o.customError?.(e))??nm(o.localeError?.(e))??"Invalid input",{inst:i,continue:r,input:n,...c}=e;return c.path??(c.path=[]),c.message=a,t?.reportInput&&(c.input=n),c}function fm(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function mm(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function b1(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let o=e;if(o&&Object.getPrototypeOf(o)!==Object.prototype&&"constructor"in o&&o.constructor)return o.constructor.name}}return t}function qn(...e){let[t,o,a]=e;return typeof t=="string"?{message:t,code:"custom",input:o,inst:a}:{...t}}function Z_1(e){return Object.entries(e).filter(([t,o])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function A01(e){let t=atob(e),o=new Uint8Array(t.length);for(let a=0;a<t.length;a++)o[a]=t.charCodeAt(a);return o}function O01(e){let t="";for(let o=0;o<e.length;o++)t+=String.fromCharCode(e[o]);return btoa(t)}function J_1(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),o="=".repeat((4-t.length%4)%4);return A01(t+o)}function X_1(e){return O01(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Y_1(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let o=new Uint8Array(t.length/2);for(let a=0;a<t.length;a+=2)o[a/2]=Number.parseInt(t.slice(a,a+2),16);return o}function Q_1(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var TC=class{constructor(...t){}};var $01=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Gn,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Ra=Y("$ZodError",$01),q4=Y("$ZodError",$01,{Parent:Error});function dm(e,t=o=>o.message){let o={},a=[];for(let i of e.issues)i.path.length>0?(o[i.path[0]]=o[i.path[0]]||[],o[i.path[0]].push(t(i))):a.push(t(i));return{formErrors:a,fieldErrors:o}}function um(e,t=o=>o.message){let o={_errors:[]},a=(i,r=[])=>{for(let n of i.issues)if(n.code==="invalid_union"&&n.errors.length)n.errors.map(c=>a({issues:c},[...r,...n.path]));else if(n.code==="invalid_key")a({issues:n.issues},[...r,...n.path]);else if(n.code==="invalid_element")a({issues:n.issues},[...r,...n.path]);else{let c=[...r,...n.path];if(c.length===0)o._errors.push(t(n));else{let l=o,f=0;for(;f<c.length;){let m=c[f];f===c.length-1?(l[m]=l[m]||{_errors:[]},l[m]._errors.push(t(n))):l[m]=l[m]||{_errors:[]},l=l[m],f++}}}};return a(e),o}function DC(e,t=o=>o.message){let o={errors:[]},a=(i,r=[])=>{var n,c;for(let l of i.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(f=>a({issues:f},[...r,...l.path]));else if(l.code==="invalid_key")a({issues:l.issues},[...r,...l.path]);else if(l.code==="invalid_element")a({issues:l.issues},[...r,...l.path]);else{let f=[...r,...l.path];if(f.length===0){o.errors.push(t(l));continue}let m=o,d=0;for(;d<f.length;){let u=f[d],p=d===f.length-1;typeof u=="string"?(m.properties??(m.properties={}),(n=m.properties)[u]??(n[u]={errors:[]}),m=m.properties[u]):(m.items??(m.items=[]),(c=m.items)[u]??(c[u]={errors:[]}),m=m.items[u]),p&&m.errors.push(t(l)),d++}}};return a(e),o}function I01(e){let t=[],o=e.map(a=>typeof a=="object"?a.key:a);for(let a of o)typeof a=="number"?t.push(`[${a}]`):typeof a=="symbol"?t.push(`[${JSON.stringify(String(a))}]`):/[^\w$]/.test(a)?t.push(`[${JSON.stringify(a)}]`):(t.length&&t.push("."),t.push(a));return t.join("")}function NC(e){let t=[],o=[...e.issues].sort((a,i)=>(a.path??[]).length-(i.path??[]).length);for(let a of o)t.push(`✖ ${a.message}`),a.path?.length&&t.push(` → at ${I01(a.path)}`);return t.join(`
518
518
  `)}var Wn=e=>(t,o,a,i)=>{let r=a?{...a,async:!1}:{async:!1},n=t._zod.run({value:o,issues:[]},r);if(n instanceof Promise)throw new qe;if(n.issues.length){let c=new(i?.Err??e)(n.issues.map(l=>R4(l,r,I3())));throw ly(c,i?.callee),c}return n.value},Zn=Wn(q4),Jn=e=>async(t,o,a,i)=>{let r=a?{...a,async:!0}:{async:!0},n=t._zod.run({value:o,issues:[]},r);if(n instanceof Promise&&(n=await n),n.issues.length){let c=new(i?.Err??e)(n.issues.map(l=>R4(l,r,I3())));throw ly(c,i?.callee),c}return n.value},Xn=Jn(q4),Yn=e=>(t,o,a)=>{let i=a?{...a,async:!1}:{async:!1},r=t._zod.run({value:o,issues:[]},i);if(r instanceof Promise)throw new qe;return r.issues.length?{success:!1,error:new(e??Ra)(r.issues.map(n=>R4(n,i,I3())))}:{success:!0,data:r.value}},LC=Yn(q4),Qn=e=>async(t,o,a)=>{let i=a?{...a,async:!0}:{async:!0},r=t._zod.run({value:o,issues:[]},i);return r instanceof Promise&&(r=await r),r.issues.length?{success:!1,error:new e(r.issues.map(n=>R4(n,i,I3())))}:{success:!0,data:r.value}},jC=Qn(q4),sy=e=>(t,o,a)=>{let i=a?{...a,direction:"backward"}:{direction:"backward"};return Wn(e)(t,o,i)},tC1=sy(q4),fy=e=>(t,o,a)=>Wn(e)(t,o,a),oC1=fy(q4),my=e=>async(t,o,a)=>{let i=a?{...a,direction:"backward"}:{direction:"backward"};return Jn(e)(t,o,i)},aC1=my(q4),dy=e=>async(t,o,a)=>Jn(e)(t,o,a),iC1=dy(q4),uy=e=>(t,o,a)=>{let i=a?{...a,direction:"backward"}:{direction:"backward"};return Yn(e)(t,o,i)},rC1=uy(q4),py=e=>(t,o,a)=>Yn(e)(t,o,a),nC1=py(q4),hy=e=>async(t,o,a)=>{let i=a?{...a,direction:"backward"}:{direction:"backward"};return Qn(e)(t,o,i)},cC1=hy(q4),gy=e=>async(t,o,a)=>Qn(e)(t,o,a),lC1=gy(q4);s();s();var R5={};X3(R5,{base64:()=>tP,base64url:()=>vy,bigint:()=>lP,boolean:()=>fP,browserEmail:()=>gC1,cidrv4:()=>QC,cidrv6:()=>eP,cuid:()=>FC,cuid2:()=>BC,date:()=>iP,datetime:()=>nP,domain:()=>yC1,duration:()=>KC,e164:()=>aP,email:()=>WC,emoji:()=>ZC,extendedDuration:()=>sC1,guid:()=>qC,hex:()=>kC1,hostname:()=>bC1,html5Email:()=>uC1,httpProtocol:()=>oP,idnEmail:()=>hC1,integer:()=>sP,ipv4:()=>JC,ipv6:()=>XC,ksuid:()=>HC,lowercase:()=>uP,mac:()=>YC,md5_base64:()=>zC1,md5_base64url:()=>wC1,md5_hex:()=>xC1,nanoid:()=>GC,null:()=>mP,number:()=>by,rfc5322Email:()=>pC1,sha1_base64:()=>SC1,sha1_base64url:()=>TC1,sha1_hex:()=>MC1,sha256_base64:()=>EC1,sha256_base64url:()=>_C1,sha256_hex:()=>RC1,sha384_base64:()=>PC1,sha384_base64url:()=>AC1,sha384_hex:()=>CC1,sha512_base64:()=>$C1,sha512_base64url:()=>IC1,sha512_hex:()=>OC1,string:()=>cP,time:()=>rP,ulid:()=>VC,undefined:()=>dP,unicodeEmail:()=>D01,uppercase:()=>pP,uuid:()=>Ea,uuid4:()=>fC1,uuid6:()=>mC1,uuid7:()=>dC1,xid:()=>UC});s();var FC=/^[cC][0-9a-z]{6,}$/,BC=/^[0-9a-z]+$/,VC=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,UC=/^[0-9a-vA-V]{20}$/,HC=/^[A-Za-z0-9]{27}$/,GC=/^[a-zA-Z0-9_-]{21}$/,KC=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,sC1=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,qC=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Ea=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,fC1=Ea(4),mC1=Ea(6),dC1=Ea(7),WC=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,uC1=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,pC1=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,D01=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,hC1=D01,gC1=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,vC1="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function ZC(){return new RegExp(vC1,"u")}var JC=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,XC=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,YC=e=>{let t=fe(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},QC=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,eP=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,tP=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,vy=/^[A-Za-z0-9_-]*$/,bC1=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,yC1=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,oP=/^https?$/,aP=/^\+[1-9]\d{6,14}$/,N01="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",iP=new RegExp(`^${N01}$`);function L01(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function rP(e){return new RegExp(`^${L01(e)}$`)}function nP(e){let t=L01({precision:e.precision}),o=["Z"];e.local&&o.push(""),e.offset&&o.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let a=`${t}(?:${o.join("|")})`;return new RegExp(`^${N01}T(?:${a})$`)}var cP=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},lP=/^-?\d+n?$/,sP=/^-?\d+$/,by=/^-?\d+(?:\.\d+)?$/,fP=/^(?:true|false)$/i,mP=/^null$/i;var dP=/^undefined$/i;var uP=/^[^A-Z]*$/,pP=/^[^a-z]*$/,kC1=/^[0-9a-fA-F]*$/;function pm(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function hm(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var xC1=/^[0-9a-fA-F]{32}$/,zC1=pm(22,"=="),wC1=hm(22),MC1=/^[0-9a-fA-F]{40}$/,SC1=pm(27,"="),TC1=hm(27),RC1=/^[0-9a-fA-F]{64}$/,EC1=pm(43,"="),_C1=hm(43),CC1=/^[0-9a-fA-F]{96}$/,PC1=pm(64,""),AC1=hm(64),OC1=/^[0-9a-fA-F]{128}$/,$C1=pm(86,"=="),IC1=hm(86);var J2=Y("$ZodCheck",(e,t)=>{var o;e._zod??(e._zod={}),e._zod.def=t,(o=e._zod).onattach??(o.onattach=[])}),F01={number:"number",bigint:"bigint",object:"date"},yy=Y("$ZodCheckLessThan",(e,t)=>{J2.init(e,t);let o=F01[typeof t.value];e._zod.onattach.push(a=>{let i=a._zod.bag,r=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<r&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=a=>{(t.inclusive?a.value<=t.value:a.value<t.value)||a.issues.push({origin:o,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ky=Y("$ZodCheckGreaterThan",(e,t)=>{J2.init(e,t);let o=F01[typeof t.value];e._zod.onattach.push(a=>{let i=a._zod.bag,r=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>r&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=a=>{(t.inclusive?a.value>=t.value:a.value>t.value)||a.issues.push({origin:o,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),hP=Y("$ZodCheckMultipleOf",(e,t)=>{J2.init(e,t),e._zod.onattach.push(o=>{var a;(a=o._zod.bag).multipleOf??(a.multipleOf=t.value)}),e._zod.check=o=>{if(typeof o.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof o.value=="bigint"?o.value%t.value===BigInt(0):RC(o.value,t.value)===0)||o.issues.push({origin:typeof o.value,code:"not_multiple_of",divisor:t.value,input:o.value,inst:e,continue:!t.abort})}}),gP=Y("$ZodCheckNumberFormat",(e,t)=>{J2.init(e,t),t.format=t.format||"float64";let o=t.format?.includes("int"),a=o?"int":"number",[i,r]=OC[t.format];e._zod.onattach.push(n=>{let c=n._zod.bag;c.format=t.format,c.minimum=i,c.maximum=r,o&&(c.pattern=sP)}),e._zod.check=n=>{let c=n.value;if(o){if(!Number.isInteger(c)){n.issues.push({expected:a,format:t.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){c>0?n.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!t.abort}):n.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!t.abort});return}}c<i&&n.issues.push({origin:"number",input:c,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),c>r&&n.issues.push({origin:"number",input:c,code:"too_big",maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),vP=Y("$ZodCheckBigIntFormat",(e,t)=>{J2.init(e,t);let[o,a]=$C[t.format];e._zod.onattach.push(i=>{let r=i._zod.bag;r.format=t.format,r.minimum=o,r.maximum=a}),e._zod.check=i=>{let r=i.value;r<o&&i.issues.push({origin:"bigint",input:r,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),r>a&&i.issues.push({origin:"bigint",input:r,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),bP=Y("$ZodCheckMaxSize",(e,t)=>{var o;J2.init(e,t),(o=e._zod.def).when??(o.when=a=>{let i=a.value;return!m9(i)&&i.size!==void 0}),e._zod.onattach.push(a=>{let i=a._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(a._zod.bag.maximum=t.maximum)}),e._zod.check=a=>{let i=a.value;i.size<=t.maximum||a.issues.push({origin:fm(i),code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),yP=Y("$ZodCheckMinSize",(e,t)=>{var o;J2.init(e,t),(o=e._zod.def).when??(o.when=a=>{let i=a.value;return!m9(i)&&i.size!==void 0}),e._zod.onattach.push(a=>{let i=a._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(a._zod.bag.minimum=t.minimum)}),e._zod.check=a=>{let i=a.value;i.size>=t.minimum||a.issues.push({origin:fm(i),code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),kP=Y("$ZodCheckSizeEquals",(e,t)=>{var o;J2.init(e,t),(o=e._zod.def).when??(o.when=a=>{let i=a.value;return!m9(i)&&i.size!==void 0}),e._zod.onattach.push(a=>{let i=a._zod.bag;i.minimum=t.size,i.maximum=t.size,i.size=t.size}),e._zod.check=a=>{let i=a.value,r=i.size;if(r===t.size)return;let n=r>t.size;a.issues.push({origin:fm(i),...n?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!t.abort})}}),xP=Y("$ZodCheckMaxLength",(e,t)=>{var o;J2.init(e,t),(o=e._zod.def).when??(o.when=a=>{let i=a.value;return!m9(i)&&i.length!==void 0}),e._zod.onattach.push(a=>{let i=a._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(a._zod.bag.maximum=t.maximum)}),e._zod.check=a=>{let i=a.value;if(i.length<=t.maximum)return;let n=mm(i);a.issues.push({origin:n,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),zP=Y("$ZodCheckMinLength",(e,t)=>{var o;J2.init(e,t),(o=e._zod.def).when??(o.when=a=>{let i=a.value;return!m9(i)&&i.length!==void 0}),e._zod.onattach.push(a=>{let i=a._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(a._zod.bag.minimum=t.minimum)}),e._zod.check=a=>{let i=a.value;if(i.length>=t.minimum)return;let n=mm(i);a.issues.push({origin:n,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),wP=Y("$ZodCheckLengthEquals",(e,t)=>{var o;J2.init(e,t),(o=e._zod.def).when??(o.when=a=>{let i=a.value;return!m9(i)&&i.length!==void 0}),e._zod.onattach.push(a=>{let i=a._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=a=>{let i=a.value,r=i.length;if(r===t.length)return;let n=mm(i),c=r>t.length;a.issues.push({origin:n,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!t.abort})}}),ec=Y("$ZodCheckStringFormat",(e,t)=>{var o,a;J2.init(e,t),e._zod.onattach.push(i=>{let r=i._zod.bag;r.format=t.format,t.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(t.pattern))}),t.pattern?(o=e._zod).check??(o.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(a=e._zod).check??(a.check=()=>{})}),MP=Y("$ZodCheckRegex",(e,t)=>{ec.init(e,t),e._zod.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:"regex",input:o.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),SP=Y("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=uP),ec.init(e,t)}),TP=Y("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=pP),ec.init(e,t)}),RP=Y("$ZodCheckIncludes",(e,t)=>{J2.init(e,t);let o=fe(t.includes),a=new RegExp(typeof t.position=="number"?`^.{${t.position}}${o}`:o);t.pattern=a,e._zod.onattach.push(i=>{let r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(a)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),EP=Y("$ZodCheckStartsWith",(e,t)=>{J2.init(e,t);let o=new RegExp(`^${fe(t.prefix)}.*`);t.pattern??(t.pattern=o),e._zod.onattach.push(a=>{let i=a._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=a=>{a.value.startsWith(t.prefix)||a.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:a.value,inst:e,continue:!t.abort})}}),_P=Y("$ZodCheckEndsWith",(e,t)=>{J2.init(e,t);let o=new RegExp(`.*${fe(t.suffix)}$`);t.pattern??(t.pattern=o),e._zod.onattach.push(a=>{let i=a._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=a=>{a.value.endsWith(t.suffix)||a.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:a.value,inst:e,continue:!t.abort})}});function j01(e,t,o){e.issues.length&&t.issues.push(...K4(o,e.issues))}var CP=Y("$ZodCheckProperty",(e,t)=>{J2.init(e,t),e._zod.check=o=>{let a=t.schema._zod.run({value:o.value[t.property],issues:[]},{});if(a instanceof Promise)return a.then(i=>j01(i,o,t.property));j01(a,o,t.property)}}),PP=Y("$ZodCheckMimeType",(e,t)=>{J2.init(e,t);let o=new Set(t.mime);e._zod.onattach.push(a=>{a._zod.bag.mime=t.mime}),e._zod.check=a=>{o.has(a.value.type)||a.issues.push({code:"invalid_value",values:t.mime,input:a.value.type,inst:e,continue:!t.abort})}}),AP=Y("$ZodCheckOverwrite",(e,t)=>{J2.init(e,t),e._zod.check=o=>{o.value=t.tx(o.value)}});s();var gm=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let a=t.split(`
519
519
  `).filter(n=>n),i=Math.min(...a.map(n=>n.length-n.trimStart().length)),r=a.map(n=>n.slice(i)).map(n=>" ".repeat(this.indent*2)+n);for(let n of r)this.content.push(n)}compile(){let t=Function,o=this?.args,i=[...(this?.content??[""]).map(r=>` ${r}`)];return new t(...o,i.join(`
520
520
  `))}};s();var OP={major:4,minor:4,patch:3};var Q1=Y("$ZodType",(e,t)=>{var o;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=OP;let a=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&a.unshift(e);for(let i of a)for(let r of i._zod.onattach)r(e);if(a.length===0)(o=e._zod).deferred??(o.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let i=(n,c,l)=>{let f=p9(n),m;for(let d of c){if(d._zod.def.when){if(IC(n)||!d._zod.def.when(n))continue}else if(f)continue;let u=n.issues.length,p=d._zod.check(n);if(p instanceof Promise&&l?.async===!1)throw new qe;if(m||p instanceof Promise)m=(m??Promise.resolve()).then(async()=>{await p,n.issues.length!==u&&(f||(f=p9(n,u)))});else{if(n.issues.length===u)continue;f||(f=p9(n,u))}}return m?m.then(()=>n):n},r=(n,c,l)=>{if(p9(n))return n.aborted=!0,n;let f=i(c,a,l);if(f instanceof Promise){if(l.async===!1)throw new qe;return f.then(m=>e._zod.parse(m,l))}return e._zod.parse(f,l)};e._zod.run=(n,c)=>{if(c.skipChecks)return e._zod.parse(n,c);if(c.direction==="backward"){let f=e._zod.parse({value:n.value,issues:[]},{...c,skipChecks:!0});return f instanceof Promise?f.then(m=>r(m,n,c)):r(f,n,c)}let l=e._zod.parse(n,c);if(l instanceof Promise){if(c.async===!1)throw new qe;return l.then(f=>i(f,a,c))}return i(l,a,c)}}p2(e,"~standard",()=>({validate:i=>{try{let r=LC(e,i);return r.success?{value:r.data}:{issues:r.error?.issues}}catch{return jC(e,i).then(n=>n.success?{value:n.data}:{issues:n.error?.issues})}},vendor:"zod",version:1}))}),_a=Y("$ZodString",(e,t)=>{Q1.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??cP(e._zod.bag),e._zod.parse=(o,a)=>{if(t.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),H2=Y("$ZodStringFormat",(e,t)=>{ec.init(e,t),_a.init(e,t)}),IP=Y("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=qC),H2.init(e,t)}),DP=Y("$ZodUUID",(e,t)=>{if(t.version){let a={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(a===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Ea(a))}else t.pattern??(t.pattern=Ea());H2.init(e,t)}),NP=Y("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=WC),H2.init(e,t)}),LP=Y("$ZodURL",(e,t)=>{H2.init(e,t),e._zod.check=o=>{try{let a=o.value.trim();if(!t.normalize&&t.protocol?.source===oP.source&&!/^https?:\/\//i.test(a)){o.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:o.value,inst:e,continue:!t.abort});return}let i=new URL(a);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:o.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:o.value,inst:e,continue:!t.abort})),t.normalize?o.value=i.href:o.value=a;return}catch{o.issues.push({code:"invalid_format",format:"url",input:o.value,inst:e,continue:!t.abort})}}}),jP=Y("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=ZC()),H2.init(e,t)}),FP=Y("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=GC),H2.init(e,t)}),BP=Y("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=FC),H2.init(e,t)}),VP=Y("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=BC),H2.init(e,t)}),UP=Y("$ZodULID",(e,t)=>{t.pattern??(t.pattern=VC),H2.init(e,t)}),HP=Y("$ZodXID",(e,t)=>{t.pattern??(t.pattern=UC),H2.init(e,t)}),GP=Y("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=HC),H2.init(e,t)}),KP=Y("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=nP(t)),H2.init(e,t)}),qP=Y("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=iP),H2.init(e,t)}),WP=Y("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=rP(t)),H2.init(e,t)}),ZP=Y("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=KC),H2.init(e,t)}),JP=Y("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=JC),H2.init(e,t),e._zod.bag.format="ipv4"}),XP=Y("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=XC),H2.init(e,t),e._zod.bag.format="ipv6",e._zod.check=o=>{try{new URL(`http://[${o.value}]`)}catch{o.issues.push({code:"invalid_format",format:"ipv6",input:o.value,inst:e,continue:!t.abort})}}}),YP=Y("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=YC(t.delimiter)),H2.init(e,t),e._zod.bag.format="mac"}),QP=Y("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=QC),H2.init(e,t)}),eA=Y("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=eP),H2.init(e,t),e._zod.check=o=>{let a=o.value.split("/");try{if(a.length!==2)throw new Error;let[i,r]=a;if(!r)throw new Error;let n=Number(r);if(`${n}`!==r)throw new Error;if(n<0||n>128)throw new Error;new URL(`http://[${i}]`)}catch{o.issues.push({code:"invalid_format",format:"cidrv6",input:o.value,inst:e,continue:!t.abort})}}});function tA(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var oA=Y("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=tP),H2.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=o=>{tA(o.value)||o.issues.push({code:"invalid_format",format:"base64",input:o.value,inst:e,continue:!t.abort})}});function o41(e){if(!vy.test(e))return!1;let t=e.replace(/[-_]/g,a=>a==="-"?"+":"/"),o=t.padEnd(Math.ceil(t.length/4)*4,"=");return tA(o)}var aA=Y("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=vy),H2.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=o=>{o41(o.value)||o.issues.push({code:"invalid_format",format:"base64url",input:o.value,inst:e,continue:!t.abort})}}),iA=Y("$ZodE164",(e,t)=>{t.pattern??(t.pattern=aP),H2.init(e,t)});function a41(e,t=null){try{let o=e.split(".");if(o.length!==3)return!1;let[a]=o;if(!a)return!1;let i=JSON.parse(atob(a));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}var rA=Y("$ZodJWT",(e,t)=>{H2.init(e,t),e._zod.check=o=>{a41(o.value,t.alg)||o.issues.push({code:"invalid_format",format:"jwt",input:o.value,inst:e,continue:!t.abort})}}),nA=Y("$ZodCustomStringFormat",(e,t)=>{H2.init(e,t),e._zod.check=o=>{t.fn(o.value)||o.issues.push({code:"invalid_format",format:t.format,input:o.value,inst:e,continue:!t.abort})}}),Sy=Y("$ZodNumber",(e,t)=>{Q1.init(e,t),e._zod.pattern=e._zod.bag.pattern??by,e._zod.parse=(o,a)=>{if(t.coerce)try{o.value=Number(o.value)}catch{}let i=o.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return o;let r=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return o.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...r?{received:r}:{}}),o}}),cA=Y("$ZodNumberFormat",(e,t)=>{gP.init(e,t),Sy.init(e,t)}),vm=Y("$ZodBoolean",(e,t)=>{Q1.init(e,t),e._zod.pattern=fP,e._zod.parse=(o,a)=>{if(t.coerce)try{o.value=!!o.value}catch{}let i=o.value;return typeof i=="boolean"||o.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),o}}),Ty=Y("$ZodBigInt",(e,t)=>{Q1.init(e,t),e._zod.pattern=lP,e._zod.parse=(o,a)=>{if(t.coerce)try{o.value=BigInt(o.value)}catch{}return typeof o.value=="bigint"||o.issues.push({expected:"bigint",code:"invalid_type",input:o.value,inst:e}),o}}),lA=Y("$ZodBigIntFormat",(e,t)=>{vP.init(e,t),Ty.init(e,t)}),sA=Y("$ZodSymbol",(e,t)=>{Q1.init(e,t),e._zod.parse=(o,a)=>{let i=o.value;return typeof i=="symbol"||o.issues.push({expected:"symbol",code:"invalid_type",input:i,inst:e}),o}}),fA=Y("$ZodUndefined",(e,t)=>{Q1.init(e,t),e._zod.pattern=dP,e._zod.values=new Set([void 0]),e._zod.parse=(o,a)=>{let i=o.value;return typeof i>"u"||o.issues.push({expected:"undefined",code:"invalid_type",input:i,inst:e}),o}}),mA=Y("$ZodNull",(e,t)=>{Q1.init(e,t),e._zod.pattern=mP,e._zod.values=new Set([null]),e._zod.parse=(o,a)=>{let i=o.value;return i===null||o.issues.push({expected:"null",code:"invalid_type",input:i,inst:e}),o}}),dA=Y("$ZodAny",(e,t)=>{Q1.init(e,t),e._zod.parse=o=>o}),uA=Y("$ZodUnknown",(e,t)=>{Q1.init(e,t),e._zod.parse=o=>o}),pA=Y("$ZodNever",(e,t)=>{Q1.init(e,t),e._zod.parse=(o,a)=>(o.issues.push({expected:"never",code:"invalid_type",input:o.value,inst:e}),o)}),hA=Y("$ZodVoid",(e,t)=>{Q1.init(e,t),e._zod.parse=(o,a)=>{let i=o.value;return typeof i>"u"||o.issues.push({expected:"void",code:"invalid_type",input:i,inst:e}),o}}),gA=Y("$ZodDate",(e,t)=>{Q1.init(e,t),e._zod.parse=(o,a)=>{if(t.coerce)try{o.value=new Date(o.value)}catch{}let i=o.value,r=i instanceof Date;return r&&!Number.isNaN(i.getTime())||o.issues.push({expected:"date",code:"invalid_type",input:i,...r?{received:"Invalid Date"}:{},inst:e}),o}});function V01(e,t,o){e.issues.length&&t.issues.push(...K4(o,e.issues)),t.value[o]=e.value}var vA=Y("$ZodArray",(e,t)=>{Q1.init(e,t),e._zod.parse=(o,a)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),o;o.value=Array(i.length);let r=[];for(let n=0;n<i.length;n++){let c=i[n],l=t.element._zod.run({value:c,issues:[]},a);l instanceof Promise?r.push(l.then(f=>V01(f,o,n))):V01(l,o,n)}return r.length?Promise.all(r).then(()=>o):o}});function My(e,t,o,a,i,r){let n=o in a;if(e.issues.length){if(i&&r&&!n)return;t.issues.push(...K4(o,e.issues))}if(!n&&!i){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[o]});return}e.value===void 0?n&&(t.value[o]=void 0):t.value[o]=e.value}function i41(e){let t=Object.keys(e.shape);for(let a of t)if(!e.shape?.[a]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${a}": expected a Zod schema`);let o=AC(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(o)}}function r41(e,t,o,a,i,r){let n=[],c=i.keySet,l=i.catchall._zod,f=l.def.type,m=l.optin==="optional",d=l.optout==="optional";for(let u in t){if(u==="__proto__"||c.has(u))continue;if(f==="never"){n.push(u);continue}let p=l.run({value:t[u],issues:[]},a);p instanceof Promise?e.push(p.then(b=>My(b,o,u,t,m,d))):My(p,o,u,t,m,d)}return n.length&&o.issues.push({code:"unrecognized_keys",keys:n,input:t,inst:r}),e.length?Promise.all(e).then(()=>o):o}var n41=Y("$ZodObject",(e,t)=>{if(Q1.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let c=t.shape;Object.defineProperty(t,"shape",{get:()=>{let l={...c};return Object.defineProperty(t,"shape",{value:l}),l}})}let a=Kn(()=>i41(t));p2(e._zod,"propValues",()=>{let c=t.shape,l={};for(let f in c){let m=c[f]._zod;if(m.values){l[f]??(l[f]=new Set);for(let d of m.values)l[f].add(d)}}return l});let i=Ta,r=t.catchall,n;e._zod.parse=(c,l)=>{n??(n=a.value);let f=c.value;if(!i(f))return c.issues.push({expected:"object",code:"invalid_type",input:f,inst:e}),c;c.value={};let m=[],d=n.shape;for(let u of n.keys){let p=d[u],b=p._zod.optin==="optional",g=p._zod.optout==="optional",x=p._zod.run({value:f[u],issues:[]},l);x instanceof Promise?m.push(x.then(y=>My(y,c,u,f,b,g))):My(x,c,u,f,b,g)}return r?r41(m,f,c,l,a.value,e):m.length?Promise.all(m).then(()=>c):c}}),bA=Y("$ZodObjectJIT",(e,t)=>{n41.init(e,t);let o=e._zod.parse,a=Kn(()=>i41(t)),i=u=>{let p=new gm(["shape","payload","ctx"]),b=a.value,g=k=>{let w=cy(k);return`shape[${w}]._zod.run({ value: input[${w}], issues: [] }, ctx)`};p.write("const input = payload.value;");let x=Object.create(null),y=0;for(let k of b.keys)x[k]=`key_${y++}`;p.write("const newResult = {};");for(let k of b.keys){let w=x[k],T=cy(k),O=u[k],C=O?._zod?.optin==="optional",z=O?._zod?.optout==="optional";p.write(`const ${w} = ${g(k)};`),C&&z?p.write(`