@omnitron-dev/omnitron 0.2.0 → 0.3.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 (1247) hide show
  1. package/dist/BUILD.json +5 -0
  2. package/dist/cli/omnitron.js +351 -29
  3. package/dist/cli/omnitron.js.map +1 -1
  4. package/dist/cluster/cluster.rpc-service.d.ts +40 -0
  5. package/dist/cluster/cluster.rpc-service.d.ts.map +1 -1
  6. package/dist/cluster/cluster.rpc-service.js +49 -3
  7. package/dist/cluster/cluster.rpc-service.js.map +1 -1
  8. package/dist/cluster/config-sync.d.ts.map +1 -1
  9. package/dist/cluster/config-sync.js.map +1 -1
  10. package/dist/cluster/leader-election.d.ts +90 -2
  11. package/dist/cluster/leader-election.d.ts.map +1 -1
  12. package/dist/cluster/leader-election.js +176 -22
  13. package/dist/cluster/leader-election.js.map +1 -1
  14. package/dist/cluster/mesh-link.d.ts +136 -0
  15. package/dist/cluster/mesh-link.d.ts.map +1 -0
  16. package/dist/cluster/mesh-link.js +212 -0
  17. package/dist/cluster/mesh-link.js.map +1 -0
  18. package/dist/cluster/mesh.d.ts +59 -0
  19. package/dist/cluster/mesh.d.ts.map +1 -0
  20. package/dist/cluster/mesh.js +117 -0
  21. package/dist/cluster/mesh.js.map +1 -0
  22. package/dist/cluster/slave-connector.d.ts +193 -9
  23. package/dist/cluster/slave-connector.d.ts.map +1 -1
  24. package/dist/cluster/slave-connector.js +409 -37
  25. package/dist/cluster/slave-connector.js.map +1 -1
  26. package/dist/commands/audit.d.ts +65 -0
  27. package/dist/commands/audit.d.ts.map +1 -0
  28. package/dist/commands/audit.js +233 -0
  29. package/dist/commands/audit.js.map +1 -0
  30. package/dist/commands/backup.d.ts +4 -0
  31. package/dist/commands/backup.d.ts.map +1 -1
  32. package/dist/commands/backup.js +255 -33
  33. package/dist/commands/backup.js.map +1 -1
  34. package/dist/commands/cluster.d.ts.map +1 -1
  35. package/dist/commands/cluster.js +78 -47
  36. package/dist/commands/cluster.js.map +1 -1
  37. package/dist/commands/daemon-cmd.d.ts +7 -1
  38. package/dist/commands/daemon-cmd.d.ts.map +1 -1
  39. package/dist/commands/daemon-cmd.js +87 -21
  40. package/dist/commands/daemon-cmd.js.map +1 -1
  41. package/dist/commands/daemon-required.d.ts +34 -0
  42. package/dist/commands/daemon-required.d.ts.map +1 -0
  43. package/dist/commands/daemon-required.js +92 -0
  44. package/dist/commands/daemon-required.js.map +1 -0
  45. package/dist/commands/deploy.d.ts +70 -8
  46. package/dist/commands/deploy.d.ts.map +1 -1
  47. package/dist/commands/deploy.js +99 -64
  48. package/dist/commands/deploy.js.map +1 -1
  49. package/dist/commands/discover.d.ts +25 -4
  50. package/dist/commands/discover.d.ts.map +1 -1
  51. package/dist/commands/discover.js +155 -102
  52. package/dist/commands/discover.js.map +1 -1
  53. package/dist/commands/doctor.d.ts +293 -0
  54. package/dist/commands/doctor.d.ts.map +1 -0
  55. package/dist/commands/doctor.js +1706 -0
  56. package/dist/commands/doctor.js.map +1 -0
  57. package/dist/commands/env.d.ts +8 -1
  58. package/dist/commands/env.d.ts.map +1 -1
  59. package/dist/commands/env.js +13 -8
  60. package/dist/commands/env.js.map +1 -1
  61. package/dist/commands/exec.d.ts.map +1 -1
  62. package/dist/commands/exec.js +3 -2
  63. package/dist/commands/exec.js.map +1 -1
  64. package/dist/commands/fleet-asking.d.ts +87 -0
  65. package/dist/commands/fleet-asking.d.ts.map +1 -0
  66. package/dist/commands/fleet-asking.js +176 -0
  67. package/dist/commands/fleet-asking.js.map +1 -0
  68. package/dist/commands/fleet.d.ts +18 -0
  69. package/dist/commands/fleet.d.ts.map +1 -1
  70. package/dist/commands/fleet.js +314 -74
  71. package/dist/commands/fleet.js.map +1 -1
  72. package/dist/commands/health-check.d.ts +8 -6
  73. package/dist/commands/health-check.d.ts.map +1 -1
  74. package/dist/commands/health-check.js +26 -23
  75. package/dist/commands/health-check.js.map +1 -1
  76. package/dist/commands/health.d.ts.map +1 -1
  77. package/dist/commands/health.js +22 -8
  78. package/dist/commands/health.js.map +1 -1
  79. package/dist/commands/infra.d.ts +42 -1
  80. package/dist/commands/infra.d.ts.map +1 -1
  81. package/dist/commands/infra.js +418 -49
  82. package/dist/commands/infra.js.map +1 -1
  83. package/dist/commands/init.d.ts.map +1 -1
  84. package/dist/commands/init.js +21 -36
  85. package/dist/commands/init.js.map +1 -1
  86. package/dist/commands/inspect-graph.d.ts.map +1 -1
  87. package/dist/commands/inspect-graph.js +2 -6
  88. package/dist/commands/inspect-graph.js.map +1 -1
  89. package/dist/commands/inspect.d.ts.map +1 -1
  90. package/dist/commands/inspect.js +110 -14
  91. package/dist/commands/inspect.js.map +1 -1
  92. package/dist/commands/k8s.d.ts.map +1 -1
  93. package/dist/commands/k8s.js +23 -18
  94. package/dist/commands/k8s.js.map +1 -1
  95. package/dist/commands/kb.d.ts.map +1 -1
  96. package/dist/commands/kb.js +88 -29
  97. package/dist/commands/kb.js.map +1 -1
  98. package/dist/commands/list.d.ts.map +1 -1
  99. package/dist/commands/list.js +21 -9
  100. package/dist/commands/list.js.map +1 -1
  101. package/dist/commands/log-health.d.ts +120 -0
  102. package/dist/commands/log-health.d.ts.map +1 -0
  103. package/dist/commands/log-health.js +212 -0
  104. package/dist/commands/log-health.js.map +1 -0
  105. package/dist/commands/logs.d.ts +96 -2
  106. package/dist/commands/logs.d.ts.map +1 -1
  107. package/dist/commands/logs.js +522 -196
  108. package/dist/commands/logs.js.map +1 -1
  109. package/dist/commands/metrics.d.ts.map +1 -1
  110. package/dist/commands/metrics.js +35 -17
  111. package/dist/commands/metrics.js.map +1 -1
  112. package/dist/commands/monit.d.ts.map +1 -1
  113. package/dist/commands/monit.js +3 -2
  114. package/dist/commands/monit.js.map +1 -1
  115. package/dist/commands/node.d.ts +68 -0
  116. package/dist/commands/node.d.ts.map +1 -1
  117. package/dist/commands/node.js +285 -68
  118. package/dist/commands/node.js.map +1 -1
  119. package/dist/commands/output.d.ts +10 -0
  120. package/dist/commands/output.d.ts.map +1 -1
  121. package/dist/commands/output.js +41 -1
  122. package/dist/commands/output.js.map +1 -1
  123. package/dist/commands/pipeline.d.ts.map +1 -1
  124. package/dist/commands/pipeline.js +26 -19
  125. package/dist/commands/pipeline.js.map +1 -1
  126. package/dist/commands/project.d.ts +19 -0
  127. package/dist/commands/project.d.ts.map +1 -1
  128. package/dist/commands/project.js +125 -27
  129. package/dist/commands/project.js.map +1 -1
  130. package/dist/commands/release-store.d.ts +28 -0
  131. package/dist/commands/release-store.d.ts.map +1 -0
  132. package/dist/commands/release-store.js +158 -0
  133. package/dist/commands/release-store.js.map +1 -0
  134. package/dist/commands/release.d.ts +61 -0
  135. package/dist/commands/release.d.ts.map +1 -0
  136. package/dist/commands/release.js +555 -0
  137. package/dist/commands/release.js.map +1 -0
  138. package/dist/commands/reload.d.ts +16 -0
  139. package/dist/commands/reload.d.ts.map +1 -1
  140. package/dist/commands/reload.js +21 -5
  141. package/dist/commands/reload.js.map +1 -1
  142. package/dist/commands/remote.d.ts +40 -0
  143. package/dist/commands/remote.d.ts.map +1 -1
  144. package/dist/commands/remote.js +146 -35
  145. package/dist/commands/remote.js.map +1 -1
  146. package/dist/commands/restart.d.ts +16 -0
  147. package/dist/commands/restart.d.ts.map +1 -1
  148. package/dist/commands/restart.js +21 -5
  149. package/dist/commands/restart.js.map +1 -1
  150. package/dist/commands/scale.d.ts.map +1 -1
  151. package/dist/commands/scale.js +4 -3
  152. package/dist/commands/scale.js.map +1 -1
  153. package/dist/commands/secret.d.ts +54 -0
  154. package/dist/commands/secret.d.ts.map +1 -1
  155. package/dist/commands/secret.js +236 -34
  156. package/dist/commands/secret.js.map +1 -1
  157. package/dist/commands/service-units.d.ts +181 -0
  158. package/dist/commands/service-units.d.ts.map +1 -0
  159. package/dist/commands/service-units.js +291 -0
  160. package/dist/commands/service-units.js.map +1 -0
  161. package/dist/commands/service.d.ts +39 -0
  162. package/dist/commands/service.d.ts.map +1 -0
  163. package/dist/commands/service.js +370 -0
  164. package/dist/commands/service.js.map +1 -0
  165. package/dist/commands/spinner.d.ts +29 -0
  166. package/dist/commands/spinner.d.ts.map +1 -0
  167. package/dist/commands/spinner.js +44 -0
  168. package/dist/commands/spinner.js.map +1 -0
  169. package/dist/commands/stack.d.ts +49 -1
  170. package/dist/commands/stack.d.ts.map +1 -1
  171. package/dist/commands/stack.js +325 -12
  172. package/dist/commands/stack.js.map +1 -1
  173. package/dist/commands/start.d.ts +16 -0
  174. package/dist/commands/start.d.ts.map +1 -1
  175. package/dist/commands/start.js +20 -3
  176. package/dist/commands/start.js.map +1 -1
  177. package/dist/commands/status.d.ts +9 -0
  178. package/dist/commands/status.d.ts.map +1 -1
  179. package/dist/commands/status.js +45 -29
  180. package/dist/commands/status.js.map +1 -1
  181. package/dist/commands/stop.d.ts +16 -0
  182. package/dist/commands/stop.d.ts.map +1 -1
  183. package/dist/commands/stop.js +34 -6
  184. package/dist/commands/stop.js.map +1 -1
  185. package/dist/commands/tor.d.ts +14 -7
  186. package/dist/commands/tor.d.ts.map +1 -1
  187. package/dist/commands/tor.js +113 -33
  188. package/dist/commands/tor.js.map +1 -1
  189. package/dist/commands/up.d.ts +85 -1
  190. package/dist/commands/up.d.ts.map +1 -1
  191. package/dist/commands/up.js +180 -32
  192. package/dist/commands/up.js.map +1 -1
  193. package/dist/commands/webapp.d.ts.map +1 -1
  194. package/dist/commands/webapp.js +2 -1
  195. package/dist/commands/webapp.js.map +1 -1
  196. package/dist/config/defaults.d.ts +16 -0
  197. package/dist/config/defaults.d.ts.map +1 -1
  198. package/dist/config/defaults.js +26 -3
  199. package/dist/config/defaults.js.map +1 -1
  200. package/dist/config/define-ecosystem.d.ts.map +1 -1
  201. package/dist/config/define-ecosystem.js +2 -0
  202. package/dist/config/define-ecosystem.js.map +1 -1
  203. package/dist/config/index.d.ts +1 -1
  204. package/dist/config/index.d.ts.map +1 -1
  205. package/dist/config/index.js +1 -1
  206. package/dist/config/index.js.map +1 -1
  207. package/dist/config/loader.d.ts +45 -1
  208. package/dist/config/loader.d.ts.map +1 -1
  209. package/dist/config/loader.js +64 -6
  210. package/dist/config/loader.js.map +1 -1
  211. package/dist/config/omnitron-config.schema.d.ts.map +1 -1
  212. package/dist/config/omnitron-config.schema.js +16 -0
  213. package/dist/config/omnitron-config.schema.js.map +1 -1
  214. package/dist/config/types.d.ts +411 -42
  215. package/dist/config/types.d.ts.map +1 -1
  216. package/dist/daemon/config-reload.d.ts +27 -0
  217. package/dist/daemon/config-reload.d.ts.map +1 -0
  218. package/dist/daemon/config-reload.js +42 -0
  219. package/dist/daemon/config-reload.js.map +1 -0
  220. package/dist/daemon/daemon-client.d.ts +136 -2
  221. package/dist/daemon/daemon-client.d.ts.map +1 -1
  222. package/dist/daemon/daemon-client.js +307 -21
  223. package/dist/daemon/daemon-client.js.map +1 -1
  224. package/dist/daemon/daemon-entry.js +90 -30
  225. package/dist/daemon/daemon-entry.js.map +1 -1
  226. package/dist/daemon/daemon-scheduler.d.ts +4 -0
  227. package/dist/daemon/daemon-scheduler.d.ts.map +1 -1
  228. package/dist/daemon/daemon-scheduler.js +137 -7
  229. package/dist/daemon/daemon-scheduler.js.map +1 -1
  230. package/dist/daemon/daemon-state-store.service.d.ts +263 -0
  231. package/dist/daemon/daemon-state-store.service.d.ts.map +1 -0
  232. package/dist/daemon/daemon-state-store.service.js +446 -0
  233. package/dist/daemon/daemon-state-store.service.js.map +1 -0
  234. package/dist/daemon/daemon.d.ts +205 -1
  235. package/dist/daemon/daemon.d.ts.map +1 -1
  236. package/dist/daemon/daemon.js +1139 -139
  237. package/dist/daemon/daemon.js.map +1 -1
  238. package/dist/daemon/daemon.module.d.ts.map +1 -1
  239. package/dist/daemon/daemon.module.js +163 -83
  240. package/dist/daemon/daemon.module.js.map +1 -1
  241. package/dist/daemon/daemon.rpc-service.d.ts +90 -1
  242. package/dist/daemon/daemon.rpc-service.d.ts.map +1 -1
  243. package/dist/daemon/daemon.rpc-service.js +438 -96
  244. package/dist/daemon/daemon.rpc-service.js.map +1 -1
  245. package/dist/daemon/pid-manager.d.ts +16 -3
  246. package/dist/daemon/pid-manager.d.ts.map +1 -1
  247. package/dist/daemon/pid-manager.js +31 -4
  248. package/dist/daemon/pid-manager.js.map +1 -1
  249. package/dist/daemon/spawn-daemon.d.ts +73 -0
  250. package/dist/daemon/spawn-daemon.d.ts.map +1 -0
  251. package/dist/daemon/spawn-daemon.js +101 -0
  252. package/dist/daemon/spawn-daemon.js.map +1 -0
  253. package/dist/daemon/state-store.d.ts +65 -3
  254. package/dist/daemon/state-store.d.ts.map +1 -1
  255. package/dist/daemon/state-store.js +100 -58
  256. package/dist/daemon/state-store.js.map +1 -1
  257. package/dist/database/connection.d.ts +71 -0
  258. package/dist/database/connection.d.ts.map +1 -0
  259. package/dist/database/connection.js +129 -0
  260. package/dist/database/connection.js.map +1 -0
  261. package/dist/database/dialect.d.ts +60 -0
  262. package/dist/database/dialect.d.ts.map +1 -0
  263. package/dist/database/dialect.js +80 -0
  264. package/dist/database/dialect.js.map +1 -0
  265. package/dist/database/migrate.d.ts +5 -2
  266. package/dist/database/migrate.d.ts.map +1 -1
  267. package/dist/database/migrate.js +23 -33
  268. package/dist/database/migrate.js.map +1 -1
  269. package/dist/database/migration-runner.d.ts +50 -0
  270. package/dist/database/migration-runner.d.ts.map +1 -0
  271. package/dist/database/migration-runner.js +143 -0
  272. package/dist/database/migration-runner.js.map +1 -0
  273. package/dist/database/migrations/006_login_throttle.d.ts +17 -0
  274. package/dist/database/migrations/006_login_throttle.d.ts.map +1 -0
  275. package/dist/database/migrations/006_login_throttle.js +33 -0
  276. package/dist/database/migrations/006_login_throttle.js.map +1 -0
  277. package/dist/database/migrations/007_sync_ingested.d.ts +21 -0
  278. package/dist/database/migrations/007_sync_ingested.d.ts.map +1 -0
  279. package/dist/database/migrations/007_sync_ingested.js +39 -0
  280. package/dist/database/migrations/007_sync_ingested.js.map +1 -0
  281. package/dist/database/migrations/008_node_health_version_text.d.ts +24 -0
  282. package/dist/database/migrations/008_node_health_version_text.d.ts.map +1 -0
  283. package/dist/database/migrations/008_node_health_version_text.js +35 -0
  284. package/dist/database/migrations/008_node_health_version_text.js.map +1 -0
  285. package/dist/database/migrations/009_node_health_unmeasured.d.ts +40 -0
  286. package/dist/database/migrations/009_node_health_unmeasured.d.ts.map +1 -0
  287. package/dist/database/migrations/009_node_health_unmeasured.js +63 -0
  288. package/dist/database/migrations/009_node_health_unmeasured.js.map +1 -0
  289. package/dist/database/migrations/010_metrics_raw_had_no_reader.d.ts +22 -0
  290. package/dist/database/migrations/010_metrics_raw_had_no_reader.d.ts.map +1 -0
  291. package/dist/database/migrations/010_metrics_raw_had_no_reader.js +26 -0
  292. package/dist/database/migrations/010_metrics_raw_had_no_reader.js.map +1 -0
  293. package/dist/database/migrations/011_alerts_nobody_had_to_write.d.ts +56 -0
  294. package/dist/database/migrations/011_alerts_nobody_had_to_write.d.ts.map +1 -0
  295. package/dist/database/migrations/011_alerts_nobody_had_to_write.js +79 -0
  296. package/dist/database/migrations/011_alerts_nobody_had_to_write.js.map +1 -0
  297. package/dist/database/migrations/012_a_disk_nobody_watched.d.ts +26 -0
  298. package/dist/database/migrations/012_a_disk_nobody_watched.d.ts.map +1 -0
  299. package/dist/database/migrations/012_a_disk_nobody_watched.js +40 -0
  300. package/dist/database/migrations/012_a_disk_nobody_watched.js.map +1 -0
  301. package/dist/database/migrations/013_an_alarm_delivered.d.ts +14 -0
  302. package/dist/database/migrations/013_an_alarm_delivered.d.ts.map +1 -0
  303. package/dist/database/migrations/013_an_alarm_delivered.js +28 -0
  304. package/dist/database/migrations/013_an_alarm_delivered.js.map +1 -0
  305. package/dist/database/migrations/index.d.ts +21 -0
  306. package/dist/database/migrations/index.d.ts.map +1 -0
  307. package/dist/database/migrations/index.js +47 -0
  308. package/dist/database/migrations/index.js.map +1 -0
  309. package/dist/database/schema.d.ts +27 -11
  310. package/dist/database/schema.d.ts.map +1 -1
  311. package/dist/database/sqlite-date-binding.d.ts +71 -0
  312. package/dist/database/sqlite-date-binding.d.ts.map +1 -0
  313. package/dist/database/sqlite-date-binding.js +174 -0
  314. package/dist/database/sqlite-date-binding.js.map +1 -0
  315. package/dist/execution/data-channel.d.ts +48 -0
  316. package/dist/execution/data-channel.d.ts.map +1 -0
  317. package/dist/execution/data-channel.js +55 -0
  318. package/dist/execution/data-channel.js.map +1 -0
  319. package/dist/execution/execution.service.d.ts +139 -0
  320. package/dist/execution/execution.service.d.ts.map +1 -1
  321. package/dist/execution/execution.service.js +273 -10
  322. package/dist/execution/execution.service.js.map +1 -1
  323. package/dist/index.d.ts +1 -1
  324. package/dist/index.d.ts.map +1 -1
  325. package/dist/infrastructure/bare-metal-plan.d.ts +208 -0
  326. package/dist/infrastructure/bare-metal-plan.d.ts.map +1 -0
  327. package/dist/infrastructure/bare-metal-plan.js +363 -0
  328. package/dist/infrastructure/bare-metal-plan.js.map +1 -0
  329. package/dist/infrastructure/bare-metal-runner.d.ts +65 -0
  330. package/dist/infrastructure/bare-metal-runner.d.ts.map +1 -0
  331. package/dist/infrastructure/bare-metal-runner.js +354 -0
  332. package/dist/infrastructure/bare-metal-runner.js.map +1 -0
  333. package/dist/infrastructure/config-payload.d.ts +149 -0
  334. package/dist/infrastructure/config-payload.d.ts.map +1 -0
  335. package/dist/infrastructure/config-payload.js +235 -0
  336. package/dist/infrastructure/config-payload.js.map +1 -0
  337. package/dist/infrastructure/container-runtime.d.ts +169 -1
  338. package/dist/infrastructure/container-runtime.d.ts.map +1 -1
  339. package/dist/infrastructure/container-runtime.js +525 -33
  340. package/dist/infrastructure/container-runtime.js.map +1 -1
  341. package/dist/infrastructure/gateway-reachability.d.ts +85 -0
  342. package/dist/infrastructure/gateway-reachability.d.ts.map +1 -0
  343. package/dist/infrastructure/gateway-reachability.js +116 -0
  344. package/dist/infrastructure/gateway-reachability.js.map +1 -0
  345. package/dist/infrastructure/gateway-redis-db.d.ts +29 -0
  346. package/dist/infrastructure/gateway-redis-db.d.ts.map +1 -0
  347. package/dist/infrastructure/gateway-redis-db.js +32 -0
  348. package/dist/infrastructure/gateway-redis-db.js.map +1 -0
  349. package/dist/infrastructure/host-inspection.d.ts +223 -0
  350. package/dist/infrastructure/host-inspection.d.ts.map +1 -0
  351. package/dist/infrastructure/host-inspection.js +501 -0
  352. package/dist/infrastructure/host-inspection.js.map +1 -0
  353. package/dist/infrastructure/infrastructure-gate.d.ts.map +1 -1
  354. package/dist/infrastructure/infrastructure.service.d.ts +206 -6
  355. package/dist/infrastructure/infrastructure.service.d.ts.map +1 -1
  356. package/dist/infrastructure/infrastructure.service.js +415 -89
  357. package/dist/infrastructure/infrastructure.service.js.map +1 -1
  358. package/dist/infrastructure/known-machines.d.ts +76 -0
  359. package/dist/infrastructure/known-machines.d.ts.map +1 -0
  360. package/dist/infrastructure/known-machines.js +94 -0
  361. package/dist/infrastructure/known-machines.js.map +1 -0
  362. package/dist/infrastructure/node-credentials.d.ts +45 -0
  363. package/dist/infrastructure/node-credentials.d.ts.map +1 -0
  364. package/dist/infrastructure/node-credentials.js +80 -0
  365. package/dist/infrastructure/node-credentials.js.map +1 -0
  366. package/dist/infrastructure/orphan-containers.d.ts +99 -0
  367. package/dist/infrastructure/orphan-containers.d.ts.map +1 -0
  368. package/dist/infrastructure/orphan-containers.js +106 -0
  369. package/dist/infrastructure/orphan-containers.js.map +1 -0
  370. package/dist/infrastructure/phantom-endpoint-janitor.d.ts +20 -0
  371. package/dist/infrastructure/phantom-endpoint-janitor.d.ts.map +1 -1
  372. package/dist/infrastructure/phantom-endpoint-janitor.js +56 -6
  373. package/dist/infrastructure/phantom-endpoint-janitor.js.map +1 -1
  374. package/dist/infrastructure/presets/gateway-openresty.d.ts.map +1 -1
  375. package/dist/infrastructure/presets/gateway-openresty.js +29 -3
  376. package/dist/infrastructure/presets/gateway-openresty.js.map +1 -1
  377. package/dist/infrastructure/presets/minio.d.ts.map +1 -1
  378. package/dist/infrastructure/presets/minio.js +36 -3
  379. package/dist/infrastructure/presets/minio.js.map +1 -1
  380. package/dist/infrastructure/presets/postgres.d.ts.map +1 -1
  381. package/dist/infrastructure/presets/postgres.js +69 -2
  382. package/dist/infrastructure/presets/postgres.js.map +1 -1
  383. package/dist/infrastructure/presets/redis.d.ts.map +1 -1
  384. package/dist/infrastructure/presets/redis.js +13 -0
  385. package/dist/infrastructure/presets/redis.js.map +1 -1
  386. package/dist/infrastructure/presets/registry.d.ts.map +1 -1
  387. package/dist/infrastructure/presets/registry.js +81 -12
  388. package/dist/infrastructure/presets/registry.js.map +1 -1
  389. package/dist/infrastructure/presets/tor.d.ts +38 -0
  390. package/dist/infrastructure/presets/tor.d.ts.map +1 -1
  391. package/dist/infrastructure/presets/tor.js +78 -69
  392. package/dist/infrastructure/presets/tor.js.map +1 -1
  393. package/dist/infrastructure/presets/torrc.d.ts +54 -0
  394. package/dist/infrastructure/presets/torrc.d.ts.map +1 -0
  395. package/dist/infrastructure/presets/torrc.js +153 -0
  396. package/dist/infrastructure/presets/torrc.js.map +1 -0
  397. package/dist/infrastructure/presets/types.d.ts +17 -0
  398. package/dist/infrastructure/presets/types.d.ts.map +1 -1
  399. package/dist/infrastructure/provisioning-outcome.d.ts +85 -0
  400. package/dist/infrastructure/provisioning-outcome.d.ts.map +1 -0
  401. package/dist/infrastructure/provisioning-outcome.js +122 -0
  402. package/dist/infrastructure/provisioning-outcome.js.map +1 -0
  403. package/dist/infrastructure/server-registry.d.ts +27 -0
  404. package/dist/infrastructure/server-registry.d.ts.map +1 -1
  405. package/dist/infrastructure/server-registry.js +60 -5
  406. package/dist/infrastructure/server-registry.js.map +1 -1
  407. package/dist/infrastructure/service-binding.d.ts +60 -0
  408. package/dist/infrastructure/service-binding.d.ts.map +1 -0
  409. package/dist/infrastructure/service-binding.js +90 -0
  410. package/dist/infrastructure/service-binding.js.map +1 -0
  411. package/dist/infrastructure/service-credentials.d.ts +105 -0
  412. package/dist/infrastructure/service-credentials.d.ts.map +1 -0
  413. package/dist/infrastructure/service-credentials.js +141 -0
  414. package/dist/infrastructure/service-credentials.js.map +1 -0
  415. package/dist/infrastructure/service-resolver.d.ts +160 -12
  416. package/dist/infrastructure/service-resolver.d.ts.map +1 -1
  417. package/dist/infrastructure/service-resolver.js +463 -53
  418. package/dist/infrastructure/service-resolver.js.map +1 -1
  419. package/dist/infrastructure/shipped-config.d.ts +43 -0
  420. package/dist/infrastructure/shipped-config.d.ts.map +1 -0
  421. package/dist/infrastructure/shipped-config.js +159 -0
  422. package/dist/infrastructure/shipped-config.js.map +1 -0
  423. package/dist/infrastructure/stack-infra-manager.d.ts +6 -0
  424. package/dist/infrastructure/stack-infra-manager.d.ts.map +1 -1
  425. package/dist/infrastructure/stack-infra-manager.js +31 -13
  426. package/dist/infrastructure/stack-infra-manager.js.map +1 -1
  427. package/dist/infrastructure/types.d.ts +261 -6
  428. package/dist/infrastructure/types.d.ts.map +1 -1
  429. package/dist/mcp/mcp-bridge.d.ts.map +1 -1
  430. package/dist/mcp/mcp-bridge.js.map +1 -1
  431. package/dist/mcp/tool-groups/apps.tools.d.ts +2 -1
  432. package/dist/mcp/tool-groups/apps.tools.d.ts.map +1 -1
  433. package/dist/mcp/tool-groups/apps.tools.js +2 -2
  434. package/dist/mcp/tool-groups/apps.tools.js.map +1 -1
  435. package/dist/mcp/tool-groups/infra.tools.d.ts +16 -2
  436. package/dist/mcp/tool-groups/infra.tools.d.ts.map +1 -1
  437. package/dist/mcp/tool-groups/infra.tools.js +51 -41
  438. package/dist/mcp/tool-groups/infra.tools.js.map +1 -1
  439. package/dist/mcp/tool-groups/kb.tools.d.ts.map +1 -1
  440. package/dist/mcp/tool-groups/kb.tools.js +4 -6
  441. package/dist/mcp/tool-groups/kb.tools.js.map +1 -1
  442. package/dist/mcp/tool-groups/management.tools.d.ts +20 -3
  443. package/dist/mcp/tool-groups/management.tools.d.ts.map +1 -1
  444. package/dist/mcp/tool-groups/management.tools.js +158 -125
  445. package/dist/mcp/tool-groups/management.tools.js.map +1 -1
  446. package/dist/mcp/tool-groups/monitoring.tools.d.ts +10 -1
  447. package/dist/mcp/tool-groups/monitoring.tools.d.ts.map +1 -1
  448. package/dist/mcp/tool-groups/monitoring.tools.js +65 -18
  449. package/dist/mcp/tool-groups/monitoring.tools.js.map +1 -1
  450. package/dist/mcp/unavailable-tools.d.ts +35 -0
  451. package/dist/mcp/unavailable-tools.d.ts.map +1 -0
  452. package/dist/mcp/unavailable-tools.js +59 -0
  453. package/dist/mcp/unavailable-tools.js.map +1 -0
  454. package/dist/monitoring/app-health.indicator.d.ts.map +1 -1
  455. package/dist/monitoring/app-health.indicator.js +12 -0
  456. package/dist/monitoring/app-health.indicator.js.map +1 -1
  457. package/dist/monitoring/desktop-notifier.d.ts +26 -0
  458. package/dist/monitoring/desktop-notifier.d.ts.map +1 -0
  459. package/dist/monitoring/desktop-notifier.js +49 -0
  460. package/dist/monitoring/desktop-notifier.js.map +1 -0
  461. package/dist/monitoring/docker-health.indicator.d.ts +17 -1
  462. package/dist/monitoring/docker-health.indicator.d.ts.map +1 -1
  463. package/dist/monitoring/docker-health.indicator.js +38 -8
  464. package/dist/monitoring/docker-health.indicator.js.map +1 -1
  465. package/dist/monitoring/event-loop-stall.indicator.d.ts +26 -0
  466. package/dist/monitoring/event-loop-stall.indicator.d.ts.map +1 -0
  467. package/dist/monitoring/event-loop-stall.indicator.js +47 -0
  468. package/dist/monitoring/event-loop-stall.indicator.js.map +1 -0
  469. package/dist/monitoring/event-loop-watch.d.ts +124 -0
  470. package/dist/monitoring/event-loop-watch.d.ts.map +1 -0
  471. package/dist/monitoring/event-loop-watch.js +179 -0
  472. package/dist/monitoring/event-loop-watch.js.map +1 -0
  473. package/dist/monitoring/host-disk.d.ts +6 -0
  474. package/dist/monitoring/host-disk.d.ts.map +1 -0
  475. package/dist/monitoring/host-disk.js +26 -0
  476. package/dist/monitoring/host-disk.js.map +1 -0
  477. package/dist/monitoring/log-line.d.ts +188 -0
  478. package/dist/monitoring/log-line.d.ts.map +1 -0
  479. package/dist/monitoring/log-line.js +458 -0
  480. package/dist/monitoring/log-line.js.map +1 -0
  481. package/dist/monitoring/log-manager.d.ts +89 -8
  482. package/dist/monitoring/log-manager.d.ts.map +1 -1
  483. package/dist/monitoring/log-manager.js +246 -77
  484. package/dist/monitoring/log-manager.js.map +1 -1
  485. package/dist/observability/metrics-bridge.d.ts.map +1 -1
  486. package/dist/observability/metrics-server.d.ts.map +1 -1
  487. package/dist/orchestrator/app-handle.d.ts +157 -2
  488. package/dist/orchestrator/app-handle.d.ts.map +1 -1
  489. package/dist/orchestrator/app-handle.js +165 -3
  490. package/dist/orchestrator/app-handle.js.map +1 -1
  491. package/dist/orchestrator/app-health.d.ts +33 -0
  492. package/dist/orchestrator/app-health.d.ts.map +1 -0
  493. package/dist/orchestrator/app-health.js +74 -0
  494. package/dist/orchestrator/app-health.js.map +1 -0
  495. package/dist/orchestrator/app-traffic.d.ts +14 -0
  496. package/dist/orchestrator/app-traffic.d.ts.map +1 -0
  497. package/dist/orchestrator/app-traffic.js +33 -0
  498. package/dist/orchestrator/app-traffic.js.map +1 -0
  499. package/dist/orchestrator/bootstrap-loader-child.d.ts +19 -0
  500. package/dist/orchestrator/bootstrap-loader-child.d.ts.map +1 -0
  501. package/dist/orchestrator/bootstrap-loader-child.js +43 -0
  502. package/dist/orchestrator/bootstrap-loader-child.js.map +1 -0
  503. package/dist/orchestrator/bootstrap-loader.d.ts +72 -0
  504. package/dist/orchestrator/bootstrap-loader.d.ts.map +1 -1
  505. package/dist/orchestrator/bootstrap-loader.js +350 -5
  506. package/dist/orchestrator/bootstrap-loader.js.map +1 -1
  507. package/dist/orchestrator/bootstrap-process.d.ts +99 -4
  508. package/dist/orchestrator/bootstrap-process.d.ts.map +1 -1
  509. package/dist/orchestrator/bootstrap-process.js +330 -19
  510. package/dist/orchestrator/bootstrap-process.js.map +1 -1
  511. package/dist/orchestrator/build-service.d.ts.map +1 -1
  512. package/dist/orchestrator/build-service.js.map +1 -1
  513. package/dist/orchestrator/call-exposed-service.d.ts +7 -0
  514. package/dist/orchestrator/call-exposed-service.d.ts.map +1 -0
  515. package/dist/orchestrator/call-exposed-service.js +50 -0
  516. package/dist/orchestrator/call-exposed-service.js.map +1 -0
  517. package/dist/orchestrator/classic-launcher.d.ts +1 -0
  518. package/dist/orchestrator/classic-launcher.d.ts.map +1 -1
  519. package/dist/orchestrator/classic-launcher.js +34 -3
  520. package/dist/orchestrator/classic-launcher.js.map +1 -1
  521. package/dist/orchestrator/file-watcher.d.ts +78 -1
  522. package/dist/orchestrator/file-watcher.d.ts.map +1 -1
  523. package/dist/orchestrator/file-watcher.js +181 -6
  524. package/dist/orchestrator/file-watcher.js.map +1 -1
  525. package/dist/orchestrator/module-worker-process.d.ts.map +1 -1
  526. package/dist/orchestrator/module-worker-process.js +10 -0
  527. package/dist/orchestrator/module-worker-process.js.map +1 -1
  528. package/dist/orchestrator/orchestrator.service.d.ts +371 -11
  529. package/dist/orchestrator/orchestrator.service.d.ts.map +1 -1
  530. package/dist/orchestrator/orchestrator.service.js +1602 -269
  531. package/dist/orchestrator/orchestrator.service.js.map +1 -1
  532. package/dist/orchestrator/owned-pids.d.ts +83 -0
  533. package/dist/orchestrator/owned-pids.d.ts.map +1 -0
  534. package/dist/orchestrator/owned-pids.js +93 -0
  535. package/dist/orchestrator/owned-pids.js.map +1 -0
  536. package/dist/orchestrator/port-conflict.d.ts +102 -0
  537. package/dist/orchestrator/port-conflict.d.ts.map +1 -0
  538. package/dist/orchestrator/port-conflict.js +131 -0
  539. package/dist/orchestrator/port-conflict.js.map +1 -0
  540. package/dist/orchestrator/process-janitor.d.ts +78 -4
  541. package/dist/orchestrator/process-janitor.d.ts.map +1 -1
  542. package/dist/orchestrator/process-janitor.js +246 -30
  543. package/dist/orchestrator/process-janitor.js.map +1 -1
  544. package/dist/orchestrator/ps-metrics.d.ts +37 -0
  545. package/dist/orchestrator/ps-metrics.d.ts.map +1 -0
  546. package/dist/orchestrator/ps-metrics.js +60 -0
  547. package/dist/orchestrator/ps-metrics.js.map +1 -0
  548. package/dist/orchestrator/service-router.d.ts +58 -2
  549. package/dist/orchestrator/service-router.d.ts.map +1 -1
  550. package/dist/orchestrator/service-router.js +157 -25
  551. package/dist/orchestrator/service-router.js.map +1 -1
  552. package/dist/orchestrator/topology-query.d.ts +49 -0
  553. package/dist/orchestrator/topology-query.d.ts.map +1 -0
  554. package/dist/orchestrator/topology-query.js +54 -0
  555. package/dist/orchestrator/topology-query.js.map +1 -0
  556. package/dist/project/artifact-builder.d.ts +174 -3
  557. package/dist/project/artifact-builder.d.ts.map +1 -1
  558. package/dist/project/artifact-builder.js +454 -42
  559. package/dist/project/artifact-builder.js.map +1 -1
  560. package/dist/project/build-decision.d.ts +58 -0
  561. package/dist/project/build-decision.d.ts.map +1 -0
  562. package/dist/project/build-decision.js +59 -0
  563. package/dist/project/build-decision.js.map +1 -0
  564. package/dist/project/config-resolver.d.ts +6 -4
  565. package/dist/project/config-resolver.d.ts.map +1 -1
  566. package/dist/project/config-resolver.js +128 -74
  567. package/dist/project/config-resolver.js.map +1 -1
  568. package/dist/project/declared-config.d.ts +42 -0
  569. package/dist/project/declared-config.d.ts.map +1 -0
  570. package/dist/project/declared-config.js +60 -0
  571. package/dist/project/declared-config.js.map +1 -0
  572. package/dist/project/dependency-analyzer.d.ts.map +1 -1
  573. package/dist/project/dependency-analyzer.js.map +1 -1
  574. package/dist/project/deploy-phases.d.ts +35 -0
  575. package/dist/project/deploy-phases.d.ts.map +1 -0
  576. package/dist/project/deploy-phases.js +75 -0
  577. package/dist/project/deploy-phases.js.map +1 -0
  578. package/dist/project/exec-in-group.d.ts +49 -0
  579. package/dist/project/exec-in-group.d.ts.map +1 -0
  580. package/dist/project/exec-in-group.js +100 -0
  581. package/dist/project/exec-in-group.js.map +1 -0
  582. package/dist/project/node-app-config.d.ts +101 -0
  583. package/dist/project/node-app-config.d.ts.map +1 -0
  584. package/dist/project/node-app-config.js +134 -0
  585. package/dist/project/node-app-config.js.map +1 -0
  586. package/dist/project/node-app-health.d.ts +76 -0
  587. package/dist/project/node-app-health.d.ts.map +1 -0
  588. package/dist/project/node-app-health.js +119 -0
  589. package/dist/project/node-app-health.js.map +1 -0
  590. package/dist/project/operator-account.d.ts +287 -0
  591. package/dist/project/operator-account.d.ts.map +1 -0
  592. package/dist/project/operator-account.js +373 -0
  593. package/dist/project/operator-account.js.map +1 -0
  594. package/dist/project/registry.d.ts +45 -8
  595. package/dist/project/registry.d.ts.map +1 -1
  596. package/dist/project/registry.js +217 -49
  597. package/dist/project/registry.js.map +1 -1
  598. package/dist/project/requirements-scanner.d.ts +1 -0
  599. package/dist/project/requirements-scanner.d.ts.map +1 -1
  600. package/dist/project/requirements-scanner.js +28 -3
  601. package/dist/project/requirements-scanner.js.map +1 -1
  602. package/dist/project/stack-env.d.ts +37 -0
  603. package/dist/project/stack-env.d.ts.map +1 -0
  604. package/dist/project/stack-env.js +85 -0
  605. package/dist/project/stack-env.js.map +1 -0
  606. package/dist/project/stand-containers.d.ts +4 -0
  607. package/dist/project/stand-containers.d.ts.map +1 -0
  608. package/dist/project/stand-containers.js +27 -0
  609. package/dist/project/stand-containers.js.map +1 -0
  610. package/dist/project/working-tree.d.ts +62 -0
  611. package/dist/project/working-tree.d.ts.map +1 -0
  612. package/dist/project/working-tree.js +101 -0
  613. package/dist/project/working-tree.js.map +1 -0
  614. package/dist/release/artifact-store.d.ts +360 -0
  615. package/dist/release/artifact-store.d.ts.map +1 -0
  616. package/dist/release/artifact-store.js +1040 -0
  617. package/dist/release/artifact-store.js.map +1 -0
  618. package/dist/release/attest-on-node.d.ts +92 -0
  619. package/dist/release/attest-on-node.d.ts.map +1 -0
  620. package/dist/release/attest-on-node.js +207 -0
  621. package/dist/release/attest-on-node.js.map +1 -0
  622. package/dist/release/attest.d.ts +135 -0
  623. package/dist/release/attest.d.ts.map +1 -0
  624. package/dist/release/attest.js +199 -0
  625. package/dist/release/attest.js.map +1 -0
  626. package/dist/release/build-run.d.ts +151 -0
  627. package/dist/release/build-run.d.ts.map +1 -0
  628. package/dist/release/build-run.js +609 -0
  629. package/dist/release/build-run.js.map +1 -0
  630. package/dist/release/builder.d.ts +57 -0
  631. package/dist/release/builder.d.ts.map +1 -0
  632. package/dist/release/builder.js +120 -0
  633. package/dist/release/builder.js.map +1 -0
  634. package/dist/release/daemon-omni.d.ts +41 -0
  635. package/dist/release/daemon-omni.d.ts.map +1 -0
  636. package/dist/release/daemon-omni.js +59 -0
  637. package/dist/release/daemon-omni.js.map +1 -0
  638. package/dist/release/definition-inputs.d.ts +34 -0
  639. package/dist/release/definition-inputs.d.ts.map +1 -0
  640. package/dist/release/definition-inputs.js +90 -0
  641. package/dist/release/definition-inputs.js.map +1 -0
  642. package/dist/release/delivered.d.ts +53 -0
  643. package/dist/release/delivered.d.ts.map +1 -0
  644. package/dist/release/delivered.js +81 -0
  645. package/dist/release/delivered.js.map +1 -0
  646. package/dist/release/layout.d.ts +61 -0
  647. package/dist/release/layout.d.ts.map +1 -0
  648. package/dist/release/layout.js +114 -0
  649. package/dist/release/layout.js.map +1 -0
  650. package/dist/release/load.d.ts +44 -0
  651. package/dist/release/load.d.ts.map +1 -0
  652. package/dist/release/load.js +84 -0
  653. package/dist/release/load.js.map +1 -0
  654. package/dist/release/manifest.d.ts +299 -0
  655. package/dist/release/manifest.d.ts.map +1 -0
  656. package/dist/release/manifest.js +176 -0
  657. package/dist/release/manifest.js.map +1 -0
  658. package/dist/release/migrations.d.ts +32 -0
  659. package/dist/release/migrations.d.ts.map +1 -0
  660. package/dist/release/migrations.js +51 -0
  661. package/dist/release/migrations.js.map +1 -0
  662. package/dist/release/publish.d.ts +71 -0
  663. package/dist/release/publish.d.ts.map +1 -0
  664. package/dist/release/publish.js +102 -0
  665. package/dist/release/publish.js.map +1 -0
  666. package/dist/release/store.d.ts +174 -0
  667. package/dist/release/store.d.ts.map +1 -0
  668. package/dist/release/store.js +257 -0
  669. package/dist/release/store.js.map +1 -0
  670. package/dist/services/alert.rpc-service.d.ts +11 -15
  671. package/dist/services/alert.rpc-service.d.ts.map +1 -1
  672. package/dist/services/alert.rpc-service.js +29 -14
  673. package/dist/services/alert.rpc-service.js.map +1 -1
  674. package/dist/services/alert.service.d.ts +96 -59
  675. package/dist/services/alert.service.d.ts.map +1 -1
  676. package/dist/services/alert.service.js +455 -70
  677. package/dist/services/alert.service.js.map +1 -1
  678. package/dist/services/anonymous-input.d.ts +26 -0
  679. package/dist/services/anonymous-input.d.ts.map +1 -0
  680. package/dist/services/anonymous-input.js +44 -0
  681. package/dist/services/anonymous-input.js.map +1 -0
  682. package/dist/services/audit.rpc-service.d.ts +27 -0
  683. package/dist/services/audit.rpc-service.d.ts.map +1 -0
  684. package/dist/services/audit.rpc-service.js +57 -0
  685. package/dist/services/audit.rpc-service.js.map +1 -0
  686. package/dist/services/audit.service.d.ts +165 -0
  687. package/dist/services/audit.service.d.ts.map +1 -0
  688. package/dist/services/audit.service.js +242 -0
  689. package/dist/services/audit.service.js.map +1 -0
  690. package/dist/services/auth-context.d.ts +21 -1
  691. package/dist/services/auth-context.d.ts.map +1 -1
  692. package/dist/services/auth-context.js +51 -5
  693. package/dist/services/auth-context.js.map +1 -1
  694. package/dist/services/auth.rpc-service.d.ts +0 -1
  695. package/dist/services/auth.rpc-service.d.ts.map +1 -1
  696. package/dist/services/auth.rpc-service.js +23 -9
  697. package/dist/services/auth.rpc-service.js.map +1 -1
  698. package/dist/services/auth.service.d.ts +47 -33
  699. package/dist/services/auth.service.d.ts.map +1 -1
  700. package/dist/services/auth.service.js +155 -23
  701. package/dist/services/auth.service.js.map +1 -1
  702. package/dist/services/backup-pipeline.d.ts +97 -0
  703. package/dist/services/backup-pipeline.d.ts.map +1 -0
  704. package/dist/services/backup-pipeline.js +286 -0
  705. package/dist/services/backup-pipeline.js.map +1 -0
  706. package/dist/services/backup-schedule.d.ts +69 -0
  707. package/dist/services/backup-schedule.d.ts.map +1 -0
  708. package/dist/services/backup-schedule.js +132 -0
  709. package/dist/services/backup-schedule.js.map +1 -0
  710. package/dist/services/backup.rpc-service.d.ts +31 -2
  711. package/dist/services/backup.rpc-service.d.ts.map +1 -1
  712. package/dist/services/backup.rpc-service.js +53 -0
  713. package/dist/services/backup.rpc-service.js.map +1 -1
  714. package/dist/services/backup.service.d.ts +458 -14
  715. package/dist/services/backup.service.d.ts.map +1 -1
  716. package/dist/services/backup.service.js +1368 -170
  717. package/dist/services/backup.service.js.map +1 -1
  718. package/dist/services/bundle-build-worker.d.ts +19 -0
  719. package/dist/services/bundle-build-worker.d.ts.map +1 -0
  720. package/dist/services/bundle-build-worker.js +40 -0
  721. package/dist/services/bundle-build-worker.js.map +1 -0
  722. package/dist/services/bundle-builder.d.ts +487 -0
  723. package/dist/services/bundle-builder.d.ts.map +1 -0
  724. package/dist/services/bundle-builder.js +1083 -0
  725. package/dist/services/bundle-builder.js.map +1 -0
  726. package/dist/services/bundle-worker-protocol.d.ts +19 -0
  727. package/dist/services/bundle-worker-protocol.d.ts.map +1 -0
  728. package/dist/services/bundle-worker-protocol.js +32 -0
  729. package/dist/services/bundle-worker-protocol.js.map +1 -0
  730. package/dist/services/deploy.rpc-service.d.ts +4 -1
  731. package/dist/services/deploy.rpc-service.d.ts.map +1 -1
  732. package/dist/services/deploy.rpc-service.js +10 -0
  733. package/dist/services/deploy.rpc-service.js.map +1 -1
  734. package/dist/services/deploy.service.d.ts +14 -24
  735. package/dist/services/deploy.service.d.ts.map +1 -1
  736. package/dist/services/deploy.service.js +46 -5
  737. package/dist/services/deploy.service.js.map +1 -1
  738. package/dist/services/discovery.rpc-service.d.ts +2 -1
  739. package/dist/services/discovery.rpc-service.d.ts.map +1 -1
  740. package/dist/services/discovery.rpc-service.js.map +1 -1
  741. package/dist/services/discovery.service.d.ts +32 -28
  742. package/dist/services/discovery.service.d.ts.map +1 -1
  743. package/dist/services/discovery.service.js +108 -133
  744. package/dist/services/discovery.service.js.map +1 -1
  745. package/dist/services/event-broadcaster.rpc-service.d.ts +36 -23
  746. package/dist/services/event-broadcaster.rpc-service.d.ts.map +1 -1
  747. package/dist/services/event-broadcaster.rpc-service.js +70 -32
  748. package/dist/services/event-broadcaster.rpc-service.js.map +1 -1
  749. package/dist/services/event-broadcaster.service.d.ts.map +1 -1
  750. package/dist/services/event-broadcaster.service.js.map +1 -1
  751. package/dist/services/fleet.rpc-service.d.ts +2 -1
  752. package/dist/services/fleet.rpc-service.d.ts.map +1 -1
  753. package/dist/services/fleet.rpc-service.js +3 -1
  754. package/dist/services/fleet.rpc-service.js.map +1 -1
  755. package/dist/services/fleet.service.d.ts +32 -34
  756. package/dist/services/fleet.service.d.ts.map +1 -1
  757. package/dist/services/fleet.service.js +66 -10
  758. package/dist/services/fleet.service.js.map +1 -1
  759. package/dist/services/health-check.rpc-service.d.ts +2 -1
  760. package/dist/services/health-check.rpc-service.d.ts.map +1 -1
  761. package/dist/services/health-check.rpc-service.js.map +1 -1
  762. package/dist/services/health-check.service.d.ts +50 -36
  763. package/dist/services/health-check.service.d.ts.map +1 -1
  764. package/dist/services/health-check.service.js +179 -182
  765. package/dist/services/health-check.service.js.map +1 -1
  766. package/dist/services/infrastructure.rpc-service.d.ts +297 -2
  767. package/dist/services/infrastructure.rpc-service.d.ts.map +1 -1
  768. package/dist/services/infrastructure.rpc-service.js +523 -11
  769. package/dist/services/infrastructure.rpc-service.js.map +1 -1
  770. package/dist/services/kubernetes.rpc-service.d.ts +2 -1
  771. package/dist/services/kubernetes.rpc-service.d.ts.map +1 -1
  772. package/dist/services/kubernetes.rpc-service.js.map +1 -1
  773. package/dist/services/kubernetes.service.d.ts +5 -39
  774. package/dist/services/kubernetes.service.d.ts.map +1 -1
  775. package/dist/services/kubernetes.service.js +29 -5
  776. package/dist/services/kubernetes.service.js.map +1 -1
  777. package/dist/services/local-bundle.d.ts +151 -0
  778. package/dist/services/local-bundle.d.ts.map +1 -0
  779. package/dist/services/local-bundle.js +233 -0
  780. package/dist/services/local-bundle.js.map +1 -0
  781. package/dist/services/lockout.d.ts +28 -0
  782. package/dist/services/lockout.d.ts.map +1 -0
  783. package/dist/services/lockout.js +41 -0
  784. package/dist/services/lockout.js.map +1 -0
  785. package/dist/services/log-collector.rpc-service.d.ts +16 -0
  786. package/dist/services/log-collector.rpc-service.d.ts.map +1 -1
  787. package/dist/services/log-collector.rpc-service.js +16 -0
  788. package/dist/services/log-collector.rpc-service.js.map +1 -1
  789. package/dist/services/log-collector.service.d.ts +172 -54
  790. package/dist/services/log-collector.service.d.ts.map +1 -1
  791. package/dist/services/log-collector.service.js +492 -102
  792. package/dist/services/log-collector.service.js.map +1 -1
  793. package/dist/services/log-retention.d.ts +50 -0
  794. package/dist/services/log-retention.d.ts.map +1 -0
  795. package/dist/services/log-retention.js +52 -0
  796. package/dist/services/log-retention.js.map +1 -0
  797. package/dist/services/maintenance-lock.d.ts +162 -0
  798. package/dist/services/maintenance-lock.d.ts.map +1 -0
  799. package/dist/services/maintenance-lock.js +316 -0
  800. package/dist/services/maintenance-lock.js.map +1 -0
  801. package/dist/services/master-address.d.ts +107 -0
  802. package/dist/services/master-address.d.ts.map +1 -0
  803. package/dist/services/master-address.js +154 -0
  804. package/dist/services/master-address.js.map +1 -0
  805. package/dist/services/migration-output.d.ts +16 -0
  806. package/dist/services/migration-output.d.ts.map +1 -0
  807. package/dist/services/migration-output.js +22 -0
  808. package/dist/services/migration-output.js.map +1 -0
  809. package/dist/services/netron-telemetry-transport.d.ts.map +1 -1
  810. package/dist/services/netron-telemetry-transport.js.map +1 -1
  811. package/dist/services/node-deploy-lease.d.ts +154 -0
  812. package/dist/services/node-deploy-lease.d.ts.map +1 -0
  813. package/dist/services/node-deploy-lease.js +386 -0
  814. package/dist/services/node-deploy-lease.js.map +1 -0
  815. package/dist/services/node-health.repository.d.ts +63 -4
  816. package/dist/services/node-health.repository.d.ts.map +1 -1
  817. package/dist/services/node-health.repository.js +108 -67
  818. package/dist/services/node-health.repository.js.map +1 -1
  819. package/dist/services/node-manager.rpc-service.d.ts +355 -10
  820. package/dist/services/node-manager.rpc-service.d.ts.map +1 -1
  821. package/dist/services/node-manager.rpc-service.js +730 -34
  822. package/dist/services/node-manager.rpc-service.js.map +1 -1
  823. package/dist/services/node-manager.service.d.ts +267 -95
  824. package/dist/services/node-manager.service.d.ts.map +1 -1
  825. package/dist/services/node-manager.service.js +805 -103
  826. package/dist/services/node-manager.service.js.map +1 -1
  827. package/dist/services/node-upgrade.d.ts +129 -0
  828. package/dist/services/node-upgrade.d.ts.map +1 -0
  829. package/dist/services/node-upgrade.js +161 -0
  830. package/dist/services/node-upgrade.js.map +1 -0
  831. package/dist/services/node-upgrade.service.d.ts +232 -0
  832. package/dist/services/node-upgrade.service.d.ts.map +1 -0
  833. package/dist/services/node-upgrade.service.js +468 -0
  834. package/dist/services/node-upgrade.service.js.map +1 -0
  835. package/dist/services/pipeline.rpc-service.d.ts +2 -1
  836. package/dist/services/pipeline.rpc-service.d.ts.map +1 -1
  837. package/dist/services/pipeline.rpc-service.js.map +1 -1
  838. package/dist/services/pipeline.service.d.ts +15 -46
  839. package/dist/services/pipeline.service.d.ts.map +1 -1
  840. package/dist/services/pipeline.service.js +72 -9
  841. package/dist/services/pipeline.service.js.map +1 -1
  842. package/dist/services/project.rpc-service.d.ts +133 -5
  843. package/dist/services/project.rpc-service.d.ts.map +1 -1
  844. package/dist/services/project.rpc-service.js +249 -22
  845. package/dist/services/project.rpc-service.js.map +1 -1
  846. package/dist/services/project.service.d.ts +677 -15
  847. package/dist/services/project.service.d.ts.map +1 -1
  848. package/dist/services/project.service.js +2798 -304
  849. package/dist/services/project.service.js.map +1 -1
  850. package/dist/services/redeploy-decision.d.ts +176 -0
  851. package/dist/services/redeploy-decision.d.ts.map +1 -0
  852. package/dist/services/redeploy-decision.js +142 -0
  853. package/dist/services/redeploy-decision.js.map +1 -0
  854. package/dist/services/release.rpc-service.d.ts +159 -0
  855. package/dist/services/release.rpc-service.d.ts.map +1 -0
  856. package/dist/services/release.rpc-service.js +395 -0
  857. package/dist/services/release.rpc-service.js.map +1 -0
  858. package/dist/services/release.service.d.ts +114 -0
  859. package/dist/services/release.service.d.ts.map +1 -0
  860. package/dist/services/release.service.js +208 -0
  861. package/dist/services/release.service.js.map +1 -0
  862. package/dist/services/remote-deployer.service.d.ts +569 -8
  863. package/dist/services/remote-deployer.service.d.ts.map +1 -1
  864. package/dist/services/remote-deployer.service.js +1618 -169
  865. package/dist/services/remote-deployer.service.js.map +1 -1
  866. package/dist/services/remote-ops.service.d.ts +51 -9
  867. package/dist/services/remote-ops.service.d.ts.map +1 -1
  868. package/dist/services/remote-ops.service.js +235 -39
  869. package/dist/services/remote-ops.service.js.map +1 -1
  870. package/dist/services/remote-provisioner.d.ts +122 -0
  871. package/dist/services/remote-provisioner.d.ts.map +1 -0
  872. package/dist/services/remote-provisioner.js +258 -0
  873. package/dist/services/remote-provisioner.js.map +1 -0
  874. package/dist/services/secrets.rpc-service.d.ts +51 -2
  875. package/dist/services/secrets.rpc-service.d.ts.map +1 -1
  876. package/dist/services/secrets.rpc-service.js +81 -2
  877. package/dist/services/secrets.rpc-service.js.map +1 -1
  878. package/dist/services/secrets.service.d.ts +108 -9
  879. package/dist/services/secrets.service.d.ts.map +1 -1
  880. package/dist/services/secrets.service.js +313 -48
  881. package/dist/services/secrets.service.js.map +1 -1
  882. package/dist/services/slave-storage.service.d.ts +107 -0
  883. package/dist/services/slave-storage.service.d.ts.map +1 -1
  884. package/dist/services/slave-storage.service.js +171 -2
  885. package/dist/services/slave-storage.service.js.map +1 -1
  886. package/dist/services/static-carry-forward.d.ts +85 -0
  887. package/dist/services/static-carry-forward.d.ts.map +1 -0
  888. package/dist/services/static-carry-forward.js +159 -0
  889. package/dist/services/static-carry-forward.js.map +1 -0
  890. package/dist/services/sync-policy.d.ts +167 -0
  891. package/dist/services/sync-policy.d.ts.map +1 -0
  892. package/dist/services/sync-policy.js +161 -0
  893. package/dist/services/sync-policy.js.map +1 -0
  894. package/dist/services/sync-summary.d.ts +39 -0
  895. package/dist/services/sync-summary.d.ts.map +1 -0
  896. package/dist/services/sync-summary.js +62 -0
  897. package/dist/services/sync-summary.js.map +1 -0
  898. package/dist/services/sync.rpc-service.d.ts +19 -7
  899. package/dist/services/sync.rpc-service.d.ts.map +1 -1
  900. package/dist/services/sync.rpc-service.js +36 -5
  901. package/dist/services/sync.rpc-service.js.map +1 -1
  902. package/dist/services/sync.service.d.ts +350 -18
  903. package/dist/services/sync.service.d.ts.map +1 -1
  904. package/dist/services/sync.service.js +864 -116
  905. package/dist/services/sync.service.js.map +1 -1
  906. package/dist/services/system-info.rpc-service.d.ts +2 -1
  907. package/dist/services/system-info.rpc-service.d.ts.map +1 -1
  908. package/dist/services/system-info.rpc-service.js.map +1 -1
  909. package/dist/services/system-info.service.d.ts +56 -68
  910. package/dist/services/system-info.service.d.ts.map +1 -1
  911. package/dist/services/system-info.service.js +240 -127
  912. package/dist/services/system-info.service.js.map +1 -1
  913. package/dist/services/telemetry.rpc-service.d.ts.map +1 -1
  914. package/dist/services/telemetry.rpc-service.js +9 -3
  915. package/dist/services/telemetry.rpc-service.js.map +1 -1
  916. package/dist/services/telemetry.service.d.ts +4 -2
  917. package/dist/services/telemetry.service.d.ts.map +1 -1
  918. package/dist/services/telemetry.service.js +4 -2
  919. package/dist/services/telemetry.service.js.map +1 -1
  920. package/dist/services/trace-collector.rpc-service.d.ts +2 -1
  921. package/dist/services/trace-collector.rpc-service.d.ts.map +1 -1
  922. package/dist/services/trace-collector.rpc-service.js.map +1 -1
  923. package/dist/services/trace-collector.service.d.ts +2 -41
  924. package/dist/services/trace-collector.service.d.ts.map +1 -1
  925. package/dist/services/trace-collector.service.js +27 -7
  926. package/dist/services/trace-collector.service.js.map +1 -1
  927. package/dist/services/wait-for-postgres.d.ts +28 -0
  928. package/dist/services/wait-for-postgres.d.ts.map +1 -0
  929. package/dist/services/wait-for-postgres.js +77 -0
  930. package/dist/services/wait-for-postgres.js.map +1 -0
  931. package/dist/shared/alert-expression.d.ts +60 -0
  932. package/dist/shared/alert-expression.d.ts.map +1 -0
  933. package/dist/shared/alert-expression.js +124 -0
  934. package/dist/shared/alert-expression.js.map +1 -0
  935. package/dist/shared/audit-outcome.d.ts +39 -0
  936. package/dist/shared/audit-outcome.d.ts.map +1 -0
  937. package/dist/shared/audit-outcome.js +45 -0
  938. package/dist/shared/audit-outcome.js.map +1 -0
  939. package/dist/shared/build-freshness.d.ts +59 -0
  940. package/dist/shared/build-freshness.d.ts.map +1 -0
  941. package/dist/shared/build-freshness.js +113 -0
  942. package/dist/shared/build-freshness.js.map +1 -0
  943. package/dist/shared/build-stamp.d.ts +26 -0
  944. package/dist/shared/build-stamp.d.ts.map +1 -0
  945. package/dist/shared/build-stamp.js +36 -0
  946. package/dist/shared/build-stamp.js.map +1 -0
  947. package/dist/shared/describe-error.d.ts +22 -0
  948. package/dist/shared/describe-error.d.ts.map +1 -0
  949. package/dist/shared/describe-error.js +39 -0
  950. package/dist/shared/describe-error.js.map +1 -0
  951. package/dist/shared/dto/alerts.d.ts +101 -0
  952. package/dist/shared/dto/alerts.d.ts.map +1 -0
  953. package/dist/shared/dto/alerts.js +9 -0
  954. package/dist/shared/dto/alerts.js.map +1 -0
  955. package/dist/shared/dto/auth.d.ts +49 -0
  956. package/dist/shared/dto/auth.d.ts.map +1 -0
  957. package/dist/shared/dto/auth.js +14 -0
  958. package/dist/shared/dto/auth.js.map +1 -0
  959. package/dist/shared/dto/backups.d.ts +16 -0
  960. package/dist/shared/dto/backups.d.ts.map +1 -0
  961. package/dist/shared/dto/backups.js +9 -0
  962. package/dist/shared/dto/backups.js.map +1 -0
  963. package/dist/shared/dto/deploy.d.ts +28 -0
  964. package/dist/shared/dto/deploy.d.ts.map +1 -0
  965. package/dist/shared/dto/deploy.js +8 -0
  966. package/dist/shared/dto/deploy.js.map +1 -0
  967. package/dist/shared/dto/discovery.d.ts +24 -0
  968. package/dist/shared/dto/discovery.d.ts.map +1 -0
  969. package/dist/shared/dto/discovery.js +9 -0
  970. package/dist/shared/dto/discovery.js.map +1 -0
  971. package/dist/shared/dto/fleet.d.ts +35 -0
  972. package/dist/shared/dto/fleet.d.ts.map +1 -0
  973. package/dist/shared/dto/fleet.js +8 -0
  974. package/dist/shared/dto/fleet.js.map +1 -0
  975. package/dist/shared/dto/health.d.ts +26 -0
  976. package/dist/shared/dto/health.d.ts.map +1 -0
  977. package/dist/shared/dto/health.js +9 -0
  978. package/dist/shared/dto/health.js.map +1 -0
  979. package/dist/shared/dto/kubernetes.d.ts +44 -0
  980. package/dist/shared/dto/kubernetes.d.ts.map +1 -0
  981. package/dist/shared/dto/kubernetes.js +9 -0
  982. package/dist/shared/dto/kubernetes.js.map +1 -0
  983. package/dist/shared/dto/logs.d.ts +77 -0
  984. package/dist/shared/dto/logs.d.ts.map +1 -0
  985. package/dist/shared/dto/logs.js +10 -0
  986. package/dist/shared/dto/logs.js.map +1 -0
  987. package/dist/shared/dto/metrics.d.ts +65 -0
  988. package/dist/shared/dto/metrics.d.ts.map +1 -0
  989. package/dist/shared/dto/metrics.js +17 -0
  990. package/dist/shared/dto/metrics.js.map +1 -0
  991. package/dist/shared/dto/nodes.d.ts +347 -0
  992. package/dist/shared/dto/nodes.d.ts.map +1 -0
  993. package/dist/shared/dto/nodes.js +8 -0
  994. package/dist/shared/dto/nodes.js.map +1 -0
  995. package/dist/shared/dto/pipelines.d.ts +53 -0
  996. package/dist/shared/dto/pipelines.d.ts.map +1 -0
  997. package/dist/shared/dto/pipelines.js +9 -0
  998. package/dist/shared/dto/pipelines.js.map +1 -0
  999. package/dist/shared/dto/project.d.ts +142 -8
  1000. package/dist/shared/dto/project.d.ts.map +1 -1
  1001. package/dist/shared/dto/services.d.ts +831 -7
  1002. package/dist/shared/dto/services.d.ts.map +1 -1
  1003. package/dist/shared/dto/system-info.d.ts +93 -0
  1004. package/dist/shared/dto/system-info.d.ts.map +1 -0
  1005. package/dist/shared/dto/system-info.js +9 -0
  1006. package/dist/shared/dto/system-info.js.map +1 -0
  1007. package/dist/shared/dto/traces.d.ts +49 -0
  1008. package/dist/shared/dto/traces.d.ts.map +1 -0
  1009. package/dist/shared/dto/traces.js +9 -0
  1010. package/dist/shared/dto/traces.js.map +1 -0
  1011. package/dist/shared/env-config.d.ts +74 -0
  1012. package/dist/shared/env-config.d.ts.map +1 -0
  1013. package/dist/shared/env-config.js +99 -0
  1014. package/dist/shared/env-config.js.map +1 -0
  1015. package/dist/shared/events.d.ts +45 -39
  1016. package/dist/shared/events.d.ts.map +1 -1
  1017. package/dist/shared/events.js +6 -0
  1018. package/dist/shared/events.js.map +1 -1
  1019. package/dist/shared/format.d.ts +1 -1
  1020. package/dist/shared/format.d.ts.map +1 -1
  1021. package/dist/shared/format.js +4 -0
  1022. package/dist/shared/format.js.map +1 -1
  1023. package/dist/shared/local-infra-host.d.ts +28 -0
  1024. package/dist/shared/local-infra-host.d.ts.map +1 -0
  1025. package/dist/shared/local-infra-host.js +28 -0
  1026. package/dist/shared/local-infra-host.js.map +1 -0
  1027. package/dist/shared/node-check.d.ts +37 -0
  1028. package/dist/shared/node-check.d.ts.map +1 -0
  1029. package/dist/shared/node-check.js +41 -0
  1030. package/dist/shared/node-check.js.map +1 -0
  1031. package/dist/shared/paths.d.ts +29 -0
  1032. package/dist/shared/paths.d.ts.map +1 -0
  1033. package/dist/shared/paths.js +54 -0
  1034. package/dist/shared/paths.js.map +1 -0
  1035. package/dist/shared/pnpm.d.ts +29 -0
  1036. package/dist/shared/pnpm.d.ts.map +1 -0
  1037. package/dist/shared/pnpm.js +57 -0
  1038. package/dist/shared/pnpm.js.map +1 -0
  1039. package/dist/shared/private-files.d.ts +29 -0
  1040. package/dist/shared/private-files.d.ts.map +1 -0
  1041. package/dist/shared/private-files.js +109 -0
  1042. package/dist/shared/private-files.js.map +1 -0
  1043. package/dist/shared/redact-env.d.ts +24 -0
  1044. package/dist/shared/redact-env.d.ts.map +1 -0
  1045. package/dist/shared/redact-env.js +36 -0
  1046. package/dist/shared/redact-env.js.map +1 -0
  1047. package/dist/shared/release-reading.d.ts +85 -0
  1048. package/dist/shared/release-reading.d.ts.map +1 -0
  1049. package/dist/shared/release-reading.js +81 -0
  1050. package/dist/shared/release-reading.js.map +1 -0
  1051. package/dist/shared/roles.d.ts +58 -3
  1052. package/dist/shared/roles.d.ts.map +1 -1
  1053. package/dist/shared/roles.js +55 -0
  1054. package/dist/shared/roles.js.map +1 -1
  1055. package/dist/shared/rpcauth.d.ts +13 -0
  1056. package/dist/shared/rpcauth.d.ts.map +1 -0
  1057. package/dist/shared/rpcauth.js +23 -0
  1058. package/dist/shared/rpcauth.js.map +1 -0
  1059. package/dist/shared/shell-escape.d.ts +9 -0
  1060. package/dist/shared/shell-escape.d.ts.map +1 -0
  1061. package/dist/shared/shell-escape.js +11 -0
  1062. package/dist/shared/shell-escape.js.map +1 -0
  1063. package/dist/shared/sync-reading.d.ts +45 -0
  1064. package/dist/shared/sync-reading.d.ts.map +1 -0
  1065. package/dist/shared/sync-reading.js +42 -0
  1066. package/dist/shared/sync-reading.js.map +1 -0
  1067. package/dist/shared/tokens.d.ts +19 -0
  1068. package/dist/shared/tokens.d.ts.map +1 -1
  1069. package/dist/shared/tokens.js +28 -0
  1070. package/dist/shared/tokens.js.map +1 -1
  1071. package/dist/webapp/webapp.service.d.ts +33 -2
  1072. package/dist/webapp/webapp.service.d.ts.map +1 -1
  1073. package/dist/webapp/webapp.service.js +143 -31
  1074. package/dist/webapp/webapp.service.js.map +1 -1
  1075. package/dist/workers/health-monitor-process.d.ts.map +1 -1
  1076. package/dist/workers/health-monitor-process.js +10 -0
  1077. package/dist/workers/health-monitor-process.js.map +1 -1
  1078. package/dist/workers/health-monitor.service.d.ts +45 -3
  1079. package/dist/workers/health-monitor.service.d.ts.map +1 -1
  1080. package/dist/workers/health-monitor.service.js +152 -25
  1081. package/dist/workers/health-monitor.service.js.map +1 -1
  1082. package/dist/workers/system-worker-manager.d.ts +43 -0
  1083. package/dist/workers/system-worker-manager.d.ts.map +1 -1
  1084. package/dist/workers/system-worker-manager.js +150 -3
  1085. package/dist/workers/system-worker-manager.js.map +1 -1
  1086. package/dist/workers/types.d.ts +8 -2
  1087. package/dist/workers/types.d.ts.map +1 -1
  1088. package/package.json +64 -30
  1089. package/webapp/dist/BUILD.json +5 -0
  1090. package/webapp/dist/assets/FormControlLabel-BrH2diyl.js +1 -0
  1091. package/webapp/dist/assets/Grid-BZ7xhoHQ.js +1 -0
  1092. package/webapp/dist/assets/Switch-DGSAxQPM.js +1 -0
  1093. package/webapp/dist/assets/alerts-sXqHJbsa.js +1 -0
  1094. package/webapp/dist/assets/apps-B_Ah8Flh.js +1 -0
  1095. package/webapp/dist/assets/audit-YXihwyui.js +1 -0
  1096. package/webapp/dist/assets/client-CGbBvy9k.js +1 -0
  1097. package/webapp/dist/assets/constants-veKGFkC6.js +1 -0
  1098. package/webapp/dist/assets/containers-Di4NOTLf.js +2 -0
  1099. package/webapp/dist/assets/daemon-memory-CCPZ4cV_.js +1 -0
  1100. package/webapp/dist/assets/dashboard-Cfuf95N3.js +1 -0
  1101. package/webapp/dist/assets/dashboard-builder-CowaYb-M.js +1 -0
  1102. package/webapp/dist/assets/deploy-release-dialog-D6C-XcKY.js +1 -0
  1103. package/webapp/dist/assets/deployments-ChTq5kCw.js +1 -0
  1104. package/webapp/dist/assets/detail-BsGWv7Dj.js +1 -0
  1105. package/webapp/dist/assets/detail-CyVf_cw5.js +2 -0
  1106. package/webapp/dist/assets/detail-D027j6aO.js +8 -0
  1107. package/webapp/dist/assets/formatters-BqjL73N3.js +1 -0
  1108. package/webapp/dist/assets/index-B8AHIPc-.css +1 -0
  1109. package/webapp/dist/assets/index-DiZbrwxT.js +414 -0
  1110. package/webapp/dist/assets/logs-L2b8Oqmo.js +12 -0
  1111. package/webapp/dist/assets/maplibre-gl-MlmG2kbn.js +801 -0
  1112. package/webapp/dist/assets/metrics-CQgjz2Lz.js +2 -0
  1113. package/webapp/dist/assets/nodes-Nwia2Ty6.js +7 -0
  1114. package/webapp/dist/assets/pipelines-DCu_rXOr.js +4 -0
  1115. package/webapp/dist/assets/projects-Bb4aV76h.js +1 -0
  1116. package/webapp/dist/assets/react-CwJFpaho.js +1 -0
  1117. package/webapp/dist/assets/react-apexcharts.esm-Dy0Fez42.js +1956 -0
  1118. package/webapp/dist/assets/release-bits-Dj4EOhhb.js +1 -0
  1119. package/webapp/dist/assets/release-build-panel-D6OCVlhT.js +1 -0
  1120. package/webapp/dist/assets/releases-CnAt3yO6.js +2 -0
  1121. package/webapp/dist/assets/rolldown-runtime-hePW80VL.js +1 -0
  1122. package/webapp/dist/assets/settings-DU-mjiwb.js +1 -0
  1123. package/webapp/dist/assets/settled-pair-C7SjZuns.js +1 -0
  1124. package/webapp/dist/assets/sign-in-Bcvjrr4C.js +1 -0
  1125. package/webapp/dist/assets/stacks-B-e8p50I.js +1 -0
  1126. package/webapp/dist/assets/sync-reading-C3PnJ7AX.js +1 -0
  1127. package/webapp/dist/assets/system-info-BtE3dgfw.js +1 -0
  1128. package/webapp/dist/assets/topology-Cwch-uF1.js +12 -0
  1129. package/webapp/dist/assets/topology-DLioOiRN.css +1 -0
  1130. package/webapp/dist/assets/traces-BbShR-4P.js +1 -0
  1131. package/webapp/dist/assets/use-stack-context-CZUgPq88.js +1 -0
  1132. package/webapp/dist/index.html +6 -6
  1133. package/dist/commands/dev.d.ts +0 -23
  1134. package/dist/commands/dev.d.ts.map +0 -1
  1135. package/dist/commands/dev.js +0 -76
  1136. package/dist/commands/dev.js.map +0 -1
  1137. package/dist/config/define-app.d.ts +0 -6
  1138. package/dist/config/define-app.d.ts.map +0 -1
  1139. package/dist/config/define-app.js +0 -38
  1140. package/dist/config/define-app.js.map +0 -1
  1141. package/dist/infrastructure/gateway-generator.d.ts +0 -63
  1142. package/dist/infrastructure/gateway-generator.d.ts.map +0 -1
  1143. package/dist/infrastructure/gateway-generator.js +0 -253
  1144. package/dist/infrastructure/gateway-generator.js.map +0 -1
  1145. package/dist/monitoring/health.service.d.ts +0 -14
  1146. package/dist/monitoring/health.service.d.ts.map +0 -1
  1147. package/dist/monitoring/health.service.js +0 -50
  1148. package/dist/monitoring/health.service.js.map +0 -1
  1149. package/dist/monitoring/metrics.service.d.ts +0 -14
  1150. package/dist/monitoring/metrics.service.d.ts.map +0 -1
  1151. package/dist/monitoring/metrics.service.js +0 -40
  1152. package/dist/monitoring/metrics.service.js.map +0 -1
  1153. package/dist/orchestrator/bootstrap-runner.d.ts +0 -15
  1154. package/dist/orchestrator/bootstrap-runner.d.ts.map +0 -1
  1155. package/dist/orchestrator/bootstrap-runner.js +0 -152
  1156. package/dist/orchestrator/bootstrap-runner.js.map +0 -1
  1157. package/dist/orchestrator/topology-proxy.d.ts +0 -65
  1158. package/dist/orchestrator/topology-proxy.d.ts.map +0 -1
  1159. package/dist/orchestrator/topology-proxy.js +0 -209
  1160. package/dist/orchestrator/topology-proxy.js.map +0 -1
  1161. package/dist/orchestrator/topology-relay.d.ts +0 -111
  1162. package/dist/orchestrator/topology-relay.d.ts.map +0 -1
  1163. package/dist/orchestrator/topology-relay.js +0 -255
  1164. package/dist/orchestrator/topology-relay.js.map +0 -1
  1165. package/dist/services/auth-middleware.d.ts +0 -47
  1166. package/dist/services/auth-middleware.d.ts.map +0 -1
  1167. package/dist/services/auth-middleware.js +0 -158
  1168. package/dist/services/auth-middleware.js.map +0 -1
  1169. package/dist/services/environment.rpc-service.d.ts +0 -22
  1170. package/dist/services/environment.rpc-service.d.ts.map +0 -1
  1171. package/dist/services/environment.rpc-service.js +0 -65
  1172. package/dist/services/environment.rpc-service.js.map +0 -1
  1173. package/dist/services/environment.service.d.ts +0 -87
  1174. package/dist/services/environment.service.d.ts.map +0 -1
  1175. package/dist/services/environment.service.js +0 -220
  1176. package/dist/services/environment.service.js.map +0 -1
  1177. package/dist/services/metrics-collector.service.d.ts +0 -103
  1178. package/dist/services/metrics-collector.service.d.ts.map +0 -1
  1179. package/dist/services/metrics-collector.service.js +0 -235
  1180. package/dist/services/metrics-collector.service.js.map +0 -1
  1181. package/dist/services/metrics.rpc-service.d.ts +0 -41
  1182. package/dist/services/metrics.rpc-service.d.ts.map +0 -1
  1183. package/dist/services/metrics.rpc-service.js +0 -90
  1184. package/dist/services/metrics.rpc-service.js.map +0 -1
  1185. package/dist/services/metrics.service.d.ts +0 -72
  1186. package/dist/services/metrics.service.d.ts.map +0 -1
  1187. package/dist/services/metrics.service.js +0 -185
  1188. package/dist/services/metrics.service.js.map +0 -1
  1189. package/dist/supervisor/omnitron-supervisor.d.ts +0 -21
  1190. package/dist/supervisor/omnitron-supervisor.d.ts.map +0 -1
  1191. package/dist/supervisor/omnitron-supervisor.js +0 -43
  1192. package/dist/supervisor/omnitron-supervisor.js.map +0 -1
  1193. package/dist/webapp/static-server.d.ts +0 -24
  1194. package/dist/webapp/static-server.d.ts.map +0 -1
  1195. package/dist/webapp/static-server.js +0 -152
  1196. package/dist/webapp/static-server.js.map +0 -1
  1197. package/webapp/dist/assets/Badge-D2ZBP5iK.js +0 -1
  1198. package/webapp/dist/assets/Card-vO88g06B.js +0 -1
  1199. package/webapp/dist/assets/CardActions-C9h7Q2wW.js +0 -1
  1200. package/webapp/dist/assets/CardContent-BA_Xmmhk.js +0 -1
  1201. package/webapp/dist/assets/CardHeader-ceIs__6x.js +0 -1
  1202. package/webapp/dist/assets/Chip-Ckk0xUhK.js +0 -1
  1203. package/webapp/dist/assets/DialogActions-BhHM7hov.js +0 -1
  1204. package/webapp/dist/assets/DialogContentText-BT2JQRmK.js +0 -1
  1205. package/webapp/dist/assets/FormControlLabel-CcQByVS8.js +0 -1
  1206. package/webapp/dist/assets/Grid-14PETRQW.js +0 -1
  1207. package/webapp/dist/assets/InputAdornment-B8aHIsQ7.js +0 -1
  1208. package/webapp/dist/assets/Skeleton-B74-Ds6O.js +0 -37
  1209. package/webapp/dist/assets/Switch-DvWD2wh4.js +0 -1
  1210. package/webapp/dist/assets/SwitchBase-CDU4nY8O.js +0 -1
  1211. package/webapp/dist/assets/Tab-DcCOYYp5.js +0 -1
  1212. package/webapp/dist/assets/TableContainer-CzTh4mu-.js +0 -1
  1213. package/webapp/dist/assets/TableRow-BySEreZR.js +0 -2
  1214. package/webapp/dist/assets/TextField-BLf-BHz2.js +0 -1
  1215. package/webapp/dist/assets/alerts-DnRbT41C.js +0 -1
  1216. package/webapp/dist/assets/apps-CdR0VH2d.js +0 -1
  1217. package/webapp/dist/assets/chunk-DtcAfS_W.js +0 -1
  1218. package/webapp/dist/assets/client-DU8I_lDc.js +0 -2
  1219. package/webapp/dist/assets/constants-BgnT-Xdy.js +0 -1
  1220. package/webapp/dist/assets/containers-Dw-rRXV1.js +0 -1
  1221. package/webapp/dist/assets/dashboard-CzgB0uZz.js +0 -1
  1222. package/webapp/dist/assets/dashboard-builder-DsA0yg33.js +0 -1
  1223. package/webapp/dist/assets/deployments-DtQAoIcQ.js +0 -1
  1224. package/webapp/dist/assets/detail-BJR-G7JG.js +0 -1
  1225. package/webapp/dist/assets/detail-nlCeSltl.js +0 -8
  1226. package/webapp/dist/assets/formatters-Do41SRmE.js +0 -1
  1227. package/webapp/dist/assets/index-ByQDwp2r.js +0 -566
  1228. package/webapp/dist/assets/index-CHVXOsTS.css +0 -1
  1229. package/webapp/dist/assets/isMuiElement-DwF2naaF.js +0 -1
  1230. package/webapp/dist/assets/logs-Kn8o4H7k.js +0 -11
  1231. package/webapp/dist/assets/metrics-DN8Zu5wT.js +0 -2
  1232. package/webapp/dist/assets/nodes-Bgch7AtN.js +0 -7
  1233. package/webapp/dist/assets/pipelines-Cry3qm-S.js +0 -4
  1234. package/webapp/dist/assets/popper-BJFSj6rc.js +0 -1
  1235. package/webapp/dist/assets/preload-helper-DSXbuxSR.js +0 -1
  1236. package/webapp/dist/assets/projects-Dym2GI1U.js +0 -1
  1237. package/webapp/dist/assets/react-apexcharts.esm-CSGK5Cxn.js +0 -958
  1238. package/webapp/dist/assets/react-apexcharts.esm-DEAWOwx5.js +0 -1003
  1239. package/webapp/dist/assets/settings-va3zTcow.js +0 -1
  1240. package/webapp/dist/assets/sign-in-ik35umbp.js +0 -1
  1241. package/webapp/dist/assets/stacks-CVFOnxbF.js +0 -1
  1242. package/webapp/dist/assets/system-info-npIXAjX2.js +0 -1
  1243. package/webapp/dist/assets/topology-CHpVij2M.css +0 -1
  1244. package/webapp/dist/assets/topology-bDe70vLs.js +0 -12
  1245. package/webapp/dist/assets/traces-DIIcT8DF.js +0 -1
  1246. package/webapp/dist/assets/use-stack-context-DHLwZv1r.js +0 -1
  1247. /package/webapp/dist/assets/{fs-CgZLtHiQ.js → fs-Ccl3sAcp.js} +0 -0
@@ -1,566 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/react-apexcharts.esm-DEAWOwx5.js","assets/chunk-DtcAfS_W.js","assets/sign-in-ik35umbp.js","assets/TextField-BLf-BHz2.js","assets/isMuiElement-DwF2naaF.js","assets/InputAdornment-B8aHIsQ7.js","assets/dashboard-CzgB0uZz.js","assets/use-stack-context-DHLwZv1r.js","assets/client-DU8I_lDc.js","assets/formatters-Do41SRmE.js","assets/Card-vO88g06B.js","assets/CardContent-BA_Xmmhk.js","assets/Chip-Ckk0xUhK.js","assets/Grid-14PETRQW.js","assets/apps-CdR0VH2d.js","assets/constants-BgnT-Xdy.js","assets/Skeleton-B74-Ds6O.js","assets/TableRow-BySEreZR.js","assets/TableContainer-CzTh4mu-.js","assets/detail-nlCeSltl.js","assets/CardHeader-ceIs__6x.js","assets/Tab-DcCOYYp5.js","assets/react-apexcharts.esm-CSGK5Cxn.js","assets/logs-Kn8o4H7k.js","assets/Badge-D2ZBP5iK.js","assets/topology-bDe70vLs.js","assets/DialogActions-BhHM7hov.js","assets/topology-CHpVij2M.css","assets/alerts-DnRbT41C.js","assets/FormControlLabel-CcQByVS8.js","assets/Switch-DvWD2wh4.js","assets/SwitchBase-CDU4nY8O.js","assets/containers-Dw-rRXV1.js","assets/deployments-DtQAoIcQ.js","assets/metrics-DN8Zu5wT.js","assets/preload-helper-DSXbuxSR.js","assets/settings-va3zTcow.js","assets/pipelines-Cry3qm-S.js","assets/traces-DIIcT8DF.js","assets/dashboard-builder-DsA0yg33.js","assets/stacks-CVFOnxbF.js","assets/CardActions-C9h7Q2wW.js","assets/DialogContentText-BT2JQRmK.js","assets/detail-BJR-G7JG.js","assets/system-info-npIXAjX2.js","assets/nodes-Bgch7AtN.js","assets/projects-Dym2GI1U.js"])))=>i.map(i=>d[i]);
2
- import{i as e,n as t,r as n,t as r}from"./chunk-DtcAfS_W.js";import{t as i}from"./preload-helper-DSXbuxSR.js";import{t as a}from"./popper-BJFSj6rc.js";import{_ as o,g as s,i as c,m as l,o as u,r as d,s as f,t as p,u as m}from"./client-DU8I_lDc.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var h=r((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var I=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},L={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.5`})),g=r(((e,t)=>{t.exports=h()})),_=r((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),v=r(((e,t)=>{t.exports=_()})),y=r((e=>{var t=g();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.5`})),b=r(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=y()})),x=r((e=>{var t=v(),n=g(),r=b();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for(`react.element`),m=Symbol.for(`react.transitional.element`),h=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),k=Symbol.for(`react.activity`),A=Symbol.for(`react.memo_cache_sentinel`),j=Symbol.iterator;function M(e){return typeof e!=`object`||!e?null:(e=j&&e[j]||e[`@@iterator`],typeof e==`function`?e:null)}var N=Symbol.for(`react.client.reference`);function P(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===N?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case x:return`Profiler`;case y:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case k:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case h:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?P(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return P(e(t))}catch{}}return null}var F=Array.isArray,I=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},te=[],ne=-1;function re(e){return{current:e}}function ie(e){0>ne||(e.current=te[ne],te[ne]=null,ne--)}function R(e,t){ne++,te[ne]=e.current,e.current=t}var ae=re(null),oe=re(null),se=re(null),ce=re(null);function le(e,t){switch(R(se,t),R(oe,e),R(ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Yd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Yd(t),e=Xd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ie(ae),R(ae,e)}function ue(){ie(ae),ie(oe),ie(se)}function z(e){e.memoizedState!==null&&R(ce,e);var t=ae.current,n=Xd(t,e.type);t!==n&&(R(oe,e),R(ae,n))}function de(e){oe.current===e&&(ie(ae),ie(oe)),ce.current===e&&(ie(ce),op._currentValue=ee)}var fe,pe;function me(e){if(fe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);fe=t&&t[1]||``,pe=-1<e.stack.indexOf(`
3
- at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4
- `+fe+e+pe}var he=!1;function ge(e,t){if(!e||he)return``;he=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
5
- `),l=s.split(`
6
- `);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
7
- `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{he=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?me(n):``}function _e(e,t){switch(e.tag){case 26:case 27:case 5:return me(e.type);case 16:return me(`Lazy`);case 13:return e.child!==t&&t!==null?me(`Suspense Fallback`):me(`Suspense`);case 19:return me(`SuspenseList`);case 0:case 15:return ge(e.type,!1);case 11:return ge(e.type.render,!1);case 1:return ge(e.type,!0);case 31:return me(`Activity`);default:return``}}function ve(e){try{var t=``,n=null;do t+=_e(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
8
- Error generating stack: `+e.message+`
9
- `+e.stack}}var ye=Object.prototype.hasOwnProperty,be=t.unstable_scheduleCallback,xe=t.unstable_cancelCallback,Se=t.unstable_shouldYield,Ce=t.unstable_requestPaint,we=t.unstable_now,Te=t.unstable_getCurrentPriorityLevel,Ee=t.unstable_ImmediatePriority,De=t.unstable_UserBlockingPriority,Oe=t.unstable_NormalPriority,ke=t.unstable_LowPriority,Ae=t.unstable_IdlePriority,je=t.log,Me=t.unstable_setDisableYieldValue,Ne=null,Pe=null;function Fe(e){if(typeof je==`function`&&Me(e),Pe&&typeof Pe.setStrictMode==`function`)try{Pe.setStrictMode(Ne,e)}catch{}}var Ie=Math.clz32?Math.clz32:ze,Le=Math.log,Re=Math.LN2;function ze(e){return e>>>=0,e===0?32:31-(Le(e)/Re|0)|0}var Be=256,Ve=262144,He=4194304;function Ue(e){var t=e&42;if(t!==0)return t;switch(e&-e){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function We(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ue(n))):i=Ue(o):i=Ue(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ue(n))):i=Ue(o)):i=Ue(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ge(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ke(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function qe(){var e=He;return He<<=1,!(He&62914560)&&(He=4194304),e}function Je(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ye(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Xe(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ie(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&Ze(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Ze(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ie(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Qe(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ie(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function $e(e,t){var n=t&-t;return n=n&42?1:et(n),(n&(e.suspendedLanes|t))===0?n:0}function et(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function tt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function nt(){var e=L.p;return e===0?(e=window.event,e===void 0?32:xp(e.type)):e}function rt(e,t){var n=L.p;try{return L.p=e,t()}finally{L.p=n}}var it=Math.random().toString(36).slice(2),at=`__reactFiber$`+it,ot=`__reactProps$`+it,st=`__reactContainer$`+it,ct=`__reactEvents$`+it,lt=`__reactListeners$`+it,ut=`__reactHandles$`+it,dt=`__reactResources$`+it,ft=`__reactMarker$`+it;function pt(e){delete e[at],delete e[ot],delete e[ct],delete e[lt],delete e[ut]}function mt(e){var t=e[at];if(t)return t;for(var n=e.parentNode;n;){if(t=n[st]||n[at]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=yf(e);e!==null;){if(n=e[at])return n;e=yf(e)}return t}e=n,n=e.parentNode}return null}function ht(e){if(e=e[at]||e[st]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function gt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function _t(e){var t=e[dt];return t||=e[dt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function vt(e){e[ft]=!0}var yt=new Set,bt={};function xt(e,t){St(e,t),St(e+`Capture`,t)}function St(e,t){for(bt[e]=t,e=0;e<t.length;e++)yt.add(t[e])}var Ct=RegExp(`^[: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]*$`),wt={},Tt={};function Et(e){return ye.call(Tt,e)?!0:ye.call(wt,e)?!1:Ct.test(e)?Tt[e]=!0:(wt[e]=!0,!1)}function Dt(e,t,n){if(Et(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function Ot(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function kt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function At(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function jt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Mt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Nt(e){if(!e._valueTracker){var t=jt(e)?`checked`:`value`;e._valueTracker=Mt(e,t,``+e[t])}}function Pt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=jt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Ft(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var It=/[\n"\\]/g;function Lt(e){return e.replace(It,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Rt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+At(t)):e.value!==``+At(t)&&(e.value=``+At(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Bt(e,o,At(n)):Bt(e,o,At(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+At(s):e.removeAttribute(`name`)}function zt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Nt(e);return}n=n==null?``:``+At(n),t=t==null?n:``+At(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Nt(e)}function Bt(e,t,n){t===`number`&&Ft(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Vt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+At(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ht(e,t,n){if(t!=null&&(t=``+At(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+At(n)}function Ut(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(F(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=At(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Nt(e)}function Wt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Gt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function Kt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Gt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function qt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Kt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Kt(e,o,t[o])}function Jt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){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 Yt=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),Xt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Zt(e){return Xt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Qt(){}var $t=null;function en(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var tn=null,nn=null;function rn(e){var t=ht(e);if(t&&(e=t.stateNode)){var n=e[ot]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Rt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Lt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[ot]||null;if(!a)throw Error(i(90));Rt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Pt(r)}break a;case`textarea`:Ht(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Vt(e,!!n.multiple,t,!1)}}}var an=!1;function on(e,t,n){if(an)return e(t,n);an=!0;try{return e(t)}finally{if(an=!1,(tn!==null||nn!==null)&&(Eu(),tn&&(t=tn,e=nn,nn=tn=null,rn(t),e)))for(t=0;t<e.length;t++)rn(e[t])}}function sn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[ot]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var cn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),ln=!1;if(cn)try{var un={};Object.defineProperty(un,`passive`,{get:function(){ln=!0}}),window.addEventListener(`test`,un,un),window.removeEventListener(`test`,un,un)}catch{ln=!1}var dn=null,fn=null,pn=null;function mn(){if(pn)return pn;var e,t=fn,n=t.length,r,i=`value`in dn?dn.value:dn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return pn=i.slice(e,1<r?1-r:void 0)}function hn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function gn(){return!0}function _n(){return!1}function vn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?gn:_n,this.isPropagationStopped=_n,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=gn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=gn)},persist:function(){},isPersistent:gn}),t}var yn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bn=vn(yn),xn=f({},yn,{view:0,detail:0}),Sn=vn(xn),Cn,wn,Tn,En=f({},xn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ln,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Tn&&(Tn&&e.type===`mousemove`?(Cn=e.screenX-Tn.screenX,wn=e.screenY-Tn.screenY):wn=Cn=0,Tn=e),Cn)},movementY:function(e){return`movementY`in e?e.movementY:wn}}),Dn=vn(En),On=vn(f({},En,{dataTransfer:0})),kn=vn(f({},xn,{relatedTarget:0})),An=vn(f({},yn,{animationName:0,elapsedTime:0,pseudoElement:0})),jn=vn(f({},yn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Mn=vn(f({},yn,{data:0})),Nn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Pn={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`},Fn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function In(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Fn[e])?!!t[e]:!1}function Ln(){return In}var Rn=vn(f({},xn,{key:function(e){if(e.key){var t=Nn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=hn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Pn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ln,charCode:function(e){return e.type===`keypress`?hn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?hn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),zn=vn(f({},En,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Bn=vn(f({},xn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ln})),Vn=vn(f({},yn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Hn=vn(f({},En,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Un=vn(f({},yn,{newState:0,oldState:0})),Wn=[9,13,27,32],Gn=cn&&`CompositionEvent`in window,Kn=null;cn&&`documentMode`in document&&(Kn=document.documentMode);var qn=cn&&`TextEvent`in window&&!Kn,Jn=cn&&(!Gn||Kn&&8<Kn&&11>=Kn),Yn=` `,Xn=!1;function Zn(e,t){switch(e){case`keyup`:return Wn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Qn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var $n=!1;function er(e,t){switch(e){case`compositionend`:return Qn(t);case`keypress`:return t.which===32?(Xn=!0,Yn):null;case`textInput`:return e=t.data,e===Yn&&Xn?null:e;default:return null}}function tr(e,t){if($n)return e===`compositionend`||!Gn&&Zn(e,t)?(e=mn(),pn=fn=dn=null,$n=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Jn&&t.locale!==`ko`?null:t.data;default:return null}}var nr={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 rr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!nr[e.type]:t===`textarea`}function ir(e,t,n,r){tn?nn?nn.push(r):nn=[r]:tn=r,t=Nd(t,`onChange`),0<t.length&&(n=new bn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var ar=null,or=null;function sr(e){Td(e,0)}function cr(e){if(Pt(gt(e)))return e}function lr(e,t){if(e===`change`)return t}var ur=!1;if(cn){var dr;if(cn){var fr=`oninput`in document;if(!fr){var pr=document.createElement(`div`);pr.setAttribute(`oninput`,`return;`),fr=typeof pr.oninput==`function`}dr=fr}else dr=!1;ur=dr&&(!document.documentMode||9<document.documentMode)}function mr(){ar&&(ar.detachEvent(`onpropertychange`,hr),or=ar=null)}function hr(e){if(e.propertyName===`value`&&cr(or)){var t=[];ir(t,or,e,en(e)),on(sr,t)}}function gr(e,t,n){e===`focusin`?(mr(),ar=t,or=n,ar.attachEvent(`onpropertychange`,hr)):e===`focusout`&&mr()}function _r(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return cr(or)}function vr(e,t){if(e===`click`)return cr(t)}function yr(e,t){if(e===`input`||e===`change`)return cr(t)}function br(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var xr=typeof Object.is==`function`?Object.is:br;function Sr(e,t){if(xr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!ye.call(t,i)||!xr(e[i],t[i]))return!1}return!0}function Cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wr(e,t){var n=Cr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Cr(n)}}function Tr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Tr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Er(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ft(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ft(e.document)}return t}function Dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Or=cn&&`documentMode`in document&&11>=document.documentMode,kr=null,Ar=null,jr=null,Mr=!1;function Nr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mr||kr==null||kr!==Ft(r)||(r=kr,`selectionStart`in r&&Dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),jr&&Sr(jr,r)||(jr=r,r=Nd(Ar,`onSelect`),0<r.length&&(t=new bn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=kr)))}function Pr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Fr={animationend:Pr(`Animation`,`AnimationEnd`),animationiteration:Pr(`Animation`,`AnimationIteration`),animationstart:Pr(`Animation`,`AnimationStart`),transitionrun:Pr(`Transition`,`TransitionRun`),transitionstart:Pr(`Transition`,`TransitionStart`),transitioncancel:Pr(`Transition`,`TransitionCancel`),transitionend:Pr(`Transition`,`TransitionEnd`)},Ir={},Lr={};cn&&(Lr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Fr.animationend.animation,delete Fr.animationiteration.animation,delete Fr.animationstart.animation),`TransitionEvent`in window||delete Fr.transitionend.transition);function Rr(e){if(Ir[e])return Ir[e];if(!Fr[e])return e;var t=Fr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Lr)return Ir[e]=t[n];return e}var zr=Rr(`animationend`),Br=Rr(`animationiteration`),Vr=Rr(`animationstart`),Hr=Rr(`transitionrun`),Ur=Rr(`transitionstart`),Wr=Rr(`transitioncancel`),Gr=Rr(`transitionend`),Kr=new Map,qr=`abort auxClick beforeToggle 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(` `);qr.push(`scrollEnd`);function Jr(e,t){Kr.set(e,t),xt(t,[e])}var Yr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Xr=[],Zr=0,Qr=0;function $r(){for(var e=Zr,t=Qr=Zr=0;t<e;){var n=Xr[t];Xr[t++]=null;var r=Xr[t];Xr[t++]=null;var i=Xr[t];Xr[t++]=null;var a=Xr[t];if(Xr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ri(n,i,a)}}function ei(e,t,n,r){Xr[Zr++]=e,Xr[Zr++]=t,Xr[Zr++]=n,Xr[Zr++]=r,Qr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ti(e,t,n,r){return ei(e,t,n,r),ii(e)}function ni(e,t){return ei(e,null,null,t),ii(e)}function ri(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ie(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ii(e){if(50<_u)throw _u=0,vu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ai={};function oi(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function si(e,t,n,r){return new oi(e,t,n,r)}function ci(e){return e=e.prototype,!(!e||!e.isReactComponent)}function li(e,t){var n=e.alternate;return n===null?(n=si(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ui(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function di(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)ci(e)&&(s=1);else if(typeof e==`string`)s=Zf(e,n,ae.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case k:return e=si(31,n,t,a),e.elementType=k,e.lanes=o,e;case _:return fi(n.children,a,o,t);case y:s=8,a|=24;break;case x:return e=si(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case T:return e=si(13,n,t,a),e.elementType=T,e.lanes=o,e;case E:return e=si(19,n,t,a),e.elementType=E,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case D:s=14;break a;case O:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=si(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function fi(e,t,n,r){return e=si(7,e,r,t),e.lanes=n,e}function pi(e,t,n){return e=si(6,e,null,t),e.lanes=n,e}function mi(e){var t=si(18,null,null,0);return t.stateNode=e,t}function hi(e,t,n){return t=si(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var gi=new WeakMap;function _i(e,t){if(typeof e==`object`&&e){var n=gi.get(e);return n===void 0?(t={value:e,source:t,stack:ve(t)},gi.set(e,t),t):n}return{value:e,source:t,stack:ve(t)}}var vi=[],yi=0,bi=null,xi=0,Si=[],Ci=0,wi=null,Ti=1,Ei=``;function Di(e,t){vi[yi++]=xi,vi[yi++]=bi,bi=e,xi=t}function Oi(e,t,n){Si[Ci++]=Ti,Si[Ci++]=Ei,Si[Ci++]=wi,wi=e;var r=Ti;e=Ei;var i=32-Ie(r)-1;r&=~(1<<i),n+=1;var a=32-Ie(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ti=1<<32-Ie(t)+i|n<<i|r,Ei=a+e}else Ti=1<<a|n<<i|r,Ei=e}function ki(e){e.return!==null&&(Di(e,1),Oi(e,1,0))}function Ai(e){for(;e===bi;)bi=vi[--yi],vi[yi]=null,xi=vi[--yi],vi[yi]=null;for(;e===wi;)wi=Si[--Ci],Si[Ci]=null,Ei=Si[--Ci],Si[Ci]=null,Ti=Si[--Ci],Si[Ci]=null}function ji(e,t){Si[Ci++]=Ti,Si[Ci++]=Ei,Si[Ci++]=wi,Ti=t.id,Ei=t.overflow,wi=e}var Mi=null,Ni=null,Pi=!1,Fi=null,Ii=!1,Li=Error(i(519));function Ri(e){throw Wi(_i(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Li}function zi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[at]=e,t[ot]=r,n){case`dialog`:Ed(`cancel`,t),Ed(`close`,t);break;case`iframe`:case`object`:case`embed`:Ed(`load`,t);break;case`video`:case`audio`:for(n=0;n<Cd.length;n++)Ed(Cd[n],t);break;case`source`:Ed(`error`,t);break;case`img`:case`image`:case`link`:Ed(`error`,t),Ed(`load`,t);break;case`details`:Ed(`toggle`,t);break;case`input`:Ed(`invalid`,t),zt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Ed(`invalid`,t);break;case`textarea`:Ed(`invalid`,t),Ut(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||zd(t.textContent,n)?(r.popover!=null&&(Ed(`beforetoggle`,t),Ed(`toggle`,t)),r.onScroll!=null&&Ed(`scroll`,t),r.onScrollEnd!=null&&Ed(`scrollend`,t),r.onClick!=null&&(t.onclick=Qt),t=!0):t=!1,t||Ri(e,!0)}function Bi(e){for(Mi=e.return;Mi;)switch(Mi.tag){case 5:case 31:case 13:Ii=!1;return;case 27:case 3:Ii=!0;return;default:Mi=Mi.return}}function Vi(e){if(e!==Mi)return!1;if(!Pi)return Bi(e),Pi=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Zd(e.type,e.memoizedProps)),n=!n),n&&Ni&&Ri(e),Bi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ni=vf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ni=vf(e)}else t===27?(t=Ni,of(e.type)?(e=_f,_f=null,Ni=e):Ni=t):Ni=Mi?gf(e.stateNode.nextSibling):null;return!0}function Hi(){Ni=Mi=null,Pi=!1}function Ui(){var e=Fi;return e!==null&&(iu===null?iu=e:iu.push.apply(iu,e),Fi=null),e}function Wi(e){Fi===null?Fi=[e]:Fi.push(e)}var Gi=re(null),Ki=null,qi=null;function Ji(e,t,n){R(Gi,t._currentValue),t._currentValue=n}function Yi(e){e._currentValue=Gi.current,ie(Gi)}function Xi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Zi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Xi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Xi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Qi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;xr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===ce.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[op]:e.push(op))}a=a.return}e!==null&&Zi(t,e,n,r),t.flags|=262144}function $i(e){for(e=e.firstContext;e!==null;){if(!xr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ea(e){Ki=e,qi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ta(e){return ra(Ki,e)}function na(e,t){return Ki===null&&ea(e),ra(e,t)}function ra(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},qi===null){if(e===null)throw Error(i(308));qi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else qi=qi.next=t;return n}var ia=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},aa=t.unstable_scheduleCallback,oa=t.unstable_NormalPriority,sa={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ca(){return{controller:new ia,data:new Map,refCount:0}}function la(e){e.refCount--,e.refCount===0&&aa(oa,function(){e.controller.abort()})}var ua=null,da=0,fa=0,pa=null;function ma(e,t){if(ua===null){var n=ua=[];da=0,fa=_d(),pa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return da++,t.then(B,B),t}function B(){if(--da===0&&ua!==null){pa!==null&&(pa.status=`fulfilled`);var e=ua;ua=null,fa=0,pa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ha(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var ga=I.S;I.S=function(e,t){ou=we(),typeof t==`object`&&t&&typeof t.then==`function`&&ma(e,t),ga!==null&&ga(e,t)};var _a=re(null);function va(){var e=_a.current;return e===null?Hl.pooledCache:e}function ya(e,t){t===null?R(_a,_a.current):R(_a,t.pool)}function ba(){var e=va();return e===null?null:{parent:sa._currentValue,pool:e}}var xa=Error(i(460)),Sa=Error(i(474)),Ca=Error(i(542)),wa={then:function(){}};function Ta(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ea(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Qt,Qt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Aa(e),e;default:if(typeof t.status==`string`)t.then(Qt,Qt);else{if(e=Hl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Aa(e),e}throw Oa=t,xa}}function Da(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Oa=e,xa):e}}var Oa=null;function ka(){if(Oa===null)throw Error(i(459));var e=Oa;return Oa=null,e}function Aa(e){if(e===xa||e===Ca)throw Error(i(483))}var ja=null,Ma=0;function Na(e){var t=Ma;return Ma+=1,ja===null&&(ja=[]),Ea(ja,e,t)}function Pa(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Fa(e,t){throw t.$$typeof===p?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Ia(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=li(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=pi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===_?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===O&&Da(i)===t.type)?(t=a(t,n.props),Pa(t,n),t.return=e,t):(t=di(n.type,n.key,n.props,null,e.mode,r),Pa(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=hi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=fi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=pi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case m:return n=di(t.type,t.key,t.props,null,e.mode,n),Pa(n,t),n.return=e,n;case h:return t=hi(t,e.mode,n),t.return=e,t;case O:return t=Da(t),f(e,t,n)}if(F(t)||M(t))return t=fi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Na(t),n);if(t.$$typeof===C)return f(e,na(e,t),n);Fa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case m:return n.key===i?l(e,t,n,r):null;case h:return n.key===i?u(e,t,n,r):null;case O:return n=Da(n),p(e,t,n,r)}if(F(n)||M(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Na(n),r);if(n.$$typeof===C)return p(e,t,na(e,n),r);Fa(e,n)}return null}function g(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case m:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case h:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:return r=Da(r),g(e,t,n,r,i)}if(F(r)||M(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return g(e,t,n,Na(r),i);if(r.$$typeof===C)return g(e,t,n,na(t,r),i);Fa(t,r)}return null}function v(i,a,s,c){for(var l=null,u=null,d=a,m=a=0,h=null;d!==null&&m<s.length;m++){d.index>m?(h=d,d=null):h=d.sibling;var _=p(i,d,s[m],c);if(_===null){d===null&&(d=h);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,m),u===null?l=_:u.sibling=_,u=_,d=h}if(m===s.length)return n(i,d),Pi&&Di(i,m),l;if(d===null){for(;m<s.length;m++)d=f(i,s[m],c),d!==null&&(a=o(d,a,m),u===null?l=d:u.sibling=d,u=d);return Pi&&Di(i,m),l}for(d=r(d);m<s.length;m++)h=g(d,i,m,s[m],c),h!==null&&(e&&h.alternate!==null&&d.delete(h.key===null?m:h.key),a=o(h,a,m),u===null?l=h:u.sibling=h,u=h);return e&&d.forEach(function(e){return t(i,e)}),Pi&&Di(i,m),l}function y(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,m=s,h=s=0,_=null,v=c.next();m!==null&&!v.done;h++,v=c.next()){m.index>h?(_=m,m=null):_=m.sibling;var y=p(a,m,v.value,l);if(y===null){m===null&&(m=_);break}e&&m&&y.alternate===null&&t(a,m),s=o(y,s,h),d===null?u=y:d.sibling=y,d=y,m=_}if(v.done)return n(a,m),Pi&&Di(a,h),u;if(m===null){for(;!v.done;h++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return Pi&&Di(a,h),u}for(m=r(m);!v.done;h++,v=c.next())v=g(m,a,h,v.value,l),v!==null&&(e&&v.alternate!==null&&m.delete(v.key===null?h:v.key),s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(a,e)}),Pi&&Di(a,h),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===_&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case m:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===_){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&Da(l)===r.type){n(e,r.sibling),c=a(r,o.props),Pa(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===_?(c=fi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=di(o.type,o.key,o.props,null,e.mode,c),Pa(c,o),c.return=e,e=c)}return s(e);case h:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=hi(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=Da(o),b(e,r,o,c)}if(F(o))return v(e,r,o,c);if(M(o)){if(l=M(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Na(o),c);if(o.$$typeof===C)return b(e,r,na(e,o),c);Fa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=pi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ma=0;var i=b(e,t,n,r);return ja=null,i}catch(t){if(t===xa||t===Ca)throw t;var a=si(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var La=Ia(!0),Ra=Ia(!1),za=!1;function Ba(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Va(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ha(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ua(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Vl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ii(e),ri(e,null,n),t}return ei(e,r,t,n),ii(e)}function Wa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qe(e,n)}}function Ga(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ka=!1;function qa(){if(Ka){var e=pa;if(e!==null)throw e}}function Ja(e,t,n,r){Ka=!1;var i=e.updateQueue;za=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(Wl&p)===p:(r&p)===p){p!==0&&p===fa&&(Ka=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:za=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Ql|=o,e.lanes=o,e.memoizedState=d}}function Ya(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Xa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ya(n[e],t)}var Za=re(null),Qa=re(0);function $a(e,t){e=Xl,R(Qa,e),R(Za,t),Xl=e|t.baseLanes}function eo(){R(Qa,Xl),R(Za,Za.current)}function to(){Xl=Qa.current,ie(Za),ie(Qa)}var no=re(null),ro=null;function io(e){var t=e.alternate;R(lo,lo.current&1),R(no,e),ro===null&&(t===null||Za.current!==null||t.memoizedState!==null)&&(ro=e)}function ao(e){R(lo,lo.current),R(no,e),ro===null&&(ro=e)}function oo(e){e.tag===22?(R(lo,lo.current),R(no,e),ro===null&&(ro=e)):so(e)}function so(){R(lo,lo.current),R(no,no.current)}function co(e){ie(no),ro===e&&(ro=null),ie(lo)}var lo=re(0);function uo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||pf(n)||mf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fo=0,po=null,mo=null,ho=null,go=!1,_o=!1,vo=!1,yo=0,bo=0,xo=null,So=0;function Co(){throw Error(i(321))}function wo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!xr(e[n],t[n]))return!1;return!0}function To(e,t,n,r,i,a){return fo=a,po=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=e===null||e.memoizedState===null?Bs:Vs,vo=!1,a=n(r,i),vo=!1,_o&&(a=Do(t,n,r,i)),Eo(e),a}function Eo(e){I.H=zs;var t=mo!==null&&mo.next!==null;if(fo=0,ho=mo=po=null,go=!1,bo=0,xo=null,t)throw Error(i(300));e===null||rc||(e=e.dependencies,e!==null&&$i(e)&&(rc=!0))}function Do(e,t,n,r){po=e;var a=0;do{if(_o&&(xo=null),bo=0,_o=!1,25<=a)throw Error(i(301));if(a+=1,ho=mo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}I.H=Hs,o=t(n,r)}while(_o);return o}function Oo(){var e=I.H,t=e.useState()[0];return t=typeof t.then==`function`?Fo(t):t,e=e.useState()[0],(mo===null?null:mo.memoizedState)!==e&&(po.flags|=1024),t}function ko(){var e=yo!==0;return yo=0,e}function Ao(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function jo(e){if(go){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}go=!1}fo=0,ho=mo=po=null,_o=!1,bo=yo=0,xo=null}function Mo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ho===null?po.memoizedState=ho=e:ho=ho.next=e,ho}function No(){if(mo===null){var e=po.alternate;e=e===null?null:e.memoizedState}else e=mo.next;var t=ho===null?po.memoizedState:ho.next;if(t!==null)ho=t,mo=e;else{if(e===null)throw po.alternate===null?Error(i(467)):Error(i(310));mo=e,e={memoizedState:mo.memoizedState,baseState:mo.baseState,baseQueue:mo.baseQueue,queue:mo.queue,next:null},ho===null?po.memoizedState=ho=e:ho=ho.next=e}return ho}function Po(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Fo(e){var t=bo;return bo+=1,xo===null&&(xo=[]),e=Ea(xo,e,t),t=po,(ho===null?t.memoizedState:ho.next)===null&&(t=t.alternate,I.H=t===null||t.memoizedState===null?Bs:Vs),e}function Io(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Fo(e);if(e.$$typeof===C)return ta(e)}throw Error(i(438,String(e)))}function Lo(e){var t=null,n=po.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=po.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Po(),po.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=A;return t.index++,n}function Ro(e,t){return typeof t==`function`?t(e):t}function zo(e){return Bo(No(),mo,e)}function Bo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(fo&f)===f:(Wl&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===fa&&(d=!0);else if((fo&p)===p){u=u.next,p===fa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,po.lanes|=p,Ql|=p;f=u.action,vo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,po.lanes|=f,Ql|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!xr(o,e.memoizedState)&&(rc=!0,d&&(n=pa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Vo(e){var t=No(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);xr(o,t.memoizedState)||(rc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ho(e,t,n){var r=po,a=No(),o=Pi;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!xr((mo||a).memoizedState,n);if(s&&(a.memoizedState=n,rc=!0),a=a.queue,ms(Go.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||ho!==null&&ho.memoizedState.tag&1){if(r.flags|=2048,ls(9,{destroy:void 0},Wo.bind(null,r,a,n,t),null),Hl===null)throw Error(i(349));o||fo&127||Uo(r,t,n)}return n}function Uo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=po.updateQueue,t===null?(t=Po(),po.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Wo(e,t,n,r){t.value=n,t.getSnapshot=r,Ko(t)&&qo(e)}function Go(e,t,n){return n(function(){Ko(t)&&qo(e)})}function Ko(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!xr(e,n)}catch{return!0}}function qo(e){var t=ni(e,2);t!==null&&xu(t,e,2)}function Jo(e){var t=Mo();if(typeof e==`function`){var n=e;if(e=n(),vo){Fe(!0);try{n()}finally{Fe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:e},t}function Yo(e,t,n,r){return e.baseState=n,Bo(e,mo,typeof r==`function`?r:Ro)}function Xo(e,t,n,r,a){if(Is(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};I.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Zo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Zo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=I.T,o={};I.T=o;try{var s=n(i,r),c=I.S;c!==null&&c(o,s),Qo(e,t,s)}catch(n){es(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),I.T=a}}else try{a=n(i,r),Qo(e,t,a)}catch(n){es(e,t,n)}}function Qo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){$o(e,t,n)},function(n){return es(e,t,n)}):$o(e,t,n)}function $o(e,t,n){t.status=`fulfilled`,t.value=n,ts(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Zo(e,n)))}function es(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,ts(t),t=t.next;while(t!==r)}e.action=null}function ts(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ns(e,t){return t}function rs(e,t){if(Pi){var n=Hl.formState;if(n!==null){a:{var r=po;if(Pi){if(Ni){b:{for(var i=Ni,a=Ii;i.nodeType!==8;){if(!a){i=null;break b}if(i=gf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ni=gf(i.nextSibling),r=i.data===`F!`;break a}}Ri(r)}r=!1}r&&(t=n[0])}}return n=Mo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ns,lastRenderedState:t},n.queue=r,n=Ns.bind(null,po,r),r.dispatch=n,r=Jo(!1),a=Fs.bind(null,po,!1,r.queue),r=Mo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Xo.bind(null,po,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function is(e){return as(No(),mo,e)}function as(e,t,n){if(t=Bo(e,t,ns)[0],e=zo(Ro)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Fo(t)}catch(e){throw e===xa?Ca:e}else r=t;t=No();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(po.flags|=2048,ls(9,{destroy:void 0},ss.bind(null,i,n),null)),[r,a,e]}function ss(e,t){e.action=t}function cs(e){var t=No(),n=mo;if(n!==null)return as(t,n,e);No(),t=t.memoizedState,n=No();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function ls(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=po.updateQueue,t===null&&(t=Po(),po.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function us(){return No().memoizedState}function ds(e,t,n,r){var i=Mo();po.flags|=e,i.memoizedState=ls(1|t,{destroy:void 0},n,r===void 0?null:r)}function fs(e,t,n,r){var i=No();r=r===void 0?null:r;var a=i.memoizedState.inst;mo!==null&&r!==null&&wo(r,mo.memoizedState.deps)?i.memoizedState=ls(t,a,n,r):(po.flags|=e,i.memoizedState=ls(1|t,a,n,r))}function ps(e,t){ds(8390656,8,e,t)}function ms(e,t){fs(2048,8,e,t)}function hs(e){po.flags|=4;var t=po.updateQueue;if(t===null)t=Po(),po.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function gs(e){var t=No().memoizedState;return hs({ref:t,nextImpl:e}),function(){if(Vl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function _s(e,t){return fs(4,2,e,t)}function V(e,t){return fs(4,4,e,t)}function vs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ys(e,t,n){n=n==null?null:n.concat([e]),fs(4,4,vs.bind(null,t,e),n)}function H(){}function U(e,t){var n=No();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&wo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function bs(e,t){var n=No();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&wo(t,r[1]))return r[0];if(r=e(),vo){Fe(!0);try{e()}finally{Fe(!1)}}return n.memoizedState=[r,t],r}function xs(e,t,n){return n===void 0||fo&1073741824&&!(Wl&261930)?e.memoizedState=t:(e.memoizedState=n,e=bu(),po.lanes|=e,Ql|=e,n)}function Ss(e,t,n,r){return xr(n,t)?n:Za.current===null?!(fo&42)||fo&1073741824&&!(Wl&261930)?(rc=!0,e.memoizedState=n):(e=bu(),po.lanes|=e,Ql|=e,t):(e=xs(e,n,r),xr(e,t)||(rc=!0),e)}function Cs(e,t,n,r,i){var a=L.p;L.p=a!==0&&8>a?a:8;var o=I.T,s={};I.T=s,Fs(e,!1,t,n);try{var c=i(),l=I.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ps(e,t,ha(c,r),yu(e)):Ps(e,t,r,yu(e))}catch(n){Ps(e,t,{then:function(){},status:`rejected`,reason:n},yu())}finally{L.p=a,o!==null&&s.types!==null&&(o.types=s.types),I.T=o}}function ws(){}function Ts(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Es(e).queue;Cs(e,a,t,ee,n===null?ws:function(){return Ds(e),n(r)})}function Es(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:ee},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ds(e){var t=Es(e);t.next===null&&(t=e.alternate.memoizedState),Ps(e,t.next.queue,{},yu())}function Os(){return ta(op)}function ks(){return No().memoizedState}function As(){return No().memoizedState}function js(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=yu();e=Ha(n);var r=Ua(t,e,n);r!==null&&(xu(r,t,n),Wa(r,t,n)),t={cache:ca()},e.payload=t;return}t=t.return}}function Ms(e,t,n){var r=yu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Is(e)?Ls(t,n):(n=ti(e,t,n,r),n!==null&&(xu(n,e,r),Rs(n,t,r)))}function Ns(e,t,n){Ps(e,t,n,yu())}function Ps(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Is(e))Ls(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,xr(s,o))return ei(e,t,i,0),Hl===null&&$r(),!1}catch{}if(n=ti(e,t,i,r),n!==null)return xu(n,e,r),Rs(n,t,r),!0}return!1}function Fs(e,t,n,r){if(r={lane:2,revertLane:_d(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Is(e)){if(t)throw Error(i(479))}else t=ti(e,n,r,2),t!==null&&xu(t,e,2)}function Is(e){var t=e.alternate;return e===po||t!==null&&t===po}function Ls(e,t){_o=go=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qe(e,n)}}var zs={readContext:ta,use:Io,useCallback:Co,useContext:Co,useEffect:Co,useImperativeHandle:Co,useLayoutEffect:Co,useInsertionEffect:Co,useMemo:Co,useReducer:Co,useRef:Co,useState:Co,useDebugValue:Co,useDeferredValue:Co,useTransition:Co,useSyncExternalStore:Co,useId:Co,useHostTransitionStatus:Co,useFormState:Co,useActionState:Co,useOptimistic:Co,useMemoCache:Co,useCacheRefresh:Co};zs.useEffectEvent=Co;var Bs={readContext:ta,use:Io,useCallback:function(e,t){return Mo().memoizedState=[e,t===void 0?null:t],e},useContext:ta,useEffect:ps,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ds(4194308,4,vs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ds(4194308,4,e,t)},useInsertionEffect:function(e,t){ds(4,2,e,t)},useMemo:function(e,t){var n=Mo();t=t===void 0?null:t;var r=e();if(vo){Fe(!0);try{e()}finally{Fe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Mo();if(n!==void 0){var i=n(t);if(vo){Fe(!0);try{n(t)}finally{Fe(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ms.bind(null,po,e),[r.memoizedState,e]},useRef:function(e){var t=Mo();return e={current:e},t.memoizedState=e},useState:function(e){e=Jo(e);var t=e.queue,n=Ns.bind(null,po,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:H,useDeferredValue:function(e,t){return xs(Mo(),e,t)},useTransition:function(){var e=Jo(!1);return e=Cs.bind(null,po,e.queue,!0,!1),Mo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=po,a=Mo();if(Pi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Hl===null)throw Error(i(349));Wl&127||Uo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ps(Go.bind(null,r,o,e),[e]),r.flags|=2048,ls(9,{destroy:void 0},Wo.bind(null,r,o,n,t),null),n},useId:function(){var e=Mo(),t=Hl.identifierPrefix;if(Pi){var n=Ei,r=Ti;n=(r&~(1<<32-Ie(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=yo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=So++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Os,useFormState:rs,useActionState:rs,useOptimistic:function(e){var t=Mo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Fs.bind(null,po,!0,n),n.dispatch=t,[e,t]},useMemoCache:Lo,useCacheRefresh:function(){return Mo().memoizedState=js.bind(null,po)},useEffectEvent:function(e){var t=Mo(),n={impl:e};return t.memoizedState=n,function(){if(Vl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Vs={readContext:ta,use:Io,useCallback:U,useContext:ta,useEffect:ms,useImperativeHandle:ys,useInsertionEffect:_s,useLayoutEffect:V,useMemo:bs,useReducer:zo,useRef:us,useState:function(){return zo(Ro)},useDebugValue:H,useDeferredValue:function(e,t){return Ss(No(),mo.memoizedState,e,t)},useTransition:function(){var e=zo(Ro)[0],t=No().memoizedState;return[typeof e==`boolean`?e:Fo(e),t]},useSyncExternalStore:Ho,useId:ks,useHostTransitionStatus:Os,useFormState:is,useActionState:is,useOptimistic:function(e,t){return Yo(No(),mo,e,t)},useMemoCache:Lo,useCacheRefresh:As};Vs.useEffectEvent=gs;var Hs={readContext:ta,use:Io,useCallback:U,useContext:ta,useEffect:ms,useImperativeHandle:ys,useInsertionEffect:_s,useLayoutEffect:V,useMemo:bs,useReducer:Vo,useRef:us,useState:function(){return Vo(Ro)},useDebugValue:H,useDeferredValue:function(e,t){var n=No();return mo===null?xs(n,e,t):Ss(n,mo.memoizedState,e,t)},useTransition:function(){var e=Vo(Ro)[0],t=No().memoizedState;return[typeof e==`boolean`?e:Fo(e),t]},useSyncExternalStore:Ho,useId:ks,useHostTransitionStatus:Os,useFormState:cs,useActionState:cs,useOptimistic:function(e,t){var n=No();return mo===null?(n.baseState=e,[e,n.queue.dispatch]):Yo(n,mo,e,t)},useMemoCache:Lo,useCacheRefresh:As};Hs.useEffectEvent=gs;function Us(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:f({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ws={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=yu(),i=Ha(r);i.payload=t,n!=null&&(i.callback=n),t=Ua(e,i,r),t!==null&&(xu(t,e,r),Wa(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=yu(),i=Ha(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ua(e,i,r),t!==null&&(xu(t,e,r),Wa(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=yu(),r=Ha(n);r.tag=2,t!=null&&(r.callback=t),t=Ua(e,r,n),t!==null&&(xu(t,e,n),Wa(t,e,n))}};function Gs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Sr(n,r)||!Sr(i,a):!0}function Ks(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ws.enqueueReplaceState(t,t.state,null)}function qs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=f({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Js(e){Yr(e)}function Ys(e){console.error(e)}function W(e){Yr(e)}function Xs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Zs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Qs(e,t,n){return n=Ha(n),n.tag=3,n.payload={element:null},n.callback=function(){Xs(e,t)},n}function $s(e){return e=Ha(e),e.tag=3,e}function ec(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Zs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Zs(t,n,r),typeof i!=`function`&&(lu===null?lu=new Set([this]):lu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function tc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Qi(t,n,a,!0),n=no.current,n!==null){switch(n.tag){case 31:case 13:return ro===null?Mu():n.alternate===null&&Zl===0&&(Zl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===wa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Zu(e,r,a)),!1;case 22:return n.flags|=65536,r===wa?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Zu(e,r,a)),!1}throw Error(i(435,n.tag))}return Zu(e,r,a),Mu(),!1}if(Pi)return t=no.current,t===null?(r!==Li&&(t=Error(i(423),{cause:r}),Wi(_i(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=_i(r,n),a=Qs(e.stateNode,r,a),Ga(e,a),Zl!==4&&(Zl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Li&&(e=Error(i(422),{cause:r}),Wi(_i(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=_i(o,n),ru===null?ru=[o]:ru.push(o),Zl!==4&&(Zl=2),t===null)return!0;r=_i(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Qs(n.stateNode,r,e),Ga(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(lu===null||!lu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=$s(a),ec(a,e,n,r),Ga(n,a),!1}n=n.return}while(n!==null);return!1}var nc=Error(i(461)),rc=!1;function ic(e,t,n,r){t.child=e===null?Ra(t,null,n,r):La(t,e.child,n,r)}function ac(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return ea(t),r=To(e,t,n,o,a,i),s=ko(),e!==null&&!rc?(Ao(e,t,i),kc(e,t,i)):(Pi&&s&&ki(t),t.flags|=1,ic(e,t,r,i),t.child)}function oc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ci(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,sc(e,t,a,r,i)):(e=di(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Ac(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Sr:n,n(o,r)&&e.ref===t.ref)return kc(e,t,i)}return t.flags|=1,e=li(a,r),e.ref=t.ref,e.return=t,t.child=e}function sc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Sr(a,r)&&e.ref===t.ref)if(rc=!1,t.pendingProps=r=a,Ac(e,i))e.flags&131072&&(rc=!0);else return t.lanes=e.lanes,kc(e,t,i)}return hc(e,t,n,r,i)}function cc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return uc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ya(t,a===null?null:a.cachePool),a===null?eo():$a(t,a),oo(t);else return r=t.lanes=536870912,uc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ya(t,null),eo(),so(t)):(ya(t,a.cachePool),$a(t,a),so(t),t.memoizedState=null);return ic(e,t,i,n),t.child}function lc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function uc(e,t,n,r,i){var a=va();return a=a===null?null:{parent:sa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ya(t,null),eo(),oo(t),e!==null&&Qi(e,t,r,!0),t.childLanes=i,null}function dc(e,t){return t=wc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function fc(e,t,n){return La(t,e.child,null,n),e=dc(t,t.pendingProps),e.flags|=2,co(t),t.memoizedState=null,e}function pc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(Pi){if(r.mode===`hidden`)return e=dc(t,r),t.lanes=536870912,lc(null,e);if(ao(t),(e=Ni)?(e=ff(e,Ii),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:wi===null?null:{id:Ti,overflow:Ei},retryLane:536870912,hydrationErrors:null},n=mi(e),n.return=t,t.child=n,Mi=t,Ni=null)):e=null,e===null)throw Ri(t);return t.lanes=536870912,null}return dc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(ao(t),a)if(t.flags&256)t.flags&=-257,t=fc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(rc||Qi(e,t,n,!1),a=(n&e.childLanes)!==0,rc||a){if(r=Hl,r!==null&&(s=$e(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ni(e,s),xu(r,e,s),nc;Mu(),t=fc(e,t,n)}else e=o.treeContext,Ni=gf(s.nextSibling),Mi=t,Pi=!0,Fi=null,Ii=!1,e!==null&&ji(t,e),t=dc(t,r),t.flags|=4096;return t}return e=li(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function mc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function hc(e,t,n,r,i){return ea(t),n=To(e,t,n,r,void 0,i),r=ko(),e!==null&&!rc?(Ao(e,t,i),kc(e,t,i)):(Pi&&r&&ki(t),t.flags|=1,ic(e,t,n,i),t.child)}function gc(e,t,n,r,i,a){return ea(t),t.updateQueue=null,n=Do(t,r,n,i),Eo(e),r=ko(),e!==null&&!rc?(Ao(e,t,a),kc(e,t,a)):(Pi&&r&&ki(t),t.flags|=1,ic(e,t,n,a),t.child)}function _c(e,t,n,r,i){if(ea(t),t.stateNode===null){var a=ai,o=n.contextType;typeof o==`object`&&o&&(a=ta(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ws,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ba(t),o=n.contextType,a.context=typeof o==`object`&&o?ta(o):ai,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Us(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Ws.enqueueReplaceState(a,a.state,null),Ja(t,r,a,i),qa(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=qs(n,s);a.props=c;var l=a.context,u=n.contextType;o=ai,typeof u==`object`&&u&&(o=ta(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Ks(t,a,r,o),za=!1;var f=t.memoizedState;a.state=f,Ja(t,r,a,i),qa(),l=t.memoizedState,s||f!==l||za?(typeof d==`function`&&(Us(t,n,d,r),l=t.memoizedState),(c=za||Gs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Va(e,t),o=t.memoizedProps,u=qs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ai,typeof l==`object`&&l&&(c=ta(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Ks(t,a,r,c),za=!1,f=t.memoizedState,a.state=f,Ja(t,r,a,i),qa();var p=t.memoizedState;o!==d||f!==p||za||e!==null&&e.dependencies!==null&&$i(e.dependencies)?(typeof s==`function`&&(Us(t,n,s,r),p=t.memoizedState),(u=za||Gs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&$i(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,mc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=La(t,e.child,null,i),t.child=La(t,null,n,i)):ic(e,t,n,i),t.memoizedState=a.state,e=t.child):e=kc(e,t,i),e}function vc(e,t,n,r){return Hi(),t.flags|=256,ic(e,t,n,r),t.child}var yc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function bc(e){return{baseLanes:e,cachePool:ba()}}function xc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=tu),e}function Sc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(lo.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(Pi){if(a?io(t):so(t),(e=Ni)?(e=ff(e,Ii),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:wi===null?null:{id:Ti,overflow:Ei},retryLane:536870912,hydrationErrors:null},n=mi(e),n.return=t,t.child=n,Mi=t,Ni=null)):e=null,e===null)throw Ri(t);return mf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(so(t),a=t.mode,c=wc({mode:`hidden`,children:c},a),r=fi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=bc(n),r.childLanes=xc(e,s,n),t.memoizedState=yc,lc(null,r)):(io(t),Cc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(io(t),t.flags&=-257,t=Tc(e,t,n)):t.memoizedState===null?(so(t),c=r.fallback,a=t.mode,r=wc({mode:`visible`,children:r.children},a),c=fi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,La(t,e.child,null,n),r=t.child,r.memoizedState=bc(n),r.childLanes=xc(e,s,n),t.memoizedState=yc,t=lc(null,r)):(so(t),t.child=e.child,t.flags|=128,t=null);else if(io(t),mf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Wi({value:r,source:null,stack:null}),t=Tc(e,t,n)}else if(rc||Qi(e,t,n,!1),s=(n&e.childLanes)!==0,rc||s){if(s=Hl,s!==null&&(r=$e(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ni(e,r),xu(s,e,r),nc;pf(c)||Mu(),t=Tc(e,t,n)}else pf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Ni=gf(c.nextSibling),Mi=t,Pi=!0,Fi=null,Ii=!1,e!==null&&ji(t,e),t=Cc(t,r.children),t.flags|=4096);return t}return a?(so(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=li(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=fi(c,a,n,null),c.flags|=2):c=li(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,lc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=bc(n):(a=c.cachePool,a===null?a=ba():(l=sa._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=xc(e,s,n),t.memoizedState=yc,lc(e.child,r)):(io(t),n=e.child,e=n.sibling,n=li(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Cc(e,t){return t=wc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function wc(e,t){return e=si(22,e,null,t),e.lanes=0,e}function Tc(e,t,n){return La(t,e.child,null,n),e=Cc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ec(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Xi(e.return,t,n)}function Dc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Oc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=lo.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,R(lo,o),ic(e,t,r,n),r=Pi?xi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ec(e,n,t);else if(e.tag===19)Ec(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&uo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Dc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&uo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Dc(t,!0,n,null,a,r);break;case`together`:Dc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function kc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ql|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Qi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=li(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=li(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ac(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&$i(e))):!0}function jc(e,t,n){switch(t.tag){case 3:le(t,t.stateNode.containerInfo),Ji(t,sa,e.memoizedState.cache),Hi();break;case 27:case 5:z(t);break;case 4:le(t,t.stateNode.containerInfo);break;case 10:Ji(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ao(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(io(t),e=kc(e,t,n),e===null?null:e.sibling):Sc(e,t,n):(io(t),t.flags|=128,null);io(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Qi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Oc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),R(lo,lo.current),r)break;return null;case 22:return t.lanes=0,cc(e,t,n,t.pendingProps);case 24:Ji(t,sa,e.memoizedState.cache)}return kc(e,t,n)}function Mc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)rc=!0;else{if(!Ac(e,n)&&!(t.flags&128))return rc=!1,jc(e,t,n);rc=!!(e.flags&131072)}else rc=!1,Pi&&t.flags&1048576&&Oi(t,xi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Da(t.elementType),t.type=e,typeof e==`function`)ci(e)?(r=qs(e,r),t.tag=1,t=_c(null,t,e,r,n)):(t.tag=0,t=hc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=ac(null,t,e,r,n);break a}else if(a===D){t.tag=14,t=oc(null,t,e,r,n);break a}}throw t=P(e)||e,Error(i(306,t,``))}}return t;case 0:return hc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=qs(r,t.pendingProps),_c(e,t,r,a,n);case 3:a:{if(le(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Va(e,t),Ja(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ji(t,sa,r),r!==o.cache&&Zi(t,[sa],n,!0),qa(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=vc(e,t,r,n);break a}else if(r!==a){a=_i(Error(i(424)),t),Wi(a),t=vc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Ni=gf(e.firstChild),Mi=t,Pi=!0,Fi=null,Ii=!0,n=Ra(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Hi(),r===a){t=kc(e,t,n);break a}ic(e,t,r,n)}t=t.child}return t;case 26:return mc(e,t),e===null?(n=Lf(t.type,null,t.pendingProps,null))?t.memoizedState=n:Pi||(n=t.type,e=t.pendingProps,r=Jd(se.current).createElement(n),r[at]=t,r[ot]=e,Hd(r,n,e),vt(r),t.stateNode=r):t.memoizedState=Lf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return z(t),e===null&&Pi&&(r=t.stateNode=bf(t.type,t.pendingProps,se.current),Mi=t,Ii=!0,a=Ni,of(t.type)?(_f=a,Ni=gf(r.firstChild)):Ni=a),ic(e,t,t.pendingProps.children,n),mc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Pi&&((a=r=Ni)&&(r=uf(r,t.type,t.pendingProps,Ii),r===null?a=!1:(t.stateNode=r,Mi=t,Ni=gf(r.firstChild),Ii=!1,a=!0)),a||Ri(t)),z(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Zd(a,o)?r=null:s!==null&&Zd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=To(e,t,Oo,null,null,n),op._currentValue=a),mc(e,t),ic(e,t,r,n),t.child;case 6:return e===null&&Pi&&((e=n=Ni)&&(n=df(n,t.pendingProps,Ii),n===null?e=!1:(t.stateNode=n,Mi=t,Ni=null,e=!0)),e||Ri(t)),null;case 13:return Sc(e,t,n);case 4:return le(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=La(t,null,r,n):ic(e,t,r,n),t.child;case 11:return ac(e,t,t.type,t.pendingProps,n);case 7:return ic(e,t,t.pendingProps,n),t.child;case 8:return ic(e,t,t.pendingProps.children,n),t.child;case 12:return ic(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ji(t,t.type,r.value),ic(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,ea(t),a=ta(a),r=r(a),t.flags|=1,ic(e,t,r,n),t.child;case 14:return oc(e,t,t.type,t.pendingProps,n);case 15:return sc(e,t,t.type,t.pendingProps,n);case 19:return Oc(e,t,n);case 31:return pc(e,t,n);case 22:return cc(e,t,n,t.pendingProps);case 24:return ea(t),r=ta(sa),e===null?(a=va(),a===null&&(a=Hl,o=ca(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Ba(t),Ji(t,sa,a)):((e.lanes&n)!==0&&(Va(e,t),Ja(t,null,null,n),qa()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Ji(t,sa,r),r!==a.cache&&Zi(t,[sa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ji(t,sa,r))),ic(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Nc(e){e.flags|=4}function Pc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(ku())e.flags|=8192;else throw Oa=wa,Sa}else e.flags&=-16777217}function Fc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Qf(t))if(ku())e.flags|=8192;else throw Oa=wa,Sa}function Ic(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:qe(),e.lanes|=t,nu|=t)}function Lc(e,t){if(!Pi)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Rc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function zc(e,t,n){var r=t.pendingProps;switch(Ai(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Rc(t),null;case 1:return Rc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Yi(sa),ue(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Vi(t)?Nc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ui())),Rc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Nc(t),o===null?(Rc(t),Pc(t,a,null,r,n)):(Rc(t),Fc(t,o))):o?o===e.memoizedState?(Rc(t),t.flags&=-16777217):(Nc(t),Rc(t),Fc(t,o)):(e=e.memoizedProps,e!==r&&Nc(t),Rc(t),Pc(t,a,e,r,n)),null;case 27:if(de(t),n=se.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Nc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Rc(t),null}e=ae.current,Vi(t)?zi(t,e):(e=bf(a,r,n),t.stateNode=e,Nc(t))}return Rc(t),null;case 5:if(de(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Nc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Rc(t),null}if(o=ae.current,Vi(t))zi(t,o);else{var s=Jd(se.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[at]=t,o[ot]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Hd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Nc(t)}}return Rc(t),Pc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Nc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=se.current,Vi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Mi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[at]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||zd(e.nodeValue,n)),e||Ri(t,!0)}else e=Jd(e).createTextNode(r),e[at]=t,t.stateNode=e}return Rc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Vi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[at]=t}else Hi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Rc(t),e=!1}else n=Ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(co(t),t):(co(t),null);if(t.flags&128)throw Error(i(558))}return Rc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Vi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[at]=t}else Hi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Rc(t),a=!1}else a=Ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(co(t),t):(co(t),null)}return co(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ic(t,t.updateQueue),Rc(t),null);case 4:return ue(),e===null&&kd(t.stateNode.containerInfo),Rc(t),null;case 10:return Yi(t.type),Rc(t),null;case 19:if(ie(lo),r=t.memoizedState,r===null)return Rc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Lc(r,!1);else{if(Zl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=uo(e),o!==null){for(t.flags|=128,Lc(r,!1),e=o.updateQueue,t.updateQueue=e,Ic(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ui(n,e),n=n.sibling;return R(lo,lo.current&1|2),Pi&&Di(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&we()>su&&(t.flags|=128,a=!0,Lc(r,!1),t.lanes=4194304)}else{if(!a)if(e=uo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Ic(t,e),Lc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Pi)return Rc(t),null}else 2*we()-r.renderingStartTime>su&&n!==536870912&&(t.flags|=128,a=!0,Lc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Rc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=we(),e.sibling=null,n=lo.current,R(lo,a?n&1|2:n&1),Pi&&Di(t,r.treeForkCount),e);case 22:case 23:return co(t),to(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Rc(t),t.subtreeFlags&6&&(t.flags|=8192)):Rc(t),n=t.updateQueue,n!==null&&Ic(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ie(_a),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Yi(sa),Rc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Bc(e,t){switch(Ai(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yi(sa),ue(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return de(t),null;case 31:if(t.memoizedState!==null){if(co(t),t.alternate===null)throw Error(i(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(co(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(lo),null;case 4:return ue(),null;case 10:return Yi(t.type),null;case 22:case 23:return co(t),to(),e!==null&&ie(_a),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Yi(sa),null;case 25:return null;default:return null}}function Vc(e,t){switch(Ai(t),t.tag){case 3:Yi(sa),ue();break;case 26:case 27:case 5:de(t);break;case 4:ue();break;case 31:t.memoizedState!==null&&co(t);break;case 13:co(t);break;case 19:ie(lo);break;case 10:Yi(t.type);break;case 22:case 23:co(t),to(),e!==null&&ie(_a);break;case 24:Yi(sa)}}function Hc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Xu(t,t.return,e)}}function Uc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Xu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Xu(t,t.return,e)}}function Wc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Xa(t,n)}catch(t){Xu(e,e.return,t)}}}function Gc(e,t,n){n.props=qs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Xu(e,t,n)}}function Kc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Xu(e,t,n)}}function qc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Xu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Xu(e,t,n)}else n.current=null}function Jc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Xu(e,e.return,t)}}function Yc(e,t,n){try{var r=e.stateNode;Ud(r,e.type,n,t),r[ot]=t}catch(t){Xu(e,e.return,t)}}function Xc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&of(e.type)||e.tag===4}function Zc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Xc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&of(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Qt));else if(r!==4&&(r===27&&of(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Qc(e,t,n),e=e.sibling;e!==null;)Qc(e,t,n),e=e.sibling}function $c(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&of(e.type)&&(n=e.stateNode),e=e.child,e!==null))for($c(e,t,n),e=e.sibling;e!==null;)$c(e,t,n),e=e.sibling}function el(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Hd(t,r,n),t[at]=e,t[ot]=n}catch(t){Xu(e,e.return,t)}}var tl=!1,nl=!1,rl=!1,il=typeof WeakSet==`function`?WeakSet:Set,al=null;function ol(e,t){if(e=e.containerInfo,Kd=hp,e=Er(e),Dr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(qd={focusedElem:e,selectionRange:n},hp=!1,al=t;al!==null;)if(t=al,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,al=e;else for(;al!==null;){switch(t=al,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=qs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Xu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)lf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:lf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,al=e;break}al=t.return}}function sl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Sl(e,n),r&4&&Hc(5,n);break;case 1:if(Sl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Xu(n,n.return,e)}else{var i=qs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Xu(n,n.return,e)}}r&64&&Wc(n),r&512&&Kc(n,n.return);break;case 3:if(Sl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Xa(e,t)}catch(e){Xu(n,n.return,e)}}break;case 27:t===null&&r&4&&el(n);case 26:case 5:Sl(e,n),t===null&&r&4&&Jc(n),r&512&&Kc(n,n.return);break;case 12:Sl(e,n);break;case 31:Sl(e,n),r&4&&pl(e,n);break;case 13:Sl(e,n),r&4&&ml(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=ed.bind(null,n),hf(e,n))));break;case 22:if(r=n.memoizedState!==null||tl,!r){t=t!==null&&t.memoizedState!==null||nl,i=tl;var a=nl;tl=r,(nl=t)&&!a?wl(e,n,(n.subtreeFlags&8772)!=0):Sl(e,n),tl=i,nl=a}break;case 30:break;default:Sl(e,n)}}function cl(e){var t=e.alternate;t!==null&&(e.alternate=null,cl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&pt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ll=null,ul=!1;function dl(e,t,n){for(n=n.child;n!==null;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(Pe&&typeof Pe.onCommitFiberUnmount==`function`)try{Pe.onCommitFiberUnmount(Ne,n)}catch{}switch(n.tag){case 26:nl||qc(n,t),dl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:nl||qc(n,t);var r=ll,i=ul;of(n.type)&&(ll=n.stateNode,ul=!1),dl(e,t,n),xf(n.stateNode),ll=r,ul=i;break;case 5:nl||qc(n,t);case 6:if(r=ll,i=ul,ll=null,dl(e,t,n),ll=r,ul=i,ll!==null)if(ul)try{(ll.nodeType===9?ll.body:ll.nodeName===`HTML`?ll.ownerDocument.body:ll).removeChild(n.stateNode)}catch(e){Xu(n,t,e)}else try{ll.removeChild(n.stateNode)}catch(e){Xu(n,t,e)}break;case 18:ll!==null&&(ul?(e=ll,sf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),zp(e)):sf(ll,n.stateNode));break;case 4:r=ll,i=ul,ll=n.stateNode.containerInfo,ul=!0,dl(e,t,n),ll=r,ul=i;break;case 0:case 11:case 14:case 15:Uc(2,n,t),nl||Uc(4,n,t),dl(e,t,n);break;case 1:nl||(qc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Gc(n,t,r)),dl(e,t,n);break;case 21:dl(e,t,n);break;case 22:nl=(r=nl)||n.memoizedState!==null,dl(e,t,n),nl=r;break;default:dl(e,t,n)}}function pl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{zp(e)}catch(e){Xu(t,t.return,e)}}}function ml(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{zp(e)}catch(e){Xu(t,t.return,e)}}function hl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new il),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new il),t;default:throw Error(i(435,e.tag))}}function gl(e,t){var n=hl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=td.bind(null,e,t);t.then(r,r)}})}function _l(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(of(c.type)){ll=c.stateNode,ul=!1;break a}break;case 5:ll=c.stateNode,ul=!1;break a;case 3:case 4:ll=c.stateNode.containerInfo,ul=!0;break a}c=c.return}if(ll===null)throw Error(i(160));fl(o,s,a),ll=null,ul=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)yl(t,e),t=t.sibling}var vl=null;function yl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:_l(t,e),bl(e),r&4&&(Uc(3,e,e.return),Hc(3,e),Uc(5,e,e.return));break;case 1:_l(t,e),bl(e),r&512&&(nl||n===null||qc(n,n.return)),r&64&&tl&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=vl;if(_l(t,e),bl(e),r&512&&(nl||n===null||qc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[ft]||o[at]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Hd(o,r,n),o[at]=e,vt(o),r=o;break a;case`link`:var s=Yf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Hd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Yf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Hd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[at]=e,vt(o),r=o}e.stateNode=r}else Xf(a,e.type,e.stateNode);else e.stateNode=Wf(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Yc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Xf(a,e.type,e.stateNode):Wf(a,r,e.memoizedProps))}break;case 27:_l(t,e),bl(e),r&512&&(nl||n===null||qc(n,n.return)),n!==null&&r&4&&Yc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(_l(t,e),bl(e),r&512&&(nl||n===null||qc(n,n.return)),e.flags&32){a=e.stateNode;try{Wt(a,``)}catch(t){Xu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Yc(e,a,n===null?a:n.memoizedProps)),r&1024&&(rl=!0);break;case 6:if(_l(t,e),bl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Xu(e,e.return,t)}}break;case 3:if(Jf=null,a=vl,vl=wf(t.containerInfo),_l(t,e),vl=a,bl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{zp(t.containerInfo)}catch(t){Xu(e,e.return,t)}rl&&(rl=!1,xl(e));break;case 4:r=vl,vl=wf(e.stateNode.containerInfo),_l(t,e),bl(e),vl=r;break;case 12:_l(t,e),bl(e);break;case 31:_l(t,e),bl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 13:_l(t,e),bl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(au=we()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=tl,d=nl;if(tl=u||a,nl=d||l,_l(t,e),nl=d,tl=u,bl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||tl||nl||Cl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Xu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Xu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?cf(m,!0):cf(l.stateNode,!1)}catch(e){Xu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,gl(e,n))));break;case 19:_l(t,e),bl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 30:break;case 21:break;default:_l(t,e),bl(e)}}function bl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Xc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;$c(e,Zc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Wt(o,``),n.flags&=-33),$c(e,Zc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Qc(e,Zc(e),s);break;default:throw Error(i(161))}}catch(t){Xu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;xl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Sl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)sl(e,t.alternate,t),t=t.sibling}function Cl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Uc(4,t,t.return),Cl(t);break;case 1:qc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Gc(t,t.return,n),Cl(t);break;case 27:xf(t.stateNode);case 26:case 5:qc(t,t.return),Cl(t);break;case 22:t.memoizedState===null&&Cl(t);break;case 30:Cl(t);break;default:Cl(t)}e=e.sibling}}function wl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:wl(i,a,n),Hc(4,a);break;case 1:if(wl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Xu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Ya(c[i],s)}catch(e){Xu(r,r.return,e)}}n&&o&64&&Wc(a),Kc(a,a.return);break;case 27:el(a);case 26:case 5:wl(i,a,n),n&&r===null&&o&4&&Jc(a),Kc(a,a.return);break;case 12:wl(i,a,n);break;case 31:wl(i,a,n),n&&o&4&&pl(i,a);break;case 13:wl(i,a,n),n&&o&4&&ml(i,a);break;case 22:a.memoizedState===null&&wl(i,a,n),Kc(a,a.return);break;case 30:break;default:wl(i,a,n)}t=t.sibling}}function Tl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&la(n))}function El(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&la(e))}function Dl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ol(e,t,n,r),t=t.sibling}function Ol(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Dl(e,t,n,r),i&2048&&Hc(9,t);break;case 1:Dl(e,t,n,r);break;case 3:Dl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&la(e)));break;case 12:if(i&2048){Dl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Xu(t,t.return,e)}}else Dl(e,t,n,r);break;case 31:Dl(e,t,n,r);break;case 13:Dl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Dl(e,t,n,r):(a._visibility|=2,kl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Dl(e,t,n,r):Al(e,t),i&2048&&Tl(o,t);break;case 24:Dl(e,t,n,r),i&2048&&El(t.alternate,t);break;default:Dl(e,t,n,r)}}function kl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:kl(a,o,s,c,i),Hc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,kl(a,o,s,c,i)):u._visibility&2?kl(a,o,s,c,i):Al(a,o),i&&l&2048&&Tl(o.alternate,o);break;case 24:kl(a,o,s,c,i),i&&l&2048&&El(o.alternate,o);break;default:kl(a,o,s,c,i)}t=t.sibling}}function Al(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Al(n,r),i&2048&&Tl(r.alternate,r);break;case 24:Al(n,r),i&2048&&El(r.alternate,r);break;default:Al(n,r)}t=t.sibling}}var jl=8192;function Ml(e,t,n){if(e.subtreeFlags&jl)for(e=e.child;e!==null;)Nl(e,t,n),e=e.sibling}function Nl(e,t,n){switch(e.tag){case 26:Ml(e,t,n),e.flags&jl&&e.memoizedState!==null&&$f(n,vl,e.memoizedState,e.memoizedProps);break;case 5:Ml(e,t,n);break;case 3:case 4:var r=vl;vl=wf(e.stateNode.containerInfo),Ml(e,t,n),vl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=jl,jl=16777216,Ml(e,t,n),jl=r):Ml(e,t,n));break;default:Ml(e,t,n)}}function Pl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Fl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];al=r,Rl(r,e)}Pl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Il(e),e=e.sibling}function Il(e){switch(e.tag){case 0:case 11:case 15:Fl(e),e.flags&2048&&Uc(9,e,e.return);break;case 3:Fl(e);break;case 12:Fl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ll(e)):Fl(e);break;default:Fl(e)}}function Ll(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];al=r,Rl(r,e)}Pl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Uc(8,t,t.return),Ll(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ll(t));break;default:Ll(t)}e=e.sibling}}function Rl(e,t){for(;al!==null;){var n=al;switch(n.tag){case 0:case 11:case 15:Uc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:la(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,al=r;else a:for(n=e;al!==null;){r=al;var i=r.sibling,a=r.return;if(cl(r),r===n){al=null;break a}if(i!==null){i.return=a,al=i;break a}al=a}}}var zl={getCacheForType:function(e){var t=ta(sa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ta(sa).controller.signal}},Bl=typeof WeakMap==`function`?WeakMap:Map,Vl=0,Hl=null,Ul=null,Wl=0,Gl=0,Kl=null,ql=!1,Jl=!1,Yl=!1,Xl=0,Zl=0,Ql=0,$l=0,eu=0,tu=0,nu=0,ru=null,iu=null,G=!1,au=0,ou=0,su=1/0,cu=null,lu=null,uu=0,du=null,fu=null,pu=0,mu=0,hu=null,gu=null,_u=0,vu=null;function yu(){return Vl&2&&Wl!==0?Wl&-Wl:I.T===null?nt():_d()}function bu(){if(tu===0)if(!(Wl&536870912)||Pi){var e=Ve;Ve<<=1,!(Ve&3932160)&&(Ve=262144),tu=e}else tu=536870912;return e=no.current,e!==null&&(e.flags|=32),tu}function xu(e,t,n){(e===Hl&&(Gl===2||Gl===9)||e.cancelPendingCommit!==null)&&(Du(e,0),Tu(e,Wl,tu,!1)),Ye(e,n),(!(Vl&2)||e!==Hl)&&(e===Hl&&(!(Vl&2)&&($l|=n),Zl===4&&Tu(e,Wl,tu,!1)),ld(e))}function Su(e,t,n){if(Vl&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Ge(e,t),a=r?Fu(e,t):Nu(e,t,!0),o=r;do{if(a===0){Jl&&!r&&Tu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!wu(n)){a=Nu(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=ru;var l=c.current.memoizedState.isDehydrated;if(l&&(Du(c,s).flags|=256),s=Nu(c,s,!1),s!==2){if(Yl&&!l){c.errorRecoveryDisabledLanes|=o,$l|=o,a=4;break a}o=iu,iu=a,o!==null&&(iu===null?iu=o:iu.push.apply(iu,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Du(e,0),Tu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Tu(r,t,tu,!ql);break a;case 2:iu=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=au+300-we(),10<a)){if(Tu(r,t,tu,!ql),We(r,0,!0)!==0)break a;pu=t,r.timeoutHandle=ef(Cu.bind(null,r,n,iu,cu,G,t,tu,$l,nu,ql,o,`Throttled`,-0,0),a);break a}Cu(r,n,iu,cu,G,t,tu,$l,nu,ql,o,null,-0,0)}}break}while(1);ld(e)}function Cu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Qt},Nl(t,a,d);var m=(a&62914560)===a?au-we():(a&4194048)===a?ou-we():0;if(m=tp(d,m),m!==null){pu=a,e.cancelPendingCommit=m(Hu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),Tu(e,a,o,!l);return}}Hu(e,t,a,n,r,i,o,s,c)}function wu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!xr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Tu(e,t,n,r){t&=~eu,t&=~$l,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ie(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Ze(e,n,t)}function Eu(){return Vl&6?!0:(ud(0,!1),!1)}function K(){if(Ul!==null){if(Gl===0)var e=Ul.return;else e=Ul,qi=Ki=null,jo(e),ja=null,Ma=0,e=Ul;for(;e!==null;)Vc(e.alternate,e),e=e.return;Ul=null}}function Du(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,tf(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),pu=0,K(),Hl=e,Ul=n=li(e.current,null),Wl=t,Gl=0,Kl=null,ql=!1,Jl=Ge(e,t),Yl=!1,nu=tu=eu=$l=Ql=Zl=0,iu=ru=null,G=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Ie(r),a=1<<i;t|=e[i],r&=~a}return Xl=t,$r(),n}function Ou(e,t){po=null,I.H=zs,t===xa||t===Ca?(t=ka(),Gl=3):t===Sa?(t=ka(),Gl=4):Gl=t===nc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Kl=t,Ul===null&&(Zl=1,Xs(e,_i(t,e.current)))}function ku(){var e=no.current;return e===null?!0:(Wl&4194048)===Wl?ro===null:(Wl&62914560)===Wl||Wl&536870912?e===ro:!1}function Au(){var e=I.H;return I.H=zs,e===null?zs:e}function ju(){var e=I.A;return I.A=zl,e}function Mu(){Zl=4,ql||(Wl&4194048)!==Wl&&no.current!==null||(Jl=!0),!(Ql&134217727)&&!($l&134217727)||Hl===null||Tu(Hl,Wl,tu,!1)}function Nu(e,t,n){var r=Vl;Vl|=2;var i=Au(),a=ju();(Hl!==e||Wl!==t)&&(cu=null,Du(e,t)),t=!1;var o=Zl;a:do try{if(Gl!==0&&Ul!==null){var s=Ul,c=Kl;switch(Gl){case 8:K(),o=6;break a;case 3:case 2:case 9:case 6:no.current===null&&(t=!0);var l=Gl;if(Gl=0,Kl=null,zu(e,s,c,l),n&&Jl){o=0;break a}break;default:l=Gl,Gl=0,Kl=null,zu(e,s,c,l)}}Pu(),o=Zl;break}catch(t){Ou(e,t)}while(1);return t&&e.shellSuspendCounter++,qi=Ki=null,Vl=r,I.H=i,I.A=a,Ul===null&&(Hl=null,Wl=0,$r()),o}function Pu(){for(;Ul!==null;)Lu(Ul)}function Fu(e,t){var n=Vl;Vl|=2;var r=Au(),a=ju();Hl!==e||Wl!==t?(cu=null,su=we()+500,Du(e,t)):Jl=Ge(e,t);a:do try{if(Gl!==0&&Ul!==null){t=Ul;var o=Kl;b:switch(Gl){case 1:Gl=0,Kl=null,zu(e,t,o,1);break;case 2:case 9:if(Ta(o)){Gl=0,Kl=null,Ru(t);break}t=function(){Gl!==2&&Gl!==9||Hl!==e||(Gl=7),ld(e)},o.then(t,t);break a;case 3:Gl=7;break a;case 4:Gl=5;break a;case 7:Ta(o)?(Gl=0,Kl=null,Ru(t)):(Gl=0,Kl=null,zu(e,t,o,7));break;case 5:var s=null;switch(Ul.tag){case 26:s=Ul.memoizedState;case 5:case 27:var c=Ul;if(s?Qf(s):c.stateNode.complete){Gl=0,Kl=null;var l=c.sibling;if(l!==null)Ul=l;else{var u=c.return;u===null?Ul=null:(Ul=u,Bu(u))}break b}}Gl=0,Kl=null,zu(e,t,o,5);break;case 6:Gl=0,Kl=null,zu(e,t,o,6);break;case 8:K(),Zl=6;break a;default:throw Error(i(462))}}Iu();break}catch(t){Ou(e,t)}while(1);return qi=Ki=null,I.H=r,I.A=a,Vl=n,Ul===null?(Hl=null,Wl=0,$r(),Zl):0}function Iu(){for(;Ul!==null&&!Se();)Lu(Ul)}function Lu(e){var t=Mc(e.alternate,e,Xl);e.memoizedProps=e.pendingProps,t===null?Bu(e):Ul=t}function Ru(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=gc(n,t,t.pendingProps,t.type,void 0,Wl);break;case 11:t=gc(n,t,t.pendingProps,t.type.render,t.ref,Wl);break;case 5:jo(t);default:Vc(n,t),t=Ul=ui(t,Xl),t=Mc(n,t,Xl)}e.memoizedProps=e.pendingProps,t===null?Bu(e):Ul=t}function zu(e,t,n,r){qi=Ki=null,jo(t),ja=null,Ma=0;var i=t.return;try{if(tc(e,i,t,n,Wl)){Zl=1,Xs(e,_i(n,e.current)),Ul=null;return}}catch(t){if(i!==null)throw Ul=i,t;Zl=1,Xs(e,_i(n,e.current)),Ul=null;return}t.flags&32768?(Pi||r===1?e=!0:Jl||Wl&536870912?e=!1:(ql=e=!0,(r===2||r===9||r===3||r===6)&&(r=no.current,r!==null&&r.tag===13&&(r.flags|=16384))),Vu(t,e)):Bu(t)}function Bu(e){var t=e;do{if(t.flags&32768){Vu(t,ql);return}e=t.return;var n=zc(t.alternate,t,Xl);if(n!==null){Ul=n;return}if(t=t.sibling,t!==null){Ul=t;return}Ul=t=e}while(t!==null);Zl===0&&(Zl=5)}function Vu(e,t){do{var n=Bc(e.alternate,e);if(n!==null){n.flags&=32767,Ul=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ul=e;return}Ul=e=n}while(e!==null);Zl=6,Ul=null}function Hu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do qu();while(uu!==0);if(Vl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Qr,Xe(e,n,o,s,c,l),e===Hl&&(Ul=Hl=null,Wl=0),fu=t,du=e,pu=n,mu=o,hu=a,gu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,nd(Oe,function(){return Ju(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=I.T,I.T=null,a=L.p,L.p=2,s=Vl,Vl|=4;try{ol(e,t,n)}finally{Vl=s,L.p=a,I.T=r}}uu=1,Uu(),Wu(),Gu()}}function Uu(){if(uu===1){uu=0;var e=du,t=fu,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=I.T,I.T=null;var r=L.p;L.p=2;var i=Vl;Vl|=4;try{yl(t,e);var a=qd,o=Er(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Tr(s.ownerDocument.documentElement,s)){if(c!==null&&Dr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=wr(s,h),v=wr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}hp=!!Kd,qd=Kd=null}finally{Vl=i,L.p=r,I.T=n}}e.current=t,uu=2}}function Wu(){if(uu===2){uu=0;var e=du,t=fu,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=I.T,I.T=null;var r=L.p;L.p=2;var i=Vl;Vl|=4;try{sl(e,t.alternate,t)}finally{Vl=i,L.p=r,I.T=n}}uu=3}}function Gu(){if(uu===4||uu===3){uu=0,Ce();var e=du,t=fu,n=pu,r=gu;t.subtreeFlags&10256||t.flags&10256?uu=5:(uu=0,fu=du=null,Ku(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(lu=null),tt(n),t=t.stateNode,Pe&&typeof Pe.onCommitFiberRoot==`function`)try{Pe.onCommitFiberRoot(Ne,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=I.T,i=L.p,L.p=2,I.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{I.T=t,L.p=i}}pu&3&&qu(),ld(e),i=e.pendingLanes,n&261930&&i&42?e===vu?_u++:(_u=0,vu=e):_u=0,ud(0,!1)}}function Ku(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,la(t)))}function qu(){return Uu(),Wu(),Gu(),Ju()}function Ju(){if(uu!==5)return!1;var e=du,t=mu;mu=0;var n=tt(pu),r=I.T,a=L.p;try{L.p=32>n?32:n,I.T=null,n=hu,hu=null;var o=du,s=pu;if(uu=0,fu=du=null,pu=0,Vl&6)throw Error(i(331));var c=Vl;if(Vl|=4,Il(o.current),Ol(o,o.current,s,n),Vl=c,ud(0,!1),Pe&&typeof Pe.onPostCommitFiberRoot==`function`)try{Pe.onPostCommitFiberRoot(Ne,o)}catch{}return!0}finally{L.p=a,I.T=r,Ku(e,t)}}function Yu(e,t,n){t=_i(n,t),t=Qs(e.stateNode,t,2),e=Ua(e,t,2),e!==null&&(Ye(e,2),ld(e))}function Xu(e,t,n){if(e.tag===3)Yu(e,e,n);else for(;t!==null;){if(t.tag===3){Yu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(lu===null||!lu.has(r))){e=_i(n,e),n=$s(2),r=Ua(t,n,2),r!==null&&(ec(n,r,t,e),Ye(r,2),ld(r));break}}t=t.return}}function Zu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Bl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Yl=!0,i.add(n),e=Qu.bind(null,e,t,n),t.then(e,e))}function Qu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Hl===e&&(Wl&n)===n&&(Zl===4||Zl===3&&(Wl&62914560)===Wl&&300>we()-au?!(Vl&2)&&Du(e,0):eu|=n,nu===Wl&&(nu=0)),ld(e)}function $u(e,t){t===0&&(t=qe()),e=ni(e,t),e!==null&&(Ye(e,t),ld(e))}function ed(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$u(e,n)}function td(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),$u(e,n)}function nd(e,t){return be(e,t)}var rd=null,id=null,ad=!1,od=!1,sd=!1,cd=0;function ld(e){e!==id&&e.next===null&&(id===null?rd=id=e:id=id.next=e),od=!0,ad||(ad=!0,gd())}function ud(e,t){if(!sd&&od){sd=!0;do for(var n=!1,r=rd;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ie(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,hd(r,a))}else a=Wl,a=We(r,r===Hl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ge(r,a)||(n=!0,hd(r,a));r=r.next}while(n);sd=!1}}function dd(){fd()}function fd(){od=ad=!1;var e=0;cd!==0&&$d()&&(e=cd);for(var t=we(),n=null,r=rd;r!==null;){var i=r.next,a=pd(r,t);a===0?(r.next=null,n===null?rd=i:n.next=i,i===null&&(id=n)):(n=r,(e!==0||a&3)&&(od=!0)),r=i}uu!==0&&uu!==5||ud(e,!1),cd!==0&&(cd=0)}function pd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ie(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ke(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Hl,n=Wl,n=We(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Gl===2||Gl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&xe(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ge(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&xe(r),tt(n)){case 2:case 8:n=De;break;case 32:n=Oe;break;case 268435456:n=Ae;break;default:n=Oe}return r=md.bind(null,e),n=be(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&xe(r),e.callbackPriority=2,e.callbackNode=null,2}function md(e,t){if(uu!==0&&uu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(qu()&&e.callbackNode!==n)return null;var r=Wl;return r=We(e,e===Hl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Su(e,r,t),pd(e,we()),e.callbackNode!=null&&e.callbackNode===n?md.bind(null,e):null)}function hd(e,t){if(qu())return null;Su(e,t,!0)}function gd(){rf(function(){Vl&6?be(Ee,dd):fd()})}function _d(){if(cd===0){var e=fa;e===0&&(e=Be,Be<<=1,!(Be&261888)&&(Be=256)),cd=e}return cd}function vd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Zt(``+e)}function yd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function bd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=vd((i[ot]||null).action),o=r.submitter;o&&(t=(t=o[ot]||null)?vd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new bn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(cd!==0){var e=o?yd(i,o):new FormData(i);Ts(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?yd(i,o):new FormData(i),Ts(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var xd=0;xd<qr.length;xd++){var Sd=qr[xd];Jr(Sd.toLowerCase(),`on`+(Sd[0].toUpperCase()+Sd.slice(1)))}Jr(zr,`onAnimationEnd`),Jr(Br,`onAnimationIteration`),Jr(Vr,`onAnimationStart`),Jr(`dblclick`,`onDoubleClick`),Jr(`focusin`,`onFocus`),Jr(`focusout`,`onBlur`),Jr(Hr,`onTransitionRun`),Jr(Ur,`onTransitionStart`),Jr(Wr,`onTransitionCancel`),Jr(Gr,`onTransitionEnd`),St(`onMouseEnter`,[`mouseout`,`mouseover`]),St(`onMouseLeave`,[`mouseout`,`mouseover`]),St(`onPointerEnter`,[`pointerout`,`pointerover`]),St(`onPointerLeave`,[`pointerout`,`pointerover`]),xt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),xt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),xt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),xt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),xt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),xt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Cd=`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(` `),wd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Cd));function Td(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Yr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Yr(e)}i.currentTarget=null,a=c}}}}function Ed(e,t){var n=t[ct];n===void 0&&(n=t[ct]=new Set);var r=e+`__bubble`;n.has(r)||(Ad(t,e,2,!1),n.add(r))}function Dd(e,t,n){var r=0;t&&(r|=4),Ad(n,e,r,t)}var Od=`_reactListening`+Math.random().toString(36).slice(2);function kd(e){if(!e[Od]){e[Od]=!0,yt.forEach(function(t){t!==`selectionchange`&&(wd.has(t)||Dd(t,!1,e),Dd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Od]||(t[Od]=!0,Dd(`selectionchange`,!1,t))}}function Ad(e,t,n,r){switch(xp(t)){case 2:var i=gp;break;case 8:i=_p;break;default:i=q}n=i.bind(null,t,n,e),i=void 0,!ln||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function jd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=mt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}on(function(){var r=a,i=en(n),s=[];a:{var c=Kr.get(e);if(c!==void 0){var l=bn,u=e;switch(e){case`keypress`:if(hn(n)===0)break a;case`keydown`:case`keyup`:l=Rn;break;case`focusin`:u=`focus`,l=kn;break;case`focusout`:u=`blur`,l=kn;break;case`beforeblur`:case`afterblur`:l=kn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Dn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=On;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Bn;break;case zr:case Br:case Vr:l=An;break;case Gr:l=Vn;break;case`scroll`:case`scrollend`:l=Sn;break;case`wheel`:l=Hn;break;case`copy`:case`cut`:case`paste`:l=jn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=zn;break;case`toggle`:case`beforetoggle`:l=Un}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=sn(m,p),g!=null&&d.push(Md(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==$t&&(u=n.relatedTarget||n.fromElement)&&(mt(u)||u[st]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?mt(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Dn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=zn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:gt(l),h=u==null?c:gt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,mt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Pd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Fd(s,c,l,d,!1),u!==null&&f!==null&&Fd(s,f,u,d,!0)}}a:{if(c=r?gt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=lr;else if(rr(c))if(ur)v=yr;else{v=_r;var y=gr}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Jt(r.elementType)&&(v=lr):v=vr;if(v&&=v(e,r)){ir(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Bt(c,`number`,c.value)}switch(y=r?gt(r):window,e){case`focusin`:(rr(y)||y.contentEditable===`true`)&&(kr=y,Ar=r,jr=null);break;case`focusout`:jr=Ar=kr=null;break;case`mousedown`:Mr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Mr=!1,Nr(s,n,i);break;case`selectionchange`:if(Or)break;case`keydown`:case`keyup`:Nr(s,n,i)}var b;if(Gn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else $n?Zn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Jn&&n.locale!==`ko`&&($n||x!==`onCompositionStart`?x===`onCompositionEnd`&&$n&&(b=mn()):(dn=i,fn=`value`in dn?dn.value:dn.textContent,$n=!0)),y=Nd(r,x),0<y.length&&(x=new Mn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=Qn(n),b!==null&&(x.data=b)))),(b=qn?er(e,n):tr(e,n))&&(x=Nd(r,`onBeforeInput`),0<x.length&&(y=new Mn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),bd(s,e,r,n,i)}Td(s,t)})}function Md(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Nd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=sn(e,n),i!=null&&r.unshift(Md(e,i,a)),i=sn(e,t),i!=null&&r.push(Md(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Pd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Fd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=sn(n,a),l!=null&&o.unshift(Md(n,l,c))):i||(l=sn(n,a),l!=null&&o.push(Md(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Id=/\r\n?/g,Ld=/\u0000|\uFFFD/g;function Rd(e){return(typeof e==`string`?e:``+e).replace(Id,`
10
- `).replace(Ld,``)}function zd(e,t){return t=Rd(t),Rd(e)===t}function Bd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Wt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Wt(e,``+r);break;case`className`:Ot(e,`class`,r);break;case`tabIndex`:Ot(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Ot(e,n,r);break;case`style`:qt(e,r,o);break;case`data`:if(t!==`object`){Ot(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Zt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Bd(e,t,`name`,a.name,a,null),Bd(e,t,`formEncType`,a.formEncType,a,null),Bd(e,t,`formMethod`,a.formMethod,a,null),Bd(e,t,`formTarget`,a.formTarget,a,null)):(Bd(e,t,`encType`,a.encType,a,null),Bd(e,t,`method`,a.method,a,null),Bd(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Zt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Qt);break;case`onScroll`:r!=null&&Ed(`scroll`,e);break;case`onScrollEnd`:r!=null&&Ed(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Zt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Ed(`beforetoggle`,e),Ed(`toggle`,e),Dt(e,`popover`,r);break;case`xlinkActuate`:kt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:kt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:kt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:kt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:kt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:kt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Dt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Yt.get(n)||n,Dt(e,n,r))}}function Vd(e,t,n,r,a,o){switch(n){case`style`:qt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Wt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Wt(e,``+r);break;case`onScroll`:r!=null&&Ed(`scroll`,e);break;case`onScrollEnd`:r!=null&&Ed(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Qt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!bt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[ot]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Dt(e,n,r)}}}function Hd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Ed(`error`,e),Ed(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Bd(e,t,o,s,n,null)}}a&&Bd(e,t,`srcSet`,n.srcSet,n,null),r&&Bd(e,t,`src`,n.src,n,null);return;case`input`:Ed(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Bd(e,t,r,d,n,null)}}zt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Ed(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Bd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Vt(e,!!r,n,!0):Vt(e,!!r,t,!1);return;case`textarea`:for(s in Ed(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Bd(e,t,s,c,n,null)}Ut(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Bd(e,t,l,r,n,null)}return;case`dialog`:Ed(`beforetoggle`,e),Ed(`toggle`,e),Ed(`cancel`,e),Ed(`close`,e);break;case`iframe`:case`object`:Ed(`load`,e);break;case`video`:case`audio`:for(r=0;r<Cd.length;r++)Ed(Cd[r],e);break;case`image`:Ed(`error`,e),Ed(`load`,e);break;case`details`:Ed(`toggle`,e);break;case`embed`:case`source`:case`link`:Ed(`error`,e),Ed(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Bd(e,t,u,r,n,null)}return;default:if(Jt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Vd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Bd(e,t,c,r,n,null))}function Ud(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Bd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Bd(e,t,p,m,r,f)}}Rt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Bd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Bd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Vt(e,!!n,n?[]:``,!1):Vt(e,!!n,t,!0)):Vt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Bd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Bd(e,t,s,a,r,o)}Ht(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Bd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Bd(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Bd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Bd(e,t,u,p,r,m)}return;default:if(Jt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Vd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Vd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Bd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Bd(e,t,f,p,r,m)}function Wd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Gd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Wd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Wd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Kd=null,qd=null;function Jd(e){return e.nodeType===9?e:e.ownerDocument}function Yd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Xd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Zd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Qd=null;function $d(){var e=window.event;return e&&e.type===`popstate`?e===Qd?!1:(Qd=e,!0):(Qd=null,!1)}var ef=typeof setTimeout==`function`?setTimeout:void 0,tf=typeof clearTimeout==`function`?clearTimeout:void 0,nf=typeof Promise==`function`?Promise:void 0,rf=typeof queueMicrotask==`function`?queueMicrotask:nf===void 0?ef:function(e){return nf.resolve(null).then(e).catch(af)};function af(e){setTimeout(function(){throw e})}function of(e){return e===`head`}function sf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),zp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)xf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,xf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[ft]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&xf(e.ownerDocument.body);n=i}while(n);zp(t)}function cf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function lf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:lf(n),pt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function uf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[ft])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=gf(e.nextSibling),e===null)break}return null}function df(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=gf(e.nextSibling),e===null))return null;return e}function ff(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=gf(e.nextSibling),e===null))return null;return e}function pf(e){return e.data===`$?`||e.data===`$~`}function mf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function hf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function gf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var _f=null;function vf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return gf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function yf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function bf(e,t,n){switch(t=Jd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function xf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);pt(e)}var Sf=new Map,Cf=new Set;function wf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Tf=L.d;L.d={f:Ef,r:Df,D:Af,C:jf,L:Mf,m:Nf,X:Ff,S:Pf,M:If};function Ef(){var e=Tf.f(),t=Eu();return e||t}function Df(e){var t=ht(e);t!==null&&t.tag===5&&t.type===`form`?Ds(t):Tf.r(e)}var Of=typeof document>`u`?null:document;function kf(e,t,n){var r=Of;if(r&&typeof t==`string`&&t){var i=Lt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Cf.has(i)||(Cf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Hd(t,`link`,e),vt(t),r.head.appendChild(t)))}}function Af(e){Tf.D(e),kf(`dns-prefetch`,e,null)}function jf(e,t){Tf.C(e,t),kf(`preconnect`,e,t)}function Mf(e,t,n){Tf.L(e,t,n);var r=Of;if(r&&e&&t){var i=`link[rel="preload"][as="`+Lt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Lt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Lt(n.imageSizes)+`"]`)):i+=`[href="`+Lt(e)+`"]`;var a=i;switch(t){case`style`:a=Rf(e);break;case`script`:a=Hf(e)}Sf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Sf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(zf(a))||t===`script`&&r.querySelector(Uf(a))||(t=r.createElement(`link`),Hd(t,`link`,e),vt(t),r.head.appendChild(t)))}}function Nf(e,t){Tf.m(e,t);var n=Of;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Lt(r)+`"][href="`+Lt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Hf(e)}if(!Sf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),Sf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Uf(a)))return}r=n.createElement(`link`),Hd(r,`link`,e),vt(r),n.head.appendChild(r)}}}function Pf(e,t,n){Tf.S(e,t,n);var r=Of;if(r&&e){var i=_t(r).hoistableStyles,a=Rf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(zf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Sf.get(a))&&Kf(e,n);var c=o=r.createElement(`link`);vt(c),Hd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Gf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Ff(e,t){Tf.X(e,t);var n=Of;if(n&&e){var r=_t(n).hoistableScripts,i=Hf(e),a=r.get(i);a||(a=n.querySelector(Uf(i)),a||(e=f({src:e,async:!0},t),(t=Sf.get(i))&&qf(e,t),a=n.createElement(`script`),vt(a),Hd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function If(e,t){Tf.M(e,t);var n=Of;if(n&&e){var r=_t(n).hoistableScripts,i=Hf(e),a=r.get(i);a||(a=n.querySelector(Uf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=Sf.get(i))&&qf(e,t),a=n.createElement(`script`),vt(a),Hd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Lf(e,t,n,r){var a=(a=se.current)?wf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Rf(n.href),n=_t(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Rf(n.href);var o=_t(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(zf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Sf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Sf.set(e,n),o||Vf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Hf(n),n=_t(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Rf(e){return`href="`+Lt(e)+`"`}function zf(e){return`link[rel="stylesheet"][`+e+`]`}function Bf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Vf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Hd(t,`link`,n),vt(t),e.head.appendChild(t))}function Hf(e){return`[src="`+Lt(e)+`"]`}function Uf(e){return`script[async]`+e}function Wf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Lt(n.href)+`"]`);if(r)return t.instance=r,vt(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),vt(r),Hd(r,`style`,a),Gf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Rf(n.href);var o=e.querySelector(zf(a));if(o)return t.state.loading|=4,t.instance=o,vt(o),o;r=Bf(n),(a=Sf.get(a))&&Kf(r,a),o=(e.ownerDocument||e).createElement(`link`),vt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Hd(o,`link`,r),t.state.loading|=4,Gf(o,n.precedence,e),t.instance=o;case`script`:return o=Hf(n.src),(a=e.querySelector(Uf(o)))?(t.instance=a,vt(a),a):(r=n,(a=Sf.get(o))&&(r=f({},n),qf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),vt(a),Hd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Gf(r,n.precedence,e));return t.instance}function Gf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Kf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function qf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Jf=null;function Yf(e,t,n){if(Jf===null){var r=new Map,i=Jf=new Map;i.set(n,r)}else i=Jf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[ft]||a[at]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Xf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Zf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Qf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function $f(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Rf(r.href),a=t.querySelector(zf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=np.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,vt(a);return}a=t.ownerDocument||t,r=Bf(r),(i=Sf.get(i))&&Kf(r,i),a=a.createElement(`link`),vt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Hd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=np.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var ep=0;function tp(e,t){return e.stylesheets&&e.count===0&&ip(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ip(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&ep===0&&(ep=62500*Gd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ip(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>ep?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function np(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ip(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var rp=null;function ip(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,rp=new Map,t.forEach(ap,e),rp=null,np.call(e))}function ap(e,t){if(!(t.state.loading&4)){var n=rp.get(e);if(n)var r=n.get(null);else{n=new Map,rp.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=np.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var op={$$typeof:C,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function sp(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Je(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Je(0),this.hiddenUpdates=Je(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function cp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new sp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=si(3,null,null,t),e.current=a,a.stateNode=e,t=ca(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ba(a),e}function lp(e){return e?(e=ai,e):ai}function up(e,t,n,r,i,a){i=lp(i),r.context===null?r.context=i:r.pendingContext=i,r=Ha(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ua(e,r,t),n!==null&&(xu(n,e,t),Wa(n,e,t))}function dp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function fp(e,t){dp(e,t),(e=e.alternate)&&dp(e,t)}function pp(e){if(e.tag===13||e.tag===31){var t=ni(e,67108864);t!==null&&xu(t,e,67108864),fp(e,67108864)}}function mp(e){if(e.tag===13||e.tag===31){var t=yu();t=et(t);var n=ni(e,t);n!==null&&xu(n,e,t),fp(e,t)}}var hp=!0;function gp(e,t,n,r){var i=I.T;I.T=null;var a=L.p;try{L.p=2,q(e,t,n,r)}finally{L.p=a,I.T=i}}function _p(e,t,n,r){var i=I.T;I.T=null;var a=L.p;try{L.p=8,q(e,t,n,r)}finally{L.p=a,I.T=i}}function q(e,t,n,r){if(hp){var i=vp(r);if(i===null)jd(e,t,r,yp,n),kp(e,r);else if(jp(i,e,t,n,r))r.stopPropagation();else if(kp(e,r),t&4&&-1<Op.indexOf(e)){for(;i!==null;){var a=ht(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ue(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ie(o);s.entanglements[1]|=c,o&=~c}ld(a),!(Vl&6)&&(su=we()+500,ud(0,!1))}}break;case 31:case 13:s=ni(a,2),s!==null&&xu(s,a,2),Eu(),fp(a,2)}if(a=vp(r),a===null&&jd(e,t,r,yp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else jd(e,t,r,null,n)}}function vp(e){return e=en(e),bp(e)}var yp=null;function bp(e){if(yp=null,e=mt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return yp=e,null}function xp(e){switch(e){case`beforetoggle`: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`toggle`: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 2;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`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Te()){case Ee:return 2;case De:return 8;case Oe:case ke:return 32;case Ae:return 268435456;default:return 32}default:return 32}}var J=!1,Sp=null,Cp=null,wp=null,Tp=new Map,Ep=new Map,Dp=[],Op=`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`.split(` `);function kp(e,t){switch(e){case`focusin`:case`focusout`:Sp=null;break;case`dragenter`:case`dragleave`:Cp=null;break;case`mouseover`:case`mouseout`:wp=null;break;case`pointerover`:case`pointerout`:Tp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Ep.delete(t.pointerId)}}function Ap(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=ht(t),t!==null&&pp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function jp(e,t,n,r,i){switch(t){case`focusin`:return Sp=Ap(Sp,e,t,n,r,i),!0;case`dragenter`:return Cp=Ap(Cp,e,t,n,r,i),!0;case`mouseover`:return wp=Ap(wp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Tp.set(a,Ap(Tp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Ep.set(a,Ap(Ep.get(a)||null,e,t,n,r,i)),!0}return!1}function Mp(e){var t=mt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,rt(e.priority,function(){mp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,rt(e.priority,function(){mp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Np(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=vp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);$t=r,n.target.dispatchEvent(r),$t=null}else return t=ht(n),t!==null&&pp(t),e.blockedOn=n,!1;t.shift()}return!0}function Pp(e,t,n){Np(e)&&n.delete(t)}function Fp(){J=!1,Sp!==null&&Np(Sp)&&(Sp=null),Cp!==null&&Np(Cp)&&(Cp=null),wp!==null&&Np(wp)&&(wp=null),Tp.forEach(Pp),Ep.forEach(Pp)}function Ip(e,n){e.blockedOn===n&&(e.blockedOn=null,J||(J=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Fp)))}var Lp=null;function Rp(e){Lp!==e&&(Lp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Lp===e&&(Lp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(bp(r||n)===null)continue;break}var a=ht(n);a!==null&&(e.splice(t,3),t-=3,Ts(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function zp(e){function t(t){return Ip(t,e)}Sp!==null&&Ip(Sp,e),Cp!==null&&Ip(Cp,e),wp!==null&&Ip(wp,e),Tp.forEach(t),Ep.forEach(t);for(var n=0;n<Dp.length;n++){var r=Dp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Dp.length&&(n=Dp[0],n.blockedOn===null);)Mp(n),n.blockedOn===null&&Dp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[ot]||null;if(typeof a==`function`)o||Rp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[ot]||null)s=o.formAction;else if(bp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Rp(n)}}}function Bp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Vp(e){this._internalRoot=e}Hp.prototype.render=Vp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;up(n,yu(),e,t,null,null)},Hp.prototype.unmount=Vp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;up(e.current,2,null,e,null,null),Eu(),t[st]=null}};function Hp(e){this._internalRoot=e}Hp.prototype.unstable_scheduleHydration=function(e){if(e){var t=nt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dp.length&&t!==0&&t<Dp[n].priority;n++);Dp.splice(n,0,e),n===0&&Mp(e)}};var Up=n.version;if(Up!==`19.2.5`)throw Error(i(527,Up,`19.2.5`));L.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Wp={bundleType:0,version:`19.2.5`,rendererPackageName:`react-dom`,currentDispatcherRef:I,reconcilerVersion:`19.2.5`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Gp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gp.isDisabled&&Gp.supportsFiber)try{Ne=Gp.inject(Wp),Pe=Gp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Js,s=Ys,c=W;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=cp(e,1,!1,null,null,n,r,null,o,s,c,Bp),e[st]=t.current,kd(e),new Vp(t)}})),S=r(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=x()})),C=e(g(),1),w=S(),T=`popstate`;function E(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function D(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return M(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:N(t)}return F(t,n,null,e)}function O(e,t){if(e===!1||e==null)throw Error(t)}function k(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function A(){return Math.random().toString(36).substring(2,10)}function j(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function M(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?P(t):t,state:n,key:t&&t.key||r||A(),mask:i}}function N({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function P(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function F(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=E(e)?e:M(h.location,e,t);n&&n(r,e),l=u()+1;let d=j(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=E(e)?e:M(h.location,e,t);n&&n(r,e),l=u();let i=j(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return I(e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(T,d),c=e,()=>{i.removeEventListener(T,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function I(e,t=!1){let n=`http://localhost`;typeof window<`u`&&(n=window.location.origin===`null`?window.location.href:window.location.origin),O(n,`No window.location.(origin|href) available to create URL`);let r=typeof e==`string`?e:N(e);return r=r.replace(/ $/,`%20`),!t&&r.startsWith(`//`)&&(r=n+r),new URL(r,n)}function L(e,t,n=`/`){return ee(e,t,n,!1)}function ee(e,t,n,r,i){let a=_e((typeof t==`string`?P(t):t).pathname||`/`,n);if(a==null)return null;let o=i??ne(e),s=null,c=ge(a);for(let e=0;s==null&&e<o.length;++e)s=pe(o[e],c,r);return s}function te(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function ne(e){let t=re(e);return R(t),t}function re(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;O(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=Ee([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(O(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),re(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:de(l,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of ie(e.path))a(e,t,!0,n)}),t}function ie(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=ie(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function R(e){e.sort((e,t)=>e.score===t.score?fe(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var ae=/^:[\w-]+$/,oe=3,se=2,ce=1,le=10,ue=-2,z=e=>e===`*`;function de(e,t){let n=e.split(`/`),r=n.length;return n.some(z)&&(r+=ue),t&&(r+=se),n.filter(e=>!z(e)).reduce((e,t)=>e+(ae.test(t)?oe:t===``?ce:le),r)}function fe(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function pe(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u=me({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l),d=s.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=me({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!u)return null;Object.assign(i,u.params),o.push({params:i,pathname:Ee([a,u.pathname]),pathnameBase:Oe(Ee([a,u.pathnameBase])),route:d}),u.pathnameBase!==`/`&&(a=Ee([a,u.pathnameBase]))}return o}function me(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=he(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function he(e,t=!1,n=!0){k(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function ge(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return k(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function _e(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}var ve=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function ye(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?P(e):e,a;return n?(n=Te(n),a=n.startsWith(`/`)?be(n.substring(1),`/`):be(n,t)):a=t,{pathname:a,search:ke(r),hash:Ae(i)}}function be(e,t){let n=De(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function xe(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Se(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Ce(e){let t=Se(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function we(e,t,n,r=!1){let i;typeof e==`string`?i=P(e):(i={...e},O(!i.pathname||!i.pathname.includes(`?`),xe(`?`,`pathname`,`search`,i)),O(!i.pathname||!i.pathname.includes(`#`),xe(`#`,`pathname`,`hash`,i)),O(!i.search||!i.search.includes(`#`),xe(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=ye(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Te=e=>e.replace(/\/\/+/g,`/`),Ee=e=>Te(e.join(`/`)),De=e=>e.replace(/\/+$/,``),Oe=e=>De(e).replace(/^\/*/,`/`),ke=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Ae=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,je=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Me(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function Ne(e){return Ee(e.map(e=>e.route.path).filter(Boolean))||`/`}var Pe=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Fe(e,t){let n=e;if(typeof n!=`string`||!ve.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Pe)try{let e=new URL(window.location.href),r=n.startsWith(`//`)?new URL(e.protocol+n):new URL(n),a=_e(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{k(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var Ie=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(Ie);var Le=[`GET`,...Ie];new Set(Le);var Re=C.createContext(null);Re.displayName=`DataRouter`;var ze=C.createContext(null);ze.displayName=`DataRouterState`;var Be=C.createContext(!1);function Ve(){return C.useContext(Be)}var He=C.createContext({isTransitioning:!1});He.displayName=`ViewTransition`;var Ue=C.createContext(new Map);Ue.displayName=`Fetchers`;var We=C.createContext(null);We.displayName=`Await`;var Ge=C.createContext(null);Ge.displayName=`Navigation`;var Ke=C.createContext(null);Ke.displayName=`Location`;var qe=C.createContext({outlet:null,matches:[],isDataRoute:!1});qe.displayName=`Route`;var Je=C.createContext(null);Je.displayName=`RouteError`;var Ye=`REACT_ROUTER_ERROR`,Xe=`REDIRECT`,Ze=`ROUTE_ERROR_RESPONSE`;function Qe(e){if(e.startsWith(`${Ye}:${Xe}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function $e(e){if(e.startsWith(`${Ye}:${Ze}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new je(t.status,t.statusText,t.data)}catch{}}function et(e,{relative:t}={}){O(tt(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=C.useContext(Ge),{hash:i,pathname:a,search:o}=ut(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:Ee([n,a])),r.createHref({pathname:s,search:o,hash:i})}function tt(){return C.useContext(Ke)!=null}function nt(){return O(tt(),`useLocation() may be used only in the context of a <Router> component.`),C.useContext(Ke).location}var rt=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function it(e){C.useContext(Ge).static||C.useLayoutEffect(e)}function at(){let{isDataRoute:e}=C.useContext(qe);return e?kt():ot()}function ot(){O(tt(),`useNavigate() may be used only in the context of a <Router> component.`);let e=C.useContext(Re),{basename:t,navigator:n}=C.useContext(Ge),{matches:r}=C.useContext(qe),{pathname:i}=nt(),a=JSON.stringify(Ce(r)),o=C.useRef(!1);return it(()=>{o.current=!0}),C.useCallback((r,s={})=>{if(k(o.current,rt),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=we(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Ee([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var st=C.createContext(null);function ct(e){let t=C.useContext(qe).outlet;return C.useMemo(()=>t&&C.createElement(st.Provider,{value:e},t),[t,e])}function lt(){let{matches:e}=C.useContext(qe);return e[e.length-1]?.params??{}}function ut(e,{relative:t}={}){let{matches:n}=C.useContext(qe),{pathname:r}=nt(),i=JSON.stringify(Ce(n));return C.useMemo(()=>we(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function dt(e,t){return ft(e,t)}function ft(e,t,n){O(tt(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=C.useContext(Ge),{matches:i}=C.useContext(qe),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;jt(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
11
-
12
- Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=nt(),d;if(t){let e=typeof t==`string`?P(t):t;O(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):L(e,{pathname:p});k(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),k(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=yt(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Ee([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:Ee([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?C.createElement(Ke.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function pt(){let e=Ot(),t=Me(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=C.createElement(C.Fragment,null,C.createElement(`p`,null,`💿 Hey developer 👋`),C.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,C.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,C.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),C.createElement(C.Fragment,null,C.createElement(`h2`,null,`Unexpected Application Error!`),C.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?C.createElement(`pre`,{style:i},n):null,o)}var mt=C.createElement(pt,null),ht=class extends C.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,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=$e(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:C.createElement(qe.Provider,{value:this.props.routeContext},C.createElement(Je.Provider,{value:e,children:this.props.component}));return this.context?C.createElement(_t,{error:e},t):t}};ht.contextType=Be;var gt=new WeakMap;function _t({children:e,error:t}){let{basename:n}=C.useContext(Ge);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Qe(t.digest);if(e){let r=gt.get(t);if(r)throw r;let i=Fe(e.location,n);if(Pe&&!gt.get(t))if(i.isExternal||e.reloadDocument)window.location.href=i.absoluteURL||i.to;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw gt.set(t,n),n}return C.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${i.absoluteURL||i.to}`})}}return e}function vt({routeContext:e,match:t,children:n}){let r=C.useContext(Re);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),C.createElement(qe.Provider,{value:e},n)}function yt(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);O(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:Ne(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||mt,o&&(s<0&&c===0?(jt(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?C.createElement(n.route.Component,null):n.route.element?n.route.element:e,C.createElement(vt,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?C.createElement(ht,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function bt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function xt(e){let t=C.useContext(Re);return O(t,bt(e)),t}function St(e){let t=C.useContext(ze);return O(t,bt(e)),t}function Ct(e){let t=C.useContext(qe);return O(t,bt(e)),t}function wt(e){let t=Ct(e),n=t.matches[t.matches.length-1];return O(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Tt(){return wt(`useRouteId`)}function Et(){return St(`useNavigation`).navigation}function Dt(){let{matches:e,loaderData:t}=St(`useMatches`);return C.useMemo(()=>e.map(e=>te(e,t)),[e,t])}function Ot(){let e=C.useContext(Je),t=St(`useRouteError`),n=wt(`useRouteError`);return e===void 0?t.errors?.[n]:e}function kt(){let{router:e}=xt(`useNavigate`),t=wt(`useNavigate`),n=C.useRef(!1);return it(()=>{n.current=!0}),C.useCallback(async(r,i={})=>{k(n.current,rt),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var At={};function jt(e,t,n){!t&&!At[e]&&(At[e]=!0,k(!1,n))}C.memo(Mt);function Mt({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return ft(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function Nt({to:e,replace:t,state:n,relative:r}){O(tt(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i}=C.useContext(Ge);k(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:a}=C.useContext(qe),{pathname:o}=nt(),s=at(),c=we(e,Ce(a),o,r===`path`),l=JSON.stringify(c);return C.useEffect(()=>{s(JSON.parse(l),{replace:t,state:n,relative:r})},[s,l,r,t,n]),null}function Pt(e){return ct(e.context)}function Ft(e){O(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function It({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){O(!tt(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=C.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=P(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=C.useMemo(()=>{let e=_e(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return k(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:C.createElement(Ge.Provider,{value:c},C.createElement(Ke.Provider,{children:t,value:h}))}function Lt({children:e,location:t}){return dt(Rt(e),t)}C.Component;function Rt(e,t=[]){let n=[];return C.Children.forEach(e,(e,r)=>{if(!C.isValidElement(e))return;let i=[...t,r];if(e.type===C.Fragment){n.push.apply(n,Rt(e.props.children,i));return}O(e.type===Ft,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),O(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=Rt(e.props.children,i)),n.push(a)}),n}var zt=`get`,Bt=`application/x-www-form-urlencoded`;function Vt(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function Ht(e){return Vt(e)&&e.tagName.toLowerCase()===`button`}function Ut(e){return Vt(e)&&e.tagName.toLowerCase()===`form`}function Wt(e){return Vt(e)&&e.tagName.toLowerCase()===`input`}function Gt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Kt(e,t){return e.button===0&&(!t||t===`_self`)&&!Gt(e)}function qt(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function Jt(e,t){let n=qt(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var Yt=null;function Xt(){if(Yt===null)try{new FormData(document.createElement(`form`),0),Yt=!1}catch{Yt=!0}return Yt}var Zt=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function Qt(e){return e!=null&&!Zt.has(e)?(k(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Bt}"`),null):e}function $t(e,t){let n,r,i,a,o;if(Ut(e)){let o=e.getAttribute(`action`);r=o?_e(o,t):null,n=e.getAttribute(`method`)||zt,i=Qt(e.getAttribute(`enctype`))||Bt,a=new FormData(e)}else if(Ht(e)||Wt(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?_e(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||zt,i=Qt(e.getAttribute(`formenctype`))||Qt(o.getAttribute(`enctype`))||Bt,a=new FormData(o,e),!Xt()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(Vt(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=zt,r=null,i=Bt,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var en={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},tn=/[&><\u2028\u2029]/g;function nn(e){return e.replace(tn,e=>en[e])}function rn(e,t){if(e===!1||e==null)throw Error(t)}function an(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n?i.pathname.endsWith(`/`)?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname===`/`?i.pathname=`_root.${r}`:t&&_e(i.pathname,t)===`/`?i.pathname=`${De(t)}/_root.${r}`:i.pathname=`${De(i.pathname)}.${r}`,i}async function on(e,t){if(e.id in t)return t[e.id];try{let n=await i(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function sn(e){return e!=null&&typeof e.page==`string`}function cn(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function ln(e,t,n){return mn((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await on(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(cn).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function un(e,t,n,r,i,a){let o=(e,t)=>n[t]?e.route.id!==n[t].route.id:!0,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function dn(e,t,{includeHydrateFallback:n}={}){return fn(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function fn(e){return[...new Set(e)]}function pn(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function mn(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!sn(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(pn(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function hn(){let e=C.useContext(Re);return rn(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function gn(){let e=C.useContext(ze);return rn(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var _n=C.createContext(void 0);_n.displayName=`FrameworkContext`;function vn(){let e=C.useContext(_n);return rn(e,`You must render this element inside a <HydratedRouter> element`),e}function yn(e,t){let n=C.useContext(_n),[r,i]=C.useState(!1),[a,o]=C.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=C.useRef(null);C.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),C.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:bn(s,p),onBlur:bn(c,m),onMouseEnter:bn(l,p),onMouseLeave:bn(u,m),onTouchStart:bn(d,p)}]:[a,f,{}]:[!1,f,{}]}function bn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function xn({page:e,...t}){let n=Ve(),{router:r}=hn(),i=C.useMemo(()=>L(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?n?C.createElement(Cn,{page:e,matches:i,...t}):C.createElement(wn,{page:e,matches:i,...t}):null}function Sn(e){let{manifest:t,routeModules:n}=vn(),[r,i]=C.useState([]);return C.useEffect(()=>{let r=!1;return ln(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Cn({page:e,matches:t,...n}){let r=nt(),{future:i}=vn(),{basename:a}=hn(),o=C.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=an(e,a,i.unstable_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.unstable_trailingSlashAwareDataRequests,e,r,t]);return C.createElement(C.Fragment,null,o.map(e=>C.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function wn({page:e,matches:t,...n}){let r=nt(),{future:i,manifest:a,routeModules:o}=vn(),{basename:s}=hn(),{loaderData:c,matches:l}=gn(),u=C.useMemo(()=>un(e,t,l,a,r,`data`),[e,t,l,a,r]),d=C.useMemo(()=>un(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=C.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=an(e,s,i.unstable_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.unstable_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=C.useMemo(()=>dn(d,a),[d,a]),m=Sn(d);return C.createElement(C.Fragment,null,f.map(e=>C.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>C.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>C.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Tn(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}C.Component;var En=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{En&&(window.__reactRouterVersion=`7.15.0`)}catch{}function Dn({basename:e,children:t,useTransitions:n,window:r}){let i=C.useRef();i.current??=D({window:r,v5Compat:!0});let a=i.current,[o,s]=C.useState({action:a.action,location:a.location}),c=C.useCallback(e=>{n===!1?s(e):C.startTransition(()=>s(e))},[n]);return C.useLayoutEffect(()=>a.listen(c),[a,c]),C.createElement(It,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function On({basename:e,children:t,history:n,useTransitions:r}){let[i,a]=C.useState({action:n.action,location:n.location}),o=C.useCallback(e=>{r===!1?a(e):C.startTransition(()=>a(e))},[r]);return C.useLayoutEffect(()=>n.listen(o),[n,o]),C.createElement(It,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}On.displayName=`unstable_HistoryRouter`;var kn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,An=C.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=C.useContext(Ge),v=typeof l==`string`&&kn.test(l),y=Fe(l,h);l=y.to;let b=et(l,{relative:r}),x=nt(),S=null;if(o){let e=we(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:Ee([h,e.pathname])),S=g.createHref(e)}let[w,T,E]=yn(n,p),D=Ln(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function O(t){e&&e(t),t.defaultPrevented||D(t)}let k=!(y.isExternal||i),A=C.createElement(`a`,{...p,...E,href:(k?S:void 0)||y.absoluteURL||b,onClick:k?O:e,ref:Tn(m,T),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return w&&!v?C.createElement(C.Fragment,null,A,C.createElement(xn,{page:b})):A});An.displayName=`Link`;var jn=C.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=ut(a,{relative:c.relative}),d=nt(),f=C.useContext(ze),{navigator:p,basename:m}=C.useContext(Ge),h=f!=null&&Jn(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=_e(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),S={isActive:b,isPending:x,isTransitioning:h},w=b?e:void 0,T;T=typeof n==`function`?n(S):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(S):i;return C.createElement(An,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(S):s)});jn.displayName=`NavLink`;var Mn=C.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=zt,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=C.useContext(Ge),g=Vn(),_=Hn(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&kn.test(s);return C.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?C.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});Mn.displayName=`Form`;function Nn({getKey:e,storageKey:t,...n}){let r=C.useContext(_n),{basename:i}=C.useContext(Ge),a=nt(),o=Dt();Kn({getKey:e,storageKey:t});let s=C.useMemo(()=>{if(!r||!e)return null;let t=Gn(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return C.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${nn(JSON.stringify(t||Un))}, ${nn(JSON.stringify(s))})`}})}Nn.displayName=`ScrollRestoration`;function Pn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Fn(e){let t=C.useContext(Re);return O(t,Pn(e)),t}function In(e){let t=C.useContext(ze);return O(t,Pn(e)),t}function Ln(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=at(),d=nt(),f=ut(e,{relative:o});return C.useCallback(p=>{if(Kt(p,t)){p.preventDefault();let t=n===void 0?N(d)===N(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?C.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function Rn(e){k(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=C.useRef(qt(e)),n=C.useRef(!1),r=nt(),i=C.useMemo(()=>Jt(r.search,n.current?null:t.current),[r.search]),a=at();return[i,C.useCallback((e,t)=>{let r=qt(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var zn=0,Bn=()=>`__${String(++zn)}__`;function Vn(){let{router:e}=Fn(`useSubmit`),{basename:t}=C.useContext(Ge),n=Tt(),r=e.fetch,i=e.navigate;return C.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=$t(e,t);a.navigate===!1?await r(a.fetcherKey||Bn(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function Hn(e,{relative:t}={}){let{basename:n}=C.useContext(Ge),r=C.useContext(qe);O(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...ut(e||`.`,{relative:t})},o=nt();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Ee([n,a.pathname])),N(a)}var Un=`react-router-scroll-positions`,Wn={};function Gn(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:_e(e.pathname,n)||e.pathname},t)),i??=e.key,i}function Kn({getKey:e,storageKey:t}={}){let{router:n}=Fn(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=In(`useScrollRestoration`),{basename:a}=C.useContext(Ge),o=nt(),s=Dt(),c=Et();C.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),qn(C.useCallback(()=>{if(c.state===`idle`){let t=Gn(o,s,a,e);Wn[t]=window.scrollY}try{sessionStorage.setItem(t||Un,JSON.stringify(Wn))}catch(e){k(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(C.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||Un);e&&(Wn=JSON.parse(e))}catch{}},[t]),C.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(Wn,()=>window.scrollY,e?(t,n)=>Gn(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),C.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{k(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function qn(e,t){let{capture:n}=t||{};C.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function Jn(e,{relative:t}={}){let n=C.useContext(He);O(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Fn(`useViewTransitionState`),i=ut(e,{relative:t});if(!n.isTransitioning)return!1;let a=_e(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=_e(n.nextLocation.pathname,r)||n.nextLocation.pathname;return me(i.pathname,o)!=null||me(i.pathname,a)!=null}function Yn(e,...t){let n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append(`args[]`,e)),`Minified MUI error #${e}; visit ${n} for the full message.`}var Xn=`$$material`;function Zn(){return Zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zn.apply(null,arguments)}var Qn=!1;function $n(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function er(e){var t=document.createElement(`style`);return t.setAttribute(`data-emotion`,e.key),e.nonce!==void 0&&t.setAttribute(`nonce`,e.nonce),t.appendChild(document.createTextNode(``)),t.setAttribute(`data-s`,``),t}var tr=function(){function e(e){var t=this;this._insertTag=function(e){var n=t.tags.length===0?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling;t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=e.speedy===void 0?!Qn:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(er(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=$n(t);try{n.insertRule(e,n.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode?.removeChild(e)}),this.tags=[],this.ctr=0},e}(),nr=`-ms-`,rr=`-moz-`,ir=`-webkit-`,ar=`comm`,or=`rule`,sr=`decl`,cr=`@import`,lr=`@keyframes`,ur=`@layer`,dr=Math.abs,fr=String.fromCharCode,pr=Object.assign;function mr(e,t){return yr(e,0)^45?(((t<<2^yr(e,0))<<2^yr(e,1))<<2^yr(e,2))<<2^yr(e,3):0}function hr(e){return e.trim()}function gr(e,t){return(e=t.exec(e))?e[0]:e}function _r(e,t,n){return e.replace(t,n)}function vr(e,t){return e.indexOf(t)}function yr(e,t){return e.charCodeAt(t)|0}function br(e,t,n){return e.slice(t,n)}function xr(e){return e.length}function Sr(e){return e.length}function Cr(e,t){return t.push(e),e}function wr(e,t){return e.map(t).join(``)}var Tr=1,Er=1,Dr=0,Or=0,kr=0,Ar=``;function jr(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Tr,column:Er,length:o,return:``}}function Mr(e,t){return pr(jr(``,null,null,``,null,null,0),e,{length:-e.length},t)}function Nr(){return kr}function Pr(){return kr=Or>0?yr(Ar,--Or):0,Er--,kr===10&&(Er=1,Tr--),kr}function Fr(){return kr=Or<Dr?yr(Ar,Or++):0,Er++,kr===10&&(Er=1,Tr++),kr}function Ir(){return yr(Ar,Or)}function Lr(){return Or}function Rr(e,t){return br(Ar,e,t)}function zr(e){switch(e){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 Br(e){return Tr=Er=1,Dr=xr(Ar=e),Or=0,[]}function Vr(e){return Ar=``,e}function Hr(e){return hr(Rr(Or-1,Gr(e===91?e+2:e===40?e+1:e)))}function Ur(e){for(;(kr=Ir())&&kr<33;)Fr();return zr(e)>2||zr(kr)>3?``:` `}function Wr(e,t){for(;--t&&Fr()&&!(kr<48||kr>102||kr>57&&kr<65||kr>70&&kr<97););return Rr(e,Lr()+(t<6&&Ir()==32&&Fr()==32))}function Gr(e){for(;Fr();)switch(kr){case e:return Or;case 34:case 39:e!==34&&e!==39&&Gr(kr);break;case 40:e===41&&Gr(e);break;case 92:Fr();break}return Or}function Kr(e,t){for(;Fr()&&e+kr!==57&&!(e+kr===84&&Ir()===47););return`/*`+Rr(t,Or-1)+`*`+fr(e===47?e:Fr())}function qr(e){for(;!zr(Ir());)Fr();return Rr(e,Or)}function Jr(e){return Vr(Yr(``,null,null,null,[``],e=Br(e),0,[0],e))}function Yr(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=Fr()){case 40:if(m!=108&&yr(C,d-1)==58){vr(C+=_r(Hr(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=Hr(v);break;case 9:case 10:case 13:case 32:C+=Ur(m);break;case 92:C+=Wr(Lr()-1,7);continue;case 47:switch(Ir()){case 42:case 47:Cr(Zr(Kr(Fr(),Lr()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=xr(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=_r(C,/\f/g,``)),p>0&&xr(C)-d&&Cr(p>32?Qr(C+`;`,r,n,d-1):Qr(_r(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(Cr(S=Xr(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123)if(u===0)Yr(C,t,S,S,b,a,d,s,x);else switch(f===99&&yr(C,3)===110?100:f){case 100:case 108:case 109:case 115:Yr(e,S,S,r&&Cr(Xr(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:Yr(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+xr(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&Pr()==125)continue}switch(C+=fr(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(xr(C)-1)*_,_=1;break;case 64:Ir()===45&&(C+=Hr(Fr())),f=Ir(),u=d=xr(y=C+=qr(Lr())),v++;break;case 45:m===45&&xr(C)==2&&(h=0)}}return a}function Xr(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=Sr(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=br(e,d+1,d=dr(h=o[m])),y=e;_<p;++_)(y=hr(h>0?f[_]+` `+v:_r(v,/&\f/g,f[_])))&&(c[g++]=y);return jr(e,t,n,i===0?or:s,c,l,u)}function Zr(e,t,n){return jr(e,t,n,ar,fr(Nr()),br(e,2,-2),0)}function Qr(e,t,n,r){return jr(e,t,n,sr,br(e,0,r),br(e,r+1,-1),r)}function $r(e,t){for(var n=``,r=Sr(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function ei(e,t,n,r){switch(e.type){case ur:if(e.children.length)break;case cr:case sr:return e.return=e.return||e.value;case ar:return``;case lr:return e.return=e.value+`{`+$r(e.children,r)+`}`;case or:e.value=e.props.join(`,`)}return xr(n=$r(e.children,r))?e.return=e.value+`{`+n+`}`:``}function ti(e){var t=Sr(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function ni(e){return function(t){t.root||(t=t.return)&&e(t)}}function ri(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var ii=t((()=>{})),ai=function(e,t,n){for(var r=0,i=0;r=i,i=Ir(),r===38&&i===12&&(t[n]=1),!zr(i);)Fr();return Rr(e,Or)},oi=function(e,t){var n=-1,r=44;do switch(zr(r)){case 0:r===38&&Ir()===12&&(t[n]=1),e[n]+=ai(Or-1,t,n);break;case 2:e[n]+=Hr(r);break;case 4:if(r===44){e[++n]=Ir()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=fr(r)}while(r=Fr());return e},si=function(e,t){return Vr(oi(Br(e),t))},ci=new WeakMap,li=function(e){if(!(e.type!==`rule`||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!==`rule`;)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!ci.get(n))&&!r){ci.set(e,!0);for(var i=[],a=si(t,i),o=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=i[s]?a[s].replace(/&\f/g,o[l]):o[l]+` `+a[s]}}},ui=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function di(e,t){switch(mr(e,t)){case 5103:return ir+`print-`+e+e;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 ir+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ir+e+rr+e+nr+e+e;case 6828:case 4268:return ir+e+nr+e+e;case 6165:return ir+e+nr+`flex-`+e+e;case 5187:return ir+e+_r(e,/(\w+).+(:[^]+)/,ir+`box-$1$2`+nr+`flex-$1$2`)+e;case 5443:return ir+e+nr+`flex-item-`+_r(e,/flex-|-self/,``)+e;case 4675:return ir+e+nr+`flex-line-pack`+_r(e,/align-content|flex-|-self/,``)+e;case 5548:return ir+e+nr+_r(e,`shrink`,`negative`)+e;case 5292:return ir+e+nr+_r(e,`basis`,`preferred-size`)+e;case 6060:return ir+`box-`+_r(e,`-grow`,``)+ir+e+nr+_r(e,`grow`,`positive`)+e;case 4554:return ir+_r(e,/([^-])(transform)/g,`$1`+ir+`$2`)+e;case 6187:return _r(_r(_r(e,/(zoom-|grab)/,ir+`$1`),/(image-set)/,ir+`$1`),e,``)+e;case 5495:case 3959:return _r(e,/(image-set\([^]*)/,ir+"$1$`$1");case 4968:return _r(_r(e,/(.+:)(flex-)?(.*)/,ir+`box-pack:$3`+nr+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+ir+e+e;case 4095:case 3583:case 4068:case 2532:return _r(e,/(.+)-inline(.+)/,ir+`$1$2`)+e;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(xr(e)-1-t>6)switch(yr(e,t+1)){case 109:if(yr(e,t+4)!==45)break;case 102:return _r(e,/(.+:)(.+)-([^]+)/,`$1`+ir+`$2-$3$1`+rr+(yr(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~vr(e,`stretch`)?di(_r(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(yr(e,t+1)!==115)break;case 6444:switch(yr(e,xr(e)-3-(~vr(e,`!important`)&&10))){case 107:return _r(e,`:`,`:`+ir)+e;case 101:return _r(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+ir+(yr(e,14)===45?`inline-`:``)+`box$3$1`+ir+`$2$3$1`+nr+`$2box$3`)+e}break;case 5936:switch(yr(e,t+11)){case 114:return ir+e+nr+_r(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return ir+e+nr+_r(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return ir+e+nr+_r(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return ir+e+nr+e+e}return e}var fi=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case sr:e.return=di(e.value,e.length);break;case lr:return $r([Mr(e,{value:_r(e.value,`@`,`@`+ir)})],r);case or:if(e.length)return wr(e.props,function(t){switch(gr(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return $r([Mr(e,{props:[_r(t,/:(read-\w+)/,`:`+rr+`$1`)]})],r);case`::placeholder`:return $r([Mr(e,{props:[_r(t,/:(plac\w+)/,`:`+ir+`input-$1`)]}),Mr(e,{props:[_r(t,/:(plac\w+)/,`:`+rr+`$1`)]}),Mr(e,{props:[_r(t,/:(plac\w+)/,nr+`input-$1`)]})],r)}return``})}}],pi=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){e.getAttribute(`data-emotion`).indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||fi,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n<t.length;n++)i[t[n]]=!0;o.push(e)});var s,c=[li,ui],l,u=[ei,ni(function(e){l.insert(e)})],d=ti(c.concat(r,u)),f=function(e){return $r(Jr(e),d)};s=function(e,t,n,r){l=n,f(e?e+`{`+t.styles+`}`:t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new tr({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p},mi=r((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),hi=r(((e,t)=>{t.exports=mi()})),gi=r(((e,t)=>{var n=hi(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h})),_i=!0;function vi(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var yi=function(e,t,n){var r=e.key+`-`+t.name;(n===!1||_i===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},bi=function(e,t,n){yi(e,t,n);var r=e.key+`-`+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?`.`+r:``,i,e.sheet,!0),i=i.next;while(i!==void 0)}};function xi(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Si={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};ii();var Ci=!1,wi=/[A-Z]|^ms/g,Ti=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ei=function(e){return e.charCodeAt(1)===45},Di=function(e){return e!=null&&typeof e!=`boolean`},Oi=ri(function(e){return Ei(e)?e:e.replace(wi,`-$&`).toLowerCase()}),ki=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(Ti,function(e,t,n){return Pi={name:t,styles:n,next:Pi},t})}return Si[e]!==1&&!Ei(e)&&typeof t==`number`&&t!==0?t+`px`:t},Ai=`Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.`;function ji(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;if(i.anim===1)return Pi={name:i.name,styles:i.styles,next:Pi},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)Pi={name:o.name,styles:o.styles,next:Pi},o=o.next;return a.styles+`;`}return Mi(e,t,n);case`function`:if(e!==void 0){var s=Pi,c=n(e);return Pi=s,ji(e,t,c)}break}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function Mi(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=ji(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:Di(s)&&(r+=Oi(a)+`:`+ki(a,s)+`;`)}else{if(a===`NO_COMPONENT_SELECTOR`&&Ci)throw Error(Ai);if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)Di(o[c])&&(r+=Oi(a)+`:`+ki(a,o[c])+`;`);else{var l=ji(e,t,o);switch(a){case`animation`:case`animationName`:r+=Oi(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}}return r}var Ni=/label:\s*([^\s;{]+)\s*(;|$)/g,Pi;function Fi(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;Pi=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,i+=ji(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=ji(n,t,e[o]),r&&(i+=a[o]);Ni.lastIndex=0;for(var s=``,c;(c=Ni.exec(i))!==null;)s+=`-`+c[1];return{name:xi(i)+s,styles:i,next:Pi}}var Ii=function(e){return e()},Li=C.useInsertionEffect?C.useInsertionEffect:!1,Ri=Li||Ii,zi=Li||C.useLayoutEffect,Bi=C.createContext(typeof HTMLElement<`u`?pi({key:`css`}):null),Vi=Bi.Provider,Hi=function(e){return(0,C.forwardRef)(function(t,n){return e(t,(0,C.useContext)(Bi),n)})},Ui=C.createContext({}),Wi={}.hasOwnProperty,Gi=`__EMOTION_TYPE_PLEASE_DO_NOT_USE__`,Ki=function(e,t){var n={};for(var r in t)Wi.call(t,r)&&(n[r]=t[r]);return n[Gi]=e,n},qi=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return yi(t,n,r),Ri(function(){return bi(t,n,r)}),null},Ji=Hi(function(e,t,n){var r=e.css;typeof r==`string`&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Gi],a=[r],o=``;typeof e.className==`string`?o=vi(t.registered,a,e.className):e.className!=null&&(o=e.className+` `);var s=Fi(a,void 0,C.useContext(Ui));o+=t.key+`-`+s.name;var c={};for(var l in e)Wi.call(e,l)&&l!==`css`&&l!==Gi&&(c[l]=e[l]);return c.className=o,n&&(c.ref=n),C.createElement(C.Fragment,null,C.createElement(qi,{cache:t,serialized:s,isStringTag:typeof i==`string`}),C.createElement(i,c))});gi();var Yi=function(e,t){var n=arguments;if(t==null||!Wi.call(t,`css`))return C.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=Ji,i[1]=Ki(e,t);for(var a=2;a<r;a++)i[a]=n[a];return C.createElement.apply(null,i)};(function(e){var t;(function(e){})(t||=e.JSX||={})})(Yi||={});var Xi=Hi(function(e,t){var n=e.styles,r=Fi([n],void 0,C.useContext(Ui)),i=C.useRef();return zi(function(){var e=t.key+`-global`,n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,o=document.querySelector(`style[data-emotion="`+e+` `+r.name+`"]`);return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),o!==null&&(a=!0,o.setAttribute(`data-emotion`,e),n.hydrate([o])),i.current=[n,a],function(){n.flush()}},[t]),zi(function(){var e=i.current,n=e[0];if(e[1]){e[1]=!1;return}r.next!==void 0&&bi(t,r.next,!0),n.tags.length&&(n.before=n.tags[n.tags.length-1].nextElementSibling,n.flush()),t.insert(``,r,n,!1)},[t,r.name]),null});function Zi(){return Fi([...arguments])}function Qi(){var e=Zi.apply(void 0,arguments),t=`animation-`+e.name;return{name:t,styles:`@keyframes `+t+`{`+e.styles+`}`,anim:1,toString:function(){return`_EMO_`+this.name+`_`+this.styles+`_EMO_`}}}var $i,ea;t((()=>{ii(),$i=/^((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)-.*))$/,ea=ri(function(e){return $i.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})}))();var ta=!1,na=ea,ra=function(e){return e!==`theme`},ia=function(e){return typeof e==`string`&&e.charCodeAt(0)>96?na:ra},aa=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return typeof r!=`function`&&n&&(r=e.__emotion_forwardProp),r},oa=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return yi(t,n,r),Ri(function(){return bi(t,n,r)}),null},sa=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,o;n!==void 0&&(a=n.label,o=n.target);var s=aa(t,n,r),c=s||ia(i),l=!c(`as`);return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push(`label:`+a+`;`),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,m=1;m<p;m++)d.push(u[m],f[m])}var h=Hi(function(e,t,n){var r=l&&e.as||i,a=``,u=[],f=e;if(e.theme==null){for(var p in f={},e)f[p]=e[p];f.theme=C.useContext(Ui)}typeof e.className==`string`?a=vi(t.registered,u,e.className):e.className!=null&&(a=e.className+` `);var m=Fi(d.concat(u),t.registered,f);a+=t.key+`-`+m.name,o!==void 0&&(a+=` `+o);var h=l&&s===void 0?ia(r):c,g={};for(var _ in e)l&&_===`as`||h(_)&&(g[_]=e[_]);return g.className=a,n&&(g.ref=n),C.createElement(C.Fragment,null,C.createElement(oa,{cache:t,serialized:m,isStringTag:typeof r==`string`}),C.createElement(r,g))});return h.displayName=a===void 0?`Styled(`+(typeof i==`string`?i:i.displayName||i.name||`Component`)+`)`:a,h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,`toString`,{value:function(){return o===void 0&&ta?`NO_COMPONENT_SELECTOR`:`.`+o}}),h.withComponent=function(t,r){return e(t,Zn({},n,r,{shouldForwardProp:aa(h,r,!0)})).apply(void 0,d)},h}},ca=`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`.split(`.`),la=sa.bind(null);ca.forEach(function(e){la[e]=la(e)});var ua=r(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),da=r(((e,t)=>{var n=ua();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),fa=r(((e,t)=>{t.exports=da()()})),pa=r((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),ma=r(((e,t)=>{t.exports=pa()})),B=ma();function ha(e){return e==null||Object.keys(e).length===0}function ga(e){let{styles:t,defaultTheme:n={}}=e;return(0,B.jsx)(Xi,{styles:typeof t==`function`?e=>t(ha(e)?n:e):t})}function _a(e,t){return la(e,t)}function va(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var ya=[];function ba(e){return ya[0]=e,Fi(ya)}var xa=r((e=>{var t=Symbol.for(`react.fragment`),n=Symbol.for(`react.strict_mode`),r=Symbol.for(`react.profiler`),i=Symbol.for(`react.consumer`),a=Symbol.for(`react.context`),o=Symbol.for(`react.forward_ref`),s=Symbol.for(`react.suspense`),c=Symbol.for(`react.suspense_list`),l=Symbol.for(`react.memo`),u=Symbol.for(`react.lazy`),d=Symbol.for(`react.client.reference`);e.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===t||e===r||e===n||e===s||e===c||typeof e==`object`&&e&&(e.$$typeof===u||e.$$typeof===l||e.$$typeof===a||e.$$typeof===i||e.$$typeof===o||e.$$typeof===d||e.getModuleId!==void 0))}})),Sa=r(((e,t)=>{t.exports=xa()}))();function Ca(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function wa(e){if(C.isValidElement(e)||(0,Sa.isValidElementType)(e)||!Ca(e))return e;let t={};return Object.keys(e).forEach(n=>{t[n]=wa(e[n])}),t}function Ta(e,t,n={clone:!0}){let r=n.clone?{...e}:e;return Ca(e)&&Ca(t)&&Object.keys(t).forEach(i=>{C.isValidElement(t[i])||(0,Sa.isValidElementType)(t[i])?r[i]=t[i]:Ca(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Ca(e[i])?r[i]=Ta(e[i],t[i],n):n.clone?r[i]=Ca(t[i])?wa(t[i]):t[i]:r[i]=t[i]}),r}var Ea=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})};function Da(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n=`px`,step:r=5,...i}=e,a=Ea(t),o=Object.keys(a);function s(e){return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n})`}function c(e){return`@media (max-width:${(typeof t[e]==`number`?t[e]:e)-r/100}${n})`}function l(e,i){let a=o.indexOf(i);return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n}) and (max-width:${(a!==-1&&typeof t[o[a]]==`number`?t[o[a]]:i)-r/100}${n})`}function u(e){return o.indexOf(e)+1<o.length?l(e,o[o.indexOf(e)+1]):s(e)}function d(e){let t=o.indexOf(e);return t===0?s(o[1]):t===o.length-1?c(o[t]):l(e,o[o.indexOf(e)+1]).replace(`@media`,`@media not all and`)}let f=[];for(let e=0;e<o.length;e+=1)f.push(s(o[e]));return{keys:o,values:a,up:s,down:c,between:l,only:u,not:d,unit:n,internal_mediaKeys:f,...i}}var Oa=/min-width:\s*([0-9.]+)/;function ka(e,t){if(!e.containerQueries||!Aa(t))return t;let n=[];for(let e in t)e.startsWith(`@container`)&&n.push(e);n.sort((e,t)=>(e.match(Oa)?.[1]||0)-+(t.match(Oa)?.[1]||0));let r=t;for(let e=0;e<n.length;e+=1){let t=n[e],i=r[t];delete r[t],r[t]=i}return r}function Aa(e){for(let t in e)if(t.startsWith(`@container`))return!0;return!1}function ja(e,t){return t===`@`||t.startsWith(`@`)&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}function Ma(e,t){let n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;let[,r,i]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(a)}function Na(e){let t=(e,t)=>e.replace(`@media`,t?`@container ${t}`:`@container`);function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{let i=t(e.breakpoints.not(...n),r);return i.includes(`not all and`)?i.replace(`not all and `,``).replace(`min-width:`,`width<`).replace(`max-width:`,`width>`).replace(`and`,`or`):i}}let r={},i=e=>(n(r,e),r);return n(i),{...e,containerQueries:i}}var Pa={borderRadius:4};function Fa(e){if(e==null)return!0;for(let t in e)return!1;return!0}function Ia(e,t){let n=Array.isArray(t),r=Array.isArray(e);return Va(t)?t:Ha(e)?Ua(t):n&&r?za(e,t):n===r?Wa(e,t):Ua(t)}function La(e){let t=0,n=e.length,r=Array(n);for(t=0;t<n;t+=1)r[t]=Ua(e[t]);return r}function Ra(e){let t={};for(let n in e)t[n]=Ua(e[n]);return t}function za(e,t){let n=e.length;for(let r=0;r<t.length;r+=1)e[n+r]=Ua(t[r]);return e}function Ba(e){return typeof e==`object`&&!!e&&!(e instanceof RegExp)&&!(e instanceof Date)}function Va(e){return typeof e!=`object`||!e}function Ha(e){return typeof e!=`object`||!e||e instanceof RegExp||e instanceof Date}function Ua(e){return Ba(e)?Array.isArray(e)?La(e):Ra(e):e}function Wa(e,t){for(let n in t)n in e?e[n]=Ia(e[n],t[n]):e[n]=Ua(t[n]);return e}var Ga={},Ka={xs:0,sm:600,md:900,lg:1200,xl:1536},qa=Da({values:Ka}),Ja={containerQueries:e=>({up:t=>{let n=typeof t==`number`?t:Ka[t]||t;return typeof n==`number`&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Ya(e,t,n){let r={};return Xa(r,e.theme,t,(e,t,i)=>{let a=n(t,i);e?r[e]=a:Ia(r,a)})}function Xa(e,t,n,r){if(t??=Ga,Array.isArray(n)){let i=t.breakpoints??qa;for(let t=0;t<n.length;t+=1)Za(e,i.up(i.keys[t]),n[t],void 0,r);return e}if(typeof n==`object`){let i=t.breakpoints??qa,a=i.values??Ka;for(let o in n)if(ja(i.keys,o)){let i=Ma(t.containerQueries?t:Ja,o);i&&Za(e,i,n[o],o,r)}else if(o in a)Za(e,i.up(o),n[o],o,r);else{let t=o;e[t]=n[t]}return e}return r(void 0,n),e}function Za(e,t,n,r,i){e[t]??={},i(t,n,r)}function Qa(e=qa){let{internal_mediaKeys:t}=e,n={};for(let e=0;e<t.length;e+=1)n[t[e]]={};return n}function $a(e,t){let n=e.internal_mediaKeys;for(let e=0;e<n.length;e+=1){let r=n[e];Fa(t[r])&&delete t[r]}return t}function eo(e,...t){return $a(e,[Qa(e),...t].reduce((e,t)=>Ta(e,t),{}))}function to(e,t){if(typeof e!=`object`)return{};let n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r<e.length&&(n[t]=!0)}):r.forEach(t=>{e[t]!=null&&(n[t]=!0)}),n}function no({values:e,breakpoints:t,base:n}){let r=n||to(e,t),i=Object.keys(r);if(i.length===0)return e;let a;return i.reduce((t,n,r)=>(Array.isArray(e)?(t[n]=e[r]==null?e[a]:e[r],a=r):typeof e==`object`?(t[n]=e[n]==null?e[a]:e[n],a=n):t[n]=e,t),{})}function ro(e,t){if(Array.isArray(t))return!0;if(typeof t==`object`&&t){for(let n=0;n<e.keys.length;n+=1)if(e.keys[n]in t)return!0;let n=Object.keys(t);for(let t=0;t<n.length;t+=1)if(ja(e.keys,n[t]))return!0}return!1}function io(e){if(typeof e!=`string`)throw Error(Yn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ao(e,t,n,r){let i;return i=typeof e==`function`?e(n):Array.isArray(e)?e[n]||n:typeof n==`string`&&oo(e,n,!0,r)||n,t&&(i=t(i,n,e)),i}function oo(e,t,n=!0,r=void 0){if(!e||!t)return null;let i=t.split(`.`);if(e.vars&&n){let t=so(e.vars,i,r);if(t!=null)return t}return so(e,i,r)}function so(e,t,n=void 0){let r,i=e,a=0;for(;a<t.length;){if(i==null)return i;r=i,i=i[t[a]],a+=1}if(n&&i===void 0){let e=t[t.length-1],i=`${n}${e===`default`?``:io(e)}`;return r?.[i]}return i}function co(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=e=>{if(e[t]==null)return null;let a=e[t],o=e.theme,s=oo(o,r)||{};return Ya(e,a,e=>{let r=ao(s,i,e,t);return n===!1?r:{[n]:r}})};return a.propTypes={},a.filterProps=[t],a}var lo={internal_cache:{}},uo={m:`margin`,p:`padding`},fo={t:`Top`,r:`Right`,b:`Bottom`,l:`Left`,x:[`Left`,`Right`],y:[`Top`,`Bottom`]},po={marginX:`mx`,marginY:`my`,paddingX:`px`,paddingY:`py`},mo={};for(let e in uo)mo[e]=[uo[e]];for(let e in uo)for(let t in fo){let n=uo[e],r=fo[t],i=Array.isArray(r)?r.map(e=>n+e):[n+r];mo[e+t]=i}for(let e in po)mo[e]=mo[po[e]];var ho=new Set([`m`,`mt`,`mr`,`mb`,`ml`,`mx`,`my`,`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginX`,`marginY`,`marginInline`,`marginInlineStart`,`marginInlineEnd`,`marginBlock`,`marginBlockStart`,`marginBlockEnd`]),go=new Set([`p`,`pt`,`pr`,`pb`,`pl`,`px`,`py`,`padding`,`paddingTop`,`paddingRight`,`paddingBottom`,`paddingLeft`,`paddingX`,`paddingY`,`paddingInline`,`paddingInlineStart`,`paddingInlineEnd`,`paddingBlock`,`paddingBlockStart`,`paddingBlockEnd`]),_o=new Set([...ho,...go]);function vo(e,t,n,r){let i=oo(e,t,!0)??n;return typeof i==`number`||typeof i==`string`?e=>typeof e==`string`?e:typeof i==`string`?i.startsWith(`var(`)&&e===0?0:i.startsWith(`var(`)&&e===1?i:`calc(${e} * ${i})`:i*e:Array.isArray(i)?e=>{if(typeof e==`string`)return e;let t=i[Math.abs(e)];return e>=0?t:typeof t==`number`?-t:typeof t==`string`&&t.startsWith(`var(`)?`calc(-1 * ${t})`:`-${t}`}:typeof i==`function`?i:()=>void 0}function yo(e){return vo(e,`spacing`,8,`spacing`)}function bo(e,t){return typeof t==`string`||t==null?t:e(t)}var xo=[``];function So(e,t){let n=e.theme??lo,r=n?.internal_cache?.unarySpacing??yo(n),i={};for(let n in e){if(!t.has(n))continue;let a=mo[n]??(xo[0]=n,xo),o=e[n];Xa(i,e.theme,o,(e,t)=>{let n=e?i[e]:i;for(let e=0;e<a.length;e+=1)n[a[e]]=bo(r,t)})}return i}function Co(e){return So(e,ho)}Co.propTypes={},Co.filterProps=ho;function wo(e){return So(e,go)}wo.propTypes={},wo.filterProps=go;function To(e){return So(e,_o)}To.propTypes={},To.filterProps=_o;function Eo(e=8,t=yo({spacing:e})){if(e.mui)return e;let n=(...e)=>(e.length===0?[1]:e).map(e=>{let n=t(e);return typeof n==`number`?`${n}px`:n}).join(` `);return n.mui=!0,n}function Do(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>{let n={};for(let r in e)t[r]&&Ia(n,t[r](e));return n};return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function Oo(e){return typeof e==`number`?`${e}px solid`:e}function ko(e,t){return co({prop:e,themeKey:`borders`,transform:t})}var Ao=ko(`border`,Oo),jo=ko(`borderTop`,Oo),Mo=ko(`borderRight`,Oo),No=ko(`borderBottom`,Oo),Po=ko(`borderLeft`,Oo),Fo=ko(`borderColor`),Io=ko(`borderTopColor`),Lo=ko(`borderRightColor`),Ro=ko(`borderBottomColor`),zo=ko(`borderLeftColor`),Bo=ko(`outline`,Oo),Vo=ko(`outlineColor`),Ho=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=vo(e.theme,`shape.borderRadius`,4,`borderRadius`);return Ya(e,e.borderRadius,e=>({borderRadius:bo(t,e)}))}return null};Ho.propTypes={},Ho.filterProps=[`borderRadius`],Do(Ao,jo,Mo,No,Po,Fo,Io,Lo,Ro,zo,Ho,Bo,Vo);var Uo=e=>{if(e.gap!==void 0&&e.gap!==null){let t=vo(e.theme,`spacing`,8,`gap`);return Ya(e,e.gap,e=>({gap:bo(t,e)}))}return null};Uo.propTypes={},Uo.filterProps=[`gap`];var Wo=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=vo(e.theme,`spacing`,8,`columnGap`);return Ya(e,e.columnGap,e=>({columnGap:bo(t,e)}))}return null};Wo.propTypes={},Wo.filterProps=[`columnGap`];var Go=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=vo(e.theme,`spacing`,8,`rowGap`);return Ya(e,e.rowGap,e=>({rowGap:bo(t,e)}))}return null};Go.propTypes={},Go.filterProps=[`rowGap`],Do(Uo,Wo,Go,co({prop:`gridColumn`}),co({prop:`gridRow`}),co({prop:`gridAutoFlow`}),co({prop:`gridAutoColumns`}),co({prop:`gridAutoRows`}),co({prop:`gridTemplateColumns`}),co({prop:`gridTemplateRows`}),co({prop:`gridTemplateAreas`}),co({prop:`gridArea`}));function Ko(e,t){return t===`grey`?t:e}Do(co({prop:`color`,themeKey:`palette`,transform:Ko}),co({prop:`bgcolor`,cssProperty:`backgroundColor`,themeKey:`palette`,transform:Ko}),co({prop:`backgroundColor`,themeKey:`palette`,transform:Ko}));function qo(e){return e<=1&&e!==0?`${e*100}%`:e}var Jo=co({prop:`width`,transform:qo}),Yo=e=>e.maxWidth!==void 0&&e.maxWidth!==null?Ya(e,e.maxWidth,t=>{let n=e.theme?.breakpoints?.values?.[t]||Ka[t];return n?e.theme?.breakpoints?.unit===`px`?{maxWidth:n}:{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:qo(t)}}):null;Yo.filterProps=[`maxWidth`];var Xo=co({prop:`minWidth`,transform:qo}),Zo=co({prop:`height`,transform:qo}),Qo=co({prop:`maxHeight`,transform:qo}),$o=co({prop:`minHeight`,transform:qo});co({prop:`size`,cssProperty:`width`,transform:qo}),co({prop:`size`,cssProperty:`height`,transform:qo}),Do(Jo,Yo,Xo,Zo,Qo,$o,co({prop:`boxSizing`}));var es={border:{themeKey:`borders`,transform:Oo},borderTop:{themeKey:`borders`,transform:Oo},borderRight:{themeKey:`borders`,transform:Oo},borderBottom:{themeKey:`borders`,transform:Oo},borderLeft:{themeKey:`borders`,transform:Oo},borderColor:{themeKey:`palette`},borderTopColor:{themeKey:`palette`},borderRightColor:{themeKey:`palette`},borderBottomColor:{themeKey:`palette`},borderLeftColor:{themeKey:`palette`},outline:{themeKey:`borders`,transform:Oo},outlineColor:{themeKey:`palette`},borderRadius:{themeKey:`shape.borderRadius`,style:Ho},color:{themeKey:`palette`,transform:Ko},bgcolor:{themeKey:`palette`,cssProperty:`backgroundColor`,transform:Ko},backgroundColor:{themeKey:`palette`,transform:Ko},p:{style:wo},pt:{style:wo},pr:{style:wo},pb:{style:wo},pl:{style:wo},px:{style:wo},py:{style:wo},padding:{style:wo},paddingTop:{style:wo},paddingRight:{style:wo},paddingBottom:{style:wo},paddingLeft:{style:wo},paddingX:{style:wo},paddingY:{style:wo},paddingInline:{style:wo},paddingInlineStart:{style:wo},paddingInlineEnd:{style:wo},paddingBlock:{style:wo},paddingBlockStart:{style:wo},paddingBlockEnd:{style:wo},m:{style:Co},mt:{style:Co},mr:{style:Co},mb:{style:Co},ml:{style:Co},mx:{style:Co},my:{style:Co},margin:{style:Co},marginTop:{style:Co},marginRight:{style:Co},marginBottom:{style:Co},marginLeft:{style:Co},marginX:{style:Co},marginY:{style:Co},marginInline:{style:Co},marginInlineStart:{style:Co},marginInlineEnd:{style:Co},marginBlock:{style:Co},marginBlockStart:{style:Co},marginBlockEnd:{style:Co},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Uo},rowGap:{style:Go},columnGap:{style:Wo},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:`zIndex`},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:`shadows`},width:{transform:qo},maxWidth:{style:Yo},minWidth:{transform:qo},height:{transform:qo},maxHeight:{transform:qo},minHeight:{transform:qo},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`}},ts={};function ns(){function e(t){if(!t.sx)return null;let{sx:n,theme:r=ts,nested:i}=t,a=r.unstable_sxConfig??es,o={sx:null,theme:r,nested:!0};function s(n){let s=n;if(typeof n==`function`)s=n(r);else if(typeof n!=`object`)return n;if(!s)return null;let c=r.breakpoints??qa,l=Qa(c);for(let n in s){let i=as(s[n],r);if(i!=null){if(typeof i!=`object`){is(l,n,i,r,a);continue}if(a[n]){is(l,n,i,r,a);continue}ro(c,i)?Xa(l,t.theme,i,(e,t)=>{l[e][n]=t}):(o.sx=i,l[n]=e(o))}}return!i&&r.modularCssLayers?{"@layer sx":ka(r,$a(c,l))}:ka(r,$a(c,l))}return Array.isArray(n)?n.map(s):s(n)}return e.filterProps=[`sx`],e}var rs=ns();function is(e,t,n,r,i){let a=i[t];if(!a){e[t]=n;return}if(n==null)return;let{themeKey:o}=a;if(o===`typography`&&n===`inherit`){e[t]=n;return}let{style:s}=a;if(s){Ia(e,s({[t]:n,theme:r}));return}let{cssProperty:c=t,transform:l}=a,u=oo(r,o);Xa(e,r,n,(n,r)=>{let i=ao(u,l,r,t);c===!1?Ia(n?e[n]:e,i):n?e[n][c]=i:e[c]=i})}function as(e,t){return typeof e==`function`?e(t):e}function ss(e,t){let n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!=`function`)return{};let r=n.getColorSchemeSelector(e);return r===`&`?t:((r.includes(`data-`)||r.includes(`.`))&&(r=`*:where(${r.replace(/\s*&$/,``)}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function cs(e={},...t){let{breakpoints:n={},palette:r={},spacing:i,shape:a={},...o}=e,s=Da(n),c=Eo(i),l=Ta({breakpoints:s,direction:`ltr`,components:{},palette:{mode:`light`,...r},spacing:c,shape:{...Pa,...a}},o);return l=Na(l),l.applyStyles=ss,l=t.reduce((e,t)=>Ta(e,t),l),l.unstable_sxConfig={...es,...o?.unstable_sxConfig},l.unstable_sx=function(e){return rs({sx:e,theme:this})},l.internal_cache={},l}function ls(e){return Object.keys(e).length===0}function us(e=null){let t=C.useContext(Ui);return!t||ls(t)?e:t}var ds=cs();function fs(e=ds){return us(e)}function ps(e){let t=ba(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function ms({styles:e,themeId:t,defaultTheme:n={}}){let r=fs(n),i=t&&r[t]||r,a=typeof e==`function`?e(i):e;return i.modularCssLayers&&(a=Array.isArray(a)?a.map(e=>ps(typeof e==`function`?e(i):e)):ps(a)),(0,B.jsx)(ga,{styles:a})}var hs=e=>e,gs=(()=>{let e=hs;return{configure(t){e=t},generate(t){return e(t)},reset(){e=hs}}})();function _s(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=_s(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function V(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=_s(e))&&(r&&(r+=` `),r+=t);return r}function vs(e={}){let{themeId:t,defaultTheme:n,defaultClassName:r=`MuiBox-root`,generateClassName:i}=e,a=_a(`div`,{shouldForwardProp:e=>e!==`theme`&&e!==`sx`&&e!==`as`})(rs);return C.forwardRef(function(e,o){let s=fs(n),{className:c,component:l=`div`,...u}=e;return(0,B.jsx)(a,{as:l,ref:o,className:V(c,i?i(r):r),theme:t&&s[t]||s,...u})})}var ys={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 H(e,t,n=`Mui`){let r=ys[t];return r?`${n}-${r}`:`${gs.generate(e)}-${t}`}function U(e,t,n=`Mui`){let r={};return t.forEach(t=>{r[t]=H(e,t,n)}),r}function bs(e){let{variants:t,...n}=e,r={variants:t,style:ba(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{typeof e.style!=`function`&&(e.style=ba(e.style))}),r}var xs=cs();function Ss(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}function Cs(e,t){return t&&e&&typeof e==`object`&&e.styles&&!e.styles.startsWith(`@layer`)&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function ws(e){return e?(t,n)=>n[e]:null}function Ts(e,t,n){e.theme=Fa(e.theme)?n:e.theme[t]||e.theme}function Es(e,t,n){let r=typeof t==`function`?t(e):t;if(Array.isArray(r))return r.flatMap(t=>Es(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?Cs(r.style,n):r.style;else{let{variants:e,...i}=r;t=n?Cs(ba(i),n):i}return Ds(e,r.variants,[t],n)}return r?.isProcessed?n?Cs(ba(r.style),n):r.style:n?Cs(ba(r),n):r}function Ds(e,t,n=[],r=void 0){let i;variantLoop:for(let a=0;a<t.length;a+=1){let o=t[a];if(typeof o.props==`function`){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!o.props(i))continue}else for(let t in o.props)if(e[t]!==o.props[t]&&e.ownerState?.[t]!==o.props[t])continue variantLoop;typeof o.style==`function`?(i??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?Cs(ba(o.style(i)),r):o.style(i))):n.push(r?Cs(ba(o.style),r):o.style)}return n}function Os(e={}){let{themeId:t,defaultTheme:n=xs,rootShouldForwardProp:r=Ss,slotShouldForwardProp:i=Ss}=e;function a(e){Ts(e,t,n)}return(e,t={})=>{va(e,e=>e.filter(e=>e!==rs));let{name:n,slot:o,skipVariantsResolver:s,skipSx:c,overridesResolver:l=ws(As(o)),...u}=t,d=n&&n.startsWith(`Mui`)||o?`components`:`custom`,f=s===void 0?o&&o!==`Root`&&o!==`root`||!1:s,p=c||!1,m=Ss;o===`Root`||o===`root`?m=r:o?m=i:ks(e)&&(m=void 0);let h=_a(e,{shouldForwardProp:m,label:void 0,...u}),g=e=>{if(e.__emotion_real===e)return e;if(typeof e==`function`)return function(t){return Es(t,e,t.theme.modularCssLayers?d:void 0)};if(Ca(e)){let t=bs(e);return function(e){return t.variants?Es(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?Cs(t.style,d):t.style}}return e},_=(...t)=>{let r=[],i=t.map(g),o=[];if(r.push(a),n&&l&&o.push(function(e){let t=e.theme.components?.[n]?.styleOverrides;if(!t)return null;let r={};for(let n in t)r[n]=Es(e,t[n],e.theme.modularCssLayers?`theme`:void 0);return l(e,r)}),n&&!f&&o.push(function(e){let t=e.theme?.components?.[n]?.variants;return t?Ds(e,t,[],e.theme.modularCssLayers?`theme`:void 0):null}),p||o.push(rs),Array.isArray(i[0])){let e=i.shift(),t=Array(r.length).fill(``),n=Array(o.length).fill(``),a;a=[...t,...e,...n],a.raw=[...t,...e.raw,...n],r.unshift(a)}let s=h(...r,...i,...o);return e.muiName&&(s.muiName=e.muiName),s};return h.withConfig&&(_.withConfig=h.withConfig),_}}function ks(e){return typeof e==`string`&&e.charCodeAt(0)>96}function As(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}var js=Os();function Ms(e,t,n=!1){let r={...t};for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){let a=i;if(a===`components`||a===`slots`)r[a]={...e[a],...r[a]};else if(a===`componentsProps`||a===`slotProps`){let i=e[a],o=t[a];if(!o)r[a]=i||{};else if(!i)r[a]=o;else{r[a]={...o};for(let e in i)if(Object.prototype.hasOwnProperty.call(i,e)){let t=e;r[a][t]=Ms(i[t],o[t],n)}}}else a===`className`&&n&&t.className!==void 0?r.className=V(e?.className,t?.className):a===`style`&&n&&t.style?r.style={...e?.style,...t?.style}:r[a]===void 0&&(r[a]=e[a])}return r}function Ns(e){let{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Ms(t.components[n].defaultProps,r)}function Ps({props:e,name:t,defaultTheme:n,themeId:r}){let i=fs(n);return r&&(i=i[r]||i),Ns({theme:i,name:t,props:e})}var Fs=typeof window<`u`?C.useLayoutEffect:C.useEffect;function Is(e,t,n,r,i){let[a,o]=C.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Fs(()=>{if(!n)return;let t=n(e),r=()=>{o(t.matches)};return r(),t.addEventListener(`change`,r),()=>{t.removeEventListener(`change`,r)}},[e,n]),a}var Ls={...C}.useSyncExternalStore;function Rs(e,t,n,r,i){let a=C.useCallback(()=>t,[t]),o=C.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){let{matches:t}=r(e);return()=>t}return a},[a,e,r,i,n]),[s,c]=C.useMemo(()=>{if(n===null)return[a,()=>()=>{}];let t=n(e);return[()=>t.matches,e=>(t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)})]},[a,n,e]);return Ls(c,s,o)}function zs(e={}){let{themeId:t}=e;return function(e,n={}){let r=us();r&&t&&(r=r[t]||r);let i=typeof window<`u`&&window.matchMedia!==void 0?window.matchMedia:null,{defaultMatches:a=!1,matchMedia:o,ssrMatchMedia:s=null,noSsr:c=!1}=Ns({name:`MuiUseMediaQuery`,props:n,theme:r}),l=C.useMemo(()=>o===void 0?i===null?null:i.bind(window):o,[o,i]),u=typeof e==`function`?e(r):e;return u=u.replace(/^@media( ?)/m,``),u.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(`
13
- `)),(Ls===void 0?Is:Rs)(u,a,l,s,c)}}zs();function Bs(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function Vs(e,t=0,n=1){return Bs(e,t,n)}function Hs(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,`g`),n=e.match(t);return n&&n[0].length===1&&(n=n.map(e=>e+e)),n?`rgb${n.length===4?`a`:``}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(`, `)})`:``}function Us(e){if(e.type)return e;if(e.charAt(0)===`#`)return Us(Hs(e));let t=e.indexOf(`(`),n=e.substring(0,t);if(![`rgb`,`rgba`,`hsl`,`hsla`,`color`].includes(n))throw Error(Yn(9,e));let r=e.substring(t+1,e.length-1),i;if(n===`color`){if(r=r.split(` `),i=r.shift(),r.length===4&&r[3].charAt(0)===`/`&&(r[3]=r[3].slice(1)),![`srgb`,`display-p3`,`a98-rgb`,`prophoto-rgb`,`rec-2020`].includes(i))throw Error(Yn(10,i))}else r=r.split(`,`);return r=r.map(e=>parseFloat(e)),{type:n,values:r,colorSpace:i}}var Ws=e=>{let t=Us(e);return t.values.slice(0,3).map((e,n)=>t.type.includes(`hsl`)&&n!==0?`${e}%`:e).join(` `)},Gs=(e,t)=>{try{return Ws(e)}catch{return e}};function Ks(e){let{type:t,colorSpace:n}=e,{values:r}=e;return t.includes(`rgb`)?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes(`hsl`)&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes(`color`)?`${n} ${r.join(` `)}`:`${r.join(`, `)}`,`${t}(${r})`}function qs(e){e=Us(e);let{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),o=(e,t=(e+n/30)%12)=>i-a*Math.max(Math.min(t-3,9-t,1),-1),s=`rgb`,c=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type===`hsla`&&(s+=`a`,c.push(t[3])),Ks({type:s,values:c})}function Js(e){e=Us(e);let t=e.type===`hsl`||e.type===`hsla`?Us(qs(e)).values:e.values;return t=t.map(t=>(e.type!==`color`&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Ys(e,t){let n=Js(e),r=Js(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function W(e,t){return e=Us(e),t=Vs(t),(e.type===`rgb`||e.type===`hsl`)&&(e.type+=`a`),e.type===`color`?e.values[3]=`/${t}`:e.values[3]=t,Ks(e)}function Xs(e,t,n){try{return W(e,t)}catch{return e}}function Zs(e,t){if(e=Us(e),t=Vs(t),e.type.includes(`hsl`))e.values[2]*=1-t;else if(e.type.includes(`rgb`)||e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Ks(e)}function Qs(e,t,n){try{return Zs(e,t)}catch{return e}}function $s(e,t){if(e=Us(e),t=Vs(t),e.type.includes(`hsl`))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes(`rgb`))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Ks(e)}function ec(e,t,n){try{return $s(e,t)}catch{return e}}function tc(e,t=.15){return Js(e)>.5?Zs(e,t):$s(e,t)}function nc(e,t,n){try{return tc(e,t)}catch{return e}}var rc=C.createContext(null);function ic(){return C.useContext(rc)}var ac=typeof Symbol==`function`&&Symbol.for?Symbol.for(`mui.nested`):`__THEME_NESTED__`;function oc(e,t){return typeof t==`function`?t(e):{...e,...t}}function sc(e){let{children:t,theme:n}=e,r=ic(),i=C.useMemo(()=>{let e=r===null?{...n}:oc(r,n);return e!=null&&(e[ac]=r!==null),e},[n,r]);return(0,B.jsx)(rc.Provider,{value:i,children:t})}var cc=C.createContext();function lc({value:e,...t}){return(0,B.jsx)(cc.Provider,{value:e??!0,...t})}var uc=()=>C.useContext(cc)??!1,dc=C.createContext(void 0);function fc({value:e,children:t}){return(0,B.jsx)(dc.Provider,{value:e,children:t})}function pc(e){let{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;let i=t.components[n];return i.defaultProps?Ms(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?Ms(i,r,t.components.mergeClassNameAndStyle):r}function mc({props:e,name:t}){return pc({props:e,name:t,theme:{components:C.useContext(dc)}})}var hc=0;function gc(e){let[t,n]=C.useState(e),r=e||t;return C.useEffect(()=>{t??(hc+=1,n(`mui-${hc}`))},[t]),r}var _c={...C}.useId;function vc(e){if(_c!==void 0){let t=_c();return e??t}return gc(e)}function yc(e){let t=us(),n=vc()||``,{modularCssLayers:r}=e,i=`mui.global, mui.components, mui.theme, mui.custom, mui.sx`;return i=!r||t!==null?``:typeof r==`string`?r.replace(/mui(?!\.)/g,i):`@layer ${i};`,Fs(()=>{let e=document.querySelector(`head`);if(!e)return;let t=e.firstChild;if(i){if(t&&t.hasAttribute?.(`data-mui-layer-order`)&&t.getAttribute(`data-mui-layer-order`)===n)return;let r=document.createElement(`style`);r.setAttribute(`data-mui-layer-order`,n),r.textContent=i,e.prepend(r)}else e.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[i,n]),i?(0,B.jsx)(ms,{styles:i}):null}var bc={};function xc(e,t,n,r=!1){return C.useMemo(()=>{let i=e&&t[e]||t;if(typeof n==`function`){let a=n(i),o=e?{...t,[e]:a}:a;return r?()=>o:o}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function Sc(e){let{children:t,theme:n,themeId:r}=e,i=us(bc),a=ic()||bc,o=xc(r,i,n),s=xc(r,a,n,!0),c=(r?o[r]:o).direction===`rtl`,l=yc(o);return(0,B.jsx)(sc,{theme:s,children:(0,B.jsx)(Ui.Provider,{value:o,children:(0,B.jsx)(lc,{value:c,children:(0,B.jsxs)(fc,{value:r?o[r].components:o.components,children:[l,t]})})})})}var Cc={theme:void 0};function wc(e){let t,n;return function(r){let i=t;return(i===void 0||r.theme!==n)&&(Cc.theme=r.theme,i=bs(e(Cc)),t=i,n=r.theme),i}}var Tc=`mode`,Ec=`color-scheme`,Dc=`data-color-scheme`;function Oc(e){let{defaultMode:t=`system`,defaultLightColorScheme:n=`light`,defaultDarkColorScheme:r=`dark`,modeStorageKey:i=Tc,colorSchemeStorageKey:a=Ec,attribute:o=Dc,colorSchemeNode:s=`document.documentElement`,nonce:c}=e||{},l=``,u=o;if(o===`class`&&(u=`.%s`),o===`data`&&(u=`[data-%s]`),u.startsWith(`.`)){let e=u.substring(1);l+=`${s}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark));
14
- ${s}.classList.add('${e}'.replace('%s', colorScheme));`}let d=u.match(/\[([^[\]]+)\]/);if(d){let[e,t]=d[1].split(`=`);t||(l+=`${s}.removeAttribute('${e}'.replace('%s', light));
15
- ${s}.removeAttribute('${e}'.replace('%s', dark));`),l+=`
16
- ${s}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:`""`});`}else u!==`.%s`&&(l+=`${s}.setAttribute('${u}', colorScheme);`);return(0,B.jsx)(`script`,{suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(function() {
17
- try {
18
- let colorScheme = '';
19
- const mode = localStorage.getItem('${i}') || '${t}';
20
- const dark = localStorage.getItem('${a}-dark') || '${r}';
21
- const light = localStorage.getItem('${a}-light') || '${n}';
22
- if (mode === 'system') {
23
- // handle system mode
24
- const mql = window.matchMedia('(prefers-color-scheme: dark)');
25
- if (mql.matches) {
26
- colorScheme = dark
27
- } else {
28
- colorScheme = light
29
- }
30
- }
31
- if (mode === 'light') {
32
- colorScheme = light;
33
- }
34
- if (mode === 'dark') {
35
- colorScheme = dark;
36
- }
37
- if (colorScheme) {
38
- ${l}
39
- }
40
- } catch(e){}})();`}},`mui-color-scheme-init`)}function kc(){}var Ac=({key:e,storageWindow:t})=>(!t&&typeof window<`u`&&(t=window),{get(n){if(typeof window>`u`)return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return kc;let r=t=>{let r=t.newValue;t.key===e&&n(r)};return t.addEventListener(`storage`,r),()=>{t.removeEventListener(`storage`,r)}}});function jc(){}function Mc(e){if(typeof window<`u`&&typeof window.matchMedia==`function`&&e===`system`)return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function Nc(e,t){if(e.mode===`light`||e.mode===`system`&&e.systemMode===`light`)return t(`light`);if(e.mode===`dark`||e.mode===`system`&&e.systemMode===`dark`)return t(`dark`)}function Pc(e){return Nc(e,t=>{if(t===`light`)return e.lightColorScheme;if(t===`dark`)return e.darkColorScheme})}function Fc(e){let{defaultMode:t=`light`,defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:a=Tc,colorSchemeStorageKey:o=Ec,storageWindow:s=typeof window>`u`?void 0:window,storageManager:c=Ac,noSsr:l=!1}=e,u=i.join(`,`),d=i.length>1,f=C.useMemo(()=>c?.({key:a,storageWindow:s}),[c,a,s]),p=C.useMemo(()=>c?.({key:`${o}-light`,storageWindow:s}),[c,o,s]),m=C.useMemo(()=>c?.({key:`${o}-dark`,storageWindow:s}),[c,o,s]),[h,g]=C.useState(()=>{let e=f?.get(t)||t,i=p?.get(n)||n,a=m?.get(r)||r;return{mode:e,systemMode:Mc(e),lightColorScheme:i,darkColorScheme:a}}),[_,v]=C.useState(l||!d);C.useEffect(()=>{v(!0)},[]);let y=Pc(h),b=C.useCallback(e=>{g(n=>{if(e===n.mode)return n;let r=e??t;return f?.set(r),{...n,mode:r,systemMode:Mc(r)}})},[f,t]),x=C.useCallback(e=>{e?typeof e==`string`?e&&!u.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):g(t=>{let n={...t};return Nc(t,t=>{t===`light`&&(p?.set(e),n.lightColorScheme=e),t===`dark`&&(m?.set(e),n.darkColorScheme=e)}),n}):g(t=>{let i={...t},a=e.light===null?n:e.light,o=e.dark===null?r:e.dark;return a&&(u.includes(a)?(i.lightColorScheme=a,p?.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),o&&(u.includes(o)?(i.darkColorScheme=o,m?.set(o)):console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`)),i}):g(e=>(p?.set(n),m?.set(r),{...e,lightColorScheme:n,darkColorScheme:r}))},[u,p,m,n,r]),S=C.useCallback(e=>{h.mode===`system`&&g(t=>{let n=e?.matches?`dark`:`light`;return t.systemMode===n?t:{...t,systemMode:n}})},[h.mode]),w=C.useRef(S);return w.current=S,C.useEffect(()=>{if(typeof window.matchMedia!=`function`||!d)return;let e=(...e)=>w.current(...e),t=window.matchMedia(`(prefers-color-scheme: dark)`);return t.addListener(e),e(t),()=>{t.removeListener(e)}},[d]),C.useEffect(()=>{if(d){let e=f?.subscribe(e=>{(!e||[`light`,`dark`,`system`].includes(e))&&b(e||t)})||jc,n=p?.subscribe(e=>{(!e||u.match(e))&&x({light:e})})||jc,r=m?.subscribe(e=>{(!e||u.match(e))&&x({dark:e})})||jc;return()=>{e(),n(),r()}}},[x,b,u,t,s,d,f,p,m]),{...h,mode:_?h.mode:void 0,systemMode:_?h.systemMode:void 0,colorScheme:_?y:void 0,setMode:b,setColorScheme:x}}var Ic=`*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function Lc(e){let{themeId:t,theme:n={},modeStorageKey:r=Tc,colorSchemeStorageKey:i=Ec,disableTransitionOnChange:a=!1,defaultColorScheme:o,resolveTheme:s}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},l=C.createContext(void 0),u=()=>C.useContext(l)||c,d={},f={};function p(e){let{children:c,theme:u,modeStorageKey:p=r,colorSchemeStorageKey:m=i,disableTransitionOnChange:h=a,storageManager:g,storageWindow:_=typeof window>`u`?void 0:window,documentNode:v=typeof document>`u`?void 0:document,colorSchemeNode:y=typeof document>`u`?void 0:document.documentElement,disableNestedContext:b=!1,disableStyleSheetGeneration:x=!1,defaultMode:S=`system`,forceThemeRerender:w=!1,noSsr:T}=e,E=C.useRef(!1),D=ic(),O=C.useContext(l),k=!!O&&!b,A=C.useMemo(()=>u||(typeof n==`function`?n():n),[u]),j=A[t],M=j||A,{colorSchemes:N=d,components:P=f,cssVarPrefix:F}=M,I=Object.keys(N).filter(e=>!!N[e]).join(`,`),L=C.useMemo(()=>I.split(`,`),[I]),ee=typeof o==`string`?o:o.light,te=typeof o==`string`?o:o.dark,{mode:ne,setMode:re,systemMode:ie,lightColorScheme:R,darkColorScheme:ae,colorScheme:oe,setColorScheme:se}=Fc({supportedColorSchemes:L,defaultLightColorScheme:ee,defaultDarkColorScheme:te,modeStorageKey:p,colorSchemeStorageKey:m,defaultMode:N[ee]&&N[te]?S:N[M.defaultColorScheme]?.palette?.mode||M.palette?.mode,storageManager:g,storageWindow:_,noSsr:T}),ce=ne,le=oe;k&&(ce=O.mode,le=O.colorScheme);let ue=le||M.defaultColorScheme;M.vars&&!w&&(ue=M.defaultColorScheme);let z=C.useMemo(()=>{let e=M.generateThemeVars?.()||M.vars,t={...M,components:P,colorSchemes:N,cssVarPrefix:F,vars:e};if(typeof t.generateSpacing==`function`&&(t.spacing=t.generateSpacing()),ue){let e=N[ue];e&&typeof e==`object`&&Object.keys(e).forEach(n=>{e[n]&&typeof e[n]==`object`?t[n]={...t[n],...e[n]}:t[n]=e[n]})}return s?s(t):t},[M,ue,P,N,F]),de=M.colorSchemeSelector;Fs(()=>{if(le&&y&&de&&de!==`media`){let e=de,t=de;if(e===`class`&&(t=`.%s`),e===`data`&&(t=`[data-%s]`),e?.startsWith(`data-`)&&!e.includes(`%s`)&&(t=`[${e}="%s"]`),t.startsWith(`.`))y.classList.remove(...L.map(e=>t.substring(1).replace(`%s`,e))),y.classList.add(t.substring(1).replace(`%s`,le));else{let e=t.replace(`%s`,le).match(/\[([^\]]+)\]/);if(e){let[t,n]=e[1].split(`=`);n||L.forEach(e=>{y.removeAttribute(t.replace(le,e))}),y.setAttribute(t,n?n.replace(/"|'/g,``):``)}else y.setAttribute(t,le)}}},[le,de,y,L]),C.useEffect(()=>{let e;if(h&&E.current&&v){let t=v.createElement(`style`);t.appendChild(v.createTextNode(Ic)),v.head.appendChild(t),window.getComputedStyle(v.body),e=setTimeout(()=>{v.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[le,h,v]),C.useEffect(()=>(E.current=!0,()=>{E.current=!1}),[]);let fe=C.useMemo(()=>({allColorSchemes:L,colorScheme:le,darkColorScheme:ae,lightColorScheme:R,mode:ce,setColorScheme:se,setMode:re,systemMode:ie}),[L,le,ae,R,ce,se,re,ie,z.colorSchemeSelector]),pe=!0;(x||M.cssVariables===!1||k&&D?.cssVarPrefix===F)&&(pe=!1);let me=(0,B.jsxs)(C.Fragment,{children:[(0,B.jsx)(Sc,{themeId:j?t:void 0,theme:z,children:c}),pe&&(0,B.jsx)(ga,{styles:z.generateStyleSheets?.()||[]})]});return k?me:(0,B.jsx)(l.Provider,{value:fe,children:me})}let m=typeof o==`string`?o:o.light,h=typeof o==`string`?o:o.dark;return{CssVarsProvider:p,useColorScheme:u,getInitColorSchemeScript:e=>Oc({colorSchemeStorageKey:i,defaultLightColorScheme:m,defaultDarkColorScheme:h,modeStorageKey:r,...e})}}function Rc(e=``){function t(...n){if(!n.length)return``;let r=n[0];return typeof r==`string`&&!r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:``}${r}${t(...n.slice(1))})`:`, ${r}`}return(n,...r)=>`var(--${e?`${e}-`:``}${n}${t(...r)})`}var zc=(e,t,n,r=[])=>{let i=e;t.forEach((e,a)=>{a===t.length-1?Array.isArray(i)?i[Number(e)]=n:i&&typeof i==`object`&&(i[e]=n):i&&typeof i==`object`&&(i[e]||(i[e]=r.includes(e)?[]:{}),i=i[e])})},Bc=(e,t,n)=>{function r(e,i=[],a=[]){Object.entries(e).forEach(([e,o])=>{(!n||n&&!n([...i,e]))&&o!=null&&(typeof o==`object`&&Object.keys(o).length>0?r(o,[...i,e],Array.isArray(o)?[...a,e]:a):t([...i,e],o,a))})}r(e)},Vc=(e,t)=>typeof t==`number`?[`lineHeight`,`fontWeight`,`opacity`,`zIndex`].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes(`opacity`)?t:`${t}px`:t;function Hc(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},o={};return Bc(e,(e,t,s)=>{if((typeof t==`string`||typeof t==`number`)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:``}${e.join(`-`)}`,c=Vc(e,t);Object.assign(i,{[r]:c}),zc(a,e,`var(${r})`,s),zc(o,e,`var(${r}, ${c})`,s)}},e=>e[0]===`vars`),{css:i,vars:a,varsWithDefaults:o}}function Uc(e,t={}){let{getSelector:n=_,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:a}=t,{colorSchemes:o={},components:s,defaultColorScheme:c=`light`,...l}=e,{vars:u,css:d,varsWithDefaults:f}=Hc(l,t),p=f,m={},{[c]:h,...g}=o;if(Object.entries(g||{}).forEach(([e,n])=>{let{vars:r,css:i,varsWithDefaults:a}=Hc(n,t);p=Ta(p,a),m[e]={css:i,vars:r}}),h){let{css:e,vars:n,varsWithDefaults:r}=Hc(h,t);p=Ta(p,r),m[c]={css:e,vars:n}}function _(t,n){let r=i;if(i===`class`&&(r=`.%s`),i===`data`&&(r=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(r=`[${i}="%s"]`),t){if(r===`media`)return e.defaultColorScheme===t?`:root`:{[`@media (prefers-color-scheme: ${o[t]?.palette?.mode||t})`]:{":root":n}};if(r)return e.defaultColorScheme===t?`:root, ${r.replace(`%s`,String(t))}`:r.replace(`%s`,String(t))}return`:root`}return{vars:p,generateThemeVars:()=>{let e={...u};return Object.entries(m).forEach(([,{vars:t}])=>{e=Ta(e,t)}),e},generateStyleSheets:()=>{let t=[],i=e.defaultColorScheme||`light`;function s(e,n){Object.keys(n).length&&t.push(typeof e==`string`?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);let{[i]:c,...l}=m;if(c){let{css:e}=c,t=o[i]?.palette?.mode,a=!r&&t?{colorScheme:t,...e}:{...e};s(n(i,{...a}),a)}return Object.entries(l).forEach(([e,{css:t}])=>{let i=o[e]?.palette?.mode,a=!r&&i?{colorScheme:i,...t}:{...t};s(n(e,{...a}),a)}),a&&t.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)`}}),t}}}function Wc(e){return function(t){return e===`media`?`@media (prefers-color-scheme: ${t})`:e?e.startsWith(`data-`)&&!e.includes(`%s`)?`[${e}="${t}"] &`:e===`class`?`.${t} &`:e===`data`?`[data-${t}] &`:`${e.replace(`%s`,t)} &`:`&`}}function Gc(e,t,n=void 0){let r={};for(let i in e){let a=e[i],o=``,s=!0;for(let e=0;e<a.length;e+=1){let r=a[e];r&&(o+=(s===!0?``:` `)+t(r),s=!1,n&&n[r]&&(o+=` `+n[r]))}r[i]=o}return r}var Kc=cs(),qc=js(`div`,{name:`MuiContainer`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`maxWidth${io(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),Jc=e=>Ps({props:e,name:`MuiContainer`,defaultTheme:Kc}),Yc=(e,t)=>{let n=e=>H(t,e),{classes:r,fixed:i,disableGutters:a,maxWidth:o}=e;return Gc({root:[`root`,o&&`maxWidth${io(String(o))}`,i&&`fixed`,a&&`disableGutters`]},n,r)};function Xc(e={}){let{createStyledComponent:t=qc,useThemeProps:n=Jc,componentName:r=`MuiContainer`}=e,i=t(({theme:e,ownerState:t})=>({width:`100%`,marginLeft:`auto`,boxSizing:`border-box`,marginRight:`auto`,...!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up(`sm`)]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}}),({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce((t,n)=>{let r=n,i=e.breakpoints.values[r];return i!==0&&(t[e.breakpoints.up(r)]={maxWidth:`${i}${e.breakpoints.unit}`}),t},{}),({theme:e,ownerState:t})=>({...t.maxWidth===`xs`&&{[e.breakpoints.up(`xs`)]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},...t.maxWidth&&t.maxWidth!==`xs`&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}}}));return C.forwardRef(function(e,t){let a=n(e),{className:o,component:s=`div`,disableGutters:c=!1,fixed:l=!1,maxWidth:u=`lg`,classes:d,...f}=a,p={...a,component:s,disableGutters:c,fixed:l,maxWidth:u};return(0,B.jsx)(i,{as:s,ownerState:p,className:V(Yc(p,r).root,o),ref:t,...f})})}function Zc(e,t){return C.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}var Qc=cs(),$c=js(`div`,{name:`MuiStack`,slot:`Root`});function el(e){return Ps({props:e,name:`MuiStack`,defaultTheme:Qc})}function tl(e,t){let n=C.Children.toArray(e).filter(Boolean);return n.reduce((e,r,i)=>(e.push(r),i<n.length-1&&e.push(C.cloneElement(t,{key:`separator-${i}`})),e),[])}var nl=e=>({row:`Left`,"row-reverse":`Right`,column:`Top`,"column-reverse":`Bottom`})[e],rl=({ownerState:e,theme:t})=>{let n={display:`flex`,flexDirection:`column`,...Ya({theme:t},no({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e}))};if(e.spacing){let r=yo(t),i=Object.keys(t.breakpoints.values).reduce((t,n)=>((typeof e.spacing==`object`&&e.spacing[n]!=null||typeof e.direction==`object`&&e.direction[n]!=null)&&(t[n]=!0),t),{}),a=no({values:e.direction,base:i}),o=no({values:e.spacing,base:i});typeof a==`object`&&Object.keys(a).forEach((e,t,n)=>{a[e]||(a[e]=t>0?a[n[t-1]]:`column`)}),n=Ta(n,Ya({theme:t},o,(t,n)=>e.useFlexGap?{gap:bo(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${nl(n?a[n]:e.direction)}`]:bo(r,t)}}))}return n=eo(t.breakpoints,n),n};function il(e={}){let{createStyledComponent:t=$c,useThemeProps:n=el,componentName:r=`MuiStack`}=e,i=()=>Gc({root:[`root`]},e=>H(r,e),{}),a=t(rl);return C.forwardRef(function(e,t){let{component:r=`div`,direction:o=`column`,spacing:s=0,divider:c,children:l,className:u,useFlexGap:d=!1,...f}=n(e);return(0,B.jsx)(a,{as:r,ownerState:{direction:o,spacing:s,useFlexGap:d},ref:t,className:V(i().root,u),...f,children:c?tl(l,c):l})})}var al={black:`#000`,white:`#fff`},ol={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`},sl={50:`#f3e5f5`,100:`#e1bee7`,200:`#ce93d8`,300:`#ba68c8`,400:`#ab47bc`,500:`#9c27b0`,600:`#8e24aa`,700:`#7b1fa2`,800:`#6a1b9a`,900:`#4a148c`,A100:`#ea80fc`,A200:`#e040fb`,A400:`#d500f9`,A700:`#aa00ff`},cl={50:`#ffebee`,100:`#ffcdd2`,200:`#ef9a9a`,300:`#e57373`,400:`#ef5350`,500:`#f44336`,600:`#e53935`,700:`#d32f2f`,800:`#c62828`,900:`#b71c1c`,A100:`#ff8a80`,A200:`#ff5252`,A400:`#ff1744`,A700:`#d50000`},ll={50:`#fff3e0`,100:`#ffe0b2`,200:`#ffcc80`,300:`#ffb74d`,400:`#ffa726`,500:`#ff9800`,600:`#fb8c00`,700:`#f57c00`,800:`#ef6c00`,900:`#e65100`,A100:`#ffd180`,A200:`#ffab40`,A400:`#ff9100`,A700:`#ff6d00`},ul={50:`#e3f2fd`,100:`#bbdefb`,200:`#90caf9`,300:`#64b5f6`,400:`#42a5f5`,500:`#2196f3`,600:`#1e88e5`,700:`#1976d2`,800:`#1565c0`,900:`#0d47a1`,A100:`#82b1ff`,A200:`#448aff`,A400:`#2979ff`,A700:`#2962ff`},dl={50:`#e1f5fe`,100:`#b3e5fc`,200:`#81d4fa`,300:`#4fc3f7`,400:`#29b6f6`,500:`#03a9f4`,600:`#039be5`,700:`#0288d1`,800:`#0277bd`,900:`#01579b`,A100:`#80d8ff`,A200:`#40c4ff`,A400:`#00b0ff`,A700:`#0091ea`},fl={50:`#e8f5e9`,100:`#c8e6c9`,200:`#a5d6a7`,300:`#81c784`,400:`#66bb6a`,500:`#4caf50`,600:`#43a047`,700:`#388e3c`,800:`#2e7d32`,900:`#1b5e20`,A100:`#b9f6ca`,A200:`#69f0ae`,A400:`#00e676`,A700:`#00c853`};function pl(){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:al.white,default:al.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}}}var ml=pl();function hl(){return{text:{primary:al.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:al.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}}}var gl=hl();function _l(e,t,n,r){let i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t===`light`?e.light=$s(e.main,i):t===`dark`&&(e.dark=Zs(e.main,a)))}function vl(e,t,n,r,i){let a=i.light||i,o=i.dark||i*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n===`light`?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:n===`dark`&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(o*100).toFixed(0)}%)`))}function yl(e=`light`){return e===`dark`?{main:ul[200],light:ul[50],dark:ul[400]}:{main:ul[700],light:ul[400],dark:ul[800]}}function bl(e=`light`){return e===`dark`?{main:sl[200],light:sl[50],dark:sl[400]}:{main:sl[500],light:sl[300],dark:sl[700]}}function xl(e=`light`){return e===`dark`?{main:cl[500],light:cl[300],dark:cl[700]}:{main:cl[700],light:cl[400],dark:cl[800]}}function Sl(e=`light`){return e===`dark`?{main:dl[400],light:dl[300],dark:dl[700]}:{main:dl[700],light:dl[500],dark:dl[900]}}function Cl(e=`light`){return e===`dark`?{main:fl[400],light:fl[300],dark:fl[700]}:{main:fl[800],light:fl[500],dark:fl[900]}}function wl(e=`light`){return e===`dark`?{main:ll[400],light:ll[300],dark:ll[700]}:{main:`#ed6c02`,light:ll[500],dark:ll[900]}}function Tl(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function El(e){let{mode:t=`light`,contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...a}=e,o=e.primary||yl(t),s=e.secondary||bl(t),c=e.error||xl(t),l=e.info||Sl(t),u=e.success||Cl(t),d=e.warning||wl(t);function f(e){return i?Tl(e):Ys(e,gl.text.primary)>=n?gl.text.primary:ml.text.primary}let p=({color:e,name:t,mainShade:n=500,lightShade:a=300,darkShade:o=700})=>{if(e={...e},!e.main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty(`main`))throw Error(Yn(11,t?` (${t})`:``,n));if(typeof e.main!=`string`)throw Error(Yn(12,t?` (${t})`:``,JSON.stringify(e.main)));return i?(vl(i,e,`light`,a,r),vl(i,e,`dark`,o,r)):(_l(e,`light`,a,r),_l(e,`dark`,o,r)),e.contrastText||=f(e.main),e},m;return t===`light`?m=pl():t===`dark`&&(m=hl()),Ta({common:{...al},mode:t,primary:p({color:o,name:`primary`}),secondary:p({color:s,name:`secondary`,mainShade:`A400`,lightShade:`A200`,darkShade:`A700`}),error:p({color:c,name:`error`}),warning:p({color:d,name:`warning`}),info:p({color:l,name:`info`}),success:p({color:u,name:`success`}),grey:ol,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...m},a)}function Dl(e){let t={};return Object.entries(e).forEach(e=>{let[n,r]=e;typeof r==`object`&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:``}${r.fontVariant?`${r.fontVariant} `:``}${r.fontWeight?`${r.fontWeight} `:``}${r.fontStretch?`${r.fontStretch} `:``}${r.fontSize||``}${r.lineHeight?`/${r.lineHeight} `:``}${r.fontFamily||``}`)}),t}function Ol(e,t){return{toolbar:{minHeight:56,[e.up(`xs`)]:{"@media (orientation: landscape)":{minHeight:48}},[e.up(`sm`)]:{minHeight:64}},...t}}function kl(e){return Math.round(e*1e5)/1e5}var Al={textTransform:`uppercase`},jl=`"Roboto", "Helvetica", "Arial", sans-serif`;function Ml(e,t){let{fontFamily:n=jl,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:u,...d}=typeof t==`function`?t(e):t,f=r/14,p=u||(e=>`${e/c*f}rem`),m=(e,t,r,i,a)=>({fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===jl?{letterSpacing:`${kl(i/t)}em`}:{},...a,...l});return Ta({htmlFontSize:c,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s,h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(o,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(o,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(o,14,1.75,.4,Al),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Al),inherit:{fontFamily:`inherit`,fontWeight:`inherit`,fontSize:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},d,{clone:!1})}var Nl=.2,Pl=.14,Fl=.12;function Il(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Nl})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Pl})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Fl})`].join(`,`)}var Ll=[`none`,Il(0,2,1,-1,0,1,1,0,0,1,3,0),Il(0,3,1,-2,0,2,2,0,0,1,5,0),Il(0,3,3,-2,0,3,4,0,0,1,8,0),Il(0,2,4,-1,0,4,5,0,0,1,10,0),Il(0,3,5,-1,0,5,8,0,0,1,14,0),Il(0,3,5,-1,0,6,10,0,0,1,18,0),Il(0,4,5,-2,0,7,10,1,0,2,16,1),Il(0,5,5,-3,0,8,10,1,0,3,14,2),Il(0,5,6,-3,0,9,12,1,0,3,16,2),Il(0,6,6,-3,0,10,14,1,0,4,18,3),Il(0,6,7,-4,0,11,15,1,0,4,20,3),Il(0,7,8,-4,0,12,17,2,0,5,22,4),Il(0,7,8,-4,0,13,19,2,0,5,24,4),Il(0,7,9,-4,0,14,21,2,0,5,26,4),Il(0,8,9,-5,0,15,22,2,0,6,28,5),Il(0,8,10,-5,0,16,24,2,0,6,30,5),Il(0,8,11,-5,0,17,26,2,0,6,32,5),Il(0,9,11,-5,0,18,28,2,0,7,34,6),Il(0,9,12,-6,0,19,29,2,0,7,36,6),Il(0,10,13,-6,0,20,31,3,0,8,38,7),Il(0,10,13,-6,0,21,33,3,0,8,40,7),Il(0,10,14,-6,0,22,35,3,0,8,42,7),Il(0,11,14,-7,0,23,36,3,0,9,44,8),Il(0,11,15,-7,0,24,38,3,0,9,46,8)],Rl={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)`},zl={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Bl(e){return`${Math.round(e)}ms`}function Vl(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Hl(e){let t={...Rl,...e.easing},n={...zl,...e.duration};return{getAutoHeightDuration:Vl,create:(e=[`all`],r={})=>{let{duration:i=n.standard,easing:a=t.easeInOut,delay:o=0,...s}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${typeof i==`string`?i:Bl(i)} ${a} ${typeof o==`string`?o:Bl(o)}`).join(`,`)},...e,easing:t,duration:n}}var Ul={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Wl(e){return Ca(e)||e===void 0||typeof e==`string`||typeof e==`boolean`||typeof e==`number`||Array.isArray(e)}function Gl(e={}){let t={...e};function n(e){let t=Object.entries(e);for(let r=0;r<t.length;r++){let[i,a]=t[r];!Wl(a)||i.startsWith(`unstable_`)||i.startsWith(`internal_`)?delete e[i]:Ca(a)&&(e[i]={...a},n(e[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
41
-
42
- const theme = ${JSON.stringify(t,null,2)};
43
-
44
- theme.breakpoints = createBreakpoints(theme.breakpoints || {});
45
- theme.transitions = createTransitions(theme.transitions || {});
46
-
47
- export default theme;`}function Kl(e){return typeof e==`number`?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}var ql=e=>{if(!Number.isNaN(+e))return+e;let t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let e=0;e<t.length;e+=1)n+=+t[e];return n};function Jl(e){Object.assign(e,{alpha(t,n){let r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n==`string`?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,`var(--$1Channel)`)} / ${typeof n==`string`?`calc(${n})`:n})`:W(t,ql(n))},lighten(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${Kl(n)})`:$s(t,n)},darken(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${Kl(n)})`:Zs(t,n)}})}function Yl(e={},...t){let{breakpoints:n,mixins:r={},spacing:i,palette:a={},transitions:o={},typography:s={},shape:c,colorSpace:l,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw Error(Yn(22));let d=El({...a,colorSpace:l}),f=cs(e),p=Ta(f,{mixins:Ol(f.breakpoints,r),palette:d,shadows:Ll.slice(),typography:Ml(d,s),transitions:Hl(o),zIndex:{...Ul}});return p=Ta(p,u),p=t.reduce((e,t)=>Ta(e,t),p),p.unstable_sxConfig={...es,...u?.unstable_sxConfig},p.unstable_sx=function(e){return rs({sx:e,theme:this})},p.toRuntimeSource=Gl,Jl(p),p}function Xl(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}var Zl=[...Array(25)].map((e,t)=>{if(t===0)return`none`;let n=Xl(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Ql(e){return{inputPlaceholder:e===`dark`?.5:.42,inputUnderline:e===`dark`?.7:.42,switchTrackDisabled:e===`dark`?.2:.12,switchTrack:e===`dark`?.3:.38}}function $l(e){return e===`dark`?Zl:[]}function eu(e){let{palette:t={mode:`light`},opacity:n,overlays:r,colorSpace:i,...a}=e,o=El({...t,colorSpace:i});return{palette:o,opacity:{...Ql(o.mode),...n},overlays:r||$l(o.mode),...a}}function tu(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]===`palette`&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var nu=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:``}overlays-${n}`),`--${e?`${e}-`:``}palette-AppBar-darkBg`,`--${e?`${e}-`:``}palette-AppBar-darkColor`],ru=e=>(t,n)=>{let r=e.rootSelector||`:root`,i=e.colorSchemeSelector,a=i;if(i===`class`&&(a=`.%s`),i===`data`&&(a=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t===`dark`){let i={};return nu(e.cssVarPrefix).forEach(e=>{i[e]=n[e],delete n[e]}),a===`media`?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace(`%s`,t)]:i,[`${r}, ${a.replace(`%s`,t)}`]:n}:{[r]:{...n,...i}}}if(a&&a!==`media`)return`${r}, ${a.replace(`%s`,String(t))}`}else if(t){if(a===`media`)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace(`%s`,String(t))}return r};function iu(e,t){t.forEach(t=>{e[t]||(e[t]={})})}function G(e,t,n){!e[t]&&n&&(e[t]=n)}function au(e){return typeof e!=`string`||!e.startsWith(`hsl`)?e:qs(e)}function ou(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Gs(au(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
48
- To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function su(e){return typeof e==`number`?`${e}px`:typeof e==`string`||typeof e==`function`||Array.isArray(e)?e:`8px`}var cu=e=>{try{return e()}catch{}},lu=(e=`mui`)=>Rc(e);function uu(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;let a=i===`dark`?`dark`:`light`;if(!r){t[i]=eu({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}let{palette:o,...s}=Yl({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[i]={...n,palette:o,opacity:{...Ql(a),...n?.opacity},overlays:n?.overlays||$l(a)},s}function du(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a=`mui`,nativeColor:o=!1,shouldSkipGeneratingVar:s=tu,colorSchemeSelector:c=n.light&&n.dark?`media`:void 0,rootSelector:l=`:root`,...u}=e,d=Object.keys(n)[0],f=r||(n.light&&d!==`light`?`light`:d),p=lu(a),{[f]:m,light:h,dark:g,..._}=n,v={..._},y=m;if((f===`dark`&&!(`dark`in n)||f===`light`&&!(`light`in n))&&(y=!0),!y)throw Error(Yn(21,f));let b;o&&(b=`oklch`);let x=uu(b,v,y,u,f);h&&!v.light&&uu(b,v,h,void 0,`light`),g&&!v.dark&&uu(b,v,g,void 0,`dark`);let S={defaultColorScheme:f,...x,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:l,getCssVar:p,colorSchemes:v,font:{...Dl(x.typography),...x.font},spacing:su(u.spacing)};Object.keys(S.colorSchemes).forEach(e=>{let t=S.colorSchemes[e].palette,n=e=>{let n=e.split(`-`),r=n[1],i=n[2];return p(e,t[r][i])};t.mode===`light`&&(G(t.common,`background`,`#fff`),G(t.common,`onBackground`,`#000`)),t.mode===`dark`&&(G(t.common,`background`,`#000`),G(t.common,`onBackground`,`#fff`));function r(e,t,n){if(b){let r;return e===Xs&&(r=`transparent ${((1-n)*100).toFixed(0)}%`),e===Qs&&(r=`#000 ${(n*100).toFixed(0)}%`),e===ec&&(r=`#fff ${(n*100).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}if(iu(t,[`Alert`,`AppBar`,`Avatar`,`Button`,`Chip`,`FilledInput`,`LinearProgress`,`Skeleton`,`Slider`,`SnackbarContent`,`SpeedDialAction`,`StepConnector`,`StepContent`,`Switch`,`TableCell`,`Tooltip`]),t.mode===`light`){G(t.Alert,`errorColor`,r(Qs,o?p(`palette-error-light`):t.error.light,.6)),G(t.Alert,`infoColor`,r(Qs,o?p(`palette-info-light`):t.info.light,.6)),G(t.Alert,`successColor`,r(Qs,o?p(`palette-success-light`):t.success.light,.6)),G(t.Alert,`warningColor`,r(Qs,o?p(`palette-warning-light`):t.warning.light,.6)),G(t.Alert,`errorFilledBg`,n(`palette-error-main`)),G(t.Alert,`infoFilledBg`,n(`palette-info-main`)),G(t.Alert,`successFilledBg`,n(`palette-success-main`)),G(t.Alert,`warningFilledBg`,n(`palette-warning-main`)),G(t.Alert,`errorFilledColor`,cu(()=>t.getContrastText(t.error.main))),G(t.Alert,`infoFilledColor`,cu(()=>t.getContrastText(t.info.main))),G(t.Alert,`successFilledColor`,cu(()=>t.getContrastText(t.success.main))),G(t.Alert,`warningFilledColor`,cu(()=>t.getContrastText(t.warning.main))),G(t.Alert,`errorStandardBg`,r(ec,o?p(`palette-error-light`):t.error.light,.9)),G(t.Alert,`infoStandardBg`,r(ec,o?p(`palette-info-light`):t.info.light,.9)),G(t.Alert,`successStandardBg`,r(ec,o?p(`palette-success-light`):t.success.light,.9)),G(t.Alert,`warningStandardBg`,r(ec,o?p(`palette-warning-light`):t.warning.light,.9)),G(t.Alert,`errorIconColor`,n(`palette-error-main`)),G(t.Alert,`infoIconColor`,n(`palette-info-main`)),G(t.Alert,`successIconColor`,n(`palette-success-main`)),G(t.Alert,`warningIconColor`,n(`palette-warning-main`)),G(t.AppBar,`defaultBg`,n(`palette-grey-100`)),G(t.Avatar,`defaultBg`,n(`palette-grey-400`)),G(t.Button,`inheritContainedBg`,n(`palette-grey-300`)),G(t.Button,`inheritContainedHoverBg`,n(`palette-grey-A100`)),G(t.Chip,`defaultBorder`,n(`palette-grey-400`)),G(t.Chip,`defaultAvatarColor`,n(`palette-grey-700`)),G(t.Chip,`defaultIconColor`,n(`palette-grey-700`)),G(t.FilledInput,`bg`,`rgba(0, 0, 0, 0.06)`),G(t.FilledInput,`hoverBg`,`rgba(0, 0, 0, 0.09)`),G(t.FilledInput,`disabledBg`,`rgba(0, 0, 0, 0.12)`),G(t.LinearProgress,`primaryBg`,r(ec,o?p(`palette-primary-main`):t.primary.main,.62)),G(t.LinearProgress,`secondaryBg`,r(ec,o?p(`palette-secondary-main`):t.secondary.main,.62)),G(t.LinearProgress,`errorBg`,r(ec,o?p(`palette-error-main`):t.error.main,.62)),G(t.LinearProgress,`infoBg`,r(ec,o?p(`palette-info-main`):t.info.main,.62)),G(t.LinearProgress,`successBg`,r(ec,o?p(`palette-success-main`):t.success.main,.62)),G(t.LinearProgress,`warningBg`,r(ec,o?p(`palette-warning-light`):t.warning.main,.62)),G(t.Skeleton,`bg`,b?r(Xs,o?p(`palette-text-primary`):t.text.primary,.11):`rgba(${n(`palette-text-primaryChannel`)} / 0.11)`),G(t.Slider,`primaryTrack`,r(ec,o?p(`palette-primary-main`):t.primary.main,.62)),G(t.Slider,`secondaryTrack`,r(ec,o?p(`palette-secondary-main`):t.secondary.main,.62)),G(t.Slider,`errorTrack`,r(ec,o?p(`palette-error-main`):t.error.main,.62)),G(t.Slider,`infoTrack`,r(ec,o?p(`palette-info-main`):t.info.main,.62)),G(t.Slider,`successTrack`,r(ec,o?p(`palette-success-main`):t.success.main,.62)),G(t.Slider,`warningTrack`,r(ec,o?p(`palette-warning-main`):t.warning.main,.62));let e=b?r(Qs,o?p(`palette-background-default`):t.background.default,.6825):nc(t.background.default,.8);G(t.SnackbarContent,`bg`,e),G(t.SnackbarContent,`color`,cu(()=>b?gl.text.primary:t.getContrastText(e))),G(t.SpeedDialAction,`fabHoverBg`,nc(t.background.paper,.15)),G(t.StepConnector,`border`,n(`palette-grey-400`)),G(t.StepContent,`border`,n(`palette-grey-400`)),G(t.Switch,`defaultColor`,n(`palette-common-white`)),G(t.Switch,`defaultDisabledColor`,n(`palette-grey-100`)),G(t.Switch,`primaryDisabledColor`,r(ec,o?p(`palette-primary-main`):t.primary.main,.62)),G(t.Switch,`secondaryDisabledColor`,r(ec,o?p(`palette-secondary-main`):t.secondary.main,.62)),G(t.Switch,`errorDisabledColor`,r(ec,o?p(`palette-error-main`):t.error.main,.62)),G(t.Switch,`infoDisabledColor`,r(ec,o?p(`palette-info-main`):t.info.main,.62)),G(t.Switch,`successDisabledColor`,r(ec,o?p(`palette-success-main`):t.success.main,.62)),G(t.Switch,`warningDisabledColor`,r(ec,o?p(`palette-warning-main`):t.warning.main,.62)),G(t.TableCell,`border`,r(ec,Xs(o?p(`palette-divider`):t.divider,1),.88)),G(t.Tooltip,`bg`,r(Xs,o?p(`palette-grey-700`):t.grey[700],.92))}if(t.mode===`dark`){G(t.Alert,`errorColor`,r(ec,o?p(`palette-error-light`):t.error.light,.6)),G(t.Alert,`infoColor`,r(ec,o?p(`palette-info-light`):t.info.light,.6)),G(t.Alert,`successColor`,r(ec,o?p(`palette-success-light`):t.success.light,.6)),G(t.Alert,`warningColor`,r(ec,o?p(`palette-warning-light`):t.warning.light,.6)),G(t.Alert,`errorFilledBg`,n(`palette-error-dark`)),G(t.Alert,`infoFilledBg`,n(`palette-info-dark`)),G(t.Alert,`successFilledBg`,n(`palette-success-dark`)),G(t.Alert,`warningFilledBg`,n(`palette-warning-dark`)),G(t.Alert,`errorFilledColor`,cu(()=>t.getContrastText(t.error.dark))),G(t.Alert,`infoFilledColor`,cu(()=>t.getContrastText(t.info.dark))),G(t.Alert,`successFilledColor`,cu(()=>t.getContrastText(t.success.dark))),G(t.Alert,`warningFilledColor`,cu(()=>t.getContrastText(t.warning.dark))),G(t.Alert,`errorStandardBg`,r(Qs,o?p(`palette-error-light`):t.error.light,.9)),G(t.Alert,`infoStandardBg`,r(Qs,o?p(`palette-info-light`):t.info.light,.9)),G(t.Alert,`successStandardBg`,r(Qs,o?p(`palette-success-light`):t.success.light,.9)),G(t.Alert,`warningStandardBg`,r(Qs,o?p(`palette-warning-light`):t.warning.light,.9)),G(t.Alert,`errorIconColor`,n(`palette-error-main`)),G(t.Alert,`infoIconColor`,n(`palette-info-main`)),G(t.Alert,`successIconColor`,n(`palette-success-main`)),G(t.Alert,`warningIconColor`,n(`palette-warning-main`)),G(t.AppBar,`defaultBg`,n(`palette-grey-900`)),G(t.AppBar,`darkBg`,n(`palette-background-paper`)),G(t.AppBar,`darkColor`,n(`palette-text-primary`)),G(t.Avatar,`defaultBg`,n(`palette-grey-600`)),G(t.Button,`inheritContainedBg`,n(`palette-grey-800`)),G(t.Button,`inheritContainedHoverBg`,n(`palette-grey-700`)),G(t.Chip,`defaultBorder`,n(`palette-grey-700`)),G(t.Chip,`defaultAvatarColor`,n(`palette-grey-300`)),G(t.Chip,`defaultIconColor`,n(`palette-grey-300`)),G(t.FilledInput,`bg`,`rgba(255, 255, 255, 0.09)`),G(t.FilledInput,`hoverBg`,`rgba(255, 255, 255, 0.13)`),G(t.FilledInput,`disabledBg`,`rgba(255, 255, 255, 0.12)`),G(t.LinearProgress,`primaryBg`,r(Qs,o?p(`palette-primary-main`):t.primary.main,.5)),G(t.LinearProgress,`secondaryBg`,r(Qs,o?p(`palette-secondary-main`):t.secondary.main,.5)),G(t.LinearProgress,`errorBg`,r(Qs,o?p(`palette-error-main`):t.error.main,.5)),G(t.LinearProgress,`infoBg`,r(Qs,o?p(`palette-info-main`):t.info.main,.5)),G(t.LinearProgress,`successBg`,r(Qs,o?p(`palette-success-main`):t.success.main,.5)),G(t.LinearProgress,`warningBg`,r(Qs,o?p(`palette-warning-main`):t.warning.main,.5)),G(t.Skeleton,`bg`,b?r(Xs,o?p(`palette-text-primary`):t.text.primary,.13):`rgba(${n(`palette-text-primaryChannel`)} / 0.13)`),G(t.Slider,`primaryTrack`,r(Qs,o?p(`palette-primary-main`):t.primary.main,.5)),G(t.Slider,`secondaryTrack`,r(Qs,o?p(`palette-secondary-main`):t.secondary.main,.5)),G(t.Slider,`errorTrack`,r(Qs,o?p(`palette-error-main`):t.error.main,.5)),G(t.Slider,`infoTrack`,r(Qs,o?p(`palette-info-main`):t.info.main,.5)),G(t.Slider,`successTrack`,r(Qs,o?p(`palette-success-main`):t.success.main,.5)),G(t.Slider,`warningTrack`,r(Qs,o?p(`palette-warning-light`):t.warning.main,.5));let e=b?r(ec,o?p(`palette-background-default`):t.background.default,.985):nc(t.background.default,.98);G(t.SnackbarContent,`bg`,e),G(t.SnackbarContent,`color`,cu(()=>b?ml.text.primary:t.getContrastText(e))),G(t.SpeedDialAction,`fabHoverBg`,nc(t.background.paper,.15)),G(t.StepConnector,`border`,n(`palette-grey-600`)),G(t.StepContent,`border`,n(`palette-grey-600`)),G(t.Switch,`defaultColor`,n(`palette-grey-300`)),G(t.Switch,`defaultDisabledColor`,n(`palette-grey-600`)),G(t.Switch,`primaryDisabledColor`,r(Qs,o?p(`palette-primary-main`):t.primary.main,.55)),G(t.Switch,`secondaryDisabledColor`,r(Qs,o?p(`palette-secondary-main`):t.secondary.main,.55)),G(t.Switch,`errorDisabledColor`,r(Qs,o?p(`palette-error-main`):t.error.main,.55)),G(t.Switch,`infoDisabledColor`,r(Qs,o?p(`palette-info-main`):t.info.main,.55)),G(t.Switch,`successDisabledColor`,r(Qs,o?p(`palette-success-main`):t.success.main,.55)),G(t.Switch,`warningDisabledColor`,r(Qs,o?p(`palette-warning-light`):t.warning.main,.55)),G(t.TableCell,`border`,r(Qs,Xs(o?p(`palette-divider`):t.divider,1),.68)),G(t.Tooltip,`bg`,r(Xs,o?p(`palette-grey-700`):t.grey[700],.92))}o||(ou(t.background,`default`),ou(t.background,`paper`),ou(t.common,`background`),ou(t.common,`onBackground`),ou(t,`divider`)),Object.keys(t).forEach(e=>{let n=t[e];e!==`tonalOffset`&&!o&&n&&typeof n==`object`&&(n.main&&G(t[e],`mainChannel`,Gs(au(n.main))),n.light&&G(t[e],`lightChannel`,Gs(au(n.light))),n.dark&&G(t[e],`darkChannel`,Gs(au(n.dark))),n.contrastText&&G(t[e],`contrastTextChannel`,Gs(au(n.contrastText))),e===`text`&&(ou(t[e],`primary`),ou(t[e],`secondary`)),e===`action`&&(n.active&&ou(t[e],`active`),n.selected&&ou(t[e],`selected`)))})}),S=t.reduce((e,t)=>Ta(e,t),S);let C={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:ru(S),enableContrastVars:o},{vars:w,generateThemeVars:T,generateStyleSheets:E}=Uc(S,C);return S.vars=w,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([e,t])=>{S[e]=t}),S.generateThemeVars=T,S.generateStyleSheets=E,S.generateSpacing=function(){return Eo(u.spacing,yo(this))},S.getColorSchemeSelector=Wc(c),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...es,...u?.unstable_sxConfig},S.unstable_sx=function(e){return rs({sx:e,theme:this})},S.internal_cache={},S.toRuntimeSource=Gl,S}function fu(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:El({...n===!0?{}:n.palette,mode:t})})}function pu(e={},...t){let{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...o}=e,s=a||`light`,c=i?.[s],l={...i,...n?{[s]:{...typeof c!=`boolean`&&c,palette:n}}:void 0};if(r===!1){if(!(`colorSchemes`in e))return Yl(e,...t);let r=n;`palette`in e||l[s]&&(l[s]===!0?s===`dark`&&(r={mode:`dark`}):r=l[s].palette);let i=Yl({...e,palette:r},...t);return i.defaultColorScheme=s,i.colorSchemes=l,i.palette.mode===`light`&&(i.colorSchemes.light={...l.light!==!0&&l.light,palette:i.palette},fu(i,`dark`,l.dark)),i.palette.mode===`dark`&&(i.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:i.palette},fu(i,`light`,l.light)),i}return!n&&!(`light`in l)&&s===`light`&&(l.light=!0),du({...o,colorSchemes:l,defaultColorScheme:s,...typeof r!=`boolean`&&r},...t)}function mu(e){return String(parseFloat(e)).length===String(e).length}function hu(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||``}function gu(e){return parseFloat(e)}function _u(e){return(t,n)=>{let r=hu(t);if(r===n)return t;let i=gu(t);r!==`px`&&(r===`em`||r===`rem`)&&(i=gu(t)*gu(e));let a=i;if(n!==`px`)if(n===`em`)a=i/gu(e);else if(n===`rem`)a=i/gu(e);else return t;return parseFloat(a.toFixed(5))+n}}function vu({size:e,grid:t}){let n=e-e%t,r=n+t;return e-n<r-e?n:r}function yu({lineHeight:e,pixels:t,htmlFontSize:n}){return t/(e*n)}function bu({cssProperty:e,min:t,max:n,unit:r=`rem`,breakpoints:i=[600,900,1200],transform:a=null}){let o={[e]:`${t}${r}`},s=(n-t)/i[i.length-1];return i.forEach(n=>{let i=t+s*n;a!==null&&(i=a(i)),o[`@media (min-width:${n}px)`]={[e]:`${Math.round(i*1e4)/1e4}${r}`}}),o}function xu(e,t={}){let{breakpoints:n=[`sm`,`md`,`lg`],disableAlign:r=!1,factor:i=2,variants:a=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`subtitle1`,`subtitle2`,`body1`,`body2`,`caption`,`button`,`overline`]}=t,o={...e};o.typography={...o.typography};let s=o.typography,c=_u(s.htmlFontSize),l=n.map(e=>o.breakpoints.values[e]);return a.forEach(e=>{let t=s[e];if(!t)return;let n=parseFloat(c(t.fontSize,`rem`));if(n<=1)return;let a=n,o=1+(a-1)/i,{lineHeight:u}=t;if(!mu(u)&&!r)throw Error(Yn(6));mu(u)||(u=parseFloat(c(u,`rem`))/parseFloat(n));let d=null;r||(d=e=>vu({size:e,grid:yu({pixels:4,lineHeight:u,htmlFontSize:s.htmlFontSize})}));let f=bu({cssProperty:`fontSize`,min:o,max:a,unit:`rem`,breakpoints:l,transform:d});if(l.length>0){let e=l[l.length-1];f[`@media (min-width:${e}px)`]={fontSize:`${Math.round(a*1e4)/1e4}rem`}}s[e]={...t,...f}}),o}var Su=pu();function Cu(){let e=fs(Su);return e.$$material||e}function wu({props:e,name:t}){return Ps({props:e,name:t,defaultTheme:Su,themeId:Xn})}function Tu(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}var Eu=e=>Tu(e)&&e!==`classes`,K=Os({themeId:Xn,defaultTheme:Su,rootShouldForwardProp:Eu});function Du({theme:e,...t}){let n=`$$material`in e?e[Xn]:void 0;return(0,B.jsx)(Sc,{...t,themeId:n?Xn:void 0,theme:n||e})}var Ou={attribute:`data-mui-color-scheme`,colorSchemeStorageKey:`mui-color-scheme`,defaultLightColorScheme:`light`,defaultDarkColorScheme:`dark`,modeStorageKey:`mui-mode`},{CssVarsProvider:ku,useColorScheme:Au,getInitColorSchemeScript:ju}=Lc({themeId:Xn,theme:()=>pu({cssVariables:!0}),colorSchemeStorageKey:Ou.colorSchemeStorageKey,modeStorageKey:Ou.modeStorageKey,defaultColorScheme:{light:Ou.defaultLightColorScheme,dark:Ou.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:Ml(e.palette,e.typography)};return t.unstable_sx=function(e){return rs({sx:e,theme:this})},t}}),Mu=ku;function Nu({theme:e,...t}){let n=C.useMemo(()=>{if(typeof e==`function`)return e;let t=`$$material`in e?e[Xn]:e;return`colorSchemes`in t?null:`vars`in t?e:{...e,vars:null}},[e]);return n?(0,B.jsx)(Du,{theme:n,...t}):(0,B.jsx)(Mu,{theme:e,...t})}var Pu=e=>{let t;if(typeof Intl<`u`&&Intl.NumberFormat)try{t=new Intl.NumberFormat(e)}catch{}return e=>Number.isFinite(e)&&t?t.format(e):String(e)},Fu=Pu(`am-ET`),Iu={components:{MuiBreadcrumbs:{defaultProps:{expandText:`መንገድ አሳይ`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`ወደ መጀመሪያው ገጽ ይሂዱ`:e===`last`?`ወደ መጨረሻው ገጽ ይሂዱ`:e===`next`?`ወደ ቀጣዩ ገጽ ይሂዱ`:`ወደ ቀዳሚው ገጽ ይሂዱ`,labelRowsPerPage:`ረድፎች በአንድ ገጽ:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Fu(e)}-${Fu(t)} ከ ${n===-1?`${Fu(t)} በላይ`:Fu(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ኮከ${e===1?`ብ`:`ቦች`}`,emptyLabelText:`ባዶ`}},MuiAutocomplete:{defaultProps:{clearText:`አጽዳ`,closeText:`ዝጋ`,loadingText:`በመጫን ላይ…`,noOptionsText:`አማራጮች የሉም`,openText:`ክፈት`}},MuiAlert:{defaultProps:{closeText:`ዝጋ`}},MuiPagination:{defaultProps:{"aria-label":`የገጽ አሰሳ`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`ወደ `}ገጽ ${t}${n?``:` ሂድ`}`:e===`first`?`ወደ መጀመሪያው ገጽ ይሂዱ`:e===`last`?`ወደ መጨረሻው ገጽ ይሂዱ`:e===`next`?`ወደ ቀጣዩ ገጽ ይሂዱ`:`ወደ ቀዳሚው ገጽ ይሂዱ`}}}},Lu=Pu(`ar-EG`),Ru={components:{MuiBreadcrumbs:{defaultProps:{expandText:`إظهار المسار`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`انتقل إلى الصفحة الأولى`:e===`last`?`انتقل إلى الصفحة الأخيرة`:e===`next`?`انتقل إلى الصفحة التالية`:`انتقل إلى الصفحة السابقة`,labelRowsPerPage:`عدد الصفوف في الصفحة:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Lu(e)}–${Lu(t)} من ${n===-1?` أكثر من${Lu(t)}`:Lu(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e===1?`نجمة`:`نجوم`}`,emptyLabelText:`فارغ`}},MuiAutocomplete:{defaultProps:{clearText:`مسح`,closeText:`إغلاق`,loadingText:`جار التحميل…`,noOptionsText:`لا يوجد خيارات`,openText:`فتح`}},MuiAlert:{defaultProps:{closeText:`إغلاق`}},MuiPagination:{defaultProps:{"aria-label":`التنقل عبر الصفحات`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`انتقل إلى `} صفحة ${t}`:e===`first`?`انتقل إلى الصفحة الأولى`:e===`last`?`انتقل إلى الصفحة الأخيرة`:e===`next`?`انتقل إلى الصفحة التالية`:`انتقل إلى الصفحة السابقة`}}}},zu=Pu(`ar-SA`),Bu={components:{MuiBreadcrumbs:{defaultProps:{expandText:`إظهار المسار`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`الانتقال إلى الصفحة الأولى`:e===`last`?`الانتقال إلى الصفحة الأخيرة`:e===`next`?`الانتقال إلى الصفحة التالية`:`الانتقال إلى الصفحة السابقة`,labelRowsPerPage:`عدد الصفوف في الصفحة:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${zu(e)}–${zu(t)} من ${n===-1?` أكثر من${zu(t)}`:zu(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e===1?`نجمة`:`نجوم`}`,emptyLabelText:`فارغ`}},MuiAutocomplete:{defaultProps:{clearText:`مسح`,closeText:`إغلاق`,loadingText:`جار التحميل…`,noOptionsText:`لا توجد خيارات`,openText:`فتح`}},MuiAlert:{defaultProps:{closeText:`إغلاق`}},MuiPagination:{defaultProps:{"aria-label":`التنقل عبر الصفحات`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`الانتقال إلى `} صفحة ${t}`:e===`first`?`الانتقال إلى الصفحة الأولى`:e===`last`?`الانتقال الي الصفحة الأخيرة`:e===`next`?`الانتقال إلى الصفحة التالية`:`الانتقال إلى الصفحة السابقة`}}}},Vu=Pu(`ar-SD`),Hu={components:{MuiBreadcrumbs:{defaultProps:{expandText:`إظهار المسار`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`انتقل إلى الصفحة الأولى`:e===`last`?`انتقل إلى الصفحة الأخيرة`:e===`next`?`انتقل إلى الصفحة التالية`:`انتقل إلى الصفحة السابقة`,labelRowsPerPage:`عدد الصفوف في الصفحة:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Vu(e)}–${Vu(t)} من ${n===-1?` أكثر من${Vu(t)}`:Vu(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e===1?`نجمة`:`نجوم`}`,emptyLabelText:`فارغ`}},MuiAutocomplete:{defaultProps:{clearText:`مسح`,closeText:`إغلاق`,loadingText:`جار التحميل…`,noOptionsText:`لا يوجد خيارات`,openText:`فتح`}},MuiAlert:{defaultProps:{closeText:`إغلاق`}},MuiPagination:{defaultProps:{"aria-label":`التنقل عبر الصفحات`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`انتقل إلى `} صفحة ${t}`:e===`first`?`انتقل إلى الصفحة الأولى`:e===`last`?`انتقل الي الصفحة الأخيرة`:e===`next`?`انتقل إلى الصفحة التالية`:`انتقل إلى الصفحة السابقة`}}}},Uu={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Yolu göstər`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Birinci səhifəyə keç`:e===`last`?`Sonuncu səhifəyə keç`:e===`next`?`Növbəti səhifəyə keç`:`Əvvəlki səhifəyə keç`,labelRowsPerPage:`Səhifəyə düşən sətrlər:`}},MuiRating:{defaultProps:{getLabelText:e=>{let t=`Ulduz`,n=e%10;return n>1&&n<5&&(t=`Ulduzlar`),`${e} ${t}`},emptyLabelText:`Boş`}},MuiAutocomplete:{defaultProps:{clearText:`Silmək`,closeText:`Bağlamaq`,loadingText:`Yüklənir…`,noOptionsText:`Seçimlər mövcud deyil`,openText:`Открыть`}},MuiAlert:{defaultProps:{closeText:`Bağlamaq`}},MuiPagination:{defaultProps:{"aria-label":`Səhifənin naviqasiyası`,getItemAriaLabel:(e,t,n)=>e===`page`?`${t} ${n?`səhifə`:`səhifəyə keç`}`:e===`first`?`Birinci səhifəyə keç`:e===`last`?`Sonuncu səhifəyə keç`:e===`next`?`Növbəti səhifəyə keç`:`Əvvəlki səhifəyə keç`}}}},Wu=Pu(`be-BY`),Gu={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Паказаць шлях`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Перайсці на першую старонку`:e===`last`?`Перайсці на апошнюю старонку`:e===`next`?`Перайсці на наступную старонку`:`Перайсці на папярэднюю старонку`,labelRowsPerPage:`Радкоў на старонцы:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Wu(e)}–${Wu(t)} з ${n===-1?`больш чым ${Wu(t)}`:Wu(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>{let t=`Зорак`,n=e%10;return n>1&&n<5&&(e<10||e>20)?t=`Зоркі`:n===1&&e%100!=11&&(t=`Зорка`),`${e} ${t}`},emptyLabelText:`Рэйтынг адсутнічае`}},MuiAutocomplete:{defaultProps:{clearText:`Ачысціць`,closeText:`Закрыць`,loadingText:`Загрузка…`,noOptionsText:`Няма варыянтаў`,openText:`Адкрыць`}},MuiAlert:{defaultProps:{closeText:`Закрыць`}},MuiPagination:{defaultProps:{"aria-label":`Навігацыя па старонкам`,getItemAriaLabel:(e,t,n)=>e===`page`?n?`${t} старонка`:`Перайсці на ${t} старонку`:e===`first`?`Перайсці на першую старонку`:e===`last`?`Перайсці на апошнюю старонку`:e===`next`?`Перайсці на наступную старонку`:`Перайсці на папярэднюю старонку`}}}},Ku={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Показване на пътя`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Отиди на първата страница`:e===`last`?`Отиди на последната страница`:e===`next`?`Отиди на следващата страница`:`Отиди на предишната страница`,labelRowsPerPage:`Редове на страница:`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Звезд${e===1?`а`:`и`}`,emptyLabelText:`Изчисти`}},MuiAutocomplete:{defaultProps:{clearText:`Изчисти`,closeText:`Затвори`,loadingText:`Зареждане…`,noOptionsText:`Няма налични опции`,openText:`Отвори`}},MuiAlert:{defaultProps:{closeText:`Затвори`}},MuiPagination:{defaultProps:{"aria-label":`Пагинация`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Към `}страница ${t}`:e===`first`?`Отиди на първата страница`:e===`last`?`Отиди на последната страница`:e===`next`?`Отиди на следващата страница`:`Отиди на предишната страница`}}}},qu=Pu(`bn-BD`),Ju={components:{MuiBreadcrumbs:{defaultProps:{expandText:`পথ দেখান`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`প্রথম পৃষ্ঠায় যান`:e===`last`?`শেষ পৃষ্ঠায় যান`:e===`next`?`পরবর্তী পৃষ্ঠায় যান`:`আগের পৃষ্ঠায় যান`,labelRowsPerPage:`প্রতি পৃষ্ঠায় সারি:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${qu(e)}–${qu(t)} / ${n===-1?`${qu(t)} থেকে বেশি`:qu(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} স্টার`,emptyLabelText:`খালি`}},MuiAutocomplete:{defaultProps:{clearText:`পরিষ্কার করুন`,closeText:`বন্ধ করুন`,loadingText:`লোড হচ্ছে…`,noOptionsText:`কোন অপশন নেই`,openText:`ওপেন করুন`}},MuiAlert:{defaultProps:{closeText:`বন্ধ করুন`}},MuiPagination:{defaultProps:{"aria-label":`পেজিনেশন নেভিগেশন`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`যান `}পৃষ্ঠা ${t}-এ`:e===`first`?`প্রথম পৃষ্ঠায় যান`:e===`last`?`শেষ পৃষ্ঠায় যান`:e===`next`?`পরবর্তী পৃষ্ঠায় যান`:`আগের পৃষ্ঠায় যান`}}}},Yu=Pu(`ca-ES`),Xu={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Mostra el camí`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Ves a la primera pàgina`:e===`last`?`Ves a l'última pàgina`:e===`next`?`Ves a la pàgina següent`:`Ves a la pàgina anterior`,labelRowsPerPage:`Files per pàgina:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Yu(e)}–${Yu(t)} de ${n===-1?`més de ${Yu(t)}`:Yu(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e===1?`Estrella`:`Estrelles`}`,emptyLabelText:`Buit`}},MuiAutocomplete:{defaultProps:{clearText:`Netejar`,closeText:`Tancar`,loadingText:`Carregant…`,noOptionsText:`Sense opcions`,openText:`Obert`}},MuiAlert:{defaultProps:{closeText:`Tancat`}},MuiPagination:{defaultProps:{"aria-label":`Navegació entre pàgines`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Ves a la `}pàgina ${t}`:e===`first`?`Ves a la primera pàgina`:e===`last`?`Ves a l'última pàgina`:e===`next`?`Ves a la pàgina següent`:`Ves a la pàgina anterior`}}}},Zu=Pu(`cs-CZ`),Qu={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Ukázat cestu`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Jít na první stránku`:e===`last`?`Jít na poslední stránku`:e===`next`?`Jít na další stránku`:`Jít na předchozí stránku`,labelRowsPerPage:`Řádků na stránce:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Zu(e)}–${Zu(t)} z ${n===-1?`více než ${Zu(t)}`:Zu(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>e===1?`${e} hvězdička`:e>=2&&e<=4?`${e} hvězdičky`:`${e} hvězdiček`,emptyLabelText:`Prázdné`}},MuiAutocomplete:{defaultProps:{clearText:`Vymazat`,closeText:`Zavřít`,loadingText:`Načítání…`,noOptionsText:`Žádné možnosti`,openText:`Otevřít`}},MuiAlert:{defaultProps:{closeText:`Zavřít`}},MuiPagination:{defaultProps:{"aria-label":`Navigace stránkováním`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Jít na `}${t}. stránku`:e===`first`?`Jít na první stránku`:e===`last`?`Jít na poslední stránku`:e===`next`?`Jít na další stránku`:`Jít na předchozí stránku`}}}},$u=Pu(`da-DK`),ed={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Vis sti`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Gå til den første side`:e===`last`?`Gå til den sidste side`:e===`next`?`Gå til den næste side`:`Gå til den forrige side`,labelRowsPerPage:`Rækker pr side:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${$u(e)}-${$u(t)} af ${n===-1?`mere end ${$u(t)}`:$u(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Stjern${e===1?``:`er`}`,emptyLabelText:`Tom`}},MuiAutocomplete:{defaultProps:{clearText:`Slet`,closeText:`Luk`,loadingText:`Indlæser…`,noOptionsText:`Ingen muligheder`,openText:`Åben`}},MuiAlert:{defaultProps:{closeText:`Luk`}},MuiPagination:{defaultProps:{"aria-label":`Sideinddelings navigation`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Go to `}page ${t}`:e===`first`?`Gå til den første side`:e===`last`?`Gå til den sidste side`:e===`next`?`Gå til den næste side`:`Gå til den forrige side`}}}},td=Pu(`de-DE`),nd={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Pfad anzeigen`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Zur ersten Seite`:e===`last`?`Zur letzten Seite`:e===`next`?`Zur nächsten Seite`:`Zur vorherigen Seite`,labelRowsPerPage:`Zeilen pro Seite:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${td(e)}–${td(t)} von ${n===-1?`mehr als ${td(t)}`:td(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e===1?`Stern`:`Sterne`}`,emptyLabelText:`Keine Wertung`}},MuiAutocomplete:{defaultProps:{clearText:`Leeren`,closeText:`Schließen`,loadingText:`Wird geladen…`,noOptionsText:`Keine Optionen`,openText:`Öffnen`}},MuiAlert:{defaultProps:{closeText:`Schließen`}},MuiPagination:{defaultProps:{"aria-label":`Navigation via Seitennummerierung`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Gehe zu `}Seite ${t}`:e===`first`?`Zur ersten Seite`:e===`last`?`Zur letzten Seite`:e===`next`?`Zur nächsten Seite`:`Zur vorherigen Seite`}}}},rd=Pu(`el-GR`),id={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Εμφάνιση διαδρομής`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Πρώτη σελίδα`:e===`last`?`Τελευταία σελίδα`:e===`next`?`Επόμενη σελίδα`:`Προηγούμενη σελίδα`,labelRowsPerPage:`Γραμμές ανα σελίδα:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${rd(e)}–${rd(t)} από ${n===-1?`πάνω από ${rd(t)}`:rd(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Αστέρι${e===1?``:`α`}`,emptyLabelText:`Χωρίς βαθμολόγηση`}},MuiAutocomplete:{defaultProps:{clearText:`Καθαρισμός`,closeText:`Κλείσιμο`,loadingText:`Φόρτωση…`,noOptionsText:`Δεν υπάρχουν επιλογές`,openText:`Άνοιγμα`}},MuiAlert:{defaultProps:{closeText:`Κλείσιμο`}},MuiPagination:{defaultProps:{"aria-label":`Πλοήγηση σε σελίδες`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Μετάβαση `}σελίδα ${t}`:e===`first`?`Πρώτη σελίδα`:e===`last`?`Τελευταία σελίδα`:e===`next`?`Επόμενη σελίδα`:`Προηγούμενη σελίδα`}}}},ad={},od=Pu(`es-ES`),sd={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Mostrar ruta`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Ir a la primera página`:e===`last`?`Ir a la última página`:e===`next`?`Ir a la página siguiente`:`Ir a la página anterior`,labelRowsPerPage:`Filas por página:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${od(e)}–${od(t)} de ${n===-1?`más de ${od(t)}`:od(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Estrella${e===1?``:`s`}`,emptyLabelText:`Vacío`}},MuiAutocomplete:{defaultProps:{clearText:`Limpiar`,closeText:`Cerrar`,loadingText:`Cargando…`,noOptionsText:`Sin opciones`,openText:`Abierto`}},MuiAlert:{defaultProps:{closeText:`Cerrar`}},MuiPagination:{defaultProps:{"aria-label":`Paginador`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Ir a la `}página ${t}`:e===`first`?`Ir a la primera página`:e===`last`?`Ir a la última página`:e===`next`?`Ir a la página siguiente`:`Ir a la página anterior`}}}},cd=Pu(`et-EE`),ld={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Näita teed`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Vali esimene lehekülg`:e===`last`?`Vali viimane lehekülg`:e===`next`?`Vali järgmine lehekülg`:`Vali eelmine lehekülg`,labelRowsPerPage:`Ridu leheküljel:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${cd(e)}–${cd(t)} / ${n===-1?`rohkem kui ${cd(t)}`:cd(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Tärn${e===1?``:`i`}`,emptyLabelText:`Tühi`}},MuiAutocomplete:{defaultProps:{clearText:`Tühjenda`,closeText:`Sulge`,loadingText:`Laen…`,noOptionsText:`Valikuid ei ole`,openText:`Ava`}},MuiAlert:{defaultProps:{closeText:`Sulge`}},MuiPagination:{defaultProps:{"aria-label":`Lehekülgede valik`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Vali `}lehekülg ${t}`:e===`first`?`Vali esimene lehekülg`:e===`last`?`Vali viimane lehekülg`:e===`next`?`Vali järgmine lehekülg`:`Vali eelmine lehekülg`}}}},ud=Pu(`fa-IR`),dd={components:{MuiBreadcrumbs:{defaultProps:{expandText:`نمایش مسیر`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`رفتن به اولین صفحه`:e===`last`?`رفتن به آخرین صفحه`:e===`next`?`رفتن به صفحه‌ی بعدی`:`رفتن به صفحه‌ی قبلی`,labelRowsPerPage:`تعداد سطرهای هر صفحه:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${ud(e)}–${ud(t)} از ${n===-1?`بیشتر از ${ud(t)}`:ud(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ستاره`,emptyLabelText:`خالی`}},MuiAutocomplete:{defaultProps:{clearText:`پاک‌کردن`,closeText:`بستن`,loadingText:`در حال بارگذاری…`,noOptionsText:`بی‌نتیجه`,openText:`بازکردن`}},MuiAlert:{defaultProps:{closeText:`بستن`}},MuiPagination:{defaultProps:{"aria-label":`ناوبری صفحه`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`رفتن به `}صفحهٔ ${t}`:e===`first`?`رفتن به اولین صفحه`:e===`last`?`رفتن به آخرین صفحه`:e===`next`?`رفتن به صفحه‌ی بعدی`:`رفتن به صفحه‌ی قبلی`}}}},fd=Pu(`fi-FI`),pd={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Näytä reitti`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Mene ensimmäiselle sivulle`:e===`last`?`Mene viimeiselle sivulle`:e===`next`?`Mene seuraavalle sivulle`:`Mene edelliselle sivulle`,labelRowsPerPage:`Rivejä per sivu:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${fd(e)}–${fd(t)} / ${n===-1?`enemmän kuin ${fd(t)}`:fd(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Täht${e===1?`i`:`eä`}`,emptyLabelText:`Tyhjä`}},MuiAutocomplete:{defaultProps:{clearText:`Tyhjennä`,closeText:`Sulje`,loadingText:`Ladataan…`,noOptionsText:`Ei valintoja`,openText:`Avaa`}},MuiAlert:{defaultProps:{closeText:`Sulje`}},MuiPagination:{defaultProps:{"aria-label":`Sivutus navigaatio`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?`sivu`:`Mene sivulle`} ${t}`:e===`first`?`Mene ensimmäiselle sivulle`:e===`last`?`Mene viimeiselle sivulle`:e===`next`?`Mene seuraavalle sivulle`:`Mene edelliselle sivulle`}}}},md=Pu(`fr-FR`),hd={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Montrer le chemin`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Aller à la première page`:e===`last`?`Aller à la dernière page`:e===`next`?`Aller à la page suivante`:`Aller à la page précédente`,labelRowsPerPage:`Lignes par page :`,labelDisplayedRows:({from:e,to:t,count:n})=>`${md(e)}–${md(t)} sur ${n===-1?`plus que ${md(t)}`:md(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Etoile${e===1?``:`s`}`,emptyLabelText:`Vide`}},MuiAutocomplete:{defaultProps:{clearText:`Vider`,closeText:`Fermer`,loadingText:`Chargement…`,noOptionsText:`Pas de résultats`,openText:`Ouvrir`}},MuiAlert:{defaultProps:{closeText:`Fermer`}},MuiPagination:{defaultProps:{"aria-label":`navigation de pagination`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Aller à la `}page ${t}`:e===`first`?`Aller à la première page`:e===`last`?`Aller à la dernière page`:e===`next`?`Aller à la page suivante`:`Aller à la page précédente`}}}},gd=Pu(`he-IL`),_d={components:{MuiBreadcrumbs:{defaultProps:{expandText:`הצג נתיב`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`לעמוד הראשון`:e===`last`?`לעמוד האחרון`:e===`next`?`לעמוד הבא`:`לעמוד הקודם`,labelRowsPerPage:`שורות בעמוד:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${gd(e)}–${gd(t)} מתוך ${n===-1?`יותר מ ${gd(t)}`:gd(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} כוכב${e===1?``:`ים`}`,emptyLabelText:`ריק`}},MuiAutocomplete:{defaultProps:{clearText:`נקה`,closeText:`סגור`,loadingText:`טוען…`,noOptionsText:`אין אופציות`,openText:`פתח`}},MuiAlert:{defaultProps:{closeText:`סגור`}},MuiPagination:{defaultProps:{"aria-label":`ניווט בעמודים`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`ל `}עמוד ${t}`:e===`first`?`לעמוד הראשון`:e===`last`?`לעמוד האחרון`:e===`next`?`לעמוד הבא`:`לעמוד הקודם`}}}},vd=Pu(`hi-IN`),yd={components:{MuiBreadcrumbs:{defaultProps:{expandText:`रास्ता दिखायें`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`पहले पृष्ठ पर जाएँ`:e===`last`?`अंतिम पृष्ठ पर जाएँ`:e===`next`?`अगले पृष्ठ पर जाएँ`:`पिछले पृष्ठ पर जाएँ`,labelRowsPerPage:`पंक्तियाँ प्रति पृष्ठ:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${vd(e)}-${vd(t===-1?n:t)} कुल ${vd(n)} में`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} तार${e===1?`ा`:`े`}`,emptyLabelText:`रिक्त`}},MuiAutocomplete:{defaultProps:{clearText:`हटायें`,closeText:`बंद करें`,loadingText:`लोड हो रहा है…`,noOptionsText:`कोई विकल्प नहीं`,openText:`खोलें`}},MuiAlert:{defaultProps:{closeText:`बंद करें`}},MuiPagination:{defaultProps:{"aria-label":`पृस्ठानुसार संचालन`,getItemAriaLabel:(e,t,n)=>e===`page`?`पृष्ठ ${t} ${n?``:` पर जाएँ`}`:e===`first`?`पहले पृष्ठ पर जाएँ`:e===`last`?`अंतिम पृष्ठ पर जाएँ`:e===`next`?`अगले पृष्ठ पर जाएँ`:`पिछले पृष्ठ पर जाएँ`}}}},bd=Pu(`hr-HR`),xd={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Pokaži putanju`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Idi na prvu stranicu`:e===`last`?`Idi na posljednju stranicu`:e===`next`?`Idi na sljedeću stranicu`:`Idi na prethodnu stranicu`,labelRowsPerPage:`Redova po stranici:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${bd(e)}–${bd(t)} od ${n===-1?`više nego ${bd(t)}`:bd(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>{let t=e%10,n=e%100;return[2,3,4].includes(t)&&![12,13,14].includes(n)?`Zvijezde`:`Zvijezda`},emptyLabelText:`Prazno`}},MuiAutocomplete:{defaultProps:{clearText:`Briši`,closeText:`Zatvori`,loadingText:`Učitavanje…`,noOptionsText:`Nema opcija`,openText:`Otvori`}},MuiAlert:{defaultProps:{closeText:`Zatvori`}},MuiPagination:{defaultProps:{"aria-label":`Navigacija po stranicama`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Idi na `}stranicu ${t}`:e===`first`?`Idi na prvu stranicu`:e===`last`?`Idi na zadnju stranicu`:e===`next`?`Idi na sljedeću stranicu`:`Idi na prethodnu stranicu`}}}},Sd={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Útvonal`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Első oldalra`:e===`last`?`Utolsó oldalra`:e===`next`?`Következő oldalra`:`Előző oldalra`,labelRowsPerPage:`Sorok száma:`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Csillag`,emptyLabelText:`Üres`}},MuiAutocomplete:{defaultProps:{clearText:`Törlés`,closeText:`Bezárás`,loadingText:`Töltés…`,noOptionsText:`Nincs találat`,openText:`Megnyitás`}},MuiAlert:{defaultProps:{closeText:`Bezárás`}},MuiPagination:{defaultProps:{"aria-label":`Lapozás`,getItemAriaLabel:(e,t,n)=>e===`page`?`${t}. oldal${n?``:`ra`}`:e===`first`?`Első oldalra`:e===`last`?`Utolsó oldalra`:e===`next`?`Következő oldalra`:`Előző oldalra`}}}},Cd={components:{MuiTablePagination:{defaultProps:{labelRowsPerPage:"Տողեր մեկ էջում`"}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Աստղ`,emptyLabelText:`Դատարկ`}},MuiAutocomplete:{defaultProps:{clearText:`Մաքրել`,closeText:`Փակել`,loadingText:`Բեռնում…`,noOptionsText:`Տարբերակներ չկան`,openText:`Բացել`}},MuiAlert:{defaultProps:{closeText:`Փակել`}}}},wd={components:{MuiTablePagination:{defaultProps:{labelRowsPerPage:`Baris per halaman:`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Bintang`}},MuiAutocomplete:{defaultProps:{clearText:`Hapus`,closeText:`Tutup`,loadingText:`Memuat…`,noOptionsText:`Tidak ada opsi`,openText:`Buka`}},MuiAlert:{defaultProps:{closeText:`Tutup`}}}},Td=Pu(`is-IS`),Ed={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Sýna slóð`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Fara á fyrstu síðu`:e===`last`?`Fara á síðustu síðu`:e===`next`?`Fara á næstu síðu`:`Fara á fyrri síðu`,labelRowsPerPage:`Raðir á síðu:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Td(e)}–${Td(t)} af ${n===-1?`fleiri en ${Td(t)}`:Td(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e===1?`stjarna`:`stjörnur`}`,emptyLabelText:`Tómt`}},MuiAutocomplete:{defaultProps:{clearText:`Hreinsa`,closeText:`Loka`,loadingText:`Hlaða…`,noOptionsText:`Engar niðurstöður`,openText:`Opna`}},MuiAlert:{defaultProps:{closeText:`Loka`}},MuiPagination:{defaultProps:{"aria-label":`Síðuflakk`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?`Síða`:`Fara á síðu`} ${t}`:e===`first`?`Fara á fyrstu síðu`:e===`last`?`Fara á síðustu síðu`:e===`next`?`Fara á næstu síðu`:`Fara á fyrri síðu`}}}},Dd=Pu(`it-IT`),Od={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Visualizza percorso`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Vai alla prima pagina`:e===`last`?`Vai all'ultima pagina`:e===`next`?`Vai alla pagina successiva`:`Vai alla pagina precedente`,labelRowsPerPage:`Righe per pagina:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Dd(e)}–${Dd(t)} di ${n===-1?`più di ${Dd(t)}`:Dd(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Stell${e===1?`a`:`e`}`,emptyLabelText:`Vuoto`}},MuiAutocomplete:{defaultProps:{clearText:`Svuota`,closeText:`Chiudi`,loadingText:`Caricamento in corso…`,noOptionsText:`Nessuna opzione`,openText:`Apri`}},MuiAlert:{defaultProps:{closeText:`Chiudi`}},MuiPagination:{defaultProps:{"aria-label":`Navigazione impaginata`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Vai alla `}pagina ${t}`:e===`first`?`Vai alla prima pagina`:e===`last`?`Vai all'ultima pagina`:e===`next`?`Vai alla pagina successiva`:`Vai alla pagina precedente`}}}},kd=Pu(`ja-JP`),Ad={components:{MuiBreadcrumbs:{defaultProps:{expandText:`すべて表示`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`最初のページへ`:e===`last`?`最後のページへ`:e===`next`?`次のページへ`:`前のページへ`,labelRowsPerPage:`ページあたりの行数:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${kd(e)}~${kd(t)} / ${n===-1?`${kd(t)}以上`:kd(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`星${e}`,emptyLabelText:`星なし`}},MuiAutocomplete:{defaultProps:{clearText:`クリア`,closeText:`閉じる`,loadingText:`読み込み中…`,noOptionsText:`データがありません`,openText:`開く`}},MuiAlert:{defaultProps:{closeText:`閉じる`}},MuiPagination:{defaultProps:{"aria-label":`ページ選択`,getItemAriaLabel:(e,t,n)=>e===`page`?`ページ${t}${n?``:`へ`}`:e===`first`?`最初のページへ`:e===`last`?`最後のページへ`:e===`next`?`次のページへ`:`前のページへ`}}}},jd=Pu(`kh-KH`),Md={components:{MuiBreadcrumbs:{defaultProps:{expandText:`បង្ហាញផ្លូវ`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`ទៅទំព័រដំបូង`:e===`last`?`ទៅទំព័រចុងក្រោយ`:e===`next`?`ទៅទំព័របន្ទាប់`:`ទៅទំព័រមុន`,labelRowsPerPage:`ចំនួនជួរដេកក្នុងមួយទំព័រ:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${jd(e)} - ${jd(t)} នៃ ${n===-1?`ច្រើនជាង ${jd(t)}`:jd(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ផ្កាយ`,emptyLabelText:`ទទេ`}},MuiAutocomplete:{defaultProps:{clearText:`លុបចោល`,closeText:`បិទ`,loadingText:`កំពុងលោត…`,noOptionsText:`គ្មានជម្រើស`,openText:`បើក`}},MuiAlert:{defaultProps:{closeText:`បិទ`}},MuiPagination:{defaultProps:{"aria-label":`រុករកទំព័រ`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`ទៅ `}ទំព័រ ${t}`:e===`first`?`ទៅទំព័រដំបូង`:e===`last`?`ទៅទំព័រចុងក្រោយ`:e===`next`?`ទៅទំព័របន្ទាប់`:`ទៅទំព័រមុន`}}}},Nd=Pu(`ko-KR`),Pd={components:{MuiBreadcrumbs:{defaultProps:{expandText:`경로 보기`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`첫 번째 페이지로 이동`:e===`last`?`마지막 페이지로 이동`:e===`next`?`다음 페이지로 이동`:`이전 페이지로 이동`,labelRowsPerPage:`페이지 당 행:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Nd(e)}–${Nd(t)} / ${n===-1?`${Nd(t)}개 이상`:Nd(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} 점`,emptyLabelText:`빈 텍스트`}},MuiAutocomplete:{defaultProps:{clearText:`지우기`,closeText:`닫기`,loadingText:`불러오는 중…`,noOptionsText:`옵션 없음`,openText:`열기`}},MuiAlert:{defaultProps:{closeText:`닫기`}},MuiPagination:{defaultProps:{"aria-label":`페이지네이션 네비게이션`,getItemAriaLabel:(e,t,n)=>e===`page`?`${t} 번째 페이지${n?``:`로 이동`}`:e===`first`?`첫 번째 페이지로 이동`:e===`last`?`마지막 페이지로 이동`:e===`next`?`다음 페이지로 이동`:`이전 페이지로 이동`}}}},Fd=Pu(`ku-CKB`),Id={components:{MuiBreadcrumbs:{defaultProps:{expandText:`ڕێچکە پیشان بدە`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`چوونە یەکەم پەڕە`:e===`last`?`چوونە کۆتا پەڕە`:e===`next`?`چوونە پەڕەی دواتر`:`گەڕانەوە بۆ پەڕەی پێشوو`,labelRowsPerPage:`ژمارەی ڕیزەکان لە هەر پەڕەیەک:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Fd(e)}–${Fd(t)} لە ${n===-1?` زیاترە لە${Fd(t)}`:Fd(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e===1?`ئەستێرە`:`ئەستێرەکان`}`,emptyLabelText:`خاڵیە`}},MuiAutocomplete:{defaultProps:{clearText:`سڕینەوە`,closeText:`داخستن`,loadingText:`لە بارکردندایە…`,noOptionsText:`هیچ بژاردەیەک نیە`,openText:`کردنەوە`}},MuiAlert:{defaultProps:{closeText:`داخستن`}},MuiPagination:{defaultProps:{"aria-label":`گەڕان لە پەڕەکان`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`چوون بۆ `} پەڕەی ${t}`:e===`first`?`چوونە یەکەم پەڕە`:e===`last`?`چوونە کۆتا پەڕە`:e===`next`?`چوونە پەڕەی دواتر`:`گەڕانەوە بۆ پەڕەی پێشوو`}}}},Ld=Pu(`ku-Latn`),Rd={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Rê nîşan bide`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Biçe rûpela yekem`:e===`last`?`Biçe rûpela dawî`:e===`next`?`Biçe rûpela din`:`Biçe rûpela berê`,labelRowsPerPage:`Rêz li ser rûpelê:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Ld(e)}–${Ld(t)} of ${n===-1?`zêdetir ji ${Ld(t)}`:Ld(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Stêrk`,emptyLabelText:`Vala`}},MuiAutocomplete:{defaultProps:{clearText:`Paqij bike`,closeText:`Bigre`,loadingText:`Tê barkirin…`,noOptionsText:`Vebijêrk tune`,openText:`Veke`}},MuiAlert:{defaultProps:{closeText:`Bigre`}},MuiPagination:{defaultProps:{"aria-label":`Navîgasyona rûpelan`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Biçe `}rûpel ${t}`:e===`first`?`Biçe rûpela yekem`:e===`last`?`Biçe rûpela dawî`:e===`next`?`Biçe rûpela din`:`Biçe rûpela berê`}}}},zd=Pu(`kk-KZ`),Bd={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Толық жолды көрсету`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Бірінші бетке өту`:e===`last`?`Соңғы бетке өту`:e===`next`?`Келесі бетке өту`:`Алдыңғы бетке өту`,labelRowsPerPage:`Беттегі қатарлар:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${n===-1?`+${zd(t)}`:zd(n)} қатардың ішінен ${zd(e)}–${zd(t)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} жұлдыз`,emptyLabelText:`Рейтинг жоқ`}},MuiAutocomplete:{defaultProps:{clearText:`Тазарту`,closeText:`Жабу`,loadingText:`Жүктелуде…`,noOptionsText:`Қол жетімді нұсқалар жоқ`,openText:`Ашу`}},MuiAlert:{defaultProps:{closeText:`Жабу`}},MuiPagination:{defaultProps:{"aria-label":`Беттерді шарлау`,getItemAriaLabel:(e,t,n)=>e===`page`?n?`${t} — бет`:`${t} — бетке өту`:e===`first`?`Бірінші бетке өту`:e===`last`?`Соңғы бетке өту`:e===`next`?`Келесі бетке өту`:`Алдыңғы бетке өту`}}}},Vd=Pu(`mk-MK`),Hd={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Прикажи патека`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Оди на прва страница`:e===`last`?`Оди на последна страница`:e===`next`?`Оди на следна страница`:`Оди на предходна страница`,labelRowsPerPage:`Редови по страница:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Vd(e)}–${Vd(t)} од ${n===-1?`повеќе од ${Vd(t)}`:Vd(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Ѕвезд${e%10==1?`а`:`и`}`,emptyLabelText:`Празно`}},MuiAutocomplete:{defaultProps:{clearText:`Избриши`,closeText:`Затвори`,loadingText:`Се презема`,noOptionsText:`Нема опција`,openText:`Отвори`}},MuiAlert:{defaultProps:{closeText:`Затвори`}},MuiPagination:{defaultProps:{"aria-label":`Навигација низ страници`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Оди на `}страница ${t}`:e===`first`?`Оди на прва страница`:e===`last`?`Оди на последна страница`:e===`next`?`Оди на следна страница`:`Оди на предходна страница`}}}},Ud=Pu(`ms-MS`),Wd={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Tunjukkan laluan`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Pergi ke halaman pertama`:e===`last`?`Pergi ke halaman terakhir`:e===`next`?`Pergi ke halaman seterusnya`:`Pergi ke halaman sebelumnya`,labelRowsPerPage:`Baris setiap halaman:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Ud(e)}–${Ud(t)} daripada ${n===-1?`lebih daripada ${Ud(t)}`:Ud(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Bintang${e%10==1?`s`:``}`,emptyLabelText:`kosong`}},MuiAutocomplete:{defaultProps:{clearText:`Jelas`,closeText:`tutup`,loadingText:`Memuatkan…`,noOptionsText:`Tiada pilihan`,openText:`Buka`}},MuiAlert:{defaultProps:{closeText:`tutup`}},MuiPagination:{defaultProps:{"aria-label":`Navigasi penomboran`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Pergi ke `}muka surat ${t}`:e===`first`?`Pergi ke halaman pertama`:e===`last`?`Pergi ke halaman terakhir`:e===`next`?`Pergi ke halaman seterusnya`:`Pergi ke halaman sebelumnya`}}}},Gd=Pu(`my-MY`),Kd={components:{MuiBreadcrumbs:{defaultProps:{expandText:`လမ်းကြောင်းပြပါ။`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`ပထမစာမျက်နှာသို့သွားပါ။`:e===`last`?`နောက်ဆုံးစာမျက်နှာသို့သွားပါ။`:e===`next`?`နောက်စာမျက်နှာသို့သွားပါ။`:`ယခင်စာမျက်နှာသို့သွားပါ။`,labelRowsPerPage:`စာမျက်နှာအလိုက် အတန်းများ:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Gd(e)}–${Gd(t)} ၏ ${n===-1?`ထက်ပိုပြီး ${Gd(t)}`:Gd(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ကြယ်ပွင့်${e%10==1?`၎`:``}`,emptyLabelText:`ဗလာ`}},MuiAutocomplete:{defaultProps:{clearText:`ရှင်းလင်းသော`,closeText:`ပိတ်လိုက်`,loadingText:`ဖွင့်နေသည်…`,noOptionsText:`ရွေးချယ်ခွင့်မရှိပါ။`,openText:`ဖွင့်သည်။`}},MuiAlert:{defaultProps:{closeText:`ပိတ်လိုက်`}},MuiPagination:{defaultProps:{"aria-label":`Pagination အညွှန်း`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`သွားပါ။ `}စာမျက်နှာ ${t}`:e===`first`?`ပထမစာမျက်နှာသို့သွားပါ။`:e===`last`?`နောက်ဆုံးစာမျက်နှာသို့သွားပါ။`:e===`next`?`နောက်စာမျက်နှာသို့သွားပါ။`:`ယခင်စာမျက်နှာသို့သွားပါ။`}}}},qd=Pu(`nb-NO`),Jd={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Vis sti`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Gå til første side`:e===`last`?`Gå til siste side`:e===`next`?`Gå til neste side`:`Gå til forrige side`,labelRowsPerPage:`Rader per side:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${qd(e)}–${qd(t)} av ${n===-1?`mer enn ${qd(t)}`:qd(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Stjerne${e===1?``:`r`}`,emptyLabelText:`Tom`}},MuiAutocomplete:{defaultProps:{clearText:`Tøm`,closeText:`Lukk`,loadingText:`Laster inn…`,noOptionsText:`Ingen alternativer`,openText:`Åpne`}},MuiAlert:{defaultProps:{closeText:`Lukk`}},MuiPagination:{defaultProps:{"aria-label":`Paginering navigasjon`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Gå til `}side ${t}`:e===`first`?`Gå til første side`:e===`last`?`Gå til siste side`:e===`next`?`Gå til neste side`:`Gå til forrige side`}}}},Yd=Pu(`ne-NP`),Xd={components:{MuiBreadcrumbs:{defaultProps:{expandText:`बाटो देखाउनुहोस्`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`पहिलो पृष्ठमा जानुहोस्`:e===`last`?`अन्तिम पृष्ठमा जानुहोस्`:e===`next`?`अर्को पृष्ठमा जानुहोस्`:`अघिल्लो पृष्ठमा जानुहोस्`,labelRowsPerPage:`प्रति पृष्ठ पङ्क्तिहरू:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Yd(e)}–${Yd(t)} को ${n===-1?`धेरै ${Yd(t)}`:Yd(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} तारा${e%10==1?`स`:``}`,emptyLabelText:`खाली`}},MuiAutocomplete:{defaultProps:{clearText:`खाली गर्नुहोस्`,closeText:`बन्द गर्नुहोस्`,loadingText:`लोड हुँदै…`,noOptionsText:`कुनै विकल्प छैन`,openText:`खोल्नुहोस्`}},MuiAlert:{defaultProps:{closeText:`बन्द गर्नुहोस्`}},MuiPagination:{defaultProps:{"aria-label":`पृष्ठांकन नेभिगेसन`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`जाऊ त्यहाँ `}पृष्ठ ${t}`:e===`first`?`पहिलो पृष्ठमा जानुहोस्`:e===`last`?`अन्तिम पृष्ठमा जानुहोस्`:e===`next`?`अर्को पृष्ठमा जानुहोस्`:`अघिल्लो पृष्ठमा जानुहोस्`}}}},Zd=Pu(`nn-NO`),Qd={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Vis sti`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Gå til første side`:e===`last`?`Gå til siste side`:e===`next`?`Gå til neste side`:`Gå til førre side`,labelRowsPerPage:`Rader per side:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Zd(e)}–${Zd(t)} av ${n===-1?`fleire enn ${Zd(t)}`:Zd(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} stjerne${e===1?``:`r`}`,emptyLabelText:`Tom`}},MuiAutocomplete:{defaultProps:{clearText:`Tøm`,closeText:`Lukk`,loadingText:`Lastar inn…`,noOptionsText:`Ingen alternativ`,openText:`Opna`}},MuiAlert:{defaultProps:{closeText:`Lukk`}},MuiPagination:{defaultProps:{"aria-label":`Navigasjon for paginering`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Gå til `}side ${t}`:e===`first`?`Gå til første side`:e===`last`?`Gå til siste side`:e===`next`?`Gå til neste side`:`Gå til førre side`}}}},$d=Pu(`nl-NL`),ef={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Pad tonen`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Ga naar eerste pagina`:e===`last`?`Ga naar laatste pagina`:e===`next`?`Ga naar volgende pagina`:`Ga naar vorige pagina`,labelRowsPerPage:`Regels per pagina:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${$d(e)}–${$d(t)} van ${n===-1?`meer dan ${$d(t)}`:$d(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Ster${e===1?``:`ren`}`,emptyLabelText:`Leeg`}},MuiAutocomplete:{defaultProps:{clearText:`Wissen`,closeText:`Sluiten`,loadingText:`Laden…`,noOptionsText:`Geen opties`,openText:`Openen`}},MuiAlert:{defaultProps:{closeText:`Sluiten`}},MuiPagination:{defaultProps:{"aria-label":`Navigatie via paginering`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Ga naar `}pagina ${t}`:e===`first`?`Ga naar eerste pagina`:e===`last`?`Ga naar laatste pagina`:e===`next`?`Ga naar volgende pagina`:`Ga naar vorige pagina`}}}},tf=Pu(`pl-PL`),nf={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Pokaż ścieżkę`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Przejdź do pierwszej strony`:e===`last`?`Przejdź do ostatniej strony`:e===`next`?`Przejdź do następnej strony`:`Przejdź do poprzedniej strony`,labelRowsPerPage:`Wierszy na stronę:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${tf(e)}–${tf(t)} z ${n===-1?`ponad ${tf(t)}`:tf(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>{let t=`gwiazdek`,n=e%10;return(e<10||e>20)&&n>1&&n<5?t=`gwiazdki`:e===1&&(t=`gwiazdka`),`${e} ${t}`},emptyLabelText:`Brak gwiazdek`}},MuiAutocomplete:{defaultProps:{clearText:`Wyczyść`,closeText:`Zamknij`,loadingText:`Ładowanie…`,noOptionsText:`Brak opcji`,openText:`Otwórz`}},MuiAlert:{defaultProps:{closeText:`Zamknij`}},MuiPagination:{defaultProps:{"aria-label":`Nawigacja podziału na strony`,getItemAriaLabel:(e,t,n)=>e===`page`?n?`${t}. strona`:`Przejdź do ${t}. strony`:e===`first`?`Przejdź do pierwszej strony`:e===`last`?`Przejdź do ostatniej strony`:e===`next`?`Przejdź do następnej strony`:`Przejdź do poprzedniej strony`}}}},rf=Pu(`ps-AF`),af={components:{MuiBreadcrumbs:{defaultProps:{expandText:`لاره ښکاره کړه`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`لومړۍ پاڼې ته لاړ شه`:e===`last`?`ورستۍ پاڼې ته لاړ شه`:e===`next`?`بلی پاڼې ته لاړ شه`:`مخکینۍ پاڼې ته لاړ شه`,labelRowsPerPage:`په پاڼه کی د کرښو شمیر`,labelDisplayedRows:({from:e,to:t,count:n})=>`${n===-1?`${rf(t)} زیات له`:rf(n)} ${rf(t)}- ${rf(e)} د`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ستوری`,emptyLabelText:`خالی`}},MuiAutocomplete:{defaultProps:{clearText:`پاک کول`,closeText:`تړل`,loadingText:`… لوډ کیږی`,noOptionsText:`بی پایلی`,openText:`خلاصول`}},MuiAlert:{defaultProps:{closeText:`تړل`}},MuiPagination:{defaultProps:{"aria-label":`د پاڼو ترتیب`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:` ته لاړ شه`}پاڼې ${t}`:e===`first`?`لومړۍ پاڼی ته لاړ شه`:e===`last`?`وروستۍ پاڼې ته لاړه شه`:e===`next`?`بلې پاڼې ته لاړ شه`:`مخکنۍ پاڼې ته لاړ شه`}}}},of=Pu(`pt-BR`),sf={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Mostrar caminho`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Ir para a primeira página`:e===`last`?`Ir para a última página`:e===`next`?`Ir para a próxima página`:`Ir para a página anterior`,labelRowsPerPage:`Linhas por página:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${of(e)}–${of(t)} de ${n===-1?`mais de ${of(t)}`:of(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Estrela${e===1?``:`s`}`,emptyLabelText:`Vazio`}},MuiAutocomplete:{defaultProps:{clearText:`Limpar`,closeText:`Fechar`,loadingText:`Carregando…`,noOptionsText:`Sem opções`,openText:`Abrir`}},MuiAlert:{defaultProps:{closeText:`Fechar`}},MuiPagination:{defaultProps:{"aria-label":`Navegar pela paginação`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Ir para a `}página ${t}`:e===`first`?`Ir para a primeira página`:e===`last`?`Ir para a última página`:e===`next`?`Ir para a próxima página`:`Ir para a página anterior`}}}},cf=Pu(`pt-PT`),lf={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Mostrar caminho`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Primeira página`:e===`last`?`Última página`:e===`next`?`Próxima página`:`Página anterior`,labelRowsPerPage:`Linhas por página:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${cf(e)}–${cf(t)} de ${n===-1?`mais de ${cf(t)}`:cf(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Estrela${e===1?``:`s`}`,emptyLabelText:`Vazio`}},MuiAutocomplete:{defaultProps:{clearText:`Limpar`,closeText:`Fechar`,loadingText:`A carregar…`,noOptionsText:`Sem opções`,openText:`Abrir`}},MuiAlert:{defaultProps:{closeText:`Fechar`}},MuiPagination:{defaultProps:{"aria-label":`Navegar por páginas`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Ir para a `}página ${t}`:e===`first`?`Primeira página`:e===`last`?`Última página`:e===`next`?`Próxima página`:`Página anterior`}}}},uf=Pu(`ro-RO`),df={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Arată calea`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Mergi la prima pagină`:e===`last`?`Mergi la ultima pagină`:e===`next`?`Mergi la pagina următoare`:`Mergi la pagina precedentă`,labelRowsPerPage:`Rânduri pe pagină:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${uf(e)}–${uf(t)} din ${n===-1?`mai mult de ${uf(t)}`:uf(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} St${e===1?`ea`:`ele`}`,emptyLabelText:`Gol`}},MuiAutocomplete:{defaultProps:{clearText:`Șterge`,closeText:`Închide`,loadingText:`Se încarcă…`,noOptionsText:`Nicio opțiune`,openText:`Deschide`}},MuiAlert:{defaultProps:{closeText:`Închide`}},MuiPagination:{defaultProps:{"aria-label":`Navigare prin paginare`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Mergi la `}pagina ${t}`:e===`first`?`Mergi la prima pagină`:e===`last`?`Mergi la ultima pagină`:e===`next`?`Mergi la pagina următoare`:`Mergi la pagina precedentă`}}}},ff=Pu(`ru-RU`),pf={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Показать полный путь`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Перейти на первую страницу`:e===`last`?`Перейти на последнюю страницу`:e===`next`?`Перейти на следующую страницу`:`Перейти на предыдущую страницу`,labelRowsPerPage:`Строк на странице:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${ff(e)}–${ff(t)} из ${n===-1?`более чем ${ff(t)}`:ff(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>{let t=`Звёзд`,n=e%10;return n>1&&n<5?t=`Звезды`:n===1&&(t=`Звезда`),`${e} ${t}`},emptyLabelText:`Рейтинг отсутствует`}},MuiAutocomplete:{defaultProps:{clearText:`Очистить`,closeText:`Закрыть`,loadingText:`Загрузка…`,noOptionsText:`Нет доступных вариантов`,openText:`Открыть`}},MuiAlert:{defaultProps:{closeText:`Закрыть`}},MuiPagination:{defaultProps:{"aria-label":`Навигация по страницам`,getItemAriaLabel:(e,t,n)=>e===`page`?n?`${t} страница`:`Перейти на ${t} страницу`:e===`first`?`Перейти на первую страницу`:e===`last`?`Перейти на последнюю страницу`:e===`next`?`Перейти на следующую страницу`:`Перейти на предыдущую страницу`}}}},mf=Pu(`si-LK`),hf={components:{MuiBreadcrumbs:{defaultProps:{expandText:`ගමන් මඟ පෙන්වන්න`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`පළමු පිටුවට යන්න`:e===`last`?`අවසාන පිටුවට යන්න`:e===`next`?`මීළඟ පිටුවට යන්න`:`පෙර පිටුවට යන්න`,labelRowsPerPage:`පිටුවක පේළි:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${mf(e)}–${mf(t)} දක්වා ${n===-1?`${mf(t)} ට වැඩි ප්‍රමාණයකින්`:mf(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`තරු ${e}`,emptyLabelText:`හිස්`}},MuiAutocomplete:{defaultProps:{clearText:`මකන්න`,closeText:`වසන්න`,loadingText:`නැංවෙමින්…`,noOptionsText:`විකල්ප නැත`,openText:`විවෘත කරන්න`}},MuiAlert:{defaultProps:{closeText:`වසන්න`}},MuiPagination:{defaultProps:{"aria-label":`පිටු අතර සංචරණය`,getItemAriaLabel:(e,t,n)=>e===`page`?`පිටුව ${t} ${n?``:`ට යන්න`}`:e===`first`?`පළමු පිටුවට යන්න`:e===`last`?`අවසාන පිටුවට යන්න`:e===`next`?`මීළඟ පිටුවට යන්න`:`පෙර පිටුවට යන්න`}}}},gf=Pu(`sk-SK`),_f={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Ukázať cestu `}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Ísť na prvú stránku`:e===`last`?`Ísť na poslednú stránku`:e===`next`?`Ísť na ďaľšiu stránku`:`Ísť na predchádzajúcu stránku`,labelRowsPerPage:`Riadkov na stránke:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${gf(e)}–${gf(t)} z ${n===-1?`viac ako ${gf(t)}`:gf(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>e===1?`${e} hviezdička`:e>=2&&e<=4?`${e} hviezdičky`:`${e} hviezdičiek`,emptyLabelText:`Prázdne`}},MuiAutocomplete:{defaultProps:{clearText:`Vymazať`,closeText:`Zavrieť`,loadingText:`Načítanie…`,noOptionsText:`Žiadne možnosti`,openText:`Otvoriť`}},MuiAlert:{defaultProps:{closeText:`Zavrieť`}},MuiPagination:{defaultProps:{"aria-label":`Navigácia stránkovanim`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Ísť na `}stránku ${t}`:e===`first`?`Ísť na prvú stránku`:e===`last`?`Ísť na poslednú stránku`:e===`next`?`Ísť na ďaľšiu stránku`:`Ísť na predchádzajúcu stránku`}}}},vf=Pu(`sr-RS`),yf={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Pokaži putanju`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Idi na prvu stranicu`:e===`last`?`Idi na poslednju stranicu`:e===`next`?`Idi na sledeću stranicu`:`Idi na prethodnu stranicu`,labelRowsPerPage:`Redova po stranici:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${vf(e)}–${vf(t)} od ${n===-1?`više nego ${vf(t)}`:vf(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>{let t=e%10,n=e%100;return[2,3,4].includes(t)&&![12,13,14].includes(n)?`Zvezde`:`Zvezda`},emptyLabelText:`Prazno`}},MuiAutocomplete:{defaultProps:{clearText:`Briši`,closeText:`Zatvori`,loadingText:`Učitavanje…`,noOptionsText:`Nema opcija`,openText:`Otvori`}},MuiAlert:{defaultProps:{closeText:`Zatvori`}},MuiPagination:{defaultProps:{"aria-label":`Navigacija po stranicama`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Idi na `}stranicu ${t}`:e===`first`?`Idi na prvu stranicu`:e===`last`?`Idi na zadnju stranicu`:e===`next`?`Idi na sledeću stranicu`:`Idi na prethodnu stranicu`}}}},bf=Pu(`sv-SE`),xf={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Visa sökväg`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Gå till första sidan`:e===`last`?`Gå till sista sidan`:e===`next`?`Gå till nästa sida`:`Gå till föregående sida`,labelRowsPerPage:`Rader per sida:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${bf(e)}–${bf(t)} av ${n===-1?`fler än ${bf(t)}`:bf(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ${e===1?`Stjärna`:`Stjärnor`}`,emptyLabelText:`Tom`}},MuiAutocomplete:{defaultProps:{clearText:`Rensa`,closeText:`Stäng`,loadingText:`Laddar…`,noOptionsText:`Inga alternativ`,openText:`Öppna`}},MuiAlert:{defaultProps:{closeText:`Stäng`}},MuiPagination:{defaultProps:{"aria-label":`Sidnavigering`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Gå till `}sida ${t}`:e===`first`?`Gå till första sidan`:e===`last`?`Gå till sista sidan`:e===`next`?`Gå till nästa sida`:`Gå till föregående sida`}}}},Sf=Pu(`th-TH`),Cf={components:{MuiBreadcrumbs:{defaultProps:{expandText:`แสดงเส้นทาง`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`ไปที่หน้าแรก`:e===`last`?`ไปที่หน้าสุดท้าย`:e===`next`?`ไปที่หน้าถัดไป`:`ไปที่หน้าก่อน`,labelRowsPerPage:`จำนวนแถวต่อหน้า:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Sf(e)}–${Sf(t)} จาก ${n===-1?`มากกว่า ${Sf(t)}`:Sf(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ดาว`,emptyLabelText:`ว่างเปล่า`}},MuiAutocomplete:{defaultProps:{clearText:`เคลียร์`,closeText:`ปิด`,loadingText:`กำลังโหลด…`,noOptionsText:`ไม่มีตัวเลือก`,openText:`เปิด`}},MuiAlert:{defaultProps:{closeText:`ปิด`}},MuiPagination:{defaultProps:{"aria-label":``,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`ไปที่`}หน้า ${t}`:e===`first`?`ไปที่หน้าแรก`:e===`last`?`ไปที่หน้าสุดท้าย`:e===`next`?`ไปที่หน้าถัดไป`:`ไปที่หน้าก่อน`}}}},wf=Pu(`tr-TR`),Tf={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Yolu göster`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`İlk sayfaya git`:e===`last`?`Son sayfaya git`:e===`next`?`Sonraki sayfaya git`:`Önceki sayfaya git`,labelRowsPerPage:`Sayfa başına satır:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${wf(e)}-${wf(t)} / ${n===-1?`${wf(t)}'den fazla`:wf(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Yıldız`,emptyLabelText:`Boş`}},MuiAutocomplete:{defaultProps:{clearText:`Temizle`,closeText:`Kapat`,loadingText:`Yükleniyor…`,noOptionsText:`Seçenek yok`,openText:`Aç`}},MuiAlert:{defaultProps:{closeText:`Kapat`}},MuiPagination:{defaultProps:{"aria-label":`Sayfa navigasyonu`,getItemAriaLabel:(e,t,n)=>e===`page`?`${t}. ${n?`sayfa`:`sayfaya git`}`:e===`first`?`İlk sayfaya git`:e===`last`?`Son sayfaya git`:e===`next`?`Sonraki sayfaya git`:`Önceki sayfaya git`}}}},Ef=Pu(`tl-TL`),Df={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Ipakita ang landas`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Pumunta sa unang pahina`:e===`last`?`Pumunta sa huling pahina`:e===`next`?`Pumunta sa susunod na pahina`:`Pumunta sa nakaraang pahina`,labelRowsPerPage:`Mga hilera bawat pahina:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Ef(e)}–${Ef(t)} ng ${n===-1?`higit sa ${Ef(t)}`:Ef(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Bituin${e===1?``:`s`}`,emptyLabelText:`Walang laman`}},MuiAutocomplete:{defaultProps:{clearText:`Maaliwalas`,closeText:`Isara`,loadingText:`Naglo-load…`,noOptionsText:`Walang mga pagpipilian`,openText:`Bukas`}},MuiAlert:{defaultProps:{closeText:`Isara`}},MuiPagination:{defaultProps:{"aria-label":`Sayfa navigasyonu`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Pumunta sa`}pahina ${t}`:e===`first`?`Pumunta sa unang pahina`:e===`last`?`Pumunta sa huling pahina`:e===`next`?`Pumunta sa susunod na pahina`:`Pumunta sa nakaraang pahina`}}}},Of=Pu(`uk-UA`),kf={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Показати шлях сторінок`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Перейти на першу сторінку`:e===`last`?`Перейти на останню сторінку`:e===`next`?`Перейти на наступну сторінку`:`Перейти на попередню сторінку`,labelRowsPerPage:`Рядків на сторінці:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Of(e)}–${Of(t)} з ${n===-1?`понад ${Of(t)}`:Of(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>{let t=`Зірок`,n=e%10;return n>1&&n<5?t=`Зірки`:n===1&&(t=`Зірка`),`${e} ${t}`},emptyLabelText:`Рейтинг відсутній`}},MuiAutocomplete:{defaultProps:{clearText:`Очистити`,closeText:`Згорнути`,loadingText:`Завантаження…`,noOptionsText:`Немає варіантів`,openText:`Розгорнути`}},MuiAlert:{defaultProps:{closeText:`Згорнути`}},MuiPagination:{defaultProps:{"aria-label":`Навігація сторінками`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Перейти на `}сторінку ${t}`:e===`first`?`Перейти на першу сторінку`:e===`last`?`Перейти на останню сторінку`:e===`next`?`Перейти на наступну сторінку`:`Перейти на попередню сторінку`}}}},Af=Pu(`ur-PK`),jf={components:{MuiBreadcrumbs:{defaultProps:{expandText:`راستہ دکھائیں`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`پہلے صفحے پر جائیں`:e===`last`?`آخری صفحے پر جائیں`:e===`next`?`اگلے صفحے پر جائیں`:`پچھلے صفحے پر جائیں`,labelRowsPerPage:`ایک صفحے پر قطاریں:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${n===-1?`${Af(t)} سے ذیادہ میں سے`:`${Af(n)} میں سے`} ${Af(e)} سے ${Af(t)} قطاریں`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ستار${e===1?`ہ`:`ے`}`,emptyLabelText:`خالی`}},MuiAutocomplete:{defaultProps:{clearText:`کلئیر`,closeText:`بند کریں`,loadingText:`لوڈ ہو رہا ہے۔۔۔`,noOptionsText:`کوئی آپشن نہیں`,openText:`کھولیں`}},MuiAlert:{defaultProps:{closeText:`بند کریں`}},MuiPagination:{defaultProps:{"aria-label":`صفحات کی ترتیب`,getItemAriaLabel:(e,t,n)=>e===`page`?`صفحہ نمبر ${t}${n?``:` پر جائیں`}`:e===`first`?`پہلے صفحے پر جائیں`:e===`last`?`آخری صفحے پر جائیں`:e===`next`?`اگلے صفحے پر جائیں`:`پچھلے صفحے پر جائیں`}}}},Mf=Pu(`vi-VN`),Nf={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Mở ra`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Tới trang đầu tiên`:e===`last`?`Tới trang cuối cùng`:e===`next`?`Tới trang tiếp theo`:`Về trang trước đó`,labelRowsPerPage:`Số hàng mỗi trang:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Mf(e)}–${Mf(t)} trong ${n===-1?`nhiều hơn ${Mf(t)}`:Mf(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} sao`,emptyLabelText:`Không có dữ liệu`}},MuiAutocomplete:{defaultProps:{clearText:`Xóa`,closeText:`Đóng`,loadingText:`Đang tải…`,noOptionsText:`Không có lựa chọn nào`,openText:`Mở`}},MuiAlert:{defaultProps:{closeText:`Đóng`}},MuiPagination:{defaultProps:{"aria-label":`Thanh điều khiển trang`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`Tới `}trang ${t}`:e===`first`?`Tới trang đầu tiên`:e===`last`?`Tới trang cuối cùng`:e===`next`?`Tới trang tiếp theo`:`Về trang trước đó`}}}},Pf=Pu(`zh-CN`),Ff={components:{MuiBreadcrumbs:{defaultProps:{expandText:`展开`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`第一页`:e===`last`?`最后一页`:e===`next`?`下一页`:`上一页`,labelRowsPerPage:`每页行数:`,labelDisplayedRows:({from:e,to:t,count:n})=>`第 ${Pf(e)} 条到第 ${Pf(t)} 条,${n===-1?`至少 ${Pf(t)} 条`:`共 ${Pf(n)} 条`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} 颗星`,emptyLabelText:`无标签`}},MuiAutocomplete:{defaultProps:{clearText:`清空`,closeText:`关闭`,loadingText:`加载中……`,noOptionsText:`没有可用选项`,openText:`打开`}},MuiAlert:{defaultProps:{closeText:`关闭`}}}},If=Pu(`zh-HK`),Lf={components:{MuiBreadcrumbs:{defaultProps:{expandText:`展開`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`第一頁`:e===`last`?`最後一頁`:e===`next`?`下一頁`:`上一頁`,labelRowsPerPage:`每頁行數:`,labelDisplayedRows:({from:e,to:t,count:n})=>`第 ${If(e)} 項至第 ${If(t)} 項,${n===-1?`超過 ${If(t)} 項`:`共 ${If(n)} 項`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} 粒星`,emptyLabelText:`無標籤`}},MuiAutocomplete:{defaultProps:{clearText:`清除`,closeText:`關閉`,loadingText:`載入中……`,noOptionsText:`沒有可用選項`,openText:`開啟`}},MuiAlert:{defaultProps:{closeText:`關閉`}}}},Rf=Pu(`zh-TW`),zf={components:{MuiBreadcrumbs:{defaultProps:{expandText:`展開`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`第一頁`:e===`last`?`最後一頁`:e===`next`?`下一頁`:`上一頁`,labelRowsPerPage:`每頁數量:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Rf(e)} ~ ${Rf(t)} / ${n===-1?`${Rf(t)} 以上`:Rf(n)}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} 顆星`,emptyLabelText:`無標籤`}},MuiAutocomplete:{defaultProps:{clearText:`清空`,closeText:`關閉`,loadingText:`載入中…`,noOptionsText:`沒有可用選項`,openText:`打開`}},MuiAlert:{defaultProps:{closeText:`關閉`}}}},Bf=n({amET:()=>Iu,arEG:()=>Ru,arSA:()=>Bu,arSD:()=>Hu,azAZ:()=>Uu,beBY:()=>Gu,bgBG:()=>Ku,bnBD:()=>Ju,caES:()=>Xu,csCZ:()=>Qu,daDK:()=>ed,deDE:()=>nd,elGR:()=>id,enUS:()=>ad,esES:()=>sd,etEE:()=>ld,faIR:()=>dd,fiFI:()=>pd,frFR:()=>hd,heIL:()=>_d,hiIN:()=>yd,hrHR:()=>xd,huHU:()=>Sd,hyAM:()=>Cd,idID:()=>wd,isIS:()=>Ed,itIT:()=>Od,jaJP:()=>Ad,khKH:()=>Md,kkKZ:()=>Bd,koKR:()=>Pd,kuCKB:()=>Id,kuLatn:()=>Rd,mkMK:()=>Hd,msMS:()=>Wd,myMY:()=>Kd,nbNO:()=>Jd,neNP:()=>Xd,nlNL:()=>ef,nnNO:()=>Qd,plPL:()=>nf,psAF:()=>af,ptBR:()=>sf,ptPT:()=>lf,roRO:()=>df,ruRU:()=>pf,siLK:()=>hf,skSK:()=>_f,srRS:()=>yf,svSE:()=>xf,thTH:()=>Cf,tlTL:()=>Df,trTR:()=>Tf,ukUA:()=>kf,urPK:()=>jf,viVN:()=>Nf,zhCN:()=>Ff,zhHK:()=>Lf,zhTW:()=>zf});function Vf(e){let t=e.replace(`#`,``),n=t.length===3?t.split(``).map(e=>e+e).join(``):t,r=parseInt(n,16);return[r>>16&255,r>>8&255,r&255]}function Hf(e){let[t,n,r]=Vf(e);return`${t} ${n} ${r}`}function Uf(e,t,n){let r=e=>Math.round(e).toString(16).padStart(2,`0`);return`#${r(e)}${r(t)}${r(n)}`.toUpperCase()}function Wf(e){let[t,n,r]=Vf(e),i=t/255,a=n/255,o=r/255,s=Math.max(i,a,o),c=Math.min(i,a,o),l=0,u=0,d=(s+c)/2,f=s-c;if(f!==0){switch(u=d>.5?f/(2-s-c):f/(s+c),s){case i:l=(a-o)/f+(a<o?6:0);break;case a:l=(o-i)/f+2;break;default:l=(i-a)/f+4}l/=6}return{h:l*360,s:u*100,l:d*100}}function Gf(e,t,n){let r=t/100,i=n/100,a=(1-Math.abs(2*i-1))*r,o=a*(1-Math.abs(e/60%2-1)),s=i-a/2,c,l,u;return e>=0&&e<60?[c,l,u]=[a,o,0]:e>=60&&e<120?[c,l,u]=[o,a,0]:e>=120&&e<180?[c,l,u]=[0,a,o]:e>=180&&e<240?[c,l,u]=[0,o,a]:e>=240&&e<300?[c,l,u]=[o,0,a]:[c,l,u]=[a,0,o],Uf(Math.round((c+s)*255),Math.round((l+s)*255),Math.round((u+s)*255))}function Kf(e,t){return`rgba(${e} / ${t})`}function qf(e){return{...e,lighterChannel:Hf(e.lighter),lightChannel:Hf(e.light),mainChannel:Hf(e.main),darkChannel:Hf(e.dark),darkerChannel:Hf(e.darker),contrastTextChannel:Hf(e.contrastText)}}function Jf(e){let t=[50,100,200,300,400,500,600,700,800,900,950],n={};for(let r of t){let t=`${r}Channel`;n[t]=Hf(e[r])}return{...e,...n}}function Yf(e,t,n){return Math.max(t,Math.min(n,e))}function Xf(e){let t=Wf(e),n=[{key:50,lDelta:40},{key:100,lDelta:32},{key:200,lDelta:24},{key:300,lDelta:16},{key:400,lDelta:8},{key:500,lDelta:0},{key:600,lDelta:-8},{key:700,lDelta:-16},{key:800,lDelta:-24},{key:900,lDelta:-32},{key:950,lDelta:-40}],r={};for(let{key:e,lDelta:i}of n){let n=Yf(t.l+i,5,95);r[e]=Gf(t.h,t.s,n)}return r}function Zf(e,t){let n=e=>e.includes(`var(--`),r=e=>e.trim().endsWith(`%`),i={invalid:`[varAlpha]: Invalid opacity "${e}" for "${t}".`,range:`Must be a number between 0 and 1 (e.g., 0.48).`,format:`Must be a percentage (e.g., "48%") or CSS variable (e.g., "var(--opacity)").`};if(typeof e==`string`){if(r(e))return e;if(n(e))return`calc(${e} * 100%)`;let t=parseFloat(e.trim());if(!isNaN(t)&&t>=0&&t<=1)return`${Number((t*100).toFixed(2))}%`;throw Error(`${i.invalid} ${i.format}`)}if(typeof e==`number`){if(e>=0&&e<=1)return`${Number((e*100).toFixed(2))}%`;throw Error(`${i.invalid} ${i.range}`)}throw Error(`${i.invalid}`)}function Qf(e,t=1){if(!e?.trim())throw Error(`[varAlpha]: Color is undefined or empty!`);if(e.startsWith(`#`)||e.startsWith(`rgb(`)||e.startsWith(`rgba(`)||!e.includes(`var`)&&e.includes(`Channel`))throw Error([`[varAlpha]: Unsupported color format "${e}"`,`✅ Supported formats:`,` - RGB channels: "0 184 217"`,` - CSS variables: "var(--palette-primary-mainChannel)"`,` - currentColor`,`❌ Unsupported formats:`,` - Hex: "#00B8D9"`,` - RGB: "rgb(0, 184, 217)"`,` - RGBA: "rgba(0, 184, 217, 1)"`].join(`
49
- `));let n=Zf(t,e);return e.toLowerCase()===`currentcolor`?`color-mix(in srgb, currentColor ${n}, transparent)`:`rgba(${e} / ${n})`}var $f={50:`#F7FAFC`,100:`#EBF2F5`,200:`#DBE6EB`,300:`#C3D3DB`,400:`#9CAEB8`,500:`#77878F`,600:`#4D595E`,700:`#262D30`,800:`#1B2124`,900:`#111417`,950:`#06080A`},ep={50:`#EAF3FD`,100:`#C6DDFB`,200:`#A1C7F8`,300:`#7DB1F5`,400:`#589BF3`,500:`#3385F0`,600:`#2B71CC`,700:`#245DA8`,800:`#1C4984`,900:`#143560`,950:`#0A1B30`},tp={50:`#E6F5F0`,100:`#BBE4D5`,200:`#8ED3BA`,300:`#62C29F`,400:`#35B084`,500:`#099F69`,600:`#088759`,700:`#066F49`,800:`#05573A`,900:`#04402A`,950:`#022015`},np={50:`#F2E4FE`,100:`#E6CAFE`,200:`#D6A8FD`,300:`#C686FC`,400:`#B663FB`,500:`#A641FA`,600:`#8D37D5`,700:`#742DAF`,800:`#5B2489`,900:`#421A64`,950:`#210D32`},rp={50:`#F9E2E6`,100:`#F2C1CA`,200:`#E99AA8`,300:`#E17286`,400:`#D84A63`,500:`#D02241`,600:`#B11D37`,700:`#91182D`,800:`#721324`,900:`#530E1A`,950:`#3A0A12`},ip={50:`#FEEFE1`,100:`#FCDFC4`,200:`#FBCB9D`,300:`#F9B677`,400:`#F8A250`,500:`#F68D2A`,600:`#D17824`,700:`#AC631D`,800:`#874E17`,900:`#623811`,950:`#372412`},ap={50:`#E0F3FA`,100:`#BCE6F4`,200:`#90D6EC`,300:`#64C6E5`,400:`#39B6DD`,500:`#0DA6D6`,600:`#0B8DB6`,700:`#097496`,800:`#075B76`,900:`#054256`,950:`#03212B`},op={white:`#FFFFFF`,black:`#000000`};function sp(e){let t=e.replace(`#`,``).match(/.{2}/g);if(!t)return 0;let[n,r,i]=t.map(e=>{let t=parseInt(e,16)/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return .2126*n+.7152*r+.0722*i}function cp(e){return sp(e)<.3?`#FFFFFF`:`#212121`}function lp(e,t=`light`){let n=t===`dark`?e[400]:e[500],r=cp(n);return qf(t===`dark`?{lighter:e[950],light:e[700],main:n,dark:e[300],darker:e[100],contrastText:r}:{lighter:e[50],light:e[400],main:n,dark:e[600],darker:e[900],contrastText:r})}function up(e,t=`light`){return t===`dark`?{default:e[950],paper:e[900],neutral:e[800],elevation1:e[800],elevation2:e[700],elevation3:e[600],elevation4:e[500],menu:e[900],menuElevation1:e[800],menuElevation2:e[700]}:{default:`#FFFFFF`,paper:`#FFFFFF`,neutral:e[50],elevation1:e[50],elevation2:e[100],elevation3:e[200],elevation4:e[300],menu:`#FFFFFF`,menuElevation1:e[50],menuElevation2:e[100]}}function dp(e,t=`light`){let n=t===`dark`?{primary:e[50],secondary:e[300],disabled:e[500]}:{primary:e[900],secondary:e[600],disabled:e[400]};return{...n,primaryChannel:Hf(n.primary),secondaryChannel:Hf(n.secondary),disabledChannel:Hf(n.disabled)}}function fp(e,t=`light`){return t===`dark`?{active:e[400],hover:e[700],selected:e[700],disabled:e[600],disabledBackground:e[800],focus:e[600]}:{active:e[500],hover:e[100],selected:e[100],disabled:e[400],disabledBackground:e[200],focus:e[300]}}function pp(e,t,n=`light`){let r=Hf(t);return{listItemHover:Kf(e,n===`dark`?.08:.5),buttonHover:Kf(e,n===`dark`?.12:.7),textFieldHover:Kf(e,n===`dark`?.12:.7),text:{secondary:Kf(r,.76),disabled:Kf(r,.4)},overlay:Kf(e,n===`dark`?.16:.7)}}function mp(e){return{chGrey:Jf(e.grey),chRed:Jf(e.red),chBlue:Jf(e.blue),chGreen:Jf(e.green),chOrange:Jf(e.orange),chLightBlue:Jf(e.lightBlue),chPurple:Jf(e.purple)}}function hp(e){let{primary:t,secondary:n,info:r,success:i,warning:a,error:o,grey:s,mode:c,backgroundDefault:l,paperColor:u}=e,d=Jf(s),f=up(s,c),p=dp(s,c),m=fp(s,c);l&&(f.default=l),u&&(f.paper=u,f.menu=u);let h={black:op.black,white:op.white,blackChannel:Hf(op.black),whiteChannel:Hf(op.white)},g=pp(h.whiteChannel,p.primary,c),_=mp({grey:s,red:rp,blue:ep,green:tp,orange:ip,lightBlue:ap,purple:np}),v=c===`dark`?s[700]:s[300],y=Kf(Hf(s[c===`dark`?700:300]),.6),b=Kf(Hf(s[700]),0);return{mode:c,common:h,grey:d,primary:lp(t,c),secondary:lp(n,c),info:lp(r,c),success:lp(i,c),warning:lp(a,c),error:lp(o,c),neutral:lp(s,c),background:f,text:p,action:m,divider:v,dividerLight:y,menuDivider:b,vibrant:g,chart:_}}var gp=hp({primary:ep,secondary:np,info:ap,success:tp,warning:ip,error:rp,grey:$f,mode:`light`}),_p=hp({primary:ep,secondary:np,info:ap,success:tp,warning:ip,error:rp,grey:$f,mode:`dark`}),q=io;function vp(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function yp(e){return(0,B.jsx)(ms,{...e,defaultTheme:Su,themeId:Xn})}function bp(e){return function(t){return(0,B.jsx)(yp,{styles:typeof e==`function`?n=>e({theme:n,...t}):e})}}var xp=wc;function J(e){return mc(e)}function Sp(e){return H(`MuiSvgIcon`,e)}var Cp=U(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]),wp=e=>{let{color:t,fontSize:n,classes:r}=e;return Gc({root:[`root`,t!==`inherit`&&`color${q(t)}`,`fontSize${q(n)}`]},Sp,r)},Tp=K(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${q(n.color)}`],t[`fontSize${q(n.fontSize)}`]]}})(xp(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,transition:e.transitions?.create?.(`fill`,{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:`currentColor`}},{props:{fontSize:`inherit`},style:{fontSize:`inherit`}},{props:{fontSize:`small`},style:{fontSize:e.typography?.pxToRem?.(20)||`1.25rem`}},{props:{fontSize:`medium`},style:{fontSize:e.typography?.pxToRem?.(24)||`1.5rem`}},{props:{fontSize:`large`},style:{fontSize:e.typography?.pxToRem?.(35)||`2.1875rem`}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:`action`},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:`disabled`},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:`inherit`},style:{color:void 0}}]}))),Ep=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiSvgIcon`}),{children:r,className:i,color:a=`inherit`,component:o=`svg`,fontSize:s=`medium`,htmlColor:c,inheritViewBox:l=!1,titleAccess:u,viewBox:d=`0 0 24 24`,...f}=n,p=C.isValidElement(r)&&r.type===`svg`,m={...n,color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:d,hasSvgAsChild:p},h={};return l||(h.viewBox=d),(0,B.jsxs)(Tp,{as:o,className:V(wp(m).root,i),focusable:`false`,color:c,"aria-hidden":u?void 0:!0,role:u?`img`:void 0,ref:t,...h,...f,...p&&r.props,ownerState:m,children:[p?r.props.children:r,u?(0,B.jsx)(`title`,{children:u}):null]})});Ep.muiName=`SvgIcon`;function Dp(e,t){function n(t,n){return(0,B.jsx)(Ep,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=Ep.muiName,C.memo(C.forwardRef(n))}function Op(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}var kp=Op,Ap=Zc;function jp(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var Mp=jp;function Np(e){return e&&e.ownerDocument||document}var Pp=Np;function Fp(e){return Np(e).defaultView||window}var Ip=Fp;function Lp(e,t){typeof e==`function`?e(t):e&&(e.current=t)}var Rp=Fs,zp=vc;function Bp(e){let{controlled:t,default:n,name:r,state:i=`value`}=e,{current:a}=C.useRef(t!==void 0),[o,s]=C.useState(n);return[a?t:o,C.useCallback(e=>{a||s(e)},[])]}var Vp=Bp;function Hp(e){let t=C.useRef(e);return Fs(()=>{t.current=e}),C.useRef((...e)=>(0,t.current)(...e)).current}var Up=Hp;function Wp(...e){let t=C.useRef(void 0),n=C.useCallback(t=>{let n=e.map(e=>{if(e==null)return null;if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return C.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var Gp=Wp;function Kp(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function qp(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{Kp(r,t[r])&&typeof e[r]==`function`&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if(typeof e==`function`||typeof t==`function`)return r=>{let i=typeof t==`function`?t(r):t,a=typeof e==`function`?e({...r,...i}):e,o=V(r?.className,i?.className,a?.className),s=n(a,i);return{...i,...a,...s,...!!o&&{className:o},...i?.style&&a?.style&&{style:{...i.style,...a.style}},...i?.sx&&a?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};let r=t,i=n(e,r),a=V(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function Jp(e){return typeof e.main==`string`}function Yp(e,t=[]){if(!Jp(e))return!1;for(let n of t)if(!e.hasOwnProperty(n)||typeof e[n]!=`string`)return!1;return!0}function Xp(e=[]){return([,t])=>t&&Yp(t,e)}function Zp(e){try{return e.matches(`:focus-visible`)}catch{}return!1}function Qp(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return C.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}var $p={};function em(e){let{nativeButton:t,nativeButtonProp:n,internalNativeButton:r=t,allowInferredHostMismatch:i=!1,disabled:a,type:o,hasFormAction:s=!1,tabIndex:c=0,focusableWhenDisabled:l,stopEventPropagation:u=!1,onBeforeKeyDown:d,onBeforeKeyUp:f}=e,p=C.useRef(null),m=l===!0,h=Qp({focusableWhenDisabled:m,disabled:a,isNativeButton:t,tabIndex:c}),g=C.useCallback(()=>{let e=p.current;return e==null?t:e.tagName===`BUTTON`?!0:!!(e.tagName===`A`&&e.href)},[t]),_=C.useMemo(()=>{let e=m?{}:{tabIndex:a?-1:c};return t?(e.type=o===void 0&&!s?`button`:o,m||(e.disabled=a)):(e.role=`button`,!m&&a&&(e[`aria-disabled`]=a)),m?{...e,...h}:e},[a,m,h,s,t,c,o]);return{getButtonProps:C.useCallback((e=$p)=>{let{onClick:t,onKeyDown:n,onKeyUp:r,...i}=e,o=e=>{if(u&&e.stopPropagation(),a){e.preventDefault();return}t?.(e)},s=e=>{if(m&&h.onKeyDown(e),!a&&(d?.(e),n?.(e),!(e.target!==e.currentTarget||g()))){if(e.key===` `){e.preventDefault();return}e.key===`Enter`&&(e.preventDefault(),e.currentTarget.click())}},c=e=>{a||(f?.(e),r?.(e),e.target===e.currentTarget&&!g()&&e.key===` `&&!e.defaultPrevented&&e.currentTarget.click())};return{..._,...i,onClick:o,onKeyDown:s,onKeyUp:c}},[_,a,m,h,g,d,f,u]),rootRef:p}}var tm={};function nm(e,t){let n=C.useRef(tm);return n.current===tm&&(n.current=e(t)),n}var rm=class e{static create(){return new e}static use(){let t=nm(e.create).current,[n,r]=C.useState(!1);return t.shouldMount=n,t.setShouldMount=r,C.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=am(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};function im(){return rm.use()}function am(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function om(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function sm(e,t){return sm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sm(e,t)}function cm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,sm(e,t)}var lm={disabled:!1},um=C.createContext(null),dm=function(e){return e.scrollTop},fm=e(b()),pm=`unmounted`,mm=`exited`,hm=`entering`,gm=`entered`,_m=`exiting`,vm=function(e){cm(t,e);function t(t,n){var r=e.call(this,t,n)||this,i=n,a=i&&!i.isMounting?t.enter:t.appear,o;return r.appearStatus=null,t.in?a?(o=mm,r.appearStatus=hm):o=gm:o=t.unmountOnExit||t.mountOnEnter?pm:mm,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:mm}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==`entering`&&n!==`entered`&&(t=hm):(n===`entering`||n===`entered`)&&(t=_m)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=n=r=e,n,r;return e!=null&&typeof e!=`number`&&(t=e.exit,n=e.enter,r=e.appear===void 0?n:e.appear),{exit:t,enter:n,appear:r}},n.updateStatus=function(e,t){if(e===void 0&&(e=!1),t!==null)if(this.cancelNextCallback(),t===`entering`){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:fm.default.findDOMNode(this);n&&dm(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:pm})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[fm.default.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;if(!e&&!n||lm.disabled){this.safeSetState({status:gm},function(){t.props.onEntered(a)});return}this.props.onEnter(a,o),this.safeSetState({status:hm},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:gm},function(){t.props.onEntered(a,o)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:fm.default.findDOMNode(this);if(!t||lm.disabled){this.safeSetState({status:mm},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:_m},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:mm},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:fm.default.findDOMNode(this),r=e==null&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}e!=null&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===`unmounted`)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=om(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return C.createElement(um.Provider,{value:null},typeof n==`function`?n(e,r):C.cloneElement(C.Children.only(n),r))},t}(C.Component);vm.contextType=um,vm.propTypes={};function ym(){}vm.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ym,onEntering:ym,onEntered:ym,onExit:ym,onExiting:ym,onExited:ym},vm.UNMOUNTED=pm,vm.EXITED=mm,vm.ENTERING=hm,vm.ENTERED=gm,vm.EXITING=_m;function bm(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function xm(e,t){var n=function(e){return t&&(0,C.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&C.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function Sm(e,t){e||={},t||={};function n(n){return n in t?t[n]:e[n]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var o,s={};for(var c in t){if(r[c])for(o=0;o<r[c].length;o++){var l=r[c][o];s[r[c][o]]=n(l)}s[c]=n(c)}for(o=0;o<i.length;o++)s[i[o]]=n(i[o]);return s}function Cm(e,t,n){return n[t]==null?e.props[t]:n[t]}function wm(e,t){return xm(e.children,function(n){return(0,C.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:Cm(n,`appear`,e),enter:Cm(n,`enter`,e),exit:Cm(n,`exit`,e)})})}function Tm(e,t,n){var r=xm(e.children),i=Sm(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if((0,C.isValidElement)(o)){var s=a in t,c=a in r,l=t[a],u=(0,C.isValidElement)(l)&&!l.props.in;c&&(!s||u)?i[a]=(0,C.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:Cm(o,`exit`,e),enter:Cm(o,`enter`,e)}):!c&&s&&!u?i[a]=(0,C.cloneElement)(o,{in:!1}):c&&s&&(0,C.isValidElement)(l)&&(i[a]=(0,C.cloneElement)(o,{onExited:n.bind(null,o),in:l.props.in,exit:Cm(o,`exit`,e),enter:Cm(o,`enter`,e)}))}}),i}var eee=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},tee={component:`div`,childFactory:function(e){return e}},Em=function(e){cm(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(bm(r)),firstRender:!0},r}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?wm(e,r):Tm(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=xm(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=Zn({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=om(e,[`component`,`childFactory`]),i=this.state.contextValue,a=eee(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?C.createElement(um.Provider,{value:i},a):C.createElement(um.Provider,{value:i},C.createElement(t,r,a))},t}(C.Component);Em.propTypes={},Em.defaultProps=tee;var nee=[];function ree(e){C.useEffect(e,nee)}var Dm=class e{static create(){return new e}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function Om(){let e=nm(Dm.create).current;return ree(e.disposeEffect),e}function iee(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=C.useState(!1),f=V(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=V(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),C.useEffect(()=>{if(!s&&c!=null){let e=setTimeout(c,l);return()=>{clearTimeout(e)}}},[c,s,l]),(0,B.jsx)(`span`,{className:f,style:p,children:(0,B.jsx)(`span`,{className:m})})}var km=U(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),Am=550,jm=Qi`
50
- 0% {
51
- transform: scale(0);
52
- opacity: 0.1;
53
- }
54
-
55
- 100% {
56
- transform: scale(1);
57
- opacity: 0.3;
58
- }
59
- `,Mm=Qi`
60
- 0% {
61
- opacity: 1;
62
- }
63
-
64
- 100% {
65
- opacity: 0;
66
- }
67
- `,Nm=Qi`
68
- 0% {
69
- transform: scale(1);
70
- }
71
-
72
- 50% {
73
- transform: scale(0.92);
74
- }
75
-
76
- 100% {
77
- transform: scale(1);
78
- }
79
- `,Pm=K(`span`,{name:`MuiTouchRipple`,slot:`Root`})({overflow:`hidden`,pointerEvents:`none`,position:`absolute`,zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:`inherit`}),Fm=K(iee,{name:`MuiTouchRipple`,slot:`Ripple`})`
80
- opacity: 0;
81
- position: absolute;
82
-
83
- &.${km.rippleVisible} {
84
- opacity: 0.3;
85
- transform: scale(1);
86
- animation-name: ${jm};
87
- animation-duration: ${Am}ms;
88
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
89
- }
90
-
91
- &.${km.ripplePulsate} {
92
- animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
93
- }
94
-
95
- & .${km.child} {
96
- opacity: 1;
97
- display: block;
98
- width: 100%;
99
- height: 100%;
100
- border-radius: 50%;
101
- background-color: currentColor;
102
- }
103
-
104
- & .${km.childLeaving} {
105
- opacity: 0;
106
- animation-name: ${Mm};
107
- animation-duration: ${Am}ms;
108
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
109
- }
110
-
111
- & .${km.childPulsate} {
112
- position: absolute;
113
- /* @noflip */
114
- left: 0px;
115
- top: 0;
116
- animation-name: ${Nm};
117
- animation-duration: 2500ms;
118
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
119
- animation-iteration-count: infinite;
120
- animation-delay: 200ms;
121
- }
122
- `,Im=C.forwardRef(function(e,t){let{center:n=!1,classes:r={},className:i,...a}=J({props:e,name:`MuiTouchRipple`}),[o,s]=C.useState([]),c=C.useRef(0),l=C.useRef(null);C.useEffect(()=>{l.current&&=(l.current(),null)},[o]);let u=C.useRef(!1),d=Om(),f=C.useRef(null),p=C.useRef(null),m=C.useCallback(e=>{let{pulsate:t,rippleX:n,rippleY:i,rippleSize:a,cb:o}=e;s(e=>[...e,(0,B.jsx)(Fm,{classes:{ripple:V(r.ripple,km.ripple),rippleVisible:V(r.rippleVisible,km.rippleVisible),ripplePulsate:V(r.ripplePulsate,km.ripplePulsate),child:V(r.child,km.child),childLeaving:V(r.childLeaving,km.childLeaving),childPulsate:V(r.childPulsate,km.childPulsate)},timeout:Am,pulsate:t,rippleX:n,rippleY:i,rippleSize:a},c.current)]),c.current+=1,l.current=o},[r]),h=C.useCallback((e={},t={},r=()=>{})=>{let{pulsate:i=!1,center:a=n||t.pulsate,fakeElement:o=!1}=t;if(e?.type===`mousedown`&&u.current){u.current=!1;return}e?.type===`touchstart`&&(u.current=!0);let s=o?null:p.current,c=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0},l,h,g;if(a||e===void 0||e.clientX===0&&e.clientY===0||!e.clientX&&!e.touches)l=Math.round(c.width/2),h=Math.round(c.height/2);else{let{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;l=Math.round(t-c.left),h=Math.round(n-c.top)}if(a)g=Math.sqrt((2*c.width**2+c.height**2)/3),g%2==0&&(g+=1);else{let e=Math.max(Math.abs((s?s.clientWidth:0)-l),l)*2+2,t=Math.max(Math.abs((s?s.clientHeight:0)-h),h)*2+2;g=Math.sqrt(e**2+t**2)}e?.touches?f.current===null&&(f.current=()=>{m({pulsate:i,rippleX:l,rippleY:h,rippleSize:g,cb:r})},d.start(80,()=>{f.current&&=(f.current(),null)})):m({pulsate:i,rippleX:l,rippleY:h,rippleSize:g,cb:r})},[n,m,d]),g=C.useCallback(()=>{h({},{pulsate:!0})},[h]),_=C.useCallback((e,t)=>{if(d.clear(),e?.type===`touchend`&&f.current){f.current(),f.current=null,d.start(0,()=>{_(e,t)});return}f.current=null,s(e=>e.length>0?e.slice(1):e),l.current=t},[d]);return C.useImperativeHandle(t,()=>({pulsate:g,start:h,stop:_}),[g,h,_]),(0,B.jsx)(Pm,{className:V(km.root,r.root,i),ref:p,...a,children:(0,B.jsx)(Em,{component:null,exit:!0,children:o})})});function Lm(e){return H(`MuiButtonBase`,e)}var Rm=U(`MuiButtonBase`,[`root`,`disabled`,`focusVisible`]),zm=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,suppressFocusVisible:i,classes:a}=e,o=Gc({root:[`root`,t&&`disabled`,n&&!i&&`focusVisible`]},Lm,a);return n&&!i&&r&&(o.root+=` ${r}`),o},Bm=K(`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`},[`&.${Rm.disabled}`]:{pointerEvents:`none`,cursor:`default`},"@media print":{colorAdjust:`exact`}}),Vm=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiButtonBase`}),{action:r,centerRipple:i=!1,children:a,className:o,component:s=`button`,disabled:c=!1,disableRipple:l=!1,disableTouchRipple:u=!1,focusRipple:d=!1,focusVisibleClassName:f,focusableWhenDisabled:p,suppressFocusVisible:m=!1,internalNativeButton:h,LinkComponent:g=`a`,nativeButton:_,onBlur:v,onClick:y,onContextMenu:b,onDragLeave:x,onFocus:S,onFocusVisible:w,onKeyDown:T,onKeyUp:E,onMouseDown:D,onMouseLeave:O,onMouseUp:k,onTouchEnd:A,onTouchMove:j,onTouchStart:M,tabIndex:N=0,TouchRippleProps:P,touchRippleRef:F,type:I,...L}=n,ee=!!(L.href||L.to),te=!!L.formAction,ne=s;ne===`button`&&ee&&(ne=g);let re=typeof ne==`string`?ne===`button`:h??!1,ie=_??re,R=im(),ae=Gp(R.ref,F),[oe,se]=C.useState(!1);(c||m)&&oe&&se(!1);let ce=Up(e=>{d&&!e.repeat&&oe&&e.key===` `&&R.stop(e,()=>{R.start(e)})}),le=Up(e=>{d&&e.key===` `&&oe&&!e.defaultPrevented&&R.stop(e,()=>{R.pulsate(e)})}),{getButtonProps:ue,rootRef:z}=em({nativeButton:ie,nativeButtonProp:_,internalNativeButton:re,allowInferredHostMismatch:ee||typeof ne==`string`,disabled:c,type:I,hasFormAction:te,tabIndex:N,onBeforeKeyDown:ce,onBeforeKeyUp:le}),{onClick:de,onKeyDown:fe,onKeyUp:pe,...me}=ue({onClick:y,onKeyDown:T,onKeyUp:E});C.useImperativeHandle(r,()=>({focusVisible:()=>{se(!0),z.current.focus()}}),[z]);let he=R.shouldMount&&!l&&!c;C.useEffect(()=>{oe&&d&&!l&&R.pulsate()},[l,d,oe,R]);let ge=Hm(R,`start`,D,u),_e=Hm(R,`stop`,b,u),ve=Hm(R,`stop`,x,u),ye=Hm(R,`stop`,k,u),be=Hm(R,`stop`,e=>{oe&&e.preventDefault(),O&&O(e)},u),xe=Hm(R,`start`,M,u),Se=Hm(R,`stop`,A,u),Ce=Hm(R,`stop`,j,u),we=Hm(R,`stop`,e=>{Zp(e.target)||se(!1),v&&v(e)},!1),Te=Up(e=>{z.current||=e.currentTarget,!m&&Zp(e.target)&&(se(!0),w&&w(e)),S&&S(e)}),Ee={};ee&&(Ee.tabIndex=c?-1:N,c&&(Ee[`aria-disabled`]=c),Ee.type=I);let De=Gp(t,z),Oe={...n,centerRipple:i,component:s,disabled:c,disableRipple:l,disableTouchRipple:u,focusRipple:d,suppressFocusVisible:m,tabIndex:N,focusVisible:oe},ke=zm(Oe);return(0,B.jsxs)(Bm,{as:ne,className:V(ke.root,o),ownerState:Oe,onBlur:we,onClick:de,onContextMenu:_e,onFocus:Te,onKeyDown:fe,onKeyUp:pe,onMouseDown:ge,onMouseLeave:be,onMouseUp:ye,onDragLeave:ve,onTouchEnd:Se,onTouchMove:Ce,onTouchStart:xe,ref:De,...ee?Ee:me,...L,children:[a,he?(0,B.jsx)(Im,{ref:ae,center:i,...P}):null]})});function Hm(e,t,n,r=!1){return Up(i=>(n&&n(i),r||e[t](i),!0))}function Um(e){return H(`MuiCircularProgress`,e)}U(`MuiCircularProgress`,[`root`,`determinate`,`indeterminate`,`colorPrimary`,`colorSecondary`,`svg`,`track`,`circle`,`circleDisableShrink`]);var Wm=44,Gm=Qi`
123
- 0% {
124
- transform: rotate(0deg);
125
- }
126
-
127
- 100% {
128
- transform: rotate(360deg);
129
- }
130
- `,Km=Qi`
131
- 0% {
132
- stroke-dasharray: 1px, 200px;
133
- stroke-dashoffset: 0;
134
- }
135
-
136
- 50% {
137
- stroke-dasharray: 100px, 200px;
138
- stroke-dashoffset: -15px;
139
- }
140
-
141
- 100% {
142
- stroke-dasharray: 1px, 200px;
143
- stroke-dashoffset: -126px;
144
- }
145
- `,qm=typeof Gm==`string`?null:Zi`
146
- animation: ${Gm} 1.4s linear infinite;
147
- `,Jm=typeof Km==`string`?null:Zi`
148
- animation: ${Km} 1.4s ease-in-out infinite;
149
- `,Ym=e=>{let{classes:t,variant:n,color:r,disableShrink:i}=e;return Gc({root:[`root`,n,`color${q(r)}`],svg:[`svg`],track:[`track`],circle:[`circle`,i&&`circleDisableShrink`]},Um,t)},Xm=K(`span`,{name:`MuiCircularProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`color${q(n.color)}`]]}})(xp(({theme:e})=>({display:`inline-block`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`transform`)}},{props:{variant:`indeterminate`},style:qm||{animation:`${Gm} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Xp()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Zm=K(`svg`,{name:`MuiCircularProgress`,slot:`Svg`})({display:`block`}),Qm=K(`circle`,{name:`MuiCircularProgress`,slot:`Circle`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,n.disableShrink&&t.circleDisableShrink]}})(xp(({theme:e})=>({stroke:`currentColor`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`stroke-dashoffset`)}},{props:{variant:`indeterminate`},style:{strokeDasharray:`80px, 200px`,strokeDashoffset:0}},{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:Jm||{animation:`${Km} 1.4s ease-in-out infinite`}}]}))),$m=K(`circle`,{name:`MuiCircularProgress`,slot:`Track`})(xp(({theme:e})=>({stroke:`currentColor`,opacity:(e.vars||e).palette.action.activatedOpacity}))),eh=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiCircularProgress`}),{className:r,color:i=`primary`,disableShrink:a=!1,enableTrackSlot:o=!1,min:s,max:c,size:l=40,style:u,thickness:d=3.6,value:f=n.min??0,variant:p=`indeterminate`,...m}=n,h=s??0,g=c??100,_={...n,color:i,disableShrink:a,size:l,thickness:d,value:f,variant:p,enableTrackSlot:o},v=Ym(_),y={},b={},x={};if(p===`determinate`){let e=2*Math.PI*((Wm-d)/2),t=g-h;y.strokeDasharray=e.toFixed(3),y.strokeDashoffset=t>0?`${((g-f)/t*e).toFixed(3)}px`:`${e.toFixed(3)}px`,b.transform=`rotate(-90deg)`,x[`aria-valuenow`]=f,x[`aria-valuemin`]=h,x[`aria-valuemax`]=g}return(0,B.jsx)(Xm,{className:V(v.root,r),style:{width:l,height:l,...b,...u},ownerState:_,ref:t,role:`progressbar`,...x,...m,children:(0,B.jsxs)(Zm,{className:v.svg,ownerState:_,viewBox:`${Wm/2} ${Wm/2} ${Wm} ${Wm}`,children:[o?(0,B.jsx)($m,{className:v.track,ownerState:_,cx:Wm,cy:Wm,r:(Wm-d)/2,fill:`none`,strokeWidth:d,"aria-hidden":`true`}):null,(0,B.jsx)(Qm,{className:v.circle,style:y,ownerState:_,cx:Wm,cy:Wm,r:(Wm-d)/2,fill:`none`,strokeWidth:d})]})})});function th(e){return H(`MuiIconButton`,e)}var nh=U(`MuiIconButton`,[`root`,`disabled`,`colorInherit`,`colorPrimary`,`colorSecondary`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`,`edgeStart`,`edgeEnd`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`loading`,`loadingIndicator`,`loadingWrapper`]),rh=e=>{let{classes:t,disabled:n,color:r,edge:i,size:a,loading:o}=e;return Gc({root:[`root`,o&&`loading`,n&&`disabled`,r!==`default`&&`color${q(r)}`,i&&`edge${q(i)}`,`size${q(a)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},th,t)},ih=K(Vm,{name:`MuiIconButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!==`default`&&t[`color${q(n.color)}`],n.edge&&t[`edge${q(n.edge)}`],t[`size${q(n.size)}`]]}})(xp(({theme:e})=>({textAlign:`center`,flex:`0 0 auto`,fontSize:e.typography.pxToRem(24),padding:8,borderRadius:`50%`,color:(e.vars||e).palette.action.active,transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).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}}]})),xp(({theme:e})=>({variants:[{props:{color:`inherit`},style:{color:`inherit`}},...Object.entries(e.palette).filter(Xp()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main,"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:`small`},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:`large`},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${nh.disabled}`]:{backgroundColor:`transparent`,color:(e.vars||e).palette.action.disabled},[`&.${nh.loading}`]:{color:`transparent`}}))),ah=K(`span`,{name:`MuiIconButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:`flex`}}]})),oh=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiIconButton`}),{edge:r=!1,children:i,className:a,color:o=`default`,disabled:s=!1,disableFocusRipple:c=!1,size:l=`medium`,id:u,loading:d=null,loadingIndicator:f,...p}=n,m=zp(u),h=f??(0,B.jsx)(eh,{"aria-labelledby":m,color:`inherit`,size:16}),g={...n,edge:r,color:o,disabled:s,disableFocusRipple:c,loading:d,loadingIndicator:h,size:l},_=rh(g);return(0,B.jsxs)(ih,{id:d?m:u,className:V(_.root,a),centerRipple:!0,internalNativeButton:!0,focusRipple:!c,disabled:s||d,ref:t,...p,ownerState:g,children:[typeof d==`boolean`&&(0,B.jsx)(`span`,{className:_.loadingWrapper,style:{display:`contents`},children:(0,B.jsx)(ah,{className:_.loadingIndicator,ownerState:g,children:d&&h})}),i]})}),sh=e=>e.scrollTop,ch={offsetX:0,offsetY:0},lh={matrix:[4,5],matrix3d:[12,13],translate:[0,1],translate3d:[0,1],translateX:[0,null],translateY:[null,0]};function uh(e){let t=parseFloat(e??``);return Number.isNaN(t)?0:t}function dh(e){let t=e.match(/^(matrix|matrix3d|translate|translate3d|translateX|translateY)\((.+)\)$/);return t?{type:t[1],values:t[2].split(`,`).map(uh)}:null}function fh(e,t){return t===null?0:e[t]||0}function ph(e){if(!e||e===`none`)return ch;let t=dh(e);if(!t)return ch;let{type:n,values:r}=t,i=lh[n];return i?{offsetX:fh(r,i[0]),offsetY:fh(r,i[1])}:ch}function mh(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function hh(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function gh(e,t){let{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n==`number`?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r==`object`?r[t.mode]:r),delay:i.transitionDelay}}function _h(e){return typeof e==`string`}function vh(e,t,n){return e===void 0||_h(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function yh(e,t,n){return typeof e==`function`?e(t,n):e}function bh(e){if(e===void 0)return{};let t={};for(let n of Object.keys(e))Kp(n,e[n])&&(t[n]=e[n]);return t}function xh(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]==`function`)).forEach(n=>{t[n]=e[n]}),t}function Sh(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=V(n?.className,a,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},o={...n,...i,...r};return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let o=bh({...i,...r}),s=xh(r),c=xh(i),l=t(o),u=V(l?.className,n?.className,a,i?.className,r?.className),d={...l?.style,...n?.style,...i?.style,...r?.style},f={...l,...n,...c,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:l.ref}}function Y(e,t){let{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1,...c}=t,{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=u[e]||r,m=yh(d[e],i),{props:{component:h,...g},internalRef:_}=Sh({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=Wp(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,vh(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}function Ch(e){return H(`MuiCollapse`,e)}U(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var wh=e=>{let{orientation:t,classes:n}=e;return Gc({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},Ch,n)},Th=K(`div`,{name:`MuiCollapse`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.state===`entered`&&t.entered,n.state===`exited`&&!n.in&&n.collapsedSize===`0px`&&t.hidden]}})(xp(({theme:e})=>({height:0,overflow:`hidden`,transition:e.transitions.create(`height`),variants:[{props:{orientation:`horizontal`},style:{height:`auto`,width:0,transition:e.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`}}]}))),Eh=K(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Dh=K(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Oh=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiCollapse`}),{addEndListener:r,children:i,className:a,collapsedSize:o=`0px`,component:s,easing:c,in:l,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:h,orientation:g=`vertical`,slots:_={},slotProps:v={},style:y,timeout:b=zl.standard,TransitionComponent:x=vm,...S}=n,w={...n,orientation:g,collapsedSize:o},T=wh(w),E=Cu(),D=Om(),O=C.useRef(null),k=C.useRef(),A=typeof o==`number`?`${o}px`:o,j=g===`horizontal`,M=j?`width`:`height`,N=C.useRef(null),P=Gp(t,N),F=()=>O.current?O.current[j?`clientWidth`:`clientHeight`]:0,I=mh(N,(e,t)=>{O.current&&j&&(O.current.style.position=`absolute`),e.style[M]=A,u&&u(e,t)}),L=mh(N,(e,t)=>{let n=F();O.current&&j&&(O.current.style.position=``);let{duration:r,easing:i}=gh({style:y,timeout:b,easing:c},{mode:`enter`});if(b===`auto`){let t=E.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,k.current=t}else e.style.transitionDuration=typeof r==`string`?r:`${r}ms`;e.style[M]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)}),ee=mh(N,(e,t)=>{e.style[M]=`auto`,d&&d(e,t)}),te=mh(N,e=>{e.style[M]=`${F()}px`,p&&p(e)}),ne=mh(N,m),re=mh(N,e=>{let t=F(),{duration:n,easing:r}=gh({style:y,timeout:b,easing:c},{mode:`exit`});if(b===`auto`){let n=E.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,k.current=n}else e.style.transitionDuration=typeof n==`string`?n:`${n}ms`;e.style[M]=A,e.style.transitionTimingFunction=r,h&&h(e)}),ie=e=>{b===`auto`&&D.start(k.current||0,e),r&&r(N.current,e)},R={slots:_,slotProps:v,component:s},[ae,oe]=Y(`root`,{ref:P,className:V(T.root,a),elementType:Th,externalForwardedProps:R,ownerState:w,additionalProps:{style:{[j?`minWidth`:`minHeight`]:A,...y}}}),[se,ce]=Y(`wrapper`,{ref:O,className:T.wrapper,elementType:Eh,externalForwardedProps:R,ownerState:w}),[le,ue]=Y(`wrapperInner`,{className:T.wrapperInner,elementType:Dh,externalForwardedProps:R,ownerState:w});return(0,B.jsx)(x,{in:l,onEnter:I,onEntered:ee,onEntering:L,onExit:te,onExited:ne,onExiting:re,addEndListener:ie,nodeRef:N,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...w,state:e};return(0,B.jsx)(ae,{...oe,className:V(oe.className,{entered:T.entered,exited:!l&&A===`0px`&&T.hidden}[e]),ownerState:r,...n,children:(0,B.jsx)(se,{...ce,ownerState:r,children:(0,B.jsx)(le,{...ue,ownerState:r,children:i})})})}})});Oh&&(Oh.muiSupportAuto=!0);function kh(e){return H(`MuiPaper`,e)}U(`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`.split(`.`));var Ah=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return Gc({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},kh,i)},jh=K(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(xp(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create(`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),Mh=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiPaper`}),r=Cu(),{className:i,component:a=`div`,elevation:o=1,square:s=!1,variant:c=`elevation`,...l}=n,u={...n,component:a,elevation:o,square:s,variant:c};return(0,B.jsx)(jh,{as:a,ownerState:u,className:V(Ah(u).root,i),ref:t,...l,style:{...c===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[o],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[o]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${W(`#fff`,Xl(o))}, ${W(`#fff`,Xl(o))})`}},...l.style}})}),Nh=U(`MuiAccordion`,[`root`,`heading`,`rounded`,`expanded`,`disabled`,`gutters`,`region`]),Ph=U(`MuiAccordionSummary`,[`root`,`expanded`,`focusVisible`,`disabled`,`gutters`,`content`,`expandIconWrapper`]),Fh=C.createContext();function Ih(e){return H(`MuiTableRow`,e)}var Lh=U(`MuiTableRow`,[`root`,`selected`,`hover`,`head`,`footer`]),Rh=e=>{let{classes:t,selected:n,hover:r,head:i,footer:a}=e;return Gc({root:[`root`,n&&`selected`,r&&`hover`,i&&`head`,a&&`footer`]},Ih,t)},zh=K(`tr`,{name:`MuiTableRow`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(xp(({theme:e})=>({color:`inherit`,display:`table-row`,verticalAlign:`middle`,outline:0,[`&.${Lh.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Lh.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),Bh=`tr`,Vh=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiTableRow`}),{className:r,component:i=Bh,hover:a=!1,selected:o=!1,...s}=n,c=C.useContext(Fh),l={...n,component:i,hover:a,selected:o,head:c&&c.variant===`head`,footer:c&&c.variant===`footer`};return(0,B.jsx)(zh,{as:i,ref:t,className:V(Rh(l).root,r),role:i===Bh?null:`row`,ownerState:l,...s})}),Hh=C.createContext();function aee(e){return H(`MuiTableCell`,e)}var Uh=U(`MuiTableCell`,[`root`,`head`,`body`,`footer`,`sizeSmall`,`sizeMedium`,`paddingCheckbox`,`paddingNone`,`alignLeft`,`alignCenter`,`alignRight`,`alignJustify`,`stickyHeader`]),oee=e=>{let{classes:t,variant:n,align:r,padding:i,size:a,stickyHeader:o}=e;return Gc({root:[`root`,n,o&&`stickyHeader`,r!==`inherit`&&`align${q(r)}`,i!==`normal`&&`padding${q(i)}`,`size${q(a)}`]},aee,t)},see=K(`td`,{name:`MuiTableCell`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`size${q(n.size)}`],n.padding!==`normal`&&t[`padding${q(n.padding)}`],n.align!==`inherit`&&t[`align${q(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(xp(({theme:e})=>({...e.typography.body2,display:`table-cell`,verticalAlign:`inherit`,borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
150
- ${e.palette.mode===`light`?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:`left`,padding:16,variants:[{props:{variant:`head`},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:`body`},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:`footer`},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:`small`},style:{padding:`6px 16px`,[`&.${Uh.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:(e.vars||e).palette.background.default}}]}))),Wh=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiTableCell`}),{align:r=`inherit`,className:i,component:a,padding:o,scope:s,size:c,sortDirection:l,variant:u,...d}=n,f=C.useContext(Hh),p=C.useContext(Fh),m=p&&p.variant===`head`,h;h=a||(m?`th`:`td`);let g=s;h===`td`?g=void 0:!g&&m&&(g=`col`);let _=u||p&&p.variant,v={...n,align:r,component:h,padding:o||(f&&f.padding?f.padding:`normal`),size:c||(f&&f.size?f.size:`medium`),sortDirection:l,stickyHeader:_===`head`&&f&&f.stickyHeader,variant:_},y=oee(v),b=null;return l&&(b=l===`asc`?`ascending`:`descending`),(0,B.jsx)(see,{as:h,ref:t,className:V(y.root,i),"aria-sort":b,scope:g,ownerState:v,...d})}),cee=Dp((0,B.jsx)(`path`,{d:`M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z`}),`CheckCircle`),lee=Dp((0,B.jsx)(`path`,{d:`M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z`}),`Warning`);function uee(e){return H(`MuiStepIcon`,e)}var Gh=U(`MuiStepIcon`,[`root`,`active`,`completed`,`error`,`text`]),dee,fee=e=>{let{classes:t,active:n,completed:r,error:i}=e;return Gc({root:[`root`,n&&`active`,r&&`completed`,i&&`error`],text:[`text`]},uee,t)},Kh=K(Ep,{name:`MuiStepIcon`,slot:`Root`})(xp(({theme:e})=>({display:`block`,transition:e.transitions.create(`color`,{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${Gh.completed}, &.${Gh.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${Gh.error}`]:{color:(e.vars||e).palette.error.main}}))),pee=K(`text`,{name:`MuiStepIcon`,slot:`Text`})(xp(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily}))),mee=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiStepIcon`}),{active:r=!1,className:i,completed:a=!1,error:o=!1,icon:s,...c}=n,l={...n,active:r,completed:a,error:o},u=fee(l);if(typeof s==`number`||typeof s==`string`){let e=V(i,u.root);return o?(0,B.jsx)(Kh,{as:lee,className:e,ref:t,ownerState:l,...c}):a?(0,B.jsx)(Kh,{as:cee,className:e,ref:t,ownerState:l,...c}):(0,B.jsxs)(Kh,{className:e,ref:t,ownerState:l,...c,children:[dee||=(0,B.jsx)(`circle`,{cx:`12`,cy:`12`,r:`12`}),(0,B.jsx)(pee,{className:u.text,x:`12`,y:`12`,textAnchor:`middle`,dominantBaseline:`central`,ownerState:l,children:s})]})}return s}),qh=C.createContext({}),Jh=C.createContext({});function Yh(){return C.useContext(Jh)}function hee(e){return H(`MuiStepLabel`,e)}var Xh=U(`MuiStepLabel`,[`root`,`horizontal`,`vertical`,`label`,`active`,`completed`,`error`,`disabled`,`iconContainer`,`alternativeLabel`,`labelContainer`]),Zh=e=>{let{classes:t,orientation:n,active:r,completed:i,error:a,disabled:o,alternativeLabel:s}=e;return Gc({root:[`root`,n,a&&`error`,o&&`disabled`,s&&`alternativeLabel`],label:[`label`,r&&`active`,i&&`completed`,a&&`error`,o&&`disabled`,s&&`alternativeLabel`],iconContainer:[`iconContainer`,r&&`active`,i&&`completed`,a&&`error`,o&&`disabled`,s&&`alternativeLabel`],labelContainer:[`labelContainer`,s&&`alternativeLabel`]},hee,t)},Qh=K(`span`,{name:`MuiStepLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation]]}})({display:`flex`,alignItems:`center`,[`&.${Xh.alternativeLabel}`]:{flexDirection:`column`},[`&.${Xh.disabled}`]:{cursor:`default`},variants:[{props:{orientation:`vertical`},style:{textAlign:`left`,padding:`8px 0`}}]}),$h=K(`span`,{name:`MuiStepLabel`,slot:`Label`})(xp(({theme:e})=>({...e.typography.body2,display:`block`,transition:e.transitions.create(`color`,{duration:e.transitions.duration.shortest}),[`&.${Xh.active}, &.${Xh.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Xh.alternativeLabel}`]:{marginTop:16},[`&.${Xh.error}`]:{color:(e.vars||e).palette.error.main}}))),eg=K(`span`,{name:`MuiStepLabel`,slot:`IconContainer`})({flexShrink:0,display:`flex`,paddingRight:8,[`&.${Xh.alternativeLabel}`]:{paddingRight:0}}),tg=K(`span`,{name:`MuiStepLabel`,slot:`LabelContainer`})(xp(({theme:e})=>({width:`100%`,color:(e.vars||e).palette.text.secondary,[`&.${Xh.alternativeLabel}`]:{textAlign:`center`}}))),ng=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiStepLabel`}),{children:r,className:i,error:a=!1,icon:o,optional:s,slots:c={},slotProps:l={},...u}=n,{alternativeLabel:d,orientation:f}=Yh(),{active:p,disabled:m,completed:h,icon:g}=C.useContext(qh),_=o||g,v={...n,active:p,alternativeLabel:d,completed:h,disabled:m,error:a,orientation:f},y=Zh(v),b={slots:c,slotProps:l},[x,S]=Y(`root`,{elementType:Qh,externalForwardedProps:{...b,...u},ownerState:v,ref:t,className:V(y.root,i)}),[w,T]=Y(`label`,{elementType:$h,externalForwardedProps:b,ownerState:v}),[E,D]=Y(`stepIcon`,{elementType:_?mee:void 0,externalForwardedProps:b,ownerState:v});return(0,B.jsxs)(x,{...S,children:[_||E?(0,B.jsx)(eg,{className:y.iconContainer,ownerState:v,children:(0,B.jsx)(E,{completed:h,active:p,error:a,icon:_,...D})}):null,(0,B.jsxs)(tg,{className:y.labelContainer,ownerState:v,children:[r?(0,B.jsx)(w,{...T,className:V(y.label,T?.className),children:r}):null,s]})]})});ng.muiName=`StepLabel`;var rg=U(`MuiToggleButton`,[`root`,`disabled`,`selected`,`standard`,`primary`,`secondary`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`fullWidth`]),ig=U(`MuiPaginationItem`,[`root`,`page`,`sizeSmall`,`sizeLarge`,`text`,`outlined`,`rounded`,`ellipsis`,`firstLast`,`previousNext`,`focusVisible`,`disabled`,`selected`,`icon`,`colorPrimary`,`colorSecondary`]),ag=Dp((0,B.jsx)(`path`,{d:`M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z`}),`FirstPage`),og=Dp((0,B.jsx)(`path`,{d:`M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z`}),`LastPage`);function sg(e,t=`500`){let n=`${t}Channel`;return e.vars?.palette.grey?.[n]??{500:`145 158 171`,900:`0 0 0`}[t]}function cg(e,t){let n=t.split(`.`),r=e.vars?.palette??void 0,i=e.palette,a=e=>n.reduce((e,t)=>e&&typeof e==`object`?e[t]:void 0,e),o=a(r);if(typeof o==`string`)return o;let s=a(i);return typeof s==`string`?s:``}function lg(e,t){return e.vars?.palette[t]?.mainChannel??{primary:`51 133 240`,success:`9 159 105`,error:`208 34 65`,warning:`246 141 42`,info:`13 166 214`}[t]}function ug(e){switch(e){case`compact`:return .75;case`comfortable`:return 1.25;default:return 1}}function dg(e){return H(`MuiButton`,e)}var fg=U(`MuiButton`,`root.text.outlined.contained.disableElevation.focusVisible.disabled.colorInherit.colorPrimary.colorSecondary.colorSuccess.colorError.colorInfo.colorWarning.sizeMedium.sizeSmall.sizeLarge.fullWidth.startIcon.endIcon.icon.loading.loadingWrapper.loadingIconPlaceholder.loadingIndicator.loadingPositionCenter.loadingPositionStart.loadingPositionEnd`.split(`.`)),pg=C.createContext({}),mg=C.createContext(void 0),hg=e=>{let{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,loading:o,loadingPosition:s,classes:c}=e,l=Gc({root:[`root`,o&&`loading`,a,`size${q(i)}`,`color${q(t)}`,n&&`disableElevation`,r&&`fullWidth`,o&&`loadingPosition${q(s)}`],startIcon:[`icon`,`startIcon`],endIcon:[`icon`,`endIcon`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},dg,c);return{...c,...l}},gg=[{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}}}],_g=K(Vm,{shouldForwardProp:e=>Eu(e)||e===`classes`,name:`MuiButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`size${q(n.size)}`],n.color===`inherit`&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(xp(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode===`light`?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:`6px 16px`,border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create([`background-color`,`box-shadow`,`border-color`,`color`],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:`none`},[`&.${fg.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.startIcon||e.loading&&e.loadingPosition===`start`,style:{"&::before":{content:`"\\200b"`,width:0,overflow:`hidden`}}},{props:{variant:`contained`},style:{color:`var(--variant-containedColor)`,backgroundColor:`var(--variant-containedBg)`,boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${fg.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${fg.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).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)`,[`&.${fg.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:`text`},style:{padding:`6px 8px`,color:`var(--variant-textColor)`,backgroundColor:`var(--variant-textBg)`}},...Object.entries(e.palette).filter(Xp()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:`inherit`},style:{color:`inherit`,borderColor:`currentColor`,"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:`small`,variant:`text`},style:{padding:`4px 5px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`text`},style:{padding:`8px 11px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`outlined`},style:{padding:`3px 9px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`outlined`},style:{padding:`7px 21px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`contained`},style:{padding:`4px 10px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`contained`},style:{padding:`8px 22px`,fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:`none`,"&:hover":{boxShadow:`none`},[`&.${fg.focusVisible}`]:{boxShadow:`none`},"&:active":{boxShadow:`none`},[`&.${fg.disabled}`]:{boxShadow:`none`}}},{props:{fullWidth:!0},style:{width:`100%`}},{props:{loadingPosition:`center`},style:{transition:e.transitions.create([`background-color`,`box-shadow`,`border-color`],{duration:e.transitions.duration.short}),[`&.${fg.loading}`]:{color:`transparent`}}}]}})),vg=K(`span`,{name:`MuiButton`,slot:`StartIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart]}})(({theme:e})=>({display:`inherit`,marginRight:8,marginLeft:-4,variants:[{props:{size:`small`},style:{marginLeft:-2}},{props:{loadingPosition:`start`,loading:!0},style:{transition:e.transitions.create([`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`start`,loading:!0,fullWidth:!0},style:{marginRight:-8}},...gg]})),yg=K(`span`,{name:`MuiButton`,slot:`EndIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd]}})(({theme:e})=>({display:`inherit`,marginRight:-4,marginLeft:8,variants:[{props:{size:`small`},style:{marginRight:-2}},{props:{loadingPosition:`end`,loading:!0},style:{transition:e.transitions.create([`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`end`,loading:!0,fullWidth:!0},style:{marginLeft:-8}},...gg]})),bg=K(`span`,{name:`MuiButton`,slot:`LoadingIndicator`})(({theme:e})=>({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:(e.vars||e).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}}]})),xg=K(`span`,{name:`MuiButton`,slot:`LoadingIconPlaceholder`})({display:`inline-block`,width:`1em`,height:`1em`}),Sg=C.forwardRef(function(e,t){let n=C.useContext(pg),r=C.useContext(mg),i=J({props:Ms(n,e),name:`MuiButton`}),{children:a,color:o=`primary`,component:s=`button`,className:c,disabled:l=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:m=!1,id:h,loading:g=null,loadingIndicator:_,loadingPosition:v=`center`,size:y=`medium`,startIcon:b,type:x,variant:S=`text`,...w}=i,T=zp(h),E=_??(0,B.jsx)(eh,{"aria-labelledby":T,color:`inherit`,size:16}),D={...i,color:o,component:s,disabled:l,disableElevation:u,disableFocusRipple:d,fullWidth:m,loading:g,loadingIndicator:E,loadingPosition:v,size:y,type:x,variant:S},O=hg(D),k=(b||g&&v===`start`)&&(0,B.jsx)(vg,{className:O.startIcon,ownerState:D,children:b||(0,B.jsx)(xg,{className:O.loadingIconPlaceholder,ownerState:D})}),A=(f||g&&v===`end`)&&(0,B.jsx)(yg,{className:O.endIcon,ownerState:D,children:f||(0,B.jsx)(xg,{className:O.loadingIconPlaceholder,ownerState:D})}),j=r||``,M=typeof g==`boolean`?(0,B.jsx)(`span`,{className:O.loadingWrapper,style:{display:`contents`},children:g&&(0,B.jsx)(bg,{className:O.loadingIndicator,ownerState:D,children:E})}):null,{root:N,...P}=O;return(0,B.jsxs)(_g,{ownerState:D,className:V(n.className,O.root,c,j),component:s,disabled:l||g,focusRipple:!d,focusVisibleClassName:V(O.focusVisible,p),ref:t,internalNativeButton:!0,type:x,id:g?T:h,...w,classes:P,children:[k,v!==`end`&&M,a,v===`end`&&M,A]})}),Cg=[`primary`,`secondary`,`info`,`success`,`warning`,`error`],wg=[...Cg.map(e=>({props:{variant:`soft`,color:e},style:({theme:t})=>({backgroundColor:`rgba(var(--prism-${e}-main-channel, 51 133 240) / 0.16)`,color:t.vars?.palette[e]?.dark||t.palette[e].dark,boxShadow:`none`,"&:hover":{backgroundColor:`rgba(var(--prism-${e}-main-channel, 51 133 240) / 0.32)`,boxShadow:`none`},"&:active":{backgroundColor:`rgba(var(--prism-${e}-main-channel, 51 133 240) / 0.4)`}})})),{props:{variant:`soft`,color:`neutral`},style:({theme:e})=>({backgroundColor:e.vars?.palette.background.elevation2||e.palette.grey[100],color:e.vars?.palette.text.primary||e.palette.text.primary,boxShadow:`none`,"&:hover":{backgroundColor:e.vars?.palette.background.elevation3||e.palette.grey[200],boxShadow:`none`}})},{props:{variant:`soft`,color:`inherit`},style:({theme:e})=>({backgroundColor:e.vars?.palette.action.selected||e.palette.action.selected,color:e.vars?.palette.text.primary||e.palette.text.primary,boxShadow:`none`,"&:hover":{backgroundColor:e.vars?.palette.action.hover||e.palette.action.hover,boxShadow:`none`}})}],Tg=[...Cg.map(e=>({props:{variant:`dashed`,color:e},style:({theme:t})=>({border:`1px dashed ${t.vars?.palette[e]?.main||t.palette[e].main}`,backgroundColor:`transparent`,color:t.vars?.palette[e]?.main||t.palette[e].main,"&:hover":{backgroundColor:`rgba(var(--prism-${e}-main-channel, 51 133 240) / 0.08)`,borderColor:t.vars?.palette[e]?.dark||t.palette[e].dark}})})),{props:{variant:`dashed`,color:`inherit`},style:({theme:e})=>({border:`1px dashed ${e.vars?.palette.grey?.[500]||e.palette.grey[500]}`,backgroundColor:`transparent`,color:e.vars?.palette.text.primary||e.palette.text.primary,"&:hover":{backgroundColor:e.vars?.palette.action.hover||e.palette.action.hover,borderColor:e.vars?.palette.text.primary||e.palette.text.primary}})}],Eg=[`circle`,`square`],Dg={small:30,medium:36,large:42,xLarge:52},Og=Eg.flatMap(e=>Object.keys(Dg).map(t=>({props:{shape:e,size:t},style:{height:Dg[t],minWidth:Dg[t],padding:0,borderRadius:e===`circle`?`50%`:void 0}}))),kg=[{props:{variant:`outlined`,color:`neutral`},style:({theme:e})=>({borderColor:e.vars?.palette.divider||e.palette.divider,color:e.vars?.palette.text.primary||e.palette.text.primary,"&:hover":{backgroundColor:e.vars?.palette.background.elevation2||e.palette.grey[100],borderColor:e.vars?.palette.text.secondary||e.palette.text.secondary}})}],Ag=[{props:{variant:`soft`},style:({theme:e})=>({[`&.${fg.disabled}`]:{backgroundColor:e.vars?.palette.action.disabledBackground||e.palette.action.disabledBackground}})},{props:{variant:`dashed`},style:({theme:e})=>({[`&.${fg.disabled}`]:{borderStyle:`dashed`}})}];function jg(e){let{borderRadius:t,density:n}=e,r=ug(n),i=[{props:{size:`xLarge`},style:{minHeight:56,fontSize:`15px`,padding:`${10*r}px ${22*r}px`,lineHeight:1.467}}];return{defaultProps:{disableElevation:!0},styleOverrides:{root:{textTransform:`none`,fontSize:`14px`,fontWeight:600,borderRadius:t,padding:`${8*r}px ${16*r}px`,lineHeight:1.429,variants:[...wg,...Tg,...Og,...kg,...i,...Ag,{props:{variant:`outlined`,size:`large`},style:{paddingTop:9*r,paddingBottom:9*r}},{props:{variant:`outlined`,size:`medium`},style:{paddingTop:7*r,paddingBottom:7*r}},{props:{variant:`outlined`,size:`small`},style:{paddingTop:5*r,paddingBottom:5*r}}]},sizeLarge:{fontSize:`16px`,padding:`${10*r}px ${22*r}px`,lineHeight:1.375},sizeSmall:{padding:`${6*r}px ${10*r}px`,fontSize:`13px`,lineHeight:1.286},startIcon:{marginRight:4,"& > *:first-of-type":{fontSize:16}},endIcon:{marginLeft:4,"& > *:first-of-type":{fontSize:16}}}}}function Mg(){return{defaultProps:{disableRipple:!1}}}function Ng(e){return{defaultProps:{disableElevation:!0},styleOverrides:{root:{borderRadius:e.borderRadius}}}}var Pg=U(`MuiChip`,[`root`,`sizeSmall`,`sizeMedium`,`colorDefault`,`colorError`,`colorInfo`,`colorPrimary`,`colorSecondary`,`colorSuccess`,`colorWarning`,`disabled`,`clickable`,`deletable`,`outlined`,`filled`,`avatar`,`icon`,`label`,`deleteIcon`,`focusVisible`]),Fg=[`primary`,`secondary`,`info`,`success`,`warning`,`error`],Ig=[...Fg.map(e=>({props:t=>t.variant===`soft`&&t.color===e,style:({theme:t})=>({backgroundColor:`rgba(var(--prism-${e}-main-channel, 51 133 240) / 0.16)`,color:t.vars?.palette[e]?.dark||t.palette[e].dark})})),{props:e=>e.variant===`soft`&&e.color===`neutral`,style:({theme:e})=>({backgroundColor:e.vars?.palette.background.elevation2||e.palette.grey[100],color:e.vars?.palette.text.primary||e.palette.text.primary})},{props:e=>e.variant===`soft`&&!e.color,style:({theme:e})=>({backgroundColor:e.vars?.palette.background.elevation2||e.palette.grey[100],color:e.vars?.palette.text.primary||e.palette.text.primary})}],Lg=[...Fg.map(e=>({props:t=>t.variant===`dashed`&&t.color===e,style:({theme:t})=>({border:`1px dashed ${t.vars?.palette[e]?.main||t.palette[e].main}`,backgroundColor:`transparent`,color:t.vars?.palette[e]?.main||t.palette[e].main})})),{props:e=>e.variant===`dashed`&&e.color===`neutral`,style:({theme:e})=>({border:`1px dashed ${e.vars?.palette.divider||e.palette.divider}`,backgroundColor:`transparent`,color:e.vars?.palette.text.primary||e.palette.text.primary})}],Rg=[{props:e=>e.variant===`outlined`&&e.color===`neutral`,style:({theme:e})=>({borderColor:e.vars?.palette.divider||e.palette.divider,color:e.vars?.palette.text.primary||e.palette.text.primary})}],zg=[{props:e=>e.variant===`filled`&&e.color===`neutral`,style:({theme:e})=>({backgroundColor:e.vars?.palette.grey[300]||e.palette.grey[300],color:e.vars?.palette.text.primary||e.palette.text.primary})}],Bg=[{props:{},style:({theme:e})=>({[`&.${Pg.disabled}`]:{opacity:1,color:e.vars?.palette.action.disabled||e.palette.action.disabled,[`&:not(.${Pg.outlined})`]:{backgroundColor:e.vars?.palette.action.disabledBackground||e.palette.action.disabledBackground},[`&.${Pg.outlined}`]:{borderColor:e.vars?.palette.action.disabledBackground||e.palette.action.disabledBackground}}})}],Vg=[{props:{size:`xSmall`},style:{height:20,fontSize:`0.6875rem`,padding:`0 6px`}}];function Hg(e){let{borderRadius:t,density:n}=e,r=ug(n);return{styleOverrides:{root:{borderRadius:t,fontWeight:500,variants:[...Ig,...Lg,...Rg,...zg,...Bg,...Vg]},sizeSmall:{height:24*r},sizeMedium:{height:32*r},label:{fontWeight:500,"&.MuiChip-labelSmall":{fontSize:`0.75rem`,paddingLeft:8,paddingRight:8},"&.MuiChip-labelMedium":{fontSize:`0.8125rem`,paddingLeft:12,paddingRight:12}},icon:{fontSize:18,color:`currentColor`},deleteIcon:{fontSize:18,opacity:.48,color:`currentColor`,"&:hover":{opacity:.8,color:`currentColor`}}}}}function Ug(e,t){return e?{"&:hover":{...t,...typeof e==`object`?e:{}}}:{}}function Wg(e,t,n){if(!t)return{};let r=e.vars?.palette||e.palette,i=r.grey;if(t===`default`){let e={color:i[800],backgroundColor:i[300]},t=Ug(n?.hover,{backgroundColor:i[400]});return{...e,...t}}if(t===`inherit`){let e={color:r.common.white,backgroundColor:i[800]},t=Ug(n?.hover,{backgroundColor:i[700]});return{...e,...t}}if(t===`white`||t===`black`){let e=t===`white`?`black`:`white`,i={color:r.common[e],backgroundColor:r.common[t]},a=Ug(n?.hover,{opacity:.8});return{...i,...a}}let a=r[t],o={color:a.contrastText,backgroundColor:a.main},s=Ug(n?.hover,{backgroundColor:a.dark});return{...o,...s}}function gee(e,t,n){if(!t)return{};let r=e.vars?.palette||e.palette,i=r.grey;if(t===`default`)return{...Wg(e,`default`,n),boxShadow:`none`};if(t===`inherit`){let e=i[`500Channel`]||`145, 158, 171`,t={boxShadow:`none`,backgroundColor:Qf(e,.16)},r=Ug(n?.hover,{backgroundColor:Qf(e,.32)});return{...t,...r}}if(t===`white`||t===`black`){let e={boxShadow:`none`,color:r.common[t],backgroundColor:Qf(`currentColor`,.08)},i=Ug(n?.hover,{backgroundColor:Qf(`currentColor`,.16)});return{...e,...i}}let a=r[t],o=a.mainChannel||r.primary.mainChannel||`51, 133, 240`,s={boxShadow:`none`,color:a.dark,backgroundColor:Qf(o,.16)},c=Ug(n?.hover,{backgroundColor:Qf(o,.32)});return{...s,...c}}function _ee(e){let{images:t,sizes:n,positions:r,colors:i,direction:a=`to bottom`}=e;return i&&i.length>0?{background:`linear-gradient(${a}, ${i.join(`, `)})`}:t&&t.length>0?{backgroundImage:t.join(`, `),backgroundSize:n?.join(`, `)||`cover`,backgroundPosition:r?.join(`, `)||`center`,backgroundRepeat:`no-repeat`}:{}}function vee(e){let{blur:t=20,color:n=`rgba(255, 255, 255, 0.8)`}=e;return{backdropFilter:`blur(${t}px)`,WebkitBackdropFilter:`blur(${t}px)`,backgroundColor:n}}function Gg(e,t){let{blur:n=20,color:r,dropdown:i}=t??{},a=e.vars?.palette||e.palette,o={backdropFilter:`blur(${n}px)`,WebkitBackdropFilter:`blur(${n}px)`,backgroundColor:r??Qf(`255, 255, 255`,.9)};if(i){let t=e.customShadows,n=a.grey[`500Channel`]||`145, 158, 171`;return{...o,padding:e.spacing(.5),boxShadow:t?.dropdown||`0 0 2px 0 rgba(${n}, 0.24), -20px 20px 40px -4px rgba(${n}, 0.24)`,borderRadius:`${Number(e.shape.borderRadius)*1.25}px`}}return o}function Kg(e){let t=e.vars?.palette||e.palette;return{...e.typography.body2,padding:e.spacing(.75,1),borderRadius:Number(e.shape.borderRadius)*.75,"&:not(:last-of-type)":{marginBottom:4},"&.Mui-selected":{fontWeight:e.typography.fontWeightMedium,backgroundColor:t.action.selected,"&:hover":{backgroundColor:t.action.hover}}}}function qg(e){let{lines:t,lineHeight:n=1.5}=e;return{overflow:`hidden`,display:`-webkit-box`,WebkitBoxOrient:`vertical`,WebkitLineClamp:t,textOverflow:`ellipsis`,...n&&{lineHeight:n}}}function Jg(e,...t){return{background:`linear-gradient(${e}, ${t.join(`, `)})`,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`,backgroundClip:`text`,textFillColor:`transparent`,display:`inline-block`}}function Yg(e){let{color:t=`linear-gradient(135deg, #FF5630, #00AB55)`,borderWidth:n=2,borderRadius:r=0}=e;return{position:`relative`,border:`none`,borderRadius:r,"&::before":{content:`""`,position:`absolute`,inset:0,borderRadius:`inherit`,padding:n,background:t,WebkitMask:`linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)`,WebkitMaskComposite:`xor`,maskComposite:`exclude`,pointerEvents:`none`}}}function Xg(e){let t=(e.vars?.palette||e.palette).grey[`500Channel`]||`145, 158, 171`;return{scrollbarWidth:`thin`,scrollbarColor:`${Qf(t,.4)} ${Qf(t,.08)}`,"&::-webkit-scrollbar":{width:6,height:6},"&::-webkit-scrollbar-track":{backgroundColor:`transparent`},"&::-webkit-scrollbar-thumb":{backgroundColor:Qf(t,.4),borderRadius:3,"&:hover":{backgroundColor:Qf(t,.6)}}}}var Zg={toolbar:{minHeight:56,"@media (min-width:0px)":{"@media (orientation: landscape)":{minHeight:48}},"@media (min-width:600px)":{minHeight:64}},hideScrollX:{msOverflowStyle:`none`,scrollbarWidth:`none`,overflowX:`auto`,"&::-webkit-scrollbar":{display:`none`}},hideScrollY:{msOverflowStyle:`none`,scrollbarWidth:`none`,overflowY:`auto`,"&::-webkit-scrollbar":{display:`none`}},bgBlur:vee,bgGradient:_ee,maxLine:qg,softStyles:gee,filledStyles:Wg,paperStyles:Gg,menuItemStyles:Kg,varAlpha:Qf,textGradient:Jg,borderGradient:Yg,scrollbarStyles:Xg};function Qg(e){return parseInt(e,10)||0}var $g={shadow:{visibility:`hidden`,position:`absolute`,overflow:`hidden`,height:0,top:0,left:0,transform:`translateZ(0)`}};function e_(e){for(let t in e)return!1;return!0}function t_(e){return e_(e)||e.outerHeightStyle===0&&!e.overflowing}var n_=C.forwardRef(function(e,t){let{onChange:n,maxRows:r,minRows:i=1,style:a,value:o,...s}=e,{current:c}=C.useRef(o!=null),l=C.useRef(null),u=Wp(t,l),d=C.useRef(null),f=C.useRef(null),p=C.useCallback(()=>{let t=l.current,n=f.current;if(!t||!n)return;let a=Fp(t).getComputedStyle(t);if(a.width===`0px`)return{outerHeightStyle:0,overflowing:!1};n.style.width=a.width,n.value=t.value||e.placeholder||`x`,n.value.slice(-1)===`
151
- `&&(n.value+=` `);let o=a.boxSizing,s=Qg(a.paddingBottom)+Qg(a.paddingTop),c=Qg(a.borderBottomWidth)+Qg(a.borderTopWidth),u=n.scrollHeight;n.value=`x`;let d=n.scrollHeight,p=u;return i&&(p=Math.max(Number(i)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d),{outerHeightStyle:p+(o===`border-box`?s+c:0),overflowing:Math.abs(p-u)<=1}},[r,i,e.placeholder]),m=Hp(()=>{let e=l.current,t=p();if(!e||!t||t_(t))return!1;let n=t.outerHeightStyle;return d.current!=null&&d.current!==n}),h=C.useCallback(()=>{let e=l.current,t=p();if(!e||!t||t_(t))return;let n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?`hidden`:``},[p]),g=C.useRef(-1);return Fs(()=>{let e=Op(h),t=l?.current;if(!t)return;let n=Fp(t);n.addEventListener(`resize`,e);let r;return typeof ResizeObserver<`u`&&(r=new ResizeObserver(()=>{m()&&(r.unobserve(t),cancelAnimationFrame(g.current),h(),g.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),n.removeEventListener(`resize`,e),r&&r.disconnect()}},[p,h,m]),Fs(()=>{h()}),(0,B.jsxs)(C.Fragment,{children:[(0,B.jsx)(`textarea`,{value:o,onChange:e=>{c||h();let t=e.target,r=t.value.length,i=t.value.endsWith(`
152
- `),a=t.selectionStart===r;i&&a&&t.setSelectionRange(r,r),n&&n(e)},ref:u,rows:i,style:a,...s}),(0,B.jsx)(`textarea`,{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:{...$g.shadow,...a,paddingTop:0,paddingBottom:0}})]})}),r_=C.createContext(void 0);function i_(){return C.useContext(r_)}function a_({props:e,states:t}){let n=C.useContext(r_),r={};return t.forEach(t=>{let i=e[t];r[t]=i===void 0&&n?n[t]:i}),[r,n]}function o_(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function s_(e,t=!1){return e&&(o_(e.value)&&e.value!==``||t&&o_(e.defaultValue)&&e.defaultValue!==``)}function c_(e){return H(`MuiInputBase`,e)}var l_=U(`MuiInputBase`,[`root`,`formControl`,`focused`,`disabled`,`adornedStart`,`adornedEnd`,`error`,`sizeSmall`,`multiline`,`colorSecondary`,`fullWidth`,`hiddenLabel`,`readOnly`,`input`,`inputTypeSearch`]),u_,d_=`mui-auto-fill`,f_=`mui-auto-fill-cancel`,p_=(e,t)=>{let{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size===`small`&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${q(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},m_=(e,t)=>{let{ownerState:n}=e;return[t.input,n.type===`search`&&t.inputTypeSearch]},h_=e=>{let{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:c,hiddenLabel:l,multiline:u,readOnly:d,size:f,startAdornment:p,type:m}=e;return Gc({root:[`root`,`color${q(n)}`,r&&`disabled`,i&&`error`,c&&`fullWidth`,o&&`focused`,s&&`formControl`,f&&f!==`medium`&&`size${q(f)}`,u&&`multiline`,p&&`adornedStart`,a&&`adornedEnd`,l&&`hiddenLabel`,d&&`readOnly`],input:[`input`,r&&`disabled`,m===`search`&&`inputTypeSearch`,d&&`readOnly`]},c_,t)},g_=K(`div`,{name:`MuiInputBase`,slot:`Root`,overridesResolver:p_})(xp(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:`1.4375em`,boxSizing:`border-box`,position:`relative`,cursor:`text`,display:`inline-flex`,alignItems:`center`,[`&.${l_.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:`default`},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:`4px 0 5px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:`100%`}}]}))),__=K(`input`,{name:`MuiInputBase`,slot:`Input`,overridesResolver:m_})(xp(({theme:e})=>{let t=e.palette.mode===`light`,n={color:`currentColor`,...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create(`opacity`,{duration:e.transitions.duration.shorter})},r={opacity:`0 !important`},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.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":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:`none`},"&::-webkit-search-decoration":{WebkitAppearance:`none`},[`label[data-shrink=false] + .${l_.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${l_.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:f_,animationDuration:`10ms`,"&:-webkit-autofill":{animationDuration:`5000s`,animationName:d_}}},{props:{size:`small`},style:{paddingTop:1}},{props:({ownerState:e})=>e.multiline,style:{height:`auto`,resize:`none`,padding:0,paddingTop:0}},{props:{type:`search`},style:{MozAppearance:`textfield`}}]}})),v_=bp({[`@keyframes ${d_}`]:{from:{animationName:d_}},[`@keyframes ${f_}`]:{from:{animationName:f_}}}),y_=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiInputBase`}),{"aria-describedby":r,"aria-label":i,autoComplete:a,autoFocus:o,className:s,color:c,defaultValue:l,disabled:u,disableInjectingGlobalStyles:d,endAdornment:f,error:p,fullWidth:m=!1,id:h,inputComponent:g=`input`,inputProps:_={},inputRef:v,margin:y,maxRows:b,minRows:x,multiline:S=!1,name:w,onBlur:T,onChange:E,onClick:D,onFocus:O,onKeyDown:k,onKeyUp:A,placeholder:j,readOnly:M,renderSuffix:N,rows:P,size:F,slotProps:I={},slots:L={},startAdornment:ee,type:te=`text`,value:ne,...re}=n,ie=_.value==null?ne:_.value,{current:R}=C.useRef(ie!=null),ae=C.useRef(),oe=C.useCallback(e=>{},[]),se=Gp(ae,v,_.ref,oe),[ce,le]=C.useState(!1),[ue,z]=a_({props:n,states:[`color`,`disabled`,`error`,`hiddenLabel`,`size`,`required`,`filled`]});ue.focused=z?z.focused:ce,C.useEffect(()=>{!z&&u&&ce&&(le(!1),T&&T())},[z,u,ce,T]);let de=z&&z.onFilled,fe=z&&z.onEmpty,pe=C.useCallback(e=>{s_(e)?de&&de():fe&&fe()},[de,fe]);Rp(()=>{R&&pe({value:ie})},[ie,pe,R]),Rp(()=>{if(!o)return;let e=ae.current;if(!e)return;let t=Pp(e),n=Mp(t),r=n==null||n===t.body||n===t.documentElement;e===n?z&&z.onFocus?z.onFocus():le(!0):r&&e.focus()},[o]);let me=e=>{O&&O(e),_.onFocus&&_.onFocus(e),z&&z.onFocus?z.onFocus(e):le(!0)},he=e=>{T&&T(e),_.onBlur&&_.onBlur(e),z&&z.onBlur?z.onBlur(e):le(!1)},ge=(e,...t)=>{if(!R){let t=e.target||ae.current;if(t==null)throw Error(Yn(1));pe({value:t.value})}_.onChange&&_.onChange(e,...t),E&&E(e,...t)};C.useEffect(()=>{pe(ae.current)},[]);let _e=e=>{ae.current&&e.currentTarget===e.target&&ae.current.focus(),D&&D(e)},ve=g,ye=_;S&&ve===`input`&&(ye=P?{type:void 0,minRows:P,maxRows:P,...ye}:{type:void 0,maxRows:b,minRows:x,...ye},ve=n_);let be=e=>{pe(e.animationName===f_?ae.current:{value:`x`})};C.useEffect(()=>{z&&z.setAdornedStart(!!ee)},[z,ee]);let xe={...n,color:ue.color||`primary`,disabled:ue.disabled,endAdornment:f,error:ue.error,focused:ue.focused,formControl:z,fullWidth:m,hiddenLabel:ue.hiddenLabel,multiline:S,size:ue.size,startAdornment:ee,type:te},Se=h_(xe),Ce=L.root||g_,we=I.root||{},Te=L.input||__;return ye={...ye,...I.input},(0,B.jsxs)(C.Fragment,{children:[!d&&typeof v_==`function`&&(u_||=(0,B.jsx)(v_,{})),(0,B.jsxs)(Ce,{...we,ref:t,onClick:_e,...re,...!_h(Ce)&&{ownerState:{...xe,...we.ownerState}},className:V(Se.root,we.className,s,M&&`MuiInputBase-readOnly`),children:[ee,(0,B.jsx)(r_.Provider,{value:null,children:(0,B.jsx)(Te,{"aria-invalid":ue.error,"aria-describedby":r,"aria-label":i,autoComplete:a,autoFocus:o,defaultValue:l,disabled:ue.disabled,id:h,onAnimationStart:be,name:w,placeholder:j,readOnly:M,required:ue.required,rows:P,value:ie,onKeyDown:k,onKeyUp:A,type:te,...ye,...!_h(Te)&&{as:ve,ownerState:{...xe,...ye.ownerState}},ref:se,className:V(Se.input,ye.className,M&&`MuiInputBase-readOnly`),onBlur:he,onChange:ge,onFocus:me})}),f,N?N({...ue,startAdornment:ee}):null]})]})}),b_,x_=K(`fieldset`,{name:`MuiNotchedOutlined`,shouldForwardProp:Eu})({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%`}),S_=K(`legend`,{name:`MuiNotchedOutlined`,shouldForwardProp:Eu})(xp(({theme:e})=>({float:`unset`,width:`auto`,overflow:`hidden`,variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:`11px`,transition:e.transitions.create(`width`,{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:`block`,padding:0,height:11,fontSize:`0.75em`,visibility:`hidden`,maxWidth:.01,transition:e.transitions.create(`max-width`,{duration:50,easing:e.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:e.transitions.create(`max-width`,{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function C_(e){let{children:t,classes:n,className:r,label:i,notched:a,...o}=e,s=i!=null&&i!==``,c={...e,notched:a,withLabel:s};return(0,B.jsx)(x_,{"aria-hidden":!0,className:r,ownerState:c,...o,children:(0,B.jsx)(S_,{ownerState:c,children:s?(0,B.jsx)(`span`,{children:i}):b_||=(0,B.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:`​`})})})}function w_(e){return H(`MuiOutlinedInput`,e)}var T_={...l_,...U(`MuiOutlinedInput`,[`root`,`notchedOutline`,`input`])},E_=e=>{let{classes:t}=e,n=Gc({root:[`root`],notchedOutline:[`notchedOutline`],input:[`input`]},w_,t);return{...t,...n}},D_=K(g_,{shouldForwardProp:e=>Eu(e)||e===`classes`,name:`MuiOutlinedInput`,slot:`Root`,overridesResolver:p_})(xp(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.23)`:`rgba(255, 255, 255, 0.23)`;return{position:`relative`,borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${T_.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${T_.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${T_.focused} .${T_.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Xp()).map(([t])=>({props:{color:t},style:{[`&.${T_.focused} .${T_.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${T_.error} .${T_.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${T_.disabled} .${T_.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:14}},{props:({ownerState:e})=>e.multiline,style:{padding:`16.5px 14px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{padding:`8.5px 14px`}}]}})),O_=K(C_,{name:`MuiOutlinedInput`,slot:`NotchedOutline`})(xp(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.23)`:`rgba(255, 255, 255, 0.23)`;return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),k_=K(__,{name:`MuiOutlinedInput`,slot:`Input`,overridesResolver:m_})(xp(({theme:e})=>({padding:`16.5px 14px`,"&:-webkit-autofill":{...!e.vars&&{WebkitBoxShadow:e.palette.mode===`light`?null:`0 0 0 100px #266798 inset`,WebkitTextFillColor:e.palette.mode===`light`?null:`#fff`,caretColor:e.palette.mode===`light`?null:`#fff`},borderRadius:`inherit`,...e.vars&&e.applyStyles(`dark`,{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}}]}))),A_=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiOutlinedInput`}),{fullWidth:r=!1,inputComponent:i=`input`,label:a,multiline:o=!1,notched:s,slots:c={},slotProps:l={},type:u=`text`,...d}=n,f=E_(n),[p,m]=a_({props:n,states:[`color`,`disabled`,`error`,`focused`,`hiddenLabel`,`size`,`required`]}),h={...n,color:p.color||`primary`,disabled:p.disabled,error:p.error,focused:p.focused,formControl:m,fullWidth:r,hiddenLabel:p.hiddenLabel,multiline:o,size:p.size,type:u},g=c.root??D_,_=c.input??k_,[v,y]=Y(`notchedOutline`,{elementType:O_,className:f.notchedOutline,shouldForwardComponentProp:!0,ownerState:h,externalForwardedProps:{slots:c,slotProps:l},additionalProps:{label:a!=null&&a!==``&&p.required?(0,B.jsxs)(C.Fragment,{children:[a,` `,`*`]}):a}});return(0,B.jsx)(y_,{slots:{root:g,input:_},slotProps:l,renderSuffix:e=>(0,B.jsx)(v,{...y,notched:s===void 0?!!(e.startAdornment||e.filled||e.focused):s}),fullWidth:r,inputComponent:i,multiline:o,ref:t,type:u,...d,classes:{...f,notchedOutline:null}})});A_.muiName=`Input`;function j_(e){return H(`MuiFilledInput`,e)}var M_={...l_,...U(`MuiFilledInput`,[`root`,`underline`,`input`,`adornedStart`,`adornedEnd`,`sizeSmall`,`multiline`,`hiddenLabel`])},N_=e=>{let{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:a,hiddenLabel:o,multiline:s}=e,c=Gc({root:[`root`,!n&&`underline`,r&&`adornedStart`,i&&`adornedEnd`,a===`small`&&`size${q(a)}`,o&&`hiddenLabel`,s&&`multiline`],input:[`input`]},j_,t);return{...t,...c}},P_=K(g_,{shouldForwardProp:e=>Eu(e)||e===`classes`,name:`MuiFilledInput`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...p_(e,t),!n.disableUnderline&&t.underline]}})(xp(({theme:e})=>{let t=e.palette.mode===`light`,n=t?`rgba(0, 0, 0, 0.42)`:`rgba(255, 255, 255, 0.7)`,r=t?`rgba(0, 0, 0, 0.06)`:`rgba(255, 255, 255, 0.09)`,i=t?`rgba(0, 0, 0, 0.09)`:`rgba(255, 255, 255, 0.13)`,a=t?`rgba(0, 0, 0, 0.12)`:`rgba(255, 255, 255, 0.12)`;return{position:`relative`,backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${M_.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${M_.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:`""`,position:`absolute`,right:0,transform:`scaleX(0)`,transition:e.transitions.create(`transform`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:`none`},[`&.${M_.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${M_.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:`""`,position:`absolute`,right:0,transition:e.transitions.create(`border-bottom-color`,{duration:e.transitions.duration.shorter}),pointerEvents:`none`},[`&:hover:not(.${M_.disabled}, .${M_.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${M_.disabled}:before`]:{borderBottomStyle:`dotted`}}},...Object.entries(e.palette).filter(Xp()).map(([t])=>({props:{disableUnderline:!1,color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}})),{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:12}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:12}},{props:({ownerState:e})=>e.multiline,style:{padding:`25px 12px 8px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel&&e.size===`small`,style:{paddingTop:8,paddingBottom:9}}]}})),F_=K(__,{name:`MuiFilledInput`,slot:`Input`,overridesResolver:m_})(xp(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,"&:-webkit-autofill":{...!e.vars&&{WebkitBoxShadow:e.palette.mode===`light`?null:`0 0 0 100px #266798 inset`,WebkitTextFillColor:e.palette.mode===`light`?null:`#fff`,caretColor:e.palette.mode===`light`?null:`#fff`},borderTopLeftRadius:`inherit`,borderTopRightRadius:`inherit`,...e.vars&&e.applyStyles(`dark`,{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}}]}))),I_=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiFilledInput`}),{disableUnderline:r=!1,fullWidth:i=!1,hiddenLabel:a,inputComponent:o=`input`,multiline:s=!1,notched:c,slotProps:l,slots:u={},type:d=`text`,...f}=n,p={...n,disableUnderline:r,fullWidth:i,inputComponent:o,multiline:s,type:d},m=N_(n),h={root:{ownerState:p},input:{ownerState:p}},g=l?Ta(h,l):h;return(0,B.jsx)(y_,{slots:{root:u.root??P_,input:u.input??F_},slotProps:g,fullWidth:i,inputComponent:o,multiline:s,ref:t,type:d,...f,classes:m})});I_.muiName=`Input`;function L_(e){return H(`MuiTypography`,e)}var R_=U(`MuiTypography`,[`root`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`subtitle1`,`subtitle2`,`body1`,`body2`,`inherit`,`button`,`caption`,`overline`,`alignLeft`,`alignRight`,`alignCenter`,`alignJustify`,`noWrap`,`gutterBottom`]),z_=e=>{let{align:t,gutterBottom:n,noWrap:r,variant:i,classes:a}=e;return Gc({root:[`root`,i,e.align!==`inherit`&&`align${q(t)}`,n&&`gutterBottom`,r&&`noWrap`]},L_,a)},yee=K(`span`,{name:`MuiTypography`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!==`inherit`&&t[`align${q(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom]}})(xp(({theme:e})=>({margin:0,variants:[{props:{variant:`inherit`},style:{font:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},...Object.entries(e.typography).filter(([e,t])=>e!==`inherit`&&t&&typeof t==`object`).map(([e,t])=>({props:{variant:e},style:t})),...Object.entries(e.palette).filter(Xp()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,e])=>typeof e==`string`).map(([t])=>({props:{color:`text${q(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:e})=>e.align!==`inherit`,style:{textAlign:`var(--Typography-textAlign)`}},{props:({ownerState:e})=>e.noWrap,style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:`0.35em`}}]}))),B_={h1:`h1`,h2:`h2`,h3:`h3`,h4:`h4`,h5:`h5`,h6:`h6`,subtitle1:`h6`,subtitle2:`h6`,body1:`p`,body2:`p`,inherit:`p`},V_=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiTypography`}),{color:r,align:i=`inherit`,className:a,component:o,gutterBottom:s=!1,noWrap:c=!1,variant:l=`body1`,variantMapping:u=B_,...d}=n,f={...n,align:i,color:r,className:a,component:o,gutterBottom:s,noWrap:c,variant:l,variantMapping:u};return(0,B.jsx)(yee,{as:o||u[l]||B_[l]||`span`,ref:t,className:V(z_(f).root,a),...d,ownerState:f,style:{...i!==`inherit`&&{"--Typography-textAlign":i},...d.style}})});function bee(e){return H(`MuiInputAdornment`,e)}var H_=U(`MuiInputAdornment`,[`root`,`filled`,`standard`,`outlined`,`positionStart`,`positionEnd`,`disablePointerEvents`,`hiddenLabel`,`sizeSmall`]),xee,See=(e,t)=>{let{ownerState:n}=e;return[t.root,t[`position${q(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Cee=e=>{let{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:a,variant:o}=e;return Gc({root:[`root`,n&&`disablePointerEvents`,i&&`position${q(i)}`,o,r&&`hiddenLabel`,a&&`size${q(a)}`]},bee,t)},wee=K(`div`,{name:`MuiInputAdornment`,slot:`Root`,overridesResolver:See})(xp(({theme:e})=>({display:`flex`,maxHeight:`2em`,alignItems:`center`,whiteSpace:`nowrap`,color:(e.vars||e).palette.action.active,variants:[{props:{variant:`filled`},style:{[`&.${H_.positionStart}&:not(.${H_.hiddenLabel})`]:{marginTop:16}}},{props:{position:`start`},style:{marginRight:8}},{props:{position:`end`},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:`none`}}]}))),U_=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiInputAdornment`}),{children:r,className:i,component:a=`div`,disablePointerEvents:o=!1,disableTypography:s=!1,position:c,variant:l,...u}=n,d=i_()||{},f=l;l&&d.variant,d&&!f&&(f=d.variant);let p={...n,hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:o,position:c,variant:f},m=Cee(p);return(0,B.jsx)(r_.Provider,{value:null,children:(0,B.jsx)(wee,{as:a,ownerState:p,className:V(m.root,i),ref:t,...u,children:typeof r==`string`&&!s?(0,B.jsx)(V_,{color:`textSecondary`,children:r}):(0,B.jsxs)(C.Fragment,{children:[c===`start`?xee||=(0,B.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:`​`}):null,r]})})})}),W_=U(`MuiFormLabel`,[`root`,`colorSecondary`,`focused`,`disabled`,`error`,`filled`,`required`,`asterisk`]),G_=U(`MuiInputLabel`,[`root`,`focused`,`disabled`,`error`,`required`,`asterisk`,`formControl`,`sizeSmall`,`shrink`,`animated`,`standard`,`filled`,`outlined`]),K_={fontSize:{base:15,responsive:16},lineHeight:24},q_={base:{small:{paddingTop:0,paddingBottom:4},medium:{paddingTop:4,paddingBottom:4}},outlined:{small:{paddingTop:8,paddingBottom:8},medium:{paddingTop:16,paddingBottom:16}},filled:{small:{paddingTop:20},medium:{paddingTop:24},smallHidden:{paddingTop:8,paddingBottom:8},mediumHidden:{paddingTop:16,paddingBottom:16}}};function J_(e,t){let{fontSize:n,lineHeight:r}=K_,i={fontSize:e.typography.pxToRem(n.base),height:`${r}px`,lineHeight:`${r}px`},a={fontSize:e.typography.pxToRem(n.responsive),height:`${r}px`,lineHeight:`${r}px`};return{...Object.fromEntries(t.map(e=>[e,i[e]])),[e.breakpoints.down(`sm`)]:Object.fromEntries(t.map(e=>[e,a[e]]))}}function Y_(e){return e.vars?.palette.error?.mainChannel??`208 34 65`}var X_=[{props:e=>!!e.multiline,style:{padding:0}}],Z_={root:e=>({"--disabled-color":e.vars?.palette.action.disabled||e.palette.action.disabled,...J_(e,[`lineHeight`]),[`&.${l_.disabled}`]:{[`& .${H_.root} *`]:{color:`var(--disabled-color)`}}}),input:e=>({...J_(e,[`fontSize`,`height`,`lineHeight`]),"&:focus":{borderRadius:`inherit`},"&::placeholder":{color:e.vars?.palette.text.disabled||e.palette.text.disabled,opacity:1}})},Q_={root:[{props:e=>!!e.multiline,style:{...q_.base.medium}},{props:e=>!!e.multiline&&e.size===`small`,style:{...q_.base.small}}],input:[{props:{},style:{...q_.base.medium}},{props:e=>e.size===`small`,style:{...q_.base.small}}]};function $_(e){return{styleOverrides:{root:({theme:e})=>({...Z_.root(e),variants:Q_.root}),input:({theme:e})=>({...Z_.input(e),variants:[...Q_.input,...X_]})}}}var ev={root:e=>({"&::before":{borderBottomColor:Qf(sg(e),.2)},"&::after":{borderBottomColor:e.vars?.palette.text.primary||e.palette.text.primary}})};function tv(e){return{styleOverrides:{root:({theme:e})=>ev.root(e)}}}var nv={root:(e,t)=>({borderRadius:t,[`&.${T_.focused}:not(.${T_.error})`]:{[`& .${T_.notchedOutline}`]:{borderColor:e.vars?.palette.text.primary||e.palette.text.primary}},[`&.${T_.disabled}`]:{[`& .${T_.notchedOutline}`]:{borderColor:e.vars?.palette.action.disabledBackground||e.palette.action.disabledBackground}}}),notchedOutline:e=>({borderColor:Qf(sg(e),.2),transition:e.transitions.create([`border-color`],{duration:e.transitions.duration.shortest}),fontSize:e.typography.pxToRem(14),"& legend > span":{paddingInline:3}})},rv={root:[{props:e=>!!e.multiline,style:{...q_.outlined.medium}},{props:e=>!!e.multiline&&e.size===`small`,style:{...q_.outlined.small}}],input:[{props:{},style:{...q_.outlined.medium}},{props:e=>e.size===`small`,style:{...q_.outlined.small}}]};function iv(e){let{borderRadius:t}=e;return{styleOverrides:{root:({theme:e})=>({...nv.root(e,t),variants:rv.root}),input:{variants:[...rv.input,...X_]},notchedOutline:({theme:e})=>nv.notchedOutline(e)}}}var av={root:(e,t)=>{let n=sg(e),r=Y_(e),i=Qf(n,.08),a=Qf(n,.16),o=Qf(r,.08),s=Qf(r,.16),c=e.vars?.palette.action.disabledBackground||e.palette.action.disabledBackground;return{backgroundColor:i,borderRadius:t,[`&:hover, &.${M_.focused}`]:{backgroundColor:a},[`&.${M_.error}`]:{backgroundColor:o,[`&:hover, &.${M_.focused}`]:{backgroundColor:s}},[`&.${M_.disabled}`]:{backgroundColor:c}}}},ov={root:[{props:e=>!!e.multiline,style:{...q_.filled.medium}},{props:e=>!!e.multiline&&e.size===`small`,style:{...q_.filled.small}},{props:e=>!!e.multiline&&!!e.hiddenLabel,style:{...q_.filled.mediumHidden}},{props:e=>!!e.multiline&&!!e.hiddenLabel&&e.size===`small`,style:{...q_.filled.smallHidden}}],input:[{props:{},style:{...q_.filled.medium}},{props:e=>e.size===`small`,style:{...q_.filled.small}},{props:e=>!!e.hiddenLabel,style:{...q_.filled.mediumHidden}},{props:e=>!!e.hiddenLabel&&e.size===`small`,style:{...q_.filled.smallHidden}}]};function sv(e){let{borderRadius:t}=e;return{defaultProps:{disableUnderline:!0},styleOverrides:{root:({theme:e})=>({...av.root(e,t),variants:ov.root}),input:{variants:[...ov.input,...X_]}}}}function cv(e){return{defaultProps:{variant:`outlined`,size:e.density===`compact`?`small`:`medium`}}}function lv(e){return{styleOverrides:{root:({theme:e})=>({fontSize:e.typography.pxToRem(14),lineHeight:1.5,variants:[{props:e=>!e.shrink,style:{...J_(e,[`fontSize`,`lineHeight`]),color:e.vars?.palette.text.disabled||e.palette.text.disabled}},{props:e=>!!e.shrink,style:{fontWeight:600,[`&.${G_.focused}:not(.${G_.error})`]:{color:`inherit`}}}]})}}}function uv(e){return{defaultProps:{component:`div`},styleOverrides:{root:({theme:e})=>({display:`flex`,alignItems:`center`,gap:e.spacing(.5),marginTop:e.spacing(.75),fontSize:e.typography.pxToRem(12),lineHeight:1.5,"& > svg":{width:16,height:16}})}}}function dv(e){return H(`PrivateSwitchBase`,e)}U(`PrivateSwitchBase`,[`root`,`checked`,`disabled`,`input`,`edgeStart`,`edgeEnd`]);var fv=e=>{let{classes:t,checked:n,disabled:r,edge:i}=e;return Gc({root:[`root`,n&&`checked`,r&&`disabled`,i&&`edge${q(i)}`],input:[`input`]},dv,t)},pv=K(Vm,{name:`MuiSwitchBase`})({padding:9,borderRadius:`50%`,variants:[{props:{edge:`start`,size:`small`},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e===`start`&&t.size!==`small`,style:{marginLeft:-12}},{props:{edge:`end`,size:`small`},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e===`end`&&t.size!==`small`,style:{marginRight:-12}}]}),mv=K(`input`,{name:`MuiSwitchBase`,shouldForwardProp:Eu})({cursor:`inherit`,position:`absolute`,opacity:0,width:`100%`,height:`100%`,top:0,left:0,margin:0,padding:0,zIndex:1}),hv=C.forwardRef(function(e,t){let{autoFocus:n,checked:r,checkedIcon:i,defaultChecked:a,disabled:o,disableFocusRipple:s=!1,edge:c=!1,icon:l,id:u,name:d,onBlur:f,onChange:p,onFocus:m,readOnly:h,required:g=!1,tabIndex:_,type:v,value:y,slots:b={},slotProps:x={},...S}=e,{nativeButton:C,...w}=S,[T,E]=Vp({controlled:r,default:!!a,name:`SwitchBase`,state:`checked`}),D=i_(),O=e=>{m&&m(e),D&&D.onFocus&&D.onFocus(e)},k=e=>{f&&f(e),D&&D.onBlur&&D.onBlur(e)},A=e=>{if(e.nativeEvent.defaultPrevented||h)return;let t=e.target.checked;E(t),p&&p(e,t)},j=o;D&&j===void 0&&(j=D.disabled);let M=v===`checkbox`||v===`radio`,N={...e,checked:T,disabled:j,disableFocusRipple:s,edge:c},P=fv(N),F={slots:b,slotProps:x},[I,L]=Y(`root`,{ref:t,elementType:pv,className:P.root,shouldForwardComponentProp:!0,externalForwardedProps:{...F,component:`span`,...w},getSlotProps:e=>({...e,onFocus:t=>{e.onFocus?.(t),O(t)},onBlur:t=>{e.onBlur?.(t),k(t)}}),ownerState:N,additionalProps:{centerRipple:!0,focusRipple:!s,role:void 0,tabIndex:null}}),[ee,te]=Y(`input`,{elementType:mv,className:P.input,externalForwardedProps:F,getSlotProps:e=>({...e,onChange:t=>{e.onChange?.(t),A(t)}}),ownerState:N,additionalProps:{autoFocus:n,checked:r,defaultChecked:a,disabled:j,id:M?u:void 0,name:d,readOnly:h,required:g,tabIndex:_,type:v,...v===`checkbox`&&y===void 0?{}:{value:y}}});return(0,B.jsxs)(I,{...L,children:[(0,B.jsx)(ee,{...te}),T?i:l]})}),gv=Dp((0,B.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`}),`CheckBoxOutlineBlank`),_v=Dp((0,B.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`}),`CheckBox`),vv=Dp((0,B.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`}),`IndeterminateCheckBox`);function yv(e){return H(`MuiCheckbox`,e)}var bv=U(`MuiCheckbox`,[`root`,`checked`,`disabled`,`indeterminate`,`colorPrimary`,`colorSecondary`,`sizeSmall`,`sizeMedium`]),xv=e=>{let{classes:t,indeterminate:n,color:r,size:i}=e,a=Gc({root:[`root`,n&&`indeterminate`,`color${q(r)}`,`size${q(i)}`]},yv,t);return{...t,...a}},Sv=K(hv,{shouldForwardProp:e=>Eu(e)||e===`classes`,name:`MuiCheckbox`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${q(n.size)}`],n.color!==`default`&&t[`color${q(n.color)}`]]}})(xp(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:`default`,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Xp()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Xp()).map(([t])=>({props:{color:t},style:{[`&.${bv.checked}, &.${bv.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${bv.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:`transparent`}}}}]}))),Cv=(0,B.jsx)(_v,{}),wv=(0,B.jsx)(gv,{}),Tv=(0,B.jsx)(vv,{}),Ev=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiCheckbox`}),{checkedIcon:r=Cv,color:i=`primary`,icon:a=wv,indeterminate:o=!1,indeterminateIcon:s=Tv,size:c=`medium`,disableRipple:l=!1,className:u,slots:d={},slotProps:f={},...p}=n,m=o?s:a,h=o?s:r,g={...n,disableRipple:l,color:i,indeterminate:o,size:c},_=xv(g),v=f.input,[y,b]=Y(`root`,{ref:t,elementType:Sv,className:V(_.root,u),shouldForwardComponentProp:!0,externalForwardedProps:{slots:d,slotProps:f,...p},ownerState:g,additionalProps:{type:`checkbox`,icon:C.cloneElement(m,{fontSize:m.props.fontSize??c}),checkedIcon:C.cloneElement(h,{fontSize:h.props.fontSize??c}),disableRipple:l,slots:d,slotProps:{input:qp(typeof v==`function`?v(g):v,{"data-indeterminate":o,"aria-checked":o?`mixed`:void 0})}}});return(0,B.jsx)(y,{...b,classes:_})}),Dv=U(`MuiRadio`,[`root`,`checked`,`disabled`,`colorPrimary`,`colorSecondary`,`sizeSmall`]),Ov=U(`MuiSwitch`,[`root`,`edgeStart`,`edgeEnd`,`switchBase`,`colorPrimary`,`colorSecondary`,`sizeSmall`,`sizeMedium`,`checked`,`disabled`,`input`,`thumb`,`track`]);function kv(e){return(0,B.jsx)(Ep,{...e,children:(0,B.jsx)(`path`,{d:`M17.9 2.318A5 5 0 0 1 22.895 7.1l.005.217v10a5 5 0 0 1-4.783 4.995l-.217.005h-10a5 5 0 0 1-4.995-4.783l-.005-.217v-10a5 5 0 0 1 4.783-4.996l.217-.004h10Zm-.5 1.5h-9a4 4 0 0 0-4 4v9a4 4 0 0 0 4 4h9a4 4 0 0 0 4-4v-9a4 4 0 0 0-4-4Z`})})}function Av(e){return(0,B.jsx)(Ep,{...e,children:(0,B.jsx)(`path`,{d:`M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm-1.625 7.255-4.13 4.13-1.75-1.75a.881.881 0 0 0-1.24 0c-.34.34-.34.89 0 1.24l2.38 2.37c.17.17.39.25.61.25.23 0 .45-.08.62-.25l4.75-4.75c.34-.34.34-.89 0-1.24a.881.881 0 0 0-1.24 0Z`})})}function jv(e){return(0,B.jsx)(Ep,{...e,children:(0,B.jsx)(`path`,{d:`M17,2 C19.7614,2 22,4.23858 22,7 L22,7 L22,17 C22,19.7614 19.7614,22 17,22 L17,22 L7,22 C4.23858,22 2,19.7614 2,17 L2,17 L2,7 C2,4.23858 4.23858,2 7,2 L7,2 Z M15,11 L9,11 C8.44772,11 8,11.4477 8,12 C8,12.5523 8.44772,13 9,13 L15,13 C15.5523,13 16,12.5523 16,12 C16,11.4477 15.5523,11 15,11 Z`})})}var Mv={small:{thumb:10,track:16,trackRadius:8,translateX:`10px`},medium:{thumb:14,track:20,trackRadius:10,translateX:`14px`}},Nv=[{props:e=>e.color===`default`,style:({theme:e})=>({[`&.${Ov.checked}`]:{[`& + .${Ov.track}`]:{backgroundColor:e.vars?.palette.text.primary},[`& .${Ov.thumb}`]:{...e.applyStyles(`dark`,{color:e.vars?.palette.grey[800]})}}})}],Pv=[{props:{},style:{[`&.${Ov.checked}`]:{transform:`translateX(${Mv.medium.translateX})`,[`& + .${Ov.track}`]:{opacity:1}}}}],Fv=[{props:{},style:({theme:e})=>({[`&.${Ov.disabled}`]:{[`& + .${Ov.track}`]:{opacity:.48},[`& .${Ov.thumb}`]:{...e.applyStyles(`dark`,{opacity:.48})}}})}],Iv=[{props:e=>e.size===`small`,style:{[`& .${Ov.switchBase}`]:{[`&.${Ov.checked}`]:{transform:`translateX(${Mv.small.translateX})`}},[`& .${Ov.thumb}`]:{width:Mv.small.thumb,height:Mv.small.thumb},[`& .${Ov.track}`]:{height:Mv.small.track,borderRadius:Mv.small.trackRadius}}}];function Lv(e){return{defaultProps:{size:e.density===`compact`?`small`:`medium`,icon:(0,B.jsx)(kv,{}),checkedIcon:(0,B.jsx)(Av,{}),indeterminateIcon:(0,B.jsx)(jv,{})},styleOverrides:{root:({theme:e})=>({padding:e.spacing(1),variants:[{props:e=>e.color===`default`,style:{[`&.${bv.checked}`]:{color:e.vars?.palette.text.primary}}},...[`primary`,`secondary`,`info`,`success`,`warning`,`error`].map(t=>({props:{color:t},style:{"&:hover":{backgroundColor:Qf(e.vars?.palette[t]?.mainChannel??`51 133 240`,.12)}}}))]}),sizeSmall:{"& svg":{fontSize:16}},sizeMedium:{"& svg":{fontSize:20}}}}}function Rv(e){return{defaultProps:{size:e.density===`compact`?`small`:`medium`},styleOverrides:{root:({theme:e})=>({padding:e.spacing(1),variants:[{props:e=>e.color===`default`,style:{[`&.${Dv.checked}`]:{color:e.vars?.palette.text.primary}}}]})}}}function zv(e){return{defaultProps:{size:e.density===`compact`?`small`:`medium`},styleOverrides:{root:{alignItems:`center`,variants:[...Iv]},switchBase:{top:`auto`,left:`6px`,variants:[...Nv,...Pv,...Fv]},thumb:({theme:e})=>({width:Mv.medium.thumb,height:Mv.medium.thumb,color:e.vars?.palette.common.white}),track:({theme:e})=>({height:Mv.medium.track,borderRadius:Mv.medium.trackRadius,backgroundColor:Qf(sg(e),.48),opacity:1})}}}function Bv(e){return{styleOverrides:{root:({theme:e})=>({[`&.${W_.disabled}`]:{color:e.vars?.palette.action.disabled},variants:[{props:e=>!e.error,style:{[`&.${W_.focused}`]:{color:e.vars?.palette.text.secondary}}}]})}}}function Vv(e){return{styleOverrides:{label:({theme:e})=>({...e.typography.body2})}}}function Hv(e){return{defaultProps:{variant:`outlined`},styleOverrides:{root:{"& .MuiFormLabel-root":{marginBottom:8}}}}}var Uv=C.createContext(void 0);function Wv(){let e=C.useContext(Uv);if(e===void 0)throw Error(`MUI: RovingTabIndexContext is missing. Roving tab index items must be placed within a roving tab index provider.`);return e}var Gv=Object.is;function Kv(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(let r in e)if(n+=1,!Gv(e[r],t[r])||!(r in t))return!1;for(let e in t)r+=1;return n===r}var qv=[`ArrowRight`,`ArrowLeft`,`ArrowUp`,`ArrowDown`,`Home`,`End`];function Jv(e){let{activeItemId:t,getDefaultActiveItemId:n,orientation:r,isRtl:i=!1,isItemFocusable:a=cy,wrap:o=!0}=e,[s,c]=C.useState(t),l=C.useRef(t),u=s;t!==l.current&&(l.current=t,t!==void 0&&t!==s&&(u=t,c(t)));let d=C.useRef(null),f=C.useRef(new Map),[p,m]=C.useState(0),h=C.useMemo(()=>ay(f.current),[p]),g=Xv(u,h,a,n),_=C.useRef(g);_.current=g;let v=C.useCallback(()=>{let e=ay(f.current);return ny(e,Xv(_.current,e,a,n))},[n,a]),y=C.useCallback(()=>f.current,[]),b=Hp(e=>{Kv(f.current.get(e.id)??null,e)||(f.current.set(e.id,e),m(e=>e+1))}),x=Hp(e=>{f.current.delete(e)&&m(e=>e+1)}),S=Hp(e=>{c(e)}),w=C.useCallback(e=>_.current===e,[]),T=C.useCallback((e,t,n,r)=>{let i=ey(oy(f.current),e,t,n,r??a);return i?(i.element?.focus(),c(i.id),i):null},[a]),E=C.useCallback(e=>({onFocus:e=>{let t=oy(f.current),n=iy(t,e.target);n!==-1&&c(t[n].id)},onKeyDown:e=>{if(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||!qv.includes(e.key))return;let t=r===`horizontal`?`ArrowLeft`:`ArrowUp`,n=r===`horizontal`?`ArrowRight`:`ArrowDown`;r===`horizontal`&&i&&(t=`ArrowRight`,n=`ArrowLeft`);let a=oy(f.current),s=jp(Np(d.current)),c=s===d.current,l=$v(a,s,_.current),u=`next`;switch(e.key){case t:u=`previous`,e.preventDefault(),c&&(l=a.length);break;case n:e.preventDefault(),c&&(l=-1);break;case`Home`:e.preventDefault(),l=-1;break;case`End`:e.preventDefault(),u=`previous`,l=a.length;break;default:return}T(l,u,o)},ref:Eee(e,e=>{d.current=e})}),[T,i,r,o]),D=C.useCallback(e=>{let t=oy(f.current),n=jp(Np(d.current));return T(n===d.current?-1:$v(t,n,_.current),`next`,!0,e)?.id??null},[T]);return C.useMemo(()=>({activeItemId:g,focusNext:D,getActiveItem:v,getContainerProps:E,getItemMap:y,isItemActive:w,registerItem:b,setActiveItemId:S,unregisterItem:x}),[g,D,v,E,y,w,b,S,x])}function Yv(e){let{activeItemId:t,registerItem:n,unregisterItem:r}=Wv(),i=C.useRef(null),a=C.useMemo(()=>({disabled:e.disabled??!1,element:null,focusableWhenDisabled:e.focusableWhenDisabled??!1,id:e.id,selected:e.selected??!1,textValue:e.textValue}),[e.disabled,e.focusableWhenDisabled,e.id,e.selected,e.textValue]),o=C.useRef(a);o.current=a;let s=C.useCallback(t=>{if(i.current=t,t==null){queueMicrotask(()=>{i.current??r(e.id)});return}n({...o.current,element:t})},[e.id,n,r]),c=Wp(e.ref,s);return Fs(()=>{i.current&&n({...a,element:i.current})},[a,n]),Fs(()=>{let t=e.id;return()=>{r(t)}},[e.id,r]),{ref:c,tabIndex:t===e.id?0:-1}}function Xv(e,t,n,r){return e==null?Qv(t,n,r):Zv(e,t,n)}function Zv(e,t,n){let r=ry(t,e);return r===-1?ty(t,n):n(t[r])?t[r].id:ey(t,r,`next`,!1,n)?.id??null}function Qv(e,t,n){let r=n?.(e);if(r!=null){let n=ny(e,r);if(n&&t(n))return n.id}return ty(e,t)}function $v(e,t,n){if(t){let n=iy(e,t);if(n!==-1)return n}return ry(e,n)}function ey(e,t,n,r,i){let a=e.length-1;if(a===-1)return null;let o=!1,s=sy(t,a,n,r),c=s;for(;s!==-1;){if(s===c){if(o)return null;o=!0}let t=e[s];if(!t||!i(t))s=sy(s,a,n,r);else return t}return null}function ty(e,t){return e.find(e=>t(e))?.id??null}function ny(e,t){return t==null?null:e.find(e=>e.id===t)??null}function ry(e,t){return t==null?-1:e.findIndex(e=>e.id===t)}function iy(e,t){return t?e.findIndex(e=>e.element===t||e.element?.contains(t)):-1}function ay(e){let t=Array.from(e.values());if(t.every(e=>e.element==null))return t;let n=t.filter(ly).sort((e,t)=>Tee(e.element,t.element)),r=t.filter(e=>!ly(e));return[...n,...r]}function oy(e){return ay(e).filter(ly)}function sy(e,t,n,r=!0){return n===`next`?e===t?r?0:-1:e+1:e===0?r?t:-1:e-1}function cy(e){return e.element?e.focusableWhenDisabled?!0:!e.disabled&&!e.element.hasAttribute(`disabled`)&&e.element.getAttribute(`aria-disabled`)!==`true`&&e.element.hasAttribute(`tabindex`):!1}function ly(e){return e.element!=null&&e.element.isConnected}function Tee(e,t){if(e===t)return 0;let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}function Eee(...e){return t=>{e.forEach(e=>{Lp(e??null,t)})}}function Dee(e){return H(`MuiTab`,e)}var uy=U(`MuiTab`,[`root`,`labelIcon`,`textColorInherit`,`textColorPrimary`,`textColorSecondary`,`selected`,`disabled`,`fullWidth`,`wrapped`,`icon`]),Oee=e=>{let{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:a,label:o,selected:s,disabled:c}=e;return Gc({root:[`root`,a&&o&&`labelIcon`,`textColor${q(n)}`,r&&`fullWidth`,i&&`wrapped`,s&&`selected`,c&&`disabled`],icon:[`icon`]},Dee,t)},kee=K(Vm,{name:`MuiTab`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${q(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${uy.icon}`]:t.icon}]}})(xp(({theme:e})=>({...e.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:t})=>e.icon&&e.label&&t===`top`,style:{[`& > .${uy.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`bottom`,style:{[`& > .${uy.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`start`,style:{[`& > .${uy.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`end`,style:{[`& > .${uy.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:`inherit`},style:{color:`inherit`,opacity:.6,[`&.${uy.selected}`]:{opacity:1},[`&.${uy.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:`primary`},style:{color:(e.vars||e).palette.text.secondary,[`&.${uy.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${uy.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:`secondary`},style:{color:(e.vars||e).palette.text.secondary,[`&.${uy.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${uy.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:`none`}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),Aee=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiTab`}),{className:r,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:o,icon:s,iconPosition:c=`top`,indicator:l,label:u,onChange:d,onClick:f,onFocus:p,selected:m,selectionFollowsFocus:h,textColor:g=`inherit`,value:_,wrapped:v=!1,...y}=n,b=Wv(),x=Yv({id:_,ref:t,disabled:i,selected:m}),S=b.getItemMap().size===0&&m?0:x.tabIndex,w={...n,disabled:i,disableFocusRipple:a,selected:m,icon:!!s,iconPosition:c,label:!!u,fullWidth:o,textColor:g,wrapped:v},T=Oee(w),E=s&&u&&C.isValidElement(s)?C.cloneElement(s,{className:V(T.icon,s.props.className)}):s;return(0,B.jsxs)(kee,{internalNativeButton:!0,focusRipple:!a,className:V(T.root,r),ref:x.ref,role:`tab`,"aria-selected":m,disabled:i,onClick:e=>{!m&&d&&d(e,_),f&&f(e)},onFocus:e=>{h&&!m&&d&&d(e,_),p&&p(e)},tabIndex:S,ownerState:w,...y,children:[c===`top`||c===`start`?(0,B.jsxs)(C.Fragment,{children:[E,u]}):(0,B.jsxs)(C.Fragment,{children:[u,E]}),l]})}),dy={root:[{props:e=>e.indicatorColor===`inherit`,style:{"& .MuiTabs-indicator":{backgroundColor:`currentColor`}}}],list:[{props:{},style:({theme:e})=>({gap:e.spacing(1)})}]},jee=[{props:{},style:({theme:e})=>({[`&.${uy.selected}`]:{fontWeight:600,color:e.vars?.palette.text.primary||e.palette.text.primary}})},{props:e=>!!e.icon&&!!e.label,style:{minHeight:`auto`}}];function Mee(e){let t=ug(e.density);return{defaultProps:{variant:`scrollable`,textColor:`inherit`,indicatorColor:`primary`,allowScrollButtonsMobile:!0},styleOverrides:{root:({theme:e})=>({minHeight:36*t,variants:[...dy.root]}),list:{variants:[...dy.list]},indicator:{borderRadius:2}}}}function Nee(e){let t=ug(e.density);return{defaultProps:{disableRipple:!0,iconPosition:`start`},styleOverrides:{root:({theme:e})=>({padding:8*t,minHeight:36*t,minWidth:36*t,opacity:1,textTransform:`none`,fontWeight:e.typography.fontWeightMedium,color:e.vars?.palette.text.secondary||e.palette.text.secondary,lineHeight:e.typography.body2.lineHeight,[`& .${Cp.root}`]:{fontSize:20},variants:[...jee]})}}}function Pee(e){let{density:t,borderRadius:n}=e,r=ug(t);return{MuiDialog:{styleOverrides:{paper:({theme:e})=>({boxShadow:`0 24px 48px -12px rgba(${sg(e,`900`)} / 0.24)`,variants:[{props:()=>!0,style:{[e.breakpoints.down(`sm`)]:{margin:0,width:`100%`,maxWidth:`none`,maxHeight:`none`,height:`100%`,borderRadius:0}}},{props:e=>!e.fullScreen,style:{borderRadius:n*2,[e.breakpoints.up(`sm`)]:{margin:e.spacing(2)}}}]})}},MuiDialogTitle:{styleOverrides:{root:({theme:e})=>({padding:`${20*r}px ${24*r}px`,fontSize:e.typography.pxToRem(18),fontWeight:600,lineHeight:28/18})}},MuiDialogContent:{styleOverrides:{root:{padding:`${16*r}px ${24*r}px`}}},MuiDialogActions:{styleOverrides:{root:{padding:`${16*r}px ${24*r}px`,gap:8}}}}}function Fee(e){let{density:t,borderRadius:n}=e,r=ug(t);return{MuiCard:{defaultProps:{elevation:0},styleOverrides:{root:({theme:e})=>({position:`relative`,zIndex:0,borderRadius:n*1.5,border:`1px solid ${cg(e,`divider`)}`,backgroundImage:`none`,boxShadow:`0 0 2px 0 rgba(${sg(e)} / 0.2), 0 12px 24px -4px rgba(${sg(e)} / 0.12)`})}},MuiCardHeader:{defaultProps:{slotProps:{title:{variant:`h6`},subheader:{variant:`body2`}}},styleOverrides:{root:{padding:`${16*r}px ${20*r}px`},title:({theme:e})=>({fontSize:e.typography.pxToRem(16),fontWeight:600,lineHeight:1.5}),subheader:({theme:e})=>({fontSize:e.typography.pxToRem(14),lineHeight:22/14,color:cg(e,`text.secondary`)})}},MuiCardContent:{styleOverrides:{root:{padding:`${16*r}px ${20*r}px`,"&:last-child":{paddingBottom:16*r}}}},MuiCardActions:{styleOverrides:{root:{padding:`${12*r}px ${20*r}px`,gap:8}}}}}function fy(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;let n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode??n.host??null}}return!1}function py(e){let t=C.useRef({});return C.useEffect(()=>{t.current=e}),t.current}function my(e){let{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,o=i?{}:yh(n,r),{props:s,internalRef:c}=Sh({...a,externalSlotProps:o}),l=Wp(c,o?.ref,e.additionalProps?.ref);return vh(t,{...s,ref:l},r)}function hy(e){return e?.props?.ref||null}function Iee(e){return typeof e==`function`?e():e}var gy=C.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=C.useState(null),s=Wp(C.isValidElement(n)?hy(n):null,t);if(Fs(()=>{i||o(Iee(r)||document.body)},[r,i]),Fs(()=>{if(a&&!i)return Lp(t,a),()=>{Lp(t,null)}},[t,a,i]),i){if(C.isValidElement(n)){let e={ref:s};return C.cloneElement(n,e)}return n}return a&&fm.createPortal(n,a)});function Lee(e){return H(`MuiPopper`,e)}U(`MuiPopper`,[`root`]);function Ree(e,t){if(t===`ltr`)return e;switch(e){case`bottom-end`:return`bottom-start`;case`bottom-start`:return`bottom-end`;case`top-end`:return`top-start`;case`top-start`:return`top-end`;default:return e}}function _y(e){return typeof e==`function`?e():e}function zee(e){return e.nodeType!==void 0}var Bee=e=>{let{classes:t}=e;return Gc({root:[`root`]},Lee,t)},Vee={},vy=C.forwardRef(function(e,t){let{anchorEl:n,children:r,direction:i,disablePortal:o,modifiers:s,open:c,placement:l,popperOptions:u,popperRef:d,slotProps:f={},slots:p={},TransitionProps:m,ownerState:h,...g}=e,_=C.useRef(null),v=Wp(_,t),y=C.useRef(null),b=Wp(y,d),x=C.useRef(b);Fs(()=>{x.current=b},[b]),C.useImperativeHandle(d,()=>y.current,[]);let S=Ree(l,i),[w,T]=C.useState(S),[E,D]=C.useState(_y(n));C.useEffect(()=>{y.current&&y.current.forceUpdate()}),C.useEffect(()=>{n&&D(_y(n))},[n]),Fs(()=>{if(!E||!c)return;let e=e=>{T(e.placement)},t=[{name:`preventOverflow`,options:{altBoundary:o}},{name:`flip`,options:{altBoundary:o}},{name:`onUpdate`,enabled:!0,phase:`afterWrite`,fn:({state:t})=>{e(t)}}];s!=null&&(t=t.concat(s)),u&&u.modifiers!=null&&(t=t.concat(u.modifiers));let n=a(E,_.current,{placement:S,...u,modifiers:t});x.current(n);let r=_.current;return()=>{if(r){let{style:e}=r,t=e.position,i=e.top,a=e.left,o=e.transform;n.destroy(),e.position=t,e.top=i,e.left=a,e.transform=o}else n.destroy();x.current(null)}},[E,o,s,c,u,S]);let O={placement:w};m!==null&&(O.TransitionProps=m);let k=Bee(e),A=p.root??`div`;return(0,B.jsx)(A,{...my({elementType:A,externalSlotProps:f.root,externalForwardedProps:g,additionalProps:{role:`tooltip`,ref:v},ownerState:e,className:k.root}),children:typeof r==`function`?r(O):r})}),yy=K(C.forwardRef(function(e,t){let{anchorEl:n,children:r,container:i,direction:a=`ltr`,disablePortal:o=!1,keepMounted:s=!1,modifiers:c,open:l,placement:u=`bottom`,popperOptions:d=Vee,popperRef:f,style:p,transition:m=!1,slotProps:h={},slots:g={},..._}=e,[v,y]=C.useState(!0),b=()=>{y(!1)},x=()=>{y(!0)};if(!s&&!l&&(!m||v))return null;let S;if(i)S=i;else if(n){let e=_y(n);S=e&&zee(e)?Np(e).body:Np(null).body}let w=!l&&s&&(!m||v)?`none`:void 0,T=m?{in:l,onEnter:b,onExited:x}:void 0;return(0,B.jsx)(gy,{disablePortal:o,container:S,children:(0,B.jsx)(vy,{anchorEl:n,direction:a,disablePortal:o,modifiers:c,ref:t,open:m?!v:l,placement:u,popperOptions:d,popperRef:f,slotProps:h,slots:g,..._,style:{position:`fixed`,top:0,left:0,display:w,...p},TransitionProps:T,children:r})})}),{name:`MuiPopper`,slot:`Root`})({}),by=C.forwardRef(function(e,t){let n=uc(),{anchorEl:r,component:i,container:a,disablePortal:o,keepMounted:s,modifiers:c,open:l,placement:u,popperOptions:d,popperRef:f,transition:p,slots:m,slotProps:h,...g}=J({props:e,name:`MuiPopper`}),_={anchorEl:r,container:a,disablePortal:o,keepMounted:s,modifiers:c,open:l,placement:u,popperOptions:d,popperRef:f,transition:p,...g};return(0,B.jsx)(yy,{as:i,direction:n?`rtl`:`ltr`,slots:m,slotProps:h,..._,ref:t})});function xy(e){return H(`MuiListSubheader`,e)}U(`MuiListSubheader`,[`root`,`colorPrimary`,`colorInherit`,`gutters`,`inset`,`sticky`]);var Sy=e=>{let{classes:t,color:n,disableGutters:r,inset:i,disableSticky:a}=e;return Gc({root:[`root`,n!==`default`&&`color${q(n)}`,!r&&`gutters`,i&&`inset`,!a&&`sticky`]},xy,t)},Cy=K(`li`,{name:`MuiListSubheader`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`default`&&t[`color${q(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(xp(({theme:e})=>({boxSizing:`border-box`,lineHeight:`48px`,listStyle:`none`,color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:`primary`},style:{color:(e.vars||e).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:(e.vars||e).palette.background.paper}}]}))),wy=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiListSubheader`}),{className:r,color:i=`default`,component:a=`li`,disableGutters:o=!1,disableSticky:s=!1,inset:c=!1,...l}=n,u={...n,color:i,component:a,disableGutters:o,disableSticky:s,inset:c};return(0,B.jsx)(Cy,{as:a,className:V(Sy(u).root,r),ref:t,ownerState:u,...l})});function Ty(e){return H(`MuiInput`,e)}var Ey={...l_,...U(`MuiInput`,[`root`,`underline`,`input`])},Dy=Dp((0,B.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`}),`Close`),Oy=Dp((0,B.jsx)(`path`,{d:`M7 10l5 5 5-5z`}),`ArrowDropDown`),ky=U(`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`.split(`.`));function Ay(e){let{borderRadius:t}=e;return{styleOverrides:{paper:({theme:e})=>({borderRadius:t,boxShadow:`0 0 2px 0 rgba(${sg(e)} / 0.24), -20px 20px 40px -4px rgba(${sg(e)} / 0.24)`}),listbox:{padding:4},option:({theme:e})=>({borderRadius:t-2,margin:2,[`&.${ky.focused}`]:{backgroundColor:cg(e,`action.hover`)},'&[aria-selected="true"]':{backgroundColor:cg(e,`action.selected`),fontWeight:500,[`&.${ky.focused}`]:{backgroundColor:cg(e,`action.hover`)}}}),popupIndicator:{[`& .${Cp.root}`]:{fontSize:20}},clearIndicator:{[`& .${Cp.root}`]:{fontSize:18}}}}}function jy(e){let{borderRadius:t}=e;return{styleOverrides:{root:({theme:e})=>({border:`none`,borderRadius:t,"--DataGrid-containerBackground":e.vars?.palette.background.neutral||e.palette.grey[50],"--DataGrid-pinnedBackground":cg(e,`background.paper`),"& .MuiDataGrid-columnHeaders":{borderBottom:`1px solid ${cg(e,`divider`)}`},"& .MuiDataGrid-columnHeader":{fontWeight:600,fontSize:e.typography.pxToRem(14),color:cg(e,`text.secondary`),"&:focus, &:focus-within":{outline:`none`}},"& .MuiDataGrid-cell":{borderBottom:`1px solid rgba(${sg(e)} / 0.12)`,"&:focus, &:focus-within":{outline:`none`}},"& .MuiDataGrid-row":{"&:hover":{backgroundColor:cg(e,`action.hover`)},"&.Mui-selected":{backgroundColor:`rgba(${lg(e,`primary`)} / 0.08)`,"&:hover":{backgroundColor:`rgba(${lg(e,`primary`)} / 0.12)`}}},"& .MuiDataGrid-footerContainer":{borderTop:`1px solid ${cg(e,`divider`)}`},"& .MuiDataGrid-selectedRowCount":{whiteSpace:`nowrap`},"& .MuiDataGrid-toolbarContainer":{padding:e.spacing(1.5,1.5,.5),gap:e.spacing(1)},"& .MuiDataGrid-columnSeparator":{color:cg(e,`divider`)}})}}}function My(e){let{density:t,borderRadius:n}=e;return{MuiDatePicker:{defaultProps:{slotProps:{openPickerButton:{size:t===`compact`?`small`:`medium`}}}},MuiPickersLayout:{styleOverrides:{root:({theme:e})=>({"& .MuiPickersLayout-actionBar":{padding:e.spacing(1,2)}})}},MuiPickersDay:{styleOverrides:{root:()=>({borderRadius:n-2,fontWeight:400,"&.Mui-selected":{fontWeight:600}}),today:({theme:e})=>({borderColor:cg(e,`primary.main`),"&:not(.Mui-selected)":{backgroundColor:`transparent`}})}},MuiPickersYear:{styleOverrides:{yearButton:()=>({borderRadius:n,"&.Mui-selected":{fontWeight:600}})}},MuiPickersMonth:{styleOverrides:{monthButton:()=>({borderRadius:n,"&.Mui-selected":{fontWeight:600}})}}}}function Ny(e){let{density:t,borderRadius:n}=e,r=ug(t);return{MuiButton:jg(e),MuiButtonBase:Mg(),MuiButtonGroup:Ng(e),MuiIconButton:{styleOverrides:{root:({theme:e})=>({borderRadius:n,"&:hover":{backgroundColor:cg(e,`action.hover`)}})}},MuiInputAdornment:{styleOverrides:{root:{[`& .${nh.root}:hover`]:{backgroundColor:`transparent`}}}},MuiFab:{defaultProps:{color:`primary`},styleOverrides:{root:({theme:e})=>({boxShadow:`0 8px 16px 0 rgba(${lg(e,`primary`)} / 0.24)`,"&:hover":{boxShadow:`0 8px 16px 0 rgba(${lg(e,`primary`)} / 0.32)`}})}},MuiInputBase:$_(e),MuiInput:tv(e),MuiTextField:cv(e),MuiOutlinedInput:iv(e),MuiFilledInput:sv(e),MuiInputLabel:lv(e),MuiFormHelperText:uv(e),MuiSelect:{styleOverrides:{select:{minHeight:`auto`,display:`flex`,alignItems:`center`},icon:{right:10,width:18,height:18,top:`calc(50% - 9px)`}}},MuiNativeSelect:{styleOverrides:{icon:{right:10,width:18,height:18,top:`calc(50% - 9px)`}}},MuiAutocomplete:Ay(e),...Fee(e),MuiPaper:{defaultProps:{elevation:0},styleOverrides:{root:{backgroundImage:`none`},rounded:{borderRadius:n*1.5},outlined:({theme:e})=>({borderColor:`rgba(${sg(e)} / 0.16)`}),elevation1:({theme:e})=>({boxShadow:`0 1px 2px 0 rgba(${sg(e,`900`)} / 0.08)`}),elevation2:({theme:e})=>({boxShadow:`0 2px 4px 0 rgba(${sg(e,`900`)} / 0.08), 0 1px 2px 0 rgba(${sg(e,`900`)} / 0.04)`}),elevation3:({theme:e})=>({boxShadow:`0 4px 8px 0 rgba(${sg(e,`900`)} / 0.08), 0 2px 4px 0 rgba(${sg(e,`900`)} / 0.04)`}),elevation4:({theme:e})=>({boxShadow:`0 8px 16px 0 rgba(${sg(e,`900`)} / 0.08), 0 4px 8px 0 rgba(${sg(e,`900`)} / 0.04)`}),elevation5:({theme:e})=>({boxShadow:`0 12px 24px -4px rgba(${sg(e,`900`)} / 0.08), 0 8px 16px 0 rgba(${sg(e,`900`)} / 0.04)`})}},...Pee(e),MuiDrawer:{styleOverrides:{paper:{backgroundImage:`none`}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:({theme:e})=>({backgroundImage:`none`,borderBottom:`1px solid ${cg(e,`divider`)}`})}},MuiTabs:Mee(e),MuiTab:Nee(e),MuiBreadcrumbs:{styleOverrides:{separator:{marginLeft:8,marginRight:8}}},MuiAccordion:{defaultProps:{disableGutters:!0,elevation:0},styleOverrides:{root:({theme:e})=>({border:`1px solid ${cg(e,`divider`)}`,borderRadius:n,"&::before":{display:`none`},"&:first-of-type":{borderTopLeftRadius:n,borderTopRightRadius:n},"&:last-of-type":{borderBottomLeftRadius:n,borderBottomRightRadius:n},"&:not(:last-of-type)":{borderBottom:0},[`&.${Nh.expanded}`]:{margin:0,"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0}},[`&.${Nh.disabled}`]:{backgroundColor:`transparent`}})}},MuiAccordionSummary:{styleOverrides:{root:({theme:e})=>({minHeight:48*r,padding:`0 ${16*r}px`,fontWeight:500,[`&.${Ph.expanded}`]:{minHeight:48*r},[`&.${Ph.disabled}`]:{opacity:.5}}),content:{margin:`${12*r}px 0`,[`&.${Ph.expanded}`]:{margin:`${12*r}px 0`}},expandIconWrapper:({theme:e})=>({color:cg(e,`text.secondary`)})}},MuiAccordionDetails:{styleOverrides:{root:({theme:e})=>({padding:`${8*r}px ${16*r}px ${16*r}px`,borderTop:`1px solid ${cg(e,`divider`)}`})}},MuiStep:{styleOverrides:{root:{padding:0}}},MuiStepLabel:{styleOverrides:{label:({theme:e})=>({fontSize:e.typography.pxToRem(14),fontWeight:500,[`&.${Xh.active}`]:{fontWeight:600,color:cg(e,`text.primary`)},[`&.${Xh.completed}`]:{fontWeight:500,color:cg(e,`text.primary`)}}),iconContainer:{paddingRight:12*r}}},MuiStepConnector:{styleOverrides:{line:({theme:e})=>({borderColor:cg(e,`divider`),borderTopWidth:2})}},MuiStepIcon:{styleOverrides:{root:({theme:e})=>({color:cg(e,`grey.300`),[`&.${Gh.active}`]:{color:cg(e,`primary.main`)},[`&.${Gh.completed}`]:{color:cg(e,`primary.main`)}}),text:{fontWeight:600,fontSize:`0.75rem`}}},MuiStepContent:{styleOverrides:{root:({theme:e})=>({borderLeft:`2px solid ${cg(e,`divider`)}`,marginLeft:11,paddingLeft:20,paddingRight:8})}},MuiPagination:{defaultProps:{shape:`rounded`,size:t===`compact`?`small`:`medium`}},MuiPaginationItem:{styleOverrides:{root:({theme:e})=>({borderRadius:n-2,fontWeight:500,[`&.${ig.selected}`]:{fontWeight:600}}),outlined:({theme:e})=>({borderColor:cg(e,`divider`),[`&.${ig.selected}`]:{backgroundColor:`rgba(${lg(e,`primary`)} / 0.08)`,borderColor:cg(e,`primary.main`)}}),text:({theme:e})=>({[`&.${ig.selected}`]:{backgroundColor:cg(e,`primary.main`),color:cg(e,`primary.contrastText`),"&:hover":{backgroundColor:cg(e,`primary.dark`)}}}),previousNext:({theme:e})=>({borderRadius:n-2,"&:hover":{backgroundColor:cg(e,`action.hover`)}}),firstLast:({theme:e})=>({borderRadius:n-2})}},MuiChip:Hg(e),MuiAvatar:{styleOverrides:{root:({theme:e})=>({fontSize:e.typography.pxToRem(14),fontWeight:600})}},MuiBadge:{styleOverrides:{badge:{fontWeight:600}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{tooltip:({theme:e})=>({borderRadius:n-2,fontSize:e.typography.pxToRem(12),padding:`6px 12px`,backgroundColor:cg(e,`grey.800`)}),arrow:({theme:e})=>({color:cg(e,`grey.800`)})}},MuiTableContainer:{styleOverrides:{root:{position:`relative`}}},MuiTableHead:{styleOverrides:{root:({theme:e})=>({[`& .${Uh.head}`]:{fontWeight:600,backgroundColor:e.vars?.palette.background.neutral||e.palette.grey[50],color:cg(e,`text.secondary`)}})}},MuiTableCell:{styleOverrides:{root:({theme:e})=>({padding:`${12*r}px ${16*r}px`,borderBottomColor:`rgba(${sg(e)} / 0.2)`}),sizeSmall:{padding:`${8*r}px ${12*r}px`}}},MuiTableRow:{styleOverrides:{root:({theme:e})=>({[`&:last-child .${Uh.root}`]:{borderBottom:`none`},[`&.${Lh.selected}`]:{backgroundColor:`rgba(${lg(e,`primary`)} / 0.08)`,"&:hover":{backgroundColor:`rgba(${lg(e,`primary`)} / 0.12)`}}})}},MuiTablePagination:{defaultProps:{slotProps:{select:{name:`table-pagination-select`},actions:{previousButton:{size:`small`},nextButton:{size:`small`}}}},styleOverrides:{root:({theme:e})=>({borderTop:`1px solid ${cg(e,`divider`)}`}),toolbar:{minHeight:44*r,paddingLeft:8*r,paddingRight:8*r},actions:{marginRight:8},select:{display:`flex`,alignItems:`center`},selectIcon:{right:4,width:16,height:16,top:`calc(50% - 8px)`},selectLabel:({theme:e})=>({...e.typography.body2}),displayedRows:({theme:e})=>({...e.typography.body2})}},MuiAlert:{styleOverrides:{root:({theme:e})=>({borderRadius:n,variants:[`success`,`error`,`warning`,`info`].map(t=>({props:{severity:t,variant:`standard`},style:{backgroundColor:`rgba(${lg(e,t)} / 0.08)`,color:e.vars?.palette[t].dark||e.palette[t].dark}}))})}},MuiAlertTitle:{styleOverrides:{root:({theme:e})=>({fontWeight:600,fontSize:e.typography.pxToRem(14),marginBottom:e.spacing(.5),lineHeight:1.5})}},MuiSnackbar:{styleOverrides:{root:{"& .MuiPaper-root":{borderRadius:n}}}},MuiLinearProgress:{styleOverrides:{root:{borderRadius:4,height:6}}},MuiCircularProgress:{defaultProps:{size:t===`compact`?20:t===`comfortable`?32:24}},MuiSlider:{defaultProps:{size:t===`compact`?`small`:`medium`},styleOverrides:{root:({theme:e})=>({"&.Mui-disabled":{color:cg(e,`action.disabled`)}}),rail:({theme:e})=>({opacity:.32,backgroundColor:cg(e,`grey.500`)}),track:{border:`none`},thumb:({theme:e})=>({width:t===`compact`?16:20,height:t===`compact`?16:20,backgroundColor:cg(e,`common.white`),border:`2px solid currentColor`,boxShadow:`0 1px 3px 0 rgba(${sg(e,`900`)} / 0.2)`,"&::before":{display:`none`},"&:hover, &.Mui-focusVisible":{boxShadow:`0 0 0 8px rgba(${lg(e,`primary`)} / 0.16)`},"&.Mui-active":{boxShadow:`0 0 0 12px rgba(${lg(e,`primary`)} / 0.24)`}}),valueLabel:({theme:e})=>({borderRadius:n-2,backgroundColor:cg(e,`grey.800`),"&::before":{display:`none`}}),mark:({theme:e})=>({width:4,height:4,borderRadius:`50%`,backgroundColor:cg(e,`grey.400`)}),markActive:({theme:e})=>({backgroundColor:cg(e,`common.white`)})}},MuiRating:{defaultProps:{size:t===`compact`?`small`:`medium`,emptyIcon:void 0},styleOverrides:{root:({theme:e})=>({"&.Mui-disabled":{opacity:.48}}),icon:{fontSize:`inherit`},iconEmpty:({theme:e})=>({color:cg(e,`grey.300`)}),iconFilled:({theme:e})=>({color:cg(e,`warning.main`)}),iconHover:({theme:e})=>({color:cg(e,`warning.dark`)}),sizeSmall:{fontSize:`1.125rem`},sizeMedium:{fontSize:`1.5rem`},sizeLarge:{fontSize:`2rem`}}},MuiCheckbox:Lv(e),MuiRadio:Rv(e),MuiSwitch:zv(e),MuiFormControl:Hv(e),MuiFormControlLabel:Vv(e),MuiFormLabel:Bv(e),MuiList:{styleOverrides:{root:{paddingTop:t===`compact`?4:8,paddingBottom:t===`compact`?4:8}}},MuiListItemButton:{styleOverrides:{root:({theme:e})=>({borderRadius:n-2,margin:2,"&.Mui-selected":{backgroundColor:`rgba(${lg(e,`primary`)} / 0.08)`,fontWeight:500},"&:hover":{backgroundColor:cg(e,`action.hover`)}})}},MuiListItemIcon:{styleOverrides:{root:{minWidth:40}}},MuiListItemText:{styleOverrides:{root:{marginTop:0,marginBottom:0},primary:({theme:e})=>({fontSize:e.typography.pxToRem(t===`compact`?13:14),fontWeight:500,lineHeight:1.5}),secondary:({theme:e})=>({fontSize:e.typography.pxToRem(t===`compact`?12:13),lineHeight:1.5,color:cg(e,`text.secondary`)})}},MuiMenu:{styleOverrides:{paper:({theme:e})=>({borderRadius:n,marginTop:4,boxShadow:`0 0 2px 0 rgba(${sg(e)} / 0.24), -20px 20px 40px -4px rgba(${sg(e)} / 0.24)`}),list:{padding:4}}},MuiMenuItem:{styleOverrides:{root:({theme:e})=>({...e.typography.body2,borderRadius:n-2,margin:2,padding:`${8*r}px ${12*r}px`,"&:not(:last-of-type)":{marginBottom:4},"&.Mui-selected":{fontWeight:500,backgroundColor:cg(e,`action.selected`),"&:hover":{backgroundColor:cg(e,`action.hover`)}}})}},MuiPopover:{styleOverrides:{paper:({theme:e})=>({borderRadius:n,boxShadow:`0 0 2px 0 rgba(${sg(e)} / 0.24), -20px 20px 40px -4px rgba(${sg(e)} / 0.24)`})}},MuiDivider:{styleOverrides:{root:({theme:e})=>({borderColor:`rgba(${sg(e)} / 0.2)`})}},MuiSkeleton:{styleOverrides:{rounded:{borderRadius:n}}},MuiBackdrop:{styleOverrides:{root:({theme:e})=>({backgroundColor:`rgba(${sg(e,`900`)} / 0.5)`})}},MuiLink:{defaultProps:{underline:`hover`},styleOverrides:{root:({theme:e})=>({color:cg(e,`primary.main`),textDecorationColor:`transparent`,transition:`color 150ms, text-decoration-color 150ms`,"&:hover":{textDecorationColor:`currentColor`}})}},MuiToggleButton:{styleOverrides:{root:({theme:e})=>({borderRadius:n,fontWeight:500,textTransform:`none`,border:`1px solid ${cg(e,`divider`)}`,[`&.${rg.selected}`]:{backgroundColor:`rgba(${lg(e,`primary`)} / 0.08)`,borderColor:cg(e,`primary.main`),color:cg(e,`primary.main`),"&:hover":{backgroundColor:`rgba(${lg(e,`primary`)} / 0.16)`}},[`&.${rg.disabled}`]:{borderColor:cg(e,`action.disabledBackground`)}}),sizeSmall:{padding:`${4*r}px ${8*r}px`,fontSize:`0.8125rem`},sizeMedium:{padding:`${6*r}px ${12*r}px`},sizeLarge:{padding:`${8*r}px ${16*r}px`,fontSize:`0.9375rem`}}},MuiToggleButtonGroup:{styleOverrides:{root:{gap:4},grouped:({theme:e})=>({"&:not(:first-of-type)":{marginLeft:0,borderLeft:`1px solid ${cg(e,`divider`)}`,[`&.${rg.selected}`]:{borderLeftColor:cg(e,`primary.main`)}}})}},MuiTimeline:{styleOverrides:{root:{padding:0}}},MuiTimelineItem:{styleOverrides:{root:{"&::before":{display:`none`}}}},MuiTimelineDot:{styleOverrides:{root:({theme:e})=>({boxShadow:`none`,borderColor:`transparent`,padding:3}),outlined:({theme:e})=>({borderColor:cg(e,`divider`),backgroundColor:`transparent`})}},MuiTimelineConnector:{styleOverrides:{root:({theme:e})=>({backgroundColor:cg(e,`divider`),width:2})}},MuiTimelineContent:{styleOverrides:{root:({theme:e})=>({...e.typography.body2,padding:`${6*r}px ${16*r}px`})}},MuiDataGrid:jy(e),...My(e),MuiTreeItem:{styleOverrides:{root:{},content:({theme:e})=>({borderRadius:n-2,padding:`${4*r}px ${8*r}px`,"&.Mui-selected":{backgroundColor:`rgba(${lg(e,`primary`)} / 0.08)`,"&:hover":{backgroundColor:`rgba(${lg(e,`primary`)} / 0.16)`},"&.Mui-focused":{backgroundColor:`rgba(${lg(e,`primary`)} / 0.12)`}},"&:hover":{backgroundColor:cg(e,`action.hover`)}}),label:({theme:e})=>({...e.typography.body2,fontWeight:500}),iconContainer:{width:`auto`}}},MuiCssBaseline:{styleOverrides:e=>({html:{scrollBehavior:`smooth`},body:{scrollbarWidth:`thin`,scrollbarColor:`rgba(${sg(e)} / 0.4) rgba(${sg(e)} / 0.08)`},"*, *::before, *::after":{boxSizing:`border-box`},"#root, #__next":{height:`100%`},"::-webkit-scrollbar":{width:6,height:6},"::-webkit-scrollbar-track":{backgroundColor:`transparent`},"::-webkit-scrollbar-thumb":{backgroundColor:`rgba(${sg(e)} / 0.4)`,borderRadius:3},"::-webkit-scrollbar-thumb:hover":{backgroundColor:`rgba(${sg(e)} / 0.6)`},'html[data-vision="protanopia"]:not([data-showcase])':{filter:`url("#protanopia-filter")`},'html[data-vision="deuteranopia"]:not([data-showcase])':{filter:`url("#deuteranopia-filter")`},'html[data-vision="tritanopia"]:not([data-showcase])':{filter:`url("#tritanopia-filter")`},'html[data-vision="achromatopsia"]:not([data-showcase])':{filter:`url("#achromatopsia-filter")`}})}}}var Py=[`none`,`0px 1px 2px 0px rgba(0, 0, 0, 0.05)`,`0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px -1px rgba(0, 0, 0, 0.1)`,`0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1)`,`0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1)`,`0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 8px 10px -6px rgba(0, 0, 0, 0.1)`,`0px 25px 50px -12px rgba(0, 0, 0, 0.25)`,`0px 2px 4px rgba(0, 0, 0, 0.08)`,`0px 4px 8px rgba(0, 0, 0, 0.08)`,`0px 8px 16px rgba(0, 0, 0, 0.08)`,`0px 12px 24px rgba(0, 0, 0, 0.08)`,`0px 16px 32px rgba(0, 0, 0, 0.08)`,`0px 20px 40px rgba(0, 0, 0, 0.08)`,`0px 4px 6px -2px rgba(0, 0, 0, 0.05), 0px 10px 15px -3px rgba(0, 0, 0, 0.1)`,`0px 10px 10px -5px rgba(0, 0, 0, 0.04), 0px 20px 25px -5px rgba(0, 0, 0, 0.1)`,`0px 20px 20px -10px rgba(0, 0, 0, 0.04), 0px 25px 50px -12px rgba(0, 0, 0, 0.25)`,`0px 0px 0px 1px rgba(0, 0, 0, 0.05)`,`0px 1px 2px rgba(0, 0, 0, 0.05), 0px 0px 0px 1px rgba(0, 0, 0, 0.05)`,`0px 2px 4px rgba(0, 0, 0, 0.05), 0px 0px 0px 1px rgba(0, 0, 0, 0.05)`,`0px 0px 0px 3px rgba(66, 153, 225, 0.5)`,`0px 0px 0px 3px rgba(72, 187, 120, 0.5)`,`0px 0px 0px 3px rgba(245, 101, 101, 0.5)`,`inset 0px 2px 4px rgba(0, 0, 0, 0.06)`,`inset 0px 4px 6px rgba(0, 0, 0, 0.1)`,`inset 0px 0px 0px 1px rgba(0, 0, 0, 0.1)`];function Fy(e,t=1){return t===1?[...Py]:Py.map(e=>e===`none`?e:e.replace(/rgba\((\d+),\s*(\d+),\s*(\d+),\s*([\d.]+)\)/g,(e,n,r,i,a)=>`rgba(${n}, ${r}, ${i}, ${Math.min(1,parseFloat(a)*t).toFixed(2)})`))}Py[0],Py[1],Py[2],Py[3],Py[4],Py[5],Py[6],Py[8],Py[9],Py[14],Py[15],Py[19],Py[20],Py[21],Py[22];var Iy={fontFamily:{primary:`"Nunito Sans Variable", "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`,secondary:`"Exo 2", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`,mono:`"JetBrains Mono", "Fira Code", Consolas, Monaco, monospace`},fontWeights:{light:300,regular:400,medium:500,semiBold:600,bold:700}},Ly={xs:`0.75rem`,sm:`0.875rem`,md:`1rem`,lg:`1.125rem`,xl:`1.25rem`,"2xl":`1.5rem`,"3xl":`1.875rem`,"4xl":`2.25rem`,"5xl":`3rem`,"6xl":`3.75rem`},Ry={tight:1.25,snug:1.375,normal:1.5,relaxed:1.625,loose:2};function zy(e){let{fontFamily:t,fontWeights:n}=e;return{fontFamily:t.primary,fontWeightLight:n.light,fontWeightRegular:n.regular,fontWeightMedium:n.medium,fontWeightBold:n.bold,h1:{fontFamily:t.secondary||t.primary,fontWeight:n.bold,fontSize:Ly[`5xl`],lineHeight:Ry.tight,letterSpacing:`-0.025em`},h2:{fontFamily:t.secondary||t.primary,fontWeight:n.bold,fontSize:Ly[`4xl`],lineHeight:Ry.tight,letterSpacing:`-0.025em`},h3:{fontFamily:t.secondary||t.primary,fontWeight:n.semiBold,fontSize:Ly[`3xl`],lineHeight:Ry.snug,letterSpacing:`-0.02em`},h4:{fontFamily:t.secondary||t.primary,fontWeight:n.semiBold,fontSize:Ly[`2xl`],lineHeight:Ry.snug,letterSpacing:`-0.02em`},h5:{fontFamily:t.secondary||t.primary,fontWeight:n.semiBold,fontSize:Ly.xl,lineHeight:Ry.snug},h6:{fontFamily:t.secondary||t.primary,fontWeight:n.semiBold,fontSize:Ly.lg,lineHeight:Ry.snug},body1:{fontSize:Ly.md,lineHeight:Ry.relaxed},body2:{fontSize:Ly.sm,lineHeight:Ry.relaxed},subtitle1:{fontSize:Ly.md,fontWeight:n.medium,lineHeight:Ry.normal},subtitle2:{fontSize:Ly.sm,fontWeight:n.medium,lineHeight:Ry.normal},caption:{fontSize:Ly.xs,lineHeight:Ry.normal},overline:{fontSize:Ly.xs,fontWeight:n.semiBold,lineHeight:Ry.normal,textTransform:`uppercase`,letterSpacing:`0.08em`},button:{fontSize:Ly.sm,fontWeight:n.semiBold,lineHeight:Ry.normal,textTransform:`none`}}}var By={50:`#FBF7E8`,100:`#F5EBC9`,200:`#EDDFA8`,300:`#E3D086`,400:`#D9C164`,500:`#C9A227`,600:`#A88820`,700:`#876D1A`,800:`#665314`,900:`#45380E`,950:`#241D07`},Vy={50:`#F5EEF5`,100:`#E8D5E8`,200:`#D4B3D4`,300:`#B38AB3`,400:`#996399`,500:`#6B3A6B`,600:`#5A305A`,700:`#4A284A`,800:`#3A1F3A`,900:`#2A172A`,950:`#1A0F1A`},Hy={50:`#FAF9F7`,100:`#F5F3F0`,200:`#E8E4DE`,300:`#D4CEC4`,400:`#B8AFA0`,500:`#9C917C`,600:`#7A6F5C`,700:`#5C5244`,800:`#3E362C`,900:`#201C16`,950:`#100E0B`},Uy={50:`#F9E8E8`,100:`#F0C9C9`,200:`#E4A3A3`,300:`#D57C7C`,400:`#C65656`,500:`#B82E2E`,600:`#9A2626`,700:`#7D1E1E`,800:`#5F1717`,900:`#42100F`,950:`#250908`},Wy={50:`#FEF8E6`,100:`#FCEFC2`,200:`#F9E394`,300:`#F5D566`,400:`#F0C538`,500:`#D4A012`,600:`#B1850F`,700:`#8E6B0C`,800:`#6B5009`,900:`#483606`,950:`#251B03`},Gy={50:`#E8F4E8`,100:`#C9E4C9`,200:`#A3D1A3`,300:`#7DBD7D`,400:`#56A956`,500:`#2E8B2E`,600:`#267426`,700:`#1E5D1E`,800:`#174717`,900:`#0F300F`,950:`#081A08`},Ky={50:`#E8F0F6`,100:`#C9DCEB`,200:`#A3C4DD`,300:`#7DACCE`,400:`#5694C0`,500:`#2E7AB8`,600:`#26669A`,700:`#1E527C`,800:`#173E5E`,900:`#0F2A40`,950:`#081520`},qy={50:`#F9F5FF`,100:`#F0E6FF`,200:`#E3CFFF`,300:`#CEA9FF`,400:`#B574FF`,500:`#BD93F9`,600:`#A57EE0`,700:`#8666B8`,800:`#6E5394`,900:`#5B4579`,950:`#3B2D4D`},Jy={50:`#FFF5F7`,100:`#FFE5EA`,200:`#FFCCD6`,300:`#FFA4B5`,400:`#FF6E8B`,500:`#FF79C6`,600:`#E85AA1`,700:`#C4407F`,800:`#A2356A`,900:`#87305B`,950:`#4E1533`},Yy={50:`#ECFFFE`,100:`#CFFFFE`,200:`#A5FFFE`,300:`#67FFFC`,400:`#22FFF5`,500:`#8BE9FD`,600:`#06D1E7`,700:`#0BA6BC`,800:`#118497`,900:`#136C7D`,950:`#05484E`};qy[500];var Xy={50:`#FFF4ED`,100:`#FFE4D4`,200:`#FFC9A8`,300:`#FFAA71`,400:`#FF8038`,500:`#FF5F11`,600:`#F04006`,700:`#C72D07`,800:`#9E250E`,900:`#7F230F`,950:`#450E05`},Zy={50:`#FFF1F2`,100:`#FFE1E3`,200:`#FFC8CD`,300:`#FFA1A9`,400:`#FF6B78`,500:`#FA3D4D`,600:`#E81B2D`,700:`#C31323`,800:`#A11421`,900:`#861721`,950:`#49060C`};Xy[500];var Qy={50:`#EEF2FF`,100:`#E0E7FF`,200:`#C7D2FE`,300:`#A5B4FC`,400:`#818CF8`,500:`#6366F1`,600:`#4F46E5`,700:`#4338CA`,800:`#3730A3`,900:`#312E81`,950:`#1E1B4B`},$y={50:`#F8FAFC`,100:`#F1F5F9`,200:`#E2E8F0`,300:`#CBD5E1`,400:`#94A3B8`,500:`#64748B`,600:`#475569`,700:`#334155`,800:`#1E293B`,900:`#0F172A`,950:`#020617`};Qy[500];var eb={50:`#FFFBEB`,100:`#FEF3C7`,200:`#FDE68A`,300:`#FCD34D`,400:`#FBBF24`,500:`#F59E0B`,600:`#D97706`,700:`#B45309`,800:`#92400E`,900:`#78350F`,950:`#451A03`},tb={50:`#F0FDFA`,100:`#CCFBF1`,200:`#99F6E4`,300:`#5EEAD4`,400:`#2DD4BF`,500:`#14B8A6`,600:`#0D9488`,700:`#0F766E`,800:`#115E59`,900:`#134E4A`,950:`#042F2E`};eb[500];var nb={50:`#FAFAFA`,100:`#F5F5F5`,200:`#E5E5E5`,300:`#D4D4D4`,400:`#A3A3A3`,500:`#737373`,600:`#525252`,700:`#404040`,800:`#262626`,900:`#171717`,950:`#0A0A0A`},rb={50:`#F8FAFC`,100:`#F1F5F9`,200:`#E2E8F0`,300:`#CBD5E1`,400:`#94A3B8`,500:`#64748B`,600:`#475569`,700:`#334155`,800:`#1E293B`,900:`#0F172A`,950:`#020617`};nb[500];var ib={name:`arctic`,displayName:`Arctic`,description:`A cool, crisp blue theme inspired by northern landscapes.`,preferredMode:`light`,lightPalette:{primary:{lighter:`#D6E9F8`,light:`#7BC1F0`,main:`#1E88E5`,dark:`#1565C0`,darker:`#0D47A1`,contrastText:`#FFFFFF`},secondary:{lighter:`#E3F2FD`,light:`#90CAF9`,main:`#42A5F5`,dark:`#1E88E5`,darker:`#1565C0`,contrastText:`#FFFFFF`},info:{lighter:`#E0F7FA`,light:`#80DEEA`,main:`#26C6DA`,dark:`#00ACC1`,darker:`#00838F`,contrastText:`#FFFFFF`},success:{lighter:`#E8F5E9`,light:`#A5D6A7`,main:`#66BB6A`,dark:`#43A047`,darker:`#2E7D32`,contrastText:`#FFFFFF`},warning:{lighter:`#FFF8E1`,light:`#FFE082`,main:`#FFB300`,dark:`#FF8F00`,darker:`#FF6F00`,contrastText:`#212121`},error:{lighter:`#FFEBEE`,light:`#EF9A9A`,main:`#EF5350`,dark:`#E53935`,darker:`#C62828`,contrastText:`#FFFFFF`},grey:{50:`#FAFBFC`,100:`#F4F6F8`,200:`#E4E9ED`,300:`#D0D7DE`,400:`#AFB8C1`,500:`#8C959F`,600:`#6E7781`,700:`#57606A`,800:`#424A53`,900:`#32383F`,950:`#272C31`},common:{black:`#1B1F23`,white:`#FFFFFF`},background:{default:`#E8F0F6`,paper:`#F1F9FB`,neutral:`#E4E9ED`},text:{primary:`#1B1F23`,secondary:`#57606A`,disabled:`#8C959F`}},darkPalette:{primary:{lighter:`#D6E9F8`,light:`#7BC1F0`,main:`#42A5F5`,dark:`#1E88E5`,darker:`#1565C0`,contrastText:`#FFFFFF`},secondary:{lighter:`#E3F2FD`,light:`#90CAF9`,main:`#64B5F6`,dark:`#42A5F5`,darker:`#1E88E5`,contrastText:`#FFFFFF`},info:{lighter:`#E0F7FA`,light:`#80DEEA`,main:`#4DD0E1`,dark:`#26C6DA`,darker:`#00ACC1`,contrastText:`#FFFFFF`},success:{lighter:`#E8F5E9`,light:`#A5D6A7`,main:`#81C784`,dark:`#66BB6A`,darker:`#4CAF50`,contrastText:`#FFFFFF`},warning:{lighter:`#FFF8E1`,light:`#FFE082`,main:`#FFCA28`,dark:`#FFB300`,darker:`#FFA000`,contrastText:`#212121`},error:{lighter:`#FFEBEE`,light:`#EF9A9A`,main:`#EF5350`,dark:`#F44336`,darker:`#E53935`,contrastText:`#FFFFFF`},grey:{50:`#0D1117`,100:`#161B22`,200:`#21262D`,300:`#30363D`,400:`#484F58`,500:`#6E7681`,600:`#8B949E`,700:`#B1BAC4`,800:`#C9D1D9`,900:`#F0F6FC`},common:{black:`#010409`,white:`#FFFFFF`},background:{default:`#0D1117`,paper:`#161B22`,neutral:`#21262D`},text:{primary:`#F0F6FC`,secondary:`#B1BAC4`,disabled:`#6E7681`}},typography:{fontFamily:{primary:`"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`,secondary:`"Poppins", -apple-system, BlinkMacSystemFont, sans-serif`,mono:`"Fira Code", Consolas, Monaco, monospace`},fontWeights:{light:300,regular:400,medium:500,semiBold:600,bold:700}},colorGroup:{key:`arctic`,main:`#1E88E5`}};function ab(e){switch(e){case`luxury`:return{lightPalette:hp({primary:By,secondary:Vy,info:Ky,success:Gy,warning:Wy,error:Uy,grey:Hy,mode:`light`,backgroundDefault:`#FAF7F5`,paperColor:`#FDFBFB`}),darkPalette:hp({primary:By,secondary:Vy,info:Ky,success:Gy,warning:Wy,error:Uy,grey:Hy,mode:`dark`}),colorGroup:{key:`luxury`,main:By[500],palette:By}};case`arctic`:return{lightPalette:ob(ib.lightPalette,`light`),darkPalette:ob(ib.darkPalette,`dark`),colorGroup:{key:`arctic`,main:`#1E88E5`,palette:ep}};case`dracula`:return{lightPalette:hp({primary:qy,secondary:Jy,info:Yy,success:tp,warning:ip,error:rp,grey:$f,mode:`light`,backgroundDefault:`#F5F0FA`,paperColor:`#FAF7FC`}),darkPalette:hp({primary:qy,secondary:Jy,info:Yy,success:tp,warning:ip,error:rp,grey:$f,mode:`dark`,backgroundDefault:`#282A36`,paperColor:`#21222C`}),colorGroup:{key:`dracula`,main:qy[500],palette:qy}};case`ember`:return{lightPalette:hp({primary:Xy,secondary:Zy,info:ap,success:tp,warning:ip,error:Zy,grey:$f,mode:`light`,backgroundDefault:`#FFF5F0`,paperColor:`#FFFAF7`}),darkPalette:hp({primary:Xy,secondary:Zy,info:ap,success:tp,warning:ip,error:Zy,grey:$f,mode:`dark`,backgroundDefault:`#1A0A05`,paperColor:`#2D1610`}),colorGroup:{key:`ember`,main:Xy[500],palette:Xy}};case`midnight`:return{lightPalette:hp({primary:Qy,secondary:np,info:ap,success:tp,warning:ip,error:rp,grey:$y,mode:`light`,backgroundDefault:`#F0F0F8`,paperColor:`#F7F7FC`}),darkPalette:hp({primary:Qy,secondary:np,info:ap,success:tp,warning:ip,error:rp,grey:$y,mode:`dark`,backgroundDefault:$y[950],paperColor:$y[900]}),colorGroup:{key:`midnight`,main:Qy[500],palette:Qy}};case`retro`:return{lightPalette:hp({primary:eb,secondary:tb,info:ap,success:tb,warning:eb,error:rp,grey:$f,mode:`light`,backgroundDefault:`#F8F1E0`,paperColor:`#FDF8EE`}),darkPalette:hp({primary:eb,secondary:tb,info:ap,success:tb,warning:eb,error:rp,grey:$f,mode:`dark`,backgroundDefault:`#1A1814`,paperColor:`#252218`}),colorGroup:{key:`retro`,main:eb[500],palette:eb}};case`minimal`:return{lightPalette:hp({primary:rb,secondary:nb,info:ap,success:tp,warning:ip,error:rp,grey:nb,mode:`light`,backgroundDefault:`#FAFAFA`,paperColor:`#FFFFFF`}),darkPalette:hp({primary:rb,secondary:nb,info:ap,success:tp,warning:ip,error:rp,grey:nb,mode:`dark`,backgroundDefault:`#0A0A0A`,paperColor:`#171717`}),colorGroup:{key:`minimal`,main:rb[500],palette:rb}};case`nature`:return{lightPalette:hp({primary:tp,secondary:np,info:ap,success:tp,warning:ip,error:rp,grey:$f,mode:`light`,backgroundDefault:`#EEF6EE`,paperColor:`#F5FAF5`}),darkPalette:hp({primary:tp,secondary:np,info:ap,success:tp,warning:ip,error:rp,grey:$f,mode:`dark`,backgroundDefault:`#0A1A0A`,paperColor:`#0F1F0F`}),colorGroup:{key:`nature`,main:tp[500],palette:tp}};case`default-dark`:return{lightPalette:gp,darkPalette:_p,colorGroup:{key:`default-dark`,main:ep[400],palette:ep}};default:return{lightPalette:gp,darkPalette:_p,colorGroup:{key:`default-light`,main:ep[500],palette:ep}}}}function ob(e,t){let n=e.grey;return{mode:t,primary:qf(e.primary),secondary:qf(e.secondary),info:qf(e.info),success:qf(e.success),warning:qf(e.warning),error:qf(e.error),grey:n,common:e.common,background:e.background,text:e.text}}var sb=[{key:`default-light`,main:ep[500],palette:ep},{key:`default-dark`,main:ep[400],palette:ep},{key:`green`,main:tp[500],palette:tp},{key:`purple`,main:np[500],palette:np},{key:`red`,main:rp[500],palette:rp},{key:`orange`,main:ip[500],palette:ip},{key:`lightBlue`,main:ap[500],palette:ap},{key:`luxury`,main:By[500],palette:By},{key:`dracula`,main:qy[500],palette:qy},{key:`ember`,main:Xy[500],palette:Xy},{key:`midnight`,main:Qy[500],palette:Qy},{key:`retro`,main:eb[500],palette:eb},{key:`minimal`,main:rb[500],palette:rb},{key:`nature`,main:tp[500],palette:tp},{key:`arctic`,main:`#1E88E5`,palette:ep}];function cb(e,t,n){if(!t)return e;let r=sb.find(e=>e.main===t);if(r?.palette){let i=qf(n===`dark`?{lighter:r.palette[950],light:r.palette[700],main:t,dark:r.palette[300],darker:r.palette[100],contrastText:r.palette[950]}:{lighter:r.palette[50],light:r.palette[400],main:t,dark:r.palette[600],darker:r.palette[900],contrastText:r.palette[50]});return{...e,primary:i}}let i=Xf(t),a=qf(n===`dark`?{lighter:i[950],light:i[700],main:i[400],dark:i[300],darker:i[100],contrastText:i[950]}:{lighter:i[50],light:i[400],main:i[500],dark:i[600],darker:i[900],contrastText:i[50]});return{...e,primary:a}}function lb(e){switch(e){case`compact`:return .75;case`comfortable`:return 1.25;default:return 1}}function ub(e,t){let n={...e};for(let r of Object.keys(t)){let i=e[r],a=t[r];typeof a==`object`&&a&&!Array.isArray(a)&&typeof a!=`function`&&typeof i==`object`&&i&&!Array.isArray(i)&&typeof i!=`function`?n[r]=ub(i,a):n[r]=a}return n}function db(e={}){let{preset:t=`default-light`,mode:n=`light`,direction:r=`ltr`,locale:i=`enUS`,primaryColor:a=null,cssVarPrefix:o=`prism`,density:s=`standard`,borderRadius:c=8,responsiveFonts:l=!0,contrast:u=`default`,overrides:d}=e,f=ab(t),p=cb(f.lightPalette,a,`light`),m=cb(f.darkPalette,a,`dark`);u===`high`&&(p={...p,background:{...p.background,default:$f[200],paper:`#FFFFFF`}},m={...m,background:{...m.background,default:`#000000`,paper:$f[900]}});let h=lb(s),g={density:s,borderRadius:c,buttonStyle:`contained`},_={prefix:o,colorSchemeSelector:`data-${o}-color-scheme`,enabled:!0},v=Bf[i]||ad,y=p.primary?.main||ep[500],b=Fy(y),x=Fy(y,.4),S=n===`dark`?`dark`:`light`,C=S===`dark`?m:p,w=S===`dark`?x:b,T={cssVariables:{cssVarPrefix:o,colorSchemeSelector:_.colorSchemeSelector},palette:C,shadows:w,typography:zy({fontFamily:{primary:e.fontFamily?`"${e.fontFamily}", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`:Iy.fontFamily.primary,secondary:Iy.fontFamily.secondary,mono:Iy.fontFamily.mono},fontWeights:Iy.fontWeights}),direction:r,shape:{borderRadius:c},mixins:Zg,components:Ny(g)},E=pu(d?ub(T,d):T,v);l&&(E=xu(E));let D=E;return D.prism={preset:t,mode:n,direction:r,density:s,densityMultiplier:h,cssVariables:_},D}tp[500];var fb=typeof bp({})==`function`,pb=(e,t)=>({WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,boxSizing:`border-box`,WebkitTextSizeAdjust:`100%`,...t&&!e.vars&&{colorScheme:e.palette.mode}}),mb=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),hb=(e,t=!1)=>{let n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector==`function`&&Object.entries(e.colorSchemes).forEach(([t,r])=>{let i=e.getColorSchemeSelector(t);i.startsWith(`@`)?n[i]={":root":{colorScheme:r.palette?.mode}}:n[i.replace(/\s*&/,``)]={colorScheme:r.palette?.mode}});let r={html:pb(e,t),"*, *::before, *::after":{boxSizing:`inherit`},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...mb(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n},i=e.components?.MuiCssBaseline?.styleOverrides;return i&&(r=[r,i]),r},gb=`mui-ecs`,_b=e=>{let t=hb(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${gb})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([t,r])=>{let i=e.getColorSchemeSelector(t);i.startsWith(`@`)?n[i]={[`:root:not(:has(.${gb}))`]:{colorScheme:r.palette?.mode}}:n[i.replace(/\s*&/,``)]={[`&:not(:has(.${gb}))`]:{colorScheme:r.palette?.mode}}}),t},vb=bp(fb?({theme:e,enableColorScheme:t})=>hb(e,t):({theme:e})=>_b(e));function yb(e){let{children:t,enableColorScheme:n=!1}=J({props:e,name:`MuiCssBaseline`});return(0,B.jsxs)(C.Fragment,{children:[fb&&(0,B.jsx)(vb,{enableColorScheme:n}),!fb&&!n&&(0,B.jsx)(`span`,{className:gb,style:{display:`none`}}),t]})}function bb(e,...t){let n=new URL(`https://mui.com/x/production-error`);return n.searchParams.set(`code`,e.toString()),t.forEach(e=>n.searchParams.append(`args[]`,e)),`MUI X error #${e}; visit ${n} for the full message.`}var xb=[`localeText`],Sb=C.createContext(null),Cb=function(e){let{localeText:t}=e,n=om(e,xb),{adapter:r,localeText:i}=C.useContext(Sb)??{adapter:void 0,localeText:void 0},{children:a,dateAdapter:o,dateFormats:s,dateLibInstance:c,adapterLocale:l,localeText:u}=wu({props:n,name:`MuiLocalizationProvider`}),d=C.useMemo(()=>Zn({},u,i,t),[u,i,t]),f=C.useMemo(()=>{if(!o)return r||null;let e=new o({locale:l,formats:s,instance:c});if(!e.isMUIAdapter)throw Error(bb(143));return e},[o,l,s,c,r]),p=C.useMemo(()=>f?{minDate:f.date(`1900-01-01T00:00:00.000`),maxDate:f.date(`2099-12-31T00:00:00.000`)}:null,[f]),m=C.useMemo(()=>({adapter:f,defaultDates:p,localeText:d}),[p,f,d]);return(0,B.jsx)(Sb.Provider,{value:m,children:a})},wb=r(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),Tb=r(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekOfYear=r()})(e,(function(){var e=`week`,t=`year`;return function(n,r,i){var a=r.prototype;a.week=function(n){if(n===void 0&&(n=null),n!==null)return this.add(7*(n-this.week()),`day`);var r=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var a=i(this).startOf(t).add(1,t).date(r),o=i(this).endOf(e);if(a.isBefore(o))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,`millisecond`),c=this.diff(s,e,!0);return c<0?i(this).startOf(`week`).week():Math.ceil(c)},a.weeks=function(e){return e===void 0&&(e=null),this.week(e)}}}))})),Eb=r(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),Db=r(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(e,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`};return function(t,n,r){var i=n.prototype,a=i.format;r.en.formats=e,i.format=function(t){t===void 0&&(t=`YYYY-MM-DDTHH:mm:ssZ`);var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var a=i&&i.toUpperCase();return r||n[i]||e[i]||n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,n===void 0?{}:n);return a.call(this,r)}}}))})),Ob=r(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isBetween=r()})(e,(function(){return function(e,t,n){t.prototype.isBetween=function(e,t,r,i){var a=n(e),o=n(t),s=(i||=`()`)[0]===`(`,c=i[1]===`)`;return(s?this.isAfter(a,r):!this.isBefore(a,r))&&(c?this.isBefore(o,r):!this.isAfter(o,r))||(s?this.isBefore(a,r):!this.isAfter(a,r))&&(c?this.isAfter(o,r):!this.isBefore(o,r))}}}))})),kb=r(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),Ab=e(wb(),1),jb=e(Tb(),1),Mb=e(Eb(),1),Nb=e(Db(),1),Pb=e(Ob(),1),Fb=e(kb(),1);Ab.default.extend(Nb.default),Ab.default.extend(jb.default),Ab.default.extend(Pb.default),Ab.default.extend(Fb.default);var Ib={YY:`year`,YYYY:{sectionType:`year`,contentType:`digit`,maxLength:4},M:{sectionType:`month`,contentType:`digit`,maxLength:2},MM:`month`,MMM:{sectionType:`month`,contentType:`letter`},MMMM:{sectionType:`month`,contentType:`letter`},D:{sectionType:`day`,contentType:`digit`,maxLength:2},DD:`day`,Do:{sectionType:`day`,contentType:`digit-with-letter`},d:{sectionType:`weekDay`,contentType:`digit`,maxLength:2},dd:{sectionType:`weekDay`,contentType:`letter`},ddd:{sectionType:`weekDay`,contentType:`letter`},dddd:{sectionType:`weekDay`,contentType:`letter`},A:`meridiem`,a:`meridiem`,H:{sectionType:`hours`,contentType:`digit`,maxLength:2},HH:`hours`,h:{sectionType:`hours`,contentType:`digit`,maxLength:2},hh:`hours`,m:{sectionType:`minutes`,contentType:`digit`,maxLength:2},mm:`minutes`,s:{sectionType:`seconds`,contentType:`digit`,maxLength:2},ss:`seconds`},Lb={year:`YYYY`,month:`MMMM`,monthShort:`MMM`,dayOfMonth:`D`,dayOfMonthFull:`Do`,weekday:`dddd`,weekdayShort:`dd`,hours24h:`HH`,hours12h:`hh`,meridiem:`A`,minutes:`mm`,seconds:`ss`,fullDate:`ll`,keyboardDate:`L`,shortDate:`MMM D`,normalDate:`D MMMM`,normalDateWithWeekday:`ddd, MMM D`,fullTime12h:`hh:mm A`,fullTime24h:`HH:mm`,keyboardDateTime12h:`L hh:mm A`,keyboardDateTime24h:`L HH:mm`};function Rb(){throw Error(bb(138))}function zb(){throw Error(bb(139))}var Bb=class{isMUIAdapter=!0;isTimezoneCompatible=!0;lib=`dayjs`;escapedCharacters={start:`[`,end:`]`};formatTokenMap=Ib;constructor({locale:e,formats:t}={}){this.locale=e,this.formats=Zn({},Lb,t),Ab.default.extend(Mb.default)}setLocaleToValue=e=>{let t=this.getCurrentLocaleCode();return t===e.locale()?e:e.locale(t)};hasUTCPlugin=()=>Ab.default.utc!==void 0;hasTimezonePlugin=()=>Ab.default.tz!==void 0;isSame=(e,t,n)=>{let r=this.setTimezone(t,this.getTimezone(e));return e.format(n)===r.format(n)};cleanTimezone=e=>{switch(e){case`default`:return;case`system`:return Ab.default.tz.guess();default:return e}};createSystemDate=e=>this.setLocaleToValue((0,Ab.default)(e));createUTCDate=e=>(this.hasUTCPlugin()||Rb(),this.setLocaleToValue(Ab.default.utc(e)));createTZDate=(e,t)=>{this.hasUTCPlugin()||Rb(),this.hasTimezonePlugin()||zb();let n=e!==void 0&&!e.endsWith(`Z`);return this.setLocaleToValue((0,Ab.default)(e).tz(this.cleanTimezone(t),n))};getLocaleFormats=()=>{let e=Ab.default.Ls,t=e[this.locale||`en`];return t===void 0&&(t=e.en),t.formats};adjustOffset=e=>{if(!this.hasTimezonePlugin())return e;let t=this.getTimezone(e);if(t!==`UTC`){let n=e.tz(this.cleanTimezone(t),!0);if(n.$offset===(e.$offset??0))return e;e.$offset=n.$offset}return e};date=(e,t=`default`)=>e===null?null:t===`UTC`?this.createUTCDate(e):t===`system`||t===`default`&&!this.hasTimezonePlugin()?this.createSystemDate(e):this.createTZDate(e,t);getInvalidDate=()=>(0,Ab.default)(new Date(`Invalid date`));getTimezone=e=>{if(this.hasTimezonePlugin()){let t=e.$x?.$timezone;if(t)return t}return this.hasUTCPlugin()&&e.isUTC()?`UTC`:`system`};setTimezone=(e,t)=>{if(this.getTimezone(e)===t)return e;if(t===`UTC`)return this.hasUTCPlugin()||Rb(),e.utc();if(t===`system`)return e.local();if(!this.hasTimezonePlugin()){if(t===`default`)return e;zb()}return this.setLocaleToValue(Ab.default.tz(e,this.cleanTimezone(t)))};toJsDate=e=>e.toDate();parse=(e,t)=>e===``?null:(0,Ab.default)(e,t,this.locale,!0);getCurrentLocaleCode=()=>this.locale||`en`;is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||``);expandFormat=e=>{let t=this.getLocaleFormats(),n=e=>e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(e,t,n)=>t||n.slice(1));return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(e,r,i)=>{let a=i&&i.toUpperCase();return r||t[i]||n(t[a])})};isValid=e=>e==null?!1:e.isValid();format=(e,t)=>this.formatByString(e,this.formats[t]);formatByString=(e,t)=>this.setLocaleToValue(e).format(t);formatNumber=e=>e;isEqual=(e,t)=>e===null&&t===null?!0:e===null||t===null?!1:e.toDate().getTime()===t.toDate().getTime();isSameYear=(e,t)=>this.isSame(e,t,`YYYY`);isSameMonth=(e,t)=>this.isSame(e,t,`YYYY-MM`);isSameDay=(e,t)=>this.isSame(e,t,`YYYY-MM-DD`);isSameHour=(e,t)=>e.isSame(t,`hour`);isAfter=(e,t)=>e>t;isAfterYear=(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()>t.utc():e.isAfter(t,`year`);isAfterDay=(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()>t.utc():e.isAfter(t,`day`);isBefore=(e,t)=>e<t;isBeforeYear=(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()<t.utc():e.isBefore(t,`year`);isBeforeDay=(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()<t.utc():e.isBefore(t,`day`);isWithinRange=(e,[t,n])=>e>=t&&e<=n;startOfYear=e=>this.adjustOffset(e.startOf(`year`));startOfMonth=e=>this.adjustOffset(e.startOf(`month`));startOfWeek=e=>this.adjustOffset(this.setLocaleToValue(e).startOf(`week`));startOfDay=e=>this.adjustOffset(e.startOf(`day`));endOfYear=e=>this.adjustOffset(e.endOf(`year`));endOfMonth=e=>this.adjustOffset(e.endOf(`month`));endOfWeek=e=>this.adjustOffset(this.setLocaleToValue(e).endOf(`week`));endOfDay=e=>this.adjustOffset(e.endOf(`day`));addYears=(e,t)=>this.adjustOffset(e.add(t,`year`));addMonths=(e,t)=>this.adjustOffset(e.add(t,`month`));addWeeks=(e,t)=>this.adjustOffset(e.add(t,`week`));addDays=(e,t)=>this.adjustOffset(e.add(t,`day`));addHours=(e,t)=>this.adjustOffset(e.add(t,`hour`));addMinutes=(e,t)=>this.adjustOffset(e.add(t,`minute`));addSeconds=(e,t)=>this.adjustOffset(e.add(t,`second`));getYear=e=>e.year();getMonth=e=>e.month();getDate=e=>e.date();getHours=e=>e.hour();getMinutes=e=>e.minute();getSeconds=e=>e.second();getMilliseconds=e=>e.millisecond();setYear=(e,t)=>this.adjustOffset(e.set(`year`,t));setMonth=(e,t)=>this.adjustOffset(e.set(`month`,t));setDate=(e,t)=>this.adjustOffset(e.set(`date`,t));setHours=(e,t)=>this.adjustOffset(e.set(`hour`,t));setMinutes=(e,t)=>this.adjustOffset(e.set(`minute`,t));setSeconds=(e,t)=>this.adjustOffset(e.set(`second`,t));setMilliseconds=(e,t)=>this.adjustOffset(e.set(`millisecond`,t));getDaysInMonth=e=>e.daysInMonth();getWeekArray=e=>{let t=this.startOfWeek(this.startOfMonth(e)),n=this.endOfWeek(this.endOfMonth(e)),r=0,i=t,a=[];for(;i<n;){let e=Math.floor(r/7);a[e]=a[e]||[],a[e].push(i),i=this.addDays(i,1),r+=1}return a};getWeekNumber=e=>e.week();getDayOfWeek(e){return e.day()+1}getYearRange=([e,t])=>{let n=this.startOfYear(e),r=this.endOfYear(t),i=[],a=n;for(;this.isBefore(a,r);)i.push(a),a=this.addYears(a,1);return i}},Vb=r(((e,t)=>{var n;function r(e,t){var n=[],r=0;function i(e){return n.push(e),t}function a(){return n[r++]}return{tokenize:function(t){return t.replace(e,i)},detokenize:function(e){return e.replace(RegExp(`(`+t+`)`,`g`),a)}}}function i(){var e="`TMP`",t="`TMPLTR`",n="`TMPRTL`",i="`NOFLIP_SINGLE`",a="`NOFLIP_CLASS`",o="`COMMENT`",s=`[^\\u0020-\\u007e]`,c=`(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)`,l=`(?:[0-9]*\\.[0-9]+|[0-9]+)`,u=`(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)`,d=`direction\\s*:\\s*`,f=`[!#$%&*-~]`,p=`['"]?\\s*`,m=`(^|[^a-zA-Z])`,h=`[^\\}]*?`,g=`\\/\\*\\!?\\s*@noflip\\s*\\*\\/`,_=`\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/`,v=`(?:`+c+`|\\\\[^\\r\\n\\f0-9a-f])`,y=`(?:[_a-z]|`+s+`|`+v+`)`,b=`(?:[_a-z0-9-]|`+s+`|`+v+`)`,x=`-?`+y+b+`*`,S=l+`(?:\\s*`+u+`|`+x+`)?`,C=`((?:-?`+S+`)|(?:inherit|auto))`,w=`(?:calc\\((?:`+(`(?:(?:\\(|\\)|\\t| )|`+(`(?:-?`+l+`(?:\\s*`+u+`)?)`)+`|(?:\\+|\\-|\\*|\\/)){3,}`)+`)\\))`,T=`((?:-?`+S+`)|(?:inherit|auto)|`+w+`)`,E=`((?:margin|padding|border-width)\\s*:\\s*)`,D=`((?:-color|border-style)\\s*:\\s*)`,O=`(#?`+b+`+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))`,k=`(?:`+f+`|`+s+`|`+v+`)*?`,A=`(?![a-zA-Z])`,j=`(?!(`+b+`|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|"[^"]*"|`+o+`)*?{)`,M=`(?!`+k+p+`\\))`,N=`(?=`+k+p+`\\))`,P=`(\\s*(?:!important\\s*)?[;}])`,F=/`TMP`/g,I=/`TMPLTR`/g,L=/`TMPRTL`/g,ee=new RegExp(_,`gi`),te=RegExp(`(`+g+j+`[^;}]+;?)`,`gi`),ne=RegExp(`(`+g+h+`})`,`gi`),re=RegExp(`(`+d+`)ltr`,`gi`),ie=RegExp(`(`+d+`)rtl`,`gi`),R=RegExp(m+`(left)`+A+M+j,`gi`),ae=RegExp(m+`(right)`+A+M+j,`gi`),oe=RegExp(m+`(left)`+N,`gi`),se=RegExp(m+`(right)`+N,`gi`),ce=/(:dir\( *)ltr( *\))/g,le=/(:dir\( *)rtl( *\))/g,ue=RegExp(m+`(ltr)`+N,`gi`),z=RegExp(m+`(rtl)`+N,`gi`),de=RegExp(m+`([ns]?)e-resize`,`gi`),fe=RegExp(m+`([ns]?)w-resize`,`gi`),pe=RegExp(E+T+`(\\s+)`+T+`(\\s+)`+T+`(\\s+)`+T+P,`gi`),me=RegExp(D+O+`(\\s+)`+O+`(\\s+)`+O+`(\\s+)`+O+P,`gi`),he=RegExp(`(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)(`+S+`)`,`gi`),ge=RegExp(`(background-position-x\\s*:\\s*)(-?`+l+`%)`,`gi`),_e=RegExp(`(border-radius\\s*:\\s*)`+C+`(?:(?:\\s+`+C+`)(?:\\s+`+C+`)?(?:\\s+`+C+`)?)?(?:(?:(?:\\s*\\/\\s*)`+C+`)(?:\\s+`+C+`)?(?:\\s+`+C+`)?(?:\\s+`+C+`)?)?`+P,`gi`),ve=RegExp(`(box-shadow\\s*:\\s*(?:inset\\s*)?)`+C,`gi`),ye=RegExp(`(text-shadow\\s*:\\s*)`+C+`(\\s*)`+O,`gi`),be=RegExp(`(text-shadow\\s*:\\s*)`+O+`(\\s*)`+C,`gi`),xe=RegExp(`(text-shadow\\s*:\\s*)`+C,`gi`),Se=RegExp(`(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)`+C+`(\\s*\\))`,`gi`),Ce=RegExp(`(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)`+C+`((?:\\s*,\\s*`+C+`){0,2}\\s*\\))`,`gi`);function we(e,t,n){var r,i;return n.slice(-1)===`%`&&(r=n.indexOf(`.`),r===-1?n=100-parseFloat(n)+`%`:(i=n.length-r-2,n=100-parseFloat(n),n=n.toFixed(i)+`%`)),t+n}function Te(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]];break}return e.join(` `)}function Ee(e,t){var n,r=[].slice.call(arguments),i=r.slice(2,6).filter(function(e){return e}),a=r.slice(6,10).filter(function(e){return e}),o=r[10]||``;return n=a.length?Te(i)+` / `+Te(a):Te(i),t+n+o}function De(e){return parseFloat(e)===0?e:e[0]===`-`?e.slice(1):`-`+e}function Oe(e,t,n){return t+De(n)}function ke(e,t,n,r,i){return t+n+De(r)+i}function Ae(e,t,n,r,i){return t+n+r+De(i)}return{transform:function(s,c){var l=new r(te,i),u=new r(ne,a),d=new r(ee,o);return s=d.tokenize(u.tokenize(l.tokenize(s.replace("`",`%60`)))),c.transformDirInUrl&&(s=s.replace(ce,`$1`+t+`$2`).replace(le,`$1`+n+`$2`).replace(ue,`$1`+e).replace(z,`$1ltr`).replace(F,`rtl`).replace(I,`ltr`).replace(L,`rtl`)),c.transformEdgeInUrl&&(s=s.replace(oe,`$1`+e).replace(se,`$1left`).replace(F,`right`)),s=s.replace(re,`$1`+e).replace(ie,`$1ltr`).replace(F,`rtl`).replace(R,`$1`+e).replace(ae,`$1left`).replace(F,`right`).replace(de,`$1$2`+e).replace(fe,`$1$2e-resize`).replace(F,`w-resize`).replace(_e,Ee).replace(ve,Oe).replace(ye,Ae).replace(be,Ae).replace(xe,Oe).replace(Se,ke).replace(Ce,ke).replace(pe,`$1$2$3$8$5$6$7$4$9`).replace(me,`$1$2$3$8$5$6$7$4$9`).replace(he,we).replace(ge,we),s=l.detokenize(u.detokenize(d.detokenize(s))),s}}}n=new i,t!==void 0&&t.exports?e.transform=function(e,t,r){var i;return typeof t==`object`?i=t:(i={},typeof t==`boolean`&&(i.transformDirInUrl=t),typeof r==`boolean`&&(i.transformEdgeInUrl=r)),n.transform(e,i)}:typeof window<`u`&&(window.cssjanus=n)})),Hb=`comm`,Ub=`rule`,Wb=`decl`,Gb=`@import`,Kb=Math.abs,qb=String.fromCharCode;function Jb(e){return e.trim()}function Yb(e,t,n){return e.replace(t,n)}function Xb(e,t){return e.charCodeAt(t)|0}function Zb(e,t,n){return e.slice(t,n)}function Qb(e){return e.length}function $b(e){return e.length}function ex(e,t){return t.push(e),e}var tx=1,nx=1,rx=0,ix=0,ax=0,ox=``;function sx(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:tx,column:nx,length:o,return:``,siblings:s}}function cx(){return ax}function lx(){return ax=ix>0?Xb(ox,--ix):0,nx--,ax===10&&(nx=1,tx--),ax}function ux(){return ax=ix<rx?Xb(ox,ix++):0,nx++,ax===10&&(nx=1,tx++),ax}function dx(){return Xb(ox,ix)}function fx(){return ix}function px(e,t){return Zb(ox,e,t)}function mx(e){switch(e){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 hx(e){return tx=nx=1,rx=Qb(ox=e),ix=0,[]}function gx(e){return ox=``,e}function _x(e){return Jb(px(ix-1,bx(e===91?e+2:e===40?e+1:e)))}function vx(e){for(;(ax=dx())&&ax<33;)ux();return mx(e)>2||mx(ax)>3?``:` `}function yx(e,t){for(;--t&&ux()&&!(ax<48||ax>102||ax>57&&ax<65||ax>70&&ax<97););return px(e,fx()+(t<6&&dx()==32&&ux()==32))}function bx(e){for(;ux();)switch(ax){case e:return ix;case 34:case 39:e!==34&&e!==39&&bx(ax);break;case 40:e===41&&bx(e);break;case 92:ux();break}return ix}function xx(e,t){for(;ux()&&e+ax!==57&&!(e+ax===84&&dx()===47););return`/*`+px(t,ix-1)+`*`+qb(e===47?e:ux())}function Sx(e){for(;!mx(dx());)ux();return px(e,ix)}function Cx(e){return gx(wx(``,null,null,null,[``],e=hx(e),0,[0],e))}function wx(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=0,b=``,x=i,S=a,C=r,w=b;g;)switch(m=y,y=ux()){case 40:m!=108&&Xb(w,d-1)==58?(v++,w+=`(`):w+=_x(y);break;case 41:v--,w+=`)`;break;case 34:case 39:case 91:w+=_x(y);break;case 9:case 10:case 13:case 32:if(v>0){w+=qb(y);break}w+=vx(m);break;case 92:w+=yx(fx()-1,7);continue;case 47:switch(dx()){case 42:case 47:ex(Ex(xx(ux(),fx()),t,n,c),c),(mx(m||1)==5||mx(dx()||1)==5)&&Qb(w)&&Zb(w,-1,void 0)!==` `&&(w+=` `);break;default:w+=`/`}break;case 123*h:s[l++]=Qb(w)*_;case 125*h:case 59:case 0:if(v>0&&y){w+=qb(y);break}switch(y){case 0:case 125:g=0;case 59+u:_==-1&&(w=Yb(w,/\f/g,``)),p>0&&(Qb(w)-d||h===0)&&ex(p>32?Dx(w+`;`,r,n,d-1,c):Dx(Yb(w,` `,``)+`;`,r,n,d-2,c),c);break;case 59:w+=`;`;default:if(ex(C=Tx(w,t,n,l,u,i,s,b,x=[],S=[],d,a),a),y===123)if(u===0)wx(w,t,C,C,x,a,d,s,S);else{switch(f){case 99:if(Xb(w,3)===110)break;case 108:if(Xb(w,2)===97)break;default:u=0;case 100:case 109:case 115:}u?wx(e,C,C,r&&ex(Tx(e,C,C,0,0,i,s,b,i,x=[],d,S),S),i,S,d,s,r?x:S):wx(w,C,C,C,[``],S,0,s,S)}}l=u=p=0,h=_=1,b=w=``,d=o;break;case 58:d=1+Qb(w),p=m;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&lx()==125)continue}switch(w+=qb(y),y*h){case 38:_=u>0?1:(w+=`\f`,-1);break;case 44:if(v>0)break;s[l++]=(Qb(w)-1)*_,_=1;break;case 64:dx()===45&&(w+=_x(ux())),f=dx(),u=d=Qb(b=w+=Sx(fx())),y++;break;case 45:m===45&&Qb(w)==2&&(h=0)}}return a}function Tx(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=$b(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=Zb(e,f+1,f=Kb(g=o[h])),b=e;v<m;++v)(b=Jb(g>0?p[v]+` `+y:Yb(y,/&\f/g,p[v])))&&(c[_++]=b);return sx(e,t,n,i===0?Ub:s,c,l,u,d)}function Ex(e,t,n,r){return sx(e,t,n,Hb,qb(cx()),Zb(e,2,-2),0,r)}function Dx(e,t,n,r,i){return sx(e,t,n,Wb,Zb(e,0,r),Zb(e,r+1,-1),r,i)}function Ox(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}var kx=e(Vb());function Ax(e,t,n){switch(e.type){case Gb:case Wb:case Hb:return e.return=e.return||e.value;case Ub:e.value=Array.isArray(e.props)?e.props.join(`,`):e.props,Array.isArray(e.children)&&e.children.forEach(function(e){e.type===`comm`&&(e.children=e.value)})}var r=Ox(Array.prototype.concat(e.children),Ax);return Qb(r)?e.return=e.value+`{`+r+`}`:``}function jx(e,t,n,r){if(e.type===`@keyframes`||e.type===`@supports`||e.type===`rule`&&(!e.parent||e.parent.type===`@media`||e.parent.type===`rule`)){var i=kx.transform(Ax(e,t,n));e.children=i?Cx(i)[0].children:[],e.return=``}}Object.defineProperty(jx,`name`,{value:`stylisRTLPlugin`});var Mx={paths:{components:`src/components/prism`,blocks:`src/blocks`,themes:`src/theme`,utils:`src/lib/prism`,types:`src/types/prism`},registries:{default:`@omnitron-dev/prism-registry`,registries:{}},theme:{preset:`default`,mode:`light`,direction:`ltr`,cssVariables:{prefix:`prism`,colorSchemeSelector:`data-theme`,enabled:!0}},style:{framework:`mui`,cssVariables:!0,prefix:`prism`},features:{darkMode:!0,rtl:!1,i18n:!1,analytics:!1},typescript:!0},Nx=(0,C.createContext)(null);Nx.displayName=`PrismContext`;function Px(){let e=(0,C.useContext)(Nx);if(!e)throw Error(`usePrismContext must be used within a PrismProvider`);return e}function Fx(e){return H(`MuiAlert`,e)}var Ix=U(`MuiAlert`,[`root`,`action`,`icon`,`message`,`filled`,`colorSuccess`,`colorInfo`,`colorWarning`,`colorError`,`outlined`,`standard`]),Lx=Dp((0,B.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`}),`SuccessOutlined`),Rx=Dp((0,B.jsx)(`path`,{d:`M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z`}),`ReportProblemOutlined`),zx=Dp((0,B.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`}),`ErrorOutline`),Bx=Dp((0,B.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`}),`InfoOutlined`),Vx=e=>{let{variant:t,color:n,severity:r,classes:i}=e;return Gc({root:[`root`,`color${q(n||r)}`,`${t}`],icon:[`icon`],message:[`message`],action:[`action`]},Fx,i)},Hx=K(Mh,{name:`MuiAlert`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant]]}})(xp(({theme:e})=>{let t=e.palette.mode===`light`?e.darken:e.lighten,n=e.palette.mode===`light`?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:`transparent`,display:`flex`,padding:`6px 16px`,variants:[...Object.entries(e.palette).filter(Xp([`light`])).map(([r])=>({props:{colorSeverity:r,variant:`standard`},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${Ix.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Xp([`light`])).map(([n])=>({props:{colorSeverity:n,variant:`outlined`},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${Ix.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(Xp([`dark`])).map(([t])=>({props:{colorSeverity:t,variant:`filled`},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:e.palette.mode===`dark`?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)}}}))]}})),Ux=K(`div`,{name:`MuiAlert`,slot:`Icon`})({marginRight:12,padding:`7px 0`,display:`flex`,fontSize:22,opacity:.9}),Wx=K(`div`,{name:`MuiAlert`,slot:`Message`})({padding:`8px 0`,minWidth:0,overflow:`auto`}),Gx=K(`div`,{name:`MuiAlert`,slot:`Action`})({display:`flex`,alignItems:`flex-start`,padding:`4px 0 0 16px`,marginLeft:`auto`,marginRight:-8}),Kx={success:(0,B.jsx)(Lx,{fontSize:`inherit`}),warning:(0,B.jsx)(Rx,{fontSize:`inherit`}),error:(0,B.jsx)(zx,{fontSize:`inherit`}),info:(0,B.jsx)(Bx,{fontSize:`inherit`})},qx=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiAlert`}),{action:r,children:i,className:a,closeText:o=`Close`,color:s,icon:c,iconMapping:l=Kx,onClose:u,role:d=`alert`,severity:f=`success`,slotProps:p={},slots:m={},variant:h=`standard`,...g}=n,_={...n,color:s,severity:f,variant:h,colorSeverity:s||f},v=Vx(_),y={slots:m,slotProps:p},[b,x]=Y(`root`,{ref:t,shouldForwardComponentProp:!0,className:V(v.root,a),elementType:Hx,externalForwardedProps:{...y,...g},ownerState:_,additionalProps:{role:d,elevation:0}}),[S,C]=Y(`icon`,{className:v.icon,elementType:Ux,externalForwardedProps:y,ownerState:_}),[w,T]=Y(`message`,{className:v.message,elementType:Wx,externalForwardedProps:y,ownerState:_}),[E,D]=Y(`action`,{className:v.action,elementType:Gx,externalForwardedProps:y,ownerState:_}),[O,k]=Y(`closeButton`,{elementType:oh,externalForwardedProps:y,ownerState:_}),[A,j]=Y(`closeIcon`,{elementType:Dy,externalForwardedProps:y,ownerState:_});return(0,B.jsxs)(b,{...x,children:[c===!1?null:(0,B.jsx)(S,{...C,children:c||l[f]||Kx[f]}),(0,B.jsx)(w,{...T,children:i}),r==null?null:(0,B.jsx)(E,{...D,children:r}),r==null&&u?(0,B.jsx)(E,{...D,children:(0,B.jsx)(O,{size:`small`,"aria-label":o,title:o,color:`inherit`,onClick:u,...k,children:(0,B.jsx)(A,{fontSize:`small`,...j})})}):null]})});function Jx(e){return H(`MuiAppBar`,e)}U(`MuiAppBar`,[`root`,`positionFixed`,`positionAbsolute`,`positionSticky`,`positionStatic`,`positionRelative`,`colorDefault`,`colorPrimary`,`colorSecondary`,`colorInherit`,`colorTransparent`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`]);var Yx=e=>{let{color:t,position:n,classes:r}=e;return Gc({root:[`root`,`color${q(t)}`,`position${q(n)}`]},Jx,r)},Xx=(e,t)=>e?`${e.replace(`)`,``)}, ${t})`:t,Zx=K(Mh,{name:`MuiAppBar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`position${q(n.position)}`],t[`color${q(n.color)}`]]}})(xp(({theme:e})=>({display:`flex`,flexDirection:`column`,width:`100%`,boxSizing:`border-box`,flexShrink:0,variants:[{props:{position:`fixed`},style:{position:`fixed`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0,"@media print":{position:`absolute`}}},{props:{position:`absolute`},style:{position:`absolute`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0}},{props:{position:`sticky`},style:{position:`sticky`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0}},{props:{position:`static`},style:{position:`static`}},{props:{position:`relative`},style:{position:`relative`}},{props:{color:`inherit`},style:{"--AppBar-color":`inherit`,color:`var(--AppBar-color)`}},{props:{color:`default`},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles(`dark`,{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(Xp([`contrastText`])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:e=>e.enableColorOnDark===!0&&![`inherit`,`transparent`].includes(e.color),style:{backgroundColor:`var(--AppBar-background)`,color:`var(--AppBar-color)`}},{props:e=>e.enableColorOnDark===!1&&![`inherit`,`transparent`].includes(e.color),style:{backgroundColor:`var(--AppBar-background)`,color:`var(--AppBar-color)`,...e.applyStyles(`dark`,{backgroundColor:e.vars?Xx(e.vars.palette.AppBar.darkBg,`var(--AppBar-background)`):null,color:e.vars?Xx(e.vars.palette.AppBar.darkColor,`var(--AppBar-color)`):null})}},{props:{color:`transparent`},style:{"--AppBar-background":`transparent`,"--AppBar-color":`inherit`,backgroundColor:`var(--AppBar-background)`,color:`var(--AppBar-color)`,...e.applyStyles(`dark`,{backgroundImage:`none`})}}]}))),Qx=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiAppBar`}),{className:r,color:i=`primary`,enableColorOnDark:a=!1,position:o=`fixed`,...s}=n,c={...n,color:i,position:o,enableColorOnDark:a};return(0,B.jsx)(Zx,{square:!0,component:`header`,ownerState:c,elevation:4,className:V(Yx(c).root,r,o===`fixed`&&`mui-fixed`),ref:t,...s})}),$x=Dp((0,B.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`}),`Person`);function eS(e){return H(`MuiAvatar`,e)}U(`MuiAvatar`,[`root`,`colorDefault`,`circular`,`rounded`,`square`,`img`,`fallback`]);var tS=e=>{let{classes:t,variant:n,colorDefault:r}=e;return Gc({root:[`root`,n,r&&`colorDefault`],img:[`img`],fallback:[`fallback`]},eS,t)},nS=K(`div`,{name:`MuiAvatar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(xp(({theme:e})=>({position:`relative`,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:`50%`,overflow:`hidden`,userSelect:`none`,variants:[{props:{variant:`rounded`},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:`square`},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,"@media (forced-colors: active)":{boxSizing:`border-box`,border:`1px solid ButtonBorder`},...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles(`dark`,{backgroundColor:e.palette.grey[600]})}}}]}))),rS=K(`img`,{name:`MuiAvatar`,slot:`Img`})({width:`100%`,height:`100%`,textAlign:`center`,objectFit:`cover`,color:`transparent`,textIndent:1e4}),iS=K($x,{name:`MuiAvatar`,slot:`Fallback`})({width:`75%`,height:`75%`});function aS(e,t,n,r){let[i,a]=C.useState(!1);return C.useEffect(()=>{if(!e&&!t)return;a(!1);let i=!0,o=new Image;return o.onload=()=>{i&&a(`loaded`)},o.onerror=()=>{i&&a(`error`)},o.crossOrigin=n,o.referrerPolicy=r,o.src=e,t&&(o.srcset=t),()=>{i=!1}},[n,r,e,t]),i}var oS=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiAvatar`}),{alt:r,children:i,className:a,component:o=`div`,slots:s={},slotProps:c={},sizes:l,src:u,srcSet:d,variant:f=`circular`,...p}=n,m=null,h={...n,component:o,variant:f},{crossOrigin:g,referrerPolicy:_}=(typeof c.img==`function`?c.img(h):c.img)??{},v=aS(u,d,g,_),y=u||d,b=y&&v!==`error`;h.colorDefault=!b,delete h.ownerState;let x=tS(h),S={slots:s,slotProps:c},[C,w]=Y(`root`,{ref:t,className:V(x.root,a),elementType:nS,externalForwardedProps:{...S,component:o,...p},ownerState:h}),[T,E]=Y(`img`,{className:x.img,elementType:rS,externalForwardedProps:S,additionalProps:{alt:r,src:u,srcSet:d,sizes:l},ownerState:h}),[D,O]=Y(`fallback`,{className:x.fallback,elementType:iS,externalForwardedProps:S,shouldForwardComponentProp:!0,ownerState:h});return m=b?(0,B.jsx)(T,{...E}):i||i===0?i:y&&r?r[0]:(0,B.jsx)(D,{...O}),(0,B.jsx)(C,{...w,children:m})}),sS={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},cS={opacity:0,visibility:`hidden`},lS=C.forwardRef(function(e,t){let n=Cu(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:o,easing:s,in:c,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:m,style:h,timeout:g=r,..._}=e,v=C.useRef(null),y=Gp(v,hy(o),t),b=mh(v,d),x=mh(v,(e,t)=>{sh(e);let r=gh({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=mh(v,u),w=mh(v,m),T=mh(v,e=>{let t=gh({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),E=mh(v,e=>{e.style.transition=``,p&&p(e)});return(0,B.jsx)(vm,{appear:a,in:c,nodeRef:v,onEnter:x,onEntered:S,onEntering:b,onExit:T,onExited:E,onExiting:w,addEndListener:e=>{i&&i(v.current,e)},timeout:g,..._,children:(e,{ownerState:t,...n})=>{let r=hh(e,c,sS,cS,h,o.props.style);return C.cloneElement(o,{style:r,ref:y,...n})}})});function uS(e){return H(`MuiBackdrop`,e)}U(`MuiBackdrop`,[`root`,`invisible`]);var dS=e=>{let{classes:t,invisible:n}=e;return Gc({root:[`root`,n&&`invisible`]},uS,t)},fS=K(`div`,{name:`MuiBackdrop`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.invisible&&t.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`}}]}),pS=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiBackdrop`}),{children:r,className:i,component:a=`div`,invisible:o=!1,open:s,slotProps:c={},slots:l={},transitionDuration:u,...d}=n,f={...n,component:a,invisible:o},p=dS(f),m={component:a,slots:l,slotProps:c},[h,g]=Y(`root`,{elementType:fS,externalForwardedProps:m,className:V(p.root,i),ownerState:f}),[_,v]=Y(`transition`,{elementType:lS,externalForwardedProps:m,ownerState:f});return(0,B.jsx)(_,{in:s,timeout:u,...d,...v,children:(0,B.jsx)(h,{...g,ref:t,children:r})})});function mS(e){let{badgeContent:t,invisible:n=!1,max:r=99,showZero:i=!1}=e,a=py({badgeContent:t,max:r}),o=n;n===!1&&t===0&&!i&&(o=!0);let{badgeContent:s,max:c=r}=o?a:e,l=s&&Number(s)>c?`${c}+`:s;return{badgeContent:s,invisible:o,max:c,displayValue:l}}function hS(e){return H(`MuiBadge`,e)}var gS=U(`MuiBadge`,[`root`,`badge`,`dot`,`standard`,`anchorOriginTopRight`,`anchorOriginBottomRight`,`anchorOriginTopLeft`,`anchorOriginBottomLeft`,`invisible`,`colorError`,`colorInfo`,`colorPrimary`,`colorSecondary`,`colorSuccess`,`colorWarning`,`overlapRectangular`,`overlapCircular`,`anchorOriginTopLeftCircular`,`anchorOriginTopLeftRectangular`,`anchorOriginTopRightCircular`,`anchorOriginTopRightRectangular`,`anchorOriginBottomLeftCircular`,`anchorOriginBottomLeftRectangular`,`anchorOriginBottomRightCircular`,`anchorOriginBottomRightRectangular`]),_S=10,vS=4,yS=e=>{let{color:t,anchorOrigin:n,invisible:r,overlap:i,variant:a,classes:o={}}=e;return Gc({root:[`root`],badge:[`badge`,a,r&&`invisible`,`anchorOrigin${q(n.vertical)}${q(n.horizontal)}`,`anchorOrigin${q(n.vertical)}${q(n.horizontal)}${q(i)}`,`overlap${q(i)}`,t!==`default`&&`color${q(t)}`]},hS,o)},bS=K(`span`,{name:`MuiBadge`,slot:`Root`})({position:`relative`,display:`inline-flex`,verticalAlign:`middle`,flexShrink:0}),xS=K(`span`,{name:`MuiBadge`,slot:`Badge`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${q(n.anchorOrigin.vertical)}${q(n.anchorOrigin.horizontal)}${q(n.overlap)}`],n.color!==`default`&&t[`color${q(n.color)}`],n.invisible&&t.invisible]}})(xp(({theme:e})=>({display:`flex`,flexDirection:`row`,flexWrap:`wrap`,justifyContent:`center`,alignContent:`center`,alignItems:`center`,position:`absolute`,boxSizing:`border-box`,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:_S*2,lineHeight:1,padding:`0 6px`,height:_S*2,borderRadius:_S,zIndex:1,"@media (forced-colors: active)":{border:`1px solid ButtonBorder`},transition:e.transitions.create(`transform`,{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(Xp([`contrastText`])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:`dot`},style:{borderRadius:vS,height:vS*2,minWidth:vS*2,padding:0}},{props:{invisible:!0},style:{transition:e.transitions.create(`transform`,{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}},{style:({ownerState:e})=>{let{vertical:t,horizontal:n}=e.anchorOrigin,r=e.overlap===`circular`?`14%`:0;return{"--Badge-translateX":n===`right`?`50%`:`-50%`,"--Badge-translateY":t===`top`?`-50%`:`50%`,top:t===`top`?r:`initial`,bottom:t===`bottom`?r:`initial`,right:n===`right`?r:`initial`,left:n===`left`?r:`initial`,transform:`scale(1) translate(var(--Badge-translateX), var(--Badge-translateY))`,transformOrigin:`${n===`right`?`100%`:`0%`} ${t===`top`?`0%`:`100%`}`,[`&.${gS.invisible}`]:{transform:`scale(0) translate(var(--Badge-translateX), var(--Badge-translateY))`}}}}]})));function SS(e){return{vertical:e?.vertical??`top`,horizontal:e?.horizontal??`right`}}var CS=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiBadge`}),{anchorOrigin:r,className:i,classes:a,component:o,children:s,overlap:c=`rectangular`,color:l=`default`,invisible:u=!1,max:d=99,badgeContent:f,slots:p,slotProps:m,showZero:h=!1,variant:g=`standard`,..._}=n,{badgeContent:v,invisible:y,max:b,displayValue:x}=mS({max:d,invisible:u,badgeContent:f,showZero:h}),S=py({anchorOrigin:SS(r),color:l,overlap:c,variant:g,badgeContent:f}),C=y||v==null&&g!==`dot`,{color:w=l,overlap:T=c,anchorOrigin:E,variant:D=g}=C?S:n,O=SS(E),k=D===`dot`?void 0:x,A={...n,badgeContent:v,invisible:C,max:b,displayValue:k,showZero:h,anchorOrigin:O,color:w,overlap:T,variant:D},j=yS(A),M={slots:p,slotProps:m},[N,P]=Y(`root`,{elementType:bS,externalForwardedProps:{...M,..._},ownerState:A,className:V(j.root,i),ref:t,additionalProps:{as:o}}),[F,I]=Y(`badge`,{elementType:xS,externalForwardedProps:M,ownerState:A,className:j.badge});return(0,B.jsxs)(N,{...P,children:[s,(0,B.jsx)(F,{...I,children:k})]})}),wS=U(`MuiBox`,[`root`]),X=vs({themeId:Xn,defaultTheme:pu(),defaultClassName:wS.root,generateClassName:gs.generate}),TS=Dp((0,B.jsx)(`path`,{d:`M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z`}),`MoreHoriz`),ES=K(Vm,{name:`MuiBreadcrumbCollapsed`})(xp(({theme:e})=>({display:`flex`,marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,...e.palette.mode===`light`?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...e.palette.mode===`light`?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],...e.palette.mode===`light`?{backgroundColor:tc(e.palette.grey[200],.12)}:{backgroundColor:tc(e.palette.grey[600],.12)}}}))),DS=K(TS)({width:24,height:16});function OS(e){let{slots:t={},slotProps:n={},...r}=e,{nativeButton:i,...a}=r,o=e;return(0,B.jsx)(`li`,{children:(0,B.jsx)(ES,{focusRipple:!0,...a,ownerState:o,children:(0,B.jsx)(DS,{as:t.CollapsedIcon,ownerState:o,...n.collapsedIcon})})})}function kS(e){return H(`MuiBreadcrumbs`,e)}var AS=U(`MuiBreadcrumbs`,[`root`,`ol`,`li`,`separator`]),jS=e=>{let{classes:t}=e;return Gc({root:[`root`],li:[`li`],ol:[`ol`],separator:[`separator`]},kS,t)},MS=K(V_,{name:`MuiBreadcrumbs`,slot:`Root`,overridesResolver:(e,t)=>[{[`& .${AS.li}`]:t.li},t.root]})({}),NS=K(`ol`,{name:`MuiBreadcrumbs`,slot:`Ol`})({display:`flex`,flexWrap:`wrap`,alignItems:`center`,padding:0,margin:0,listStyle:`none`}),PS=K(`li`,{name:`MuiBreadcrumbs`,slot:`Separator`})({display:`flex`,userSelect:`none`,marginLeft:8,marginRight:8});function FS(e,t,n,r){return e.reduce((i,a,o)=>(o<e.length-1?i=i.concat(a,(0,B.jsx)(PS,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${o}`)):i.push(a),i),[])}var IS=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiBreadcrumbs`}),{children:r,className:i,component:a=`nav`,slots:o={},slotProps:s={},expandText:c=`Show path`,itemsAfterCollapse:l=1,itemsBeforeCollapse:u=1,maxItems:d=8,separator:f=`/`,...p}=n,[m,h]=C.useState(!1),g={...n,component:a,expanded:m,expandText:c,itemsAfterCollapse:l,itemsBeforeCollapse:u,maxItems:d,separator:f},_=jS(g),v=my({elementType:o.CollapsedIcon,externalSlotProps:s.collapsedIcon,ownerState:g}),y=C.useRef(null),b=e=>{let t=()=>{h(!0);let e=y.current.querySelector(`a[href],button,[tabindex]`);e&&e.focus()};return u+l>=e.length?e:[...e.slice(0,u),(0,B.jsx)(OS,{"aria-label":c,slots:{CollapsedIcon:o.CollapsedIcon},slotProps:{collapsedIcon:v},onClick:t},`ellipsis`),...e.slice(e.length-l,e.length)]},x=C.Children.toArray(r).filter(e=>C.isValidElement(e)).map((e,t)=>(0,B.jsx)(`li`,{className:_.li,children:e},`child-${t}`));return(0,B.jsx)(MS,{ref:t,component:a,color:`textSecondary`,className:V(_.root,i),ownerState:g,...p,children:(0,B.jsx)(NS,{className:_.ol,ref:y,ownerState:g,children:FS(m||d&&x.length<=d?x:b(x),_.separator,f,g)})})});function LS(e){return H(`MuiCard`,e)}U(`MuiCard`,[`root`]);var RS=e=>{let{classes:t}=e;return Gc({root:[`root`]},LS,t)},zS=K(Mh,{name:`MuiCard`,slot:`Root`})({overflow:`hidden`}),BS=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiCard`}),{className:r,raised:i=!1,...a}=n,o={...n,raised:i};return(0,B.jsx)(zS,{className:V(RS(o).root,r),elevation:i?8:void 0,ref:t,ownerState:o,...a})});function VS(e){return H(`MuiCardActions`,e)}U(`MuiCardActions`,[`root`,`spacing`]);var HS=e=>{let{classes:t,disableSpacing:n}=e;return Gc({root:[`root`,!n&&`spacing`]},VS,t)},US=K(`div`,{name:`MuiCardActions`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:`flex`,alignItems:`center`,padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),WS=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiCardActions`}),{disableSpacing:r=!1,className:i,...a}=n,o={...n,disableSpacing:r};return(0,B.jsx)(US,{className:V(HS(o).root,i),ownerState:o,ref:t,...a})});function GS(e){return H(`MuiCardContent`,e)}U(`MuiCardContent`,[`root`]);var KS=e=>{let{classes:t}=e;return Gc({root:[`root`]},GS,t)},qS=K(`div`,{name:`MuiCardContent`,slot:`Root`})({padding:16,"&:last-child":{paddingBottom:24}}),JS=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiCardContent`}),{className:r,component:i=`div`,...a}=n,o={...n,component:i};return(0,B.jsx)(qS,{as:i,className:V(KS(o).root,r),ownerState:o,ref:t,...a})});function YS(e){return H(`MuiCardHeader`,e)}var XS=U(`MuiCardHeader`,[`root`,`avatar`,`action`,`content`,`title`,`subheader`]),ZS=e=>{let{classes:t}=e;return Gc({root:[`root`],avatar:[`avatar`],action:[`action`],content:[`content`],title:[`title`],subheader:[`subheader`]},YS,t)},QS=K(`div`,{name:`MuiCardHeader`,slot:`Root`,overridesResolver:(e,t)=>[{[`& .${XS.title}`]:t.title},{[`& .${XS.subheader}`]:t.subheader},t.root]})({display:`flex`,alignItems:`center`,padding:16}),$S=K(`div`,{name:`MuiCardHeader`,slot:`Avatar`})({display:`flex`,flex:`0 0 auto`,marginRight:16}),eC=K(`div`,{name:`MuiCardHeader`,slot:`Action`})({flex:`0 0 auto`,alignSelf:`flex-start`,marginTop:-4,marginRight:-8,marginBottom:-4}),tC=K(`div`,{name:`MuiCardHeader`,slot:`Content`})({flex:`1 1 auto`,[`.${R_.root}:where(& .${XS.title})`]:{display:`block`},[`.${R_.root}:where(& .${XS.subheader})`]:{display:`block`}}),nC=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiCardHeader`}),{action:r,avatar:i,component:a=`div`,disableTypography:o=!1,subheader:s,title:c,slots:l={},slotProps:u={},...d}=n,f={...n,component:a,disableTypography:o},p=ZS(f),m={slots:l,slotProps:u},h=c,[g,_]=Y(`title`,{className:p.title,elementType:V_,externalForwardedProps:m,ownerState:f,additionalProps:{variant:i?`body2`:`h5`,component:`span`}});h!=null&&h.type!==V_&&!o&&(h=(0,B.jsx)(g,{..._,children:h}));let v=s,[y,b]=Y(`subheader`,{className:p.subheader,elementType:V_,externalForwardedProps:m,ownerState:f,additionalProps:{variant:i?`body2`:`body1`,color:`textSecondary`,component:`span`}});v!=null&&v.type!==V_&&!o&&(v=(0,B.jsx)(y,{...b,children:v}));let[x,S]=Y(`root`,{ref:t,className:p.root,elementType:QS,externalForwardedProps:{...m,...d,component:a},ownerState:f}),[C,w]=Y(`avatar`,{className:p.avatar,elementType:$S,externalForwardedProps:m,ownerState:f}),[T,E]=Y(`content`,{className:p.content,elementType:tC,externalForwardedProps:m,ownerState:f}),[D,O]=Y(`action`,{className:p.action,elementType:eC,externalForwardedProps:m,ownerState:f});return(0,B.jsxs)(x,{...S,children:[i&&(0,B.jsx)(C,{...w,children:i}),(0,B.jsxs)(T,{...E,children:[h,v]}),r&&(0,B.jsx)(D,{...O,children:r})]})});function rC(e){return e.substring(2).toLowerCase()}function iC(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function aC(e){let{children:t,disableReactTree:n=!1,mouseEvent:r=`onClick`,onClickAway:i,touchEvent:a=`onTouchEnd`}=e,o=C.useRef(!1),s=C.useRef(null),c=C.useRef(!1),l=C.useRef(!1);C.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);let u=Wp(hy(t),s),d=Hp(e=>{let t=l.current;l.current=!1;let r=Np(s.current);if(!c.current||!s.current||`clientX`in e&&iC(e,r))return;if(o.current){o.current=!1;return}let a;a=e.composedPath?e.composedPath().includes(s.current):!fy(r.documentElement,e.target)||fy(s.current,e.target),!a&&(n||!t)&&i(e)}),f=e=>n=>{l.current=!0;let r=t.props[e];r&&r(n)},p={ref:u};return a!==!1&&(p[a]=f(a)),C.useEffect(()=>{if(a!==!1){let e=rC(a),t=Np(s.current),n=()=>{o.current=!0};return t.addEventListener(e,d),t.addEventListener(`touchmove`,n),()=>{t.removeEventListener(e,d),t.removeEventListener(`touchmove`,n)}}},[d,a]),r!==!1&&(p[r]=f(r)),C.useEffect(()=>{if(r!==!1){let e=rC(r),t=Np(s.current);return t.addEventListener(e,d),()=>{t.removeEventListener(e,d)}}},[d,r]),C.cloneElement(t,p)}var oC=Xc({createStyledComponent:K(`div`,{name:`MuiContainer`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`maxWidth${q(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>J({props:e,name:`MuiContainer`})});function sC(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function cC(e){let t=Np(e);return t.body===e?Fp(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function lC(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function uC(e){return parseFloat(Fp(e).getComputedStyle(e).paddingRight)||0}function dC(e){let t=[`TEMPLATE`,`SCRIPT`,`STYLE`,`LINK`,`MAP`,`META`,`NOSCRIPT`,`PICTURE`,`COL`,`COLGROUP`,`PARAM`,`SLOT`,`SOURCE`,`TRACK`].includes(e.tagName),n=e.tagName===`INPUT`&&e.getAttribute(`type`)===`hidden`;return t||n}function fC(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!dC(e);t&&n&&lC(e,i)})}function pC(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function mC(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(cC(r)){let e=sC(Fp(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${uC(r)+e}px`;let t=Np(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${uC(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Np(r).body;else{let t=r.parentElement,n=Fp(r);e=t?.nodeName===`HTML`&&n.getComputedStyle(t).overflowY===`scroll`?t:r}n.push({value:e.style.overflow,property:`overflow`,el:e},{value:e.style.overflowX,property:`overflow-x`,el:e},{value:e.style.overflowY,property:`overflow-y`,el:e}),e.style.overflow=`hidden`}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}function hC(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var gC=class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&lC(e.modalRef,!1);let r=hC(t);fC(t,e.mount,e.modalRef,r,!0);let i=pC(this.containers,e=>e.container===t);return i===-1?(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n):(this.containers[i].modals.push(e),n)}mount(e,t){let n=pC(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=mC(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=pC(this.containers,t=>t.modals.includes(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&lC(e.modalRef,t),fC(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{let e=i.modals[i.modals.length-1];e.modalRef&&lC(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},_C=fy,vC=`data-mui-focusable`;function yC(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${vC}]`):null}var bC=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function xC(e){let t=parseInt(e.getAttribute(`tabindex`)||``,10);return Number.isNaN(t)?e.contentEditable===`true`||(e.nodeName===`AUDIO`||e.nodeName===`VIDEO`||e.nodeName===`DETAILS`)&&e.getAttribute(`tabindex`)===null?0:e.tabIndex:t}function SC(e){if(e.tagName!==`INPUT`||e.type!==`radio`||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),n=t(`[name="${e.name}"]:checked`);return n||=t(`[name="${e.name}"]`),n!==e}function CC(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||SC(e))}function wC(e){let t=[],n=[];return Array.from(e.querySelectorAll(bC)).forEach((e,r)=>{let i=xC(e);i===-1||!CC(e)||(i===0?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function TC(){return!0}function EC(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=wC,isEnabled:o=TC,open:s}=e,c=C.useRef(!1),l=C.useRef(null),u=C.useRef(null),d=C.useRef(null),f=C.useRef(null),p=C.useRef(!1),m=C.useRef(null),h=Wp(hy(t),m),g=C.useRef(null);C.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),C.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=Mp(Np(m.current)),t=yC(m.current)??m.current;return _C(m.current,e)||(t.hasAttribute(`tabIndex`)||t.setAttribute(`tabIndex`,`-1`),p.current&&t.focus()),()=>{!i&&d.current&&(c.current=!0,d.current.focus(),d.current=null)}},[s]),C.useEffect(()=>{if(!s||!m.current)return;let e=Np(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&Mp(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=Mp(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(_C(t,n)||r&&n!==l.current&&n!==u.current)return;if(n!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let i=[];if((n===l.current||n===u.current)&&(i=a(m.current)),i.length>0){let e=!!(g.current?.shiftKey&&g.current?.key===`Tab`),t=i[0],n=i[i.length-1];typeof t!=`string`&&typeof n!=`string`&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener(`focusin`,n),e.addEventListener(`keydown`,t,!0);let i=setInterval(()=>{let t=Mp(e);t&&t.tagName===`BODY`&&n()},50);return()=>{clearInterval(i),e.removeEventListener(`focusin`,n),e.removeEventListener(`keydown`,t,!0)}},[n,r,i,o,s,a]);let _=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;let n=t.props.onFocus;n&&n(e)},v=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0};return(0,B.jsxs)(C.Fragment,{children:[(0,B.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),C.cloneElement(t,{ref:h,onFocus:_}),(0,B.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}function DC(e){return typeof e==`function`?e():e}function OC(e){return e?e.props.hasOwnProperty(`in`):!1}var kC=()=>{},AC=new gC;function jC(e){let{container:t,disableScrollLock:n=!1,closeAfterTransition:r=!1,onTransitionEnter:i,onTransitionExited:a,children:o,onClose:s,open:c,rootRef:l}=e,u=C.useRef({}),d=C.useRef(null),f=C.useRef(null),p=Wp(f,l),[m,h]=C.useState(!c),g=OC(o),_=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(_=!1);let v=()=>Np(d.current),y=()=>(u.current.modalRef=f.current,u.current.mount=d.current,u.current),b=()=>{AC.mount(y(),{disableScrollLock:n}),f.current&&(f.current.scrollTop=0)},x=Hp(()=>{let e=DC(t)||v().body;AC.add(y(),e),f.current&&b()}),S=()=>AC.isTopModal(y()),w=Hp(e=>{d.current=e,e&&(c&&S()?b():f.current&&lC(f.current,_))}),T=C.useCallback(()=>{AC.remove(y(),_)},[_]);C.useEffect(()=>()=>{T()},[T]),C.useEffect(()=>{c?x():(!g||!r)&&T()},[c,T,g,r,x]);let E=e=>t=>{e.onKeyDown?.(t),!(t.key!==`Escape`||t.which===229||!S())&&(t.stopPropagation(),s&&s(t,`escapeKeyDown`))},D=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&s&&s(t,`backdropClick`)};return{getRootProps:(t={})=>{let n=bh(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r={...n,...t};return{role:`presentation`,...r,onKeyDown:E(r),ref:p}},getBackdropProps:(e={})=>{let t=e;return{"aria-hidden":!0,...t,onClick:D(t),open:c}},getTransitionProps:()=>({onEnter:vp(()=>{h(!1),i&&i()},o?.props.onEnter??kC),onExited:vp(()=>{h(!0),a&&a(),r&&T()},o?.props.onExited??kC)}),rootRef:p,portalRef:w,isTopModal:S,exited:m,hasTransition:g}}function MC(e){return H(`MuiModal`,e)}U(`MuiModal`,[`root`,`hidden`,`backdrop`]);var NC=e=>{let{open:t,exited:n,classes:r}=e;return Gc({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},MC,r)},PC=K(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(xp(({theme:e})=>({position:`fixed`,zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:`hidden`}}]}))),FC=K(pS,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),IC=C.forwardRef(function(e,t){let n=J({name:`MuiModal`,props:e}),{classes:r,className:i,closeAfterTransition:a=!1,children:o,container:s,component:c,disableAutoFocus:l=!1,disableEnforceFocus:u=!1,disablePortal:d=!1,disableRestoreFocus:f=!1,disableScrollLock:p=!1,hideBackdrop:m=!1,keepMounted:h=!1,onClose:g,onTransitionEnter:_,onTransitionExited:v,open:y,slotProps:b={},slots:x={},theme:S,...w}=n,T={...n,closeAfterTransition:a,disableAutoFocus:l,disableEnforceFocus:u,disablePortal:d,disableRestoreFocus:f,disableScrollLock:p,hideBackdrop:m,keepMounted:h},{getRootProps:E,getBackdropProps:D,getTransitionProps:O,portalRef:k,isTopModal:A,exited:j,hasTransition:M}=jC({...T,rootRef:t}),N={...T,exited:j},P=NC(N),F={};if(o.props.tabIndex===void 0&&(F.tabIndex=`-1`),M){let{onEnter:e,onExited:t}=O();F.onEnter=e,F.onExited=t}let I={slots:x,slotProps:b},[L,ee]=Y(`root`,{ref:t,elementType:PC,externalForwardedProps:{...I,...w,component:c},getSlotProps:E,ownerState:N,className:V(i,P?.root,!N.open&&N.exited&&P?.hidden)}),[te,ne]=Y(`backdrop`,{elementType:FC,externalForwardedProps:I,shouldForwardComponentProp:!0,getSlotProps:e=>D({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:P?.backdrop,ownerState:N});return!h&&!y&&(!M||j)?null:(0,B.jsx)(gy,{ref:k,container:s,disablePortal:d,children:(0,B.jsxs)(L,{...ee,children:[m?null:(0,B.jsx)(te,{...ne}),(0,B.jsx)(EC,{disableEnforceFocus:u,disableAutoFocus:l,disableRestoreFocus:f,isEnabled:A,open:y,children:C.cloneElement(o,F)})]})})});function LC(e){return H(`MuiDialog`,e)}U(`MuiDialog`,[`root`,`backdrop`,`scrollPaper`,`scrollBody`,`container`,`paper`,`paperWidthFalse`,`paperWidthXs`,`paperWidthSm`,`paperWidthMd`,`paperWidthLg`,`paperWidthXl`,`paperFullWidth`,`paperFullScreen`]);var RC=C.createContext({}),zC=K(pS,{name:`MuiDialog`,slot:`Backdrop`})({zIndex:-1}),BC=e=>{let{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=e;return Gc({root:[`root`],backdrop:[`backdrop`],container:[`container`,`scroll${q(n)}`],paper:[`paper`,`paperWidth${q(String(r))}`,i&&`paperFullWidth`,a&&`paperFullScreen`]},LC,t)},VC=K(IC,{name:`MuiDialog`,slot:`Root`})({"@media print":{position:`absolute !important`}}),HC=K(`div`,{name:`MuiDialog`,slot:`Container`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.container,t[`scroll${q(n.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`}}}]}),UC=K(Mh,{name:`MuiDialog`,slot:`Paper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.paper,t[`paperWidth${q(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(xp(({theme:e})=>({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:e.breakpoints.unit===`px`?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`}},{props:{maxWidth:`xs`,scroll:`body`},style:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:`calc(100% - 64px)`}}},...Object.keys(e.breakpoints.values).filter(e=>e!==`xs`).map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`}})),...Object.keys(e.breakpoints.values).filter(e=>e!==`xs`).map(t=>({props:{maxWidth:t,scroll:`body`},style:{[e.breakpoints.down(e.breakpoints.values[t]+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}},{props:({ownerState:e})=>e.fullScreen&&e.scroll===`body`,style:{margin:0,maxWidth:`100%`}}]}))),WC=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiDialog`}),r=Cu(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":o,"aria-modal":s=!0,children:c,className:l,fullScreen:u=!1,fullWidth:d=!1,maxWidth:f=`sm`,onClick:p,onClose:m,open:h,PaperComponent:g=Mh,role:_=`dialog`,scroll:v=`paper`,slots:y={},slotProps:b={},transitionDuration:x=i,...S}=n,w={...n,fullScreen:u,fullWidth:d,maxWidth:f,scroll:v},T=BC(w),E=C.useRef(),D=e=>{E.current=e.target===e.currentTarget},O=e=>{p&&p(e),E.current&&(E.current=null,m&&m(e,`backdropClick`))},k=vc(o),A=C.useMemo(()=>({titleId:k}),[k]),j={slots:y,slotProps:b},[M,N]=Y(`root`,{elementType:VC,shouldForwardComponentProp:!0,externalForwardedProps:j,ownerState:w,className:V(T.root,l),ref:t}),[P,F]=Y(`backdrop`,{elementType:zC,shouldForwardComponentProp:!0,externalForwardedProps:j,ownerState:w,className:T.backdrop}),[I,L]=Y(`paper`,{elementType:UC,shouldForwardComponentProp:!0,externalForwardedProps:j,ownerState:w,className:T.paper,additionalProps:{elevation:24,role:_,"aria-describedby":a,"aria-labelledby":k,"aria-modal":s,tabIndex:-1,[vC]:``}}),[ee,te]=Y(`container`,{elementType:HC,externalForwardedProps:j,ownerState:w,className:T.container}),[ne,re]=Y(`transition`,{elementType:lS,externalForwardedProps:j,ownerState:w,additionalProps:{appear:!0,in:h,timeout:x,role:`presentation`}});return(0,B.jsx)(M,{closeAfterTransition:!0,slots:{backdrop:P},slotProps:{backdrop:{transitionDuration:x,...F}},onClose:m,open:h,onClick:O,...N,...S,children:(0,B.jsx)(ne,{...re,children:(0,B.jsx)(ee,{onMouseDown:D,...te,children:(0,B.jsx)(I,{as:g,...L,children:(0,B.jsx)(RC.Provider,{value:A,children:c})})})})})});function GC(e){return H(`MuiDivider`,e)}var KC=U(`MuiDivider`,[`root`,`absolute`,`fullWidth`,`inset`,`middle`,`flexItem`,`vertical`,`withChildren`,`textAlignRight`,`textAlignLeft`,`wrapper`,`wrapperVertical`]),qC=e=>{let{absolute:t,children:n,classes:r,flexItem:i,orientation:a,textAlign:o,variant:s}=e;return Gc({root:[`root`,t&&`absolute`,s,a===`vertical`&&`vertical`,i&&`flexItem`,n&&`withChildren`,o===`right`&&a!==`vertical`&&`textAlignRight`,o===`left`&&a!==`vertical`&&`textAlignLeft`],wrapper:[`wrapper`,a===`vertical`&&`wrapperVertical`]},GC,r)},JC=K(`div`,{name:`MuiDivider`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.orientation===`vertical`&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.textAlign===`right`&&n.orientation!==`vertical`&&t.textAlignRight,n.textAlign===`left`&&n.orientation!==`vertical`&&t.textAlignLeft]}})(xp(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:`solid`,borderColor:(e.vars||e).palette.divider,borderBottomWidth:`thin`,variants:[{props:{absolute:!0},style:{position:`absolute`,bottom:0,left:0,width:`100%`}},{props:{variant:`inset`},style:{marginLeft:72}},{props:{variant:`middle`,orientation:`horizontal`},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:`middle`,orientation:`vertical`},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:`vertical`},style:{height:`100%`,borderBottomWidth:0,borderRightWidth:`thin`}},{props:{flexItem:!0},style:{alignSelf:`stretch`,height:`auto`}},{props:({ownerState:e})=>!!e.children,style:{display:`flex`,textAlign:`center`,border:0,borderTopStyle:`solid`,borderLeftStyle:`solid`,"&::before, &::after":{content:`""`,alignSelf:`center`}}},{props:({ownerState:e})=>e.children&&e.orientation!==`vertical`,style:{"&::before, &::after":{width:`100%`,borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:`inherit`}}},{props:({ownerState:e})=>e.orientation===`vertical`&&e.children,style:{flexDirection:`column`,"&::before, &::after":{height:`100%`,borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:`inherit`}}},{props:({ownerState:e})=>e.textAlign===`right`&&e.orientation!==`vertical`,style:{"&::before":{width:`90%`},"&::after":{width:`10%`}}},{props:({ownerState:e})=>e.textAlign===`left`&&e.orientation!==`vertical`,style:{"&::before":{width:`10%`},"&::after":{width:`90%`}}}]}))),YC=K(`span`,{name:`MuiDivider`,slot:`Wrapper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.wrapper,n.orientation===`vertical`&&t.wrapperVertical]}})(xp(({theme:e})=>({display:`inline-block`,paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:`nowrap`,variants:[{props:{orientation:`vertical`},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),XC=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiDivider`}),{absolute:r=!1,children:i,className:a,orientation:o=`horizontal`,component:s=i||o===`vertical`?`div`:`hr`,flexItem:c=!1,role:l=s===`hr`?void 0:`separator`,textAlign:u=`center`,variant:d=`fullWidth`,...f}=n,p={...n,absolute:r,component:s,flexItem:c,orientation:o,role:l,textAlign:u,variant:d},m=qC(p);return(0,B.jsx)(JC,{as:s,className:V(m.root,a),role:l,ref:t,ownerState:p,"aria-orientation":l===`separator`&&(s!==`hr`||o===`vertical`)?o:void 0,...f,children:i?(0,B.jsx)(YC,{className:m.wrapper,ownerState:p,children:i}):null})}),ZC={visibility:`hidden`};function QC(e){return typeof e==`string`&&/^translate\(.+,\s*.+\)$/.test(e)}function $C(e,t,n,r={}){let{resetInlineTransform:i=!0}=r,a=n&&n.getBoundingClientRect(),o=Ip(t),s,c;if(i){let e=t.style.transform,n=t.style.transition;t.style.transition=``,t.style.transform=``,s=t.getBoundingClientRect(),c=o.getComputedStyle(t).getPropertyValue(`transform`),t.style.transform=e,t.style.transition=n}else s=t.getBoundingClientRect(),c=o.getComputedStyle(t).getPropertyValue(`transform`);let{offsetX:l,offsetY:u}=ph(c);return e===`left`?a?`translateX(${a.right+l-s.left}px)`:`translateX(${o.innerWidth+l-s.left}px)`:e===`right`?a?`translateX(-${s.right-a.left-l}px)`:`translateX(-${s.left+s.width-l}px)`:e===`up`?a?`translateY(${a.bottom+u-s.top}px)`:`translateY(${o.innerHeight+u-s.top}px)`:a?`translateY(-${s.top-a.top+s.height-u}px)`:`translateY(-${s.top+s.height-u}px)`}function ew(e){return typeof e==`function`?e():e}function tw(e,t,n,r){let i=$C(e,t,ew(n),r);i&&(t.style.transform=i)}var nw=C.forwardRef(function(e,t){let n=Cu(),r={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:o=!0,children:s,container:c,direction:l=`down`,easing:u=r,in:d,onEnter:f,onEntered:p,onEntering:m,onExit:h,onExited:g,onExiting:_,style:v,timeout:y=i,...b}=e,x=C.useRef(null),S=C.useRef(!1),w=Gp(hy(s),x,t),T=mh(x,(e,t)=>{tw(l,e,c),sh(e),f&&f(e,t)}),E=mh(x,(e,t)=>{let r=gh({timeout:y,style:v,easing:u},{mode:`enter`});e.style.transition=n.transitions.create(`transform`,r),e.style.transform=`none`,m&&m(e,t)}),D=mh(x,p),O=mh(x,_),k=mh(x,e=>{let t=gh({timeout:y,style:v,easing:u},{mode:`exit`});e.style.transition=n.transitions.create(`transform`,t);let r=QC(e.style.transform);S.current=r,tw(l,e,c,{resetInlineTransform:!r}),h&&h(e)}),A=mh(x,e=>{S.current=!1,e.style.transition=``,g&&g(e)}),j=e=>{a&&a(x.current,e)},M=C.useCallback(()=>{x.current&&tw(l,x.current,c)},[l,c]);return C.useEffect(()=>{if(d||l===`down`||l===`right`)return;let e=kp(()=>{x.current&&tw(l,x.current,c)}),t=Ip(x.current);return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[l,d,c]),C.useEffect(()=>{!d&&!S.current&&M()},[d,M]),(0,B.jsx)(vm,{nodeRef:x,onEnter:T,onEntered:D,onEntering:E,onExit:k,onExited:A,onExiting:O,addEndListener:j,appear:o,in:d,timeout:y,...b,children:(e,{ownerState:t,...n})=>{let r;return r=e===`exited`&&!d?v||s.props.style?{visibility:`hidden`,...v,...s.props.style}:ZC:v&&s.props.style?{...v,...s.props.style}:v||s.props.style,C.cloneElement(s,{ref:w,style:r,...n})}})});function rw(e){return H(`MuiDrawer`,e)}U(`MuiDrawer`,[`root`,`docked`,`paper`,`anchorLeft`,`anchorRight`,`anchorTop`,`anchorBottom`,`modal`]);var iw=(e,t)=>{let{ownerState:n}=e;return[t.root,(n.variant===`permanent`||n.variant===`persistent`)&&t.docked,n.variant===`temporary`&&t.modal]},aw=e=>{let{classes:t,anchor:n,variant:r}=e;return Gc({root:[`root`,`anchor${q(n)}`],docked:[(r===`permanent`||r===`persistent`)&&`docked`],modal:[`modal`],paper:[`paper`]},rw,t)},ow=K(IC,{name:`MuiDrawer`,slot:`Root`,overridesResolver:iw})(xp(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),sw=K(`div`,{shouldForwardProp:Eu,name:`MuiDrawer`,slot:`Docked`,skipVariantsResolver:!1,overridesResolver:iw})({flex:`0 0 auto`}),cw=K(Mh,{name:`MuiDrawer`,slot:`Paper`})(xp(({theme:e})=>({overflowY:`auto`,display:`flex`,flexDirection:`column`,height:`100%`,flex:`1 0 auto`,zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:`touch`,position:`fixed`,top:0,outline:0,variants:[{props:{anchor:`left`},style:{left:0}},{props:{anchor:`top`},style:{top:0,left:0,right:0,height:`auto`,maxHeight:`100%`}},{props:{anchor:`right`},style:{right:0}},{props:{anchor:`bottom`},style:{top:`auto`,left:0,bottom:0,right:0,height:`auto`,maxHeight:`100%`}},{props:({ownerState:e})=>e.anchor===`left`&&e.variant!==`temporary`,style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>e.anchor===`top`&&e.variant!==`temporary`,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>e.anchor===`right`&&e.variant!==`temporary`,style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>e.anchor===`bottom`&&e.variant!==`temporary`,style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),lw={left:`right`,right:`left`,top:`down`,bottom:`up`};function uw(e){return[`left`,`right`].includes(e)}function dw({direction:e},t){return e===`rtl`&&uw(t)?lw[t]:t}var fw=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiDrawer`}),r=Cu(),i=uc(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{anchor:o=`left`,children:s,className:c,elevation:l=16,hideBackdrop:u=!1,ModalProps:d={},onClose:f,open:p=!1,transitionDuration:m=a,variant:h=`temporary`,slots:g={},slotProps:_={},...v}=n,y=C.useRef(!1),b=C.useRef(null),x=Gp(t,b);C.useEffect(()=>{y.current=!0},[]);let S=C.useCallback(()=>b.current,[]),w=dw({direction:i?`rtl`:`ltr`},o),T=o,E={...n,anchor:T,elevation:l,open:p,variant:h,...v},D=aw(E),O={slots:g,slotProps:{..._,backdrop:qp(_.backdrop,{transitionDuration:m})}},[k,A]=Y(`root`,{ref:x,elementType:ow,className:V(D.root,D.modal,c),shouldForwardComponentProp:!0,ownerState:E,externalForwardedProps:{...O,...v,...d},additionalProps:{closeAfterTransition:!0,open:p,onClose:f,hideBackdrop:u,slots:{backdrop:O.slots.backdrop},slotProps:{backdrop:O.slotProps.backdrop}}}),[j,M]=Y(`paper`,{elementType:cw,shouldForwardComponentProp:!0,className:D.paper,ownerState:E,externalForwardedProps:O,additionalProps:{elevation:h===`temporary`?l:0,square:!0,...h===`temporary`&&{role:`dialog`,"aria-modal":`true`,"data-mui-focusable":``,tabIndex:-1}}}),[N,P]=Y(`docked`,{elementType:sw,ref:x,className:V(D.root,D.docked,c),ownerState:E,externalForwardedProps:O,additionalProps:v}),[F,I]=Y(`transition`,{elementType:nw,ownerState:E,externalForwardedProps:O,additionalProps:{in:p,direction:lw[w],timeout:m,appear:y.current,...h===`temporary`&&(g.transition==null||g.transition===nw)&&{container:S}}}),L=(0,B.jsx)(j,{...M,children:s});if(h===`permanent`)return(0,B.jsx)(N,{...P,children:L});let ee=(0,B.jsx)(F,{...I,children:L});return h===`persistent`?(0,B.jsx)(N,{...P,children:ee}):(0,B.jsx)(k,{...A,children:ee})});function pw(e){return`scale(${e}, ${e**2})`}var mw={entering:{opacity:1,transform:pw(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:pw(.75)},exited:{opacity:0,transform:pw(.75)}},hw={opacity:0,transform:pw(.75),visibility:`hidden`},gw=C.forwardRef(function(e,t){let{addEndListener:n,appear:r=!0,children:i,easing:a,in:o,onEnter:s,onEntered:c,onEntering:l,onExit:u,onExited:d,onExiting:f,style:p,timeout:m=`auto`,...h}=e,g=Om(),_=C.useRef(),v=Cu(),y=C.useRef(null),b=Gp(y,hy(i),t),x=mh(y,l),S=mh(y,(e,t)=>{sh(e);let{duration:n,delay:r,easing:i}=gh({style:p,timeout:m,easing:a},{mode:`enter`}),o;m===`auto`?(o=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=o):o=n,e.style.transition=[v.transitions.create(`opacity`,{duration:o,delay:r}),v.transitions.create(`transform`,{duration:o*.666,delay:r,easing:i})].join(`,`),s&&s(e,t)}),w=mh(y,c),T=mh(y,f),E=mh(y,e=>{let{duration:t,delay:n,easing:r}=gh({style:p,timeout:m,easing:a},{mode:`exit`}),i;m===`auto`?(i=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=i):i=t,e.style.transition=[v.transitions.create(`opacity`,{duration:i,delay:n}),v.transitions.create(`transform`,{duration:i*.666,delay:n||i*.333,easing:r})].join(`,`),e.style.opacity=0,e.style.transform=pw(.75),u&&u(e)}),D=mh(y,e=>{e.style.transition=``,d&&d(e)});return(0,B.jsx)(vm,{appear:r,in:o,nodeRef:y,onEnter:S,onEntered:w,onEntering:x,onExit:E,onExited:D,onExiting:T,addEndListener:e=>{m===`auto`&&g.start(_.current||0,e),n&&n(y.current,e)},timeout:m===`auto`?null:m,...h,children:(e,{ownerState:t,...n})=>{let r=hh(e,o,mw,hw,p,i.props.style);return C.cloneElement(i,{style:r,ref:b,...n})}})});gw&&(gw.muiSupportAuto=!0);var _w=e=>{let{classes:t,disableUnderline:n}=e,r=Gc({root:[`root`,!n&&`underline`],input:[`input`]},Ty,t);return{...t,...r}},vw=K(g_,{shouldForwardProp:e=>Eu(e)||e===`classes`,name:`MuiInput`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...p_(e,t),!n.disableUnderline&&t.underline]}})(xp(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.42)`:`rgba(255, 255, 255, 0.7)`;return e.vars&&(t=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:`relative`,variants:[{props:({ownerState:e})=>e.formControl,style:{[`label + &, .${G_.root} + &`]:{marginTop:16}}},{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:`""`,position:`absolute`,right:0,transform:`scaleX(0)`,transition:e.transitions.create(`transform`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:`none`},[`&.${Ey.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${Ey.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:`""`,position:`absolute`,right:0,transition:e.transitions.create(`border-bottom-color`,{duration:e.transitions.duration.shorter}),pointerEvents:`none`},[`&:hover:not(.${Ey.disabled}, .${Ey.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${Ey.disabled}:before`]:{borderBottomStyle:`dotted`}}},...Object.entries(e.palette).filter(Xp()).map(([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}}))]}})),yw=K(__,{name:`MuiInput`,slot:`Input`,overridesResolver:m_})({}),bw=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiInput`}),{disableUnderline:r=!1,fullWidth:i=!1,inputComponent:a=`input`,multiline:o=!1,notched:s,slotProps:c,slots:l={},type:u=`text`,...d}=n,f=_w(n),p={root:{ownerState:{disableUnderline:r}}},m=c?Ta(c,p):p;return(0,B.jsx)(y_,{slots:{root:l.root??vw,input:l.input??yw},slotProps:m,fullWidth:i,inputComponent:a,multiline:o,ref:t,type:u,...d,classes:f})});bw.muiName=`Input`;function xw(e){return H(`MuiLinearProgress`,e)}U(`MuiLinearProgress`,[`root`,`colorPrimary`,`colorSecondary`,`determinate`,`indeterminate`,`buffer`,`query`,`dashed`,`bar`,`bar1`,`bar2`]);var Sw=4,Cw=Qi`
153
- 0% {
154
- left: -35%;
155
- right: 100%;
156
- }
157
-
158
- 60% {
159
- left: 100%;
160
- right: -90%;
161
- }
162
-
163
- 100% {
164
- left: 100%;
165
- right: -90%;
166
- }
167
- `,ww=typeof Cw==`string`?null:Zi`
168
- animation: ${Cw} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
169
- `,Tw=Qi`
170
- 0% {
171
- left: -200%;
172
- right: 100%;
173
- }
174
-
175
- 60% {
176
- left: 107%;
177
- right: -8%;
178
- }
179
-
180
- 100% {
181
- left: 107%;
182
- right: -8%;
183
- }
184
- `,Ew=typeof Tw==`string`?null:Zi`
185
- animation: ${Tw} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
186
- `,Dw=Qi`
187
- 0% {
188
- opacity: 1;
189
- background-position: 0 -23px;
190
- }
191
-
192
- 60% {
193
- opacity: 0;
194
- background-position: 0 -23px;
195
- }
196
-
197
- 100% {
198
- opacity: 1;
199
- background-position: -200px -23px;
200
- }
201
- `,Ow=typeof Dw==`string`?null:Zi`
202
- animation: ${Dw} 3s infinite linear;
203
- `,kw=e=>{let{classes:t,variant:n,color:r}=e;return Gc({root:[`root`,`color${q(r)}`,n],dashed:[`dashed`],bar1:[`bar`,`bar1`],bar2:[`bar`,`bar2`,n===`buffer`&&`color${q(r)}`]},xw,t)},Aw=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode===`light`?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),jw=K(`span`,{name:`MuiLinearProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`color${q(n.color)}`],t[n.variant]]}})(xp(({theme:e})=>({position:`relative`,overflow:`hidden`,display:`block`,height:4,zIndex:0,"@media print":{colorAdjust:`exact`},variants:[...Object.entries(e.palette).filter(Xp()).map(([t])=>({props:{color:t},style:{backgroundColor:Aw(e,t)}})),{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)`}}]}))),Mw=K(`span`,{name:`MuiLinearProgress`,slot:`Dashed`})(xp(({theme:e})=>({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(e.palette).filter(Xp()).map(([t])=>{let n=Aw(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),Ow||{animation:`${Dw} 3s infinite linear`}),Nw=K(`span`,{name:`MuiLinearProgress`,slot:`Bar1`,overridesResolver:(e,t)=>[t.bar,t.bar1]})(xp(({theme:e})=>({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(e.palette).filter(Xp()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:`determinate`},style:{transition:`transform .${Sw}s linear`}},{props:{variant:`buffer`},style:{zIndex:1,transition:`transform .${Sw}s linear`}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:{width:`auto`}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:ww||{animation:`${Cw} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),Pw=K(`span`,{name:`MuiLinearProgress`,slot:`Bar2`,overridesResolver:(e,t)=>[t.bar,t.bar2]})(xp(({theme:e})=>({width:`100%`,position:`absolute`,left:0,bottom:0,top:0,transition:`transform 0.2s linear`,transformOrigin:`left`,variants:[...Object.entries(e.palette).filter(Xp()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].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(e.palette).filter(Xp()).map(([t])=>({props:{color:t,variant:`buffer`},style:{backgroundColor:Aw(e,t),transition:`transform .${Sw}s linear`}})),{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:{width:`auto`}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:Ew||{animation:`${Tw} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),Fw=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiLinearProgress`}),{className:r,color:i=`primary`,max:a,min:o,value:s,valueBuffer:c,variant:l=`indeterminate`,...u}=n,d={...n,color:i,variant:l},f=o??0,p=a??100,m=kw(d),h=uc(),g={},_={bar1:{},bar2:{}};if((l===`determinate`||l===`buffer`)&&s!==void 0){let e=p-f,t=(s-f)/e*100-100;h&&(t=-t),_.bar1.transform=e>0?`translateX(${t}%)`:`translateX(-100%)`,g[`aria-valuenow`]=s,g[`aria-valuemin`]=f,g[`aria-valuemax`]=p}if(l===`buffer`&&c!==void 0){let e=p-f,t=(c-f)/e*100-100;h&&(t=-t),_.bar2.transform=e>0?`translateX(${t}%)`:`translateX(-100%)`}return(0,B.jsxs)(jw,{className:V(m.root,r),ownerState:d,role:`progressbar`,...g,ref:t,...u,children:[l===`buffer`?(0,B.jsx)(Mw,{className:m.dashed,ownerState:d}):null,(0,B.jsx)(Nw,{className:m.bar1,ownerState:d,style:_.bar1}),l===`determinate`?null:(0,B.jsx)(Pw,{className:m.bar2,ownerState:d,style:_.bar2})]})});function Iw(e){return H(`MuiLink`,e)}var Lw=U(`MuiLink`,[`root`,`underlineNone`,`underlineHover`,`underlineAlways`,`button`,`focusVisible`]),Rw=({theme:e,ownerState:t})=>{let n=t.color;if(`colorSpace`in e&&e.colorSpace){let r=oo(e,`palette.${n}.main`)||oo(e,`palette.${n}`)||t.color;return e.alpha(r,.4)}let r=oo(e,`palette.${n}.main`,!1)||oo(e,`palette.${n}`,!1)||t.color,i=oo(e,`palette.${n}.mainChannel`)||oo(e,`palette.${n}Channel`);return`vars`in e&&i?`rgba(${i} / 0.4)`:W(r,.4)},zw={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Bw=e=>{let{classes:t,component:n,focusVisible:r,underline:i}=e;return Gc({root:[`root`,`underline${q(i)}`,n===`button`&&`button`,r&&`focusVisible`]},Iw,t)},Vw=K(V_,{name:`MuiLink`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`underline${q(n.underline)}`],n.component===`button`&&t.button]}})(xp(({theme:e})=>({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:t})=>e===`always`&&t.color!==`inherit`,style:{textDecorationColor:`var(--Link-underlineColor)`}},{props:({underline:e,ownerState:t})=>e===`always`&&t.color===`inherit`,style:e.colorSpace?{textDecorationColor:e.alpha(`currentColor`,.4)}:null},...Object.entries(e.palette).filter(Xp()).map(([t])=>({props:{underline:`always`,color:t},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette[t].main,.4)}})),{props:{underline:`always`,color:`textPrimary`},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.primary,.4)}},{props:{underline:`always`,color:`textSecondary`},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.secondary,.4)}},{props:{underline:`always`,color:`textDisabled`},style:{"--Link-underlineColor":(e.vars||e).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`},[`&.${Lw.focusVisible}`]:{outline:`auto`}}}]}))),Hw=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiLink`}),r=Cu(),{className:i,color:a=`primary`,component:o=`a`,onBlur:s,onFocus:c,TypographyClasses:l,underline:u=`always`,variant:d=`inherit`,sx:f,...p}=n,[m,h]=C.useState(!1),g=e=>{Zp(e.target)||h(!1),s&&s(e)},_=e=>{Zp(e.target)&&h(!0),c&&c(e)},v={...n,color:a,component:o,focusVisible:m,underline:u,variant:d};return(0,B.jsx)(Vw,{color:a,className:V(Bw(v).root,i),classes:l,component:o,onBlur:g,onFocus:_,ref:t,ownerState:v,variant:d,...p,sx:[...zw[a]===void 0?[{color:a}]:[],...Array.isArray(f)?f:[f]],style:{...p.style,...u===`always`&&a!==`inherit`&&!zw[a]&&{"--Link-underlineColor":Rw({theme:r,ownerState:v})}}})}),Uw=C.createContext({});function Ww(e){return H(`MuiList`,e)}var Gw=U(`MuiList`,[`root`,`padding`,`dense`,`subheader`]),Kw=e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Gc({root:[`root`,!n&&`padding`,r&&`dense`,i&&`subheader`]},Ww,t)},qw=K(`ul`,{name:`MuiList`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:`none`,margin:0,padding:0,position:`relative`,variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0,isolation:`isolate`}}]}),Jw=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiList`}),{children:r,className:i,component:a=`ul`,dense:o=!1,disablePadding:s=!1,subheader:c,...l}=n,u=C.useMemo(()=>({dense:o}),[o]),d={...n,component:a,dense:o,disablePadding:s},f=Kw(d);return(0,B.jsx)(Uw.Provider,{value:u,children:(0,B.jsxs)(qw,{as:a,className:V(f.root,i),ref:t,ownerState:d,...l,children:[c,r]})})});function Yw(e){return H(`MuiListItemButton`,e)}var Xw=U(`MuiListItemButton`,[`root`,`focusVisible`,`dense`,`alignItemsFlexStart`,`disabled`,`divider`,`gutters`,`selected`]),Zw=(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems===`flex-start`&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Qw=e=>{let{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:a,divider:o,selected:s}=e,c=Gc({root:[`root`,r&&`dense`,!a&&`gutters`,o&&`divider`,i&&`disabled`,t===`flex-start`&&`alignItemsFlexStart`,s&&`selected`]},Yw,n);return{...n,...c}},$w=K(Vm,{shouldForwardProp:e=>Eu(e)||e===`classes`,name:`MuiListItemButton`,slot:`Root`,overridesResolver:Zw})(xp(({theme:e})=>({display:`flex`,flexGrow:1,justifyContent:`flex-start`,alignItems:`center`,position:`relative`,textDecoration:`none`,minWidth:0,boxSizing:`border-box`,textAlign:`left`,paddingTop:8,paddingBottom:8,transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:`none`,backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}},[`&.${Xw.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Xw.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Xw.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Xw.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Xw.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:`padding-box`}},{props:{alignItems:`flex-start`},style:{alignItems:`flex-start`}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.dense,style:{paddingTop:4,paddingBottom:4}}]}))),eT=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiListItemButton`}),{alignItems:r=`center`,autoFocus:i=!1,component:a=`div`,children:o,dense:s=!1,disableGutters:c=!1,divider:l=!1,focusVisibleClassName:u,selected:d=!1,className:f,...p}=n,m=C.useContext(Uw),h=C.useMemo(()=>({dense:s||m.dense||!1,alignItems:r,disableGutters:c}),[r,m.dense,s,c]),g=C.useRef(null);Rp(()=>{i&&g.current&&g.current.focus()},[i]);let _={...n,alignItems:r,dense:h.dense,disableGutters:c,divider:l,selected:d},v=Qw(_),{root:y,...b}=v,x=Gp(g,t);return(0,B.jsx)(Uw.Provider,{value:h,children:(0,B.jsx)($w,{ref:x,href:p.href||p.to,component:(p.href||p.to)&&a===`div`?`button`:a,internalNativeButton:!1,focusVisibleClassName:V(v.focusVisible,u),ownerState:_,className:V(v.root,f),...p,classes:b,children:o})})});function tT(e){return H(`MuiListItemIcon`,e)}var nT=U(`MuiListItemIcon`,[`root`,`alignItemsFlexStart`]),rT=e=>{let{alignItems:t,classes:n}=e;return Gc({root:[`root`,t===`flex-start`&&`alignItemsFlexStart`]},tT,n)},iT=K(`div`,{name:`MuiListItemIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.alignItems===`flex-start`&&t.alignItemsFlexStart]}})(xp(({theme:e})=>({minWidth:e.spacing(4.5),color:(e.vars||e).palette.action.active,flexShrink:0,display:`inline-flex`,variants:[{props:{alignItems:`flex-start`},style:{marginTop:8}}]}))),aT=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiListItemIcon`}),{className:r,...i}=n,a=C.useContext(Uw),o={...n,alignItems:a.alignItems};return(0,B.jsx)(iT,{className:V(rT(o).root,r),ownerState:o,ref:t,...i})});function oT(e){return H(`MuiListItemText`,e)}var sT=U(`MuiListItemText`,[`root`,`multiline`,`dense`,`inset`,`primary`,`secondary`]),cT=e=>{let{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return Gc({root:[`root`,n&&`inset`,a&&`dense`,r&&i&&`multiline`],primary:[`primary`],secondary:[`secondary`]},oT,t)},lT=K(`div`,{name:`MuiListItemText`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${sT.primary}`]:t.primary},{[`& .${sT.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:`1 1 auto`,minWidth:0,marginTop:4,marginBottom:4,[`.${R_.root}:where(& .${sT.primary})`]:{display:`block`},[`.${R_.root}:where(& .${sT.secondary})`]:{display:`block`},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),uT=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiListItemText`}),{children:r,className:i,disableTypography:a=!1,inset:o=!1,primary:s,secondary:c,slots:l={},slotProps:u={},...d}=n,{dense:f}=C.useContext(Uw),p=s??r,m=c,h={...n,disableTypography:a,inset:o,primary:!!p,secondary:!!m,dense:f},g=cT(h),_={slots:l,slotProps:u},[v,y]=Y(`root`,{className:V(g.root,i),elementType:lT,externalForwardedProps:{..._,...d},ownerState:h,ref:t}),[b,x]=Y(`primary`,{className:g.primary,elementType:V_,externalForwardedProps:_,ownerState:h}),[S,w]=Y(`secondary`,{className:g.secondary,elementType:V_,externalForwardedProps:_,ownerState:h});return p!=null&&p.type!==V_&&!a&&(p=(0,B.jsx)(b,{variant:f?`body2`:`body1`,component:x?.variant?void 0:`span`,...x,children:p})),m!=null&&m.type!==V_&&!a&&(m=(0,B.jsx)(S,{variant:`body2`,color:`textSecondary`,...w,children:m})),(0,B.jsxs)(v,{...y,children:[p,m]})}),dT=sC;function fT(e,t){if(t==null){e.focus();return}try{e.focus({focusVisible:t===`keyboard`})}catch{e.focus()}}function pT(e){return e?e.type===`mousedown`||e.type===`pointerdown`||e.type===`touchstart`?`pointer`:e.type===`keydown`||e.type===`click`&&e.detail===0?`keyboard`:null:null}function mT(e){return e==null||typeof e==`string`&&!e.trim()}function hT(e,t){return typeof t==`object`&&t?e===t:String(e)===String(t)}var gT=C.createContext(null);function _T(){return C.useContext(gT)}var vT=gT.Provider,yT=C.createContext(void 0);function bT(){let e=C.useContext(yT);if(e===void 0)throw Error(`MUI: MenuListContext is missing. MenuItems must be placed within Menu or MenuList.`);return e}function xT(e){let t=e?.element??e;if(!t)return``;if(e?.textValue!==void 0)return e.textValue;let n=t.innerText;return n===void 0&&(n=t.textContent),n??``}function ST(e,t){if(t===void 0)return!0;let n=xT(e);return n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(``))}function CT(e,t){return ST(e,t)?cy(e):!1}function wT(e,t){fT(e,t)}var TT=C.forwardRef(function(e,t){let{actions:n,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:o,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:l,variant:u=`selectedMenu`,...d}=e,f=C.useRef(null),p=C.useRef(!1),[m,h]=C.useState(!1),g=_T(),_=C.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null}),v=Jv({activeItemId:void 0,getDefaultActiveItemId:C.useCallback(e=>u===`selectedMenu`?e.find(e=>e.selected&&cy(e))?.id??e.find(e=>cy(e))?.id??null:e.find(e=>cy(e))?.id??null,[u]),orientation:`vertical`,wrap:!c}),{activeItemId:y,focusNext:b,getActiveItem:x,getContainerProps:S,getItemMap:w}=v,T=Up((e=!1)=>{if(!f.current||!e&&p.current)return null;if(i){let e=x();if(e?.element){let t=Array.from(w().values()).some(e=>e.selected);return h(u===`menu`&&t&&!e.selected&&g==null),wT(e.element,g),p.current=!0,e.element}return r?(h(!1),f.current.focus(),f.current):null}return r?(h(!1),f.current.focus(),p.current=!0,f.current):(h(!1),null)});Rp(()=>{if(!r&&!i){p.current=!1,h(!1);return}T()},[y,i,r,T]),C.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){let n=`${dT(Ip(e))}px`;f.current.style[t===`rtl`?`paddingLeft`:`paddingRight`]=n,f.current.style.width=`calc(100% + ${n})`}return f.current},focusInitialTarget:()=>{if(!f.current)return null;let e=Mp(Pp(f.current));return e&&_C(f.current,e)?e:T(!0)}}),[T]);let E=S(),D=Gp(f,E.ref,t),O=C.useMemo(()=>({itemsFocusableWhenDisabled:s,suppressInitialFocusVisible:m,variant:u}),[s,m,u]);return(0,B.jsx)(Jw,{role:`menu`,ref:D,className:o,onKeyDown:Up(e=>{if(m&&h(!1),(e.ctrlKey||e.metaKey||e.altKey)&&l){l(e);return}if(E.onKeyDown(e),e.key.length===1){let t=_.current,n=e.key.toLowerCase(),r=performance.now();t.keys.length>0&&(r-t.lastTime>500?(t.keys=[],t.repeating=!0,t.previousKeyMatched=!0):t.repeating&&n!==t.keys[0]&&(t.repeating=!1)),t.lastTime=r,t.keys.push(n);let i=Mp(Pp(f.current)),a=i&&!t.repeating&&ST(i,t);t.previousKeyMatched&&(a||b(e=>CT(e,t))!=null)?e.preventDefault():t.previousKeyMatched=!1}l&&l(e)}),onFocus:E.onFocus,tabIndex:-1,...d,children:(0,B.jsx)(yT.Provider,{value:O,children:(0,B.jsx)(Uv.Provider,{value:v,children:a})})})});function ET(e){return H(`MuiPopover`,e)}U(`MuiPopover`,[`root`,`paper`]);function DT(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function OT(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function kT(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function AT(e){return typeof e==`function`?e():e}var jT=e=>{let{classes:t}=e;return Gc({root:[`root`],paper:[`paper`]},ET,t)},MT=K(IC,{name:`MuiPopover`,slot:`Root`})({}),NT=K(Mh,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),PT=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiPopover`}),{action:r,anchorEl:i,anchorOrigin:a={vertical:`top`,horizontal:`left`},anchorPosition:o,anchorReference:s=`anchorEl`,children:c,className:l,container:u,disableAutoFocus:d=!1,elevation:f=8,marginThreshold:p=16,open:m,slots:h={},slotProps:g={},transformOrigin:_={vertical:`top`,horizontal:`left`},transitionDuration:v=`auto`,disableScrollLock:y=!1,...b}=n,x=C.useRef(),S={...n,anchorOrigin:a,anchorReference:s,elevation:f,marginThreshold:p,transformOrigin:_,transitionDuration:v},w=jT(S),T=C.useCallback(()=>{if(s===`anchorPosition`)return o;let e=AT(i),t=(e&&e.nodeType===1?e:Pp(x.current).body).getBoundingClientRect();return{top:t.top+DT(t,a.vertical),left:t.left+OT(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),E=C.useCallback(e=>({vertical:DT(e,_.vertical),horizontal:OT(e,_.horizontal)}),[_.horizontal,_.vertical]),D=C.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=E(t);if(s===`none`)return{top:null,left:null,transformOrigin:kT(n)};let r=T(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=Ip(AT(i)),d=u.innerHeight-p,f=u.innerWidth-p;if(p!=null&&a<p){let e=a-p;a-=e,n.vertical+=e}else if(p!=null&&c>d){let e=c-d;a-=e,n.vertical+=e}if(p!=null&&o<p){let e=o-p;o-=e,n.horizontal+=e}else if(l>f){let e=l-f;o-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(o)}px`,transformOrigin:kT(n)}},[i,s,T,E,p]),[O,k]=C.useState(m),A=C.useCallback(()=>{let e=x.current;if(!e)return;let t=D(e);t.top!=null&&e.style.setProperty(`top`,t.top),t.left!=null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,k(!0)},[D]);C.useEffect(()=>(y&&window.addEventListener(`scroll`,A),()=>window.removeEventListener(`scroll`,A)),[i,y,A]);let j=()=>{A()},M=()=>{k(!1)};C.useEffect(()=>{m&&A()}),C.useImperativeHandle(r,()=>m?{updatePosition:()=>{A()}}:null,[m,A]),C.useEffect(()=>{if(!m)return;let e=kp(()=>{A()}),t=Ip(AT(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,m,A]);let N=v,P={slots:h,slotProps:g},[F,I]=Y(`transition`,{elementType:gw,externalForwardedProps:P,ownerState:S,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),j()},onExited:t=>{e.onExited?.(t),M()}}),additionalProps:{appear:!0,in:m}});v===`auto`&&!F.muiSupportAuto&&(N=void 0);let L=u||(i?Pp(AT(i)).body:void 0),[ee,{slots:te,slotProps:ne,...re}]=Y(`root`,{ref:t,elementType:MT,externalForwardedProps:{...P,...b},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:qp(typeof g.backdrop==`function`?g.backdrop(S):g.backdrop,{invisible:!0})},container:L,open:m},ownerState:S,className:V(w.root,l)}),[ie,R]=Y(`paper`,{ref:x,className:w.paper,elementType:NT,externalForwardedProps:P,shouldForwardComponentProp:!0,additionalProps:{elevation:f,style:O?void 0:{opacity:0}},ownerState:S});return(0,B.jsx)(ee,{...re,...!_h(ee)&&{slots:te,slotProps:ne,disableAutoFocus:d,disableScrollLock:y},children:(0,B.jsx)(F,{...I,timeout:N,children:(0,B.jsx)(ie,{...R,children:c})})})});function FT(e){return H(`MuiMenu`,e)}U(`MuiMenu`,[`root`,`paper`,`list`]);var IT={vertical:`top`,horizontal:`right`},LT={vertical:`top`,horizontal:`left`},RT=e=>{let{classes:t}=e;return Gc({root:[`root`],paper:[`paper`],list:[`list`]},FT,t)},zT=K(PT,{shouldForwardProp:e=>Eu(e)||e===`classes`,name:`MuiMenu`,slot:`Root`})({}),BT=K(NT,{name:`MuiMenu`,slot:`Paper`})({maxHeight:`calc(100% - 96px)`,WebkitOverflowScrolling:`touch`}),Hee=K(TT,{name:`MuiMenu`,slot:`List`})({outline:0}),Uee=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiMenu`}),{autoFocus:r=!0,children:i,className:a,disableAutoFocusItem:o=!1,onClose:s,open:c,PopoverClasses:l,transitionDuration:u=`auto`,variant:d=`selectedMenu`,slots:f={},slotProps:p={},...m}=n,h=uc(),g={...n,autoFocus:r,disableAutoFocusItem:o,transitionDuration:u,variant:d},_=RT(g),v=r&&c,y=v&&!o,b=C.useRef(null),x=(e,t)=>{b.current&&(b.current.adjustStyleForScrollbar(e,{direction:h?`rtl`:`ltr`}),v&&b.current.focusInitialTarget?.())},S=e=>{e.key===`Tab`&&(e.preventDefault(),s&&s(e,`tabKeyDown`))},w={slots:f,slotProps:p},T=my({elementType:f.root,externalSlotProps:p.root,ownerState:g,className:[_.root,a]}),[E,D]=Y(`paper`,{className:_.paper,elementType:BT,externalForwardedProps:w,shouldForwardComponentProp:!0,ownerState:g}),[O,k]=Y(`list`,{className:_.list,elementType:Hee,shouldForwardComponentProp:!0,externalForwardedProps:w,getSlotProps:e=>({...e,onKeyDown:t=>{S(t),e.onKeyDown?.(t)}}),ownerState:g}),A=typeof p.transition==`function`?p.transition(g):p.transition;return(0,B.jsx)(zT,{disableAutoFocus:r,onClose:s,anchorOrigin:{vertical:`bottom`,horizontal:h?`right`:`left`},transformOrigin:h?IT:LT,slots:{root:f.root,paper:E,backdrop:f.backdrop,transition:f.transition},slotProps:{root:T,paper:D,backdrop:typeof p.backdrop==`function`?p.backdrop(g):p.backdrop,transition:{...A,onEntering:(...e)=>{x(...e),A?.onEntering?.(...e)}}},open:c,ref:t,transitionDuration:u,ownerState:g,...m,classes:l,children:(0,B.jsx)(O,{actions:b,autoFocus:v,autoFocusItem:y,variant:d,...k,children:i})})});function Wee(e){return H(`MuiMenuItem`,e)}var VT=U(`MuiMenuItem`,[`root`,`focusVisible`,`dense`,`disabled`,`divider`,`gutters`,`selected`]),Gee=(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Kee=e=>{let{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:o}=e,s=Gc({root:[`root`,n&&`dense`,t&&`disabled`,!i&&`gutters`,r&&`divider`,a&&`selected`]},Wee,o);return{...o,...s}},qee=K(Vm,{shouldForwardProp:e=>Eu(e)||e===`classes`,name:`MuiMenuItem`,slot:`Root`,overridesResolver:Gee})(xp(({theme:e})=>({...e.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:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}},[`&.${VT.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${VT.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${VT.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${VT.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${VT.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${KC.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${KC.inset}`]:{marginLeft:52},[`& .${sT.root}`]:{marginTop:0,marginBottom:0},[`& .${sT.inset}`]:{paddingLeft:36},[`& .${nT.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:`padding-box`}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up(`sm`)]:{minHeight:`auto`}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${nT.root} svg`]:{fontSize:`1.25rem`}}}]}))),HT=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiMenuItem`}),{autoFocus:r=!1,component:i=`li`,dense:a=!1,divider:o=!1,disableGutters:s=!1,focusVisibleClassName:c,role:l=`menuitem`,tabIndex:u,className:d,...f}=n,p=_T(),m=C.useContext(Uw),h=C.useMemo(()=>({dense:a||m.dense||!1,disableGutters:s}),[m.dense,a,s]),g=bT(),_=zp(),v=g.suppressInitialFocusVisible,y=g.itemsFocusableWhenDisabled,b=C.useRef(null);Rp(()=>{r&&b.current&&fT(b.current,p)},[r]);let x={...n,dense:h.dense,divider:o,disableGutters:s},S=Kee(n),{root:w,...T}=S,E=Yv({id:_,ref:t,disabled:n.disabled,focusableWhenDisabled:y,selected:n.selected}),D=Gp(b,E.ref),O;return u===void 0?g.variant===`selectedMenu`?O=E.tabIndex:(!n.disabled||y)&&(O=-1):O=u,(0,B.jsx)(Uw.Provider,{value:h,children:(0,B.jsx)(qee,{ref:D,role:l,tabIndex:O,component:i,internalNativeButton:!1,focusableWhenDisabled:y,suppressFocusVisible:v,focusVisibleClassName:V(S.focusVisible,c),className:V(S.root,d),...f,ownerState:x,classes:T})})});function Jee(e){return H(`MuiNativeSelect`,e)}var UT=U(`MuiNativeSelect`,[`root`,`select`,`multiple`,`filled`,`outlined`,`standard`,`disabled`,`icon`,`iconOpen`,`iconFilled`,`iconOutlined`,`iconStandard`,`nativeInput`,`error`]),Yee=e=>{let{classes:t,variant:n,disabled:r,multiple:i,open:a,error:o}=e;return Gc({select:[`select`,n,r&&`disabled`,i&&`multiple`,o&&`error`],icon:[`icon`,`icon${q(n)}`,a&&`iconOpen`,r&&`disabled`]},Jee,t)},WT=K(`select`,{name:`MuiNativeSelect`})(({theme:e})=>({MozAppearance:`none`,WebkitAppearance:`none`,userSelect:`none`,borderRadius:0,cursor:`pointer`,"&:focus":{borderRadius:0},[`&.${UT.disabled}`]:{cursor:`default`},"&[multiple]":{height:`auto`},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).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:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),Xee=K(WT,{name:`MuiNativeSelect`,slot:`Select`,shouldForwardProp:Eu,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${UT.multiple}`]:t.multiple}]}})({}),GT=K(`svg`,{name:`MuiNativeSelect`})(({theme:e})=>({position:`absolute`,right:0,top:`calc(50% - .5em)`,pointerEvents:`none`,color:(e.vars||e).palette.action.active,[`&.${UT.disabled}`]:{color:(e.vars||e).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}}]})),Zee=K(GT,{name:`MuiNativeSelect`,slot:`Icon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${q(n.variant)}`],n.open&&t.iconOpen]}})({}),Qee=C.forwardRef(function(e,t){let{className:n,disabled:r,error:i,IconComponent:a,inputRef:o,variant:s=`standard`,...c}=e,l={...e,disabled:r,variant:s,error:i},u=Yee(l);return(0,B.jsxs)(C.Fragment,{children:[(0,B.jsx)(Xee,{ownerState:l,className:V(u.select,n),disabled:r,ref:o||t,...c}),e.multiple?null:(0,B.jsx)(Zee,{as:a,ownerState:l,className:u.icon})]})});function KT(e){return H(`MuiSelect`,e)}var qT=U(`MuiSelect`,[`root`,`select`,`multiple`,`filled`,`outlined`,`standard`,`disabled`,`focused`,`icon`,`iconOpen`,`nativeInput`,`error`]),$ee,JT=2,ete=400,YT=200;function XT(e,t){if(!t)return!1;if(e.composedPath().includes(t)||e.target?.nodeType&&t.contains(e.target))return!0;let n=t.getBoundingClientRect();return n.width===0&&n.height===0?!1:e.clientX>=n.left-JT&&e.clientX<=n.right+JT&&e.clientY>=n.top-JT&&e.clientY<=n.bottom+JT}var tte=K(WT,{name:`MuiSelect`,slot:`Select`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`&.${qT.select}`]:t.select},{[`&.${qT.select}`]:t[n.variant]},{[`&.${qT.error}`]:t.error},{[`&.${qT.multiple}`]:t.multiple}]}})({[`&.${qT.select}`]:{height:`auto`,minHeight:`1.4375em`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,overflow:`hidden`}}),nte=K(GT,{name:`MuiSelect`,slot:`Icon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.open&&t.iconOpen]}})({}),rte=K(`input`,{shouldForwardProp:e=>Tu(e)&&e!==`classes`,name:`MuiSelect`,slot:`NativeInput`})({bottom:0,left:0,position:`absolute`,opacity:0,pointerEvents:`none`,width:`100%`,boxSizing:`border-box`}),ite=e=>{let{classes:t,variant:n,disabled:r,multiple:i,open:a,error:o}=e;return Gc({select:[`select`,n,r&&`disabled`,i&&`multiple`,o&&`error`],icon:[`icon`,a&&`iconOpen`,r&&`disabled`],nativeInput:[`nativeInput`]},KT,t)},ate=C.forwardRef(function(e,t){let{"aria-describedby":n,"aria-label":r,autoFocus:i,autoWidth:a,children:o,className:s,defaultOpen:c,defaultValue:l,disabled:u,displayEmpty:d,error:f=!1,IconComponent:p,inputRef:m,labelId:h,MenuProps:g={},multiple:_,name:v,onBlur:y,onChange:b,onClose:x,onFocus:S,onKeyDown:w,onMouseDown:T,onOpen:E,open:D,readOnly:O,renderValue:k,required:A,SelectDisplayProps:j={},tabIndex:M,type:N,value:P,variant:F=`standard`,...I}=e,[L,ee]=Vp({controlled:P,default:l,name:`Select`}),[te,ne]=Vp({controlled:D,default:c,name:`Select`}),re=C.useRef(null),ie=C.useRef(null),R=C.useRef(null),ae=C.useRef(!1),oe=C.useRef(!1),se=C.useRef(null),ce=C.useRef(!1),le=C.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),ue=Om(),z=Om(),[de,fe]=C.useState(null),{current:pe}=C.useRef(D!=null),[me,he]=C.useState(),[ge,_e]=C.useState(null),ve=Gp(t,m),ye=C.useCallback(e=>{ie.current=e,e&&fe(e)},[]),be=de?.parentNode;C.useImperativeHandle(ve,()=>({focus:()=>{ie.current.focus()},node:re.current,value:L}),[L]);let xe=de!==null&&te;Rp(()=>{ae.current=xe},[xe]);let Se=C.useCallback(()=>{ue.clear(),z.clear()},[ue,z]),Ce=C.useCallback(()=>{Se(),ce.current=!1,le.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},[Se]),we=C.useCallback(()=>{se.current&&=(se.current(),null)},[]);C.useEffect(()=>{xe||(Ce(),we())},[xe,Ce,we]),C.useEffect(()=>()=>{Ce(),we()},[Ce,we]),C.useEffect(()=>{if(!xe||!be||a||typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{he(be.clientWidth)});return e.observe(be),()=>{e.disconnect()}},[xe,be,a]),C.useEffect(()=>{c&&te&&de&&!pe&&(he(a?null:be.clientWidth),ie.current.focus())},[de,a]),C.useEffect(()=>{i&&ie.current.focus()},[i]),C.useEffect(()=>{if(!h)return;let e=Pp(ie.current).getElementById(h);if(e){let t=()=>{getSelection().isCollapsed&&ie.current.focus()};return e.addEventListener(`click`,t),()=>{e.removeEventListener(`click`,t)}}},[h]);let Te=Up((e,t)=>{e||(Ce(),we()),e?(_e(pT(t)),E&&E(t)):(_e(null),x&&x(t)),pe||(ae.current=e,he(a?null:be.clientWidth),ne(e))}),Ee=()=>{Ce(),oe.current?z.start(YT,()=>{le.current.allowUnselectedMouseUp=!0,ue.start(YT,()=>{le.current.allowSelectedMouseUp=!0})}):ue.start(ete,()=>{le.current.allowSelectedMouseUp=!0,le.current.allowUnselectedMouseUp=!0})},De=e=>{if(T?.(e),e.button!==0)return;e.preventDefault(),ie.current.focus();let t=Pp(e.currentTarget);Ee(),we();let n=e=>{se.current=null,ie.current&&(XT(e,ie.current)||XT(e,R.current)||!ae.current&&pe||Te(!1,e))};t.addEventListener(`mouseup`,n,{capture:!0,once:!0}),se.current=()=>{t.removeEventListener(`mouseup`,n,!0)},Te(!0,e)},Oe=e=>{Te(!1,e)},ke=C.Children.toArray(o),Ae=e=>{let t=ke.find(t=>t.props.value===e.target.value);t!==void 0&&(ee(t.props.value),b&&b(e,t))},je=e=>t=>{ce.current=!1;let n;if(t.currentTarget.hasAttribute(`tabindex`)){if(_){n=Array.isArray(L)?L.slice():[];let t=L.indexOf(e.props.value);t===-1?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),L!==n&&(ee(n),b)){let r=t.nativeEvent||t,i=new r.constructor(r.type,r);Object.defineProperty(i,`target`,{writable:!0,value:{value:n,name:v}}),b(i,e)}_||Te(!1,t)}},Me=(e,t)=>n=>{if(e.props.onMouseUp?.(n),ce.current){ce.current=!1;return}let r=!le.current.allowSelectedMouseUp&&t,i=!le.current.allowUnselectedMouseUp&&!t;r||i||n.currentTarget.click()},Ne=e=>{O||([` `,`ArrowUp`,`ArrowDown`,`Enter`].includes(e.key)&&(e.preventDefault(),Te(!0,e)),w?.(e))},Pe=e=>{!xe&&y&&(Object.defineProperty(e,`target`,{writable:!0,value:{value:L,name:v}}),y(e))};delete I[`aria-invalid`];let Fe,Ie,Le=[],Re=!1,ze=!1;(s_({value:L})||d)&&(k?Fe=k(L):Re=!0);let Be=ke.map(e=>{if(!C.isValidElement(e))return null;let t;if(_){if(!Array.isArray(L))throw Error(Yn(2));t=L.some(t=>hT(t,e.props.value)),t&&Re&&Le.push(e.props.children)}else t=hT(L,e.props.value),t&&Re&&(Ie=e.props.children);return t&&(ze=!0),C.cloneElement(e,{"aria-selected":t?`true`:`false`,onMouseDown:t=>{ce.current=!0,e.props.onMouseDown?.(t)},onPointerDown:t=>{ce.current=!0,e.props.onPointerDown?.(t)},onClick:je(e),onMouseUp:Me(e,t),onKeyUp:t=>{t.key===` `&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:`option`,selected:t,value:void 0,"data-value":e.props.value})});Rp(()=>{oe.current=ze},[ze]),Re&&(Fe=_?Le.length===0?null:Le.reduce((e,t,n)=>(e.push(t),n<Le.length-1&&e.push(`, `),e),[]):Ie);let Ve=me;!a&&pe&&de&&(Ve=be.clientWidth);let He;He=M===void 0?u?null:0:M;let Ue=j.id||(v?`mui-component-select-${v}`:void 0),We={...e,variant:F,value:L,open:xe,error:f},Ge=ite(We),Ke=typeof g.slotProps?.paper==`function`?g.slotProps.paper(We):g.slotProps?.paper,qe=Gp(Ke?.ref,R),Je=typeof g.slotProps?.list==`function`?g.slotProps.list(We):g.slotProps?.list,Ye=vc(),Xe=vc();return(0,B.jsxs)(C.Fragment,{children:[(0,B.jsx)(tte,{as:`div`,ref:ye,tabIndex:He,role:`combobox`,"aria-controls":xe?Ye:void 0,"aria-disabled":u?`true`:void 0,"aria-expanded":xe?`true`:`false`,"aria-haspopup":`listbox`,"aria-label":r,"aria-labelledby":h,"aria-describedby":n,"aria-required":A?`true`:void 0,"aria-invalid":f?`true`:void 0,onKeyDown:Ne,onMouseDown:u||O?null:De,onBlur:Pe,onFocus:S,...j,ownerState:We,className:V(j.className,Ge.select,s),id:Ue,children:mT(Fe)?$ee||=(0,B.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:`​`}):Fe}),(0,B.jsx)(rte,{"aria-invalid":f,value:Array.isArray(L)?L.join(`,`):L,name:v,ref:re,"aria-hidden":!0,onChange:Ae,tabIndex:-1,disabled:u,className:Ge.nativeInput,autoFocus:i,required:A,...I,id:I.id??Xe,ownerState:We}),(0,B.jsx)(nte,{as:p,className:Ge.icon,ownerState:We}),(0,B.jsx)(vT,{value:ge,children:(0,B.jsx)(Uee,{id:`menu-${v||``}`,anchorEl:be,open:xe,onClose:Oe,anchorOrigin:{vertical:`bottom`,horizontal:`center`},transformOrigin:{vertical:`top`,horizontal:`center`},...g,slotProps:{...g.slotProps,list:{"aria-labelledby":h,role:`listbox`,"aria-multiselectable":_?`true`:void 0,disableListWrap:!0,id:Ye,...Je},paper:{...Ke,ref:qe,style:{minWidth:Ve,...Ke?.style}}},children:Be})})]})}),ote=e=>{let{classes:t}=e,n=Gc({root:[`root`]},KT,t);return{...t,...n}},ZT={name:`MuiSelect`,slot:`Root`,shouldForwardProp:e=>Eu(e)&&e!==`variant`},ste=K(bw,ZT)(``),cte=K(A_,ZT)(``),lte=K(I_,ZT)(``),QT=C.forwardRef(function(e,t){let n=J({name:`MuiSelect`,props:e}),{autoWidth:r=!1,children:i,classes:a={},className:o,defaultOpen:s=!1,displayEmpty:c=!1,IconComponent:l=Oy,id:u,input:d,inputProps:f,label:p,labelId:m,MenuProps:h,multiple:g=!1,native:_=!1,onClose:v,onOpen:y,open:b,renderValue:x,SelectDisplayProps:S,variant:w=`outlined`,...T}=n,E=_?Qee:ate,[D]=a_({props:n,states:[`variant`,`error`]}),O=D.variant||w,k={...n,variant:O,classes:a},A=ote(k),{root:j,...M}=A,N=d||{standard:(0,B.jsx)(ste,{ownerState:k}),outlined:(0,B.jsx)(cte,{label:p,ownerState:k}),filled:(0,B.jsx)(lte,{ownerState:k})}[O],P=Gp(t,hy(N));return(0,B.jsx)(C.Fragment,{children:C.cloneElement(N,{inputComponent:E,inputProps:{children:i,error:D.error,IconComponent:l,variant:O,type:void 0,multiple:g,..._?{id:u}:{autoWidth:r,defaultOpen:s,displayEmpty:c,labelId:m,MenuProps:h,onClose:v,onOpen:y,open:b,renderValue:x,SelectDisplayProps:{id:u,...S}},...f,classes:f?Ta(M,f.classes):M,...d?d.props.inputProps:{}},...(g&&_||c)&&O===`outlined`?{notched:!0}:{},ref:P,className:V(N.props.className,o,A.root),...!d&&{variant:O},...T})})});QT.muiName=`Select`;function ute(e){return H(`MuiSkeleton`,e)}U(`MuiSkeleton`,[`root`,`text`,`rectangular`,`rounded`,`circular`,`pulse`,`wave`,`withChildren`,`fitContent`,`heightAuto`]);var dte=e=>{let{classes:t,variant:n,animation:r,hasChildren:i,width:a,height:o}=e;return Gc({root:[`root`,n,r,i&&`withChildren`,i&&!a&&`fitContent`,i&&!o&&`heightAuto`]},ute,t)},$T=Qi`
204
- 0% {
205
- opacity: 1;
206
- }
207
-
208
- 50% {
209
- opacity: 0.4;
210
- }
211
-
212
- 100% {
213
- opacity: 1;
214
- }
215
- `,eE=Qi`
216
- 0% {
217
- transform: translateX(-100%);
218
- }
219
-
220
- 50% {
221
- /* +0.5s of delay between each loop */
222
- transform: translateX(100%);
223
- }
224
-
225
- 100% {
226
- transform: translateX(100%);
227
- }
228
- `,fte=typeof $T==`string`?null:Zi`
229
- animation: ${$T} 2s ease-in-out 0.5s infinite;
230
- `,pte=typeof eE==`string`?null:Zi`
231
- &::after {
232
- animation: ${eE} 2s linear 0.5s infinite;
233
- }
234
- `,mte=K(`span`,{name:`MuiSkeleton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(xp(({theme:e})=>{let t=hu(e.shape.borderRadius)||`px`,n=gu(e.shape.borderRadius);return{display:`block`,backgroundColor:e.vars?e.vars.palette.Skeleton.bg:e.alpha(e.palette.text.primary,e.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:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:`"\\00a0"`}}},{props:{variant:`circular`},style:{borderRadius:`50%`}},{props:{variant:`rounded`},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:e})=>e.hasChildren,style:{"& > *":{visibility:`hidden`}}},{props:({ownerState:e})=>e.hasChildren&&!e.width,style:{maxWidth:`fit-content`}},{props:({ownerState:e})=>e.hasChildren&&!e.height,style:{height:`auto`}},{props:{animation:`pulse`},style:fte||{animation:`${$T} 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(
235
- 90deg,
236
- transparent,
237
- ${(e.vars||e).palette.action.hover},
238
- transparent
239
- )`,content:`""`,position:`absolute`,transform:`translateX(-100%)`,bottom:0,left:0,right:0,top:0}}},{props:{animation:`wave`},style:pte||{"&::after":{animation:`${eE} 2s linear 0.5s infinite`}}}]}})),tE=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiSkeleton`}),{animation:r=`pulse`,className:i,component:a=`span`,height:o,style:s,variant:c=`text`,width:l,...u}=n,d={...n,animation:r,component:a,variant:c,hasChildren:!!u.children};return(0,B.jsx)(mte,{as:a,ref:t,className:V(dte(d).root,i),ownerState:d,...u,style:{width:l,height:o,...s}})});function hte(e={}){let{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:a}=e,o=Om();C.useEffect(()=>{if(!i)return;function e(e){e.defaultPrevented||e.key===`Escape`&&r?.(e,`escapeKeyDown`)}return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[i,r]);let s=Hp((e,t)=>{r?.(e,t)}),c=Hp(e=>{!r||e==null||o.start(e,()=>{s(null,`timeout`)})});C.useEffect(()=>(i&&c(t),o.clear),[i,t,c,o]);let l=e=>{r?.(e,`clickaway`)},u=o.clear,d=C.useCallback(()=>{t!=null&&c(a??t*.5)},[t,a,c]),f=e=>t=>{let n=e.onBlur;n?.(t),d()},p=e=>t=>{let n=e.onFocus;n?.(t),u()},m=e=>t=>{let n=e.onMouseEnter;n?.(t),u()},h=e=>t=>{let n=e.onMouseLeave;n?.(t),d()};return C.useEffect(()=>{if(!n&&i)return window.addEventListener(`focus`,d),window.addEventListener(`blur`,u),()=>{window.removeEventListener(`focus`,d),window.removeEventListener(`blur`,u)}},[n,i,d,u]),{getRootProps:(t={})=>{let n={...bh(e),...bh(t)};return{role:`presentation`,...t,...n,onBlur:f(n),onFocus:p(n),onMouseEnter:m(n),onMouseLeave:h(n)}},onClickAway:l}}function gte(e){return H(`MuiSnackbarContent`,e)}U(`MuiSnackbarContent`,[`root`,`message`,`action`]);var _te=e=>{let{classes:t}=e;return Gc({root:[`root`],action:[`action`],message:[`message`]},gte,t)},vte=K(Mh,{name:`MuiSnackbarContent`,slot:`Root`})(xp(({theme:e})=>{let t=e.palette.mode===`light`?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(tc(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:tc(e.palette.background.default,t),display:`flex`,alignItems:`center`,flexWrap:`wrap`,padding:`6px 16px`,flexGrow:1,[e.breakpoints.up(`sm`)]:{flexGrow:`initial`,minWidth:288}}})),yte=K(`div`,{name:`MuiSnackbarContent`,slot:`Message`})({padding:`8px 0`}),bte=K(`div`,{name:`MuiSnackbarContent`,slot:`Action`})({display:`flex`,alignItems:`center`,marginLeft:`auto`,paddingLeft:16,marginRight:-8}),xte=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiSnackbarContent`}),{action:r,className:i,message:a,role:o=`alert`,...s}=n,c=n,l=_te(c);return(0,B.jsxs)(vte,{role:o,elevation:6,className:V(l.root,i),ownerState:c,ref:t,...s,children:[(0,B.jsx)(yte,{className:l.message,ownerState:c,children:a}),r?(0,B.jsx)(bte,{className:l.action,ownerState:c,children:r}):null]})});function Ste(e){return H(`MuiSnackbar`,e)}U(`MuiSnackbar`,[`root`,`anchorOriginTopCenter`,`anchorOriginBottomCenter`,`anchorOriginTopRight`,`anchorOriginBottomRight`,`anchorOriginTopLeft`,`anchorOriginBottomLeft`]);var Cte=e=>{let{classes:t,anchorOrigin:n}=e;return Gc({root:[`root`,`anchorOrigin${q(n.vertical)}${q(n.horizontal)}`]},Ste,t)},wte=K(`div`,{name:`MuiSnackbar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`anchorOrigin${q(n.anchorOrigin.vertical)}${q(n.anchorOrigin.horizontal)}`]]}})(xp(({theme:e})=>({zIndex:(e.vars||e).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,[e.breakpoints.up(`sm`)]:{top:24}}},{props:({ownerState:e})=>e.anchorOrigin.vertical!==`top`,style:{bottom:8,[e.breakpoints.up(`sm`)]:{bottom:24}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal===`left`,style:{justifyContent:`flex-start`,[e.breakpoints.up(`sm`)]:{left:24,right:`auto`}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal===`right`,style:{justifyContent:`flex-end`,[e.breakpoints.up(`sm`)]:{right:24,left:`auto`}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal===`center`,style:{[e.breakpoints.up(`sm`)]:{left:`50%`,right:`auto`,transform:`translateX(-50%)`}}}]}))),Tte=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiSnackbar`}),r=Cu(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:o,horizontal:s}={vertical:`bottom`,horizontal:`left`},autoHideDuration:c=null,children:l,className:u,disableWindowBlurListener:d=!1,message:f,onBlur:p,onClose:m,onFocus:h,onMouseEnter:g,onMouseLeave:_,open:v,resumeHideDuration:y,slots:b={},slotProps:x={},transitionDuration:S=i,...w}=n,T={...n,anchorOrigin:{vertical:o,horizontal:s},autoHideDuration:c,disableWindowBlurListener:d,transitionDuration:S},E=Cte(T),{getRootProps:D,onClickAway:O}=hte(T),[k,A]=C.useState(!0),j={slots:b,slotProps:x},[M,N]=Y(`root`,{ref:t,className:[E.root,u],elementType:wte,getSlotProps:D,externalForwardedProps:{...j,...w},ownerState:T}),[P,{ownerState:F,...I}]=Y(`clickAwayListener`,{elementType:aC,externalForwardedProps:j,getSlotProps:e=>({onClickAway:(...t)=>{let n=t[0];e.onClickAway?.(...t),!n?.defaultMuiPrevented&&O(...t)}}),ownerState:T}),[L,ee]=Y(`content`,{elementType:xte,shouldForwardComponentProp:!0,externalForwardedProps:j,additionalProps:{message:f,action:a},ownerState:T}),[te,ne]=Y(`transition`,{elementType:gw,externalForwardedProps:j,getSlotProps:e=>({onEnter:(...t)=>{e.onEnter?.(...t),A(!1)},onExited:(...t)=>{e.onExited?.(...t),A(!0)}}),additionalProps:{appear:!0,in:v,timeout:S,direction:o===`top`?`down`:`up`},ownerState:T});return!v&&k?null:(0,B.jsx)(P,{...I,...b.clickAwayListener&&{ownerState:F},children:(0,B.jsx)(M,{...N,children:(0,B.jsx)(te,{...ne,children:l||(0,B.jsx)(L,{...ee})})})})});function Ete(e){return H(`MuiTooltip`,e)}var nE=U(`MuiTooltip`,[`popper`,`popperInteractive`,`popperArrow`,`popperClose`,`tooltip`,`tooltipArrow`,`touch`,`tooltipPlacementLeft`,`tooltipPlacementRight`,`tooltipPlacementTop`,`tooltipPlacementBottom`,`arrow`]);function Dte(e){return Math.round(e*1e5)/1e5}var Ote=e=>{let{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e;return Gc({popper:[`popper`,!n&&`popperInteractive`,r&&`popperArrow`],tooltip:[`tooltip`,r&&`tooltipArrow`,i&&`touch`,`tooltipPlacement${q(a.split(`-`)[0])}`],arrow:[`arrow`]},Ete,t)},kte=K(by,{name:`MuiTooltip`,slot:`Popper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(xp(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:`none`,variants:[{props:({ownerState:e,open:t})=>t&&!e.disableInteractive,style:{pointerEvents:`auto`}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${nE.arrow}`]:{top:0,marginTop:`-0.71em`,"&::before":{transformOrigin:`0 100%`}},[`&[data-popper-placement*="top"] .${nE.arrow}`]:{bottom:0,marginBottom:`-0.71em`,"&::before":{transformOrigin:`100% 0`}},[`&[data-popper-placement*="right"] .${nE.arrow}`]:{height:`1em`,width:`0.71em`,insetInlineStart:0,marginInlineStart:`-0.71em`,"&::before":{transformOrigin:`100% 100%`}},[`&[data-popper-placement*="left"] .${nE.arrow}`]:{height:`1em`,width:`0.71em`,insetInlineEnd:0,marginInlineEnd:`-0.71em`,"&::before":{transformOrigin:`0 0`}}}}]}))),Ate=K(`div`,{name:`MuiTooltip`,slot:`Tooltip`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${q(n.placement.split(`-`)[0])}`]]}})(xp(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:`4px 8px`,fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:`break-word`,fontWeight:e.typography.fontWeightMedium,[`.${nE.popper}[data-popper-placement*="left"] &`]:{transformOrigin:`right center`,marginInlineEnd:`14px`},[`.${nE.popper}[data-popper-placement*="right"] &`]:{transformOrigin:`left center`,marginInlineStart:`14px`},[`.${nE.popper}[data-popper-placement*="top"] &`]:{transformOrigin:`center bottom`,marginBottom:`14px`},[`.${nE.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:`center top`,marginTop:`14px`},variants:[{props:({ownerState:e})=>e.arrow,style:{position:`relative`,marginBlock:0}},{props:({ownerState:e})=>e.touch,style:{padding:`8px 16px`,fontSize:e.typography.pxToRem(14),lineHeight:`${Dte(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>e.touch,style:{[`.${nE.popper}[data-popper-placement*="left"] &`]:{marginInlineEnd:`24px`},[`.${nE.popper}[data-popper-placement*="right"] &`]:{marginInlineStart:`24px`},[`.${nE.popper}[data-popper-placement*="top"] &`]:{marginBottom:`24px`},[`.${nE.popper}[data-popper-placement*="bottom"] &`]:{marginTop:`24px`}}}]}))),jte=K(`span`,{name:`MuiTooltip`,slot:`Arrow`})(xp(({theme:e})=>({overflow:`hidden`,position:`absolute`,width:`1em`,height:`0.71em`,boxSizing:`border-box`,color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:`""`,margin:`auto`,display:`block`,width:`100%`,height:`100%`,backgroundColor:`currentColor`,transform:`rotate(45deg)`}}))),rE=!1,iE=new Dm,aE={x:0,y:0};function oE(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}var sE=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiTooltip`}),{arrow:r=!1,children:i,classes:a,describeChild:o=!1,disableFocusListener:s=!1,disableHoverListener:c=!1,disableInteractive:l=!1,disableTouchListener:u=!1,enterDelay:d=100,enterNextDelay:f=0,enterTouchDelay:p=700,followCursor:m=!1,id:h,leaveDelay:g=0,leaveTouchDelay:_=1500,onClose:v,onOpen:y,open:b,placement:x=`bottom`,slotProps:S={},slots:w={},title:T,...E}=n,D=C.isValidElement(i)?i:(0,B.jsx)(`span`,{children:i}),O=Cu(),[k,A]=C.useState(),[j,M]=C.useState(null),N=C.useRef(!1),P=l||m,F=Om(),I=Om(),L=Om(),ee=Om(),[te,ne]=Vp({controlled:b,default:!1,name:`Tooltip`,state:`open`}),re=te,ie=zp(h),R=C.useRef(),ae=Up(()=>{R.current!==void 0&&(document.body.style.WebkitUserSelect=R.current,R.current=void 0),ee.clear()});C.useEffect(()=>ae,[ae]);let oe=e=>{iE.clear(),rE=!0,ne(!0),y&&!re&&y(e)},se=Up(e=>{iE.start(800+g,()=>{rE=!1}),ne(!1),v&&re&&v(e),F.start(O.transitions.duration.shortest,()=>{N.current=!1})}),ce=e=>{N.current&&e.type!==`touchstart`||(k&&k.removeAttribute(`title`),I.clear(),L.clear(),d||rE&&f?I.start(rE?f:d,()=>{oe(e)}):oe(e))},le=e=>{I.clear(),L.start(g,()=>{se(e)})},[,ue]=C.useState(!1),z=e=>{let t=e?.target??k;if(!t||t.disabled||!Zp(t)){ue(!1);let n=e??new Event(`blur`);!e&&t&&(Object.defineProperty(n,`target`,{value:t}),Object.defineProperty(n,`currentTarget`,{value:t})),le(n)}},de=e=>{if(k||A(e.currentTarget),Zp(e.target)){let t=e=>{e.target.disabled&&z(e),e.target.removeEventListener(`blur`,t)};e.target.addEventListener(`blur`,t),ue(!0),ce(e)}},fe=e=>{N.current=!0;let t=D.props;t.onTouchStart&&t.onTouchStart(e)},pe=e=>{fe(e),L.clear(),F.clear(),ae(),R.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect=`none`,ee.start(p,()=>{document.body.style.WebkitUserSelect=R.current,ce(e)})},me=e=>{D.props.onTouchEnd&&D.props.onTouchEnd(e),ae(),L.start(_,()=>{se(e)})};C.useEffect(()=>{if(!re)return;function e(e){e.key===`Escape`&&se(e)}return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[se,re]);let he=Gp(hy(D),A,t);!T&&T!==0&&(re=!1);let ge=C.useRef(),_e=e=>{let t=D.props;t.onMouseMove&&t.onMouseMove(e),aE={x:e.clientX,y:e.clientY},ge.current&&ge.current.update()},ve={},ye=typeof T==`string`;o?(ve.title=!re&&ye&&!c?T:null,ve[`aria-describedby`]=re?ie:null):(ve[`aria-label`]=ye?T:null,ve[`aria-labelledby`]=re&&!ye?ie:null);let be={...ve,...E,...D.props,className:V(E.className,D.props.className),onTouchStart:fe,ref:he,...m?{onMouseMove:_e}:{}},xe={};u||(be.onTouchStart=pe,be.onTouchEnd=me),c||(be.onMouseOver=oE(ce,be.onMouseOver),be.onMouseLeave=oE(le,be.onMouseLeave),P||(xe.onMouseOver=ce,xe.onMouseLeave=le)),s||(be.onFocus=oE(de,be.onFocus),be.onBlur=oE(z,be.onBlur),P||(xe.onFocus=de,xe.onBlur=z));let Se={...n,arrow:r,disableInteractive:P,placement:x,touch:N.current},Ce=typeof S.popper==`function`?S.popper(Se):S.popper,we=C.useMemo(()=>{let e=[{name:`arrow`,enabled:!!j,options:{element:j,padding:4}}];return Ce?.popperOptions?.modifiers&&(e=e.concat(Ce.popperOptions.modifiers)),{...Ce?.popperOptions,modifiers:e}},[j,Ce?.popperOptions]),Te=Ote(Se),Ee={slots:w,slotProps:{arrow:S.arrow,popper:Ce,tooltip:S.tooltip,transition:S.transition}},[De,Oe]=Y(`popper`,{elementType:kte,externalForwardedProps:Ee,ownerState:Se,className:Te.popper}),[ke,Ae]=Y(`transition`,{elementType:gw,externalForwardedProps:Ee,ownerState:Se}),[je,Me]=Y(`tooltip`,{elementType:Ate,className:Te.tooltip,externalForwardedProps:Ee,ownerState:Se}),[Ne,Pe]=Y(`arrow`,{elementType:jte,className:Te.arrow,externalForwardedProps:Ee,ownerState:Se,ref:M});return(0,B.jsxs)(C.Fragment,{children:[C.cloneElement(D,be),(0,B.jsx)(De,{as:by,placement:x,anchorEl:m?{getBoundingClientRect:()=>({top:aE.y,left:aE.x,right:aE.x,bottom:aE.y,width:0,height:0})}:k,popperRef:ge,open:k?re:!1,id:ie,transition:!0,...xe,...Oe,popperOptions:we,children:({TransitionProps:e})=>(0,B.jsx)(ke,{timeout:O.transitions.duration.shorter,...e,...Ae,children:(0,B.jsxs)(je,{...Me,children:[T,r?(0,B.jsx)(Ne,{...Pe}):null]})})})]})}),cE=il({createStyledComponent:K(`div`,{name:`MuiStack`,slot:`Root`}),useThemeProps:e=>J({props:e,name:`MuiStack`})});function Mte(e){return H(`MuiStep`,e)}U(`MuiStep`,[`root`,`horizontal`,`vertical`,`alternativeLabel`,`completed`]);var Nte=e=>{let{classes:t,orientation:n,alternativeLabel:r,completed:i}=e;return Gc({root:[`root`,n,r&&`alternativeLabel`,i&&`completed`]},Mte,t)},Pte=K(`li`,{name:`MuiStep`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})({variants:[{props:{orientation:`horizontal`},style:{paddingLeft:8,paddingRight:8}},{props:{alternativeLabel:!0},style:{flex:1,position:`relative`}}]}),Fte=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiStep`}),{active:r,children:i,className:a,component:o=`li`,completed:s,disabled:c,expanded:l=!1,index:u,last:d,...f}=n,{activeStep:p,connector:m,alternativeLabel:h,orientation:g,nonLinear:_,isTabList:v}=Yh(),[y=!1,b=!1,x=!1]=[r,s,c];p===u?y=r===void 0?!0:r:!_&&p>u?b=s===void 0?!0:s:!_&&p<u&&(x=c===void 0?!0:c);let S=C.useMemo(()=>({index:u,last:d,expanded:l,icon:u+1,active:y,completed:b,disabled:x}),[u,d,l,y,b,x]),w={...n,active:y,orientation:g,alternativeLabel:h,completed:b,disabled:x,expanded:l,component:o},T=(0,B.jsxs)(Pte,{as:o,className:V(Nte(w).root,a),ref:t,ownerState:w,role:v?`presentation`:void 0,...f,children:[m&&h&&u!==0?m:null,i]});return(0,B.jsx)(qh.Provider,{value:S,children:m&&!h&&u!==0?(0,B.jsxs)(C.Fragment,{children:[m,T]}):T})});function Ite(e){return H(`MuiStepButton`,e)}var lE=U(`MuiStepButton`,[`root`,`horizontal`,`vertical`,`touchRipple`]),Lte=e=>{let{classes:t,orientation:n}=e;return Gc({root:[`root`,n],touchRipple:[`touchRipple`]},Ite,t)},uE=K(Vm,{name:`MuiStepButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${lE.touchRipple}`]:t.touchRipple},t.root,t[n.orientation]]}})({width:`100%`,padding:`24px 16px`,margin:`-24px -16px`,boxSizing:`content-box`,[`& .${lE.touchRipple}`]:{color:`rgba(0, 0, 0, 0.3)`},variants:[{props:{orientation:`vertical`},style:{justifyContent:`flex-start`,padding:`8px`,margin:`-8px`}}]}),Rte=C.forwardRef(function(e,t){let{children:n,disabled:r,index:i,...a}=e;return(0,B.jsx)(uE,{disabled:r,...Yv({id:i,ref:t,disabled:r}),...a,children:n})}),dE=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiStepButton`}),{children:r,className:i,icon:a,optional:o,...s}=n,{disabled:c,active:l,index:u}=C.useContext(qh),{orientation:d,totalSteps:f,isTabList:p}=Yh(),m={...n,orientation:d},h=Lte(m),g={icon:a,optional:o},_=Ap(r,[`StepLabel`])?C.cloneElement(r,g):(0,B.jsx)(ng,{...g,children:r}),v={internalNativeButton:!0,focusRipple:!0,disabled:c,TouchRippleProps:{className:h.touchRipple},className:V(h.root,i),ownerState:m,"aria-selected":l,"aria-posinset":u+1,"aria-setsize":f,role:`tab`,...s};return p?(0,B.jsx)(Rte,{...v,index:u,ref:t,children:_}):(0,B.jsx)(uE,{ref:t,tabIndex:l?0:-1,...v,children:_})});function zte(e){return H(`MuiStepConnector`,e)}U(`MuiStepConnector`,[`root`,`horizontal`,`vertical`,`alternativeLabel`,`active`,`completed`,`disabled`,`line`]);var Bte=e=>{let{classes:t,orientation:n,alternativeLabel:r,active:i,completed:a,disabled:o}=e;return Gc({root:[`root`,n,r&&`alternativeLabel`,i&&`active`,a&&`completed`,o&&`disabled`],line:[`line`]},zte,t)},Vte=K(`div`,{name:`MuiStepConnector`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})({flex:`1 1 auto`,variants:[{props:{orientation:`vertical`},style:{marginLeft:12}},{props:{alternativeLabel:!0},style:{position:`absolute`,top:12,left:`calc(-50% + 20px)`,right:`calc(50% + 20px)`}}]}),Hte=K(`span`,{name:`MuiStepConnector`,slot:`Line`})(xp(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[400]:e.palette.grey[600];return{display:`block`,borderColor:e.vars?e.vars.palette.StepConnector.border:t,variants:[{props:{orientation:`horizontal`},style:{borderTopStyle:`solid`,borderTopWidth:1}},{props:{orientation:`vertical`},style:{borderLeftStyle:`solid`,borderLeftWidth:1,minHeight:24}}]}})),Ute=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiStepConnector`}),{className:r,...i}=n,{alternativeLabel:a,orientation:o=`horizontal`}=Yh(),{active:s,disabled:c,completed:l}=C.useContext(qh),u={...n,alternativeLabel:a,orientation:o,active:s,completed:l,disabled:c},d=Bte(u);return(0,B.jsx)(Vte,{className:V(d.root,r),ref:t,ownerState:u,...i,children:(0,B.jsx)(Hte,{className:d.line,ownerState:u})})});function Wte(e){return H(`MuiStepContent`,e)}U(`MuiStepContent`,[`root`,`last`,`transition`]);var Gte=e=>{let{classes:t,last:n}=e;return Gc({root:[`root`,n&&`last`],transition:[`transition`]},Wte,t)},Kte=K(`div`,{name:`MuiStepContent`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.last&&t.last]}})(xp(({theme:e})=>({marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:e.vars?`1px solid ${e.vars.palette.StepContent.border}`:`1px solid ${e.palette.mode===`light`?e.palette.grey[400]:e.palette.grey[600]}`,variants:[{props:{last:!0},style:{borderLeft:`none`}}]}))),qte=K(Oh,{name:`MuiStepContent`,slot:`Transition`})({}),Jte=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiStepContent`}),{children:r,className:i,transitionDuration:a=`auto`,slots:o={},slotProps:s={},...c}=n,{orientation:l}=Yh(),{active:u,last:d,expanded:f}=C.useContext(qh),p={...n,last:d},m=Gte(p),h=a;a===`auto`&&!(o.transition??Oh).muiSupportAuto&&(h=void 0);let[g,_]=Y(`transition`,{elementType:qte,externalForwardedProps:{slots:o,slotProps:s},ownerState:p,className:m.transition,additionalProps:{in:u||f,timeout:h,unmountOnExit:!0}});return(0,B.jsx)(Kte,{className:V(m.root,i),ref:t,ownerState:p,...c,children:(0,B.jsx)(g,{..._,children:r})})});function Yte(e){return H(`MuiStepper`,e)}U(`MuiStepper`,[`root`,`horizontal`,`vertical`,`nonLinear`,`alternativeLabel`]);var Xte=e=>{let{orientation:t,nonLinear:n,alternativeLabel:r,classes:i}=e;return Gc({root:[`root`,t,n&&`nonLinear`,r&&`alternativeLabel`]},Yte,i)},fE=K(`ol`,{name:`MuiStepper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.nonLinear&&t.nonLinear]}})({display:`flex`,listStyle:`none`,margin:0,padding:0,variants:[{props:{orientation:`horizontal`},style:{flexDirection:`row`,alignItems:`center`}},{props:{orientation:`vertical`},style:{flexDirection:`column`}},{props:{alternativeLabel:!0},style:{alignItems:`flex-start`}}]}),Zte=(0,B.jsx)(Ute,{});function Qte(e){let{children:t,className:n,component:r,forwardedRef:i,isRtl:a,orientation:o,ownerState:s,...c}=e,l=Jv({orientation:o,isRtl:a}),u=l.getContainerProps(i);return(0,B.jsx)(Uv.Provider,{value:l,children:(0,B.jsx)(fE,{as:r,ownerState:s,className:n,role:`tablist`,"aria-orientation":o,...u,...c,children:t})})}var $te=C.forwardRef(function(e,t){let n=uc(),r=J({props:e,name:`MuiStepper`}),{activeStep:i=0,alternativeLabel:a=!1,children:o,className:s,component:c=`ol`,connector:l=Zte,nonLinear:u=!1,orientation:d=`horizontal`,...f}=r,p={...r,nonLinear:u,alternativeLabel:a,orientation:d,component:c},m=Xte(p),h=C.Children.toArray(o).filter(Boolean),g=h.length,_=h.some(e=>{if(!C.isValidElement(e))return!1;if(e.type===dE)return!0;let t=e.props.children;return t?C.Children.toArray(t).some(e=>C.isValidElement(e)&&e.type===dE):!1}),v=h.map((e,t)=>C.cloneElement(e,{index:t,last:t+1===g,...e.props})),y=C.useMemo(()=>({activeStep:i,alternativeLabel:a,connector:l,nonLinear:u,orientation:d,totalSteps:g,isTabList:_}),[i,a,l,u,d,g,_]);return _?(0,B.jsx)(Jh.Provider,{value:y,children:(0,B.jsx)(Qte,{forwardedRef:t,isRtl:n,className:V(m.root,s),component:c,orientation:d,ownerState:p,...f,children:v})}):(0,B.jsx)(Jh.Provider,{value:y,children:(0,B.jsx)(fE,{as:c,ownerState:p,className:V(m.root,s),ref:t,...f,children:v})})});function ene(e){return H(`MuiTable`,e)}U(`MuiTable`,[`root`,`stickyHeader`]);var tne=e=>{let{classes:t,stickyHeader:n}=e;return Gc({root:[`root`,n&&`stickyHeader`]},ene,t)},nne=K(`table`,{name:`MuiTable`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(xp(({theme:e})=>({display:`table`,width:`100%`,borderCollapse:`collapse`,borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:`left`,captionSide:`bottom`},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:`separate`}}]}))),pE=`table`,rne=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiTable`}),{className:r,component:i=pE,padding:a=`normal`,size:o=`medium`,stickyHeader:s=!1,...c}=n,l={...n,component:i,padding:a,size:o,stickyHeader:s},u=tne(l),d=C.useMemo(()=>({padding:a,size:o,stickyHeader:s}),[a,o,s]);return(0,B.jsx)(Hh.Provider,{value:d,children:(0,B.jsx)(nne,{as:i,role:i===pE?null:`table`,ref:t,className:V(u.root,r),ownerState:l,...c})})});function ine(e){return H(`MuiTableBody`,e)}U(`MuiTableBody`,[`root`]);var ane=e=>{let{classes:t}=e;return Gc({root:[`root`]},ine,t)},one=K(`tbody`,{name:`MuiTableBody`,slot:`Root`})({display:`table-row-group`}),sne={variant:`body`},mE=`tbody`,cne=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiTableBody`}),{className:r,component:i=mE,...a}=n,o={...n,component:i},s=ane(o);return(0,B.jsx)(Fh.Provider,{value:sne,children:(0,B.jsx)(one,{className:V(s.root,r),as:i,ref:t,role:i===mE?null:`rowgroup`,ownerState:o,...a})})});function lne(e){return H(`MuiTableHead`,e)}U(`MuiTableHead`,[`root`]);var une=e=>{let{classes:t}=e;return Gc({root:[`root`]},lne,t)},dne=K(`thead`,{name:`MuiTableHead`,slot:`Root`})({display:`table-header-group`}),fne={variant:`head`},hE=`thead`,gE=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiTableHead`}),{className:r,component:i=hE,...a}=n,o={...n,component:i},s=une(o);return(0,B.jsx)(Fh.Provider,{value:fne,children:(0,B.jsx)(dne,{as:i,className:V(s.root,r),ref:t,role:i===hE?null:`rowgroup`,ownerState:o,...a})})});function pne(e){return H(`MuiToolbar`,e)}U(`MuiToolbar`,[`root`,`gutters`,`regular`,`dense`]);var mne=e=>{let{classes:t,disableGutters:n,variant:r}=e;return Gc({root:[`root`,!n&&`gutters`,r]},pne,t)},hne=K(`div`,{name:`MuiToolbar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(xp(({theme:e})=>({position:`relative`,display:`flex`,alignItems:`center`,variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up(`sm`)]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:`dense`},style:{minHeight:48}},{props:{variant:`regular`},style:e.mixins.toolbar}]}))),_E=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiToolbar`}),{className:r,component:i=`div`,disableGutters:a=!1,variant:o=`regular`,...s}=n,c={...n,component:i,disableGutters:a,variant:o};return(0,B.jsx)(hne,{as:i,className:V(mne(c).root,r),ref:t,ownerState:c,...s})}),vE=Dp((0,B.jsx)(`path`,{d:`M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z`}),`KeyboardArrowLeft`),yE=Dp((0,B.jsx)(`path`,{d:`M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z`}),`KeyboardArrowRight`);function gne(e){return H(`MuiTablePaginationActions`,e)}U(`MuiTablePaginationActions`,[`root`]);var _ne=e=>{let{classes:t}=e;return Gc({root:[`root`]},gne,t)},vne=K(`div`,{name:`MuiTablePaginationActions`,slot:`Root`})({}),yne=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiTablePaginationActions`}),{className:r,count:i,disabled:a=!1,getItemAriaLabel:o,onPageChange:s,page:c,rowsPerPage:l,showFirstButton:u,showLastButton:d,slots:f={},slotProps:p={},...m}=n,h=uc(),g=_ne(n),_=e=>{s(e,0)},v=e=>{s(e,c-1)},y=e=>{s(e,c+1)},b=e=>{s(e,Math.max(0,Math.ceil(i/l)-1))},x=f.firstButton??oh,S=f.lastButton??oh,C=f.nextButton??oh,w=f.previousButton??oh,T=f.firstButtonIcon??ag,E=f.lastButtonIcon??og,D=f.nextButtonIcon??yE,O=f.previousButtonIcon??vE,k=h?S:x,A=h?C:w,j=h?w:C,M=h?x:S,N=h?p.lastButton:p.firstButton,P=h?p.nextButton:p.previousButton,F=h?p.previousButton:p.nextButton,I=h?p.firstButton:p.lastButton;return(0,B.jsxs)(vne,{ref:t,className:V(g.root,r),...m,children:[u&&(0,B.jsx)(k,{onClick:_,disabled:a||c===0,"aria-label":o(`first`,c),title:o(`first`,c),...N,children:h?(0,B.jsx)(E,{...p.lastButtonIcon}):(0,B.jsx)(T,{...p.firstButtonIcon})}),(0,B.jsx)(A,{onClick:v,disabled:a||c===0,color:`inherit`,"aria-label":o(`previous`,c),title:o(`previous`,c),...P,children:h?(0,B.jsx)(D,{...p.nextButtonIcon}):(0,B.jsx)(O,{...p.previousButtonIcon})}),(0,B.jsx)(j,{onClick:y,disabled:a||(i===-1?!1:c>=Math.ceil(i/l)-1),color:`inherit`,"aria-label":o(`next`,c),title:o(`next`,c),...F,children:h?(0,B.jsx)(O,{...p.previousButtonIcon}):(0,B.jsx)(D,{...p.nextButtonIcon})}),d&&(0,B.jsx)(M,{onClick:b,disabled:a||c>=Math.ceil(i/l)-1,"aria-label":o(`last`,c),title:o(`last`,c),...I,children:h?(0,B.jsx)(T,{...p.firstButtonIcon}):(0,B.jsx)(E,{...p.lastButtonIcon})})]})});function bne(e){return H(`MuiTablePagination`,e)}var bE=U(`MuiTablePagination`,[`root`,`toolbar`,`spacer`,`selectLabel`,`selectRoot`,`select`,`selectIcon`,`input`,`menuItem`,`displayedRows`,`actions`]),xne,xE=Pu(`en-US`),Sne=K(Wh,{name:`MuiTablePagination`,slot:`Root`})(xp(({theme:e})=>({overflow:`auto`,color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),Cne=K(_E,{name:`MuiTablePagination`,slot:`Toolbar`,overridesResolver:(e,t)=>({[`& .${bE.actions}`]:t.actions,...t.toolbar})})(xp(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up(`xs`)} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up(`sm`)]:{minHeight:52,paddingRight:2},[`& .${bE.actions}`]:{flexShrink:0,marginLeft:20}}))),wne=K(`div`,{name:`MuiTablePagination`,slot:`Spacer`})({flex:`1 1 100%`}),Tne=K(`p`,{name:`MuiTablePagination`,slot:`SelectLabel`})(xp(({theme:e})=>({...e.typography.body2,flexShrink:0}))),Ene=K(QT,{name:`MuiTablePagination`,slot:`Select`,overridesResolver:(e,t)=>({[`& .${bE.selectIcon}`]:t.selectIcon,[`& .${bE.select}`]:t.select,...t.input,...t.selectRoot})})({color:`inherit`,fontSize:`inherit`,flexShrink:0,marginRight:32,marginLeft:8,[`& .${bE.select}`]:{paddingLeft:8,paddingRight:24,textAlign:`right`,textAlignLast:`right`}}),Dne=K(HT,{name:`MuiTablePagination`,slot:`MenuItem`})({}),One=K(`p`,{name:`MuiTablePagination`,slot:`DisplayedRows`})(xp(({theme:e})=>({...e.typography.body2,flexShrink:0})));function kne({from:e,to:t,count:n}){return`${xE(e)}–${xE(t)} of ${n===-1?`more than ${xE(t)}`:xE(n)}`}function Ane(e){return`Go to ${e} page`}var jne=e=>{let{classes:t}=e;return Gc({root:[`root`],toolbar:[`toolbar`],spacer:[`spacer`],selectLabel:[`selectLabel`],select:[`select`],input:[`input`],selectIcon:[`selectIcon`],menuItem:[`menuItem`],displayedRows:[`displayedRows`],actions:[`actions`]},bne,t)},Mne=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiTablePagination`}),{ActionsComponent:r=yne,colSpan:i,component:a=Wh,count:o,disabled:s=!1,getItemAriaLabel:c=Ane,labelDisplayedRows:l=kne,labelRowsPerPage:u=`Rows per page:`,onPageChange:d,onRowsPerPageChange:f,page:p,rowsPerPage:m,rowsPerPageOptions:h=[10,25,50,100],showFirstButton:g=!1,showLastButton:_=!1,slotProps:v={},slots:y={},...b}=n,x=n,S=jne(x),w=typeof v?.select==`function`?v.select(x):v?.select??{},T=w.native?`option`:Dne,E;(a===Wh||a===`td`)&&(E=i||1e3);let D=zp(w.id),O=zp(w.labelId),k=()=>o===-1?(p+1)*m:m===-1?o:Math.min(o,(p+1)*m),A={slots:y,slotProps:v},[j,M]=Y(`root`,{ref:t,className:S.root,elementType:Sne,externalForwardedProps:{...A,component:a,...b},ownerState:x,additionalProps:{colSpan:E}}),[N,P]=Y(`toolbar`,{className:S.toolbar,elementType:Cne,externalForwardedProps:A,ownerState:x}),[F,I]=Y(`spacer`,{className:S.spacer,elementType:wne,externalForwardedProps:A,ownerState:x}),[L,ee]=Y(`selectLabel`,{className:S.selectLabel,elementType:Tne,externalForwardedProps:A,ownerState:x,additionalProps:{id:O}}),[te,ne]=Y(`select`,{className:S.select,elementType:Ene,externalForwardedProps:A,ownerState:x}),[re,ie]=Y(`menuItem`,{className:S.menuItem,elementType:T,externalForwardedProps:A,ownerState:x}),[R,ae]=Y(`displayedRows`,{className:S.displayedRows,elementType:One,externalForwardedProps:A,ownerState:x});return(0,B.jsx)(j,{...M,children:(0,B.jsxs)(N,{...P,children:[(0,B.jsx)(F,{...I}),h.length>1&&(0,B.jsx)(L,{...ee,children:u}),h.length>1&&(0,B.jsx)(te,{variant:`standard`,...!w.variant&&{input:xne||=(0,B.jsx)(y_,{})},value:m,onChange:f,id:D,labelId:O,...w,classes:{...w.classes,root:V(S.input,S.selectRoot,(w.classes||{}).root),select:V(S.select,(w.classes||{}).select),icon:V(S.selectIcon,(w.classes||{}).icon)},disabled:s,...ne,children:h.map(e=>(0,C.createElement)(re,{...ie,key:e.label?e.label:e,value:e.value?e.value:e},e.label?e.label:e))}),(0,B.jsx)(R,{...ae,children:l({from:o===0?0:p*m+1,to:k(),count:o===-1?-1:o,page:p})}),(0,B.jsx)(r,{className:S.actions,count:o,onPageChange:d,page:p,rowsPerPage:m,showFirstButton:g,showLastButton:_,slotProps:v.actions,slots:y.actions,getItemAriaLabel:c,disabled:s})]})})}),Nne=Dp((0,B.jsx)(`path`,{d:`M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z`}),`ArrowDownward`);function Pne(e){return H(`MuiTableSortLabel`,e)}var SE=U(`MuiTableSortLabel`,[`root`,`active`,`icon`,`directionDesc`,`directionAsc`]),Fne=e=>{let{classes:t,direction:n,active:r}=e;return Gc({root:[`root`,r&&`active`,`direction${q(n)}`],icon:[`icon`]},Pne,t)},Ine=K(Vm,{name:`MuiTableSortLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.active&&t.active]}})(xp(({theme:e})=>({cursor:`pointer`,display:`inline-flex`,justifyContent:`flex-start`,flexDirection:`inherit`,alignItems:`center`,"&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${SE.icon}`]:{opacity:.5}},[`&.${SE.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${SE.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),Lne=K(`span`,{name:`MuiTableSortLabel`,slot:`Icon`})(xp(({theme:e})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create([`opacity`,`transform`],{duration:e.transitions.duration.shorter}),userSelect:`none`,variants:[{props:{direction:`desc`},style:{transform:`rotate(0deg)`}},{props:{direction:`asc`},style:{transform:`rotate(180deg)`}}]}))),Rne=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiTableSortLabel`}),{active:r=!1,children:i,className:a,direction:o=`asc`,hideSortIcon:s=!1,IconComponent:c=Nne,slots:l={},slotProps:u={},...d}=n,f={...n,active:r,direction:o,hideSortIcon:s,IconComponent:c},p=Fne(f),m={slots:l,slotProps:u},[h,g]=Y(`root`,{elementType:Ine,externalForwardedProps:m,ownerState:f,className:V(p.root,a),ref:t,additionalProps:{internalNativeButton:!1}}),[_,v]=Y(`icon`,{elementType:Lne,externalForwardedProps:m,ownerState:f,className:p.icon});return(0,B.jsxs)(h,{disableRipple:!0,component:`span`,...g,...d,children:[i,s&&!r?null:(0,B.jsx)(_,{as:c,...v})]})});function zne(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Bne(e,t,n,r={},i=()=>{}){let{ease:a=zne,duration:o=300}=r,s=null,c=t[e],l=!1,u=()=>{l=!0},d=r=>{if(l){i(Error(`Animation cancelled`));return}s===null&&(s=r);let u=Math.min(1,(r-s)/o);if(t[e]=a(u)*(n-c)+c,u>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(d)};return c===n?(i(Error(`Element already at target position`)),u):(requestAnimationFrame(d),u)}var Vne={width:99,height:99,position:`absolute`,top:-9999,overflow:`scroll`,pointerEvents:`none`};function Hne(e){let{onChange:t,...n}=e,r=C.useRef(),i=C.useRef(null),a=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return Rp(()=>{let e=kp(()=>{let e=r.current;a(),e!==r.current&&t(r.current)}),n=Ip(i.current);return n.addEventListener(`resize`,e),()=>{e.clear(),n.removeEventListener(`resize`,e)}},[t]),C.useEffect(()=>{a(),t(r.current)},[t]),(0,B.jsx)(`div`,{style:Vne,...n,ref:i})}function Une(e){return H(`MuiTabScrollButton`,e)}var Wne=U(`MuiTabScrollButton`,[`root`,`vertical`,`horizontal`,`disabled`]),Gne=e=>{let{classes:t,orientation:n,disabled:r}=e;return Gc({root:[`root`,n,r&&`disabled`]},Une,t)},Kne=K(Vm,{name:`MuiTabScrollButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${Wne.disabled}`]:{opacity:0},variants:[{props:{orientation:`vertical`},style:{width:`100%`,height:40,"& svg":{transform:`var(--TabScrollButton-svgRotate)`}}}]}),qne=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiTabScrollButton`}),{className:r,slots:i={},slotProps:a={},direction:o,orientation:s,disabled:c,...l}=n,{nativeButton:u,...d}=l,f=uc(),p={isRtl:f,...n},m=Gne(p),h=i.StartScrollButtonIcon??vE,g=i.EndScrollButtonIcon??yE,_=my({elementType:h,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:`small`},ownerState:p}),v=my({elementType:g,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:`small`},ownerState:p});return(0,B.jsx)(Kne,{component:`div`,className:V(m.root,r),ref:t,role:null,ownerState:p,tabIndex:null,...d,style:{...d.style,...s===`vertical`&&{"--TabScrollButton-svgRotate":`rotate(${f?-90:90}deg)`}},children:o===`left`?(0,B.jsx)(h,{..._}):(0,B.jsx)(g,{...v})})});function Jne(e){return H(`MuiTabs`,e)}var CE=U(`MuiTabs`,[`root`,`vertical`,`list`,`centered`,`scroller`,`fixed`,`scrollableX`,`scrollableY`,`hideScrollbar`,`scrollButtons`,`scrollButtonsHideMobile`,`indicator`]),Yne=e=>{let{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:c}=e;return Gc({root:[`root`,t&&`vertical`],scroller:[`scroller`,n&&`fixed`,r&&`hideScrollbar`,i&&`scrollableX`,a&&`scrollableY`],list:[`list`,t&&`vertical`,o&&`centered`],indicator:[`indicator`],scrollButtons:[`scrollButtons`,s&&`scrollButtonsHideMobile`],scrollableX:[i&&`scrollableX`],hideScrollbar:[r&&`hideScrollbar`]},Jne,c)},Xne=K(`div`,{name:`MuiTabs`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${CE.scrollButtons}`]:t.scrollButtons},{[`& .${CE.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(xp(({theme:e})=>({overflow:`hidden`,minHeight:48,WebkitOverflowScrolling:`touch`,display:`flex`,variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:`column`}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${CE.scrollButtons}`]:{[e.breakpoints.down(`sm`)]:{display:`none`}}}}]}))),Zne=K(`div`,{name:`MuiTabs`,slot:`Scroller`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:`relative`,display:`inline-block`,flex:`1 1 auto`,whiteSpace:`nowrap`,variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:`hidden`,width:`100%`}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:`none`,"&::-webkit-scrollbar":{display:`none`}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:`auto`,overflowY:`hidden`}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:`auto`,overflowX:`hidden`}}]}),Qne=K(`div`,{name:`MuiTabs`,slot:`List`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.list,n.centered&&t.centered]}})({display:`flex`,variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:`column`}},{props:({ownerState:e})=>e.centered,style:{justifyContent:`center`}}]}),$ne=K(`span`,{name:`MuiTabs`,slot:`Indicator`})(xp(({theme:e})=>({position:`absolute`,height:2,bottom:0,width:`100%`,transition:e.transitions.create(),variants:[{props:{indicatorColor:`primary`},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:`secondary`},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:`100%`,width:2,right:0}}]}))),ere=K(Hne)({overflowX:`auto`,overflowY:`hidden`,scrollbarWidth:`none`,"&::-webkit-scrollbar":{display:`none`}}),wE={},tre=C.forwardRef(function(e,t){let n=J({props:e,name:`MuiTabs`}),r=Cu(),i=uc(),{"aria-label":a,"aria-labelledby":o,action:s,centered:c=!1,children:l,className:u,component:d=`div`,allowScrollButtonsMobile:f=!1,indicatorColor:p=`primary`,onChange:m,orientation:h=`horizontal`,scrollButtons:g=`auto`,selectionFollowsFocus:_,slots:v={},slotProps:y={},textColor:b=`primary`,value:x,variant:S=`standard`,visibleScrollbar:w=!1,...T}=n,E=S===`scrollable`,D=h===`vertical`,O=D?`scrollTop`:`scrollLeft`,k=D?`top`:`left`,A=D?`bottom`:`right`,j=D?`clientHeight`:`clientWidth`,M=D?`height`:`width`,N={...n,component:d,allowScrollButtonsMobile:f,indicatorColor:p,orientation:h,vertical:D,scrollButtons:g,textColor:b,variant:S,visibleScrollbar:w,fixed:!E,hideScrollbar:E&&!w,scrollableX:E&&!D,scrollableY:E&&D,centered:c&&!E,scrollButtonsHideMobile:!f},P=Yne(N),F=my({elementType:v.startScrollButtonIcon,externalSlotProps:y.startScrollButtonIcon,ownerState:N}),I=my({elementType:v.endScrollButtonIcon,externalSlotProps:y.endScrollButtonIcon,ownerState:N}),[L,ee]=C.useState(!1),[te,ne]=C.useState(wE),[re,ie]=C.useState(!1),[R,ae]=C.useState(!1),[oe,se]=C.useState(!1),ce=x===!1?null:x,[le,ue]=C.useState(!1),[z,de]=C.useState({overflow:`hidden`,scrollbarWidth:0}),fe=new Map,pe=C.useRef(null),me=C.useRef(null),he={slots:v,slotProps:y},ge=()=>{let e=pe.current,t;if(e){let n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}let n;if(e&&x!==!1){let e=me.current.children;if(e.length>0){let t=e[fe.get(x)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},_e=Up(()=>{let{tabsMeta:e,tabMeta:t}=ge(),n=0,r;D?(r=`top`,t&&e&&(n=t.top-e.top+e.scrollTop)):(r=i?`right`:`left`,t&&e&&(n=(i?-1:1)*(t[r]-e[r]+e.scrollLeft)));let a={[r]:n,[M]:t?t[M]:0};if(typeof te[r]!=`number`||typeof te[M]!=`number`)ne(a);else{let e=Math.abs(te[r]-a[r]),t=Math.abs(te[M]-a[M]);(e>=1||t>=1)&&ne(a)}}),ve=(e,{animation:t=!0}={})=>{t?Bne(O,pe.current,e,{duration:r.transitions.duration.standard}):pe.current[O]=e},ye=e=>{let t=pe.current[O];D?t+=e:t+=e*(i?-1:1),ve(t)},be=()=>{let e=pe.current[j],t=0,n=Array.from(me.current.children);for(let r=0;r<n.length;r+=1){let i=n[r];if(t+i[j]>e){r===0&&(t=e);break}t+=i[j]}return t},xe=()=>{ye(-1*be())},Se=()=>{ye(be())},[Ce,{onChange:we,...Te}]=Y(`scrollbar`,{className:V(P.scrollableX,P.hideScrollbar),elementType:ere,shouldForwardComponentProp:!0,externalForwardedProps:he,ownerState:N}),Ee=C.useCallback(e=>{we?.(e),de({overflow:null,scrollbarWidth:e})},[we]),[De,Oe]=Y(`scrollButtons`,{className:P.scrollButtons,elementType:qne,externalForwardedProps:he,ownerState:N,additionalProps:{orientation:h,slots:{StartScrollButtonIcon:v.startScrollButtonIcon,EndScrollButtonIcon:v.endScrollButtonIcon},slotProps:{startScrollButtonIcon:F,endScrollButtonIcon:I}}}),ke=()=>{let e={};e.scrollbarSizeListener=E?(0,B.jsx)(Ce,{...Te,onChange:Ee}):null;let t=E&&(g===`auto`&&(re||R)||g===!0);return e.scrollButtonStart=t?(0,B.jsx)(De,{direction:i?`right`:`left`,onClick:xe,disabled:!re,...Oe}):null,e.scrollButtonEnd=t?(0,B.jsx)(De,{direction:i?`left`:`right`,onClick:Se,disabled:!R,...Oe}):null,e},Ae=Up(e=>{let{tabsMeta:t,tabMeta:n}=ge();!n||!t||(n[k]<t[k]?ve(t[O]+(n[k]-t[k]),{animation:e}):n[A]>t[A]&&ve(t[O]+(n[A]-t[A]),{animation:e}))}),je=Up(()=>{E&&g!==!1&&se(!oe)});C.useEffect(()=>{let e=kp(()=>{pe.current&&_e()}),t,n=n=>{n.forEach(e=>{e.removedNodes.forEach(e=>{t?.unobserve(e)}),e.addedNodes.forEach(e=>{t?.observe(e)})}),e(),je()},r=Ip(pe.current);r.addEventListener(`resize`,e);let i;return typeof ResizeObserver<`u`&&(t=new ResizeObserver(e),Array.from(me.current.children).forEach(e=>{t.observe(e)})),typeof MutationObserver<`u`&&(i=new MutationObserver(n),i.observe(me.current,{childList:!0})),()=>{e.clear(),r.removeEventListener(`resize`,e),i?.disconnect(),t?.disconnect()}},[_e,je]),C.useEffect(()=>{let e=Array.from(me.current.children),t=e.length;if(typeof IntersectionObserver<`u`&&t>0&&E&&g!==!1){let n=e[0],r=e[t-1],i={root:pe.current,threshold:.99},a=new IntersectionObserver(e=>{ie(!e[0].isIntersecting)},i);a.observe(n);let o=new IntersectionObserver(e=>{ae(!e[0].isIntersecting)},i);return o.observe(r),()=>{a.disconnect(),o.disconnect()}}},[E,g,oe,l?.length]),C.useEffect(()=>{ee(!0)},[]),C.useEffect(()=>{_e()}),C.useEffect(()=>{Ae(wE!==te)},[Ae,te]),C.useImperativeHandle(s,()=>({updateIndicator:_e,updateScrollButtons:je}),[_e,je]);let[Me,Ne]=Y(`indicator`,{className:P.indicator,elementType:$ne,externalForwardedProps:he,ownerState:N,additionalProps:{style:te}}),Pe=(0,B.jsx)(Me,{...Ne}),Fe=Jv({activeItemId:le?void 0:ce,orientation:h,isRtl:i}),Ie=Fe.getContainerProps(),Le=C.Children.toArray(l).filter(C.isValidElement).map((e,t)=>{let n=e.props.value===void 0?t:e.props.value;return fe.set(n,t),{child:e,index:t,childValue:n}}).map(({child:e,childValue:t})=>{let n=t===x;return C.cloneElement(e,{fullWidth:S===`fullWidth`,indicator:n&&!L&&Pe,selected:n,selectionFollowsFocus:_,onChange:m,textColor:b,value:t})}),Re=ke(),[ze,Be]=Y(`root`,{ref:t,className:V(P.root,u),elementType:Xne,externalForwardedProps:{...he,...T,component:d},ownerState:N}),[Ve,He]=Y(`scroller`,{ref:pe,className:P.scroller,elementType:Zne,externalForwardedProps:he,ownerState:N,additionalProps:{style:{overflow:z.overflow,[D?`margin${i?`Left`:`Right`}`:`marginBottom`]:w?void 0:-z.scrollbarWidth}}}),Ue=Gp(Ie.ref,me),We=e=>{let t=me.current;Mp(Pp(t))?.getAttribute(`role`)===`tab`&&Ie.onKeyDown(e)},[Ge,Ke]=Y(`list`,{ref:Ue,className:P.list,elementType:Qne,externalForwardedProps:he,ownerState:N,getSlotProps:e=>({...e,onBlur:t=>{_C(t.currentTarget,t.relatedTarget)||ue(!1),e.onBlur?.(t)},onKeyDown:t=>{We(t),e.onKeyDown?.(t)},onFocus:t=>{ue(!0),Ie.onFocus(t),e.onFocus?.(t)}})});return(0,B.jsxs)(ze,{...Be,children:[Re.scrollButtonStart,Re.scrollbarSizeListener,(0,B.jsxs)(Ve,{...He,children:[(0,B.jsx)(Ge,{"aria-label":a,"aria-labelledby":o,"aria-orientation":h===`vertical`?`vertical`:null,role:`tablist`,...Ke,children:(0,B.jsx)(Uv.Provider,{value:Fe,children:Le})}),L&&Pe]}),Re.scrollButtonEnd]})}),TE=zs({themeId:Xn});function nre(){return TE(`(prefers-color-scheme: dark)`)}function rre(e){let t=nre();return e===`system`?t?`dark`:`light`:e}var EE=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},ire=(e=>e?EE(e):EE),are=e=>e;function ore(e,t=are){let n=C.useSyncExternalStore(e.subscribe,C.useCallback(()=>t(e.getState()),[e,t]),C.useCallback(()=>t(e.getInitialState()),[e,t]));return C.useDebugValue(n),n}var DE=e=>{let t=ire(e),n=e=>ore(t,e);return Object.assign(n,t),n},OE=(e=>e?DE(e):DE),kE=e=>!!e.dispatchFromDevtools&&typeof e.dispatch==`function`,AE=new Map,jE=e=>{let t=AE.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([e,t])=>[e,t.getState()])):{}},sre=(e,t,n)=>{if(e===void 0)return{type:`untracked`,connection:t.connect(n)};let r=AE.get(n.name);if(r)return{type:`tracked`,store:e,...r};let i={connection:t.connect(n),stores:{}};return AE.set(n.name,i),{type:`tracked`,store:e,...i}},cre=(e,t)=>{if(t===void 0)return;let n=AE.get(e);n&&(delete n.stores[t],Object.keys(n.stores).length===0&&AE.delete(e))},lre=/.+ (.+) .+/,ure=/^([^@]+)@/;function dre(e){if(!e)return;let t=e.split(`
240
- `),n=t.findIndex(e=>e.includes(`api.setState`));if(n<0)return;let r=t[n+1]?.trim()||``;return lre.exec(r)?.[1]||ure.exec(r)?.[1]}var ME=(e,t={})=>(n,r,i)=>{let{enabled:a,anonymousActionType:o,store:s,...c}=t,l;try{l=(a??!1)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!l)return e(n,r,i);let{connection:u,...d}=sre(s,l,c),f=!0;i.setState=((e,t,a)=>{let l=n(e,t);if(!f)return l;let d=a===void 0?{type:o||dre(Error().stack)||`anonymous`}:typeof a==`string`?{type:a}:a;return s===void 0?(u?.send(d,r()),l):(u?.send({...d,type:`${s}/${d.type}`},{...jE(c.name),[s]:i.getState()}),l)}),i.devtools={cleanup:()=>{u&&typeof u.unsubscribe==`function`&&u.unsubscribe(),cre(c.name,s)}};let p=(...e)=>{let t=f;f=!1,n(...e),f=t},m=e(i.setState,r,i);if(d.type===`untracked`?u?.init(m):(d.stores[d.store]=i,u?.init(Object.fromEntries(Object.entries(d.stores).map(([e,t])=>[e,e===d.store?m:t.getState()])))),kE(i)){let e=i.dispatch;i.dispatch=(...t)=>{e(...t)}}return u.subscribe(e=>{switch(e.type){case`ACTION`:if(typeof e.payload!=`string`){console.error(`[zustand devtools middleware] Unsupported action format`);return}return NE(e.payload,e=>{if(e.type===`__setState`){if(s===void 0){p(e.state);return}Object.keys(e.state).length!==1&&console.error(`
241
- [zustand devtools middleware] Unsupported __setState action format.
242
- When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
243
- and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
244
- `);let t=e.state[s];if(t==null)return;JSON.stringify(i.getState())!==JSON.stringify(t)&&p(t);return}kE(i)&&i.dispatch(e)});case`DISPATCH`:switch(e.payload.type){case`RESET`:return p(m),s===void 0?u?.init(i.getState()):u?.init(jE(c.name));case`COMMIT`:if(s===void 0){u?.init(i.getState());return}return u?.init(jE(c.name));case`ROLLBACK`:return NE(e.state,e=>{if(s===void 0){p(e),u?.init(i.getState());return}p(e[s]),u?.init(jE(c.name))});case`JUMP_TO_STATE`:case`JUMP_TO_ACTION`:return NE(e.state,e=>{if(s===void 0){p(e);return}JSON.stringify(i.getState())!==JSON.stringify(e[s])&&p(e[s])});case`IMPORT_STATE`:{let{nextLiftedState:t}=e.payload,n=t.computedStates.slice(-1)[0]?.state;if(!n)return;p(s===void 0?n:n[s]),u?.send(null,t);return}case`PAUSE_RECORDING`:return f=!f}return}}),m},NE=(e,t)=>{let n;try{n=JSON.parse(e)}catch(e){console.error(`[zustand devtools middleware] Could not parse the received json`,e)}n!==void 0&&t(n)};function fre(e,t){let n;try{n=e()}catch{return}return{getItem:e=>{let r=e=>e===null?null:JSON.parse(e,t?.reviver),i=n.getItem(e)??null;return i instanceof Promise?i.then(r):r(i)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,t?.replacer)),removeItem:e=>n.removeItem(e)}}var PE=e=>t=>{try{let n=e(t);return n instanceof Promise?n:{then(e){return PE(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return PE(t)(e)}}}},FE=(e,t)=>(n,r,i)=>{let a={storage:fre(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},o=!1,s=0,c=new Set,l=new Set,u=a.storage;if(!u)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...e)},r,i);let d=()=>{let e=a.partialize({...r()});return u.setItem(a.name,{state:e,version:a.version})},f=i.setState;i.setState=(e,t)=>(f(e,t),d());let p=e((...e)=>(n(...e),d()),r,i);i.getInitialState=()=>p;let m,h=()=>{if(!u)return;let e=++s;o=!1,c.forEach(e=>e(r()??p));let t=a.onRehydrateStorage?.call(a,r()??p)||void 0;return PE(u.getItem.bind(u))(a.name).then(e=>{if(e)if(typeof e.version==`number`&&e.version!==a.version){if(a.migrate){let t=a.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error(`State loaded from storage couldn't be migrated since no migrate function was provided`)}else return[!1,e.state];return[!1,void 0]}).then(t=>{if(e!==s)return;let[i,o]=t;if(m=a.merge(o,r()??p),n(m,!0),i)return d()}).then(()=>{e===s&&(t?.(r(),void 0),m=r(),o=!0,l.forEach(e=>e(m)))}).catch(n=>{e===s&&t?.(void 0,n)})};return i.persist={setOptions:e=>{a={...a,...e},e.storage&&(u=e.storage)},clearStorage:()=>{u?.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>h(),hasHydrated:()=>o,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},a.skipHydration||h(),m||p},IE=Symbol.for(`immer-nothing`),LE=Symbol.for(`immer-draftable`),RE=Symbol.for(`immer-state`);function zE(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var BE=Object,VE=BE.getPrototypeOf,HE=`constructor`,UE=`prototype`,WE=`configurable`,GE=`enumerable`,KE=`writable`,qE=`value`,JE=e=>!!e&&!!e[RE];function YE(e){return e?QE(e)||aD(e)||!!e[LE]||!!e[HE]?.[LE]||oD(e)||sD(e):!1}var XE=BE[UE][HE].toString(),ZE=new WeakMap;function QE(e){if(!e||!cD(e))return!1;let t=VE(e);if(t===null||t===BE[UE])return!0;let n=BE.hasOwnProperty.call(t,HE)&&t[HE];if(n===Object)return!0;if(!lD(n))return!1;let r=ZE.get(n);return r===void 0&&(r=Function.toString.call(n),ZE.set(n,r)),r===XE}function $E(e,t,n=!0){eD(e)===0?(n?Reflect.ownKeys(e):BE.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function eD(e){let t=e[RE];return t?t.type_:aD(e)?1:oD(e)?2:sD(e)?3:0}var tD=(e,t,n=eD(e))=>n===2?e.has(t):BE[UE].hasOwnProperty.call(e,t),nD=(e,t,n=eD(e))=>n===2?e.get(t):e[t],rD=(e,t,n,r=eD(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function iD(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var aD=Array.isArray,oD=e=>e instanceof Map,sD=e=>e instanceof Set,cD=e=>typeof e==`object`,lD=e=>typeof e==`function`,uD=e=>typeof e==`boolean`;function dD(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var fD=e=>e.copy_||e.base_,pD=e=>e.modified_?e.copy_:e.base_;function mD(e,t){if(oD(e))return new Map(e);if(sD(e))return new Set(e);if(aD(e))return Array[UE].slice.call(e);let n=QE(e);if(t===!0||t===`class_only`&&!n){let t=BE.getOwnPropertyDescriptors(e);delete t[RE];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[KE]===!1&&(a[KE]=!0,a[WE]=!0),(a.get||a.set)&&(t[i]={[WE]:!0,[KE]:!0,[GE]:a[GE],[qE]:e[i]})}return BE.create(VE(e),t)}else{let t=VE(e);if(t!==null&&n)return{...e};let r=BE.create(t);return BE.assign(r,e)}}function hD(e,t=!1){return vD(e)||JE(e)||!YE(e)?e:(eD(e)>1&&BE.defineProperties(e,{set:_D,add:_D,clear:_D,delete:_D}),BE.freeze(e),t&&$E(e,(e,t)=>{hD(t,!0)},!1),e)}function gD(){zE(2)}var _D={[qE]:gD};function vD(e){return e===null||!cD(e)?!0:BE.isFrozen(e)}var yD=`MapSet`,bD=`Patches`,xD=`ArrayMethods`,SD={};function CD(e){let t=SD[e];return t||zE(0,e),t}var wD=e=>!!SD[e],TD,ED=()=>TD,DD=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:wD(yD)?CD(yD):void 0,arrayMethodsPlugin_:wD(xD)?CD(xD):void 0});function OD(e,t){t&&(e.patchPlugin_=CD(bD),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function kD(e){AD(e),e.drafts_.forEach(MD),e.drafts_=null}function AD(e){e===TD&&(TD=e.parent_)}var jD=e=>TD=DD(TD,e);function MD(e){let t=e[RE];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ND(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[RE].modified_&&(kD(t),zE(4)),YE(e)&&(e=PD(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[RE].base_,e,t)}else e=PD(t,n);return FD(t,e,!0),kD(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===IE?void 0:e}function PD(e,t){if(vD(t))return t;let n=t[RE];if(!n)return UD(t,e.handledSet_,e);if(!LD(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);VD(n,e)}return n.copy_}function FD(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&hD(t,n)}function ID(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var LD=(e,t)=>e.scope_===t,RD=[];function zD(e,t,n,r){let i=fD(e),a=e.type_;if(r!==void 0&&nD(i,r,a)===t){rD(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;$E(i,(e,n)=>{if(JE(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??RD;for(let e of o)rD(i,e,n,a)}function BD(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!LD(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=pD(i);zD(e,i.draft_??i,a,n),VD(i,r)})}function VD(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}ID(e)}}function HD(e,t,n){let{scope_:r}=e;if(JE(n)){let i=n[RE];LD(i,r)&&i.callbacks_.push(function(){ZD(e),zD(e,n,pD(i),t)})}else YE(n)&&e.callbacks_.push(function(){let i=fD(e);e.type_===3?i.has(n)&&UD(n,r.handledSet_,r):nD(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&UD(nD(e.copy_,t,e.type_),r.handledSet_,r)})}function UD(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||JE(e)||t.has(e)||!YE(e)||vD(e)?e:(t.add(e),$E(e,(r,i)=>{if(JE(i)){let t=i[RE];LD(t,n)&&(rD(e,r,pD(t),e.type_),ID(t))}else YE(i)&&UD(i,t,n)}),e)}function WD(e,t){let n=aD(e),r={type_:+!!n,scope_:t?t.scope_:ED(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=GD;n&&(i=[r],a=KD);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var GD={get(e,t){if(t===RE)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=fD(e);if(!tD(i,t,e.type_))return JD(e,i,t);let a=i[t];if(e.finalized_||!YE(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&dD(t))return a;if(a===qD(e.base_,t)){ZD(e);let n=e.type_===1?+t:t,r=$D(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in fD(e)},ownKeys(e){return Reflect.ownKeys(fD(e))},set(e,t,n){let r=YD(fD(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=qD(fD(e),t),i=r?.[RE];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(iD(n,r)&&(n!==void 0||tD(e.base_,t,e.type_)))return!0;ZD(e),XD(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),HD(e,t,n),!0)},deleteProperty(e,t){return ZD(e),qD(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),XD(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=fD(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[KE]:!0,[WE]:e.type_!==1||t!==`length`,[GE]:r[GE],[qE]:n[t]}},defineProperty(){zE(11)},getPrototypeOf(e){return VE(e.base_)},setPrototypeOf(){zE(12)}},KD={};for(let e in GD){let t=GD[e];KD[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}KD.deleteProperty=function(e,t){return KD.set.call(this,e,t,void 0)},KD.set=function(e,t,n){return GD.set.call(this,e[0],t,n,e[0])};function qD(e,t){let n=e[RE];return(n?fD(n):e)[t]}function JD(e,t,n){let r=YD(t,n);return r?qE in r?r[qE]:r.get?.call(e.draft_):void 0}function YD(e,t){if(!(t in e))return;let n=VE(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=VE(n)}}function XD(e){e.modified_||(e.modified_=!0,e.parent_&&XD(e.parent_))}function ZD(e){e.copy_||=(e.assigned_=new Map,mD(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var QD=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(lD(e)&&!lD(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}lD(t)||zE(6),n!==void 0&&!lD(n)&&zE(7);let r;if(YE(e)){let i=jD(this),a=$D(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?kD(i):AD(i)}return OD(i,n),ND(r,i)}else if(!e||!cD(e)){if(r=t(e),r===void 0&&(r=e),r===IE&&(r=void 0),this.autoFreeze_&&hD(r,!0),n){let t=[],i=[];CD(bD).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}else zE(1,e)},this.produceWithPatches=(e,t)=>{if(lD(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},uD(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),uD(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),uD(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){YE(e)||zE(8),JE(e)&&(e=eO(e));let t=jD(this),n=$D(t,e,void 0);return n[RE].isManual_=!0,AD(t),n}finishDraft(e,t){let n=e&&e[RE];(!n||!n.isManual_)&&zE(9);let{scope_:r}=n;return OD(r,t),ND(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=CD(bD).applyPatches_;return JE(e)?r(e,t):this.produce(e,e=>r(e,t))}};function $D(e,t,n,r){let[i,a]=oD(t)?CD(yD).proxyMap_(t,n):sD(t)?CD(yD).proxySet_(t,n):WD(t,n);return(n?.scope_??ED()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?BD(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function eO(e){return JE(e)||zE(10,e),tO(e)}function tO(e){if(!YE(e)||vD(e))return e;let t=e[RE],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=mD(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=mD(e,!0);return $E(n,(e,t)=>{rD(n,e,tO(t))},r),t&&(t.finalized_=!1),n}var nO=new QD().produce,rO=e=>(t,n,r)=>(r.setState=(e,n,...r)=>t(typeof e==`function`?nO(e):e,n,...r),e(r.setState,n,r));function iO(e,t){let{name:n,persist:r,devtools:i=!0}=t,a=i&&typeof window<`u`,o=r?{name:`prism-${n}`,...typeof r==`object`?r:{}}:null,s={name:`Prism:${n}`};return o&&a?OE()(ME(FE(rO(e),o),s)):o?OE()(FE(rO(e),o)):a?OE()(ME(rO(e),s)):OE()(rO(e))}function aO(e,t){return iO(e,{name:t,persist:!1})}function oO(e,t,n){return iO(e,{name:t,persist:{version:1,storage:{getItem:e=>{try{let t=localStorage.getItem(e);return t?JSON.parse(t):null}catch{return null}},setItem:(e,t)=>{try{localStorage.setItem(e,JSON.stringify(t))}catch{}},removeItem:e=>{try{localStorage.removeItem(e)}catch{}}},...n}})}function sO(e){let t=e;return t.use=new Proxy({},{get:(t,n)=>{if(typeof n==`string`)return()=>e(e=>e[n])}}),t}var cO={mode:`light`,preset:`default-light`,primaryColor:null,contrast:`default`,direction:`ltr`,fontSize:16,fontFamily:null,density:`standard`,compactSidebar:!1,sidebarCollapsed:{},navLayout:`vertical`,navColor:`integrate`,stretch:!0,tableRowsPerPage:{}},lO=oO((e,t)=>({...cO,setMode:t=>e({mode:t}),toggleMode:()=>e(e=>{e.mode=e.mode===`light`?`dark`:`light`}),setPreset:t=>e({preset:t}),setPrimaryColor:t=>e({primaryColor:t}),setContrast:t=>e({contrast:t}),setDirection:t=>e({direction:t}),setFontSize:t=>e({fontSize:Math.min(20,Math.max(12,t))}),setFontFamily:t=>e({fontFamily:t}),setDensity:t=>e({density:t}),setCompactSidebar:t=>e({compactSidebar:t}),setSidebarCollapsed:(t,n)=>e(e=>{e.sidebarCollapsed={...e.sidebarCollapsed,[t]:n}}),getSidebarCollapsed:e=>t().sidebarCollapsed[e]??!1,setNavLayout:t=>e({navLayout:t}),setNavColor:t=>e({navColor:t}),setStretch:t=>e({stretch:t}),setTableRowsPerPage:(t,n)=>e(e=>{e.tableRowsPerPage={...e.tableRowsPerPage,[t]:n}}),getTableRowsPerPage:(e,n=25)=>t().tableRowsPerPage[e]??n,updateSettings:t=>e(t),reset:()=>e(cO),canReset:()=>{let e=t();return Object.keys(cO).some(t=>e[t]!==cO[t])}}),`settings`);sO(lO);function uO(e,t){return t?{...e,...t,paths:{...e.paths,...t.paths},registries:{...e.registries,...t.registries},theme:{...e.theme,...t.theme},style:{...e.style,...t.style},features:{...e.features,...t.features}}:e}var dO=()=>{};function pre({children:e,config:t,defaultSettings:n,disableCssBaseline:r=!1,themeOverrides:i,dateAdapterLocale:a,dateLocaleText:o}){let s=(0,C.useMemo)(()=>uO(Mx,t),[t]),{mode:c,preset:l,direction:u,primaryColor:d,contrast:f,compactSidebar:p,fontSize:m,fontFamily:h,navLayout:g,navColor:_,setMode:v,toggleMode:y,setPreset:b,setDirection:x,setCompactSidebar:S,reset:w}=lO();(0,C.useEffect)(()=>{n?.mode&&v(n.mode),n?.preset&&b(n.preset),n?.direction&&x(n.direction)},[]);let T=(0,C.useMemo)(()=>({mode:c,preset:l,direction:u,sidebarCollapsed:p,settingsDrawerOpen:!1,primaryColor:d,contrast:f,fontSize:m,fontFamily:h??`Public Sans Variable`,navLayout:g,navColor:_}),[c,l,u,p,d,f,m,h,g,_]),E=(0,C.useCallback)(()=>{let e=lO.getState().compactSidebar;S(!e)},[S]),D=(0,C.useMemo)(()=>pi(u===`rtl`?{key:`prism-rtl`,stylisPlugins:[jx]}:{key:`prism-ltr`}),[u]);(0,C.useEffect)(()=>{typeof document<`u`&&(document.documentElement.dir=u)},[u]),(0,C.useEffect)(()=>{typeof document<`u`&&(m&&m!==16?document.documentElement.style.fontSize=`${m}px`:document.documentElement.style.removeProperty(`font-size`))},[m]);let O=rre(c),k=(0,C.useMemo)(()=>db({preset:l,mode:O,direction:u,primaryColor:d||s.theme.primaryColor,typography:s.theme.typography,cssVariables:s.theme.cssVariables,components:s.theme.components,contrast:f,fontFamily:h,fontSize:m,overrides:i}),[l,O,u,d,f,m,h,s.theme,i]),A=(0,C.useMemo)(()=>({config:s,theme:k,settings:T,setMode:v,toggleMode:y,setPreset:b,setDirection:x,toggleSidebar:E,setSidebarCollapsed:S,resetSettings:w,openSettingsDrawer:dO,closeSettingsDrawer:dO,toggleSettingsDrawer:dO}),[s,k,T,v,y,b,x,E,S,w]);return(0,B.jsx)(Vi,{value:D,children:(0,B.jsx)(Nx.Provider,{value:A,children:(0,B.jsx)(Nu,{theme:k,children:(0,B.jsxs)(Cb,{dateAdapter:Bb,adapterLocale:a,localeText:o,children:[!r&&(0,B.jsx)(yb,{}),e]})})})})}function mre({href:e,children:t,sx:n}){return(0,B.jsx)(X,{component:`a`,href:e,sx:[e=>({position:`absolute`,top:`-100%`,left:0,right:0,zIndex:e.zIndex.tooltip+1,padding:e.spacing(1,2),backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,textAlign:`center`,textDecoration:`none`,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.body2.fontSize,"&:focus":{top:0,outline:`2px solid ${e.palette.primary.dark}`,outlineOffset:2}}),...Array.isArray(n)?n:[n]],children:t})}var fO={mainNav:`Main navigation`,secondaryNav:`Secondary navigation`,search:`Search`,main:`Main content`,header:`Header`,footer:`Footer`,sidebar:`Sidebar`,breadcrumb:`Breadcrumb navigation`,userMenu:`User menu`,settings:`Settings`};function hre({size:e=18}){return(0,B.jsxs)(`svg`,{width:e,height:e,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,B.jsx)(`circle`,{cx:`11`,cy:`11`,r:`8`}),(0,B.jsx)(`line`,{x1:`21`,y1:`21`,x2:`16.65`,y2:`16.65`})]})}function gre(){return(0,B.jsxs)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,B.jsx)(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),(0,B.jsx)(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})]})}(0,C.forwardRef)(function({value:e,onChange:t,placeholder:n=`Search...`,debounce:r=0,compact:i=!1,fullWidth:a=!0,width:o,minWidth:s,clearTooltip:c=`Clear`,autoFocus:l,onFocus:u,onBlur:d,onKeyDown:f,sx:p},m){let h=Cu(),[g,_]=(0,C.useState)(e??``),v=(0,C.useRef)(void 0);(0,C.useEffect)(()=>{e!==void 0&&_(e)},[e]);let y=e!==void 0&&r===0?e:g,b=e=>{let n=e.target.value;_(n),r>0?(clearTimeout(v.current),v.current=setTimeout(()=>t?.(n),r)):t?.(n)},x=()=>{_(``),clearTimeout(v.current),t?.(``)};(0,C.useEffect)(()=>()=>clearTimeout(v.current),[]);let S=i?.625:.75,w=i?1.25:1.5,T=i?`3px`:`4px`;return(0,B.jsx)(y_,{ref:m,fullWidth:a,placeholder:n,value:y,onChange:b,autoFocus:l,onFocus:u,onBlur:d,onKeyDown:f,startAdornment:(0,B.jsx)(U_,{position:`start`,sx:{color:`text.disabled`,mr:i?.75:1},children:(0,B.jsx)(hre,{size:i?16:18})}),endAdornment:y?(0,B.jsx)(U_,{position:`end`,children:(0,B.jsx)(sE,{title:c,children:(0,B.jsx)(X,{component:`button`,type:`button`,onClick:x,sx:{p:.25,border:`none`,background:`none`,cursor:`pointer`,color:`text.disabled`,display:`flex`,alignItems:`center`,borderRadius:`50%`,"&:hover":{color:`text.secondary`}},children:(0,B.jsx)(gre,{})})})}):null,sx:{px:w,py:S,borderRadius:1,fontSize:`0.875rem`,bgcolor:W(h.palette.grey[500],.08),transition:h.transitions.create([`background-color`],{duration:h.transitions.duration.shorter}),"&:hover":{bgcolor:W(h.palette.grey[500],.12)},"&.Mui-focused":{bgcolor:W(h.palette.grey[500],.16)},"& .MuiInputBase-input":{py:T,px:0,overflow:`visible`,"&::placeholder":{opacity:.64}},...o!=null&&{width:o},...s!=null&&{minWidth:s},...!a&&{width:o??`auto`},...Array.isArray(p)?Object.assign({},...p):p}})}),K(Mh)(({theme:e})=>({borderRadius:e.shape.borderRadius,border:`1px solid ${e.palette.divider}`,overflow:`auto`})),K(gE)(({theme:e})=>({backgroundColor:W(e.palette.grey[500],.08),"& .MuiTableCell-head":{fontWeight:600,fontSize:e.typography.pxToRem(13),color:e.palette.text.secondary,backgroundColor:`transparent`,whiteSpace:`nowrap`,borderBottom:`1px solid ${e.palette.divider}`}})),K(Vh)(({theme:e})=>({transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.shortest}),"&:nth-of-type(even)":{backgroundColor:W(e.palette.grey[500],.02)},"&:hover":{backgroundColor:W(e.palette.primary.main,.04)},"& .MuiTableCell-body":{borderBottom:`1px solid ${W(e.palette.divider,.6)}`}})),K(`span`)(({theme:e})=>({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,overflow:`hidden`,flexShrink:0,boxShadow:`inset 0 0 0 1px ${e.palette.divider}`})),K(`img`)({width:`100%`,height:`100%`,display:`block`,objectFit:`cover`}),K(`span`)(({theme:e})=>({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0,color:e.palette.text.disabled,backgroundColor:e.palette.mode===`dark`?e.palette.action.hover:e.palette.action.selected,boxShadow:`inset 0 0 0 1px ${e.palette.divider}`}));var _re=(0,C.createContext)({}),vre=(0,C.createContext)(null);function pO(e,t){e.indexOf(t)===-1&&e.push(t)}function mO(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var hO=(e,t,n)=>n>t?t:n<e?e:n,gO={},_O=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function vO(e){return typeof e==`object`&&!!e}var yO=e=>/^0[^.\s]+$/u.test(e);function bO(e){let t;return()=>(t===void 0&&(t=e()),t)}var xO=e=>e,SO=(e,t)=>n=>t(e(n)),CO=(...e)=>e.reduce(SO),wO=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},TO=class{constructor(){this.subscriptions=[]}add(e){return pO(this.subscriptions,e),()=>mO(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},EO=e=>e*1e3,DO=e=>e/1e3;function OO(e,t){return t?1e3/t*e:0}var kO=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,AO=1e-7,jO=12;function MO(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=kO(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>AO&&++s<jO);return o}function NO(e,t,n,r){if(e===t&&n===r)return xO;let i=t=>MO(t,0,1,e,n);return e=>e===0||e===1?e:kO(i(e),t,r)}var PO=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,FO=e=>t=>1-e(1-t),IO=NO(.33,1.53,.69,.99),LO=FO(IO),RO=PO(LO),zO=e=>e>=1?1:(e*=2)<1?.5*LO(e):.5*(2-2**(-10*(e-1))),BO=e=>1-Math.sin(Math.acos(e)),VO=FO(BO),HO=PO(BO),UO=NO(.42,0,1,1),WO=NO(0,0,.58,1),GO=NO(.42,0,.58,1),KO=e=>Array.isArray(e)&&typeof e[0]!=`number`,qO=e=>Array.isArray(e)&&typeof e[0]==`number`,JO={linear:xO,easeIn:UO,easeInOut:GO,easeOut:WO,circIn:BO,circInOut:HO,circOut:VO,backIn:LO,backInOut:RO,backOut:IO,anticipate:zO},YO=e=>typeof e==`string`,XO=e=>{if(qO(e)){e.length;let[t,n,r,i]=e;return NO(t,n,r,i)}else if(YO(e))return JO[e],`${e}`,JO[e];return e},ZO=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],QO={value:null,addProjectionMetrics:null};function $O(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;n=r,r=o,n.forEach(l),t&&QO.value&&QO.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var ek=40;function tk(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=ZO.reduce((e,n)=>(e[n]=$O(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=gO.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,ek),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:ZO.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<ZO.length;t++)o[ZO[t]].cancel(e)},state:i,steps:o}}var{schedule:nk,cancel:rk,state:ik,steps:ak}=tk(typeof requestAnimationFrame<`u`?requestAnimationFrame:xO,!0),ok;function sk(){ok=void 0}var ck={now:()=>(ok===void 0&&ck.set(ik.isProcessing||gO.useManualTiming?ik.timestamp:performance.now()),ok),set:e=>{ok=e,queueMicrotask(sk)}},lk={layout:0,mainThread:0,waapi:0},uk=e=>t=>typeof t==`string`&&t.startsWith(e),dk=uk(`--`),fk=uk(`var(--`),pk=e=>fk(e)?mk.test(e.split(`/*`)[0].trim()):!1,mk=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function hk(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var gk={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},_k={...gk,transform:e=>hO(0,1,e)},vk={...gk,default:1},yk=e=>Math.round(e*1e5)/1e5,bk=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function xk(e){return e==null}var Sk=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ck=(e,t)=>n=>!!(typeof n==`string`&&Sk.test(n)&&n.startsWith(e)||t&&!xk(n)&&Object.prototype.hasOwnProperty.call(n,t)),wk=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(bk);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Tk=e=>hO(0,255,e),Ek={...gk,transform:e=>Math.round(Tk(e))},Dk={test:Ck(`rgb`,`red`),parse:wk(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Ek.transform(e)+`, `+Ek.transform(t)+`, `+Ek.transform(n)+`, `+yk(_k.transform(r))+`)`};function Ok(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var kk={test:Ck(`#`),parse:Ok,transform:Dk.transform},Ak=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),jk=Ak(`deg`),Mk=Ak(`%`),Nk=Ak(`px`),Pk=Ak(`vh`),Fk=Ak(`vw`),Ik={...Mk,parse:e=>Mk.parse(e)/100,transform:e=>Mk.transform(e*100)},Lk={test:Ck(`hsl`,`hue`),parse:wk(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Mk.transform(yk(t))+`, `+Mk.transform(yk(n))+`, `+yk(_k.transform(r))+`)`},Rk={test:e=>Dk.test(e)||kk.test(e)||Lk.test(e),parse:e=>Dk.test(e)?Dk.parse(e):Lk.test(e)?Lk.parse(e):kk.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Dk.transform(e):Lk.transform(e),getAnimatableNone:e=>{let t=Rk.parse(e);return t.alpha=0,Rk.transform(t)}},zk=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Bk(e){return isNaN(e)&&typeof e==`string`&&(e.match(bk)?.length||0)+(e.match(zk)?.length||0)>0}var Vk=`number`,Hk=`color`,Uk=`var`,Wk=`var(`,Gk="${}",Kk=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function qk(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Kk,e=>(Rk.test(e)?(r.color.push(a),i.push(Hk),n.push(Rk.parse(e))):e.startsWith(Wk)?(r.var.push(a),i.push(Uk),n.push(e)):(r.number.push(a),i.push(Vk),n.push(parseFloat(e))),++a,Gk)).split(Gk),indexes:r,types:i}}function Jk(e){return qk(e).values}function Yk({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===Vk?i+=yk(r[a]):e===Hk?i+=Rk.transform(r[a]):i+=r[a]}return i}}function Xk(e){return Yk(qk(e))}var Zk=e=>typeof e==`number`?0:Rk.test(e)?Rk.getAnimatableNone(e):e,Qk=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Zk(e);function $k(e){let t=qk(e);return Yk(t)(t.values.map((e,n)=>Qk(e,t.split[n])))}var eA={test:Bk,parse:Jk,createTransformer:Xk,getAnimatableNone:$k};function tA(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function nA({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=tA(s,r,e+1/3),a=tA(s,r,e),o=tA(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function rA(e,t){return n=>n>0?t:e}var iA=(e,t,n)=>e+(t-e)*n,aA=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},oA=[kk,Dk,Lk],sA=e=>oA.find(t=>t.test(e));function cA(e){let t=sA(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===Lk&&(n=nA(n)),n}var lA=(e,t)=>{let n=cA(e),r=cA(t);if(!n||!r)return rA(e,t);let i={...n};return e=>(i.red=aA(n.red,r.red,e),i.green=aA(n.green,r.green,e),i.blue=aA(n.blue,r.blue,e),i.alpha=iA(n.alpha,r.alpha,e),Dk.transform(i))},uA=new Set([`none`,`hidden`]);function dA(e,t){return uA.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function fA(e,t){return n=>iA(e,t,n)}function pA(e){return typeof e==`number`?fA:typeof e==`string`?pk(e)?rA:Rk.test(e)?lA:_A:Array.isArray(e)?mA:typeof e==`object`?Rk.test(e)?lA:hA:rA}function mA(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>pA(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function hA(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=pA(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function gA(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var _A=(e,t)=>{let n=eA.createTransformer(t),r=qk(e),i=qk(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?uA.has(e)&&!i.values.length||uA.has(t)&&!r.values.length?dA(e,t):CO(mA(gA(r,i),i.values),n):(`${e}${t}`,rA(e,t))};function vA(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?iA(e,t,n):pA(e)(e,t)}var yA=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>nk.update(t,e),stop:()=>rk(t),now:()=>ik.isProcessing?ik.timestamp:ck.now()}},bA=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},xA=2e4;function SA(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function CA(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(SA(r),xA);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:DO(i)}}var wA={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function TA(e,t){return e*Math.sqrt(1-t*t)}var EA=12;function DA(e,t,n){let r=n;for(let n=1;n<EA;n++)r-=e(r)/t(r);return r}var OA=.001;function kA({duration:e=wA.duration,bounce:t=wA.bounce,velocity:n=wA.velocity,mass:r=wA.mass}){let i,a;wA.maxDuration;let o=1-t;o=hO(wA.minDamping,wA.maxDamping,o),e=hO(wA.minDuration,wA.maxDuration,DO(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=TA(t,o),c=Math.exp(-i);return OA-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=TA(t**2,o);return(-i(t)+OA>0?-1:1)*((a-s)*c)/l}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-OA+r*i},a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=DA(i,a,s);if(e=EO(e),isNaN(c))return{stiffness:wA.stiffness,damping:wA.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var AA=[`duration`,`bounce`],jA=[`stiffness`,`damping`,`mass`];function MA(e,t){return t.some(t=>e[t]!==void 0)}function NA(e){let t={velocity:wA.velocity,stiffness:wA.stiffness,damping:wA.damping,mass:wA.mass,isResolvedFromDuration:!1,...e};if(!MA(e,jA)&&MA(e,AA))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*hO(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:wA.mass,stiffness:i,damping:a}}else{let n=kA({...e,velocity:0});t={...t,...n,mass:wA.mass},t.isResolvedFromDuration=!0}return t}function PA(e=wA.visualDuration,t=wA.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=NA({...n,velocity:-DO(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=DO(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?wA.restSpeed.granular:wA.restSpeed.default,i||=v?wA.restDelta.granular:wA.restDelta.default;let y,b,x,S,C,w;if(h<1)x=TA(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>EO(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=EO(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=EO(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(SA(T),xA),t=bA(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}PA.applyToOptions=e=>{let t=CA(e,100,PA);return e.ease=t.ease,e.duration=EO(t.duration),e.type=`keyframes`,e};var yre=5;function FA(e,t,n){let r=Math.max(t-yre,0);return OO(n-e(r),t-r)}function IA({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=PA({keyframes:[f.value,m(f.value)],velocity:FA(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function bre(e,t,n){let r=[],i=n||gO.mix||vA,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=CO(Array.isArray(t)?t[n]||xO:t,a)),r.push(a)}return r}function xre(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=bre(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=wO(e[r],e[r+1],n);return s[r](i)};return n?t=>l(hO(e[0],e[a-1],t)):l}function Sre(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=wO(0,t,r);e.push(iA(n,1,i))}}function Cre(e){let t=[0];return Sre(t,e.length-1),t}function wre(e,t){return e.map(e=>e*t)}function Tre(e,t){return e.map(()=>t||GO).splice(0,e.length-1)}function LA({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=KO(r)?r.map(XO):XO(r),a={done:!1,value:t[0]},o=xre(wre(n&&n.length===t.length?n:Cre(t),e),t,{ease:Array.isArray(i)?i:Tre(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Ere=e=>e!==null;function RA(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Ere),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Dre={decay:IA,inertia:IA,tween:LA,keyframes:LA,spring:PA};function zA(e){typeof e.type==`string`&&(e.type=Dre[e.type])}var BA=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},Ore=e=>e/100,VA=class extends BA{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==ck.now()&&this.tick(ck.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},lk.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;zA(e);let{type:t=LA,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||LA;s!==LA&&typeof o[0]!=`number`&&(this.mixKeyframes=CO(Ore,vA(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=SA(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=hO(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==IA&&(b.value=RA(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return DO(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+DO(e)}get time(){return DO(this.currentTime)}set time(e){e=EO(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return FA(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(ck.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=DO(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=yA,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(ck.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null,lk.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function kre(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var HA=e=>e*180/Math.PI,UA=e=>WA(HA(Math.atan2(e[1],e[0]))),Are={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:UA,rotateZ:UA,skewX:e=>HA(Math.atan(e[1])),skewY:e=>HA(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},WA=e=>(e%=360,e<0&&(e+=360),e),GA=UA,KA=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),qA=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),jre={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:KA,scaleY:qA,scale:e=>(KA(e)+qA(e))/2,rotateX:e=>WA(HA(Math.atan2(e[6],e[5]))),rotateY:e=>WA(HA(Math.atan2(-e[2],e[0]))),rotateZ:GA,rotate:GA,skewX:e=>HA(Math.atan(e[4])),skewY:e=>HA(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function JA(e){return+!!e.includes(`scale`)}function YA(e,t){if(!e||e===`none`)return JA(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=jre,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Are,i=t}if(!i)return JA(t);let a=r[t],o=i[1].split(`,`).map(ZA);return typeof a==`function`?a(o):o[a]}var XA=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return YA(n,t)};function ZA(e){return parseFloat(e.trim())}var QA=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],$A=new Set(QA),ej=e=>e===gk||e===Nk,tj=new Set([`x`,`y`,`z`]),nj=QA.filter(e=>!tj.has(e));function rj(e){let t=[];return nj.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var ij={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>YA(t,`x`),y:(e,{transform:t})=>YA(t,`y`)};ij.translateX=ij.x,ij.translateY=ij.y;var aj=new Set,oj=!1,sj=!1,cj=!1;function lj(){if(sj){let e=Array.from(aj).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=rj(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}sj=!1,oj=!1,aj.forEach(e=>e.complete(cj)),aj.clear()}function uj(){aj.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(sj=!0)})}function dj(){cj=!0,uj(),lj(),cj=!1}var fj=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(aj.add(this),oj||(oj=!0,nk.read(uj),nk.resolveKeyframes(lj))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}kre(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),aj.delete(this)}cancel(){this.state===`scheduled`&&(aj.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},pj=e=>e.startsWith(`--`);function mj(e,t,n){pj(t)?e.style.setProperty(t,n):e.style[t]=n}var hj={};function gj(e,t){let n=bO(e);return()=>hj[t]??n()}var _j=gj(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),vj=gj(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),yj=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,bj={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:yj([0,.65,.55,1]),circOut:yj([.55,0,1,.45]),backIn:yj([.31,.01,.66,-.59]),backOut:yj([.33,1.53,.69,.99])};function xj(e,t){if(e)return typeof e==`function`?vj()?bA(e,t):`ease-out`:qO(e)?yj(e):Array.isArray(e)?e.map(e=>xj(e,t)||bj.easeOut):bj[e]}function Sj(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=xj(s,i);Array.isArray(d)&&(u.easing=d),QO.value&&lk.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return QO.value&&p.finished.finally(()=>{lk.waapi--}),p}function Cj(e){return typeof e==`function`&&`applyToOptions`in e}function wj({type:e,...t}){return Cj(e)&&vj()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Tj=class extends BA{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=wj(e);this.animation=Sj(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=RA(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),mj(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return DO(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+DO(e)}get time(){return DO(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=EO(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&_j()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),xO):r(this)}},Ej={anticipate:zO,backInOut:RO,circInOut:HO};function Dj(e){return e in Ej}function Oj(e){typeof e.ease==`string`&&Dj(e.ease)&&(e.ease=Ej[e.ease])}var kj=10,Aj=class extends Tj{constructor(e){Oj(e),zA(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new VA({...a,autoplay:!1}),s=Math.max(kj,ck.now()-this.startTime),c=hO(0,kj,s-kj),l=o.sample(s).value,{name:u}=this.options;i&&u&&mj(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},jj=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(eA.test(e)||e===`0`)&&!e.startsWith(`url(`));function Mj(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Nj(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=jj(i,t),s=jj(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:Mj(e)||(n===`spring`||Cj(n))&&r}function Pj(e){e.duration=0,e.type=`keyframes`}var Fj=new Set([`opacity`,`clipPath`,`filter`,`transform`]),Ij=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Lj(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Ij.test(e[t]))return!0;return!1}var Rj=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),zj=bO(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Bj(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return zj()&&n&&(Fj.has(n)||Rj.has(n)&&Lj(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Vj=40,Hj=class extends BA{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ck.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||fj;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=ck.now();let u=!0;Nj(e,i,a,o)||(u=!1,(gO.instantAnimations||!s)&&l?.(RA(e,n,t)),e[0]=e[e.length-1],Pj(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Vj?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&Bj(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new Aj({...d,element:p})}catch{m=new VA(d)}else m=new VA(d);m.finished.then(()=>{this.notifyFinished()}).catch(xO),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),dj()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function Uj(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Wj=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Gj(e){let t=Wj.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Kj(e,t,n=1){`${e}`;let[r,i]=Gj(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return _O(e)?parseFloat(e):e}return pk(i)?Kj(i,t,n+1):i}var qj={type:`spring`,stiffness:500,damping:25,restSpeed:10},Jj=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Yj={type:`keyframes`,duration:.8},Xj={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Zj=(e,{keyframes:t})=>t.length>2?Yj:$A.has(e)?e.startsWith(`scale`)?Jj(t[1]):qj:Xj;function Qj(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function $j(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Qj(n,e)}var eM=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function tM(e){for(let t in e)if(!eM.has(t))return!0;return!1}var nM=(e,t,n,r={},i,a)=>o=>{let s=$j(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=EO(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};tM(s)||Object.assign(u,Zj(e,u)),u.duration&&=EO(u.duration),u.repeatDelay&&=EO(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Pj(u),u.delay===0&&(d=!0)),(gO.instantAnimations||gO.skipAnimations||i?.shouldSkipAnimations)&&(d=!0,Pj(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=RA(u.keyframes,s);if(e!==void 0){nk.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new VA(u):new Hj(u)};function rM(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function iM(e,t,n,r){if(typeof t==`function`){let[i,a]=rM(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=rM(r);t=t(n===void 0?e.custom:n,i,a)}return t}function aM(e,t,n){let r=e.getProps();return iM(r,t,n===void 0?r.custom:n,e)}var oM=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...QA]),sM=30,cM=e=>!isNaN(parseFloat(e)),lM={current:void 0},uM=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=ck.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=ck.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=cM(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new TO);let n=this.events[e].add(t);return e===`change`?()=>{n(),nk.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return lM.current&&lM.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=ck.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>sM)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,sM);return OO(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function dM(e,t){return new uM(e,t)}var fM=e=>Array.isArray(e);function pM(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,dM(n))}function mM(e){return fM(e)?e[e.length-1]||0:e}function hM(e,t){let{transitionEnd:n={},transition:r={},...i}=aM(e,t)||{};i={...i,...n};for(let t in i)pM(e,t,mM(i[t]))}var gM=e=>!!(e&&e.getVelocity);function _M(e){return!!(gM(e)&&e.add)}function vM(e,t){let n=e.getValue(`willChange`);if(_M(n))return n.add(t);if(!n&&gO.WillChange){let n=new gO.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function yM(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var bM=`data-`+yM(`framerAppearId`);function xM(e){return e.props[bM]}function SM({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function CM(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Qj(a,c):c;let l=a?.reduceMotion;r&&(a=r);let u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||d&&SM(d,t))continue;let o={delay:n,...$j(a||{},t)},c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){nk.update(()=>r.set(i));continue}let f=!1;if(window.MotionHandoffAnimation){let n=xM(e);if(n){let e=window.MotionHandoffAnimation(n,t,nk);e!==null&&(o.startTime=e,f=!0)}}vM(e,t);let p=l??e.shouldReduceMotion;r.start(nM(t,r,i,p&&oM.has(t)?{type:!1}:o,e,f));let m=r.animation;m&&u.push(m)}if(o){let t=()=>nk.update(()=>{o&&hM(e,o)});u.length?Promise.all(u).then(t):t()}return u}function wM(e,t,n={}){let r=aM(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(CM(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return TM(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function TM(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(wM(c,t,{...o,delay:n+(typeof r==`function`?0:r)+Uj(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function EM(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>wM(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=wM(e,t,n);else{let i=typeof t==`function`?aM(e,t,n.custom):t;r=Promise.all(CM(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var DM={test:e=>e===`auto`,parse:e=>e},OM=e=>t=>t.test(e),kM=[gk,Nk,Mk,jk,Fk,Pk,DM],AM=e=>kM.find(OM(e));function jM(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||yO(e)}var MM=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function NM(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(bk)||[];if(!r)return e;let i=n.replace(r,``),a=+!!MM.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var PM=/\b([a-z-]*)\(.*?\)/gu,FM={...eA,getAnimatableNone:e=>{let t=e.match(PM);return t?t.map(NM).join(` `):e}},IM={...eA,getAnimatableNone:e=>{let t=eA.parse(e);return eA.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},LM={...gk,transform:Math.round},RM={borderWidth:Nk,borderTopWidth:Nk,borderRightWidth:Nk,borderBottomWidth:Nk,borderLeftWidth:Nk,borderRadius:Nk,borderTopLeftRadius:Nk,borderTopRightRadius:Nk,borderBottomRightRadius:Nk,borderBottomLeftRadius:Nk,width:Nk,maxWidth:Nk,height:Nk,maxHeight:Nk,top:Nk,right:Nk,bottom:Nk,left:Nk,inset:Nk,insetBlock:Nk,insetBlockStart:Nk,insetBlockEnd:Nk,insetInline:Nk,insetInlineStart:Nk,insetInlineEnd:Nk,padding:Nk,paddingTop:Nk,paddingRight:Nk,paddingBottom:Nk,paddingLeft:Nk,paddingBlock:Nk,paddingBlockStart:Nk,paddingBlockEnd:Nk,paddingInline:Nk,paddingInlineStart:Nk,paddingInlineEnd:Nk,margin:Nk,marginTop:Nk,marginRight:Nk,marginBottom:Nk,marginLeft:Nk,marginBlock:Nk,marginBlockStart:Nk,marginBlockEnd:Nk,marginInline:Nk,marginInlineStart:Nk,marginInlineEnd:Nk,fontSize:Nk,backgroundPositionX:Nk,backgroundPositionY:Nk,rotate:jk,rotateX:jk,rotateY:jk,rotateZ:jk,scale:vk,scaleX:vk,scaleY:vk,scaleZ:vk,skew:jk,skewX:jk,skewY:jk,distance:Nk,translateX:Nk,translateY:Nk,translateZ:Nk,x:Nk,y:Nk,z:Nk,perspective:Nk,transformPerspective:Nk,opacity:_k,originX:Ik,originY:Ik,originZ:Nk,zIndex:LM,fillOpacity:_k,strokeOpacity:_k,numOctaves:LM},zM={...RM,color:Rk,backgroundColor:Rk,outlineColor:Rk,fill:Rk,stroke:Rk,borderColor:Rk,borderTopColor:Rk,borderRightColor:Rk,borderBottomColor:Rk,borderLeftColor:Rk,filter:FM,WebkitFilter:FM,mask:IM,WebkitMask:IM},BM=e=>zM[e],VM=new Set([FM,IM]);function HM(e,t){let n=BM(e);return VM.has(n)||(n=eA),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var UM=new Set([`auto`,`none`,`0`]);function WM(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!UM.has(t)&&qk(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=HM(n,i)}var GM=class extends fj{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),pk(r))){let i=Kj(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!oM.has(n)||e.length!==2)return;let[r,i]=e,a=AM(r),o=AM(i);if(hk(r)!==hk(i)&&ij[n]){this.needsMeasurement=!0;return}if(a!==o)if(ej(a)&&ej(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else ij[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||jM(e[t]))&&n.push(t);n.length&&WM(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ij[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=ij[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function KM(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var qM=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function JM(e){return vO(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:YM,cancel:Mre}=tk(queueMicrotask,!1),XM={x:!1,y:!1};function ZM(){return XM.x||XM.y}function QM(e){return e===`x`||e===`y`?XM[e]?null:(XM[e]=!0,()=>{XM[e]=!1}):XM.x||XM.y?null:(XM.x=XM.y=!0,()=>{XM.x=XM.y=!1})}function $M(e,t){let n=KM(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function eN(e){return!(e.pointerType===`touch`||ZM())}function tN(e,t,n={}){let[r,i,a]=$M(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!eN(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var nN=(e,t)=>t?e===t?!0:nN(e,t.parentElement):!1,rN=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,iN=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function aN(e){return iN.has(e.tagName)||e.isContentEditable===!0}var oN=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function sN(e){return oN.has(e.tagName)||e.isContentEditable===!0}var cN=new WeakSet;function lN(e){return t=>{t.key===`Enter`&&e(t)}}function uN(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var dN=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=lN(()=>{if(cN.has(n))return;uN(n,`down`);let e=lN(()=>{uN(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>uN(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function fN(e){return rN(e)&&!ZM()}var pN=new WeakSet;function mN(e,t,n={}){let[r,i,a]=$M(e,n),o=e=>{let r=e.currentTarget;if(!fN(e)||pN.has(e))return;cN.add(r),n.stopPropagation&&pN.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),cN.has(r)&&cN.delete(r),fN(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||nN(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),JM(e)&&(e.addEventListener(`focus`,e=>dN(e,i)),!aN(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function hN(e){return vO(e)&&`ownerSVGElement`in e}var gN=new WeakMap,_N,vN=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:hN(r)&&`getBBox`in r?r.getBBox()[t]:r[n],yN=vN(`inline`,`width`,`offsetWidth`),bN=vN(`block`,`height`,`offsetHeight`);function xN({target:e,borderBoxSize:t}){gN.get(e)?.forEach(n=>{n(e,{get width(){return yN(e,t)},get height(){return bN(e,t)}})})}function SN(e){e.forEach(xN)}function CN(){typeof ResizeObserver>`u`||(_N=new ResizeObserver(SN))}function wN(e,t){_N||CN();let n=KM(e);return n.forEach(e=>{let n=gN.get(e);n||(n=new Set,gN.set(e,n)),n.add(t),_N?.observe(e)}),()=>{n.forEach(e=>{let n=gN.get(e);n?.delete(t),n?.size||_N?.unobserve(e)})}}var TN=new Set,EN;function DN(){EN=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};TN.forEach(t=>t(e))},window.addEventListener(`resize`,EN)}function ON(e){return TN.add(e),EN||DN(),()=>{TN.delete(e),!TN.size&&typeof EN==`function`&&(window.removeEventListener(`resize`,EN),EN=void 0)}}function kN(e,t){return typeof e==`function`?ON(e):wN(e,t)}function AN(e){return hN(e)&&e.tagName===`svg`}var jN=[...kM,Rk,eA],MN=e=>jN.find(OM(e)),NN=()=>({translate:0,scale:1,origin:0,originPoint:0}),PN=()=>({x:NN(),y:NN()}),FN=()=>({min:0,max:0}),IN=()=>({x:FN(),y:FN()}),LN=new WeakMap;function RN(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function zN(e){return typeof e==`string`||Array.isArray(e)}var BN=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],VN=[`initial`,...BN];function HN(e){return RN(e.animate)||VN.some(t=>zN(e[t]))}function UN(e){return!!(HN(e)||e.variants)}function WN(e,t,n){for(let r in t){let i=t[r],a=n[r];if(gM(i))e.addValue(r,i);else if(gM(a))e.addValue(r,dM(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,dM(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var GN={current:null},KN={current:!1},qN=typeof window<`u`;function JN(){if(KN.current=!0,qN)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>GN.current=e.matches;e.addEventListener(`change`,t),t()}else GN.current=!1}var YN=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],XN={};function ZN(e){XN=e}function QN(){return XN}var $N=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=fj,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=ck.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,nk.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=HN(t),this.isVariantNode=UN(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&gM(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,LN.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(KN.current||JN(),this.shouldReduceMotion=GN.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),rk(this.notifyUpdate),rk(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Fj.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Tj({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:EO(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=$A.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&nk.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in XN){let t=XN[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):IN()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<YN.length;t++){let n=YN[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=WN(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=dM(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(_O(n)||yO(n))?n=parseFloat(n):!MN(n)&&eA.test(t)&&(n=HM(e,t)),this.setBaseTarget(e,gM(n)?n.get():n)),gM(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=iM(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!gM(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new TO),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){YM.render(this.render)}},eP=class extends $N{constructor(){super(...arguments),this.KeyframeResolver=GM}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;gM(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},tP=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function nP({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function rP({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function iP(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function aP(e){return e===void 0||e===1}function oP({scale:e,scaleX:t,scaleY:n}){return!aP(e)||!aP(t)||!aP(n)}function sP(e){return oP(e)||cP(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function cP(e){return lP(e.x)||lP(e.y)}function lP(e){return e&&e!==`0%`}function uP(e,t,n){return n+t*(e-n)}function dP(e,t,n,r,i){return i!==void 0&&(e=uP(e,i,r)),uP(e,n,r)+t}function fP(e,t=0,n=1,r,i){e.min=dP(e.min,t,n,r,i),e.max=dP(e.max,t,n,r,i)}function pP(e,{x:t,y:n}){fP(e.x,t.translate,t.scale,t.originPoint),fP(e.y,n.translate,n.scale,n.originPoint)}var mP=.999999999999,hP=1.0000000000001;function gP(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(_P(e.x,-a.scroll.offset.x),_P(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,pP(e,o)),r&&sP(a.latestValues)&&bP(e,a.latestValues,a.layout?.layoutBox))}t.x<hP&&t.x>mP&&(t.x=1),t.y<hP&&t.y>mP&&(t.y=1)}function _P(e,t){e.min+=t,e.max+=t}function vP(e,t,n,r,i=.5){fP(e,t,n,iA(e.min,e.max,i),r)}function yP(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function bP(e,t,n){let r=n??e;vP(e.x,yP(t.x,r.x),t.scaleX,t.scale,t.originX),vP(e.y,yP(t.y,r.y),t.scaleY,t.scale,t.originY)}function xP(e,t){return nP(iP(e.getBoundingClientRect(),t))}function SP(e,t,n){let r=xP(e,n),{scroll:i}=t;return i&&(_P(r.x,i.offset.x),_P(r.y,i.offset.y)),r}var CP={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},wP=QA.length;function TP(e,t,n){let r=``,i=!0;for(let a=0;a<wP;a++){let o=QA[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=qM(s,RM[o]);if(!c){i=!1;let t=CP[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function EP(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if($A.has(e)){o=!0;continue}else if(dk(e)){i[e]=n;continue}else{let t=qM(n,RM[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=TP(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function DP(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function OP(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var kP={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(Nk.test(e))e=parseFloat(e);else return e;return`${OP(e,t.target.x)}% ${OP(e,t.target.y)}%`}},AP={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=eA.parse(e);if(i.length>5)return r;let a=eA.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=iA(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},jP={borderRadius:{...kP,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:kP,borderTopRightRadius:kP,borderBottomLeftRadius:kP,borderBottomRightRadius:kP,boxShadow:AP};function MP(e,{layout:t,layoutId:n}){return $A.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!jP[e]||e===`opacity`)}function NP(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(gM(r[t])||i&&gM(i[t])||MP(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function PP(e){return window.getComputedStyle(e)}var FP=class extends eP{constructor(){super(...arguments),this.type=`html`,this.renderInstance=DP}readValueFromInstance(e,t){if($A.has(t))return this.projection?.isProjecting?JA(t):XA(e,t);{let n=PP(e),r=(dk(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return xP(e,t)}build(e,t,n){EP(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return NP(e,t,n)}},IP={offset:`stroke-dashoffset`,array:`stroke-dasharray`},LP={offset:`strokeDashoffset`,array:`strokeDasharray`};function RP(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?IP:LP;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var zP=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function BP(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(EP(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of zP)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&RP(d,i,a,o,!1)}var VP=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),HP=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function UP(e,t,n,r){DP(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(VP.has(n)?n:yM(n),t.attrs[n])}function WP(e,t,n){let r=NP(e,t,n);for(let n in e)if(gM(e[n])||gM(t[n])){let t=QA.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var GP=class extends eP{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=IN}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if($A.has(t)){let e=BM(t);return e&&e.default||0}return t=VP.has(t)?t:yM(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return WP(e,t,n)}build(e,t,n){BP(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){UP(e,t,n,r)}mount(e){this.isSVGTag=HP(e.tagName),super.mount(e)}},KP=VN.length;function qP(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&qP(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<KP;n++){let r=VN[n],i=e.props[r];(zN(i)||i===!1)&&(t[r]=i)}return t}function JP(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var YP=[...BN].reverse(),XP=BN.length;function ZP(e){return t=>Promise.all(t.map(({animation:t,options:n})=>EM(e,t,n)))}function QP(e){let t=ZP(e),n=tF(),r=!0,i=!1,a=t=>(n,r)=>{let i=aM(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=qP(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<XP;t++){let p=YP[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=zN(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||RN(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=$P(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=fM(t)&&fM(n)?!JP(t,n):t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=aM(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=Uj(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=aM(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=tF(),i=!0}}}function $P(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!JP(t,e):!1}function eF(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function tF(){return{animate:eF(!0),whileInView:eF(),whileHover:eF(),whileTap:eF(),whileDrag:eF(),whileFocus:eF(),exit:eF()}}function nF(e,t){e.min=t.min,e.max=t.max}function rF(e,t){nF(e.x,t.x),nF(e.y,t.y)}function iF(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var aF=1e-4,oF=1-aF,sF=1+aF,cF=.01,lF=0-cF,uF=0+cF;function dF(e){return e.max-e.min}function fF(e,t,n){return Math.abs(e-t)<=n}function pF(e,t,n,r=.5){e.origin=r,e.originPoint=iA(t.min,t.max,e.origin),e.scale=dF(n)/dF(t),e.translate=iA(n.min,n.max,e.origin)-e.originPoint,(e.scale>=oF&&e.scale<=sF||isNaN(e.scale))&&(e.scale=1),(e.translate>=lF&&e.translate<=uF||isNaN(e.translate))&&(e.translate=0)}function mF(e,t,n,r){pF(e.x,t.x,n.x,r?r.originX:void 0),pF(e.y,t.y,n.y,r?r.originY:void 0)}function hF(e,t,n,r=0){e.min=(r?iA(n.min,n.max,r):n.min)+t.min,e.max=e.min+dF(t)}function gF(e,t,n,r){hF(e.x,t.x,n.x,r?.x),hF(e.y,t.y,n.y,r?.y)}function _F(e,t,n,r=0){let i=r?iA(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+dF(t)}function vF(e,t,n,r){_F(e.x,t.x,n.x,r?.x),_F(e.y,t.y,n.y,r?.y)}function yF(e,t,n,r,i){return e-=t,e=uP(e,1/n,r),i!==void 0&&(e=uP(e,1/i,r)),e}function bF(e,t=0,n=1,r=.5,i,a=e,o=e){if(Mk.test(t)&&(t=parseFloat(t),t=iA(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=iA(a.min,a.max,r);e===a&&(s-=t),e.min=yF(e.min,t,n,s,i),e.max=yF(e.max,t,n,s,i)}function xF(e,t,[n,r,i],a,o){bF(e,t[n],t[r],t[i],t.scale,a,o)}var SF=[`x`,`scaleX`,`originX`],CF=[`y`,`scaleY`,`originY`];function wF(e,t,n,r){xF(e.x,t,SF,n?n.x:void 0,r?r.x:void 0),xF(e.y,t,CF,n?n.y:void 0,r?r.y:void 0)}function TF(e){return e.translate===0&&e.scale===1}function EF(e){return TF(e.x)&&TF(e.y)}function DF(e,t){return e.min===t.min&&e.max===t.max}function OF(e,t){return DF(e.x,t.x)&&DF(e.y,t.y)}function kF(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function AF(e,t){return kF(e.x,t.x)&&kF(e.y,t.y)}function jF(e){return dF(e.x)/dF(e.y)}function MF(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function NF(e){return[e(`x`),e(`y`)]}function PF(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var FF=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`],IF=FF.length,LF=e=>typeof e==`string`?parseFloat(e):e,RF=e=>typeof e==`number`||Nk.test(e);function zF(e,t,n,r,i,a){i?(e.opacity=iA(0,n.opacity??1,VF(r)),e.opacityExit=iA(t.opacity??1,0,HF(r))):a&&(e.opacity=iA(t.opacity??1,n.opacity??1,r));for(let i=0;i<IF;i++){let a=FF[i],o=BF(t,a),s=BF(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||RF(o)===RF(s)?(e[a]=Math.max(iA(LF(o),LF(s),r),0),(Mk.test(s)||Mk.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=iA(t.rotate||0,n.rotate||0,r))}function BF(e,t){return e[t]===void 0?e.borderRadius:e[t]}var VF=UF(0,.5,VO),HF=UF(.5,.95,xO);function UF(e,t,n){return r=>r<e?0:r>t?1:n(wO(e,t,r))}function WF(e,t,n){let r=gM(e)?e:dM(e);return r.start(nM(``,r,t,n)),r.animation}function GF(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var KF=(e,t)=>e.depth-t.depth,qF=class{constructor(){this.children=[],this.isDirty=!1}add(e){pO(this.children,e),this.isDirty=!0}remove(e){mO(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(KF),this.isDirty=!1,this.children.forEach(e)}};function JF(e,t){let n=ck.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(rk(r),e(a-t))};return nk.setup(r,!0),()=>rk(r)}function YF(e){return gM(e)?e.get():e}var XF=class{constructor(){this.members=[]}add(e){pO(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(mO(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(mO(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},ZF={hasAnimatedSinceResize:!0,hasEverUpdated:!1},QF={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},$F=[``,`X`,`Y`,`Z`],eI=1e3,tI=0;function nI(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function rI(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=xM(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,nk,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&rI(r)}function iI({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=tI++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,QO.value&&(QF.nodes=QF.calculatedTargetDeltas=QF.calculatedProjections=0),this.nodes.forEach(sI),this.nodes.forEach(gI),this.nodes.forEach(_I),this.nodes.forEach(cI),QO.addProjectionMetrics&&QO.addProjectionMetrics(QF)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new qF)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new TO),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=hN(t)&&!AN(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;nk.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=JF(i,250),ZF.hasAnimatedSinceResize&&(ZF.hasAnimatedSinceResize=!1,this.nodes.forEach(hI)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||wI,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!AF(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...$j(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||hI(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),rk(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(vI),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&rI(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(dI),this.nodes.forEach(uI);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(fI);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(pI),this.nodes.forEach(mI),this.nodes.forEach(aI),this.nodes.forEach(oI)):this.nodes.forEach(fI),this.clearAllSnapshots();let e=ck.now();ik.delta=hO(0,1e3/60,e-ik.timestamp),ik.timestamp=e,ik.isProcessing=!0,ak.update.process(ik),ak.preRender.process(ik),ak.render.process(ik),ik.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,YM.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(lI),this.sharedNodes.forEach(yI)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,nk.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){nk.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!dF(this.snapshot.measuredBox.x)&&!dF(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=IN(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!EF(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||sP(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),OI(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return IN();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(AI))){let{scroll:e}=this.root;e&&(_P(t.x,e.offset.x),_P(t.y,e.offset.y))}return t}removeElementScroll(e){let t=IN();if(rF(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&rF(t,e),_P(t.x,i.offset.x),_P(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||IN();rF(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(_P(r.x,-n.scroll.offset.x),_P(r.y,-n.scroll.offset.y)),sP(n.latestValues)&&bP(r,n.latestValues,n.layout?.layoutBox)}return sP(this.latestValues)&&bP(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=IN();rF(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!sP(n.latestValues))continue;let r;n.instance&&(oP(n.latestValues)&&n.updateSnapshot(),r=IN(),rF(r,n.measurePageBox())),wF(t,n.latestValues,n.snapshot?.layoutBox,r)}return sP(this.latestValues)&&wF(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ik.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=ik.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=IN(),this.targetWithTransforms=IN()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),gF(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):rF(this.target,this.layout.layoutBox),pP(this.target,this.targetDelta)):rF(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),QO.value&&QF.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||oP(this.parent.latestValues)||cP(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=IN(),this.relativeTargetOrigin=IN(),vF(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),rF(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===ik.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;rF(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;gP(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=IN());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(iF(this.prevProjectionDelta.x,this.projectionDelta.x),iF(this.prevProjectionDelta.y,this.projectionDelta.y)),mF(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!MF(this.projectionDelta.x,this.prevProjectionDelta.x)||!MF(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),QO.value&&QF.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=PN(),this.projectionDelta=PN(),this.projectionDeltaWithTransform=PN()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=PN();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=IN(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),l=!c||c.members.length<=1,u=!!(s&&!l&&this.options.crossfade===!0&&!this.path.some(CI));this.animationProgress=0;let d;this.mixTargetDelta=t=>{let n=t/1e3;bI(a.x,e.x,n),bI(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(vF(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),SI(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&OF(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||=IN(),rF(d,this.relativeTarget)),s&&(this.animationValues=i,zF(i,r,this.latestValues,n,u,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(rk(this.pendingAnimation),void 0),this.pendingAnimation=nk.update(()=>{ZF.hasAnimatedSinceResize=!0,lk.layout++,this.motionValue||=dM(0),this.motionValue.jump(0,!1),this.currentAnimation=WF(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{lk.layout--},onComplete:()=>{lk.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(eI),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&kI(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||IN();let t=dF(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=dF(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}rF(t,n),bP(t,i),mF(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new XF),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&nI(`z`,e,r,this.animationValues);for(let t=0;t<$F.length;t++)nI(`rotate${$F[t]}`,e,r,this.animationValues),nI(`skew${$F[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=YF(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=YF(t?.pointerEvents)||``),this.hasProjected&&!sP(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=PF(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in jP){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=jP[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?YF(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(uI),this.root.sharedNodes.clear()}}}function aI(e){e.updateLayout()}function oI(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)NF(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=dF(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;nF(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else kI(i,t.layoutBox,n)&&NF(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=dF(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=PN();mF(o,n,t.layoutBox);let s=PN();a?mF(s,e.applyTransform(r,!0),t.measuredBox):mF(s,n,t.layoutBox);let c=!EF(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=IN();vF(s,t.layoutBox,i.layoutBox,o);let c=IN();vF(c,n,a.layoutBox,o),AF(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function sI(e){QO.value&&QF.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function cI(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function lI(e){e.clearSnapshot()}function uI(e){e.clearMeasurements()}function dI(e){e.isLayoutDirty=!0,e.updateLayout()}function fI(e){e.isLayoutDirty=!1}function pI(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function mI(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function hI(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function gI(e){e.resolveTargetDelta()}function _I(e){e.calcProjection()}function vI(e){e.resetSkewAndRotation()}function yI(e){e.removeLeadSnapshot()}function bI(e,t,n){e.translate=iA(t.translate,0,n),e.scale=iA(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function xI(e,t,n,r){e.min=iA(t.min,n.min,r),e.max=iA(t.max,n.max,r)}function SI(e,t,n,r){xI(e.x,t.x,n.x,r),xI(e.y,t.y,n.y,r)}function CI(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var wI={duration:.45,ease:[.4,0,.1,1]},TI=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),EI=TI(`applewebkit/`)&&!TI(`chrome/`)?Math.round:xO;function DI(e){e.min=EI(e.min),e.max=EI(e.max)}function OI(e){DI(e.x),DI(e.y)}function kI(e,t,n){return e===`position`||e===`preserve-aspect`&&!fF(jF(t),jF(n),.2)}function AI(e){return e!==e.root&&e.scroll?.wasRoot}var jI=iI({attachResizeListener:(e,t)=>GF(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),MI={current:void 0},NI=iI({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!MI.current){let e=new jI({});e.mount(window),e.setOptions({layoutScroll:!0}),MI.current=e}return MI.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`});function PI(e=!0){let t=(0,C.useContext)(vre);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,C.useId)();(0,C.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,C.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var FI=(0,C.createContext)({strict:!1}),II={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},LI=!1;function RI(){if(LI)return;let e={};for(let t in II)e[t]={isEnabled:e=>II[t].some(t=>!!e[t])};ZN(e),LI=!0}function Nre(){return RI(),QN()}function zI(e){let t=Nre();for(let n in e)t[n]={...t[n],...e[n]};ZN(t)}function BI({children:e,features:t,strict:n=!1}){let[,r]=(0,C.useState)(!VI(t)),i=(0,C.useRef)(void 0);if(!VI(t)){let{renderer:e,...n}=t;i.current=e,zI(n)}return(0,C.useEffect)(()=>{VI(t)&&t().then(({renderer:e,...t})=>{zI(t),i.current=e,r(!0)})},[]),(0,B.jsx)(FI.Provider,{value:{renderer:i.current,strict:n},children:e})}function VI(e){return typeof e==`function`}var HI=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function UI(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(HI.indexOf(e)>-1||/[A-Z]/u.test(e))}var WI=(0,C.createContext)({});function GI(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}var KI=(e,t)=>t.isSVG??UI(e)?new GP(t):new FP(t,{allowProjection:e!==C.Fragment}),qI=class extends tP{constructor(e){super(e),e.animationState||=QP(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();RN(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},JI=0,YI={animation:{Feature:qI},exit:{Feature:class extends tP{constructor(){super(...arguments),this.id=JI++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`){let n=aM(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function XI(e){return{point:{x:e.pageX,y:e.pageY}}}var ZI=e=>t=>rN(t)&&e(t,XI(t));function QI(e,t,n,r){return GF(e,t,ZI(n),r)}var $I=({current:e})=>e?e.ownerDocument.defaultView:null,eL=(e,t)=>Math.abs(e-t);function tL(e,t){let n=eL(e.x,t.x),r=eL(e.y,t.y);return Math.sqrt(n**2+r**2)}var nL=new Set([`auto`,`scroll`]),rL=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=iL(this.lastRawMoveEventInfo,this.transformPagePoint));let e=oL(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=tL(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=ik;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=iL(t,this.transformPagePoint),nk.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=oL(e.type===`pointercancel`?this.lastMoveEventInfo:iL(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!rN(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=iL(XI(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=ik;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,oL(s,this.history)),this.removeListeners=CO(QI(this.contextWindow,`pointermove`,this.handlePointerMove),QI(this.contextWindow,`pointerup`,this.handlePointerUp),QI(this.contextWindow,`pointercancel`,this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(nL.has(e.overflowX)||nL.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),nk.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),rk(this.updatePoint)}};function iL(e,t){return t?{point:t(e.point)}:e}function aL(e,t){return{x:e.x-t.x,y:e.y-t.y}}function oL({point:e},t){return{point:e,delta:aL(e,sL(t)),offset:aL(e,Pre(t)),velocity:Fre(t,.1)}}function Pre(e){return e[0]}function sL(e){return e[e.length-1]}function Fre(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=sL(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>EO(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>EO(t)*2&&(r=e[1]);let a=DO(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Ire(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?iA(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?iA(n,e,r.max):Math.min(e,n)),e}function cL(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Lre(e,{top:t,left:n,bottom:r,right:i}){return{x:cL(e.x,n,i),y:cL(e.y,t,r)}}function lL(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Rre(e,t){return{x:lL(e.x,t.x),y:lL(e.y,t.y)}}function zre(e,t){let n=.5,r=dF(e),i=dF(t);return i>r?n=wO(t.min,t.max-r,e.min):r>i&&(n=wO(e.min,e.max-i,t.min)),hO(0,1,n)}function Bre(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var uL=.35;function Vre(e=uL){return e===!1?e=0:e===!0&&(e=uL),{x:dL(e,`left`,`right`),y:dL(e,`top`,`bottom`)}}function dL(e,t,n){return{min:fL(e,t),max:fL(e,n)}}function fL(e,t){return typeof e==`number`?e:e[t]||0}var Hre=new WeakMap,Ure=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=IN(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(XI(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=QM(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),NF(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Mk.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=dF(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&nk.update(()=>i(e,t),!1,!0),vM(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=Gre(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&nk.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new rL(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:$I(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&nk.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!mL(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Ire(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&GI(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=Lre(n.layoutBox,e):this.constraints=!1,this.elastic=Vre(t),r!==this.constraints&&!GI(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&NF(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Bre(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!GI(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=SP(n,r.root,this.visualElement.getTransformPagePoint()),a=Rre(r.layout.layoutBox,i);if(t){let e=t(rP(a));this.hasMutatedConstraints=!!e,e&&(a=nP(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=NF(o=>{if(!mL(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return vM(this.visualElement,e),n.start(nM(e,n,0,t,this.visualElement,!1))}stopAnimation(){NF(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){NF(t=>{let{drag:n}=this.getProps();if(!mL(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-iA(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!GI(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};NF(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=zre({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),NF(t=>{if(!mL(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(iA(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Hre.set(this.visualElement,this);let e=this.visualElement.current,t=QI(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&sN(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();GI(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=Wre(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),nk.read(r);let o=GF(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(NF(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=uL,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function pL(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function Wre(e,t,n){let r=kN(e,pL(n)),i=kN(t,pL(n));return()=>{r(),i()}}function mL(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Gre(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var Kre=class extends tP{constructor(e){super(e),this.removeGroupControls=xO,this.removeListeners=xO,this.controls=new Ure(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||xO}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},hL=e=>(t,n)=>{e&&nk.update(()=>e(t,n),!1,!0)},qre=class extends tP{constructor(){super(...arguments),this.removePointerDownListener=xO}onPointerDown(e){this.session=new rL(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:$I(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:hL(e),onStart:hL(t),onMove:hL(n),onEnd:(e,t)=>{delete this.session,r&&nk.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=QI(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},gL=!1,Jre=class extends C.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),gL&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ZF.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),gL=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||nk.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),YM.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;gL=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function _L(e){let[t,n]=PI(),r=(0,C.useContext)(_re);return(0,B.jsx)(Jre,{...e,layoutGroup:r,switchLayoutGroup:(0,C.useContext)(WI),isPresent:t,safeToRemove:n})}var Yre={pan:{Feature:qre},drag:{Feature:Kre,ProjectionNode:NI,MeasureLayout:_L}};function vL(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&nk.postRender(()=>i(t,XI(t)))}var Xre=class extends tP{mount(){let{current:e}=this.node;e&&(this.unmount=tN(e,(e,t)=>(vL(this.node,t,`Start`),e=>vL(this.node,e,`End`))))}unmount(){}},Zre=class extends tP{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=CO(GF(this.node.current,`focus`,()=>this.onFocus()),GF(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function yL(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&nk.postRender(()=>i(t,XI(t)))}var Qre=class extends tP{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=mN(e,(e,t)=>(yL(this.node,t,`Start`),(e,{success:t})=>yL(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},bL=new WeakMap,xL=new WeakMap,$re=e=>{let t=bL.get(e.target);t&&t(e)},eie=e=>{e.forEach($re)};function tie({root:e,...t}){let n=e||document;xL.has(n)||xL.set(n,{});let r=xL.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(eie,{root:e,...t})),r[i]}function nie(e,t,n){let r=tie(t);return bL.set(e,n),r.observe(e),()=>{bL.delete(e),r.unobserve(e)}}var rie={some:0,all:1},iie=class extends tP{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:rie[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=nie(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(aie(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function aie({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var oie={inView:{Feature:iie},tap:{Feature:Qre},focus:{Feature:Zre},hover:{Feature:Xre}},sie={layout:{ProjectionNode:NI,MeasureLayout:_L}},cie={renderer:KI,...YI,...oie,...Yre,...sie},lie=`prism`;function SL(e){return`${lie}__${e}`}function CL(e,t){return t?t.reduce((t,n)=>(t[n]=SL(`${e}__${n}`),t),{}):t=>SL(`${e}__${t}`)}SL(`animate__border__root`),SL(`animate__border__primary`),SL(`animate__border__secondary`),SL(`animate__border__svg__wrapper`),SL(`animate__border__moving__shape`);function uie({children:e}){return(0,B.jsx)(BI,{strict:!0,features:cie,children:e})}var die={xs:24,sm:32,md:40,lg:56,xl:80},fie={xs:10,sm:12,md:14,lg:20,xl:28};function pie(e){let t=e.trim().split(/\s+/);return t.length===1?t[0].slice(0,2).toUpperCase():(t[0][0]+t[t.length-1][0]).toUpperCase()}function mie(e){let t=0;for(let n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<5)-t);let n=[`#F44336`,`#E91E63`,`#9C27B0`,`#673AB7`,`#3F51B5`,`#2196F3`,`#03A9F4`,`#00BCD4`,`#009688`,`#4CAF50`,`#8BC34A`,`#CDDC39`,`#FFC107`,`#FF9800`,`#FF5722`,`#795548`];return n[Math.abs(t)%n.length]}var hie=K(oS,{shouldForwardProp:e=>e!==`ownerState`})(({theme:e,ownerState:t})=>{let{size:n,shape:r,hasImage:i,bgColor:a}=t,o=die[n],s=fie[n],c=typeof e.shape.borderRadius==`number`?e.shape.borderRadius:4;return{width:o,height:o,fontSize:s,fontWeight:600,...r===`rounded`&&{borderRadius:c*1.5},...r===`square`&&{borderRadius:0},...!i&&a&&{backgroundColor:a,color:e.palette.getContrastText(a)}}});function gie({children:e,online:t,offline:n,badge:r,badgeColor:i=`error`,size:a}){let o=Cu(),s=t||n,c=a===`xs`?6:a===`sm`?8:10;if(!s&&!r)return e;let l=e=>{let t=o.palette[e];return t&&typeof t==`object`&&`main`in t?t.main:o.palette.error.main},u={position:`relative`,display:`inline-flex`},d={position:`absolute`,bottom:0,right:0,width:c,height:c,borderRadius:`50%`,border:`2px solid ${o.palette.background.paper}`,backgroundColor:t?o.palette.success.main:o.palette.grey[400]},f={position:`absolute`,top:-4,right:-4,minWidth:18,height:18,padding:`0 4px`,borderRadius:9,fontSize:10,fontWeight:600,display:`flex`,alignItems:`center`,justifyContent:`center`,color:o.palette.common.white,backgroundColor:l(i)};return(0,B.jsxs)(`span`,{style:u,children:[e,s&&(0,B.jsx)(`span`,{style:d}),r&&(0,B.jsx)(`span`,{style:f,children:r})]})}(0,C.forwardRef)(function({size:e=`md`,shape:t=`circular`,name:n,src:r,alt:i,online:a,offline:o,badge:s,badgeColor:c,children:l,sx:u,...d},f){let p=(0,C.useMemo)(()=>l?null:n?pie(n):null,[n,l]),m=(0,C.useMemo)(()=>{if(!r)return n?mie(n):void 0},[r,n]);return(0,B.jsx)(gie,{online:a,offline:o,badge:s,badgeColor:c,size:e,children:(0,B.jsx)(hie,{ref:f,src:r,alt:i||n,ownerState:{size:e,shape:t,hasImage:!!r,bgColor:m},sx:u,...d,children:l||p})})});var _ie=K(CS,{shouldForwardProp:e=>e!==`ownerState`})(({theme:e,ownerState:t})=>{let{variant:n,color:r,size:i}=t,{width:a,height:o,fontSize:s}={small:{width:16,height:16,fontSize:10},medium:{width:20,height:20,fontSize:12},large:{width:24,height:24,fontSize:14}}[i],c={default:e.palette.grey[500],primary:e.palette.primary.main,secondary:e.palette.secondary.main,success:e.palette.success.main,warning:e.palette.warning.main,error:e.palette.error.main,info:e.palette.info.main},l={online:e.palette.success.main,offline:e.palette.grey[500],busy:e.palette.error.main},u=n===`online`||n===`offline`||n===`busy`,d=n===`dot`||u,f=u?l[n]:c[r];return{"& .MuiBadge-badge":{minWidth:d?o/2:a,height:d?o/2:o,padding:d?0:`0 4px`,fontSize:s,fontWeight:600,backgroundColor:f,color:e.palette.getContrastText(f),...d&&{borderRadius:`50%`},...n===`online`&&{"&::after":{position:`absolute`,top:0,left:0,width:`100%`,height:`100%`,borderRadius:`50%`,animation:`ripple 1.2s infinite ease-in-out`,border:`1px solid ${e.palette.success.main}`,content:`""`},"@keyframes ripple":{"0%":{transform:`scale(.8)`,opacity:1},"100%":{transform:`scale(2.4)`,opacity:0}}}}}});(0,C.forwardRef)(function({variant:e=`standard`,color:t=`error`,size:n=`medium`,badgeContent:r,children:i,sx:a,...o},s){let c={variant:e,color:t,size:n},l=e===`dot`||e===`online`||e===`offline`||e===`busy`;return(0,B.jsx)(_ie,{ref:s,ownerState:c,badgeContent:l?void 0:r,variant:l?`dot`:`standard`,sx:a,...o,children:i})});var vie=K(BS,{shouldForwardProp:e=>e!==`ownerState`})(({theme:e,ownerState:t})=>{let{variant:n}=t,r=typeof e.shape.borderRadius==`number`?e.shape.borderRadius:4,i={border:`none`,boxShadow:`none`,backgroundColor:W(e.palette.grey[500],.08)};return{position:`relative`,borderRadius:r*2,...n===`soft`&&i,...n===`outlined`&&{boxShadow:`none`}}}),yie=(0,C.forwardRef)(function({variant:e=`elevation`,title:t,subheader:n,headerAction:r,headerSx:i,contentSx:a,actions:o,actionsSx:s,disablePadding:c,children:l,sx:u,...d},f){let p={variant:e},m=t||n||r;return(0,B.jsxs)(vie,{ref:f,ownerState:p,variant:e===`outlined`?`outlined`:`elevation`,sx:u,...d,children:[m&&(0,B.jsx)(nC,{title:t,subheader:n,action:r,sx:i}),l&&(0,B.jsx)(JS,{sx:{...c&&{p:0,"&:last-child":{pb:0}},...a},children:l}),o&&(0,B.jsx)(WS,{sx:s,children:o})]})});function bie({label:e,value:t,change:n,icon:r,color:i=`primary`,loading:a,subtitle:o,variant:s=`outlined`,sx:c,...l}){let u=n&&n>0,d=n&&n<0;return(0,B.jsx)(yie,{variant:s,contentSx:{p:2,"&:last-child":{pb:2}},sx:c,...l,children:(0,B.jsxs)(X,{sx:{display:`flex`,justifyContent:`space-between`,alignItems:`flex-start`},children:[(0,B.jsx)(X,{children:a?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(tE,{width:80,height:16}),(0,B.jsx)(tE,{width:50,height:32,sx:{mt:.5}})]}):(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(V_,{variant:`caption`,sx:{fontWeight:600,color:`text.secondary`,textTransform:`uppercase`,letterSpacing:.5},children:e}),(0,B.jsx)(V_,{variant:`h4`,sx:{fontWeight:700,color:`${i}.main`,mt:.5},children:t}),n!==void 0&&(0,B.jsxs)(V_,{variant:`caption`,color:u?`success.main`:d?`error.main`:`text.secondary`,sx:{fontWeight:500,mt:.5,display:`block`},children:[u?`+`:``,n,`%`]}),o&&(0,B.jsx)(V_,{variant:`caption`,sx:{color:`text.secondary`},children:o})]})}),r&&!a&&(0,B.jsx)(X,{sx:{color:`${i}.main`},children:r})]})})}function xie({icon:e,color:t=`primary.main`,size:n=64}){return(0,B.jsx)(X,{sx:{width:n,height:n,borderRadius:`50%`,display:`flex`,alignItems:`center`,justifyContent:`center`,bgcolor:e=>{let n=t.split(`.`),r=e.palette;for(let e of n)r=r?.[e];return W(typeof r==`string`?r:e.palette.primary.main,.08)}},children:e})}function Sie({illustration:e,icon:t,iconColor:n=`primary.main`,iconSize:r=64,title:i=`No data`,description:a,action:o,actions:s,maxWidth:c=400,filled:l=!1,sx:u,illustrationSx:d,slotProps:f,compact:p=!1}){let m=t?(0,B.jsx)(xie,{icon:t,color:n,size:r}):e?(0,B.jsx)(X,{sx:d,children:e}):null,h=[...s??[],...o?[o]:[]];return(0,B.jsx)(cE,{sx:{alignItems:`center`,justifyContent:`center`,textAlign:`center`,py:p?4:8,px:2,...!p&&{flex:1,alignSelf:`stretch`,minHeight:`calc(100vh - 240px)`},...l&&{height:`100%`},...u},children:(0,B.jsxs)(X,{sx:{maxWidth:c,display:`flex`,flexDirection:`column`,alignItems:`center`,gap:p?1.5:2.5},children:[m,(0,B.jsxs)(cE,{spacing:.5,sx:{alignItems:`center`},children:[i&&(0,B.jsx)(V_,{variant:p?`subtitle1`:`h6`,sx:{color:`text.secondary`,fontWeight:600,...f?.title},children:i}),a&&(0,B.jsx)(V_,{variant:`body2`,sx:{color:`text.disabled`,lineHeight:1.6,...f?.description},children:a})]}),h.length>0&&(0,B.jsx)(cE,{direction:`row`,spacing:1,sx:{mt:p?.5:1,flexWrap:`wrap`,justifyContent:`center`,...f?.actions},children:h.map((e,t)=>(0,B.jsx)(X,{children:e},t))})]})})}var Cie=3,wL=(0,C.forwardRef)(({children:e,gap:t=Cie,fill:n,sx:r,...i},a)=>(0,B.jsx)(cE,{ref:a,spacing:t,sx:{...n&&{flex:1},...r},...i,children:e}));wL.displayName=`PageContent`;var TL=K(X,{shouldForwardProp:e=>e!==`ownerState`})(({theme:e,ownerState:t})=>{let{ratio:n,hasError:r}=t;return{position:`relative`,display:`block`,overflow:`hidden`,borderRadius:`inherit`,...(()=>{if(!n)return{};if(typeof n==`string`)return{width:`100%`,aspectRatio:n};let t={width:`100%`};for(let[r,i]of Object.entries(n))r===`xs`?t.aspectRatio=i:t[e.breakpoints.up(r)]={aspectRatio:i};return t})(),...r&&{backgroundColor:W(e.palette.grey[500],.08)}}}),wie=K(`img`)(()=>({width:`100%`,height:`100%`,objectFit:`cover`,display:`block`})),Tie=K(X)(({theme:e})=>({position:`absolute`,top:0,left:0,width:`100%`,height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`,backgroundColor:W(e.palette.grey[500],.08),"&::after":{content:`""`,width:32,height:32,borderRadius:`50%`,border:`3px solid`,borderColor:W(e.palette.grey[500],.16),borderTopColor:e.palette.primary.main,animation:`spin 1s linear infinite`,"@keyframes spin":{from:{transform:`rotate(0deg)`},to:{transform:`rotate(360deg)`}}}})),Eie=K(X)(()=>({position:`absolute`,top:0,left:0,width:`100%`,height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`})),Die=K(X)(({theme:e})=>({width:`100%`,height:`100%`,minHeight:100,display:`flex`,alignItems:`center`,justifyContent:`center`,color:e.palette.text.disabled}));(0,C.forwardRef)(function({src:e,alt:t,ratio:n,fallback:r,fallbackSrc:i,disableLazy:a=!1,objectFit:o=`cover`,placeholder:s=!0,overlay:c,sx:l,imgSx:u,onLoad:d,onError:f,...p},m){let[h,g]=(0,C.useState)(!1),[_,v]=(0,C.useState)(!1),[y,b]=(0,C.useState)(e),x=(0,C.useCallback)(()=>{g(!0),d?.()},[d]),S=(0,C.useCallback)(()=>{i&&y!==i?b(i):v(!0),f?.()},[i,y,f]),w={ratio:n,hasError:_};return _&&r?(0,B.jsx)(TL,{ref:m,ownerState:w,sx:l,children:(0,B.jsx)(Die,{children:r})}):(0,B.jsxs)(TL,{ref:m,ownerState:w,sx:l,children:[s&&!h&&!_&&(0,B.jsx)(Tie,{}),(0,B.jsx)(wie,{src:y,alt:t,loading:a?`eager`:`lazy`,onLoad:x,onError:S,sx:[{objectFit:o,opacity:+!!h,transition:`opacity 300ms ease-in-out`},...Array.isArray(u)?u:[u]],...p}),c&&(0,B.jsx)(Eie,{children:c})]})});var Oie=K(`span`,{shouldForwardProp:e=>e!==`ownerState`})(({theme:e,ownerState:t})=>{let n=e.palette.mode===`light`,{color:r,variant:i,disabled:a}=t,o=r===`default`?null:e.palette[r],s=o??{main:e.palette.grey[500],light:e.palette.grey[300],dark:e.palette.grey[700],contrastText:e.palette.common.white},c={height:24,minWidth:24,lineHeight:0,cursor:`default`,borderRadius:(typeof e.shape.borderRadius==`number`?e.shape.borderRadius:4)*.75,alignItems:`center`,whiteSpace:`nowrap`,display:`inline-flex`,justifyContent:`center`,textTransform:`capitalize`,padding:e.spacing(0,.75),fontSize:e.typography.pxToRem(12),fontWeight:e.typography.fontWeightBold,transition:e.transitions.create([`all`],{duration:e.transitions.duration.shorter}),...a&&{opacity:.48,pointerEvents:`none`}},l={filled:{color:r===`default`?n?e.palette.common.white:e.palette.grey[800]:s.contrastText,backgroundColor:r===`default`?e.palette.text.primary:s.main},outlined:{color:r===`default`?e.palette.text.primary:s.main,backgroundColor:`transparent`,border:`2px solid ${r===`default`?W(e.palette.grey[500],.32):W(s.main,.48)}`},soft:{color:r===`default`?e.palette.text.secondary:n?s.dark:s.light,backgroundColor:W(r===`default`?e.palette.grey[500]:s.main,.16)},inverted:{color:r===`default`?e.palette.text.primary:s.dark,backgroundColor:e.palette.common.white,border:`1px solid ${W(e.palette.grey[500],.16)}`,...o&&{boxShadow:`inset 0 0 0 1px ${W(o.main,.24)}`}}};return{...c,...l[i]}}),EL=(0,C.forwardRef)(function({children:e,color:t=`default`,variant:n=`soft`,startIcon:r,endIcon:i,sx:a,disabled:o,...s},c){let l={color:t,variant:n,disabled:o},u={width:16,height:16,flexShrink:0,"& svg, & img":{width:`100%`,height:`100%`}};return(0,B.jsxs)(Oie,{ref:c,ownerState:l,sx:a,...s,children:[r&&(0,B.jsx)(X,{sx:{mr:.5,...u},children:r}),e,i&&(0,B.jsx)(X,{sx:{ml:.5,...u},children:i})]})}),kie=K(`div`)(({theme:e})=>({flexGrow:1,width:`100%`,display:`flex`,minHeight:`100%`,alignItems:`center`,justifyContent:`center`,paddingLeft:e.spacing(5),paddingRight:e.spacing(5)}));function DL({portal:e,slots:t,slotProps:n,sx:r,...i}){return(0,B.jsx)(e?gy:C.Fragment,{children:(0,B.jsx)(kie,{sx:r,...i,children:t?.progress??(0,B.jsx)(Fw,{color:`inherit`,sx:[{width:1,maxWidth:360},...Array.isArray(n?.progress?.sx)?n.progress.sx:[n?.progress?.sx]],...n?.progress})})})}K(X,{shouldForwardProp:e=>e!==`fullScreen`})(({theme:e,fullScreen:t})=>({display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,gap:e.spacing(2),padding:e.spacing(3),...t?{position:`fixed`,top:0,left:0,right:0,bottom:0,zIndex:e.zIndex.modal+1,backgroundColor:e.palette.background.default}:{flexGrow:1,width:`100%`,minHeight:200}}));var OL=.75;function Aie(e=`top-right`){let t={"top-left":{paperStyles:{ml:-OL},anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`}},"top-center":{paperStyles:void 0,anchorOrigin:{vertical:`bottom`,horizontal:`center`},transformOrigin:{vertical:`top`,horizontal:`center`}},"top-right":{paperStyles:{ml:OL},anchorOrigin:{vertical:`bottom`,horizontal:`right`},transformOrigin:{vertical:`top`,horizontal:`right`}},"bottom-left":{paperStyles:{ml:-OL},anchorOrigin:{vertical:`top`,horizontal:`left`},transformOrigin:{vertical:`bottom`,horizontal:`left`}},"bottom-center":{paperStyles:void 0,anchorOrigin:{vertical:`top`,horizontal:`center`},transformOrigin:{vertical:`bottom`,horizontal:`center`}},"bottom-right":{paperStyles:{ml:OL},anchorOrigin:{vertical:`top`,horizontal:`right`},transformOrigin:{vertical:`bottom`,horizontal:`right`}},"left-top":{paperStyles:{mt:-OL},anchorOrigin:{vertical:`top`,horizontal:`right`},transformOrigin:{vertical:`top`,horizontal:`left`}},"left-center":{paperStyles:void 0,anchorOrigin:{vertical:`center`,horizontal:`right`},transformOrigin:{vertical:`center`,horizontal:`left`}},"left-bottom":{paperStyles:{mt:OL},anchorOrigin:{vertical:`bottom`,horizontal:`right`},transformOrigin:{vertical:`bottom`,horizontal:`left`}},"right-top":{paperStyles:{mt:-OL},anchorOrigin:{vertical:`top`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`right`}},"right-center":{paperStyles:void 0,anchorOrigin:{vertical:`center`,horizontal:`left`},transformOrigin:{vertical:`center`,horizontal:`right`}},"right-bottom":{paperStyles:{mt:OL},anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`bottom`,horizontal:`right`}}};return t[e]||t[`top-right`]}var jie=K(`span`,{shouldForwardProp:e=>e!==`ownerState`})(({theme:e,ownerState:t})=>{let{size:n,offset:r,placement:i}=t,a={top:{top:0,rotate:`135deg`,translate:`0 -50%`},bottom:{bottom:0,rotate:`-45deg`,translate:`0 50%`},left:{left:0,rotate:`45deg`,translate:`-50% 0`},right:{right:0,rotate:`-135deg`,translate:`50% 0`}},o=()=>i.startsWith(`top-`)?a.top:i.startsWith(`bottom-`)?a.bottom:i.startsWith(`left-`)?a.left:i.startsWith(`right-`)?a.right:{},s=()=>i.endsWith(`-left`)?{left:r}:i.endsWith(`-right`)?{right:r}:i.endsWith(`-top`)?{top:r}:i.endsWith(`-bottom`)?{bottom:r}:i.endsWith(`-center`)?i.startsWith(`top-`)||i.startsWith(`bottom-`)?{left:0,right:0,margin:`auto`}:{top:0,bottom:0,margin:`auto`}:{};return{width:n,height:n,position:`absolute`,borderBottomLeftRadius:n/4,clipPath:`polygon(0% 0%, 100% 100%, 0% 100%)`,backgroundColor:e.palette.background.paper,border:`solid 1px ${W(e.palette.grey[500],.12)}`,...o(),...s()}});function Mie({open:e,onClose:t,children:n,anchorEl:r,arrow:i,minWidth:a=140,slotProps:o,...s}){let c=i?.size??14,l=i?.offset??17,u=i?.placement??`top-right`,d=i?.hide??!1,{paperStyles:f,anchorOrigin:p,transformOrigin:m}=Aie(u);return(0,B.jsxs)(PT,{open:!!e,anchorEl:r,onClose:t,anchorOrigin:p,transformOrigin:m,slotProps:{...o,paper:{...typeof o?.paper==`object`?o.paper:{},sx:[f,{overflow:`inherit`,[`& .${Gw.root}`]:{minWidth:a},[`& .${VT.root}`]:{gap:2}},...typeof o?.paper==`object`&&o.paper&&`sx`in o.paper?Array.isArray(o.paper.sx)?o.paper.sx:[o.paper.sx]:[]]}},...s,children:[!d&&(0,B.jsx)(jie,{ownerState:{size:c,offset:l,placement:u},sx:i?.sx}),n]})}function Nie(){let[e,t]=(0,C.useState)(null),n=(0,C.useCallback)(e=>{t(e.currentTarget)},[]),r=(0,C.useCallback)(()=>{t(null)},[]);return{open:!!e,anchorEl:e,onOpen:n,onClose:r,setAnchorEl:t}}var Pie=K(X,{shouldForwardProp:e=>e!==`ownerState`})(({theme:e,ownerState:t})=>{let{fillContent:n,hideScrollbar:r,axis:i}=t,a=W(e.palette.text.disabled,.4),o=W(e.palette.text.disabled,.6),s=W(e.palette.grey[500],.08);return{minWidth:0,minHeight:0,...i===`x`?{overflowX:`auto`,overflowY:`hidden`}:i===`y`?{overflowX:`hidden`,overflowY:`auto`}:{overflow:`auto`},...n&&{flexGrow:1,display:`flex`,flexDirection:`column`},...!r&&{scrollbarWidth:`thin`,scrollbarColor:`${a} ${s}`,"&::-webkit-scrollbar":{width:8,height:8},"&::-webkit-scrollbar-track":{backgroundColor:s,borderRadius:4},"&::-webkit-scrollbar-thumb":{backgroundColor:a,borderRadius:4,"&:hover":{backgroundColor:o}},"&::-webkit-scrollbar-corner":{backgroundColor:`transparent`}},...r&&{scrollbarWidth:`none`,msOverflowStyle:`none`,"&::-webkit-scrollbar":{display:`none`}}}});(0,C.forwardRef)(function({children:e,sx:t,fillContent:n=!1,hideScrollbar:r=!1,axis:i=`y`,maxHeight:a,minHeight:o,className:s,...c},l){return(0,B.jsx)(Pie,{ref:l,ownerState:{fillContent:n,hideScrollbar:r,axis:i},className:s,sx:[{...a!==void 0&&{maxHeight:a},...o!==void 0&&{minHeight:o}},...Array.isArray(t)?t:[t]],...c,children:e})});var Fie=Dp((0,B.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`}),`Close`),kL=(0,C.createContext)(null);function Iie(){let e=(0,C.useContext)(kL);if(!e)throw Error(`useSnackbar must be used within a SnackbarProvider`);return e}var Lie={open:!1,message:``,severity:`info`,duration:5e3,position:{vertical:`bottom`,horizontal:`left`},key:0};function Rie({children:e,defaultDuration:t=5e3,defaultPosition:n={vertical:`bottom`,horizontal:`left`},sx:r}){let[i,a]=(0,C.useState)({...Lie,duration:t,position:n}),o=(0,C.useCallback)(e=>{let r=typeof e==`string`?{message:e}:e;a(e=>({open:!0,message:r.message,severity:r.severity??`info`,duration:r.duration??t,position:r.position??n,action:r.action,key:r.key??Date.now()}))},[t,n]),s=(0,C.useCallback)((e,t)=>{o({message:e,severity:`success`,...t})},[o]),c=(0,C.useCallback)((e,t)=>{o({message:e,severity:`error`,...t})},[o]),l=(0,C.useCallback)((e,t)=>{o({message:e,severity:`warning`,...t})},[o]),u=(0,C.useCallback)((e,t)=>{o({message:e,severity:`info`,...t})},[o]),d=(0,C.useCallback)(()=>{a(e=>({...e,open:!1}))},[]),f=(0,C.useCallback)((e,t)=>{t!==`clickaway`&&d()},[d]),p=(0,C.useMemo)(()=>({show:o,success:s,error:c,warning:l,info:u,close:d}),[o,s,c,l,u,d]);return(0,B.jsxs)(kL.Provider,{value:p,children:[e,(0,B.jsx)(Tte,{open:i.open,autoHideDuration:i.duration,onClose:f,anchorOrigin:i.position,sx:r,children:(0,B.jsx)(qx,{severity:i.severity,variant:`filled`,onClose:f,action:i.action||(0,B.jsx)(oh,{size:`small`,"aria-label":`close`,color:`inherit`,onClick:d,children:(0,B.jsx)(Fie,{fontSize:`small`})}),sx:{width:`100%`,alignItems:`center`},children:i.message})},i.key)]})}var zie=K(`span`)(()=>({flexShrink:0,display:`inline-flex`,backgroundColor:`currentColor`}));(0,C.forwardRef)(function({src:e,color:t,size:n=24,width:r,height:i,className:a,sx:o},s){return(0,B.jsx)(zie,{ref:s,className:a,sx:[{width:r??n,height:i??n,mask:`url(${e}) no-repeat center / contain`,WebkitMask:`url(${e}) no-repeat center / contain`,...t&&{color:t}},...Array.isArray(o)?o:[o]]})});var AL=K(Mh)(({theme:e})=>({borderRadius:e.shape.borderRadius,border:`1px solid ${e.palette.divider}`,overflow:`auto`})),Bie=K(gE)(({theme:e})=>({backgroundColor:W(e.palette.grey[500],.08),"& .MuiTableCell-head":{fontWeight:600,backgroundColor:`transparent`}})),Vie=K(Vh)(({theme:e})=>({"&:hover":{backgroundColor:W(e.palette.primary.main,.04)},"&.Mui-selected":{backgroundColor:W(e.palette.primary.main,.08),"&:hover":{backgroundColor:W(e.palette.primary.main,.12)}}}));function Hie({columns:e,data:t,rowKey:n=`id`,selectable:r=!1,selected:i=[],onSelectChange:a,sortable:o=!1,sortBy:s,sortOrder:c=`asc`,onSortChange:l,paginated:u=!1,page:d=0,rowsPerPage:f=10,totalRows:p,onPageChange:m,onRowsPerPageChange:h,rowsPerPageOptions:g=[5,10,25,50],emptyContent:_,loading:v=!1,dense:y=!1,stickyHeader:b=!1,maxHeight:x,onRowClick:S,containerSx:w,sx:T,...E},D){let O=(0,C.useCallback)((e,t)=>{if(typeof n==`function`)return n(e);let r=e[n];return r===void 0?t:String(r)},[n]),k=(0,C.useMemo)(()=>t.length>0&&i.length===t.length,[t.length,i.length]),A=(0,C.useMemo)(()=>i.length>0&&i.length<t.length,[t.length,i.length]),j=(0,C.useCallback)(e=>{if(e.target.checked){let e=t.map((e,t)=>O(e,t));a?.(e)}else a?.([])},[t,O,a]),M=(0,C.useCallback)(e=>{let t=i.includes(e)?i.filter(t=>t!==e):[...i,e];a?.(t)},[i,a]),N=(0,C.useCallback)(e=>{l?.(e,s===e&&c===`asc`?`desc`:`asc`)},[s,c,l]),P=(0,C.useCallback)((e,t)=>{m?.(t)},[m]),F=(0,C.useCallback)(e=>{h?.(parseInt(e.target.value,10)),m?.(0)},[h,m]),I=p??t.length,L=(0,C.useMemo)(()=>u&&!p?t.slice(d*f,d*f+f):t,[t,u,d,f,p]);return!v&&t.length===0?(0,B.jsx)(AL,{sx:w,children:(0,B.jsx)(X,{sx:{p:4,textAlign:`center`},children:_||(0,B.jsx)(V_,{sx:{color:`text.secondary`},children:`No data available`})})}):(0,B.jsxs)(AL,{sx:{maxHeight:x,...w},children:[(0,B.jsxs)(rne,{ref:D,stickyHeader:b,size:y?`small`:`medium`,sx:T,...E,children:[(0,B.jsx)(Bie,{children:(0,B.jsxs)(Vh,{children:[r&&(0,B.jsx)(Wh,{padding:`checkbox`,children:(0,B.jsx)(Ev,{indeterminate:A,checked:k,onChange:j})}),e.map(e=>(0,B.jsx)(Wh,{align:e.align||`left`,style:{width:e.width,minWidth:e.minWidth},sortDirection:s===e.id?c:!1,children:o&&e.sortable!==!1?(0,B.jsx)(Rne,{active:s===e.id,direction:s===e.id?c:`asc`,onClick:()=>N(String(e.id)),children:e.label}):e.label},String(e.id)))]})}),(0,B.jsx)(cne,{children:L.map((t,n)=>{let a=O(t,n),o=i.includes(a);return(0,B.jsxs)(Vie,{hover:!0,selected:o,onClick:()=>S?.(t,n),sx:{cursor:S?`pointer`:`default`},children:[r&&(0,B.jsx)(Wh,{padding:`checkbox`,children:(0,B.jsx)(Ev,{checked:o,onClick:e=>e.stopPropagation(),onChange:()=>M(a)})}),e.map(e=>{let r=t[e.id];return(0,B.jsx)(Wh,{align:e.align||`left`,children:e.render?e.render(t,n):e.format?e.format(r):String(r??``)},String(e.id))})]},a)})})]}),u&&(0,B.jsx)(Mne,{component:`div`,count:I,page:d,rowsPerPage:f,rowsPerPageOptions:g,onPageChange:P,onRowsPerPageChange:F})]})}(0,C.forwardRef)(Hie);function Uie({tabs:e,value:t,defaultValue:n,onChange:r,children:i,keepMounted:a=!1,action:o,...s}){let[c,l]=(0,C.useState)(n??e?.[0]?.value??``),u=t??c,d=(0,C.useCallback)((e,n)=>{t===void 0&&l(n),r?.(n)},[t,r]),f=(0,C.useMemo)(()=>{if(e)return e;let t=[];return C.Children.forEach(i,e=>{if((0,C.isValidElement)(e)&&e.type===jL){let n=e.props;t.push({value:n.value,label:n.label??n.value,icon:n.icon,content:n.children,disabled:n.disabled})}}),t},[e,i]),p=o!=null&&o!==!1;return(0,B.jsxs)(X,{sx:{width:`100%`},children:[(0,B.jsxs)(X,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:2},children:[(0,B.jsx)(tre,{value:u,onChange:d,...s,children:f.map(e=>(0,B.jsx)(Aee,{value:e.value,label:e.label,icon:e.icon,iconPosition:`start`,disabled:e.disabled},e.value))}),p&&(0,B.jsx)(X,{sx:{display:`flex`,alignItems:`center`,gap:1,flexShrink:0},children:o})]}),f.map(e=>{let t=e.value===u;return!t&&!a||e.content===void 0?null:(0,B.jsx)(X,{role:`tabpanel`,hidden:!t,id:`tabpanel-${e.value}`,"aria-labelledby":`tab-${e.value}`,sx:{pt:2},children:e.content},e.value)})]})}function jL({children:e}){return(0,B.jsx)(B.Fragment,{children:e})}var Wie=Dp((0,B.jsx)(`path`,{d:`M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z`}),`ExpandMore`),ML=e(r(((e,t)=>{(function(n,r){typeof define==`function`&&define.amd?define(r):typeof e==`object`?t.exports=r():n.NProgress=r()})(e,function(){var e={};e.version=`0.2.0`;var t=e.settings={minimum:.08,easing:`ease`,positionUsing:``,speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:`[role="bar"]`,spinnerSelector:`[role="spinner"]`,parent:`body`,template:`<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>`};e.configure=function(e){var n,r;for(n in e)r=e[n],r!==void 0&&e.hasOwnProperty(n)&&(t[n]=r);return this},e.status=null,e.set=function(r){var s=e.isStarted();r=n(r,t.minimum,1),e.status=r===1?null:r;var c=e.render(!s),l=c.querySelector(t.barSelector),u=t.speed,d=t.easing;return c.offsetWidth,a(function(n){t.positionUsing===``&&(t.positionUsing=e.getPositioningCSS()),o(l,i(r,u,d)),r===1?(o(c,{transition:`none`,opacity:1}),c.offsetWidth,setTimeout(function(){o(c,{transition:`all `+u+`ms linear`,opacity:0}),setTimeout(function(){e.remove(),n()},u)},u)):setTimeout(n,u)}),this},e.isStarted=function(){return typeof e.status==`number`},e.start=function(){e.status||e.set(0);var n=function(){setTimeout(function(){e.status&&(e.trickle(),n())},t.trickleSpeed)};return t.trickle&&n(),this},e.done=function(t){return!t&&!e.status?this:e.inc(.3+.5*Math.random()).set(1)},e.inc=function(t){var r=e.status;return r?(typeof t!=`number`&&(t=(1-r)*n(Math.random()*r,.1,.95)),r=n(r+t,0,.994),e.set(r)):e.start()},e.trickle=function(){return e.inc(Math.random()*t.trickleRate)},(function(){var t=0,n=0;e.promise=function(r){return!r||r.state()===`resolved`?this:(n===0&&e.start(),t++,n++,r.always(function(){n--,n===0?(t=0,e.done()):e.set((t-n)/t)}),this)}})(),e.render=function(n){if(e.isRendered())return document.getElementById(`nprogress`);c(document.documentElement,`nprogress-busy`);var i=document.createElement(`div`);i.id=`nprogress`,i.innerHTML=t.template;var a=i.querySelector(t.barSelector),s=n?`-100`:r(e.status||0),l=document.querySelector(t.parent),u;return o(a,{transition:`all 0 linear`,transform:`translate3d(`+s+`%,0,0)`}),t.showSpinner||(u=i.querySelector(t.spinnerSelector),u&&d(u)),l!=document.body&&c(l,`nprogress-custom-parent`),l.appendChild(i),i},e.remove=function(){l(document.documentElement,`nprogress-busy`),l(document.querySelector(t.parent),`nprogress-custom-parent`);var e=document.getElementById(`nprogress`);e&&d(e)},e.isRendered=function(){return!!document.getElementById(`nprogress`)},e.getPositioningCSS=function(){var e=document.body.style,t=`WebkitTransform`in e?`Webkit`:`MozTransform`in e?`Moz`:`msTransform`in e?`ms`:`OTransform`in e?`O`:``;return t+`Perspective`in e?`translate3d`:t+`Transform`in e?`translate`:`margin`};function n(e,t,n){return e<t?t:e>n?n:e}function r(e){return(-1+e)*100}function i(e,n,i){var a=t.positionUsing===`translate3d`?{transform:`translate3d(`+r(e)+`%,0,0)`}:t.positionUsing===`translate`?{transform:`translate(`+r(e)+`%,0)`}:{"margin-left":r(e)+`%`};return a.transition=`all `+n+`ms `+i,a}var a=(function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),e.length==1&&t()}})(),o=(function(){var e=[`Webkit`,`O`,`Moz`,`ms`],t={};function n(e){return e.replace(/^-ms-/,`ms-`).replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})}function r(t){var n=document.body.style;if(t in n)return t;for(var r=e.length,i=t.charAt(0).toUpperCase()+t.slice(1),a;r--;)if(a=e[r]+i,a in n)return a;return t}function i(e){return e=n(e),t[e]||(t[e]=r(e))}function a(e,t,n){t=i(t),e.style[t]=n}return function(e,t){var n=arguments,r,i;if(n.length==2)for(r in t)i=t[r],i!==void 0&&t.hasOwnProperty(r)&&a(e,r,i);else a(e,n[1],n[2])}})();function s(e,t){return(typeof e==`string`?e:u(e)).indexOf(` `+t+` `)>=0}function c(e,t){var n=u(e),r=n+t;s(n,t)||(e.className=r.substring(1))}function l(e,t){var n=u(e),r;s(e,t)&&(r=n.replace(` `+t+` `,` `),e.className=r.substring(1,r.length-1))}function u(e){return(` `+(e.className||``)+` `).replace(/\s+/gi,` `)}function d(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return e})}))(),1),NL=`var(--prism-palette-primary-main, var(--palette-primary-main, #1976d2))`,Gie=`
245
- #nprogress {
246
- top: 0;
247
- left: 0;
248
- width: 100%;
249
- height: 2.5px;
250
- z-index: 9999;
251
- position: fixed;
252
- pointer-events: none;
253
- }
254
- #nprogress .bar {
255
- height: 100%;
256
- background-color: ${NL};
257
- box-shadow: 0 0 2.5px ${NL};
258
- }
259
- #nprogress .peg {
260
- right: 0;
261
- opacity: 1;
262
- width: 100px;
263
- height: 100%;
264
- display: block;
265
- position: absolute;
266
- transform: rotate(3deg) translate(0px, -4px);
267
- box-shadow:
268
- 0 0 10px ${NL},
269
- 0 0 5px ${NL};
270
- }
271
- `;function Kie(e){let t=e.getAttribute(`href`)?.trim()??``,n=e.getAttribute(`target`);return t.startsWith(`/`)&&n!==`_blank`}function qie(e,t){try{let n=new URL(e,window.location.origin),r=new URL(t,window.location.origin);return n.pathname===r.pathname&&n.search===r.search}catch{return e===t}}function Jie(e,t,n){let r=(0,C.useRef)(``);(0,C.useEffect)(()=>{r.current=window.location.href},[]),(0,C.useEffect)(()=>{let e=e=>{e&&!qie(e,r.current)&&(r.current=e,ML.default.start())},t=t=>{let n=t.target.closest(`a[href]`);n&&Kie(n)&&e(n.href)},n=()=>{e(window.location.href)},i=t=>{let n=window.history[t];window.history[t]=new Proxy(n,{apply:(t,n,r)=>{let i=r[2];return typeof i==`string`&&e(new URL(i,window.location.origin).href),t.apply(n,r)}})};return i(`pushState`),i(`replaceState`),document.addEventListener(`click`,t),window.addEventListener(`popstate`,n),()=>{document.removeEventListener(`click`,t),window.removeEventListener(`popstate`,n)}},[]),(0,C.useEffect)(()=>{let e=setTimeout(()=>ML.default.done(),n);return()=>clearTimeout(e)},[e,t,n])}function Yie({pathname:e,search:t=``,delay:n=100}){return(0,C.useEffect)(()=>(ML.default.configure({showSpinner:!1}),()=>{ML.default.done()}),[]),Jie(e,t,n),(0,B.jsx)(`style`,{children:Gie})}function Xie({pathname:e}){return(0,C.useEffect)(()=>{window.scrollTo(0,0)},[e]),null}var Zie=Dp((0,B.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`}),`ContentCopy`);function Qie(e){for(let t of[/at\s+(?:async\s+)?([^\s(]+)\s+\((.+?):(\d+):(\d+)\)/,/at\s+(.+?):(\d+):(\d+)/,/at\s+(?:async\s+)?(?:Module\.)?([^\s(]+)\s+\((.+?)\?[^:]*:(\d+):(\d+)\)/]){let n=e.match(t);if(n){let[,e,t,r,i]=n,a=t!==void 0,o=a?e:null,s=a?t:e,c=parseInt(a?r:t,10),l=parseInt(a?i:r,10),u=s.includes(`/src/`)||s.includes(`src/`)&&!s.includes(`node_modules`);return{functionName:o||null,filePath:$ie(s),lineNumber:isNaN(c)?null:c,columnNumber:isNaN(l)?null:l,isAppCode:u}}}return null}function $ie(e){let t=e.replace(/\?.*$/,``),n=t.indexOf(`/src/`);if(n!==-1)return t.slice(n+1);let r=t.split(`/`);return r.length>3?r.slice(-3).join(`/`):t}function PL(e){if(!e)return{primary:null,frames:[],raw:``};let t=e.split(`
272
- `),n=[];for(let e of t){let t=Qie(e.trim());t&&n.push(t)}return{primary:n.find(e=>e.isAppCode)??n[0]??null,frames:n,raw:e}}function eae(e){let{primary:t}=PL(e.stack);if(!t)return`Unknown location`;let n=[];if(t.functionName&&n.push(`in ${t.functionName}`),t.filePath){let e=t.lineNumber?`${t.filePath}:${t.lineNumber}`:t.filePath;n.push(`(${e})`)}return n.join(` `)||`Unknown location`}function tae({error:e,parsedStack:t,resetErrorBoundary:n,sx:r,showDetails:i}){let[a,o]=(0,C.useState)(!1),[s,c]=(0,C.useState)(!1),l=i??(typeof process<`u`&&!1),u=async()=>{try{let n=[`Error: ${e.message}`,`Location: ${eae(e)}`,``,`Stack Trace:`,t.raw].join(`
273
- `);await navigator.clipboard.writeText(n),c(!0),setTimeout(()=>c(!1),2e3)}catch{}};return(0,B.jsxs)(X,{sx:{display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,minHeight:200,p:3,textAlign:`center`,...r},children:[(0,B.jsx)(V_,{variant:`h6`,color:`error`,gutterBottom:!0,children:`Something went wrong`}),(0,B.jsx)(V_,{variant:`body2`,sx:{color:`text.secondary`,mb:1,maxWidth:400},children:e.message||`An unexpected error occurred`}),l&&t.primary&&(0,B.jsxs)(V_,{variant:`caption`,sx:{color:`text.secondary`,mb:2,fontFamily:`monospace`},children:[t.primary.filePath,t.primary.lineNumber&&`:${t.primary.lineNumber}`,t.primary.functionName&&` (${t.primary.functionName})`]}),(0,B.jsxs)(X,{sx:{display:`flex`,gap:1,mb:2},children:[(0,B.jsx)(Sg,{variant:`outlined`,onClick:n,children:`Try Again`}),l&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(oh,{size:`small`,onClick:()=>o(!a),sx:{transform:a?`rotate(180deg)`:`rotate(0deg)`,transition:`transform 0.2s`},children:(0,B.jsx)(Wie,{})}),(0,B.jsx)(oh,{size:`small`,onClick:u,title:`Copy error details`,children:(0,B.jsx)(Zie,{fontSize:`small`})}),s&&(0,B.jsx)(V_,{variant:`caption`,sx:{color:`success.main`,alignSelf:`center`},children:`Copied!`})]})]}),l&&(0,B.jsx)(Oh,{in:a,children:(0,B.jsx)(X,{sx:{mt:1,p:2,bgcolor:`grey.100`,borderRadius:1,maxWidth:600,maxHeight:300,overflow:`auto`,textAlign:`left`},children:(0,B.jsx)(V_,{variant:`caption`,component:`pre`,sx:{fontFamily:`monospace`,m:0},children:t.frames.map((e,t)=>(0,B.jsxs)(X,{component:`span`,sx:{display:`block`,color:e.isAppCode?`error.main`:`text.secondary`,fontWeight:e.isAppCode?600:400},children:[e.functionName||`(anonymous)`,` at `,e.filePath||`unknown`,e.lineNumber&&`:${e.lineNumber}`]},t))})})})]})}var nae=class extends C.Component{constructor(e){super(e),this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){let n=PL(e.stack);this.setState({errorInfo:t}),this.props.onError?.(e,t,n)}componentDidUpdate(e){let{resetKeys:t}=this.props,{hasError:n}=this.state;n&&t&&e.resetKeys&&t.some((t,n)=>t!==e.resetKeys?.[n])&&this.resetErrorBoundary()}resetErrorBoundary=()=>{this.props.onReset?.(),this.setState({hasError:!1,error:null,errorInfo:null})};render(){let{hasError:e,error:t,errorInfo:n}=this.state,{children:r,fallback:i,sx:a,showDetails:o}=this.props;if(e&&t){let e={error:t,errorInfo:n,parsedStack:PL(t.stack),resetErrorBoundary:this.resetErrorBoundary};return typeof i==`function`?i(e):i||(0,B.jsx)(tae,{...e,sx:a,showDetails:o})}return r}};(0,C.createContext)(null);var rae=K(`div`)(({theme:e})=>({display:`flex`,flexDirection:`column`,gap:e.spacing(2)})),iae=K(`h6`)(({theme:e})=>({...e.typography.h4,margin:0,padding:0,display:`inline-flex`})),aae=K(`div`)(({theme:e})=>({display:`flex`,flexWrap:`wrap`,gap:e.spacing(2),alignItems:`flex-start`,justifyContent:`flex-end`})),oae=K(`div`)(({theme:e})=>({display:`flex`,flex:`1 1 auto`,gap:e.spacing(2),flexDirection:`column`})),sae=K(`span`)(({theme:e})=>({width:4,height:4,borderRadius:`50%`,backgroundColor:e.palette.text.disabled})),cae=K(`div`,{shouldForwardProp:e=>e!==`disabled`})(({disabled:e,theme:t})=>({...t.typography.body2,alignItems:`center`,gap:t.spacing(.5),display:`inline-flex`,color:t.palette.text.secondary,...e&&{cursor:`default`,pointerEvents:`none`,color:t.palette.text.primary,fontWeight:600}})),lae=K(`span`)({display:`inherit`,"& > :first-of-type:not(style):not(:first-of-type ~ *)":{width:20,height:20}}),uae=K(`ul`)({display:`flex`,flexDirection:`column`,"& > li":{display:`flex`}});function dae(){return(0,B.jsx)(Ep,{sx:{fontSize:18},children:(0,B.jsx)(`path`,{d:`M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z`})})}function fae({href:e,label:t,sx:n,linkComponent:r}){let i=r?{component:r,to:e}:{href:e};return(0,B.jsxs)(Hw,{color:`inherit`,underline:`none`,sx:[e=>({verticalAlign:`middle`,display:`inline-flex`,alignItems:`center`,"& .PrismBackLinkIcon":{verticalAlign:`inherit`,transform:`translateY(-1px)`,ml:{xs:`-14px`,md:`-18px`},transition:e.transitions.create(`opacity`,{duration:e.transitions.duration.shorter})},"&:hover .PrismBackLinkIcon":{opacity:.48}}),...Array.isArray(n)?n:[n]],...i,children:[(0,B.jsx)(`span`,{className:`PrismBackLinkIcon`,children:(0,B.jsx)(dae,{})}),t]})}function pae({href:e,icon:t,name:n,disabled:r,linkComponent:i}){let a=(0,B.jsxs)(cae,{disabled:r,children:[t&&(0,B.jsx)(lae,{children:t}),n]});return e&&!r?(0,B.jsx)(Hw,{color:`inherit`,sx:{display:`inline-flex`},...i?{component:i,to:e}:{href:e},children:a}):a}function mae({links:e,sx:t,...n}){return(0,B.jsx)(uae,{sx:t,...n,children:e?.map(e=>(0,B.jsx)(`li`,{children:(0,B.jsx)(Hw,{href:e,variant:`body2`,target:`_blank`,rel:`noopener noreferrer`,children:e})},e))})}function hae({sx:e,action:t,backHref:n,heading:r,slots:i={},links:a=[],moreLinks:o=[],slotProps:s={},activeLast:c=!1,linkComponent:l,...u}){let d=a[a.length-1]?.name,f=()=>(0,B.jsx)(iae,{...s?.heading,children:n?(0,B.jsx)(fae,{href:n,label:r,linkComponent:l}):r}),p=()=>i?.breadcrumbs??(0,B.jsx)(IS,{separator:(0,B.jsx)(sae,{}),...s?.breadcrumbs,children:a.map((e,t)=>(0,B.jsx)(pae,{icon:e.icon,href:e.href,name:e.name,disabled:e.name===d&&!c,linkComponent:l},e.name??t))}),m=()=>(0,B.jsx)(mae,{links:o,...s?.moreLinks});return(0,B.jsxs)(rae,{sx:e,...u,children:[(0,B.jsxs)(aae,{...s?.container,children:[(0,B.jsxs)(oae,{...s?.content,children:[(r||n)&&f(),(!!a.length||i?.breadcrumbs)&&p()]}),t]}),!!o?.length&&m()]})}function gae({steps:e,activeStep:t=0,onStepChange:n,orientation:r=`horizontal`,nonLinear:i=!1,alternativeLabel:a=!1,showContent:o=!1,...s}){let c=e=>{i&&n&&n(e)};return(0,B.jsx)($te,{activeStep:t,orientation:r,nonLinear:i,alternativeLabel:a,...s,children:e.map((e,n)=>(0,B.jsxs)(Fte,{completed:e.completed??n<t,children:[(0,B.jsx)(ng,{optional:e.optional?(0,B.jsx)(`span`,{style:{fontSize:`0.75rem`,color:`text.secondary`},children:`Optional`}):e.description?(0,B.jsx)(`span`,{style:{fontSize:`0.75rem`,color:`text.secondary`},children:e.description}):void 0,error:e.error,icon:e.icon,sx:{cursor:i?`pointer`:`default`},onClick:()=>c(n),children:e.label}),r===`vertical`&&o&&e.content&&(0,B.jsx)(Jte,{children:e.content})]},n))})}function _ae({initialStep:e=0,totalSteps:t,onStepChange:n,onComplete:r}){let[i,a]=(0,C.useState)(e),[o,s]=(0,C.useState)(!1),c=(0,C.useCallback)(e=>{e>=0&&e<t&&(a(e),n?.(e))},[t,n]);return{activeStep:i,nextStep:(0,C.useCallback)(()=>{i===t-1?(s(!0),r?.()):c(i+1)},[i,t,c,r]),prevStep:(0,C.useCallback)(()=>{c(i-1)},[i,c]),goToStep:c,reset:(0,C.useCallback)(()=>{a(0),s(!1),n?.(0)},[n]),isFirstStep:i===0,isLastStep:i===t-1,isCompleted:o}}function FL(...e){return V(e)}SL(`chart__root`),SL(`chart__loading`),SL(`chart__legends__root`),SL(`chart__legends__item__wrap`),SL(`chart__legends__item__root`),SL(`chart__legends__item__dot`),SL(`chart__legends__item__icon`),SL(`chart__legends__item__label`),SL(`chart__legends__item__value`),K(`ul`)(({theme:e})=>({display:`flex`,flexWrap:`wrap`,gap:e.spacing(2),margin:0,padding:0,listStyle:`none`})),K(`li`)({display:`inline-flex`,flexDirection:`column`}),K(`div`)(({theme:e})=>({gap:6,alignItems:`center`,display:`inline-flex`,justifyContent:`flex-start`,fontSize:e.typography.pxToRem(13),fontWeight:e.typography.fontWeightMedium})),K(`span`)({display:`inline-flex`,color:`var(--icon-color)`,"& > svg":{width:20,height:20}}),K(`span`)({width:12,height:12,flexShrink:0,display:`flex`,borderRadius:`50%`,position:`relative`,alignItems:`center`,justifyContent:`center`,color:`var(--icon-color)`,backgroundColor:`currentColor`}),K(`span`)({flexShrink:0}),K(`span`)(({theme:e})=>({...e.typography.h6,marginTop:e.spacing(1)})),(0,C.lazy)(()=>i(()=>import(`./react-apexcharts.esm-DEAWOwx5.js`).then(e=>({default:e.default})),__vite__mapDeps([0,1]))),K(`div`)(({theme:e})=>({width:`100%`,flexShrink:0,position:`relative`,borderRadius:Number(e.shape.borderRadius)*1.5})),SL(`lightbox__root`),SL(`lightbox__backdrop`),SL(`lightbox__container`),SL(`lightbox__slide`),SL(`lightbox__slide--active`),SL(`lightbox__image`),SL(`lightbox__video`),SL(`lightbox__caption`),SL(`lightbox__toolbar`),SL(`lightbox__toolbar--top`),SL(`lightbox__toolbar--bottom`),SL(`lightbox__toolbar__button`),SL(`lightbox__nav`),SL(`lightbox__nav--prev`),SL(`lightbox__nav--next`),SL(`lightbox__counter`),SL(`lightbox__thumbnails`),SL(`lightbox__thumbnail`),SL(`lightbox__thumbnail--active`),SL(`lightbox__zoom`),SL(`lightbox__zoomed`),SL(`lightbox__loading`),SL(`lightbox__error`),K(WC)(({theme:e})=>({"& .MuiDialog-paper":{backgroundColor:`transparent`,boxShadow:`none`,margin:0,maxWidth:`100%`,maxHeight:`100%`,borderRadius:0},"& .MuiBackdrop-root":{backgroundColor:W(e.palette.common.black,.92),backdropFilter:`blur(8px)`}})),K(X)({display:`flex`,flexDirection:`column`,width:`100vw`,height:`100vh`,position:`relative`,overflow:`hidden`,userSelect:`none`}),K(X)(({theme:e,placement:t})=>({display:`flex`,alignItems:`center`,gap:e.spacing(.5),padding:e.spacing(1,1.5),position:`absolute`,left:0,right:0,zIndex:10,...t===`top`&&{top:0},...t===`bottom`&&{bottom:0},background:`linear-gradient(${t===`top`?`to bottom`:`to top`}, ${W(e.palette.common.black,.55)} 0%, ${W(e.palette.common.black,.2)} 60%, transparent 100%)`,transition:`opacity 0.3s ease`})),K(oh)(({theme:e})=>({color:W(e.palette.common.white,.85),borderRadius:Number(e.shape.borderRadius)*1.5,padding:6,transition:e.transitions.create([`background-color`,`color`,`transform`],{duration:200}),"&:hover":{backgroundColor:W(e.palette.common.white,.12),color:e.palette.common.white,transform:`scale(1.05)`},"&:active":{transform:`scale(0.95)`},"&.Mui-disabled":{color:W(e.palette.common.white,.2)}})),K(V_)(({theme:e})=>({color:W(e.palette.common.white,.9),fontSize:`0.75rem`,fontWeight:600,fontVariantNumeric:`tabular-nums`,padding:e.spacing(.375,1),borderRadius:Number(e.shape.borderRadius)*2,backgroundColor:W(e.palette.common.white,.1),backdropFilter:`blur(12px)`,border:`1px solid ${W(e.palette.common.white,.08)}`,display:`flex`,alignItems:`center`,letterSpacing:`0.02em`})),K(X)({flex:1,display:`flex`,alignItems:`center`,justifyContent:`center`,position:`relative`,overflow:`hidden`}),K(X)({position:`absolute`,inset:0,display:`flex`,alignItems:`center`,justifyContent:`center`,willChange:`opacity, transform`}),K(X)({position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,zIndex:5}),K(`img`)({maxWidth:`100%`,maxHeight:`100%`,objectFit:`contain`,willChange:`transform, opacity`,borderRadius:2}),K(X)({position:`relative`,display:`flex`,alignItems:`center`,justifyContent:`center`,maxWidth:`100%`,maxHeight:`100%`}),K(`video`)(({theme:e})=>({maxWidth:`100%`,maxHeight:`100%`,objectFit:`contain`,willChange:`transform`,borderRadius:4,"&::-webkit-media-controls-panel":{backgroundColor:W(e.palette.common.black,.6),backdropFilter:`blur(8px)`},"&::-webkit-media-controls-current-time-display, &::-webkit-media-controls-time-remaining-display":{color:e.palette.common.white,fontSize:12}})),K(X)(({theme:e})=>({position:`absolute`,bottom:e.spacing(2.5),left:`50%`,transform:`translateX(-50%)`,textAlign:`center`,color:e.palette.common.white,padding:e.spacing(1,2.5),borderRadius:Number(e.shape.borderRadius)*2,backgroundColor:W(e.palette.common.black,.45),backdropFilter:`blur(16px)`,border:`1px solid ${W(e.palette.common.white,.08)}`,maxWidth:`70%`,zIndex:5,animation:`lightboxCaptionIn 0.3s ease-out`,"@keyframes lightboxCaptionIn":{from:{opacity:0,transform:`translateX(-50%) translateY(8px)`},to:{opacity:1,transform:`translateX(-50%) translateY(0)`}}})),K(oh)(({theme:e,side:t})=>({position:`absolute`,top:`50%`,transform:`translateY(-50%)`,color:W(e.palette.common.white,.85),zIndex:10,width:44,height:44,borderRadius:`50%`,backgroundColor:W(e.palette.common.white,.08),backdropFilter:`blur(12px)`,border:`1px solid ${W(e.palette.common.white,.06)}`,...t===`left`&&{left:e.spacing(2)},...t===`right`&&{right:e.spacing(2)},transition:e.transitions.create([`background-color`,`color`,`transform`,`box-shadow`],{duration:200}),"&:hover":{backgroundColor:W(e.palette.common.white,.16),color:e.palette.common.white,transform:`translateY(-50%) scale(1.08)`,boxShadow:`0 0 20px ${W(e.palette.primary.main,.15)}`},"&:active":{transform:`translateY(-50%) scale(0.95)`}})),K(X)(({theme:e})=>({display:`flex`,gap:e.spacing(.75),padding:e.spacing(1,2),justifyContent:`center`,overflowX:`auto`,backgroundColor:W(e.palette.common.black,.5),backdropFilter:`blur(12px)`,borderTop:`1px solid ${W(e.palette.common.white,.06)}`,scrollbarWidth:`none`,"&::-webkit-scrollbar":{display:`none`}})),K(X)(({theme:e,active:t})=>({flexShrink:0,width:56,height:56,borderRadius:Number(e.shape.borderRadius)*1.5,overflow:`hidden`,cursor:`pointer`,position:`relative`,border:`2px solid ${t?e.palette.primary.main:W(e.palette.common.white,.08)}`,opacity:t?1:.55,transform:t?`scale(1)`:`scale(0.92)`,transition:e.transitions.create([`border-color`,`opacity`,`transform`,`box-shadow`],{duration:200,easing:`cubic-bezier(0.4, 0, 0.2, 1)`}),...t&&{boxShadow:`0 0 12px ${W(e.palette.primary.main,.3)}`},"& img":{width:`100%`,height:`100%`,objectFit:`cover`},"&:hover":{opacity:1,transform:`scale(1)`,borderColor:t?e.palette.primary.main:W(e.palette.common.white,.25)}})),SL(`carousel__root`),SL(`carousel__container`),SL(`carousel__track`),SL(`carousel__slide`),SL(`carousel__slide--active`),SL(`carousel__slide--prev`),SL(`carousel__slide--next`),SL(`carousel__arrow`),SL(`carousel__arrow--prev`),SL(`carousel__arrow--next`),SL(`carousel__arrow--inside`),SL(`carousel__arrow--outside`),SL(`carousel__arrow--disabled`),SL(`carousel__dots`),SL(`carousel__dots--top`),SL(`carousel__dots--bottom`),SL(`carousel__dots--left`),SL(`carousel__dots--right`),SL(`carousel__dot`),SL(`carousel__dot--active`),SL(`carousel__horizontal`),SL(`carousel__vertical`),SL(`carousel__dragging`),SL(`carousel__fade`),K(X)({position:`relative`,width:`100%`,overflow:`hidden`,outline:`none`}),K(X)({position:`relative`,width:`100%`,overflow:`hidden`}),K(X)({display:`flex`,width:`100%`,willChange:`transform`,userSelect:`none`}),K(X)({flexShrink:0,"& > *":{width:`100%`,height:`100%`}}),K(oh)(({theme:e,isHorizontal:t,direction:n})=>({position:`absolute`,zIndex:10,backgroundColor:W(e.palette.background.paper,.9),boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.background.paper},"&.Mui-disabled":{backgroundColor:W(e.palette.background.paper,.5)},...t?{top:`50%`,transform:`translateY(-50%)`,...n===`prev`?{left:8}:{right:8}}:{left:`50%`,transform:`translateX(-50%)`,...n===`prev`?{top:8}:{bottom:8}}})),K(X)(({theme:e,dotsPosition:t})=>({display:`flex`,gap:e.spacing(1),position:`absolute`,zIndex:10,...t===`bottom`&&{bottom:e.spacing(2),left:`50%`,transform:`translateX(-50%)`,flexDirection:`row`},...t===`top`&&{top:e.spacing(2),left:`50%`,transform:`translateX(-50%)`,flexDirection:`row`},...t===`left`&&{left:e.spacing(2),top:`50%`,transform:`translateY(-50%)`,flexDirection:`column`},...t===`right`&&{right:e.spacing(2),top:`50%`,transform:`translateY(-50%)`,flexDirection:`column`}})),K(`button`)(({theme:e,active:t})=>({width:8,height:8,padding:0,border:`none`,borderRadius:`50%`,cursor:`pointer`,backgroundColor:t?e.palette.primary.main:W(e.palette.common.black,.3),transition:e.transitions.create([`background-color`,`transform`],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:t?e.palette.primary.main:W(e.palette.common.black,.5),transform:`scale(1.2)`}}));var IL=CL(`nav-section`,[`root`,`vertical`,`horizontal`,`mini`,`ul`,`li`,`subheader`,`item`,`icon`,`texts`,`title`,`caption`,`info`,`arrow`,`active`,`disabled`,`open`]);(0,C.forwardRef)(function({className:e,sx:t,...n},r){return(0,B.jsx)(X,{component:`nav`,ref:r,className:FL(IL.root,e),sx:[{flexShrink:0,display:`flex`,flexDirection:`column`},...Array.isArray(t)?t:[t]],...n})}),(0,C.forwardRef)(function({className:e,sx:t,...n},r){return(0,B.jsx)(X,{component:`ul`,ref:r,className:FL(IL.ul,e),sx:[{display:`flex`,flexDirection:`column`,listStyle:`none`,padding:0,margin:0},...Array.isArray(t)?t:[t]],...n})}),(0,C.forwardRef)(function({className:e,...t},n){return(0,B.jsx)(X,{component:`li`,ref:n,className:FL(IL.li,e),sx:{display:`flex`,flexDirection:`column`},...t})});var vae=K(Vm)(({theme:e})=>({width:`100%`,cursor:`pointer`,padding:`var(--nav-subheader-padding, 8px 8px 8px 12px)`,display:`flex`,alignItems:`center`,justifyContent:`flex-start`,fontSize:`var(--nav-subheader-font-size, 0.6875rem)`,fontWeight:`var(--nav-subheader-font-weight, 700)`,color:`var(--nav-subheader-color, inherit)`,textTransform:`uppercase`,letterSpacing:`0.08em`,borderRadius:e.shape.borderRadius,transition:e.transitions.create([`background-color`,`color`],{duration:e.transitions.duration.shorter}),"&:hover":{backgroundColor:W(e.palette.grey[500],.08)}})),yae=K(`span`)(({open:e})=>({marginLeft:`auto`,width:16,height:16,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`transform 0.2s`,transform:e?`rotate(0deg)`:`rotate(-90deg)`,"&::before":{content:`""`,width:6,height:6,borderStyle:`solid`,borderWidth:`0 0 1.5px 1.5px`,borderColor:`currentColor`,transform:`rotate(-45deg)`}}));(0,C.forwardRef)(function({className:e,open:t,onClick:n,children:r,...i},a){return(0,B.jsxs)(vae,{ref:a,className:FL(IL.subheader,e),onClick:n,...i,children:[r,n&&(0,B.jsx)(yae,{open:t})]})});var bae=K(Vm,{shouldForwardProp:e=>![`active`,`open`,`depth`,`hasChild`].includes(e)})(({theme:e,active:t,open:n,depth:r=1,hasChild:i})=>({width:`100%`,minHeight:`var(--nav-item-min-height, 44px)`,padding:r===1?`var(--nav-item-padding)`:`var(--nav-sub-item-padding)`,marginLeft:r>1?`calc(var(--nav-sub-item-margin-left, 40px) * ${r-1})`:0,borderRadius:`var(--nav-item-radius, ${e.shape.borderRadius}px)`,color:`var(--nav-item-color)`,backgroundColor:`var(--nav-item-bg, transparent)`,transition:e.transitions.create([`background-color`,`color`],{duration:e.transitions.duration.shorter}),"&:hover":{backgroundColor:`var(--nav-item-hover-bg)`,color:`var(--nav-item-hover-color)`},...t&&{backgroundColor:`var(--nav-item-active-bg)`,color:`var(--nav-item-active-color)`,"& .nav-icon":{color:`var(--nav-icon-active-color)`}},...n&&{backgroundColor:`var(--nav-item-hover-bg)`,color:`var(--nav-item-hover-color)`},"&.Mui-disabled":{color:`var(--nav-item-disabled-color)`,pointerEvents:`none`}})),LL=(0,C.forwardRef)(function({className:e,active:t,disabled:n,open:r,depth:i,hasChild:a,...o},s){return(0,B.jsx)(bae,{ref:s,className:FL(IL.item,t&&IL.active,n&&IL.disabled,r&&IL.open,e),active:t,open:r,depth:i,hasChild:a,disabled:n,...o})}),xae=K(`span`)({width:`var(--nav-icon-size, 24px)`,height:`var(--nav-icon-size, 24px)`,flexShrink:0,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,margin:`var(--nav-icon-margin, 0 16px 0 0)`,color:`var(--nav-icon-color)`,"& svg":{width:`100%`,height:`100%`}});function Sae({icon:e,className:t}){return e?(0,B.jsx)(xae,{className:FL(`nav-icon`,IL.icon,t),children:e}):null}var Cae=K(`span`)({flex:`1 1 auto`,display:`flex`,flexDirection:`column`,alignItems:`flex-start`,minWidth:0}),wae=K(`span`)({fontSize:`var(--nav-item-font-size, 0.875rem)`,fontWeight:500,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`,lineHeight:1.5}),Tae=K(`span`)(({theme:e})=>({fontSize:`var(--nav-item-caption-size, 0.75rem)`,color:e.palette.text.disabled,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`,lineHeight:1.5}));function Eae({title:e,caption:t,className:n}){return(0,B.jsxs)(Cae,{className:FL(IL.texts,n),children:[(0,B.jsx)(wae,{className:IL.title,children:e}),t&&(0,B.jsx)(Tae,{className:IL.caption,children:t})]})}var Dae=K(`span`)(({open:e,direction:t=`right`})=>({width:16,height:16,flexShrink:0,marginLeft:6,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,transition:`transform 0.2s`,transform:e?t===`down`?`rotate(180deg)`:`rotate(90deg)`:`rotate(0deg)`,"&::before":{content:`""`,width:5,height:5,borderStyle:`solid`,borderWidth:`0 1.5px 1.5px 0`,borderColor:`currentColor`,transform:`rotate(45deg)`}}));function Oae({open:e,direction:t=`right`,className:n}){return(0,B.jsx)(Dae,{className:FL(IL.arrow,n),open:e,direction:t})}var kae=K(`span`)({marginLeft:6,display:`inline-flex`,alignItems:`center`});function Aae({info:e,className:t}){return e?(0,B.jsx)(kae,{className:FL(IL.info,t),children:e}):null}function jae(e){return/^https?:\/\//.test(e)}function Mae(e,t){if(e)return typeof e==`string`&&t?.navIcon?t.navIcon[e]:e}function Nae(e,t){if(e)return Array.isArray(e)&&t?.navInfo?(0,B.jsx)(B.Fragment,{children:e.map(e=>t.navInfo?.(e)).map((e,t)=>(0,B.jsx)(X,{component:`span`,children:e&&Object.values(e)[0]},t))}):e}(0,C.forwardRef)(function(e,t){let{path:n,title:r,icon:i,info:a,caption:o,disabled:s,children:c,open:l,active:u,depth:d=1,hasChild:f,externalLink:p,enabledRootRedirect:m,render:h,slotProps:g,onClick:_,...v}=e,y=(0,C.useMemo)(()=>Mae(i,h),[i,h]),b=(0,C.useMemo)(()=>Nae(a,h),[a,h]),x=p??jae(n),S=!s&&(m||!f||d>1),w=x?{component:`a`,href:n,target:`_blank`,rel:`noopener noreferrer`}:{},T=(0,B.jsxs)(LL,{ref:t,active:u,disabled:s,open:l,depth:d,hasChild:f,onClick:S?_:void 0,sx:g?.sx,...w,...v,children:[(0,B.jsx)(Sae,{icon:y,className:g?.icon}),(0,B.jsx)(Eae,{title:r,caption:o,className:g?.texts}),b&&(0,B.jsx)(Aae,{info:b,className:g?.info}),f&&(0,B.jsx)(Oae,{open:l,className:g?.arrow})]});return o&&d===1?(0,B.jsx)(sE,{title:o,placement:`right`,arrow:!0,children:T}):T}),(0,C.createContext)(void 0),K(LL)(({theme:e})=>({flexDirection:`column`,justifyContent:`center`,alignItems:`center`,textAlign:`center`,padding:`var(--nav-item-padding, 8px)`,gap:4})),K(`span`)({fontSize:`var(--nav-item-font-size, 0.625rem)`,fontWeight:500,lineHeight:1.5,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`});var Pae=e(r(((e,t)=>{function n(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw Error(`map is read-only`)}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw Error(`set is read-only`)}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{let r=e[t],i=typeof r;(i===`object`||i===`function`)&&!Object.isFrozen(r)&&n(r)}),e}var r=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function i(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#x27;`)}function a(e,...t){let n=Object.create(null);for(let t in e)n[t]=e[t];return t.forEach(function(e){for(let t in e)n[t]=e[t]}),n}var o=`</span>`,s=e=>!!e.scope,c=(e,{prefix:t})=>{if(e.startsWith(`language:`))return e.replace(`language:`,`language-`);if(e.includes(`.`)){let n=e.split(`.`);return[`${t}${n.shift()}`,...n.map((e,t)=>`${e}${`_`.repeat(t+1)}`)].join(` `)}return`${t}${e}`},l=class{constructor(e,t){this.buffer=``,this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=i(e)}openNode(e){if(!s(e))return;let t=c(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){s(e)&&(this.buffer+=o)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}},u=(e={})=>{let t={children:[]};return Object.assign(t,e),t},d=class e{constructor(){this.rootNode=u(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){let t=u({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t==`string`?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(t){typeof t!=`string`&&t.children&&(t.children.every(e=>typeof e==`string`)?t.children=[t.children.join(``)]:t.children.forEach(t=>{e._collapse(t)}))}},f=class extends d{constructor(e){super(),this.options=e}addText(e){e!==``&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){let n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new l(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function p(e){return e?typeof e==`string`?e:e.source:null}function m(e){return _(`(?=`,e,`)`)}function h(e){return _(`(?:`,e,`)*`)}function g(e){return _(`(?:`,e,`)?`)}function _(...e){return e.map(e=>p(e)).join(``)}function v(e){let t=e[e.length-1];return typeof t==`object`&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function y(...e){return`(`+(v(e).capture?``:`?:`)+e.map(e=>p(e)).join(`|`)+`)`}function b(e){return RegExp(e.toString()+`|`).exec(``).length-1}function x(e,t){let n=e&&e.exec(t);return n&&n.index===0}var S=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function C(e,{joinWith:t}){let n=0;return e.map(e=>{n+=1;let t=n,r=p(e),i=``;for(;r.length>0;){let e=S.exec(r);if(!e){i+=r;break}i+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),e[0][0]===`\\`&&e[1]?i+=`\\`+String(Number(e[1])+t):(i+=e[0],e[0]===`(`&&n++)}return i}).map(e=>`(${e})`).join(t)}var w=/\b\B/,T=`[a-zA-Z]\\w*`,E=`[a-zA-Z_]\\w*`,D=`\\b\\d+(\\.\\d+)?`,O=`(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)`,k=`\\b(0b[01]+)`,A=`!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~`,j=(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=_(t,/.*\b/,e.binary,/\b.*/)),a({scope:`meta`,begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{e.index!==0&&t.ignoreMatch()}},e)},M={begin:`\\\\[\\s\\S]`,relevance:0},N={scope:`string`,begin:`'`,end:`'`,illegal:`\\n`,contains:[M]},P={scope:`string`,begin:`"`,end:`"`,illegal:`\\n`,contains:[M]},F={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},I=function(e,t,n={}){let r=a({scope:`comment`,begin:e,end:t,contains:[]},n);r.contains.push({scope:`doctag`,begin:`[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)`,end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let i=y(`I`,`a`,`is`,`so`,`us`,`to`,`at`,`if`,`in`,`it`,`on`,/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:_(/[ ]+/,`(`,i,/[.]?[:]?([.][ ]|[ ])/,`){3}`)}),r},L=I(`//`,`$`),ee=I(`/\\*`,`\\*/`),te=I(`#`,`$`),ne={scope:`number`,begin:D,relevance:0},re={scope:`number`,begin:O,relevance:0},ie={scope:`number`,begin:k,relevance:0},R={scope:`regexp`,begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[M,{begin:/\[/,end:/\]/,relevance:0,contains:[M]}]},ae={scope:`title`,begin:T,relevance:0},oe={scope:`title`,begin:E,relevance:0},se={begin:`\\.\\s*`+E,relevance:0},ce=Object.freeze({__proto__:null,APOS_STRING_MODE:N,BACKSLASH_ESCAPE:M,BINARY_NUMBER_MODE:ie,BINARY_NUMBER_RE:k,COMMENT:I,C_BLOCK_COMMENT_MODE:ee,C_LINE_COMMENT_MODE:L,C_NUMBER_MODE:re,C_NUMBER_RE:O,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:te,IDENT_RE:T,MATCH_NOTHING_RE:w,METHOD_GUARD:se,NUMBER_MODE:ne,NUMBER_RE:D,PHRASAL_WORDS_MODE:F,QUOTE_STRING_MODE:P,REGEXP_MODE:R,RE_STARTERS_RE:A,SHEBANG:j,TITLE_MODE:ae,UNDERSCORE_IDENT_RE:E,UNDERSCORE_TITLE_MODE:oe});function le(e,t){e.input[e.index-1]===`.`&&t.ignoreMatch()}function ue(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function z(e,t){t&&e.beginKeywords&&(e.begin=`\\b(`+e.beginKeywords.split(` `).join(`|`)+`)(?!\\.)(?=\\b|\\s)`,e.__beforeBegin=le,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function de(e,t){Array.isArray(e.illegal)&&(e.illegal=y(...e.illegal))}function fe(e,t){if(e.match){if(e.begin||e.end)throw Error(`begin & end are not supported with match`);e.begin=e.match,delete e.match}}function pe(e,t){e.relevance===void 0&&(e.relevance=1)}var me=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw Error(`beforeMatch cannot be used with starts`);let n=Object.assign({},e);Object.keys(e).forEach(t=>{delete e[t]}),e.keywords=n.keywords,e.begin=_(n.beforeMatch,m(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},he=[`of`,`and`,`for`,`in`,`not`,`or`,`if`,`then`,`parent`,`list`,`value`],ge=`keyword`;function _e(e,t,n=ge){let r=Object.create(null);return typeof e==`string`?i(n,e.split(` `)):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(n){Object.assign(r,_e(e[n],t,n))}),r;function i(e,n){t&&(n=n.map(e=>e.toLowerCase())),n.forEach(function(t){let n=t.split(`|`);r[n[0]]=[e,ve(n[0],n[1])]})}}function ve(e,t){return t?Number(t):+!ye(e)}function ye(e){return he.includes(e.toLowerCase())}var be={},xe=e=>{console.error(e)},Se=(e,...t)=>{console.log(`WARN: ${e}`,...t)},Ce=(e,t)=>{be[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),be[`${e}/${t}`]=!0)},we=Error();function Te(e,t,{key:n}){let r=0,i=e[n],a={},o={};for(let e=1;e<=t.length;e++)o[e+r]=i[e],a[e+r]=!0,r+=b(t[e-1]);e[n]=o,e[n]._emit=a,e[n]._multi=!0}function Ee(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw xe(`skip, excludeBegin, returnBegin not compatible with beginScope: {}`),we;if(typeof e.beginScope!=`object`||e.beginScope===null)throw xe(`beginScope must be object`),we;Te(e,e.begin,{key:`beginScope`}),e.begin=C(e.begin,{joinWith:``})}}function De(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw xe(`skip, excludeEnd, returnEnd not compatible with endScope: {}`),we;if(typeof e.endScope!=`object`||e.endScope===null)throw xe(`endScope must be object`),we;Te(e,e.end,{key:`endScope`}),e.end=C(e.end,{joinWith:``})}}function Oe(e){e.scope&&typeof e.scope==`object`&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function ke(e){Oe(e),typeof e.beginScope==`string`&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope==`string`&&(e.endScope={_wrap:e.endScope}),Ee(e),De(e)}function Ae(e){function t(t,n){return new RegExp(p(t),`m`+(e.case_insensitive?`i`:``)+(e.unicodeRegex?`u`:``)+(n?`g`:``))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=b(e)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);let e=this.regexes.map(e=>e[1]);this.matcherRe=t(C(e,{joinWith:`|`}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;let t=this.matcherRe.exec(e);if(!t)return null;let n=t.findIndex((e,t)=>t>0&&e!==void 0),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];let t=new n;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),t.type===`begin`&&this.count++}exec(e){let t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition()&&!(n&&n.index===this.lastIndex)){let t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}function i(e){let t=new r;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:`begin`})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:`end`}),e.illegal&&t.addRule(e.illegal,{type:`illegal`}),t}function o(n,r){let a=n;if(n.isCompiled)return a;[ue,fe,ke,me].forEach(e=>e(n,r)),e.compilerExtensions.forEach(e=>e(n,r)),n.__beforeBegin=null,[z,de,pe].forEach(e=>e(n,r)),n.isCompiled=!0;let s=null;return typeof n.keywords==`object`&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),s=n.keywords.$pattern,delete n.keywords.$pattern),s||=/\w+/,n.keywords&&=_e(n.keywords,e.case_insensitive),a.keywordPatternRe=t(s,!0),r&&(n.begin||=/\B|\b/,a.beginRe=t(a.begin),!n.end&&!n.endsWithParent&&(n.end=/\B|\b/),n.end&&(a.endRe=t(a.end)),a.terminatorEnd=p(a.end)||``,n.endsWithParent&&r.terminatorEnd&&(a.terminatorEnd+=(n.end?`|`:``)+r.terminatorEnd)),n.illegal&&(a.illegalRe=t(n.illegal)),n.contains||=[],n.contains=[].concat(...n.contains.map(function(e){return Me(e===`self`?n:e)})),n.contains.forEach(function(e){o(e,a)}),n.starts&&o(n.starts,r),a.matcher=i(a),a}if(e.compilerExtensions||=[],e.contains&&e.contains.includes(`self`))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=a(e.classNameAliases||{}),o(e)}function je(e){return e?e.endsWithParent||je(e.starts):!1}function Me(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return a(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:je(e)?a(e,{starts:e.starts?a(e.starts):null}):Object.isFrozen(e)?a(e):e}var Ne=`11.11.1`,Pe=class extends Error{constructor(e,t){super(e),this.name=`HTMLInjectionError`,this.html=t}},Fe=i,Ie=a,Le=Symbol(`nomatch`),Re=7,ze=function(e){let t=Object.create(null),i=Object.create(null),a=[],o=!0,s=`Could not find the language '{}', did you forget to load/include a language module?`,c={disableAutodetect:!0,name:`Plain text`,contains:[]},l={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:`hljs-`,cssSelector:`pre code`,languages:null,__emitter:f};function u(e){return l.noHighlightRe.test(e)}function d(e){let t=e.className+` `;t+=e.parentNode?e.parentNode.className:``;let n=l.languageDetectRe.exec(t);if(n){let t=N(n[1]);return t||(Se(s.replace(`{}`,n[1])),Se(`Falling back to no-highlight mode for this block.`,e)),t?n[1]:`no-highlight`}return t.split(/\s+/).find(e=>u(e)||N(e))}function p(e,t,n){let r=``,i=``;typeof t==`object`?(r=e,n=t.ignoreIllegals,i=t.language):(Ce(`10.7.0`,`highlight(lang, code, ...args) has been deprecated.`),Ce(`10.7.0`,`Please use highlight(code, options) instead.
274
- https://github.com/highlightjs/highlight.js/issues/2277`),i=e,r=t),n===void 0&&(n=!0);let a={code:r,language:i};te(`before:highlight`,a);let o=a.result?a.result:v(a.language,a.code,n);return o.code=a.code,te(`after:highlight`,o),o}function v(e,n,i,a){let c=Object.create(null);function u(e,t){return e.keywords[t]}function d(){if(!A.keywords){M.addText(P);return}let e=0;A.keywordPatternRe.lastIndex=0;let t=A.keywordPatternRe.exec(P),n=``;for(;t;){n+=P.substring(e,t.index);let r=D.case_insensitive?t[0].toLowerCase():t[0],i=u(A,r);if(i){let[e,a]=i;if(M.addText(n),n=``,c[r]=(c[r]||0)+1,c[r]<=Re&&(F+=a),e.startsWith(`_`))n+=t[0];else{let n=D.classNameAliases[e]||e;m(t[0],n)}}else n+=t[0];e=A.keywordPatternRe.lastIndex,t=A.keywordPatternRe.exec(P)}n+=P.substring(e),M.addText(n)}function f(){if(P===``)return;let e=null;if(typeof A.subLanguage==`string`){if(!t[A.subLanguage]){M.addText(P);return}e=v(A.subLanguage,P,!0,j[A.subLanguage]),j[A.subLanguage]=e._top}else e=S(P,A.subLanguage.length?A.subLanguage:null);A.relevance>0&&(F+=e.relevance),M.__addSublanguage(e._emitter,e.language)}function p(){A.subLanguage==null?d():f(),P=``}function m(e,t){e!==``&&(M.startScope(t),M.addText(e),M.endScope())}function h(e,t){let n=1,r=t.length-1;for(;n<=r;){if(!e._emit[n]){n++;continue}let r=D.classNameAliases[e[n]]||e[n],i=t[n];r?m(i,r):(P=i,d(),P=``),n++}}function g(e,t){return e.scope&&typeof e.scope==`string`&&M.openNode(D.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(m(P,D.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),P=``):e.beginScope._multi&&(h(e.beginScope,t),P=``)),A=Object.create(e,{parent:{value:A}}),A}function _(e,t,n){let i=x(e.endRe,n);if(i){if(e[`on:end`]){let n=new r(e);e[`on:end`](t,n),n.isMatchIgnored&&(i=!1)}if(i){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return _(e.parent,t,n)}function y(e){return A.matcher.regexIndex===0?(P+=e[0],1):(ee=!0,0)}function b(e){let t=e[0],n=e.rule,i=new r(n),a=[n.__beforeBegin,n[`on:begin`]];for(let n of a)if(n&&(n(e,i),i.isMatchIgnored))return y(t);return n.skip?P+=t:(n.excludeBegin&&(P+=t),p(),!n.returnBegin&&!n.excludeBegin&&(P=t)),g(n,e),n.returnBegin?0:t.length}function C(e){let t=e[0],r=n.substring(e.index),i=_(A,e,r);if(!i)return Le;let a=A;A.endScope&&A.endScope._wrap?(p(),m(t,A.endScope._wrap)):A.endScope&&A.endScope._multi?(p(),h(A.endScope,e)):a.skip?P+=t:(a.returnEnd||a.excludeEnd||(P+=t),p(),a.excludeEnd&&(P=t));do A.scope&&M.closeNode(),!A.skip&&!A.subLanguage&&(F+=A.relevance),A=A.parent;while(A!==i.parent);return i.starts&&g(i.starts,e),a.returnEnd?0:t.length}function w(){let e=[];for(let t=A;t!==D;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach(e=>M.openNode(e))}let T={};function E(t,r){let a=r&&r[0];if(P+=t,a==null)return p(),0;if(T.type===`begin`&&r.type===`end`&&T.index===r.index&&a===``){if(P+=n.slice(r.index,r.index+1),!o){let t=Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=T.rule,t}return 1}if(T=r,r.type===`begin`)return b(r);if(r.type===`illegal`&&!i){let e=Error(`Illegal lexeme "`+a+`" for mode "`+(A.scope||`<unnamed>`)+`"`);throw e.mode=A,e}else if(r.type===`end`){let e=C(r);if(e!==Le)return e}if(r.type===`illegal`&&a===``)return P+=`
275
- `,1;if(L>1e5&&L>r.index*3)throw Error(`potential infinite loop, way more iterations than matches`);return P+=a,a.length}let D=N(e);if(!D)throw xe(s.replace(`{}`,e)),Error(`Unknown language: "`+e+`"`);let O=Ae(D),k=``,A=a||O,j={},M=new l.__emitter(l);w();let P=``,F=0,I=0,L=0,ee=!1;try{if(D.__emitTokens)D.__emitTokens(n,M);else{for(A.matcher.considerAll();;){L++,ee?ee=!1:A.matcher.considerAll(),A.matcher.lastIndex=I;let e=A.matcher.exec(n);if(!e)break;let t=E(n.substring(I,e.index),e);I=e.index+t}E(n.substring(I))}return M.finalize(),k=M.toHTML(),{language:e,value:k,relevance:F,illegal:!1,_emitter:M,_top:A}}catch(t){if(t.message&&t.message.includes(`Illegal`))return{language:e,value:Fe(n),illegal:!0,relevance:0,_illegalBy:{message:t.message,index:I,context:n.slice(I-100,I+100),mode:t.mode,resultSoFar:k},_emitter:M};if(o)return{language:e,value:Fe(n),illegal:!1,relevance:0,errorRaised:t,_emitter:M,_top:A};throw t}}function b(e){let t={value:Fe(e),illegal:!1,relevance:0,_top:c,_emitter:new l.__emitter(l)};return t._emitter.addText(e),t}function S(e,n){n=n||l.languages||Object.keys(t);let r=b(e),i=n.filter(N).filter(F).map(t=>v(t,e,!1));i.unshift(r);let[a,o]=i.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(N(e.language).supersetOf===t.language)return 1;if(N(t.language).supersetOf===e.language)return-1}return 0}),s=a;return s.secondBest=o,s}function C(e,t,n){let r=t&&i[t]||n;e.classList.add(`hljs`),e.classList.add(`language-${r}`)}function w(e){let t=null,n=d(e);if(u(n))return;if(te(`before:highlightElement`,{el:e,language:n}),e.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e);return}if(e.children.length>0&&(l.ignoreUnescapedHTML||(console.warn(`One of your code blocks includes unescaped HTML. This is a potentially serious security risk.`),console.warn(`https://github.com/highlightjs/highlight.js/wiki/security`),console.warn(`The element with unescaped HTML:`),console.warn(e)),l.throwUnescapedHTML))throw new Pe(`One of your code blocks includes unescaped HTML.`,e.innerHTML);t=e;let r=t.textContent,i=n?p(r,{language:n,ignoreIllegals:!0}):S(r);e.innerHTML=i.value,e.dataset.highlighted=`yes`,C(e,n,i.language),e.result={language:i.language,re:i.relevance,relevance:i.relevance},i.secondBest&&(e.secondBest={language:i.secondBest.language,relevance:i.secondBest.relevance}),te(`after:highlightElement`,{el:e,result:i,text:r})}function T(e){l=Ie(l,e)}let E=()=>{k(),Ce(`10.6.0`,`initHighlighting() deprecated. Use highlightAll() now.`)};function D(){k(),Ce(`10.6.0`,`initHighlightingOnLoad() deprecated. Use highlightAll() now.`)}let O=!1;function k(){function e(){k()}if(document.readyState===`loading`){O||window.addEventListener(`DOMContentLoaded`,e,!1),O=!0;return}document.querySelectorAll(l.cssSelector).forEach(w)}function A(n,r){let i=null;try{i=r(e)}catch(e){if(xe(`Language definition for '{}' could not be registered.`.replace(`{}`,n)),o)xe(e);else throw e;i=c}i.name||=n,t[n]=i,i.rawDefinition=r.bind(null,e),i.aliases&&P(i.aliases,{languageName:n})}function j(e){delete t[e];for(let t of Object.keys(i))i[t]===e&&delete i[t]}function M(){return Object.keys(t)}function N(e){return e=(e||``).toLowerCase(),t[e]||t[i[e]]}function P(e,{languageName:t}){typeof e==`string`&&(e=[e]),e.forEach(e=>{i[e.toLowerCase()]=t})}function F(e){let t=N(e);return t&&!t.disableAutodetect}function I(e){e[`before:highlightBlock`]&&!e[`before:highlightElement`]&&(e[`before:highlightElement`]=t=>{e[`before:highlightBlock`](Object.assign({block:t.el},t))}),e[`after:highlightBlock`]&&!e[`after:highlightElement`]&&(e[`after:highlightElement`]=t=>{e[`after:highlightBlock`](Object.assign({block:t.el},t))})}function L(e){I(e),a.push(e)}function ee(e){let t=a.indexOf(e);t!==-1&&a.splice(t,1)}function te(e,t){let n=e;a.forEach(function(e){e[n]&&e[n](t)})}function ne(e){return Ce(`10.7.0`,`highlightBlock will be removed entirely in v12.0`),Ce(`10.7.0`,`Please use highlightElement now.`),w(e)}Object.assign(e,{highlight:p,highlightAuto:S,highlightAll:k,highlightElement:w,highlightBlock:ne,configure:T,initHighlighting:E,initHighlightingOnLoad:D,registerLanguage:A,unregisterLanguage:j,listLanguages:M,getLanguage:N,registerAliases:P,autoDetection:F,inherit:Ie,addPlugin:L,removePlugin:ee}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString=Ne,e.regex={concat:_,lookahead:m,either:y,optional:g,anyNumberOfTimes:h};for(let e in ce)typeof ce[e]==`object`&&n(ce[e]);return Object.assign(e,ce),e},Be=ze({});Be.newInstance=()=>ze({}),t.exports=Be,Be.HighlightJS=Be,Be.default=Be}))()).default;function RL(e){this.content=e}RL.prototype={constructor:RL,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),a=r.content.slice();return i==-1?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new RL(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new RL(n)},addToStart:function(e,t){return new RL([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new RL(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),a=r.find(e);return i.splice(a==-1?i.length:a,0,t,n),new RL(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=RL.from(e),e.size?new RL(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=RL.from(e),e.size?new RL(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=RL.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},RL.from=function(e){if(e instanceof RL)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new RL(t)};function zL(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a){n+=i.nodeSize;continue}if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){for(let e=0;i.text[e]==a.text[e];e++)n++;return n}if(i.content.size||a.content.size){let e=zL(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}function BL(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),c=o.nodeSize;if(o==s){n-=c,r-=c;continue}if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let e=0,t=Math.min(o.text.length,s.text.length);for(;e<t&&o.text[o.text.length-e-1]==s.text[s.text.length-e-1];)e++,n--,r--;return{a:n,b:r}}if(o.content.size||s.content.size){let e=BL(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}var Z=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let a=0,o=0;o<t;a++){let s=this.content[a],c=o+s.nodeSize;if(c>e&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<t.content.length;a++)i.push(t.content[a]);return new e(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let e=0,a=0;a<n;e++){let o=this.content[e],s=a+o.nodeSize;s>t&&((a<t||s>n)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError(`Index `+e+` out of range for `+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return zL(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return BL(this,e,t,n)}findIndex(e){if(e==0)return HL(0,e);if(e==this.size)return HL(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?HL(t+1,i):HL(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return new e(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;e<t.length;e++){let i=t[e];r+=i.nodeSize,e&&i.isText&&t[e-1].sameMarkup(i)?(n||=t.slice(0,e),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new e(n||t,r)}static from(t){if(!t)return e.empty;if(t instanceof e)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new e([t],t.nodeSize);throw RangeError(`Can not convert `+t+` to a Fragment`+(t.nodesBetween?` (looks like multiple versions of prosemirror-model were loaded)`:``))}};Z.empty=new Z([],0);var VL={index:0,offset:0};function HL(e,t){return VL.index=e,VL.offset=t,VL}function UL(e,t){if(e===t)return!0;if(!(e&&typeof e==`object`)||!(t&&typeof t==`object`))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!UL(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!UL(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var WL=class e{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||=e.slice(0,r);else if(i.type.excludes(this.type))return e;else !n&&i.type.rank>this.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&UL(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Mark.fromJSON`);let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return e.none;if(t instanceof e)return[t];let n=t.slice();return n.sort((e,t)=>e.type.rank-t.type.rank),n}};WL.none=[];var GL=class extends Error{},KL=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=JL(this.content,t+this.openStart,n);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(qL(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(Z.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};KL.empty=new KL(Z.empty,0,0);function qL(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(qL(a.content,t-i-1,n-i-1)))}function JL(e,t,n,r){let{index:i,offset:a}=e.findIndex(t),o=e.maybeChild(i);if(a==t||o.isText)return r&&!r.canReplace(i,i,n)?null:e.cut(0,t).append(n).append(e.cut(t));let s=JL(o.content,t-a-1,n,o);return s&&e.replaceChild(i,o.copy(s))}function Fae(e,t,n){if(n.openStart>e.depth)throw new GL(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new GL(`Inconsistent open depths`);return YL(e,t,n,0)}function YL(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let o=YL(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}else if(!n.content.size)return eR(a,nR(e,t,r));else if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return eR(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}else{let{start:i,end:o}=rR(n,e);return eR(a,tR(e,i,o,t,r))}}function XL(e,t){if(!t.type.compatibleContent(e.type))throw new GL(`Cannot join `+t.type.name+` onto `+e.type.name)}function ZL(e,t,n){let r=e.node(n);return XL(r,t.node(n)),r}function QL(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function $L(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(QL(e.nodeAfter,r),a++));for(let e=a;e<o;e++)QL(i.child(e),r);t&&t.depth==n&&t.textOffset&&QL(t.nodeBefore,r)}function eR(e,t){return e.type.checkContent(t),e.copy(t)}function tR(e,t,n,r,i){let a=e.depth>i&&ZL(e,t,i+1),o=r.depth>i&&ZL(n,r,i+1),s=[];return $L(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(XL(a,o),QL(eR(a,tR(e,t,n,r,i+1)),s)):(a&&QL(eR(a,nR(e,t,i+1)),s),$L(t,n,i,s),o&&QL(eR(o,nR(n,r,i+1)),s)),$L(r,null,i,s),new Z(s)}function nR(e,t,n){let r=[];return $L(null,e,n,r),e.depth>n&&QL(eR(ZL(e,t,n+1),nR(e,t,n+1)),r),$L(t,null,n,r),new Z(r)}function rR(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(Z.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var iR=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return WL.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive===!1&&(!r||!i[a].isInSet(r.marks))&&(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!r||!n[i].isInSet(r.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new cR(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e=``;for(let t=1;t<=this.depth;t++)e+=(e?`/`:``)+this.node(t).type.name+`_`+this.index(t-1);return e+`:`+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=sR.get(t);if(r)for(let e=0;e<r.elts.length;e++){let t=r.elts[e];if(t.pos==n)return t}else sR.set(t,r=new aR);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%oR,i}},aR=class{constructor(){this.elts=[],this.i=0}},oR=12,sR=new WeakMap,cR=class{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}},lR=Object.create(null),uR=class e{constructor(e,t,n,r=WL.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||Z.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,``)}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&UL(this.attrs,t||e.defaultAttrs||lR)&&WL.sameSet(this.marks,n||WL.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return KL.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new KL(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return Fae(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return iR.resolveCached(this,e)}resolveNoCache(e){return iR.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),fR(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=Z.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;e<i;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),a=i&&i.matchFragment(this.content,t);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=WL.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!WL.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=Z.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,r,n);return i.type.checkAttrs(i.attrs),i}};uR.prototype.text=void 0;var dR=class e extends uR{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):fR(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function fR(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}var pR=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new mR(t,n);if(r.next==null)return e.empty;let i=hR(r);r.next&&r.err(`Unexpected trailing text`);let a=TR(SR(i));return ER(a,r),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];function i(a,o){let s=a.matchFragment(e,n);if(s&&(!t||s.validEnd))return Z.from(o.map(e=>e.createAndFill()));for(let e=0;e<a.next.length;e++){let{type:t,next:n}=a.next[e];if(!(t.isText||t.hasRequiredAttrs())&&r.indexOf(n)==-1){r.push(n);let e=i(n,o.concat(t));if(e)return e}}return null}return i(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:a,next:o}=i.next[e];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in t)&&(!r.type||o.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&t(n.next[r].next)}return t(this),e.map((t,n)=>{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n<t.next.length;n++)r+=(n?`, `:``)+t.next[n].type.name+`->`+e.indexOf(t.next[n].next);return r}).join(`
276
- `)}};pR.empty=new pR(!0);var mR=class{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==``&&this.tokens.pop(),this.tokens[0]==``&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+` (in content expression '`+this.string+`')`)}};function hR(e){let t=[];do t.push(gR(e));while(e.eat(`|`));return t.length==1?t[0]:{type:`choice`,exprs:t}}function gR(e){let t=[];do t.push(_R(e));while(e.next&&e.next!=`)`&&e.next!=`|`);return t.length==1?t[0]:{type:`seq`,exprs:t}}function _R(e){let t=xR(e);for(;;)if(e.eat(`+`))t={type:`plus`,expr:t};else if(e.eat(`*`))t={type:`star`,expr:t};else if(e.eat(`?`))t={type:`opt`,expr:t};else if(e.eat(`{`))t=yR(e,t);else break;return t}function vR(e){/\D/.test(e.next)&&e.err(`Expected number, got '`+e.next+`'`);let t=Number(e.next);return e.pos++,t}function yR(e,t){let n=vR(e),r=n;return e.eat(`,`)&&(r=e.next==`}`?-1:vR(e)),e.eat(`}`)||e.err(`Unclosed braced range`),{type:`range`,min:n,max:r,expr:t}}function bR(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let e in n){let r=n[e];r.isInGroup(t)&&i.push(r)}return i.length==0&&e.err(`No node type or group '`+t+`' found`),i}function xR(e){if(e.eat(`(`)){let t=hR(e);return e.eat(`)`)||e.err(`Missing closing paren`),t}else if(/\W/.test(e.next))e.err(`Unexpected token '`+e.next+`'`);else{let t=bR(e,e.next).map(t=>(e.inline==null?e.inline=t.isInline:e.inline!=t.isInline&&e.err(`Mixing inline and block content`),{type:`name`,value:t}));return e.pos++,t.length==1?t[0]:{type:`choice`,exprs:t}}}function SR(e){let t=[[]];return i(a(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}function a(e,t){if(e.type==`choice`)return e.exprs.reduce((e,n)=>e.concat(a(n,t)),[]);if(e.type==`seq`)for(let r=0;;r++){let o=a(e.exprs[r],t);if(r==e.exprs.length-1)return o;i(o,t=n())}else if(e.type==`star`){let o=n();return r(t,o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`plus`){let o=n();return i(a(e.expr,t),o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`opt`)return[r(t)].concat(a(e.expr,t));else if(e.type==`range`){let o=t;for(let t=0;t<e.min;t++){let t=n();i(a(e.expr,o),t),o=t}if(e.max==-1)i(a(e.expr,o),o);else for(let t=e.min;t<e.max;t++){let t=n();r(o,t),i(a(e.expr,o),t),o=t}return[r(o)]}else if(e.type==`name`)return[r(t,void 0,e.value)];else throw Error(`Unknown expr type`)}}function CR(e,t){return t-e}function wR(e,t){let n=[];return r(t),n.sort(CR);function r(t){let i=e[t];if(i.length==1&&!i[0].term)return r(i[0].to);n.push(t);for(let e=0;e<i.length;e++){let{term:t,to:a}=i[e];!t&&n.indexOf(a)==-1&&r(a)}}}function TR(e){let t=Object.create(null);return n(wR(e,0));function n(r){let i=[];r.forEach(t=>{e[t].forEach(({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e<i.length;e++)i[e][0]==t&&(r=i[e][1]);wR(e,n).forEach(e=>{r||i.push([t,r=[]]),r.indexOf(e)==-1&&r.push(e)})})});let a=t[r.join(`,`)]=new pR(r.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let r=i[e][1].sort(CR);a.next.push({type:i[e][0],next:t[r.join(`,`)]||n(r)})}return a}}function ER(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],i=!e.validEnd,a=[];for(let t=0;t<e.next.length;t++){let{type:n,next:o}=e.next[t];a.push(n.name),i&&!(n.isText||n.hasRequiredAttrs())&&(i=!1),r.indexOf(o)==-1&&r.push(o)}i&&t.err(`Only non-generatable nodes (`+a.join(`, `)+`) in a required position (see https://prosemirror.net/docs/guide/#generatable)`)}}function DR(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function OR(e,t){let n=Object.create(null);for(let r in e){let i=t&&t[r];if(i===void 0){let t=e[r];if(t.hasDefault)i=t.default;else throw RangeError(`No value supplied for attribute `+r)}n[r]=i}return n}function kR(e,t,n,r){for(let r in t)if(!(r in e))throw RangeError(`Unsupported attribute ${r} for ${n} of type ${r}`);for(let n in e){let r=e[n];r.validate&&r.validate(t[n])}}function AR(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new NR(e,r,t[r]);return n}var jR=class e{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(` `):[],this.attrs=AR(e,n.attrs),this.defaultAttrs=DR(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e==`text`),this.isText=e==`text`}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==pR.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?`pre`:`normal`)}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:OR(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error(`NodeType.create can't construct text nodes`);return new uR(this,this.computeAttrs(e),Z.from(t),WL.setFrom(n))}createChecked(e=null,t,n){return t=Z.from(t),this.checkContent(t),new uR(this,this.computeAttrs(e),t,WL.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),t=Z.from(t),t.size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),i=r&&r.fillBefore(Z.empty,!0);return i?new uR(this,e,t.append(i),WL.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){kR(this.attrs,e,`node`,this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||=e.slice(0,n);return t?t.length?t:WL.none:e}static compile(t,n){let r=Object.create(null);t.forEach((t,i)=>r[t]=new e(t,n,i));let i=n.spec.topNode||`doc`;if(!r[i])throw RangeError(`Schema is missing its top node type ('`+i+`')`);if(!r.text)throw RangeError(`Every schema needs a 'text' type`);for(let e in r.text.attrs)throw RangeError(`The text node type should not have attributes`);return r}};function MR(e,t,n){let r=n.split(`|`);return n=>{let i=n===null?`null`:typeof n;if(r.indexOf(i)<0)throw RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${i}`)}}var NR=class{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,`default`),this.default=n.default,this.validate=typeof n.validate==`string`?MR(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}},PR=class e{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=AR(e,r.attrs),this.excluded=null;let i=DR(this.attrs);this.instance=i?new WL(this,i):null}create(e=null){return!e&&this.instance?this.instance:new WL(this,OR(this.attrs,e))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((t,a)=>r[t]=new e(t,i++,n,a)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){kR(this.attrs,e,`mark`,this.name)}excludes(e){return this.excluded.indexOf(e)>-1}},FR=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=RL.from(e.nodes),t.marks=RL.from(e.marks||{}),this.nodes=jR.compile(this.spec.nodes,this),this.marks=PR.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+` can not be both a node and a mark`);let t=this.nodes[e],r=t.spec.content||``,i=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=pR.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError(`Multiple linebreak nodes defined`);if(!t.isInline||!t.isLeaf)throw RangeError(`Linebreak replacement nodes must be inline leaf nodes`);this.linebreakReplacement=t}t.markSet=i==`_`?null:i?IR(this,i.split(` `)):i==``||!t.inlineContent?[]:null}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=n==null?[t]:n==``?[]:IR(this,n.split(` `))}this.nodeFromJSON=e=>uR.fromJSON(this,e),this.markFromJSON=e=>WL.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||`doc`],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if(typeof e==`string`)e=this.nodeType(e);else if(!(e instanceof jR))throw RangeError(`Invalid node type: `+e);else if(e.schema!=this)throw RangeError(`Node type from different schema used (`+e.name+`)`);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new dR(n,n.defaultAttrs,e,WL.setFrom(t))}mark(e,t){return typeof e==`string`&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError(`Unknown node type: `+e);return t}};function IR(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],a=e.marks[i],o=a;if(a)n.push(a);else for(let t in e.marks){let r=e.marks[t];(i==`_`||r.spec.group&&r.spec.group.split(` `).indexOf(i)>-1)&&n.push(o=r)}if(!o)throw SyntaxError(`Unknown mark type: '`+t[r]+`'`)}return n}function LR(e){return e.tag!=null}function RR(e){return e.style!=null}var zR=class e{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(e=>{if(LR(e))this.tags.push(e);else if(RR(e)){let t=/[^=]*/.exec(e.style)[0];n.indexOf(t)<0&&n.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new JR(this,t,!1);return n.addAll(e,WL.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new JR(this,t,!0);return n.addAll(e,WL.none,t.from,t.to),KL.maxOpen(n.finish())}matchTag(e,t,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let n=this.tags[r];if(XR(e,n.tag)&&(n.namespace===void 0||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(t===!1)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let r=this.styles[i],a=r.style;if(!(a.indexOf(e)!=0||r.context&&!n.matchesContext(r.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=t))){if(r.getAttrs){let e=r.getAttrs(t);if(e===!1)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=e.priority==null?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r];if((e.priority==null?50:e.priority)<n)break}t.splice(r,0,e)}for(let t in e.marks){let r=e.marks[t].spec.parseDOM;r&&r.forEach(e=>{n(e=ZR(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let r=e.nodes[t].spec.parseDOM;r&&r.forEach(e=>{n(e=ZR(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new e(t,e.schemaRules(t)))}},BR={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},VR={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},HR={ol:!0,ul:!0},UR=1,WR=2,GR=4;function KR(e,t,n){return t==null?e&&e.whitespace==`pre`?UR|WR:n&~GR:(t?UR:0)|(t===`full`?WR:0)}var qR=class{constructor(e,t,n,r,i,a){this.type=e,this.attrs=t,this.marks=n,this.solid=r,this.options=a,this.content=[],this.activeMarks=WL.none,this.match=i||(a&GR?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(Z.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,n;return(n=t.findWrapping(e.type))?(this.match=t,n):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&UR)){let e=this.content[this.content.length-1],t;if(e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))){let n=e;e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length))}}let t=Z.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(Z.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!BR.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},JR=class{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r=t.topNode,i,a=KR(null,t.preserveWhitespace,0)|(n?GR:0);i=r?new qR(r.type,r.attrs,WL.none,!0,t.topMatch||r.type.contentMatch,a):n?new qR(null,null,WL.none,!0,null,a):new qR(e.schema.topNodeType,null,WL.none,!0,null,a),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let n=e.nodeValue,r=this.top,i=r.options&WR?`full`:this.localPreserveWS||(r.options&UR)>0,{schema:a}=this.parser;if(i===`full`||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(!i){if(n=n.replace(/[ \t\r\n\u000c]+/g,` `),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let t=r.content[r.content.length-1],i=e.previousSibling;(!t||i&&i.nodeName==`BR`||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(n=n.slice(1))}}else if(i===`full`)n=n.replace(/\r\n?/g,`
277
- `);else if(a.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(a.linebreakReplacement.create())){let e=n.split(/\r?\n|\r/);for(let n=0;n<e.length;n++)n&&this.insertNode(a.linebreakReplacement.create(),t,!0),e[n]&&this.insertNode(a.text(e[n]),t,!/\S/.test(e[n]));n=``}else n=n.replace(/\r?\n|\r/g,` `);n&&this.insertNode(a.text(n),t,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,t,n){let r=this.localPreserveWS,i=this.top;(e.tagName==`PRE`||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let a=e.nodeName.toLowerCase(),o;HR.hasOwnProperty(a)&&this.parser.normalizeLists&&YR(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,n));out:if(s?s.ignore:VR.hasOwnProperty(a))this.findInside(e),this.ignoreFallback(e,t);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);let n,r=this.needsBlock;if(BR.hasOwnProperty(a))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),n=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break out}let o=s&&s.skip?t:this.readStyles(e,t);o&&this.addAll(e,o),n&&this.sync(i),this.needsBlock=r}else{let n=this.readStyles(e,t);n&&this.addElementByRule(e,s,n,s.consuming===!1?o:void 0)}this.localPreserveWS=r}leafFallback(e,t){e.nodeName==`BR`&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
278
- `),t)}ignoreFallback(e,t){e.nodeName==`BR`&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text(`-`),t,!0)}readStyles(e,t){let n=e.style;if(n&&n.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let r=this.parser.matchedStyles[e],i=n.getPropertyValue(r);if(i)for(let e;;){let n=this.parser.matchStyle(r,i,this,e);if(!n)break;if(n.ignore)return null;if(t=n.clearMark?t.filter(e=>!n.clearMark(e)):t.concat(this.parser.schema.marks[n.mark].create(n.attrs)),n.consuming===!1)e=n;else break}}return t}addElementByRule(e,t,n,r){let i,a;if(t.node)if(a=this.parser.schema.nodes[t.node],a.isLeaf)this.insertNode(a.create(t.attrs),n,e.nodeName==`BR`)||this.leafFallback(e,n);else{let e=this.enter(a,t.attrs||null,n,t.preserveWhitespace);e&&(i=!0,n=e)}else{let e=this.parser.schema.marks[t.mark];n=n.concat(e.create(t.attrs))}let o=this.top;if(a&&a.isLeaf)this.findInside(e);else if(r)this.addElement(e,n,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,n,!1));else{let r=e;typeof t.contentElement==`string`?r=e.querySelector(t.contentElement):typeof t.contentElement==`function`?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r,n),this.findAround(e,r,!1)}i&&this.sync(o)&&this.open--}addAll(e,t,n,r){let i=n||0;for(let a=n?e.childNodes[n]:e.firstChild,o=r==null?null:e.childNodes[r];a!=o;a=a.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(a,t);this.findAtPoint(e,i)}findPlace(e,t,n){let r,i;for(let t=this.open,a=0;t>=0;t--){let o=this.nodes[t],s=o.findWrapping(e);if(s&&(!r||r.length>s.length+a)&&(r=s,i=o,!s.length))break;if(o.solid){if(n)break;a+=2}}if(!r)return null;this.sync(i);for(let e=0;e<r.length;e++)t=this.enterInner(r[e],null,t,!1);return t}insertNode(e,t,n){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let r=this.findPlace(e,t,n);if(r){this.closeExtra();let t=this.top;t.match&&=t.match.matchType(e.type);let n=WL.none;for(let i of r.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):QR(i.type,e.type))&&(n=i.addToSet(n));return t.content.push(e.mark(n)),!0}return!1}enter(e,t,n,r){let i=this.findPlace(e.create(t),n,!1);return i&&=this.enterInner(e,t,n,!0,r),i}enterInner(e,t,n,r=!1,i){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(e);let o=KR(e,i,a.options);a.options&GR&&a.content.length==0&&(o|=GR);let s=WL.none;return n=n.filter(t=>(a.type?a.type.allowsMarkType(t.type):QR(t.type,e))?(s=t.addToSet(s),!1):!0),this.nodes.push(new qR(e,t,s,r,null,o)),this.open++,n}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;else this.localPreserveWS&&(this.nodes[t].options|=UR);return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&e.nodeType==1&&e.contains(this.find[r].node)&&t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf(`|`)>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split(`/`),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+ +!r,a=(e,o)=>{for(;e>=0;e--){let s=t[e];if(s==``){if(e==t.length-1||e==0)continue;for(;o>=i;o--)if(a(e-1,o))return!0;return!1}else{let e=o>0||o==0&&r?this.nodes[o].type:n&&o>=i?n.node(o-i).type:null;if(!e||e.name!=s&&!e.isInGroup(s))return!1;o--}}return!0};return a(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}};function YR(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=t.nodeType==1?t.nodeName.toLowerCase():null;e&&HR.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):e==`li`?n=t:e&&(n=null)}}function XR(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function ZR(e){let t={};for(let n in e)t[n]=e[n];return t}function QR(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let a=[],o=e=>{a.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:i}=e.edge(n);if(r==t||a.indexOf(i)<0&&o(i))return!0}};if(o(i.contentMatch))return!0}}var $R=class e{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||=tz(t).createDocumentFragment();let r=n,i=[];return e.forEach(e=>{if(i.length||e.marks.length){let n=0,a=0;for(;n<i.length&&a<e.marks.length;){let t=e.marks[a];if(!this.marks[t.type.name]){a++;continue}if(!t.eq(i[n][0])||t.type.spec.spanning===!1)break;n++,a++}for(;n<i.length;)r=i.pop()[1];for(;a<e.marks.length;){let n=e.marks[a++],o=this.serializeMark(n,e.isInline,t);o&&(i.push([n,r]),r.appendChild(o.dom),r=o.contentDOM||o.dom)}}r.appendChild(this.serializeNodeInner(e,t))}),n}serializeNodeInner(e,t){let{dom:n,contentDOM:r}=az(tz(t),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw RangeError(`Content hole not allowed in a leaf node spec`);this.serializeFragment(e.content,t,r)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&az(tz(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return az(e,t,n,r)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new e(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(e){let t=ez(e.nodes);return t.text||=e=>e.text,t}static marksFromSchema(e){return ez(e.marks)}};function ez(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function tz(e){return e.document||window.document}var nz=new WeakMap;function rz(e){let t=nz.get(e);return t===void 0&&nz.set(e,t=iz(e)),t}function iz(e){let t=null;function n(e){if(e&&typeof e==`object`)if(Array.isArray(e))if(typeof e[0]==`string`)t||=[],t.push(e);else for(let t=0;t<e.length;t++)n(e[t]);else for(let t in e)n(e[t])}return n(e),t}function az(e,t,n,r){if(typeof t==`string`)return{dom:e.createTextNode(t)};if(t.nodeType!=null)return{dom:t};if(t.dom&&t.dom.nodeType!=null)return t;let i=t[0],a;if(typeof i!=`string`)throw RangeError(`Invalid array passed to renderSpec`);if(r&&(a=rz(r))&&a.indexOf(t)>-1)throw RangeError(`Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.`);let o=i.indexOf(` `);o>0&&(n=i.slice(0,o),i=i.slice(o+1));let s,c=n?e.createElementNS(n,i):e.createElement(i),l=t[1],u=1;if(l&&typeof l==`object`&&l.nodeType==null&&!Array.isArray(l)){u=2;for(let e in l)if(l[e]!=null){let t=e.indexOf(` `);t>0?c.setAttributeNS(e.slice(0,t),e.slice(t+1),l[e]):e==`style`&&c.style?c.style.cssText=l[e]:c.setAttribute(e,l[e])}}for(let i=u;i<t.length;i++){let a=t[i];if(a===0){if(i<t.length-1||i>u)throw RangeError(`Content hole must be the only child of its parent node`);return{dom:c,contentDOM:c}}else{let{dom:t,contentDOM:i}=az(e,a,n,r);if(c.appendChild(t),i){if(s)throw RangeError(`Multiple content holes`);s=i}}}return{dom:c,contentDOM:s}}var oz=65535,sz=2**16;function cz(e,t){return e+t*sz}function lz(e){return e&oz}function uz(e){return(e-(e&oz))/sz}var dz=1,fz=2,pz=4,mz=8,hz=class{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&mz)>0}get deletedBefore(){return(this.delInfo&(dz|pz))>0}get deletedAfter(){return(this.delInfo&(fz|pz))>0}get deletedAcross(){return(this.delInfo&pz)>0}},gz=class e{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&e.empty)return e.empty}recover(e){let t=0,n=lz(e);if(!this.inverted)for(let e=0;e<n;e++)t+=this.ranges[e*3+2]-this.ranges[e*3+1];return this.ranges[n*3]+t+uz(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,i=this.inverted?2:1,a=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let s=this.ranges[o]-(this.inverted?r:0);if(s>e)break;let c=this.ranges[o+i],l=this.ranges[o+a],u=s+c;if(e<=u){let i=c?e==s?-1:e==u?1:t:t,a=s+r+(i<0?0:l);if(n)return a;let d=e==(t<0?s:u)?null:cz(o/3,e-s),f=e==s?fz:e==u?dz:pz;return(t<0?e!=s:e!=u)&&(f|=mz),new hz(a,f,d)}r+=l-c}return n?e+r:new hz(e+r,0,null)}touches(e,t){let n=0,r=lz(t),i=this.inverted?2:1,a=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let o=this.ranges[t]-(this.inverted?n:0);if(o>e)break;let s=this.ranges[t+i];if(e<=o+s&&t==r*3)return!0;n+=this.ranges[t+a]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let a=this.ranges[r],o=a-(this.inverted?i:0),s=a+(this.inverted?0:i),c=this.ranges[r+t],l=this.ranges[r+n];e(o,o+c,s,s+l),i+=l-c}}invert(){return new e(this.ranges,!this.inverted)}toString(){return(this.inverted?`-`:``)+JSON.stringify(this.ranges)}static offset(t){return t==0?e.empty:new e(t<0?[0,-t,0]:[0,0,t])}};gz.empty=new gz([]);var _z=class e{constructor(e,t,n=0,r=e?e.length:0){this.mirror=t,this.from=n,this.to=r,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(t=0,n=this.maps.length){return new e(this._maps,this.mirror,t,n)}appendMap(e,t){this.ownData||=(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),!0),this.to=this._maps.push(e),t!=null&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,n=this._maps.length;t<e._maps.length;t++){let r=e.getMirror(t);this.appendMap(e._maps[t],r!=null&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||=[],this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this._maps.length+e._maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e._maps[t].invert(),r!=null&&r>t?n-r-1:void 0)}}invert(){let t=new e;return t.appendMappingInverted(this),t}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this._maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let n=this.from;n<this.to;n++){let i=this._maps[n].mapResult(e,t);if(i.recover!=null){let t=this.getMirror(n);if(t!=null&&t>n&&t<this.to){n=t,e=this._maps[t].recover(i.recover);continue}}r|=i.delInfo,e=i.pos}return n?e:new hz(e,r,null)}},vz=Object.create(null),yz=class{getMap(){return gz.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError(`Invalid input for Step.fromJSON`);let n=vz[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in vz)throw RangeError(`Duplicate use of step JSON ID `+e);return vz[e]=t,t.prototype.jsonID=e,t}},bz=class e{constructor(e,t){this.doc=e,this.failed=t}static ok(t){return new e(t,null)}static fail(t){return new e(null,t)}static fromReplace(t,n,r,i){try{return e.ok(t.replace(n,r,i))}catch(t){if(t instanceof GL)return e.fail(t.message);throw t}}};function xz(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let a=e.child(i);a.content.size&&(a=a.copy(xz(a.content,t,a))),a.isInline&&(a=t(a,n,i)),r.push(a)}return Z.fromArray(r)}var Sz=class e extends yz{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),i=new KL(xz(t.content,(e,t)=>!e.isAtom||!t.type.allowsMarkType(this.mark.type)?e:e.mark(this.mark.addToSet(e.marks)),r),t.openStart,t.openEnd);return bz.fromReplace(e,this.from,this.to,i)}invert(){return new Cz(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`addMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for AddMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};yz.jsonID(`addMark`,Sz);var Cz=class e extends yz{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new KL(xz(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return bz.fromReplace(e,this.from,this.to,n)}invert(){return new Sz(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`removeMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for RemoveMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};yz.jsonID(`removeMark`,Cz);var wz=class e extends yz{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return bz.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return bz.fromReplace(e,this.pos,this.pos+1,new KL(Z.from(n),0,+!t.isLeaf))}invert(t){let n=t.nodeAt(this.pos);if(n){let t=this.mark.addToSet(n.marks);if(t.length==n.marks.length){for(let r=0;r<n.marks.length;r++)if(!n.marks[r].isInSet(t))return new e(this.pos,n.marks[r]);return new e(this.pos,this.mark)}}return new Tz(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`addNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for AddNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};yz.jsonID(`addNodeMark`,wz);var Tz=class e extends yz{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return bz.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return bz.fromReplace(e,this.pos,this.pos+1,new KL(Z.from(n),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new wz(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`removeNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for RemoveNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};yz.jsonID(`removeNodeMark`,Tz);var Ez=class e extends yz{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&Oz(e,this.from,this.to)?bz.fail(`Structure replace would overwrite content`):bz.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new gz([this.from,this.to-this.from,this.slice.size])}invert(t){return new e(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let n=t.mapResult(this.to,-1),r=this.from==this.to&&e.MAP_BIAS<0?n:t.mapResult(this.from,1);return r.deletedAcross&&n.deletedAcross?null:new e(r.pos,Math.max(r.pos,n.pos),this.slice,this.structure)}merge(t){if(!(t instanceof e)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let n=this.slice.size+t.slice.size==0?KL.empty:new KL(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new e(this.from,this.to+(t.to-t.from),n,this.structure)}else if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let n=this.slice.size+t.slice.size==0?KL.empty:new KL(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new e(t.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:`replace`,from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for ReplaceStep.fromJSON`);return new e(n.from,n.to,KL.fromJSON(t,n.slice),!!n.structure)}};Ez.MAP_BIAS=1,yz.jsonID(`replace`,Ez);var Dz=class e extends yz{constructor(e,t,n,r,i,a,o=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=a,this.structure=o}apply(e){if(this.structure&&(Oz(e,this.from,this.gapFrom)||Oz(e,this.gapTo,this.to)))return bz.fail(`Structure gap-replace would overwrite content`);let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return bz.fail(`Gap is not a flat range`);let n=this.slice.insertAt(this.insert,t.content);return n?bz.fromReplace(e,this.from,this.to,n):bz.fail(`Content does not fit in gap`)}getMap(){return new gz([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let n=this.gapTo-this.gapFrom;return new e(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:t.map(this.gapFrom,-1),a=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||a>r.pos?null:new e(n.pos,r.pos,i,a,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:`replaceAround`,from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`||typeof n.gapFrom!=`number`||typeof n.gapTo!=`number`||typeof n.insert!=`number`)throw RangeError(`Invalid input for ReplaceAroundStep.fromJSON`);return new e(n.from,n.to,n.gapFrom,n.gapTo,KL.fromJSON(t,n.slice),n.insert,!!n.structure)}};yz.jsonID(`replaceAround`,Dz);function Oz(e,t,n){let r=e.resolve(t),i=n-t,a=r.depth;for(;i>0&&a>0&&r.indexAfter(a)==r.node(a).childCount;)a--,i--;if(i>0){let e=r.node(a).maybeChild(r.indexAfter(a));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function kz(e,t,n,r){let i=[],a=[],o,s;e.doc.nodesBetween(t,n,(e,c,l)=>{if(!e.isInline)return;let u=e.marks;if(!r.isInSet(u)&&l.type.allowsMarkType(r.type)){let l=Math.max(c,t),d=Math.min(c+e.nodeSize,n),f=r.addToSet(u);for(let e=0;e<u.length;e++)u[e].isInSet(f)||(o&&o.to==l&&o.mark.eq(u[e])?o.to=d:i.push(o=new Cz(l,d,u[e])));s&&s.to==l?s.to=d:a.push(s=new Sz(l,d,r))}}),i.forEach(t=>e.step(t)),a.forEach(t=>e.step(t))}function Az(e,t,n,r){let i=[],a=0;e.doc.nodesBetween(t,n,(e,o)=>{if(!e.isInline)return;a++;let s=null;if(r instanceof PR){let t=e.marks,n;for(;n=r.isInSet(t);)(s||=[]).push(n),t=n.removeFromSet(t)}else r?r.isInSet(e.marks)&&(s=[r]):s=e.marks;if(s&&s.length){let r=Math.min(o+e.nodeSize,n);for(let e=0;e<s.length;e++){let n=s[e],c;for(let e=0;e<i.length;e++){let t=i[e];t.step==a-1&&n.eq(i[e].style)&&(c=t)}c?(c.to=r,c.step=a):i.push({style:n,from:Math.max(o,t),to:r,step:a})}}}),i.forEach(t=>e.step(new Cz(t.from,t.to,t.style)))}function jz(e,t,n,r=n.contentMatch,i=!0){let a=e.doc.nodeAt(t),o=[],s=t+1;for(let t=0;t<a.childCount;t++){let c=a.child(t),l=s+c.nodeSize,u=r.matchType(c.type);if(!u)o.push(new Ez(s,l,KL.empty));else{r=u;for(let t=0;t<c.marks.length;t++)n.allowsMarkType(c.marks[t].type)||e.step(new Cz(s,l,c.marks[t]));if(i&&c.isText&&n.whitespace!=`pre`){let e,t=/\r?\n|\r/g,r;for(;e=t.exec(c.text);)r||=new KL(Z.from(n.schema.text(` `,n.allowedMarks(c.marks))),0,0),o.push(new Ez(s+e.index,s+e.index+e[0].length,r))}}s=l}if(!r.validEnd){let t=r.fillBefore(Z.empty,!0);e.replace(s,s,new KL(t,0,0))}for(let t=o.length-1;t>=0;t--)e.step(o[t])}function Mz(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function Nz(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth,r=0,i=0;;--n){let a=e.$from.node(n),o=e.$from.index(n)+r,s=e.$to.indexAfter(n)-i;if(n<e.depth&&a.canReplace(o,s,t))return n;if(n==0||a.type.spec.isolating||!Mz(a,o,s))break;o&&(r=1),s<a.childCount&&(i=1)}return null}function Pz(e,t,n){let{$from:r,$to:i,depth:a}=t,o=r.before(a+1),s=i.after(a+1),c=o,l=s,u=Z.empty,d=0;for(let e=a,t=!1;e>n;e--)t||r.index(e)>0?(t=!0,u=Z.from(r.node(e).copy(u)),d++):c--;let f=Z.empty,p=0;for(let e=a,t=!1;e>n;e--)t||i.after(e+1)<i.end(e)?(t=!0,f=Z.from(i.node(e).copy(f)),p++):l++;e.step(new Dz(c,l,o,s,new KL(u.append(f),d,p),u.size-d,!0))}function Fz(e,t,n=null,r=e){let i=Lz(e,t),a=i&&Rz(r,t);return a?i.map(Iz).concat({type:t,attrs:n}).concat(a.map(Iz)):null}function Iz(e){return{type:e,attrs:null}}function Lz(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.contentMatchAt(r).findWrapping(t);if(!a)return null;let o=a.length?a[0]:t;return n.canReplaceWith(r,i,o)?a:null}function Rz(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.child(r),o=t.contentMatch.findWrapping(a.type);if(!o)return null;let s=(o.length?o[o.length-1]:t).contentMatch;for(let e=r;s&&e<i;e++)s=s.matchType(n.child(e).type);return!s||!s.validEnd?null:o}function zz(e,t,n){let r=Z.empty;for(let e=n.length-1;e>=0;e--){if(r.size){let t=n[e].type.contentMatch.matchFragment(r);if(!t||!t.validEnd)throw RangeError(`Wrapper type given to Transform.wrap does not form valid content of its parent wrapper`)}r=Z.from(n[e].type.create(n[e].attrs,r))}let i=t.start,a=t.end;e.step(new Dz(i,a,i,a,new KL(r,0,0),n.length,!0))}function Bz(e,t,n,r,i){if(!r.isTextblock)throw RangeError(`Type given to setBlockType should be a textblock`);let a=e.steps.length;e.doc.nodesBetween(t,n,(t,n)=>{let o=typeof i==`function`?i(t):i;if(t.isTextblock&&!t.hasMarkup(r,o)&&Uz(e.doc,e.mapping.slice(a).map(n),r)){let i=null;if(r.schema.linebreakReplacement){let e=r.whitespace==`pre`,t=!!r.contentMatch.matchType(r.schema.linebreakReplacement);e&&!t?i=!1:!e&&t&&(i=!0)}i===!1&&Hz(e,t,n,a),jz(e,e.mapping.slice(a).map(n,1),r,void 0,i===null);let s=e.mapping.slice(a),c=s.map(n,1),l=s.map(n+t.nodeSize,1);return e.step(new Dz(c,l,c+1,l-1,new KL(Z.from(r.create(o,null,t.marks)),0,0),1,!0)),i===!0&&Vz(e,t,n,a),!1}})}function Vz(e,t,n,r){t.forEach((i,a)=>{if(i.isText){let o,s=/\r?\n|\r/g;for(;o=s.exec(i.text);){let i=e.mapping.slice(r).map(n+1+a+o.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function Hz(e,t,n,r){t.forEach((i,a)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(r).map(n+1+a);e.replaceWith(i,i+1,t.type.schema.text(`
279
- `))}})}function Uz(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function Wz(e,t,n,r,i){let a=e.doc.nodeAt(t);if(!a)throw RangeError(`No node at given position`);n||=a.type;let o=n.create(r,null,i||a.marks);if(a.isLeaf)return e.replaceWith(t,t+a.nodeSize,o);if(!n.validContent(a.content))throw RangeError(`Invalid content for node type `+n.name);e.step(new Dz(t,t+a.nodeSize,t+1,t+a.nodeSize-1,new KL(Z.from(o),0,0),1,!0))}function Gz(e,t,n=1,r){let i=e.resolve(t),a=i.depth-n,o=r&&r[r.length-1]||i.parent;if(a<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let e=i.depth-1,t=n-2;e>a;e--,t--){let n=i.node(e),a=i.index(e);if(n.type.spec.isolating)return!1;let o=n.content.cutByIndex(a,n.childCount),s=r&&r[t+1];s&&(o=o.replaceChild(0,s.type.create(s.attrs)));let c=r&&r[t]||n;if(!n.canReplace(a+1,n.childCount)||!c.type.validContent(o))return!1}let s=i.indexAfter(a),c=r&&r[0];return i.node(a).canReplaceWith(s,s,c?c.type:i.node(a+1).type)}function Kz(e,t,n=1,r){let i=e.doc.resolve(t),a=Z.empty,o=Z.empty;for(let e=i.depth,t=i.depth-n,s=n-1;e>t;e--,s--){a=Z.from(i.node(e).copy(a));let t=r&&r[s];o=Z.from(t?t.type.create(t.attrs,o):i.node(e).copy(o))}e.step(new Ez(t,t,new KL(a.append(o),n,n),!0))}function qz(e,t){let n=e.resolve(t),r=n.index();return Yz(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function Jz(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:r}=e.type.schema;for(let i=0;i<t.childCount;i++){let a=t.child(i),o=a.type==r?e.type.schema.nodes.text:a.type;if(n=n.matchType(o),!n||!e.type.allowsMarks(a.marks))return!1}return n.validEnd}function Yz(e,t){return!!(e&&t&&!e.isLeaf&&Jz(e,t))}function Xz(e,t,n=-1){let r=e.resolve(t);for(let e=r.depth;;e--){let i,a,o=r.index(e);if(e==r.depth?(i=r.nodeBefore,a=r.nodeAfter):n>0?(i=r.node(e+1),o++,a=r.node(e).maybeChild(o)):(i=r.node(e).maybeChild(o-1),a=r.node(e+1)),i&&!i.isTextblock&&Yz(i,a)&&r.node(e).canReplace(o,o+1))return t;if(e==0)break;t=n<0?r.before(e):r.after(e)}}function Zz(e,t,n){let r=null,{linebreakReplacement:i}=e.doc.type.schema,a=e.doc.resolve(t-n),o=a.node().type;if(i&&o.inlineContent){let e=o.whitespace==`pre`,t=!!o.contentMatch.matchType(i);e&&!t?r=!1:!e&&t&&(r=!0)}let s=e.steps.length;if(r===!1){let r=e.doc.resolve(t+n);Hz(e,r.node(),r.before(),s)}o.inlineContent&&jz(e,t+n-1,o,a.node().contentMatchAt(a.index()),r==null);let c=e.mapping.slice(s),l=c.map(t-n);if(e.step(new Ez(l,c.map(t+n,-1),KL.empty,!0)),r===!0){let t=e.doc.resolve(l);Vz(e,t.node(),t.before(),e.steps.length)}return e}function Qz(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(r.parentOffset==0)for(let e=r.depth-1;e>=0;e--){let t=r.index(e);if(r.node(e).canReplaceWith(t,t,n))return r.before(e+1);if(t>0)return null}if(r.parentOffset==r.parent.content.size)for(let e=r.depth-1;e>=0;e--){let t=r.indexAfter(e);if(r.node(e).canReplaceWith(t,t,n))return r.after(e+1);if(t<r.node(e).childCount)return null}return null}function $z(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let i=n.content;for(let e=0;e<n.openStart;e++)i=i.firstChild.content;for(let e=1;e<=(n.openStart==0&&n.size?2:1);e++)for(let t=r.depth;t>=0;t--){let n=t==r.depth?0:r.pos<=(r.start(t+1)+r.end(t+1))/2?-1:1,a=r.index(t)+ +(n>0),o=r.node(t),s=!1;if(e==1)s=o.canReplace(a,a,i);else{let e=o.contentMatchAt(a).findWrapping(i.firstChild.type);s=e&&o.canReplaceWith(a,a,e[0])}if(s)return n==0?r.pos:n<0?r.before(t+1):r.after(t+1)}return null}function eB(e,t,n=t,r=KL.empty){if(t==n&&!r.size)return null;let i=e.resolve(t),a=e.resolve(n);return tB(i,a,r)?new Ez(t,n,r):new nB(i,a,r).fit()}function tB(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}var nB=class{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=Z.empty;for(let t=0;t<=e.depth;t++){let n=e.node(t);this.frontier.push({type:n.type,match:n.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=Z.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,r=this.close(e<0?this.$to:n.doc.resolve(e));if(!r)return null;let i=this.placed,a=n.depth,o=r.depth;for(;a&&o&&i.childCount==1;)i=i.firstChild.content,a--,o--;let s=new KL(i,a,o);return e>-1?new Dz(n.pos,e,this.$to.pos,this.$to.end(),s,t):s.size||n.pos!=this.$to.pos?new Ez(n.pos,r.pos,s):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){let i=t.firstChild;if(t.childCount>1&&(r=0),i.type.spec.isolating&&r<=n){e=n;break}t=i.content}for(let t=1;t<=2;t++)for(let n=t==1?e:this.unplaced.openStart;n>=0;n--){let e,r=null;n?(r=aB(this.unplaced.content,n-1).firstChild,e=r.content):e=this.unplaced.content;let i=e.firstChild;for(let e=this.depth;e>=0;e--){let{type:a,match:o}=this.frontier[e],s,c=null;if(t==1&&(i?o.matchType(i.type)||(c=o.fillBefore(Z.from(i),!1)):r&&a.compatibleContent(r.type)))return{sliceDepth:n,frontierDepth:e,parent:r,inject:c};if(t==2&&i&&(s=o.findWrapping(i.type)))return{sliceDepth:n,frontierDepth:e,parent:r,wrap:s};if(r&&o.matchType(r.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=aB(e,t);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new KL(e,t+1,Math.max(n,r.size+t>=e.size-n?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=aB(e,t);if(r.childCount<=1&&t>0){let i=e.size-t<=t+r.size;this.unplaced=new KL(rB(e,t-1,1),t-1,i?t-1:n)}else this.unplaced=new KL(rB(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:r,wrap:i}){for(;this.depth>t;)this.closeFrontierNode();if(i)for(let e=0;e<i.length;e++)this.openFrontierNode(i[e]);let a=this.unplaced,o=n?n.content:a.content,s=a.openStart-e,c=0,l=[],{match:u,type:d}=this.frontier[t];if(r){for(let e=0;e<r.childCount;e++)l.push(r.child(e));u=u.matchFragment(r)}let f=o.size+e-(a.content.size-a.openEnd);for(;c<o.childCount;){let e=o.child(c),t=u.matchType(e.type);if(!t)break;c++,(c>1||s==0||e.content.size)&&(u=t,l.push(oB(e.mark(d.allowedMarks(e.marks)),c==1?s:0,c==o.childCount?f:-1)))}let p=c==o.childCount;p||(f=-1),this.placed=iB(this.placed,t,Z.from(l)),this.frontier[t].match=u,p&&f<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=o;e<f;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=p?e==0?KL.empty:new KL(rB(a.content,e-1,1),e-1,f<0?a.openEnd:e-1):new KL(rB(a.content,e,c),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!sB(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return-1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){scan:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),a=sB(e,t,r,n,i);if(a){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],i=sB(e,n,r,t,!0);if(!i||i.childCount)continue scan}return{depth:t,fit:a,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=iB(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return e}openFrontierNode(e,t=null,n){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=iB(this.placed,this.depth,Z.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(Z.empty,!0);e.childCount&&(this.placed=iB(this.placed,this.frontier.length,e))}};function rB(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(rB(e.firstChild.content,t-1,n)))}function iB(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(iB(e.lastChild.content,t-1,n)))}function aB(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function oB(e,t,n){if(t<=0)return e;let r=e.content;return t>1&&(r=r.replaceChild(0,oB(r.firstChild,t-1,r.childCount==1?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(Z.empty,!0)))),e.copy(r)}function sB(e,t,n,r,i){let a=e.node(t),o=i?e.indexAfter(t):e.index(t);if(o==a.childCount&&!n.compatibleContent(a.type))return null;let s=r.fillBefore(a.content,!0,o);return s&&!cB(n,a.content,o)?s:null}function cB(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}function lB(e){return e.spec.defining||e.spec.definingForContent}function uB(e,t,n,r){if(!r.size)return e.deleteRange(t,n);let i=e.doc.resolve(t),a=e.doc.resolve(n);if(tB(i,a,r))return e.step(new Ez(t,n,r));let o=mB(i,a);o[o.length-1]==0&&o.pop();let s=-(i.depth+1);o.unshift(s);for(let e=i.depth,t=i.pos-1;e>0;e--,t--){let n=i.node(e).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;o.indexOf(e)>-1?s=e:i.before(e)==t&&o.splice(1,0,-e)}let c=o.indexOf(s),l=[],u=r.openStart;for(let e=r.content,t=0;;t++){let n=e.firstChild;if(l.push(n),t==r.openStart)break;e=n.content}for(let e=u-1;e>=0;e--){let t=l[e],n=lB(t.type);if(n&&!t.sameMarkup(i.node(Math.abs(s)-1)))u=e;else if(n||!t.type.isTextblock)break}for(let t=r.openStart;t>=0;t--){let s=(t+u+1)%(r.openStart+1),d=l[s];if(d)for(let t=0;t<o.length;t++){let l=o[(t+c)%o.length],u=!0;l<0&&(u=!1,l=-l);let f=i.node(l-1),p=i.index(l-1);if(f.canReplaceWith(p,p,d.type,d.marks))return e.replace(i.before(l),u?a.after(l):n,new KL(dB(r.content,0,r.openStart,s),s,r.openEnd))}}let d=e.steps.length;for(let s=o.length-1;s>=0&&(e.replace(t,n,r),!(e.steps.length>d));s--){let e=o[s];e<0||(t=i.before(e),n=a.after(e))}}function dB(e,t,n,r,i){if(t<n){let i=e.firstChild;e=e.replaceChild(0,i.copy(dB(i.content,t+1,n,r,i)))}if(t>r){let t=i.contentMatchAt(0),n=t.fillBefore(e).append(e);e=n.append(t.matchFragment(n).fillBefore(Z.empty,!0))}return e}function fB(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let i=Qz(e.doc,t,r.type);i!=null&&(t=n=i)}e.replaceRange(t,n,new KL(Z.from(r),0,0))}function pB(e,t,n){let r=e.doc.resolve(t),i=e.doc.resolve(n);if(r.parent.isTextblock&&i.parent.isTextblock&&r.start()!=i.start()&&r.parentOffset==0&&i.parentOffset==0){let a=r.sharedDepth(n),o=!1;for(let e=r.depth;e>a;e--)r.node(e).type.spec.isolating&&(o=!0);for(let e=i.depth;e>a;e--)i.node(e).type.spec.isolating&&(o=!0);if(!o){for(let e=r.depth;e>0&&t==r.start(e);e--)t=r.before(e);for(let e=i.depth;e>0&&n==i.start(e);e--)n=i.before(e);r=e.doc.resolve(t),i=e.doc.resolve(n)}}let a=mB(r,i);for(let t=0;t<a.length;t++){let n=a[t],o=t==a.length-1;if(o&&n==0||r.node(n).type.contentMatch.validEnd)return e.delete(r.start(n),i.end(n));if(n>0&&(o||r.node(n-1).canReplace(r.index(n-1),i.indexAfter(n-1))))return e.delete(r.before(n),i.after(n))}for(let a=1;a<=r.depth&&a<=i.depth;a++)if(t-r.start(a)==r.depth-a&&n>r.end(a)&&i.end(a)-n!=i.depth-a&&r.start(a-1)==i.start(a-1)&&r.node(a-1).canReplace(r.index(a-1),i.index(a-1)))return e.delete(r.before(a),n);e.delete(t,n)}function mB(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let i=r;i>=0;i--){let r=e.start(i);if(r<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(r==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==r-1)&&n.push(i)}return n}var hB=class e extends yz{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return bz.fail(`No node at attribute step's position`);let n=Object.create(null);for(let e in t.attrs)n[e]=t.attrs[e];n[this.attr]=this.value;let r=t.type.create(n,null,t.marks);return bz.fromReplace(e,this.pos,this.pos+1,new KL(Z.from(r),0,+!t.isLeaf))}getMap(){return gz.empty}invert(t){return new e(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.attr,this.value)}toJSON(){return{stepType:`attr`,pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!=`number`||typeof n.attr!=`string`)throw RangeError(`Invalid input for AttrStep.fromJSON`);return new e(n.pos,n.attr,n.value)}};yz.jsonID(`attr`,hB);var gB=class e extends yz{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let n in e.attrs)t[n]=e.attrs[n];t[this.attr]=this.value;let n=e.type.create(t,e.content,e.marks);return bz.ok(n)}getMap(){return gz.empty}invert(t){return new e(this.attr,t.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:`docAttr`,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.attr!=`string`)throw RangeError(`Invalid input for DocAttrStep.fromJSON`);return new e(n.attr,n.value)}};yz.jsonID(`docAttr`,gB);var _B=class extends Error{};_B=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},_B.prototype=Object.create(Error.prototype),_B.prototype.constructor=_B,_B.prototype.name=`TransformError`;var vB=class{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new _z}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new _B(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,t=-1e9;for(let n=0;n<this.mapping.maps.length;n++){let r=this.mapping.maps[n];n&&(e=r.map(e,1),t=r.map(t,-1)),r.forEach((n,r,i,a)=>{e=Math.min(e,i),t=Math.max(t,a)})}return e==1e9?null:{from:e,to:t}}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,n=KL.empty){let r=eB(this.doc,e,t,n);return r&&this.step(r),this}replaceWith(e,t,n){return this.replace(e,t,new KL(Z.from(n),0,0))}delete(e,t){return this.replace(e,t,KL.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return uB(this,e,t,n),this}replaceRangeWith(e,t,n){return fB(this,e,t,n),this}deleteRange(e,t){return pB(this,e,t),this}lift(e,t){return Pz(this,e,t),this}join(e,t=1){return Zz(this,e,t),this}wrap(e,t){return zz(this,e,t),this}setBlockType(e,t=e,n,r=null){return Bz(this,e,t,n,r),this}setNodeMarkup(e,t,n=null,r){return Wz(this,e,t,n,r),this}setNodeAttribute(e,t,n){return this.step(new hB(e,t,n)),this}setDocAttribute(e,t){return this.step(new gB(e,t)),this}addNodeMark(e,t){return this.step(new wz(e,t)),this}removeNodeMark(e,t){let n=this.doc.nodeAt(e);if(!n)throw RangeError(`No node at position `+e);if(t instanceof WL)t.isInSet(n.marks)&&this.step(new Tz(e,t));else{let r=n.marks,i,a=[];for(;i=t.isInSet(r);)a.push(new Tz(e,i)),r=i.removeFromSet(r);for(let e=a.length-1;e>=0;e--)this.step(a[e])}return this}split(e,t=1,n){return Kz(this,e,t,n),this}addMark(e,t,n){return kz(this,e,t,n),this}removeMark(e,t,n){return Az(this,e,t,n),this}clearIncompatible(e,t,n){return jz(this,e,t,n),this}},yB=Object.create(null),bB=class{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new xB(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=KL.empty){let n=t.content.lastChild,r=null;for(let e=0;e<t.openEnd;e++)r=n,n=n.lastChild;let i=e.steps.length,a=this.ranges;for(let o=0;o<a.length;o++){let{$from:s,$to:c}=a[o],l=e.mapping.slice(i);e.replaceRange(l.map(s.pos),l.map(c.pos),o?KL.empty:t),o==0&&jB(e,i,(n?n.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:a,$to:o}=r[i],s=e.mapping.slice(n),c=s.map(a.pos),l=s.map(o.pos);i?e.deleteRange(c,l):(e.replaceRangeWith(c,l,t),jB(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new wB(e):AB(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(let r=e.depth-1;r>=0;r--){let i=t<0?AB(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):AB(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,t,n);if(i)return i}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new OB(e.node(0))}static atStart(e){return AB(e,e,0,0,1)||new OB(e)}static atEnd(e){return AB(e,e,e.content.size,e.childCount,-1)||new OB(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError(`Invalid input for Selection.fromJSON`);let n=yB[t.type];if(!n)throw RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in yB)throw RangeError(`Duplicate use of selection JSON ID `+e);return yB[e]=t,t.prototype.jsonID=e,t}getBookmark(){return wB.between(this.$anchor,this.$head).getBookmark()}};bB.prototype.visible=!0;var xB=class{constructor(e,t){this.$from=e,this.$to=t}},SB=!1;function CB(e){!SB&&!e.parent.inlineContent&&(SB=!0,console.warn(`TextSelection endpoint not pointing into a node with inline content (`+e.parent.type.name+`)`))}var wB=class e extends bB{constructor(e,t=e){CB(e),CB(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let r=t.resolve(n.map(this.head));if(!r.parent.inlineContent)return bB.near(r);let i=t.resolve(n.map(this.anchor));return new e(i.parent.inlineContent?i:r,r)}replace(e,t=KL.empty){if(super.replace(e,t),t==KL.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(t){return t instanceof e&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new TB(this.anchor,this.head)}toJSON(){return{type:`text`,anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!=`number`||typeof n.head!=`number`)throw RangeError(`Invalid input for TextSelection.fromJSON`);return new e(t.resolve(n.anchor),t.resolve(n.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(t,n,r){let i=t.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let e=bB.findFrom(n,r,!0)||bB.findFrom(n,-r,!0);if(e)n=e.$head;else return bB.near(n,r)}return t.parent.inlineContent||(i==0?t=n:(t=(bB.findFrom(t,-r,!0)||bB.findFrom(t,r,!0)).$anchor,t.pos<n.pos!=i<0&&(t=n))),new e(t,n)}};bB.jsonID(`text`,wB);var TB=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){return wB.between(e.resolve(this.anchor),e.resolve(this.head))}},EB=class e extends bB{constructor(e){let t=e.nodeAfter,n=e.node(0).resolve(e.pos+t.nodeSize);super(e,n),this.node=t}map(t,n){let{deleted:r,pos:i}=n.mapResult(this.anchor),a=t.resolve(i);return r?bB.near(a):new e(a)}content(){return new KL(Z.from(this.node),0,0)}eq(t){return t instanceof e&&t.anchor==this.anchor}toJSON(){return{type:`node`,anchor:this.anchor}}getBookmark(){return new DB(this.anchor)}static fromJSON(t,n){if(typeof n.anchor!=`number`)throw RangeError(`Invalid input for NodeSelection.fromJSON`);return new e(t.resolve(n.anchor))}static create(t,n){return new e(t.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}};EB.prototype.visible=!1,bB.jsonID(`node`,EB);var DB=class e{constructor(e){this.anchor=e}map(t){let{deleted:n,pos:r}=t.mapResult(this.anchor);return n?new TB(r,r):new e(r)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&EB.isSelectable(n)?new EB(t):bB.near(t)}},OB=class e extends bB{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=KL.empty){if(t==KL.empty){e.delete(0,e.doc.content.size);let t=bB.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:`all`}}static fromJSON(t){return new e(t)}map(t){return new e(t)}eq(t){return t instanceof e}getBookmark(){return kB}};bB.jsonID(`all`,OB);var kB={map(){return this},resolve(e){return new OB(e)}};function AB(e,t,n,r,i,a=!1){if(t.inlineContent)return wB.create(e,n);for(let o=r-(i>0?0:1);i>0?o<t.childCount:o>=0;o+=i){let r=t.child(o);if(!r.isAtom){let t=AB(e,r,n+i,i<0?r.childCount:0,i,a);if(t)return t}else if(!a&&EB.isSelectable(r))return EB.create(e,n-(i<0?r.nodeSize:0));n+=r.nodeSize*i}return null}function jB(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof Ez||i instanceof Dz))return;let a=e.mapping.maps[r],o;a.forEach((e,t,n,r)=>{o??=r}),e.setSelection(bB.near(e.doc.resolve(o),n))}function MB(e,t){return!t||!e?e:e.bind(t)}var NB=class{constructor(e,t,n){this.name=e,this.init=MB(t.init,n),this.apply=MB(t.apply,n)}};new NB(`doc`,{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new NB(`selection`,{init(e,t){return e.selection||bB.atStart(t.doc)},apply(e){return e.selection}}),new NB(`storedMarks`,{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new NB(`scrollToSelection`,{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}});function PB(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):r==`handleDOMEvents`&&(i=PB(i,t,{})),n[r]=i}return n}var FB=class{constructor(e){this.spec=e,this.props={},e.props&&PB(e.props,this,this.props),this.key=e.key?e.key.key:LB(`plugin`)}getState(e){return e[this.key]}},IB=Object.create(null);function LB(e){return e in IB?e+`$`+ ++IB[e]:(IB[e]=0,e+`$`)}var RB=class{constructor(e=`key`){this.key=LB(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}},zB=(e,t)=>e.selection.empty?!1:(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function BB(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock(`backward`,e):n.parentOffset>0)?null:n}var VB=(e,t,n)=>{let r=BB(e,n);if(!r)return!1;let i=qB(r);if(!i){let n=r.blockRange(),i=n&&Nz(n);return i==null?!1:(t&&t(e.tr.lift(n,i).scrollIntoView()),!0)}let a=i.nodeBefore;if(dV(e,i,t,-1))return!0;if(r.parent.content.size==0&&(GB(a,`end`)||EB.isSelectable(a)))for(let n=r.depth;;n--){let o=eB(e.doc,r.before(n),r.after(n),KL.empty);if(o&&o.slice.size<o.to-o.from){if(t){let n=e.tr.step(o);n.setSelection(GB(a,`end`)?bB.findFrom(n.doc.resolve(n.mapping.map(i.pos,-1)),-1):EB.create(n.doc,i.pos-a.nodeSize)),t(n.scrollIntoView())}return!0}if(n==1||r.node(n-1).childCount>1)break}return a.isAtom&&i.depth==r.depth-1?(t&&t(e.tr.delete(i.pos-a.nodeSize,i.pos).scrollIntoView()),!0):!1},HB=(e,t,n)=>{let r=BB(e,n);if(!r)return!1;let i=qB(r);return i?WB(e,i,t):!1},UB=(e,t,n)=>{let r=JB(e,n);if(!r)return!1;let i=ZB(r);return i?WB(e,i,t):!1};function WB(e,t,n){let r=t.nodeBefore,i=t.pos-1;for(;!r.isTextblock;i--){if(r.type.spec.isolating)return!1;let e=r.lastChild;if(!e)return!1;r=e}let a=t.nodeAfter,o=t.pos+1;for(;!a.isTextblock;o++){if(a.type.spec.isolating)return!1;let e=a.firstChild;if(!e)return!1;a=e}let s=eB(e.doc,i,o,KL.empty);if(!s||s.from!=i||s instanceof Ez&&s.slice.size>=o-i)return!1;if(n){let t=e.tr.step(s);t.setSelection(wB.create(t.doc,i)),n(t.scrollIntoView())}return!0}function GB(e,t,n=!1){for(let r=e;r;r=t==`start`?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}var KB=(e,t,n)=>{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock(`backward`,e):r.parentOffset>0)return!1;a=qB(r)}let o=a&&a.nodeBefore;return!o||!EB.isSelectable(o)?!1:(t&&t(e.tr.setSelection(EB.create(e.doc,a.pos-o.nodeSize)).scrollIntoView()),!0)};function qB(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function JB(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock(`forward`,e):n.parentOffset<n.parent.content.size)?null:n}var YB=(e,t,n)=>{let r=JB(e,n);if(!r)return!1;let i=ZB(r);if(!i)return!1;let a=i.nodeAfter;if(dV(e,i,t,1))return!0;if(r.parent.content.size==0&&(GB(a,`start`)||EB.isSelectable(a))){let n=eB(e.doc,r.before(),r.after(),KL.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(GB(a,`start`)?bB.findFrom(r.doc.resolve(r.mapping.map(i.pos)),1):EB.create(r.doc,r.mapping.map(i.pos))),t(r.scrollIntoView())}return!0}}return a.isAtom&&i.depth==r.depth-1?(t&&t(e.tr.delete(i.pos,i.pos+a.nodeSize).scrollIntoView()),!0):!1},XB=(e,t,n)=>{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock(`forward`,e):r.parentOffset<r.parent.content.size)return!1;a=ZB(r)}let o=a&&a.nodeAfter;return!o||!EB.isSelectable(o)?!1:(t&&t(e.tr.setSelection(EB.create(e.doc,a.pos)).scrollIntoView()),!0)};function ZB(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}var QB=(e,t)=>{let n=e.selection,r=n instanceof EB,i;if(r){if(n.node.isTextblock||!qz(e.doc,n.from))return!1;i=n.from}else if(i=Xz(e.doc,n.from,-1),i==null)return!1;if(t){let n=e.tr.join(i);r&&n.setSelection(EB.create(n.doc,i-e.doc.resolve(i).nodeBefore.nodeSize)),t(n.scrollIntoView())}return!0},$B=(e,t)=>{let n=e.selection,r;if(n instanceof EB){if(n.node.isTextblock||!qz(e.doc,n.to))return!1;r=n.to}else if(r=Xz(e.doc,n.to,1),r==null)return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},eV=(e,t)=>{let{$from:n,$to:r}=e.selection,i=n.blockRange(r),a=i&&Nz(i);return a==null?!1:(t&&t(e.tr.lift(i,a).scrollIntoView()),!0)},tV=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(t&&t(e.tr.insertText(`
280
- `).scrollIntoView()),!0)};function nV(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}var rV=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),a=n.indexAfter(-1),o=nV(i.contentMatchAt(a));if(!o||!i.canReplaceWith(a,a,o))return!1;if(t){let r=n.after(),i=e.tr.replaceWith(r,r,o.createAndFill());i.setSelection(bB.near(i.doc.resolve(r),1)),t(i.scrollIntoView())}return!0},iV=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof OB||r.parent.inlineContent||i.parent.inlineContent)return!1;let a=nV(i.parent.contentMatchAt(i.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){let n=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,o=e.tr.insert(n,a.createAndFill());o.setSelection(wB.create(o.doc,n+1)),t(o.scrollIntoView())}return!0},aV=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let r=n.before();if(Gz(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}let r=n.blockRange(),i=r&&Nz(r);return i==null?!1:(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)};function oV(e){return(t,n)=>{let{$from:r,$to:i}=t.selection;if(t.selection instanceof EB&&t.selection.node.isBlock)return!r.parentOffset||!Gz(t.doc,r.pos)?!1:(n&&n(t.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let a=[],o,s,c=!1,l=!1;for(let t=r.depth;;t--)if(r.node(t).isBlock){c=r.end(t)==r.pos+(r.depth-t),l=r.start(t)==r.pos-(r.depth-t),s=nV(r.node(t-1).contentMatchAt(r.indexAfter(t-1)));let n=e&&e(i.parent,c,r);a.unshift(n||(c&&s?{type:s}:null)),o=t;break}else{if(t==1)return!1;a.unshift(null)}let u=t.tr;(t.selection instanceof wB||t.selection instanceof OB)&&u.deleteSelection();let d=u.mapping.map(r.pos),f=Gz(u.doc,d,a.length,a);if(f||=(a[0]=s?{type:s}:null,Gz(u.doc,d,a.length,a)),!f)return!1;if(u.split(d,a.length,a),!c&&l&&r.node(o).type!=s){let e=u.mapping.map(r.before(o)),t=u.doc.resolve(e);s&&r.node(o-1).canReplaceWith(t.index(),t.index()+1,s)&&u.setNodeMarkup(u.mapping.map(r.before(o)),s)}return n&&n(u.scrollIntoView()),!0}}var sV=oV(),cV=(e,t)=>{let{$from:n,to:r}=e.selection,i,a=n.sharedDepth(r);return a==0?!1:(i=n.before(a),t&&t(e.tr.setSelection(EB.create(e.doc,i))),!0)},lV=(e,t)=>(t&&t(e.tr.setSelection(new OB(e.doc))),!0);function uV(e,t,n){let r=t.nodeBefore,i=t.nodeAfter,a=t.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&t.parent.canReplace(a-1,a)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(a,a+1)||!(i.isTextblock||qz(e.doc,t.pos))?!1:(n&&n(e.tr.join(t.pos).scrollIntoView()),!0)}function dV(e,t,n,r){let i=t.nodeBefore,a=t.nodeAfter,o,s,c=i.type.spec.isolating||a.type.spec.isolating;if(!c&&uV(e,t,n))return!0;let l=!c&&t.parent.canReplace(t.index(),t.index()+1);if(l&&(o=(s=i.contentMatchAt(i.childCount)).findWrapping(a.type))&&s.matchType(o[0]||a.type).validEnd){if(n){let r=t.pos+a.nodeSize,s=Z.empty;for(let e=o.length-1;e>=0;e--)s=Z.from(o[e].create(null,s));s=Z.from(i.copy(s));let c=e.tr.step(new Dz(t.pos-1,r,t.pos,r,new KL(s,1,0),o.length,!0)),l=c.doc.resolve(r+2*o.length);l.nodeAfter&&l.nodeAfter.type==i.type&&qz(c.doc,l.pos)&&c.join(l.pos),n(c.scrollIntoView())}return!0}let u=a.type.spec.isolating||r>0&&c?null:bB.findFrom(t,1),d=u&&u.$from.blockRange(u.$to),f=d&&Nz(d);if(f!=null&&f>=t.depth)return n&&n(e.tr.lift(d,f).scrollIntoView()),!0;if(l&&GB(a,`start`,!0)&&GB(i,`end`)){let r=i,o=[];for(;o.push(r),!r.isTextblock;)r=r.lastChild;let s=a,c=1;for(;!s.isTextblock;s=s.firstChild)c++;if(r.canReplace(r.childCount,r.childCount,s.content)){if(n){let r=Z.empty;for(let e=o.length-1;e>=0;e--)r=Z.from(o[e].copy(r));n(e.tr.step(new Dz(t.pos-o.length,t.pos+a.nodeSize,t.pos+c,t.pos+a.nodeSize-c,new KL(r,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function fV(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,a=i.depth;for(;i.node(a).isInline;){if(!a)return!1;a--}return i.node(a).isTextblock?(n&&n(t.tr.setSelection(wB.create(t.doc,e<0?i.start(a):i.end(a)))),!0):!1}}var pV=fV(-1),mV=fV(1);function hV(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a),s=o&&Fz(o,e,t);return s?(r&&r(n.tr.wrap(o,s).scrollIntoView()),!0):!1}}function gV(e,t=null){return function(n,r){let i=!1;for(let r=0;r<n.selection.ranges.length&&!i;r++){let{$from:{pos:a},$to:{pos:o}}=n.selection.ranges[r];n.doc.nodesBetween(a,o,(r,a)=>{if(i)return!1;if(!(!r.isTextblock||r.hasMarkup(e,t)))if(r.type==e)i=!0;else{let t=n.doc.resolve(a),r=t.index();i=t.parent.canReplaceWith(r,r+1,e)}})}if(!i)return!1;if(r){let i=n.tr;for(let r=0;r<n.selection.ranges.length;r++){let{$from:{pos:a},$to:{pos:o}}=n.selection.ranges[r];i.setBlockType(a,o,e,t)}r(i.scrollIntoView())}return!0}}function _V(...e){return function(t,n,r){for(let i=0;i<e.length;i++)if(e[i](t,n,r))return!0;return!1}}var vV=_V(zB,VB,KB),yV=_V(zB,YB,XB),bV={Enter:_V(tV,iV,aV,sV),"Mod-Enter":rV,Backspace:vV,"Mod-Backspace":vV,"Shift-Backspace":vV,Delete:yV,"Mod-Delete":yV,"Mod-a":lV},xV={"Ctrl-h":bV.Backspace,"Alt-Backspace":bV[`Mod-Backspace`],"Ctrl-d":bV.Delete,"Ctrl-Alt-Backspace":bV[`Mod-Delete`],"Alt-Delete":bV[`Mod-Delete`],"Alt-d":bV[`Mod-Delete`],"Ctrl-a":pV,"Ctrl-e":mV};for(let e in bV)xV[e]=bV[e];typeof navigator<`u`?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<`u`&&os.platform&&os.platform();function SV(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a);if(!o)return!1;let s=r?n.tr:null;return CV(s,o,e,t)?(r&&r(s.scrollIntoView()),!0):!1}}function CV(e,t,n,r=null){let i=!1,a=t,o=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(n)&&t.startIndex==0){if(t.$from.index(t.depth-1)==0)return!1;let e=o.resolve(t.start-2);a=new cR(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new cR(t.$from,o.resolve(t.$to.end(t.depth)),t.depth)),i=!0}let s=Fz(a,n,r,t);return s?(e&&wV(e,t,s,i,n),!0):!1}function wV(e,t,n,r,i){let a=Z.empty;for(let e=n.length-1;e>=0;e--)a=Z.from(n[e].type.create(n[e].attrs,a));e.step(new Dz(t.start-(r?2:0),t.end,t.start,t.end,new KL(a,0,0),n.length,!0));let o=0;for(let e=0;e<n.length;e++)n[e].type==i&&(o=e+1);let s=n.length-o,c=t.start+n.length-(r?2:0),l=t.parent;for(let n=t.startIndex,r=t.endIndex,i=!0;n<r;n++,i=!1)!i&&Gz(e.doc,c,s)&&(e.split(c,s),c+=2*s),c+=l.child(n).nodeSize;return e}function TV(e){return function(t,n){let{$from:r,$to:i}=t.selection,a=r.blockRange(i,t=>t.childCount>0&&t.firstChild.type==e);return a?n?r.node(a.depth-1).type==e?EV(t,n,e,a):DV(t,n,a):!0:!1}}function EV(e,t,n,r){let i=e.tr,a=r.end,o=r.$to.end(r.depth);a<o&&(i.step(new Dz(a-1,o,a,o,new KL(Z.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new cR(i.doc.resolve(r.$from.pos),i.doc.resolve(o),r.depth));let s=Nz(r);if(s==null)return!1;i.lift(r,s);let c=i.doc.resolve(i.mapping.map(a,-1)-1);return qz(i.doc,c.pos)&&c.nodeBefore.type==c.nodeAfter.type&&i.join(c.pos),t(i.scrollIntoView()),!0}function DV(e,t,n){let r=e.tr,i=n.parent;for(let e=n.end,t=n.endIndex-1,a=n.startIndex;t>a;t--)e-=i.child(t).nodeSize,r.delete(e-1,e+1);let a=r.doc.resolve(n.start),o=a.nodeAfter;if(r.mapping.map(n.end)!=n.start+a.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,c=n.endIndex==i.childCount,l=a.node(-1),u=a.index(-1);if(!l.canReplace(u+ +!s,u+1,o.content.append(c?Z.empty:Z.from(i))))return!1;let d=a.pos,f=d+o.nodeSize;return r.step(new Dz(d-+!!s,f+ +!!c,d+1,f-1,new KL((s?Z.empty:Z.from(i.copy(Z.empty))).append(c?Z.empty:Z.from(i.copy(Z.empty))),+!s,+!c),+!s)),t(r.scrollIntoView()),!0}function OV(e){return function(t,n){let{$from:r,$to:i}=t.selection,a=r.blockRange(i,t=>t.childCount>0&&t.firstChild.type==e);if(!a)return!1;let o=a.startIndex;if(o==0)return!1;let s=a.parent,c=s.child(o-1);if(c.type!=e)return!1;if(n){let r=c.lastChild&&c.lastChild.type==s.type,i=Z.from(r?e.create():null),o=new KL(Z.from(e.create(null,Z.from(s.type.create(null,i)))),r?3:1,0),l=a.start,u=a.end;n(t.tr.step(new Dz(l-(r?3:1),u,l,u,o,1,!0)).scrollIntoView())}return!0}}var kV=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},AV=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t},jV=null,MV=function(e,t,n){let r=jV||=document.createRange();return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},NV=function(){jV=null},PV=function(e,t,n,r){return n&&(IV(e,t,n,r,-1)||IV(e,t,n,r,1))},FV=/^(img|br|input|textarea|hr)$/i;function IV(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:LV(e))){let n=e.parentNode;if(!n||n.nodeType!=1||VV(e)||FV.test(e.nodeName)||e.contentEditable==`false`)return!1;t=kV(e)+(i<0?0:1),e=n}else if(e.nodeType==1){let n=e.childNodes[t+(i<0?-1:0)];if(n.nodeType==1&&n.contentEditable==`false`)if(n.pmViewDesc?.ignoreForSelection)t+=i;else return!1;else e=n,t=i<0?LV(e):0}else return!1}}function LV(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function RV(e,t){for(;;){if(e.nodeType==3&&t)return e;if(e.nodeType==1&&t>0){if(e.contentEditable==`false`)return null;e=e.childNodes[t-1],t=LV(e)}else if(e.parentNode&&!VV(e))t=kV(e),e=e.parentNode;else return null}}function zV(e,t){for(;;){if(e.nodeType==3&&t<e.nodeValue.length)return e;if(e.nodeType==1&&t<e.childNodes.length){if(e.contentEditable==`false`)return null;e=e.childNodes[t],t=0}else if(e.parentNode&&!VV(e))t=kV(e)+1,e=e.parentNode;else return null}}function BV(e,t,n){for(let r=t==0,i=t==LV(e);r||i;){if(e==n)return!0;let t=kV(e);if(e=e.parentNode,!e)return!1;r&&=t==0,i&&=t==LV(e)}}function VV(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}var HV=function(e){return e.focusNode&&PV(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function UV(e,t){let n=document.createEvent(`Event`);return n.initEvent(`keydown`,!0,!0),n.keyCode=e,n.key=n.code=t,n}function WV(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function GV(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:Math.min(LV(r.offsetNode),r.offset)}}catch{}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:Math.min(LV(r.startContainer),r.startOffset)}}}var KV=typeof navigator<`u`?navigator:null,qV=typeof document<`u`?document:null,JV=KV&&KV.userAgent||``,YV=/Edge\/(\d+)/.exec(JV),XV=/MSIE \d/.exec(JV),ZV=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(JV),QV=!!(XV||ZV||YV),$V=XV?document.documentMode:ZV?+ZV[1]:YV?+YV[1]:0,eH=!QV&&/gecko\/(\d+)/i.test(JV);eH&&+(/Firefox\/(\d+)/.exec(JV)||[0,0])[1];var tH=!QV&&/Chrome\/(\d+)/.exec(JV),nH=!!tH,rH=tH?+tH[1]:0,iH=!QV&&!!KV&&/Apple Computer/.test(KV.vendor),aH=iH&&(/Mobile\/\w+/.test(JV)||!!KV&&KV.maxTouchPoints>2),oH=aH||(KV?/Mac/.test(KV.platform):!1),sH=KV?/Win/.test(KV.platform):!1,cH=/Android \d/.test(JV),lH=!!qV&&`webkitFontSmoothing`in qV.documentElement.style,uH=lH?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function dH(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function fH(e,t){return typeof e==`number`?e:e[t]}function pH(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function mH(e,t,n){let r=e.someProp(`scrollThreshold`)||0,i=e.someProp(`scrollMargin`)||5,a=e.dom.ownerDocument;for(let o=n||e.dom;o;){if(o.nodeType!=1){o=AV(o);continue}let e=o,n=e==a.body,s=n?dH(a):pH(e),c=0,l=0;if(t.top<s.top+fH(r,`top`)?l=-(s.top-t.top+fH(i,`top`)):t.bottom>s.bottom-fH(r,`bottom`)&&(l=t.bottom-t.top>s.bottom-s.top?t.top+fH(i,`top`)-s.top:t.bottom-s.bottom+fH(i,`bottom`)),t.left<s.left+fH(r,`left`)?c=-(s.left-t.left+fH(i,`left`)):t.right>s.right-fH(r,`right`)&&(c=t.right-s.right+fH(i,`right`)),c||l)if(n)a.defaultView.scrollBy(c,l);else{let n=e.scrollLeft,r=e.scrollTop;l&&(e.scrollTop+=l),c&&(e.scrollLeft+=c);let i=e.scrollLeft-n,a=e.scrollTop-r;t={left:t.left-i,top:t.top-a,right:t.right-i,bottom:t.bottom-a}}let u=n?`fixed`:getComputedStyle(o).position;if(/^(fixed|sticky)$/.test(u))break;o=u==`absolute`?o.offsetParent:AV(o)}}function hH(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),r,i;for(let a=(t.left+t.right)/2,o=n+1;o<Math.min(innerHeight,t.bottom);o+=5){let t=e.root.elementFromPoint(a,o);if(!t||t==e.dom||!e.dom.contains(t))continue;let s=t.getBoundingClientRect();if(s.top>=n-20){r=t,i=s.top;break}}return{refDOM:r,refTop:i,stack:gH(e.dom)}}function gH(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=AV(r));return t}function _H({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;vH(n,r==0?0:r-t)}function vH(e,t){for(let n=0;n<e.length;n++){let{dom:r,top:i,left:a}=e[n];r.scrollTop!=i+t&&(r.scrollTop=i+t),r.scrollLeft!=a&&(r.scrollLeft=a)}}var yH=null;function bH(e){if(e.setActive)return e.setActive();if(yH)return e.focus(yH);let t=gH(e);e.focus(yH==null?{get preventScroll(){return yH={preventScroll:!0},!0}}:void 0),yH||(yH=!1,vH(t,0))}function xH(e,t){let n,r=2e8,i,a=0,o=t.top,s=t.top,c,l;for(let u=e.firstChild,d=0;u;u=u.nextSibling,d++){let e;if(u.nodeType==1)e=u.getClientRects();else if(u.nodeType==3)e=MV(u).getClientRects();else continue;for(let f=0;f<e.length;f++){let p=e[f];if(p.top<=o&&p.bottom>=s){o=Math.max(p.bottom,o),s=Math.min(p.top,s);let e=p.left>t.left?p.left-t.left:p.right<t.left?t.left-p.right:0;if(e<r){n=u,r=e,i=e&&n.nodeType==3?{left:p.right<t.left?p.right:p.left,top:t.top}:t,u.nodeType==1&&e&&(a=d+ +(t.left>=(p.left+p.right)/2));continue}}else p.top>t.top&&!c&&p.left<=t.left&&p.right>=t.left&&(c=u,l={left:Math.max(p.left,Math.min(p.right,t.left)),top:p.top});!n&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(a=d+1)}}return!n&&c&&(n=c,i=l,r=0),n&&n.nodeType==3?SH(n,i):!n||r&&n.nodeType==1?{node:e,offset:a}:xH(n,i)}function SH(e,t){let n=e.nodeValue.length,r=document.createRange(),i;for(let a=0;a<n;a++){r.setEnd(e,a+1),r.setStart(e,a);let n=AH(r,1);if(n.top!=n.bottom&&CH(t,n)){i={node:e,offset:a+ +(t.left>=(n.left+n.right)/2)};break}}return r.detach(),i||{node:e,offset:0}}function CH(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function wH(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}function TH(e,t,n){let{node:r,offset:i}=xH(t,n),a=-1;if(r.nodeType==1&&!r.firstChild){let e=r.getBoundingClientRect();a=e.left!=e.right&&n.left>(e.left+e.right)/2?1:-1}return e.docView.posFromDOM(r,i,a)}function EH(e,t,n,r){let i=-1;for(let n=t,a=!1;n!=e.dom;){let t=e.docView.nearestDesc(n,!0),o;if(!t)return null;if(t.dom.nodeType==1&&(t.node.isBlock&&t.parent||!t.contentDOM)&&((o=t.dom.getBoundingClientRect()).width||o.height)&&(t.node.isBlock&&t.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(t.dom.nodeName)&&(!a&&o.left>r.left||o.top>r.top?i=t.posBefore:(!a&&o.right<r.left||o.bottom<r.top)&&(i=t.posAfter),a=!0),!t.contentDOM&&i<0&&!t.node.isText))return(t.node.isBlock?r.top<(o.top+o.bottom)/2:r.left<(o.left+o.right)/2)?t.posBefore:t.posAfter;n=t.dom.parentNode}return i>-1?i:e.docView.posFromDOM(t,n,-1)}function DH(e,t,n){let r=e.childNodes.length;if(r&&n.top<n.bottom)for(let i=Math.max(0,Math.min(r-1,Math.floor(r*(t.top-n.top)/(n.bottom-n.top))-2)),a=i;;){let n=e.childNodes[a];if(n.nodeType==1){let e=n.getClientRects();for(let r=0;r<e.length;r++){let i=e[r];if(CH(t,i))return DH(n,t,i)}}if((a=(a+1)%r)==i)break}return e}function OH(e,t){let n=e.dom.ownerDocument,r,i=0,a=GV(n,t.left,t.top);a&&({node:r,offset:i}=a);let o=(e.root.elementFromPoint?e.root:n).elementFromPoint(t.left,t.top),s;if(!o||!e.dom.contains(o.nodeType==1?o:o.parentNode)){let n=e.dom.getBoundingClientRect();if(!CH(t,n)||(o=DH(e.dom,t,n),!o))return null}if(iH)for(let e=o;r&&e;e=AV(e))e.draggable&&(r=void 0);if(o=wH(o,t),r){if(eH&&r.nodeType==1&&(i=Math.min(i,r.childNodes.length),i<r.childNodes.length)){let e=r.childNodes[i],n;e.nodeName==`IMG`&&(n=e.getBoundingClientRect()).right<=t.left&&n.bottom>t.top&&i++}let n;lH&&i&&r.nodeType==1&&(n=r.childNodes[i-1]).nodeType==1&&n.contentEditable==`false`&&n.getBoundingClientRect().top>=t.top&&i--,r==e.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&t.top>r.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!=`BR`)&&(s=EH(e,r,i,t))}s??=TH(e,o,t);let c=e.docView.nearestDesc(o,!0);return{pos:s,inside:c?c.posAtStart-c.border:-1}}function kH(e){return e.top<e.bottom||e.left<e.right}function AH(e,t){let n=e.getClientRects();if(n.length){let e=n[t<0?0:n.length-1];if(kH(e))return e}return Array.prototype.find.call(n,kH)||e.getBoundingClientRect()}var jH=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function MH(e,t,n){let{node:r,offset:i,atom:a}=e.docView.domFromPos(t,n<0?-1:1),o=lH||eH;if(r.nodeType==3)if(o&&(jH.test(r.nodeValue)||(n<0?!i:i==r.nodeValue.length))){let e=AH(MV(r,i,i),n);if(eH&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let t=AH(MV(r,i-1,i-1),-1);if(t.top==e.top){let n=AH(MV(r,i,i+1),-1);if(n.top!=e.top)return NH(n,n.left<t.left)}}return e}else{let e=i,t=i,a=n<0?1:-1;return n<0&&!i?(t++,a=-1):n>=0&&i==r.nodeValue.length?(e--,a=1):n<0?e--:t++,NH(AH(MV(r,e,t),a),a<0)}if(!e.state.doc.resolve(t-(a||0)).parent.inlineContent){if(a==null&&i&&(n<0||i==LV(r))){let e=r.childNodes[i-1];if(e.nodeType==1)return PH(e.getBoundingClientRect(),!1)}if(a==null&&i<LV(r)){let e=r.childNodes[i];if(e.nodeType==1)return PH(e.getBoundingClientRect(),!0)}return PH(r.getBoundingClientRect(),n>=0)}if(a==null&&i&&(n<0||i==LV(r))){let e=r.childNodes[i-1],t=e.nodeType==3?MV(e,LV(e)-+!o):e.nodeType==1&&(e.nodeName!=`BR`||!e.nextSibling)?e:null;if(t)return NH(AH(t,1),!1)}if(a==null&&i<LV(r)){let e=r.childNodes[i];for(;e.pmViewDesc&&e.pmViewDesc.ignoreForCoords;)e=e.nextSibling;let t=e?e.nodeType==3?MV(e,0,+!o):e.nodeType==1?e:null:null;if(t)return NH(AH(t,-1),!0)}return NH(AH(r.nodeType==3?MV(r):r,-n),n>=0)}function NH(e,t){if(e.width==0)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function PH(e,t){if(e.height==0)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function FH(e,t,n){let r=e.state,i=e.root.activeElement;r!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),i!=e.dom&&i&&i.focus()}}function IH(e,t,n){let r=t.selection,i=n==`up`?r.$from:r.$to;return FH(e,t,()=>{let{node:t}=e.docView.domFromPos(i.pos,n==`up`?-1:1);for(;;){let n=e.docView.nearestDesc(t,!0);if(!n)break;if(n.node.isBlock){t=n.contentDOM||n.dom;break}t=n.dom.parentNode}let r=MH(e,i.pos,1);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(e.nodeType==1)t=e.getClientRects();else if(e.nodeType==3)t=MV(e,0,e.nodeValue.length).getClientRects();else continue;for(let e=0;e<t.length;e++){let i=t[e];if(i.bottom>i.top+1&&(n==`up`?r.top-i.top>(i.bottom-r.top)*2:i.bottom-r.bottom>(r.bottom-i.top)*2))return!1}}return!0})}var LH=/[\u0590-\u08ac]/;function RH(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,a=!i,o=i==r.parent.content.size,s=e.domSelection();return s?!LH.test(r.parent.textContent)||!s.modify?n==`left`||n==`backward`?a:o:FH(e,t,()=>{let{focusNode:t,focusOffset:i,anchorNode:a,anchorOffset:o}=e.domSelectionRange(),c=s.caretBidiLevel;s.modify(`move`,n,`character`);let l=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:u,focusOffset:d}=e.domSelectionRange(),f=u&&!l.contains(u.nodeType==1?u:u.parentNode)||t==u&&i==d;try{s.collapse(a,o),t&&(t!=a||i!=o)&&s.extend&&s.extend(t,i)}catch{}return c!=null&&(s.caretBidiLevel=c),f}):r.pos==r.start()||r.pos==r.end()}var zH=null,BH=null,VH=!1;function HH(e,t,n){return zH==t&&BH==n?VH:(zH=t,BH=n,VH=n==`up`||n==`down`?IH(e,t,n):RH(e,t,n))}var UH=0,WH=1,GH=2,KH=3,qH=class{constructor(e,t,n,r){this.parent=e,this.children=t,this.dom=n,this.contentDOM=r,this.dirty=UH,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,n){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,n=this.posAtStart;;t++){let r=this.children[t];if(r==e)return n;n+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,n){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(n<0){let n,r;if(e==this.contentDOM)n=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.previousSibling}for(;n&&!((r=n.pmViewDesc)&&r.parent==this);)n=n.previousSibling;return n?this.posBeforeChild(r)+r.size:this.posAtStart}else{let n,r;if(e==this.contentDOM)n=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.nextSibling}for(;n&&!((r=n.pmViewDesc)&&r.parent==this);)n=n.nextSibling;return n?this.posBeforeChild(r):this.posAtEnd}let r;if(e==this.dom&&this.contentDOM)r=t>kV(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(t==0)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!1;break}if(t.previousSibling)break}if(r==null&&t==e.childNodes.length)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!0;break}if(t.nextSibling)break}}return r??n>0?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let n=!0,r=e;r;r=r.parentNode){let i=this.getDesc(r),a;if(i&&(!t||i.node))if(n&&(a=i.nodeDOM)&&!(a.nodeType==1?a.contains(e.nodeType==1?e:e.parentNode):a==e))n=!1;else return i}}getDesc(e){let t=e.pmViewDesc;for(let e=t;e;e=e.parent)if(e==this)return t}posFromDOM(e,t,n){for(let r=e;r;r=r.parentNode){let i=this.getDesc(r);if(i)return i.localPosFromDOM(e,t,n)}return-1}descAt(e){for(let t=0,n=0;t<this.children.length;t++){let r=this.children[t],i=n+r.size;if(n==e&&i!=n){for(;!r.border&&r.children.length;)for(let e=0;e<r.children.length;e++){let t=r.children[e];if(t.size){r=t;break}}return r}if(e<i)return r.descAt(e-n-r.border);n=i}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let n=0,r=0;for(let t=0;n<this.children.length;n++){let i=this.children[n],a=t+i.size;if(a>e||i instanceof eU){r=e-t;break}t=a}if(r)return this.children[n].domFromPos(r-this.children[n].border,t);for(let e;n&&!(e=this.children[n-1]).size&&e instanceof JH&&e.side>=0;n--);if(t<=0){let e,r=!0;for(;e=n?this.children[n-1]:null,!(!e||e.dom.parentNode==this.contentDOM);n--,r=!1);return e&&t&&r&&!e.border&&!e.domAtom?e.domFromPos(e.size,t):{node:this.contentDOM,offset:e?kV(e.dom)+1:0}}else{let e,r=!0;for(;e=n<this.children.length?this.children[n]:null,!(!e||e.dom.parentNode==this.contentDOM);n++,r=!1);return e&&r&&!e.border&&!e.domAtom?e.domFromPos(0,t):{node:this.contentDOM,offset:e?kV(e.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,n=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,i=-1;for(let a=n,o=0;;o++){let n=this.children[o],s=a+n.size;if(r==-1&&e<=s){let i=a+n.border;if(e>=i&&t<=s-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(e,t,i);e=a;for(let t=o;t>0;t--){let n=this.children[t-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){r=kV(n.dom)+1;break}e-=n.size}r==-1&&(r=0)}if(r>-1&&(s>t||o==this.children.length-1)){t=s;for(let e=o+1;e<this.children.length;e++){let n=this.children[e];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(-1)){i=kV(n.dom);break}t+=n.size}i==-1&&(i=this.contentDOM.childNodes.length);break}a=s}return{node:this.contentDOM,from:e,to:t,fromOffset:r,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return t.size==0||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:n}=this.domFromPos(e,0);if(t.nodeType!=1||n==t.childNodes.length)throw RangeError(`No node after pos `+e);return t.childNodes[n]}setSelection(e,t,n,r=!1){let i=Math.min(e,t),a=Math.max(e,t);for(let o=0,s=0;o<this.children.length;o++){let c=this.children[o],l=s+c.size;if(i>s&&a<l)return c.setSelection(e-s-c.border,t-s-c.border,n,r);s=l}let o=this.domFromPos(e,e?-1:1),s=t==e?o:this.domFromPos(t,t?-1:1),c=n.root.getSelection(),l=n.domSelectionRange(),u=!1;if((eH||iH)&&e==t){let{node:e,offset:t}=o;if(e.nodeType==3){if(u=!!(t&&e.nodeValue[t-1]==`
281
- `),u&&t==e.nodeValue.length)for(let t=e,n;t;t=t.parentNode){if(n=t.nextSibling){n.nodeName==`BR`&&(o=s={node:n.parentNode,offset:kV(n)+1});break}let e=t.pmViewDesc;if(e&&e.node&&e.node.isBlock)break}}else{let n=e.childNodes[t-1];u=n&&(n.nodeName==`BR`||n.contentEditable==`false`)}}if(eH&&l.focusNode&&l.focusNode!=s.node&&l.focusNode.nodeType==1){let e=l.focusNode.childNodes[l.focusOffset];e&&e.contentEditable==`false`&&(r=!0)}if(!(r||u&&iH)&&PV(o.node,o.offset,l.anchorNode,l.anchorOffset)&&PV(s.node,s.offset,l.focusNode,l.focusOffset))return;let d=!1;if((c.extend||e==t)&&!(u&&eH)){c.collapse(o.node,o.offset);try{e!=t&&c.extend(s.node,s.offset),d=!0}catch{}}if(!d){if(e>t){let e=o;o=s,s=e}let n=document.createRange();n.setEnd(s.node,s.offset),n.setStart(o.node,o.offset),c.removeAllRanges(),c.addRange(n)}}ignoreMutation(e){return!this.contentDOM&&e.type!=`selection`}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let n=0,r=0;r<this.children.length;r++){let i=this.children[r],a=n+i.size;if(n==a?e<=a&&t>=n:e<a&&t>n){let r=n+i.border,o=a-i.border;if(e>=r&&t<=o){this.dirty=e==n||t==a?GH:WH,e==r&&t==o&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=KH:i.markDirty(e-r,t-r);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?GH:KH}n=a}this.dirty=GH}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=e==1?GH:WH;t.dirty<n&&(t.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}},JH=class extends qH{constructor(e,t,n,r){let i,a=t.type.toDOM;if(typeof a==`function`&&(a=a(n,()=>{if(!i)return r;if(i.parent)return i.parent.posBeforeChild(i)})),!t.type.spec.raw){if(a.nodeType!=1){let e=document.createElement(`span`);e.appendChild(a),a=e}a.contentEditable=`false`,a.classList.add(`ProseMirror-widget`)}super(e,[],a,null),this.widget=t,this.widget=t,i=this}matchesWidget(e){return this.dirty==UH&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return t?t(e):!1}ignoreMutation(e){return e.type!=`selection`||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}},YH=class extends qH{constructor(e,t,n,r){super(e,[],t,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(e,t){return e==this.textDOM?this.posAtStart+t:this.posAtStart+(t?this.size:0)}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type===`characterData`&&e.target.nodeValue==e.oldValue}},XH=class e extends qH{constructor(e,t,n,r,i){super(e,[],n,r),this.mark=t,this.spec=i}static create(t,n,r,i){let a=i.nodeViews[n.type.name],o=a&&a(n,i,r);return(!o||!o.dom)&&(o=$R.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new e(t,n,o.dom,o.contentDOM||o.dom,o)}parseRule(){return this.dirty&KH||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=KH&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=UH){let e=this.parent;for(;!e.node;)e=e.parent;e.dirty<this.dirty&&(e.dirty=this.dirty),this.dirty=UH}}slice(t,n,r){let i=e.create(this.parent,this.mark,!0,r),a=this.children,o=this.size;n<o&&(a=_U(a,n,o,r)),t>0&&(a=_U(a,0,t,r));for(let e=0;e<a.length;e++)a[e].parent=i;return i.children=a,i}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}},ZH=class e extends qH{constructor(e,t,n,r,i,a,o,s,c){super(e,[],i,a),this.node=t,this.outerDeco=n,this.innerDeco=r,this.nodeDOM=o}static create(t,n,r,i,a,o){let s=a.nodeViews[n.type.name],c,l=s&&s(n,a,()=>{if(!c)return o;if(c.parent)return c.parent.posBeforeChild(c)},r,i),u=l&&l.dom,d=l&&l.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw RangeError(`Text must be rendered as a DOM text node`)}else if(!u){let e=$R.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs);({dom:u,contentDOM:d}=e)}!d&&!n.isText&&u.nodeName!=`BR`&&(u.hasAttribute(`contenteditable`)||(u.contentEditable=`false`),n.type.spec.draggable&&(u.draggable=!0));let f=u;return u=cU(u,r,n),l?c=new tU(t,n,r,i,u,d||null,f,l,a,o+1):n.isText?new $H(t,n,r,i,u,f,a):new e(t,n,r,i,u,d||null,f,a,o+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace==`pre`&&(e.preserveWhitespace=`full`),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let t=this.children.length-1;t>=0;t--){let n=this.children[t];if(this.dom.contains(n.dom.parentNode)){e.contentElement=n.dom.parentNode;break}}e.contentElement||(e.getContent=()=>Z.empty)}return e}matchesNode(e,t,n){return this.dirty==UH&&e.eq(this.node)&&lU(t,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return+!this.node.isLeaf}updateChildren(e,t){let n=this.node.inlineContent,r=t,i=e.composing?this.localCompositionInfo(e,t):null,a=i&&i.pos>-1?i:null,o=i&&i.pos<0,s=new dU(this,a&&a.node,e);mU(this.node,this.innerDeco,(t,i,a)=>{t.spec.marks?s.syncToMarks(t.spec.marks,n,e,i):t.type.side>=0&&!a&&s.syncToMarks(i==this.node.childCount?WL.none:this.node.child(i).marks,n,e,i),s.placeWidget(t,e,r)},(t,a,c,l)=>{s.syncToMarks(t.marks,n,e,l);let u;s.findNodeMatch(t,a,c,l)||o&&e.state.selection.from>r&&e.state.selection.to<r+t.nodeSize&&(u=s.findIndexWithChild(i.node))>-1&&s.updateNodeAt(t,a,c,u,e)||s.updateNextNode(t,a,c,e,l,r)||s.addNode(t,a,c,e,r),r+=t.nodeSize}),s.syncToMarks([],n,e,0),this.node.isTextblock&&s.addTextblockHacks(),s.destroyRest(),(s.changed||this.dirty==GH)&&(a&&this.protectLocalComposition(e,a),nU(this.contentDOM,this.children,e),aH&&hU(this.dom))}localCompositionInfo(e,t){let{from:n,to:r}=e.state.selection;if(!(e.state.selection instanceof wB)||n<t||r>t+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let e=i.nodeValue,a=gU(this.node.content,e,n-t,r-t);return a<0?null:{node:i,pos:a,text:e}}else return{node:i,pos:-1,text:``}}protectLocalComposition(e,{node:t,pos:n,text:r}){if(this.getDesc(t))return;let i=t;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&=void 0}let a=new YH(this,i,t,r);e.input.compositionNodes.push(a),this.children=_U(this.children,n,n+r.length,e,a)}update(e,t,n,r){return this.dirty==KH||!e.sameMarkup(this.node)?!1:(this.updateInner(e,t,n,r),!0)}updateInner(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=UH}updateOuterDeco(e){if(lU(e,this.outerDeco))return;let t=this.nodeDOM.nodeType!=1,n=this.dom;this.dom=oU(this.dom,this.nodeDOM,aU(this.outerDeco,this.node,t),aU(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.add(`ProseMirror-selectednode`),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove(`ProseMirror-selectednode`),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute(`draggable`))}get domAtom(){return this.node.isAtom}};function QH(e,t,n,r,i){cU(r,t,e);let a=new ZH(void 0,e,t,n,r,r,r,i,0);return a.contentDOM&&a.updateChildren(i,0),a}var $H=class e extends ZH{constructor(e,t,n,r,i,a,o){super(e,t,n,r,i,null,a,o,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,n,r){return this.dirty==KH||this.dirty!=UH&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(t),(this.dirty!=UH||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=UH,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,n){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,n)}ignoreMutation(e){return e.type!=`characterData`&&e.type!=`selection`}slice(t,n,r){let i=this.node.cut(t,n),a=document.createTextNode(i.text);return new e(this.parent,i,this.outerDeco,this.innerDeco,a,a,r)}markDirty(e,t){super.markDirty(e,t),this.dom!=this.nodeDOM&&(e==0||t==this.nodeDOM.nodeValue.length)&&(this.dirty=KH)}get domAtom(){return!1}isText(e){return this.node.text==e}},eU=class extends qH{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==UH&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName==`IMG`}},tU=class extends ZH{constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r,i,a,o,c,l),this.spec=s}update(e,t,n,r){if(this.dirty==KH)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let i=this.spec.update(e,t,n);return i&&this.updateInner(e,t,n,r),i}else if(!this.contentDOM&&!e.isLeaf)return!1;else return super.update(e,t,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,n,r){this.spec.setSelection?this.spec.setSelection(e,t,n.root):super.setSelection(e,t,n,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}};function nU(e,t,n){let r=e.firstChild,i=!1;for(let a=0;a<t.length;a++){let o=t[a],s=o.dom;if(s.parentNode==e){for(;s!=r;)r=uU(r),i=!0;r=r.nextSibling}else i=!0,e.insertBefore(s,r);if(o instanceof XH){let t=r?r.previousSibling:e.lastChild;nU(o.contentDOM,o.children,n),r=t?t.nextSibling:e.firstChild}}for(;r;)r=uU(r),i=!0;i&&n.trackWrites==e&&(n.trackWrites=null)}var rU=function(e){e&&(this.nodeName=e)};rU.prototype=Object.create(null);var iU=[new rU];function aU(e,t,n){if(e.length==0)return iU;let r=n?iU[0]:new rU,i=[r];for(let a=0;a<e.length;a++){let o=e[a].type.attrs;if(o){o.nodeName&&i.push(r=new rU(o.nodeName));for(let e in o){let a=o[e];a!=null&&(n&&i.length==1&&i.push(r=new rU(t.isInline?`span`:`div`)),e==`class`?r.class=(r.class?r.class+` `:``)+a:e==`style`?r.style=(r.style?r.style+`;`:``)+a:e!=`nodeName`&&(r[e]=a))}}}return i}function oU(e,t,n,r){if(n==iU&&r==iU)return t;let i=t;for(let t=0;t<r.length;t++){let a=r[t],o=n[t];if(t){let t;o&&o.nodeName==a.nodeName&&i!=e&&(t=i.parentNode)&&t.nodeName.toLowerCase()==a.nodeName?i=t:(t=document.createElement(a.nodeName),t.pmIsDeco=!0,t.appendChild(i),o=iU[0],i=t)}sU(i,o||iU[0],a)}return i}function sU(e,t,n){for(let r in t)r!=`class`&&r!=`style`&&r!=`nodeName`&&!(r in n)&&e.removeAttribute(r);for(let r in n)r!=`class`&&r!=`style`&&r!=`nodeName`&&n[r]!=t[r]&&e.setAttribute(r,n[r]);if(t.class!=n.class){let r=t.class?t.class.split(` `).filter(Boolean):[],i=n.class?n.class.split(` `).filter(Boolean):[];for(let t=0;t<r.length;t++)i.indexOf(r[t])==-1&&e.classList.remove(r[t]);for(let t=0;t<i.length;t++)r.indexOf(i[t])==-1&&e.classList.add(i[t]);e.classList.length==0&&e.removeAttribute(`class`)}if(t.style!=n.style){if(t.style){let n=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,r;for(;r=n.exec(t.style);)e.style.removeProperty(r[1])}n.style&&(e.style.cssText+=n.style)}}function cU(e,t,n){return oU(e,e,iU,aU(t,n,e.nodeType!=1))}function lU(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function uU(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}var dU=class{constructor(e,t,n){this.lock=t,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=fU(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,n,r){let i=0,a=this.stack.length>>1,o=Math.min(a,e.length);for(;i<o&&(i==a-1?this.top:this.stack[i+1<<1]).matchesMark(e[i])&&e[i].type.spec.spanning!==!1;)i++;for(;i<a;)this.destroyRest(),this.top.dirty=UH,this.index=this.stack.pop(),this.top=this.stack.pop(),a--;for(;a<e.length;){this.stack.push(this.top,this.index+1);let i=-1,o=this.top.children.length;r<this.preMatch.index&&(o=Math.min(this.index+3,o));for(let t=this.index;t<o;t++){let n=this.top.children[t];if(n.matchesMark(e[a])&&!this.isLocked(n.dom)){i=t;break}}if(i>-1)i>this.index&&(this.changed=!0,this.destroyBetween(this.index,i)),this.top=this.top.children[this.index];else{let r=XH.create(this.top,e[a],t,n);this.top.children.splice(this.index,0,r),this.top=r,this.changed=!0}this.index=0,a++}}findNodeMatch(e,t,n,r){let i=-1,a;if(r>=this.preMatch.index&&(a=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&a.matchesNode(e,t,n))i=this.top.children.indexOf(a,this.index);else for(let r=this.index,a=Math.min(this.top.children.length,r+5);r<a;r++){let a=this.top.children[r];if(a.matchesNode(e,t,n)&&!this.preMatch.matched.has(a)){i=r;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,t,n,r,i){let a=this.top.children[r];return a.dirty==KH&&a.dom==a.contentDOM&&(a.dirty=GH),a.update(e,t,n,i)?(this.destroyBetween(this.index,r),this.index++,!0):!1}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){let t=e.pmViewDesc;if(t){for(let e=this.index;e<this.top.children.length;e++)if(this.top.children[e]==t)return e}return-1}e=t}}updateNextNode(e,t,n,r,i,a){for(let o=this.index;o<this.top.children.length;o++){let s=this.top.children[o];if(s instanceof ZH){let c=this.preMatch.matched.get(s);if(c!=null&&c!=i)return!1;let l=s.dom,u,d=this.isLocked(l)&&!(e.isText&&s.node&&s.node.isText&&s.nodeDOM.nodeValue==e.text&&s.dirty!=KH&&lU(t,s.outerDeco));if(!d&&s.update(e,t,n,r))return this.destroyBetween(this.index,o),s.dom!=l&&(this.changed=!0),this.index++,!0;if(!d&&(u=this.recreateWrapper(s,e,t,n,r,a)))return this.destroyBetween(this.index,o),this.top.children[this.index]=u,u.contentDOM&&(u.dirty=GH,u.updateChildren(r,a+1),u.dirty=UH),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,n,r,i,a){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content)||!lU(n,e.outerDeco)||!r.eq(e.innerDeco))return null;let o=ZH.create(this.top,t,n,r,i,a);if(o.contentDOM){o.children=e.children,e.children=[];for(let e of o.children)e.parent=o}return e.destroy(),o}addNode(e,t,n,r,i){let a=ZH.create(this.top,e,t,n,r,i);a.contentDOM&&a.updateChildren(r,i+1),this.top.children.splice(this.index++,0,a),this.changed=!0}placeWidget(e,t,n){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(r&&r.matchesWidget(e)&&(e==r.widget||!r.widget.type.toDOM.parentNode))this.index++;else{let r=new JH(this.top,e,t,n);this.top.children.splice(this.index++,0,r),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof XH;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof $H)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((iH||nH)&&e&&e.dom.contentEditable==`false`&&this.addHackNode(`IMG`,t),this.addHackNode(`BR`,this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let n=document.createElement(e);e==`IMG`&&(n.className=`ProseMirror-separator`,n.alt=``),e==`BR`&&(n.className=`ProseMirror-trailingBreak`);let r=new eU(this.top,[],n,null);t==this.top?t.children.splice(this.index++,0,r):t.children.push(r),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}};function fU(e,t){let n=t,r=n.children.length,i=e.childCount,a=new Map,o=[];outer:for(;i>0;){let s;for(;;)if(r){let e=n.children[r-1];if(e instanceof XH)n=e,r=e.children.length;else{s=e,r--;break}}else if(n==t)break outer;else r=n.parent.children.indexOf(n),n=n.parent;let c=s.node;if(c){if(c!=e.child(i-1))break;--i,a.set(s,i),o.push(s)}}return{index:i,matched:a,matches:o.reverse()}}function pU(e,t){return e.type.side-t.type.side}function mU(e,t,n,r){let i=t.locals(e),a=0;if(i.length==0){for(let n=0;n<e.childCount;n++){let o=e.child(n);r(o,i,t.forChild(a,o),n),a+=o.nodeSize}return}let o=0,s=[],c=null;for(let l=0;;){let u,d;for(;o<i.length&&i[o].to==a;){let e=i[o++];e.widget&&(u?(d||=[u]).push(e):u=e)}if(u)if(d){d.sort(pU);for(let e=0;e<d.length;e++)n(d[e],l,!!c)}else n(u,l,!!c);let f,p;if(c)p=-1,f=c,c=null;else if(l<e.childCount)p=l,f=e.child(l++);else break;for(let e=0;e<s.length;e++)s[e].to<=a&&s.splice(e--,1);for(;o<i.length&&i[o].from<=a&&i[o].to>a;)s.push(i[o++]);let m=a+f.nodeSize;if(f.isText){let e=m;o<i.length&&i[o].from<e&&(e=i[o].from);for(let t=0;t<s.length;t++)s[t].to<e&&(e=s[t].to);e<m&&(c=f.cut(e-a),f=f.cut(0,e-a),m=e,p=-1)}else for(;o<i.length&&i[o].to<m;)o++;let h=f.isInline&&!f.isLeaf?s.filter(e=>!e.inline):s.slice();r(f,h,t.forChild(a,f),p),a=m}}function hU(e){if(e.nodeName==`UL`||e.nodeName==`OL`){let t=e.style.cssText;e.style.cssText=t+`; list-style: square !important`,window.getComputedStyle(e).listStyle,e.style.cssText=t}}function gU(e,t,n,r){for(let i=0,a=0;i<e.childCount&&a<=r;){let o=e.child(i++),s=a;if(a+=o.nodeSize,!o.isText)continue;let c=o.text;for(;i<e.childCount;){let t=e.child(i++);if(a+=t.nodeSize,!t.isText)break;c+=t.text}if(a>=n){if(a>=r&&c.slice(r-t.length-s,r-s)==t)return r-t.length;let e=s<r?c.lastIndexOf(t,r-s-1):-1;if(e>=0&&e+t.length+s>=n)return s+e;if(n==r&&c.length>=r+t.length-s&&c.slice(r-s,r-s+t.length)==t)return r}}return-1}function _U(e,t,n,r,i){let a=[];for(let o=0,s=0;o<e.length;o++){let c=e[o],l=s,u=s+=c.size;l>=n||u<=t?a.push(c):(l<t&&a.push(c.slice(0,t-l,r)),i&&=(a.push(i),void 0),u>n&&a.push(c.slice(n-l,c.size,r)))}return a}function vU(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let i=e.docView.nearestDesc(n.focusNode),a=i&&i.size==0,o=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(o<0)return null;let s=r.resolve(o),c,l;if(HV(n)){for(c=o;i&&!i.node;)i=i.parent;let e=i.node;if(i&&e.isAtom&&EB.isSelectable(e)&&i.parent&&!(e.isInline&&BV(n.focusNode,n.focusOffset,i.dom))){let e=i.posBefore;l=new EB(o==e?s:r.resolve(e))}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let t=o,i=o;for(let r=0;r<n.rangeCount;r++){let a=n.getRangeAt(r);t=Math.min(t,e.docView.posFromDOM(a.startContainer,a.startOffset,1)),i=Math.max(i,e.docView.posFromDOM(a.endContainer,a.endOffset,-1))}if(t<0)return null;[c,o]=i==e.state.selection.anchor?[i,t]:[t,i],s=r.resolve(o)}else c=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(c<0)return null}let u=r.resolve(c);if(!l){let n=t==`pointer`||e.state.selection.head<s.pos&&!a?1:-1;l=kU(e,u,s,n)}return l}function yU(e){return e.editable?e.hasFocus():jU(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function bU(e,t=!1){let n=e.state.selection;if(DU(e,n),yU(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&nH){let t=e.domSelectionRange(),n=e.domObserver.currentSelection;if(t.anchorNode&&n.anchorNode&&PV(t.anchorNode,t.anchorOffset,n.anchorNode,n.anchorOffset)){e.input.mouseDown.delayedSelectionSync=!0,e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)EU(e);else{let{anchor:r,head:i}=n,a,o;xU&&!(n instanceof wB)&&(n.$from.parent.inlineContent||(a=SU(e,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(o=SU(e,n.to))),e.docView.setSelection(r,i,e,t),xU&&(a&&wU(a),o&&wU(o)),n.visible?e.dom.classList.remove(`ProseMirror-hideselection`):(e.dom.classList.add(`ProseMirror-hideselection`),`onselectionchange`in document&&TU(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}var xU=iH||nH&&rH<63;function SU(e,t){let{node:n,offset:r}=e.docView.domFromPos(t,0),i=r<n.childNodes.length?n.childNodes[r]:null,a=r?n.childNodes[r-1]:null;if(iH&&i&&i.contentEditable==`false`)return CU(i);if((!i||i.contentEditable==`false`)&&(!a||a.contentEditable==`false`)){if(i)return CU(i);if(a)return CU(a)}}function CU(e){return e.contentEditable=`true`,iH&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function wU(e){e.contentEditable=`false`,e.wasDraggable&&=(e.draggable=!0,null)}function TU(e){let t=e.dom.ownerDocument;t.removeEventListener(`selectionchange`,e.input.hideSelectionGuard);let n=e.domSelectionRange(),r=n.anchorNode,i=n.anchorOffset;t.addEventListener(`selectionchange`,e.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=i)&&(t.removeEventListener(`selectionchange`,e.input.hideSelectionGuard),setTimeout(()=>{(!yU(e)||e.state.selection.visible)&&e.dom.classList.remove(`ProseMirror-hideselection`)},20))})}function EU(e){let t=e.domSelection();if(!t)return;let n=e.cursorWrapper.dom,r=n.nodeName==`IMG`;r?t.collapse(n.parentNode,kV(n)+1):t.collapse(n,0),!r&&!e.state.selection.visible&&QV&&$V<=11&&(n.disabled=!0,n.disabled=!1)}function DU(e,t){if(t instanceof EB){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(OU(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else OU(e)}function OU(e){e.lastSelectedViewDesc&&=(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),void 0)}function kU(e,t,n,r){return e.someProp(`createSelectionBetween`,r=>r(e,t,n))||wB.between(t,n,r)}function AU(e){return e.editable&&!e.hasFocus()?!1:jU(e)}function jU(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function MU(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return PV(t.node,t.offset,n.anchorNode,n.anchorOffset)}function NU(e,t){let{$anchor:n,$head:r}=e.selection,i=t>0?n.max(r):n.min(r),a=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return a&&bB.findFrom(a,t)}function PU(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function FU(e,t,n){let r=e.state.selection;if(r instanceof wB){if(n.indexOf(`s`)>-1){let{$head:n}=r,i=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let a=e.state.doc.resolve(n.pos+i.nodeSize*(t<0?-1:1));return PU(e,new wB(r.$anchor,a))}else if(!r.empty)return!1;else if(e.endOfTextblock(t>0?`forward`:`backward`)){let n=NU(e.state,t);return n&&n instanceof EB?PU(e,n):!1}else if(!(oH&&n.indexOf(`m`)>-1)){let n=r.$head,i=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter,a;if(!i||i.isText)return!1;let o=t<0?n.pos-i.nodeSize:n.pos;return i.isAtom||(a=e.docView.descAt(o))&&!a.contentDOM?EB.isSelectable(i)?PU(e,new EB(t<0?e.state.doc.resolve(n.pos-i.nodeSize):n)):lH?PU(e,new wB(e.state.doc.resolve(t<0?o:o+i.nodeSize))):!1:!1}}else if(r instanceof EB&&r.node.isInline)return PU(e,new wB(t>0?r.$to:r.$from));else{let n=NU(e.state,t);return n?PU(e,n):!1}}function IU(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function LU(e,t){let n=e.pmViewDesc;return n&&n.size==0&&(t<0||e.nextSibling||e.nodeName!=`BR`)}function RU(e,t){return t<0?zU(e):BU(e)}function zU(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,a,o=!1;for(eH&&n.nodeType==1&&r<IU(n)&&LU(n.childNodes[r],-1)&&(o=!0);;)if(r>0){if(n.nodeType!=1)break;{let e=n.childNodes[r-1];if(LU(e,-1))i=n,a=--r;else if(e.nodeType==3)n=e,r=n.nodeValue.length;else break}}else if(VU(n))break;else{let t=n.previousSibling;for(;t&&LU(t,-1);)i=n.parentNode,a=kV(t),t=t.previousSibling;if(t)n=t,r=IU(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}o?WU(e,n,r):i&&WU(e,i,a)}function BU(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i=IU(n),a,o;for(;;)if(r<i){if(n.nodeType!=1)break;let e=n.childNodes[r];if(LU(e,1))a=n,o=++r;else break}else if(VU(n))break;else{let t=n.nextSibling;for(;t&&LU(t,1);)a=t.parentNode,o=kV(t)+1,t=t.nextSibling;if(t)n=t,r=0,i=IU(n);else{if(n=n.parentNode,n==e.dom)break;r=i=0}}a&&WU(e,a,o)}function VU(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function HU(e,t){for(;e&&t==e.childNodes.length&&!VV(e);)t=kV(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable==`false`)break;e=n,t=0}}function UU(e,t){for(;e&&!t&&!VV(e);)t=kV(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable==`false`)break;e=n,t=e.childNodes.length}}function WU(e,t,n){if(t.nodeType!=3){let e,r;(r=HU(t,n))?(t=r,n=0):(e=UU(t,n))&&(t=e,n=e.nodeValue.length)}let r=e.domSelection();if(!r)return;if(HV(r)){let e=document.createRange();e.setEnd(t,n),e.setStart(t,n),r.removeAllRanges(),r.addRange(e)}else r.extend&&r.extend(t,n);e.domObserver.setCurSelection();let{state:i}=e;setTimeout(()=>{e.state==i&&bU(e)},50)}function GU(e,t){let n=e.state.doc.resolve(t);if(!(nH||sH)&&n.parent.inlineContent){let r=e.coordsAtPos(t);if(t>n.start()){let n=e.coordsAtPos(t-1),i=(n.top+n.bottom)/2;if(i>r.top&&i<r.bottom&&Math.abs(n.left-r.left)>1)return n.left<r.left?`ltr`:`rtl`}if(t<n.end()){let n=e.coordsAtPos(t+1),i=(n.top+n.bottom)/2;if(i>r.top&&i<r.bottom&&Math.abs(n.left-r.left)>1)return n.left>r.left?`ltr`:`rtl`}}return getComputedStyle(e.dom).direction==`rtl`?`rtl`:`ltr`}function KU(e,t,n){let r=e.state.selection;if(r instanceof wB&&!r.empty||n.indexOf(`s`)>-1||oH&&n.indexOf(`m`)>-1)return!1;let{$from:i,$to:a}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?`up`:`down`)){let n=NU(e.state,t);if(n&&n instanceof EB)return PU(e,n)}if(!i.parent.inlineContent){let n=t<0?i:a,o=r instanceof OB?bB.near(n,t):bB.findFrom(n,t);return o?PU(e,o):!1}return!1}function qU(e,t){if(!(e.state.selection instanceof wB))return!0;let{$head:n,$anchor:r,empty:i}=e.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?`forward`:`backward`))return!0;let a=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(a&&!a.isText){let r=e.state.tr;return t<0?r.delete(n.pos-a.nodeSize,n.pos):r.delete(n.pos,n.pos+a.nodeSize),e.dispatch(r),!0}return!1}function JU(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function YU(e){if(!iH||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&t.nodeType==1&&n==0&&t.firstChild&&t.firstChild.contentEditable==`false`){let n=t.firstChild;JU(e,n,`true`),setTimeout(()=>JU(e,n,`false`),20)}return!1}function XU(e){let t=``;return e.ctrlKey&&(t+=`c`),e.metaKey&&(t+=`m`),e.altKey&&(t+=`a`),e.shiftKey&&(t+=`s`),t}function ZU(e,t){let n=t.keyCode,r=XU(t);if(n==8||oH&&n==72&&r==`c`)return qU(e,-1)||RU(e,-1);if(n==46&&!t.shiftKey||oH&&n==68&&r==`c`)return qU(e,1)||RU(e,1);if(n==13||n==27)return!0;if(n==37||oH&&n==66&&r==`c`){let t=n==37?GU(e,e.state.selection.from)==`ltr`?-1:1:-1;return FU(e,t,r)||RU(e,t)}else if(n==39||oH&&n==70&&r==`c`){let t=n==39?GU(e,e.state.selection.from)==`ltr`?1:-1:1;return FU(e,t,r)||RU(e,t)}else if(n==38||oH&&n==80&&r==`c`)return KU(e,-1,r)||RU(e,-1);else if(n==40||oH&&n==78&&r==`c`)return YU(e)||KU(e,1,r)||RU(e,1);else if(r==(oH?`m`:`c`)&&(n==66||n==73||n==89||n==90))return!0;return!1}function QU(e,t){e.someProp(`transformCopied`,n=>{t=n(t,e)});let n=[],{content:r,openStart:i,openEnd:a}=t;for(;i>1&&a>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,a--;let e=r.firstChild;n.push(e.type.name,e.attrs==e.type.defaultAttrs?null:e.attrs),r=e.content}let o=e.someProp(`clipboardSerializer`)||$R.fromSchema(e.state.schema),s=lW(),c=s.createElement(`div`);c.appendChild(o.serializeFragment(r,{document:s}));let l=c.firstChild,u,d=0;for(;l&&l.nodeType==1&&(u=sW[l.nodeName.toLowerCase()]);){for(let e=u.length-1;e>=0;e--){let t=s.createElement(u[e]);for(;c.firstChild;)t.appendChild(c.firstChild);c.appendChild(t),d++}l=c.firstChild}return l&&l.nodeType==1&&l.setAttribute(`data-pm-slice`,`${i} ${a}${d?` -${d}`:``} ${JSON.stringify(n)}`),{dom:c,text:e.someProp(`clipboardTextSerializer`,n=>n(t,e))||t.content.textBetween(0,t.content.size,`
282
-
283
- `),slice:t}}function $U(e,t,n,r,i){let a=i.parent.type.spec.code,o,s;if(!n&&!t)return null;let c=!!t&&(r||a||!n);if(c){if(e.someProp(`transformPastedText`,n=>{t=n(t,a||r,e)}),a)return s=new KL(Z.from(e.state.schema.text(t.replace(/\r\n?/g,`
284
- `))),0,0),e.someProp(`transformPasted`,t=>{s=t(s,e,!0)}),s;let n=e.someProp(`clipboardTextParser`,n=>n(t,i,r,e));if(n)s=n;else{let n=i.marks(),{schema:r}=e.state,a=$R.fromSchema(r);o=document.createElement(`div`),t.split(/(?:\r\n?|\n)+/).forEach(e=>{let t=o.appendChild(document.createElement(`p`));e&&t.appendChild(a.serializeNode(r.text(e,n)))})}}else e.someProp(`transformPastedHTML`,t=>{n=t(n,e)}),o=fW(n),lH&&pW(o);let l=o&&o.querySelector(`[data-pm-slice]`),u=l&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(l.getAttribute(`data-pm-slice`)||``);if(u&&u[3])for(let e=+u[3];e>0;e--){let e=o.firstChild;for(;e&&e.nodeType!=1;)e=e.nextSibling;if(!e)break;o=e}if(s||=(e.someProp(`clipboardParser`)||e.someProp(`domParser`)||zR.fromSchema(e.state.schema)).parseSlice(o,{preserveWhitespace:!!(c||u),context:i,ruleFromNode(e){return e.nodeName==`BR`&&!e.nextSibling&&e.parentNode&&!eW.test(e.parentNode.nodeName)?{ignore:!0}:null}}),u)s=mW(oW(s,+u[1],+u[2]),u[4]);else if(s=KL.maxOpen(tW(s.content,i),!0),s.openStart||s.openEnd){let e=0,t=0;for(let t=s.content.firstChild;e<s.openStart&&!t.type.spec.isolating;e++,t=t.firstChild);for(let e=s.content.lastChild;t<s.openEnd&&!e.type.spec.isolating;t++,e=e.lastChild);s=oW(s,e,t)}return e.someProp(`transformPasted`,t=>{s=t(s,e,c)}),s}var eW=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function tW(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.index(n)),i,a=[];if(e.forEach(e=>{if(!a)return;let t=r.findWrapping(e.type),n;if(!t)return a=null;if(n=a.length&&i.length&&rW(t,i,e,a[a.length-1],0))a[a.length-1]=n;else{a.length&&(a[a.length-1]=iW(a[a.length-1],i.length));let n=nW(e,t);a.push(n),r=r.matchType(n.type),i=t}}),a)return Z.from(a)}return e}function nW(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,Z.from(e));return e}function rW(e,t,n,r,i){if(i<e.length&&i<t.length&&e[i]==t[i]){let a=rW(e,t,n,r.lastChild,i+1);if(a)return r.copy(r.content.replaceChild(r.childCount-1,a));if(r.contentMatchAt(r.childCount).matchType(i==e.length-1?n.type:e[i+1]))return r.copy(r.content.append(Z.from(nW(n,e,i+1))))}}function iW(e,t){if(t==0)return e;let n=e.content.replaceChild(e.childCount-1,iW(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(Z.empty,!0);return e.copy(n.append(r))}function aW(e,t,n,r,i,a){let o=t<0?e.firstChild:e.lastChild,s=o.content;return e.childCount>1&&(a=0),i<r-1&&(s=aW(s,t,n,r,i+1,a)),i>=n&&(s=t<0?o.contentMatchAt(0).fillBefore(s,a<=i).append(s):s.append(o.contentMatchAt(o.childCount).fillBefore(Z.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,o.copy(s))}function oW(e,t,n){return t<e.openStart&&(e=new KL(aW(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new KL(aW(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}var sW={thead:[`table`],tbody:[`table`],tfoot:[`table`],caption:[`table`],colgroup:[`table`],col:[`table`,`colgroup`],tr:[`table`,`tbody`],td:[`table`,`tbody`,`tr`],th:[`table`,`tbody`,`tr`]},cW=null;function lW(){return cW||=document.implementation.createHTMLDocument(`title`)}var uW=null;function dW(e){let t=window.trustedTypes;return t?(uW||=t.defaultPolicy||t.createPolicy(`ProseMirrorClipboard`,{createHTML:e=>e}),uW.createHTML(e)):e}function fW(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=lW().createElement(`div`),r=/<([a-z][^>\s]+)/i.exec(e),i;if((i=r&&sW[r[1].toLowerCase()])&&(e=i.map(e=>`<`+e+`>`).join(``)+e+i.map(e=>`</`+e+`>`).reverse().join(``)),n.innerHTML=dW(e),i)for(let e=0;e<i.length;e++)n=n.querySelector(i[e])||n;return n}function pW(e){let t=e.querySelectorAll(nH?`span:not([class]):not([style])`:`span.Apple-converted-space`);for(let n=0;n<t.length;n++){let r=t[n];r.childNodes.length==1&&r.textContent==`\xA0`&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(` `),r)}}function mW(e,t){if(!e.size)return e;let n=e.content.firstChild.type.schema,r;try{r=JSON.parse(t)}catch{return e}let{content:i,openStart:a,openEnd:o}=e;for(let e=r.length-2;e>=0;e-=2){let t=n.nodes[r[e]];if(!t||t.hasRequiredAttrs())break;i=Z.from(t.create(r[e+1],i)),a++,o++}return new KL(i,a,o)}var hW={},gW={},_W={touchstart:!0,touchmove:!0},vW=class{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:``,button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}};function yW(e){for(let t in hW){let n=hW[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=t=>{wW(e,t)&&!CW(e,t)&&(e.editable||!(t.type in gW))&&n(e,t)},_W[t]?{passive:!0}:void 0)}iH&&e.dom.addEventListener(`input`,()=>null),SW(e)}function bW(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function xW(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function SW(e){e.someProp(`handleDOMEvents`,t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=t=>CW(e,t))})}function CW(e,t){return e.someProp(`handleDOMEvents`,n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function wW(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function TW(e,t){!CW(e,t)&&hW[t.type]&&(e.editable||!(t.type in gW))&&hW[t.type](e,t)}gW.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!zW(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(cH&&nH&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),aH&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let t=Date.now();e.input.lastIOSEnter=t,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==t&&(e.someProp(`handleKeyDown`,t=>t(e,UV(13,`Enter`))),e.input.lastIOSEnter=0)},200)}else e.someProp(`handleKeyDown`,t=>t(e,n))||ZU(e,n)?n.preventDefault():bW(e,`key`)},gW.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)},gW.keypress=(e,t)=>{let n=t;if(zW(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||oH&&n.metaKey)return;if(e.someProp(`handleKeyPress`,t=>t(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof wB)||!r.$from.sameParent(r.$to)){let t=String.fromCharCode(n.charCode),i=()=>e.state.tr.insertText(t).scrollIntoView();!/[\r\n]/.test(t)&&!e.someProp(`handleTextInput`,n=>n(e,r.$from.pos,r.$to.pos,t,i))&&e.dispatch(i()),n.preventDefault()}};function EW(e){return{left:e.clientX,top:e.clientY}}function DW(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function OW(e,t,n,r,i){if(r==-1)return!1;let a=e.state.doc.resolve(r);for(let r=a.depth+1;r>0;r--)if(e.someProp(t,t=>r>a.depth?t(e,n,a.nodeAfter,a.before(r),i,!0):t(e,n,a.node(r),a.before(r),i,!1)))return!0;return!1}function kW(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let r=e.state.tr.setSelection(t);n==`pointer`&&r.setMeta(`pointer`,!0),e.dispatch(r)}function AW(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&EB.isSelectable(r)?(kW(e,new EB(n),`pointer`),!0):!1}function jW(e,t){if(t==-1)return!1;let n=e.state.selection,r,i;n instanceof EB&&(r=n.node);let a=e.state.doc.resolve(t);for(let e=a.depth+1;e>0;e--){let t=e>a.depth?a.nodeAfter:a.node(e);if(EB.isSelectable(t)){i=r&&n.$from.depth>0&&e>=n.$from.depth&&a.before(n.$from.depth+1)==n.$from.pos?a.before(n.$from.depth):a.before(e);break}}return i==null?!1:(kW(e,EB.create(e.state.doc,i),`pointer`),!0)}function MW(e,t,n,r,i){return OW(e,`handleClickOn`,t,n,r)||e.someProp(`handleClick`,n=>n(e,t,r))||(i?jW(e,n):AW(e,n))}function NW(e,t,n,r){return OW(e,`handleDoubleClickOn`,t,n,r)||e.someProp(`handleDoubleClick`,n=>n(e,t,r))}function PW(e,t,n,r){return OW(e,`handleTripleClickOn`,t,n,r)||e.someProp(`handleTripleClick`,n=>n(e,t,r))||FW(e,n,r)}function FW(e,t,n){if(n.button!=0)return!1;let r=e.state.doc;if(t==-1)return r.inlineContent?(kW(e,wB.create(r,0,r.content.size),`pointer`),!0):!1;let i=r.resolve(t);for(let t=i.depth+1;t>0;t--){let n=t>i.depth?i.nodeAfter:i.node(t),a=i.before(t);if(n.inlineContent)kW(e,wB.create(r,a+1,a+1+n.content.size),`pointer`);else if(EB.isSelectable(n))kW(e,EB.create(r,a),`pointer`);else continue;return!0}}function IW(e){return KW(e)}var LW=oH?`metaKey`:`ctrlKey`;hW.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=IW(e),i=Date.now(),a=`singleClick`;i-e.input.lastClick.time<500&&DW(n,e.input.lastClick)&&!n[LW]&&e.input.lastClick.button==n.button&&(e.input.lastClick.type==`singleClick`?a=`doubleClick`:e.input.lastClick.type==`doubleClick`&&(a=`tripleClick`)),e.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:a,button:n.button};let o=e.posAtCoords(EW(n));o&&(a==`singleClick`?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new RW(e,o,n,!!r)):(a==`doubleClick`?NW:PW)(e,o.pos,o.inside,n)?n.preventDefault():bW(e,`pointer`))};var RW=class{constructor(e,t,n,r){this.view=e,this.pos=t,this.event=n,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!n[LW],this.allowDefault=n.shiftKey;let i,a;if(t.inside>-1)i=e.state.doc.nodeAt(t.inside),a=t.inside;else{let n=e.state.doc.resolve(t.pos);i=n.parent,a=n.depth?n.before():0}let o=r?null:n.target,s=o?e.docView.nearestDesc(o,!0):null;this.target=s&&s.nodeDOM.nodeType==1?s.nodeDOM:null;let{selection:c}=e.state;n.button==0&&(i.type.spec.draggable&&i.type.spec.selectable!==!1||c instanceof EB&&c.from<=a&&c.to>a)&&(this.mightDrag={node:i,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&eH&&!this.target.hasAttribute(`contentEditable`))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute(`contentEditable`,`false`)},20),this.view.domObserver.start()),e.root.addEventListener(`mouseup`,this.up=this.up.bind(this)),e.root.addEventListener(`mousemove`,this.move=this.move.bind(this)),bW(e,`pointer`)}done(){this.view.root.removeEventListener(`mouseup`,this.up),this.view.root.removeEventListener(`mousemove`,this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute(`draggable`),this.mightDrag.setUneditable&&this.target.removeAttribute(`contentEditable`),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>bU(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(EW(e))),this.updateAllowDefault(e),this.allowDefault||!t?bW(this.view,`pointer`):MW(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||iH&&this.mightDrag&&!this.mightDrag.node.isAtom||nH&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(kW(this.view,bB.near(this.view.state.doc.resolve(t.pos)),`pointer`),e.preventDefault()):bW(this.view,`pointer`)}move(e){this.updateAllowDefault(e),bW(this.view,`pointer`),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}};hW.touchstart=e=>{e.input.lastTouch=Date.now(),IW(e),bW(e,`pointer`)},hW.touchmove=e=>{e.input.lastTouch=Date.now(),bW(e,`pointer`)},hW.contextmenu=e=>IW(e);function zW(e,t){return e.composing?!0:iH&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}var BW=cH?5e3:-1;gW.compositionstart=gW.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof wB&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(e=>e.type.spec.inclusive===!1)||nH&&sH&&VW(e)))e.markCursor=e.state.storedMarks||n.marks(),KW(e,!0),e.markCursor=null;else if(KW(e,!t.selection.empty),eH&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let t=e.domSelectionRange();for(let n=t.focusNode,r=t.focusOffset;n&&n.nodeType==1&&r!=0;){let t=r<0?n.lastChild:n.childNodes[r-1];if(!t)break;if(t.nodeType==3){let n=e.domSelection();n&&n.collapse(t,t.nodeValue.length);break}else n=t,r=-1}}e.input.composing=!0}HW(e,BW)};function VW(e){let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(!t||t.nodeType!=1||n>=t.childNodes.length)return!1;let r=t.childNodes[n];return r.nodeType==1&&r.contentEditable==`false`}gW.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.badSafariComposition?e.domObserver.forceFlush():e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,HW(e,20))};function HW(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>KW(e),t))}function UW(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=GW());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function WW(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=RV(t.focusNode,t.focusOffset),r=zV(t.focusNode,t.focusOffset);if(n&&r&&n!=r){let t=r.pmViewDesc,i=e.domObserver.lastChangedTextNode;if(n==i||r==i)return i;if(!t||!t.isText(r.nodeValue))return r;if(e.input.compositionNode==r){let e=n.pmViewDesc;if(!(!e||!e.isText(n.nodeValue)))return r}}return n||r}function GW(){let e=document.createEvent(`Event`);return e.initEvent(`event`,!0,!0),e.timeStamp}function KW(e,t=!1){if(!(cH&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),UW(e),t||e.docView&&e.docView.dirty){let n=vU(e),r=e.state.selection;return n&&!n.eq(r)?e.dispatch(e.state.tr.setSelection(n)):(e.markCursor||t)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}function qW(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement(`div`));n.appendChild(t),n.style.cssText=`position: fixed; left: -10000px; top: 10px`;let r=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}var JW=QV&&$V<15||aH&&uH<604;hW.copy=gW.cut=(e,t)=>{let n=t,r=e.state.selection,i=n.type==`cut`;if(r.empty)return;let a=JW?null:n.clipboardData,{dom:o,text:s}=QU(e,r.content());a?(n.preventDefault(),a.clearData(),a.setData(`text/html`,o.innerHTML),a.setData(`text/plain`,s)):qW(e,o),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta(`uiEvent`,`cut`))};function YW(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function XW(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?`textarea`:`div`));n||(r.contentEditable=`true`),r.style.cssText=`position: fixed; left: -10000px; top: 10px`,r.focus();let i=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?ZW(e,r.value,null,i,t):ZW(e,r.textContent,r.innerHTML,i,t)},50)}function ZW(e,t,n,r,i){let a=$U(e,t,n,r,e.state.selection.$from);if(e.someProp(`handlePaste`,t=>t(e,i,a||KL.empty)))return!0;if(!a)return!1;let o=YW(a),s=o?e.state.tr.replaceSelectionWith(o,r):e.state.tr.replaceSelection(a);return e.dispatch(s.scrollIntoView().setMeta(`paste`,!0).setMeta(`uiEvent`,`paste`)),!0}function QW(e){let t=e.getData(`text/plain`)||e.getData(`Text`);if(t)return t;let n=e.getData(`text/uri-list`);return n?n.replace(/\r?\n/g,` `):``}gW.paste=(e,t)=>{let n=t;if(e.composing&&!cH)return;let r=JW?null:n.clipboardData,i=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&ZW(e,QW(r),r.getData(`text/html`),i,n)?n.preventDefault():XW(e,n)};var $W=class{constructor(e,t,n){this.slice=e,this.move=t,this.node=n}},eG=oH?`altKey`:`ctrlKey`;function tG(e,t){let n;return e.someProp(`dragCopies`,e=>{n||=e(t)}),n==null?!t[eG]:!n}hW.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=e.state.selection,a=i.empty?null:e.posAtCoords(EW(n)),o;if(!(a&&a.pos>=i.from&&a.pos<=(i instanceof EB?i.to-1:i.to))){if(r&&r.mightDrag)o=EB.create(e.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let t=e.docView.nearestDesc(n.target,!0);t&&t.node.type.spec.draggable&&t!=e.docView&&(o=EB.create(e.state.doc,t.posBefore))}}let{dom:s,text:c,slice:l}=QU(e,(o||e.state.selection).content());(!n.dataTransfer.files.length||!nH||rH>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(JW?`Text`:`text/html`,s.innerHTML),n.dataTransfer.effectAllowed=`copyMove`,JW||n.dataTransfer.setData(`text/plain`,c),e.dragging=new $W(l,tG(e,n),o)},hW.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},gW.dragover=gW.dragenter=(e,t)=>t.preventDefault(),gW.drop=(e,t)=>{try{nG(e,t,e.dragging)}finally{e.dragging=null}};function nG(e,t,n){if(!t.dataTransfer)return;let r=e.posAtCoords(EW(t));if(!r)return;let i=e.state.doc.resolve(r.pos),a=n&&n.slice;a?e.someProp(`transformPasted`,t=>{a=t(a,e,!1)}):a=$U(e,QW(t.dataTransfer),JW?null:t.dataTransfer.getData(`text/html`),!1,i);let o=!!(n&&tG(e,t));if(e.someProp(`handleDrop`,n=>n(e,t,a||KL.empty,o))){t.preventDefault();return}if(!a)return;t.preventDefault();let s=a?$z(e.state.doc,i.pos,a):i.pos;s??=i.pos;let c=e.state.tr;if(o){let{node:e}=n;e?e.replace(c):c.deleteSelection()}let l=c.mapping.map(s),u=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,d=c.doc;if(u?c.replaceRangeWith(l,l,a.content.firstChild):c.replaceRange(l,l,a),c.doc.eq(d))return;let f=c.doc.resolve(l);if(u&&EB.isSelectable(a.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(a.content.firstChild))c.setSelection(new EB(f));else{let t=c.mapping.map(s);c.mapping.maps[c.mapping.maps.length-1].forEach((e,n,r,i)=>t=i),c.setSelection(kU(e,f,c.doc.resolve(t)))}e.focus(),e.dispatch(c.setMeta(`uiEvent`,`drop`))}hW.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add(`ProseMirror-focused`),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&bU(e)},20))},hW.blur=(e,t)=>{let n=t;e.focused&&=(e.domObserver.stop(),e.dom.classList.remove(`ProseMirror-focused`),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),!1)},hW.beforeinput=(e,t)=>{if(nH&&cH&&t.inputType==`deleteContentBackward`){e.domObserver.flushSoon();let{domChangeCount:t}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=t||(e.dom.blur(),e.focus(),e.someProp(`handleKeyDown`,t=>t(e,UV(8,`Backspace`)))))return;let{$cursor:n}=e.state.selection;n&&n.pos>0&&e.dispatch(e.state.tr.delete(n.pos-1,n.pos).scrollIntoView())},50)}};for(let e in gW)hW[e]=gW[e];function rG(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}var iG=class e{constructor(e,t){this.toDOM=e,this.spec=t||lG,this.side=this.spec.side||0}map(e,t,n,r){let{pos:i,deleted:a}=e.mapResult(t.from+r,this.side<0?-1:1);return a?null:new sG(i-n,i-n,this)}valid(){return!0}eq(t){return this==t||t instanceof e&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&rG(this.spec,t.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}},aG=class e{constructor(e,t){this.attrs=e,this.spec=t||lG}map(e,t,n,r){let i=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,a=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return i>=a?null:new sG(i,a,this)}valid(e,t){return t.from<t.to}eq(t){return this==t||t instanceof e&&rG(this.attrs,t.attrs)&&rG(this.spec,t.spec)}static is(t){return t.type instanceof e}destroy(){}},oG=class e{constructor(e,t){this.attrs=e,this.spec=t||lG}map(e,t,n,r){let i=e.mapResult(t.from+r,1);if(i.deleted)return null;let a=e.mapResult(t.to+r,-1);return a.deleted||a.pos<=i.pos?null:new sG(i.pos-n,a.pos-n,this)}valid(e,t){let{index:n,offset:r}=e.content.findIndex(t.from),i;return r==t.from&&!(i=e.child(n)).isText&&r+i.nodeSize==t.to}eq(t){return this==t||t instanceof e&&rG(this.attrs,t.attrs)&&rG(this.spec,t.spec)}destroy(){}},sG=class e{constructor(e,t,n){this.from=e,this.to=t,this.type=n}copy(t,n){return new e(t,n,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,n){return this.type.map(e,this,t,n)}static widget(t,n,r){return new e(t,t,new iG(n,r))}static inline(t,n,r,i){return new e(t,n,new aG(r,i))}static node(t,n,r,i){return new e(t,n,new oG(r,i))}get spec(){return this.type.spec}get inline(){return this.type instanceof aG}get widget(){return this.type instanceof iG}},cG=[],lG={},uG=class e{constructor(e,t){this.local=e.length?e:cG,this.children=t.length?t:cG}static create(e,t){return t.length?vG(t,e,0,lG):dG}find(e,t,n){let r=[];return this.findInner(e??0,t??1e9,r,0,n),r}findInner(e,t,n,r,i){for(let a=0;a<this.local.length;a++){let o=this.local[a];o.from<=t&&o.to>=e&&(!i||i(o.spec))&&n.push(o.copy(o.from+r,o.to+r))}for(let a=0;a<this.children.length;a+=3)if(this.children[a]<t&&this.children[a+1]>e){let o=this.children[a]+1;this.children[a+2].findInner(e-o,t-o,n,r+o,i)}}map(e,t,n){return this==dG||e.maps.length==0?this:this.mapInner(e,t,0,0,n||lG)}mapInner(t,n,r,i,a){let o;for(let e=0;e<this.local.length;e++){let s=this.local[e].map(t,r,i);s&&s.type.valid(n,s)?(o||=[]).push(s):a.onRemove&&a.onRemove(this.local[e].spec)}return this.children.length?pG(this.children,o||[],t,n,r,i,a):o?new e(o.sort(yG),cG):dG}add(t,n){return n.length?this==dG?e.create(t,n):this.addInner(t,n,0):this}addInner(t,n,r){let i,a=0;t.forEach((e,t)=>{let o=t+r,s;if(s=gG(n,e,o)){for(i||=this.children.slice();a<i.length&&i[a]<t;)a+=3;i[a]==t?i[a+2]=i[a+2].addInner(e,s,o+1):i.splice(a,0,t,t+e.nodeSize,vG(s,e,o+1,lG)),a+=3}});let o=mG(a?_G(n):n,-r);for(let e=0;e<o.length;e++)o[e].type.valid(t,o[e])||o.splice(e--,1);return new e(o.length?this.local.concat(o).sort(yG):this.local,i||this.children)}remove(e){return e.length==0||this==dG?this:this.removeInner(e,0)}removeInner(t,n){let r=this.children,i=this.local;for(let e=0;e<r.length;e+=3){let i,a=r[e]+n,o=r[e+1]+n;for(let e=0,n;e<t.length;e++)(n=t[e])&&n.from>a&&n.to<o&&(t[e]=null,(i||=[]).push(n));if(!i)continue;r==this.children&&(r=this.children.slice());let s=r[e+2].removeInner(i,a+1);s==dG?(r.splice(e,3),e-=3):r[e+2]=s}if(i.length){for(let e=0,r;e<t.length;e++)if(r=t[e])for(let e=0;e<i.length;e++)i[e].eq(r,n)&&(i==this.local&&(i=this.local.slice()),i.splice(e--,1))}return r==this.children&&i==this.local?this:i.length||r.length?new e(i,r):dG}forChild(t,n){if(this==dG)return this;if(n.isLeaf)return e.empty;let r,i;for(let e=0;e<this.children.length;e+=3)if(this.children[e]>=t){this.children[e]==t&&(r=this.children[e+2]);break}let a=t+1,o=a+n.content.size;for(let e=0;e<this.local.length;e++){let t=this.local[e];if(t.from<o&&t.to>a&&t.type instanceof aG){let e=Math.max(a,t.from)-a,n=Math.min(o,t.to)-a;e<n&&(i||=[]).push(t.copy(e,n))}}if(i){let t=new e(i.sort(yG),cG);return r?new fG([t,r]):t}return r||dG}eq(t){if(this==t)return!0;if(!(t instanceof e)||this.local.length!=t.local.length||this.children.length!=t.children.length)return!1;for(let e=0;e<this.local.length;e++)if(!this.local[e].eq(t.local[e]))return!1;for(let e=0;e<this.children.length;e+=3)if(this.children[e]!=t.children[e]||this.children[e+1]!=t.children[e+1]||!this.children[e+2].eq(t.children[e+2]))return!1;return!0}locals(e){return bG(this.localsInner(e))}localsInner(e){if(this==dG)return cG;if(e.inlineContent||!this.local.some(aG.is))return this.local;let t=[];for(let e=0;e<this.local.length;e++)this.local[e].type instanceof aG||t.push(this.local[e]);return t}forEachSet(e){e(this)}};uG.empty=new uG([],[]),uG.removeOverlap=bG;var dG=uG.empty,fG=class e{constructor(e){this.members=e}map(t,n){let r=this.members.map(e=>e.map(t,n,lG));return e.from(r)}forChild(t,n){if(n.isLeaf)return uG.empty;let r=[];for(let i=0;i<this.members.length;i++){let a=this.members[i].forChild(t,n);a!=dG&&(a instanceof e?r=r.concat(a.members):r.push(a))}return e.from(r)}eq(t){if(!(t instanceof e)||t.members.length!=this.members.length)return!1;for(let e=0;e<this.members.length;e++)if(!this.members[e].eq(t.members[e]))return!1;return!0}locals(e){let t,n=!0;for(let r=0;r<this.members.length;r++){let i=this.members[r].localsInner(e);if(i.length)if(!t)t=i;else{n&&=(t=t.slice(),!1);for(let e=0;e<i.length;e++)t.push(i[e])}}return t?bG(n?t:t.sort(yG)):cG}static from(t){switch(t.length){case 0:return dG;case 1:return t[0];default:return new e(t.every(e=>e instanceof uG)?t:t.reduce((e,t)=>e.concat(t instanceof uG?t:t.members),[]))}}forEachSet(e){for(let t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}};function pG(e,t,n,r,i,a,o){let s=e.slice();for(let e=0,t=a;e<n.maps.length;e++){let r=0;n.maps[e].forEach((e,n,i,a)=>{let o=a-i-(n-e);for(let i=0;i<s.length;i+=3){let a=s[i+1];if(a<0||e>a+t-r)continue;let c=s[i]+t-r;n>=c?s[i+1]=e<=c?-2:-1:e>=t&&o&&(s[i]+=o,s[i+1]+=o)}r+=o}),t=n.maps[e].map(t,-1)}let c=!1;for(let t=0;t<s.length;t+=3)if(s[t+1]<0){if(s[t+1]==-2){c=!0,s[t+1]=-1;continue}let l=n.map(e[t]+a),u=l-i;if(u<0||u>=r.content.size){c=!0;continue}let d=n.map(e[t+1]+a,-1)-i,{index:f,offset:p}=r.content.findIndex(u),m=r.maybeChild(f);if(m&&p==u&&p+m.nodeSize==d){let r=s[t+2].mapInner(n,m,l+1,e[t]+a+1,o);r==dG?(s[t+1]=-2,c=!0):(s[t]=u,s[t+1]=d,s[t+2]=r)}else c=!0}if(c){let c=vG(hG(s,e,t,n,i,a,o),r,0,o);t=c.local;for(let e=0;e<s.length;e+=3)s[e+1]<0&&(s.splice(e,3),e-=3);for(let e=0,t=0;e<c.children.length;e+=3){let n=c.children[e];for(;t<s.length&&s[t]<n;)t+=3;s.splice(t,0,c.children[e],c.children[e+1],c.children[e+2])}}return new uG(t.sort(yG),s)}function mG(e,t){if(!t||!e.length)return e;let n=[];for(let r=0;r<e.length;r++){let i=e[r];n.push(new sG(i.from+t,i.to+t,i.type))}return n}function hG(e,t,n,r,i,a,o){function s(e,t){for(let a=0;a<e.local.length;a++){let s=e.local[a].map(r,i,t);s?n.push(s):o.onRemove&&o.onRemove(e.local[a].spec)}for(let n=0;n<e.children.length;n+=3)s(e.children[n+2],e.children[n]+t+1)}for(let n=0;n<e.length;n+=3)e[n+1]==-1&&s(e[n+2],t[n]+a+1);return n}function gG(e,t,n){if(t.isLeaf)return null;let r=n+t.nodeSize,i=null;for(let t=0,a;t<e.length;t++)(a=e[t])&&a.from>n&&a.to<r&&((i||=[]).push(a),e[t]=null);return i}function _G(e){let t=[];for(let n=0;n<e.length;n++)e[n]!=null&&t.push(e[n]);return t}function vG(e,t,n,r){let i=[],a=!1;t.forEach((t,o)=>{let s=gG(e,t,o+n);if(s){a=!0;let e=vG(s,t,n+o+1,r);e!=dG&&i.push(o,o+t.nodeSize,e)}});let o=mG(a?_G(e):e,-n).sort(yG);for(let e=0;e<o.length;e++)o[e].type.valid(t,o[e])||(r.onRemove&&r.onRemove(o[e].spec),o.splice(e--,1));return o.length||i.length?new uG(o,i):dG}function yG(e,t){return e.from-t.from||e.to-t.to}function bG(e){let t=e;for(let n=0;n<t.length-1;n++){let r=t[n];if(r.from!=r.to)for(let i=n+1;i<t.length;i++){let a=t[i];if(a.from==r.from){a.to!=r.to&&(t==e&&(t=e.slice()),t[i]=a.copy(a.from,r.to),xG(t,i+1,a.copy(r.to,a.to)));continue}else{a.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,a.from),xG(t,i,r.copy(a.from,r.to)));break}}}return t}function xG(e,t,n){for(;t<e.length&&yG(n,e[t])>0;)t++;e.splice(t,0,n)}function SG(e){let t=[];return e.someProp(`decorations`,n=>{let r=n(e.state);r&&r!=dG&&t.push(r)}),e.cursorWrapper&&t.push(uG.create(e.state.doc,[e.cursorWrapper.deco])),fG.from(t)}var CG={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},wG=QV&&$V<=11,TG=class{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}},EG=class{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new TG,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(t=>{for(let e=0;e<t.length;e++)this.queue.push(t[e]);QV&&$V<=11&&t.some(e=>e.type==`childList`&&e.removedNodes.length||e.type==`characterData`&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():iH&&e.composing&&t.some(e=>e.type==`childList`&&e.target.nodeName==`TR`)?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),wG&&(this.onCharData=e=>{this.queue.push({target:e.target,type:`characterData`,oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,CG)),this.onCharData&&this.view.dom.addEventListener(`DOMCharacterDataModified`,this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener(`DOMCharacterDataModified`,this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener(`selectionchange`,this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener(`selectionchange`,this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(AU(this.view)){if(this.suppressingSelectionUpdates)return bU(this.view);if(QV&&$V<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&PV(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t=new Set,n;for(let n=e.focusNode;n;n=AV(n))t.add(n);for(let r=e.anchorNode;r;r=AV(r))if(t.has(r)){n=r;break}let r=n&&this.view.docView.nearestDesc(n);if(r&&r.ignoreMutation({type:`selection`,target:n.nodeType==3?n.parentNode:n}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.pendingRecords();t.length&&(this.queue=[]);let n=e.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&AU(e)&&!this.ignoreSelectionChange(n),i=-1,a=-1,o=!1,s=[];if(e.editable)for(let e=0;e<t.length;e++){let n=this.registerMutation(t[e],s);n&&(i=i<0?n.from:Math.min(n.from,i),a=a<0?n.to:Math.max(n.to,a),n.typeOver&&(o=!0))}if(s.some(e=>e.nodeName==`BR`)&&(e.input.lastKeyCode==8||e.input.lastKeyCode==46)){for(let e of s)if(e.nodeName==`BR`&&e.parentNode){let t=e.nextSibling;for(;t&&t.nodeType==1;){if(t.contentEditable==`false`){e.parentNode.removeChild(e);break}t=t.firstChild}}}else if(eH&&s.length){let t=s.filter(e=>e.nodeName==`BR`);if(t.length==2){let[e,n]=t;e.parentNode&&e.parentNode.parentNode==n.parentNode?n.remove():e.remove()}else{let{focusNode:n}=this.currentSelection;for(let r of t){let t=r.parentNode;t&&t.nodeName==`LI`&&(!n||MG(e,n)!=t)&&r.remove()}}}let c=null;i<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&HV(n)&&(c=vU(e))&&c.eq(bB.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,bU(e),this.currentSelection.set(n),e.scrollToSelection()):(i>-1||r)&&(i>-1&&(e.docView.markDirty(i,a),kG(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,NG(e,s)),this.handleDOMChange(i,a,o,s),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(n)||bU(e),this.currentSelection.set(n))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let n=this.view.docView.nearestDesc(e.target);if(e.type==`attributes`&&(n==this.view.docView||e.attributeName==`contenteditable`||e.attributeName==`style`&&!e.oldValue&&!e.target.getAttribute(`style`))||!n||n.ignoreMutation(e))return null;if(e.type==`childList`){for(let n=0;n<e.addedNodes.length;n++){let r=e.addedNodes[n];t.push(r),r.nodeType==3&&(this.lastChangedTextNode=r)}if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};let r=e.previousSibling,i=e.nextSibling;if(QV&&$V<=11&&e.addedNodes.length)for(let t=0;t<e.addedNodes.length;t++){let{previousSibling:n,nextSibling:a}=e.addedNodes[t];(!n||Array.prototype.indexOf.call(e.addedNodes,n)<0)&&(r=n),(!a||Array.prototype.indexOf.call(e.addedNodes,a)<0)&&(i=a)}let a=r&&r.parentNode==e.target?kV(r)+1:0,o=n.localPosFromDOM(e.target,a,-1),s=i&&i.parentNode==e.target?kV(i):e.target.childNodes.length;return{from:o,to:n.localPosFromDOM(e.target,s,1)}}else if(e.type==`attributes`)return{from:n.posAtStart-n.border,to:n.posAtEnd+n.border};else return this.lastChangedTextNode=e.target,{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}}},DG=new WeakMap,OG=!1;function kG(e){if(!DG.has(e)&&(DG.set(e,null),[`normal`,`nowrap`,`pre-line`].indexOf(getComputedStyle(e.dom).whiteSpace)!==-1)){if(e.requiresGeckoHackNode=eH,OG)return;console.warn(`ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package.`),OG=!0}}function AG(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,a=t.endOffset,o=e.domAtPos(e.state.selection.anchor);return PV(o.node,o.offset,i,a)&&([n,r,i,a]=[i,a,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}}function jG(e,t){if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return AG(e,n)}let n;function r(e){e.preventDefault(),e.stopImmediatePropagation(),n=e.getTargetRanges()[0]}return e.dom.addEventListener(`beforeinput`,r,!0),document.execCommand(`indent`),e.dom.removeEventListener(`beforeinput`,r,!0),n?AG(e,n):null}function MG(e,t){for(let n=t.parentNode;n&&n!=e.dom;n=n.parentNode){let t=e.docView.nearestDesc(n,!0);if(t&&t.node.isBlock)return n}return null}function NG(e,t){let{focusNode:n,focusOffset:r}=e.domSelectionRange();for(let i of t)if(i.parentNode?.nodeName==`TR`){let t=i.nextSibling;for(;t&&t.nodeName!=`TD`&&t.nodeName!=`TH`;)t=t.nextSibling;if(t){let a=t;for(;;){let e=a.firstChild;if(!e||e.nodeType!=1||e.contentEditable==`false`||/^(BR|IMG)$/.test(e.nodeName))break;a=e}a.insertBefore(i,a.firstChild),n==i&&e.domSelection().collapse(i,r)}else i.parentNode.removeChild(i)}}function PG(e,t,n){let{node:r,fromOffset:i,toOffset:a,from:o,to:s}=e.docView.parseRange(t,n),c=e.domSelectionRange(),l,u=c.anchorNode;if(u&&e.dom.contains(u.nodeType==1?u:u.parentNode)&&(l=[{node:u,offset:c.anchorOffset}],HV(c)||l.push({node:c.focusNode,offset:c.focusOffset})),nH&&e.input.lastKeyCode===8)for(let e=a;e>i;e--){let t=r.childNodes[e-1],n=t.pmViewDesc;if(t.nodeName==`BR`&&!n){a=e;break}if(!n||n.size)break}let d=e.state.doc,f=e.someProp(`domParser`)||zR.fromSchema(e.state.schema),p=d.resolve(o),m=null,h=f.parse(r,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:i,to:a,preserveWhitespace:p.parent.type.whitespace==`pre`?`full`:!0,findPositions:l,ruleFromNode:FG,context:p});if(l&&l[0].pos!=null){let e=l[0].pos,t=l[1]&&l[1].pos;t??=e,m={anchor:e+o,head:t+o}}return{doc:h,sel:m,from:o,to:s}}function FG(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName==`BR`&&e.parentNode){if(iH&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let e=document.createElement(`div`);return e.appendChild(document.createElement(`li`)),{skip:e}}else if(e.parentNode.lastChild==e||iH&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName==`IMG`&&e.getAttribute(`mark-placeholder`))return{ignore:!0};return null}var IG=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function LG(e,t,n,r,i){let a=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let t=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,n=vU(e,t);if(n&&!e.state.selection.eq(n)){if(nH&&cH&&e.input.lastKeyCode===13&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp(`handleKeyDown`,t=>t(e,UV(13,`Enter`))))return;let r=e.state.tr.setSelection(n);t==`pointer`?r.setMeta(`pointer`,!0):t==`key`&&r.scrollIntoView(),a&&r.setMeta(`composition`,a),e.dispatch(r)}return}let o=e.state.doc.resolve(t),s=o.sharedDepth(n);t=o.before(s+1),n=e.state.doc.resolve(n).after(s+1);let c=e.state.selection,l=PG(e,t,n),u=e.state.doc,d=u.slice(l.from,l.to),f,p;e.input.lastKeyCode===8&&Date.now()-100<e.input.lastKeyCodeTime?(f=e.state.selection.to,p=`end`):(f=e.state.selection.from,p=`start`),e.input.lastKeyCode=null;let m=HG(d.content,l.doc.content,l.from,f,p);if(m&&e.input.domChangeCount++,(aH&&e.input.lastIOSEnter>Date.now()-225||cH)&&i.some(e=>e.nodeType==1&&!IG.test(e.nodeName))&&(!m||m.endA>=m.endB)&&e.someProp(`handleKeyDown`,t=>t(e,UV(13,`Enter`)))){e.input.lastIOSEnter=0;return}if(!m)if(r&&c instanceof wB&&!c.empty&&c.$head.sameParent(c.$anchor)&&!e.composing&&!(l.sel&&l.sel.anchor!=l.sel.head))m={start:c.from,endA:c.to,endB:c.to};else{if(l.sel){let t=RG(e,e.state.doc,l.sel);if(t&&!t.eq(e.state.selection)){let n=e.state.tr.setSelection(t);a&&n.setMeta(`composition`,a),e.dispatch(n)}}return}e.state.selection.from<e.state.selection.to&&m.start==m.endB&&e.state.selection instanceof wB&&(m.start>e.state.selection.from&&m.start<=e.state.selection.from+2&&e.state.selection.from>=l.from?m.start=e.state.selection.from:m.endA<e.state.selection.to&&m.endA>=e.state.selection.to-2&&e.state.selection.to<=l.to&&(m.endB+=e.state.selection.to-m.endA,m.endA=e.state.selection.to)),QV&&$V<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>l.from&&l.doc.textBetween(m.start-l.from-1,m.start-l.from+1)==` \xA0`&&(m.start--,m.endA--,m.endB--);let h=l.doc.resolveNoCache(m.start-l.from),g=l.doc.resolveNoCache(m.endB-l.from),_=u.resolve(m.start),v=h.sameParent(g)&&h.parent.inlineContent&&_.end()>=m.endA;if((aH&&e.input.lastIOSEnter>Date.now()-225&&(!v||i.some(e=>e.nodeName==`DIV`||e.nodeName==`P`))||!v&&h.pos<l.doc.content.size&&(!h.sameParent(g)||!h.parent.inlineContent)&&h.pos<g.pos&&!/\S/.test(l.doc.textBetween(h.pos,g.pos,``,``)))&&e.someProp(`handleKeyDown`,t=>t(e,UV(13,`Enter`)))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>m.start&&BG(u,m.start,m.endA,h,g)&&e.someProp(`handleKeyDown`,t=>t(e,UV(8,`Backspace`)))){cH&&nH&&e.domObserver.suppressSelectionUpdates();return}nH&&m.endB==m.start&&(e.input.lastChromeDelete=Date.now()),cH&&!v&&h.start()!=g.start()&&g.parentOffset==0&&h.depth==g.depth&&l.sel&&l.sel.anchor==l.sel.head&&l.sel.head==m.endA&&(m.endB-=2,g=l.doc.resolveNoCache(m.endB-l.from),setTimeout(()=>{e.someProp(`handleKeyDown`,function(t){return t(e,UV(13,`Enter`))})},20));let y=m.start,b=m.endA,x=t=>{let n=t||e.state.tr.replace(y,b,l.doc.slice(m.start-l.from,m.endB-l.from));if(l.sel){let t=RG(e,n.doc,l.sel);t&&!(nH&&e.composing&&t.empty&&(m.start!=m.endB||e.input.lastChromeDelete<Date.now()-100)&&(t.head==y||t.head==n.mapping.map(b)-1)||QV&&t.empty&&t.head==y)&&n.setSelection(t)}return a&&n.setMeta(`composition`,a),n.scrollIntoView()},S;if(v)if(h.pos==g.pos){QV&&$V<=11&&h.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>bU(e),20));let t=x(e.state.tr.delete(y,b)),n=u.resolve(m.start).marksAcross(u.resolve(m.endA));n&&t.ensureMarks(n),e.dispatch(t)}else if(m.endA==m.endB&&(S=zG(h.parent.content.cut(h.parentOffset,g.parentOffset),_.parent.content.cut(_.parentOffset,m.endA-_.start())))){let t=x(e.state.tr);S.type==`add`?t.addMark(y,b,S.mark):t.removeMark(y,b,S.mark),e.dispatch(t)}else if(h.parent.child(h.index()).isText&&h.index()==g.index()-+!g.textOffset){let t=h.parent.textBetween(h.parentOffset,g.parentOffset),n=()=>x(e.state.tr.insertText(t,y,b));e.someProp(`handleTextInput`,r=>r(e,y,b,t,n))||e.dispatch(n())}else e.dispatch(x());else e.dispatch(x())}function RG(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:kU(e,t.resolve(n.anchor),t.resolve(n.head))}function zG(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,i=n,a=r,o,s,c;for(let e=0;e<r.length;e++)i=r[e].removeFromSet(i);for(let e=0;e<n.length;e++)a=n[e].removeFromSet(a);if(i.length==1&&a.length==0)s=i[0],o=`add`,c=e=>e.mark(s.addToSet(e.marks));else if(i.length==0&&a.length==1)s=a[0],o=`remove`,c=e=>e.mark(s.removeFromSet(e.marks));else return null;let l=[];for(let e=0;e<t.childCount;e++)l.push(c(t.child(e)));if(Z.from(l).eq(e))return{mark:s,type:o}}function BG(e,t,n,r,i){if(n-t<=i.pos-r.pos||VG(r,!0,!1)<i.pos)return!1;let a=e.resolve(t);if(!r.parent.isTextblock){let e=a.nodeAfter;return e!=null&&n==t+e.nodeSize}if(a.parentOffset<a.parent.content.size||!a.parent.isTextblock)return!1;let o=e.resolve(VG(a,!0,!0));return!o.parent.isTextblock||o.pos>n||VG(o,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(o.parent.content)}function VG(e,t,n){let r=e.depth,i=t?e.end():e.pos;for(;r>0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,i++,t=!1;if(n){let t=e.node(r).maybeChild(e.indexAfter(r));for(;t&&!t.isLeaf;)t=t.firstChild,i++}return i}function HG(e,t,n,r,i){let a=e.findDiffStart(t,n);if(a==null)return null;let{a:o,b:s}=e.findDiffEnd(t,n+e.size,n+t.size);if(i==`end`){let e=Math.max(0,a-Math.min(o,s));r-=o+e-a}if(o<a&&e.size<t.size){let e=r<=a&&r>=o?a-r:0;a-=e,a&&a<t.size&&UG(t.textBetween(a-1,a+1))&&(a+=e?1:-1),s=a+(s-o),o=a}else if(s<a){let t=r<=a&&r>=s?a-r:0;a-=t,a&&a<e.size&&UG(e.textBetween(a-1,a+1))&&(a+=t?1:-1),o=a+(o-s),s=a}return{start:a,endA:o,endB:s}}function UG(e){if(e.length!=2)return!1;let t=e.charCodeAt(0),n=e.charCodeAt(1);return t>=56320&&t<=57343&&n>=55296&&n<=56319}var WG=class{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new vW,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(ZG),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement(`div`),e&&(e.appendChild?e.appendChild(this.dom):typeof e==`function`?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=qG(this),KG(this),this.nodeViews=YG(this),this.docView=QH(this.state.doc,GG(this),SG(this),this.dom,this),this.domObserver=new EG(this,(e,t,n,r)=>LG(this,e,t,n,r)),this.domObserver.start(),yW(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&SW(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(ZG),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let e in this._props)t[e]=this._props[e];t.state=this.state;for(let n in e)t[n]=e[n];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){let n=this.state,r=!1,i=!1;e.storedMarks&&this.composing&&(UW(this),i=!0),this.state=e;let a=n.plugins!=e.plugins||this._props.plugins!=t.plugins;if(a||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let e=YG(this);XG(e,this.nodeViews)&&(this.nodeViews=e,r=!0)}(a||t.handleDOMEvents!=this._props.handleDOMEvents)&&SW(this),this.editable=qG(this),KG(this);let o=SG(this),s=GG(this),c=n.plugins!=e.plugins&&!n.doc.eq(e.doc)?`reset`:e.scrollToSelection>n.scrollToSelection?`to selection`:`preserve`,l=r||!this.docView.matchesNode(e.doc,s,o);(l||!e.selection.eq(n.selection))&&(i=!0);let u=c==`preserve`&&i&&this.dom.style.overflowAnchor==null&&hH(this);if(i){this.domObserver.stop();let t=l&&(QV||nH)&&!this.composing&&!n.selection.empty&&!e.selection.empty&&JG(n.selection,e.selection);if(l){let n=nH?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=WW(this)),(r||!this.docView.update(e.doc,s,o,this))&&(this.docView.updateOuterDeco(s),this.docView.destroy(),this.docView=QH(e.doc,s,o,this.dom,this)),n&&(!this.trackWrites||!this.dom.contains(this.trackWrites))&&(t=!0)}t||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&MU(this))?bU(this,t):(DU(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(n),this.dragging?.node&&!n.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,n),c==`reset`?this.dom.scrollTop=0:c==`to selection`?this.scrollToSelection():u&&_H(u)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))&&!this.someProp(`handleScrollToSelection`,e=>e(this)))if(this.state.selection instanceof EB){let t=this.docView.domAfterPos(this.state.selection.from);t.nodeType==1&&mH(this,t.getBoundingClientRect(),e)}else mH(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let e=0;e<this.directPlugins.length;e++){let t=this.directPlugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}for(let e=0;e<this.state.plugins.length;e++){let t=this.state.plugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}}else for(let t=0;t<this.pluginViews.length;t++){let n=this.pluginViews[t];n.update&&n.update(this,e)}}updateDraggedNode(e,t){let n=e.node,r=-1;if(n.from<this.state.doc.content.size&&this.state.doc.nodeAt(n.from)==n.node)r=n.from;else{let e=n.from+(this.state.doc.content.size-t.doc.content.size);(e>0&&e<this.state.doc.content.size&&this.state.doc.nodeAt(e))==n.node&&(r=e)}this.dragging=new $W(e.slice,e.move,r<0?void 0:EB.create(this.state.doc,r))}someProp(e,t){let n=this._props&&this._props[e],r;if(n!=null&&(r=t?t(n):n))return r;for(let n=0;n<this.directPlugins.length;n++){let i=this.directPlugins[n].props[e];if(i!=null&&(r=t?t(i):i))return r}let i=this.state.plugins;if(i)for(let n=0;n<i.length;n++){let a=i[n].props[e];if(a!=null&&(r=t?t(a):a))return r}}hasFocus(){if(QV){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable==`false`)return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&bH(this.dom),bU(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let e=this.dom.parentNode;e;e=e.parentNode)if(e.nodeType==9||e.nodeType==11&&e.host)return e.getSelection||(Object.getPrototypeOf(e).getSelection=()=>e.ownerDocument.getSelection()),this._root=e}return e||document}updateRoot(){this._root=null}posAtCoords(e){return OH(this,e)}coordsAtPos(e,t=1){return MH(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,n=-1){let r=this.docView.posFromDOM(e,t,n);if(r==null)throw RangeError(`DOM position not inside the editor`);return r}endOfTextblock(e,t){return HH(this,t||this.state,e)}pasteHTML(e,t){return ZW(this,``,e,!1,t||new ClipboardEvent(`paste`))}pasteText(e,t){return ZW(this,e,null,!0,t||new ClipboardEvent(`paste`))}serializeForClipboard(e){return QU(this,e)}destroy(){this.docView&&(xW(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],SG(this),this),this.dom.textContent=``):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,NV())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return TW(this,e)}domSelectionRange(){let e=this.domSelection();return e?iH&&this.root.nodeType===11&&WV(this.dom.ownerDocument)==this.dom&&jG(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}};WG.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))};function GG(e){let t=Object.create(null);return t.class=`ProseMirror`,t.contenteditable=String(e.editable),e.someProp(`attributes`,n=>{if(typeof n==`function`&&(n=n(e.state)),n)for(let e in n)e==`class`?t.class+=` `+n[e]:e==`style`?t.style=(t.style?t.style+`;`:``)+n[e]:!t[e]&&e!=`contenteditable`&&e!=`nodeName`&&(t[e]=String(n[e]))}),t.translate||=`no`,[sG.node(0,e.state.doc.content.size,t)]}function KG(e){if(e.markCursor){let t=document.createElement(`img`);t.className=`ProseMirror-separator`,t.setAttribute(`mark-placeholder`,`true`),t.setAttribute(`alt`,``),e.cursorWrapper={dom:t,deco:sG.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function qG(e){return!e.someProp(`editable`,t=>t(e.state)===!1)}function JG(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function YG(e){let t=Object.create(null);function n(e){for(let n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])}return e.someProp(`nodeViews`,n),e.someProp(`markViews`,n),t}function XG(e,t){let n=0,r=0;for(let r in e){if(e[r]!=t[r])return!0;n++}for(let e in t)r++;return n!=r}function ZG(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw RangeError(`Plugins passed directly to the view must not have a state component`)}for(var QG={8:`Backspace`,9:`Tab`,10:`Enter`,12:`NumLock`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,44:`PrintScreen`,45:`Insert`,46:`Delete`,59:`;`,61:`=`,91:`Meta`,92:`Meta`,106:`*`,107:`+`,108:`,`,109:`-`,110:`.`,111:`/`,144:`NumLock`,145:`ScrollLock`,160:`Shift`,161:`Shift`,162:`Control`,163:`Control`,164:`Alt`,165:`Alt`,173:`-`,186:`;`,187:`=`,188:`,`,189:`-`,190:`.`,191:`/`,192:"`",219:`[`,220:`\\`,221:`]`,222:`'`},$G={48:`)`,49:`!`,50:`@`,51:`#`,52:`$`,53:`%`,54:`^`,55:`&`,56:`*`,57:`(`,59:`:`,61:`+`,173:`_`,186:`:`,187:`+`,188:`<`,189:`_`,190:`>`,191:`?`,192:`~`,219:`{`,220:`|`,221:`}`,222:`"`},eK=typeof navigator<`u`&&/Mac/.test(navigator.platform),tK=typeof navigator<`u`&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),nK=0;nK<10;nK++)QG[48+nK]=QG[96+nK]=String(nK);for(var nK=1;nK<=24;nK++)QG[nK+111]=`F`+nK;for(var nK=65;nK<=90;nK++)QG[nK]=String.fromCharCode(nK+32),$G[nK]=String.fromCharCode(nK);for(var rK in QG)$G.hasOwnProperty(rK)||($G[rK]=QG[rK]);function iK(e){var t=!(eK&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||tK&&e.shiftKey&&e.key&&e.key.length==1||e.key==`Unidentified`)&&e.key||(e.shiftKey?$G:QG)[e.keyCode]||e.key||`Unidentified`;return t==`Esc`&&(t=`Escape`),t==`Del`&&(t=`Delete`),t==`Left`&&(t=`ArrowLeft`),t==`Up`&&(t=`ArrowUp`),t==`Right`&&(t=`ArrowRight`),t==`Down`&&(t=`ArrowDown`),t}var aK=typeof navigator<`u`&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),oK=typeof navigator<`u`&&/Win/.test(navigator.platform);function sK(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n==`Space`&&(n=` `);let r,i,a,o;for(let e=0;e<t.length-1;e++){let n=t[e];if(/^(cmd|meta|m)$/i.test(n))o=!0;else if(/^a(lt)?$/i.test(n))r=!0;else if(/^(c|ctrl|control)$/i.test(n))i=!0;else if(/^s(hift)?$/i.test(n))a=!0;else if(/^mod$/i.test(n))aK?o=!0:i=!0;else throw Error(`Unrecognized modifier name: `+n)}return r&&(n=`Alt-`+n),i&&(n=`Ctrl-`+n),o&&(n=`Meta-`+n),a&&(n=`Shift-`+n),n}function cK(e){let t=Object.create(null);for(let n in e)t[sK(n)]=e[n];return t}function lK(e,t,n=!0){return t.altKey&&(e=`Alt-`+e),t.ctrlKey&&(e=`Ctrl-`+e),t.metaKey&&(e=`Meta-`+e),n&&t.shiftKey&&(e=`Shift-`+e),e}function uK(e){return new FB({props:{handleKeyDown:dK(e)}})}function dK(e){let t=cK(e);return function(e,n){let r=iK(n),i,a=t[lK(r,n)];if(a&&a(e.state,e.dispatch,e))return!0;if(r.length==1&&r!=` `){if(n.shiftKey){let i=t[lK(r,n,!1)];if(i&&i(e.state,e.dispatch,e))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(oK&&n.ctrlKey&&n.altKey)&&(i=QG[n.keyCode])&&i!=r){let r=t[lK(i,n)];if(r&&r(e.state,e.dispatch,e))return!0}}return!1}}var fK=Object.defineProperty,pK=(e,t)=>{for(var n in t)fK(e,n,{get:t[n],enumerable:!0})};function mK(e){let{state:t,transaction:n}=e,{selection:r}=n,{doc:i}=n,{storedMarks:a}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return a},get selection(){return r},get doc(){return i},get tr(){return r=n.selection,i=n.doc,a=n.storedMarks,n}}}var hK=class{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){let{rawCommands:e,editor:t,state:n}=this,{view:r}=t,{tr:i}=n,a=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,(...e)=>{let n=t(...e)(a);return!i.getMeta(`preventDispatch`)&&!this.hasCustomState&&r.dispatch(i),n}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){let{rawCommands:n,editor:r,state:i}=this,{view:a}=r,o=[],s=!!e,c=e||i.tr,l=()=>(!s&&t&&!c.getMeta(`preventDispatch`)&&!this.hasCustomState&&a.dispatch(c),o.every(e=>e===!0)),u={...Object.fromEntries(Object.entries(n).map(([e,n])=>[e,(...e)=>{let r=this.buildProps(c,t),i=n(...e)(r);return o.push(i),u}])),run:l};return u}createCan(e){let{rawCommands:t,state:n}=this,r=e||n.tr,i=this.buildProps(r,!1);return{...Object.fromEntries(Object.entries(t).map(([e,t])=>[e,(...e)=>t(...e)({...i,dispatch:void 0})])),chain:()=>this.createChain(r,!1)}}buildProps(e,t=!0){let{rawCommands:n,editor:r,state:i}=this,{view:a}=r,o={tr:e,editor:r,view:a,state:mK({state:i,transaction:e}),dispatch:t?()=>void 0:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map(([e,t])=>[e,(...e)=>t(...e)(o)]))}};return o}},gK={};pK(gK,{blur:()=>_K,clearContent:()=>vK,clearNodes:()=>yK,command:()=>bK,createParagraphNear:()=>xK,cut:()=>SK,deleteCurrentNode:()=>CK,deleteNode:()=>TK,deleteRange:()=>EK,deleteSelection:()=>DK,enter:()=>OK,exitCode:()=>kK,extendMarkRange:()=>IK,first:()=>LK,focus:()=>WK,forEach:()=>GK,insertContent:()=>KK,insertContentAt:()=>QK,joinBackward:()=>tq,joinDown:()=>eq,joinForward:()=>nq,joinItemBackward:()=>rq,joinItemForward:()=>iq,joinTextblockBackward:()=>aq,joinTextblockForward:()=>oq,joinUp:()=>$K,keyboardShortcut:()=>lq,lift:()=>dq,liftEmptyBlock:()=>fq,liftListItem:()=>pq,newlineInCode:()=>mq,resetAttributes:()=>_q,scrollIntoView:()=>vq,selectAll:()=>yq,selectNodeBackward:()=>bq,selectNodeForward:()=>xq,selectParentNode:()=>Sq,selectTextblockEnd:()=>Cq,selectTextblockStart:()=>wq,setContent:()=>Eq,setMark:()=>bJ,setMeta:()=>xJ,setNode:()=>SJ,setNodeSelection:()=>CJ,setTextDirection:()=>wJ,setTextSelection:()=>TJ,sinkListItem:()=>EJ,splitBlock:()=>OJ,splitListItem:()=>kJ,toggleList:()=>NJ,toggleMark:()=>PJ,toggleNode:()=>FJ,toggleWrap:()=>IJ,undoInputRule:()=>LJ,unsetAllMarks:()=>RJ,unsetMark:()=>zJ,unsetTextDirection:()=>BJ,updateAttributes:()=>VJ,wrapIn:()=>HJ,wrapInList:()=>UJ});var _K=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{var n;e.isDestroyed||(t.dom.blur(),(n=window==null?void 0:window.getSelection())==null||n.removeAllRanges())}),!0),vK=(e=!0)=>({commands:t})=>t.setContent(``,{emitUpdate:e}),yK=()=>({state:e,tr:t,dispatch:n})=>{let{selection:r}=t,{ranges:i}=r;return n&&i.forEach(({$from:n,$to:r})=>{e.doc.nodesBetween(n.pos,r.pos,(e,n)=>{if(e.type.isText)return;let{doc:r,mapping:i}=t,a=r.resolve(i.map(n)),o=r.resolve(i.map(n+e.nodeSize)),s=a.blockRange(o);if(!s)return;let c=Nz(s);if(e.type.isTextblock){let{defaultType:e}=a.parent.contentMatchAt(a.index());t.setNodeMarkup(s.start,e)}(c||c===0)&&t.lift(s,c)})}),!0},bK=e=>t=>e(t),xK=()=>({state:e,dispatch:t})=>iV(e,t),SK=(e,t)=>({editor:n,tr:r})=>{let{state:i}=n,a=i.doc.slice(e.from,e.to);r.deleteRange(e.from,e.to);let o=r.mapping.map(t);return r.insert(o,a.content),r.setSelection(new wB(r.doc.resolve(Math.max(o-1,0)))),!0},CK=()=>({tr:e,dispatch:t})=>{let{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;let i=e.selection.$anchor;for(let n=i.depth;n>0;--n)if(i.node(n).type===r.type){if(t){let t=i.before(n),r=i.after(n);e.delete(t,r).scrollIntoView()}return!0}return!1};function wK(e,t){if(typeof e==`string`){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}var TK=e=>({tr:t,state:n,dispatch:r})=>{let i=wK(e,n.schema),a=t.selection.$anchor;for(let e=a.depth;e>0;--e)if(a.node(e).type===i){if(r){let n=a.before(e),r=a.after(e);t.delete(n,r).scrollIntoView()}return!0}return!1},EK=e=>({tr:t,dispatch:n})=>{let{from:r,to:i}=e;return n&&t.delete(r,i),!0},DK=()=>({state:e,dispatch:t})=>zB(e,t),OK=()=>({commands:e})=>e.keyboardShortcut(`Enter`),kK=()=>({state:e,dispatch:t})=>rV(e,t);function AK(e){return Object.prototype.toString.call(e)===`[object RegExp]`}function jK(e,t,n={strict:!0}){let r=Object.keys(t);return r.length?r.every(r=>n.strict?t[r]===e[r]:AK(t[r])?t[r].test(e[r]):t[r]===e[r]):!0}function MK(e,t,n={}){return e.find(e=>e.type===t&&jK(Object.fromEntries(Object.keys(n).map(t=>[t,e.attrs[t]])),n))}function NK(e,t,n={}){return!!MK(e,t,n)}function PK(e,t,n){if(!e||!t)return;let r=e.parent.childAfter(e.parentOffset);if((!r.node||!r.node.marks.some(e=>e.type===t))&&(r=e.parent.childBefore(e.parentOffset)),!r.node||!r.node.marks.some(e=>e.type===t))return;if(!n){let e=r.node.marks.find(e=>e.type===t);e&&(n=e.attrs)}if(!MK([...r.node.marks],t,n))return;let i=r.index,a=e.start()+r.offset,o=i+1,s=a+r.node.nodeSize;for(;i>0&&NK([...e.parent.child(i-1).marks],t,n);)--i,a-=e.parent.child(i).nodeSize;for(;o<e.parent.childCount&&NK([...e.parent.child(o).marks],t,n);)s+=e.parent.child(o).nodeSize,o+=1;return{from:a,to:s}}function FK(e,t){if(typeof e==`string`){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}var IK=(e,t)=>({tr:n,state:r,dispatch:i})=>{let a=FK(e,r.schema),{doc:o,selection:s}=n,{$from:c,from:l,to:u}=s;if(i){let e=PK(c,a,t);if(e&&e.from<=l&&e.to>=u){let t=wB.create(o,e.from,e.to);n.setSelection(t)}}return!0},LK=e=>t=>{let n=typeof e==`function`?e(t):e;for(let e=0;e<n.length;e+=1)if(n[e](t))return!0;return!1};function RK(e){return e instanceof wB}function zK(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function BK(e,t=null){if(!t)return null;let n=bB.atStart(e),r=bB.atEnd(e);if(t===`start`||t===!0)return n;if(t===`end`)return r;let i=n.from,a=r.to;return t===`all`?wB.create(e,zK(0,i,a),zK(e.content.size,i,a)):wB.create(e,zK(t,i,a),zK(t,i,a))}function VK(){return navigator.platform===`Android`||/android/i.test(navigator.userAgent)}function HK(){return[`iPad Simulator`,`iPhone Simulator`,`iPod Simulator`,`iPad`,`iPhone`,`iPod`].includes(navigator.platform)||navigator.userAgent.includes(`Mac`)&&`ontouchend`in document}function UK(){return typeof navigator<`u`?/^((?!chrome|android).)*safari/i.test(navigator.userAgent):!1}var WK=(e=null,t={})=>({editor:n,view:r,tr:i,dispatch:a})=>{t={scrollIntoView:!0,...t};let o=()=>{(HK()||VK())&&r.dom.focus(),UK()&&!HK()&&!VK()&&r.dom.focus({preventScroll:!0}),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),t?.scrollIntoView&&n.commands.scrollIntoView())})};try{if(r.hasFocus()&&e===null||e===!1)return!0}catch{return!1}if(a&&e===null&&!RK(n.state.selection))return o(),!0;let s=BK(i.doc,e)||n.state.selection,c=n.state.selection.eq(s);return a&&(c||i.setSelection(s),c&&i.storedMarks&&i.setStoredMarks(i.storedMarks),o()),!0},GK=(e,t)=>n=>e.every((e,r)=>t(e,{...n,index:r})),KK=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),qK=e=>{let t=e.childNodes;for(let n=t.length-1;n>=0;--n){let r=t[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?e.removeChild(r):r.nodeType===1&&qK(r)}return e};function JK(e){if(typeof window>`u`)throw Error(`[tiptap error]: there is no window object available, so this function cannot be used`);let t=`<body>${e}</body>`,n=new window.DOMParser().parseFromString(t,`text/html`).body;return qK(n)}function YK(e,t,n){if(e instanceof uR||e instanceof Z)return e;n={slice:!0,parseOptions:{},...n};let r=typeof e==`object`&&!!e,i=typeof e==`string`;if(r)try{if(Array.isArray(e)&&e.length>0)return Z.fromArray(e.map(e=>t.nodeFromJSON(e)));let r=t.nodeFromJSON(e);return n.errorOnInvalidContent&&r.check(),r}catch(r){if(n.errorOnInvalidContent)throw Error(`[tiptap error]: Invalid JSON content`,{cause:r});return console.warn(`[tiptap warn]: Invalid content.`,`Passed value:`,e,`Error:`,r),YK(``,t,n)}if(i){if(n.errorOnInvalidContent){let r=!1,i=``,a=new FR({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:`inline*`,group:`block`,parseDOM:[{tag:`*`,getAttrs:e=>(r=!0,i=typeof e==`string`?e:e.outerHTML,null)}]}})});if(n.slice?zR.fromSchema(a).parseSlice(JK(e),n.parseOptions):zR.fromSchema(a).parse(JK(e),n.parseOptions),n.errorOnInvalidContent&&r)throw Error(`[tiptap error]: Invalid HTML content`,{cause:Error(`Invalid element found: ${i}`)})}let r=zR.fromSchema(t);return n.slice?r.parseSlice(JK(e),n.parseOptions).content:r.parse(JK(e),n.parseOptions)}return YK(``,t,n)}function XK(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof Ez||i instanceof Dz))return;let a=e.mapping.maps[r],o=0;a.forEach((e,t,n,r)=>{o===0&&(o=r)}),e.setSelection(bB.near(e.doc.resolve(o),n))}var ZK=e=>!(`type`in e),QK=(e,t,n)=>({tr:r,dispatch:i,editor:a})=>{if(i){n={parseOptions:a.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let i,o=e=>{a.emit(`contentError`,{editor:a,error:e,disableCollaboration:()=>{`collaboration`in a.storage&&typeof a.storage.collaboration==`object`&&a.storage.collaboration&&(a.storage.collaboration.isDisabled=!0)}})},s={preserveWhitespace:`full`,...n.parseOptions};if(!n.errorOnInvalidContent&&!a.options.enableContentCheck&&a.options.emitContentError)try{YK(t,a.schema,{parseOptions:s,errorOnInvalidContent:!0})}catch(e){o(e)}try{i=YK(t,a.schema,{parseOptions:s,errorOnInvalidContent:n.errorOnInvalidContent??a.options.enableContentCheck})}catch(e){return o(e),!1}let{from:c,to:l}=typeof e==`number`?{from:e,to:e}:{from:e.from,to:e.to},u=!0,d=!0;if((ZK(i)?i:[i]).forEach(e=>{e.check(),u=u?e.isText&&e.marks.length===0:!1,d=d?e.isBlock:!1}),c===l&&d){let{parent:e}=r.doc.resolve(c);e.isTextblock&&!e.type.spec.code&&!e.childCount&&(--c,l+=1)}let f;if(u){if(Array.isArray(t))f=t.map(e=>e.text||``).join(``);else if(t instanceof Z){let e=``;t.forEach(t=>{t.text&&(e+=t.text)}),f=e}else f=typeof t==`object`&&t&&t.text?t.text:t;r.insertText(f,c,l)}else{f=i;let e=r.doc.resolve(c),t=e.node(),n=e.parentOffset===0,a=t.isText||t.isTextblock,o=t.content.size>0;n&&a&&o&&d&&(c=Math.max(0,c-1)),r.replaceWith(c,l,f)}n.updateSelection&&XK(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta(`applyInputRules`,{from:c,text:f}),n.applyPasteRules&&r.setMeta(`applyPasteRules`,{from:c,text:f})}return!0},$K=()=>({state:e,dispatch:t})=>QB(e,t),eq=()=>({state:e,dispatch:t})=>$B(e,t),tq=()=>({state:e,dispatch:t})=>VB(e,t),nq=()=>({state:e,dispatch:t})=>YB(e,t),rq=()=>({state:e,dispatch:t,tr:n})=>{try{let r=Xz(e.doc,e.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},iq=()=>({state:e,dispatch:t,tr:n})=>{try{let r=Xz(e.doc,e.selection.$from.pos,1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},aq=()=>({state:e,dispatch:t})=>HB(e,t),oq=()=>({state:e,dispatch:t})=>UB(e,t);function sq(){return typeof navigator<`u`?/Mac/.test(navigator.platform):!1}function cq(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n===`Space`&&(n=` `);let r,i,a,o;for(let e=0;e<t.length-1;e+=1){let n=t[e];if(/^(cmd|meta|m)$/i.test(n))o=!0;else if(/^a(lt)?$/i.test(n))r=!0;else if(/^(c|ctrl|control)$/i.test(n))i=!0;else if(/^s(hift)?$/i.test(n))a=!0;else if(/^mod$/i.test(n))HK()||sq()?o=!0:i=!0;else throw Error(`Unrecognized modifier name: ${n}`)}return r&&(n=`Alt-${n}`),i&&(n=`Ctrl-${n}`),o&&(n=`Meta-${n}`),a&&(n=`Shift-${n}`),n}var lq=e=>({editor:t,view:n,tr:r,dispatch:i})=>{let a=cq(e).split(/-(?!$)/),o=a.find(e=>![`Alt`,`Ctrl`,`Meta`,`Shift`].includes(e)),s=new KeyboardEvent(`keydown`,{key:o===`Space`?` `:o,altKey:a.includes(`Alt`),ctrlKey:a.includes(`Ctrl`),metaKey:a.includes(`Meta`),shiftKey:a.includes(`Shift`),bubbles:!0,cancelable:!0});return t.captureTransaction(()=>{n.someProp(`handleKeyDown`,e=>e(n,s))})?.steps.forEach(e=>{let t=e.map(r.mapping);t&&i&&r.maybeStep(t)}),!0};function uq(e,t,n={}){let{from:r,to:i,empty:a}=e.selection,o=t?wK(t,e.schema):null,s=[];e.doc.nodesBetween(r,i,(e,t)=>{if(e.isText)return;let n=Math.max(r,t),a=Math.min(i,t+e.nodeSize);s.push({node:e,from:n,to:a})});let c=i-r,l=s.filter(e=>o?o.name===e.node.type.name:!0).filter(e=>jK(e.node.attrs,n,{strict:!1}));return a?!!l.length:l.reduce((e,t)=>e+t.to-t.from,0)>=c}var dq=(e,t={})=>({state:n,dispatch:r})=>uq(n,wK(e,n.schema),t)?eV(n,r):!1,fq=()=>({state:e,dispatch:t})=>aV(e,t),pq=e=>({state:t,dispatch:n})=>TV(wK(e,t.schema))(t,n),mq=()=>({state:e,dispatch:t})=>tV(e,t);function hq(e,t){return t.nodes[e]?`node`:t.marks[e]?`mark`:null}function gq(e,t){let n=typeof t==`string`?[t]:t;return Object.keys(e).reduce((t,r)=>(n.includes(r)||(t[r]=e[r]),t),{})}var _q=(e,t)=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null,s=hq(typeof e==`string`?e:e.name,r.schema);if(!s)return!1;s===`node`&&(a=wK(e,r.schema)),s===`mark`&&(o=FK(e,r.schema));let c=!1;return n.selection.ranges.forEach(e=>{r.doc.nodesBetween(e.$from.pos,e.$to.pos,(e,r)=>{a&&a===e.type&&(c=!0,i&&n.setNodeMarkup(r,void 0,gq(e.attrs,t))),o&&e.marks.length&&e.marks.forEach(a=>{o===a.type&&(c=!0,i&&n.addMark(r,r+e.nodeSize,o.create(gq(a.attrs,t))))})})}),c},vq=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),yq=()=>({tr:e,dispatch:t})=>{if(t){let t=new OB(e.doc);e.setSelection(t)}return!0},bq=()=>({state:e,dispatch:t})=>KB(e,t),xq=()=>({state:e,dispatch:t})=>XB(e,t),Sq=()=>({state:e,dispatch:t})=>cV(e,t),Cq=()=>({state:e,dispatch:t})=>mV(e,t),wq=()=>({state:e,dispatch:t})=>pV(e,t);function Tq(e,t,n={},r={}){return YK(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}var Eq=(e,{errorOnInvalidContent:t,emitUpdate:n=!0,parseOptions:r={}}={})=>({editor:i,tr:a,dispatch:o,commands:s})=>{let{doc:c}=a;if(r.preserveWhitespace!==`full`){let s=Tq(e,i.schema,r,{errorOnInvalidContent:t??i.options.enableContentCheck});return o&&a.replaceWith(0,c.content.size,s).setMeta(`preventUpdate`,!n),!0}return o&&a.setMeta(`preventUpdate`,!n),s.insertContentAt({from:0,to:c.content.size},e,{parseOptions:r,errorOnInvalidContent:t??i.options.enableContentCheck})};function Dq(e,t){let n=FK(t,e.schema),{from:r,to:i,empty:a}=e.selection,o=[];a?(e.storedMarks&&o.push(...e.storedMarks),o.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,i,e=>{o.push(...e.marks)});let s=o.find(e=>e.type.name===n.name);return s?{...s.attrs}:{}}function Oq(e,t){let n=new vB(e);return t.forEach(e=>{e.steps.forEach(e=>{n.step(e)})}),n}function kq(e){for(let t=0;t<e.edgeCount;t+=1){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function Aq(e,t){let n=[];return e.descendants((e,r)=>{t(e)&&n.push({node:e,pos:r})}),n}function jq(e,t,n){let r=[];return e.nodesBetween(t.from,t.to,(e,t)=>{n(e)&&r.push({node:e,pos:t})}),r}function Mq(e,t){for(let n=e.depth;n>0;--n){let r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function Nq(e){return t=>Mq(t.$from,e)}function Pq(e,t,n){return e.config[t]===void 0&&e.parent?Pq(e.parent,t,n):typeof e.config[t]==`function`?e.config[t].bind({...n,parent:e.parent?Pq(e.parent,t,n):null}):e.config[t]}function Fq(e){return e.map(e=>{let t=Pq(e,`addExtensions`,{name:e.name,options:e.options,storage:e.storage});return t?[e,...Fq(t())]:e}).flat(10)}function Iq(e,t){let n=$R.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement(`div`);return r.appendChild(n),r.innerHTML}function Lq(e){return typeof e==`function`}function Rq(e,t=void 0,...n){return Lq(e)?t?e.bind(t)(...n):e(...n):e}function zq(e={}){return Object.keys(e).length===0&&e.constructor===Object}function Bq(e){return{baseExtensions:e.filter(e=>e.type===`extension`),nodeExtensions:e.filter(e=>e.type===`node`),markExtensions:e.filter(e=>e.type===`mark`)}}function Vq(e){let t=[],{nodeExtensions:n,markExtensions:r}=Bq(e),i=[...n,...r],a={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1},o=n.filter(e=>e.name!==`text`).map(e=>e.name),s=r.map(e=>e.name),c=[...o,...s];return e.forEach(e=>{let n=Pq(e,`addGlobalAttributes`,{name:e.name,options:e.options,storage:e.storage,extensions:i});n&&n().forEach(e=>{let n;n=Array.isArray(e.types)?e.types:e.types===`*`?c:e.types===`nodes`?o:e.types===`marks`?s:[],n.forEach(n=>{Object.entries(e.attributes).forEach(([e,r])=>{t.push({type:n,name:e,attribute:{...a,...r}})})})})}),i.forEach(e=>{let n=Pq(e,`addAttributes`,{name:e.name,options:e.options,storage:e.storage});if(!n)return;let r=n();Object.entries(r).forEach(([n,r])=>{let i={...a,...r};typeof i?.default==`function`&&(i.default=i.default()),i?.isRequired&&i?.default===void 0&&delete i.default,t.push({type:e.name,name:n,attribute:i})})}),t}function Hq(e){let t=[],n=``,r=!1,i=!1,a=0,o=e.length;for(let s=0;s<o;s+=1){let o=e[s];if(o===`'`&&!i){r=!r,n+=o;continue}if(o===`"`&&!r){i=!i,n+=o;continue}if(!r&&!i){if(o===`(`){a+=1,n+=o;continue}if(o===`)`&&a>0){--a,n+=o;continue}if(o===`;`&&a===0){t.push(n),n=``;continue}}n+=o}return n&&t.push(n),t}function Uq(e){let t=[],n=Hq(e||``),r=n.length;for(let e=0;e<r;e+=1){let r=n[e],i=r.indexOf(`:`);if(i===-1)continue;let a=r.slice(0,i).trim(),o=r.slice(i+1).trim();a&&o&&t.push([a,o])}return t}function Wq(...e){return e.filter(e=>!!e).reduce((e,t)=>{let n={...e};return Object.entries(t).forEach(([e,t])=>{if(!n[e]){n[e]=t;return}if(e===`class`){let r=t?String(t).split(` `):[],i=n[e]?n[e].split(` `):[],a=r.filter(e=>!i.includes(e));n[e]=[...i,...a].join(` `)}else if(e===`style`){let r=new Map([...Uq(n[e]),...Uq(t)]);n[e]=Array.from(r.entries()).map(([e,t])=>`${e}: ${t}`).join(`; `)}else n[e]=t}),n},{})}function Gq(e,t){return t.filter(t=>t.type===e.type.name).filter(e=>e.attribute.rendered).map(t=>t.attribute.renderHTML?t.attribute.renderHTML(e.attrs)||{}:{[t.name]:e.attrs[t.name]}).reduce((e,t)=>Wq(e,t),{})}function Kq(e){return typeof e==`string`?e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e===`true`?!0:e===`false`?!1:e:e}function qq(e,t){return`style`in e?e:{...e,getAttrs:n=>{let r=e.getAttrs?e.getAttrs(n):e.attrs;if(r===!1)return!1;let i=t.reduce((e,t)=>{let r=t.attribute.parseHTML?t.attribute.parseHTML(n):Kq(n.getAttribute(t.name));return r==null?e:{...e,[t.name]:r}},{});return{...r,...i}}}}function Jq(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>e===`attrs`&&zq(t)?!1:t!=null))}function Yq(e){let t={};return!e?.attribute?.isRequired&&`default`in(e?.attribute||{})&&(t.default=e.attribute.default),e?.attribute?.validate!==void 0&&(t.validate=e.attribute.validate),[e.name,t]}function Xq(e,t){let n=Vq(e),{nodeExtensions:r,markExtensions:i}=Bq(e);return new FR({topNode:r.find(e=>Pq(e,`topNode`))?.name,nodes:Object.fromEntries(r.map(r=>{let i=n.filter(e=>e.type===r.name),a={name:r.name,options:r.options,storage:r.storage,editor:t},o=Jq({...e.reduce((e,t)=>{let n=Pq(t,`extendNodeSchema`,a);return{...e,...n?n(r):{}}},{}),content:Rq(Pq(r,`content`,a)),marks:Rq(Pq(r,`marks`,a)),group:Rq(Pq(r,`group`,a)),inline:Rq(Pq(r,`inline`,a)),atom:Rq(Pq(r,`atom`,a)),selectable:Rq(Pq(r,`selectable`,a)),draggable:Rq(Pq(r,`draggable`,a)),code:Rq(Pq(r,`code`,a)),whitespace:Rq(Pq(r,`whitespace`,a)),linebreakReplacement:Rq(Pq(r,`linebreakReplacement`,a)),defining:Rq(Pq(r,`defining`,a)),isolating:Rq(Pq(r,`isolating`,a)),attrs:Object.fromEntries(i.map(Yq))}),s=Rq(Pq(r,`parseHTML`,a));s&&(o.parseDOM=s.map(e=>qq(e,i)));let c=Pq(r,`renderHTML`,a);c&&(o.toDOM=e=>c({node:e,HTMLAttributes:Gq(e,i)}));let l=Pq(r,`renderText`,a);return l&&(o.toText=l),[r.name,o]})),marks:Object.fromEntries(i.map(r=>{let i=n.filter(e=>e.type===r.name),a={name:r.name,options:r.options,storage:r.storage,editor:t},o=Jq({...e.reduce((e,t)=>{let n=Pq(t,`extendMarkSchema`,a);return{...e,...n?n(r):{}}},{}),inclusive:Rq(Pq(r,`inclusive`,a)),excludes:Rq(Pq(r,`excludes`,a)),group:Rq(Pq(r,`group`,a)),spanning:Rq(Pq(r,`spanning`,a)),code:Rq(Pq(r,`code`,a)),attrs:Object.fromEntries(i.map(Yq))}),s=Rq(Pq(r,`parseHTML`,a));s&&(o.parseDOM=s.map(e=>qq(e,i)));let c=Pq(r,`renderHTML`,a);return c&&(o.toDOM=e=>c({mark:e,HTMLAttributes:Gq(e,i)})),[r.name,o]}))})}function Zq(e){let t=e.filter((t,n)=>e.indexOf(t)!==n);return Array.from(new Set(t))}function Qq(e){return e.sort((e,t)=>{let n=Pq(e,`priority`)||100,r=Pq(t,`priority`)||100;return n>r?-1:+(n<r)})}function $q(e){let t=Qq(Fq(e)),n=Zq(t.map(e=>e.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(e=>`'${e}'`).join(`, `)}]. This can lead to issues.`),t}function eJ(e,t,n){let{from:r,to:i}=t,{blockSeparator:a=`
285
-
286
- `,textSerializers:o={}}=n||{},s=``;return e.nodesBetween(r,i,(e,n,c,l)=>{e.isBlock&&n>r&&(s+=a);let u=o?.[e.type.name];if(u)return c&&(s+=u({node:e,pos:n,parent:c,index:l,range:t})),!1;e.isText&&(s+=(e?.text)?.slice(Math.max(r,n)-n,i-n))}),s}function tJ(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}function nJ(e,t){let n=wK(t,e.schema),{from:r,to:i}=e.selection,a=[];e.doc.nodesBetween(r,i,e=>{a.push(e)});let o=a.reverse().find(e=>e.type.name===n.name);return o?{...o.attrs}:{}}function rJ(e,t){let n=hq(typeof t==`string`?t:t.name,e.schema);return n===`node`?nJ(e,t):n===`mark`?Dq(e,t):{}}function iJ(e,t=JSON.stringify){let n={};return e.filter(e=>{let r=t(e);return Object.prototype.hasOwnProperty.call(n,r)?!1:n[r]=!0})}function aJ(e){let t=iJ(e);return t.length===1?t:t.filter((e,n)=>!t.filter((e,t)=>t!==n).some(t=>e.oldRange.from>=t.oldRange.from&&e.oldRange.to<=t.oldRange.to&&e.newRange.from>=t.newRange.from&&e.newRange.to<=t.newRange.to))}function oJ(e){let{mapping:t,steps:n}=e,r=[];return t.maps.forEach((e,i)=>{let a=[];if(e.ranges.length)e.forEach((e,t)=>{a.push({from:e,to:t})});else{let{from:e,to:t}=n[i];if(e===void 0||t===void 0)return;a.push({from:e,to:t})}a.forEach(({from:e,to:n})=>{let a=t.slice(i).map(e,-1),o=t.slice(i).map(n),s=t.invert().map(a,-1),c=t.invert().map(o);r.push({oldRange:{from:s,to:c},newRange:{from:a,to:o}})})}),aJ(r)}function sJ(e,t,n){let r=[];return e===t?n.resolve(e).marks().forEach(t=>{let i=PK(n.resolve(e),t.type);i&&r.push({mark:t,...i})}):n.nodesBetween(e,t,(e,t)=>{!e||e?.nodeSize===void 0||r.push(...e.marks.map(n=>({from:t,to:t+e.nodeSize,mark:n})))}),r}var cJ=(e,t,n,r=20)=>{let i=e.doc.resolve(n),a=r,o=null;for(;a>0&&o===null;){let e=i.node(a);e?.type.name===t?o=e:--a}return[o,a]};function lJ(e,t){return t.nodes[e]||t.marks[e]||null}function uJ(e,t,n){return Object.fromEntries(Object.entries(n).filter(([n])=>{let r=e.find(e=>e.type===t&&e.name===n);return r?r.attribute.keepOnSplit:!1}))}var dJ=(e,t=500)=>{let n=``,r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(e,t,i,a)=>{var o;let s=(o=e.type.spec).toText?.call(o,{node:e,pos:t,parent:i,index:a})||e.textContent||`%leaf%`;n+=e.isAtom&&!e.isText?s:s.slice(0,Math.max(0,r-t))}),n};function fJ(e,t,n={}){let{empty:r,ranges:i}=e.selection,a=t?FK(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(e=>a?a.name===e.type.name:!0).find(e=>jK(e.attrs,n,{strict:!1}));let o=0,s=[];if(i.forEach(({$from:t,$to:n})=>{let r=t.pos,i=n.pos;e.doc.nodesBetween(r,i,(e,t)=>{if(a&&e.inlineContent&&!e.type.allowsMarkType(a))return!1;if(!e.isText&&!e.marks.length)return;let n=Math.max(r,t),c=Math.min(i,t+e.nodeSize),l=c-n;o+=l,s.push(...e.marks.map(e=>({mark:e,from:n,to:c})))})}),o===0)return!1;let c=s.filter(e=>a?a.name===e.mark.type.name:!0).filter(e=>jK(e.mark.attrs,n,{strict:!1})).reduce((e,t)=>e+t.to-t.from,0),l=s.filter(e=>a?e.mark.type!==a&&e.mark.type.excludes(a):!0).reduce((e,t)=>e+t.to-t.from,0);return(c>0?c+l:c)>=o}var pJ=(e,t)=>{let{$from:n,$to:r,$anchor:i}=e.selection;if(t){let n=Nq(e=>e.type.name===t)(e.selection);if(!n)return!1;let r=e.doc.resolve(n.pos+1);return i.pos+1===r.end()}return!(r.parentOffset<r.parent.nodeSize-2||n.pos!==r.pos)},mJ=e=>{let{$from:t,$to:n}=e.selection;return!(t.parentOffset>0||t.pos!==n.pos)};function hJ(e,t){return Array.isArray(t)?t.some(t=>(typeof t==`string`?t:t.name)===e.name):t}function gJ(e,t){let{nodeExtensions:n}=Bq(t),r=n.find(t=>t.name===e);if(!r)return!1;let i=Rq(Pq(r,`group`,{name:r.name,options:r.options,storage:r.storage}));return typeof i==`string`?i.split(` `).includes(`list`):!1}function _J(e,{checkChildren:t=!0,ignoreWhitespace:n=!1}={}){if(n){if(e.type.name===`hardBreak`)return!0;if(e.isText)return!/\S/.test(e.text??``)}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(e.content.childCount===0)return!0;if(t){let r=!0;return e.content.forEach(e=>{r!==!1&&(_J(e,{ignoreWhitespace:n,checkChildren:t})||(r=!1))}),r}return!1}function vJ(e){return e instanceof EB}function yJ(e,t,n){let{selection:r}=t,i=null;if(RK(r)&&(i=r.$cursor),i){let t=e.storedMarks??i.marks();return i.parent.type.allowsMarkType(n)&&(!!n.isInSet(t)||!t.some(e=>e.type.excludes(n)))}let{ranges:a}=r;return a.some(({$from:t,$to:r})=>{let i=t.depth===0?e.doc.inlineContent&&e.doc.type.allowsMarkType(n):!1;return e.doc.nodesBetween(t.pos,r.pos,(e,t,r)=>{if(i)return!1;if(e.isInline){let t=!r||r.type.allowsMarkType(n),a=!!n.isInSet(e.marks)||!e.marks.some(e=>e.type.excludes(n));i=t&&a}return!i}),i})}var bJ=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let{selection:a}=n,{empty:o,ranges:s}=a,c=FK(e,r.schema);if(i)if(o){let e=Dq(r,c);n.addStoredMark(c.create({...e,...t}))}else s.forEach(e=>{let i=e.$from.pos,a=e.$to.pos;r.doc.nodesBetween(i,a,(e,r)=>{let o=Math.max(r,i),s=Math.min(r+e.nodeSize,a);e.marks.find(e=>e.type===c)?e.marks.forEach(e=>{c===e.type&&n.addMark(o,s,c.create({...e.attrs,...t}))}):n.addMark(o,s,c.create(t))})});return yJ(r,n,c)},xJ=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),SJ=(e,t={})=>({state:n,dispatch:r,chain:i})=>{let a=wK(e,n.schema),o;return n.selection.$anchor.sameParent(n.selection.$head)&&(o=n.selection.$anchor.parent.attrs),a.isTextblock?i().command(({commands:e})=>gV(a,{...o,...t})(n)?!0:e.clearNodes()).command(({state:e})=>gV(a,{...o,...t})(e,r)).run():(console.warn(`[tiptap warn]: Currently "setNode()" only supports text block nodes.`),!1)},CJ=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,r=zK(e,0,n.content.size),i=EB.create(n,r);t.setSelection(i)}return!0},wJ=(e,t)=>({tr:n,state:r,dispatch:i})=>{let{selection:a}=r,o,s;return typeof t==`number`?(o=t,s=t):t&&`from`in t&&`to`in t?(o=t.from,s=t.to):(o=a.from,s=a.to),i&&n.doc.nodesBetween(o,s,(t,r)=>{t.isText||n.setNodeMarkup(r,void 0,{...t.attrs,dir:e})}),!0},TJ=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,{from:r,to:i}=typeof e==`number`?{from:e,to:e}:e,a=wB.atStart(n).from,o=wB.atEnd(n).to,s=zK(r,a,o),c=zK(i,a,o),l=wB.create(n,s,c);t.setSelection(l)}return!0},EJ=e=>({state:t,dispatch:n})=>OV(wK(e,t.schema))(t,n);function DJ(e,t){let n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){let r=n.filter(e=>t?.includes(e.type.name));e.tr.ensureMarks(r)}}var OJ=({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:r,editor:i})=>{let{selection:a,doc:o}=t,{$from:s,$to:c}=a,l=i.extensionManager.attributes,u=uJ(l,s.node().type.name,s.node().attrs);if(a instanceof EB&&a.node.isBlock)return!s.parentOffset||!Gz(o,s.pos)?!1:(r&&(e&&DJ(n,i.extensionManager.splittableMarks),t.split(s.pos).scrollIntoView()),!0);if(!s.parent.isBlock)return!1;let d=c.parentOffset===c.parent.content.size,f=s.depth===0?void 0:kq(s.node(-1).contentMatchAt(s.indexAfter(-1))),p=d&&f?[{type:f,attrs:u}]:void 0,m=Gz(t.doc,t.mapping.map(s.pos),1,p);if(!p&&!m&&Gz(t.doc,t.mapping.map(s.pos),1,f?[{type:f}]:void 0)&&(m=!0,p=f?[{type:f,attrs:u}]:void 0),r){if(m&&(a instanceof wB&&t.deleteSelection(),t.split(t.mapping.map(s.pos),1,p),f&&!d&&!s.parentOffset&&s.parent.type!==f)){let e=t.mapping.map(s.before()),n=t.doc.resolve(e);s.node(-1).canReplaceWith(n.index(),n.index()+1,f)&&t.setNodeMarkup(t.mapping.map(s.before()),f)}e&&DJ(n,i.extensionManager.splittableMarks),t.scrollIntoView()}return m},kJ=(e,t={})=>({tr:n,state:r,dispatch:i,editor:a})=>{let o=wK(e,r.schema),{$from:s,$to:c}=r.selection,l=r.selection.node;if(l&&l.isBlock||s.depth<2||!s.sameParent(c))return!1;let u=s.node(-1);if(u.type!==o)return!1;let d=a.extensionManager.attributes;if(s.parent.content.size===0&&s.node(-1).childCount===s.indexAfter(-1)){if(s.depth===2||s.node(-3).type!==o||s.index(-2)!==s.node(-2).childCount-1)return!1;if(i){let e=Z.empty,r=s.index(-1)?1:s.index(-2)?2:3;for(let t=s.depth-r;t>=s.depth-3;--t)e=Z.from(s.node(t).copy(e));let i=s.indexAfter(-1)<s.node(-2).childCount?1:s.indexAfter(-2)<s.node(-3).childCount?2:3,a={...uJ(d,s.node().type.name,s.node().attrs),...t},c=o.contentMatch.defaultType?.createAndFill(a)||void 0;e=e.append(Z.from(o.createAndFill(null,c)||void 0));let l=s.before(s.depth-(r-1));n.replace(l,s.after(-i),new KL(e,4-r,0));let u=-1;n.doc.nodesBetween(l,n.doc.content.size,(e,t)=>{if(u>-1)return!1;e.isTextblock&&e.content.size===0&&(u=t+1)}),u>-1&&n.setSelection(wB.near(n.doc.resolve(u))),n.scrollIntoView()}return!0}let f=c.pos===s.end()?u.contentMatchAt(0).defaultType:null,p={...uJ(d,u.type.name,u.attrs),...t},m={...uJ(d,s.node().type.name,s.node().attrs),...t};n.delete(s.pos,c.pos);let h=f?[{type:o,attrs:p},{type:f,attrs:m}]:[{type:o,attrs:p}];if(!Gz(n.doc,s.pos,2))return!1;if(i){let{selection:e,storedMarks:t}=r,{splittableMarks:o}=a.extensionManager,c=t||e.$to.parentOffset&&e.$from.marks();if(n.split(s.pos,2,h).scrollIntoView(),!c||!i)return!0;let l=c.filter(e=>o.includes(e.type.name));n.ensureMarks(l)}return!0},AJ=(e,t)=>{let n=Nq(e=>e.type===t)(e.selection);if(!n)return!0;let r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;let i=e.doc.nodeAt(r);return n.node.type===i?.type&&qz(e.doc,n.pos)&&e.join(n.pos),!0},jJ=(e,t)=>{let n=Nq(e=>e.type===t)(e.selection);if(!n)return!0;let r=e.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;let i=e.doc.nodeAt(r);return n.node.type===i?.type&&qz(e.doc,r)&&e.join(r),!0};function MJ(e){let t=e.doc,n=t.firstChild;if(!n)return null;let r=t.resolve(1),i=t.resolve(n.nodeSize-1);return wB.between(r,i)}var NJ=(e,t,n,r={})=>({editor:i,tr:a,state:o,dispatch:s,chain:c,commands:l,can:u})=>{let{extensions:d,splittableMarks:f}=i.extensionManager,p=wK(e,o.schema),m=wK(t,o.schema),{selection:h,storedMarks:g}=o,{$from:_,$to:v}=h,y=_.blockRange(v),b=g||h.$to.parentOffset&&h.$from.marks();if(!y)return!1;let x=Nq(e=>gJ(e.type.name,d))(h),S=h.from===0&&h.to===o.doc.content.size,C=o.doc.content.content,w=C.length===1?C[0]:null,T=S&&w&&gJ(w.type.name,d)?{node:w,pos:0,depth:0}:null,E=x??T,D=!!x&&y.depth>=1&&y.depth-x.depth<=1,O=!!T;if((D||O)&&E){if(E.node.type===p)return S&&O?c().command(({tr:e,dispatch:t})=>{let n=MJ(e);return n?(e.setSelection(n),t&&t(e),!0):!1}).liftListItem(m).run():l.liftListItem(m);if(gJ(E.node.type.name,d)&&p.validContent(E.node.content))return c().command(()=>(a.setNodeMarkup(E.pos,p),!0)).command(()=>AJ(a,p)).command(()=>jJ(a,p)).run()}return!n||!b||!s?c().command(()=>u().wrapInList(p,r)?!0:l.clearNodes()).wrapInList(p,r).command(()=>AJ(a,p)).command(()=>jJ(a,p)).run():c().command(()=>{let e=u().wrapInList(p,r),t=b.filter(e=>f.includes(e.type.name));return a.ensureMarks(t),e?!0:l.clearNodes()}).wrapInList(p,r).command(()=>AJ(a,p)).command(()=>jJ(a,p)).run()},PJ=(e,t={},n={})=>({state:r,commands:i})=>{let{extendEmptyMarkRange:a=!1}=n,o=FK(e,r.schema);return fJ(r,o,t)?i.unsetMark(o,{extendEmptyMarkRange:a}):i.setMark(o,t)},FJ=(e,t,n={})=>({state:r,commands:i})=>{let a=wK(e,r.schema),o=wK(t,r.schema),s=uq(r,a,n),c;return r.selection.$anchor.sameParent(r.selection.$head)&&(c=r.selection.$anchor.parent.attrs),s?i.setNode(o,c):i.setNode(a,{...c,...n})},IJ=(e,t={})=>({state:n,commands:r})=>{let i=wK(e,n.schema);return uq(n,i,t)?r.lift(i):r.wrapIn(i,t)},LJ=()=>({state:e,dispatch:t})=>{let n=e.plugins;for(let r=0;r<n.length;r+=1){let i=n[r],a;if(i.spec.isInputRules&&(a=i.getState(e))){if(t){let t=e.tr,n=a.transform;for(let e=n.steps.length-1;e>=0;--e)t.step(n.steps[e].invert(n.docs[e]));if(a.text){let n=t.doc.resolve(a.from).marks();t.replaceWith(a.from,a.to,e.schema.text(a.text,n))}else t.delete(a.from,a.to)}return!0}}return!1},RJ=()=>({tr:e,dispatch:t})=>{let{selection:n}=e,{empty:r,ranges:i}=n;return r||t&&i.forEach(t=>{e.removeMark(t.$from.pos,t.$to.pos)}),!0},zJ=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let{extendEmptyMarkRange:a=!1}=t,{selection:o}=n,s=FK(e,r.schema),{$from:c,empty:l,ranges:u}=o;if(!i)return!0;if(l&&a){let{from:e,to:t}=o,r=PK(c,s,c.marks().find(e=>e.type===s)?.attrs);r&&(e=r.from,t=r.to),n.removeMark(e,t,s)}else u.forEach(e=>{n.removeMark(e.$from.pos,e.$to.pos,s)});return n.removeStoredMark(s),!0},BJ=e=>({tr:t,state:n,dispatch:r})=>{let{selection:i}=n,a,o;return typeof e==`number`?(a=e,o=e):e&&`from`in e&&`to`in e?(a=e.from,o=e.to):(a=i.from,o=i.to),r&&t.doc.nodesBetween(a,o,(e,n)=>{if(e.isText)return;let r={...e.attrs};delete r.dir,t.setNodeMarkup(n,void 0,r)}),!0},VJ=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null,s=hq(typeof e==`string`?e:e.name,r.schema);if(!s)return!1;s===`node`&&(a=wK(e,r.schema)),s===`mark`&&(o=FK(e,r.schema));let c=!1;return n.selection.ranges.forEach(e=>{let s=e.$from.pos,l=e.$to.pos,u,d,f,p;n.selection.empty?r.doc.nodesBetween(s,l,(e,t)=>{a&&a===e.type&&(c=!0,f=Math.max(t,s),p=Math.min(t+e.nodeSize,l),u=t,d=e)}):r.doc.nodesBetween(s,l,(e,r)=>{r<s&&a&&a===e.type&&(c=!0,f=Math.max(r,s),p=Math.min(r+e.nodeSize,l),u=r,d=e),r>=s&&r<=l&&(a&&a===e.type&&(c=!0,i&&n.setNodeMarkup(r,void 0,{...e.attrs,...t})),o&&e.marks.length&&e.marks.forEach(a=>{if(o===a.type&&(c=!0,i)){let i=Math.max(r,s),c=Math.min(r+e.nodeSize,l);n.addMark(i,c,o.create({...a.attrs,...t}))}}))}),d&&(u!==void 0&&i&&n.setNodeMarkup(u,void 0,{...d.attrs,...t}),o&&d.marks.length&&d.marks.forEach(e=>{o===e.type&&i&&n.addMark(f,p,o.create({...e.attrs,...t}))}))}),c},HJ=(e,t={})=>({state:n,dispatch:r})=>hV(wK(e,n.schema),t)(n,r),UJ=(e,t={})=>({state:n,dispatch:r})=>SV(wK(e,n.schema),t)(n,r),WJ=class{constructor(e){this.find=e.find,this.handler=e.handler,this.undoable=e.undoable??!0}},GJ=(e,t)=>{if(AK(t))return t.exec(e);let n=t(e);if(!n)return null;let r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn(`[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".`),r.push(n.replaceWith)),r};function KJ(e){let{editor:t,from:n,to:r,text:i,rules:a,plugin:o}=e,{view:s}=t;if(s.composing)return!1;let c=s.state.doc.resolve(n);if(c.parent.type.spec.code||(c.nodeBefore||c.nodeAfter)?.marks.find(e=>e.type.spec.code))return!1;let l=!1,u=dJ(c)+i;return a.forEach(e=>{if(l)return;let a=GJ(u,e.find);if(!a)return;let c=s.state.tr,d=mK({state:s.state,transaction:c}),f={from:n-(a[0].length-i.length),to:r},{commands:p,chain:m,can:h}=new hK({editor:t,state:d});e.handler({state:d,range:f,match:a,commands:p,chain:m,can:h})===null||!c.steps.length||(e.undoable&&c.setMeta(o,{transform:c,from:n,to:r,text:i}),s.dispatch(c),l=!0)}),l}function qJ(e){let{editor:t,rules:n}=e,r=new FB({state:{init(){return null},apply(e,i,a){let o=e.getMeta(r);if(o)return o;let s=e.getMeta(`applyInputRules`);return s&&setTimeout(()=>{let{text:e}=s;e=typeof e==`string`?e:Iq(Z.from(e),a.schema);let{from:i}=s;KJ({editor:t,from:i,to:i+e.length,text:e,rules:n,plugin:r})}),e.selectionSet||e.docChanged?null:i}},props:{handleTextInput(e,i,a,o){return KJ({editor:t,from:i,to:a,text:o,rules:n,plugin:r})},handleDOMEvents:{compositionend:e=>(setTimeout(()=>{let{$cursor:i}=e.state.selection;i&&KJ({editor:t,from:i.pos,to:i.pos,text:``,rules:n,plugin:r})}),!1)},handleKeyDown(e,i){if(i.key!==`Enter`)return!1;let{$cursor:a}=e.state.selection;return a?KJ({editor:t,from:a.pos,to:a.pos,text:`
287
- `,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function JJ(e){return Object.prototype.toString.call(e).slice(8,-1)}function YJ(e){return JJ(e)===`Object`?e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype:!1}function XJ(e,t){let n={...e};return YJ(e)&&YJ(t)&&Object.keys(t).forEach(r=>{YJ(t[r])&&YJ(e[r])?n[r]=XJ(e[r],t[r]):n[r]=t[r]}),n}var ZJ=class{constructor(e={}){this.type=`extendable`,this.parent=null,this.child=null,this.name=``,this.config={name:this.name},this.config={...this.config,...e},this.name=this.config.name}get options(){return{...Rq(Pq(this,`addOptions`,{name:this.name}))||{}}}get storage(){return{...Rq(Pq(this,`addStorage`,{name:this.name,options:this.options}))||{}}}configure(e={}){let t=this.extend({...this.config,addOptions:()=>XJ(this.options,e)});return t.name=this.name,t.parent=this.parent,this.child=null,t}extend(e={}){let t=new this.constructor({...this.config,...e});return t.parent=this,this.child=t,t.name=`name`in e?e.name:t.parent.name,t}},QJ=class e extends ZJ{constructor(){super(...arguments),this.type=`mark`}static create(t={}){return new e(typeof t==`function`?t():t)}static handleExit({editor:e,mark:t}){let{tr:n}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){let i=r.marks();if(!i.find(e=>e?.type.name===t.name))return!1;let a=i.find(e=>e?.type.name===t.name);return a&&n.removeStoredMark(a),n.insertText(` `,r.pos),e.view.dispatch(n),!0}return!1}configure(e){return super.configure(e)}extend(e){let t=typeof e==`function`?e():e;return super.extend(t)}};function $J(e){return typeof e==`number`}var eY=class{constructor(e){this.find=e.find,this.handler=e.handler}},tY=(e,t,n)=>{if(AK(t))return[...e.matchAll(t)];let r=t(e,n);return r?r.map(t=>{let n=[t.text];return n.index=t.index,n.input=e,n.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn(`[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".`),n.push(t.replaceWith)),n}):[]};function nY(e){let{editor:t,state:n,from:r,to:i,rule:a,pasteEvent:o,dropEvent:s}=e,{commands:c,chain:l,can:u}=new hK({editor:t,state:n}),d=[];return n.doc.nodesBetween(r,i,(e,t)=>{if(e.type?.spec?.code||!(e.isText||e.isTextblock||e.isInline))return;let f=e.content?.size??e.nodeSize??0,p=Math.max(r,t),m=Math.min(i,t+f);p>=m||tY(e.isText?e.text||``:e.textBetween(p-t,m-t,void 0,``),a.find,o).forEach(e=>{if(e.index===void 0)return;let t=p+e.index+1,r=t+e[0].length,i={from:n.tr.mapping.map(t),to:n.tr.mapping.map(r)},f=a.handler({state:n,range:i,match:e,commands:c,chain:l,can:u,pasteEvent:o,dropEvent:s});d.push(f)})}),d.every(e=>e!==null)}var rY=null,iY=e=>{var t;let n=new ClipboardEvent(`paste`,{clipboardData:new DataTransfer});return(t=n.clipboardData)==null||t.setData(`text/html`,e),n};function aY(e){let{editor:t,rules:n}=e,r=null,i=!1,a=!1,o=typeof ClipboardEvent<`u`?new ClipboardEvent(`paste`):null,s;try{s=typeof DragEvent<`u`?new DragEvent(`drop`):null}catch{s=null}let c=({state:e,from:n,to:r,rule:i,pasteEvt:a})=>{let c=e.tr;if(!(!nY({editor:t,state:mK({state:e,transaction:c}),from:Math.max(n-1,0),to:r.b-1,rule:i,pasteEvent:a,dropEvent:s})||!c.steps.length)){try{s=typeof DragEvent<`u`?new DragEvent(`drop`):null}catch{s=null}return o=typeof ClipboardEvent<`u`?new ClipboardEvent(`paste`):null,c}};return n.map(e=>new FB({view(e){let n=n=>{r=e.dom.parentElement?.contains(n.target)?e.dom.parentElement:null,r&&(rY=t)},i=()=>{rY&&=null};return window.addEventListener(`dragstart`,n),window.addEventListener(`dragend`,i),{destroy(){window.removeEventListener(`dragstart`,n),window.removeEventListener(`dragend`,i)}}},props:{handleDOMEvents:{drop:(e,t)=>{if(a=r===e.dom.parentElement,s=t,!a){let e=rY;e?.isEditable&&setTimeout(()=>{let t=e.state.selection;t&&e.commands.deleteRange({from:t.from,to:t.to})},10)}return!1},paste:(e,t)=>{let n=t.clipboardData?.getData(`text/html`);return o=t,i=!!n?.includes(`data-pm-slice`),!1}}},appendTransaction:(t,n,r)=>{let s=t[0],l=s.getMeta(`uiEvent`)===`paste`&&!i,u=s.getMeta(`uiEvent`)===`drop`&&!a,d=s.getMeta(`applyPasteRules`),f=!!d;if(!l&&!u&&!f)return;if(f){let{text:t}=d;t=typeof t==`string`?t:Iq(Z.from(t),r.schema);let{from:n}=d,i=n+t.length,a=iY(t);return c({rule:e,state:r,from:n,to:{b:i},pasteEvt:a})}let p=n.doc.content.findDiffStart(r.doc.content),m=n.doc.content.findDiffEnd(r.doc.content);if(!(!$J(p)||!m||p===m.b))return c({rule:e,state:r,from:p,to:m,pasteEvt:o})}}))}var oY=class{constructor(e,t){this.splittableMarks=[],this.editor=t,this.baseExtensions=e,this.extensions=$q(e),this.schema=Xq(this.extensions,t),this.setupExtensions()}get commands(){return this.extensions.reduce((e,t)=>{let n=Pq(t,`addCommands`,{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:this.editor,type:lJ(t.name,this.schema)});return n?{...e,...n()}:e},{})}get plugins(){let{editor:e}=this;return Qq([...this.extensions].reverse()).flatMap(t=>{let n={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:lJ(t.name,this.schema)},r=[],i=Pq(t,`addKeyboardShortcuts`,n),a={};if(t.type===`mark`&&Pq(t,`exitable`,n)&&(a.ArrowRight=()=>QJ.handleExit({editor:e,mark:t})),i){let t=Object.fromEntries(Object.entries(i()).map(([t,n])=>[t,()=>n({editor:e})]));a={...a,...t}}let o=uK(a);r.push(o);let s=Pq(t,`addInputRules`,n);if(hJ(t,e.options.enableInputRules)&&s){let t=s();if(t&&t.length){let n=qJ({editor:e,rules:t}),i=Array.isArray(n)?n:[n];r.push(...i)}}let c=Pq(t,`addPasteRules`,n);if(hJ(t,e.options.enablePasteRules)&&c){let t=c();if(t&&t.length){let n=aY({editor:e,rules:t});r.push(...n)}}let l=Pq(t,`addProseMirrorPlugins`,n);if(l){let e=l();r.push(...e)}return r})}get attributes(){return Vq(this.extensions)}get nodeViews(){let{editor:e}=this,{nodeExtensions:t}=Bq(this.extensions);return Object.fromEntries(t.filter(e=>!!Pq(e,`addNodeView`)).map(t=>{let n=this.attributes.filter(e=>e.type===t.name),r=Pq(t,`addNodeView`,{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:wK(t.name,this.schema)});if(!r)return[];let i=r();return i?[t.name,(r,a,o,s,c)=>i({node:r,view:a,getPos:o,decorations:s,innerDecorations:c,editor:e,extension:t,HTMLAttributes:Gq(r,n)})]:[]}))}dispatchTransaction(e){let{editor:t}=this;return Qq([...this.extensions].reverse()).reduceRight((e,n)=>{let r={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:lJ(n.name,this.schema)},i=Pq(n,`dispatchTransaction`,r);return i?t=>{i.call(r,{transaction:t,next:e})}:e},e)}transformPastedHTML(e){let{editor:t}=this;return Qq([...this.extensions]).reduce((e,n)=>{let r={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:lJ(n.name,this.schema)},i=Pq(n,`transformPastedHTML`,r);return i?(t,n)=>{let a=e(t,n);return i.call(r,a)}:e},e||(e=>e))}get markViews(){let{editor:e}=this,{markExtensions:t}=Bq(this.extensions);return Object.fromEntries(t.filter(e=>!!Pq(e,`addMarkView`)).map(t=>{let n=this.attributes.filter(e=>e.type===t.name),r=Pq(t,`addMarkView`,{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:FK(t.name,this.schema)});return r?[t.name,(i,a,o)=>{let s=Gq(i,n);return r()({mark:i,view:a,inline:o,editor:e,extension:t,HTMLAttributes:s,updateAttributes:t=>{FY(i,e,t)}})}]:[]}))}destroy(){this.extensions.forEach(e=>{let t=e;for(;t.parent;){let e=t.parent;e.child===t&&(e.child=null),t=e}}),this.extensions=[],this.baseExtensions=[],this.schema=null,this.editor=null}setupExtensions(){let e=this.extensions;this.editor.extensionStorage=Object.fromEntries(e.map(e=>[e.name,e.storage])),e.forEach(e=>{let t={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:lJ(e.name,this.schema)};e.type===`mark`&&(Rq(Pq(e,`keepOnSplit`,t))??!0)&&this.splittableMarks.push(e.name);let n=Pq(e,`onBeforeCreate`,t),r=Pq(e,`onCreate`,t),i=Pq(e,`onUpdate`,t),a=Pq(e,`onSelectionUpdate`,t),o=Pq(e,`onTransaction`,t),s=Pq(e,`onFocus`,t),c=Pq(e,`onBlur`,t),l=Pq(e,`onDestroy`,t);n&&this.editor.on(`beforeCreate`,n),r&&this.editor.on(`create`,r),i&&this.editor.on(`update`,i),a&&this.editor.on(`selectionUpdate`,a),o&&this.editor.on(`transaction`,o),s&&this.editor.on(`focus`,s),c&&this.editor.on(`blur`,c),l&&this.editor.on(`destroy`,l)})}};oY.resolve=$q,oY.sort=Qq,oY.flatten=Fq,pK({},{ClipboardTextSerializer:()=>cY,Commands:()=>lY,Delete:()=>uY,Drop:()=>dY,Editable:()=>fY,FocusEvents:()=>mY,Keymap:()=>hY,Paste:()=>gY,Tabindex:()=>_Y,TextDirection:()=>vY,focusEventsPluginKey:()=>pY});var sY=class e extends ZJ{constructor(){super(...arguments),this.type=`extension`}static create(t={}){return new e(typeof t==`function`?t():t)}configure(e){return super.configure(e)}extend(e){let t=typeof e==`function`?e():e;return super.extend(t)}},cY=sY.create({name:`clipboardTextSerializer`,addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new FB({key:new RB(`clipboardTextSerializer`),props:{clipboardTextSerializer:()=>{let{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:i}=t,{ranges:a}=i,o=Math.min(...a.map(e=>e.$from.pos)),s=Math.max(...a.map(e=>e.$to.pos)),c=tJ(n);return eJ(r,{from:o,to:s},{...this.options.blockSeparator===void 0?{}:{blockSeparator:this.options.blockSeparator},textSerializers:c})}}})]}}),lY=sY.create({name:`commands`,addCommands(){return{...gK}}}),uY=sY.create({name:`delete`,onUpdate({transaction:e,appendedTransactions:t}){let n=()=>{var n;if(((n=this.editor.options.coreExtensionOptions?.delete)?.filterTransaction)?.call(n,e)??e.getMeta(`y-sync$`))return;let r=Oq(e.before,[e,...t]);oJ(r).forEach(t=>{r.mapping.mapResult(t.oldRange.from).deletedAfter&&r.mapping.mapResult(t.oldRange.to).deletedBefore&&r.before.nodesBetween(t.oldRange.from,t.oldRange.to,(n,i)=>{let a=i+n.nodeSize-2,o=t.oldRange.from<=i&&a<=t.oldRange.to;this.editor.emit(`delete`,{type:`node`,node:n,from:i,to:a,newFrom:r.mapping.map(i),newTo:r.mapping.map(a),deletedRange:t.oldRange,newRange:t.newRange,partial:!o,editor:this.editor,transaction:e,combinedTransform:r})})});let i=r.mapping;r.steps.forEach((t,n)=>{if(t instanceof Cz){let a=i.slice(n).map(t.from,-1),o=i.slice(n).map(t.to),s=i.invert().map(a,-1),c=i.invert().map(o),l=a>0?r.doc.nodeAt(a-1)?.marks.some(e=>e.eq(t.mark)):!1,u=r.doc.nodeAt(o)?.marks.some(e=>e.eq(t.mark));this.editor.emit(`delete`,{type:`mark`,mark:t.mark,from:t.from,to:t.to,deletedRange:{from:s,to:c},newRange:{from:a,to:o},partial:!!(u||l),editor:this.editor,transaction:e,combinedTransform:r})}})};this.editor.options.coreExtensionOptions?.delete?.async??!0?setTimeout(n,0):n()}}),dY=sY.create({name:`drop`,addProseMirrorPlugins(){return[new FB({key:new RB(`tiptapDrop`),props:{handleDrop:(e,t,n,r)=>{this.editor.emit(`drop`,{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),fY=sY.create({name:`editable`,addProseMirrorPlugins(){return[new FB({key:new RB(`editable`),props:{editable:()=>this.editor.options.editable}})]}}),pY=new RB(`focusEvents`),mY=sY.create({name:`focusEvents`,addProseMirrorPlugins(){let{editor:e}=this;return[new FB({key:pY,props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;let r=e.state.tr.setMeta(`focus`,{event:n}).setMeta(`addToHistory`,!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;let r=e.state.tr.setMeta(`blur`,{event:n}).setMeta(`addToHistory`,!1);return t.dispatch(r),!1}}}})]}}),hY=sY.create({name:`keymap`,addKeyboardShortcuts(){let e=()=>this.editor.commands.first(({commands:e})=>[()=>e.undoInputRule(),()=>e.command(({tr:t})=>{let{selection:n,doc:r}=t,{empty:i,$anchor:a}=n,{pos:o,parent:s}=a,c=a.parent.isTextblock&&o>0?t.doc.resolve(o-1):a,l=c.parent.type.spec.isolating,u=a.pos-a.parentOffset,d=l&&c.parent.childCount===1?u===a.pos:bB.atStart(r).from===o;return!i||!s.type.isTextblock||s.textContent.length||!d||d&&a.parent.type.name===`paragraph`?!1:e.clearNodes()}),()=>e.deleteSelection(),()=>e.joinBackward(),()=>e.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:e})=>[()=>e.deleteSelection(),()=>e.deleteCurrentNode(),()=>e.joinForward(),()=>e.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:e})=>[()=>e.newlineInCode(),()=>e.createParagraphNear(),()=>e.liftEmptyBlock(),()=>e.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},r={...n},i={...n,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return HK()||sq()?i:r},addProseMirrorPlugins(){return[new FB({key:new RB(`clearDocument`),appendTransaction:(e,t,n)=>{if(e.some(e=>e.getMeta(`composition`)))return;let r=e.some(e=>e.docChanged)&&!t.doc.eq(n.doc),i=e.some(e=>e.getMeta(`preventClearDocument`));if(!r||i)return;let{empty:a,from:o,to:s}=t.selection,c=bB.atStart(t.doc).from,l=bB.atEnd(t.doc).to;if(a||!(o===c&&s===l)||!_J(n.doc))return;let u=n.tr,d=mK({state:n,transaction:u}),{commands:f}=new hK({editor:this.editor,state:d});if(f.clearNodes(),u.steps.length)return u}})]}}),gY=sY.create({name:`paste`,addProseMirrorPlugins(){return[new FB({key:new RB(`tiptapPaste`),props:{handlePaste:(e,t,n)=>{this.editor.emit(`paste`,{editor:this.editor,event:t,slice:n})}}})]}}),_Y=sY.create({name:`tabindex`,addOptions(){return{value:void 0}},addProseMirrorPlugins(){return[new FB({key:new RB(`tabindex`),props:{attributes:()=>!this.editor.isEditable&&this.options.value===void 0?{}:{tabindex:this.options.value??`0`}}})]}}),vY=sY.create({name:`textDirection`,addOptions(){return{direction:void 0}},addGlobalAttributes(){if(!this.options.direction)return[];let{nodeExtensions:e}=Bq(this.extensions);return[{types:e.filter(e=>e.name!==`text`).map(e=>e.name),attributes:{dir:{default:this.options.direction,parseHTML:e=>{let t=e.getAttribute(`dir`);return t&&(t===`ltr`||t===`rtl`||t===`auto`)?t:this.options.direction},renderHTML:e=>e.dir?{dir:e.dir}:{}}}}]},addProseMirrorPlugins(){return[new FB({key:new RB(`textDirection`),props:{attributes:()=>{let e=this.options.direction;return e?{dir:e}:{}}}})]}});function yY(e){return new WJ({find:e.find,handler:({state:t,range:n,match:r})=>{let i=Rq(e.getAttributes,void 0,r);if(i===!1||i===null)return null;let{tr:a}=t,o=r[r.length-1],s=r[0];if(o){let r=s.search(/\S/),c=n.from+s.indexOf(o),l=c+o.length;if(sJ(n.from,n.to,t.doc).filter(t=>t.mark.type.excluded.find(n=>n===e.type&&n!==t.mark.type)).filter(e=>e.to>c).length)return null;l<n.to&&a.delete(l,n.to),c>n.from&&a.delete(n.from+r,c);let u=n.from+r+o.length;a.addMark(n.from+r,u,e.type.create(i||{})),a.removeStoredMark(e.type)}},undoable:e.undoable})}function bY(e){return new WJ({find:e.find,handler:({state:t,range:n,match:r})=>{let i=Rq(e.getAttributes,void 0,r)||{},{tr:a}=t,o=n.from,s=n.to,c=e.type.create(i);if(r[1]){let e=o+r[0].lastIndexOf(r[1]);e>s?e=s:s=e+r[1].length;let t=r[0][r[0].length-1];a.insertText(t,o+r[0].length-1),a.replaceWith(e,s,c)}else if(r[0]){let t=e.type.isInline?o:o-1;a.insert(t,e.type.create(i)).delete(a.mapping.map(o),a.mapping.map(s))}a.scrollIntoView()},undoable:e.undoable})}function xY(e){return new WJ({find:e.find,handler:({state:t,range:n,match:r})=>{let i=t.doc.resolve(n.from),a=Rq(e.getAttributes,void 0,r)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,a)},undoable:e.undoable})}function SY(e){return new WJ({find:e.find,handler:({state:t,range:n,match:r,chain:i})=>{let a=Rq(e.getAttributes,void 0,r)||{},o=t.tr.delete(n.from,n.to),s=o.doc.resolve(n.from).blockRange(),c=s&&Fz(s,e.type,a);if(!c)return null;if(o.wrap(s,c),e.keepMarks&&e.editor){let{selection:n,storedMarks:r}=t,{splittableMarks:i}=e.editor.extensionManager,a=r||n.$to.parentOffset&&n.$from.marks();if(a){let e=a.filter(e=>i.includes(e.type.name));o.ensureMarks(e)}}if(e.keepAttributes){let t=e.type.name===`bulletList`||e.type.name===`orderedList`?`listItem`:`taskList`;i().updateAttributes(t,a).run()}let l=o.doc.resolve(n.from-1).nodeBefore;l&&l.type===e.type&&qz(o.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,l))&&o.join(n.from-1)},undoable:e.undoable})}var CY=e=>`touches`in e,wY=class{constructor(e){this.directions=[`bottom-left`,`bottom-right`,`top-left`,`top-right`],this.minSize={height:8,width:8},this.preserveAspectRatio=!1,this.classNames={container:``,wrapper:``,handle:``,resizing:``},this.initialWidth=0,this.initialHeight=0,this.aspectRatio=1,this.isResizing=!1,this.activeHandle=null,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.isShiftKeyPressed=!1,this.lastEditableState=void 0,this.handleMap=new Map,this.handleMouseMove=e=>{if(!this.isResizing||!this.activeHandle)return;let t=e.clientX-this.startX,n=e.clientY-this.startY;this.handleResize(t,n)},this.handleTouchMove=e=>{if(!this.isResizing||!this.activeHandle)return;let t=e.touches[0];if(!t)return;let n=t.clientX-this.startX,r=t.clientY-this.startY;this.handleResize(n,r)},this.handleMouseUp=()=>{if(!this.isResizing)return;let e=this.element.offsetWidth,t=this.element.offsetHeight;this.onCommit(e,t),this.isResizing=!1,this.activeHandle=null,this.container.dataset.resizeState=`false`,this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener(`mousemove`,this.handleMouseMove),document.removeEventListener(`mouseup`,this.handleMouseUp),document.removeEventListener(`keydown`,this.handleKeyDown),document.removeEventListener(`keyup`,this.handleKeyUp)},this.handleKeyDown=e=>{e.key===`Shift`&&(this.isShiftKeyPressed=!0)},this.handleKeyUp=e=>{e.key===`Shift`&&(this.isShiftKeyPressed=!1)},this.node=e.node,this.editor=e.editor,this.element=e.element,this.contentElement=e.contentElement,this.getPos=e.getPos,this.onResize=e.onResize,this.onCommit=e.onCommit,this.onUpdate=e.onUpdate,e.options?.min&&(this.minSize={...this.minSize,...e.options.min}),e.options?.max&&(this.maxSize=e.options.max),e?.options?.directions&&(this.directions=e.options.directions),e.options?.preserveAspectRatio&&(this.preserveAspectRatio=e.options.preserveAspectRatio),e.options?.className&&(this.classNames={container:e.options.className.container||``,wrapper:e.options.className.wrapper||``,handle:e.options.className.handle||``,resizing:e.options.className.resizing||``}),e.options?.createCustomHandle&&(this.createCustomHandle=e.options.createCustomHandle),this.wrapper=this.createWrapper(),this.container=this.createContainer(),this.applyInitialSize(),this.attachHandles(),this.editor.on(`update`,this.handleEditorUpdate.bind(this))}get dom(){return this.container}get contentDOM(){return this.contentElement??null}handleEditorUpdate(){let e=this.editor.isEditable;e!==this.lastEditableState&&(this.lastEditableState=e,e?e&&this.handleMap.size===0&&this.attachHandles():this.removeHandles())}update(e,t,n){return e.type===this.node.type?(this.node=e,this.onUpdate?this.onUpdate(e,t,n):!0):!1}destroy(){this.isResizing&&(this.container.dataset.resizeState=`false`,this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener(`mousemove`,this.handleMouseMove),document.removeEventListener(`mouseup`,this.handleMouseUp),document.removeEventListener(`keydown`,this.handleKeyDown),document.removeEventListener(`keyup`,this.handleKeyUp),this.isResizing=!1,this.activeHandle=null),this.editor.off(`update`,this.handleEditorUpdate.bind(this)),this.container.remove()}createContainer(){let e=document.createElement(`div`);return e.dataset.resizeContainer=``,e.dataset.node=this.node.type.name,e.style.display=this.node.type.isInline?`inline-flex`:`flex`,this.classNames.container&&(e.className=this.classNames.container),e.appendChild(this.wrapper),e}createWrapper(){let e=document.createElement(`div`);return e.style.position=`relative`,e.style.display=`block`,e.dataset.resizeWrapper=``,this.classNames.wrapper&&(e.className=this.classNames.wrapper),e.appendChild(this.element),e}createHandle(e){let t=document.createElement(`div`);return t.dataset.resizeHandle=e,t.style.position=`absolute`,this.classNames.handle&&(t.className=this.classNames.handle),t}positionHandle(e,t){let n=t.includes(`top`),r=t.includes(`bottom`),i=t.includes(`left`),a=t.includes(`right`);n&&(e.style.top=`0`),r&&(e.style.bottom=`0`),i&&(e.style.left=`0`),a&&(e.style.right=`0`),(t===`top`||t===`bottom`)&&(e.style.left=`0`,e.style.right=`0`),(t===`left`||t===`right`)&&(e.style.top=`0`,e.style.bottom=`0`)}attachHandles(){this.directions.forEach(e=>{let t;t=this.createCustomHandle?this.createCustomHandle(e):this.createHandle(e),t instanceof HTMLElement||(console.warn(`[ResizableNodeView] createCustomHandle("${e}") did not return an HTMLElement. Falling back to default handle.`),t=this.createHandle(e)),this.createCustomHandle||this.positionHandle(t,e),t.addEventListener(`mousedown`,t=>this.handleResizeStart(t,e)),t.addEventListener(`touchstart`,t=>this.handleResizeStart(t,e)),this.handleMap.set(e,t),this.wrapper.appendChild(t)})}removeHandles(){this.handleMap.forEach(e=>e.remove()),this.handleMap.clear()}applyInitialSize(){let e=this.node.attrs.width,t=this.node.attrs.height;e?(this.element.style.width=`${e}px`,this.initialWidth=e):this.initialWidth=this.element.offsetWidth,t?(this.element.style.height=`${t}px`,this.initialHeight=t):this.initialHeight=this.element.offsetHeight,this.initialWidth>0&&this.initialHeight>0&&(this.aspectRatio=this.initialWidth/this.initialHeight)}handleResizeStart(e,t){e.preventDefault(),e.stopPropagation(),this.isResizing=!0,this.activeHandle=t,CY(e)?(this.startX=e.touches[0].clientX,this.startY=e.touches[0].clientY):(this.startX=e.clientX,this.startY=e.clientY),this.startWidth=this.element.offsetWidth,this.startHeight=this.element.offsetHeight,this.startWidth>0&&this.startHeight>0&&(this.aspectRatio=this.startWidth/this.startHeight),this.getPos(),this.container.dataset.resizeState=`true`,this.classNames.resizing&&this.container.classList.add(this.classNames.resizing),document.addEventListener(`mousemove`,this.handleMouseMove),document.addEventListener(`touchmove`,this.handleTouchMove),document.addEventListener(`mouseup`,this.handleMouseUp),document.addEventListener(`keydown`,this.handleKeyDown),document.addEventListener(`keyup`,this.handleKeyUp)}handleResize(e,t){if(!this.activeHandle)return;let n=this.preserveAspectRatio||this.isShiftKeyPressed,{width:r,height:i}=this.calculateNewDimensions(this.activeHandle,e,t),a=this.applyConstraints(r,i,n);this.element.style.width=`${a.width}px`,this.element.style.height=`${a.height}px`,this.onResize&&this.onResize(a.width,a.height)}calculateNewDimensions(e,t,n){let r=this.startWidth,i=this.startHeight,a=e.includes(`right`),o=e.includes(`left`),s=e.includes(`bottom`),c=e.includes(`top`);return a?r=this.startWidth+t:o&&(r=this.startWidth-t),s?i=this.startHeight+n:c&&(i=this.startHeight-n),(e===`right`||e===`left`)&&(r=this.startWidth+(a?t:-t)),(e===`top`||e===`bottom`)&&(i=this.startHeight+(s?n:-n)),this.preserveAspectRatio||this.isShiftKeyPressed?this.applyAspectRatio(r,i,e):{width:r,height:i}}applyConstraints(e,t,n){if(!n){let n=Math.max(this.minSize.width,e),r=Math.max(this.minSize.height,t);return this.maxSize?.width&&(n=Math.min(this.maxSize.width,n)),this.maxSize?.height&&(r=Math.min(this.maxSize.height,r)),{width:n,height:r}}let r=e,i=t;return r<this.minSize.width&&(r=this.minSize.width,i=r/this.aspectRatio),i<this.minSize.height&&(i=this.minSize.height,r=i*this.aspectRatio),this.maxSize?.width&&r>this.maxSize.width&&(r=this.maxSize.width,i=r/this.aspectRatio),this.maxSize?.height&&i>this.maxSize.height&&(i=this.maxSize.height,r=i*this.aspectRatio),{width:r,height:i}}applyAspectRatio(e,t,n){return n===`left`||n===`right`?{width:e,height:e/this.aspectRatio}:n===`top`||n===`bottom`?{width:t*this.aspectRatio,height:t}:{width:e,height:e/this.aspectRatio}}};function TY(e,t){let{selection:n}=e,{$from:r}=n;if(n instanceof EB){let e=r.index();return r.parent.canReplaceWith(e,e+1,t)}let i=r.depth;for(;i>=0;){let e=r.index(i);if(r.node(i).contentMatchAt(e).matchType(t))return!0;--i}return!1}pK({},{createAtomBlockMarkdownSpec:()=>OY,createBlockMarkdownSpec:()=>kY,createInlineMarkdownSpec:()=>MY,parseAttributes:()=>EY,parseIndentedBlocks:()=>NY,renderNestedMarkdownContent:()=>PY,serializeAttributes:()=>DY});function EY(e){if(!e?.trim())return{};let t={},n=[],r=e.replace(/["']([^"']*)["']/g,e=>(n.push(e),`__QUOTED_${n.length-1}__`)),i=r.match(/(?:^|\s)\.([a-zA-Z][\w-]*)/g);i&&(t.class=i.map(e=>e.trim().slice(1)).join(` `));let a=r.match(/(?:^|\s)#([a-zA-Z][\w-]*)/);a&&(t.id=a[1]),Array.from(r.matchAll(/([a-zA-Z][\w-]*)\s*=\s*(__QUOTED_\d+__)/g)).forEach(([,e,r])=>{let i=n[parseInt(r.match(/__QUOTED_(\d+)__/)?.[1]||`0`,10)];i&&(t[e]=i.slice(1,-1))});let o=r.replace(/(?:^|\s)\.([a-zA-Z][\w-]*)/g,``).replace(/(?:^|\s)#([a-zA-Z][\w-]*)/g,``).replace(/([a-zA-Z][\w-]*)\s*=\s*__QUOTED_\d+__/g,``).trim();return o&&o.split(/\s+/).filter(Boolean).forEach(e=>{e.match(/^[a-zA-Z][\w-]*$/)&&(t[e]=!0)}),t}function DY(e){if(!e||Object.keys(e).length===0)return``;let t=[];return e.class&&String(e.class).split(/\s+/).filter(Boolean).forEach(e=>t.push(`.${e}`)),e.id&&t.push(`#${e.id}`),Object.entries(e).forEach(([e,n])=>{e===`class`||e===`id`||(n===!0?t.push(e):n!==!1&&n!=null&&t.push(`${e}="${String(n)}"`))}),t.join(` `)}function OY(e){let{nodeName:t,name:n,parseAttributes:r=EY,serializeAttributes:i=DY,defaultAttributes:a={},requiredAttributes:o=[],allowedAttributes:s}=e,c=n||t,l=e=>{if(!s)return e;let t={};return s.forEach(n=>{n in e&&(t[n]=e[n])}),t};return{parseMarkdown:(e,n)=>{let r={...a,...e.attributes};return n.createNode(t,r,[])},markdownTokenizer:{name:t,level:`block`,start(e){let t=RegExp(`^:::${c}(?:\\s|$)`,`m`),n=e.match(t)?.index;return n===void 0?-1:n},tokenize(e,n,i){let a=RegExp(`^:::${c}(?:\\s+\\{([^}]*)\\})?\\s*:::(?:\\n|$)`),s=e.match(a);if(!s)return;let l=r(s[1]||``);if(!o.find(e=>!(e in l)))return{type:t,raw:s[0],attributes:l}}},renderMarkdown:e=>{let t=i(l(e.attrs||{}));return`:::${c}${t?` {${t}}`:``} :::`}}}function kY(e){let{nodeName:t,name:n,getContent:r,parseAttributes:i=EY,serializeAttributes:a=DY,defaultAttributes:o={},content:s=`block`,allowedAttributes:c}=e,l=n||t,u=e=>{if(!c)return e;let t={};return c.forEach(n=>{n in e&&(t[n]=e[n])}),t};return{parseMarkdown:(e,n)=>{let i;if(r){let t=r(e);i=typeof t==`string`?[{type:`text`,text:t}]:t}else i=s===`block`?n.parseChildren(e.tokens||[]):n.parseInline(e.tokens||[]);let a={...o,...e.attributes};return n.createNode(t,a,i)},markdownTokenizer:{name:t,level:`block`,start(e){let t=RegExp(`^:::${l}`,`m`),n=e.match(t)?.index;return n===void 0?-1:n},tokenize(e,n,r){let a=RegExp(`^:::${l}(?:\\s+\\{([^}]*)\\})?\\s*\\n`),o=e.match(a);if(!o)return;let[c,u=``]=o,d=i(u),f=1,p=c.length,m=``,h=/^:::([\w-]*)(\s.*)?/gm,g=e.slice(p);for(h.lastIndex=0;;){let n=h.exec(g);if(n===null)break;let i=n.index,a=n[1];if(!n[2]?.endsWith(`:::`)){if(a)f+=1;else if(--f,f===0){let a=g.slice(0,i);m=a.trim();let o=e.slice(0,p+i+n[0].length),c=[];if(m)if(s===`block`)for(c=r.blockTokens(a),c.forEach(e=>{e.text&&(!e.tokens||e.tokens.length===0)&&(e.tokens=r.inlineTokens(e.text))});c.length>0;){let e=c[c.length-1];if(e.type===`paragraph`&&(!e.text||e.text.trim()===``))c.pop();else break}else c=r.inlineTokens(m);return{type:t,raw:o,attributes:d,content:m,tokens:c}}}}}},renderMarkdown:(e,t)=>{let n=a(u(e.attrs||{}));return`:::${l}${n?` {${n}}`:``}
288
-
289
- ${t.renderChildren(e.content||[],`
290
-
291
- `)}
292
-
293
- :::`}}}function AY(e){if(!e.trim())return{};let t={},n=/(\w+)=(?:"([^"]*)"|'([^']*)')/g,r=n.exec(e);for(;r!==null;){let[,i,a,o]=r;t[i]=a||o,r=n.exec(e)}return t}function jY(e){return Object.entries(e).filter(([,e])=>e!=null).map(([e,t])=>`${e}="${t}"`).join(` `)}function MY(e){let{nodeName:t,name:n,getContent:r,parseAttributes:i=AY,serializeAttributes:a=jY,defaultAttributes:o={},selfClosing:s=!1,allowedAttributes:c}=e,l=n||t,u=e=>{if(!c)return e;let t={};return c.forEach(n=>{let r=typeof n==`string`?n:n.name,i=typeof n==`string`?void 0:n.skipIfDefault;if(r in e){let n=e[r];if(i!==void 0&&n===i)return;t[r]=n}}),t},d=l.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);return{parseMarkdown:(e,n)=>{let i={...o,...e.attributes};if(s)return n.createNode(t,i);let a=r?r(e):e.content||``;return a?n.createNode(t,i,[n.createTextNode(a)]):n.createNode(t,i,[])},markdownTokenizer:{name:t,level:`inline`,start(e){let t=RegExp(s?`\\[${d}\\s*[^\\]]*\\]`:`\\[${d}\\s*[^\\]]*\\][\\s\\S]*?\\[\\/${d}\\]`),n=e.match(t)?.index;return n===void 0?-1:n},tokenize(e,n,r){let a=RegExp(s?`^\\[${d}\\s*([^\\]]*)\\]`:`^\\[${d}\\s*([^\\]]*)\\]([\\s\\S]*?)\\[\\/${d}\\]`),o=e.match(a);if(!o)return;let c=``,l=``;if(s){let[,e]=o;l=e}else{let[,e,t]=o;l=e,c=t||``}let u=i(l.trim());return{type:t,raw:o[0],content:c.trim(),attributes:u}}},renderMarkdown:e=>{let t=``;r?t=r(e):e.content&&e.content.length>0&&(t=e.content.filter(e=>e.type===`text`).map(e=>e.text).join(``));let n=a(u(e.attrs||{})),i=n?` ${n}`:``;return s?`[${l}${i}]`:`[${l}${i}]${t}[/${l}]`}}}function NY(e,t,n){let r=e.split(`
294
- `),i=[],a=``,o=0,s=t.baseIndentSize||2;for(;o<r.length;){let e=r[o],c=e.match(t.itemPattern);if(!c){if(i.length>0)break;if(e.trim()===``){o+=1,a=`${a}${e}
295
- `;continue}else return}let l=t.extractItemData(c),{indentLevel:u,mainContent:d}=l;a=`${a}${e}
296
- `;let f=[d];for(o+=1;o<r.length;){let e=r[o];if(e.trim()===``){let t=r.slice(o+1).findIndex(e=>e.trim()!==``);if(t===-1)break;if((r[o+1+t].match(/^(\s*)/)?.[1]?.length||0)>u){f.push(e),a=`${a}${e}
297
- `,o+=1;continue}else break}if((e.match(/^(\s*)/)?.[1]?.length||0)>u)f.push(e),a=`${a}${e}
298
- `,o+=1;else break}let p,m=f.slice(1);if(m.length>0){let e=m.map(e=>e.slice(u+s)).join(`
299
- `);e.trim()&&(p=t.customNestedParser?t.customNestedParser(e):n.blockTokens(e))}let h=t.createToken(l,p);i.push(h)}if(i.length!==0)return{items:i,raw:a}}function PY(e,t,n,r){if(!e||!Array.isArray(e.content))return``;let i=typeof n==`function`?n(r):n,[a,...o]=e.content,s=`${i}${t.renderChildren([a])}`;return o&&o.length>0&&o.forEach((e,n)=>{let r=t.renderChild?.call(t,e,n+1)??t.renderChildren([e]);if(r!=null){let n=r.split(`
300
- `).map(e=>e?t.indent(e):t.indent(``)).join(`
301
- `);s+=e.type===`paragraph`?`
302
-
303
- ${n}`:`
304
- ${n}`}}),s}function FY(e,t,n={}){let{state:r}=t,{doc:i,tr:a}=r,o=e;i.descendants((t,r)=>{let i=a.mapping.map(r),s=a.mapping.map(r)+t.nodeSize,c=null;if(t.marks.forEach(e=>{if(e!==o)return!1;c=e}),!c)return;let l=!1;if(Object.keys(n).forEach(e=>{n[e]!==c.attrs[e]&&(l=!0)}),l){let t=e.type.create({...e.attrs,...n});a.removeMark(i,s,e.type),a.addMark(i,s,t)}}),a.docChanged&&t.view.dispatch(a)}var IY=class e extends ZJ{constructor(){super(...arguments),this.type=`node`}static create(t={}){return new e(typeof t==`function`?t():t)}configure(e){return super.configure(e)}extend(e){let t=typeof e==`function`?e():e;return super.extend(t)}};function LY(e){return new eY({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:i})=>{let a=Rq(e.getAttributes,void 0,r,i);if(a===!1||a===null)return null;let{tr:o}=t,s=r[r.length-1],c=r[0],l=n.to;if(s){let i=c.search(/\S/),u=n.from+c.indexOf(s),d=u+s.length;if(sJ(n.from,n.to,t.doc).filter(t=>t.mark.type.excluded.find(n=>n===e.type&&n!==t.mark.type)).filter(e=>e.to>u).length)return null;d<n.to&&o.delete(d,n.to),u>n.from&&o.delete(n.from+i,u),l=n.from+i+s.length,o.addMark(n.from+i,l,e.type.create(a||{})),r.index!==void 0&&r.input!==void 0&&r.index+r[0].length>=r.input.length||o.removeStoredMark(e.type)}}})}var RY=(e,t)=>{if(e===`slot`)return 0;if(e instanceof Function)return e(t);let{children:n,...r}=t??{};if(e===`svg`)throw Error(`SVG elements are not supported in the JSX syntax, use the array syntax instead`);return[e,r,n]},zY=/^\s*>\s$/,BY=IY.create({name:`blockquote`,addOptions(){return{HTMLAttributes:{}}},content:`block+`,group:`block`,defining:!0,parseHTML(){return[{tag:`blockquote`}]},renderHTML({HTMLAttributes:e}){return RY(`blockquote`,{...Wq(this.options.HTMLAttributes,e),children:RY(`slot`,{})})},parseMarkdown:(e,t)=>{let n=t.parseBlockChildren??t.parseChildren;return t.createNode(`blockquote`,void 0,n(e.tokens||[]))},renderMarkdown:(e,t)=>{if(!e.content)return``;let n=[];return e.content.forEach((e,r)=>{let i=(t.renderChild?.call(t,e,r)??t.renderChildren([e])).split(`
305
- `).map(e=>e.trim()===``?`>`:`> ${e}`);n.push(i.join(`
306
- `))}),n.join(`
307
- >
308
- `)},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[SY({find:zY,type:this.type})]}}),VY=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,HY=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,UY=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,WY=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,GY=QJ.create({name:`bold`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`strong`},{tag:`b`,getAttrs:e=>e.style.fontWeight!==`normal`&&null},{style:`font-weight=400`,clearMark:e=>e.type.name===this.name},{style:`font-weight`,getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return RY(`strong`,{...Wq(this.options.HTMLAttributes,e),children:RY(`slot`,{})})},markdownTokenName:`strong`,parseMarkdown:(e,t)=>t.applyMark(`bold`,t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:`<strong>`,close:`</strong>`}},renderMarkdown:(e,t)=>`**${t.renderChildren(e)}**`,addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[yY({find:VY,type:this.type}),yY({find:UY,type:this.type})]},addPasteRules(){return[LY({find:HY,type:this.type}),LY({find:WY,type:this.type})]}}),KY=/(^|[^`])`([^`]+)`(?!`)$/,qY=/(^|[^`])`([^`]+)`(?!`)/g,JY=QJ.create({name:`code`,addOptions(){return{HTMLAttributes:{}}},excludes:`_`,code:!0,exitable:!0,parseHTML(){return[{tag:`code`}]},renderHTML({HTMLAttributes:e}){return[`code`,Wq(this.options.HTMLAttributes,e),0]},markdownTokenName:`codespan`,parseMarkdown:(e,t)=>t.applyMark(`code`,[{type:`text`,text:e.text||``}]),renderMarkdown:(e,t)=>e.content?`\`${t.renderChildren(e.content)}\``:``,addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[yY({find:KY,type:this.type})]},addPasteRules(){return[LY({find:qY,type:this.type})]}}),YY=4,XY=/^```([a-z]+)?[\s\n]$/,ZY=/^~~~([a-z]+)?[\s\n]$/,QY=IY.create({name:`codeBlock`,addOptions(){return{languageClassPrefix:`language-`,exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:YY,HTMLAttributes:{}}},content:`text*`,marks:``,group:`block`,code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{let{languageClassPrefix:t}=this.options;return t&&[...e.firstElementChild?.classList||[]].filter(e=>e.startsWith(t)).map(e=>e.replace(t,``))[0]||null},rendered:!1}}},parseHTML(){return[{tag:`pre`,preserveWhitespace:`full`}]},renderHTML({node:e,HTMLAttributes:t}){return[`pre`,Wq(this.options.HTMLAttributes,t),[`code`,{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},markdownTokenName:`code`,parseMarkdown:(e,t)=>e.raw?.startsWith("```")===!1&&e.raw?.startsWith(`~~~`)===!1&&e.codeBlockStyle!==`indented`?[]:t.createNode(`codeBlock`,{language:e.lang||null},e.text?[t.createTextNode(e.text)]:[]),renderMarkdown:(e,t)=>{let n=``,r=e.attrs?.language||``;return n=e.content?[`\`\`\`${r}`,t.renderChildren(e.content),"```"].join(`
309
- `):`\`\`\`${r}
310
-
311
- \`\`\``,n},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,`paragraph`,e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{let{empty:e,$anchor:t}=this.editor.state.selection,n=t.pos===1;return!e||t.parent.type.name!==this.name?!1:n||!t.parent.textContent.length?this.editor.commands.clearNodes():!1},Tab:({editor:e})=>{if(!this.options.enableTabIndentation)return!1;let t=this.options.tabSize??YY,{state:n}=e,{selection:r}=n,{$from:i,empty:a}=r;if(i.parent.type!==this.type)return!1;let o=` `.repeat(t);return a?e.commands.insertContent(o):e.commands.command(({tr:e})=>{let{from:t,to:i}=r,a=n.doc.textBetween(t,i,`
312
- `,`
313
- `).split(`
314
- `).map(e=>o+e).join(`
315
- `);return e.replaceWith(t,i,n.schema.text(a)),!0})},"Shift-Tab":({editor:e})=>{if(!this.options.enableTabIndentation)return!1;let t=this.options.tabSize??YY,{state:n}=e,{selection:r}=n,{$from:i,empty:a}=r;return i.parent.type===this.type?a?e.commands.command(({tr:e})=>{let{pos:r}=i,a=i.start(),o=i.end(),s=n.doc.textBetween(a,o,`
316
- `,`
317
- `).split(`
318
- `),c=0,l=0,u=r-a;for(let e=0;e<s.length;e+=1){if(l+s[e].length>=u){c=e;break}l+=s[e].length+1}let d=s[c].match(/^ */)?.[0]||``,f=Math.min(d.length,t);if(f===0)return!0;let p=a;for(let e=0;e<c;e+=1)p+=s[e].length+1;return e.delete(p,p+f),r-p<=f&&e.setSelection(wB.create(e.doc,p)),!0}):e.commands.command(({tr:e})=>{let{from:i,to:a}=r,o=n.doc.textBetween(i,a,`
319
- `,`
320
- `).split(`
321
- `).map(e=>{let n=e.match(/^ */)?.[0]||``,r=Math.min(n.length,t);return e.slice(r)}).join(`
322
- `);return e.replaceWith(i,a,n.schema.text(o)),!0}):!1},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;let{state:t}=e,{selection:n}=t,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type)return!1;let a=r.parentOffset===r.parent.nodeSize-2,o=r.parent.textContent.endsWith(`
323
-
324
- `);return!a||!o?!1:e.chain().command(({tr:e})=>(e.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;let{state:t}=e,{selection:n,doc:r}=t,{$from:i,empty:a}=n;if(!a||i.parent.type!==this.type||i.parentOffset!==i.parent.nodeSize-2)return!1;let o=i.after();return o===void 0?!1:r.nodeAt(o)?e.commands.command(({tr:e})=>(e.setSelection(bB.near(r.resolve(o))),!0)):e.commands.exitCode()}}},addInputRules(){return[xY({find:XY,type:this.type,getAttributes:e=>({language:e[1]})}),xY({find:ZY,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new FB({key:new RB(`codeBlockVSCodeHandler`),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;let n=t.clipboardData.getData(`text/plain`),r=t.clipboardData.getData(`vscode-editor-data`),i=(r?JSON.parse(r):void 0)?.mode;if(!n||!i)return!1;let{tr:a,schema:o}=e.state,s=o.text(n.replace(/\r\n?/g,`
325
- `));return a.replaceSelectionWith(this.type.create({language:i},s)),a.selection.$from.parent.type!==this.type&&a.setSelection(wB.near(a.doc.resolve(Math.max(0,a.selection.from-2)))),a.setMeta(`paste`,!0),e.dispatch(a),!0}}})]}}),$Y=IY.create({name:`doc`,topNode:!0,content:`block+`,renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
326
-
327
- `):``}),eX=IY.create({name:`hardBreak`,markdownTokenName:`br`,addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:`inline`,selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:`br`}]},renderHTML({HTMLAttributes:e}){return[`br`,Wq(this.options.HTMLAttributes,e)]},renderText(){return`
328
- `},renderMarkdown:()=>`
329
- `,parseMarkdown:()=>({type:`hardBreak`}),addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{let{selection:e,storedMarks:i}=n;if(e.$from.parent.type.spec.isolating)return!1;let{keepMarks:a}=this.options,{splittableMarks:o}=r.extensionManager,s=i||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{if(t&&s&&a){let t=s.filter(e=>o.includes(e.type.name));e.ensureMarks(t)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),tX=IY.create({name:`heading`,addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:`inline*`,group:`block`,defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,Wq(this.options.HTMLAttributes,t),0]},parseMarkdown:(e,t)=>t.createNode(`heading`,{level:e.depth||1},t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>{let n=e.attrs?.level?parseInt(e.attrs.level,10):1,r=`#`.repeat(n);return e.content?`${r} ${t.renderChildren(e.content)}`:``},addCommands(){return{setHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.setNode(this.name,e):!1,toggleHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.toggleNode(this.name,`paragraph`,e):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>xY({find:RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}}),nX=IY.create({name:`horizontalRule`,addOptions(){return{HTMLAttributes:{},nextNodeType:`paragraph`}},group:`block`,parseHTML(){return[{tag:`hr`}]},renderHTML({HTMLAttributes:e}){return[`hr`,Wq(this.options.HTMLAttributes,e)]},markdownTokenName:`hr`,parseMarkdown:(e,t)=>t.createNode(`horizontalRule`),renderMarkdown:()=>`---`,addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{if(!TY(t,t.schema.nodes[this.name]))return!1;let{selection:n}=t,{$to:r}=n,i=e();return vJ(n)?i.insertContentAt(r.pos,{type:this.name}):i.insertContent({type:this.name}),i.command(({state:e,tr:t,dispatch:n})=>{if(n){let{$to:n}=t.selection,r=n.end();if(n.nodeAfter)n.nodeAfter.isTextblock?t.setSelection(wB.create(t.doc,n.pos+1)):n.nodeAfter.isBlock?t.setSelection(EB.create(t.doc,n.pos)):t.setSelection(wB.create(t.doc,n.pos));else{let i=(e.schema.nodes[this.options.nextNodeType]||n.parent.type.contentMatch.defaultType)?.create();i&&(t.insert(r,i),t.setSelection(wB.create(t.doc,r+1)))}t.scrollIntoView()}return!0}).run()}}},addInputRules(){return[bY({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),rX=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,iX=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,aX=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,oX=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,sX=QJ.create({name:`italic`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`em`},{tag:`i`,getAttrs:e=>e.style.fontStyle!==`normal`&&null},{style:`font-style=normal`,clearMark:e=>e.type.name===this.name},{style:`font-style=italic`}]},renderHTML({HTMLAttributes:e}){return[`em`,Wq(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},markdownTokenName:`em`,parseMarkdown:(e,t)=>t.applyMark(`italic`,t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:`<em>`,close:`</em>`}},renderMarkdown:(e,t)=>`*${t.renderChildren(e)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[yY({find:rX,type:this.type}),yY({find:aX,type:this.type})]},addPasteRules(){return[LY({find:iX,type:this.type}),LY({find:oX,type:this.type})]}}),cX=`aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2`,lX=`ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2`,uX=`numeric`,dX=`ascii`,fX=`alpha`,pX=`asciinumeric`,mX=`alphanumeric`,hX=`domain`,gX=`emoji`,_X=`scheme`,vX=`slashscheme`,yX=`whitespace`;function bX(e,t){return e in t||(t[e]=[]),t[e]}function xX(e,t,n){t[uX]&&(t[pX]=!0,t[mX]=!0),t[dX]&&(t[pX]=!0,t[fX]=!0),t[pX]&&(t[mX]=!0),t[fX]&&(t[mX]=!0),t[mX]&&(t[hX]=!0),t[gX]&&(t[hX]=!0);for(let r in t){let t=bX(r,n);t.indexOf(e)<0&&t.push(e)}}function SX(e,t){let n={};for(let r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}function CX(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}CX.groups={},CX.prototype={accepts(){return!!this.t},go(e){let t=this,n=t.j[e];if(n)return n;for(let n=0;n<t.jr.length;n++){let r=t.jr[n][0],i=t.jr[n][1];if(i&&r.test(e))return i}return t.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let i=0;i<e.length;i++)this.tt(e[i],t,n,r)},tr(e,t,n,r){r||=CX.groups;let i;return t&&t.j?i=t:(i=new CX(t),n&&r&&xX(t,n,r)),this.jr.push([e,i]),i},ts(e,t,n,r){let i=this,a=e.length;if(!a)return i;for(let t=0;t<a-1;t++)i=i.tt(e[t]);return i.tt(e[a-1],t,n,r)},tt(e,t,n,r){r||=CX.groups;let i=this;if(t&&t.j)return i.j[e]=t,t;let a=t,o,s=i.go(e);return s?(o=new CX,Object.assign(o.j,s.j),o.jr.push.apply(o.jr,s.jr),o.jd=s.jd,o.t=s.t):o=new CX,a&&(r&&(o.t&&typeof o.t==`string`?xX(a,Object.assign(SX(o.t,r),n),r):n&&xX(a,n,r)),o.t=a),i.j[e]=o,o}};var wX=(e,t,n,r,i)=>e.ta(t,n,r,i),TX=(e,t,n,r,i)=>e.tr(t,n,r,i),EX=(e,t,n,r,i)=>e.ts(t,n,r,i),Q=(e,t,n,r,i)=>e.tt(t,n,r,i),DX=`WORD`,OX=`UWORD`,kX=`ASCIINUMERICAL`,AX=`ALPHANUMERICAL`,jX=`LOCALHOST`,MX=`TLD`,NX=`UTLD`,PX=`SCHEME`,FX=`SLASH_SCHEME`,IX=`NUM`,LX=`WS`,RX=`NL`,zX=`OPENBRACE`,BX=`CLOSEBRACE`,VX=`OPENBRACKET`,HX=`CLOSEBRACKET`,UX=`OPENPAREN`,WX=`CLOSEPAREN`,GX=`OPENANGLEBRACKET`,KX=`CLOSEANGLEBRACKET`,qX=`FULLWIDTHLEFTPAREN`,JX=`FULLWIDTHRIGHTPAREN`,YX=`LEFTCORNERBRACKET`,XX=`RIGHTCORNERBRACKET`,ZX=`LEFTWHITECORNERBRACKET`,QX=`RIGHTWHITECORNERBRACKET`,$X=`FULLWIDTHLESSTHAN`,eZ=`FULLWIDTHGREATERTHAN`,tZ=`AMPERSAND`,nZ=`APOSTROPHE`,rZ=`ASTERISK`,iZ=`AT`,aZ=`BACKSLASH`,oZ=`BACKTICK`,sZ=`CARET`,cZ=`COLON`,lZ=`COMMA`,uZ=`DOLLAR`,dZ=`DOT`,fZ=`EQUALS`,pZ=`EXCLAMATION`,mZ=`HYPHEN`,hZ=`PERCENT`,gZ=`PIPE`,_Z=`PLUS`,vZ=`POUND`,yZ=`QUERY`,bZ=`QUOTE`,xZ=`FULLWIDTHMIDDLEDOT`,SZ=`SEMI`,CZ=`SLASH`,wZ=`TILDE`,TZ=`UNDERSCORE`,EZ=`EMOJI`,DZ=`SYM`,OZ=Object.freeze({__proto__:null,ALPHANUMERICAL:AX,AMPERSAND:tZ,APOSTROPHE:nZ,ASCIINUMERICAL:kX,ASTERISK:rZ,AT:iZ,BACKSLASH:aZ,BACKTICK:oZ,CARET:sZ,CLOSEANGLEBRACKET:KX,CLOSEBRACE:BX,CLOSEBRACKET:HX,CLOSEPAREN:WX,COLON:cZ,COMMA:lZ,DOLLAR:uZ,DOT:dZ,EMOJI:EZ,EQUALS:fZ,EXCLAMATION:pZ,FULLWIDTHGREATERTHAN:eZ,FULLWIDTHLEFTPAREN:qX,FULLWIDTHLESSTHAN:$X,FULLWIDTHMIDDLEDOT:xZ,FULLWIDTHRIGHTPAREN:JX,HYPHEN:mZ,LEFTCORNERBRACKET:YX,LEFTWHITECORNERBRACKET:ZX,LOCALHOST:jX,NL:RX,NUM:IX,OPENANGLEBRACKET:GX,OPENBRACE:zX,OPENBRACKET:VX,OPENPAREN:UX,PERCENT:hZ,PIPE:gZ,PLUS:_Z,POUND:vZ,QUERY:yZ,QUOTE:bZ,RIGHTCORNERBRACKET:XX,RIGHTWHITECORNERBRACKET:QX,SCHEME:PX,SEMI:SZ,SLASH:CZ,SLASH_SCHEME:FX,SYM:DZ,TILDE:wZ,TLD:MX,UNDERSCORE:TZ,UTLD:NX,UWORD:OX,WORD:DX,WS:LX}),kZ=/[a-z]/,AZ=/\p{L}/u,jZ=/\p{Emoji}/u,MZ=/\d/,NZ=/\s/,PZ=`\r`,FZ=`
330
- `,IZ=`️`,LZ=`‍`,RZ=``,zZ=null,BZ=null;function VZ(e=[]){let t={};CX.groups=t;let n=new CX;zZ??=GZ(cX),BZ??=GZ(lX),Q(n,`'`,nZ),Q(n,`{`,zX),Q(n,`}`,BX),Q(n,`[`,VX),Q(n,`]`,HX),Q(n,`(`,UX),Q(n,`)`,WX),Q(n,`<`,GX),Q(n,`>`,KX),Q(n,`(`,qX),Q(n,`)`,JX),Q(n,`「`,YX),Q(n,`」`,XX),Q(n,`『`,ZX),Q(n,`』`,QX),Q(n,`<`,$X),Q(n,`>`,eZ),Q(n,`&`,tZ),Q(n,`*`,rZ),Q(n,`@`,iZ),Q(n,"`",oZ),Q(n,`^`,sZ),Q(n,`:`,cZ),Q(n,`,`,lZ),Q(n,`$`,uZ),Q(n,`.`,dZ),Q(n,`=`,fZ),Q(n,`!`,pZ),Q(n,`-`,mZ),Q(n,`%`,hZ),Q(n,`|`,gZ),Q(n,`+`,_Z),Q(n,`#`,vZ),Q(n,`?`,yZ),Q(n,`"`,bZ),Q(n,`/`,CZ),Q(n,`;`,SZ),Q(n,`~`,wZ),Q(n,`_`,TZ),Q(n,`\\`,aZ),Q(n,`・`,xZ);let r=TX(n,MZ,IX,{[uX]:!0});TX(r,MZ,r);let i=TX(r,kZ,kX,{[pX]:!0}),a=TX(r,AZ,AX,{[mX]:!0}),o=TX(n,kZ,DX,{[dX]:!0});TX(o,MZ,i),TX(o,kZ,o),TX(i,MZ,i),TX(i,kZ,i);let s=TX(n,AZ,OX,{[fX]:!0});TX(s,kZ),TX(s,MZ,a),TX(s,AZ,s),TX(a,MZ,a),TX(a,kZ),TX(a,AZ,a);let c=Q(n,FZ,RX,{[yX]:!0}),l=Q(n,PZ,LX,{[yX]:!0}),u=TX(n,NZ,LX,{[yX]:!0});Q(n,RZ,u),Q(l,FZ,c),Q(l,RZ,u),TX(l,NZ,u),Q(u,PZ),Q(u,FZ),TX(u,NZ,u),Q(u,RZ,u);let d=TX(n,jZ,EZ,{[gX]:!0});Q(d,`#`),TX(d,jZ,d),Q(d,IZ,d);let f=Q(d,LZ);Q(f,`#`),TX(f,jZ,d);let p=[[kZ,o],[MZ,i]],m=[[kZ,null],[AZ,s],[MZ,a]];for(let e=0;e<zZ.length;e++)WZ(n,zZ[e],MX,DX,p);for(let e=0;e<BZ.length;e++)WZ(n,BZ[e],NX,OX,m);xX(MX,{tld:!0,ascii:!0},t),xX(NX,{utld:!0,alpha:!0},t),WZ(n,`file`,PX,DX,p),WZ(n,`mailto`,PX,DX,p),WZ(n,`http`,FX,DX,p),WZ(n,`https`,FX,DX,p),WZ(n,`ftp`,FX,DX,p),WZ(n,`ftps`,FX,DX,p),xX(PX,{scheme:!0,ascii:!0},t),xX(FX,{slashscheme:!0,ascii:!0},t),e=e.sort((e,t)=>e[0]>t[0]?1:-1);for(let t=0;t<e.length;t++){let r=e[t][0],i=e[t][1]?{[_X]:!0}:{[vX]:!0};r.indexOf(`-`)>=0?i[hX]=!0:kZ.test(r)?MZ.test(r)?i[pX]=!0:i[dX]=!0:i[uX]=!0,EX(n,r,r,i)}return EX(n,`localhost`,jX,{ascii:!0}),n.jd=new CX(DZ),{start:n,tokens:Object.assign({groups:t},OZ)}}function HZ(e,t){let n=UZ(t.replace(/[A-Z]/g,e=>e.toLowerCase())),r=n.length,i=[],a=0,o=0;for(;o<r;){let s=e,c=null,l=0,u=null,d=-1,f=-1;for(;o<r&&(c=s.go(n[o]));)s=c,s.accepts()?(d=0,f=0,u=s):d>=0&&(d+=n[o].length,f++),l+=n[o].length,a+=n[o].length,o++;a-=d,o-=f,l-=d,i.push({t:u.t,v:t.slice(a-l,a),s:a-l,e:a})}return i}function UZ(e){let t=[],n=e.length,r=0;for(;r<n;){let i=e.charCodeAt(r),a,o=i<55296||i>56319||r+1===n||(a=e.charCodeAt(r+1))<56320||a>57343?e[r]:e.slice(r,r+2);t.push(o),r+=o.length}return t}function WZ(e,t,n,r,i){let a,o=t.length;for(let n=0;n<o-1;n++){let o=t[n];e.j[o]?a=e.j[o]:(a=new CX(r),a.jr=i.slice(),e.j[o]=a),e=a}return a=new CX(n),a.jr=i.slice(),e.j[t[o-1]]=a,a}function GZ(e){let t=[],n=[],r=0;for(;r<e.length;){let i=0;for(;`0123456789`.indexOf(e[r+i])>=0;)i++;if(i>0){t.push(n.join(``));for(let t=parseInt(e.substring(r,r+i),10);t>0;t--)n.pop();r+=i}else n.push(e[r]),r++}return t}var KZ={defaultProtocol:`http`,events:null,format:JZ,formatHref:JZ,nl2br:!1,tagName:`a`,target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function qZ(e,t=null){let n=Object.assign({},KZ);e&&(n=Object.assign(n,e instanceof qZ?e.o:e));let r=n.ignoreTags,i=[];for(let e=0;e<r.length;e++)i.push(r[e].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=i}qZ.prototype={o:KZ,ignoreTags:[],defaultRender(e){return e},check(e){return this.get(`validate`,e.toString(),e)},get(e,t,n){let r=t!=null,i=this.o[e];return i&&(typeof i==`object`?(i=n.t in i?i[n.t]:KZ[e],typeof i==`function`&&r&&(i=i(t,n))):typeof i==`function`&&r&&(i=i(t,n.t,n)),i)},getObj(e,t,n){let r=this.o[e];return typeof r==`function`&&t!=null&&(r=r(t,n.t,n)),r},render(e){let t=e.render(this);return(this.get(`render`,null,e)||this.defaultRender)(t,e.t,e)}};function JZ(e){return e}function YZ(e,t){this.t=`token`,this.v=e,this.tk=t}YZ.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){let t=this.toString(),n=e.get(`truncate`,t,this),r=e.get(`format`,t,this);return n&&r.length>n?r.substring(0,n)+`…`:r},toFormattedHref(e){return e.get(`formatHref`,this.toHref(e.get(`defaultProtocol`)),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=KZ.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get(`validate`,this.toString(),this)},render(e){let t=this,n=this.toHref(e.get(`defaultProtocol`)),r=e.get(`formatHref`,n,this),i=e.get(`tagName`,n,t),a=this.toFormattedString(e),o={},s=e.get(`className`,n,t),c=e.get(`target`,n,t),l=e.get(`rel`,n,t),u=e.getObj(`attributes`,n,t),d=e.getObj(`events`,n,t);return o.href=r,s&&(o.class=s),c&&(o.target=c),l&&(o.rel=l),u&&Object.assign(o,u),{tagName:i,attributes:o,content:a,eventListeners:d}}};function XZ(e,t){class n extends YZ{constructor(t,n){super(t,n),this.t=e}}for(let e in t)n.prototype[e]=t[e];return n.t=e,n}var ZZ=XZ(`email`,{isLink:!0,toHref(){return`mailto:`+this.toString()}}),QZ=XZ(`text`),$Z=XZ(`nl`),eQ=XZ(`url`,{isLink:!0,toHref(e=KZ.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==jX&&e[1].t===cZ}}),tQ=e=>new CX(e);function nQ({groups:e}){let t=e.domain.concat([tZ,rZ,iZ,aZ,oZ,sZ,uZ,fZ,mZ,IX,hZ,gZ,_Z,vZ,CZ,DZ,wZ,TZ]),n=[nZ,cZ,lZ,dZ,pZ,hZ,yZ,bZ,SZ,GX,KX,zX,BX,HX,VX,UX,WX,qX,JX,YX,XX,ZX,QX,$X,eZ],r=[tZ,nZ,rZ,aZ,oZ,sZ,uZ,fZ,mZ,zX,BX,hZ,gZ,_Z,vZ,yZ,CZ,DZ,wZ,TZ],i=tQ(),a=Q(i,wZ);wX(a,r,a),wX(a,e.domain,a);let o=tQ(),s=tQ(),c=tQ();wX(i,e.domain,o),wX(i,e.scheme,s),wX(i,e.slashscheme,c),wX(o,r,a),wX(o,e.domain,o);let l=Q(o,iZ);Q(a,iZ,l),Q(s,iZ,l),Q(c,iZ,l);let u=Q(a,dZ);wX(u,r,a),wX(u,e.domain,a);let d=tQ();wX(l,e.domain,d),wX(d,e.domain,d);let f=Q(d,dZ);wX(f,e.domain,d);let p=tQ(ZZ);wX(f,e.tld,p),wX(f,e.utld,p),Q(l,jX,p);let m=Q(d,mZ);Q(m,mZ,m),wX(m,e.domain,d),wX(p,e.domain,d),Q(p,dZ,f),Q(p,mZ,m);let h=Q(o,mZ),g=Q(o,dZ);Q(h,mZ,h),wX(h,e.domain,o),wX(g,r,a),wX(g,e.domain,o);let _=tQ(eQ);wX(g,e.tld,_),wX(g,e.utld,_),wX(_,e.domain,o),wX(_,r,a),Q(_,dZ,g),Q(_,mZ,h),Q(_,iZ,l);let v=Q(_,cZ),y=tQ(eQ);wX(v,e.numeric,y);let b=tQ(eQ),x=tQ();wX(b,t,b),wX(b,n,x),wX(x,t,b),wX(x,n,x),Q(_,CZ,b),Q(y,CZ,b);let S=Q(s,cZ),C=Q(Q(Q(c,cZ),CZ),CZ);wX(s,e.domain,o),Q(s,dZ,g),Q(s,mZ,h),wX(c,e.domain,o),Q(c,dZ,g),Q(c,mZ,h),wX(S,e.domain,b),Q(S,CZ,b),Q(S,yZ,b),wX(C,e.domain,b),wX(C,t,b),Q(C,CZ,b);let w=[[zX,BX],[VX,HX],[UX,WX],[GX,KX],[qX,JX],[YX,XX],[ZX,QX],[$X,eZ]];for(let e=0;e<w.length;e++){let[r,i]=w[e],a=Q(b,r);Q(x,r,a);let o=tQ(eQ);wX(a,t,o);let s=tQ();wX(a,n,s),Q(a,i,b),wX(o,t,o),wX(o,n,s),wX(s,t,o),wX(s,n,s),Q(o,i,b),Q(s,i,b)}return Q(i,jX,_),Q(i,RX,$Z),{start:i,tokens:OZ}}function rQ(e,t,n){let r=n.length,i=0,a=[],o=[];for(;i<r;){let s=e,c=null,l=null,u=0,d=null,f=-1;for(;i<r&&!(c=s.go(n[i].t));)o.push(n[i++]);for(;i<r&&(l=c||s.go(n[i].t));)c=null,s=l,s.accepts()?(f=0,d=s):f>=0&&f++,i++,u++;if(f<0)i-=u,i<r&&(o.push(n[i]),i++);else{o.length>0&&(a.push(iQ(QZ,t,o)),o=[]),i-=f,u-=f;let e=d.t,r=n.slice(i-u,i);a.push(iQ(e,t,r))}}return o.length>0&&a.push(iQ(QZ,t,o)),a}function iQ(e,t,n){let r=n[0].s,i=n[n.length-1].e;return new e(t.slice(r,i),n)}var aQ=typeof console<`u`&&console&&console.warn||(()=>{}),oQ=`until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`,sQ={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function cQ(){return CX.groups={},sQ.scanner=null,sQ.parser=null,sQ.tokenQueue=[],sQ.pluginQueue=[],sQ.customSchemes=[],sQ.initialized=!1,sQ}function lQ(e,t=!1){if(sQ.initialized&&aQ(`linkifyjs: already initialized - will not register custom scheme "${e}" ${oQ}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw Error(`linkifyjs: incorrect scheme format.
331
- 1. Must only contain digits, lowercase ASCII letters or "-"
332
- 2. Cannot start or end with "-"
333
- 3. "-" cannot repeat`);sQ.customSchemes.push([e,t])}function uQ(){sQ.scanner=VZ(sQ.customSchemes);for(let e=0;e<sQ.tokenQueue.length;e++)sQ.tokenQueue[e][1]({scanner:sQ.scanner});sQ.parser=nQ(sQ.scanner.tokens);for(let e=0;e<sQ.pluginQueue.length;e++)sQ.pluginQueue[e][1]({scanner:sQ.scanner,parser:sQ.parser});return sQ.initialized=!0,sQ}function dQ(e){return sQ.initialized||uQ(),rQ(sQ.parser.start,e,HZ(sQ.scanner.start,e))}dQ.scan=HZ;function fQ(e,t=null,n=null){if(t&&typeof t==`object`){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}let r=new qZ(n),i=dQ(e),a=[];for(let e=0;e<i.length;e++){let n=i[e];n.isLink&&(!t||n.t===t)&&r.check(n)&&a.push(n.toFormattedObject(r))}return a}var pQ=`[\0- \xA0 ᠎ -\u2029  ]`,mQ=new RegExp(pQ),hQ=RegExp(`${pQ}$`),gQ=new RegExp(pQ,`g`);function _Q(e){return e.length===1?e[0].isLink:e.length===3&&e[1].isLink?[`()`,`[]`].includes(e[0].value+e[2].value):!1}function vQ(e){return new FB({key:new RB(`autolink`),appendTransaction:(t,n,r)=>{let i=t.some(e=>e.docChanged)&&!n.doc.eq(r.doc),a=t.some(e=>e.getMeta(`preventAutolink`));if(!i||a)return;let{tr:o}=r;if(oJ(Oq(n.doc,[...t])).forEach(({newRange:t})=>{let n=jq(r.doc,t,e=>e.isTextblock),i,a;if(n.length>1)i=n[0],a=r.doc.textBetween(i.pos,i.pos+i.node.nodeSize,void 0,` `);else if(n.length){let e=r.doc.textBetween(t.from,t.to,` `,` `);if(!hQ.test(e))return;i=n[0],a=r.doc.textBetween(i.pos,t.to,void 0,` `)}if(i&&a){let t=a.split(mQ).filter(Boolean);if(t.length<=0)return!1;let n=t[t.length-1],s=i.pos+a.lastIndexOf(n);if(!n)return!1;let c=dQ(n).map(t=>t.toObject(e.defaultProtocol));if(!_Q(c))return!1;c.filter(e=>e.isLink).map(e=>({...e,from:s+e.start+1,to:s+e.end+1})).filter(e=>r.schema.marks.code?!r.doc.rangeHasMark(e.from,e.to,r.schema.marks.code):!0).filter(t=>e.validate(t.value)).filter(t=>e.shouldAutoLink(t.value)).forEach(t=>{sJ(t.from,t.to,r.doc).some(t=>t.mark.type===e.type)||o.addMark(t.from,t.to,e.type.create({href:t.href}))})}}),o.steps.length)return o}})}function yQ(e){return new FB({key:new RB(`handleClickLink`),props:{handleClick:(t,n,r)=>{if(r.button!==0||!t.editable)return!1;let i=null;if(r.target instanceof HTMLAnchorElement)i=r.target;else{let t=r.target;if(!t)return!1;let n=e.editor.view.dom;i=t.closest(`a`),i&&!n.contains(i)&&(i=null)}if(!i)return!1;let a=!1;if(e.enableClickSelection&&(a=e.editor.commands.extendMarkRange(e.type.name)),e.openOnClick){let n=rJ(t.state,e.type.name),r=i.href??n.href,o=i.target??n.target;r&&(window.open(r,o),a=!0)}return a}}})}function bQ(e){return new FB({key:new RB(`handlePasteLink`),props:{handlePaste:(t,n,r)=>{let{shouldAutoLink:i}=e,{state:a}=t,{selection:o}=a,{empty:s}=o;if(s)return!1;let c=``;r.content.forEach(e=>{c+=e.textContent});let l=fQ(c,{defaultProtocol:e.defaultProtocol}).find(e=>e.isLink&&e.value===c);return!c||!l||i!==void 0&&!i(l.value)?!1:e.editor.commands.setMark(e.type,{href:l.href})}}})}function xQ(e,t){let n=[`http`,`https`,`ftp`,`ftps`,`mailto`,`tel`,`callto`,`sms`,`cid`,`xmpp`];return t&&t.forEach(e=>{let t=typeof e==`string`?e:e.scheme;t&&n.push(t)}),!e||e.replace(gQ,``).match(RegExp(`^(?:(?:${n.join(`|`)}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,`i`))}var SQ=QJ.create({name:`link`,priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(e=>{if(typeof e==`string`){lQ(e);return}lQ(e.scheme,e.optionalSlashes)})},onDestroy(){cQ()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:`http`,HTMLAttributes:{target:`_blank`,rel:`noopener noreferrer nofollow`,class:null},isAllowedUri:(e,t)=>!!xQ(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>{let t=/^[a-z][a-z0-9+.-]*:\/\//i.test(e),n=/^[a-z][a-z0-9+.-]*:/i.test(e);if(t||n&&!e.includes(`@`))return!0;let r=(e.includes(`@`)?e.split(`@`).pop():e).split(/[/?#:]/)[0];return!(/^\d{1,3}(\.\d{1,3}){3}$/.test(r)||!/\./.test(r))}}},addAttributes(){return{href:{default:null,parseHTML(e){return e.getAttribute(`href`)}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class},title:{default:null}}},parseHTML(){return[{tag:`a[href]`,getAttrs:e=>{let t=e.getAttribute(`href`);return!t||!this.options.isAllowedUri(t,{defaultValidate:e=>!!xQ(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:e=>!!xQ(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?[`a`,Wq(this.options.HTMLAttributes,e),0]:[`a`,Wq(this.options.HTMLAttributes,{...e,href:``}),0]},markdownTokenName:`link`,parseMarkdown:(e,t)=>t.applyMark(`link`,t.parseInline(e.tokens||[]),{href:e.href,title:e.title||null}),renderMarkdown:(e,t)=>{let n=e.attrs?.href??``,r=e.attrs?.title??``,i=t.renderChildren(e);return r?`[${i}](${n} "${r}")`:`[${i}](${n})`},addCommands(){return{setLink:e=>({chain:t})=>{let{href:n}=e;return this.options.isAllowedUri(n,{defaultValidate:e=>!!xQ(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?t().setMark(this.name,e).setMeta(`preventAutolink`,!0).run():!1},toggleLink:e=>({chain:t})=>{let{href:n}=e||{};return n&&!this.options.isAllowedUri(n,{defaultValidate:e=>!!xQ(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta(`preventAutolink`,!0).run()},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta(`preventAutolink`,!0).run()}},addPasteRules(){return[LY({find:e=>{let t=[];if(e){let{protocols:n,defaultProtocol:r}=this.options,i=fQ(e).filter(e=>e.isLink&&this.options.isAllowedUri(e.value,{defaultValidate:e=>!!xQ(e,n),protocols:n,defaultProtocol:r}));i.length&&i.forEach(e=>{this.options.shouldAutoLink(e.value)&&t.push({text:e.value,data:{href:e.href},index:e.start})})}return t},type:this.type,getAttributes:e=>({href:e.data?.href})})]},addProseMirrorPlugins(){let e=[],{protocols:t,defaultProtocol:n}=this.options;return this.options.autolink&&e.push(vQ({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!xQ(e,t),protocols:t,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),e.push(yQ({type:this.type,editor:this.editor,openOnClick:this.options.openOnClick===`whenNotEditable`?!0:this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&e.push(bQ({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink})),e}}),CQ=Object.defineProperty,wQ=(e,t)=>{for(var n in t)CQ(e,n,{get:t[n],enumerable:!0})},TQ=`listItem`,EQ=`textStyle`,DQ=/^\s*([-+*])\s$/,OQ=IY.create({name:`bulletList`,addOptions(){return{itemTypeName:`listItem`,HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:`block list`,content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul`}]},renderHTML({HTMLAttributes:e}){return[`ul`,Wq(this.options.HTMLAttributes,e),0]},markdownTokenName:`list`,parseMarkdown:(e,t)=>e.type!==`list`||e.ordered?[]:{type:`bulletList`,content:e.items?t.parseChildren(e.items):[]},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
334
- `):``,markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(TQ,this.editor.getAttributes(EQ)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=SY({find:DQ,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=SY({find:DQ,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(EQ),editor:this.editor})),[e]}});function kQ(e){let t=e.tokens?.[0];return!!(e.text&&e.tokens?.length===1&&t?.type===`list`&&t.ordered&&t.raw===e.text)}function AQ(e,t){return t.tokenizeInline?t.parseInline(t.tokenizeInline(e)):t.parseInline([{type:`text`,raw:e,text:e}])}var jQ=IY.create({name:`listItem`,addOptions(){return{HTMLAttributes:{},bulletListTypeName:`bulletList`,orderedListTypeName:`orderedList`}},content:`paragraph block*`,defining:!0,parseHTML(){return[{tag:`li`}]},renderHTML({HTMLAttributes:e}){return[`li`,Wq(this.options.HTMLAttributes,e),0]},markdownTokenName:`list_item`,parseMarkdown:(e,t)=>{if(e.type!==`list_item`)return[];let n=t.parseBlockChildren??t.parseChildren,r=[];if(e.tokens&&e.tokens.length>0){if(kQ(e))return{type:`listItem`,content:[{type:`paragraph`,content:AQ(e.text||``,t)}]};if(e.tokens.some(e=>e.type===`paragraph`))r=n(e.tokens);else{let i=e.tokens[0];if(i&&i.type===`text`&&i.tokens&&i.tokens.length>0){if(r=[{type:`paragraph`,content:t.parseInline(i.tokens)}],e.tokens.length>1){let t=n(e.tokens.slice(1));r.push(...t)}}else r=n(e.tokens)}}return r.length===0&&(r=[{type:`paragraph`,content:[]}]),{type:`listItem`,content:r}},renderMarkdown:(e,t,n)=>PY(e,t,e=>e.parentType===`bulletList`?`- `:e.parentType===`orderedList`?`${(e.meta?.parentAttrs?.start||1)+e.index}. `:`- `,n),addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}});wQ({},{findListItemPos:()=>MQ,getNextListDepth:()=>NQ,handleBackspace:()=>LQ,handleDelete:()=>BQ,hasListBefore:()=>PQ,hasListItemAfter:()=>VQ,hasListItemBefore:()=>FQ,listItemHasSubList:()=>IQ,nextListIsDeeper:()=>RQ,nextListIsHigher:()=>zQ});var MQ=(e,t)=>{let{$from:n}=t.selection,r=wK(e,t.schema),i=null,a=n.depth,o=n.pos,s=null;for(;a>0&&s===null;)i=n.node(a),i.type===r?s=a:(--a,--o);return s===null?null:{$pos:t.doc.resolve(o),depth:s}},NQ=(e,t)=>{let n=MQ(e,t);if(!n)return!1;let[,r]=cJ(t,e,n.$pos.pos+4);return r},PQ=(e,t,n)=>{let{$anchor:r}=e.selection,i=Math.max(0,r.pos-2),a=e.doc.resolve(i).node();return!(!a||!n.includes(a.type.name))},FQ=(e,t)=>{let{$anchor:n}=t.selection,r=t.doc.resolve(n.pos-2);return!(r.index()===0||r.nodeBefore?.type.name!==e)},IQ=(e,t,n)=>{if(!n)return!1;let r=wK(e,t.schema),i=!1;return n.descendants(e=>{e.type===r&&(i=!0)}),i},LQ=(e,t,n)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!uq(e.state,t)&&PQ(e.state,t,n)){let{$anchor:n}=e.state.selection,r=e.state.doc.resolve(n.before()-1),i=[];r.node().descendants((e,n)=>{e.type.name===t&&i.push({node:e,pos:n})});let a=i.at(-1);if(!a)return!1;let o=e.state.doc.resolve(r.start()+a.pos+1);return e.chain().cut({from:n.start()-1,to:n.end()+1},o.end()).joinForward().run()}if(!uq(e.state,t)||!mJ(e.state))return!1;let r=MQ(t,e.state);if(!r)return!1;let i=e.state.doc.resolve(r.$pos.pos-2).node(r.depth),a=IQ(t,e.state,i);return FQ(t,e.state)&&!a?e.commands.joinItemBackward():e.chain().liftListItem(t).run()},RQ=(e,t)=>{let n=NQ(e,t),r=MQ(e,t);return!r||!n?!1:n>r.depth},zQ=(e,t)=>{let n=NQ(e,t),r=MQ(e,t);return!r||!n?!1:n<r.depth},BQ=(e,t)=>{if(!uq(e.state,t)||!pJ(e.state,t))return!1;let{selection:n}=e.state,{$from:r,$to:i}=n;return!n.empty&&r.sameParent(i)?!1:RQ(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():zQ(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward()},VQ=(e,t)=>{let{$anchor:n}=t.selection,r=t.doc.resolve(n.pos-n.parentOffset-2);return!(r.index()===r.parent.childCount-1||r.nodeAfter?.type.name!==e)},HQ=sY.create({name:`listKeymap`,addOptions(){return{listTypes:[{itemName:`listItem`,wrapperNames:[`bulletList`,`orderedList`]},{itemName:`taskItem`,wrapperNames:[`taskList`]}]}},addKeyboardShortcuts(){return{Delete:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{e.state.schema.nodes[n]!==void 0&&BQ(e,n)&&(t=!0)}),t},"Mod-Delete":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{e.state.schema.nodes[n]!==void 0&&BQ(e,n)&&(t=!0)}),t},Backspace:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{e.state.schema.nodes[n]!==void 0&&LQ(e,n,r)&&(t=!0)}),t},"Mod-Backspace":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{e.state.schema.nodes[n]!==void 0&&LQ(e,n,r)&&(t=!0)}),t}}}}),UQ=/^(\s*)(\d+)\.\s+(.*)$/,WQ=/^\s/;function GQ(e){let t=e.trimStart();return/^[-+*]\s+/.test(t)||/^\d+\.\s+/.test(t)||/^>\s?/.test(t)||/^```/.test(t)||/^~~~/.test(t)}function KQ(e){let t=[],n=[],r=!1;return e.forEach(e=>{if(r){n.push(e);return}if(e.trim()===``){r=!0,n.push(e);return}if(t.length>0&&GQ(e)){r=!0,n.push(e);return}t.push(e)}),{paragraphLines:t,blockLines:n}}function qQ(e){let t=[],n=0,r=0;for(;n<e.length;){let i=e[n],a=i.match(UQ);if(!a)break;let[,o,s,c]=a,l=o.length,u=[c],d=n+1,f=[i],p=!1;for(;d<e.length;){let t=e[d];if(t.match(UQ))break;if(t.trim()===``)f.push(t),u.push(``),p=!0,d+=1;else if(t.match(WQ))f.push(t),u.push(t.slice(l+2)),d+=1;else{if(p)break;f.push(t),u.push(t),d+=1}}t.push({indent:l,number:parseInt(s,10),content:u.join(`
335
- `).trim(),contentLines:u,raw:f.join(`
336
- `)}),r=d,n=d}return[t,r]}function JQ(e,t,n){let r=[],i=0;for(;i<e.length;){let a=e[i];if(a.indent===t){let{paragraphLines:o,blockLines:s}=KQ(a.contentLines),c=o.join(`
337
- `).trim(),l=[];c&&l.push({type:`paragraph`,raw:c,tokens:n.inlineTokens(c)});let u=s.join(`
338
- `).trim();if(u){let e=n.blockTokens(u);l.push(...e)}let d=i+1,f=[];for(;d<e.length&&e[d].indent>t;)f.push(e[d]),d+=1;if(f.length>0){let e=JQ(f,Math.min(...f.map(e=>e.indent)),n);l.push({type:`list`,ordered:!0,start:f[0].number,items:e,raw:f.map(e=>e.raw).join(`
339
- `)})}r.push({type:`list_item`,raw:a.raw,tokens:l}),i=d}else i+=1}return r}function YQ(e,t){return e.map(e=>{if(e.type!==`list_item`)return t.parseChildren([e])[0];let n=[];return e.tokens&&e.tokens.length>0&&e.tokens.forEach(e=>{if(e.type===`paragraph`||e.type===`list`||e.type===`blockquote`||e.type===`code`)n.push(...t.parseChildren([e]));else if(e.type===`text`&&e.tokens){let r=t.parseChildren([e]);n.push({type:`paragraph`,content:r})}else{let r=t.parseChildren([e]);r.length>0&&n.push(...r)}}),{type:`listItem`,content:n}})}var XQ=`listItem`,ZQ=`textStyle`,QQ=/^(\d+)\.\s$/,$Q=IY.create({name:`orderedList`,addOptions(){return{itemTypeName:`listItem`,HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:`block list`,content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:e=>e.hasAttribute(`start`)?parseInt(e.getAttribute(`start`)||``,10):1},type:{default:null,parseHTML:e=>e.getAttribute(`type`)}}},parseHTML(){return[{tag:`ol`}]},renderHTML({HTMLAttributes:e}){let{start:t,...n}=e;return t===1?[`ol`,Wq(this.options.HTMLAttributes,n),0]:[`ol`,Wq(this.options.HTMLAttributes,e),0]},markdownTokenName:`list`,parseMarkdown:(e,t)=>{if(e.type!==`list`||!e.ordered)return[];let n=e.start||1,r=e.items?YQ(e.items,t):[];return n===1?{type:`orderedList`,content:r}:{type:`orderedList`,attrs:{start:n},content:r}},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
340
- `):``,markdownTokenizer:{name:`orderedList`,level:`block`,start:e=>{let t=e.match(/^(\s*)(\d+)\.\s+/)?.index;return t===void 0?-1:t},tokenize:(e,t,n)=>{let r=e.split(`
341
- `),[i,a]=qQ(r);if(i.length===0)return;let o=JQ(i,0,n);if(o.length!==0)return{type:`list`,ordered:!0,start:i[0]?.number||1,items:o,raw:r.slice(0,a).join(`
342
- `)}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(XQ,this.editor.getAttributes(ZQ)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=SY({find:QQ,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=SY({find:QQ,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(ZQ)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[e]}}),e$=/^\s*(\[([( |x])?\])\s$/,t$=IY.create({name:`taskItem`,addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:`taskList`,a11y:void 0}},content(){return this.options.nested?`paragraph block*`:`paragraph+`},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{let t=e.getAttribute(`data-checked`);return t===``||t===`true`},renderHTML:e=>({"data-checked":e.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:e,HTMLAttributes:t}){return[`li`,Wq(this.options.HTMLAttributes,t,{"data-type":this.name}),[`label`,[`input`,{type:`checkbox`,checked:e.attrs.checked?`checked`:null}],[`span`]],[`div`,0]]},parseMarkdown:(e,t)=>{let n=[];if(e.tokens&&e.tokens.length>0?n.push(t.createNode(`paragraph`,{},t.parseInline(e.tokens))):e.text?n.push(t.createNode(`paragraph`,{},[t.createNode(`text`,{text:e.text})])):n.push(t.createNode(`paragraph`,{},[])),e.nestedTokens&&e.nestedTokens.length>0){let r=t.parseChildren(e.nestedTokens);n.push(...r)}return t.createNode(`taskItem`,{checked:e.checked||!1},n)},renderMarkdown:(e,t)=>PY(e,t,`- [${e.attrs?.checked?`x`:` `}] `),addKeyboardShortcuts(){let e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:n,editor:r})=>{let i=document.createElement(`li`),a=document.createElement(`label`),o=document.createElement(`span`),s=document.createElement(`input`),c=document.createElement(`div`),l=e=>{var t;s.ariaLabel=((t=this.options.a11y)?.checkboxLabel)?.call(t,e,s.checked)||`Task item checkbox for ${e.textContent||`empty task item`}`};l(e),a.contentEditable=`false`,s.type=`checkbox`,s.addEventListener(`mousedown`,e=>e.preventDefault()),s.addEventListener(`change`,t=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){s.checked=!s.checked;return}let{checked:i}=t.target;r.isEditable&&typeof n==`function`&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:e})=>{let t=n();if(typeof t!=`number`)return!1;let r=e.doc.nodeAt(t);return e.setNodeMarkup(t,void 0,{...r?.attrs,checked:i}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(e,i)||(s.checked=!s.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([e,t])=>{i.setAttribute(e,t)}),i.dataset.checked=e.attrs.checked,s.checked=e.attrs.checked,a.append(s,o),i.append(a,c),Object.entries(t).forEach(([e,t])=>{i.setAttribute(e,t)});let u=new Set(Object.keys(t));return{dom:i,contentDOM:c,update:e=>{if(e.type!==this.type)return!1;i.dataset.checked=e.attrs.checked,s.checked=e.attrs.checked,l(e);let t=r.extensionManager.attributes,n=Gq(e,t),a=new Set(Object.keys(n)),o=this.options.HTMLAttributes;return u.forEach(e=>{a.has(e)||(e in o?i.setAttribute(e,o[e]):i.removeAttribute(e))}),Object.entries(n).forEach(([e,t])=>{t==null?e in o?i.setAttribute(e,o[e]):i.removeAttribute(e):i.setAttribute(e,t)}),u=a,!0}}}},addInputRules(){return[SY({find:e$,type:this.type,getAttributes:e=>({checked:e[e.length-1]===`x`})})]}}),n$=IY.create({name:`taskList`,addOptions(){return{itemTypeName:`taskItem`,HTMLAttributes:{}}},group:`block list`,content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return[`ul`,Wq(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},parseMarkdown:(e,t)=>t.createNode(`taskList`,{},t.parseChildren(e.items||[])),renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
343
- `):``,markdownTokenizer:{name:`taskList`,level:`block`,start(e){let t=e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/)?.index;return t===void 0?-1:t},tokenize(e,t,n){let r=e=>{let t=NY(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:e[3].toLowerCase()===`x`}),createToken:(e,t)=>({type:`taskItem`,raw:``,mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:r},n);return t?[{type:`taskList`,raw:t.raw,items:t.items}]:n.blockTokens(e)},i=NY(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:e[3].toLowerCase()===`x`}),createToken:(e,t)=>({type:`taskItem`,raw:``,mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:r},n);if(i)return{type:`taskList`,raw:i.raw,items:i.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});sY.create({name:`listKit`,addExtensions(){let e=[];return this.options.bulletList!==!1&&e.push(OQ.configure(this.options.bulletList)),this.options.listItem!==!1&&e.push(jQ.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(HQ.configure(this.options.listKeymap)),this.options.orderedList!==!1&&e.push($Q.configure(this.options.orderedList)),this.options.taskItem!==!1&&e.push(t$.configure(this.options.taskItem)),this.options.taskList!==!1&&e.push(n$.configure(this.options.taskList)),e}});var r$=`&nbsp;`,i$=`\xA0`,a$=IY.create({name:`paragraph`,priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:`block`,content:`inline*`,parseHTML(){return[{tag:`p`}]},renderHTML({HTMLAttributes:e}){return[`p`,Wq(this.options.HTMLAttributes,e),0]},parseMarkdown:(e,t)=>{let n=e.tokens||[];if(n.length===1&&n[0].type===`image`)return t.parseChildren([n[0]]);let r=t.parseInline(n);return n.length===1&&n[0].type===`text`&&(n[0].raw===r$||n[0].text===r$||n[0].raw===i$||n[0].text===i$)&&r.length===1&&r[0].type===`text`&&(r[0].text===r$||r[0].text===i$)?t.createNode(`paragraph`,void 0,[]):t.createNode(`paragraph`,void 0,r)},renderMarkdown:(e,t,n)=>{if(!e)return``;let r=Array.isArray(e.content)?e.content:[];if(r.length===0){let e=Array.isArray(n?.previousNode?.content)?n.previousNode.content:[];return n?.previousNode?.type===`paragraph`&&e.length===0?r$:``}return t.renderChildren(r)},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),o$=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,s$=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,c$=QJ.create({name:`strike`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`s`},{tag:`del`},{tag:`strike`},{style:`text-decoration`,consuming:!1,getAttrs:e=>e.includes(`line-through`)?{}:!1}]},renderHTML({HTMLAttributes:e}){return[`s`,Wq(this.options.HTMLAttributes,e),0]},markdownTokenName:`del`,parseMarkdown:(e,t)=>t.applyMark(`strike`,t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`~~${t.renderChildren(e)}~~`,addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[yY({find:o$,type:this.type})]},addPasteRules(){return[LY({find:s$,type:this.type})]}}),l$=IY.create({name:`text`,group:`inline`,parseMarkdown:e=>({type:`text`,text:e.text||``}),renderMarkdown:e=>e.text||``}),u$=QJ.create({name:`underline`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`u`},{style:`text-decoration`,consuming:!1,getAttrs:e=>e.includes(`underline`)?{}:!1}]},renderHTML({HTMLAttributes:e}){return[`u`,Wq(this.options.HTMLAttributes,e),0]},parseMarkdown(e,t){return t.applyMark(this.name||`underline`,t.parseInline(e.tokens||[]))},renderMarkdown(e,t){return`++${t.renderChildren(e)}++`},markdownTokenizer:{name:`underline`,level:`inline`,start(e){return e.indexOf(`++`)},tokenize(e,t,n){let r=/^(\+\+)([\s\S]+?)(\+\+)/.exec(e);if(!r)return;let i=r[2].trim();return{type:`underline`,raw:r[0],text:i,tokens:n.inlineTokens(i)}}},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}});function d$(e={}){return new FB({view(t){return new f$(t,e)}})}var f$=class{constructor(e,t){this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=t.width??1,this.color=t.color===!1?void 0:t.color||`black`,this.class=t.class,this.handlers=[`dragover`,`dragend`,`drop`,`dragleave`].map(t=>{let n=e=>{this[t](e)};return e.dom.addEventListener(t,n),{name:t,handler:n}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){this.cursorPos!=null&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),t=!e.parent.inlineContent,n,r=this.editorView.dom,i=r.getBoundingClientRect(),a=i.width/r.offsetWidth,o=i.height/r.offsetHeight;if(t){let t=e.nodeBefore,r=e.nodeAfter;if(t||r){let e=this.editorView.nodeDOM(this.cursorPos-(t?t.nodeSize:0));if(e){let i=e.getBoundingClientRect(),a=t?i.bottom:i.top;t&&r&&(a=(a+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let s=this.width/2*o;n={left:i.left,right:i.right,top:a-s,bottom:a+s}}}}if(!n){let e=this.editorView.coordsAtPos(this.cursorPos),t=this.width/2*a;n={left:e.left-t,right:e.left+t,top:e.top,bottom:e.bottom}}let s=this.editorView.dom.offsetParent;this.element||(this.element=s.appendChild(document.createElement(`div`)),this.class&&(this.element.className=this.class),this.element.style.cssText=`position: absolute; z-index: 50; pointer-events: none;`,this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle(`prosemirror-dropcursor-block`,t),this.element.classList.toggle(`prosemirror-dropcursor-inline`,!t);let c,l;if(!s||s==document.body&&getComputedStyle(s).position==`static`)c=-pageXOffset,l=-pageYOffset;else{let e=s.getBoundingClientRect(),t=e.width/s.offsetWidth,n=e.height/s.offsetHeight;c=e.left-s.scrollLeft*t,l=e.top-s.scrollTop*n}this.element.style.left=(n.left-c)/a+`px`,this.element.style.top=(n.top-l)/o+`px`,this.element.style.width=(n.right-n.left)/a+`px`,this.element.style.height=(n.bottom-n.top)/o+`px`}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),r=n&&n.type.spec.disableDropCursor,i=typeof r==`function`?r(this.editorView,t,e):r;if(t&&!i){let e=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let t=$z(this.editorView.state.doc,e,this.editorView.dragging.slice);t!=null&&(e=t)}this.setCursor(e),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}},p$=class e extends bB{constructor(e){super(e,e)}map(t,n){let r=t.resolve(n.map(this.head));return e.valid(r)?new e(r):bB.near(r)}content(){return KL.empty}eq(t){return t instanceof e&&t.head==this.head}toJSON(){return{type:`gapcursor`,pos:this.head}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for GapCursor.fromJSON`);return new e(t.resolve(n.pos))}getBookmark(){return new m$(this.anchor)}static valid(e){let t=e.parent;if(t.inlineContent||!g$(e)||!_$(e))return!1;let n=t.type.spec.allowGapCursor;if(n!=null)return n;let r=t.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(t,n,r=!1){search:for(;;){if(!r&&e.valid(t))return t;let i=t.pos,a=null;for(let r=t.depth;;r--){let o=t.node(r);if(n>0?t.indexAfter(r)<o.childCount:t.index(r)>0){a=o.child(n>0?t.indexAfter(r):t.index(r)-1);break}else if(r==0)return null;i+=n;let s=t.doc.resolve(i);if(e.valid(s))return s}for(;;){let o=n>0?a.firstChild:a.lastChild;if(!o){if(a.isAtom&&!a.isText&&!EB.isSelectable(a)){t=t.doc.resolve(i+a.nodeSize*n),r=!1;continue search}break}a=o,i+=n;let s=t.doc.resolve(i);if(e.valid(s))return s}return null}}};p$.prototype.visible=!1,p$.findFrom=p$.findGapCursorFrom,bB.jsonID(`gapcursor`,p$);var m$=class e{constructor(e){this.pos=e}map(t){return new e(t.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return p$.valid(t)?new p$(t):bB.near(t)}};function h$(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}function g$(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let e=r.child(n-1);;e=e.lastChild){if(e.childCount==0&&!e.inlineContent||h$(e.type))return!0;if(e.inlineContent)return!1}}return!0}function _$(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let e=r.child(n);;e=e.firstChild){if(e.childCount==0&&!e.inlineContent||h$(e.type))return!0;if(e.inlineContent)return!1}}return!0}function v$(){return new FB({props:{decorations:C$,createSelectionBetween(e,t,n){return t.pos==n.pos&&p$.valid(n)?new p$(n):null},handleClick:x$,handleKeyDown:y$,handleDOMEvents:{beforeinput:S$}}})}var y$=dK({ArrowLeft:b$(`horiz`,-1),ArrowRight:b$(`horiz`,1),ArrowUp:b$(`vert`,-1),ArrowDown:b$(`vert`,1)});function b$(e,t){let n=e==`vert`?t>0?`down`:`up`:t>0?`right`:`left`;return function(e,r,i){let a=e.selection,o=t>0?a.$to:a.$from,s=a.empty;if(a instanceof wB){if(!i.endOfTextblock(n)||o.depth==0)return!1;s=!1,o=e.doc.resolve(t>0?o.after():o.before())}let c=p$.findGapCursorFrom(o,t,s);return c?(r&&r(e.tr.setSelection(new p$(c))),!0):!1}}function x$(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!p$.valid(r))return!1;let i=e.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&EB.isSelectable(e.state.doc.nodeAt(i.inside))?!1:(e.dispatch(e.state.tr.setSelection(new p$(r))),!0)}function S$(e,t){if(t.inputType!=`insertCompositionText`||!(e.state.selection instanceof p$))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let i=Z.empty;for(let e=r.length-1;e>=0;e--)i=Z.from(r[e].createAndFill(null,i));let a=e.state.tr.replace(n.pos,n.pos,new KL(i,0,0));return a.setSelection(wB.near(a.doc.resolve(n.pos+1))),e.dispatch(a),!1}function C$(e){if(!(e.selection instanceof p$))return null;let t=document.createElement(`div`);return t.className=`ProseMirror-gapcursor`,uG.create(e.doc,[sG.widget(e.selection.head,t,{key:`gapcursor`})])}var w$=200,T$=function(){};T$.prototype.append=function(e){return e.length?(e=T$.from(e),!this.length&&e||e.length<w$&&this.leafAppend(e)||this.length<w$&&e.leafPrepend(this)||this.appendInner(e)):this},T$.prototype.prepend=function(e){return e.length?T$.from(e).append(this):this},T$.prototype.appendInner=function(e){return new D$(this,e)},T$.prototype.slice=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.length),e>=t?T$.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},T$.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},T$.prototype.forEach=function(e,t,n){t===void 0&&(t=0),n===void 0&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},T$.prototype.map=function(e,t,n){t===void 0&&(t=0),n===void 0&&(n=this.length);var r=[];return this.forEach(function(t,n){return r.push(e(t,n))},t,n),r},T$.from=function(e){return e instanceof T$?e:e&&e.length?new E$(e):T$.empty};var E$=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return e==0&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var i=t;i<n;i++)if(e(this.values[i],r+i)===!1)return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){for(var i=t-1;i>=n;i--)if(e(this.values[i],r+i)===!1)return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=w$)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=w$)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(T$);T$.empty=new E$([]);var D$=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,r){var i=this.left.length;if(t<i&&this.left.forEachInner(e,t,Math.min(n,i),r)===!1||n>i&&this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,n)-i,r+i)===!1)return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){var i=this.left.length;if(t>i&&this.right.forEachInvertedInner(e,t-i,Math.max(n,i)-i,r+i)===!1||n<i&&this.left.forEachInvertedInner(e,Math.min(t,i),n,r)===!1)return!1},t.prototype.sliceInner=function(e,t){if(e==0&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(T$),O$=500,k$=class e{constructor(e,t){this.items=e,this.eventCount=t}popEvent(t,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,a;n&&(i=this.remapping(r,this.items.length),a=i.maps.length);let o=t.tr,s,c,l=[],u=[];return this.items.forEach((t,n)=>{if(!t.step){i||(i=this.remapping(r,n+1),a=i.maps.length),a--,u.push(t);return}if(i){u.push(new j$(t.map));let e=t.step.map(i.slice(a)),n;e&&o.maybeStep(e).doc&&(n=o.mapping.maps[o.mapping.maps.length-1],l.push(new j$(n,void 0,void 0,l.length+u.length))),a--,n&&i.appendMap(n,a)}else o.maybeStep(t.step);if(t.selection)return s=i?t.selection.map(i.slice(a)):t.selection,c=new e(this.items.slice(0,r).append(u.reverse().concat(l)),this.eventCount-1),!1},this.items.length,0),{remaining:c,transform:o,selection:s}}addTransform(t,n,r,i){let a=[],o=this.eventCount,s=this.items,c=!i&&s.length?s.get(s.length-1):null;for(let e=0;e<t.steps.length;e++){let r=t.steps[e].invert(t.docs[e]),l=new j$(t.mapping.maps[e],r,n),u;(u=c&&c.merge(l))&&(l=u,e?a.pop():s=s.slice(0,s.length-1)),a.push(l),n&&=(o++,void 0),i||(c=l)}let l=o-r.depth;return l>N$&&(s=A$(s,l),o-=l),new e(s.append(a),o)}remapping(e,t){let n=new _z;return this.items.forEach((t,r)=>{let i=t.mirrorOffset!=null&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,i)},e,t),n}addMaps(t){return this.eventCount==0?this:new e(this.items.append(t.map(e=>new j$(e))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;let r=[],i=Math.max(0,this.items.length-n),a=t.mapping,o=t.steps.length,s=this.eventCount;this.items.forEach(e=>{e.selection&&s--},i);let c=n;this.items.forEach(e=>{let n=a.getMirror(--c);if(n==null)return;o=Math.min(o,n);let i=a.maps[n];if(e.step){let o=t.steps[n].invert(t.docs[n]),l=e.selection&&e.selection.map(a.slice(c+1,n));l&&s++,r.push(new j$(i,o,l))}else r.push(new j$(i))},i);let l=[];for(let e=n;e<o;e++)l.push(new j$(a.maps[e]));let u=new e(this.items.slice(0,i).append(l).append(r),s);return u.emptyItemCount()>O$&&(u=u.compress(this.items.length-r.length)),u}emptyItemCount(){let e=0;return this.items.forEach(t=>{t.step||e++}),e}compress(t=this.items.length){let n=this.remapping(0,t),r=n.maps.length,i=[],a=0;return this.items.forEach((e,o)=>{if(o>=t)i.push(e),e.selection&&a++;else if(e.step){let t=e.step.map(n.slice(r)),o=t&&t.getMap();if(r--,o&&n.appendMap(o,r),t){let s=e.selection&&e.selection.map(n.slice(r));s&&a++;let c=new j$(o.invert(),t,s),l,u=i.length-1;(l=i.length&&i[u].merge(c))?i[u]=l:i.push(c)}}else e.map&&r--},this.items.length,0),new e(T$.from(i.reverse()),a)}};k$.empty=new k$(T$.empty,0);function A$(e,t){let n;return e.forEach((e,r)=>{if(e.selection&&t--==0)return n=r,!1}),e.slice(n)}var j$=class e{constructor(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new e(n.getMap().invert(),n,this.selection)}}},M$=class{constructor(e,t,n,r,i){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}},N$=20;function P$(e,t,n,r){let i=n.getMeta(H$),a;if(i)return i.historyState;n.getMeta(U$)&&(e=new M$(e.done,e.undone,null,0,-1));let o=n.getMeta(`appendedTransaction`);if(n.steps.length==0)return e;if(o&&o.getMeta(H$))return o.getMeta(H$).redo?new M$(e.done.addTransform(n,void 0,r,V$(t)),e.undone,I$(n.mapping.maps),e.prevTime,e.prevComposition):new M$(e.done,e.undone.addTransform(n,void 0,r,V$(t)),null,e.prevTime,e.prevComposition);if(n.getMeta(`addToHistory`)!==!1&&!(o&&o.getMeta(`addToHistory`)===!1)){let i=n.getMeta(`composition`),a=e.prevTime==0||!o&&e.prevComposition!=i&&(e.prevTime<(n.time||0)-r.newGroupDelay||!F$(n,e.prevRanges)),s=o?L$(e.prevRanges,n.mapping):I$(n.mapping.maps);return new M$(e.done.addTransform(n,a?t.selection.getBookmark():void 0,r,V$(t)),k$.empty,s,n.time,i??e.prevComposition)}else if(a=n.getMeta(`rebased`))return new M$(e.done.rebased(n,a),e.undone.rebased(n,a),L$(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);else return new M$(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),L$(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function F$(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((e,r)=>{for(let i=0;i<t.length;i+=2)e<=t[i+1]&&r>=t[i]&&(n=!0)}),n}function I$(e){let t=[];for(let n=e.length-1;n>=0&&t.length==0;n--)e[n].forEach((e,n,r,i)=>t.push(r,i));return t}function L$(e,t){if(!e)return null;let n=[];for(let r=0;r<e.length;r+=2){let i=t.map(e[r],1),a=t.map(e[r+1],-1);i<=a&&n.push(i,a)}return n}function R$(e,t,n){let r=V$(t),i=H$.get(t).spec.config,a=(n?e.undone:e.done).popEvent(t,r);if(!a)return null;let o=a.selection.resolve(a.transform.doc),s=(n?e.done:e.undone).addTransform(a.transform,t.selection.getBookmark(),i,r),c=new M$(n?s:a.remaining,n?a.remaining:s,null,0,-1);return a.transform.setSelection(o).setMeta(H$,{redo:n,historyState:c})}var z$=!1,B$=null;function V$(e){let t=e.plugins;if(B$!=t){z$=!1,B$=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){z$=!0;break}}return z$}var H$=new RB(`history`),U$=new RB(`closeHistory`);function W$(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new FB({key:H$,state:{init(){return new M$(k$.empty,k$.empty,null,0,-1)},apply(t,n,r){return P$(n,r,t,e)}},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,r=n==`historyUndo`?K$:n==`historyRedo`?q$:null;return!r||!e.editable?!1:(t.preventDefault(),r(e.state,e.dispatch))}}}})}function G$(e,t){return(n,r)=>{let i=H$.getState(n);if(!i||(e?i.undone:i.done).eventCount==0)return!1;if(r){let a=R$(i,n,e);a&&r(t?a.scrollIntoView():a)}return!0}}var K$=G$(!1,!0),q$=G$(!0,!0);sY.create({name:`characterCount`,addOptions(){return{limit:null,autoTrim:!0,mode:`textSize`,textCounter:e=>e.length,wordCounter:e=>e.split(` `).filter(e=>e!==``).length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=e=>{let t=e?.node||this.editor.state.doc;if((e?.mode||this.options.mode)===`textSize`){let e=t.textBetween(0,t.content.size,void 0,` `);return this.options.textCounter(e)}return t.nodeSize},this.storage.words=e=>{let t=e?.node||this.editor.state.doc,n=t.textBetween(0,t.content.size,` `,` `);return this.options.wordCounter(n)}},addProseMirrorPlugins(){let e=!1;return[new FB({key:new RB(`characterCount`),appendTransaction:(t,n,r)=>{if(e)return;let i=this.options.limit,a=this.options.autoTrim;if(i==null||i===0||a===!1){e=!0;return}let o=this.storage.characters({node:r.doc});if(o>i){let t=o-i;console.warn(`[CharacterCount] Initial content exceeded limit of ${i} characters. Content was automatically trimmed.`);let n=r.tr.deleteRange(0,t);return e=!0,n}e=!0},filterTransaction:(e,t)=>{let n=this.options.limit;if(!e.docChanged||n===0||n==null)return!0;let r=this.storage.characters({node:t.doc}),i=this.storage.characters({node:e.doc});if(i<=n||r>n&&i>n&&i<=r)return!0;if(r>n&&i>n&&i>r||!e.getMeta(`paste`))return!1;let a=e.selection.$head.pos,o=a-(i-n),s=a;return e.deleteRange(o,s),!(this.storage.characters({node:e.doc})>n)}})]}});var J$=sY.create({name:`dropCursor`,addOptions(){return{color:`currentColor`,width:1,class:void 0}},addProseMirrorPlugins(){return[d$(this.options)]}});sY.create({name:`focus`,addOptions(){return{className:`has-focus`,mode:`all`}},addProseMirrorPlugins(){return[new FB({key:new RB(`focus`),props:{decorations:({doc:e,selection:t})=>{let{isEditable:n,isFocused:r}=this.editor,{anchor:i}=t,a=[];if(!n||!r)return uG.create(e,[]);let o=0;this.options.mode===`deepest`&&e.descendants((e,t)=>{if(!e.isText){if(!(i>=t&&i<=t+e.nodeSize-1))return!1;o+=1}});let s=0;return e.descendants((e,t)=>{if(e.isText||!(i>=t&&i<=t+e.nodeSize-1))return!1;if(s+=1,this.options.mode===`deepest`&&o-s>0||this.options.mode===`shallowest`&&s>1)return this.options.mode===`deepest`;a.push(sG.node(t,t+e.nodeSize,{class:this.options.className}))}),uG.create(e,a)}}})]}});var Y$=sY.create({name:`gapCursor`,addProseMirrorPlugins(){return[v$()]},extendNodeSchema(e){return{allowGapCursor:Rq(Pq(e,`allowGapCursor`,{name:e.name,options:e.options,storage:e.storage}))??null}}}),X$=`placeholder`;function Z$(e){return e.replace(/\s+/g,`-`).replace(/[^a-zA-Z0-9-]/g,``).replace(/^[0-9-]+/,``).replace(/^-+/,``).toLowerCase()}sY.create({name:`placeholder`,addOptions(){return{emptyEditorClass:`is-editor-empty`,emptyNodeClass:`is-empty`,dataAttribute:X$,placeholder:`Write something …`,showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){let e=this.options.dataAttribute?`data-${Z$(this.options.dataAttribute)}`:`data-${X$}`;return[new FB({key:new RB(`placeholder`),props:{decorations:({doc:t,selection:n})=>{let r=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:i}=n,a=[];if(!r)return null;let o=this.editor.isEmpty;return t.descendants((t,n)=>{let r=i>=n&&i<=n+t.nodeSize,s=!t.isLeaf&&_J(t);if(!t.type.isTextblock)return this.options.includeChildren;if((r||!this.options.showOnlyCurrent)&&s){let i=[this.options.emptyNodeClass];o&&i.push(this.options.emptyEditorClass);let s=sG.node(n,n+t.nodeSize,{class:i.join(` `),[e]:typeof this.options.placeholder==`function`?this.options.placeholder({editor:this.editor,node:t,pos:n,hasAnchor:r}):this.options.placeholder});a.push(s)}return this.options.includeChildren}),uG.create(t,a)}}})]}}),sY.create({name:`selection`,addOptions(){return{className:`selection`}},addProseMirrorPlugins(){let{editor:e,options:t}=this;return[new FB({key:new RB(`selection`),props:{decorations(n){return n.selection.empty||e.isFocused||!e.isEditable||vJ(n.selection)||e.view.dragging?null:uG.create(n.doc,[sG.inline(n.selection.from,n.selection.to,{class:t.className})])}}})]}});function Q$({types:e,node:t}){return t&&Array.isArray(e)&&e.includes(t.type)||t?.type===e}var $$=sY.create({name:`trailingNode`,addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){let e=new RB(this.name),t=this.options.node||this.editor.schema.topNodeType.contentMatch.defaultType?.name||`paragraph`,n=Object.entries(this.editor.schema.nodes).map(([,e])=>e).filter(e=>(this.options.notAfter||[]).concat(t).includes(e.name));return[new FB({key:e,appendTransaction:(n,r,i)=>{let{doc:a,tr:o,schema:s}=i,c=e.getState(i),l=a.content.size,u=s.nodes[t];if(!n.some(e=>e.getMeta(`skipTrailingNode`))&&c)return o.insert(l,u.create())},state:{init:(e,t)=>{let r=t.tr.doc.lastChild;return!Q$({node:r,types:n})},apply:(e,t)=>{if(!e.docChanged||e.getMeta(`__uniqueIDTransaction`))return t;let r=e.doc.lastChild;return!Q$({node:r,types:n})}}})]}}),e1=sY.create({name:`undoRedo`,addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:t})=>K$(e,t),redo:()=>({state:e,dispatch:t})=>q$(e,t)}},addProseMirrorPlugins(){return[W$(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}});sY.create({name:`starterKit`,addExtensions(){let e=[];return this.options.bold!==!1&&e.push(GY.configure(this.options.bold)),this.options.blockquote!==!1&&e.push(BY.configure(this.options.blockquote)),this.options.bulletList!==!1&&e.push(OQ.configure(this.options.bulletList)),this.options.code!==!1&&e.push(JY.configure(this.options.code)),this.options.codeBlock!==!1&&e.push(QY.configure(this.options.codeBlock)),this.options.document!==!1&&e.push($Y.configure(this.options.document)),this.options.dropcursor!==!1&&e.push(J$.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&e.push(Y$.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&e.push(eX.configure(this.options.hardBreak)),this.options.heading!==!1&&e.push(tX.configure(this.options.heading)),this.options.undoRedo!==!1&&e.push(e1.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&e.push(nX.configure(this.options.horizontalRule)),this.options.italic!==!1&&e.push(sX.configure(this.options.italic)),this.options.listItem!==!1&&e.push(jQ.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(HQ.configure(this.options?.listKeymap)),this.options.link!==!1&&e.push(SQ.configure(this.options?.link)),this.options.orderedList!==!1&&e.push($Q.configure(this.options.orderedList)),this.options.paragraph!==!1&&e.push(a$.configure(this.options.paragraph)),this.options.strike!==!1&&e.push(c$.configure(this.options.strike)),this.options.text!==!1&&e.push(l$.configure(this.options.text)),this.options.underline!==!1&&e.push(u$.configure(this.options?.underline)),this.options.trailingNode!==!1&&e.push($$.configure(this.options?.trailingNode)),e}}),sY.create({name:`textAlign`,addOptions(){return{types:[],alignments:[`left`,`center`,`right`,`justify`],defaultAlignment:null}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:e=>{let t=e.style.textAlign;return this.options.alignments.includes(t)?t:this.options.defaultAlignment},renderHTML:e=>e.textAlign?{style:`text-align: ${e.textAlign}`}:{}}}}]},addCommands(){return{setTextAlign:e=>({commands:t})=>this.options.alignments.includes(e)?this.options.types.map(n=>t.updateAttributes(n,{textAlign:e})).some(e=>e):!1,unsetTextAlign:()=>({commands:e})=>this.options.types.map(t=>e.resetAttributes(t,`textAlign`)).some(e=>e),toggleTextAlign:e=>({editor:t,commands:n})=>this.options.alignments.includes(e)?t.isActive({textAlign:e})?n.unsetTextAlign():n.setTextAlign(e):!1}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign(`left`),"Mod-Shift-e":()=>this.editor.commands.setTextAlign(`center`),"Mod-Shift-r":()=>this.editor.commands.setTextAlign(`right`),"Mod-Shift-j":()=>this.editor.commands.setTextAlign(`justify`)}}});var t1=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/;IY.create({name:`image`,addOptions(){return{inline:!1,allowBase64:!1,HTMLAttributes:{},resize:!1}},inline(){return this.options.inline},group(){return this.options.inline?`inline`:`block`},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?`img[src]`:`img[src]:not([src^="data:"])`}]},renderHTML({HTMLAttributes:e}){return[`img`,Wq(this.options.HTMLAttributes,e)]},parseMarkdown:(e,t)=>t.createNode(`image`,{src:e.href,title:e.title,alt:e.text}),renderMarkdown:e=>{let t=e.attrs?.src??``,n=e.attrs?.alt??``,r=e.attrs?.title??``;return r?`![${n}](${t} "${r}")`:`![${n}](${t})`},addNodeView(){if(!this.options.resize||!this.options.resize.enabled||typeof document>`u`)return null;let{directions:e,minWidth:t,minHeight:n,alwaysPreserveAspectRatio:r}=this.options.resize;return({node:i,getPos:a,HTMLAttributes:o,editor:s})=>{let c=document.createElement(`img`);Object.entries(o).forEach(([e,t])=>{if(t!=null)switch(e){case`width`:case`height`:break;default:c.setAttribute(e,t);break}}),c.src=o.src;let l=new wY({element:c,editor:s,node:i,getPos:a,onResize:(e,t)=>{c.style.width=`${e}px`,c.style.height=`${t}px`},onCommit:(e,t)=>{let n=a();n!==void 0&&this.editor.chain().setNodeSelection(n).updateAttributes(this.name,{width:e,height:t}).run()},onUpdate:(e,t,n)=>e.type===i.type,options:{directions:e,min:{width:t,height:n},preserveAspectRatio:r===!0}}),u=l.dom;return u.style.visibility=`hidden`,u.style.pointerEvents=`none`,c.onload=()=>{u.style.visibility=``,u.style.pointerEvents=``},l}},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[bY({find:t1,type:this.type,getAttributes:e=>{let[,,t,n,r]=e;return{src:n,alt:t,title:r}}})]}});function n1(e,t=[]){return e.flatMap(e=>{let n=[...t,...e.properties?e.properties.className:[]];return e.children?n1(e.children,n):{text:e.value,classes:n}})}function r1(e){return e.value||e.children||[]}function i1(e){return!!Pae.getLanguage(e)}function a1({doc:e,name:t,lowlight:n,defaultLanguage:r}){let i=[];return Aq(e,e=>e.type.name===t).forEach(e=>{let t=e.pos+1,a=e.node.attrs.language||r,o=n.listLanguages();n1(a&&(o.includes(a)||i1(a)||n.registered?.call(n,a))?r1(n.highlight(a,e.node.textContent)):r1(n.highlightAuto(e.node.textContent))).forEach(e=>{let n=t+e.text.length;if(e.classes.length){let r=sG.inline(t,n,{class:e.classes.join(` `)});i.push(r)}t=n})}),uG.create(e,i)}function o1(e){return typeof e==`function`}function s1({name:e,lowlight:t,defaultLanguage:n}){if(![`highlight`,`highlightAuto`,`listLanguages`].every(e=>o1(t[e])))throw Error(`You should provide an instance of lowlight to use the code-block-lowlight extension`);let r=new FB({key:new RB(`lowlight`),state:{init:(r,{doc:i})=>a1({doc:i,name:e,lowlight:t,defaultLanguage:n}),apply:(r,i,a,o)=>{let s=a.selection.$head.parent.type.name,c=o.selection.$head.parent.type.name,l=Aq(a.doc,t=>t.type.name===e),u=Aq(o.doc,t=>t.type.name===e);return r.docChanged&&([s,c].includes(e)||u.length!==l.length||r.steps.some(e=>e.from!==void 0&&e.to!==void 0&&l.some(t=>t.pos>=e.from&&t.pos+t.node.nodeSize<=e.to)))?a1({doc:r.doc,name:e,lowlight:t,defaultLanguage:n}):i.map(r.mapping,r.doc)}},props:{decorations(e){return r.getState(e)}}});return r}QY.extend({addOptions(){return{...this.parent?.call(this),lowlight:{},languageClassPrefix:`language-`,exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:4,HTMLAttributes:{}}},addProseMirrorPlugins(){return[...this.parent?.call(this)||[],s1({name:this.name,lowlight:this.options.lowlight,defaultLanguage:this.options.defaultLanguage})]}});var c1=e=>`prism-editor-${e}`,l1={root:c1(`root`),toolbar:{root:c1(`toolbar`),hr:c1(`toolbar-hr`),bold:c1(`toolbar-bold`),italic:c1(`toolbar-italic`),underline:c1(`toolbar-underline`),strike:c1(`toolbar-strike`),code:c1(`toolbar-code`),codeBlock:c1(`toolbar-code-block`),link:c1(`toolbar-link`),unlink:c1(`toolbar-unlink`),image:c1(`toolbar-image`),alignLeft:c1(`toolbar-align-left`),alignCenter:c1(`toolbar-align-center`),alignRight:c1(`toolbar-align-right`),alignJustify:c1(`toolbar-align-justify`),bulletList:c1(`toolbar-bullet-list`),orderedList:c1(`toolbar-ordered-list`),taskList:c1(`toolbar-task-list`),blockquote:c1(`toolbar-blockquote`),hardBreak:c1(`toolbar-hard-break`),clear:c1(`toolbar-clear`),undo:c1(`toolbar-undo`),redo:c1(`toolbar-redo`),fullscreen:c1(`toolbar-fullscreen`)},content:{root:c1(`content`),hr:c1(`content-hr`),link:c1(`content-link`),image:c1(`content-image`),heading:c1(`content-heading`),codeInline:c1(`content-code-inline`),codeBlock:c1(`content-code-block`),langSelect:c1(`content-lang-select`),blockquote:c1(`content-blockquote`),bulletList:c1(`content-bullet-list`),orderedList:c1(`content-ordered-list`),listItem:c1(`content-list-item`),taskList:c1(`content-task-list`),taskItem:c1(`content-task-item`),placeholder:c1(`content-placeholder`)},state:{error:c1(`state-error`),disabled:c1(`state-disabled`),fullscreen:c1(`state-fullscreen`)}},u1=`0.75em`;K(`div`)(({theme:e})=>({minHeight:240,display:`flex`,flexDirection:`column`,borderRadius:Number(e.shape.borderRadius)*1.5,border:`solid 1px ${W(e.palette.grey[500],.2)}`,transition:e.transitions.create([`border-color`,`box-shadow`],{duration:e.transitions.duration.short}),"&:focus-within":{borderColor:e.palette.primary.main,boxShadow:`0 0 0 1px ${W(e.palette.primary.main,.2)}`},[`&.${l1.state.error}`]:{borderColor:e.palette.error.main,[`& .${l1.content.root}`]:{backgroundColor:W(e.palette.error.main,.04)}},[`&.${l1.state.disabled}`]:{opacity:.48,pointerEvents:`none`},[`&.${l1.state.fullscreen}`]:{top:16,left:16,position:`fixed`,maxHeight:`unset`,width:`calc(100% - 32px)`,height:`calc(100% - 32px)`,zIndex:e.zIndex.modal,borderRadius:Number(e.shape.borderRadius)*2,backgroundColor:e.palette.background.default,boxShadow:e.shadows[24]},[`& .${l1.content.placeholder}`]:{"&:first-of-type::before":{...e.typography.body2,height:0,float:`left`,pointerEvents:`none`,content:`attr(data-placeholder)`,color:e.palette.text.disabled}},[`& .${l1.content.root}`]:{display:`flex`,flex:`1 1 auto`,overflowY:`auto`,flexDirection:`column`,borderBottomLeftRadius:`inherit`,borderBottomRightRadius:`inherit`,backgroundColor:W(e.palette.grey[500],.04),"& .tiptap":{"> * + *":{marginTop:0,marginBottom:u1},"&.ProseMirror":{flex:`1 1 auto`,outline:`none`,padding:e.spacing(0,2)},h1:{...e.typography.h1,marginTop:40,marginBottom:8},h2:{...e.typography.h2,marginTop:40,marginBottom:8},h3:{...e.typography.h3,marginTop:24,marginBottom:8},h4:{...e.typography.h4,marginTop:24,marginBottom:8},h5:{...e.typography.h5,marginTop:24,marginBottom:8},h6:{...e.typography.h6,marginTop:24,marginBottom:8},p:{...e.typography.body1,marginBottom:`1.25rem`},[`& .${l1.content.link}`]:{color:e.palette.primary.main,textDecoration:`none`,"&:hover":{textDecoration:`underline`}},[`& .${l1.content.hr}`]:{flexShrink:0,borderWidth:0,margin:`2em 0`,borderStyle:`solid`,borderBottomWidth:`thin`,borderColor:e.palette.divider},[`& .${l1.content.image}`]:{width:`100%`,height:`auto`,maxWidth:`100%`,borderRadius:e.shape.borderRadius,margin:`auto auto 1.25em`,"&.ProseMirror-selectednode":{outline:`2px solid ${e.palette.primary.main}`,outlineOffset:2}},[`& .${l1.content.bulletList}`]:{paddingLeft:16,listStyleType:`disc`},[`& .${l1.content.orderedList}`]:{paddingLeft:16},[`& .${l1.content.listItem}`]:{lineHeight:2,"& > p":{margin:0}},[`& .${l1.content.taskList}`]:{listStyle:`none`,padding:0,"& li":{display:`flex`,alignItems:`flex-start`,gap:e.spacing(1),"& > label":{marginTop:4,flexShrink:0},"& > div":{flex:1}}},[`& .${l1.content.blockquote}`]:{lineHeight:1.5,fontSize:`1.5em`,margin:`24px auto`,position:`relative`,fontFamily:`Georgia, serif`,padding:e.spacing(3,3,3,8),color:e.palette.text.secondary,borderLeft:`solid 8px ${W(e.palette.grey[500],.08)}`,[e.breakpoints.up(`md`)]:{width:`100%`,maxWidth:640},"& p":{margin:0,fontSize:`inherit`,fontFamily:`inherit`},"&::before":{left:16,top:-8,display:`block`,fontSize:`3em`,content:`"\\201C"`,position:`absolute`,color:e.palette.text.disabled}},[`& .${l1.content.codeInline}`]:{padding:e.spacing(.25,.5),color:e.palette.text.secondary,fontSize:e.typography.body2.fontSize,borderRadius:Number(e.shape.borderRadius)/2,backgroundColor:W(e.palette.grey[500],.16),fontFamily:`'JetBrains Mono', 'Fira Code', monospace`},[`& .${l1.content.codeBlock}`]:{position:`relative`,"& pre":{overflowX:`auto`,color:e.palette.common.white,padding:e.spacing(5,3,3,3),borderRadius:e.shape.borderRadius,backgroundColor:e.palette.grey[900],fontFamily:`'JetBrains Mono', 'Fira Code', monospace`,"& code":{fontSize:e.typography.body2.fontSize}},[`& .${l1.content.langSelect}`]:{top:8,right:8,zIndex:1,padding:4,outline:`none`,borderRadius:4,position:`absolute`,color:e.palette.common.white,fontWeight:e.typography.fontWeightMedium,borderColor:W(e.palette.grey[500],.08),backgroundColor:W(e.palette.grey[500],.08)}}}}})),K(Vm,{shouldForwardProp:e=>![`active`,`disabled`,`sx`].includes(e)})(({theme:e})=>({...e.typography.body2,width:28,height:28,padding:e.spacing(0,.75),borderRadius:Number(e.shape.borderRadius)*.75,"&:hover":{backgroundColor:e.palette.action.hover},variants:[{props:e=>!!e.active,style:{backgroundColor:e.palette.action.selected,border:`solid 1px ${e.palette.action.hover}`}},{props:e=>!!e.disabled,style:{opacity:.48,cursor:`default`,pointerEvents:`none`}}]})),K(Vm)(({theme:e})=>({width:28,height:28,borderRadius:Number(e.shape.borderRadius)*.75,justifyContent:`center`,"&:hover":{backgroundColor:e.palette.action.hover}})),K(`div`)(({theme:e})=>({flexWrap:`wrap`,display:`flex`,flexDirection:`row`,alignItems:`center`,gap:e.spacing(1),padding:e.spacing(1.25),borderTopLeftRadius:`inherit`,borderTopRightRadius:`inherit`,backgroundColor:e.palette.background.paper,borderBottom:`solid 1px ${W(e.palette.grey[500],.2)}`})),K(`div`)(({theme:e})=>({display:`flex`,alignItems:`center`,gap:e.spacing(.5)})),K(`div`)(({theme:e})=>({display:`flex`,gap:e.spacing(.5),padding:e.spacing(.5),borderRadius:e.shape.borderRadius,boxShadow:e.shadows[8],backgroundColor:e.palette.background.paper,border:`1px solid ${W(e.palette.grey[500],.16)}`})),sY.create({name:`clearFormat`,addKeyboardShortcuts(){return{"Mod-Shift-X":({editor:e})=>e.chain().focus().clearNodes().unsetAllMarks().run()}}});var d1=e=>e instanceof HTMLElement,f1=(e,t)=>typeof e==`string`&&t.includes(e);QJ.create({name:`textTransform`,addOptions(){return{allowedValues:[`uppercase`,`lowercase`,`capitalize`],defaultValue:void 0}},addAttributes(){return{textTransform:{default:this.options.defaultValue,parseHTML:e=>{if(!d1(e))return;let t=e.style.textTransform||e.getAttribute(`style`)?.match(/text-transform:\s*(\w+)/)?.[1];return f1(t,this.options.allowedValues)?t:void 0},renderHTML:e=>e.textTransform?{style:`text-transform: ${e.textTransform}`}:{}}}},parseHTML(){return[{tag:`span[style]`,getAttrs:e=>{if(!d1(e))return null;let t=e.style.textTransform;return f1(t,this.options.allowedValues)?{}:!1}}]},renderHTML({HTMLAttributes:e}){return[`span`,e,0]},addCommands(){return{setTextTransform:e=>({commands:t})=>f1(e,this.options.allowedValues)?t.setMark(this.name,{textTransform:e}):!1,unsetTextTransform:()=>({commands:e})=>e.unsetMark(this.name),toggleTextTransform:e=>({editor:t,commands:n})=>f1(e,this.options.allowedValues)?t.isActive(this.name,{textTransform:e})?n.unsetTextTransform():n.setTextTransform(e):!1}}}),CL(`mega-menu`,[`root`,`horizontal`,`vertical`,`mobile`,`ul`,`li`,`item`,`icon`,`title`,`info`,`arrow`,`dropdown`,`subheader`,`subItem`,`tags`,`moreLink`,`slide`,`active`,`disabled`,`open`]),K(`nav`)({display:`flex`,flexShrink:0}),K(`ul`)({display:`flex`,listStyle:`none`,padding:0,margin:0}),K(`li`)({display:`flex`}),K(`button`)(({theme:e,active:t,open:n})=>({all:`unset`,cursor:`pointer`,display:`flex`,alignItems:`center`,padding:`var(--nav-item-padding)`,minHeight:`var(--nav-item-min-height)`,borderRadius:`var(--nav-item-radius)`,fontSize:`var(--nav-item-font-size)`,fontWeight:500,color:`var(--nav-item-color)`,backgroundColor:`var(--nav-item-bg)`,transition:e.transitions.create([`background-color`,`color`],{duration:e.transitions.duration.shorter}),"&:hover":{backgroundColor:`var(--nav-item-hover-bg)`,color:`var(--nav-item-hover-color)`},...t&&{backgroundColor:`var(--nav-item-active-bg)`,color:`var(--nav-item-active-color)`},...n&&{backgroundColor:`var(--nav-item-hover-bg)`},"&:disabled":{color:`var(--nav-item-disabled-color)`,cursor:`not-allowed`}})),K(`span`)({width:`var(--nav-icon-size)`,height:`var(--nav-icon-size)`,marginRight:8,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,color:`var(--nav-icon-color)`,"& svg":{width:`100%`,height:`100%`}}),K(`span`)(({open:e})=>({marginLeft:6,width:16,height:16,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`transform 0.2s`,transform:e?`rotate(180deg)`:`rotate(0deg)`,"&::before":{content:`""`,width:6,height:6,borderStyle:`solid`,borderWidth:`0 0 1.5px 1.5px`,borderColor:`currentColor`,transform:`rotate(-45deg)`}})),K(Mh)(({theme:e})=>({width:`var(--nav-dropdown-width)`,maxHeight:`var(--nav-dropdown-max-height)`,borderRadius:`var(--nav-dropdown-radius)`,padding:`var(--nav-dropdown-padding)`,overflow:`auto`,display:`flex`,gap:24})),K(`div`)({flex:1,minWidth:0}),K(V_)(({theme:e})=>({fontSize:`var(--nav-subheader-font-size)`,fontWeight:`var(--nav-subheader-font-weight)`,color:e.palette.text.disabled,textTransform:`uppercase`,letterSpacing:`0.08em`,marginBottom:12})),K(Hw,{shouldForwardProp:e=>e!==`active`})(({theme:e,active:t})=>({display:`block`,padding:`6px 0`,fontSize:`0.875rem`,color:t?e.palette.primary.main:e.palette.text.secondary,textDecoration:`none`,transition:e.transitions.create(`color`,{duration:e.transitions.duration.shorter}),"&:hover":{color:e.palette.text.primary}})),K(X)(({theme:e})=>({display:`flex`,flexWrap:`wrap`,gap:8,marginTop:16})),K(Hw)(({theme:e})=>({display:`inline-flex`,padding:`4px 10px`,fontSize:`0.75rem`,fontWeight:500,color:e.palette.text.secondary,backgroundColor:W(e.palette.grey[500],.08),borderRadius:6,textDecoration:`none`,transition:e.transitions.create([`background-color`,`color`],{duration:e.transitions.duration.shorter}),"&:hover":{backgroundColor:W(e.palette.grey[500],.16),color:e.palette.text.primary}})),K(Hw)(({theme:e})=>({display:`inline-flex`,alignItems:`center`,padding:`8px 0`,fontSize:`0.875rem`,fontWeight:600,color:e.palette.primary.main,textDecoration:`none`,"&:hover":{textDecoration:`underline`},"&::after":{content:`"→"`,marginLeft:4}})),K(`nav`)({display:`flex`,flexDirection:`column`,flexShrink:0}),K(`ul`)({display:`flex`,flexDirection:`column`,listStyle:`none`,padding:0,margin:0}),K(`li`)({display:`flex`,flexDirection:`column`}),K(`button`)(({theme:e,active:t,open:n})=>({all:`unset`,cursor:`pointer`,display:`flex`,alignItems:`center`,width:`100%`,padding:`var(--nav-item-padding)`,minHeight:`var(--nav-item-min-height)`,borderRadius:`var(--nav-item-radius)`,fontSize:`var(--nav-item-font-size)`,fontWeight:500,color:`var(--nav-item-color)`,backgroundColor:`var(--nav-item-bg)`,transition:e.transitions.create([`background-color`,`color`],{duration:e.transitions.duration.shorter}),"&:hover":{backgroundColor:`var(--nav-item-hover-bg)`,color:`var(--nav-item-hover-color)`},...t&&{backgroundColor:`var(--nav-item-active-bg)`,color:`var(--nav-item-active-color)`},...n&&{backgroundColor:`var(--nav-item-hover-bg)`},"&:disabled":{color:`var(--nav-item-disabled-color)`,cursor:`not-allowed`}})),K(`span`)({width:`var(--nav-icon-size)`,height:`var(--nav-icon-size)`,marginRight:12,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,color:`var(--nav-icon-color)`,"& svg":{width:`100%`,height:`100%`}}),K(`span`)(({open:e})=>({marginLeft:`auto`,width:16,height:16,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`transform 0.2s`,"&::before":{content:`""`,width:5,height:5,borderStyle:`solid`,borderWidth:`0 1.5px 1.5px 0`,borderColor:`currentColor`,transform:`rotate(-45deg)`}})),K(Mh)(({theme:e})=>({width:`var(--nav-dropdown-width)`,maxHeight:`var(--nav-dropdown-max-height)`,borderRadius:`var(--nav-dropdown-radius)`,padding:`var(--nav-dropdown-padding)`,overflow:`auto`})),K(V_)(({theme:e})=>({fontSize:`var(--nav-subheader-font-size)`,fontWeight:`var(--nav-subheader-font-weight)`,color:e.palette.text.disabled,textTransform:`uppercase`,letterSpacing:`0.08em`,marginBottom:8,marginTop:16,"&:first-of-type":{marginTop:0}})),K(Hw,{shouldForwardProp:e=>e!==`active`})(({theme:e,active:t})=>({display:`block`,padding:`6px 0`,fontSize:`0.875rem`,color:t?e.palette.primary.main:e.palette.text.secondary,textDecoration:`none`,transition:e.transitions.create(`color`,{duration:e.transitions.duration.shorter}),"&:hover":{color:e.palette.text.primary}})),K(`nav`)({display:`flex`,flexDirection:`column`,flexShrink:0,width:`100%`}),K(`ul`)({display:`flex`,flexDirection:`column`,listStyle:`none`,padding:0,margin:0,width:`100%`}),K(`li`)({display:`flex`,flexDirection:`column`,width:`100%`});var p1=(e,t)=>({all:`unset`,boxSizing:`border-box`,cursor:`pointer`,display:`flex`,alignItems:`center`,width:`100%`,padding:`var(--nav-item-padding)`,minHeight:`var(--nav-item-min-height)`,fontSize:`var(--nav-item-font-size)`,fontWeight:500,color:`var(--nav-item-color)`,borderBottom:`1px solid ${e.palette.divider}`,transition:e.transitions.create([`background-color`,`color`],{duration:e.transitions.duration.shorter}),"&:hover":{backgroundColor:`var(--nav-item-hover-bg)`,color:`var(--nav-item-hover-color)`},...t&&{color:`var(--nav-item-active-color)`}});K(`button`)(({theme:e,active:t})=>({...p1(e,t),"&:disabled":{color:`var(--nav-item-disabled-color)`,cursor:`not-allowed`}})),K(`a`)(({theme:e,active:t})=>p1(e,t)),K(`span`)({width:`var(--nav-icon-size)`,height:`var(--nav-icon-size)`,marginRight:12,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,color:`var(--nav-icon-color)`,"& svg":{width:`100%`,height:`100%`}}),K(`span`)(({open:e})=>({marginLeft:`auto`,width:20,height:20,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`transform 0.2s`,transform:e?`rotate(180deg)`:`rotate(0deg)`,"&::before":{content:`""`,width:6,height:6,borderStyle:`solid`,borderWidth:`0 0 2px 2px`,borderColor:`currentColor`,transform:`rotate(-45deg)`}})),K(X)(({theme:e})=>({padding:`8px 0`,paddingLeft:40,backgroundColor:e.palette.background.neutral})),K(V_)(({theme:e})=>({fontSize:`var(--nav-subheader-font-size)`,fontWeight:`var(--nav-subheader-font-weight)`,color:e.palette.text.disabled,textTransform:`uppercase`,letterSpacing:`0.08em`,padding:`12px 16px 8px`})),K(Hw,{shouldForwardProp:e=>e!==`active`})(({theme:e,active:t})=>({display:`block`,padding:`10px 16px`,fontSize:`0.875rem`,color:t?e.palette.primary.main:e.palette.text.secondary,textDecoration:`none`,transition:e.transitions.create(`color`,{duration:e.transitions.duration.shorter}),"&:hover":{color:e.palette.text.primary}})),(0,C.createContext)({activeId:null,registerSection:()=>{},unregisterSection:()=>{}});var m1=`prism-content`,h1={root:`${m1}__root`,compact:`${m1}__compact`,tiptap:`${m1}__tiptap`,markdown:`${m1}__markdown`,image:`${m1}__image`,link:`${m1}__link`,checkbox:`${m1}__checkbox`,codeBlock:`${m1}__code-block`,codeBlockTitle:`${m1}__code-block-title`,codeBlockCopy:`${m1}__code-block-copy`,codeBlockHighlight:`${m1}__code-block-highlight`,codeInline:`${m1}__code-inline`,spoiler:`${m1}__spoiler`,admonition:`${m1}__admonition`,admonitionNote:`${m1}__admonition-note`,admonitionTip:`${m1}__admonition-tip`,admonitionWarning:`${m1}__admonition-warning`,admonitionDanger:`${m1}__admonition-danger`,admonitionInfo:`${m1}__admonition-info`,admonitionCaution:`${m1}__admonition-caution`,admonitionTitle:`${m1}__admonition-title`,admonitionContent:`${m1}__admonition-content`,tabs:`${m1}__tabs`,tabsHeader:`${m1}__tabs-header`,tabsTab:`${m1}__tabs-tab`,tabsTabActive:`${m1}__tabs-tab-active`,tabsPanel:`${m1}__tabs-panel`,figure:`${m1}__figure`,figcaption:`${m1}__figcaption`,kbd:`${m1}__kbd`},g1=`0.75em`,_1=`'JetBrains Mono', 'Fira Code', 'Cascadia Code', Menlo, Monaco, 'Courier New', monospace`;K(`div`)(({theme:e})=>({"> * + *":{marginTop:0,marginBottom:g1},"& h1, & h2, & h3, & h4, & h5, & h6":{scrollMarginTop:100},"& > h1:first-of-type, & > h2:first-of-type, & > h3:first-of-type":{marginTop:0},h1:{...e.typography.h1,marginTop:40,marginBottom:12},h2:{...e.typography.h2,marginTop:40,marginBottom:12},h3:{...e.typography.h3,marginTop:32,marginBottom:8},h4:{...e.typography.h4,marginTop:24,marginBottom:8},h5:{...e.typography.h5,marginTop:24,marginBottom:8},h6:{...e.typography.h6,marginTop:24,marginBottom:8},p:{...e.typography.body1,marginBottom:`1.25rem`,lineHeight:1.8},hr:{flexShrink:0,borderWidth:0,margin:`2em 0`,borderStyle:`solid`,borderBottomWidth:`thin`,borderColor:e.palette.divider},[`& .${h1.image}`]:{width:`100%`,height:`auto`,maxWidth:`100%`,margin:`auto auto 1.25em`,borderRadius:Number(e.shape.borderRadius)*2},"& img:not([class])":{maxWidth:`100%`,height:`auto`,borderRadius:Number(e.shape.borderRadius)*2,marginBottom:`1.25em`},"& a":{color:e.palette.primary.main,textDecoration:`none`,"&:hover":{textDecoration:`underline`}},"& ul":{listStyleType:`disc`},"& ul, & ol":{paddingLeft:24,marginBottom:`1.25rem`,"& > li":{lineHeight:2,"& > p":{margin:0,display:`inline`}}},"& ul ul, & ol ol, & ul ol, & ol ul":{marginBottom:0},'& ul[data-type="taskList"]':{listStyle:`none`,paddingLeft:4,"& li":{display:`flex`,alignItems:`flex-start`,gap:8,"& > label":{marginTop:4}}},"& blockquote":{lineHeight:1.6,fontSize:`1em`,margin:`24px 0`,position:`relative`,padding:e.spacing(2.5,3,2.5,7),color:e.palette.text.secondary,borderLeft:`4px solid ${e.palette.primary.main}`,borderRadius:Number(e.shape.borderRadius)*2,backgroundColor:W(e.palette.primary.main,.04),"& p":{margin:0,fontSize:`inherit`},"& p + p":{marginTop:8},"&::before":{left:16,top:8,display:`block`,fontSize:`2.5em`,content:`"\\201C"`,position:`absolute`,color:W(e.palette.primary.main,.3),lineHeight:1}},[`& .${h1.codeInline}`]:{padding:e.spacing(.25,.75),color:e.palette.text.secondary,fontSize:e.typography.body2.fontSize,borderRadius:Number(e.shape.borderRadius)/2,backgroundColor:W(e.palette.grey[500],.2),fontFamily:_1},"& :not(pre) > code:not([class])":{padding:e.spacing(.25,.75),color:e.palette.text.secondary,fontSize:e.typography.body2.fontSize,borderRadius:Number(e.shape.borderRadius)/2,backgroundColor:W(e.palette.grey[500],.2),fontFamily:_1},[`& .${h1.codeBlock}`]:{position:`relative`,marginBottom:`1.25rem`,"& pre":{overflowX:`auto`,padding:e.spacing(3),color:e.palette.common.white,borderRadius:Number(e.shape.borderRadius)*1.5,fontFamily:_1,fontSize:e.typography.body2.fontSize,lineHeight:1.7,backgroundColor:e.palette.grey[900],...e.palette.mode===`dark`&&{backgroundColor:W(e.palette.grey[800],.9)},"& code":{fontSize:`inherit`,fontFamily:`inherit`,backgroundColor:`transparent`,padding:0,borderRadius:0,color:`inherit`}}},"& pre:not([class])":{overflowX:`auto`,padding:e.spacing(3),color:e.palette.common.white,borderRadius:Number(e.shape.borderRadius)*1.5,fontFamily:_1,fontSize:e.typography.body2.fontSize,lineHeight:1.7,backgroundColor:e.palette.grey[900],marginBottom:`1.25rem`,...e.palette.mode===`dark`&&{backgroundColor:W(e.palette.grey[800],.9)},"& code":{fontSize:`inherit`,fontFamily:`inherit`,backgroundColor:`transparent`,padding:0,color:`inherit`}},"& table":{width:`100%`,borderCollapse:`collapse`,fontSize:e.typography.body2.fontSize,border:`1px solid ${e.palette.divider}`,marginBottom:`1.25rem`,"& th, & td":{padding:e.spacing(1,1.5),border:`1px solid ${e.palette.divider}`,verticalAlign:`top`},"& th":{fontWeight:700,backgroundColor:W(e.palette.grey[500],.08)},"& tbody tr:nth-of-type(odd)":{backgroundColor:W(e.palette.grey[500],.04)}},[`& .${h1.checkbox}`]:{cursor:`pointer`,position:`relative`,"&:before":{content:`""`,top:-2,left:-2,width:17,height:17,borderRadius:3,position:`absolute`,backgroundColor:e.palette.grey[300],...e.palette.mode===`dark`&&{backgroundColor:e.palette.grey[700]}},"&:checked":{"&:before":{backgroundColor:e.palette.primary.main},"&:after":{top:1,left:5,width:4,height:9,content:`""`,position:`absolute`,borderStyle:`solid`,transform:`rotate(45deg)`,borderWidth:`0 2px 2px 0`,borderColor:e.palette.common.white}}},"& details":{marginBottom:`1rem`,"& summary":{cursor:`pointer`,fontWeight:600,marginBottom:8}},"& dl":{marginBottom:`1.25rem`,"& dt":{fontWeight:700,marginTop:12},"& dd":{marginLeft:24,marginBottom:4}},"& kbd":{display:`inline-block`,padding:e.spacing(.25,.5),fontSize:`0.8em`,fontFamily:_1,borderRadius:4,border:`1px solid ${e.palette.divider}`,boxShadow:`0 1px 0 ${W(e.palette.grey[500],.1)}`,backgroundColor:W(e.palette.grey[500],.06)},"& mark":{padding:e.spacing(0,.5),borderRadius:2,backgroundColor:W(e.palette.warning.main,.3)},"& sup, & sub":{fontSize:`0.75em`},[`& .${h1.spoiler}`]:{backgroundColor:e.palette.text.primary,color:e.palette.text.primary,borderRadius:4,padding:e.spacing(0,.5),cursor:`pointer`,transition:`all 0.15s ease`,userSelect:`none`,'&:hover, &[data-revealed="true"]':{backgroundColor:`transparent`,color:`inherit`,userSelect:`auto`}},[`& .${h1.admonition}`]:{margin:e.spacing(2,0),padding:e.spacing(1.5,2),borderRadius:e.shape.borderRadius,borderLeft:`4px solid ${e.palette.divider}`,backgroundColor:W(e.palette.text.primary,.04),"& > :last-child":{marginBottom:0}},[`& .${h1.admonitionTitle}`]:{fontWeight:600,textTransform:`uppercase`,fontSize:`0.75rem`,letterSpacing:`0.05em`,marginBottom:e.spacing(.75),opacity:.85},[`& .${h1.admonitionContent}`]:{"& p:last-child":{marginBottom:0}},[`& .${h1.admonitionNote}`]:{borderLeftColor:e.palette.text.secondary,backgroundColor:W(e.palette.text.primary,.04)},[`& .${h1.admonitionTip}`]:{borderLeftColor:e.palette.success.main,backgroundColor:W(e.palette.success.main,.08)},[`& .${h1.admonitionWarning}`]:{borderLeftColor:e.palette.warning.main,backgroundColor:W(e.palette.warning.main,.08)},[`& .${h1.admonitionDanger}`]:{borderLeftColor:e.palette.error.main,backgroundColor:W(e.palette.error.main,.08)},[`& .${h1.admonitionInfo}`]:{borderLeftColor:e.palette.info.main,backgroundColor:W(e.palette.info.main,.08)},[`& .${h1.admonitionCaution}`]:{borderLeftColor:e.palette.warning.dark,backgroundColor:W(e.palette.warning.dark,.08)},[`& .${h1.tabs}`]:{margin:e.spacing(2,0),border:`1px solid ${e.palette.divider}`,borderRadius:e.shape.borderRadius,overflow:`hidden`},[`& .${h1.tabsHeader}`]:{display:`flex`,gap:0,borderBottom:`1px solid ${e.palette.divider}`,backgroundColor:W(e.palette.text.primary,.03)},[`& .${h1.tabsTab}`]:{appearance:`none`,background:`transparent`,border:`none`,padding:e.spacing(1,2),fontFamily:`inherit`,fontSize:`0.8125rem`,fontWeight:500,color:e.palette.text.secondary,cursor:`pointer`,borderBottom:`2px solid transparent`,transition:`all 0.15s ease`,"&:hover":{color:e.palette.text.primary}},[`& .${h1.tabsTabActive}`]:{color:e.palette.text.primary,borderBottomColor:e.palette.primary.main},[`& .${h1.tabsPanel}`]:{padding:e.spacing(2),"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[`& .${h1.codeBlockTitle}`]:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:e.spacing(1),padding:e.spacing(.75,1.5),fontSize:`0.75rem`,fontFamily:`ui-monospace, "SF Mono", Menlo, Consolas, monospace`,color:e.palette.text.secondary,backgroundColor:W(e.palette.text.primary,.06),borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},[`& .${h1.codeBlockCopy}`]:{appearance:`none`,background:`transparent`,border:`none`,color:`inherit`,cursor:`pointer`,padding:e.spacing(.25,.75),fontSize:`0.875rem`,borderRadius:e.shape.borderRadius,"&:hover":{backgroundColor:W(e.palette.text.primary,.08)}},[`& .${h1.figure}`]:{margin:e.spacing(2,0),textAlign:`center`},[`& .${h1.figcaption}`]:{fontSize:`0.8125rem`,color:e.palette.text.secondary,marginTop:e.spacing(.75)},[`& .${h1.kbd}`]:{display:`inline-block`,padding:e.spacing(0,.5),fontFamily:`ui-monospace, "SF Mono", Menlo, Consolas, monospace`,fontSize:`0.8em`,color:e.palette.text.primary,border:`1px solid ${e.palette.divider}`,borderBottomWidth:2,borderRadius:4,backgroundColor:W(e.palette.text.primary,.04),boxShadow:`0 1px 0 ${W(e.palette.text.primary,.15)}`,minWidth:`1.5em`,textAlign:`center`},[`&.${h1.compact}`]:{"> * + *":{marginTop:0,marginBottom:2},"& > :first-of-type:not(p)":{marginTop:4},"& h1, & h2, & h3, & h4, & h5, & h6":{marginTop:0,marginBottom:2},h1:{fontSize:`1.25rem`,fontWeight:600,marginTop:0,marginBottom:2},h2:{fontSize:`1.125rem`,fontWeight:600,marginTop:0,marginBottom:2},h3:{fontSize:`1rem`,fontWeight:600,marginTop:0,marginBottom:2},"h4, h5, h6":{fontSize:`0.875rem`,fontWeight:600,marginTop:0,marginBottom:2},p:{fontSize:`0.8125rem`,lineHeight:1.5,marginBottom:2,"&:last-child":{marginBottom:0}},hr:{margin:`4px 0`},"& blockquote":{margin:`4px 0`,padding:e.spacing(.5,0,.5,1.5),borderRadius:0,backgroundColor:`transparent`,"&::before":{display:`none`}},"& ul, & ol":{paddingLeft:20,marginBottom:2,"& > li":{lineHeight:1.5,fontSize:`0.8125rem`}},"& img:not([class])":{marginBottom:4},[`& .${h1.codeBlock}`]:{marginBottom:4},[`& .${h1.codeBlock} pre, & pre:not([class])`]:{padding:e.spacing(1.5),fontSize:`0.75rem`,lineHeight:1.5,marginBottom:4},[`& .${h1.codeInline}, & :not(pre) > code:not([class])`]:{fontSize:`0.75rem`},"& table":{fontSize:`0.75rem`,marginBottom:4}}})),(0,C.createContext)({}),h1.admonitionNote,h1.admonitionTip,h1.admonitionWarning,h1.admonitionDanger,h1.admonitionInfo,h1.admonitionCaution;function v1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}function y1(e,t){return Array(t+1).join(e)}function b1(e){return e.replace(/^\n*/,``)}function x1(e){for(var t=e.length;t>0&&e[t-1]===`
344
- `;)t--;return e.substring(0,t)}function S1(e){return x1(b1(e))}var C1=`ADDRESS.ARTICLE.ASIDE.AUDIO.BLOCKQUOTE.BODY.CANVAS.CENTER.DD.DIR.DIV.DL.DT.FIELDSET.FIGCAPTION.FIGURE.FOOTER.FORM.FRAMESET.H1.H2.H3.H4.H5.H6.HEADER.HGROUP.HR.HTML.ISINDEX.LI.MAIN.MENU.NAV.NOFRAMES.NOSCRIPT.OL.OUTPUT.P.PRE.SECTION.TABLE.TBODY.TD.TFOOT.TH.THEAD.TR.UL`.split(`.`);function w1(e){return j1(e,C1)}var T1=[`AREA`,`BASE`,`BR`,`COL`,`COMMAND`,`EMBED`,`HR`,`IMG`,`INPUT`,`KEYGEN`,`LINK`,`META`,`PARAM`,`SOURCE`,`TRACK`,`WBR`];function E1(e){return j1(e,T1)}function D1(e){return M1(e,T1)}var O1=[`A`,`TABLE`,`THEAD`,`TBODY`,`TFOOT`,`TH`,`TD`,`IFRAME`,`SCRIPT`,`AUDIO`,`VIDEO`];function k1(e){return j1(e,O1)}function A1(e){return M1(e,O1)}function j1(e,t){return t.indexOf(e.nodeName)>=0}function M1(e,t){return e.getElementsByTagName&&t.some(function(t){return e.getElementsByTagName(t).length})}var N1=[[/\\/g,`\\\\`],[/\*/g,`\\*`],[/^-/g,`\\-`],[/^\+ /g,`\\+ `],[/^(=+)/g,`\\$1`],[/^(#{1,6}) /g,`\\$1 `],[/`/g,"\\`"],[/^~~~/g,`\\~~~`],[/\[/g,`\\[`],[/\]/g,`\\]`],[/^>/g,`\\>`],[/_/g,`\\_`],[/^(\d+)\. /g,`$1\\. `]];function P1(e){return N1.reduce(function(e,t){return e.replace(t[0],t[1])},e)}var F1={};F1.paragraph={filter:`p`,replacement:function(e){return`
345
-
346
- `+e+`
347
-
348
- `}},F1.lineBreak={filter:`br`,replacement:function(e,t,n){return n.br+`
349
- `}},F1.heading={filter:[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],replacement:function(e,t,n){var r=Number(t.nodeName.charAt(1));if(n.headingStyle===`setext`&&r<3){var i=y1(r===1?`=`:`-`,e.length);return`
350
-
351
- `+e+`
352
- `+i+`
353
-
354
- `}else return`
355
-
356
- `+y1(`#`,r)+` `+e+`
357
-
358
- `}},F1.blockquote={filter:`blockquote`,replacement:function(e){return e=S1(e).replace(/^/gm,`> `),`
359
-
360
- `+e+`
361
-
362
- `}},F1.list={filter:[`ul`,`ol`],replacement:function(e,t){var n=t.parentNode;return n.nodeName===`LI`&&n.lastElementChild===t?`
363
- `+e:`
364
-
365
- `+e+`
366
-
367
- `}},F1.listItem={filter:`li`,replacement:function(e,t,n){var r=n.bulletListMarker+` `,i=t.parentNode;if(i.nodeName===`OL`){var a=i.getAttribute(`start`),o=Array.prototype.indexOf.call(i.children,t);r=(a?Number(a)+o:o+1)+`. `}var s=/\n$/.test(e);return e=S1(e)+(s?`
368
- `:``),e=e.replace(/\n/gm,`
369
- `+` `.repeat(r.length)),r+e+(t.nextSibling?`
370
- `:``)}},F1.indentedCodeBlock={filter:function(e,t){return t.codeBlockStyle===`indented`&&e.nodeName===`PRE`&&e.firstChild&&e.firstChild.nodeName===`CODE`},replacement:function(e,t,n){return`
371
-
372
- `+t.firstChild.textContent.replace(/\n/g,`
373
- `)+`
374
-
375
- `}},F1.fencedCodeBlock={filter:function(e,t){return t.codeBlockStyle===`fenced`&&e.nodeName===`PRE`&&e.firstChild&&e.firstChild.nodeName===`CODE`},replacement:function(e,t,n){for(var r=((t.firstChild.getAttribute(`class`)||``).match(/language-(\S+)/)||[null,``])[1],i=t.firstChild.textContent,a=n.fence.charAt(0),o=3,s=RegExp(`^`+a+`{3,}`,`gm`),c;c=s.exec(i);)c[0].length>=o&&(o=c[0].length+1);var l=y1(a,o);return`
376
-
377
- `+l+r+`
378
- `+i.replace(/\n$/,``)+`
379
- `+l+`
380
-
381
- `}},F1.horizontalRule={filter:`hr`,replacement:function(e,t,n){return`
382
-
383
- `+n.hr+`
384
-
385
- `}},F1.inlineLink={filter:function(e,t){return t.linkStyle===`inlined`&&e.nodeName===`A`&&e.getAttribute(`href`)},replacement:function(e,t){var n=L1(t.getAttribute(`href`)),r=R1(I1(t.getAttribute(`title`))),i=r?` "`+r+`"`:``;return`[`+e+`](`+n+i+`)`}},F1.referenceLink={filter:function(e,t){return t.linkStyle===`referenced`&&e.nodeName===`A`&&e.getAttribute(`href`)},replacement:function(e,t,n){var r=L1(t.getAttribute(`href`)),i=I1(t.getAttribute(`title`));i&&=` "`+R1(i)+`"`;var a,o;switch(n.linkReferenceStyle){case`collapsed`:a=`[`+e+`][]`,o=`[`+e+`]: `+r+i;break;case`shortcut`:a=`[`+e+`]`,o=`[`+e+`]: `+r+i;break;default:var s=this.references.length+1;a=`[`+e+`][`+s+`]`,o=`[`+s+`]: `+r+i}return this.references.push(o),a},references:[],append:function(e){var t=``;return this.references.length&&(t=`
386
-
387
- `+this.references.join(`
388
- `)+`
389
-
390
- `,this.references=[]),t}},F1.emphasis={filter:[`em`,`i`],replacement:function(e,t,n){return e.trim()?n.emDelimiter+e+n.emDelimiter:``}},F1.strong={filter:[`strong`,`b`],replacement:function(e,t,n){return e.trim()?n.strongDelimiter+e+n.strongDelimiter:``}},F1.code={filter:function(e){var t=e.previousSibling||e.nextSibling,n=e.parentNode.nodeName===`PRE`&&!t;return e.nodeName===`CODE`&&!n},replacement:function(e){if(!e)return``;e=e.replace(/\r?\n|\r/g,` `);for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?` `:``,n="`",r=e.match(/`+/gm)||[];r.indexOf(n)!==-1;)n+="`";return n+t+e+t+n}},F1.image={filter:`img`,replacement:function(e,t){var n=P1(I1(t.getAttribute(`alt`))),r=L1(t.getAttribute(`src`)||``),i=I1(t.getAttribute(`title`)),a=i?` "`+R1(i)+`"`:``;return r?`![`+n+`](`+r+a+`)`:``}};function I1(e){return e?e.replace(/(\n+\s*)+/g,`
391
- `):``}function L1(e){var t=e.replace(/([<>()])/g,`\\$1`);return t.indexOf(` `)>=0?`<`+t+`>`:t}function R1(e){return e.replace(/"/g,`\\"`)}function z1(e){for(var t in this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[],e.rules)this.array.push(e.rules[t])}z1.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return``}})},forNode:function(e){if(e.isBlank)return this.blankRule;var t;return(t=B1(this.array,e,this.options))||(t=B1(this._keep,e,this.options))||(t=B1(this._remove,e,this.options))?t:this.defaultRule},forEach:function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)}};function B1(e,t,n){for(var r=0;r<e.length;r++){var i=e[r];if(V1(i,t,n))return i}}function V1(e,t,n){var r=e.filter;if(typeof r==`string`){if(r===t.nodeName.toLowerCase())return!0}else if(Array.isArray(r)){if(r.indexOf(t.nodeName.toLowerCase())>-1)return!0}else if(typeof r==`function`){if(r.call(e,t,n))return!0}else throw TypeError("`filter` needs to be a string, array, or function")}function H1(e){var t=e.element,n=e.isBlock,r=e.isVoid,i=e.isPre||function(e){return e.nodeName===`PRE`};if(!(!t.firstChild||i(t))){for(var a=null,o=!1,s=null,c=W1(s,t,i);c!==t;){if(c.nodeType===3||c.nodeType===4){var l=c.data.replace(/[ \r\n\t]+/g,` `);if((!a||/ $/.test(a.data))&&!o&&l[0]===` `&&(l=l.substr(1)),!l){c=U1(c);continue}c.data=l,a=c}else if(c.nodeType===1)n(c)||c.nodeName===`BR`?(a&&(a.data=a.data.replace(/ $/,``)),a=null,o=!1):r(c)||i(c)?(a=null,o=!0):a&&(o=!1);else{c=U1(c);continue}var u=W1(s,c,i);s=c,c=u}a&&(a.data=a.data.replace(/ $/,``),a.data||U1(a))}}function U1(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function W1(e,t,n){return e&&e.parentNode===t||n(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}var G1=typeof window<`u`?window:{};function K1(){var e=G1.DOMParser,t=!1;try{new e().parseFromString(``,`text/html`)&&(t=!0)}catch{}return t}function q1(){var e=function(){};return J1()?e.prototype.parseFromString=function(e){var t=new window.ActiveXObject(`htmlfile`);return t.designMode=`on`,t.open(),t.write(e),t.close(),t}:e.prototype.parseFromString=function(e){var t=document.implementation.createHTMLDocument(``);return t.open(),t.write(e),t.close(),t},e}function J1(){var e=!1;try{document.implementation.createHTMLDocument(``).open()}catch{G1.ActiveXObject&&(e=!0)}return e}var Y1=K1()?G1.DOMParser:q1();function X1(e,t){var n=typeof e==`string`?Q1().parseFromString(`<x-turndown id="turndown-root">`+e+`</x-turndown>`,`text/html`).getElementById(`turndown-root`):e.cloneNode(!0);return H1({element:n,isBlock:w1,isVoid:E1,isPre:t.preformattedCode?$1:null}),n}var Z1;function Q1(){return Z1||=new Y1,Z1}function $1(e){return e.nodeName===`PRE`||e.nodeName===`CODE`}function e0(e,t){return e.isBlock=w1(e),e.isCode=e.nodeName===`CODE`||e.parentNode.isCode,e.isBlank=t0(e),e.flankingWhitespace=n0(e,t),e}function t0(e){return!E1(e)&&!k1(e)&&/^\s*$/i.test(e.textContent)&&!D1(e)&&!A1(e)}function n0(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:``,trailing:``};var n=r0(e.textContent);return n.leadingAscii&&i0(`left`,e,t)&&(n.leading=n.leadingNonAscii),n.trailingAscii&&i0(`right`,e,t)&&(n.trailing=n.trailingNonAscii),{leading:n.leading,trailing:n.trailing}}function r0(e){var t=e.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:t[1],leadingAscii:t[2],leadingNonAscii:t[3],trailing:t[4],trailingNonAscii:t[5],trailingAscii:t[6]}}function i0(e,t,n){var r,i,a;return e===`left`?(r=t.previousSibling,i=/ $/):(r=t.nextSibling,i=/^ /),r&&(r.nodeType===3?a=i.test(r.nodeValue):n.preformattedCode&&r.nodeName===`CODE`?a=!1:r.nodeType===1&&!w1(r)&&(a=i.test(r.textContent))),a}var a0=Array.prototype.reduce;function o0(e){if(!(this instanceof o0))return new o0(e);var t={rules:F1,headingStyle:`setext`,hr:`* * *`,bulletListMarker:`*`,codeBlockStyle:`indented`,fence:"```",emDelimiter:`_`,strongDelimiter:`**`,linkStyle:`inlined`,linkReferenceStyle:`full`,br:` `,preformattedCode:!1,blankReplacement:function(e,t){return t.isBlock?`
392
-
393
- `:``},keepReplacement:function(e,t){return t.isBlock?`
394
-
395
- `+t.outerHTML+`
396
-
397
- `:t.outerHTML},defaultReplacement:function(e,t){return t.isBlock?`
398
-
399
- `+e+`
400
-
401
- `:e}};this.options=v1({},t,e),this.rules=new z1(this.options)}o0.prototype={turndown:function(e){if(!d0(e))throw TypeError(e+` is not a string, or an element/document/fragment node.`);if(e===``)return``;var t=s0.call(this,new X1(e,this.options));return c0.call(this,t)},use:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else if(typeof e==`function`)e(this);else throw TypeError(`plugin must be a Function or an Array of Functions`);return this},addRule:function(e,t){return this.rules.add(e,t),this},keep:function(e){return this.rules.keep(e),this},remove:function(e){return this.rules.remove(e),this},escape:function(e){return P1(e)}};function s0(e){var t=this;return a0.call(e.childNodes,function(e,n){n=new e0(n,t.options);var r=``;return n.nodeType===3?r=n.isCode?n.nodeValue:t.escape(n.nodeValue):n.nodeType===1&&(r=l0.call(t,n)),u0(e,r)},``)}function c0(e){var t=this;return this.rules.forEach(function(n){typeof n.append==`function`&&(e=u0(e,n.append(t.options)))}),e.replace(/^[\t\r\n]+/,``).replace(/[\t\r\n\s]+$/,``)}function l0(e){var t=this.rules.forNode(e),n=s0.call(this,e),r=e.flankingWhitespace;return(r.leading||r.trailing)&&(n=n.trim()),r.leading+t.replacement(n,e,this.options)+r.trailing}function u0(e,t){var n=x1(e),r=b1(t),i=Math.max(e.length-n.length,t.length-r.length);return n+`
402
-
403
- `.substring(0,i)+r}function d0(e){return e!=null&&(typeof e==`string`||e.nodeType&&(e.nodeType===1||e.nodeType===9||e.nodeType===11))}var f0=`a.abbr.acronym.address.applet.area.article.aside.audio.b.base.basefont.bdi.bdo.bgsound.big.blink.blockquote.body.br.button.canvas.caption.center.circle.cite.clipPath.code.col.colgroup.command.content.data.datalist.dd.defs.del.details.dfn.dialog.dir.div.dl.dt.element.ellipse.em.embed.fieldset.figcaption.figure.font.footer.foreignObject.form.frame.frameset.g.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.image.img.input.ins.isindex.kbd.keygen.label.legend.li.line.linearGradient.link.listing.main.map.mark.marquee.mask.math.menu.menuitem.meta.meter.multicol.nav.nextid.nobr.noembed.noframes.noscript.object.ol.optgroup.option.output.p.param.path.pattern.picture.plaintext.polygon.polyline.pre.progress.q.radialGradient.rb.rbc.rect.rp.rt.rtc.ruby.s.samp.script.section.select.shadow.slot.small.source.spacer.span.stop.strike.strong.style.sub.summary.sup.svg.table.tbody.td.template.text.textarea.tfoot.th.thead.time.title.tr.track.tspan.tt.u.ul.var.video.wbr.xmp`.split(`.`),p0=[`pre`,`code`],m0=f0.filter(e=>!p0.includes(e));new o0({codeBlockStyle:`fenced`,fence:"```"}).addRule(`keep`,{filter:m0,replacement(e,t){let{isBlock:n,outerHTML:r}=t;return t&&n?`\n\n${r}\n\n`:r}});var h0=3600,g0=86400;6*h0,7*g0,30*g0;var _0=class{locks=new Map;resolvers=new Map;rejecters=new Map;options;constructor(e={}){this.options={timeout:e.timeout??3e4,timeoutMessage:e.timeoutMessage??`Lock acquisition timed out`}}getState(e){return this.locks.has(e)?`locked`:`idle`}isLocked(e){return this.locks.has(e)}getActiveLocks(){return Array.from(this.locks.keys())}async acquire(e,t){let n=this.locks.get(e);if(n)return{value:await this.waitWithTimeout(n,e),wasExecutor:!1};let r,i,a=new Promise((e,t)=>{r=e,i=t});this.locks.set(e,a),this.resolvers.set(e,r),this.rejecters.set(e,i);try{let n=await t(),r=this.resolvers.get(e);return r&&r(n),{value:n,wasExecutor:!0}}catch(t){let n=this.rejecters.get(e);throw n&&n(t),t}finally{this.locks.delete(e),this.resolvers.delete(e),this.rejecters.delete(e)}}async tryAcquire(e,t){return this.isLocked(e)?null:this.acquire(e,t)}forceRelease(e,t){let n=this.rejecters.get(e);n&&n(t??Error(`Lock forcefully released`)),this.locks.delete(e),this.resolvers.delete(e),this.rejecters.delete(e)}clearAll(e){for(let t of this.locks.keys())this.forceRelease(t,e)}async waitWithTimeout(e,t){let{timeout:n,timeoutMessage:r}=this.options;return n<=0?e:Promise.race([e,new Promise((e,i)=>{setTimeout(()=>{i(new v0(`${r} (key: ${t})`))},n)})])}},v0=class e extends Error{name=`AsyncLockTimeoutError`;constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}};new _0;function y0(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}Array(12).fill(0);var b0=1,x0=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{let{message:t,...n}=e,r=typeof e?.id==`number`||e.id?.length>0?e.id:b0++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],C.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(C0(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!C.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!C.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!C.isValidElement(r)?r:{message:r};this.create({id:n,type:`success`,description:a,...o})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!C.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=t?.id||b0++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},S0=(e,t)=>{let n=t?.id||b0++;return x0.addToast({title:e,...t,id:n}),n},C0=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,w0=Object.assign(S0,{success:x0.success,info:x0.info,warning:x0.warning,error:x0.error,custom:x0.custom,message:x0.message,promise:x0.promise,dismiss:x0.dismiss,loading:x0.loading},{getHistory:()=>x0.toasts,getToasts:()=>x0.getActiveToasts()});y0(`[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}`);var T0=1500,E0=new Map;function D0(e){let t=Date.now(),n=E0.get(e);if(n!==void 0&&t-n<T0)return E0.set(e,t),!0;if(E0.set(e,t),E0.size>64){let e=t-T0*4;for(let[t,n]of E0)n<e&&E0.delete(t)}return!1}function O0(e){return(t,n)=>{D0(`${e}:${t}`)||w0[e](t,n)}}Object.assign(((e,t)=>{D0(`default:${e}`)||w0(e,t)}),{error:O0(`error`),success:O0(`success`),info:O0(`info`),warning:O0(`warning`),loading:w0.loading.bind(w0),promise:w0.promise.bind(w0),dismiss:w0.dismiss.bind(w0),custom:w0.custom.bind(w0),message:w0.message.bind(w0)}),Object.freeze({btc:8,xmr:8}),new class{options;registries=new Map;cache=new Map;loaders=new Map;constructor(e={}){this.options={baseDir:e.baseDir??(typeof process<`u`&&process.cwd?process.cwd():`/`),defaultRegistry:e.defaultRegistry??`prism`,config:e.config??{default:`prism`,registries:{}},cacheTtl:e.cacheTtl??300*1e3}}registerLoader(e,t){this.loaders.set(e,t)}async loadRegistry(e){let t=this.cache.get(e);if(t&&Date.now()-t.timestamp<this.options.cacheTtl)return t.data;let n=this.registries.get(e);if(n&&!t)return n;let r=this.loaders.get(e);if(r){let t=await r();return this.cacheRegistry(e,t),t}let i=this.options.config.registries[e];if(!i)throw Error(`Registry "${e}" not found in configuration`);let a=typeof i==`string`?await this.loadFromPath(i):await this.loadFromRemote(i);if(a.extends){let t=await this.loadRegistry(a.extends),n=this.mergeRegistries(t,a);return this.cacheRegistry(e,n),n}return this.cacheRegistry(e,a),a}async loadFromPath(e){let t=e.startsWith(`/`)?e:`${this.options.baseDir}/${e}`;if(typeof process<`u`&&(process.versions?.node||process.versions?.bun)){let e=await(await i(()=>import(`./fs-CgZLtHiQ.js`),[])).readFile(t,`utf-8`);return JSON.parse(e)}if(e.startsWith(`http://`)||e.startsWith(`https://`)){let t=await fetch(e);if(!t.ok)throw Error(`Failed to load registry from ${e}: ${t.statusText}`);return t.json()}throw Error(`Cannot load local file "${t}" in browser environment. Register a custom loader with manager.registerLoader() or use a remote URL.`)}async loadFromRemote(e){let t=await fetch(e.url,{headers:e.headers});if(!t.ok)throw Error(`Failed to load registry from ${e.url}: ${t.statusText}`);return t.json()}cacheRegistry(e,t){this.registries.set(e,t),this.cache.set(e,{data:t,timestamp:Date.now()})}mergeRegistries(e,t){return{...e,...t,components:{...e.components,...t.components},blocks:{...e.blocks,...t.blocks},themes:{...e.themes,...t.themes}}}clearCache(e){e?this.cache.delete(e):this.cache.clear()}async getComponent(e,t){return(await this.loadRegistry(t??this.options.defaultRegistry)).components[e]??null}async getComponents(e){return(await this.loadRegistry(e??this.options.defaultRegistry)).components}async searchComponents(e,t){let n=await this.loadRegistry(t??this.options.defaultRegistry),r=Object.values(n.components);if(e.category&&(r=r.filter(t=>t.category===e.category)),e.query){let t=e.query.toLowerCase();r=r.filter(e=>e.name.toLowerCase().includes(t)||e.displayName?.toLowerCase().includes(t)||e.description?.toLowerCase().includes(t))}return e.limit&&e.limit>0&&(r=r.slice(0,e.limit)),r}async getComponentCategories(e){let t=await this.loadRegistry(e??this.options.defaultRegistry),n=new Set;for(let e of Object.values(t.components))n.add(e.category);return Array.from(n).sort()}async getBlock(e,t){return(await this.loadRegistry(t??this.options.defaultRegistry)).blocks[e]??null}async getBlocks(e){return(await this.loadRegistry(e??this.options.defaultRegistry)).blocks}async searchBlocks(e,t){let n=await this.loadRegistry(t??this.options.defaultRegistry),r=Object.values(n.blocks);if(e.category&&(r=r.filter(t=>t.category===e.category)),e.query){let t=e.query.toLowerCase();r=r.filter(e=>e.name.toLowerCase().includes(t)||e.displayName?.toLowerCase().includes(t)||e.description?.toLowerCase().includes(t))}return e.limit&&e.limit>0&&(r=r.slice(0,e.limit)),r}async getBlockCategories(e){let t=await this.loadRegistry(e??this.options.defaultRegistry),n=new Set;for(let e of Object.values(t.blocks))n.add(e.category);return Array.from(n).sort()}async resolveComponentDependencies(e,t){let n=t??this.options.defaultRegistry,r=await this.getComponent(e,n);if(!r)throw Error(`Component "${e}" not found in registry "${n}"`);let i=[];for(let e of r.dependencies.components){let t=await this.resolveComponentDependencies(e,n);i.push(t)}return{definition:r,registry:n,dependencies:i}}async resolveBlockDependencies(e,t){let n=t??this.options.defaultRegistry,r=await this.getBlock(e,n);if(!r)throw Error(`Block "${e}" not found in registry "${n}"`);let i=[];for(let e of r.dependencies.components){let t=await this.resolveComponentDependencies(e,n);i.push(t)}for(let e of r.dependencies.blocks){let t=await this.resolveBlockDependencies(e,n);i.push(t)}return{definition:r,registry:n,dependencies:i}}getNpmDependencies(e){let t=new Set;function n(e){let r=e.definition;if(`dependencies`in r)for(let e of r.dependencies.npm)t.add(e);for(let t of e.dependencies)n(t)}return n(e),Array.from(t).sort()}getFilePaths(e){let t=new Set;function n(e){let r=e.definition;for(let e of r.files)t.add(e.path);for(let t of e.dependencies)n(t)}return n(e),Array.from(t).sort()}async checkComponentVersion(e,t,n){let r=await this.getComponent(e,n);return r?this.isVersionCompatible(r.version,t):!1}isVersionCompatible(e,t){let[n,r]=e.split(`.`).map(Number),[i,a]=t.split(`.`).map(Number);return n===i?r>=a:!1}async getRegistryInfo(e){let t=await this.loadRegistry(e??this.options.defaultRegistry);return{name:t.name,version:t.version,description:t.description,componentCount:Object.keys(t.components).length,blockCount:Object.keys(t.blocks).length,themeCount:Object.keys(t.themes).length}}getLoadedRegistries(){return Array.from(this.registries.keys())}};var k0={full:280,mini:73,mobile:280,stackedCollapsed:72,stackedExpanded:300},A0={mobile:64,desktop:72},j0={headerHeight:`--layout-header-height`,headerMobileHeight:`--layout-header-mobile-height`,headerDesktopHeight:`--layout-header-desktop-height`,headerBlur:`--layout-header-blur`,headerZIndex:`--layout-header-z-index`,navWidth:`--layout-nav-width`,navMiniWidth:`--layout-nav-mini-width`,navMobileWidth:`--layout-nav-mobile-width`,navZIndex:`--layout-nav-z-index`,navBg:`--layout-nav-bg`,navTextColor:`--layout-nav-text-color`,navTextSecondaryColor:`--layout-nav-text-secondary-color`,mainPaddingTop:`--layout-main-padding-top`,mainPaddingBottom:`--layout-main-padding-bottom`,mainPaddingLeft:`--layout-main-padding-left`,mainPaddingRight:`--layout-main-padding-right`};j0.headerMobileHeight,`${A0.mobile}`,j0.headerDesktopHeight,`${A0.desktop}`,j0.headerBlur,j0.navWidth,`${k0.full}`,j0.navMiniWidth,`${k0.mini}`,j0.navMobileWidth,`${k0.mobile}`;var M0={navigationMenuType:`sidenav`,sidenavVariant:`default`,sidenavCollapsed:!1,topnavVariant:`default`,navColor:`default`,drawerOpen:!1,drawerWidth:k0.full,compactLayout:!1},N0=(0,C.createContext)(null);N0.displayName=`LayoutContext`;function P0({children:e,initialConfig:t,persistKey:n}){let r=TE(Cu().breakpoints.down(`md`)),i=lO(e=>e.sidebarCollapsed),a=lO(e=>e.setSidebarCollapsed),[o,s]=(0,C.useState)(()=>{let e=n?i[n]??!1:!1;return{...M0,...t,...n?{sidenavCollapsed:e}:{}}}),[c,l]=(0,C.useState)([]),u=(0,C.useMemo)(()=>o.sidenavVariant===`mini`||o.sidenavCollapsed?o.sidenavVariant===`stacked`?k0.stackedCollapsed:k0.mini:o.sidenavVariant===`stacked`?k0.stackedExpanded:k0.full,[o.sidenavVariant,o.sidenavCollapsed]),d=(0,C.useMemo)(()=>({...o,drawerWidth:u}),[o,u]),f=(0,C.useCallback)(e=>{s(t=>({...t,...e}))},[]),p=(0,C.useCallback)(()=>{s(e=>({...e,drawerOpen:!e.drawerOpen}))},[]),m=(0,C.useCallback)(()=>{s(e=>{let t=!e.sidenavCollapsed;return n&&queueMicrotask(()=>a(n,t)),{...e,sidenavCollapsed:t}})},[n,a]),h=(0,C.useCallback)(e=>{s(t=>({...t,navigationMenuType:e}))},[]),g=(0,C.useCallback)(e=>{s(t=>({...t,sidenavVariant:e}))},[]),_=(0,C.useCallback)(e=>{s(t=>({...t,navColor:e}))},[]),v=(0,C.useCallback)(e=>c.includes(e),[c]),y=(0,C.useCallback)(e=>{l(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},[]),b=(0,C.useCallback)((e,t)=>{if(!e.path)return!1;let n=t.split(/[?#]/)[0].replace(/\/+$/,``)||`/`;if(e.path===n||e.selectionPrefix&&n.startsWith(e.selectionPrefix))return!0;if(e.deepMatch!==!1&&n.startsWith(e.path)){let t=n[e.path.length];return!t||t===`/`}return!1},[]),x=(0,C.useCallback)((e,t)=>{if(!e||e.length===0)return!1;let n=e=>b(e,t)?!0:e.children&&e.children.length>0?e.children.some(n):!1;return e.some(n)},[b]),S=(0,C.useMemo)(()=>({config:d,isMobile:r,setConfig:f,toggleDrawer:p,toggleSidenavCollapse:m,setNavigationMenuType:h,setSidenavVariant:g,setNavColor:_,openItems:c,setOpenItems:l,isItemOpen:v,toggleItem:y,isNestedItemActive:x,isNavItemActive:b}),[d,r,f,p,m,h,g,_,c,v,y,x,b]);return(0,B.jsx)(N0.Provider,{value:S,children:e})}function F0(){let e=(0,C.useContext)(N0);if(!e)throw Error(`useLayoutContext must be used within a LayoutProvider`);return e}function I0(){let{config:e}=F0();return e}function L0(e){let{isNavItemActive:t,isNestedItemActive:n}=F0();return(0,C.useMemo)(()=>({isItemActive:n=>t(n,e),isNestedActive:t=>n(t,e)}),[t,n,e])}K(X)({minHeight:`100%`,display:`flex`,flex:`1 1 auto`,flexDirection:`column`}),K(X)({display:`flex`,flex:`1 1 auto`,flexDirection:`row`,minHeight:0});function R0(e=10){let[t,n]=(0,C.useState)(!1);return(0,C.useEffect)(()=>{if(typeof window>`u`)return;let t=!1,r=()=>{t||(t=!0,requestAnimationFrame(()=>{n(window.scrollY>e),t=!1}))};return window.addEventListener(`scroll`,r,{passive:!0}),r(),()=>{window.removeEventListener(`scroll`,r)}},[e]),t}var z0=K(Qx,{shouldForwardProp:e=>![`isOffset`,`disableOffset`,`disableElevation`].includes(e)})(({theme:e,isOffset:t,disableOffset:n,disableElevation:r})=>{let i={opacity:0,content:`""`,visibility:`hidden`,position:`absolute`,transition:e.transitions.create([`opacity`,`visibility`],{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.shorter})},a={...i,top:0,left:0,width:`100%`,height:`100%`,zIndex:-1,backdropFilter:`blur(var(${j0.headerBlur}, 8px))`,WebkitBackdropFilter:`blur(var(${j0.headerBlur}, 8px))`,backgroundColor:W(e.palette.background.default,.8),...t&&{opacity:1,visibility:`visible`}},o={...i,left:0,right:0,bottom:0,height:24,margin:`auto`,borderRadius:`50%`,width:`calc(100% - 48px)`,zIndex:-2,boxShadow:e.shadows[8],...t&&{opacity:.48,visibility:`visible`}};return{backgroundColor:`transparent`,boxShadow:`none`,zIndex:`var(${j0.headerZIndex}, ${e.zIndex.appBar})`,...!n&&{"&::before":a},...!r&&{"&::after":o}}}),B0=K(_E)(({theme:e})=>({minHeight:A0.mobile,[e.breakpoints.up(`md`)]:{minHeight:A0.desktop,paddingLeft:e.spacing(4),paddingRight:e.spacing(4)}})),V0=K(X)({display:`flex`,alignItems:`center`});function H0({slots:e,slotProps:t,disableSticky:n=!1,disableOffset:r=!1,disableElevation:i=!1,containerized:a=!1,maxWidth:o=`lg`,sx:s}){let c=R0(),l=(0,B.jsxs)(B.Fragment,{children:[e?.leftArea&&(0,B.jsx)(V0,{sx:{gap:1,...t?.leftArea},children:e.leftArea}),(0,B.jsx)(V0,{sx:{flex:1,justifyContent:`center`,mx:2,...t?.centerArea},children:e?.centerArea}),e?.rightArea&&(0,B.jsx)(V0,{sx:{gap:1,...t?.rightArea},children:e.rightArea})]});return(0,B.jsxs)(z0,{position:n?`static`:`sticky`,isOffset:c,disableOffset:r,disableElevation:i,sx:s,children:[e?.topArea&&(0,B.jsx)(X,{sx:t?.topArea,children:e.topArea}),(0,B.jsx)(B0,{children:a?(0,B.jsx)(oC,{maxWidth:o,sx:{display:`flex`,alignItems:`center`,...t?.container},children:l}):l}),e?.bottomArea&&(0,B.jsx)(X,{sx:t?.bottomArea,children:e.bottomArea})]})}K(Vm)(({theme:e})=>({borderRadius:`50%`,padding:0,transition:e.transitions.create([`box-shadow`,`background-color`],{duration:e.transitions.duration.shorter}),"&:hover":{backgroundColor:W(e.palette.primary.main,.08)},"&:focus-visible":{outline:`2px solid ${e.palette.primary.main}`,outlineOffset:2}})),K(PT)(({theme:e})=>({"& .MuiPopover-paper":{minWidth:220,maxWidth:280,borderRadius:Number(e.shape.borderRadius)*1.5,boxShadow:e.shadows[8],overflow:`hidden`}})),K(X)(({theme:e})=>({padding:e.spacing(2),display:`flex`,alignItems:`center`,gap:e.spacing(1.5)})),K(X)({flex:1,minWidth:0,overflow:`hidden`}),K(HT,{shouldForwardProp:e=>e!==`destructive`})(({theme:e,destructive:t})=>({padding:e.spacing(1,2),minHeight:40,gap:e.spacing(1.5),...t&&{color:e.palette.error.main,"&:hover":{backgroundColor:W(e.palette.error.main,.08)}}}));function U0(e,t){if(e===!1||e==null)throw Error(t)}function W0(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function G0({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function K0(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function q0(e,t,n=`/`){return J0(e,t,n,!1)}function J0(e,t,n,r,i){let a=p2((typeof t==`string`?K0(t):t).pathname||`/`,n);if(a==null)return null;let o=i??X0(e),s=null,c=f2(a);for(let e=0;s==null&&e<o.length;++e)s=l2(o[e],c,r);return s}function Y0(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function X0(e){let t=Z0(e);return $0(t),t}function Z0(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;U0(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=S2([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(U0(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),Z0(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:s2(l,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of Q0(e.path))a(e,t,!0,n)}),t}function Q0(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=Q0(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function $0(e){e.sort((e,t)=>e.score===t.score?c2(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var e2=/^:[\w-]+$/,t2=3,n2=2,r2=1,i2=10,a2=-2,o2=e=>e===`*`;function s2(e,t){let n=e.split(`/`),r=n.length;return n.some(o2)&&(r+=a2),t&&(r+=n2),n.filter(e=>!o2(e)).reduce((e,t)=>e+(e2.test(t)?t2:t===``?r2:i2),r)}function c2(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function l2(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u=u2({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l),d=s.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=u2({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!u)return null;Object.assign(i,u.params),o.push({params:i,pathname:S2([a,u.pathname]),pathnameBase:w2(S2([a,u.pathnameBase])),route:d}),u.pathnameBase!==`/`&&(a=S2([a,u.pathnameBase]))}return o}function u2(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=d2(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function d2(e,t=!1,n=!0){W0(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function f2(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return W0(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function p2(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}var m2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function h2(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?K0(e):e,a;return n?(n=x2(n),a=n.startsWith(`/`)?g2(n.substring(1),`/`):g2(n,t)):a=t,{pathname:a,search:T2(r),hash:E2(i)}}function g2(e,t){let n=C2(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function _2(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function v2(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function y2(e){let t=v2(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function b2(e,t,n,r=!1){let i;typeof e==`string`?i=K0(e):(i={...e},U0(!i.pathname||!i.pathname.includes(`?`),_2(`?`,`pathname`,`search`,i)),U0(!i.pathname||!i.pathname.includes(`#`),_2(`#`,`pathname`,`hash`,i)),U0(!i.search||!i.search.includes(`#`),_2(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=h2(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var x2=e=>e.replace(/\/\/+/g,`/`),S2=e=>x2(e.join(`/`)),C2=e=>e.replace(/\/+$/,``),w2=e=>C2(e).replace(/^\/*/,`/`),T2=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,E2=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,D2=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function O2(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function k2(e){return S2(e.map(e=>e.route.path).filter(Boolean))||`/`}var A2=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function j2(e,t){let n=e;if(typeof n!=`string`||!m2.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(A2)try{let e=new URL(window.location.href),r=n.startsWith(`//`)?new URL(e.protocol+n):new URL(n),a=p2(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{W0(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var M2=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(M2);var N2=[`GET`,...M2];new Set(N2);var P2=C.createContext(null);P2.displayName=`DataRouter`;var F2=C.createContext(null);F2.displayName=`DataRouterState`;var I2=C.createContext(!1);function L2(){return C.useContext(I2)}var R2=C.createContext({isTransitioning:!1});R2.displayName=`ViewTransition`;var z2=C.createContext(new Map);z2.displayName=`Fetchers`;var B2=C.createContext(null);B2.displayName=`Await`;var V2=C.createContext(null);V2.displayName=`Navigation`;var H2=C.createContext(null);H2.displayName=`Location`;var U2=C.createContext({outlet:null,matches:[],isDataRoute:!1});U2.displayName=`Route`;var W2=C.createContext(null);W2.displayName=`RouteError`;var G2=`REACT_ROUTER_ERROR`,K2=`REDIRECT`,q2=`ROUTE_ERROR_RESPONSE`;function J2(e){if(e.startsWith(`${G2}:${K2}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function Y2(e){if(e.startsWith(`${G2}:${q2}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new D2(t.status,t.statusText,t.data)}catch{}}function X2(e,{relative:t}={}){U0(Z2(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=C.useContext(V2),{hash:i,pathname:a,search:o}=r4(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:S2([n,a])),r.createHref({pathname:s,search:o,hash:i})}function Z2(){return C.useContext(H2)!=null}function Q2(){return U0(Z2(),`useLocation() may be used only in the context of a <Router> component.`),C.useContext(H2).location}var $2=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function e4(e){C.useContext(V2).static||C.useLayoutEffect(e)}function t4(){let{isDataRoute:e}=C.useContext(U2);return e?x4():n4()}function n4(){U0(Z2(),`useNavigate() may be used only in the context of a <Router> component.`);let e=C.useContext(P2),{basename:t,navigator:n}=C.useContext(V2),{matches:r}=C.useContext(U2),{pathname:i}=Q2(),a=JSON.stringify(y2(r)),o=C.useRef(!1);return e4(()=>{o.current=!0}),C.useCallback((r,s={})=>{if(W0(o.current,$2),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=b2(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:S2([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}C.createContext(null);function r4(e,{relative:t}={}){let{matches:n}=C.useContext(U2),{pathname:r}=Q2(),i=JSON.stringify(y2(n));return C.useMemo(()=>b2(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function i4(e,t,n){U0(Z2(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=C.useContext(V2),{matches:i}=C.useContext(U2),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;C4(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
404
-
405
- Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=Q2(),d;if(t){let e=typeof t==`string`?K0(t):t;U0(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):q0(e,{pathname:p});W0(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),W0(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=d4(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:S2([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:S2([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?C.createElement(H2.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function a4(){let e=b4(),t=O2(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=C.createElement(C.Fragment,null,C.createElement(`p`,null,`💿 Hey developer 👋`),C.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,C.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,C.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),C.createElement(C.Fragment,null,C.createElement(`h2`,null,`Unexpected Application Error!`),C.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?C.createElement(`pre`,{style:i},n):null,o)}var o4=C.createElement(a4,null),s4=class extends C.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,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=Y2(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:C.createElement(U2.Provider,{value:this.props.routeContext},C.createElement(W2.Provider,{value:e,children:this.props.component}));return this.context?C.createElement(l4,{error:e},t):t}};s4.contextType=I2;var c4=new WeakMap;function l4({children:e,error:t}){let{basename:n}=C.useContext(V2);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=J2(t.digest);if(e){let r=c4.get(t);if(r)throw r;let i=j2(e.location,n);if(A2&&!c4.get(t))if(i.isExternal||e.reloadDocument)window.location.href=i.absoluteURL||i.to;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw c4.set(t,n),n}return C.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${i.absoluteURL||i.to}`})}}return e}function u4({routeContext:e,match:t,children:n}){let r=C.useContext(P2);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),C.createElement(U2.Provider,{value:e},n)}function d4(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);U0(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:k2(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||o4,o&&(s<0&&c===0?(C4(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?C.createElement(n.route.Component,null):n.route.element?n.route.element:e,C.createElement(u4,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?C.createElement(s4,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function f4(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function p4(e){let t=C.useContext(P2);return U0(t,f4(e)),t}function m4(e){let t=C.useContext(F2);return U0(t,f4(e)),t}function h4(e){let t=C.useContext(U2);return U0(t,f4(e)),t}function g4(e){let t=h4(e),n=t.matches[t.matches.length-1];return U0(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function _4(){return g4(`useRouteId`)}function v4(){let e=m4(`useNavigation`);return C.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}function y4(){let{matches:e,loaderData:t}=m4(`useMatches`);return C.useMemo(()=>e.map(e=>Y0(e,t)),[e,t])}function b4(){let e=C.useContext(W2),t=m4(`useRouteError`),n=g4(`useRouteError`);return e===void 0?t.errors?.[n]:e}function x4(){let{router:e}=p4(`useNavigate`),t=g4(`useNavigate`),n=C.useRef(!1);return e4(()=>{n.current=!0}),C.useCallback(async(r,i={})=>{W0(n.current,$2),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var S4={};function C4(e,t,n){!t&&!S4[e]&&(S4[e]=!0,W0(!1,n))}C.memo(w4);function w4({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return i4(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function T4({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){U0(!Z2(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=C.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=K0(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=C.useMemo(()=>{let e=p2(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return W0(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:C.createElement(V2.Provider,{value:c},C.createElement(H2.Provider,{children:t,value:h}))}C.Component;var E4=`get`,D4=`application/x-www-form-urlencoded`;function O4(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function k4(e){return O4(e)&&e.tagName.toLowerCase()===`button`}function A4(e){return O4(e)&&e.tagName.toLowerCase()===`form`}function j4(e){return O4(e)&&e.tagName.toLowerCase()===`input`}function M4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function N4(e,t){return e.button===0&&(!t||t===`_self`)&&!M4(e)}var P4=null;function F4(){if(P4===null)try{new FormData(document.createElement(`form`),0),P4=!1}catch{P4=!0}return P4}var I4=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function L4(e){return e!=null&&!I4.has(e)?(W0(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${D4}"`),null):e}function R4(e,t){let n,r,i,a,o;if(A4(e)){let o=e.getAttribute(`action`);r=o?p2(o,t):null,n=e.getAttribute(`method`)||E4,i=L4(e.getAttribute(`enctype`))||D4,a=new FormData(e)}else if(k4(e)||j4(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?p2(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||E4,i=L4(e.getAttribute(`formenctype`))||L4(o.getAttribute(`enctype`))||D4,a=new FormData(o,e),!F4()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(O4(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=E4,r=null,i=D4,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var z4={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},B4=/[&><\u2028\u2029]/g;function V4(e){return e.replace(B4,e=>z4[e])}function H4(e,t){if(e===!1||e==null)throw Error(t)}function U4(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n?i.pathname.endsWith(`/`)?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname===`/`?i.pathname=`_root.${r}`:t&&p2(i.pathname,t)===`/`?i.pathname=`${C2(t)}/_root.${r}`:i.pathname=`${C2(i.pathname)}.${r}`,i}async function W4(e,t){if(e.id in t)return t[e.id];try{let n=await i(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function G4(e){return e!=null&&typeof e.page==`string`}function K4(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function q4(e,t,n){return Q4((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await W4(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(K4).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function J4(e,t,n,r,i,a){let o=(e,t)=>n[t]?e.route.id!==n[t].route.id:!0,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function Y4(e,t,{includeHydrateFallback:n}={}){return X4(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function X4(e){return[...new Set(e)]}function Z4(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Q4(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!G4(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Z4(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function $4(){let e=C.useContext(P2);return H4(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function e3(){let e=C.useContext(F2);return H4(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var t3=C.createContext(void 0);t3.displayName=`FrameworkContext`;function n3(){let e=C.useContext(t3);return H4(e,`You must render this element inside a <HydratedRouter> element`),e}function r3(e,t){let n=C.useContext(t3),[r,i]=C.useState(!1),[a,o]=C.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=C.useRef(null);C.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),C.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:i3(s,p),onBlur:i3(c,m),onMouseEnter:i3(l,p),onMouseLeave:i3(u,m),onTouchStart:i3(d,p)}]:[a,f,{}]:[!1,f,{}]}function i3(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function a3({page:e,...t}){let n=L2(),{router:r}=$4(),i=C.useMemo(()=>q0(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?n?C.createElement(s3,{page:e,matches:i,...t}):C.createElement(c3,{page:e,matches:i,...t}):null}function o3(e){let{manifest:t,routeModules:n}=n3(),[r,i]=C.useState([]);return C.useEffect(()=>{let r=!1;return q4(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function s3({page:e,matches:t,...n}){let r=Q2(),{future:i}=n3(),{basename:a}=$4(),o=C.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=U4(e,a,i.unstable_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.unstable_trailingSlashAwareDataRequests,e,r,t]);return C.createElement(C.Fragment,null,o.map(e=>C.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function c3({page:e,matches:t,...n}){let r=Q2(),{future:i,manifest:a,routeModules:o}=n3(),{basename:s}=$4(),{loaderData:c,matches:l}=e3(),u=C.useMemo(()=>J4(e,t,l,a,r,`data`),[e,t,l,a,r]),d=C.useMemo(()=>J4(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=C.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=U4(e,s,i.unstable_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.unstable_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=C.useMemo(()=>Y4(d,a),[d,a]),m=o3(d);return C.createElement(C.Fragment,null,f.map(e=>C.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>C.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>C.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function l3(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}C.Component;var u3=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{u3&&(window.__reactRouterVersion=`7.15.1`)}catch{}function d3({basename:e,children:t,history:n,useTransitions:r}){let[i,a]=C.useState({action:n.action,location:n.location}),o=C.useCallback(e=>{r===!1?a(e):C.startTransition(()=>a(e))},[r]);return C.useLayoutEffect(()=>n.listen(o),[n,o]),C.createElement(T4,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}d3.displayName=`unstable_HistoryRouter`;var f3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,p3=C.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=C.useContext(V2),v=typeof l==`string`&&f3.test(l),y=j2(l,h);l=y.to;let b=X2(l,{relative:r}),x=Q2(),S=null;if(o){let e=b2(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:S2([h,e.pathname])),S=g.createHref(e)}let[w,T,E]=r3(n,p),D=b3(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function O(t){e&&e(t),t.defaultPrevented||D(t)}let k=!(y.isExternal||i),A=C.createElement(`a`,{...p,...E,href:(k?S:void 0)||y.absoluteURL||b,onClick:k?O:e,ref:l3(m,T),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return w&&!v?C.createElement(C.Fragment,null,A,C.createElement(a3,{page:b})):A});p3.displayName=`Link`;var m3=C.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=r4(a,{relative:c.relative}),d=Q2(),f=C.useContext(F2),{navigator:p,basename:m}=C.useContext(V2),h=f!=null&&Hae(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=p2(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),S={isActive:b,isPending:x,isTransitioning:h},w=b?e:void 0,T;T=typeof n==`function`?n(S):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(S):i;return C.createElement(p3,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(S):s)});m3.displayName=`NavLink`;var h3=C.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=E4,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=C.useContext(V2),g=Rae(),_=zae(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&f3.test(s);return C.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?C.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});h3.displayName=`Form`;function g3({getKey:e,storageKey:t,...n}){let r=C.useContext(t3),{basename:i}=C.useContext(V2),a=Q2(),o=y4();Bae({getKey:e,storageKey:t});let s=C.useMemo(()=>{if(!r||!e)return null;let t=C3(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return C.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${V4(JSON.stringify(t||x3))}, ${V4(JSON.stringify(s))})`}})}g3.displayName=`ScrollRestoration`;function _3(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function v3(e){let t=C.useContext(P2);return U0(t,_3(e)),t}function y3(e){let t=C.useContext(F2);return U0(t,_3(e)),t}function b3(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=t4(),d=Q2(),f=r4(e,{relative:o});return C.useCallback(p=>{if(N4(p,t)){p.preventDefault();let t=n===void 0?G0(d)===G0(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?C.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}var Iae=0,Lae=()=>`__${String(++Iae)}__`;function Rae(){let{router:e}=v3(`useSubmit`),{basename:t}=C.useContext(V2),n=_4(),r=e.fetch,i=e.navigate;return C.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=R4(e,t);a.navigate===!1?await r(a.fetcherKey||Lae(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function zae(e,{relative:t}={}){let{basename:n}=C.useContext(V2),r=C.useContext(U2);U0(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...r4(e||`.`,{relative:t})},o=Q2();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:S2([n,a.pathname])),G0(a)}var x3=`react-router-scroll-positions`,S3={};function C3(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:p2(e.pathname,n)||e.pathname},t)),i??=e.key,i}function Bae({getKey:e,storageKey:t}={}){let{router:n}=v3(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=y3(`useScrollRestoration`),{basename:a}=C.useContext(V2),o=Q2(),s=y4(),c=v4();C.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),Vae(C.useCallback(()=>{if(c.state===`idle`){let t=C3(o,s,a,e);S3[t]=window.scrollY}try{sessionStorage.setItem(t||x3,JSON.stringify(S3))}catch(e){W0(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(C.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||x3);e&&(S3=JSON.parse(e))}catch{}},[t]),C.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(S3,()=>window.scrollY,e?(t,n)=>C3(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),C.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{W0(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function Vae(e,t){let{capture:n}=t||{};C.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function Hae(e,{relative:t}={}){let n=C.useContext(R2);U0(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=v3(`useViewTransitionState`),i=r4(e,{relative:t});if(!n.isTransitioning)return!1;let a=p2(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=p2(n.nextLocation.pathname,r)||n.nextLocation.pathname;return u2(i.pathname,o)!=null||u2(i.pathname,a)!=null}var Uae=K(X,{shouldForwardProp:e=>![`variant`,`collapsed`].includes(e)})(({theme:e,variant:t,collapsed:n})=>{let r=k0.full;return n?r=t===`stacked`?k0.stackedCollapsed:k0.mini:t===`mini`?r=k0.mini:t===`stacked`&&(r=k0.stackedExpanded),{position:`fixed`,top:0,left:0,height:`100%`,width:r,flexShrink:0,display:`flex`,flexDirection:`column`,zIndex:e.zIndex.drawer,backgroundColor:`var(${j0.navBg}, ${e.palette.background.paper})`,borderRight:`1px solid ${e.palette.divider}`,transition:e.transitions.create(`width`,{duration:e.transitions.duration.shorter})}}),Wae=K(X)({display:`flex`,flexDirection:`column`,flex:1,overflow:`hidden`}),Gae=K(X)({flex:1,overflow:`auto`,"&::-webkit-scrollbar":{width:6},"&::-webkit-scrollbar-thumb":{backgroundColor:`rgba(0, 0, 0, 0.2)`,borderRadius:3}}),Kae=K(oh)(({theme:e})=>({position:`absolute`,top:A0.desktop/2,transform:`translateY(-50%)`,right:-12,width:24,height:24,backgroundColor:e.palette.background.paper,border:`1px solid ${e.palette.divider}`,boxShadow:e.shadows[1],"&:hover":{backgroundColor:e.palette.action.hover},"& svg":{width:16,height:16}}));function qae({logo:e,navData:t,renderNavItem:n,footer:r,showCollapseButton:i=!0,layoutQuery:a=`md`,"aria-label":o=fO.mainNav,sx:s}){let{config:c,toggleSidenavCollapse:l}=F0(),{sidenavVariant:u,sidenavCollapsed:d}=c,f=!d&&u!==`mini`;return(0,B.jsxs)(Uae,{role:`navigation`,"aria-label":o,variant:u,collapsed:d,sx:[e=>({display:{xs:`none`,[a]:`flex`}}),...Array.isArray(s)?s:[s]],children:[(0,B.jsx)(X,{sx:{display:`flex`,alignItems:`center`,justifyContent:f?`flex-start`:`center`,height:{xs:A0.mobile,md:A0.desktop},px:f?3:1,flexShrink:0},children:e}),(0,B.jsx)(XC,{}),(0,B.jsxs)(Wae,{children:[(0,B.jsx)(Gae,{children:t?.map((e,t)=>(0,B.jsx)(Jw,{subheader:f&&e.subheader?(0,B.jsx)(wy,{disableSticky:!0,sx:{px:2.5,py:1.5,typography:`overline`,color:`text.secondary`,bgcolor:`transparent`},children:e.subheader}):!f&&t>0?(0,B.jsx)(XC,{sx:{my:1,mx:1.5}}):null,sx:{px:f?1:.5},children:e.items.map(e=>n?n(e,0):(0,B.jsx)(w3,{item:e,showText:f,depth:0},e.id))},e.id))}),r&&(0,B.jsx)(X,{sx:{flexShrink:0,p:2},children:r})]}),i&&u!==`mini`&&(0,B.jsx)(Kae,{onClick:l,size:`small`,"aria-label":d?`Expand sidebar`:`Collapse sidebar`,"aria-expanded":!d,children:(0,B.jsx)(Xae,{direction:d?`right`:`left`})})]})}function Jae({logo:e,navData:t,renderNavItem:n,footer:r,layoutQuery:i=`md`,"aria-label":a=fO.mainNav,sx:o}){let{config:s,toggleDrawer:c}=F0(),{drawerOpen:l}=s;return(0,B.jsxs)(fw,{open:l,onClose:c,"aria-label":a,sx:[e=>({display:{xs:`block`,[i]:`none`},"& .MuiDrawer-paper":{width:k0.mobile,backgroundColor:`var(${j0.navBg}, ${e.palette.background.paper})`}}),...Array.isArray(o)?o:[o]],children:[(0,B.jsx)(X,{sx:{display:`flex`,alignItems:`center`,height:{xs:A0.mobile,md:A0.desktop},px:2.5},children:e}),(0,B.jsx)(XC,{}),(0,B.jsx)(X,{component:`nav`,role:`navigation`,sx:{flex:1,overflow:`auto`},children:t?.map(e=>(0,B.jsx)(Jw,{subheader:e.subheader?(0,B.jsx)(wy,{disableSticky:!0,sx:{px:2.5,py:1.5,typography:`overline`,color:`text.secondary`,bgcolor:`transparent`},children:e.subheader}):null,sx:{px:1},children:e.items.map(e=>n?n(e,0):(0,B.jsx)(w3,{item:e,showText:!0,depth:0},e.id))},e.id))}),r&&(0,B.jsx)(X,{sx:{p:2},children:r})]})}function Yae({item:e,showText:t,depth:n,active:r}){let i=(0,B.jsxs)(eT,{component:e.path?p3:`div`,...e.path?{to:e.path}:{},disabled:e.disabled,selected:r,sx:e=>({minHeight:44,borderRadius:1,pl:t?n*2+2:void 0,...!t&&{justifyContent:`center`,px:1,mx:.5},...r&&{color:`primary.main`,bgcolor:W(e.palette.primary.main,.08),"&:hover":{bgcolor:W(e.palette.primary.main,.16)}}}),children:[e.icon&&(0,B.jsx)(aT,{sx:{minWidth:t?36:`unset`,color:r?`primary.main`:`text.secondary`,...!t&&{mr:0,justifyContent:`center`}},children:(0,B.jsx)(X,{component:`span`,sx:{display:`flex`,alignItems:`center`,justifyContent:`center`,width:24,height:24},children:e.icon})}),t&&(0,B.jsx)(uT,{primary:e.title,slotProps:{primary:{variant:`body2`,noWrap:!0,sx:{fontWeight:r?600:500}}}}),t&&e.info]});return t?i:(0,B.jsx)(sE,{title:e.title,placement:`right`,arrow:!0,children:i},e.id)}function w3({item:e,showText:t,depth:n}){let{pathname:r}=Q2(),{isItemActive:i}=L0(r);return(0,B.jsx)(Yae,{item:e,showText:t,depth:n,active:i(e)},e.id)}function Xae({direction:e}){return(0,B.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,focusable:`false`,style:{transform:e===`right`?`rotate(180deg)`:void 0},children:(0,B.jsx)(`polyline`,{points:`15 18 9 12 15 6`})})}var Zae=K(`nav`)(({theme:e})=>({display:`flex`,alignItems:`center`,width:`100%`,minHeight:48,borderBottom:`1px solid ${e.palette.divider}`,backgroundColor:`var(${j0.navBg}, ${e.palette.background.paper})`,paddingLeft:e.spacing(2),paddingRight:e.spacing(2),gap:e.spacing(.5),overflowX:`auto`,scrollbarWidth:`none`,"&::-webkit-scrollbar":{display:`none`}}));function Qae({navData:e,renderNavItem:t,layoutQuery:n=`lg`,"aria-label":r=fO.mainNav,sx:i}){return(0,B.jsx)(Zae,{"aria-label":r,sx:i,children:e?.map(e=>e.items.map(e=>t?t(e,0):(0,B.jsx)($ae,{item:e},e.id)))})}function $ae({item:e}){let{pathname:t}=Q2(),{isItemActive:n}=L0(t),r=n(e);return(0,B.jsxs)(X,{component:e.path?p3:`div`,...e.path?{to:e.path}:{},role:`menuitem`,tabIndex:0,"aria-disabled":e.disabled||void 0,"aria-current":r?`page`:void 0,sx:t=>({display:`flex`,alignItems:`center`,gap:1,px:1.5,py:.75,borderRadius:1,whiteSpace:`nowrap`,textDecoration:`none`,color:r?`primary.main`:`text.primary`,typography:`body2`,fontWeight:r?600:500,cursor:e.disabled?`default`:`pointer`,opacity:e.disabled?.5:1,...r&&{bgcolor:W(t.palette.primary.main,.08)},"&:hover":{bgcolor:e.disabled?void 0:r?W(t.palette.primary.main,.16):`action.hover`},"&:focus-visible":{outline:`2px solid ${t.palette.primary.main}`,outlineOffset:-2}}),children:[e.icon&&(0,B.jsx)(X,{component:`span`,"aria-hidden":`true`,sx:{display:`flex`,color:r?`primary.main`:`text.secondary`},children:e.icon}),(0,B.jsx)(`span`,{children:e.title}),e.info]})}function eoe(){return(0,B.jsx)(Ep,{children:(0,B.jsx)(`path`,{d:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`})})}var toe=K(X,{shouldForwardProp:e=>![`hasSidebar`,`sidebarWidth`,`layoutQuery`].includes(e)})(({theme:e,hasSidebar:t,sidebarWidth:n,layoutQuery:r})=>({display:`flex`,flexDirection:`column`,flex:`1 1 auto`,minHeight:`100vh`,...t&&{[e.breakpoints.up(r)]:{marginLeft:n}},transition:e.transitions.create(`margin-left`,{duration:e.transitions.duration.shorter})}));function noe({children:e,layoutQuery:t,navData:n,headerSlots:r,logo:i,footer:a,sidenavFooter:o,slotProps:s}){let c=I0(),{toggleDrawer:l}=F0(),{navigationMenuType:u,sidenavCollapsed:d,sidenavVariant:f,drawerWidth:p}=c,m=u===`sidenav`||u===`combo`,h=u===`topnav`||u===`combo`,g=m?p:0,_=(0,C.useMemo)(()=>{if(!m)return r;let e=(0,B.jsx)(oh,{onClick:l,"aria-label":`Open menu`,sx:{display:{xs:`inline-flex`,[t]:`none`},bgcolor:`transparent`,transition:`transform 0.2s ease`,"&:hover":{bgcolor:`transparent`,transform:`scale(1.1)`}},children:(0,B.jsx)(eoe,{})});return{...r,leftArea:(0,B.jsxs)(B.Fragment,{children:[e,r?.leftArea]})}},[m,r,l,t]);return(0,B.jsxs)(toe,{hasSidebar:m,sidebarWidth:g,layoutQuery:t,children:[(0,B.jsx)(mre,{href:`#main-content`,children:`Skip to main content`}),(0,B.jsx)(H0,{slots:_,"aria-label":fO.header,sx:{...s?.header?.sx},...s?.header}),h&&(0,B.jsx)(Qae,{navData:n,layoutQuery:t,"aria-label":m?`Secondary navigation`:fO.mainNav}),m&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(qae,{logo:i,navData:n,footer:o,layoutQuery:t,"aria-label":fO.mainNav}),(0,B.jsx)(Jae,{logo:i,navData:n,footer:o,layoutQuery:t,"aria-label":fO.mainNav})]}),(0,B.jsx)(X,{component:`main`,id:`main-content`,role:`main`,"aria-label":fO.main,tabIndex:-1,sx:{display:`flex`,flexDirection:`column`,flex:`1 1 auto`,"&:focus":{outline:`none`},...!s?.main?.disablePadding&&{py:{xs:2,sm:3,md:4},px:{xs:2,sm:3,md:4}},...s?.main?.sx},children:s?.main?.maxWidth?(0,B.jsx)(oC,{maxWidth:s.main.maxWidth,sx:{flex:1,display:`flex`,flexDirection:`column`},children:e}):e}),a]})}function roe({children:e,layoutQuery:t=`lg`,navData:n,headerSlots:r,logo:i,footer:a,sidenavFooter:o,initialConfig:s,persistKey:c,slotProps:l}){return(0,B.jsx)(P0,{initialConfig:s,persistKey:c,children:(0,B.jsx)(noe,{layoutQuery:t,navData:n,headerSlots:r,logo:i,footer:a,sidenavFooter:o,slotProps:l,children:e})})}var ioe=K(X)(({theme:e})=>({display:`flex`,flexDirection:`column`,minHeight:`100vh`,background:e.palette.mode===`dark`?`linear-gradient(135deg, ${W(e.palette.primary.dark,.1)} 0%, ${e.palette.background.default} 100%)`:`linear-gradient(135deg, ${W(e.palette.primary.light,.1)} 0%, ${e.palette.background.default} 100%)`})),aoe=K(X)({display:`flex`,flex:`1 1 auto`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,padding:24}),ooe=K(BS)(({theme:e})=>({width:`100%`,maxWidth:420,padding:e.spacing(5,3),position:`relative`,zIndex:2}));function soe({children:e,logo:t,maxWidth:n=420,sx:r}){return(0,B.jsxs)(ioe,{sx:r,children:[t&&(0,B.jsx)(X,{sx:{position:{xs:`static`,md:`fixed`},top:0,left:0,p:3,zIndex:3},children:t}),(0,B.jsx)(aoe,{children:(0,B.jsx)(ooe,{sx:{maxWidth:n},children:e})})]})}K(X)({display:`flex`,flexDirection:`column`,minHeight:`100vh`}),K(X)(({theme:e})=>({display:`flex`,flex:`1 1 auto`,[e.breakpoints.up(`md`)]:{flexDirection:`row`}})),K(X)(({theme:e})=>({display:`none`,[e.breakpoints.up(`md`)]:{display:`flex`,flexDirection:`column`,width:`50%`,position:`relative`,background:`linear-gradient(135deg, ${e.palette.primary.main} 0%, ${e.palette.primary.dark} 100%)`,color:e.palette.primary.contrastText,padding:e.spacing(8),justifyContent:`center`,alignItems:`center`}})),K(X)({maxWidth:480,textAlign:`center`,position:`relative`,zIndex:1}),K(X)(({theme:e})=>({display:`flex`,flexDirection:`column`,flex:1,[e.breakpoints.up(`md`)]:{width:`50%`}})),K(X)(({theme:e})=>({display:`flex`,flexDirection:`column`,justifyContent:`center`,flex:1,padding:e.spacing(3),[e.breakpoints.up(`sm`)]:{padding:e.spacing(5)},[e.breakpoints.up(`md`)]:{padding:e.spacing(8),maxWidth:480,marginLeft:`auto`,marginRight:`auto`}})),K(X)({display:`flex`,flexDirection:`column`,minHeight:`100vh`}),K(X)({display:`flex`,flexDirection:`column`,flex:`1 1 auto`}),K(X)(({theme:e})=>({flex:`1 1 auto`,display:`flex`,flexDirection:`column`,justifyContent:`center`,padding:e.spacing(3,2,10,2),[e.breakpoints.up(`sm`)]:{padding:e.spacing(10,0),maxWidth:448,margin:`0 auto`,width:`100%`}}));var T3={mode:`light`,direction:`ltr`,preset:`default`,compactLayout:!1,contrast:`default`,primaryColor:null};sO(oO(e=>({...T3,setMode:t=>e({mode:t}),toggleMode:()=>e(e=>{e.mode=e.mode===`light`?`dark`:`light`}),setDirection:t=>e({direction:t}),setPreset:t=>e({preset:t}),setCompactLayout:t=>e({compactLayout:t}),setContrast:t=>e({contrast:t}),setPrimaryColor:t=>e({primaryColor:t}),reset:()=>e(T3)}),`theme`));var E3=aO(e=>({token:null,setToken:t=>e({token:t})}),`token`);sO(oO(e=>({status:`loading`,sessionId:null,setStatus:t=>e({status:t}),setAuthenticated:t=>{e({status:`authenticated`,sessionId:t??null})},setUnauthenticated:()=>{E3.getState().setToken(null),e({status:`unauthenticated`,sessionId:null})},clearSession:()=>{E3.getState().setToken(null),typeof window<`u`&&window.sessionStorage.removeItem(`sessionId`),e({status:`unauthenticated`,sessionId:null})}}),`auth`,{partialize:e=>({status:e.status,sessionId:e.sessionId})})),sO(aO(e=>({sidebarOpen:!0,sidebarCollapsed:!1,activeDialog:null,globalLoading:!1,searchOpen:!1,toggleSidebar:()=>e(e=>{e.sidebarOpen=!e.sidebarOpen}),setSidebarOpen:t=>e({sidebarOpen:t}),setSidebarCollapsed:t=>e({sidebarCollapsed:t}),openDialog:t=>e({activeDialog:t}),closeDialog:()=>e({activeDialog:null}),setGlobalLoading:t=>e({globalLoading:t}),toggleSearch:()=>e(e=>{e.searchOpen=!e.searchOpen}),setSearchOpen:t=>e({searchOpen:t})}),`ui`)),[`a[href]`,`button:not([disabled])`,`input:not([disabled]):not([type="hidden"])`,`select:not([disabled])`,`textarea:not([disabled])`,`[tabindex]:not([tabindex="-1"])`,`[contenteditable="true"]`].join(`,`);var D3=(0,C.createContext)(null);D3.displayName=`MultiBackendContext`;var O3=(0,C.createContext)(null);O3.displayName=`MultiBackendConnectionContext`;function coe({client:e,children:t,autoConnect:n=!0,connectTimeout:r=3e4,onConnect:i,onDisconnect:a,onError:o}){let s=(0,C.useRef)(!0),c=(0,C.useMemo)(()=>`getBackendNames`in e&&typeof e.getBackendNames==`function`?e.getBackendNames():[],[e]),[l,u]=(0,C.useState)(()=>{let t=new Map;for(let n of c)t.set(n,{name:n,isConnected:e.isConnected(n),isConnecting:!1,error:null});return t}),[d,f]=(0,C.useState)(null),p=(0,C.useCallback)((e,t)=>{s.current&&u(n=>{let r=new Map(n),i=r.get(e)||{name:e,isConnected:!1,isConnecting:!1,error:null};return r.set(e,{...i,...t}),r})},[]),m=(0,C.useCallback)(async t=>{p(t,{isConnecting:!0,error:null});try{let n=new Promise((e,n)=>{setTimeout(()=>{n(Error(`Connection timeout for backend '${t}' after ${r}ms`))},r)});await Promise.race([e.connect(t),n]),s.current&&(p(t,{isConnected:!0,isConnecting:!1}),i?.(t))}catch(e){if(s.current){let n=e;p(t,{isConnected:!1,isConnecting:!1,error:n}),o?.(t,n)}throw e}},[e,r,p,i,o]),h=(0,C.useCallback)(async t=>{try{await e.disconnect(t),s.current&&(p(t,{isConnected:!1,isConnecting:!1}),a?.(t))}catch(e){if(s.current){let n=e;p(t,{error:n}),o?.(t,n)}throw e}},[e,p,a,o]),g=(0,C.useCallback)(async e=>{if(e)await m(e);else{let e=c.map(e=>m(e).catch(t=>{console.error(`Failed to connect to backend '${e}':`,t)}));await Promise.all(e)}},[c,m]),_=(0,C.useCallback)(async e=>{if(e)await h(e);else{let e=c.map(e=>h(e).catch(t=>{console.error(`Failed to disconnect from backend '${e}':`,t)}));await Promise.all(e)}},[c,h]),v=(0,C.useCallback)(t=>t?l.get(t)?.isConnected??e.isConnected(t):e.isConnected(),[e,l]),y=(0,C.useCallback)(t=>e.backend(t),[e]);(0,C.useEffect)(()=>{n&&c.some(t=>!e.isConnected(t))&&g().catch(e=>{s.current&&f(e)})},[n,c,e,g]),(0,C.useEffect)(()=>()=>{s.current=!1},[]);let b=(0,C.useMemo)(()=>({backends:l,allConnected:c.length>0&&c.every(e=>l.get(e)?.isConnected??!1),anyConnected:c.some(e=>l.get(e)?.isConnected??!1),anyConnecting:c.some(e=>l.get(e)?.isConnecting??!1),globalError:d}),[c,l,d]),x=(0,C.useMemo)(()=>({client:e,getBackend:y,backendNames:c,isConnected:v,connect:g,disconnect:_}),[e,y,c,v,g,_]);return(0,B.jsx)(D3.Provider,{value:x,children:(0,B.jsx)(O3.Provider,{value:b,children:t})})}var k3=`omnitron_token`,loe=30*1e3,uoe=5*1e3,doe=300*1e3,A3=3,foe=2e3,poe=new Set([`SESSION_EXPIRED`,`SESSION_REVOKED`]),j3=class{refreshTimer=null;expiresAt=null;lastRefreshAt=0;inflightRefresh=null;running=!1;handler=null;boundVisibilityHandler=null;start(e,t){this.stop(),this.running=!0,this.handler=t,this.expiresAt=new Date(e),this.scheduleRefresh(),this.setupVisibilityListener()}stop(){this.running=!1,this.handler=null,this.cancelTimer(),this.removeVisibilityListener(),this.expiresAt=null,this.inflightRefresh=null}get isActive(){return this.running}async refresh(){if(!this.getSessionId())return!1;if(this.inflightRefresh)return this.inflightRefresh;if(Date.now()-this.lastRefreshAt<uoe)return!0;this.inflightRefresh=this.performRefreshWithRetry();try{return await this.inflightRefresh}finally{this.inflightRefresh=null}}async performRefreshWithRetry(){for(let e=0;e<=A3;e++)try{return await this.performRefresh()}catch(t){let n=String(t?.code??``);if(poe.has(n)){let e=this.handler;return this.stop(),e?.(`expired`),!1}if(e<A3){let t=foe*2**e;await new Promise(e=>setTimeout(e,t))}else return!1}return!1}async performRefresh(){let e=this.getSessionId();if(!e)return!1;let t=await d(`refreshSession`,e);if(!t?.success||!t?.result)return!1;let{accessToken:n,session:r}=t.result;return n&&(sessionStorage.setItem(k3,n),o(n)),r?.expiresAt&&(this.expiresAt=new Date(r.expiresAt)),this.lastRefreshAt=Date.now(),this.running&&this.scheduleRefresh(),this.handler?.(`refreshed`),!0}scheduleRefresh(){if(this.cancelTimer(),!this.running||!this.expiresAt)return;let e=Date.now(),t=this.expiresAt.getTime(),n=this.getJwtExpiryMs();n&&n<t&&(t=n);let r=t-e-loe;r<=0&&(r=0),r=Math.min(r,doe),this.refreshTimer=setTimeout(()=>{this.running&&this.refresh()},r)}getJwtExpiryMs(){try{let e=sessionStorage.getItem(k3);if(!e)return null;let t=e.split(`.`);if(t.length!==3)return null;let n=JSON.parse(atob(t[1].replace(/-/g,`+`).replace(/_/g,`/`)));return typeof n.exp==`number`?n.exp*1e3:null}catch{return null}}getSessionId(){try{let e=sessionStorage.getItem(k3);if(!e)return null;let t=e.split(`.`);return t.length===3?JSON.parse(atob(t[1].replace(/-/g,`+`).replace(/_/g,`/`))).sid??null:null}catch{return null}}cancelTimer(){this.refreshTimer!==null&&(clearTimeout(this.refreshTimer),this.refreshTimer=null)}setupVisibilityListener(){this.removeVisibilityListener(),this.boundVisibilityHandler=()=>{this.running&&document.visibilityState===`visible`&&this.refresh()},document.addEventListener(`visibilitychange`,this.boundVisibilityHandler)}removeVisibilityListener(){this.boundVisibilityHandler&&=(document.removeEventListener(`visibilitychange`,this.boundVisibilityHandler),null)}},M3=`__omnitronSessionManager`;function moe(){let e=window[M3];if(e)return e;let t=new j3;return window[M3]=t,t}var N3=typeof window<`u`?moe():new j3;function hoe(e){let t=goe(e);return/502|503|bad gateway|service unavailable/i.test(t)?`Service unavailable — the daemon is not running. Start it with omnitron dev.`:/failed to fetch|networkerror|network request failed|econnrefused|econnreset|etimedout|load failed/i.test(t)?`Cannot reach the server. Check that the daemon is running and your network is connected.`:/401|unauthorized|invalid.*credential|invalid.*password|incorrect.*password/i.test(t)?`Invalid username or password.`:/429|too many|rate limit/i.test(t)?`Too many sign-in attempts. Please wait a moment and try again.`:/500|internal server error/i.test(t)?`The server encountered an error. Please try again.`:/timeout|timed out/i.test(t)?`The request timed out. The daemon may be overloaded.`:t.replace(/^HTTP \d{3}:\s*/i,``).trim()||`An unexpected error occurred.`}function P3(e,t=`/`){if(!e)return t;try{let n=decodeURIComponent(e);return n.startsWith(`/`)&&n.replace(/^\/\/+/,`/`)||t}catch{return t}}function goe(e){if(!e)return``;if(typeof e==`string`)return e;if(typeof e==`object`){let t=e;return String(t.message??t.msg??t.error??``)}return String(e)}function F3(e){if(e===`expired`&&(c(),I3.setState({user:null,sessionId:null}),typeof window<`u`)){let e=window.location.pathname+window.location.search,t=encodeURIComponent(P3(e));window.location.href=`/auth/sign-in?returnTo=${t}`}}var I3=OE((e,t)=>({user:null,sessionId:null,initialized:!1,loading:!1,initialize:async()=>{if(t().initialized)return;let n=m();if(!n){e({initialized:!0});return}try{let t=await d(`validateSession`,{sessionId:n});if(t.valid&&t.user){let r=t.session?.expiresAt??new Date(Date.now()+3600*1e3).toISOString();e({user:{id:t.user.id,username:t.user.username,displayName:t.user.displayName??t.user.username,role:t.user.role??`admin`},sessionId:n,initialized:!0}),N3.start(r,F3);return}}catch{try{if(await N3.refresh()){let t=await d(`validateSession`,{sessionId:m()});if(t.valid&&t.user){e({user:{id:t.user.id,username:t.user.username,displayName:t.user.displayName??t.user.username,role:t.user.role??`admin`},sessionId:m(),initialized:!0});return}}}catch{}}c(),e({initialized:!0})},signIn:async(t,n)=>{e({loading:!0});try{let r=await d(`signIn`,{username:t,password:n});if(!r||typeof r!=`object`||Array.isArray(r)||!r.user)throw Error(`Invalid credentials`);r.accessToken&&o(r.accessToken);let i=r.session?.id??m(),a=r.session?.expiresAt??new Date(Date.now()+3600*1e3).toISOString();e({user:{id:r.user.id,username:r.user.username,displayName:r.user.displayName??r.user.username,role:r.user.role??`admin`},sessionId:i,loading:!1}),N3.start(a,F3)}catch(t){throw e({loading:!1}),t}},signOut:async()=>{N3.stop();let{sessionId:n}=t();try{n&&await d(`signOut`,{sessionId:n})}finally{c(),e({user:null,sessionId:null})}},setUser:t=>e({user:t})}));function _oe({children:e}){let{user:t,initialized:n,initialize:r}=I3(),i=nt();return(0,C.useEffect)(()=>{r()},[r]),n?t?(0,B.jsx)(B.Fragment,{children:e}):(0,B.jsx)(Nt,{to:`/auth/sign-in?returnTo=${encodeURIComponent(i.pathname+i.search)}`,replace:!0}):(0,B.jsx)(DL,{})}function voe({children:e}){let{user:t,initialized:n,initialize:r}=I3(),i=nt();return(0,C.useEffect)(()=>{r()},[r]),n?t?(0,B.jsx)(Nt,{to:P3(new URLSearchParams(i.search).get(`returnTo`)),replace:!0}):(0,B.jsx)(B.Fragment,{children:e}):(0,B.jsx)(DL,{})}var L3=e=>Symbol.iterator in e,R3=e=>`entries`in e,z3=(e,t)=>{let n=e instanceof Map?e:new Map(e.entries()),r=t instanceof Map?t:new Map(t.entries());if(n.size!==r.size)return!1;for(let[e,t]of n)if(!r.has(e)||!Object.is(t,r.get(e)))return!1;return!0},yoe=(e,t)=>{let n=e[Symbol.iterator](),r=t[Symbol.iterator](),i=n.next(),a=r.next();for(;!i.done&&!a.done;){if(!Object.is(i.value,a.value))return!1;i=n.next(),a=r.next()}return!!i.done&&!!a.done};function boe(e,t){return Object.is(e,t)?!0:typeof e!=`object`||!e||typeof t!=`object`||!t||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?!1:L3(e)&&L3(t)?R3(e)&&R3(t)?z3(e,t):yoe(e,t):z3({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}function xoe(e){let t=C.useRef(void 0);return n=>{let r=e(n);return boe(t.current,r)?t.current:t.current=r}}var B3=`omnitron_active_project`,V3=`omnitron_active_stack`,H3=`omnitron_workspace_routes`,U3=`__omnitron__`;function W3(e,t){e?localStorage.setItem(B3,e):localStorage.removeItem(B3),t?localStorage.setItem(V3,t):localStorage.removeItem(V3)}function Soe(){let e={};try{let t=localStorage.getItem(H3);t&&(e=JSON.parse(t))}catch{}return{project:localStorage.getItem(B3),stack:localStorage.getItem(V3),routes:e}}function G3(e){localStorage.setItem(H3,JSON.stringify(e))}var K3=OE((e,t)=>{let n=Soe();return{projects:[],stacksByProject:{},stackRuntimes:{},pendingOps:{},activeProject:n.project,activeStack:n.stack,workspaceRoutes:n.routes,loading:!1,error:null,fetchProjects:async()=>{try{e({loading:!0,error:null});let n=await s.listProjects();e({projects:n,loading:!1});let r=t().activeProject;if(r)n.some(e=>e.name===r)?t().fetchStacks(r):(e({activeProject:null,activeStack:null}),W3(null,null));else if(n.length===1){let r=n[0].name;e({activeProject:r}),W3(r,null),t().fetchStacks(r)}}catch(t){e({error:t.message,loading:!1})}},fetchStacks:async n=>{try{let r=await s.listStacks({project:n});if(e(e=>({stacksByProject:{...e.stacksByProject,[n]:r}})),r.length===1&&!t().activeStack){let t=r[0].name;e({activeStack:t}),W3(n,t)}}catch(t){e({error:t.message})}},fetchStackStatus:async(t,n)=>{try{let r=await s.getStackStatus({project:t,stack:n});return e(e=>({stackRuntimes:{...e.stackRuntimes,[`${t}/${n}`]:r}})),r}catch(t){return e({error:t.message}),null}},selectProject:(n,r)=>{let i=t(),a={...i.workspaceRoutes};if(r){let e=i.activeProject??U3;a[e]=r}let o=a[n]??`/`;return e({activeProject:n,activeStack:null,workspaceRoutes:a}),W3(n,null),G3(a),t().fetchStacks(n),o},deselectProject:n=>{let r=t(),i={...r.workspaceRoutes};n&&r.activeProject&&(i[r.activeProject]=n);let a=i[U3]??`/`;return e({activeProject:null,activeStack:null,workspaceRoutes:i}),W3(null,null),G3(i),a},saveCurrentRoute:n=>{let r=t(),i=r.activeProject??U3,a={...r.workspaceRoutes,[i]:n};e({workspaceRoutes:a}),G3(a)},selectStack:n=>{e({activeStack:n}),W3(t().activeProject,n)},addProject:async(n,r)=>{try{e({loading:!0,error:null}),await s.addProject({name:n,path:r}),await t().fetchProjects()}catch(t){throw e({error:t.message,loading:!1}),t}},updateProject:async(n,r)=>{try{e({loading:!0,error:null});let i=await s.updateProject({name:n,...r});i.name!==n&&t().activeProject===n&&(e({activeProject:i.name,activeStack:null}),W3(i.name,null)),await t().fetchProjects()}catch(t){throw e({error:t.message,loading:!1}),t}},removeProject:async n=>{try{e({loading:!0,error:null}),await s.removeProject({name:n}),t().activeProject===n&&(e({activeProject:null,activeStack:null}),W3(null,null)),await t().fetchProjects()}catch(t){throw e({error:t.message,loading:!1}),t}},startStack:async(n,r)=>{let i=`${n}/${r}`;if(!t().pendingOps[i]){e(e=>({error:null,pendingOps:{...e.pendingOps,[i]:`starting`},stacksByProject:J3(e.stacksByProject,n,r,`starting`)}));try{await s.startStack({project:n,stack:r})}catch(t){let n=t.message;q3(n)||e({error:n})}finally{e(e=>{let t={...e.pendingOps};return delete t[i],{pendingOps:t}}),await t().fetchStacks(n)}}},stopStack:async(n,r)=>{let i=`${n}/${r}`;if(!t().pendingOps[i]){e(e=>({error:null,pendingOps:{...e.pendingOps,[i]:`stopping`},stacksByProject:J3(e.stacksByProject,n,r,`stopping`)}));try{await s.stopStack({project:n,stack:r})}catch(t){let n=t.message;q3(n)||e({error:n})}finally{e(e=>{let t={...e.pendingOps};return delete t[i],{pendingOps:t}}),await t().fetchStacks(n)}}},createStack:async(n,r)=>{try{e({error:null});let i=await s.createStack({project:n,...r});return await t().fetchStacks(n),i}catch(t){throw e({error:t.message}),t}},deleteStack:async(n,r)=>{try{e({error:null}),await s.deleteStack({project:n,stack:r}),await t().fetchStacks(n)}catch(t){throw e({error:t.message}),t}},getStackPendingOp:(e,n)=>t().pendingOps[`${e}/${n}`]??null,clearError:()=>e({error:null})}});function q3(e){return/timeout|timed?\s*out|ETIMEDOUT|ECONNABORTED/i.test(e)}function J3(e,t,n,r){let i=e[t];return i?{...e,[t]:i.map(e=>e.name===n?{...e,status:r}:e)}:e}var Y3=()=>K3(e=>e.activeProject);function X3(){return K3(xoe(e=>(e.activeProject?e.stacksByProject[e.activeProject]:void 0)??Coe))}var Coe=[];function woe({children:e}){return Y3()?(0,B.jsx)(B.Fragment,{children:e}):(0,B.jsx)(Nt,{to:`/`,replace:!0})}function Z3(e,...t){let n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append(`args[]`,e)),`Minified MUI error #${e}; visit ${n} for the full message.`}function Toe(e){return e==null||Object.keys(e).length===0}function Eoe(e){let{styles:t,defaultTheme:n={}}=e;return(0,B.jsx)(Xi,{styles:typeof t==`function`?e=>t(Toe(e)?n:e):t})}function Q3(e,t){return la(e,t)}function Doe(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var $3=[];function e6(e){return $3[0]=e,Fi($3)}function t6(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function n6(e){if(C.isValidElement(e)||(0,Sa.isValidElementType)(e)||!t6(e))return e;let t={};return Object.keys(e).forEach(n=>{t[n]=n6(e[n])}),t}function r6(e,t,n={clone:!0}){let r=n.clone?{...e}:e;return t6(e)&&t6(t)&&Object.keys(t).forEach(i=>{C.isValidElement(t[i])||(0,Sa.isValidElementType)(t[i])?r[i]=t[i]:t6(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&t6(e[i])?r[i]=r6(e[i],t[i],n):n.clone?r[i]=t6(t[i])?n6(t[i]):t[i]:r[i]=t[i]}),r}var Ooe=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})};function koe(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n=`px`,step:r=5,...i}=e,a=Ooe(t),o=Object.keys(a);function s(e){return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n})`}function c(e){return`@media (max-width:${(typeof t[e]==`number`?t[e]:e)-r/100}${n})`}function l(e,i){let a=o.indexOf(i);return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n}) and (max-width:${(a!==-1&&typeof t[o[a]]==`number`?t[o[a]]:i)-r/100}${n})`}function u(e){return o.indexOf(e)+1<o.length?l(e,o[o.indexOf(e)+1]):s(e)}function d(e){let t=o.indexOf(e);return t===0?s(o[1]):t===o.length-1?c(o[t]):l(e,o[o.indexOf(e)+1]).replace(`@media`,`@media not all and`)}return{keys:o,values:a,up:s,down:c,between:l,only:u,not:d,unit:n,...i}}function i6(e,t){if(!e.containerQueries)return t;let n=Object.keys(t).filter(e=>e.startsWith(`@container`)).sort((e,t)=>{let n=/min-width:\s*([0-9.]+)/;return(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{let r=t[n];return delete e[n],e[n]=r,e},{...t}):t}function Aoe(e,t){return t===`@`||t.startsWith(`@`)&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}function joe(e,t){let n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;let[,r,i]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(a)}function Moe(e){let t=(e,t)=>e.replace(`@media`,t?`@container ${t}`:`@container`);function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{let i=t(e.breakpoints.not(...n),r);return i.includes(`not all and`)?i.replace(`not all and `,``).replace(`min-width:`,`width<`).replace(`max-width:`,`width>`).replace(`and`,`or`):i}}let r={},i=e=>(n(r,e),r);return n(i),{...e,containerQueries:i}}var Noe={borderRadius:4};function a6(e,t){return t?r6(e,t,{clone:!1}):e}var o6={xs:0,sm:600,md:900,lg:1200,xl:1536},s6={keys:[`xs`,`sm`,`md`,`lg`,`xl`],up:e=>`@media (min-width:${o6[e]}px)`},Poe={containerQueries:e=>({up:t=>{let n=typeof t==`number`?t:o6[t]||t;return typeof n==`number`&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function c6(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let e=r.breakpoints||s6;return t.reduce((r,i,a)=>(r[e.up(e.keys[a])]=n(t[a]),r),{})}if(typeof t==`object`){let e=r.breakpoints||s6;return Object.keys(t).reduce((i,a)=>{if(Aoe(e.keys,a)){let e=joe(r.containerQueries?r:Poe,a);e&&(i[e]=n(t[a],a))}else if(Object.keys(e.values||o6).includes(a)){let r=e.up(a);i[r]=n(t[a],a)}else{let e=a;i[e]=t[e]}return i},{})}return n(t)}function l6(e={}){return e.keys?.reduce((t,n)=>{let r=e.up(n);return t[r]={},t},{})||{}}function u6(e,t){return e.reduce((e,t)=>{let n=e[t];return(!n||Object.keys(n).length===0)&&delete e[t],e},t)}function Foe(e,...t){let n=l6(e),r=[n,...t].reduce((e,t)=>r6(e,t),{});return u6(Object.keys(n),r)}function Ioe(e,t){if(typeof e!=`object`)return{};let n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r<e.length&&(n[t]=!0)}):r.forEach(t=>{e[t]!=null&&(n[t]=!0)}),n}function d6({values:e,breakpoints:t,base:n}){let r=n||Ioe(e,t),i=Object.keys(r);if(i.length===0)return e;let a;return i.reduce((t,n,r)=>(Array.isArray(e)?(t[n]=e[r]==null?e[a]:e[r],a=r):typeof e==`object`?(t[n]=e[n]==null?e[a]:e[n],a=n):t[n]=e,t),{})}function f6(e){if(typeof e!=`string`)throw Error(Z3(7));return e.charAt(0).toUpperCase()+e.slice(1)}function p6(e,t,n=!0){if(!t||typeof t!=`string`)return null;if(e&&e.vars&&n){let n=`vars.${t}`.split(`.`).reduce((e,t)=>e&&e[t]?e[t]:null,e);if(n!=null)return n}return t.split(`.`).reduce((e,t)=>e&&e[t]!=null?e[t]:null,e)}function m6(e,t,n,r=n){let i;return i=typeof e==`function`?e(n):Array.isArray(e)?e[n]||r:p6(e,n)||r,t&&(i=t(i,r,e)),i}function h6(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=e=>{if(e[t]==null)return null;let a=e[t],o=e.theme,s=p6(o,r)||{};return c6(e,a,e=>{let r=m6(s,i,e);return e===r&&typeof e==`string`&&(r=m6(s,i,`${t}${e===`default`?``:f6(e)}`,e)),n===!1?r:{[n]:r}})};return a.propTypes={},a.filterProps=[t],a}function Loe(e){let t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var Roe={m:`margin`,p:`padding`},zoe={t:`Top`,r:`Right`,b:`Bottom`,l:`Left`,x:[`Left`,`Right`],y:[`Top`,`Bottom`]},g6={marginX:`mx`,marginY:`my`,paddingX:`px`,paddingY:`py`},Boe=Loe(e=>{if(e.length>2)if(g6[e])e=g6[e];else return[e];let[t,n]=e.split(``),r=Roe[t],i=zoe[n]||``;return Array.isArray(i)?i.map(e=>r+e):[r+i]}),_6=[`m`,`mt`,`mr`,`mb`,`ml`,`mx`,`my`,`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginX`,`marginY`,`marginInline`,`marginInlineStart`,`marginInlineEnd`,`marginBlock`,`marginBlockStart`,`marginBlockEnd`],v6=[`p`,`pt`,`pr`,`pb`,`pl`,`px`,`py`,`padding`,`paddingTop`,`paddingRight`,`paddingBottom`,`paddingLeft`,`paddingX`,`paddingY`,`paddingInline`,`paddingInlineStart`,`paddingInlineEnd`,`paddingBlock`,`paddingBlockStart`,`paddingBlockEnd`],y6=[..._6,...v6];function b6(e,t,n,r){let i=p6(e,t,!0)??n;return typeof i==`number`||typeof i==`string`?e=>typeof e==`string`?e:typeof i==`string`?i.startsWith(`var(`)&&e===0?0:i.startsWith(`var(`)&&e===1?i:`calc(${e} * ${i})`:i*e:Array.isArray(i)?e=>{if(typeof e==`string`)return e;let t=i[Math.abs(e)];return e>=0?t:typeof t==`number`?-t:typeof t==`string`&&t.startsWith(`var(`)?`calc(-1 * ${t})`:`-${t}`}:typeof i==`function`?i:()=>void 0}function x6(e){return b6(e,`spacing`,8,`spacing`)}function S6(e,t){return typeof t==`string`||t==null?t:e(t)}function Voe(e,t){return n=>e.reduce((e,r)=>(e[r]=S6(t,n),e),{})}function Hoe(e,t,n,r){if(!t.includes(n))return null;let i=Voe(Boe(n),r),a=e[n];return c6(e,a,i)}function C6(e,t){let n=x6(e.theme);return Object.keys(e).map(r=>Hoe(e,t,r,n)).reduce(a6,{})}function w6(e){return C6(e,_6)}w6.propTypes={},w6.filterProps=_6;function T6(e){return C6(e,v6)}T6.propTypes={},T6.filterProps=v6;function E6(e){return C6(e,y6)}E6.propTypes={},E6.filterProps=y6;function D6(e=8,t=x6({spacing:e})){if(e.mui)return e;let n=(...e)=>(e.length===0?[1]:e).map(e=>{let n=t(e);return typeof n==`number`?`${n}px`:n}).join(` `);return n.mui=!0,n}function O6(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?a6(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function k6(e){return typeof e==`number`?`${e}px solid`:e}function A6(e,t){return h6({prop:e,themeKey:`borders`,transform:t})}var Uoe=A6(`border`,k6),Woe=A6(`borderTop`,k6),Goe=A6(`borderRight`,k6),Koe=A6(`borderBottom`,k6),qoe=A6(`borderLeft`,k6),Joe=A6(`borderColor`),Yoe=A6(`borderTopColor`),Xoe=A6(`borderRightColor`),Zoe=A6(`borderBottomColor`),Qoe=A6(`borderLeftColor`),$oe=A6(`outline`,k6),ese=A6(`outlineColor`),j6=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=b6(e.theme,`shape.borderRadius`,4,`borderRadius`);return c6(e,e.borderRadius,e=>({borderRadius:S6(t,e)}))}return null};j6.propTypes={},j6.filterProps=[`borderRadius`],O6(Uoe,Woe,Goe,Koe,qoe,Joe,Yoe,Xoe,Zoe,Qoe,j6,$oe,ese);var M6=e=>{if(e.gap!==void 0&&e.gap!==null){let t=b6(e.theme,`spacing`,8,`gap`);return c6(e,e.gap,e=>({gap:S6(t,e)}))}return null};M6.propTypes={},M6.filterProps=[`gap`];var N6=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=b6(e.theme,`spacing`,8,`columnGap`);return c6(e,e.columnGap,e=>({columnGap:S6(t,e)}))}return null};N6.propTypes={},N6.filterProps=[`columnGap`];var P6=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=b6(e.theme,`spacing`,8,`rowGap`);return c6(e,e.rowGap,e=>({rowGap:S6(t,e)}))}return null};P6.propTypes={},P6.filterProps=[`rowGap`],O6(M6,N6,P6,h6({prop:`gridColumn`}),h6({prop:`gridRow`}),h6({prop:`gridAutoFlow`}),h6({prop:`gridAutoColumns`}),h6({prop:`gridAutoRows`}),h6({prop:`gridTemplateColumns`}),h6({prop:`gridTemplateRows`}),h6({prop:`gridTemplateAreas`}),h6({prop:`gridArea`}));function F6(e,t){return t===`grey`?t:e}O6(h6({prop:`color`,themeKey:`palette`,transform:F6}),h6({prop:`bgcolor`,cssProperty:`backgroundColor`,themeKey:`palette`,transform:F6}),h6({prop:`backgroundColor`,themeKey:`palette`,transform:F6}));function I6(e){return e<=1&&e!==0?`${e*100}%`:e}var tse=h6({prop:`width`,transform:I6}),L6=e=>e.maxWidth!==void 0&&e.maxWidth!==null?c6(e,e.maxWidth,t=>{let n=e.theme?.breakpoints?.values?.[t]||o6[t];return n?e.theme?.breakpoints?.unit===`px`?{maxWidth:n}:{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:I6(t)}}):null;L6.filterProps=[`maxWidth`];var nse=h6({prop:`minWidth`,transform:I6}),rse=h6({prop:`height`,transform:I6}),ise=h6({prop:`maxHeight`,transform:I6}),ase=h6({prop:`minHeight`,transform:I6});h6({prop:`size`,cssProperty:`width`,transform:I6}),h6({prop:`size`,cssProperty:`height`,transform:I6}),O6(tse,L6,nse,rse,ise,ase,h6({prop:`boxSizing`}));var R6={border:{themeKey:`borders`,transform:k6},borderTop:{themeKey:`borders`,transform:k6},borderRight:{themeKey:`borders`,transform:k6},borderBottom:{themeKey:`borders`,transform:k6},borderLeft:{themeKey:`borders`,transform:k6},borderColor:{themeKey:`palette`},borderTopColor:{themeKey:`palette`},borderRightColor:{themeKey:`palette`},borderBottomColor:{themeKey:`palette`},borderLeftColor:{themeKey:`palette`},outline:{themeKey:`borders`,transform:k6},outlineColor:{themeKey:`palette`},borderRadius:{themeKey:`shape.borderRadius`,style:j6},color:{themeKey:`palette`,transform:F6},bgcolor:{themeKey:`palette`,cssProperty:`backgroundColor`,transform:F6},backgroundColor:{themeKey:`palette`,transform:F6},p:{style:T6},pt:{style:T6},pr:{style:T6},pb:{style:T6},pl:{style:T6},px:{style:T6},py:{style:T6},padding:{style:T6},paddingTop:{style:T6},paddingRight:{style:T6},paddingBottom:{style:T6},paddingLeft:{style:T6},paddingX:{style:T6},paddingY:{style:T6},paddingInline:{style:T6},paddingInlineStart:{style:T6},paddingInlineEnd:{style:T6},paddingBlock:{style:T6},paddingBlockStart:{style:T6},paddingBlockEnd:{style:T6},m:{style:w6},mt:{style:w6},mr:{style:w6},mb:{style:w6},ml:{style:w6},mx:{style:w6},my:{style:w6},margin:{style:w6},marginTop:{style:w6},marginRight:{style:w6},marginBottom:{style:w6},marginLeft:{style:w6},marginX:{style:w6},marginY:{style:w6},marginInline:{style:w6},marginInlineStart:{style:w6},marginInlineEnd:{style:w6},marginBlock:{style:w6},marginBlockStart:{style:w6},marginBlockEnd:{style:w6},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:M6},rowGap:{style:P6},columnGap:{style:N6},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:`zIndex`},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:`shadows`},width:{transform:I6},maxWidth:{style:L6},minWidth:{transform:I6},height:{transform:I6},maxHeight:{transform:I6},minHeight:{transform:I6},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 ose(...e){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}function sse(e,t){return typeof e==`function`?e(t):e}function cse(){function e(e,t,n,r){let i={[e]:t,theme:n},a=r[e];if(!a)return{[e]:t};let{cssProperty:o=e,themeKey:s,transform:c,style:l}=a;if(t==null)return null;if(s===`typography`&&t===`inherit`)return{[e]:t};let u=p6(n,s)||{};return l?l(i):c6(i,t,t=>{let n=m6(u,c,t);return t===n&&typeof t==`string`&&(n=m6(u,c,`${e}${t===`default`?``:f6(t)}`,t)),o===!1?n:{[o]:n}})}function t(n){let{sx:r,theme:i={},nested:a}=n||{};if(!r)return null;let o=i.unstable_sxConfig??R6;function s(n){let r=n;if(typeof n==`function`)r=n(i);else if(typeof n!=`object`)return n;if(!r)return null;let s=l6(i.breakpoints),c=Object.keys(s),l=s;return Object.keys(r).forEach(n=>{let a=sse(r[n],i);if(a!=null)if(typeof a==`object`)if(o[n])l=a6(l,e(n,a,i,o));else{let e=c6({theme:i},a,e=>({[n]:e}));ose(e,a)?l[n]=t({sx:a,theme:i,nested:!0}):l=a6(l,e)}else l=a6(l,e(n,a,i,o))}),!a&&i.modularCssLayers?{"@layer sx":i6(i,u6(c,l))}:i6(i,u6(c,l))}return Array.isArray(r)?r.map(s):s(r)}return t}var z6=cse();z6.filterProps=[`sx`];function lse(e,t){let n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!=`function`)return{};let r=n.getColorSchemeSelector(e);return r===`&`?t:((r.includes(`data-`)||r.includes(`.`))&&(r=`*:where(${r.replace(/\s*&$/,``)}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function B6(e={},...t){let{breakpoints:n={},palette:r={},spacing:i,shape:a={},...o}=e,s=koe(n),c=D6(i),l=r6({breakpoints:s,direction:`ltr`,components:{},palette:{mode:`light`,...r},spacing:c,shape:{...Noe,...a}},o);return l=Moe(l),l.applyStyles=lse,l=t.reduce((e,t)=>r6(e,t),l),l.unstable_sxConfig={...R6,...o?.unstable_sxConfig},l.unstable_sx=function(e){return z6({sx:e,theme:this})},l}function use(e){return Object.keys(e).length===0}function dse(e=null){let t=C.useContext(Ui);return!t||use(t)?e:t}var fse=B6();function V6(e=fse){return dse(e)}function H6(e){let t=e6(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function pse({styles:e,themeId:t,defaultTheme:n={}}){let r=V6(n),i=t&&r[t]||r,a=typeof e==`function`?e(i):e;return i.modularCssLayers&&(a=Array.isArray(a)?a.map(e=>H6(typeof e==`function`?e(i):e)):H6(a)),(0,B.jsx)(Eoe,{styles:a})}var mse=e=>{let t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??R6;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function U6(e){let{sx:t,...n}=e,{systemProps:r,otherProps:i}=mse(n),a;return a=Array.isArray(t)?[r,...t]:typeof t==`function`?(...e)=>{let n=t(...e);return t6(n)?{...r,...n}:r}:{...r,...t},{...i,sx:a}}var W6=e=>e,G6=(()=>{let e=W6;return{configure(t){e=t},generate(t){return e(t)},reset(){e=W6}}})();function hse(e={}){let{themeId:t,defaultTheme:n,defaultClassName:r=`MuiBox-root`,generateClassName:i}=e,a=Q3(`div`,{shouldForwardProp:e=>e!==`theme`&&e!==`sx`&&e!==`as`})(z6);return C.forwardRef(function(e,o){let s=V6(n),{className:c,component:l=`div`,...u}=U6(e);return(0,B.jsx)(a,{as:l,ref:o,className:V(c,i?i(r):r),theme:t&&s[t]||s,...u})})}var gse={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 K6(e,t,n=`Mui`){let r=gse[t];return r?`${n}-${r}`:`${G6.generate(e)}-${t}`}function q6(e,t,n=`Mui`){let r={};return t.forEach(t=>{r[t]=K6(e,t,n)}),r}function J6(e){let{variants:t,...n}=e,r={variants:t,style:e6(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{typeof e.style!=`function`&&(e.style=e6(e.style))}),r}var _se=B6();function Y6(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}function X6(e,t){return t&&e&&typeof e==`object`&&e.styles&&!e.styles.startsWith(`@layer`)&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function vse(e){return e?(t,n)=>n[e]:null}function yse(e,t,n){e.theme=bse(e.theme)?n:e.theme[t]||e.theme}function Z6(e,t,n){let r=typeof t==`function`?t(e):t;if(Array.isArray(r))return r.flatMap(t=>Z6(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?X6(r.style,n):r.style;else{let{variants:e,...i}=r;t=n?X6(e6(i),n):i}return Q6(e,r.variants,[t],n)}return r?.isProcessed?n?X6(e6(r.style),n):r.style:n?X6(e6(r),n):r}function Q6(e,t,n=[],r=void 0){let i;variantLoop:for(let a=0;a<t.length;a+=1){let o=t[a];if(typeof o.props==`function`){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!o.props(i))continue}else for(let t in o.props)if(e[t]!==o.props[t]&&e.ownerState?.[t]!==o.props[t])continue variantLoop;typeof o.style==`function`?(i??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?X6(e6(o.style(i)),r):o.style(i))):n.push(r?X6(e6(o.style),r):o.style)}return n}function $6(e={}){let{themeId:t,defaultTheme:n=_se,rootShouldForwardProp:r=Y6,slotShouldForwardProp:i=Y6}=e;function a(e){yse(e,t,n)}return(e,t={})=>{Doe(e,e=>e.filter(e=>e!==z6));let{name:n,slot:o,skipVariantsResolver:s,skipSx:c,overridesResolver:l=vse(Sse(o)),...u}=t,d=n&&n.startsWith(`Mui`)||o?`components`:`custom`,f=s===void 0?o&&o!==`Root`&&o!==`root`||!1:s,p=c||!1,m=Y6;o===`Root`||o===`root`?m=r:o?m=i:xse(e)&&(m=void 0);let h=Q3(e,{shouldForwardProp:m,label:void 0,...u}),g=e=>{if(e.__emotion_real===e)return e;if(typeof e==`function`)return function(t){return Z6(t,e,t.theme.modularCssLayers?d:void 0)};if(t6(e)){let t=J6(e);return function(e){return t.variants?Z6(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?X6(t.style,d):t.style}}return e},_=(...t)=>{let r=[],i=t.map(g),o=[];if(r.push(a),n&&l&&o.push(function(e){let t=e.theme.components?.[n]?.styleOverrides;if(!t)return null;let r={};for(let n in t)r[n]=Z6(e,t[n],e.theme.modularCssLayers?`theme`:void 0);return l(e,r)}),n&&!f&&o.push(function(e){let t=e.theme?.components?.[n]?.variants;return t?Q6(e,t,[],e.theme.modularCssLayers?`theme`:void 0):null}),p||o.push(z6),Array.isArray(i[0])){let e=i.shift(),t=Array(r.length).fill(``),n=Array(o.length).fill(``),a;a=[...t,...e,...n],a.raw=[...t,...e.raw,...n],r.unshift(a)}let s=h(...r,...i,...o);return e.muiName&&(s.muiName=e.muiName),s};return h.withConfig&&(_.withConfig=h.withConfig),_}}function bse(e){for(let t in e)return!1;return!0}function xse(e){return typeof e==`string`&&e.charCodeAt(0)>96}function Sse(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}var e8=$6();function t8(e,t,n=!1){let r={...t};for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){let a=i;if(a===`components`||a===`slots`)r[a]={...e[a],...r[a]};else if(a===`componentsProps`||a===`slotProps`){let i=e[a],o=t[a];if(!o)r[a]=i||{};else if(!i)r[a]=o;else{r[a]={...o};for(let e in i)if(Object.prototype.hasOwnProperty.call(i,e)){let t=e;r[a][t]=t8(i[t],o[t],n)}}}else a===`className`&&n&&t.className?r.className=V(e?.className,t?.className):a===`style`&&n&&t.style?r.style={...e?.style,...t?.style}:r[a]===void 0&&(r[a]=e[a])}return r}function Cse(e){let{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:t8(t.components[n].defaultProps,r)}function n8({props:e,name:t,defaultTheme:n,themeId:r}){let i=V6(n);return r&&(i=i[r]||i),Cse({theme:i,name:t,props:e})}var r8=typeof window<`u`?C.useLayoutEffect:C.useEffect;function wse(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function i8(e,t=0,n=1){return wse(e,t,n)}function Tse(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,`g`),n=e.match(t);return n&&n[0].length===1&&(n=n.map(e=>e+e)),n?`rgb${n.length===4?`a`:``}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(`, `)})`:``}function a8(e){if(e.type)return e;if(e.charAt(0)===`#`)return a8(Tse(e));let t=e.indexOf(`(`),n=e.substring(0,t);if(![`rgb`,`rgba`,`hsl`,`hsla`,`color`].includes(n))throw Error(Z3(9,e));let r=e.substring(t+1,e.length-1),i;if(n===`color`){if(r=r.split(` `),i=r.shift(),r.length===4&&r[3].charAt(0)===`/`&&(r[3]=r[3].slice(1)),![`srgb`,`display-p3`,`a98-rgb`,`prophoto-rgb`,`rec-2020`].includes(i))throw Error(Z3(10,i))}else r=r.split(`,`);return r=r.map(e=>parseFloat(e)),{type:n,values:r,colorSpace:i}}var Ese=e=>{let t=a8(e);return t.values.slice(0,3).map((e,n)=>t.type.includes(`hsl`)&&n!==0?`${e}%`:e).join(` `)},o8=(e,t)=>{try{return Ese(e)}catch{return e}};function s8(e){let{type:t,colorSpace:n}=e,{values:r}=e;return t.includes(`rgb`)?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes(`hsl`)&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes(`color`)?`${n} ${r.join(` `)}`:`${r.join(`, `)}`,`${t}(${r})`}function c8(e){e=a8(e);let{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),o=(e,t=(e+n/30)%12)=>i-a*Math.max(Math.min(t-3,9-t,1),-1),s=`rgb`,c=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type===`hsla`&&(s+=`a`,c.push(t[3])),s8({type:s,values:c})}function l8(e){e=a8(e);let t=e.type===`hsl`||e.type===`hsla`?a8(c8(e)).values:e.values;return t=t.map(t=>(e.type!==`color`&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Dse(e,t){let n=l8(e),r=l8(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function u8(e,t){return e=a8(e),t=i8(t),(e.type===`rgb`||e.type===`hsl`)&&(e.type+=`a`),e.type===`color`?e.values[3]=`/${t}`:e.values[3]=t,s8(e)}function d8(e,t,n){try{return u8(e,t)}catch{return e}}function f8(e,t){if(e=a8(e),t=i8(t),e.type.includes(`hsl`))e.values[2]*=1-t;else if(e.type.includes(`rgb`)||e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s8(e)}function p8(e,t,n){try{return f8(e,t)}catch{return e}}function m8(e,t){if(e=a8(e),t=i8(t),e.type.includes(`hsl`))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes(`rgb`))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s8(e)}function h8(e,t,n){try{return m8(e,t)}catch{return e}}function g8(e,t=.15){return l8(e)>.5?f8(e,t):m8(e,t)}function _8(e,t,n){try{return g8(e,t)}catch{return e}}var Ose=C.createContext(),v8=()=>C.useContext(Ose)??!1,kse=C.createContext(void 0);function Ase(e){let{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;let i=t.components[n];return i.defaultProps?t8(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?t8(i,r,t.components.mergeClassNameAndStyle):r}function jse({props:e,name:t}){return Ase({props:e,name:t,theme:{components:C.useContext(kse)}})}var y8=0;function Mse(e){let[t,n]=C.useState(e),r=e||t;return C.useEffect(()=>{t??(y8+=1,n(`mui-${y8}`))},[t]),r}var b8={...C}.useId;function x8(e){if(b8!==void 0){let t=b8();return e??t}return Mse(e)}var S8={theme:void 0};function Nse(e){let t,n;return function(r){let i=t;return(i===void 0||r.theme!==n)&&(S8.theme=r.theme,i=J6(e(S8)),t=i,n=r.theme),i}}function Pse(e=``){function t(...n){if(!n.length)return``;let r=n[0];return typeof r==`string`&&!r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:``}${r}${t(...n.slice(1))})`:`, ${r}`}return(n,...r)=>`var(--${e?`${e}-`:``}${n}${t(...r)})`}var C8=(e,t,n,r=[])=>{let i=e;t.forEach((e,a)=>{a===t.length-1?Array.isArray(i)?i[Number(e)]=n:i&&typeof i==`object`&&(i[e]=n):i&&typeof i==`object`&&(i[e]||(i[e]=r.includes(e)?[]:{}),i=i[e])})},Fse=(e,t,n)=>{function r(e,i=[],a=[]){Object.entries(e).forEach(([e,o])=>{(!n||n&&!n([...i,e]))&&o!=null&&(typeof o==`object`&&Object.keys(o).length>0?r(o,[...i,e],Array.isArray(o)?[...a,e]:a):t([...i,e],o,a))})}r(e)},Ise=(e,t)=>typeof t==`number`?[`lineHeight`,`fontWeight`,`opacity`,`zIndex`].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes(`opacity`)?t:`${t}px`:t;function w8(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},o={};return Fse(e,(e,t,s)=>{if((typeof t==`string`||typeof t==`number`)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:``}${e.join(`-`)}`,c=Ise(e,t);Object.assign(i,{[r]:c}),C8(a,e,`var(${r})`,s),C8(o,e,`var(${r}, ${c})`,s)}},e=>e[0]===`vars`),{css:i,vars:a,varsWithDefaults:o}}function Lse(e,t={}){let{getSelector:n=_,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:a}=t,{colorSchemes:o={},components:s,defaultColorScheme:c=`light`,...l}=e,{vars:u,css:d,varsWithDefaults:f}=w8(l,t),p=f,m={},{[c]:h,...g}=o;if(Object.entries(g||{}).forEach(([e,n])=>{let{vars:r,css:i,varsWithDefaults:a}=w8(n,t);p=r6(p,a),m[e]={css:i,vars:r}}),h){let{css:e,vars:n,varsWithDefaults:r}=w8(h,t);p=r6(p,r),m[c]={css:e,vars:n}}function _(t,n){let r=i;if(i===`class`&&(r=`.%s`),i===`data`&&(r=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(r=`[${i}="%s"]`),t){if(r===`media`)return e.defaultColorScheme===t?`:root`:{[`@media (prefers-color-scheme: ${o[t]?.palette?.mode||t})`]:{":root":n}};if(r)return e.defaultColorScheme===t?`:root, ${r.replace(`%s`,String(t))}`:r.replace(`%s`,String(t))}return`:root`}return{vars:p,generateThemeVars:()=>{let e={...u};return Object.entries(m).forEach(([,{vars:t}])=>{e=r6(e,t)}),e},generateStyleSheets:()=>{let t=[],i=e.defaultColorScheme||`light`;function s(e,n){Object.keys(n).length&&t.push(typeof e==`string`?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);let{[i]:c,...l}=m;if(c){let{css:e}=c,t=o[i]?.palette?.mode,a=!r&&t?{colorScheme:t,...e}:{...e};s(n(i,{...a}),a)}return Object.entries(l).forEach(([e,{css:t}])=>{let i=o[e]?.palette?.mode,a=!r&&i?{colorScheme:i,...t}:{...t};s(n(e,{...a}),a)}),a&&t.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)`}}),t}}}function Rse(e){return function(t){return e===`media`?`@media (prefers-color-scheme: ${t})`:e?e.startsWith(`data-`)&&!e.includes(`%s`)?`[${e}="${t}"] &`:e===`class`?`.${t} &`:e===`data`?`[data-${t}] &`:`${e.replace(`%s`,t)} &`:`&`}}function T8(e,t,n=void 0){let r={};for(let i in e){let a=e[i],o=``,s=!0;for(let e=0;e<a.length;e+=1){let r=a[e];r&&(o+=(s===!0?``:` `)+t(r),s=!1,n&&n[r]&&(o+=` `+n[r]))}r[i]=o}return r}var zse=B6(),Bse=e8(`div`,{name:`MuiStack`,slot:`Root`});function Vse(e){return n8({props:e,name:`MuiStack`,defaultTheme:zse})}function Hse(e,t){let n=C.Children.toArray(e).filter(Boolean);return n.reduce((e,r,i)=>(e.push(r),i<n.length-1&&e.push(C.cloneElement(t,{key:`separator-${i}`})),e),[])}var Use=e=>({row:`Left`,"row-reverse":`Right`,column:`Top`,"column-reverse":`Bottom`})[e],Wse=({ownerState:e,theme:t})=>{let n={display:`flex`,flexDirection:`column`,...c6({theme:t},d6({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e}))};if(e.spacing){let r=x6(t),i=Object.keys(t.breakpoints.values).reduce((t,n)=>((typeof e.spacing==`object`&&e.spacing[n]!=null||typeof e.direction==`object`&&e.direction[n]!=null)&&(t[n]=!0),t),{}),a=d6({values:e.direction,base:i}),o=d6({values:e.spacing,base:i});typeof a==`object`&&Object.keys(a).forEach((e,t,n)=>{a[e]||(a[e]=t>0?a[n[t-1]]:`column`)}),n=r6(n,c6({theme:t},o,(t,n)=>e.useFlexGap?{gap:S6(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Use(n?a[n]:e.direction)}`]:S6(r,t)}}))}return n=Foe(t.breakpoints,n),n};function Gse(e={}){let{createStyledComponent:t=Bse,useThemeProps:n=Vse,componentName:r=`MuiStack`}=e,i=()=>T8({root:[`root`]},e=>K6(r,e),{}),a=t(Wse);return C.forwardRef(function(e,t){let{component:r=`div`,direction:o=`column`,spacing:s=0,divider:c,children:l,className:u,useFlexGap:d=!1,...f}=U6(n(e));return(0,B.jsx)(a,{as:r,ownerState:{direction:o,spacing:s,useFlexGap:d},ref:t,className:V(i().root,u),...f,children:c?Hse(l,c):l})})}var E8=`$$material`,D8={black:`#000`,white:`#fff`},Kse={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`},O8={50:`#f3e5f5`,100:`#e1bee7`,200:`#ce93d8`,300:`#ba68c8`,400:`#ab47bc`,500:`#9c27b0`,600:`#8e24aa`,700:`#7b1fa2`,800:`#6a1b9a`,900:`#4a148c`,A100:`#ea80fc`,A200:`#e040fb`,A400:`#d500f9`,A700:`#aa00ff`},k8={50:`#ffebee`,100:`#ffcdd2`,200:`#ef9a9a`,300:`#e57373`,400:`#ef5350`,500:`#f44336`,600:`#e53935`,700:`#d32f2f`,800:`#c62828`,900:`#b71c1c`,A100:`#ff8a80`,A200:`#ff5252`,A400:`#ff1744`,A700:`#d50000`},A8={50:`#fff3e0`,100:`#ffe0b2`,200:`#ffcc80`,300:`#ffb74d`,400:`#ffa726`,500:`#ff9800`,600:`#fb8c00`,700:`#f57c00`,800:`#ef6c00`,900:`#e65100`,A100:`#ffd180`,A200:`#ffab40`,A400:`#ff9100`,A700:`#ff6d00`},j8={50:`#e3f2fd`,100:`#bbdefb`,200:`#90caf9`,300:`#64b5f6`,400:`#42a5f5`,500:`#2196f3`,600:`#1e88e5`,700:`#1976d2`,800:`#1565c0`,900:`#0d47a1`,A100:`#82b1ff`,A200:`#448aff`,A400:`#2979ff`,A700:`#2962ff`},M8={50:`#e1f5fe`,100:`#b3e5fc`,200:`#81d4fa`,300:`#4fc3f7`,400:`#29b6f6`,500:`#03a9f4`,600:`#039be5`,700:`#0288d1`,800:`#0277bd`,900:`#01579b`,A100:`#80d8ff`,A200:`#40c4ff`,A400:`#00b0ff`,A700:`#0091ea`},N8={50:`#e8f5e9`,100:`#c8e6c9`,200:`#a5d6a7`,300:`#81c784`,400:`#66bb6a`,500:`#4caf50`,600:`#43a047`,700:`#388e3c`,800:`#2e7d32`,900:`#1b5e20`,A100:`#b9f6ca`,A200:`#69f0ae`,A400:`#00e676`,A700:`#00c853`};function P8(){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:D8.white,default:D8.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}}}var F8=P8();function I8(){return{text:{primary:D8.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:D8.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}}}var L8=I8();function R8(e,t,n,r){let i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t===`light`?e.light=m8(e.main,i):t===`dark`&&(e.dark=f8(e.main,a)))}function z8(e,t,n,r,i){let a=i.light||i,o=i.dark||i*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n===`light`?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:n===`dark`&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(o*100).toFixed(0)}%)`))}function qse(e=`light`){return e===`dark`?{main:j8[200],light:j8[50],dark:j8[400]}:{main:j8[700],light:j8[400],dark:j8[800]}}function Jse(e=`light`){return e===`dark`?{main:O8[200],light:O8[50],dark:O8[400]}:{main:O8[500],light:O8[300],dark:O8[700]}}function Yse(e=`light`){return e===`dark`?{main:k8[500],light:k8[300],dark:k8[700]}:{main:k8[700],light:k8[400],dark:k8[800]}}function Xse(e=`light`){return e===`dark`?{main:M8[400],light:M8[300],dark:M8[700]}:{main:M8[700],light:M8[500],dark:M8[900]}}function Zse(e=`light`){return e===`dark`?{main:N8[400],light:N8[300],dark:N8[700]}:{main:N8[800],light:N8[500],dark:N8[900]}}function Qse(e=`light`){return e===`dark`?{main:A8[400],light:A8[300],dark:A8[700]}:{main:`#ed6c02`,light:A8[500],dark:A8[900]}}function $se(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function B8(e){let{mode:t=`light`,contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...a}=e,o=e.primary||qse(t),s=e.secondary||Jse(t),c=e.error||Yse(t),l=e.info||Xse(t),u=e.success||Zse(t),d=e.warning||Qse(t);function f(e){return i?$se(e):Dse(e,L8.text.primary)>=n?L8.text.primary:F8.text.primary}let p=({color:e,name:t,mainShade:n=500,lightShade:a=300,darkShade:o=700})=>{if(e={...e},!e.main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty(`main`))throw Error(Z3(11,t?` (${t})`:``,n));if(typeof e.main!=`string`)throw Error(Z3(12,t?` (${t})`:``,JSON.stringify(e.main)));return i?(z8(i,e,`light`,a,r),z8(i,e,`dark`,o,r)):(R8(e,`light`,a,r),R8(e,`dark`,o,r)),e.contrastText||=f(e.main),e},m;return t===`light`?m=P8():t===`dark`&&(m=I8()),r6({common:{...D8},mode:t,primary:p({color:o,name:`primary`}),secondary:p({color:s,name:`secondary`,mainShade:`A400`,lightShade:`A200`,darkShade:`A700`}),error:p({color:c,name:`error`}),warning:p({color:d,name:`warning`}),info:p({color:l,name:`info`}),success:p({color:u,name:`success`}),grey:Kse,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...m},a)}function ece(e){let t={};return Object.entries(e).forEach(e=>{let[n,r]=e;typeof r==`object`&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:``}${r.fontVariant?`${r.fontVariant} `:``}${r.fontWeight?`${r.fontWeight} `:``}${r.fontStretch?`${r.fontStretch} `:``}${r.fontSize||``}${r.lineHeight?`/${r.lineHeight} `:``}${r.fontFamily||``}`)}),t}function tce(e,t){return{toolbar:{minHeight:56,[e.up(`xs`)]:{"@media (orientation: landscape)":{minHeight:48}},[e.up(`sm`)]:{minHeight:64}},...t}}function nce(e){return Math.round(e*1e5)/1e5}var V8={textTransform:`uppercase`},H8=`"Roboto", "Helvetica", "Arial", sans-serif`;function rce(e,t){let{fontFamily:n=H8,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:u,...d}=typeof t==`function`?t(e):t,f=r/14,p=u||(e=>`${e/c*f}rem`),m=(e,t,r,i,a)=>({fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===H8?{letterSpacing:`${nce(i/t)}em`}:{},...a,...l});return r6({htmlFontSize:c,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s,h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(o,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(o,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(o,14,1.75,.4,V8),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,V8),inherit:{fontFamily:`inherit`,fontWeight:`inherit`,fontSize:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},d,{clone:!1})}var ice=.2,ace=.14,oce=.12;function U8(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${ice})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ace})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${oce})`].join(`,`)}var sce=[`none`,U8(0,2,1,-1,0,1,1,0,0,1,3,0),U8(0,3,1,-2,0,2,2,0,0,1,5,0),U8(0,3,3,-2,0,3,4,0,0,1,8,0),U8(0,2,4,-1,0,4,5,0,0,1,10,0),U8(0,3,5,-1,0,5,8,0,0,1,14,0),U8(0,3,5,-1,0,6,10,0,0,1,18,0),U8(0,4,5,-2,0,7,10,1,0,2,16,1),U8(0,5,5,-3,0,8,10,1,0,3,14,2),U8(0,5,6,-3,0,9,12,1,0,3,16,2),U8(0,6,6,-3,0,10,14,1,0,4,18,3),U8(0,6,7,-4,0,11,15,1,0,4,20,3),U8(0,7,8,-4,0,12,17,2,0,5,22,4),U8(0,7,8,-4,0,13,19,2,0,5,24,4),U8(0,7,9,-4,0,14,21,2,0,5,26,4),U8(0,8,9,-5,0,15,22,2,0,6,28,5),U8(0,8,10,-5,0,16,24,2,0,6,30,5),U8(0,8,11,-5,0,17,26,2,0,6,32,5),U8(0,9,11,-5,0,18,28,2,0,7,34,6),U8(0,9,12,-6,0,19,29,2,0,7,36,6),U8(0,10,13,-6,0,20,31,3,0,8,38,7),U8(0,10,13,-6,0,21,33,3,0,8,40,7),U8(0,10,14,-6,0,22,35,3,0,8,42,7),U8(0,11,14,-7,0,23,36,3,0,9,44,8),U8(0,11,15,-7,0,24,38,3,0,9,46,8)],cce={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)`},W8={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function G8(e){return`${Math.round(e)}ms`}function lce(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function uce(e){let t={...cce,...e.easing},n={...W8,...e.duration};return{getAutoHeightDuration:lce,create:(e=[`all`],r={})=>{let{duration:i=n.standard,easing:a=t.easeInOut,delay:o=0,...s}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${typeof i==`string`?i:G8(i)} ${a} ${typeof o==`string`?o:G8(o)}`).join(`,`)},...e,easing:t,duration:n}}var dce={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function fce(e){return t6(e)||e===void 0||typeof e==`string`||typeof e==`boolean`||typeof e==`number`||Array.isArray(e)}function K8(e={}){let t={...e};function n(e){let t=Object.entries(e);for(let r=0;r<t.length;r++){let[i,a]=t[r];!fce(a)||i.startsWith(`unstable_`)?delete e[i]:t6(a)&&(e[i]={...a},n(e[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
406
-
407
- const theme = ${JSON.stringify(t,null,2)};
408
-
409
- theme.breakpoints = createBreakpoints(theme.breakpoints || {});
410
- theme.transitions = createTransitions(theme.transitions || {});
411
-
412
- export default theme;`}function q8(e){return typeof e==`number`?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}var pce=e=>{if(!Number.isNaN(+e))return+e;let t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let e=0;e<t.length;e+=1)n+=+t[e];return n};function mce(e){Object.assign(e,{alpha(t,n){let r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n==`string`?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,`var(--$1Channel)`)} / ${typeof n==`string`?`calc(${n})`:n})`:u8(t,pce(n))},lighten(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${q8(n)})`:m8(t,n)},darken(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${q8(n)})`:f8(t,n)}})}function J8(e={},...t){let{breakpoints:n,mixins:r={},spacing:i,palette:a={},transitions:o={},typography:s={},shape:c,colorSpace:l,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw Error(Z3(20));let d=B8({...a,colorSpace:l}),f=B6(e),p=r6(f,{mixins:tce(f.breakpoints,r),palette:d,shadows:sce.slice(),typography:rce(d,s),transitions:uce(o),zIndex:{...dce}});return p=r6(p,u),p=t.reduce((e,t)=>r6(e,t),p),p.unstable_sxConfig={...R6,...u?.unstable_sxConfig},p.unstable_sx=function(e){return z6({sx:e,theme:this})},p.toRuntimeSource=K8,mce(p),p}function Y8(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}var hce=[...Array(25)].map((e,t)=>{if(t===0)return`none`;let n=Y8(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function X8(e){return{inputPlaceholder:e===`dark`?.5:.42,inputUnderline:e===`dark`?.7:.42,switchTrackDisabled:e===`dark`?.2:.12,switchTrack:e===`dark`?.3:.38}}function Z8(e){return e===`dark`?hce:[]}function gce(e){let{palette:t={mode:`light`},opacity:n,overlays:r,colorSpace:i,...a}=e,o=B8({...t,colorSpace:i});return{palette:o,opacity:{...X8(o.mode),...n},overlays:r||Z8(o.mode),...a}}function _ce(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]===`palette`&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var vce=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:``}overlays-${n}`),`--${e?`${e}-`:``}palette-AppBar-darkBg`,`--${e?`${e}-`:``}palette-AppBar-darkColor`],yce=e=>(t,n)=>{let r=e.rootSelector||`:root`,i=e.colorSchemeSelector,a=i;if(i===`class`&&(a=`.%s`),i===`data`&&(a=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t===`dark`){let i={};return vce(e.cssVarPrefix).forEach(e=>{i[e]=n[e],delete n[e]}),a===`media`?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace(`%s`,t)]:i,[`${r}, ${a.replace(`%s`,t)}`]:n}:{[r]:{...n,...i}}}if(a&&a!==`media`)return`${r}, ${a.replace(`%s`,String(t))}`}else if(t){if(a===`media`)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace(`%s`,String(t))}return r};function bce(e,t){t.forEach(t=>{e[t]||(e[t]={})})}function $(e,t,n){!e[t]&&n&&(e[t]=n)}function Q8(e){return typeof e!=`string`||!e.startsWith(`hsl`)?e:c8(e)}function $8(e,t){`${t}Channel`in e||(e[`${t}Channel`]=o8(Q8(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
413
- To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function xce(e){return typeof e==`number`?`${e}px`:typeof e==`string`||typeof e==`function`||Array.isArray(e)?e:`8px`}var e5=e=>{try{return e()}catch{}},Sce=(e=`mui`)=>Pse(e);function t5(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;let a=i===`dark`?`dark`:`light`;if(!r){t[i]=gce({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}let{palette:o,...s}=J8({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[i]={...n,palette:o,opacity:{...X8(a),...n?.opacity},overlays:n?.overlays||Z8(a)},s}function Cce(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a=`mui`,nativeColor:o=!1,shouldSkipGeneratingVar:s=_ce,colorSchemeSelector:c=n.light&&n.dark?`media`:void 0,rootSelector:l=`:root`,...u}=e,d=Object.keys(n)[0],f=r||(n.light&&d!==`light`?`light`:d),p=Sce(a),{[f]:m,light:h,dark:g,..._}=n,v={..._},y=m;if((f===`dark`&&!(`dark`in n)||f===`light`&&!(`light`in n))&&(y=!0),!y)throw Error(Z3(21,f));let b;o&&(b=`oklch`);let x=t5(b,v,y,u,f);h&&!v.light&&t5(b,v,h,void 0,`light`),g&&!v.dark&&t5(b,v,g,void 0,`dark`);let S={defaultColorScheme:f,...x,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:l,getCssVar:p,colorSchemes:v,font:{...ece(x.typography),...x.font},spacing:xce(u.spacing)};Object.keys(S.colorSchemes).forEach(e=>{let t=S.colorSchemes[e].palette,n=e=>{let n=e.split(`-`),r=n[1],i=n[2];return p(e,t[r][i])};t.mode===`light`&&($(t.common,`background`,`#fff`),$(t.common,`onBackground`,`#000`)),t.mode===`dark`&&($(t.common,`background`,`#000`),$(t.common,`onBackground`,`#fff`));function r(e,t,n){if(b){let r;return e===d8&&(r=`transparent ${((1-n)*100).toFixed(0)}%`),e===p8&&(r=`#000 ${(n*100).toFixed(0)}%`),e===h8&&(r=`#fff ${(n*100).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}if(bce(t,[`Alert`,`AppBar`,`Avatar`,`Button`,`Chip`,`FilledInput`,`LinearProgress`,`Skeleton`,`Slider`,`SnackbarContent`,`SpeedDialAction`,`StepConnector`,`StepContent`,`Switch`,`TableCell`,`Tooltip`]),t.mode===`light`){$(t.Alert,`errorColor`,r(p8,o?p(`palette-error-light`):t.error.light,.6)),$(t.Alert,`infoColor`,r(p8,o?p(`palette-info-light`):t.info.light,.6)),$(t.Alert,`successColor`,r(p8,o?p(`palette-success-light`):t.success.light,.6)),$(t.Alert,`warningColor`,r(p8,o?p(`palette-warning-light`):t.warning.light,.6)),$(t.Alert,`errorFilledBg`,n(`palette-error-main`)),$(t.Alert,`infoFilledBg`,n(`palette-info-main`)),$(t.Alert,`successFilledBg`,n(`palette-success-main`)),$(t.Alert,`warningFilledBg`,n(`palette-warning-main`)),$(t.Alert,`errorFilledColor`,e5(()=>t.getContrastText(t.error.main))),$(t.Alert,`infoFilledColor`,e5(()=>t.getContrastText(t.info.main))),$(t.Alert,`successFilledColor`,e5(()=>t.getContrastText(t.success.main))),$(t.Alert,`warningFilledColor`,e5(()=>t.getContrastText(t.warning.main))),$(t.Alert,`errorStandardBg`,r(h8,o?p(`palette-error-light`):t.error.light,.9)),$(t.Alert,`infoStandardBg`,r(h8,o?p(`palette-info-light`):t.info.light,.9)),$(t.Alert,`successStandardBg`,r(h8,o?p(`palette-success-light`):t.success.light,.9)),$(t.Alert,`warningStandardBg`,r(h8,o?p(`palette-warning-light`):t.warning.light,.9)),$(t.Alert,`errorIconColor`,n(`palette-error-main`)),$(t.Alert,`infoIconColor`,n(`palette-info-main`)),$(t.Alert,`successIconColor`,n(`palette-success-main`)),$(t.Alert,`warningIconColor`,n(`palette-warning-main`)),$(t.AppBar,`defaultBg`,n(`palette-grey-100`)),$(t.Avatar,`defaultBg`,n(`palette-grey-400`)),$(t.Button,`inheritContainedBg`,n(`palette-grey-300`)),$(t.Button,`inheritContainedHoverBg`,n(`palette-grey-A100`)),$(t.Chip,`defaultBorder`,n(`palette-grey-400`)),$(t.Chip,`defaultAvatarColor`,n(`palette-grey-700`)),$(t.Chip,`defaultIconColor`,n(`palette-grey-700`)),$(t.FilledInput,`bg`,`rgba(0, 0, 0, 0.06)`),$(t.FilledInput,`hoverBg`,`rgba(0, 0, 0, 0.09)`),$(t.FilledInput,`disabledBg`,`rgba(0, 0, 0, 0.12)`),$(t.LinearProgress,`primaryBg`,r(h8,o?p(`palette-primary-main`):t.primary.main,.62)),$(t.LinearProgress,`secondaryBg`,r(h8,o?p(`palette-secondary-main`):t.secondary.main,.62)),$(t.LinearProgress,`errorBg`,r(h8,o?p(`palette-error-main`):t.error.main,.62)),$(t.LinearProgress,`infoBg`,r(h8,o?p(`palette-info-main`):t.info.main,.62)),$(t.LinearProgress,`successBg`,r(h8,o?p(`palette-success-main`):t.success.main,.62)),$(t.LinearProgress,`warningBg`,r(h8,o?p(`palette-warning-light`):t.warning.main,.62)),$(t.Skeleton,`bg`,b?r(d8,o?p(`palette-text-primary`):t.text.primary,.11):`rgba(${n(`palette-text-primaryChannel`)} / 0.11)`),$(t.Slider,`primaryTrack`,r(h8,o?p(`palette-primary-main`):t.primary.main,.62)),$(t.Slider,`secondaryTrack`,r(h8,o?p(`palette-secondary-main`):t.secondary.main,.62)),$(t.Slider,`errorTrack`,r(h8,o?p(`palette-error-main`):t.error.main,.62)),$(t.Slider,`infoTrack`,r(h8,o?p(`palette-info-main`):t.info.main,.62)),$(t.Slider,`successTrack`,r(h8,o?p(`palette-success-main`):t.success.main,.62)),$(t.Slider,`warningTrack`,r(h8,o?p(`palette-warning-main`):t.warning.main,.62));let e=b?r(p8,o?p(`palette-background-default`):t.background.default,.6825):_8(t.background.default,.8);$(t.SnackbarContent,`bg`,e),$(t.SnackbarContent,`color`,e5(()=>b?L8.text.primary:t.getContrastText(e))),$(t.SpeedDialAction,`fabHoverBg`,_8(t.background.paper,.15)),$(t.StepConnector,`border`,n(`palette-grey-400`)),$(t.StepContent,`border`,n(`palette-grey-400`)),$(t.Switch,`defaultColor`,n(`palette-common-white`)),$(t.Switch,`defaultDisabledColor`,n(`palette-grey-100`)),$(t.Switch,`primaryDisabledColor`,r(h8,o?p(`palette-primary-main`):t.primary.main,.62)),$(t.Switch,`secondaryDisabledColor`,r(h8,o?p(`palette-secondary-main`):t.secondary.main,.62)),$(t.Switch,`errorDisabledColor`,r(h8,o?p(`palette-error-main`):t.error.main,.62)),$(t.Switch,`infoDisabledColor`,r(h8,o?p(`palette-info-main`):t.info.main,.62)),$(t.Switch,`successDisabledColor`,r(h8,o?p(`palette-success-main`):t.success.main,.62)),$(t.Switch,`warningDisabledColor`,r(h8,o?p(`palette-warning-main`):t.warning.main,.62)),$(t.TableCell,`border`,r(h8,d8(o?p(`palette-divider`):t.divider,1),.88)),$(t.Tooltip,`bg`,r(d8,o?p(`palette-grey-700`):t.grey[700],.92))}if(t.mode===`dark`){$(t.Alert,`errorColor`,r(h8,o?p(`palette-error-light`):t.error.light,.6)),$(t.Alert,`infoColor`,r(h8,o?p(`palette-info-light`):t.info.light,.6)),$(t.Alert,`successColor`,r(h8,o?p(`palette-success-light`):t.success.light,.6)),$(t.Alert,`warningColor`,r(h8,o?p(`palette-warning-light`):t.warning.light,.6)),$(t.Alert,`errorFilledBg`,n(`palette-error-dark`)),$(t.Alert,`infoFilledBg`,n(`palette-info-dark`)),$(t.Alert,`successFilledBg`,n(`palette-success-dark`)),$(t.Alert,`warningFilledBg`,n(`palette-warning-dark`)),$(t.Alert,`errorFilledColor`,e5(()=>t.getContrastText(t.error.dark))),$(t.Alert,`infoFilledColor`,e5(()=>t.getContrastText(t.info.dark))),$(t.Alert,`successFilledColor`,e5(()=>t.getContrastText(t.success.dark))),$(t.Alert,`warningFilledColor`,e5(()=>t.getContrastText(t.warning.dark))),$(t.Alert,`errorStandardBg`,r(p8,o?p(`palette-error-light`):t.error.light,.9)),$(t.Alert,`infoStandardBg`,r(p8,o?p(`palette-info-light`):t.info.light,.9)),$(t.Alert,`successStandardBg`,r(p8,o?p(`palette-success-light`):t.success.light,.9)),$(t.Alert,`warningStandardBg`,r(p8,o?p(`palette-warning-light`):t.warning.light,.9)),$(t.Alert,`errorIconColor`,n(`palette-error-main`)),$(t.Alert,`infoIconColor`,n(`palette-info-main`)),$(t.Alert,`successIconColor`,n(`palette-success-main`)),$(t.Alert,`warningIconColor`,n(`palette-warning-main`)),$(t.AppBar,`defaultBg`,n(`palette-grey-900`)),$(t.AppBar,`darkBg`,n(`palette-background-paper`)),$(t.AppBar,`darkColor`,n(`palette-text-primary`)),$(t.Avatar,`defaultBg`,n(`palette-grey-600`)),$(t.Button,`inheritContainedBg`,n(`palette-grey-800`)),$(t.Button,`inheritContainedHoverBg`,n(`palette-grey-700`)),$(t.Chip,`defaultBorder`,n(`palette-grey-700`)),$(t.Chip,`defaultAvatarColor`,n(`palette-grey-300`)),$(t.Chip,`defaultIconColor`,n(`palette-grey-300`)),$(t.FilledInput,`bg`,`rgba(255, 255, 255, 0.09)`),$(t.FilledInput,`hoverBg`,`rgba(255, 255, 255, 0.13)`),$(t.FilledInput,`disabledBg`,`rgba(255, 255, 255, 0.12)`),$(t.LinearProgress,`primaryBg`,r(p8,o?p(`palette-primary-main`):t.primary.main,.5)),$(t.LinearProgress,`secondaryBg`,r(p8,o?p(`palette-secondary-main`):t.secondary.main,.5)),$(t.LinearProgress,`errorBg`,r(p8,o?p(`palette-error-main`):t.error.main,.5)),$(t.LinearProgress,`infoBg`,r(p8,o?p(`palette-info-main`):t.info.main,.5)),$(t.LinearProgress,`successBg`,r(p8,o?p(`palette-success-main`):t.success.main,.5)),$(t.LinearProgress,`warningBg`,r(p8,o?p(`palette-warning-main`):t.warning.main,.5)),$(t.Skeleton,`bg`,b?r(d8,o?p(`palette-text-primary`):t.text.primary,.13):`rgba(${n(`palette-text-primaryChannel`)} / 0.13)`),$(t.Slider,`primaryTrack`,r(p8,o?p(`palette-primary-main`):t.primary.main,.5)),$(t.Slider,`secondaryTrack`,r(p8,o?p(`palette-secondary-main`):t.secondary.main,.5)),$(t.Slider,`errorTrack`,r(p8,o?p(`palette-error-main`):t.error.main,.5)),$(t.Slider,`infoTrack`,r(p8,o?p(`palette-info-main`):t.info.main,.5)),$(t.Slider,`successTrack`,r(p8,o?p(`palette-success-main`):t.success.main,.5)),$(t.Slider,`warningTrack`,r(p8,o?p(`palette-warning-light`):t.warning.main,.5));let e=b?r(h8,o?p(`palette-background-default`):t.background.default,.985):_8(t.background.default,.98);$(t.SnackbarContent,`bg`,e),$(t.SnackbarContent,`color`,e5(()=>b?F8.text.primary:t.getContrastText(e))),$(t.SpeedDialAction,`fabHoverBg`,_8(t.background.paper,.15)),$(t.StepConnector,`border`,n(`palette-grey-600`)),$(t.StepContent,`border`,n(`palette-grey-600`)),$(t.Switch,`defaultColor`,n(`palette-grey-300`)),$(t.Switch,`defaultDisabledColor`,n(`palette-grey-600`)),$(t.Switch,`primaryDisabledColor`,r(p8,o?p(`palette-primary-main`):t.primary.main,.55)),$(t.Switch,`secondaryDisabledColor`,r(p8,o?p(`palette-secondary-main`):t.secondary.main,.55)),$(t.Switch,`errorDisabledColor`,r(p8,o?p(`palette-error-main`):t.error.main,.55)),$(t.Switch,`infoDisabledColor`,r(p8,o?p(`palette-info-main`):t.info.main,.55)),$(t.Switch,`successDisabledColor`,r(p8,o?p(`palette-success-main`):t.success.main,.55)),$(t.Switch,`warningDisabledColor`,r(p8,o?p(`palette-warning-light`):t.warning.main,.55)),$(t.TableCell,`border`,r(p8,d8(o?p(`palette-divider`):t.divider,1),.68)),$(t.Tooltip,`bg`,r(d8,o?p(`palette-grey-700`):t.grey[700],.92))}o||($8(t.background,`default`),$8(t.background,`paper`),$8(t.common,`background`),$8(t.common,`onBackground`),$8(t,`divider`)),Object.keys(t).forEach(e=>{let n=t[e];e!==`tonalOffset`&&!o&&n&&typeof n==`object`&&(n.main&&$(t[e],`mainChannel`,o8(Q8(n.main))),n.light&&$(t[e],`lightChannel`,o8(Q8(n.light))),n.dark&&$(t[e],`darkChannel`,o8(Q8(n.dark))),n.contrastText&&$(t[e],`contrastTextChannel`,o8(Q8(n.contrastText))),e===`text`&&($8(t[e],`primary`),$8(t[e],`secondary`)),e===`action`&&(n.active&&$8(t[e],`active`),n.selected&&$8(t[e],`selected`)))})}),S=t.reduce((e,t)=>r6(e,t),S);let C={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:yce(S),enableContrastVars:o},{vars:w,generateThemeVars:T,generateStyleSheets:E}=Lse(S,C);return S.vars=w,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([e,t])=>{S[e]=t}),S.generateThemeVars=T,S.generateStyleSheets=E,S.generateSpacing=function(){return D6(u.spacing,x6(this))},S.getColorSchemeSelector=Rse(c),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...R6,...u?.unstable_sxConfig},S.unstable_sx=function(e){return z6({sx:e,theme:this})},S.toRuntimeSource=K8,S}function n5(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:B8({...n===!0?{}:n.palette,mode:t})})}function r5(e={},...t){let{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...o}=e,s=a||`light`,c=i?.[s],l={...i,...n?{[s]:{...typeof c!=`boolean`&&c,palette:n}}:void 0};if(r===!1){if(!(`colorSchemes`in e))return J8(e,...t);let r=n;`palette`in e||l[s]&&(l[s]===!0?s===`dark`&&(r={mode:`dark`}):r=l[s].palette);let i=J8({...e,palette:r},...t);return i.defaultColorScheme=s,i.colorSchemes=l,i.palette.mode===`light`&&(i.colorSchemes.light={...l.light!==!0&&l.light,palette:i.palette},n5(i,`dark`,l.dark)),i.palette.mode===`dark`&&(i.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:i.palette},n5(i,`light`,l.light)),i}return!n&&!(`light`in l)&&s===`light`&&(l.light=!0),Cce({...o,colorSchemes:l,defaultColorScheme:s,...typeof r!=`boolean`&&r},...t)}var i5=r5();function a5(){let e=V6(i5);return e.$$material||e}function o5(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}var s5=e=>o5(e)&&e!==`classes`,c5=$6({themeId:E8,defaultTheme:i5,rootShouldForwardProp:s5}),wce=q6(`MuiBox`,[`root`]),l5=hse({themeId:E8,defaultTheme:r5(),defaultClassName:wce.root,generateClassName:G6.generate});function Tce(e){return(0,B.jsx)(pse,{...e,defaultTheme:i5,themeId:E8})}function Ece(e){return function(t){return(0,B.jsx)(Tce,{styles:typeof e==`function`?n=>e({theme:n,...t}):e})}}function Dce(){return U6}var u5=Nse;function d5(e){return jse(e)}var f5=f6;function Oce(e){return typeof e.main==`string`}function kce(e,t=[]){if(!Oce(e))return!1;for(let n of t)if(!e.hasOwnProperty(n)||typeof e[n]!=`string`)return!1;return!0}function p5(e=[]){return([,t])=>t&&kce(t,e)}function Ace(e){return K6(`MuiTypography`,e)}var jce=q6(`MuiTypography`,[`root`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`subtitle1`,`subtitle2`,`body1`,`body2`,`inherit`,`button`,`caption`,`overline`,`alignLeft`,`alignRight`,`alignCenter`,`alignJustify`,`noWrap`,`gutterBottom`,`paragraph`]),Mce={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Nce=Dce(),Pce=e=>{let{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:a,classes:o}=e;return T8({root:[`root`,a,e.align!==`inherit`&&`align${f5(t)}`,n&&`gutterBottom`,r&&`noWrap`,i&&`paragraph`]},Ace,o)},Fce=c5(`span`,{name:`MuiTypography`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!==`inherit`&&t[`align${f5(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(u5(({theme:e})=>({margin:0,variants:[{props:{variant:`inherit`},style:{font:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},...Object.entries(e.typography).filter(([e,t])=>e!==`inherit`&&t&&typeof t==`object`).map(([e,t])=>({props:{variant:e},style:t})),...Object.entries(e.palette).filter(p5()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,e])=>typeof e==`string`).map(([t])=>({props:{color:`text${f5(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:e})=>e.align!==`inherit`,style:{textAlign:`var(--Typography-textAlign)`}},{props:({ownerState:e})=>e.noWrap,style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:`0.35em`}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]}))),m5={h1:`h1`,h2:`h2`,h3:`h3`,h4:`h4`,h5:`h5`,h6:`h6`,subtitle1:`h6`,subtitle2:`h6`,body1:`p`,body2:`p`,inherit:`p`},h5=C.forwardRef(function(e,t){let{color:n,...r}=d5({props:e,name:`MuiTypography`}),i=!Mce[n],a=Nce({...r,...i&&{color:n}}),{align:o=`inherit`,className:s,component:c,gutterBottom:l=!1,noWrap:u=!1,paragraph:d=!1,variant:f=`body1`,variantMapping:p=m5,...m}=a,h={...a,align:o,color:n,className:s,component:c,gutterBottom:l,noWrap:u,paragraph:d,variant:f,variantMapping:p};return(0,B.jsx)(Fce,{as:c||(d?`p`:p[f]||m5[f])||`span`,ref:t,className:V(Pce(h).root,s),...m,ownerState:h,style:{...o!==`inherit`&&{"--Typography-textAlign":o},...m.style}})});function g5(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function Ice(e){return K6(`MuiSvgIcon`,e)}q6(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var Lce=e=>{let{color:t,fontSize:n,classes:r}=e;return T8({root:[`root`,t!==`inherit`&&`color${f5(t)}`,`fontSize${f5(n)}`]},Ice,r)},Rce=c5(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${f5(n.color)}`],t[`fontSize${f5(n.fontSize)}`]]}})(u5(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,transition:e.transitions?.create?.(`fill`,{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:`currentColor`}},{props:{fontSize:`inherit`},style:{fontSize:`inherit`}},{props:{fontSize:`small`},style:{fontSize:e.typography?.pxToRem?.(20)||`1.25rem`}},{props:{fontSize:`medium`},style:{fontSize:e.typography?.pxToRem?.(24)||`1.5rem`}},{props:{fontSize:`large`},style:{fontSize:e.typography?.pxToRem?.(35)||`2.1875rem`}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:`action`},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:`disabled`},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:`inherit`},style:{color:void 0}}]}))),_5=C.forwardRef(function(e,t){let n=d5({props:e,name:`MuiSvgIcon`}),{children:r,className:i,color:a=`inherit`,component:o=`svg`,fontSize:s=`medium`,htmlColor:c,inheritViewBox:l=!1,titleAccess:u,viewBox:d=`0 0 24 24`,...f}=n,p=C.isValidElement(r)&&r.type===`svg`,m={...n,color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:d,hasSvgAsChild:p},h={};return l||(h.viewBox=d),(0,B.jsxs)(Rce,{as:o,className:V(Lce(m).root,i),focusable:`false`,color:c,"aria-hidden":u?void 0:!0,role:u?`img`:void 0,ref:t,...h,...f,...p&&r.props,ownerState:m,children:[p?r.props.children:r,u?(0,B.jsx)(`title`,{children:u}):null]})});_5.muiName=`SvgIcon`;function v5(e,t){function n(t,n){return(0,B.jsx)(_5,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=_5.muiName,C.memo(C.forwardRef(n))}function y5(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function b5(e){return e&&e.ownerDocument||document}var x5=b5;function S5(e){return b5(e).defaultView||window}var C5=S5;function w5(e,t){typeof e==`function`?e(t):e&&(e.current=t)}var T5=r8,E5=x8;function zce(e){let{controlled:t,default:n,name:r,state:i=`value`}=e,{current:a}=C.useRef(t!==void 0),[o,s]=C.useState(n);return[a?t:o,C.useCallback(e=>{a||s(e)},[])]}var D5=zce;function O5(e){let t=C.useRef(e);return r8(()=>{t.current=e}),C.useRef((...e)=>(0,t.current)(...e)).current}var k5=O5;function A5(...e){let t=C.useRef(void 0),n=C.useCallback(t=>{let n=e.map(e=>{if(e==null)return null;if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return C.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var j5=A5;function M5(e){try{return e.matches(`:focus-visible`)}catch{}return!1}var N5={};function P5(e,t){let n=C.useRef(N5);return n.current===N5&&(n.current=e(t)),n}var Bce=class e{static create(){return new e}static use(){let t=P5(e.create).current,[n,r]=C.useState(!1);return t.shouldMount=n,t.setShouldMount=r,C.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=Hce(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};function Vce(){return Bce.use()}function Hce(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}var Uce=[];function Wce(e){C.useEffect(e,Uce)}var F5=class e{static create(){return new e}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function I5(){let e=P5(F5.create).current;return Wce(e.disposeEffect),e}function Gce(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=C.useState(!1),f=V(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=V(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),C.useEffect(()=>{if(!s&&c!=null){let e=setTimeout(c,l);return()=>{clearTimeout(e)}}},[c,s,l]),(0,B.jsx)(`span`,{className:f,style:p,children:(0,B.jsx)(`span`,{className:m})})}var L5=q6(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),R5=550,Kce=Qi`
414
- 0% {
415
- transform: scale(0);
416
- opacity: 0.1;
417
- }
418
-
419
- 100% {
420
- transform: scale(1);
421
- opacity: 0.3;
422
- }
423
- `,qce=Qi`
424
- 0% {
425
- opacity: 1;
426
- }
427
-
428
- 100% {
429
- opacity: 0;
430
- }
431
- `,Jce=Qi`
432
- 0% {
433
- transform: scale(1);
434
- }
435
-
436
- 50% {
437
- transform: scale(0.92);
438
- }
439
-
440
- 100% {
441
- transform: scale(1);
442
- }
443
- `,Yce=c5(`span`,{name:`MuiTouchRipple`,slot:`Root`})({overflow:`hidden`,pointerEvents:`none`,position:`absolute`,zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:`inherit`}),Xce=c5(Gce,{name:`MuiTouchRipple`,slot:`Ripple`})`
444
- opacity: 0;
445
- position: absolute;
446
-
447
- &.${L5.rippleVisible} {
448
- opacity: 0.3;
449
- transform: scale(1);
450
- animation-name: ${Kce};
451
- animation-duration: ${R5}ms;
452
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
453
- }
454
-
455
- &.${L5.ripplePulsate} {
456
- animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
457
- }
458
-
459
- & .${L5.child} {
460
- opacity: 1;
461
- display: block;
462
- width: 100%;
463
- height: 100%;
464
- border-radius: 50%;
465
- background-color: currentColor;
466
- }
467
-
468
- & .${L5.childLeaving} {
469
- opacity: 0;
470
- animation-name: ${qce};
471
- animation-duration: ${R5}ms;
472
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
473
- }
474
-
475
- & .${L5.childPulsate} {
476
- position: absolute;
477
- /* @noflip */
478
- left: 0px;
479
- top: 0;
480
- animation-name: ${Jce};
481
- animation-duration: 2500ms;
482
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
483
- animation-iteration-count: infinite;
484
- animation-delay: 200ms;
485
- }
486
- `,Zce=C.forwardRef(function(e,t){let{center:n=!1,classes:r={},className:i,...a}=d5({props:e,name:`MuiTouchRipple`}),[o,s]=C.useState([]),c=C.useRef(0),l=C.useRef(null);C.useEffect(()=>{l.current&&=(l.current(),null)},[o]);let u=C.useRef(!1),d=I5(),f=C.useRef(null),p=C.useRef(null),m=C.useCallback(e=>{let{pulsate:t,rippleX:n,rippleY:i,rippleSize:a,cb:o}=e;s(e=>[...e,(0,B.jsx)(Xce,{classes:{ripple:V(r.ripple,L5.ripple),rippleVisible:V(r.rippleVisible,L5.rippleVisible),ripplePulsate:V(r.ripplePulsate,L5.ripplePulsate),child:V(r.child,L5.child),childLeaving:V(r.childLeaving,L5.childLeaving),childPulsate:V(r.childPulsate,L5.childPulsate)},timeout:R5,pulsate:t,rippleX:n,rippleY:i,rippleSize:a},c.current)]),c.current+=1,l.current=o},[r]),h=C.useCallback((e={},t={},r=()=>{})=>{let{pulsate:i=!1,center:a=n||t.pulsate,fakeElement:o=!1}=t;if(e?.type===`mousedown`&&u.current){u.current=!1;return}e?.type===`touchstart`&&(u.current=!0);let s=o?null:p.current,c=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0},l,h,g;if(a||e===void 0||e.clientX===0&&e.clientY===0||!e.clientX&&!e.touches)l=Math.round(c.width/2),h=Math.round(c.height/2);else{let{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;l=Math.round(t-c.left),h=Math.round(n-c.top)}if(a)g=Math.sqrt((2*c.width**2+c.height**2)/3),g%2==0&&(g+=1);else{let e=Math.max(Math.abs((s?s.clientWidth:0)-l),l)*2+2,t=Math.max(Math.abs((s?s.clientHeight:0)-h),h)*2+2;g=Math.sqrt(e**2+t**2)}e?.touches?f.current===null&&(f.current=()=>{m({pulsate:i,rippleX:l,rippleY:h,rippleSize:g,cb:r})},d.start(80,()=>{f.current&&=(f.current(),null)})):m({pulsate:i,rippleX:l,rippleY:h,rippleSize:g,cb:r})},[n,m,d]),g=C.useCallback(()=>{h({},{pulsate:!0})},[h]),_=C.useCallback((e,t)=>{if(d.clear(),e?.type===`touchend`&&f.current){f.current(),f.current=null,d.start(0,()=>{_(e,t)});return}f.current=null,s(e=>e.length>0?e.slice(1):e),l.current=t},[d]);return C.useImperativeHandle(t,()=>({pulsate:g,start:h,stop:_}),[g,h,_]),(0,B.jsx)(Yce,{className:V(L5.root,r.root,i),ref:p,...a,children:(0,B.jsx)(Em,{component:null,exit:!0,children:o})})});function Qce(e){return K6(`MuiButtonBase`,e)}var $ce=q6(`MuiButtonBase`,[`root`,`disabled`,`focusVisible`]),ele=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=T8({root:[`root`,t&&`disabled`,n&&`focusVisible`]},Qce,i);return n&&r&&(a.root+=` ${r}`),a},tle=c5(`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`},[`&.${$ce.disabled}`]:{pointerEvents:`none`,cursor:`default`},"@media print":{colorAdjust:`exact`}}),z5=C.forwardRef(function(e,t){let n=d5({props:e,name:`MuiButtonBase`}),{action:r,centerRipple:i=!1,children:a,className:o,component:s=`button`,disabled:c=!1,disableRipple:l=!1,disableTouchRipple:u=!1,focusRipple:d=!1,focusVisibleClassName:f,LinkComponent:p=`a`,onBlur:m,onClick:h,onContextMenu:g,onDragLeave:_,onFocus:v,onFocusVisible:y,onKeyDown:b,onKeyUp:x,onMouseDown:S,onMouseLeave:w,onMouseUp:T,onTouchEnd:E,onTouchMove:D,onTouchStart:O,tabIndex:k=0,TouchRippleProps:A,touchRippleRef:j,type:M,...N}=n,P=C.useRef(null),F=Vce(),I=j5(F.ref,j),[L,ee]=C.useState(!1);c&&L&&ee(!1),C.useImperativeHandle(r,()=>({focusVisible:()=>{ee(!0),P.current.focus()}}),[]);let te=F.shouldMount&&!l&&!c;C.useEffect(()=>{L&&d&&!l&&F.pulsate()},[l,d,L,F]);let ne=B5(F,`start`,S,u),re=B5(F,`stop`,g,u),ie=B5(F,`stop`,_,u),R=B5(F,`stop`,T,u),ae=B5(F,`stop`,e=>{L&&e.preventDefault(),w&&w(e)},u),oe=B5(F,`start`,O,u),se=B5(F,`stop`,E,u),ce=B5(F,`stop`,D,u),le=B5(F,`stop`,e=>{M5(e.target)||ee(!1),m&&m(e)},!1),ue=k5(e=>{P.current||=e.currentTarget,M5(e.target)&&(ee(!0),y&&y(e)),v&&v(e)}),z=()=>{let e=P.current;return e?e.tagName===`BUTTON`?!1:!(e.tagName===`A`&&e.href):s&&s!==`button`},de=k5(e=>{d&&!e.repeat&&L&&e.key===` `&&F.stop(e,()=>{F.start(e)}),e.target===e.currentTarget&&z()&&e.key===` `&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&z()&&e.key===`Enter`&&!c&&(e.preventDefault(),h&&h(e))}),fe=k5(e=>{d&&e.key===` `&&L&&!e.defaultPrevented&&F.stop(e,()=>{F.pulsate(e)}),x&&x(e),h&&e.target===e.currentTarget&&z()&&e.key===` `&&!e.defaultPrevented&&!c&&h(e)}),pe=s;pe===`button`&&(N.href||N.to)&&(pe=p);let me={};if(pe===`button`){let e=!!N.formAction;me.type=M===void 0&&!e?`button`:M,me.disabled=c}else !N.href&&!N.to&&(me.role=`button`),c&&(me[`aria-disabled`]=c);let he=j5(t,P),ge={...n,centerRipple:i,component:s,disabled:c,disableRipple:l,disableTouchRipple:u,focusRipple:d,tabIndex:k,focusVisible:L},_e=ele(ge);return(0,B.jsxs)(tle,{as:pe,className:V(_e.root,o),ownerState:ge,onBlur:le,onClick:h,onContextMenu:re,onFocus:ue,onKeyDown:de,onKeyUp:fe,onMouseDown:ne,onMouseLeave:ae,onMouseUp:R,onDragLeave:ie,onTouchEnd:se,onTouchMove:ce,onTouchStart:oe,ref:he,tabIndex:c?-1:k,type:M,...me,...N,children:[a,te?(0,B.jsx)(Zce,{ref:I,center:i,...A}):null]})});function B5(e,t,n,r=!1){return k5(i=>(n&&n(i),r||e[t](i),!0))}function nle(e){return K6(`MuiCircularProgress`,e)}q6(`MuiCircularProgress`,[`root`,`determinate`,`indeterminate`,`colorPrimary`,`colorSecondary`,`svg`,`track`,`circle`,`circleDeterminate`,`circleIndeterminate`,`circleDisableShrink`]);var V5=44,H5=Qi`
487
- 0% {
488
- transform: rotate(0deg);
489
- }
490
-
491
- 100% {
492
- transform: rotate(360deg);
493
- }
494
- `,U5=Qi`
495
- 0% {
496
- stroke-dasharray: 1px, 200px;
497
- stroke-dashoffset: 0;
498
- }
499
-
500
- 50% {
501
- stroke-dasharray: 100px, 200px;
502
- stroke-dashoffset: -15px;
503
- }
504
-
505
- 100% {
506
- stroke-dasharray: 1px, 200px;
507
- stroke-dashoffset: -126px;
508
- }
509
- `,rle=typeof H5==`string`?null:Zi`
510
- animation: ${H5} 1.4s linear infinite;
511
- `,ile=typeof U5==`string`?null:Zi`
512
- animation: ${U5} 1.4s ease-in-out infinite;
513
- `,ale=e=>{let{classes:t,variant:n,color:r,disableShrink:i}=e;return T8({root:[`root`,n,`color${f5(r)}`],svg:[`svg`],track:[`track`],circle:[`circle`,`circle${f5(n)}`,i&&`circleDisableShrink`]},nle,t)},ole=c5(`span`,{name:`MuiCircularProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`color${f5(n.color)}`]]}})(u5(({theme:e})=>({display:`inline-block`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`transform`)}},{props:{variant:`indeterminate`},style:rle||{animation:`${H5} 1.4s linear infinite`}},...Object.entries(e.palette).filter(p5()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),sle=c5(`svg`,{name:`MuiCircularProgress`,slot:`Svg`})({display:`block`}),cle=c5(`circle`,{name:`MuiCircularProgress`,slot:`Circle`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,t[`circle${f5(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(u5(({theme:e})=>({stroke:`currentColor`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`stroke-dashoffset`)}},{props:{variant:`indeterminate`},style:{strokeDasharray:`80px, 200px`,strokeDashoffset:0}},{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:ile||{animation:`${U5} 1.4s ease-in-out infinite`}}]}))),lle=c5(`circle`,{name:`MuiCircularProgress`,slot:`Track`})(u5(({theme:e})=>({stroke:`currentColor`,opacity:(e.vars||e).palette.action.activatedOpacity}))),W5=C.forwardRef(function(e,t){let n=d5({props:e,name:`MuiCircularProgress`}),{className:r,color:i=`primary`,disableShrink:a=!1,enableTrackSlot:o=!1,size:s=40,style:c,thickness:l=3.6,value:u=0,variant:d=`indeterminate`,...f}=n,p={...n,color:i,disableShrink:a,size:s,thickness:l,value:u,variant:d,enableTrackSlot:o},m=ale(p),h={},g={},_={};if(d===`determinate`){let e=2*Math.PI*((V5-l)/2);h.strokeDasharray=e.toFixed(3),_[`aria-valuenow`]=Math.round(u),h.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,g.transform=`rotate(-90deg)`}return(0,B.jsx)(ole,{className:V(m.root,r),style:{width:s,height:s,...g,...c},ownerState:p,ref:t,role:`progressbar`,..._,...f,children:(0,B.jsxs)(sle,{className:m.svg,ownerState:p,viewBox:`${V5/2} ${V5/2} ${V5} ${V5}`,children:[o?(0,B.jsx)(lle,{className:m.track,ownerState:p,cx:V5,cy:V5,r:(V5-l)/2,fill:`none`,strokeWidth:l,"aria-hidden":`true`}):null,(0,B.jsx)(cle,{className:m.circle,style:h,ownerState:p,cx:V5,cy:V5,r:(V5-l)/2,fill:`none`,strokeWidth:l})]})})});function ule(e){return K6(`MuiIconButton`,e)}var G5=q6(`MuiIconButton`,[`root`,`disabled`,`colorInherit`,`colorPrimary`,`colorSecondary`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`,`edgeStart`,`edgeEnd`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`loading`,`loadingIndicator`,`loadingWrapper`]),dle=e=>{let{classes:t,disabled:n,color:r,edge:i,size:a,loading:o}=e;return T8({root:[`root`,o&&`loading`,n&&`disabled`,r!==`default`&&`color${f5(r)}`,i&&`edge${f5(i)}`,`size${f5(a)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},ule,t)},fle=c5(z5,{name:`MuiIconButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!==`default`&&t[`color${f5(n.color)}`],n.edge&&t[`edge${f5(n.edge)}`],t[`size${f5(n.size)}`]]}})(u5(({theme:e})=>({textAlign:`center`,flex:`0 0 auto`,fontSize:e.typography.pxToRem(24),padding:8,borderRadius:`50%`,color:(e.vars||e).palette.action.active,transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).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}}]})),u5(({theme:e})=>({variants:[{props:{color:`inherit`},style:{color:`inherit`}},...Object.entries(e.palette).filter(p5()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(p5()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:`small`},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:`large`},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${G5.disabled}`]:{backgroundColor:`transparent`,color:(e.vars||e).palette.action.disabled},[`&.${G5.loading}`]:{color:`transparent`}}))),ple=c5(`span`,{name:`MuiIconButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:`flex`}}]})),K5=C.forwardRef(function(e,t){let n=d5({props:e,name:`MuiIconButton`}),{edge:r=!1,children:i,className:a,color:o=`default`,disabled:s=!1,disableFocusRipple:c=!1,size:l=`medium`,id:u,loading:d=null,loadingIndicator:f,...p}=n,m=E5(u),h=f??(0,B.jsx)(W5,{"aria-labelledby":m,color:`inherit`,size:16}),g={...n,edge:r,color:o,disabled:s,disableFocusRipple:c,loading:d,loadingIndicator:h,size:l},_=dle(g);return(0,B.jsxs)(fle,{id:d?m:u,className:V(_.root,a),centerRipple:!0,focusRipple:!c,disabled:s||d,ref:t,...p,ownerState:g,children:[typeof d==`boolean`&&(0,B.jsx)(`span`,{className:_.loadingWrapper,style:{display:`contents`},children:(0,B.jsx)(ple,{className:_.loadingIndicator,ownerState:g,children:d&&h})}),i]})});function q5(e){return e?.props?.ref||null}var J5=e=>e.scrollTop;function Y5(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function X5(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function Z5(e,t){let{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n==`number`?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r==`object`?r[t.mode]:r),delay:i.transitionDelay}}function Q5(e){return`scale(${e}, ${e**2})`}var mle={entering:{opacity:1,transform:Q5(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:Q5(.75)},exited:{opacity:0,transform:Q5(.75)}},hle={opacity:0,transform:Q5(.75),visibility:`hidden`},$5=C.forwardRef(function(e,t){let{addEndListener:n,appear:r=!0,children:i,easing:a,in:o,onEnter:s,onEntered:c,onEntering:l,onExit:u,onExited:d,onExiting:f,style:p,timeout:m=`auto`,...h}=e,g=I5(),_=C.useRef(),v=a5(),y=C.useRef(null),b=j5(y,q5(i),t),x=Y5(y,l),S=Y5(y,(e,t)=>{J5(e);let{duration:n,delay:r,easing:i}=Z5({style:p,timeout:m,easing:a},{mode:`enter`}),o;m===`auto`?(o=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=o):o=n,e.style.transition=[v.transitions.create(`opacity`,{duration:o,delay:r}),v.transitions.create(`transform`,{duration:o*.666,delay:r,easing:i})].join(`,`),s&&s(e,t)}),w=Y5(y,c),T=Y5(y,f),E=Y5(y,e=>{let{duration:t,delay:n,easing:r}=Z5({style:p,timeout:m,easing:a},{mode:`exit`}),i;m===`auto`?(i=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=i):i=t,e.style.transition=[v.transitions.create(`opacity`,{duration:i,delay:n}),v.transitions.create(`transform`,{duration:i*.666,delay:n||i*.333,easing:r})].join(`,`),e.style.opacity=0,e.style.transform=Q5(.75),u&&u(e)}),D=Y5(y,e=>{e.style.transition=``,d&&d(e)});return(0,B.jsx)(vm,{appear:r,in:o,nodeRef:y,onEnter:S,onEntered:w,onEntering:x,onExit:E,onExited:D,onExiting:T,addEndListener:e=>{m===`auto`&&g.start(_.current||0,e),n&&n(y.current,e)},timeout:m===`auto`?null:m,...h,children:(e,{ownerState:t,...n})=>{let r=X5(e,o,mle,hle,p,i.props.style);return C.cloneElement(i,{style:r,ref:b,...n})}})});$5&&($5.muiSupportAuto=!0);function e7(e){return typeof e==`string`}function t7(e,t,n){return e===void 0||e7(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function n7(e,t=[]){if(e===void 0)return{};let n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]==`function`&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function r7(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]==`function`)).forEach(n=>{t[n]=e[n]}),t}function i7(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=V(n?.className,a,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},o={...n,...i,...r};return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let o=n7({...i,...r}),s=r7(r),c=r7(i),l=t(o),u=V(l?.className,n?.className,a,i?.className,r?.className),d={...l?.style,...n?.style,...i?.style,...r?.style},f={...l,...n,...c,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:l.ref}}function a7(e,t,n){return typeof e==`function`?e(t,n):e}function o7(e){let{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,o=i?{}:a7(n,r),{props:s,internalRef:c}=i7({...a,externalSlotProps:o}),l=A5(c,o?.ref,e.additionalProps?.ref);return t7(t,{...s,ref:l},r)}function gle(e){return typeof e==`function`?e():e}var s7=C.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=C.useState(null),s=A5(C.isValidElement(n)?q5(n):null,t);if(r8(()=>{i||o(gle(r)||document.body)},[r,i]),r8(()=>{if(a&&!i)return w5(t,a),()=>{w5(t,null)}},[t,a,i]),i){if(C.isValidElement(n)){let e={ref:s};return C.cloneElement(n,e)}return n}return a&&fm.createPortal(n,a)});function _le(e){return K6(`MuiPopper`,e)}q6(`MuiPopper`,[`root`]);function vle(e,t){if(t===`ltr`)return e;switch(e){case`bottom-end`:return`bottom-start`;case`bottom-start`:return`bottom-end`;case`top-end`:return`top-start`;case`top-start`:return`top-end`;default:return e}}function c7(e){return typeof e==`function`?e():e}function yle(e){return e.nodeType!==void 0}var ble=e=>{let{classes:t}=e;return T8({root:[`root`]},_le,t)},xle={},Sle=C.forwardRef(function(e,t){let{anchorEl:n,children:r,direction:i,disablePortal:o,modifiers:s,open:c,placement:l,popperOptions:u,popperRef:d,slotProps:f={},slots:p={},TransitionProps:m,ownerState:h,...g}=e,_=C.useRef(null),v=A5(_,t),y=C.useRef(null),b=A5(y,d),x=C.useRef(b);r8(()=>{x.current=b},[b]),C.useImperativeHandle(d,()=>y.current,[]);let S=vle(l,i),[w,T]=C.useState(S),[E,D]=C.useState(c7(n));C.useEffect(()=>{y.current&&y.current.forceUpdate()}),C.useEffect(()=>{n&&D(c7(n))},[n]),r8(()=>{if(!E||!c)return;let e=e=>{T(e.placement)},t=[{name:`preventOverflow`,options:{altBoundary:o}},{name:`flip`,options:{altBoundary:o}},{name:`onUpdate`,enabled:!0,phase:`afterWrite`,fn:({state:t})=>{e(t)}}];s!=null&&(t=t.concat(s)),u&&u.modifiers!=null&&(t=t.concat(u.modifiers));let n=a(E,_.current,{placement:S,...u,modifiers:t});return x.current(n),()=>{n.destroy(),x.current(null)}},[E,o,s,c,u,S]);let O={placement:w};m!==null&&(O.TransitionProps=m);let k=ble(e),A=p.root??`div`;return(0,B.jsx)(A,{...o7({elementType:A,externalSlotProps:f.root,externalForwardedProps:g,additionalProps:{role:`tooltip`,ref:v},ownerState:e,className:k.root}),children:typeof r==`function`?r(O):r})}),Cle=c5(C.forwardRef(function(e,t){let{anchorEl:n,children:r,container:i,direction:a=`ltr`,disablePortal:o=!1,keepMounted:s=!1,modifiers:c,open:l,placement:u=`bottom`,popperOptions:d=xle,popperRef:f,style:p,transition:m=!1,slotProps:h={},slots:g={},..._}=e,[v,y]=C.useState(!0),b=()=>{y(!1)},x=()=>{y(!0)};if(!s&&!l&&(!m||v))return null;let S;if(i)S=i;else if(n){let e=c7(n);S=e&&yle(e)?b5(e).body:b5(null).body}let w=!l&&s&&(!m||v)?`none`:void 0,T=m?{in:l,onEnter:b,onExited:x}:void 0;return(0,B.jsx)(s7,{disablePortal:o,container:S,children:(0,B.jsx)(Sle,{anchorEl:n,direction:a,disablePortal:o,modifiers:c,ref:t,open:m?!v:l,placement:u,popperOptions:d,popperRef:f,slotProps:h,slots:g,..._,style:{position:`fixed`,top:0,left:0,display:w,...p},TransitionProps:T,children:r})})}),{name:`MuiPopper`,slot:`Root`})({}),l7=C.forwardRef(function(e,t){let n=v8(),{anchorEl:r,component:i,components:a,componentsProps:o,container:s,disablePortal:c,keepMounted:l,modifiers:u,open:d,placement:f,popperOptions:p,popperRef:m,transition:h,slots:g,slotProps:_,...v}=d5({props:e,name:`MuiPopper`}),y=g?.root??a?.Root,b={anchorEl:r,container:s,disablePortal:c,keepMounted:l,modifiers:u,open:d,placement:f,popperOptions:p,popperRef:m,transition:h,...v};return(0,B.jsx)(Cle,{as:i,direction:n?`rtl`:`ltr`,slots:{root:y},slotProps:_??o,...b,ref:t})});function u7(e,t){let{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1,...c}=t,{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=u[e]||r,m=a7(d[e],i),{props:{component:h,...g},internalRef:_}=i7({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=A5(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,t7(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}function wle(e){return K6(`MuiTooltip`,e)}var d7=q6(`MuiTooltip`,[`popper`,`popperInteractive`,`popperArrow`,`popperClose`,`tooltip`,`tooltipArrow`,`touch`,`tooltipPlacementLeft`,`tooltipPlacementRight`,`tooltipPlacementTop`,`tooltipPlacementBottom`,`arrow`]);function Tle(e){return Math.round(e*1e5)/1e5}var Ele=e=>{let{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e;return T8({popper:[`popper`,!n&&`popperInteractive`,r&&`popperArrow`],tooltip:[`tooltip`,r&&`tooltipArrow`,i&&`touch`,`tooltipPlacement${f5(a.split(`-`)[0])}`],arrow:[`arrow`]},wle,t)},Dle=c5(l7,{name:`MuiTooltip`,slot:`Popper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(u5(({theme:e})=>({zIndex:(e.vars||e).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"] .${d7.arrow}`]:{top:0,marginTop:`-0.71em`,"&::before":{transformOrigin:`0 100%`}},[`&[data-popper-placement*="top"] .${d7.arrow}`]:{bottom:0,marginBottom:`-0.71em`,"&::before":{transformOrigin:`100% 0`}},[`&[data-popper-placement*="right"] .${d7.arrow}`]:{height:`1em`,width:`0.71em`,"&::before":{transformOrigin:`100% 100%`}},[`&[data-popper-placement*="left"] .${d7.arrow}`]:{height:`1em`,width:`0.71em`,"&::before":{transformOrigin:`0 0`}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${d7.arrow}`]:{left:0,marginLeft:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${d7.arrow}`]:{right:0,marginRight:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${d7.arrow}`]:{right:0,marginRight:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${d7.arrow}`]:{left:0,marginLeft:`-0.71em`}}}]}))),Ole=c5(`div`,{name:`MuiTooltip`,slot:`Tooltip`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${f5(n.placement.split(`-`)[0])}`]]}})(u5(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:`4px 8px`,fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:`break-word`,fontWeight:e.typography.fontWeightMedium,[`.${d7.popper}[data-popper-placement*="left"] &`]:{transformOrigin:`right center`},[`.${d7.popper}[data-popper-placement*="right"] &`]:{transformOrigin:`left center`},[`.${d7.popper}[data-popper-placement*="top"] &`]:{transformOrigin:`center bottom`,marginBottom:`14px`},[`.${d7.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:e.typography.pxToRem(14),lineHeight:`${Tle(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${d7.popper}[data-popper-placement*="left"] &`]:{marginRight:`14px`},[`.${d7.popper}[data-popper-placement*="right"] &`]:{marginLeft:`14px`}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${d7.popper}[data-popper-placement*="left"] &`]:{marginRight:`24px`},[`.${d7.popper}[data-popper-placement*="right"] &`]:{marginLeft:`24px`}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${d7.popper}[data-popper-placement*="left"] &`]:{marginLeft:`14px`},[`.${d7.popper}[data-popper-placement*="right"] &`]:{marginRight:`14px`}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${d7.popper}[data-popper-placement*="left"] &`]:{marginLeft:`24px`},[`.${d7.popper}[data-popper-placement*="right"] &`]:{marginRight:`24px`}}},{props:({ownerState:e})=>e.touch,style:{[`.${d7.popper}[data-popper-placement*="top"] &`]:{marginBottom:`24px`}}},{props:({ownerState:e})=>e.touch,style:{[`.${d7.popper}[data-popper-placement*="bottom"] &`]:{marginTop:`24px`}}}]}))),kle=c5(`span`,{name:`MuiTooltip`,slot:`Arrow`})(u5(({theme:e})=>({overflow:`hidden`,position:`absolute`,width:`1em`,height:`0.71em`,boxSizing:`border-box`,color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:`""`,margin:`auto`,display:`block`,width:`100%`,height:`100%`,backgroundColor:`currentColor`,transform:`rotate(45deg)`}}))),f7=!1,p7=new F5,m7={x:0,y:0};function h7(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}var g7=C.forwardRef(function(e,t){let n=d5({props:e,name:`MuiTooltip`}),{arrow:r=!1,children:i,classes:a,components:o={},componentsProps:s={},describeChild:c=!1,disableFocusListener:l=!1,disableHoverListener:u=!1,disableInteractive:d=!1,disableTouchListener:f=!1,enterDelay:p=100,enterNextDelay:m=0,enterTouchDelay:h=700,followCursor:g=!1,id:_,leaveDelay:v=0,leaveTouchDelay:y=1500,onClose:b,onOpen:x,open:S,placement:w=`bottom`,PopperComponent:T,PopperProps:E={},slotProps:D={},slots:O={},title:k,TransitionComponent:A,TransitionProps:j,...M}=n,N=C.isValidElement(i)?i:(0,B.jsx)(`span`,{children:i}),P=a5(),F=v8(),[I,L]=C.useState(),[ee,te]=C.useState(null),ne=C.useRef(!1),re=d||g,ie=I5(),R=I5(),ae=I5(),oe=I5(),[se,ce]=D5({controlled:S,default:!1,name:`Tooltip`,state:`open`}),le=se,ue=E5(_),z=C.useRef(),de=k5(()=>{z.current!==void 0&&(document.body.style.WebkitUserSelect=z.current,z.current=void 0),oe.clear()});C.useEffect(()=>de,[de]);let fe=e=>{p7.clear(),f7=!0,ce(!0),x&&!le&&x(e)},pe=k5(e=>{p7.start(800+v,()=>{f7=!1}),ce(!1),b&&le&&b(e),ie.start(P.transitions.duration.shortest,()=>{ne.current=!1})}),me=e=>{ne.current&&e.type!==`touchstart`||(I&&I.removeAttribute(`title`),R.clear(),ae.clear(),p||f7&&m?R.start(f7?m:p,()=>{fe(e)}):fe(e))},he=e=>{R.clear(),ae.start(v,()=>{pe(e)})},[,ge]=C.useState(!1),_e=e=>{let t=e?.target??I;if(!t||!M5(t)){ge(!1);let n=e??new Event(`blur`);!e&&t&&(Object.defineProperty(n,`target`,{value:t}),Object.defineProperty(n,`currentTarget`,{value:t})),he(n)}},ve=e=>{I||L(e.currentTarget),M5(e.target)&&(ge(!0),me(e))},ye=e=>{ne.current=!0;let t=N.props;t.onTouchStart&&t.onTouchStart(e)},be=e=>{ye(e),ae.clear(),ie.clear(),de(),z.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect=`none`,oe.start(h,()=>{document.body.style.WebkitUserSelect=z.current,me(e)})},xe=e=>{N.props.onTouchEnd&&N.props.onTouchEnd(e),de(),ae.start(y,()=>{pe(e)})};C.useEffect(()=>{if(!le)return;function e(e){e.key===`Escape`&&pe(e)}return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[pe,le]);let Se=j5(q5(N),L,t);!k&&k!==0&&(le=!1);let Ce=C.useRef(),we=e=>{let t=N.props;t.onMouseMove&&t.onMouseMove(e),m7={x:e.clientX,y:e.clientY},Ce.current&&Ce.current.update()},Te={},Ee=typeof k==`string`;c?(Te.title=!le&&Ee&&!u?k:null,Te[`aria-describedby`]=le?ue:null):(Te[`aria-label`]=Ee?k:null,Te[`aria-labelledby`]=le&&!Ee?ue:null);let De={...Te,...M,...N.props,className:V(M.className,N.props.className),onTouchStart:ye,ref:Se,...g?{onMouseMove:we}:{}},Oe={};f||(De.onTouchStart=be,De.onTouchEnd=xe),u||(De.onMouseOver=h7(me,De.onMouseOver),De.onMouseLeave=h7(he,De.onMouseLeave),re||(Oe.onMouseOver=me,Oe.onMouseLeave=he)),l||(De.onFocus=h7(ve,De.onFocus),De.onBlur=h7(_e,De.onBlur),re||(Oe.onFocus=ve,Oe.onBlur=_e));let ke={...n,isRtl:F,arrow:r,disableInteractive:re,placement:w,PopperComponentProp:T,touch:ne.current},Ae=typeof D.popper==`function`?D.popper(ke):D.popper,je=C.useMemo(()=>{let e=[{name:`arrow`,enabled:!!ee,options:{element:ee,padding:4}}];return E.popperOptions?.modifiers&&(e=e.concat(E.popperOptions.modifiers)),Ae?.popperOptions?.modifiers&&(e=e.concat(Ae.popperOptions.modifiers)),{...E.popperOptions,...Ae?.popperOptions,modifiers:e}},[ee,E.popperOptions,Ae?.popperOptions]),Me=Ele(ke),Ne=typeof D.transition==`function`?D.transition(ke):D.transition,Pe={slots:{popper:o.Popper,transition:o.Transition??A,tooltip:o.Tooltip,arrow:o.Arrow,...O},slotProps:{arrow:D.arrow??s.arrow,popper:{...E,...Ae??s.popper},tooltip:D.tooltip??s.tooltip,transition:{...j,...Ne??s.transition}}},[Fe,Ie]=u7(`popper`,{elementType:Dle,externalForwardedProps:Pe,ownerState:ke,className:V(Me.popper,E?.className)}),[Le,Re]=u7(`transition`,{elementType:$5,externalForwardedProps:Pe,ownerState:ke}),[ze,Be]=u7(`tooltip`,{elementType:Ole,className:Me.tooltip,externalForwardedProps:Pe,ownerState:ke}),[Ve,He]=u7(`arrow`,{elementType:kle,className:Me.arrow,externalForwardedProps:Pe,ownerState:ke,ref:te});return(0,B.jsxs)(C.Fragment,{children:[C.cloneElement(N,De),(0,B.jsx)(Fe,{as:T??l7,placement:w,anchorEl:g?{getBoundingClientRect:()=>({top:m7.y,left:m7.x,right:m7.x,bottom:m7.y,width:0,height:0})}:I,popperRef:Ce,open:I?le:!1,id:ue,transition:!0,...Oe,...Ie,popperOptions:je,children:({TransitionProps:e})=>(0,B.jsx)(Le,{timeout:P.transitions.duration.shorter,...e,...Re,children:(0,B.jsxs)(ze,{...Be,children:[k,r?(0,B.jsx)(Ve,{...He}):null]})})})]})}),_7=Gse({createStyledComponent:c5(`div`,{name:`MuiStack`,slot:`Root`}),useThemeProps:e=>d5({props:e,name:`MuiStack`})}),Ale=class{ws=null;reconnectTimer=null;heartbeatTimer=null;reconnectAttempts=0;intentionalClose=!1;eventListeners=new Map;connectionListeners=new Set;_connected=!1;url;autoReconnect;maxReconnectAttempts;reconnectDelay;maxReconnectDelay;heartbeatInterval;constructor(e={}){let t=window.location.protocol===`https:`?`wss:`:`ws:`,n=parseInt(window.location.port||`9802`,10);this.url=e.url??`${t}//${window.location.hostname}:${n}/ws`,this.autoReconnect=e.autoReconnect??!0,this.maxReconnectAttempts=e.maxReconnectAttempts??1/0,this.reconnectDelay=e.reconnectDelay??1e3,this.maxReconnectDelay=e.maxReconnectDelay??3e4,this.heartbeatInterval=e.heartbeatInterval??3e4}get connected(){return this._connected}connect(){if(!(this.ws&&(this.ws.readyState===WebSocket.CONNECTING||this.ws.readyState===WebSocket.OPEN))){this.intentionalClose=!1;try{this.ws=new WebSocket(this.url),this.ws.onopen=()=>{this._connected=!0,this.reconnectAttempts=0,this.startHeartbeat(),this.notifyConnection(!0)},this.ws.onmessage=e=>{try{let t=JSON.parse(e.data);this.dispatchEvent(t)}catch{}},this.ws.onclose=()=>{this._connected=!1,this.stopHeartbeat(),this.notifyConnection(!1),!this.intentionalClose&&this.autoReconnect&&this.scheduleReconnect()},this.ws.onerror=()=>{}}catch{this.autoReconnect&&this.scheduleReconnect()}}}disconnect(){this.intentionalClose=!0,this.reconnectTimer&&=(clearTimeout(this.reconnectTimer),null),this.stopHeartbeat(),this.ws&&=(this.ws.close(),null),this._connected=!1}on(e,t){let n=this.eventListeners.get(e);return n||(n=new Set,this.eventListeners.set(e,n)),n.add(t),()=>{n.delete(t),n.size===0&&this.eventListeners.delete(e)}}onConnection(e){return this.connectionListeners.add(e),()=>this.connectionListeners.delete(e)}dispatchEvent(e){let t=this.eventListeners.get(e.channel);if(t)for(let n of t)n(e);for(let[t,n]of this.eventListeners)if(t===`*`)for(let t of n)t(e);else if(t.endsWith(`.*`)){let r=t.slice(0,-2);if(e.channel.startsWith(r+`.`))for(let t of n)t(e)}}notifyConnection(e){for(let t of this.connectionListeners)try{t(e)}catch{}}scheduleReconnect(){if(this.reconnectAttempts>=this.maxReconnectAttempts)return;let e=Math.min(this.reconnectDelay*2**this.reconnectAttempts,this.maxReconnectDelay);this.reconnectTimer=setTimeout(()=>{this.reconnectAttempts++,this.connect()},e)}startHeartbeat(){this.stopHeartbeat(),this.heartbeatTimer=setInterval(()=>{this.ws?.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify({type:`ping`}))},this.heartbeatInterval)}stopHeartbeat(){this.heartbeatTimer&&=(clearInterval(this.heartbeatTimer),null)}},v7=null;function jle(){return v7||=new Ale,v7}var y7=OE((e,t)=>({connected:!1,appEvents:[],infraEvents:[],alerts:[],lastMetricsUpdate:0,lastEvent:null,deployProgress:[],initialize:()=>{let t=jle(),n=[];return n.push(t.onConnection(t=>{e({connected:t})})),n.push(t.on(`app.*`,t=>{let n=t.data,r={name:n.name??`unknown`,pid:n.pid??null,status:t.channel.split(`.`)[1]??`unknown`,timestamp:t.timestamp};e(e=>({appEvents:[r,...e.appEvents].slice(0,50),lastEvent:t}))})),n.push(t.on(`infra.*`,t=>{let n=t.data,r={service:n.service??n.services?.join(`, `)??`unknown`,status:t.channel.split(`.`)[1]??`unknown`,timestamp:t.timestamp};e(e=>({infraEvents:[r,...e.infraEvents].slice(0,20),lastEvent:t}))})),n.push(t.on(`alert.*`,t=>{let n=t.data,r={ruleId:n.ruleId??``,ruleName:n.ruleName??``,severity:n.severity??`info`,message:n.message,timestamp:t.timestamp};e(e=>t.channel===`alert.resolved`?{alerts:e.alerts.filter(e=>e.ruleId!==r.ruleId),lastEvent:t}:{alerts:[r,...e.alerts.filter(e=>e.ruleId!==r.ruleId)],lastEvent:t})})),n.push(t.on(`metrics.collected`,t=>{e({lastMetricsUpdate:t.timestamp,lastEvent:t})})),n.push(t.on(`project.*`,t=>{e({lastEvent:t})})),n.push(t.on(`stack.*`,t=>{if(t.channel===`stack.deploy_progress`){let n=t.data;e(e=>({deployProgress:[...e.deployProgress.filter(e=>!(e.node===n.node&&e.app===n.app)).filter(e=>Date.now()-e.timestamp<3e4||e.status!==`success`&&e.status!==`failed`),{...n,timestamp:t.timestamp}],lastEvent:t}))}else e({lastEvent:t})})),n.push(t.on(`daemon.*`,t=>{e({lastEvent:t})})),t.connect(),()=>{for(let e of n)e();t.disconnect()}}}));function b7({color:e,pulse:t}){return(0,B.jsx)(l5,{sx:{width:6,height:6,borderRadius:`50%`,bgcolor:e,flexShrink:0,...t&&{boxShadow:`0 0 4px ${e}`,animation:`pulse 2s ease-in-out infinite`,"@keyframes pulse":{"0%, 100%":{opacity:1},"50%":{opacity:.5}}}}})}function Mle(e){let t=Math.floor(e/1e3);if(t<60)return`${t}s`;let n=Math.floor(t/86400),r=Math.floor(t%86400/3600),i=Math.floor(t%3600/60);return n>0?r>0?`${n}d ${r}h`:`${n}d`:r>0?i>0?`${r}h ${i}m`:`${r}h`:`${i}m`}function x7({children:e}){return(0,B.jsx)(l5,{sx:{display:`flex`,alignItems:`center`,gap:.5},children:e})}function S7({children:e,highlight:t}){return(0,B.jsx)(h5,{variant:`caption`,sx:{fontSize:`inherit`,color:t?`#e4e4e7`:`text.secondary`,fontWeight:t?600:400},children:e})}function C7({label:e,value:t}){return(0,B.jsxs)(S7,{children:[e,` `,(0,B.jsx)(`span`,{style:{color:`#e4e4e7`,fontWeight:600},children:t})]})}function Nle(){let[e,t]=(0,C.useState)(null),n=y7(e=>e.connected),r=y7(e=>e.lastEvent);return(0,C.useEffect)(()=>{let e=!0,r=async()=>{try{let[n,r,i]=await Promise.allSettled([u.status(),l.listNodes(),p.getSummary()]);if(!e)return;let a=n.status===`fulfilled`?n.value:null,o=r.status===`fulfilled`?r.value:[],s=i.status===`fulfilled`?p.value:null,c=a?.apps??[],d=Array.isArray(c)?c.filter(e=>e.status===`online`).length:0;t({daemonOnline:!!a,appsOnline:d,appsTotal:Array.isArray(c)?c.length:0,nodesOnline:Array.isArray(o)?o.filter(e=>e.status?.omnitronConnected).length:0,nodesTotal:Array.isArray(o)?o.length:0,firingAlerts:s?.firing??0,uptimeMs:a?.uptime??0,version:a?.version??``,pid:a?.pid??0,lastFetch:Date.now()})}catch{e&&t(e=>e?{...e,daemonOnline:!1}:null)}};r();let i=setInterval(r,n?3e4:1e4);return()=>{e=!1,clearInterval(i)}},[n]),(0,C.useEffect)(()=>{if(!r)return;let e=r.channel;(e.startsWith(`app.`)||e.startsWith(`alert.`)||e.startsWith(`daemon.`)||e.startsWith(`stack.`))&&(async()=>{try{let e=await u.status(),n=e?.apps??[],r=Array.isArray(n)?n.filter(e=>e.status===`online`).length:0;t(t=>t&&{...t,daemonOnline:!0,appsOnline:r,appsTotal:n.length,uptimeMs:e?.uptime??t.uptimeMs,version:e?.version??t.version,pid:e?.pid??t.pid,lastFetch:Date.now()})}catch{}})()},[r]),e?(0,B.jsxs)(l5,{sx:{position:`fixed`,bottom:0,left:0,right:0,height:28,bgcolor:u8(`#0a0a10`,.96),backdropFilter:`blur(12px)`,borderTop:`1px solid`,borderColor:u8(`#fff`,.06),display:`flex`,alignItems:`center`,px:2,gap:2.5,zIndex:1300,fontSize:`0.68rem`,userSelect:`none`},children:[(0,B.jsxs)(x7,{children:[(0,B.jsx)(b7,{color:e.daemonOnline?`#22c55e`:`#ef4444`,pulse:e.daemonOnline}),(0,B.jsx)(S7,{highlight:e.daemonOnline,children:e.daemonOnline?`Online`:`Offline`})]}),(0,B.jsx)(l5,{sx:{width:`1px`,height:12,bgcolor:u8(`#fff`,.08)}}),(0,B.jsx)(Fle,{}),(0,B.jsx)(x7,{children:(0,B.jsx)(C7,{label:`Apps`,value:`${e.appsOnline}/${e.appsTotal}`})}),e.nodesTotal>0&&(0,B.jsx)(x7,{children:(0,B.jsx)(C7,{label:`Nodes`,value:`${e.nodesOnline}/${e.nodesTotal}`})}),e.firingAlerts>0&&(0,B.jsxs)(x7,{children:[(0,B.jsx)(b7,{color:`#ef4444`,pulse:!0}),(0,B.jsxs)(h5,{variant:`caption`,sx:{fontSize:`inherit`,color:`#ef4444`,fontWeight:600},children:[e.firingAlerts,` alert`,e.firingAlerts>1?`s`:``]})]}),(0,B.jsxs)(x7,{children:[(0,B.jsx)(b7,{color:n?`#3b82f6`:`#6b7280`}),(0,B.jsx)(S7,{children:n?`Live`:`Polling`})]}),(0,B.jsx)(l5,{sx:{flex:1}}),e.daemonOnline&&e.uptimeMs>0&&(0,B.jsx)(x7,{children:(0,B.jsx)(C7,{label:`Uptime`,value:Mle(e.uptimeMs)})}),(0,B.jsx)(Ple,{serverTimestamp:e.lastFetch}),(0,B.jsx)(l5,{sx:{px:.75,py:.1,borderRadius:.5,border:`1px solid`,borderColor:u8(`#fff`,.08),fontSize:`inherit`,color:`text.disabled`,lineHeight:1},children:`⌘K`})]}):null}function Ple({serverTimestamp:e}){let[t]=(0,C.useState)(()=>e?e-Date.now():0),[n,r]=(0,C.useState)(()=>Date.now()+t);(0,C.useEffect)(()=>{let e=setInterval(()=>r(Date.now()+t),1e3);return()=>clearInterval(e)},[t]);let i=new Date(n);return(0,B.jsx)(x7,{children:(0,B.jsxs)(S7,{children:[String(i.getHours()).padStart(2,`0`),`:`,String(i.getMinutes()).padStart(2,`0`),`:`,String(i.getSeconds()).padStart(2,`0`)]})})}function Fle(){let e=K3(e=>e.activeProject),t=K3(e=>e.activeStack),n=X3();if(!e)return null;let r=n.filter(e=>e.status===`running`).length;return(0,B.jsx)(x7,{children:(0,B.jsxs)(S7,{children:[(0,B.jsx)(`span`,{style:{color:`#e4e4e7`,fontWeight:600},children:e}),t&&(0,B.jsxs)(`span`,{style:{color:`#60a5fa`},children:[` / `,t]}),r>0&&!t&&(0,B.jsxs)(`span`,{style:{color:`#6b7280`},children:[` (`,r,` stack`,r>1?`s`:``,`)`]})]})})}function w7({size:e=32,sx:t}){return(0,B.jsxs)(l5,{component:`svg`,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 210 210`,sx:{width:e,height:e,flexShrink:0,...t},children:[(0,B.jsx)(`defs`,{children:(0,B.jsxs)(`linearGradient`,{id:`omni-logo-grad`,x1:`105`,y1:`165.47`,x2:`105`,y2:`52.73`,gradientUnits:`userSpaceOnUse`,children:[(0,B.jsx)(`stop`,{offset:`0`,stopColor:`#ff4fff`}),(0,B.jsx)(`stop`,{offset:`0.01`,stopColor:`#ff51fb`}),(0,B.jsx)(`stop`,{offset:`0.29`,stopColor:`#ff75af`}),(0,B.jsx)(`stop`,{offset:`0.53`,stopColor:`#ff9272`}),(0,B.jsx)(`stop`,{offset:`0.73`,stopColor:`#ffa747`}),(0,B.jsx)(`stop`,{offset:`0.89`,stopColor:`#ffb32c`}),(0,B.jsx)(`stop`,{offset:`0.98`,stopColor:`#ffb822`})]})}),(0,B.jsx)(`path`,{fill:`url(#omni-logo-grad)`,d:`M66.92,144.68l-27,15.59L102,52.73V83.92Zm3,5.2-27,15.59H167.09l-27-15.59Zm100.17,10.39L108,52.73V83.92l35.08,60.76Zm-34.4-16.39L105,90.72,74.31,143.88Z`})]})}var T7=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.2`,d:`M2 6C2 4.46 2 3.69 2.35 3.12C2.54 2.81 2.81 2.54 3.12 2.35C3.69 2 4.46 2 6 2C7.54 2 8.31 2 8.88 2.35C9.19 2.54 9.46 2.81 9.65 3.12C10 3.69 10 4.46 10 6C10 7.54 10 8.31 9.65 8.88C9.46 9.19 9.19 9.46 8.88 9.65C8.31 10 7.54 10 6 10C4.46 10 3.69 10 3.12 9.65C2.81 9.46 2.54 9.19 2.35 8.88C2 8.31 2 7.54 2 6Z`}),(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.2`,d:`M14 18C14 16.46 14 15.69 14.35 15.12C14.54 14.81 14.81 14.54 15.12 14.35C15.69 14 16.46 14 18 14C19.54 14 20.31 14 20.88 14.35C21.19 14.54 21.46 14.81 21.65 15.12C22 15.69 22 16.46 22 18C22 19.54 22 20.31 21.65 20.88C21.46 21.19 21.19 21.46 20.88 21.65C20.31 22 19.54 22 18 22C16.46 22 15.69 22 15.12 21.65C14.81 21.46 14.54 21.19 14.35 20.88C14 20.31 14 19.54 14 18Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M2 6C2 4.46 2 3.69 2.35 3.12C2.54 2.81 2.81 2.54 3.12 2.35C3.69 2 4.46 2 6 2C7.54 2 8.31 2 8.88 2.35C9.19 2.54 9.46 2.81 9.65 3.12C10 3.69 10 4.46 10 6C10 7.54 10 8.31 9.65 8.88C9.46 9.19 9.19 9.46 8.88 9.65C8.31 10 7.54 10 6 10C4.46 10 3.69 10 3.12 9.65C2.81 9.46 2.54 9.19 2.35 8.88C2 8.31 2 7.54 2 6Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M14 6C14 4.46 14 3.69 14.35 3.12C14.54 2.81 14.81 2.54 15.12 2.35C15.69 2 16.46 2 18 2C19.54 2 20.31 2 20.88 2.35C21.19 2.54 21.46 2.81 21.65 3.12C22 3.69 22 4.46 22 6C22 7.54 22 8.31 21.65 8.88C21.46 9.19 21.19 9.46 20.88 9.65C20.31 10 19.54 10 18 10C16.46 10 15.69 10 15.12 9.65C14.81 9.46 14.54 9.19 14.35 8.88C14 8.31 14 7.54 14 6Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M2 18C2 16.46 2 15.69 2.35 15.12C2.54 14.81 2.81 14.54 3.12 14.35C3.69 14 4.46 14 6 14C7.54 14 8.31 14 8.88 14.35C9.19 14.54 9.46 14.81 9.65 15.12C10 15.69 10 16.46 10 18C10 19.54 10 20.31 9.65 20.88C9.46 21.19 9.19 21.46 8.88 21.65C8.31 22 7.54 22 6 22C4.46 22 3.69 22 3.12 21.65C2.81 21.46 2.54 21.19 2.35 20.88C2 20.31 2 19.54 2 18Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M14 18C14 16.46 14 15.69 14.35 15.12C14.54 14.81 14.81 14.54 15.12 14.35C15.69 14 16.46 14 18 14C19.54 14 20.31 14 20.88 14.35C21.19 14.54 21.46 14.81 21.65 15.12C22 15.69 22 16.46 22 18C22 19.54 22 20.31 21.65 20.88C21.46 21.19 21.19 21.46 20.88 21.65C20.31 22 19.54 22 18 22C16.46 22 15.69 22 15.12 21.65C14.81 21.46 14.54 21.19 14.35 20.88C14 20.31 14 19.54 14 18Z`})]}),E7=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.2`,d:`M2 6C2 3.79 3.79 2 6 2H18C20.21 2 22 3.79 22 6V14C22 16.21 20.21 18 18 18H6C3.79 18 2 16.21 2 14V6Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M2 6C2 3.79 3.79 2 6 2H18C20.21 2 22 3.79 22 6V14C22 16.21 20.21 18 18 18H6C3.79 18 2 16.21 2 14V6Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M5 22H19`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M9 22V18M15 22V18`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M9 7V13M12 9.5V13M15 7V13`})]}),D7=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.2`,d:`M4 4C4 2.9 4.9 2 6 2H18C19.1 2 20 2.9 20 4V20C20 21.1 19.1 22 18 22H6C4.9 22 4 21.1 4 20V4Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M4 4C4 2.9 4.9 2 6 2H18C19.1 2 20 2.9 20 4V20C20 21.1 19.1 22 18 22H6C4.9 22 4 21.1 4 20V4Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M8 7H16M8 11H14M8 15H12`})]}),O7=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.2`,d:`M3.89 3.89C2.5 5.28 2.5 7.52 2.5 12C2.5 16.48 2.5 18.72 3.89 20.11C5.28 21.5 7.52 21.5 12 21.5C16.48 21.5 18.72 21.5 20.11 20.11C21.5 18.72 21.5 16.48 21.5 12C21.5 7.52 21.5 5.28 20.11 3.89C18.72 2.5 16.48 2.5 12 2.5C7.52 2.5 5.28 2.5 3.89 3.89Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M3.89 3.89C2.5 5.28 2.5 7.52 2.5 12C2.5 16.48 2.5 18.72 3.89 20.11C5.28 21.5 7.52 21.5 12 21.5C16.48 21.5 18.72 21.5 20.11 20.11C21.5 18.72 21.5 16.48 21.5 12C21.5 7.52 21.5 5.28 20.11 3.89C18.72 2.5 16.48 2.5 12 2.5C7.52 2.5 5.28 2.5 3.89 3.89Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M7 17V14M12 17V8M17 17V11`})]}),k7=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.2`,d:`M2.53 14.77C2.32 16.16 3.27 17.13 4.43 17.61C8.89 19.46 15.11 19.46 19.57 17.61C20.73 17.13 21.68 16.16 21.47 14.77C21.34 13.91 20.69 13.2 20.21 12.5C19.59 11.58 19.53 10.57 19.52 9.5C19.52 5.36 16.16 2 12 2C7.84 2 4.48 5.36 4.48 9.5C4.47 10.57 4.41 11.58 3.79 12.5C3.31 13.2 2.66 13.91 2.53 14.77Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M2.53 14.77C2.32 16.16 3.27 17.13 4.43 17.61C8.89 19.46 15.11 19.46 19.57 17.61C20.73 17.13 21.68 16.16 21.47 14.77C21.34 13.91 20.69 13.2 20.21 12.5C19.59 11.58 19.53 10.57 19.52 9.5C19.52 5.36 16.16 2 12 2C7.84 2 4.48 5.36 4.48 9.5C4.47 10.57 4.41 11.58 3.79 12.5C3.31 13.2 2.66 13.91 2.53 14.77Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M8 19C8.46 20.73 10.08 22 12 22C13.92 22 15.54 20.73 16 19`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M12 7V11M12 13.5V13.51`})]}),A7=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.2`,d:`M2 5C2 3.9 2.9 3 4 3H20C21.1 3 22 3.9 22 5V7C22 8.1 21.1 9 20 9H4C2.9 9 2 8.1 2 7V5Z`}),(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.2`,d:`M2 17C2 15.9 2.9 15 4 15H20C21.1 15 22 15.9 22 17V19C22 20.1 21.1 21 20 21H4C2.9 21 2 20.1 2 19V17Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M2 5C2 3.9 2.9 3 4 3H20C21.1 3 22 3.9 22 5V7C22 8.1 21.1 9 20 9H4C2.9 9 2 8.1 2 7V5Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M2 17C2 15.9 2.9 15 4 15H20C21.1 15 22 15.9 22 17V19C22 20.1 21.1 21 20 21H4C2.9 21 2 20.1 2 19V17Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M6 6H6.01M6 18H6.01`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M12 9V15`})]}),j7=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.2`,d:`M12 2L3 7V17L12 22L21 17V7L12 2Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12 2L3 7V17L12 22L21 17V7L12 2Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12 12L3 7M12 12V22M12 12L21 7`})]}),M7=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.2`,d:`M12.393 2.91C12.2892 2.75236 12.1444 2.6246 11.974 2.54019C11.8037 2.45577 11.6138 2.41776 11.4234 2.43C8.61 2.63 5.79 5.95 5 8.55C4.73 9.41 5.06 10.27 5.8 10.87L7.5 12.22C7.56 12.27 7.59 12.35 7.58 12.44L7.22 15.61C7.13 16.42 7.72 17.14 8.54 17.24C8.6 17.25 8.67 17.25 8.73 17.25L12 17V2.96C12.14 2.94 12.27 2.93 12.393 2.91Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12 17L8.73 17.25C7.9 17.33 7.17 16.73 7.09 15.9L6.73 12.73C6.72 12.64 6.67 12.56 6.6 12.5L4.9 11.15C4.16 10.55 3.83 9.69 4.1 8.83C4.89 6.23 8.02 2.57 11.42 2.43C12.48 2.39 13.54 2.91 14.36 3.73C16 5.37 17.2 8.45 16.6 12C16.32 13.6 15.52 15.15 14.4 16.26L12 17Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M12 7.5C12.83 7.5 13.5 8.17 13.5 9C13.5 9.83 12.83 10.5 12 10.5C11.17 10.5 10.5 9.83 10.5 9C10.5 8.17 11.17 7.5 12 7.5Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M5 19L8 17M7 22L12 17`})]}),N7=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.2`,d:`M15.5 12C15.5 13.93 13.93 15.5 12 15.5C10.07 15.5 8.5 13.93 8.5 12C8.5 10.07 10.07 8.5 12 8.5C13.93 8.5 15.5 10.07 15.5 12Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M21.5 14.53L21.26 14.53C20.41 14.47 19.68 15.13 19.62 15.98C19.6 16.23 19.65 16.47 19.76 16.69L19.89 16.94C20.29 17.69 20.02 18.63 19.27 19.03L18.73 19.34C17.98 19.74 17.04 19.47 16.64 18.72L16.51 18.47C16.08 17.73 15.12 17.46 14.38 17.89L14.38 17.89C13.64 18.31 13.37 19.27 13.79 20.01L13.92 20.26C14.32 21.01 14.05 21.95 13.3 22.35L12.76 22.66C12.01 23.06 11.07 22.79 10.67 22.04L10.54 21.79C10.11 21.05 9.15 20.78 8.41 21.21L8.41 21.21C7.67 21.64 7.4 22.59 7.83 23.34V23.34`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M15.5 12C15.5 13.93 13.93 15.5 12 15.5C10.07 15.5 8.5 13.93 8.5 12C8.5 10.07 10.07 8.5 12 8.5C13.93 8.5 15.5 10.07 15.5 12Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M2.5 14.53L2.74 14.53C3.59 14.47 4.32 15.13 4.38 15.98C4.4 16.23 4.35 16.47 4.24 16.69L4.11 16.94C3.71 17.69 3.98 18.63 4.73 19.03L5.27 19.34C6.02 19.74 6.96 19.47 7.36 18.72L7.49 18.47C7.92 17.73 8.88 17.46 9.62 17.89V17.89C10.36 18.31 10.63 19.27 10.21 20.01L10.08 20.26C9.68 21.01 9.95 21.95 10.7 22.35L11.24 22.66`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M21.99 8.37C22.03 8.04 21.36 6.88 21.01 6.28C20.64 5.63 20.45 5.31 20.13 5.18C19.82 5.05 19.46 5.15 18.74 5.35L17.52 5.7C17.06 5.8 16.58 5.74 16.16 5.53L15.82 5.33C15.46 5.1 15.19 4.76 15.03 4.36L14.7 3.37C14.48 2.71 14.37 2.38 14.11 2.19C13.85 2 13.5 2 12.81 2H11.69C10.99 2 10.65 2 10.39 2.19C10.13 2.38 10.02 2.71 9.8 3.37L9.46 4.36C9.31 4.76 9.03 5.1 8.68 5.33L8.34 5.53C7.92 5.74 7.44 5.8 6.98 5.7L5.76 5.35C5.04 5.15 4.68 5.05 4.37 5.18C4.05 5.31 3.86 5.63 3.49 6.28C3.14 6.88 2.47 8.04 2.5 8.37C2.54 8.69 2.77 8.95 3.24 9.47L4.27 10.63C4.52 10.94 4.7 11.5 4.7 12C4.7 12.5 4.52 13.06 4.27 13.37L3.24 14.53C2.77 15.05 2.54 15.31 2.5 15.63C2.47 15.96 2.64 16.26 3 16.87L3.49 17.72C3.86 18.37 4.05 18.69 4.37 18.82C4.68 18.95 5.04 18.85 5.76 18.65L6.98 18.3C7.44 18.2 7.92 18.26 8.34 18.47L8.68 18.67C9.03 18.9 9.31 19.24 9.46 19.64L9.8 20.63C10.02 21.29 10.13 21.62 10.39 21.81C10.65 22 10.99 22 11.69 22H12.81C13.5 22 13.85 22 14.11 21.81C14.37 21.62 14.48 21.29 14.7 20.63L15.03 19.64C15.19 19.24 15.46 18.9 15.82 18.67L16.16 18.47C16.58 18.26 17.06 18.2 17.52 18.3L18.74 18.65C19.46 18.85 19.82 18.95 20.13 18.82C20.45 18.69 20.64 18.37 21.01 17.72L21.5 16.87C21.85 16.26 22.03 15.96 21.99 15.63C21.96 15.31 21.73 15.05 21.26 14.53L20.23 13.37C19.98 13.06 19.8 12.5 19.8 12C19.8 11.5 19.98 10.94 20.23 10.63L21.26 9.47C21.73 8.95 21.96 8.69 21.99 8.37Z`})]}),P7=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.2`,d:`M20 11C20 6.03 15.97 2 11 2C6.03 2 2 6.03 2 11C2 15.97 6.03 20 11 20C15.97 20 20 15.97 20 11Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinejoin:`round`,d:`M20 11C20 6.03 15.97 2 11 2C6.03 2 2 6.03 2 11C2 15.97 6.03 20 11 20C15.97 20 20 15.97 20 11Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M17.5 17.5L22 22`})]}),Ile=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.2`,d:`M12 3C7.03 3 3 7.03 3 12C3 16.97 7.03 21 12 21C16.97 21 21 16.97 21 12C21 7.03 16.97 3 12 3Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M17.65 6.35C16.2 4.9 14.21 4 12 4C7.58 4 4.01 7.58 4.01 12C4.01 16.42 7.58 20 12 20C15.73 20 18.84 17.45 19.73 14`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M20 4V10H14`})]}),Lle=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.2`,d:`M18.89 11.15L7.38 4.17C6.55 3.66 5.5 4.26 5.5 5.22V18.78C5.5 19.74 6.55 20.34 7.38 19.83L18.89 12.85C19.67 12.37 19.67 11.63 18.89 11.15Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M18.89 11.15L7.38 4.17C6.55 3.66 5.5 4.26 5.5 5.22V18.78C5.5 19.74 6.55 20.34 7.38 19.83L18.89 12.85C19.67 12.37 19.67 11.63 18.89 11.15Z`})]}),Rle=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.2`,d:`M6 4C4.9 4 4 4.9 4 6V18C4 19.1 4.9 20 6 20H18C19.1 20 20 19.1 20 18V6C20 4.9 19.1 4 18 4H6Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M6 4C4.9 4 4 4.9 4 6V18C4 19.1 4.9 20 6 20H18C19.1 20 20 19.1 20 18V6C20 4.9 19.1 4 18 4H6Z`})]}),zle=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.2`,d:`M12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20C7.58 20 4 16.42 4 12C4 9.79 4.9 7.79 6.34 6.34`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20C7.58 20 4 16.42 4 12C4 9.79 4.9 7.79 6.34 6.34`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12 8V4H8`})]}),Ble=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.2`,d:`M12 22C6.48 22 2 17.52 2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M15 9L9 15M9 9L15 15`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M12 22C6.48 22 2 17.52 2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22Z`})]}),Vle=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.2`,d:`M12 22C6.48 22 2 17.52 2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M12 22C6.48 22 2 17.52 2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M8 12.5L10.5 15L16 9`})]}),F7=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.2`,d:`M12 22C6.48 22 2 17.52 2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M12 22C6.48 22 2 17.52 2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M12 8V16M8 12H16`})]}),Hle=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.2`,d:`M3 6C3 4.34 4.34 3 6 3H18C19.66 3 21 4.34 21 6V18C21 19.66 19.66 21 18 21H6C4.34 21 3 19.66 3 18V6Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M3 6C3 4.34 4.34 3 6 3H18C19.66 3 21 4.34 21 6V18C21 19.66 19.66 21 18 21H6C4.34 21 3 19.66 3 18V6Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M7 15L10 12L7 9`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M13 15H17`})]}),I7=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.2`,d:`M4 6C4 4.9 4.9 4 6 4H10C11.1 4 12 4.9 12 6V10C12 11.1 11.1 12 10 12H6C4.9 12 4 11.1 4 10V6Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M4 6C4 4.9 4.9 4 6 4H10C11.1 4 12 4.9 12 6V10C12 11.1 11.1 12 10 12H6C4.9 12 4 11.1 4 10V6Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M14 14H18C19.1 14 20 14.9 20 16V18C20 19.1 19.1 20 18 20H16C14.9 20 14 19.1 14 18V14Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M12 8H14M14 8V14M8 12V14H14`})]}),L7=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.2`,d:`M3 12C3 7.03 7.03 3 12 3C16.97 3 21 7.03 21 12C21 16.97 16.97 21 12 21C7.03 21 3 16.97 3 12Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M3 12H7L9 7L12 17L15 9L17 12H21`})]}),Ule=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.2`,d:`M12 3C7.58 3 4 4.79 4 7V17C4 19.21 7.58 21 12 21C16.42 21 20 19.21 20 17V7C20 4.79 16.42 3 12 3Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M4 7C4 4.79 7.58 3 12 3C16.42 3 20 4.79 20 7M4 7V17C4 19.21 7.58 21 12 21C16.42 21 20 19.21 20 17V7M4 7C4 9.21 7.58 11 12 11C16.42 11 20 9.21 20 7M4 12C4 14.21 7.58 16 12 16C16.42 16 20 14.21 20 12`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12 15V19M12 19L14 17M12 19L10 17`})]}),Wle=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.2`,d:`M3 5C3 3.9 3.9 3 5 3H19C20.1 3 21 3.9 21 5V19C21 20.1 20.1 21 19 21H5C3.9 21 3 20.1 3 19V5Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M3 5C3 3.9 3.9 3 5 3H19C20.1 3 21 3.9 21 5V19C21 20.1 20.1 21 19 21H5C3.9 21 3 20.1 3 19V5Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M3 9H21M9 9V21`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M15 13V17M13 15H17`})]}),R7=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.2`,d:`M4 5C4 3.34 5.34 2 7 2H17C18.66 2 20 3.34 20 5V19C20 20.66 18.66 22 17 22H7C5.34 22 4 20.66 4 19V5Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M4 5C4 3.34 5.34 2 7 2H17C18.66 2 20 3.34 20 5V19C20 20.66 18.66 22 17 22H7C5.34 22 4 20.66 4 19V5Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M4 9H20M4 15H20`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M8 5.5H8.01M8 12H8.01M8 18.5H8.01`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M14 5.5H16M14 12H16M14 18.5H16`})]}),z7=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.2`,d:`M5 8C5 6.9 5.9 6 7 6H17C18.1 6 19 6.9 19 8V16C19 17.1 18.1 18 17 18H7C5.9 18 5 17.1 5 16V8Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M5 8C5 6.9 5.9 6 7 6H17C18.1 6 19 6.9 19 8V16C19 17.1 18.1 18 17 18H7C5.9 18 5 17.1 5 16V8Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M3 10C3 8.9 3.9 8 5 8V18C3.9 18 3 17.1 3 16V10Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M21 10C21 8.9 20.1 8 19 8V18C20.1 18 21 17.1 21 16V10Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M8 3H16M7 21H17`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M9 10H15M9 14H13`})]}),B7=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.2`,d:`M2 7C2 5.34 3.34 4 5 4H9L11 6H19C20.66 6 22 7.34 22 9V17C22 18.66 20.66 20 19 20H5C3.34 20 2 18.66 2 17V7Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M2 7C2 5.34 3.34 4 5 4H9L11 6H19C20.66 6 22 7.34 22 9V17C22 18.66 20.66 20 19 20H5C3.34 20 2 18.66 2 17V7Z`}),(0,B.jsx)(`circle`,{cx:`12`,cy:`13`,r:`2`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M12 11V10.5M12 15.5V15M14 12L14.5 11.7M9.5 14.3L10 14M14 14L14.5 14.3M9.5 11.7L10 12`})]}),Gle=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.2`,d:`M12 21C7.03 21 3 16.97 3 12C3 7.03 7.03 3 12 3C16.97 3 21 7.03 21 12C21 16.97 16.97 21 12 21Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M16 8L18 6L16 4`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M6 6H18`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M8 16L6 18L8 20`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M18 18H6`})]}),Kle=e=>e?.open?(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,fillRule:`evenodd`,clipRule:`evenodd`,d:`M22 12C22 11.6845 21.848 11.4713 21.544 11.045C20.1779 9.12944 16.6892 5 12 5C7.31078 5 3.8221 9.12944 2.45604 11.045C2.15201 11.4713 2 11.6845 2 12C2 12.3155 2.15201 12.5287 2.45604 12.955C3.8221 14.8706 7.31078 19 12 19C16.6892 19 20.1779 14.8706 21.544 12.955C21.848 12.5287 22 12.3155 22 12ZM12 9C13.6569 9 15 10.3431 15 12C15 13.6569 13.6569 15 12 15C10.3431 15 9 13.6569 9 12C9 10.3431 10.3431 9 12 9Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M21.544 11.045C21.848 11.4713 22 11.6845 22 12C22 12.3155 21.848 12.5287 21.544 12.955C20.1779 14.8706 16.6892 19 12 19C7.31078 19 3.8221 14.8706 2.45604 12.955C2.15201 12.5287 2 12.3155 2 12C2 11.6845 2.15201 11.4713 2.45604 11.045C3.8221 9.12944 7.31078 5 12 5C16.6892 5 20.1779 9.12944 21.544 11.045Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15C13.6569 15 15 13.6569 15 12Z`})]}):(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M12 14C18 14 22 8 22 8H2C2 8 6 14 12 14Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M22 8C22 8 18 14 12 14C6 14 2 8 2 8`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M15 13.5L16.5 16`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M20 11L22 13`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M2 13L4 11`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M9 13.5L7.5 16`})]}),qle=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M19.5 5.5L18.8803 15.5251C18.7219 18.0864 18.6428 19.3671 18.0008 20.2879C17.6833 20.7431 17.2747 21.1273 16.8007 21.416C15.8421 22 14.559 22 11.9927 22C9.42312 22 8.1383 22 7.17905 21.4149C6.7048 21.1257 6.296 20.7408 5.97868 20.2848C5.33688 19.3626 5.25945 18.0801 5.10461 15.5152L4.5 5.5H19.5Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M19.5 5.5L18.8803 15.5251C18.7219 18.0864 18.6428 19.3671 18.0008 20.2879C17.6833 20.7431 17.2747 21.1273 16.8007 21.416C15.8421 22 14.559 22 11.9927 22C9.42312 22 8.1383 22 7.17905 21.4149C6.7048 21.1257 6.296 20.7408 5.97868 20.2848C5.33688 19.3626 5.25945 18.0801 5.10461 15.5152L4.5 5.5`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M21 5.5H3`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M16.0575 5.5L15.3748 4.09173C14.9213 3.15626 14.6946 2.68852 14.3035 2.39681C14.2167 2.3321 14.1249 2.27454 14.0288 2.2247C13.5957 2 13.0759 2 12.0363 2C10.9706 2 10.4377 2 9.99745 2.23412C9.89986 2.28601 9.80675 2.3459 9.71906 2.41317C9.3234 2.7167 9.10239 3.20155 8.66037 4.17126L8.05469 5.5`})]}),Jle=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M8 16L8.72397 13.1041C8.89804 12.4079 9.25807 11.772 9.76558 11.2645L16.4249 4.6051L19.3949 7.57508L12.7356 14.2344C12.228 14.7419 11.5922 15.102 10.8959 15.276L8 16Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinejoin:`round`,d:`M16.4249 4.60509L17.4149 3.6151C18.2351 2.79497 19.5648 2.79497 20.3849 3.6151C21.205 4.43524 21.205 5.76493 20.3849 6.58507L19.3949 7.57506M16.4249 4.60509L9.76558 11.2644C9.25807 11.772 8.89804 12.4078 8.72397 13.1041L8 16L10.8959 15.276C11.5922 15.102 12.228 14.7419 12.7356 14.2344L19.3949 7.57506M16.4249 4.60509L19.3949 7.57506`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M18.9999 13.5C18.9999 16.7875 18.9999 18.4312 18.092 19.5376C17.9258 19.7401 17.7401 19.9258 17.5375 20.092C16.4312 21 14.7874 21 11.4999 21H11C7.22876 21 5.34316 21 4.17159 19.8284C3.00003 18.6569 3 16.7712 3 13V12.5C3 9.21252 3 7.56879 3.90794 6.46244C4.07417 6.2599 4.2599 6.07417 4.46244 5.90794C5.56879 5 7.21252 5 10.5 5`})]}),Yle=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M2.5 12C2.5 7.52162 2.5 5.28245 3.89124 3.89121C5.28249 2.49997 7.52166 2.49997 12 2.49997C16.4783 2.49997 18.7175 2.49997 20.1088 3.89121C21.5 5.28245 21.5 7.52162 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1087C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1087C2.5 18.7175 2.5 16.4783 2.5 12Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M2.5 12C2.5 7.52163 2.5 5.28245 3.89124 3.89121C5.28249 2.49997 7.52166 2.49997 12 2.49997C16.4783 2.49997 18.7175 2.49997 20.1088 3.89121C21.5 5.28245 21.5 7.52163 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1087C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1087C2.5 18.7175 2.5 16.4783 2.5 12Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M7 12.0323H13.9756M13.9756 12.0323C13.9756 12.6028 11.8204 14.5197 11.8204 14.5197M13.9756 12.0323C13.9756 11.447 11.8204 9.56795 11.8204 9.56795M17 7.99997V16`})]}),Xle=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M17.5 11C17.5 7.41015 14.5899 4.5 11 4.5C7.41015 4.5 4.5 7.41015 4.5 11C4.5 14.5899 7.41015 17.5 11 17.5C14.5899 17.5 17.5 14.5899 17.5 11Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinejoin:`round`,d:`M17.5 11C17.5 7.41015 14.5899 4.5 11 4.5C7.41015 4.5 4.5 7.41015 4.5 11C4.5 14.5899 7.41015 17.5 11 17.5C14.5899 17.5 17.5 14.5899 17.5 11Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M15.5 15.5L20 20`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M8.5 11H13.5M11 8.5V13.5`})]}),Zle=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M17.5 11C17.5 7.41015 14.5899 4.5 11 4.5C7.41015 4.5 4.5 7.41015 4.5 11C4.5 14.5899 7.41015 17.5 11 17.5C14.5899 17.5 17.5 14.5899 17.5 11Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinejoin:`round`,d:`M17.5 11C17.5 7.41015 14.5899 4.5 11 4.5C7.41015 4.5 4.5 7.41015 4.5 11C4.5 14.5899 7.41015 17.5 11 17.5C14.5899 17.5 17.5 14.5899 17.5 11Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M15.5 15.5L20 20`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M8.5 11H13.5`})]}),Qle=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M3 13V11C3 7.22876 3 5.34315 4.17157 4.17157C5.34315 3 7.22876 3 11 3H13C16.7712 3 18.6569 3 19.8284 4.17157C21 5.34315 21 7.22876 21 11V13C21 16.7712 21 18.6569 19.8284 19.8284C18.6569 21 16.7712 21 13 21H11C7.22876 21 5.34315 21 4.17157 19.8284C3 18.6569 3 16.7712 3 13Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M15.5 21C16.8956 21 17.5933 21 18.1611 20.8278C19.4395 20.44 20.44 19.4395 20.8278 18.1611C21 17.5933 21 16.8956 21 15.5M21 8.5C21 7.10444 21 6.40666 20.8278 5.83886C20.44 4.56046 19.4395 3.56004 18.1611 3.17224C17.5933 3 16.8956 3 15.5 3M8.5 21C7.10444 21 6.40666 21 5.83886 20.8278C4.56046 20.44 3.56004 19.4395 3.17224 18.1611C3 17.5933 3 16.8956 3 15.5M3 8.5C3 7.10444 3 6.40666 3.17224 5.83886C3.56004 4.56046 4.56046 3.56004 5.83886 3.17224C6.40666 3 7.10444 3 8.5 3`})]}),$le=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M3 13V11C3 7.22876 3 5.34315 4.17157 4.17157C5.34315 3 7.22876 3 11 3H13C16.7712 3 18.6569 3 19.8284 4.17157C21 5.34315 21 7.22876 21 11V13C21 16.7712 21 18.6569 19.8284 19.8284C18.6569 21 16.7712 21 13 21H11C7.22876 21 5.34315 21 4.17157 19.8284C3 18.6569 3 16.7712 3 13Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M9.5 3C9.5 3 9.5 5.10444 9.5 6.5C9.5 7.89556 8.89556 8.5 7.5 8.5C6.10444 8.5 3 8.5 3 8.5M14.5 3C14.5 3 14.5 5.10444 14.5 6.5C14.5 7.89556 15.1044 8.5 16.5 8.5C17.8956 8.5 21 8.5 21 8.5M9.5 21C9.5 21 9.5 18.8956 9.5 17.5C9.5 16.1044 8.89556 15.5 7.5 15.5C6.10444 15.5 3 15.5 3 15.5M14.5 21C14.5 21 14.5 18.8956 14.5 17.5C14.5 16.1044 15.1044 15.5 16.5 15.5C17.8956 15.5 21 15.5 21 15.5`})]}),eue=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{opacity:`0.4`,d:`M4.26781 18.8447C4.49269 20.515 5.87612 21.8235 7.55965 21.9009C8.97627 21.966 10.4153 22 12 22C13.5847 22 15.0237 21.966 16.4403 21.9009C18.1239 21.8235 19.5073 20.515 19.7322 18.8447C19.879 17.7547 20 16.6376 20 15.5C20 14.3624 19.8789 13.2453 19.7322 12.1553C19.5073 10.485 18.1239 9.17649 16.4403 9.09909C15.0237 9.03397 13.5847 9 12 9C10.4153 9 8.97627 9.03397 7.55965 9.09909C5.87612 9.17649 4.49268 10.485 4.26781 12.1553C4.12104 13.2453 3.99999 14.3624 3.99999 15.5C3.99999 16.6376 4.12104 17.7547 4.26781 18.8447Z`,fill:`currentColor`}),(0,B.jsx)(`path`,{fill:`none`,d:`M12 16.5V14.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,B.jsx)(`path`,{fill:`none`,d:`M4.2678 18.8447C4.49268 20.515 5.87612 21.8235 7.55965 21.9009C8.97627 21.966 10.4153 22 12 22C13.5847 22 15.0237 21.966 16.4403 21.9009C18.1239 21.8235 19.5073 20.515 19.7322 18.8447C19.8789 17.7547 20 16.6376 20 15.5C20 14.3624 19.8789 13.2453 19.7322 12.1553C19.5073 10.485 18.1239 9.17649 16.4403 9.09909C15.0237 9.03397 13.5847 9 12 9C10.4153 9 8.97627 9.03397 7.55965 9.09909C5.87612 9.17649 4.49268 10.485 4.2678 12.1553C4.12104 13.2453 3.99999 14.3624 3.99999 15.5C3.99999 16.6376 4.12104 17.7547 4.2678 18.8447Z`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,B.jsx)(`path`,{fill:`none`,d:`M7.5 9V6.5C7.5 4.01472 9.51472 2 12 2C14.4853 2 16.5 4.01472 16.5 6.5V9`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),tue=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{opacity:`0.4`,d:`M4.26781 18.8447C4.49269 20.515 5.87612 21.8235 7.55965 21.9009C8.97627 21.966 10.4153 22 12 22C13.5847 22 15.0237 21.966 16.4403 21.9009C18.1239 21.8235 19.5073 20.515 19.7322 18.8447C19.879 17.7547 20 16.6376 20 15.5C20 14.3624 19.8789 13.2453 19.7322 12.1553C19.5073 10.485 18.1239 9.17649 16.4403 9.09909C15.0237 9.03397 13.5847 9 12 9C10.4153 9 8.97627 9.03397 7.55965 9.09909C5.87612 9.17649 4.49268 10.485 4.26781 12.1553C4.12104 13.2453 3.99999 14.3624 3.99999 15.5C3.99999 16.6376 4.12104 17.7547 4.26781 18.8447Z`,fill:`currentColor`}),(0,B.jsx)(`path`,{fill:`none`,d:`M12 16.5V14.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,B.jsx)(`path`,{fill:`none`,d:`M4.2678 18.8447C4.49268 20.515 5.87612 21.8235 7.55965 21.9009C8.97627 21.966 10.4153 22 12 22C13.5847 22 15.0237 21.966 16.4403 21.9009C18.1239 21.8235 19.5073 20.515 19.7322 18.8447C19.8789 17.7547 20 16.6376 20 15.5C20 14.3624 19.8789 13.2453 19.7322 12.1553C19.5073 10.485 18.1239 9.17649 16.4403 9.09909C15.0237 9.03397 13.5847 9 12 9C10.4153 9 8.97627 9.03397 7.55965 9.09909C5.87612 9.17649 4.49268 10.485 4.2678 12.1553C4.12104 13.2453 3.99999 14.3624 3.99999 15.5C3.99999 16.6376 4.12104 17.7547 4.2678 18.8447Z`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,B.jsx)(`path`,{fill:`none`,d:`M7.5 9V6.5C7.5 4.01472 9.51472 2 12 2C14.4853 2 16.5 4.01472 16.5 6.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),nue=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`circle`,{fill:`currentColor`,opacity:`0.4`,cx:`12`,cy:`12`,r:`10`}),(0,B.jsx)(`circle`,{fill:`none`,cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinejoin:`round`})]}),V7=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,fillRule:`evenodd`,d:`M5.17157 5.17157C4 6.34315 4 8.22876 4 12C4 15.7712 4 17.6569 5.17157 18.8284C6.34315 20 8.22876 20 12 20C15.7712 20 17.6569 20 18.8284 18.8284C20 17.6569 20 15.7712 20 12C20 8.22876 20 6.34315 18.8284 5.17157C17.6569 4 15.7712 4 12 4C8.22876 4 6.34315 4 5.17157 5.17157ZM12 17C9.64298 17 8.46447 17 7.73223 16.2678C7 15.5355 7 14.357 7 12C7 9.64298 7 8.46447 7.73223 7.73223C8.46447 7 9.64298 7 12 7C14.357 7 15.5355 7 16.2678 7.73223C17 8.46447 17 9.64298 17 12C17 12.7898 17 13.4473 16.9724 14L14 16.9724C13.4473 17 12.7898 17 12 17Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinejoin:`round`,d:`M4 12C4 8.22876 4 6.34315 5.17157 5.17157C6.34315 4 8.22876 4 12 4C15.7712 4 17.6569 4 18.8284 5.17157C20 6.34315 20 8.22876 20 12C20 15.7712 20 17.6569 18.8284 18.8284C17.6569 20 15.7712 20 12 20C8.22876 20 6.34315 20 5.17157 18.8284C4 17.6569 4 15.7712 4 12Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinejoin:`round`,d:`M7.73223 16.2678C8.46447 17 9.64298 17 12 17C12.7898 17 13.4473 17 14 16.9724L16.9724 14C17 13.4473 17 12.7898 17 12C17 9.64298 17 8.46447 16.2678 7.73223C15.5355 7 14.357 7 12 7C9.64298 7 8.46447 7 7.73223 7.73223C7 8.46447 7 9.64298 7 12C7 14.357 7 15.5355 7.73223 16.2678Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M8 2V4M16 2V4M12 2V4M8 20V22M12 20V22M16 20V22M22 16H20M4 8H2M4 16H2M4 12H2M22 8H20M22 12H20`})]}),H7=e=>(0,B.jsxs)(_5,{...e,children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M3.15802 15.5144L3.45643 14.7717C4.19029 12.9449 4.55723 12.0316 5.3224 11.5158C6.08757 11 7.07557 11 9.05157 11H17.1119C19.8004 11 21.1446 11 21.7422 11.8787C22.3397 12.7575 21.8405 14.0002 20.842 16.4856L20.5436 17.2283C19.8097 19.0551 19.4428 19.9684 18.6776 20.4842C17.9124 21 16.9244 21 14.9484 21H6.88812C4.19961 21 2.85535 21 2.25782 20.1213C1.66029 19.2425 2.15953 17.9998 3.15802 15.5144Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M2 19V7.54902C2 6.10516 2 5.38322 2.24332 4.81647C2.5467 4.10985 3.10985 3.5467 3.81647 3.24332C4.38322 3 5.09805 3 6.54902 3H7.04311C7.64819 3 8.22075 3.27394 8.60041 3.74509L10.4175 6M10.4175 6H16C17.4001 6 18.1002 6 18.635 6.27248C19.1054 6.51217 19.4878 6.89462 19.7275 7.36502C20 7.8998 20 8.59987 20 10V11M10.4175 6H7`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinejoin:`round`,d:`M3.15802 15.5144L3.45643 14.7717C4.19029 12.9449 4.55723 12.0316 5.3224 11.5158C6.08757 11 7.07557 11 9.05157 11H17.1119C19.8004 11 21.1446 11 21.7422 11.8787C22.3397 12.7575 21.8405 14.0002 20.842 16.4856L20.5436 17.2283C19.8097 19.0551 19.4428 19.9684 18.6776 20.4842C17.9124 21 16.9244 21 14.9484 21H6.88812C4.19961 21 2.85535 21 2.25782 20.1213C1.66029 19.2425 2.15953 17.9998 3.15802 15.5144Z`})]});function rue(e){return K6(`MuiButton`,e)}var U7=q6(`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`.split(`.`)),W7=C.createContext({}),G7=C.createContext(void 0),iue=e=>{let{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,loading:o,loadingPosition:s,classes:c}=e,l=T8({root:[`root`,o&&`loading`,a,`${a}${f5(t)}`,`size${f5(i)}`,`${a}Size${f5(i)}`,`color${f5(t)}`,n&&`disableElevation`,r&&`fullWidth`,o&&`loadingPosition${f5(s)}`],startIcon:[`icon`,`startIcon`,`iconSize${f5(i)}`],endIcon:[`icon`,`endIcon`,`iconSize${f5(i)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},rue,c);return{...c,...l}},K7=[{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}}}],aue=c5(z5,{shouldForwardProp:e=>s5(e)||e===`classes`,name:`MuiButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${f5(n.color)}`],t[`size${f5(n.size)}`],t[`${n.variant}Size${f5(n.size)}`],n.color===`inherit`&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(u5(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode===`light`?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:`6px 16px`,border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create([`background-color`,`box-shadow`,`border-color`,`color`],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:`none`},[`&.${U7.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:`contained`},style:{color:`var(--variant-containedColor)`,backgroundColor:`var(--variant-containedBg)`,boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${U7.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${U7.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).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)`,[`&.${U7.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:`text`},style:{padding:`6px 8px`,color:`var(--variant-textColor)`,backgroundColor:`var(--variant-textBg)`}},...Object.entries(e.palette).filter(p5()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:`inherit`},style:{color:`inherit`,borderColor:`currentColor`,"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:`small`,variant:`text`},style:{padding:`4px 5px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`text`},style:{padding:`8px 11px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`outlined`},style:{padding:`3px 9px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`outlined`},style:{padding:`7px 21px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`contained`},style:{padding:`4px 10px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`contained`},style:{padding:`8px 22px`,fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:`none`,"&:hover":{boxShadow:`none`},[`&.${U7.focusVisible}`]:{boxShadow:`none`},"&:active":{boxShadow:`none`},[`&.${U7.disabled}`]:{boxShadow:`none`}}},{props:{fullWidth:!0},style:{width:`100%`}},{props:{loadingPosition:`center`},style:{transition:e.transitions.create([`background-color`,`box-shadow`,`border-color`],{duration:e.transitions.duration.short}),[`&.${U7.loading}`]:{color:`transparent`}}}]}})),oue=c5(`span`,{name:`MuiButton`,slot:`StartIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${f5(n.size)}`]]}})(({theme:e})=>({display:`inherit`,marginRight:8,marginLeft:-4,variants:[{props:{size:`small`},style:{marginLeft:-2}},{props:{loadingPosition:`start`,loading:!0},style:{transition:e.transitions.create([`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`start`,loading:!0,fullWidth:!0},style:{marginRight:-8}},...K7]})),sue=c5(`span`,{name:`MuiButton`,slot:`EndIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${f5(n.size)}`]]}})(({theme:e})=>({display:`inherit`,marginRight:-4,marginLeft:8,variants:[{props:{size:`small`},style:{marginRight:-2}},{props:{loadingPosition:`end`,loading:!0},style:{transition:e.transitions.create([`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`end`,loading:!0,fullWidth:!0},style:{marginLeft:-8}},...K7]})),cue=c5(`span`,{name:`MuiButton`,slot:`LoadingIndicator`})(({theme:e})=>({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:(e.vars||e).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}}]})),q7=c5(`span`,{name:`MuiButton`,slot:`LoadingIconPlaceholder`})({display:`inline-block`,width:`1em`,height:`1em`}),J7=C.forwardRef(function(e,t){let n=C.useContext(W7),r=C.useContext(G7),i=d5({props:t8(n,e),name:`MuiButton`}),{children:a,color:o=`primary`,component:s=`button`,className:c,disabled:l=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:m=!1,id:h,loading:g=null,loadingIndicator:_,loadingPosition:v=`center`,size:y=`medium`,startIcon:b,type:x,variant:S=`text`,...w}=i,T=E5(h),E=_??(0,B.jsx)(W5,{"aria-labelledby":T,color:`inherit`,size:16}),D={...i,color:o,component:s,disabled:l,disableElevation:u,disableFocusRipple:d,fullWidth:m,loading:g,loadingIndicator:E,loadingPosition:v,size:y,type:x,variant:S},O=iue(D),k=(b||g&&v===`start`)&&(0,B.jsx)(oue,{className:O.startIcon,ownerState:D,children:b||(0,B.jsx)(q7,{className:O.loadingIconPlaceholder,ownerState:D})}),A=(f||g&&v===`end`)&&(0,B.jsx)(sue,{className:O.endIcon,ownerState:D,children:f||(0,B.jsx)(q7,{className:O.loadingIconPlaceholder,ownerState:D})}),j=r||``,M=typeof g==`boolean`?(0,B.jsx)(`span`,{className:O.loadingWrapper,style:{display:`contents`},children:g&&(0,B.jsx)(cue,{className:O.loadingIndicator,ownerState:D,children:E})}):null;return(0,B.jsxs)(aue,{ownerState:D,className:V(n.className,O.root,c,j),component:s,disabled:l||g,focusRipple:!d,focusVisibleClassName:V(O.focusVisible,p),ref:t,type:x,id:g?T:h,...w,classes:O,children:[k,v!==`end`&&M,a,v===`end`&&M,A]})}),lue=class extends C.Component{state={hasError:!1,error:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}render(){return this.state.hasError?(0,B.jsxs)(l5,{sx:{p:4,textAlign:`center`},children:[(0,B.jsx)(h5,{variant:`h5`,gutterBottom:!0,children:`Something went wrong`}),(0,B.jsx)(h5,{color:`text.secondary`,sx:{mb:2,fontFamily:`monospace`,fontSize:`0.85rem`},children:this.state.error?.message}),(0,B.jsx)(J7,{variant:`contained`,onClick:()=>{this.setState({hasError:!1,error:null}),window.location.reload()},children:`Reload`})]}):this.props.children}};function uue(e){return K6(`MuiDivider`,e)}var Y7=q6(`MuiDivider`,[`root`,`absolute`,`fullWidth`,`inset`,`middle`,`flexItem`,`light`,`vertical`,`withChildren`,`withChildrenVertical`,`textAlignRight`,`textAlignLeft`,`wrapper`,`wrapperVertical`]),due=e=>{let{absolute:t,children:n,classes:r,flexItem:i,light:a,orientation:o,textAlign:s,variant:c}=e;return T8({root:[`root`,t&&`absolute`,c,a&&`light`,o===`vertical`&&`vertical`,i&&`flexItem`,n&&`withChildren`,n&&o===`vertical`&&`withChildrenVertical`,s===`right`&&o!==`vertical`&&`textAlignRight`,s===`left`&&o!==`vertical`&&`textAlignLeft`],wrapper:[`wrapper`,o===`vertical`&&`wrapperVertical`]},uue,r)},fue=c5(`div`,{name:`MuiDivider`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation===`vertical`&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation===`vertical`&&t.withChildrenVertical,n.textAlign===`right`&&n.orientation!==`vertical`&&t.textAlignRight,n.textAlign===`left`&&n.orientation!==`vertical`&&t.textAlignLeft]}})(u5(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:`solid`,borderColor:(e.vars||e).palette.divider,borderBottomWidth:`thin`,variants:[{props:{absolute:!0},style:{position:`absolute`,bottom:0,left:0,width:`100%`}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:`inset`},style:{marginLeft:72}},{props:{variant:`middle`,orientation:`horizontal`},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:`middle`,orientation:`vertical`},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:`vertical`},style:{height:`100%`,borderBottomWidth:0,borderRightWidth:`thin`}},{props:{flexItem:!0},style:{alignSelf:`stretch`,height:`auto`}},{props:({ownerState:e})=>!!e.children,style:{display:`flex`,textAlign:`center`,border:0,borderTopStyle:`solid`,borderLeftStyle:`solid`,"&::before, &::after":{content:`""`,alignSelf:`center`}}},{props:({ownerState:e})=>e.children&&e.orientation!==`vertical`,style:{"&::before, &::after":{width:`100%`,borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:`inherit`}}},{props:({ownerState:e})=>e.orientation===`vertical`&&e.children,style:{flexDirection:`column`,"&::before, &::after":{height:`100%`,borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:`inherit`}}},{props:({ownerState:e})=>e.textAlign===`right`&&e.orientation!==`vertical`,style:{"&::before":{width:`90%`},"&::after":{width:`10%`}}},{props:({ownerState:e})=>e.textAlign===`left`&&e.orientation!==`vertical`,style:{"&::before":{width:`10%`},"&::after":{width:`90%`}}}]}))),pue=c5(`span`,{name:`MuiDivider`,slot:`Wrapper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.wrapper,n.orientation===`vertical`&&t.wrapperVertical]}})(u5(({theme:e})=>({display:`inline-block`,paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:`nowrap`,variants:[{props:{orientation:`vertical`},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),X7=C.forwardRef(function(e,t){let n=d5({props:e,name:`MuiDivider`}),{absolute:r=!1,children:i,className:a,orientation:o=`horizontal`,component:s=i||o===`vertical`?`div`:`hr`,flexItem:c=!1,light:l=!1,role:u=s===`hr`?void 0:`separator`,textAlign:d=`center`,variant:f=`fullWidth`,...p}=n,m={...n,absolute:r,component:s,flexItem:c,light:l,orientation:o,role:u,textAlign:d,variant:f},h=due(m);return(0,B.jsx)(fue,{as:s,className:V(h.root,a),role:u,ref:t,ownerState:m,"aria-orientation":u===`separator`&&(s!==`hr`||o===`vertical`)?o:void 0,...p,children:i?(0,B.jsx)(pue,{className:h.wrapper,ownerState:m,children:i}):null})});X7&&(X7.muiSkipListHighlight=!0);var Z7=C.createContext({});function mue(e){return K6(`MuiList`,e)}q6(`MuiList`,[`root`,`padding`,`dense`,`subheader`]);var hue=e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return T8({root:[`root`,!n&&`padding`,r&&`dense`,i&&`subheader`]},mue,t)},gue=c5(`ul`,{name:`MuiList`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:`none`,margin:0,padding:0,position:`relative`,variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),_ue=C.forwardRef(function(e,t){let n=d5({props:e,name:`MuiList`}),{children:r,className:i,component:a=`ul`,dense:o=!1,disablePadding:s=!1,subheader:c,...l}=n,u=C.useMemo(()=>({dense:o}),[o]),d={...n,component:a,dense:o,disablePadding:s},f=hue(d);return(0,B.jsx)(Z7.Provider,{value:u,children:(0,B.jsxs)(gue,{as:a,className:V(f.root,i),ref:t,ownerState:d,...l,children:[c,r]})})});function vue(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var Q7=vue;function $7(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}var yue=$7;function e9(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function t9(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function n9(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(``))}function r9(e,t,n,r,i,a){let o=!1,s=i(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(o)return!1;o=!0}let t=r?!1:s.disabled||s.getAttribute(`aria-disabled`)===`true`;if(!s.hasAttribute(`tabindex`)||!n9(s,a)||t)s=i(e,s,n);else return s.focus(),!0}return!1}var i9=C.forwardRef(function(e,t){let{actions:n,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:o,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:l,variant:u=`selectedMenu`,...d}=e,f=C.useRef(null),p=C.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});T5(()=>{r&&f.current.focus()},[r]),C.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){let n=`${yue(C5(e))}px`;f.current.style[t===`rtl`?`paddingLeft`:`paddingRight`]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);let m=e=>{let t=f.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey){l&&l(e);return}let r=Q7(x5(t));if(n===`ArrowDown`)e.preventDefault(),r9(t,r,c,s,e9);else if(n===`ArrowUp`)e.preventDefault(),r9(t,r,c,s,t9);else if(n===`Home`)e.preventDefault(),r9(t,null,c,s,e9);else if(n===`End`)e.preventDefault(),r9(t,null,c,s,t9);else if(n.length===1){let i=p.current,a=n.toLowerCase(),o=performance.now();i.keys.length>0&&(o-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&a!==i.keys[0]&&(i.repeating=!1)),i.lastTime=o,i.keys.push(a);let c=r&&!i.repeating&&n9(r,i);i.previousKeyMatched&&(c||r9(t,r,!1,s,e9,i))?e.preventDefault():i.previousKeyMatched=!1}l&&l(e)},h=j5(f,t),g=-1;C.Children.forEach(a,(e,t)=>{if(!C.isValidElement(e)){g===t&&(g+=1,g>=a.length&&(g=-1));return}e.props.disabled||(u===`selectedMenu`&&e.props.selected||g===-1)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))});let _=C.Children.map(a,(e,t)=>{if(t===g){let t={};return i&&(t.autoFocus=!0),e.props.tabIndex===void 0&&u===`selectedMenu`&&(t.tabIndex=0),C.cloneElement(e,t)}return e});return(0,B.jsx)(_ue,{role:`menu`,ref:h,className:o,onKeyDown:m,tabIndex:r?0:-1,...d,children:_})});function bue(e){return K6(`MuiListItemIcon`,e)}var a9=q6(`MuiListItemIcon`,[`root`,`alignItemsFlexStart`]);function xue(e){return K6(`MuiListItemText`,e)}var o9=q6(`MuiListItemText`,[`root`,`multiline`,`dense`,`inset`,`primary`,`secondary`]);function Sue(e){return K6(`MuiMenuItem`,e)}var s9=q6(`MuiMenuItem`,[`root`,`focusVisible`,`dense`,`disabled`,`divider`,`gutters`,`selected`]);function Cue(e){let t=b5(e);return t.body===e?S5(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function c9(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function l9(e){return parseFloat(S5(e).getComputedStyle(e).paddingRight)||0}function wue(e){let t=[`TEMPLATE`,`SCRIPT`,`STYLE`,`LINK`,`MAP`,`META`,`NOSCRIPT`,`PICTURE`,`COL`,`COLGROUP`,`PARAM`,`SLOT`,`SOURCE`,`TRACK`].includes(e.tagName),n=e.tagName===`INPUT`&&e.getAttribute(`type`)===`hidden`;return t||n}function u9(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!wue(e);t&&n&&c9(e,i)})}function d9(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function Tue(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(Cue(r)){let e=$7(S5(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${l9(r)+e}px`;let t=b5(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${l9(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=b5(r).body;else{let t=r.parentElement,n=S5(r);e=t?.nodeName===`HTML`&&n.getComputedStyle(t).overflowY===`scroll`?t:r}n.push({value:e.style.overflow,property:`overflow`,el:e},{value:e.style.overflowX,property:`overflow-x`,el:e},{value:e.style.overflowY,property:`overflow-y`,el:e}),e.style.overflow=`hidden`}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}function Eue(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var Due=class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&c9(e.modalRef,!1);let r=Eue(t);u9(t,e.mount,e.modalRef,r,!0);let i=d9(this.containers,e=>e.container===t);return i===-1?(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n):(this.containers[i].modals.push(e),n)}mount(e,t){let n=d9(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=Tue(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=d9(this.containers,t=>t.modals.includes(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&c9(e.modalRef,t),u9(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{let e=i.modals[i.modals.length-1];e.modalRef&&c9(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},Oue=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function kue(e){let t=parseInt(e.getAttribute(`tabindex`)||``,10);return Number.isNaN(t)?e.contentEditable===`true`||(e.nodeName===`AUDIO`||e.nodeName===`VIDEO`||e.nodeName===`DETAILS`)&&e.getAttribute(`tabindex`)===null?0:e.tabIndex:t}function Aue(e){if(e.tagName!==`INPUT`||e.type!==`radio`||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),n=t(`[name="${e.name}"]:checked`);return n||=t(`[name="${e.name}"]`),n!==e}function jue(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||Aue(e))}function Mue(e){let t=[],n=[];return Array.from(e.querySelectorAll(Oue)).forEach((e,r)=>{let i=kue(e);i===-1||!jue(e)||(i===0?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function Nue(){return!0}function Pue(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=Mue,isEnabled:o=Nue,open:s}=e,c=C.useRef(!1),l=C.useRef(null),u=C.useRef(null),d=C.useRef(null),f=C.useRef(null),p=C.useRef(!1),m=C.useRef(null),h=A5(q5(t),m),g=C.useRef(null);C.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),C.useEffect(()=>{if(!s||!m.current)return;let e=Q7(b5(m.current));return m.current.contains(e)||(m.current.hasAttribute(`tabIndex`)||m.current.setAttribute(`tabIndex`,`-1`),p.current&&m.current.focus()),()=>{i||(d.current&&d.current.focus&&(c.current=!0,d.current.focus()),d.current=null)}},[s]),C.useEffect(()=>{if(!s||!m.current)return;let e=b5(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&Q7(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=Q7(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(t.contains(n)||r&&n!==l.current&&n!==u.current)return;if(n!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let i=[];if((n===l.current||n===u.current)&&(i=a(m.current)),i.length>0){let e=!!(g.current?.shiftKey&&g.current?.key===`Tab`),t=i[0],n=i[i.length-1];typeof t!=`string`&&typeof n!=`string`&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener(`focusin`,n),e.addEventListener(`keydown`,t,!0);let i=setInterval(()=>{let t=Q7(e);t&&t.tagName===`BODY`&&n()},50);return()=>{clearInterval(i),e.removeEventListener(`focusin`,n),e.removeEventListener(`keydown`,t,!0)}},[n,r,i,o,s,a]);let _=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;let n=t.props.onFocus;n&&n(e)},v=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0};return(0,B.jsxs)(C.Fragment,{children:[(0,B.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),C.cloneElement(t,{ref:h,onFocus:_}),(0,B.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}var Fue={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},Iue={opacity:0,visibility:`hidden`},f9=C.forwardRef(function(e,t){let n=a5(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:o,easing:s,in:c,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:m,style:h,timeout:g=r,..._}=e,v=C.useRef(null),y=j5(v,q5(o),t),b=Y5(v,d),x=Y5(v,(e,t)=>{J5(e);let r=Z5({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=Y5(v,u),w=Y5(v,m),T=Y5(v,e=>{let t=Z5({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),E=Y5(v,e=>{e.style.transition=``,p&&p(e)});return(0,B.jsx)(vm,{appear:a,in:c,nodeRef:v,onEnter:x,onEntered:S,onEntering:b,onExit:T,onExited:E,onExiting:w,addEndListener:e=>{i&&i(v.current,e)},timeout:g,..._,children:(e,{ownerState:t,...n})=>{let r=X5(e,c,Fue,Iue,h,o.props.style);return C.cloneElement(o,{style:r,ref:y,...n})}})});function Lue(e){return K6(`MuiBackdrop`,e)}q6(`MuiBackdrop`,[`root`,`invisible`]);var Rue=e=>{let{classes:t,invisible:n}=e;return T8({root:[`root`,n&&`invisible`]},Lue,t)},zue=c5(`div`,{name:`MuiBackdrop`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.invisible&&t.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`}}]}),p9=C.forwardRef(function(e,t){let n=d5({props:e,name:`MuiBackdrop`}),{children:r,className:i,component:a=`div`,invisible:o=!1,open:s,components:c={},componentsProps:l={},slotProps:u={},slots:d={},TransitionComponent:f,transitionDuration:p,...m}=n,h={...n,component:a,invisible:o},g=Rue(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=u7(`root`,{elementType:zue,externalForwardedProps:_,className:V(g.root,i),ownerState:h}),[b,x]=u7(`transition`,{elementType:f9,externalForwardedProps:_,ownerState:h});return(0,B.jsx)(b,{in:s,timeout:p,...m,...x,children:(0,B.jsx)(v,{"aria-hidden":!0,...y,ref:t,children:r})})});function Bue(e){return typeof e==`function`?e():e}function Vue(e){return e?e.props.hasOwnProperty(`in`):!1}var m9=()=>{},h9=new Due;function Hue(e){let{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:o,children:s,onClose:c,open:l,rootRef:u}=e,d=C.useRef({}),f=C.useRef(null),p=C.useRef(null),m=A5(p,u),[h,g]=C.useState(!l),_=Vue(s),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>b5(f.current),b=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),x=()=>{h9.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=O5(()=>{let e=Bue(t)||y().body;h9.add(b(),e),p.current&&x()}),w=()=>h9.isTopModal(b()),T=O5(e=>{f.current=e,e&&(l&&w()?x():p.current&&c9(p.current,v))}),E=C.useCallback(()=>{h9.remove(b(),v)},[v]);C.useEffect(()=>()=>{E()},[E]),C.useEffect(()=>{l?S():(!_||!i)&&E()},[l,E,_,i,S]);let D=e=>t=>{e.onKeyDown?.(t),!(t.key!==`Escape`||t.which===229||!w())&&(n||(t.stopPropagation(),c&&c(t,`escapeKeyDown`)))},O=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&c&&c(t,`backdropClick`)};return{getRootProps:(t={})=>{let n=n7(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r={...n,...t};return{role:`presentation`,...r,onKeyDown:D(r),ref:m}},getBackdropProps:(e={})=>{let t=e;return{"aria-hidden":!0,...t,onClick:O(t),open:l}},getTransitionProps:()=>({onEnter:g5(()=>{g(!1),a&&a()},s?.props.onEnter??m9),onExited:g5(()=>{g(!0),o&&o(),i&&E()},s?.props.onExited??m9)}),rootRef:m,portalRef:T,isTopModal:w,exited:h,hasTransition:_}}function Uue(e){return K6(`MuiModal`,e)}q6(`MuiModal`,[`root`,`hidden`,`backdrop`]);var Wue=e=>{let{open:t,exited:n,classes:r}=e;return T8({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},Uue,r)},Gue=c5(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(u5(({theme:e})=>({position:`fixed`,zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:`hidden`}}]}))),Kue=c5(p9,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),g9=C.forwardRef(function(e,t){let n=d5({name:`MuiModal`,props:e}),{BackdropComponent:r=Kue,BackdropProps:i,classes:a,className:o,closeAfterTransition:s=!1,children:c,container:l,component:u,components:d={},componentsProps:f={},disableAutoFocus:p=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:h=!1,disablePortal:g=!1,disableRestoreFocus:_=!1,disableScrollLock:v=!1,hideBackdrop:y=!1,keepMounted:b=!1,onClose:x,onTransitionEnter:S,onTransitionExited:w,open:T,slotProps:E={},slots:D={},theme:O,...k}=n,A={...n,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:h,disablePortal:g,disableRestoreFocus:_,disableScrollLock:v,hideBackdrop:y,keepMounted:b},{getRootProps:j,getBackdropProps:M,getTransitionProps:N,portalRef:P,isTopModal:F,exited:I,hasTransition:L}=Hue({...A,rootRef:t}),ee={...A,exited:I},te=Wue(ee),ne={};if(c.props.tabIndex===void 0&&(ne.tabIndex=`-1`),L){let{onEnter:e,onExited:t}=N();ne.onEnter=e,ne.onExited=t}let re={slots:{root:d.Root,backdrop:d.Backdrop,...D},slotProps:{...f,...E}},[ie,R]=u7(`root`,{ref:t,elementType:Gue,externalForwardedProps:{...re,...k,component:u},getSlotProps:j,ownerState:ee,className:V(o,te?.root,!ee.open&&ee.exited&&te?.hidden)}),[ae,oe]=u7(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:re,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>M({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:V(i?.className,te?.backdrop),ownerState:ee});return!b&&!T&&(!L||I)?null:(0,B.jsx)(s7,{ref:P,container:l,disablePortal:g,children:(0,B.jsxs)(ie,{...R,children:[!y&&r?(0,B.jsx)(ae,{...oe}):null,(0,B.jsx)(Pue,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:F,open:T,children:C.cloneElement(c,ne)})]})})});function que(e){return K6(`MuiPaper`,e)}q6(`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`.split(`.`));var Jue=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return T8({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},que,i)},Yue=c5(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(u5(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create(`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),_9=C.forwardRef(function(e,t){let n=d5({props:e,name:`MuiPaper`}),r=a5(),{className:i,component:a=`div`,elevation:o=1,square:s=!1,variant:c=`elevation`,...l}=n,u={...n,component:a,elevation:o,square:s,variant:c};return(0,B.jsx)(Yue,{as:a,ownerState:u,className:V(Jue(u).root,i),ref:t,...l,style:{...c===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[o],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[o]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${u8(`#fff`,Y8(o))}, ${u8(`#fff`,Y8(o))})`}},...l.style}})});function v9(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function y9(e,t=!1){return e&&(v9(e.value)&&e.value!==``||t&&v9(e.defaultValue)&&e.defaultValue!==``)}function Xue(e){return e.startAdornment}var b9=C.createContext(null);function Zue(){return C.useContext(b9)}var Que=b9.Provider;function x9({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&e[r]===void 0&&(t[r]=n[r]),t),{})}var S9=C.createContext(void 0);function C9(){return C.useContext(S9)}function w9(e){return parseInt(e,10)||0}var $ue={shadow:{visibility:`hidden`,position:`absolute`,overflow:`hidden`,height:0,top:0,left:0,transform:`translateZ(0)`}};function ede(e){for(let t in e)return!1;return!0}function T9(e){return ede(e)||e.outerHeightStyle===0&&!e.overflowing}var tde=C.forwardRef(function(e,t){let{onChange:n,maxRows:r,minRows:i=1,style:a,value:o,...s}=e,{current:c}=C.useRef(o!=null),l=C.useRef(null),u=A5(t,l),d=C.useRef(null),f=C.useRef(null),p=C.useCallback(()=>{let t=l.current,n=f.current;if(!t||!n)return;let a=S5(t).getComputedStyle(t);if(a.width===`0px`)return{outerHeightStyle:0,overflowing:!1};n.style.width=a.width,n.value=t.value||e.placeholder||`x`,n.value.slice(-1)===`
514
- `&&(n.value+=` `);let o=a.boxSizing,s=w9(a.paddingBottom)+w9(a.paddingTop),c=w9(a.borderBottomWidth)+w9(a.borderTopWidth),u=n.scrollHeight;n.value=`x`;let d=n.scrollHeight,p=u;return i&&(p=Math.max(Number(i)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d),{outerHeightStyle:p+(o===`border-box`?s+c:0),overflowing:Math.abs(p-u)<=1}},[r,i,e.placeholder]),m=O5(()=>{let e=l.current,t=p();if(!e||!t||T9(t))return!1;let n=t.outerHeightStyle;return d.current!=null&&d.current!==n}),h=C.useCallback(()=>{let e=l.current,t=p();if(!e||!t||T9(t))return;let n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?`hidden`:``},[p]),g=C.useRef(-1);return r8(()=>{let e=y5(h),t=l?.current;if(!t)return;let n=S5(t);n.addEventListener(`resize`,e);let r;return typeof ResizeObserver<`u`&&(r=new ResizeObserver(()=>{m()&&(r.unobserve(t),cancelAnimationFrame(g.current),h(),g.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),n.removeEventListener(`resize`,e),r&&r.disconnect()}},[p,h,m]),r8(()=>{h()}),(0,B.jsxs)(C.Fragment,{children:[(0,B.jsx)(`textarea`,{value:o,onChange:e=>{c||h();let t=e.target,r=t.value.length,i=t.value.endsWith(`
515
- `),a=t.selectionStart===r;i&&a&&t.setSelectionRange(r,r),n&&n(e)},ref:u,rows:i,style:a,...s}),(0,B.jsx)(`textarea`,{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:{...$ue.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function nde(e){return K6(`MuiInputBase`,e)}var E9=q6(`MuiInputBase`,[`root`,`formControl`,`focused`,`disabled`,`adornedStart`,`adornedEnd`,`error`,`sizeSmall`,`multiline`,`colorSecondary`,`fullWidth`,`hiddenLabel`,`readOnly`,`input`,`inputSizeSmall`,`inputMultiline`,`inputTypeSearch`,`inputAdornedStart`,`inputAdornedEnd`,`inputHiddenLabel`]),rde,D9=(e,t)=>{let{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size===`small`&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${f5(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},O9=(e,t)=>{let{ownerState:n}=e;return[t.input,n.size===`small`&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type===`search`&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},ide=e=>{let{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:c,hiddenLabel:l,multiline:u,readOnly:d,size:f,startAdornment:p,type:m}=e;return T8({root:[`root`,`color${f5(n)}`,r&&`disabled`,i&&`error`,c&&`fullWidth`,o&&`focused`,s&&`formControl`,f&&f!==`medium`&&`size${f5(f)}`,u&&`multiline`,p&&`adornedStart`,a&&`adornedEnd`,l&&`hiddenLabel`,d&&`readOnly`],input:[`input`,r&&`disabled`,m===`search`&&`inputTypeSearch`,u&&`inputMultiline`,f===`small`&&`inputSizeSmall`,l&&`inputHiddenLabel`,p&&`inputAdornedStart`,a&&`inputAdornedEnd`,d&&`readOnly`]},nde,t)},k9=c5(`div`,{name:`MuiInputBase`,slot:`Root`,overridesResolver:D9})(u5(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:`1.4375em`,boxSizing:`border-box`,position:`relative`,cursor:`text`,display:`inline-flex`,alignItems:`center`,[`&.${E9.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:`default`},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:`4px 0 5px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:`100%`}}]}))),A9=c5(`input`,{name:`MuiInputBase`,slot:`Input`,overridesResolver:O9})(u5(({theme:e})=>{let t=e.palette.mode===`light`,n={color:`currentColor`,...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create(`opacity`,{duration:e.transitions.duration.shorter})},r={opacity:`0 !important`},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.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":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:`none`},"&::-webkit-search-decoration":{WebkitAppearance:`none`},[`label[data-shrink=false] + .${E9.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${E9.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.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:e})=>e.multiline,style:{height:`auto`,resize:`none`,padding:0,paddingTop:0}},{props:{type:`search`},style:{MozAppearance:`textfield`}}]}})),j9=Ece({"@keyframes mui-auto-fill":{from:{display:`block`}},"@keyframes mui-auto-fill-cancel":{from:{display:`block`}}}),M9=C.forwardRef(function(e,t){let n=d5({props:e,name:`MuiInputBase`}),{"aria-describedby":r,autoComplete:i,autoFocus:a,className:o,color:s,components:c={},componentsProps:l={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:f,endAdornment:p,error:m,fullWidth:h=!1,id:g,inputComponent:_=`input`,inputProps:v={},inputRef:y,margin:b,maxRows:x,minRows:S,multiline:w=!1,name:T,onBlur:E,onChange:D,onClick:O,onFocus:k,onKeyDown:A,onKeyUp:j,placeholder:M,readOnly:N,renderSuffix:P,rows:F,size:I,slotProps:L={},slots:ee={},startAdornment:te,type:ne=`text`,value:re,...ie}=n,R=v.value==null?re:v.value,{current:ae}=C.useRef(R!=null),oe=C.useRef(),se=C.useCallback(e=>{},[]),ce=j5(oe,y,v.ref,se),[le,ue]=C.useState(!1),z=C9(),de=x9({props:n,muiFormControl:z,states:[`color`,`disabled`,`error`,`hiddenLabel`,`size`,`required`,`filled`]});de.focused=z?z.focused:le,C.useEffect(()=>{!z&&d&&le&&(ue(!1),E&&E())},[z,d,le,E]);let fe=z&&z.onFilled,pe=z&&z.onEmpty,me=C.useCallback(e=>{y9(e)?fe&&fe():pe&&pe()},[fe,pe]);T5(()=>{ae&&me({value:R})},[R,me,ae]);let he=e=>{k&&k(e),v.onFocus&&v.onFocus(e),z&&z.onFocus?z.onFocus(e):ue(!0)},ge=e=>{E&&E(e),v.onBlur&&v.onBlur(e),z&&z.onBlur?z.onBlur(e):ue(!1)},_e=(e,...t)=>{if(!ae){let t=e.target||oe.current;if(t==null)throw Error(Z3(1));me({value:t.value})}v.onChange&&v.onChange(e,...t),D&&D(e,...t)};C.useEffect(()=>{me(oe.current)},[]);let ve=e=>{oe.current&&e.currentTarget===e.target&&oe.current.focus(),O&&O(e)},ye=_,be=v;w&&ye===`input`&&(be=F?{type:void 0,minRows:F,maxRows:F,...be}:{type:void 0,maxRows:x,minRows:S,...be},ye=tde);let xe=e=>{me(e.animationName===`mui-auto-fill-cancel`?oe.current:{value:`x`})};C.useEffect(()=>{z&&z.setAdornedStart(!!te)},[z,te]);let Se={...n,color:de.color||`primary`,disabled:de.disabled,endAdornment:p,error:de.error,focused:de.focused,formControl:z,fullWidth:h,hiddenLabel:de.hiddenLabel,multiline:w,size:de.size,startAdornment:te,type:ne},Ce=ide(Se),we=ee.root||c.Root||k9,Te=L.root||l.root||{},Ee=ee.input||c.Input||A9;return be={...be,...L.input??l.input},(0,B.jsxs)(C.Fragment,{children:[!f&&typeof j9==`function`&&(rde||=(0,B.jsx)(j9,{})),(0,B.jsxs)(we,{...Te,ref:t,onClick:ve,...ie,...!e7(we)&&{ownerState:{...Se,...Te.ownerState}},className:V(Ce.root,Te.className,o,N&&`MuiInputBase-readOnly`),children:[te,(0,B.jsx)(S9.Provider,{value:null,children:(0,B.jsx)(Ee,{"aria-invalid":de.error,"aria-describedby":r,autoComplete:i,autoFocus:a,defaultValue:u,disabled:de.disabled,id:g,onAnimationStart:xe,name:T,placeholder:M,readOnly:N,required:de.required,rows:F,value:R,onKeyDown:A,onKeyUp:j,type:ne,...be,...!e7(Ee)&&{as:ye,ownerState:{...Se,...be.ownerState}},ref:ce,className:V(Ce.input,be.className,N&&`MuiInputBase-readOnly`),onBlur:ge,onChange:_e,onFocus:he})}),p,P?P({...de,startAdornment:te}):null]})]})});function ade(e,t){if(t==null){e.focus();return}try{e.focus({focusVisible:t===`keyboard`})}catch{e.focus()}}var ode=(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},sde=e=>{let{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:o}=e,s=T8({root:[`root`,n&&`dense`,t&&`disabled`,!i&&`gutters`,r&&`divider`,a&&`selected`]},Sue,o);return{...o,...s}},cde=c5(z5,{shouldForwardProp:e=>s5(e)||e===`classes`,name:`MuiMenuItem`,slot:`Root`,overridesResolver:ode})(u5(({theme:e})=>({...e.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:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}},[`&.${s9.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${s9.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${s9.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${s9.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${s9.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Y7.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Y7.inset}`]:{marginLeft:52},[`& .${o9.root}`]:{marginTop:0,marginBottom:0},[`& .${o9.inset}`]:{paddingLeft:36},[`& .${a9.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:`padding-box`}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up(`sm`)]:{minHeight:`auto`}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${a9.root} svg`]:{fontSize:`1.25rem`}}}]}))),N9=C.forwardRef(function(e,t){let n=d5({props:e,name:`MuiMenuItem`}),{autoFocus:r=!1,component:i=`li`,dense:a=!1,divider:o=!1,disableGutters:s=!1,focusVisibleClassName:c,role:l=`menuitem`,tabIndex:u,className:d,...f}=n,p=Zue(),m=C.useContext(Z7),h=C.useMemo(()=>({dense:a||m.dense||!1,disableGutters:s}),[m.dense,a,s]),g=C.useRef(null);T5(()=>{r&&g.current&&ade(g.current,p)},[r]);let _={...n,dense:h.dense,divider:o,disableGutters:s},v=sde(n),y=j5(g,t),b;return n.disabled||(b=u===void 0?-1:u),(0,B.jsx)(Z7.Provider,{value:h,children:(0,B.jsx)(cde,{ref:y,role:l,tabIndex:b,component:i,focusVisibleClassName:V(v.focusVisible,c),className:V(v.root,d),...f,ownerState:_,classes:v})})});function lde(){let{open:e,anchorEl:t,onClose:n,onOpen:r}=Nie(),i=at(),{pathname:a}=nt(),o=K3(e=>e.projects),s=Y3(),c=K3(e=>e.selectProject),l=K3(e=>e.deselectProject),u=K3(e=>e.fetchProjects);(0,C.useEffect)(()=>{u()},[u]);let d=(0,C.useCallback)(()=>{i(l(a)),n()},[l,i,a,n]),f=(0,C.useCallback)(e=>{i(c(e,a)),n()},[c,i,a,n]),p=o.find(e=>e.name===s),m=!s,h={height:1,zIndex:-1,opacity:0,content:`''`,borderRadius:1,position:`absolute`,visibility:`hidden`,bgcolor:`action.hover`,width:`calc(100% + 8px)`,transition:e=>e.transitions.create([`opacity`,`visibility`],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.shorter}),...e&&{opacity:1,visibility:`visible`}},g={fontSize:22,color:`text.secondary`},_={fontSize:22,color:`primary.main`};return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(z5,{disableRipple:!0,onClick:r,sx:{py:.5,gap:{xs:.5,sm:1},"&::before":h},children:[(0,B.jsx)(l5,{sx:{width:24,height:24,display:`flex`,alignItems:`center`,justifyContent:`center`},children:m?(0,B.jsx)(V7,{sx:{fontSize:20}}):(0,B.jsx)(H7,{sx:{fontSize:20}})}),(0,B.jsx)(l5,{component:`span`,sx:{typography:`subtitle2`,display:{xs:`none`,sm:`inline-flex`}},children:m?`Omnitron`:p?.displayName??s}),p&&(0,B.jsxs)(EL,{color:p.runningStacks>0?`success`:`default`,sx:{height:22,cursor:`inherit`,display:{xs:`none`,sm:`inline-flex`}},children:[p.runningStacks,`/`,p.totalStacks,` stacks`]}),(0,B.jsx)(l5,{component:`svg`,viewBox:`0 0 16 16`,sx:{width:16,height:16,color:`text.disabled`,flexShrink:0},children:(0,B.jsx)(`path`,{fill:`currentColor`,d:`M11.2 5.6L8 2.4 4.8 5.6m0 4.8L8 13.6l3.2-3.2`})})]}),(0,B.jsxs)(Mie,{open:e,anchorEl:t,onClose:n,arrow:{placement:`top-left`},slotProps:{paper:{sx:{mt:.5,ml:-1.55,width:280}}},children:[(0,B.jsx)(l5,{sx:{maxHeight:320,overflow:`auto`},children:(0,B.jsxs)(i9,{children:[(0,B.jsxs)(N9,{selected:m,onClick:d,sx:{height:48,gap:1.5},children:[(0,B.jsx)(V7,{sx:m?_:g}),(0,B.jsxs)(l5,{sx:{flexGrow:1,minWidth:0},children:[(0,B.jsx)(h5,{noWrap:!0,variant:`body2`,sx:{fontWeight:`fontWeightMedium`},children:`Omnitron`}),(0,B.jsx)(h5,{noWrap:!0,variant:`caption`,color:`text.disabled`,children:`System`})]})]}),o.length>0&&(0,B.jsx)(X7,{sx:{my:.5,borderStyle:`dashed`}}),o.map(e=>{let t=e.name===s;return(0,B.jsx)(g7,{title:e.path,placement:`right`,arrow:!0,enterDelay:500,children:(0,B.jsxs)(N9,{selected:t,onClick:()=>f(e.name),sx:{height:48,gap:1.5},children:[(0,B.jsx)(H7,{sx:t?_:g}),(0,B.jsx)(l5,{sx:{flexGrow:1,minWidth:0},children:(0,B.jsx)(h5,{noWrap:!0,variant:`body2`,sx:{fontWeight:`fontWeightMedium`},children:e.displayName})}),(0,B.jsx)(EL,{color:e.runningStacks>0?`success`:`default`,children:e.runningStacks>0?`${e.runningStacks} live`:`idle`})]})},e.name)})]})}),(0,B.jsx)(X7,{sx:{my:.5,borderStyle:`dashed`}}),(0,B.jsx)(J7,{fullWidth:!0,startIcon:(0,B.jsx)(F7,{sx:{fontSize:18}}),onClick:n,sx:{gap:2,justifyContent:`flex-start`,fontWeight:`fontWeightMedium`,[`& .${U7.startIcon}`]:{m:0,width:24,height:24,display:`flex`,alignItems:`center`,justifyContent:`center`}},children:`Add project`})]})]})}function ude(){let e=Y3();return(0,C.useMemo)(()=>e?[{id:`overview`,subheader:`Overview`,items:[{id:`dashboard`,title:`Dashboard`,path:`/`,icon:(0,B.jsx)(T7,{})},{id:`apps`,title:`Applications`,path:`/apps`,icon:(0,B.jsx)(E7,{}),selectionPrefix:`/apps`}]},{id:`observability`,subheader:`Observability`,items:[{id:`logs`,title:`Logs`,path:`/logs`,icon:(0,B.jsx)(D7,{})},{id:`metrics`,title:`Metrics`,path:`/metrics`,icon:(0,B.jsx)(O7,{})},{id:`traces`,title:`Traces`,path:`/traces`,icon:(0,B.jsx)(L7,{})},{id:`alerts`,title:`Alerts`,path:`/alerts`,icon:(0,B.jsx)(k7,{})}]},{id:`infrastructure`,subheader:`Infrastructure`,items:[{id:`stacks`,title:`Stacks`,path:`/stacks`,icon:(0,B.jsx)(z7,{}),selectionPrefix:`/stacks`},{id:`topology`,title:`Topology`,path:`/topology`,icon:(0,B.jsx)(A7,{})},{id:`containers`,title:`Containers`,path:`/containers`,icon:(0,B.jsx)(j7,{})},{id:`deployments`,title:`Deployments`,path:`/deployments`,icon:(0,B.jsx)(M7,{})},{id:`pipelines`,title:`Pipelines`,path:`/pipelines`,icon:(0,B.jsx)(I7,{}),selectionPrefix:`/pipelines`}]},{id:`system`,subheader:`System`,items:[{id:`dashboard-builder`,title:`Dashboard Builder`,path:`/dashboard-builder`,icon:(0,B.jsx)(Wle,{})},{id:`settings`,title:`Settings`,path:`/settings`,icon:(0,B.jsx)(N7,{})},{id:`system-info`,title:`System Info`,path:`/system`,icon:(0,B.jsx)(R7,{})}]}]:[{id:`overview`,subheader:`Overview`,items:[{id:`dashboard`,title:`Dashboard`,path:`/`,icon:(0,B.jsx)(T7,{})}]},{id:`observability`,subheader:`Observability`,items:[{id:`logs`,title:`Logs`,path:`/logs`,icon:(0,B.jsx)(D7,{})}]},{id:`infrastructure`,subheader:`Infrastructure`,items:[{id:`projects`,title:`Projects`,path:`/projects`,icon:(0,B.jsx)(B7,{})},{id:`nodes`,title:`Nodes`,path:`/nodes`,icon:(0,B.jsx)(A7,{})}]},{id:`system`,subheader:`System`,items:[{id:`settings`,title:`Settings`,path:`/settings`,icon:(0,B.jsx)(N7,{})},{id:`system-info`,title:`System Info`,path:`/system`,icon:(0,B.jsx)(R7,{})}]}],[e])}function dde(){let{sidenavCollapsed:e,sidenavVariant:t}=I0();return(0,B.jsxs)(_7,{direction:`row`,alignItems:`center`,spacing:1,children:[(0,B.jsx)(w7,{size:48}),!e&&t!==`mini`&&(0,B.jsx)(h5,{variant:`subtitle1`,fontWeight:800,letterSpacing:2,noWrap:!0,sx:{textTransform:`uppercase`,fontSize:`0.85rem`},children:`Omnitron`})]})}function fde({mode:e}){return e===`dark`?(0,B.jsxs)(l5,{component:`svg`,viewBox:`0 0 24 24`,sx:{width:20,height:20},children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M21.5 14.08C20.31 14.67 18.98 15 17.58 15C12.86 15 9.08 11.22 9.08 6.5C9.08 5.1 9.42 3.77 10 2.58C5.73 3.63 2.58 7.5 2.58 12.08C2.58 17.6 7.06 22.08 12.58 22.08C17.16 22.08 21.04 18.93 22.08 14.67C21.89 14.81 21.7 14.94 21.5 14.08Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M21.5 14.08C20.31 14.67 18.98 15 17.58 15C12.86 15 9.08 11.22 9.08 6.5C9.08 5.1 9.42 3.77 10 2.58C5.73 3.63 2.58 7.5 2.58 12.08C2.58 17.6 7.06 22.08 12.58 22.08C17.16 22.08 21.04 18.93 22.08 14.67`})]}):e===`light`?(0,B.jsxs)(l5,{component:`svg`,viewBox:`0 0 24 24`,sx:{width:20,height:20},children:[(0,B.jsx)(`circle`,{fill:`currentColor`,opacity:`0.4`,cx:`12`,cy:`12`,r:`5`}),(0,B.jsx)(`circle`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,cx:`12`,cy:`12`,r:`5`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M12 2V4M12 20V22M4 12H2M22 12H20M19.78 4.22L18.36 5.64M5.64 18.36L4.22 19.78M19.78 19.78L18.36 18.36M5.64 5.64L4.22 4.22`})]}):(0,B.jsxs)(l5,{component:`svg`,viewBox:`0 0 24 24`,sx:{width:20,height:20},children:[(0,B.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M2 10C2 6.23 2 4.34 3.17 3.17C4.34 2 6.23 2 10 2H14C17.77 2 19.66 2 20.83 3.17C22 4.34 22 6.23 22 10V11C22 11.55 21.55 12 21 12H3C2.45 12 2 11.55 2 11V10Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M2 10C2 6.23 2 4.34 3.17 3.17C4.34 2 6.23 2 10 2H14C17.77 2 19.66 2 20.83 3.17C22 4.34 22 6.23 22 10V14C22 17.77 22 19.66 20.83 20.83C19.66 22 17.77 22 14 22H10C6.23 22 4.34 22 3.17 20.83C2 19.66 2 17.77 2 14V10Z`}),(0,B.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M2 12H22`})]})}var P9={p:.75,transition:`transform 0.2s ease`,"&:hover":{transform:`scale(1.1)`,bgcolor:`transparent`}};function pde(){let e=I3(e=>e.signOut),{setMode:t}=Px(),n=lO(e=>e.mode);return(0,B.jsxs)(_7,{direction:`row`,alignItems:`center`,spacing:.5,children:[(0,B.jsx)(g7,{title:n===`light`?`Dark mode`:n===`dark`?`System mode`:`Light mode`,children:(0,B.jsx)(K5,{disableRipple:!0,onClick:()=>{let e=[`light`,`dark`,`system`];t(e[(e.indexOf(n)+1)%e.length])},sx:P9,children:(0,B.jsx)(fde,{mode:n})})}),(0,B.jsx)(g7,{title:`Sign out`,children:(0,B.jsx)(K5,{disableRipple:!0,onClick:()=>e(),sx:P9,children:(0,B.jsx)(Yle,{sx:{fontSize:20}})})})]})}function mde(){let e=ude();return(0,B.jsxs)(roe,{logo:(0,B.jsx)(dde,{}),navData:e,persistKey:`console`,initialConfig:{navigationMenuType:`sidenav`,sidenavVariant:`default`,navColor:`default`},headerSlots:{leftArea:(0,B.jsx)(lde,{}),rightArea:(0,B.jsx)(pde,{})},slotProps:{main:{sx:{pb:{xs:6,sm:7,md:8}}}},children:[(0,B.jsx)(lue,{children:(0,B.jsx)(C.Suspense,{fallback:(0,B.jsx)(DL,{}),children:(0,B.jsx)(Pt,{})})}),(0,B.jsx)(Nle,{})]})}function hde(e){return K6(`MuiLinearProgress`,e)}q6(`MuiLinearProgress`,[`root`,`colorPrimary`,`colorSecondary`,`determinate`,`indeterminate`,`buffer`,`query`,`dashed`,`dashedColorPrimary`,`dashedColorSecondary`,`bar`,`bar1`,`bar2`,`barColorPrimary`,`barColorSecondary`,`bar1Indeterminate`,`bar1Determinate`,`bar1Buffer`,`bar2Indeterminate`,`bar2Buffer`]);var F9=4,I9=Qi`
516
- 0% {
517
- left: -35%;
518
- right: 100%;
519
- }
520
-
521
- 60% {
522
- left: 100%;
523
- right: -90%;
524
- }
525
-
526
- 100% {
527
- left: 100%;
528
- right: -90%;
529
- }
530
- `,gde=typeof I9==`string`?null:Zi`
531
- animation: ${I9} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
532
- `,L9=Qi`
533
- 0% {
534
- left: -200%;
535
- right: 100%;
536
- }
537
-
538
- 60% {
539
- left: 107%;
540
- right: -8%;
541
- }
542
-
543
- 100% {
544
- left: 107%;
545
- right: -8%;
546
- }
547
- `,_de=typeof L9==`string`?null:Zi`
548
- animation: ${L9} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
549
- `,R9=Qi`
550
- 0% {
551
- opacity: 1;
552
- background-position: 0 -23px;
553
- }
554
-
555
- 60% {
556
- opacity: 0;
557
- background-position: 0 -23px;
558
- }
559
-
560
- 100% {
561
- opacity: 1;
562
- background-position: -200px -23px;
563
- }
564
- `,vde=typeof R9==`string`?null:Zi`
565
- animation: ${R9} 3s infinite linear;
566
- `,yde=e=>{let{classes:t,variant:n,color:r}=e;return T8({root:[`root`,`color${f5(r)}`,n],dashed:[`dashed`,`dashedColor${f5(r)}`],bar1:[`bar`,`bar1`,`barColor${f5(r)}`,(n===`indeterminate`||n===`query`)&&`bar1Indeterminate`,n===`determinate`&&`bar1Determinate`,n===`buffer`&&`bar1Buffer`],bar2:[`bar`,`bar2`,n!==`buffer`&&`barColor${f5(r)}`,n===`buffer`&&`color${f5(r)}`,(n===`indeterminate`||n===`query`)&&`bar2Indeterminate`,n===`buffer`&&`bar2Buffer`]},hde,t)},z9=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode===`light`?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),bde=c5(`span`,{name:`MuiLinearProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`color${f5(n.color)}`],t[n.variant]]}})(u5(({theme:e})=>({position:`relative`,overflow:`hidden`,display:`block`,height:4,zIndex:0,"@media print":{colorAdjust:`exact`},variants:[...Object.entries(e.palette).filter(p5()).map(([t])=>({props:{color:t},style:{backgroundColor:z9(e,t)}})),{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)`}}]}))),xde=c5(`span`,{name:`MuiLinearProgress`,slot:`Dashed`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.dashed,t[`dashedColor${f5(n.color)}`]]}})(u5(({theme:e})=>({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(e.palette).filter(p5()).map(([t])=>{let n=z9(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),vde||{animation:`${R9} 3s infinite linear`}),Sde=c5(`span`,{name:`MuiLinearProgress`,slot:`Bar1`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${f5(n.color)}`],(n.variant===`indeterminate`||n.variant===`query`)&&t.bar1Indeterminate,n.variant===`determinate`&&t.bar1Determinate,n.variant===`buffer`&&t.bar1Buffer]}})(u5(({theme:e})=>({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(e.palette).filter(p5()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:`determinate`},style:{transition:`transform .${F9}s linear`}},{props:{variant:`buffer`},style:{zIndex:1,transition:`transform .${F9}s linear`}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:{width:`auto`}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:gde||{animation:`${I9} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),Cde=c5(`span`,{name:`MuiLinearProgress`,slot:`Bar2`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${f5(n.color)}`],(n.variant===`indeterminate`||n.variant===`query`)&&t.bar2Indeterminate,n.variant===`buffer`&&t.bar2Buffer]}})(u5(({theme:e})=>({width:`100%`,position:`absolute`,left:0,bottom:0,top:0,transition:`transform 0.2s linear`,transformOrigin:`left`,variants:[...Object.entries(e.palette).filter(p5()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].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(e.palette).filter(p5()).map(([t])=>({props:{color:t,variant:`buffer`},style:{backgroundColor:z9(e,t),transition:`transform .${F9}s linear`}})),{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:{width:`auto`}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:_de||{animation:`${L9} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),B9=C.forwardRef(function(e,t){let n=d5({props:e,name:`MuiLinearProgress`}),{className:r,color:i=`primary`,value:a,valueBuffer:o,variant:s=`indeterminate`,...c}=n,l={...n,color:i,variant:s},u=yde(l),d=v8(),f={},p={bar1:{},bar2:{}};if((s===`determinate`||s===`buffer`)&&a!==void 0){f[`aria-valuenow`]=Math.round(a),f[`aria-valuemin`]=0,f[`aria-valuemax`]=100;let e=a-100;d&&(e=-e),p.bar1.transform=`translateX(${e}%)`}if(s===`buffer`&&o!==void 0){let e=(o||0)-100;d&&(e=-e),p.bar2.transform=`translateX(${e}%)`}return(0,B.jsxs)(bde,{className:V(u.root,r),ownerState:l,role:`progressbar`,...f,ref:t,...c,children:[s===`buffer`?(0,B.jsx)(xde,{className:u.dashed,ownerState:l}):null,(0,B.jsx)(Sde,{className:u.bar1,ownerState:l,style:p.bar1}),s===`determinate`?null:(0,B.jsx)(Cde,{className:u.bar2,ownerState:l,style:p.bar2})]})});function wde(){return(0,B.jsx)(soe,{maxWidth:460,children:(0,B.jsx)(C.Suspense,{fallback:(0,B.jsx)(l5,{sx:{width:`100%`,pt:2},children:(0,B.jsx)(B9,{})}),children:(0,B.jsx)(Pt,{})})})}var Tde=(0,C.lazy)(()=>i(()=>import(`./sign-in-ik35umbp.js`),__vite__mapDeps([2,1,3,4,5]))),Ede=(0,C.lazy)(()=>i(()=>import(`./dashboard-CzgB0uZz.js`),__vite__mapDeps([6,1,7,8,9,10,11,12,13,4]))),Dde=(0,C.lazy)(()=>i(()=>import(`./apps-CdR0VH2d.js`),__vite__mapDeps([14,1,7,8,15,9,10,12,16,17,18]))),Ode=(0,C.lazy)(()=>i(()=>import(`./detail-nlCeSltl.js`),__vite__mapDeps([19,1,7,8,15,9,10,11,20,12,3,4,5,16,21,17,18,22]))),kde=(0,C.lazy)(()=>i(()=>import(`./logs-Kn8o4H7k.js`),__vite__mapDeps([23,1,7,8,15,24,12,3,4,5,16]))),Ade=(0,C.lazy)(()=>i(()=>import(`./topology-bDe70vLs.js`),__vite__mapDeps([25,1,7,8,9,12,26,3,4,16,21,27]))),jde=(0,C.lazy)(()=>i(()=>import(`./alerts-DnRbT41C.js`),__vite__mapDeps([28,1,7,8,9,24,10,11,20,12,26,3,4,29,13,16,30,31,17,18]))),Mde=(0,C.lazy)(()=>i(()=>import(`./containers-Dw-rRXV1.js`),__vite__mapDeps([32,1,7,8,10,11,12,26,13,4,16,17,18]))),Nde=(0,C.lazy)(()=>i(()=>import(`./deployments-DtQAoIcQ.js`),__vite__mapDeps([33,1,8,9,10,12,26,3,4,16,17,18]))),Pde=(0,C.lazy)(()=>i(()=>import(`./metrics-DN8Zu5wT.js`),__vite__mapDeps([34,1,35,7,8,10,11,20,13,4,16,30,31,22]))),Fde=(0,C.lazy)(()=>i(()=>import(`./settings-va3zTcow.js`),__vite__mapDeps([36,1,8,9,10,11,20,12,3,4,29,5,16,30,31,17,18]))),Ide=(0,C.lazy)(()=>i(()=>import(`./pipelines-Cry3qm-S.js`),__vite__mapDeps([37,1,8,9,10,20,12,26,3,4,16,17,18]))),Lde=(0,C.lazy)(()=>i(()=>import(`./traces-DIIcT8DF.js`),__vite__mapDeps([38,1,7,8,9,10,11,20,12,3,4,13,16,17,18]))),Rde=(0,C.lazy)(()=>i(()=>import(`./dashboard-builder-DsA0yg33.js`),__vite__mapDeps([39,1,8,9,10,11,12,26,3,4,13,16,30,31,22]))),zde=(0,C.lazy)(()=>i(()=>import(`./stacks-CVFOnxbF.js`),__vite__mapDeps([40,1,8,9,10,41,11,12,26,42,3,4,29,13,16,31]))),Bde=(0,C.lazy)(()=>i(()=>import(`./detail-BJR-G7JG.js`),__vite__mapDeps([43,1,9,10,11,12,26,42,17]))),Vde=(0,C.lazy)(()=>i(()=>import(`./system-info-npIXAjX2.js`),__vite__mapDeps([44,1,8,9,10,11,20,12,13,4,16]))),Hde=(0,C.lazy)(()=>i(()=>import(`./nodes-Bgch7AtN.js`),__vite__mapDeps([45,1,8,10,11,12,26,3,4,13,16]))),Ude=(0,C.lazy)(()=>i(()=>import(`./projects-Dym2GI1U.js`),__vite__mapDeps([46,1,9,10,41,11,12,26,3,4,13,16])));function Wde(){return(0,B.jsxs)(Lt,{children:[(0,B.jsx)(Ft,{element:(0,B.jsx)(voe,{children:(0,B.jsx)(wde,{})}),children:(0,B.jsx)(Ft,{path:`/auth/sign-in`,element:(0,B.jsx)(V9,{children:(0,B.jsx)(Tde,{})})})}),(0,B.jsxs)(Ft,{element:(0,B.jsx)(_oe,{children:(0,B.jsx)(mde,{})}),children:[(0,B.jsx)(Ft,{index:!0,element:(0,B.jsx)(V9,{children:(0,B.jsx)(Ede,{})})}),(0,B.jsx)(Ft,{path:`nodes`,element:(0,B.jsx)(V9,{children:(0,B.jsx)(Hde,{})})}),(0,B.jsx)(Ft,{path:`projects`,element:(0,B.jsx)(V9,{children:(0,B.jsx)(Ude,{})})}),(0,B.jsx)(Ft,{path:`system`,element:(0,B.jsx)(V9,{children:(0,B.jsx)(Vde,{})})}),(0,B.jsx)(Ft,{path:`settings`,element:(0,B.jsx)(V9,{children:(0,B.jsx)(Fde,{})})}),(0,B.jsx)(Ft,{path:`logs`,element:(0,B.jsx)(V9,{children:(0,B.jsx)(kde,{})})}),(0,B.jsx)(Ft,{path:`apps`,element:(0,B.jsx)(H9,{children:(0,B.jsx)(Dde,{})})}),(0,B.jsx)(Ft,{path:`apps/:name`,element:(0,B.jsx)(H9,{children:(0,B.jsx)(Ode,{})})}),(0,B.jsx)(Ft,{path:`stacks`,element:(0,B.jsx)(H9,{children:(0,B.jsx)(zde,{})})}),(0,B.jsx)(Ft,{path:`stacks/:name`,element:(0,B.jsx)(H9,{children:(0,B.jsx)(Bde,{})})}),(0,B.jsx)(Ft,{path:`metrics`,element:(0,B.jsx)(H9,{children:(0,B.jsx)(Pde,{})})}),(0,B.jsx)(Ft,{path:`topology`,element:(0,B.jsx)(H9,{children:(0,B.jsx)(Ade,{})})}),(0,B.jsx)(Ft,{path:`containers`,element:(0,B.jsx)(H9,{children:(0,B.jsx)(Mde,{})})}),(0,B.jsx)(Ft,{path:`deployments`,element:(0,B.jsx)(H9,{children:(0,B.jsx)(Nde,{})})}),(0,B.jsx)(Ft,{path:`alerts`,element:(0,B.jsx)(H9,{children:(0,B.jsx)(jde,{})})}),(0,B.jsx)(Ft,{path:`pipelines`,element:(0,B.jsx)(H9,{children:(0,B.jsx)(Ide,{})})}),(0,B.jsx)(Ft,{path:`traces`,element:(0,B.jsx)(H9,{children:(0,B.jsx)(Lde,{})})}),(0,B.jsx)(Ft,{path:`dashboard-builder`,element:(0,B.jsx)(H9,{children:(0,B.jsx)(Rde,{})})})]}),(0,B.jsx)(Ft,{path:`*`,element:(0,B.jsx)(Nt,{to:`/`,replace:!0})})]})}function V9({children:e}){return(0,B.jsx)(C.Suspense,{fallback:(0,B.jsx)(DL,{}),children:e})}function H9({children:e}){return(0,B.jsx)(C.Suspense,{fallback:(0,B.jsx)(DL,{}),children:(0,B.jsx)(woe,{children:e})})}function Gde(e){return K6(`MuiDialog`,e)}var U9=q6(`MuiDialog`,[`root`,`backdrop`,`scrollPaper`,`scrollBody`,`container`,`paper`,`paperScrollPaper`,`paperScrollBody`,`paperWidthFalse`,`paperWidthXs`,`paperWidthSm`,`paperWidthMd`,`paperWidthLg`,`paperWidthXl`,`paperFullWidth`,`paperFullScreen`]),W9=C.createContext({}),Kde=c5(p9,{name:`MuiDialog`,slot:`Backdrop`})({zIndex:-1}),qde=e=>{let{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=e;return T8({root:[`root`],backdrop:[`backdrop`],container:[`container`,`scroll${f5(n)}`],paper:[`paper`,`paperScroll${f5(n)}`,`paperWidth${f5(String(r))}`,i&&`paperFullWidth`,a&&`paperFullScreen`]},Gde,t)},Jde=c5(g9,{name:`MuiDialog`,slot:`Root`})({"@media print":{position:`absolute !important`}}),Yde=c5(`div`,{name:`MuiDialog`,slot:`Container`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.container,t[`scroll${f5(n.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`}}}]}),Xde=c5(_9,{name:`MuiDialog`,slot:`Paper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.paper,t[`scrollPaper${f5(n.scroll)}`],t[`paperWidth${f5(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(u5(({theme:e})=>({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:e.breakpoints.unit===`px`?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${U9.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:`calc(100% - 64px)`}}}},...Object.keys(e.breakpoints.values).filter(e=>e!==`xs`).map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${U9.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+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,[`&.${U9.paperScrollBody}`]:{margin:0,maxWidth:`100%`}}}]}))),G9=C.forwardRef(function(e,t){let n=d5({props:e,name:`MuiDialog`}),r=a5(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":o,"aria-modal":s=!0,BackdropComponent:c,BackdropProps:l,children:u,className:d,disableEscapeKeyDown:f=!1,fullScreen:p=!1,fullWidth:m=!1,maxWidth:h=`sm`,onClick:g,onClose:_,open:v,PaperComponent:y=_9,PaperProps:b={},role:x=`dialog`,scroll:S=`paper`,slots:w={},slotProps:T={},TransitionComponent:E=f9,transitionDuration:D=i,TransitionProps:O,...k}=n,A={...n,disableEscapeKeyDown:f,fullScreen:p,fullWidth:m,maxWidth:h,scroll:S},j=qde(A),M=C.useRef(),N=e=>{M.current=e.target===e.currentTarget},P=e=>{g&&g(e),M.current&&(M.current=null,_&&_(e,`backdropClick`))},F=x8(o),I=C.useMemo(()=>({titleId:F}),[F]),L={slots:{transition:E,...w},slotProps:{transition:O,paper:b,backdrop:l,...T}},[ee,te]=u7(`root`,{elementType:Jde,shouldForwardComponentProp:!0,externalForwardedProps:L,ownerState:A,className:V(j.root,d),ref:t}),[ne,re]=u7(`backdrop`,{elementType:Kde,shouldForwardComponentProp:!0,externalForwardedProps:L,ownerState:A,className:j.backdrop}),[ie,R]=u7(`paper`,{elementType:Xde,shouldForwardComponentProp:!0,externalForwardedProps:L,ownerState:A,className:V(j.paper,b.className)}),[ae,oe]=u7(`container`,{elementType:Yde,externalForwardedProps:L,ownerState:A,className:j.container}),[se,ce]=u7(`transition`,{elementType:f9,externalForwardedProps:L,ownerState:A,additionalProps:{appear:!0,in:v,timeout:D,role:`presentation`}});return(0,B.jsx)(ee,{closeAfterTransition:!0,slots:{backdrop:ne},slotProps:{backdrop:{transitionDuration:D,as:c,...re}},disableEscapeKeyDown:f,onClose:_,open:v,onClick:P,...te,...k,children:(0,B.jsx)(se,{...ce,children:(0,B.jsx)(ae,{onMouseDown:N,...oe,children:(0,B.jsx)(ie,{as:y,elevation:24,role:x,"aria-describedby":a,"aria-labelledby":F,"aria-modal":s,...R,children:(0,B.jsx)(W9.Provider,{value:I,children:u})})})})})}),K9=[{id:`nav-dashboard`,label:`Dashboard`,icon:T7,action:`navigate`,target:`/`,keywords:[`home`,`overview`],section:`Navigation`},{id:`nav-apps`,label:`Applications`,icon:E7,action:`navigate`,target:`/apps`,keywords:[`processes`,`services`],section:`Navigation`},{id:`nav-stacks`,label:`Stacks`,icon:z7,action:`navigate`,target:`/stacks`,keywords:[`environments`,`dev`,`prod`,`test`,`deploy`,`cluster`,`remote`],section:`Navigation`},{id:`nav-logs`,label:`Logs`,icon:D7,action:`navigate`,target:`/logs`,keywords:[`terminal`,`output`,`stream`],section:`Navigation`},{id:`nav-metrics`,label:`Metrics`,icon:O7,action:`navigate`,target:`/metrics`,keywords:[`charts`,`cpu`,`memory`,`performance`],section:`Navigation`},{id:`nav-alerts`,label:`Alerts`,icon:k7,action:`navigate`,target:`/alerts`,keywords:[`rules`,`notifications`,`warnings`],section:`Navigation`},{id:`nav-topology`,label:`Topology`,icon:A7,action:`navigate`,target:`/topology`,keywords:[`nodes`,`fleet`,`servers`,`infrastructure`],section:`Navigation`},{id:`nav-containers`,label:`Containers`,icon:j7,action:`navigate`,target:`/containers`,keywords:[`docker`,`images`],section:`Navigation`},{id:`nav-deployments`,label:`Deployments`,icon:M7,action:`navigate`,target:`/deployments`,keywords:[`deploy`,`rollback`,`releases`],section:`Navigation`},{id:`nav-settings`,label:`Settings`,icon:N7,action:`navigate`,target:`/settings`,keywords:[`profile`,`password`,`sessions`],section:`Navigation`},{id:`nav-pipelines`,label:`Pipelines`,action:`navigate`,target:`/pipelines`,keywords:[`ci`,`cd`,`jobs`,`workflow`],section:`Navigation`},{id:`nav-traces`,label:`Traces`,action:`navigate`,target:`/traces`,keywords:[`spans`,`distributed`,`tracing`],section:`Navigation`},{id:`act-logs-error`,label:`View error logs`,icon:D7,action:`navigate`,target:`/logs?level=error`,keywords:[`errors`,`failures`],section:`Quick Actions`},{id:`act-logs-live`,label:`Live log stream`,icon:D7,action:`navigate`,target:`/logs?live=true`,keywords:[`tail`,`stream`,`follow`],section:`Quick Actions`}];function Zde(){let[e,t]=(0,C.useState)(!1),[n,r]=(0,C.useState)(``),[i,a]=(0,C.useState)(0),o=(0,C.useRef)(null),s=at();(0,C.useEffect)(()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&e.key===`k`&&(e.preventDefault(),t(e=>!e))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[]),(0,C.useEffect)(()=>{e&&(r(``),a(0),setTimeout(()=>o.current?.focus(),50))},[e]);let c=(0,C.useMemo)(()=>{if(!n.trim())return K9;let e=n.toLowerCase();return K9.filter(t=>t.label.toLowerCase().includes(e)||t.keywords.some(t=>t.includes(e))||(t.description?.toLowerCase().includes(e)??!1))},[n]);(0,C.useEffect)(()=>{a(0)},[c.length]);let l=(0,C.useCallback)(e=>{t(!1),e.action===`navigate`&&s(e.target)},[s]),u=(0,C.useCallback)(e=>{e.key===`ArrowDown`?(e.preventDefault(),a(e=>Math.min(e+1,c.length-1))):e.key===`ArrowUp`?(e.preventDefault(),a(e=>Math.max(e-1,0))):e.key===`Enter`&&c[i]?l(c[i]):e.key===`Escape`&&t(!1)},[c,i,l]),d=(0,C.useMemo)(()=>{let e=new Map;for(let t of c){let n=e.get(t.section)??[];n.push(t),e.set(t.section,n)}return e},[c]),f=0;return(0,B.jsxs)(G9,{open:e,onClose:()=>t(!1),maxWidth:`sm`,fullWidth:!0,PaperProps:{sx:{bgcolor:u8(`#111118`,.95),backdropFilter:`blur(20px)`,border:`1px solid`,borderColor:`rgba(255,255,255,0.08)`,borderRadius:2,mt:`15vh`,alignSelf:`flex-start`,maxHeight:`60vh`,overflow:`hidden`}},slotProps:{backdrop:{sx:{bgcolor:`rgba(0,0,0,0.5)`,backdropFilter:`blur(4px)`}}},children:[(0,B.jsxs)(l5,{sx:{display:`flex`,alignItems:`center`,gap:1.5,px:2,py:1.5,borderBottom:`1px solid rgba(255,255,255,0.06)`},children:[(0,B.jsx)(P7,{sx:{fontSize:20,color:`text.secondary`}}),(0,B.jsx)(M9,{inputRef:o,placeholder:`Search commands, pages, apps...`,value:n,onChange:e=>r(e.target.value),onKeyDown:u,fullWidth:!0,sx:{fontSize:`0.95rem`,color:`text.primary`,"& input::placeholder":{color:`text.secondary`,opacity:1}}}),(0,B.jsx)(h5,{variant:`caption`,sx:{px:.75,py:.25,borderRadius:.5,border:`1px solid rgba(255,255,255,0.1)`,color:`text.secondary`,fontSize:`0.65rem`,whiteSpace:`nowrap`},children:`ESC`})]}),(0,B.jsxs)(l5,{sx:{overflow:`auto`,maxHeight:`calc(60vh - 56px)`,py:.5},children:[c.length===0&&(0,B.jsxs)(h5,{color:`text.secondary`,sx:{px:2,py:3,textAlign:`center`,fontSize:`0.85rem`},children:[`No results for "`,n,`"`]}),Array.from(d.entries()).map(([e,t])=>(0,B.jsxs)(l5,{children:[(0,B.jsx)(h5,{variant:`caption`,sx:{display:`block`,px:2,py:.75,color:`text.secondary`,fontSize:`0.65rem`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:e}),t.map(e=>{let t=f++===i,n=e.icon;return(0,B.jsxs)(l5,{onClick:()=>l(e),sx:{display:`flex`,alignItems:`center`,gap:1.5,px:2,py:1,cursor:`pointer`,bgcolor:t?`rgba(255,255,255,0.06)`:`transparent`,"&:hover":{bgcolor:`rgba(255,255,255,0.04)`},transition:`background-color 100ms`},children:[n&&(0,B.jsx)(n,{sx:{fontSize:18,color:t?`primary.main`:`text.secondary`}}),(0,B.jsx)(h5,{variant:`body2`,sx:{flex:1,fontWeight:t?600:400,color:t?`text.primary`:`text.secondary`},children:e.label}),e.description&&(0,B.jsx)(h5,{variant:`caption`,color:`text.secondary`,sx:{fontSize:`0.7rem`},children:e.description})]},e.id)})]},e))]})]})}function Qde(e){return K6(`MuiAlert`,e)}var q9=q6(`MuiAlert`,[`root`,`action`,`icon`,`message`,`filled`,`colorSuccess`,`colorInfo`,`colorWarning`,`colorError`,`filledSuccess`,`filledInfo`,`filledWarning`,`filledError`,`outlined`,`outlinedSuccess`,`outlinedInfo`,`outlinedWarning`,`outlinedError`,`standard`,`standardSuccess`,`standardInfo`,`standardWarning`,`standardError`]),$de=v5((0,B.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`}),`SuccessOutlined`),efe=v5((0,B.jsx)(`path`,{d:`M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z`}),`ReportProblemOutlined`),tfe=v5((0,B.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`}),`ErrorOutline`),nfe=v5((0,B.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`}),`InfoOutlined`),rfe=v5((0,B.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`}),`Close`),ife=e=>{let{variant:t,color:n,severity:r,classes:i}=e;return T8({root:[`root`,`color${f5(n||r)}`,`${t}${f5(n||r)}`,`${t}`],icon:[`icon`],message:[`message`],action:[`action`]},Qde,i)},afe=c5(_9,{name:`MuiAlert`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${f5(n.color||n.severity)}`]]}})(u5(({theme:e})=>{let t=e.palette.mode===`light`?e.darken:e.lighten,n=e.palette.mode===`light`?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:`transparent`,display:`flex`,padding:`6px 16px`,variants:[...Object.entries(e.palette).filter(p5([`light`])).map(([r])=>({props:{colorSeverity:r,variant:`standard`},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${q9.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(p5([`light`])).map(([n])=>({props:{colorSeverity:n,variant:`outlined`},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${q9.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(p5([`dark`])).map(([t])=>({props:{colorSeverity:t,variant:`filled`},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:e.palette.mode===`dark`?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)}}}))]}})),ofe=c5(`div`,{name:`MuiAlert`,slot:`Icon`})({marginRight:12,padding:`7px 0`,display:`flex`,fontSize:22,opacity:.9}),sfe=c5(`div`,{name:`MuiAlert`,slot:`Message`})({padding:`8px 0`,minWidth:0,overflow:`auto`}),cfe=c5(`div`,{name:`MuiAlert`,slot:`Action`})({display:`flex`,alignItems:`flex-start`,padding:`4px 0 0 16px`,marginLeft:`auto`,marginRight:-8}),J9={success:(0,B.jsx)($de,{fontSize:`inherit`}),warning:(0,B.jsx)(efe,{fontSize:`inherit`}),error:(0,B.jsx)(tfe,{fontSize:`inherit`}),info:(0,B.jsx)(nfe,{fontSize:`inherit`})},Y9=C.forwardRef(function(e,t){let n=d5({props:e,name:`MuiAlert`}),{action:r,children:i,className:a,closeText:o=`Close`,color:s,components:c={},componentsProps:l={},icon:u,iconMapping:d=J9,onClose:f,role:p=`alert`,severity:m=`success`,slotProps:h={},slots:g={},variant:_=`standard`,...v}=n,y={...n,color:s,severity:m,variant:_,colorSeverity:s||m},b=ife(y),x={slots:{closeButton:c.CloseButton,closeIcon:c.CloseIcon,...g},slotProps:{...l,...h}},[S,C]=u7(`root`,{ref:t,shouldForwardComponentProp:!0,className:V(b.root,a),elementType:afe,externalForwardedProps:{...x,...v},ownerState:y,additionalProps:{role:p,elevation:0}}),[w,T]=u7(`icon`,{className:b.icon,elementType:ofe,externalForwardedProps:x,ownerState:y}),[E,D]=u7(`message`,{className:b.message,elementType:sfe,externalForwardedProps:x,ownerState:y}),[O,k]=u7(`action`,{className:b.action,elementType:cfe,externalForwardedProps:x,ownerState:y}),[A,j]=u7(`closeButton`,{elementType:K5,externalForwardedProps:x,ownerState:y}),[M,N]=u7(`closeIcon`,{elementType:rfe,externalForwardedProps:x,ownerState:y});return(0,B.jsxs)(S,{...C,children:[u===!1?null:(0,B.jsx)(w,{...T,children:u||d[m]||J9[m]}),(0,B.jsx)(E,{...D,children:i}),r==null?null:(0,B.jsx)(O,{...k,children:r}),r==null&&f?(0,B.jsx)(O,{...k,children:(0,B.jsx)(A,{size:`small`,"aria-label":o,title:o,color:`inherit`,onClick:f,...j,children:(0,B.jsx)(M,{fontSize:`small`,...N})})}):null]})});function lfe(e){return K6(`MuiCollapse`,e)}q6(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var ufe=e=>{let{orientation:t,classes:n}=e;return T8({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},lfe,n)},dfe=c5(`div`,{name:`MuiCollapse`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.state===`entered`&&t.entered,n.state===`exited`&&!n.in&&n.collapsedSize===`0px`&&t.hidden]}})(u5(({theme:e})=>({height:0,overflow:`hidden`,transition:e.transitions.create(`height`),variants:[{props:{orientation:`horizontal`},style:{height:`auto`,width:0,transition:e.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`}}]}))),ffe=c5(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),pfe=c5(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),X9=C.forwardRef(function(e,t){let n=d5({props:e,name:`MuiCollapse`}),{addEndListener:r,children:i,className:a,collapsedSize:o=`0px`,component:s,easing:c,in:l,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:h,orientation:g=`vertical`,slots:_={},slotProps:v={},style:y,timeout:b=W8.standard,TransitionComponent:x=vm,...S}=n,w={...n,orientation:g,collapsedSize:o},T=ufe(w),E=a5(),D=I5(),O=C.useRef(null),k=C.useRef(),A=typeof o==`number`?`${o}px`:o,j=g===`horizontal`,M=j?`width`:`height`,N=C.useRef(null),P=j5(t,N),F=()=>O.current?O.current[j?`clientWidth`:`clientHeight`]:0,I=Y5(N,(e,t)=>{O.current&&j&&(O.current.style.position=`absolute`),e.style[M]=A,u&&u(e,t)}),L=Y5(N,(e,t)=>{let n=F();O.current&&j&&(O.current.style.position=``);let{duration:r,easing:i}=Z5({style:y,timeout:b,easing:c},{mode:`enter`});if(b===`auto`){let t=E.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,k.current=t}else e.style.transitionDuration=typeof r==`string`?r:`${r}ms`;e.style[M]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)}),ee=Y5(N,(e,t)=>{e.style[M]=`auto`,d&&d(e,t)}),te=Y5(N,e=>{e.style[M]=`${F()}px`,p&&p(e)}),ne=Y5(N,m),re=Y5(N,e=>{let t=F(),{duration:n,easing:r}=Z5({style:y,timeout:b,easing:c},{mode:`exit`});if(b===`auto`){let n=E.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,k.current=n}else e.style.transitionDuration=typeof n==`string`?n:`${n}ms`;e.style[M]=A,e.style.transitionTimingFunction=r,h&&h(e)}),ie=e=>{b===`auto`&&D.start(k.current||0,e),r&&r(N.current,e)},R={slots:_,slotProps:v,component:s},[ae,oe]=u7(`root`,{ref:P,className:V(T.root,a),elementType:dfe,externalForwardedProps:R,ownerState:w,additionalProps:{style:{[j?`minWidth`:`minHeight`]:A,...y}}}),[se,ce]=u7(`wrapper`,{ref:O,className:T.wrapper,elementType:ffe,externalForwardedProps:R,ownerState:w}),[le,ue]=u7(`wrapperInner`,{className:T.wrapperInner,elementType:pfe,externalForwardedProps:R,ownerState:w});return(0,B.jsx)(x,{in:l,onEnter:I,onEntered:ee,onEntering:L,onExit:te,onExited:ne,onExiting:re,addEndListener:ie,nodeRef:N,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...w,state:e};return(0,B.jsx)(ae,{...oe,className:V(oe.className,{entered:T.entered,exited:!l&&A===`0px`&&T.hidden}[e]),ownerState:r,...n,children:(0,B.jsx)(se,{...ce,ownerState:r,children:(0,B.jsx)(le,{...ue,ownerState:r,children:i})})})}})});X9&&(X9.muiSupportAuto=!0);var mfe=3e4,hfe=5e3;async function Z9(){try{let e=new AbortController,t=setTimeout(()=>e.abort(),hfe),n=await fetch(`/api/health`,{signal:e.signal,cache:`no-store`});return clearTimeout(t),n.status===502||n.status===503||(n.headers.get(`content-type`)??``).includes(`text/html`)||!n.ok?!1:(await n.json().catch(()=>null))?.status===`online`}catch{return!1}}var Q9=OE(e=>({status:`unknown`,lastChecked:null,probe:async()=>{e({status:await Z9()?`online`:`offline`,lastChecked:Date.now()})},startPolling:()=>{Z9().then(t=>e({status:t?`online`:`offline`,lastChecked:Date.now()}));let t=setInterval(async()=>{e({status:await Z9()?`online`:`offline`,lastChecked:Date.now()})},mfe);return()=>clearInterval(t)}})),gfe=()=>Q9(e=>e.status===`online`||e.status===`unknown`),_fe=()=>Q9(e=>e.status);function vfe(){let e=_fe(),{probe:t,startPolling:n}=Q9();return(0,C.useEffect)(()=>n(),[n]),(0,B.jsx)(X9,{in:e===`offline`,unmountOnExit:!0,children:(0,B.jsxs)(Y9,{severity:`error`,variant:`filled`,sx:{borderRadius:0,py:.5,"& .MuiAlert-message":{display:`flex`,alignItems:`center`,gap:2,width:`100%`}},action:(0,B.jsx)(J7,{color:`inherit`,size:`small`,onClick:t,sx:{fontWeight:700,whiteSpace:`nowrap`},children:`Retry`}),children:[`Daemon offline — run `,(0,B.jsx)(`code`,{style:{margin:`0 4px`},children:`omnitron dev`}),` to start the backend`]})})}function yfe(){let{pathname:e}=nt(),t=K3(e=>e.saveCurrentRoute);return(0,C.useEffect)(()=>{e.startsWith(`/auth`)||t(e)},[e,t]),(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(vfe,{}),(0,B.jsx)(Yie,{pathname:e}),(0,B.jsx)(Xie,{pathname:e}),(0,B.jsx)(Zde,{}),(0,B.jsx)(nae,{children:(0,B.jsx)(Wde,{})})]})}function bfe(){return(0,B.jsx)(pre,{defaultSettings:{mode:`dark`,preset:`midnight`,direction:`ltr`},children:(0,B.jsx)(uie,{children:(0,B.jsx)(coe,{client:f,autoConnect:!0,children:(0,B.jsx)(Rie,{children:(0,B.jsx)(Dn,{children:(0,B.jsx)(yfe,{})})})})})})}var $9=document.getElementById(`root`);if(!$9)throw Error(`Root element not found`);(0,w.createRoot)($9).render((0,B.jsx)(C.StrictMode,{children:(0,B.jsx)(bfe,{})}));export{F7 as $,x8 as $t,G7 as A,V as An,j5 as At,qle as B,b as Bn,v5 as Bt,o9 as C,Iie as Cn,Y5 as Ct,Z7 as D,bie as Dn,W5 as Dt,Q7 as E,Sie as En,K5 as Et,Vle as F,An as Fn,T5 as Ft,Qle as G,d5 as Gt,Jle as H,jce as Ht,V7 as I,nt as In,C5 as It,D7 as J,c5 as Jt,eue as K,u5 as Kt,nue as L,at as Ln,x5 as Lt,k7 as M,fa as Mn,k5 as Mt,E7 as N,Zi as Nn,O5 as Nt,X7 as O,OE as On,z5 as Ot,Ule as P,Qi as Pn,D5 as Pt,Lle as Q,T8 as Qt,Ble as R,lt as Rn,b5 as Rt,xue as S,Uie as Sn,Z5 as St,i9 as T,wL as Tn,q5 as Tt,Kle as U,p5 as Ut,M7 as V,g as Vn,h5 as Vt,$le as W,f5 as Wt,A7 as X,o5 as Xt,O7 as Y,s5 as Yt,I7 as Z,a5 as Zt,Que as _,P3 as _n,u7 as _t,W9 as a,q6 as an,N7 as at,_9 as b,hae as bn,e7 as bt,M9 as c,V6 as cn,Gle as ct,O9 as d,Z3 as dn,Xle as dt,v8 as en,B7 as et,D9 as f,Y3 as fn,Zle as ft,x9 as g,hoe as gn,g7 as gt,S9 as h,I3 as hn,_7 as ht,G9 as i,e8 as in,R7 as it,W7 as j,ma as jn,A5 as jt,J7 as k,vm as kn,I5 as kt,A9 as l,B6 as ln,Hle as lt,C9 as m,K3 as mn,y7 as mt,X9 as n,g8 as nn,zle as nt,B9 as o,K6 as on,z7 as ot,E9 as p,X3 as pn,w7 as pt,tue as q,l5 as qt,Y9 as r,n8 as rn,P7 as rt,N9 as s,U6 as sn,Rle as st,gfe as t,u8 as tn,Ile as tt,k9 as u,r6 as un,L7 as ut,Xue as v,gae as vn,o7 as vt,bue as w,EL as wn,J5 as wt,g9 as x,jL as xn,$5 as xt,y9 as y,_ae as yn,n7 as yt,j7 as z,Rn as zn,y5 as zt};