@qwickapps/server 1.3.1 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (395) hide show
  1. package/README.md +157 -0
  2. package/dist/core/control-panel.d.ts.map +1 -1
  3. package/dist/core/control-panel.js +114 -0
  4. package/dist/core/control-panel.js.map +1 -1
  5. package/dist/core/types.d.ts +19 -0
  6. package/dist/core/types.d.ts.map +1 -1
  7. package/dist/index.d.ts +2 -2
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +15 -3
  10. package/dist/index.js.map +1 -1
  11. package/dist/plugins/auth/adapter-wrapper.d.ts +47 -0
  12. package/dist/plugins/auth/adapter-wrapper.d.ts.map +1 -0
  13. package/dist/plugins/auth/adapter-wrapper.js +166 -0
  14. package/dist/plugins/auth/adapter-wrapper.js.map +1 -0
  15. package/dist/plugins/auth/adapter-wrapper.test.d.ts +7 -0
  16. package/dist/plugins/auth/adapter-wrapper.test.d.ts.map +1 -0
  17. package/dist/plugins/auth/adapter-wrapper.test.js +303 -0
  18. package/dist/plugins/auth/adapter-wrapper.test.js.map +1 -0
  19. package/dist/plugins/auth/config-store.d.ts +11 -0
  20. package/dist/plugins/auth/config-store.d.ts.map +1 -0
  21. package/dist/plugins/auth/config-store.js +232 -0
  22. package/dist/plugins/auth/config-store.js.map +1 -0
  23. package/dist/plugins/auth/config-store.test.d.ts +7 -0
  24. package/dist/plugins/auth/config-store.test.d.ts.map +1 -0
  25. package/dist/plugins/auth/config-store.test.js +299 -0
  26. package/dist/plugins/auth/config-store.test.js.map +1 -0
  27. package/dist/plugins/auth/env-config.d.ts +51 -1
  28. package/dist/plugins/auth/env-config.d.ts.map +1 -1
  29. package/dist/plugins/auth/env-config.js +640 -7
  30. package/dist/plugins/auth/env-config.js.map +1 -1
  31. package/dist/plugins/auth/index.d.ts +6 -2
  32. package/dist/plugins/auth/index.d.ts.map +1 -1
  33. package/dist/plugins/auth/index.js +5 -1
  34. package/dist/plugins/auth/index.js.map +1 -1
  35. package/dist/plugins/auth/types.d.ts +106 -0
  36. package/dist/plugins/auth/types.d.ts.map +1 -1
  37. package/dist/plugins/bans/bans-plugin.d.ts.map +1 -1
  38. package/dist/plugins/bans/bans-plugin.js +12 -3
  39. package/dist/plugins/bans/bans-plugin.js.map +1 -1
  40. package/dist/plugins/devices/__tests__/devices-plugin.test.d.ts +11 -0
  41. package/dist/plugins/devices/__tests__/devices-plugin.test.d.ts.map +1 -0
  42. package/dist/plugins/devices/__tests__/devices-plugin.test.js +410 -0
  43. package/dist/plugins/devices/__tests__/devices-plugin.test.js.map +1 -0
  44. package/dist/plugins/devices/__tests__/token-utils.test.d.ts +7 -0
  45. package/dist/plugins/devices/__tests__/token-utils.test.d.ts.map +1 -0
  46. package/dist/plugins/devices/__tests__/token-utils.test.js +197 -0
  47. package/dist/plugins/devices/__tests__/token-utils.test.js.map +1 -0
  48. package/dist/plugins/devices/adapters/compute-adapter.d.ts +36 -0
  49. package/dist/plugins/devices/adapters/compute-adapter.d.ts.map +1 -0
  50. package/dist/plugins/devices/adapters/compute-adapter.js +100 -0
  51. package/dist/plugins/devices/adapters/compute-adapter.js.map +1 -0
  52. package/dist/plugins/devices/adapters/index.d.ts +12 -0
  53. package/dist/plugins/devices/adapters/index.d.ts.map +1 -0
  54. package/dist/plugins/devices/adapters/index.js +10 -0
  55. package/dist/plugins/devices/adapters/index.js.map +1 -0
  56. package/dist/plugins/devices/adapters/mobile-adapter.d.ts +41 -0
  57. package/dist/plugins/devices/adapters/mobile-adapter.d.ts.map +1 -0
  58. package/dist/plugins/devices/adapters/mobile-adapter.js +131 -0
  59. package/dist/plugins/devices/adapters/mobile-adapter.js.map +1 -0
  60. package/dist/plugins/devices/devices-plugin.d.ts +70 -0
  61. package/dist/plugins/devices/devices-plugin.d.ts.map +1 -0
  62. package/dist/plugins/devices/devices-plugin.js +453 -0
  63. package/dist/plugins/devices/devices-plugin.js.map +1 -0
  64. package/dist/plugins/devices/index.d.ts +18 -0
  65. package/dist/plugins/devices/index.d.ts.map +1 -0
  66. package/dist/plugins/devices/index.js +18 -0
  67. package/dist/plugins/devices/index.js.map +1 -0
  68. package/dist/plugins/devices/stores/index.d.ts +9 -0
  69. package/dist/plugins/devices/stores/index.d.ts.map +1 -0
  70. package/dist/plugins/devices/stores/index.js +9 -0
  71. package/dist/plugins/devices/stores/index.js.map +1 -0
  72. package/dist/plugins/devices/stores/postgres-store.d.ts +26 -0
  73. package/dist/plugins/devices/stores/postgres-store.d.ts.map +1 -0
  74. package/dist/plugins/devices/stores/postgres-store.js +199 -0
  75. package/dist/plugins/devices/stores/postgres-store.js.map +1 -0
  76. package/dist/plugins/devices/token-utils.d.ts +100 -0
  77. package/dist/plugins/devices/token-utils.d.ts.map +1 -0
  78. package/dist/plugins/devices/token-utils.js +162 -0
  79. package/dist/plugins/devices/token-utils.js.map +1 -0
  80. package/dist/plugins/devices/types.d.ts +307 -0
  81. package/dist/plugins/devices/types.d.ts.map +1 -0
  82. package/dist/plugins/devices/types.js +10 -0
  83. package/dist/plugins/devices/types.js.map +1 -0
  84. package/dist/plugins/index.d.ts +18 -4
  85. package/dist/plugins/index.d.ts.map +1 -1
  86. package/dist/plugins/index.js +16 -2
  87. package/dist/plugins/index.js.map +1 -1
  88. package/dist/plugins/notifications/__tests__/notifications-manager.test.d.ts +5 -0
  89. package/dist/plugins/notifications/__tests__/notifications-manager.test.d.ts.map +1 -0
  90. package/dist/plugins/notifications/__tests__/notifications-manager.test.js +470 -0
  91. package/dist/plugins/notifications/__tests__/notifications-manager.test.js.map +1 -0
  92. package/dist/plugins/notifications/index.d.ts +71 -0
  93. package/dist/plugins/notifications/index.d.ts.map +1 -0
  94. package/dist/plugins/notifications/index.js +72 -0
  95. package/dist/plugins/notifications/index.js.map +1 -0
  96. package/dist/plugins/notifications/notifications-manager.d.ts +182 -0
  97. package/dist/plugins/notifications/notifications-manager.d.ts.map +1 -0
  98. package/dist/plugins/notifications/notifications-manager.js +610 -0
  99. package/dist/plugins/notifications/notifications-manager.js.map +1 -0
  100. package/dist/plugins/notifications/notifications-plugin.d.ts +83 -0
  101. package/dist/plugins/notifications/notifications-plugin.d.ts.map +1 -0
  102. package/dist/plugins/notifications/notifications-plugin.js +337 -0
  103. package/dist/plugins/notifications/notifications-plugin.js.map +1 -0
  104. package/dist/plugins/notifications/types.d.ts +164 -0
  105. package/dist/plugins/notifications/types.d.ts.map +1 -0
  106. package/dist/plugins/notifications/types.js +9 -0
  107. package/dist/plugins/notifications/types.js.map +1 -0
  108. package/dist/plugins/parental/__tests__/parental-plugin.test.d.ts +12 -0
  109. package/dist/plugins/parental/__tests__/parental-plugin.test.d.ts.map +1 -0
  110. package/dist/plugins/parental/__tests__/parental-plugin.test.js +349 -0
  111. package/dist/plugins/parental/__tests__/parental-plugin.test.js.map +1 -0
  112. package/dist/plugins/parental/adapters/index.d.ts +8 -0
  113. package/dist/plugins/parental/adapters/index.d.ts.map +1 -0
  114. package/dist/plugins/parental/adapters/index.js +7 -0
  115. package/dist/plugins/parental/adapters/index.js.map +1 -0
  116. package/dist/plugins/parental/adapters/kids-adapter.d.ts +24 -0
  117. package/dist/plugins/parental/adapters/kids-adapter.d.ts.map +1 -0
  118. package/dist/plugins/parental/adapters/kids-adapter.js +174 -0
  119. package/dist/plugins/parental/adapters/kids-adapter.js.map +1 -0
  120. package/dist/plugins/parental/index.d.ts +14 -0
  121. package/dist/plugins/parental/index.d.ts.map +1 -0
  122. package/dist/plugins/parental/index.js +15 -0
  123. package/dist/plugins/parental/index.js.map +1 -0
  124. package/dist/plugins/parental/parental-plugin.d.ts +88 -0
  125. package/dist/plugins/parental/parental-plugin.d.ts.map +1 -0
  126. package/dist/plugins/parental/parental-plugin.js +666 -0
  127. package/dist/plugins/parental/parental-plugin.js.map +1 -0
  128. package/dist/plugins/parental/stores/index.d.ts +7 -0
  129. package/dist/plugins/parental/stores/index.d.ts.map +1 -0
  130. package/dist/plugins/parental/stores/index.js +7 -0
  131. package/dist/plugins/parental/stores/index.js.map +1 -0
  132. package/dist/plugins/parental/stores/postgres-store.d.ts +10 -0
  133. package/dist/plugins/parental/stores/postgres-store.d.ts.map +1 -0
  134. package/dist/plugins/parental/stores/postgres-store.js +209 -0
  135. package/dist/plugins/parental/stores/postgres-store.js.map +1 -0
  136. package/dist/plugins/parental/types.d.ts +154 -0
  137. package/dist/plugins/parental/types.d.ts.map +1 -0
  138. package/dist/plugins/parental/types.js +10 -0
  139. package/dist/plugins/parental/types.js.map +1 -0
  140. package/dist/plugins/profiles/__tests__/profiles-plugin.test.d.ts +11 -0
  141. package/dist/plugins/profiles/__tests__/profiles-plugin.test.d.ts.map +1 -0
  142. package/dist/plugins/profiles/__tests__/profiles-plugin.test.js +243 -0
  143. package/dist/plugins/profiles/__tests__/profiles-plugin.test.js.map +1 -0
  144. package/dist/plugins/profiles/index.d.ts +12 -0
  145. package/dist/plugins/profiles/index.d.ts.map +1 -0
  146. package/dist/plugins/profiles/index.js +13 -0
  147. package/dist/plugins/profiles/index.js.map +1 -0
  148. package/dist/plugins/profiles/profiles-plugin.d.ts +71 -0
  149. package/dist/plugins/profiles/profiles-plugin.d.ts.map +1 -0
  150. package/dist/plugins/profiles/profiles-plugin.js +481 -0
  151. package/dist/plugins/profiles/profiles-plugin.js.map +1 -0
  152. package/dist/plugins/profiles/stores/index.d.ts +9 -0
  153. package/dist/plugins/profiles/stores/index.d.ts.map +1 -0
  154. package/dist/plugins/profiles/stores/index.js +9 -0
  155. package/dist/plugins/profiles/stores/index.js.map +1 -0
  156. package/dist/plugins/profiles/stores/postgres-store.d.ts +18 -0
  157. package/dist/plugins/profiles/stores/postgres-store.d.ts.map +1 -0
  158. package/dist/plugins/profiles/stores/postgres-store.js +310 -0
  159. package/dist/plugins/profiles/stores/postgres-store.js.map +1 -0
  160. package/dist/plugins/profiles/types.d.ts +289 -0
  161. package/dist/plugins/profiles/types.d.ts.map +1 -0
  162. package/dist/plugins/profiles/types.js +10 -0
  163. package/dist/plugins/profiles/types.js.map +1 -0
  164. package/dist/plugins/rate-limit/__tests__/rate-limit-plugin.test.d.ts +7 -0
  165. package/dist/plugins/rate-limit/__tests__/rate-limit-plugin.test.d.ts.map +1 -0
  166. package/dist/plugins/rate-limit/__tests__/rate-limit-plugin.test.js +220 -0
  167. package/dist/plugins/rate-limit/__tests__/rate-limit-plugin.test.js.map +1 -0
  168. package/dist/plugins/rate-limit/cleanup.d.ts +40 -0
  169. package/dist/plugins/rate-limit/cleanup.d.ts.map +1 -0
  170. package/dist/plugins/rate-limit/cleanup.js +72 -0
  171. package/dist/plugins/rate-limit/cleanup.js.map +1 -0
  172. package/dist/plugins/rate-limit/env-config.d.ts +91 -0
  173. package/dist/plugins/rate-limit/env-config.d.ts.map +1 -0
  174. package/dist/plugins/rate-limit/env-config.js +318 -0
  175. package/dist/plugins/rate-limit/env-config.js.map +1 -0
  176. package/dist/plugins/rate-limit/index.d.ts +76 -0
  177. package/dist/plugins/rate-limit/index.d.ts.map +1 -0
  178. package/dist/plugins/rate-limit/index.js +79 -0
  179. package/dist/plugins/rate-limit/index.js.map +1 -0
  180. package/dist/plugins/rate-limit/middleware.d.ts +40 -0
  181. package/dist/plugins/rate-limit/middleware.d.ts.map +1 -0
  182. package/dist/plugins/rate-limit/middleware.js +169 -0
  183. package/dist/plugins/rate-limit/middleware.js.map +1 -0
  184. package/dist/plugins/rate-limit/rate-limit-plugin.d.ts +44 -0
  185. package/dist/plugins/rate-limit/rate-limit-plugin.d.ts.map +1 -0
  186. package/dist/plugins/rate-limit/rate-limit-plugin.js +354 -0
  187. package/dist/plugins/rate-limit/rate-limit-plugin.js.map +1 -0
  188. package/dist/plugins/rate-limit/rate-limit-service.d.ts +110 -0
  189. package/dist/plugins/rate-limit/rate-limit-service.d.ts.map +1 -0
  190. package/dist/plugins/rate-limit/rate-limit-service.js +172 -0
  191. package/dist/plugins/rate-limit/rate-limit-service.js.map +1 -0
  192. package/dist/plugins/rate-limit/stores/cache-store.d.ts +33 -0
  193. package/dist/plugins/rate-limit/stores/cache-store.d.ts.map +1 -0
  194. package/dist/plugins/rate-limit/stores/cache-store.js +225 -0
  195. package/dist/plugins/rate-limit/stores/cache-store.js.map +1 -0
  196. package/dist/plugins/rate-limit/stores/index.d.ts +8 -0
  197. package/dist/plugins/rate-limit/stores/index.d.ts.map +1 -0
  198. package/dist/plugins/rate-limit/stores/index.js +8 -0
  199. package/dist/plugins/rate-limit/stores/index.js.map +1 -0
  200. package/dist/plugins/rate-limit/stores/postgres-store.d.ts +34 -0
  201. package/dist/plugins/rate-limit/stores/postgres-store.d.ts.map +1 -0
  202. package/dist/plugins/rate-limit/stores/postgres-store.js +320 -0
  203. package/dist/plugins/rate-limit/stores/postgres-store.js.map +1 -0
  204. package/dist/plugins/rate-limit/strategies/fixed-window.d.ts +21 -0
  205. package/dist/plugins/rate-limit/strategies/fixed-window.d.ts.map +1 -0
  206. package/dist/plugins/rate-limit/strategies/fixed-window.js +97 -0
  207. package/dist/plugins/rate-limit/strategies/fixed-window.js.map +1 -0
  208. package/dist/plugins/rate-limit/strategies/index.d.ts +14 -0
  209. package/dist/plugins/rate-limit/strategies/index.d.ts.map +1 -0
  210. package/dist/plugins/rate-limit/strategies/index.js +27 -0
  211. package/dist/plugins/rate-limit/strategies/index.js.map +1 -0
  212. package/dist/plugins/rate-limit/strategies/sliding-window.d.ts +22 -0
  213. package/dist/plugins/rate-limit/strategies/sliding-window.d.ts.map +1 -0
  214. package/dist/plugins/rate-limit/strategies/sliding-window.js +122 -0
  215. package/dist/plugins/rate-limit/strategies/sliding-window.js.map +1 -0
  216. package/dist/plugins/rate-limit/strategies/token-bucket.d.ts +28 -0
  217. package/dist/plugins/rate-limit/strategies/token-bucket.d.ts.map +1 -0
  218. package/dist/plugins/rate-limit/strategies/token-bucket.js +121 -0
  219. package/dist/plugins/rate-limit/strategies/token-bucket.js.map +1 -0
  220. package/dist/plugins/rate-limit/types.d.ts +265 -0
  221. package/dist/plugins/rate-limit/types.d.ts.map +1 -0
  222. package/dist/plugins/rate-limit/types.js +9 -0
  223. package/dist/plugins/rate-limit/types.js.map +1 -0
  224. package/dist/plugins/subscriptions/__tests__/subscriptions-plugin.test.d.ts +11 -0
  225. package/dist/plugins/subscriptions/__tests__/subscriptions-plugin.test.d.ts.map +1 -0
  226. package/dist/plugins/subscriptions/__tests__/subscriptions-plugin.test.js +305 -0
  227. package/dist/plugins/subscriptions/__tests__/subscriptions-plugin.test.js.map +1 -0
  228. package/dist/plugins/subscriptions/index.d.ts +12 -0
  229. package/dist/plugins/subscriptions/index.d.ts.map +1 -0
  230. package/dist/plugins/subscriptions/index.js +13 -0
  231. package/dist/plugins/subscriptions/index.js.map +1 -0
  232. package/dist/plugins/subscriptions/stores/index.d.ts +9 -0
  233. package/dist/plugins/subscriptions/stores/index.d.ts.map +1 -0
  234. package/dist/plugins/subscriptions/stores/index.js +9 -0
  235. package/dist/plugins/subscriptions/stores/index.js.map +1 -0
  236. package/dist/plugins/subscriptions/stores/postgres-store.d.ts +14 -0
  237. package/dist/plugins/subscriptions/stores/postgres-store.d.ts.map +1 -0
  238. package/dist/plugins/subscriptions/stores/postgres-store.js +359 -0
  239. package/dist/plugins/subscriptions/stores/postgres-store.js.map +1 -0
  240. package/dist/plugins/subscriptions/subscriptions-plugin.d.ts +82 -0
  241. package/dist/plugins/subscriptions/subscriptions-plugin.d.ts.map +1 -0
  242. package/dist/plugins/subscriptions/subscriptions-plugin.js +449 -0
  243. package/dist/plugins/subscriptions/subscriptions-plugin.js.map +1 -0
  244. package/dist/plugins/subscriptions/types.d.ts +308 -0
  245. package/dist/plugins/subscriptions/types.d.ts.map +1 -0
  246. package/dist/plugins/subscriptions/types.js +10 -0
  247. package/dist/plugins/subscriptions/types.js.map +1 -0
  248. package/dist/plugins/usage/__tests__/usage-plugin.test.d.ts +11 -0
  249. package/dist/plugins/usage/__tests__/usage-plugin.test.d.ts.map +1 -0
  250. package/dist/plugins/usage/__tests__/usage-plugin.test.js +218 -0
  251. package/dist/plugins/usage/__tests__/usage-plugin.test.js.map +1 -0
  252. package/dist/plugins/usage/index.d.ts +12 -0
  253. package/dist/plugins/usage/index.d.ts.map +1 -0
  254. package/dist/plugins/usage/index.js +13 -0
  255. package/dist/plugins/usage/index.js.map +1 -0
  256. package/dist/plugins/usage/stores/index.d.ts +9 -0
  257. package/dist/plugins/usage/stores/index.d.ts.map +1 -0
  258. package/dist/plugins/usage/stores/index.js +9 -0
  259. package/dist/plugins/usage/stores/index.js.map +1 -0
  260. package/dist/plugins/usage/stores/postgres-store.d.ts +14 -0
  261. package/dist/plugins/usage/stores/postgres-store.d.ts.map +1 -0
  262. package/dist/plugins/usage/stores/postgres-store.js +146 -0
  263. package/dist/plugins/usage/stores/postgres-store.js.map +1 -0
  264. package/dist/plugins/usage/types.d.ts +195 -0
  265. package/dist/plugins/usage/types.d.ts.map +1 -0
  266. package/dist/plugins/usage/types.js +10 -0
  267. package/dist/plugins/usage/types.js.map +1 -0
  268. package/dist/plugins/usage/usage-plugin.d.ts +51 -0
  269. package/dist/plugins/usage/usage-plugin.d.ts.map +1 -0
  270. package/dist/plugins/usage/usage-plugin.js +412 -0
  271. package/dist/plugins/usage/usage-plugin.js.map +1 -0
  272. package/dist/plugins/users/__tests__/postgres-store.test.d.ts +10 -0
  273. package/dist/plugins/users/__tests__/postgres-store.test.d.ts.map +1 -0
  274. package/dist/plugins/users/__tests__/postgres-store.test.js +229 -0
  275. package/dist/plugins/users/__tests__/postgres-store.test.js.map +1 -0
  276. package/dist/plugins/users/__tests__/users-plugin.test.js +3 -0
  277. package/dist/plugins/users/__tests__/users-plugin.test.js.map +1 -1
  278. package/dist/plugins/users/index.d.ts +2 -2
  279. package/dist/plugins/users/index.d.ts.map +1 -1
  280. package/dist/plugins/users/index.js +1 -1
  281. package/dist/plugins/users/index.js.map +1 -1
  282. package/dist/plugins/users/stores/postgres-store.d.ts.map +1 -1
  283. package/dist/plugins/users/stores/postgres-store.js +76 -0
  284. package/dist/plugins/users/stores/postgres-store.js.map +1 -1
  285. package/dist/plugins/users/types.d.ts +74 -6
  286. package/dist/plugins/users/types.d.ts.map +1 -1
  287. package/dist/plugins/users/users-plugin.d.ts +15 -1
  288. package/dist/plugins/users/users-plugin.d.ts.map +1 -1
  289. package/dist/plugins/users/users-plugin.js +29 -0
  290. package/dist/plugins/users/users-plugin.js.map +1 -1
  291. package/dist-ui/assets/index-CynOqPkb.js +469 -0
  292. package/dist-ui/assets/{index-BY8OxNgO.js.map → index-CynOqPkb.js.map} +1 -1
  293. package/dist-ui/index.html +1 -1
  294. package/dist-ui-lib/api/controlPanelApi.d.ts +187 -0
  295. package/dist-ui-lib/components/StatCard.d.ts +16 -0
  296. package/dist-ui-lib/dashboard/widgets/AuthStatusWidget.d.ts +9 -0
  297. package/dist-ui-lib/dashboard/widgets/IntegrationStatusWidget.d.ts +9 -0
  298. package/dist-ui-lib/dashboard/widgets/NotificationsStatsWidget.d.ts +12 -0
  299. package/dist-ui-lib/dashboard/widgets/index.d.ts +3 -0
  300. package/dist-ui-lib/index.js +3579 -2379
  301. package/dist-ui-lib/index.js.map +1 -1
  302. package/dist-ui-lib/pages/IntegrationsPage.d.ts +1 -0
  303. package/dist-ui-lib/pages/NotificationsPage.d.ts +9 -0
  304. package/dist-ui-lib/pages/RateLimitPage.d.ts +1 -0
  305. package/dist-ui-lib/utils/formatters.d.ts +19 -0
  306. package/package.json +1 -1
  307. package/src/core/control-panel.ts +128 -0
  308. package/src/core/types.ts +17 -0
  309. package/src/index.ts +216 -0
  310. package/src/plugins/auth/adapter-wrapper.test.ts +395 -0
  311. package/src/plugins/auth/adapter-wrapper.ts +205 -0
  312. package/src/plugins/auth/config-store.test.ts +417 -0
  313. package/src/plugins/auth/config-store.ts +305 -0
  314. package/src/plugins/auth/env-config.ts +714 -7
  315. package/src/plugins/auth/index.ts +22 -1
  316. package/src/plugins/auth/types.ts +138 -0
  317. package/src/plugins/bans/bans-plugin.ts +15 -3
  318. package/src/plugins/devices/__tests__/devices-plugin.test.ts +551 -0
  319. package/src/plugins/devices/__tests__/token-utils.test.ts +264 -0
  320. package/src/plugins/devices/adapters/compute-adapter.ts +139 -0
  321. package/src/plugins/devices/adapters/index.ts +13 -0
  322. package/src/plugins/devices/adapters/mobile-adapter.ts +179 -0
  323. package/src/plugins/devices/devices-plugin.ts +538 -0
  324. package/src/plugins/devices/index.ts +69 -0
  325. package/src/plugins/devices/stores/index.ts +9 -0
  326. package/src/plugins/devices/stores/postgres-store.ts +304 -0
  327. package/src/plugins/devices/token-utils.ts +213 -0
  328. package/src/plugins/devices/types.ts +351 -0
  329. package/src/plugins/index.ts +267 -0
  330. package/src/plugins/notifications/__tests__/notifications-manager.test.ts +637 -0
  331. package/src/plugins/notifications/index.ts +91 -0
  332. package/src/plugins/notifications/notifications-manager.ts +773 -0
  333. package/src/plugins/notifications/notifications-plugin.ts +398 -0
  334. package/src/plugins/notifications/types.ts +207 -0
  335. package/src/plugins/parental/__tests__/parental-plugin.test.ts +465 -0
  336. package/src/plugins/parental/adapters/index.ts +8 -0
  337. package/src/plugins/parental/adapters/kids-adapter.ts +206 -0
  338. package/src/plugins/parental/index.ts +55 -0
  339. package/src/plugins/parental/parental-plugin.ts +759 -0
  340. package/src/plugins/parental/stores/index.ts +7 -0
  341. package/src/plugins/parental/stores/postgres-store.ts +304 -0
  342. package/src/plugins/parental/types.ts +180 -0
  343. package/src/plugins/profiles/__tests__/profiles-plugin.test.ts +321 -0
  344. package/src/plugins/profiles/index.ts +49 -0
  345. package/src/plugins/profiles/profiles-plugin.ts +546 -0
  346. package/src/plugins/profiles/stores/index.ts +9 -0
  347. package/src/plugins/profiles/stores/postgres-store.ts +439 -0
  348. package/src/plugins/profiles/types.ts +338 -0
  349. package/src/plugins/rate-limit/__tests__/rate-limit-plugin.test.ts +259 -0
  350. package/src/plugins/rate-limit/cleanup.ts +117 -0
  351. package/src/plugins/rate-limit/env-config.ts +400 -0
  352. package/src/plugins/rate-limit/index.ts +128 -0
  353. package/src/plugins/rate-limit/middleware.ts +212 -0
  354. package/src/plugins/rate-limit/rate-limit-plugin.ts +400 -0
  355. package/src/plugins/rate-limit/rate-limit-service.ts +228 -0
  356. package/src/plugins/rate-limit/stores/cache-store.ts +261 -0
  357. package/src/plugins/rate-limit/stores/index.ts +8 -0
  358. package/src/plugins/rate-limit/stores/postgres-store.ts +402 -0
  359. package/src/plugins/rate-limit/strategies/fixed-window.ts +116 -0
  360. package/src/plugins/rate-limit/strategies/index.ts +30 -0
  361. package/src/plugins/rate-limit/strategies/sliding-window.ts +157 -0
  362. package/src/plugins/rate-limit/strategies/token-bucket.ts +154 -0
  363. package/src/plugins/rate-limit/types.ts +338 -0
  364. package/src/plugins/subscriptions/__tests__/subscriptions-plugin.test.ts +404 -0
  365. package/src/plugins/subscriptions/index.ts +51 -0
  366. package/src/plugins/subscriptions/stores/index.ts +9 -0
  367. package/src/plugins/subscriptions/stores/postgres-store.ts +482 -0
  368. package/src/plugins/subscriptions/subscriptions-plugin.ts +530 -0
  369. package/src/plugins/subscriptions/types.ts +355 -0
  370. package/src/plugins/usage/__tests__/usage-plugin.test.ts +288 -0
  371. package/src/plugins/usage/index.ts +39 -0
  372. package/src/plugins/usage/stores/index.ts +9 -0
  373. package/src/plugins/usage/stores/postgres-store.ts +213 -0
  374. package/src/plugins/usage/types.ts +222 -0
  375. package/src/plugins/usage/usage-plugin.ts +484 -0
  376. package/src/plugins/users/__tests__/postgres-store.test.ts +326 -0
  377. package/src/plugins/users/__tests__/users-plugin.test.ts +3 -0
  378. package/src/plugins/users/index.ts +6 -0
  379. package/src/plugins/users/stores/postgres-store.ts +104 -0
  380. package/src/plugins/users/types.ts +82 -6
  381. package/src/plugins/users/users-plugin.ts +37 -0
  382. package/ui/src/App.tsx +36 -14
  383. package/ui/src/api/controlPanelApi.ts +329 -6
  384. package/ui/src/components/StatCard.tsx +58 -0
  385. package/ui/src/dashboard/builtInWidgets.tsx +7 -1
  386. package/ui/src/dashboard/widgets/AuthStatusWidget.tsx +143 -0
  387. package/ui/src/dashboard/widgets/IntegrationStatusWidget.tsx +135 -0
  388. package/ui/src/dashboard/widgets/NotificationsStatsWidget.tsx +167 -0
  389. package/ui/src/dashboard/widgets/index.ts +3 -0
  390. package/ui/src/pages/AuthPage.tsx +986 -142
  391. package/ui/src/pages/IntegrationsPage.tsx +288 -0
  392. package/ui/src/pages/NotificationsPage.tsx +417 -0
  393. package/ui/src/pages/RateLimitPage.tsx +292 -0
  394. package/ui/src/utils/formatters.ts +33 -0
  395. package/dist-ui/assets/index-BY8OxNgO.js +0 -465
@@ -1,465 +0,0 @@
1
- var l4=Object.defineProperty;var c4=(t,e,r)=>e in t?l4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var hs=(t,e,r)=>c4(t,typeof e!="symbol"?e+"":e,r);function u4(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in t)){const a=Object.getOwnPropertyDescriptor(n,o);a&&Object.defineProperty(t,o,a.get?a:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const l of a.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();var Hx=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var cg={exports:{}},Xc={},ug={exports:{}},Bt={};/**
2
- * @license React
3
- * react.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Ux;function d4(){if(Ux)return Bt;Ux=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),v=Symbol.iterator;function g(X){return X===null||typeof X!="object"?null:(X=v&&X[v]||X["@@iterator"],typeof X=="function"?X:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,x={};function C(X,re,ce){this.props=X,this.context=re,this.refs=x,this.updater=ce||y}C.prototype.isReactComponent={},C.prototype.setState=function(X,re){if(typeof X!="object"&&typeof X!="function"&&X!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,X,re,"setState")},C.prototype.forceUpdate=function(X){this.updater.enqueueForceUpdate(this,X,"forceUpdate")};function j(){}j.prototype=C.prototype;function P(X,re,ce){this.props=X,this.context=re,this.refs=x,this.updater=ce||y}var M=P.prototype=new j;M.constructor=P,w(M,C.prototype),M.isPureReactComponent=!0;var E=Array.isArray,R=Object.prototype.hasOwnProperty,I={current:null},F={key:!0,ref:!0,__self:!0,__source:!0};function A(X,re,ce){var Y,ne={},J=null,de=null;if(re!=null)for(Y in re.ref!==void 0&&(de=re.ref),re.key!==void 0&&(J=""+re.key),re)R.call(re,Y)&&!F.hasOwnProperty(Y)&&(ne[Y]=re[Y]);var Ce=arguments.length-2;if(Ce===1)ne.children=ce;else if(1<Ce){for(var me=Array(Ce),se=0;se<Ce;se++)me[se]=arguments[se+2];ne.children=me}if(X&&X.defaultProps)for(Y in Ce=X.defaultProps,Ce)ne[Y]===void 0&&(ne[Y]=Ce[Y]);return{$$typeof:t,type:X,key:J,ref:de,props:ne,_owner:I.current}}function H(X,re){return{$$typeof:t,type:X.type,key:re,ref:X.ref,props:X.props,_owner:X._owner}}function G(X){return typeof X=="object"&&X!==null&&X.$$typeof===t}function N(X){var re={"=":"=0",":":"=2"};return"$"+X.replace(/[=:]/g,function(ce){return re[ce]})}var k=/\/+/g;function q(X,re){return typeof X=="object"&&X!==null&&X.key!=null?N(""+X.key):re.toString(36)}function U(X,re,ce,Y,ne){var J=typeof X;(J==="undefined"||J==="boolean")&&(X=null);var de=!1;if(X===null)de=!0;else switch(J){case"string":case"number":de=!0;break;case"object":switch(X.$$typeof){case t:case e:de=!0}}if(de)return de=X,ne=ne(de),X=Y===""?"."+q(de,0):Y,E(ne)?(ce="",X!=null&&(ce=X.replace(k,"$&/")+"/"),U(ne,re,ce,"",function(se){return se})):ne!=null&&(G(ne)&&(ne=H(ne,ce+(!ne.key||de&&de.key===ne.key?"":(""+ne.key).replace(k,"$&/")+"/")+X)),re.push(ne)),1;if(de=0,Y=Y===""?".":Y+":",E(X))for(var Ce=0;Ce<X.length;Ce++){J=X[Ce];var me=Y+q(J,Ce);de+=U(J,re,ce,me,ne)}else if(me=g(X),typeof me=="function")for(X=me.call(X),Ce=0;!(J=X.next()).done;)J=J.value,me=Y+q(J,Ce++),de+=U(J,re,ce,me,ne);else if(J==="object")throw re=String(X),Error("Objects are not valid as a React child (found: "+(re==="[object Object]"?"object with keys {"+Object.keys(X).join(", ")+"}":re)+"). If you meant to render a collection of children, use an array instead.");return de}function L(X,re,ce){if(X==null)return X;var Y=[],ne=0;return U(X,Y,"","",function(J){return re.call(ce,J,ne++)}),Y}function W(X){if(X._status===-1){var re=X._result;re=re(),re.then(function(ce){(X._status===0||X._status===-1)&&(X._status=1,X._result=ce)},function(ce){(X._status===0||X._status===-1)&&(X._status=2,X._result=ce)}),X._status===-1&&(X._status=0,X._result=re)}if(X._status===1)return X._result.default;throw X._result}var K={current:null},ee={transition:null},Z={ReactCurrentDispatcher:K,ReactCurrentBatchConfig:ee,ReactCurrentOwner:I};function Q(){throw Error("act(...) is not supported in production builds of React.")}return Bt.Children={map:L,forEach:function(X,re,ce){L(X,function(){re.apply(this,arguments)},ce)},count:function(X){var re=0;return L(X,function(){re++}),re},toArray:function(X){return L(X,function(re){return re})||[]},only:function(X){if(!G(X))throw Error("React.Children.only expected to receive a single React element child.");return X}},Bt.Component=C,Bt.Fragment=r,Bt.Profiler=o,Bt.PureComponent=P,Bt.StrictMode=n,Bt.Suspense=u,Bt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z,Bt.act=Q,Bt.cloneElement=function(X,re,ce){if(X==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+X+".");var Y=w({},X.props),ne=X.key,J=X.ref,de=X._owner;if(re!=null){if(re.ref!==void 0&&(J=re.ref,de=I.current),re.key!==void 0&&(ne=""+re.key),X.type&&X.type.defaultProps)var Ce=X.type.defaultProps;for(me in re)R.call(re,me)&&!F.hasOwnProperty(me)&&(Y[me]=re[me]===void 0&&Ce!==void 0?Ce[me]:re[me])}var me=arguments.length-2;if(me===1)Y.children=ce;else if(1<me){Ce=Array(me);for(var se=0;se<me;se++)Ce[se]=arguments[se+2];Y.children=Ce}return{$$typeof:t,type:X.type,key:ne,ref:J,props:Y,_owner:de}},Bt.createContext=function(X){return X={$$typeof:l,_currentValue:X,_currentValue2:X,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},X.Provider={$$typeof:a,_context:X},X.Consumer=X},Bt.createElement=A,Bt.createFactory=function(X){var re=A.bind(null,X);return re.type=X,re},Bt.createRef=function(){return{current:null}},Bt.forwardRef=function(X){return{$$typeof:c,render:X}},Bt.isValidElement=G,Bt.lazy=function(X){return{$$typeof:h,_payload:{_status:-1,_result:X},_init:W}},Bt.memo=function(X,re){return{$$typeof:f,type:X,compare:re===void 0?null:re}},Bt.startTransition=function(X){var re=ee.transition;ee.transition={};try{X()}finally{ee.transition=re}},Bt.unstable_act=Q,Bt.useCallback=function(X,re){return K.current.useCallback(X,re)},Bt.useContext=function(X){return K.current.useContext(X)},Bt.useDebugValue=function(){},Bt.useDeferredValue=function(X){return K.current.useDeferredValue(X)},Bt.useEffect=function(X,re){return K.current.useEffect(X,re)},Bt.useId=function(){return K.current.useId()},Bt.useImperativeHandle=function(X,re,ce){return K.current.useImperativeHandle(X,re,ce)},Bt.useInsertionEffect=function(X,re){return K.current.useInsertionEffect(X,re)},Bt.useLayoutEffect=function(X,re){return K.current.useLayoutEffect(X,re)},Bt.useMemo=function(X,re){return K.current.useMemo(X,re)},Bt.useReducer=function(X,re,ce){return K.current.useReducer(X,re,ce)},Bt.useRef=function(X){return K.current.useRef(X)},Bt.useState=function(X){return K.current.useState(X)},Bt.useSyncExternalStore=function(X,re,ce){return K.current.useSyncExternalStore(X,re,ce)},Bt.useTransition=function(){return K.current.useTransition()},Bt.version="18.3.1",Bt}var Vx;function Yy(){return Vx||(Vx=1,ug.exports=d4()),ug.exports}/**
10
- * @license React
11
- * react-jsx-runtime.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Wx;function p4(){if(Wx)return Xc;Wx=1;var t=Yy(),e=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function l(c,u,f){var h,v={},g=null,y=null;f!==void 0&&(g=""+f),u.key!==void 0&&(g=""+u.key),u.ref!==void 0&&(y=u.ref);for(h in u)n.call(u,h)&&!a.hasOwnProperty(h)&&(v[h]=u[h]);if(c&&c.defaultProps)for(h in u=c.defaultProps,u)v[h]===void 0&&(v[h]=u[h]);return{$$typeof:e,type:c,key:g,ref:y,props:v,_owner:o.current}}return Xc.Fragment=r,Xc.jsx=l,Xc.jsxs=l,Xc}var qx;function f4(){return qx||(qx=1,cg.exports=p4()),cg.exports}var d=f4(),S=Yy();const Mt=Bf(S),Pu=u4({__proto__:null,default:Mt},[S]);var Sp={},dg={exports:{}},Vn={},pg={exports:{}},fg={};/**
18
- * @license React
19
- * scheduler.production.min.js
20
- *
21
- * Copyright (c) Facebook, Inc. and its affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var Gx;function h4(){return Gx||(Gx=1,(function(t){function e(ee,Z){var Q=ee.length;ee.push(Z);e:for(;0<Q;){var X=Q-1>>>1,re=ee[X];if(0<o(re,Z))ee[X]=Z,ee[Q]=re,Q=X;else break e}}function r(ee){return ee.length===0?null:ee[0]}function n(ee){if(ee.length===0)return null;var Z=ee[0],Q=ee.pop();if(Q!==Z){ee[0]=Q;e:for(var X=0,re=ee.length,ce=re>>>1;X<ce;){var Y=2*(X+1)-1,ne=ee[Y],J=Y+1,de=ee[J];if(0>o(ne,Q))J<re&&0>o(de,ne)?(ee[X]=de,ee[J]=Q,X=J):(ee[X]=ne,ee[Y]=Q,X=Y);else if(J<re&&0>o(de,Q))ee[X]=de,ee[J]=Q,X=J;else break e}}return Z}function o(ee,Z){var Q=ee.sortIndex-Z.sortIndex;return Q!==0?Q:ee.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,c=l.now();t.unstable_now=function(){return l.now()-c}}var u=[],f=[],h=1,v=null,g=3,y=!1,w=!1,x=!1,C=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function M(ee){for(var Z=r(f);Z!==null;){if(Z.callback===null)n(f);else if(Z.startTime<=ee)n(f),Z.sortIndex=Z.expirationTime,e(u,Z);else break;Z=r(f)}}function E(ee){if(x=!1,M(ee),!w)if(r(u)!==null)w=!0,W(R);else{var Z=r(f);Z!==null&&K(E,Z.startTime-ee)}}function R(ee,Z){w=!1,x&&(x=!1,j(A),A=-1),y=!0;var Q=g;try{for(M(Z),v=r(u);v!==null&&(!(v.expirationTime>Z)||ee&&!N());){var X=v.callback;if(typeof X=="function"){v.callback=null,g=v.priorityLevel;var re=X(v.expirationTime<=Z);Z=t.unstable_now(),typeof re=="function"?v.callback=re:v===r(u)&&n(u),M(Z)}else n(u);v=r(u)}if(v!==null)var ce=!0;else{var Y=r(f);Y!==null&&K(E,Y.startTime-Z),ce=!1}return ce}finally{v=null,g=Q,y=!1}}var I=!1,F=null,A=-1,H=5,G=-1;function N(){return!(t.unstable_now()-G<H)}function k(){if(F!==null){var ee=t.unstable_now();G=ee;var Z=!0;try{Z=F(!0,ee)}finally{Z?q():(I=!1,F=null)}}else I=!1}var q;if(typeof P=="function")q=function(){P(k)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,L=U.port2;U.port1.onmessage=k,q=function(){L.postMessage(null)}}else q=function(){C(k,0)};function W(ee){F=ee,I||(I=!0,q())}function K(ee,Z){A=C(function(){ee(t.unstable_now())},Z)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(ee){ee.callback=null},t.unstable_continueExecution=function(){w||y||(w=!0,W(R))},t.unstable_forceFrameRate=function(ee){0>ee||125<ee?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<ee?Math.floor(1e3/ee):5},t.unstable_getCurrentPriorityLevel=function(){return g},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(ee){switch(g){case 1:case 2:case 3:var Z=3;break;default:Z=g}var Q=g;g=Z;try{return ee()}finally{g=Q}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(ee,Z){switch(ee){case 1:case 2:case 3:case 4:case 5:break;default:ee=3}var Q=g;g=ee;try{return Z()}finally{g=Q}},t.unstable_scheduleCallback=function(ee,Z,Q){var X=t.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?X+Q:X):Q=X,ee){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=Q+re,ee={id:h++,callback:Z,priorityLevel:ee,startTime:Q,expirationTime:re,sortIndex:-1},Q>X?(ee.sortIndex=Q,e(f,ee),r(u)===null&&ee===r(f)&&(x?(j(A),A=-1):x=!0,K(E,Q-X))):(ee.sortIndex=re,e(u,ee),w||y||(w=!0,W(R))),ee},t.unstable_shouldYield=N,t.unstable_wrapCallback=function(ee){var Z=g;return function(){var Q=g;g=Z;try{return ee.apply(this,arguments)}finally{g=Q}}}})(fg)),fg}var Xx;function m4(){return Xx||(Xx=1,pg.exports=h4()),pg.exports}/**
26
- * @license React
27
- * react-dom.production.min.js
28
- *
29
- * Copyright (c) Facebook, Inc. and its affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var Kx;function g4(){if(Kx)return Vn;Kx=1;var t=Yy(),e=m4();function r(i){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+i,p=1;p<arguments.length;p++)s+="&args[]="+encodeURIComponent(arguments[p]);return"Minified React error #"+i+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=new Set,o={};function a(i,s){l(i,s),l(i+"Capture",s)}function l(i,s){for(o[i]=s,i=0;i<s.length;i++)n.add(s[i])}var c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},v={};function g(i){return u.call(v,i)?!0:u.call(h,i)?!1:f.test(i)?v[i]=!0:(h[i]=!0,!1)}function y(i,s,p,m){if(p!==null&&p.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return m?!1:p!==null?!p.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function w(i,s,p,m){if(s===null||typeof s>"u"||y(i,s,p,m))return!0;if(m)return!1;if(p!==null)switch(p.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function x(i,s,p,m,b,T,O){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=m,this.attributeNamespace=b,this.mustUseProperty=p,this.propertyName=i,this.type=s,this.sanitizeURL=T,this.removeEmptyString=O}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){C[i]=new x(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var s=i[0];C[s]=new x(s,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){C[i]=new x(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){C[i]=new x(i,2,!1,i,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(i){C[i]=new x(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){C[i]=new x(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){C[i]=new x(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){C[i]=new x(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){C[i]=new x(i,5,!1,i.toLowerCase(),null,!1,!1)});var j=/[\-:]([a-z])/g;function P(i){return i[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(i){var s=i.replace(j,P);C[s]=new x(s,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var s=i.replace(j,P);C[s]=new x(s,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var s=i.replace(j,P);C[s]=new x(s,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){C[i]=new x(i,1,!1,i.toLowerCase(),null,!1,!1)}),C.xlinkHref=new x("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){C[i]=new x(i,1,!1,i.toLowerCase(),null,!0,!0)});function M(i,s,p,m){var b=C.hasOwnProperty(s)?C[s]:null;(b!==null?b.type!==0:m||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(w(s,p,b,m)&&(p=null),m||b===null?g(s)&&(p===null?i.removeAttribute(s):i.setAttribute(s,""+p)):b.mustUseProperty?i[b.propertyName]=p===null?b.type===3?!1:"":p:(s=b.attributeName,m=b.attributeNamespace,p===null?i.removeAttribute(s):(b=b.type,p=b===3||b===4&&p===!0?"":""+p,m?i.setAttributeNS(m,s,p):i.setAttribute(s,p))))}var E=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,R=Symbol.for("react.element"),I=Symbol.for("react.portal"),F=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),G=Symbol.for("react.provider"),N=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),K=Symbol.for("react.offscreen"),ee=Symbol.iterator;function Z(i){return i===null||typeof i!="object"?null:(i=ee&&i[ee]||i["@@iterator"],typeof i=="function"?i:null)}var Q=Object.assign,X;function re(i){if(X===void 0)try{throw Error()}catch(p){var s=p.stack.trim().match(/\n( *(at )?)/);X=s&&s[1]||""}return`
34
- `+X+i}var ce=!1;function Y(i,s){if(!i||ce)return"";ce=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(ve){var m=ve}Reflect.construct(i,[],s)}else{try{s.call()}catch(ve){m=ve}i.call(s.prototype)}else{try{throw Error()}catch(ve){m=ve}i()}}catch(ve){if(ve&&m&&typeof ve.stack=="string"){for(var b=ve.stack.split(`
35
- `),T=m.stack.split(`
36
- `),O=b.length-1,te=T.length-1;1<=O&&0<=te&&b[O]!==T[te];)te--;for(;1<=O&&0<=te;O--,te--)if(b[O]!==T[te]){if(O!==1||te!==1)do if(O--,te--,0>te||b[O]!==T[te]){var ae=`
37
- `+b[O].replace(" at new "," at ");return i.displayName&&ae.includes("<anonymous>")&&(ae=ae.replace("<anonymous>",i.displayName)),ae}while(1<=O&&0<=te);break}}}finally{ce=!1,Error.prepareStackTrace=p}return(i=i?i.displayName||i.name:"")?re(i):""}function ne(i){switch(i.tag){case 5:return re(i.type);case 16:return re("Lazy");case 13:return re("Suspense");case 19:return re("SuspenseList");case 0:case 2:case 15:return i=Y(i.type,!1),i;case 11:return i=Y(i.type.render,!1),i;case 1:return i=Y(i.type,!0),i;default:return""}}function J(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case F:return"Fragment";case I:return"Portal";case H:return"Profiler";case A:return"StrictMode";case q:return"Suspense";case U:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case N:return(i.displayName||"Context")+".Consumer";case G:return(i._context.displayName||"Context")+".Provider";case k:var s=i.render;return i=i.displayName,i||(i=s.displayName||s.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case L:return s=i.displayName||null,s!==null?s:J(i.type)||"Memo";case W:s=i._payload,i=i._init;try{return J(i(s))}catch{}}return null}function de(i){var s=i.type;switch(i.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=s.render,i=i.displayName||i.name||"",s.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return J(s);case 8:return s===A?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function Ce(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function me(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function se(i){var s=me(i)?"checked":"value",p=Object.getOwnPropertyDescriptor(i.constructor.prototype,s),m=""+i[s];if(!i.hasOwnProperty(s)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var b=p.get,T=p.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return b.call(this)},set:function(O){m=""+O,T.call(this,O)}}),Object.defineProperty(i,s,{enumerable:p.enumerable}),{getValue:function(){return m},setValue:function(O){m=""+O},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function De(i){i._valueTracker||(i._valueTracker=se(i))}function Ne(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var p=s.getValue(),m="";return i&&(m=me(i)?i.checked?"true":"false":i.value),i=m,i!==p?(s.setValue(i),!0):!1}function Oe(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function Be(i,s){var p=s.checked;return Q({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p??i._wrapperState.initialChecked})}function _e(i,s){var p=s.defaultValue==null?"":s.defaultValue,m=s.checked!=null?s.checked:s.defaultChecked;p=Ce(s.value!=null?s.value:p),i._wrapperState={initialChecked:m,initialValue:p,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function Ke(i,s){s=s.checked,s!=null&&M(i,"checked",s,!1)}function pt(i,s){Ke(i,s);var p=Ce(s.value),m=s.type;if(p!=null)m==="number"?(p===0&&i.value===""||i.value!=p)&&(i.value=""+p):i.value!==""+p&&(i.value=""+p);else if(m==="submit"||m==="reset"){i.removeAttribute("value");return}s.hasOwnProperty("value")?ht(i,s.type,p):s.hasOwnProperty("defaultValue")&&ht(i,s.type,Ce(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(i.defaultChecked=!!s.defaultChecked)}function je(i,s,p){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var m=s.type;if(!(m!=="submit"&&m!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+i._wrapperState.initialValue,p||s===i.value||(i.value=s),i.defaultValue=s}p=i.name,p!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,p!==""&&(i.name=p)}function ht(i,s,p){(s!=="number"||Oe(i.ownerDocument)!==i)&&(p==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+p&&(i.defaultValue=""+p))}var We=Array.isArray;function ft(i,s,p,m){if(i=i.options,s){s={};for(var b=0;b<p.length;b++)s["$"+p[b]]=!0;for(p=0;p<i.length;p++)b=s.hasOwnProperty("$"+i[p].value),i[p].selected!==b&&(i[p].selected=b),b&&m&&(i[p].defaultSelected=!0)}else{for(p=""+Ce(p),s=null,b=0;b<i.length;b++){if(i[b].value===p){i[b].selected=!0,m&&(i[b].defaultSelected=!0);return}s!==null||i[b].disabled||(s=i[b])}s!==null&&(s.selected=!0)}}function Ue(i,s){if(s.dangerouslySetInnerHTML!=null)throw Error(r(91));return Q({},s,{value:void 0,defaultValue:void 0,children:""+i._wrapperState.initialValue})}function Gt(i,s){var p=s.value;if(p==null){if(p=s.children,s=s.defaultValue,p!=null){if(s!=null)throw Error(r(92));if(We(p)){if(1<p.length)throw Error(r(93));p=p[0]}s=p}s==null&&(s=""),p=s}i._wrapperState={initialValue:Ce(p)}}function Tt(i,s){var p=Ce(s.value),m=Ce(s.defaultValue);p!=null&&(p=""+p,p!==i.value&&(i.value=p),s.defaultValue==null&&i.defaultValue!==p&&(i.defaultValue=p)),m!=null&&(i.defaultValue=""+m)}function ue(i){var s=i.textContent;s===i._wrapperState.initialValue&&s!==""&&s!==null&&(i.value=s)}function be(i){switch(i){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Te(i,s){return i==null||i==="http://www.w3.org/1999/xhtml"?be(s):i==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":i}var Me,Ve=(function(i){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,p,m,b){MSApp.execUnsafeLocalFunction(function(){return i(s,p,m,b)})}:i})(function(i,s){if(i.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in i)i.innerHTML=s;else{for(Me=Me||document.createElement("div"),Me.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=Me.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;s.firstChild;)i.appendChild(s.firstChild)}});function Qe(i,s){if(s){var p=i.firstChild;if(p&&p===i.lastChild&&p.nodeType===3){p.nodeValue=s;return}}i.textContent=s}var oe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ke=["Webkit","ms","Moz","O"];Object.keys(oe).forEach(function(i){ke.forEach(function(s){s=s+i.charAt(0).toUpperCase()+i.substring(1),oe[s]=oe[i]})});function $e(i,s,p){return s==null||typeof s=="boolean"||s===""?"":p||typeof s!="number"||s===0||oe.hasOwnProperty(i)&&oe[i]?(""+s).trim():s+"px"}function Fe(i,s){i=i.style;for(var p in s)if(s.hasOwnProperty(p)){var m=p.indexOf("--")===0,b=$e(p,s[p],m);p==="float"&&(p="cssFloat"),m?i.setProperty(p,b):i[p]=b}}var xt=Q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Xt(i,s){if(s){if(xt[i]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(r(137,i));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(r(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(r(61))}if(s.style!=null&&typeof s.style!="object")throw Error(r(62))}}function dr(i,s){if(i.indexOf("-")===-1)return typeof s.is=="string";switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Fr=null;function on(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var fn=null,et=null,St=null;function Vt(i){if(i=_c(i)){if(typeof fn!="function")throw Error(r(280));var s=i.stateNode;s&&(s=$d(s),fn(i.stateNode,i.type,s))}}function br(i){et?St?St.push(i):St=[i]:et=i}function Hr(){if(et){var i=et,s=St;if(St=et=null,Vt(i),s)for(i=0;i<s.length;i++)Vt(s[i])}}function Pn(i,s){return i(s)}function Ct(){}var pr=!1;function qe(i,s,p){if(pr)return i(s,p);pr=!0;try{return Pn(i,s,p)}finally{pr=!1,(et!==null||St!==null)&&(Ct(),Hr())}}function ot(i,s){var p=i.stateNode;if(p===null)return null;var m=$d(p);if(m===null)return null;p=m[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(i=i.type,m=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!m;break e;default:i=!1}if(i)return null;if(p&&typeof p!="function")throw Error(r(231,s,typeof p));return p}var jt=!1;if(c)try{var Rt={};Object.defineProperty(Rt,"passive",{get:function(){jt=!0}}),window.addEventListener("test",Rt,Rt),window.removeEventListener("test",Rt,Rt)}catch{jt=!1}function Yt(i,s,p,m,b,T,O,te,ae){var ve=Array.prototype.slice.call(arguments,3);try{s.apply(p,ve)}catch(Ae){this.onError(Ae)}}var _r=!1,hn=null,Bn=!1,ci=null,Fo={onError:function(i){_r=!0,hn=i}};function Pr(i,s,p,m,b,T,O,te,ae){_r=!1,hn=null,Yt.apply(Fo,arguments)}function Lr(i,s,p,m,b,T,O,te,ae){if(Pr.apply(this,arguments),_r){if(_r){var ve=hn;_r=!1,hn=null}else throw Error(r(198));Bn||(Bn=!0,ci=ve)}}function mn(i){var s=i,p=i;if(i.alternate)for(;s.return;)s=s.return;else{i=s;do s=i,(s.flags&4098)!==0&&(p=s.return),i=s.return;while(i)}return s.tag===3?p:null}function Us(i){if(i.tag===13){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function ca(i){if(mn(i)!==i)throw Error(r(188))}function Vs(i){var s=i.alternate;if(!s){if(s=mn(i),s===null)throw Error(r(188));return s!==i?null:i}for(var p=i,m=s;;){var b=p.return;if(b===null)break;var T=b.alternate;if(T===null){if(m=b.return,m!==null){p=m;continue}break}if(b.child===T.child){for(T=b.child;T;){if(T===p)return ca(b),i;if(T===m)return ca(b),s;T=T.sibling}throw Error(r(188))}if(p.return!==m.return)p=b,m=T;else{for(var O=!1,te=b.child;te;){if(te===p){O=!0,p=b,m=T;break}if(te===m){O=!0,m=b,p=T;break}te=te.sibling}if(!O){for(te=T.child;te;){if(te===p){O=!0,p=T,m=b;break}if(te===m){O=!0,m=T,p=b;break}te=te.sibling}if(!O)throw Error(r(189))}}if(p.alternate!==m)throw Error(r(190))}if(p.tag!==3)throw Error(r(188));return p.stateNode.current===p?i:s}function we(i){return i=Vs(i),i!==null?xe(i):null}function xe(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var s=xe(i);if(s!==null)return s;i=i.sibling}return null}var tt=e.unstable_scheduleCallback,wt=e.unstable_cancelCallback,Pt=e.unstable_shouldYield,Or=e.unstable_requestPaint,It=e.unstable_now,ao=e.unstable_getCurrentPriorityLevel,ua=e.unstable_ImmediatePriority,hc=e.unstable_UserBlockingPriority,$i=e.unstable_NormalPriority,Ws=e.unstable_LowPriority,Ft=e.unstable_IdlePriority,so=null,Ur=null;function ts(i){if(Ur&&typeof Ur.onCommitFiberRoot=="function")try{Ur.onCommitFiberRoot(so,i,void 0,(i.current.flags&128)===128)}catch{}}var Ho=Math.clz32?Math.clz32:kk,Tk=Math.log,Ek=Math.LN2;function kk(i){return i>>>=0,i===0?32:31-(Tk(i)/Ek|0)|0}var bd=64,xd=4194304;function mc(i){switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function wd(i,s){var p=i.pendingLanes;if(p===0)return 0;var m=0,b=i.suspendedLanes,T=i.pingedLanes,O=p&268435455;if(O!==0){var te=O&~b;te!==0?m=mc(te):(T&=O,T!==0&&(m=mc(T)))}else O=p&~b,O!==0?m=mc(O):T!==0&&(m=mc(T));if(m===0)return 0;if(s!==0&&s!==m&&(s&b)===0&&(b=m&-m,T=s&-s,b>=T||b===16&&(T&4194240)!==0))return s;if((m&4)!==0&&(m|=p&16),s=i.entangledLanes,s!==0)for(i=i.entanglements,s&=m;0<s;)p=31-Ho(s),b=1<<p,m|=i[p],s&=~b;return m}function Pk(i,s){switch(i){case 1:case 2:case 4:return s+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function jk(i,s){for(var p=i.suspendedLanes,m=i.pingedLanes,b=i.expirationTimes,T=i.pendingLanes;0<T;){var O=31-Ho(T),te=1<<O,ae=b[O];ae===-1?((te&p)===0||(te&m)!==0)&&(b[O]=Pk(te,s)):ae<=s&&(i.expiredLanes|=te),T&=~te}}function Rh(i){return i=i.pendingLanes&-1073741825,i!==0?i:i&1073741824?1073741824:0}function bv(){var i=bd;return bd<<=1,(bd&4194240)===0&&(bd=64),i}function Ih(i){for(var s=[],p=0;31>p;p++)s.push(i);return s}function gc(i,s,p){i.pendingLanes|=s,s!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,s=31-Ho(s),i[s]=p}function Mk(i,s){var p=i.pendingLanes&~s;i.pendingLanes=s,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=s,i.mutableReadLanes&=s,i.entangledLanes&=s,s=i.entanglements;var m=i.eventTimes;for(i=i.expirationTimes;0<p;){var b=31-Ho(p),T=1<<b;s[b]=0,m[b]=-1,i[b]=-1,p&=~T}}function Ah(i,s){var p=i.entangledLanes|=s;for(i=i.entanglements;p;){var m=31-Ho(p),b=1<<m;b&s|i[m]&s&&(i[m]|=s),p&=~b}}var er=0;function xv(i){return i&=-i,1<i?4<i?(i&268435455)!==0?16:536870912:4:1}var wv,_h,Sv,Cv,Tv,Lh=!1,Sd=[],da=null,pa=null,fa=null,yc=new Map,vc=new Map,ha=[],Rk="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ev(i,s){switch(i){case"focusin":case"focusout":da=null;break;case"dragenter":case"dragleave":pa=null;break;case"mouseover":case"mouseout":fa=null;break;case"pointerover":case"pointerout":yc.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":vc.delete(s.pointerId)}}function bc(i,s,p,m,b,T){return i===null||i.nativeEvent!==T?(i={blockedOn:s,domEventName:p,eventSystemFlags:m,nativeEvent:T,targetContainers:[b]},s!==null&&(s=_c(s),s!==null&&_h(s)),i):(i.eventSystemFlags|=m,s=i.targetContainers,b!==null&&s.indexOf(b)===-1&&s.push(b),i)}function Ik(i,s,p,m,b){switch(s){case"focusin":return da=bc(da,i,s,p,m,b),!0;case"dragenter":return pa=bc(pa,i,s,p,m,b),!0;case"mouseover":return fa=bc(fa,i,s,p,m,b),!0;case"pointerover":var T=b.pointerId;return yc.set(T,bc(yc.get(T)||null,i,s,p,m,b)),!0;case"gotpointercapture":return T=b.pointerId,vc.set(T,bc(vc.get(T)||null,i,s,p,m,b)),!0}return!1}function kv(i){var s=rs(i.target);if(s!==null){var p=mn(s);if(p!==null){if(s=p.tag,s===13){if(s=Us(p),s!==null){i.blockedOn=s,Tv(i.priority,function(){Sv(p)});return}}else if(s===3&&p.stateNode.current.memoizedState.isDehydrated){i.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Cd(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var p=Nh(i.domEventName,i.eventSystemFlags,s[0],i.nativeEvent);if(p===null){p=i.nativeEvent;var m=new p.constructor(p.type,p);Fr=m,p.target.dispatchEvent(m),Fr=null}else return s=_c(p),s!==null&&_h(s),i.blockedOn=p,!1;s.shift()}return!0}function Pv(i,s,p){Cd(i)&&p.delete(s)}function Ak(){Lh=!1,da!==null&&Cd(da)&&(da=null),pa!==null&&Cd(pa)&&(pa=null),fa!==null&&Cd(fa)&&(fa=null),yc.forEach(Pv),vc.forEach(Pv)}function xc(i,s){i.blockedOn===s&&(i.blockedOn=null,Lh||(Lh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Ak)))}function wc(i){function s(b){return xc(b,i)}if(0<Sd.length){xc(Sd[0],i);for(var p=1;p<Sd.length;p++){var m=Sd[p];m.blockedOn===i&&(m.blockedOn=null)}}for(da!==null&&xc(da,i),pa!==null&&xc(pa,i),fa!==null&&xc(fa,i),yc.forEach(s),vc.forEach(s),p=0;p<ha.length;p++)m=ha[p],m.blockedOn===i&&(m.blockedOn=null);for(;0<ha.length&&(p=ha[0],p.blockedOn===null);)kv(p),p.blockedOn===null&&ha.shift()}var qs=E.ReactCurrentBatchConfig,Td=!0;function _k(i,s,p,m){var b=er,T=qs.transition;qs.transition=null;try{er=1,Oh(i,s,p,m)}finally{er=b,qs.transition=T}}function Lk(i,s,p,m){var b=er,T=qs.transition;qs.transition=null;try{er=4,Oh(i,s,p,m)}finally{er=b,qs.transition=T}}function Oh(i,s,p,m){if(Td){var b=Nh(i,s,p,m);if(b===null)Zh(i,s,m,Ed,p),Ev(i,m);else if(Ik(b,i,s,p,m))m.stopPropagation();else if(Ev(i,m),s&4&&-1<Rk.indexOf(i)){for(;b!==null;){var T=_c(b);if(T!==null&&wv(T),T=Nh(i,s,p,m),T===null&&Zh(i,s,m,Ed,p),T===b)break;b=T}b!==null&&m.stopPropagation()}else Zh(i,s,m,null,p)}}var Ed=null;function Nh(i,s,p,m){if(Ed=null,i=on(m),i=rs(i),i!==null)if(s=mn(i),s===null)i=null;else if(p=s.tag,p===13){if(i=Us(s),i!==null)return i;i=null}else if(p===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null);return Ed=i,null}function jv(i){switch(i){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ao()){case ua:return 1;case hc:return 4;case $i:case Ws:return 16;case Ft:return 536870912;default:return 16}default:return 16}}var ma=null,$h=null,kd=null;function Mv(){if(kd)return kd;var i,s=$h,p=s.length,m,b="value"in ma?ma.value:ma.textContent,T=b.length;for(i=0;i<p&&s[i]===b[i];i++);var O=p-i;for(m=1;m<=O&&s[p-m]===b[T-m];m++);return kd=b.slice(i,1<m?1-m:void 0)}function Pd(i){var s=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}function jd(){return!0}function Rv(){return!1}function lo(i){function s(p,m,b,T,O){this._reactName=p,this._targetInst=b,this.type=m,this.nativeEvent=T,this.target=O,this.currentTarget=null;for(var te in i)i.hasOwnProperty(te)&&(p=i[te],this[te]=p?p(T):T[te]);return this.isDefaultPrevented=(T.defaultPrevented!=null?T.defaultPrevented:T.returnValue===!1)?jd:Rv,this.isPropagationStopped=Rv,this}return Q(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=jd)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=jd)},persist:function(){},isPersistent:jd}),s}var Gs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bh=lo(Gs),Sc=Q({},Gs,{view:0,detail:0}),Ok=lo(Sc),zh,Dh,Cc,Md=Q({},Sc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hh,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==Cc&&(Cc&&i.type==="mousemove"?(zh=i.screenX-Cc.screenX,Dh=i.screenY-Cc.screenY):Dh=zh=0,Cc=i),zh)},movementY:function(i){return"movementY"in i?i.movementY:Dh}}),Iv=lo(Md),Nk=Q({},Md,{dataTransfer:0}),$k=lo(Nk),Bk=Q({},Sc,{relatedTarget:0}),Fh=lo(Bk),zk=Q({},Gs,{animationName:0,elapsedTime:0,pseudoElement:0}),Dk=lo(zk),Fk=Q({},Gs,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),Hk=lo(Fk),Uk=Q({},Gs,{data:0}),Av=lo(Uk),Vk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wk={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},qk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gk(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=qk[i])?!!s[i]:!1}function Hh(){return Gk}var Xk=Q({},Sc,{key:function(i){if(i.key){var s=Vk[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=Pd(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?Wk[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hh,charCode:function(i){return i.type==="keypress"?Pd(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Pd(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),Kk=lo(Xk),Qk=Q({},Md,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_v=lo(Qk),Yk=Q({},Sc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hh}),Jk=lo(Yk),Zk=Q({},Gs,{propertyName:0,elapsedTime:0,pseudoElement:0}),eP=lo(Zk),tP=Q({},Md,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),rP=lo(tP),nP=[9,13,27,32],Uh=c&&"CompositionEvent"in window,Tc=null;c&&"documentMode"in document&&(Tc=document.documentMode);var oP=c&&"TextEvent"in window&&!Tc,Lv=c&&(!Uh||Tc&&8<Tc&&11>=Tc),Ov=" ",Nv=!1;function $v(i,s){switch(i){case"keyup":return nP.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bv(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Xs=!1;function iP(i,s){switch(i){case"compositionend":return Bv(s);case"keypress":return s.which!==32?null:(Nv=!0,Ov);case"textInput":return i=s.data,i===Ov&&Nv?null:i;default:return null}}function aP(i,s){if(Xs)return i==="compositionend"||!Uh&&$v(i,s)?(i=Mv(),kd=$h=ma=null,Xs=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return Lv&&s.locale!=="ko"?null:s.data;default:return null}}var sP={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function zv(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!sP[i.type]:s==="textarea"}function Dv(i,s,p,m){br(m),s=Ld(s,"onChange"),0<s.length&&(p=new Bh("onChange","change",null,p,m),i.push({event:p,listeners:s}))}var Ec=null,kc=null;function lP(i){ob(i,0)}function Rd(i){var s=Zs(i);if(Ne(s))return i}function cP(i,s){if(i==="change")return s}var Fv=!1;if(c){var Vh;if(c){var Wh="oninput"in document;if(!Wh){var Hv=document.createElement("div");Hv.setAttribute("oninput","return;"),Wh=typeof Hv.oninput=="function"}Vh=Wh}else Vh=!1;Fv=Vh&&(!document.documentMode||9<document.documentMode)}function Uv(){Ec&&(Ec.detachEvent("onpropertychange",Vv),kc=Ec=null)}function Vv(i){if(i.propertyName==="value"&&Rd(kc)){var s=[];Dv(s,kc,i,on(i)),qe(lP,s)}}function uP(i,s,p){i==="focusin"?(Uv(),Ec=s,kc=p,Ec.attachEvent("onpropertychange",Vv)):i==="focusout"&&Uv()}function dP(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Rd(kc)}function pP(i,s){if(i==="click")return Rd(s)}function fP(i,s){if(i==="input"||i==="change")return Rd(s)}function hP(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var Uo=typeof Object.is=="function"?Object.is:hP;function Pc(i,s){if(Uo(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;var p=Object.keys(i),m=Object.keys(s);if(p.length!==m.length)return!1;for(m=0;m<p.length;m++){var b=p[m];if(!u.call(s,b)||!Uo(i[b],s[b]))return!1}return!0}function Wv(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function qv(i,s){var p=Wv(i);i=0;for(var m;p;){if(p.nodeType===3){if(m=i+p.textContent.length,i<=s&&m>=s)return{node:p,offset:s-i};i=m}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=Wv(p)}}function Gv(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?Gv(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function Xv(){for(var i=window,s=Oe();s instanceof i.HTMLIFrameElement;){try{var p=typeof s.contentWindow.location.href=="string"}catch{p=!1}if(p)i=s.contentWindow;else break;s=Oe(i.document)}return s}function qh(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}function mP(i){var s=Xv(),p=i.focusedElem,m=i.selectionRange;if(s!==p&&p&&p.ownerDocument&&Gv(p.ownerDocument.documentElement,p)){if(m!==null&&qh(p)){if(s=m.start,i=m.end,i===void 0&&(i=s),"selectionStart"in p)p.selectionStart=s,p.selectionEnd=Math.min(i,p.value.length);else if(i=(s=p.ownerDocument||document)&&s.defaultView||window,i.getSelection){i=i.getSelection();var b=p.textContent.length,T=Math.min(m.start,b);m=m.end===void 0?T:Math.min(m.end,b),!i.extend&&T>m&&(b=m,m=T,T=b),b=qv(p,T);var O=qv(p,m);b&&O&&(i.rangeCount!==1||i.anchorNode!==b.node||i.anchorOffset!==b.offset||i.focusNode!==O.node||i.focusOffset!==O.offset)&&(s=s.createRange(),s.setStart(b.node,b.offset),i.removeAllRanges(),T>m?(i.addRange(s),i.extend(O.node,O.offset)):(s.setEnd(O.node,O.offset),i.addRange(s)))}}for(s=[],i=p;i=i.parentNode;)i.nodeType===1&&s.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<s.length;p++)i=s[p],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var gP=c&&"documentMode"in document&&11>=document.documentMode,Ks=null,Gh=null,jc=null,Xh=!1;function Kv(i,s,p){var m=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;Xh||Ks==null||Ks!==Oe(m)||(m=Ks,"selectionStart"in m&&qh(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),jc&&Pc(jc,m)||(jc=m,m=Ld(Gh,"onSelect"),0<m.length&&(s=new Bh("onSelect","select",null,s,p),i.push({event:s,listeners:m}),s.target=Ks)))}function Id(i,s){var p={};return p[i.toLowerCase()]=s.toLowerCase(),p["Webkit"+i]="webkit"+s,p["Moz"+i]="moz"+s,p}var Qs={animationend:Id("Animation","AnimationEnd"),animationiteration:Id("Animation","AnimationIteration"),animationstart:Id("Animation","AnimationStart"),transitionend:Id("Transition","TransitionEnd")},Kh={},Qv={};c&&(Qv=document.createElement("div").style,"AnimationEvent"in window||(delete Qs.animationend.animation,delete Qs.animationiteration.animation,delete Qs.animationstart.animation),"TransitionEvent"in window||delete Qs.transitionend.transition);function Ad(i){if(Kh[i])return Kh[i];if(!Qs[i])return i;var s=Qs[i],p;for(p in s)if(s.hasOwnProperty(p)&&p in Qv)return Kh[i]=s[p];return i}var Yv=Ad("animationend"),Jv=Ad("animationiteration"),Zv=Ad("animationstart"),eb=Ad("transitionend"),tb=new Map,rb="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ga(i,s){tb.set(i,s),a(s,[i])}for(var Qh=0;Qh<rb.length;Qh++){var Yh=rb[Qh],yP=Yh.toLowerCase(),vP=Yh[0].toUpperCase()+Yh.slice(1);ga(yP,"on"+vP)}ga(Yv,"onAnimationEnd"),ga(Jv,"onAnimationIteration"),ga(Zv,"onAnimationStart"),ga("dblclick","onDoubleClick"),ga("focusin","onFocus"),ga("focusout","onBlur"),ga(eb,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),bP=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mc));function nb(i,s,p){var m=i.type||"unknown-event";i.currentTarget=p,Lr(m,s,void 0,i),i.currentTarget=null}function ob(i,s){s=(s&4)!==0;for(var p=0;p<i.length;p++){var m=i[p],b=m.event;m=m.listeners;e:{var T=void 0;if(s)for(var O=m.length-1;0<=O;O--){var te=m[O],ae=te.instance,ve=te.currentTarget;if(te=te.listener,ae!==T&&b.isPropagationStopped())break e;nb(b,te,ve),T=ae}else for(O=0;O<m.length;O++){if(te=m[O],ae=te.instance,ve=te.currentTarget,te=te.listener,ae!==T&&b.isPropagationStopped())break e;nb(b,te,ve),T=ae}}}if(Bn)throw i=ci,Bn=!1,ci=null,i}function fr(i,s){var p=s[im];p===void 0&&(p=s[im]=new Set);var m=i+"__bubble";p.has(m)||(ib(s,i,2,!1),p.add(m))}function Jh(i,s,p){var m=0;s&&(m|=4),ib(p,i,m,s)}var _d="_reactListening"+Math.random().toString(36).slice(2);function Rc(i){if(!i[_d]){i[_d]=!0,n.forEach(function(p){p!=="selectionchange"&&(bP.has(p)||Jh(p,!1,i),Jh(p,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[_d]||(s[_d]=!0,Jh("selectionchange",!1,s))}}function ib(i,s,p,m){switch(jv(s)){case 1:var b=_k;break;case 4:b=Lk;break;default:b=Oh}p=b.bind(null,s,p,i),b=void 0,!jt||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(b=!0),m?b!==void 0?i.addEventListener(s,p,{capture:!0,passive:b}):i.addEventListener(s,p,!0):b!==void 0?i.addEventListener(s,p,{passive:b}):i.addEventListener(s,p,!1)}function Zh(i,s,p,m,b){var T=m;if((s&1)===0&&(s&2)===0&&m!==null)e:for(;;){if(m===null)return;var O=m.tag;if(O===3||O===4){var te=m.stateNode.containerInfo;if(te===b||te.nodeType===8&&te.parentNode===b)break;if(O===4)for(O=m.return;O!==null;){var ae=O.tag;if((ae===3||ae===4)&&(ae=O.stateNode.containerInfo,ae===b||ae.nodeType===8&&ae.parentNode===b))return;O=O.return}for(;te!==null;){if(O=rs(te),O===null)return;if(ae=O.tag,ae===5||ae===6){m=T=O;continue e}te=te.parentNode}}m=m.return}qe(function(){var ve=T,Ae=on(p),Le=[];e:{var Re=tb.get(i);if(Re!==void 0){var rt=Bh,lt=i;switch(i){case"keypress":if(Pd(p)===0)break e;case"keydown":case"keyup":rt=Kk;break;case"focusin":lt="focus",rt=Fh;break;case"focusout":lt="blur",rt=Fh;break;case"beforeblur":case"afterblur":rt=Fh;break;case"click":if(p.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":rt=Iv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":rt=$k;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":rt=Jk;break;case Yv:case Jv:case Zv:rt=Dk;break;case eb:rt=eP;break;case"scroll":rt=Ok;break;case"wheel":rt=rP;break;case"copy":case"cut":case"paste":rt=Hk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":rt=_v}var ct=(s&4)!==0,jr=!ct&&i==="scroll",pe=ct?Re!==null?Re+"Capture":null:Re;ct=[];for(var le=ve,he;le!==null;){he=le;var ze=he.stateNode;if(he.tag===5&&ze!==null&&(he=ze,pe!==null&&(ze=ot(le,pe),ze!=null&&ct.push(Ic(le,ze,he)))),jr)break;le=le.return}0<ct.length&&(Re=new rt(Re,lt,null,p,Ae),Le.push({event:Re,listeners:ct}))}}if((s&7)===0){e:{if(Re=i==="mouseover"||i==="pointerover",rt=i==="mouseout"||i==="pointerout",Re&&p!==Fr&&(lt=p.relatedTarget||p.fromElement)&&(rs(lt)||lt[Bi]))break e;if((rt||Re)&&(Re=Ae.window===Ae?Ae:(Re=Ae.ownerDocument)?Re.defaultView||Re.parentWindow:window,rt?(lt=p.relatedTarget||p.toElement,rt=ve,lt=lt?rs(lt):null,lt!==null&&(jr=mn(lt),lt!==jr||lt.tag!==5&&lt.tag!==6)&&(lt=null)):(rt=null,lt=ve),rt!==lt)){if(ct=Iv,ze="onMouseLeave",pe="onMouseEnter",le="mouse",(i==="pointerout"||i==="pointerover")&&(ct=_v,ze="onPointerLeave",pe="onPointerEnter",le="pointer"),jr=rt==null?Re:Zs(rt),he=lt==null?Re:Zs(lt),Re=new ct(ze,le+"leave",rt,p,Ae),Re.target=jr,Re.relatedTarget=he,ze=null,rs(Ae)===ve&&(ct=new ct(pe,le+"enter",lt,p,Ae),ct.target=he,ct.relatedTarget=jr,ze=ct),jr=ze,rt&&lt)t:{for(ct=rt,pe=lt,le=0,he=ct;he;he=Ys(he))le++;for(he=0,ze=pe;ze;ze=Ys(ze))he++;for(;0<le-he;)ct=Ys(ct),le--;for(;0<he-le;)pe=Ys(pe),he--;for(;le--;){if(ct===pe||pe!==null&&ct===pe.alternate)break t;ct=Ys(ct),pe=Ys(pe)}ct=null}else ct=null;rt!==null&&ab(Le,Re,rt,ct,!1),lt!==null&&jr!==null&&ab(Le,jr,lt,ct,!0)}}e:{if(Re=ve?Zs(ve):window,rt=Re.nodeName&&Re.nodeName.toLowerCase(),rt==="select"||rt==="input"&&Re.type==="file")var dt=cP;else if(zv(Re))if(Fv)dt=fP;else{dt=dP;var gt=uP}else(rt=Re.nodeName)&&rt.toLowerCase()==="input"&&(Re.type==="checkbox"||Re.type==="radio")&&(dt=pP);if(dt&&(dt=dt(i,ve))){Dv(Le,dt,p,Ae);break e}gt&&gt(i,Re,ve),i==="focusout"&&(gt=Re._wrapperState)&&gt.controlled&&Re.type==="number"&&ht(Re,"number",Re.value)}switch(gt=ve?Zs(ve):window,i){case"focusin":(zv(gt)||gt.contentEditable==="true")&&(Ks=gt,Gh=ve,jc=null);break;case"focusout":jc=Gh=Ks=null;break;case"mousedown":Xh=!0;break;case"contextmenu":case"mouseup":case"dragend":Xh=!1,Kv(Le,p,Ae);break;case"selectionchange":if(gP)break;case"keydown":case"keyup":Kv(Le,p,Ae)}var yt;if(Uh)e:{switch(i){case"compositionstart":var Et="onCompositionStart";break e;case"compositionend":Et="onCompositionEnd";break e;case"compositionupdate":Et="onCompositionUpdate";break e}Et=void 0}else Xs?$v(i,p)&&(Et="onCompositionEnd"):i==="keydown"&&p.keyCode===229&&(Et="onCompositionStart");Et&&(Lv&&p.locale!=="ko"&&(Xs||Et!=="onCompositionStart"?Et==="onCompositionEnd"&&Xs&&(yt=Mv()):(ma=Ae,$h="value"in ma?ma.value:ma.textContent,Xs=!0)),gt=Ld(ve,Et),0<gt.length&&(Et=new Av(Et,i,null,p,Ae),Le.push({event:Et,listeners:gt}),yt?Et.data=yt:(yt=Bv(p),yt!==null&&(Et.data=yt)))),(yt=oP?iP(i,p):aP(i,p))&&(ve=Ld(ve,"onBeforeInput"),0<ve.length&&(Ae=new Av("onBeforeInput","beforeinput",null,p,Ae),Le.push({event:Ae,listeners:ve}),Ae.data=yt))}ob(Le,s)})}function Ic(i,s,p){return{instance:i,listener:s,currentTarget:p}}function Ld(i,s){for(var p=s+"Capture",m=[];i!==null;){var b=i,T=b.stateNode;b.tag===5&&T!==null&&(b=T,T=ot(i,p),T!=null&&m.unshift(Ic(i,T,b)),T=ot(i,s),T!=null&&m.push(Ic(i,T,b))),i=i.return}return m}function Ys(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5);return i||null}function ab(i,s,p,m,b){for(var T=s._reactName,O=[];p!==null&&p!==m;){var te=p,ae=te.alternate,ve=te.stateNode;if(ae!==null&&ae===m)break;te.tag===5&&ve!==null&&(te=ve,b?(ae=ot(p,T),ae!=null&&O.unshift(Ic(p,ae,te))):b||(ae=ot(p,T),ae!=null&&O.push(Ic(p,ae,te)))),p=p.return}O.length!==0&&i.push({event:s,listeners:O})}var xP=/\r\n?/g,wP=/\u0000|\uFFFD/g;function sb(i){return(typeof i=="string"?i:""+i).replace(xP,`
38
- `).replace(wP,"")}function Od(i,s,p){if(s=sb(s),sb(i)!==s&&p)throw Error(r(425))}function Nd(){}var em=null,tm=null;function rm(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var nm=typeof setTimeout=="function"?setTimeout:void 0,SP=typeof clearTimeout=="function"?clearTimeout:void 0,lb=typeof Promise=="function"?Promise:void 0,CP=typeof queueMicrotask=="function"?queueMicrotask:typeof lb<"u"?function(i){return lb.resolve(null).then(i).catch(TP)}:nm;function TP(i){setTimeout(function(){throw i})}function om(i,s){var p=s,m=0;do{var b=p.nextSibling;if(i.removeChild(p),b&&b.nodeType===8)if(p=b.data,p==="/$"){if(m===0){i.removeChild(b),wc(s);return}m--}else p!=="$"&&p!=="$?"&&p!=="$!"||m++;p=b}while(p);wc(s)}function ya(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return i}function cb(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var p=i.data;if(p==="$"||p==="$!"||p==="$?"){if(s===0)return i;s--}else p==="/$"&&s++}i=i.previousSibling}return null}var Js=Math.random().toString(36).slice(2),ui="__reactFiber$"+Js,Ac="__reactProps$"+Js,Bi="__reactContainer$"+Js,im="__reactEvents$"+Js,EP="__reactListeners$"+Js,kP="__reactHandles$"+Js;function rs(i){var s=i[ui];if(s)return s;for(var p=i.parentNode;p;){if(s=p[Bi]||p[ui]){if(p=s.alternate,s.child!==null||p!==null&&p.child!==null)for(i=cb(i);i!==null;){if(p=i[ui])return p;i=cb(i)}return s}i=p,p=i.parentNode}return null}function _c(i){return i=i[ui]||i[Bi],!i||i.tag!==5&&i.tag!==6&&i.tag!==13&&i.tag!==3?null:i}function Zs(i){if(i.tag===5||i.tag===6)return i.stateNode;throw Error(r(33))}function $d(i){return i[Ac]||null}var am=[],el=-1;function va(i){return{current:i}}function hr(i){0>el||(i.current=am[el],am[el]=null,el--)}function cr(i,s){el++,am[el]=i.current,i.current=s}var ba={},gn=va(ba),zn=va(!1),ns=ba;function tl(i,s){var p=i.type.contextTypes;if(!p)return ba;var m=i.stateNode;if(m&&m.__reactInternalMemoizedUnmaskedChildContext===s)return m.__reactInternalMemoizedMaskedChildContext;var b={},T;for(T in p)b[T]=s[T];return m&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=s,i.__reactInternalMemoizedMaskedChildContext=b),b}function Dn(i){return i=i.childContextTypes,i!=null}function Bd(){hr(zn),hr(gn)}function ub(i,s,p){if(gn.current!==ba)throw Error(r(168));cr(gn,s),cr(zn,p)}function db(i,s,p){var m=i.stateNode;if(s=s.childContextTypes,typeof m.getChildContext!="function")return p;m=m.getChildContext();for(var b in m)if(!(b in s))throw Error(r(108,de(i)||"Unknown",b));return Q({},p,m)}function zd(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||ba,ns=gn.current,cr(gn,i),cr(zn,zn.current),!0}function pb(i,s,p){var m=i.stateNode;if(!m)throw Error(r(169));p?(i=db(i,s,ns),m.__reactInternalMemoizedMergedChildContext=i,hr(zn),hr(gn),cr(gn,i)):hr(zn),cr(zn,p)}var zi=null,Dd=!1,sm=!1;function fb(i){zi===null?zi=[i]:zi.push(i)}function PP(i){Dd=!0,fb(i)}function xa(){if(!sm&&zi!==null){sm=!0;var i=0,s=er;try{var p=zi;for(er=1;i<p.length;i++){var m=p[i];do m=m(!0);while(m!==null)}zi=null,Dd=!1}catch(b){throw zi!==null&&(zi=zi.slice(i+1)),tt(ua,xa),b}finally{er=s,sm=!1}}return null}var rl=[],nl=0,Fd=null,Hd=0,So=[],Co=0,os=null,Di=1,Fi="";function is(i,s){rl[nl++]=Hd,rl[nl++]=Fd,Fd=i,Hd=s}function hb(i,s,p){So[Co++]=Di,So[Co++]=Fi,So[Co++]=os,os=i;var m=Di;i=Fi;var b=32-Ho(m)-1;m&=~(1<<b),p+=1;var T=32-Ho(s)+b;if(30<T){var O=b-b%5;T=(m&(1<<O)-1).toString(32),m>>=O,b-=O,Di=1<<32-Ho(s)+b|p<<b|m,Fi=T+i}else Di=1<<T|p<<b|m,Fi=i}function lm(i){i.return!==null&&(is(i,1),hb(i,1,0))}function cm(i){for(;i===Fd;)Fd=rl[--nl],rl[nl]=null,Hd=rl[--nl],rl[nl]=null;for(;i===os;)os=So[--Co],So[Co]=null,Fi=So[--Co],So[Co]=null,Di=So[--Co],So[Co]=null}var co=null,uo=null,yr=!1,Vo=null;function mb(i,s){var p=Po(5,null,null,0);p.elementType="DELETED",p.stateNode=s,p.return=i,s=i.deletions,s===null?(i.deletions=[p],i.flags|=16):s.push(p)}function gb(i,s){switch(i.tag){case 5:var p=i.type;return s=s.nodeType!==1||p.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(i.stateNode=s,co=i,uo=ya(s.firstChild),!0):!1;case 6:return s=i.pendingProps===""||s.nodeType!==3?null:s,s!==null?(i.stateNode=s,co=i,uo=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(p=os!==null?{id:Di,overflow:Fi}:null,i.memoizedState={dehydrated:s,treeContext:p,retryLane:1073741824},p=Po(18,null,null,0),p.stateNode=s,p.return=i,i.child=p,co=i,uo=null,!0):!1;default:return!1}}function um(i){return(i.mode&1)!==0&&(i.flags&128)===0}function dm(i){if(yr){var s=uo;if(s){var p=s;if(!gb(i,s)){if(um(i))throw Error(r(418));s=ya(p.nextSibling);var m=co;s&&gb(i,s)?mb(m,p):(i.flags=i.flags&-4097|2,yr=!1,co=i)}}else{if(um(i))throw Error(r(418));i.flags=i.flags&-4097|2,yr=!1,co=i}}}function yb(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;co=i}function Ud(i){if(i!==co)return!1;if(!yr)return yb(i),yr=!0,!1;var s;if((s=i.tag!==3)&&!(s=i.tag!==5)&&(s=i.type,s=s!=="head"&&s!=="body"&&!rm(i.type,i.memoizedProps)),s&&(s=uo)){if(um(i))throw vb(),Error(r(418));for(;s;)mb(i,s),s=ya(s.nextSibling)}if(yb(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,s=0;i;){if(i.nodeType===8){var p=i.data;if(p==="/$"){if(s===0){uo=ya(i.nextSibling);break e}s--}else p!=="$"&&p!=="$!"&&p!=="$?"||s++}i=i.nextSibling}uo=null}}else uo=co?ya(i.stateNode.nextSibling):null;return!0}function vb(){for(var i=uo;i;)i=ya(i.nextSibling)}function ol(){uo=co=null,yr=!1}function pm(i){Vo===null?Vo=[i]:Vo.push(i)}var jP=E.ReactCurrentBatchConfig;function Lc(i,s,p){if(i=p.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(p._owner){if(p=p._owner,p){if(p.tag!==1)throw Error(r(309));var m=p.stateNode}if(!m)throw Error(r(147,i));var b=m,T=""+i;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===T?s.ref:(s=function(O){var te=b.refs;O===null?delete te[T]:te[T]=O},s._stringRef=T,s)}if(typeof i!="string")throw Error(r(284));if(!p._owner)throw Error(r(290,i))}return i}function Vd(i,s){throw i=Object.prototype.toString.call(s),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i))}function bb(i){var s=i._init;return s(i._payload)}function xb(i){function s(pe,le){if(i){var he=pe.deletions;he===null?(pe.deletions=[le],pe.flags|=16):he.push(le)}}function p(pe,le){if(!i)return null;for(;le!==null;)s(pe,le),le=le.sibling;return null}function m(pe,le){for(pe=new Map;le!==null;)le.key!==null?pe.set(le.key,le):pe.set(le.index,le),le=le.sibling;return pe}function b(pe,le){return pe=ja(pe,le),pe.index=0,pe.sibling=null,pe}function T(pe,le,he){return pe.index=he,i?(he=pe.alternate,he!==null?(he=he.index,he<le?(pe.flags|=2,le):he):(pe.flags|=2,le)):(pe.flags|=1048576,le)}function O(pe){return i&&pe.alternate===null&&(pe.flags|=2),pe}function te(pe,le,he,ze){return le===null||le.tag!==6?(le=ng(he,pe.mode,ze),le.return=pe,le):(le=b(le,he),le.return=pe,le)}function ae(pe,le,he,ze){var dt=he.type;return dt===F?Ae(pe,le,he.props.children,ze,he.key):le!==null&&(le.elementType===dt||typeof dt=="object"&&dt!==null&&dt.$$typeof===W&&bb(dt)===le.type)?(ze=b(le,he.props),ze.ref=Lc(pe,le,he),ze.return=pe,ze):(ze=hp(he.type,he.key,he.props,null,pe.mode,ze),ze.ref=Lc(pe,le,he),ze.return=pe,ze)}function ve(pe,le,he,ze){return le===null||le.tag!==4||le.stateNode.containerInfo!==he.containerInfo||le.stateNode.implementation!==he.implementation?(le=og(he,pe.mode,ze),le.return=pe,le):(le=b(le,he.children||[]),le.return=pe,le)}function Ae(pe,le,he,ze,dt){return le===null||le.tag!==7?(le=fs(he,pe.mode,ze,dt),le.return=pe,le):(le=b(le,he),le.return=pe,le)}function Le(pe,le,he){if(typeof le=="string"&&le!==""||typeof le=="number")return le=ng(""+le,pe.mode,he),le.return=pe,le;if(typeof le=="object"&&le!==null){switch(le.$$typeof){case R:return he=hp(le.type,le.key,le.props,null,pe.mode,he),he.ref=Lc(pe,null,le),he.return=pe,he;case I:return le=og(le,pe.mode,he),le.return=pe,le;case W:var ze=le._init;return Le(pe,ze(le._payload),he)}if(We(le)||Z(le))return le=fs(le,pe.mode,he,null),le.return=pe,le;Vd(pe,le)}return null}function Re(pe,le,he,ze){var dt=le!==null?le.key:null;if(typeof he=="string"&&he!==""||typeof he=="number")return dt!==null?null:te(pe,le,""+he,ze);if(typeof he=="object"&&he!==null){switch(he.$$typeof){case R:return he.key===dt?ae(pe,le,he,ze):null;case I:return he.key===dt?ve(pe,le,he,ze):null;case W:return dt=he._init,Re(pe,le,dt(he._payload),ze)}if(We(he)||Z(he))return dt!==null?null:Ae(pe,le,he,ze,null);Vd(pe,he)}return null}function rt(pe,le,he,ze,dt){if(typeof ze=="string"&&ze!==""||typeof ze=="number")return pe=pe.get(he)||null,te(le,pe,""+ze,dt);if(typeof ze=="object"&&ze!==null){switch(ze.$$typeof){case R:return pe=pe.get(ze.key===null?he:ze.key)||null,ae(le,pe,ze,dt);case I:return pe=pe.get(ze.key===null?he:ze.key)||null,ve(le,pe,ze,dt);case W:var gt=ze._init;return rt(pe,le,he,gt(ze._payload),dt)}if(We(ze)||Z(ze))return pe=pe.get(he)||null,Ae(le,pe,ze,dt,null);Vd(le,ze)}return null}function lt(pe,le,he,ze){for(var dt=null,gt=null,yt=le,Et=le=0,Yr=null;yt!==null&&Et<he.length;Et++){yt.index>Et?(Yr=yt,yt=null):Yr=yt.sibling;var Wt=Re(pe,yt,he[Et],ze);if(Wt===null){yt===null&&(yt=Yr);break}i&&yt&&Wt.alternate===null&&s(pe,yt),le=T(Wt,le,Et),gt===null?dt=Wt:gt.sibling=Wt,gt=Wt,yt=Yr}if(Et===he.length)return p(pe,yt),yr&&is(pe,Et),dt;if(yt===null){for(;Et<he.length;Et++)yt=Le(pe,he[Et],ze),yt!==null&&(le=T(yt,le,Et),gt===null?dt=yt:gt.sibling=yt,gt=yt);return yr&&is(pe,Et),dt}for(yt=m(pe,yt);Et<he.length;Et++)Yr=rt(yt,pe,Et,he[Et],ze),Yr!==null&&(i&&Yr.alternate!==null&&yt.delete(Yr.key===null?Et:Yr.key),le=T(Yr,le,Et),gt===null?dt=Yr:gt.sibling=Yr,gt=Yr);return i&&yt.forEach(function(Ma){return s(pe,Ma)}),yr&&is(pe,Et),dt}function ct(pe,le,he,ze){var dt=Z(he);if(typeof dt!="function")throw Error(r(150));if(he=dt.call(he),he==null)throw Error(r(151));for(var gt=dt=null,yt=le,Et=le=0,Yr=null,Wt=he.next();yt!==null&&!Wt.done;Et++,Wt=he.next()){yt.index>Et?(Yr=yt,yt=null):Yr=yt.sibling;var Ma=Re(pe,yt,Wt.value,ze);if(Ma===null){yt===null&&(yt=Yr);break}i&&yt&&Ma.alternate===null&&s(pe,yt),le=T(Ma,le,Et),gt===null?dt=Ma:gt.sibling=Ma,gt=Ma,yt=Yr}if(Wt.done)return p(pe,yt),yr&&is(pe,Et),dt;if(yt===null){for(;!Wt.done;Et++,Wt=he.next())Wt=Le(pe,Wt.value,ze),Wt!==null&&(le=T(Wt,le,Et),gt===null?dt=Wt:gt.sibling=Wt,gt=Wt);return yr&&is(pe,Et),dt}for(yt=m(pe,yt);!Wt.done;Et++,Wt=he.next())Wt=rt(yt,pe,Et,Wt.value,ze),Wt!==null&&(i&&Wt.alternate!==null&&yt.delete(Wt.key===null?Et:Wt.key),le=T(Wt,le,Et),gt===null?dt=Wt:gt.sibling=Wt,gt=Wt);return i&&yt.forEach(function(s4){return s(pe,s4)}),yr&&is(pe,Et),dt}function jr(pe,le,he,ze){if(typeof he=="object"&&he!==null&&he.type===F&&he.key===null&&(he=he.props.children),typeof he=="object"&&he!==null){switch(he.$$typeof){case R:e:{for(var dt=he.key,gt=le;gt!==null;){if(gt.key===dt){if(dt=he.type,dt===F){if(gt.tag===7){p(pe,gt.sibling),le=b(gt,he.props.children),le.return=pe,pe=le;break e}}else if(gt.elementType===dt||typeof dt=="object"&&dt!==null&&dt.$$typeof===W&&bb(dt)===gt.type){p(pe,gt.sibling),le=b(gt,he.props),le.ref=Lc(pe,gt,he),le.return=pe,pe=le;break e}p(pe,gt);break}else s(pe,gt);gt=gt.sibling}he.type===F?(le=fs(he.props.children,pe.mode,ze,he.key),le.return=pe,pe=le):(ze=hp(he.type,he.key,he.props,null,pe.mode,ze),ze.ref=Lc(pe,le,he),ze.return=pe,pe=ze)}return O(pe);case I:e:{for(gt=he.key;le!==null;){if(le.key===gt)if(le.tag===4&&le.stateNode.containerInfo===he.containerInfo&&le.stateNode.implementation===he.implementation){p(pe,le.sibling),le=b(le,he.children||[]),le.return=pe,pe=le;break e}else{p(pe,le);break}else s(pe,le);le=le.sibling}le=og(he,pe.mode,ze),le.return=pe,pe=le}return O(pe);case W:return gt=he._init,jr(pe,le,gt(he._payload),ze)}if(We(he))return lt(pe,le,he,ze);if(Z(he))return ct(pe,le,he,ze);Vd(pe,he)}return typeof he=="string"&&he!==""||typeof he=="number"?(he=""+he,le!==null&&le.tag===6?(p(pe,le.sibling),le=b(le,he),le.return=pe,pe=le):(p(pe,le),le=ng(he,pe.mode,ze),le.return=pe,pe=le),O(pe)):p(pe,le)}return jr}var il=xb(!0),wb=xb(!1),Wd=va(null),qd=null,al=null,fm=null;function hm(){fm=al=qd=null}function mm(i){var s=Wd.current;hr(Wd),i._currentValue=s}function gm(i,s,p){for(;i!==null;){var m=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,m!==null&&(m.childLanes|=s)):m!==null&&(m.childLanes&s)!==s&&(m.childLanes|=s),i===p)break;i=i.return}}function sl(i,s){qd=i,fm=al=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&s)!==0&&(Fn=!0),i.firstContext=null)}function To(i){var s=i._currentValue;if(fm!==i)if(i={context:i,memoizedValue:s,next:null},al===null){if(qd===null)throw Error(r(308));al=i,qd.dependencies={lanes:0,firstContext:i}}else al=al.next=i;return s}var as=null;function ym(i){as===null?as=[i]:as.push(i)}function Sb(i,s,p,m){var b=s.interleaved;return b===null?(p.next=p,ym(s)):(p.next=b.next,b.next=p),s.interleaved=p,Hi(i,m)}function Hi(i,s){i.lanes|=s;var p=i.alternate;for(p!==null&&(p.lanes|=s),p=i,i=i.return;i!==null;)i.childLanes|=s,p=i.alternate,p!==null&&(p.childLanes|=s),p=i,i=i.return;return p.tag===3?p.stateNode:null}var wa=!1;function vm(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Cb(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function Ui(i,s){return{eventTime:i,lane:s,tag:0,payload:null,callback:null,next:null}}function Sa(i,s,p){var m=i.updateQueue;if(m===null)return null;if(m=m.shared,(Ht&2)!==0){var b=m.pending;return b===null?s.next=s:(s.next=b.next,b.next=s),m.pending=s,Hi(i,p)}return b=m.interleaved,b===null?(s.next=s,ym(m)):(s.next=b.next,b.next=s),m.interleaved=s,Hi(i,p)}function Gd(i,s,p){if(s=s.updateQueue,s!==null&&(s=s.shared,(p&4194240)!==0)){var m=s.lanes;m&=i.pendingLanes,p|=m,s.lanes=p,Ah(i,p)}}function Tb(i,s){var p=i.updateQueue,m=i.alternate;if(m!==null&&(m=m.updateQueue,p===m)){var b=null,T=null;if(p=p.firstBaseUpdate,p!==null){do{var O={eventTime:p.eventTime,lane:p.lane,tag:p.tag,payload:p.payload,callback:p.callback,next:null};T===null?b=T=O:T=T.next=O,p=p.next}while(p!==null);T===null?b=T=s:T=T.next=s}else b=T=s;p={baseState:m.baseState,firstBaseUpdate:b,lastBaseUpdate:T,shared:m.shared,effects:m.effects},i.updateQueue=p;return}i=p.lastBaseUpdate,i===null?p.firstBaseUpdate=s:i.next=s,p.lastBaseUpdate=s}function Xd(i,s,p,m){var b=i.updateQueue;wa=!1;var T=b.firstBaseUpdate,O=b.lastBaseUpdate,te=b.shared.pending;if(te!==null){b.shared.pending=null;var ae=te,ve=ae.next;ae.next=null,O===null?T=ve:O.next=ve,O=ae;var Ae=i.alternate;Ae!==null&&(Ae=Ae.updateQueue,te=Ae.lastBaseUpdate,te!==O&&(te===null?Ae.firstBaseUpdate=ve:te.next=ve,Ae.lastBaseUpdate=ae))}if(T!==null){var Le=b.baseState;O=0,Ae=ve=ae=null,te=T;do{var Re=te.lane,rt=te.eventTime;if((m&Re)===Re){Ae!==null&&(Ae=Ae.next={eventTime:rt,lane:0,tag:te.tag,payload:te.payload,callback:te.callback,next:null});e:{var lt=i,ct=te;switch(Re=s,rt=p,ct.tag){case 1:if(lt=ct.payload,typeof lt=="function"){Le=lt.call(rt,Le,Re);break e}Le=lt;break e;case 3:lt.flags=lt.flags&-65537|128;case 0:if(lt=ct.payload,Re=typeof lt=="function"?lt.call(rt,Le,Re):lt,Re==null)break e;Le=Q({},Le,Re);break e;case 2:wa=!0}}te.callback!==null&&te.lane!==0&&(i.flags|=64,Re=b.effects,Re===null?b.effects=[te]:Re.push(te))}else rt={eventTime:rt,lane:Re,tag:te.tag,payload:te.payload,callback:te.callback,next:null},Ae===null?(ve=Ae=rt,ae=Le):Ae=Ae.next=rt,O|=Re;if(te=te.next,te===null){if(te=b.shared.pending,te===null)break;Re=te,te=Re.next,Re.next=null,b.lastBaseUpdate=Re,b.shared.pending=null}}while(!0);if(Ae===null&&(ae=Le),b.baseState=ae,b.firstBaseUpdate=ve,b.lastBaseUpdate=Ae,s=b.shared.interleaved,s!==null){b=s;do O|=b.lane,b=b.next;while(b!==s)}else T===null&&(b.shared.lanes=0);cs|=O,i.lanes=O,i.memoizedState=Le}}function Eb(i,s,p){if(i=s.effects,s.effects=null,i!==null)for(s=0;s<i.length;s++){var m=i[s],b=m.callback;if(b!==null){if(m.callback=null,m=p,typeof b!="function")throw Error(r(191,b));b.call(m)}}}var Oc={},di=va(Oc),Nc=va(Oc),$c=va(Oc);function ss(i){if(i===Oc)throw Error(r(174));return i}function bm(i,s){switch(cr($c,s),cr(Nc,i),cr(di,Oc),i=s.nodeType,i){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:Te(null,"");break;default:i=i===8?s.parentNode:s,s=i.namespaceURI||null,i=i.tagName,s=Te(s,i)}hr(di),cr(di,s)}function ll(){hr(di),hr(Nc),hr($c)}function kb(i){ss($c.current);var s=ss(di.current),p=Te(s,i.type);s!==p&&(cr(Nc,i),cr(di,p))}function xm(i){Nc.current===i&&(hr(di),hr(Nc))}var xr=va(0);function Kd(i){for(var s=i;s!==null;){if(s.tag===13){var p=s.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||p.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var wm=[];function Sm(){for(var i=0;i<wm.length;i++)wm[i]._workInProgressVersionPrimary=null;wm.length=0}var Qd=E.ReactCurrentDispatcher,Cm=E.ReactCurrentBatchConfig,ls=0,wr=null,Vr=null,Kr=null,Yd=!1,Bc=!1,zc=0,MP=0;function yn(){throw Error(r(321))}function Tm(i,s){if(s===null)return!1;for(var p=0;p<s.length&&p<i.length;p++)if(!Uo(i[p],s[p]))return!1;return!0}function Em(i,s,p,m,b,T){if(ls=T,wr=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,Qd.current=i===null||i.memoizedState===null?_P:LP,i=p(m,b),Bc){T=0;do{if(Bc=!1,zc=0,25<=T)throw Error(r(301));T+=1,Kr=Vr=null,s.updateQueue=null,Qd.current=OP,i=p(m,b)}while(Bc)}if(Qd.current=ep,s=Vr!==null&&Vr.next!==null,ls=0,Kr=Vr=wr=null,Yd=!1,s)throw Error(r(300));return i}function km(){var i=zc!==0;return zc=0,i}function pi(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Kr===null?wr.memoizedState=Kr=i:Kr=Kr.next=i,Kr}function Eo(){if(Vr===null){var i=wr.alternate;i=i!==null?i.memoizedState:null}else i=Vr.next;var s=Kr===null?wr.memoizedState:Kr.next;if(s!==null)Kr=s,Vr=i;else{if(i===null)throw Error(r(310));Vr=i,i={memoizedState:Vr.memoizedState,baseState:Vr.baseState,baseQueue:Vr.baseQueue,queue:Vr.queue,next:null},Kr===null?wr.memoizedState=Kr=i:Kr=Kr.next=i}return Kr}function Dc(i,s){return typeof s=="function"?s(i):s}function Pm(i){var s=Eo(),p=s.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=i;var m=Vr,b=m.baseQueue,T=p.pending;if(T!==null){if(b!==null){var O=b.next;b.next=T.next,T.next=O}m.baseQueue=b=T,p.pending=null}if(b!==null){T=b.next,m=m.baseState;var te=O=null,ae=null,ve=T;do{var Ae=ve.lane;if((ls&Ae)===Ae)ae!==null&&(ae=ae.next={lane:0,action:ve.action,hasEagerState:ve.hasEagerState,eagerState:ve.eagerState,next:null}),m=ve.hasEagerState?ve.eagerState:i(m,ve.action);else{var Le={lane:Ae,action:ve.action,hasEagerState:ve.hasEagerState,eagerState:ve.eagerState,next:null};ae===null?(te=ae=Le,O=m):ae=ae.next=Le,wr.lanes|=Ae,cs|=Ae}ve=ve.next}while(ve!==null&&ve!==T);ae===null?O=m:ae.next=te,Uo(m,s.memoizedState)||(Fn=!0),s.memoizedState=m,s.baseState=O,s.baseQueue=ae,p.lastRenderedState=m}if(i=p.interleaved,i!==null){b=i;do T=b.lane,wr.lanes|=T,cs|=T,b=b.next;while(b!==i)}else b===null&&(p.lanes=0);return[s.memoizedState,p.dispatch]}function jm(i){var s=Eo(),p=s.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=i;var m=p.dispatch,b=p.pending,T=s.memoizedState;if(b!==null){p.pending=null;var O=b=b.next;do T=i(T,O.action),O=O.next;while(O!==b);Uo(T,s.memoizedState)||(Fn=!0),s.memoizedState=T,s.baseQueue===null&&(s.baseState=T),p.lastRenderedState=T}return[T,m]}function Pb(){}function jb(i,s){var p=wr,m=Eo(),b=s(),T=!Uo(m.memoizedState,b);if(T&&(m.memoizedState=b,Fn=!0),m=m.queue,Mm(Ib.bind(null,p,m,i),[i]),m.getSnapshot!==s||T||Kr!==null&&Kr.memoizedState.tag&1){if(p.flags|=2048,Fc(9,Rb.bind(null,p,m,b,s),void 0,null),Qr===null)throw Error(r(349));(ls&30)!==0||Mb(p,s,b)}return b}function Mb(i,s,p){i.flags|=16384,i={getSnapshot:s,value:p},s=wr.updateQueue,s===null?(s={lastEffect:null,stores:null},wr.updateQueue=s,s.stores=[i]):(p=s.stores,p===null?s.stores=[i]:p.push(i))}function Rb(i,s,p,m){s.value=p,s.getSnapshot=m,Ab(s)&&_b(i)}function Ib(i,s,p){return p(function(){Ab(s)&&_b(i)})}function Ab(i){var s=i.getSnapshot;i=i.value;try{var p=s();return!Uo(i,p)}catch{return!0}}function _b(i){var s=Hi(i,1);s!==null&&Xo(s,i,1,-1)}function Lb(i){var s=pi();return typeof i=="function"&&(i=i()),s.memoizedState=s.baseState=i,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Dc,lastRenderedState:i},s.queue=i,i=i.dispatch=AP.bind(null,wr,i),[s.memoizedState,i]}function Fc(i,s,p,m){return i={tag:i,create:s,destroy:p,deps:m,next:null},s=wr.updateQueue,s===null?(s={lastEffect:null,stores:null},wr.updateQueue=s,s.lastEffect=i.next=i):(p=s.lastEffect,p===null?s.lastEffect=i.next=i:(m=p.next,p.next=i,i.next=m,s.lastEffect=i)),i}function Ob(){return Eo().memoizedState}function Jd(i,s,p,m){var b=pi();wr.flags|=i,b.memoizedState=Fc(1|s,p,void 0,m===void 0?null:m)}function Zd(i,s,p,m){var b=Eo();m=m===void 0?null:m;var T=void 0;if(Vr!==null){var O=Vr.memoizedState;if(T=O.destroy,m!==null&&Tm(m,O.deps)){b.memoizedState=Fc(s,p,T,m);return}}wr.flags|=i,b.memoizedState=Fc(1|s,p,T,m)}function Nb(i,s){return Jd(8390656,8,i,s)}function Mm(i,s){return Zd(2048,8,i,s)}function $b(i,s){return Zd(4,2,i,s)}function Bb(i,s){return Zd(4,4,i,s)}function zb(i,s){if(typeof s=="function")return i=i(),s(i),function(){s(null)};if(s!=null)return i=i(),s.current=i,function(){s.current=null}}function Db(i,s,p){return p=p!=null?p.concat([i]):null,Zd(4,4,zb.bind(null,s,i),p)}function Rm(){}function Fb(i,s){var p=Eo();s=s===void 0?null:s;var m=p.memoizedState;return m!==null&&s!==null&&Tm(s,m[1])?m[0]:(p.memoizedState=[i,s],i)}function Hb(i,s){var p=Eo();s=s===void 0?null:s;var m=p.memoizedState;return m!==null&&s!==null&&Tm(s,m[1])?m[0]:(i=i(),p.memoizedState=[i,s],i)}function Ub(i,s,p){return(ls&21)===0?(i.baseState&&(i.baseState=!1,Fn=!0),i.memoizedState=p):(Uo(p,s)||(p=bv(),wr.lanes|=p,cs|=p,i.baseState=!0),s)}function RP(i,s){var p=er;er=p!==0&&4>p?p:4,i(!0);var m=Cm.transition;Cm.transition={};try{i(!1),s()}finally{er=p,Cm.transition=m}}function Vb(){return Eo().memoizedState}function IP(i,s,p){var m=ka(i);if(p={lane:m,action:p,hasEagerState:!1,eagerState:null,next:null},Wb(i))qb(s,p);else if(p=Sb(i,s,p,m),p!==null){var b=Mn();Xo(p,i,m,b),Gb(p,s,m)}}function AP(i,s,p){var m=ka(i),b={lane:m,action:p,hasEagerState:!1,eagerState:null,next:null};if(Wb(i))qb(s,b);else{var T=i.alternate;if(i.lanes===0&&(T===null||T.lanes===0)&&(T=s.lastRenderedReducer,T!==null))try{var O=s.lastRenderedState,te=T(O,p);if(b.hasEagerState=!0,b.eagerState=te,Uo(te,O)){var ae=s.interleaved;ae===null?(b.next=b,ym(s)):(b.next=ae.next,ae.next=b),s.interleaved=b;return}}catch{}finally{}p=Sb(i,s,b,m),p!==null&&(b=Mn(),Xo(p,i,m,b),Gb(p,s,m))}}function Wb(i){var s=i.alternate;return i===wr||s!==null&&s===wr}function qb(i,s){Bc=Yd=!0;var p=i.pending;p===null?s.next=s:(s.next=p.next,p.next=s),i.pending=s}function Gb(i,s,p){if((p&4194240)!==0){var m=s.lanes;m&=i.pendingLanes,p|=m,s.lanes=p,Ah(i,p)}}var ep={readContext:To,useCallback:yn,useContext:yn,useEffect:yn,useImperativeHandle:yn,useInsertionEffect:yn,useLayoutEffect:yn,useMemo:yn,useReducer:yn,useRef:yn,useState:yn,useDebugValue:yn,useDeferredValue:yn,useTransition:yn,useMutableSource:yn,useSyncExternalStore:yn,useId:yn,unstable_isNewReconciler:!1},_P={readContext:To,useCallback:function(i,s){return pi().memoizedState=[i,s===void 0?null:s],i},useContext:To,useEffect:Nb,useImperativeHandle:function(i,s,p){return p=p!=null?p.concat([i]):null,Jd(4194308,4,zb.bind(null,s,i),p)},useLayoutEffect:function(i,s){return Jd(4194308,4,i,s)},useInsertionEffect:function(i,s){return Jd(4,2,i,s)},useMemo:function(i,s){var p=pi();return s=s===void 0?null:s,i=i(),p.memoizedState=[i,s],i},useReducer:function(i,s,p){var m=pi();return s=p!==void 0?p(s):s,m.memoizedState=m.baseState=s,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:s},m.queue=i,i=i.dispatch=IP.bind(null,wr,i),[m.memoizedState,i]},useRef:function(i){var s=pi();return i={current:i},s.memoizedState=i},useState:Lb,useDebugValue:Rm,useDeferredValue:function(i){return pi().memoizedState=i},useTransition:function(){var i=Lb(!1),s=i[0];return i=RP.bind(null,i[1]),pi().memoizedState=i,[s,i]},useMutableSource:function(){},useSyncExternalStore:function(i,s,p){var m=wr,b=pi();if(yr){if(p===void 0)throw Error(r(407));p=p()}else{if(p=s(),Qr===null)throw Error(r(349));(ls&30)!==0||Mb(m,s,p)}b.memoizedState=p;var T={value:p,getSnapshot:s};return b.queue=T,Nb(Ib.bind(null,m,T,i),[i]),m.flags|=2048,Fc(9,Rb.bind(null,m,T,p,s),void 0,null),p},useId:function(){var i=pi(),s=Qr.identifierPrefix;if(yr){var p=Fi,m=Di;p=(m&~(1<<32-Ho(m)-1)).toString(32)+p,s=":"+s+"R"+p,p=zc++,0<p&&(s+="H"+p.toString(32)),s+=":"}else p=MP++,s=":"+s+"r"+p.toString(32)+":";return i.memoizedState=s},unstable_isNewReconciler:!1},LP={readContext:To,useCallback:Fb,useContext:To,useEffect:Mm,useImperativeHandle:Db,useInsertionEffect:$b,useLayoutEffect:Bb,useMemo:Hb,useReducer:Pm,useRef:Ob,useState:function(){return Pm(Dc)},useDebugValue:Rm,useDeferredValue:function(i){var s=Eo();return Ub(s,Vr.memoizedState,i)},useTransition:function(){var i=Pm(Dc)[0],s=Eo().memoizedState;return[i,s]},useMutableSource:Pb,useSyncExternalStore:jb,useId:Vb,unstable_isNewReconciler:!1},OP={readContext:To,useCallback:Fb,useContext:To,useEffect:Mm,useImperativeHandle:Db,useInsertionEffect:$b,useLayoutEffect:Bb,useMemo:Hb,useReducer:jm,useRef:Ob,useState:function(){return jm(Dc)},useDebugValue:Rm,useDeferredValue:function(i){var s=Eo();return Vr===null?s.memoizedState=i:Ub(s,Vr.memoizedState,i)},useTransition:function(){var i=jm(Dc)[0],s=Eo().memoizedState;return[i,s]},useMutableSource:Pb,useSyncExternalStore:jb,useId:Vb,unstable_isNewReconciler:!1};function Wo(i,s){if(i&&i.defaultProps){s=Q({},s),i=i.defaultProps;for(var p in i)s[p]===void 0&&(s[p]=i[p]);return s}return s}function Im(i,s,p,m){s=i.memoizedState,p=p(m,s),p=p==null?s:Q({},s,p),i.memoizedState=p,i.lanes===0&&(i.updateQueue.baseState=p)}var tp={isMounted:function(i){return(i=i._reactInternals)?mn(i)===i:!1},enqueueSetState:function(i,s,p){i=i._reactInternals;var m=Mn(),b=ka(i),T=Ui(m,b);T.payload=s,p!=null&&(T.callback=p),s=Sa(i,T,b),s!==null&&(Xo(s,i,b,m),Gd(s,i,b))},enqueueReplaceState:function(i,s,p){i=i._reactInternals;var m=Mn(),b=ka(i),T=Ui(m,b);T.tag=1,T.payload=s,p!=null&&(T.callback=p),s=Sa(i,T,b),s!==null&&(Xo(s,i,b,m),Gd(s,i,b))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var p=Mn(),m=ka(i),b=Ui(p,m);b.tag=2,s!=null&&(b.callback=s),s=Sa(i,b,m),s!==null&&(Xo(s,i,m,p),Gd(s,i,m))}};function Xb(i,s,p,m,b,T,O){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(m,T,O):s.prototype&&s.prototype.isPureReactComponent?!Pc(p,m)||!Pc(b,T):!0}function Kb(i,s,p){var m=!1,b=ba,T=s.contextType;return typeof T=="object"&&T!==null?T=To(T):(b=Dn(s)?ns:gn.current,m=s.contextTypes,T=(m=m!=null)?tl(i,b):ba),s=new s(p,T),i.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=tp,i.stateNode=s,s._reactInternals=i,m&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=b,i.__reactInternalMemoizedMaskedChildContext=T),s}function Qb(i,s,p,m){i=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(p,m),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(p,m),s.state!==i&&tp.enqueueReplaceState(s,s.state,null)}function Am(i,s,p,m){var b=i.stateNode;b.props=p,b.state=i.memoizedState,b.refs={},vm(i);var T=s.contextType;typeof T=="object"&&T!==null?b.context=To(T):(T=Dn(s)?ns:gn.current,b.context=tl(i,T)),b.state=i.memoizedState,T=s.getDerivedStateFromProps,typeof T=="function"&&(Im(i,s,T,p),b.state=i.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(s=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),s!==b.state&&tp.enqueueReplaceState(b,b.state,null),Xd(i,p,b,m),b.state=i.memoizedState),typeof b.componentDidMount=="function"&&(i.flags|=4194308)}function cl(i,s){try{var p="",m=s;do p+=ne(m),m=m.return;while(m);var b=p}catch(T){b=`
39
- Error generating stack: `+T.message+`
40
- `+T.stack}return{value:i,source:s,stack:b,digest:null}}function _m(i,s,p){return{value:i,source:null,stack:p??null,digest:s??null}}function Lm(i,s){try{console.error(s.value)}catch(p){setTimeout(function(){throw p})}}var NP=typeof WeakMap=="function"?WeakMap:Map;function Yb(i,s,p){p=Ui(-1,p),p.tag=3,p.payload={element:null};var m=s.value;return p.callback=function(){lp||(lp=!0,Km=m),Lm(i,s)},p}function Jb(i,s,p){p=Ui(-1,p),p.tag=3;var m=i.type.getDerivedStateFromError;if(typeof m=="function"){var b=s.value;p.payload=function(){return m(b)},p.callback=function(){Lm(i,s)}}var T=i.stateNode;return T!==null&&typeof T.componentDidCatch=="function"&&(p.callback=function(){Lm(i,s),typeof m!="function"&&(Ta===null?Ta=new Set([this]):Ta.add(this));var O=s.stack;this.componentDidCatch(s.value,{componentStack:O!==null?O:""})}),p}function Zb(i,s,p){var m=i.pingCache;if(m===null){m=i.pingCache=new NP;var b=new Set;m.set(s,b)}else b=m.get(s),b===void 0&&(b=new Set,m.set(s,b));b.has(p)||(b.add(p),i=QP.bind(null,i,s,p),s.then(i,i))}function ex(i){do{var s;if((s=i.tag===13)&&(s=i.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return i;i=i.return}while(i!==null);return null}function tx(i,s,p,m,b){return(i.mode&1)===0?(i===s?i.flags|=65536:(i.flags|=128,p.flags|=131072,p.flags&=-52805,p.tag===1&&(p.alternate===null?p.tag=17:(s=Ui(-1,1),s.tag=2,Sa(p,s,1))),p.lanes|=1),i):(i.flags|=65536,i.lanes=b,i)}var $P=E.ReactCurrentOwner,Fn=!1;function jn(i,s,p,m){s.child=i===null?wb(s,null,p,m):il(s,i.child,p,m)}function rx(i,s,p,m,b){p=p.render;var T=s.ref;return sl(s,b),m=Em(i,s,p,m,T,b),p=km(),i!==null&&!Fn?(s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~b,Vi(i,s,b)):(yr&&p&&lm(s),s.flags|=1,jn(i,s,m,b),s.child)}function nx(i,s,p,m,b){if(i===null){var T=p.type;return typeof T=="function"&&!rg(T)&&T.defaultProps===void 0&&p.compare===null&&p.defaultProps===void 0?(s.tag=15,s.type=T,ox(i,s,T,m,b)):(i=hp(p.type,null,m,s,s.mode,b),i.ref=s.ref,i.return=s,s.child=i)}if(T=i.child,(i.lanes&b)===0){var O=T.memoizedProps;if(p=p.compare,p=p!==null?p:Pc,p(O,m)&&i.ref===s.ref)return Vi(i,s,b)}return s.flags|=1,i=ja(T,m),i.ref=s.ref,i.return=s,s.child=i}function ox(i,s,p,m,b){if(i!==null){var T=i.memoizedProps;if(Pc(T,m)&&i.ref===s.ref)if(Fn=!1,s.pendingProps=m=T,(i.lanes&b)!==0)(i.flags&131072)!==0&&(Fn=!0);else return s.lanes=i.lanes,Vi(i,s,b)}return Om(i,s,p,m,b)}function ix(i,s,p){var m=s.pendingProps,b=m.children,T=i!==null?i.memoizedState:null;if(m.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},cr(dl,po),po|=p;else{if((p&1073741824)===0)return i=T!==null?T.baseLanes|p:p,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:i,cachePool:null,transitions:null},s.updateQueue=null,cr(dl,po),po|=i,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},m=T!==null?T.baseLanes:p,cr(dl,po),po|=m}else T!==null?(m=T.baseLanes|p,s.memoizedState=null):m=p,cr(dl,po),po|=m;return jn(i,s,b,p),s.child}function ax(i,s){var p=s.ref;(i===null&&p!==null||i!==null&&i.ref!==p)&&(s.flags|=512,s.flags|=2097152)}function Om(i,s,p,m,b){var T=Dn(p)?ns:gn.current;return T=tl(s,T),sl(s,b),p=Em(i,s,p,m,T,b),m=km(),i!==null&&!Fn?(s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~b,Vi(i,s,b)):(yr&&m&&lm(s),s.flags|=1,jn(i,s,p,b),s.child)}function sx(i,s,p,m,b){if(Dn(p)){var T=!0;zd(s)}else T=!1;if(sl(s,b),s.stateNode===null)np(i,s),Kb(s,p,m),Am(s,p,m,b),m=!0;else if(i===null){var O=s.stateNode,te=s.memoizedProps;O.props=te;var ae=O.context,ve=p.contextType;typeof ve=="object"&&ve!==null?ve=To(ve):(ve=Dn(p)?ns:gn.current,ve=tl(s,ve));var Ae=p.getDerivedStateFromProps,Le=typeof Ae=="function"||typeof O.getSnapshotBeforeUpdate=="function";Le||typeof O.UNSAFE_componentWillReceiveProps!="function"&&typeof O.componentWillReceiveProps!="function"||(te!==m||ae!==ve)&&Qb(s,O,m,ve),wa=!1;var Re=s.memoizedState;O.state=Re,Xd(s,m,O,b),ae=s.memoizedState,te!==m||Re!==ae||zn.current||wa?(typeof Ae=="function"&&(Im(s,p,Ae,m),ae=s.memoizedState),(te=wa||Xb(s,p,te,m,Re,ae,ve))?(Le||typeof O.UNSAFE_componentWillMount!="function"&&typeof O.componentWillMount!="function"||(typeof O.componentWillMount=="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount=="function"&&O.UNSAFE_componentWillMount()),typeof O.componentDidMount=="function"&&(s.flags|=4194308)):(typeof O.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=m,s.memoizedState=ae),O.props=m,O.state=ae,O.context=ve,m=te):(typeof O.componentDidMount=="function"&&(s.flags|=4194308),m=!1)}else{O=s.stateNode,Cb(i,s),te=s.memoizedProps,ve=s.type===s.elementType?te:Wo(s.type,te),O.props=ve,Le=s.pendingProps,Re=O.context,ae=p.contextType,typeof ae=="object"&&ae!==null?ae=To(ae):(ae=Dn(p)?ns:gn.current,ae=tl(s,ae));var rt=p.getDerivedStateFromProps;(Ae=typeof rt=="function"||typeof O.getSnapshotBeforeUpdate=="function")||typeof O.UNSAFE_componentWillReceiveProps!="function"&&typeof O.componentWillReceiveProps!="function"||(te!==Le||Re!==ae)&&Qb(s,O,m,ae),wa=!1,Re=s.memoizedState,O.state=Re,Xd(s,m,O,b);var lt=s.memoizedState;te!==Le||Re!==lt||zn.current||wa?(typeof rt=="function"&&(Im(s,p,rt,m),lt=s.memoizedState),(ve=wa||Xb(s,p,ve,m,Re,lt,ae)||!1)?(Ae||typeof O.UNSAFE_componentWillUpdate!="function"&&typeof O.componentWillUpdate!="function"||(typeof O.componentWillUpdate=="function"&&O.componentWillUpdate(m,lt,ae),typeof O.UNSAFE_componentWillUpdate=="function"&&O.UNSAFE_componentWillUpdate(m,lt,ae)),typeof O.componentDidUpdate=="function"&&(s.flags|=4),typeof O.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof O.componentDidUpdate!="function"||te===i.memoizedProps&&Re===i.memoizedState||(s.flags|=4),typeof O.getSnapshotBeforeUpdate!="function"||te===i.memoizedProps&&Re===i.memoizedState||(s.flags|=1024),s.memoizedProps=m,s.memoizedState=lt),O.props=m,O.state=lt,O.context=ae,m=ve):(typeof O.componentDidUpdate!="function"||te===i.memoizedProps&&Re===i.memoizedState||(s.flags|=4),typeof O.getSnapshotBeforeUpdate!="function"||te===i.memoizedProps&&Re===i.memoizedState||(s.flags|=1024),m=!1)}return Nm(i,s,p,m,T,b)}function Nm(i,s,p,m,b,T){ax(i,s);var O=(s.flags&128)!==0;if(!m&&!O)return b&&pb(s,p,!1),Vi(i,s,T);m=s.stateNode,$P.current=s;var te=O&&typeof p.getDerivedStateFromError!="function"?null:m.render();return s.flags|=1,i!==null&&O?(s.child=il(s,i.child,null,T),s.child=il(s,null,te,T)):jn(i,s,te,T),s.memoizedState=m.state,b&&pb(s,p,!0),s.child}function lx(i){var s=i.stateNode;s.pendingContext?ub(i,s.pendingContext,s.pendingContext!==s.context):s.context&&ub(i,s.context,!1),bm(i,s.containerInfo)}function cx(i,s,p,m,b){return ol(),pm(b),s.flags|=256,jn(i,s,p,m),s.child}var $m={dehydrated:null,treeContext:null,retryLane:0};function Bm(i){return{baseLanes:i,cachePool:null,transitions:null}}function ux(i,s,p){var m=s.pendingProps,b=xr.current,T=!1,O=(s.flags&128)!==0,te;if((te=O)||(te=i!==null&&i.memoizedState===null?!1:(b&2)!==0),te?(T=!0,s.flags&=-129):(i===null||i.memoizedState!==null)&&(b|=1),cr(xr,b&1),i===null)return dm(s),i=s.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?((s.mode&1)===0?s.lanes=1:i.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(O=m.children,i=m.fallback,T?(m=s.mode,T=s.child,O={mode:"hidden",children:O},(m&1)===0&&T!==null?(T.childLanes=0,T.pendingProps=O):T=mp(O,m,0,null),i=fs(i,m,p,null),T.return=s,i.return=s,T.sibling=i,s.child=T,s.child.memoizedState=Bm(p),s.memoizedState=$m,i):zm(s,O));if(b=i.memoizedState,b!==null&&(te=b.dehydrated,te!==null))return BP(i,s,O,m,te,b,p);if(T){T=m.fallback,O=s.mode,b=i.child,te=b.sibling;var ae={mode:"hidden",children:m.children};return(O&1)===0&&s.child!==b?(m=s.child,m.childLanes=0,m.pendingProps=ae,s.deletions=null):(m=ja(b,ae),m.subtreeFlags=b.subtreeFlags&14680064),te!==null?T=ja(te,T):(T=fs(T,O,p,null),T.flags|=2),T.return=s,m.return=s,m.sibling=T,s.child=m,m=T,T=s.child,O=i.child.memoizedState,O=O===null?Bm(p):{baseLanes:O.baseLanes|p,cachePool:null,transitions:O.transitions},T.memoizedState=O,T.childLanes=i.childLanes&~p,s.memoizedState=$m,m}return T=i.child,i=T.sibling,m=ja(T,{mode:"visible",children:m.children}),(s.mode&1)===0&&(m.lanes=p),m.return=s,m.sibling=null,i!==null&&(p=s.deletions,p===null?(s.deletions=[i],s.flags|=16):p.push(i)),s.child=m,s.memoizedState=null,m}function zm(i,s){return s=mp({mode:"visible",children:s},i.mode,0,null),s.return=i,i.child=s}function rp(i,s,p,m){return m!==null&&pm(m),il(s,i.child,null,p),i=zm(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function BP(i,s,p,m,b,T,O){if(p)return s.flags&256?(s.flags&=-257,m=_m(Error(r(422))),rp(i,s,O,m)):s.memoizedState!==null?(s.child=i.child,s.flags|=128,null):(T=m.fallback,b=s.mode,m=mp({mode:"visible",children:m.children},b,0,null),T=fs(T,b,O,null),T.flags|=2,m.return=s,T.return=s,m.sibling=T,s.child=m,(s.mode&1)!==0&&il(s,i.child,null,O),s.child.memoizedState=Bm(O),s.memoizedState=$m,T);if((s.mode&1)===0)return rp(i,s,O,null);if(b.data==="$!"){if(m=b.nextSibling&&b.nextSibling.dataset,m)var te=m.dgst;return m=te,T=Error(r(419)),m=_m(T,m,void 0),rp(i,s,O,m)}if(te=(O&i.childLanes)!==0,Fn||te){if(m=Qr,m!==null){switch(O&-O){case 4:b=2;break;case 16:b=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:b=32;break;case 536870912:b=268435456;break;default:b=0}b=(b&(m.suspendedLanes|O))!==0?0:b,b!==0&&b!==T.retryLane&&(T.retryLane=b,Hi(i,b),Xo(m,i,b,-1))}return tg(),m=_m(Error(r(421))),rp(i,s,O,m)}return b.data==="$?"?(s.flags|=128,s.child=i.child,s=YP.bind(null,i),b._reactRetry=s,null):(i=T.treeContext,uo=ya(b.nextSibling),co=s,yr=!0,Vo=null,i!==null&&(So[Co++]=Di,So[Co++]=Fi,So[Co++]=os,Di=i.id,Fi=i.overflow,os=s),s=zm(s,m.children),s.flags|=4096,s)}function dx(i,s,p){i.lanes|=s;var m=i.alternate;m!==null&&(m.lanes|=s),gm(i.return,s,p)}function Dm(i,s,p,m,b){var T=i.memoizedState;T===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:m,tail:p,tailMode:b}:(T.isBackwards=s,T.rendering=null,T.renderingStartTime=0,T.last=m,T.tail=p,T.tailMode=b)}function px(i,s,p){var m=s.pendingProps,b=m.revealOrder,T=m.tail;if(jn(i,s,m.children,p),m=xr.current,(m&2)!==0)m=m&1|2,s.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&dx(i,p,s);else if(i.tag===19)dx(i,p,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}m&=1}if(cr(xr,m),(s.mode&1)===0)s.memoizedState=null;else switch(b){case"forwards":for(p=s.child,b=null;p!==null;)i=p.alternate,i!==null&&Kd(i)===null&&(b=p),p=p.sibling;p=b,p===null?(b=s.child,s.child=null):(b=p.sibling,p.sibling=null),Dm(s,!1,b,p,T);break;case"backwards":for(p=null,b=s.child,s.child=null;b!==null;){if(i=b.alternate,i!==null&&Kd(i)===null){s.child=b;break}i=b.sibling,b.sibling=p,p=b,b=i}Dm(s,!0,p,null,T);break;case"together":Dm(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function np(i,s){(s.mode&1)===0&&i!==null&&(i.alternate=null,s.alternate=null,s.flags|=2)}function Vi(i,s,p){if(i!==null&&(s.dependencies=i.dependencies),cs|=s.lanes,(p&s.childLanes)===0)return null;if(i!==null&&s.child!==i.child)throw Error(r(153));if(s.child!==null){for(i=s.child,p=ja(i,i.pendingProps),s.child=p,p.return=s;i.sibling!==null;)i=i.sibling,p=p.sibling=ja(i,i.pendingProps),p.return=s;p.sibling=null}return s.child}function zP(i,s,p){switch(s.tag){case 3:lx(s),ol();break;case 5:kb(s);break;case 1:Dn(s.type)&&zd(s);break;case 4:bm(s,s.stateNode.containerInfo);break;case 10:var m=s.type._context,b=s.memoizedProps.value;cr(Wd,m._currentValue),m._currentValue=b;break;case 13:if(m=s.memoizedState,m!==null)return m.dehydrated!==null?(cr(xr,xr.current&1),s.flags|=128,null):(p&s.child.childLanes)!==0?ux(i,s,p):(cr(xr,xr.current&1),i=Vi(i,s,p),i!==null?i.sibling:null);cr(xr,xr.current&1);break;case 19:if(m=(p&s.childLanes)!==0,(i.flags&128)!==0){if(m)return px(i,s,p);s.flags|=128}if(b=s.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),cr(xr,xr.current),m)break;return null;case 22:case 23:return s.lanes=0,ix(i,s,p)}return Vi(i,s,p)}var fx,Fm,hx,mx;fx=function(i,s){for(var p=s.child;p!==null;){if(p.tag===5||p.tag===6)i.appendChild(p.stateNode);else if(p.tag!==4&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===s)break;for(;p.sibling===null;){if(p.return===null||p.return===s)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},Fm=function(){},hx=function(i,s,p,m){var b=i.memoizedProps;if(b!==m){i=s.stateNode,ss(di.current);var T=null;switch(p){case"input":b=Be(i,b),m=Be(i,m),T=[];break;case"select":b=Q({},b,{value:void 0}),m=Q({},m,{value:void 0}),T=[];break;case"textarea":b=Ue(i,b),m=Ue(i,m),T=[];break;default:typeof b.onClick!="function"&&typeof m.onClick=="function"&&(i.onclick=Nd)}Xt(p,m);var O;p=null;for(ve in b)if(!m.hasOwnProperty(ve)&&b.hasOwnProperty(ve)&&b[ve]!=null)if(ve==="style"){var te=b[ve];for(O in te)te.hasOwnProperty(O)&&(p||(p={}),p[O]="")}else ve!=="dangerouslySetInnerHTML"&&ve!=="children"&&ve!=="suppressContentEditableWarning"&&ve!=="suppressHydrationWarning"&&ve!=="autoFocus"&&(o.hasOwnProperty(ve)?T||(T=[]):(T=T||[]).push(ve,null));for(ve in m){var ae=m[ve];if(te=b!=null?b[ve]:void 0,m.hasOwnProperty(ve)&&ae!==te&&(ae!=null||te!=null))if(ve==="style")if(te){for(O in te)!te.hasOwnProperty(O)||ae&&ae.hasOwnProperty(O)||(p||(p={}),p[O]="");for(O in ae)ae.hasOwnProperty(O)&&te[O]!==ae[O]&&(p||(p={}),p[O]=ae[O])}else p||(T||(T=[]),T.push(ve,p)),p=ae;else ve==="dangerouslySetInnerHTML"?(ae=ae?ae.__html:void 0,te=te?te.__html:void 0,ae!=null&&te!==ae&&(T=T||[]).push(ve,ae)):ve==="children"?typeof ae!="string"&&typeof ae!="number"||(T=T||[]).push(ve,""+ae):ve!=="suppressContentEditableWarning"&&ve!=="suppressHydrationWarning"&&(o.hasOwnProperty(ve)?(ae!=null&&ve==="onScroll"&&fr("scroll",i),T||te===ae||(T=[])):(T=T||[]).push(ve,ae))}p&&(T=T||[]).push("style",p);var ve=T;(s.updateQueue=ve)&&(s.flags|=4)}},mx=function(i,s,p,m){p!==m&&(s.flags|=4)};function Hc(i,s){if(!yr)switch(i.tailMode){case"hidden":s=i.tail;for(var p=null;s!==null;)s.alternate!==null&&(p=s),s=s.sibling;p===null?i.tail=null:p.sibling=null;break;case"collapsed":p=i.tail;for(var m=null;p!==null;)p.alternate!==null&&(m=p),p=p.sibling;m===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:m.sibling=null}}function vn(i){var s=i.alternate!==null&&i.alternate.child===i.child,p=0,m=0;if(s)for(var b=i.child;b!==null;)p|=b.lanes|b.childLanes,m|=b.subtreeFlags&14680064,m|=b.flags&14680064,b.return=i,b=b.sibling;else for(b=i.child;b!==null;)p|=b.lanes|b.childLanes,m|=b.subtreeFlags,m|=b.flags,b.return=i,b=b.sibling;return i.subtreeFlags|=m,i.childLanes=p,s}function DP(i,s,p){var m=s.pendingProps;switch(cm(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vn(s),null;case 1:return Dn(s.type)&&Bd(),vn(s),null;case 3:return m=s.stateNode,ll(),hr(zn),hr(gn),Sm(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(i===null||i.child===null)&&(Ud(s)?s.flags|=4:i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Vo!==null&&(Jm(Vo),Vo=null))),Fm(i,s),vn(s),null;case 5:xm(s);var b=ss($c.current);if(p=s.type,i!==null&&s.stateNode!=null)hx(i,s,p,m,b),i.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!m){if(s.stateNode===null)throw Error(r(166));return vn(s),null}if(i=ss(di.current),Ud(s)){m=s.stateNode,p=s.type;var T=s.memoizedProps;switch(m[ui]=s,m[Ac]=T,i=(s.mode&1)!==0,p){case"dialog":fr("cancel",m),fr("close",m);break;case"iframe":case"object":case"embed":fr("load",m);break;case"video":case"audio":for(b=0;b<Mc.length;b++)fr(Mc[b],m);break;case"source":fr("error",m);break;case"img":case"image":case"link":fr("error",m),fr("load",m);break;case"details":fr("toggle",m);break;case"input":_e(m,T),fr("invalid",m);break;case"select":m._wrapperState={wasMultiple:!!T.multiple},fr("invalid",m);break;case"textarea":Gt(m,T),fr("invalid",m)}Xt(p,T),b=null;for(var O in T)if(T.hasOwnProperty(O)){var te=T[O];O==="children"?typeof te=="string"?m.textContent!==te&&(T.suppressHydrationWarning!==!0&&Od(m.textContent,te,i),b=["children",te]):typeof te=="number"&&m.textContent!==""+te&&(T.suppressHydrationWarning!==!0&&Od(m.textContent,te,i),b=["children",""+te]):o.hasOwnProperty(O)&&te!=null&&O==="onScroll"&&fr("scroll",m)}switch(p){case"input":De(m),je(m,T,!0);break;case"textarea":De(m),ue(m);break;case"select":case"option":break;default:typeof T.onClick=="function"&&(m.onclick=Nd)}m=b,s.updateQueue=m,m!==null&&(s.flags|=4)}else{O=b.nodeType===9?b:b.ownerDocument,i==="http://www.w3.org/1999/xhtml"&&(i=be(p)),i==="http://www.w3.org/1999/xhtml"?p==="script"?(i=O.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof m.is=="string"?i=O.createElement(p,{is:m.is}):(i=O.createElement(p),p==="select"&&(O=i,m.multiple?O.multiple=!0:m.size&&(O.size=m.size))):i=O.createElementNS(i,p),i[ui]=s,i[Ac]=m,fx(i,s,!1,!1),s.stateNode=i;e:{switch(O=dr(p,m),p){case"dialog":fr("cancel",i),fr("close",i),b=m;break;case"iframe":case"object":case"embed":fr("load",i),b=m;break;case"video":case"audio":for(b=0;b<Mc.length;b++)fr(Mc[b],i);b=m;break;case"source":fr("error",i),b=m;break;case"img":case"image":case"link":fr("error",i),fr("load",i),b=m;break;case"details":fr("toggle",i),b=m;break;case"input":_e(i,m),b=Be(i,m),fr("invalid",i);break;case"option":b=m;break;case"select":i._wrapperState={wasMultiple:!!m.multiple},b=Q({},m,{value:void 0}),fr("invalid",i);break;case"textarea":Gt(i,m),b=Ue(i,m),fr("invalid",i);break;default:b=m}Xt(p,b),te=b;for(T in te)if(te.hasOwnProperty(T)){var ae=te[T];T==="style"?Fe(i,ae):T==="dangerouslySetInnerHTML"?(ae=ae?ae.__html:void 0,ae!=null&&Ve(i,ae)):T==="children"?typeof ae=="string"?(p!=="textarea"||ae!=="")&&Qe(i,ae):typeof ae=="number"&&Qe(i,""+ae):T!=="suppressContentEditableWarning"&&T!=="suppressHydrationWarning"&&T!=="autoFocus"&&(o.hasOwnProperty(T)?ae!=null&&T==="onScroll"&&fr("scroll",i):ae!=null&&M(i,T,ae,O))}switch(p){case"input":De(i),je(i,m,!1);break;case"textarea":De(i),ue(i);break;case"option":m.value!=null&&i.setAttribute("value",""+Ce(m.value));break;case"select":i.multiple=!!m.multiple,T=m.value,T!=null?ft(i,!!m.multiple,T,!1):m.defaultValue!=null&&ft(i,!!m.multiple,m.defaultValue,!0);break;default:typeof b.onClick=="function"&&(i.onclick=Nd)}switch(p){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break e;case"img":m=!0;break e;default:m=!1}}m&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return vn(s),null;case 6:if(i&&s.stateNode!=null)mx(i,s,i.memoizedProps,m);else{if(typeof m!="string"&&s.stateNode===null)throw Error(r(166));if(p=ss($c.current),ss(di.current),Ud(s)){if(m=s.stateNode,p=s.memoizedProps,m[ui]=s,(T=m.nodeValue!==p)&&(i=co,i!==null))switch(i.tag){case 3:Od(m.nodeValue,p,(i.mode&1)!==0);break;case 5:i.memoizedProps.suppressHydrationWarning!==!0&&Od(m.nodeValue,p,(i.mode&1)!==0)}T&&(s.flags|=4)}else m=(p.nodeType===9?p:p.ownerDocument).createTextNode(m),m[ui]=s,s.stateNode=m}return vn(s),null;case 13:if(hr(xr),m=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(yr&&uo!==null&&(s.mode&1)!==0&&(s.flags&128)===0)vb(),ol(),s.flags|=98560,T=!1;else if(T=Ud(s),m!==null&&m.dehydrated!==null){if(i===null){if(!T)throw Error(r(318));if(T=s.memoizedState,T=T!==null?T.dehydrated:null,!T)throw Error(r(317));T[ui]=s}else ol(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;vn(s),T=!1}else Vo!==null&&(Jm(Vo),Vo=null),T=!0;if(!T)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=p,s):(m=m!==null,m!==(i!==null&&i.memoizedState!==null)&&m&&(s.child.flags|=8192,(s.mode&1)!==0&&(i===null||(xr.current&1)!==0?Wr===0&&(Wr=3):tg())),s.updateQueue!==null&&(s.flags|=4),vn(s),null);case 4:return ll(),Fm(i,s),i===null&&Rc(s.stateNode.containerInfo),vn(s),null;case 10:return mm(s.type._context),vn(s),null;case 17:return Dn(s.type)&&Bd(),vn(s),null;case 19:if(hr(xr),T=s.memoizedState,T===null)return vn(s),null;if(m=(s.flags&128)!==0,O=T.rendering,O===null)if(m)Hc(T,!1);else{if(Wr!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(O=Kd(i),O!==null){for(s.flags|=128,Hc(T,!1),m=O.updateQueue,m!==null&&(s.updateQueue=m,s.flags|=4),s.subtreeFlags=0,m=p,p=s.child;p!==null;)T=p,i=m,T.flags&=14680066,O=T.alternate,O===null?(T.childLanes=0,T.lanes=i,T.child=null,T.subtreeFlags=0,T.memoizedProps=null,T.memoizedState=null,T.updateQueue=null,T.dependencies=null,T.stateNode=null):(T.childLanes=O.childLanes,T.lanes=O.lanes,T.child=O.child,T.subtreeFlags=0,T.deletions=null,T.memoizedProps=O.memoizedProps,T.memoizedState=O.memoizedState,T.updateQueue=O.updateQueue,T.type=O.type,i=O.dependencies,T.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),p=p.sibling;return cr(xr,xr.current&1|2),s.child}i=i.sibling}T.tail!==null&&It()>pl&&(s.flags|=128,m=!0,Hc(T,!1),s.lanes=4194304)}else{if(!m)if(i=Kd(O),i!==null){if(s.flags|=128,m=!0,p=i.updateQueue,p!==null&&(s.updateQueue=p,s.flags|=4),Hc(T,!0),T.tail===null&&T.tailMode==="hidden"&&!O.alternate&&!yr)return vn(s),null}else 2*It()-T.renderingStartTime>pl&&p!==1073741824&&(s.flags|=128,m=!0,Hc(T,!1),s.lanes=4194304);T.isBackwards?(O.sibling=s.child,s.child=O):(p=T.last,p!==null?p.sibling=O:s.child=O,T.last=O)}return T.tail!==null?(s=T.tail,T.rendering=s,T.tail=s.sibling,T.renderingStartTime=It(),s.sibling=null,p=xr.current,cr(xr,m?p&1|2:p&1),s):(vn(s),null);case 22:case 23:return eg(),m=s.memoizedState!==null,i!==null&&i.memoizedState!==null!==m&&(s.flags|=8192),m&&(s.mode&1)!==0?(po&1073741824)!==0&&(vn(s),s.subtreeFlags&6&&(s.flags|=8192)):vn(s),null;case 24:return null;case 25:return null}throw Error(r(156,s.tag))}function FP(i,s){switch(cm(s),s.tag){case 1:return Dn(s.type)&&Bd(),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return ll(),hr(zn),hr(gn),Sm(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 5:return xm(s),null;case 13:if(hr(xr),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(r(340));ol()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return hr(xr),null;case 4:return ll(),null;case 10:return mm(s.type._context),null;case 22:case 23:return eg(),null;case 24:return null;default:return null}}var op=!1,bn=!1,HP=typeof WeakSet=="function"?WeakSet:Set,at=null;function ul(i,s){var p=i.ref;if(p!==null)if(typeof p=="function")try{p(null)}catch(m){Cr(i,s,m)}else p.current=null}function Hm(i,s,p){try{p()}catch(m){Cr(i,s,m)}}var gx=!1;function UP(i,s){if(em=Td,i=Xv(),qh(i)){if("selectionStart"in i)var p={start:i.selectionStart,end:i.selectionEnd};else e:{p=(p=i.ownerDocument)&&p.defaultView||window;var m=p.getSelection&&p.getSelection();if(m&&m.rangeCount!==0){p=m.anchorNode;var b=m.anchorOffset,T=m.focusNode;m=m.focusOffset;try{p.nodeType,T.nodeType}catch{p=null;break e}var O=0,te=-1,ae=-1,ve=0,Ae=0,Le=i,Re=null;t:for(;;){for(var rt;Le!==p||b!==0&&Le.nodeType!==3||(te=O+b),Le!==T||m!==0&&Le.nodeType!==3||(ae=O+m),Le.nodeType===3&&(O+=Le.nodeValue.length),(rt=Le.firstChild)!==null;)Re=Le,Le=rt;for(;;){if(Le===i)break t;if(Re===p&&++ve===b&&(te=O),Re===T&&++Ae===m&&(ae=O),(rt=Le.nextSibling)!==null)break;Le=Re,Re=Le.parentNode}Le=rt}p=te===-1||ae===-1?null:{start:te,end:ae}}else p=null}p=p||{start:0,end:0}}else p=null;for(tm={focusedElem:i,selectionRange:p},Td=!1,at=s;at!==null;)if(s=at,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,at=i;else for(;at!==null;){s=at;try{var lt=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(lt!==null){var ct=lt.memoizedProps,jr=lt.memoizedState,pe=s.stateNode,le=pe.getSnapshotBeforeUpdate(s.elementType===s.type?ct:Wo(s.type,ct),jr);pe.__reactInternalSnapshotBeforeUpdate=le}break;case 3:var he=s.stateNode.containerInfo;he.nodeType===1?he.textContent="":he.nodeType===9&&he.documentElement&&he.removeChild(he.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(ze){Cr(s,s.return,ze)}if(i=s.sibling,i!==null){i.return=s.return,at=i;break}at=s.return}return lt=gx,gx=!1,lt}function Uc(i,s,p){var m=s.updateQueue;if(m=m!==null?m.lastEffect:null,m!==null){var b=m=m.next;do{if((b.tag&i)===i){var T=b.destroy;b.destroy=void 0,T!==void 0&&Hm(s,p,T)}b=b.next}while(b!==m)}}function ip(i,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var p=s=s.next;do{if((p.tag&i)===i){var m=p.create;p.destroy=m()}p=p.next}while(p!==s)}}function Um(i){var s=i.ref;if(s!==null){var p=i.stateNode;switch(i.tag){case 5:i=p;break;default:i=p}typeof s=="function"?s(i):s.current=i}}function yx(i){var s=i.alternate;s!==null&&(i.alternate=null,yx(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&(delete s[ui],delete s[Ac],delete s[im],delete s[EP],delete s[kP])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function vx(i){return i.tag===5||i.tag===3||i.tag===4}function bx(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||vx(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Vm(i,s,p){var m=i.tag;if(m===5||m===6)i=i.stateNode,s?p.nodeType===8?p.parentNode.insertBefore(i,s):p.insertBefore(i,s):(p.nodeType===8?(s=p.parentNode,s.insertBefore(i,p)):(s=p,s.appendChild(i)),p=p._reactRootContainer,p!=null||s.onclick!==null||(s.onclick=Nd));else if(m!==4&&(i=i.child,i!==null))for(Vm(i,s,p),i=i.sibling;i!==null;)Vm(i,s,p),i=i.sibling}function Wm(i,s,p){var m=i.tag;if(m===5||m===6)i=i.stateNode,s?p.insertBefore(i,s):p.appendChild(i);else if(m!==4&&(i=i.child,i!==null))for(Wm(i,s,p),i=i.sibling;i!==null;)Wm(i,s,p),i=i.sibling}var an=null,qo=!1;function Ca(i,s,p){for(p=p.child;p!==null;)xx(i,s,p),p=p.sibling}function xx(i,s,p){if(Ur&&typeof Ur.onCommitFiberUnmount=="function")try{Ur.onCommitFiberUnmount(so,p)}catch{}switch(p.tag){case 5:bn||ul(p,s);case 6:var m=an,b=qo;an=null,Ca(i,s,p),an=m,qo=b,an!==null&&(qo?(i=an,p=p.stateNode,i.nodeType===8?i.parentNode.removeChild(p):i.removeChild(p)):an.removeChild(p.stateNode));break;case 18:an!==null&&(qo?(i=an,p=p.stateNode,i.nodeType===8?om(i.parentNode,p):i.nodeType===1&&om(i,p),wc(i)):om(an,p.stateNode));break;case 4:m=an,b=qo,an=p.stateNode.containerInfo,qo=!0,Ca(i,s,p),an=m,qo=b;break;case 0:case 11:case 14:case 15:if(!bn&&(m=p.updateQueue,m!==null&&(m=m.lastEffect,m!==null))){b=m=m.next;do{var T=b,O=T.destroy;T=T.tag,O!==void 0&&((T&2)!==0||(T&4)!==0)&&Hm(p,s,O),b=b.next}while(b!==m)}Ca(i,s,p);break;case 1:if(!bn&&(ul(p,s),m=p.stateNode,typeof m.componentWillUnmount=="function"))try{m.props=p.memoizedProps,m.state=p.memoizedState,m.componentWillUnmount()}catch(te){Cr(p,s,te)}Ca(i,s,p);break;case 21:Ca(i,s,p);break;case 22:p.mode&1?(bn=(m=bn)||p.memoizedState!==null,Ca(i,s,p),bn=m):Ca(i,s,p);break;default:Ca(i,s,p)}}function wx(i){var s=i.updateQueue;if(s!==null){i.updateQueue=null;var p=i.stateNode;p===null&&(p=i.stateNode=new HP),s.forEach(function(m){var b=JP.bind(null,i,m);p.has(m)||(p.add(m),m.then(b,b))})}}function Go(i,s){var p=s.deletions;if(p!==null)for(var m=0;m<p.length;m++){var b=p[m];try{var T=i,O=s,te=O;e:for(;te!==null;){switch(te.tag){case 5:an=te.stateNode,qo=!1;break e;case 3:an=te.stateNode.containerInfo,qo=!0;break e;case 4:an=te.stateNode.containerInfo,qo=!0;break e}te=te.return}if(an===null)throw Error(r(160));xx(T,O,b),an=null,qo=!1;var ae=b.alternate;ae!==null&&(ae.return=null),b.return=null}catch(ve){Cr(b,s,ve)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)Sx(s,i),s=s.sibling}function Sx(i,s){var p=i.alternate,m=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(Go(s,i),fi(i),m&4){try{Uc(3,i,i.return),ip(3,i)}catch(ct){Cr(i,i.return,ct)}try{Uc(5,i,i.return)}catch(ct){Cr(i,i.return,ct)}}break;case 1:Go(s,i),fi(i),m&512&&p!==null&&ul(p,p.return);break;case 5:if(Go(s,i),fi(i),m&512&&p!==null&&ul(p,p.return),i.flags&32){var b=i.stateNode;try{Qe(b,"")}catch(ct){Cr(i,i.return,ct)}}if(m&4&&(b=i.stateNode,b!=null)){var T=i.memoizedProps,O=p!==null?p.memoizedProps:T,te=i.type,ae=i.updateQueue;if(i.updateQueue=null,ae!==null)try{te==="input"&&T.type==="radio"&&T.name!=null&&Ke(b,T),dr(te,O);var ve=dr(te,T);for(O=0;O<ae.length;O+=2){var Ae=ae[O],Le=ae[O+1];Ae==="style"?Fe(b,Le):Ae==="dangerouslySetInnerHTML"?Ve(b,Le):Ae==="children"?Qe(b,Le):M(b,Ae,Le,ve)}switch(te){case"input":pt(b,T);break;case"textarea":Tt(b,T);break;case"select":var Re=b._wrapperState.wasMultiple;b._wrapperState.wasMultiple=!!T.multiple;var rt=T.value;rt!=null?ft(b,!!T.multiple,rt,!1):Re!==!!T.multiple&&(T.defaultValue!=null?ft(b,!!T.multiple,T.defaultValue,!0):ft(b,!!T.multiple,T.multiple?[]:"",!1))}b[Ac]=T}catch(ct){Cr(i,i.return,ct)}}break;case 6:if(Go(s,i),fi(i),m&4){if(i.stateNode===null)throw Error(r(162));b=i.stateNode,T=i.memoizedProps;try{b.nodeValue=T}catch(ct){Cr(i,i.return,ct)}}break;case 3:if(Go(s,i),fi(i),m&4&&p!==null&&p.memoizedState.isDehydrated)try{wc(s.containerInfo)}catch(ct){Cr(i,i.return,ct)}break;case 4:Go(s,i),fi(i);break;case 13:Go(s,i),fi(i),b=i.child,b.flags&8192&&(T=b.memoizedState!==null,b.stateNode.isHidden=T,!T||b.alternate!==null&&b.alternate.memoizedState!==null||(Xm=It())),m&4&&wx(i);break;case 22:if(Ae=p!==null&&p.memoizedState!==null,i.mode&1?(bn=(ve=bn)||Ae,Go(s,i),bn=ve):Go(s,i),fi(i),m&8192){if(ve=i.memoizedState!==null,(i.stateNode.isHidden=ve)&&!Ae&&(i.mode&1)!==0)for(at=i,Ae=i.child;Ae!==null;){for(Le=at=Ae;at!==null;){switch(Re=at,rt=Re.child,Re.tag){case 0:case 11:case 14:case 15:Uc(4,Re,Re.return);break;case 1:ul(Re,Re.return);var lt=Re.stateNode;if(typeof lt.componentWillUnmount=="function"){m=Re,p=Re.return;try{s=m,lt.props=s.memoizedProps,lt.state=s.memoizedState,lt.componentWillUnmount()}catch(ct){Cr(m,p,ct)}}break;case 5:ul(Re,Re.return);break;case 22:if(Re.memoizedState!==null){Ex(Le);continue}}rt!==null?(rt.return=Re,at=rt):Ex(Le)}Ae=Ae.sibling}e:for(Ae=null,Le=i;;){if(Le.tag===5){if(Ae===null){Ae=Le;try{b=Le.stateNode,ve?(T=b.style,typeof T.setProperty=="function"?T.setProperty("display","none","important"):T.display="none"):(te=Le.stateNode,ae=Le.memoizedProps.style,O=ae!=null&&ae.hasOwnProperty("display")?ae.display:null,te.style.display=$e("display",O))}catch(ct){Cr(i,i.return,ct)}}}else if(Le.tag===6){if(Ae===null)try{Le.stateNode.nodeValue=ve?"":Le.memoizedProps}catch(ct){Cr(i,i.return,ct)}}else if((Le.tag!==22&&Le.tag!==23||Le.memoizedState===null||Le===i)&&Le.child!==null){Le.child.return=Le,Le=Le.child;continue}if(Le===i)break e;for(;Le.sibling===null;){if(Le.return===null||Le.return===i)break e;Ae===Le&&(Ae=null),Le=Le.return}Ae===Le&&(Ae=null),Le.sibling.return=Le.return,Le=Le.sibling}}break;case 19:Go(s,i),fi(i),m&4&&wx(i);break;case 21:break;default:Go(s,i),fi(i)}}function fi(i){var s=i.flags;if(s&2){try{e:{for(var p=i.return;p!==null;){if(vx(p)){var m=p;break e}p=p.return}throw Error(r(160))}switch(m.tag){case 5:var b=m.stateNode;m.flags&32&&(Qe(b,""),m.flags&=-33);var T=bx(i);Wm(i,T,b);break;case 3:case 4:var O=m.stateNode.containerInfo,te=bx(i);Vm(i,te,O);break;default:throw Error(r(161))}}catch(ae){Cr(i,i.return,ae)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function VP(i,s,p){at=i,Cx(i)}function Cx(i,s,p){for(var m=(i.mode&1)!==0;at!==null;){var b=at,T=b.child;if(b.tag===22&&m){var O=b.memoizedState!==null||op;if(!O){var te=b.alternate,ae=te!==null&&te.memoizedState!==null||bn;te=op;var ve=bn;if(op=O,(bn=ae)&&!ve)for(at=b;at!==null;)O=at,ae=O.child,O.tag===22&&O.memoizedState!==null?kx(b):ae!==null?(ae.return=O,at=ae):kx(b);for(;T!==null;)at=T,Cx(T),T=T.sibling;at=b,op=te,bn=ve}Tx(i)}else(b.subtreeFlags&8772)!==0&&T!==null?(T.return=b,at=T):Tx(i)}}function Tx(i){for(;at!==null;){var s=at;if((s.flags&8772)!==0){var p=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:bn||ip(5,s);break;case 1:var m=s.stateNode;if(s.flags&4&&!bn)if(p===null)m.componentDidMount();else{var b=s.elementType===s.type?p.memoizedProps:Wo(s.type,p.memoizedProps);m.componentDidUpdate(b,p.memoizedState,m.__reactInternalSnapshotBeforeUpdate)}var T=s.updateQueue;T!==null&&Eb(s,T,m);break;case 3:var O=s.updateQueue;if(O!==null){if(p=null,s.child!==null)switch(s.child.tag){case 5:p=s.child.stateNode;break;case 1:p=s.child.stateNode}Eb(s,O,p)}break;case 5:var te=s.stateNode;if(p===null&&s.flags&4){p=te;var ae=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":ae.autoFocus&&p.focus();break;case"img":ae.src&&(p.src=ae.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var ve=s.alternate;if(ve!==null){var Ae=ve.memoizedState;if(Ae!==null){var Le=Ae.dehydrated;Le!==null&&wc(Le)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}bn||s.flags&512&&Um(s)}catch(Re){Cr(s,s.return,Re)}}if(s===i){at=null;break}if(p=s.sibling,p!==null){p.return=s.return,at=p;break}at=s.return}}function Ex(i){for(;at!==null;){var s=at;if(s===i){at=null;break}var p=s.sibling;if(p!==null){p.return=s.return,at=p;break}at=s.return}}function kx(i){for(;at!==null;){var s=at;try{switch(s.tag){case 0:case 11:case 15:var p=s.return;try{ip(4,s)}catch(ae){Cr(s,p,ae)}break;case 1:var m=s.stateNode;if(typeof m.componentDidMount=="function"){var b=s.return;try{m.componentDidMount()}catch(ae){Cr(s,b,ae)}}var T=s.return;try{Um(s)}catch(ae){Cr(s,T,ae)}break;case 5:var O=s.return;try{Um(s)}catch(ae){Cr(s,O,ae)}}}catch(ae){Cr(s,s.return,ae)}if(s===i){at=null;break}var te=s.sibling;if(te!==null){te.return=s.return,at=te;break}at=s.return}}var WP=Math.ceil,ap=E.ReactCurrentDispatcher,qm=E.ReactCurrentOwner,ko=E.ReactCurrentBatchConfig,Ht=0,Qr=null,Nr=null,sn=0,po=0,dl=va(0),Wr=0,Vc=null,cs=0,sp=0,Gm=0,Wc=null,Hn=null,Xm=0,pl=1/0,Wi=null,lp=!1,Km=null,Ta=null,cp=!1,Ea=null,up=0,qc=0,Qm=null,dp=-1,pp=0;function Mn(){return(Ht&6)!==0?It():dp!==-1?dp:dp=It()}function ka(i){return(i.mode&1)===0?1:(Ht&2)!==0&&sn!==0?sn&-sn:jP.transition!==null?(pp===0&&(pp=bv()),pp):(i=er,i!==0||(i=window.event,i=i===void 0?16:jv(i.type)),i)}function Xo(i,s,p,m){if(50<qc)throw qc=0,Qm=null,Error(r(185));gc(i,p,m),((Ht&2)===0||i!==Qr)&&(i===Qr&&((Ht&2)===0&&(sp|=p),Wr===4&&Pa(i,sn)),Un(i,m),p===1&&Ht===0&&(s.mode&1)===0&&(pl=It()+500,Dd&&xa()))}function Un(i,s){var p=i.callbackNode;jk(i,s);var m=wd(i,i===Qr?sn:0);if(m===0)p!==null&&wt(p),i.callbackNode=null,i.callbackPriority=0;else if(s=m&-m,i.callbackPriority!==s){if(p!=null&&wt(p),s===1)i.tag===0?PP(jx.bind(null,i)):fb(jx.bind(null,i)),CP(function(){(Ht&6)===0&&xa()}),p=null;else{switch(xv(m)){case 1:p=ua;break;case 4:p=hc;break;case 16:p=$i;break;case 536870912:p=Ft;break;default:p=$i}p=Nx(p,Px.bind(null,i))}i.callbackPriority=s,i.callbackNode=p}}function Px(i,s){if(dp=-1,pp=0,(Ht&6)!==0)throw Error(r(327));var p=i.callbackNode;if(fl()&&i.callbackNode!==p)return null;var m=wd(i,i===Qr?sn:0);if(m===0)return null;if((m&30)!==0||(m&i.expiredLanes)!==0||s)s=fp(i,m);else{s=m;var b=Ht;Ht|=2;var T=Rx();(Qr!==i||sn!==s)&&(Wi=null,pl=It()+500,ds(i,s));do try{XP();break}catch(te){Mx(i,te)}while(!0);hm(),ap.current=T,Ht=b,Nr!==null?s=0:(Qr=null,sn=0,s=Wr)}if(s!==0){if(s===2&&(b=Rh(i),b!==0&&(m=b,s=Ym(i,b))),s===1)throw p=Vc,ds(i,0),Pa(i,m),Un(i,It()),p;if(s===6)Pa(i,m);else{if(b=i.current.alternate,(m&30)===0&&!qP(b)&&(s=fp(i,m),s===2&&(T=Rh(i),T!==0&&(m=T,s=Ym(i,T))),s===1))throw p=Vc,ds(i,0),Pa(i,m),Un(i,It()),p;switch(i.finishedWork=b,i.finishedLanes=m,s){case 0:case 1:throw Error(r(345));case 2:ps(i,Hn,Wi);break;case 3:if(Pa(i,m),(m&130023424)===m&&(s=Xm+500-It(),10<s)){if(wd(i,0)!==0)break;if(b=i.suspendedLanes,(b&m)!==m){Mn(),i.pingedLanes|=i.suspendedLanes&b;break}i.timeoutHandle=nm(ps.bind(null,i,Hn,Wi),s);break}ps(i,Hn,Wi);break;case 4:if(Pa(i,m),(m&4194240)===m)break;for(s=i.eventTimes,b=-1;0<m;){var O=31-Ho(m);T=1<<O,O=s[O],O>b&&(b=O),m&=~T}if(m=b,m=It()-m,m=(120>m?120:480>m?480:1080>m?1080:1920>m?1920:3e3>m?3e3:4320>m?4320:1960*WP(m/1960))-m,10<m){i.timeoutHandle=nm(ps.bind(null,i,Hn,Wi),m);break}ps(i,Hn,Wi);break;case 5:ps(i,Hn,Wi);break;default:throw Error(r(329))}}}return Un(i,It()),i.callbackNode===p?Px.bind(null,i):null}function Ym(i,s){var p=Wc;return i.current.memoizedState.isDehydrated&&(ds(i,s).flags|=256),i=fp(i,s),i!==2&&(s=Hn,Hn=p,s!==null&&Jm(s)),i}function Jm(i){Hn===null?Hn=i:Hn.push.apply(Hn,i)}function qP(i){for(var s=i;;){if(s.flags&16384){var p=s.updateQueue;if(p!==null&&(p=p.stores,p!==null))for(var m=0;m<p.length;m++){var b=p[m],T=b.getSnapshot;b=b.value;try{if(!Uo(T(),b))return!1}catch{return!1}}}if(p=s.child,s.subtreeFlags&16384&&p!==null)p.return=s,s=p;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Pa(i,s){for(s&=~Gm,s&=~sp,i.suspendedLanes|=s,i.pingedLanes&=~s,i=i.expirationTimes;0<s;){var p=31-Ho(s),m=1<<p;i[p]=-1,s&=~m}}function jx(i){if((Ht&6)!==0)throw Error(r(327));fl();var s=wd(i,0);if((s&1)===0)return Un(i,It()),null;var p=fp(i,s);if(i.tag!==0&&p===2){var m=Rh(i);m!==0&&(s=m,p=Ym(i,m))}if(p===1)throw p=Vc,ds(i,0),Pa(i,s),Un(i,It()),p;if(p===6)throw Error(r(345));return i.finishedWork=i.current.alternate,i.finishedLanes=s,ps(i,Hn,Wi),Un(i,It()),null}function Zm(i,s){var p=Ht;Ht|=1;try{return i(s)}finally{Ht=p,Ht===0&&(pl=It()+500,Dd&&xa())}}function us(i){Ea!==null&&Ea.tag===0&&(Ht&6)===0&&fl();var s=Ht;Ht|=1;var p=ko.transition,m=er;try{if(ko.transition=null,er=1,i)return i()}finally{er=m,ko.transition=p,Ht=s,(Ht&6)===0&&xa()}}function eg(){po=dl.current,hr(dl)}function ds(i,s){i.finishedWork=null,i.finishedLanes=0;var p=i.timeoutHandle;if(p!==-1&&(i.timeoutHandle=-1,SP(p)),Nr!==null)for(p=Nr.return;p!==null;){var m=p;switch(cm(m),m.tag){case 1:m=m.type.childContextTypes,m!=null&&Bd();break;case 3:ll(),hr(zn),hr(gn),Sm();break;case 5:xm(m);break;case 4:ll();break;case 13:hr(xr);break;case 19:hr(xr);break;case 10:mm(m.type._context);break;case 22:case 23:eg()}p=p.return}if(Qr=i,Nr=i=ja(i.current,null),sn=po=s,Wr=0,Vc=null,Gm=sp=cs=0,Hn=Wc=null,as!==null){for(s=0;s<as.length;s++)if(p=as[s],m=p.interleaved,m!==null){p.interleaved=null;var b=m.next,T=p.pending;if(T!==null){var O=T.next;T.next=b,m.next=O}p.pending=m}as=null}return i}function Mx(i,s){do{var p=Nr;try{if(hm(),Qd.current=ep,Yd){for(var m=wr.memoizedState;m!==null;){var b=m.queue;b!==null&&(b.pending=null),m=m.next}Yd=!1}if(ls=0,Kr=Vr=wr=null,Bc=!1,zc=0,qm.current=null,p===null||p.return===null){Wr=1,Vc=s,Nr=null;break}e:{var T=i,O=p.return,te=p,ae=s;if(s=sn,te.flags|=32768,ae!==null&&typeof ae=="object"&&typeof ae.then=="function"){var ve=ae,Ae=te,Le=Ae.tag;if((Ae.mode&1)===0&&(Le===0||Le===11||Le===15)){var Re=Ae.alternate;Re?(Ae.updateQueue=Re.updateQueue,Ae.memoizedState=Re.memoizedState,Ae.lanes=Re.lanes):(Ae.updateQueue=null,Ae.memoizedState=null)}var rt=ex(O);if(rt!==null){rt.flags&=-257,tx(rt,O,te,T,s),rt.mode&1&&Zb(T,ve,s),s=rt,ae=ve;var lt=s.updateQueue;if(lt===null){var ct=new Set;ct.add(ae),s.updateQueue=ct}else lt.add(ae);break e}else{if((s&1)===0){Zb(T,ve,s),tg();break e}ae=Error(r(426))}}else if(yr&&te.mode&1){var jr=ex(O);if(jr!==null){(jr.flags&65536)===0&&(jr.flags|=256),tx(jr,O,te,T,s),pm(cl(ae,te));break e}}T=ae=cl(ae,te),Wr!==4&&(Wr=2),Wc===null?Wc=[T]:Wc.push(T),T=O;do{switch(T.tag){case 3:T.flags|=65536,s&=-s,T.lanes|=s;var pe=Yb(T,ae,s);Tb(T,pe);break e;case 1:te=ae;var le=T.type,he=T.stateNode;if((T.flags&128)===0&&(typeof le.getDerivedStateFromError=="function"||he!==null&&typeof he.componentDidCatch=="function"&&(Ta===null||!Ta.has(he)))){T.flags|=65536,s&=-s,T.lanes|=s;var ze=Jb(T,te,s);Tb(T,ze);break e}}T=T.return}while(T!==null)}Ax(p)}catch(dt){s=dt,Nr===p&&p!==null&&(Nr=p=p.return);continue}break}while(!0)}function Rx(){var i=ap.current;return ap.current=ep,i===null?ep:i}function tg(){(Wr===0||Wr===3||Wr===2)&&(Wr=4),Qr===null||(cs&268435455)===0&&(sp&268435455)===0||Pa(Qr,sn)}function fp(i,s){var p=Ht;Ht|=2;var m=Rx();(Qr!==i||sn!==s)&&(Wi=null,ds(i,s));do try{GP();break}catch(b){Mx(i,b)}while(!0);if(hm(),Ht=p,ap.current=m,Nr!==null)throw Error(r(261));return Qr=null,sn=0,Wr}function GP(){for(;Nr!==null;)Ix(Nr)}function XP(){for(;Nr!==null&&!Pt();)Ix(Nr)}function Ix(i){var s=Ox(i.alternate,i,po);i.memoizedProps=i.pendingProps,s===null?Ax(i):Nr=s,qm.current=null}function Ax(i){var s=i;do{var p=s.alternate;if(i=s.return,(s.flags&32768)===0){if(p=DP(p,s,po),p!==null){Nr=p;return}}else{if(p=FP(p,s),p!==null){p.flags&=32767,Nr=p;return}if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{Wr=6,Nr=null;return}}if(s=s.sibling,s!==null){Nr=s;return}Nr=s=i}while(s!==null);Wr===0&&(Wr=5)}function ps(i,s,p){var m=er,b=ko.transition;try{ko.transition=null,er=1,KP(i,s,p,m)}finally{ko.transition=b,er=m}return null}function KP(i,s,p,m){do fl();while(Ea!==null);if((Ht&6)!==0)throw Error(r(327));p=i.finishedWork;var b=i.finishedLanes;if(p===null)return null;if(i.finishedWork=null,i.finishedLanes=0,p===i.current)throw Error(r(177));i.callbackNode=null,i.callbackPriority=0;var T=p.lanes|p.childLanes;if(Mk(i,T),i===Qr&&(Nr=Qr=null,sn=0),(p.subtreeFlags&2064)===0&&(p.flags&2064)===0||cp||(cp=!0,Nx($i,function(){return fl(),null})),T=(p.flags&15990)!==0,(p.subtreeFlags&15990)!==0||T){T=ko.transition,ko.transition=null;var O=er;er=1;var te=Ht;Ht|=4,qm.current=null,UP(i,p),Sx(p,i),mP(tm),Td=!!em,tm=em=null,i.current=p,VP(p),Or(),Ht=te,er=O,ko.transition=T}else i.current=p;if(cp&&(cp=!1,Ea=i,up=b),T=i.pendingLanes,T===0&&(Ta=null),ts(p.stateNode),Un(i,It()),s!==null)for(m=i.onRecoverableError,p=0;p<s.length;p++)b=s[p],m(b.value,{componentStack:b.stack,digest:b.digest});if(lp)throw lp=!1,i=Km,Km=null,i;return(up&1)!==0&&i.tag!==0&&fl(),T=i.pendingLanes,(T&1)!==0?i===Qm?qc++:(qc=0,Qm=i):qc=0,xa(),null}function fl(){if(Ea!==null){var i=xv(up),s=ko.transition,p=er;try{if(ko.transition=null,er=16>i?16:i,Ea===null)var m=!1;else{if(i=Ea,Ea=null,up=0,(Ht&6)!==0)throw Error(r(331));var b=Ht;for(Ht|=4,at=i.current;at!==null;){var T=at,O=T.child;if((at.flags&16)!==0){var te=T.deletions;if(te!==null){for(var ae=0;ae<te.length;ae++){var ve=te[ae];for(at=ve;at!==null;){var Ae=at;switch(Ae.tag){case 0:case 11:case 15:Uc(8,Ae,T)}var Le=Ae.child;if(Le!==null)Le.return=Ae,at=Le;else for(;at!==null;){Ae=at;var Re=Ae.sibling,rt=Ae.return;if(yx(Ae),Ae===ve){at=null;break}if(Re!==null){Re.return=rt,at=Re;break}at=rt}}}var lt=T.alternate;if(lt!==null){var ct=lt.child;if(ct!==null){lt.child=null;do{var jr=ct.sibling;ct.sibling=null,ct=jr}while(ct!==null)}}at=T}}if((T.subtreeFlags&2064)!==0&&O!==null)O.return=T,at=O;else e:for(;at!==null;){if(T=at,(T.flags&2048)!==0)switch(T.tag){case 0:case 11:case 15:Uc(9,T,T.return)}var pe=T.sibling;if(pe!==null){pe.return=T.return,at=pe;break e}at=T.return}}var le=i.current;for(at=le;at!==null;){O=at;var he=O.child;if((O.subtreeFlags&2064)!==0&&he!==null)he.return=O,at=he;else e:for(O=le;at!==null;){if(te=at,(te.flags&2048)!==0)try{switch(te.tag){case 0:case 11:case 15:ip(9,te)}}catch(dt){Cr(te,te.return,dt)}if(te===O){at=null;break e}var ze=te.sibling;if(ze!==null){ze.return=te.return,at=ze;break e}at=te.return}}if(Ht=b,xa(),Ur&&typeof Ur.onPostCommitFiberRoot=="function")try{Ur.onPostCommitFiberRoot(so,i)}catch{}m=!0}return m}finally{er=p,ko.transition=s}}return!1}function _x(i,s,p){s=cl(p,s),s=Yb(i,s,1),i=Sa(i,s,1),s=Mn(),i!==null&&(gc(i,1,s),Un(i,s))}function Cr(i,s,p){if(i.tag===3)_x(i,i,p);else for(;s!==null;){if(s.tag===3){_x(s,i,p);break}else if(s.tag===1){var m=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(Ta===null||!Ta.has(m))){i=cl(p,i),i=Jb(s,i,1),s=Sa(s,i,1),i=Mn(),s!==null&&(gc(s,1,i),Un(s,i));break}}s=s.return}}function QP(i,s,p){var m=i.pingCache;m!==null&&m.delete(s),s=Mn(),i.pingedLanes|=i.suspendedLanes&p,Qr===i&&(sn&p)===p&&(Wr===4||Wr===3&&(sn&130023424)===sn&&500>It()-Xm?ds(i,0):Gm|=p),Un(i,s)}function Lx(i,s){s===0&&((i.mode&1)===0?s=1:(s=xd,xd<<=1,(xd&130023424)===0&&(xd=4194304)));var p=Mn();i=Hi(i,s),i!==null&&(gc(i,s,p),Un(i,p))}function YP(i){var s=i.memoizedState,p=0;s!==null&&(p=s.retryLane),Lx(i,p)}function JP(i,s){var p=0;switch(i.tag){case 13:var m=i.stateNode,b=i.memoizedState;b!==null&&(p=b.retryLane);break;case 19:m=i.stateNode;break;default:throw Error(r(314))}m!==null&&m.delete(s),Lx(i,p)}var Ox;Ox=function(i,s,p){if(i!==null)if(i.memoizedProps!==s.pendingProps||zn.current)Fn=!0;else{if((i.lanes&p)===0&&(s.flags&128)===0)return Fn=!1,zP(i,s,p);Fn=(i.flags&131072)!==0}else Fn=!1,yr&&(s.flags&1048576)!==0&&hb(s,Hd,s.index);switch(s.lanes=0,s.tag){case 2:var m=s.type;np(i,s),i=s.pendingProps;var b=tl(s,gn.current);sl(s,p),b=Em(null,s,m,i,b,p);var T=km();return s.flags|=1,typeof b=="object"&&b!==null&&typeof b.render=="function"&&b.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,Dn(m)?(T=!0,zd(s)):T=!1,s.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,vm(s),b.updater=tp,s.stateNode=b,b._reactInternals=s,Am(s,m,i,p),s=Nm(null,s,m,!0,T,p)):(s.tag=0,yr&&T&&lm(s),jn(null,s,b,p),s=s.child),s;case 16:m=s.elementType;e:{switch(np(i,s),i=s.pendingProps,b=m._init,m=b(m._payload),s.type=m,b=s.tag=e4(m),i=Wo(m,i),b){case 0:s=Om(null,s,m,i,p);break e;case 1:s=sx(null,s,m,i,p);break e;case 11:s=rx(null,s,m,i,p);break e;case 14:s=nx(null,s,m,Wo(m.type,i),p);break e}throw Error(r(306,m,""))}return s;case 0:return m=s.type,b=s.pendingProps,b=s.elementType===m?b:Wo(m,b),Om(i,s,m,b,p);case 1:return m=s.type,b=s.pendingProps,b=s.elementType===m?b:Wo(m,b),sx(i,s,m,b,p);case 3:e:{if(lx(s),i===null)throw Error(r(387));m=s.pendingProps,T=s.memoizedState,b=T.element,Cb(i,s),Xd(s,m,null,p);var O=s.memoizedState;if(m=O.element,T.isDehydrated)if(T={element:m,isDehydrated:!1,cache:O.cache,pendingSuspenseBoundaries:O.pendingSuspenseBoundaries,transitions:O.transitions},s.updateQueue.baseState=T,s.memoizedState=T,s.flags&256){b=cl(Error(r(423)),s),s=cx(i,s,m,p,b);break e}else if(m!==b){b=cl(Error(r(424)),s),s=cx(i,s,m,p,b);break e}else for(uo=ya(s.stateNode.containerInfo.firstChild),co=s,yr=!0,Vo=null,p=wb(s,null,m,p),s.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling;else{if(ol(),m===b){s=Vi(i,s,p);break e}jn(i,s,m,p)}s=s.child}return s;case 5:return kb(s),i===null&&dm(s),m=s.type,b=s.pendingProps,T=i!==null?i.memoizedProps:null,O=b.children,rm(m,b)?O=null:T!==null&&rm(m,T)&&(s.flags|=32),ax(i,s),jn(i,s,O,p),s.child;case 6:return i===null&&dm(s),null;case 13:return ux(i,s,p);case 4:return bm(s,s.stateNode.containerInfo),m=s.pendingProps,i===null?s.child=il(s,null,m,p):jn(i,s,m,p),s.child;case 11:return m=s.type,b=s.pendingProps,b=s.elementType===m?b:Wo(m,b),rx(i,s,m,b,p);case 7:return jn(i,s,s.pendingProps,p),s.child;case 8:return jn(i,s,s.pendingProps.children,p),s.child;case 12:return jn(i,s,s.pendingProps.children,p),s.child;case 10:e:{if(m=s.type._context,b=s.pendingProps,T=s.memoizedProps,O=b.value,cr(Wd,m._currentValue),m._currentValue=O,T!==null)if(Uo(T.value,O)){if(T.children===b.children&&!zn.current){s=Vi(i,s,p);break e}}else for(T=s.child,T!==null&&(T.return=s);T!==null;){var te=T.dependencies;if(te!==null){O=T.child;for(var ae=te.firstContext;ae!==null;){if(ae.context===m){if(T.tag===1){ae=Ui(-1,p&-p),ae.tag=2;var ve=T.updateQueue;if(ve!==null){ve=ve.shared;var Ae=ve.pending;Ae===null?ae.next=ae:(ae.next=Ae.next,Ae.next=ae),ve.pending=ae}}T.lanes|=p,ae=T.alternate,ae!==null&&(ae.lanes|=p),gm(T.return,p,s),te.lanes|=p;break}ae=ae.next}}else if(T.tag===10)O=T.type===s.type?null:T.child;else if(T.tag===18){if(O=T.return,O===null)throw Error(r(341));O.lanes|=p,te=O.alternate,te!==null&&(te.lanes|=p),gm(O,p,s),O=T.sibling}else O=T.child;if(O!==null)O.return=T;else for(O=T;O!==null;){if(O===s){O=null;break}if(T=O.sibling,T!==null){T.return=O.return,O=T;break}O=O.return}T=O}jn(i,s,b.children,p),s=s.child}return s;case 9:return b=s.type,m=s.pendingProps.children,sl(s,p),b=To(b),m=m(b),s.flags|=1,jn(i,s,m,p),s.child;case 14:return m=s.type,b=Wo(m,s.pendingProps),b=Wo(m.type,b),nx(i,s,m,b,p);case 15:return ox(i,s,s.type,s.pendingProps,p);case 17:return m=s.type,b=s.pendingProps,b=s.elementType===m?b:Wo(m,b),np(i,s),s.tag=1,Dn(m)?(i=!0,zd(s)):i=!1,sl(s,p),Kb(s,m,b),Am(s,m,b,p),Nm(null,s,m,!0,i,p);case 19:return px(i,s,p);case 22:return ix(i,s,p)}throw Error(r(156,s.tag))};function Nx(i,s){return tt(i,s)}function ZP(i,s,p,m){this.tag=i,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Po(i,s,p,m){return new ZP(i,s,p,m)}function rg(i){return i=i.prototype,!(!i||!i.isReactComponent)}function e4(i){if(typeof i=="function")return rg(i)?1:0;if(i!=null){if(i=i.$$typeof,i===k)return 11;if(i===L)return 14}return 2}function ja(i,s){var p=i.alternate;return p===null?(p=Po(i.tag,s,i.key,i.mode),p.elementType=i.elementType,p.type=i.type,p.stateNode=i.stateNode,p.alternate=i,i.alternate=p):(p.pendingProps=s,p.type=i.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=i.flags&14680064,p.childLanes=i.childLanes,p.lanes=i.lanes,p.child=i.child,p.memoizedProps=i.memoizedProps,p.memoizedState=i.memoizedState,p.updateQueue=i.updateQueue,s=i.dependencies,p.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},p.sibling=i.sibling,p.index=i.index,p.ref=i.ref,p}function hp(i,s,p,m,b,T){var O=2;if(m=i,typeof i=="function")rg(i)&&(O=1);else if(typeof i=="string")O=5;else e:switch(i){case F:return fs(p.children,b,T,s);case A:O=8,b|=8;break;case H:return i=Po(12,p,s,b|2),i.elementType=H,i.lanes=T,i;case q:return i=Po(13,p,s,b),i.elementType=q,i.lanes=T,i;case U:return i=Po(19,p,s,b),i.elementType=U,i.lanes=T,i;case K:return mp(p,b,T,s);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case G:O=10;break e;case N:O=9;break e;case k:O=11;break e;case L:O=14;break e;case W:O=16,m=null;break e}throw Error(r(130,i==null?i:typeof i,""))}return s=Po(O,p,s,b),s.elementType=i,s.type=m,s.lanes=T,s}function fs(i,s,p,m){return i=Po(7,i,m,s),i.lanes=p,i}function mp(i,s,p,m){return i=Po(22,i,m,s),i.elementType=K,i.lanes=p,i.stateNode={isHidden:!1},i}function ng(i,s,p){return i=Po(6,i,null,s),i.lanes=p,i}function og(i,s,p){return s=Po(4,i.children!==null?i.children:[],i.key,s),s.lanes=p,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}function t4(i,s,p,m,b){this.tag=s,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ih(0),this.expirationTimes=Ih(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ih(0),this.identifierPrefix=m,this.onRecoverableError=b,this.mutableSourceEagerHydrationData=null}function ig(i,s,p,m,b,T,O,te,ae){return i=new t4(i,s,p,te,ae),s===1?(s=1,T===!0&&(s|=8)):s=0,T=Po(3,null,null,s),i.current=T,T.stateNode=i,T.memoizedState={element:m,isDehydrated:p,cache:null,transitions:null,pendingSuspenseBoundaries:null},vm(T),i}function r4(i,s,p){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:I,key:m==null?null:""+m,children:i,containerInfo:s,implementation:p}}function $x(i){if(!i)return ba;i=i._reactInternals;e:{if(mn(i)!==i||i.tag!==1)throw Error(r(170));var s=i;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(Dn(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(r(171))}if(i.tag===1){var p=i.type;if(Dn(p))return db(i,p,s)}return s}function Bx(i,s,p,m,b,T,O,te,ae){return i=ig(p,m,!0,i,b,T,O,te,ae),i.context=$x(null),p=i.current,m=Mn(),b=ka(p),T=Ui(m,b),T.callback=s??null,Sa(p,T,b),i.current.lanes=b,gc(i,b,m),Un(i,m),i}function gp(i,s,p,m){var b=s.current,T=Mn(),O=ka(b);return p=$x(p),s.context===null?s.context=p:s.pendingContext=p,s=Ui(T,O),s.payload={element:i},m=m===void 0?null:m,m!==null&&(s.callback=m),i=Sa(b,s,O),i!==null&&(Xo(i,b,O,T),Gd(i,b,O)),O}function yp(i){if(i=i.current,!i.child)return null;switch(i.child.tag){case 5:return i.child.stateNode;default:return i.child.stateNode}}function zx(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var p=i.retryLane;i.retryLane=p!==0&&p<s?p:s}}function ag(i,s){zx(i,s),(i=i.alternate)&&zx(i,s)}function n4(){return null}var Dx=typeof reportError=="function"?reportError:function(i){console.error(i)};function sg(i){this._internalRoot=i}vp.prototype.render=sg.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(r(409));gp(i,s,null,null)},vp.prototype.unmount=sg.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;us(function(){gp(null,i,null,null)}),s[Bi]=null}};function vp(i){this._internalRoot=i}vp.prototype.unstable_scheduleHydration=function(i){if(i){var s=Cv();i={blockedOn:null,target:i,priority:s};for(var p=0;p<ha.length&&s!==0&&s<ha[p].priority;p++);ha.splice(p,0,i),p===0&&kv(i)}};function lg(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function bp(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function Fx(){}function o4(i,s,p,m,b){if(b){if(typeof m=="function"){var T=m;m=function(){var ve=yp(O);T.call(ve)}}var O=Bx(s,m,i,0,null,!1,!1,"",Fx);return i._reactRootContainer=O,i[Bi]=O.current,Rc(i.nodeType===8?i.parentNode:i),us(),O}for(;b=i.lastChild;)i.removeChild(b);if(typeof m=="function"){var te=m;m=function(){var ve=yp(ae);te.call(ve)}}var ae=ig(i,0,!1,null,null,!1,!1,"",Fx);return i._reactRootContainer=ae,i[Bi]=ae.current,Rc(i.nodeType===8?i.parentNode:i),us(function(){gp(s,ae,p,m)}),ae}function xp(i,s,p,m,b){var T=p._reactRootContainer;if(T){var O=T;if(typeof b=="function"){var te=b;b=function(){var ae=yp(O);te.call(ae)}}gp(s,O,i,b)}else O=o4(p,s,i,b,m);return yp(O)}wv=function(i){switch(i.tag){case 3:var s=i.stateNode;if(s.current.memoizedState.isDehydrated){var p=mc(s.pendingLanes);p!==0&&(Ah(s,p|1),Un(s,It()),(Ht&6)===0&&(pl=It()+500,xa()))}break;case 13:us(function(){var m=Hi(i,1);if(m!==null){var b=Mn();Xo(m,i,1,b)}}),ag(i,1)}},_h=function(i){if(i.tag===13){var s=Hi(i,134217728);if(s!==null){var p=Mn();Xo(s,i,134217728,p)}ag(i,134217728)}},Sv=function(i){if(i.tag===13){var s=ka(i),p=Hi(i,s);if(p!==null){var m=Mn();Xo(p,i,s,m)}ag(i,s)}},Cv=function(){return er},Tv=function(i,s){var p=er;try{return er=i,s()}finally{er=p}},fn=function(i,s,p){switch(s){case"input":if(pt(i,p),s=p.name,p.type==="radio"&&s!=null){for(p=i;p.parentNode;)p=p.parentNode;for(p=p.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<p.length;s++){var m=p[s];if(m!==i&&m.form===i.form){var b=$d(m);if(!b)throw Error(r(90));Ne(m),pt(m,b)}}}break;case"textarea":Tt(i,p);break;case"select":s=p.value,s!=null&&ft(i,!!p.multiple,s,!1)}},Pn=Zm,Ct=us;var i4={usingClientEntryPoint:!1,Events:[_c,Zs,$d,br,Hr,Zm]},Gc={findFiberByHostInstance:rs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},a4={bundleType:Gc.bundleType,version:Gc.version,rendererPackageName:Gc.rendererPackageName,rendererConfig:Gc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:E.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=we(i),i===null?null:i.stateNode},findFiberByHostInstance:Gc.findFiberByHostInstance||n4,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wp.isDisabled&&wp.supportsFiber)try{so=wp.inject(a4),Ur=wp}catch{}}return Vn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=i4,Vn.createPortal=function(i,s){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!lg(s))throw Error(r(200));return r4(i,s,null,p)},Vn.createRoot=function(i,s){if(!lg(i))throw Error(r(299));var p=!1,m="",b=Dx;return s!=null&&(s.unstable_strictMode===!0&&(p=!0),s.identifierPrefix!==void 0&&(m=s.identifierPrefix),s.onRecoverableError!==void 0&&(b=s.onRecoverableError)),s=ig(i,1,!1,null,null,p,!1,m,b),i[Bi]=s.current,Rc(i.nodeType===8?i.parentNode:i),new sg(s)},Vn.findDOMNode=function(i){if(i==null)return null;if(i.nodeType===1)return i;var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=we(s),i=i===null?null:i.stateNode,i},Vn.flushSync=function(i){return us(i)},Vn.hydrate=function(i,s,p){if(!bp(s))throw Error(r(200));return xp(null,i,s,!0,p)},Vn.hydrateRoot=function(i,s,p){if(!lg(i))throw Error(r(405));var m=p!=null&&p.hydratedSources||null,b=!1,T="",O=Dx;if(p!=null&&(p.unstable_strictMode===!0&&(b=!0),p.identifierPrefix!==void 0&&(T=p.identifierPrefix),p.onRecoverableError!==void 0&&(O=p.onRecoverableError)),s=Bx(s,null,i,1,p??null,b,!1,T,O),i[Bi]=s.current,Rc(i),m)for(i=0;i<m.length;i++)p=m[i],b=p._getVersion,b=b(p._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[p,b]:s.mutableSourceEagerHydrationData.push(p,b);return new vp(s)},Vn.render=function(i,s,p){if(!bp(s))throw Error(r(200));return xp(null,i,s,!1,p)},Vn.unmountComponentAtNode=function(i){if(!bp(i))throw Error(r(40));return i._reactRootContainer?(us(function(){xp(null,null,i,!1,function(){i._reactRootContainer=null,i[Bi]=null})}),!0):!1},Vn.unstable_batchedUpdates=Zm,Vn.unstable_renderSubtreeIntoContainer=function(i,s,p,m){if(!bp(p))throw Error(r(200));if(i==null||i._reactInternals===void 0)throw Error(r(38));return xp(i,s,p,!1,m)},Vn.version="18.3.1-next-f1338f8080-20240426",Vn}var Qx;function SC(){if(Qx)return dg.exports;Qx=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),dg.exports=g4(),dg.exports}var Yx;function y4(){if(Yx)return Sp;Yx=1;var t=SC();return Sp.createRoot=t.createRoot,Sp.hydrateRoot=t.hydrateRoot,Sp}var v4=y4();const b4=Bf(v4);var CC=SC();const Cp=Bf(CC);/**
41
- * @remix-run/router v1.23.1
42
- *
43
- * Copyright (c) Remix Software Inc.
44
- *
45
- * This source code is licensed under the MIT license found in the
46
- * LICENSE.md file in the root directory of this source tree.
47
- *
48
- * @license MIT
49
- */function ju(){return ju=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ju.apply(this,arguments)}var Aa;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Aa||(Aa={}));const Jx="popstate";function x4(t){t===void 0&&(t={});function e(n,o){let{pathname:a,search:l,hash:c}=n.location;return qg("",{pathname:a,search:l,hash:c},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(n,o){return typeof o=="string"?o:TC(o)}return S4(e,r,null,t)}function Gr(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Jy(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function w4(){return Math.random().toString(36).substr(2,8)}function Zx(t,e){return{usr:t.state,key:t.key,idx:e}}function qg(t,e,r,n){return r===void 0&&(r=null),ju({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?oc(e):e,{state:r,key:e&&e.key||n||w4()})}function TC(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function oc(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function S4(t,e,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:a=!1}=n,l=o.history,c=Aa.Pop,u=null,f=h();f==null&&(f=0,l.replaceState(ju({},l.state,{idx:f}),""));function h(){return(l.state||{idx:null}).idx}function v(){c=Aa.Pop;let C=h(),j=C==null?null:C-f;f=C,u&&u({action:c,location:x.location,delta:j})}function g(C,j){c=Aa.Push;let P=qg(x.location,C,j);f=h()+1;let M=Zx(P,f),E=x.createHref(P);try{l.pushState(M,"",E)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;o.location.assign(E)}a&&u&&u({action:c,location:x.location,delta:1})}function y(C,j){c=Aa.Replace;let P=qg(x.location,C,j);f=h();let M=Zx(P,f),E=x.createHref(P);l.replaceState(M,"",E),a&&u&&u({action:c,location:x.location,delta:0})}function w(C){let j=o.location.origin!=="null"?o.location.origin:o.location.href,P=typeof C=="string"?C:TC(C);return P=P.replace(/ $/,"%20"),Gr(j,"No window.location.(origin|href) available to create URL for href: "+P),new URL(P,j)}let x={get action(){return c},get location(){return t(o,l)},listen(C){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(Jx,v),u=C,()=>{o.removeEventListener(Jx,v),u=null}},createHref(C){return e(o,C)},createURL:w,encodeLocation(C){let j=w(C);return{pathname:j.pathname,search:j.search,hash:j.hash}},push:g,replace:y,go(C){return l.go(C)}};return x}var e1;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(e1||(e1={}));function C4(t,e,r){return r===void 0&&(r="/"),T4(t,e,r)}function T4(t,e,r,n){let o=typeof e=="string"?oc(e):e,a=PC(o.pathname||"/",r);if(a==null)return null;let l=EC(t);E4(l);let c=null;for(let u=0;c==null&&u<l.length;++u){let f=$4(a);c=L4(l[u],f)}return c}function EC(t,e,r,n){e===void 0&&(e=[]),r===void 0&&(r=[]),n===void 0&&(n="");let o=(a,l,c)=>{let u={relativePath:c===void 0?a.path||"":c,caseSensitive:a.caseSensitive===!0,childrenIndex:l,route:a};u.relativePath.startsWith("/")&&(Gr(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let f=Es([n,u.relativePath]),h=r.concat(u);a.children&&a.children.length>0&&(Gr(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),EC(a.children,e,h,f)),!(a.path==null&&!a.index)&&e.push({path:f,score:A4(f,a.index),routesMeta:h})};return t.forEach((a,l)=>{var c;if(a.path===""||!((c=a.path)!=null&&c.includes("?")))o(a,l);else for(let u of kC(a.path))o(a,l,u)}),e}function kC(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return o?[a,""]:[a];let l=kC(n.join("/")),c=[];return c.push(...l.map(u=>u===""?a:[a,u].join("/"))),o&&c.push(...l),c.map(u=>t.startsWith("/")&&u===""?"/":u)}function E4(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:_4(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const k4=/^:[\w-]+$/,P4=3,j4=2,M4=1,R4=10,I4=-2,t1=t=>t==="*";function A4(t,e){let r=t.split("/"),n=r.length;return r.some(t1)&&(n+=I4),e&&(n+=j4),r.filter(o=>!t1(o)).reduce((o,a)=>o+(k4.test(a)?P4:a===""?M4:R4),n)}function _4(t,e){return t.length===e.length&&t.slice(0,-1).every((n,o)=>n===e[o])?t[t.length-1]-e[e.length-1]:0}function L4(t,e,r){let{routesMeta:n}=t,o={},a="/",l=[];for(let c=0;c<n.length;++c){let u=n[c],f=c===n.length-1,h=a==="/"?e:e.slice(a.length)||"/",v=O4({path:u.relativePath,caseSensitive:u.caseSensitive,end:f},h),g=u.route;if(!v)return null;Object.assign(o,v.params),l.push({params:o,pathname:Es([a,v.pathname]),pathnameBase:V4(Es([a,v.pathnameBase])),route:g}),v.pathnameBase!=="/"&&(a=Es([a,v.pathnameBase]))}return l}function O4(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=N4(t.path,t.caseSensitive,t.end),o=e.match(r);if(!o)return null;let a=o[0],l=a.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:n.reduce((f,h,v)=>{let{paramName:g,isOptional:y}=h;if(g==="*"){let x=c[v]||"";l=a.slice(0,a.length-x.length).replace(/(.)\/+$/,"$1")}const w=c[v];return y&&!w?f[g]=void 0:f[g]=(w||"").replace(/%2F/g,"/"),f},{}),pathname:a,pathnameBase:l,pattern:t}}function N4(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),Jy(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,c,u)=>(n.push({paramName:c,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(n.push({paramName:"*"}),o+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":t!==""&&t!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,e?void 0:"i"),n]}function $4(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Jy(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function PC(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}const B4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,z4=t=>B4.test(t);function D4(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:o=""}=typeof t=="string"?oc(t):t,a;if(r)if(z4(r))a=r;else{if(r.includes("//")){let l=r;r=r.replace(/\/\/+/g,"/"),Jy(!1,"Pathnames cannot have embedded double slashes - normalizing "+(l+" -> "+r))}r.startsWith("/")?a=r1(r.substring(1),"/"):a=r1(r,e)}else a=e;return{pathname:a,search:W4(n),hash:q4(o)}}function r1(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function hg(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function F4(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function H4(t,e){let r=F4(t);return e?r.map((n,o)=>o===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function U4(t,e,r,n){n===void 0&&(n=!1);let o;typeof t=="string"?o=oc(t):(o=ju({},t),Gr(!o.pathname||!o.pathname.includes("?"),hg("?","pathname","search",o)),Gr(!o.pathname||!o.pathname.includes("#"),hg("#","pathname","hash",o)),Gr(!o.search||!o.search.includes("#"),hg("#","search","hash",o)));let a=t===""||o.pathname==="",l=a?"/":o.pathname,c;if(l==null)c=r;else{let v=e.length-1;if(!n&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),v-=1;o.pathname=g.join("/")}c=v>=0?e[v]:"/"}let u=D4(o,c),f=l&&l!=="/"&&l.endsWith("/"),h=(a||l===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(f||h)&&(u.pathname+="/"),u}const Es=t=>t.join("/").replace(/\/\/+/g,"/"),V4=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),W4=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,q4=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function G4(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const jC=["post","put","patch","delete"];new Set(jC);const X4=["get",...jC];new Set(X4);/**
50
- * React Router v6.30.2
51
- *
52
- * Copyright (c) Remix Software Inc.
53
- *
54
- * This source code is licensed under the MIT license found in the
55
- * LICENSE.md file in the root directory of this source tree.
56
- *
57
- * @license MIT
58
- */function Mu(){return Mu=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Mu.apply(this,arguments)}const Zy=S.createContext(null),K4=S.createContext(null),Zu=S.createContext(null),zf=S.createContext(null),ic=S.createContext({outlet:null,matches:[],isDataRoute:!1}),MC=S.createContext(null);function Df(){return S.useContext(zf)!=null}function e0(){return Df()||Gr(!1),S.useContext(zf).location}function RC(t){S.useContext(Zu).static||S.useLayoutEffect(t)}function t0(){let{isDataRoute:t}=S.useContext(ic);return t?l5():Q4()}function Q4(){Df()||Gr(!1);let t=S.useContext(Zy),{basename:e,future:r,navigator:n}=S.useContext(Zu),{matches:o}=S.useContext(ic),{pathname:a}=e0(),l=JSON.stringify(H4(o,r.v7_relativeSplatPath)),c=S.useRef(!1);return RC(()=>{c.current=!0}),S.useCallback(function(f,h){if(h===void 0&&(h={}),!c.current)return;if(typeof f=="number"){n.go(f);return}let v=U4(f,JSON.parse(l),a,h.relative==="path");t==null&&e!=="/"&&(v.pathname=v.pathname==="/"?e:Es([e,v.pathname])),(h.replace?n.replace:n.push)(v,h.state,h)},[e,n,l,a,t])}function Y4(t,e){return J4(t,e)}function J4(t,e,r,n){Df()||Gr(!1);let{navigator:o}=S.useContext(Zu),{matches:a}=S.useContext(ic),l=a[a.length-1],c=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let f=e0(),h;if(e){var v;let C=typeof e=="string"?oc(e):e;u==="/"||(v=C.pathname)!=null&&v.startsWith(u)||Gr(!1),h=C}else h=f;let g=h.pathname||"/",y=g;if(u!=="/"){let C=u.replace(/^\//,"").split("/");y="/"+g.replace(/^\//,"").split("/").slice(C.length).join("/")}let w=C4(t,{pathname:y}),x=n5(w&&w.map(C=>Object.assign({},C,{params:Object.assign({},c,C.params),pathname:Es([u,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?u:Es([u,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),a,r,n);return e&&x?S.createElement(zf.Provider,{value:{location:Mu({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:Aa.Pop}},x):x}function Z4(){let t=s5(),e=G4(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},e),r?S.createElement("pre",{style:o},r):null,null)}const e5=S.createElement(Z4,null);class t5 extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error!==void 0?S.createElement(ic.Provider,{value:this.props.routeContext},S.createElement(MC.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function r5(t){let{routeContext:e,match:r,children:n}=t,o=S.useContext(Zy);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),S.createElement(ic.Provider,{value:e},n)}function n5(t,e,r,n){var o;if(e===void 0&&(e=[]),r===void 0&&(r=null),n===void 0&&(n=null),t==null){var a;if(!r)return null;if(r.errors)t=r.matches;else if((a=n)!=null&&a.v7_partialHydration&&e.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let l=t,c=(o=r)==null?void 0:o.errors;if(c!=null){let h=l.findIndex(v=>v.route.id&&(c==null?void 0:c[v.route.id])!==void 0);h>=0||Gr(!1),l=l.slice(0,Math.min(l.length,h+1))}let u=!1,f=-1;if(r&&n&&n.v7_partialHydration)for(let h=0;h<l.length;h++){let v=l[h];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(f=h),v.route.id){let{loaderData:g,errors:y}=r,w=v.route.loader&&g[v.route.id]===void 0&&(!y||y[v.route.id]===void 0);if(v.route.lazy||w){u=!0,f>=0?l=l.slice(0,f+1):l=[l[0]];break}}}return l.reduceRight((h,v,g)=>{let y,w=!1,x=null,C=null;r&&(y=c&&v.route.id?c[v.route.id]:void 0,x=v.route.errorElement||e5,u&&(f<0&&g===0?(c5("route-fallback"),w=!0,C=null):f===g&&(w=!0,C=v.route.hydrateFallbackElement||null)));let j=e.concat(l.slice(0,g+1)),P=()=>{let M;return y?M=x:w?M=C:v.route.Component?M=S.createElement(v.route.Component,null):v.route.element?M=v.route.element:M=h,S.createElement(r5,{match:v,routeContext:{outlet:h,matches:j,isDataRoute:r!=null},children:M})};return r&&(v.route.ErrorBoundary||v.route.errorElement||g===0)?S.createElement(t5,{location:r.location,revalidation:r.revalidation,component:x,error:y,children:P(),routeContext:{outlet:null,matches:j,isDataRoute:!0}}):P()},null)}var IC=(function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t})(IC||{}),AC=(function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t})(AC||{});function o5(t){let e=S.useContext(Zy);return e||Gr(!1),e}function i5(t){let e=S.useContext(K4);return e||Gr(!1),e}function a5(t){let e=S.useContext(ic);return e||Gr(!1),e}function _C(t){let e=a5(),r=e.matches[e.matches.length-1];return r.route.id||Gr(!1),r.route.id}function s5(){var t;let e=S.useContext(MC),r=i5(),n=_C();return e!==void 0?e:(t=r.errors)==null?void 0:t[n]}function l5(){let{router:t}=o5(IC.UseNavigateStable),e=_C(AC.UseNavigateStable),r=S.useRef(!1);return RC(()=>{r.current=!0}),S.useCallback(function(o,a){a===void 0&&(a={}),r.current&&(typeof o=="number"?t.navigate(o):t.navigate(o,Mu({fromRouteId:e},a)))},[t,e])}const n1={};function c5(t,e,r){n1[t]||(n1[t]=!0)}function u5(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function Qi(t){Gr(!1)}function d5(t){let{basename:e="/",children:r=null,location:n,navigationType:o=Aa.Pop,navigator:a,static:l=!1,future:c}=t;Df()&&Gr(!1);let u=e.replace(/^\/*/,"/"),f=S.useMemo(()=>({basename:u,navigator:a,static:l,future:Mu({v7_relativeSplatPath:!1},c)}),[u,c,a,l]);typeof n=="string"&&(n=oc(n));let{pathname:h="/",search:v="",hash:g="",state:y=null,key:w="default"}=n,x=S.useMemo(()=>{let C=PC(h,u);return C==null?null:{location:{pathname:C,search:v,hash:g,state:y,key:w},navigationType:o}},[u,h,v,g,y,w,o]);return x==null?null:S.createElement(Zu.Provider,{value:f},S.createElement(zf.Provider,{children:r,value:x}))}function p5(t){let{children:e,location:r}=t;return Y4(Gg(e),r)}new Promise(()=>{});function Gg(t,e){e===void 0&&(e=[]);let r=[];return S.Children.forEach(t,(n,o)=>{if(!S.isValidElement(n))return;let a=[...e,o];if(n.type===S.Fragment){r.push.apply(r,Gg(n.props.children,a));return}n.type!==Qi&&Gr(!1),!n.props.index||!n.props.children||Gr(!1);let l={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(l.children=Gg(n.props.children,a)),r.push(l)}),r}/**
59
- * React Router DOM v6.30.2
60
- *
61
- * Copyright (c) Remix Software Inc.
62
- *
63
- * This source code is licensed under the MIT license found in the
64
- * LICENSE.md file in the root directory of this source tree.
65
- *
66
- * @license MIT
67
- */const f5="6";try{window.__reactRouterVersion=f5}catch{}const h5="startTransition",o1=Pu[h5];function m5(t){let{basename:e,children:r,future:n,window:o}=t,a=S.useRef();a.current==null&&(a.current=x4({window:o,v5Compat:!0}));let l=a.current,[c,u]=S.useState({action:l.action,location:l.location}),{v7_startTransition:f}=n||{},h=S.useCallback(v=>{f&&o1?o1(()=>u(v)):u(v)},[u,f]);return S.useLayoutEffect(()=>l.listen(h),[l,h]),S.useEffect(()=>u5(n),[n]),S.createElement(d5,{basename:e,children:r,location:c.location,navigationType:c.action,navigator:l,future:n})}var i1;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(i1||(i1={}));var a1;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(a1||(a1={}));const Ru={black:"#000",white:"#fff"},hl={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},ml={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},gl={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},yl={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},vl={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Kc={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},g5={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Zi(t,...e){const r=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${t}; visit ${r} for the full message.`}const Jo="$$material";function ff(){return ff=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ff.apply(null,arguments)}function y5(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function v5(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var b5=(function(){function t(r){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(n){n.forEach(this._insertTag)},e.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(v5(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=y5(o);try{a.insertRule(n,a.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},e.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},t})(),xn="-ms-",hf="-moz-",Kt="-webkit-",LC="comm",r0="rule",n0="decl",x5="@import",OC="@keyframes",w5="@layer",S5=Math.abs,Ff=String.fromCharCode,C5=Object.assign;function T5(t,e){return ln(t,0)^45?(((e<<2^ln(t,0))<<2^ln(t,1))<<2^ln(t,2))<<2^ln(t,3):0}function NC(t){return t.trim()}function E5(t,e){return(t=e.exec(t))?t[0]:t}function Qt(t,e,r){return t.replace(e,r)}function Xg(t,e){return t.indexOf(e)}function ln(t,e){return t.charCodeAt(e)|0}function Iu(t,e,r){return t.slice(e,r)}function xi(t){return t.length}function o0(t){return t.length}function Tp(t,e){return e.push(t),t}function k5(t,e){return t.map(e).join("")}var Hf=1,Ol=1,$C=0,Kn=0,$r=0,ac="";function Uf(t,e,r,n,o,a,l){return{value:t,root:e,parent:r,type:n,props:o,children:a,line:Hf,column:Ol,length:l,return:""}}function Qc(t,e){return C5(Uf("",null,null,"",null,null,0),t,{length:-t.length},e)}function P5(){return $r}function j5(){return $r=Kn>0?ln(ac,--Kn):0,Ol--,$r===10&&(Ol=1,Hf--),$r}function vo(){return $r=Kn<$C?ln(ac,Kn++):0,Ol++,$r===10&&(Ol=1,Hf++),$r}function Ti(){return ln(ac,Kn)}function Jp(){return Kn}function ed(t,e){return Iu(ac,t,e)}function Au(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function BC(t){return Hf=Ol=1,$C=xi(ac=t),Kn=0,[]}function zC(t){return ac="",t}function Zp(t){return NC(ed(Kn-1,Kg(t===91?t+2:t===40?t+1:t)))}function M5(t){for(;($r=Ti())&&$r<33;)vo();return Au(t)>2||Au($r)>3?"":" "}function R5(t,e){for(;--e&&vo()&&!($r<48||$r>102||$r>57&&$r<65||$r>70&&$r<97););return ed(t,Jp()+(e<6&&Ti()==32&&vo()==32))}function Kg(t){for(;vo();)switch($r){case t:return Kn;case 34:case 39:t!==34&&t!==39&&Kg($r);break;case 40:t===41&&Kg(t);break;case 92:vo();break}return Kn}function I5(t,e){for(;vo()&&t+$r!==57;)if(t+$r===84&&Ti()===47)break;return"/*"+ed(e,Kn-1)+"*"+Ff(t===47?t:vo())}function A5(t){for(;!Au(Ti());)vo();return ed(t,Kn)}function _5(t){return zC(ef("",null,null,null,[""],t=BC(t),0,[0],t))}function ef(t,e,r,n,o,a,l,c,u){for(var f=0,h=0,v=l,g=0,y=0,w=0,x=1,C=1,j=1,P=0,M="",E=o,R=a,I=n,F=M;C;)switch(w=P,P=vo()){case 40:if(w!=108&&ln(F,v-1)==58){Xg(F+=Qt(Zp(P),"&","&\f"),"&\f")!=-1&&(j=-1);break}case 34:case 39:case 91:F+=Zp(P);break;case 9:case 10:case 13:case 32:F+=M5(w);break;case 92:F+=R5(Jp()-1,7);continue;case 47:switch(Ti()){case 42:case 47:Tp(L5(I5(vo(),Jp()),e,r),u);break;default:F+="/"}break;case 123*x:c[f++]=xi(F)*j;case 125*x:case 59:case 0:switch(P){case 0:case 125:C=0;case 59+h:j==-1&&(F=Qt(F,/\f/g,"")),y>0&&xi(F)-v&&Tp(y>32?l1(F+";",n,r,v-1):l1(Qt(F," ","")+";",n,r,v-2),u);break;case 59:F+=";";default:if(Tp(I=s1(F,e,r,f,h,o,c,M,E=[],R=[],v),a),P===123)if(h===0)ef(F,e,I,I,E,a,v,c,R);else switch(g===99&&ln(F,3)===110?100:g){case 100:case 108:case 109:case 115:ef(t,I,I,n&&Tp(s1(t,I,I,0,0,o,c,M,o,E=[],v),R),o,R,v,c,n?E:R);break;default:ef(F,I,I,I,[""],R,0,c,R)}}f=h=y=0,x=j=1,M=F="",v=l;break;case 58:v=1+xi(F),y=w;default:if(x<1){if(P==123)--x;else if(P==125&&x++==0&&j5()==125)continue}switch(F+=Ff(P),P*x){case 38:j=h>0?1:(F+="\f",-1);break;case 44:c[f++]=(xi(F)-1)*j,j=1;break;case 64:Ti()===45&&(F+=Zp(vo())),g=Ti(),h=v=xi(M=F+=A5(Jp())),P++;break;case 45:w===45&&xi(F)==2&&(x=0)}}return a}function s1(t,e,r,n,o,a,l,c,u,f,h){for(var v=o-1,g=o===0?a:[""],y=o0(g),w=0,x=0,C=0;w<n;++w)for(var j=0,P=Iu(t,v+1,v=S5(x=l[w])),M=t;j<y;++j)(M=NC(x>0?g[j]+" "+P:Qt(P,/&\f/g,g[j])))&&(u[C++]=M);return Uf(t,e,r,o===0?r0:c,u,f,h)}function L5(t,e,r){return Uf(t,e,r,LC,Ff(P5()),Iu(t,2,-2),0)}function l1(t,e,r,n){return Uf(t,e,r,n0,Iu(t,0,n),Iu(t,n+1,-1),n)}function Ml(t,e){for(var r="",n=o0(t),o=0;o<n;o++)r+=e(t[o],o,t,e)||"";return r}function O5(t,e,r,n){switch(t.type){case w5:if(t.children.length)break;case x5:case n0:return t.return=t.return||t.value;case LC:return"";case OC:return t.return=t.value+"{"+Ml(t.children,n)+"}";case r0:t.value=t.props.join(",")}return xi(r=Ml(t.children,n))?t.return=t.value+"{"+r+"}":""}function N5(t){var e=o0(t);return function(r,n,o,a){for(var l="",c=0;c<e;c++)l+=t[c](r,n,o,a)||"";return l}}function $5(t){return function(e){e.root||(e=e.return)&&t(e)}}function DC(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var B5=function(e,r,n){for(var o=0,a=0;o=a,a=Ti(),o===38&&a===12&&(r[n]=1),!Au(a);)vo();return ed(e,Kn)},z5=function(e,r){var n=-1,o=44;do switch(Au(o)){case 0:o===38&&Ti()===12&&(r[n]=1),e[n]+=B5(Kn-1,r,n);break;case 2:e[n]+=Zp(o);break;case 4:if(o===44){e[++n]=Ti()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=Ff(o)}while(o=vo());return e},D5=function(e,r){return zC(z5(BC(e),r))},c1=new WeakMap,F5=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var r=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&r.charCodeAt(0)!==58&&!c1.get(n))&&!o){c1.set(e,!0);for(var a=[],l=D5(r,a),c=n.props,u=0,f=0;u<l.length;u++)for(var h=0;h<c.length;h++,f++)e.props[f]=a[u]?l[u].replace(/&\f/g,c[h]):c[h]+" "+l[u]}}},H5=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}};function FC(t,e){switch(T5(t,e)){case 5103:return Kt+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Kt+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return Kt+t+hf+t+xn+t+t;case 6828:case 4268:return Kt+t+xn+t+t;case 6165:return Kt+t+xn+"flex-"+t+t;case 5187:return Kt+t+Qt(t,/(\w+).+(:[^]+)/,Kt+"box-$1$2"+xn+"flex-$1$2")+t;case 5443:return Kt+t+xn+"flex-item-"+Qt(t,/flex-|-self/,"")+t;case 4675:return Kt+t+xn+"flex-line-pack"+Qt(t,/align-content|flex-|-self/,"")+t;case 5548:return Kt+t+xn+Qt(t,"shrink","negative")+t;case 5292:return Kt+t+xn+Qt(t,"basis","preferred-size")+t;case 6060:return Kt+"box-"+Qt(t,"-grow","")+Kt+t+xn+Qt(t,"grow","positive")+t;case 4554:return Kt+Qt(t,/([^-])(transform)/g,"$1"+Kt+"$2")+t;case 6187:return Qt(Qt(Qt(t,/(zoom-|grab)/,Kt+"$1"),/(image-set)/,Kt+"$1"),t,"")+t;case 5495:case 3959:return Qt(t,/(image-set\([^]*)/,Kt+"$1$`$1");case 4968:return Qt(Qt(t,/(.+:)(flex-)?(.*)/,Kt+"box-pack:$3"+xn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Kt+t+t;case 4095:case 3583:case 4068:case 2532:return Qt(t,/(.+)-inline(.+)/,Kt+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(xi(t)-1-e>6)switch(ln(t,e+1)){case 109:if(ln(t,e+4)!==45)break;case 102:return Qt(t,/(.+:)(.+)-([^]+)/,"$1"+Kt+"$2-$3$1"+hf+(ln(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Xg(t,"stretch")?FC(Qt(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(ln(t,e+1)!==115)break;case 6444:switch(ln(t,xi(t)-3-(~Xg(t,"!important")&&10))){case 107:return Qt(t,":",":"+Kt)+t;case 101:return Qt(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Kt+(ln(t,14)===45?"inline-":"")+"box$3$1"+Kt+"$2$3$1"+xn+"$2box$3")+t}break;case 5936:switch(ln(t,e+11)){case 114:return Kt+t+xn+Qt(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Kt+t+xn+Qt(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Kt+t+xn+Qt(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Kt+t+xn+t+t}return t}var U5=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case n0:e.return=FC(e.value,e.length);break;case OC:return Ml([Qc(e,{value:Qt(e.value,"@","@"+Kt)})],o);case r0:if(e.length)return k5(e.props,function(a){switch(E5(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ml([Qc(e,{props:[Qt(a,/:(read-\w+)/,":"+hf+"$1")]})],o);case"::placeholder":return Ml([Qc(e,{props:[Qt(a,/:(plac\w+)/,":"+Kt+"input-$1")]}),Qc(e,{props:[Qt(a,/:(plac\w+)/,":"+hf+"$1")]}),Qc(e,{props:[Qt(a,/:(plac\w+)/,xn+"input-$1")]})],o)}return""})}},V5=[U5],W5=function(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(x){var C=x.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=e.stylisPlugins||V5,a={},l,c=[];l=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(x){for(var C=x.getAttribute("data-emotion").split(" "),j=1;j<C.length;j++)a[C[j]]=!0;c.push(x)});var u,f=[F5,H5];{var h,v=[O5,$5(function(x){h.insert(x)})],g=N5(f.concat(o,v)),y=function(C){return Ml(_5(C),g)};u=function(C,j,P,M){h=P,y(C?C+"{"+j.styles+"}":j.styles),M&&(w.inserted[j.name]=!0)}}var w={key:r,sheet:new b5({key:r,container:l,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:u};return w.sheet.hydrate(c),w},mg={exports:{}},Jt={};/** @license React v16.13.1
68
- * react-is.production.min.js
69
- *
70
- * Copyright (c) Facebook, Inc. and its affiliates.
71
- *
72
- * This source code is licensed under the MIT license found in the
73
- * LICENSE file in the root directory of this source tree.
74
- */var u1;function q5(){if(u1)return Jt;u1=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,l=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,f=t?Symbol.for("react.concurrent_mode"):60111,h=t?Symbol.for("react.forward_ref"):60112,v=t?Symbol.for("react.suspense"):60113,g=t?Symbol.for("react.suspense_list"):60120,y=t?Symbol.for("react.memo"):60115,w=t?Symbol.for("react.lazy"):60116,x=t?Symbol.for("react.block"):60121,C=t?Symbol.for("react.fundamental"):60117,j=t?Symbol.for("react.responder"):60118,P=t?Symbol.for("react.scope"):60119;function M(R){if(typeof R=="object"&&R!==null){var I=R.$$typeof;switch(I){case e:switch(R=R.type,R){case u:case f:case n:case a:case o:case v:return R;default:switch(R=R&&R.$$typeof,R){case c:case h:case w:case y:case l:return R;default:return I}}case r:return I}}}function E(R){return M(R)===f}return Jt.AsyncMode=u,Jt.ConcurrentMode=f,Jt.ContextConsumer=c,Jt.ContextProvider=l,Jt.Element=e,Jt.ForwardRef=h,Jt.Fragment=n,Jt.Lazy=w,Jt.Memo=y,Jt.Portal=r,Jt.Profiler=a,Jt.StrictMode=o,Jt.Suspense=v,Jt.isAsyncMode=function(R){return E(R)||M(R)===u},Jt.isConcurrentMode=E,Jt.isContextConsumer=function(R){return M(R)===c},Jt.isContextProvider=function(R){return M(R)===l},Jt.isElement=function(R){return typeof R=="object"&&R!==null&&R.$$typeof===e},Jt.isForwardRef=function(R){return M(R)===h},Jt.isFragment=function(R){return M(R)===n},Jt.isLazy=function(R){return M(R)===w},Jt.isMemo=function(R){return M(R)===y},Jt.isPortal=function(R){return M(R)===r},Jt.isProfiler=function(R){return M(R)===a},Jt.isStrictMode=function(R){return M(R)===o},Jt.isSuspense=function(R){return M(R)===v},Jt.isValidElementType=function(R){return typeof R=="string"||typeof R=="function"||R===n||R===f||R===a||R===o||R===v||R===g||typeof R=="object"&&R!==null&&(R.$$typeof===w||R.$$typeof===y||R.$$typeof===l||R.$$typeof===c||R.$$typeof===h||R.$$typeof===C||R.$$typeof===j||R.$$typeof===P||R.$$typeof===x)},Jt.typeOf=M,Jt}var d1;function G5(){return d1||(d1=1,mg.exports=q5()),mg.exports}var gg,p1;function X5(){if(p1)return gg;p1=1;var t=G5(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[t.ForwardRef]=n,a[t.Memo]=o;function l(w){return t.isMemo(w)?o:a[w.$$typeof]||e}var c=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,v=Object.getPrototypeOf,g=Object.prototype;function y(w,x,C){if(typeof x!="string"){if(g){var j=v(x);j&&j!==g&&y(w,j,C)}var P=u(x);f&&(P=P.concat(f(x)));for(var M=l(w),E=l(x),R=0;R<P.length;++R){var I=P[R];if(!r[I]&&!(C&&C[I])&&!(E&&E[I])&&!(M&&M[I])){var F=h(x,I);try{c(w,I,F)}catch{}}}}return w}return gg=y,gg}X5();var K5=!0;function HC(t,e,r){var n="";return r.split(" ").forEach(function(o){t[o]!==void 0?e.push(t[o]+";"):o&&(n+=o+" ")}),n}var i0=function(e,r,n){var o=e.key+"-"+r.name;(n===!1||K5===!1)&&e.registered[o]===void 0&&(e.registered[o]=r.styles)},a0=function(e,r,n){i0(e,r,n);var o=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var a=r;do e.insert(r===a?"."+o:"",a,e.sheet,!0),a=a.next;while(a!==void 0)}};function Q5(t){for(var e=0,r,n=0,o=t.length;o>=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Y5={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},J5=/[A-Z]|^ms/g,Z5=/_EMO_([^_]+?)_([^]*?)_EMO_/g,UC=function(e){return e.charCodeAt(1)===45},f1=function(e){return e!=null&&typeof e!="boolean"},yg=DC(function(t){return UC(t)?t:t.replace(J5,"-$&").toLowerCase()}),h1=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(Z5,function(n,o,a){return wi={name:o,styles:a,next:wi},o})}return Y5[e]!==1&&!UC(e)&&typeof r=="number"&&r!==0?r+"px":r};function _u(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return wi={name:o.name,styles:o.styles,next:wi},o.name;var a=r;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)wi={name:l.name,styles:l.styles,next:wi},l=l.next;var c=a.styles+";";return c}return e3(t,e,r)}case"function":{if(t!==void 0){var u=wi,f=r(t);return wi=u,_u(t,e,f)}break}}var h=r;if(e==null)return h;var v=e[h];return v!==void 0?v:h}function e3(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=_u(t,e,r[o])+";";else for(var a in r){var l=r[a];if(typeof l!="object"){var c=l;e!=null&&e[c]!==void 0?n+=a+"{"+e[c]+"}":f1(c)&&(n+=yg(a)+":"+h1(a,c)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(e==null||e[l[0]]===void 0))for(var u=0;u<l.length;u++)f1(l[u])&&(n+=yg(a)+":"+h1(a,l[u])+";");else{var f=_u(t,e,l);switch(a){case"animation":case"animationName":{n+=yg(a)+":"+f+";";break}default:n+=a+"{"+f+"}"}}}return n}var m1=/label:\s*([^\s;{]+)\s*(;|$)/g,wi;function td(t,e,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var n=!0,o="";wi=void 0;var a=t[0];if(a==null||a.raw===void 0)n=!1,o+=_u(r,e,a);else{var l=a;o+=l[0]}for(var c=1;c<t.length;c++)if(o+=_u(r,e,t[c]),n){var u=a;o+=u[c]}m1.lastIndex=0;for(var f="",h;(h=m1.exec(o))!==null;)f+="-"+h[1];var v=Q5(o)+f;return{name:v,styles:o,next:wi}}var t3=function(e){return e()},VC=Pu.useInsertionEffect?Pu.useInsertionEffect:!1,WC=VC||t3,g1=VC||S.useLayoutEffect,qC=S.createContext(typeof HTMLElement<"u"?W5({key:"css"}):null);qC.Provider;var s0=function(e){return S.forwardRef(function(r,n){var o=S.useContext(qC);return e(r,o,n)})},rd=S.createContext({}),l0={}.hasOwnProperty,Qg="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",r3=function(e,r){var n={};for(var o in r)l0.call(r,o)&&(n[o]=r[o]);return n[Qg]=e,n},n3=function(e){var r=e.cache,n=e.serialized,o=e.isStringTag;return i0(r,n,o),WC(function(){return a0(r,n,o)}),null},o3=s0(function(t,e,r){var n=t.css;typeof n=="string"&&e.registered[n]!==void 0&&(n=e.registered[n]);var o=t[Qg],a=[n],l="";typeof t.className=="string"?l=HC(e.registered,a,t.className):t.className!=null&&(l=t.className+" ");var c=td(a,void 0,S.useContext(rd));l+=e.key+"-"+c.name;var u={};for(var f in t)l0.call(t,f)&&f!=="css"&&f!==Qg&&(u[f]=t[f]);return u.className=l,r&&(u.ref=r),S.createElement(S.Fragment,null,S.createElement(n3,{cache:e,serialized:c,isStringTag:typeof o=="string"}),S.createElement(o,u))}),i3=o3,y1=function(e,r){var n=arguments;if(r==null||!l0.call(r,"css"))return S.createElement.apply(void 0,n);var o=n.length,a=new Array(o);a[0]=i3,a[1]=r3(e,r);for(var l=2;l<o;l++)a[l]=n[l];return S.createElement.apply(null,a)};(function(t){var e;e||(e=t.JSX||(t.JSX={}))})(y1||(y1={}));var a3=s0(function(t,e){var r=t.styles,n=td([r],void 0,S.useContext(rd)),o=S.useRef();return g1(function(){var a=e.key+"-global",l=new e.sheet.constructor({key:a,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),c=!1,u=document.querySelector('style[data-emotion="'+a+" "+n.name+'"]');return e.sheet.tags.length&&(l.before=e.sheet.tags[0]),u!==null&&(c=!0,u.setAttribute("data-emotion",a),l.hydrate([u])),o.current=[l,c],function(){l.flush()}},[e]),g1(function(){var a=o.current,l=a[0],c=a[1];if(c){a[1]=!1;return}if(n.next!==void 0&&a0(e,n.next,!0),l.tags.length){var u=l.tags[l.tags.length-1].nextElementSibling;l.before=u,l.flush()}e.insert("",n,l,!1)},[e,n.name]),null});function Xa(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return td(e)}function Li(){var t=Xa.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var s3=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,l3=DC(function(t){return s3.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),c3=l3,u3=function(e){return e!=="theme"},v1=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?c3:u3},b1=function(e,r,n){var o;if(r){var a=r.shouldForwardProp;o=e.__emotion_forwardProp&&a?function(l){return e.__emotion_forwardProp(l)&&a(l)}:a}return typeof o!="function"&&n&&(o=e.__emotion_forwardProp),o},d3=function(e){var r=e.cache,n=e.serialized,o=e.isStringTag;return i0(r,n,o),WC(function(){return a0(r,n,o)}),null},p3=function t(e,r){var n=e.__emotion_real===e,o=n&&e.__emotion_base||e,a,l;r!==void 0&&(a=r.label,l=r.target);var c=b1(e,r,n),u=c||v1(o),f=!u("as");return function(){var h=arguments,v=n&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(a!==void 0&&v.push("label:"+a+";"),h[0]==null||h[0].raw===void 0)v.push.apply(v,h);else{var g=h[0];v.push(g[0]);for(var y=h.length,w=1;w<y;w++)v.push(h[w],g[w])}var x=s0(function(C,j,P){var M=f&&C.as||o,E="",R=[],I=C;if(C.theme==null){I={};for(var F in C)I[F]=C[F];I.theme=S.useContext(rd)}typeof C.className=="string"?E=HC(j.registered,R,C.className):C.className!=null&&(E=C.className+" ");var A=td(v.concat(R),j.registered,I);E+=j.key+"-"+A.name,l!==void 0&&(E+=" "+l);var H=f&&c===void 0?v1(M):u,G={};for(var N in C)f&&N==="as"||H(N)&&(G[N]=C[N]);return G.className=E,P&&(G.ref=P),S.createElement(S.Fragment,null,S.createElement(d3,{cache:j,serialized:A,isStringTag:typeof M=="string"}),S.createElement(M,G))});return x.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",x.defaultProps=e.defaultProps,x.__emotion_real=x,x.__emotion_base=o,x.__emotion_styles=v,x.__emotion_forwardProp=c,Object.defineProperty(x,"toString",{value:function(){return"."+l}}),x.withComponent=function(C,j){var P=t(C,ff({},r,j,{shouldForwardProp:b1(x,j,!0)}));return P.apply(void 0,v)},x}},f3=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Yg=p3.bind(null);f3.forEach(function(t){Yg[t]=Yg(t)});function h3(t){return t==null||Object.keys(t).length===0}function GC(t){const{styles:e,defaultTheme:r={}}=t,n=typeof e=="function"?o=>e(h3(o)?r:o):e;return d.jsx(a3,{styles:n})}function XC(t,e){return Yg(t,e)}function m3(t,e){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}const x1=[];function Oa(t){return x1[0]=t,td(x1)}var vg={exports:{}},ir={};/**
75
- * @license React
76
- * react-is.production.js
77
- *
78
- * Copyright (c) Meta Platforms, Inc. and affiliates.
79
- *
80
- * This source code is licensed under the MIT license found in the
81
- * LICENSE file in the root directory of this source tree.
82
- */var w1;function g3(){if(w1)return ir;w1=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function w(x){if(typeof x=="object"&&x!==null){var C=x.$$typeof;switch(C){case t:switch(x=x.type,x){case r:case o:case n:case u:case f:case g:return x;default:switch(x=x&&x.$$typeof,x){case l:case c:case v:case h:return x;case a:return x;default:return C}}case e:return C}}}return ir.ContextConsumer=a,ir.ContextProvider=l,ir.Element=t,ir.ForwardRef=c,ir.Fragment=r,ir.Lazy=v,ir.Memo=h,ir.Portal=e,ir.Profiler=o,ir.StrictMode=n,ir.Suspense=u,ir.SuspenseList=f,ir.isContextConsumer=function(x){return w(x)===a},ir.isContextProvider=function(x){return w(x)===l},ir.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},ir.isForwardRef=function(x){return w(x)===c},ir.isFragment=function(x){return w(x)===r},ir.isLazy=function(x){return w(x)===v},ir.isMemo=function(x){return w(x)===h},ir.isPortal=function(x){return w(x)===e},ir.isProfiler=function(x){return w(x)===o},ir.isStrictMode=function(x){return w(x)===n},ir.isSuspense=function(x){return w(x)===u},ir.isSuspenseList=function(x){return w(x)===f},ir.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===o||x===n||x===u||x===f||typeof x=="object"&&x!==null&&(x.$$typeof===v||x.$$typeof===h||x.$$typeof===l||x.$$typeof===a||x.$$typeof===c||x.$$typeof===y||x.getModuleId!==void 0)},ir.typeOf=w,ir}var S1;function y3(){return S1||(S1=1,vg.exports=g3()),vg.exports}var KC=y3();function Ci(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function QC(t){if(S.isValidElement(t)||KC.isValidElementType(t)||!Ci(t))return t;const e={};return Object.keys(t).forEach(r=>{e[r]=QC(t[r])}),e}function en(t,e,r={clone:!0}){const n=r.clone?{...t}:t;return Ci(t)&&Ci(e)&&Object.keys(e).forEach(o=>{S.isValidElement(e[o])||KC.isValidElementType(e[o])?n[o]=e[o]:Ci(e[o])&&Object.prototype.hasOwnProperty.call(t,o)&&Ci(t[o])?n[o]=en(t[o],e[o],r):r.clone?n[o]=Ci(e[o])?QC(e[o]):e[o]:n[o]=e[o]}),n}const v3=t=>{const e=Object.keys(t).map(r=>({key:r,val:t[r]}))||[];return e.sort((r,n)=>r.val-n.val),e.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function b3(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=t,a=v3(e),l=Object.keys(a);function c(g){return`@media (min-width:${typeof e[g]=="number"?e[g]:g}${r})`}function u(g){return`@media (max-width:${(typeof e[g]=="number"?e[g]:g)-n/100}${r})`}function f(g,y){const w=l.indexOf(y);return`@media (min-width:${typeof e[g]=="number"?e[g]:g}${r}) and (max-width:${(w!==-1&&typeof e[l[w]]=="number"?e[l[w]]:y)-n/100}${r})`}function h(g){return l.indexOf(g)+1<l.length?f(g,l[l.indexOf(g)+1]):c(g)}function v(g){const y=l.indexOf(g);return y===0?c(l[1]):y===l.length-1?u(l[y]):f(g,l[l.indexOf(g)+1]).replace("@media","@media not all and")}return{keys:l,values:a,up:c,down:u,between:f,only:h,not:v,unit:r,...o}}function C1(t,e){if(!t.containerQueries)return e;const r=Object.keys(e).filter(n=>n.startsWith("@container")).sort((n,o)=>{var l,c;const a=/min-width:\s*([0-9.]+)/;return+(((l=n.match(a))==null?void 0:l[1])||0)-+(((c=o.match(a))==null?void 0:c[1])||0)});return r.length?r.reduce((n,o)=>{const a=e[o];return delete n[o],n[o]=a,n},{...e}):e}function x3(t,e){return e==="@"||e.startsWith("@")&&(t.some(r=>e.startsWith(`@${r}`))||!!e.match(/^@\d/))}function w3(t,e){const r=e.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,o]=r,a=Number.isNaN(+n)?n||0:+n;return t.containerQueries(o).up(a)}function S3(t){const e=(a,l)=>a.replace("@media",l?`@container ${l}`:"@container");function r(a,l){a.up=(...c)=>e(t.breakpoints.up(...c),l),a.down=(...c)=>e(t.breakpoints.down(...c),l),a.between=(...c)=>e(t.breakpoints.between(...c),l),a.only=(...c)=>e(t.breakpoints.only(...c),l),a.not=(...c)=>{const u=e(t.breakpoints.not(...c),l);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const n={},o=a=>(r(n,a),n);return r(o),{...t,containerQueries:o}}const C3={borderRadius:4};function gu(t,e){return e?en(t,e,{clone:!1}):t}const Vf={xs:0,sm:600,md:900,lg:1200,xl:1536},T1={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${Vf[t]}px)`},T3={containerQueries:t=>({up:e=>{let r=typeof e=="number"?e:Vf[e]||e;return typeof r=="number"&&(r=`${r}px`),t?`@container ${t} (min-width:${r})`:`@container (min-width:${r})`}})};function Zo(t,e,r){const n=t.theme||{};if(Array.isArray(e)){const a=n.breakpoints||T1;return e.reduce((l,c,u)=>(l[a.up(a.keys[u])]=r(e[u]),l),{})}if(typeof e=="object"){const a=n.breakpoints||T1;return Object.keys(e).reduce((l,c)=>{if(x3(a.keys,c)){const u=w3(n.containerQueries?n:T3,c);u&&(l[u]=r(e[c],c))}else if(Object.keys(a.values||Vf).includes(c)){const u=a.up(c);l[u]=r(e[c],c)}else{const u=c;l[u]=e[u]}return l},{})}return r(e)}function YC(t={}){var r;return((r=t.keys)==null?void 0:r.reduce((n,o)=>{const a=t.up(o);return n[a]={},n},{}))||{}}function Jg(t,e){return t.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},e)}function E3(t,...e){const r=YC(t),n=[r,...e].reduce((o,a)=>en(o,a),{});return Jg(Object.keys(r),n)}function k3(t,e){if(typeof t!="object")return{};const r={},n=Object.keys(e);return Array.isArray(t)?n.forEach((o,a)=>{a<t.length&&(r[o]=!0)}):n.forEach(o=>{t[o]!=null&&(r[o]=!0)}),r}function bg({values:t,breakpoints:e,base:r}){const n=r||k3(t,e),o=Object.keys(n);if(o.length===0)return t;let a;return o.reduce((l,c,u)=>(Array.isArray(t)?(l[c]=t[u]!=null?t[u]:t[a],a=u):typeof t=="object"?(l[c]=t[c]!=null?t[c]:t[a],a=c):l[c]=t,l),{})}function ge(t){if(typeof t!="string")throw new Error(Zi(7));return t.charAt(0).toUpperCase()+t.slice(1)}function Si(t,e,r=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&r){const n=`vars.${e}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,t);if(n!=null)return n}return e.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,t)}function mf(t,e,r,n=r){let o;return typeof t=="function"?o=t(r):Array.isArray(t)?o=t[r]||n:o=Si(t,r)||n,e&&(o=e(o,n,t)),o}function Ar(t){const{prop:e,cssProperty:r=t.prop,themeKey:n,transform:o}=t,a=l=>{if(l[e]==null)return null;const c=l[e],u=l.theme,f=Si(u,n)||{};return Zo(l,c,v=>{let g=mf(f,o,v);return v===g&&typeof v=="string"&&(g=mf(f,o,`${e}${v==="default"?"":ge(v)}`,v)),r===!1?g:{[r]:g}})};return a.propTypes={},a.filterProps=[e],a}function P3(t){const e={};return r=>(e[r]===void 0&&(e[r]=t(r)),e[r])}const j3={m:"margin",p:"padding"},M3={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},E1={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},R3=P3(t=>{if(t.length>2)if(E1[t])t=E1[t];else return[t];const[e,r]=t.split(""),n=j3[e],o=M3[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),c0=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],u0=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...c0,...u0];function nd(t,e,r,n){const o=Si(t,e,!0)??r;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?o.startsWith("var(")&&a===0?0:o.startsWith("var(")&&a===1?o:`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const l=Math.abs(a),c=o[l];return a>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof o=="function"?o:()=>{}}function Wf(t){return nd(t,"spacing",8)}function Ps(t,e){return typeof e=="string"||e==null?e:t(e)}function I3(t,e){return r=>t.reduce((n,o)=>(n[o]=Ps(e,r),n),{})}function A3(t,e,r,n){if(!e.includes(r))return null;const o=R3(r),a=I3(o,n),l=t[r];return Zo(t,l,a)}function JC(t,e){const r=Wf(t.theme);return Object.keys(t).map(n=>A3(t,e,n,r)).reduce(gu,{})}function Tr(t){return JC(t,c0)}Tr.propTypes={};Tr.filterProps=c0;function Er(t){return JC(t,u0)}Er.propTypes={};Er.filterProps=u0;function ZC(t=8,e=Wf({spacing:t})){if(t.mui)return t;const r=(...n)=>(n.length===0?[1]:n).map(a=>{const l=e(a);return typeof l=="number"?`${l}px`:l}).join(" ");return r.mui=!0,r}function qf(...t){const e=t.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>e[a]?gu(o,e[a](n)):o,{});return r.propTypes={},r.filterProps=t.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Io(t){return typeof t!="number"?t:`${t}px solid`}function Do(t,e){return Ar({prop:t,themeKey:"borders",transform:e})}const _3=Do("border",Io),L3=Do("borderTop",Io),O3=Do("borderRight",Io),N3=Do("borderBottom",Io),$3=Do("borderLeft",Io),B3=Do("borderColor"),z3=Do("borderTopColor"),D3=Do("borderRightColor"),F3=Do("borderBottomColor"),H3=Do("borderLeftColor"),U3=Do("outline",Io),V3=Do("outlineColor"),Gf=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=nd(t.theme,"shape.borderRadius",4),r=n=>({borderRadius:Ps(e,n)});return Zo(t,t.borderRadius,r)}return null};Gf.propTypes={};Gf.filterProps=["borderRadius"];qf(_3,L3,O3,N3,$3,B3,z3,D3,F3,H3,Gf,U3,V3);const Xf=t=>{if(t.gap!==void 0&&t.gap!==null){const e=nd(t.theme,"spacing",8),r=n=>({gap:Ps(e,n)});return Zo(t,t.gap,r)}return null};Xf.propTypes={};Xf.filterProps=["gap"];const Kf=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=nd(t.theme,"spacing",8),r=n=>({columnGap:Ps(e,n)});return Zo(t,t.columnGap,r)}return null};Kf.propTypes={};Kf.filterProps=["columnGap"];const Qf=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=nd(t.theme,"spacing",8),r=n=>({rowGap:Ps(e,n)});return Zo(t,t.rowGap,r)}return null};Qf.propTypes={};Qf.filterProps=["rowGap"];const W3=Ar({prop:"gridColumn"}),q3=Ar({prop:"gridRow"}),G3=Ar({prop:"gridAutoFlow"}),X3=Ar({prop:"gridAutoColumns"}),K3=Ar({prop:"gridAutoRows"}),Q3=Ar({prop:"gridTemplateColumns"}),Y3=Ar({prop:"gridTemplateRows"}),J3=Ar({prop:"gridTemplateAreas"}),Z3=Ar({prop:"gridArea"});qf(Xf,Kf,Qf,W3,q3,G3,X3,K3,Q3,Y3,J3,Z3);function Rl(t,e){return e==="grey"?e:t}const ej=Ar({prop:"color",themeKey:"palette",transform:Rl}),tj=Ar({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Rl}),rj=Ar({prop:"backgroundColor",themeKey:"palette",transform:Rl});qf(ej,tj,rj);function go(t){return t<=1&&t!==0?`${t*100}%`:t}const nj=Ar({prop:"width",transform:go}),d0=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=r=>{var o,a,l,c,u;const n=((l=(a=(o=t.theme)==null?void 0:o.breakpoints)==null?void 0:a.values)==null?void 0:l[r])||Vf[r];return n?((u=(c=t.theme)==null?void 0:c.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${n}${t.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:go(r)}};return Zo(t,t.maxWidth,e)}return null};d0.filterProps=["maxWidth"];const oj=Ar({prop:"minWidth",transform:go}),ij=Ar({prop:"height",transform:go}),aj=Ar({prop:"maxHeight",transform:go}),sj=Ar({prop:"minHeight",transform:go});Ar({prop:"size",cssProperty:"width",transform:go});Ar({prop:"size",cssProperty:"height",transform:go});const lj=Ar({prop:"boxSizing"});qf(nj,d0,oj,ij,aj,sj,lj);const od={border:{themeKey:"borders",transform:Io},borderTop:{themeKey:"borders",transform:Io},borderRight:{themeKey:"borders",transform:Io},borderBottom:{themeKey:"borders",transform:Io},borderLeft:{themeKey:"borders",transform:Io},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Io},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Gf},color:{themeKey:"palette",transform:Rl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Rl},backgroundColor:{themeKey:"palette",transform:Rl},p:{style:Er},pt:{style:Er},pr:{style:Er},pb:{style:Er},pl:{style:Er},px:{style:Er},py:{style:Er},padding:{style:Er},paddingTop:{style:Er},paddingRight:{style:Er},paddingBottom:{style:Er},paddingLeft:{style:Er},paddingX:{style:Er},paddingY:{style:Er},paddingInline:{style:Er},paddingInlineStart:{style:Er},paddingInlineEnd:{style:Er},paddingBlock:{style:Er},paddingBlockStart:{style:Er},paddingBlockEnd:{style:Er},m:{style:Tr},mt:{style:Tr},mr:{style:Tr},mb:{style:Tr},ml:{style:Tr},mx:{style:Tr},my:{style:Tr},margin:{style:Tr},marginTop:{style:Tr},marginRight:{style:Tr},marginBottom:{style:Tr},marginLeft:{style:Tr},marginX:{style:Tr},marginY:{style:Tr},marginInline:{style:Tr},marginInlineStart:{style:Tr},marginInlineEnd:{style:Tr},marginBlock:{style:Tr},marginBlockStart:{style:Tr},marginBlockEnd:{style:Tr},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Xf},rowGap:{style:Qf},columnGap:{style:Kf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:go},maxWidth:{style:d0},minWidth:{transform:go},height:{transform:go},maxHeight:{transform:go},minHeight:{transform:go},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function cj(...t){const e=t.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(e);return t.every(n=>r.size===Object.keys(n).length)}function uj(t,e){return typeof t=="function"?t(e):t}function dj(){function t(r,n,o,a){const l={[r]:n,theme:o},c=a[r];if(!c)return{[r]:n};const{cssProperty:u=r,themeKey:f,transform:h,style:v}=c;if(n==null)return null;if(f==="typography"&&n==="inherit")return{[r]:n};const g=Si(o,f)||{};return v?v(l):Zo(l,n,w=>{let x=mf(g,h,w);return w===x&&typeof w=="string"&&(x=mf(g,h,`${r}${w==="default"?"":ge(w)}`,w)),u===!1?x:{[u]:x}})}function e(r){const{sx:n,theme:o={},nested:a}=r||{};if(!n)return null;const l=o.unstable_sxConfig??od;function c(u){let f=u;if(typeof u=="function")f=u(o);else if(typeof u!="object")return u;if(!f)return null;const h=YC(o.breakpoints),v=Object.keys(h);let g=h;return Object.keys(f).forEach(y=>{const w=uj(f[y],o);if(w!=null)if(typeof w=="object")if(l[y])g=gu(g,t(y,w,o,l));else{const x=Zo({theme:o},w,C=>({[y]:C}));cj(x,w)?g[y]=e({sx:w,theme:o,nested:!0}):g=gu(g,x)}else g=gu(g,t(y,w,o,l))}),!a&&o.modularCssLayers?{"@layer sx":C1(o,Jg(v,g))}:C1(o,Jg(v,g))}return Array.isArray(n)?n.map(c):c(n)}return e}const $a=dj();$a.filterProps=["sx"];function pj(t,e){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[t])||typeof r.getColorSchemeSelector!="function")return{};let o=r.getColorSchemeSelector(t);return o==="&"?e:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:e})}return r.palette.mode===t?e:{}}function sc(t={},...e){const{breakpoints:r={},palette:n={},spacing:o,shape:a={},...l}=t,c=b3(r),u=ZC(o);let f=en({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:u,shape:{...C3,...a}},l);return f=S3(f),f.applyStyles=pj,f=e.reduce((h,v)=>en(h,v),f),f.unstable_sxConfig={...od,...l==null?void 0:l.unstable_sxConfig},f.unstable_sx=function(v){return $a({sx:v,theme:this})},f}function fj(t){return Object.keys(t).length===0}function Yf(t=null){const e=S.useContext(rd);return!e||fj(e)?t:e}const hj=sc();function id(t=hj){return Yf(t)}function xg(t){const e=Oa(t);return t!==e&&e.styles?(e.styles.match(/^@layer\s+[^{]*$/)||(e.styles=`@layer global{${e.styles}}`),e):t}function e2({styles:t,themeId:e,defaultTheme:r={}}){const n=id(r),o=e&&n[e]||n;let a=typeof t=="function"?t(o):t;return o.modularCssLayers&&(Array.isArray(a)?a=a.map(l=>xg(typeof l=="function"?l(o):l)):a=xg(a)),d.jsx(GC,{styles:a})}const mj=t=>{var n;const e={systemProps:{},otherProps:{}},r=((n=t==null?void 0:t.theme)==null?void 0:n.unstable_sxConfig)??od;return Object.keys(t).forEach(o=>{r[o]?e.systemProps[o]=t[o]:e.otherProps[o]=t[o]}),e};function Jf(t){const{sx:e,...r}=t,{systemProps:n,otherProps:o}=mj(r);let a;return Array.isArray(e)?a=[n,...e]:typeof e=="function"?a=(...l)=>{const c=e(...l);return Ci(c)?{...n,...c}:n}:a={...n,...e},{...o,sx:a}}const k1=t=>t,gj=()=>{let t=k1;return{configure(e){t=e},generate(e){return t(e)},reset(){t=k1}}},t2=gj();function r2(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=r2(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function Ie(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=r2(t))&&(n&&(n+=" "),n+=e);return n}function yj(t={}){const{themeId:e,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=t,a=XC("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})($a);return S.forwardRef(function(u,f){const h=id(r),{className:v,component:g="div",...y}=Jf(u);return d.jsx(a,{as:g,ref:f,className:Ie(v,o?o(n):n),theme:e&&h[e]||h,...y})})}const vj={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ye(t,e,r="Mui"){const n=vj[e];return n?`${r}-${n}`:`${t2.generate(t)}-${e}`}function Ze(t,e,r="Mui"){const n={};return e.forEach(o=>{n[o]=Ye(t,o,r)}),n}function n2(t){const{variants:e,...r}=t,n={variants:e,style:Oa(r),isProcessed:!0};return n.style===r||e&&e.forEach(o=>{typeof o.style!="function"&&(o.style=Oa(o.style))}),n}const bj=sc();function wg(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function Ss(t,e){return e&&t&&typeof t=="object"&&t.styles&&!t.styles.startsWith("@layer")&&(t.styles=`@layer ${e}{${String(t.styles)}}`),t}function xj(t){return t?(e,r)=>r[t]:null}function wj(t,e,r){t.theme=Cj(t.theme)?r:t.theme[e]||t.theme}function tf(t,e,r){const n=typeof e=="function"?e(t):e;if(Array.isArray(n))return n.flatMap(o=>tf(t,o,r));if(Array.isArray(n==null?void 0:n.variants)){let o;if(n.isProcessed)o=r?Ss(n.style,r):n.style;else{const{variants:a,...l}=n;o=r?Ss(Oa(l),r):l}return o2(t,n.variants,[o],r)}return n!=null&&n.isProcessed?r?Ss(Oa(n.style),r):n.style:r?Ss(Oa(n),r):n}function o2(t,e,r=[],n=void 0){var a;let o;e:for(let l=0;l<e.length;l+=1){const c=e[l];if(typeof c.props=="function"){if(o??(o={...t,...t.ownerState,ownerState:t.ownerState}),!c.props(o))continue}else for(const u in c.props)if(t[u]!==c.props[u]&&((a=t.ownerState)==null?void 0:a[u])!==c.props[u])continue e;typeof c.style=="function"?(o??(o={...t,...t.ownerState,ownerState:t.ownerState}),r.push(n?Ss(Oa(c.style(o)),n):c.style(o))):r.push(n?Ss(Oa(c.style),n):c.style)}return r}function i2(t={}){const{themeId:e,defaultTheme:r=bj,rootShouldForwardProp:n=wg,slotShouldForwardProp:o=wg}=t;function a(c){wj(c,e,r)}return(c,u={})=>{m3(c,I=>I.filter(F=>F!==$a));const{name:f,slot:h,skipVariantsResolver:v,skipSx:g,overridesResolver:y=xj(Ej(h)),...w}=u,x=f&&f.startsWith("Mui")||h?"components":"custom",C=v!==void 0?v:h&&h!=="Root"&&h!=="root"||!1,j=g||!1;let P=wg;h==="Root"||h==="root"?P=n:h?P=o:Tj(c)&&(P=void 0);const M=XC(c,{shouldForwardProp:P,label:Sj(),...w}),E=I=>{if(I.__emotion_real===I)return I;if(typeof I=="function")return function(A){return tf(A,I,A.theme.modularCssLayers?x:void 0)};if(Ci(I)){const F=n2(I);return function(H){return F.variants?tf(H,F,H.theme.modularCssLayers?x:void 0):H.theme.modularCssLayers?Ss(F.style,x):F.style}}return I},R=(...I)=>{const F=[],A=I.map(E),H=[];if(F.push(a),f&&y&&H.push(function(q){var K,ee;const L=(ee=(K=q.theme.components)==null?void 0:K[f])==null?void 0:ee.styleOverrides;if(!L)return null;const W={};for(const Z in L)W[Z]=tf(q,L[Z],q.theme.modularCssLayers?"theme":void 0);return y(q,W)}),f&&!C&&H.push(function(q){var W,K;const U=q.theme,L=(K=(W=U==null?void 0:U.components)==null?void 0:W[f])==null?void 0:K.variants;return L?o2(q,L,[],q.theme.modularCssLayers?"theme":void 0):null}),j||H.push($a),Array.isArray(A[0])){const k=A.shift(),q=new Array(F.length).fill(""),U=new Array(H.length).fill("");let L;L=[...q,...k,...U],L.raw=[...q,...k.raw,...U],F.unshift(L)}const G=[...F,...A,...H],N=M(...G);return c.muiName&&(N.muiName=c.muiName),N};return M.withConfig&&(R.withConfig=M.withConfig),R}}function Sj(t,e){return void 0}function Cj(t){for(const e in t)return!1;return!0}function Tj(t){return typeof t=="string"&&t.charCodeAt(0)>96}function Ej(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}const p0=i2();function Nl(t,e,r=!1){const n={...e};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)){const a=o;if(a==="components"||a==="slots")n[a]={...t[a],...n[a]};else if(a==="componentsProps"||a==="slotProps"){const l=t[a],c=e[a];if(!c)n[a]=l||{};else if(!l)n[a]=c;else{n[a]={...c};for(const u in l)if(Object.prototype.hasOwnProperty.call(l,u)){const f=u;n[a][f]=Nl(l[f],c[f],r)}}}else a==="className"&&r&&e.className?n.className=Ie(t==null?void 0:t.className,e==null?void 0:e.className):a==="style"&&r&&e.style?n.style={...t==null?void 0:t.style,...e==null?void 0:e.style}:n[a]===void 0&&(n[a]=t[a])}return n}function a2(t){const{theme:e,name:r,props:n}=t;return!e||!e.components||!e.components[r]||!e.components[r].defaultProps?n:Nl(e.components[r].defaultProps,n)}function f0({props:t,name:e,defaultTheme:r,themeId:n}){let o=id(r);return n&&(o=o[n]||o),a2({theme:o,name:e,props:t})}const Qn=typeof window<"u"?S.useLayoutEffect:S.useEffect;function kj(t,e,r,n,o){const[a,l]=S.useState(()=>o&&r?r(t).matches:n?n(t).matches:e);return Qn(()=>{if(!r)return;const c=r(t),u=()=>{l(c.matches)};return u(),c.addEventListener("change",u),()=>{c.removeEventListener("change",u)}},[t,r]),a}const Pj={...Pu},s2=Pj.useSyncExternalStore;function jj(t,e,r,n,o){const a=S.useCallback(()=>e,[e]),l=S.useMemo(()=>{if(o&&r)return()=>r(t).matches;if(n!==null){const{matches:h}=n(t);return()=>h}return a},[a,t,n,o,r]),[c,u]=S.useMemo(()=>{if(r===null)return[a,()=>()=>{}];const h=r(t);return[()=>h.matches,v=>(h.addEventListener("change",v),()=>{h.removeEventListener("change",v)})]},[a,r,t]);return s2(u,c,l)}function l2(t={}){const{themeId:e}=t;return function(n,o={}){let a=Yf();a&&e&&(a=a[e]||a);const l=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:c=!1,matchMedia:u=l?window.matchMedia:null,ssrMatchMedia:f=null,noSsr:h=!1}=a2({name:"MuiUseMediaQuery",props:o,theme:a});let v=typeof n=="function"?n(a):n;return v=v.replace(/^@media( ?)/m,""),v.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
83
- `)),(s2!==void 0?jj:kj)(v,c,u,f,h)}}l2();function Mj(t,e=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,r))}function h0(t,e=0,r=1){return Mj(t,e,r)}function Rj(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let r=t.match(e);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Ba(t){if(t.type)return t;if(t.charAt(0)==="#")return Ba(Rj(t));const e=t.indexOf("("),r=t.substring(0,e);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(Zi(9,t));let n=t.substring(e+1,t.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(Zi(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const Ij=t=>{const e=Ba(t);return e.values.slice(0,3).map((r,n)=>e.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},cu=(t,e)=>{try{return Ij(t)}catch{return t}};function Zf(t){const{type:e,colorSpace:r}=t;let{values:n}=t;return e.includes("rgb")?n=n.map((o,a)=>a<3?parseInt(o,10):o):e.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),e.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${e}(${n})`}function c2(t){t=Ba(t);const{values:e}=t,r=e[0],n=e[1]/100,o=e[2]/100,a=n*Math.min(o,1-o),l=(f,h=(f+r/30)%12)=>o-a*Math.max(Math.min(h-3,9-h,1),-1);let c="rgb";const u=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return t.type==="hsla"&&(c+="a",u.push(e[3])),Zf({type:c,values:u})}function Zg(t){t=Ba(t);let e=t.type==="hsl"||t.type==="hsla"?Ba(c2(t)).values:t.values;return e=e.map(r=>(t.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function Aj(t,e){const r=Zg(t),n=Zg(e);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Lu(t,e){return t=Ba(t),e=h0(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,Zf(t)}function ms(t,e,r){try{return Lu(t,e)}catch{return t}}function eh(t,e){if(t=Ba(t),e=h0(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]*=1-e;return Zf(t)}function tr(t,e,r){try{return eh(t,e)}catch{return t}}function th(t,e){if(t=Ba(t),e=h0(e),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*e;else if(t.type.includes("rgb"))for(let r=0;r<3;r+=1)t.values[r]+=(255-t.values[r])*e;else if(t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]+=(1-t.values[r])*e;return Zf(t)}function rr(t,e,r){try{return th(t,e)}catch{return t}}function ey(t,e=.15){return Zg(t)>.5?eh(t,e):th(t,e)}function Ep(t,e,r){try{return ey(t,e)}catch{return t}}const u2=S.createContext(null);function m0(){return S.useContext(u2)}const _j=typeof Symbol=="function"&&Symbol.for,Lj=_j?Symbol.for("mui.nested"):"__THEME_NESTED__";function Oj(t,e){return typeof e=="function"?e(t):{...t,...e}}function Nj(t){const{children:e,theme:r}=t,n=m0(),o=S.useMemo(()=>{const a=n===null?{...r}:Oj(n,r);return a!=null&&(a[Lj]=n!==null),a},[r,n]);return d.jsx(u2.Provider,{value:o,children:e})}const d2=S.createContext();function $j({value:t,...e}){return d.jsx(d2.Provider,{value:t??!0,...e})}const Ka=()=>S.useContext(d2)??!1,p2=S.createContext(void 0);function Bj({value:t,children:e}){return d.jsx(p2.Provider,{value:t,children:e})}function zj(t){const{theme:e,name:r,props:n}=t;if(!e||!e.components||!e.components[r])return n;const o=e.components[r];return o.defaultProps?Nl(o.defaultProps,n,e.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Nl(o,n,e.components.mergeClassNameAndStyle):n}function Dj({props:t,name:e}){const r=S.useContext(p2);return zj({props:t,name:e,theme:{components:r}})}let P1=0;function Fj(t){const[e,r]=S.useState(t),n=t||e;return S.useEffect(()=>{e==null&&(P1+=1,r(`mui-${P1}`))},[e]),n}const Hj={...Pu},j1=Hj.useId;function Pi(t){if(j1!==void 0){const e=j1();return t??e}return Fj(t)}function Uj(t){const e=Yf(),r=Pi()||"",{modularCssLayers:n}=t;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!n||e!==null?o="":typeof n=="string"?o=n.replace(/mui(?!\.)/g,o):o=`@layer ${o};`,Qn(()=>{var c,u;const a=document.querySelector("head");if(!a)return;const l=a.firstChild;if(o){if(l&&((c=l.hasAttribute)!=null&&c.call(l,"data-mui-layer-order"))&&l.getAttribute("data-mui-layer-order")===r)return;const f=document.createElement("style");f.setAttribute("data-mui-layer-order",r),f.textContent=o,a.prepend(f)}else(u=a.querySelector(`style[data-mui-layer-order="${r}"]`))==null||u.remove()},[o,r]),o?d.jsx(e2,{styles:o}):null}const M1={};function R1(t,e,r,n=!1){return S.useMemo(()=>{const o=t&&e[t]||e;if(typeof r=="function"){const a=r(o),l=t?{...e,[t]:a}:a;return n?()=>l:l}return t?{...e,[t]:r}:{...e,...r}},[t,e,r,n])}function f2(t){const{children:e,theme:r,themeId:n}=t,o=Yf(M1),a=m0()||M1,l=R1(n,o,r),c=R1(n,a,r,!0),u=(n?l[n]:l).direction==="rtl",f=Uj(l);return d.jsx(Nj,{theme:c,children:d.jsx(rd.Provider,{value:l,children:d.jsx($j,{value:u,children:d.jsxs(Bj,{value:n?l[n].components:l.components,children:[f,e]})})})})}const I1={theme:void 0};function Vj(t){let e,r;return function(o){let a=e;return(a===void 0||o.theme!==r)&&(I1.theme=o.theme,a=n2(t(I1)),e=a,r=o.theme),a}}const g0="mode",y0="color-scheme",Wj="data-color-scheme";function qj(t){const{defaultMode:e="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:o=g0,colorSchemeStorageKey:a=y0,attribute:l=Wj,colorSchemeNode:c="document.documentElement",nonce:u}=t||{};let f="",h=l;if(l==="class"&&(h=".%s"),l==="data"&&(h="[data-%s]"),h.startsWith(".")){const g=h.substring(1);f+=`${c}.classList.remove('${g}'.replace('%s', light), '${g}'.replace('%s', dark));
84
- ${c}.classList.add('${g}'.replace('%s', colorScheme));`}const v=h.match(/\[([^[\]]+)\]/);if(v){const[g,y]=v[1].split("=");y||(f+=`${c}.removeAttribute('${g}'.replace('%s', light));
85
- ${c}.removeAttribute('${g}'.replace('%s', dark));`),f+=`
86
- ${c}.setAttribute('${g}'.replace('%s', colorScheme), ${y?`${y}.replace('%s', colorScheme)`:'""'});`}else h!==".%s"&&(f+=`${c}.setAttribute('${h}', colorScheme);`);return d.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?u:"",dangerouslySetInnerHTML:{__html:`(function() {
87
- try {
88
- let colorScheme = '';
89
- const mode = localStorage.getItem('${o}') || '${e}';
90
- const dark = localStorage.getItem('${a}-dark') || '${n}';
91
- const light = localStorage.getItem('${a}-light') || '${r}';
92
- if (mode === 'system') {
93
- // handle system mode
94
- const mql = window.matchMedia('(prefers-color-scheme: dark)');
95
- if (mql.matches) {
96
- colorScheme = dark
97
- } else {
98
- colorScheme = light
99
- }
100
- }
101
- if (mode === 'light') {
102
- colorScheme = light;
103
- }
104
- if (mode === 'dark') {
105
- colorScheme = dark;
106
- }
107
- if (colorScheme) {
108
- ${f}
109
- }
110
- } catch(e){}})();`}},"mui-color-scheme-init")}function Gj(){}const Xj=({key:t,storageWindow:e})=>(!e&&typeof window<"u"&&(e=window),{get(r){if(typeof window>"u")return;if(!e)return r;let n;try{n=e.localStorage.getItem(t)}catch{}return n||r},set:r=>{if(e)try{e.localStorage.setItem(t,r)}catch{}},subscribe:r=>{if(!e)return Gj;const n=o=>{const a=o.newValue;o.key===t&&r(a)};return e.addEventListener("storage",n),()=>{e.removeEventListener("storage",n)}}});function Sg(){}function A1(t){if(typeof window<"u"&&typeof window.matchMedia=="function"&&t==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function h2(t,e){if(t.mode==="light"||t.mode==="system"&&t.systemMode==="light")return e("light");if(t.mode==="dark"||t.mode==="system"&&t.systemMode==="dark")return e("dark")}function Kj(t){return h2(t,e=>{if(e==="light")return t.lightColorScheme;if(e==="dark")return t.darkColorScheme})}function Qj(t){const{defaultMode:e="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:o=[],modeStorageKey:a=g0,colorSchemeStorageKey:l=y0,storageWindow:c=typeof window>"u"?void 0:window,storageManager:u=Xj,noSsr:f=!1}=t,h=o.join(","),v=o.length>1,g=S.useMemo(()=>u==null?void 0:u({key:a,storageWindow:c}),[u,a,c]),y=S.useMemo(()=>u==null?void 0:u({key:`${l}-light`,storageWindow:c}),[u,l,c]),w=S.useMemo(()=>u==null?void 0:u({key:`${l}-dark`,storageWindow:c}),[u,l,c]),[x,C]=S.useState(()=>{const A=(g==null?void 0:g.get(e))||e,H=(y==null?void 0:y.get(r))||r,G=(w==null?void 0:w.get(n))||n;return{mode:A,systemMode:A1(A),lightColorScheme:H,darkColorScheme:G}}),[j,P]=S.useState(f||!v);S.useEffect(()=>{P(!0)},[]);const M=Kj(x),E=S.useCallback(A=>{C(H=>{if(A===H.mode)return H;const G=A??e;return g==null||g.set(G),{...H,mode:G,systemMode:A1(G)}})},[g,e]),R=S.useCallback(A=>{A?typeof A=="string"?A&&!h.includes(A)?console.error(`\`${A}\` does not exist in \`theme.colorSchemes\`.`):C(H=>{const G={...H};return h2(H,N=>{N==="light"&&(y==null||y.set(A),G.lightColorScheme=A),N==="dark"&&(w==null||w.set(A),G.darkColorScheme=A)}),G}):C(H=>{const G={...H},N=A.light===null?r:A.light,k=A.dark===null?n:A.dark;return N&&(h.includes(N)?(G.lightColorScheme=N,y==null||y.set(N)):console.error(`\`${N}\` does not exist in \`theme.colorSchemes\`.`)),k&&(h.includes(k)?(G.darkColorScheme=k,w==null||w.set(k)):console.error(`\`${k}\` does not exist in \`theme.colorSchemes\`.`)),G}):C(H=>(y==null||y.set(r),w==null||w.set(n),{...H,lightColorScheme:r,darkColorScheme:n}))},[h,y,w,r,n]),I=S.useCallback(A=>{x.mode==="system"&&C(H=>{const G=A!=null&&A.matches?"dark":"light";return H.systemMode===G?H:{...H,systemMode:G}})},[x.mode]),F=S.useRef(I);return F.current=I,S.useEffect(()=>{if(typeof window.matchMedia!="function"||!v)return;const A=(...G)=>F.current(...G),H=window.matchMedia("(prefers-color-scheme: dark)");return H.addListener(A),A(H),()=>{H.removeListener(A)}},[v]),S.useEffect(()=>{if(v){const A=(g==null?void 0:g.subscribe(N=>{(!N||["light","dark","system"].includes(N))&&E(N||e)}))||Sg,H=(y==null?void 0:y.subscribe(N=>{(!N||h.match(N))&&R({light:N})}))||Sg,G=(w==null?void 0:w.subscribe(N=>{(!N||h.match(N))&&R({dark:N})}))||Sg;return()=>{A(),H(),G()}}},[R,E,h,e,c,v,g,y,w]),{...x,mode:j?x.mode:void 0,systemMode:j?x.systemMode:void 0,colorScheme:j?M:void 0,setMode:E,setColorScheme:R}}const Yj="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Jj(t){const{themeId:e,theme:r={},modeStorageKey:n=g0,colorSchemeStorageKey:o=y0,disableTransitionOnChange:a=!1,defaultColorScheme:l,resolveTheme:c}=t,u={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},f=S.createContext(void 0),h=()=>S.useContext(f)||u,v={},g={};function y(j){var be,Te,Me,Ve;const{children:P,theme:M,modeStorageKey:E=n,colorSchemeStorageKey:R=o,disableTransitionOnChange:I=a,storageManager:F,storageWindow:A=typeof window>"u"?void 0:window,documentNode:H=typeof document>"u"?void 0:document,colorSchemeNode:G=typeof document>"u"?void 0:document.documentElement,disableNestedContext:N=!1,disableStyleSheetGeneration:k=!1,defaultMode:q="system",forceThemeRerender:U=!1,noSsr:L}=j,W=S.useRef(!1),K=m0(),ee=S.useContext(f),Z=!!ee&&!N,Q=S.useMemo(()=>M||(typeof r=="function"?r():r),[M]),X=Q[e],re=X||Q,{colorSchemes:ce=v,components:Y=g,cssVarPrefix:ne}=re,J=Object.keys(ce).filter(Qe=>!!ce[Qe]).join(","),de=S.useMemo(()=>J.split(","),[J]),Ce=typeof l=="string"?l:l.light,me=typeof l=="string"?l:l.dark,se=ce[Ce]&&ce[me]?q:((Te=(be=ce[re.defaultColorScheme])==null?void 0:be.palette)==null?void 0:Te.mode)||((Me=re.palette)==null?void 0:Me.mode),{mode:De,setMode:Ne,systemMode:Oe,lightColorScheme:Be,darkColorScheme:_e,colorScheme:Ke,setColorScheme:pt}=Qj({supportedColorSchemes:de,defaultLightColorScheme:Ce,defaultDarkColorScheme:me,modeStorageKey:E,colorSchemeStorageKey:R,defaultMode:se,storageManager:F,storageWindow:A,noSsr:L});let je=De,ht=Ke;Z&&(je=ee.mode,ht=ee.colorScheme);let We=ht||re.defaultColorScheme;re.vars&&!U&&(We=re.defaultColorScheme);const ft=S.useMemo(()=>{var ke;const Qe=((ke=re.generateThemeVars)==null?void 0:ke.call(re))||re.vars,oe={...re,components:Y,colorSchemes:ce,cssVarPrefix:ne,vars:Qe};if(typeof oe.generateSpacing=="function"&&(oe.spacing=oe.generateSpacing()),We){const $e=ce[We];$e&&typeof $e=="object"&&Object.keys($e).forEach(Fe=>{$e[Fe]&&typeof $e[Fe]=="object"?oe[Fe]={...oe[Fe],...$e[Fe]}:oe[Fe]=$e[Fe]})}return c?c(oe):oe},[re,We,Y,ce,ne]),Ue=re.colorSchemeSelector;Qn(()=>{if(ht&&G&&Ue&&Ue!=="media"){const Qe=Ue;let oe=Ue;if(Qe==="class"&&(oe=".%s"),Qe==="data"&&(oe="[data-%s]"),Qe!=null&&Qe.startsWith("data-")&&!Qe.includes("%s")&&(oe=`[${Qe}="%s"]`),oe.startsWith("."))G.classList.remove(...de.map(ke=>oe.substring(1).replace("%s",ke))),G.classList.add(oe.substring(1).replace("%s",ht));else{const ke=oe.replace("%s",ht).match(/\[([^\]]+)\]/);if(ke){const[$e,Fe]=ke[1].split("=");Fe||de.forEach(xt=>{G.removeAttribute($e.replace(ht,xt))}),G.setAttribute($e,Fe?Fe.replace(/"|'/g,""):"")}else G.setAttribute(oe,ht)}}},[ht,Ue,G,de]),S.useEffect(()=>{let Qe;if(I&&W.current&&H){const oe=H.createElement("style");oe.appendChild(H.createTextNode(Yj)),H.head.appendChild(oe),window.getComputedStyle(H.body),Qe=setTimeout(()=>{H.head.removeChild(oe)},1)}return()=>{clearTimeout(Qe)}},[ht,I,H]),S.useEffect(()=>(W.current=!0,()=>{W.current=!1}),[]);const Gt=S.useMemo(()=>({allColorSchemes:de,colorScheme:ht,darkColorScheme:_e,lightColorScheme:Be,mode:je,setColorScheme:pt,setMode:Ne,systemMode:Oe}),[de,ht,_e,Be,je,pt,Ne,Oe,ft.colorSchemeSelector]);let Tt=!0;(k||re.cssVariables===!1||Z&&(K==null?void 0:K.cssVarPrefix)===ne)&&(Tt=!1);const ue=d.jsxs(S.Fragment,{children:[d.jsx(f2,{themeId:X?e:void 0,theme:ft,children:P}),Tt&&d.jsx(GC,{styles:((Ve=ft.generateStyleSheets)==null?void 0:Ve.call(ft))||[]})]});return Z?ue:d.jsx(f.Provider,{value:Gt,children:ue})}const w=typeof l=="string"?l:l.light,x=typeof l=="string"?l:l.dark;return{CssVarsProvider:y,useColorScheme:h,getInitColorSchemeScript:j=>qj({colorSchemeStorageKey:o,defaultLightColorScheme:w,defaultDarkColorScheme:x,modeStorageKey:n,...j})}}function Zj(t=""){function e(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${o}${e(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${t?`${t}-`:""}${n}${e(...o)})`}const _1=(t,e,r,n=[])=>{let o=t;e.forEach((a,l)=>{l===e.length-1?Array.isArray(o)?o[Number(a)]=r:o&&typeof o=="object"&&(o[a]=r):o&&typeof o=="object"&&(o[a]||(o[a]=n.includes(a)?[]:{}),o=o[a])})},eM=(t,e,r)=>{function n(o,a=[],l=[]){Object.entries(o).forEach(([c,u])=>{(!r||r&&!r([...a,c]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?n(u,[...a,c],Array.isArray(u)?[...l,c]:l):e([...a,c],u,l))})}n(t)},tM=(t,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>t.includes(n))||t[t.length-1].toLowerCase().includes("opacity")?e:`${e}px`:e;function Cg(t,e){const{prefix:r,shouldSkipGeneratingVar:n}=e||{},o={},a={},l={};return eM(t,(c,u,f)=>{if((typeof u=="string"||typeof u=="number")&&(!n||!n(c,u))){const h=`--${r?`${r}-`:""}${c.join("-")}`,v=tM(c,u);Object.assign(o,{[h]:v}),_1(a,c,`var(${h})`,f),_1(l,c,`var(${h}, ${v})`,f)}},c=>c[0]==="vars"),{css:o,vars:a,varsWithDefaults:l}}function rM(t,e={}){const{getSelector:r=j,disableCssColorScheme:n,colorSchemeSelector:o,enableContrastVars:a}=e,{colorSchemes:l={},components:c,defaultColorScheme:u="light",...f}=t,{vars:h,css:v,varsWithDefaults:g}=Cg(f,e);let y=g;const w={},{[u]:x,...C}=l;if(Object.entries(C||{}).forEach(([E,R])=>{const{vars:I,css:F,varsWithDefaults:A}=Cg(R,e);y=en(y,A),w[E]={css:F,vars:I}}),x){const{css:E,vars:R,varsWithDefaults:I}=Cg(x,e);y=en(y,I),w[u]={css:E,vars:R}}function j(E,R){var F,A;let I=o;if(o==="class"&&(I=".%s"),o==="data"&&(I="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(I=`[${o}="%s"]`),E){if(I==="media")return t.defaultColorScheme===E?":root":{[`@media (prefers-color-scheme: ${((A=(F=l[E])==null?void 0:F.palette)==null?void 0:A.mode)||E})`]:{":root":R}};if(I)return t.defaultColorScheme===E?`:root, ${I.replace("%s",String(E))}`:I.replace("%s",String(E))}return":root"}return{vars:y,generateThemeVars:()=>{let E={...h};return Object.entries(w).forEach(([,{vars:R}])=>{E=en(E,R)}),E},generateStyleSheets:()=>{var H,G;const E=[],R=t.defaultColorScheme||"light";function I(N,k){Object.keys(k).length&&E.push(typeof N=="string"?{[N]:{...k}}:N)}I(r(void 0,{...v}),v);const{[R]:F,...A}=w;if(F){const{css:N}=F,k=(G=(H=l[R])==null?void 0:H.palette)==null?void 0:G.mode,q=!n&&k?{colorScheme:k,...N}:{...N};I(r(R,{...q}),q)}return Object.entries(A).forEach(([N,{css:k}])=>{var L,W;const q=(W=(L=l[N])==null?void 0:L.palette)==null?void 0:W.mode,U=!n&&q?{colorScheme:q,...k}:{...k};I(r(N,{...U}),U)}),a&&E.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),E}}}function nM(t){return function(r){return t==="media"?`@media (prefers-color-scheme: ${r})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${r}"] &`:t==="class"?`.${r} &`:t==="data"?`[data-${r}] &`:`${t.replace("%s",r)} &`:"&"}}function Je(t,e,r=void 0){const n={};for(const o in t){const a=t[o];let l="",c=!0;for(let u=0;u<a.length;u+=1){const f=a[u];f&&(l+=(c===!0?"":" ")+e(f),c=!1,r&&r[f]&&(l+=" "+r[f]))}n[o]=l}return n}const oM=sc(),iM=p0("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`maxWidth${ge(String(r.maxWidth))}`],r.fixed&&e.fixed,r.disableGutters&&e.disableGutters]}}),aM=t=>f0({props:t,name:"MuiContainer",defaultTheme:oM}),sM=(t,e)=>{const r=u=>Ye(e,u),{classes:n,fixed:o,disableGutters:a,maxWidth:l}=t,c={root:["root",l&&`maxWidth${ge(String(l))}`,o&&"fixed",a&&"disableGutters"]};return Je(c,r,n)};function lM(t={}){const{createStyledComponent:e=iM,useThemeProps:r=aM,componentName:n="MuiContainer"}=t,o=e(({theme:l,ownerState:c})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!c.disableGutters&&{paddingLeft:l.spacing(2),paddingRight:l.spacing(2),[l.breakpoints.up("sm")]:{paddingLeft:l.spacing(3),paddingRight:l.spacing(3)}}}),({theme:l,ownerState:c})=>c.fixed&&Object.keys(l.breakpoints.values).reduce((u,f)=>{const h=f,v=l.breakpoints.values[h];return v!==0&&(u[l.breakpoints.up(h)]={maxWidth:`${v}${l.breakpoints.unit}`}),u},{}),({theme:l,ownerState:c})=>({...c.maxWidth==="xs"&&{[l.breakpoints.up("xs")]:{maxWidth:Math.max(l.breakpoints.values.xs,444)}},...c.maxWidth&&c.maxWidth!=="xs"&&{[l.breakpoints.up(c.maxWidth)]:{maxWidth:`${l.breakpoints.values[c.maxWidth]}${l.breakpoints.unit}`}}}));return S.forwardRef(function(c,u){const f=r(c),{className:h,component:v="div",disableGutters:g=!1,fixed:y=!1,maxWidth:w="lg",classes:x,...C}=f,j={...f,component:v,disableGutters:g,fixed:y,maxWidth:w},P=sM(j,n);return d.jsx(o,{as:v,ownerState:j,className:Ie(P.root,h),ref:u,...C})})}function rf(t,e){var r,n,o;return S.isValidElement(t)&&e.indexOf(t.type.muiName??((o=(n=(r=t.type)==null?void 0:r._payload)==null?void 0:n.value)==null?void 0:o.muiName))!==-1}const cM=(t,e)=>t.filter(r=>e.includes(r)),lc=(t,e,r)=>{const n=t.keys[0];Array.isArray(e)?e.forEach((o,a)=>{r((l,c)=>{a<=t.keys.length-1&&(a===0?Object.assign(l,c):l[t.up(t.keys[a])]=c)},o)}):e&&typeof e=="object"?(Object.keys(e).length>t.keys.length?t.keys:cM(t.keys,Object.keys(e))).forEach(a=>{if(t.keys.includes(a)){const l=e[a];l!==void 0&&r((c,u)=>{n===a?Object.assign(c,u):c[t.up(a)]=u},l)}}):(typeof e=="number"||typeof e=="string")&&r((o,a)=>{Object.assign(o,a)},e)};function gf(t){return`--Grid-${t}Spacing`}function rh(t){return`--Grid-parent-${t}Spacing`}const L1="--Grid-columns",Il="--Grid-parent-columns",uM=({theme:t,ownerState:e})=>{const r={};return lc(t.breakpoints,e.size,(n,o)=>{let a={};o==="grow"&&(a={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(a={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${Il}) - (var(${Il}) - ${o}) * (var(${rh("column")}) / var(${Il})))`}),n(r,a)}),r},dM=({theme:t,ownerState:e})=>{const r={};return lc(t.breakpoints,e.offset,(n,o)=>{let a={};o==="auto"&&(a={marginLeft:"auto"}),typeof o=="number"&&(a={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${Il}) + var(${rh("column")}) * ${o} / var(${Il}))`}),n(r,a)}),r},pM=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={[L1]:12};return lc(t.breakpoints,e.columns,(n,o)=>{const a=o??12;n(r,{[L1]:a,"> *":{[Il]:a}})}),r},fM=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={};return lc(t.breakpoints,e.rowSpacing,(n,o)=>{var l;const a=typeof o=="string"?o:(l=t.spacing)==null?void 0:l.call(t,o);n(r,{[gf("row")]:a,"> *":{[rh("row")]:a}})}),r},hM=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={};return lc(t.breakpoints,e.columnSpacing,(n,o)=>{var l;const a=typeof o=="string"?o:(l=t.spacing)==null?void 0:l.call(t,o);n(r,{[gf("column")]:a,"> *":{[rh("column")]:a}})}),r},mM=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={};return lc(t.breakpoints,e.direction,(n,o)=>{n(r,{flexDirection:o})}),r},gM=({ownerState:t})=>({minWidth:0,boxSizing:"border-box",...t.container&&{display:"flex",flexWrap:"wrap",...t.wrap&&t.wrap!=="wrap"&&{flexWrap:t.wrap},gap:`var(${gf("row")}) var(${gf("column")})`}}),yM=t=>{const e=[];return Object.entries(t).forEach(([r,n])=>{n!==!1&&n!==void 0&&e.push(`grid-${r}-${String(n)}`)}),e},vM=(t,e="xs")=>{function r(n){return n===void 0?!1:typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number"&&n>0}if(r(t))return[`spacing-${e}-${String(t)}`];if(typeof t=="object"&&!Array.isArray(t)){const n=[];return Object.entries(t).forEach(([o,a])=>{r(a)&&n.push(`spacing-${o}-${String(a)}`)}),n}return[]},bM=t=>t===void 0?[]:typeof t=="object"?Object.entries(t).map(([e,r])=>`direction-${e}-${r}`):[`direction-xs-${String(t)}`];function xM(t,e){t.item!==void 0&&delete t.item,t.zeroMinWidth!==void 0&&delete t.zeroMinWidth,e.keys.forEach(r=>{t[r]!==void 0&&delete t[r]})}const wM=sc(),SM=p0("div",{name:"MuiGrid",slot:"Root"});function CM(t){return f0({props:t,name:"MuiGrid",defaultTheme:wM})}function TM(t={}){const{createStyledComponent:e=SM,useThemeProps:r=CM,useTheme:n=id,componentName:o="MuiGrid"}=t,a=(f,h)=>{const{container:v,direction:g,spacing:y,wrap:w,size:x}=f,C={root:["root",v&&"container",w!=="wrap"&&`wrap-xs-${String(w)}`,...bM(g),...yM(x),...v?vM(y,h.breakpoints.keys[0]):[]]};return Je(C,j=>Ye(o,j),{})};function l(f,h,v=()=>!0){const g={};return f===null||(Array.isArray(f)?f.forEach((y,w)=>{y!==null&&v(y)&&h.keys[w]&&(g[h.keys[w]]=y)}):typeof f=="object"?Object.keys(f).forEach(y=>{const w=f[y];w!=null&&v(w)&&(g[y]=w)}):g[h.keys[0]]=f),g}const c=e(pM,hM,fM,uM,mM,gM,dM),u=S.forwardRef(function(h,v){const g=n(),y=r(h),w=Jf(y);xM(w,g.breakpoints);const{className:x,children:C,columns:j=12,container:P=!1,component:M="div",direction:E="row",wrap:R="wrap",size:I={},offset:F={},spacing:A=0,rowSpacing:H=A,columnSpacing:G=A,unstable_level:N=0,...k}=w,q=l(I,g.breakpoints,X=>X!==!1),U=l(F,g.breakpoints),L=h.columns??(N?void 0:j),W=h.spacing??(N?void 0:A),K=h.rowSpacing??h.spacing??(N?void 0:H),ee=h.columnSpacing??h.spacing??(N?void 0:G),Z={...w,level:N,columns:L,container:P,direction:E,wrap:R,spacing:W,rowSpacing:K,columnSpacing:ee,size:q,offset:U},Q=a(Z,g);return d.jsx(c,{ref:v,as:M,ownerState:Z,className:Ie(Q.root,x),...k,children:S.Children.map(C,X=>{var re;return S.isValidElement(X)&&rf(X,["Grid"])&&P&&X.props.container?S.cloneElement(X,{unstable_level:((re=X.props)==null?void 0:re.unstable_level)??N+1}):X})})});return u.muiName="Grid",u}const EM=sc(),kM=p0("div",{name:"MuiStack",slot:"Root"});function PM(t){return f0({props:t,name:"MuiStack",defaultTheme:EM})}function jM(t,e){const r=S.Children.toArray(t).filter(Boolean);return r.reduce((n,o,a)=>(n.push(o),a<r.length-1&&n.push(S.cloneElement(e,{key:`separator-${a}`})),n),[])}const MM=t=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[t],RM=({ownerState:t,theme:e})=>{let r={display:"flex",flexDirection:"column",...Zo({theme:e},bg({values:t.direction,breakpoints:e.breakpoints.values}),n=>({flexDirection:n}))};if(t.spacing){const n=Wf(e),o=Object.keys(e.breakpoints.values).reduce((u,f)=>((typeof t.spacing=="object"&&t.spacing[f]!=null||typeof t.direction=="object"&&t.direction[f]!=null)&&(u[f]=!0),u),{}),a=bg({values:t.direction,base:o}),l=bg({values:t.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((u,f,h)=>{if(!a[u]){const g=f>0?a[h[f-1]]:"column";a[u]=g}}),r=en(r,Zo({theme:e},l,(u,f)=>t.useFlexGap?{gap:Ps(n,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${MM(f?a[f]:t.direction)}`]:Ps(n,u)}}))}return r=E3(e.breakpoints,r),r};function IM(t={}){const{createStyledComponent:e=kM,useThemeProps:r=PM,componentName:n="MuiStack"}=t,o=()=>Je({root:["root"]},u=>Ye(n,u),{}),a=e(RM);return S.forwardRef(function(u,f){const h=r(u),v=Jf(h),{component:g="div",direction:y="column",spacing:w=0,divider:x,children:C,className:j,useFlexGap:P=!1,...M}=v,E={direction:y,spacing:w,useFlexGap:P},R=o();return d.jsx(a,{as:g,ownerState:E,ref:f,className:Ie(R.root,j),...M,children:x?jM(C,x):C})})}function m2(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ru.white,default:Ru.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const g2=m2();function y2(){return{text:{primary:Ru.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ru.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const ty=y2();function O1(t,e,r,n){const o=n.light||n,a=n.dark||n*1.5;t[e]||(t.hasOwnProperty(r)?t[e]=t[r]:e==="light"?t.light=th(t.main,o):e==="dark"&&(t.dark=eh(t.main,a)))}function N1(t,e,r,n,o){const a=o.light||o,l=o.dark||o*1.5;e[r]||(e.hasOwnProperty(n)?e[r]=e[n]:r==="light"?e.light=`color-mix(in ${t}, ${e.main}, #fff ${(a*100).toFixed(0)}%)`:r==="dark"&&(e.dark=`color-mix(in ${t}, ${e.main}, #000 ${(l*100).toFixed(0)}%)`))}function AM(t="light"){return t==="dark"?{main:gl[200],light:gl[50],dark:gl[400]}:{main:gl[700],light:gl[400],dark:gl[800]}}function _M(t="light"){return t==="dark"?{main:ml[200],light:ml[50],dark:ml[400]}:{main:ml[500],light:ml[300],dark:ml[700]}}function LM(t="light"){return t==="dark"?{main:hl[500],light:hl[300],dark:hl[700]}:{main:hl[700],light:hl[400],dark:hl[800]}}function OM(t="light"){return t==="dark"?{main:yl[400],light:yl[300],dark:yl[700]}:{main:yl[700],light:yl[500],dark:yl[900]}}function NM(t="light"){return t==="dark"?{main:vl[400],light:vl[300],dark:vl[700]}:{main:vl[800],light:vl[500],dark:vl[900]}}function $M(t="light"){return t==="dark"?{main:Kc[400],light:Kc[300],dark:Kc[700]}:{main:"#ed6c02",light:Kc[500],dark:Kc[900]}}function BM(t){return`oklch(from ${t} var(--__l) 0 h / var(--__a))`}function v0(t){const{mode:e="light",contrastThreshold:r=3,tonalOffset:n=.2,colorSpace:o,...a}=t,l=t.primary||AM(e),c=t.secondary||_M(e),u=t.error||LM(e),f=t.info||OM(e),h=t.success||NM(e),v=t.warning||$M(e);function g(C){return o?BM(C):Aj(C,ty.text.primary)>=r?ty.text.primary:g2.text.primary}const y=({color:C,name:j,mainShade:P=500,lightShade:M=300,darkShade:E=700})=>{if(C={...C},!C.main&&C[P]&&(C.main=C[P]),!C.hasOwnProperty("main"))throw new Error(Zi(11,j?` (${j})`:"",P));if(typeof C.main!="string")throw new Error(Zi(12,j?` (${j})`:"",JSON.stringify(C.main)));return o?(N1(o,C,"light",M,n),N1(o,C,"dark",E,n)):(O1(C,"light",M,n),O1(C,"dark",E,n)),C.contrastText||(C.contrastText=g(C.main)),C};let w;return e==="light"?w=m2():e==="dark"&&(w=y2()),en({common:{...Ru},mode:e,primary:y({color:l,name:"primary"}),secondary:y({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:u,name:"error"}),warning:y({color:v,name:"warning"}),info:y({color:f,name:"info"}),success:y({color:h,name:"success"}),grey:g5,contrastThreshold:r,getContrastText:g,augmentColor:y,tonalOffset:n,...w},a)}function zM(t){const e={};return Object.entries(t).forEach(n=>{const[o,a]=n;typeof a=="object"&&(e[o]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),e}function DM(t,e){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...e}}function FM(t){return Math.round(t*1e5)/1e5}const $1={textTransform:"uppercase"},B1='"Roboto", "Helvetica", "Arial", sans-serif';function v2(t,e){const{fontFamily:r=B1,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:f,pxToRem:h,...v}=typeof e=="function"?e(t):e,g=n/14,y=h||(C=>`${C/u*g}rem`),w=(C,j,P,M,E)=>({fontFamily:r,fontWeight:C,fontSize:y(j),lineHeight:P,...r===B1?{letterSpacing:`${FM(M/j)}em`}:{},...E,...f}),x={h1:w(o,96,1.167,-1.5),h2:w(o,60,1.2,-.5),h3:w(a,48,1.167,0),h4:w(a,34,1.235,.25),h5:w(a,24,1.334,0),h6:w(l,20,1.6,.15),subtitle1:w(a,16,1.75,.15),subtitle2:w(l,14,1.57,.1),body1:w(a,16,1.5,.15),body2:w(a,14,1.43,.15),button:w(l,14,1.75,.4,$1),caption:w(a,12,1.66,.4),overline:w(a,12,2.66,1,$1),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return en({htmlFontSize:u,pxToRem:y,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:c,...x},v,{clone:!1})}const HM=.2,UM=.14,VM=.12;function vr(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${HM})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${UM})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${VM})`].join(",")}const WM=["none",vr(0,2,1,-1,0,1,1,0,0,1,3,0),vr(0,3,1,-2,0,2,2,0,0,1,5,0),vr(0,3,3,-2,0,3,4,0,0,1,8,0),vr(0,2,4,-1,0,4,5,0,0,1,10,0),vr(0,3,5,-1,0,5,8,0,0,1,14,0),vr(0,3,5,-1,0,6,10,0,0,1,18,0),vr(0,4,5,-2,0,7,10,1,0,2,16,1),vr(0,5,5,-3,0,8,10,1,0,3,14,2),vr(0,5,6,-3,0,9,12,1,0,3,16,2),vr(0,6,6,-3,0,10,14,1,0,4,18,3),vr(0,6,7,-4,0,11,15,1,0,4,20,3),vr(0,7,8,-4,0,12,17,2,0,5,22,4),vr(0,7,8,-4,0,13,19,2,0,5,24,4),vr(0,7,9,-4,0,14,21,2,0,5,26,4),vr(0,8,9,-5,0,15,22,2,0,6,28,5),vr(0,8,10,-5,0,16,24,2,0,6,30,5),vr(0,8,11,-5,0,17,26,2,0,6,32,5),vr(0,9,11,-5,0,18,28,2,0,7,34,6),vr(0,9,12,-6,0,19,29,2,0,7,36,6),vr(0,10,13,-6,0,20,31,3,0,8,38,7),vr(0,10,13,-6,0,21,33,3,0,8,40,7),vr(0,10,14,-6,0,22,35,3,0,8,42,7),vr(0,11,14,-7,0,23,36,3,0,9,44,8),vr(0,11,15,-7,0,24,38,3,0,9,46,8)],qM={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},b2={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function z1(t){return`${Math.round(t)}ms`}function GM(t){if(!t)return 0;const e=t/36;return Math.min(Math.round((4+15*e**.25+e/5)*10),3e3)}function XM(t){const e={...qM,...t.easing},r={...b2,...t.duration};return{getAutoHeightDuration:GM,create:(o=["all"],a={})=>{const{duration:l=r.standard,easing:c=e.easeInOut,delay:u=0,...f}=a;return(Array.isArray(o)?o:[o]).map(h=>`${h} ${typeof l=="string"?l:z1(l)} ${c} ${typeof u=="string"?u:z1(u)}`).join(",")},...t,easing:e,duration:r}}const KM={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function QM(t){return Ci(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function x2(t={}){const e={...t};function r(n){const o=Object.entries(n);for(let a=0;a<o.length;a++){const[l,c]=o[a];!QM(c)||l.startsWith("unstable_")?delete n[l]:Ci(c)&&(n[l]={...c},r(n[l]))}}return r(e),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
111
-
112
- const theme = ${JSON.stringify(e,null,2)};
113
-
114
- theme.breakpoints = createBreakpoints(theme.breakpoints || {});
115
- theme.transitions = createTransitions(theme.transitions || {});
116
-
117
- export default theme;`}function D1(t){return typeof t=="number"?`${(t*100).toFixed(0)}%`:`calc((${t}) * 100%)`}const YM=t=>{if(!Number.isNaN(+t))return+t;const e=t.match(/\d*\.?\d+/g);if(!e)return 0;let r=0;for(let n=0;n<e.length;n+=1)r+=+e[n];return r};function JM(t){Object.assign(t,{alpha(e,r){const n=this||t;return n.colorSpace?`oklch(from ${e} l c h / ${typeof r=="string"?`calc(${r})`:r})`:n.vars?`rgba(${e.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:Lu(e,YM(r))},lighten(e,r){const n=this||t;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${e}, #fff ${D1(r)})`:th(e,r)},darken(e,r){const n=this||t;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${e}, #000 ${D1(r)})`:eh(e,r)}})}function ry(t={},...e){const{breakpoints:r,mixins:n={},spacing:o,palette:a={},transitions:l={},typography:c={},shape:u,colorSpace:f,...h}=t;if(t.vars&&t.generateThemeVars===void 0)throw new Error(Zi(20));const v=v0({...a,colorSpace:f}),g=sc(t);let y=en(g,{mixins:DM(g.breakpoints,n),palette:v,shadows:WM.slice(),typography:v2(v,c),transitions:XM(l),zIndex:{...KM}});return y=en(y,h),y=e.reduce((w,x)=>en(w,x),y),y.unstable_sxConfig={...od,...h==null?void 0:h.unstable_sxConfig},y.unstable_sx=function(x){return $a({sx:x,theme:this})},y.toRuntimeSource=x2,JM(y),y}function ny(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const ZM=[...Array(25)].map((t,e)=>{if(e===0)return"none";const r=ny(e);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function w2(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function S2(t){return t==="dark"?ZM:[]}function eR(t){const{palette:e={mode:"light"},opacity:r,overlays:n,colorSpace:o,...a}=t,l=v0({...e,colorSpace:o});return{palette:l,opacity:{...w2(l.mode),...r},overlays:n||S2(l.mode),...a}}function tR(t){var e;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((e=t[1])!=null&&e.match(/(mode|contrastThreshold|tonalOffset)/))}const rR=t=>[...[...Array(25)].map((e,r)=>`--${t?`${t}-`:""}overlays-${r}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],nR=t=>(e,r)=>{const n=t.rootSelector||":root",o=t.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const l={};return rR(t.cssVarPrefix).forEach(c=>{l[c]=r[c],delete r[c]}),a==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:l}}:a?{[a.replace("%s",e)]:l,[`${n}, ${a.replace("%s",e)}`]:r}:{[n]:{...r,...l}}}if(a&&a!=="media")return`${n}, ${a.replace("%s",String(e))}`}else if(e){if(a==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{[n]:r}};if(a)return a.replace("%s",String(e))}return n};function oR(t,e){e.forEach(r=>{t[r]||(t[r]={})})}function Se(t,e,r){!t[e]&&r&&(t[e]=r)}function uu(t){return typeof t!="string"||!t.startsWith("hsl")?t:c2(t)}function qi(t,e){`${e}Channel`in t||(t[`${e}Channel`]=cu(uu(t[e])))}function iR(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const hi=t=>{try{return t()}catch{}},aR=(t="mui")=>Zj(t);function Tg(t,e,r,n,o){if(!r)return;r=r===!0?{}:r;const a=o==="dark"?"dark":"light";if(!n){e[o]=eR({...r,palette:{mode:a,...r==null?void 0:r.palette},colorSpace:t});return}const{palette:l,...c}=ry({...n,palette:{mode:a,...r==null?void 0:r.palette},colorSpace:t});return e[o]={...r,palette:l,opacity:{...w2(a),...r==null?void 0:r.opacity},overlays:(r==null?void 0:r.overlays)||S2(a)},c}function sR(t={},...e){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",nativeColor:l=!1,shouldSkipGeneratingVar:c=tR,colorSchemeSelector:u=r.light&&r.dark?"media":void 0,rootSelector:f=":root",...h}=t,v=Object.keys(r)[0],g=n||(r.light&&v!=="light"?"light":v),y=aR(a),{[g]:w,light:x,dark:C,...j}=r,P={...j};let M=w;if((g==="dark"&&!("dark"in r)||g==="light"&&!("light"in r))&&(M=!0),!M)throw new Error(Zi(21,g));let E;l&&(E="oklch");const R=Tg(E,P,M,h,g);x&&!P.light&&Tg(E,P,x,void 0,"light"),C&&!P.dark&&Tg(E,P,C,void 0,"dark");let I={defaultColorScheme:g,...R,cssVarPrefix:a,colorSchemeSelector:u,rootSelector:f,getCssVar:y,colorSchemes:P,font:{...zM(R.typography),...R.font},spacing:iR(h.spacing)};Object.keys(I.colorSchemes).forEach(N=>{const k=I.colorSchemes[N].palette,q=L=>{const W=L.split("-"),K=W[1],ee=W[2];return y(L,k[K][ee])};k.mode==="light"&&(Se(k.common,"background","#fff"),Se(k.common,"onBackground","#000")),k.mode==="dark"&&(Se(k.common,"background","#000"),Se(k.common,"onBackground","#fff"));function U(L,W,K){if(E){let ee;return L===ms&&(ee=`transparent ${((1-K)*100).toFixed(0)}%`),L===tr&&(ee=`#000 ${(K*100).toFixed(0)}%`),L===rr&&(ee=`#fff ${(K*100).toFixed(0)}%`),`color-mix(in ${E}, ${W}, ${ee})`}return L(W,K)}if(oR(k,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),k.mode==="light"){Se(k.Alert,"errorColor",U(tr,k.error.light,.6)),Se(k.Alert,"infoColor",U(tr,k.info.light,.6)),Se(k.Alert,"successColor",U(tr,k.success.light,.6)),Se(k.Alert,"warningColor",U(tr,k.warning.light,.6)),Se(k.Alert,"errorFilledBg",q("palette-error-main")),Se(k.Alert,"infoFilledBg",q("palette-info-main")),Se(k.Alert,"successFilledBg",q("palette-success-main")),Se(k.Alert,"warningFilledBg",q("palette-warning-main")),Se(k.Alert,"errorFilledColor",hi(()=>k.getContrastText(k.error.main))),Se(k.Alert,"infoFilledColor",hi(()=>k.getContrastText(k.info.main))),Se(k.Alert,"successFilledColor",hi(()=>k.getContrastText(k.success.main))),Se(k.Alert,"warningFilledColor",hi(()=>k.getContrastText(k.warning.main))),Se(k.Alert,"errorStandardBg",U(rr,k.error.light,.9)),Se(k.Alert,"infoStandardBg",U(rr,k.info.light,.9)),Se(k.Alert,"successStandardBg",U(rr,k.success.light,.9)),Se(k.Alert,"warningStandardBg",U(rr,k.warning.light,.9)),Se(k.Alert,"errorIconColor",q("palette-error-main")),Se(k.Alert,"infoIconColor",q("palette-info-main")),Se(k.Alert,"successIconColor",q("palette-success-main")),Se(k.Alert,"warningIconColor",q("palette-warning-main")),Se(k.AppBar,"defaultBg",q("palette-grey-100")),Se(k.Avatar,"defaultBg",q("palette-grey-400")),Se(k.Button,"inheritContainedBg",q("palette-grey-300")),Se(k.Button,"inheritContainedHoverBg",q("palette-grey-A100")),Se(k.Chip,"defaultBorder",q("palette-grey-400")),Se(k.Chip,"defaultAvatarColor",q("palette-grey-700")),Se(k.Chip,"defaultIconColor",q("palette-grey-700")),Se(k.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Se(k.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Se(k.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Se(k.LinearProgress,"primaryBg",U(rr,k.primary.main,.62)),Se(k.LinearProgress,"secondaryBg",U(rr,k.secondary.main,.62)),Se(k.LinearProgress,"errorBg",U(rr,k.error.main,.62)),Se(k.LinearProgress,"infoBg",U(rr,k.info.main,.62)),Se(k.LinearProgress,"successBg",U(rr,k.success.main,.62)),Se(k.LinearProgress,"warningBg",U(rr,k.warning.main,.62)),Se(k.Skeleton,"bg",E?U(ms,k.text.primary,.11):`rgba(${q("palette-text-primaryChannel")} / 0.11)`),Se(k.Slider,"primaryTrack",U(rr,k.primary.main,.62)),Se(k.Slider,"secondaryTrack",U(rr,k.secondary.main,.62)),Se(k.Slider,"errorTrack",U(rr,k.error.main,.62)),Se(k.Slider,"infoTrack",U(rr,k.info.main,.62)),Se(k.Slider,"successTrack",U(rr,k.success.main,.62)),Se(k.Slider,"warningTrack",U(rr,k.warning.main,.62));const L=E?U(tr,k.background.default,.6825):Ep(k.background.default,.8);Se(k.SnackbarContent,"bg",L),Se(k.SnackbarContent,"color",hi(()=>E?ty.text.primary:k.getContrastText(L))),Se(k.SpeedDialAction,"fabHoverBg",Ep(k.background.paper,.15)),Se(k.StepConnector,"border",q("palette-grey-400")),Se(k.StepContent,"border",q("palette-grey-400")),Se(k.Switch,"defaultColor",q("palette-common-white")),Se(k.Switch,"defaultDisabledColor",q("palette-grey-100")),Se(k.Switch,"primaryDisabledColor",U(rr,k.primary.main,.62)),Se(k.Switch,"secondaryDisabledColor",U(rr,k.secondary.main,.62)),Se(k.Switch,"errorDisabledColor",U(rr,k.error.main,.62)),Se(k.Switch,"infoDisabledColor",U(rr,k.info.main,.62)),Se(k.Switch,"successDisabledColor",U(rr,k.success.main,.62)),Se(k.Switch,"warningDisabledColor",U(rr,k.warning.main,.62)),Se(k.TableCell,"border",U(rr,U(ms,k.divider,1),.88)),Se(k.Tooltip,"bg",U(ms,k.grey[700],.92))}if(k.mode==="dark"){Se(k.Alert,"errorColor",U(rr,k.error.light,.6)),Se(k.Alert,"infoColor",U(rr,k.info.light,.6)),Se(k.Alert,"successColor",U(rr,k.success.light,.6)),Se(k.Alert,"warningColor",U(rr,k.warning.light,.6)),Se(k.Alert,"errorFilledBg",q("palette-error-dark")),Se(k.Alert,"infoFilledBg",q("palette-info-dark")),Se(k.Alert,"successFilledBg",q("palette-success-dark")),Se(k.Alert,"warningFilledBg",q("palette-warning-dark")),Se(k.Alert,"errorFilledColor",hi(()=>k.getContrastText(k.error.dark))),Se(k.Alert,"infoFilledColor",hi(()=>k.getContrastText(k.info.dark))),Se(k.Alert,"successFilledColor",hi(()=>k.getContrastText(k.success.dark))),Se(k.Alert,"warningFilledColor",hi(()=>k.getContrastText(k.warning.dark))),Se(k.Alert,"errorStandardBg",U(tr,k.error.light,.9)),Se(k.Alert,"infoStandardBg",U(tr,k.info.light,.9)),Se(k.Alert,"successStandardBg",U(tr,k.success.light,.9)),Se(k.Alert,"warningStandardBg",U(tr,k.warning.light,.9)),Se(k.Alert,"errorIconColor",q("palette-error-main")),Se(k.Alert,"infoIconColor",q("palette-info-main")),Se(k.Alert,"successIconColor",q("palette-success-main")),Se(k.Alert,"warningIconColor",q("palette-warning-main")),Se(k.AppBar,"defaultBg",q("palette-grey-900")),Se(k.AppBar,"darkBg",q("palette-background-paper")),Se(k.AppBar,"darkColor",q("palette-text-primary")),Se(k.Avatar,"defaultBg",q("palette-grey-600")),Se(k.Button,"inheritContainedBg",q("palette-grey-800")),Se(k.Button,"inheritContainedHoverBg",q("palette-grey-700")),Se(k.Chip,"defaultBorder",q("palette-grey-700")),Se(k.Chip,"defaultAvatarColor",q("palette-grey-300")),Se(k.Chip,"defaultIconColor",q("palette-grey-300")),Se(k.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Se(k.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Se(k.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Se(k.LinearProgress,"primaryBg",U(tr,k.primary.main,.5)),Se(k.LinearProgress,"secondaryBg",U(tr,k.secondary.main,.5)),Se(k.LinearProgress,"errorBg",U(tr,k.error.main,.5)),Se(k.LinearProgress,"infoBg",U(tr,k.info.main,.5)),Se(k.LinearProgress,"successBg",U(tr,k.success.main,.5)),Se(k.LinearProgress,"warningBg",U(tr,k.warning.main,.5)),Se(k.Skeleton,"bg",E?U(ms,k.text.primary,.13):`rgba(${q("palette-text-primaryChannel")} / 0.13)`),Se(k.Slider,"primaryTrack",U(tr,k.primary.main,.5)),Se(k.Slider,"secondaryTrack",U(tr,k.secondary.main,.5)),Se(k.Slider,"errorTrack",U(tr,k.error.main,.5)),Se(k.Slider,"infoTrack",U(tr,k.info.main,.5)),Se(k.Slider,"successTrack",U(tr,k.success.main,.5)),Se(k.Slider,"warningTrack",U(tr,k.warning.main,.5));const L=E?U(rr,k.background.default,.985):Ep(k.background.default,.98);Se(k.SnackbarContent,"bg",L),Se(k.SnackbarContent,"color",hi(()=>E?g2.text.primary:k.getContrastText(L))),Se(k.SpeedDialAction,"fabHoverBg",Ep(k.background.paper,.15)),Se(k.StepConnector,"border",q("palette-grey-600")),Se(k.StepContent,"border",q("palette-grey-600")),Se(k.Switch,"defaultColor",q("palette-grey-300")),Se(k.Switch,"defaultDisabledColor",q("palette-grey-600")),Se(k.Switch,"primaryDisabledColor",U(tr,k.primary.main,.55)),Se(k.Switch,"secondaryDisabledColor",U(tr,k.secondary.main,.55)),Se(k.Switch,"errorDisabledColor",U(tr,k.error.main,.55)),Se(k.Switch,"infoDisabledColor",U(tr,k.info.main,.55)),Se(k.Switch,"successDisabledColor",U(tr,k.success.main,.55)),Se(k.Switch,"warningDisabledColor",U(tr,k.warning.main,.55)),Se(k.TableCell,"border",U(tr,U(ms,k.divider,1),.68)),Se(k.Tooltip,"bg",U(ms,k.grey[700],.92))}qi(k.background,"default"),qi(k.background,"paper"),qi(k.common,"background"),qi(k.common,"onBackground"),qi(k,"divider"),Object.keys(k).forEach(L=>{const W=k[L];L!=="tonalOffset"&&W&&typeof W=="object"&&(W.main&&Se(k[L],"mainChannel",cu(uu(W.main))),W.light&&Se(k[L],"lightChannel",cu(uu(W.light))),W.dark&&Se(k[L],"darkChannel",cu(uu(W.dark))),W.contrastText&&Se(k[L],"contrastTextChannel",cu(uu(W.contrastText))),L==="text"&&(qi(k[L],"primary"),qi(k[L],"secondary")),L==="action"&&(W.active&&qi(k[L],"active"),W.selected&&qi(k[L],"selected")))})}),I=e.reduce((N,k)=>en(N,k),I);const F={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:c,getSelector:nR(I),enableContrastVars:l},{vars:A,generateThemeVars:H,generateStyleSheets:G}=rM(I,F);return I.vars=A,Object.entries(I.colorSchemes[I.defaultColorScheme]).forEach(([N,k])=>{I[N]=k}),I.generateThemeVars=H,I.generateStyleSheets=G,I.generateSpacing=function(){return ZC(h.spacing,Wf(this))},I.getColorSchemeSelector=nM(u),I.spacing=I.generateSpacing(),I.shouldSkipGeneratingVar=c,I.unstable_sxConfig={...od,...h==null?void 0:h.unstable_sxConfig},I.unstable_sx=function(k){return $a({sx:k,theme:this})},I.toRuntimeSource=x2,I}function F1(t,e,r){t.colorSchemes&&r&&(t.colorSchemes[e]={...r!==!0&&r,palette:v0({...r===!0?{}:r.palette,mode:e})})}function nh(t={},...e){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:a=r==null?void 0:r.mode,...l}=t,c=a||"light",u=o==null?void 0:o[c],f={...o,...r?{[c]:{...typeof u!="boolean"&&u,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in t))return ry(t,...e);let h=r;"palette"in t||f[c]&&(f[c]!==!0?h=f[c].palette:c==="dark"&&(h={mode:"dark"}));const v=ry({...t,palette:h},...e);return v.defaultColorScheme=c,v.colorSchemes=f,v.palette.mode==="light"&&(v.colorSchemes.light={...f.light!==!0&&f.light,palette:v.palette},F1(v,"dark",f.dark)),v.palette.mode==="dark"&&(v.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:v.palette},F1(v,"light",f.light)),v}return!r&&!("light"in f)&&c==="light"&&(f.light=!0),sR({...l,colorSchemes:f,defaultColorScheme:c,...typeof n!="boolean"&&n},...e)}function lR(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function cR(t){return parseFloat(t)}const b0=nh();function eo(){const t=id(b0);return t[Jo]||t}function C2(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const to=t=>C2(t)&&t!=="classes",ye=i2({themeId:Jo,defaultTheme:b0,rootShouldForwardProp:to});function uR({theme:t,...e}){const r=Jo in t?t[Jo]:void 0;return d.jsx(f2,{...e,themeId:r?Jo:void 0,theme:r||t})}const kp={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:dR}=Jj({themeId:Jo,theme:()=>nh({cssVariables:!0}),colorSchemeStorageKey:kp.colorSchemeStorageKey,modeStorageKey:kp.modeStorageKey,defaultColorScheme:{light:kp.defaultLightColorScheme,dark:kp.defaultDarkColorScheme},resolveTheme:t=>{const e={...t,typography:v2(t.palette,t.typography)};return e.unstable_sx=function(n){return $a({sx:n,theme:this})},e}}),pR=dR;function fR({theme:t,...e}){const r=S.useMemo(()=>{if(typeof t=="function")return t;const n=Jo in t?t[Jo]:t;return"colorSchemes"in n?null:"vars"in n?t:{...t,vars:null}},[t]);return r?d.jsx(uR,{theme:r,...e}):d.jsx(pR,{theme:t,...e})}function H1(...t){return t.reduce((e,r)=>r==null?e:function(...o){e.apply(this,o),r.apply(this,o)},()=>{})}function hR(t){return d.jsx(e2,{...t,defaultTheme:b0,themeId:Jo})}function mR(t){return function(r){return d.jsx(hR,{styles:typeof t=="function"?n=>t({theme:n,...r}):t})}}function gR(){return Jf}const Ge=Vj;function nt(t){return Dj(t)}function yR(t){return Ye("MuiSvgIcon",t)}Ze("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const vR=t=>{const{color:e,fontSize:r,classes:n}=t,o={root:["root",e!=="inherit"&&`color${ge(e)}`,`fontSize${ge(r)}`]};return Je(o,yR,n)},bR=ye("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="inherit"&&e[`color${ge(r.color)}`],e[`fontSize${ge(r.fontSize)}`]]}})(Ge(({theme:t})=>{var e,r,n,o,a,l,c,u,f,h,v,g,y,w;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(e=t.transitions)==null?void 0:e.create)==null?void 0:o.call(e,"fill",{duration:(n=(r=(t.vars??t).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:x=>!x.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((l=(a=t.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((u=(c=t.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((h=(f=t.typography)==null?void 0:f.pxToRem)==null?void 0:h.call(f,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,x])=>x&&x.main).map(([x])=>{var C,j;return{props:{color:x},style:{color:(j=(C=(t.vars??t).palette)==null?void 0:C[x])==null?void 0:j.main}}}),{props:{color:"action"},style:{color:(g=(v=(t.vars??t).palette)==null?void 0:v.action)==null?void 0:g.active}},{props:{color:"disabled"},style:{color:(w=(y=(t.vars??t).palette)==null?void 0:y.action)==null?void 0:w.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),oy=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiSvgIcon"}),{children:o,className:a,color:l="inherit",component:c="svg",fontSize:u="medium",htmlColor:f,inheritViewBox:h=!1,titleAccess:v,viewBox:g="0 0 24 24",...y}=n,w=S.isValidElement(o)&&o.type==="svg",x={...n,color:l,component:c,fontSize:u,instanceFontSize:e.fontSize,inheritViewBox:h,viewBox:g,hasSvgAsChild:w},C={};h||(C.viewBox=g);const j=vR(x);return d.jsxs(bR,{as:c,className:Ie(j.root,a),focusable:"false",color:f,"aria-hidden":v?void 0:!0,role:v?"img":void 0,ref:r,...C,...y,...w&&o.props,ownerState:x,children:[w?o.props.children:o,v?d.jsx("title",{children:v}):null]})});oy.muiName="SvgIcon";function Pe(t,e){function r(n,o){return d.jsx(oy,{"data-testid":void 0,ref:o,...n,children:t})}return r.muiName=oy.muiName,S.memo(S.forwardRef(r))}function oh(t,e=166){let r;function n(...o){const a=()=>{t.apply(this,o)};clearTimeout(r),r=setTimeout(a,e)}return n.clear=()=>{clearTimeout(r)},n}function dn(t){return t&&t.ownerDocument||document}function ei(t){return dn(t).defaultView||window}function iy(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function Na(t){const{controlled:e,default:r,name:n,state:o="value"}=t,{current:a}=S.useRef(e!==void 0),[l,c]=S.useState(r),u=a?e:l,f=S.useCallback(h=>{a||c(h)},[]);return[u,f]}function qr(t){const e=S.useRef(t);return Qn(()=>{e.current=t}),S.useRef((...r)=>(0,e.current)(...r)).current}function Rr(...t){const e=S.useRef(void 0),r=S.useCallback(n=>{const o=t.map(a=>{if(a==null)return null;if(typeof a=="function"){const l=a,c=l(n);return typeof c=="function"?c:()=>{l(null)}}return a.current=n,()=>{a.current=null}});return()=>{o.forEach(a=>a==null?void 0:a())}},t);return S.useMemo(()=>t.every(n=>n==null)?null:n=>{e.current&&(e.current(),e.current=void 0),n!=null&&(e.current=r(n))},t)}function xR(t,e){const r=t.charCodeAt(2);return t[0]==="o"&&t[1]==="n"&&r>=65&&r<=90&&typeof e=="function"}function T2(t,e){if(!t)return e;function r(l,c){const u={};return Object.keys(c).forEach(f=>{xR(f,c[f])&&typeof l[f]=="function"&&(u[f]=(...h)=>{l[f](...h),c[f](...h)})}),u}if(typeof t=="function"||typeof e=="function")return l=>{const c=typeof e=="function"?e(l):e,u=typeof t=="function"?t({...l,...c}):t,f=Ie(l==null?void 0:l.className,c==null?void 0:c.className,u==null?void 0:u.className),h=r(u,c);return{...c,...u,...h,...!!f&&{className:f},...(c==null?void 0:c.style)&&(u==null?void 0:u.style)&&{style:{...c.style,...u.style}},...(c==null?void 0:c.sx)&&(u==null?void 0:u.sx)&&{sx:[...Array.isArray(c.sx)?c.sx:[c.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const n=e,o=r(t,n),a=Ie(n==null?void 0:n.className,t==null?void 0:t.className);return{...e,...t,...o,...!!a&&{className:a},...(n==null?void 0:n.style)&&(t==null?void 0:t.style)&&{style:{...n.style,...t.style}},...(n==null?void 0:n.sx)&&(t==null?void 0:t.sx)&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(t.sx)?t.sx:[t.sx]]}}}function E2(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)!==-1)continue;r[n]=t[n]}return r}function ay(t,e){return ay=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ay(t,e)}function k2(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,ay(t,e)}const U1={disabled:!1},yf=Mt.createContext(null);var wR=function(e){return e.scrollTop},du="unmounted",vs="exited",bs="entering",Tl="entered",sy="exiting",oi=(function(t){k2(e,t);function e(n,o){var a;a=t.call(this,n,o)||this;var l=o,c=l&&!l.isMounting?n.enter:n.appear,u;return a.appearStatus=null,n.in?c?(u=vs,a.appearStatus=bs):u=Tl:n.unmountOnExit||n.mountOnEnter?u=du:u=vs,a.state={status:u},a.nextCallback=null,a}e.getDerivedStateFromProps=function(o,a){var l=o.in;return l&&a.status===du?{status:vs}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var a=null;if(o!==this.props){var l=this.state.status;this.props.in?l!==bs&&l!==Tl&&(a=bs):(l===bs||l===Tl)&&(a=sy)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,a,l,c;return a=l=c=o,o!=null&&typeof o!="number"&&(a=o.exit,l=o.enter,c=o.appear!==void 0?o.appear:l),{exit:a,enter:l,appear:c}},r.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===bs){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:Cp.findDOMNode(this);l&&wR(l)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===vs&&this.setState({status:du})},r.performEnter=function(o){var a=this,l=this.props.enter,c=this.context?this.context.isMounting:o,u=this.props.nodeRef?[c]:[Cp.findDOMNode(this),c],f=u[0],h=u[1],v=this.getTimeouts(),g=c?v.appear:v.enter;if(!o&&!l||U1.disabled){this.safeSetState({status:Tl},function(){a.props.onEntered(f)});return}this.props.onEnter(f,h),this.safeSetState({status:bs},function(){a.props.onEntering(f,h),a.onTransitionEnd(g,function(){a.safeSetState({status:Tl},function(){a.props.onEntered(f,h)})})})},r.performExit=function(){var o=this,a=this.props.exit,l=this.getTimeouts(),c=this.props.nodeRef?void 0:Cp.findDOMNode(this);if(!a||U1.disabled){this.safeSetState({status:vs},function(){o.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:sy},function(){o.props.onExiting(c),o.onTransitionEnd(l.exit,function(){o.safeSetState({status:vs},function(){o.props.onExited(c)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},r.setNextCallback=function(o){var a=this,l=!0;return this.nextCallback=function(c){l&&(l=!1,a.nextCallback=null,o(c))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},r.onTransitionEnd=function(o,a){this.setNextCallback(a);var l=this.props.nodeRef?this.props.nodeRef.current:Cp.findDOMNode(this),c=o==null&&!this.props.addEndListener;if(!l||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],f=u[0],h=u[1];this.props.addEndListener(f,h)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===du)return null;var a=this.props,l=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var c=E2(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Mt.createElement(yf.Provider,{value:null},typeof l=="function"?l(o,c):Mt.cloneElement(Mt.Children.only(l),c))},e})(Mt.Component);oi.contextType=yf;oi.propTypes={};function bl(){}oi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:bl,onEntering:bl,onEntered:bl,onExit:bl,onExiting:bl,onExited:bl};oi.UNMOUNTED=du;oi.EXITED=vs;oi.ENTERING=bs;oi.ENTERED=Tl;oi.EXITING=sy;function SR(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function x0(t,e){var r=function(a){return e&&S.isValidElement(a)?e(a):a},n=Object.create(null);return t&&S.Children.map(t,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function CR(t,e){t=t||{},e=e||{};function r(h){return h in e?e[h]:t[h]}var n=Object.create(null),o=[];for(var a in t)a in e?o.length&&(n[a]=o,o=[]):o.push(a);var l,c={};for(var u in e){if(n[u])for(l=0;l<n[u].length;l++){var f=n[u][l];c[n[u][l]]=r(f)}c[u]=r(u)}for(l=0;l<o.length;l++)c[o[l]]=r(o[l]);return c}function Cs(t,e,r){return r[e]!=null?r[e]:t.props[e]}function TR(t,e){return x0(t.children,function(r){return S.cloneElement(r,{onExited:e.bind(null,r),in:!0,appear:Cs(r,"appear",t),enter:Cs(r,"enter",t),exit:Cs(r,"exit",t)})})}function ER(t,e,r){var n=x0(t.children),o=CR(e,n);return Object.keys(o).forEach(function(a){var l=o[a];if(S.isValidElement(l)){var c=a in e,u=a in n,f=e[a],h=S.isValidElement(f)&&!f.props.in;u&&(!c||h)?o[a]=S.cloneElement(l,{onExited:r.bind(null,l),in:!0,exit:Cs(l,"exit",t),enter:Cs(l,"enter",t)}):!u&&c&&!h?o[a]=S.cloneElement(l,{in:!1}):u&&c&&S.isValidElement(f)&&(o[a]=S.cloneElement(l,{onExited:r.bind(null,l),in:f.props.in,exit:Cs(l,"exit",t),enter:Cs(l,"enter",t)}))}}),o}var kR=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},PR={component:"div",childFactory:function(e){return e}},w0=(function(t){k2(e,t);function e(n,o){var a;a=t.call(this,n,o)||this;var l=a.handleExited.bind(SR(a));return a.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},a}var r=e.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(o,a){var l=a.children,c=a.handleExited,u=a.firstRender;return{children:u?TR(o,c):ER(o,l,c),firstRender:!1}},r.handleExited=function(o,a){var l=x0(this.props.children);o.key in l||(o.props.onExited&&o.props.onExited(a),this.mounted&&this.setState(function(c){var u=ff({},c.children);return delete u[o.key],{children:u}}))},r.render=function(){var o=this.props,a=o.component,l=o.childFactory,c=E2(o,["component","childFactory"]),u=this.state.contextValue,f=kR(this.state.children).map(l);return delete c.appear,delete c.enter,delete c.exit,a===null?Mt.createElement(yf.Provider,{value:u},f):Mt.createElement(yf.Provider,{value:u},Mt.createElement(a,c,f))},e})(Mt.Component);w0.propTypes={};w0.defaultProps=PR;const V1={};function P2(t,e){const r=S.useRef(V1);return r.current===V1&&(r.current=t(e)),r}const jR=[];function MR(t){S.useEffect(t,jR)}class ih{constructor(){hs(this,"currentId",null);hs(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});hs(this,"disposeEffect",()=>this.clear)}static create(){return new ih}start(e,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},e)}}function _a(){const t=P2(ih.create).current;return MR(t.disposeEffect),t}const j2=t=>t.scrollTop;function $l(t,e){const{timeout:r,easing:n,style:o={}}=t;return{duration:o.transitionDuration??(typeof r=="number"?r:r[e.mode]||0),easing:o.transitionTimingFunction??(typeof n=="object"?n[e.mode]:n),delay:o.transitionDelay}}function vf(t){return typeof t=="string"}function M2(t,e,r){return t===void 0||vf(t)?e:{...e,ownerState:{...e.ownerState,...r}}}function R2(t,e,r){return typeof t=="function"?t(e,r):t}function bf(t,e=[]){if(t===void 0)return{};const r={};return Object.keys(t).filter(n=>n.match(/^on[A-Z]/)&&typeof t[n]=="function"&&!e.includes(n)).forEach(n=>{r[n]=t[n]}),r}function W1(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(r=>!(r.match(/^on[A-Z]/)&&typeof t[r]=="function")).forEach(r=>{e[r]=t[r]}),e}function I2(t){const{getSlotProps:e,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=t;if(!e){const y=Ie(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),w={...r==null?void 0:r.style,...o==null?void 0:o.style,...n==null?void 0:n.style},x={...r,...o,...n};return y.length>0&&(x.className=y),Object.keys(w).length>0&&(x.style=w),{props:x,internalRef:void 0}}const l=bf({...o,...n}),c=W1(n),u=W1(o),f=e(l),h=Ie(f==null?void 0:f.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),v={...f==null?void 0:f.style,...r==null?void 0:r.style,...o==null?void 0:o.style,...n==null?void 0:n.style},g={...f,...r,...u,...c};return h.length>0&&(g.className=h),Object.keys(v).length>0&&(g.style=v),{props:g,internalRef:f.ref}}function Xe(t,e){const{className:r,elementType:n,ownerState:o,externalForwardedProps:a,internalForwardedProps:l,shouldForwardComponentProp:c=!1,...u}=e,{component:f,slots:h={[t]:void 0},slotProps:v={[t]:void 0},...g}=a,y=h[t]||n,w=R2(v[t],o),{props:{component:x,...C},internalRef:j}=I2({className:r,...u,externalForwardedProps:t==="root"?g:void 0,externalSlotProps:w}),P=Rr(j,w==null?void 0:w.ref,e.ref),M=t==="root"?x||f:x,E=M2(y,{...t==="root"&&!f&&!h[t]&&l,...t!=="root"&&!h[t]&&l,...C,...M&&!c&&{as:M},...M&&c&&{component:M},ref:P},o);return[y,E]}function RR(t){return Ye("MuiCollapse",t)}Ze("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const IR=t=>{const{orientation:e,classes:r}=t,n={root:["root",`${e}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${e}`],wrapperInner:["wrapperInner",`${e}`]};return Je(n,RR,r)},AR=ye("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.orientation],r.state==="entered"&&e.entered,r.state==="exited"&&!r.in&&r.collapsedSize==="0px"&&e.hidden]}})(Ge(({theme:t})=>({height:0,overflow:"hidden",transition:t.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:t.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:e})=>e.state==="exited"&&!e.in&&e.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),_R=ye("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),LR=ye("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),xf=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiCollapse"}),{addEndListener:o,children:a,className:l,collapsedSize:c="0px",component:u,easing:f,in:h,onEnter:v,onEntered:g,onEntering:y,onExit:w,onExited:x,onExiting:C,orientation:j="vertical",slots:P={},slotProps:M={},style:E,timeout:R=b2.standard,TransitionComponent:I=oi,...F}=n,A={...n,orientation:j,collapsedSize:c},H=IR(A),G=eo(),N=_a(),k=S.useRef(null),q=S.useRef(),U=typeof c=="number"?`${c}px`:c,L=j==="horizontal",W=L?"width":"height",K=S.useRef(null),ee=Rr(r,K),Z=_e=>Ke=>{if(_e){const pt=K.current;Ke===void 0?_e(pt):_e(pt,Ke)}},Q=()=>k.current?k.current[L?"clientWidth":"clientHeight"]:0,X=Z((_e,Ke)=>{k.current&&L&&(k.current.style.position="absolute"),_e.style[W]=U,v&&v(_e,Ke)}),re=Z((_e,Ke)=>{const pt=Q();k.current&&L&&(k.current.style.position="");const{duration:je,easing:ht}=$l({style:E,timeout:R,easing:f},{mode:"enter"});if(R==="auto"){const We=G.transitions.getAutoHeightDuration(pt);_e.style.transitionDuration=`${We}ms`,q.current=We}else _e.style.transitionDuration=typeof je=="string"?je:`${je}ms`;_e.style[W]=`${pt}px`,_e.style.transitionTimingFunction=ht,y&&y(_e,Ke)}),ce=Z((_e,Ke)=>{_e.style[W]="auto",g&&g(_e,Ke)}),Y=Z(_e=>{_e.style[W]=`${Q()}px`,w&&w(_e)}),ne=Z(x),J=Z(_e=>{const Ke=Q(),{duration:pt,easing:je}=$l({style:E,timeout:R,easing:f},{mode:"exit"});if(R==="auto"){const ht=G.transitions.getAutoHeightDuration(Ke);_e.style.transitionDuration=`${ht}ms`,q.current=ht}else _e.style.transitionDuration=typeof pt=="string"?pt:`${pt}ms`;_e.style[W]=U,_e.style.transitionTimingFunction=je,C&&C(_e)}),de=_e=>{R==="auto"&&N.start(q.current||0,_e),o&&o(K.current,_e)},Ce={slots:P,slotProps:M,component:u},[me,se]=Xe("root",{ref:ee,className:Ie(H.root,l),elementType:AR,externalForwardedProps:Ce,ownerState:A,additionalProps:{style:{[L?"minWidth":"minHeight"]:U,...E}}}),[De,Ne]=Xe("wrapper",{ref:k,className:H.wrapper,elementType:_R,externalForwardedProps:Ce,ownerState:A}),[Oe,Be]=Xe("wrapperInner",{className:H.wrapperInner,elementType:LR,externalForwardedProps:Ce,ownerState:A});return d.jsx(I,{in:h,onEnter:X,onEntered:ce,onEntering:re,onExit:Y,onExited:ne,onExiting:J,addEndListener:de,nodeRef:K,timeout:R==="auto"?null:R,...F,children:(_e,{ownerState:Ke,...pt})=>{const je={...A,state:_e};return d.jsx(me,{...se,className:Ie(se.className,{entered:H.entered,exited:!h&&U==="0px"&&H.hidden}[_e]),ownerState:je,...pt,children:d.jsx(De,{...Ne,ownerState:je,children:d.jsx(Oe,{...Be,ownerState:je,children:a})})})}})});xf&&(xf.muiSupportAuto=!0);function OR(t){return Ye("MuiPaper",t)}Ze("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const NR=t=>{const{square:e,elevation:r,variant:n,classes:o}=t,a={root:["root",n,!e&&"rounded",n==="elevation"&&`elevation${r}`]};return Je(a,OR,o)},$R=ye("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],!r.square&&e.rounded,r.variant==="elevation"&&e[`elevation${r.elevation}`]]}})(Ge(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Ir=S.forwardRef(function(e,r){var y;const n=nt({props:e,name:"MuiPaper"}),o=eo(),{className:a,component:l="div",elevation:c=1,square:u=!1,variant:f="elevation",...h}=n,v={...n,component:l,elevation:c,square:u,variant:f},g=NR(v);return d.jsx($R,{as:l,ownerState:v,className:Ie(g.root,a),ref:r,...h,style:{...f==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[c],...o.vars&&{"--Paper-overlay":(y=o.vars.overlays)==null?void 0:y[c]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Lu("#fff",ny(c))}, ${Lu("#fff",ny(c))})`}},...h.style}})});function Bl(t){try{return t.matches(":focus-visible")}catch{}return!1}class wf{constructor(){hs(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new wf}static use(){const e=P2(wf.create).current,[r,n]=S.useState(!1);return e.shouldMount=r,e.setShouldMount=n,S.useEffect(e.mountEffect,[r]),e}mount(){return this.mounted||(this.mounted=zR(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...e)})}stop(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...e)})}pulsate(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...e)})}}function BR(){return wf.use()}function zR(){let t,e;const r=new Promise((n,o)=>{t=n,e=o});return r.resolve=t,r.reject=e,r}function DR(t){const{className:e,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:l,in:c,onExited:u,timeout:f}=t,[h,v]=S.useState(!1),g=Ie(e,r.ripple,r.rippleVisible,n&&r.ripplePulsate),y={width:l,height:l,top:-(l/2)+a,left:-(l/2)+o},w=Ie(r.child,h&&r.childLeaving,n&&r.childPulsate);return!c&&!h&&v(!0),S.useEffect(()=>{if(!c&&u!=null){const x=setTimeout(u,f);return()=>{clearTimeout(x)}}},[u,c,f]),d.jsx("span",{className:g,style:y,children:d.jsx("span",{className:w})})}const Ro=Ze("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ly=550,FR=80,HR=Li`
118
- 0% {
119
- transform: scale(0);
120
- opacity: 0.1;
121
- }
122
-
123
- 100% {
124
- transform: scale(1);
125
- opacity: 0.3;
126
- }
127
- `,UR=Li`
128
- 0% {
129
- opacity: 1;
130
- }
131
-
132
- 100% {
133
- opacity: 0;
134
- }
135
- `,VR=Li`
136
- 0% {
137
- transform: scale(1);
138
- }
139
-
140
- 50% {
141
- transform: scale(0.92);
142
- }
143
-
144
- 100% {
145
- transform: scale(1);
146
- }
147
- `,WR=ye("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),qR=ye(DR,{name:"MuiTouchRipple",slot:"Ripple"})`
148
- opacity: 0;
149
- position: absolute;
150
-
151
- &.${Ro.rippleVisible} {
152
- opacity: 0.3;
153
- transform: scale(1);
154
- animation-name: ${HR};
155
- animation-duration: ${ly}ms;
156
- animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
157
- }
158
-
159
- &.${Ro.ripplePulsate} {
160
- animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms;
161
- }
162
-
163
- & .${Ro.child} {
164
- opacity: 1;
165
- display: block;
166
- width: 100%;
167
- height: 100%;
168
- border-radius: 50%;
169
- background-color: currentColor;
170
- }
171
-
172
- & .${Ro.childLeaving} {
173
- opacity: 0;
174
- animation-name: ${UR};
175
- animation-duration: ${ly}ms;
176
- animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
177
- }
178
-
179
- & .${Ro.childPulsate} {
180
- position: absolute;
181
- /* @noflip */
182
- left: 0px;
183
- top: 0;
184
- animation-name: ${VR};
185
- animation-duration: 2500ms;
186
- animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
187
- animation-iteration-count: infinite;
188
- animation-delay: 200ms;
189
- }
190
- `,GR=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:l,...c}=n,[u,f]=S.useState([]),h=S.useRef(0),v=S.useRef(null);S.useEffect(()=>{v.current&&(v.current(),v.current=null)},[u]);const g=S.useRef(!1),y=_a(),w=S.useRef(null),x=S.useRef(null),C=S.useCallback(E=>{const{pulsate:R,rippleX:I,rippleY:F,rippleSize:A,cb:H}=E;f(G=>[...G,d.jsx(qR,{classes:{ripple:Ie(a.ripple,Ro.ripple),rippleVisible:Ie(a.rippleVisible,Ro.rippleVisible),ripplePulsate:Ie(a.ripplePulsate,Ro.ripplePulsate),child:Ie(a.child,Ro.child),childLeaving:Ie(a.childLeaving,Ro.childLeaving),childPulsate:Ie(a.childPulsate,Ro.childPulsate)},timeout:ly,pulsate:R,rippleX:I,rippleY:F,rippleSize:A},h.current)]),h.current+=1,v.current=H},[a]),j=S.useCallback((E={},R={},I=()=>{})=>{const{pulsate:F=!1,center:A=o||R.pulsate,fakeElement:H=!1}=R;if((E==null?void 0:E.type)==="mousedown"&&g.current){g.current=!1;return}(E==null?void 0:E.type)==="touchstart"&&(g.current=!0);const G=H?null:x.current,N=G?G.getBoundingClientRect():{width:0,height:0,left:0,top:0};let k,q,U;if(A||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)k=Math.round(N.width/2),q=Math.round(N.height/2);else{const{clientX:L,clientY:W}=E.touches&&E.touches.length>0?E.touches[0]:E;k=Math.round(L-N.left),q=Math.round(W-N.top)}if(A)U=Math.sqrt((2*N.width**2+N.height**2)/3),U%2===0&&(U+=1);else{const L=Math.max(Math.abs((G?G.clientWidth:0)-k),k)*2+2,W=Math.max(Math.abs((G?G.clientHeight:0)-q),q)*2+2;U=Math.sqrt(L**2+W**2)}E!=null&&E.touches?w.current===null&&(w.current=()=>{C({pulsate:F,rippleX:k,rippleY:q,rippleSize:U,cb:I})},y.start(FR,()=>{w.current&&(w.current(),w.current=null)})):C({pulsate:F,rippleX:k,rippleY:q,rippleSize:U,cb:I})},[o,C,y]),P=S.useCallback(()=>{j({},{pulsate:!0})},[j]),M=S.useCallback((E,R)=>{if(y.clear(),(E==null?void 0:E.type)==="touchend"&&w.current){w.current(),w.current=null,y.start(0,()=>{M(E,R)});return}w.current=null,f(I=>I.length>0?I.slice(1):I),v.current=R},[y]);return S.useImperativeHandle(r,()=>({pulsate:P,start:j,stop:M}),[P,j,M]),d.jsx(WR,{className:Ie(Ro.root,a.root,l),ref:x,...c,children:d.jsx(w0,{component:null,exit:!0,children:u})})});function XR(t){return Ye("MuiButtonBase",t)}const KR=Ze("MuiButtonBase",["root","disabled","focusVisible"]),QR=t=>{const{disabled:e,focusVisible:r,focusVisibleClassName:n,classes:o}=t,l=Je({root:["root",e&&"disabled",r&&"focusVisible"]},XR,o);return r&&n&&(l.root+=` ${n}`),l},YR=ye("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${KR.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ti=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:l,className:c,component:u="button",disabled:f=!1,disableRipple:h=!1,disableTouchRipple:v=!1,focusRipple:g=!1,focusVisibleClassName:y,LinkComponent:w="a",onBlur:x,onClick:C,onContextMenu:j,onDragLeave:P,onFocus:M,onFocusVisible:E,onKeyDown:R,onKeyUp:I,onMouseDown:F,onMouseLeave:A,onMouseUp:H,onTouchEnd:G,onTouchMove:N,onTouchStart:k,tabIndex:q=0,TouchRippleProps:U,touchRippleRef:L,type:W,...K}=n,ee=S.useRef(null),Z=BR(),Q=Rr(Z.ref,L),[X,re]=S.useState(!1);f&&X&&re(!1),S.useImperativeHandle(o,()=>({focusVisible:()=>{re(!0),ee.current.focus()}}),[]);const ce=Z.shouldMount&&!h&&!f;S.useEffect(()=>{X&&g&&!h&&Z.pulsate()},[h,g,X,Z]);const Y=Gi(Z,"start",F,v),ne=Gi(Z,"stop",j,v),J=Gi(Z,"stop",P,v),de=Gi(Z,"stop",H,v),Ce=Gi(Z,"stop",Ue=>{X&&Ue.preventDefault(),A&&A(Ue)},v),me=Gi(Z,"start",k,v),se=Gi(Z,"stop",G,v),De=Gi(Z,"stop",N,v),Ne=Gi(Z,"stop",Ue=>{Bl(Ue.target)||re(!1),x&&x(Ue)},!1),Oe=qr(Ue=>{ee.current||(ee.current=Ue.currentTarget),Bl(Ue.target)&&(re(!0),E&&E(Ue)),M&&M(Ue)}),Be=()=>{const Ue=ee.current;return u&&u!=="button"&&!(Ue.tagName==="A"&&Ue.href)},_e=qr(Ue=>{g&&!Ue.repeat&&X&&Ue.key===" "&&Z.stop(Ue,()=>{Z.start(Ue)}),Ue.target===Ue.currentTarget&&Be()&&Ue.key===" "&&Ue.preventDefault(),R&&R(Ue),Ue.target===Ue.currentTarget&&Be()&&Ue.key==="Enter"&&!f&&(Ue.preventDefault(),C&&C(Ue))}),Ke=qr(Ue=>{g&&Ue.key===" "&&X&&!Ue.defaultPrevented&&Z.stop(Ue,()=>{Z.pulsate(Ue)}),I&&I(Ue),C&&Ue.target===Ue.currentTarget&&Be()&&Ue.key===" "&&!Ue.defaultPrevented&&C(Ue)});let pt=u;pt==="button"&&(K.href||K.to)&&(pt=w);const je={};if(pt==="button"){const Ue=!!K.formAction;je.type=W===void 0&&!Ue?"button":W,je.disabled=f}else!K.href&&!K.to&&(je.role="button"),f&&(je["aria-disabled"]=f);const ht=Rr(r,ee),We={...n,centerRipple:a,component:u,disabled:f,disableRipple:h,disableTouchRipple:v,focusRipple:g,tabIndex:q,focusVisible:X},ft=QR(We);return d.jsxs(YR,{as:pt,className:Ie(ft.root,c),ownerState:We,onBlur:Ne,onClick:C,onContextMenu:ne,onFocus:Oe,onKeyDown:_e,onKeyUp:Ke,onMouseDown:Y,onMouseLeave:Ce,onMouseUp:de,onDragLeave:J,onTouchEnd:se,onTouchMove:De,onTouchStart:me,ref:ht,tabIndex:f?-1:q,type:W,...je,...K,children:[l,ce?d.jsx(GR,{ref:Q,center:a,...U}):null]})});function Gi(t,e,r,n=!1){return qr(o=>(r&&r(o),n||t[e](o),!0))}function JR(t){return typeof t.main=="string"}function ZR(t,e=[]){if(!JR(t))return!1;for(const r of e)if(!t.hasOwnProperty(r)||typeof t[r]!="string")return!1;return!0}function Zt(t=[]){return([,e])=>e&&ZR(e,t)}function eI(t){return Ye("MuiAlert",t)}const q1=Ze("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function tI(t){return Ye("MuiCircularProgress",t)}Ze("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ko=44,cy=Li`
191
- 0% {
192
- transform: rotate(0deg);
193
- }
194
-
195
- 100% {
196
- transform: rotate(360deg);
197
- }
198
- `,uy=Li`
199
- 0% {
200
- stroke-dasharray: 1px, 200px;
201
- stroke-dashoffset: 0;
202
- }
203
-
204
- 50% {
205
- stroke-dasharray: 100px, 200px;
206
- stroke-dashoffset: -15px;
207
- }
208
-
209
- 100% {
210
- stroke-dasharray: 1px, 200px;
211
- stroke-dashoffset: -126px;
212
- }
213
- `,rI=typeof cy!="string"?Xa`
214
- animation: ${cy} 1.4s linear infinite;
215
- `:null,nI=typeof uy!="string"?Xa`
216
- animation: ${uy} 1.4s ease-in-out infinite;
217
- `:null,oI=t=>{const{classes:e,variant:r,color:n,disableShrink:o}=t,a={root:["root",r,`color${ge(n)}`],svg:["svg"],track:["track"],circle:["circle",`circle${ge(r)}`,o&&"circleDisableShrink"]};return Je(a,tI,e)},iI=ye("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`color${ge(r.color)}`]]}})(Ge(({theme:t})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:rI||{animation:`${cy} 1.4s linear infinite`}},...Object.entries(t.palette).filter(Zt()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}}))]}))),aI=ye("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),sI=ye("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.circle,e[`circle${ge(r.variant)}`],r.disableShrink&&e.circleDisableShrink]}})(Ge(({theme:t})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink,style:nI||{animation:`${uy} 1.4s ease-in-out infinite`}}]}))),lI=ye("circle",{name:"MuiCircularProgress",slot:"Track"})(Ge(({theme:t})=>({stroke:"currentColor",opacity:(t.vars||t).palette.action.activatedOpacity}))),On=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:l=!1,enableTrackSlot:c=!1,size:u=40,style:f,thickness:h=3.6,value:v=0,variant:g="indeterminate",...y}=n,w={...n,color:a,disableShrink:l,size:u,thickness:h,value:v,variant:g,enableTrackSlot:c},x=oI(w),C={},j={},P={};if(g==="determinate"){const M=2*Math.PI*((Ko-h)/2);C.strokeDasharray=M.toFixed(3),P["aria-valuenow"]=Math.round(v),C.strokeDashoffset=`${((100-v)/100*M).toFixed(3)}px`,j.transform="rotate(-90deg)"}return d.jsx(iI,{className:Ie(x.root,o),style:{width:u,height:u,...j,...f},ownerState:w,ref:r,role:"progressbar",...P,...y,children:d.jsxs(aI,{className:x.svg,ownerState:w,viewBox:`${Ko/2} ${Ko/2} ${Ko} ${Ko}`,children:[c?d.jsx(lI,{className:x.track,ownerState:w,cx:Ko,cy:Ko,r:(Ko-h)/2,fill:"none",strokeWidth:h,"aria-hidden":"true"}):null,d.jsx(sI,{className:x.circle,style:C,ownerState:w,cx:Ko,cy:Ko,r:(Ko-h)/2,fill:"none",strokeWidth:h})]})})});function cI(t){return Ye("MuiIconButton",t)}const G1=Ze("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),uI=t=>{const{classes:e,disabled:r,color:n,edge:o,size:a,loading:l}=t,c={root:["root",l&&"loading",r&&"disabled",n!=="default"&&`color${ge(n)}`,o&&`edge${ge(o)}`,`size${ge(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Je(c,cI,e)},dI=ye(ti,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.loading&&e.loading,r.color!=="default"&&e[`color${ge(r.color)}`],r.edge&&e[`edge${ge(r.edge)}`],e[`size${ge(r.size)}`]]}})(Ge(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":t.alpha((t.vars||t).palette.action.active,(t.vars||t).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Ge(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(Zt()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette).filter(Zt()).map(([e])=>({props:{color:e},style:{"--IconButton-hoverBg":t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${G1.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${G1.loading}`]:{color:"transparent"}}))),pI=ye("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),ur=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiIconButton"}),{edge:o=!1,children:a,className:l,color:c="default",disabled:u=!1,disableFocusRipple:f=!1,size:h="medium",id:v,loading:g=null,loadingIndicator:y,...w}=n,x=Pi(v),C=y??d.jsx(On,{"aria-labelledby":x,color:"inherit",size:16}),j={...n,edge:o,color:c,disabled:u,disableFocusRipple:f,loading:g,loadingIndicator:C,size:h},P=uI(j);return d.jsxs(dI,{id:g?x:v,className:Ie(P.root,l),centerRipple:!0,focusRipple:!f,disabled:u||g,ref:r,...w,ownerState:j,children:[typeof g=="boolean"&&d.jsx("span",{className:P.loadingWrapper,style:{display:"contents"},children:d.jsx(pI,{className:P.loadingIndicator,ownerState:j,children:g&&C})}),a]})}),fI=Pe(d.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})),hI=Pe(d.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),mI=Pe(d.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),gI=Pe(d.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"})),A2=Pe(d.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),yI=t=>{const{variant:e,color:r,severity:n,classes:o}=t,a={root:["root",`color${ge(r||n)}`,`${e}${ge(r||n)}`,`${e}`],icon:["icon"],message:["message"],action:["action"]};return Je(a,eI,o)},vI=ye(Ir,{name:"MuiAlert",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`${r.variant}${ge(r.color||r.severity)}`]]}})(Ge(({theme:t})=>{const e=t.palette.mode==="light"?t.darken:t.lighten,r=t.palette.mode==="light"?t.lighten:t.darken;return{...t.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter(Zt(["light"])).map(([n])=>({props:{colorSeverity:n,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert[`${n}Color`]:e(t.palette[n].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[`${n}StandardBg`]:r(t.palette[n].light,.9),[`& .${q1.icon}`]:t.vars?{color:t.vars.palette.Alert[`${n}IconColor`]}:{color:t.palette[n].main}}})),...Object.entries(t.palette).filter(Zt(["light"])).map(([n])=>({props:{colorSeverity:n,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert[`${n}Color`]:e(t.palette[n].light,.6),border:`1px solid ${(t.vars||t).palette[n].light}`,[`& .${q1.icon}`]:t.vars?{color:t.vars.palette.Alert[`${n}IconColor`]}:{color:t.palette[n].main}}})),...Object.entries(t.palette).filter(Zt(["dark"])).map(([n])=>({props:{colorSeverity:n,variant:"filled"},style:{fontWeight:t.typography.fontWeightMedium,...t.vars?{color:t.vars.palette.Alert[`${n}FilledColor`],backgroundColor:t.vars.palette.Alert[`${n}FilledBg`]}:{backgroundColor:t.palette.mode==="dark"?t.palette[n].dark:t.palette[n].main,color:t.palette.getContrastText(t.palette[n].main)}}}))]}})),bI=ye("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),xI=ye("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),wI=ye("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),X1={success:d.jsx(fI,{fontSize:"inherit"}),warning:d.jsx(hI,{fontSize:"inherit"}),error:d.jsx(mI,{fontSize:"inherit"}),info:d.jsx(gI,{fontSize:"inherit"})},Tn=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiAlert"}),{action:o,children:a,className:l,closeText:c="Close",color:u,components:f={},componentsProps:h={},icon:v,iconMapping:g=X1,onClose:y,role:w="alert",severity:x="success",slotProps:C={},slots:j={},variant:P="standard",...M}=n,E={...n,color:u,severity:x,variant:P,colorSeverity:u||x},R=yI(E),I={slots:{closeButton:f.CloseButton,closeIcon:f.CloseIcon,...j},slotProps:{...h,...C}},[F,A]=Xe("root",{ref:r,shouldForwardComponentProp:!0,className:Ie(R.root,l),elementType:vI,externalForwardedProps:{...I,...M},ownerState:E,additionalProps:{role:w,elevation:0}}),[H,G]=Xe("icon",{className:R.icon,elementType:bI,externalForwardedProps:I,ownerState:E}),[N,k]=Xe("message",{className:R.message,elementType:xI,externalForwardedProps:I,ownerState:E}),[q,U]=Xe("action",{className:R.action,elementType:wI,externalForwardedProps:I,ownerState:E}),[L,W]=Xe("closeButton",{elementType:ur,externalForwardedProps:I,ownerState:E}),[K,ee]=Xe("closeIcon",{elementType:A2,externalForwardedProps:I,ownerState:E});return d.jsxs(F,{...A,children:[v!==!1?d.jsx(H,{...G,children:v||g[x]||X1[x]}):null,d.jsx(N,{...k,children:a}),o!=null?d.jsx(q,{...U,children:o}):null,o==null&&y?d.jsx(q,{...U,children:d.jsx(L,{size:"small","aria-label":c,title:c,color:"inherit",onClick:y,...W,children:d.jsx(K,{fontSize:"small",...ee})})}):null]})});function SI(t){return Ye("MuiTypography",t)}const K1=Ze("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),CI={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},TI=gR(),EI=t=>{const{align:e,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:l}=t,c={root:["root",a,t.align!=="inherit"&&`align${ge(e)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return Je(c,SI,l)},kI=ye("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.variant&&e[r.variant],r.align!=="inherit"&&e[`align${ge(r.align)}`],r.noWrap&&e.noWrap,r.gutterBottom&&e.gutterBottom,r.paragraph&&e.paragraph]}})(Ge(({theme:t})=>{var e;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([r,n])=>r!=="inherit"&&n&&typeof n=="object").map(([r,n])=>({props:{variant:r},style:n})),...Object.entries(t.palette).filter(Zt()).map(([r])=>({props:{color:r},style:{color:(t.vars||t).palette[r].main}})),...Object.entries(((e=t.palette)==null?void 0:e.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${ge(r)}`},style:{color:(t.vars||t).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),Q1={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ee=S.forwardRef(function(e,r){const{color:n,...o}=nt({props:e,name:"MuiTypography"}),a=!CI[n],l=TI({...o,...a&&{color:n}}),{align:c="inherit",className:u,component:f,gutterBottom:h=!1,noWrap:v=!1,paragraph:g=!1,variant:y="body1",variantMapping:w=Q1,...x}=l,C={...l,align:c,color:n,className:u,component:f,gutterBottom:h,noWrap:v,paragraph:g,variant:y,variantMapping:w},j=f||(g?"p":w[y]||Q1[y])||"span",P=EI(C);return d.jsx(kI,{as:j,ref:r,className:Ie(P.root,u),...x,ownerState:C,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...x.style}})});function PI(t){const e=S.useRef({});return S.useEffect(()=>{e.current=t}),e.current}function Y1({array1:t,array2:e,parser:r=n=>n}){return t&&e&&t.length===e.length&&t.every((n,o)=>r(n)===r(e[o]))}function J1(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function jI(t={}){const{ignoreAccents:e=!0,ignoreCase:r=!0,limit:n,matchFrom:o="any",stringify:a,trim:l=!1}=t;return(c,{inputValue:u,getOptionLabel:f})=>{let h=l?u.trim():u;r&&(h=h.toLowerCase()),e&&(h=J1(h));const v=h?c.filter(g=>{let y=(a||f)(g);return r&&(y=y.toLowerCase()),e&&(y=J1(y)),o==="start"?y.startsWith(h):y.includes(h)}):c;return typeof n=="number"?v.slice(0,n):v}}const MI=jI(),Z1=5,RI=t=>{var e;return t.current!==null&&((e=t.current.parentElement)==null?void 0:e.contains(document.activeElement))},II=[];function ew(t,e,r,n){if(e||t==null||n)return"";const o=r(t);return typeof o=="string"?o:""}function AI(t){const{unstable_isActiveElementInListbox:e=RI,unstable_classNamePrefix:r="Mui",autoComplete:n=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:l=!1,clearOnBlur:c=!t.freeSolo,clearOnEscape:u=!1,componentName:f="useAutocomplete",defaultValue:h=t.multiple?II:null,disableClearable:v=!1,disableCloseOnSelect:g=!1,disabled:y,disabledItemsFocusable:w=!1,disableListWrap:x=!1,filterOptions:C=MI,filterSelectedOptions:j=!1,freeSolo:P=!1,getOptionDisabled:M,getOptionKey:E,getOptionLabel:R=we=>we.label??we,groupBy:I,handleHomeEndKeys:F=!t.freeSolo,id:A,includeInputInList:H=!1,inputValue:G,isOptionEqualToValue:N=(we,xe)=>we===xe,multiple:k=!1,onChange:q,onClose:U,onHighlightChange:L,onInputChange:W,onOpen:K,open:ee,openOnFocus:Z=!1,options:Q,readOnly:X=!1,renderValue:re,selectOnFocus:ce=!t.freeSolo,value:Y}=t,ne=Pi(A);let J=R;J=we=>{const xe=R(we);return typeof xe!="string"?String(xe):xe};const de=S.useRef(!1),Ce=S.useRef(!0),me=S.useRef(null),se=S.useRef(null),[De,Ne]=S.useState(null),[Oe,Be]=S.useState(-1),_e=o?0:-1,Ke=S.useRef(_e),pt=S.useRef(ew(h??Y,k,J)).current,[je,ht]=Na({controlled:Y,default:h,name:f}),[We,ft]=Na({controlled:G,default:pt,name:f,state:"inputValue"}),[Ue,Gt]=S.useState(!1),Tt=S.useCallback((we,xe,tt)=>{if(!(k?je.length<xe.length:xe!==null)&&!c)return;const Pt=ew(xe,k,J,re);We!==Pt&&(ft(Pt),W&&W(we,Pt,tt))},[J,We,k,W,ft,c,je,re]),[ue,be]=Na({controlled:ee,default:!1,name:f,state:"open"}),[Te,Me]=S.useState(!0),Ve=!k&&je!=null&&We===J(je),Qe=ue&&!X,oe=Qe?C(Q.filter(we=>!(j&&(k?je:[je]).some(xe=>xe!==null&&N(we,xe)))),{inputValue:Ve&&Te?"":We,getOptionLabel:J}):[],ke=PI({filteredOptions:oe,value:je,inputValue:We});S.useEffect(()=>{const we=je!==ke.value;Ue&&!we||P&&!we||Tt(null,je,"reset")},[je,Tt,Ue,ke.value,P]);const $e=ue&&oe.length>0&&!X,Fe=qr(we=>{if(we===-1)me.current.focus();else{const xe=re?"data-item-index":"data-tag-index";De.querySelector(`[${xe}="${we}"]`).focus()}});S.useEffect(()=>{k&&Oe>je.length-1&&(Be(-1),Fe(-1))},[je,k,Oe,Fe]);function xt(we,xe){if(!se.current||we<0||we>=oe.length)return-1;let tt=we;for(;;){const wt=se.current.querySelector(`[data-option-index="${tt}"]`),Pt=w?!1:!wt||wt.disabled||wt.getAttribute("aria-disabled")==="true";if(wt&&wt.hasAttribute("tabindex")&&!Pt)return tt;if(xe==="next"?tt=(tt+1)%oe.length:tt=(tt-1+oe.length)%oe.length,tt===we)return-1}}const Xt=qr(({event:we,index:xe,reason:tt})=>{if(Ke.current=xe,xe===-1?me.current.removeAttribute("aria-activedescendant"):me.current.setAttribute("aria-activedescendant",`${ne}-option-${xe}`),L&&["mouse","keyboard","touch"].includes(tt)&&L(we,xe===-1?null:oe[xe],tt),!se.current)return;const wt=se.current.querySelector(`[role="option"].${r}-focused`);wt&&(wt.classList.remove(`${r}-focused`),wt.classList.remove(`${r}-focusVisible`));let Pt=se.current;if(se.current.getAttribute("role")!=="listbox"&&(Pt=se.current.parentElement.querySelector('[role="listbox"]')),!Pt)return;if(xe===-1){Pt.scrollTop=0;return}const Or=se.current.querySelector(`[data-option-index="${xe}"]`);if(Or&&(Or.classList.add(`${r}-focused`),tt==="keyboard"&&Or.classList.add(`${r}-focusVisible`),Pt.scrollHeight>Pt.clientHeight&&tt!=="mouse"&&tt!=="touch")){const It=Or,ao=Pt.clientHeight+Pt.scrollTop,ua=It.offsetTop+It.offsetHeight;ua>ao?Pt.scrollTop=ua-Pt.clientHeight:It.offsetTop-It.offsetHeight*(I?1.3:0)<Pt.scrollTop&&(Pt.scrollTop=It.offsetTop-It.offsetHeight*(I?1.3:0))}}),dr=qr(({event:we,diff:xe,direction:tt="next",reason:wt})=>{if(!Qe)return;const Or=xt((()=>{const It=oe.length-1;if(xe==="reset")return _e;if(xe==="start")return 0;if(xe==="end")return It;const ao=Ke.current+xe;return ao<0?ao===-1&&H?-1:x&&Ke.current!==-1||Math.abs(xe)>1?0:It:ao>It?ao===It+1&&H?-1:x||Math.abs(xe)>1?It:0:ao})(),tt);if(Xt({index:Or,reason:wt,event:we}),n&&xe!=="reset")if(Or===-1)me.current.value=We;else{const It=J(oe[Or]);me.current.value=It,It.toLowerCase().indexOf(We.toLowerCase())===0&&We.length>0&&me.current.setSelectionRange(We.length,It.length)}}),Fr=!Y1({array1:ke.filteredOptions,array2:oe,parser:J}),on=()=>{const we=(xe,tt)=>{const wt=xe?J(xe):"",Pt=tt?J(tt):"";return wt===Pt};if(Ke.current!==-1&&!Y1({array1:ke.filteredOptions,array2:oe,parser:J})&&ke.inputValue===We&&(k?je.length===ke.value.length&&ke.value.every((xe,tt)=>J(je[tt])===J(xe)):we(ke.value,je))){const xe=ke.filteredOptions[Ke.current];if(xe)return oe.findIndex(tt=>J(tt)===J(xe))}return-1},fn=S.useCallback(()=>{if(!Qe)return;const we=on();if(we!==-1){Ke.current=we;return}const xe=k?je[0]:je;if(oe.length===0||xe==null){dr({diff:"reset"});return}if(se.current){if(xe!=null){const tt=oe[Ke.current];if(k&&tt&&je.findIndex(Pt=>N(tt,Pt))!==-1)return;const wt=oe.findIndex(Pt=>N(Pt,xe));wt===-1?dr({diff:"reset"}):Xt({index:wt});return}if(Ke.current>=oe.length-1){Xt({index:oe.length-1});return}Xt({index:Ke.current})}},[oe.length,k?!1:je,dr,Xt,Qe,We,k]),et=qr(we=>{iy(se,we),we&&fn()});S.useEffect(()=>{(Fr||Qe)&&fn()},[fn,Fr,Qe]);const St=we=>{ue||(be(!0),Me(!0),K&&K(we))},Vt=(we,xe)=>{ue&&(be(!1),U&&U(we,xe))},br=(we,xe,tt,wt)=>{if(k){if(je.length===xe.length&&je.every((Pt,Or)=>Pt===xe[Or]))return}else if(je===xe)return;q&&q(we,xe,tt,wt),ht(xe)},Hr=S.useRef(!1),Pn=(we,xe,tt="selectOption",wt="options")=>{let Pt=tt,Or=xe;if(k){Or=Array.isArray(je)?je.slice():[];const It=Or.findIndex(ao=>N(xe,ao));It===-1?Or.push(xe):wt!=="freeSolo"&&(Or.splice(It,1),Pt="removeOption")}Tt(we,Or,Pt),br(we,Or,Pt,{option:xe}),!g&&(!we||!we.ctrlKey&&!we.metaKey)&&Vt(we,Pt),(l===!0||l==="touch"&&Hr.current||l==="mouse"&&!Hr.current)&&me.current.blur()};function Ct(we,xe){if(we===-1)return-1;let tt=we;for(;;){if(xe==="next"&&tt===je.length||xe==="previous"&&tt===-1)return-1;const wt=re?"data-item-index":"data-tag-index",Pt=De.querySelector(`[${wt}="${tt}"]`);if(!Pt||!Pt.hasAttribute("tabindex")||Pt.disabled||Pt.getAttribute("aria-disabled")==="true")tt+=xe==="next"?1:-1;else return tt}}const pr=(we,xe)=>{if(!k)return;We===""&&Vt(we,"toggleInput");let tt=Oe;Oe===-1?We===""&&xe==="previous"&&(tt=je.length-1):(tt+=xe==="next"?1:-1,tt<0&&(tt=0),tt===je.length&&(tt=-1)),tt=Ct(tt,xe),Be(tt),Fe(tt)},qe=we=>{de.current=!0,ft(""),W&&W(we,"","clear"),br(we,k?[]:null,"clear")},ot=we=>xe=>{if(we.onKeyDown&&we.onKeyDown(xe),!xe.defaultMuiPrevented&&(Oe!==-1&&!["ArrowLeft","ArrowRight"].includes(xe.key)&&(Be(-1),Fe(-1)),xe.which!==229))switch(xe.key){case"Home":Qe&&F&&(xe.preventDefault(),dr({diff:"start",direction:"next",reason:"keyboard",event:xe}));break;case"End":Qe&&F&&(xe.preventDefault(),dr({diff:"end",direction:"previous",reason:"keyboard",event:xe}));break;case"PageUp":xe.preventDefault(),dr({diff:-Z1,direction:"previous",reason:"keyboard",event:xe}),St(xe);break;case"PageDown":xe.preventDefault(),dr({diff:Z1,direction:"next",reason:"keyboard",event:xe}),St(xe);break;case"ArrowDown":xe.preventDefault(),dr({diff:1,direction:"next",reason:"keyboard",event:xe}),St(xe);break;case"ArrowUp":xe.preventDefault(),dr({diff:-1,direction:"previous",reason:"keyboard",event:xe}),St(xe);break;case"ArrowLeft":!k&&re&&je!=null?(Be(0),Fe(0)):pr(xe,"previous");break;case"ArrowRight":!k&&re?(Be(-1),Fe(-1)):pr(xe,"next");break;case"Enter":if(Ke.current!==-1&&Qe){const tt=oe[Ke.current],wt=M?M(tt):!1;if(xe.preventDefault(),wt)return;Pn(xe,tt,"selectOption"),n&&me.current.setSelectionRange(me.current.value.length,me.current.value.length)}else P&&We!==""&&Ve===!1&&(k&&xe.preventDefault(),Pn(xe,We,"createOption","freeSolo"));break;case"Escape":Qe?(xe.preventDefault(),xe.stopPropagation(),Vt(xe,"escape")):u&&(We!==""||k&&je.length>0||re)&&(xe.preventDefault(),xe.stopPropagation(),qe(xe));break;case"Backspace":if(k&&!X&&We===""&&je.length>0){const tt=Oe===-1?je.length-1:Oe,wt=je.slice();wt.splice(tt,1),br(xe,wt,"removeOption",{option:je[tt]})}!k&&re&&!X&&(ht(null),Be(-1),Fe(-1));break;case"Delete":if(k&&!X&&We===""&&je.length>0&&Oe!==-1){const tt=Oe,wt=je.slice();wt.splice(tt,1),br(xe,wt,"removeOption",{option:je[tt]})}!k&&re&&!X&&(ht(null),Be(-1),Fe(-1));break}},jt=we=>{Gt(!0),Oe!==-1&&(Be(-1),Fe(-1)),Z&&!de.current&&St(we)},Rt=we=>{if(e(se)){me.current.focus();return}Gt(!1),Ce.current=!0,de.current=!1,a&&Ke.current!==-1&&Qe?Pn(we,oe[Ke.current],"blur"):a&&P&&We!==""?Pn(we,We,"blur","freeSolo"):c&&Tt(we,je,"blur"),Vt(we,"blur")},Yt=we=>{const xe=we.target.value;We!==xe&&(ft(xe),Me(!1),W&&W(we,xe,"input")),xe===""?!v&&!k&&br(we,null,"clear"):St(we)},_r=we=>{const xe=Number(we.currentTarget.getAttribute("data-option-index"));Ke.current!==xe&&Xt({event:we,index:xe,reason:"mouse"})},hn=we=>{Xt({event:we,index:Number(we.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Hr.current=!0},Bn=we=>{const xe=Number(we.currentTarget.getAttribute("data-option-index"));Pn(we,oe[xe],"selectOption"),Hr.current=!1},ci=we=>xe=>{const tt=je.slice();tt.splice(we,1),br(xe,tt,"removeOption",{option:je[we]})},Fo=we=>{br(we,null,"removeOption",{option:je})},Pr=we=>{ue?Vt(we,"toggleInput"):St(we)},Lr=we=>{we.currentTarget.contains(we.target)&&we.target.getAttribute("id")!==ne&&we.preventDefault()},mn=we=>{we.currentTarget.contains(we.target)&&(me.current.focus(),ce&&Ce.current&&me.current.selectionEnd-me.current.selectionStart===0&&me.current.select(),Ce.current=!1)},Us=we=>{!y&&(We===""||!ue)&&Pr(we)};let ca=P&&We.length>0;ca=ca||(k?je.length>0:je!==null);let Vs=oe;return I&&(Vs=oe.reduce((we,xe,tt)=>{const wt=I(xe);return we.length>0&&we[we.length-1].group===wt?we[we.length-1].options.push(xe):we.push({key:tt,index:tt,group:wt,options:[xe]}),we},[])),y&&Ue&&Rt(),{getRootProps:(we={})=>({...we,onKeyDown:ot(we),onMouseDown:Lr,onClick:mn}),getInputLabelProps:()=>({id:`${ne}-label`,htmlFor:ne}),getInputProps:()=>({id:ne,value:We,onBlur:Rt,onFocus:jt,onChange:Yt,onMouseDown:Us,"aria-activedescendant":Qe?"":null,"aria-autocomplete":n?"both":"list","aria-controls":$e?`${ne}-listbox`:void 0,"aria-expanded":$e,autoComplete:"off",ref:me,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:y}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:qe}),getItemProps:({index:we=0}={})=>({...k&&{key:we},...re?{"data-item-index":we}:{"data-tag-index":we},tabIndex:-1,...!X&&{onDelete:k?ci(we):Fo}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Pr}),getTagProps:({index:we})=>({key:we,"data-tag-index":we,tabIndex:-1,...!X&&{onDelete:ci(we)}}),getListboxProps:()=>({role:"listbox",id:`${ne}-listbox`,"aria-labelledby":`${ne}-label`,ref:et,onMouseDown:we=>{we.preventDefault()}}),getOptionProps:({index:we,option:xe})=>{const tt=(k?je:[je]).some(Pt=>Pt!=null&&N(xe,Pt)),wt=M?M(xe):!1;return{key:(E==null?void 0:E(xe))??J(xe),tabIndex:-1,role:"option",id:`${ne}-option-${we}`,onMouseMove:_r,onClick:Bn,onTouchStart:hn,"data-option-index":we,"aria-disabled":wt,"aria-selected":tt}},id:ne,inputValue:We,value:je,dirty:ca,expanded:Qe&&De,popupOpen:Qe,focused:Ue||Oe!==-1,anchorEl:De,setAnchorEl:Ne,focusedItem:Oe,focusedTag:Oe,groupedOptions:Vs}}var qn="top",Oo="bottom",No="right",Gn="left",S0="auto",ad=[qn,Oo,No,Gn],zl="start",Ou="end",_I="clippingParents",_2="viewport",Yc="popper",LI="reference",tw=ad.reduce(function(t,e){return t.concat([e+"-"+zl,e+"-"+Ou])},[]),L2=[].concat(ad,[S0]).reduce(function(t,e){return t.concat([e,e+"-"+zl,e+"-"+Ou])},[]),OI="beforeRead",NI="read",$I="afterRead",BI="beforeMain",zI="main",DI="afterMain",FI="beforeWrite",HI="write",UI="afterWrite",VI=[OI,NI,$I,BI,zI,DI,FI,HI,UI];function ji(t){return t?(t.nodeName||"").toLowerCase():null}function bo(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function js(t){var e=bo(t).Element;return t instanceof e||t instanceof Element}function Lo(t){var e=bo(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function C0(t){if(typeof ShadowRoot>"u")return!1;var e=bo(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function WI(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},o=e.attributes[r]||{},a=e.elements[r];!Lo(a)||!ji(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(l){var c=o[l];c===!1?a.removeAttribute(l):a.setAttribute(l,c===!0?"":c)}))})}function qI(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var o=e.elements[n],a=e.attributes[n]||{},l=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),c=l.reduce(function(u,f){return u[f]="",u},{});!Lo(o)||!ji(o)||(Object.assign(o.style,c),Object.keys(a).forEach(function(u){o.removeAttribute(u)}))})}}const GI={name:"applyStyles",enabled:!0,phase:"write",fn:WI,effect:qI,requires:["computeStyles"]};function Ei(t){return t.split("-")[0]}var ks=Math.max,Sf=Math.min,Dl=Math.round;function dy(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function O2(){return!/^((?!chrome|android).)*safari/i.test(dy())}function Fl(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),o=1,a=1;e&&Lo(t)&&(o=t.offsetWidth>0&&Dl(n.width)/t.offsetWidth||1,a=t.offsetHeight>0&&Dl(n.height)/t.offsetHeight||1);var l=js(t)?bo(t):window,c=l.visualViewport,u=!O2()&&r,f=(n.left+(u&&c?c.offsetLeft:0))/o,h=(n.top+(u&&c?c.offsetTop:0))/a,v=n.width/o,g=n.height/a;return{width:v,height:g,top:h,right:f+v,bottom:h+g,left:f,x:f,y:h}}function T0(t){var e=Fl(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function N2(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&C0(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ea(t){return bo(t).getComputedStyle(t)}function XI(t){return["table","td","th"].indexOf(ji(t))>=0}function Qa(t){return((js(t)?t.ownerDocument:t.document)||window.document).documentElement}function ah(t){return ji(t)==="html"?t:t.assignedSlot||t.parentNode||(C0(t)?t.host:null)||Qa(t)}function rw(t){return!Lo(t)||ea(t).position==="fixed"?null:t.offsetParent}function KI(t){var e=/firefox/i.test(dy()),r=/Trident/i.test(dy());if(r&&Lo(t)){var n=ea(t);if(n.position==="fixed")return null}var o=ah(t);for(C0(o)&&(o=o.host);Lo(o)&&["html","body"].indexOf(ji(o))<0;){var a=ea(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function sd(t){for(var e=bo(t),r=rw(t);r&&XI(r)&&ea(r).position==="static";)r=rw(r);return r&&(ji(r)==="html"||ji(r)==="body"&&ea(r).position==="static")?e:r||KI(t)||e}function E0(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function yu(t,e,r){return ks(t,Sf(e,r))}function QI(t,e,r){var n=yu(t,e,r);return n>r?r:n}function $2(){return{top:0,right:0,bottom:0,left:0}}function B2(t){return Object.assign({},$2(),t)}function z2(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var YI=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,B2(typeof e!="number"?e:z2(e,ad))};function JI(t){var e,r=t.state,n=t.name,o=t.options,a=r.elements.arrow,l=r.modifiersData.popperOffsets,c=Ei(r.placement),u=E0(c),f=[Gn,No].indexOf(c)>=0,h=f?"height":"width";if(!(!a||!l)){var v=YI(o.padding,r),g=T0(a),y=u==="y"?qn:Gn,w=u==="y"?Oo:No,x=r.rects.reference[h]+r.rects.reference[u]-l[u]-r.rects.popper[h],C=l[u]-r.rects.reference[u],j=sd(a),P=j?u==="y"?j.clientHeight||0:j.clientWidth||0:0,M=x/2-C/2,E=v[y],R=P-g[h]-v[w],I=P/2-g[h]/2+M,F=yu(E,I,R),A=u;r.modifiersData[n]=(e={},e[A]=F,e.centerOffset=F-I,e)}}function ZI(t){var e=t.state,r=t.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||N2(e.elements.popper,o)&&(e.elements.arrow=o))}const eA={name:"arrow",enabled:!0,phase:"main",fn:JI,effect:ZI,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Hl(t){return t.split("-")[1]}var tA={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rA(t,e){var r=t.x,n=t.y,o=e.devicePixelRatio||1;return{x:Dl(r*o)/o||0,y:Dl(n*o)/o||0}}function nw(t){var e,r=t.popper,n=t.popperRect,o=t.placement,a=t.variation,l=t.offsets,c=t.position,u=t.gpuAcceleration,f=t.adaptive,h=t.roundOffsets,v=t.isFixed,g=l.x,y=g===void 0?0:g,w=l.y,x=w===void 0?0:w,C=typeof h=="function"?h({x:y,y:x}):{x:y,y:x};y=C.x,x=C.y;var j=l.hasOwnProperty("x"),P=l.hasOwnProperty("y"),M=Gn,E=qn,R=window;if(f){var I=sd(r),F="clientHeight",A="clientWidth";if(I===bo(r)&&(I=Qa(r),ea(I).position!=="static"&&c==="absolute"&&(F="scrollHeight",A="scrollWidth")),I=I,o===qn||(o===Gn||o===No)&&a===Ou){E=Oo;var H=v&&I===R&&R.visualViewport?R.visualViewport.height:I[F];x-=H-n.height,x*=u?1:-1}if(o===Gn||(o===qn||o===Oo)&&a===Ou){M=No;var G=v&&I===R&&R.visualViewport?R.visualViewport.width:I[A];y-=G-n.width,y*=u?1:-1}}var N=Object.assign({position:c},f&&tA),k=h===!0?rA({x:y,y:x},bo(r)):{x:y,y:x};if(y=k.x,x=k.y,u){var q;return Object.assign({},N,(q={},q[E]=P?"0":"",q[M]=j?"0":"",q.transform=(R.devicePixelRatio||1)<=1?"translate("+y+"px, "+x+"px)":"translate3d("+y+"px, "+x+"px, 0)",q))}return Object.assign({},N,(e={},e[E]=P?x+"px":"",e[M]=j?y+"px":"",e.transform="",e))}function nA(t){var e=t.state,r=t.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,l=a===void 0?!0:a,c=r.roundOffsets,u=c===void 0?!0:c,f={placement:Ei(e.placement),variation:Hl(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,nw(Object.assign({},f,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:l,roundOffsets:u})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,nw(Object.assign({},f,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const oA={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:nA,data:{}};var Pp={passive:!0};function iA(t){var e=t.state,r=t.instance,n=t.options,o=n.scroll,a=o===void 0?!0:o,l=n.resize,c=l===void 0?!0:l,u=bo(e.elements.popper),f=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&f.forEach(function(h){h.addEventListener("scroll",r.update,Pp)}),c&&u.addEventListener("resize",r.update,Pp),function(){a&&f.forEach(function(h){h.removeEventListener("scroll",r.update,Pp)}),c&&u.removeEventListener("resize",r.update,Pp)}}const aA={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:iA,data:{}};var sA={left:"right",right:"left",bottom:"top",top:"bottom"};function nf(t){return t.replace(/left|right|bottom|top/g,function(e){return sA[e]})}var lA={start:"end",end:"start"};function ow(t){return t.replace(/start|end/g,function(e){return lA[e]})}function k0(t){var e=bo(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function P0(t){return Fl(Qa(t)).left+k0(t).scrollLeft}function cA(t,e){var r=bo(t),n=Qa(t),o=r.visualViewport,a=n.clientWidth,l=n.clientHeight,c=0,u=0;if(o){a=o.width,l=o.height;var f=O2();(f||!f&&e==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}return{width:a,height:l,x:c+P0(t),y:u}}function uA(t){var e,r=Qa(t),n=k0(t),o=(e=t.ownerDocument)==null?void 0:e.body,a=ks(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=ks(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-n.scrollLeft+P0(t),u=-n.scrollTop;return ea(o||r).direction==="rtl"&&(c+=ks(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:l,x:c,y:u}}function j0(t){var e=ea(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function D2(t){return["html","body","#document"].indexOf(ji(t))>=0?t.ownerDocument.body:Lo(t)&&j0(t)?t:D2(ah(t))}function vu(t,e){var r;e===void 0&&(e=[]);var n=D2(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),a=bo(n),l=o?[a].concat(a.visualViewport||[],j0(n)?n:[]):n,c=e.concat(l);return o?c:c.concat(vu(ah(l)))}function py(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function dA(t,e){var r=Fl(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function iw(t,e,r){return e===_2?py(cA(t,r)):js(e)?dA(e,r):py(uA(Qa(t)))}function pA(t){var e=vu(ah(t)),r=["absolute","fixed"].indexOf(ea(t).position)>=0,n=r&&Lo(t)?sd(t):t;return js(n)?e.filter(function(o){return js(o)&&N2(o,n)&&ji(o)!=="body"}):[]}function fA(t,e,r,n){var o=e==="clippingParents"?pA(t):[].concat(e),a=[].concat(o,[r]),l=a[0],c=a.reduce(function(u,f){var h=iw(t,f,n);return u.top=ks(h.top,u.top),u.right=Sf(h.right,u.right),u.bottom=Sf(h.bottom,u.bottom),u.left=ks(h.left,u.left),u},iw(t,l,n));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function F2(t){var e=t.reference,r=t.element,n=t.placement,o=n?Ei(n):null,a=n?Hl(n):null,l=e.x+e.width/2-r.width/2,c=e.y+e.height/2-r.height/2,u;switch(o){case qn:u={x:l,y:e.y-r.height};break;case Oo:u={x:l,y:e.y+e.height};break;case No:u={x:e.x+e.width,y:c};break;case Gn:u={x:e.x-r.width,y:c};break;default:u={x:e.x,y:e.y}}var f=o?E0(o):null;if(f!=null){var h=f==="y"?"height":"width";switch(a){case zl:u[f]=u[f]-(e[h]/2-r[h]/2);break;case Ou:u[f]=u[f]+(e[h]/2-r[h]/2);break}}return u}function Nu(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=n===void 0?t.placement:n,a=r.strategy,l=a===void 0?t.strategy:a,c=r.boundary,u=c===void 0?_I:c,f=r.rootBoundary,h=f===void 0?_2:f,v=r.elementContext,g=v===void 0?Yc:v,y=r.altBoundary,w=y===void 0?!1:y,x=r.padding,C=x===void 0?0:x,j=B2(typeof C!="number"?C:z2(C,ad)),P=g===Yc?LI:Yc,M=t.rects.popper,E=t.elements[w?P:g],R=fA(js(E)?E:E.contextElement||Qa(t.elements.popper),u,h,l),I=Fl(t.elements.reference),F=F2({reference:I,element:M,placement:o}),A=py(Object.assign({},M,F)),H=g===Yc?A:I,G={top:R.top-H.top+j.top,bottom:H.bottom-R.bottom+j.bottom,left:R.left-H.left+j.left,right:H.right-R.right+j.right},N=t.modifiersData.offset;if(g===Yc&&N){var k=N[o];Object.keys(G).forEach(function(q){var U=[No,Oo].indexOf(q)>=0?1:-1,L=[qn,Oo].indexOf(q)>=0?"y":"x";G[q]+=k[L]*U})}return G}function hA(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=r.boundary,a=r.rootBoundary,l=r.padding,c=r.flipVariations,u=r.allowedAutoPlacements,f=u===void 0?L2:u,h=Hl(n),v=h?c?tw:tw.filter(function(w){return Hl(w)===h}):ad,g=v.filter(function(w){return f.indexOf(w)>=0});g.length===0&&(g=v);var y=g.reduce(function(w,x){return w[x]=Nu(t,{placement:x,boundary:o,rootBoundary:a,padding:l})[Ei(x)],w},{});return Object.keys(y).sort(function(w,x){return y[w]-y[x]})}function mA(t){if(Ei(t)===S0)return[];var e=nf(t);return[ow(t),e,ow(e)]}function gA(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,l=r.altAxis,c=l===void 0?!0:l,u=r.fallbackPlacements,f=r.padding,h=r.boundary,v=r.rootBoundary,g=r.altBoundary,y=r.flipVariations,w=y===void 0?!0:y,x=r.allowedAutoPlacements,C=e.options.placement,j=Ei(C),P=j===C,M=u||(P||!w?[nf(C)]:mA(C)),E=[C].concat(M).reduce(function(Y,ne){return Y.concat(Ei(ne)===S0?hA(e,{placement:ne,boundary:h,rootBoundary:v,padding:f,flipVariations:w,allowedAutoPlacements:x}):ne)},[]),R=e.rects.reference,I=e.rects.popper,F=new Map,A=!0,H=E[0],G=0;G<E.length;G++){var N=E[G],k=Ei(N),q=Hl(N)===zl,U=[qn,Oo].indexOf(k)>=0,L=U?"width":"height",W=Nu(e,{placement:N,boundary:h,rootBoundary:v,altBoundary:g,padding:f}),K=U?q?No:Gn:q?Oo:qn;R[L]>I[L]&&(K=nf(K));var ee=nf(K),Z=[];if(a&&Z.push(W[k]<=0),c&&Z.push(W[K]<=0,W[ee]<=0),Z.every(function(Y){return Y})){H=N,A=!1;break}F.set(N,Z)}if(A)for(var Q=w?3:1,X=function(ne){var J=E.find(function(de){var Ce=F.get(de);if(Ce)return Ce.slice(0,ne).every(function(me){return me})});if(J)return H=J,"break"},re=Q;re>0;re--){var ce=X(re);if(ce==="break")break}e.placement!==H&&(e.modifiersData[n]._skip=!0,e.placement=H,e.reset=!0)}}const yA={name:"flip",enabled:!0,phase:"main",fn:gA,requiresIfExists:["offset"],data:{_skip:!1}};function aw(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function sw(t){return[qn,No,Oo,Gn].some(function(e){return t[e]>=0})}function vA(t){var e=t.state,r=t.name,n=e.rects.reference,o=e.rects.popper,a=e.modifiersData.preventOverflow,l=Nu(e,{elementContext:"reference"}),c=Nu(e,{altBoundary:!0}),u=aw(l,n),f=aw(c,o,a),h=sw(u),v=sw(f);e.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:f,isReferenceHidden:h,hasPopperEscaped:v},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":v})}const bA={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:vA};function xA(t,e,r){var n=Ei(t),o=[Gn,qn].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,l=a[0],c=a[1];return l=l||0,c=(c||0)*o,[Gn,No].indexOf(n)>=0?{x:c,y:l}:{x:l,y:c}}function wA(t){var e=t.state,r=t.options,n=t.name,o=r.offset,a=o===void 0?[0,0]:o,l=L2.reduce(function(h,v){return h[v]=xA(v,e.rects,a),h},{}),c=l[e.placement],u=c.x,f=c.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=f),e.modifiersData[n]=l}const SA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:wA};function CA(t){var e=t.state,r=t.name;e.modifiersData[r]=F2({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const TA={name:"popperOffsets",enabled:!0,phase:"read",fn:CA,data:{}};function EA(t){return t==="x"?"y":"x"}function kA(t){var e=t.state,r=t.options,n=t.name,o=r.mainAxis,a=o===void 0?!0:o,l=r.altAxis,c=l===void 0?!1:l,u=r.boundary,f=r.rootBoundary,h=r.altBoundary,v=r.padding,g=r.tether,y=g===void 0?!0:g,w=r.tetherOffset,x=w===void 0?0:w,C=Nu(e,{boundary:u,rootBoundary:f,padding:v,altBoundary:h}),j=Ei(e.placement),P=Hl(e.placement),M=!P,E=E0(j),R=EA(E),I=e.modifiersData.popperOffsets,F=e.rects.reference,A=e.rects.popper,H=typeof x=="function"?x(Object.assign({},e.rects,{placement:e.placement})):x,G=typeof H=="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),N=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,k={x:0,y:0};if(I){if(a){var q,U=E==="y"?qn:Gn,L=E==="y"?Oo:No,W=E==="y"?"height":"width",K=I[E],ee=K+C[U],Z=K-C[L],Q=y?-A[W]/2:0,X=P===zl?F[W]:A[W],re=P===zl?-A[W]:-F[W],ce=e.elements.arrow,Y=y&&ce?T0(ce):{width:0,height:0},ne=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:$2(),J=ne[U],de=ne[L],Ce=yu(0,F[W],Y[W]),me=M?F[W]/2-Q-Ce-J-G.mainAxis:X-Ce-J-G.mainAxis,se=M?-F[W]/2+Q+Ce+de+G.mainAxis:re+Ce+de+G.mainAxis,De=e.elements.arrow&&sd(e.elements.arrow),Ne=De?E==="y"?De.clientTop||0:De.clientLeft||0:0,Oe=(q=N==null?void 0:N[E])!=null?q:0,Be=K+me-Oe-Ne,_e=K+se-Oe,Ke=yu(y?Sf(ee,Be):ee,K,y?ks(Z,_e):Z);I[E]=Ke,k[E]=Ke-K}if(c){var pt,je=E==="x"?qn:Gn,ht=E==="x"?Oo:No,We=I[R],ft=R==="y"?"height":"width",Ue=We+C[je],Gt=We-C[ht],Tt=[qn,Gn].indexOf(j)!==-1,ue=(pt=N==null?void 0:N[R])!=null?pt:0,be=Tt?Ue:We-F[ft]-A[ft]-ue+G.altAxis,Te=Tt?We+F[ft]+A[ft]-ue-G.altAxis:Gt,Me=y&&Tt?QI(be,We,Te):yu(y?be:Ue,We,y?Te:Gt);I[R]=Me,k[R]=Me-We}e.modifiersData[n]=k}}const PA={name:"preventOverflow",enabled:!0,phase:"main",fn:kA,requiresIfExists:["offset"]};function jA(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function MA(t){return t===bo(t)||!Lo(t)?k0(t):jA(t)}function RA(t){var e=t.getBoundingClientRect(),r=Dl(e.width)/t.offsetWidth||1,n=Dl(e.height)/t.offsetHeight||1;return r!==1||n!==1}function IA(t,e,r){r===void 0&&(r=!1);var n=Lo(e),o=Lo(e)&&RA(e),a=Qa(e),l=Fl(t,o,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((ji(e)!=="body"||j0(a))&&(c=MA(e)),Lo(e)?(u=Fl(e,!0),u.x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=P0(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function AA(t){var e=new Map,r=new Set,n=[];t.forEach(function(a){e.set(a.name,a)});function o(a){r.add(a.name);var l=[].concat(a.requires||[],a.requiresIfExists||[]);l.forEach(function(c){if(!r.has(c)){var u=e.get(c);u&&o(u)}}),n.push(a)}return t.forEach(function(a){r.has(a.name)||o(a)}),n}function _A(t){var e=AA(t);return VI.reduce(function(r,n){return r.concat(e.filter(function(o){return o.phase===n}))},[])}function LA(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function OA(t){var e=t.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var lw={placement:"bottom",modifiers:[],strategy:"absolute"};function cw(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function NA(t){t===void 0&&(t={});var e=t,r=e.defaultModifiers,n=r===void 0?[]:r,o=e.defaultOptions,a=o===void 0?lw:o;return function(c,u,f){f===void 0&&(f=a);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},lw,a),modifiersData:{},elements:{reference:c,popper:u},attributes:{},styles:{}},v=[],g=!1,y={state:h,setOptions:function(j){var P=typeof j=="function"?j(h.options):j;x(),h.options=Object.assign({},a,h.options,P),h.scrollParents={reference:js(c)?vu(c):c.contextElement?vu(c.contextElement):[],popper:vu(u)};var M=_A(OA([].concat(n,h.options.modifiers)));return h.orderedModifiers=M.filter(function(E){return E.enabled}),w(),y.update()},forceUpdate:function(){if(!g){var j=h.elements,P=j.reference,M=j.popper;if(cw(P,M)){h.rects={reference:IA(P,sd(M),h.options.strategy==="fixed"),popper:T0(M)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(G){return h.modifiersData[G.name]=Object.assign({},G.data)});for(var E=0;E<h.orderedModifiers.length;E++){if(h.reset===!0){h.reset=!1,E=-1;continue}var R=h.orderedModifiers[E],I=R.fn,F=R.options,A=F===void 0?{}:F,H=R.name;typeof I=="function"&&(h=I({state:h,options:A,name:H,instance:y})||h)}}}},update:LA(function(){return new Promise(function(C){y.forceUpdate(),C(h)})}),destroy:function(){x(),g=!0}};if(!cw(c,u))return y;y.setOptions(f).then(function(C){!g&&f.onFirstUpdate&&f.onFirstUpdate(C)});function w(){h.orderedModifiers.forEach(function(C){var j=C.name,P=C.options,M=P===void 0?{}:P,E=C.effect;if(typeof E=="function"){var R=E({state:h,name:j,instance:y,options:M}),I=function(){};v.push(R||I)}})}function x(){v.forEach(function(C){return C()}),v=[]}return y}}var $A=[aA,TA,oA,GI,SA,yA,PA,eA,bA],BA=NA({defaultModifiers:$A});function Ul(t){var v;const{elementType:e,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:o=!1,...a}=t,l=o?{}:R2(r,n),{props:c,internalRef:u}=I2({...a,externalSlotProps:l}),f=Rr(u,l==null?void 0:l.ref,(v=t.additionalProps)==null?void 0:v.ref);return M2(e,{...c,ref:f},n)}function Ns(t){var e;return parseInt(S.version,10)>=19?((e=t==null?void 0:t.props)==null?void 0:e.ref)||null:(t==null?void 0:t.ref)||null}function zA(t){return typeof t=="function"?t():t}const H2=S.forwardRef(function(e,r){const{children:n,container:o,disablePortal:a=!1}=e,[l,c]=S.useState(null),u=Rr(S.isValidElement(n)?Ns(n):null,r);if(Qn(()=>{a||c(zA(o)||document.body)},[o,a]),Qn(()=>{if(l&&!a)return iy(r,l),()=>{iy(r,null)}},[r,l,a]),a){if(S.isValidElement(n)){const f={ref:u};return S.cloneElement(n,f)}return n}return l&&CC.createPortal(n,l)});function DA(t){return Ye("MuiPopper",t)}Ze("MuiPopper",["root"]);function FA(t,e){if(e==="ltr")return t;switch(t){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 t}}function fy(t){return typeof t=="function"?t():t}function HA(t){return t.nodeType!==void 0}const UA=t=>{const{classes:e}=t;return Je({root:["root"]},DA,e)},VA={},WA=S.forwardRef(function(e,r){const{anchorEl:n,children:o,direction:a,disablePortal:l,modifiers:c,open:u,placement:f,popperOptions:h,popperRef:v,slotProps:g={},slots:y={},TransitionProps:w,ownerState:x,...C}=e,j=S.useRef(null),P=Rr(j,r),M=S.useRef(null),E=Rr(M,v),R=S.useRef(E);Qn(()=>{R.current=E},[E]),S.useImperativeHandle(v,()=>M.current,[]);const I=FA(f,a),[F,A]=S.useState(I),[H,G]=S.useState(fy(n));S.useEffect(()=>{M.current&&M.current.forceUpdate()}),S.useEffect(()=>{n&&G(fy(n))},[n]),Qn(()=>{if(!H||!u)return;const L=ee=>{A(ee.placement)};let W=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:ee})=>{L(ee)}}];c!=null&&(W=W.concat(c)),h&&h.modifiers!=null&&(W=W.concat(h.modifiers));const K=BA(H,j.current,{placement:I,...h,modifiers:W});return R.current(K),()=>{K.destroy(),R.current(null)}},[H,l,c,u,h,I]);const N={placement:F};w!==null&&(N.TransitionProps=w);const k=UA(e),q=y.root??"div",U=Ul({elementType:q,externalSlotProps:g.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:P},ownerState:e,className:k.root});return d.jsx(q,{...U,children:typeof o=="function"?o(N):o})}),qA=S.forwardRef(function(e,r){const{anchorEl:n,children:o,container:a,direction:l="ltr",disablePortal:c=!1,keepMounted:u=!1,modifiers:f,open:h,placement:v="bottom",popperOptions:g=VA,popperRef:y,style:w,transition:x=!1,slotProps:C={},slots:j={},...P}=e,[M,E]=S.useState(!0),R=()=>{E(!1)},I=()=>{E(!0)};if(!u&&!h&&(!x||M))return null;let F;if(a)F=a;else if(n){const G=fy(n);F=G&&HA(G)?dn(G).body:dn(null).body}const A=!h&&u&&(!x||M)?"none":void 0,H=x?{in:h,onEnter:R,onExited:I}:void 0;return d.jsx(H2,{disablePortal:c,container:F,children:d.jsx(WA,{anchorEl:n,direction:l,disablePortal:c,modifiers:f,ref:r,open:x?!M:h,placement:v,popperOptions:g,popperRef:y,slotProps:C,slots:j,...P,style:{position:"fixed",top:0,left:0,display:A,...w},TransitionProps:H,children:o})})}),GA=ye(qA,{name:"MuiPopper",slot:"Root"})({}),sh=S.forwardRef(function(e,r){const n=Ka(),o=nt({props:e,name:"MuiPopper"}),{anchorEl:a,component:l,components:c,componentsProps:u,container:f,disablePortal:h,keepMounted:v,modifiers:g,open:y,placement:w,popperOptions:x,popperRef:C,transition:j,slots:P,slotProps:M,...E}=o,R=(P==null?void 0:P.root)??(c==null?void 0:c.Root),I={anchorEl:a,container:f,disablePortal:h,keepMounted:v,modifiers:g,open:y,placement:w,popperOptions:x,popperRef:C,transition:j,...E};return d.jsx(GA,{as:l,direction:n?"rtl":"ltr",slots:{root:R},slotProps:M??u,...I,ref:r})});function XA(t){return Ye("MuiListSubheader",t)}Ze("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const KA=t=>{const{classes:e,color:r,disableGutters:n,inset:o,disableSticky:a}=t,l={root:["root",r!=="default"&&`color${ge(r)}`,!n&&"gutters",o&&"inset",!a&&"sticky"]};return Je(l,XA,e)},QA=ye("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="default"&&e[`color${ge(r.color)}`],!r.disableGutters&&e.gutters,r.inset&&e.inset,!r.disableSticky&&e.sticky]}})(Ge(({theme:t})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(t.vars||t).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:72}},{props:({ownerState:e})=>!e.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper}}]}))),hy=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiListSubheader"}),{className:o,color:a="default",component:l="li",disableGutters:c=!1,disableSticky:u=!1,inset:f=!1,...h}=n,v={...n,color:a,component:l,disableGutters:c,disableSticky:u,inset:f},g=KA(v);return d.jsx(QA,{as:l,className:Ie(g.root,o),ref:r,ownerState:v,...h})});hy&&(hy.muiSkipListHighlight=!0);const YA=Pe(d.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function JA(t){return Ye("MuiChip",t)}const zt=Ze("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),ZA=t=>{const{classes:e,disabled:r,size:n,color:o,iconColor:a,onDelete:l,clickable:c,variant:u}=t,f={root:["root",u,r&&"disabled",`size${ge(n)}`,`color${ge(o)}`,c&&"clickable",c&&`clickableColor${ge(o)}`,l&&"deletable",l&&`deletableColor${ge(o)}`,`${u}${ge(o)}`],label:["label",`label${ge(n)}`],avatar:["avatar",`avatar${ge(n)}`,`avatarColor${ge(o)}`],icon:["icon",`icon${ge(n)}`,`iconColor${ge(a)}`],deleteIcon:["deleteIcon",`deleteIcon${ge(n)}`,`deleteIconColor${ge(o)}`,`deleteIcon${ge(u)}Color${ge(o)}`]};return Je(f,JA,e)},e_=ye("div",{name:"MuiChip",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t,{color:n,iconColor:o,clickable:a,onDelete:l,size:c,variant:u}=r;return[{[`& .${zt.avatar}`]:e.avatar},{[`& .${zt.avatar}`]:e[`avatar${ge(c)}`]},{[`& .${zt.avatar}`]:e[`avatarColor${ge(n)}`]},{[`& .${zt.icon}`]:e.icon},{[`& .${zt.icon}`]:e[`icon${ge(c)}`]},{[`& .${zt.icon}`]:e[`iconColor${ge(o)}`]},{[`& .${zt.deleteIcon}`]:e.deleteIcon},{[`& .${zt.deleteIcon}`]:e[`deleteIcon${ge(c)}`]},{[`& .${zt.deleteIcon}`]:e[`deleteIconColor${ge(n)}`]},{[`& .${zt.deleteIcon}`]:e[`deleteIcon${ge(u)}Color${ge(n)}`]},e.root,e[`size${ge(c)}`],e[`color${ge(n)}`],a&&e.clickable,a&&n!=="default"&&e[`clickableColor${ge(n)}`],l&&e.deletable,l&&n!=="default"&&e[`deletableColor${ge(n)}`],e[u],e[`${u}${ge(n)}`]]}})(Ge(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[700]:t.palette.grey[300];return{maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${zt.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${zt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:e,fontSize:t.typography.pxToRem(12)},[`& .${zt.avatarColorPrimary}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},[`& .${zt.avatarColorSecondary}`]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},[`& .${zt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},[`& .${zt.icon}`]:{marginLeft:5,marginRight:-6},[`& .${zt.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:t.alpha((t.vars||t).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.alpha((t.vars||t).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${zt.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${zt.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(t.palette).filter(Zt(["contrastText"])).map(([r])=>({props:{color:r},style:{backgroundColor:(t.vars||t).palette[r].main,color:(t.vars||t).palette[r].contrastText,[`& .${zt.deleteIcon}`]:{color:t.alpha((t.vars||t).palette[r].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[r].contrastText}}}})),{props:r=>r.iconColor===r.color,style:{[`& .${zt.icon}`]:{color:t.vars?t.vars.palette.Chip.defaultIconColor:e}}},{props:r=>r.iconColor===r.color&&r.color!=="default",style:{[`& .${zt.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${zt.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}}},...Object.entries(t.palette).filter(Zt(["dark"])).map(([r])=>({props:{color:r,onDelete:!0},style:{[`&.${zt.focusVisible}`]:{background:(t.vars||t).palette[r].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`)},[`&.${zt.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)},"&:active":{boxShadow:(t.vars||t).shadows[1]}}},...Object.entries(t.palette).filter(Zt(["dark"])).map(([r])=>({props:{color:r,clickable:!0},style:{[`&:hover, &.${zt.focusVisible}`]:{backgroundColor:(t.vars||t).palette[r].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:t.vars?`1px solid ${t.vars.palette.Chip.defaultBorder}`:`1px solid ${t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[700]}`,[`&.${zt.clickable}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${zt.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`& .${zt.avatar}`]:{marginLeft:4},[`& .${zt.avatarSmall}`]:{marginLeft:2},[`& .${zt.icon}`]:{marginLeft:4},[`& .${zt.iconSmall}`]:{marginLeft:2},[`& .${zt.deleteIcon}`]:{marginRight:5},[`& .${zt.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(t.palette).filter(Zt()).map(([r])=>({props:{variant:"outlined",color:r},style:{color:(t.vars||t).palette[r].main,border:`1px solid ${t.alpha((t.vars||t).palette[r].main,.7)}`,[`&.${zt.clickable}:hover`]:{backgroundColor:t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.hoverOpacity)},[`&.${zt.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.focusOpacity)},[`& .${zt.deleteIcon}`]:{color:t.alpha((t.vars||t).palette[r].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[r].main}}}}))]}})),t_=ye("span",{name:"MuiChip",slot:"Label",overridesResolver:(t,e)=>{const{ownerState:r}=t,{size:n}=r;return[e.label,e[`label${ge(n)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function uw(t){return t.key==="Backspace"||t.key==="Delete"}const gr=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiChip"}),{avatar:o,className:a,clickable:l,color:c="default",component:u,deleteIcon:f,disabled:h=!1,icon:v,label:g,onClick:y,onDelete:w,onKeyDown:x,onKeyUp:C,size:j="medium",variant:P="filled",tabIndex:M,skipFocusWhenDisabled:E=!1,slots:R={},slotProps:I={},...F}=n,A=S.useRef(null),H=Rr(A,r),G=J=>{J.stopPropagation(),w&&w(J)},N=J=>{J.currentTarget===J.target&&uw(J)&&J.preventDefault(),x&&x(J)},k=J=>{J.currentTarget===J.target&&w&&uw(J)&&w(J),C&&C(J)},q=l!==!1&&y?!0:l,U=q||w?ti:u||"div",L={...n,component:U,disabled:h,size:j,color:c,iconColor:S.isValidElement(v)&&v.props.color||c,onDelete:!!w,clickable:q,variant:P},W=ZA(L),K=U===ti?{component:u||"div",focusVisibleClassName:W.focusVisible,...w&&{disableRipple:!0}}:{};let ee=null;w&&(ee=f&&S.isValidElement(f)?S.cloneElement(f,{className:Ie(f.props.className,W.deleteIcon),onClick:G}):d.jsx(YA,{className:W.deleteIcon,onClick:G}));let Z=null;o&&S.isValidElement(o)&&(Z=S.cloneElement(o,{className:Ie(W.avatar,o.props.className)}));let Q=null;v&&S.isValidElement(v)&&(Q=S.cloneElement(v,{className:Ie(W.icon,v.props.className)}));const X={slots:R,slotProps:I},[re,ce]=Xe("root",{elementType:e_,externalForwardedProps:{...X,...F},ownerState:L,shouldForwardComponentProp:!0,ref:H,className:Ie(W.root,a),additionalProps:{disabled:q&&h?!0:void 0,tabIndex:E&&h?-1:M,...K},getSlotProps:J=>({...J,onClick:de=>{var Ce;(Ce=J.onClick)==null||Ce.call(J,de),y==null||y(de)},onKeyDown:de=>{var Ce;(Ce=J.onKeyDown)==null||Ce.call(J,de),N(de)},onKeyUp:de=>{var Ce;(Ce=J.onKeyUp)==null||Ce.call(J,de),k(de)}})}),[Y,ne]=Xe("label",{elementType:t_,externalForwardedProps:X,ownerState:L,className:W.label});return d.jsxs(re,{as:U,...ce,children:[Z||Q,d.jsx(Y,{...ne,children:g}),ee]})});function jp(t){return parseInt(t,10)||0}const r_={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function n_(t){for(const e in t)return!1;return!0}function dw(t){return n_(t)||t.outerHeightStyle===0&&!t.overflowing}const o_=S.forwardRef(function(e,r){const{onChange:n,maxRows:o,minRows:a=1,style:l,value:c,...u}=e,{current:f}=S.useRef(c!=null),h=S.useRef(null),v=Rr(r,h),g=S.useRef(null),y=S.useRef(null),w=S.useCallback(()=>{const M=h.current,E=y.current;if(!M||!E)return;const I=ei(M).getComputedStyle(M);if(I.width==="0px")return{outerHeightStyle:0,overflowing:!1};E.style.width=I.width,E.value=M.value||e.placeholder||"x",E.value.slice(-1)===`
218
- `&&(E.value+=" ");const F=I.boxSizing,A=jp(I.paddingBottom)+jp(I.paddingTop),H=jp(I.borderBottomWidth)+jp(I.borderTopWidth),G=E.scrollHeight;E.value="x";const N=E.scrollHeight;let k=G;a&&(k=Math.max(Number(a)*N,k)),o&&(k=Math.min(Number(o)*N,k)),k=Math.max(k,N);const q=k+(F==="border-box"?A+H:0),U=Math.abs(k-G)<=1;return{outerHeightStyle:q,overflowing:U}},[o,a,e.placeholder]),x=qr(()=>{const M=h.current,E=w();if(!M||!E||dw(E))return!1;const R=E.outerHeightStyle;return g.current!=null&&g.current!==R}),C=S.useCallback(()=>{const M=h.current,E=w();if(!M||!E||dw(E))return;const R=E.outerHeightStyle;g.current!==R&&(g.current=R,M.style.height=`${R}px`),M.style.overflow=E.overflowing?"hidden":""},[w]),j=S.useRef(-1);Qn(()=>{const M=oh(C),E=h==null?void 0:h.current;if(!E)return;const R=ei(E);R.addEventListener("resize",M);let I;return typeof ResizeObserver<"u"&&(I=new ResizeObserver(()=>{x()&&(I.unobserve(E),cancelAnimationFrame(j.current),C(),j.current=requestAnimationFrame(()=>{I.observe(E)}))}),I.observe(E)),()=>{M.clear(),cancelAnimationFrame(j.current),R.removeEventListener("resize",M),I&&I.disconnect()}},[w,C,x]),Qn(()=>{C()});const P=M=>{f||C();const E=M.target,R=E.value.length,I=E.value.endsWith(`
219
- `),F=E.selectionStart===R;I&&F&&E.setSelectionRange(R,R),n&&n(M)};return d.jsxs(S.Fragment,{children:[d.jsx("textarea",{value:c,onChange:P,ref:v,rows:a,style:l,...u}),d.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:y,tabIndex:-1,style:{...r_.shadow,...l,paddingTop:0,paddingBottom:0}})]})});function $s({props:t,states:e,muiFormControl:r}){return e.reduce((n,o)=>(n[o]=t[o],r&&typeof t[o]>"u"&&(n[o]=r[o]),n),{})}const lh=S.createContext(void 0);function aa(){return S.useContext(lh)}function pw(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function Cf(t,e=!1){return t&&(pw(t.value)&&t.value!==""||e&&pw(t.defaultValue)&&t.defaultValue!=="")}function i_(t){return t.startAdornment}function a_(t){return Ye("MuiInputBase",t)}const ho=Ze("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var fw;const ch=(t,e)=>{const{ownerState:r}=t;return[e.root,r.formControl&&e.formControl,r.startAdornment&&e.adornedStart,r.endAdornment&&e.adornedEnd,r.error&&e.error,r.size==="small"&&e.sizeSmall,r.multiline&&e.multiline,r.color&&e[`color${ge(r.color)}`],r.fullWidth&&e.fullWidth,r.hiddenLabel&&e.hiddenLabel]},uh=(t,e)=>{const{ownerState:r}=t;return[e.input,r.size==="small"&&e.inputSizeSmall,r.multiline&&e.inputMultiline,r.type==="search"&&e.inputTypeSearch,r.startAdornment&&e.inputAdornedStart,r.endAdornment&&e.inputAdornedEnd,r.hiddenLabel&&e.inputHiddenLabel]},s_=t=>{const{classes:e,color:r,disabled:n,error:o,endAdornment:a,focused:l,formControl:c,fullWidth:u,hiddenLabel:f,multiline:h,readOnly:v,size:g,startAdornment:y,type:w}=t,x={root:["root",`color${ge(r)}`,n&&"disabled",o&&"error",u&&"fullWidth",l&&"focused",c&&"formControl",g&&g!=="medium"&&`size${ge(g)}`,h&&"multiline",y&&"adornedStart",a&&"adornedEnd",f&&"hiddenLabel",v&&"readOnly"],input:["input",n&&"disabled",w==="search"&&"inputTypeSearch",h&&"inputMultiline",g==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",y&&"inputAdornedStart",a&&"inputAdornedEnd",v&&"readOnly"]};return Je(x,a_,e)},dh=ye("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ch})(Ge(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ho.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:r})=>e.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),ph=ye("input",{name:"MuiInputBase",slot:"Input",overridesResolver:uh})(Ge(({theme:t})=>{const e=t.palette.mode==="light",r={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},n={opacity:"0 !important"},o=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ho.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${ho.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),hw=mR({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),fh=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:l,className:c,color:u,components:f={},componentsProps:h={},defaultValue:v,disabled:g,disableInjectingGlobalStyles:y,endAdornment:w,error:x,fullWidth:C=!1,id:j,inputComponent:P="input",inputProps:M={},inputRef:E,margin:R,maxRows:I,minRows:F,multiline:A=!1,name:H,onBlur:G,onChange:N,onClick:k,onFocus:q,onKeyDown:U,onKeyUp:L,placeholder:W,readOnly:K,renderSuffix:ee,rows:Z,size:Q,slotProps:X={},slots:re={},startAdornment:ce,type:Y="text",value:ne,...J}=n,de=M.value!=null?M.value:ne,{current:Ce}=S.useRef(de!=null),me=S.useRef(),se=S.useCallback(oe=>{},[]),De=Rr(me,E,M.ref,se),[Ne,Oe]=S.useState(!1),Be=aa(),_e=$s({props:n,muiFormControl:Be,states:["color","disabled","error","hiddenLabel","size","required","filled"]});_e.focused=Be?Be.focused:Ne,S.useEffect(()=>{!Be&&g&&Ne&&(Oe(!1),G&&G())},[Be,g,Ne,G]);const Ke=Be&&Be.onFilled,pt=Be&&Be.onEmpty,je=S.useCallback(oe=>{Cf(oe)?Ke&&Ke():pt&&pt()},[Ke,pt]);Qn(()=>{Ce&&je({value:de})},[de,je,Ce]);const ht=oe=>{q&&q(oe),M.onFocus&&M.onFocus(oe),Be&&Be.onFocus?Be.onFocus(oe):Oe(!0)},We=oe=>{G&&G(oe),M.onBlur&&M.onBlur(oe),Be&&Be.onBlur?Be.onBlur(oe):Oe(!1)},ft=(oe,...ke)=>{if(!Ce){const $e=oe.target||me.current;if($e==null)throw new Error(Zi(1));je({value:$e.value})}M.onChange&&M.onChange(oe,...ke),N&&N(oe,...ke)};S.useEffect(()=>{je(me.current)},[]);const Ue=oe=>{me.current&&oe.currentTarget===oe.target&&me.current.focus(),k&&k(oe)};let Gt=P,Tt=M;A&&Gt==="input"&&(Z?Tt={type:void 0,minRows:Z,maxRows:Z,...Tt}:Tt={type:void 0,maxRows:I,minRows:F,...Tt},Gt=o_);const ue=oe=>{je(oe.animationName==="mui-auto-fill-cancel"?me.current:{value:"x"})};S.useEffect(()=>{Be&&Be.setAdornedStart(!!ce)},[Be,ce]);const be={...n,color:_e.color||"primary",disabled:_e.disabled,endAdornment:w,error:_e.error,focused:_e.focused,formControl:Be,fullWidth:C,hiddenLabel:_e.hiddenLabel,multiline:A,size:_e.size,startAdornment:ce,type:Y},Te=s_(be),Me=re.root||f.Root||dh,Ve=X.root||h.root||{},Qe=re.input||f.Input||ph;return Tt={...Tt,...X.input??h.input},d.jsxs(S.Fragment,{children:[!y&&typeof hw=="function"&&(fw||(fw=d.jsx(hw,{}))),d.jsxs(Me,{...Ve,ref:r,onClick:Ue,...J,...!vf(Me)&&{ownerState:{...be,...Ve.ownerState}},className:Ie(Te.root,Ve.className,c,K&&"MuiInputBase-readOnly"),children:[ce,d.jsx(lh.Provider,{value:null,children:d.jsx(Qe,{"aria-invalid":_e.error,"aria-describedby":o,autoComplete:a,autoFocus:l,defaultValue:v,disabled:_e.disabled,id:j,onAnimationStart:ue,name:H,placeholder:W,readOnly:K,required:_e.required,rows:Z,value:de,onKeyDown:U,onKeyUp:L,type:Y,...Tt,...!vf(Qe)&&{as:Gt,ownerState:{...be,...Tt.ownerState}},ref:De,className:Ie(Te.input,Tt.className,K&&"MuiInputBase-readOnly"),onBlur:We,onChange:ft,onFocus:ht})}),w,ee?ee({..._e,startAdornment:ce}):null]})]})});function l_(t){return Ye("MuiInput",t)}const Ia={...ho,...Ze("MuiInput",["root","underline","input"])};function c_(t){return Ye("MuiOutlinedInput",t)}const Mo={...ho,...Ze("MuiOutlinedInput",["root","notchedOutline","input"])};function u_(t){return Ye("MuiFilledInput",t)}const mo={...ho,...Ze("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},U2=Pe(d.jsx("path",{d:"M7 10l5 5 5-5z"}));function d_(t){return Ye("MuiAutocomplete",t)}const $t=Ze("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var mw,gw;const p_=t=>{const{classes:e,disablePortal:r,expanded:n,focused:o,fullWidth:a,hasClearIcon:l,hasPopupIcon:c,inputFocused:u,popupOpen:f,size:h}=t,v={root:["root",n&&"expanded",o&&"focused",a&&"fullWidth",l&&"hasClearIcon",c&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",u&&"inputFocused"],tag:["tag",`tagSize${ge(h)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",f&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Je(v,d_,e)},f_=ye("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t,{fullWidth:n,hasClearIcon:o,hasPopupIcon:a,inputFocused:l,size:c}=r;return[{[`& .${$t.tag}`]:e.tag},{[`& .${$t.tag}`]:e[`tagSize${ge(c)}`]},{[`& .${$t.inputRoot}`]:e.inputRoot},{[`& .${$t.input}`]:e.input},{[`& .${$t.input}`]:l&&e.inputFocused},e.root,n&&e.fullWidth,a&&e.hasPopupIcon,o&&e.hasClearIcon]}})({[`&.${$t.focused} .${$t.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${$t.clearIndicator}`]:{visibility:"visible"}},[`& .${$t.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${$t.inputRoot}`]:{[`.${$t.hasPopupIcon}&, .${$t.hasClearIcon}&`]:{paddingRight:30},[`.${$t.hasPopupIcon}.${$t.hasClearIcon}&`]:{paddingRight:56},[`& .${$t.input}`]:{width:0,minWidth:30}},[`& .${Ia.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Ia.root}.${ho.sizeSmall}`]:{[`& .${Ia.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Mo.root}`]:{padding:9,[`.${$t.hasPopupIcon}&, .${$t.hasClearIcon}&`]:{paddingRight:39},[`.${$t.hasPopupIcon}.${$t.hasClearIcon}&`]:{paddingRight:65},[`& .${$t.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${$t.endAdornment}`]:{right:9}},[`& .${Mo.root}.${ho.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${$t.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${mo.root}`]:{paddingTop:19,paddingLeft:8,[`.${$t.hasPopupIcon}&, .${$t.hasClearIcon}&`]:{paddingRight:39},[`.${$t.hasPopupIcon}.${$t.hasClearIcon}&`]:{paddingRight:65},[`& .${mo.input}`]:{padding:"7px 4px"},[`& .${$t.endAdornment}`]:{right:9}},[`& .${mo.root}.${ho.sizeSmall}`]:{paddingBottom:1,[`& .${mo.input}`]:{padding:"2.5px 4px"}},[`& .${ho.hiddenLabel}`]:{paddingTop:8},[`& .${mo.root}.${ho.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${$t.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${mo.root}.${ho.hiddenLabel}.${ho.sizeSmall}`]:{[`& .${$t.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${$t.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${$t.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${$t.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${$t.inputRoot}`]:{flexWrap:"wrap"}}}]}),h_=ye("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),m_=ye(ur,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),g_=ye(ur,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popupIndicator,r.popupOpen&&e.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),y_=ye(sh,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${$t.option}`]:e.option},e.popper,r.disablePortal&&e.popperDisablePortal]}})(Ge(({theme:t})=>({zIndex:(t.vars||t).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),v_=ye(Ir,{name:"MuiAutocomplete",slot:"Paper"})(Ge(({theme:t})=>({...t.typography.body1,overflow:"auto"}))),b_=ye("div",{name:"MuiAutocomplete",slot:"Loading"})(Ge(({theme:t})=>({color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}))),x_=ye("div",{name:"MuiAutocomplete",slot:"NoOptions"})(Ge(({theme:t})=>({color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}))),w_=ye("ul",{name:"MuiAutocomplete",slot:"Listbox"})(Ge(({theme:t})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${$t.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[t.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${$t.focused}`]:{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${$t.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity),[`&.${$t.focused}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},[`&.${$t.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}}}}))),S_=ye(hy,{name:"MuiAutocomplete",slot:"GroupLabel"})(Ge(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,top:-8}))),C_=ye("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${$t.option}`]:{paddingLeft:24}}),T_=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiAutocomplete"}),{autoComplete:o=!1,autoHighlight:a=!1,autoSelect:l=!1,blurOnSelect:c=!1,ChipProps:u,className:f,clearIcon:h=mw||(mw=d.jsx(A2,{fontSize:"small"})),clearOnBlur:v=!n.freeSolo,clearOnEscape:g=!1,clearText:y="Clear",closeText:w="Close",componentsProps:x,defaultValue:C=n.multiple?[]:null,disableClearable:j=!1,disableCloseOnSelect:P=!1,disabled:M=!1,disabledItemsFocusable:E=!1,disableListWrap:R=!1,disablePortal:I=!1,filterOptions:F,filterSelectedOptions:A=!1,forcePopupIcon:H="auto",freeSolo:G=!1,fullWidth:N=!1,getLimitTagsText:k=Ft=>`+${Ft}`,getOptionDisabled:q,getOptionKey:U,getOptionLabel:L,isOptionEqualToValue:W,groupBy:K,handleHomeEndKeys:ee=!n.freeSolo,id:Z,includeInputInList:Q=!1,inputValue:X,limitTags:re=-1,ListboxComponent:ce,ListboxProps:Y,loading:ne=!1,loadingText:J="Loading…",multiple:de=!1,noOptionsText:Ce="No options",onChange:me,onClose:se,onHighlightChange:De,onInputChange:Ne,onOpen:Oe,open:Be,openOnFocus:_e=!1,openText:Ke="Open",options:pt,PaperComponent:je,PopperComponent:ht,popupIcon:We=gw||(gw=d.jsx(U2,{})),readOnly:ft=!1,renderGroup:Ue,renderInput:Gt,renderOption:Tt,renderTags:ue,renderValue:be,selectOnFocus:Te=!n.freeSolo,size:Me="medium",slots:Ve={},slotProps:Qe={},value:oe,...ke}=n,{getRootProps:$e,getInputProps:Fe,getInputLabelProps:xt,getPopupIndicatorProps:Xt,getClearProps:dr,getItemProps:Fr,getListboxProps:on,getOptionProps:fn,value:et,dirty:St,expanded:Vt,id:br,popupOpen:Hr,focused:Pn,focusedItem:Ct,anchorEl:pr,setAnchorEl:qe,inputValue:ot,groupedOptions:jt}=AI({...n,componentName:"Autocomplete"}),Rt=!j&&!M&&St&&!ft,Yt=(!G||H===!0)&&H!==!1,{onMouseDown:_r}=Fe(),{ref:hn,...Bn}=on(),Fo=L||(Ft=>Ft.label??Ft),Pr={...n,disablePortal:I,expanded:Vt,focused:Pn,fullWidth:N,getOptionLabel:Fo,hasClearIcon:Rt,hasPopupIcon:Yt,inputFocused:Ct===-1,popupOpen:Hr,size:Me},Lr=p_(Pr),mn={slots:{paper:je,popper:ht,...Ve},slotProps:{chip:u,listbox:Y,...x,...Qe}},[Us,ca]=Xe("listbox",{elementType:w_,externalForwardedProps:mn,ownerState:Pr,className:Lr.listbox,additionalProps:Bn,ref:hn}),[Vs,we]=Xe("paper",{elementType:Ir,externalForwardedProps:mn,ownerState:Pr,className:Lr.paper}),[xe,tt]=Xe("popper",{elementType:sh,externalForwardedProps:mn,ownerState:Pr,className:Lr.popper,additionalProps:{disablePortal:I,style:{width:pr?pr.clientWidth:null},role:"presentation",anchorEl:pr,open:Hr}});let wt;const Pt=Ft=>({className:Lr.tag,disabled:M,...Fr(Ft)});if(de?et.length>0&&(ue?wt=ue(et,Pt,Pr):be?wt=be(et,Pt,Pr):wt=et.map((Ft,so)=>{const{key:Ur,...ts}=Pt({index:so});return d.jsx(gr,{label:Fo(Ft),size:Me,...ts,...mn.slotProps.chip},Ur)})):be&&et!=null&&(wt=be(et,Pt,Pr)),re>-1&&Array.isArray(wt)){const Ft=wt.length-re;!Pn&&Ft>0&&(wt=wt.splice(0,re),wt.push(d.jsx("span",{className:Lr.tag,children:k(Ft)},wt.length)))}const It=Ue||(Ft=>d.jsxs("li",{children:[d.jsx(S_,{className:Lr.groupLabel,ownerState:Pr,component:"div",children:Ft.group}),d.jsx(C_,{className:Lr.groupUl,ownerState:Pr,children:Ft.children})]},Ft.key)),ua=Tt||((Ft,so)=>{const{key:Ur,...ts}=Ft;return d.jsx("li",{...ts,children:Fo(so)},Ur)}),hc=(Ft,so)=>{const Ur=fn({option:Ft,index:so});return ua({...Ur,className:Lr.option},Ft,{selected:Ur["aria-selected"],index:so,inputValue:ot},Pr)},$i=mn.slotProps.clearIndicator,Ws=mn.slotProps.popupIndicator;return d.jsxs(S.Fragment,{children:[d.jsx(f_,{ref:r,className:Ie(Lr.root,f),ownerState:Pr,...$e(ke),children:Gt({id:br,disabled:M,fullWidth:!0,size:Me==="small"?"small":void 0,InputLabelProps:xt(),InputProps:{ref:qe,className:Lr.inputRoot,startAdornment:wt,onMouseDown:Ft=>{Ft.target===Ft.currentTarget&&_r(Ft)},...(Rt||Yt)&&{endAdornment:d.jsxs(h_,{className:Lr.endAdornment,ownerState:Pr,children:[Rt?d.jsx(m_,{...dr(),"aria-label":y,title:y,ownerState:Pr,...$i,className:Ie(Lr.clearIndicator,$i==null?void 0:$i.className),children:h}):null,Yt?d.jsx(g_,{...Xt(),disabled:M,"aria-label":Hr?w:Ke,title:Hr?w:Ke,ownerState:Pr,...Ws,className:Ie(Lr.popupIndicator,Ws==null?void 0:Ws.className),children:We}):null]})}},inputProps:{className:Lr.input,disabled:M,readOnly:ft,...Fe()}})}),pr?d.jsx(y_,{as:xe,...tt,children:d.jsxs(v_,{as:Vs,...we,children:[ne&&jt.length===0?d.jsx(b_,{className:Lr.loading,ownerState:Pr,children:J}):null,jt.length===0&&!G&&!ne?d.jsx(x_,{className:Lr.noOptions,ownerState:Pr,role:"presentation",onMouseDown:Ft=>{Ft.preventDefault()},children:Ce}):null,jt.length>0?d.jsx(Us,{as:ce,...ca,children:jt.map((Ft,so)=>K?It({key:Ft.key,group:Ft.group,children:Ft.options.map((Ur,ts)=>hc(Ur,Ft.index+ts))}):hc(Ft,so))}):null]})}):null]})}),E_=Pe(d.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}));function k_(t){return Ye("MuiAvatar",t)}Ze("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const P_=t=>{const{classes:e,variant:r,colorDefault:n}=t;return Je({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},k_,e)},j_=ye("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],r.colorDefault&&e.colorDefault]}})(Ge(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(t.vars||t).palette.background.default,...t.vars?{backgroundColor:t.vars.palette.Avatar.defaultBg}:{backgroundColor:t.palette.grey[400],...t.applyStyles("dark",{backgroundColor:t.palette.grey[600]})}}}]}))),M_=ye("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),R_=ye(E_,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function I_({crossOrigin:t,referrerPolicy:e,src:r,srcSet:n}){const[o,a]=S.useState(!1);return S.useEffect(()=>{if(!r&&!n)return;a(!1);let l=!0;const c=new Image;return c.onload=()=>{l&&a("loaded")},c.onerror=()=>{l&&a("error")},c.crossOrigin=t,c.referrerPolicy=e,c.src=r,n&&(c.srcset=n),()=>{l=!1}},[t,e,r,n]),o}const yw=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiAvatar"}),{alt:o,children:a,className:l,component:c="div",slots:u={},slotProps:f={},imgProps:h,sizes:v,src:g,srcSet:y,variant:w="circular",...x}=n;let C=null;const j={...n,component:c,variant:w},P=I_({...h,...typeof f.img=="function"?f.img(j):f.img,src:g,srcSet:y}),M=g||y,E=M&&P!=="error";j.colorDefault=!E,delete j.ownerState;const R=P_(j),[I,F]=Xe("root",{ref:r,className:Ie(R.root,l),elementType:j_,externalForwardedProps:{slots:u,slotProps:f,component:c,...x},ownerState:j}),[A,H]=Xe("img",{className:R.img,elementType:M_,externalForwardedProps:{slots:u,slotProps:{img:{...h,...f.img}}},additionalProps:{alt:o,src:g,srcSet:y,sizes:v},ownerState:j}),[G,N]=Xe("fallback",{className:R.fallback,elementType:R_,externalForwardedProps:{slots:u,slotProps:f},shouldForwardComponentProp:!0,ownerState:j});return E?C=d.jsx(A,{...H}):a||a===0?C=a:M&&o?C=o[0]:C=d.jsx(G,{...N}),d.jsx(I,{...F,children:C})}),A_={entering:{opacity:1},entered:{opacity:1}},my=S.forwardRef(function(e,r){const n=eo(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:l=!0,children:c,easing:u,in:f,onEnter:h,onEntered:v,onEntering:g,onExit:y,onExited:w,onExiting:x,style:C,timeout:j=o,TransitionComponent:P=oi,...M}=e,E=S.useRef(null),R=Rr(E,Ns(c),r),I=U=>L=>{if(U){const W=E.current;L===void 0?U(W):U(W,L)}},F=I(g),A=I((U,L)=>{j2(U);const W=$l({style:C,timeout:j,easing:u},{mode:"enter"});U.style.webkitTransition=n.transitions.create("opacity",W),U.style.transition=n.transitions.create("opacity",W),h&&h(U,L)}),H=I(v),G=I(x),N=I(U=>{const L=$l({style:C,timeout:j,easing:u},{mode:"exit"});U.style.webkitTransition=n.transitions.create("opacity",L),U.style.transition=n.transitions.create("opacity",L),y&&y(U)}),k=I(w),q=U=>{a&&a(E.current,U)};return d.jsx(P,{appear:l,in:f,nodeRef:E,onEnter:A,onEntered:H,onEntering:F,onExit:N,onExited:k,onExiting:G,addEndListener:q,timeout:j,...M,children:(U,{ownerState:L,...W})=>S.cloneElement(c,{style:{opacity:0,visibility:U==="exited"&&!f?"hidden":void 0,...A_[U],...C,...c.props.style},ref:R,...W})})});function __(t){return Ye("MuiBackdrop",t)}Ze("MuiBackdrop",["root","invisible"]);const L_=t=>{const{classes:e,invisible:r}=t;return Je({root:["root",r&&"invisible"]},__,e)},O_=ye("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.invisible&&e.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),V2=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiBackdrop"}),{children:o,className:a,component:l="div",invisible:c=!1,open:u,components:f={},componentsProps:h={},slotProps:v={},slots:g={},TransitionComponent:y,transitionDuration:w,...x}=n,C={...n,component:l,invisible:c},j=L_(C),P={transition:y,root:f.Root,...g},M={...h,...v},E={component:l,slots:P,slotProps:M},[R,I]=Xe("root",{elementType:O_,externalForwardedProps:E,className:Ie(j.root,a),ownerState:C}),[F,A]=Xe("transition",{elementType:my,externalForwardedProps:E,ownerState:C});return d.jsx(F,{in:u,timeout:w,...x,...A,children:d.jsx(R,{"aria-hidden":!0,...I,classes:j,ref:r,children:o})})}),N_=Ze("MuiBox",["root"]),$_=nh(),fe=yj({themeId:Jo,defaultTheme:$_,defaultClassName:N_.root,generateClassName:t2.generate});function B_(t){return Ye("MuiButton",t)}const gs=Ze("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),W2=S.createContext({}),q2=S.createContext(void 0),z_=t=>{const{color:e,disableElevation:r,fullWidth:n,size:o,variant:a,loading:l,loadingPosition:c,classes:u}=t,f={root:["root",l&&"loading",a,`${a}${ge(e)}`,`size${ge(o)}`,`${a}Size${ge(o)}`,`color${ge(e)}`,r&&"disableElevation",n&&"fullWidth",l&&`loadingPosition${ge(c)}`],startIcon:["icon","startIcon",`iconSize${ge(o)}`],endIcon:["icon","endIcon",`iconSize${ge(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},h=Je(f,B_,u);return{...u,...h}},G2=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],D_=ye(ti,{shouldForwardProp:t=>to(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`${r.variant}${ge(r.color)}`],e[`size${ge(r.size)}`],e[`${r.variant}Size${ge(r.size)}`],r.color==="inherit"&&e.colorInherit,r.disableElevation&&e.disableElevation,r.fullWidth&&e.fullWidth,r.loading&&e.loading]}})(Ge(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],r=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${gs.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${gs.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${gs.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${gs.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(Zt()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(t.vars||t).palette[n].main,"--variant-outlinedColor":(t.vars||t).palette[n].main,"--variant-outlinedBorder":t.alpha((t.vars||t).palette[n].main,.5),"--variant-containedColor":(t.vars||t).palette[n].contrastText,"--variant-containedBg":(t.vars||t).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[n].dark,"--variant-textBg":t.alpha((t.vars||t).palette[n].main,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[n].main,"--variant-outlinedBg":t.alpha((t.vars||t).palette[n].main,(t.vars||t).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:e,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${gs.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${gs.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${gs.loading}`]:{color:"transparent"}}}]}})),F_=ye("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.startIcon,r.loading&&e.startIconLoadingStart,e[`iconSize${ge(r.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...G2]})),H_=ye("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.endIcon,r.loading&&e.endIconLoadingEnd,e[`iconSize${ge(r.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...G2]})),U_=ye("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),vw=ye("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),$u=S.forwardRef(function(e,r){const n=S.useContext(W2),o=S.useContext(q2),a=Nl(n,e),l=nt({props:a,name:"MuiButton"}),{children:c,color:u="primary",component:f="button",className:h,disabled:v=!1,disableElevation:g=!1,disableFocusRipple:y=!1,endIcon:w,focusVisibleClassName:x,fullWidth:C=!1,id:j,loading:P=null,loadingIndicator:M,loadingPosition:E="center",size:R="medium",startIcon:I,type:F,variant:A="text",...H}=l,G=Pi(j),N=M??d.jsx(On,{"aria-labelledby":G,color:"inherit",size:16}),k={...l,color:u,component:f,disabled:v,disableElevation:g,disableFocusRipple:y,fullWidth:C,loading:P,loadingIndicator:N,loadingPosition:E,size:R,type:F,variant:A},q=z_(k),U=(I||P&&E==="start")&&d.jsx(F_,{className:q.startIcon,ownerState:k,children:I||d.jsx(vw,{className:q.loadingIconPlaceholder,ownerState:k})}),L=(w||P&&E==="end")&&d.jsx(H_,{className:q.endIcon,ownerState:k,children:w||d.jsx(vw,{className:q.loadingIconPlaceholder,ownerState:k})}),W=o||"",K=typeof P=="boolean"?d.jsx("span",{className:q.loadingWrapper,style:{display:"contents"},children:P&&d.jsx(U_,{className:q.loadingIndicator,ownerState:k,children:N})}):null;return d.jsxs(D_,{ownerState:k,className:Ie(n.className,q.root,h,W),component:f,disabled:v||P,focusRipple:!y,focusVisibleClassName:Ie(q.focusVisible,x),ref:r,type:F,id:P?G:j,...H,classes:q,children:[U,E!=="end"&&K,c,E==="end"&&K,L]})});function X2(t){return S.Children.toArray(t).filter(e=>S.isValidElement(e))}function V_(t){return Ye("MuiButtonGroup",t)}const Ot=Ze("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","horizontal","vertical","colorPrimary","colorSecondary","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),W_=(t,e)=>{const{ownerState:r}=t;return[{[`& .${Ot.grouped}`]:e.grouped},{[`& .${Ot.grouped}`]:e[`grouped${ge(r.orientation)}`]},{[`& .${Ot.grouped}`]:e[`grouped${ge(r.variant)}`]},{[`& .${Ot.grouped}`]:e[`grouped${ge(r.variant)}${ge(r.orientation)}`]},{[`& .${Ot.grouped}`]:e[`grouped${ge(r.variant)}${ge(r.color)}`]},{[`& .${Ot.firstButton}`]:e.firstButton},{[`& .${Ot.lastButton}`]:e.lastButton},{[`& .${Ot.middleButton}`]:e.middleButton},e.root,e[r.variant],r.disableElevation===!0&&e.disableElevation,r.fullWidth&&e.fullWidth,r.orientation==="vertical"&&e.vertical]},q_=t=>{const{classes:e,color:r,disabled:n,disableElevation:o,fullWidth:a,orientation:l,variant:c}=t,u={root:["root",c,l,a&&"fullWidth",o&&"disableElevation",`color${ge(r)}`],grouped:["grouped",`grouped${ge(l)}`,`grouped${ge(c)}`,`grouped${ge(c)}${ge(l)}`,`grouped${ge(c)}${ge(r)}`,n&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Je(u,V_,e)},G_=ye("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:W_})(Ge(({theme:t})=>({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius,variants:[{props:{variant:"contained"},style:{boxShadow:(t.vars||t).shadows[2]}},{props:{disableElevation:!0},style:{boxShadow:"none"}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${Ot.lastButton},& .${Ot.middleButton}`]:{borderTopRightRadius:0,borderTopLeftRadius:0},[`& .${Ot.firstButton},& .${Ot.middleButton}`]:{borderBottomRightRadius:0,borderBottomLeftRadius:0}}},{props:{orientation:"horizontal"},style:{[`& .${Ot.firstButton},& .${Ot.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Ot.lastButton},& .${Ot.middleButton}`]:{borderTopLeftRadius:0,borderBottomLeftRadius:0}}},{props:{variant:"text",orientation:"horizontal"},style:{[`& .${Ot.firstButton},& .${Ot.middleButton}`]:{borderRight:t.vars?`1px solid ${t.alpha(t.vars.palette.common.onBackground,.23)}`:`1px solid ${t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Ot.disabled}`]:{borderRight:`1px solid ${(t.vars||t).palette.action.disabled}`}}}},{props:{variant:"text",orientation:"vertical"},style:{[`& .${Ot.firstButton},& .${Ot.middleButton}`]:{borderBottom:t.vars?`1px solid ${t.alpha(t.vars.palette.common.onBackground,.23)}`:`1px solid ${t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Ot.disabled}`]:{borderBottom:`1px solid ${(t.vars||t).palette.action.disabled}`}}}},...Object.entries(t.palette).filter(Zt()).flatMap(([e])=>[{props:{variant:"text",color:e},style:{[`& .${Ot.firstButton},& .${Ot.middleButton}`]:{borderColor:t.alpha((t.vars||t).palette[e].main,.5)}}}]),{props:{variant:"outlined",orientation:"horizontal"},style:{[`& .${Ot.firstButton},& .${Ot.middleButton}`]:{borderRightColor:"transparent","&:hover":{borderRightColor:"currentColor"}},[`& .${Ot.lastButton},& .${Ot.middleButton}`]:{marginLeft:-1}}},{props:{variant:"outlined",orientation:"vertical"},style:{[`& .${Ot.firstButton},& .${Ot.middleButton}`]:{borderBottomColor:"transparent","&:hover":{borderBottomColor:"currentColor"}},[`& .${Ot.lastButton},& .${Ot.middleButton}`]:{marginTop:-1}}},{props:{variant:"contained",orientation:"horizontal"},style:{[`& .${Ot.firstButton},& .${Ot.middleButton}`]:{borderRight:`1px solid ${(t.vars||t).palette.grey[400]}`,[`&.${Ot.disabled}`]:{borderRight:`1px solid ${(t.vars||t).palette.action.disabled}`}}}},{props:{variant:"contained",orientation:"vertical"},style:{[`& .${Ot.firstButton},& .${Ot.middleButton}`]:{borderBottom:`1px solid ${(t.vars||t).palette.grey[400]}`,[`&.${Ot.disabled}`]:{borderBottom:`1px solid ${(t.vars||t).palette.action.disabled}`}}}},...Object.entries(t.palette).filter(Zt(["dark"])).map(([e])=>({props:{variant:"contained",color:e},style:{[`& .${Ot.firstButton},& .${Ot.middleButton}`]:{borderColor:(t.vars||t).palette[e].dark}}}))],[`& .${Ot.grouped}`]:{minWidth:40,boxShadow:"none",props:{variant:"contained"},style:{"&:hover":{boxShadow:"none"}}}}))),X_=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiButtonGroup"}),{children:o,className:a,color:l="primary",component:c="div",disabled:u=!1,disableElevation:f=!1,disableFocusRipple:h=!1,disableRipple:v=!1,fullWidth:g=!1,orientation:y="horizontal",size:w="medium",variant:x="outlined",...C}=n,j={...n,color:l,component:c,disabled:u,disableElevation:f,disableFocusRipple:h,disableRipple:v,fullWidth:g,orientation:y,size:w,variant:x},P=q_(j),M=S.useMemo(()=>({className:P.grouped,color:l,disabled:u,disableElevation:f,disableFocusRipple:h,disableRipple:v,fullWidth:g,size:w,variant:x}),[l,u,f,h,v,g,w,x,P.grouped]),E=X2(o),R=E.length,I=F=>{const A=F===0,H=F===R-1;return A&&H?"":A?P.firstButton:H?P.lastButton:P.middleButton};return d.jsx(G_,{as:c,role:"group",className:Ie(P.root,a),ref:r,ownerState:j,...C,children:d.jsx(W2.Provider,{value:M,children:E.map((F,A)=>d.jsx(q2.Provider,{value:I(A),children:F},A))})})});function K_(t){return Ye("MuiCard",t)}Ze("MuiCard",["root"]);const Q_=t=>{const{classes:e}=t;return Je({root:["root"]},K_,e)},Y_=ye(Ir,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),Ut=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiCard"}),{className:o,raised:a=!1,...l}=n,c={...n,raised:a},u=Q_(c);return d.jsx(Y_,{className:Ie(u.root,o),elevation:a?8:void 0,ref:r,ownerState:c,...l})});function J_(t){return Ye("MuiCardActionArea",t)}const Eg=Ze("MuiCardActionArea",["root","focusVisible","focusHighlight"]),Z_=t=>{const{classes:e}=t;return Je({root:["root"],focusHighlight:["focusHighlight"]},J_,e)},eL=ye(ti,{name:"MuiCardActionArea",slot:"Root"})(Ge(({theme:t})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${Eg.focusHighlight}`]:{opacity:(t.vars||t).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${Eg.focusVisible} .${Eg.focusHighlight}`]:{opacity:(t.vars||t).palette.action.focusOpacity}}))),tL=ye("span",{name:"MuiCardActionArea",slot:"FocusHighlight"})(Ge(({theme:t})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:t.transitions.create("opacity",{duration:t.transitions.duration.short})}))),rL=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiCardActionArea"}),{children:o,className:a,focusVisibleClassName:l,slots:c={},slotProps:u={},...f}=n,h=n,v=Z_(h),g={slots:c,slotProps:u},[y,w]=Xe("root",{elementType:eL,externalForwardedProps:{...g,...f},shouldForwardComponentProp:!0,ownerState:h,ref:r,className:Ie(v.root,a),additionalProps:{focusVisibleClassName:Ie(l,v.focusVisible)}}),[x,C]=Xe("focusHighlight",{elementType:tL,externalForwardedProps:g,ownerState:h,ref:r,className:v.focusHighlight});return d.jsxs(y,{...w,children:[o,d.jsx(x,{...C})]})});function nL(t){return Ye("MuiCardContent",t)}Ze("MuiCardContent",["root"]);const oL=t=>{const{classes:e}=t;return Je({root:["root"]},nL,e)},iL=ye("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),qt=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiCardContent"}),{className:o,component:a="div",...l}=n,c={...n,component:a},u=oL(c);return d.jsx(iL,{as:a,className:Ie(u.root,o),ownerState:c,ref:r,...l})});function aL(t){return Ye("PrivateSwitchBase",t)}Ze("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const sL=t=>{const{classes:e,checked:r,disabled:n,edge:o}=t,a={root:["root",r&&"checked",n&&"disabled",o&&`edge${ge(o)}`],input:["input"]};return Je(a,aL,e)},lL=ye(ti,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:t,ownerState:e})=>t==="start"&&e.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:t,ownerState:e})=>t==="end"&&e.size!=="small",style:{marginRight:-12}}]}),cL=ye("input",{name:"MuiSwitchBase",shouldForwardProp:to})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),K2=S.forwardRef(function(e,r){const{autoFocus:n,checked:o,checkedIcon:a,defaultChecked:l,disabled:c,disableFocusRipple:u=!1,edge:f=!1,icon:h,id:v,inputProps:g,inputRef:y,name:w,onBlur:x,onChange:C,onFocus:j,readOnly:P,required:M=!1,tabIndex:E,type:R,value:I,slots:F={},slotProps:A={},...H}=e,[G,N]=Na({controlled:o,default:!!l,name:"SwitchBase",state:"checked"}),k=aa(),q=ne=>{j&&j(ne),k&&k.onFocus&&k.onFocus(ne)},U=ne=>{x&&x(ne),k&&k.onBlur&&k.onBlur(ne)},L=ne=>{if(ne.nativeEvent.defaultPrevented)return;const J=ne.target.checked;N(J),C&&C(ne,J)};let W=c;k&&typeof W>"u"&&(W=k.disabled);const K=R==="checkbox"||R==="radio",ee={...e,checked:G,disabled:W,disableFocusRipple:u,edge:f},Z=sL(ee),Q={slots:F,slotProps:{input:g,...A}},[X,re]=Xe("root",{ref:r,elementType:lL,className:Z.root,shouldForwardComponentProp:!0,externalForwardedProps:{...Q,component:"span",...H},getSlotProps:ne=>({...ne,onFocus:J=>{var de;(de=ne.onFocus)==null||de.call(ne,J),q(J)},onBlur:J=>{var de;(de=ne.onBlur)==null||de.call(ne,J),U(J)}}),ownerState:ee,additionalProps:{centerRipple:!0,focusRipple:!u,disabled:W,role:void 0,tabIndex:null}}),[ce,Y]=Xe("input",{ref:y,elementType:cL,className:Z.input,externalForwardedProps:Q,getSlotProps:ne=>({...ne,onChange:J=>{var de;(de=ne.onChange)==null||de.call(ne,J),L(J)}}),ownerState:ee,additionalProps:{autoFocus:n,checked:o,defaultChecked:l,disabled:W,id:K?v:void 0,name:w,readOnly:P,required:M,tabIndex:E,type:R,...R==="checkbox"&&I===void 0?{}:{value:I}}});return d.jsxs(X,{...re,children:[d.jsx(ce,{...Y}),G?a:h]})}),uL=Pe(d.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),dL=Pe(d.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),pL=Pe(d.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function fL(t){return Ye("MuiCheckbox",t)}const kg=Ze("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),hL=t=>{const{classes:e,indeterminate:r,color:n,size:o}=t,a={root:["root",r&&"indeterminate",`color${ge(n)}`,`size${ge(o)}`]},l=Je(a,fL,e);return{...e,...l}},mL=ye(K2,{shouldForwardProp:t=>to(t)||t==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.indeterminate&&e.indeterminate,e[`size${ge(r.size)}`],r.color!=="default"&&e[`color${ge(r.color)}`]]}})(Ge(({theme:t})=>({color:(t.vars||t).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.active,(t.vars||t).palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(Zt()).map(([e])=>({props:{color:e,disableRipple:!1},style:{"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(Zt()).map(([e])=>({props:{color:e},style:{[`&.${kg.checked}, &.${kg.indeterminate}`]:{color:(t.vars||t).palette[e].main},[`&.${kg.disabled}`]:{color:(t.vars||t).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),gL=d.jsx(dL,{}),yL=d.jsx(uL,{}),vL=d.jsx(pL,{}),bL=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiCheckbox"}),{checkedIcon:o=gL,color:a="primary",icon:l=yL,indeterminate:c=!1,indeterminateIcon:u=vL,inputProps:f,size:h="medium",disableRipple:v=!1,className:g,slots:y={},slotProps:w={},...x}=n,C=c?u:l,j=c?u:o,P={...n,disableRipple:v,color:a,indeterminate:c,size:h},M=hL(P),E=w.input??f,[R,I]=Xe("root",{ref:r,elementType:mL,className:Ie(M.root,g),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:w,...x},ownerState:P,additionalProps:{type:"checkbox",icon:S.cloneElement(C,{fontSize:C.props.fontSize??h}),checkedIcon:S.cloneElement(j,{fontSize:j.props.fontSize??h}),disableRipple:v,slots:y,slotProps:{input:T2(typeof E=="function"?E(P):E,{"data-indeterminate":c})}}});return d.jsx(R,{...I,classes:M})});function bw(t){return t.substring(2).toLowerCase()}function xL(t,e){return e.documentElement.clientWidth<t.clientX||e.documentElement.clientHeight<t.clientY}function wL(t){const{children:e,disableReactTree:r=!1,mouseEvent:n="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=t,l=S.useRef(!1),c=S.useRef(null),u=S.useRef(!1),f=S.useRef(!1);S.useEffect(()=>(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const h=Rr(Ns(e),c),v=qr(w=>{const x=f.current;f.current=!1;const C=dn(c.current);if(!u.current||!c.current||"clientX"in w&&xL(w,C))return;if(l.current){l.current=!1;return}let j;w.composedPath?j=w.composedPath().includes(c.current):j=!C.documentElement.contains(w.target)||c.current.contains(w.target),!j&&(r||!x)&&o(w)}),g=w=>x=>{f.current=!0;const C=e.props[w];C&&C(x)},y={ref:h};return a!==!1&&(y[a]=g(a)),S.useEffect(()=>{if(a!==!1){const w=bw(a),x=dn(c.current),C=()=>{l.current=!0};return x.addEventListener(w,v),x.addEventListener("touchmove",C),()=>{x.removeEventListener(w,v),x.removeEventListener("touchmove",C)}}},[v,a]),n!==!1&&(y[n]=g(n)),S.useEffect(()=>{if(n!==!1){const w=bw(n),x=dn(c.current);return x.addEventListener(w,v),()=>{x.removeEventListener(w,v)}}},[v,n]),S.cloneElement(e,y)}const Tf=lM({createStyledComponent:ye("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`maxWidth${ge(String(r.maxWidth))}`],r.fixed&&e.fixed,r.disableGutters&&e.disableGutters]}}),useThemeProps:t=>nt({props:t,name:"MuiContainer"})});function Q2(t=window){const e=t.document.documentElement.clientWidth;return t.innerWidth-e}function SL(t){const e=dn(t);return e.body===t?ei(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function bu(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function xw(t){return parseInt(ei(t).getComputedStyle(t).paddingRight,10)||0}function CL(t){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(t.tagName),n=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return r||n}function ww(t,e,r,n,o){const a=[e,r,...n];[].forEach.call(t.children,l=>{const c=!a.includes(l),u=!CL(l);c&&u&&bu(l,o)})}function Pg(t,e){let r=-1;return t.some((n,o)=>e(n)?(r=o,!0):!1),r}function TL(t,e){const r=[],n=t.container;if(!e.disableScrollLock){if(SL(n)){const l=Q2(ei(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${xw(n)+l}px`;const c=dn(n).querySelectorAll(".mui-fixed");[].forEach.call(c,u=>{r.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${xw(u)+l}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=dn(n).body;else{const l=n.parentElement,c=ei(n);a=(l==null?void 0:l.nodeName)==="HTML"&&c.getComputedStyle(l).overflowY==="scroll"?l:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:l,property:c})=>{a?l.style.setProperty(c,a):l.style.removeProperty(c)})}}function EL(t){const e=[];return[].forEach.call(t.children,r=>{r.getAttribute("aria-hidden")==="true"&&e.push(r)}),e}class kL{constructor(){this.modals=[],this.containers=[]}add(e,r){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&bu(e.modalRef,!1);const o=EL(r);ww(r,e.mount,e.modalRef,o,!0);const a=Pg(this.containers,l=>l.container===r);return a!==-1?(this.containers[a].modals.push(e),n):(this.containers.push({modals:[e],container:r,restore:null,hiddenSiblings:o}),n)}mount(e,r){const n=Pg(this.containers,a=>a.modals.includes(e)),o=this.containers[n];o.restore||(o.restore=TL(o,r))}remove(e,r=!0){const n=this.modals.indexOf(e);if(n===-1)return n;const o=Pg(this.containers,l=>l.modals.includes(e)),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(e),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),e.modalRef&&bu(e.modalRef,r),ww(a.container,e.mount,e.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const l=a.modals[a.modals.length-1];l.modalRef&&bu(l.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}function kl(t){var r;let e=t.activeElement;for(;((r=e==null?void 0:e.shadowRoot)==null?void 0:r.activeElement)!=null;)e=e.shadowRoot.activeElement;return e}const PL=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function jL(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:e}function ML(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const e=n=>t.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=e(`[name="${t.name}"]:checked`);return r||(r=e(`[name="${t.name}"]`)),r!==t}function RL(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||ML(t))}function IL(t){const e=[],r=[];return Array.from(t.querySelectorAll(PL)).forEach((n,o)=>{const a=jL(n);a===-1||!RL(n)||(a===0?e.push(n):r.push({documentOrder:o,tabIndex:a,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(e)}function AL(){return!0}function _L(t){const{children:e,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=IL,isEnabled:l=AL,open:c}=t,u=S.useRef(!1),f=S.useRef(null),h=S.useRef(null),v=S.useRef(null),g=S.useRef(null),y=S.useRef(!1),w=S.useRef(null),x=Rr(Ns(e),w),C=S.useRef(null);S.useEffect(()=>{!c||!w.current||(y.current=!r)},[r,c]),S.useEffect(()=>{if(!c||!w.current)return;const M=dn(w.current),E=kl(M);return w.current.contains(E)||(w.current.hasAttribute("tabIndex")||w.current.setAttribute("tabIndex","-1"),y.current&&w.current.focus()),()=>{o||(v.current&&v.current.focus&&(u.current=!0,v.current.focus()),v.current=null)}},[c]),S.useEffect(()=>{if(!c||!w.current)return;const M=dn(w.current),E=kl(M),R=A=>{C.current=A,!(n||!l()||A.key!=="Tab")&&E===w.current&&A.shiftKey&&(u.current=!0,h.current&&h.current.focus())},I=()=>{var N,k;const A=w.current;if(A===null)return;const H=kl(M);if(!M.hasFocus()||!l()||u.current){u.current=!1;return}if(A.contains(H)||n&&H!==f.current&&H!==h.current)return;if(H!==g.current)g.current=null;else if(g.current!==null)return;if(!y.current)return;let G=[];if((H===f.current||H===h.current)&&(G=a(w.current)),G.length>0){const q=!!((N=C.current)!=null&&N.shiftKey&&((k=C.current)==null?void 0:k.key)==="Tab"),U=G[0],L=G[G.length-1];typeof U!="string"&&typeof L!="string"&&(q?L.focus():U.focus())}else A.focus()};M.addEventListener("focusin",I),M.addEventListener("keydown",R,!0);const F=setInterval(()=>{const A=kl(M);A&&A.tagName==="BODY"&&I()},50);return()=>{clearInterval(F),M.removeEventListener("focusin",I),M.removeEventListener("keydown",R,!0)}},[r,n,o,l,c,a]);const j=M=>{v.current===null&&(v.current=M.relatedTarget),y.current=!0,g.current=M.target;const E=e.props.onFocus;E&&E(M)},P=M=>{v.current===null&&(v.current=M.relatedTarget),y.current=!0};return d.jsxs(S.Fragment,{children:[d.jsx("div",{tabIndex:c?0:-1,onFocus:P,ref:f,"data-testid":"sentinelStart"}),S.cloneElement(e,{ref:x,onFocus:j}),d.jsx("div",{tabIndex:c?0:-1,onFocus:P,ref:h,"data-testid":"sentinelEnd"})]})}function LL(t){return typeof t=="function"?t():t}function OL(t){return t?t.props.hasOwnProperty("in"):!1}const Sw=()=>{},Mp=new kL;function NL(t){const{container:e,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:l,children:c,onClose:u,open:f,rootRef:h}=t,v=S.useRef({}),g=S.useRef(null),y=S.useRef(null),w=Rr(y,h),[x,C]=S.useState(!f),j=OL(c);let P=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(P=!1);const M=()=>dn(g.current),E=()=>(v.current.modalRef=y.current,v.current.mount=g.current,v.current),R=()=>{Mp.mount(E(),{disableScrollLock:n}),y.current&&(y.current.scrollTop=0)},I=qr(()=>{const L=LL(e)||M().body;Mp.add(E(),L),y.current&&R()}),F=()=>Mp.isTopModal(E()),A=qr(L=>{g.current=L,L&&(f&&F()?R():y.current&&bu(y.current,P))}),H=S.useCallback(()=>{Mp.remove(E(),P)},[P]);S.useEffect(()=>()=>{H()},[H]),S.useEffect(()=>{f?I():(!j||!o)&&H()},[f,H,j,o,I]);const G=L=>W=>{var K;(K=L.onKeyDown)==null||K.call(L,W),!(W.key!=="Escape"||W.which===229||!F())&&(r||(W.stopPropagation(),u&&u(W,"escapeKeyDown")))},N=L=>W=>{var K;(K=L.onClick)==null||K.call(L,W),W.target===W.currentTarget&&u&&u(W,"backdropClick")};return{getRootProps:(L={})=>{const W=bf(t);delete W.onTransitionEnter,delete W.onTransitionExited;const K={...W,...L};return{role:"presentation",...K,onKeyDown:G(K),ref:w}},getBackdropProps:(L={})=>{const W=L;return{"aria-hidden":!0,...W,onClick:N(W),open:f}},getTransitionProps:()=>{const L=()=>{C(!1),a&&a()},W=()=>{C(!0),l&&l(),o&&H()};return{onEnter:H1(L,(c==null?void 0:c.props.onEnter)??Sw),onExited:H1(W,(c==null?void 0:c.props.onExited)??Sw)}},rootRef:w,portalRef:A,isTopModal:F,exited:x,hasTransition:j}}function $L(t){return Ye("MuiModal",t)}Ze("MuiModal",["root","hidden","backdrop"]);const BL=t=>{const{open:e,exited:r,classes:n}=t;return Je({root:["root",!e&&r&&"hidden"],backdrop:["backdrop"]},$L,n)},zL=ye("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.open&&r.exited&&e.hidden]}})(Ge(({theme:t})=>({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),DL=ye(V2,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Y2=S.forwardRef(function(e,r){const n=nt({name:"MuiModal",props:e}),{BackdropComponent:o=DL,BackdropProps:a,classes:l,className:c,closeAfterTransition:u=!1,children:f,container:h,component:v,components:g={},componentsProps:y={},disableAutoFocus:w=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:C=!1,disablePortal:j=!1,disableRestoreFocus:P=!1,disableScrollLock:M=!1,hideBackdrop:E=!1,keepMounted:R=!1,onClose:I,onTransitionEnter:F,onTransitionExited:A,open:H,slotProps:G={},slots:N={},theme:k,...q}=n,U={...n,closeAfterTransition:u,disableAutoFocus:w,disableEnforceFocus:x,disableEscapeKeyDown:C,disablePortal:j,disableRestoreFocus:P,disableScrollLock:M,hideBackdrop:E,keepMounted:R},{getRootProps:L,getBackdropProps:W,getTransitionProps:K,portalRef:ee,isTopModal:Z,exited:Q,hasTransition:X}=NL({...U,rootRef:r}),re={...U,exited:Q},ce=BL(re),Y={};if(f.props.tabIndex===void 0&&(Y.tabIndex="-1"),X){const{onEnter:se,onExited:De}=K();Y.onEnter=se,Y.onExited=De}const ne={slots:{root:g.Root,backdrop:g.Backdrop,...N},slotProps:{...y,...G}},[J,de]=Xe("root",{ref:r,elementType:zL,externalForwardedProps:{...ne,...q,component:v},getSlotProps:L,ownerState:re,className:Ie(c,ce==null?void 0:ce.root,!re.open&&re.exited&&(ce==null?void 0:ce.hidden))}),[Ce,me]=Xe("backdrop",{ref:a==null?void 0:a.ref,elementType:o,externalForwardedProps:ne,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:se=>W({...se,onClick:De=>{se!=null&&se.onClick&&se.onClick(De)}}),className:Ie(a==null?void 0:a.className,ce==null?void 0:ce.backdrop),ownerState:re});return!R&&!H&&(!X||Q)?null:d.jsx(H2,{ref:ee,container:h,disablePortal:j,children:d.jsxs(J,{...de,children:[!E&&o?d.jsx(Ce,{...me}):null,d.jsx(_L,{disableEnforceFocus:x,disableAutoFocus:w,disableRestoreFocus:P,isEnabled:Z,open:H,children:S.cloneElement(f,Y)})]})})});function FL(t){return Ye("MuiDialog",t)}const jg=Ze("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),J2=S.createContext({}),HL=ye(V2,{name:"MuiDialog",slot:"Backdrop",overrides:(t,e)=>e.backdrop})({zIndex:-1}),UL=t=>{const{classes:e,scroll:r,maxWidth:n,fullWidth:o,fullScreen:a}=t,l={root:["root"],container:["container",`scroll${ge(r)}`],paper:["paper",`paperScroll${ge(r)}`,`paperWidth${ge(String(n))}`,o&&"paperFullWidth",a&&"paperFullScreen"]};return Je(l,FL,e)},VL=ye(Y2,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),WL=ye("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.container,e[`scroll${ge(r.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),qL=ye(Ir,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.paper,e[`scrollPaper${ge(r.scroll)}`],e[`paperWidth${ge(String(r.maxWidth))}`],r.fullWidth&&e.paperFullWidth,r.fullScreen&&e.paperFullScreen]}})(Ge(({theme:t})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:t.breakpoints.unit==="px"?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${jg.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(t.breakpoints.values).filter(e=>e!=="xs").map(e=>({props:{maxWidth:e},style:{maxWidth:`${t.breakpoints.values[e]}${t.breakpoints.unit}`,[`&.${jg.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[e]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${jg.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),GL=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiDialog"}),o=eo(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":l,"aria-labelledby":c,"aria-modal":u=!0,BackdropComponent:f,BackdropProps:h,children:v,className:g,disableEscapeKeyDown:y=!1,fullScreen:w=!1,fullWidth:x=!1,maxWidth:C="sm",onClick:j,onClose:P,open:M,PaperComponent:E=Ir,PaperProps:R={},scroll:I="paper",slots:F={},slotProps:A={},TransitionComponent:H=my,transitionDuration:G=a,TransitionProps:N,...k}=n,q={...n,disableEscapeKeyDown:y,fullScreen:w,fullWidth:x,maxWidth:C,scroll:I},U=UL(q),L=S.useRef(),W=Oe=>{L.current=Oe.target===Oe.currentTarget},K=Oe=>{j&&j(Oe),L.current&&(L.current=null,P&&P(Oe,"backdropClick"))},ee=Pi(c),Z=S.useMemo(()=>({titleId:ee}),[ee]),Q={transition:H,...F},X={transition:N,paper:R,backdrop:h,...A},re={slots:Q,slotProps:X},[ce,Y]=Xe("root",{elementType:VL,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:q,className:Ie(U.root,g),ref:r}),[ne,J]=Xe("backdrop",{elementType:HL,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:q}),[de,Ce]=Xe("paper",{elementType:qL,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:q,className:Ie(U.paper,R.className)}),[me,se]=Xe("container",{elementType:WL,externalForwardedProps:re,ownerState:q,className:U.container}),[De,Ne]=Xe("transition",{elementType:my,externalForwardedProps:re,ownerState:q,additionalProps:{appear:!0,in:M,timeout:G,role:"presentation"}});return d.jsx(ce,{closeAfterTransition:!0,slots:{backdrop:ne},slotProps:{backdrop:{transitionDuration:G,as:f,...J}},disableEscapeKeyDown:y,onClose:P,open:M,onClick:K,...Y,...k,children:d.jsx(De,{...Ne,children:d.jsx(me,{onMouseDown:W,...se,children:d.jsx(de,{as:E,elevation:24,role:"dialog","aria-describedby":l,"aria-labelledby":ee,"aria-modal":u,...Ce,children:d.jsx(J2.Provider,{value:Z,children:v})})})})})});function XL(t){return Ye("MuiDialogActions",t)}Ze("MuiDialogActions",["root","spacing"]);const KL=t=>{const{classes:e,disableSpacing:r}=t;return Je({root:["root",!r&&"spacing"]},XL,e)},QL=ye("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableSpacing&&e.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:t})=>!t.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),YL=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1,...l}=n,c={...n,disableSpacing:a},u=KL(c);return d.jsx(QL,{className:Ie(u.root,o),ownerState:c,ref:r,...l})});function JL(t){return Ye("MuiDialogContent",t)}Ze("MuiDialogContent",["root","dividers"]);function ZL(t){return Ye("MuiDialogTitle",t)}const e6=Ze("MuiDialogTitle",["root"]),t6=t=>{const{classes:e,dividers:r}=t;return Je({root:["root",r&&"dividers"]},JL,e)},r6=ye("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.dividers&&e.dividers]}})(Ge(({theme:t})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${e6.root} + &`]:{paddingTop:0}}}]}))),n6=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiDialogContent"}),{className:o,dividers:a=!1,...l}=n,c={...n,dividers:a},u=t6(c);return d.jsx(r6,{className:Ie(u.root,o),ownerState:c,ref:r,...l})}),o6=t=>{const{classes:e}=t;return Je({root:["root"]},ZL,e)},i6=ye(Ee,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),a6=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiDialogTitle"}),{className:o,id:a,...l}=n,c=n,u=o6(c),{titleId:f=a}=S.useContext(J2);return d.jsx(i6,{component:"h2",className:Ie(u.root,o),ownerState:c,ref:r,variant:"h6",id:a??f,...l})}),Cw=Ze("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),s6=t=>{const{classes:e,disableUnderline:r,startAdornment:n,endAdornment:o,size:a,hiddenLabel:l,multiline:c}=t,u={root:["root",!r&&"underline",n&&"adornedStart",o&&"adornedEnd",a==="small"&&`size${ge(a)}`,l&&"hiddenLabel",c&&"multiline"],input:["input"]},f=Je(u,u_,e);return{...e,...f}},l6=ye(dh,{shouldForwardProp:t=>to(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...ch(t,e),!r.disableUnderline&&e.underline]}})(Ge(({theme:t})=>{const e=t.palette.mode==="light",r=e?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=e?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=e?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n}},[`&.${mo.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n},[`&.${mo.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:l})=>!l.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${mo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${mo.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?t.alpha(t.vars.palette.common.onBackground,t.vars.opacity.inputUnderline):r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${mo.disabled}, .${mo.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${mo.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(Zt()).map(([l])=>{var c;return{props:{disableUnderline:!1,color:l},style:{"&::after":{borderBottom:`2px solid ${(c=(t.vars||t).palette[l])==null?void 0:c.main}`}}}}),{props:({ownerState:l})=>l.startAdornment,style:{paddingLeft:12}},{props:({ownerState:l})=>l.endAdornment,style:{paddingRight:12}},{props:({ownerState:l})=>l.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:l,size:c})=>l.multiline&&c==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel&&l.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),c6=ye(ph,{name:"MuiFilledInput",slot:"Input",overridesResolver:uh})(Ge(({theme:t})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),M0=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:a={},componentsProps:l,fullWidth:c=!1,hiddenLabel:u,inputComponent:f="input",multiline:h=!1,slotProps:v,slots:g={},type:y="text",...w}=n,x={...n,disableUnderline:o,fullWidth:c,inputComponent:f,multiline:h,type:y},C=s6(n),j={root:{ownerState:x},input:{ownerState:x}},P=v??l?en(j,v??l):j,M=g.root??a.Root??l6,E=g.input??a.Input??c6;return d.jsx(fh,{slots:{root:M,input:E},slotProps:P,fullWidth:c,inputComponent:f,multiline:h,ref:r,type:y,...w,classes:C})});M0.muiName="Input";function u6(t){return Ye("MuiFormControl",t)}Ze("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const d6=t=>{const{classes:e,margin:r,fullWidth:n}=t,o={root:["root",r!=="none"&&`margin${ge(r)}`,n&&"fullWidth"]};return Je(o,u6,e)},p6=ye("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`margin${ge(r.margin)}`],r.fullWidth&&e.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),za=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiFormControl"}),{children:o,className:a,color:l="primary",component:c="div",disabled:u=!1,error:f=!1,focused:h,fullWidth:v=!1,hiddenLabel:g=!1,margin:y="none",required:w=!1,size:x="medium",variant:C="outlined",...j}=n,P={...n,color:l,component:c,disabled:u,error:f,fullWidth:v,hiddenLabel:g,margin:y,required:w,size:x,variant:C},M=d6(P),[E,R]=S.useState(()=>{let L=!1;return o&&S.Children.forEach(o,W=>{if(!rf(W,["Input","Select"]))return;const K=rf(W,["Select"])?W.props.input:W;K&&i_(K.props)&&(L=!0)}),L}),[I,F]=S.useState(()=>{let L=!1;return o&&S.Children.forEach(o,W=>{rf(W,["Input","Select"])&&(Cf(W.props,!0)||Cf(W.props.inputProps,!0))&&(L=!0)}),L}),[A,H]=S.useState(!1);u&&A&&H(!1);const G=h!==void 0&&!u?h:A;let N;S.useRef(!1);const k=S.useCallback(()=>{F(!0)},[]),q=S.useCallback(()=>{F(!1)},[]),U=S.useMemo(()=>({adornedStart:E,setAdornedStart:R,color:l,disabled:u,error:f,filled:I,focused:G,fullWidth:v,hiddenLabel:g,size:x,onBlur:()=>{H(!1)},onFocus:()=>{H(!0)},onEmpty:q,onFilled:k,registerEffect:N,required:w,variant:C}),[E,l,u,f,I,G,v,g,N,q,k,w,x,C]);return d.jsx(lh.Provider,{value:U,children:d.jsx(p6,{as:c,ownerState:P,className:Ie(M.root,a),ref:r,...j,children:o})})});function f6(t){return Ye("MuiFormControlLabel",t)}const pu=Ze("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),h6=t=>{const{classes:e,disabled:r,labelPlacement:n,error:o,required:a}=t,l={root:["root",r&&"disabled",`labelPlacement${ge(n)}`,o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return Je(l,f6,e)},m6=ye("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${pu.label}`]:e.label},e.root,e[`labelPlacement${ge(r.labelPlacement)}`]]}})(Ge(({theme:t})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${pu.disabled}`]:{cursor:"default"},[`& .${pu.label}`]:{[`&.${pu.disabled}`]:{color:(t.vars||t).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>e==="start"||e==="top"||e==="bottom",style:{marginLeft:16}}]}))),g6=ye("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Ge(({theme:t})=>({[`&.${pu.error}`]:{color:(t.vars||t).palette.error.main}}))),Z2=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiFormControlLabel"}),{checked:o,className:a,componentsProps:l={},control:c,disabled:u,disableTypography:f,inputRef:h,label:v,labelPlacement:g="end",name:y,onChange:w,required:x,slots:C={},slotProps:j={},value:P,...M}=n,E=aa(),R=u??c.props.disabled??(E==null?void 0:E.disabled),I=x??c.props.required,F={disabled:R,required:I};["checked","name","onChange","value","inputRef"].forEach(L=>{typeof c.props[L]>"u"&&typeof n[L]<"u"&&(F[L]=n[L])});const A=$s({props:n,muiFormControl:E,states:["error"]}),H={...n,disabled:R,labelPlacement:g,required:I,error:A.error},G=h6(H),N={slots:C,slotProps:{...l,...j}},[k,q]=Xe("typography",{elementType:Ee,externalForwardedProps:N,ownerState:H});let U=v;return U!=null&&U.type!==Ee&&!f&&(U=d.jsx(k,{component:"span",...q,className:Ie(G.label,q==null?void 0:q.className),children:U})),d.jsxs(m6,{className:Ie(G.root,a),ownerState:H,ref:r,...M,children:[S.cloneElement(c,F),I?d.jsxs("div",{children:[U,d.jsxs(g6,{ownerState:H,"aria-hidden":!0,className:G.asterisk,children:[" ","*"]})]}):U]})});function y6(t){return Ye("MuiFormHelperText",t)}const Tw=Ze("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Ew;const v6=t=>{const{classes:e,contained:r,size:n,disabled:o,error:a,filled:l,focused:c,required:u}=t,f={root:["root",o&&"disabled",a&&"error",n&&`size${ge(n)}`,r&&"contained",c&&"focused",l&&"filled",u&&"required"]};return Je(f,y6,e)},b6=ye("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size&&e[`size${ge(r.size)}`],r.contained&&e.contained,r.filled&&e.filled]}})(Ge(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Tw.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${Tw.error}`]:{color:(t.vars||t).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),cc=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiFormHelperText"}),{children:o,className:a,component:l="p",disabled:c,error:u,filled:f,focused:h,margin:v,required:g,variant:y,...w}=n,x=aa(),C=$s({props:n,muiFormControl:x,states:["variant","size","disabled","error","filled","focused","required"]}),j={...n,component:l,contained:C.variant==="filled"||C.variant==="outlined",variant:C.variant,size:C.size,disabled:C.disabled,error:C.error,filled:C.filled,focused:C.focused,required:C.required};delete j.ownerState;const P=v6(j);return d.jsx(b6,{as:l,className:Ie(P.root,a),ref:r,...w,ownerState:j,children:o===" "?Ew||(Ew=d.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function x6(t){return Ye("MuiFormLabel",t)}const xu=Ze("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),w6=t=>{const{classes:e,color:r,focused:n,disabled:o,error:a,filled:l,required:c}=t,u={root:["root",`color${ge(r)}`,o&&"disabled",a&&"error",l&&"filled",n&&"focused",c&&"required"],asterisk:["asterisk",a&&"error"]};return Je(u,x6,e)},S6=ye("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color==="secondary"&&e.colorSecondary,r.filled&&e.filled]}})(Ge(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(Zt()).map(([e])=>({props:{color:e},style:{[`&.${xu.focused}`]:{color:(t.vars||t).palette[e].main}}})),{props:{},style:{[`&.${xu.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${xu.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),C6=ye("span",{name:"MuiFormLabel",slot:"Asterisk"})(Ge(({theme:t})=>({[`&.${xu.error}`]:{color:(t.vars||t).palette.error.main}}))),T6=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiFormLabel"}),{children:o,className:a,color:l,component:c="label",disabled:u,error:f,filled:h,focused:v,required:g,...y}=n,w=aa(),x=$s({props:n,muiFormControl:w,states:["color","required","focused","disabled","error","filled"]}),C={...n,color:x.color||"primary",component:c,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required},j=w6(C);return d.jsxs(S6,{as:c,ownerState:C,className:Ie(j.root,a),ref:r,...y,children:[o,x.required&&d.jsxs(C6,{ownerState:C,"aria-hidden":!0,className:j.asterisk,children:[" ","*"]})]})}),Ln=TM({createStyledComponent:ye("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.container&&e.container]}}),componentName:"MuiGrid",useThemeProps:t=>nt({props:t,name:"MuiGrid"}),useTheme:eo});function gy(t){return`scale(${t}, ${t**2})`}const E6={entering:{opacity:1,transform:gy(1)},entered:{opacity:1,transform:"none"}},Mg=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Bu=S.forwardRef(function(e,r){const{addEndListener:n,appear:o=!0,children:a,easing:l,in:c,onEnter:u,onEntered:f,onEntering:h,onExit:v,onExited:g,onExiting:y,style:w,timeout:x="auto",TransitionComponent:C=oi,...j}=e,P=_a(),M=S.useRef(),E=eo(),R=S.useRef(null),I=Rr(R,Ns(a),r),F=L=>W=>{if(L){const K=R.current;W===void 0?L(K):L(K,W)}},A=F(h),H=F((L,W)=>{j2(L);const{duration:K,delay:ee,easing:Z}=$l({style:w,timeout:x,easing:l},{mode:"enter"});let Q;x==="auto"?(Q=E.transitions.getAutoHeightDuration(L.clientHeight),M.current=Q):Q=K,L.style.transition=[E.transitions.create("opacity",{duration:Q,delay:ee}),E.transitions.create("transform",{duration:Mg?Q:Q*.666,delay:ee,easing:Z})].join(","),u&&u(L,W)}),G=F(f),N=F(y),k=F(L=>{const{duration:W,delay:K,easing:ee}=$l({style:w,timeout:x,easing:l},{mode:"exit"});let Z;x==="auto"?(Z=E.transitions.getAutoHeightDuration(L.clientHeight),M.current=Z):Z=W,L.style.transition=[E.transitions.create("opacity",{duration:Z,delay:K}),E.transitions.create("transform",{duration:Mg?Z:Z*.666,delay:Mg?K:K||Z*.333,easing:ee})].join(","),L.style.opacity=0,L.style.transform=gy(.75),v&&v(L)}),q=F(g),U=L=>{x==="auto"&&P.start(M.current||0,L),n&&n(R.current,L)};return d.jsx(C,{appear:o,in:c,nodeRef:R,onEnter:H,onEntered:G,onEntering:A,onExit:k,onExited:q,onExiting:N,addEndListener:U,timeout:x==="auto"?null:x,...j,children:(L,{ownerState:W,...K})=>S.cloneElement(a,{style:{opacity:0,transform:gy(.75),visibility:L==="exited"&&!c?"hidden":void 0,...E6[L],...w,...a.props.style},ref:I,...K})})});Bu&&(Bu.muiSupportAuto=!0);const k6=t=>{const{classes:e,disableUnderline:r}=t,o=Je({root:["root",!r&&"underline"],input:["input"]},l_,e);return{...e,...o}},P6=ye(dh,{shouldForwardProp:t=>to(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...ch(t,e),!r.disableUnderline&&e.underline]}})(Ge(({theme:t})=>{let r=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r=t.alpha(t.vars.palette.common.onBackground,t.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ia.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ia.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ia.disabled}, .${Ia.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ia.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(Zt()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[n].main}`}}}))]}})),j6=ye(ph,{name:"MuiInput",slot:"Input",overridesResolver:uh})({}),hh=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiInput"}),{disableUnderline:o=!1,components:a={},componentsProps:l,fullWidth:c=!1,inputComponent:u="input",multiline:f=!1,slotProps:h,slots:v={},type:g="text",...y}=n,w=k6(n),C={root:{ownerState:{disableUnderline:o}}},j=h??l?en(h??l,C):C,P=v.root??a.Root??P6,M=v.input??a.Input??j6;return d.jsx(fh,{slots:{root:P,input:M},slotProps:j,fullWidth:c,inputComponent:u,multiline:f,ref:r,type:g,...y,classes:w})});hh.muiName="Input";function M6(t){return Ye("MuiInputAdornment",t)}const kw=Ze("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Pw;const R6=(t,e)=>{const{ownerState:r}=t;return[e.root,e[`position${ge(r.position)}`],r.disablePointerEvents===!0&&e.disablePointerEvents,e[r.variant]]},I6=t=>{const{classes:e,disablePointerEvents:r,hiddenLabel:n,position:o,size:a,variant:l}=t,c={root:["root",r&&"disablePointerEvents",o&&`position${ge(o)}`,l,n&&"hiddenLabel",a&&`size${ge(a)}`]};return Je(c,M6,e)},A6=ye("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:R6})(Ge(({theme:t})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${kw.positionStart}&:not(.${kw.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Ef=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiInputAdornment"}),{children:o,className:a,component:l="div",disablePointerEvents:c=!1,disableTypography:u=!1,position:f,variant:h,...v}=n,g=aa()||{};let y=h;h&&g.variant,g&&!y&&(y=g.variant);const w={...n,hiddenLabel:g.hiddenLabel,size:g.size,disablePointerEvents:c,position:f,variant:y},x=I6(w);return d.jsx(lh.Provider,{value:null,children:d.jsx(A6,{as:l,ownerState:w,className:Ie(x.root,a),ref:r,...v,children:typeof o=="string"&&!u?d.jsx(Ee,{color:"textSecondary",children:o}):d.jsxs(S.Fragment,{children:[f==="start"?Pw||(Pw=d.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});function _6(t){return Ye("MuiInputLabel",t)}Ze("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const L6=t=>{const{classes:e,formControl:r,size:n,shrink:o,disableAnimation:a,variant:l,required:c}=t,u={root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&n!=="medium"&&`size${ge(n)}`,l],asterisk:[c&&"asterisk"]},f=Je(u,_6,e);return{...e,...f}},O6=ye(T6,{shouldForwardProp:t=>to(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${xu.asterisk}`]:e.asterisk},e.root,r.formControl&&e.formControl,r.size==="small"&&e.sizeSmall,r.shrink&&e.shrink,!r.disableAnimation&&e.animated,r.focused&&e.focused,e[r.variant]]}})(Ge(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:r,size:n})=>e==="filled"&&r.shrink&&n==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Vl=S.forwardRef(function(e,r){const n=nt({name:"MuiInputLabel",props:e}),{disableAnimation:o=!1,margin:a,shrink:l,variant:c,className:u,...f}=n,h=aa();let v=l;typeof v>"u"&&h&&(v=h.filled||h.focused||h.adornedStart);const g=$s({props:n,muiFormControl:h,states:["size","variant","required","focused"]}),y={...n,disableAnimation:o,formControl:h,shrink:v,size:g.size,variant:g.variant,required:g.required,focused:g.focused},w=L6(y);return d.jsx(O6,{"data-shrink":v,ref:r,className:Ie(w.root,u),...f,ownerState:y,classes:w})});function N6(t){return Ye("MuiLinearProgress",t)}Ze("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const yy=4,vy=Li`
220
- 0% {
221
- left: -35%;
222
- right: 100%;
223
- }
224
-
225
- 60% {
226
- left: 100%;
227
- right: -90%;
228
- }
229
-
230
- 100% {
231
- left: 100%;
232
- right: -90%;
233
- }
234
- `,$6=typeof vy!="string"?Xa`
235
- animation: ${vy} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
236
- `:null,by=Li`
237
- 0% {
238
- left: -200%;
239
- right: 100%;
240
- }
241
-
242
- 60% {
243
- left: 107%;
244
- right: -8%;
245
- }
246
-
247
- 100% {
248
- left: 107%;
249
- right: -8%;
250
- }
251
- `,B6=typeof by!="string"?Xa`
252
- animation: ${by} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
253
- `:null,xy=Li`
254
- 0% {
255
- opacity: 1;
256
- background-position: 0 -23px;
257
- }
258
-
259
- 60% {
260
- opacity: 0;
261
- background-position: 0 -23px;
262
- }
263
-
264
- 100% {
265
- opacity: 1;
266
- background-position: -200px -23px;
267
- }
268
- `,z6=typeof xy!="string"?Xa`
269
- animation: ${xy} 3s infinite linear;
270
- `:null,D6=t=>{const{classes:e,variant:r,color:n}=t,o={root:["root",`color${ge(n)}`,r],dashed:["dashed",`dashedColor${ge(n)}`],bar1:["bar","bar1",`barColor${ge(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",r!=="buffer"&&`barColor${ge(n)}`,r==="buffer"&&`color${ge(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return Je(o,N6,e)},R0=(t,e)=>t.vars?t.vars.palette.LinearProgress[`${e}Bg`]:t.palette.mode==="light"?t.lighten(t.palette[e].main,.62):t.darken(t.palette[e].main,.5),F6=ye("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`color${ge(r.color)}`],e[r.variant]]}})(Ge(({theme:t})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(t.palette).filter(Zt()).map(([e])=>({props:{color:e},style:{backgroundColor:R0(t,e)}})),{props:({ownerState:e})=>e.color==="inherit"&&e.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),H6=ye("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.dashed,e[`dashedColor${ge(r.color)}`]]}})(Ge(({theme:t})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(t.palette).filter(Zt()).map(([e])=>{const r=R0(t,e);return{props:{color:e},style:{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`}}})]})),z6||{animation:`${xy} 3s infinite linear`}),U6=ye("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e.bar1,e[`barColor${ge(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar1Indeterminate,r.variant==="determinate"&&e.bar1Determinate,r.variant==="buffer"&&e.bar1Buffer]}})(Ge(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(t.palette).filter(Zt()).map(([e])=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main}})),{props:{variant:"determinate"},style:{transition:`transform .${yy}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${yy}s linear`}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:$6||{animation:`${vy} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),V6=ye("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e.bar2,e[`barColor${ge(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar2Indeterminate,r.variant==="buffer"&&e.bar2Buffer]}})(Ge(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(t.palette).filter(Zt()).map(([e])=>({props:{color:e},style:{"--LinearProgressBar2-barColor":(t.vars||t).palette[e].main}})),{props:({ownerState:e})=>e.variant!=="buffer"&&e.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:e})=>e.variant!=="buffer"&&e.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(t.palette).filter(Zt()).map(([e])=>({props:{color:e,variant:"buffer"},style:{backgroundColor:R0(t,e),transition:`transform .${yy}s linear`}})),{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:B6||{animation:`${by} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),I0=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiLinearProgress"}),{className:o,color:a="primary",value:l,valueBuffer:c,variant:u="indeterminate",...f}=n,h={...n,color:a,variant:u},v=D6(h),g=Ka(),y={},w={bar1:{},bar2:{}};if((u==="determinate"||u==="buffer")&&l!==void 0){y["aria-valuenow"]=Math.round(l),y["aria-valuemin"]=0,y["aria-valuemax"]=100;let x=l-100;g&&(x=-x),w.bar1.transform=`translateX(${x}%)`}if(u==="buffer"&&c!==void 0){let x=(c||0)-100;g&&(x=-x),w.bar2.transform=`translateX(${x}%)`}return d.jsxs(F6,{className:Ie(v.root,o),ownerState:h,role:"progressbar",...y,ref:r,...f,children:[u==="buffer"?d.jsx(H6,{className:v.dashed,ownerState:h}):null,d.jsx(U6,{className:v.bar1,ownerState:h,style:w.bar1}),u==="determinate"?null:d.jsx(V6,{className:v.bar2,ownerState:h,style:w.bar2})]})});function W6(t){return Ye("MuiLink",t)}const q6=Ze("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),G6=({theme:t,ownerState:e})=>{const r=e.color;if("colorSpace"in t&&t.colorSpace){const a=Si(t,`palette.${r}.main`)||Si(t,`palette.${r}`)||e.color;return t.alpha(a,.4)}const n=Si(t,`palette.${r}.main`,!1)||Si(t,`palette.${r}`,!1)||e.color,o=Si(t,`palette.${r}.mainChannel`)||Si(t,`palette.${r}Channel`);return"vars"in t&&o?`rgba(${o} / 0.4)`:Lu(n,.4)},jw={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},X6=t=>{const{classes:e,component:r,focusVisible:n,underline:o}=t,a={root:["root",`underline${ge(o)}`,r==="button"&&"button",n&&"focusVisible"]};return Je(a,W6,e)},K6=ye(Ee,{name:"MuiLink",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`underline${ge(r.underline)}`],r.component==="button"&&e.button]}})(Ge(({theme:t})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:e,ownerState:r})=>e==="always"&&r.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},{props:({underline:e,ownerState:r})=>e==="always"&&r.color==="inherit",style:t.colorSpace?{textDecorationColor:t.alpha("currentColor",.4)}:null},...Object.entries(t.palette).filter(Zt()).map(([e])=>({props:{underline:"always",color:e},style:{"--Link-underlineColor":t.alpha((t.vars||t).palette[e].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":t.alpha((t.vars||t).palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":t.alpha((t.vars||t).palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(t.vars||t).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${q6.focusVisible}`]:{outline:"auto"}}}]}))),Q6=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiLink"}),o=eo(),{className:a,color:l="primary",component:c="a",onBlur:u,onFocus:f,TypographyClasses:h,underline:v="always",variant:g="inherit",sx:y,...w}=n,[x,C]=S.useState(!1),j=R=>{Bl(R.target)||C(!1),u&&u(R)},P=R=>{Bl(R.target)&&C(!0),f&&f(R)},M={...n,color:l,component:c,focusVisible:x,underline:v,variant:g},E=X6(M);return d.jsx(K6,{color:l,className:Ie(E.root,a),classes:h,component:c,onBlur:j,onFocus:P,ref:r,ownerState:M,variant:g,...w,sx:[...jw[l]===void 0?[{color:l}]:[],...Array.isArray(y)?y:[y]],style:{...w.style,...v==="always"&&l!=="inherit"&&!jw[l]&&{"--Link-underlineColor":G6({theme:o,ownerState:M})}}})}),zu=S.createContext({});function Y6(t){return Ye("MuiList",t)}Ze("MuiList",["root","padding","dense","subheader"]);const J6=t=>{const{classes:e,disablePadding:r,dense:n,subheader:o}=t;return Je({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Y6,e)},Z6=ye("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disablePadding&&e.padding,r.dense&&e.dense,r.subheader&&e.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),eO=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiList"}),{children:o,className:a,component:l="ul",dense:c=!1,disablePadding:u=!1,subheader:f,...h}=n,v=S.useMemo(()=>({dense:c}),[c]),g={...n,component:l,dense:c,disablePadding:u},y=J6(g);return d.jsx(zu.Provider,{value:v,children:d.jsxs(Z6,{as:l,className:Ie(y.root,a),ref:r,ownerState:g,...h,children:[f,o]})})});function tO(t){return Ye("MuiListItemIcon",t)}const Mw=Ze("MuiListItemIcon",["root","alignItemsFlexStart"]),rO=t=>{const{alignItems:e,classes:r}=t;return Je({root:["root",e==="flex-start"&&"alignItemsFlexStart"]},tO,r)},nO=ye("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.alignItems==="flex-start"&&e.alignItemsFlexStart]}})(Ge(({theme:t})=>({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),of=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiListItemIcon"}),{className:o,...a}=n,l=S.useContext(zu),c={...n,alignItems:l.alignItems},u=rO(c);return d.jsx(nO,{className:Ie(u.root,o),ownerState:c,ref:r,...a})});function oO(t){return Ye("MuiListItemText",t)}const Pl=Ze("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),iO=t=>{const{classes:e,inset:r,primary:n,secondary:o,dense:a}=t;return Je({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},oO,e)},aO=ye("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Pl.primary}`]:e.primary},{[`& .${Pl.secondary}`]:e.secondary},e.root,r.inset&&e.inset,r.primary&&r.secondary&&e.multiline,r.dense&&e.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${K1.root}:where(& .${Pl.primary})`]:{display:"block"},[`.${K1.root}:where(& .${Pl.secondary})`]:{display:"block"},variants:[{props:({ownerState:t})=>t.primary&&t.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:56}}]}),af=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiListItemText"}),{children:o,className:a,disableTypography:l=!1,inset:c=!1,primary:u,primaryTypographyProps:f,secondary:h,secondaryTypographyProps:v,slots:g={},slotProps:y={},...w}=n,{dense:x}=S.useContext(zu);let C=u??o,j=h;const P={...n,disableTypography:l,inset:c,primary:!!C,secondary:!!j,dense:x},M=iO(P),E={slots:g,slotProps:{primary:f,secondary:v,...y}},[R,I]=Xe("root",{className:Ie(M.root,a),elementType:aO,externalForwardedProps:{...E,...w},ownerState:P,ref:r}),[F,A]=Xe("primary",{className:M.primary,elementType:Ee,externalForwardedProps:E,ownerState:P}),[H,G]=Xe("secondary",{className:M.secondary,elementType:Ee,externalForwardedProps:E,ownerState:P});return C!=null&&C.type!==Ee&&!l&&(C=d.jsx(F,{variant:x?"body2":"body1",component:A!=null&&A.variant?void 0:"span",...A,children:C})),j!=null&&j.type!==Ee&&!l&&(j=d.jsx(H,{variant:"body2",color:"textSecondary",...G,children:j})),d.jsxs(R,{...I,children:[C,j]})});function Rg(t,e,r){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:r?null:t.firstChild}function Rw(t,e,r){return t===e?r?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:r?null:t.lastChild}function eT(t,e){if(e===void 0)return!0;let r=t.innerText;return r===void 0&&(r=t.textContent),r=r.trim().toLowerCase(),r.length===0?!1:e.repeating?r[0]===e.keys[0]:r.startsWith(e.keys.join(""))}function Jc(t,e,r,n,o,a){let l=!1,c=o(t,e,e?r:!1);for(;c;){if(c===t.firstChild){if(l)return!1;l=!0}const u=n?!1:c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||!eT(c,a)||u)c=o(t,c,r);else return c.focus(),!0}return!1}const sO=S.forwardRef(function(e,r){const{actions:n,autoFocus:o=!1,autoFocusItem:a=!1,children:l,className:c,disabledItemsFocusable:u=!1,disableListWrap:f=!1,onKeyDown:h,variant:v="selectedMenu",...g}=e,y=S.useRef(null),w=S.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Qn(()=>{o&&y.current.focus()},[o]),S.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(M,{direction:E})=>{const R=!y.current.style.width;if(M.clientHeight<y.current.clientHeight&&R){const I=`${Q2(ei(M))}px`;y.current.style[E==="rtl"?"paddingLeft":"paddingRight"]=I,y.current.style.width=`calc(100% + ${I})`}return y.current}}),[]);const x=M=>{const E=y.current,R=M.key;if(M.ctrlKey||M.metaKey||M.altKey){h&&h(M);return}const F=kl(dn(E));if(R==="ArrowDown")M.preventDefault(),Jc(E,F,f,u,Rg);else if(R==="ArrowUp")M.preventDefault(),Jc(E,F,f,u,Rw);else if(R==="Home")M.preventDefault(),Jc(E,null,f,u,Rg);else if(R==="End")M.preventDefault(),Jc(E,null,f,u,Rw);else if(R.length===1){const A=w.current,H=R.toLowerCase(),G=performance.now();A.keys.length>0&&(G-A.lastTime>500?(A.keys=[],A.repeating=!0,A.previousKeyMatched=!0):A.repeating&&H!==A.keys[0]&&(A.repeating=!1)),A.lastTime=G,A.keys.push(H);const N=F&&!A.repeating&&eT(F,A);A.previousKeyMatched&&(N||Jc(E,F,!1,u,Rg,A))?M.preventDefault():A.previousKeyMatched=!1}h&&h(M)},C=Rr(y,r);let j=-1;S.Children.forEach(l,(M,E)=>{if(!S.isValidElement(M)){j===E&&(j+=1,j>=l.length&&(j=-1));return}M.props.disabled||(v==="selectedMenu"&&M.props.selected||j===-1)&&(j=E),j===E&&(M.props.disabled||M.props.muiSkipListHighlight||M.type.muiSkipListHighlight)&&(j+=1,j>=l.length&&(j=-1))});const P=S.Children.map(l,(M,E)=>{if(E===j){const R={};return a&&(R.autoFocus=!0),M.props.tabIndex===void 0&&v==="selectedMenu"&&(R.tabIndex=0),S.cloneElement(M,R)}return M});return d.jsx(eO,{role:"menu",ref:C,className:c,onKeyDown:x,tabIndex:o?0:-1,...g,children:P})});function lO(t){return Ye("MuiPopover",t)}Ze("MuiPopover",["root","paper"]);function Iw(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.height/2:e==="bottom"&&(r=t.height),r}function Aw(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.width/2:e==="right"&&(r=t.width),r}function _w(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function Rp(t){return typeof t=="function"?t():t}const cO=t=>{const{classes:e}=t;return Je({root:["root"],paper:["paper"]},lO,e)},uO=ye(Y2,{name:"MuiPopover",slot:"Root"})({}),tT=ye(Ir,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),dO=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiPopover"}),{action:o,anchorEl:a,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:f,className:h,container:v,elevation:g=8,marginThreshold:y=16,open:w,PaperProps:x={},slots:C={},slotProps:j={},transformOrigin:P={vertical:"top",horizontal:"left"},TransitionComponent:M,transitionDuration:E="auto",TransitionProps:R={},disableScrollLock:I=!1,...F}=n,A=S.useRef(),H={...n,anchorOrigin:l,anchorReference:u,elevation:g,marginThreshold:y,transformOrigin:P,TransitionComponent:M,transitionDuration:E,TransitionProps:R},G=cO(H),N=S.useCallback(()=>{if(u==="anchorPosition")return c;const se=Rp(a),Ne=(se&&se.nodeType===1?se:dn(A.current).body).getBoundingClientRect();return{top:Ne.top+Iw(Ne,l.vertical),left:Ne.left+Aw(Ne,l.horizontal)}},[a,l.horizontal,l.vertical,c,u]),k=S.useCallback(se=>({vertical:Iw(se,P.vertical),horizontal:Aw(se,P.horizontal)}),[P.horizontal,P.vertical]),q=S.useCallback(se=>{const De={width:se.offsetWidth,height:se.offsetHeight},Ne=k(De);if(u==="none")return{top:null,left:null,transformOrigin:_w(Ne)};const Oe=N();let Be=Oe.top-Ne.vertical,_e=Oe.left-Ne.horizontal;const Ke=Be+De.height,pt=_e+De.width,je=ei(Rp(a)),ht=je.innerHeight-y,We=je.innerWidth-y;if(y!==null&&Be<y){const ft=Be-y;Be-=ft,Ne.vertical+=ft}else if(y!==null&&Ke>ht){const ft=Ke-ht;Be-=ft,Ne.vertical+=ft}if(y!==null&&_e<y){const ft=_e-y;_e-=ft,Ne.horizontal+=ft}else if(pt>We){const ft=pt-We;_e-=ft,Ne.horizontal+=ft}return{top:`${Math.round(Be)}px`,left:`${Math.round(_e)}px`,transformOrigin:_w(Ne)}},[a,u,N,k,y]),[U,L]=S.useState(w),W=S.useCallback(()=>{const se=A.current;if(!se)return;const De=q(se);De.top!==null&&se.style.setProperty("top",De.top),De.left!==null&&(se.style.left=De.left),se.style.transformOrigin=De.transformOrigin,L(!0)},[q]);S.useEffect(()=>(I&&window.addEventListener("scroll",W),()=>window.removeEventListener("scroll",W)),[a,I,W]);const K=()=>{W()},ee=()=>{L(!1)};S.useEffect(()=>{w&&W()}),S.useImperativeHandle(o,()=>w?{updatePosition:()=>{W()}}:null,[w,W]),S.useEffect(()=>{if(!w)return;const se=oh(()=>{W()}),De=ei(Rp(a));return De.addEventListener("resize",se),()=>{se.clear(),De.removeEventListener("resize",se)}},[a,w,W]);let Z=E;const Q={slots:{transition:M,...C},slotProps:{transition:R,paper:x,...j}},[X,re]=Xe("transition",{elementType:Bu,externalForwardedProps:Q,ownerState:H,getSlotProps:se=>({...se,onEntering:(De,Ne)=>{var Oe;(Oe=se.onEntering)==null||Oe.call(se,De,Ne),K()},onExited:De=>{var Ne;(Ne=se.onExited)==null||Ne.call(se,De),ee()}}),additionalProps:{appear:!0,in:w}});E==="auto"&&!X.muiSupportAuto&&(Z=void 0);const ce=v||(a?dn(Rp(a)).body:void 0),[Y,{slots:ne,slotProps:J,...de}]=Xe("root",{ref:r,elementType:uO,externalForwardedProps:{...Q,...F},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:C.backdrop},slotProps:{backdrop:T2(typeof j.backdrop=="function"?j.backdrop(H):j.backdrop,{invisible:!0})},container:ce,open:w},ownerState:H,className:Ie(G.root,h)}),[Ce,me]=Xe("paper",{ref:A,className:G.paper,elementType:tT,externalForwardedProps:Q,shouldForwardComponentProp:!0,additionalProps:{elevation:g,style:U?void 0:{opacity:0}},ownerState:H});return d.jsx(Y,{...de,...!vf(Y)&&{slots:ne,slotProps:J,disableScrollLock:I},children:d.jsx(X,{...re,timeout:Z,children:d.jsx(Ce,{...me,children:f})})})});function pO(t){return Ye("MuiMenu",t)}Ze("MuiMenu",["root","paper","list"]);const fO={vertical:"top",horizontal:"right"},hO={vertical:"top",horizontal:"left"},mO=t=>{const{classes:e}=t;return Je({root:["root"],paper:["paper"],list:["list"]},pO,e)},gO=ye(dO,{shouldForwardProp:t=>to(t)||t==="classes",name:"MuiMenu",slot:"Root"})({}),yO=ye(tT,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),vO=ye(sO,{name:"MuiMenu",slot:"List"})({outline:0}),mh=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:f,open:h,PaperProps:v={},PopoverClasses:g,transitionDuration:y="auto",TransitionProps:{onEntering:w,...x}={},variant:C="selectedMenu",slots:j={},slotProps:P={},...M}=n,E=Ka(),R={...n,autoFocus:o,disableAutoFocusItem:c,MenuListProps:u,onEntering:w,PaperProps:v,transitionDuration:y,TransitionProps:x,variant:C},I=mO(R),F=o&&!c&&h,A=S.useRef(null),H=(Z,Q)=>{A.current&&A.current.adjustStyleForScrollbar(Z,{direction:E?"rtl":"ltr"}),w&&w(Z,Q)},G=Z=>{Z.key==="Tab"&&(Z.preventDefault(),f&&f(Z,"tabKeyDown"))};let N=-1;S.Children.map(a,(Z,Q)=>{S.isValidElement(Z)&&(Z.props.disabled||(C==="selectedMenu"&&Z.props.selected||N===-1)&&(N=Q))});const k={slots:j,slotProps:{list:u,transition:x,paper:v,...P}},q=Ul({elementType:j.root,externalSlotProps:P.root,ownerState:R,className:[I.root,l]}),[U,L]=Xe("paper",{className:I.paper,elementType:yO,externalForwardedProps:k,shouldForwardComponentProp:!0,ownerState:R}),[W,K]=Xe("list",{className:Ie(I.list,u.className),elementType:vO,shouldForwardComponentProp:!0,externalForwardedProps:k,getSlotProps:Z=>({...Z,onKeyDown:Q=>{var X;G(Q),(X=Z.onKeyDown)==null||X.call(Z,Q)}}),ownerState:R}),ee=typeof k.slotProps.transition=="function"?k.slotProps.transition(R):k.slotProps.transition;return d.jsx(gO,{onClose:f,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?fO:hO,slots:{root:j.root,paper:U,backdrop:j.backdrop,...j.transition&&{transition:j.transition}},slotProps:{root:q,paper:L,backdrop:typeof P.backdrop=="function"?P.backdrop(R):P.backdrop,transition:{...ee,onEntering:(...Z)=>{var Q;H(...Z),(Q=ee==null?void 0:ee.onEntering)==null||Q.call(ee,...Z)}}},open:h,ref:r,transitionDuration:y,ownerState:R,...M,classes:g,children:d.jsx(W,{actions:A,autoFocus:o&&(N===-1||c),autoFocusItem:F,variant:C,...K,children:a})})});function bO(t){return Ye("MuiMenuItem",t)}const Zc=Ze("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),xO=(t,e)=>{const{ownerState:r}=t;return[e.root,r.dense&&e.dense,r.divider&&e.divider,!r.disableGutters&&e.gutters]},wO=t=>{const{disabled:e,dense:r,divider:n,disableGutters:o,selected:a,classes:l}=t,u=Je({root:["root",r&&"dense",e&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},bO,l);return{...l,...u}},SO=ye(ti,{shouldForwardProp:t=>to(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:xO})(Ge(({theme:t})=>({...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Zc.selected}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity),[`&.${Zc.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}},[`&.${Zc.selected}:hover`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity)}},[`&.${Zc.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Zc.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${Cw.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${Cw.inset}`]:{marginLeft:52},[`& .${Pl.root}`]:{marginTop:0,marginBottom:0},[`& .${Pl.inset}`]:{paddingLeft:36},[`& .${Mw.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,[`& .${Mw.root} svg`]:{fontSize:"1.25rem"}}}]}))),cn=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:l=!1,divider:c=!1,disableGutters:u=!1,focusVisibleClassName:f,role:h="menuitem",tabIndex:v,className:g,...y}=n,w=S.useContext(zu),x=S.useMemo(()=>({dense:l||w.dense||!1,disableGutters:u}),[w.dense,l,u]),C=S.useRef(null);Qn(()=>{o&&C.current&&C.current.focus()},[o]);const j={...n,dense:x.dense,divider:c,disableGutters:u},P=wO(n),M=Rr(C,r);let E;return n.disabled||(E=v!==void 0?v:-1),d.jsx(zu.Provider,{value:x,children:d.jsx(SO,{ref:M,role:h,tabIndex:E,component:a,focusVisibleClassName:Ie(P.focusVisible,f),className:Ie(P.root,g),...y,ownerState:j,classes:P})})});function CO(t){return Ye("MuiNativeSelect",t)}const A0=Ze("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),TO=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:a,error:l}=t,c={select:["select",r,n&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${ge(r)}`,a&&"iconOpen",n&&"disabled"]};return Je(c,CO,e)},rT=ye("select",{name:"MuiNativeSelect"})(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${A0.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),EO=ye(rT,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:to,overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.select,e[r.variant],r.error&&e.error,{[`&.${A0.multiple}`]:e.multiple}]}})({}),nT=ye("svg",{name:"MuiNativeSelect"})(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${A0.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),kO=ye(nT,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${ge(r.variant)}`],r.open&&e.iconOpen]}})({}),PO=S.forwardRef(function(e,r){const{className:n,disabled:o,error:a,IconComponent:l,inputRef:c,variant:u="standard",...f}=e,h={...e,disabled:o,variant:u,error:a},v=TO(h);return d.jsxs(S.Fragment,{children:[d.jsx(EO,{ownerState:h,className:Ie(v.select,n),disabled:o,ref:c||r,...f}),e.multiple?null:d.jsx(kO,{as:l,ownerState:h,className:v.icon})]})});var Lw;const jO=ye("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:to})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),MO=ye("legend",{name:"MuiNotchedOutlined",shouldForwardProp:to})(Ge(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function RO(t){const{children:e,classes:r,className:n,label:o,notched:a,...l}=t,c=o!=null&&o!=="",u={...t,notched:a,withLabel:c};return d.jsx(jO,{"aria-hidden":!0,className:n,ownerState:u,...l,children:d.jsx(MO,{ownerState:u,children:c?d.jsx("span",{children:o}):Lw||(Lw=d.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const IO=t=>{const{classes:e}=t,n=Je({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},c_,e);return{...e,...n}},AO=ye(dh,{shouldForwardProp:t=>to(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ch})(Ge(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${Mo.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${Mo.notchedOutline}`]:{borderColor:t.vars?t.alpha(t.vars.palette.common.onBackground,.23):e}},[`&.${Mo.focused} .${Mo.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(Zt()).map(([r])=>({props:{color:r},style:{[`&.${Mo.focused} .${Mo.notchedOutline}`]:{borderColor:(t.vars||t).palette[r].main}}})),{props:{},style:{[`&.${Mo.error} .${Mo.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${Mo.disabled} .${Mo.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),_O=ye(RO,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Ge(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?t.alpha(t.vars.palette.common.onBackground,.23):e}})),LO=ye(ph,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:uh})(Ge(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),_0=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiOutlinedInput"}),{components:o={},fullWidth:a=!1,inputComponent:l="input",label:c,multiline:u=!1,notched:f,slots:h={},slotProps:v={},type:g="text",...y}=n,w=IO(n),x=aa(),C=$s({props:n,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),j={...n,color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:x,fullWidth:a,hiddenLabel:C.hiddenLabel,multiline:u,size:C.size,type:g},P=h.root??o.Root??AO,M=h.input??o.Input??LO,[E,R]=Xe("notchedOutline",{elementType:_O,className:w.notchedOutline,shouldForwardComponentProp:!0,ownerState:j,externalForwardedProps:{slots:h,slotProps:v},additionalProps:{label:c!=null&&c!==""&&C.required?d.jsxs(S.Fragment,{children:[c," ","*"]}):c}});return d.jsx(fh,{slots:{root:P,input:M},slotProps:v,renderSuffix:I=>d.jsx(E,{...R,notched:typeof f<"u"?f:!!(I.startAdornment||I.filled||I.focused)}),fullWidth:a,inputComponent:l,multiline:u,ref:r,type:g,...y,classes:{...w,notchedOutline:null}})});_0.muiName="Input";function OO(t){return Ye("MuiPagination",t)}Ze("MuiPagination",["root","ul","outlined","text"]);function NO(t={}){const{boundaryCount:e=1,componentName:r="usePagination",count:n=1,defaultPage:o=1,disabled:a=!1,hideNextButton:l=!1,hidePrevButton:c=!1,onChange:u,page:f,showFirstButton:h=!1,showLastButton:v=!1,siblingCount:g=1,...y}=t,[w,x]=Na({controlled:f,default:o,name:r,state:"page"}),C=(H,G)=>{f||x(G),u&&u(H,G)},j=(H,G)=>{const N=G-H+1;return Array.from({length:N},(k,q)=>H+q)},P=j(1,Math.min(e,n)),M=j(Math.max(n-e+1,e+1),n),E=Math.max(Math.min(w-g,n-e-g*2-1),e+2),R=Math.min(Math.max(w+g,e+g*2+2),n-e-1),I=[...h?["first"]:[],...c?[]:["previous"],...P,...E>e+2?["start-ellipsis"]:e+1<n-e?[e+1]:[],...j(E,R),...R<n-e-1?["end-ellipsis"]:n-e>e?[n-e]:[],...M,...l?[]:["next"],...v?["last"]:[]],F=H=>{switch(H){case"first":return 1;case"previous":return w-1;case"next":return w+1;case"last":return n;default:return null}};return{items:I.map(H=>typeof H=="number"?{onClick:G=>{C(G,H)},type:"page",page:H,selected:H===w,disabled:a,"aria-current":H===w?"page":void 0}:{onClick:G=>{C(G,F(H))},type:H,page:F(H),selected:!1,disabled:a||!H.includes("ellipsis")&&(H==="next"||H==="last"?w>=n:w<=1)}),...y}}function $O(t){return Ye("MuiPaginationItem",t)}const Rn=Ze("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),oT=Pe(d.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})),iT=Pe(d.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})),BO=Pe(d.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),zO=Pe(d.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),aT=(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`size${ge(r.size)}`],r.variant==="text"&&e[`text${ge(r.color)}`],r.variant==="outlined"&&e[`outlined${ge(r.color)}`],r.shape==="rounded"&&e.rounded,r.type==="page"&&e.page,(r.type==="start-ellipsis"||r.type==="end-ellipsis")&&e.ellipsis,(r.type==="previous"||r.type==="next")&&e.previousNext,(r.type==="first"||r.type==="last")&&e.firstLast]},DO=t=>{const{classes:e,color:r,disabled:n,selected:o,size:a,shape:l,type:c,variant:u}=t,f={root:["root",`size${ge(a)}`,u,l,r!=="standard"&&`color${ge(r)}`,r!=="standard"&&`${u}${ge(r)}`,n&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[c]],icon:["icon"]};return Je(f,$O,e)},FO=ye("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:aT})(Ge(({theme:t})=>({...t.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,height:"auto",[`&.${Rn.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},variants:[{props:{size:"small"},style:{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:t.typography.pxToRem(15)}}]}))),HO=ye(ti,{name:"MuiPaginationItem",slot:"Root",overridesResolver:aT})(Ge(({theme:t})=>({...t.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,[`&.${Rn.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Rn.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},transition:t.transitions.create(["color","background-color"],{duration:t.transitions.duration.short}),"&:hover":{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Rn.selected}`]:{backgroundColor:(t.vars||t).palette.action.selected,"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},[`&.${Rn.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)},[`&.${Rn.disabled}`]:{opacity:1,color:(t.vars||t).palette.action.disabled,backgroundColor:(t.vars||t).palette.action.selected}},variants:[{props:{size:"small"},style:{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:t.typography.pxToRem(15)}},{props:{shape:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:{variant:"outlined"},style:{border:t.vars?`1px solid ${t.alpha(t.vars.palette.common.onBackground,.23)}`:`1px solid ${t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Rn.selected}`]:{[`&.${Rn.disabled}`]:{borderColor:(t.vars||t).palette.action.disabledBackground,color:(t.vars||t).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${Rn.selected}`]:{[`&.${Rn.disabled}`]:{color:(t.vars||t).palette.action.disabled}}}},...Object.entries(t.palette).filter(Zt(["dark","contrastText"])).map(([e])=>({props:{variant:"text",color:e},style:{[`&.${Rn.selected}`]:{color:(t.vars||t).palette[e].contrastText,backgroundColor:(t.vars||t).palette[e].main,"&:hover":{backgroundColor:(t.vars||t).palette[e].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e].main}},[`&.${Rn.focusVisible}`]:{backgroundColor:(t.vars||t).palette[e].dark},[`&.${Rn.disabled}`]:{color:(t.vars||t).palette.action.disabled}}}})),...Object.entries(t.palette).filter(Zt(["light"])).map(([e])=>({props:{variant:"outlined",color:e},style:{[`&.${Rn.selected}`]:{color:(t.vars||t).palette[e].main,border:`1px solid ${t.alpha((t.vars||t).palette[e].main,.5)}`,backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.activatedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,`${(t.vars||t).palette.action.activatedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Rn.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette[e].main,`${(t.vars||t).palette.action.activatedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}}}}))]}))),UO=ye("div",{name:"MuiPaginationItem",slot:"Icon"})(Ge(({theme:t})=>({fontSize:t.typography.pxToRem(20),margin:"0 -8px",variants:[{props:{size:"small"},style:{fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:t.typography.pxToRem(22)}}]}))),VO=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiPaginationItem"}),{className:o,color:a="standard",component:l,components:c={},disabled:u=!1,page:f,selected:h=!1,shape:v="circular",size:g="medium",slots:y={},slotProps:w={},type:x="page",variant:C="text",...j}=n,P={...n,color:a,disabled:u,selected:h,shape:v,size:g,type:x,variant:C},M=Ka(),E=DO(P),R={slots:{previous:y.previous??c.previous,next:y.next??c.next,first:y.first??c.first,last:y.last??c.last},slotProps:w},[I,F]=Xe("previous",{elementType:BO,externalForwardedProps:R,ownerState:P}),[A,H]=Xe("next",{elementType:zO,externalForwardedProps:R,ownerState:P}),[G,N]=Xe("first",{elementType:oT,externalForwardedProps:R,ownerState:P}),[k,q]=Xe("last",{elementType:iT,externalForwardedProps:R,ownerState:P}),U=M?{previous:"next",next:"previous",first:"last",last:"first"}[x]:x,L={previous:I,next:A,first:G,last:k}[U],W={previous:F,next:H,first:N,last:q}[U];return x==="start-ellipsis"||x==="end-ellipsis"?d.jsx(FO,{ref:r,ownerState:P,className:Ie(E.root,o),children:"…"}):d.jsxs(HO,{ref:r,ownerState:P,component:l,disabled:u,className:Ie(E.root,o),...j,children:[x==="page"&&f,L?d.jsx(UO,{...W,className:E.icon,as:L}):null]})}),WO=t=>{const{classes:e,variant:r}=t;return Je({root:["root",r],ul:["ul"]},OO,e)},qO=ye("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant]]}})({}),GO=ye("ul",{name:"MuiPagination",slot:"Ul"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function XO(t,e,r){return t==="page"?`${r?"":"Go to "}page ${e}`:`Go to ${t} page`}const KO=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiPagination"}),{boundaryCount:o=1,className:a,color:l="standard",count:c=1,defaultPage:u=1,disabled:f=!1,getItemAriaLabel:h=XO,hideNextButton:v=!1,hidePrevButton:g=!1,onChange:y,page:w,renderItem:x=G=>d.jsx(VO,{...G}),shape:C="circular",showFirstButton:j=!1,showLastButton:P=!1,siblingCount:M=1,size:E="medium",variant:R="text",...I}=n,{items:F}=NO({...n,componentName:"Pagination"}),A={...n,boundaryCount:o,color:l,count:c,defaultPage:u,disabled:f,getItemAriaLabel:h,hideNextButton:v,hidePrevButton:g,renderItem:x,shape:C,showFirstButton:j,showLastButton:P,siblingCount:M,size:E,variant:R},H=WO(A);return d.jsx(qO,{"aria-label":"pagination navigation",className:Ie(H.root,a),ownerState:A,ref:r,...I,children:d.jsx(GO,{className:H.ul,ownerState:A,children:F.map((G,N)=>d.jsx("li",{children:x({...G,color:l,"aria-label":h(G.type,G.page,G.selected),shape:C,size:E,variant:R})},N))})})});function sT(t){return Ye("MuiSelect",t)}const eu=Ze("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Ow;const QO=ye(rT,{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`&.${eu.select}`]:e.select},{[`&.${eu.select}`]:e[r.variant]},{[`&.${eu.error}`]:e.error},{[`&.${eu.multiple}`]:e.multiple}]}})({[`&.${eu.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),YO=ye(nT,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${ge(r.variant)}`],r.open&&e.iconOpen]}})({}),JO=ye("input",{shouldForwardProp:t=>C2(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Nw(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function ZO(t){return t==null||typeof t=="string"&&!t.trim()}const eN=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:a,error:l}=t,c={select:["select",r,n&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${ge(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Je(c,sT,e)},tN=S.forwardRef(function(e,r){var dr,Fr,on,fn;const{"aria-describedby":n,"aria-label":o,autoFocus:a,autoWidth:l,children:c,className:u,defaultOpen:f,defaultValue:h,disabled:v,displayEmpty:g,error:y=!1,IconComponent:w,inputRef:x,labelId:C,MenuProps:j={},multiple:P,name:M,onBlur:E,onChange:R,onClose:I,onFocus:F,onKeyDown:A,onMouseDown:H,onOpen:G,open:N,readOnly:k,renderValue:q,required:U,SelectDisplayProps:L={},tabIndex:W,type:K,value:ee,variant:Z="standard",...Q}=e,[X,re]=Na({controlled:ee,default:h,name:"Select"}),[ce,Y]=Na({controlled:N,default:f,name:"Select"}),ne=S.useRef(null),J=S.useRef(null),[de,Ce]=S.useState(null),{current:me}=S.useRef(N!=null),[se,De]=S.useState(),Ne=Rr(r,x),Oe=S.useCallback(et=>{J.current=et,et&&Ce(et)},[]),Be=de==null?void 0:de.parentNode;S.useImperativeHandle(Ne,()=>({focus:()=>{J.current.focus()},node:ne.current,value:X}),[X]),S.useEffect(()=>{f&&ce&&de&&!me&&(De(l?null:Be.clientWidth),J.current.focus())},[de,l]),S.useEffect(()=>{a&&J.current.focus()},[a]),S.useEffect(()=>{if(!C)return;const et=dn(J.current).getElementById(C);if(et){const St=()=>{getSelection().isCollapsed&&J.current.focus()};return et.addEventListener("click",St),()=>{et.removeEventListener("click",St)}}},[C]);const _e=(et,St)=>{et?G&&G(St):I&&I(St),me||(De(l?null:Be.clientWidth),Y(et))},Ke=et=>{H==null||H(et),et.button===0&&(et.preventDefault(),J.current.focus(),_e(!0,et))},pt=et=>{_e(!1,et)},je=S.Children.toArray(c),ht=et=>{const St=je.find(Vt=>Vt.props.value===et.target.value);St!==void 0&&(re(St.props.value),R&&R(et,St))},We=et=>St=>{let Vt;if(St.currentTarget.hasAttribute("tabindex")){if(P){Vt=Array.isArray(X)?X.slice():[];const br=X.indexOf(et.props.value);br===-1?Vt.push(et.props.value):Vt.splice(br,1)}else Vt=et.props.value;if(et.props.onClick&&et.props.onClick(St),X!==Vt&&(re(Vt),R)){const br=St.nativeEvent||St,Hr=new br.constructor(br.type,br);Object.defineProperty(Hr,"target",{writable:!0,value:{value:Vt,name:M}}),R(Hr,et)}P||_e(!1,St)}},ft=et=>{k||([" ","ArrowUp","ArrowDown","Enter"].includes(et.key)&&(et.preventDefault(),_e(!0,et)),A==null||A(et))},Ue=de!==null&&ce,Gt=et=>{!Ue&&E&&(Object.defineProperty(et,"target",{writable:!0,value:{value:X,name:M}}),E(et))};delete Q["aria-invalid"];let Tt,ue;const be=[];let Te=!1;(Cf({value:X})||g)&&(q?Tt=q(X):Te=!0);const Me=je.map(et=>{if(!S.isValidElement(et))return null;let St;if(P){if(!Array.isArray(X))throw new Error(Zi(2));St=X.some(Vt=>Nw(Vt,et.props.value)),St&&Te&&be.push(et.props.children)}else St=Nw(X,et.props.value),St&&Te&&(ue=et.props.children);return S.cloneElement(et,{"aria-selected":St?"true":"false",onClick:We(et),onKeyUp:Vt=>{Vt.key===" "&&Vt.preventDefault(),et.props.onKeyUp&&et.props.onKeyUp(Vt)},role:"option",selected:St,value:void 0,"data-value":et.props.value})});Te&&(P?be.length===0?Tt=null:Tt=be.reduce((et,St,Vt)=>(et.push(St),Vt<be.length-1&&et.push(", "),et),[]):Tt=ue);let Ve=se;!l&&me&&de&&(Ve=Be.clientWidth);let Qe;typeof W<"u"?Qe=W:Qe=v?null:0;const oe=L.id||(M?`mui-component-select-${M}`:void 0),ke={...e,variant:Z,value:X,open:Ue,error:y},$e=eN(ke),Fe={...j.PaperProps,...typeof((dr=j.slotProps)==null?void 0:dr.paper)=="function"?j.slotProps.paper(ke):(Fr=j.slotProps)==null?void 0:Fr.paper},xt={...j.MenuListProps,...typeof((on=j.slotProps)==null?void 0:on.list)=="function"?j.slotProps.list(ke):(fn=j.slotProps)==null?void 0:fn.list},Xt=Pi();return d.jsxs(S.Fragment,{children:[d.jsx(QO,{as:"div",ref:Oe,tabIndex:Qe,role:"combobox","aria-controls":Ue?Xt:void 0,"aria-disabled":v?"true":void 0,"aria-expanded":Ue?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[C,oe].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":U?"true":void 0,"aria-invalid":y?"true":void 0,onKeyDown:ft,onMouseDown:v||k?null:Ke,onBlur:Gt,onFocus:F,...L,ownerState:ke,className:Ie(L.className,$e.select,u),id:oe,children:ZO(Tt)?Ow||(Ow=d.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Tt}),d.jsx(JO,{"aria-invalid":y,value:Array.isArray(X)?X.join(","):X,name:M,ref:ne,"aria-hidden":!0,onChange:ht,tabIndex:-1,disabled:v,className:$e.nativeInput,autoFocus:a,required:U,...Q,ownerState:ke}),d.jsx(YO,{as:w,className:$e.icon,ownerState:ke}),d.jsx(mh,{id:`menu-${M||""}`,anchorEl:Be,open:Ue,onClose:pt,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...j,slotProps:{...j.slotProps,list:{"aria-labelledby":C,role:"listbox","aria-multiselectable":P?"true":void 0,disableListWrap:!0,id:Xt,...xt},paper:{...Fe,style:{minWidth:Ve,...Fe!=null?Fe.style:null}}},children:Me})]})}),rN=t=>{const{classes:e}=t,n=Je({root:["root"]},sT,e);return{...e,...n}},L0={name:"MuiSelect",slot:"Root",shouldForwardProp:t=>to(t)&&t!=="variant"},nN=ye(hh,L0)(""),oN=ye(_0,L0)(""),iN=ye(M0,L0)(""),Ms=S.forwardRef(function(e,r){const n=nt({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:a,classes:l={},className:c,defaultOpen:u=!1,displayEmpty:f=!1,IconComponent:h=U2,id:v,input:g,inputProps:y,label:w,labelId:x,MenuProps:C,multiple:j=!1,native:P=!1,onClose:M,onOpen:E,open:R,renderValue:I,SelectDisplayProps:F,variant:A="outlined",...H}=n,G=P?PO:tN,N=aa(),k=$s({props:n,muiFormControl:N,states:["variant","error"]}),q=k.variant||A,U={...n,variant:q,classes:l},L=rN(U),{root:W,...K}=L,ee=g||{standard:d.jsx(nN,{ownerState:U}),outlined:d.jsx(oN,{label:w,ownerState:U}),filled:d.jsx(iN,{ownerState:U})}[q],Z=Rr(r,Ns(ee));return d.jsx(S.Fragment,{children:S.cloneElement(ee,{inputComponent:G,inputProps:{children:a,error:k.error,IconComponent:h,variant:q,type:void 0,multiple:j,...P?{id:v}:{autoWidth:o,defaultOpen:u,displayEmpty:f,labelId:x,MenuProps:C,onClose:M,onOpen:E,open:R,renderValue:I,SelectDisplayProps:{id:v,...F}},...y,classes:y?en(K,y.classes):K,...g?g.props.inputProps:{}},...(j&&P||f)&&q==="outlined"?{notched:!0}:{},ref:Z,className:Ie(ee.props.className,c,L.root),...!g&&{variant:q},...H})})});Ms.muiName="Select";function aN(t){return Ye("MuiSkeleton",t)}Ze("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const sN=t=>{const{classes:e,variant:r,animation:n,hasChildren:o,width:a,height:l}=t;return Je({root:["root",r,n,o&&"withChildren",o&&!a&&"fitContent",o&&!l&&"heightAuto"]},aN,e)},wy=Li`
271
- 0% {
272
- opacity: 1;
273
- }
274
-
275
- 50% {
276
- opacity: 0.4;
277
- }
278
-
279
- 100% {
280
- opacity: 1;
281
- }
282
- `,Sy=Li`
283
- 0% {
284
- transform: translateX(-100%);
285
- }
286
-
287
- 50% {
288
- /* +0.5s of delay between each loop */
289
- transform: translateX(100%);
290
- }
291
-
292
- 100% {
293
- transform: translateX(100%);
294
- }
295
- `,lN=typeof wy!="string"?Xa`
296
- animation: ${wy} 2s ease-in-out 0.5s infinite;
297
- `:null,cN=typeof Sy!="string"?Xa`
298
- &::after {
299
- animation: ${Sy} 2s linear 0.5s infinite;
300
- }
301
- `:null,uN=ye("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],r.animation!==!1&&e[r.animation],r.hasChildren&&e.withChildren,r.hasChildren&&!r.width&&e.fitContent,r.hasChildren&&!r.height&&e.heightAuto]}})(Ge(({theme:t})=>{const e=lR(t.shape.borderRadius)||"px",r=cR(t.shape.borderRadius);return{display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:t.alpha(t.palette.text.primary,t.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${e}/${Math.round(r/.6*10)/10}${e}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:({ownerState:n})=>n.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:n})=>n.hasChildren&&!n.width,style:{maxWidth:"fit-content"}},{props:({ownerState:n})=>n.hasChildren&&!n.height,style:{height:"auto"}},{props:{animation:"pulse"},style:lN||{animation:`${wy} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
302
- 90deg,
303
- transparent,
304
- ${(t.vars||t).palette.action.hover},
305
- transparent
306
- )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:cN||{"&::after":{animation:`${Sy} 2s linear 0.5s infinite`}}}]}})),dN=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiSkeleton"}),{animation:o="pulse",className:a,component:l="span",height:c,style:u,variant:f="text",width:h,...v}=n,g={...n,animation:o,component:l,variant:f,hasChildren:!!v.children},y=sN(g);return d.jsx(uN,{as:l,ref:r,className:Ie(y.root,a),ownerState:g,...v,style:{width:h,height:c,...u}})});function pN(t={}){const{autoHideDuration:e=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:a}=t,l=_a();S.useEffect(()=>{if(!o)return;function j(P){P.defaultPrevented||P.key==="Escape"&&(n==null||n(P,"escapeKeyDown"))}return document.addEventListener("keydown",j),()=>{document.removeEventListener("keydown",j)}},[o,n]);const c=qr((j,P)=>{n==null||n(j,P)}),u=qr(j=>{!n||j==null||l.start(j,()=>{c(null,"timeout")})});S.useEffect(()=>(o&&u(e),l.clear),[o,e,u,l]);const f=j=>{n==null||n(j,"clickaway")},h=l.clear,v=S.useCallback(()=>{e!=null&&u(a??e*.5)},[e,a,u]),g=j=>P=>{const M=j.onBlur;M==null||M(P),v()},y=j=>P=>{const M=j.onFocus;M==null||M(P),h()},w=j=>P=>{const M=j.onMouseEnter;M==null||M(P),h()},x=j=>P=>{const M=j.onMouseLeave;M==null||M(P),v()};return S.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",v),window.addEventListener("blur",h),()=>{window.removeEventListener("focus",v),window.removeEventListener("blur",h)}},[r,o,v,h]),{getRootProps:(j={})=>{const P={...bf(t),...bf(j)};return{role:"presentation",...j,...P,onBlur:g(P),onFocus:y(P),onMouseEnter:w(P),onMouseLeave:x(P)}},onClickAway:f}}function fN(t){return Ye("MuiSnackbarContent",t)}Ze("MuiSnackbarContent",["root","message","action"]);const hN=t=>{const{classes:e}=t;return Je({root:["root"],action:["action"],message:["message"]},fN,e)},mN=ye(Ir,{name:"MuiSnackbarContent",slot:"Root"})(Ge(({theme:t})=>{const e=t.palette.mode==="light"?.8:.98;return{...t.typography.body2,color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(ey(t.palette.background.default,e)),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:ey(t.palette.background.default,e),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),gN=ye("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),yN=ye("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),vN=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiSnackbarContent"}),{action:o,className:a,message:l,role:c="alert",...u}=n,f=n,h=hN(f);return d.jsxs(mN,{role:c,elevation:6,className:Ie(h.root,a),ownerState:f,ref:r,...u,children:[d.jsx(gN,{className:h.message,ownerState:f,children:l}),o?d.jsx(yN,{className:h.action,ownerState:f,children:o}):null]})});function bN(t){return Ye("MuiSnackbar",t)}Ze("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const xN=t=>{const{classes:e,anchorOrigin:r}=t,n={root:["root",`anchorOrigin${ge(r.vertical)}${ge(r.horizontal)}`]};return Je(n,bN,e)},wN=ye("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`anchorOrigin${ge(r.anchorOrigin.vertical)}${ge(r.anchorOrigin.horizontal)}`]]}})(Ge(({theme:t})=>({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:e})=>e.anchorOrigin.vertical==="top",style:{top:8,[t.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:e})=>e.anchorOrigin.vertical!=="top",style:{bottom:8,[t.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[t.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[t.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="center",style:{[t.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),lT=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiSnackbar"}),o=eo(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:l,anchorOrigin:{vertical:c,horizontal:u}={vertical:"bottom",horizontal:"left"},autoHideDuration:f=null,children:h,className:v,ClickAwayListenerProps:g,ContentProps:y,disableWindowBlurListener:w=!1,message:x,onBlur:C,onClose:j,onFocus:P,onMouseEnter:M,onMouseLeave:E,open:R,resumeHideDuration:I,slots:F={},slotProps:A={},TransitionComponent:H,transitionDuration:G=a,TransitionProps:{onEnter:N,onExited:k,...q}={},...U}=n,L={...n,anchorOrigin:{vertical:c,horizontal:u},autoHideDuration:f,disableWindowBlurListener:w,TransitionComponent:H,transitionDuration:G},W=xN(L),{getRootProps:K,onClickAway:ee}=pN(L),[Z,Q]=S.useState(!0),X=Oe=>{Q(!0),k&&k(Oe)},re=(Oe,Be)=>{Q(!1),N&&N(Oe,Be)},ce={slots:{transition:H,...F},slotProps:{content:y,clickAwayListener:g,transition:q,...A}},[Y,ne]=Xe("root",{ref:r,className:[W.root,v],elementType:wN,getSlotProps:K,externalForwardedProps:{...ce,...U},ownerState:L}),[J,{ownerState:de,...Ce}]=Xe("clickAwayListener",{elementType:wL,externalForwardedProps:ce,getSlotProps:Oe=>({onClickAway:(...Be)=>{var Ke;const _e=Be[0];(Ke=Oe.onClickAway)==null||Ke.call(Oe,...Be),!(_e!=null&&_e.defaultMuiPrevented)&&ee(...Be)}}),ownerState:L}),[me,se]=Xe("content",{elementType:vN,shouldForwardComponentProp:!0,externalForwardedProps:ce,additionalProps:{message:x,action:l},ownerState:L}),[De,Ne]=Xe("transition",{elementType:Bu,externalForwardedProps:ce,getSlotProps:Oe=>({onEnter:(...Be)=>{var _e;(_e=Oe.onEnter)==null||_e.call(Oe,...Be),re(...Be)},onExited:(...Be)=>{var _e;(_e=Oe.onExited)==null||_e.call(Oe,...Be),X(...Be)}}),additionalProps:{appear:!0,in:R,timeout:G,direction:c==="top"?"down":"up"},ownerState:L});return!R&&Z?null:d.jsx(J,{...Ce,...F.clickAwayListener&&{ownerState:de},children:d.jsx(Y,{...ne,children:d.jsx(De,{...Ne,children:h||d.jsx(me,{...se})})})})});function SN(t){return Ye("MuiTooltip",t)}const kr=Ze("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function CN(t){return Math.round(t*1e5)/1e5}const TN=t=>{const{classes:e,disableInteractive:r,arrow:n,touch:o,placement:a}=t,l={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${ge(a.split("-")[0])}`],arrow:["arrow"]};return Je(l,SN,e)},EN=ye(sh,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popper,!r.disableInteractive&&e.popperInteractive,r.arrow&&e.popperArrow,!r.open&&e.popperClose]}})(Ge(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${kr.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${kr.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${kr.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${kr.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${kr.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${kr.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${kr.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${kr.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),kN=ye("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.tooltip,r.touch&&e.touch,r.arrow&&e.tooltipArrow,e[`tooltipPlacement${ge(r.placement.split("-")[0])}`]]}})(Ge(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:t.alpha(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${kr.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${kr.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${kr.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${kr.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${CN(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${kr.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${kr.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${kr.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${kr.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${kr.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${kr.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${kr.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${kr.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${kr.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${kr.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),PN=ye("span",{name:"MuiTooltip",slot:"Arrow"})(Ge(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:t.alpha(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Ip=!1;const $w=new ih;let tu={x:0,y:0};function Ap(t,e){return(r,...n)=>{e&&e(r,...n),t(r,...n)}}const Zr=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiTooltip"}),{arrow:o=!1,children:a,classes:l,components:c={},componentsProps:u={},describeChild:f=!1,disableFocusListener:h=!1,disableHoverListener:v=!1,disableInteractive:g=!1,disableTouchListener:y=!1,enterDelay:w=100,enterNextDelay:x=0,enterTouchDelay:C=700,followCursor:j=!1,id:P,leaveDelay:M=0,leaveTouchDelay:E=1500,onClose:R,onOpen:I,open:F,placement:A="bottom",PopperComponent:H,PopperProps:G={},slotProps:N={},slots:k={},title:q,TransitionComponent:U,TransitionProps:L,...W}=n,K=S.isValidElement(a)?a:d.jsx("span",{children:a}),ee=eo(),Z=Ka(),[Q,X]=S.useState(),[re,ce]=S.useState(null),Y=S.useRef(!1),ne=g||j,J=_a(),de=_a(),Ce=_a(),me=_a(),[se,De]=Na({controlled:F,default:!1,name:"Tooltip",state:"open"});let Ne=se;const Oe=Pi(P),Be=S.useRef(),_e=qr(()=>{Be.current!==void 0&&(document.body.style.WebkitUserSelect=Be.current,Be.current=void 0),me.clear()});S.useEffect(()=>_e,[_e]);const Ke=Ct=>{$w.clear(),Ip=!0,De(!0),I&&!Ne&&I(Ct)},pt=qr(Ct=>{$w.start(800+M,()=>{Ip=!1}),De(!1),R&&Ne&&R(Ct),J.start(ee.transitions.duration.shortest,()=>{Y.current=!1})}),je=Ct=>{Y.current&&Ct.type!=="touchstart"||(Q&&Q.removeAttribute("title"),de.clear(),Ce.clear(),w||Ip&&x?de.start(Ip?x:w,()=>{Ke(Ct)}):Ke(Ct))},ht=Ct=>{de.clear(),Ce.start(M,()=>{pt(Ct)})},[,We]=S.useState(!1),ft=Ct=>{Bl(Ct.target)||(We(!1),ht(Ct))},Ue=Ct=>{Q||X(Ct.currentTarget),Bl(Ct.target)&&(We(!0),je(Ct))},Gt=Ct=>{Y.current=!0;const pr=K.props;pr.onTouchStart&&pr.onTouchStart(Ct)},Tt=Ct=>{Gt(Ct),Ce.clear(),J.clear(),_e(),Be.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",me.start(C,()=>{document.body.style.WebkitUserSelect=Be.current,je(Ct)})},ue=Ct=>{K.props.onTouchEnd&&K.props.onTouchEnd(Ct),_e(),Ce.start(E,()=>{pt(Ct)})};S.useEffect(()=>{if(!Ne)return;function Ct(pr){pr.key==="Escape"&&pt(pr)}return document.addEventListener("keydown",Ct),()=>{document.removeEventListener("keydown",Ct)}},[pt,Ne]);const be=Rr(Ns(K),X,r);!q&&q!==0&&(Ne=!1);const Te=S.useRef(),Me=Ct=>{const pr=K.props;pr.onMouseMove&&pr.onMouseMove(Ct),tu={x:Ct.clientX,y:Ct.clientY},Te.current&&Te.current.update()},Ve={},Qe=typeof q=="string";f?(Ve.title=!Ne&&Qe&&!v?q:null,Ve["aria-describedby"]=Ne?Oe:null):(Ve["aria-label"]=Qe?q:null,Ve["aria-labelledby"]=Ne&&!Qe?Oe:null);const oe={...Ve,...W,...K.props,className:Ie(W.className,K.props.className),onTouchStart:Gt,ref:be,...j?{onMouseMove:Me}:{}},ke={};y||(oe.onTouchStart=Tt,oe.onTouchEnd=ue),v||(oe.onMouseOver=Ap(je,oe.onMouseOver),oe.onMouseLeave=Ap(ht,oe.onMouseLeave),ne||(ke.onMouseOver=je,ke.onMouseLeave=ht)),h||(oe.onFocus=Ap(Ue,oe.onFocus),oe.onBlur=Ap(ft,oe.onBlur),ne||(ke.onFocus=Ue,ke.onBlur=ft));const $e={...n,isRtl:Z,arrow:o,disableInteractive:ne,placement:A,PopperComponentProp:H,touch:Y.current},Fe=typeof N.popper=="function"?N.popper($e):N.popper,xt=S.useMemo(()=>{var pr,qe;let Ct=[{name:"arrow",enabled:!!re,options:{element:re,padding:4}}];return(pr=G.popperOptions)!=null&&pr.modifiers&&(Ct=Ct.concat(G.popperOptions.modifiers)),(qe=Fe==null?void 0:Fe.popperOptions)!=null&&qe.modifiers&&(Ct=Ct.concat(Fe.popperOptions.modifiers)),{...G.popperOptions,...Fe==null?void 0:Fe.popperOptions,modifiers:Ct}},[re,G.popperOptions,Fe==null?void 0:Fe.popperOptions]),Xt=TN($e),dr=typeof N.transition=="function"?N.transition($e):N.transition,Fr={slots:{popper:c.Popper,transition:c.Transition??U,tooltip:c.Tooltip,arrow:c.Arrow,...k},slotProps:{arrow:N.arrow??u.arrow,popper:{...G,...Fe??u.popper},tooltip:N.tooltip??u.tooltip,transition:{...L,...dr??u.transition}}},[on,fn]=Xe("popper",{elementType:EN,externalForwardedProps:Fr,ownerState:$e,className:Ie(Xt.popper,G==null?void 0:G.className)}),[et,St]=Xe("transition",{elementType:Bu,externalForwardedProps:Fr,ownerState:$e}),[Vt,br]=Xe("tooltip",{elementType:kN,className:Xt.tooltip,externalForwardedProps:Fr,ownerState:$e}),[Hr,Pn]=Xe("arrow",{elementType:PN,className:Xt.arrow,externalForwardedProps:Fr,ownerState:$e,ref:ce});return d.jsxs(S.Fragment,{children:[S.cloneElement(K,oe),d.jsx(on,{as:H??sh,placement:A,anchorEl:j?{getBoundingClientRect:()=>({top:tu.y,left:tu.x,right:tu.x,bottom:tu.y,width:0,height:0})}:Q,popperRef:Te,open:Q?Ne:!1,id:Oe,transition:!0,...ke,...fn,popperOptions:xt,children:({TransitionProps:Ct})=>d.jsx(et,{timeout:ee.transitions.duration.shorter,...Ct,...St,children:d.jsxs(Vt,{...br,children:[q,o?d.jsx(Hr,{...Pn}):null]})})})]})}),Bw=IM({createStyledComponent:ye("div",{name:"MuiStack",slot:"Root"}),useThemeProps:t=>nt({props:t,name:"MuiStack"})});function jN(t){return Ye("MuiSwitch",t)}const _n=Ze("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),MN=t=>{const{classes:e,edge:r,size:n,color:o,checked:a,disabled:l}=t,c={root:["root",r&&`edge${ge(r)}`,`size${ge(n)}`],switchBase:["switchBase",`color${ge(o)}`,a&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=Je(c,jN,e);return{...e,...u}},RN=ye("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.edge&&e[`edge${ge(r.edge)}`],e[`size${ge(r.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${_n.thumb}`]:{width:16,height:16},[`& .${_n.switchBase}`]:{padding:4,[`&.${_n.checked}`]:{transform:"translateX(16px)"}}}}]}),IN=ye(K2,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.switchBase,{[`& .${_n.input}`]:e.input},r.color!=="default"&&e[`color${ge(r.color)}`]]}})(Ge(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${_n.checked}`]:{transform:"translateX(20px)"},[`&.${_n.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${_n.checked} + .${_n.track}`]:{opacity:.5},[`&.${_n.disabled} + .${_n.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${_n.input}`]:{left:"-100%",width:"300%"}})),Ge(({theme:t})=>({"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.active,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter(Zt(["light"])).map(([e])=>({props:{color:e},style:{[`&.${_n.checked}`]:{color:(t.vars||t).palette[e].main,"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${_n.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${e}DisabledColor`]:`${t.palette.mode==="light"?t.lighten(t.palette[e].main,.62):t.darken(t.palette[e].main,.55)}`}},[`&.${_n.checked} + .${_n.track}`]:{backgroundColor:(t.vars||t).palette[e].main}}}))]}))),AN=ye("span",{name:"MuiSwitch",slot:"Track"})(Ge(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`}))),_N=ye("span",{name:"MuiSwitch",slot:"Thumb"})(Ge(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),LN=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiSwitch"}),{className:o,color:a="primary",edge:l=!1,size:c="medium",sx:u,slots:f={},slotProps:h={},...v}=n,g={...n,color:a,edge:l,size:c},y=MN(g),w={slots:f,slotProps:h},[x,C]=Xe("root",{className:Ie(y.root,o),elementType:RN,externalForwardedProps:w,ownerState:g,additionalProps:{sx:u}}),[j,P]=Xe("thumb",{className:y.thumb,elementType:_N,externalForwardedProps:w,ownerState:g}),M=d.jsx(j,{...P}),[E,R]=Xe("track",{className:y.track,elementType:AN,externalForwardedProps:w,ownerState:g});return d.jsxs(x,{...C,children:[d.jsx(IN,{type:"checkbox",icon:M,checkedIcon:M,ref:r,ownerState:g,...v,classes:{...y,root:y.switchBase},slots:{...f.switchBase&&{root:f.switchBase},...f.input&&{input:f.input}},slotProps:{...h.switchBase&&{root:typeof h.switchBase=="function"?h.switchBase(g):h.switchBase},input:{role:"switch"},...h.input&&{input:typeof h.input=="function"?h.input(g):h.input}}}),d.jsx(E,{...R})]})});function ON(t){return Ye("MuiTab",t)}const jo=Ze("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),NN=t=>{const{classes:e,textColor:r,fullWidth:n,wrapped:o,icon:a,label:l,selected:c,disabled:u}=t,f={root:["root",a&&l&&"labelIcon",`textColor${ge(r)}`,n&&"fullWidth",o&&"wrapped",c&&"selected",u&&"disabled"],icon:["iconWrapper","icon"]};return Je(f,ON,e)},$N=ye(ti,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${ge(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped,{[`& .${jo.iconWrapper}`]:e.iconWrapper},{[`& .${jo.icon}`]:e.icon}]}})(Ge(({theme:t})=>({...t.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&(e.iconPosition==="top"||e.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&e.iconPosition!=="top"&&e.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="top",style:{[`& > .${jo.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="bottom",style:{[`& > .${jo.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="start",style:{[`& > .${jo.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="end",style:{[`& > .${jo.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${jo.selected}`]:{opacity:1},[`&.${jo.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${jo.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${jo.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${jo.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${jo.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:t.typography.pxToRem(12)}}]}))),BN=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:l=!1,fullWidth:c,icon:u,iconPosition:f="top",indicator:h,label:v,onChange:g,onClick:y,onFocus:w,selected:x,selectionFollowsFocus:C,textColor:j="inherit",value:P,wrapped:M=!1,...E}=n,R={...n,disabled:a,disableFocusRipple:l,selected:x,icon:!!u,iconPosition:f,label:!!v,fullWidth:c,textColor:j,wrapped:M},I=NN(R),F=u&&v&&S.isValidElement(u)?S.cloneElement(u,{className:Ie(I.icon,u.props.className)}):u,A=G=>{!x&&g&&g(G,P),y&&y(G)},H=G=>{C&&!x&&g&&g(G,P),w&&w(G)};return d.jsxs($N,{focusRipple:!l,className:Ie(I.root,o),ref:r,role:"tab","aria-selected":x,disabled:a,onClick:A,onFocus:H,ownerState:R,tabIndex:x?0:-1,...E,children:[f==="top"||f==="start"?d.jsxs(S.Fragment,{children:[F,v]}):d.jsxs(S.Fragment,{children:[v,F]}),h]})}),cT=S.createContext();function zN(t){return Ye("MuiTable",t)}Ze("MuiTable",["root","stickyHeader"]);const DN=t=>{const{classes:e,stickyHeader:r}=t;return Je({root:["root",r&&"stickyHeader"]},zN,e)},FN=ye("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.stickyHeader&&e.stickyHeader]}})(Ge(({theme:t})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...t.typography.body2,padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:"separate"}}]}))),zw="table",Wl=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiTable"}),{className:o,component:a=zw,padding:l="normal",size:c="medium",stickyHeader:u=!1,...f}=n,h={...n,component:a,padding:l,size:c,stickyHeader:u},v=DN(h),g=S.useMemo(()=>({padding:l,size:c,stickyHeader:u}),[l,c,u]);return d.jsx(cT.Provider,{value:g,children:d.jsx(FN,{as:a,role:a===zw?null:"table",ref:r,className:Ie(v.root,o),ownerState:h,...f})})}),gh=S.createContext();function HN(t){return Ye("MuiTableBody",t)}Ze("MuiTableBody",["root"]);const UN=t=>{const{classes:e}=t;return Je({root:["root"]},HN,e)},VN=ye("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),WN={variant:"body"},Dw="tbody",ql=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiTableBody"}),{className:o,component:a=Dw,...l}=n,c={...n,component:a},u=UN(c);return d.jsx(gh.Provider,{value:WN,children:d.jsx(VN,{className:Ie(u.root,o),as:a,ref:r,role:a===Dw?null:"rowgroup",ownerState:c,...l})})});function qN(t){return Ye("MuiTableCell",t)}const GN=Ze("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),XN=t=>{const{classes:e,variant:r,align:n,padding:o,size:a,stickyHeader:l}=t,c={root:["root",r,l&&"stickyHeader",n!=="inherit"&&`align${ge(n)}`,o!=="normal"&&`padding${ge(o)}`,`size${ge(a)}`]};return Je(c,qN,e)},KN=ye("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`size${ge(r.size)}`],r.padding!=="normal"&&e[`padding${ge(r.padding)}`],r.align!=="inherit"&&e[`align${ge(r.align)}`],r.stickyHeader&&e.stickyHeader]}})(Ge(({theme:t})=>({...t.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid
307
- ${t.palette.mode==="light"?t.lighten(t.alpha(t.palette.divider,1),.88):t.darken(t.alpha(t.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(t.vars||t).palette.text.primary}},{props:{variant:"footer"},style:{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${GN.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default}}]}))),it=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiTableCell"}),{align:o="inherit",className:a,component:l,padding:c,scope:u,size:f,sortDirection:h,variant:v,...g}=n,y=S.useContext(cT),w=S.useContext(gh),x=w&&w.variant==="head";let C;l?C=l:C=x?"th":"td";let j=u;C==="td"?j=void 0:!j&&x&&(j="col");const P=v||w&&w.variant,M={...n,align:o,component:C,padding:c||(y&&y.padding?y.padding:"normal"),size:f||(y&&y.size?y.size:"medium"),sortDirection:h,stickyHeader:P==="head"&&y&&y.stickyHeader,variant:P},E=XN(M);let R=null;return h&&(R=h==="asc"?"ascending":"descending"),d.jsx(KN,{as:C,ref:r,className:Ie(E.root,a),"aria-sort":R,scope:j,ownerState:M,...g})});function QN(t){return Ye("MuiTableContainer",t)}Ze("MuiTableContainer",["root"]);const YN=t=>{const{classes:e}=t;return Je({root:["root"]},QN,e)},JN=ye("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),Gl=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiTableContainer"}),{className:o,component:a="div",...l}=n,c={...n,component:a},u=YN(c);return d.jsx(JN,{ref:r,as:a,className:Ie(u.root,o),ownerState:c,...l})});function ZN(t){return Ye("MuiTableHead",t)}Ze("MuiTableHead",["root"]);const e$=t=>{const{classes:e}=t;return Je({root:["root"]},ZN,e)},t$=ye("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),r$={variant:"head"},Fw="thead",Xl=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiTableHead"}),{className:o,component:a=Fw,...l}=n,c={...n,component:a},u=e$(c);return d.jsx(gh.Provider,{value:r$,children:d.jsx(t$,{as:a,className:Ie(u.root,o),ref:r,role:a===Fw?null:"rowgroup",ownerState:c,...l})})});function n$(t){return Ye("MuiToolbar",t)}Ze("MuiToolbar",["root","gutters","regular","dense"]);const o$=t=>{const{classes:e,disableGutters:r,variant:n}=t;return Je({root:["root",!r&&"gutters",n]},n$,e)},i$=ye("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableGutters&&e.gutters,e[r.variant]]}})(Ge(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),a$=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiToolbar"}),{className:o,component:a="div",disableGutters:l=!1,variant:c="regular",...u}=n,f={...n,component:a,disableGutters:l,variant:c},h=o$(f);return d.jsx(i$,{as:a,className:Ie(h.root,o),ref:r,ownerState:f,...u})}),uT=Pe(d.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),dT=Pe(d.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function s$(t){return Ye("MuiTablePaginationActions",t)}Ze("MuiTablePaginationActions",["root"]);const l$=t=>{const{classes:e}=t;return Je({root:["root"]},s$,e)},c$=ye("div",{name:"MuiTablePaginationActions",slot:"Root"})({}),u$=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiTablePaginationActions"}),{backIconButtonProps:o,className:a,count:l,disabled:c=!1,getItemAriaLabel:u,nextIconButtonProps:f,onPageChange:h,page:v,rowsPerPage:g,showFirstButton:y,showLastButton:w,slots:x={},slotProps:C={},...j}=n,P=Ka(),E=l$(n),R=ne=>{h(ne,0)},I=ne=>{h(ne,v-1)},F=ne=>{h(ne,v+1)},A=ne=>{h(ne,Math.max(0,Math.ceil(l/g)-1))},H=x.firstButton??ur,G=x.lastButton??ur,N=x.nextButton??ur,k=x.previousButton??ur,q=x.firstButtonIcon??oT,U=x.lastButtonIcon??iT,L=x.nextButtonIcon??dT,W=x.previousButtonIcon??uT,K=P?G:H,ee=P?N:k,Z=P?k:N,Q=P?H:G,X=P?C.lastButton:C.firstButton,re=P?C.nextButton:C.previousButton,ce=P?C.previousButton:C.nextButton,Y=P?C.firstButton:C.lastButton;return d.jsxs(c$,{ref:r,className:Ie(E.root,a),...j,children:[y&&d.jsx(K,{onClick:R,disabled:c||v===0,"aria-label":u("first",v),title:u("first",v),...X,children:P?d.jsx(U,{...C.lastButtonIcon}):d.jsx(q,{...C.firstButtonIcon})}),d.jsx(ee,{onClick:I,disabled:c||v===0,color:"inherit","aria-label":u("previous",v),title:u("previous",v),...re??o,children:P?d.jsx(L,{...C.nextButtonIcon}):d.jsx(W,{...C.previousButtonIcon})}),d.jsx(Z,{onClick:F,disabled:c||(l!==-1?v>=Math.ceil(l/g)-1:!1),color:"inherit","aria-label":u("next",v),title:u("next",v),...ce??f,children:P?d.jsx(W,{...C.previousButtonIcon}):d.jsx(L,{...C.nextButtonIcon})}),w&&d.jsx(Q,{onClick:A,disabled:c||v>=Math.ceil(l/g)-1,"aria-label":u("last",v),title:u("last",v),...Y,children:P?d.jsx(q,{...C.firstButtonIcon}):d.jsx(U,{...C.lastButtonIcon})})]})});function d$(t){return Ye("MuiTablePagination",t)}const wu=Ze("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var Hw;const p$=ye(it,{name:"MuiTablePagination",slot:"Root"})(Ge(({theme:t})=>({overflow:"auto",color:(t.vars||t).palette.text.primary,fontSize:t.typography.pxToRem(14),"&:last-child":{padding:0}}))),f$=ye(a$,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(t,e)=>({[`& .${wu.actions}`]:e.actions,...e.toolbar})})(Ge(({theme:t})=>({minHeight:52,paddingRight:2,[`${t.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[t.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${wu.actions}`]:{flexShrink:0,marginLeft:20}}))),h$=ye("div",{name:"MuiTablePagination",slot:"Spacer"})({flex:"1 1 100%"}),m$=ye("p",{name:"MuiTablePagination",slot:"SelectLabel"})(Ge(({theme:t})=>({...t.typography.body2,flexShrink:0}))),g$=ye(Ms,{name:"MuiTablePagination",slot:"Select",overridesResolver:(t,e)=>({[`& .${wu.selectIcon}`]:e.selectIcon,[`& .${wu.select}`]:e.select,...e.input,...e.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${wu.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),y$=ye(cn,{name:"MuiTablePagination",slot:"MenuItem"})({}),v$=ye("p",{name:"MuiTablePagination",slot:"DisplayedRows"})(Ge(({theme:t})=>({...t.typography.body2,flexShrink:0})));function b$({from:t,to:e,count:r}){return`${t}–${e} of ${r!==-1?r:`more than ${e}`}`}function x$(t){return`Go to ${t} page`}const w$=t=>{const{classes:e}=t;return Je({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},d$,e)},S$=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiTablePagination"}),{ActionsComponent:o=u$,backIconButtonProps:a,colSpan:l,component:c=it,count:u,disabled:f=!1,getItemAriaLabel:h=x$,labelDisplayedRows:v=b$,labelRowsPerPage:g="Rows per page:",nextIconButtonProps:y,onPageChange:w,onRowsPerPageChange:x,page:C,rowsPerPage:j,rowsPerPageOptions:P=[10,25,50,100],SelectProps:M={},showFirstButton:E=!1,showLastButton:R=!1,slotProps:I={},slots:F={},...A}=n,H=n,G=w$(H),N=(I==null?void 0:I.select)??M,k=N.native?"option":y$;let q;(c===it||c==="td")&&(q=l||1e3);const U=Pi(N.id),L=Pi(N.labelId),W=()=>u===-1?(C+1)*j:j===-1?u:Math.min(u,(C+1)*j),K={slots:F,slotProps:I},[ee,Z]=Xe("root",{ref:r,className:G.root,elementType:p$,externalForwardedProps:{...K,component:c,...A},ownerState:H,additionalProps:{colSpan:q}}),[Q,X]=Xe("toolbar",{className:G.toolbar,elementType:f$,externalForwardedProps:K,ownerState:H}),[re,ce]=Xe("spacer",{className:G.spacer,elementType:h$,externalForwardedProps:K,ownerState:H}),[Y,ne]=Xe("selectLabel",{className:G.selectLabel,elementType:m$,externalForwardedProps:K,ownerState:H,additionalProps:{id:L}}),[J,de]=Xe("select",{className:G.select,elementType:g$,externalForwardedProps:K,ownerState:H}),[Ce,me]=Xe("menuItem",{className:G.menuItem,elementType:k,externalForwardedProps:K,ownerState:H}),[se,De]=Xe("displayedRows",{className:G.displayedRows,elementType:v$,externalForwardedProps:K,ownerState:H});return d.jsx(ee,{...Z,children:d.jsxs(Q,{...X,children:[d.jsx(re,{...ce}),P.length>1&&d.jsx(Y,{...ne,children:g}),P.length>1&&d.jsx(J,{variant:"standard",...!N.variant&&{input:Hw||(Hw=d.jsx(fh,{}))},value:j,onChange:x,id:U,labelId:L,...N,classes:{...N.classes,root:Ie(G.input,G.selectRoot,(N.classes||{}).root),select:Ie(G.select,(N.classes||{}).select),icon:Ie(G.selectIcon,(N.classes||{}).icon)},disabled:f,...de,children:P.map(Ne=>S.createElement(Ce,{...me,key:Ne.label?Ne.label:Ne,value:Ne.value?Ne.value:Ne},Ne.label?Ne.label:Ne))}),d.jsx(se,{...De,children:v({from:u===0?0:C*j+1,to:W(),count:u===-1?-1:u,page:C})}),d.jsx(o,{className:G.actions,backIconButtonProps:a,count:u,nextIconButtonProps:y,onPageChange:w,page:C,rowsPerPage:j,showFirstButton:E,showLastButton:R,slotProps:I.actions,slots:F.actions,getItemAriaLabel:h,disabled:f})]})})});function C$(t){return Ye("MuiTableRow",t)}const Uw=Ze("MuiTableRow",["root","selected","hover","head","footer"]),T$=t=>{const{classes:e,selected:r,hover:n,head:o,footer:a}=t;return Je({root:["root",r&&"selected",n&&"hover",o&&"head",a&&"footer"]},C$,e)},E$=ye("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.head&&e.head,r.footer&&e.footer]}})(Ge(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Uw.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${Uw.selected}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`)}}}))),Vw="tr",Cn=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiTableRow"}),{className:o,component:a=Vw,hover:l=!1,selected:c=!1,...u}=n,f=S.useContext(gh),h={...n,component:a,hover:l,selected:c,head:f&&f.variant==="head",footer:f&&f.variant==="footer"},v=T$(h);return d.jsx(E$,{as:a,ref:r,className:Ie(v.root,o),role:a===Vw?null:"row",ownerState:h,...u})});function k$(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function P$(t,e,r,n={},o=()=>{}){const{ease:a=k$,duration:l=300}=n;let c=null;const u=e[t];let f=!1;const h=()=>{f=!0},v=g=>{if(f){o(new Error("Animation cancelled"));return}c===null&&(c=g);const y=Math.min(1,(g-c)/l);if(e[t]=a(y)*(r-u)+u,y>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(v)};return u===r?(o(new Error("Element already at target position")),h):(requestAnimationFrame(v),h)}const j$={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function M$(t){const{onChange:e,...r}=t,n=S.useRef(),o=S.useRef(null),a=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return Qn(()=>{const l=oh(()=>{const u=n.current;a(),u!==n.current&&e(n.current)}),c=ei(o.current);return c.addEventListener("resize",l),()=>{l.clear(),c.removeEventListener("resize",l)}},[e]),S.useEffect(()=>{a(),e(n.current)},[e]),d.jsx("div",{style:j$,...r,ref:o})}function R$(t){return Ye("MuiTabScrollButton",t)}const I$=Ze("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),A$=t=>{const{classes:e,orientation:r,disabled:n}=t;return Je({root:["root",r,n&&"disabled"]},R$,e)},_$=ye(ti,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${I$.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),L$=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiTabScrollButton"}),{className:o,slots:a={},slotProps:l={},direction:c,orientation:u,disabled:f,...h}=n,v=Ka(),g={isRtl:v,...n},y=A$(g),w=a.StartScrollButtonIcon??uT,x=a.EndScrollButtonIcon??dT,C=Ul({elementType:w,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),j=Ul({elementType:x,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return d.jsx(_$,{component:"div",className:Ie(y.root,o),ref:r,role:null,ownerState:g,tabIndex:null,...h,style:{...h.style,...u==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${v?-90:90}deg)`}},children:c==="left"?d.jsx(w,{...C}):d.jsx(x,{...j})})});function O$(t){return Ye("MuiTabs",t)}const Ig=Ze("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Ww=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,qw=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,_p=(t,e,r)=>{let n=!1,o=r(t,e);for(;o;){if(o===t.firstChild){if(n)return;n=!0}const a=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||a)o=r(t,o);else{o.focus();return}}},N$=t=>{const{vertical:e,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:a,centered:l,scrollButtonsHideMobile:c,classes:u}=t;return Je({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],list:["list","flexContainer",e&&"flexContainerVertical",e&&"vertical",l&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",c&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},O$,u)},$$=ye("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Ig.scrollButtons}`]:e.scrollButtons},{[`& .${Ig.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(Ge(({theme:t})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${Ig.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),B$=ye("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:t})=>t.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:t})=>t.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:t})=>t.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:t})=>t.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),z$=ye("div",{name:"MuiTabs",slot:"List",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.list,e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),D$=ye("span",{name:"MuiTabs",slot:"Indicator"})(Ge(({theme:t})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(t.vars||t).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(t.vars||t).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),F$=ye(M$)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Gw={},H$=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiTabs"}),o=eo(),a=Ka(),{"aria-label":l,"aria-labelledby":c,action:u,centered:f=!1,children:h,className:v,component:g="div",allowScrollButtonsMobile:y=!1,indicatorColor:w="primary",onChange:x,orientation:C="horizontal",ScrollButtonComponent:j,scrollButtons:P="auto",selectionFollowsFocus:M,slots:E={},slotProps:R={},TabIndicatorProps:I={},TabScrollButtonProps:F={},textColor:A="primary",value:H,variant:G="standard",visibleScrollbar:N=!1,...k}=n,q=G==="scrollable",U=C==="vertical",L=U?"scrollTop":"scrollLeft",W=U?"top":"left",K=U?"bottom":"right",ee=U?"clientHeight":"clientWidth",Z=U?"height":"width",Q={...n,component:g,allowScrollButtonsMobile:y,indicatorColor:w,orientation:C,vertical:U,scrollButtons:P,textColor:A,variant:G,visibleScrollbar:N,fixed:!q,hideScrollbar:q&&!N,scrollableX:q&&!U,scrollableY:q&&U,centered:f&&!q,scrollButtonsHideMobile:!y},X=N$(Q),re=Ul({elementType:E.StartScrollButtonIcon,externalSlotProps:R.startScrollButtonIcon,ownerState:Q}),ce=Ul({elementType:E.EndScrollButtonIcon,externalSlotProps:R.endScrollButtonIcon,ownerState:Q}),[Y,ne]=S.useState(!1),[J,de]=S.useState(Gw),[Ce,me]=S.useState(!1),[se,De]=S.useState(!1),[Ne,Oe]=S.useState(!1),[Be,_e]=S.useState({overflow:"hidden",scrollbarWidth:0}),Ke=new Map,pt=S.useRef(null),je=S.useRef(null),ht={slots:E,slotProps:{indicator:I,scrollButton:F,...R}},We=()=>{const qe=pt.current;let ot;if(qe){const Rt=qe.getBoundingClientRect();ot={clientWidth:qe.clientWidth,scrollLeft:qe.scrollLeft,scrollTop:qe.scrollTop,scrollWidth:qe.scrollWidth,top:Rt.top,bottom:Rt.bottom,left:Rt.left,right:Rt.right}}let jt;if(qe&&H!==!1){const Rt=je.current.children;if(Rt.length>0){const Yt=Rt[Ke.get(H)];jt=Yt?Yt.getBoundingClientRect():null}}return{tabsMeta:ot,tabMeta:jt}},ft=qr(()=>{const{tabsMeta:qe,tabMeta:ot}=We();let jt=0,Rt;U?(Rt="top",ot&&qe&&(jt=ot.top-qe.top+qe.scrollTop)):(Rt=a?"right":"left",ot&&qe&&(jt=(a?-1:1)*(ot[Rt]-qe[Rt]+qe.scrollLeft)));const Yt={[Rt]:jt,[Z]:ot?ot[Z]:0};if(typeof J[Rt]!="number"||typeof J[Z]!="number")de(Yt);else{const _r=Math.abs(J[Rt]-Yt[Rt]),hn=Math.abs(J[Z]-Yt[Z]);(_r>=1||hn>=1)&&de(Yt)}}),Ue=(qe,{animation:ot=!0}={})=>{ot?P$(L,pt.current,qe,{duration:o.transitions.duration.standard}):pt.current[L]=qe},Gt=qe=>{let ot=pt.current[L];U?ot+=qe:ot+=qe*(a?-1:1),Ue(ot)},Tt=()=>{const qe=pt.current[ee];let ot=0;const jt=Array.from(je.current.children);for(let Rt=0;Rt<jt.length;Rt+=1){const Yt=jt[Rt];if(ot+Yt[ee]>qe){Rt===0&&(ot=qe);break}ot+=Yt[ee]}return ot},ue=()=>{Gt(-1*Tt())},be=()=>{Gt(Tt())},[Te,{onChange:Me,...Ve}]=Xe("scrollbar",{className:Ie(X.scrollableX,X.hideScrollbar),elementType:F$,shouldForwardComponentProp:!0,externalForwardedProps:ht,ownerState:Q}),Qe=S.useCallback(qe=>{Me==null||Me(qe),_e({overflow:null,scrollbarWidth:qe})},[Me]),[oe,ke]=Xe("scrollButtons",{className:Ie(X.scrollButtons,F.className),elementType:L$,externalForwardedProps:ht,ownerState:Q,additionalProps:{orientation:C,slots:{StartScrollButtonIcon:E.startScrollButtonIcon||E.StartScrollButtonIcon,EndScrollButtonIcon:E.endScrollButtonIcon||E.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:re,endScrollButtonIcon:ce}}}),$e=()=>{const qe={};qe.scrollbarSizeListener=q?d.jsx(Te,{...Ve,onChange:Qe}):null;const jt=q&&(P==="auto"&&(Ce||se)||P===!0);return qe.scrollButtonStart=jt?d.jsx(oe,{direction:a?"right":"left",onClick:ue,disabled:!Ce,...ke}):null,qe.scrollButtonEnd=jt?d.jsx(oe,{direction:a?"left":"right",onClick:be,disabled:!se,...ke}):null,qe},Fe=qr(qe=>{const{tabsMeta:ot,tabMeta:jt}=We();if(!(!jt||!ot)){if(jt[W]<ot[W]){const Rt=ot[L]+(jt[W]-ot[W]);Ue(Rt,{animation:qe})}else if(jt[K]>ot[K]){const Rt=ot[L]+(jt[K]-ot[K]);Ue(Rt,{animation:qe})}}}),xt=qr(()=>{q&&P!==!1&&Oe(!Ne)});S.useEffect(()=>{const qe=oh(()=>{pt.current&&ft()});let ot;const jt=_r=>{_r.forEach(hn=>{hn.removedNodes.forEach(Bn=>{ot==null||ot.unobserve(Bn)}),hn.addedNodes.forEach(Bn=>{ot==null||ot.observe(Bn)})}),qe(),xt()},Rt=ei(pt.current);Rt.addEventListener("resize",qe);let Yt;return typeof ResizeObserver<"u"&&(ot=new ResizeObserver(qe),Array.from(je.current.children).forEach(_r=>{ot.observe(_r)})),typeof MutationObserver<"u"&&(Yt=new MutationObserver(jt),Yt.observe(je.current,{childList:!0})),()=>{qe.clear(),Rt.removeEventListener("resize",qe),Yt==null||Yt.disconnect(),ot==null||ot.disconnect()}},[ft,xt]),S.useEffect(()=>{const qe=Array.from(je.current.children),ot=qe.length;if(typeof IntersectionObserver<"u"&&ot>0&&q&&P!==!1){const jt=qe[0],Rt=qe[ot-1],Yt={root:pt.current,threshold:.99},_r=Fo=>{me(!Fo[0].isIntersecting)},hn=new IntersectionObserver(_r,Yt);hn.observe(jt);const Bn=Fo=>{De(!Fo[0].isIntersecting)},ci=new IntersectionObserver(Bn,Yt);return ci.observe(Rt),()=>{hn.disconnect(),ci.disconnect()}}},[q,P,Ne,h==null?void 0:h.length]),S.useEffect(()=>{ne(!0)},[]),S.useEffect(()=>{ft()}),S.useEffect(()=>{Fe(Gw!==J)},[Fe,J]),S.useImperativeHandle(u,()=>({updateIndicator:ft,updateScrollButtons:xt}),[ft,xt]);const[Xt,dr]=Xe("indicator",{className:Ie(X.indicator,I.className),elementType:D$,externalForwardedProps:ht,ownerState:Q,additionalProps:{style:J}}),Fr=d.jsx(Xt,{...dr});let on=0;const fn=S.Children.map(h,qe=>{if(!S.isValidElement(qe))return null;const ot=qe.props.value===void 0?on:qe.props.value;Ke.set(ot,on);const jt=ot===H;return on+=1,S.cloneElement(qe,{fullWidth:G==="fullWidth",indicator:jt&&!Y&&Fr,selected:jt,selectionFollowsFocus:M,onChange:x,textColor:A,value:ot,...on===1&&H===!1&&!qe.props.tabIndex?{tabIndex:0}:{}})}),et=qe=>{if(qe.altKey||qe.shiftKey||qe.ctrlKey||qe.metaKey)return;const ot=je.current,jt=kl(dn(ot));if((jt==null?void 0:jt.getAttribute("role"))!=="tab")return;let Yt=C==="horizontal"?"ArrowLeft":"ArrowUp",_r=C==="horizontal"?"ArrowRight":"ArrowDown";switch(C==="horizontal"&&a&&(Yt="ArrowRight",_r="ArrowLeft"),qe.key){case Yt:qe.preventDefault(),_p(ot,jt,qw);break;case _r:qe.preventDefault(),_p(ot,jt,Ww);break;case"Home":qe.preventDefault(),_p(ot,null,Ww);break;case"End":qe.preventDefault(),_p(ot,null,qw);break}},St=$e(),[Vt,br]=Xe("root",{ref:r,className:Ie(X.root,v),elementType:$$,externalForwardedProps:{...ht,...k,component:g},ownerState:Q}),[Hr,Pn]=Xe("scroller",{ref:pt,className:X.scroller,elementType:B$,externalForwardedProps:ht,ownerState:Q,additionalProps:{style:{overflow:Be.overflow,[U?`margin${a?"Left":"Right"}`:"marginBottom"]:N?void 0:-Be.scrollbarWidth}}}),[Ct,pr]=Xe("list",{ref:je,className:Ie(X.list,X.flexContainer),elementType:z$,externalForwardedProps:ht,ownerState:Q,getSlotProps:qe=>({...qe,onKeyDown:ot=>{var jt;et(ot),(jt=qe.onKeyDown)==null||jt.call(qe,ot)}})});return d.jsxs(Vt,{...br,children:[St.scrollButtonStart,St.scrollbarSizeListener,d.jsxs(Hr,{...Pn,children:[d.jsx(Ct,{"aria-label":l,"aria-labelledby":c,"aria-orientation":C==="vertical"?"vertical":null,role:"tablist",...pr,children:fn}),Y&&Fr]}),St.scrollButtonEnd]})});function U$(t){return Ye("MuiTextField",t)}Ze("MuiTextField",["root"]);const V$={standard:hh,filled:M0,outlined:_0},W$=t=>{const{classes:e}=t;return Je({root:["root"]},U$,e)},q$=ye(za,{name:"MuiTextField",slot:"Root"})({}),un=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:l,className:c,color:u="primary",defaultValue:f,disabled:h=!1,error:v=!1,FormHelperTextProps:g,fullWidth:y=!1,helperText:w,id:x,InputLabelProps:C,inputProps:j,InputProps:P,inputRef:M,label:E,maxRows:R,minRows:I,multiline:F=!1,name:A,onBlur:H,onChange:G,onFocus:N,placeholder:k,required:q=!1,rows:U,select:L=!1,SelectProps:W,slots:K={},slotProps:ee={},type:Z,value:Q,variant:X="outlined",...re}=n,ce={...n,autoFocus:a,color:u,disabled:h,error:v,fullWidth:y,multiline:F,required:q,select:L,variant:X},Y=W$(ce),ne=Pi(x),J=w&&ne?`${ne}-helper-text`:void 0,de=E&&ne?`${ne}-label`:void 0,Ce=V$[X],me={slots:K,slotProps:{input:P,inputLabel:C,htmlInput:j,formHelperText:g,select:W,...ee}},se={},De=me.slotProps.inputLabel;X==="outlined"&&(De&&typeof De.shrink<"u"&&(se.notched=De.shrink),se.label=E),L&&((!W||!W.native)&&(se.id=void 0),se["aria-describedby"]=void 0);const[Ne,Oe]=Xe("root",{elementType:q$,shouldForwardComponentProp:!0,externalForwardedProps:{...me,...re},ownerState:ce,className:Ie(Y.root,c),ref:r,additionalProps:{disabled:h,error:v,fullWidth:y,required:q,color:u,variant:X}}),[Be,_e]=Xe("input",{elementType:Ce,externalForwardedProps:me,additionalProps:se,ownerState:ce}),[Ke,pt]=Xe("inputLabel",{elementType:Vl,externalForwardedProps:me,ownerState:ce}),[je,ht]=Xe("htmlInput",{elementType:"input",externalForwardedProps:me,ownerState:ce}),[We,ft]=Xe("formHelperText",{elementType:cc,externalForwardedProps:me,ownerState:ce}),[Ue,Gt]=Xe("select",{elementType:Ms,externalForwardedProps:me,ownerState:ce}),Tt=d.jsx(Be,{"aria-describedby":J,autoComplete:o,autoFocus:a,defaultValue:f,fullWidth:y,multiline:F,name:A,rows:U,maxRows:R,minRows:I,type:Z,value:Q,id:ne,inputRef:M,onBlur:H,onChange:G,onFocus:N,placeholder:k,inputProps:ht,slots:{input:K.htmlInput?je:void 0},..._e});return d.jsxs(Ne,{...Oe,children:[E!=null&&E!==""&&d.jsx(Ke,{htmlFor:ne,id:de,...pt,children:E}),L?d.jsx(Ue,{"aria-describedby":J,id:ne,labelId:de,value:Q,input:Tt,...Gt,children:l}):Tt,w&&d.jsx(We,{id:J,...ft,children:w})]})});function G$(t){return Ye("MuiToggleButton",t)}const Ts=Ze("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),pT=S.createContext({}),fT=S.createContext(void 0);function X$(t,e){return e===void 0||t===void 0?!1:Array.isArray(e)?e.includes(t):t===e}const K$=t=>{const{classes:e,fullWidth:r,selected:n,disabled:o,size:a,color:l}=t,c={root:["root",n&&"selected",o&&"disabled",r&&"fullWidth",`size${ge(a)}`,l]};return Je(c,G$,e)},Q$=ye(ti,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`size${ge(r.size)}`]]}})(Ge(({theme:t})=>({...t.typography.button,borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active,[`&.${Ts.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${Ts.selected}`]:{color:(t.vars||t).palette.text.primary,backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity)}}}}},...Object.entries(t.palette).filter(Zt()).map(([e])=>({props:{color:e},style:{[`&.${Ts.selected}`]:{color:(t.vars||t).palette[e].main,backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:t.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:t.typography.pxToRem(15)}}]}))),Xw=S.forwardRef(function(e,r){const{value:n,...o}=S.useContext(pT),a=S.useContext(fT),l=Nl({...o,selected:X$(e.value,n)},e),c=nt({props:l,name:"MuiToggleButton"}),{children:u,className:f,color:h="standard",disabled:v=!1,disableFocusRipple:g=!1,fullWidth:y=!1,onChange:w,onClick:x,selected:C,size:j="medium",value:P,...M}=c,E={...c,color:h,disabled:v,disableFocusRipple:g,fullWidth:y,size:j},R=K$(E),I=A=>{x&&(x(A,P),A.defaultPrevented)||w&&w(A,P)},F=a||"";return d.jsx(Q$,{className:Ie(o.className,R.root,f,F),disabled:v,focusRipple:!g,ref:r,onClick:I,onChange:w,value:P,ownerState:E,"aria-pressed":C,...M,children:u})});function Y$(t){return Ye("MuiToggleButtonGroup",t)}const mr=Ze("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),J$=t=>{const{classes:e,orientation:r,fullWidth:n,disabled:o}=t,a={root:["root",r,n&&"fullWidth"],grouped:["grouped",`grouped${ge(r)}`,o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Je(a,Y$,e)},Z$=ye("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${mr.grouped}`]:e.grouped},{[`& .${mr.grouped}`]:e[`grouped${ge(r.orientation)}`]},{[`& .${mr.firstButton}`]:e.firstButton},{[`& .${mr.lastButton}`]:e.lastButton},{[`& .${mr.middleButton}`]:e.middleButton},e.root,r.orientation==="vertical"&&e.vertical,r.fullWidth&&e.fullWidth]}})(Ge(({theme:t})=>({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${mr.grouped}`]:{[`&.${mr.selected} + .${mr.grouped}.${mr.selected}`]:{borderTop:0,marginTop:0}},[`& .${mr.firstButton},& .${mr.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${mr.lastButton},& .${mr.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${mr.lastButton}.${Ts.disabled},& .${mr.middleButton}.${Ts.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${mr.grouped}`]:{[`&.${mr.selected} + .${mr.grouped}.${mr.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${mr.firstButton},& .${mr.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${mr.lastButton},& .${mr.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${mr.lastButton}.${Ts.disabled},& .${mr.middleButton}.${Ts.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),e8=S.forwardRef(function(e,r){const n=nt({props:e,name:"MuiToggleButtonGroup"}),{children:o,className:a,color:l="standard",disabled:c=!1,exclusive:u=!1,fullWidth:f=!1,onChange:h,orientation:v="horizontal",size:g="medium",value:y,...w}=n,x={...n,disabled:c,fullWidth:f,orientation:v,size:g},C=J$(x),j=S.useCallback((F,A)=>{if(!h)return;const H=y&&y.indexOf(A);let G;y&&H>=0?(G=y.slice(),G.splice(H,1)):G=y?y.concat(A):[A],h(F,G)},[h,y]),P=S.useCallback((F,A)=>{h&&h(F,y===A?null:A)},[h,y]),M=S.useMemo(()=>({className:C.grouped,onChange:u?P:j,value:y,size:g,fullWidth:f,color:l,disabled:c}),[C.grouped,u,P,j,y,g,f,l,c]),E=X2(o),R=E.length,I=F=>{const A=F===0,H=F===R-1;return A&&H?"":A?C.firstButton:H?C.lastButton:C.middleButton};return d.jsx(Z$,{role:"group",className:Ie(C.root,a),ref:r,ownerState:x,...w,children:d.jsx(pT.Provider,{value:M,children:E.map((F,A)=>d.jsx(fT.Provider,{value:I(A),children:F},A))})})}),t8=l2({themeId:Jo});/*!
308
- * mustache.js - Logic-less {{mustache}} templates with JavaScript
309
- * http://github.com/janl/mustache.js
310
- */var r8=Object.prototype.toString,uc=Array.isArray||function(e){return r8.call(e)==="[object Array]"};function O0(t){return typeof t=="function"}function n8(t){return uc(t)?"array":typeof t}function Ag(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Kw(t,e){return t!=null&&typeof t=="object"&&e in t}function o8(t,e){return t!=null&&typeof t!="object"&&t.hasOwnProperty&&t.hasOwnProperty(e)}var i8=RegExp.prototype.test;function a8(t,e){return i8.call(t,e)}var s8=/\S/;function l8(t){return!a8(s8,t)}var c8={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function u8(t){return String(t).replace(/[&<>"'`=\/]/g,function(r){return c8[r]})}var d8=/\s*/,p8=/\s+/,Qw=/\s*=/,f8=/\s*\}/,h8=/#|\^|\/|>|\{|&|=|!/;function m8(t,e){if(!t)return[];var r=!1,n=[],o=[],a=[],l=!1,c=!1,u="",f=0;function h(){if(l&&!c)for(;a.length;)delete o[a.pop()];else a=[];l=!1,c=!1}var v,g,y;function w(A){if(typeof A=="string"&&(A=A.split(p8,2)),!uc(A)||A.length!==2)throw new Error("Invalid tags: "+A);v=new RegExp(Ag(A[0])+"\\s*"),g=new RegExp("\\s*"+Ag(A[1])),y=new RegExp("\\s*"+Ag("}"+A[1]))}w(e||xo.tags);for(var x=new ld(t),C,j,P,M,E,R;!x.eos();){if(C=x.pos,P=x.scanUntil(v),P)for(var I=0,F=P.length;I<F;++I)M=P.charAt(I),l8(M)?(a.push(o.length),u+=M):(c=!0,r=!0,u+=" "),o.push(["text",M,C,C+1]),C+=1,M===`
311
- `&&(h(),u="",f=0,r=!1);if(!x.scan(v))break;if(l=!0,j=x.scan(h8)||"name",x.scan(d8),j==="="?(P=x.scanUntil(Qw),x.scan(Qw),x.scanUntil(g)):j==="{"?(P=x.scanUntil(y),x.scan(f8),x.scanUntil(g),j="&"):P=x.scanUntil(g),!x.scan(g))throw new Error("Unclosed tag at "+x.pos);if(j==">"?E=[j,P,C,x.pos,u,f,r]:E=[j,P,C,x.pos],f++,o.push(E),j==="#"||j==="^")n.push(E);else if(j==="/"){if(R=n.pop(),!R)throw new Error('Unopened section "'+P+'" at '+C);if(R[1]!==P)throw new Error('Unclosed section "'+R[1]+'" at '+C)}else j==="name"||j==="{"||j==="&"?c=!0:j==="="&&w(P)}if(h(),R=n.pop(),R)throw new Error('Unclosed section "'+R[1]+'" at '+x.pos);return y8(g8(o))}function g8(t){for(var e=[],r,n,o=0,a=t.length;o<a;++o)r=t[o],r&&(r[0]==="text"&&n&&n[0]==="text"?(n[1]+=r[1],n[3]=r[3]):(e.push(r),n=r));return e}function y8(t){for(var e=[],r=e,n=[],o,a,l=0,c=t.length;l<c;++l)switch(o=t[l],o[0]){case"#":case"^":r.push(o),n.push(o),r=o[4]=[];break;case"/":a=n.pop(),a[5]=o[2],r=n.length>0?n[n.length-1][4]:e;break;default:r.push(o)}return e}function ld(t){this.string=t,this.tail=t,this.pos=0}ld.prototype.eos=function(){return this.tail===""};ld.prototype.scan=function(e){var r=this.tail.match(e);if(!r||r.index!==0)return"";var n=r[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n};ld.prototype.scanUntil=function(e){var r=this.tail.search(e),n;switch(r){case-1:n=this.tail,this.tail="";break;case 0:n="";break;default:n=this.tail.substring(0,r),this.tail=this.tail.substring(r)}return this.pos+=n.length,n};function Kl(t,e){this.view=t,this.cache={".":this.view},this.parent=e}Kl.prototype.push=function(e){return new Kl(e,this)};Kl.prototype.lookup=function(e){var r=this.cache,n;if(r.hasOwnProperty(e))n=r[e];else{for(var o=this,a,l,c,u=!1;o;){if(e.indexOf(".")>0)for(a=o.view,l=e.split("."),c=0;a!=null&&c<l.length;)c===l.length-1&&(u=Kw(a,l[c])||o8(a,l[c])),a=a[l[c++]];else a=o.view[e],u=Kw(o.view,e);if(u){n=a;break}o=o.parent}r[e]=n}return O0(n)&&(n=n.call(this.view)),n};function $n(){this.templateCache={_cache:{},set:function(e,r){this._cache[e]=r},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}$n.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()};$n.prototype.parse=function(e,r){var n=this.templateCache,o=e+":"+(r||xo.tags).join(":"),a=typeof n<"u",l=a?n.get(o):void 0;return l==null&&(l=m8(e,r),a&&n.set(o,l)),l};$n.prototype.render=function(e,r,n,o){var a=this.getConfigTags(o),l=this.parse(e,a),c=r instanceof Kl?r:new Kl(r,void 0);return this.renderTokens(l,c,n,e,o)};$n.prototype.renderTokens=function(e,r,n,o,a){for(var l="",c,u,f,h=0,v=e.length;h<v;++h)f=void 0,c=e[h],u=c[0],u==="#"?f=this.renderSection(c,r,n,o,a):u==="^"?f=this.renderInverted(c,r,n,o,a):u===">"?f=this.renderPartial(c,r,n,a):u==="&"?f=this.unescapedValue(c,r):u==="name"?f=this.escapedValue(c,r,a):u==="text"&&(f=this.rawValue(c)),f!==void 0&&(l+=f);return l};$n.prototype.renderSection=function(e,r,n,o,a){var l=this,c="",u=r.lookup(e[1]);function f(g){return l.render(g,r,n,a)}if(u){if(uc(u))for(var h=0,v=u.length;h<v;++h)c+=this.renderTokens(e[4],r.push(u[h]),n,o,a);else if(typeof u=="object"||typeof u=="string"||typeof u=="number")c+=this.renderTokens(e[4],r.push(u),n,o,a);else if(O0(u)){if(typeof o!="string")throw new Error("Cannot use higher-order sections without the original template");u=u.call(r.view,o.slice(e[3],e[5]),f),u!=null&&(c+=u)}else c+=this.renderTokens(e[4],r,n,o,a);return c}};$n.prototype.renderInverted=function(e,r,n,o,a){var l=r.lookup(e[1]);if(!l||uc(l)&&l.length===0)return this.renderTokens(e[4],r,n,o,a)};$n.prototype.indentPartial=function(e,r,n){for(var o=r.replace(/[^ \t]/g,""),a=e.split(`
312
- `),l=0;l<a.length;l++)a[l].length&&(l>0||!n)&&(a[l]=o+a[l]);return a.join(`
313
- `)};$n.prototype.renderPartial=function(e,r,n,o){if(n){var a=this.getConfigTags(o),l=O0(n)?n(e[1]):n[e[1]];if(l!=null){var c=e[6],u=e[5],f=e[4],h=l;u==0&&f&&(h=this.indentPartial(l,f,c));var v=this.parse(h,a);return this.renderTokens(v,r,n,h,o)}}};$n.prototype.unescapedValue=function(e,r){var n=r.lookup(e[1]);if(n!=null)return n};$n.prototype.escapedValue=function(e,r,n){var o=this.getConfigEscape(n)||xo.escape,a=r.lookup(e[1]);if(a!=null)return typeof a=="number"&&o===xo.escape?String(a):o(a)};$n.prototype.rawValue=function(e){return e[1]};$n.prototype.getConfigTags=function(e){return uc(e)?e:e&&typeof e=="object"?e.tags:void 0};$n.prototype.getConfigEscape=function(e){if(e&&typeof e=="object"&&!uc(e))return e.escape};var xo={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(t){Du.templateCache=t},get templateCache(){return Du.templateCache}},Du=new $n;xo.clearCache=function(){return Du.clearCache()};xo.parse=function(e,r){return Du.parse(e,r)};xo.render=function(e,r,n,o){if(typeof e!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+n8(e)+'" was given as the first argument for mustache#render(template, view, partials)');return Du.render(e,r,n,o)};xo.escape=u8;xo.Scanner=ld;xo.Context=Kl;xo.Writer=$n;var Yw={};/*! *****************************************************************************
314
- Copyright (C) Microsoft. All rights reserved.
315
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
316
- this file except in compliance with the License. You may obtain a copy of the
317
- License at http://www.apache.org/licenses/LICENSE-2.0
318
-
319
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
320
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
321
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
322
- MERCHANTABLITY OR NON-INFRINGEMENT.
323
-
324
- See the Apache Version 2.0 License for specific language governing permissions
325
- and limitations under the License.
326
- ***************************************************************************** */var Jw;function v8(){if(Jw)return Yw;Jw=1;var t;return(function(e){(function(r){var n=typeof Hx=="object"?Hx:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),o=a(e);typeof n.Reflect>"u"?n.Reflect=e:o=a(n.Reflect,o),r(o);function a(l,c){return function(u,f){typeof l[u]!="function"&&Object.defineProperty(l,u,{configurable:!0,writable:!0,value:f}),c&&c(u,f)}}})(function(r){var n=Object.prototype.hasOwnProperty,o=typeof Symbol=="function",a=o&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",l=o&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",c=typeof Object.create=="function",u={__proto__:[]}instanceof Array,f=!c&&!u,h={create:c?function(){return Tt(Object.create(null))}:u?function(){return Tt({__proto__:null})}:function(){return Tt({})},has:f?function(ue,be){return n.call(ue,be)}:function(ue,be){return be in ue},get:f?function(ue,be){return n.call(ue,be)?ue[be]:void 0}:function(ue,be){return ue[be]}},v=Object.getPrototypeOf(Function),g=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",y=!g&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:ft(),w=!g&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Ue(),x=!g&&typeof WeakMap=="function"?WeakMap:Gt(),C=new x;function j(ue,be,Te,Me){if(re(Te)){if(!De(ue))throw new TypeError;if(!Oe(be))throw new TypeError;return N(ue,be)}else{if(!De(ue))throw new TypeError;if(!ne(be))throw new TypeError;if(!ne(Me)&&!re(Me)&&!ce(Me))throw new TypeError;return ce(Me)&&(Me=void 0),Te=se(Te),k(ue,be,Te,Me)}}r("decorate",j);function P(ue,be){function Te(Me,Ve){if(!ne(Me))throw new TypeError;if(!re(Ve)&&!Be(Ve))throw new TypeError;ee(ue,be,Me,Ve)}return Te}r("metadata",P);function M(ue,be,Te,Me){if(!ne(Te))throw new TypeError;return re(Me)||(Me=se(Me)),ee(ue,be,Te,Me)}r("defineMetadata",M);function E(ue,be,Te){if(!ne(be))throw new TypeError;return re(Te)||(Te=se(Te)),U(ue,be,Te)}r("hasMetadata",E);function R(ue,be,Te){if(!ne(be))throw new TypeError;return re(Te)||(Te=se(Te)),L(ue,be,Te)}r("hasOwnMetadata",R);function I(ue,be,Te){if(!ne(be))throw new TypeError;return re(Te)||(Te=se(Te)),W(ue,be,Te)}r("getMetadata",I);function F(ue,be,Te){if(!ne(be))throw new TypeError;return re(Te)||(Te=se(Te)),K(ue,be,Te)}r("getOwnMetadata",F);function A(ue,be){if(!ne(ue))throw new TypeError;return re(be)||(be=se(be)),Z(ue,be)}r("getMetadataKeys",A);function H(ue,be){if(!ne(ue))throw new TypeError;return re(be)||(be=se(be)),Q(ue,be)}r("getOwnMetadataKeys",H);function G(ue,be,Te){if(!ne(be))throw new TypeError;re(Te)||(Te=se(Te));var Me=q(be,Te,!1);if(re(Me)||!Me.delete(ue))return!1;if(Me.size>0)return!0;var Ve=C.get(be);return Ve.delete(Te),Ve.size>0||C.delete(be),!0}r("deleteMetadata",G);function N(ue,be){for(var Te=ue.length-1;Te>=0;--Te){var Me=ue[Te],Ve=Me(be);if(!re(Ve)&&!ce(Ve)){if(!Oe(Ve))throw new TypeError;be=Ve}}return be}function k(ue,be,Te,Me){for(var Ve=ue.length-1;Ve>=0;--Ve){var Qe=ue[Ve],oe=Qe(be,Te,Me);if(!re(oe)&&!ce(oe)){if(!ne(oe))throw new TypeError;Me=oe}}return Me}function q(ue,be,Te){var Me=C.get(ue);if(re(Me)){if(!Te)return;Me=new y,C.set(ue,Me)}var Ve=Me.get(be);if(re(Ve)){if(!Te)return;Ve=new y,Me.set(be,Ve)}return Ve}function U(ue,be,Te){var Me=L(ue,be,Te);if(Me)return!0;var Ve=We(be);return ce(Ve)?!1:U(ue,Ve,Te)}function L(ue,be,Te){var Me=q(be,Te,!1);return re(Me)?!1:Ce(Me.has(ue))}function W(ue,be,Te){var Me=L(ue,be,Te);if(Me)return K(ue,be,Te);var Ve=We(be);if(!ce(Ve))return W(ue,Ve,Te)}function K(ue,be,Te){var Me=q(be,Te,!1);if(!re(Me))return Me.get(ue)}function ee(ue,be,Te,Me){var Ve=q(Te,Me,!0);Ve.set(ue,be)}function Z(ue,be){var Te=Q(ue,be),Me=We(ue);if(Me===null)return Te;var Ve=Z(Me,be);if(Ve.length<=0)return Te;if(Te.length<=0)return Ve;for(var Qe=new w,oe=[],ke=0,$e=Te;ke<$e.length;ke++){var Fe=$e[ke],xt=Qe.has(Fe);xt||(Qe.add(Fe),oe.push(Fe))}for(var Xt=0,dr=Ve;Xt<dr.length;Xt++){var Fe=dr[Xt],xt=Qe.has(Fe);xt||(Qe.add(Fe),oe.push(Fe))}return oe}function Q(ue,be){var Te=[],Me=q(ue,be,!1);if(re(Me))return Te;for(var Ve=Me.keys(),Qe=Ke(Ve),oe=0;;){var ke=je(Qe);if(!ke)return Te.length=oe,Te;var $e=pt(ke);try{Te[oe]=$e}catch(Fe){try{ht(Qe)}finally{throw Fe}}oe++}}function X(ue){if(ue===null)return 1;switch(typeof ue){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return ue===null?1:6;default:return 6}}function re(ue){return ue===void 0}function ce(ue){return ue===null}function Y(ue){return typeof ue=="symbol"}function ne(ue){return typeof ue=="object"?ue!==null:typeof ue=="function"}function J(ue,be){switch(X(ue)){case 0:return ue;case 1:return ue;case 2:return ue;case 3:return ue;case 4:return ue;case 5:return ue}var Te="string",Me=_e(ue,a);if(Me!==void 0){var Ve=Me.call(ue,Te);if(ne(Ve))throw new TypeError;return Ve}return de(ue)}function de(ue,be){var Te,Me,Ve;{var Qe=ue.toString;if(Ne(Qe)){var Me=Qe.call(ue);if(!ne(Me))return Me}var Te=ue.valueOf;if(Ne(Te)){var Me=Te.call(ue);if(!ne(Me))return Me}}throw new TypeError}function Ce(ue){return!!ue}function me(ue){return""+ue}function se(ue){var be=J(ue);return Y(be)?be:me(be)}function De(ue){return Array.isArray?Array.isArray(ue):ue instanceof Object?ue instanceof Array:Object.prototype.toString.call(ue)==="[object Array]"}function Ne(ue){return typeof ue=="function"}function Oe(ue){return typeof ue=="function"}function Be(ue){switch(X(ue)){case 3:return!0;case 4:return!0;default:return!1}}function _e(ue,be){var Te=ue[be];if(Te!=null){if(!Ne(Te))throw new TypeError;return Te}}function Ke(ue){var be=_e(ue,l);if(!Ne(be))throw new TypeError;var Te=be.call(ue);if(!ne(Te))throw new TypeError;return Te}function pt(ue){return ue.value}function je(ue){var be=ue.next();return be.done?!1:be}function ht(ue){var be=ue.return;be&&be.call(ue)}function We(ue){var be=Object.getPrototypeOf(ue);if(typeof ue!="function"||ue===v||be!==v)return be;var Te=ue.prototype,Me=Te&&Object.getPrototypeOf(Te);if(Me==null||Me===Object.prototype)return be;var Ve=Me.constructor;return typeof Ve!="function"||Ve===ue?be:Ve}function ft(){var ue={},be=[],Te=(function(){function oe(ke,$e,Fe){this._index=0,this._keys=ke,this._values=$e,this._selector=Fe}return oe.prototype["@@iterator"]=function(){return this},oe.prototype[l]=function(){return this},oe.prototype.next=function(){var ke=this._index;if(ke>=0&&ke<this._keys.length){var $e=this._selector(this._keys[ke],this._values[ke]);return ke+1>=this._keys.length?(this._index=-1,this._keys=be,this._values=be):this._index++,{value:$e,done:!1}}return{value:void 0,done:!0}},oe.prototype.throw=function(ke){throw this._index>=0&&(this._index=-1,this._keys=be,this._values=be),ke},oe.prototype.return=function(ke){return this._index>=0&&(this._index=-1,this._keys=be,this._values=be),{value:ke,done:!0}},oe})();return(function(){function oe(){this._keys=[],this._values=[],this._cacheKey=ue,this._cacheIndex=-2}return Object.defineProperty(oe.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),oe.prototype.has=function(ke){return this._find(ke,!1)>=0},oe.prototype.get=function(ke){var $e=this._find(ke,!1);return $e>=0?this._values[$e]:void 0},oe.prototype.set=function(ke,$e){var Fe=this._find(ke,!0);return this._values[Fe]=$e,this},oe.prototype.delete=function(ke){var $e=this._find(ke,!1);if($e>=0){for(var Fe=this._keys.length,xt=$e+1;xt<Fe;xt++)this._keys[xt-1]=this._keys[xt],this._values[xt-1]=this._values[xt];return this._keys.length--,this._values.length--,ke===this._cacheKey&&(this._cacheKey=ue,this._cacheIndex=-2),!0}return!1},oe.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=ue,this._cacheIndex=-2},oe.prototype.keys=function(){return new Te(this._keys,this._values,Me)},oe.prototype.values=function(){return new Te(this._keys,this._values,Ve)},oe.prototype.entries=function(){return new Te(this._keys,this._values,Qe)},oe.prototype["@@iterator"]=function(){return this.entries()},oe.prototype[l]=function(){return this.entries()},oe.prototype._find=function(ke,$e){return this._cacheKey!==ke&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=ke)),this._cacheIndex<0&&$e&&(this._cacheIndex=this._keys.length,this._keys.push(ke),this._values.push(void 0)),this._cacheIndex},oe})();function Me(oe,ke){return oe}function Ve(oe,ke){return ke}function Qe(oe,ke){return[oe,ke]}}function Ue(){return(function(){function ue(){this._map=new y}return Object.defineProperty(ue.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),ue.prototype.has=function(be){return this._map.has(be)},ue.prototype.add=function(be){return this._map.set(be,be),this},ue.prototype.delete=function(be){return this._map.delete(be)},ue.prototype.clear=function(){this._map.clear()},ue.prototype.keys=function(){return this._map.keys()},ue.prototype.values=function(){return this._map.values()},ue.prototype.entries=function(){return this._map.entries()},ue.prototype["@@iterator"]=function(){return this.keys()},ue.prototype[l]=function(){return this.keys()},ue})()}function Gt(){var ue=16,be=h.create(),Te=Me();return(function(){function $e(){this._key=Me()}return $e.prototype.has=function(Fe){var xt=Ve(Fe,!1);return xt!==void 0?h.has(xt,this._key):!1},$e.prototype.get=function(Fe){var xt=Ve(Fe,!1);return xt!==void 0?h.get(xt,this._key):void 0},$e.prototype.set=function(Fe,xt){var Xt=Ve(Fe,!0);return Xt[this._key]=xt,this},$e.prototype.delete=function(Fe){var xt=Ve(Fe,!1);return xt!==void 0?delete xt[this._key]:!1},$e.prototype.clear=function(){this._key=Me()},$e})();function Me(){var $e;do $e="@@WeakMap@@"+ke();while(h.has(be,$e));return be[$e]=!0,$e}function Ve($e,Fe){if(!n.call($e,Te)){if(!Fe)return;Object.defineProperty($e,Te,{value:h.create()})}return $e[Te]}function Qe($e,Fe){for(var xt=0;xt<Fe;++xt)$e[xt]=Math.random()*255|0;return $e}function oe($e){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array($e)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array($e)):Qe(new Uint8Array($e),$e):Qe(new Array($e),$e)}function ke(){var $e=oe(ue);$e[6]=$e[6]&79|64,$e[8]=$e[8]&191|128;for(var Fe="",xt=0;xt<ue;++xt){var Xt=$e[xt];(xt===4||xt===6||xt===8)&&(Fe+="-"),Xt<16&&(Fe+="0"),Fe+=Xt.toString(16).toLowerCase()}return Fe}}function Tt(ue){return ue.__=void 0,delete ue.__,ue}})})(t||(t={})),Yw}v8();var cd=(function(){function t(e){this.groups=[],this.each=!1,this.context=void 0,this.type=e.type,this.name=e.name,this.target=e.target,this.propertyName=e.propertyName,this.constraints=e==null?void 0:e.constraints,this.constraintCls=e.constraintCls,this.validationTypeOptions=e.validationTypeOptions,e.validationOptions&&(this.message=e.validationOptions.message,this.groups=e.validationOptions.groups,this.always=e.validationOptions.always,this.each=e.validationOptions.each,this.context=e.validationOptions.context)}return t})(),b8=(function(){function t(){}return t.prototype.transform=function(e){var r=[];return Object.keys(e.properties).forEach(function(n){e.properties[n].forEach(function(o){var a={message:o.message,groups:o.groups,always:o.always,each:o.each},l={type:o.type,name:o.name,target:e.name,propertyName:n,constraints:o.constraints,validationTypeOptions:o.options,validationOptions:a};r.push(new cd(l))})}),r},t})();function x8(t){return t instanceof Map?Array.from(t.values()):Array.isArray(t)?t:Array.from(t)}function w8(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof window<"u")return window;if(typeof self<"u")return self}function _g(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var S8=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Zw=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,a=[],l;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)a.push(o.value)}catch(c){l={error:c}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(l)throw l.error}}return a},C8=function(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,a;n<o;n++)(a||!(n in e))&&(a||(a=Array.prototype.slice.call(e,0,n)),a[n]=e[n]);return t.concat(a||Array.prototype.slice.call(e))},hT=(function(){function t(){this.validationMetadatas=new Map,this.constraintMetadatas=new Map}return Object.defineProperty(t.prototype,"hasValidationMetaData",{get:function(){return!!this.validationMetadatas.size},enumerable:!1,configurable:!0}),t.prototype.addValidationSchema=function(e){var r=this,n=new b8().transform(e);n.forEach(function(o){return r.addValidationMetadata(o)})},t.prototype.addValidationMetadata=function(e){var r=this.validationMetadatas.get(e.target);r?r.push(e):this.validationMetadatas.set(e.target,[e])},t.prototype.addConstraintMetadata=function(e){var r=this.constraintMetadatas.get(e.target);r?r.push(e):this.constraintMetadatas.set(e.target,[e])},t.prototype.groupByPropertyName=function(e){var r={};return e.forEach(function(n){r[n.propertyName]||(r[n.propertyName]=[]),r[n.propertyName].push(n)}),r},t.prototype.getTargetValidationMetadatas=function(e,r,n,o,a){var l,c,u=function(E){return typeof E.always<"u"?E.always:E.groups&&E.groups.length?!1:n},f=function(E){return!!(o&&(!a||!a.length)&&E.groups&&E.groups.length)},h=this.validationMetadatas.get(e)||[],v=h.filter(function(E){return E.target!==e&&E.target!==r?!1:u(E)?!0:f(E)?!1:a&&a.length>0?E.groups&&!!E.groups.find(function(R){return a.indexOf(R)!==-1}):!0}),g=[];try{for(var y=S8(this.validationMetadatas.entries()),w=y.next();!w.done;w=y.next()){var x=Zw(w.value,2),C=x[0],j=x[1];e.prototype instanceof C&&g.push.apply(g,C8([],Zw(j),!1))}}catch(E){l={error:E}}finally{try{w&&!w.done&&(c=y.return)&&c.call(y)}finally{if(l)throw l.error}}var P=g.filter(function(E){return typeof E.target=="string"||E.target===e||E.target instanceof Function&&!(e.prototype instanceof E.target)?!1:u(E)?!0:f(E)?!1:a&&a.length>0?E.groups&&!!E.groups.find(function(R){return a.indexOf(R)!==-1}):!0}),M=P.filter(function(E){return!v.find(function(R){return R.propertyName===E.propertyName&&R.type===E.type})});return v.concat(M)},t.prototype.getTargetValidatorConstraints=function(e){return this.constraintMetadatas.get(e)||[]},t})();function Rs(){var t=w8();return t.classValidatorMetadataStorage||(t.classValidatorMetadataStorage=new hT),t.classValidatorMetadataStorage}var eS=(function(){function t(){}return t.prototype.toString=function(e,r,n,o){var a=this;e===void 0&&(e=!1),r===void 0&&(r=!1),n===void 0&&(n=""),o===void 0&&(o=!1);var l=e?"\x1B[1m":"",c=e?"\x1B[22m":"",u=function(){var v;return(o?Object.values:Object.keys)((v=a.constraints)!==null&&v!==void 0?v:{}).join(", ")},f=function(v){return" - property ".concat(l).concat(n).concat(v).concat(c," has failed the following constraints: ").concat(l).concat(u()).concat(c,`
327
- `)};if(r){var h=Number.isInteger(+this.property)?"[".concat(this.property,"]"):"".concat(n?".":"").concat(this.property);return this.constraints?f(h):this.children?this.children.map(function(v){return v.toString(e,!0,"".concat(n).concat(h),o)}).join(""):""}else return"An instance of ".concat(l).concat(this.target?this.target.constructor.name:"an object").concat(c,` has failed the validation:
328
- `)+(this.constraints?f(this.property):"")+(this.children?this.children.map(function(v){return v.toString(e,!0,a.property,o)}).join(""):"")},t})(),wn=(function(){function t(){}return t.isValid=function(e){var r=this;return e!=="isValid"&&e!=="getMessage"&&Object.keys(this).map(function(n){return r[n]}).indexOf(e)!==-1},t.CUSTOM_VALIDATION="customValidation",t.NESTED_VALIDATION="nestedValidation",t.PROMISE_VALIDATION="promiseValidation",t.CONDITIONAL_VALIDATION="conditionalValidation",t.WHITELIST="whitelistValidation",t.IS_DEFINED="isDefined",t})();function T8(t){return Array.isArray(t)?t.join(", "):(typeof t=="symbol"&&(t=t.description),"".concat(t))}var E8=(function(){function t(){}return t.replaceMessageSpecialTokens=function(e,r){var n;return e instanceof Function?n=e(r):typeof e=="string"&&(n=e),n&&Array.isArray(r.constraints)&&r.constraints.forEach(function(o,a){n=n.replace(new RegExp("\\$constraint".concat(a+1),"g"),T8(o))}),n&&r.value!==void 0&&r.value!==null&&["string","boolean","number"].includes(typeof r.value)&&(n=n.replace(/\$value/g,r.value)),n&&(n=n.replace(/\$property/g,r.property)),n&&(n=n.replace(/\$target/g,r.targetName)),n},t})(),ru=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,a=[],l;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)a.push(o.value)}catch(c){l={error:c}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(l)throw l.error}}return a},tS=(function(){function t(e,r){this.validator=e,this.validatorOptions=r,this.awaitingPromises=[],this.ignoreAsyncValidations=!1,this.metadataStorage=Rs()}return t.prototype.execute=function(e,r,n){var o=this,a,l;!this.metadataStorage.hasValidationMetaData&&((a=this.validatorOptions)===null||a===void 0?void 0:a.enableDebugMessages)===!0&&console.warn(`No validation metadata found. No validation will be performed. There are multiple possible reasons:
329
- - There may be multiple class-validator versions installed. You will need to flatten your dependencies to fix the issue.
330
- - This validation runs before any file with validation decorator was parsed by NodeJS.`);var c=this.validatorOptions?this.validatorOptions.groups:void 0,u=this.validatorOptions&&this.validatorOptions.strictGroups||!1,f=this.validatorOptions&&this.validatorOptions.always||!1,h=((l=this.validatorOptions)===null||l===void 0?void 0:l.forbidUnknownValues)===void 0||this.validatorOptions.forbidUnknownValues!==!1,v=this.metadataStorage.getTargetValidationMetadatas(e.constructor,r,f,u,c),g=this.metadataStorage.groupByPropertyName(v);if(h&&!v.length){var y=new eS;(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.target===void 0||this.validatorOptions.validationError.target===!0)&&(y.target=e),y.value=void 0,y.property=void 0,y.children=[],y.constraints={unknownValue:"an unknown value was passed to the validate function"},n.push(y);return}this.validatorOptions&&this.validatorOptions.whitelist&&this.whitelist(e,g,n),Object.keys(g).forEach(function(w){var x=e[w],C=g[w].filter(function(P){return P.type===wn.IS_DEFINED}),j=g[w].filter(function(P){return P.type!==wn.IS_DEFINED&&P.type!==wn.WHITELIST});x instanceof Promise&&j.find(function(P){return P.type===wn.PROMISE_VALIDATION})?o.awaitingPromises.push(x.then(function(P){o.performValidations(e,P,w,C,j,n)})):o.performValidations(e,x,w,C,j,n)})},t.prototype.whitelist=function(e,r,n){var o=this,a=[];Object.keys(e).forEach(function(l){(!r[l]||r[l].length===0)&&a.push(l)}),a.length>0&&(this.validatorOptions&&this.validatorOptions.forbidNonWhitelisted?a.forEach(function(l){var c,u=o.generateValidationError(e,e[l],l);u.constraints=(c={},c[wn.WHITELIST]="property ".concat(l," should not exist"),c),u.children=void 0,n.push(u)}):a.forEach(function(l){return delete e[l]}))},t.prototype.stripEmptyErrors=function(e){var r=this;return e.filter(function(n){if(n.children&&(n.children=r.stripEmptyErrors(n.children)),Object.keys(n.constraints).length===0){if(n.children.length===0)return!1;delete n.constraints}return!0})},t.prototype.performValidations=function(e,r,n,o,a,l){var c=a.filter(function(g){return g.type===wn.CUSTOM_VALIDATION}),u=a.filter(function(g){return g.type===wn.NESTED_VALIDATION}),f=a.filter(function(g){return g.type===wn.CONDITIONAL_VALIDATION}),h=this.generateValidationError(e,r,n);l.push(h);var v=this.conditionalValidations(e,r,f);v&&(this.customValidations(e,r,o,h),this.mapContexts(e,r,o,h),!(r===void 0&&this.validatorOptions&&this.validatorOptions.skipUndefinedProperties===!0)&&(r===null&&this.validatorOptions&&this.validatorOptions.skipNullProperties===!0||r==null&&this.validatorOptions&&this.validatorOptions.skipMissingProperties===!0||(this.customValidations(e,r,c,h),this.nestedValidations(r,u,h),this.mapContexts(e,r,a,h),this.mapContexts(e,r,c,h))))},t.prototype.generateValidationError=function(e,r,n){var o=new eS;return(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.target===void 0||this.validatorOptions.validationError.target===!0)&&(o.target=e),(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.value===void 0||this.validatorOptions.validationError.value===!0)&&(o.value=r),o.property=n,o.children=[],o.constraints={},o},t.prototype.conditionalValidations=function(e,r,n){return n.map(function(o){return o.constraints[0](e,r)}).reduce(function(o,a){return o&&a},!0)},t.prototype.customValidations=function(e,r,n,o){var a=this;n.forEach(function(l){a.metadataStorage.getTargetValidatorConstraints(l.constraintCls).forEach(function(c){if(!(c.async&&a.ignoreAsyncValidations)&&!(a.validatorOptions&&a.validatorOptions.stopAtFirstError&&Object.keys(o.constraints||{}).length>0)){var u={targetName:e.constructor?e.constructor.name:void 0,property:l.propertyName,object:e,value:r,constraints:l.constraints};if(!l.each||!(Array.isArray(r)||r instanceof Set||r instanceof Map)){var f=c.instance.validate(r,u);if(_g(f)){var h=f.then(function(R){if(!R){var I=ru(a.createValidationError(e,r,l,c),2),F=I[0],A=I[1];o.constraints[F]=A,l.context&&(o.contexts||(o.contexts={}),o.contexts[F]=Object.assign(o.contexts[F]||{},l.context))}});a.awaitingPromises.push(h)}else if(!f){var v=ru(a.createValidationError(e,r,l,c),2),g=v[0],y=v[1];o.constraints[g]=y}return}var w=x8(r),x=w.map(function(R){return c.instance.validate(R,u)}),C=x.some(function(R){return _g(R)});if(C){var j=x.map(function(R){return _g(R)?R:Promise.resolve(R)}),P=Promise.all(j).then(function(R){var I=R.every(function(G){return G});if(!I){var F=ru(a.createValidationError(e,r,l,c),2),A=F[0],H=F[1];o.constraints[A]=H,l.context&&(o.contexts||(o.contexts={}),o.contexts[A]=Object.assign(o.contexts[A]||{},l.context))}});a.awaitingPromises.push(P);return}var M=x.every(function(R){return R});if(!M){var E=ru(a.createValidationError(e,r,l,c),2),g=E[0],y=E[1];o.constraints[g]=y}}})})},t.prototype.nestedValidations=function(e,r,n){var o=this;e!==void 0&&r.forEach(function(a){if(!(a.type!==wn.NESTED_VALIDATION&&a.type!==wn.PROMISE_VALIDATION)&&!(o.validatorOptions&&o.validatorOptions.stopAtFirstError&&Object.keys(n.constraints||{}).length>0))if(Array.isArray(e)||e instanceof Set||e instanceof Map){var l=e instanceof Set?Array.from(e):e;l.forEach(function(v,g){o.performValidations(e,v,g.toString(),[],r,n.children)})}else if(e instanceof Object){var c=typeof a.target=="string"?a.target:a.target.name;o.execute(e,c,n.children)}else{var u=ru(o.createValidationError(a.target,e,a),2),f=u[0],h=u[1];n.constraints[f]=h}})},t.prototype.mapContexts=function(e,r,n,o){var a=this;return n.forEach(function(l){if(l.context){var c=void 0;if(l.type===wn.CUSTOM_VALIDATION){var u=a.metadataStorage.getTargetValidatorConstraints(l.constraintCls);c=u[0]}var f=a.getConstraintType(l,c);o.constraints[f]&&(o.contexts||(o.contexts={}),o.contexts[f]=Object.assign(o.contexts[f]||{},l.context))}})},t.prototype.createValidationError=function(e,r,n,o){var a=e.constructor?e.constructor.name:void 0,l=this.getConstraintType(n,o),c={targetName:a,property:n.propertyName,object:e,value:r,constraints:n.constraints},u=n.message||"";!n.message&&(!this.validatorOptions||this.validatorOptions&&!this.validatorOptions.dismissDefaultMessages)&&o&&o.instance.defaultMessage instanceof Function&&(u=o.instance.defaultMessage(c));var f=E8.replaceMessageSpecialTokens(u,c);return[l,f]},t.prototype.getConstraintType=function(e,r){var n=r&&r.name?r.name:e.type;return n},t})(),k8=function(t,e,r,n){function o(a){return a instanceof r?a:new r(function(l){l(a)})}return new(r||(r=Promise))(function(a,l){function c(h){try{f(n.next(h))}catch(v){l(v)}}function u(h){try{f(n.throw(h))}catch(v){l(v)}}function f(h){h.done?a(h.value):o(h.value).then(c,u)}f((n=n.apply(t,e||[])).next())})},P8=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,l;return l={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function c(f){return function(h){return u([f,h])}}function u(f){if(n)throw new TypeError("Generator is already executing.");for(;l&&(l=0,f[0]&&(r=0)),r;)try{if(n=1,o&&(a=f[0]&2?o.return:f[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,f[1])).done)return a;switch(o=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,o=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){r.label=f[1];break}if(f[0]===6&&r.label<a[1]){r.label=a[1],a=f;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(f);break}a[2]&&r.ops.pop(),r.trys.pop();continue}f=e.call(t,r)}catch(h){f=[6,h],o=0}finally{n=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},rS=(function(){function t(){}return t.prototype.validate=function(e,r,n){return this.coreValidate(e,r,n)},t.prototype.validateOrReject=function(e,r,n){return k8(this,void 0,void 0,function(){var o;return P8(this,function(a){switch(a.label){case 0:return[4,this.coreValidate(e,r,n)];case 1:return o=a.sent(),o.length?[2,Promise.reject(o)]:[2]}})})},t.prototype.validateSync=function(e,r,n){var o=typeof e=="string"?r:e,a=typeof e=="string"?n:r,l=typeof e=="string"?e:void 0,c=new tS(this,a);c.ignoreAsyncValidations=!0;var u=[];return c.execute(o,l,u),c.stripEmptyErrors(u)},t.prototype.coreValidate=function(e,r,n){var o=typeof e=="string"?r:e,a=typeof e=="string"?n:r,l=typeof e=="string"?e:void 0,c=new tS(this,a),u=[];return c.execute(o,l,u),Promise.all(c.awaitingPromises).then(function(){return c.stripEmptyErrors(u)})},t})(),j8=new((function(){function t(){this.instances=[]}return t.prototype.get=function(e){var r=this.instances.find(function(n){return n.type===e});return r||(r={type:e,object:new e},this.instances.push(r)),r.object},t})());function kf(t){return j8.get(t)}var M8=(function(){function t(e,r,n){n===void 0&&(n=!1),this.target=e,this.name=r,this.async=n}return Object.defineProperty(t.prototype,"instance",{get:function(){return kf(this.target)},enumerable:!1,configurable:!0}),t})();function R8(t){var e;if(t.validator instanceof Function){e=t.validator;var r=kf(hT).getTargetValidatorConstraints(t.validator);if(r.length>1)throw"More than one implementation of ValidatorConstraintInterface found for validator on: ".concat(t.target.name,":").concat(t.propertyName)}else{var n=t.validator;e=(function(){function a(){}return a.prototype.validate=function(l,c){return n.validate(l,c)},a.prototype.defaultMessage=function(l){return n.defaultMessage?n.defaultMessage(l):""},a})(),Rs().addConstraintMetadata(new M8(e,t.name,t.async))}var o={type:t.name&&wn.isValid(t.name)?t.name:wn.CUSTOM_VALIDATION,name:t.name,target:t.target,propertyName:t.propertyName,validationOptions:t.options,constraintCls:e,constraints:t.constraints};Rs().addValidationMetadata(new cd(o))}function ii(t,e){return function(r){var n=e&&e.each?"each value in ":"";return t(n,r)}}function ai(t,e){return function(r,n){R8({name:t.name,target:r.constructor,propertyName:n,options:e,constraints:t.constraints,validator:t.validator})}}var I8="isOptional";function V(t){return function(e,r){var n={type:wn.CONDITIONAL_VALIDATION,name:I8,target:e.constructor,propertyName:r,constraints:[function(o,a){return o[r]!==null&&o[r]!==void 0}],validationOptions:t};Rs().addValidationMetadata(new cd(n))}}function $o(t,e){return function(r,n){var o={type:wn.CONDITIONAL_VALIDATION,target:r.constructor,propertyName:n,constraints:[t],validationOptions:e};Rs().addValidationMetadata(new cd(o))}}var Cy=function(){return Cy=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Cy.apply(this,arguments)};function ro(t){var e=Cy({},t),r=e.each?"each value in ":"";return e.message=e.message||r+"nested property $property must be either object or array",function(n,o){var a={type:wn.NESTED_VALIDATION,target:n.constructor,propertyName:o,validationOptions:e};Rs().addValidationMetadata(new cd(a))}}var Lp={exports:{}},nS;function N0(){return nS||(nS=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;function r(n){if(n==null)throw new TypeError("Expected a string but received a ".concat(n));if(n.constructor.name!=="String")throw new TypeError("Expected a string but received a ".concat(n.constructor.name))}t.exports=e.default,t.exports.default=e.default})(Lp,Lp.exports)),Lp.exports}var Op={exports:{}},oS;function mT(){return oS||(oS=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;function r(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;for(var a in o)typeof n[a]>"u"&&(n[a]=o[a]);return n}t.exports=e.default,t.exports.default=e.default})(Op,Op.exports)),Op.exports}var Np={exports:{}},iS;function A8(){return iS||(iS=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(o,a){return o.indexOf(a)!==-1};e.default=r,t.exports=e.default,t.exports.default=e.default})(Np,Np.exports)),Np.exports}var _8="isNotEmpty";function L8(t){return t!==""&&t!==null&&t!==void 0}function Ya(t){return ai({name:_8,validator:{validate:function(e,r){return L8(e)},defaultMessage:ii(function(e){return e+"$property should not be empty"},t)}},t)}var O8="isIn";function N8(t,e){return Array.isArray(e)&&e.some(function(r){return r===t})}function He(t,e){return ai({name:O8,constraints:[t],validator:{validate:function(r,n){return N8(r,n==null?void 0:n.constraints[0])},defaultMessage:ii(function(r){return r+"$property must be one of the following values: $constraint1"},e)}},e)}var $8="max";function B8(t,e){return typeof t=="number"&&typeof e=="number"&&t<=e}function Bs(t,e){return ai({name:$8,constraints:[t],validator:{validate:function(r,n){return B8(r,n==null?void 0:n.constraints[0])},defaultMessage:ii(function(r){return r+"$property must not be greater than $constraint1"},e)}},e)}var z8="min";function D8(t,e){return typeof t=="number"&&typeof e=="number"&&t>=e}function no(t,e){return ai({name:z8,constraints:[t],validator:{validate:function(r,n){return D8(r,n==null?void 0:n.constraints[0])},defaultMessage:ii(function(r){return r+"$property must not be less than $constraint1"},e)}},e)}var $p={exports:{}},aS;function F8(){return aS||(aS=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function r(o){return Object.prototype.toString.call(o)==="[object RegExp]"}function n(o,a){for(var l=0;l<a.length;l++){var c=a[l];if(o===c||r(c)&&c.test(o))return!0}return!1}t.exports=e.default,t.exports.default=e.default})($p,$p.exports)),$p.exports}var Bp={exports:{}},sS;function H8(){return sS||(sS=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=o(N0()),n=o(mT());function o(c){return c&&c.__esModule?c:{default:c}}var a={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function l(c,u){(0,r.default)(c),u=(0,n.default)(u,a),u.allow_trailing_dot&&c[c.length-1]==="."&&(c=c.substring(0,c.length-1)),u.allow_wildcard===!0&&c.indexOf("*.")===0&&(c=c.substring(2));var f=c.split("."),h=f[f.length-1];return u.require_tld&&(f.length<2||!u.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(h)||/\s/.test(h))||!u.allow_numeric_tld&&/^\d+$/.test(h)?!1:f.every(function(v){return!(v.length>63&&!u.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(v)||/[\uff01-\uff5e]/.test(v)||/^-|-$/.test(v)||!u.allow_underscores&&/_/.test(v))})}t.exports=e.default,t.exports.default=e.default})(Bp,Bp.exports)),Bp.exports}var zp={exports:{}},lS;function U8(){return lS||(lS=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=h;var r=n(N0());function n(v){return v&&v.__esModule?v:{default:v}}function o(v){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},o(v)}var a="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",l="(".concat(a,"[.]){3}").concat(a),c=new RegExp("^".concat(l,"$")),u="(?:[0-9a-fA-F]{1,4})",f=new RegExp("^("+"(?:".concat(u,":){7}(?:").concat(u,"|:)|")+"(?:".concat(u,":){6}(?:").concat(l,"|:").concat(u,"|:)|")+"(?:".concat(u,":){5}(?::").concat(l,"|(:").concat(u,"){1,2}|:)|")+"(?:".concat(u,":){4}(?:(:").concat(u,"){0,1}:").concat(l,"|(:").concat(u,"){1,3}|:)|")+"(?:".concat(u,":){3}(?:(:").concat(u,"){0,2}:").concat(l,"|(:").concat(u,"){1,4}|:)|")+"(?:".concat(u,":){2}(?:(:").concat(u,"){0,3}:").concat(l,"|(:").concat(u,"){1,5}|:)|")+"(?:".concat(u,":){1}(?:(:").concat(u,"){0,4}:").concat(l,"|(:").concat(u,"){1,6}|:)|")+"(?::((?::".concat(u,"){0,5}:").concat(l,"|(?::").concat(u,"){1,7}|:))")+")(%[0-9a-zA-Z.]{1,})?$");function h(v){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,r.default)(v);var y=(o(g)==="object"?g.version:arguments[1])||"";return y?y.toString()==="4"?c.test(v):y.toString()==="6"?f.test(v):!1:h(v,{version:4})||h(v,{version:6})}t.exports=e.default,t.exports.default=e.default})(zp,zp.exports)),zp.exports}var Dp={exports:{}},cS;function V8(){return cS||(cS=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=j;var r=u(N0()),n=u(F8()),o=u(A8()),a=u(H8()),l=u(U8()),c=u(mT());function u(P){return P&&P.__esModule?P:{default:P}}function f(P,M){return w(P)||y(P,M)||v(P,M)||h()}function h(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
331
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v(P,M){if(P){if(typeof P=="string")return g(P,M);var E={}.toString.call(P).slice(8,-1);return E==="Object"&&P.constructor&&(E=P.constructor.name),E==="Map"||E==="Set"?Array.from(P):E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E)?g(P,M):void 0}}function g(P,M){(M==null||M>P.length)&&(M=P.length);for(var E=0,R=Array(M);E<M;E++)R[E]=P[E];return R}function y(P,M){var E=P==null?null:typeof Symbol<"u"&&P[Symbol.iterator]||P["@@iterator"];if(E!=null){var R,I,F,A,H=[],G=!0,N=!1;try{if(F=(E=E.call(P)).next,M!==0)for(;!(G=(R=F.call(E)).done)&&(H.push(R.value),H.length!==M);G=!0);}catch(k){N=!0,I=k}finally{try{if(!G&&E.return!=null&&(A=E.return(),Object(A)!==A))return}finally{if(N)throw I}}return H}}function w(P){if(Array.isArray(P))return P}var x={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0,max_allowed_length:2084},C=/^\[([^\]]+)\](?::([0-9]+))?$/;function j(P,M){if((0,r.default)(P),!P||/[\s<>]/.test(P)||P.indexOf("mailto:")===0||(M=(0,c.default)(M,x),M.validate_length&&P.length>M.max_allowed_length)||!M.allow_fragments&&(0,o.default)(P,"#")||!M.allow_query_components&&((0,o.default)(P,"?")||(0,o.default)(P,"&")))return!1;var E,R,I,F,A,H,G,N;G=P.split("#"),P=G.shift(),G=P.split("?"),P=G.shift();var k=P.match(/^([a-z][a-z0-9+\-.]*):/i),q=!1,U=function(De){return q=!0,E=De.toLowerCase(),M.require_valid_protocol&&M.protocols.indexOf(E)===-1?!1:P.substring(k[0].length)};if(k){var L=k[1],W=P.substring(k[0].length),K=W.slice(0,2)==="//";if(K){if(P=U(L),P===!1)return!1}else{var ee=W.indexOf("/"),Z=ee===-1?W:W.substring(0,ee),Q=Z.indexOf("@");if(Q!==-1){var X=Z.substring(0,Q),re=/^[a-zA-Z0-9\-_.%:]*$/,ce=re.test(X);if(ce){if(M.require_protocol)return!1}else if(P=U(L),P===!1)return!1}else{var Y=/^[0-9]/.test(W);if(Y){if(M.require_protocol)return!1}else if(P=U(L),P===!1)return!1}}}else if(M.require_protocol)return!1;if(P.slice(0,2)==="//"){if(!q&&!M.allow_protocol_relative_urls)return!1;P=P.slice(2)}if(P==="")return!1;if(G=P.split("/"),P=G.shift(),P===""&&!M.require_host)return!0;if(G=P.split("@"),G.length>1){if(M.disallow_auth||G[0]===""||(R=G.shift(),R.indexOf(":")>=0&&R.split(":").length>2))return!1;var ne=R.split(":"),J=f(ne,2),de=J[0],Ce=J[1];if(de===""&&Ce==="")return!1}F=G.join("@"),H=null,N=null;var me=F.match(C);if(me?(I="",N=me[1],H=me[2]||null):(G=F.split(":"),I=G.shift(),G.length&&(H=G.join(":"))),H!==null&&H.length>0){if(A=parseInt(H,10),!/^[0-9]+$/.test(H)||A<=0||A>65535)return!1}else if(M.require_port)return!1;return M.host_whitelist?(0,n.default)(I,M.host_whitelist):I===""&&!M.require_host?!0:!(!(0,l.default)(I)&&!(0,a.default)(I,M)&&(!N||!(0,l.default)(N,6))||(I=I||N,M.host_blacklist&&(0,n.default)(I,M.host_blacklist)))}t.exports=e.default,t.exports.default=e.default})(Dp,Dp.exports)),Dp.exports}var W8=V8();const q8=Bf(W8);var G8="isUrl";function X8(t,e){return typeof t=="string"&&q8(t,e)}function yh(t,e){return ai({name:G8,constraints:[t],validator:{validate:function(r,n){return X8(r,n==null?void 0:n.constraints[0])},defaultMessage:ii(function(r){return r+"$property must be a URL address"},e)}},e)}var K8="isBoolean";function Q8(t){return t instanceof Boolean||typeof t=="boolean"}function _t(t){return ai({name:K8,validator:{validate:function(e,r){return Q8(e)},defaultMessage:ii(function(e){return e+"$property must be a boolean value"},t)}},t)}var Y8="isNumber";function J8(t,e){if(e===void 0&&(e={}),typeof t!="number")return!1;if(t===1/0||t===-1/0)return!!e.allowInfinity;if(Number.isNaN(t))return!!e.allowNaN;if(e.maxDecimalPlaces!==void 0){var r=0;if(t%1!==0&&(r=t.toString().split(".")[1].length),r>e.maxDecimalPlaces)return!1}return Number.isFinite(t)}function Sr(t,e){return t===void 0&&(t={}),ai({name:Y8,constraints:[t],validator:{validate:function(r,n){return J8(r,n==null?void 0:n.constraints[0])},defaultMessage:ii(function(r){return r+"$property must be a number conforming to the specified constraints"},e)}},e)}var Z8="isInt";function e9(t){return typeof t=="number"&&Number.isInteger(t)}function dc(t){return ai({name:Z8,validator:{validate:function(e,r){return e9(e)},defaultMessage:ii(function(e){return e+"$property must be an integer number"},t)}},t)}var t9="isString";function r9(t){return t instanceof String||typeof t=="string"}function ie(t){return ai({name:t9,validator:{validate:function(e,r){return r9(e)},defaultMessage:ii(function(e){return e+"$property must be a string"},t)}},t)}var n9="isArray";function o9(t){return Array.isArray(t)}function nn(t){return ai({name:n9,validator:{validate:function(e,r){return o9(e)},defaultMessage:ii(function(e){return e+"$property must be an array"},t)}},t)}var i9="isObject";function a9(t){return t!=null&&(typeof t=="object"||typeof t=="function")&&!Array.isArray(t)}function s9(t){return ai({name:i9,validator:{validate:function(e,r){return a9(e)},defaultMessage:ii(function(e){return e+"$property must be an object"},t)}},t)}function l9(t,e,r){return typeof t=="string"?kf(rS).validate(t,e,r):kf(rS).validate(t,e)}var ud=Object.defineProperty,c9=Object.getOwnPropertyDescriptor,gT=Object.getOwnPropertyNames,u9=Object.prototype.hasOwnProperty,d9=(t,e,r)=>e in t?ud(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,si=(t,e)=>ud(t,"name",{value:e,configurable:!0}),p9=(t,e)=>function(){return t&&(e=(0,t[gT(t)[0]])(t=0)),e},f9=(t,e)=>{for(var r in e)ud(t,r,{get:e[r],enumerable:!0})},h9=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of gT(e))!u9.call(t,o)&&o!==r&&ud(t,o,{get:()=>e[o],enumerable:!(n=c9(e,o))||n.enumerable});return t},m9=t=>h9(ud({},"__esModule",{value:!0}),t),Ji=(t,e,r)=>(d9(t,typeof e!="symbol"?e+"":e,r),r),yT={};f9(yT,{MustacheTemplateProvider:()=>$0});var Lg,$0,vT=p9({"src/providers/MustacheTemplateProvider.ts"(){Lg=class{constructor(e=1){Ji(this,"max_passes"),this.max_passes=e,xo.escape=r=>r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}resolve(e,r){if(!e)return"";if(!e.includes("{{"))return e;try{let n=e;for(let o=0;o<this.max_passes;o++){const a=xo.render(n,r);if(a===n)break;n=a}return n}catch(n){throw new Error(`Template resolution failed: ${n instanceof Error?n.message:String(n)}`)}}},si(Lg,"MustacheTemplateProvider"),$0=Lg}}),ut=(function(t){return t.STRING="string",t.INTEGER="integer",t.NUMBER="number",t.BOOLEAN="boolean",t.OBJECT="object",t.ARRAY="array",t})({}),$=(function(t){return t.TEXT="text",t.TEXTAREA="textarea",t.NUMBER="number",t.INTEGER="integer",t.BOOLEAN="boolean",t.EMAIL="email",t.URL="url",t.IMAGE="image",t.FILE="file",t.DATE="date",t.DATE_TIME="datetime",t.SELECT="select",t.RADIO="radio",t.CHECKBOX="checkbox",t.COLOR="color",t.FORM="form",t.REPEATER="repeater",t.MODEL_REPEATER="model_repeater",t})({});function B(t={}){return function(e,r){var n;e.constructor._fields||(e.constructor._fields=[]);const o=Reflect.getMetadata("design:type",e,r);let a=t.dataType;!a&&o&&(o===String?a=ut.STRING:o===Number?a=ut.NUMBER:o===Boolean?a=ut.BOOLEAN:o===Array?a=ut.ARRAY:o===Object&&(a=ut.OBJECT)),e.constructor._fields.push({name:r,dataType:a,required:(n=t.required)!=null?n:!1,defaultValue:t.defaultValue,type:t.type,...t})}}si(B,"Field");function z(t){return function(e,r){e.constructor._editors||(e.constructor._editors=[]),e.constructor._editors.push({name:r,...t})}}si(z,"Editor");function Nt(t,e){return function(r){return typeof t=="string"?r.prototype.constructor._schema={name:t,version:e||"1.0.0"}:r.prototype.constructor._schema={version:"1.0.0",...t},r}}si(Nt,"Schema");var bT=class{static async validate(e){const r=new this;Object.assign(r,e);const n=this._fields||[],o=[];for(const l of n)l.required&&e[l.name]===void 0&&o.push(`Field '${l.name}' is required`);let a=[];try{a=await l9(r)}catch(l){o.push("Validation failed: "+l.message)}for(const l of a)l.constraints&&o.push(...Object.values(l.constraints));return{isValid:o.length===0,errors:o,validationErrors:a}}static validateSync(e){const r=this._fields||[],n=[];for(const o of r)o.required&&e[o.name]===void 0&&n.push(`Field '${o.name}' is required`);return{isValid:n.length===0,errors:n}}static getSchema(){const e=this._fields||[],r=this._editors||[],n=this._schema||{name:this.name,version:"1.0.0"},o=Rs(),a=e.map(l=>{const c=r.find(h=>h.name===l.name),f=o.getTargetValidationMetadatas(this,this.prototype,!1,!1).filter(h=>h.propertyName===l.name).map(h=>({type:h.type,constraints:h.constraints}));return{name:l.name,data_type:l.dataType,required:l.required||!1,defaultValue:l.defaultValue,type:l.type,editor:c?{field_type:c.field_type,label:c.label,description:c.description,placeholder:c.placeholder,help_text:c.help_text,validation:c.validation}:void 0,...f.length>0&&{validation:f}}});return{name:n.name,version:n.version||"1.0.0",description:n.description,fields:a}}static createWithDefaults(e={}){const r=new this,n=this._fields||[];for(const o of n)o.defaultValue!==void 0&&e[o.name]===void 0&&(r[o.name]=o.defaultValue);return Object.assign(r,e),r}};si(bT,"Model");var lr=bT,xT=class{constructor(e,r){Ji(this,"field",{}),this.field.name=e,this.field.data_type=r,this.field.required=!1}required(e=!0){return this.field.required=e,this}defaultValue(e){return this.field.defaultValue=e,this}type(e){return this.field.type=e,this}editor(e){return this.field.editor={field_type:$.TEXT,label:this.field.name||"",description:"",...e},this}textEditor(e,r,n){return this.editor({field_type:$.TEXT,label:e,description:r,placeholder:n})}textareaEditor(e,r,n){return this.editor({field_type:$.TEXTAREA,label:e,description:r,placeholder:n})}selectEditor(e,r,n){return this.editor({field_type:$.SELECT,label:e,description:r,validation:{options:n}})}validation(e){return this.field.editor||(this.field.editor={field_type:$.TEXT,label:this.field.name||"",description:""}),this.field.editor.validation=e,this}build(){var e;if(!this.field.name||!this.field.data_type)throw new Error("Field name and data_type are required");return{name:this.field.name,data_type:this.field.data_type,required:(e=this.field.required)!=null?e:!1,defaultValue:this.field.defaultValue,type:this.field.type,editor:this.field.editor}}};si(xT,"FieldBuilder");var g9=xT,wT=class{constructor(e,r="1.0.0"){Ji(this,"schema",{fields:[]}),this.schema.name=e,this.schema.version=r}description(e){return this.schema.description=e,this}field(e,r){const n=new g9(e,r),o=n.build.bind(n);return n.build=()=>{const a=o();return this.schema.fields.push(a),a},n}addField(e){return this.schema.fields.push(e),this}addFields(e){return this.schema.fields.push(...e),this}uses(...e){return this.schema.uses||(this.schema.uses=[]),this.schema.uses.push(...e),this}build(){if(!this.schema.name||!this.schema.version)throw new Error("Schema name and version are required");if(!this.schema.fields||this.schema.fields.length===0)throw new Error("Schema must have at least one field");return{name:this.schema.name,version:this.schema.version,description:this.schema.description,uses:this.schema.uses,models:this.schema.models,fields:this.schema.fields}}};si(wT,"SchemaBuilder");var y9=wT;function v9(t,e="1.0.0"){return new y9(t,e)}si(v9,"createSchema");var ST=class{constructor(e={}){Ji(this,"cache",new Map),Ji(this,"config"),this.config={maxSize:100,defaultTtl:300*1e3,enableLogging:!1,...e},this.log("MemoryCacheProvider initialized",{config:this.config})}get(e){const r=this.cache.get(e);if(!r)return this.log(`Cache miss: ${e}`),null;const n=Date.now(),o=r.ttl||this.config.defaultTtl;return n-r.timestamp>o?(this.cache.delete(e),this.log(`Cache expired: ${e}`),null):(this.cache.delete(e),this.cache.set(e,r),this.log(`Cache hit: ${e}`),r.data)}set(e,r,n){if(this.cache.has(e)&&this.cache.delete(e),this.cache.size>=this.config.maxSize){const a=this.cache.keys().next().value;a&&(this.cache.delete(a),this.log(`LRU evicted: ${a}`))}const o={data:r,timestamp:Date.now(),ttl:n};this.cache.set(e,o),this.log(`Cache set: ${e}`,{ttl:n||this.config.defaultTtl})}clear(e){e?this.cache.delete(e)&&this.log(`Cache cleared: ${e}`):(this.cache.clear(),this.log("Cache cleared completely"))}getStats(){return{size:this.cache.size,maxSize:this.config.maxSize,keys:Array.from(this.cache.keys())}}cleanup(){const e=Date.now();let r=0;for(const[n,o]of this.cache.entries()){const a=o.ttl||this.config.defaultTtl;e-o.timestamp>a&&(this.cache.delete(n),r++)}return r>0&&this.log(`Cleanup removed ${r} expired entries`),r}log(e,r){this.config.enableLogging&&console.log(`[MemoryCacheProvider] ${e}`,r||"")}};si(ST,"MemoryCacheProvider");var Pf=ST,CT=class{constructor(e,r=!0){Ji(this,"cacheProvider"),Ji(this,"provider"),Ji(this,"config");var n,o,a;if(this.provider=e,r===!1)this.cacheProvider=null,this.config={defaultTTL:300*1e3,maxSize:100,enableLogging:!1};else if(r===!0)this.cacheProvider=new Pf,this.config={defaultTTL:300*1e3,maxSize:100,enableLogging:!1};else if("get"in r&&"set"in r)this.cacheProvider=r,this.config={defaultTTL:300*1e3,maxSize:100,enableLogging:!1};else{const l=r;this.cacheProvider=new Pf({maxSize:l.maxSize,defaultTtl:l.defaultTTL,enableLogging:l.enableLogging}),this.config={defaultTTL:(n=l.defaultTTL)!=null?n:300*1e3,maxSize:(o=l.maxSize)!=null?o:100,enableLogging:(a=l.enableLogging)!=null?a:!1}}}async get(e){if(!this.cacheProvider)return await this.provider.get(e);const r=`get:${e}`,n=this.cacheProvider.get(r);if(n)return this.log(`Cache hit for get(${e})`),{...await this.provider.get(e),data:n,cached:!0};this.log(`Cache miss for get(${e}), fetching from provider`);const o=await this.provider.get(e);return o.data&&this.cacheProvider.set(r,o.data,this.config.defaultTTL),{...o,cached:!1}}async select(e,r={}){if(!this.cacheProvider)return await this.provider.select(e,r);const n=`select:${e}:${JSON.stringify(r)}`,o=this.cacheProvider.get(n);if(o)return this.log(`Cache hit for select(${e})`),{...await this.provider.select(e,r),data:o,cached:!0};this.log(`Cache miss for select(${e}), fetching from provider`);const a=await this.provider.select(e,r);return a.data&&this.cacheProvider.set(n,a.data,this.config.defaultTTL),{...a,cached:!1}}clearCache(e){var r,n;if(!this.cacheProvider){this.log("No cache provider, nothing to clear");return}if(e)if(e.includes("*")){const o=(n=(r=this.cacheProvider).getStats)==null?void 0:n.call(r);if(o){const a=e.replace(/\*/g,".*"),l=new RegExp(a);for(const c of o.keys)l.test(c)&&(this.cacheProvider.clear(c),this.log(`Cleared cache key: ${c}`))}else this.log("Cache provider does not support pattern clearing")}else this.cacheProvider.clear(e),this.log(`Cleared cache key: ${e}`);else this.cacheProvider.clear(),this.log("Cleared all cache")}getCacheStats(){var e,r,n,o,a,l;if(!this.cacheProvider)return{totalEntries:0,validEntries:0,expiredEntries:0,maxSize:this.config.maxSize,defaultTTL:this.config.defaultTTL,cachingEnabled:!1};const c=(r=(e=this.cacheProvider).getStats)==null?void 0:r.call(e);return{totalEntries:(n=c==null?void 0:c.size)!=null?n:0,validEntries:(o=c==null?void 0:c.size)!=null?o:0,expiredEntries:0,maxSize:(a=c==null?void 0:c.maxSize)!=null?a:this.config.maxSize,defaultTTL:this.config.defaultTTL,cachingEnabled:!0,keys:(l=c==null?void 0:c.keys)!=null?l:[]}}setCacheEntryManually(e,r,n){if(!this.cacheProvider){this.log("No cache provider, cannot set cache entry manually");return}this.cacheProvider.set(e,r,n||this.config.defaultTTL),this.log(`Manually set cache entry: ${e} (TTL: ${n||this.config.defaultTTL}ms)`)}log(e){this.config.enableLogging&&console.log(`[CachedDataProvider] ${e}`)}};si(CT,"CachedDataProvider");var uS=CT,b9=class{constructor(e={},r=!0,n=1){if(Ji(this,"data"),e=this.convertDottedNotation(e.data||e),r){const{MustacheTemplateProvider:o}=(vT(),m9(yT)),a=new o(n);for(const l of Object.keys(e)){const c=e[l];if(typeof c=="string")e[l]=a.resolve(c,e);else if(typeof c=="object"){const u=JSON.stringify(c),f=a.resolve(u,e);e[l]=JSON.parse(f)}}}this.data=e}async get(e){const r=this.getValueByPath(e);return r===void 0?{data:void 0}:{data:Array.isArray(r)?r[0]:r,cached:!1,meta:{schema:this.inferModelName(e),version:"1.0.0",slug:e}}}async select(e,r={}){`${e}${JSON.stringify(r)}`;let o=this.findItemsBySchema(e);r.filters&&(o=this.applyFilters(o,r.filters)),r.sort&&r.sort!=="none"&&r.orderBy&&(o=this.applySorting(o,r.orderBy,r.sort));const a=o.length,l=r.offset||0,c=r.limit||a,f=o.slice(l,l+c).map(h=>h);return{data:f,cached:!1,meta:{schema:e,version:"1.0.0",total:a,offset:l,limit:Math.min(c,f.length)}}}updateData(e){this.data=this.convertDottedNotation(e)}convertDottedNotation(e){const r={};for(const[n,o]of Object.entries(e))if(n.includes(".")){const a=n.split(".");let l=r;for(let u=0;u<a.length-1;u++){const f=a[u];l[f]||(l[f]={}),l=l[f]}const c=a[a.length-1];l[c]=o}else o&&typeof o=="object"&&!Array.isArray(o)?r[n]=this.convertDottedNotation(o):r[n]=o;return r}getValueByPath(e){const r=e.replace(/^\//,"").split(/[/.]/);let n=this.data;for(const o of r){if(n==null)return;if(Array.isArray(n)&&!isNaN(Number(o)))n=n[Number(o)];else if(typeof n=="object"&&n!==null)n=n[o];else return}return n}findItemsBySchema(e){const r=[];return this.data[e]&&Array.isArray(this.data[e])&&r.push(...this.data[e]),this.searchObjectForSchema(this.data,e,r),r}searchObjectForSchema(e,r,n){typeof e!="object"||e===null||(Array.isArray(e)?e.forEach(o=>this.searchObjectForSchema(o,r,n)):((e.modelName===r||e.schema===r)&&n.push(e),Object.values(e).forEach(o=>{this.searchObjectForSchema(o,r,n)})))}applyFilters(e,r){return e.filter(n=>Object.entries(r).every(([o,a])=>this.getValueByPath.call({data:n},o)===a))}applySorting(e,r,n){return[...e].sort((o,a)=>{const l=this.getValueByPath.call({data:o},r),c=this.getValueByPath.call({data:a},r);return l<c?n==="asc"?-1:1:l>c?n==="asc"?1:-1:0})}inferModelName(e){return e.replace(/^\//,"").split("/")[0]||"unknown"}generateSlug(e,r){return`/${e.toLowerCase()}/${r}`}};si(b9,"JsonDataProvider");vT();const x9=Pe([d.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),d.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")]),TT=Pe(d.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),w9=Pe(d.jsx("path",{d:"M6.36 18.78 6.61 21l1.62-1.54 2.77-7.6c-.68-.17-1.28-.51-1.77-.98zm8.41-7.9c-.49.47-1.1.81-1.77.98l2.77 7.6L17.39 21l.26-2.22zM15 8c0-1.3-.84-2.4-2-2.82V3h-2v2.18C9.84 5.6 9 6.7 9 8c0 1.66 1.34 3 3 3s3-1.34 3-3m-3 1c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1"})),S9=Pe(d.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"})),C9=Pe(d.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"})),T9=Pe(d.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"})),E9=Pe(d.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"})),k9=Pe(d.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-5 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"})),P9=Pe(d.jsx("path",{d:"M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4"})),j9=Pe(d.jsx("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"})),ET=Pe(d.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"})),Og=Pe(d.jsx("path",{d:"M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M6 4h5v8l-2.5-1.5L6 12z"})),dS=Pe(d.jsx("path",{d:"M21 5v6.59l-3-3.01-4 4.01-4-4-4 4-3-3.01V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2m-3 6.42 3 3.01V19c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2v-6.58l3 2.99 4-4 4 4z"})),M9=Pe(d.jsx("path",{d:"M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20zm-6 8h-4v-2h4zm0-4h-4v-2h4z"})),Ng=Pe(d.jsx("path",{d:"M12 7V3H2v18h20V7zM6 19H4v-2h2zm0-4H4v-2h2zm0-4H4V9h2zm0-4H4V5h2zm4 12H8v-2h2zm0-4H8v-2h2zm0-4H8V9h2zm0-4H8V5h2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8zm-2-8h-2v2h2zm0 4h-2v2h2z"})),kT=Pe(d.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),dd=Pe(d.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"})),R9=Pe(d.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2"})),I9=Pe(d.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),A9=Pe(d.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M17 13l-5 5-5-5h3V9h4v4z"})),_9=Pe(d.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"})),PT=Pe(d.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"})),jT=Pe(d.jsx("path",{d:"M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2zM4 6h16v10H4z"})),L9=Pe(d.jsx("path",{d:"m13.7826 15.1719 2.1213-2.1213 5.9963 5.9962-2.1213 2.1213zM17.5 10c1.93 0 3.5-1.57 3.5-3.5 0-.58-.16-1.12-.41-1.6l-2.7 2.7-1.49-1.49 2.7-2.7c-.48-.25-1.02-.41-1.6-.41C15.57 3 14 4.57 14 6.5c0 .41.08.8.21 1.16l-1.85 1.85-1.78-1.78.71-.71-1.41-1.41L12 3.49c-1.17-1.17-3.07-1.17-4.24 0L4.22 7.03l1.41 1.41H2.81l-.71.71 3.54 3.54.71-.71V9.15l1.41 1.41.71-.71 1.78 1.78-7.41 7.41 2.12 2.12L16.34 9.79c.36.13.75.21 1.16.21"})),MT=Pe(d.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})),pS=Pe(d.jsx("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"})),O9=Pe(d.jsx("path",{d:"M3 13h8V3H3zm0 8h8v-6H3zm10 0h8V11h-8zm0-18v6h8V3z"})),B0=Pe(d.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"})),N9=Pe(d.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"})),Ty=Pe(d.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"})),fS=Pe(d.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"})),pd=Pe(d.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})),$9=Pe(d.jsx("path",{d:"M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7s2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11"})),RT=Pe(d.jsx("path",{d:"m12 21.35-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54z"})),B9=Pe(d.jsx("path",{d:"M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42M10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5"})),z9=Pe(d.jsx("path",{d:"M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"})),D9=Pe(d.jsx("path",{d:"M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6m-7 2v2h14v-2z"})),F9=Pe(d.jsx("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"})),IT=Pe(d.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"})),AT=Pe(d.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"})),H9=Pe(d.jsx("path",{d:"M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2zm10 14.5V20H8v-3.5l4-4zm-4-5-4-4V4h8v3.5z"})),Ey=Pe(d.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"})),U9=Pe(d.jsx("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-.14 0-.27.01-.4.04-.39.08-.74.28-1.01.55-.18.18-.33.4-.43.64-.1.23-.16.49-.16.77v14c0 .27.06.54.16.78s.25.45.43.64c.27.27.62.47 1.01.55.13.02.26.03.4.03h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-8 11.17-1.41 1.42L6 12l3.59-3.59L11 9.83 8.83 12zm1-9.92c-.41 0-.75-.34-.75-.75s.34-.75.75-.75.75.34.75.75-.34.75-.75.75m2.41 11.34L13 14.17 15.17 12 13 9.83l1.41-1.42L18 12z"})),V9=Pe(d.jsx("path",{d:"M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2m-5 12H9v-2h6zm5-7H4V4l16-.02z"})),W9=Pe(d.jsx("path",{d:"M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2m-5 12H9v-2h6zm5-7H4V4h16z"})),q9=Pe(d.jsx("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"})),G9=Pe(d.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"})),X9=Pe(d.jsx("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"})),K9=Pe(d.jsx("path",{d:"m11.99 18.54-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27z"})),sf=Pe(d.jsx("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"})),Al=Pe(d.jsx("path",{d:"m21.41 11.58-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.23-1.06-.59-1.42M5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7"})),ky=Pe(d.jsx("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"})),Q9=Pe(d.jsx("path",{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m0 12H6V10h12z"})),Y9=Pe([d.jsx("circle",{cx:"10",cy:"8",r:"4"},"0"),d.jsx("path",{d:"M10.67 13.02c-.22-.01-.44-.02-.67-.02-2.42 0-4.68.67-6.61 1.82-.88.52-1.39 1.5-1.39 2.53V20h9.26c-.79-1.13-1.26-2.51-1.26-4 0-1.07.25-2.07.67-2.98M20.75 16c0-.22-.03-.42-.06-.63l1.14-1.01-1-1.73-1.45.49q-.48-.405-1.08-.63L18 11h-2l-.3 1.49q-.6.225-1.08.63l-1.45-.49-1 1.73 1.14 1.01c-.03.21-.06.41-.06.63s.03.42.06.63l-1.14 1.01 1 1.73 1.45-.49q.48.405 1.08.63L16 21h2l.3-1.49q.6-.225 1.08-.63l1.45.49 1-1.73-1.14-1.01c.03-.21.06-.41.06-.63M17 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"},"1")]),_T=Pe(d.jsx("path",{d:"M15 9H9v6h6zm-2 4h-2v-2h2zm8-2V9h-2V7c0-1.1-.9-2-2-2h-2V3h-2v2h-2V3H9v2H7c-1.1 0-2 .9-2 2v2H3v2h2v2H3v2h2v2c0 1.1.9 2 2 2h2v2h2v-2h2v2h2v-2h2c1.1 0 2-.9 2-2v-2h2v-2h-2v-2zm-4 6H7V7h10z"})),J9=Pe(d.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"})),Z9=Pe(d.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"})),e7=Pe(d.jsx("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10c1.38 0 2.5-1.12 2.5-2.5 0-.61-.23-1.2-.64-1.67-.08-.1-.13-.21-.13-.33 0-.28.22-.5.5-.5H16c3.31 0 6-2.69 6-6 0-4.96-4.49-9-10-9m5.5 11c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m-3-4c-.83 0-1.5-.67-1.5-1.5S13.67 6 14.5 6s1.5.67 1.5 1.5S15.33 9 14.5 9M5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S7.33 13 6.5 13 5 12.33 5 11.5m6-4c0 .83-.67 1.5-1.5 1.5S8 8.33 8 7.5 8.67 6 9.5 6s1.5.67 1.5 1.5"})),t7=Pe(d.jsx("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"})),Py=Pe(d.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"})),r7=Pe([d.jsx("circle",{cx:"10",cy:"8",r:"4"},"0"),d.jsx("path",{d:"M10.35 14.01C7.62 13.91 2 15.27 2 18v2h9.54c-2.47-2.76-1.23-5.89-1.19-5.99m9.08 4.01c.36-.59.57-1.28.57-2.02 0-2.21-1.79-4-4-4s-4 1.79-4 4 1.79 4 4 4c.74 0 1.43-.22 2.02-.57L20.59 22 22 20.59zM16 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"},"1")]),n7=Pe(d.jsx("path",{d:"M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02z"})),o7=Pe(d.jsx("path",{d:"M8 5v14l11-7z"})),i7=Pe([d.jsx("path",{d:"M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43"},"0"),d.jsx("path",{d:"M13 3C9.25 3 6.2 5.94 6.02 9.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v3h7v-4.68c2.36-1.12 4-3.53 4-6.32 0-3.87-3.13-7-7-7m3 7c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39"},"1")]),hS=Pe(d.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"})),z0=Pe(d.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"})),a7=Pe(d.jsx("path",{d:"M15.55 5.55 11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10zM19.93 11c-.17-1.39-.72-2.73-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47zM13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03m3.89-2.42 1.42 1.41c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.48"})),s7=Pe(d.jsx("path",{d:"M19 15.18V7c0-2.21-1.79-4-4-4s-4 1.79-4 4v10c0 1.1-.9 2-2 2s-2-.9-2-2V8.82C8.16 8.4 9 7.3 9 6c0-1.66-1.34-3-3-3S3 4.34 3 6c0 1.3.84 2.4 2 2.82V17c0 2.21 1.79 4 4 4s4-1.79 4-4V7c0-1.1.9-2 2-2s2 .9 2 2v8.18c-1.16.41-2 1.51-2 2.82 0 1.66 1.34 3 3 3s3-1.34 3-3c0-1.3-.84-2.4-2-2.82"})),l7=Pe(d.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"})),vh=Pe(d.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"})),c7=Pe(d.jsx("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11z"})),u7=Pe(d.jsx("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"})),mS=Pe(d.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"})),d7=Pe(d.jsx("path",{d:"M9 16h6.5c1.38 0 2.5-1.12 2.5-2.5S16.88 11 15.5 11h-.05c-.24-1.69-1.69-3-3.45-3-1.4 0-2.6.83-3.16 2.02h-.16C7.17 10.18 6 11.45 6 13c0 1.66 1.34 3 3 3M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16.01H3V4.99h18z"})),p7=Pe(d.jsx("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92"})),$g=Pe(d.jsx("path",{d:"M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2M1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2"})),f7=Pe(d.jsx("path",{d:"m20.38 8.57-1.23 1.85a8 8 0 0 1-.22 7.58H5.07A8 8 0 0 1 15.58 6.85l1.85-1.23A10 10 0 0 0 3.35 19a2 2 0 0 0 1.72 1h13.85a2 2 0 0 0 1.74-1 10 10 0 0 0-.27-10.44zm-9.79 6.84a2 2 0 0 0 2.83 0l5.66-8.49-8.49 5.66a2 2 0 0 0 0 2.83"})),h7=Pe(d.jsx("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"})),m7=Pe(d.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m4 14H8V8h8z"})),LT=Pe(d.jsx("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"})),g7=Pe([d.jsx("path",{d:"M21 12.22C21 6.73 16.74 3 12 3c-4.69 0-9 3.65-9 9.28-.6.34-1 .98-1 1.72v2c0 1.1.9 2 2 2h1v-6.1c0-3.87 3.13-7 7-7s7 3.13 7 7V19h-8v2h8c1.1 0 2-.9 2-2v-1.22c.59-.31 1-.92 1-1.64v-2.3c0-.7-.41-1.31-1-1.62"},"0"),d.jsx("circle",{cx:"9",cy:"13",r:"1"},"1"),d.jsx("circle",{cx:"15",cy:"13",r:"1"},"2"),d.jsx("path",{d:"M18 11.03C17.52 8.18 15.04 6 12.05 6c-3.03 0-6.29 2.51-6.03 6.45 2.47-1.01 4.33-3.21 4.86-5.89 1.31 2.63 4 4.44 7.12 4.47"},"3")]),y7=Pe(d.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"})),v7=Pe(d.jsx("path",{d:"m16 6 2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"})),b7=Pe(d.jsx("path",{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"})),x7=Pe(d.jsx("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm-2 16-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9z"})),OT=Pe(d.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"})),NT=Pe(d.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"})),w7=Pe(d.jsx("path",{d:"M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"})),D0=Pe(d.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"})),S7=Pe(d.jsx("path",{d:"M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-6 0h-4V4h4z"}));var Qo;(function(t){t[t.PLAIN_TO_CLASS=0]="PLAIN_TO_CLASS",t[t.CLASS_TO_PLAIN=1]="CLASS_TO_PLAIN",t[t.CLASS_TO_CLASS=2]="CLASS_TO_CLASS"})(Qo||(Qo={}));var C7=(function(){function t(){this._typeMetadatas=new Map,this._transformMetadatas=new Map,this._exposeMetadatas=new Map,this._excludeMetadatas=new Map,this._ancestorsMap=new Map}return t.prototype.addTypeMetadata=function(e){this._typeMetadatas.has(e.target)||this._typeMetadatas.set(e.target,new Map),this._typeMetadatas.get(e.target).set(e.propertyName,e)},t.prototype.addTransformMetadata=function(e){this._transformMetadatas.has(e.target)||this._transformMetadatas.set(e.target,new Map),this._transformMetadatas.get(e.target).has(e.propertyName)||this._transformMetadatas.get(e.target).set(e.propertyName,[]),this._transformMetadatas.get(e.target).get(e.propertyName).push(e)},t.prototype.addExposeMetadata=function(e){this._exposeMetadatas.has(e.target)||this._exposeMetadatas.set(e.target,new Map),this._exposeMetadatas.get(e.target).set(e.propertyName,e)},t.prototype.addExcludeMetadata=function(e){this._excludeMetadatas.has(e.target)||this._excludeMetadatas.set(e.target,new Map),this._excludeMetadatas.get(e.target).set(e.propertyName,e)},t.prototype.findTransformMetadatas=function(e,r,n){return this.findMetadatas(this._transformMetadatas,e,r).filter(function(o){return!o.options||o.options.toClassOnly===!0&&o.options.toPlainOnly===!0?!0:o.options.toClassOnly===!0?n===Qo.CLASS_TO_CLASS||n===Qo.PLAIN_TO_CLASS:o.options.toPlainOnly===!0?n===Qo.CLASS_TO_PLAIN:!0})},t.prototype.findExcludeMetadata=function(e,r){return this.findMetadata(this._excludeMetadatas,e,r)},t.prototype.findExposeMetadata=function(e,r){return this.findMetadata(this._exposeMetadatas,e,r)},t.prototype.findExposeMetadataByCustomName=function(e,r){return this.getExposedMetadatas(e).find(function(n){return n.options&&n.options.name===r})},t.prototype.findTypeMetadata=function(e,r){return this.findMetadata(this._typeMetadatas,e,r)},t.prototype.getStrategy=function(e){var r=this._excludeMetadatas.get(e),n=r&&r.get(void 0),o=this._exposeMetadatas.get(e),a=o&&o.get(void 0);return n&&a||!n&&!a?"none":n?"excludeAll":"exposeAll"},t.prototype.getExposedMetadatas=function(e){return this.getMetadata(this._exposeMetadatas,e)},t.prototype.getExcludedMetadatas=function(e){return this.getMetadata(this._excludeMetadatas,e)},t.prototype.getExposedProperties=function(e,r){return this.getExposedMetadatas(e).filter(function(n){return!n.options||n.options.toClassOnly===!0&&n.options.toPlainOnly===!0?!0:n.options.toClassOnly===!0?r===Qo.CLASS_TO_CLASS||r===Qo.PLAIN_TO_CLASS:n.options.toPlainOnly===!0?r===Qo.CLASS_TO_PLAIN:!0}).map(function(n){return n.propertyName})},t.prototype.getExcludedProperties=function(e,r){return this.getExcludedMetadatas(e).filter(function(n){return!n.options||n.options.toClassOnly===!0&&n.options.toPlainOnly===!0?!0:n.options.toClassOnly===!0?r===Qo.CLASS_TO_CLASS||r===Qo.PLAIN_TO_CLASS:n.options.toPlainOnly===!0?r===Qo.CLASS_TO_PLAIN:!0}).map(function(n){return n.propertyName})},t.prototype.clear=function(){this._typeMetadatas.clear(),this._exposeMetadatas.clear(),this._excludeMetadatas.clear(),this._ancestorsMap.clear()},t.prototype.getMetadata=function(e,r){var n=e.get(r),o;n&&(o=Array.from(n.values()).filter(function(v){return v.propertyName!==void 0}));for(var a=[],l=0,c=this.getAncestors(r);l<c.length;l++){var u=c[l],f=e.get(u);if(f){var h=Array.from(f.values()).filter(function(v){return v.propertyName!==void 0});a.push.apply(a,h)}}return a.concat(o||[])},t.prototype.findMetadata=function(e,r,n){var o=e.get(r);if(o){var a=o.get(n);if(a)return a}for(var l=0,c=this.getAncestors(r);l<c.length;l++){var u=c[l],f=e.get(u);if(f){var h=f.get(n);if(h)return h}}},t.prototype.findMetadatas=function(e,r,n){var o=e.get(r),a;o&&(a=o.get(n));for(var l=[],c=0,u=this.getAncestors(r);c<u.length;c++){var f=u[c],h=e.get(f);h&&h.has(n)&&l.push.apply(l,h.get(n))}return l.slice().reverse().concat((a||[]).slice().reverse())},t.prototype.getAncestors=function(e){if(!e)return[];if(!this._ancestorsMap.has(e)){for(var r=[],n=Object.getPrototypeOf(e.prototype.constructor);typeof n.prototype<"u";n=Object.getPrototypeOf(n.prototype.constructor))r.push(n);this._ancestorsMap.set(e,r)}return this._ancestorsMap.get(e)},t})(),T7=new C7;function oo(t,e){return e===void 0&&(e={}),function(r,n){var o=Reflect.getMetadata("design:type",r,n);T7.addTypeMetadata({target:r.constructor,propertyName:n,reflectedType:o,typeFunction:t,options:e})}}var gS={};const jy={xs:0,sm:600,md:900,lg:1200,xl:1536},yS={"extra-small":"xs",small:"sm",medium:"md",large:"lg","extra-large":"xl"};function vS(t){return t===!1||t===void 0?!1:t in jy?t:t in yS?yS[t]:"lg"}const E7={width:{tiny:120,small:200,medium:300,large:400,"x-large":500,huge:600},height:{tiny:200,small:300,medium:400,large:500,"x-large":600,huge:800},maxWidth:{tiny:300,small:600,medium:900,large:1200,"x-large":1536,huge:1920},maxHeight:{tiny:200,small:400,medium:600,large:800,"x-large":1e3,huge:1200},minWidth:{tiny:50,small:100,medium:200,large:300,"x-large":400,huge:500},minHeight:{tiny:50,small:100,medium:200,large:300,"x-large":400,huge:500}},k7=/^(\d+(\.\d+)?(px|%|em|rem|vh|vw|fr|ch|ex)|auto|inherit|initial|unset|min-content|max-content|fit-content)$/;function Ao(t,e="width"){if(t==null)return;if(typeof t=="number")return t;if(t==="auto")return"auto";if(t==="grow")return"1";const r=E7[e];if(r&&t in r)return r[t];if((e==="maxWidth"||e==="width")&&t in jy)return jy[t];if(typeof t=="string")return k7.test(t)||console.warn(`[QwickApps] Invalid CSS dimension value: "${t}". Using as-is but consider using a valid CSS value or t-shirt size.`),t}function P7(t){return{width:Ao(t.width,"width"),height:Ao(t.height,"height"),minWidth:Ao(t.minWidth,"minWidth"),minHeight:Ao(t.minHeight,"minHeight"),maxWidth:Ao(t.maxWidth,"maxWidth"),maxHeight:Ao(t.maxHeight,"maxHeight")}}const nu={none:0,tiny:.5,small:1,medium:2,large:3,huge:4},bS=/^(\d+(\.\d+)?(px|em|rem|%)|0|auto|inherit|initial|unset)$/;function In(t){if(t!=null){if(typeof t=="number")return t;if(t in nu)return nu[t];if(typeof t=="string"){const e=t.split(" ");return e.length>1&&e.every(n=>bS.test(n)||n in nu)?e.map(n=>n in nu?`${nu[n]*8}px`:n).join(" "):(bS.test(t)||console.warn(`[QwickApps] Invalid CSS spacing value: "${t}". Using as-is but consider using a valid CSS value or t-shirt size.`),t)}}}function j7(t){const e={};return t.padding!==void 0&&(e.p=In(t.padding)),t.paddingTop!==void 0&&(e.pt=In(t.paddingTop)),t.paddingRight!==void 0&&(e.pr=In(t.paddingRight)),t.paddingBottom!==void 0&&(e.pb=In(t.paddingBottom)),t.paddingLeft!==void 0&&(e.pl=In(t.paddingLeft)),t.paddingX!==void 0&&(e.px=In(t.paddingX)),t.paddingY!==void 0&&(e.py=In(t.paddingY)),t.margin!==void 0&&(e.m=In(t.margin)),t.marginTop!==void 0&&(e.mt=In(t.marginTop)),t.marginRight!==void 0&&(e.mr=In(t.marginRight)),t.marginBottom!==void 0&&(e.mb=In(t.marginBottom)),t.marginLeft!==void 0&&(e.ml=In(t.marginLeft)),t.marginX!==void 0&&(e.mx=In(t.marginX)),t.marginY!==void 0&&(e.my=In(t.marginY)),e}const Nn=Symbol("QwickAppComponent");function kn(t){const{span:e,xs:r,sm:n,md:o,lg:a,xl:l,className:c,sx:u,style:f,width:h,height:v,minWidth:g,minHeight:y,maxWidth:w,maxHeight:x,padding:C,paddingTop:j,paddingRight:P,paddingBottom:M,paddingLeft:E,paddingX:R,paddingY:I,margin:F,marginTop:A,marginRight:H,marginBottom:G,marginLeft:N,marginX:k,marginY:q,background:U,backgroundImage:L,backgroundGradient:W,textAlign:K,id:ee,role:Z,"aria-label":Q,"aria-labelledby":X,"aria-describedby":re,"data-testid":ce,onClick:Y,onMouseEnter:ne,onMouseLeave:J,onFocus:de,onBlur:Ce,...me}=t,se=S.useMemo(()=>e||r||n||o||a||l?{span:e,xs:e||r,sm:e||n,md:e||o,lg:e||a,xl:e||l}:null,[e,r,n,o,a,l]),De=S.useMemo(()=>P7({width:h,height:v,minWidth:g,minHeight:y,maxWidth:w,maxHeight:x}),[h,v,g,y,w,x]),Ne=S.useMemo(()=>j7({padding:C,paddingTop:j,paddingRight:P,paddingBottom:M,paddingLeft:E,paddingX:R,paddingY:I,margin:F,marginTop:A,marginRight:H,marginBottom:G,marginLeft:N,marginX:k,marginY:q}),[C,j,P,M,E,R,I,F,A,H,G,N,k,q]),Oe=S.useMemo(()=>{const Ke={};return W?Ke.background=W:L?(Ke.backgroundImage=`url(${L})`,Ke.backgroundSize="cover",Ke.backgroundPosition="center",Ke.backgroundRepeat="no-repeat"):U&&(Ke.background=U),K&&(Ke.textAlign=K),Ke},[U,L,W,K]),Be=S.useMemo(()=>({...De,...Ne,...Oe,...u}),[De,Ne,Oe,u]);return{gridProps:se,styleProps:{className:c,sx:Be,style:f},htmlProps:{id:ee,role:Z,"aria-label":Q,"aria-labelledby":X,"aria-describedby":re,"data-testid":ce,onClick:Y,onMouseEnter:ne,onMouseLeave:J,onFocus:de,onBlur:Ce},restProps:me}}class M7{constructor(e){this.name=e}debug(e,...r){console.debug(`[${this.name}] ${e}`,...r)}info(e,...r){console.info(`[${this.name}] ${e}`,...r)}warn(e,...r){console.warn(`[${this.name}] ${e}`,...r)}error(e,...r){console.error(`[${this.name}] ${e}`,...r)}}function yi(t){try{return require("@qwickapps/logging").getLogger(t)}catch{return new M7(t)}}const R7={scaffold:yi("Scaffold"),navigation:yi("Navigation"),auth:yi("Auth"),theme:yi("Theme"),palette:yi("Palette"),form:yi("Form"),layout:yi("Layout"),menu:yi("Menu"),router:yi("Router")};class I7{constructor(e){this.log=yi("ContentResolver"),this.enableLogging=e.enableLogging||!1,this.templateResolver=e.templateResolver||new $0,e.cacheProvider===!0?(new Pf({enableLogging:e.enableLogging||!1}),this.dataProvider=new uS(e.dataProvider)):e.cacheProvider===!1?this.dataProvider=e.dataProvider:(new Pf({enableLogging:e.enableLogging||!1}),this.dataProvider=new uS(e.dataProvider)),this.log.debug("ContentResolver initialized",{dataProvider:e.dataProvider?e.dataProvider.constructor.name:"none",templateResolver:this.templateResolver.constructor.name,cacheProvider:e.cacheProvider?e.cacheProvider===!0?"MemoryCacheProvider(default)":e.cacheProvider.constructor.name:"disabled"})}async get(e){return this.dataProvider.get(e)}async select(e,r){return this.dataProvider.select(e,r)}async resolveTemplate(e){if(this.log.debug(`Resolving template: ${e}`),!e||!e.includes("{{"))return e;const r=await this.createLazyContext(e);try{const n=this.templateResolver.resolve(e,r);return this.log.debug(`Template resolved: ${e} -> ${n}`),n}catch(n){throw this.log.debug(`Template resolution failed: ${n instanceof Error?n.message:String(n)}`),n}}async createLazyContext(e){const r=/\{\{([^}]+)\}\}/g,n=Array.from(e.matchAll(r)),o=new Set;for(const l of n){const c=l[1].trim(),[u]=c.split(".");o.add(u)}const a={};for(const l of o)try{const c=await this.select(l);if(c.data&&c.data.length>0)a[l]=c.data[0];else{const u=await this.get(l);u.data&&(a[l]=u.data)}}catch(c){this.log.error(`Failed to load data for ${l}: ${c instanceof Error?c.message:String(c)}`)}return a}}const F0=S.createContext(null);function A7({dataSource:t,children:e}){const r=new I7(t),n={provider:r,get:async o=>{const a=await r.get(o);return a&&a.data?a.data:void 0},select:async(o,a)=>{const l=await r.select(o,a);return l&&Array.isArray(l.data)?l.data:[]},resolveTemplate:o=>r.resolveTemplate(o)};return d.jsx(F0.Provider,{value:n,children:e})}function _7(){const t=S.useContext(F0);if(!t)throw new Error("useDataContext must be used within a DataProvider. Did you wrap your component with <DataProvider>?");return t}function L7(t){const e=S.useContext(F0),[r,n]=S.useState(void 0),[o,a]=S.useState(!0),[l,c]=S.useState(null);return S.useEffect(()=>{if(!e){a(!1);return}(async()=>{if(!t){a(!1);return}try{a(!0),c(null);const f=await e.get(t);n(f),a(!1)}catch(f){c(f instanceof Error?f:new Error(String(f))),a(!1)}})()},[e,t]),e?{data:r,loading:o,error:l}:{data:void 0,loading:!1,error:null}}function O7(t){const{resolveTemplate:e}=_7(),[r,n]=S.useState(t),[o,a]=S.useState(!1),[l,c]=S.useState(null);return S.useEffect(()=>{let u=!0;async function f(){if(!t){n(t);return}try{a(!0),c(null);const h=await e(t);u&&(n(h),a(!1))}catch(h){u&&(c(h instanceof Error?h:new Error(String(h))),n(t),a(!1))}}return f(),()=>{u=!1}},[t,e]),{resolved:r,loading:o,error:l}}function $T(t){const{resolved:e,loading:r,error:n}=O7(t);return r?null:n?`[Template Error: ${n.message}]`:e}function fu(t,...e){const r=String.raw(t,...e),n=()=>$T(r);return d.jsx(n,{})}fu.wrap=t=>(e,...r)=>{const n=String.raw(e,...r),o=()=>{const a=$T(n);return a?d.jsx(t,{children:a}):null};return d.jsx(o,{})};function Oi(t,e){const r=t&&t.trim().length>0,n=L7(r?t:""),o=S.useMemo(()=>!r||n.data===void 0?e||{}:{...e||{},...n.data},[r,n.data,e]);return{...o,$loading:n.loading,$error:n.error,$dataSource:t,$cached:!1,...Object.prototype.hasOwnProperty.call(o,"loading")?{}:{loading:n.loading},...Object.prototype.hasOwnProperty.call(o,"error")?{}:{error:n.error},cached:!1}}const BT=Mt.createContext({appName:"QwickApps",logo:void 0,appId:!0,enableScaffolding:!1,navigationItems:[],appBar:void 0,showAppBar:!0,appBarHeight:64,showThemeSwitcher:!1,showPaletteSwitcher:!1,updateConfig:()=>{}}),H0=()=>{const t=Mt.useContext(BT);if(!t)throw new Error("useQwickApp must be used within a QwickApp provider");return t},N7=t=>{if(typeof document>"u"||typeof window>"u")return;document.documentElement.setAttribute("data-theme",t),window.dispatchEvent(new CustomEvent("themeChange",{detail:{theme:t}}))},$7={id:"default",name:"Default",description:"Classic blue and neutral colors",primaryColor:"#007bff"},B7={id:"autumn",name:"Autumn",description:"Warm oranges and golden yellows",primaryColor:"#ea580c"},z7={id:"ocean",name:"Ocean",description:"Deep blues and aqua teals",primaryColor:"#0891b2"},D7={id:"spring",name:"Spring",description:"Fresh greens and soft pinks",primaryColor:"#16a34a"},F7={id:"winter",name:"Winter",description:"Cool blues and icy whites",primaryColor:"#0077be"},H7={id:"cosmic",name:"Cosmic",description:"Modern purple gradient for creative and tech brands",primaryColor:"#8b5cf6"},U7=[$7,z7,H7,F7,B7,D7],xS=t=>{if(!t||typeof window>"u")return null;try{const e=localStorage.getItem(t);if(e&&["light","dark","system"].includes(e))return e}catch(e){console.warn("[persistenceUtils] Theme localStorage read failed:",e)}return null},V7=(t,e)=>{if(!(!t||typeof window>"u"))try{localStorage.setItem(t,e)}catch(r){console.warn("[persistenceUtils] Theme localStorage write failed:",r)}},W7=t=>{if(!(!t||typeof window>"u"))try{localStorage.removeItem(t)}catch(e){console.warn("[persistenceUtils] Theme localStorage clear failed:",e)}},wS=(t,e)=>{if(!t||typeof window>"u")return null;try{const r=localStorage.getItem(t);if(r&&e.includes(r))return r}catch(r){console.warn("[persistenceUtils] Palette localStorage read failed:",r)}return null},q7=(t,e)=>{if(!(!t||typeof window>"u"))try{localStorage.setItem(t,e)}catch(r){console.warn("[persistenceUtils] Palette localStorage write failed:",r)}},G7=t=>{if(!(!t||typeof window>"u"))try{localStorage.removeItem(t)}catch(e){console.warn("[persistenceUtils] Palette localStorage clear failed:",e)}},X7={enableRemote:!0,remoteUrl:"https://qwickapps.com/palettes/manifest.json",localPath:"/palettes/manifest.json"};let xl=null,SS=!1;async function CS(t){try{const e=await fetch(t,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(5e3)});if(!e.ok)return console.warn(`[PaletteManifest] Failed to fetch from ${t}: ${e.status} ${e.statusText}`),null;const r=await e.json();return!r.version||!Array.isArray(r.palettes)?(console.warn(`[PaletteManifest] Invalid manifest structure from ${t}`),null):r}catch{return null}}function K7(...t){const e=new Map;let r="0.0.0";for(const n of t)if(n){n.version>r&&(r=n.version);for(const o of n.palettes)e.set(o.id,o)}return{version:r,palettes:Array.from(e.values())}}async function Q7(t={}){if(xl)return xl;if(SS)return TS();SS=!0;const e={...X7,...t},r=[];if(e.enableRemote){const o=await CS(e.remoteUrl);r.push(o)}if(typeof window<"u"){const o=await CS(e.localPath);r.push(o)}const n=K7(...r);return n.palettes.length===0?(xl=TS(),xl):(xl=n,xl)}function TS(){return{version:"1.4.9",palettes:[{id:"default",name:"Default",description:"Classic blue and neutral color scheme",version:"1.4.9",file:"PaletteDefault.css",primaryColor:"#007bff",inlined:!0},{id:"autumn",name:"Autumn",description:"Warm oranges, golden yellows, and earthy browns",version:"1.4.9",file:"PaletteAutumn.css",primaryColor:"#ea580c",inlined:!1},{id:"cosmic",name:"Cosmic",description:"Modern purple gradient for creative and tech brands",version:"1.4.9",file:"PaletteCosmic.css",primaryColor:"#8b5cf6",inlined:!1},{id:"ocean",name:"Ocean",description:"Deep blues, aqua teals, and seafoam greens",version:"1.4.9",file:"PaletteOcean.css",primaryColor:"#0891b2",inlined:!1},{id:"spring",name:"Spring",description:"Fresh greens, soft pinks, and bright yellows",version:"1.4.9",file:"PaletteSpring.css",primaryColor:"#16a34a",inlined:!1},{id:"winter",name:"Winter",description:"Cool blues, icy whites, and frosty grays",version:"1.4.9",file:"PaletteWinter.css",primaryColor:"#0077be",inlined:!1}]}}async function Y7(t,e){return(await Q7(e)).palettes.find(n=>n.id===t)||null}const Ra=new Set,bi=new Map,ES=["https://qwickapps.com/palettes/","/palettes/"];let J7={enableRemote:!0};async function Z7(t,e){if(Ra.has(t))return Promise.resolve();if(bi.has(t))return bi.get(t);const r=eB(t,e);return bi.set(t,r),r}async function eB(t,e){const r={...J7,...e};if(t==="default"){Ra.add(t),bi.delete(t);return}if(typeof document>"u"){Ra.add(t),bi.delete(t);return}if(document.querySelector(`link[data-palette-id="${t}"]`)){Ra.add(t),bi.delete(t);return}try{const o=await Y7(t,r);if(!o){Ra.add(t),bi.delete(t);return}if(o.inlined){Ra.add(t),bi.delete(t);return}const c=!!1&&o.fileMinified?o.fileMinified:o.file,u=[];r.enableRemote&&u.push(`${ES[0]}${c}`),u.push(`${ES[1]}${c}`);let f=!1;for(const h of u)if(await tB(h,t)){f=!0;break}Ra.add(t),bi.delete(t)}catch{Ra.add(t),bi.delete(t)}}function tB(t,e){return new Promise(r=>{const n=document.createElement("link");n.rel="stylesheet",n.href=t,n.setAttribute("data-palette-id",e),n.onload=()=>{r(!0)},n.onerror=()=>{document.head.removeChild(n),r(!1)},document.head.appendChild(n)})}const zT=S.createContext(null),DT=()=>{const t=S.useContext(zT);if(!t)throw new Error("usePalette must be used within a PaletteProvider");return t},xs=U7,kS=(t,e=!0)=>t&&xs.some(r=>r.id===t)?t:(e&&console.warn(`[PaletteProvider] Invalid defaultPalette '${t}'. Using 'default'.`),"default"),rB=({children:t,appId:e,defaultPalette:r="default"})=>{const n=Mt.useMemo(()=>{if(e===!1)return null;if(typeof e=="string")return`${e}.palette`;const x="qwickapps-react-framework-palette";return console.warn(`[PaletteProvider] Using default storage key '${x}'. Consider providing an appId for production apps to avoid conflicts. Example: <PaletteProvider appId="com.mycompany.myapp">`),x},[e]),o=xs.map(x=>x.id),[a,l]=S.useState(()=>wS(n,o)),[c,u]=S.useState(()=>wS(n,o)||kS(r));S.useEffect(()=>{typeof document<"u"&&Z7(c).then(()=>{document.documentElement.setAttribute("data-palette",c),setTimeout(()=>{const x=new CustomEvent("palette-changed",{detail:{palette:c}});window.dispatchEvent(x)},50)}).catch(x=>{console.error(`[PaletteContext] Failed to load palette "${c}":`,x),document.documentElement.setAttribute("data-palette",c);const C=new CustomEvent("palette-changed",{detail:{palette:c}});window.dispatchEvent(C)})},[c]);const w={currentPalette:c,preferredPalette:a,availablePalettes:xs,isPersistent:n!==null,setPreferredPalette:x=>{xs.find(j=>j.id===x)?(l(x),u(x),q7(n,x)):console.warn(`Palette "${x}" not found. Available palettes:`,xs.map(j=>j.id))},clearPreferredPalette:()=>{l(null),G7(n);const x=kS(r,!1);u(x)},getPreferredPalette:()=>a,getCurrentPalette:()=>c,setCurrentPalette:x=>{xs.find(j=>j.id===x)?u(x):console.warn(`Palette "${x}" not found. Available palettes:`,xs.map(j=>j.id))}};return d.jsx(zT.Provider,{value:w,children:t})},FT=S.createContext(null),HT=()=>{const t=S.useContext(FT);if(!t)throw new Error("useTheme must be used within a ThemeProvider");return t},PS=(t,e=!0)=>t&&["light","dark","system"].includes(t)?t:(e&&console.warn(`[ThemeProvider] Invalid defaultTheme '${t}'. Using 'system'.`),"system"),nB=({children:t,appId:e,includePalette:r=!0,defaultTheme:n="light",defaultPalette:o})=>{const l=Mt.useMemo(()=>{if(e===!1)return null;if(typeof e=="string")return`${e}.theme`;const A="qwickapps-react-framework-theme";return console.warn(`[ThemeProvider] Using default storage key '${A}'. Consider providing an appId for production apps to avoid conflicts. Example: <ThemeProvider appId="com.mycompany.myapp">`),A},[e]),[c,u]=S.useState(()=>xS(l)),[f,h]=S.useState(()=>xS(l)||PS(n)),[v,g]=S.useState(0),y=t8("(prefers-color-scheme: dark)"),w=f==="system"?y?"dark":"light":f;S.useEffect(()=>{if(typeof window<"u"){const A=()=>{g(G=>G+1)},H=()=>{g(G=>G+1)};return window.addEventListener("palette-changed",A),window.addEventListener("theme-changed",H),()=>{window.removeEventListener("palette-changed",A),window.removeEventListener("theme-changed",H)}}},[]),S.useEffect(()=>{if(typeof window<"u"){const A=new CustomEvent("theme-changed",{detail:{theme:w}});window.dispatchEvent(A)}},[w]),S.useEffect(()=>{typeof window<"u"&&N7(w)},[w]);const x=A=>typeof window<"u"&&typeof document<"u"?getComputedStyle(document.documentElement).getPropertyValue(A).trim():"",C=Mt.useMemo(()=>{const A=w==="dark",H=x("--theme-primary-light")||(A?"#87ceeb":"#4a90e2"),G=x("--theme-primary")||(A?"#90caf9":"#1976d2"),N=x("--theme-primary-dark")||(A?"#1a365d":"#0056b3"),k=x("--theme-on-primary")||(A?"#000000":"#ffffff"),q=x("--theme-secondary-light")||(A?"#adb5bd":"#868e96"),U=x("--theme-secondary")||(A?"#f48fb1":"#dc004e"),L=x("--theme-secondary-dark")||(A?"#6c757d":"#495057"),W=x("--theme-on-secondary")||(A?"#b0b0b0":"#666666"),K=x("--theme-error-light")||(A?"#f9c2c2":"#f5c6cb"),ee=x("--theme-error")||(A?"#f87171":"#dc3545"),Z=x("--theme-error-dark")||(A?"#b91c1c":"#a71d2a"),Q=x("--theme-warning-light")||(A?"#fbbf24":"#ffc107"),X=x("--theme-warning")||(A?"#fbbf24":"#ffc107"),re=x("--theme-warning-dark")||(A?"#b57c00":"#856404"),ce=x("--theme-info-light")||(A?"#60a5fa":"#007acc"),Y=x("--theme-info")||(A?"#60a5fa":"#007acc"),ne=x("--theme-info-dark")||(A?"#1e3a8a":"#0d6efd"),J=x("--theme-success-light")||(A?"#4ade80":"#28a745"),de=x("--theme-success")||(A?"#4ade80":"#28a745"),Ce=x("--theme-success-dark")||(A?"#1f9e3d":"#1c7430"),me=x("--theme-background")||(A?"#121212":"#ffffff"),se=x("--theme-surface")||(A?"#1e1e1e":"#ffffff"),De=x("--theme-text-primary")||(A?"#ffffff":"#000000"),Ne=x("--theme-text-secondary")||(A?"rgba(255, 255, 255, 0.7)":"rgba(0, 0, 0, 0.6)"),Oe=x("--theme-on-disabled")||(A?"rgba(255, 255, 255, 0.38)":"rgba(0, 0, 0, 0.38)");return nh({palette:{mode:w,primary:{main:G,light:H,dark:N,contrastText:k},secondary:{main:U,light:q,dark:L,contrastText:W},error:{light:K,main:ee,dark:Z},warning:{light:Q,main:X,dark:re},info:{light:ce,main:Y,dark:ne},background:{default:me,paper:se},text:{primary:De,secondary:Ne,disabled:Oe},success:{light:J,main:de,dark:Ce}},typography:{fontFamily:'"Segoe UI", "Roboto", "Arial", sans-serif'},components:{MuiButton:{styleOverrides:{root:{textTransform:"none"}}}}})},[w,v]),I={currentTheme:f,preferredTheme:c,actualThemeMode:w,theme:C,isDark:w==="dark",isPersistent:l!==null,setPreferredTheme:A=>{u(A),h(A),V7(l,A)},clearPreferredTheme:()=>{u(null),W7(l);const A=PS(n,!1);h(A)},getPreferredTheme:()=>c,getCurrentTheme:()=>f,setCurrentTheme:A=>{h(A)}},F=d.jsx(FT.Provider,{value:I,children:d.jsx(fR,{theme:C,children:t})});return r?d.jsx(rB,{appId:e,defaultPalette:o,children:F}):F},My={theme:"light",palette:void 0,hideScaffolding:!0,hideInteractiveElements:!1,optimizeForMonochrome:!1,showPrintDate:!0,pageMargins:"12mm"};function oB(t,e){switch(e.type){case"TRIGGER_PRINT":return t.printModeState==="normal"?{...t,printModeState:"applying_print_config",printConfig:e.config?{...My,...e.config}:My}:t;case"APPLY_CONFIG":return t.printModeState==="applying_print_config"?{...t,printModeState:"entering_print_mode"}:t;case"VIEW_LOADING":return t.printModeState==="entering_print_mode"?{...t,printModeState:"view_loading"}:t;case"VIEW_READY":return t.printModeState==="view_loading"?{...t,printModeState:"config_applied"}:t.printModeState==="exiting_print_mode"?{...t,printModeState:"restoring_config"}:t;case"CONFIG_APPLIED":return t.printModeState==="config_applied"?{...t,printModeState:"print_mode"}:t;case"EXIT_PRINT_MODE":return t.printModeState!=="normal"&&t.printModeState!=="exiting_print_mode"&&t.printModeState!=="restoring_config"?{...t,printModeState:"exiting_print_mode"}:t;case"RESTORE_CONFIG":return t.printModeState==="restoring_config"?{...t,printModeState:"normal"}:t;case"SET_ORIGINAL_THEME":return{...t,originalTheme:e.theme};case"SET_ORIGINAL_PALETTE":return{...t,originalPalette:e.palette};default:return t}}const UT=S.createContext(null),iB=()=>{const t=S.useContext(UT);if(!t)throw new Error("usePrintMode must be used within a PrintModeProvider");return t},aB=({children:t})=>{const[e,r]=S.useReducer(oB,{printModeState:"normal",printConfig:My,originalTheme:null,originalPalette:null}),{updateConfig:n}=H0(),{setCurrentTheme:o,getCurrentTheme:a}=HT(),{setCurrentPalette:l,getCurrentPalette:c}=DT(),u=e.printModeState==="entering_print_mode"||e.printModeState==="view_loading"||e.printModeState==="config_applied"||e.printModeState==="print_mode",f=S.useCallback(w=>{r({type:"TRIGGER_PRINT",config:w})},[]),h=S.useCallback(()=>{r({type:"EXIT_PRINT_MODE"})},[]),v=S.useCallback(()=>{r({type:"VIEW_LOADING"})},[]),g=S.useCallback(()=>{r({type:"VIEW_READY"})},[]);S.useEffect(()=>{if(e.printModeState==="applying_print_config"){if(e.printConfig.hideScaffolding&&n({enableScaffolding:!1}),e.printConfig.theme&&(r({type:"SET_ORIGINAL_THEME",theme:a()}),o(e.printConfig.theme)),e.printConfig.palette&&(r({type:"SET_ORIGINAL_PALETTE",palette:c()}),l(e.printConfig.palette)),typeof document<"u"&&(document.body.classList.add("print-mode"),e.printConfig.optimizeForMonochrome&&document.body.classList.add("print-monochrome"),e.printConfig.hideInteractiveElements&&document.body.classList.add("print-hide-interactive"),e.printConfig.pageMargins&&e.printConfig.pageMargins!=="12mm")){let w=document.querySelector("#qwick-print-margins");w||(w=document.createElement("style"),w.id="qwick-print-margins",document.head.appendChild(w)),w.textContent=`
332
- @media print {
333
- @page {
334
- margin: ${e.printConfig.pageMargins};
335
- }
336
- }
337
- `}r({type:"APPLY_CONFIG"})}},[e.printModeState,e.printConfig,n,a,c,o,l]),S.useEffect(()=>{if(e.printModeState==="config_applied"){const w=requestAnimationFrame(()=>{r({type:"CONFIG_APPLIED"})});return()=>cancelAnimationFrame(w)}},[e.printModeState]),S.useEffect(()=>{e.printModeState==="exiting_print_mode"&&r({type:"VIEW_READY"})},[e.printModeState]),S.useEffect(()=>{if(e.printModeState==="restoring_config"){if(n({enableScaffolding:!0}),e.originalTheme&&o(e.originalTheme),e.originalPalette&&l(e.originalPalette),typeof document<"u"){document.body.classList.remove("print-mode","print-monochrome","print-hide-interactive");const w=document.querySelector("#qwick-print-margins");w&&w.remove()}r({type:"RESTORE_CONFIG"})}},[e.printModeState,e.originalTheme,e.originalPalette,n,o,l]),S.useEffect(()=>{e.printModeState==="print_mode"&&typeof window<"u"&&window.print()},[e.printModeState]),S.useEffect(()=>{const w=()=>{f()},x=()=>{h()};if(typeof window<"u")return window.addEventListener("beforeprint",w),window.addEventListener("afterprint",x),()=>{window.removeEventListener("beforeprint",w),window.removeEventListener("afterprint",x)}},[h,f]);const y={printModeState:e.printModeState,isPrintMode:u,printConfig:e.printConfig,triggerPrint:f,exitPrintMode:h,onViewLoading:v,onViewReady:g};return d.jsx(UT.Provider,{value:y,children:t})};function sB(){const t=iB();return{isPrintMode:t.isPrintMode,printConfig:t.printConfig,printModeState:t.printModeState,enterPrintMode:t.triggerPrint,exitPrintMode:t.exitPrintMode,togglePrintMode:e=>{t.isPrintMode?t.exitPrintMode():t.triggerPrint(e)},triggerPrint:t.triggerPrint,onViewLoading:t.onViewLoading,onViewReady:t.onViewReady}}function lB(t){const e={};for(const[r,n]of Object.entries(t))if(typeof n=="string"&&n.trim())try{const o=new Function("event",n);e[r]=o}catch(o){console.warn(`Invalid event handler string for ${r}:`,n,o)}else typeof n=="function"&&(e[r]=n);return e}function cB(t){if(t){if(typeof t=="string")try{return JSON.parse(t)}catch(e){console.warn("Invalid sx JSON string:",t,e);return}return t}}function uB(t){if(t){if(typeof t=="string")try{return JSON.parse(t)}catch(e){console.warn("Invalid style JSON string:",t,e);return}return t}}function wl(t){if(t!=null){if(typeof t=="number")return t;if(typeof t=="string"){if(t==="auto"||t==="grow")return t;const e=parseInt(t,10);if(!isNaN(e)&&e>0)return e}}}function dB(t){const{sx:e,style:r,onClick:n,onMouseEnter:o,onMouseLeave:a,onFocus:l,onBlur:c,span:u,xs:f,sm:h,md:v,lg:g,xl:y,backgroundColor:w,...x}=t,C=cB(e),j=uB(r),P=lB({onClick:n,onMouseEnter:o,onMouseLeave:a,onFocus:l,onBlur:c}),M={span:wl(u),xs:wl(f),sm:wl(h),md:wl(v),lg:wl(g),xl:wl(y)},E=x.background??w,R={...x,...M,sx:C,style:j,...P,background:E};return delete R.backgroundColor,R}function Ry(t){if(!(t==null||typeof t=="boolean")){if(typeof t=="string"||typeof t=="number")return String(t);if(Array.isArray(t))return t.map(Ry).filter(Boolean).join("")}}function io(t){const{tagName:e,version:r,role:n,View:o,childrenStrategy:a={mode:"react-children"},finalize:l}=t;function c(f){const{dataSource:h,bindingOptions:v,children:g,...y}=f;let w=y;if(a.mode==="content-prop"){const H=a.propName||"content";if(w[H]==null){const G=Ry(g);typeof G=="string"&&(w={...w,[H]:G})}}const x=dB(w),{loading:C,error:j,...P}=Oi(h||void 0,x,void 0,h?{...v}:{});let M=x;h&&!j&&(M={...x,...P});const{gridProps:E,styleProps:R,htmlProps:I,restProps:F}=kn(M);if(h&&C)return d.jsx("div",{children:"Loading..."});if(h&&j)return console.error("Data binding error:",j),d.jsxs("div",{style:{color:"red",padding:"1rem",border:"1px solid red"},children:["Error loading data: ",j.message]});let A={...F,...R,...I,...n==="container"&&E?{gridProps:E}:{}};return l&&(A=l(A)),a.mode==="content-prop"?d.jsx(o,{...A}):d.jsx(o,{...A,children:g})}const u=c;return u.tagName=e,u.version=r,u[Nn]=Nn,u.fromJson=function(h){const v=h,{tagName:g,version:y,data:w}=v;if(g!==e)throw new Error(`Tag name mismatch: expected ${e}, got ${g}`);if(y!==r&&console.warn(`Version mismatch for ${e}: expected ${r}, got ${y}`),a.mode==="content-prop"){const x=a.propName||"content",{children:C,...j}=w||{},P={...j,[x]:(w==null?void 0:w[x])||""};return Mt.createElement(u,P)}else{const x={...w};return w.children!==void 0&&(x.children=ComponentTransformer.deserialize(w.children)),Mt.createElement(u,x)}},u.toJson=function(h){if(a.mode==="content-prop"){const v=a.propName||"content",{children:g,...y}=h||{},w=(h==null?void 0:h[v])??Ry(h==null?void 0:h.children),x={};for(const[C,j]of Object.entries(y))typeof j=="function"&&C.startsWith("on")?x[C]=j.toString():typeof j!="function"&&j!==void 0&&j!==null&&(x[C]=j);return{tagName:e,version:r,data:{...x,[v]:w||""}}}else{const v={};for(const[g,y]of Object.entries(h))if(typeof y=="function"&&g.startsWith("on"))v[g]=y.toString();else{if(typeof y=="function")continue;(g==="children"||y!=null)&&(v[g]=y)}return{tagName:e,version:r,data:v}}},u.displayName=`SerializableView(${e})`,u}function pB({children:t,gridProps:e,...r}){return d.jsx(fe,{...r,...e?{"data-grid":JSON.stringify(e)}:{},component:"div",children:t})}const fB=io({tagName:"Container",version:"1.0.0",role:"container",View:pB});function hB({content:t,language:e="text",showCopy:r=!0,showLineNumbers:n=!1,title:o,wrapLines:a=!1,codeBackground:l,...c}){var R;const u=eo(),[f,h]=S.useState(!1),[v,g]=S.useState(!1),y=((R=c.sx)==null?void 0:R.maxHeight)||400,w=t||"";if(!(w!=null&&w.trim()))return d.jsx(Ir,{...c,variant:"outlined",sx:{p:3,textAlign:"center",opacity:.6,...c.sx},children:d.jsx(Ee,{variant:"body2",color:"text.secondary",children:"No code content provided"})});const x=async()=>{try{await navigator.clipboard.writeText(w),h(!0),g(!0),setTimeout(()=>h(!1),2e3)}catch(I){console.error("Failed to copy code:",I)}},C=w.split(`
338
- `),j=()=>l||u.palette.grey[u.palette.mode==="dark"?900:50],P=()=>u.palette.grey[u.palette.mode==="dark"?800:200],M=()=>u.palette.text.primary,E=()=>u.palette.divider;return d.jsxs(Ir,{...c,variant:"outlined",sx:{backgroundColor:j(),border:`1px solid ${E()}`,borderRadius:1,overflow:"hidden",position:"relative",...c.sx},children:[(o||r)&&d.jsxs(fe,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",px:2,py:1,backgroundColor:P(),borderBottom:`1px solid ${E()}`},children:[o&&d.jsx(Ee,{variant:"body2",sx:{fontFamily:'Monaco, Consolas, "Ubuntu Mono", monospace',color:M(),opacity:.8},children:o}),d.jsx(fe,{sx:{ml:"auto"},children:r&&d.jsx(Zr,{title:f?"Copied!":"Copy code",children:d.jsx(ur,{size:"small",onClick:x,sx:{color:M(),opacity:.7,"&:hover":{opacity:1,backgroundColor:u.palette.action.hover}},children:f?d.jsx(kT,{fontSize:"small"}):d.jsx(MT,{fontSize:"small"})})})})]}),d.jsx(fe,{sx:{maxHeight:y,overflow:"auto",position:"relative"},children:d.jsx(fe,{component:"pre",sx:{margin:0,padding:2,fontFamily:'Monaco, Consolas, "Ubuntu Mono", monospace',fontSize:"0.875rem",lineHeight:1.5,color:M(),backgroundColor:"transparent",overflow:a?"visible":"auto",whiteSpace:a?"pre-wrap":"pre",wordBreak:a?"break-word":"normal"},children:n?d.jsxs(fe,{sx:{display:"flex"},children:[d.jsx(fe,{sx:{pr:2,mr:2,borderRight:`1px solid ${E()}`,color:M(),opacity:.5,userSelect:"none",minWidth:`${String(C.length).length+1}ch`},children:C.map((I,F)=>d.jsx(fe,{sx:{textAlign:"right"},children:F+1},F))}),d.jsx(fe,{sx:{flex:1,minWidth:0},children:d.jsx("code",{children:w})})]}):d.jsx("code",{children:w})})}),d.jsx(lT,{open:v,autoHideDuration:2e3,onClose:()=>g(!1),anchorOrigin:{vertical:"bottom",horizontal:"right"},children:d.jsx(Tn,{onClose:()=>g(!1),severity:"success",variant:"filled",children:"Code copied to clipboard!"})})]})}const _l=io({tagName:"Code",version:"1.0.0",role:"view",View:hB,childrenStrategy:{mode:"content-prop",propName:"content"}});_l.registerPatternHandlers=t=>{t.hasPattern&&(t.hasPattern("pre code")||t.registerPattern("pre code",_l.transformPreCode),t.hasPattern("code.highlight")||t.registerPattern("code.highlight",_l.transformCodeHighlight))};_l.transformPreCode=t=>{var n;const e=t.querySelector("code");return e?{tagName:"Code",props:{language:((n=Array.from(e.classList).find(o=>o.startsWith("language-")))==null?void 0:n.replace("language-",""))||"text",showCopy:!0,showLineNumbers:!1,content:e.textContent||""}}:null};_l.transformCodeHighlight=t=>{var r;return{tagName:"Code",props:{language:((r=Array.from(t.classList).find(n=>n.startsWith("language-")))==null?void 0:r.replace("language-",""))||"text",showCopy:!0,showLineNumbers:!1,content:t.textContent||""}}};const mB={home:{emoji:"🏠",component:AT},menu:{emoji:"☰",component:J9},dashboard:{emoji:"📊",component:O9},info:{emoji:"ℹ️",component:Ey},about:{emoji:"ℹ️",component:Ey},help:{emoji:"❓",component:IT},book:{emoji:"📖",component:Og},email:{emoji:"📧",component:fS},contact:{emoji:"📧",component:fS},phone:{emoji:"📱",component:n7},send:{emoji:"📤",component:u7},add:{emoji:"➕",component:TT},edit:{emoji:"✏️",component:Ty},delete:{emoji:"🗑️",component:B0},save:{emoji:"💾",component:l7},check:{emoji:"✓",component:kT},close:{emoji:"✕",component:I9},arrowforward:{emoji:"→",component:T9},arrowback:{emoji:"←",component:S9},search:{emoji:"🔍",component:vh},share:{emoji:"🔗",component:p7},download:{emoji:"⬇️",component:N9},clouddownload:{emoji:"☁️⬇️",component:A9},cloudupload:{emoji:"☁️⬆️",component:_9},person:{emoji:"👤",component:Py},user:{emoji:"👤",component:Py},group:{emoji:"👥",component:F9},favorite:{emoji:"❤️",component:RT},star:{emoji:"⭐",component:h7},verified_user:{emoji:"✅",component:x7},business:{emoji:"🏢",component:Ng},shoppingcart:{emoji:"🛒",component:$g},cart:{emoji:"🛒",component:$g},attachmoney:{emoji:"💰",component:P9},lock:{emoji:"🔒",component:ky},lockopen:{emoji:"🔓",component:Q9},visibility:{emoji:"👁️",component:OT},visibilityoff:{emoji:"🙈",component:NT},settings:{emoji:"⚙️",component:mS},computer:{emoji:"💻",component:jT},article:{emoji:"📰",component:k9},blog:{emoji:"📝",component:Og},news:{emoji:"📰",component:Og},products:{emoji:"🛍️",component:$g},services:{emoji:"⚙️",component:mS},portfolio:{emoji:"💼",component:Ng},gallery:{emoji:"🖼️",component:Ng},inventory:{emoji:"📦",component:V9},inventory_2:{emoji:"📦",component:W9},speed:{emoji:"⚡",component:f7},support_agent:{emoji:"🛎️",component:g7},tune:{emoji:"🎛️",component:b7},code:{emoji:"💻",component:PT},psychology:{emoji:"🧠",component:i7},autorenew:{emoji:"🔄",component:j9},integration_instructions:{emoji:"🔌",component:U9},construction:{emoji:"🚧",component:L9},work:{emoji:"💼",component:S7},layers:{emoji:"📚",component:K9},trending_up:{emoji:"📈",component:v7},route:{emoji:"🗺️",component:s7},sync:{emoji:"🔄",component:y7},architecture:{emoji:"🏛️",component:w9},security:{emoji:"🔐",component:c7},key:{emoji:"🔑",component:q9},vpn_key:{emoji:"🔐",component:w7},person_search:{emoji:"🔍",component:r7},manage_accounts:{emoji:"👥",component:Y9},storage:{emoji:"💾",component:LT},refresh:{emoji:"🔄",component:z0},block:{emoji:"🚫",component:ET},check_circle:{emoji:"✅",component:dd},rotate_right:{emoji:"🔄",component:a7},memory:{emoji:"🧠",component:_T},local_offer:{emoji:"🏷️",component:Al}};function Iy(t){if(!t)return null;const e=mB[t.toLowerCase()];if(!(e!=null&&e.component))return console.warn(`[IconMap] Icon "${t}" not found in registry`),null;const r=e.component;return d.jsx(r,{})}const VT=Mt.forwardRef((t,e)=>{const{label:r,variant:n="primary",color:o,buttonSize:a="medium",icon:l,endIcon:c,href:u,target:f="_self",onClick:h,action:v,disabled:g=!1,loading:y=!1,fullWidth:w=!1,children:x,...C}=t,j=()=>{switch(n){case"primary":return"contained";case"secondary":return"contained";case"outlined":return"outlined";case"text":return"text";case"contained":return"contained";default:return"contained"}},P=()=>{if(o)return o;switch(n){case"primary":return"primary";case"secondary":return"secondary";case"outlined":return"primary";case"text":return"primary";case"contained":return"primary";default:return"primary"}},M=()=>{const A=j(),H=P();return A==="contained"?{backgroundColor:`var(--theme-${H})`,color:`var(--theme-on-${H})`,"&:hover":{backgroundColor:`var(--theme-${H}-dark)`},"&.Mui-disabled":{backgroundColor:"var(--theme-text-disabled)",color:"var(--theme-on-surface)"}}:A==="outlined"?{borderColor:`var(--theme-${H})`,color:`var(--theme-${H})`,"&:hover":{borderColor:`var(--theme-${H}-dark)`,backgroundColor:`var(--theme-${H}-light)`},"&.Mui-disabled":{borderColor:"var(--theme-border-main)",color:"var(--theme-text-disabled)"}}:{color:`var(--theme-${H})`,"&:hover":{backgroundColor:`var(--theme-${H}-light)`},"&.Mui-disabled":{color:"var(--theme-text-disabled)"}}},E=Mt.useCallback(A=>{if(v)switch(A.preventDefault(),v.type){case"navigate":v.url&&(v.target==="_blank"?window.open(v.url,"_blank","noopener,noreferrer"):window.location.href=v.url);break;case"submit":if(v.form){const H=document.getElementById(v.form);H instanceof HTMLFormElement&&H.requestSubmit()}break;case"external":v.url&&window.open(v.url,v.target||"_blank","noopener,noreferrer");break;case"custom":if(v.customHandler&&typeof window<"u"){const H=window[v.customHandler];typeof H=="function"&&H(A)}break}h&&h(A)},[v,h]),R=!!(u&&!g&&!y),I={variant:j(),size:a,disabled:g||y,fullWidth:w,...C,sx:{...M(),textTransform:"none",...y&&{"& .MuiButton-startIcon":{marginRight:1}},...C.sx||{}},startIcon:y?d.jsx(On,{size:16,color:"inherit","aria-label":"Loading"}):l,endIcon:y?void 0:c};if(R){const A={...I,component:"a",href:u,target:f,rel:f==="_blank"?"noopener noreferrer":void 0,onClick:void 0};return d.jsx($u,{ref:e,...A,children:r||x})}const F={...I,onClick:g||y?void 0:v?E:h};return d.jsx($u,{ref:e,...F,children:r||x})});VT.displayName="ButtonView";const Mr=io({tagName:"Button",version:"1.0.0",role:"view",View:VT,finalize:t=>{const e={...t};if(typeof t.icon=="string"){const r=Iy(t.icon);e.icon=r||void 0}if(typeof t.endIcon=="string"){const r=Iy(t.endIcon);e.endIcon=r||void 0}return e}});Mr.registerPatternHandlers=t=>{t.hasPattern("button")||t.registerPattern("button",gB),t.hasPattern('input[type="button"]')||t.registerPattern('input[type="button"]',yB),t.hasPattern('input[type="submit"]')||t.registerPattern('input[type="submit"]',vB)};function gB(t){const e=t.getAttribute("data-variant")||(t.className.includes("btn-primary")?"primary":t.className.includes("btn-outlined")?"outlined":"secondary"),r=t.hasAttribute("disabled"),n=t.getAttribute("data-href"),o=t.getAttribute("data-target");return{tagName:"Button",props:{label:t.textContent||"Button",variant:e,disabled:r,href:n||void 0,target:o||void 0}}}function yB(t){const e=t.hasAttribute("disabled");return{tagName:"Button",props:{label:t.getAttribute("value")||"Button",variant:"secondary",disabled:e}}}function vB(t){const e=t.hasAttribute("disabled");return{tagName:"Button",props:{label:t.getAttribute("value")||"Submit",variant:"primary",disabled:e,type:"submit"}}}function bB({content:t,variant:e="body1",color:r="inherit",align:n="inherit",component:o="p",fontWeight:a="inherit",textDecoration:l="none",textTransform:c="none",noWrap:u=!1,paragraph:f=!1,gutterBottom:h=!1,fontSize:v,lineHeight:g,letterSpacing:y,fontFamily:w,customColor:x,maxWidth:C,className:j,style:P,...M}){const E=t||"";if(!E)return null;const R={...P};return v&&(R.fontSize=v),g&&(R.lineHeight=g),y&&(R.letterSpacing=y),w&&(R.fontFamily=w),x&&(R.color=x),C&&(R.maxWidth=C),a!=="inherit"&&(R.fontWeight=a),l!=="none"&&(R.textDecoration=l),c!=="none"&&(R.textTransform=c),M.onClick&&(R.cursor="pointer"),d.jsx(Ee,{...M,variant:e,color:r,align:n,component:o,noWrap:u,paragraph:f,gutterBottom:h,className:`text ${j||""}`.trim(),style:R,children:E})}const At=io({tagName:"Text",version:"1.0.0",role:"view",View:bB,childrenStrategy:{mode:"content-prop",propName:"content"}});At.registerPatternHandlers=t=>{const e=At;t.hasPattern("p")||t.registerPattern("p",e.transformParagraph),["h1","h2","h3","h4","h5","h6"].forEach(n=>{t.hasPattern(n)||t.registerPattern(n,o=>e.transformHeading(o,n))}),t.hasPattern("span")||t.registerPattern("span",e.transformSpan)};At.transformParagraph=t=>({tagName:"Text",version:"1.0.0",data:{variant:"body1",component:"p",content:t.textContent||""}});At.transformHeading=(t,e)=>({tagName:"Text",version:"1.0.0",data:{variant:{h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6"}[e]||"h4",component:e,content:t.textContent||""}});At.transformSpan=t=>({tagName:"Text",version:"1.0.0",data:{variant:"body2",component:"span",content:t.textContent||""}});function xB({title:t="",subtitle:e,backgroundImage:r,backgroundGradient:n,backgroundColor:o="primary",actions:a=[],children:l,textAlign:c="center",blockHeight:u="medium",overlayOpacity:f=.5,gridProps:h,...v}){const g=eo(),y=()=>{switch(u){case"small":return 300;case"medium":return 400;case"large":return 600;case"viewport":return"100vh";default:return 400}},w=()=>{if(r||n)return"transparent";switch(o){case"primary":return g.palette.primary.main;case"secondary":return g.palette.secondary.main;case"surface":return g.palette.background.paper;default:return g.palette.background.default}},x=()=>{switch(o){case"primary":return g.palette.primary.contrastText;case"secondary":return g.palette.secondary.contrastText;case"surface":return g.palette.getContrastText(g.palette.background.paper);default:return g.palette.text.primary}};return d.jsxs(fe,{component:"section",...v,...h?{"data-grid":JSON.stringify(h)}:{},sx:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",minHeight:y(),backgroundColor:w(),color:x(),backgroundImage:r?`url(${r})`:n||"none",backgroundSize:r?"cover":"auto",backgroundPosition:r?"center":"initial",backgroundRepeat:"no-repeat",overflow:"hidden",...v.sx},children:[r&&d.jsx(fe,{sx:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.4)",opacity:f,zIndex:1}}),d.jsx(Tf,{maxWidth:"md",sx:{position:"relative",zIndex:2,textAlign:c,py:4},children:d.jsxs(Bw,{spacing:3,alignItems:c==="center"?"center":c==="right"?"flex-end":"flex-start",children:[d.jsx(At,{variant:"h2",component:"h1",customColor:"var(--theme-on-primary)",sx:{fontWeight:700,fontSize:{xs:"2rem",sm:"2.5rem",md:"3rem",lg:"3.5rem"},lineHeight:1.2,maxWidth:"800px"},children:t}),e&&d.jsx(At,{variant:"h5",component:"p",customColor:"var(--theme-on-primary)",fontWeight:"400",sx:{opacity:.9,maxWidth:"600px"},children:e}),a.length>0&&d.jsx(Bw,{direction:"row",spacing:2,sx:{mt:2,flexWrap:"wrap",gap:1,justifyContent:c==="center"?"center":c==="right"?"flex-end":"flex-start"},children:a.map((C,j)=>d.jsx(Mr,{buttonSize:"large",...C},`hero-action-${j}`))}),l&&d.jsx(fe,{sx:{maxWidth:"800px"},children:l})]})})]})}const wB=io({tagName:"HeroBlock",version:"1.0.0",role:"container",View:xB});function SB({src:t,alt:e="",width:r,height:n,objectFit:o="cover",objectPosition:a="center",loading:l="lazy",title:c,draggable:u=!1,borderRadius:f,showLoading:h=!1,showError:v=!1,fallbackSrc:g,sizes:y,srcSet:w,loadingPlaceholder:x,errorPlaceholder:C,onClick:j,style:P,className:M,...E}){const R=eo(),[I,F]=S.useState("loading"),[A,H]=S.useState(t),G=S.useCallback(()=>{F("loaded")},[]),N=S.useCallback(()=>{if(g&&A!==g){H(g);return}F("error")},[g,A]);if(!t)return v?d.jsx(fe,{...E,className:`image-error ${M||""}`.trim(),style:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:R.palette.grey[100],color:R.palette.text.secondary,width:r||200,height:n||150,borderRadius:f,...P},children:C||d.jsxs(fe,{sx:{textAlign:"center"},children:[d.jsx(dS,{sx:{fontSize:48,mb:1,opacity:.5}}),d.jsx(Ee,{variant:"body2",color:"text.secondary",children:"No image source"})]})}):null;if(I==="loading"&&h)return d.jsx(fe,{...E,className:`image-loading ${M||""}`.trim(),style:{width:r||"100%",height:n||200,borderRadius:f,...P},children:x||d.jsx(dN,{variant:"rectangular",width:"100%",height:"100%",sx:{borderRadius:f}})});if(I==="error"&&v)return d.jsx(fe,{...E,className:`image-error ${M||""}`.trim(),style:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:R.palette.grey[100],color:R.palette.text.secondary,width:r||"100%",height:n||200,borderRadius:f,...P},children:C||d.jsxs(fe,{sx:{textAlign:"center",p:2},children:[d.jsx(dS,{sx:{fontSize:48,mb:1,opacity:.5}}),d.jsx(Ee,{variant:"body2",color:"text.secondary",children:"Failed to load image"}),g&&d.jsx(Ee,{variant:"caption",color:"text.secondary",children:"Fallback image also failed"})]})});const k={display:"block",maxWidth:"100%",height:"auto",objectFit:o,objectPosition:a,borderRadius:f,cursor:j?"pointer":"default",...P};return r&&(k.width=r),n&&(k.height=n),d.jsx("img",{...E,src:A,alt:e,width:r,height:n,loading:l,title:c,draggable:u,sizes:y,srcSet:w,className:`image ${M||""}`.trim(),style:k,onClick:j,onLoad:G,onError:N})}const WT=io({tagName:"Image",version:"1.0.0",role:"view",View:SB});WT.registerPatternHandlers=t=>{t.hasPattern("img")||t.registerPattern("img",CB),t.hasPattern("figure img")||t.registerPattern("figure img",TB)};function CB(t){const e=t.getAttribute("src")||"",r=t.getAttribute("alt")||"",n=t.getAttribute("width"),o=t.getAttribute("height"),a=t.getAttribute("loading");return{tagName:"Image",props:{src:e,alt:r,width:n?parseInt(n):void 0,height:o?parseInt(o):void 0,loading:a||"lazy"}}}function TB(t){const e=t.closest("figure"),r=e==null?void 0:e.querySelector("figcaption"),n=(r==null?void 0:r.textContent)||"",o=t.getAttribute("src")||"",a=t.getAttribute("alt")||n,l=t.getAttribute("width"),c=t.getAttribute("height");return{tagName:"Image",props:{src:o,alt:a,caption:n||void 0,width:l?parseInt(l):void 0,height:c?parseInt(c):void 0,loading:"lazy"}}}function EB({children:t,background:e="var(--theme-surface)",color:r="var(--theme-on-surface)",padding:n="medium",contentMaxWidth:o="lg",component:a="section",gridProps:l,...c}){if(!t)return d.jsx(fe,{component:a,...c,...l?{"data-grid":JSON.stringify(l)}:{},sx:{backgroundColor:e,color:r,position:"static",py:2,px:0,...c.sx},children:d.jsx(Tf,{maxWidth:vS(o),sx:{position:"relative",textAlign:"center",opacity:.6,...o===!1&&{maxWidth:"none !important",px:3}},children:"No content provided for this section"})});const u=()=>{switch(n){case"none":return 0;case"tiny":return{py:1,px:0};case"small":return{py:2,px:0};case"medium":return{py:4,px:0};case"large":return{py:8,px:0};case"extra-large":return{py:12,px:0};default:return{py:4,px:0}}};return d.jsx(fe,{component:a,...c,...l?{"data-grid":JSON.stringify(l)}:{},sx:{backgroundColor:e,color:r,position:"static",...u(),...c.sx},children:d.jsx(Tf,{maxWidth:vS(o),sx:{position:"relative",...o===!1&&{maxWidth:"none !important",px:3}},children:t})})}const Ll=io({tagName:"Section",version:"1.0.0",role:"container",View:EB,finalize:t=>t.contentMaxWidth==="false"?{...t,contentMaxWidth:!1}:t});Ll.registerPatternHandlers=t=>{t.hasPattern("section")||t.registerPattern("section",Ll.transformSection),t.hasPattern("section.blog-section")||t.registerPattern("section.blog-section",Ll.transformBlogSection)};Ll.transformSection=t=>{const e=t.getAttribute("data-padding")||"medium",r=t.getAttribute("data-background"),n=t.getAttribute("data-max-width")||"lg";return{tagName:"Section",version:"1.0.0",data:{padding:e,background:r,contentMaxWidth:n,children:t.innerHTML}}};Ll.transformBlogSection=t=>{const e=t.getAttribute("data-padding")||"large",r=t.getAttribute("data-background")||"var(--theme-surface)";return{tagName:"Section",version:"1.0.0",data:{padding:e,background:r,contentMaxWidth:"md",children:t.innerHTML}}};function _(t,e,r,n){var o=arguments.length,a=o<3?e:n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(a=(o<3?l(a):o>3?l(e,r,a):l(e,r))||a);return o>3&&a&&Object.defineProperty(e,r,a),a}function D(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}let mt=class extends lr{};_([B(),z({field_type:$.TEXT,label:"Grid Span",description:"Column span for grid layouts (number, auto, or grow)"}),V(),$o((t,e)=>typeof e=="string"),He(["auto","grow"]),$o((t,e)=>typeof e=="number"),dc(),no(1),D("design:type",Object)],mt.prototype,"span",void 0);_([B(),z({field_type:$.TEXT,label:"Extra Small Breakpoint (xs)",description:"Column span for extra small screens"}),V(),$o((t,e)=>typeof e=="string"),He(["auto"]),$o((t,e)=>typeof e=="number"),dc(),no(1),D("design:type",Object)],mt.prototype,"xs",void 0);_([B(),z({field_type:$.SELECT,label:"Small Breakpoint (sm)",description:"Column span for small screens"}),V(),$o((t,e)=>typeof e=="string"),He(["auto"]),$o((t,e)=>typeof e=="number"),dc(),no(1),D("design:type",Object)],mt.prototype,"sm",void 0);_([B(),z({field_type:$.SELECT,label:"Medium Breakpoint (md)",description:"Column span for medium screens"}),V(),$o((t,e)=>typeof e=="string"),He(["auto"]),$o((t,e)=>typeof e=="number"),dc(),no(1),D("design:type",Object)],mt.prototype,"md",void 0);_([B(),z({field_type:$.SELECT,label:"Large Breakpoint (lg)",description:"Column span for large screens"}),V(),$o((t,e)=>typeof e=="string"),He(["auto"]),$o((t,e)=>typeof e=="number"),dc(),no(1),D("design:type",Object)],mt.prototype,"lg",void 0);_([B(),z({field_type:$.SELECT,label:"Extra Large Breakpoint (xl)",description:"Column span for extra large screens"}),V(),$o((t,e)=>typeof e=="string"),He(["auto"]),$o((t,e)=>typeof e=="number"),dc(),no(1),D("design:type",Object)],mt.prototype,"xl",void 0);_([B(),z({field_type:$.TEXT,label:"CSS Class Name",description:"Additional CSS class name for custom styling",placeholder:"custom-class-name"}),V(),ie(),D("design:type",String)],mt.prototype,"className",void 0);_([B(),z({field_type:$.TEXTAREA,label:"MUI SX Props",description:"MUI sx prop as JSON string for advanced styling",placeholder:'{"color": "primary.main", "fontWeight": "bold"}'}),V(),ie(),D("design:type",Object)],mt.prototype,"sx",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Inline Styles",description:"Inline CSS styles as JSON string",placeholder:'{"color": "red", "margin": "10px"}'}),V(),ie(),D("design:type",Object)],mt.prototype,"style",void 0);_([B(),z({field_type:$.TEXT,label:"Width",description:"Component width (t-shirt sizes, breakpoints, CSS values, or numbers)",placeholder:"medium, 300px, 50%, auto, grow"}),V(),ie(),D("design:type",Object)],mt.prototype,"width",void 0);_([B(),z({field_type:$.TEXT,label:"Height",description:"Component height (t-shirt sizes, CSS values, or numbers)",placeholder:"medium, 200px, 50vh, auto"}),V(),ie(),D("design:type",Object)],mt.prototype,"height",void 0);_([B(),z({field_type:$.TEXT,label:"Minimum Width",description:"Minimum width constraint",placeholder:"small, 100px, auto"}),V(),ie(),D("design:type",Object)],mt.prototype,"minWidth",void 0);_([B(),z({field_type:$.TEXT,label:"Minimum Height",description:"Minimum height constraint",placeholder:"small, 100px, auto"}),V(),ie(),D("design:type",Object)],mt.prototype,"minHeight",void 0);_([B(),z({field_type:$.TEXT,label:"Maximum Width",description:"Maximum width constraint",placeholder:"large, lg, 1200px"}),V(),ie(),D("design:type",Object)],mt.prototype,"maxWidth",void 0);_([B(),z({field_type:$.TEXT,label:"Maximum Height",description:"Maximum height constraint",placeholder:"large, 500px, 80vh"}),V(),ie(),D("design:type",Object)],mt.prototype,"maxHeight",void 0);_([B(),z({field_type:$.SELECT,label:"Padding",description:"Internal spacing for all sides"}),V(),ie(),He(["none","tiny","small","medium","large","huge"]),D("design:type",Object)],mt.prototype,"padding",void 0);_([B(),z({field_type:$.SELECT,label:"Padding Top",description:"Internal spacing for top side"}),V(),ie(),He(["none","tiny","small","medium","large","huge"]),D("design:type",Object)],mt.prototype,"paddingTop",void 0);_([B(),z({field_type:$.SELECT,label:"Padding Right",description:"Internal spacing for right side"}),V(),ie(),He(["none","tiny","small","medium","large","huge"]),D("design:type",Object)],mt.prototype,"paddingRight",void 0);_([B(),z({field_type:$.SELECT,label:"Padding Bottom",description:"Internal spacing for bottom side"}),V(),ie(),He(["none","tiny","small","medium","large","huge"]),D("design:type",Object)],mt.prototype,"paddingBottom",void 0);_([B(),z({field_type:$.SELECT,label:"Padding Left",description:"Internal spacing for left side"}),V(),ie(),He(["none","tiny","small","medium","large","huge"]),D("design:type",Object)],mt.prototype,"paddingLeft",void 0);_([B(),z({field_type:$.SELECT,label:"Padding Horizontal (X)",description:"Internal spacing for left and right sides"}),V(),ie(),He(["none","tiny","small","medium","large","huge"]),D("design:type",Object)],mt.prototype,"paddingX",void 0);_([B(),z({field_type:$.SELECT,label:"Padding Vertical (Y)",description:"Internal spacing for top and bottom sides"}),V(),ie(),He(["none","tiny","small","medium","large","huge"]),D("design:type",Object)],mt.prototype,"paddingY",void 0);_([B(),z({field_type:$.SELECT,label:"Margin",description:"External spacing for all sides"}),V(),ie(),He(["none","tiny","small","medium","large","huge"]),D("design:type",Object)],mt.prototype,"margin",void 0);_([B(),z({field_type:$.SELECT,label:"Margin Top",description:"External spacing for top side"}),V(),ie(),He(["none","tiny","small","medium","large","huge"]),D("design:type",Object)],mt.prototype,"marginTop",void 0);_([B(),z({field_type:$.SELECT,label:"Margin Right",description:"External spacing for right side"}),V(),ie(),He(["none","tiny","small","medium","large","huge"]),D("design:type",Object)],mt.prototype,"marginRight",void 0);_([B(),z({field_type:$.SELECT,label:"Margin Bottom",description:"External spacing for bottom side"}),V(),ie(),He(["none","tiny","small","medium","large","huge"]),D("design:type",Object)],mt.prototype,"marginBottom",void 0);_([B(),z({field_type:$.SELECT,label:"Margin Left",description:"External spacing for left side"}),V(),ie(),He(["none","tiny","small","medium","large","huge"]),D("design:type",Object)],mt.prototype,"marginLeft",void 0);_([B(),z({field_type:$.SELECT,label:"Margin Horizontal (X)",description:"External spacing for left and right sides"}),V(),ie(),He(["none","tiny","small","medium","large","huge"]),D("design:type",Object)],mt.prototype,"marginX",void 0);_([B(),z({field_type:$.SELECT,label:"Margin Vertical (Y)",description:"External spacing for top and bottom sides"}),V(),ie(),He(["none","tiny","small","medium","large","huge"]),D("design:type",Object)],mt.prototype,"marginY",void 0);_([B(),z({field_type:$.TEXT,label:"Background",description:"Background fill (color, gradient, image CSS). Canonical name.",placeholder:"#ffffff, primary.main, linear-gradient(...)"}),V(),ie(),D("design:type",String)],mt.prototype,"background",void 0);_([B(),z({field_type:$.TEXT,label:"Background Color (Deprecated)",description:"Use background instead. Kept for backward compatibility.",placeholder:"#ffffff, primary.main"}),V(),ie(),D("design:type",String)],mt.prototype,"backgroundColor",void 0);_([B(),z({field_type:$.TEXT,label:"Background Image",description:"Background image URL",placeholder:"https://example.com/image.jpg"}),V(),ie(),D("design:type",String)],mt.prototype,"backgroundImage",void 0);_([B(),z({field_type:$.TEXT,label:"Background Gradient",description:"CSS gradient for background",placeholder:"linear-gradient(45deg, #ff6b6b, #4ecdc4)"}),V(),ie(),D("design:type",String)],mt.prototype,"backgroundGradient",void 0);_([B(),z({field_type:$.SELECT,label:"Text Alignment",description:"Text alignment within the component"}),V(),ie(),He(["left","center","right","justify"]),D("design:type",String)],mt.prototype,"textAlign",void 0);_([B(),z({field_type:$.TEXT,label:"Element ID",description:"Unique HTML element ID",placeholder:"unique-element-id"}),V(),ie(),D("design:type",String)],mt.prototype,"id",void 0);_([B(),z({field_type:$.TEXT,label:"Role",description:"ARIA role for accessibility",placeholder:"button, navigation, main, etc."}),V(),ie(),D("design:type",String)],mt.prototype,"role",void 0);_([B(),z({field_type:$.TEXT,label:"ARIA Label",description:"Accessibility label for screen readers",placeholder:"Describe this element..."}),V(),ie(),D("design:type",String)],mt.prototype,"aria-label",void 0);_([B(),z({field_type:$.TEXT,label:"ARIA Labelled By",description:"IDs of elements that label this component",placeholder:"label-element-id"}),V(),ie(),D("design:type",String)],mt.prototype,"aria-labelledby",void 0);_([B(),z({field_type:$.TEXT,label:"ARIA Described By",description:"IDs of elements that describe this component",placeholder:"element-id-1 element-id-2"}),V(),ie(),D("design:type",String)],mt.prototype,"aria-describedby",void 0);_([B(),z({field_type:$.TEXT,label:"Data Test ID",description:"Test automation identifier",placeholder:"test-element-name"}),V(),ie(),D("design:type",String)],mt.prototype,"data-testid",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Click Handler",description:"JavaScript function for click events",placeholder:'function(event) { console.debug("clicked"); }'}),V(),ie(),D("design:type",Function)],mt.prototype,"onClick",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Mouse Enter Handler",description:"JavaScript function for mouse enter events",placeholder:"function(event) { /* hover start */ }"}),V(),ie(),D("design:type",Function)],mt.prototype,"onMouseEnter",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Mouse Leave Handler",description:"JavaScript function for mouse leave events",placeholder:"function(event) { /* hover end */ }"}),V(),ie(),D("design:type",Function)],mt.prototype,"onMouseLeave",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Focus Handler",description:"JavaScript function for focus events",placeholder:"function(event) { /* element focused */ }"}),V(),ie(),D("design:type",Function)],mt.prototype,"onFocus",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Blur Handler",description:"JavaScript function for blur events",placeholder:"function(event) { /* element blurred */ }"}),V(),ie(),D("design:type",Function)],mt.prototype,"onBlur",void 0);mt=_([Nt("ViewSchema","1.0.0")],mt);var qT=mt;let ta=class extends qT{};_([B(),z({field_type:$.TEXTAREA,label:"Content",description:"Main content shown when expanded (HTML supported)",placeholder:"Enter main content..."}),V(),ie(),D("design:type",Object)],ta.prototype,"children",void 0);ta=_([Nt("ContainerSchema","1.0.0")],ta);let ri=class extends ta{};_([B(),z({field_type:$.TEXT,label:"Title",description:"Title for the default header (ignored if custom header is provided)",placeholder:"Enter form title..."}),V(),ie(),D("design:type",String)],ri.prototype,"title",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Description",description:"Description/subtitle for the default header (ignored if custom header is provided)",placeholder:"Enter form description..."}),V(),ie(),D("design:type",String)],ri.prototype,"description",void 0);_([B(),z({field_type:$.TEXT,label:"Cover Image URL",description:"Cover image URL for the default header (ignored if custom header is provided)",placeholder:"https://example.com/image.jpg"}),V(),ie(),D("design:type",Object)],ri.prototype,"coverImage",void 0);_([B(),z({field_type:$.TEXT,label:"Status Type",description:"Status type for message display (info, success, warning, error)",placeholder:"info"}),V(),He(["info","success","warning","error"]),D("design:type",String)],ri.prototype,"status",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Status Message",description:"Status message to display",placeholder:"Enter status message..."}),V(),ie(),D("design:type",String)],ri.prototype,"message",void 0);_([B({defaultValue:"sm"}),z({field_type:$.TEXT,label:"Maximum Width",description:"Maximum width of the form container (xs, sm, md)",placeholder:"sm"}),V(),He(["xs","sm","md"]),D("design:type",String)],ri.prototype,"maxWidth",void 0);_([B({defaultValue:"default"}),z({field_type:$.TEXT,label:"Background Style",description:"Background style variant (default, gradient, image)",placeholder:"default"}),V(),He(["default","gradient","image"]),D("design:type",String)],ri.prototype,"background",void 0);_([B(),z({field_type:$.TEXT,label:"Background Image URL",description:'Background image URL (when background="image")',placeholder:"https://example.com/background.jpg"}),V(),ie(),D("design:type",String)],ri.prototype,"backgroundImage",void 0);ri=_([Nt("FormBlock","1.0.0")],ri);var kB=ri;function Ay(t){if(t==null)return"";if(typeof t=="string"||typeof t=="number")return String(t);if(typeof t=="boolean")return t?"true":"false";if(Array.isArray(t))return t.map(e=>Ay(e)).join("");if(typeof t=="object"&&t!==null&&"props"in t){const e=t;if(e.props&&e.props.children)return Ay(e.props.children)}return String(t)}function PB(t){const{span:e,xs:r,sm:n,md:o,lg:a,xl:l,sx:c,style:u,...f}=t;return{span:e==="auto"?"auto":e==="grow"?"grow":e&&typeof e=="string"?parseInt(e,10):e,xs:r==="auto"?"auto":r&&typeof r=="string"?parseInt(r,10):r,sm:n==="auto"?"auto":n&&typeof n=="string"?parseInt(n,10):n,md:o==="auto"?"auto":o&&typeof o=="string"?parseInt(o,10):o,lg:a==="auto"?"auto":a&&typeof a=="string"?parseInt(a,10):a,xl:l==="auto"?"auto":l&&typeof l=="string"?parseInt(l,10):l,sx:typeof c=="string"?(()=>{try{return JSON.parse(c)}catch{return c}})():c,style:typeof u=="string"?(()=>{try{return JSON.parse(u)}catch{return u}})():u,onClick:typeof t.onClick=="string"?ou(t.onClick):t.onClick,onMouseEnter:typeof t.onMouseEnter=="string"?ou(t.onMouseEnter):t.onMouseEnter,onMouseLeave:typeof t.onMouseLeave=="string"?ou(t.onMouseLeave):t.onMouseLeave,onFocus:typeof t.onFocus=="string"?ou(t.onFocus):t.onFocus,onBlur:typeof t.onBlur=="string"?ou(t.onBlur):t.onBlur,...f}}function ou(t){if(!(!t||typeof t!="string"))try{let e;return t.trim().startsWith("function")?e=new Function(`return (${t})`)():e=new Function("event",t),r=>e(r)}catch(e){console.error("Error parsing event handler:",e);return}}class zs extends Mt.Component{static fromJson(e){const r=e,{tagName:n,version:o,data:a}=r;if(n!==this.tagName)throw new Error(`Cannot deserialize: Expected tagName '${this.tagName}' but got '${n}'`);return o!==this.version&&console.warn(`Version mismatch: Expected ${this.version} but got ${o}`),Mt.createElement(this,a||{})}toJson(){const e=this.getBaseSerializableProps(),r=this.getComponentSpecificProps();return{tagName:this.constructor.tagName,version:this.constructor.version,data:{...e,...r}}}getProcessedProps(){const{dataSource:e,bindingOptions:r,...n}=this.props,o=PB(n);return{gridProps:{span:o.span,xs:o.xs,sm:o.sm,md:o.md,lg:o.lg,xl:o.xl},styleProps:{className:o.className,sx:o.sx,style:o.style},htmlProps:{id:o.id,role:o.role,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],"aria-describedby":o["aria-describedby"],"data-testid":o["data-testid"],onClick:o.onClick,onMouseEnter:o.onMouseEnter,onMouseLeave:o.onMouseLeave,onFocus:o.onFocus,onBlur:o.onBlur},restProps:{width:o.width,height:o.height,minWidth:o.minWidth,minHeight:o.minHeight,maxWidth:o.maxWidth,maxHeight:o.maxHeight,padding:o.padding,paddingTop:o.paddingTop,paddingRight:o.paddingRight,paddingBottom:o.paddingBottom,paddingLeft:o.paddingLeft,paddingX:o.paddingX,paddingY:o.paddingY,margin:o.margin,marginTop:o.marginTop,marginRight:o.marginRight,marginBottom:o.marginBottom,marginLeft:o.marginLeft,marginX:o.marginX,marginY:o.marginY,background:o.background,backgroundImage:o.backgroundImage,backgroundGradient:o.backgroundGradient,textAlign:o.textAlign}}}getBaseSerializableProps(){const e=this.props;return{children:e.children?this.serializeChildren(e.children):void 0,dataSource:e.dataSource,bindingOptions:e.bindingOptions,...e}}serializeChildren(e){if(typeof e=="string")return e;if(this.hasNestedComponents(e))throw new Error("Components with nested components must override serializeChildren method");return Ay(e)}hasNestedComponents(e){return!1}render(){return this.props.dataSource?this.renderWithDataBinding():this.renderView()}static registerPatternHandlers(e){}}zs.tagName="";zs.version="";let Mi=class extends lr{};_([B(),z({field_type:$.TEXT,label:"ID",description:"Unique identifier for the action",placeholder:"action-id"}),ie(),Ya(),D("design:type",String)],Mi.prototype,"id",void 0);_([B(),z({field_type:$.TEXT,label:"Label",description:"Display label for the action button",placeholder:"Action label"}),ie(),D("design:type",String)],Mi.prototype,"label",void 0);_([B(),z({field_type:$.TEXT,label:"Icon",description:"Icon component or JSX element",placeholder:"icon-name"}),V(),ie(),D("design:type",String)],Mi.prototype,"icon",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Disabled",description:"Whether this action is disabled"}),V(),_t(),D("design:type",Boolean)],Mi.prototype,"disabled",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Destructive",description:"Whether this action is destructive (shows with warning styling)"}),V(),_t(),D("design:type",Boolean)],Mi.prototype,"destructive",void 0);_([B(),z({field_type:$.NUMBER,label:"Priority",description:"Priority for ordering (lower numbers = higher priority)",validation:{min:1,max:100}}),V(),Sr(),no(1),Bs(100),D("design:type",Number)],Mi.prototype,"priority",void 0);Mi=_([Nt("HeaderAction","1.0.0")],Mi);let tn=class extends lr{};_([B(),z({field_type:$.IMAGE,label:"Image",description:"Image URL or component",placeholder:"Upload image"}),V(),ie(),D("design:type",String)],tn.prototype,"image",void 0);_([B(),z({field_type:$.TEXT,label:"Image Alt Text",description:"Alternative text for image",placeholder:"Descriptive alt text..."}),V(),ie(),D("design:type",String)],tn.prototype,"imageAlt",void 0);_([B(),z({field_type:$.SELECT,label:"Image Size",description:"Size of the image",validation:{options:[{label:"Small",value:"small"},{label:"Medium",value:"medium"},{label:"Large",value:"large"}]}}),V(),He(["small","medium","large"]),D("design:type",String)],tn.prototype,"imageSize",void 0);_([B(),z({field_type:$.SELECT,label:"Image Shape",description:"Shape of the image",validation:{options:[{label:"Square",value:"square"},{label:"Circle",value:"circle"},{label:"Rounded",value:"rounded"}]}}),V(),He(["square","circle","rounded"]),D("design:type",String)],tn.prototype,"imageShape",void 0);_([B({defaultValue:"transparent"}),z({field_type:$.COLOR,label:"Image Background",description:"Image background color",placeholder:"Pick a color for the image background"}),V(),ie(),D("design:type",String)],tn.prototype,"imageBackgroundColor",void 0);_([B(),z({field_type:$.TEXT,label:"Overline",description:"Small text above the main title",placeholder:"Overline text"}),V(),ie(),D("design:type",String)],tn.prototype,"overline",void 0);_([B(),z({field_type:$.TEXT,label:"Title",description:"Main heading/title text",placeholder:"Enter title..."}),ie(),D("design:type",String)],tn.prototype,"title",void 0);_([B(),z({field_type:$.TEXT,label:"Subtitle",description:"Secondary text below the title",placeholder:"Enter subtitle..."}),V(),ie(),D("design:type",String)],tn.prototype,"subtitle",void 0);_([B(),z({field_type:$.REPEATER,label:"Tags",description:"Array of tag strings"}),V(),nn(),ie({each:!0}),D("design:type",Array)],tn.prototype,"tags",void 0);_([B(),z({field_type:$.REPEATER,label:"Actions",description:"Array of header action buttons"}),V(),nn(),ro({each:!0}),oo(()=>Mi),D("design:type",Array)],tn.prototype,"actions",void 0);_([B(),z({field_type:$.NUMBER,label:"Max Visible Actions",description:"Maximum visible actions before overflow",validation:{min:1,max:10}}),V(),Sr(),no(1),Bs(10),D("design:type",Number)],tn.prototype,"maxVisibleActions",void 0);_([B(),z({field_type:$.TEXT,label:"CSS Class",description:"Additional CSS class name",placeholder:"custom-class"}),V(),ie(),D("design:type",String)],tn.prototype,"className",void 0);_([B(),z({field_type:$.SELECT,label:"Header Variant",description:"Style variant for the header",validation:{options:[{label:"Default",value:"default"},{label:"Compact",value:"compact"},{label:"Prominent",value:"prominent"}]}}),V(),He(["default","compact","prominent"]),D("design:type",String)],tn.prototype,"variant",void 0);_([B({defaultValue:"--var(--theme-primary)"}),z({field_type:$.TEXT,label:"Background",description:"Background color or image URL",placeholder:"Pick a color for the background or enter a image URL"}),V(),ie(),D("design:type",String)],tn.prototype,"background",void 0);_([B({defaultValue:"--var(--theme-on-primary)"}),z({field_type:$.COLOR,label:"Color",description:"Foreground color",placeholder:"#000000"}),V(),ie(),D("design:type",String)],tn.prototype,"color",void 0);tn=_([Nt("CoverImageHeader","1.0.0")],tn);var jB=tn;function jS({image:t,imageAlt:e="",imageSize:r="medium",imageShape:n="rounded",imageBackgroundColor:o="transparent",overline:a,title:l,subtitle:c,tags:u=[],actions:f=[],maxVisibleActions:h=3,variant:v="default",background:g,color:y,...w}){const{gridProps:x,styleProps:C,htmlProps:j}=kn(w),[P,M]=S.useState(null),E=!!P,R=[...f].sort((Z,Q)=>(Z.priority||999)-(Q.priority||999)),I=R.slice(0,h),F=R.slice(h),A=Z=>{M(Z.currentTarget)},H=()=>{M(null)},G=()=>{switch(r){case"small":return 48;case"large":return 80;default:return 64}},N=()=>{switch(n){case"circle":return"circular";case"square":return"square";default:return"rounded"}},k=()=>{if(!t)return null;const Z=G();return typeof t=="string"?d.jsx(yw,{src:t,alt:e,variant:N(),sx:{width:Z,height:Z}}):d.jsx(yw,{variant:N(),sx:{width:Z,height:Z,backgroundColor:o||"transparent"},children:t})},q=()=>u.length===0?null:d.jsx(fe,{sx:{display:"flex",flexWrap:"wrap",gap:.5,mt:.5},children:u.map((Z,Q)=>d.jsx(gr,{label:Z,size:"small",color:"primary",sx:{fontSize:"0.75rem",height:"24px"}},Q))}),U=()=>f.length===0?null:d.jsxs(fe,{sx:{display:"flex",alignItems:"flex-start",gap:.5},children:[I.map(Z=>d.jsx($u,{variant:"outlined",size:"small",startIcon:Z.icon,onClick:Z.onClick,disabled:Z.disabled,color:Z.destructive?"error":"primary",sx:{minHeight:36,whiteSpace:"nowrap","& .MuiButton-startIcon":{mr:.5}},children:Z.label},Z.id)),F.length>0&&d.jsxs(d.Fragment,{children:[d.jsx(ur,{size:"small",onClick:A,"aria-label":"More actions",color:"info",sx:{minHeight:36,minWidth:36},children:d.jsx(Z9,{})}),d.jsx(mh,{anchorEl:P,open:E,onClose:H,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:F.map(Z=>d.jsxs(cn,{onClick:()=>{Z.onClick(),H()},disabled:Z.disabled,sx:{color:Z.destructive?"error.main":"inherit",gap:1.5,minWidth:200},children:[Z.icon&&d.jsx(fe,{component:"span",sx:{display:"flex"},children:Z.icon}),Z.label]},Z.id))})]})]}),L=()=>{switch(v){case"compact":return 2;case"prominent":return 3;default:return 2.5}},W=()=>{switch(v){case"compact":return 1.5;case"prominent":return 2;default:return 2}},K=()=>{switch(v){case"default":return 0;case"compact":return 1;case"prominent":return 1;default:return 0}},ee=g?{background:g.startsWith("http")||g.startsWith("data:")?`linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url(${g})`:g,backgroundSize:"cover",backgroundPosition:"center"}:{background:"-var(--theme-primary)"};return d.jsx(Ir,{component:"header",...j,...x&&{"data-grid-span":x.span,"data-grid-xs":x.xs,"data-grid-sm":x.sm,"data-grid-md":x.md,"data-grid-lg":x.lg,"data-grid-xl":x.xl},sx:{p:L(),borderRadius:K()>0?2:0,...ee,color:g?"white":"inherit",...C.sx},elevation:K(),children:d.jsxs(fe,{sx:{display:"flex",alignItems:v==="prominent"?"center":"flex-start",gap:W(),flexWrap:{xs:"wrap",sm:"nowrap"},minHeight:v==="prominent"?120:"auto"},children:[k(),d.jsxs(fe,{sx:{flex:1,minWidth:0},children:[a&&d.jsx(Ee,{variant:"overline",color:y||"--var(--theme-on-primary)",sx:{display:"block",fontSize:"0.75rem",fontWeight:600,lineHeight:1.2,mb:.25},children:a}),d.jsx(Ee,{variant:"h5",component:"h1",sx:{fontWeight:600,lineHeight:1.3,wordBreak:"break-word",mb:c?.25:0},children:l}),c&&d.jsx(Ee,{variant:"body2",color:y||"--var(--theme-on-primary)",sx:{lineHeight:1.4,mb:(u.length>0,0)},children:c}),q()]}),d.jsx(fe,{sx:{flexShrink:0,width:{xs:"100%",sm:"auto"},display:"flex",justifyContent:{xs:"flex-end",sm:"flex-start"},mt:{xs:1,sm:0}},children:U()})]})})}function MB(){return d.jsxs(Ir,{variant:"outlined",sx:{p:3,textAlign:"center"},children:[d.jsx(Ee,{variant:"body2",children:"Loading Cover Image Header..."}),d.jsx(Ee,{variant:"caption",color:"text.secondary",children:"Loading header content from data source..."})]})}function RB(){return d.jsx(Ir,{variant:"outlined",sx:{p:3,textAlign:"center",borderColor:"error.main"},children:d.jsx(Ee,{variant:"body2",color:"error",children:"Error loading cover image header"})})}function IB(t){const{dataSource:e,bindingOptions:r,...n}=t,o=Oi(e||"",n,jB.getSchema(),{...r});if(!e)return d.jsx(jS,{...n});const{loading:a,error:l,...c}=o;if(a)return d.jsx(MB,{});if(l)return console.error("Error loading cover image header:",l),d.jsx(RB,{});const{actions:u,...f}=c,h=u?u.filter(v=>typeof v.id=="string"&&!!v.id).map(v=>({...v,id:v.id,onClick:()=>console.debug(`Action clicked: ${v.id}`)})):[];return d.jsx(jS,{...f,actions:h})}let En=class extends lr{};_([B({defaultValue:"Qwick Apps",dataType:ut.STRING}),z({field_type:$.TEXT,label:"Logo Name/Text",description:"Logo name/text to display. Supports up to TWO parts with \\n for line breaks and \\s for explicit spaces.",placeholder:'Enter logo text (e.g., "Qwick Apps", "Qwick\\nApps")'}),V(),ie(),D("design:type",String)],En.prototype,"name",void 0);_([B({defaultValue:"default",dataType:ut.STRING}),z({field_type:$.SELECT,label:"Visual Variant",description:"Visual style variant of the logo",validation:{options:[{label:"Default",value:"default"},{label:"High Contrast",value:"high-contrast"},{label:"Monochrome",value:"monochrome"},{label:"On Primary Background",value:"on-primary"}]}}),V(),ie(),He(["default","high-contrast","monochrome","on-primary"]),D("design:type",String)],En.prototype,"variant",void 0);_([B({defaultValue:"medium",dataType:ut.STRING}),z({field_type:$.SELECT,label:"Size",description:"Size variant of the logo (controls both text size and visual height)",validation:{options:[{label:"Tiny (16px)",value:"tiny"},{label:"Small (20px)",value:"small"},{label:"Medium (28px)",value:"medium"},{label:"Large (36px)",value:"large"},{label:"Extra Large (48px)",value:"extra-large"}]}}),V(),ie(),He(["tiny","small","medium","large","extra-large"]),D("design:type",String)],En.prototype,"size",void 0);_([B({defaultValue:"top-right",dataType:ut.STRING}),z({field_type:$.SELECT,label:"Badge Position",description:'Badge position and visibility. "none" hides the badge, others show it at the specified position.',validation:{options:[{label:"None (Hidden)",value:"none"},{label:"Top Left",value:"top-left"},{label:"Top Center",value:"top-center"},{label:"Top Right",value:"top-right"},{label:"Start (Left Center)",value:"start"},{label:"Center",value:"center"},{label:"End (Right Center)",value:"end"},{label:"Bottom Left",value:"bottom-left"},{label:"Bottom Center",value:"bottom-center"},{label:"Bottom Right",value:"bottom-right"}]}}),V(),ie(),He(["none","top-left","top-center","top-right","start","center","end","bottom-left","bottom-center","bottom-right"]),D("design:type",String)],En.prototype,"badge",void 0);_([B({defaultValue:"circle",dataType:ut.STRING}),z({field_type:$.SELECT,label:"Badge Shape",description:"Shape of the badge when visible",validation:{options:[{label:"Circle",value:"circle"},{label:"Star",value:"star"},{label:"Square",value:"square"},{label:"Heart",value:"heart"}]}}),V(),ie(),He(["circle","star","square","heart"]),D("design:type",String)],En.prototype,"badgeShape",void 0);_([B({dataType:ut.NUMBER}),z({field_type:$.NUMBER,label:"Badge Offset X",description:"Horizontal offset from calculated badge position (positive = right, negative = left)",placeholder:"0"}),V(),Sr(),D("design:type",Number)],En.prototype,"badgeOffsetX",void 0);_([B({dataType:ut.NUMBER}),z({field_type:$.NUMBER,label:"Badge Offset Y",description:"Vertical offset from calculated badge position (positive = down, negative = up)",placeholder:"0"}),V(),Sr(),D("design:type",Number)],En.prototype,"badgeOffsetY",void 0);_([B({defaultValue:"Segoe UI, sans-serif",dataType:ut.STRING}),z({field_type:$.TEXT,label:"Font Family",description:"Font family for the logo text",placeholder:"Segoe UI, sans-serif"}),V(),ie(),D("design:type",String)],En.prototype,"fontFamily",void 0);_([B({defaultValue:"bold",dataType:ut.STRING}),z({field_type:$.TEXT,label:"Font Weight",description:"Font weight for the logo text",placeholder:"bold"}),V(),ie(),D("design:type",String)],En.prototype,"fontWeight",void 0);_([B({defaultValue:"logo-first-part",dataType:ut.STRING}),z({field_type:$.TEXT,label:"First Part CSS Class",description:"CSS class name for the first part of the logo text",placeholder:"logo-first-part"}),V(),ie(),D("design:type",String)],En.prototype,"firstPartClass",void 0);_([B({defaultValue:"logo-second-part",dataType:ut.STRING}),z({field_type:$.TEXT,label:"Second Part CSS Class",description:"CSS class name for the second part of the logo text",placeholder:"logo-second-part"}),V(),ie(),D("design:type",String)],En.prototype,"secondPartClass",void 0);_([B({dataType:ut.STRING}),z({field_type:$.IMAGE,label:"Logo Image",description:"Optional image to display alongside the logo text (ReactNode or image path)",placeholder:"Image path or React component"}),V(),D("design:type",Object)],En.prototype,"image",void 0);_([B({defaultValue:"start",dataType:ut.STRING}),z({field_type:$.SELECT,label:"Image Position",description:"Position of the image relative to the logo text",validation:{options:[{label:"None (Hidden)",value:"none"},{label:"Top Left",value:"top-left"},{label:"Top Center",value:"top-center"},{label:"Top Right",value:"top-right"},{label:"Start (Left)",value:"start"},{label:"Center",value:"center"},{label:"End (Right)",value:"end"},{label:"Bottom Left",value:"bottom-left"},{label:"Bottom Center",value:"bottom-center"},{label:"Bottom Right",value:"bottom-right"}]}}),V(),ie(),He(["none","top-left","top-center","top-right","start","center","end","bottom-left","bottom-center","bottom-right"]),D("design:type",String)],En.prototype,"imagePosition",void 0);En=_([Nt("Logo","1.0.0")],En);var AB=En;function MS({name:t="Qwick Apps",variant:e="default",size:r="medium",badge:n="top-right",badgeShape:o="circle",badgeOffsetX:a,badgeOffsetY:l,fontFamily:c="Segoe UI, sans-serif",fontWeight:u="bold",firstPartClass:f="logo-first-part",secondPartClass:h="logo-second-part",image:v,imagePosition:g="start",onClick:y,style:w,className:x,...C}){const{styleProps:j,htmlProps:P}=kn(C),M=S.useMemo(()=>a!==void 0||l!==void 0?{x:a,y:l}:void 0,[a,l]),E=S.useRef(null),[R,I]=S.useState({x:155,y:20}),[F,A]=S.useState(180),H=S.useCallback(Y=>{if(Y.includes("\\n")){const[J,...de]=Y.split("\\n");return{firstPart:J.replace(/\\s/g," "),secondPart:de.join("\\n").replace(/\\s/g," "),isNewLine:!0}}if(Y.includes("\\s")){const J=Y.split("\\s");return J.length>=2?{firstPart:J[0],secondPart:J.slice(1).join(" "),isNewLine:!1}:{firstPart:J[0],secondPart:"",isNewLine:!1}}const ne=Y.trim().split(/\s+/);return ne.length===1?{firstPart:ne[0],secondPart:"",isNewLine:!1}:ne.length===2?{firstPart:ne[0],secondPart:ne[1],isNewLine:!1}:{firstPart:ne.slice(0,-1).join(" "),secondPart:ne[ne.length-1],isNewLine:!1}},[]),{firstPart:G,secondPart:N,isNewLine:k}=H(t),q=t.includes("\\s"),U=`logo-${r}`,L=(Y,ne)=>{const J={tiny:{fontSize:16,height:32},small:{fontSize:20,height:40},medium:{fontSize:28,height:50},large:{fontSize:36,height:64},"extra-large":{fontSize:48,height:84}},de=J[Y]||J.medium;return ne&&(de.height+=Math.round(de.fontSize*1.4)),de},{fontSize:W,height:K}=L(r,k),ee=S.useCallback(Y=>{const ne=W/28,J=8*ne,de=((M==null?void 0:M.x)??0)*ne,Ce=((M==null?void 0:M.y)??0)*ne;let me,se;switch(n){case"top-left":me=Y.x-J,se=Y.y+J;break;case"top-center":me=Y.x+Y.width/2,se=Y.y+J;break;case"top-right":me=Y.x+Y.width+J,se=Y.y+J;break;case"start":me=Y.x-J,se=Y.y+Y.height/2;break;case"center":me=Y.x+Y.width/2,se=Y.y+Y.height/2;break;case"end":me=Y.x+Y.width+J,se=Y.y+Y.height/2;break;case"bottom-left":me=Y.x-J,se=Y.y+Y.height-J;break;case"bottom-center":me=Y.x+Y.width/2,se=Y.y+Y.height-J;break;case"bottom-right":me=Y.x+Y.width+J,se=Y.y+Y.height-J;break;default:me=Y.x+Y.width+J,se=Y.y+J;break}return{x:me+de,y:se+Ce}},[n,M,W]);S.useEffect(()=>{if(E.current){const Y=E.current.getBBox(),ne=ee(Y),J=Math.max(180,Y.x+Y.width+20);I(ne),A(J)}},[t,n,M,ee,W,K,H,F]);let Z="";e==="high-contrast"||e==="monochrome"||e==="on-primary"?Z=`logo-${e}`:e!=="default"?Z=`logo-${e}`:Z="logo-default";const Q=`${t} Logo`,X=()=>{if(n==="none")return null;const Y={className:`logo-badge logo-badge-${o}`},{x:ne,y:J}=R,de=W/28,Ce=5*de,me=10*de;switch(o){case"circle":return d.jsx("circle",{cx:ne,cy:J,r:Ce,...Y,children:d.jsx("animate",{attributeName:"r",values:`${Ce};${Ce+1};${Ce}`,dur:"1.5s",repeatCount:"indefinite"})});case"star":{const se=de;return d.jsx("polygon",{points:`${ne},${J-5*se} ${ne+2*se},${J} ${ne+7*se},${J} ${ne+3*se},${J+3*se} ${ne+5*se},${J+8*se} ${ne},${J+5*se} ${ne-5*se},${J+8*se} ${ne-3*se},${J+3*se} ${ne-7*se},${J} ${ne-2*se},${J}`,...Y,children:d.jsx("animate",{attributeName:"opacity",values:"0.8;1;0.8",dur:"1.5s",repeatCount:"indefinite"})})}case"square":return d.jsx("rect",{x:ne-Ce,y:J-Ce,width:me,height:me,...Y,children:d.jsx("animate",{attributeName:"opacity",values:"0.8;1;0.8",dur:"1.5s",repeatCount:"indefinite"})});case"heart":{const se=de;return d.jsx("path",{d:`M${ne},${J+6*se} C${ne},${J+6*se} ${ne-7*se},${J} ${ne-7*se},${J-4*se} C${ne-7*se},${J-6*se} ${ne-5*se},${J-8*se} ${ne-3*se},${J-8*se} C${ne-2*se},${J-8*se} ${ne},${J-7*se} ${ne},${J-5*se} C${ne},${J-7*se} ${ne+2*se},${J-8*se} ${ne+3*se},${J-8*se} C${ne+5*se},${J-8*se} ${ne+7*se},${J-6*se} ${ne+7*se},${J-4*se} C${ne+7*se},${J} ${ne},${J+6*se} ${ne},${J+6*se} Z`,...Y,children:d.jsx("animate",{attributeName:"fill-opacity",values:"0.7;1;0.7",dur:"1.5s",repeatCount:"indefinite"})})}default:return d.jsx("circle",{cx:ne,cy:J,r:Ce,...Y,children:d.jsx("animate",{attributeName:"r",values:`${Ce};${Ce+1};${Ce}`,dur:"1.5s",repeatCount:"indefinite"})})}},re=()=>{if(!v||g==="none")return null;if(typeof v=="string"){const Y=W;return d.jsx("img",{src:v,alt:"",style:{width:Y,height:Y,objectFit:"contain"},className:"logo-image"})}return d.jsx("div",{className:"logo-image-container",style:{display:"flex",alignItems:"center",justifyContent:"center"},children:v})};return(()=>{const Y=d.jsxs("svg",{width:F,height:K,viewBox:`0 0 ${F} ${K}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`logo-svg dynamic-logo ${U} ${Z}`.trim(),style:{height:`${K}px`,...w},role:"img","aria-label":Q,children:[d.jsxs("text",{ref:E,fontFamily:c,fontSize:W,fontWeight:u,children:[d.jsx("tspan",{x:"15",y:k?K*.4:K*.7,className:f,children:G}),N&&d.jsx("tspan",{x:k?"15":void 0,dy:k?W*1.2:void 0,className:h,children:k?N:q?` ${N}`:N})]}),X()]}),ne=re();if(!ne)return Y;const J={display:"flex",alignItems:"center",gap:"8px"};let de="logo-container";switch(g){case"start":J.flexDirection="row",de+=" logo-image-start";break;case"end":J.flexDirection="row-reverse",de+=" logo-image-end";break;case"top-center":J.flexDirection="column",de+=" logo-image-top";break;case"bottom-center":J.flexDirection="column-reverse",de+=" logo-image-bottom";break;default:J.flexDirection="row",de+=" logo-image-start";break}return d.jsxs("div",{...P,...j,className:`${de} ${x||""}`.trim(),style:{...J,cursor:y?"pointer":"default",...w},onClick:y,children:[ne,Y]})})()}function bh(t){const{dataSource:e,bindingOptions:r,...n}=t,o=Oi(e||"",{initialData:n,schema:AB.getSchema(),cache:!0,cacheTTL:3e5,strict:!1,...r});if(!e)return d.jsx(MS,{...n});const{loading:a,error:l,...c}=o;return a?d.jsx("div",{style:{opacity:.5,textAlign:"center",padding:"16px"},children:"Loading logo..."}):l?d.jsxs("div",{style:{color:"red",textAlign:"center",padding:"16px"},children:["Error loading logo: ",l.message]}):d.jsx(MS,{...c})}Object.defineProperty(bh,Nn,{value:!0,enumerable:!1,configurable:!0});const _B=({title:t,subtitle:e,coverImage:r})=>{const{appName:n}=H0(),o=r||d.jsx(bh,{name:n||"Qwick Apps",size:"medium",variant:"default"});return d.jsx(IB,{image:o,imageSize:"medium",imageShape:"square",title:t||"Welcome",subtitle:e,variant:"default"})};function GT({header:t,title:e,description:r,coverImage:n,children:o,footer:a,status:l,message:c,maxWidth:u="sm",background:f="--theme-surface",backgroundImage:h,...v}){const{styleProps:g,htmlProps:y}=kn(v),w=eo();if(!o)return d.jsx(Ir,{...y,...g,variant:"outlined",sx:{p:3,textAlign:"center",opacity:.6,...g.sx},children:d.jsx(Ee,{variant:"body2",color:"text.secondary",children:"No form content provided"})});const x=()=>{switch(f){case"gradient":return{background:`linear-gradient(135deg, ${w.palette.primary.main} 0%, ${w.palette.secondary.main} 100%)`};case"image":return h?{backgroundImage:`linear-gradient(${w.palette.action.hover}, ${w.palette.action.hover}), url(${h})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{};default:return{backgroundColor:w.palette.background.default}}};return d.jsx(fe,{...y,...g,className:`${g.className||""}`,sx:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",py:3,...x(),...g.sx},children:d.jsx(Tf,{maxWidth:u,children:d.jsxs(Ut,{elevation:f==="default"?1:8,sx:{borderRadius:3,overflow:"hidden",backgroundColor:f==="default"?w.palette.background.paper:w.palette.mode==="dark"?"rgba(18, 18, 18, 0.95)":"rgba(255, 255, 255, 0.95)",backdropFilter:f!=="default"?"blur(10px)":"none"},children:[t||e||r?t||d.jsx(_B,{title:e,subtitle:r,coverImage:n}):null,d.jsxs(qt,{sx:{p:{xs:3,sm:4,md:5}},children:[l&&c&&d.jsx(Tn,{severity:l,sx:{mb:3},variant:"outlined",children:c}),d.jsx(fe,{sx:{mb:a?3:0},children:o}),a&&d.jsx(fe,{sx:{textAlign:"center"},children:a})]})]})})})}class pc extends zs{static fromJson(e){return d.jsx(pc,{...e})}hasNestedComponents(e){return!0}serializeChildren(e){var r;if(Mt.isValidElement(e)&&((r=e.type.prototype)!=null&&r.toJson)){const n=e.type;return n.fromJson?{component:n.tagName,props:e.props}:e}return super.serializeChildren(e)}getComponentSpecificProps(){return{title:this.props.title,description:this.props.description,status:this.props.status,message:this.props.message,maxWidth:this.props.maxWidth,background:this.props.background,backgroundImage:this.props.backgroundImage}}renderView(){const{dataSource:e,bindingOptions:r,...n}=this.props;return d.jsx(GT,{...n})}renderWithDataBinding(){return d.jsx(LB,{...this.props})}}pc.tagName="FormBlock";pc.version="1.0.0";function LB(t){const{dataSource:e,bindingOptions:r,...n}=t,{loading:o,error:a,...l}=Oi(e,n,kB.getSchema(),{...r});return o?d.jsxs(Ir,{variant:"outlined",sx:{p:3,textAlign:"center"},children:[d.jsx(Ee,{variant:"body2",children:"Loading Form..."}),d.jsx(Ee,{variant:"caption",color:"text.secondary",children:"Loading form content from data source..."})]}):a?(console.error("Error loading form block:",a),d.jsx(Ir,{variant:"outlined",sx:{p:3,textAlign:"center",borderColor:"error.main"},children:d.jsxs(Ee,{variant:"body2",color:"error",children:["Error loading form: ",a.message]})})):d.jsx(GT,{...l})}pc[Nn]=!0;var kt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function OB(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function NB(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),r}var XT={},Fu={},U0={},Hu={},V0={};Object.defineProperty(V0,"__esModule",{value:!0});V0.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(t){return t.charCodeAt(0)}));var W0={};Object.defineProperty(W0,"__esModule",{value:!0});W0.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(t){return t.charCodeAt(0)}));var _y={};(function(t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var r=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);t.fromCodePoint=(e=String.fromCodePoint)!==null&&e!==void 0?e:function(a){var l="";return a>65535&&(a-=65536,l+=String.fromCharCode(a>>>10&1023|55296),a=56320|a&1023),l+=String.fromCharCode(a),l};function n(a){var l;return a>=55296&&a<=57343||a>1114111?65533:(l=r.get(a))!==null&&l!==void 0?l:a}t.replaceCodePoint=n;function o(a){return(0,t.fromCodePoint)(n(a))}t.default=o})(_y);(function(t){var e=kt&&kt.__createBinding||(Object.create?(function(N,k,q,U){U===void 0&&(U=q);var L=Object.getOwnPropertyDescriptor(k,q);(!L||("get"in L?!k.__esModule:L.writable||L.configurable))&&(L={enumerable:!0,get:function(){return k[q]}}),Object.defineProperty(N,U,L)}):(function(N,k,q,U){U===void 0&&(U=q),N[U]=k[q]})),r=kt&&kt.__setModuleDefault||(Object.create?(function(N,k){Object.defineProperty(N,"default",{enumerable:!0,value:k})}):function(N,k){N.default=k}),n=kt&&kt.__importStar||function(N){if(N&&N.__esModule)return N;var k={};if(N!=null)for(var q in N)q!=="default"&&Object.prototype.hasOwnProperty.call(N,q)&&e(k,N,q);return r(k,N),k},o=kt&&kt.__importDefault||function(N){return N&&N.__esModule?N:{default:N}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var a=o(V0);t.htmlDecodeTree=a.default;var l=o(W0);t.xmlDecodeTree=l.default;var c=n(_y);t.decodeCodePoint=c.default;var u=_y;Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return u.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return u.fromCodePoint}});var f;(function(N){N[N.NUM=35]="NUM",N[N.SEMI=59]="SEMI",N[N.EQUALS=61]="EQUALS",N[N.ZERO=48]="ZERO",N[N.NINE=57]="NINE",N[N.LOWER_A=97]="LOWER_A",N[N.LOWER_F=102]="LOWER_F",N[N.LOWER_X=120]="LOWER_X",N[N.LOWER_Z=122]="LOWER_Z",N[N.UPPER_A=65]="UPPER_A",N[N.UPPER_F=70]="UPPER_F",N[N.UPPER_Z=90]="UPPER_Z"})(f||(f={}));var h=32,v;(function(N){N[N.VALUE_LENGTH=49152]="VALUE_LENGTH",N[N.BRANCH_LENGTH=16256]="BRANCH_LENGTH",N[N.JUMP_TABLE=127]="JUMP_TABLE"})(v=t.BinTrieFlags||(t.BinTrieFlags={}));function g(N){return N>=f.ZERO&&N<=f.NINE}function y(N){return N>=f.UPPER_A&&N<=f.UPPER_F||N>=f.LOWER_A&&N<=f.LOWER_F}function w(N){return N>=f.UPPER_A&&N<=f.UPPER_Z||N>=f.LOWER_A&&N<=f.LOWER_Z||g(N)}function x(N){return N===f.EQUALS||w(N)}var C;(function(N){N[N.EntityStart=0]="EntityStart",N[N.NumericStart=1]="NumericStart",N[N.NumericDecimal=2]="NumericDecimal",N[N.NumericHex=3]="NumericHex",N[N.NamedEntity=4]="NamedEntity"})(C||(C={}));var j;(function(N){N[N.Legacy=0]="Legacy",N[N.Strict=1]="Strict",N[N.Attribute=2]="Attribute"})(j=t.DecodingMode||(t.DecodingMode={}));var P=(function(){function N(k,q,U){this.decodeTree=k,this.emitCodePoint=q,this.errors=U,this.state=C.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=j.Strict}return N.prototype.startEntity=function(k){this.decodeMode=k,this.state=C.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},N.prototype.write=function(k,q){switch(this.state){case C.EntityStart:return k.charCodeAt(q)===f.NUM?(this.state=C.NumericStart,this.consumed+=1,this.stateNumericStart(k,q+1)):(this.state=C.NamedEntity,this.stateNamedEntity(k,q));case C.NumericStart:return this.stateNumericStart(k,q);case C.NumericDecimal:return this.stateNumericDecimal(k,q);case C.NumericHex:return this.stateNumericHex(k,q);case C.NamedEntity:return this.stateNamedEntity(k,q)}},N.prototype.stateNumericStart=function(k,q){return q>=k.length?-1:(k.charCodeAt(q)|h)===f.LOWER_X?(this.state=C.NumericHex,this.consumed+=1,this.stateNumericHex(k,q+1)):(this.state=C.NumericDecimal,this.stateNumericDecimal(k,q))},N.prototype.addToNumericResult=function(k,q,U,L){if(q!==U){var W=U-q;this.result=this.result*Math.pow(L,W)+parseInt(k.substr(q,W),L),this.consumed+=W}},N.prototype.stateNumericHex=function(k,q){for(var U=q;q<k.length;){var L=k.charCodeAt(q);if(g(L)||y(L))q+=1;else return this.addToNumericResult(k,U,q,16),this.emitNumericEntity(L,3)}return this.addToNumericResult(k,U,q,16),-1},N.prototype.stateNumericDecimal=function(k,q){for(var U=q;q<k.length;){var L=k.charCodeAt(q);if(g(L))q+=1;else return this.addToNumericResult(k,U,q,10),this.emitNumericEntity(L,2)}return this.addToNumericResult(k,U,q,10),-1},N.prototype.emitNumericEntity=function(k,q){var U;if(this.consumed<=q)return(U=this.errors)===null||U===void 0||U.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(k===f.SEMI)this.consumed+=1;else if(this.decodeMode===j.Strict)return 0;return this.emitCodePoint((0,c.replaceCodePoint)(this.result),this.consumed),this.errors&&(k!==f.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},N.prototype.stateNamedEntity=function(k,q){for(var U=this.decodeTree,L=U[this.treeIndex],W=(L&v.VALUE_LENGTH)>>14;q<k.length;q++,this.excess++){var K=k.charCodeAt(q);if(this.treeIndex=E(U,L,this.treeIndex+Math.max(1,W),K),this.treeIndex<0)return this.result===0||this.decodeMode===j.Attribute&&(W===0||x(K))?0:this.emitNotTerminatedNamedEntity();if(L=U[this.treeIndex],W=(L&v.VALUE_LENGTH)>>14,W!==0){if(K===f.SEMI)return this.emitNamedEntityData(this.treeIndex,W,this.consumed+this.excess);this.decodeMode!==j.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},N.prototype.emitNotTerminatedNamedEntity=function(){var k,q=this,U=q.result,L=q.decodeTree,W=(L[U]&v.VALUE_LENGTH)>>14;return this.emitNamedEntityData(U,W,this.consumed),(k=this.errors)===null||k===void 0||k.missingSemicolonAfterCharacterReference(),this.consumed},N.prototype.emitNamedEntityData=function(k,q,U){var L=this.decodeTree;return this.emitCodePoint(q===1?L[k]&~v.VALUE_LENGTH:L[k+1],U),q===3&&this.emitCodePoint(L[k+2],U),U},N.prototype.end=function(){var k;switch(this.state){case C.NamedEntity:return this.result!==0&&(this.decodeMode!==j.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case C.NumericDecimal:return this.emitNumericEntity(0,2);case C.NumericHex:return this.emitNumericEntity(0,3);case C.NumericStart:return(k=this.errors)===null||k===void 0||k.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case C.EntityStart:return 0}},N})();t.EntityDecoder=P;function M(N){var k="",q=new P(N,function(U){return k+=(0,c.fromCodePoint)(U)});return function(L,W){for(var K=0,ee=0;(ee=L.indexOf("&",ee))>=0;){k+=L.slice(K,ee),q.startEntity(W);var Z=q.write(L,ee+1);if(Z<0){K=ee+q.end();break}K=ee+Z,ee=Z===0?K+1:K}var Q=k+L.slice(K);return k="",Q}}function E(N,k,q,U){var L=(k&v.BRANCH_LENGTH)>>7,W=k&v.JUMP_TABLE;if(L===0)return W!==0&&U===W?q:-1;if(W){var K=U-W;return K<0||K>=L?-1:N[q+K]-1}for(var ee=q,Z=ee+L-1;ee<=Z;){var Q=ee+Z>>>1,X=N[Q];if(X<U)ee=Q+1;else if(X>U)Z=Q-1;else return N[Q+L]}return-1}t.determineBranch=E;var R=M(a.default),I=M(l.default);function F(N,k){return k===void 0&&(k=j.Legacy),R(N,k)}t.decodeHTML=F;function A(N){return R(N,j.Attribute)}t.decodeHTMLAttribute=A;function H(N){return R(N,j.Strict)}t.decodeHTMLStrict=H;function G(N){return I(N,j.Strict)}t.decodeXML=G})(Hu);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var e=Hu,r;(function(g){g[g.Tab=9]="Tab",g[g.NewLine=10]="NewLine",g[g.FormFeed=12]="FormFeed",g[g.CarriageReturn=13]="CarriageReturn",g[g.Space=32]="Space",g[g.ExclamationMark=33]="ExclamationMark",g[g.Number=35]="Number",g[g.Amp=38]="Amp",g[g.SingleQuote=39]="SingleQuote",g[g.DoubleQuote=34]="DoubleQuote",g[g.Dash=45]="Dash",g[g.Slash=47]="Slash",g[g.Zero=48]="Zero",g[g.Nine=57]="Nine",g[g.Semi=59]="Semi",g[g.Lt=60]="Lt",g[g.Eq=61]="Eq",g[g.Gt=62]="Gt",g[g.Questionmark=63]="Questionmark",g[g.UpperA=65]="UpperA",g[g.LowerA=97]="LowerA",g[g.UpperF=70]="UpperF",g[g.LowerF=102]="LowerF",g[g.UpperZ=90]="UpperZ",g[g.LowerZ=122]="LowerZ",g[g.LowerX=120]="LowerX",g[g.OpeningSquareBracket=91]="OpeningSquareBracket"})(r||(r={}));var n;(function(g){g[g.Text=1]="Text",g[g.BeforeTagName=2]="BeforeTagName",g[g.InTagName=3]="InTagName",g[g.InSelfClosingTag=4]="InSelfClosingTag",g[g.BeforeClosingTagName=5]="BeforeClosingTagName",g[g.InClosingTagName=6]="InClosingTagName",g[g.AfterClosingTagName=7]="AfterClosingTagName",g[g.BeforeAttributeName=8]="BeforeAttributeName",g[g.InAttributeName=9]="InAttributeName",g[g.AfterAttributeName=10]="AfterAttributeName",g[g.BeforeAttributeValue=11]="BeforeAttributeValue",g[g.InAttributeValueDq=12]="InAttributeValueDq",g[g.InAttributeValueSq=13]="InAttributeValueSq",g[g.InAttributeValueNq=14]="InAttributeValueNq",g[g.BeforeDeclaration=15]="BeforeDeclaration",g[g.InDeclaration=16]="InDeclaration",g[g.InProcessingInstruction=17]="InProcessingInstruction",g[g.BeforeComment=18]="BeforeComment",g[g.CDATASequence=19]="CDATASequence",g[g.InSpecialComment=20]="InSpecialComment",g[g.InCommentLike=21]="InCommentLike",g[g.BeforeSpecialS=22]="BeforeSpecialS",g[g.SpecialStartSequence=23]="SpecialStartSequence",g[g.InSpecialTag=24]="InSpecialTag",g[g.BeforeEntity=25]="BeforeEntity",g[g.BeforeNumericEntity=26]="BeforeNumericEntity",g[g.InNamedEntity=27]="InNamedEntity",g[g.InNumericEntity=28]="InNumericEntity",g[g.InHexEntity=29]="InHexEntity"})(n||(n={}));function o(g){return g===r.Space||g===r.NewLine||g===r.Tab||g===r.FormFeed||g===r.CarriageReturn}function a(g){return g===r.Slash||g===r.Gt||o(g)}function l(g){return g>=r.Zero&&g<=r.Nine}function c(g){return g>=r.LowerA&&g<=r.LowerZ||g>=r.UpperA&&g<=r.UpperZ}function u(g){return g>=r.UpperA&&g<=r.UpperF||g>=r.LowerA&&g<=r.LowerF}var f;(function(g){g[g.NoValue=0]="NoValue",g[g.Unquoted=1]="Unquoted",g[g.Single=2]="Single",g[g.Double=3]="Double"})(f=t.QuoteType||(t.QuoteType={}));var h={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},v=(function(){function g(y,w){var x=y.xmlMode,C=x===void 0?!1:x,j=y.decodeEntities,P=j===void 0?!0:j;this.cbs=w,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=C,this.decodeEntities=P,this.entityTrie=C?e.xmlDecodeTree:e.htmlDecodeTree}return g.prototype.reset=function(){this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},g.prototype.write=function(y){this.offset+=this.buffer.length,this.buffer=y,this.parse()},g.prototype.end=function(){this.running&&this.finish()},g.prototype.pause=function(){this.running=!1},g.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},g.prototype.getIndex=function(){return this.index},g.prototype.getSectionStart=function(){return this.sectionStart},g.prototype.stateText=function(y){y===r.Lt||!this.decodeEntities&&this.fastForwardTo(r.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=n.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&y===r.Amp&&(this.state=n.BeforeEntity)},g.prototype.stateSpecialStartSequence=function(y){var w=this.sequenceIndex===this.currentSequence.length,x=w?a(y):(y|32)===this.currentSequence[this.sequenceIndex];if(!x)this.isSpecial=!1;else if(!w){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(y)},g.prototype.stateInSpecialTag=function(y){if(this.sequenceIndex===this.currentSequence.length){if(y===r.Gt||o(y)){var w=this.index-this.currentSequence.length;if(this.sectionStart<w){var x=this.index;this.index=w,this.cbs.ontext(this.sectionStart,w),this.index=x}this.isSpecial=!1,this.sectionStart=w+2,this.stateInClosingTagName(y);return}this.sequenceIndex=0}(y|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===h.TitleEnd?this.decodeEntities&&y===r.Amp&&(this.state=n.BeforeEntity):this.fastForwardTo(r.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(y===r.Lt)},g.prototype.stateCDATASequence=function(y){y===h.Cdata[this.sequenceIndex]?++this.sequenceIndex===h.Cdata.length&&(this.state=n.InCommentLike,this.currentSequence=h.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=n.InDeclaration,this.stateInDeclaration(y))},g.prototype.fastForwardTo=function(y){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===y)return!0;return this.index=this.buffer.length+this.offset-1,!1},g.prototype.stateInCommentLike=function(y){y===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===h.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=n.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):y!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},g.prototype.isTagStartChar=function(y){return this.xmlMode?!a(y):c(y)},g.prototype.startSpecial=function(y,w){this.isSpecial=!0,this.currentSequence=y,this.sequenceIndex=w,this.state=n.SpecialStartSequence},g.prototype.stateBeforeTagName=function(y){if(y===r.ExclamationMark)this.state=n.BeforeDeclaration,this.sectionStart=this.index+1;else if(y===r.Questionmark)this.state=n.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(y)){var w=y|32;this.sectionStart=this.index,!this.xmlMode&&w===h.TitleEnd[2]?this.startSpecial(h.TitleEnd,3):this.state=!this.xmlMode&&w===h.ScriptEnd[2]?n.BeforeSpecialS:n.InTagName}else y===r.Slash?this.state=n.BeforeClosingTagName:(this.state=n.Text,this.stateText(y))},g.prototype.stateInTagName=function(y){a(y)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(y))},g.prototype.stateBeforeClosingTagName=function(y){o(y)||(y===r.Gt?this.state=n.Text:(this.state=this.isTagStartChar(y)?n.InClosingTagName:n.InSpecialComment,this.sectionStart=this.index))},g.prototype.stateInClosingTagName=function(y){(y===r.Gt||o(y))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterClosingTagName,this.stateAfterClosingTagName(y))},g.prototype.stateAfterClosingTagName=function(y){(y===r.Gt||this.fastForwardTo(r.Gt))&&(this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1)},g.prototype.stateBeforeAttributeName=function(y){y===r.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=n.InSpecialTag,this.sequenceIndex=0):this.state=n.Text,this.baseState=this.state,this.sectionStart=this.index+1):y===r.Slash?this.state=n.InSelfClosingTag:o(y)||(this.state=n.InAttributeName,this.sectionStart=this.index)},g.prototype.stateInSelfClosingTag=function(y){y===r.Gt?(this.cbs.onselfclosingtag(this.index),this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1,this.isSpecial=!1):o(y)||(this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(y))},g.prototype.stateInAttributeName=function(y){(y===r.Eq||a(y))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterAttributeName,this.stateAfterAttributeName(y))},g.prototype.stateAfterAttributeName=function(y){y===r.Eq?this.state=n.BeforeAttributeValue:y===r.Slash||y===r.Gt?(this.cbs.onattribend(f.NoValue,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(y)):o(y)||(this.cbs.onattribend(f.NoValue,this.index),this.state=n.InAttributeName,this.sectionStart=this.index)},g.prototype.stateBeforeAttributeValue=function(y){y===r.DoubleQuote?(this.state=n.InAttributeValueDq,this.sectionStart=this.index+1):y===r.SingleQuote?(this.state=n.InAttributeValueSq,this.sectionStart=this.index+1):o(y)||(this.sectionStart=this.index,this.state=n.InAttributeValueNq,this.stateInAttributeValueNoQuotes(y))},g.prototype.handleInAttributeValue=function(y,w){y===w||!this.decodeEntities&&this.fastForwardTo(w)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(w===r.DoubleQuote?f.Double:f.Single,this.index),this.state=n.BeforeAttributeName):this.decodeEntities&&y===r.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},g.prototype.stateInAttributeValueDoubleQuotes=function(y){this.handleInAttributeValue(y,r.DoubleQuote)},g.prototype.stateInAttributeValueSingleQuotes=function(y){this.handleInAttributeValue(y,r.SingleQuote)},g.prototype.stateInAttributeValueNoQuotes=function(y){o(y)||y===r.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(f.Unquoted,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(y)):this.decodeEntities&&y===r.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},g.prototype.stateBeforeDeclaration=function(y){y===r.OpeningSquareBracket?(this.state=n.CDATASequence,this.sequenceIndex=0):this.state=y===r.Dash?n.BeforeComment:n.InDeclaration},g.prototype.stateInDeclaration=function(y){(y===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},g.prototype.stateInProcessingInstruction=function(y){(y===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},g.prototype.stateBeforeComment=function(y){y===r.Dash?(this.state=n.InCommentLike,this.currentSequence=h.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=n.InDeclaration},g.prototype.stateInSpecialComment=function(y){(y===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=n.Text,this.sectionStart=this.index+1)},g.prototype.stateBeforeSpecialS=function(y){var w=y|32;w===h.ScriptEnd[3]?this.startSpecial(h.ScriptEnd,4):w===h.StyleEnd[3]?this.startSpecial(h.StyleEnd,4):(this.state=n.InTagName,this.stateInTagName(y))},g.prototype.stateBeforeEntity=function(y){this.entityExcess=1,this.entityResult=0,y===r.Number?this.state=n.BeforeNumericEntity:y===r.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=n.InNamedEntity,this.stateInNamedEntity(y))},g.prototype.stateInNamedEntity=function(y){if(this.entityExcess+=1,this.trieIndex=(0,e.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,y),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var w=this.trieCurrent&e.BinTrieFlags.VALUE_LENGTH;if(w){var x=(w>>14)-1;if(!this.allowLegacyEntity()&&y!==r.Semi)this.trieIndex+=x;else{var C=this.index-this.entityExcess+1;C>this.sectionStart&&this.emitPartial(this.sectionStart,C),this.entityResult=this.trieIndex,this.trieIndex+=x,this.entityExcess=0,this.sectionStart=this.index+1,x===0&&this.emitNamedEntity()}}},g.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var y=(this.entityTrie[this.entityResult]&e.BinTrieFlags.VALUE_LENGTH)>>14;switch(y){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~e.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},g.prototype.stateBeforeNumericEntity=function(y){(y|32)===r.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(y))},g.prototype.emitNumericEntity=function(y){var w=this.index-this.entityExcess-1,x=w+2+ +(this.state===n.InHexEntity);x!==this.index&&(w>this.sectionStart&&this.emitPartial(this.sectionStart,w),this.sectionStart=this.index+Number(y),this.emitCodePoint((0,e.replaceCodePoint)(this.entityResult))),this.state=this.baseState},g.prototype.stateInNumericEntity=function(y){y===r.Semi?this.emitNumericEntity(!0):l(y)?(this.entityResult=this.entityResult*10+(y-r.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},g.prototype.stateInHexEntity=function(y){y===r.Semi?this.emitNumericEntity(!0):l(y)?(this.entityResult=this.entityResult*16+(y-r.Zero),this.entityExcess++):u(y)?(this.entityResult=this.entityResult*16+((y|32)-r.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},g.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)},g.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===n.Text||this.state===n.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===n.InAttributeValueDq||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},g.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},g.prototype.parse=function(){for(;this.shouldContinue();){var y=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case n.Text:{this.stateText(y);break}case n.SpecialStartSequence:{this.stateSpecialStartSequence(y);break}case n.InSpecialTag:{this.stateInSpecialTag(y);break}case n.CDATASequence:{this.stateCDATASequence(y);break}case n.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(y);break}case n.InAttributeName:{this.stateInAttributeName(y);break}case n.InCommentLike:{this.stateInCommentLike(y);break}case n.InSpecialComment:{this.stateInSpecialComment(y);break}case n.BeforeAttributeName:{this.stateBeforeAttributeName(y);break}case n.InTagName:{this.stateInTagName(y);break}case n.InClosingTagName:{this.stateInClosingTagName(y);break}case n.BeforeTagName:{this.stateBeforeTagName(y);break}case n.AfterAttributeName:{this.stateAfterAttributeName(y);break}case n.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(y);break}case n.BeforeAttributeValue:{this.stateBeforeAttributeValue(y);break}case n.BeforeClosingTagName:{this.stateBeforeClosingTagName(y);break}case n.AfterClosingTagName:{this.stateAfterClosingTagName(y);break}case n.BeforeSpecialS:{this.stateBeforeSpecialS(y);break}case n.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(y);break}case n.InSelfClosingTag:{this.stateInSelfClosingTag(y);break}case n.InDeclaration:{this.stateInDeclaration(y);break}case n.BeforeDeclaration:{this.stateBeforeDeclaration(y);break}case n.BeforeComment:{this.stateBeforeComment(y);break}case n.InProcessingInstruction:{this.stateInProcessingInstruction(y);break}case n.InNamedEntity:{this.stateInNamedEntity(y);break}case n.BeforeEntity:{this.stateBeforeEntity(y);break}case n.InHexEntity:{this.stateInHexEntity(y);break}case n.InNumericEntity:{this.stateInNumericEntity(y);break}default:this.stateBeforeNumericEntity(y)}this.index++}this.cleanup()},g.prototype.finish=function(){this.state===n.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},g.prototype.handleTrailingData=function(){var y=this.buffer.length+this.offset;this.state===n.InCommentLike?this.currentSequence===h.CdataEnd?this.cbs.oncdata(this.sectionStart,y,0):this.cbs.oncomment(this.sectionStart,y,0):this.state===n.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===n.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===n.InTagName||this.state===n.BeforeAttributeName||this.state===n.BeforeAttributeValue||this.state===n.AfterAttributeName||this.state===n.InAttributeName||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueDq||this.state===n.InAttributeValueNq||this.state===n.InClosingTagName||this.cbs.ontext(this.sectionStart,y)},g.prototype.emitPartial=function(y,w){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribdata(y,w):this.cbs.ontext(y,w)},g.prototype.emitCodePoint=function(y){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribentity(y):this.cbs.ontextentity(y)},g})();t.default=v})(U0);var $B=kt&&kt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),BB=kt&&kt.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),zB=kt&&kt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&$B(e,t,r);return BB(e,t),e};Object.defineProperty(Fu,"__esModule",{value:!0});Fu.Parser=void 0;var Fp=zB(U0),RS=Hu,Sl=new Set(["input","option","optgroup","select","button","datalist","textarea"]),ar=new Set(["p"]),IS=new Set(["thead","tbody"]),AS=new Set(["dd","dt"]),_S=new Set(["rt","rp"]),DB=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",ar],["h1",ar],["h2",ar],["h3",ar],["h4",ar],["h5",ar],["h6",ar],["select",Sl],["input",Sl],["output",Sl],["button",Sl],["datalist",Sl],["textarea",Sl],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",AS],["dt",AS],["address",ar],["article",ar],["aside",ar],["blockquote",ar],["details",ar],["div",ar],["dl",ar],["fieldset",ar],["figcaption",ar],["figure",ar],["footer",ar],["form",ar],["header",ar],["hr",ar],["main",ar],["nav",ar],["ol",ar],["pre",ar],["section",ar],["table",ar],["ul",ar],["rt",_S],["rp",_S],["tbody",IS],["tfoot",IS]]),FB=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),LS=new Set(["math","svg"]),OS=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),HB=/\s|\//,UB=(function(){function t(e,r){r===void 0&&(r={});var n,o,a,l,c;this.options=r,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=e??{},this.lowerCaseTagNames=(n=r.lowerCaseTags)!==null&&n!==void 0?n:!r.xmlMode,this.lowerCaseAttributeNames=(o=r.lowerCaseAttributeNames)!==null&&o!==void 0?o:!r.xmlMode,this.tokenizer=new((a=r.Tokenizer)!==null&&a!==void 0?a:Fp.default)(this.options,this),(c=(l=this.cbs).onparserinit)===null||c===void 0||c.call(l,this)}return t.prototype.ontext=function(e,r){var n,o,a=this.getSlice(e,r);this.endIndex=r-1,(o=(n=this.cbs).ontext)===null||o===void 0||o.call(n,a),this.startIndex=r},t.prototype.ontextentity=function(e){var r,n,o=this.tokenizer.getSectionStart();this.endIndex=o-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,(0,RS.fromCodePoint)(e)),this.startIndex=o},t.prototype.isVoidElement=function(e){return!this.options.xmlMode&&FB.has(e)},t.prototype.onopentagname=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)},t.prototype.emitOpenTag=function(e){var r,n,o,a;this.openTagStart=this.startIndex,this.tagname=e;var l=!this.options.xmlMode&&DB.get(e);if(l)for(;this.stack.length>0&&l.has(this.stack[this.stack.length-1]);){var c=this.stack.pop();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,c,!0)}this.isVoidElement(e)||(this.stack.push(e),LS.has(e)?this.foreignContext.push(!0):OS.has(e)&&this.foreignContext.push(!1)),(a=(o=this.cbs).onopentagname)===null||a===void 0||a.call(o,e),this.cbs.onopentag&&(this.attribs={})},t.prototype.endOpenTag=function(e){var r,n;this.startIndex=this.openTagStart,this.attribs&&((n=(r=this.cbs).onopentag)===null||n===void 0||n.call(r,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},t.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},t.prototype.onclosetag=function(e,r){var n,o,a,l,c,u;this.endIndex=r;var f=this.getSlice(e,r);if(this.lowerCaseTagNames&&(f=f.toLowerCase()),(LS.has(f)||OS.has(f))&&this.foreignContext.pop(),this.isVoidElement(f))!this.options.xmlMode&&f==="br"&&((o=(n=this.cbs).onopentagname)===null||o===void 0||o.call(n,"br"),(l=(a=this.cbs).onopentag)===null||l===void 0||l.call(a,"br",{},!0),(u=(c=this.cbs).onclosetag)===null||u===void 0||u.call(c,"br",!1));else{var h=this.stack.lastIndexOf(f);if(h!==-1)if(this.cbs.onclosetag)for(var v=this.stack.length-h;v--;)this.cbs.onclosetag(this.stack.pop(),v!==0);else this.stack.length=h;else!this.options.xmlMode&&f==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=r+1},t.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},t.prototype.closeCurrentTag=function(e){var r,n,o=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===o&&((n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,o,!e),this.stack.pop())},t.prototype.onattribname=function(e,r){this.startIndex=e;var n=this.getSlice(e,r);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},t.prototype.onattribdata=function(e,r){this.attribvalue+=this.getSlice(e,r)},t.prototype.onattribentity=function(e){this.attribvalue+=(0,RS.fromCodePoint)(e)},t.prototype.onattribend=function(e,r){var n,o;this.endIndex=r,(o=(n=this.cbs).onattribute)===null||o===void 0||o.call(n,this.attribname,this.attribvalue,e===Fp.QuoteType.Double?'"':e===Fp.QuoteType.Single?"'":e===Fp.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},t.prototype.getInstructionName=function(e){var r=e.search(HB),n=r<0?e:e.substr(0,r);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},t.prototype.ondeclaration=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var o=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(o),"!".concat(n))}this.startIndex=r+1},t.prototype.onprocessinginstruction=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var o=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(o),"?".concat(n))}this.startIndex=r+1},t.prototype.oncomment=function(e,r,n){var o,a,l,c;this.endIndex=r,(a=(o=this.cbs).oncomment)===null||a===void 0||a.call(o,this.getSlice(e,r-n)),(c=(l=this.cbs).oncommentend)===null||c===void 0||c.call(l),this.startIndex=r+1},t.prototype.oncdata=function(e,r,n){var o,a,l,c,u,f,h,v,g,y;this.endIndex=r;var w=this.getSlice(e,r-n);this.options.xmlMode||this.options.recognizeCDATA?((a=(o=this.cbs).oncdatastart)===null||a===void 0||a.call(o),(c=(l=this.cbs).ontext)===null||c===void 0||c.call(l,w),(f=(u=this.cbs).oncdataend)===null||f===void 0||f.call(u)):((v=(h=this.cbs).oncomment)===null||v===void 0||v.call(h,"[CDATA[".concat(w,"]]")),(y=(g=this.cbs).oncommentend)===null||y===void 0||y.call(g)),this.startIndex=r+1},t.prototype.onend=function(){var e,r;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}(r=(e=this.cbs).onend)===null||r===void 0||r.call(e)},t.prototype.reset=function(){var e,r,n,o;(r=(e=this.cbs).onreset)===null||r===void 0||r.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(o=(n=this.cbs).onparserinit)===null||o===void 0||o.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},t.prototype.parseComplete=function(e){this.reset(),this.end(e)},t.prototype.getSlice=function(e,r){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(e-this.bufferOffset,r-this.bufferOffset);r-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,r-this.bufferOffset);return n},t.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},t.prototype.write=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)},t.prototype.end=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()},t.prototype.pause=function(){this.tokenizer.pause()},t.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},t.prototype.parseChunk=function(e){this.write(e)},t.prototype.done=function(e){this.end(e)},t})();Fu.Parser=UB;var ra={},fc={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0;var e;(function(n){n.Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"})(e=t.ElementType||(t.ElementType={}));function r(n){return n.type===e.Tag||n.type===e.Script||n.type===e.Style}t.isTag=r,t.Root=e.Root,t.Text=e.Text,t.Directive=e.Directive,t.Comment=e.Comment,t.Script=e.Script,t.Style=e.Style,t.Tag=e.Tag,t.CDATA=e.CDATA,t.Doctype=e.Doctype})(fc);var Dt={},Ja=kt&&kt.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Su=kt&&kt.__assign||function(){return Su=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Su.apply(this,arguments)};Object.defineProperty(Dt,"__esModule",{value:!0});Dt.cloneNode=Dt.hasChildren=Dt.isDocument=Dt.isDirective=Dt.isComment=Dt.isText=Dt.isCDATA=Dt.isTag=Dt.Element=Dt.Document=Dt.CDATA=Dt.NodeWithChildren=Dt.ProcessingInstruction=Dt.Comment=Dt.Text=Dt.DataNode=Dt.Node=void 0;var Xn=fc,q0=(function(){function t(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),t.prototype.cloneNode=function(e){return e===void 0&&(e=!1),G0(this,e)},t})();Dt.Node=q0;var xh=(function(t){Ja(e,t);function e(r){var n=t.call(this)||this;return n.data=r,n}return Object.defineProperty(e.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),e})(q0);Dt.DataNode=xh;var KT=(function(t){Ja(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Xn.ElementType.Text,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),e})(xh);Dt.Text=KT;var QT=(function(t){Ja(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Xn.ElementType.Comment,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),e})(xh);Dt.Comment=QT;var YT=(function(t){Ja(e,t);function e(r,n){var o=t.call(this,n)||this;return o.name=r,o.type=Xn.ElementType.Directive,o}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),e})(xh);Dt.ProcessingInstruction=YT;var wh=(function(t){Ja(e,t);function e(r){var n=t.call(this)||this;return n.children=r,n}return Object.defineProperty(e.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),e})(q0);Dt.NodeWithChildren=wh;var JT=(function(t){Ja(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Xn.ElementType.CDATA,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e})(wh);Dt.CDATA=JT;var ZT=(function(t){Ja(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Xn.ElementType.Root,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e})(wh);Dt.Document=ZT;var eE=(function(t){Ja(e,t);function e(r,n,o,a){o===void 0&&(o=[]),a===void 0&&(a=r==="script"?Xn.ElementType.Script:r==="style"?Xn.ElementType.Style:Xn.ElementType.Tag);var l=t.call(this,o)||this;return l.name=r,l.attribs=n,l.type=a,l}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var o,a;return{name:n,value:r.attribs[n],namespace:(o=r["x-attribsNamespace"])===null||o===void 0?void 0:o[n],prefix:(a=r["x-attribsPrefix"])===null||a===void 0?void 0:a[n]}})},enumerable:!1,configurable:!0}),e})(wh);Dt.Element=eE;function tE(t){return(0,Xn.isTag)(t)}Dt.isTag=tE;function rE(t){return t.type===Xn.ElementType.CDATA}Dt.isCDATA=rE;function nE(t){return t.type===Xn.ElementType.Text}Dt.isText=nE;function oE(t){return t.type===Xn.ElementType.Comment}Dt.isComment=oE;function iE(t){return t.type===Xn.ElementType.Directive}Dt.isDirective=iE;function aE(t){return t.type===Xn.ElementType.Root}Dt.isDocument=aE;function VB(t){return Object.prototype.hasOwnProperty.call(t,"children")}Dt.hasChildren=VB;function G0(t,e){e===void 0&&(e=!1);var r;if(nE(t))r=new KT(t.data);else if(oE(t))r=new QT(t.data);else if(tE(t)){var n=e?Bg(t.children):[],o=new eE(t.name,Su({},t.attribs),n);n.forEach(function(u){return u.parent=o}),t.namespace!=null&&(o.namespace=t.namespace),t["x-attribsNamespace"]&&(o["x-attribsNamespace"]=Su({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(o["x-attribsPrefix"]=Su({},t["x-attribsPrefix"])),r=o}else if(rE(t)){var n=e?Bg(t.children):[],a=new JT(n);n.forEach(function(f){return f.parent=a}),r=a}else if(aE(t)){var n=e?Bg(t.children):[],l=new ZT(n);n.forEach(function(f){return f.parent=l}),t["x-mode"]&&(l["x-mode"]=t["x-mode"]),r=l}else if(iE(t)){var c=new YT(t.name,t.data);t["x-name"]!=null&&(c["x-name"]=t["x-name"],c["x-publicId"]=t["x-publicId"],c["x-systemId"]=t["x-systemId"]),r=c}else throw new Error("Not implemented yet: ".concat(t.type));return r.startIndex=t.startIndex,r.endIndex=t.endIndex,t.sourceCodeLocation!=null&&(r.sourceCodeLocation=t.sourceCodeLocation),r}Dt.cloneNode=G0;function Bg(t){for(var e=t.map(function(n){return G0(n,!0)}),r=1;r<e.length;r++)e[r].prev=e[r-1],e[r-1].next=e[r];return e}(function(t){var e=kt&&kt.__createBinding||(Object.create?(function(c,u,f,h){h===void 0&&(h=f);var v=Object.getOwnPropertyDescriptor(u,f);(!v||("get"in v?!u.__esModule:v.writable||v.configurable))&&(v={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(c,h,v)}):(function(c,u,f,h){h===void 0&&(h=f),c[h]=u[f]})),r=kt&&kt.__exportStar||function(c,u){for(var f in c)f!=="default"&&!Object.prototype.hasOwnProperty.call(u,f)&&e(u,c,f)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var n=fc,o=Dt;r(Dt,t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=(function(){function c(u,f,h){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof f=="function"&&(h=f,f=a),typeof u=="object"&&(f=u,u=void 0),this.callback=u??null,this.options=f??a,this.elementCB=h??null}return c.prototype.onparserinit=function(u){this.parser=u},c.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},c.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},c.prototype.onerror=function(u){this.handleCallback(u)},c.prototype.onclosetag=function(){this.lastNode=null;var u=this.tagStack.pop();this.options.withEndIndices&&(u.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(u)},c.prototype.onopentag=function(u,f){var h=this.options.xmlMode?n.ElementType.Tag:void 0,v=new o.Element(u,f,void 0,h);this.addNode(v),this.tagStack.push(v)},c.prototype.ontext=function(u){var f=this.lastNode;if(f&&f.type===n.ElementType.Text)f.data+=u,this.options.withEndIndices&&(f.endIndex=this.parser.endIndex);else{var h=new o.Text(u);this.addNode(h),this.lastNode=h}},c.prototype.oncomment=function(u){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment){this.lastNode.data+=u;return}var f=new o.Comment(u);this.addNode(f),this.lastNode=f},c.prototype.oncommentend=function(){this.lastNode=null},c.prototype.oncdatastart=function(){var u=new o.Text(""),f=new o.CDATA([u]);this.addNode(f),u.parent=f,this.lastNode=u},c.prototype.oncdataend=function(){this.lastNode=null},c.prototype.onprocessinginstruction=function(u,f){var h=new o.ProcessingInstruction(u,f);this.addNode(h)},c.prototype.handleCallback=function(u){if(typeof this.callback=="function")this.callback(u,this.dom);else if(u)throw u},c.prototype.addNode=function(u){var f=this.tagStack[this.tagStack.length-1],h=f.children[f.children.length-1];this.options.withStartIndices&&(u.startIndex=this.parser.startIndex),this.options.withEndIndices&&(u.endIndex=this.parser.endIndex),f.children.push(u),h&&(u.prev=h,h.next=u),u.parent=f,this.lastNode=null},c})();t.DomHandler=l,t.default=l})(ra);var lf={},Za={},fd={},sE={},Is={},X0={};Object.defineProperty(X0,"__esModule",{value:!0});function Hp(t){for(var e=1;e<t.length;e++)t[e][0]+=t[e-1][0]+1;return t}X0.default=new Map(Hp([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(Hp([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(Hp([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(Hp([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));var jf={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0,t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var e=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);t.getCodePoint=String.prototype.codePointAt!=null?function(o,a){return o.codePointAt(a)}:(function(o,a){return(o.charCodeAt(a)&64512)===55296?(o.charCodeAt(a)-55296)*1024+o.charCodeAt(a+1)-56320+65536:o.charCodeAt(a)});function r(o){for(var a="",l=0,c;(c=t.xmlReplacer.exec(o))!==null;){var u=c.index,f=o.charCodeAt(u),h=e.get(f);h!==void 0?(a+=o.substring(l,u)+h,l=u+1):(a+="".concat(o.substring(l,u),"&#x").concat((0,t.getCodePoint)(o,u).toString(16),";"),l=t.xmlReplacer.lastIndex+=+((f&64512)===55296))}return a+o.substr(l)}t.encodeXML=r,t.escape=r;function n(o,a){return function(c){for(var u,f=0,h="";u=o.exec(c);)f!==u.index&&(h+=c.substring(f,u.index)),h+=a.get(u[0].charCodeAt(0)),f=u.index+1;return h+c.substring(f)}}t.escapeUTF8=n(/[&<>'"]/g,e),t.escapeAttribute=n(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),t.escapeText=n(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))})(jf);var WB=kt&&kt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Is,"__esModule",{value:!0});Is.encodeNonAsciiHTML=Is.encodeHTML=void 0;var qB=WB(X0),lE=jf,GB=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function XB(t){return cE(GB,t)}Is.encodeHTML=XB;function KB(t){return cE(lE.xmlReplacer,t)}Is.encodeNonAsciiHTML=KB;function cE(t,e){for(var r="",n=0,o;(o=t.exec(e))!==null;){var a=o.index;r+=e.substring(n,a);var l=e.charCodeAt(a),c=qB.default.get(l);if(typeof c=="object"){if(a+1<e.length){var u=e.charCodeAt(a+1),f=typeof c.n=="number"?c.n===u?c.o:void 0:c.n.get(u);if(f!==void 0){r+=f,n=t.lastIndex+=1;continue}}c=c.v}if(c!==void 0)r+=c,n=a+1;else{var h=(0,lE.getCodePoint)(e,a);r+="&#x".concat(h.toString(16),";"),n=t.lastIndex+=+(h!==l)}}return r+e.substr(n)}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLAttribute=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.DecodingMode=t.EntityDecoder=t.encodeHTML5=t.encodeHTML4=t.encodeNonAsciiHTML=t.encodeHTML=t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.encode=t.decodeStrict=t.decode=t.EncodingMode=t.EntityLevel=void 0;var e=Hu,r=Is,n=jf,o;(function(g){g[g.XML=0]="XML",g[g.HTML=1]="HTML"})(o=t.EntityLevel||(t.EntityLevel={}));var a;(function(g){g[g.UTF8=0]="UTF8",g[g.ASCII=1]="ASCII",g[g.Extensive=2]="Extensive",g[g.Attribute=3]="Attribute",g[g.Text=4]="Text"})(a=t.EncodingMode||(t.EncodingMode={}));function l(g,y){y===void 0&&(y=o.XML);var w=typeof y=="number"?y:y.level;if(w===o.HTML){var x=typeof y=="object"?y.mode:void 0;return(0,e.decodeHTML)(g,x)}return(0,e.decodeXML)(g)}t.decode=l;function c(g,y){var w;y===void 0&&(y=o.XML);var x=typeof y=="number"?{level:y}:y;return(w=x.mode)!==null&&w!==void 0||(x.mode=e.DecodingMode.Strict),l(g,x)}t.decodeStrict=c;function u(g,y){y===void 0&&(y=o.XML);var w=typeof y=="number"?{level:y}:y;return w.mode===a.UTF8?(0,n.escapeUTF8)(g):w.mode===a.Attribute?(0,n.escapeAttribute)(g):w.mode===a.Text?(0,n.escapeText)(g):w.level===o.HTML?w.mode===a.ASCII?(0,r.encodeNonAsciiHTML)(g):(0,r.encodeHTML)(g):(0,n.encodeXML)(g)}t.encode=u;var f=jf;Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return f.encodeXML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return f.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return f.escapeUTF8}}),Object.defineProperty(t,"escapeAttribute",{enumerable:!0,get:function(){return f.escapeAttribute}}),Object.defineProperty(t,"escapeText",{enumerable:!0,get:function(){return f.escapeText}});var h=Is;Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return h.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return h.encodeNonAsciiHTML}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return h.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return h.encodeHTML}});var v=Hu;Object.defineProperty(t,"EntityDecoder",{enumerable:!0,get:function(){return v.EntityDecoder}}),Object.defineProperty(t,"DecodingMode",{enumerable:!0,get:function(){return v.DecodingMode}}),Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return v.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return v.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return v.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTMLAttribute",{enumerable:!0,get:function(){return v.decodeHTMLAttribute}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return v.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return v.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return v.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return v.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return v.decodeXML}})})(sE);var Ql={};Object.defineProperty(Ql,"__esModule",{value:!0});Ql.attributeNames=Ql.elementNames=void 0;Ql.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(function(t){return[t.toLowerCase(),t]}));Ql.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(function(t){return[t.toLowerCase(),t]}));var jl=kt&&kt.__assign||function(){return jl=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},jl.apply(this,arguments)},QB=kt&&kt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),YB=kt&&kt.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),JB=kt&&kt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&QB(e,t,r);return YB(e,t),e};Object.defineProperty(fd,"__esModule",{value:!0});fd.render=void 0;var Xi=JB(fc),Mf=sE,uE=Ql,ZB=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function ez(t){return t.replace(/"/g,"&quot;")}function tz(t,e){var r;if(t){var n=((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)===!1?ez:e.xmlMode||e.encodeEntities!=="utf8"?Mf.encodeXML:Mf.escapeAttribute;return Object.keys(t).map(function(o){var a,l,c=(a=t[o])!==null&&a!==void 0?a:"";return e.xmlMode==="foreign"&&(o=(l=uE.attributeNames.get(o))!==null&&l!==void 0?l:o),!e.emptyAttrs&&!e.xmlMode&&c===""?o:"".concat(o,'="').concat(n(c),'"')}).join(" ")}}var NS=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function Sh(t,e){e===void 0&&(e={});for(var r=("length"in t)?t:[t],n="",o=0;o<r.length;o++)n+=rz(r[o],e);return n}fd.render=Sh;fd.default=Sh;function rz(t,e){switch(t.type){case Xi.Root:return Sh(t.children,e);case Xi.Doctype:case Xi.Directive:return az(t);case Xi.Comment:return cz(t);case Xi.CDATA:return lz(t);case Xi.Script:case Xi.Style:case Xi.Tag:return iz(t,e);case Xi.Text:return sz(t,e)}}var nz=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),oz=new Set(["svg","math"]);function iz(t,e){var r;e.xmlMode==="foreign"&&(t.name=(r=uE.elementNames.get(t.name))!==null&&r!==void 0?r:t.name,t.parent&&nz.has(t.parent.name)&&(e=jl(jl({},e),{xmlMode:!1}))),!e.xmlMode&&oz.has(t.name)&&(e=jl(jl({},e),{xmlMode:"foreign"}));var n="<".concat(t.name),o=tz(t.attribs,e);return o&&(n+=" ".concat(o)),t.children.length===0&&(e.xmlMode?e.selfClosingTags!==!1:e.selfClosingTags&&NS.has(t.name))?(e.xmlMode||(n+=" "),n+="/>"):(n+=">",t.children.length>0&&(n+=Sh(t.children,e)),(e.xmlMode||!NS.has(t.name))&&(n+="</".concat(t.name,">"))),n}function az(t){return"<".concat(t.data,">")}function sz(t,e){var r,n=t.data||"";return((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)!==!1&&!(!e.xmlMode&&t.parent&&ZB.has(t.parent.name))&&(n=e.xmlMode||e.encodeEntities!=="utf8"?(0,Mf.encodeXML)(n):(0,Mf.escapeText)(n)),n}function lz(t){return"<![CDATA[".concat(t.children[0].data,"]]>")}function cz(t){return"<!--".concat(t.data,"-->")}var uz=kt&&kt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Za,"__esModule",{value:!0});Za.getOuterHTML=dE;Za.getInnerHTML=fz;Za.getText=cf;Za.textContent=Ly;Za.innerText=Oy;var ki=ra,dz=uz(fd),pz=fc;function dE(t,e){return(0,dz.default)(t,e)}function fz(t,e){return(0,ki.hasChildren)(t)?t.children.map(function(r){return dE(r,e)}).join(""):""}function cf(t){return Array.isArray(t)?t.map(cf).join(""):(0,ki.isTag)(t)?t.name==="br"?`
339
- `:cf(t.children):(0,ki.isCDATA)(t)?cf(t.children):(0,ki.isText)(t)?t.data:""}function Ly(t){return Array.isArray(t)?t.map(Ly).join(""):(0,ki.hasChildren)(t)&&!(0,ki.isComment)(t)?Ly(t.children):(0,ki.isText)(t)?t.data:""}function Oy(t){return Array.isArray(t)?t.map(Oy).join(""):(0,ki.hasChildren)(t)&&(t.type===pz.ElementType.Tag||(0,ki.isCDATA)(t))?Oy(t.children):(0,ki.isText)(t)?t.data:""}var Ni={};Object.defineProperty(Ni,"__esModule",{value:!0});Ni.getChildren=pE;Ni.getParent=fE;Ni.getSiblings=hz;Ni.getAttributeValue=mz;Ni.hasAttrib=gz;Ni.getName=yz;Ni.nextElementSibling=vz;Ni.prevElementSibling=bz;var K0=ra;function pE(t){return(0,K0.hasChildren)(t)?t.children:[]}function fE(t){return t.parent||null}function hz(t){var e,r,n=fE(t);if(n!=null)return pE(n);for(var o=[t],a=t.prev,l=t.next;a!=null;)o.unshift(a),e=a,a=e.prev;for(;l!=null;)o.push(l),r=l,l=r.next;return o}function mz(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function gz(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function yz(t){return t.name}function vz(t){for(var e,r=t.next;r!==null&&!(0,K0.isTag)(r);)e=r,r=e.next;return r}function bz(t){for(var e,r=t.prev;r!==null&&!(0,K0.isTag)(r);)e=r,r=e.prev;return r}var es={};Object.defineProperty(es,"__esModule",{value:!0});es.removeElement=hd;es.replaceElement=xz;es.appendChild=wz;es.append=Sz;es.prependChild=Cz;es.prepend=Tz;function hd(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){var e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function xz(t,e){var r=e.prev=t.prev;r&&(r.next=e);var n=e.next=t.next;n&&(n.prev=e);var o=e.parent=t.parent;if(o){var a=o.children;a[a.lastIndexOf(t)]=e,t.parent=null}}function wz(t,e){if(hd(e),e.next=null,e.parent=t,t.children.push(e)>1){var r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function Sz(t,e){hd(e);var r=t.parent,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){var o=r.children;o.splice(o.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function Cz(t,e){if(hd(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){var r=t.children[1];r.prev=e,e.next=r}else e.next=null}function Tz(t,e){hd(e);var r=t.parent;if(r){var n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}var sa={};Object.defineProperty(sa,"__esModule",{value:!0});sa.filter=Ez;sa.find=hE;sa.findOneChild=kz;sa.findOne=mE;sa.existsOne=gE;sa.findAll=Pz;var As=ra;function Ez(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),hE(t,Array.isArray(e)?e:[e],r,n)}function hE(t,e,r,n){for(var o=[],a=[Array.isArray(e)?e:[e]],l=[0];;){if(l[0]>=a[0].length){if(l.length===1)return o;a.shift(),l.shift();continue}var c=a[0][l[0]++];if(t(c)&&(o.push(c),--n<=0))return o;r&&(0,As.hasChildren)(c)&&c.children.length>0&&(l.unshift(0),a.unshift(c.children))}}function kz(t,e){return e.find(t)}function mE(t,e,r){r===void 0&&(r=!0);for(var n=Array.isArray(e)?e:[e],o=0;o<n.length;o++){var a=n[o];if((0,As.isTag)(a)&&t(a))return a;if(r&&(0,As.hasChildren)(a)&&a.children.length>0){var l=mE(t,a.children,!0);if(l)return l}}return null}function gE(t,e){return(Array.isArray(e)?e:[e]).some(function(r){return(0,As.isTag)(r)&&t(r)||(0,As.hasChildren)(r)&&gE(t,r.children)})}function Pz(t,e){for(var r=[],n=[Array.isArray(e)?e:[e]],o=[0];;){if(o[0]>=n[0].length){if(n.length===1)return r;n.shift(),o.shift();continue}var a=n[0][o[0]++];(0,As.isTag)(a)&&t(a)&&r.push(a),(0,As.hasChildren)(a)&&a.children.length>0&&(o.unshift(0),n.unshift(a.children))}}var la={};Object.defineProperty(la,"__esModule",{value:!0});la.testElement=Mz;la.getElements=Rz;la.getElementById=Iz;la.getElementsByTagName=Az;la.getElementsByClassName=_z;la.getElementsByTagType=Lz;var ws=ra,md=sa,Rf={tag_name:function(t){return typeof t=="function"?function(e){return(0,ws.isTag)(e)&&t(e.name)}:t==="*"?ws.isTag:function(e){return(0,ws.isTag)(e)&&e.name===t}},tag_type:function(t){return typeof t=="function"?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return typeof t=="function"?function(e){return(0,ws.isText)(e)&&t(e.data)}:function(e){return(0,ws.isText)(e)&&e.data===t}}};function Q0(t,e){return typeof e=="function"?function(r){return(0,ws.isTag)(r)&&e(r.attribs[t])}:function(r){return(0,ws.isTag)(r)&&r.attribs[t]===e}}function jz(t,e){return function(r){return t(r)||e(r)}}function yE(t){var e=Object.keys(t).map(function(r){var n=t[r];return Object.prototype.hasOwnProperty.call(Rf,r)?Rf[r](n):Q0(r,n)});return e.length===0?null:e.reduce(jz)}function Mz(t,e){var r=yE(t);return r?r(e):!0}function Rz(t,e,r,n){n===void 0&&(n=1/0);var o=yE(t);return o?(0,md.filter)(o,e,r,n):[]}function Iz(t,e,r){return r===void 0&&(r=!0),Array.isArray(e)||(e=[e]),(0,md.findOne)(Q0("id",t),e,r)}function Az(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,md.filter)(Rf.tag_name(t),e,r,n)}function _z(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,md.filter)(Q0("class",t),e,r,n)}function Lz(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,md.filter)(Rf.tag_type(t),e,r,n)}var Ds={};Object.defineProperty(Ds,"__esModule",{value:!0});Ds.DocumentPosition=void 0;Ds.removeSubsets=Oz;Ds.compareDocumentPosition=vE;Ds.uniqueSort=Nz;var $S=ra;function Oz(t){for(var e=t.length;--e>=0;){var r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(var n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var Yo;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Yo||(Ds.DocumentPosition=Yo={}));function vE(t,e){var r=[],n=[];if(t===e)return 0;for(var o=(0,$S.hasChildren)(t)?t:t.parent;o;)r.unshift(o),o=o.parent;for(o=(0,$S.hasChildren)(e)?e:e.parent;o;)n.unshift(o),o=o.parent;for(var a=Math.min(r.length,n.length),l=0;l<a&&r[l]===n[l];)l++;if(l===0)return Yo.DISCONNECTED;var c=r[l-1],u=c.children,f=r[l],h=n[l];return u.indexOf(f)>u.indexOf(h)?c===e?Yo.FOLLOWING|Yo.CONTAINED_BY:Yo.FOLLOWING:c===t?Yo.PRECEDING|Yo.CONTAINS:Yo.PRECEDING}function Nz(t){return t=t.filter(function(e,r,n){return!n.includes(e,r+1)}),t.sort(function(e,r){var n=vE(e,r);return n&Yo.PRECEDING?-1:n&Yo.FOLLOWING?1:0}),t}var Y0={};Object.defineProperty(Y0,"__esModule",{value:!0});Y0.getFeed=Bz;var $z=Za,gd=la;function Bz(t){var e=If(Uz,t);return e?e.name==="feed"?zz(e):Dz(e):null}function zz(t){var e,r=t.children,n={type:"atom",items:(0,gd.getElementsByTagName)("entry",r).map(function(l){var c,u=l.children,f={media:bE(u)};Wn(f,"id","id",u),Wn(f,"title","title",u);var h=(c=If("link",u))===null||c===void 0?void 0:c.attribs.href;h&&(f.link=h);var v=La("summary",u)||La("content",u);v&&(f.description=v);var g=La("updated",u);return g&&(f.pubDate=new Date(g)),f})};Wn(n,"id","id",r),Wn(n,"title","title",r);var o=(e=If("link",r))===null||e===void 0?void 0:e.attribs.href;o&&(n.link=o),Wn(n,"description","subtitle",r);var a=La("updated",r);return a&&(n.updated=new Date(a)),Wn(n,"author","email",r,!0),n}function Dz(t){var e,r,n=(r=(e=If("channel",t.children))===null||e===void 0?void 0:e.children)!==null&&r!==void 0?r:[],o={type:t.name.substr(0,3),id:"",items:(0,gd.getElementsByTagName)("item",t.children).map(function(l){var c=l.children,u={media:bE(c)};Wn(u,"id","guid",c),Wn(u,"title","title",c),Wn(u,"link","link",c),Wn(u,"description","description",c);var f=La("pubDate",c)||La("dc:date",c);return f&&(u.pubDate=new Date(f)),u})};Wn(o,"title","title",n),Wn(o,"link","link",n),Wn(o,"description","description",n);var a=La("lastBuildDate",n);return a&&(o.updated=new Date(a)),Wn(o,"author","managingEditor",n,!0),o}var Fz=["url","type","lang"],Hz=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function bE(t){return(0,gd.getElementsByTagName)("media:content",t).map(function(e){for(var r=e.attribs,n={medium:r.medium,isDefault:!!r.isDefault},o=0,a=Fz;o<a.length;o++){var l=a[o];r[l]&&(n[l]=r[l])}for(var c=0,u=Hz;c<u.length;c++){var l=u[c];r[l]&&(n[l]=parseInt(r[l],10))}return r.expression&&(n.expression=r.expression),n})}function If(t,e){return(0,gd.getElementsByTagName)(t,e,!0,1)[0]}function La(t,e,r){return r===void 0&&(r=!1),(0,$z.textContent)((0,gd.getElementsByTagName)(t,e,r,1)).trim()}function Wn(t,e,r,n,o){o===void 0&&(o=!1);var a=La(r,n,o);a&&(t[e]=a)}function Uz(t){return t==="rss"||t==="feed"||t==="rdf:RDF"}(function(t){var e=kt&&kt.__createBinding||(Object.create?(function(o,a,l,c){c===void 0&&(c=l);var u=Object.getOwnPropertyDescriptor(a,l);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[l]}}),Object.defineProperty(o,c,u)}):(function(o,a,l,c){c===void 0&&(c=l),o[c]=a[l]})),r=kt&&kt.__exportStar||function(o,a){for(var l in o)l!=="default"&&!Object.prototype.hasOwnProperty.call(a,l)&&e(a,o,l)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,r(Za,t),r(Ni,t),r(es,t),r(sa,t),r(la,t),r(Ds,t),r(Y0,t);var n=ra;Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return n.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return n.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return n.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return n.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return n.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return n.hasChildren}})})(lf);(function(t){var e=kt&&kt.__createBinding||(Object.create?(function(j,P,M,E){E===void 0&&(E=M);var R=Object.getOwnPropertyDescriptor(P,M);(!R||("get"in R?!P.__esModule:R.writable||R.configurable))&&(R={enumerable:!0,get:function(){return P[M]}}),Object.defineProperty(j,E,R)}):(function(j,P,M,E){E===void 0&&(E=M),j[E]=P[M]})),r=kt&&kt.__setModuleDefault||(Object.create?(function(j,P){Object.defineProperty(j,"default",{enumerable:!0,value:P})}):function(j,P){j.default=P}),n=kt&&kt.__importStar||function(j){if(j&&j.__esModule)return j;var P={};if(j!=null)for(var M in j)M!=="default"&&Object.prototype.hasOwnProperty.call(j,M)&&e(P,j,M);return r(P,j),P},o=kt&&kt.__importDefault||function(j){return j&&j.__esModule?j:{default:j}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomUtils=t.parseFeed=t.getFeed=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DefaultHandler=t.DomHandler=t.Parser=void 0;var a=Fu,l=Fu;Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return l.Parser}});var c=ra,u=ra;Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return u.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return u.DomHandler}});function f(j,P){var M=new c.DomHandler(void 0,P);return new a.Parser(M,P).end(j),M.root}t.parseDocument=f;function h(j,P){return f(j,P).children}t.parseDOM=h;function v(j,P,M){var E=new c.DomHandler(j,P,M);return new a.Parser(E,P)}t.createDomStream=v;var g=U0;Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return o(g).default}}),t.ElementType=n(fc);var y=lf,w=lf;Object.defineProperty(t,"getFeed",{enumerable:!0,get:function(){return w.getFeed}});var x={xmlMode:!0};function C(j,P){return P===void 0&&(P=x),(0,y.getFeed)(h(j,P))}t.parseFeed=C,t.DomUtils=n(lf)})(XT);var Vz=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},J0={};Object.defineProperty(J0,"__esModule",{value:!0});/*!
340
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
341
- *
342
- * Copyright (c) 2014-2017, Jon Schlinkert.
343
- * Released under the MIT License.
344
- */function BS(t){return Object.prototype.toString.call(t)==="[object Object]"}function Wz(t){var e,r;return BS(t)===!1?!1:(e=t.constructor,e===void 0?!0:(r=e.prototype,!(BS(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}J0.isPlainObject=Wz;var qz=function(e){return Gz(e)&&!Xz(e)};function Gz(t){return!!t&&typeof t=="object"}function Xz(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||Yz(t)}var Kz=typeof Symbol=="function"&&Symbol.for,Qz=Kz?Symbol.for("react.element"):60103;function Yz(t){return t.$$typeof===Qz}function Jz(t){return Array.isArray(t)?[]:{}}function Uu(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Yl(Jz(t),t,e):t}function Zz(t,e,r){return t.concat(e).map(function(n){return Uu(n,r)})}function eD(t,e){if(!e.customMerge)return Yl;var r=e.customMerge(t);return typeof r=="function"?r:Yl}function tD(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function zS(t){return Object.keys(t).concat(tD(t))}function xE(t,e){try{return e in t}catch{return!1}}function rD(t,e){return xE(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function nD(t,e,r){var n={};return r.isMergeableObject(t)&&zS(t).forEach(function(o){n[o]=Uu(t[o],r)}),zS(e).forEach(function(o){rD(t,o)||(xE(t,o)&&r.isMergeableObject(e[o])?n[o]=eD(o,r)(t[o],e[o],r):n[o]=Uu(e[o],r))}),n}function Yl(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||Zz,r.isMergeableObject=r.isMergeableObject||qz,r.cloneUnlessOtherwiseSpecified=Uu;var n=Array.isArray(e),o=Array.isArray(t),a=n===o;return a?n?r.arrayMerge(t,e,r):nD(t,e,r):Uu(e,r)}Yl.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return Yl(n,o,r)},{})};var oD=Yl,iD=oD,wE={exports:{}};(function(t){(function(e,r){t.exports?t.exports=r():e.parseSrcset=r()})(kt,function(){return function(e){function r(E){return E===" "||E===" "||E===`
345
- `||E==="\f"||E==="\r"}function n(E){var R,I=E.exec(e.substring(C));if(I)return R=I[0],C+=R.length,R}for(var o=e.length,a=/^[ \t\n\r\u000c]+/,l=/^[, \t\n\r\u000c]+/,c=/^[^ \t\n\r\u000c]+/,u=/[,]+$/,f=/^\d+$/,h=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,v,g,y,w,x,C=0,j=[];;){if(n(l),C>=o)return j;v=n(c),g=[],v.slice(-1)===","?(v=v.replace(u,""),M()):P()}function P(){for(n(a),y="",w="in descriptor";;){if(x=e.charAt(C),w==="in descriptor")if(r(x))y&&(g.push(y),y="",w="after descriptor");else if(x===","){C+=1,y&&g.push(y),M();return}else if(x==="(")y=y+x,w="in parens";else if(x===""){y&&g.push(y),M();return}else y=y+x;else if(w==="in parens")if(x===")")y=y+x,w="in descriptor";else if(x===""){g.push(y),M();return}else y=y+x;else if(w==="after descriptor"&&!r(x))if(x===""){M();return}else w="in descriptor",C-=1;C+=1}}function M(){var E=!1,R,I,F,A,H={},G,N,k,q,U;for(A=0;A<g.length;A++)G=g[A],N=G[G.length-1],k=G.substring(0,G.length-1),q=parseInt(k,10),U=parseFloat(k),f.test(k)&&N==="w"?((R||I)&&(E=!0),q===0?E=!0:R=q):h.test(k)&&N==="x"?((R||I||F)&&(E=!0),U<0?E=!0:I=U):f.test(k)&&N==="h"?((F||I)&&(E=!0),q===0?E=!0:F=q):E=!0;E?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+G+"'."):(H.url=v,R&&(H.w=R),I&&(H.d=I),F&&(H.h=F),j.push(H))}}})})(wE);var aD=wE.exports,Z0={exports:{}},Lt=String,SE=function(){return{isColorSupported:!1,reset:Lt,bold:Lt,dim:Lt,italic:Lt,underline:Lt,inverse:Lt,hidden:Lt,strikethrough:Lt,black:Lt,red:Lt,green:Lt,yellow:Lt,blue:Lt,magenta:Lt,cyan:Lt,white:Lt,gray:Lt,bgBlack:Lt,bgRed:Lt,bgGreen:Lt,bgYellow:Lt,bgBlue:Lt,bgMagenta:Lt,bgCyan:Lt,bgWhite:Lt,blackBright:Lt,redBright:Lt,greenBright:Lt,yellowBright:Lt,blueBright:Lt,magentaBright:Lt,cyanBright:Lt,whiteBright:Lt,bgBlackBright:Lt,bgRedBright:Lt,bgGreenBright:Lt,bgYellowBright:Lt,bgBlueBright:Lt,bgMagentaBright:Lt,bgCyanBright:Lt,bgWhiteBright:Lt}};Z0.exports=SE();Z0.exports.createColors=SE;var sD=Z0.exports,lD={},cD=Object.freeze({__proto__:null,default:lD}),li=NB(cD);let DS=sD,FS=li,Ny=class CE extends Error{constructor(e,r,n,o,a,l){super(e),this.name="CssSyntaxError",this.reason=e,a&&(this.file=a),o&&(this.source=o),l&&(this.plugin=l),typeof r<"u"&&typeof n<"u"&&(typeof r=="number"?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,CE)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let r=this.source;e==null&&(e=DS.isColorSupported);let n=h=>h,o=h=>h,a=h=>h;if(e){let{bold:h,gray:v,red:g}=DS.createColors(!0);o=y=>h(g(y)),n=y=>v(y),FS&&(a=y=>FS(y))}let l=r.split(/\r?\n/),c=Math.max(this.line-3,0),u=Math.min(this.line+2,l.length),f=String(u).length;return l.slice(c,u).map((h,v)=>{let g=c+1+v,y=" "+(" "+g).slice(-f)+" | ";if(g===this.line){if(h.length>160){let x=20,C=Math.max(0,this.column-x),j=Math.max(this.column+x,this.endColumn+x),P=h.slice(C,j),M=n(y.replace(/\d/g," "))+h.slice(0,Math.min(this.column-1,x-1)).replace(/[^\t]/g," ");return o(">")+n(y)+a(P)+`
346
- `+M+o("^")}let w=n(y.replace(/\d/g," "))+h.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+n(y)+a(h)+`
347
- `+w+o("^")}return" "+n(y)+a(h)}).join(`
348
- `)}toString(){let e=this.showSourceCode();return e&&(e=`
349
-
350
- `+e+`
351
- `),this.name+": "+this.message+e}};var ev=Ny;Ny.default=Ny;const HS={after:`
352
- `,beforeClose:`
353
- `,beforeComment:`
354
- `,beforeDecl:`
355
- `,beforeOpen:" ",beforeRule:`
356
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function uD(t){return t[0].toUpperCase()+t.slice(1)}let $y=class{constructor(e){this.builder=e}atrule(e,r){let n="@"+e.name,o=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?n+=e.raws.afterName:o&&(n+=" "),e.nodes)this.block(e,n+o);else{let a=(e.raws.between||"")+(r?";":"");this.builder(n+o+a,e)}}beforeAfter(e,r){let n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):r==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");let o=e.parent,a=0;for(;o&&o.type!=="root";)a+=1,o=o.parent;if(n.includes(`
357
- `)){let l=this.raw(e,null,"indent");if(l.length)for(let c=0;c<a;c++)n+=l}return n}block(e,r){let n=this.raw(e,"between","beforeOpen");this.builder(r+n+"{",e,"start");let o;e.nodes&&e.nodes.length?(this.body(e),o=this.raw(e,"after")):o=this.raw(e,"after","emptyBody"),o&&this.builder(o),this.builder("}",e,"end")}body(e){let r=e.nodes.length-1;for(;r>0&&e.nodes[r].type==="comment";)r-=1;let n=this.raw(e,"semicolon");for(let o=0;o<e.nodes.length;o++){let a=e.nodes[o],l=this.raw(a,"before");l&&this.builder(l),this.stringify(a,r!==o||n)}}comment(e){let r=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+n+"*/",e)}decl(e,r){let n=this.raw(e,"between","colon"),o=e.prop+n+this.rawValue(e,"value");e.important&&(o+=e.raws.important||" !important"),r&&(o+=";"),this.builder(o,e)}document(e){this.body(e)}raw(e,r,n){let o;if(n||(n=r),r&&(o=e.raws[r],typeof o<"u"))return o;let a=e.parent;if(n==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return HS[n];let l=e.root();if(l.rawCache||(l.rawCache={}),typeof l.rawCache[n]<"u")return l.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);{let c="raw"+uD(n);this[c]?o=this[c](l,e):l.walk(u=>{if(o=u.raws[r],typeof o<"u")return!1})}return typeof o>"u"&&(o=HS[n]),l.rawCache[n]=o,o}rawBeforeClose(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after<"u")return r=n.raws.after,r.includes(`
358
- `)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawBeforeComment(e,r){let n;return e.walkComments(o=>{if(typeof o.raws.before<"u")return n=o.raws.before,n.includes(`
359
- `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,r){let n;return e.walkDecls(o=>{if(typeof o.raws.before<"u")return n=o.raws.before,n.includes(`
360
- `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let r;return e.walk(n=>{if(n.type!=="decl"&&(r=n.raws.between,typeof r<"u"))return!1}),r}rawBeforeRule(e){let r;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
361
- `)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawColon(e){let r;return e.walkDecls(n=>{if(typeof n.raws.between<"u")return r=n.raws.between.replace(/[^\s:]/g,""),!1}),r}rawEmptyBody(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length===0&&(r=n.raws.after,typeof r<"u"))return!1}),r}rawIndent(e){if(e.raws.indent)return e.raws.indent;let r;return e.walk(n=>{let o=n.parent;if(o&&o!==e&&o.parent&&o.parent===e&&typeof n.raws.before<"u"){let a=n.raws.before.split(`
362
- `);return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r}rawSemicolon(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(r=n.raws.semicolon,typeof r<"u"))return!1}),r}rawValue(e,r){let n=e[r],o=e.raws[r];return o&&o.value===n?o.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)}};var TE=$y;$y.default=$y;let dD=TE;function By(t,e){new dD(e).stringify(t)}var Ch=By;By.default=By;var yd={};yd.isClean=Symbol("isClean");yd.my=Symbol("my");let pD=ev,fD=TE,hD=Ch,{isClean:iu,my:mD}=yd;function zy(t,e){let r=new t.constructor;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||n==="proxyCache")continue;let o=t[n],a=typeof o;n==="parent"&&a==="object"?e&&(r[n]=e):n==="source"?r[n]=o:Array.isArray(o)?r[n]=o.map(l=>zy(l,r)):(a==="object"&&o!==null&&(o=zy(o)),r[n]=o)}return r}function Ki(t,e){if(e&&typeof e.offset<"u")return e.offset;let r=1,n=1,o=0;for(let a=0;a<t.length;a++){if(n===e.line&&r===e.column){o=a;break}t[a]===`
363
- `?(r=1,n+=1):r+=1}return o}let Dy=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[iu]=!1,this[mD]=!0;for(let r in e)if(r==="nodes"){this.nodes=[];for(let n of e[r])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[r]=e[r]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let r in e)this[r]=e[r];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let r=zy(this);for(let n in e)r[n]=e[n];return r}cloneAfter(e={}){let r=this.clone(e);return this.parent.insertAfter(this,r),r}cloneBefore(e={}){let r=this.clone(e);return this.parent.insertBefore(this,r),r}error(e,r={}){if(this.source){let{end:n,start:o}=this.rangeBy(r);return this.source.input.error(e,{column:o.column,line:o.line},{column:n.column,line:n.line},r)}return new pD(e)}getProxyProcessor(){return{get(e,r){return r==="proxyOf"?e:r==="root"?()=>e.root().toProxy():e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&e.markDirty()),!0}}}markClean(){this[iu]=!0}markDirty(){if(this[iu]){this[iu]=!1;let e=this;for(;e=e.parent;)e[iu]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let r=this.source.start;if(e.index)r=this.positionInside(e.index);else if(e.word){let n="document"in this.source.input?this.source.input.document:this.source.input.css,a=n.slice(Ki(n,this.source.start),Ki(n,this.source.end)).indexOf(e.word);a!==-1&&(r=this.positionInside(a))}return r}positionInside(e){let r=this.source.start.column,n=this.source.start.line,o="document"in this.source.input?this.source.input.document:this.source.input.css,a=Ki(o,this.source.start),l=a+e;for(let c=a;c<l;c++)o[c]===`
364
- `?(r=1,n+=1):r+=1;return{column:r,line:n,offset:l}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let r="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:Ki(r,this.source.start)},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:Ki(r,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let l=r.slice(Ki(r,this.source.start),Ki(r,this.source.end)).indexOf(e.word);l!==-1&&(n=this.positionInside(l),o=this.positionInside(l+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:Ki(r,e.start)}:e.index&&(n=this.positionInside(e.index)),e.end?o={column:e.end.column,line:e.end.line,offset:Ki(r,e.end)}:typeof e.endIndex=="number"?o=this.positionInside(e.endIndex):e.index&&(o=this.positionInside(e.index+1));return(o.line<n.line||o.line===n.line&&o.column<=n.column)&&(o={column:n.column+1,line:n.line,offset:n.offset+1}),{end:o,start:n}}raw(e,r){return new fD().raw(this,e,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let r=this,n=!1;for(let o of e)o===this?n=!0:n?(this.parent.insertAfter(r,o),r=o):this.parent.insertBefore(r,o);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,r){let n={},o=r==null;r=r||new Map;let a=0;for(let l in this){if(!Object.prototype.hasOwnProperty.call(this,l)||l==="parent"||l==="proxyCache")continue;let c=this[l];if(Array.isArray(c))n[l]=c.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,r):u);else if(typeof c=="object"&&c.toJSON)n[l]=c.toJSON(null,r);else if(l==="source"){if(c==null)continue;let u=r.get(c.input);u==null&&(u=a,r.set(c.input,a),a++),n[l]={end:c.end,inputId:u,start:c.start}}else n[l]=c}return o&&(n.inputs=[...r.keys()].map(l=>l.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=hD){e.stringify&&(e=e.stringify);let r="";return e(this,n=>{r+=n}),r}warn(e,r,n={}){let o={node:this};for(let a in n)o[a]=n[a];return e.warn(r,o)}};var Th=Dy;Dy.default=Dy;let gD=Th,Fy=class extends gD{constructor(e){super(e),this.type="comment"}};var Eh=Fy;Fy.default=Fy;let yD=Th,Hy=class extends yD{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};var kh=Hy;Hy.default=Hy;let EE=Eh,kE=kh,vD=Th,{isClean:PE,my:jE}=yd,tv,ME,RE,rv;function IE(t){return t.map(e=>(e.nodes&&(e.nodes=IE(e.nodes)),delete e.source,e))}function AE(t){if(t[PE]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)AE(e)}let na=class _E extends vD{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let r of e){let n=this.normalize(r,this.last);for(let o of n)this.proxyOf.nodes.push(o)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let r of this.nodes)r.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let r=this.getIterator(),n,o;for(;this.indexes[r]<this.proxyOf.nodes.length&&(n=this.indexes[r],o=e(this.proxyOf.nodes[n],n),o!==!1);)this.indexes[r]+=1;return delete this.indexes[r],o}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,r){return r==="proxyOf"?e:e[r]?r==="each"||typeof r=="string"&&r.startsWith("walk")?(...n)=>e[r](...n.map(o=>typeof o=="function"?(a,l)=>o(a.toProxy(),l):o)):r==="every"||r==="some"?n=>e[r]((o,...a)=>n(o.toProxy(),...a)):r==="root"?()=>e.root().toProxy():r==="nodes"?e.nodes.map(n=>n.toProxy()):r==="first"||r==="last"?e[r].toProxy():e[r]:e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="name"||r==="params"||r==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,r){let n=this.index(e),o=this.normalize(r,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let l of o)this.proxyOf.nodes.splice(n+1,0,l);let a;for(let l in this.indexes)a=this.indexes[l],n<a&&(this.indexes[l]=a+o.length);return this.markDirty(),this}insertBefore(e,r){let n=this.index(e),o=n===0?"prepend":!1,a=this.normalize(r,this.proxyOf.nodes[n],o).reverse();n=this.index(e);for(let c of a)this.proxyOf.nodes.splice(n,0,c);let l;for(let c in this.indexes)l=this.indexes[c],n<=l&&(this.indexes[c]=l+a.length);return this.markDirty(),this}normalize(e,r){if(typeof e=="string")e=IE(ME(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let o of e)o.parent&&o.parent.removeChild(o,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let o of e)o.parent&&o.parent.removeChild(o,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new kE(e)]}else if(e.selector||e.selectors)e=[new rv(e)];else if(e.name)e=[new tv(e)];else if(e.text)e=[new EE(e)];else throw new Error("Unknown node type in node creation");return e.map(o=>(o[jE]||_E.rebuild(o),o=o.proxyOf,o.parent&&o.parent.removeChild(o),o[PE]&&AE(o),o.raws||(o.raws={}),typeof o.raws.before>"u"&&r&&typeof r.raws.before<"u"&&(o.raws.before=r.raws.before.replace(/\S/g,"")),o.parent=this.proxyOf,o))}prepend(...e){e=e.reverse();for(let r of e){let n=this.normalize(r,this.first,"prepend").reverse();for(let o of n)this.proxyOf.nodes.unshift(o);for(let o in this.indexes)this.indexes[o]=this.indexes[o]+n.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let r;for(let n in this.indexes)r=this.indexes[n],r>=e&&(this.indexes[n]=r-1);return this.markDirty(),this}replaceValues(e,r,n){return n||(n=r,r={}),this.walkDecls(o=>{r.props&&!r.props.includes(o.prop)||r.fast&&!o.value.includes(r.fast)||(o.value=o.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((r,n)=>{let o;try{o=e(r,n)}catch(a){throw r.addToError(a)}return o!==!1&&r.walk&&(o=r.walk(e)),o})}walkAtRules(e,r){return r?e instanceof RegExp?this.walk((n,o)=>{if(n.type==="atrule"&&e.test(n.name))return r(n,o)}):this.walk((n,o)=>{if(n.type==="atrule"&&n.name===e)return r(n,o)}):(r=e,this.walk((n,o)=>{if(n.type==="atrule")return r(n,o)}))}walkComments(e){return this.walk((r,n)=>{if(r.type==="comment")return e(r,n)})}walkDecls(e,r){return r?e instanceof RegExp?this.walk((n,o)=>{if(n.type==="decl"&&e.test(n.prop))return r(n,o)}):this.walk((n,o)=>{if(n.type==="decl"&&n.prop===e)return r(n,o)}):(r=e,this.walk((n,o)=>{if(n.type==="decl")return r(n,o)}))}walkRules(e,r){return r?e instanceof RegExp?this.walk((n,o)=>{if(n.type==="rule"&&e.test(n.selector))return r(n,o)}):this.walk((n,o)=>{if(n.type==="rule"&&n.selector===e)return r(n,o)}):(r=e,this.walk((n,o)=>{if(n.type==="rule")return r(n,o)}))}};na.registerParse=t=>{ME=t};na.registerRule=t=>{rv=t};na.registerAtRule=t=>{tv=t};na.registerRoot=t=>{RE=t};var Fs=na;na.default=na;na.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,tv.prototype):t.type==="rule"?Object.setPrototypeOf(t,rv.prototype):t.type==="decl"?Object.setPrototypeOf(t,kE.prototype):t.type==="comment"?Object.setPrototypeOf(t,EE.prototype):t.type==="root"&&Object.setPrototypeOf(t,RE.prototype),t[jE]=!0,t.nodes&&t.nodes.forEach(e=>{na.rebuild(e)})};let LE=Fs,Af=class extends LE{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var nv=Af;Af.default=Af;LE.registerAtRule(Af);let bD=Fs,OE,NE,Vu=class extends bD{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new OE(new NE,this,e).stringify()}};Vu.registerLazyResult=t=>{OE=t};Vu.registerProcessor=t=>{NE=t};var ov=Vu;Vu.default=Vu;let xD="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",wD=(t=21)=>{let e="",r=t|0;for(;r--;)e+=xD[Math.random()*64|0];return e};var SD={nanoid:wD};let{existsSync:CD,readFileSync:TD}=li,{dirname:zg,join:ED}=li,{SourceMapConsumer:US,SourceMapGenerator:VS}=li;function kD(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}let Uy=class{constructor(e,r){if(r.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=r.map?r.map.prev:void 0,o=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=zg(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new US(this.text)),this.consumerCache}decodeInline(e){let r=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/,l=e.match(o)||e.match(a);if(l)return decodeURIComponent(e.substr(l[0].length));let c=e.match(r)||e.match(n);if(c)return kD(e.substr(c[0].length));let u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let r=e.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let n=e.lastIndexOf(r.pop()),o=e.indexOf("*/",n);n>-1&&o>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,o)))}loadFile(e){if(this.root=zg(e),CD(e))return this.mapFile=e,TD(e,"utf-8").toString().trim()}loadMap(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let n=r(e);if(n){let o=this.loadFile(n);if(!o)throw new Error("Unable to load previous source map: "+n.toString());return o}}else{if(r instanceof US)return VS.fromSourceMap(r).toString();if(r instanceof VS)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let n=this.annotation;return e&&(n=ED(zg(e),n)),this.loadFile(n)}}}startWith(e,r){return e?e.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var $E=Uy;Uy.default=Uy;let{nanoid:PD}=SD,{isAbsolute:Vy,resolve:Wy}=li,{SourceMapConsumer:jD,SourceMapGenerator:MD}=li,{fileURLToPath:WS,pathToFileURL:Up}=li,qS=ev,RD=$E,Dg=li,Fg=Symbol("lineToIndexCache"),ID=!!(jD&&MD),GS=!!(Wy&&Vy);function XS(t){if(t[Fg])return t[Fg];let e=t.css.split(`
365
- `),r=new Array(e.length),n=0;for(let o=0,a=e.length;o<a;o++)r[o]=n,n+=e[o].length+1;return t[Fg]=r,r}let _f=class{get from(){return this.file||this.id}constructor(e,r={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,r.document&&(this.document=r.document.toString()),r.from&&(!GS||/^\w+:\/\//.test(r.from)||Vy(r.from)?this.file=r.from:this.file=Wy(r.from)),GS&&ID){let n=new RD(this.css,r);if(n.text){this.map=n;let o=n.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+PD(6)+">"),this.map&&(this.map.file=this.from)}error(e,r,n,o={}){let a,l,c,u,f;if(r&&typeof r=="object"){let v=r,g=n;if(typeof v.offset=="number"){u=v.offset;let y=this.fromOffset(u);r=y.line,n=y.col}else r=v.line,n=v.column,u=this.fromLineAndColumn(r,n);if(typeof g.offset=="number"){c=g.offset;let y=this.fromOffset(c);l=y.line,a=y.col}else l=g.line,a=g.column,c=this.fromLineAndColumn(g.line,g.column)}else if(n)u=this.fromLineAndColumn(r,n);else{u=r;let v=this.fromOffset(u);r=v.line,n=v.col}let h=this.origin(r,n,l,a);return h?f=new qS(e,h.endLine===void 0?h.line:{column:h.column,line:h.line},h.endLine===void 0?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,o.plugin):f=new qS(e,l===void 0?r:{column:n,line:r},l===void 0?n:{column:a,line:l},this.css,this.file,o.plugin),f.input={column:n,endColumn:a,endLine:l,endOffset:c,line:r,offset:u,source:this.css},this.file&&(Up&&(f.input.url=Up(this.file).toString()),f.input.file=this.file),f}fromLineAndColumn(e,r){return XS(this)[e-1]+r-1}fromOffset(e){let r=XS(this),n=r[r.length-1],o=0;if(e>=n)o=r.length-1;else{let a=r.length-2,l;for(;o<a;)if(l=o+(a-o>>1),e<r[l])a=l-1;else if(e>=r[l+1])o=l+1;else{o=l;break}}return{col:e-r[o]+1,line:o+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Wy(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,r,n,o){if(!this.map)return!1;let a=this.map.consumer(),l=a.originalPositionFor({column:r,line:e});if(!l.source)return!1;let c;typeof n=="number"&&(c=a.originalPositionFor({column:o,line:n}));let u;Vy(l.source)?u=Up(l.source):u=new URL(l.source,this.map.consumer().sourceRoot||Up(this.map.mapFile));let f={column:l.column,endColumn:c&&c.column,endLine:c&&c.line,line:l.line,url:u.toString()};if(u.protocol==="file:")if(WS)f.file=WS(u);else throw new Error("file: protocol is not available in this PostCSS build");let h=a.sourceContentFor(l.source);return h&&(f.source=h),f}toJSON(){let e={};for(let r of["hasBOM","css","file","id"])this[r]!=null&&(e[r]=this[r]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var Ph=_f;_f.default=_f;Dg&&Dg.registerInput&&Dg.registerInput(_f);let BE=Fs,zE,DE,Jl=class extends BE{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,r,n){let o=super.normalize(e);if(r){if(n==="prepend")this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(let a of o)a.raws.before=r.raws.before}return o}removeChild(e,r){let n=this.index(e);return!r&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new zE(new DE,this,e).stringify()}};Jl.registerLazyResult=t=>{zE=t};Jl.registerProcessor=t=>{DE=t};var vd=Jl;Jl.default=Jl;BE.registerRoot(Jl);let Wu={comma(t){return Wu.split(t,[","],!0)},space(t){let e=[" ",`
366
- `," "];return Wu.split(t,e)},split(t,e,r){let n=[],o="",a=!1,l=0,c=!1,u="",f=!1;for(let h of t)f?f=!1:h==="\\"?f=!0:c?h===u&&(c=!1):h==='"'||h==="'"?(c=!0,u=h):h==="("?l+=1:h===")"?l>0&&(l-=1):l===0&&e.includes(h)&&(a=!0),a?(o!==""&&n.push(o.trim()),o="",a=!1):o+=h;return(r||o!=="")&&n.push(o.trim()),n}};var FE=Wu;Wu.default=Wu;let HE=Fs,AD=FE,Lf=class extends HE{get selectors(){return AD.comma(this.selector)}set selectors(e){let r=this.selector?this.selector.match(/,\s*/):null,n=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};var iv=Lf;Lf.default=Lf;HE.registerRule(Lf);let _D=nv,LD=Eh,OD=kh,ND=Ph,$D=$E,BD=vd,zD=iv;function qu(t,e){if(Array.isArray(t))return t.map(o=>qu(o));let{inputs:r,...n}=t;if(r){e=[];for(let o of r){let a={...o,__proto__:ND.prototype};a.map&&(a.map={...a.map,__proto__:$D.prototype}),e.push(a)}}if(n.nodes&&(n.nodes=t.nodes.map(o=>qu(o,e))),n.source){let{inputId:o,...a}=n.source;n.source=a,o!=null&&(n.source.input=e[o])}if(n.type==="root")return new BD(n);if(n.type==="decl")return new OD(n);if(n.type==="rule")return new zD(n);if(n.type==="comment")return new LD(n);if(n.type==="atrule")return new _D(n);throw new Error("Unknown node type: "+t.type)}var DD=qu;qu.default=qu;let{dirname:uf,relative:UE,resolve:VE,sep:WE}=li,{SourceMapConsumer:qE,SourceMapGenerator:df}=li,{pathToFileURL:KS}=li,FD=Ph,HD=!!(qE&&df),UD=!!(uf&&VE&&UE&&WE),VD=class{constructor(e,r,n,o){this.stringify=e,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let r=`
367
- `;this.css.includes(`\r
368
- `)&&(r=`\r
369
- `),this.css+=r+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let r=this.toUrl(this.path(e.file)),n=e.root||uf(e.file),o;this.mapOpts.sourcesContent===!1?(o=new qE(e.text),o.sourcesContent&&(o.sourcesContent=null)):o=e.consumer(),this.map.applySourceMap(o,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),UD&&HD&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,r=>{e+=r}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=df.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new df({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new df({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,r=1,n="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""},a,l;this.stringify(this.root,(c,u,f)=>{if(this.css+=c,u&&f!=="end"&&(o.generated.line=e,o.generated.column=r-1,u.source&&u.source.start?(o.source=this.sourcePath(u),o.original.line=u.source.start.line,o.original.column=u.source.start.column-1,this.map.addMapping(o)):(o.source=n,o.original.line=1,o.original.column=0,this.map.addMapping(o))),l=c.match(/\n/g),l?(e+=l.length,a=c.lastIndexOf(`
370
- `),r=c.length-a):r+=c.length,u&&f!=="start"){let h=u.parent||{raws:{}};(!(u.type==="decl"||u.type==="atrule"&&!u.nodes)||u!==h.last||h.raws.semicolon)&&(u.source&&u.source.end?(o.source=this.sourcePath(u),o.original.line=u.source.end.line,o.original.column=u.source.end.column-1,o.generated.line=e,o.generated.column=r-2,this.map.addMapping(o)):(o.source=n,o.original.line=1,o.original.column=0,o.generated.line=e,o.generated.column=r-1,this.map.addMapping(o)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let r=this.memoizedPaths.get(e);if(r)return r;let n=this.opts.to?uf(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=uf(VE(n,this.mapOpts.annotation)));let o=UE(n,e);return this.memoizedPaths.set(e,o),o}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let r=e.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let e=new FD(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(r=>{if(r.source){let n=r.source.input.from;if(n&&!e[n]){e[n]=!0;let o=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(o,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let r=this.memoizedFileURLs.get(e);if(r)return r;if(KS){let n=KS(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let r=this.memoizedURLs.get(e);if(r)return r;WE==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var GE=VD;const Hg=39,QS=34,Vp=92,YS=47,Wp=10,au=32,qp=12,Gp=9,Xp=13,WD=91,qD=93,GD=40,XD=41,KD=123,QD=125,YD=59,JD=42,ZD=58,eF=64,Kp=/[\t\n\f\r "#'()/;[\\\]{}]/g,Qp=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,tF=/.[\r\n"'(/\\]/,JS=/[\da-f]/i;var rF=function(e,r={}){let n=e.css.valueOf(),o=r.ignoreErrors,a,l,c,u,f,h,v,g,y,w,x=n.length,C=0,j=[],P=[];function M(){return C}function E(A){throw e.error("Unclosed "+A,C)}function R(){return P.length===0&&C>=x}function I(A){if(P.length)return P.pop();if(C>=x)return;let H=A?A.ignoreUnclosed:!1;switch(a=n.charCodeAt(C),a){case Wp:case au:case Gp:case Xp:case qp:{u=C;do u+=1,a=n.charCodeAt(u);while(a===au||a===Wp||a===Gp||a===Xp||a===qp);h=["space",n.slice(C,u)],C=u-1;break}case WD:case qD:case KD:case QD:case ZD:case YD:case XD:{let G=String.fromCharCode(a);h=[G,G,C];break}case GD:{if(w=j.length?j.pop()[1]:"",y=n.charCodeAt(C+1),w==="url"&&y!==Hg&&y!==QS&&y!==au&&y!==Wp&&y!==Gp&&y!==qp&&y!==Xp){u=C;do{if(v=!1,u=n.indexOf(")",u+1),u===-1)if(o||H){u=C;break}else E("bracket");for(g=u;n.charCodeAt(g-1)===Vp;)g-=1,v=!v}while(v);h=["brackets",n.slice(C,u+1),C,u],C=u}else u=n.indexOf(")",C+1),l=n.slice(C,u+1),u===-1||tF.test(l)?h=["(","(",C]:(h=["brackets",l,C,u],C=u);break}case Hg:case QS:{f=a===Hg?"'":'"',u=C;do{if(v=!1,u=n.indexOf(f,u+1),u===-1)if(o||H){u=C+1;break}else E("string");for(g=u;n.charCodeAt(g-1)===Vp;)g-=1,v=!v}while(v);h=["string",n.slice(C,u+1),C,u],C=u;break}case eF:{Kp.lastIndex=C+1,Kp.test(n),Kp.lastIndex===0?u=n.length-1:u=Kp.lastIndex-2,h=["at-word",n.slice(C,u+1),C,u],C=u;break}case Vp:{for(u=C,c=!0;n.charCodeAt(u+1)===Vp;)u+=1,c=!c;if(a=n.charCodeAt(u+1),c&&a!==YS&&a!==au&&a!==Wp&&a!==Gp&&a!==Xp&&a!==qp&&(u+=1,JS.test(n.charAt(u)))){for(;JS.test(n.charAt(u+1));)u+=1;n.charCodeAt(u+1)===au&&(u+=1)}h=["word",n.slice(C,u+1),C,u],C=u;break}default:{a===YS&&n.charCodeAt(C+1)===JD?(u=n.indexOf("*/",C+2)+1,u===0&&(o||H?u=n.length:E("comment")),h=["comment",n.slice(C,u+1),C,u],C=u):(Qp.lastIndex=C+1,Qp.test(n),Qp.lastIndex===0?u=n.length-1:u=Qp.lastIndex-2,h=["word",n.slice(C,u+1),C,u],j.push(h),C=u);break}}return C++,h}function F(A){P.push(A)}return{back:F,endOfFile:R,nextToken:I,position:M}};let nF=nv,oF=Eh,iF=kh,aF=vd,ZS=iv,sF=rF;const eC={empty:!0,space:!0};function lF(t){for(let e=t.length-1;e>=0;e--){let r=t[e],n=r[3]||r[2];if(n)return n}}let cF=class{constructor(e){this.input=e,this.root=new aF,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let r=new nF;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);let n,o,a,l=!1,c=!1,u=[],f=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?f.push(n==="("?")":"]"):n==="{"&&f.length>0?f.push("}"):n===f[f.length-1]&&f.pop(),f.length===0)if(n===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){c=!0;break}else if(n==="}"){if(u.length>0){for(a=u.length-1,o=u[a];o&&o[0]==="space";)o=u[--a];o&&(r.source.end=this.getPosition(o[3]||o[2]),r.source.end.offset++)}this.end(e);break}else u.push(e);else u.push(e);if(this.tokenizer.endOfFile()){l=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(r.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(r,"params",u),l&&(e=u[u.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),c&&(r.nodes=[],this.current=r)}checkMissedSemicolon(e){let r=this.colon(e);if(r===!1)return;let n=0,o;for(let a=r-1;a>=0&&(o=e[a],!(o[0]!=="space"&&(n+=1,n===2)));a--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}colon(e){let r=0,n,o,a;for(let[l,c]of e.entries()){if(o=c,a=o[0],a==="("&&(r+=1),a===")"&&(r-=1),r===0&&a===":")if(!n)this.doubleColon(o);else{if(n[0]==="word"&&n[1]==="progid")continue;return l}n=o}return!1}comment(e){let r=new oF;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))r.text="",r.raws.left=n,r.raws.right="";else{let o=n.match(/^(\s*)([^]*\S)(\s*)$/);r.text=o[2],r.raws.left=o[1],r.raws.right=o[3]}}createTokenizer(){this.tokenizer=sF(this.input)}decl(e,r){let n=new iF;this.init(n,e[0][2]);let o=e[e.length-1];for(o[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(o[3]||o[2]||lF(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let f=e[0][0];if(f===":"||f==="space"||f==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let a;for(;e.length;)if(a=e.shift(),a[0]===":"){n.raws.between+=a[1];break}else a[0]==="word"&&/\w/.test(a[1])&&this.unknownWord([a]),n.raws.between+=a[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let l=[],c;for(;e.length&&(c=e[0][0],!(c!=="space"&&c!=="comment"));)l.push(e.shift());this.precheckMissedSemicolon(e);for(let f=e.length-1;f>=0;f--){if(a=e[f],a[1].toLowerCase()==="!important"){n.important=!0;let h=this.stringFrom(e,f);h=this.spacesFromEnd(e)+h,h!==" !important"&&(n.raws.important=h);break}else if(a[1].toLowerCase()==="important"){let h=e.slice(0),v="";for(let g=f;g>0;g--){let y=h[g][0];if(v.trim().startsWith("!")&&y!=="space")break;v=h.pop()[1]+v}v.trim().startsWith("!")&&(n.important=!0,n.raws.important=v,e=h)}if(a[0]!=="space"&&a[0]!=="comment")break}e.some(f=>f[0]!=="space"&&f[0]!=="comment")&&(n.raws.between+=l.map(f=>f[1]).join(""),l=[]),this.raw(n,"value",l.concat(e),r),n.value.includes(":")&&!r&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let r=new ZS;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="",r.source.end=this.getPosition(e[2]),r.source.end.offset+=r.raws.ownSemicolon.length)}}getPosition(e){let r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}}init(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let r=!1,n=null,o=!1,a=null,l=[],c=e[1].startsWith("--"),u=[],f=e;for(;f;){if(n=f[0],u.push(f),n==="("||n==="[")a||(a=f),l.push(n==="("?")":"]");else if(c&&o&&n==="{")a||(a=f),l.push("}");else if(l.length===0)if(n===";")if(o){this.decl(u,c);return}else break;else if(n==="{"){this.rule(u);return}else if(n==="}"){this.tokenizer.back(u.pop()),r=!0;break}else n===":"&&(o=!0);else n===l[l.length-1]&&(l.pop(),l.length===0&&(a=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),l.length>0&&this.unclosedBracket(a),r&&o){if(!c)for(;u.length&&(f=u[u.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,c)}else this.unknownWord(u)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,r,n,o){let a,l,c=n.length,u="",f=!0,h,v;for(let g=0;g<c;g+=1)a=n[g],l=a[0],l==="space"&&g===c-1&&!o?f=!1:l==="comment"?(v=n[g-1]?n[g-1][0]:"empty",h=n[g+1]?n[g+1][0]:"empty",!eC[v]&&!eC[h]?u.slice(-1)===","?f=!1:u+=a[1]:f=!1):u+=a[1];if(!f){let g=n.reduce((y,w)=>y+w[1],"");e.raws[r]={raw:g,value:u}}e[r]=u}rule(e){e.pop();let r=new ZS;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r}spacesAndCommentsFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let r,n="";for(;e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],r==="space");)n=e.pop()[1]+n;return n}stringFrom(e,r){let n="";for(let o=r;o<e.length;o++)n+=e[o][1];return e.splice(r,e.length-r),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})}};var uF=cF;let dF=Fs,pF=Ph,fF=uF;function Of(t,e){let r=new pF(t,e),n=new fF(r);try{n.parse()}catch(o){throw o.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?o.message+=`
371
- You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?o.message+=`
372
- You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(e.from)&&(o.message+=`
373
- You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),o}return n.root}var av=Of;Of.default=Of;dF.registerParse(Of);let qy=class{constructor(e,r={}){if(this.type="warning",this.text=e,r.node&&r.node.source){let n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in r)this[n]=r[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var XE=qy;qy.default=qy;let hF=XE,Gy=class{get content(){return this.css}constructor(e,r,n){this.processor=e,this.messages=[],this.root=r,this.opts=n,this.css="",this.map=void 0}toString(){return this.css}warn(e,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let n=new hF(e,r);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}};var sv=Gy;Gy.default=Gy;let tC={};var KE=function(e){tC[e]||(tC[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))};let mF=Fs,gF=ov,yF=GE,vF=av,rC=sv,bF=vd,xF=Ch,{isClean:vi,my:wF}=yd,SF=KE;const CF={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},TF={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},EF={Once:!0,postcssPlugin:!0,prepare:!0},Zl=0;function su(t){return typeof t=="object"&&typeof t.then=="function"}function QE(t){let e=!1,r=CF[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,Zl,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,Zl,r+"Exit"]:[r,r+"Exit"]}function nC(t){let e;return t.type==="document"?e=["Document",Zl,"DocumentExit"]:t.type==="root"?e=["Root",Zl,"RootExit"]:e=QE(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function Xy(t){return t[vi]=!1,t.nodes&&t.nodes.forEach(e=>Xy(e)),t}let Ky={},ec=class YE{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,r,n){this.stringified=!1,this.processed=!1;let o;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))o=Xy(r);else if(r instanceof YE||r instanceof rC)o=Xy(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let a=vF;n.syntax&&(a=n.syntax.parse),n.parser&&(a=n.parser),a.parse&&(a=a.parse);try{o=a(r,n)}catch(l){this.processed=!0,this.error=l}o&&!o[wF]&&mF.rebuild(o)}this.result=new rC(e,o,n),this.helpers={...Ky,postcss:Ky,result:this.result},this.plugins=this.processor.plugins.map(a=>typeof a=="object"&&a.prepare?{...a,...a.prepare(this.result)}:a)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,r){let n=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion){let o=n.postcssPlugin,a=n.postcssVersion,l=this.result.processor.version,c=a.split("."),u=l.split(".");(c[0]!==u[0]||parseInt(c[1])>parseInt(u[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+l+", but "+o+" uses "+a+". Perhaps this is the source of the error below.")}}catch(o){console&&console.error&&console.error(o)}return e}prepareVisitors(){this.listeners={};let e=(r,n,o)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([r,o])};for(let r of this.plugins)if(typeof r=="object")for(let n in r){if(!TF[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!EF[n])if(typeof r[n]=="object")for(let o in r[n])o==="*"?e(r,n,r[n][o]):e(r,n+"-"+o.toLowerCase(),r[n][o]);else typeof r[n]=="function"&&e(r,n,r[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let r=this.plugins[e],n=this.runOnRoot(r);if(su(n))try{await n}catch(o){throw this.handleError(o)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[vi];){e[vi]=!0;let r=[nC(e)];for(;r.length>0;){let n=this.visitTick(r);if(su(n))try{await n}catch(o){let a=r[r.length-1].node;throw this.handleError(o,a)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(e.type==="document"){let o=e.nodes.map(a=>n(a,this.helpers));await Promise.all(o)}else await n(e,this.helpers)}catch(o){throw this.handleError(o)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let r=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return su(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(r){throw this.handleError(r)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,r=xF;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let o=new yF(r,this.result.root,this.result.opts).generate();return this.result.css=o[0],this.result.map=o[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let r=this.runOnRoot(e);if(su(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[vi];)e[vi]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let r of e.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,r){return"from"in this.opts||SF("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this.async().then(e,r)}toString(){return this.css}visitSync(e,r){for(let[n,o]of e){this.result.lastPlugin=n;let a;try{a=o(r,this.helpers)}catch(l){throw this.handleError(l,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(su(a))throw this.getAsyncError()}}visitTick(e){let r=e[e.length-1],{node:n,visitors:o}=r;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(o.length>0&&r.visitorIndex<o.length){let[l,c]=o[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===o.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=l;try{return c(n.toProxy(),this.helpers)}catch(u){throw this.handleError(u,n)}}if(r.iterator!==0){let l=r.iterator,c;for(;c=n.nodes[n.indexes[l]];)if(n.indexes[l]+=1,!c[vi]){c[vi]=!0,e.push(nC(c));return}r.iterator=0,delete n.indexes[l]}let a=r.events;for(;r.eventIndex<a.length;){let l=a[r.eventIndex];if(r.eventIndex+=1,l===Zl){n.nodes&&n.nodes.length&&(n[vi]=!0,r.iterator=n.getIterator());return}else if(this.listeners[l]){r.visitors=this.listeners[l];return}}e.pop()}walkSync(e){e[vi]=!0;let r=QE(e);for(let n of r)if(n===Zl)e.nodes&&e.each(o=>{o[vi]||this.walkSync(o)});else{let o=this.listeners[n];if(o&&this.visitSync(o,e.toProxy()))return}}warnings(){return this.sync().warnings()}};ec.registerPostcss=t=>{Ky=t};var JE=ec;ec.default=ec;bF.registerLazyResult(ec);gF.registerLazyResult(ec);let kF=GE,PF=av;const jF=sv;let MF=Ch,RF=KE,Qy=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,r=PF;try{e=r(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,r,n){r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=n,this._map=void 0;let o,a=MF;this.result=new jF(this._processor,o,this._opts),this.result.css=r;let l=this;Object.defineProperty(this.result,"root",{get(){return l.root}});let c=new kF(a,o,this._opts,r);if(c.isMap()){let[u,f]=c.generate();u&&(this.result.css=u),f&&(this.result.map=f)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,r){return"from"in this._opts||RF("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this.async().then(e,r)}toString(){return this._css}warnings(){return[]}};var IF=Qy;Qy.default=Qy;let AF=ov,_F=JE,LF=IF,OF=vd,Gu=class{constructor(e=[]){this.version="8.5.6",this.plugins=this.normalize(e)}normalize(e){let r=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))r=r.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)r.push(n);else if(typeof n=="function")r.push(n);else throw typeof n=="object"&&(n.parse||n.stringify)?new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation."):new Error(n+" is not a PostCSS plugin");return r}process(e,r={}){return!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new LF(this,e,r):new _F(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var NF=Gu;Gu.default=Gu;OF.registerProcessor(Gu);AF.registerProcessor(Gu);let ZE=nv,ek=Eh,$F=Fs,BF=ev,tk=kh,rk=ov,zF=DD,DF=Ph,FF=JE,HF=FE,UF=Th,VF=av,lv=NF,WF=sv,nk=vd,ok=iv,qF=Ch,GF=XE;function or(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new lv(t)}or.plugin=function(e,r){let n=!1;function o(...l){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
374
- https://evilmartians.com/chronicles/postcss-8-plugin-migration`),gS.LANG&&gS.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
375
- https://www.w3ctech.com/topic/2226`));let c=r(...l);return c.postcssPlugin=e,c.postcssVersion=new lv().version,c}let a;return Object.defineProperty(o,"postcss",{get(){return a||(a=o()),a}}),o.process=function(l,c,u){return or([o(u)]).process(l,c)},o};or.stringify=qF;or.parse=VF;or.fromJSON=zF;or.list=HF;or.comment=t=>new ek(t);or.atRule=t=>new ZE(t);or.decl=t=>new tk(t);or.rule=t=>new ok(t);or.root=t=>new nk(t);or.document=t=>new rk(t);or.CssSyntaxError=BF;or.Declaration=tk;or.Container=$F;or.Processor=lv;or.Document=rk;or.Comment=ek;or.Warning=GF;or.AtRule=ZE;or.Result=WF;or.Input=DF;or.Rule=ok;or.Root=nk;or.Node=UF;FF.registerPostcss(or);var XF=or;or.default=or;const KF=XT,oC=Vz,{isPlainObject:QF}=J0,iC=iD,YF=aD,{parse:JF}=XF,ZF=["img","audio","video","picture","svg","object","map","iframe","embed"],eH=["script","style"];function El(t,e){t&&Object.keys(t).forEach(function(r){e(t[r],r)})}function Yi(t,e){return{}.hasOwnProperty.call(t,e)}function aC(t,e){const r=[];return El(t,function(n){e(n)&&r.push(n)}),r}function tH(t){for(const e in t)if(Yi(t,e))return!1;return!0}function rH(t){return t.map(function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")}).join(", ")}var nH=Xu;const oH=/^[^\0\t\n\f\r /<=>]+$/;function Xu(t,e,r){if(t==null)return"";typeof t=="number"&&(t=t.toString());let n="",o="";function a(L,W){const K=this;this.tag=L,this.attribs=W||{},this.tagPosition=n.length,this.text="",this.openingTagLength=0,this.mediaChildren=[],this.updateParentNodeText=function(){if(C.length){const ee=C[C.length-1];ee.text+=K.text}},this.updateParentNodeMediaChildren=function(){C.length&&ZF.includes(this.tag)&&C[C.length-1].mediaChildren.push(this.tag)}}e=Object.assign({},Xu.defaults,e),e.parser=Object.assign({},iH,e.parser);const l=function(L){return e.allowedTags===!1||(e.allowedTags||[]).indexOf(L)>-1};eH.forEach(function(L){l(L)&&!e.allowVulnerableTags&&console.warn(`
376
-
377
- ⚠️ Your \`allowedTags\` option includes, \`${L}\`, which is inherently
378
- vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
379
- Or, to disable this warning, add the \`allowVulnerableTags\` option
380
- and ensure you are accounting for this risk.
381
-
382
- `)});const c=e.nonTextTags||["script","style","textarea","option"];let u,f;e.allowedAttributes&&(u={},f={},El(e.allowedAttributes,function(L,W){u[W]=[];const K=[];L.forEach(function(ee){typeof ee=="string"&&ee.indexOf("*")>=0?K.push(oC(ee).replace(/\\\*/g,".*")):u[W].push(ee)}),K.length&&(f[W]=new RegExp("^("+K.join("|")+")$"))}));const h={},v={},g={};El(e.allowedClasses,function(L,W){if(u&&(Yi(u,W)||(u[W]=[]),u[W].push("class")),h[W]=L,Array.isArray(L)){const K=[];h[W]=[],g[W]=[],L.forEach(function(ee){typeof ee=="string"&&ee.indexOf("*")>=0?K.push(oC(ee).replace(/\\\*/g,".*")):ee instanceof RegExp?g[W].push(ee):h[W].push(ee)}),K.length&&(v[W]=new RegExp("^("+K.join("|")+")$"))}});const y={};let w;El(e.transformTags,function(L,W){let K;typeof L=="function"?K=L:typeof L=="string"&&(K=Xu.simpleTransform(L)),W==="*"?w=K:y[W]=K});let x,C,j,P,M,E,R=!1;F();const I=new KF.Parser({onopentag:function(L,W){if(e.onOpenTag&&e.onOpenTag(L,W),e.enforceHtmlBoundary&&L==="html"&&F(),M){E++;return}const K=new a(L,W);C.push(K);let ee=!1;const Z=!!K.text;let Q;if(Yi(y,L)&&(Q=y[L](L,W),K.attribs=W=Q.attribs,Q.text!==void 0&&(K.innerText=Q.text),L!==Q.tagName&&(K.name=L=Q.tagName,P[x]=Q.tagName)),w&&(Q=w(L,W),K.attribs=W=Q.attribs,L!==Q.tagName&&(K.name=L=Q.tagName,P[x]=Q.tagName)),(!l(L)||e.disallowedTagsMode==="recursiveEscape"&&!tH(j)||e.nestingLimit!=null&&x>=e.nestingLimit)&&(ee=!0,j[x]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&c.indexOf(L)!==-1&&(M=!0,E=1)),x++,ee){if(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){if(K.innerText&&!Z){const ce=A(K.innerText);e.textFilter?n+=e.textFilter(ce,L):n+=ce,R=!0}return}o=n,n=""}n+="<"+L,L==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(K.innerText=""),ee&&(e.disallowedTagsMode==="escape"||e.disallowedTagsMode==="recursiveEscape")&&e.preserveEscapedAttributes?El(W,function(ce,Y){n+=" "+Y+'="'+A(ce||"",!0)+'"'}):(!u||Yi(u,L)||u["*"])&&El(W,function(ce,Y){if(!oH.test(Y)){delete K.attribs[Y];return}if(ce===""&&!e.allowedEmptyAttributes.includes(Y)&&(e.nonBooleanAttributes.includes(Y)||e.nonBooleanAttributes.includes("*"))){delete K.attribs[Y];return}let ne=!1;if(!u||Yi(u,L)&&u[L].indexOf(Y)!==-1||u["*"]&&u["*"].indexOf(Y)!==-1||Yi(f,L)&&f[L].test(Y)||f["*"]&&f["*"].test(Y))ne=!0;else if(u&&u[L]){for(const J of u[L])if(QF(J)&&J.name&&J.name===Y){ne=!0;let de="";if(J.multiple===!0){const Ce=ce.split(" ");for(const me of Ce)J.values.indexOf(me)!==-1&&(de===""?de=me:de+=" "+me)}else J.values.indexOf(ce)>=0&&(de=ce);ce=de}}if(ne){if(e.allowedSchemesAppliedToAttributes.indexOf(Y)!==-1&&H(L,ce)){delete K.attribs[Y];return}if(L==="script"&&Y==="src"){let J=!0;try{const de=G(ce);if(e.allowedScriptHostnames||e.allowedScriptDomains){const Ce=(e.allowedScriptHostnames||[]).find(function(se){return se===de.url.hostname}),me=(e.allowedScriptDomains||[]).find(function(se){return de.url.hostname===se||de.url.hostname.endsWith(`.${se}`)});J=Ce||me}}catch{J=!1}if(!J){delete K.attribs[Y];return}}if(L==="iframe"&&Y==="src"){let J=!0;try{const de=G(ce);if(de.isRelativeUrl)J=Yi(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const Ce=(e.allowedIframeHostnames||[]).find(function(se){return se===de.url.hostname}),me=(e.allowedIframeDomains||[]).find(function(se){return de.url.hostname===se||de.url.hostname.endsWith(`.${se}`)});J=Ce||me}}catch{J=!1}if(!J){delete K.attribs[Y];return}}if(Y==="srcset")try{let J=YF(ce);if(J.forEach(function(de){H("srcset",de.url)&&(de.evil=!0)}),J=aC(J,function(de){return!de.evil}),J.length)ce=rH(aC(J,function(de){return!de.evil})),K.attribs[Y]=ce;else{delete K.attribs[Y];return}}catch{delete K.attribs[Y];return}if(Y==="class"){const J=h[L],de=h["*"],Ce=v[L],me=g[L],se=g["*"],De=v["*"],Ne=[Ce,De].concat(me,se).filter(function(Oe){return Oe});if(J&&de?ce=U(ce,iC(J,de),Ne):ce=U(ce,J||de,Ne),!ce.length){delete K.attribs[Y];return}}if(Y==="style"){if(e.parseStyleAttributes)try{const J=JF(L+" {"+ce+"}",{map:!1}),de=N(J,e.allowedStyles);if(ce=k(de),ce.length===0){delete K.attribs[Y];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+L+" {"+ce+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete K.attribs[Y];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}n+=" "+Y,ce&&ce.length?n+='="'+A(ce,!0)+'"':e.allowedEmptyAttributes.includes(Y)&&(n+='=""')}else delete K.attribs[Y]}),e.selfClosing.indexOf(L)!==-1?n+=" />":(n+=">",K.innerText&&!Z&&!e.textFilter&&(n+=A(K.innerText),R=!0)),ee&&(n=o+A(n),o=""),K.openingTagLength=n.length-K.tagPosition},ontext:function(L){if(M)return;const W=C[C.length-1];let K;if(W&&(K=W.tag,L=W.innerText!==void 0?W.innerText:L),e.disallowedTagsMode==="completelyDiscard"&&!l(K))L="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(K==="script"||K==="style"))n+=L;else if(!R){const ee=A(L,!1);e.textFilter?n+=e.textFilter(ee,K):n+=ee}if(C.length){const ee=C[C.length-1];ee.text+=L}},onclosetag:function(L,W){if(e.onCloseTag&&e.onCloseTag(L,W),M)if(E--,!E)M=!1;else return;const K=C.pop();if(!K)return;if(K.tag!==L){C.push(K);return}M=e.enforceHtmlBoundary?L==="html":!1,x--;const ee=j[x];if(ee){if(delete j[x],e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){K.updateParentNodeText();return}o=n,n=""}if(P[x]&&(L=P[x],delete P[x]),e.exclusiveFilter){const Z=e.exclusiveFilter(K);if(Z==="excludeTag"){ee&&(n=o,o=""),n=n.substring(0,K.tagPosition)+n.substring(K.tagPosition+K.openingTagLength);return}else if(Z){n=n.substring(0,K.tagPosition);return}}if(K.updateParentNodeMediaChildren(),K.updateParentNodeText(),e.selfClosing.indexOf(L)!==-1||W&&!l(L)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){ee&&(n=o,o="");return}n+="</"+L+">",ee&&(n=o+A(n),o=""),R=!1}},e.parser);return I.write(t),I.end(),n;function F(){n="",x=0,C=[],j={},P={},M=!1,E=0}function A(L,W){return typeof L!="string"&&(L=L+""),e.parser.decodeEntities&&(L=L.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),W&&(L=L.replace(/"/g,"&quot;"))),L=L.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),W&&(L=L.replace(/"/g,"&quot;")),L}function H(L,W){for(W=W.replace(/[\x00-\x20]+/g,"");;){const Z=W.indexOf("<!--");if(Z===-1)break;const Q=W.indexOf("-->",Z+4);if(Q===-1)break;W=W.substring(0,Z)+W.substring(Q+3)}const K=W.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!K)return W.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const ee=K[1].toLowerCase();return Yi(e.allowedSchemesByTag,L)?e.allowedSchemesByTag[L].indexOf(ee)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(ee)===-1}function G(L){if(L=L.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),L.startsWith("relative:"))throw new Error("relative: exploit attempt");let W="relative://relative-site";for(let Z=0;Z<100;Z++)W+=`/${Z}`;const K=new URL(L,W);return{isRelativeUrl:K&&K.hostname==="relative-site"&&K.protocol==="relative:",url:K}}function N(L,W){if(!W)return L;const K=L.nodes[0];let ee;return W[K.selector]&&W["*"]?ee=iC(W[K.selector],W["*"]):ee=W[K.selector]||W["*"],ee&&(L.nodes[0].nodes=K.nodes.reduce(q(ee),[])),L}function k(L){return L.nodes[0].nodes.reduce(function(W,K){return W.push(`${K.prop}:${K.value}${K.important?" !important":""}`),W},[]).join(";")}function q(L){return function(W,K){return Yi(L,K.prop)&&L[K.prop].some(function(Z){return Z.test(K.value)})&&W.push(K),W}}function U(L,W,K){return W?(L=L.split(/\s+/),L.filter(function(ee){return W.indexOf(ee)!==-1||K.some(function(Z){return Z.test(ee)})}).join(" ")):L}}const iH={decodeEntities:!0};Xu.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","menu","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0,preserveEscapedAttributes:!1};Xu.simpleTransform=function(t,e,r){return r=r===void 0?!0:r,e=e||{},function(n,o){let a;if(r)for(a in e)o[a]=e[a];else o=e;return{tagName:t,attribs:o}}};var ik=OB(nH);let Ku=class extends lr{};_([B(),z({field_type:$.TEXTAREA,label:"HTML Content",description:"HTML content to be safely rendered after sanitization",placeholder:"<p>Enter HTML content...</p>"}),V(),ie(),D("design:type",String)],Ku.prototype,"html",void 0);_([B(),z({field_type:$.TEXT,label:"Placeholder Text",description:"Text to display when no HTML content is available",placeholder:"Loading..."}),V(),ie(),D("design:type",String)],Ku.prototype,"placeholder",void 0);Ku=_([Nt("SafeSpan","1.0.0")],Ku);var aH=Ku;function cv(t){const{html:e,placeholder:r,...n}=t,{styleProps:o,htmlProps:a}=kn(n);cv[Nn]=!0;const c=e?ik(e,{allowedTags:["p","br","strong","em","u","span","div","h1","h2","h3","h4","h5","h6","ul","ol","li","blockquote","pre","code","a","img"],allowedAttributes:{a:["href","title","target"],img:["src","alt","title","width","height"],span:["style","class"],div:["style","class"],p:["style","class"]},allowedSchemes:["http","https","mailto"],disallowedTagsMode:"discard",allowedSchemesByTag:{a:["http","https","mailto"],img:["http","https"]},transformTags:{a:function(u,f){return f.href&&(f.href.startsWith("http://")||f.href.startsWith("https://"))?{tagName:"a",attribs:{...f,rel:"noopener noreferrer",target:"_blank"}}:{tagName:u,attribs:f}}}}):"";return!c&&!r?null:!c&&r?d.jsx("span",{...a,...o,children:r}):d.jsx("span",{...a,...o,dangerouslySetInnerHTML:{__html:c}})}class yo extends zs{getComponentSpecificProps(){return{html:this.props.html,placeholder:this.props.placeholder}}renderView(){const{...e}=this.props;return d.jsx(cv,{...e})}renderWithDataBinding(){return d.jsx(sH,{...this.props})}static registerPatternHandlers(e){e.hasPattern("span.safe-content")||e.registerPattern("span.safe-content",yo.transformSafeSpan),e.hasPattern("span[data-safe]")||e.registerPattern("span[data-safe]",yo.transformSafeSpan)}static transformSafeSpan(e){const r=e.getAttribute("data-placeholder");return{tagName:"SafeSpan",props:{html:e.innerHTML,placeholder:r||void 0}}}}yo.tagName="SafeSpan";yo.version="1.0.0";function sH(t){const{dataSource:e,bindingOptions:r,...n}=t,{loading:o,error:a,...l}=Oi(e,n,aH.getSchema(),{...r});return o?d.jsx("span",{children:"Loading..."}):a?(console.error("Error loading safe span:",a),d.jsxs("span",{children:["Error Loading Content: ",a.message]})):d.jsx(cv,{...l})}function lH({label:t,value:e="",onChange:r,onFocus:n,required:o=!1,disabled:a=!1,error:l,helperText:c,placeholder:u,rows:f=4,maxLength:h,showPreview:v=!0,showHelp:g=!1,...y}){const[w,x]=S.useState(!1),[C,j]=S.useState(!1),P=R=>{r==null||r(R.target.value)},M=(R,I=!0)=>{if(a)return;const F=document.activeElement;if(!F||F.tagName!=="TEXTAREA")return;const A=F.selectionStart,H=F.selectionEnd,G=e.substring(A,H);let N="";I?N=`<${R}>${G}</${R}>`:N=`<${R}>`;const k=e.substring(0,A)+N+e.substring(H);r==null||r(k),setTimeout(()=>{if(I&&!G){const q=A+R.length+2;F.setSelectionRange(q,q)}},0)},E=ik(e||"",{allowedTags:["b","i","u","strong","em","p","br","code","pre","span","div"],allowedAttributes:{"*":["style","class"]}});return d.jsxs(fe,{...y,children:[d.jsxs(fe,{sx:{display:"flex",alignItems:"center",mb:1,flexWrap:"wrap",gap:1},children:[d.jsxs(Ee,{variant:"body2",color:"text.secondary",children:[t,o&&d.jsx("span",{style:{color:"error.main"},children:" *"})]}),d.jsx(fe,{sx:{flexGrow:1}}),d.jsxs(X_,{size:"small",disabled:a||w,children:[d.jsx(Zr,{title:"Bold",children:d.jsx(ur,{onClick:()=>M("b"),children:d.jsx(B9,{})})}),d.jsx(Zr,{title:"Italic",children:d.jsx(ur,{onClick:()=>M("i"),children:d.jsx(z9,{})})}),d.jsx(Zr,{title:"Underline",children:d.jsx(ur,{onClick:()=>M("u"),children:d.jsx(D9,{})})}),d.jsx(Zr,{title:"Code",children:d.jsx(ur,{onClick:()=>M("code"),children:d.jsx(PT,{})})})]}),v&&d.jsx(Zr,{title:w?"Edit Mode":"Preview Mode",children:d.jsx(ur,{onClick:()=>x(!w),disabled:a,children:w?d.jsx(NT,{}):d.jsx(OT,{})})}),g&&d.jsx(Zr,{title:"HTML Help",children:d.jsx(ur,{onClick:()=>j(!C),children:d.jsx(IT,{})})})]}),d.jsx(xf,{in:C,children:d.jsx(Tn,{severity:"info",sx:{mb:2},children:d.jsx(Ee,{variant:"body2",children:"Supported HTML tags: <b>, <i>, <u>, <strong>, <em>, <p>, <br>, <code>, <pre>"})})}),w?d.jsx(fe,{sx:{border:1,borderColor:"divider",borderRadius:1,p:2,minHeight:f*24,backgroundColor:"background.paper"},children:d.jsx(yo,{html:E,placeholder:"No content to preview"})}):d.jsx(un,{fullWidth:!0,multiline:!0,rows:f,value:e,onChange:P,onFocus:n,placeholder:u,disabled:a,error:!!l,helperText:l||c||(h?`${e.length}/${h}`:void 0),inputProps:{maxLength:h},sx:{"& .MuiInputBase-input":{fontFamily:"monospace",fontSize:"0.875rem"}}})]})}const ak=io({tagName:"HtmlInputField",version:"1.0.0",role:"view",View:lH});function cH({label:t="Options",options:e=[],onOptionChange:r,onAddOption:n,onChoiceFieldFocus:o,disabled:a=!1,placeholder:l="Enter option text. HTML formatting supported.",optionLabelPrefix:c="Option",rows:u=2,maxOptions:f=10,...h}){const v=w=>x=>{r==null||r(w,x)},g=w=>()=>{o==null||o(w)},y=()=>{e.length<f&&(n==null||n())};return d.jsxs(fe,{...h,children:[d.jsx(Ee,{variant:"h6",gutterBottom:!0,children:t}),e.length===0&&d.jsx(Tn,{severity:"info",sx:{mb:2},children:'No options added yet. Click "Add Option" to get started.'}),e.map((w,x)=>d.jsx(fe,{sx:{mb:2},children:d.jsx(ak,{label:`${c} ${x+1}`,value:w,onChange:v(x),onFocus:g(x),placeholder:l,rows:u,disabled:a,showPreview:!0,showHelp:!1})},x)),e.length<f&&d.jsx($u,{variant:"outlined",startIcon:d.jsx(TT,{}),onClick:y,disabled:a,sx:{mt:1},children:"Add Option"}),e.length>=f&&d.jsxs(Ee,{variant:"caption",color:"text.secondary",sx:{display:"block",mt:1},children:["Maximum number of options (",f,") reached."]})]})}const uH=io({tagName:"ChoiceInputField",version:"1.0.0",role:"view",View:cH});class jh{}_([B(),z({field_type:$.TEXT,label:"Option Value",description:"The value for this option"}),ie(),D("design:type",Object)],jh.prototype,"value",void 0);_([B(),z({field_type:$.TEXT,label:"Option Label",description:"The display text for this option"}),V(),ie(),D("design:type",String)],jh.prototype,"label",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Disabled",description:"Whether this option is disabled"}),V(),_t(),D("design:type",Boolean)],jh.prototype,"disabled",void 0);let Ri=class extends mt{};_([B(),z({field_type:$.TEXT,label:"Field Label",description:"The label text displayed for this select field",placeholder:"Enter field label..."}),V(),ie(),D("design:type",String)],Ri.prototype,"label",void 0);_([B(),z({field_type:$.TEXT,label:"Selected Value",description:"The currently selected value"}),V(),ie(),D("design:type",Object)],Ri.prototype,"value",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Select Options",description:"Array of options available in the dropdown (JSON format)"}),V(),nn(),ro({each:!0}),oo(()=>jh),D("design:type",Array)],Ri.prototype,"options",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Required",description:"Whether this field is required"}),V(),_t(),D("design:type",Boolean)],Ri.prototype,"required",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Disabled",description:"Whether this field is disabled"}),V(),_t(),D("design:type",Boolean)],Ri.prototype,"disabled",void 0);_([B(),z({field_type:$.TEXT,label:"Error Message",description:"Error message to display when field validation fails",placeholder:"Error message..."}),V(),ie(),D("design:type",String)],Ri.prototype,"error",void 0);_([B(),z({field_type:$.TEXT,label:"Helper Text",description:"Additional helpful text displayed below the field",placeholder:"Helper text..."}),V(),ie(),D("design:type",String)],Ri.prototype,"helperText",void 0);_([B(),z({field_type:$.TEXT,label:"Placeholder Text",description:"Placeholder text shown when no value is selected",placeholder:"Select an option..."}),V(),ie(),D("design:type",String)],Ri.prototype,"placeholder",void 0);Ri=_([Nt("SelectInputField","1.0.0")],Ri);function dH({label:t,value:e="",onChange:r,onFocus:n,options:o=[],required:a=!1,disabled:l=!1,error:c,helperText:u,placeholder:f,...h}){const v=ne=>{r&&r(ne.target.value)},{margin:g,padding:y,paddingX:w,paddingY:x,paddingTop:C,paddingRight:j,paddingBottom:P,paddingLeft:M,width:E,height:R,minWidth:I,maxWidth:F,minHeight:A,maxHeight:H,sx:G,style:N,span:k,xs:q,sm:U,md:L,lg:W,xl:K,background:ee,backgroundImage:Z,backgroundGradient:Q,textAlign:X,className:re,...ce}=h,Y=t?`select-label-${t.toLowerCase().replace(/\s+/g,"-")}`:void 0;return d.jsxs(za,{fullWidth:!0,required:a,disabled:l,error:!!c,sx:G,style:N,className:re,...ce,children:[t&&d.jsx(Vl,{id:Y,children:t}),d.jsxs(Ms,{labelId:Y,label:t,value:e,onChange:v,onFocus:n,displayEmpty:!!f,children:[f&&d.jsx(cn,{value:"",disabled:!0,children:d.jsx("em",{children:f})}),o.map((ne,J)=>d.jsx(cn,{value:ne.value,disabled:ne.disabled,children:ne.label},`${ne.value}-${J}`))]}),(c||u)&&d.jsx(cc,{children:c||u})]})}const pH=io({tagName:"SelectInputField",version:"1.0.0",role:"view",View:dH});function fH({label:t,checked:e=!1,onChange:r,onFocus:n,required:o=!1,disabled:a=!1,error:l,helperText:c,...u}){const f=re=>{r==null||r(re.target.checked)},{margin:h,padding:v,paddingX:g,paddingY:y,paddingTop:w,paddingRight:x,paddingBottom:C,paddingLeft:j,width:P,height:M,minWidth:E,maxWidth:R,minHeight:I,maxHeight:F,sx:A,style:H,span:G,xs:N,sm:k,md:q,lg:U,xl:L,background:W,backgroundImage:K,backgroundGradient:ee,textAlign:Z,className:Q,...X}=u;return d.jsxs(za,{component:"fieldset",error:!!l,disabled:a,sx:A,style:H,className:Q,...X,children:[d.jsx(Z2,{control:d.jsx(LN,{checked:e,onChange:f,onFocus:n,required:o,disabled:a}),label:t}),(l||c)&&d.jsx(cc,{children:l||c})]})}const hH=io({tagName:"SwitchInputField",version:"1.0.0",role:"view",View:fH});function mH({label:t,value:e="",onChange:r,onFocus:n,required:o=!1,disabled:a=!1,error:l,helperText:c,placeholder:u,type:f="text",multiline:h=!1,rows:v,maxRows:g,textFieldProps:y,...w}){const x=Ce=>{r==null||r(Ce.target.value)},{margin:C,padding:j,paddingX:P,paddingY:M,paddingTop:E,paddingRight:R,paddingBottom:I,paddingLeft:F,width:A,height:H,minWidth:G,maxWidth:N,minHeight:k,maxHeight:q,sx:U,style:L,span:W,xs:K,sm:ee,md:Z,lg:Q,xl:X,background:re,backgroundImage:ce,backgroundGradient:Y,textAlign:ne,className:J,...de}=w;return d.jsx(un,{...de,fullWidth:!0,label:t,value:e,onChange:x,onFocus:n,required:o,disabled:a,error:!!l,helperText:l||c,placeholder:u,type:f,multiline:h,rows:v,maxRows:g,sx:U,style:L,className:J,...y})}const gH=io({tagName:"TextInputField",version:"1.0.0",role:"view",View:mH});function yH({children:t,gridProps:e,...r}){const n=e;return d.jsx(fe,{...r,...n?{"data-grid-span":n.span,"data-grid-xs":n.xs,"data-grid-sm":n.sm,"data-grid-md":n.md,"data-grid-lg":n.lg,"data-grid-xl":n.xl}:{},children:t})}const vH=io({tagName:"GridCell",version:"1.0.0",role:"container",View:yH});function bH({children:t,columns:e,spacing:r="small",equalHeight:n=!1,height:o,width:a,minHeight:l,minWidth:c,maxHeight:u,maxWidth:f,gridProps:h,...v}){const g=In(r),y=()=>Mt.Children.toArray(t).map((x,C)=>{if(!Mt.isValidElement(x))return x;let j={};const P=x.props,M=P["data-grid-span"]||P.span,E=P["data-grid-xs"]||P.xs,R=P["data-grid-sm"]||P.sm,I=P["data-grid-md"]||P.md,F=P["data-grid-lg"]||P.lg,A=P["data-grid-xl"]||P.xl;if(M||E||R||I||F||A)if(M)j={size:M};else{const H={};E&&(H.xs=E),R&&(H.sm=R),I&&(H.md=I),F&&(H.lg=F),A&&(H.xl=A),j={size:H}}if(e&&Object.keys(j).length===0&&(j={size:{xs:12,sm:e>=3?6:12/Math.min(e,2),md:12/Math.min(e,3),lg:12/e}}),Object.keys(j).length>0){const H={...x.props};return delete H["data-grid-span"],delete H["data-grid-xs"],delete H["data-grid-sm"],delete H["data-grid-md"],delete H["data-grid-lg"],delete H["data-grid-xl"],d.jsx(Ln,{...j,children:Mt.cloneElement(x,H)},x.key||C)}return d.jsx(Mt.Fragment,{children:x},x.key||C)});return d.jsx(Ln,{container:!0,spacing:g,...v,...h?{"data-grid":JSON.stringify(h)}:{},sx:{width:"100%",height:Ao(o,"height"),minHeight:Ao(l,"minHeight"),minWidth:Ao(c,"minWidth"),maxHeight:Ao(u,"maxHeight"),maxWidth:Ao(f,"maxWidth"),...a&&{width:Ao(a,"width")},...n&&{alignItems:"stretch","& > .MuiGrid-root":{display:"flex","& > *":{width:"100%",height:"100%"}}},...v.sx},children:y()})}const uv=io({tagName:"GridLayout",version:"1.0.0",role:"container",View:bH});let tc=class extends lr{};_([B(),z({field_type:$.TEXTAREA,label:"HTML Content",description:"HTML content to be transformed into React components",placeholder:"<p>Enter HTML content...</p>"}),V(),ie(),D("design:type",String)],tc.prototype,"children",void 0);_([B(),z({field_type:$.CHECKBOX,label:"Strip Headers",description:"Whether to remove header elements (h1-h6) from the HTML"}),V(),_t(),D("design:type",Boolean)],tc.prototype,"stripHeaders",void 0);_([B(),z({field_type:$.TEXT,label:"Placeholder",description:"Fallback content to display when HTML is empty",placeholder:"No content available"}),V(),ie(),D("design:type",String)],tc.prototype,"placeholder",void 0);tc=_([Nt("Html","1.0.0")],tc);var xH=tc;function dv({children:t="",stripHeaders:e=!1,placeholder:r,component:n="div",...o}){const{styleProps:a,htmlProps:l,restProps:c}=kn(o);if(dv[Nn]=!0,!t||!t.trim())return r?d.jsx(fe,{component:n,...l,...a,...c,sx:{opacity:.6,fontStyle:"italic",...a.sx},children:r}):null;try{let u=t;e&&(u=u.replace(/<h[1-6][^>]*>.*?<\/h[1-6]>/gi,""));const f=Jr.transformHTML(u);return d.jsx(fe,{component:n,...l,...a,...c,sx:{"& > *:not(:last-child)":{mb:1.5},"& h1, & h2, & h3, & h4, & h5, & h6":{mb:1.5,mt:2,"&:first-of-type":{mt:0}},"& p":{mb:1.5,lineHeight:1.6},"& ul, & ol":{mb:1.5,pl:3},...a.sx},children:f})}catch(u){return console.error("Error transforming HTML content:",u),d.jsxs(fe,{component:n,...l,...a,...c,sx:{p:2,border:"1px solid red",borderRadius:1,backgroundColor:"rgba(255, 0, 0, 0.1)",...a.sx},children:[d.jsx("strong",{children:"HTML Transform Error:"})," ",u instanceof Error?u.message:"Unknown error",d.jsx(yo,{html:t,placeholder:"Failed to transform HTML"})]})}}class _o extends zs{static fromJson(e){const{tagName:r,version:n,data:o}=e;if(r!==_o.tagName)throw new Error(`Cannot deserialize: Expected tagName 'Html' but got '${r}'`);n!==_o.version&&console.warn(`Version mismatch: Expected ${_o.version} but got ${n}`);const{children:a,...l}=o||{};return d.jsx(_o,{...l,children:Jr.deserialize(a)})}getComponentSpecificProps(){return{children:this.props.children,stripHeaders:this.props.stripHeaders,placeholder:this.props.placeholder}}renderView(){const{...e}=this.props;return d.jsx(dv,{...e})}renderWithDataBinding(){return d.jsx(wH,{...this.props})}static registerPatternHandlers(e){e.hasPattern("div.html-content")||e.registerPattern("div.html-content",_o.transformHtmlDiv),e.hasPattern("[data-html]")||e.registerPattern("[data-html]",_o.transformDataHtml)}static transformHtmlDiv(e){const r=e.getAttribute("data-strip-headers")==="true",n=e.getAttribute("data-placeholder");return{tagName:"Html",props:{children:e.innerHTML,stripHeaders:r,placeholder:n||void 0}}}static transformDataHtml(e){const r=e.getAttribute("data-html")||e.innerHTML,n=e.getAttribute("data-strip-headers")==="true",o=e.getAttribute("data-placeholder");return{tagName:"Html",props:{children:r,stripHeaders:n,placeholder:o||void 0}}}}_o.tagName="Html";_o.version="1.0.0";function wH(t){const{dataSource:e,bindingOptions:r,...n}=t,{loading:o,error:a,...l}=Oi(e,n,xH.getSchema(),{...r});return o?d.jsx(fe,{sx:{p:2,textAlign:"center",opacity:.6},children:"Loading HTML content..."}):a?(console.error("Error loading HTML content:",a),d.jsxs(fe,{sx:{p:2,border:"1px solid red",borderRadius:1,backgroundColor:"rgba(255, 0, 0, 0.1)"},children:[d.jsx("strong",{children:"Error Loading HTML:"})," ",a.message]})):d.jsx(dv,{...l})}class fo{static serialize(e){var r,n;if(e==null)return null;if(Array.isArray(e))return{type:"array",children:e.map(o=>fo.serialize(o))};if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return{type:"primitive",value:e};if(S.isValidElement(e)){const o=e,a=o.type,l=typeof a=="string"?a:((r=a==null?void 0:a.render)==null?void 0:r.name)||(a==null?void 0:a.name)||(a==null?void 0:a.muiName)||(a==null?void 0:a.displayName)||"Anonymous";return{type:"react-element",elementType:typeof l=="string"?((n=l.match(/^[A-Za-z]+?\(([^)]+)\)$/))==null?void 0:n[1])||l:"Anonymous",props:fo.serializeProps(o.props),key:o.key}}if(typeof e=="object"&&e!==null)try{const o={type:"object",data:{}};for(const[a,l]of Object.entries(e))o.data[a]=fo.serialize(l);return o}catch{return{type:"string",value:String(e)}}return{type:"string",value:String(e)}}static deserialize(e){var r;if(e==null)return null;if(typeof e=="object"&&e.type)switch(e.type){case"primitive":return e.value;case"string":return e.value;case"array":return((r=e.children)==null?void 0:r.map(n=>fo.deserialize(n)))||[];case"react-element":return fo.deserializeReactElement(e);case"object":{const n={};if(e.data&&typeof e.data=="object")for(const[o,a]of Object.entries(e.data))n[o]=fo.deserialize(a);return n}default:return String(e.value||e)}return typeof e=="string"||typeof e=="number"||typeof e=="boolean"?e:String(e)}static serializeProps(e){if(!e||typeof e!="object")return e;const r={};for(const[n,o]of Object.entries(e))n==="children"?r[n]=fo.serialize(o):typeof o=="function"?r[n]=null:r[n]=o;return r}static deserializeReactElement(e){const r=e,{elementType:n,props:o,key:a}=r;try{if(typeof n=="string"){const l=fo.deserializeProps(o);return S.createElement(n,{key:a,...l})}}catch(l){console.warn("Error deserializing React element:",l)}return S.createElement(_o,{key:a,children:o.children})}static deserializeProps(e){if(!e||typeof e!="object")return e;const r={};for(const[n,o]of Object.entries(e))n==="children"?r[n]=fo.deserialize(o):r[n]=o;return r}static extractTextContent(e){return e?typeof e.children=="string"?e.children:e.title&&typeof e.title=="string"?e.title:e.label&&typeof e.label=="string"?e.label:e.text&&typeof e.text=="string"?e.text:null:null}}const mi=new Map,ys=new Map;let Cl=!0;const SH="__react_node__",CH="1.0.0";let Jr=class An{static setStrictMode(e){Cl=e}static isStrictMode(){return Cl}static registerComponent(e){const{tagName:r,version:n}=e;if(!r||typeof r!="string")throw new Error("Component class must have a static 'tagName' property");if(!n||typeof n!="string")throw new Error(`Component class '${r}' must have a static 'version' property`);if(typeof e.fromJson!="function")throw new Error(`Component class '${r}' must implement static 'fromJson' method`);mi.has(r)&&console.warn(`Component '${r}' is already registered. Overwriting existing registration.`),mi.set(r,e);const o=e;typeof o.registerPatternHandlers=="function"&&o.registerPatternHandlers(An)}static serialize(e){const r=An.serializeNode(e);return JSON.stringify(r)}static deserialize(e){if(typeof e=="string")try{const r=JSON.parse(e);return An.deserializeData(r)}catch{return e}return e==null?null:An.deserializeData(e)}static isSerializedComponent(e){return!!e&&typeof e=="object"&&typeof e.tagName=="string"&&typeof e.version=="string"&&"data"in e}static deserializeData(e){if(e==null)return null;if(Array.isArray(e))return e.map(r=>An.deserializeData(r));if(An.isSerializedComponent(e)){const{key:r,tagName:n,data:o}=e;try{const a=mi.get(n);if(!a){if(Cl)throw new Error(`Component '${n}' is not registered in strict mode`);const c=An.deserializeUnregisteredComponent(o);return r?Mt.cloneElement(c,{key:r}):c}const l=a.fromJson(e);return r?Mt.cloneElement(l,{key:r}):l}catch(a){if(Cl)throw a;console.error(`TEST: Error deserializing component '${n}':`,a)}}if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;console.warn("TEST: Unrecognized data:",e);{const r=typeof e=="object"?JSON.stringify(e,null,2):String(e);return Mt.createElement(yo,{html:`<pre>${r}</pre>`})}}static serializeNode(e){if(e==null)return null;if(Array.isArray(e))return e.map(n=>An.serializeNode(n));if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="object"&&"type"in e){const n=e,o=n.key?{key:String(n.key)}:{},a=n.type;if(typeof a=="function"){const l=An.findTagNameForComponent(a);if(l){const c=mi.get(l);let u=null;const f=c;if(typeof f.toJson=="function"&&(u=f.toJson(n.props)),u!==null)return u.data&&u.data.children!==void 0&&(u.data.children=An.serializeNode(u.data.children)),{...o,...u}}else if(Cl){const c=a,u=c.displayName||c.name||"Unknown";throw new Error(`Unregistered component '${u}' cannot be serialized in strict mode`)}}}if(Cl)throw new Error(`Cannot serialize unregistered node in strict mode: ${typeof e=="object"&&e&&"type"in e?e.type:typeof e}`);return{tagName:SH,version:CH,data:fo.serialize(e)}}static deserializeUnregisteredComponent(e){return fo.deserialize(e)}static findTagNameForComponent(e){for(const[o,a]of mi.entries())if(a===e)return o;const r=e==null?void 0:e.tagName;if(typeof r=="string"&&mi.has(r))return r;const n=(e==null?void 0:e.displayName)||(e==null?void 0:e.name);if(n){const o=n.replace(/^[A-Za-z]+?\(([^)]+)\)$/,"$1").replace(/WithDataBinding$/,"");if(mi.has(o))return o;if(mi.has(n))return n}return null}static getRegisteredComponents(){return Array.from(mi.keys())}static clearRegistry(){mi.clear(),ys.clear()}static registerPattern(e,r){ys.has(e)&&console.warn(`Pattern '${e}' is already registered. Overwriting existing handler.`),ys.set(e,r)}static hasPattern(e){return ys.has(e)}static transformHTMLElement(e){for(const[r,n]of ys)if(e.matches(r))try{const o=n(e);return An.deserialize(o)}catch(o){return console.warn(`Error transforming element with pattern '${r}':`,o),null}return null}static transformHTML(e){if(!e.trim())return[];const n=new DOMParser().parseFromString(e,"text/html");return Array.from(n.body.children).map((o,a)=>An.transformElement(o,`element-${a}`))}static transformElement(e,r){const n=An.transformHTMLElement(e);if(n)return n;const o=Array.from(e.children);if(o.some(l=>Array.from(ys.keys()).some(c=>l.matches(c)))){const l=o.map((c,u)=>An.transformElement(c,`${r}-${u}`));return Mt.createElement(e.tagName.toLowerCase(),{key:r,className:e.className||void 0,id:e.id||void 0},l)}return fo.deserialize({type:"react-element",elementType:e.tagName.toLowerCase(),props:{key:r,className:e.className||void 0,id:e.id||void 0,dangerouslySetInnerHTML:{__html:e.innerHTML}}})}static getRegisteredPatterns(){return Array.from(ys.keys())}};function TH(){Jr.registerComponent(fB),Jr.registerComponent(_l),Jr.registerComponent(Ll),Jr.registerComponent(Mr),Jr.registerComponent(WT),Jr.registerComponent(At),Jr.registerComponent(wB),Jr.registerComponent(uv),Jr.registerComponent(vH),Jr.registerComponent(gH),Jr.registerComponent(pH),Jr.registerComponent(ak),Jr.registerComponent(uH),Jr.registerComponent(hH),Jr.registerComponent(pc)}TH();let Qu=class extends lr{};_([B(),z({field_type:$.TEXTAREA,label:"HTML Content",description:"Raw HTML content to transform and render",placeholder:"Enter HTML content..."}),ie(),V(),D("design:type",String)],Qu.prototype,"html",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Skip Header",description:"Skip/remove header elements before rendering"}),V(),D("design:type",Boolean)],Qu.prototype,"skipHeader",void 0);Qu=_([Nt("Article","1.0.0")],Qu);var EH=Qu;function pv({html:t="",skipHeader:e=!1,...r}){const{styleProps:n,htmlProps:o,restProps:a}=kn(r);return pv[Nn]=!0,t.trim()?d.jsx(_o,{component:"article",stripHeaders:e,placeholder:"No content available",...o,...a,...n,maxWidth:"900px",mx:"auto",px:{xs:2,sm:3,md:4},py:{xs:3,md:5},"& h1, & h2, & h3, & h4, & h5, & h6":{fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',fontWeight:700,letterSpacing:"-0.02em",color:"var(--theme-text)",scrollMarginTop:"100px","&:first-of-type":{mt:0}},"& h1":{fontSize:{xs:"2rem",md:"2.75rem"},lineHeight:1.15,mb:3,mt:5},"& h2":{fontSize:{xs:"1.5rem",md:"2rem"},lineHeight:1.25,mb:2.5,mt:5,pb:1.5,borderBottom:"1px solid var(--theme-border-lighter)"},"& h3":{fontSize:{xs:"1.25rem",md:"1.5rem"},lineHeight:1.3,mb:2,mt:4},"& h4":{fontSize:{xs:"1.1rem",md:"1.25rem"},lineHeight:1.4,mb:1.5,mt:3,color:"var(--theme-text)",fontWeight:600},"& p":{fontSize:{xs:"1rem",md:"1.0625rem"},lineHeight:1.75,mb:2,color:"var(--theme-text)",fontFamily:'Georgia, "Times New Roman", serif',"&:last-child":{mb:0}},"& ul, & ol":{mb:3,pl:{xs:3,md:4},"& li":{mb:1.25,lineHeight:1.7,fontSize:{xs:"1rem",md:"1.0625rem"},color:"var(--theme-text)",fontFamily:'Georgia, "Times New Roman", serif',"&::marker":{color:"var(--theme-primary)",fontWeight:600},"& p":{mb:.5}},"& ul, & ol":{mt:1,mb:0}},"& pre":{backgroundColor:"var(--theme-surface-elevated)",color:"var(--theme-text)",borderRadius:"var(--theme-border-radius)",p:{xs:2,md:3},mb:3,overflow:"auto",fontSize:"0.9rem",lineHeight:1.6,fontFamily:'"Fira Code", "Cascadia Code", "SF Mono", Monaco, Consolas, monospace',border:"1px solid var(--theme-border-light)",boxShadow:"var(--theme-elevation-2)","& code":{backgroundColor:"transparent",color:"inherit",padding:0,fontSize:"inherit",fontFamily:"inherit"}},"& code":{backgroundColor:"var(--theme-code-bg)",color:"var(--theme-error)",padding:"0.2em 0.4em",borderRadius:"var(--theme-border-radius-small)",fontSize:"0.9em",fontFamily:'"Fira Code", "Cascadia Code", "SF Mono", Monaco, Consolas, monospace',fontWeight:500},"& blockquote":{borderLeft:"4px solid var(--theme-primary)",backgroundColor:"var(--theme-surface-variant)",borderRadius:"0 var(--theme-border-radius-small) var(--theme-border-radius-small) 0",pl:3,pr:3,py:2.5,my:4,ml:0,mr:0,"& p":{fontSize:{xs:"1.05rem",md:"1.125rem"},fontStyle:"italic",lineHeight:1.6,mb:1.5,color:"var(--theme-text)","&:last-child":{mb:0}},"& cite":{display:"block",fontSize:"0.9rem",fontStyle:"normal",fontWeight:500,color:"var(--theme-text)",mt:1,"&::before":{content:'"— "',color:"var(--theme-primary)"}}},"& table":{width:"100%",borderCollapse:"separate",borderSpacing:0,mb:3,fontSize:"0.95rem",overflow:"hidden",borderRadius:"var(--theme-border-radius-small)",border:"1px solid var(--theme-border-light)","& thead":{backgroundColor:"var(--theme-surface-variant)","& th":{padding:"12px 16px",textAlign:"left",fontWeight:600,color:"var(--theme-text)",borderBottom:"2px solid var(--theme-border-main)",fontSize:"0.875rem",textTransform:"uppercase",letterSpacing:"0.05em"}},"& tbody":{"& tr":{borderBottom:"1px solid var(--theme-border-lighter)",transition:"background-color 0.2s ease","&:hover":{backgroundColor:"var(--theme-surface-variant)"},"&:last-child":{borderBottom:"none"}},"& td":{padding:"12px 16px",color:"var(--theme-text)",lineHeight:1.6}}},"& strong":{fontWeight:700,color:"var(--theme-text)"},"& em":{fontStyle:"italic",color:"var(--theme-text)"},"& a":{color:"var(--theme-primary)",textDecoration:"none",fontWeight:500,borderBottom:"1px solid transparent",transition:"border-color 0.2s ease","&:hover":{borderBottomColor:"var(--theme-primary)"},"&:focus-visible":{outline:"2px solid var(--theme-primary)",outlineOffset:"2px",borderRadius:"2px"}},"& img":{maxWidth:"100%",height:"auto",borderRadius:"var(--theme-border-radius-small)",display:"block",my:3},"& figure":{margin:"3rem 0","& img":{maxWidth:"100%",height:"auto",borderRadius:"var(--theme-border-radius-small)",boxShadow:"var(--theme-elevation-2)"},"& figcaption":{textAlign:"center",fontSize:"0.875rem",color:"var(--theme-text)",mt:1.5,fontStyle:"italic"}},"& hr":{border:"none",borderTop:"1px solid var(--theme-border-light)",my:5},...n.sx,children:t}):d.jsxs(fe,{component:"article",...o,...n,sx:{maxWidth:"800px",mx:"auto",p:4,textAlign:"center",opacity:.6,...n.sx},children:[d.jsx(Ee,{variant:"h6",color:"var(--theme-text)",children:"No Content Available"}),d.jsx(Ee,{variant:"body2",color:"var(--theme-text)",children:"No HTML content provided for this article"})]})}class Mh extends zs{getComponentSpecificProps(){return{html:this.props.html,skipHeader:this.props.skipHeader}}renderView(){const{...e}=this.props;return d.jsx(pv,{...e})}renderWithDataBinding(){return d.jsx(kH,{...this.props})}static registerPatternHandlers(e){e.hasPattern("article")||e.registerPattern("article",Mh.transformArticle)}static transformArticle(e){const r=e.getAttribute("data-skip-header")==="true";return{tagName:"Article",props:{html:e.innerHTML,skipHeader:r}}}}Mh.tagName="Article";Mh.version="1.0.0";function kH(t){const{dataSource:e,bindingOptions:r,...n}=t,{loading:o,error:a,...l}=Oi(e,n,EH.getSchema(),{...r});return o?d.jsxs(fe,{component:"article",sx:{maxWidth:"800px",mx:"auto",p:4,textAlign:"center"},children:[d.jsx(Ee,{variant:"h6",children:"Loading Article..."}),d.jsx(Ee,{variant:"body2",color:"var(--theme-text)",children:"Loading"})]}):a?(console.error("Error loading article:",a),d.jsxs(fe,{component:"article",sx:{maxWidth:"800px",mx:"auto",p:4,textAlign:"center"},children:[d.jsx(Ee,{variant:"h6",children:"Error Loading Article"}),d.jsx(Ee,{variant:"body2",color:"var(--theme-text)",children:a.message})]})):d.jsx(pv,{...l})}let Yn=class extends lr{};_([B(),z({field_type:$.TEXT,label:"Label",description:"Button label text",placeholder:"Enter button text..."}),V(),ie(),D("design:type",String)],Yn.prototype,"label",void 0);_([B(),z({field_type:$.SELECT,label:"Variant",description:"Visual style variant",validation:{options:[{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Outlined",value:"outlined"},{label:"Text",value:"text"},{label:"Contained",value:"contained"}]}}),V(),He(["primary","secondary","outlined","text","contained"]),D("design:type",String)],Yn.prototype,"variant",void 0);_([B(),z({field_type:$.SELECT,label:"Size",description:"Button size",validation:{options:[{label:"Small",value:"small"},{label:"Medium",value:"medium"},{label:"Large",value:"large"}]}}),V(),He(["small","medium","large"]),D("design:type",String)],Yn.prototype,"buttonSize",void 0);_([B(),z({field_type:$.TEXT,label:"Icon",description:"Icon to display (before text)",placeholder:"Icon identifier..."}),V(),ie(),D("design:type",String)],Yn.prototype,"icon",void 0);_([B(),z({field_type:$.TEXT,label:"End Icon",description:"Icon to display after text",placeholder:"End icon identifier..."}),V(),ie(),D("design:type",String)],Yn.prototype,"endIcon",void 0);_([B(),z({field_type:$.URL,label:"URL",description:"Link URL - button becomes a link",placeholder:"https://..."}),V(),yh(),D("design:type",String)],Yn.prototype,"href",void 0);_([B(),z({field_type:$.SELECT,label:"Target",description:"Link target (when href is provided)",validation:{options:[{label:"Blank",value:"_blank"},{label:"Self",value:"_self"},{label:"Parent",value:"_parent"},{label:"Top",value:"_top"}]}}),V(),He(["_blank","_self","_parent","_top"]),D("design:type",String)],Yn.prototype,"target",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Disabled",description:"Disabled state"}),V(),D("design:type",Boolean)],Yn.prototype,"disabled",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Loading",description:"Loading state - shows spinner and disables interaction"}),V(),D("design:type",Boolean)],Yn.prototype,"loading",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Full Width",description:"Full width button"}),V(),D("design:type",Boolean)],Yn.prototype,"fullWidth",void 0);Yn=_([Nt("Action","1.0.0")],Yn);let Ii=class extends lr{};_([B(),z({field_type:$.TEXT,label:"Title",description:"Main heading for the content block",placeholder:"Enter content title..."}),V(),ie(),D("design:type",String)],Ii.prototype,"title",void 0);_([B(),z({field_type:$.TEXT,label:"Subtitle",description:"Secondary heading or description",placeholder:"Enter subtitle..."}),V(),ie(),D("design:type",String)],Ii.prototype,"subtitle",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Content",description:"Main content body (HTML supported)",placeholder:"Enter content body..."}),V(),ie(),D("design:type",Object)],Ii.prototype,"children",void 0);_([B(),z({field_type:$.REPEATER,label:"Actions",description:"Array of action buttons"}),V(),nn(),ro({each:!0}),oo(()=>Yn),D("design:type",Array)],Ii.prototype,"actions",void 0);_([B(),z({field_type:$.SELECT,label:"Variant",description:"Background/elevation style",validation:{options:[{label:"Default",value:"default"},{label:"Elevated",value:"elevated"},{label:"Outlined",value:"outlined"},{label:"Filled",value:"filled"}]}}),V(),He(["default","elevated","outlined","filled"]),D("design:type",String)],Ii.prototype,"variant",void 0);_([B(),z({field_type:$.SELECT,label:"Block Spacing",description:"Content padding size",validation:{options:[{label:"None",value:"none"},{label:"Compact",value:"compact"},{label:"Comfortable",value:"comfortable"},{label:"Spacious",value:"spacious"}]}}),V(),He(["none","compact","comfortable","spacious"]),D("design:type",String)],Ii.prototype,"blockSpacing",void 0);_([B(),z({field_type:$.SELECT,label:"Content Max Width",description:"Maximum content width constraint",validation:{options:[{label:"XS",value:"xs"},{label:"SM",value:"sm"},{label:"MD",value:"md"},{label:"LG",value:"lg"},{label:"XL",value:"xl"},{label:"Full Width",value:"false"}]}}),V(),He(["xs","sm","md","lg","xl","false"]),D("design:type",String)],Ii.prototype,"contentMaxWidth",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Centered",description:"Center align content"}),V(),_t(),D("design:type",Boolean)],Ii.prototype,"centered",void 0);Ii=_([Nt("Content","1.0.0")],Ii);let Yu=class extends lr{};_([B(),z({field_type:$.TEXT,label:"Label",description:'Metadata label (e.g., "followers", "posts")',placeholder:"followers"}),ie(),D("design:type",String)],Yu.prototype,"label",void 0);_([B(),z({field_type:$.TEXT,label:"Value",description:'Metadata value (e.g., "1.2k", "42")',placeholder:"1.2k"}),ie(),D("design:type",String)],Yu.prototype,"value",void 0);Yu=_([Nt("MetadataItem","1.0.0")],Yu);let pn=class extends lr{};_([B(),z({field_type:$.IMAGE,label:"Cover Image",description:"Large banner/cover image URL",placeholder:"Upload cover image"}),V(),ie(),D("design:type",String)],pn.prototype,"coverImage",void 0);_([B(),z({field_type:$.TEXT,label:"Cover Image Alt Text",description:"Alternative text for cover image",placeholder:"Descriptive alt text..."}),V(),ie(),D("design:type",String)],pn.prototype,"coverImageAlt",void 0);_([B(),z({field_type:$.IMAGE,label:"Profile Image",description:"Profile/avatar image URL",placeholder:"Upload profile image"}),V(),ie(),D("design:type",String)],pn.prototype,"profileImage",void 0);_([B(),z({field_type:$.TEXT,label:"Profile Image Alt Text",description:"Alternative text for profile image",placeholder:"Profile alt text..."}),V(),ie(),D("design:type",String)],pn.prototype,"profileImageAlt",void 0);_([B(),z({field_type:$.SELECT,label:"Profile Image Size",description:"Size of the profile image",validation:{options:[{label:"Small",value:"small"},{label:"Medium",value:"medium"},{label:"Large",value:"large"}]}}),V(),He(["small","medium","large"]),D("design:type",String)],pn.prototype,"profileImageSize",void 0);_([B(),z({field_type:$.TEXT,label:"Overline",description:"Small text above the main title",placeholder:"Overline text"}),V(),ie(),D("design:type",String)],pn.prototype,"overline",void 0);_([B(),z({field_type:$.TEXT,label:"Title",description:"Main heading/title text",placeholder:"Enter title..."}),ie(),D("design:type",String)],pn.prototype,"title",void 0);_([B(),z({field_type:$.TEXT,label:"Subtitle",description:"Secondary text below the title",placeholder:"Enter subtitle..."}),V(),ie(),D("design:type",String)],pn.prototype,"subtitle",void 0);_([B(),z({field_type:$.REPEATER,label:"Metadata",description:"Array of metadata items (followers, posts, etc.)"}),V(),nn(),ro({each:!0}),oo(()=>Yu),D("design:type",Array)],pn.prototype,"metadata",void 0);_([B(),z({field_type:$.REPEATER,label:"Tags",description:"Array of tag strings"}),V(),nn(),ie({each:!0}),D("design:type",Array)],pn.prototype,"tags",void 0);_([B(),z({field_type:$.REPEATER,label:"Actions",description:"Array of action buttons"}),V(),nn(),ro({each:!0}),oo(()=>Mi),D("design:type",Array)],pn.prototype,"actions",void 0);_([B(),z({field_type:$.NUMBER,label:"Max Visible Actions",description:"Maximum visible actions before overflow",validation:{min:1,max:10}}),V(),Sr(),no(1),Bs(10),D("design:type",Number)],pn.prototype,"maxVisibleActions",void 0);_([B(),z({field_type:$.NUMBER,label:"Banner Height",description:"Height of the banner area in pixels",validation:{min:100,max:500}}),V(),Sr(),no(100),Bs(500),D("design:type",Number)],pn.prototype,"height",void 0);_([B(),z({field_type:$.TEXT,label:"CSS Class",description:"Additional CSS class name",placeholder:"custom-class"}),V(),ie(),D("design:type",String)],pn.prototype,"className",void 0);_([B(),z({field_type:$.SELECT,label:"Profile Position",description:"Position of profile image relative to banner",validation:{options:[{label:"Bottom Left",value:"bottom-left"},{label:"Bottom Center",value:"bottom-center"},{label:"Overlay Center",value:"overlay-center"}]}}),V(),He(["bottom-left","bottom-center","overlay-center"]),D("design:type",String)],pn.prototype,"profilePosition",void 0);pn=_([Nt("PageBannerHeader","1.0.0")],pn);let Ai=class extends lr{};_([B(),z({field_type:$.TEXT,label:"ID",description:"Unique identifier for the feature item",placeholder:"feature-id"}),ie(),Ya(),D("design:type",String)],Ai.prototype,"id",void 0);_([B(),z({field_type:$.TEXT,label:"Icon",description:"Feature icon (emoji or icon name)",placeholder:"🚀 or icon-name"}),V(),ie(),D("design:type",String)],Ai.prototype,"icon",void 0);_([B(),z({field_type:$.TEXT,label:"Title",description:"Feature title",placeholder:"Feature title..."}),ie(),D("design:type",String)],Ai.prototype,"title",void 0);_([B(),z({field_type:$.TEXT,label:"Description",description:"Feature description",placeholder:"Feature description..."}),ie(),D("design:type",String)],Ai.prototype,"description",void 0);_([B(),z({field_type:$.TEXT,label:"Action",description:"Optional action/link text or content",placeholder:"Learn more"}),V(),ie(),D("design:type",String)],Ai.prototype,"action",void 0);Ai=_([Nt("FeatureItem","1.0.0")],Ai);let _s=class extends lr{};_([B(),z({field_type:$.REPEATER,label:"Features",description:"Array of feature items"}),nn(),ro({each:!0}),oo(()=>Ai),D("design:type",Array)],_s.prototype,"features",void 0);_([B(),z({field_type:$.SELECT,label:"Columns",description:"Number of columns in the grid",validation:{options:[{label:"1 Column",value:1},{label:"2 Columns",value:2},{label:"3 Columns",value:3},{label:"4 Columns",value:4},{label:"5 Columns",value:5},{label:"6 Columns",value:6}]}}),V(),Sr(),He([1,2,3,4,5,6]),D("design:type",Number)],_s.prototype,"columns",void 0);_([B(),z({field_type:$.SELECT,label:"Gap",description:"Grid gap size",validation:{options:[{label:"Small",value:"small"},{label:"Medium",value:"medium"},{label:"Large",value:"large"}]}}),V(),He(["small","medium","large"]),D("design:type",String)],_s.prototype,"gap",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Equal Height",description:"Whether all grid items should have equal height"}),V(),_t(),D("design:type",Boolean)],_s.prototype,"equalHeight",void 0);_([B(),z({field_type:$.TEXT,label:"CSS Class",description:"Additional CSS class name",placeholder:"custom-class"}),V(),ie(),D("design:type",String)],_s.prototype,"className",void 0);_s=_([Nt("FeatureGrid","1.0.0")],_s);let Br=class extends lr{};_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Collapsed",description:"Whether the layout is currently collapsed"}),V(),_t(),D("design:type",Boolean)],Br.prototype,"collapsed",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Default Collapsed",description:"Initial collapsed state for uncontrolled usage"}),V(),_t(),D("design:type",Boolean)],Br.prototype,"defaultCollapsed",void 0);_([B(),z({field_type:$.TEXT,label:"Title",description:"Main title displayed in the header",placeholder:"Enter title..."}),V(),ie(),D("design:type",String)],Br.prototype,"title",void 0);_([B(),z({field_type:$.TEXT,label:"Subtitle",description:"Secondary text displayed below the title",placeholder:"Enter subtitle..."}),V(),ie(),D("design:type",String)],Br.prototype,"subtitle",void 0);_([B(),z({field_type:$.TEXT,label:"Lead Icon",description:"Icon displayed before the title (icon identifier or HTML)",placeholder:"Icon identifier..."}),V(),ie(),D("design:type",String)],Br.prototype,"leadIcon",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Header Actions",description:"Additional controls displayed in header (HTML/React content)",placeholder:"Enter header actions HTML..."}),V(),ie(),D("design:type",String)],Br.prototype,"headerActions",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Collapsed View",description:"Summary content shown when collapsed (HTML supported)",placeholder:"Enter collapsed view content..."}),V(),ie(),D("design:type",String)],Br.prototype,"collapsedView",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Content",description:"Main content shown when expanded (HTML supported)",placeholder:"Enter main content..."}),V(),ie(),D("design:type",Object)],Br.prototype,"children",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Footer View",description:"Always visible footer content (HTML supported)",placeholder:"Enter footer content..."}),V(),ie(),D("design:type",String)],Br.prototype,"footerView",void 0);_([B({defaultValue:"header"}),z({field_type:$.SELECT,label:"Trigger Area",description:"Area that responds to clicks for toggle functionality",validation:{options:[{label:"Button Only",value:"button"},{label:"Header Area",value:"header"},{label:"Button and Header",value:"both"}]}}),V(),He(["button","header","both"]),D("design:type",String)],Br.prototype,"triggerArea",void 0);_([B({defaultValue:"slide"}),z({field_type:$.SELECT,label:"Animation Style",description:"Animation variant for expand/collapse transitions",validation:{options:[{label:"Fade",value:"fade"},{label:"Slide",value:"slide"},{label:"Scale",value:"scale"}]}}),V(),He(["fade","slide","scale"]),D("design:type",String)],Br.prototype,"animationStyle",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Persist State",description:"Save collapse state in local storage"}),V(),_t(),D("design:type",Boolean)],Br.prototype,"persistState",void 0);_([B(),z({field_type:$.TEXT,label:"Collapsed Icon",description:"Icon shown when content is collapsed (default: VisibilityIcon)",placeholder:"Icon identifier..."}),V(),ie(),D("design:type",String)],Br.prototype,"collapsedIcon",void 0);_([B(),z({field_type:$.TEXT,label:"Expanded Icon",description:"Icon shown when content is expanded (default: VisibilityOffIcon)",placeholder:"Icon identifier..."}),V(),ie(),D("design:type",String)],Br.prototype,"expandedIcon",void 0);_([B({defaultValue:!0}),z({field_type:$.BOOLEAN,label:"Show Divider",description:"Show divider lines between header, content, and footer sections"}),V(),_t(),D("design:type",Boolean)],Br.prototype,"showDivider",void 0);_([B({defaultValue:"default"}),z({field_type:$.SELECT,label:"Variant",description:"Visual style variant for the layout container",validation:{options:[{label:"Default",value:"default"},{label:"Outlined",value:"outlined"},{label:"Elevated",value:"elevated"},{label:"Filled",value:"filled"}]}}),V(),He(["default","outlined","elevated","filled"]),D("design:type",String)],Br.prototype,"variant",void 0);_([B({defaultValue:"comfortable"}),z({field_type:$.SELECT,label:"Header Spacing",description:"Padding/spacing within the header area",validation:{options:[{label:"Compact",value:"compact"},{label:"Comfortable",value:"comfortable"},{label:"Spacious",value:"spacious"}]}}),V(),He(["compact","comfortable","spacious"]),D("design:type",String)],Br.prototype,"headerSpacing",void 0);_([B({defaultValue:"comfortable"}),z({field_type:$.SELECT,label:"Content Spacing",description:"Padding/spacing within the content area",validation:{options:[{label:"Compact",value:"compact"},{label:"Comfortable",value:"comfortable"},{label:"Spacious",value:"spacious"}]}}),V(),He(["compact","comfortable","spacious"]),D("design:type",String)],Br.prototype,"contentSpacing",void 0);Br=_([Nt("CollapsibleLayout","1.0.0")],Br);let Da=class extends lr{};_([B(),z({field_type:$.TEXT,label:"Action ID",description:"Unique identifier for the action",placeholder:"action-1"}),ie(),Ya(),D("design:type",String)],Da.prototype,"id",void 0);_([B(),z({field_type:$.TEXT,label:"Label",description:"Action button label",placeholder:"Button text..."}),ie(),D("design:type",String)],Da.prototype,"label",void 0);_([B(),z({field_type:$.SELECT,label:"Style",description:"Button style variant",validation:{options:[{label:"Contained",value:"contained"},{label:"Outlined",value:"outlined"},{label:"Text",value:"text"}]}}),V(),He(["contained","outlined","text"]),D("design:type",String)],Da.prototype,"variant",void 0);_([B(),z({field_type:$.SELECT,label:"Color",description:"Button color theme",validation:{options:[{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Error",value:"error"}]}}),V(),He(["primary","secondary","error"]),D("design:type",String)],Da.prototype,"color",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Disabled",description:"Disabled state"}),V(),D("design:type",Boolean)],Da.prototype,"disabled",void 0);Da=_([Nt("FeatureCardAction","1.0.0")],Da);let Fa=class extends lr{};_([B({type:ut.OBJECT}),z({field_type:$.FORM,label:"Feature Data",description:"Single feature item to display"}),V(),ro(),oo(()=>Ai),D("design:type",Ai)],Fa.prototype,"feature",void 0);_([B({type:ut.ARRAY}),z({field_type:$.REPEATER,label:"Features List",description:"List of feature strings for list variant"}),V(),nn(),ie({each:!0}),D("design:type",Array)],Fa.prototype,"features",void 0);_([B({defaultValue:"standard"}),z({field_type:$.SELECT,label:"Card Type",description:"Display variant for the feature card",validation:{options:[{label:"Standard",value:"standard"},{label:"List",value:"list"}]}}),V(),He(["standard","list"]),D("design:type",String)],Fa.prototype,"variant",void 0);_([B({type:ut.ARRAY}),z({field_type:$.REPEATER,label:"Actions",description:"Custom action buttons"}),V(),nn(),ro({each:!0}),oo(()=>Da),D("design:type",Array)],Fa.prototype,"actions",void 0);_([B(),z({field_type:$.TEXT,label:"Title",description:"Title for list variant",placeholder:"Enter card title..."}),V(),ie(),D("design:type",String)],Fa.prototype,"title",void 0);_([B(),z({field_type:$.NUMBER,label:"Elevation",description:"Card elevation (0-24)",validation:{min:0,max:24}}),V(),Sr(),no(0),Bs(24),D("design:type",Number)],Fa.prototype,"elevation",void 0);Fa=_([Nt("FeatureCard","1.0.0")],Fa);let Ls=class extends lr{};_([B(),z({field_type:$.TEXT,label:"ID",description:"Unique identifier for the footer item",placeholder:"footer-item-id"}),ie(),Ya(),D("design:type",String)],Ls.prototype,"id",void 0);_([B(),z({field_type:$.TEXT,label:"Label",description:"Display text for the footer item",placeholder:"Navigation label"}),ie(),D("design:type",String)],Ls.prototype,"label",void 0);_([B(),z({field_type:$.URL,label:"URL",description:"Optional URL for links",placeholder:"https://example.com"}),V(),ie(),D("design:type",String)],Ls.prototype,"href",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"External Link",description:"Whether to open links in new tab"}),V(),_t(),D("design:type",Boolean)],Ls.prototype,"external",void 0);Ls=_([Nt("FooterItem","1.0.0")],Ls);let rc=class extends lr{};_([B(),z({field_type:$.TEXT,label:"ID",description:"Unique identifier for the footer section",placeholder:"footer-section-id"}),ie(),Ya(),D("design:type",String)],rc.prototype,"id",void 0);_([B(),z({field_type:$.TEXT,label:"Title",description:"Section title/heading",placeholder:"Section title"}),V(),ie(),D("design:type",String)],rc.prototype,"title",void 0);_([B(),z({field_type:$.REPEATER,label:"Items",description:"Array of items in this section"}),nn(),ro({each:!0}),oo(()=>Ls),D("design:type",Array)],rc.prototype,"items",void 0);rc=_([Nt("FooterSection","1.0.0")],rc);let _i=class extends lr{};_([B(),z({field_type:$.REPEATER,label:"Sections",description:"Footer sections with navigation items"}),V(),nn(),ro({each:!0}),oo(()=>rc),D("design:type",Array)],_i.prototype,"sections",void 0);_([B(),z({field_type:$.TEXT,label:"Logo",description:"Optional logo or branding element (HTML or text)",placeholder:"Company Logo or HTML"}),V(),ie(),D("design:type",String)],_i.prototype,"logo",void 0);_([B(),z({field_type:$.TEXT,label:"Copyright",description:"Copyright text",placeholder:"© 2025 Company Name"}),V(),ie(),D("design:type",String)],_i.prototype,"copyright",void 0);_([B(),z({field_type:$.TEXT,label:"Legal Text",description:"Additional legal or info text",placeholder:"All rights reserved."}),V(),ie(),D("design:type",String)],_i.prototype,"legalText",void 0);_([B(),z({field_type:$.SELECT,label:"Orientation",description:"Layout orientation",validation:{options:[{label:"Vertical",value:"vertical"},{label:"Horizontal",value:"horizontal"}]}}),V(),He(["vertical","horizontal"]),D("design:type",String)],_i.prototype,"orientation",void 0);_([B(),z({field_type:$.SELECT,label:"Variant",description:"Background variant",validation:{options:[{label:"Default",value:"default"},{label:"Contained",value:"contained"},{label:"Outlined",value:"outlined"}]}}),V(),He(["default","contained","outlined"]),D("design:type",String)],_i.prototype,"variant",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Show Divider",description:"Whether to show divider above footer"}),V(),_t(),D("design:type",Boolean)],_i.prototype,"showDivider",void 0);_([B(),z({field_type:$.TEXT,label:"CSS Class",description:"Additional CSS class name",placeholder:"custom-footer-class"}),V(),ie(),D("design:type",String)],_i.prototype,"className",void 0);_i=_([Nt("Footer","1.0.0")],_i);let Jn=class extends lr{};_([B(),z({field_type:$.TEXT,label:"Product ID",description:"Unique product identifier",placeholder:"product-1"}),ie(),Ya(),D("design:type",String)],Jn.prototype,"id",void 0);_([B(),z({field_type:$.TEXT,label:"Product Name",description:"The display name of the product",placeholder:"Enter product name..."}),ie(),Ya(),D("design:type",String)],Jn.prototype,"name",void 0);_([B(),z({field_type:$.TEXT,label:"Category",description:"Product category or type",placeholder:"e.g., Software, Hardware, Service"}),ie(),D("design:type",String)],Jn.prototype,"category",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Description",description:"Full product description",placeholder:"Detailed product description..."}),ie(),D("design:type",String)],Jn.prototype,"description",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Short Description",description:"Brief product description for compact view",placeholder:"Brief description..."}),V(),ie(),D("design:type",String)],Jn.prototype,"shortDescription",void 0);_([B({type:ut.ARRAY}),z({field_type:$.REPEATER,label:"Features",description:"List of key product features"}),nn(),ie({each:!0}),D("design:type",Array)],Jn.prototype,"features",void 0);_([B({type:ut.ARRAY}),z({field_type:$.REPEATER,label:"Technologies",description:"Technologies used in the product"}),nn(),ie({each:!0}),D("design:type",Array)],Jn.prototype,"technologies",void 0);_([B(),z({field_type:$.TEXT,label:"Status",description:"Current product status",placeholder:"e.g., Active, Development, Beta"}),ie(),D("design:type",String)],Jn.prototype,"status",void 0);_([B(),z({field_type:$.IMAGE,label:"Image URL",description:"Product image or screenshot",placeholder:"https://..."}),V(),yh(),D("design:type",String)],Jn.prototype,"image",void 0);_([B(),z({field_type:$.URL,label:"Product URL",description:"Live product URL (for launched products)",placeholder:"https://..."}),V(),yh(),D("design:type",String)],Jn.prototype,"url",void 0);Jn=_([Nt("Product","1.0.0")],Jn);let Ha=class extends lr{};_([B(),z({field_type:$.TEXT,label:"Action ID",description:"Unique action identifier",placeholder:"action-1"}),ie(),Ya(),D("design:type",String)],Ha.prototype,"id",void 0);_([B(),z({field_type:$.TEXT,label:"Button Label",description:"Action button text",placeholder:"Button text..."}),ie(),D("design:type",String)],Ha.prototype,"label",void 0);_([B(),z({field_type:$.SELECT,label:"Button Style",description:"Button style variant",validation:{options:[{label:"Contained",value:"contained"},{label:"Outlined",value:"outlined"},{label:"Text",value:"text"}]}}),V(),He(["contained","outlined","text"]),D("design:type",String)],Ha.prototype,"variant",void 0);_([B(),z({field_type:$.SELECT,label:"Button Color",description:"Button color theme",validation:{options:[{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Error",value:"error"}]}}),V(),He(["primary","secondary","error"]),D("design:type",String)],Ha.prototype,"color",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Disabled",description:"Disabled state"}),V(),D("design:type",Boolean)],Ha.prototype,"disabled",void 0);Ha=_([Nt("ProductCardAction","1.0.0")],Ha);let Ua=class extends lr{};_([B({type:ut.OBJECT}),z({field_type:$.FORM,label:"Product Data",description:"Product information to display"}),V(),ro(),oo(()=>Jn),D("design:type",Jn)],Ua.prototype,"product",void 0);_([B({defaultValue:"detailed"}),z({field_type:$.SELECT,label:"Card Variant",description:"Display variant for the product card",validation:{options:[{label:"Compact",value:"compact"},{label:"Detailed",value:"detailed"}]}}),V(),He(["compact","detailed"]),D("design:type",String)],Ua.prototype,"variant",void 0);_([B({type:ut.ARRAY}),z({field_type:$.REPEATER,label:"Custom Actions",description:"Custom action buttons"}),V(),nn(),ro({each:!0}),oo(()=>Ha),D("design:type",Array)],Ua.prototype,"actions",void 0);_([B({defaultValue:!0}),z({field_type:$.BOOLEAN,label:"Show Image",description:"Whether to display the product image"}),V(),D("design:type",Boolean)],Ua.prototype,"showImage",void 0);_([B({defaultValue:!0}),z({field_type:$.BOOLEAN,label:"Show Technologies",description:"Whether to display technology chips"}),V(),D("design:type",Boolean)],Ua.prototype,"showTechnologies",void 0);_([B({defaultValue:3}),z({field_type:$.NUMBER,label:"Max Features (Compact)",description:"Maximum features to show in compact mode",validation:{min:1,max:10}}),V(),Sr(),no(1),Bs(10),D("design:type",Number)],Ua.prototype,"maxFeaturesCompact",void 0);Ua=_([Nt("ProductCard","1.0.0")],Ua);let Va=class extends ta{};_([B(),z({field_type:$.REPEATER,label:"Grid Items",description:"Array of items to display in the grid"}),nn(),D("design:type",Array)],Va.prototype,"items",void 0);_([B(),z({field_type:$.SELECT,label:"Columns",description:"Number of columns in the grid layout",validation:{options:[{value:1,label:"1 Column"},{value:2,label:"2 Columns (Default)"},{value:3,label:"3 Columns"},{value:4,label:"4 Columns"},{value:5,label:"5 Columns"},{value:6,label:"6 Columns"}]}}),V(),Sr(),He([1,2,3,4,5,6]),D("design:type",Number)],Va.prototype,"columns",void 0);_([B(),z({field_type:$.SELECT,label:"Grid Spacing",description:"Spacing between grid items",validation:{options:[{value:"none",label:"No Spacing"},{value:"tiny",label:"Tiny"},{value:"small",label:"Small"},{value:"medium",label:"Medium"},{value:"large",label:"Large (Default)"},{value:"huge",label:"Huge"}]}}),V(),He(["none","tiny","small","medium","large","huge"]),D("design:type",String)],Va.prototype,"spacing",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Equal Height",description:"Whether all cards should have equal height"}),V(),_t(),D("design:type",Boolean)],Va.prototype,"equalHeight",void 0);_([B(),z({field_type:$.SELECT,label:"Card Component Type",description:"Type of card component to render for each item",validation:{options:[{value:"ProductCard",label:"Product Card"},{value:"FeatureCard",label:"Feature Card"},{value:"Custom",label:"Custom Component"}]}}),V(),He(["ProductCard","FeatureCard","Custom"]),D("design:type",String)],Va.prototype,"renderComponent",void 0);_([B(),z({field_type:$.FORM,label:"Item Properties",description:"Additional properties to pass to each rendered item"}),V(),s9(),D("design:type",Object)],Va.prototype,"itemProps",void 0);Va=_([Nt("CardListGrid","1.0.0")],Va);let ni=class extends lr{};_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Disabled",description:"Disable the theme switcher button"}),V(),_t(),D("design:type",Boolean)],ni.prototype,"disabled",void 0);_([B({defaultValue:"medium"}),z({field_type:$.SELECT,label:"Button Size",description:"Size of the theme switcher button"}),V(),ie(),He(["small","medium","large"]),D("design:type",String)],ni.prototype,"size",void 0);_([B(),z({field_type:$.TEXT,label:"Custom Tooltip",description:"Custom tooltip text override",placeholder:"Current theme: Light"}),V(),ie(),D("design:type",String)],ni.prototype,"tooltipText",void 0);_([B({defaultValue:!0}),z({field_type:$.BOOLEAN,label:"Show Tooltip",description:"Show tooltip on hover"}),V(),_t(),D("design:type",Boolean)],ni.prototype,"showTooltip",void 0);_([B({defaultValue:"bottom"}),z({field_type:$.SELECT,label:"Menu Position",description:"Position of the theme selection menu"}),V(),ie(),He(["bottom","top","left","right"]),D("design:type",String)],ni.prototype,"menuPosition",void 0);_([B({defaultValue:!0}),z({field_type:$.BOOLEAN,label:"Show Light Theme",description:"Show light theme option in menu"}),V(),_t(),D("design:type",Boolean)],ni.prototype,"showLightTheme",void 0);_([B({defaultValue:!0}),z({field_type:$.BOOLEAN,label:"Show Dark Theme",description:"Show dark theme option in menu"}),V(),_t(),D("design:type",Boolean)],ni.prototype,"showDarkTheme",void 0);_([B({defaultValue:!0}),z({field_type:$.BOOLEAN,label:"Show System Theme",description:"Show system theme option in menu"}),V(),_t(),D("design:type",Boolean)],ni.prototype,"showSystemTheme",void 0);ni=_([Nt("ThemeSwitcher","1.0.0")],ni);var PH=ni;function sC({disabled:t=!1,size:e="medium",tooltipText:r,showTooltip:n=!0,menuPosition:o="bottom",showLightTheme:a=!0,showDarkTheme:l=!0,showSystemTheme:c=!0,...u}){const{styleProps:f,htmlProps:h}=kn(u),{currentTheme:v,actualThemeMode:g,setPreferredTheme:y}=HT(),[w,x]=S.useState(null),C=!!w,j=H=>{t||x(H.currentTarget)},P=()=>{x(null)},M=H=>{t||(y(H),P())},E=()=>{switch(g){case"dark":return d.jsx(pS,{});case"light":return d.jsx(sf,{});default:return d.jsx(sf,{})}},R=()=>r||(t?"Theme switcher disabled":`Current theme: ${v==="system"?`System (${g})`:v.charAt(0).toUpperCase()+v.slice(1)}`),I=()=>{switch(o){case"top":return{vertical:"top",horizontal:"right"};case"left":return{vertical:"bottom",horizontal:"left"};case"right":return{vertical:"bottom",horizontal:"right"};default:return{vertical:"bottom",horizontal:"right"}}},F=()=>{switch(o){case"top":return{vertical:"bottom",horizontal:"right"};case"left":return{vertical:"top",horizontal:"right"};case"right":return{vertical:"top",horizontal:"left"};default:return{vertical:"top",horizontal:"right"}}};if(!a&&!l&&!c)return d.jsx(Ir,{variant:"outlined",sx:{p:2,textAlign:"center",borderColor:"error.main"},children:d.jsx(Ee,{variant:"body2",color:"error",children:"Error: No theme options enabled"})});const A=d.jsxs("span",{suppressHydrationWarning:!0,children:[d.jsx(ur,{...h,onClick:j,disabled:t,size:e,"aria-label":"theme switcher","aria-controls":C?"theme-menu":void 0,"aria-haspopup":"true","aria-expanded":C?"true":void 0,suppressHydrationWarning:!0,sx:{color:"var(--theme-on-surface, inherit)","&:hover":{backgroundColor:"var(--menu-hover, rgba(0, 0, 0, 0.04))"},"&:disabled":{color:"var(--theme-disabled, rgba(0, 0, 0, 0.26))"},...f.sx},className:f.className,children:E()}),d.jsxs(mh,{id:"theme-menu",anchorEl:w,open:C,onClose:P,slotProps:{paper:{"aria-labelledby":"theme-button"}},anchorOrigin:I(),transformOrigin:F(),children:[a&&d.jsxs(cn,{onClick:()=>M("light"),selected:v==="light",children:[d.jsx(of,{children:d.jsx(sf,{fontSize:"small"})}),d.jsx(af,{children:"Light"})]}),l&&d.jsxs(cn,{onClick:()=>M("dark"),selected:v==="dark",children:[d.jsx(of,{children:d.jsx(pS,{fontSize:"small"})}),d.jsx(af,{children:"Dark"})]}),c&&d.jsxs(cn,{onClick:()=>M("system"),selected:v==="system",children:[d.jsx(of,{children:d.jsx(d7,{fontSize:"small"})}),d.jsx(af,{children:"System"})]})]})]});return n?d.jsx(Zr,{title:R(),children:A}):A}function sk(t){const{dataSource:e,bindingOptions:r,...n}=t,o=Oi(e||"",n,PH.getSchema(),{...r});if(!e)return d.jsx(sC,{...n});const{loading:a,error:l,...c}=o;return a?d.jsx(ur,{disabled:!0,size:"medium",children:d.jsx(sf,{})}):l?(console.error("Error loading theme switcher:",l),d.jsx(Ir,{variant:"outlined",sx:{p:2,textAlign:"center",borderColor:"error.main"},children:d.jsxs(Ee,{variant:"body2",color:"error",children:["Error loading theme switcher: ",l.message]})})):d.jsx(sC,{...c})}sk[Nn]=!0;const fv=S.createContext(null);function jH({children:t}){const e=t0(),r=e0(),n=o=>{(typeof o=="string"||typeof o=="number")&&e(o)};return d.jsx(fv.Provider,{value:{navigate:n,location:{pathname:r.pathname,search:r.search,hash:r.hash}},children:t})}function MH({children:t}){const e=n=>{typeof window>"u"||(typeof n=="string"?window.location.href=n:typeof n=="number"&&window.history.go(n))},r=typeof window<"u"?{pathname:window.location.pathname,search:window.location.search,hash:window.location.hash}:void 0;return d.jsx(fv.Provider,{value:{navigate:e,location:r},children:t})}function RH({children:t}){return S.useContext(Zu)?d.jsx(jH,{children:t}):d.jsx(MH,{children:t})}function lk(){const t=S.useContext(fv);if(!t)throw new Error("useNavigation must be used within a NavigationProvider. Make sure your component is wrapped in QwickApp or NavigationProvider.");return t}let Wa=class extends lr{};_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Disabled",description:"Disable the palette switcher button"}),V(),_t(),D("design:type",Boolean)],Wa.prototype,"disabled",void 0);_([B(),z({field_type:$.TEXT,label:"Button Size",description:"Size of the palette switcher button",placeholder:"medium"}),V(),ie(),D("design:type",String)],Wa.prototype,"buttonSize",void 0);_([B(),z({field_type:$.TEXT,label:"Tooltip Text",description:"Custom tooltip text for the palette switcher",placeholder:"Switch color palette"}),V(),ie(),D("design:type",String)],Wa.prototype,"tooltipText",void 0);_([B({defaultValue:!0}),z({field_type:$.BOOLEAN,label:"Show Active Badge",description:'Show "Active" badge on currently selected palette'}),V(),_t(),D("design:type",Boolean)],Wa.prototype,"showActiveBadge",void 0);_([B({defaultValue:!0}),z({field_type:$.BOOLEAN,label:"Show Descriptions",description:"Show palette descriptions in menu items"}),V(),_t(),D("design:type",Boolean)],Wa.prototype,"showDescriptions",void 0);Wa=_([Nt("PaletteSwitcher","1.0.0")],Wa);var IH=Wa;function lC({disabled:t=!1,buttonSize:e="medium",tooltipText:r,showActiveBadge:n=!0,showDescriptions:o=!0,...a}){const{styleProps:l,htmlProps:c}=kn(a),{currentPalette:u,setPreferredPalette:f,availablePalettes:h}=DT(),[v,g]=S.useState(null),y=!!v,w=E=>{g(E.currentTarget)},x=()=>{g(null)},C=E=>{f(E),x()},j=E=>{const R=E.id===u;return d.jsx(R9,{fontSize:"small",sx:{color:E.primaryColor,filter:R?"drop-shadow(0 0 3px currentColor) brightness(1.2)":"none",transform:R?"scale(1.1)":"scale(1)",transition:"all 0.2s ease-in-out"}})},P=()=>h.find(E=>E.id===u)||h[0];if(!h||h.length===0)return d.jsx(Ir,{...c,...l,variant:"outlined",sx:{p:2,textAlign:"center",opacity:.6,...l.sx},children:d.jsx(Ee,{variant:"body2",color:"text.secondary",children:"No color palettes available"})});const M=`Switch color palette (current: ${P().name})`;return d.jsxs(fe,{...c,...l,children:[d.jsx(Zr,{title:r||M,children:d.jsx(ur,{onClick:w,disabled:t,size:e,"aria-label":"palette switcher","aria-controls":y?"palette-menu":void 0,"aria-haspopup":"true","aria-expanded":y?"true":void 0,sx:{color:"var(--theme-on-surface, inherit)","&:hover":{backgroundColor:"var(--menu-hover, rgba(0, 0, 0, 0.04))"}},children:d.jsx(e7,{})})}),d.jsx(mh,{id:"palette-menu",anchorEl:v,open:y,onClose:x,slotProps:{paper:{"aria-labelledby":"palette-button"}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:h.map(E=>d.jsxs(cn,{onClick:()=>C(E.id),selected:u===E.id,sx:{"&:hover":{backgroundColor:"action.hover"},"&.Mui-selected":{backgroundColor:"action.selected","&:hover":{backgroundColor:"action.selected"}}},children:[d.jsx(of,{children:j(E)}),d.jsx(af,{primary:d.jsxs(fe,{sx:{display:"flex",alignItems:"center",gap:1},children:[E.name,n&&u===E.id&&d.jsx(fe,{component:"span",sx:{fontSize:"0.75rem",px:1,py:.25,borderRadius:1,backgroundColor:"primary.main",color:"primary.contrastText"},children:"Active"})]}),secondary:o?E.description:void 0})]},E.id))})]})}function ck(t){const{dataSource:e,bindingOptions:r,...n}=t,o=Oi(e||"",n,IH.getSchema(),{...r});if(!e)return d.jsx(lC,{...n});const{loading:a,error:l,...c}=o;return a?d.jsxs(Ir,{variant:"outlined",sx:{p:2,textAlign:"center"},children:[d.jsx(Ee,{variant:"body2",children:"Loading PaletteSwitcher..."}),d.jsx(Ee,{variant:"caption",color:"text.secondary",children:"Loading palette switcher from data source..."})]}):l?(console.error("Error loading palette switcher:",l),d.jsx(Ir,{variant:"outlined",sx:{p:2,textAlign:"center",borderColor:"error.main"},children:d.jsxs(Ee,{variant:"body2",color:"error",children:["Error loading palette switcher: ",l.message]})})):d.jsx(lC,{...c})}ck[Nn]=!0;function Cu({children:t,PaperProps:e,...r}){return d.jsx(GL,{...r,PaperProps:{...e,sx:{backgroundColor:"var(--theme-surface)",color:"var(--theme-text-primary)",borderRadius:"var(--theme-border-radius, 8px)",...e==null?void 0:e.sx}},children:t})}function Tu({children:t,sx:e,...r}){return d.jsx(a6,{...r,sx:{color:"var(--theme-text-primary)",backgroundColor:"var(--theme-surface)",borderBottom:"1px solid var(--theme-border)",...e},children:t})}function Eu({children:t,sx:e,...r}){return d.jsx(n6,{...r,sx:{color:"var(--theme-text-primary)",backgroundColor:"var(--theme-surface)",...e},children:t})}function ku({children:t,sx:e,...r}){return d.jsx(YL,{...r,sx:{backgroundColor:"var(--theme-surface)",borderTop:"1px solid var(--theme-border)",padding:"16px 24px",...e},children:t})}const uk=Mt.forwardRef((t,e)=>{const{gridProps:r,styleProps:n,htmlProps:o,restProps:a}=kn(t),{label:l,value:c,onChange:u,onChangeRaw:f,type:h="text",helperText:v,required:g=!1,readOnly:y=!1,disabled:w=!1,disabledColor:x,fullWidth:C=!0,multiline:j=!1,rows:P,placeholder:M,startAdornment:E,endAdornment:R,inputProps:I}=a,F=Mt.useId(),A=k=>{if(f){f(k);return}if(u){const q=h==="number"?parseInt(k.target.value)||0:k.target.value;u(q)}},H={p:1,pl:1.6,mt:3,color:w&&x?x:y?"var(--theme-text-secondary)":"var(--theme-text-primary)",backgroundColor:y?"var(--theme-surface-variant)":"transparent",borderRadius:1,"&.Mui-disabled":x?{color:x,WebkitTextFillColor:x}:void 0,"& input.Mui-disabled":x?{color:x,WebkitTextFillColor:x}:void 0,...n.sx},G={left:-12,fontWeight:600,color:"var(--theme-text-primary)"},N={color:"var(--theme-secondary)"};return d.jsxs(za,{ref:e,fullWidth:C,...o,...n,...r&&{"data-grid-span":r.span,"data-grid-xs":r.xs,"data-grid-sm":r.sm,"data-grid-md":r.md,"data-grid-lg":r.lg,"data-grid-xl":r.xl},children:[d.jsx(Vl,{htmlFor:F,sx:G,shrink:!0,children:l}),d.jsx(hh,{id:F,type:h,value:c,onChange:A,readOnly:y,disabled:w,required:g,multiline:j,rows:P,placeholder:M,inputProps:I,sx:H,startAdornment:E?d.jsx(Ef,{position:"start",children:E}):void 0,endAdornment:R?d.jsx(Ef,{position:"end",children:R}):void 0}),v&&d.jsx(cc,{sx:N,children:v})]})});uk.displayName="FormField";uk[Nn]=!0;const dk=Mt.forwardRef((t,e)=>{const{gridProps:r,styleProps:n,htmlProps:o,restProps:a}=kn(t),{label:l,value:c,onChange:u,options:f,helperText:h,required:v=!1,disabled:g=!1,fullWidth:y=!0,size:w="small",placeholder:x}=a,C=E=>{u(E.target.value)},j={p:1,pl:1.6,...l?{mt:1,color:"var(--theme-text-primary)"}:{},backgroundColor:"var(--theme-surface-variant)",borderColor:"var(--theme-surface)",color:"var(--theme-text-primary)",borderRadius:1,...n.sx},P={left:-12,fontWeight:600,color:"var(--theme-text-primary)"},M={color:"var(--theme-secondary)"};return d.jsxs(za,{ref:e,fullWidth:y,size:w,...o,...n,...r&&{"data-grid-span":r.span,"data-grid-xs":r.xs,"data-grid-sm":r.sm,"data-grid-md":r.md,"data-grid-lg":r.lg,"data-grid-xl":r.xl},children:[l&&d.jsx(Vl,{sx:P,shrink:!0,children:l}),d.jsxs(Ms,{value:c,onChange:C,disabled:g,required:v,displayEmpty:!!x,sx:j,children:[x&&d.jsx(cn,{value:"",disabled:!0,children:x}),f.map(E=>d.jsx(cn,{value:E.value,children:E.label},E.value))]}),h&&d.jsx(cc,{sx:M,children:h})]})});dk.displayName="FormSelect";dk[Nn]=!0;const pk=Mt.forwardRef((t,e)=>{const{gridProps:r,styleProps:n,htmlProps:o,restProps:a}=kn(t),{label:l,checked:c,onChange:u,helperText:f,required:h=!1,disabled:v=!1}=a,g=C=>{u(C.target.checked)},y={color:"var(--theme-primary)","&.Mui-checked":{color:"var(--theme-primary)"},"&.Mui-disabled":{color:"var(--theme-text-disabled)"}},w={color:"var(--theme-text-primary)","& .MuiFormControlLabel-label":{color:"var(--theme-text-primary)"},"& .MuiFormControlLabel-label.Mui-disabled":{color:"var(--theme-text-disabled)"},...n.sx},x={color:"var(--theme-secondary)",marginLeft:"32px"};return d.jsxs(za,{ref:e,...o,...n,...r&&{"data-grid-span":r.span,"data-grid-xs":r.xs,"data-grid-sm":r.sm,"data-grid-md":r.md,"data-grid-lg":r.lg,"data-grid-xl":r.xl},children:[d.jsx(Z2,{control:d.jsx(bL,{checked:c,onChange:g,required:h,disabled:v,sx:y}),label:l,sx:w}),f&&d.jsx(cc,{sx:x,children:f})]})});pk.displayName="FormCheckbox";pk[Nn]=!0;const fk=Mt.forwardRef((t,e)=>{const{gridProps:r,styleProps:n,htmlProps:o,restProps:a}=kn(t),{provider:l,siteKey:c,onVerify:u,onExpire:f,onError:h,theme:v="light",size:g="normal",action:y="submit"}=a,w=S.useRef(null),x=S.useRef(null),[C,j]=S.useState(!1),[P,M]=S.useState(null);return S.useEffect(()=>{(()=>{if((()=>{switch(l){case"recaptcha-v2":case"recaptcha-v3":return!!window.grecaptcha;case"hcaptcha":return!!window.hcaptcha;case"turnstile":return!!window.turnstile;default:return!1}})()){j(!0);return}const F=(()=>{switch(l){case"recaptcha-v2":return"https://www.google.com/recaptcha/api.js?render=explicit";case"recaptcha-v3":return`https://www.google.com/recaptcha/api.js?render=${c}`;case"hcaptcha":return"https://js.hcaptcha.com/1/api.js?render=explicit";case"turnstile":return"https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit";default:return""}})();if(!F){M("Unsupported CAPTCHA provider");return}const A=document.createElement("script");return A.src=F,A.async=!0,A.defer=!0,A.onload=()=>{j(!0)},A.onerror=()=>{M("Failed to load CAPTCHA script"),h==null||h(new Error("Failed to load CAPTCHA script"))},document.head.appendChild(A),()=>{document.head.removeChild(A)}})()},[l,c,h]),S.useEffect(()=>{if(!C||!w.current)return;const R=setTimeout(()=>{try{switch(l){case"recaptcha-v2":window.grecaptcha&&window.grecaptcha.render&&(x.current=window.grecaptcha.render(w.current,{sitekey:c,callback:u,"expired-callback":f,"error-callback":()=>{const I=new Error("reCAPTCHA error");M(I.message),h==null||h(I)},theme:v,size:g}));break;case"recaptcha-v3":window.grecaptcha&&window.grecaptcha.execute&&window.grecaptcha.execute(c,{action:y}).then(I=>{u(I)}).catch(I=>{M(I.message),h==null||h(I)});break;case"hcaptcha":window.hcaptcha&&window.hcaptcha.render&&(x.current=window.hcaptcha.render(w.current,{sitekey:c,callback:u,"expired-callback":f,"error-callback":()=>{const I=new Error("hCaptcha error");M(I.message),h==null||h(I)},theme:v,size:g==="normal"?"normal":"compact"}));break;case"turnstile":window.turnstile&&window.turnstile.render&&(x.current=window.turnstile.render(w.current,{sitekey:c,callback:u,"expired-callback":f,"error-callback":()=>{const I=new Error("Turnstile error");M(I.message),h==null||h(I)},theme:v,size:g==="compact"?"compact":"normal"}));break}}catch(I){const F=I instanceof Error?I:new Error("Failed to render CAPTCHA");M(F.message),h==null||h(F)}},100);return()=>{var I,F,A;if(clearTimeout(R),x.current!==null)try{switch(l){case"recaptcha-v2":(I=window.grecaptcha)==null||I.reset(x.current);break;case"hcaptcha":(F=window.hcaptcha)==null||F.remove(x.current);break;case"turnstile":(A=window.turnstile)==null||A.remove(x.current);break}}catch{}}},[C,l,c,u,f,h,v,g,y]),l==="recaptcha-v3"?null:d.jsxs(fe,{ref:e,...o,sx:{my:2,...n.sx},...r&&{"data-grid-span":r.span,"data-grid-xs":r.xs,"data-grid-sm":r.sm,"data-grid-md":r.md,"data-grid-lg":r.lg,"data-grid-xl":r.xl},children:[P&&d.jsx(Tn,{severity:"error",sx:{mb:2},children:P}),d.jsx("div",{ref:w})]})});fk.displayName="Captcha";fk[Nn]=!0;const hk=Mt.forwardRef((t,e)=>{var E;const{gridProps:r,styleProps:n,htmlProps:o,restProps:a}=kn(t),{placeholder:l,value:c,defaultValue:u,slotProps:f,InputLabelProps:h,InputProps:v,variant:g="outlined",...y}=a,w=c!=null&&c!==""||u!=null&&u!=="",x=!!l&&!w,C=((E=f==null?void 0:f.inputLabel)==null?void 0:E.shrink)??(h==null?void 0:h.shrink),j=C!==void 0?C:x,P={...f,inputLabel:{...(f==null?void 0:f.inputLabel)||{},...j?{shrink:!0}:{}}};let M=v||{};return g==="outlined"&&j&&l&&!w&&M.notched===void 0&&(M={...M,notched:!0}),hk[Nn]=!0,d.jsx(un,{ref:e,placeholder:l,value:c,defaultValue:u,variant:g,slotProps:P,InputProps:M,...y,...o,...n,...r&&{"data-grid-span":r.span,"data-grid-xs":r.xs,"data-grid-sm":r.sm,"data-grid-md":r.md,"data-grid-lg":r.lg,"data-grid-xl":r.xl}})});hk.displayName="TextField";function cC(t,e={}){const{defaultUnit:r="px",allowedUnits:n=["px","mm","cm","in","pt","pc"],allowKeywords:o=!1,fallback:a=`0${r}`}=e;if(t==null)return a;if(typeof t=="number"&&isFinite(t))return`${t}${r}`;const l=String(t).trim();return l?o&&/^(auto|inherit|initial|unset)$/.test(l)?l:/^-?\d+(\.\d+)?$/.test(l)?`${l}${r}`:new RegExp(`^-?\\d+(?:\\.\\d+)?(${n.map(u=>u.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")).join("|")})$`).test(l)?l:a:a}const AH=S.createContext(null);function _H(t,e,r){const{openGraph:n=!0,removeOnUnmount:o=!1}={};S.useEffect(()=>{const a=document.title;let l=!1,c=document.querySelector('meta[name="description"]');t&&document.title!==t&&(document.title=t),e&&(c||(c=document.createElement("meta"),c.name="description",document.head.appendChild(c),l=!0),c.content!==e&&(c.content=e));let u=null,f=null;return n&&(t&&(u=document.querySelector('meta[property="og:title"]'),u||(u=document.createElement("meta"),u.setAttribute("property","og:title"),document.head.appendChild(u)),u.content!==t&&(u.content=t)),e&&(f=document.querySelector('meta[property="og:description"]'),f||(f=document.createElement("meta"),f.setAttribute("property","og:description"),document.head.appendChild(f)),f.content!==e&&(f.content=e))),()=>{var h,v,g;o&&(document.title===t&&(document.title=a),e&&c&&(l||o)&&((h=c.parentNode)==null||h.removeChild(c)),n&&(u&&o&&((v=u.parentNode)==null||v.removeChild(u)),f&&o&&((g=f.parentNode)==null||g.removeChild(f))))}},[t,e,n,o])}const LH=({renderView:t,renderPrintView:e,template:r,route:n,title:o,description:a,name:l,slug:c,printConfig:u,variant:f="default",padding:h="medium",background:v="default",maxWidth:g="large",children:y,...w})=>{const{htmlProps:x,styleProps:C}=kn(w),[j,P]=S.useState(!1),[M,E]=S.useState(null),R={route:n??(r!=null&&r.slug?`/${r.slug}`:void 0),title:o??(r==null?void 0:r.title)??(r==null?void 0:r.name),description:a??(r==null?void 0:r.description),name:l??(r==null?void 0:r.name),slug:c??(r==null?void 0:r.slug),printConfig:{...r==null?void 0:r.printConfig,...u}};_H(R.title,R.description);const{isPrintMode:I,printConfig:F,onViewLoading:A,onViewReady:H,triggerPrint:G}=sB(),N=S.useCallback(ee=>G({...R.printConfig,...ee}),[G,R.printConfig]);S.useLayoutEffect(()=>{I&&(j?A():H())},[I,j,A,H]),S.useEffect(()=>{if(!I)return;const ee="qwickapps-print-page-setup",Z=F,Q=Z.pageSize||"auto",X=Z.printBackground||"transparent",re=Z.printBackgroundFirstPage||X,ce=document.querySelector(".page-print-header:not(.page-print-header-first-page)"),Y=document.querySelector(".page-print-footer:not(.page-print-footer-first-page)"),ne=ce!=null&&ce.getBoundingClientRect?Math.ceil(ce.getBoundingClientRect().height):0,J=Y!=null&&Y.getBoundingClientRect?Math.ceil(Y.getBoundingClientRect().height):0,de=ne?`${ne}px`:cC(Z.printHeaderHeight||0),Ce=J?`${J}px`:cC(Z.printFooterHeight||0),me=(Oe,Be)=>`@media print{@page{size:${Q};margin:0;} .page-print-mode{--print-header-height:${Oe};--print-footer-height:${Be};--print-background:${X};--print-background-first-page:${re};}}`;let se=document.getElementById(ee);se||(se=document.createElement("style"),se.id=ee,document.head.appendChild(se)),se.textContent=me(de,Ce);let De=null;window.ResizeObserver&&(De=new ResizeObserver(()=>{const Oe=ce!=null&&ce.getBoundingClientRect?Math.ceil(ce.getBoundingClientRect().height):0,Be=Y!=null&&Y.getBoundingClientRect?Math.ceil(Y.getBoundingClientRect().height):0,_e=me(Oe?`${Oe}px`:de,Be?`${Be}px`:Ce);se&&se.textContent!==_e&&(se.textContent=_e)}),ce&&De.observe(ce),Y&&De.observe(Y));const Ne=()=>{const Oe=document.getElementById(ee);Oe!=null&&Oe.parentNode&&Oe.parentNode.removeChild(Oe),De==null||De.disconnect()};return window.addEventListener("afterprint",Ne,{once:!0}),()=>{window.removeEventListener("afterprint",Ne),Ne()}},[I,F]);const{location:k}=lk(),q=R.route||(k==null?void 0:k.pathname)||"",U=S.useMemo(()=>({route:q,isPrintMode:I,printConfig:F,triggerPrint:N,setLoading:P,setError:E,isLoading:j,error:M}),[q,I,F,N,j,M]),L=["page",`page-variant-${f}`,`page-padding-${h}`,`page-background-${v}`,`page-max-width-${g}`,I&&"page-print-mode",I&&F.pageMargins==="0mm"&&"page-print-borderless",I&&F.pageMargins==="6mm"&&"page-print-compact",I&&F.pageMargins==="20mm"&&"page-print-large",I&&F.pageMargins==="25mm"&&"page-print-formal",I&&(F.printBackground||F.printBackgroundFirstPage)&&"has-background",C.className].filter(Boolean).join(" "),W=(I?e:t)(),K=W??y;return d.jsx(AH.Provider,{value:U,children:d.jsxs(fe,{className:L,sx:C.sx,style:C.style,...x,children:[I&&F.printHeader&&d.jsx("div",{className:"page-print-header",children:typeof F.printHeader=="string"?d.jsx(yo,{html:fu`${F.printHeader}`}):F.printHeader}),I&&F.printHeaderFirstPage&&d.jsx("div",{className:"page-print-header page-print-header-first-page",children:typeof F.printHeaderFirstPage=="string"?d.jsx(yo,{html:fu`${F.printHeaderFirstPage}`}):F.printHeaderFirstPage}),I&&!F.printHeader&&F.printTitle&&d.jsxs("div",{className:"page-print-header",children:[d.jsx("h1",{children:F.printTitle}),F.showPrintDate&&d.jsxs("div",{className:"page-print-date",children:["Printed on: ",new Date().toLocaleString()]})]}),R.name&&R.name!==R.title&&d.jsx("div",{className:"page-heading",children:d.jsx("h1",{children:R.name})}),d.jsx("div",{className:"page-content",children:K}),I&&F.printFooter&&d.jsx("div",{className:"page-print-footer",children:typeof F.printFooter=="string"?d.jsx(yo,{html:fu`${F.printFooter}`}):F.printFooter}),I&&F.printFooterFirstPage&&d.jsx("div",{className:"page-print-footer page-print-footer-first-page",children:typeof F.printFooterFirstPage=="string"?d.jsx(yo,{html:fu`${F.printFooterFirstPage}`}):F.printFooterFirstPage})]})})};class zV extends Mt.Component{getPageProps(){return{}}renderView(){return this.props.children}renderPrintView(){return this.renderView()}render(){const e={...this.props,...this.getPageProps()};return d.jsx(LH,{...e,renderView:()=>this.renderView(),renderPrintView:()=>this.renderPrintView()})}}const gi=R7.scaffold,uC={mobile:600,tablet:1024},OH=({children:t,navigationItems:e=[],appBar:r,className:n="",showAppBar:o=!0,appBarHeight:a=64,appName:l,showThemeSwitcher:c=!1,showPaletteSwitcher:u=!1,onLogoClick:f})=>{const[h,v]=S.useState("desktop"),[g,y]=S.useState(!1),[w,x]=S.useState(!1),[C,j]=S.useState(!1),{navigate:P,location:M}=lk(),E=C?M==null?void 0:M.pathname:void 0;Mt.useEffect(()=>{E&&gi.debug("Current path changed to:",E)},[E]),S.useEffect(()=>{j(!0)},[]);const{appName:R,logo:I}=H0(),F=l||R;S.useEffect(()=>{const Q=()=>{const X=window.innerWidth;X<uC.mobile?v("mobile"):X<=uC.tablet?v("tablet"):v("desktop")};return Q(),window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)},[]);const A=[...e].sort((Q,X)=>(Q.priority||999)-(X.priority||999)),H=()=>{switch(h){case"mobile":{const Q=A.slice(0,5),X=A.slice(5);return{primaryItems:Q,drawerItems:X}}case"tablet":{const Q=A.slice(0,7),X=A.slice(7);return{primaryItems:Q,drawerItems:X}}case"desktop":{const Q=A.slice(0,7),X=A.slice(7);return{primaryItems:Q,drawerItems:X}}default:return{primaryItems:A,drawerItems:[]}}},{primaryItems:G,drawerItems:N}=H(),k=Mt.useMemo(()=>{const Q=r||{};return{...Q,title:Q.title||F,actions:Q.actions}},[r,F]),q=(k==null?void 0:k.logo)||I||d.jsx(bh,{name:(k==null?void 0:k.title)||F,size:"small"}),U=()=>{y(!g)},L=()=>{x(!w)},W=(Q,X="appbar")=>{const re=Q.active||Q.route&&E===Q.route||!Q.active&&!Q.route&&E&&E===`/${Q.id}`;Q.route&&gi.debug(`Route matching for ${Q.id}: ${E} === ${Q.route} = ${re}`);const ce=()=>{if(Q.disabled)return;if(re&&Q.route===E){gi.debug(`Navigation prevented: Already on route ${Q.route}`);return}if(Q.onClick)try{Q.onClick()}catch(me){gi.error("Menu item onClick error:",me)}else if(Q.route)try{if(gi.debug(`Navigating from ${E} to ${Q.route}`),E&&E===Q.route){gi.debug("Final check: Same route detected, skipping navigation");return}P(Q.route)}catch(me){const se=me instanceof Error?me.message:"Unknown error";if(gi.error("Navigation error caught:",me),gi.error("Navigation context:",{from:E,to:Q.route,isActiveItem:re,itemId:Q.id,errorMessage:se}),Q.route&&Q.route!==E)try{gi.debug("Attempting fallback navigation using window.location"),window.location.pathname=Q.route}catch(De){gi.error("Fallback navigation also failed:",De)}}},Y=X!=="drawer";let ne=null;Q.icon?typeof Q.icon=="string"?ne=Iy(Q.icon)||(Y?d.jsx(hS,{}):null):ne=Q.icon:Y&&(ne=d.jsx(hS,{}));const J=d.jsxs(d.Fragment,{children:[ne&&d.jsx("span",{className:`menu-item-icon menu-item-icon-${X}`,children:ne}),d.jsx("span",{className:`menu-item-label menu-item-label-${X}`,children:Q.label}),Q.badge&&d.jsx("span",{className:"menu-item-badge",children:Q.badge})]}),de={className:`menu-item menu-item-${X} ${re?"active":""} ${Q.disabled?"disabled":""}`,"aria-label":Q.label,"aria-current":re?"page":void 0,onClick:Q.disabled?void 0:ce};return Q.href&&!Q.disabled?d.jsx("a",{href:Q.href,...de,target:"_blank",rel:"noopener noreferrer",children:J}):d.jsx("button",{type:"button",...de,disabled:!!(Q.disabled||re&&Q.route===E),children:J})},ee=(()=>{const Q=h==="mobile"?16:h==="tablet"?24:32,X=Q+(o?a:0),re=Q+(h==="mobile"?80:0),ce=Q+(h==="tablet"?w?280:80:0);return{paddingTop:X,paddingBottom:re,paddingLeft:ce,paddingRight:Q}})(),Z=()=>d.jsx("div",{className:"appbar-logo",onClick:f,style:{cursor:f?"pointer":"default"},children:q});return d.jsxs("div",{className:`app-scaffold ${n}`,children:[o&&d.jsx("header",{className:"app-scaffold-appbar",style:{height:a},children:d.jsxs("div",{className:"appbar-content",children:[d.jsxs("div",{className:"appbar-left",children:[(N.length>0||h==="tablet")&&d.jsx("button",{type:"button",className:"menu-button",onClick:h==="tablet"?L:U,"aria-label":h==="tablet"?"Toggle navigation rail":"Open drawer menu",children:d.jsxs("span",{className:"hamburger-icon",children:[d.jsx("span",{},"hamburger-line-1"),d.jsx("span",{},"hamburger-line-2"),d.jsx("span",{},"hamburger-line-3")]})},"menu-button"),(!(k!=null&&k.logoPosition)||k.logoPosition==="left")&&d.jsx(Z,{},"app-logo-left")]}),d.jsxs("div",{className:"appbar-center",children:[(k==null?void 0:k.logoPosition)==="center"&&d.jsx(Z,{},"app-logo-center"),h==="desktop"&&d.jsx("nav",{className:"appbar-navigation",children:G.map(Q=>d.jsx(Mt.Fragment,{children:W(Q,"appbar")},Q.id))},"desktop-navigation")]}),d.jsxs("div",{className:"appbar-right",children:[(k==null?void 0:k.actions)&&d.jsx("div",{className:"appbar-actions",children:k.actions},"appbar-actions"),d.jsxs("div",{className:"appbar-theme-controls",children:[c&&d.jsx(sk,{},"theme-switcher"),u&&d.jsx(ck,{},"palette-switcher")]},"appbar-theme-controls")]})]})}),h==="tablet"&&d.jsx("nav",{className:`navigation-rail ${w?"expanded":"collapsed"}`,children:d.jsx("div",{className:"rail-items",children:G.map(Q=>d.jsx(Mt.Fragment,{children:W(Q,"rail")},Q.id))})}),h==="mobile"&&G.length>0&&d.jsx("nav",{className:"bottom-navigation",children:d.jsx("div",{className:"bottom-nav-items",children:G.map(Q=>d.jsx(Mt.Fragment,{children:W(Q,"bottom")},Q.id))})}),g&&N.length>0&&d.jsx("div",{className:"drawer-overlay",onClick:U,children:d.jsxs("nav",{className:"navigation-drawer",onClick:Q=>Q.stopPropagation(),children:[d.jsxs("div",{className:"drawer-header",children:[d.jsx("h3",{children:"Menu"},"drawer-title"),d.jsx("button",{type:"button",className:"drawer-close",onClick:U,"aria-label":"Close drawer",children:"×"},"drawer-close-button")]}),d.jsxs("div",{className:"drawer-items",children:[d.jsxs("div",{className:"drawer-section",children:[d.jsx("h4",{children:"Navigation"},"navigation-header"),G.map(Q=>d.jsx(Mt.Fragment,{children:W(Q,"drawer")},Q.id))]}),N.length>0&&d.jsxs("div",{className:"drawer-section",children:[d.jsx("h4",{children:"More"},"more-header"),N.map(Q=>d.jsx(Mt.Fragment,{children:W(Q,"drawer")},Q.id))]})]})]})}),d.jsx("main",{className:"app-scaffold-content",style:{paddingTop:`${ee.paddingTop}px`,paddingBottom:`${ee.paddingBottom}px`,paddingLeft:`${ee.paddingLeft}px`,paddingRight:`${ee.paddingRight}px`},children:t})]})};class NH extends S.Component{constructor(e){super(e),this.handleRetry=()=>{this.setState({hasError:!1,error:null,errorInfo:null})},this.handleRefresh=()=>{typeof window<"u"&&window.location.reload()},this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e,errorInfo:null}}componentDidCatch(e,r){var n;this.setState({error:e,errorInfo:r}),console.error("ErrorBoundary caught an error:",e,r),this.props.onError&&this.props.onError(e,r),typeof window<"u"&&(n=window.qwickapps)!=null&&n.logError&&window.qwickapps.logError(e,r)}render(){var e;return this.state.hasError?this.props.fallback?this.props.fallback:d.jsxs("div",{className:"error-boundary",role:"alert",style:{padding:"2rem",textAlign:"center",backgroundColor:"#fef2f2",border:"1px solid #fecaca",borderRadius:"8px",margin:"1rem",color:"#991b1b"},children:[d.jsxs("div",{style:{marginBottom:"1.5rem"},children:[d.jsx("h2",{style:{fontSize:"1.5rem",fontWeight:"bold",marginBottom:"0.5rem",color:"#991b1b"},children:"Something went wrong"}),d.jsx("p",{style:{color:"#7f1d1d",marginBottom:"1rem"},children:"An unexpected error occurred in the application. Please try again or refresh the page."})]}),d.jsxs("div",{style:{display:"flex",gap:"0.75rem",justifyContent:"center",marginBottom:"1rem"},children:[d.jsx(Mr,{variant:"contained",onClick:this.handleRetry,children:"Try Again"}),d.jsx(Mr,{variant:"outlined",onClick:this.handleRefresh,children:"Refresh Page"})]}),this.state.error&&d.jsxs("details",{style:{textAlign:"left",marginTop:"1rem",padding:"1rem",backgroundColor:"#f9fafb",border:"1px solid #d1d5db",borderRadius:"6px"},children:[d.jsx("summary",{style:{cursor:"pointer",fontWeight:"bold",marginBottom:"0.5rem",color:"#374151"},children:"Error Details (Development Mode)"}),d.jsxs("pre",{style:{fontSize:"0.75rem",color:"#374151",whiteSpace:"pre-wrap",overflow:"auto"},children:[this.state.error.toString(),((e=this.state.errorInfo)==null?void 0:e.componentStack)&&d.jsxs(d.Fragment,{children:[d.jsx("br",{}),d.jsx("br",{}),"Component Stack:",this.state.errorInfo.componentStack]})]})]})]}):this.props.children}}const $H=S.createContext(null),BH=(t,e)=>{switch(e.type){case"SET_HIGH_CONTRAST":return{...t,highContrast:e.payload};case"SET_REDUCED_MOTION":return{...t,reducedMotion:e.payload};case"SET_LARGE_TEXT":return{...t,largeText:e.payload};case"SET_FOCUS_VISIBLE":return{...t,focusVisible:e.payload};case"SET_KEYBOARD_USER":return{...t,isKeyboardUser:e.payload};case"ADD_ISSUE":return{...t,issues:[...t.issues,e.payload]};case"CLEAR_ISSUES":return{...t,issues:[]};case"SET_ANNOUNCEMENT":return{...t,lastAnnouncement:e.payload};default:return t}},zH={highContrast:!1,reducedMotion:!1,largeText:!1,focusVisible:!0,isKeyboardUser:!1,issues:[],lastAnnouncement:null,preferences:{}};class DH{constructor(){this.politeRegion=null,this.assertiveRegion=null,this.createLiveRegions()}createLiveRegions(){typeof document>"u"||(this.politeRegion=document.createElement("div"),this.politeRegion.setAttribute("aria-live","polite"),this.politeRegion.setAttribute("aria-atomic","true"),this.politeRegion.setAttribute("id","qwickapps-aria-live-polite"),this.politeRegion.style.cssText=`
383
- position: absolute !important;
384
- left: -10000px !important;
385
- width: 1px !important;
386
- height: 1px !important;
387
- overflow: hidden !important;
388
- `,document.body.appendChild(this.politeRegion),this.assertiveRegion=document.createElement("div"),this.assertiveRegion.setAttribute("aria-live","assertive"),this.assertiveRegion.setAttribute("aria-atomic","true"),this.assertiveRegion.setAttribute("id","qwickapps-aria-live-assertive"),this.assertiveRegion.style.cssText=`
389
- position: absolute !important;
390
- left: -10000px !important;
391
- width: 1px !important;
392
- height: 1px !important;
393
- overflow: hidden !important;
394
- `,document.body.appendChild(this.assertiveRegion))}announce(e,r="polite"){r==="assertive"?this.announceAssertive(e):this.announcePolite(e)}announcePolite(e){this.politeRegion&&(this.politeRegion.textContent="",setTimeout(()=>{this.politeRegion&&(this.politeRegion.textContent=e)},100))}announceAssertive(e){this.assertiveRegion&&(this.assertiveRegion.textContent="",setTimeout(()=>{this.assertiveRegion&&(this.assertiveRegion.textContent=e)},100))}}const Ug=new DH,FH=({children:t,enableAudit:e=!0})=>{const[r,n]=S.useReducer(BH,zH);S.useEffect(()=>{o();const f=a();return l(),e&&c(),()=>{f&&f()}},[e]);const o=()=>{if(!(typeof window>"u")&&(window.matchMedia&&window.matchMedia("(prefers-contrast: high)").matches&&n({type:"SET_HIGH_CONTRAST",payload:!0}),window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches&&n({type:"SET_REDUCED_MOTION",payload:!0}),window.matchMedia)){const f=window.matchMedia("(prefers-contrast: high)"),h=window.matchMedia("(prefers-reduced-motion: reduce)"),v=y=>{n({type:"SET_HIGH_CONTRAST",payload:y.matches})},g=y=>{n({type:"SET_REDUCED_MOTION",payload:y.matches})};return f.addEventListener("change",v),h.addEventListener("change",g),()=>{f.removeEventListener("change",v),h.removeEventListener("change",g)}}},a=()=>{if(typeof document>"u")return;let f=!1;const h=g=>{g.key==="Tab"&&(f=!0,n({type:"SET_KEYBOARD_USER",payload:!0}),document.body.classList.add("keyboard-user"))},v=()=>{f&&(f=!1,n({type:"SET_KEYBOARD_USER",payload:!1}),document.body.classList.remove("keyboard-user"))};return document.addEventListener("keydown",h),document.addEventListener("mousedown",v),()=>{document.removeEventListener("keydown",h),document.removeEventListener("mousedown",v)}},l=()=>{if(typeof document>"u")return;const f=document.createElement("style");f.textContent=`
395
- .keyboard-user *:focus {
396
- outline: 3px solid #005cee !important;
397
- outline-offset: 2px !important;
398
- }
399
-
400
- .high-contrast *:focus {
401
- outline: 3px solid #ffffff !important;
402
- outline-offset: 2px !important;
403
- box-shadow: 0 0 0 1px #000000 !important;
404
- }
405
-
406
- .reduced-motion * {
407
- animation-duration: 0.01ms !important;
408
- animation-iteration-count: 1 !important;
409
- transition-duration: 0.01ms !important;
410
- }
411
-
412
- .large-text {
413
- font-size: 1.2em !important;
414
- }
415
- `,document.head.appendChild(f)},c=()=>{typeof document>"u"||setTimeout(()=>{const f=[];document.querySelectorAll("img:not([alt])").forEach(y=>{f.push({type:"missing-alt-text",message:"Image missing alt attribute",level:"error",element:y})}),document.querySelectorAll("button:not([aria-label]):not([title])").forEach(y=>{var w;(w=y.textContent)!=null&&w.trim()||f.push({type:"unnamed-button",message:"Button missing accessible name",level:"error",element:y})}),document.querySelectorAll("input:not([aria-label]):not([title])").forEach(y=>{const w=y.getAttribute("id");w?document.querySelector(`label[for="${w}"]`)||f.push({type:"unlabeled-input",message:"Form input missing label",level:"error",element:y}):f.push({type:"unlabeled-input",message:"Form input missing label",level:"error",element:y})}),n({type:"CLEAR_ISSUES"}),f.forEach(y=>{n({type:"ADD_ISSUE",payload:y})}),f.length>0&&(console.group("🔍 Accessibility Issues Found"),f.forEach(y=>{(y.level==="error"?console.error:console.warn)(`${y.type}: ${y.message}`)}),console.groupEnd())},1e3)},u={...r,setHighContrast:f=>n({type:"SET_HIGH_CONTRAST",payload:f}),setReducedMotion:f=>n({type:"SET_REDUCED_MOTION",payload:f}),setLargeText:f=>n({type:"SET_LARGE_TEXT",payload:f}),setFocusVisible:f=>n({type:"SET_FOCUS_VISIBLE",payload:f}),announce:(f,h="polite")=>{Ug.announce(f,h),n({type:"SET_ANNOUNCEMENT",payload:{message:f,level:h,timestamp:Date.now()}})},announcePolite:f=>{Ug.announcePolite(f),n({type:"SET_ANNOUNCEMENT",payload:{message:f,level:"polite",timestamp:Date.now()}})},announceAssertive:f=>{Ug.announceAssertive(f),n({type:"SET_ANNOUNCEMENT",payload:{message:f,level:"assertive",timestamp:Date.now()}})},addIssue:f=>n({type:"ADD_ISSUE",payload:f}),clearIssues:()=>n({type:"CLEAR_ISSUES"}),runAudit:c};return S.useEffect(()=>{if(typeof document>"u")return;const{highContrast:f,reducedMotion:h,largeText:v}=r;document.body.classList.toggle("high-contrast",f),document.body.classList.toggle("reduced-motion",h),document.body.classList.toggle("large-text",v)},[r.highContrast,r.reducedMotion,r.largeText]),d.jsx($H.Provider,{value:u,children:t})},HH=({children:t,className:e,style:r,defaultTheme:n,defaultPalette:o,appName:a,logo:l,appId:c,enableScaffolding:u,navigationItems:f=[],appBar:h,showAppBar:v=!0,appBarHeight:g=64,showThemeSwitcher:y,showPaletteSwitcher:w,onLogoClick:x,router:C,dataSource:j,config:P})=>{const M={appName:a??(P==null?void 0:P.app.name),appId:c??(P==null?void 0:P.app.id),logo:l??(P==null?void 0:P.app.logo),enableScaffolding:u??(P==null?void 0:P.ui.enableScaffolding)??!1,showThemeSwitcher:y??(P==null?void 0:P.ui.showThemeSwitcher)??!1,showPaletteSwitcher:w??(P==null?void 0:P.ui.showPaletteSwitcher)??!1,defaultTheme:n??(P==null?void 0:P.ui.defaultTheme),defaultPalette:o??(P==null?void 0:P.ui.defaultPalette)};if(!M.appName)throw new Error("QwickApp requires either appName prop or config with app.name");const[E,R]=S.useState({logo:M.logo,enableScaffolding:M.enableScaffolding,navigationItems:f,appBar:h,showAppBar:v,appBarHeight:g,showThemeSwitcher:M.showThemeSwitcher,showPaletteSwitcher:M.showPaletteSwitcher}),I=N=>{R(k=>({...k,...N}))},F={appName:M.appName,appId:M.appId,...E,onLogoClick:x,updateConfig:I},A=E.enableScaffolding?d.jsx(OH,{appName:M.appName,navigationItems:E.navigationItems,appBar:E.appBar,showAppBar:E.showAppBar,appBarHeight:E.appBarHeight,showThemeSwitcher:E.showThemeSwitcher,showPaletteSwitcher:E.showPaletteSwitcher,onLogoClick:x,children:t}):t,H=j?d.jsx(A7,{dataSource:j,children:A}):A,G=d.jsx(NH,{children:d.jsx(FH,{children:d.jsx(RH,{children:d.jsx("div",{className:`qwick-app ${e||""}`,style:r,children:d.jsx(nB,{appId:M.appId,defaultTheme:M.defaultTheme,defaultPalette:M.defaultPalette,children:d.jsx(BT.Provider,{value:F,children:d.jsx(aB,{children:H})})})})})})});return C?S.cloneElement(C,{},G):G},UH=({size:t=48,showBackground:e=!0,className:r="",style:n={}})=>d.jsxs("svg",{width:t,height:t,viewBox:"0 0 225 225",className:`qwick-icon ${r}`.trim(),style:n,role:"img","aria-label":"QwickApps Icon",children:[e&&d.jsx("rect",{width:"225",height:"225",rx:"48",fill:"var(--theme-surface)"}),d.jsx("g",{transform:"scale(0.9) translate(-5,-5)",children:d.jsxs("g",{transform:"translate(-128,-60)",children:[d.jsx("path",{className:"logo-first-part",fill:"#FE6D0F",d:"M0 0 C1.3480925 -0.00788544 1.3480925 -0.00788544 2.72341919 -0.01593018 C5.67419172 -0.02905871 8.62441792 -0.02041442 11.57519531 -0.01025391 C13.64251813 -0.0122774 15.70984025 -0.01519113 17.77716064 -0.01895142 C22.10443943 -0.02336572 26.43153199 -0.01697508 30.75878906 -0.00292969 C36.2773468 0.01411856 41.79546534 0.00434284 47.31400681 -0.01364708 C51.5831018 -0.02454577 55.85209467 -0.02101006 60.12119293 -0.0132637 C62.15435082 -0.01127624 64.18751828 -0.01366927 66.22066498 -0.02070236 C76.73689794 -0.04908929 86.57929633 -0.04924466 96.65332031 3.38818359 C97.54098083 3.67795074 98.42864136 3.9677179 99.34320068 4.26626587 C114.15399949 9.31896076 126.4675764 21.76744512 133.65332031 35.38818359 C137.44514211 43.9738112 139.81630642 51.43992278 139.7668457 60.84057617 C139.76699173 61.5728241 139.76713776 62.30507202 139.76728821 63.05950928 C139.76659444 65.46727515 139.75882723 67.87496257 139.75097656 70.28271484 C139.74911048 71.95708677 139.74768747 73.63145924 139.74668884 75.30583191 C139.74287867 79.7034558 139.73306121 84.10104644 139.72198486 88.49865723 C139.71173847 92.9898229 139.70718431 97.48099397 139.70214844 101.97216797 C139.69143757 110.77752174 139.6743792 119.58284852 139.65332031 128.38818359 C138.53702723 127.43704375 137.42154262 126.48495501 136.30639648 125.5324707 C135.68512375 125.002379 135.06385101 124.47228729 134.42375183 123.9261322 C132.20679827 122.00029626 130.09344729 119.97434276 127.96582031 117.95068359 C121.3544337 111.96606452 113.93765643 107.63396094 105.65332031 104.38818359 C105.64397461 103.07736816 105.63462891 101.76655273 105.625 100.41601562 C105.58487807 95.51415049 105.51905854 90.61289839 105.44580078 85.71142578 C105.41771934 83.59724858 105.39644155 81.4829689 105.38232422 79.36865234 C105.36071633 76.31473808 105.31397548 73.26203954 105.26269531 70.20849609 C105.26085236 68.80943527 105.26085236 68.80943527 105.25897217 67.3821106 C105.05613797 58.12249123 102.35361677 49.9326592 95.65332031 43.38818359 C93.37687152 41.83978825 91.12212389 40.64502905 88.65332031 39.38818359 C88.0702562 39.02808197 87.48719208 38.66798035 86.88645935 38.29696655 C83.71010797 37.00434036 80.90937194 37.11787995 77.4855957 37.09765625 C76.41412041 37.08758041 76.41412041 37.08758041 75.32099915 37.07730103 C72.96425383 37.05833326 70.60779341 37.05439768 68.25097656 37.05224609 C66.60957218 37.04581795 64.96816895 37.03908958 63.32676697 37.03207397 C59.88782087 37.02010475 56.44897522 37.01639285 53.01000977 37.01757812 C48.60705215 37.01778144 44.20473906 36.99046492 39.80193424 36.95603371 C36.41239981 36.93377976 33.02302096 36.92974009 29.63342094 36.93079758 C28.01032729 36.9284399 26.38722945 36.91960691 24.76420784 36.90413284 C22.49249412 36.88449971 20.22217644 36.89029871 17.95043945 36.90234375 C16.65900528 36.89949371 15.36757111 36.89664368 14.03700256 36.89370728 C10.0894619 37.47058336 8.4533178 38.60386481 5.65332031 41.38818359 C4.36488826 43.96504769 4.49328598 45.87037118 4.44799805 48.75585938 C4.42805283 49.87687042 4.4081076 50.99788147 4.38755798 52.15286255 C4.36248924 53.97477615 4.36248924 53.97477615 4.33691406 55.83349609 C4.31613297 57.07364471 4.29535187 58.31379333 4.27394104 59.59152222 C4.21954326 62.88930182 4.16931936 66.18711079 4.12109375 69.48498535 C4.07086797 72.84991002 4.01524033 76.21474503 3.95996094 79.57958984 C3.85188552 86.18238589 3.75285167 92.78523103 3.65332031 99.38818359 C-7.89667969 99.38818359 -19.44667969 99.38818359 -31.34667969 99.38818359 C-31.54722373 80.32312956 -31.54722373 80.32312956 -31.59082031 72.14990234 C-31.6206242 66.58894779 -31.65574998 61.02840778 -31.72387695 55.46777344 C-31.77850048 50.98085383 -31.80816368 46.4943792 -31.8210659 42.00715256 C-31.83025168 40.30161924 -31.84818881 38.59610823 -31.87532997 36.89076614 C-32.04228479 25.95844515 -31.41983501 17.49965078 -24.17089844 8.76708984 C-23.46578125 8.16767578 -22.76066406 7.56826172 -22.03417969 6.95068359 C-21.33679688 6.33322266 -20.63941406 5.71576172 -19.92089844 5.07958984 C-13.46479327 0.83756627 -7.52553047 -0.0549708 0 0 Z",transform:"translate(185.3466796875,71.61181640625)"}),d.jsx("path",{className:"logo-second-part",fill:"#03BBCA",d:"M0 0 C11.55 0 23.1 0 35 0 C35.04125 3.25875 35.0825 6.5175 35.125 9.875 C35.47125788 19.41754586 36.68077925 25.86440869 43.74900818 32.68862915 C50.89908532 38.23277376 58.35470598 37.77209826 66.97265625 37.5859375 C68.50677317 37.57472707 70.04091178 37.56619562 71.57505798 37.56021118 C75.58524366 37.53745715 79.59409585 37.47865487 83.60375977 37.4119873 C87.70635953 37.3502711 91.80917779 37.32313407 95.91210938 37.29296875 C103.94201372 37.2288942 111.97084033 37.12668322 120 37 C117.59324168 34.57863654 115.18359847 32.1601637 112.7734375 29.7421875 C111.75527954 28.71774536 111.75527954 28.71774536 110.71655273 27.67260742 C106.8829741 23.82970702 102.99745284 20.13165615 98.8515625 16.625 C95.05012274 13.28871531 91.43825451 9.70885787 88 6 C88 5.67 88 5.34 88 5 C110.75508023 4.37644173 110.75508023 4.37644173 121 8 C122.051875 8.35191406 123.10375 8.70382813 124.1875 9.06640625 C147.22737862 17.29881571 164.80240124 33.21278198 175.41943359 55.15429688 C179.68328916 64.37125249 183.15018908 73.71312925 183.09765625 83.95703125 C183.09443359 85.06884766 183.09121094 86.18066406 183.08789062 87.32617188 C183.07951172 88.47666016 183.07113281 89.62714844 183.0625 90.8125 C183.05798828 91.98232422 183.05347656 93.15214844 183.04882812 94.35742188 C183.0370693 97.23833358 183.02063426 100.11914044 183 103 C180.55229893 100.57810948 178.13689836 98.15012289 175.81640625 95.60546875 C164.49520711 83.46019619 148.63443632 75.12990963 131.85790539 74.44966316 C128.34721591 74.38623286 124.84006559 74.37663155 121.32896042 74.40841484 C118.45052331 74.43424814 115.57348925 74.42890466 112.69497681 74.41651917 C106.58815705 74.39596309 100.48178961 74.41534647 94.375 74.4375 C87.28101821 74.45873236 80.18749777 74.46298673 73.09352493 74.43699837 C70.28119532 74.43367673 67.46978403 74.45471435 64.65756226 74.47740173 C46.51926055 74.50804771 31.73862671 70.07462761 18.28125 57.27734375 C17.5284375 56.52582031 16.775625 55.77429688 16 55 C15.02546875 54.04287109 15.02546875 54.04287109 14.03125 53.06640625 C3.06105089 41.49477078 -0.55499727 26.82435381 -0.1875 11.3125 C-0.125625 7.579375 -0.06375 3.84625 0 0 Z",transform:"translate(154,171)"})]})})]}),VH=({icon:t,name:e,size:r="small",onClick:n,style:o,className:a,...l})=>{const c=(h="small")=>({tiny:20,small:32,medium:40,large:52,"extra-large":68})[h]||32,u=t||d.jsx(UH,{}),f=S.isValidElement(u)?S.cloneElement(u,{size:u.props.size||c(r),style:{position:"relative",left:"25px",zIndex:999,...u.props.style}}):u;return d.jsx(bh,{name:e,size:r,image:f,imagePosition:"start",style:{cursor:n?"pointer":"default",zIndex:1e3,...o},className:a,onClick:n,...l})};function mk(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let Hs=mk();function WH(t){Hs=t}const gk=/[&<>"']/,qH=new RegExp(gk.source,"g"),yk=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,GH=new RegExp(yk.source,"g"),XH={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},dC=t=>XH[t];function Sn(t,e){if(e){if(gk.test(t))return t.replace(qH,dC)}else if(yk.test(t))return t.replace(GH,dC);return t}const KH=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function vk(t){return t.replace(KH,(e,r)=>(r=r.toLowerCase(),r==="colon"?":":r.charAt(0)==="#"?r.charAt(1)==="x"?String.fromCharCode(parseInt(r.substring(2),16)):String.fromCharCode(+r.substring(1)):""))}const QH=/(^|[^\[])\^/g;function sr(t,e){t=typeof t=="string"?t:t.source,e=e||"";const r={replace:(n,o)=>(o=o.source||o,o=o.replace(QH,"$1"),t=t.replace(n,o),r),getRegex:()=>new RegExp(t,e)};return r}const YH=/[^\w:]/g,JH=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function pC(t,e,r){if(t){let n;try{n=decodeURIComponent(vk(r)).replace(YH,"").toLowerCase()}catch{return null}if(n.indexOf("javascript:")===0||n.indexOf("vbscript:")===0||n.indexOf("data:")===0)return null}e&&!JH.test(r)&&(r=rU(e,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch{return null}return r}const Yp={},ZH=/^[^:]+:\/*[^/]*$/,eU=/^([^:]+:)[\s\S]*$/,tU=/^([^:]+:\/*[^/]*)[\s\S]*$/;function rU(t,e){Yp[" "+t]||(ZH.test(t)?Yp[" "+t]=t+"/":Yp[" "+t]=pf(t,"/",!0)),t=Yp[" "+t];const r=t.indexOf(":")===-1;return e.substring(0,2)==="//"?r?e:t.replace(eU,"$1")+e:e.charAt(0)==="/"?r?e:t.replace(tU,"$1")+e:t+e}const Nf={exec:function(){}};function fC(t,e){const r=t.replace(/\|/g,(a,l,c)=>{let u=!1,f=l;for(;--f>=0&&c[f]==="\\";)u=!u;return u?"|":" |"}),n=r.split(/ \|/);let o=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(/\\\|/g,"|");return n}function pf(t,e,r){const n=t.length;if(n===0)return"";let o=0;for(;o<n;){const a=t.charAt(n-o-1);if(a===e&&!r)o++;else if(a!==e&&r)o++;else break}return t.slice(0,n-o)}function nU(t,e){if(t.indexOf(e[1])===-1)return-1;const r=t.length;let n=0,o=0;for(;o<r;o++)if(t[o]==="\\")o++;else if(t[o]===e[0])n++;else if(t[o]===e[1]&&(n--,n<0))return o;return-1}function oU(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function hC(t,e){if(e<1)return"";let r="";for(;e>1;)e&1&&(r+=t),e>>=1,t+=t;return r+t}function mC(t,e,r,n){const o=e.href,a=e.title?Sn(e.title):null,l=t[1].replace(/\\([\[\]])/g,"$1");if(t[0].charAt(0)!=="!"){n.state.inLink=!0;const c={type:"link",raw:r,href:o,title:a,text:l,tokens:n.inlineTokens(l)};return n.state.inLink=!1,c}return{type:"image",raw:r,href:o,title:a,text:Sn(l)}}function iU(t,e){const r=t.match(/^(\s+)(?:```)/);if(r===null)return e;const n=r[1];return e.split(`
416
- `).map(o=>{const a=o.match(/^\s+/);if(a===null)return o;const[l]=a;return l.length>=n.length?o.slice(n.length):o}).join(`
417
- `)}class hv{constructor(e){this.options=e||Hs}space(e){const r=this.rules.block.newline.exec(e);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(e){const r=this.rules.block.code.exec(e);if(r){const n=r[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:pf(n,`
418
- `)}}}fences(e){const r=this.rules.block.fences.exec(e);if(r){const n=r[0],o=iU(n,r[3]||"");return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline._escapes,"$1"):r[2],text:o}}}heading(e){const r=this.rules.block.heading.exec(e);if(r){let n=r[2].trim();if(/#$/.test(n)){const o=pf(n,"#");(this.options.pedantic||!o||/ $/.test(o))&&(n=o.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){const r=this.rules.block.hr.exec(e);if(r)return{type:"hr",raw:r[0]}}blockquote(e){const r=this.rules.block.blockquote.exec(e);if(r){const n=r[0].replace(/^ *>[ \t]?/gm,""),o=this.lexer.state.top;this.lexer.state.top=!0;const a=this.lexer.blockTokens(n);return this.lexer.state.top=o,{type:"blockquote",raw:r[0],tokens:a,text:n}}}list(e){let r=this.rules.block.list.exec(e);if(r){let n,o,a,l,c,u,f,h,v,g,y,w,x=r[1].trim();const C=x.length>1,j={type:"list",raw:"",ordered:C,start:C?+x.slice(0,-1):"",loose:!1,items:[]};x=C?`\\d{1,9}\\${x.slice(-1)}`:`\\${x}`,this.options.pedantic&&(x=C?x:"[*+-]");const P=new RegExp(`^( {0,3}${x})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;e&&(w=!1,!(!(r=P.exec(e))||this.rules.block.hr.test(e)));){if(n=r[0],e=e.substring(n.length),h=r[2].split(`
419
- `,1)[0].replace(/^\t+/,E=>" ".repeat(3*E.length)),v=e.split(`
420
- `,1)[0],this.options.pedantic?(l=2,y=h.trimLeft()):(l=r[2].search(/[^ ]/),l=l>4?1:l,y=h.slice(l),l+=r[1].length),u=!1,!h&&/^ *$/.test(v)&&(n+=v+`
421
- `,e=e.substring(v.length+1),w=!0),!w){const E=new RegExp(`^ {0,${Math.min(3,l-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),R=new RegExp(`^ {0,${Math.min(3,l-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),I=new RegExp(`^ {0,${Math.min(3,l-1)}}(?:\`\`\`|~~~)`),F=new RegExp(`^ {0,${Math.min(3,l-1)}}#`);for(;e&&(g=e.split(`
422
- `,1)[0],v=g,this.options.pedantic&&(v=v.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(I.test(v)||F.test(v)||E.test(v)||R.test(e)));){if(v.search(/[^ ]/)>=l||!v.trim())y+=`
423
- `+v.slice(l);else{if(u||h.search(/[^ ]/)>=4||I.test(h)||F.test(h)||R.test(h))break;y+=`
424
- `+v}!u&&!v.trim()&&(u=!0),n+=g+`
425
- `,e=e.substring(g.length+1),h=v.slice(l)}}j.loose||(f?j.loose=!0:/\n *\n *$/.test(n)&&(f=!0)),this.options.gfm&&(o=/^\[[ xX]\] /.exec(y),o&&(a=o[0]!=="[ ] ",y=y.replace(/^\[[ xX]\] +/,""))),j.items.push({type:"list_item",raw:n,task:!!o,checked:a,loose:!1,text:y}),j.raw+=n}j.items[j.items.length-1].raw=n.trimRight(),j.items[j.items.length-1].text=y.trimRight(),j.raw=j.raw.trimRight();const M=j.items.length;for(c=0;c<M;c++)if(this.lexer.state.top=!1,j.items[c].tokens=this.lexer.blockTokens(j.items[c].text,[]),!j.loose){const E=j.items[c].tokens.filter(I=>I.type==="space"),R=E.length>0&&E.some(I=>/\n.*\n/.test(I.raw));j.loose=R}if(j.loose)for(c=0;c<M;c++)j.items[c].loose=!0;return j}}html(e){const r=this.rules.block.html.exec(e);if(r){const n={type:"html",raw:r[0],pre:!this.options.sanitizer&&(r[1]==="pre"||r[1]==="script"||r[1]==="style"),text:r[0]};if(this.options.sanitize){const o=this.options.sanitizer?this.options.sanitizer(r[0]):Sn(r[0]);n.type="paragraph",n.text=o,n.tokens=this.lexer.inline(o)}return n}}def(e){const r=this.rules.block.def.exec(e);if(r){const n=r[1].toLowerCase().replace(/\s+/g," "),o=r[2]?r[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",a=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline._escapes,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:o,title:a}}}table(e){const r=this.rules.block.table.exec(e);if(r){const n={type:"table",header:fC(r[1]).map(o=>({text:o})),align:r[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:r[3]&&r[3].trim()?r[3].replace(/\n[ \t]*$/,"").split(`
426
- `):[]};if(n.header.length===n.align.length){n.raw=r[0];let o=n.align.length,a,l,c,u;for(a=0;a<o;a++)/^ *-+: *$/.test(n.align[a])?n.align[a]="right":/^ *:-+: *$/.test(n.align[a])?n.align[a]="center":/^ *:-+ *$/.test(n.align[a])?n.align[a]="left":n.align[a]=null;for(o=n.rows.length,a=0;a<o;a++)n.rows[a]=fC(n.rows[a],n.header.length).map(f=>({text:f}));for(o=n.header.length,l=0;l<o;l++)n.header[l].tokens=this.lexer.inline(n.header[l].text);for(o=n.rows.length,l=0;l<o;l++)for(u=n.rows[l],c=0;c<u.length;c++)u[c].tokens=this.lexer.inline(u[c].text);return n}}}lheading(e){const r=this.rules.block.lheading.exec(e);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(e){const r=this.rules.block.paragraph.exec(e);if(r){const n=r[1].charAt(r[1].length-1)===`
427
- `?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(e){const r=this.rules.block.text.exec(e);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(e){const r=this.rules.inline.escape.exec(e);if(r)return{type:"escape",raw:r[0],text:Sn(r[1])}}tag(e){const r=this.rules.inline.tag.exec(e);if(r)return!this.lexer.state.inLink&&/^<a /i.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):Sn(r[0]):r[0]}}link(e){const r=this.rules.inline.link.exec(e);if(r){const n=r[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;const l=pf(n.slice(0,-1),"\\");if((n.length-l.length)%2===0)return}else{const l=nU(r[2],"()");if(l>-1){const u=(r[0].indexOf("!")===0?5:4)+r[1].length+l;r[2]=r[2].substring(0,l),r[0]=r[0].substring(0,u).trim(),r[3]=""}}let o=r[2],a="";if(this.options.pedantic){const l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);l&&(o=l[1],a=l[3])}else a=r[3]?r[3].slice(1,-1):"";return o=o.trim(),/^</.test(o)&&(this.options.pedantic&&!/>$/.test(n)?o=o.slice(1):o=o.slice(1,-1)),mC(r,{href:o&&o.replace(this.rules.inline._escapes,"$1"),title:a&&a.replace(this.rules.inline._escapes,"$1")},r[0],this.lexer)}}reflink(e,r){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let o=(n[2]||n[1]).replace(/\s+/g," ");if(o=r[o.toLowerCase()],!o){const a=n[0].charAt(0);return{type:"text",raw:a,text:a}}return mC(n,o,n[0],this.lexer)}}emStrong(e,r,n=""){let o=this.rules.inline.emStrong.lDelim.exec(e);if(!o||o[3]&&n.match(/[\p{L}\p{N}]/u))return;const a=o[1]||o[2]||"";if(!a||a&&(n===""||this.rules.inline.punctuation.exec(n))){const l=o[0].length-1;let c,u,f=l,h=0;const v=o[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(v.lastIndex=0,r=r.slice(-1*e.length+l);(o=v.exec(r))!=null;){if(c=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!c)continue;if(u=c.length,o[3]||o[4]){f+=u;continue}else if((o[5]||o[6])&&l%3&&!((l+u)%3)){h+=u;continue}if(f-=u,f>0)continue;u=Math.min(u,u+f+h);const g=e.slice(0,l+o.index+(o[0].length-c.length)+u);if(Math.min(l,u)%2){const w=g.slice(1,-1);return{type:"em",raw:g,text:w,tokens:this.lexer.inlineTokens(w)}}const y=g.slice(2,-2);return{type:"strong",raw:g,text:y,tokens:this.lexer.inlineTokens(y)}}}}codespan(e){const r=this.rules.inline.code.exec(e);if(r){let n=r[2].replace(/\n/g," ");const o=/[^ ]/.test(n),a=/^ /.test(n)&&/ $/.test(n);return o&&a&&(n=n.substring(1,n.length-1)),n=Sn(n,!0),{type:"codespan",raw:r[0],text:n}}}br(e){const r=this.rules.inline.br.exec(e);if(r)return{type:"br",raw:r[0]}}del(e){const r=this.rules.inline.del.exec(e);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(e,r){const n=this.rules.inline.autolink.exec(e);if(n){let o,a;return n[2]==="@"?(o=Sn(this.options.mangle?r(n[1]):n[1]),a="mailto:"+o):(o=Sn(n[1]),a=o),{type:"link",raw:n[0],text:o,href:a,tokens:[{type:"text",raw:o,text:o}]}}}url(e,r){let n;if(n=this.rules.inline.url.exec(e)){let o,a;if(n[2]==="@")o=Sn(this.options.mangle?r(n[0]):n[0]),a="mailto:"+o;else{let l;do l=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0];while(l!==n[0]);o=Sn(n[0]),n[1]==="www."?a="http://"+n[0]:a=n[0]}return{type:"link",raw:n[0],text:o,href:a,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(e,r){const n=this.rules.inline.text.exec(e);if(n){let o;return this.lexer.state.inRawBlock?o=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):Sn(n[0]):n[0]:o=Sn(this.options.smartypants?r(n[0]):n[0]),{type:"text",raw:n[0],text:o}}}}const bt={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Nf,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};bt._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;bt._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;bt.def=sr(bt.def).replace("label",bt._label).replace("title",bt._title).getRegex();bt.bullet=/(?:[*+-]|\d{1,9}[.)])/;bt.listItemStart=sr(/^( *)(bull) */).replace("bull",bt.bullet).getRegex();bt.list=sr(bt.list).replace(/bull/g,bt.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+bt.def.source+")").getRegex();bt._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";bt._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;bt.html=sr(bt.html,"i").replace("comment",bt._comment).replace("tag",bt._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();bt.paragraph=sr(bt._paragraph).replace("hr",bt.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bt._tag).getRegex();bt.blockquote=sr(bt.blockquote).replace("paragraph",bt.paragraph).getRegex();bt.normal={...bt};bt.gfm={...bt.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};bt.gfm.table=sr(bt.gfm.table).replace("hr",bt.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bt._tag).getRegex();bt.gfm.paragraph=sr(bt._paragraph).replace("hr",bt.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",bt.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bt._tag).getRegex();bt.pedantic={...bt.normal,html:sr(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",bt._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Nf,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:sr(bt.normal._paragraph).replace("hr",bt.hr).replace("heading",` *#{1,6} *[^
428
- ]`).replace("lheading",bt.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const st={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Nf,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Nf,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};st._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";st.punctuation=sr(st.punctuation).replace(/punctuation/g,st._punctuation).getRegex();st.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;st.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;st._comment=sr(bt._comment).replace("(?:-->|$)","-->").getRegex();st.emStrong.lDelim=sr(st.emStrong.lDelim).replace(/punct/g,st._punctuation).getRegex();st.emStrong.rDelimAst=sr(st.emStrong.rDelimAst,"g").replace(/punct/g,st._punctuation).getRegex();st.emStrong.rDelimUnd=sr(st.emStrong.rDelimUnd,"g").replace(/punct/g,st._punctuation).getRegex();st._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;st._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;st._email=/[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])?)+(?![-_])/;st.autolink=sr(st.autolink).replace("scheme",st._scheme).replace("email",st._email).getRegex();st._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;st.tag=sr(st.tag).replace("comment",st._comment).replace("attribute",st._attribute).getRegex();st._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;st._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;st._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;st.link=sr(st.link).replace("label",st._label).replace("href",st._href).replace("title",st._title).getRegex();st.reflink=sr(st.reflink).replace("label",st._label).replace("ref",bt._label).getRegex();st.nolink=sr(st.nolink).replace("ref",bt._label).getRegex();st.reflinkSearch=sr(st.reflinkSearch,"g").replace("reflink",st.reflink).replace("nolink",st.nolink).getRegex();st.normal={...st};st.pedantic={...st.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:sr(/^!?\[(label)\]\((.*?)\)/).replace("label",st._label).getRegex(),reflink:sr(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",st._label).getRegex()};st.gfm={...st.normal,escape:sr(st.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/};st.gfm.url=sr(st.gfm.url,"i").replace("email",st.gfm._extended_email).getRegex();st.breaks={...st.gfm,br:sr(st.br).replace("{2,}","*").getRegex(),text:sr(st.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};function aU(t){return t.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function gC(t){let e="",r,n;const o=t.length;for(r=0;r<o;r++)n=t.charCodeAt(r),Math.random()>.5&&(n="x"+n.toString(16)),e+="&#"+n+";";return e}class qa{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Hs,this.options.tokenizer=this.options.tokenizer||new hv,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const r={block:bt.normal,inline:st.normal};this.options.pedantic?(r.block=bt.pedantic,r.inline=st.pedantic):this.options.gfm&&(r.block=bt.gfm,this.options.breaks?r.inline=st.breaks:r.inline=st.gfm),this.tokenizer.rules=r}static get rules(){return{block:bt,inline:st}}static lex(e,r){return new qa(r).lex(e)}static lexInline(e,r){return new qa(r).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
429
- `),this.blockTokens(e,this.tokens);let r;for(;r=this.inlineQueue.shift();)this.inlineTokens(r.src,r.tokens);return this.tokens}blockTokens(e,r=[]){this.options.pedantic?e=e.replace(/\t/g," ").replace(/^ +$/gm,""):e=e.replace(/^( *)(\t+)/gm,(c,u,f)=>u+" ".repeat(f.length));let n,o,a,l;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(c=>(n=c.call({lexer:this},e,r))?(e=e.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length),n.raw.length===1&&r.length>0?r[r.length-1].raw+=`
430
- `:r.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length),o=r[r.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=`
431
- `+n.raw,o.text+=`
432
- `+n.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(n);continue}if(n=this.tokenizer.fences(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.heading(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.hr(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.blockquote(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.list(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.html(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length),o=r[r.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=`
433
- `+n.raw,o.text+=`
434
- `+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.lheading(e)){e=e.substring(n.raw.length),r.push(n);continue}if(a=e,this.options.extensions&&this.options.extensions.startBlock){let c=1/0;const u=e.slice(1);let f;this.options.extensions.startBlock.forEach(function(h){f=h.call({lexer:this},u),typeof f=="number"&&f>=0&&(c=Math.min(c,f))}),c<1/0&&c>=0&&(a=e.substring(0,c+1))}if(this.state.top&&(n=this.tokenizer.paragraph(a))){o=r[r.length-1],l&&o.type==="paragraph"?(o.raw+=`
435
- `+n.raw,o.text+=`
436
- `+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(n),l=a.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length),o=r[r.length-1],o&&o.type==="text"?(o.raw+=`
437
- `+n.raw,o.text+=`
438
- `+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(n);continue}if(e){const c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return this.state.top=!0,r}inline(e,r=[]){return this.inlineQueue.push({src:e,tokens:r}),r}inlineTokens(e,r=[]){let n,o,a,l=e,c,u,f;if(this.tokens.links){const h=Object.keys(this.tokens.links);if(h.length>0)for(;(c=this.tokenizer.rules.inline.reflinkSearch.exec(l))!=null;)h.includes(c[0].slice(c[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,c.index)+"["+hC("a",c[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(c=this.tokenizer.rules.inline.blockSkip.exec(l))!=null;)l=l.slice(0,c.index)+"["+hC("a",c[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(c=this.tokenizer.rules.inline.escapedEmSt.exec(l))!=null;)l=l.slice(0,c.index+c[0].length-2)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(u||(f=""),u=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(h=>(n=h.call({lexer:this},e,r))?(e=e.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),o=r[r.length-1],o&&n.type==="text"&&o.type==="text"?(o.raw+=n.raw,o.text+=n.text):r.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),o=r[r.length-1],o&&n.type==="text"&&o.type==="text"?(o.raw+=n.raw,o.text+=n.text):r.push(n);continue}if(n=this.tokenizer.emStrong(e,l,f)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.autolink(e,gC)){e=e.substring(n.raw.length),r.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e,gC))){e=e.substring(n.raw.length),r.push(n);continue}if(a=e,this.options.extensions&&this.options.extensions.startInline){let h=1/0;const v=e.slice(1);let g;this.options.extensions.startInline.forEach(function(y){g=y.call({lexer:this},v),typeof g=="number"&&g>=0&&(h=Math.min(h,g))}),h<1/0&&h>=0&&(a=e.substring(0,h+1))}if(n=this.tokenizer.inlineText(a,aU)){e=e.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(f=n.raw.slice(-1)),u=!0,o=r[r.length-1],o&&o.type==="text"?(o.raw+=n.raw,o.text+=n.text):r.push(n);continue}if(e){const h="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return r}}class mv{constructor(e){this.options=e||Hs}code(e,r,n){const o=(r||"").match(/\S*/)[0];if(this.options.highlight){const a=this.options.highlight(e,o);a!=null&&a!==e&&(n=!0,e=a)}return e=e.replace(/\n$/,"")+`
439
- `,o?'<pre><code class="'+this.options.langPrefix+Sn(o)+'">'+(n?e:Sn(e,!0))+`</code></pre>
440
- `:"<pre><code>"+(n?e:Sn(e,!0))+`</code></pre>
441
- `}blockquote(e){return`<blockquote>
442
- ${e}</blockquote>
443
- `}html(e){return e}heading(e,r,n,o){if(this.options.headerIds){const a=this.options.headerPrefix+o.slug(n);return`<h${r} id="${a}">${e}</h${r}>
444
- `}return`<h${r}>${e}</h${r}>
445
- `}hr(){return this.options.xhtml?`<hr/>
446
- `:`<hr>
447
- `}list(e,r,n){const o=r?"ol":"ul",a=r&&n!==1?' start="'+n+'"':"";return"<"+o+a+`>
448
- `+e+"</"+o+`>
449
- `}listitem(e){return`<li>${e}</li>
450
- `}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>
451
- `}table(e,r){return r&&(r=`<tbody>${r}</tbody>`),`<table>
452
- <thead>
453
- `+e+`</thead>
454
- `+r+`</table>
455
- `}tablerow(e){return`<tr>
456
- ${e}</tr>
457
- `}tablecell(e,r){const n=r.header?"th":"td";return(r.align?`<${n} align="${r.align}">`:`<${n}>`)+e+`</${n}>
458
- `}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,r,n){if(e=pC(this.options.sanitize,this.options.baseUrl,e),e===null)return n;let o='<a href="'+e+'"';return r&&(o+=' title="'+r+'"'),o+=">"+n+"</a>",o}image(e,r,n){if(e=pC(this.options.sanitize,this.options.baseUrl,e),e===null)return n;let o=`<img src="${e}" alt="${n}"`;return r&&(o+=` title="${r}"`),o+=this.options.xhtml?"/>":">",o}text(e){return e}}class bk{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,r,n){return""+n}image(e,r,n){return""+n}br(){return""}}class xk{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,r){let n=e,o=0;if(this.seen.hasOwnProperty(n)){o=this.seen[e];do o++,n=e+"-"+o;while(this.seen.hasOwnProperty(n))}return r||(this.seen[e]=o,this.seen[n]=0),n}slug(e,r={}){const n=this.serialize(e);return this.getNextSafeSlug(n,r.dryrun)}}class Ga{constructor(e){this.options=e||Hs,this.options.renderer=this.options.renderer||new mv,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new bk,this.slugger=new xk}static parse(e,r){return new Ga(r).parse(e)}static parseInline(e,r){return new Ga(r).parseInline(e)}parse(e,r=!0){let n="",o,a,l,c,u,f,h,v,g,y,w,x,C,j,P,M,E,R,I;const F=e.length;for(o=0;o<F;o++){if(y=e[o],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[y.type]&&(I=this.options.extensions.renderers[y.type].call({parser:this},y),I!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(y.type))){n+=I||"";continue}switch(y.type){case"space":continue;case"hr":{n+=this.renderer.hr();continue}case"heading":{n+=this.renderer.heading(this.parseInline(y.tokens),y.depth,vk(this.parseInline(y.tokens,this.textRenderer)),this.slugger);continue}case"code":{n+=this.renderer.code(y.text,y.lang,y.escaped);continue}case"table":{for(v="",h="",c=y.header.length,a=0;a<c;a++)h+=this.renderer.tablecell(this.parseInline(y.header[a].tokens),{header:!0,align:y.align[a]});for(v+=this.renderer.tablerow(h),g="",c=y.rows.length,a=0;a<c;a++){for(f=y.rows[a],h="",u=f.length,l=0;l<u;l++)h+=this.renderer.tablecell(this.parseInline(f[l].tokens),{header:!1,align:y.align[l]});g+=this.renderer.tablerow(h)}n+=this.renderer.table(v,g);continue}case"blockquote":{g=this.parse(y.tokens),n+=this.renderer.blockquote(g);continue}case"list":{for(w=y.ordered,x=y.start,C=y.loose,c=y.items.length,g="",a=0;a<c;a++)P=y.items[a],M=P.checked,E=P.task,j="",P.task&&(R=this.renderer.checkbox(M),C?P.tokens.length>0&&P.tokens[0].type==="paragraph"?(P.tokens[0].text=R+" "+P.tokens[0].text,P.tokens[0].tokens&&P.tokens[0].tokens.length>0&&P.tokens[0].tokens[0].type==="text"&&(P.tokens[0].tokens[0].text=R+" "+P.tokens[0].tokens[0].text)):P.tokens.unshift({type:"text",text:R}):j+=R),j+=this.parse(P.tokens,C),g+=this.renderer.listitem(j,E,M);n+=this.renderer.list(g,w,x);continue}case"html":{n+=this.renderer.html(y.text);continue}case"paragraph":{n+=this.renderer.paragraph(this.parseInline(y.tokens));continue}case"text":{for(g=y.tokens?this.parseInline(y.tokens):y.text;o+1<F&&e[o+1].type==="text";)y=e[++o],g+=`
459
- `+(y.tokens?this.parseInline(y.tokens):y.text);n+=r?this.renderer.paragraph(g):g;continue}default:{const A='Token with "'+y.type+'" type was not found.';if(this.options.silent){console.error(A);return}else throw new Error(A)}}}return n}parseInline(e,r){r=r||this.renderer;let n="",o,a,l;const c=e.length;for(o=0;o<c;o++){if(a=e[o],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[a.type]&&(l=this.options.extensions.renderers[a.type].call({parser:this},a),l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type))){n+=l||"";continue}switch(a.type){case"escape":{n+=r.text(a.text);break}case"html":{n+=r.html(a.text);break}case"link":{n+=r.link(a.href,a.title,this.parseInline(a.tokens,r));break}case"image":{n+=r.image(a.href,a.title,a.text);break}case"strong":{n+=r.strong(this.parseInline(a.tokens,r));break}case"em":{n+=r.em(this.parseInline(a.tokens,r));break}case"codespan":{n+=r.codespan(a.text);break}case"br":{n+=r.br();break}case"del":{n+=r.del(this.parseInline(a.tokens,r));break}case"text":{n+=r.text(a.text);break}default:{const u='Token with "'+a.type+'" type was not found.';if(this.options.silent){console.error(u);return}else throw new Error(u)}}}return n}}class $f{constructor(e){this.options=e||Hs}preprocess(e){return e}postprocess(e){return e}}hs($f,"passThroughHooks",new Set(["preprocess","postprocess"]));function sU(t,e,r){return n=>{if(n.message+=`
460
- Please report this to https://github.com/markedjs/marked.`,t){const o="<p>An error occurred:</p><pre>"+Sn(n.message+"",!0)+"</pre>";if(e)return Promise.resolve(o);if(r){r(null,o);return}return o}if(e)return Promise.reject(n);if(r){r(n);return}throw n}}function wk(t,e){return(r,n,o)=>{typeof n=="function"&&(o=n,n=null);const a={...n};n={...vt.defaults,...a};const l=sU(n.silent,n.async,o);if(typeof r>"u"||r===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(oU(n),n.hooks&&(n.hooks.options=n),o){const c=n.highlight;let u;try{n.hooks&&(r=n.hooks.preprocess(r)),u=t(r,n)}catch(v){return l(v)}const f=function(v){let g;if(!v)try{n.walkTokens&&vt.walkTokens(u,n.walkTokens),g=e(u,n),n.hooks&&(g=n.hooks.postprocess(g))}catch(y){v=y}return n.highlight=c,v?l(v):o(null,g)};if(!c||c.length<3||(delete n.highlight,!u.length))return f();let h=0;vt.walkTokens(u,function(v){v.type==="code"&&(h++,setTimeout(()=>{c(v.text,v.lang,function(g,y){if(g)return f(g);y!=null&&y!==v.text&&(v.text=y,v.escaped=!0),h--,h===0&&f()})},0))}),h===0&&f();return}if(n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(r):r).then(c=>t(c,n)).then(c=>n.walkTokens?Promise.all(vt.walkTokens(c,n.walkTokens)).then(()=>c):c).then(c=>e(c,n)).then(c=>n.hooks?n.hooks.postprocess(c):c).catch(l);try{n.hooks&&(r=n.hooks.preprocess(r));const c=t(r,n);n.walkTokens&&vt.walkTokens(c,n.walkTokens);let u=e(c,n);return n.hooks&&(u=n.hooks.postprocess(u)),u}catch(c){return l(c)}}}function vt(t,e,r){return wk(qa.lex,Ga.parse)(t,e,r)}vt.options=vt.setOptions=function(t){return vt.defaults={...vt.defaults,...t},WH(vt.defaults),vt};vt.getDefaults=mk;vt.defaults=Hs;vt.use=function(...t){const e=vt.defaults.extensions||{renderers:{},childTokens:{}};t.forEach(r=>{const n={...r};if(n.async=vt.defaults.async||n.async||!1,r.extensions&&(r.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if(o.renderer){const a=e.renderers[o.name];a?e.renderers[o.name]=function(...l){let c=o.renderer.apply(this,l);return c===!1&&(c=a.apply(this,l)),c}:e.renderers[o.name]=o.renderer}if(o.tokenizer){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");e[o.level]?e[o.level].unshift(o.tokenizer):e[o.level]=[o.tokenizer],o.start&&(o.level==="block"?e.startBlock?e.startBlock.push(o.start):e.startBlock=[o.start]:o.level==="inline"&&(e.startInline?e.startInline.push(o.start):e.startInline=[o.start]))}o.childTokens&&(e.childTokens[o.name]=o.childTokens)}),n.extensions=e),r.renderer){const o=vt.defaults.renderer||new mv;for(const a in r.renderer){const l=o[a];o[a]=(...c)=>{let u=r.renderer[a].apply(o,c);return u===!1&&(u=l.apply(o,c)),u}}n.renderer=o}if(r.tokenizer){const o=vt.defaults.tokenizer||new hv;for(const a in r.tokenizer){const l=o[a];o[a]=(...c)=>{let u=r.tokenizer[a].apply(o,c);return u===!1&&(u=l.apply(o,c)),u}}n.tokenizer=o}if(r.hooks){const o=vt.defaults.hooks||new $f;for(const a in r.hooks){const l=o[a];$f.passThroughHooks.has(a)?o[a]=c=>{if(vt.defaults.async)return Promise.resolve(r.hooks[a].call(o,c)).then(f=>l.call(o,f));const u=r.hooks[a].call(o,c);return l.call(o,u)}:o[a]=(...c)=>{let u=r.hooks[a].apply(o,c);return u===!1&&(u=l.apply(o,c)),u}}n.hooks=o}if(r.walkTokens){const o=vt.defaults.walkTokens;n.walkTokens=function(a){let l=[];return l.push(r.walkTokens.call(this,a)),o&&(l=l.concat(o.call(this,a))),l}}vt.setOptions(n)})};vt.walkTokens=function(t,e){let r=[];for(const n of t)switch(r=r.concat(e.call(vt,n)),n.type){case"table":{for(const o of n.header)r=r.concat(vt.walkTokens(o.tokens,e));for(const o of n.rows)for(const a of o)r=r.concat(vt.walkTokens(a.tokens,e));break}case"list":{r=r.concat(vt.walkTokens(n.items,e));break}default:vt.defaults.extensions&&vt.defaults.extensions.childTokens&&vt.defaults.extensions.childTokens[n.type]?vt.defaults.extensions.childTokens[n.type].forEach(function(o){r=r.concat(vt.walkTokens(n[o],e))}):n.tokens&&(r=r.concat(vt.walkTokens(n.tokens,e)))}return r};vt.parseInline=wk(qa.lexInline,Ga.parseInline);vt.Parser=Ga;vt.parser=Ga.parse;vt.Renderer=mv;vt.TextRenderer=bk;vt.Lexer=qa;vt.lexer=qa.lex;vt.Tokenizer=hv;vt.Slugger=xk;vt.Hooks=$f;vt.parse=vt;vt.options;vt.setOptions;vt.use;vt.walkTokens;vt.parseInline;Ga.parse;qa.lex;let nc=class extends lr{};_([B(),z({field_type:$.TEXTAREA,label:"Markdown Content",description:"Markdown content to be transformed into React components",placeholder:`# Enter Markdown content...
461
-
462
- **Bold text** and *italic text*.`}),V(),ie(),D("design:type",String)],nc.prototype,"children",void 0);_([B(),z({field_type:$.CHECKBOX,label:"Sanitize HTML",description:"Whether to sanitize HTML output for security"}),V(),_t(),D("design:type",Boolean)],nc.prototype,"sanitize",void 0);_([B(),z({field_type:$.TEXT,label:"Placeholder",description:"Fallback content to display when Markdown is empty",placeholder:"No content available"}),V(),ie(),D("design:type",String)],nc.prototype,"placeholder",void 0);nc=_([Nt("Markdown","1.0.0")],nc);var lU=nc;const cU=[{selector:"pre",transform:(t,e)=>{var a;const r=t.querySelector("code");if(!r)return null;const o={tagName:"Code",version:"1.0.0",data:{language:((a=Array.from(r.classList).find(l=>l.startsWith("language-")))==null?void 0:a.replace("language-",""))||"text",showCopy:!0,showLineNumbers:!1,children:r.textContent||""}};return d.jsx(fe,{sx:{my:1.5},children:Jr.deserialize(o)},e)}},{selector:"code",transform:t=>(t.closest("pre"),null)}],uU=t=>({gfm:!0,breaks:!1,pedantic:!1,sanitize:!1,smartypants:!1,renderer:new vt.Renderer,...t});function gv({children:t="",htmlTransformConfig:e,sanitize:r=!0,sanitizeOptions:n,placeholder:o,component:a="div",markedOptions:l,...c}){const{styleProps:u,htmlProps:f,restProps:h}=kn(c);if(gv[Nn]=!0,!t||!t.trim())return o?d.jsx(fe,{component:a,...f,...u,...h,sx:{opacity:.6,fontStyle:"italic",...u.sx},children:o}):null;try{const v=uU(l),g=vt(t,v),y=e||{rules:cU,sanitize:r,sanitizeOptions:n};return d.jsx(_o,{transformConfig:y,sanitize:r,sanitizeOptions:n,component:a,...f,...u,...h,children:g})}catch(v){return console.error("Error processing Markdown content:",v),d.jsxs(fe,{component:a,...f,...u,...h,sx:{p:2,border:"1px solid orange",borderRadius:1,backgroundColor:"rgba(255, 165, 0, 0.1)",...u.sx},children:[d.jsx("strong",{children:"Markdown Processing Error:"})," ",v instanceof Error?v.message:"Unknown error",d.jsx(yo,{html:t,placeholder:"Failed to process Markdown"})]})}}class Ju extends zs{getComponentSpecificProps(){return{children:this.props.children,sanitize:this.props.sanitize,placeholder:this.props.placeholder}}renderView(){const{...e}=this.props;return d.jsx(gv,{...e})}renderWithDataBinding(){return d.jsx(dU,{...this.props})}static registerPatternHandlers(e){e.hasPattern("div.markdown-content")||e.registerPattern("div.markdown-content",Ju.transformMarkdownDiv),e.hasPattern("[data-markdown]")||e.registerPattern("[data-markdown]",Ju.transformDataMarkdown)}static transformMarkdownDiv(e){const r=e.getAttribute("data-sanitize")!=="false",n=e.getAttribute("data-placeholder");return{tagName:"Markdown",props:{children:e.textContent||"",sanitize:r,placeholder:n||void 0}}}static transformDataMarkdown(e){const r=e.getAttribute("data-markdown")||e.textContent,n=e.getAttribute("data-sanitize")!=="false",o=e.getAttribute("data-placeholder");return{tagName:"Markdown",props:{children:r,sanitize:n,placeholder:o||void 0}}}}Ju.tagName="Markdown";Ju.version="1.0.0";function dU(t){const{dataSource:e,bindingOptions:r,...n}=t,{loading:o,error:a,...l}=Oi(e,n,lU.getSchema(),{...r});return o?d.jsx(fe,{sx:{p:2,textAlign:"center",opacity:.6},children:"Loading Markdown content..."}):a?(console.error("Error loading Markdown content:",a),d.jsxs(fe,{sx:{p:2,border:"1px solid orange",borderRadius:1,backgroundColor:"rgba(255, 165, 0, 0.1)"},children:[d.jsx("strong",{children:"Error Loading Markdown:"})," ",a.message]})):d.jsx(gv,{...l})}class pU{constructor(){this.measurements=[],this.isEnabled=!0,this.isEnabled&&this.initializeListeners()}initializeListeners(){typeof window>"u"||(window.addEventListener("theme-changed",e=>{var r;this.measureThemeSwitch("theme",(r=e.detail)==null?void 0:r.theme)}),window.addEventListener("palette-changed",e=>{var r;this.measureThemeSwitch("palette",(r=e.detail)==null?void 0:r.palette)}))}measureThemeSwitch(e,r){if(!this.isEnabled||typeof window>"u"||typeof performance>"u")return;const n=performance.now();requestAnimationFrame(()=>{requestAnimationFrame(()=>{const a=performance.now()-n,l={type:e,value:r,duration:a,timestamp:new Date().toISOString()};this.measurements.push(l),this.measurements.length>50&&this.measurements.shift(),a>100?console.warn(`Slow ${e} switch detected:`,l):console.log(`${e} switch performance:`,`${a.toFixed(2)}ms`)})})}getStatistics(){if(!this.isEnabled||this.measurements.length===0)return null;const e=this.measurements.map(a=>a.duration),r=e.reduce((a,l)=>a+l,0)/e.length,n=Math.min(...e),o=Math.max(...e);return{totalMeasurements:this.measurements.length,averageDuration:r.toFixed(2),minDuration:n.toFixed(2),maxDuration:o.toFixed(2),recentMeasurements:this.measurements.slice(-10)}}logStatistics(){if(!this.isEnabled)return;const e=this.getStatistics();e&&(console.group("Theme Performance Statistics"),console.log("Total measurements:",e.totalMeasurements),console.log("Average duration:",e.averageDuration+"ms"),console.log("Min duration:",e.minDuration+"ms"),console.log("Max duration:",e.maxDuration+"ms"),console.log("Recent measurements:",e.recentMeasurements),console.groupEnd())}reset(){this.measurements=[]}}new pU;var yC;(function(t){t.POST="POST",t.PUT="PUT",t.PATCH="PATCH"})(yC||(yC={}));var vC;(function(t){t.NAVIGATE="navigate",t.SUBMIT="submit",t.RESET="reset",t.CANCEL="cancel"})(vC||(vC={}));class yv{constructor(e){this.app=Object.freeze({...e.app}),this.build=Object.freeze({...e.build}),this.pwa=Object.freeze({...e.pwa}),this.ui=Object.freeze({...e.ui}),this.copyright=Object.freeze({...e.copyright}),Object.freeze(this)}get viteConfig(){return{server:{port:this.build.port,host:!0},preview:{port:this.build.previewPort,host:!0},build:{outDir:this.build.outputDir},base:this.build.base,publicDir:"public",define:{__APP_NAME__:JSON.stringify(this.app.name),__APP_ID__:JSON.stringify(this.app.id),__APP_VERSION__:JSON.stringify(this.app.version)}}}get pwaManifest(){return{name:this.app.name,short_name:this.app.shortName,description:this.app.description,start_url:this.pwa.startUrl,display:this.pwa.display,orientation:this.pwa.orientation,theme_color:this.pwa.themeColor,background_color:this.pwa.backgroundColor,scope:this.pwa.scope,icons:[{src:"pwa-192x192.png",sizes:"192x192",type:"image/png"},{src:"pwa-512x512.png",sizes:"512x512",type:"image/png"}]}}toJSON(){return{app:this.app,build:this.build,pwa:this.pwa,ui:this.ui,copyright:this.copyright}}with(e){return new yv({app:{...this.app,...e.app},build:{...this.build,...e.build},pwa:{...this.pwa,...e.pwa},ui:{...this.ui,...e.ui},copyright:{...this.copyright,...e.copyright}})}}let hu,mu;try{typeof window>"u"&&typeof process<"u"&&(hu=require("fs"),mu=require("path"))}catch{}class vv{constructor(){this.config={app:{},build:{},pwa:{},ui:{},copyright:{}},this.options={}}static create(){return new vv}withConfig(e){if(!hu||!mu)return typeof window>"u"&&console.warn("Warning: File system operations not available in browser environment"),this;try{const r=mu.resolve(e),n=JSON.parse(hu.readFileSync(r,"utf-8"));n.app&&Object.assign(this.config.app,n.app),n.build&&Object.assign(this.config.build,n.build),n.pwa&&Object.assign(this.config.pwa,n.pwa),n.ui&&Object.assign(this.config.ui,n.ui),n.copyright&&Object.assign(this.config.copyright,n.copyright)}catch{console.warn(`Warning: Could not load config file: ${e}`)}return this}withOptions(e){return this.options={...this.options,...e},this}withName(e){return this.config.app.name=e,this}withId(e){return this.config.app.id=e,this}withShortName(e){return this.config.app.shortName=e,this}withDescription(e){return this.config.app.description=e,this}withVersion(e){return this.config.app.version=e,this}withLogo(e){return this.config.app.logo=e,this}withAuthor(e){return this.config.app.author=e,this}withHomepage(e){return this.config.app.homepage=e,this}withPort(e){return this.config.build.port=e,this}withPreviewPort(e){return this.config.build.previewPort=e,this}withOutputDir(e){return this.config.build.outputDir=e,this}withPublicPath(e){return this.config.build.publicPath=e,this}withBase(e){return this.config.build.base=e,this}withThemeColor(e){return this.config.pwa.themeColor=e,this}withBackgroundColor(e){return this.config.pwa.backgroundColor=e,this}withStartUrl(e){return this.config.pwa.startUrl=e,this}withScope(e){return this.config.pwa.scope=e,this}withDisplay(e){return this.config.pwa.display=e,this}withOrientation(e){return this.config.pwa.orientation=e,this}withDefaultTheme(e){return this.config.ui.defaultTheme=e,this}withDefaultPalette(e){return this.config.ui.defaultPalette=e,this}withScaffolding(e){return this.config.ui.enableScaffolding=e,this}withThemeSwitcher(e){return this.config.ui.showThemeSwitcher=e,this}withPaletteSwitcher(e){return this.config.ui.showPaletteSwitcher=e,this}withCopyright(e,r,n){return this.config.copyright.year=e,this.config.copyright.author=r,n!==void 0&&(this.config.copyright.text=n),this}withCopyrightYear(e){return this.config.copyright.year=e,this}withCopyrightAuthor(e){return this.config.copyright.author=e,this}withCopyrightText(e){return this.config.copyright.text=e,this}build(){const e=this.validate();if(e.warnings.forEach(n=>{console.warn(`⚠️ AppConfig: ${n}`)}),!e.isValid)throw new Error(`AppConfig validation failed:
463
- ${e.errors.map(n=>` - ${n}`).join(`
464
- `)}`);const r=this.applyDefaults();return new yv(r)}validate(){const e=[],r=[];if(this.config.app.name||r.push("App name is required"),this.config.app.id||r.push("App ID is required"),this.config.copyright.year&&this.config.copyright.year!=="auto"&&(!Number.isInteger(this.config.copyright.year)||this.config.copyright.year<1900)&&e.push('Copyright year should be "auto" or a valid year >= 1900'),this.config.app.logo&&!this.options.skipValidation&&hu&&mu){const n=mu.resolve(this.options.baseDir||process.cwd(),this.config.app.logo);hu.existsSync(n)||e.push(`Logo file not found: ${this.config.app.logo} (will use default)`)}return this.config.build.port!==void 0&&(!Number.isInteger(this.config.build.port)||this.config.build.port<1||this.config.build.port>65535)&&r.push("Port must be a valid integer between 1 and 65535"),this.config.build.previewPort!==void 0&&(!Number.isInteger(this.config.build.previewPort)||this.config.build.previewPort<1||this.config.build.previewPort>65535)&&r.push("Preview port must be a valid integer between 1 and 65535"),this.config.pwa.themeColor&&!this.isValidColor(this.config.pwa.themeColor)&&e.push(`Theme color may not be valid: ${this.config.pwa.themeColor}`),this.config.pwa.backgroundColor&&!this.isValidColor(this.config.pwa.backgroundColor)&&e.push(`Background color may not be valid: ${this.config.pwa.backgroundColor}`),{warnings:e,errors:r,isValid:r.length===0}}applyDefaults(){const e={id:this.config.app.id,name:this.config.app.name,shortName:this.config.app.shortName||this.config.app.name,description:this.config.app.description||this.config.app.name,version:this.config.app.version||"1.0.0",logo:this.config.app.logo||"/favicon.ico",author:this.config.app.author,homepage:this.config.app.homepage},r={port:this.config.build.port||3e3,previewPort:this.config.build.previewPort||4173,outputDir:this.config.build.outputDir||"dist",publicPath:this.config.build.publicPath||"/",base:this.config.build.base||"/"},n={themeColor:this.config.pwa.themeColor||"#000000",backgroundColor:this.config.pwa.backgroundColor||"#ffffff",startUrl:this.config.pwa.startUrl||"/",scope:this.config.pwa.scope||"/",display:this.config.pwa.display||"standalone",orientation:this.config.pwa.orientation},o={defaultTheme:this.config.ui.defaultTheme||"light",defaultPalette:this.config.ui.defaultPalette||"default",enableScaffolding:this.config.ui.enableScaffolding??!0,showThemeSwitcher:this.config.ui.showThemeSwitcher??!1,showPaletteSwitcher:this.config.ui.showPaletteSwitcher??!1},a={year:this.config.copyright.year||"auto",author:this.config.copyright.author||e.author||e.name,text:this.config.copyright.text};return{app:e,build:r,pwa:n,ui:o,copyright:a}}isValidColor(e){return/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e)||/^(black|white|red|green|blue|yellow|orange|purple|pink|gray|grey)$/i.test(e)||/^rgba?\([^)]+\)$/i.test(e)}}let oa=class extends mt{};_([B(),z({field_type:$.TEXT,label:"Field Label",description:"Label/title for the choice input field",placeholder:"Options"}),V(),ie(),D("design:type",String)],oa.prototype,"label",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Options",description:"Array of option values (HTML content supported) - JSON array format"}),V(),nn(),ie({each:!0}),D("design:type",Array)],oa.prototype,"options",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Disabled",description:"Whether the input fields are disabled"}),V(),_t(),D("design:type",Boolean)],oa.prototype,"disabled",void 0);_([B(),z({field_type:$.TEXT,label:"Placeholder Text",description:"Placeholder text for option inputs",placeholder:"Enter option text. HTML formatting supported."}),V(),ie(),D("design:type",String)],oa.prototype,"placeholder",void 0);_([B(),z({field_type:$.TEXT,label:"Option Label Prefix",description:'Prefix for each option label (e.g., "Option", "Choice")',placeholder:"Option"}),V(),ie(),D("design:type",String)],oa.prototype,"optionLabelPrefix",void 0);_([B({defaultValue:2}),z({field_type:$.NUMBER,label:"Input Rows",description:"Number of rows for each option input field"}),V(),Sr(),D("design:type",Number)],oa.prototype,"rows",void 0);_([B(),z({field_type:$.TEXT,label:"Add Button Text",description:"Text for the add option button",placeholder:"Add Option"}),V(),ie(),D("design:type",String)],oa.prototype,"addButtonText",void 0);oa=_([Nt("ChoiceInputField","1.0.0")],oa);let ia=class extends qT{};_([B(),z({field_type:$.TEXTAREA,label:"Content",description:"Raw code text. If provided, React children are ignored in serialization.",placeholder:"Enter code content..."}),V(),ie(),D("design:type",String)],ia.prototype,"content",void 0);_([B(),z({field_type:$.TEXT,label:"Language",description:"Programming language for syntax highlighting (e.g., typescript, javascript, python)",placeholder:"javascript"}),V(),ie(),D("design:type",String)],ia.prototype,"language",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Show Copy Button",description:"Display a copy-to-clipboard button"}),V(),_t(),D("design:type",Boolean)],ia.prototype,"showCopy",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Show Line Numbers",description:"Display line numbers alongside the code"}),V(),_t(),D("design:type",Boolean)],ia.prototype,"showLineNumbers",void 0);_([B(),z({field_type:$.TEXT,label:"Title",description:"Optional title or filename to display above the code",placeholder:"File name or title"}),V(),ie(),D("design:type",String)],ia.prototype,"title",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Wrap Long Lines",description:"Allow long lines to wrap instead of scrolling horizontally"}),V(),_t(),D("design:type",Boolean)],ia.prototype,"wrapLines",void 0);_([B(),z({field_type:$.TEXT,label:"Background Color",description:"Custom background color override",placeholder:"#f5f5f5"}),V(),ie(),D("design:type",String)],ia.prototype,"codeBackground",void 0);ia=_([Nt("Code","1.0.0")],ia);let Zn=class extends ta{};_([B(),z({field_type:$.NUMBER,label:"Span",description:"Number of columns to span (1-12)",placeholder:"12"}),V(),Sr(),He([1,2,3,4,5,6,7,8,9,10,11,12]),D("design:type",Number)],Zn.prototype,"span",void 0);_([B(),z({field_type:$.NUMBER,label:"XS (Mobile)",description:"Columns on extra small screens (1-12)",placeholder:"12"}),V(),Sr(),He([1,2,3,4,5,6,7,8,9,10,11,12]),D("design:type",Number)],Zn.prototype,"xs",void 0);_([B(),z({field_type:$.NUMBER,label:"SM (Tablet)",description:"Columns on small screens (1-12)",placeholder:"6"}),V(),Sr(),He([1,2,3,4,5,6,7,8,9,10,11,12]),D("design:type",Number)],Zn.prototype,"sm",void 0);_([B(),z({field_type:$.NUMBER,label:"MD (Desktop)",description:"Columns on medium screens (1-12)",placeholder:"4"}),V(),Sr(),He([1,2,3,4,5,6,7,8,9,10,11,12]),D("design:type",Number)],Zn.prototype,"md",void 0);_([B(),z({field_type:$.NUMBER,label:"LG (Large Desktop)",description:"Columns on large screens (1-12)",placeholder:"3"}),V(),Sr(),He([1,2,3,4,5,6,7,8,9,10,11,12]),D("design:type",Number)],Zn.prototype,"lg",void 0);_([B(),z({field_type:$.NUMBER,label:"XL (Extra Large)",description:"Columns on extra large screens (1-12)",placeholder:"2"}),V(),Sr(),He([1,2,3,4,5,6,7,8,9,10,11,12]),D("design:type",Number)],Zn.prototype,"xl",void 0);_([B(),z({field_type:$.TEXT,label:"Background",description:'Background color or theme color (e.g., "primary.main", "#ffffff")',placeholder:"transparent"}),V(),ie(),D("design:type",String)],Zn.prototype,"background",void 0);_([B(),z({field_type:$.TEXT,label:"Padding",description:'Internal spacing (e.g., "medium", "16px", "1rem")',placeholder:"medium"}),V(),ie(),D("design:type",String)],Zn.prototype,"padding",void 0);_([B(),z({field_type:$.TEXT,label:"Margin",description:'External spacing (e.g., "small", "8px", "0.5rem")',placeholder:"0"}),V(),ie(),D("design:type",String)],Zn.prototype,"margin",void 0);_([B(),z({field_type:$.TEXT,label:"Height",description:'Cell height (e.g., "200px", "medium")',placeholder:"auto"}),V(),ie(),D("design:type",String)],Zn.prototype,"height",void 0);_([B(),z({field_type:$.TEXT,label:"Width",description:'Cell width (e.g., "100%", "300px")',placeholder:"100%"}),V(),ie(),D("design:type",String)],Zn.prototype,"width",void 0);_([B(),z({field_type:$.TEXT,label:"CSS Class",description:"Additional CSS class names",placeholder:"custom-cell-class"}),V(),ie(),D("design:type",String)],Zn.prototype,"className",void 0);Zn=_([Nt("GridCell","1.0.0")],Zn);let Bo=class extends ta{};_([B(),z({field_type:$.NUMBER,label:"Columns",description:"Number of equal-width columns for auto-distribution"}),V(),Sr(),no(1),D("design:type",Number)],Bo.prototype,"columns",void 0);_([B({defaultValue:"small"}),z({field_type:$.SELECT,label:"Spacing",description:"Spacing between grid items"}),V(),ie(),He(["tiny","small","medium","large","huge"]),D("design:type",String)],Bo.prototype,"spacing",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Equal Height",description:"Make all grid items the same height"}),V(),_t(),D("design:type",Boolean)],Bo.prototype,"equalHeight",void 0);_([B(),z({field_type:$.TEXT,label:"Height",description:'Grid container height (e.g., "400px", "50vh", "medium")',placeholder:"auto"}),V(),ie(),D("design:type",String)],Bo.prototype,"height",void 0);_([B(),z({field_type:$.TEXT,label:"Width",description:'Grid container width (e.g., "100%", "800px", "large")',placeholder:"100%"}),V(),ie(),D("design:type",String)],Bo.prototype,"width",void 0);_([B(),z({field_type:$.TEXT,label:"Min Height",description:"Minimum grid container height",placeholder:"auto"}),V(),ie(),D("design:type",String)],Bo.prototype,"minHeight",void 0);_([B(),z({field_type:$.TEXT,label:"Min Width",description:"Minimum grid container width",placeholder:"auto"}),V(),ie(),D("design:type",String)],Bo.prototype,"minWidth",void 0);_([B(),z({field_type:$.TEXT,label:"Max Height",description:"Maximum grid container height",placeholder:"none"}),V(),ie(),D("design:type",String)],Bo.prototype,"maxHeight",void 0);_([B(),z({field_type:$.TEXT,label:"Max Width",description:"Maximum grid container width",placeholder:"none"}),V(),ie(),D("design:type",String)],Bo.prototype,"maxWidth",void 0);_([B(),z({field_type:$.TEXT,label:"CSS Class",description:"Additional CSS class names",placeholder:"custom-grid-class"}),V(),ie(),D("design:type",String)],Bo.prototype,"className",void 0);Bo=_([Nt("GridLayout","1.0.0")],Bo);let zo=class extends ta{};_([B(),z({field_type:$.TEXT,label:"Title",description:"Main headline text",placeholder:"Enter hero title..."}),ie(),D("design:type",String)],zo.prototype,"title",void 0);_([B(),z({field_type:$.TEXT,label:"Subtitle",description:"Subtitle or description text",placeholder:"Enter subtitle..."}),V(),ie(),D("design:type",String)],zo.prototype,"subtitle",void 0);_([B(),z({field_type:$.IMAGE,label:"Background Image",description:"Background image URL",placeholder:"https://..."}),V(),yh(),D("design:type",String)],zo.prototype,"backgroundImage",void 0);_([B(),z({field_type:$.TEXT,label:"Background Gradient",description:"Background gradient CSS value",placeholder:"linear-gradient(...)"}),V(),ie(),D("design:type",String)],zo.prototype,"backgroundGradient",void 0);_([B({defaultValue:"default"}),z({field_type:$.SELECT,label:"Background Color",description:"Background color theme variant",validation:{options:[{label:"Default",value:"default"},{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Surface",value:"surface"}]}}),V(),He(["default","primary","secondary","surface"]),D("design:type",String)],zo.prototype,"backgroundColor",void 0);_([B({type:ut.ARRAY}),z({field_type:$.REPEATER,label:"Actions",description:"Action buttons for the hero section"}),V(),nn(),ro({each:!0}),oo(()=>Yn),D("design:type",Array)],zo.prototype,"actions",void 0);_([B({defaultValue:"center"}),z({field_type:$.SELECT,label:"Text Alignment",description:"Text alignment",validation:{options:[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"}]}}),V(),He(["left","center","right"]),D("design:type",String)],zo.prototype,"textAlign",void 0);_([B({defaultValue:"medium"}),z({field_type:$.SELECT,label:"Block Height",description:"Block height preset",validation:{options:[{label:"Small",value:"small"},{label:"Medium",value:"medium"},{label:"Large",value:"large"},{label:"Viewport",value:"viewport"}]}}),V(),He(["small","medium","large","viewport"]),D("design:type",String)],zo.prototype,"blockHeight",void 0);_([B(),z({field_type:$.NUMBER,label:"Overlay Opacity",description:"Custom overlay opacity (0-1) when using background images",validation:{min:0,max:1}}),V(),Sr(),no(0),Bs(1),D("design:type",Number)],zo.prototype,"overlayOpacity",void 0);_([B(),z({field_type:$.TEXT,label:"CSS Class",description:"Additional CSS class name",placeholder:"custom-hero-class"}),V(),ie(),D("design:type",String)],zo.prototype,"className",void 0);zo=_([Nt("HeroBlock","1.0.0")],zo);let Xr=class extends mt{};_([B({dataType:ut.STRING}),z({field_type:$.IMAGE,label:"Image Source",description:"Image source URL or path",placeholder:"https://example.com/image.jpg"}),V(),ie(),D("design:type",String)],Xr.prototype,"src",void 0);_([B({dataType:ut.STRING}),z({field_type:$.TEXT,label:"Alt Text",description:"Alternative text for accessibility (required for images with src)",placeholder:"Describe the image for screen readers"}),V(),ie(),D("design:type",String)],Xr.prototype,"alt",void 0);_([B({dataType:ut.NUMBER}),z({field_type:$.NUMBER,label:"Width",description:"Image width in pixels (optional)",placeholder:"300"}),V(),Sr(),D("design:type",Number)],Xr.prototype,"width",void 0);_([B({dataType:ut.NUMBER}),z({field_type:$.NUMBER,label:"Height",description:"Image height in pixels (optional)",placeholder:"200"}),V(),Sr(),D("design:type",Number)],Xr.prototype,"height",void 0);_([B({defaultValue:"cover",dataType:ut.STRING}),z({field_type:$.SELECT,label:"Object Fit",description:"How the image should be resized to fit its container",validation:{options:[{label:"Fill",value:"fill"},{label:"Contain",value:"contain"},{label:"Cover",value:"cover"},{label:"None",value:"none"},{label:"Scale Down",value:"scale-down"}]}}),V(),ie(),He(["fill","contain","cover","none","scale-down"]),D("design:type",String)],Xr.prototype,"objectFit",void 0);_([B({defaultValue:"center",dataType:ut.STRING}),z({field_type:$.SELECT,label:"Object Position",description:"Position of the image within its container",validation:{options:[{label:"Center",value:"center"},{label:"Top",value:"top"},{label:"Bottom",value:"bottom"},{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Top Left",value:"top-left"},{label:"Top Right",value:"top-right"},{label:"Bottom Left",value:"bottom-left"},{label:"Bottom Right",value:"bottom-right"}]}}),V(),ie(),He(["center","top","bottom","left","right","top-left","top-right","bottom-left","bottom-right"]),D("design:type",String)],Xr.prototype,"objectPosition",void 0);_([B({defaultValue:"lazy",dataType:ut.STRING}),z({field_type:$.SELECT,label:"Loading",description:"Image loading behavior",validation:{options:[{label:"Lazy (load when visible)",value:"lazy"},{label:"Eager (load immediately)",value:"eager"}]}}),V(),ie(),He(["lazy","eager"]),D("design:type",String)],Xr.prototype,"loading",void 0);_([B({dataType:ut.STRING}),z({field_type:$.TEXT,label:"Title",description:"Image title (tooltip text)",placeholder:"Tooltip text on hover"}),V(),ie(),D("design:type",String)],Xr.prototype,"title",void 0);_([B({defaultValue:!1,dataType:ut.BOOLEAN}),z({field_type:$.BOOLEAN,label:"Draggable",description:"Allow the image to be dragged"}),V(),_t(),D("design:type",Boolean)],Xr.prototype,"draggable",void 0);_([B({dataType:ut.STRING}),z({field_type:$.TEXT,label:"Border Radius",description:'CSS border radius (e.g., "8px", "50%", "1rem")',placeholder:"8px"}),V(),ie(),D("design:type",String)],Xr.prototype,"borderRadius",void 0);_([B({defaultValue:!1,dataType:ut.BOOLEAN}),z({field_type:$.BOOLEAN,label:"Show Loading State",description:"Display a loading placeholder while the image loads"}),V(),_t(),D("design:type",Boolean)],Xr.prototype,"showLoading",void 0);_([B({defaultValue:!1,dataType:ut.BOOLEAN}),z({field_type:$.BOOLEAN,label:"Show Error State",description:"Display an error message if the image fails to load"}),V(),_t(),D("design:type",Boolean)],Xr.prototype,"showError",void 0);_([B({dataType:ut.STRING}),z({field_type:$.TEXT,label:"Fallback Image",description:"Fallback image URL to use if the main image fails to load",placeholder:"https://example.com/fallback.jpg"}),V(),ie(),D("design:type",String)],Xr.prototype,"fallbackSrc",void 0);_([B({dataType:ut.STRING}),z({field_type:$.TEXTAREA,label:"Responsive Sizes",description:"Responsive image sizes attribute for optimized loading",placeholder:"(max-width: 768px) 100vw, 50vw"}),V(),ie(),D("design:type",String)],Xr.prototype,"sizes",void 0);_([B({dataType:ut.STRING}),z({field_type:$.TEXTAREA,label:"Source Set",description:"Source set for responsive images (comma-separated)",placeholder:"image-320w.jpg 320w, image-640w.jpg 640w, image-1280w.jpg 1280w"}),V(),ie(),D("design:type",String)],Xr.prototype,"srcSet",void 0);_([B({dataType:ut.STRING}),z({field_type:$.TEXTAREA,label:"Loading Placeholder",description:"Custom loading placeholder content (for advanced use)",placeholder:"Custom loading content..."}),V(),D("design:type",Object)],Xr.prototype,"loadingPlaceholder",void 0);_([B({dataType:ut.STRING}),z({field_type:$.TEXTAREA,label:"Error Placeholder",description:"Custom error placeholder content (for advanced use)",placeholder:"Custom error content..."}),V(),D("design:type",Object)],Xr.prototype,"errorPlaceholder",void 0);Xr=_([Nt("Image","1.0.0")],Xr);let Os=class extends ta{};_([B(),z({field_type:$.TEXT,label:"Background Color",description:"Background color (CSS color, theme path, or palette color)",placeholder:"#ffffff or primary.main"}),V(),ie(),D("design:type",String)],Os.prototype,"background",void 0);_([B(),z({field_type:$.TEXT,label:"Text Color",description:"Text color (CSS color, theme path, or palette color)",placeholder:"#000000 or text.primary"}),V(),ie(),D("design:type",String)],Os.prototype,"color",void 0);_([B(),z({field_type:$.SELECT,label:"Section Padding",description:"Vertical padding/spacing for the section",validation:{options:[{value:"none",label:"None"},{value:"tiny",label:"Tiny (8px)"},{value:"small",label:"Small (16px)"},{value:"medium",label:"Medium (32px)"},{value:"large",label:"Large (64px)"},{value:"extra-large",label:"Extra Large (96px)"}]}}),V(),He(["none","tiny","small","medium","large","extra-large"]),D("design:type",String)],Os.prototype,"padding",void 0);_([B(),z({field_type:$.SELECT,label:"Content Max Width",description:"Maximum width for the content container",validation:{options:[{value:"xs",label:"Extra Small (444px)"},{value:"sm",label:"Small (600px)"},{value:"md",label:"Medium (900px)"},{value:"lg",label:"Large (1200px)"},{value:"xl",label:"Extra Large (1536px)"},{value:"false",label:"Full Width"}]}}),V(),He(["xs","sm","md","lg","xl","false"]),D("design:type",String)],Os.prototype,"contentMaxWidth",void 0);_([B(),z({field_type:$.SELECT,label:"HTML Element",description:"HTML element type to use for the section",validation:{options:[{value:"section",label:"Section"},{value:"div",label:"Div"},{value:"article",label:"Article"},{value:"main",label:"Main"}]}}),V(),He(["section","div","article","main"]),D("design:type",String)],Os.prototype,"component",void 0);Os=_([Nt("Section","1.0.0")],Os);let wo=class extends mt{};_([B(),z({field_type:$.TEXT,label:"Field Label",description:"The label displayed for the text input field",placeholder:"Enter field label..."}),ie(),D("design:type",String)],wo.prototype,"label",void 0);_([B(),z({field_type:$.TEXT,label:"Value",description:"Current field value",placeholder:"Enter value..."}),V(),ie(),D("design:type",String)],wo.prototype,"value",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Required",description:"Whether the field is required"}),V(),_t(),D("design:type",Boolean)],wo.prototype,"required",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Disabled",description:"Whether the field is disabled"}),V(),_t(),D("design:type",Boolean)],wo.prototype,"disabled",void 0);_([B(),z({field_type:$.TEXT,label:"Error Message",description:"Error message to display if validation fails",placeholder:"Enter error message..."}),V(),ie(),D("design:type",String)],wo.prototype,"error",void 0);_([B(),z({field_type:$.TEXT,label:"Helper Text",description:"Helper text to guide the user",placeholder:"Enter helper text..."}),V(),ie(),D("design:type",String)],wo.prototype,"helperText",void 0);_([B(),z({field_type:$.TEXT,label:"Placeholder",description:"Placeholder text shown when field is empty",placeholder:"Enter placeholder text..."}),V(),ie(),D("design:type",String)],wo.prototype,"placeholder",void 0);_([B(),z({field_type:$.TEXT,label:"Input Type",description:"HTML input type (text, email, number, password, etc.)",placeholder:"text"}),V(),ie(),D("design:type",String)],wo.prototype,"type",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Multiline",description:"Whether the field supports multiple lines (textarea)"}),V(),_t(),D("design:type",Boolean)],wo.prototype,"multiline",void 0);_([B(),z({field_type:$.NUMBER,label:"Rows",description:"Number of rows for multiline fields"}),V(),Sr(),D("design:type",Number)],wo.prototype,"rows",void 0);_([B(),z({field_type:$.NUMBER,label:"Max Rows",description:"Maximum number of rows for multiline fields"}),V(),Sr(),D("design:type",Number)],wo.prototype,"maxRows",void 0);wo=_([Nt("TextInputField","1.0.0")],wo);let zr=class extends lr{};_([B({dataType:ut.STRING}),z({field_type:$.TEXTAREA,label:"Text Content",description:"The text content to display",placeholder:"Enter your text content here..."}),V(),ie(),D("design:type",String)],zr.prototype,"content",void 0);_([B({defaultValue:"body1",dataType:ut.STRING}),z({field_type:$.SELECT,label:"Typography Variant",description:"Typography variant that determines font size, weight, and line height",validation:{options:[{label:"Heading 1",value:"h1"},{label:"Heading 2",value:"h2"},{label:"Heading 3",value:"h3"},{label:"Heading 4",value:"h4"},{label:"Heading 5",value:"h5"},{label:"Heading 6",value:"h6"},{label:"Subtitle 1",value:"subtitle1"},{label:"Subtitle 2",value:"subtitle2"},{label:"Body 1",value:"body1"},{label:"Body 2",value:"body2"},{label:"Button",value:"button"},{label:"Caption",value:"caption"},{label:"Overline",value:"overline"}]}}),V(),ie(),He(["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","button","caption","overline"]),D("design:type",String)],zr.prototype,"variant",void 0);_([B({defaultValue:"inherit",dataType:ut.STRING}),z({field_type:$.SELECT,label:"Text Color",description:"Color variant for the text",validation:{options:[{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Text Primary",value:"textPrimary"},{label:"Text Secondary",value:"textSecondary"},{label:"Error",value:"error"},{label:"Warning",value:"warning"},{label:"Info",value:"info"},{label:"Success",value:"success"},{label:"Inherit",value:"inherit"}]}}),V(),ie(),He(["primary","secondary","textPrimary","textSecondary","error","warning","info","success","inherit"]),D("design:type",String)],zr.prototype,"color",void 0);_([B({defaultValue:"inherit",dataType:ut.STRING}),z({field_type:$.SELECT,label:"Text Alignment",description:"How to align the text horizontally",validation:{options:[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"},{label:"Justify",value:"justify"},{label:"Inherit",value:"inherit"}]}}),V(),ie(),He(["left","center","right","justify","inherit"]),D("design:type",String)],zr.prototype,"align",void 0);_([B({defaultValue:"p",dataType:ut.STRING}),z({field_type:$.SELECT,label:"HTML Element",description:"The HTML element to render (affects semantics and accessibility)",validation:{options:[{label:"Paragraph (p)",value:"p"},{label:"Span",value:"span"},{label:"Div",value:"div"},{label:"Heading 1 (h1)",value:"h1"},{label:"Heading 2 (h2)",value:"h2"},{label:"Heading 3 (h3)",value:"h3"},{label:"Heading 4 (h4)",value:"h4"},{label:"Heading 5 (h5)",value:"h5"},{label:"Heading 6 (h6)",value:"h6"},{label:"Label",value:"label"},{label:"Legend",value:"legend"}]}}),V(),ie(),He(["p","span","div","h1","h2","h3","h4","h5","h6","label","legend"]),D("design:type",String)],zr.prototype,"component",void 0);_([B({defaultValue:"inherit",dataType:ut.STRING}),z({field_type:$.SELECT,label:"Font Weight",description:"The weight (thickness) of the font",validation:{options:[{label:"Inherit",value:"inherit"},{label:"Lighter",value:"lighter"},{label:"Normal",value:"normal"},{label:"Bold",value:"bold"},{label:"Bolder",value:"bolder"},{label:"100",value:"100"},{label:"200",value:"200"},{label:"300",value:"300"},{label:"400",value:"400"},{label:"500",value:"500"},{label:"600",value:"600"},{label:"700",value:"700"},{label:"800",value:"800"},{label:"900",value:"900"}]}}),V(),ie(),He(["inherit","lighter","normal","bold","bolder","100","200","300","400","500","600","700","800","900"]),D("design:type",String)],zr.prototype,"fontWeight",void 0);_([B({defaultValue:"none",dataType:ut.STRING}),z({field_type:$.SELECT,label:"Text Decoration",description:"Text decoration style",validation:{options:[{label:"None",value:"none"},{label:"Underline",value:"underline"},{label:"Overline",value:"overline"},{label:"Line Through",value:"line-through"}]}}),V(),ie(),He(["none","underline","overline","line-through"]),D("design:type",String)],zr.prototype,"textDecoration",void 0);_([B({defaultValue:"none",dataType:ut.STRING}),z({field_type:$.SELECT,label:"Text Transform",description:"How to transform the text case",validation:{options:[{label:"None",value:"none"},{label:"Capitalize",value:"capitalize"},{label:"Uppercase",value:"uppercase"},{label:"Lowercase",value:"lowercase"},{label:"Inherit",value:"inherit"}]}}),V(),ie(),He(["none","capitalize","uppercase","lowercase","inherit"]),D("design:type",String)],zr.prototype,"textTransform",void 0);_([B({defaultValue:!1,dataType:ut.BOOLEAN}),z({field_type:$.BOOLEAN,label:"No Wrap",description:"Prevent text from wrapping to multiple lines"}),V(),_t(),D("design:type",Boolean)],zr.prototype,"noWrap",void 0);_([B({defaultValue:!1,dataType:ut.BOOLEAN}),z({field_type:$.BOOLEAN,label:"Paragraph Mode",description:"Apply paragraph spacing and formatting"}),V(),_t(),D("design:type",Boolean)],zr.prototype,"paragraph",void 0);_([B({defaultValue:!1,dataType:ut.BOOLEAN}),z({field_type:$.BOOLEAN,label:"Gutter Bottom",description:"Add margin bottom for spacing (useful for headings)"}),V(),_t(),D("design:type",Boolean)],zr.prototype,"gutterBottom",void 0);_([B({dataType:ut.STRING}),z({field_type:$.TEXT,label:"Font Size",description:'Custom font size (overrides variant sizing, e.g., "16px", "1.2rem")',placeholder:"16px"}),V(),ie(),D("design:type",String)],zr.prototype,"fontSize",void 0);_([B({dataType:ut.STRING}),z({field_type:$.TEXT,label:"Line Height",description:'Custom line height (e.g., "1.5", "24px", "150%")',placeholder:"1.5"}),V(),ie(),D("design:type",String)],zr.prototype,"lineHeight",void 0);_([B({dataType:ut.STRING}),z({field_type:$.TEXT,label:"Letter Spacing",description:'Custom letter spacing (e.g., "0.1em", "1px")',placeholder:"0.1em"}),V(),ie(),D("design:type",String)],zr.prototype,"letterSpacing",void 0);_([B({dataType:ut.STRING}),z({field_type:$.TEXT,label:"Font Family",description:'Custom font family (e.g., "Arial, sans-serif")',placeholder:"Arial, sans-serif"}),V(),ie(),D("design:type",String)],zr.prototype,"fontFamily",void 0);_([B({dataType:ut.STRING}),z({field_type:$.TEXTAREA,label:"Custom Color",description:"Custom text color (CSS color value, overrides color variant)",placeholder:"#333333 or rgb(51, 51, 51)"}),V(),ie(),D("design:type",String)],zr.prototype,"customColor",void 0);_([B({dataType:ut.STRING}),z({field_type:$.TEXTAREA,label:"Max Width",description:'Maximum width for the text (e.g., "300px", "50%")',placeholder:"300px"}),V(),ie(),D("design:type",String)],zr.prototype,"maxWidth",void 0);_([B({dataType:ut.STRING}),z({field_type:$.TEXTAREA,label:"Rich Content",description:"Rich text content with React elements (for advanced use)",placeholder:"Rich content..."}),V(),D("design:type",Object)],zr.prototype,"children",void 0);zr=_([Nt("Text","1.0.0")],zr);let Dr=class extends lr{};_([B({defaultValue:"light"}),z({field_type:$.SELECT,label:"Print Theme",description:"Theme mode to use when printing",validation:{options:[{label:"Light",value:"light"},{label:"Dark",value:"dark"}]}}),V(),He(["light","dark"]),D("design:type",String)],Dr.prototype,"theme",void 0);_([B({defaultValue:"default"}),z({field_type:$.SELECT,label:"Print Palette",description:"Color palette to use for print output",validation:{options:[{label:"Default",value:"default"},{label:"Autumn",value:"autumn"},{label:"Cosmic",value:"cosmic"},{label:"Ocean",value:"ocean"},{label:"Spring",value:"spring"},{label:"Winter",value:"winter"}]}}),V(),ie(),D("design:type",String)],Dr.prototype,"palette",void 0);_([B({defaultValue:!0}),z({field_type:$.BOOLEAN,label:"Hide Scaffolding",description:"Hide app scaffolding (navigation, headers) when printing"}),V(),_t(),D("design:type",Boolean)],Dr.prototype,"hideScaffolding",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Hide Interactive Elements",description:"Hide buttons and interactive elements when printing"}),V(),_t(),D("design:type",Boolean)],Dr.prototype,"hideInteractiveElements",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Optimize For Monochrome",description:"Optimize design for black and white printing"}),V(),_t(),D("design:type",Boolean)],Dr.prototype,"optimizeForMonochrome",void 0);_([B(),z({field_type:$.TEXT,label:"Print Title",description:"Custom title to show when printing (optional)",placeholder:"Document Title"}),V(),ie(),D("design:type",String)],Dr.prototype,"printTitle",void 0);_([B({defaultValue:!0}),z({field_type:$.BOOLEAN,label:"Show Print Date",description:"Include print date and time in printed output"}),V(),_t(),D("design:type",Boolean)],Dr.prototype,"showPrintDate",void 0);_([B(),z({field_type:$.TEXT,label:"Print Header",description:"Custom header content for printed pages (HTML string or React component)",placeholder:"<div>Custom header content...</div>"}),V(),D("design:type",Object)],Dr.prototype,"printHeader",void 0);_([B(),z({field_type:$.TEXT,label:"Print Header (First Page)",description:"Different header for the first page only (overrides main header on page 1)",placeholder:"<div>First page header...</div>"}),V(),D("design:type",Object)],Dr.prototype,"printHeaderFirstPage",void 0);_([B(),z({field_type:$.TEXT,label:"Print Footer",description:"Custom footer content for printed pages (HTML string or React component)",placeholder:"<div>Custom footer content...</div>"}),V(),D("design:type",Object)],Dr.prototype,"printFooter",void 0);_([B(),z({field_type:$.TEXT,label:"Print Footer (First Page)",description:"Different footer for the first page only (overrides main footer on page 1)",placeholder:"<div>First page footer...</div>"}),V(),D("design:type",Object)],Dr.prototype,"printFooterFirstPage",void 0);_([B({defaultValue:"12mm"}),z({field_type:$.SELECT,label:"Page Margins",description:"Print page margins",validation:{options:[{label:"Compact (6mm)",value:"6mm"},{label:"Standard (12mm)",value:"12mm"},{label:"Large (20mm)",value:"20mm"},{label:"Formal (25mm)",value:"25mm"}]}}),V(),ie(),D("design:type",String)],Dr.prototype,"pageMargins",void 0);_([B({defaultValue:"60px"}),z({field_type:$.TEXT,label:"Print Header Height",description:"Height allocated for print header (CSS units: px, mm, etc.)",placeholder:"60px"}),V(),ie(),D("design:type",String)],Dr.prototype,"printHeaderHeight",void 0);_([B({defaultValue:"40px"}),z({field_type:$.TEXT,label:"Print Footer Height",description:"Height allocated for print footer (CSS units: px, mm, etc.)",placeholder:"40px"}),V(),ie(),D("design:type",String)],Dr.prototype,"printFooterHeight",void 0);_([B(),z({field_type:$.TEXT,label:"Print Background",description:"CSS background for all printed pages (color, gradient, or image)",placeholder:"linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"}),V(),ie(),D("design:type",String)],Dr.prototype,"printBackground",void 0);_([B(),z({field_type:$.TEXT,label:"Print Background (First Page)",description:"Different background for the first page only",placeholder:"url(/logo-watermark.png) no-repeat center, #ffffff"}),V(),ie(),D("design:type",String)],Dr.prototype,"printBackgroundFirstPage",void 0);Dr=_([Nt("PrintConfig","1.0.0")],Dr);let rn=class extends mt{};_([B(),z({field_type:$.TEXT,label:"Page Slug",description:'URL-friendly page identifier (e.g., "about-us")',placeholder:"page-slug"}),V(),ie(),D("design:type",String)],rn.prototype,"slug",void 0);_([B(),z({field_type:$.TEXT,label:"Page Name",description:"Human-readable page name",placeholder:"About Us"}),V(),ie(),D("design:type",String)],rn.prototype,"name",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Page Description",description:"Description of the page content (used for SEO)",placeholder:"Brief description of this page..."}),V(),ie(),D("design:type",String)],rn.prototype,"description",void 0);_([B(),z({field_type:$.TEXT,label:"Page Title",description:"HTML title tag content (defaults to name if not provided)",placeholder:"Page Title | Site Name"}),V(),ie(),D("design:type",String)],rn.prototype,"title",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Meta Keywords",description:"SEO keywords (comma-separated)",placeholder:"keyword1, keyword2, keyword3"}),V(),ie(),D("design:type",String)],rn.prototype,"metaKeywords",void 0);_([B(),z({field_type:$.TEXT,label:"Meta Author",description:"Page author information",placeholder:"Author Name"}),V(),ie(),D("design:type",String)],rn.prototype,"metaAuthor",void 0);_([B(),z({field_type:$.URL,label:"Canonical URL",description:"Canonical URL for SEO (optional)",placeholder:"https://example.com/page"}),V(),ie(),D("design:type",String)],rn.prototype,"canonicalUrl",void 0);_([B(),z({field_type:$.TEXTAREA,label:"Page Content",description:"Main page content - can include React components and HTML"}),V(),D("design:type",Object)],rn.prototype,"children",void 0);_([B(),z({field_type:$.FORM,label:"Print Configuration",description:"Configuration for print mode behavior"}),V(),ro(),oo(()=>Dr),D("design:type",Dr)],rn.prototype,"printConfig",void 0);_([B(),z({field_type:$.TEXT,label:"Layout Template",description:"Layout template identifier to use for this page",placeholder:"default, fullwidth, sidebar, etc."}),V(),ie(),D("design:type",String)],rn.prototype,"layout",void 0);_([B(),z({field_type:$.TEXT,label:"Page Icon",description:"Icon identifier for page (used in navigation)",placeholder:"home, about, contact"}),V(),ie(),D("design:type",String)],rn.prototype,"icon",void 0);_([B({defaultValue:!1}),z({field_type:$.BOOLEAN,label:"Requires Authentication",description:"Whether this page requires user authentication"}),V(),D("design:type",Boolean)],rn.prototype,"requiresAuth",void 0);_([B(),z({field_type:$.TEXT,label:"Required Roles",description:"Comma-separated list of roles required to access this page",placeholder:"admin, user, moderator"}),V(),ie(),D("design:type",String)],rn.prototype,"requiredRoles",void 0);_([B({defaultValue:!0}),z({field_type:$.BOOLEAN,label:"Show in Navigation",description:"Whether to include this page in navigation menus"}),V(),D("design:type",Boolean)],rn.prototype,"showInNavigation",void 0);_([B({defaultValue:0}),z({field_type:$.NUMBER,label:"Navigation Priority",description:"Priority in navigation (lower numbers appear first)"}),V(),D("design:type",Number)],rn.prototype,"navigationPriority",void 0);_([B({defaultValue:!0}),z({field_type:$.BOOLEAN,label:"Indexable",description:"Whether search engines should index this page"}),V(),D("design:type",Boolean)],rn.prototype,"indexable",void 0);rn=_([Nt("PageTemplate","1.0.0")],rn);const fU=vv.create().withName("Control Panel").withId("com.qwickapps.control-panel").withVersion("1.0.0").withDefaultTheme("dark").withDefaultPalette("cosmic").withThemeSwitcher(!0).withPaletteSwitcher(!0).withDisplay("standalone").build(),Sk=S.createContext(null);function hU({initialWidgets:t=[],children:e}){const[r,n]=S.useState(t.map(u=>({...u,visible:u.visible!==!1,priority:u.priority??100}))),o=S.useCallback(u=>{n(f=>f.some(v=>v.id===u.id)?f.map(v=>v.id===u.id?{...u,visible:u.visible!==!1,priority:u.priority??100}:v):[...f,{...u,visible:u.visible!==!1,priority:u.priority??100}])},[]),a=S.useCallback(u=>{n(f=>f.filter(h=>h.id!==u))},[]),l=S.useCallback((u,f)=>{n(h=>h.map(v=>v.id===u?{...v,visible:f??!v.visible}:v))},[]),c=S.useCallback(()=>r.filter(u=>u.visible!==!1).sort((u,f)=>(u.priority??100)-(f.priority??100)),[r]);return d.jsx(Sk.Provider,{value:{widgets:r,registerWidget:o,unregisterWidget:a,toggleWidget:l,getVisibleWidgets:c},children:e})}function mU(){const t=S.useContext(Sk);if(!t)throw new Error("useDashboardWidgets must be used within a DashboardWidgetProvider");return t}function gU(){const{getVisibleWidgets:t}=mU(),e=t();return e.length===0?null:d.jsx(d.Fragment,{children:e.map(r=>d.jsxs(fe,{sx:{mt:4},children:[r.title&&d.jsx(Ee,{variant:"h6",sx:{mb:2,color:"var(--theme-text-primary)"},children:r.title}),r.component]},r.id))})}const yU=S.createContext(null);function vU(){const t=S.useContext(yU);if(!t)throw new Error("useWidgetComponentRegistry must be used within a WidgetComponentRegistryProvider");return t}class bU{constructor(e=""){hs(this,"baseUrl");this.baseUrl=e}setBaseUrl(e){this.baseUrl=e}async detectFeatures(){const[e,r,n]=await Promise.all([this.checkEndpoint("/api/users"),this.checkEndpoint("/api/bans"),this.checkEndpoint("/api/entitlements/available")]);let o=!0;if(n)try{o=(await this.getEntitlementsStatus()).readonly}catch{}return{users:e,bans:r,entitlements:n,entitlementsReadonly:o}}async checkEndpoint(e){try{return(await fetch(`${this.baseUrl}${e}`,{method:"HEAD"})).status!==404}catch{return!1}}async getUsers(e={}){const r=new URLSearchParams;e.limit&&r.set("limit",e.limit.toString()),e.page&&r.set("page",e.page.toString()),e.search&&r.set("search",e.search);const n=await fetch(`${this.baseUrl}/api/users?${r}`);if(!n.ok)throw new Error(`Users request failed: ${n.statusText}`);return n.json()}async getUserById(e){const r=await fetch(`${this.baseUrl}/api/users/${e}`);if(!r.ok)throw new Error(`User request failed: ${r.statusText}`);return r.json()}async getBans(){const e=await fetch(`${this.baseUrl}/api/bans`);if(!e.ok)throw new Error(`Bans request failed: ${e.statusText}`);return e.json()}async banUser(e,r,n){const o=await fetch(`${this.baseUrl}/api/bans`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,reason:r,expiresAt:n})});if(!o.ok){const a=await o.json().catch(()=>({}));throw new Error(a.error||`Ban request failed: ${o.statusText}`)}}async unbanUser(e){const r=await fetch(`${this.baseUrl}/api/bans/${encodeURIComponent(e)}`,{method:"DELETE"});if(!r.ok)throw new Error(`Unban request failed: ${r.statusText}`)}async checkBan(e){const r=await fetch(`${this.baseUrl}/api/bans/check/${encodeURIComponent(e)}`);if(!r.ok)throw new Error(`Ban check failed: ${r.statusText}`);return r.json()}async getEntitlements(e){const r=await fetch(`${this.baseUrl}/api/entitlements/${encodeURIComponent(e)}`);if(!r.ok)throw new Error(`Entitlements request failed: ${r.statusText}`);return r.json()}async refreshEntitlements(e){const r=await fetch(`${this.baseUrl}/api/entitlements/${encodeURIComponent(e)}/refresh`,{method:"POST"});if(!r.ok)throw new Error(`Entitlements refresh failed: ${r.statusText}`);return r.json()}async checkEntitlement(e,r){const n=await fetch(`${this.baseUrl}/api/entitlements/${encodeURIComponent(e)}/check/${encodeURIComponent(r)}`);if(!n.ok)throw new Error(`Entitlement check failed: ${n.statusText}`);return n.json()}async getAvailableEntitlements(){const e=await fetch(`${this.baseUrl}/api/entitlements/available`);if(!e.ok)throw new Error(`Available entitlements request failed: ${e.statusText}`);return(await e.json()).entitlements}async grantEntitlement(e,r){const n=await fetch(`${this.baseUrl}/api/entitlements/${encodeURIComponent(e)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({entitlement:r})});if(!n.ok){const o=await n.json().catch(()=>({}));throw new Error(o.error||`Grant entitlement failed: ${n.statusText}`)}}async revokeEntitlement(e,r){const n=await fetch(`${this.baseUrl}/api/entitlements/${encodeURIComponent(e)}/${encodeURIComponent(r)}`,{method:"DELETE"});if(!n.ok)throw new Error(`Revoke entitlement failed: ${n.statusText}`)}async invalidateEntitlementCache(e){const r=await fetch(`${this.baseUrl}/api/entitlements/cache/${encodeURIComponent(e)}`,{method:"DELETE"});if(!r.ok)throw new Error(`Cache invalidation failed: ${r.statusText}`)}async getEntitlementsStatus(){const e=await fetch(`${this.baseUrl}/api/entitlements/status`);if(!e.ok)throw new Error(`Entitlements status request failed: ${e.statusText}`);return e.json()}async getHealth(){const e=await fetch(`${this.baseUrl}/api/health`);if(!e.ok)throw new Error(`Health check failed: ${e.statusText}`);return e.json()}async getInfo(){const e=await fetch(`${this.baseUrl}/api/info`);if(!e.ok)throw new Error(`Info request failed: ${e.statusText}`);return e.json()}async getDiagnostics(){const e=await fetch(`${this.baseUrl}/api/diagnostics`);if(!e.ok)throw new Error(`Diagnostics request failed: ${e.statusText}`);return e.json()}async getConfig(){const e=await fetch(`${this.baseUrl}/api/config`);if(!e.ok)throw new Error(`Config request failed: ${e.statusText}`);return e.json()}async getLogs(e={}){const r=new URLSearchParams;e.source&&r.set("source",e.source),e.level&&r.set("level",e.level),e.search&&r.set("search",e.search),e.limit&&r.set("limit",e.limit.toString()),e.page&&r.set("page",e.page.toString());const n=await fetch(`${this.baseUrl}/api/logs?${r}`);if(!n.ok)throw new Error(`Logs request failed: ${n.statusText}`);return n.json()}async getLogSources(){const e=await fetch(`${this.baseUrl}/api/logs/sources`);if(!e.ok)throw new Error(`Log sources request failed: ${e.statusText}`);return(await e.json()).sources}async getPlugins(){const e=await fetch(`${this.baseUrl}/api/plugins`);if(!e.ok)throw new Error(`Plugins request failed: ${e.statusText}`);return e.json()}async getPluginDetail(e){const r=await fetch(`${this.baseUrl}/api/plugins/${encodeURIComponent(e)}`);if(!r.ok)throw r.status===404?new Error(`Plugin not found: ${e}`):new Error(`Plugin detail request failed: ${r.statusText}`);return r.json()}async getUiContributions(){const e=await fetch(`${this.baseUrl}/api/ui-contributions`);if(!e.ok)throw new Error(`UI contributions request failed: ${e.statusText}`);return e.json()}async getAuthConfigStatus(){const e=await fetch(`${this.baseUrl}/api/auth/config/status`);if(!e.ok){if(e.status===404)return{state:"disabled",adapter:null};throw new Error(`Auth config status request failed: ${e.statusText}`)}return e.json()}async getAuthConfig(){const e=await fetch(`${this.baseUrl}/api/auth/config`);if(!e.ok){if(e.status===404)return{state:"disabled",adapter:null};throw new Error(`Auth config request failed: ${e.statusText}`)}return e.json()}}const nr=new bU;function xU({defaultOnly:t=!0,additionalWidgetIds:e=[]}){const[r,n]=S.useState([]),[o,a]=S.useState(!0),[l,c]=S.useState(null),{getComponent:u,hasComponent:f}=vU();if(S.useEffect(()=>{(async()=>{try{const g=await nr.getUiContributions();n(g.widgets||[]),c(null)}catch(g){c(g instanceof Error?g.message:"Failed to fetch widgets")}finally{a(!1)}})()},[]),o)return d.jsx(fe,{sx:{display:"flex",justifyContent:"center",py:4},children:d.jsx(On,{size:24})});if(l)return d.jsx(Tn,{severity:"error",sx:{mt:2},children:l});const h=r.filter(v=>t?v.showByDefault||e.includes(v.id):!0).filter(v=>f(v.component)?!0:(console.warn(`Widget "${v.id}" references unregistered component "${v.component}"`),!1)).sort((v,g)=>(v.priority??100)-(g.priority??100));return h.length===0?null:d.jsx(d.Fragment,{children:h.map(v=>{const g=u(v.component);return d.jsxs(fe,{sx:{mt:4},children:[v.title&&d.jsx(Ee,{variant:"h6",sx:{mb:2,color:"var(--theme-text-primary)"},children:v.title}),g&&d.jsx(g,{})]},v.id)})})}function wU(t){switch(t){case"healthy":return d.jsx(dd,{sx:{color:"var(--theme-success)"}});case"degraded":return d.jsx(D0,{sx:{color:"var(--theme-warning)"}});case"unhealthy":return d.jsx(pd,{sx:{color:"var(--theme-error)"}});default:return d.jsx(On,{size:20})}}function Vg(t){switch(t){case"healthy":return"var(--theme-success)";case"degraded":return"var(--theme-warning)";case"unhealthy":return"var(--theme-error)";default:return"var(--theme-text-secondary)"}}function SU(){var g,y;const t=t0(),[e,r]=S.useState(null),[n,o]=S.useState(null),[a,l]=S.useState(!0),[c,u]=S.useState(null);if(S.useEffect(()=>{const w=async()=>{try{const[C,j]=await Promise.all([nr.getHealth(),nr.getInfo()]);r(C),o(j),u(null)}catch(C){u(C instanceof Error?C.message:"Failed to fetch data")}finally{l(!1)}};w();const x=setInterval(w,1e4);return()=>clearInterval(x)},[]),a)return d.jsx(fe,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"50vh"},children:d.jsx(On,{})});if(c)return d.jsx(Ut,{sx:{bgcolor:"var(--theme-surface)",border:"1px solid var(--theme-error)"},children:d.jsx(qt,{children:d.jsx(Ee,{color:"error",children:c})})});const f=e?Object.entries(e.checks):[],h=f.filter(([,w])=>w.status==="healthy").length,v=f.length;return d.jsxs(fe,{children:[d.jsx(Ee,{variant:"h4",sx:{mb:1,color:"var(--theme-text-primary)"},children:"Dashboard"}),d.jsxs(Ee,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:["Real-time overview of ",(n==null?void 0:n.product)||"your service"]}),d.jsx(Ut,{sx:{mb:4,bgcolor:"var(--theme-surface)",border:`2px solid ${Vg((e==null?void 0:e.status)||"unknown")}`},children:d.jsx(rL,{onClick:()=>t("/health"),children:d.jsxs(qt,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[d.jsxs(fe,{sx:{display:"flex",alignItems:"center",gap:2},children:[wU((e==null?void 0:e.status)||"unknown"),d.jsxs(fe,{children:[d.jsxs(Ee,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:["Service Status: ",(g=e==null?void 0:e.status)==null?void 0:g.charAt(0).toUpperCase(),(y=e==null?void 0:e.status)==null?void 0:y.slice(1)]}),d.jsx(Ee,{variant:"body2",sx:{color:"var(--theme-text-secondary)"},children:"Click to view detailed health information"})]})]}),d.jsx(gr,{label:`${h}/${v} checks passing`,sx:{bgcolor:Vg((e==null?void 0:e.status)||"unknown")+"20",color:Vg((e==null?void 0:e.status)||"unknown")}})]})})}),d.jsx(xU,{}),d.jsx(gU,{})]})}function bC(t){switch(t.toLowerCase()){case"error":return"var(--theme-error)";case"warn":case"warning":return"var(--theme-warning)";case"info":return"var(--theme-info)";case"debug":return"var(--theme-text-secondary)";default:return"var(--theme-text-primary)"}}function CU(){const[t,e]=S.useState([]),[r,n]=S.useState([]),[o,a]=S.useState(!0),[l,c]=S.useState(null),[u,f]=S.useState(""),[h,v]=S.useState(""),[g,y]=S.useState(""),[w,x]=S.useState(1),[C,j]=S.useState(0),P=50,[M,E]=S.useState(!1),[R,I]=S.useState("desc"),F=S.useRef(null),A={total:C,errors:t.filter(U=>U.level.toLowerCase()==="error").length,warnings:t.filter(U=>["warn","warning"].includes(U.level.toLowerCase())).length,info:t.filter(U=>U.level.toLowerCase()==="info").length,debug:t.filter(U=>U.level.toLowerCase()==="debug").length},H=S.useCallback(async()=>{a(!0);try{const U=await nr.getLogs({source:u||void 0,level:h||void 0,search:g||void 0,limit:P,page:w}),L=[...U.logs].sort((W,K)=>{const ee=new Date(W.timestamp).getTime(),Z=new Date(K.timestamp).getTime();return R==="desc"?Z-ee:ee-Z});e(L),j(U.total),c(null)}catch(U){c(U instanceof Error?U.message:"Failed to fetch logs")}finally{a(!1)}},[u,h,g,w,R]),G=async()=>{try{const U=await nr.getLogSources();n(U)}catch{}};S.useEffect(()=>{G()},[]),S.useEffect(()=>{H()},[H]),S.useEffect(()=>(M?F.current=setInterval(H,5e3):F.current&&(clearInterval(F.current),F.current=null),()=>{F.current&&clearInterval(F.current)}),[M,H]);const N=()=>{x(1),H()},k=(U,L)=>{L!==null&&I(L)},q=Math.ceil(C/P);return d.jsxs(fe,{children:[d.jsx(Ee,{variant:"h4",sx:{mb:1,color:"var(--theme-text-primary)"},children:"Logs"}),d.jsx(Ee,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:"View and search application logs"}),d.jsxs(Ln,{container:!0,spacing:2,sx:{mb:3},children:[d.jsx(Ln,{size:{xs:6,sm:3,md:2.4},children:d.jsx(Ut,{sx:{bgcolor:"var(--theme-surface)"},children:d.jsxs(qt,{sx:{py:1.5,px:2,"&:last-child":{pb:1.5}},children:[d.jsx(fe,{sx:{display:"flex",alignItems:"center",gap:1},children:d.jsx(Ee,{variant:"h5",sx:{color:"var(--theme-text-primary)",fontWeight:600},children:A.total.toLocaleString()})}),d.jsx(Ee,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"Total Logs"})]})})}),d.jsx(Ln,{size:{xs:6,sm:3,md:2.4},children:d.jsx(Ut,{sx:{bgcolor:"var(--theme-surface)"},children:d.jsxs(qt,{sx:{py:1.5,px:2,"&:last-child":{pb:1.5}},children:[d.jsxs(fe,{sx:{display:"flex",alignItems:"center",gap:1},children:[d.jsx(pd,{sx:{color:"var(--theme-error)",fontSize:20}}),d.jsx(Ee,{variant:"h5",sx:{color:"var(--theme-error)",fontWeight:600},children:A.errors})]}),d.jsx(Ee,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"Errors"})]})})}),d.jsx(Ln,{size:{xs:6,sm:3,md:2.4},children:d.jsx(Ut,{sx:{bgcolor:"var(--theme-surface)"},children:d.jsxs(qt,{sx:{py:1.5,px:2,"&:last-child":{pb:1.5}},children:[d.jsxs(fe,{sx:{display:"flex",alignItems:"center",gap:1},children:[d.jsx(D0,{sx:{color:"var(--theme-warning)",fontSize:20}}),d.jsx(Ee,{variant:"h5",sx:{color:"var(--theme-warning)",fontWeight:600},children:A.warnings})]}),d.jsx(Ee,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"Warnings"})]})})}),d.jsx(Ln,{size:{xs:6,sm:3,md:2.4},children:d.jsx(Ut,{sx:{bgcolor:"var(--theme-surface)"},children:d.jsxs(qt,{sx:{py:1.5,px:2,"&:last-child":{pb:1.5}},children:[d.jsxs(fe,{sx:{display:"flex",alignItems:"center",gap:1},children:[d.jsx(Ey,{sx:{color:"var(--theme-info)",fontSize:20}}),d.jsx(Ee,{variant:"h5",sx:{color:"var(--theme-info)",fontWeight:600},children:A.info})]}),d.jsx(Ee,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"Info"})]})})}),d.jsx(Ln,{size:{xs:6,sm:3,md:2.4},children:d.jsx(Ut,{sx:{bgcolor:"var(--theme-surface)"},children:d.jsxs(qt,{sx:{py:1.5,px:2,"&:last-child":{pb:1.5}},children:[d.jsxs(fe,{sx:{display:"flex",alignItems:"center",gap:1},children:[d.jsx(M9,{sx:{color:"var(--theme-text-secondary)",fontSize:20}}),d.jsx(Ee,{variant:"h5",sx:{color:"var(--theme-text-primary)",fontWeight:600},children:A.debug})]}),d.jsx(Ee,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"Debug"})]})})})]}),d.jsx(Ut,{sx:{mb:3,bgcolor:"var(--theme-surface)"},children:d.jsx(qt,{children:d.jsxs(fe,{sx:{display:"flex",gap:2,flexWrap:"wrap",alignItems:"center"},children:[r.length>0&&d.jsxs(za,{size:"small",sx:{minWidth:150},children:[d.jsx(Vl,{sx:{color:"var(--theme-text-secondary)"},children:"Source"}),d.jsxs(Ms,{value:u,label:"Source",onChange:U=>f(U.target.value),sx:{color:"var(--theme-text-primary)"},children:[d.jsx(cn,{value:"",children:"All Sources"}),r.map(U=>d.jsx(cn,{value:U.name,children:U.name},U.name))]})]}),d.jsxs(za,{size:"small",sx:{minWidth:120},children:[d.jsx(Vl,{sx:{color:"var(--theme-text-secondary)"},children:"Level"}),d.jsxs(Ms,{value:h,label:"Level",onChange:U=>v(U.target.value),sx:{color:"var(--theme-text-primary)"},children:[d.jsx(cn,{value:"",children:"All Levels"}),d.jsx(cn,{value:"error",children:"Error"}),d.jsx(cn,{value:"warn",children:"Warning"}),d.jsx(cn,{value:"info",children:"Info"}),d.jsx(cn,{value:"debug",children:"Debug"})]})]}),d.jsx(un,{size:"small",placeholder:"Search logs...",value:g,onChange:U=>y(U.target.value),onKeyPress:U=>U.key==="Enter"&&N(),sx:{flex:1,minWidth:200,"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}},InputProps:{startAdornment:d.jsx(vh,{sx:{mr:1,color:"var(--theme-text-secondary)"}})}}),d.jsxs(e8,{value:R,exclusive:!0,onChange:k,size:"small","aria-label":"sort order",children:[d.jsx(Xw,{value:"desc","aria-label":"newest first",children:d.jsx(Zr,{title:"Newest First",children:d.jsx(C9,{fontSize:"small"})})}),d.jsx(Xw,{value:"asc","aria-label":"oldest first",children:d.jsx(Zr,{title:"Oldest First",children:d.jsx(E9,{fontSize:"small"})})})]}),d.jsx(Zr,{title:M?"Pause auto-refresh":"Enable auto-refresh (5s)",children:d.jsx(ur,{onClick:()=>E(!M),sx:{color:M?"var(--theme-success)":"var(--theme-text-secondary)",bgcolor:M?"var(--theme-success)20":"transparent"},children:M?d.jsx(t7,{}):d.jsx(o7,{})})}),d.jsx(Zr,{title:"Refresh",children:d.jsx(ur,{onClick:H,sx:{color:"var(--theme-primary)"},children:d.jsx(z0,{})})})]})})}),l&&d.jsx(Ut,{sx:{mb:3,bgcolor:"var(--theme-surface)",border:"1px solid var(--theme-error)"},children:d.jsx(qt,{children:d.jsx(Ee,{color:"error",children:l})})}),d.jsx(Ut,{sx:{bgcolor:"var(--theme-surface)"},children:o?d.jsx(fe,{sx:{display:"flex",justifyContent:"center",p:4},children:d.jsx(On,{})}):t.length===0?d.jsx(qt,{children:d.jsx(Ee,{sx:{color:"var(--theme-text-secondary)",textAlign:"center"},children:"No logs found"})}):d.jsxs(d.Fragment,{children:[d.jsx(Gl,{children:d.jsxs(Wl,{size:"small",children:[d.jsx(Xl,{children:d.jsxs(Cn,{children:[d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",width:180},children:"Timestamp"}),d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",width:100},children:"Level"}),d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",width:120},children:"Component"}),d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Message"})]})}),d.jsx(ql,{children:t.map((U,L)=>d.jsxs(Cn,{hover:!0,children:[d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",fontFamily:"monospace",fontSize:"0.75rem"},children:new Date(U.timestamp).toLocaleString()}),d.jsx(it,{sx:{borderColor:"var(--theme-border)"},children:d.jsx(gr,{label:U.level.toUpperCase(),size:"small",sx:{bgcolor:bC(U.level)+"20",color:bC(U.level),fontSize:"0.65rem",height:20}})}),d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",fontSize:"0.75rem"},children:U.namespace||"-"}),d.jsx(it,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)",fontFamily:"monospace",fontSize:"0.8rem",whiteSpace:"pre-wrap",wordBreak:"break-all"},children:U.message})]},L))})]})}),q>1&&d.jsx(fe,{sx:{display:"flex",justifyContent:"center",p:2},children:d.jsx(KO,{count:q,page:w,onChange:(U,L)=>x(L),sx:{"& .MuiPaginationItem-root":{color:"var(--theme-text-primary)"}}})})]})})]})}function Wg(t){if(t===0)return"0 B";const e=1024,r=["B","KB","MB","GB"],n=Math.floor(Math.log(t)/Math.log(e));return parseFloat((t/Math.pow(e,n)).toFixed(2))+" "+r[n]}function TU(t){const e=Math.floor(t/1e3),r=Math.floor(e/60),n=Math.floor(r/60),o=Math.floor(n/24);return o>0?`${o}d ${n%24}h ${r%60}m`:n>0?`${n}h ${r%60}m ${e%60}s`:r>0?`${r}m ${e%60}s`:`${e}s`}function EU(t,e=20){switch(t){case"healthy":return d.jsx(dd,{sx:{color:"var(--theme-success)",fontSize:e}});case"degraded":return d.jsx(D0,{sx:{color:"var(--theme-warning)",fontSize:e}});case"unhealthy":return d.jsx(pd,{sx:{color:"var(--theme-error)",fontSize:e}});default:return d.jsx(On,{size:e})}}function lu(t){switch(t){case"healthy":return"var(--theme-success)";case"degraded":return"var(--theme-warning)";case"unhealthy":return"var(--theme-error)";default:return"var(--theme-text-secondary)"}}function kU(t){return t===void 0?"-":t<1e3?`${t}ms`:`${(t/1e3).toFixed(2)}s`}function PU(){const[t,e]=S.useState(null),[r,n]=S.useState(null),[o,a]=S.useState(!0),[l,c]=S.useState(null),[u,f]=S.useState({open:!1,message:""}),h=async()=>{a(!0);try{const[y,w]=await Promise.all([nr.getDiagnostics(),nr.getHealth().catch(()=>null)]);e(y),n(w),c(null)}catch(y){c(y instanceof Error?y.message:"Failed to fetch diagnostics")}finally{a(!1)}};S.useEffect(()=>{h();const y=setInterval(h,3e4);return()=>clearInterval(y)},[]);const v=()=>{navigator.clipboard.writeText(JSON.stringify(t,null,2)),f({open:!0,message:"Diagnostics copied to clipboard"})};if(o&&!t)return d.jsx(fe,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"50vh"},children:d.jsx(On,{})});if(l)return d.jsx(Ut,{sx:{bgcolor:"var(--theme-surface)",border:"1px solid var(--theme-error)"},children:d.jsx(qt,{children:d.jsx(Ee,{color:"error",children:l})})});const g=t?t.system.memory.used/t.system.memory.total*100:0;return d.jsxs(fe,{children:[d.jsxs(fe,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},children:[d.jsx(Ee,{variant:"h4",sx:{color:"var(--theme-text-primary)"},children:"System"}),d.jsxs(fe,{sx:{display:"flex",gap:1},children:[d.jsx(Zr,{title:"Copy diagnostics JSON",children:d.jsx(ur,{onClick:v,sx:{color:"var(--theme-primary)"},children:d.jsx(MT,{})})}),d.jsx(Zr,{title:"Refresh",children:d.jsx(ur,{onClick:h,sx:{color:"var(--theme-primary)"},children:d.jsx(z0,{})})})]})]}),d.jsx(Ee,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:"System information and diagnostics"}),d.jsxs(Ln,{container:!0,spacing:3,children:[d.jsx(Ln,{size:{xs:12,md:6},children:d.jsx(Ut,{sx:{bgcolor:"var(--theme-surface)",height:"100%"},children:d.jsxs(qt,{children:[d.jsxs(fe,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[d.jsx(jT,{sx:{color:"var(--theme-primary)"}}),d.jsx(Ee,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:"System Information"})]}),d.jsxs(fe,{sx:{display:"flex",flexDirection:"column",gap:2},children:[d.jsxs(fe,{sx:{display:"flex",justifyContent:"space-between"},children:[d.jsx(Ee,{sx:{color:"var(--theme-text-secondary)"},children:"QwickApps Server"}),d.jsx(gr,{label:t!=null&&t.frameworkVersion?`v${t.frameworkVersion}`:"N/A",size:"small",sx:{bgcolor:"var(--theme-primary)20",color:"var(--theme-primary)"}})]}),d.jsxs(fe,{sx:{display:"flex",justifyContent:"space-between"},children:[d.jsx(Ee,{sx:{color:"var(--theme-text-secondary)"},children:"Node.js"}),d.jsx(gr,{label:t==null?void 0:t.system.nodeVersion,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)"}})]}),d.jsxs(fe,{sx:{display:"flex",justifyContent:"space-between"},children:[d.jsx(Ee,{sx:{color:"var(--theme-text-secondary)"},children:"Platform"}),d.jsx(gr,{label:t==null?void 0:t.system.platform,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)"}})]}),d.jsxs(fe,{sx:{display:"flex",justifyContent:"space-between"},children:[d.jsx(Ee,{sx:{color:"var(--theme-text-secondary)"},children:"Architecture"}),d.jsx(gr,{label:t==null?void 0:t.system.arch,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)"}})]})]})]})})}),d.jsx(Ln,{size:{xs:12,md:6},children:d.jsx(Ut,{sx:{bgcolor:"var(--theme-surface)",height:"100%"},children:d.jsxs(qt,{children:[d.jsxs(fe,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[d.jsx(_T,{sx:{color:"var(--theme-warning)"}}),d.jsx(Ee,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:"Memory Usage"})]}),d.jsxs(fe,{sx:{mb:2},children:[d.jsxs(fe,{sx:{display:"flex",justifyContent:"space-between",mb:1},children:[d.jsx(Ee,{sx:{color:"var(--theme-text-secondary)"},children:"Heap Used"}),d.jsx(Ee,{sx:{color:"var(--theme-text-primary)"},children:Wg((t==null?void 0:t.system.memory.used)||0)})]}),d.jsx(I0,{variant:"determinate",value:g,sx:{height:8,borderRadius:4,bgcolor:"var(--theme-background)","& .MuiLinearProgress-bar":{bgcolor:g>80?"var(--theme-error)":"var(--theme-warning)",borderRadius:4}}})]}),d.jsxs(fe,{sx:{display:"flex",flexDirection:"column",gap:2},children:[d.jsxs(fe,{sx:{display:"flex",justifyContent:"space-between"},children:[d.jsx(Ee,{sx:{color:"var(--theme-text-secondary)"},children:"Heap Total"}),d.jsx(Ee,{sx:{color:"var(--theme-text-primary)"},children:Wg((t==null?void 0:t.system.memory.total)||0)})]}),d.jsxs(fe,{sx:{display:"flex",justifyContent:"space-between"},children:[d.jsx(Ee,{sx:{color:"var(--theme-text-secondary)"},children:"Heap Free"}),d.jsx(Ee,{sx:{color:"var(--theme-text-primary)"},children:Wg((t==null?void 0:t.system.memory.free)||0)})]})]})]})})}),d.jsx(Ln,{size:{xs:12,md:6},children:d.jsx(Ut,{sx:{bgcolor:"var(--theme-surface)",height:"100%"},children:d.jsxs(qt,{children:[d.jsxs(fe,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[d.jsx(LT,{sx:{color:"var(--theme-info)"}}),d.jsx(Ee,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:"Service Info"})]}),d.jsxs(fe,{sx:{display:"flex",flexDirection:"column",gap:2},children:[d.jsxs(fe,{sx:{display:"flex",justifyContent:"space-between"},children:[d.jsx(Ee,{sx:{color:"var(--theme-text-secondary)"},children:"Product"}),d.jsx(Ee,{sx:{color:"var(--theme-text-primary)"},children:t==null?void 0:t.product})]}),d.jsxs(fe,{sx:{display:"flex",justifyContent:"space-between"},children:[d.jsx(Ee,{sx:{color:"var(--theme-text-secondary)"},children:"Version"}),d.jsx(gr,{label:(t==null?void 0:t.version)||"N/A",size:"small",sx:{bgcolor:"var(--theme-primary)20",color:"var(--theme-primary)"}})]}),d.jsxs(fe,{sx:{display:"flex",justifyContent:"space-between"},children:[d.jsx(Ee,{sx:{color:"var(--theme-text-secondary)"},children:"Timestamp"}),d.jsx(Ee,{sx:{color:"var(--theme-text-primary)",fontSize:"0.875rem"},children:t!=null&&t.timestamp?new Date(t.timestamp).toLocaleString():"N/A"})]})]})]})})}),d.jsx(Ln,{size:{xs:12,md:6},children:d.jsx(Ut,{sx:{bgcolor:"var(--theme-surface)",height:"100%"},children:d.jsxs(qt,{children:[d.jsxs(fe,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[d.jsx(x9,{sx:{color:"var(--theme-success)"}}),d.jsx(Ee,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:"Uptime"})]}),d.jsx(Ee,{variant:"h3",sx:{color:"var(--theme-success)",mb:1},children:TU((t==null?void 0:t.uptime)||0)}),d.jsx(Ee,{sx:{color:"var(--theme-text-secondary)"},children:"Service has been running without interruption"})]})})}),r&&d.jsx(Ln,{size:{xs:12},children:d.jsx(Ut,{sx:{bgcolor:"var(--theme-surface)"},children:d.jsxs(qt,{children:[d.jsxs(fe,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[d.jsx(RT,{sx:{color:lu(r.status)}}),d.jsx(Ee,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:"Health Checks"}),d.jsx(gr,{label:r.status,size:"small",sx:{bgcolor:lu(r.status)+"20",color:lu(r.status),textTransform:"capitalize",ml:"auto"}})]}),d.jsx(Gl,{children:d.jsxs(Wl,{size:"small",children:[d.jsx(Xl,{children:d.jsxs(Cn,{children:[d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Check"}),d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Status"}),d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Latency"}),d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Last Checked"})]})}),d.jsx(ql,{children:Object.entries(r.checks).map(([y,w])=>d.jsxs(Cn,{children:[d.jsx(it,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:d.jsxs(fe,{sx:{display:"flex",alignItems:"center",gap:1},children:[EU(w.status),d.jsx(Ee,{fontWeight:500,children:y})]})}),d.jsx(it,{sx:{borderColor:"var(--theme-border)"},children:d.jsx(gr,{label:w.status,size:"small",sx:{bgcolor:lu(w.status)+"20",color:lu(w.status),textTransform:"capitalize"}})}),d.jsx(it,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:kU(w.latency)}),d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:new Date(w.lastChecked).toLocaleTimeString()})]},y))})]})})]})})}),d.jsx(Ln,{size:{xs:12},children:d.jsx(Ut,{sx:{bgcolor:"var(--theme-surface)"},children:d.jsxs(qt,{children:[d.jsx(Ee,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:2},children:"Raw Diagnostics JSON (for AI agents)"}),d.jsx(fe,{component:"pre",sx:{bgcolor:"var(--theme-background)",p:2,borderRadius:1,overflow:"auto",maxHeight:300,color:"var(--theme-text-primary)",fontFamily:"monospace",fontSize:"0.75rem"},children:JSON.stringify(t,null,2)})]})})})]}),d.jsx(lT,{open:u.open,autoHideDuration:2e3,onClose:()=>f({...u,open:!1}),anchorOrigin:{vertical:"bottom",horizontal:"center"},children:d.jsx(Tn,{severity:"success",variant:"filled",children:u.message})})]})}function jU(t){switch(t){case"active":return d.jsx(dd,{sx:{color:"var(--theme-success)",fontSize:20}});case"error":return d.jsx(pd,{sx:{color:"var(--theme-error)",fontSize:20}});case"starting":return d.jsx(H9,{sx:{color:"var(--theme-warning)",fontSize:20}});case"stopped":return d.jsx(m7,{sx:{color:"var(--theme-text-secondary)",fontSize:20}});default:return null}}function xC(t){switch(t){case"active":return"var(--theme-success)";case"error":return"var(--theme-error)";case"starting":return"var(--theme-warning)";case"stopped":return"var(--theme-text-secondary)";default:return"var(--theme-text-secondary)"}}function MU({counts:t}){const e=[];return t.routes>0&&e.push(`${t.routes} route${t.routes>1?"s":""}`),t.menuItems>0&&e.push(`${t.menuItems} menu item${t.menuItems>1?"s":""}`),t.pages>0&&e.push(`${t.pages} page${t.pages>1?"s":""}`),t.widgets>0&&e.push(`${t.widgets} widget${t.widgets>1?"s":""}`),e.length===0?d.jsx(Ee,{sx:{color:"var(--theme-text-secondary)",fontSize:"0.875rem"},children:"No contributions"}):d.jsx(Ee,{sx:{color:"var(--theme-text-secondary)",fontSize:"0.875rem"},children:e.join(", ")})}function RU({plugin:t}){const[e,r]=S.useState(!1),[n,o]=S.useState(null),[a,l]=S.useState(!1),[c,u]=S.useState(null),f=async()=>{if(!e&&!n&&!c){l(!0),u(null);try{const v=await nr.getPluginDetail(t.id);o(v.contributions)}catch(v){console.error("Failed to load plugin details:",v),u(v instanceof Error?v.message:"Failed to load details")}finally{l(!1)}}r(!e)},h=t.contributionCounts.routes>0||t.contributionCounts.menuItems>0||t.contributionCounts.pages>0||t.contributionCounts.widgets>0;return d.jsxs(d.Fragment,{children:[d.jsxs(Cn,{sx:{"& > *":{borderBottom:e?"none":void 0},cursor:h?"pointer":"default","&:hover":{bgcolor:h?"var(--theme-background)":void 0}},onClick:h?f:void 0,children:[d.jsx(it,{sx:{width:50,borderColor:"var(--theme-border)"},children:h&&d.jsx(ur,{size:"small",sx:{color:"var(--theme-text-secondary)"},children:e?d.jsx(X9,{}):d.jsx(G9,{})})}),d.jsx(it,{sx:{borderColor:"var(--theme-border)"},children:d.jsxs(fe,{sx:{display:"flex",alignItems:"center",gap:1},children:[jU(t.status),d.jsx(Ee,{sx:{color:"var(--theme-text-primary)",fontWeight:500},children:t.name})]})}),d.jsx(it,{sx:{borderColor:"var(--theme-border)"},children:d.jsx(Ee,{sx:{color:"var(--theme-text-secondary)",fontFamily:"monospace",fontSize:"0.875rem"},children:t.id})}),d.jsx(it,{sx:{borderColor:"var(--theme-border)"},children:t.version?d.jsx(gr,{label:`v${t.version}`,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)"}}):d.jsx(Ee,{sx:{color:"var(--theme-text-secondary)"},children:"-"})}),d.jsx(it,{sx:{borderColor:"var(--theme-border)"},children:d.jsx(gr,{label:t.status,size:"small",sx:{bgcolor:xC(t.status)+"20",color:xC(t.status),textTransform:"capitalize"}})}),d.jsx(it,{sx:{borderColor:"var(--theme-border)"},children:d.jsx(MU,{counts:t.contributionCounts})})]}),d.jsx(Cn,{children:d.jsx(it,{style:{paddingBottom:0,paddingTop:0},colSpan:6,sx:{borderColor:"var(--theme-border)"},children:d.jsx(xf,{in:e,timeout:"auto",unmountOnExit:!0,children:d.jsx(fe,{sx:{py:2,px:4},children:a?d.jsx(fe,{sx:{display:"flex",justifyContent:"center",py:2},children:d.jsx(On,{size:24})}):c?d.jsx(Tn,{severity:"error",sx:{mb:1},children:c}):n?d.jsxs(fe,{sx:{display:"flex",flexDirection:"column",gap:2},children:[t.status==="error"&&t.error&&d.jsx(Tn,{severity:"error",sx:{mb:1},children:t.error}),n.routes.length>0&&d.jsxs(fe,{children:[d.jsxs(Ee,{variant:"subtitle2",sx:{color:"var(--theme-text-primary)",mb:1},children:["Routes (",n.routes.length,")"]}),d.jsx(fe,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:n.routes.map((v,g)=>d.jsx(gr,{label:`${v.method.toUpperCase()} ${v.path}`,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)",fontFamily:"monospace",fontSize:"0.75rem"}},g))})]}),n.menuItems.length>0&&d.jsxs(fe,{children:[d.jsxs(Ee,{variant:"subtitle2",sx:{color:"var(--theme-text-primary)",mb:1},children:["Menu Items (",n.menuItems.length,")"]}),d.jsx(fe,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:n.menuItems.map(v=>d.jsx(gr,{label:`${v.label} (${v.route})`,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)"}},v.id))})]}),n.pages.length>0&&d.jsxs(fe,{children:[d.jsxs(Ee,{variant:"subtitle2",sx:{color:"var(--theme-text-primary)",mb:1},children:["Pages (",n.pages.length,")"]}),d.jsx(fe,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:n.pages.map(v=>d.jsx(gr,{label:`${v.title||v.id} (${v.route})`,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)"}},v.id))})]}),n.widgets.length>0&&d.jsxs(fe,{children:[d.jsxs(Ee,{variant:"subtitle2",sx:{color:"var(--theme-text-primary)",mb:1},children:["Widgets (",n.widgets.length,")"]}),d.jsx(fe,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:n.widgets.map(v=>d.jsx(gr,{label:v.title,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)"}},v.id))})]})]}):null})})})})]})}function IU(){const[t,e]=S.useState([]),[r,n]=S.useState(!0),[o,a]=S.useState(null);if(S.useEffect(()=>{(async()=>{try{const f=await nr.getPlugins();e(f.plugins),a(null)}catch(f){a(f instanceof Error?f.message:"Failed to fetch plugins")}finally{n(!1)}})()},[]),r)return d.jsx(fe,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"50vh"},children:d.jsx(On,{})});if(o)return d.jsx(Ut,{sx:{bgcolor:"var(--theme-surface)",border:"1px solid var(--theme-error)"},children:d.jsx(qt,{children:d.jsx(Ee,{color:"error",children:o})})});const l=t.filter(u=>u.status==="active").length,c=t.filter(u=>u.status==="error").length;return d.jsxs(fe,{children:[d.jsx(fe,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},children:d.jsxs(fe,{sx:{display:"flex",alignItems:"center",gap:2},children:[d.jsx(Ee,{variant:"h4",sx:{color:"var(--theme-text-primary)"},children:"Plugins"}),d.jsx(gr,{icon:d.jsx($9,{sx:{fontSize:16}}),label:`${l}/${t.length} active`,size:"small",sx:{bgcolor:l===t.length?"var(--theme-success)20":"var(--theme-warning)20",color:l===t.length?"var(--theme-success)":"var(--theme-warning)"}}),c>0&&d.jsx(gr,{icon:d.jsx(pd,{sx:{fontSize:16}}),label:`${c} error${c>1?"s":""}`,size:"small",sx:{bgcolor:"var(--theme-error)20",color:"var(--theme-error)"}})]})}),d.jsx(Ee,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:"View registered plugins and their contributions to the control panel"}),t.length===0?d.jsx(Ut,{sx:{bgcolor:"var(--theme-surface)"},children:d.jsx(qt,{children:d.jsx(Ee,{sx:{color:"var(--theme-text-secondary)",textAlign:"center",py:4},children:"No plugins registered"})})}):d.jsx(Ut,{sx:{bgcolor:"var(--theme-surface)"},children:d.jsx(Gl,{children:d.jsxs(Wl,{children:[d.jsx(Xl,{children:d.jsxs(Cn,{children:[d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",width:50}}),d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Name"}),d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"ID"}),d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Version"}),d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Status"}),d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Contributions"})]})}),d.jsx(ql,{children:t.map(u=>d.jsx(RU,{plugin:u},u.id))})]})})})]})}function AU({title:t="User Management",subtitle:e="Manage users, bans, and entitlements",features:r,headerActions:n,onUserSelect:o}){const[a,l]=S.useState({users:(r==null?void 0:r.users)??!0,bans:(r==null?void 0:r.bans)??!1,entitlements:(r==null?void 0:r.entitlements)??!1,entitlementsReadonly:(r==null?void 0:r.entitlementsReadonly)??!0}),[c,u]=S.useState(!!r),[f,h]=S.useState(0),[v,g]=S.useState([]),[y,w]=S.useState(0),[x,C]=S.useState(0),[j,P]=S.useState(25),[M,E]=S.useState(""),[R,I]=S.useState({}),[F,A]=S.useState([]),[H,G]=S.useState(0),[N,k]=S.useState(!0),[q,U]=S.useState(null),[L,W]=S.useState(null),[K,ee]=S.useState(!1),[Z,Q]=S.useState({email:"",reason:"",expiresAt:""}),[X,re]=S.useState(!1),[ce,Y]=S.useState(""),[ne,J]=S.useState(!1),[de,Ce]=S.useState(!1),[me,se]=S.useState(null),[De,Ne]=S.useState(null),[Oe,Be]=S.useState([]),[_e,Ke]=S.useState(""),[pt,je]=S.useState(!1);S.useEffect(()=>{r||nr.detectFeatures().then(oe=>{l(oe),u(!0)}).catch(()=>{u(!0)})},[r]),S.useEffect(()=>{c&&a.entitlements&&!a.entitlementsReadonly&&nr.getAvailableEntitlements().then(Be).catch(()=>{})},[c,a.entitlements,a.entitlementsReadonly]);const ht=S.useCallback(async()=>{var oe;if(a.users){k(!0);try{const ke=await nr.getUsers({limit:j,page:x,search:M||void 0});if(g(ke.users||[]),w(ke.total),U(null),a.entitlements&&((oe=ke.users)!=null&&oe.length)){const $e={};await Promise.all(ke.users.map(async Fe=>{try{const xt=await nr.getEntitlements(Fe.email);$e[Fe.email]=xt.entitlements.length}catch{$e[Fe.email]=0}})),I(Fe=>({...Fe,...$e}))}}catch(ke){U(ke instanceof Error?ke.message:"Failed to fetch users")}finally{k(!1)}}},[a.users,a.entitlements,x,j,M]),We=S.useCallback(async()=>{if(a.bans){k(!0);try{const oe=await nr.getBans();A(oe.bans||[]),G(oe.total),U(null)}catch(oe){U(oe instanceof Error?oe.message:"Failed to fetch bans")}finally{k(!1)}}},[a.bans]);S.useEffect(()=>{c&&(f===0&&a.users?ht():f===1&&a.bans&&We())},[f,c,a.users,a.bans,ht,We]),S.useEffect(()=>{c&&a.bans&&We()},[c,a.bans,We]),S.useEffect(()=>{if(!c)return;const oe=setTimeout(()=>{f===0&&a.users&&(C(0),ht())},300);return()=>clearTimeout(oe)},[M,f,c,a.users,ht]);const ft=async()=>{try{await nr.banUser(Z.email,Z.reason,Z.expiresAt||void 0),W("User banned successfully"),ee(!1),Q({email:"",reason:"",expiresAt:""}),We()}catch(oe){U(oe instanceof Error?oe.message:"Failed to ban user")}},Ue=async oe=>{if(confirm("Unban this user?"))try{await nr.unbanUser(oe),W("User unbanned successfully"),We()}catch{U("Failed to unban user")}},Gt=async()=>{if(!ce.trim()){Ne("Please enter an email address");return}J(!0),Ne(null),se(null);try{const oe=await nr.getEntitlements(ce);se(oe)}catch(oe){Ne(oe instanceof Error?oe.message:"Failed to lookup entitlements")}finally{J(!1)}},Tt=async()=>{if(me){Ce(!0);try{const oe=await nr.refreshEntitlements(ce);se(oe)}catch{Ne("Failed to refresh entitlements")}finally{Ce(!1)}}},ue=async()=>{if(!(!_e||!me)){je(!0);try{await nr.grantEntitlement(me.identifier,_e),W(`Entitlement "${_e}" granted`),Ke("");const oe=await nr.refreshEntitlements(me.identifier);se(oe),I(ke=>({...ke,[me.identifier]:oe.entitlements.length}))}catch(oe){U(oe instanceof Error?oe.message:"Failed to grant entitlement")}finally{je(!1)}}},be=async oe=>{if(me&&confirm(`Revoke "${oe}" from ${me.identifier}?`))try{await nr.revokeEntitlement(me.identifier,oe),W(`Entitlement "${oe}" revoked`);const ke=await nr.refreshEntitlements(me.identifier);se(ke),I($e=>({...$e,[me.identifier]:ke.entitlements.length}))}catch(ke){U(ke instanceof Error?ke.message:"Failed to revoke entitlement")}},Te=oe=>{oe&&(Y(oe),J(!0),Ne(null),se(null),nr.getEntitlements(oe).then(se).catch(ke=>Ne(ke instanceof Error?ke.message:"Failed to lookup entitlements")).finally(()=>J(!1))),re(!0)},Me=oe=>oe?new Date(oe).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"Never",Ve=Oe.filter(oe=>!(me!=null&&me.entitlements.includes(oe.name))),Qe=[];return a.users&&Qe.push({label:"Users",count:y}),a.bans&&Qe.push({label:"Banned",count:H}),c?d.jsxs(fe,{children:[d.jsxs(fe,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:3},children:[d.jsxs(fe,{children:[d.jsx(At,{variant:"h4",content:t,customColor:"var(--theme-text-primary)"}),d.jsx(At,{variant:"body2",content:e,customColor:"var(--theme-text-secondary)"})]}),d.jsxs(fe,{sx:{display:"flex",gap:1},children:[n,a.entitlements&&d.jsx(Mr,{variant:"outlined",icon:"person_search",label:"Lookup Entitlements",onClick:()=>Te()}),a.bans&&d.jsx(Mr,{variant:"primary",color:"error",icon:"block",label:"Ban User",onClick:()=>ee(!0)})]})]}),N&&d.jsx(I0,{sx:{mb:2}}),q&&d.jsx(Tn,{severity:"error",onClose:()=>U(null),sx:{mb:2},children:q}),L&&d.jsx(Tn,{severity:"success",onClose:()=>W(null),sx:{mb:2},children:L}),a.users&&d.jsxs(uv,{columns:a.bans?3:2,spacing:"medium",sx:{mb:3},equalHeight:!0,children:[d.jsx(Ut,{sx:{bgcolor:"var(--theme-surface)"},children:d.jsx(qt,{children:d.jsxs(fe,{sx:{display:"flex",alignItems:"center",gap:2},children:[d.jsx(Py,{sx:{fontSize:40,color:"var(--theme-primary)"}}),d.jsxs(fe,{children:[d.jsx(At,{variant:"h4",content:y.toLocaleString(),customColor:"var(--theme-text-primary)"}),d.jsx(At,{variant:"body2",content:"Total Users",customColor:"var(--theme-text-secondary)"})]})]})})}),a.entitlements&&d.jsx(Ut,{sx:{bgcolor:"var(--theme-surface)"},children:d.jsx(qt,{children:d.jsxs(fe,{sx:{display:"flex",alignItems:"center",gap:2},children:[d.jsx(Al,{sx:{fontSize:40,color:"var(--theme-success)"}}),d.jsxs(fe,{children:[d.jsx(At,{variant:"body1",fontWeight:"500",content:"Entitlements",customColor:"var(--theme-text-primary)"}),d.jsx(At,{variant:"body2",content:a.entitlementsReadonly?"Read-only Mode":"Plugin Active",customColor:a.entitlementsReadonly?"var(--theme-warning)":"var(--theme-success)"})]})]})})}),a.bans&&d.jsx(Ut,{sx:{bgcolor:"var(--theme-surface)"},children:d.jsx(qt,{children:d.jsxs(fe,{sx:{display:"flex",alignItems:"center",gap:2},children:[d.jsx(ET,{sx:{fontSize:40,color:H>0?"var(--theme-error)":"var(--theme-text-secondary)"}}),d.jsxs(fe,{children:[d.jsx(At,{variant:"h4",content:H.toString(),customColor:H>0?"var(--theme-error)":"var(--theme-text-primary)"}),d.jsx(At,{variant:"body2",content:"Banned Users",customColor:"var(--theme-text-secondary)"})]})]})})})]}),d.jsxs(Ut,{sx:{bgcolor:"var(--theme-surface)"},children:[Qe.length>1&&d.jsx(H$,{value:f,onChange:(oe,ke)=>h(ke),sx:{borderBottom:1,borderColor:"var(--theme-border)",px:2},children:Qe.map((oe,ke)=>d.jsx(BN,{label:`${oe.label}${oe.count!==void 0?` (${oe.count})`:""}`},ke))}),d.jsxs(qt,{sx:{p:0},children:[d.jsx(fe,{sx:{p:2,borderBottom:1,borderColor:"var(--theme-border)"},children:d.jsx(un,{size:"small",placeholder:"Search by email or name...",value:M,onChange:oe=>E(oe.target.value),InputProps:{startAdornment:d.jsx(Ef,{position:"start",children:d.jsx(vh,{sx:{color:"var(--theme-text-secondary)"}})})},sx:{minWidth:300}})}),f===0&&a.users&&d.jsxs(d.Fragment,{children:[d.jsx(Gl,{children:d.jsxs(Wl,{children:[d.jsx(Xl,{children:d.jsxs(Cn,{children:[d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"ID"}),d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Name"}),d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Email"}),a.entitlements&&d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},align:"center",children:"Entitlements"}),d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Created"}),d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},align:"right",children:"Actions"})]})}),d.jsxs(ql,{children:[v.map(oe=>d.jsxs(Cn,{hover:!0,sx:{cursor:o?"pointer":"default"},onClick:()=>o==null?void 0:o(oe),children:[d.jsxs(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",fontFamily:"monospace",fontSize:"0.75rem"},children:[oe.id.substring(0,8),"..."]}),d.jsx(it,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:d.jsx(At,{variant:"body1",content:oe.name||"--",fontWeight:"500"})}),d.jsx(it,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:oe.email}),a.entitlements&&d.jsx(it,{sx:{borderColor:"var(--theme-border)"},align:"center",children:d.jsx(gr,{size:"small",icon:d.jsx(Al,{sx:{fontSize:14}}),label:R[oe.email]??"...",sx:{bgcolor:"var(--theme-primary)20",color:"var(--theme-primary)"}})}),d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:Me(oe.created_at)}),d.jsx(it,{sx:{borderColor:"var(--theme-border)"},align:"right",children:a.entitlements&&d.jsx(Zr,{title:"View entitlements",children:d.jsx(ur,{size:"small",onClick:ke=>{ke.stopPropagation(),Te(oe.email)},children:d.jsx(Al,{fontSize:"small"})})})})]},oe.id)),v.length===0&&!N&&d.jsx(Cn,{children:d.jsx(it,{colSpan:a.entitlements?6:5,align:"center",sx:{py:4,color:"var(--theme-text-secondary)"},children:M?"No users match your search":"No users found"})})]})]})}),d.jsx(S$,{component:"div",count:y,page:x,onPageChange:(oe,ke)=>C(ke),rowsPerPage:j,onRowsPerPageChange:oe=>{P(parseInt(oe.target.value,10)),C(0)},rowsPerPageOptions:[10,25,50,100],sx:{borderTop:1,borderColor:"var(--theme-border)"}})]}),f===1&&a.bans&&d.jsx(Gl,{children:d.jsxs(Wl,{children:[d.jsx(Xl,{children:d.jsxs(Cn,{children:[d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Email"}),d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Reason"}),d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Banned At"}),d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Expires"}),d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Banned By"}),d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},align:"right",children:"Actions"})]})}),d.jsxs(ql,{children:[F.map(oe=>d.jsxs(Cn,{children:[d.jsx(it,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:d.jsx(At,{variant:"body1",content:oe.email,fontWeight:"500"})}),d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",maxWidth:200},children:d.jsx(At,{variant:"body2",content:oe.reason,noWrap:!0})}),d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:Me(oe.banned_at)}),d.jsx(it,{sx:{borderColor:"var(--theme-border)"},children:d.jsx(gr,{size:"small",label:oe.expires_at?Me(oe.expires_at):"Permanent",sx:{bgcolor:oe.expires_at?"var(--theme-warning)20":"var(--theme-error)20",color:oe.expires_at?"var(--theme-warning)":"var(--theme-error)"}})}),d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:oe.banned_by}),d.jsx(it,{sx:{borderColor:"var(--theme-border)"},align:"right",children:d.jsx(Mr,{buttonSize:"small",variant:"text",color:"success",icon:"check_circle",label:"Unban",onClick:()=>Ue(oe.email)})})]},oe.id)),F.length===0&&!N&&d.jsx(Cn,{children:d.jsx(it,{colSpan:6,align:"center",sx:{py:4,color:"var(--theme-text-secondary)"},children:"No users are currently banned"})})]})]})})]})]}),a.bans&&d.jsxs(Cu,{open:K,onClose:()=>ee(!1),maxWidth:"sm",fullWidth:!0,children:[d.jsx(Tu,{children:"Ban User"}),d.jsx(Eu,{children:d.jsxs(fe,{sx:{display:"flex",flexDirection:"column",gap:2,mt:1},children:[d.jsx(un,{label:"Email",fullWidth:!0,value:Z.email,onChange:oe=>Q({...Z,email:oe.target.value}),placeholder:"Enter user email"}),d.jsx(un,{label:"Reason",fullWidth:!0,multiline:!0,rows:3,value:Z.reason,onChange:oe=>Q({...Z,reason:oe.target.value}),placeholder:"Enter reason for ban"}),d.jsx(un,{label:"Expiration (Optional)",type:"datetime-local",fullWidth:!0,value:Z.expiresAt,onChange:oe=>Q({...Z,expiresAt:oe.target.value}),InputLabelProps:{shrink:!0},helperText:"Leave empty for permanent ban"})]})}),d.jsxs(ku,{children:[d.jsx(Mr,{variant:"text",label:"Cancel",onClick:()=>{ee(!1),Q({email:"",reason:"",expiresAt:""})}}),d.jsx(Mr,{variant:"primary",color:"error",label:"Ban User",onClick:ft,disabled:!Z.email||!Z.reason})]})]}),a.entitlements&&d.jsxs(Cu,{open:X,onClose:()=>re(!1),maxWidth:"md",fullWidth:!0,children:[d.jsx(Tu,{children:"User Entitlements"}),d.jsx(Eu,{children:d.jsxs(fe,{sx:{display:"flex",flexDirection:"column",gap:2,mt:1},children:[d.jsxs(fe,{sx:{display:"flex",gap:1},children:[d.jsx(un,{label:"Email",fullWidth:!0,value:ce,onChange:oe=>Y(oe.target.value),placeholder:"Enter user email",onKeyDown:oe=>oe.key==="Enter"&&Gt()}),d.jsx(Mr,{variant:"primary",icon:"search",label:"Lookup",onClick:Gt,disabled:ne})]}),ne&&d.jsx(fe,{sx:{display:"flex",justifyContent:"center",py:4},children:d.jsx(On,{})}),De&&d.jsx(Tn,{severity:"error",children:De}),me&&d.jsxs(fe,{children:[d.jsxs(fe,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[d.jsxs(fe,{children:[d.jsx(At,{variant:"h6",content:me.identifier,customColor:"var(--theme-text-primary)"}),d.jsx(At,{variant:"body2",content:`Source: ${me.source}`,customColor:"var(--theme-text-secondary)"})]}),d.jsx(Mr,{variant:"outlined",icon:"refresh",label:de?"Refreshing...":"Refresh",onClick:Tt,disabled:de,buttonSize:"small"})]}),!a.entitlementsReadonly&&Ve.length>0&&d.jsxs(fe,{sx:{display:"flex",gap:1,mb:2,p:2,bgcolor:"var(--theme-background)",borderRadius:1},children:[d.jsx(T_,{size:"small",options:Ve,getOptionLabel:oe=>oe.name,value:Ve.find(oe=>oe.name===_e)||null,onChange:(oe,ke)=>Ke((ke==null?void 0:ke.name)||""),renderInput:oe=>d.jsx(un,{...oe,label:"Grant Entitlement",placeholder:"Select entitlement"}),sx:{flex:1}}),d.jsx(Mr,{variant:"primary",icon:"add",label:"Grant",onClick:ue,disabled:!_e||pt,buttonSize:"small"})]}),d.jsx(At,{variant:"subtitle2",content:"Current Entitlements",customColor:"var(--theme-text-secondary)",style:{marginBottom:"8px"}}),me.entitlements.length===0?d.jsx(At,{variant:"body2",content:"No entitlements found",customColor:"var(--theme-text-secondary)"}):d.jsx(fe,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:me.entitlements.map((oe,ke)=>d.jsx(gr,{icon:d.jsx(dd,{sx:{fontSize:16}}),label:oe,onDelete:a.entitlementsReadonly?void 0:()=>be(oe),deleteIcon:d.jsx(B0,{sx:{fontSize:16}}),sx:{bgcolor:"var(--theme-success)20",color:"var(--theme-success)","& .MuiChip-deleteIcon":{color:"var(--theme-error)","&:hover":{color:"var(--theme-error)"}}}},ke))}),d.jsxs(fe,{sx:{mt:2,pt:2,borderTop:1,borderColor:"var(--theme-border)"},children:[d.jsx(At,{variant:"caption",content:`Data from: ${me.source==="cache"?"Cache":"Source"}`,customColor:"var(--theme-text-secondary)"}),me.cachedAt&&d.jsx(At,{variant:"caption",content:` | Cached: ${Me(me.cachedAt)}`,customColor:"var(--theme-text-secondary)"}),a.entitlementsReadonly&&d.jsx(At,{variant:"caption",content:" | Read-only mode (modifications disabled)",customColor:"var(--theme-warning)"})]})]})]})}),d.jsx(ku,{children:d.jsx(Mr,{variant:"text",label:"Close",onClick:()=>re(!1)})})]})]}):d.jsx(fe,{sx:{display:"flex",justifyContent:"center",py:8},children:d.jsx(On,{})})}function _U({title:t="Entitlements",subtitle:e="Manage available entitlements",headerActions:r}){var ce;const[n,o]=S.useState(null),[a,l]=S.useState(!0),[c,u]=S.useState([]),[f,h]=S.useState([]),[v,g]=S.useState(!0),[y,w]=S.useState(null),[x,C]=S.useState(null),[j,P]=S.useState(""),[M,E]=S.useState(!1),[R,I]=S.useState(!1),[F,A]=S.useState(!1),[H,G]=S.useState(null),[N,k]=S.useState({name:"",category:"",description:""}),[q,U]=S.useState(!1);S.useEffect(()=>{nr.getEntitlementsStatus().then(o).catch(Y=>w(Y instanceof Error?Y.message:"Failed to get status")).finally(()=>l(!1))},[]);const L=S.useCallback(async()=>{g(!0);try{const Y=await nr.getAvailableEntitlements();u(Y),w(null)}catch(Y){w(Y instanceof Error?Y.message:"Failed to fetch entitlements")}finally{g(!1)}},[]);S.useEffect(()=>{L()},[L]),S.useEffect(()=>{if(!j.trim())h(c);else{const Y=j.toLowerCase();h(c.filter(ne=>{var J,de;return ne.name.toLowerCase().includes(Y)||((J=ne.category)==null?void 0:J.toLowerCase().includes(Y))||((de=ne.description)==null?void 0:de.toLowerCase().includes(Y))}))}},[c,j]);const W=[...new Set(c.map(Y=>Y.category||"Uncategorized"))],K=async()=>{if(!N.name.trim()){w("Name is required");return}U(!0);try{C(`Entitlement "${N.name}" created`),E(!1),k({name:"",category:"",description:""}),L()}catch(Y){w(Y instanceof Error?Y.message:"Failed to create entitlement")}finally{U(!1)}},ee=async()=>{if(H){U(!0);try{C(`Entitlement "${H.name}" updated`),I(!1),G(null),L()}catch(Y){w(Y instanceof Error?Y.message:"Failed to update entitlement")}finally{U(!1)}}},Z=async()=>{if(H){U(!0);try{C(`Entitlement "${H.name}" deleted`),A(!1),G(null),L()}catch(Y){w(Y instanceof Error?Y.message:"Failed to delete entitlement")}finally{U(!1)}}},Q=Y=>{G(Y),I(!0)},X=Y=>{G(Y),A(!0)},re=(n==null?void 0:n.readonly)??!0;return a?d.jsx(fe,{sx:{display:"flex",justifyContent:"center",py:8},children:d.jsx(On,{})}):d.jsxs(fe,{children:[d.jsxs(fe,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:3},children:[d.jsxs(fe,{children:[d.jsx(At,{variant:"h4",content:t,customColor:"var(--theme-text-primary)"}),d.jsx(At,{variant:"body2",content:e,customColor:"var(--theme-text-secondary)"})]}),d.jsxs(fe,{sx:{display:"flex",gap:1},children:[r,!re&&d.jsx(Mr,{variant:"primary",icon:"add",label:"Add Entitlement",onClick:()=>E(!0)})]})]}),v&&d.jsx(I0,{sx:{mb:2}}),y&&d.jsx(Tn,{severity:"error",onClose:()=>w(null),sx:{mb:2},children:y}),x&&d.jsx(Tn,{severity:"success",onClose:()=>C(null),sx:{mb:2},children:x}),d.jsxs(uv,{columns:3,spacing:"medium",sx:{mb:3},equalHeight:!0,children:[d.jsx(Ut,{sx:{bgcolor:"var(--theme-surface)"},children:d.jsx(qt,{children:d.jsxs(fe,{sx:{display:"flex",alignItems:"center",gap:2},children:[d.jsx(Al,{sx:{fontSize:40,color:"var(--theme-primary)"}}),d.jsxs(fe,{children:[d.jsx(At,{variant:"h4",content:c.length.toString(),customColor:"var(--theme-text-primary)"}),d.jsx(At,{variant:"body2",content:"Total Entitlements",customColor:"var(--theme-text-secondary)"})]})]})})}),d.jsx(Ut,{sx:{bgcolor:"var(--theme-surface)"},children:d.jsx(qt,{children:d.jsxs(fe,{sx:{display:"flex",alignItems:"center",gap:2},children:[d.jsx(fe,{sx:{width:40,height:40,borderRadius:1,bgcolor:"var(--theme-primary)20",display:"flex",alignItems:"center",justifyContent:"center"},children:d.jsx(At,{variant:"h6",content:W.length.toString(),customColor:"var(--theme-primary)"})}),d.jsxs(fe,{children:[d.jsx(At,{variant:"body1",fontWeight:"500",content:"Categories",customColor:"var(--theme-text-primary)"}),d.jsx(At,{variant:"body2",content:W.slice(0,3).join(", "),customColor:"var(--theme-text-secondary)"})]})]})})}),d.jsx(Ut,{sx:{bgcolor:"var(--theme-surface)"},children:d.jsx(qt,{children:d.jsxs(fe,{sx:{display:"flex",alignItems:"center",gap:2},children:[re?d.jsx(ky,{sx:{fontSize:40,color:"var(--theme-warning)"}}):d.jsx(Ty,{sx:{fontSize:40,color:"var(--theme-success)"}}),d.jsxs(fe,{children:[d.jsx(At,{variant:"body1",fontWeight:"500",content:re?"Read-only":"Editable",customColor:re?"var(--theme-warning)":"var(--theme-success)"}),d.jsx(At,{variant:"body2",content:`Source: ${((ce=n==null?void 0:n.sources[0])==null?void 0:ce.name)||"Unknown"}`,customColor:"var(--theme-text-secondary)"})]})]})})})]}),d.jsx(Ut,{sx:{bgcolor:"var(--theme-surface)"},children:d.jsxs(qt,{sx:{p:0},children:[d.jsx(fe,{sx:{p:2,borderBottom:1,borderColor:"var(--theme-border)"},children:d.jsx(un,{size:"small",placeholder:"Search entitlements...",value:j,onChange:Y=>P(Y.target.value),InputProps:{startAdornment:d.jsx(Ef,{position:"start",children:d.jsx(vh,{sx:{color:"var(--theme-text-secondary)"}})})},sx:{minWidth:300}})}),d.jsx(Gl,{children:d.jsxs(Wl,{children:[d.jsx(Xl,{children:d.jsxs(Cn,{children:[d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Name"}),d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Category"}),d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Description"}),!re&&d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},align:"right",children:"Actions"})]})}),d.jsxs(ql,{children:[f.map(Y=>d.jsxs(Cn,{hover:!0,children:[d.jsx(it,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:d.jsxs(fe,{sx:{display:"flex",alignItems:"center",gap:1},children:[d.jsx(Al,{sx:{fontSize:18,color:"var(--theme-primary)"}}),d.jsx(At,{variant:"body1",content:Y.name,fontWeight:"500"})]})}),d.jsx(it,{sx:{borderColor:"var(--theme-border)"},children:Y.category?d.jsx(gr,{size:"small",label:Y.category,sx:{bgcolor:"var(--theme-primary)20",color:"var(--theme-primary)"}}):d.jsx(At,{variant:"body2",content:"--",customColor:"var(--theme-text-secondary)"})}),d.jsx(it,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",maxWidth:300},children:Y.description||"--"}),!re&&d.jsxs(it,{sx:{borderColor:"var(--theme-border)"},align:"right",children:[d.jsx(Zr,{title:"Edit",children:d.jsx(ur,{size:"small",onClick:()=>Q(Y),children:d.jsx(Ty,{fontSize:"small"})})}),d.jsx(Zr,{title:"Delete",children:d.jsx(ur,{size:"small",onClick:()=>X(Y),sx:{color:"var(--theme-error)"},children:d.jsx(B0,{fontSize:"small"})})})]})]},Y.id)),f.length===0&&!v&&d.jsx(Cn,{children:d.jsx(it,{colSpan:re?3:4,align:"center",sx:{py:4,color:"var(--theme-text-secondary)"},children:j?"No entitlements match your search":"No entitlements defined"})})]})]})})]})}),n&&n.sources.length>0&&d.jsx(Ut,{sx:{bgcolor:"var(--theme-surface)",mt:3},children:d.jsxs(qt,{children:[d.jsx(At,{variant:"subtitle2",content:"Entitlement Sources",customColor:"var(--theme-text-secondary)",style:{marginBottom:"12px"}}),d.jsx(fe,{sx:{display:"flex",flexDirection:"column",gap:1},children:n.sources.map((Y,ne)=>d.jsxs(fe,{sx:{display:"flex",alignItems:"center",gap:2},children:[d.jsx(gr,{size:"small",label:Y.primary?"Primary":"Additional",sx:{bgcolor:Y.primary?"var(--theme-primary)20":"var(--theme-text-secondary)20",color:Y.primary?"var(--theme-primary)":"var(--theme-text-secondary)"}}),d.jsx(At,{variant:"body1",content:Y.name,fontWeight:"500",customColor:"var(--theme-text-primary)"}),Y.description&&d.jsx(At,{variant:"body2",content:`- ${Y.description}`,customColor:"var(--theme-text-secondary)"}),Y.readonly&&d.jsx(gr,{size:"small",icon:d.jsx(ky,{sx:{fontSize:14}}),label:"Read-only",sx:{bgcolor:"var(--theme-warning)20",color:"var(--theme-warning)"}})]},ne))}),n.cacheEnabled&&d.jsx(fe,{sx:{mt:2,pt:2,borderTop:1,borderColor:"var(--theme-border)"},children:d.jsx(At,{variant:"caption",content:`Caching: Enabled (TTL: ${n.cacheTtl}s)`,customColor:"var(--theme-text-secondary)"})})]})}),!re&&d.jsxs(Cu,{open:M,onClose:()=>E(!1),maxWidth:"sm",fullWidth:!0,children:[d.jsx(Tu,{children:"Add Entitlement"}),d.jsx(Eu,{children:d.jsxs(fe,{sx:{display:"flex",flexDirection:"column",gap:2,mt:1},children:[d.jsx(un,{label:"Name",fullWidth:!0,value:N.name,onChange:Y=>k({...N,name:Y.target.value}),placeholder:"e.g., premium, pro, feature:analytics",required:!0}),d.jsx(un,{label:"Category (Optional)",fullWidth:!0,value:N.category,onChange:Y=>k({...N,category:Y.target.value}),placeholder:"e.g., subscription, feature, access"}),d.jsx(un,{label:"Description (Optional)",fullWidth:!0,multiline:!0,rows:2,value:N.description,onChange:Y=>k({...N,description:Y.target.value}),placeholder:"Describe what this entitlement grants access to"})]})}),d.jsxs(ku,{children:[d.jsx(Mr,{variant:"text",label:"Cancel",onClick:()=>E(!1)}),d.jsx(Mr,{variant:"primary",label:"Create",onClick:K,disabled:!N.name.trim()||q})]})]}),!re&&H&&d.jsxs(Cu,{open:R,onClose:()=>I(!1),maxWidth:"sm",fullWidth:!0,children:[d.jsx(Tu,{children:"Edit Entitlement"}),d.jsx(Eu,{children:d.jsxs(fe,{sx:{display:"flex",flexDirection:"column",gap:2,mt:1},children:[d.jsx(un,{label:"Name",fullWidth:!0,value:H.name,disabled:!0,helperText:"Name cannot be changed"}),d.jsx(un,{label:"Category",fullWidth:!0,value:H.category||"",onChange:Y=>G({...H,category:Y.target.value})}),d.jsx(un,{label:"Description",fullWidth:!0,multiline:!0,rows:2,value:H.description||"",onChange:Y=>G({...H,description:Y.target.value})})]})}),d.jsxs(ku,{children:[d.jsx(Mr,{variant:"text",label:"Cancel",onClick:()=>I(!1)}),d.jsx(Mr,{variant:"primary",label:"Save",onClick:ee,disabled:q})]})]}),!re&&H&&d.jsxs(Cu,{open:F,onClose:()=>A(!1),maxWidth:"sm",fullWidth:!0,children:[d.jsx(Tu,{children:"Delete Entitlement"}),d.jsxs(Eu,{children:[d.jsx(At,{variant:"body1",content:`Are you sure you want to delete the entitlement "${H.name}"?`,customColor:"var(--theme-text-primary)"}),d.jsx(Tn,{severity:"warning",sx:{mt:2},children:"This will remove the entitlement from all users who currently have it."})]}),d.jsxs(ku,{children:[d.jsx(Mr,{variant:"text",label:"Cancel",onClick:()=>A(!1)}),d.jsx(Mr,{variant:"primary",color:"error",label:"Delete",onClick:Z,disabled:q})]})]})]})}function LU({pluginId:t,title:e,route:r}){const[n,o]=S.useState(!0),[a,l]=S.useState(null),[c,u]=S.useState(null);return S.useEffect(()=>{(async()=>{try{const h=await fetch(`${nr.baseUrl}/api${r}`);if(h.ok){const v=await h.json();u(v),l(null)}else h.status===404?(u(null),l(null)):l(`Failed to load page: ${h.statusText}`)}catch(h){l(h instanceof Error?h.message:"Failed to load page")}finally{o(!1)}})()},[r]),n?d.jsx(fe,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"50vh"},children:d.jsx(On,{})}):d.jsxs(fe,{children:[d.jsx(Ee,{variant:"h4",sx:{mb:1,color:"var(--theme-text-primary)"},children:e}),d.jsxs(Ee,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:["Plugin: ",t]}),a&&d.jsx(Tn,{severity:"error",sx:{mb:3},children:a}),(c==null?void 0:c.cards)&&c.cards.length>0&&d.jsx(fe,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))",gap:2,mb:4},children:c.cards.map((f,h)=>d.jsx(Ut,{sx:{bgcolor:"var(--theme-surface)"},children:d.jsxs(qt,{children:[d.jsx(Ee,{variant:"h4",sx:{color:f.color||"var(--theme-text-primary)"},children:f.value}),d.jsx(Ee,{variant:"body2",sx:{color:"var(--theme-text-secondary)"},children:f.title}),f.subtitle&&d.jsx(Ee,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:f.subtitle})]})},h))}),(c==null?void 0:c.sections)&&c.sections.length>0&&d.jsx(fe,{sx:{display:"flex",flexDirection:"column",gap:3},children:c.sections.map((f,h)=>d.jsx(Ut,{sx:{bgcolor:"var(--theme-surface)"},children:d.jsxs(qt,{children:[d.jsx(Ee,{variant:"h6",sx:{mb:2,color:"var(--theme-text-primary)"},children:f.title}),d.jsx(Ee,{variant:"body2",sx:{color:"var(--theme-text-secondary)",whiteSpace:"pre-wrap"},children:f.content})]})},h))}),!c&&!a&&d.jsx(Ut,{sx:{bgcolor:"var(--theme-surface)"},children:d.jsxs(qt,{children:[d.jsx(Ee,{variant:"body1",sx:{color:"var(--theme-text-secondary)"},children:"This plugin page is available. Configure the plugin to add content here."}),d.jsxs(Ee,{variant:"body2",sx:{mt:2,color:"var(--theme-text-secondary)"},children:["API endpoint: ",d.jsxs("code",{children:["/api",r]})]})]})})]})}function OU(){const t=t0();return d.jsxs(fe,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"50vh",textAlign:"center"},children:[d.jsx(Ee,{variant:"h1",sx:{color:"var(--theme-primary)",mb:2},children:"404"}),d.jsx(Ee,{variant:"h5",sx:{color:"var(--theme-text-primary)",mb:1},children:"Page Not Found"}),d.jsx(Ee,{sx:{color:"var(--theme-text-secondary)",mb:4},children:"The page you're looking for doesn't exist or has been moved."}),d.jsx($u,{variant:"contained",startIcon:d.jsx(AT,{}),onClick:()=>t("/"),sx:{bgcolor:"var(--theme-primary)","&:hover":{bgcolor:"var(--theme-primary)"}},children:"Back to Dashboard"})]})}const wC=[{id:"dashboard",label:"Dashboard",route:"/",icon:"dashboard"},{id:"plugins",label:"Plugins",route:"/plugins",icon:"extension"},{id:"logs",label:"Logs",route:"/logs",icon:"article"},{id:"system",label:"System",route:"/system",icon:"settings"}],NU={users:{id:"users",label:"Users",route:"/users",icon:"people"}},$U=new Set(["/","/plugins","/logs","/system","/users","/entitlements"]),BU="1.0.0",Ck=window.__APP_BASE_PATH__??"";nr.setBaseUrl(Ck);const zU=d.jsx(fe,{sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:.5,py:2},children:d.jsxs(At,{variant:"caption",customColor:"var(--theme-text-secondary)",children:["Built with"," ",d.jsx(Q6,{href:"https://qwickapps.com/products/qwickapps-server",target:"_blank",rel:"noopener noreferrer",sx:{color:"primary.main"},children:"QwickApps Server"})," ","v",BU]})});function DU(){const[t,e]=S.useState(wC),[r,n]=S.useState(new Set),[o,a]=S.useState([]),[l,c]=S.useState("Control Panel"),[u,f]=S.useState(),[h,v]=S.useState(!0);S.useEffect(()=>{(async()=>{try{const[x,C]=await Promise.allSettled([nr.getInfo(),nr.getUiContributions()]);if(x.status==="fulfilled"?(c(x.value.logoName),f(x.value.logoIconUrl)):console.warn("Failed to fetch product info:",x.reason),C.status==="fulfilled"){const{plugins:j,menuItems:P}=C.value,M=new Set(j.map(I=>I.id));n(M),a(P);const E=[...wC];for(const[I,F]of Object.entries(NU))M.has(I)&&E.push(F);const R=[...P].sort((I,F)=>(I.order??100)-(F.order??100));for(const I of R)E.some(F=>F.route===I.route)||E.push({id:I.id,label:I.label,route:I.route,icon:I.icon||"extension"});e(E)}else console.warn("Failed to fetch UI contributions:",C.reason)}finally{v(!1)}})()},[]);const g=u?d.jsx("img",{src:u,alt:l,style:{width:32,height:32,objectFit:"contain"}}):void 0,y=d.jsx(VH,{icon:g,name:l});return h?d.jsx(fe,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",bgcolor:"var(--theme-background, #1a1a2e)"}}):d.jsx(m5,{basename:Ck||void 0,children:d.jsx(hU,{children:d.jsx(HH,{config:fU,logo:y,footerContent:zU,enableScaffolding:!0,navigationItems:t,showThemeSwitcher:!0,showPaletteSwitcher:!0,children:d.jsxs(p5,{children:[d.jsx(Qi,{path:"/",element:d.jsx(SU,{})}),d.jsx(Qi,{path:"/plugins",element:d.jsx(IU,{})}),d.jsx(Qi,{path:"/logs",element:d.jsx(CU,{})}),d.jsx(Qi,{path:"/system",element:d.jsx(PU,{})}),r.has("users")&&d.jsx(Qi,{path:"/users",element:d.jsx(AU,{})}),r.has("entitlements")&&d.jsx(Qi,{path:"/entitlements",element:d.jsx(_U,{})}),o.filter(w=>!$U.has(w.route)).map(w=>d.jsx(Qi,{path:w.route,element:d.jsx(LU,{pluginId:w.pluginId,title:w.label,route:w.route})},w.id)),d.jsx(Qi,{path:"*",element:d.jsx(OU,{})})]})})})})}b4.createRoot(document.getElementById("root")).render(d.jsx(Mt.StrictMode,{children:d.jsx(DU,{})}));
465
- //# sourceMappingURL=index-BY8OxNgO.js.map