@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
@@ -0,0 +1,414 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/react-apexcharts.esm-Dy0Fez42.js","assets/rolldown-runtime-hePW80VL.js","assets/react-CwJFpaho.js","assets/maplibre-gl-MlmG2kbn.js","assets/sign-in-Bcvjrr4C.js","assets/dashboard-Cfuf95N3.js","assets/Grid-BZ7xhoHQ.js","assets/client-CGbBvy9k.js","assets/formatters-BqjL73N3.js","assets/use-stack-context-CZUgPq88.js","assets/apps-B_Ah8Flh.js","assets/constants-veKGFkC6.js","assets/detail-D027j6aO.js","assets/logs-L2b8Oqmo.js","assets/topology-Cwch-uF1.js","assets/topology-DLioOiRN.css","assets/alerts-sXqHJbsa.js","assets/FormControlLabel-BrH2diyl.js","assets/Switch-DGSAxQPM.js","assets/settled-pair-C7SjZuns.js","assets/containers-Di4NOTLf.js","assets/deployments-ChTq5kCw.js","assets/metrics-CQgjz2Lz.js","assets/settings-DU-mjiwb.js","assets/pipelines-DCu_rXOr.js","assets/traces-BbShR-4P.js","assets/dashboard-builder-CowaYb-M.js","assets/daemon-memory-CCPZ4cV_.js","assets/stacks-B-e8p50I.js","assets/deploy-release-dialog-D6C-XcKY.js","assets/release-bits-Dj4EOhhb.js","assets/sync-reading-C3PnJ7AX.js","assets/detail-BsGWv7Dj.js","assets/system-info-BtE3dgfw.js","assets/nodes-Nwia2Ty6.js","assets/projects-Bb4aV76h.js","assets/audit-YXihwyui.js","assets/releases-CnAt3yO6.js","assets/release-build-panel-D6OCVlhT.js","assets/detail-CyVf_cw5.js"])))=>i.map(i=>d[i]);
2
+ import{n as e,r as t,t as n}from"./rolldown-runtime-hePW80VL.js";import{t as r}from"./react-CwJFpaho.js";import{n as i}from"./maplibre-gl-MlmG2kbn.js";import{S as a,_ as o,a as s,c,d as l,h as u,i as d,s as f,t as p,u as m,y as h}from"./client-CGbBvy9k.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),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var g=n((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}}}})),_=n(((e,t)=>{t.exports=g()})),v=n((e=>{var t=r();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 i(){}var a={d:{f:i,r:function(){throw Error(n(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`);function s(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(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=a,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 s(e,t,null,r)},e.flushSync=function(e){var t=c.T,n=a.p;try{if(c.T=null,a.p=2,e)return e()}finally{c.T=t,a.p=n,a.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,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,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=l(t.as,t.crossOrigin);a.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??a.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=l(n,t.crossOrigin);a.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=l(t.as,t.crossOrigin);a.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 a.d.m(e)}},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return c.H.useFormState(e,t,n)},e.useFormStatus=function(){return c.H.useHostTransitionStatus()},e.version=`19.2.8`})),y=n(((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=v()})),b=n((e=>{var t=_(),n=r(),i=y();function a(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 o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s(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 c(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 l(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 u(e){if(s(e)!==e)throw Error(a(188))}function d(e){var t=e.alternate;if(!t){if(t=s(e),t===null)throw Error(a(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return u(i),e;if(o===r)return u(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var c=!1,l=i.child;l;){if(l===n){c=!0,n=i,r=o;break}if(l===r){c=!0,r=i,n=o;break}l=l.sibling}if(!c){for(l=o.child;l;){if(l===n){c=!0,n=o,r=i;break}if(l===r){c=!0,r=o,n=i;break}l=l.sibling}if(!c)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(n.tag!==3)throw Error(a(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,m=Symbol.for(`react.element`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),b=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 v:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case k:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case g: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,R=i.__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 ae(e,t){ne++,te[ne]=e.current,e.current=t}var oe=re(null),se=re(null),ce=re(null),le=re(null);function ue(e,t){switch(ae(ce,t),ae(se,e),ae(oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?qd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=qd(t),e=Jd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ie(oe),ae(oe,e)}function de(){ie(oe),ie(se),ie(ce)}function fe(e){e.memoizedState!==null&&ae(le,e);var t=oe.current,n=Jd(t,e.type);t!==n&&(ae(se,e),ae(oe,n))}function pe(e){se.current===e&&(ie(oe),ie(se)),le.current===e&&(ie(le),ip._currentValue=ee)}var me,he;function ge(e){if(me===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);me=t&&t[1]||``,he=-1<e.stack.indexOf(`
3
+ at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4
+ `+me+e+he}var _e=!1;function ve(e,t){if(!e||_e)return``;_e=!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{_e=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ge(n):``}function ye(e,t){switch(e.tag){case 26:case 27:case 5:return ge(e.type);case 16:return ge(`Lazy`);case 13:return e.child!==t&&t!==null?ge(`Suspense Fallback`):ge(`Suspense`);case 19:return ge(`SuspenseList`);case 0:case 15:return ve(e.type,!1);case 11:return ve(e.type.render,!1);case 1:return ve(e.type,!0);case 31:return ge(`Activity`);default:return``}}function be(e){try{var t=``,n=null;do t+=ye(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
8
+ Error generating stack: `+e.message+`
9
+ `+e.stack}}var xe=Object.prototype.hasOwnProperty,Se=t.unstable_scheduleCallback,Ce=t.unstable_cancelCallback,we=t.unstable_shouldYield,Te=t.unstable_requestPaint,Ee=t.unstable_now,De=t.unstable_getCurrentPriorityLevel,Oe=t.unstable_ImmediatePriority,ke=t.unstable_UserBlockingPriority,Ae=t.unstable_NormalPriority,je=t.unstable_LowPriority,Me=t.unstable_IdlePriority,Ne=t.log,Pe=t.unstable_setDisableYieldValue,Fe=null,Ie=null;function Le(e){if(typeof Ne==`function`&&Pe(e),Ie&&typeof Ie.setStrictMode==`function`)try{Ie.setStrictMode(Fe,e)}catch{}}var Re=Math.clz32?Math.clz32:Ve,ze=Math.log,Be=Math.LN2;function Ve(e){return e>>>=0,e===0?32:31-(ze(e)/Be|0)|0}var He=256,Ue=262144,We=4194304;function Ge(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 Ke(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=Ge(n))):i=Ge(o):i=Ge(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ge(n))):i=Ge(o)):i=Ge(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 qe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Je(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 Ye(){var e=We;return We<<=1,!(We&62914560)&&(We=4194304),e}function Xe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ze(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Qe(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-Re(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&&$e(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function $e(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Re(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function et(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Re(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function tt(e,t){var n=t&-t;return n=n&42?1:nt(n),(n&(e.suspendedLanes|t))===0?n:0}function nt(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 rt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function it(){var e=R.p;return e===0?(e=window.event,e===void 0?32:bp(e.type)):e}function at(e,t){var n=R.p;try{return R.p=e,t()}finally{R.p=n}}var ot=Math.random().toString(36).slice(2),st=`__reactFiber$`+ot,ct=`__reactProps$`+ot,lt=`__reactContainer$`+ot,ut=`__reactEvents$`+ot,dt=`__reactListeners$`+ot,ft=`__reactHandles$`+ot,pt=`__reactResources$`+ot,mt=`__reactMarker$`+ot;function ht(e){delete e[st],delete e[ct],delete e[ut],delete e[dt],delete e[ft]}function gt(e){var t=e[st];if(t)return t;for(var n=e.parentNode;n;){if(t=n[lt]||n[st]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_f(e);e!==null;){if(n=e[st])return n;e=_f(e)}return t}e=n,n=e.parentNode}return null}function _t(e){if(e=e[st]||e[lt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function vt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(a(33))}function yt(e){var t=e[pt];return t||=e[pt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function bt(e){e[mt]=!0}var xt=new Set,St={};function Ct(e,t){wt(e,t),wt(e+`Capture`,t)}function wt(e,t){for(St[e]=t,e=0;e<t.length;e++)xt.add(t[e])}var Tt=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]*$`),Et={},Dt={};function Ot(e){return xe.call(Dt,e)?!0:xe.call(Et,e)?!1:Tt.test(e)?Dt[e]=!0:(Et[e]=!0,!1)}function kt(e,t,n){if(Ot(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 At(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 jt(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 Mt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Nt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Pt(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 Ft(e){if(!e._valueTracker){var t=Nt(e)?`checked`:`value`;e._valueTracker=Pt(e,t,``+e[t])}}function It(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Nt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function Lt(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 Rt=/[\n"\\]/g;function zt(e){return e.replace(Rt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Bt(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=``+Mt(t)):e.value!==``+Mt(t)&&(e.value=``+Mt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Ht(e,o,Mt(n)):Ht(e,o,Mt(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=``+Mt(s):e.removeAttribute(`name`)}function Vt(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)){Ft(e);return}n=n==null?``:``+Mt(n),t=t==null?n:``+Mt(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),Ft(e)}function Ht(e,t,n){t===`number`&&Lt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Ut(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=``+Mt(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 Wt(e,t,n){if(t!=null&&(t=``+Mt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Mt(n)}function Gt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(a(92));if(F(r)){if(1<r.length)throw Error(a(93));r=r[0]}n=r}n??=``,t=n}n=Mt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Ft(e)}function Kt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var qt=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 Jt(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||qt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Yt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(a(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 i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&Jt(e,i,r)}else for(var o in t)t.hasOwnProperty(o)&&Jt(e,o,t[o])}function Xt(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 Zt=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`]]),Qt=/^[\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 $t(e){return Qt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function en(){}var tn=null;function nn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rn=null,an=null;function on(e){var t=_t(e);if(t&&(e=t.stateNode)){var n=e[ct]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Bt(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="`+zt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[ct]||null;if(!i)throw Error(a(90));Bt(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&It(r)}break a;case`textarea`:Wt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Ut(e,!!n.multiple,t,!1)}}}var sn=!1;function cn(e,t,n){if(sn)return e(t,n);sn=!0;try{return e(t)}finally{if(sn=!1,(rn!==null||an!==null)&&(Du(),rn&&(t=rn,e=an,an=rn=null,on(t),e)))for(t=0;t<e.length;t++)on(e[t])}}function ln(e,t){var n=e.stateNode;if(n===null)return null;var r=n[ct]||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(a(231,t,typeof n));return n}var un=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),dn=!1;if(un)try{var fn={};Object.defineProperty(fn,"passive",{get:function(){dn=!0}}),window.addEventListener(`test`,fn,fn),window.removeEventListener(`test`,fn,fn)}catch{dn=!1}var pn=null,mn=null,hn=null;function gn(){if(hn)return hn;var e,t=mn,n=t.length,r,i=`value`in pn?pn.value:pn.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 hn=i.slice(e,1<r?1-r:void 0)}function _n(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 vn(){return!0}function yn(){return!1}function bn(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)?vn:yn,this.isPropagationStopped=yn,this}return p(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=vn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=vn)},persist:function(){},isPersistent:vn}),t}var xn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sn=bn(xn),Cn=p({},xn,{view:0,detail:0}),wn=bn(Cn),Tn,En,Dn,On=p({},Cn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zn,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!==Dn&&(Dn&&e.type===`mousemove`?(Tn=e.screenX-Dn.screenX,En=e.screenY-Dn.screenY):En=Tn=0,Dn=e),Tn)},movementY:function(e){return`movementY`in e?e.movementY:En}}),kn=bn(On),An=bn(p({},On,{dataTransfer:0})),jn=bn(p({},Cn,{relatedTarget:0})),Mn=bn(p({},xn,{animationName:0,elapsedTime:0,pseudoElement:0})),Nn=bn(p({},xn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Pn=bn(p({},xn,{data:0})),Fn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},In={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`},Ln={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Rn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ln[e])?!!t[e]:!1}function zn(){return Rn}var Bn=bn(p({},Cn,{key:function(e){if(e.key){var t=Fn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=_n(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?In[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zn,charCode:function(e){return e.type===`keypress`?_n(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?_n(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Vn=bn(p({},On,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Hn=bn(p({},Cn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zn})),Un=bn(p({},xn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Wn=bn(p({},On,{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})),Gn=bn(p({},xn,{newState:0,oldState:0})),Kn=[9,13,27,32],qn=un&&`CompositionEvent`in window,Jn=null;un&&`documentMode`in document&&(Jn=document.documentMode);var Yn=un&&`TextEvent`in window&&!Jn,Xn=un&&(!qn||Jn&&8<Jn&&11>=Jn),Zn=` `,Qn=!1;function $n(e,t){switch(e){case`keyup`:return Kn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function er(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var tr=!1;function nr(e,t){switch(e){case`compositionend`:return er(t);case`keypress`:return t.which===32?(Qn=!0,Zn):null;case`textInput`:return e=t.data,e===Zn&&Qn?null:e;default:return null}}function rr(e,t){if(tr)return e===`compositionend`||!qn&&$n(e,t)?(e=gn(),hn=mn=pn=null,tr=!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 Xn&&t.locale!==`ko`?null:t.data;default:return null}}var ir={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 ar(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!ir[e.type]:t===`textarea`}function or(e,t,n,r){rn?an?an.push(r):an=[r]:rn=r,t=jd(t,`onChange`),0<t.length&&(n=new Sn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var sr=null,cr=null;function lr(e){Cd(e,0)}function ur(e){if(It(vt(e)))return e}function dr(e,t){if(e===`change`)return t}var fr=!1;if(un){var pr;if(un){var mr=`oninput`in document;if(!mr){var hr=document.createElement(`div`);hr.setAttribute(`oninput`,`return;`),mr=typeof hr.oninput==`function`}pr=mr}else pr=!1;fr=pr&&(!document.documentMode||9<document.documentMode)}function gr(){sr&&(sr.detachEvent(`onpropertychange`,_r),cr=sr=null)}function _r(e){if(e.propertyName===`value`&&ur(cr)){var t=[];or(t,cr,e,nn(e)),cn(lr,t)}}function vr(e,t,n){e===`focusin`?(gr(),sr=t,cr=n,sr.attachEvent(`onpropertychange`,_r)):e===`focusout`&&gr()}function yr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return ur(cr)}function br(e,t){if(e===`click`)return ur(t)}function xr(e,t){if(e===`input`||e===`change`)return ur(t)}function Sr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Cr=typeof Object.is==`function`?Object.is:Sr;function wr(e,t){if(Cr(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(!xe.call(t,i)||!Cr(e[i],t[i]))return!1}return!0}function Tr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Er(e,t){var n=Tr(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=Tr(n)}}function Dr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Or(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Lt(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=Lt(e.document)}return t}function kr(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 Ar=un&&`documentMode`in document&&11>=document.documentMode,jr=null,Mr=null,Nr=null,Pr=!1;function Fr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Pr||jr==null||jr!==Lt(r)||(r=jr,`selectionStart`in r&&kr(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}),Nr&&wr(Nr,r)||(Nr=r,r=jd(Mr,`onSelect`),0<r.length&&(t=new Sn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=jr)))}function Ir(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Lr={animationend:Ir(`Animation`,`AnimationEnd`),animationiteration:Ir(`Animation`,`AnimationIteration`),animationstart:Ir(`Animation`,`AnimationStart`),transitionrun:Ir(`Transition`,`TransitionRun`),transitionstart:Ir(`Transition`,`TransitionStart`),transitioncancel:Ir(`Transition`,`TransitionCancel`),transitionend:Ir(`Transition`,`TransitionEnd`)},Rr={},zr={};un&&(zr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Lr.animationend.animation,delete Lr.animationiteration.animation,delete Lr.animationstart.animation),`TransitionEvent`in window||delete Lr.transitionend.transition);function Br(e){if(Rr[e])return Rr[e];if(!Lr[e])return e;var t=Lr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in zr)return Rr[e]=t[n];return e}var Vr=Br(`animationend`),Hr=Br(`animationiteration`),Ur=Br(`animationstart`),Wr=Br(`transitionrun`),Gr=Br(`transitionstart`),Kr=Br(`transitioncancel`),qr=Br(`transitionend`),Jr=new Map,Yr=`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(` `);Yr.push(`scrollEnd`);function Xr(e,t){Jr.set(e,t),Ct(t,[e])}var Zr=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)},Qr=[],$r=0,ei=0;function ti(){for(var e=$r,t=ei=$r=0;t<e;){var n=Qr[t];Qr[t++]=null;var r=Qr[t];Qr[t++]=null;var i=Qr[t];Qr[t++]=null;var a=Qr[t];if(Qr[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&&ai(n,i,a)}}function ni(e,t,n,r){Qr[$r++]=e,Qr[$r++]=t,Qr[$r++]=n,Qr[$r++]=r,ei|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ri(e,t,n,r){return ni(e,t,n,r),oi(e)}function ii(e,t){return ni(e,null,null,t),oi(e)}function ai(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-Re(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function oi(e){if(50<vu)throw vu=0,yu=null,Error(a(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var si={};function ci(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 li(e,t,n,r){return new ci(e,t,n,r)}function ui(e){return e=e.prototype,!(!e||!e.isReactComponent)}function di(e,t){var n=e.alternate;return n===null?(n=li(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 fi(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 pi(e,t,n,r,i,o){var s=0;if(r=e,typeof e==`function`)ui(e)&&(s=1);else if(typeof e==`string`)s=Yf(e,n,oe.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case k:return e=li(31,n,t,i),e.elementType=k,e.lanes=o,e;case v:return mi(n.children,i,o,t);case b:s=8,i|=24;break;case x:return e=li(12,n,t,i|2),e.elementType=x,e.lanes=o,e;case T:return e=li(13,n,t,i),e.elementType=T,e.lanes=o,e;case E:return e=li(19,n,t,i),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(a(130,e===null?`null`:typeof e,``)),r=null}return t=li(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function mi(e,t,n,r){return e=li(7,e,r,t),e.lanes=n,e}function hi(e,t,n){return e=li(6,e,null,t),e.lanes=n,e}function gi(e){var t=li(18,null,null,0);return t.stateNode=e,t}function _i(e,t,n){return t=li(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var vi=new WeakMap;function yi(e,t){if(typeof e==`object`&&e){var n=vi.get(e);return n===void 0?(t={value:e,source:t,stack:be(t)},vi.set(e,t),t):n}return{value:e,source:t,stack:be(t)}}var bi=[],xi=0,Si=null,Ci=0,wi=[],Ti=0,Ei=null,Di=1,Oi=``;function ki(e,t){bi[xi++]=Ci,bi[xi++]=Si,Si=e,Ci=t}function Ai(e,t,n){wi[Ti++]=Di,wi[Ti++]=Oi,wi[Ti++]=Ei,Ei=e;var r=Di;e=Oi;var i=32-Re(r)-1;r&=~(1<<i),n+=1;var a=32-Re(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Di=1<<32-Re(t)+i|n<<i|r,Oi=a+e}else Di=1<<a|n<<i|r,Oi=e}function ji(e){e.return!==null&&(ki(e,1),Ai(e,1,0))}function Mi(e){for(;e===Si;)Si=bi[--xi],bi[xi]=null,Ci=bi[--xi],bi[xi]=null;for(;e===Ei;)Ei=wi[--Ti],wi[Ti]=null,Oi=wi[--Ti],wi[Ti]=null,Di=wi[--Ti],wi[Ti]=null}function Ni(e,t){wi[Ti++]=Di,wi[Ti++]=Oi,wi[Ti++]=Ei,Di=t.id,Oi=t.overflow,Ei=e}var Pi=null,Fi=null,Ii=!1,Li=null,Ri=!1,zi=Error(a(519));function Bi(e){throw Ki(yi(Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),zi}function Vi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[st]=e,t[ct]=r,n){case`dialog`:wd(`cancel`,t),wd(`close`,t);break;case`iframe`:case`object`:case`embed`:wd(`load`,t);break;case`video`:case`audio`:for(n=0;n<xd.length;n++)wd(xd[n],t);break;case`source`:wd(`error`,t);break;case`img`:case`image`:case`link`:wd(`error`,t),wd(`load`,t);break;case`details`:wd(`toggle`,t);break;case`input`:wd(`invalid`,t),Vt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:wd(`invalid`,t);break;case`textarea`:wd(`invalid`,t),Gt(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||Ld(t.textContent,n)?(r.popover!=null&&(wd(`beforetoggle`,t),wd(`toggle`,t)),r.onScroll!=null&&wd(`scroll`,t),r.onScrollEnd!=null&&wd(`scrollend`,t),r.onClick!=null&&(t.onclick=en),t=!0):t=!1,t||Bi(e,!0)}function Hi(e){for(Pi=e.return;Pi;)switch(Pi.tag){case 5:case 31:case 13:Ri=!1;return;case 27:case 3:Ri=!0;return;default:Pi=Pi.return}}function Ui(e){if(e!==Pi)return!1;if(!Ii)return Hi(e),Ii=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||Yd(e.type,e.memoizedProps)),n=!n),n&&Fi&&Bi(e),Hi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(317));Fi=gf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(317));Fi=gf(e)}else t===27?(t=Fi,rf(e.type)?(e=hf,hf=null,Fi=e):Fi=t):Fi=Pi?mf(e.stateNode.nextSibling):null;return!0}function Wi(){Fi=Pi=null,Ii=!1}function Gi(){var e=Li;return e!==null&&(au===null?au=e:au.push.apply(au,e),Li=null),e}function Ki(e){Li===null?Li=[e]:Li.push(e)}var qi=re(null),Ji=null,Yi=null;function Xi(e,t,n){ae(qi,t._currentValue),t._currentValue=n}function Zi(e){e._currentValue=qi.current,ie(qi)}function Qi(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 $i(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){var s=i.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=i;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Qi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(i.tag===18){if(s=i.return,s===null)throw Error(a(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Qi(s,n,e),s=null}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===e){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}}function ea(e,t,n,r){e=null;for(var i=t,o=!1;i!==null;){if(!o){if(i.flags&524288)o=!0;else if(i.flags&262144)break}if(i.tag===10){var s=i.alternate;if(s===null)throw Error(a(387));if(s=s.memoizedProps,s!==null){var c=i.type;Cr(i.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(i===le.current){if(s=i.alternate,s===null)throw Error(a(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[ip]:e.push(ip))}i=i.return}e!==null&&$i(t,e,n,r),t.flags|=262144}function ta(e){for(e=e.firstContext;e!==null;){if(!Cr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function na(e){Ji=e,Yi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ra(e){return z(Ji,e)}function ia(e,t){return Ji===null&&na(e),z(e,t)}function z(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Yi===null){if(e===null)throw Error(a(308));Yi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Yi=Yi.next=t;return n}var aa=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()})}},oa=t.unstable_scheduleCallback,sa=t.unstable_NormalPriority,ca={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function la(){return{controller:new aa,data:new Map,refCount:0}}function ua(e){e.refCount--,e.refCount===0&&oa(sa,function(){e.controller.abort()})}var da=null,fa=0,pa=0,ma=null;function ha(e,t){if(da===null){var n=da=[];fa=0,pa=hd(),ma={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return fa++,t.then(ga,ga),t}function ga(){if(--fa===0&&da!==null){ma!==null&&(ma.status=`fulfilled`);var e=da;da=null,pa=0,ma=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function _a(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 va=I.S;I.S=function(e,t){cu=Ee(),typeof t==`object`&&t&&typeof t.then==`function`&&ha(e,t),va!==null&&va(e,t)};var ya=re(null);function ba(){var e=ya.current;return e===null?Ul.pooledCache:e}function xa(e,t){t===null?ae(ya,ya.current):ae(ya,t.pool)}function Sa(){var e=ba();return e===null?null:{parent:ca._currentValue,pool:e}}var Ca=Error(a(460)),wa=Error(a(474)),Ta=Error(a(542)),Ea={then:function(){}};function Da(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Oa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(en,en),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ma(e),e;default:if(typeof t.status==`string`)t.then(en,en);else{if(e=Ul,e!==null&&100<e.shellSuspendCounter)throw Error(a(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,Ma(e),e}throw Aa=t,Ca}}function ka(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Aa=e,Ca):e}}var Aa=null;function ja(){if(Aa===null)throw Error(a(459));var e=Aa;return Aa=null,e}function Ma(e){if(e===Ca||e===Ta)throw Error(a(483))}var Na=null,Pa=0;function Fa(e){var t=Pa;return Pa+=1,Na===null&&(Na=[]),Oa(Na,e,t)}function Ia(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function La(e,t){throw t.$$typeof===m?Error(a(525)):(e=Object.prototype.toString.call(t),Error(a(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Ra(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 i(e,t){return e=di(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=hi(n,e.mode,r),t.return=e,t):(t=i(t,n),t.return=e,t)}function l(e,t,n,r){var a=n.type;return a===v?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===a||typeof a==`object`&&a&&a.$$typeof===O&&ka(a)===t.type)?(t=i(t,n.props),Ia(t,n),t.return=e,t):(t=pi(n.type,n.key,n.props,null,e.mode,r),Ia(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=_i(n,e.mode,r),t.return=e,t):(t=i(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,a){return t===null||t.tag!==7?(t=mi(n,e.mode,r,a),t.return=e,t):(t=i(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=hi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case h:return n=pi(t.type,t.key,t.props,null,e.mode,n),Ia(n,t),n.return=e,n;case g:return t=_i(t,e.mode,n),t.return=e,t;case O:return t=ka(t),f(e,t,n)}if(F(t)||M(t))return t=mi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Fa(t),n);if(t.$$typeof===C)return f(e,ia(e,t),n);La(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 h:return n.key===i?l(e,t,n,r):null;case g:return n.key===i?u(e,t,n,r):null;case O:return n=ka(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,Fa(n),r);if(n.$$typeof===C)return p(e,t,ia(e,n),r);La(e,n)}return null}function m(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 h:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case g:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:return r=ka(r),m(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 m(e,t,n,Fa(r),i);if(r.$$typeof===C)return m(e,t,n,ia(t,r),i);La(t,r)}return null}function _(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Ii&&ki(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Ii&&ki(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Ii&&ki(i,h),l}function y(i,s,c,l){if(c==null)throw Error(a(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),Ii&&ki(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Ii&&ki(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),Ii&&ki(i,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===v&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case h:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===v){if(r.tag===7){n(e,r.sibling),c=i(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&ka(l)===r.type){n(e,r.sibling),c=i(r,o.props),Ia(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===v?(c=mi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=pi(o.type,o.key,o.props,null,e.mode,c),Ia(c,o),c.return=e,e=c)}return s(e);case g: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=i(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=_i(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=ka(o),b(e,r,o,c)}if(F(o))return _(e,r,o,c);if(M(o)){if(l=M(o),typeof l!=`function`)throw Error(a(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Fa(o),c);if(o.$$typeof===C)return b(e,r,ia(e,o),c);La(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=i(r,o),c.return=e,e=c):(n(e,r),c=hi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Pa=0;var i=b(e,t,n,r);return Na=null,i}catch(t){if(t===Ca||t===Ta)throw t;var a=li(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var za=Ra(!0),Ba=Ra(!1),Va=!1;function Ha(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ua(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 Wa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ga(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Hl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=oi(e),ai(e,null,n),t}return ni(e,r,t,n),oi(e)}function Ka(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,et(e,n)}}function qa(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 Ja=!1;function Ya(){if(Ja){var e=ma;if(e!==null)throw e}}function Xa(e,t,n,r){Ja=!1;var i=e.updateQueue;Va=!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 f=s.lane&-536870913,m=f!==s.lane;if(m?(Gl&f)===f:(r&f)===f){f!==0&&f===pa&&(Ja=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=p({},d,f);break a;case 2:Va=!0}}f=s.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[f]:m.push(f))}else m={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=f;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),$l|=o,e.lanes=o,e.memoizedState=d}}function Za(e,t){if(typeof e!=`function`)throw Error(a(191,e));e.call(t)}function Qa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Za(n[e],t)}var $a=re(null),eo=re(0);function to(e,t){e=Zl,ae(eo,e),ae($a,t),Zl=e|t.baseLanes}function no(){ae(eo,Zl),ae($a,$a.current)}function ro(){Zl=eo.current,ie($a),ie(eo)}var io=re(null),ao=null;function oo(e){var t=e.alternate;ae(fo,fo.current&1),ae(io,e),ao===null&&(t===null||$a.current!==null||t.memoizedState!==null)&&(ao=e)}function so(e){ae(fo,fo.current),ae(io,e),ao===null&&(ao=e)}function co(e){e.tag===22?(ae(fo,fo.current),ae(io,e),ao===null&&(ao=e)):lo(e)}function lo(){ae(fo,fo.current),ae(io,io.current)}function uo(e){ie(io),ao===e&&(ao=null),ie(fo)}var fo=re(0);function po(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||df(n)||ff(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 mo=0,ho=null,go=null,_o=null,vo=!1,yo=!1,bo=!1,xo=0,So=0,Co=null,wo=0;function To(){throw Error(a(321))}function Eo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Cr(e[n],t[n]))return!1;return!0}function Do(e,t,n,r,i,a){return mo=a,ho=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=e===null||e.memoizedState===null?Vs:Hs,bo=!1,a=n(r,i),bo=!1,yo&&(a=ko(t,n,r,i)),Oo(e),a}function Oo(e){I.H=U;var t=go!==null&&go.next!==null;if(mo=0,_o=go=ho=null,vo=!1,So=0,Co=null,t)throw Error(a(300));e===null||ac||(e=e.dependencies,e!==null&&ta(e)&&(ac=!0))}function ko(e,t,n,r){ho=e;var i=0;do{if(yo&&(Co=null),So=0,yo=!1,25<=i)throw Error(a(301));if(i+=1,_o=go=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=Us,o=t(n,r)}while(yo);return o}function Ao(){var e=I.H,t=e.useState()[0];return t=typeof t.then==`function`?Lo(t):t,e=e.useState()[0],(go===null?null:go.memoizedState)!==e&&(ho.flags|=1024),t}function jo(){var e=xo!==0;return xo=0,e}function Mo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function No(e){if(vo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}vo=!1}mo=0,_o=go=ho=null,yo=!1,So=xo=0,Co=null}function Po(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _o===null?ho.memoizedState=_o=e:_o=_o.next=e,_o}function Fo(){if(go===null){var e=ho.alternate;e=e===null?null:e.memoizedState}else e=go.next;var t=_o===null?ho.memoizedState:_o.next;if(t!==null)_o=t,go=e;else{if(e===null)throw ho.alternate===null?Error(a(467)):Error(a(310));go=e,e={memoizedState:go.memoizedState,baseState:go.baseState,baseQueue:go.baseQueue,queue:go.queue,next:null},_o===null?ho.memoizedState=_o=e:_o=_o.next=e}return _o}function Io(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Lo(e){var t=So;return So+=1,Co===null&&(Co=[]),e=Oa(Co,e,t),t=ho,(_o===null?t.memoizedState:_o.next)===null&&(t=t.alternate,I.H=t===null||t.memoizedState===null?Vs:Hs),e}function Ro(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Lo(e);if(e.$$typeof===C)return ra(e)}throw Error(a(438,String(e)))}function zo(e){var t=null,n=ho.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=ho.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=Io(),ho.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 Bo(e,t){return typeof t==`function`?t(e):t}function Vo(e){return Ho(Fo(),go,e)}function Ho(e,t,n){var r=e.queue;if(r===null)throw Error(a(311));r.lastRenderedReducer=n;var i=e.baseQueue,o=r.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}t.baseQueue=i=o,r.pending=null}if(o=e.baseState,i===null)e.memoizedState=o;else{t=i.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(mo&f)===f:(Gl&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===pa&&(d=!0);else if((mo&p)===p){u=u.next,p===pa&&(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,ho.lanes|=p,$l|=p;f=u.action,bo&&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,ho.lanes|=f,$l|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Cr(o,e.memoizedState)&&(ac=!0,d&&(n=ma,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Uo(e){var t=Fo(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Cr(o,t.memoizedState)||(ac=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Wo(e,t,n){var r=ho,i=Fo(),o=Ii;if(o){if(n===void 0)throw Error(a(407));n=n()}else n=t();var s=!Cr((go||i).memoizedState,n);if(s&&(i.memoizedState=n,ac=!0),i=i.queue,ps(qo.bind(null,r,i,e),[e]),i.getSnapshot!==t||s||_o!==null&&_o.memoizedState.tag&1){if(r.flags|=2048,us(9,{destroy:void 0},Ko.bind(null,r,i,n,t),null),Ul===null)throw Error(a(349));o||mo&127||Go(r,t,n)}return n}function Go(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ho.updateQueue,t===null?(t=Io(),ho.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ko(e,t,n,r){t.value=n,t.getSnapshot=r,Jo(t)&&Yo(e)}function qo(e,t,n){return n(function(){Jo(t)&&Yo(e)})}function Jo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Cr(e,n)}catch{return!0}}function Yo(e){var t=ii(e,2);t!==null&&Su(t,e,2)}function Xo(e){var t=Po();if(typeof e==`function`){var n=e;if(e=n(),bo){Le(!0);try{n()}finally{Le(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:e},t}function Zo(e,t,n,r){return e.baseState=n,Ho(e,go,typeof r==`function`?r:Bo)}function Qo(e,t,n,r,i){if(Rs(e))throw Error(a(485));if(e=t.action,e!==null){var o={payload:i,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,$o(t,o)):(o.next=n.next,t.pending=n.next=o)}}function $o(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),es(e,t,s)}catch(n){ns(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),I.T=a}}else try{a=n(i,r),es(e,t,a)}catch(n){ns(e,t,n)}}function es(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){ts(e,t,n)},function(n){return ns(e,t,n)}):ts(e,t,n)}function ts(e,t,n){t.status=`fulfilled`,t.value=n,rs(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,$o(e,n)))}function ns(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,rs(t),t=t.next;while(t!==r)}e.action=null}function rs(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function is(e,t){return t}function as(e,t){if(Ii){var n=Ul.formState;if(n!==null){a:{var r=ho;if(Ii){if(Fi){b:{for(var i=Fi,a=Ri;i.nodeType!==8;){if(!a){i=null;break b}if(i=mf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Fi=mf(i.nextSibling),r=i.data===`F!`;break a}}Bi(r)}r=!1}r&&(t=n[0])}}return n=Po(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:is,lastRenderedState:t},n.queue=r,n=Fs.bind(null,ho,r),r.dispatch=n,r=Xo(!1),a=Ls.bind(null,ho,!1,r.queue),r=Po(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Qo.bind(null,ho,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function ss(e){return cs(Fo(),go,e)}function cs(e,t,n){if(t=Ho(e,t,is)[0],e=Vo(Bo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Lo(t)}catch(e){throw e===Ca?Ta:e}else r=t;t=Fo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(ho.flags|=2048,us(9,{destroy:void 0},B.bind(null,i,n),null)),[r,a,e]}function B(e,t){e.action=t}function ls(e){var t=Fo(),n=go;if(n!==null)return cs(t,n,e);Fo(),t=t.memoizedState,n=Fo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function us(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=ho.updateQueue,t===null&&(t=Io(),ho.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 V(){return Fo().memoizedState}function H(e,t,n,r){var i=Po();ho.flags|=e,i.memoizedState=us(1|t,{destroy:void 0},n,r===void 0?null:r)}function ds(e,t,n,r){var i=Fo();r=r===void 0?null:r;var a=i.memoizedState.inst;go!==null&&r!==null&&Eo(r,go.memoizedState.deps)?i.memoizedState=us(t,a,n,r):(ho.flags|=e,i.memoizedState=us(1|t,a,n,r))}function fs(e,t){H(8390656,8,e,t)}function ps(e,t){ds(2048,8,e,t)}function ms(e){ho.flags|=4;var t=ho.updateQueue;if(t===null)t=Io(),ho.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function hs(e){var t=Fo().memoizedState;return ms({ref:t,nextImpl:e}),function(){if(Hl&2)throw Error(a(440));return t.impl.apply(void 0,arguments)}}function gs(e,t){return ds(4,2,e,t)}function _s(e,t){return ds(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]),ds(4,4,vs.bind(null,t,e),n)}function bs(){}function xs(e,t){var n=Fo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Eo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ss(e,t){var n=Fo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Eo(t,r[1]))return r[0];if(r=e(),bo){Le(!0);try{e()}finally{Le(!1)}}return n.memoizedState=[r,t],r}function Cs(e,t,n){return n===void 0||mo&1073741824&&!(Gl&261930)?e.memoizedState=t:(e.memoizedState=n,e=xu(),ho.lanes|=e,$l|=e,n)}function ws(e,t,n,r){return Cr(n,t)?n:$a.current===null?!(mo&42)||mo&1073741824&&!(Gl&261930)?(ac=!0,e.memoizedState=n):(e=xu(),ho.lanes|=e,$l|=e,t):(e=Cs(e,n,r),Cr(e,t)||(ac=!0),e)}function Ts(e,t,n,r,i){var a=R.p;R.p=a!==0&&8>a?a:8;var o=I.T,s={};I.T=s,Ls(e,!1,t,n);try{var c=i(),l=I.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Is(e,t,_a(c,r),bu(e)):Is(e,t,r,bu(e))}catch(n){Is(e,t,{then:function(){},status:`rejected`,reason:n},bu())}finally{R.p=a,o!==null&&s.types!==null&&(o.types=s.types),I.T=o}}function Es(){}function Ds(e,t,n,r){if(e.tag!==5)throw Error(a(476));var i=Os(e).queue;Ts(e,i,t,ee,n===null?Es:function(){return ks(e),n(r)})}function Os(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:Bo,lastRenderedState:ee},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ks(e){var t=Os(e);t.next===null&&(t=e.alternate.memoizedState),Is(e,t.next.queue,{},bu())}function As(){return ra(ip)}function js(){return Fo().memoizedState}function Ms(){return Fo().memoizedState}function Ns(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=bu();e=Wa(n);var r=Ga(t,e,n);r!==null&&(Su(r,t,n),Ka(r,t,n)),t={cache:la()},e.payload=t;return}t=t.return}}function Ps(e,t,n){var r=bu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Rs(e)?zs(t,n):(n=ri(e,t,n,r),n!==null&&(Su(n,e,r),Bs(n,t,r)))}function Fs(e,t,n){Is(e,t,n,bu())}function Is(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Rs(e))zs(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,Cr(s,o))return ni(e,t,i,0),Ul===null&&ti(),!1}catch{}if(n=ri(e,t,i,r),n!==null)return Su(n,e,r),Bs(n,t,r),!0}return!1}function Ls(e,t,n,r){if(r={lane:2,revertLane:hd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Rs(e)){if(t)throw Error(a(479))}else t=ri(e,n,r,2),t!==null&&Su(t,e,2)}function Rs(e){var t=e.alternate;return e===ho||t!==null&&t===ho}function zs(e,t){yo=vo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Bs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,et(e,n)}}var U={readContext:ra,use:Ro,useCallback:To,useContext:To,useEffect:To,useImperativeHandle:To,useLayoutEffect:To,useInsertionEffect:To,useMemo:To,useReducer:To,useRef:To,useState:To,useDebugValue:To,useDeferredValue:To,useTransition:To,useSyncExternalStore:To,useId:To,useHostTransitionStatus:To,useFormState:To,useActionState:To,useOptimistic:To,useMemoCache:To,useCacheRefresh:To};U.useEffectEvent=To;var Vs={readContext:ra,use:Ro,useCallback:function(e,t){return Po().memoizedState=[e,t===void 0?null:t],e},useContext:ra,useEffect:fs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),H(4194308,4,vs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return H(4194308,4,e,t)},useInsertionEffect:function(e,t){H(4,2,e,t)},useMemo:function(e,t){var n=Po();t=t===void 0?null:t;var r=e();if(bo){Le(!0);try{e()}finally{Le(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Po();if(n!==void 0){var i=n(t);if(bo){Le(!0);try{n(t)}finally{Le(!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=Ps.bind(null,ho,e),[r.memoizedState,e]},useRef:function(e){var t=Po();return e={current:e},t.memoizedState=e},useState:function(e){e=Xo(e);var t=e.queue,n=Fs.bind(null,ho,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:bs,useDeferredValue:function(e,t){return Cs(Po(),e,t)},useTransition:function(){var e=Xo(!1);return e=Ts.bind(null,ho,e.queue,!0,!1),Po().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=ho,i=Po();if(Ii){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Ul===null)throw Error(a(349));Gl&127||Go(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,fs(qo.bind(null,r,o,e),[e]),r.flags|=2048,us(9,{destroy:void 0},Ko.bind(null,r,o,n,t),null),n},useId:function(){var e=Po(),t=Ul.identifierPrefix;if(Ii){var n=Oi,r=Di;n=(r&~(1<<32-Re(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=xo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=wo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:As,useFormState:as,useActionState:as,useOptimistic:function(e){var t=Po();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ls.bind(null,ho,!0,n),n.dispatch=t,[e,t]},useMemoCache:zo,useCacheRefresh:function(){return Po().memoizedState=Ns.bind(null,ho)},useEffectEvent:function(e){var t=Po(),n={impl:e};return t.memoizedState=n,function(){if(Hl&2)throw Error(a(440));return n.impl.apply(void 0,arguments)}}},Hs={readContext:ra,use:Ro,useCallback:xs,useContext:ra,useEffect:ps,useImperativeHandle:ys,useInsertionEffect:gs,useLayoutEffect:_s,useMemo:Ss,useReducer:Vo,useRef:V,useState:function(){return Vo(Bo)},useDebugValue:bs,useDeferredValue:function(e,t){return ws(Fo(),go.memoizedState,e,t)},useTransition:function(){var e=Vo(Bo)[0],t=Fo().memoizedState;return[typeof e==`boolean`?e:Lo(e),t]},useSyncExternalStore:Wo,useId:js,useHostTransitionStatus:As,useFormState:ss,useActionState:ss,useOptimistic:function(e,t){return Zo(Fo(),go,e,t)},useMemoCache:zo,useCacheRefresh:Ms};Hs.useEffectEvent=hs;var Us={readContext:ra,use:Ro,useCallback:xs,useContext:ra,useEffect:ps,useImperativeHandle:ys,useInsertionEffect:gs,useLayoutEffect:_s,useMemo:Ss,useReducer:Uo,useRef:V,useState:function(){return Uo(Bo)},useDebugValue:bs,useDeferredValue:function(e,t){var n=Fo();return go===null?Cs(n,e,t):ws(n,go.memoizedState,e,t)},useTransition:function(){var e=Uo(Bo)[0],t=Fo().memoizedState;return[typeof e==`boolean`?e:Lo(e),t]},useSyncExternalStore:Wo,useId:js,useHostTransitionStatus:As,useFormState:ls,useActionState:ls,useOptimistic:function(e,t){var n=Fo();return go===null?(n.baseState=e,[e,n.queue.dispatch]):Zo(n,go,e,t)},useMemoCache:zo,useCacheRefresh:Ms};Us.useEffectEvent=hs;function Ws(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:p({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Gs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=bu(),i=Wa(r);i.payload=t,n!=null&&(i.callback=n),t=Ga(e,i,r),t!==null&&(Su(t,e,r),Ka(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=bu(),i=Wa(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ga(e,i,r),t!==null&&(Su(t,e,r),Ka(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=bu(),r=Wa(n);r.tag=2,t!=null&&(r.callback=t),t=Ga(e,r,n),t!==null&&(Su(t,e,n),Ka(t,e,n))}};function Ks(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?!wr(n,r)||!wr(i,a):!0}function qs(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&&Gs.enqueueReplaceState(t,t.state,null)}function Js(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=p({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Ys(e){Zr(e)}function Xs(e){console.error(e)}function Zs(e){Zr(e)}function Qs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function $s(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 ec(e,t,n){return n=Wa(n),n.tag=3,n.payload={element:null},n.callback=function(){Qs(e,t)},n}function tc(e){return e=Wa(e),e.tag=3,e}function nc(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(){$s(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){$s(t,n,r),typeof i!=`function`&&(du===null?du=new Set([this]):du.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function rc(e,t,n,r,i){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&ea(t,n,i,!0),n=io.current,n!==null){switch(n.tag){case 31:case 13:return ao===null?Pu():n.alternate===null&&Ql===0&&(Ql=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Ea?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Yu(e,r,i)),!1;case 22:return n.flags|=65536,r===Ea?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)),Yu(e,r,i)),!1}throw Error(a(435,n.tag))}return Yu(e,r,i),Pu(),!1}if(Ii)return t=io.current,t===null?(r!==zi&&(t=Error(a(423),{cause:r}),Ki(yi(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=yi(r,n),i=ec(e.stateNode,r,i),qa(e,i),Ql!==4&&(Ql=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==zi&&(e=Error(a(422),{cause:r}),Ki(yi(e,n)))),!1;var o=Error(a(520),{cause:r});if(o=yi(o,n),iu===null?iu=[o]:iu.push(o),Ql!==4&&(Ql=2),t===null)return!0;r=yi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=ec(n.stateNode,r,e),qa(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`&&(du===null||!du.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=tc(i),nc(i,e,n,r),qa(n,i),!1}n=n.return}while(n!==null);return!1}var ic=Error(a(461)),ac=!1;function oc(e,t,n,r){t.child=e===null?Ba(t,null,n,r):za(t,e.child,n,r)}function sc(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 na(t),r=Do(e,t,n,o,a,i),s=jo(),e!==null&&!ac?(Mo(e,t,i),jc(e,t,i)):(Ii&&s&&ji(t),t.flags|=1,oc(e,t,r,i),t.child)}function cc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ui(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,lc(e,t,a,r,i)):(e=pi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Mc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?wr:n,n(o,r)&&e.ref===t.ref)return jc(e,t,i)}return t.flags|=1,e=di(a,r),e.ref=t.ref,e.return=t,t.child=e}function lc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(wr(a,r)&&e.ref===t.ref){if(ac=!1,t.pendingProps=r=a,Mc(e,i))e.flags&131072&&(ac=!0);else return t.lanes=e.lanes,jc(e,t,i)}}return _c(e,t,n,r,i)}function uc(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 fc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&xa(t,a===null?null:a.cachePool),a===null?no():to(t,a),co(t);else return r=t.lanes=536870912,fc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&xa(t,null),no(),lo(t)):(xa(t,a.cachePool),to(t,a),lo(t),t.memoizedState=null);return oc(e,t,i,n),t.child}function dc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function fc(e,t,n,r,i){var a=ba();return a=a===null?null:{parent:ca._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&xa(t,null),no(),co(t),e!==null&&ea(e,t,r,!0),t.childLanes=i,null}function pc(e,t){return t=Ec({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function mc(e,t,n){return za(t,e.child,null,n),e=pc(t,t.pendingProps),e.flags|=2,uo(t),t.memoizedState=null,e}function hc(e,t,n){var r=t.pendingProps,i=!!(t.flags&128);if(t.flags&=-129,e===null){if(Ii){if(r.mode===`hidden`)return e=pc(t,r),t.lanes=536870912,dc(null,e);if(so(t),(e=Fi)?(e=uf(e,Ri),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ei===null?null:{id:Di,overflow:Oi},retryLane:536870912,hydrationErrors:null},n=gi(e),n.return=t,t.child=n,Pi=t,Fi=null)):e=null,e===null)throw Bi(t);return t.lanes=536870912,null}return pc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(so(t),i){if(t.flags&256)t.flags&=-257,t=mc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(a(558))}else if(ac||ea(e,t,n,!1),i=(n&e.childLanes)!==0,ac||i){if(r=Ul,r!==null&&(s=tt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ii(e,s),Su(r,e,s),ic;Pu(),t=mc(e,t,n)}else e=o.treeContext,Fi=mf(s.nextSibling),Pi=t,Ii=!0,Li=null,Ri=!1,e!==null&&Ni(t,e),t=pc(t,r),t.flags|=4096;return t}return e=di(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function gc(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(a(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function _c(e,t,n,r,i){return na(t),n=Do(e,t,n,r,void 0,i),r=jo(),e!==null&&!ac?(Mo(e,t,i),jc(e,t,i)):(Ii&&r&&ji(t),t.flags|=1,oc(e,t,n,i),t.child)}function vc(e,t,n,r,i,a){return na(t),t.updateQueue=null,n=ko(t,r,n,i),Oo(e),r=jo(),e!==null&&!ac?(Mo(e,t,a),jc(e,t,a)):(Ii&&r&&ji(t),t.flags|=1,oc(e,t,n,a),t.child)}function yc(e,t,n,r,i){if(na(t),t.stateNode===null){var a=si,o=n.contextType;typeof o==`object`&&o&&(a=ra(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Gs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ha(t),o=n.contextType,a.context=typeof o==`object`&&o?ra(o):si,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Ws(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&&Gs.enqueueReplaceState(a,a.state,null),Xa(t,r,a,i),Ya(),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=Js(n,s);a.props=c;var l=a.context,u=n.contextType;o=si,typeof u==`object`&&u&&(o=ra(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)&&qs(t,a,r,o),Va=!1;var f=t.memoizedState;a.state=f,Xa(t,r,a,i),Ya(),l=t.memoizedState,s||f!==l||Va?(typeof d==`function`&&(Ws(t,n,d,r),l=t.memoizedState),(c=Va||Ks(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,Ua(e,t),o=t.memoizedProps,u=Js(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=si,typeof l==`object`&&l&&(c=ra(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)&&qs(t,a,r,c),Va=!1,f=t.memoizedState,a.state=f,Xa(t,r,a,i),Ya();var p=t.memoizedState;o!==d||f!==p||Va||e!==null&&e.dependencies!==null&&ta(e.dependencies)?(typeof s==`function`&&(Ws(t,n,s,r),p=t.memoizedState),(u=Va||Ks(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&ta(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,gc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=za(t,e.child,null,i),t.child=za(t,null,n,i)):oc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=jc(e,t,i),e}function bc(e,t,n,r){return Wi(),t.flags|=256,oc(e,t,n,r),t.child}var xc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Sc(e){return{baseLanes:e,cachePool:Sa()}}function Cc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=nu),e}function wc(e,t,n){var r=t.pendingProps,i=!1,o=!!(t.flags&128),s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:!!(fo.current&2)),s&&(i=!0,t.flags&=-129),s=!!(t.flags&32),t.flags&=-33,e===null){if(Ii){if(i?oo(t):lo(t),(e=Fi)?(e=uf(e,Ri),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ei===null?null:{id:Di,overflow:Oi},retryLane:536870912,hydrationErrors:null},n=gi(e),n.return=t,t.child=n,Pi=t,Fi=null)):e=null,e===null)throw Bi(t);return ff(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,i?(lo(t),i=t.mode,c=Ec({mode:`hidden`,children:c},i),r=mi(r,i,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=Sc(n),r.childLanes=Cc(e,s,n),t.memoizedState=xc,dc(null,r)):(oo(t),Tc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(oo(t),t.flags&=-257,t=Dc(e,t,n)):t.memoizedState===null?(lo(t),c=r.fallback,i=t.mode,r=Ec({mode:`visible`,children:r.children},i),c=mi(c,i,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,za(t,e.child,null,n),r=t.child,r.memoizedState=Sc(n),r.childLanes=Cc(e,s,n),t.memoizedState=xc,t=dc(null,r)):(lo(t),t.child=e.child,t.flags|=128,t=null);else if(oo(t),ff(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(a(419)),r.stack=``,r.digest=s,Ki({value:r,source:null,stack:null}),t=Dc(e,t,n)}else if(ac||ea(e,t,n,!1),s=(n&e.childLanes)!==0,ac||s){if(s=Ul,s!==null&&(r=tt(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ii(e,r),Su(s,e,r),ic;df(c)||Pu(),t=Dc(e,t,n)}else df(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Fi=mf(c.nextSibling),Pi=t,Ii=!0,Li=null,Ri=!1,e!==null&&Ni(t,e),t=Tc(t,r.children),t.flags|=4096);return t}return i?(lo(t),c=r.fallback,i=t.mode,l=e.child,u=l.sibling,r=di(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=mi(c,i,n,null),c.flags|=2):c=di(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,dc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=Sc(n):(i=c.cachePool,i===null?i=Sa():(l=ca._currentValue,i=i.parent===l?i:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:i}),r.memoizedState=c,r.childLanes=Cc(e,s,n),t.memoizedState=xc,dc(e.child,r)):(oo(t),n=e.child,e=n.sibling,n=di(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 Tc(e,t){return t=Ec({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Ec(e,t){return e=li(22,e,null,t),e.lanes=0,e}function Dc(e,t,n){return za(t,e.child,null,n),e=Tc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Oc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Qi(e.return,t,n)}function kc(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 Ac(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=fo.current,s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,ae(fo,o),oc(e,t,r,n),r=Ii?Ci:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Oc(e,n,t);else if(e.tag===19)Oc(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&&po(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),kc(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&&po(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}kc(t,!0,n,null,a,r);break;case`together`:kc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function jc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),$l|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(ea(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(a(153));if(t.child!==null){for(e=t.child,n=di(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=di(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Mc(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&ta(e)))}function Nc(e,t,n){switch(t.tag){case 3:ue(t,t.stateNode.containerInfo),Xi(t,ca,e.memoizedState.cache),Wi();break;case 27:case 5:fe(t);break;case 4:ue(t,t.stateNode.containerInfo);break;case 10:Xi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,so(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(oo(t),e=jc(e,t,n),e===null?null:e.sibling):wc(e,t,n):(oo(t),t.flags|=128,null);oo(t);break;case 19:var i=!!(e.flags&128);if(r=(n&t.childLanes)!==0,r||=(ea(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Ac(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ae(fo,fo.current),r)break;return null;case 22:return t.lanes=0,uc(e,t,n,t.pendingProps);case 24:Xi(t,ca,e.memoizedState.cache)}return jc(e,t,n)}function Pc(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)ac=!0;else{if(!Mc(e,n)&&!(t.flags&128))return ac=!1,Nc(e,t,n);ac=!!(e.flags&131072)}}else ac=!1,Ii&&t.flags&1048576&&Ai(t,Ci,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=ka(t.elementType),t.type=e,typeof e==`function`)ui(e)?(r=Js(e,r),t.tag=1,t=yc(null,t,e,r,n)):(t.tag=0,t=_c(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===w){t.tag=11,t=sc(null,t,e,r,n);break a}if(i===D){t.tag=14,t=cc(null,t,e,r,n);break a}}throw t=P(e)||e,Error(a(306,t,``))}}return t;case 0:return _c(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=Js(r,t.pendingProps),yc(e,t,r,i,n);case 3:a:{if(ue(t,t.stateNode.containerInfo),e===null)throw Error(a(387));r=t.pendingProps;var o=t.memoizedState;i=o.element,Ua(e,t),Xa(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Xi(t,ca,r),r!==o.cache&&$i(t,[ca],n,!0),Ya(),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=bc(e,t,r,n);break a}if(r!==i){i=yi(Error(a(424)),t),Ki(i),t=bc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Fi=mf(e.firstChild),Pi=t,Ii=!0,Li=null,Ri=!0,n=Ba(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Wi(),r===i){t=jc(e,t,n);break a}oc(e,t,r,n)}t=t.child}return t;case 26:return gc(e,t),e===null?(n=Ff(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ii||(n=t.type,e=t.pendingProps,r=Kd(ce.current).createElement(n),r[st]=t,r[ct]=e,Bd(r,n,e),bt(r),t.stateNode=r):t.memoizedState=Ff(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return fe(t),e===null&&Ii&&(r=t.stateNode=vf(t.type,t.pendingProps,ce.current),Pi=t,Ri=!0,i=Fi,rf(t.type)?(hf=i,Fi=mf(r.firstChild)):Fi=i),oc(e,t,t.pendingProps.children,n),gc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ii&&((i=r=Fi)&&(r=cf(r,t.type,t.pendingProps,Ri),r===null?i=!1:(t.stateNode=r,Pi=t,Fi=mf(r.firstChild),Ri=!1,i=!0)),i||Bi(t)),fe(t),i=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Yd(i,o)?r=null:s!==null&&Yd(i,s)&&(t.flags|=32),t.memoizedState!==null&&(i=Do(e,t,Ao,null,null,n),ip._currentValue=i),gc(e,t),oc(e,t,r,n),t.child;case 6:return e===null&&Ii&&((e=n=Fi)&&(n=lf(n,t.pendingProps,Ri),n===null?e=!1:(t.stateNode=n,Pi=t,Fi=null,e=!0)),e||Bi(t)),null;case 13:return wc(e,t,n);case 4:return ue(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=za(t,null,r,n):oc(e,t,r,n),t.child;case 11:return sc(e,t,t.type,t.pendingProps,n);case 7:return oc(e,t,t.pendingProps,n),t.child;case 8:return oc(e,t,t.pendingProps.children,n),t.child;case 12:return oc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Xi(t,t.type,r.value),oc(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,na(t),i=ra(i),r=r(i),t.flags|=1,oc(e,t,r,n),t.child;case 14:return cc(e,t,t.type,t.pendingProps,n);case 15:return lc(e,t,t.type,t.pendingProps,n);case 19:return Ac(e,t,n);case 31:return hc(e,t,n);case 22:return uc(e,t,n,t.pendingProps);case 24:return na(t),r=ra(ca),e===null?(i=ba(),i===null&&(i=Ul,o=la(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:r,cache:i},Ha(t),Xi(t,ca,i)):((e.lanes&n)!==0&&(Ua(e,t),Xa(t,null,null,n),Ya()),i=e.memoizedState,o=t.memoizedState,i.parent===r?(r=o.cache,Xi(t,ca,r),r!==i.cache&&$i(t,[ca],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Xi(t,ca,r))),oc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(a(156,t.tag))}function Fc(e){e.flags|=4}function Ic(e,t,n,r,i){if((t=!!(e.mode&32))&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(ju())e.flags|=8192;else throw Aa=Ea,wa}}else e.flags&=-16777217}function W(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Xf(t)){if(ju())e.flags|=8192;else throw Aa=Ea,wa}}function Lc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Ye(),e.lanes|=t,ru|=t)}function Rc(e,t){if(!Ii)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 zc(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 Bc(e,t,n){var r=t.pendingProps;switch(Mi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zc(t),null;case 1:return zc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Zi(ca),de(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ui(t)?Fc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Gi())),zc(t),null;case 26:var i=t.type,o=t.memoizedState;return e===null?(Fc(t),o===null?(zc(t),Ic(t,i,null,r,n)):(zc(t),W(t,o))):o?o===e.memoizedState?(zc(t),t.flags&=-16777217):(Fc(t),zc(t),W(t,o)):(e=e.memoizedProps,e!==r&&Fc(t),zc(t),Ic(t,i,e,r,n)),null;case 27:if(pe(t),n=ce.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Fc(t);else{if(!r){if(t.stateNode===null)throw Error(a(166));return zc(t),null}e=oe.current,Ui(t)?Vi(t,e):(e=vf(i,r,n),t.stateNode=e,Fc(t))}return zc(t),null;case 5:if(pe(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Fc(t);else{if(!r){if(t.stateNode===null)throw Error(a(166));return zc(t),null}if(o=oe.current,Ui(t))Vi(t,o);else{var s=Kd(ce.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;default:switch(i){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);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(i,{is:r.is}):s.createElement(i)}}o[st]=t,o[ct]=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(Bd(o,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Fc(t)}}return zc(t),Ic(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Fc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=ce.current,Ui(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Pi,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[st]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Ld(e.nodeValue,n)),e||Bi(t,!0)}else e=Kd(e).createTextNode(r),e[st]=t,t.stateNode=e}return zc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ui(t),n!==null){if(e===null){if(!r)throw Error(a(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(557));e[st]=t}else Wi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;zc(t),e=!1}else n=Gi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(uo(t),t):(uo(t),null);if(t.flags&128)throw Error(a(558))}return zc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Ui(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(a(317));i[st]=t}else Wi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;zc(t),i=!1}else i=Gi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(uo(t),t):(uo(t),null)}return uo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Lc(t,t.updateQueue),zc(t),null);case 4:return de(),e===null&&Dd(t.stateNode.containerInfo),zc(t),null;case 10:return Zi(t.type),zc(t),null;case 19:if(ie(fo),r=t.memoizedState,r===null)return zc(t),null;if(i=!!(t.flags&128),o=r.rendering,o===null){if(i)Rc(r,!1);else{if(Ql!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=po(e),o!==null){for(t.flags|=128,Rc(r,!1),e=o.updateQueue,t.updateQueue=e,Lc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)fi(n,e),n=n.sibling;return ae(fo,fo.current&1|2),Ii&&ki(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ee()>lu&&(t.flags|=128,i=!0,Rc(r,!1),t.lanes=4194304)}}else{if(!i){if(e=po(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Lc(t,e),Rc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Ii)return zc(t),null}else 2*Ee()-r.renderingStartTime>lu&&n!==536870912&&(t.flags|=128,i=!0,Rc(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?(zc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ee(),e.sibling=null,n=fo.current,ae(fo,i?n&1|2:n&1),Ii&&ki(t,r.treeForkCount),e);case 22:case 23:return uo(t),ro(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(zc(t),t.subtreeFlags&6&&(t.flags|=8192)):zc(t),n=t.updateQueue,n!==null&&Lc(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(ya),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Zi(ca),zc(t),null;case 25:return null;case 30:return null}throw Error(a(156,t.tag))}function Vc(e,t){switch(Mi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zi(ca),de(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return pe(t),null;case 31:if(t.memoizedState!==null){if(uo(t),t.alternate===null)throw Error(a(340));Wi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(uo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Wi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(fo),null;case 4:return de(),null;case 10:return Zi(t.type),null;case 22:case 23:return uo(t),ro(),e!==null&&ie(ya),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Zi(ca),null;case 25:return null;default:return null}}function Hc(e,t){switch(Mi(t),t.tag){case 3:Zi(ca),de();break;case 26:case 27:case 5:pe(t);break;case 4:de();break;case 31:t.memoizedState!==null&&uo(t);break;case 13:uo(t);break;case 19:ie(fo);break;case 10:Zi(t.type);break;case 22:case 23:uo(t),ro(),e!==null&&ie(ya);break;case 24:Zi(ca)}}function Uc(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){Ju(t,t.return,e)}}function Wc(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){Ju(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Ju(t,t.return,e)}}function Gc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Qa(t,n)}catch(t){Ju(e,e.return,t)}}}function Kc(e,t,n){n.props=Js(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Ju(e,t,n)}}function qc(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){Ju(e,t,n)}}function Jc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Ju(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){Ju(e,t,n)}else n.current=null}}function Yc(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){Ju(e,e.return,t)}}function Xc(e,t,n){try{var r=e.stateNode;Vd(r,e.type,n,t),r[ct]=t}catch(t){Ju(e,e.return,t)}}function Zc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&rf(e.type)||e.tag===4}function Qc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Zc(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&&rf(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 $c(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=en));else if(r!==4&&(r===27&&rf(e.type)&&(n=e.stateNode,t=null),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,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&&rf(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(el(e,t,n),e=e.sibling;e!==null;)el(e,t,n),e=e.sibling}function tl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Bd(t,r,n),t[st]=e,t[ct]=n}catch(t){Ju(e,e.return,t)}}var nl=!1,rl=!1,il=!1,al=typeof WeakSet==`function`?WeakSet:Set,ol=null;function sl(e,t){if(e=e.containerInfo,Wd=pp,e=Or(e),kr(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 i=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||i!==0&&f.nodeType!==3||(c=s+i),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===i&&(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(Gd={focusedElem:e,selectionRange:n},pp=!1,ol=t;ol!==null;)if(t=ol,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,ol=e;else for(;ol!==null;){switch(t=ol,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++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,i=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Js(n.type,i);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Ju(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)sf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:sf(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(a(163))}if(e=t.sibling,e!==null){e.return=t.return,ol=e;break}ol=t.return}}function cl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Cl(e,n),r&4&&Uc(5,n);break;case 1:if(Cl(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Ju(n,n.return,e)}else{var i=Js(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Ju(n,n.return,e)}}}r&64&&Gc(n),r&512&&qc(n,n.return);break;case 3:if(Cl(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{Qa(e,t)}catch(e){Ju(n,n.return,e)}}break;case 27:t===null&&r&4&&tl(n);case 26:case 5:Cl(e,n),t===null&&r&4&&Yc(n),r&512&&qc(n,n.return);break;case 12:Cl(e,n);break;case 31:Cl(e,n),r&4&&ml(e,n);break;case 13:Cl(e,n),r&4&&hl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Qu.bind(null,n),pf(e,n))));break;case 22:if(r=n.memoizedState!==null||nl,!r){t=t!==null&&t.memoizedState!==null||rl,i=nl;var a=rl;nl=r,(rl=t)&&!a?Tl(e,n,!!(n.subtreeFlags&8772)):Cl(e,n),nl=i,rl=a}break;case 30:break;default:Cl(e,n)}}function ll(e){var t=e.alternate;t!==null&&(e.alternate=null,ll(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ht(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 ul=null,dl=!1;function fl(e,t,n){for(n=n.child;n!==null;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(Ie&&typeof Ie.onCommitFiberUnmount==`function`)try{Ie.onCommitFiberUnmount(Fe,n)}catch{}switch(n.tag){case 26:rl||Jc(n,t),fl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:rl||Jc(n,t);var r=ul,i=dl;rf(n.type)&&(ul=n.stateNode,dl=!1),fl(e,t,n),yf(n.stateNode),ul=r,dl=i;break;case 5:rl||Jc(n,t);case 6:if(r=ul,i=dl,ul=null,fl(e,t,n),ul=r,dl=i,ul!==null){if(dl)try{(ul.nodeType===9?ul.body:ul.nodeName===`HTML`?ul.ownerDocument.body:ul).removeChild(n.stateNode)}catch(e){Ju(n,t,e)}else try{ul.removeChild(n.stateNode)}catch(e){Ju(n,t,e)}}break;case 18:ul!==null&&(dl?(e=ul,af(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),zp(e)):af(ul,n.stateNode));break;case 4:r=ul,i=dl,ul=n.stateNode.containerInfo,dl=!0,fl(e,t,n),ul=r,dl=i;break;case 0:case 11:case 14:case 15:Wc(2,n,t),rl||Wc(4,n,t),fl(e,t,n);break;case 1:rl||(Jc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Kc(n,t,r)),fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:rl=(r=rl)||n.memoizedState!==null,fl(e,t,n),rl=r;break;default:fl(e,t,n)}}function ml(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{zp(e)}catch(e){Ju(t,t.return,e)}}}function hl(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){Ju(t,t.return,e)}}function gl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new al),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new al),t;default:throw Error(a(435,e.tag))}}function _l(e,t){var n=gl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=$u.bind(null,e,t);t.then(r,r)}})}function vl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(rf(c.type)){ul=c.stateNode,dl=!1;break a}break;case 5:ul=c.stateNode,dl=!1;break a;case 3:case 4:ul=c.stateNode.containerInfo,dl=!0;break a}c=c.return}if(ul===null)throw Error(a(160));pl(o,s,i),ul=null,dl=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)bl(t,e),t=t.sibling}var yl=null;function bl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:vl(t,e),xl(e),r&4&&(Wc(3,e,e.return),Uc(3,e),Wc(5,e,e.return));break;case 1:vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),r&64&&nl&&(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 i=yl;if(vl(t,e),xl(e),r&512&&(rl||n===null||Jc(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,i=i.ownerDocument||i;b:switch(r){case`title`:o=i.getElementsByTagName(`title`)[0],(!o||o[mt]||o[st]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=i.createElement(r),i.head.insertBefore(o,i.querySelector(`head > title`))),Bd(o,r,n),o[st]=e,bt(o),r=o;break a;case`link`:var s=qf(`link`,`href`,i).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=i.createElement(r),Bd(o,r,n),i.head.appendChild(o);break;case`meta`:if(s=qf(`meta`,`content`,i).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=i.createElement(r),Bd(o,r,n),i.head.appendChild(o);break;default:throw Error(a(468,r))}o[st]=e,bt(o),r=o}e.stateNode=r}else Jf(i,e.type,e.stateNode)}else e.stateNode=Hf(i,r,e.memoizedProps)}else o===r?r===null&&e.stateNode!==null&&Xc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Jf(i,e.type,e.stateNode):Hf(i,r,e.memoizedProps))}break;case 27:vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),n!==null&&r&4&&Xc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),e.flags&32){i=e.stateNode;try{Kt(i,``)}catch(t){Ju(e,e.return,t)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,Xc(e,i,n===null?i:n.memoizedProps)),r&1024&&(il=!0);break;case 6:if(vl(t,e),xl(e),r&4){if(e.stateNode===null)throw Error(a(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Ju(e,e.return,t)}}break;case 3:if(Kf=null,i=yl,yl=Sf(t.containerInfo),vl(t,e),yl=i,xl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{zp(t.containerInfo)}catch(t){Ju(e,e.return,t)}il&&(il=!1,Sl(e));break;case 4:r=yl,yl=Sf(e.stateNode.containerInfo),vl(t,e),xl(e),yl=r;break;case 12:vl(t,e),xl(e);break;case 31:vl(t,e),xl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 13:vl(t,e),xl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(su=Ee()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 22:i=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=nl,d=rl;if(nl=u||i,rl=d||l,vl(t,e),rl=d,nl=u,xl(e),r&8192)a:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||l||nl||rl||wl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,i)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){Ju(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=i?``:l.memoizedProps}catch(e){Ju(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;i?of(m,!0):of(l.stateNode,!1)}catch(e){Ju(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,_l(e,n))));break;case 19:vl(t,e),xl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 30:break;case 21:break;default:vl(t,e),xl(e)}}function xl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Zc(r)){n=r;break}r=r.return}if(n==null)throw Error(a(160));switch(n.tag){case 27:var i=n.stateNode;el(e,Qc(e),i);break;case 5:var o=n.stateNode;n.flags&32&&(Kt(o,``),n.flags&=-33),el(e,Qc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;$c(e,Qc(e),s);break;default:throw Error(a(161))}}catch(t){Ju(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Sl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Sl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Cl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)cl(e,t.alternate,t),t=t.sibling}function wl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Wc(4,t,t.return),wl(t);break;case 1:Jc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Kc(t,t.return,n),wl(t);break;case 27:yf(t.stateNode);case 26:case 5:Jc(t,t.return),wl(t);break;case 22:t.memoizedState===null&&wl(t);break;case 30:wl(t);break;default:wl(t)}e=e.sibling}}function Tl(e,t,n){for(n&&=!!(t.subtreeFlags&8772),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:Tl(i,a,n),Uc(4,a);break;case 1:if(Tl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Ju(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++)Za(c[i],s)}catch(e){Ju(r,r.return,e)}}n&&o&64&&Gc(a),qc(a,a.return);break;case 27:tl(a);case 26:case 5:Tl(i,a,n),n&&r===null&&o&4&&Yc(a),qc(a,a.return);break;case 12:Tl(i,a,n);break;case 31:Tl(i,a,n),n&&o&4&&ml(i,a);break;case 13:Tl(i,a,n),n&&o&4&&hl(i,a);break;case 22:a.memoizedState===null&&Tl(i,a,n),qc(a,a.return);break;case 30:break;default:Tl(i,a,n)}t=t.sibling}}function El(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&&ua(n))}function Dl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ua(e))}function Ol(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)kl(e,t,n,r),t=t.sibling}function kl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Ol(e,t,n,r),i&2048&&Uc(9,t);break;case 1:Ol(e,t,n,r);break;case 3:Ol(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&&ua(e)));break;case 12:if(i&2048){Ol(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){Ju(t,t.return,e)}}else Ol(e,t,n,r);break;case 31:Ol(e,t,n,r);break;case 13:Ol(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Ol(e,t,n,r):(a._visibility|=2,Al(e,t,n,r,!!(t.subtreeFlags&10256)||!1)):a._visibility&2?Ol(e,t,n,r):jl(e,t),i&2048&&El(o,t);break;case 24:Ol(e,t,n,r),i&2048&&Dl(t.alternate,t);break;default:Ol(e,t,n,r)}}function Al(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!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:Al(a,o,s,c,i),Uc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Al(a,o,s,c,i)):u._visibility&2?Al(a,o,s,c,i):jl(a,o),i&&l&2048&&El(o.alternate,o);break;case 24:Al(a,o,s,c,i),i&&l&2048&&Dl(o.alternate,o);break;default:Al(a,o,s,c,i)}t=t.sibling}}function jl(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:jl(n,r),i&2048&&El(r.alternate,r);break;case 24:jl(n,r),i&2048&&Dl(r.alternate,r);break;default:jl(n,r)}t=t.sibling}}var Ml=8192;function Nl(e,t,n){if(e.subtreeFlags&Ml)for(e=e.child;e!==null;)Pl(e,t,n),e=e.sibling}function Pl(e,t,n){switch(e.tag){case 26:Nl(e,t,n),e.flags&Ml&&e.memoizedState!==null&&Zf(n,yl,e.memoizedState,e.memoizedProps);break;case 5:Nl(e,t,n);break;case 3:case 4:var r=yl;yl=Sf(e.stateNode.containerInfo),Nl(e,t,n),yl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ml,Ml=16777216,Nl(e,t,n),Ml=r):Nl(e,t,n));break;default:Nl(e,t,n)}}function Fl(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 Il(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ol=r,zl(r,e)}Fl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ll(e),e=e.sibling}function Ll(e){switch(e.tag){case 0:case 11:case 15:Il(e),e.flags&2048&&Wc(9,e,e.return);break;case 3:Il(e);break;case 12:Il(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Rl(e)):Il(e);break;default:Il(e)}}function Rl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ol=r,zl(r,e)}Fl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Wc(8,t,t.return),Rl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Rl(t));break;default:Rl(t)}e=e.sibling}}function zl(e,t){for(;ol!==null;){var n=ol;switch(n.tag){case 0:case 11:case 15:Wc(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:ua(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,ol=r;else a:for(n=e;ol!==null;){r=ol;var i=r.sibling,a=r.return;if(ll(r),r===n){ol=null;break a}if(i!==null){i.return=a,ol=i;break a}ol=a}}}var Bl={getCacheForType:function(e){var t=ra(ca),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ra(ca).controller.signal}},Vl=typeof WeakMap==`function`?WeakMap:Map,Hl=0,Ul=null,Wl=null,Gl=0,Kl=0,ql=null,Jl=!1,Yl=!1,Xl=!1,Zl=0,Ql=0,$l=0,eu=0,tu=0,nu=0,ru=0,iu=null,au=null,ou=!1,su=0,cu=0,lu=1/0,uu=null,du=null,G=0,fu=null,pu=null,mu=0,hu=0,gu=null,_u=null,vu=0,yu=null;function bu(){return Hl&2&&Gl!==0?Gl&-Gl:I.T===null?it():hd()}function xu(){if(nu===0){if(!(Gl&536870912)||Ii){var e=Ue;Ue<<=1,!(Ue&3932160)&&(Ue=262144),nu=e}else nu=536870912}return e=io.current,e!==null&&(e.flags|=32),nu}function Su(e,t,n){(e===Ul&&(Kl===2||Kl===9)||e.cancelPendingCommit!==null)&&(ku(e,0),Eu(e,Gl,nu,!1)),Ze(e,n),(!(Hl&2)||e!==Ul)&&(e===Ul&&(!(Hl&2)&&(eu|=n),Ql===4&&Eu(e,Gl,nu,!1)),sd(e))}function Cu(e,t,n){if(Hl&6)throw Error(a(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||qe(e,t),i=r?Lu(e,t):Fu(e,t,!0),o=r;do{if(i===0){Yl&&!r&&Eu(e,t,0,!1);break}if(n=e.current.alternate,o&&!Tu(n)){i=Fu(e,t,!1),o=!1;continue}if(i===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;i=iu;var l=c.current.memoizedState.isDehydrated;if(l&&(ku(c,s).flags|=256),s=Fu(c,s,!1),s!==2){if(Xl&&!l){c.errorRecoveryDisabledLanes|=o,eu|=o,i=4;break a}o=au,au=i,o!==null&&(au===null?au=o:au.push.apply(au,o))}i=s}if(o=!1,i!==2)continue}}if(i===1){ku(e,0),Eu(e,t,0,!0);break}a:{switch(r=e,o=i,o){case 0:case 1:throw Error(a(345));case 4:if((t&4194048)!==t)break;case 6:Eu(r,t,nu,!Jl);break a;case 2:au=null;break;case 3:case 5:break;default:throw Error(a(329))}if((t&62914560)===t&&(i=su+300-Ee(),10<i)){if(Eu(r,t,nu,!Jl),Ke(r,0,!0)!==0)break a;mu=t,r.timeoutHandle=Qd(wu.bind(null,r,n,au,uu,ou,t,nu,eu,ru,Jl,o,`Throttled`,-0,0),i);break a}wu(r,n,au,uu,ou,t,nu,eu,ru,Jl,o,null,-0,0)}break}while(1);sd(e)}function wu(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:en},Pl(t,a,d);var m=(a&62914560)===a?su-Ee():(a&4194048)===a?cu-Ee():0;if(m=$f(d,m),m!==null){mu=a,e.cancelPendingCommit=m(K.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),Eu(e,a,o,!l);return}}K(e,t,a,n,r,i,o,s,c)}function Tu(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(!Cr(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 Eu(e,t,n,r){t&=~tu,t&=~eu,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Re(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&$e(e,n,t)}function Du(){return Hl&6?!0:(cd(0,!1),!1)}function Ou(){if(Wl!==null){if(Kl===0)var e=Wl.return;else e=Wl,Yi=Ji=null,No(e),Na=null,Pa=0,e=Wl;for(;e!==null;)Hc(e.alternate,e),e=e.return;Wl=null}}function ku(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,$d(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),mu=0,Ou(),Ul=e,Wl=n=di(e.current,null),Gl=t,Kl=0,ql=null,Jl=!1,Yl=qe(e,t),Xl=!1,ru=nu=tu=eu=$l=Ql=0,au=iu=null,ou=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Re(r),a=1<<i;t|=e[i],r&=~a}return Zl=t,ti(),n}function Au(e,t){ho=null,I.H=U,t===Ca||t===Ta?(t=ja(),Kl=3):t===wa?(t=ja(),Kl=4):Kl=t===ic?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,ql=t,Wl===null&&(Ql=1,Qs(e,yi(t,e.current)))}function ju(){var e=io.current;return e===null?!0:(Gl&4194048)===Gl?ao===null:(Gl&62914560)===Gl||Gl&536870912?e===ao:!1}function Mu(){var e=I.H;return I.H=U,e===null?U:e}function Nu(){var e=I.A;return I.A=Bl,e}function Pu(){Ql=4,Jl||(Gl&4194048)!==Gl&&io.current!==null||(Yl=!0),!($l&134217727)&&!(eu&134217727)||Ul===null||Eu(Ul,Gl,nu,!1)}function Fu(e,t,n){var r=Hl;Hl|=2;var i=Mu(),a=Nu();(Ul!==e||Gl!==t)&&(uu=null,ku(e,t)),t=!1;var o=Ql;a:do try{if(Kl!==0&&Wl!==null){var s=Wl,c=ql;switch(Kl){case 8:Ou(),o=6;break a;case 3:case 2:case 9:case 6:io.current===null&&(t=!0);var l=Kl;if(Kl=0,ql=null,Vu(e,s,c,l),n&&Yl){o=0;break a}break;default:l=Kl,Kl=0,ql=null,Vu(e,s,c,l)}}Iu(),o=Ql;break}catch(t){Au(e,t)}while(1);return t&&e.shellSuspendCounter++,Yi=Ji=null,Hl=r,I.H=i,I.A=a,Wl===null&&(Ul=null,Gl=0,ti()),o}function Iu(){for(;Wl!==null;)zu(Wl)}function Lu(e,t){var n=Hl;Hl|=2;var r=Mu(),i=Nu();Ul!==e||Gl!==t?(uu=null,lu=Ee()+500,ku(e,t)):Yl=qe(e,t);a:do try{if(Kl!==0&&Wl!==null){t=Wl;var o=ql;b:switch(Kl){case 1:Kl=0,ql=null,Vu(e,t,o,1);break;case 2:case 9:if(Da(o)){Kl=0,ql=null,Bu(t);break}t=function(){Kl!==2&&Kl!==9||Ul!==e||(Kl=7),sd(e)},o.then(t,t);break a;case 3:Kl=7;break a;case 4:Kl=5;break a;case 7:Da(o)?(Kl=0,ql=null,Bu(t)):(Kl=0,ql=null,Vu(e,t,o,7));break;case 5:var s=null;switch(Wl.tag){case 26:s=Wl.memoizedState;case 5:case 27:var c=Wl;if(s?Xf(s):c.stateNode.complete){Kl=0,ql=null;var l=c.sibling;if(l!==null)Wl=l;else{var u=c.return;u===null?Wl=null:(Wl=u,Hu(u))}break b}}Kl=0,ql=null,Vu(e,t,o,5);break;case 6:Kl=0,ql=null,Vu(e,t,o,6);break;case 8:Ou(),Ql=6;break a;default:throw Error(a(462))}}Ru();break}catch(t){Au(e,t)}while(1);return Yi=Ji=null,I.H=r,I.A=i,Hl=n,Wl===null?(Ul=null,Gl=0,ti(),Ql):0}function Ru(){for(;Wl!==null&&!we();)zu(Wl)}function zu(e){var t=Pc(e.alternate,e,Zl);e.memoizedProps=e.pendingProps,t===null?Hu(e):Wl=t}function Bu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=vc(n,t,t.pendingProps,t.type,void 0,Gl);break;case 11:t=vc(n,t,t.pendingProps,t.type.render,t.ref,Gl);break;case 5:No(t);default:Hc(n,t),t=Wl=fi(t,Zl),t=Pc(n,t,Zl)}e.memoizedProps=e.pendingProps,t===null?Hu(e):Wl=t}function Vu(e,t,n,r){Yi=Ji=null,No(t),Na=null,Pa=0;var i=t.return;try{if(rc(e,i,t,n,Gl)){Ql=1,Qs(e,yi(n,e.current)),Wl=null;return}}catch(t){if(i!==null)throw Wl=i,t;Ql=1,Qs(e,yi(n,e.current)),Wl=null;return}t.flags&32768?(Ii||r===1?e=!0:Yl||Gl&536870912?e=!1:(Jl=e=!0,(r===2||r===9||r===3||r===6)&&(r=io.current,r!==null&&r.tag===13&&(r.flags|=16384))),Uu(t,e)):Hu(t)}function Hu(e){var t=e;do{if(t.flags&32768){Uu(t,Jl);return}e=t.return;var n=Bc(t.alternate,t,Zl);if(n!==null){Wl=n;return}if(t=t.sibling,t!==null){Wl=t;return}Wl=t=e}while(t!==null);Ql===0&&(Ql=5)}function Uu(e,t){do{var n=Vc(e.alternate,e);if(n!==null){n.flags&=32767,Wl=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Wl=e;return}Wl=e=n}while(e!==null);Ql=6,Wl=null}function K(e,t,n,r,i,o,s,c,l){e.cancelPendingCommit=null;do Gu();while(G!==0);if(Hl&6)throw Error(a(327));if(t!==null){if(t===e.current)throw Error(a(177));if(o=t.lanes|t.childLanes,o|=ei,Qe(e,n,o,s,c,l),e===Ul&&(Wl=Ul=null,Gl=0),pu=t,fu=e,mu=n,hu=o,gu=i,_u=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,ed(Ae,function(){return Ku(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=I.T,I.T=null,i=R.p,R.p=2,s=Hl,Hl|=4;try{sl(e,t,n)}finally{Hl=s,R.p=i,I.T=r}}G=1,Wu(),q(),J()}}function Wu(){if(G===1){G=0;var e=fu,t=pu,n=!!(t.flags&13878);if(t.subtreeFlags&13878||n){n=I.T,I.T=null;var r=R.p;R.p=2;var i=Hl;Hl|=4;try{bl(t,e);var a=Gd,o=Or(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Dr(s.ownerDocument.documentElement,s)){if(c!==null&&kr(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 _=Er(s,h),v=Er(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}}pp=!!Wd,Gd=Wd=null}finally{Hl=i,R.p=r,I.T=n}}e.current=t,G=2}}function q(){if(G===2){G=0;var e=fu,t=pu,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=I.T,I.T=null;var r=R.p;R.p=2;var i=Hl;Hl|=4;try{cl(e,t.alternate,t)}finally{Hl=i,R.p=r,I.T=n}}G=3}}function J(){if(G===4||G===3){G=0,Te();var e=fu,t=pu,n=mu,r=_u;t.subtreeFlags&10256||t.flags&10256?G=5:(G=0,pu=fu=null,Y(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(du=null),rt(n),t=t.stateNode,Ie&&typeof Ie.onCommitFiberRoot==`function`)try{Ie.onCommitFiberRoot(Fe,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=I.T,i=R.p,R.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,R.p=i}}mu&3&&Gu(),sd(e),i=e.pendingLanes,n&261930&&i&42?e===yu?vu++:(vu=0,yu=e):vu=0,cd(0,!1)}}function Y(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ua(t)))}function Gu(){return Wu(),q(),J(),Ku()}function Ku(){if(G!==5)return!1;var e=fu,t=hu;hu=0;var n=rt(mu),r=I.T,i=R.p;try{R.p=32>n?32:n,I.T=null,n=gu,gu=null;var o=fu,s=mu;if(G=0,pu=fu=null,mu=0,Hl&6)throw Error(a(331));var c=Hl;if(Hl|=4,Ll(o.current),kl(o,o.current,s,n),Hl=c,cd(0,!1),Ie&&typeof Ie.onPostCommitFiberRoot==`function`)try{Ie.onPostCommitFiberRoot(Fe,o)}catch{}return!0}finally{R.p=i,I.T=r,Y(e,t)}}function qu(e,t,n){t=yi(n,t),t=ec(e.stateNode,t,2),e=Ga(e,t,2),e!==null&&(Ze(e,2),sd(e))}function Ju(e,t,n){if(e.tag===3)qu(e,e,n);else for(;t!==null;){if(t.tag===3){qu(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(du===null||!du.has(r))){e=yi(n,e),n=tc(2),r=Ga(t,n,2),r!==null&&(nc(n,r,t,e),Ze(r,2),sd(r));break}}t=t.return}}function Yu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Vl;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)||(Xl=!0,i.add(n),e=Xu.bind(null,e,t,n),t.then(e,e))}function Xu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ul===e&&(Gl&n)===n&&(Ql===4||Ql===3&&(Gl&62914560)===Gl&&300>Ee()-su?!(Hl&2)&&ku(e,0):tu|=n,ru===Gl&&(ru=0)),sd(e)}function Zu(e,t){t===0&&(t=Ye()),e=ii(e,t),e!==null&&(Ze(e,t),sd(e))}function Qu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Zu(e,n)}function $u(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}r!==null&&r.delete(t),Zu(e,n)}function ed(e,t){return Se(e,t)}var td=null,nd=null,rd=!1,id=!1,ad=!1,od=0;function sd(e){e!==nd&&e.next===null&&(nd===null?td=nd=e:nd=nd.next=e),id=!0,rd||(rd=!0,md())}function cd(e,t){if(!ad&&id){ad=!0;do for(var n=!1,r=td;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-Re(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,pd(r,a))}else a=Gl,a=Ke(r,r===Ul?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||qe(r,a)||(n=!0,pd(r,a))}r=r.next}while(n);ad=!1}}function ld(){ud()}function ud(){id=rd=!1;var e=0;od!==0&&Zd()&&(e=od);for(var t=Ee(),n=null,r=td;r!==null;){var i=r.next,a=dd(r,t);a===0?(r.next=null,n===null?td=i:n.next=i,i===null&&(nd=n)):(n=r,(e!==0||a&3)&&(id=!0)),r=i}G!==0&&G!==5||cd(e,!1),od!==0&&(od=0)}function dd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Re(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Je(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Ul,n=Gl,n=Ke(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Kl===2||Kl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ce(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||qe(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ce(r),rt(n)){case 2:case 8:n=ke;break;case 32:n=Ae;break;case 268435456:n=Me;break;default:n=Ae}return r=fd.bind(null,e),n=Se(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ce(r),e.callbackPriority=2,e.callbackNode=null,2}function fd(e,t){if(G!==0&&G!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Gu()&&e.callbackNode!==n)return null;var r=Gl;return r=Ke(e,e===Ul?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Cu(e,r,t),dd(e,Ee()),e.callbackNode!=null&&e.callbackNode===n?fd.bind(null,e):null)}function pd(e,t){if(Gu())return null;Cu(e,t,!0)}function md(){tf(function(){Hl&6?Se(Oe,ld):ud()})}function hd(){if(od===0){var e=pa;e===0&&(e=He,He<<=1,!(He&261888)&&(He=256)),od=e}return od}function gd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:$t(``+e)}function _d(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 vd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=gd((i[ct]||null).action),o=r.submitter;o&&(t=(t=o[ct]||null)?gd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Sn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(od!==0){var e=o?_d(i,o):new FormData(i);Ds(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?_d(i,o):new FormData(i),Ds(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var yd=0;yd<Yr.length;yd++){var bd=Yr[yd];Xr(bd.toLowerCase(),`on`+(bd[0].toUpperCase()+bd.slice(1)))}Xr(Vr,`onAnimationEnd`),Xr(Hr,`onAnimationIteration`),Xr(Ur,`onAnimationStart`),Xr(`dblclick`,`onDoubleClick`),Xr(`focusin`,`onFocus`),Xr(`focusout`,`onBlur`),Xr(Wr,`onTransitionRun`),Xr(Gr,`onTransitionStart`),Xr(Kr,`onTransitionCancel`),Xr(qr,`onTransitionEnd`),wt(`onMouseEnter`,[`mouseout`,`mouseover`]),wt(`onMouseLeave`,[`mouseout`,`mouseover`]),wt(`onPointerEnter`,[`pointerout`,`pointerover`]),wt(`onPointerLeave`,[`pointerout`,`pointerover`]),Ct(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Ct(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Ct(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Ct(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Ct(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Ct(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var xd=`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(` `),Sd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(xd));function Cd(e,t){t=!!(t&4);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){Zr(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){Zr(e)}i.currentTarget=null,a=c}}}}function wd(e,t){var n=t[ut];n===void 0&&(n=t[ut]=new Set);var r=e+`__bubble`;n.has(r)||(Od(t,e,2,!1),n.add(r))}function Td(e,t,n){var r=0;t&&(r|=4),Od(n,e,r,t)}var Ed=`_reactListening`+Math.random().toString(36).slice(2);function Dd(e){if(!e[Ed]){e[Ed]=!0,xt.forEach(function(t){t!==`selectionchange`&&(Sd.has(t)||Td(t,!1,e),Td(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ed]||(t[Ed]=!0,Td(`selectionchange`,!1,t))}}function Od(e,t,n,r){switch(bp(t)){case 2:var i=mp;break;case 8:i=hp;break;default:i=gp}n=i.bind(null,t,n,e),i=void 0,!dn||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 kd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var c=r.stateNode.containerInfo;if(c===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;c!==null;){if(o=gt(c),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){r=a=o;continue a}c=c.parentNode}}r=r.return}cn(function(){var r=a,i=nn(n),o=[];a:{var c=Jr.get(e);if(c!==void 0){var l=Sn,u=e;switch(e){case`keypress`:if(_n(n)===0)break a;case`keydown`:case`keyup`:l=Bn;break;case`focusin`:u=`focus`,l=jn;break;case`focusout`:u=`blur`,l=jn;break;case`beforeblur`:case`afterblur`:l=jn;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=kn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=An;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Hn;break;case Vr:case Hr:case Ur:l=Mn;break;case qr:l=Un;break;case`scroll`:case`scrollend`:l=wn;break;case`wheel`:l=Wn;break;case`copy`:case`cut`:case`paste`:l=Nn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Vn;break;case`toggle`:case`beforetoggle`:l=Gn}var d=!!(t&4),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=ln(m,p),g!=null&&d.push(Ad(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),o.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==tn&&(u=n.relatedTarget||n.fromElement)&&(gt(u)||u[lt]))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?gt(u):null,u!==null&&(f=s(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=kn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Vn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:vt(l),h=u==null?c:vt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,gt(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=Md,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&&Nd(o,c,l,d,!1),u!==null&&f!==null&&Nd(o,f,u,d,!0)}}a:{if(c=r?vt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=dr;else if(ar(c)){if(fr)v=xr;else{v=yr;var y=vr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Xt(r.elementType)&&(v=dr):v=br;if(v&&=v(e,r)){or(o,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Ht(c,`number`,c.value)}switch(y=r?vt(r):window,e){case`focusin`:(ar(y)||y.contentEditable===`true`)&&(jr=y,Mr=r,Nr=null);break;case`focusout`:Nr=Mr=jr=null;break;case`mousedown`:Pr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Pr=!1,Fr(o,n,i);break;case`selectionchange`:if(Ar)break;case`keydown`:case`keyup`:Fr(o,n,i)}var b;if(qn)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 tr?$n(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Xn&&n.locale!==`ko`&&(tr||x!==`onCompositionStart`?x===`onCompositionEnd`&&tr&&(b=gn()):(pn=i,mn=`value`in pn?pn.value:pn.textContent,tr=!0)),y=jd(r,x),0<y.length&&(x=new Pn(x,e,null,n,i),o.push({event:x,listeners:y}),b?x.data=b:(b=er(n),b!==null&&(x.data=b)))),(b=Yn?nr(e,n):rr(e,n))&&(x=jd(r,`onBeforeInput`),0<x.length&&(y=new Pn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:x}),y.data=b)),vd(o,e,r,n,i)}Cd(o,t)})}function Ad(e,t,n){return{instance:e,listener:t,currentTarget:n}}function jd(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=ln(e,n),i!=null&&r.unshift(Ad(e,i,a)),i=ln(e,t),i!=null&&r.push(Ad(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Md(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Nd(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=ln(n,a),l!=null&&o.unshift(Ad(n,l,c))):i||(l=ln(n,a),l!=null&&o.push(Ad(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Pd=/\r\n?/g,Fd=/\u0000|\uFFFD/g;function Id(e){return(typeof e==`string`?e:``+e).replace(Pd,`
10
+ `).replace(Fd,``)}function Ld(e,t){return t=Id(t),Id(e)===t}function Rd(e,t,n,r,i,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Kt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Kt(e,``+r);break;case`className`:At(e,`class`,r);break;case`tabIndex`:At(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:At(e,n,r);break;case`style`:Yt(e,r,o);break;case`data`:if(t!==`object`){At(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=$t(``+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}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&Rd(e,t,`name`,i.name,i,null),Rd(e,t,`formEncType`,i.formEncType,i,null),Rd(e,t,`formMethod`,i.formMethod,i,null),Rd(e,t,`formTarget`,i.formTarget,i,null)):(Rd(e,t,`encType`,i.encType,i,null),Rd(e,t,`method`,i.method,i,null),Rd(e,t,`target`,i.target,i,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=$t(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=en);break;case`onScroll`:r!=null&&wd(`scroll`,e);break;case`onScrollEnd`:r!=null&&wd(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(a(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(a(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=$t(``+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`:wd(`beforetoggle`,e),wd(`toggle`,e),kt(e,`popover`,r);break;case`xlinkActuate`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:kt(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=Zt.get(n)||n,kt(e,n,r))}}function zd(e,t,n,r,i,o){switch(n){case`style`:Yt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(a(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(a(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Kt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Kt(e,``+r);break;case`onScroll`:r!=null&&wd(`scroll`,e);break;case`onScrollEnd`:r!=null&&wd(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=en);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!St.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),t=n.slice(2,i?n.length-7:void 0),o=e[ct]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,i),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):kt(e,n,r)}}}function Bd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:wd(`error`,e),wd(`load`,e);var r=!1,i=!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`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(a(137,t));default:Rd(e,t,o,s,n,null)}}i&&Rd(e,t,`srcSet`,n.srcSet,n,null),r&&Rd(e,t,`src`,n.src,n,null);return;case`input`:wd(`invalid`,e);var c=o=s=i=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:i=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(a(137,t));break;default:Rd(e,t,r,d,n,null)}}Vt(e,o,c,l,u,s,i,!1);return;case`select`:for(i in wd(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(i)&&(c=n[i],c!=null))switch(i){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Rd(e,t,i,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Ut(e,!!r,n,!0):Ut(e,!!r,t,!1);return;case`textarea`:for(s in wd(`invalid`,e),o=i=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:i=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(a(91));break;default:Rd(e,t,s,c,n,null)}Gt(e,r,i,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:Rd(e,t,l,r,n,null)}return;case`dialog`:wd(`beforetoggle`,e),wd(`toggle`,e),wd(`cancel`,e),wd(`close`,e);break;case`iframe`:case`object`:wd(`load`,e);break;case`video`:case`audio`:for(r=0;r<xd.length;r++)wd(xd[r],e);break;case`image`:wd(`error`,e),wd(`load`,e);break;case`details`:wd(`toggle`,e);break;case`embed`:case`source`:case`link`:wd(`error`,e),wd(`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(a(137,t));default:Rd(e,t,u,r,n,null)}return;default:if(Xt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&zd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Rd(e,t,c,r,n,null))}function Vd(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 i=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)||Rd(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`:i=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(a(137,t));break;default:m!==f&&Rd(e,t,p,m,r,f)}}Bt(e,s,c,l,u,d,o,i);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)||Rd(e,t,o,null,r,l)}for(i in r)if(o=r[i],l=n[i],r.hasOwnProperty(i)&&(o!=null||l!=null))switch(i){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Rd(e,t,i,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Ut(e,!!n,n?[]:``,!1):Ut(e,!!n,t,!0)):Ut(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(i=n[c],n.hasOwnProperty(c)&&i!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Rd(e,t,c,null,r,i)}for(s in r)if(i=r[s],o=n[s],r.hasOwnProperty(s)&&(i!=null||o!=null))switch(s){case`value`:p=i;break;case`defaultValue`:m=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error(a(91));break;default:i!==o&&Rd(e,t,s,i,r,o)}Wt(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:Rd(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:Rd(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)&&Rd(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(a(137,t));break;default:Rd(e,t,u,p,r,m)}return;default:if(Xt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&zd(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||zd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Rd(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||Rd(e,t,f,p,r,m)}function Hd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Ud(){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&&Hd(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&&Hd(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 Wd=null,Gd=null;function Kd(e){return e.nodeType===9?e:e.ownerDocument}function qd(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 Jd(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 Yd(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 Xd=null;function Zd(){var e=window.event;return e&&e.type===`popstate`?e!==Xd&&(Xd=e,!0):(Xd=null,!1)}var Qd=typeof setTimeout==`function`?setTimeout:void 0,$d=typeof clearTimeout==`function`?clearTimeout:void 0,ef=typeof Promise==`function`?Promise:void 0,tf=typeof queueMicrotask==`function`?queueMicrotask:ef===void 0?Qd:function(e){return ef.resolve(null).then(e).catch(nf)};function nf(e){setTimeout(function(){throw e})}function rf(e){return e===`head`}function af(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`)yf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,yf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[mt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&yf(e.ownerDocument.body)}n=i}while(n);zp(t)}function of(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 sf(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`:sf(n),ht(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function cf(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[mt])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=mf(e.nextSibling),e===null)break}return null}function lf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=mf(e.nextSibling),e===null))return null;return e}function uf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=mf(e.nextSibling),e===null))return null;return e}function df(e){return e.data===`$?`||e.data===`$~`}function ff(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function pf(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 mf(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 hf=null;function gf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return mf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function _f(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 vf(e,t,n){switch(t=Kd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(a(452));return e;case`head`:if(e=t.head,!e)throw Error(a(453));return e;case`body`:if(e=t.body,!e)throw Error(a(454));return e;default:throw Error(a(451))}}function yf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ht(e)}var bf=new Map,xf=new Set;function Sf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Cf=R.d;R.d={f:wf,r:Tf,D:Of,C:kf,L:Af,m:jf,X:Nf,S:Mf,M:Pf};function wf(){var e=Cf.f(),t=Du();return e||t}function Tf(e){var t=_t(e);t!==null&&t.tag===5&&t.type===`form`?ks(t):Cf.r(e)}var Ef=typeof document>`u`?null:document;function Df(e,t,n){var r=Ef;if(r&&typeof t==`string`&&t){var i=zt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),xf.has(i)||(xf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Bd(t,`link`,e),bt(t),r.head.appendChild(t)))}}function Of(e){Cf.D(e),Df(`dns-prefetch`,e,null)}function kf(e,t){Cf.C(e,t),Df(`preconnect`,e,t)}function Af(e,t,n){Cf.L(e,t,n);var r=Ef;if(r&&e&&t){var i=`link[rel="preload"][as="`+zt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+zt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+zt(n.imageSizes)+`"]`)):i+=`[href="`+zt(e)+`"]`;var a=i;switch(t){case`style`:a=If(e);break;case`script`:a=Bf(e)}bf.has(a)||(e=p({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),bf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Lf(a))||t===`script`&&r.querySelector(Vf(a))||(t=r.createElement(`link`),Bd(t,`link`,e),bt(t),r.head.appendChild(t)))}}function jf(e,t){Cf.m(e,t);var n=Ef;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+zt(r)+`"][href="`+zt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Bf(e)}if(!bf.has(a)&&(e=p({rel:`modulepreload`,href:e},t),bf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Vf(a)))return}r=n.createElement(`link`),Bd(r,`link`,e),bt(r),n.head.appendChild(r)}}}function Mf(e,t,n){Cf.S(e,t,n);var r=Ef;if(r&&e){var i=yt(r).hoistableStyles,a=If(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Lf(a)))s.loading=5;else{e=p({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=bf.get(a))&&Wf(e,n);var c=o=r.createElement(`link`);bt(c),Bd(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,Uf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Nf(e,t){Cf.X(e,t);var n=Ef;if(n&&e){var r=yt(n).hoistableScripts,i=Bf(e),a=r.get(i);a||(a=n.querySelector(Vf(i)),a||(e=p({src:e,async:!0},t),(t=bf.get(i))&&Gf(e,t),a=n.createElement(`script`),bt(a),Bd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Pf(e,t){Cf.M(e,t);var n=Ef;if(n&&e){var r=yt(n).hoistableScripts,i=Bf(e),a=r.get(i);a||(a=n.querySelector(Vf(i)),a||(e=p({src:e,async:!0,type:`module`},t),(t=bf.get(i))&&Gf(e,t),a=n.createElement(`script`),bt(a),Bd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Ff(e,t,n,r){var i=(i=ce.current)?Sf(i):null;if(!i)throw Error(a(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=If(n.href),n=yt(i).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=If(n.href);var o=yt(i).hoistableStyles,s=o.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=i.querySelector(Lf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),bf.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},bf.set(e,n),o||zf(i,e,n,s.state))),t&&r===null)throw Error(a(528,``));return s}if(t&&r!==null)throw Error(a(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Bf(n),n=yt(i).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(a(444,e))}}function If(e){return`href="`+zt(e)+`"`}function Lf(e){return`link[rel="stylesheet"][`+e+`]`}function Rf(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function zf(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}),Bd(t,`link`,n),bt(t),e.head.appendChild(t))}function Bf(e){return`[src="`+zt(e)+`"]`}function Vf(e){return`script[async]`+e}function Hf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+zt(n.href)+`"]`);if(r)return t.instance=r,bt(r),r;var i=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),bt(r),Bd(r,`style`,i),Uf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=If(n.href);var o=e.querySelector(Lf(i));if(o)return t.state.loading|=4,t.instance=o,bt(o),o;r=Rf(n),(i=bf.get(i))&&Wf(r,i),o=(e.ownerDocument||e).createElement(`link`),bt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Bd(o,`link`,r),t.state.loading|=4,Uf(o,n.precedence,e),t.instance=o;case`script`:return o=Bf(n.src),(i=e.querySelector(Vf(o)))?(t.instance=i,bt(i),i):(r=n,(i=bf.get(o))&&(r=p({},n),Gf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),bt(i),Bd(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(a(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Uf(r,n.precedence,e));return t.instance}function Uf(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 Wf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Gf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Kf=null;function qf(e,t,n){if(Kf===null){var r=new Map,i=Kf=new Map;i.set(n,r)}else i=Kf,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[mt]||a[st]||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 Jf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Yf(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 Xf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Zf(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=If(r.href),a=t.querySelector(Lf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=ep.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,bt(a);return}a=t.ownerDocument||t,r=Rf(r),(i=bf.get(i))&&Wf(r,i),a=a.createElement(`link`),bt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Bd(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=ep.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Qf=0;function $f(e,t){return e.stylesheets&&e.count===0&&np(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&np(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Qf===0&&(Qf=62500*Ud());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&np(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Qf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function ep(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)np(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var tp=null;function np(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,tp=new Map,t.forEach(rp,e),tp=null,ep.call(e))}function rp(e,t){if(!(t.state.loading&4)){var n=tp.get(e);if(n)var r=n.get(null);else{n=new Map,tp.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=ep.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 ip={$$typeof:C,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function ap(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=Xe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xe(0),this.hiddenUpdates=Xe(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 op(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ap(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=li(3,null,null,t),e.current=a,a.stateNode=e,t=la(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ha(a),e}function sp(e){return e?(e=si,e):si}function cp(e,t,n,r,i,a){i=sp(i),r.context===null?r.context=i:r.pendingContext=i,r=Wa(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ga(e,r,t),n!==null&&(Su(n,e,t),Ka(n,e,t))}function lp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function up(e,t){lp(e,t),(e=e.alternate)&&lp(e,t)}function dp(e){if(e.tag===13||e.tag===31){var t=ii(e,67108864);t!==null&&Su(t,e,67108864),up(e,67108864)}}function fp(e){if(e.tag===13||e.tag===31){var t=bu();t=nt(t);var n=ii(e,t);n!==null&&Su(n,e,t),up(e,t)}}var pp=!0;function mp(e,t,n,r){var i=I.T;I.T=null;var a=R.p;try{R.p=2,gp(e,t,n,r)}finally{R.p=a,I.T=i}}function hp(e,t,n,r){var i=I.T;I.T=null;var a=R.p;try{R.p=8,gp(e,t,n,r)}finally{R.p=a,I.T=i}}function gp(e,t,n,r){if(pp){var i=_p(r);if(i===null)kd(e,t,r,vp,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=_t(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ge(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Re(o);s.entanglements[1]|=c,o&=~c}sd(a),!(Hl&6)&&(lu=Ee()+500,cd(0,!1))}}break;case 31:case 13:s=ii(a,2),s!==null&&Su(s,a,2),Du(),up(a,2)}if(a=_p(r),a===null&&kd(e,t,r,vp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else kd(e,t,r,null,n)}}function _p(e){return e=nn(e),yp(e)}var vp=null;function yp(e){if(vp=null,e=gt(e),e!==null){var t=s(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=c(t),e!==null)return e;e=null}else if(n===31){if(e=l(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 vp=e,null}function bp(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(De()){case Oe:return 2;case ke:return 8;case Ae:case je:return 32;case Me:return 268435456;default:return 32}default:return 32}}var xp=!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=_t(t),t!==null&&dp(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=gt(e.target);if(t!==null){var n=s(t);if(n!==null){if(t=n.tag,t===13){if(t=c(n),t!==null){e.blockedOn=t,at(e.priority,function(){fp(n)});return}}else if(t===31){if(t=l(n),t!==null){e.blockedOn=t,at(e.priority,function(){fp(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=_p(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);tn=r,n.target.dispatchEvent(r),tn=null}else return t=_t(n),t!==null&&dp(t),e.blockedOn=n,!1;t.shift()}return!0}function Pp(e,t,n){Np(e)&&n.delete(t)}function Fp(){xp=!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,xp||(xp=!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(yp(r||n)===null)continue;break}var a=_t(n);a!==null&&(e.splice(t,3),t-=3,Ds(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[ct]||null;if(typeof a==`function`)o||Rp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[ct]||null)s=o.formAction;else if(yp(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(a(409));var n=t.current;cp(n,bu(),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;cp(e.current,2,null,e,null,null),Du(),t[lt]=null}};function Hp(e){this._internalRoot=e}Hp.prototype.unstable_scheduleHydration=function(e){if(e){var t=it();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.8`)throw Error(a(527,Up,`19.2.8`));R.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(a(188)):(e=Object.keys(e).join(`,`),Error(a(268,e)));return e=d(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var Wp={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:I,reconcilerVersion:`19.2.8`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Gp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gp.isDisabled&&Gp.supportsFiber)try{Fe=Gp.inject(Wp),Ie=Gp}catch{}}e.createRoot=function(e,t){if(!o(e))throw Error(a(299));var n=!1,r=``,i=Ys,s=Xs,c=Zs;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=op(e,1,!1,null,null,n,r,null,i,s,c,Bp),e[lt]=t.current,Dd(e),new Vp(t)}})),x=n(((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=b()})),S=t(r(),1),C=x(),w=`modulepreload`,T=function(e){return`/`+e},E={},D=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=T(t,n),t=s(t),t in E)return;E[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:w,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},O=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,k=/^[\\/]{2}/;function A(e,t){return t+e.replace(/\\/g,`/`)}var j=`popstate`;function M(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function N(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return ee(``,{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:te(t)}return re(t,n,null,e)}function P(e,t){if(e===!1||e==null)throw Error(t)}function F(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function I(){return Math.random().toString(36).substring(2,10)}function R(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 ee(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?ne(t):t,state:n,key:t&&t.key||r||I(),mask:i}}function te({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 ne(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 re(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=M(e)?e:ee(h.location,e,t);n&&n(r,e),l=u()+1;let d=R(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=M(e)?e:ee(h.location,e,t);n&&n(r,e),l=u();let i=R(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 ie(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(j,d),c=e,()=>{i.removeEventListener(j,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 ie(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),P(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:te(t);return i=i.replace(/ $/,`%20`),!n&&k.test(i)&&(i=r+i),new URL(i,r)}function ae(e,t,n=`/`){return oe(e,t,n,!1)}function oe(e,t,n,r,i){let a=Te((typeof t==`string`?ne(t):t).pathname||`/`,n);if(a==null)return null;let o=i??se(e),s=null,c=we(a);for(let e=0;s==null&&e<o.length;++e)s=be(o[e],c,r);return s}function se(e){let t=ce(e);return ue(t),t}function ce(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;P(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=Ne([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(P(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),ce(e.children,t,u,l,o)),(e.path!=null||e.index)&&t.push({path:l,score:ve(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=Ce(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of le(e.path))a(e,t,!0,n)}),t}function le(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=le(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 ue(e){e.sort((e,t)=>e.score===t.score?ye(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var de=/^:[\w-]+$/,fe=3,pe=2,me=1,he=10,ge=-2,_e=e=>e===`*`;function ve(e,t){let n=e.split(`/`),r=n.length;return n.some(_e)&&(r+=ge),t&&(r+=pe),n.filter(e=>!_e(e)).reduce((e,t)=>e+(de.test(t)?fe:t===``?me:he),r)}function ye(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 be(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={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?Se(u,l,s.matcher,s.compiledParams):xe(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=xe({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:Ne([a,d.pathname]),pathnameBase:Fe(Ne([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=Ne([a,d.pathnameBase]))}return o}function xe(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Ce(e.path,e.caseSensitive,e.end);return Se(e,t,n,r)}function Se(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=Pe(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=Pe(a.slice(0,a.length-e.length),1)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function Ce(e,t=!1,n=!0){F(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 we(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return F(!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 Te(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)||`/`}function Ee(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?ne(e):e,a;return n?(n=Me(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?De(n.substring(1),`/`):De(n,t)):a=t,{pathname:a,search:Ie(r),hash:Le(i)}}function De(e,t){let n=Pe(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function Oe(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 ke(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Ae(e){let t=ke(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function je(e,t,n,r=!1){let i;typeof e==`string`?i=ne(e):(i={...e},P(!i.pathname||!i.pathname.includes(`?`),Oe(`?`,`pathname`,`search`,i)),P(!i.pathname||!i.pathname.includes(`#`),Oe(`#`,`pathname`,`hash`,i)),P(!i.search||!i.search.includes(`#`),Oe(`#`,`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=Ee(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Me=e=>e.replace(/[\\/]{2,}/g,`/`),Ne=e=>Me(e.join(`/`));function Pe(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var Fe=e=>Pe(e).replace(/^\/*/,`/`),Ie=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Le=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Re=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 ze(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function Be(e){return Ne(e.map(e=>e.route.path).filter(Boolean))||`/`}var Ve=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function He(e,t){let n=e;if(typeof n!=`string`||!O.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Ve)try{let e=new URL(window.location.href),r=k.test(n)?new URL(A(n,e.protocol)):new URL(n),a=Te(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{F(!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 Ue=new URL(`http://localhost`);function We(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),Ue)}catch{return Ue}}function Ge(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function Ke(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function qe(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!Ge(i,n),s=!Ge(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!Ke(e,i)||!Ge(i,a)))throw Error(`External navigation is not allowed`)}var Je=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(Je);var Ye=[`GET`,...Je];new Set(Ye);var Xe=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function Ze(e){try{return Xe.includes(new URL(e).protocol)}catch{return!1}}var Qe=S.createContext(null);Qe.displayName=`DataRouter`;var $e=S.createContext(null);$e.displayName=`DataRouterState`;var et=S.createContext(!1);function tt(){return S.useContext(et)}var nt=S.createContext({isTransitioning:!1});nt.displayName=`ViewTransition`;var rt=S.createContext(new Map);rt.displayName=`Fetchers`;var it=S.createContext(null);it.displayName=`Await`;var at=S.createContext(null);at.displayName=`Navigation`;var ot=S.createContext(null);ot.displayName=`Location`;var st=S.createContext({outlet:null,matches:[],isDataRoute:!1});st.displayName=`Route`;var ct=S.createContext(null);ct.displayName=`RouteError`;var lt=`REACT_ROUTER_ERROR`,ut=`REDIRECT`,dt=`ROUTE_ERROR_RESPONSE`;function ft(e){if(e.startsWith(`${lt}:${ut}:{`))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 pt(e){if(e.startsWith(`${lt}:${dt}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Re(t.status,t.statusText,t.data)}catch{}}function mt(e,{relative:t}={}){P(ht(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=S.useContext(at),{hash:i,pathname:a,search:o}=wt(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:Ne([n,a])),r.createHref({pathname:s,search:o,hash:i})}function ht(){return S.useContext(ot)!=null}function gt(){return P(ht(),`useLocation() may be used only in the context of a <Router> component.`),S.useContext(ot).location}var _t=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function vt(e){S.useContext(at).static||S.useLayoutEffect(e)}function yt(){let{isDataRoute:e}=S.useContext(st);return e?Vt():bt()}function bt(){P(ht(),`useNavigate() may be used only in the context of a <Router> component.`);let e=S.useContext(Qe),{basename:t,navigator:n}=S.useContext(at),{matches:r}=S.useContext(st),{pathname:i}=gt(),a=JSON.stringify(Ae(r)),o=S.useRef(!1);return vt(()=>{o.current=!0}),S.useCallback((r,s={})=>{if(F(o.current,_t),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=je(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Ne([t,c.pathname])),qe(typeof r==`string`?r:te(r),n.createHref(c),We(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var xt=S.createContext(null);function St(e){let t=S.useContext(st).outlet;return S.useMemo(()=>t&&S.createElement(xt.Provider,{value:e},t),[t,e])}function Ct(){let{matches:e}=S.useContext(st);return e[e.length-1]?.params??{}}function wt(e,{relative:t}={}){let{matches:n}=S.useContext(st),{pathname:r}=gt(),i=JSON.stringify(Ae(n));return S.useMemo(()=>je(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Tt(e,t){return Et(e,t)}function Et(e,t,n){P(ht(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=S.useContext(at),{matches:i}=S.useContext(st),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||``;Ut(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=gt(),d;if(t){let e=typeof t==`string`?ne(t):t;P(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})):ae(e,{pathname:p});F(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),F(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=Nt(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Ne([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:Ne([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?S.createElement(ot.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function Dt(){let e=Bt(),t=ze(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=S.createElement(S.Fragment,null,S.createElement(`p`,null,`💿 Hey developer 👋`),S.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,S.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,S.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),S.createElement(S.Fragment,null,S.createElement(`h2`,null,`Unexpected Application Error!`),S.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?S.createElement(`pre`,{style:i},n):null,o)}var Ot=S.createElement(Dt,null),kt=class extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,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=pt(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:S.createElement(st.Provider,{value:this.props.routeContext},S.createElement(ct.Provider,{value:e,children:this.props.component}));return this.context?S.createElement(jt,{error:e},t):t}};kt.contextType=et;var At=new WeakMap;function jt({children:e,error:t}){let{basename:n,navigator:r}=S.useContext(at);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=ft(t.digest);if(e){let i=At.get(t);if(i)throw i;let a=He(e.location,n),o=a.absoluteURL||a.to;if(qe(e.location,o,We(r),`allow-explicit`),Ze(o))throw Error(`Invalid redirect location`);if(Ve&&!At.get(t)){if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw At.set(t,n),n}}return S.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function Mt({routeContext:e,match:t,children:n}){let r=S.useContext(Qe);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(st.Provider,{value:e},n)}function Nt(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);P(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:Be(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||Ot,o&&(s<0&&c===0?(Ut(`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?S.createElement(n.route.Component,null):n.route.element?n.route.element:e,S.createElement(Mt,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?S.createElement(kt,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function Pt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ft(e){let t=S.useContext(Qe);return P(t,Pt(e)),t}function It(e){let t=S.useContext($e);return P(t,Pt(e)),t}function Lt(e){let t=S.useContext(st);return P(t,Pt(e)),t}function Rt(e){let t=Lt(e),n=t.matches[t.matches.length-1];return P(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function zt(){return Rt(`useRouteId`)}function Bt(){let e=S.useContext(ct),t=It(`useRouteError`),n=Rt(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Vt(){let{router:e}=Ft(`useNavigate`),t=Rt(`useNavigate`),n=S.useRef(!1);return vt(()=>{n.current=!0}),S.useCallback(async(r,i={})=>{F(n.current,_t),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var Ht={};function Ut(e,t,n){!t&&!Ht[e]&&(Ht[e]=!0,F(!1,n))}S.memo(Wt);function Wt({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return Et(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function Gt({to:e,replace:t,state:n,relative:r}){P(ht(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i,navigator:a}=S.useContext(at);F(!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:o}=S.useContext(st),{pathname:s}=gt(),c=yt(),l=je(e,Ae(o),s,r===`path`);qe(typeof e==`string`?e:te(e),a.createHref(l),We(a),`reject`);let u=JSON.stringify(l);return S.useEffect(()=>{c(JSON.parse(u),{replace:t,state:n,relative:r})},[c,u,r,t,n]),null}function Kt(e){return St(e.context)}function qt(e){P(!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 Jt({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){P(!ht(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=S.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=ne(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=S.useMemo(()=>{let e=Te(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 F(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:S.createElement(at.Provider,{value:c},S.createElement(ot.Provider,{children:t,value:h}))}function Yt({children:e,location:t}){return Tt(Xt(e),t)}S.Component;function Xt(e,t=[]){let n=[];return S.Children.forEach(e,(e,r)=>{if(!S.isValidElement(e))return;let i=[...t,r];if(e.type===S.Fragment){n.push.apply(n,Xt(e.props.children,i));return}P(e.type===qt,`[${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>`),P(!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=Xt(e.props.children,i)),n.push(a)}),n}var Zt=`get`,Qt=`application/x-www-form-urlencoded`;function $t(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function en(e){return $t(e)&&e.tagName.toLowerCase()===`button`}function tn(e){return $t(e)&&e.tagName.toLowerCase()===`form`}function nn(e){return $t(e)&&e.tagName.toLowerCase()===`input`}function rn(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function an(e,t){return e.button===0&&(!t||t===`_self`)&&!rn(e)}function on(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 sn(e,t){let n=on(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var cn=null;function ln(){if(cn===null)try{new FormData(document.createElement(`form`),0),cn=!1}catch{cn=!0}return cn}var un=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function dn(e){return e!=null&&!un.has(e)?(F(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Qt}"`),null):e}function fn(e,t){let n,r,i,a,o;if(tn(e)){let o=e.getAttribute(`action`);r=o?Te(o,t):null,n=e.getAttribute(`method`)||Zt,i=dn(e.getAttribute(`enctype`))||Qt,a=new FormData(e)}else if(en(e)||nn(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?Te(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||Zt,i=dn(e.getAttribute(`formenctype`))||dn(o.getAttribute(`enctype`))||Qt,a=new FormData(o,e),!ln()){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($t(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=Zt,r=null,i=Qt,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`);function pn(e,t){if(e===!1||e==null)throw Error(t)}function mn(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return i.pathname=n?i.pathname.endsWith(`/`)?`${i.pathname}_.${r}`:`${i.pathname}.${r}`:i.pathname===`/`?`_root.${r}`:t&&Te(i.pathname,t)===`/`?`${Pe(t)}/_root.${r}`:`${Pe(i.pathname)}.${r}`,i}async function hn(e,t){if(e.id in t)return t[e.id];try{let n=await D(()=>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 gn(e){return e!=null&&typeof e.page==`string`}function _n(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 vn(e,t,n){return Cn((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await hn(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(_n).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function yn(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,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 bn(e,t,{includeHydrateFallback:n}={}){return xn(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 xn(e){return[...new Set(e)]}function Sn(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Cn(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!gn(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Sn(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function wn(){let e=S.useContext(Qe);return pn(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Tn(){let e=S.useContext($e);return pn(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var En=S.createContext(void 0);En.displayName=`FrameworkContext`;function Dn(){let e=S.useContext(En);return pn(e,`You must render this element inside a <HydratedRouter> element`),e}function On(e,t){let n=S.useContext(En),[r,i]=S.useState(!1),[a,o]=S.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=S.useRef(null);S.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]),S.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:kn(s,p),onBlur:kn(c,m),onMouseEnter:kn(l,p),onMouseLeave:kn(u,m),onTouchStart:kn(d,p)}]:[a,f,{}]:[!1,f,{}]}function kn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function An({page:e,...t}){let n=tt(),{nonce:r}=Dn(),{router:i}=wn(),a=S.useMemo(()=>ae(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?S.createElement(Mn,{page:e,matches:a,...t}):S.createElement(Nn,{page:e,matches:a,...t})):null}function jn(e){let{manifest:t,routeModules:n}=Dn(),[r,i]=S.useState([]);return S.useEffect(()=>{let r=!1;return vn(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Mn({page:e,matches:t,...n}){let r=gt(),{future:i}=Dn(),{basename:a}=wn(),o=S.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=mn(e,a,i.v8_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.v8_trailingSlashAwareDataRequests,e,r,t]);return S.createElement(S.Fragment,null,o.map(e=>S.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function Nn({page:e,matches:t,...n}){let r=gt(),{future:i,manifest:a,routeModules:o}=Dn(),{basename:s}=wn(),{loaderData:c,matches:l}=Tn(),u=S.useMemo(()=>yn(e,t,l,a,r,`data`),[e,t,l,a,r]),d=S.useMemo(()=>yn(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=S.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=mn(e,s,i.v8_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.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=S.useMemo(()=>bn(d,a),[d,a]),m=jn(d);return S.createElement(S.Fragment,null,f.map(e=>S.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>S.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>S.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Pn(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}S.Component;var Fn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Fn&&(window.__reactRouterVersion=`7.18.3`)}catch{}function In({basename:e,children:t,useTransitions:n,window:r}){let i=S.useRef();i.current??=N({window:r,v5Compat:!0});let a=i.current,[o,s]=S.useState({action:a.action,location:a.location}),c=S.useCallback(e=>{n===!1?s(e):S.startTransition(()=>s(e))},[n]);return S.useLayoutEffect(()=>a.listen(c),[a,c]),S.createElement(Jt,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}var Ln=S.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:_}=S.useContext(at),v=typeof l==`string`&&O.test(l),y=He(l,h);l=y.to;let b=mt(l,{relative:r}),x=gt(),C=null;if(o){let e=je(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:Ne([h,e.pathname])),C=g.createHref(e)}let[w,T,E]=On(n,p),D=Hn(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function k(t){e&&e(t),t.defaultPrevented||D(t)}let A=!(y.isExternal||i),j=S.createElement(`a`,{...p,...E,href:(A?C:void 0)||y.absoluteURL||b,onClick:A?k:e,ref:Pn(m,T),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return w&&!v?S.createElement(S.Fragment,null,j,S.createElement(An,{page:b})):j});Ln.displayName=`Link`;var Rn=S.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=wt(a,{relative:c.relative}),d=gt(),f=S.useContext($e),{navigator:p,basename:m}=S.useContext(at),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=Te(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)===`/`),C={isActive:b,isPending:x,isTransitioning:h},w=b?e:void 0,T;T=typeof n==`function`?n(C):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return S.createElement(Ln,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});Rn.displayName=`NavLink`;var zn=S.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}=S.useContext(at),g=Kn(),_=qn(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&O.test(s);return S.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?S.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});zn.displayName=`Form`;function Bn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Vn(e){let t=S.useContext(Qe);return P(t,Bn(e)),t}function Hn(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=yt(),d=gt(),f=wt(e,{relative:o});return S.useCallback(p=>{if(an(p,t)){p.preventDefault();let t=n===void 0?te(d)===te(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?S.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function Un(e){F(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=S.useRef(on(e)),n=S.useRef(!1),r=gt(),i=S.useMemo(()=>sn(r.search,n.current?null:t.current),[r.search]),a=yt();return[i,S.useCallback((e,t)=>{let r=on(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var Wn=0,Gn=()=>`__${String(++Wn)}__`;function Kn(){let{router:e}=Vn(`useSubmit`),{basename:t}=S.useContext(at),n=zt(),r=e.fetch,i=e.navigate;return S.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=fn(e,t);if(a.navigate===!1){let e=a.fetcherKey||Gn();await r(e,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})}else 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 qn(e,{relative:t}={}){let{basename:n}=S.useContext(at),r=S.useContext(st);P(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...wt(e||`.`,{relative:t})},o=gt();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:Ne([n,a.pathname])),te(a)}function Jn(e,{relative:t}={}){let n=S.useContext(nt);P(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Vn(`useViewTransitionState`),i=wt(e,{relative:t});if(!n.isTransitioning)return!1;let a=Te(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Te(n.nextLocation.pathname,r)||n.nextLocation.pathname;return xe(i.pathname,o)!=null||xe(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)}function Qn(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 $n(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 er=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||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($n(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=Qn(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}(),tr=`-ms-`,nr=`-moz-`,rr=`-webkit-`,ir=`comm`,ar=`rule`,or=`decl`,sr=`@import`,cr=`@keyframes`,lr=`@layer`,ur=Math.abs,dr=String.fromCharCode,fr=Object.assign;function pr(e,t){return vr(e,0)^45?(((t<<2^vr(e,0))<<2^vr(e,1))<<2^vr(e,2))<<2^vr(e,3):0}function mr(e){return e.trim()}function hr(e,t){return(e=t.exec(e))?e[0]:e}function gr(e,t,n){return e.replace(t,n)}function _r(e,t){return e.indexOf(t)}function vr(e,t){return e.charCodeAt(t)|0}function yr(e,t,n){return e.slice(t,n)}function br(e){return e.length}function xr(e){return e.length}function Sr(e,t){return t.push(e),e}function Cr(e,t){return e.map(t).join(``)}var wr=1,Tr=1,Er=0,Dr=0,Or=0,kr=``;function Ar(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:wr,column:Tr,length:o,return:``}}function jr(e,t){return fr(Ar(``,null,null,``,null,null,0),e,{length:-e.length},t)}function Mr(){return Or}function Nr(){return Or=Dr>0?vr(kr,--Dr):0,Tr--,Or===10&&(Tr=1,wr--),Or}function Pr(){return Or=Dr<Er?vr(kr,Dr++):0,Tr++,Or===10&&(Tr=1,wr++),Or}function Fr(){return vr(kr,Dr)}function Ir(){return Dr}function Lr(e,t){return yr(kr,e,t)}function Rr(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 zr(e){return wr=Tr=1,Er=br(kr=e),Dr=0,[]}function Br(e){return kr=``,e}function Vr(e){return mr(Lr(Dr-1,Wr(e===91?e+2:e===40?e+1:e)))}function Hr(e){for(;(Or=Fr())&&Or<33;)Pr();return Rr(e)>2||Rr(Or)>3?``:` `}function Ur(e,t){for(;--t&&Pr()&&!(Or<48||Or>102||Or>57&&Or<65||Or>70&&Or<97););return Lr(e,Ir()+(t<6&&Fr()==32&&Pr()==32))}function Wr(e){for(;Pr();)switch(Or){case e:return Dr;case 34:case 39:e!==34&&e!==39&&Wr(Or);break;case 40:e===41&&Wr(e);break;case 92:Pr()}return Dr}function Gr(e,t){for(;Pr()&&e+Or!==57&&(e+Or!==84||Fr()!==47););return`/*`+Lr(t,Dr-1)+`*`+dr(e===47?e:Pr())}function Kr(e){for(;!Rr(Fr());)Pr();return Lr(e,Dr)}function qr(e){return Br(Jr(``,null,null,null,[``],e=zr(e),0,[0],e))}function Jr(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=Pr()){case 40:if(m!=108&&vr(C,d-1)==58){_r(C+=gr(Vr(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=Vr(v);break;case 9:case 10:case 13:case 32:C+=Hr(m);break;case 92:C+=Ur(Ir()-1,7);continue;case 47:switch(Fr()){case 42:case 47:Sr(Xr(Gr(Pr(),Ir()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=br(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=gr(C,/\f/g,``)),p>0&&br(C)-d&&Sr(p>32?Zr(C+`;`,r,n,d-1):Zr(gr(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(Sr(S=Yr(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123){if(u===0)Jr(C,t,S,S,b,a,d,s,x);else switch(f===99&&vr(C,3)===110?100:f){case 100:case 108:case 109:case 115:Jr(e,S,S,r&&Sr(Yr(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:Jr(C,S,S,S,[``],x,0,s,x)}}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+br(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&Nr()==125)continue}switch(C+=dr(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(br(C)-1)*_,_=1;break;case 64:Fr()===45&&(C+=Vr(Pr())),f=Fr(),u=d=br(y=C+=Kr(Ir())),v++;break;case 45:m===45&&br(C)==2&&(h=0)}}return a}function Yr(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=xr(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=yr(e,d+1,d=ur(h=o[m])),y=e;_<p;++_)(y=mr(h>0?f[_]+` `+v:gr(v,/&\f/g,f[_])))&&(c[g++]=y);return Ar(e,t,n,i===0?ar:s,c,l,u)}function Xr(e,t,n){return Ar(e,t,n,ir,dr(Mr()),yr(e,2,-2),0)}function Zr(e,t,n,r){return Ar(e,t,n,or,yr(e,0,r),yr(e,r+1,-1),r)}function Qr(e,t){for(var n=``,r=xr(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function $r(e,t,n,r){switch(e.type){case lr:if(e.children.length)break;case sr:case or:return e.return=e.return||e.value;case ir:return``;case cr:return e.return=e.value+`{`+Qr(e.children,r)+`}`;case ar:e.value=e.props.join(`,`)}return br(n=Qr(e.children,r))?e.return=e.value+`{`+n+`}`:``}function ei(e){var t=xr(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 ti(e){return function(t){t.root||(t=t.return)&&e(t)}}function ni(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var ri=function(e,t,n){for(var r=0,i=0;r=i,i=Fr(),r===38&&i===12&&(t[n]=1),!Rr(i);)Pr();return Lr(e,Dr)},ii=function(e,t){var n=-1,r=44;do switch(Rr(r)){case 0:r===38&&Fr()===12&&(t[n]=1),e[n]+=ri(Dr-1,t,n);break;case 2:e[n]+=Vr(r);break;case 4:if(r===44){e[++n]=Fr()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=dr(r)}while(r=Pr());return e},ai=function(e,t){return Br(ii(zr(e),t))},oi=new WeakMap,si=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||oi.get(n))&&!r){oi.set(e,!0);for(var i=[],a=ai(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]}}},ci=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function li(e,t){switch(pr(e,t)){case 5103:return rr+`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 rr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return rr+e+nr+e+tr+e+e;case 6828:case 4268:return rr+e+tr+e+e;case 6165:return rr+e+tr+`flex-`+e+e;case 5187:return rr+e+gr(e,/(\w+).+(:[^]+)/,rr+`box-$1$2`+tr+`flex-$1$2`)+e;case 5443:return rr+e+tr+`flex-item-`+gr(e,/flex-|-self/,``)+e;case 4675:return rr+e+tr+`flex-line-pack`+gr(e,/align-content|flex-|-self/,``)+e;case 5548:return rr+e+tr+gr(e,`shrink`,`negative`)+e;case 5292:return rr+e+tr+gr(e,`basis`,`preferred-size`)+e;case 6060:return rr+`box-`+gr(e,`-grow`,``)+rr+e+tr+gr(e,`grow`,`positive`)+e;case 4554:return rr+gr(e,/([^-])(transform)/g,`$1`+rr+`$2`)+e;case 6187:return gr(gr(gr(e,/(zoom-|grab)/,rr+`$1`),/(image-set)/,rr+`$1`),e,``)+e;case 5495:case 3959:return gr(e,/(image-set\([^]*)/,rr+"$1$`$1");case 4968:return gr(gr(e,/(.+:)(flex-)?(.*)/,rr+`box-pack:$3`+tr+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+rr+e+e;case 4095:case 3583:case 4068:case 2532:return gr(e,/(.+)-inline(.+)/,rr+`$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(br(e)-1-t>6)switch(vr(e,t+1)){case 109:if(vr(e,t+4)!==45)break;case 102:return gr(e,/(.+:)(.+)-([^]+)/,`$1`+rr+`$2-$3$1`+nr+(vr(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~_r(e,`stretch`)?li(gr(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(vr(e,t+1)!==115)break;case 6444:switch(vr(e,br(e)-3-(~_r(e,`!important`)&&10))){case 107:return gr(e,`:`,`:`+rr)+e;case 101:return gr(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+rr+(vr(e,14)===45?`inline-`:``)+`box$3$1`+rr+`$2$3$1`+tr+`$2box$3`)+e}break;case 5936:switch(vr(e,t+11)){case 114:return rr+e+tr+gr(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return rr+e+tr+gr(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return rr+e+tr+gr(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return rr+e+tr+e+e}return e}var ui=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case or:e.return=li(e.value,e.length);break;case cr:return Qr([jr(e,{value:gr(e.value,`@`,`@`+rr)})],r);case ar:if(e.length)return Cr(e.props,function(t){switch(hr(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return Qr([jr(e,{props:[gr(t,/:(read-\w+)/,`:`+nr+`$1`)]})],r);case`::placeholder`:return Qr([jr(e,{props:[gr(t,/:(plac\w+)/,`:`+rr+`input-$1`)]}),jr(e,{props:[gr(t,/:(plac\w+)/,`:`+nr+`$1`)]}),jr(e,{props:[gr(t,/:(plac\w+)/,tr+`input-$1`)]})],r)}return``})}}],di=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||ui,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=[si,ci],l,u=[$r,ti(function(e){l.insert(e)})],d=ei(c.concat(r,u)),f=function(e){return Qr(qr(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 er({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},fi=n((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})),pi=n(((e,t)=>{t.exports=fi()})),mi=n(((e,t)=>{var n=pi(),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}));function hi(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var gi=function(e,t,n){var r=e.key+`-`+t.name;n===!1&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},_i=function(e,t,n){gi(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 vi(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 yi={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},bi=/[A-Z]|^ms/g,xi=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Si=function(e){return e.charCodeAt(1)===45},Ci=function(e){return e!=null&&typeof e!=`boolean`},wi=ni(function(e){return Si(e)?e:e.replace(bi,`-$&`).toLowerCase()}),Ti=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(xi,function(e,t,n){return ki={name:t,styles:n,next:ki},t})}return yi[e]!==1&&!Si(e)&&typeof t==`number`&&t!==0?t+`px`:t};function Ei(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 ki={name:i.name,styles:i.styles,next:ki},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)ki={name:o.name,styles:o.styles,next:ki},o=o.next;return a.styles+`;`}return Di(e,t,n);case`function`:if(e!==void 0){var s=ki,c=n(e);return ki=s,Ei(e,t,c)}}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function Di(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Ei(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]+`}`:Ci(s)&&(r+=wi(a)+`:`+Ti(a,s)+`;`)}else if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)Ci(o[c])&&(r+=wi(a)+`:`+Ti(a,o[c])+`;`);else{var l=Ei(e,t,o);switch(a){case`animation`:case`animationName`:r+=wi(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}return r}var Oi=/label:\s*([^\s;{]+)\s*(;|$)/g,ki;function Ai(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=``;ki=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,i+=Ei(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=Ei(n,t,e[o]),r&&(i+=a[o]);Oi.lastIndex=0;for(var s=``,c;(c=Oi.exec(i))!==null;)s+=`-`+c[1];return{name:vi(i)+s,styles:i,next:ki}}var ji=function(e){return e()},Mi=S.useInsertionEffect?S.useInsertionEffect:!1,Ni=Mi||ji,Pi=Mi||S.useLayoutEffect,Fi=S.createContext(typeof HTMLElement<`u`?di({key:`css`}):null),Ii=Fi.Provider,Li=function(e){return(0,S.forwardRef)(function(t,n){return e(t,(0,S.useContext)(Fi),n)})},Ri=S.createContext({}),zi={}.hasOwnProperty,Bi=`__EMOTION_TYPE_PLEASE_DO_NOT_USE__`,Vi=function(e,t){var n={};for(var r in t)zi.call(t,r)&&(n[r]=t[r]);return n[Bi]=e,n},Hi=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return gi(t,n,r),Ni(function(){return _i(t,n,r)}),null},Ui=Li(function(e,t,n){var r=e.css;typeof r==`string`&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Bi],a=[r],o=``;typeof e.className==`string`?o=hi(t.registered,a,e.className):e.className!=null&&(o=e.className+` `);var s=Ai(a,void 0,S.useContext(Ri));o+=t.key+`-`+s.name;var c={};for(var l in e)zi.call(e,l)&&l!==`css`&&l!==Bi&&(c[l]=e[l]);return c.className=o,n&&(c.ref=n),S.createElement(S.Fragment,null,S.createElement(Hi,{cache:t,serialized:s,isStringTag:typeof i==`string`}),S.createElement(i,c))});mi();var Wi=function(e,t){var n=arguments;if(t==null||!zi.call(t,`css`))return S.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=Ui,i[1]=Vi(e,t);for(var a=2;a<r;a++)i[a]=n[a];return S.createElement.apply(null,i)};(function(e){var t;t||=e.JSX||={}})(Wi||={});var Gi=Li(function(e,t){var n=e.styles,r=Ai([n],void 0,S.useContext(Ri)),i=S.useRef();return Pi(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]),Pi(function(){var e=i.current,n=e[0];if(e[1]){e[1]=!1;return}r.next!==void 0&&_i(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 Ki(){return Ai([...arguments])}function qi(){var e=Ki.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 Ji=/^((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)-.*))$/,Yi=ni(function(e){return Ji.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Xi=function(e){return e!==`theme`},Zi=function(e){return typeof e==`string`&&e.charCodeAt(0)>96?Yi:Xi},Qi=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},$i=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return gi(t,n,r),Ni(function(){return _i(t,n,r)}),null},ea=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=Qi(t,n,r),c=s||Zi(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=Li(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=S.useContext(Ri)}typeof e.className==`string`?a=hi(t.registered,u,e.className):e.className!=null&&(a=e.className+` `);var m=Ai(d.concat(u),t.registered,f);a+=t.key+`-`+m.name,o!==void 0&&(a+=` `+o);var h=l&&s===void 0?Zi(r):c,g={};for(var _ in e)l&&_===`as`||h(_)&&(g[_]=e[_]);return g.className=a,n&&(g.ref=n),S.createElement(S.Fragment,null,S.createElement($i,{cache:t,serialized:m,isStringTag:typeof r==`string`}),S.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}}),h.withComponent=function(t,r){return e(t,Zn({},n,r,{shouldForwardProp:Qi(h,r,!0)})).apply(void 0,d)},h}},ta=`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(`.`),na=ea.bind(null);ta.forEach(function(e){na[e]=na(e)});var ra=n((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})),ia=n(((e,t)=>{t.exports=ra()})),z=ia();function aa(e){return e==null||Object.keys(e).length===0}function oa(e){let{styles:t,defaultTheme:n={}}=e;return(0,z.jsx)(Gi,{styles:typeof t==`function`?e=>t(aa(e)?n:e):t})}function sa(e,t){return na(e,t)}function ca(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var la=[];function ua(e){return la[0]=e,Ai(la)}var da=n((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))}})),fa=n(((e,t)=>{t.exports=da()}))();function pa(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 ma(e){if(S.isValidElement(e)||(0,fa.isValidElementType)(e)||!pa(e))return e;let t={};return Object.keys(e).forEach(n=>{t[n]=ma(e[n])}),t}function ha(e,t,n={clone:!0}){let r=n.clone?{...e}:e;return pa(e)&&pa(t)&&Object.keys(t).forEach(i=>{S.isValidElement(t[i])||(0,fa.isValidElementType)(t[i])?r[i]=t[i]:pa(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&pa(e[i])?r[i]=ha(e[i],t[i],n):n.clone?r[i]=pa(t[i])?ma(t[i]):t[i]:r[i]=t[i]}),r}var ga=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 _a(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n=`px`,step:r=5,...i}=e,a=ga(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 va=/min-width:\s*([0-9.]+)/;function ya(e,t){if(!e.containerQueries||!ba(t))return t;let n=[];for(let e in t)e.startsWith(`@container`)&&n.push(e);n.sort((e,t)=>+(e.match(va)?.[1]||0)-(t.match(va)?.[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 ba(e){for(let t in e)if(t.startsWith(`@container`))return!0;return!1}function xa(e,t){return t===`@`||t.startsWith(`@`)&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}function Sa(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 Ca(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 wa={borderRadius:4};function Ta(e){if(e==null)return!0;for(let t in e)return!1;return!0}function Ea(e,t){let n=Array.isArray(t),r=Array.isArray(e);return ja(t)?t:Ma(e)?Na(t):n&&r?ka(e,t):n===r?Pa(e,t):Na(t)}function Da(e){let t=0,n=e.length,r=Array(n);for(t=0;t<n;t+=1)r[t]=Na(e[t]);return r}function Oa(e){let t={};for(let n in e)n!==`__proto__`&&n!==`constructor`&&n!==`prototype`&&(t[n]=Na(e[n]));return t}function ka(e,t){let n=e.length;for(let r=0;r<t.length;r+=1)e[n+r]=Na(t[r]);return e}function Aa(e){return typeof e==`object`&&!!e&&!(e instanceof RegExp)&&!(e instanceof Date)}function ja(e){return typeof e!=`object`||!e}function Ma(e){return typeof e!=`object`||!e||e instanceof RegExp||e instanceof Date}function Na(e){return Aa(e)?Array.isArray(e)?Da(e):Oa(e):e}function Pa(e,t){for(let n in t)n!==`__proto__`&&n!==`constructor`&&n!==`prototype`&&(e[n]=n in e?Ea(e[n],t[n]):Na(t[n]));return e}var Fa={},Ia={xs:0,sm:600,md:900,lg:1200,xl:1536},La=_a({values:Ia}),Ra={containerQueries:e=>({up:t=>{let n=typeof t==`number`?t:Ia[t]||t;return typeof n==`number`&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function za(e,t,n){let r={};return Ba(r,e.theme,t,(e,t,i)=>{let a=n(t,i);e?r[e]=a:Ea(r,a)})}function Ba(e,t,n,r){if(t??=Fa,Array.isArray(n)){let i=t.breakpoints??La;for(let t=0;t<n.length;t+=1)Va(e,i.up(i.keys[t]),n[t],void 0,r);return e}if(typeof n==`object`){let i=t.breakpoints??La,a=i.values??Ia;for(let o in n)if(xa(i.keys,o)){let i=Sa(t.containerQueries?t:Ra,o);i&&Va(e,i,n[o],o,r)}else if(o in a)Va(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 Va(e,t,n,r,i){e[t]??={},i(t,n,r)}function Ha(e=La){let{internal_mediaKeys:t}=e,n={};for(let e=0;e<t.length;e+=1)n[t[e]]={};return n}function Ua(e,t){let n=e.internal_mediaKeys;for(let e=0;e<n.length;e+=1){let r=n[e];Ta(t[r])&&delete t[r]}return t}function Wa(e,...t){return Ua(e,[Ha(e),...t].reduce((e,t)=>ha(e,t),{}))}function Ga(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 Ka(e){let{values:t,breakpoints:n,base:r}=e,i=r||Ga(t,n),a=Object.keys(i);if(a.length===0)return t;let o;return a.reduce((e,n,r)=>{if(Array.isArray(t))e[n]=t[r]==null?t[o]:t[r],o=r;else if(typeof t==`object`&&t){let r=t;e[n]=r[n]==null?r[o]:r[n],o=n}else e[n]=t;return e},{})}function qa(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(xa(e.keys,n[t]))return!0}return!1}function Ja(e){if(typeof e!=`string`)throw Error(Yn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ya(e,t,n,r){let i;return i=typeof e==`function`?e(n):Array.isArray(e)?e[n]||n:typeof n==`string`&&Xa(e,n,!0,r)||n,t&&(i=t(i,n,e)),i}function Xa(e,t,n=!0,r=void 0){if(!e||!t)return null;let i=t.split(`.`);if(e.vars&&n){let t=Za(e.vars,i,r);if(t!=null)return t}return Za(e,i,r)}function Za(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"?``:Ja(e)}`;return r?.[i]}return i}function Qa(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=Xa(o,r)||{};return za(e,a,e=>{let r=Ya(s,i,e,t);return n===!1?r:{[n]:r}})};return a.propTypes={},a.filterProps=[t],a}var $a={internal_cache:{}},eo={m:`margin`,p:`padding`},to={t:`Top`,r:`Right`,b:`Bottom`,l:`Left`,x:[`Left`,`Right`],y:[`Top`,`Bottom`]},no={marginX:`mx`,marginY:`my`,paddingX:`px`,paddingY:`py`},ro={};for(let e in eo)ro[e]=[eo[e]];for(let e in eo)for(let t in to){let n=eo[e],r=to[t],i=Array.isArray(r)?r.map(e=>n+e):[n+r];ro[e+t]=i}for(let e in no)ro[e]=ro[no[e]];var io=new Set([`m`,`mt`,`mr`,`mb`,`ml`,`mx`,`my`,`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginX`,`marginY`,`marginInline`,`marginInlineStart`,`marginInlineEnd`,`marginBlock`,`marginBlockStart`,`marginBlockEnd`]),ao=new Set([`p`,`pt`,`pr`,`pb`,`pl`,`px`,`py`,`padding`,`paddingTop`,`paddingRight`,`paddingBottom`,`paddingLeft`,`paddingX`,`paddingY`,`paddingInline`,`paddingInlineStart`,`paddingInlineEnd`,`paddingBlock`,`paddingBlockStart`,`paddingBlockEnd`]);[...io,...ao];function oo(e,t,n,r){let i=Xa(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 so(e){return oo(e,`spacing`,8,`spacing`)}function co(e,t){return typeof t==`string`||t==null?t:e(t)}var lo=[``];function uo(e,t){let n=e.theme??$a,r=n?.internal_cache?.unarySpacing??so(n),i={};for(let n in e){if(!t.has(n))continue;let a=ro[n]??(lo[0]=n,lo),o=e[n];Ba(i,e.theme,o,(e,t)=>{let n=e?i[e]:i;for(let e=0;e<a.length;e+=1)n[a[e]]=co(r,t)})}return i}function fo(e){return uo(e,io)}fo.propTypes={},fo.filterProps=io;var po=fo;function mo(e){return uo(e,ao)}mo.propTypes={},mo.filterProps=ao;var ho=mo;function go(e=8,t=so({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 _o(...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]&&Ea(n,t[r](e));return n};return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function vo(e){return typeof e==`number`?`${e}px solid`:e}function yo(e,t){return Qa({prop:e,themeKey:`borders`,transform:t})}var bo=yo(`border`,vo),xo=yo(`borderTop`,vo),So=yo(`borderRight`,vo),Co=yo(`borderBottom`,vo),wo=yo(`borderLeft`,vo),To=yo(`borderColor`),Eo=yo(`borderTopColor`),Do=yo(`borderRightColor`),Oo=yo(`borderBottomColor`),ko=yo(`borderLeftColor`),Ao=yo(`outline`,vo),jo=yo(`outlineColor`),Mo=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=oo(e.theme,`shape.borderRadius`,4,`borderRadius`);return za(e,e.borderRadius,e=>({borderRadius:co(t,e)}))}return null};Mo.propTypes={},Mo.filterProps=[`borderRadius`],_o(bo,xo,So,Co,wo,To,Eo,Do,Oo,ko,Mo,Ao,jo);var No=e=>{if(e.gap!==void 0&&e.gap!==null){let t=oo(e.theme,`spacing`,8,`gap`);return za(e,e.gap,e=>({gap:co(t,e)}))}return null};No.propTypes={},No.filterProps=[`gap`];var Po=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=oo(e.theme,`spacing`,8,`columnGap`);return za(e,e.columnGap,e=>({columnGap:co(t,e)}))}return null};Po.propTypes={},Po.filterProps=[`columnGap`];var Fo=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=oo(e.theme,`spacing`,8,`rowGap`);return za(e,e.rowGap,e=>({rowGap:co(t,e)}))}return null};Fo.propTypes={},Fo.filterProps=[`rowGap`],_o(No,Po,Fo,Qa({prop:`gridColumn`}),Qa({prop:`gridRow`}),Qa({prop:`gridAutoFlow`}),Qa({prop:`gridAutoColumns`}),Qa({prop:`gridAutoRows`}),Qa({prop:`gridTemplateColumns`}),Qa({prop:`gridTemplateRows`}),Qa({prop:`gridTemplateAreas`}),Qa({prop:`gridArea`}));function Io(e,t){return t===`grey`?t:e}_o(Qa({prop:`color`,themeKey:`palette`,transform:Io}),Qa({prop:`bgcolor`,cssProperty:`backgroundColor`,themeKey:`palette`,transform:Io}),Qa({prop:`backgroundColor`,themeKey:`palette`,transform:Io}));var Lo=Ia;function Ro(e){return e<=1&&e!==0?`${e*100}%`:e}var zo=Qa({prop:`width`,transform:Ro}),Bo=e=>e.maxWidth!==void 0&&e.maxWidth!==null?za(e,e.maxWidth,t=>{let n=e.theme?.breakpoints?.values?.[t]||Lo[t];return n?e.theme?.breakpoints?.unit===`px`?{maxWidth:n}:{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:Ro(t)}}):null;Bo.filterProps=[`maxWidth`];var Vo=Qa({prop:`minWidth`,transform:Ro}),Ho=Qa({prop:`height`,transform:Ro}),Uo=Qa({prop:`maxHeight`,transform:Ro}),Wo=Qa({prop:`minHeight`,transform:Ro});Qa({prop:`size`,cssProperty:`width`,transform:Ro}),Qa({prop:`size`,cssProperty:`height`,transform:Ro}),_o(zo,Bo,Vo,Ho,Uo,Wo,Qa({prop:`boxSizing`}));var Go={border:{themeKey:`borders`,transform:vo},borderTop:{themeKey:`borders`,transform:vo},borderRight:{themeKey:`borders`,transform:vo},borderBottom:{themeKey:`borders`,transform:vo},borderLeft:{themeKey:`borders`,transform:vo},borderColor:{themeKey:`palette`},borderTopColor:{themeKey:`palette`},borderRightColor:{themeKey:`palette`},borderBottomColor:{themeKey:`palette`},borderLeftColor:{themeKey:`palette`},outline:{themeKey:`borders`,transform:vo},outlineColor:{themeKey:`palette`},borderRadius:{themeKey:`shape.borderRadius`,style:Mo},color:{themeKey:`palette`,transform:Io},bgcolor:{themeKey:`palette`,cssProperty:`backgroundColor`,transform:Io},backgroundColor:{themeKey:`palette`,transform:Io},p:{style:ho},pt:{style:ho},pr:{style:ho},pb:{style:ho},pl:{style:ho},px:{style:ho},py:{style:ho},padding:{style:ho},paddingTop:{style:ho},paddingRight:{style:ho},paddingBottom:{style:ho},paddingLeft:{style:ho},paddingX:{style:ho},paddingY:{style:ho},paddingInline:{style:ho},paddingInlineStart:{style:ho},paddingInlineEnd:{style:ho},paddingBlock:{style:ho},paddingBlockStart:{style:ho},paddingBlockEnd:{style:ho},m:{style:po},mt:{style:po},mr:{style:po},mb:{style:po},ml:{style:po},mx:{style:po},my:{style:po},margin:{style:po},marginTop:{style:po},marginRight:{style:po},marginBottom:{style:po},marginLeft:{style:po},marginX:{style:po},marginY:{style:po},marginInline:{style:po},marginInlineStart:{style:po},marginInlineEnd:{style:po},marginBlock:{style:po},marginBlockStart:{style:po},marginBlockEnd:{style:po},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:No},rowGap:{style:Fo},columnGap:{style:Po},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:`zIndex`},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:`shadows`},width:{transform:Ro},maxWidth:{style:Bo},minWidth:{transform:Ro},height:{transform:Ro},maxHeight:{transform:Ro},minHeight:{transform:Ro},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`}},Ko={};function qo(){function e(t){if(!t.sx)return null;let{sx:n,theme:r=Ko,nested:i}=t,a=r.unstable_sxConfig??Go,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??La,l=Ha(c);for(let n in s){let i=Xo(s[n],r);if(i!=null){if(typeof i!=`object`){Yo(l,n,i,r,a);continue}if(a[n]){Yo(l,n,i,r,a);continue}qa(c,i)?Ba(l,t.theme,i,(e,t)=>{l[e][n]=t}):(o.sx=i,l[n]=e(o))}}return!i&&r.modularCssLayers?{"@layer sx":ya(r,Ua(c,l))}:ya(r,Ua(c,l))}return Array.isArray(n)?n.map(s):s(n)}return e.filterProps=[`sx`],e}var Jo=qo();function Yo(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){Ea(e,s({[t]:n,theme:r}));return}let{cssProperty:c=t,transform:l}=a,u=Xa(r,o);Ba(e,r,n,(n,r)=>{let i=Ya(u,l,r,t);c===!1?Ea(n?e[n]:e,i):n?e[n][c]=i:e[c]=i})}function Xo(e,t){return typeof e==`function`?e(t):e}function Zo(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 Qo(e={},...t){let{breakpoints:n={},palette:r={},spacing:i,shape:a={},...o}=e,s=_a(n),c=go(i),l=ha({breakpoints:s,direction:`ltr`,components:{},palette:{mode:`light`,...r},spacing:c,shape:{...wa,...a}},o);return l=Ca(l),l.applyStyles=Zo,l=t.reduce((e,t)=>ha(e,t),l),l.unstable_sxConfig={...Go,...o?.unstable_sxConfig},l.unstable_sx=function(e){return Jo({sx:e,theme:this})},l.internal_cache={},l}function $o(e){return Object.keys(e).length===0}function es(e=null){let t=S.useContext(Ri);return!t||$o(t)?e:t}var ts=Qo();function ns(e=ts){return es(e)}function rs(e){let t=ua(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function is({styles:e,themeId:t,defaultTheme:n={}}){let r=ns(n),i=t&&r[t]||r,a=typeof e==`function`?e(i):e;return i.modularCssLayers&&(a=Array.isArray(a)?a.map(e=>rs(typeof e==`function`?e(i):e)):rs(a)),(0,z.jsx)(oa,{styles:a})}var as=e=>e,ss=(()=>{let e=as;return{configure(t){e=t},generate(t){return e(t)},reset(){e=as}}})();function cs(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=cs(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function B(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=cs(e))&&(r&&(r+=` `),r+=t);return r}function ls(e={}){let{themeId:t,defaultTheme:n,defaultClassName:r=`MuiBox-root`,generateClassName:i}=e,a=sa(`div`,{shouldForwardProp:e=>e!==`theme`&&e!==`sx`&&e!==`as`})(Jo);return S.forwardRef(function(e,o){let s=ns(n),{className:c,component:l=`div`,...u}=e;return(0,z.jsx)(a,{as:l,ref:o,className:B(c,i?i(r):r),theme:t&&s[t]||s,...u})})}var us={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 V(e,t,n=`Mui`){let r=us[t];return r?`${n}-${r}`:`${ss.generate(e)}-${t}`}function H(e,t,n=`Mui`){let r={};return t.forEach(t=>{r[t]=V(e,t,n)}),r}function ds(e){let{variants:t,...n}=e,r={variants:t,style:ua(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{typeof e.style!=`function`&&(e.style=ua(e.style))}),r}var fs=Qo();function ps(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}function ms(e,t){return t&&e&&typeof e==`object`&&e.styles&&!e.styles.startsWith(`@layer`)&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function hs(e){return e?(t,n)=>n[e]:null}function gs(e,t,n){e.theme=Ta(e.theme)?n:e.theme[t]||e.theme}function _s(e,t,n){let r=typeof t==`function`?t(e):t;if(Array.isArray(r))return r.flatMap(t=>_s(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?ms(r.style,n):r.style;else{let{variants:e,...i}=r;t=n?ms(ua(i),n):i}return vs(e,r.variants,[t],n)}return r?.isProcessed?n?ms(ua(r.style),n):r.style:n?ms(ua(r),n):r}function vs(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?ms(ua(o.style(i)),r):o.style(i))):n.push(r?ms(ua(o.style),r):o.style)}return n}function ys(e={}){let{themeId:t,defaultTheme:n=fs,rootShouldForwardProp:r=ps,slotShouldForwardProp:i=ps}=e;function a(e){gs(e,t,n)}return(e,t={})=>{ca(e,e=>e.filter(e=>e!==Jo));let{name:n,slot:o,skipVariantsResolver:s,skipSx:c,overridesResolver:l=hs(xs(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=ps;o===`Root`||o===`root`?m=r:o?m=i:bs(e)&&(m=void 0);let h=sa(e,{shouldForwardProp:m,label:void 0,...u}),g=e=>{if(e.__emotion_real===e)return e;if(typeof e==`function`)return function(t){return _s(t,e,t.theme.modularCssLayers?d:void 0)};if(pa(e)){let t=ds(e);return function(e){return t.variants?_s(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?ms(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]=_s(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?vs(e,t,[],e.theme.modularCssLayers?`theme`:void 0):null}),p||o.push(Jo),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=[...r,...i,...o],c=h(...s);return e.muiName&&(c.muiName=e.muiName),c};return h.withConfig&&(_.withConfig=h.withConfig),_}}function bs(e){return typeof e==`string`&&e.charCodeAt(0)>96}function xs(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}var Ss=ys();function Cs(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,s=i[t],c=o[t];typeof s==`function`||typeof c==`function`?r[a][t]=(...e)=>Cs((typeof s==`function`?s(...e):s)??{},(typeof c==`function`?c(...e):c)??{},n):r[a][t]=Cs(s??{},c??{},n)}}}else a===`className`&&n&&t.className!==void 0?r.className=B(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 ws(e){let{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Cs(t.components[n].defaultProps,r)}function Ts(e){let{props:t,name:n,defaultTheme:r,themeId:i}=e,a=ns(r);return i&&(a=a[i]||a),ws({theme:a,name:n,props:t})}var Es=typeof window<`u`?S.useLayoutEffect:S.useEffect;function Ds(e,t,n,r,i){let[a,o]=S.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Es(()=>{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 Os={...S}.useSyncExternalStore;function ks(e,t,n,r,i){let a=S.useCallback(()=>t,[t]),o=S.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]=S.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 Os(c,s,o)}function As(e={}){let{themeId:t}=e;return function(e,n={}){let r=es();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}=ws({name:`MuiUseMediaQuery`,props:n,theme:r}),l=S.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
+ `)),(Os===void 0?Ds:ks)(u,a,l,s,c)}}As();function js(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function Ms(e,t=0,n=1){return js(e,t,n)}function Ns(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 Ps(e){if(e.type)return e;if(e.charAt(0)===`#`)return Ps(Ns(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 Fs=e=>{let t=Ps(e);return t.values.slice(0,3).map((e,n)=>t.type.includes(`hsl`)&&n!==0?`${e}%`:e).join(` `)},Is=(e,t)=>{try{return Fs(e)}catch{return e}};function Ls(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 Rs(e){e=Ps(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])),Ls({type:s,values:c})}function zs(e){e=Ps(e);let t=e.type===`hsl`||e.type===`hsla`?Ps(Rs(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 Bs(e,t){let n=zs(e),r=zs(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function U(e,t){return e=Ps(e),t=Ms(t),(e.type===`rgb`||e.type===`hsl`)&&(e.type+=`a`),e.type===`color`?e.values[3]=`/${t}`:e.values[3]=t,Ls(e)}function Vs(e,t,n){try{return U(e,t)}catch{return e}}function Hs(e,t){if(e=Ps(e),t=Ms(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 Ls(e)}function Us(e,t,n){try{return Hs(e,t)}catch{return e}}function Ws(e,t){if(e=Ps(e),t=Ms(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 Ls(e)}function Gs(e,t,n){try{return Ws(e,t)}catch{return e}}function Ks(e,t=.15){return zs(e)>.5?Hs(e,t):Ws(e,t)}function qs(e,t,n){try{return Ks(e,t)}catch{return e}}var Js=S.createContext(null);function Ys(){return S.useContext(Js)}var Xs=typeof Symbol==`function`&&Symbol.for?Symbol.for(`mui.nested`):`__THEME_NESTED__`;function Zs(e,t){return typeof t==`function`?t(e):{...e,...t}}function Qs(e){let{children:t,theme:n}=e,r=Ys(),i=S.useMemo(()=>{let e=r===null?{...n}:Zs(r,n);return e!=null&&(e[Xs]=r!==null),e},[n,r]);return(0,z.jsx)(Js.Provider,{value:i,children:t})}var $s=S.createContext();function ec({value:e,...t}){return(0,z.jsx)($s.Provider,{value:e??!0,...t})}var tc=()=>S.useContext($s)??!1,nc=S.createContext(void 0);function rc({value:e,children:t}){return(0,z.jsx)(nc.Provider,{value:e,children:t})}function ic(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?Cs(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?Cs(i,r,t.components.mergeClassNameAndStyle):r}function ac({props:e,name:t}){return ic({props:e,name:t,theme:{components:S.useContext(nc)}})}var oc=0;function sc(e){let[t,n]=S.useState(e),r=e||t;return S.useEffect(()=>{t??(oc+=1,n(`mui-${oc}`))},[t]),r}var cc={...S}.useId;function lc(e){if(cc!==void 0){let t=cc();return e??t}return sc(e)}function uc(e){let t=es(),n=lc()||``,{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};`,Es(()=>{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,z.jsx)(is,{styles:i}):null}var dc={};function fc(e,t,n,r=!1){return S.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 pc(e){let{children:t,theme:n,themeId:r}=e,i=es(dc),a=Ys()||dc,o=fc(r,i,n),s=fc(r,a,n,!0),c=(r?o[r]:o).direction===`rtl`,l=uc(o);return(0,z.jsx)(Qs,{theme:s,children:(0,z.jsx)(Ri.Provider,{value:o,children:(0,z.jsx)(ec,{value:c,children:(0,z.jsxs)(rc,{value:r?o[r].components:o.components,children:[l,t]})})})})}var mc={theme:void 0};function hc(e){let t,n;return function(r){let i=t;return(i===void 0||r.theme!==n)&&(mc.theme=r.theme,i=ds(e(mc)),t=i,n=r.theme),i}}var gc=`mode`,_c=`color-scheme`,vc=`data-color-scheme`;({...S}).useSyncExternalStore;function yc(e){let{defaultMode:t=`system`,defaultLightColorScheme:n=`light`,defaultDarkColorScheme:r=`dark`,modeStorageKey:i=gc,colorSchemeStorageKey:a=_c,attribute:o=vc,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,z.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 bc(){}var xc=({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 bc;let r=t=>{let r=t.newValue;t.key===e&&n(r)};return t.addEventListener(`storage`,r),()=>{t.removeEventListener(`storage`,r)}}});function Sc(){}function Cc(e){if(typeof window<`u`&&typeof window.matchMedia==`function`&&e===`system`)return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function wc(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 Tc(e){return wc(e,t=>{if(t===`light`)return e.lightColorScheme;if(t===`dark`)return e.darkColorScheme})}function Ec(e){let{defaultMode:t=`light`,defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:a=gc,colorSchemeStorageKey:o=_c,storageWindow:s=typeof window>`u`?void 0:window,storageManager:c=xc,noSsr:l=!1}=e,u=i.join(`,`),d=i.length>1,f=S.useMemo(()=>c?.({key:a,storageWindow:s}),[c,a,s]),p=S.useMemo(()=>c?.({key:`${o}-light`,storageWindow:s}),[c,o,s]),m=S.useMemo(()=>c?.({key:`${o}-dark`,storageWindow:s}),[c,o,s]),[h,g]=S.useState(()=>{let e=f?.get(t)||t,i=p?.get(n)||n,a=m?.get(r)||r;return{mode:e,systemMode:Cc(e),lightColorScheme:i,darkColorScheme:a}}),[_,v]=S.useState(l||!d);S.useEffect(()=>{v(!0)},[]);let y=Tc(h),b=S.useCallback(e=>{g(n=>{if(e===n.mode)return n;let r=e??t;return f?.set(r),{...n,mode:r,systemMode:Cc(r)}})},[f,t]),x=S.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 wc(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]),C=S.useCallback(e=>{h.mode===`system`&&g(t=>{let n=e?.matches?`dark`:`light`;return t.systemMode===n?t:{...t,systemMode:n}})},[h.mode]),w=S.useRef(C);return w.current=C,S.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]),S.useEffect(()=>{if(d){let e=f?.subscribe(e=>{(!e||[`light`,`dark`,`system`].includes(e))&&b(e||t)})||Sc,n=p?.subscribe(e=>{(!e||u.match(e))&&x({light:e})})||Sc,r=m?.subscribe(e=>{(!e||u.match(e))&&x({dark:e})})||Sc;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 Dc=`*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function Oc(e){let{themeId:t,theme:n={},modeStorageKey:r=gc,colorSchemeStorageKey:i=_c,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=S.createContext(void 0),u=()=>S.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:C=`system`,forceThemeRerender:w=!1,noSsr:T}=e,E=S.useRef(!1),D=Ys(),O=S.useContext(l),k=!!O&&!b,A=S.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(`,`),R=S.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:ae,darkColorScheme:oe,colorScheme:se,setColorScheme:ce}=Ec({supportedColorSchemes:R,defaultLightColorScheme:ee,defaultDarkColorScheme:te,modeStorageKey:p,colorSchemeStorageKey:m,defaultMode:N[ee]&&N[te]?C:N[M.defaultColorScheme]?.palette?.mode||M.palette?.mode,storageManager:g,storageWindow:_,noSsr:T}),le=ne,ue=se;k&&(le=O.mode,ue=O.colorScheme);let de=ue||M.defaultColorScheme;M.vars&&!w&&(de=M.defaultColorScheme);let fe=S.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()),de){let e=N[de];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,de,P,N,F]),pe=M.colorSchemeSelector;Es(()=>{if(ue&&y&&pe&&pe!==`media`){let e=pe,t=pe;if(e===`class`&&(t=`.%s`),e===`data`&&(t=`[data-%s]`),e?.startsWith(`data-`)&&!e.includes(`%s`)&&(t=`[${e}="%s"]`),t.startsWith(`.`))y.classList.remove(...R.map(e=>t.substring(1).replace(`%s`,e))),y.classList.add(t.substring(1).replace(`%s`,ue));else{let e=t.replace(`%s`,ue).match(/\[([^\]]+)\]/);if(e){let[t,n]=e[1].split(`=`);n||R.forEach(e=>{y.removeAttribute(t.replace(ue,e))}),y.setAttribute(t,n?n.replace(/"|'/g,``):``)}else y.setAttribute(t,ue)}}},[ue,pe,y,R]),S.useEffect(()=>{let e;if(h&&E.current&&v){let t=v.createElement(`style`);t.appendChild(v.createTextNode(Dc)),v.head.appendChild(t),window.getComputedStyle(v.body),e=setTimeout(()=>{v.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[ue,h,v]),S.useEffect(()=>(E.current=!0,()=>{E.current=!1}),[]);let me=S.useMemo(()=>({allColorSchemes:R,colorScheme:ue,darkColorScheme:oe,lightColorScheme:ae,mode:le,setColorScheme:ce,setMode:re,systemMode:ie}),[R,ue,oe,ae,le,ce,re,ie,fe.colorSchemeSelector]),he=!0;(x||M.cssVariables===!1||k&&D?.cssVarPrefix===F)&&(he=!1);let ge=(0,z.jsxs)(S.Fragment,{children:[(0,z.jsx)(pc,{themeId:j?t:void 0,theme:fe,children:c}),he&&(0,z.jsx)(oa,{styles:fe.generateStyleSheets?.()||[]})]});return k?ge:(0,z.jsx)(l.Provider,{value:me,children:ge})}let m=typeof o==`string`?o:o.light,h=typeof o==`string`?o:o.dark;return{CssVarsProvider:p,useColorScheme:u,getInitColorSchemeScript:e=>yc({colorSchemeStorageKey:i,defaultLightColorScheme:m,defaultDarkColorScheme:h,modeStorageKey:r,...e})}}function kc(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 Ac=new Set([`__proto__`,`constructor`,`prototype`]),jc=(e,t,n,r=[])=>{let i=e;for(let e=0;e<t.length;e+=1){let a=t[e];if(Ac.has(a))break;e===t.length-1?Array.isArray(i)?i[Number(a)]=n:i&&typeof i==`object`&&(i[a]=n):i&&typeof i==`object`&&(i[a]||(i[a]=r.includes(a)?[]:{}),i=i[a])}},Mc=(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)},Nc=(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 Pc(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},o={};return Mc(e,(e,t,s)=>{if((typeof t==`string`||typeof t==`number`)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:``}${e.join(`-`)}`,c=Nc(e,t);Object.assign(i,{[r]:c}),jc(a,e,`var(${r})`,s),jc(o,e,`var(${r}, ${c})`,s)}},e=>e[0]===`vars`),{css:i,vars:a,varsWithDefaults:o}}function Fc(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}=Pc(l,t),p=f,m={},{[c]:h,...g}=o;if(Object.entries(g||{}).forEach(([e,n])=>{let{vars:r,css:i,varsWithDefaults:a}=Pc(n,t);p=ha(p,a),m[e]={css:i,vars:r}}),h){let{css:e,vars:n,varsWithDefaults:r}=Pc(h,t);p=ha(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=ha(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 Ic(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 W(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 Lc=Qo(),Rc=Ss(`div`,{name:`MuiContainer`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`maxWidth${Ja(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),zc=e=>Ts({props:e,name:`MuiContainer`,defaultTheme:Lc}),Bc=(e,t)=>{let n=e=>V(t,e),{classes:r,fixed:i,disableGutters:a,maxWidth:o}=e;return W({root:[`root`,o&&`maxWidth${Ja(String(o))}`,i&&`fixed`,a&&`disableGutters`]},n,r)};function Vc(e={}){let{createStyledComponent:t=Rc,useThemeProps:n=zc,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 S.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},m=Bc(p,r);return(0,z.jsx)(i,{as:s,ownerState:p,className:B(m.root,o),ref:t,...f})})}function Hc(e,t){return S.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}var Uc=Qo(),Wc=Ss(`div`,{name:`MuiStack`,slot:`Root`});function Gc(e){return Ts({props:e,name:`MuiStack`,defaultTheme:Uc})}function Kc(e,t){let n=S.Children.toArray(e).filter(Boolean);return n.reduce((e,r,i)=>(e.push(r),i<n.length-1&&e.push(S.cloneElement(t,{key:`separator-${i}`})),e),[])}var qc=e=>({row:`Left`,"row-reverse":`Right`,column:`Top`,"column-reverse":`Bottom`})[e],Jc=({ownerState:e,theme:t})=>{let n={display:`flex`,flexDirection:`column`,...za({theme:t},Ka({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e}))};if(e.spacing){let r=so(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=Ka({values:e.direction,base:i}),o=Ka({values:e.spacing,base:i});typeof a==`object`&&Object.keys(a).forEach((e,t,n)=>{if(!a[e]){let r=t>0?a[n[t-1]]:`column`;a[e]=r}}),n=ha(n,za({theme:t},o,(t,n)=>e.useFlexGap?{gap:co(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${qc(n?a[n]:e.direction)}`]:co(r,t)}}))}return n=Wa(t.breakpoints,n),n};function Yc(e={}){let{createStyledComponent:t=Wc,useThemeProps:n=Gc,componentName:r=`MuiStack`}=e,i=()=>W({root:[`root`]},e=>V(r,e),{}),a=t(Jc);return S.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),p={direction:o,spacing:s,useFlexGap:d},m=i();return(0,z.jsx)(a,{as:r,ownerState:p,ref:t,className:B(m.root,u),...f,children:c?Kc(l,c):l})})}var Xc={black:`#000`,white:`#fff`},Zc={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`},Qc={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`},$c={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`},el={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`},tl={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`},nl={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`},rl={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 il(){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:Xc.white,default:Xc.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 al=il();function ol(){return{text:{primary:Xc.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:Xc.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 sl=ol();function cl(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=Ws(e.main,i):t===`dark`&&(e.dark=Hs(e.main,a)))}function ll(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 ul(e=`light`){return e===`dark`?{main:tl[200],light:tl[50],dark:tl[400]}:{main:tl[700],light:tl[400],dark:tl[800]}}function dl(e=`light`){return e===`dark`?{main:Qc[200],light:Qc[50],dark:Qc[400]}:{main:Qc[500],light:Qc[300],dark:Qc[700]}}function fl(e=`light`){return e===`dark`?{main:$c[500],light:$c[300],dark:$c[700]}:{main:$c[700],light:$c[400],dark:$c[800]}}function pl(e=`light`){return e===`dark`?{main:nl[400],light:nl[300],dark:nl[700]}:{main:nl[700],light:nl[500],dark:nl[900]}}function ml(e=`light`){return e===`dark`?{main:rl[400],light:rl[300],dark:rl[700]}:{main:rl[800],light:rl[500],dark:rl[900]}}function hl(e=`light`){return e===`dark`?{main:el[400],light:el[300],dark:el[700]}:{main:`#ed6c02`,light:el[500],dark:el[900]}}function gl(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function _l(e){let{mode:t=`light`,contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...a}=e,o=e.primary||ul(t),s=e.secondary||dl(t),c=e.error||fl(t),l=e.info||pl(t),u=e.success||ml(t),d=e.warning||hl(t);function f(e){return i?gl(e):Bs(e,sl.text.primary)>=n?sl.text.primary:al.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?(ll(i,e,`light`,a,r),ll(i,e,`dark`,o,r)):(cl(e,`light`,a,r),cl(e,`dark`,o,r)),e.contrastText||(e.contrastText=f(e.main)),e},m;return t===`light`?m=il():t===`dark`&&(m=ol()),ha({common:{...Xc},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:Zc,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...m},a)}var vl=`--_focusVisible-offset`,yl=`--_focusVisible-behavior`,bl=`--_focusVisible-shadow`,xl=`var(${vl}, 1)`,Sl=`var(${yl}, )`,Cl={[vl]:1,[yl]:`initial`};function wl(e){return{[bl]:e}}function Tl(e){return{[vl]:-e,[yl]:`inset`}}function El(e,t){return t.reduce((e,t)=>t&&`focusVisible`in t?ha(e,{focusVisible:t.focusVisible}):e,{focusVisible:e}).focusVisible}function Dl(e){return typeof e==`object`&&!!e&&typeof e.outlineOffset==`string`&&e.outlineOffset.includes(vl)}function Ol(e,t){return kl({outlineStyle:`solid`,outlineColor:t,outlineWidth:2,outlineOffset:2,boxShadow:`var(${bl}, 0 0)`,...e===!0?null:e})}function kl(e){let t=e.outlineOffset??0;(typeof t!=`string`||!t.includes(vl))&&(e.outlineOffset=`calc(${xl} * ${typeof t==`number`?`${t}px`:t})`);let n=new Set([`none`,`initial`,`inherit`,`unset`,`revert`,`revert-layer`]);return typeof e.boxShadow==`string`&&!n.has(e.boxShadow.trim().toLowerCase())&&!/\binset\b/.test(e.boxShadow)&&!e.boxShadow.includes(yl)&&(e.boxShadow=`${Sl} ${e.boxShadow}`),e}function Al(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 jl(e,t){return{toolbar:{minHeight:56,[e.up(`xs`)]:{"@media (orientation: landscape)":{minHeight:48}},[e.up(`sm`)]:{minHeight:64}},...t}}function Ml(e){return Math.round(e*1e5)/1e5}var Nl={textTransform:`uppercase`},Pl=`"Roboto", "Helvetica", "Arial", sans-serif`;function Fl(e,t){let{fontFamily:n=Pl,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===Pl?{letterSpacing:`${Ml(i/t)}em`}:{},...a,...l});return ha({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,Nl),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Nl),inherit:{fontFamily:`inherit`,fontWeight:`inherit`,fontSize:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},d,{clone:!1})}var Il=.2,Ll=.14,Rl=.12;function zl(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Il})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Ll})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Rl})`].join(`,`)}var Bl=[`none`,zl(0,2,1,-1,0,1,1,0,0,1,3,0),zl(0,3,1,-2,0,2,2,0,0,1,5,0),zl(0,3,3,-2,0,3,4,0,0,1,8,0),zl(0,2,4,-1,0,4,5,0,0,1,10,0),zl(0,3,5,-1,0,5,8,0,0,1,14,0),zl(0,3,5,-1,0,6,10,0,0,1,18,0),zl(0,4,5,-2,0,7,10,1,0,2,16,1),zl(0,5,5,-3,0,8,10,1,0,3,14,2),zl(0,5,6,-3,0,9,12,1,0,3,16,2),zl(0,6,6,-3,0,10,14,1,0,4,18,3),zl(0,6,7,-4,0,11,15,1,0,4,20,3),zl(0,7,8,-4,0,12,17,2,0,5,22,4),zl(0,7,8,-4,0,13,19,2,0,5,24,4),zl(0,7,9,-4,0,14,21,2,0,5,26,4),zl(0,8,9,-5,0,15,22,2,0,6,28,5),zl(0,8,10,-5,0,16,24,2,0,6,30,5),zl(0,8,11,-5,0,17,26,2,0,6,32,5),zl(0,9,11,-5,0,18,28,2,0,7,34,6),zl(0,9,12,-6,0,19,29,2,0,7,36,6),zl(0,10,13,-6,0,20,31,3,0,8,38,7),zl(0,10,13,-6,0,21,33,3,0,8,40,7),zl(0,10,14,-6,0,22,35,3,0,8,42,7),zl(0,11,14,-7,0,23,36,3,0,9,44,8),zl(0,11,15,-7,0,24,38,3,0,9,46,8)],Vl=[`all`],Hl={},Ul={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)`},Wl={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Gl(e){return`${Math.round(e)}ms`}function Kl(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function ql(e){let t={...e};delete t.reducedMotion;let n={...Ul,...t.easing},r={...Wl,...t.duration};return{getAutoHeightDuration:Kl,create:t.create??((e=Vl,t=Hl)=>{let{duration:i=r.standard,easing:a=n.easeInOut,delay:o=0,...s}=t;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${typeof i==`string`?i:Gl(i)} ${a} ${typeof o==`string`?o:Gl(o)}`).join(`,`)}),...t,easing:n,duration:r}}var Jl={};function Yl(e=Jl){return{reducedMotion:`never`,...e}}var Xl={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Zl(e){return pa(e)||e===void 0||typeof e==`string`||typeof e==`boolean`||typeof e==`number`||Array.isArray(e)}function Ql(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];!Zl(a)||i.startsWith(`unstable_`)||i.startsWith(`internal_`)?delete e[i]:pa(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.motion = { reducedMotion: 'never', ...theme.motion };
46
+ theme.transitions = createTransitions(theme.transitions || {});
47
+
48
+ export default theme;`}function $l(e){return typeof e==`number`?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}var eu=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 tu(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})`:U(t,eu(n))},lighten(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${$l(n)})`:Ws(t,n)},darken(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${$l(n)})`:Hs(t,n)}})}function nu(e={},...t){let{breakpoints:n,mixins:r={},spacing:i,palette:a={},motion:o={},transitions:s={},typography:c={},shape:l,colorSpace:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw Error(Yn(22));let f=_l({...a,colorSpace:u}),p=Qo(e),m=ha(p,{mixins:jl(p.breakpoints,r),palette:f,shadows:Bl.slice(),typography:Fl(f,c),motion:Yl(o),transitions:ql(s),zIndex:{...Xl}});return m=ha(m,d),m=t.reduce((e,t)=>ha(e,t),m),delete m.transitions.reducedMotion,m.focusVisible!=null&&m.focusVisible!==!1&&(m.focusVisible=Ol(m.focusVisible,m.palette.primary.main)),m.unstable_sxConfig={...Go,...d?.unstable_sxConfig},m.unstable_sx=function(e){return Jo({sx:e,theme:this})},m.toRuntimeSource=Ql,tu(m),m}function ru(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}var iu=[...Array(25)].map((e,t)=>{if(t===0)return`none`;let n=ru(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function au(e){return{inputPlaceholder:e===`dark`?.5:.42,inputUnderline:e===`dark`?.7:.42,switchTrackDisabled:e===`dark`?.2:.12,switchTrack:e===`dark`?.3:.38}}function ou(e){return e===`dark`?iu:[]}function su(e){let{palette:t={mode:`light`},opacity:n,overlays:r,colorSpace:i,...a}=e,o=_l({...t,colorSpace:i});return{palette:o,opacity:{...au(o.mode),...n},overlays:r||ou(o.mode),...a}}function cu(e){return e[0]===`motion`||e[0]===`focusVisible`||!!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 lu=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:``}overlays-${n}`),`--${e?`${e}-`:``}palette-AppBar-darkBg`,`--${e?`${e}-`:``}palette-AppBar-darkColor`],uu=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 lu(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 du(e,t){t.forEach(t=>{e[t]||(e[t]={})})}function G(e,t,n){!e[t]&&n&&(e[t]=n)}function fu(e){return typeof e!=`string`||!e.startsWith(`hsl`)?e:Rs(e)}function pu(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Is(fu(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().
49
+ 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 mu(e){return typeof e==`number`?`${e}px`:typeof e==`string`||typeof e==`function`||Array.isArray(e)?e:`8px`}var hu=e=>{try{return e()}catch{}},gu=(e=`mui`)=>kc(e);function _u(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;let a=i===`dark`?`dark`:`light`;if(!r){t[i]=su({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}let{palette:o,...s}=nu({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[i]={...n,palette:o,opacity:{...au(a),...n?.opacity},overlays:n?.overlays||ou(a)},s}function vu(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a=`mui`,nativeColor:o=!1,shouldSkipGeneratingVar:s=cu,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=gu(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=_u(b,v,y,u,f);h&&!v.light&&_u(b,v,h,void 0,`light`),g&&!v.dark&&_u(b,v,g,void 0,`dark`);let S={defaultColorScheme:f,...x,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:l,getCssVar:p,colorSchemes:v,font:{...Al(x.typography),...x.font},spacing:mu(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===Vs&&(r=`transparent ${((1-n)*100).toFixed(0)}%`),e===Us&&(r=`#000 ${(n*100).toFixed(0)}%`),e===Gs&&(r=`#fff ${(n*100).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}if(du(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(Us,o?p(`palette-error-light`):t.error.light,.6)),G(t.Alert,`infoColor`,r(Us,o?p(`palette-info-light`):t.info.light,.6)),G(t.Alert,`successColor`,r(Us,o?p(`palette-success-light`):t.success.light,.6)),G(t.Alert,`warningColor`,r(Us,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`,hu(()=>t.getContrastText(t.error.main))),G(t.Alert,`infoFilledColor`,hu(()=>t.getContrastText(t.info.main))),G(t.Alert,`successFilledColor`,hu(()=>t.getContrastText(t.success.main))),G(t.Alert,`warningFilledColor`,hu(()=>t.getContrastText(t.warning.main))),G(t.Alert,`errorStandardBg`,r(Gs,o?p(`palette-error-light`):t.error.light,.9)),G(t.Alert,`infoStandardBg`,r(Gs,o?p(`palette-info-light`):t.info.light,.9)),G(t.Alert,`successStandardBg`,r(Gs,o?p(`palette-success-light`):t.success.light,.9)),G(t.Alert,`warningStandardBg`,r(Gs,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(Gs,o?p(`palette-primary-main`):t.primary.main,.62)),G(t.LinearProgress,`secondaryBg`,r(Gs,o?p(`palette-secondary-main`):t.secondary.main,.62)),G(t.LinearProgress,`errorBg`,r(Gs,o?p(`palette-error-main`):t.error.main,.62)),G(t.LinearProgress,`infoBg`,r(Gs,o?p(`palette-info-main`):t.info.main,.62)),G(t.LinearProgress,`successBg`,r(Gs,o?p(`palette-success-main`):t.success.main,.62)),G(t.LinearProgress,`warningBg`,r(Gs,o?p(`palette-warning-light`):t.warning.main,.62)),G(t.Skeleton,`bg`,b?r(Vs,o?p(`palette-text-primary`):t.text.primary,.11):`rgba(${n(`palette-text-primaryChannel`)} / 0.11)`),G(t.Slider,`primaryTrack`,r(Gs,o?p(`palette-primary-main`):t.primary.main,.62)),G(t.Slider,`secondaryTrack`,r(Gs,o?p(`palette-secondary-main`):t.secondary.main,.62)),G(t.Slider,`errorTrack`,r(Gs,o?p(`palette-error-main`):t.error.main,.62)),G(t.Slider,`infoTrack`,r(Gs,o?p(`palette-info-main`):t.info.main,.62)),G(t.Slider,`successTrack`,r(Gs,o?p(`palette-success-main`):t.success.main,.62)),G(t.Slider,`warningTrack`,r(Gs,o?p(`palette-warning-main`):t.warning.main,.62));let e=b?r(Us,o?p(`palette-background-default`):t.background.default,.6825):qs(t.background.default,.8);G(t.SnackbarContent,`bg`,e),G(t.SnackbarContent,`color`,hu(()=>b?sl.text.primary:t.getContrastText(e))),G(t.SpeedDialAction,`fabHoverBg`,qs(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(Gs,o?p(`palette-primary-main`):t.primary.main,.62)),G(t.Switch,`secondaryDisabledColor`,r(Gs,o?p(`palette-secondary-main`):t.secondary.main,.62)),G(t.Switch,`errorDisabledColor`,r(Gs,o?p(`palette-error-main`):t.error.main,.62)),G(t.Switch,`infoDisabledColor`,r(Gs,o?p(`palette-info-main`):t.info.main,.62)),G(t.Switch,`successDisabledColor`,r(Gs,o?p(`palette-success-main`):t.success.main,.62)),G(t.Switch,`warningDisabledColor`,r(Gs,o?p(`palette-warning-main`):t.warning.main,.62)),G(t.TableCell,`border`,r(Gs,Vs(o?p(`palette-divider`):t.divider,1),.88)),G(t.Tooltip,`bg`,r(Vs,o?p(`palette-grey-700`):t.grey[700],.92))}if(t.mode===`dark`){G(t.Alert,`errorColor`,r(Gs,o?p(`palette-error-light`):t.error.light,.6)),G(t.Alert,`infoColor`,r(Gs,o?p(`palette-info-light`):t.info.light,.6)),G(t.Alert,`successColor`,r(Gs,o?p(`palette-success-light`):t.success.light,.6)),G(t.Alert,`warningColor`,r(Gs,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`,hu(()=>t.getContrastText(t.error.dark))),G(t.Alert,`infoFilledColor`,hu(()=>t.getContrastText(t.info.dark))),G(t.Alert,`successFilledColor`,hu(()=>t.getContrastText(t.success.dark))),G(t.Alert,`warningFilledColor`,hu(()=>t.getContrastText(t.warning.dark))),G(t.Alert,`errorStandardBg`,r(Us,o?p(`palette-error-light`):t.error.light,.9)),G(t.Alert,`infoStandardBg`,r(Us,o?p(`palette-info-light`):t.info.light,.9)),G(t.Alert,`successStandardBg`,r(Us,o?p(`palette-success-light`):t.success.light,.9)),G(t.Alert,`warningStandardBg`,r(Us,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(Us,o?p(`palette-primary-main`):t.primary.main,.5)),G(t.LinearProgress,`secondaryBg`,r(Us,o?p(`palette-secondary-main`):t.secondary.main,.5)),G(t.LinearProgress,`errorBg`,r(Us,o?p(`palette-error-main`):t.error.main,.5)),G(t.LinearProgress,`infoBg`,r(Us,o?p(`palette-info-main`):t.info.main,.5)),G(t.LinearProgress,`successBg`,r(Us,o?p(`palette-success-main`):t.success.main,.5)),G(t.LinearProgress,`warningBg`,r(Us,o?p(`palette-warning-main`):t.warning.main,.5)),G(t.Skeleton,`bg`,b?r(Vs,o?p(`palette-text-primary`):t.text.primary,.13):`rgba(${n(`palette-text-primaryChannel`)} / 0.13)`),G(t.Slider,`primaryTrack`,r(Us,o?p(`palette-primary-main`):t.primary.main,.5)),G(t.Slider,`secondaryTrack`,r(Us,o?p(`palette-secondary-main`):t.secondary.main,.5)),G(t.Slider,`errorTrack`,r(Us,o?p(`palette-error-main`):t.error.main,.5)),G(t.Slider,`infoTrack`,r(Us,o?p(`palette-info-main`):t.info.main,.5)),G(t.Slider,`successTrack`,r(Us,o?p(`palette-success-main`):t.success.main,.5)),G(t.Slider,`warningTrack`,r(Us,o?p(`palette-warning-light`):t.warning.main,.5));let e=b?r(Gs,o?p(`palette-background-default`):t.background.default,.985):qs(t.background.default,.98);G(t.SnackbarContent,`bg`,e),G(t.SnackbarContent,`color`,hu(()=>b?al.text.primary:t.getContrastText(e))),G(t.SpeedDialAction,`fabHoverBg`,qs(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(Us,o?p(`palette-primary-main`):t.primary.main,.55)),G(t.Switch,`secondaryDisabledColor`,r(Us,o?p(`palette-secondary-main`):t.secondary.main,.55)),G(t.Switch,`errorDisabledColor`,r(Us,o?p(`palette-error-main`):t.error.main,.55)),G(t.Switch,`infoDisabledColor`,r(Us,o?p(`palette-info-main`):t.info.main,.55)),G(t.Switch,`successDisabledColor`,r(Us,o?p(`palette-success-main`):t.success.main,.55)),G(t.Switch,`warningDisabledColor`,r(Us,o?p(`palette-warning-light`):t.warning.main,.55)),G(t.TableCell,`border`,r(Us,Vs(o?p(`palette-divider`):t.divider,1),.68)),G(t.Tooltip,`bg`,r(Vs,o?p(`palette-grey-700`):t.grey[700],.92))}o||(pu(t.background,`default`),pu(t.background,`paper`),pu(t.common,`background`),pu(t.common,`onBackground`),pu(t,`divider`)),Object.keys(t).forEach(e=>{let n=t[e];e!==`tonalOffset`&&!o&&n&&typeof n==`object`&&(n.main&&G(t[e],`mainChannel`,Is(fu(n.main))),n.light&&G(t[e],`lightChannel`,Is(fu(n.light))),n.dark&&G(t[e],`darkChannel`,Is(fu(n.dark))),n.contrastText&&G(t[e],`contrastTextChannel`,Is(fu(n.contrastText))),e===`text`&&(pu(t[e],`primary`),pu(t[e],`secondary`)),e===`action`&&(n.active&&pu(t[e],`active`),n.selected&&pu(t[e],`selected`)))})}),S=t.reduce((e,t)=>ha(e,t),S);let C=El(e.focusVisible,t);C!=null&&C!==!1&&(S.focusVisible=Ol(C,p(`palette-primary-main`)));let w={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:uu(S),enableContrastVars:o},{vars:T,generateThemeVars:E,generateStyleSheets:D}=Fc(S,w);return S.vars=T,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([e,t])=>{S[e]=t}),S.generateThemeVars=E,S.generateStyleSheets=D,S.generateSpacing=function(){return go(u.spacing,so(this))},S.getColorSchemeSelector=Ic(c),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...Go,...u?.unstable_sxConfig},S.unstable_sx=function(e){return Jo({sx:e,theme:this})},S.internal_cache={},S.toRuntimeSource=Ql,S}function yu(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:_l({...n===!0?{}:n.palette,mode:t})})}function bu(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 nu(e,...t);let r=n;`palette`in e||l[s]&&(l[s]===!0?s===`dark`&&(r={mode:`dark`}):r=l[s].palette);let i=nu({...e,palette:r},...t);if(i.defaultColorScheme=s,i.colorSchemes=l,i.palette.mode===`light`&&(i.colorSchemes.light={...l.light!==!0&&l.light,palette:i.palette},yu(i,`dark`,l.dark)),i.palette.mode===`dark`&&(i.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:i.palette},yu(i,`light`,l.light)),i.focusVisible!=null&&i.focusVisible!==!1){let n=i.focusVisible,r=El(e.focusVisible,t),a=r&&typeof r==`object`?r.outlineColor:void 0;if(!a||Dl(r)&&a===i.palette.primary.main){let{outlineColor:e,...t}=n;n=t}Object.keys(i.colorSchemes).forEach(e=>{let t=i.colorSchemes?.[e]?.palette;t?.primary&&(i.colorSchemes[e].focusVisible=Ol(n,t.primary.main))})}return i}return!n&&!(`light`in l)&&s===`light`&&(l.light=!0),vu({...o,colorSchemes:l,defaultColorScheme:s,...typeof r!=`boolean`&&r},...t)}var xu=H(`MuiAccordionSummary`,[`root`,`expanded`,`focusVisible`,`disabled`,`gutters`,`content`,`expandIconWrapper`]),Su=H(`MuiAutocomplete`,`root.expanded.fullWidth.focused.focusVisible.tag.tagSizeSmall.tagSizeMedium.hasPopupIcon.hasClearIcon.inputRoot.input.inputFocused.endAdornment.clearIndicator.popupIndicator.popupIndicatorOpen.popper.popperDisablePortal.paper.listbox.loading.noOptions.status.option.groupLabel.groupUl`.split(`.`));function Cu(e){return V(`MuiCheckbox`,e)}var wu=H(`MuiCheckbox`,[`root`,`checked`,`disabled`,`indeterminate`,`colorPrimary`,`colorSecondary`,`sizeSmall`,`sizeMedium`]);function Tu(e){return typeof e==`string`}function Eu(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function Du(...e){let t=S.useRef(void 0),n=S.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 S.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}function Ou(e){let t=S.useRef(e);return Es(()=>{t.current=e}),S.useRef((...e)=>(0,t.current)(...e)).current}function ku(e){return e&&e.ownerDocument||document}function Au(e){return ku(e).defaultView||window}function ju(e){return parseInt(e,10)||0}var Mu={shadow:{visibility:`hidden`,position:`absolute`,overflow:`hidden`,height:0,top:0,left:0,transform:`translateZ(0)`}};function Nu(e){for(let t in e)return!1;return!0}function Pu(e){return Nu(e)||e.outerHeightStyle===0&&!e.overflowing}var Fu=S.forwardRef(function(e,t){let{onChange:n,maxRows:r,minRows:i=1,style:a,value:o,...s}=e,{current:c}=S.useRef(o!=null),l=S.useRef(null),u=Du(t,l),d=S.useRef(null),f=S.useRef(null),p=S.useCallback(()=>{let t=l.current,n=f.current;if(!t||!n)return;let a=Au(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)===`
50
+ `&&(n.value+=` `);let o=a.boxSizing,s=ju(a.paddingBottom)+ju(a.paddingTop),c=ju(a.borderBottomWidth)+ju(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=Ou(()=>{let e=l.current,t=p();if(!e||!t||Pu(t))return!1;let n=t.outerHeightStyle;return d.current!=null&&d.current!==n}),h=S.useCallback(()=>{let e=l.current,t=p();if(!e||!t||Pu(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=S.useRef(-1);return Es(()=>{let e=Eu(h),t=l?.current;if(!t)return;let n=Au(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]),Es(()=>{h()}),(0,z.jsxs)(S.Fragment,{children:[(0,z.jsx)(`textarea`,{value:o,onChange:e=>{c||h();let t=e.target,r=t.value.length,i=t.value.endsWith(`
51
+ `),a=t.selectionStart===r;i&&a&&t.setSelectionRange(r,r),n&&n(e)},ref:u,rows:i,style:a,...s}),(0,z.jsx)(`textarea`,{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:{...Mu.shadow,...a,paddingTop:0,paddingBottom:0}})]})}),Iu=S.createContext(void 0);function Lu(){return S.useContext(Iu)}function Ru({props:e,states:t}){let n=S.useContext(Iu),r={};return t.forEach(t=>{let i=e[t];r[t]=i===void 0&&n?n[t]:i}),[r,n]}var zu=bu();function Bu(){let e=ns(zu);return e.$$material||e}function Vu(e){return(0,z.jsx)(is,{...e,defaultTheme:zu,themeId:Xn})}function Hu(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}var Uu=e=>Hu(e)&&e!==`classes`,K=ys({themeId:Xn,defaultTheme:zu,rootShouldForwardProp:Uu});function Wu(e){return function(t){return(0,z.jsx)(Vu,{styles:typeof e==`function`?n=>e({theme:n,...t}):e})}}var q=hc;function J(e){return ac(e)}var Y=Ja,Gu=Du,Ku=Es,qu=ku;function Ju(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var Yu=Ju;function Xu(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Zu(e,t=!1){return e&&(Xu(e.value)&&e.value!==``||t&&Xu(e.defaultValue)&&e.defaultValue!==``)}function Qu(e){return e.startAdornment}function $u(e){return V(`MuiInputBase`,e)}var ed=H(`MuiInputBase`,[`root`,`formControl`,`focused`,`disabled`,`adornedStart`,`adornedEnd`,`error`,`sizeSmall`,`multiline`,`colorSecondary`,`fullWidth`,`hiddenLabel`,`readOnly`,`input`,`inputTypeSearch`]),td={transition:`none`};function nd(e,t){return e===`always`?t:e===`system`?{"@media (prefers-reduced-motion: reduce)":t}:null}var rd=e=>e.scrollTop,id={offsetX:0,offsetY:0},ad={},od=[`all`],sd={},cd={matrix:[4,5],matrix3d:[12,13],translate:[0,1],translate3d:[0,1],translateX:[0,null],translateY:[null,0]};function ld(e){let t=parseFloat(e??``);return Number.isNaN(t)?0:t}function ud(e){let t=e.match(/^(matrix|matrix3d|translate|translate3d|translateX|translateY)\((.+)\)$/);return t?{type:t[1],values:t[2].split(`,`).map(ld)}:null}function dd(e,t){return t===null?0:e[t]||0}function fd(e){if(!e||e===`none`)return id;let t=ud(e);if(!t)return id;let{type:n,values:r}=t,i=cd[n];return i?{offsetX:dd(r,i[0]),offsetY:dd(r,i[1])}:id}function pd(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function md(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function hd(e,t){let{timeout:n,easing:r,style:i=ad}=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 gd(e,t){let n=t??td;return nd(e.motion?.reducedMotion,n)}function _d(e,t=od,n=sd){let r=e.transitions?.create?.(t,n),i=gd(e);if(r===void 0)return i??ad;let a={transition:r};return i?{...a,...i}:a}var vd,yd=`mui-auto-fill`,bd=`mui-auto-fill-cancel`,xd=(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${Y(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Sd=(e,t)=>{let{ownerState:n}=e;return[t.input,n.type===`search`&&t.inputTypeSearch]},Cd=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 W({root:[`root`,`color${Y(n)}`,r&&`disabled`,i&&`error`,c&&`fullWidth`,o&&`focused`,s&&`formControl`,f&&f!==`medium`&&`size${Y(f)}`,u&&`multiline`,p&&`adornedStart`,a&&`adornedEnd`,l&&`hiddenLabel`,d&&`readOnly`],input:[`input`,r&&`disabled`,m===`search`&&`inputTypeSearch`,d&&`readOnly`]},$u,t)},wd=K(`div`,{name:`MuiInputBase`,slot:`Root`,overridesResolver:xd})(q(({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`,[`&.${ed.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%`}}]}))),Td=K(`input`,{name:`MuiInputBase`,slot:`Input`,overridesResolver:Sd})(q(({theme:e})=>{let t=e.palette.mode===`light`,n={color:`currentColor`,...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},..._d(e,`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] + .${ed.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},[`&.${ed.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:bd,animationDuration:`10ms`,"&:-webkit-autofill":{animationDuration:`5000s`,animationName:yd}}},{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`}}]}})),Ed=Wu({[`@keyframes ${yd}`]:{from:{animationName:yd}},[`@keyframes ${bd}`]:{from:{animationName:bd}}}),Dd=S.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:C=!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:R={},startAdornment:ee,type:te=`text`,value:ne,...re}=n,ie=_.value==null?ne:_.value,{current:ae}=S.useRef(ie!=null),oe=S.useRef(),se=S.useCallback(e=>{},[]),ce=Gu(oe,v,_.ref,se),[le,ue]=S.useState(!1),[de,fe]=Ru({props:n,states:[`color`,`disabled`,`error`,`hiddenLabel`,`size`,`required`,`filled`]});de.focused=fe?fe.focused:le,S.useEffect(()=>{!fe&&u&&le&&(ue(!1),T&&T())},[fe,u,le,T]);let pe=fe&&fe.onFilled,me=fe&&fe.onEmpty,he=S.useCallback(e=>{Zu(e)?pe&&pe():me&&me()},[pe,me]);Ku(()=>{ae&&he({value:ie})},[ie,he,ae]),Ku(()=>{if(!o)return;let e=oe.current;if(!e)return;let t=qu(e),n=Yu(t),r=n==null||n===t.body||n===t.documentElement;e===n?fe&&fe.onFocus?fe.onFocus():ue(!0):r&&e.focus()},[o]);let ge=e=>{O&&O(e),_.onFocus&&_.onFocus(e),fe&&fe.onFocus?fe.onFocus(e):ue(!0)},_e=e=>{T&&T(e),_.onBlur&&_.onBlur(e),fe&&fe.onBlur?fe.onBlur(e):ue(!1)},ve=(e,...t)=>{if(!ae){let t=e.target||oe.current;if(t==null)throw Error(Yn(1));he({value:t.value})}_.onChange&&_.onChange(e,...t),E&&E(e,...t)};S.useEffect(()=>{he(oe.current)},[]);let ye=e=>{oe.current&&e.currentTarget===e.target&&oe.current.focus(),D&&D(e)},be=g,xe=_;C&&be===`input`&&(xe=P?{type:void 0,minRows:P,maxRows:P,...xe}:{type:void 0,maxRows:b,minRows:x,...xe},be=Fu);let Se=e=>{he(e.animationName===bd?oe.current:{value:`x`})};S.useEffect(()=>{fe&&fe.setAdornedStart(!!ee)},[fe,ee]);let Ce={...n,color:de.color||`primary`,disabled:de.disabled,endAdornment:f,error:de.error,focused:de.focused,formControl:fe,fullWidth:m,hiddenLabel:de.hiddenLabel,multiline:C,size:de.size,startAdornment:ee,type:te},we=Cd(Ce),Te=R.root||wd,Ee=I.root||{},De=R.input||Td;return xe={...xe,...I.input},(0,z.jsxs)(S.Fragment,{children:[!d&&typeof Ed==`function`&&(vd||=(0,z.jsx)(Ed,{})),(0,z.jsxs)(Te,{...Ee,ref:t,onClick:ye,...re,...!Tu(Te)&&{ownerState:{...Ce,...Ee.ownerState}},className:B(we.root,Ee.className,s,M&&`MuiInputBase-readOnly`),children:[ee,(0,z.jsx)(Iu.Provider,{value:null,children:(0,z.jsx)(De,{"aria-invalid":de.error,"aria-describedby":r,"aria-label":i,autoComplete:a,autoFocus:o,defaultValue:l,disabled:de.disabled,id:h,onAnimationStart:Se,name:w,placeholder:j,readOnly:M,required:de.required,rows:P,value:ie,onKeyDown:k,onKeyUp:A,type:te,...xe,...!Tu(De)&&{as:be,ownerState:{...Ce,...xe.ownerState}},ref:ce,className:B(we.input,xe.className,M&&`MuiInputBase-readOnly`),onBlur:_e,onChange:ve,onFocus:ge})}),f,N?N({...de,startAdornment:ee}):null]})]})});function Od(e){return V(`MuiFilledInput`,e)}var kd={...ed,...H(`MuiFilledInput`,[`root`,`underline`,`input`,`adornedStart`,`adornedEnd`,`sizeSmall`,`multiline`,`hiddenLabel`])};function Ad(e){return V(`MuiFormHelperText`,e)}var jd=H(`MuiFormHelperText`,[`root`,`error`,`disabled`,`sizeSmall`,`sizeMedium`,`contained`,`focused`,`filled`,`required`]);function Md(e){return V(`MuiFormLabel`,e)}var Nd=H(`MuiFormLabel`,[`root`,`colorSecondary`,`focused`,`disabled`,`error`,`filled`,`required`,`asterisk`]);function Pd(e){return V(`MuiInput`,e)}var Fd={...ed,...H(`MuiInput`,[`root`,`underline`,`input`])};function Id(e){return V(`MuiListItemButton`,e)}var Ld=H(`MuiListItemButton`,[`root`,`focusVisible`,`dense`,`alignItemsFlexStart`,`disabled`,`divider`,`gutters`,`selected`]);function Rd(e){return V(`MuiMenuItem`,e)}var zd=H(`MuiMenuItem`,[`root`,`focusVisible`,`dense`,`disabled`,`divider`,`gutters`,`selected`]);function Bd(e){return V(`MuiNativeSelect`,e)}var Vd=H(`MuiNativeSelect`,[`root`,`select`,`multiple`,`filled`,`outlined`,`standard`,`disabled`,`icon`,`iconOpen`,`iconFilled`,`iconOutlined`,`iconStandard`,`nativeInput`,`error`]);function Hd(e){return V(`MuiOutlinedInput`,e)}var Ud={...ed,...H(`MuiOutlinedInput`,[`root`,`notchedOutline`,`input`])},Wd=H(`MuiRadio`,[`root`,`checked`,`disabled`,`colorPrimary`,`colorSecondary`,`sizeSmall`]),Gd=H(`MuiToggleButton`,[`root`,`disabled`,`selected`,`standard`,`primary`,`secondary`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`fullWidth`]);function Kd(e){return String(parseFloat(e)).length===String(e).length}function qd(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||``}function Jd(e){return parseFloat(e)}function Yd(e){return(t,n)=>{let r=qd(t);if(r===n)return t;let i=Jd(t);r!==`px`&&(r===`em`||r===`rem`)&&(i=Jd(t)*Jd(e));let a=i;if(n!==`px`){if(n===`em`)a=i/Jd(e);else if(n===`rem`)a=i/Jd(e);else return t}return parseFloat(a.toFixed(5))+n}}function Xd({size:e,grid:t}){let n=e-e%t,r=n+t;return e-n<r-e?n:r}function Zd({lineHeight:e,pixels:t,htmlFontSize:n}){return t/(e*n)}function Qd({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 $d(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=Yd(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(!Kd(u)&&!r)throw Error(Yn(6));Kd(u)||(u=parseFloat(c(u,`rem`))/parseFloat(n));let d=null;r||(d=e=>Xd({size:e,grid:Zd({pixels:4,lineHeight:u,htmlFontSize:s.htmlFontSize})}));let f=Qd({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}function ef({props:e,name:t}){return Ts({props:e,name:t,defaultTheme:zu,themeId:Xn})}function tf({theme:e,...t}){let n=`$$material`in e?e[Xn]:void 0;return(0,z.jsx)(pc,{...t,themeId:n?Xn:void 0,theme:n||e})}var nf={attribute:`data-mui-color-scheme`,colorSchemeStorageKey:`mui-color-scheme`,defaultLightColorScheme:`light`,defaultDarkColorScheme:`dark`,modeStorageKey:`mui-mode`},{CssVarsProvider:rf,useColorScheme:af,getInitColorSchemeScript:of}=Oc({themeId:Xn,theme:()=>bu({cssVariables:!0}),colorSchemeStorageKey:nf.colorSchemeStorageKey,modeStorageKey:nf.modeStorageKey,defaultColorScheme:{light:nf.defaultLightColorScheme,dark:nf.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:Fl(e.palette,e.typography)};return t.unstable_sx=function(e){return Jo({sx:e,theme:this})},t}}),sf=rf;function cf({theme:e,...t}){let n=S.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,z.jsx)(tf,{theme:n,...t}):(0,z.jsx)(sf,{theme:e,...t})}var lf=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)},uf=lf(`am-ET`),df={components:{MuiBreadcrumbs:{defaultProps:{expandText:`መንገድ አሳይ`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`ወደ መጀመሪያው ገጽ ይሂዱ`:e===`last`?`ወደ መጨረሻው ገጽ ይሂዱ`:e===`next`?`ወደ ቀጣዩ ገጽ ይሂዱ`:`ወደ ቀዳሚው ገጽ ይሂዱ`,labelRowsPerPage:`ረድፎች በአንድ ገጽ:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${uf(e)}-${uf(t)} ከ ${n===-1?`${uf(t)} በላይ`:uf(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`?`ወደ ቀጣዩ ገጽ ይሂዱ`:`ወደ ቀዳሚው ገጽ ይሂዱ`}}}},ff=lf(`ar-EG`),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=>`${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`?`انتقل إلى الصفحة التالية`:`انتقل إلى الصفحة السابقة`}}}},mf=lf(`ar-SA`),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} ${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`?`الانتقال إلى الصفحة التالية`:`الانتقال إلى الصفحة السابقة`}}}},gf=lf(`ar-SD`),_f={components:{MuiBreadcrumbs:{defaultProps:{expandText:`إظهار المسار`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`انتقل إلى الصفحة الأولى`:e===`last`?`انتقل إلى الصفحة الأخيرة`:e===`next`?`انتقل إلى الصفحة التالية`:`انتقل إلى الصفحة السابقة`,labelRowsPerPage:`عدد الصفوف في الصفحة:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${gf(e)}–${gf(t)} من ${n===-1?` أكثر من${gf(t)}`:gf(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`?`انتقل إلى الصفحة التالية`:`انتقل إلى الصفحة السابقة`}}}},vf={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ç`}}}},yf=lf(`be-BY`),bf={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Паказаць шлях`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Перайсці на першую старонку`:e===`last`?`Перайсці на апошнюю старонку`:e===`next`?`Перайсці на наступную старонку`:`Перайсці на папярэднюю старонку`,labelRowsPerPage:`Радкоў на старонцы:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${yf(e)}–${yf(t)} з ${n===-1?`больш чым ${yf(t)}`:yf(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`?`Перайсці на наступную старонку`:`Перайсці на папярэднюю старонку`}}}},xf={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`?`Отиди на следващата страница`:`Отиди на предишната страница`}}}},Sf=lf(`bn-BD`),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=lf(`ca-ES`),Tf={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})=>`${wf(e)}–${wf(t)} de ${n===-1?`més de ${wf(t)}`:wf(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`}}}},Ef=lf(`cs-CZ`),Df={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})=>`${Ef(e)}–${Ef(t)} z ${n===-1?`více než ${Ef(t)}`:Ef(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`}}}},Of=lf(`da-DK`),kf={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})=>`${Of(e)}-${Of(t)} af ${n===-1?`mere end ${Of(t)}`:Of(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`}}}},Af=lf(`de-DE`),jf={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})=>`${Af(e)}–${Af(t)} von ${n===-1?`mehr als ${Af(t)}`:Af(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`}}}},Mf=lf(`el-GR`),Nf={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} Αστέρι${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`?`Επόμενη σελίδα`:`Προηγούμενη σελίδα`}}}},Pf={},Ff=lf(`es-ES`),If={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})=>`${Ff(e)}–${Ff(t)} de ${n===-1?`más de ${Ff(t)}`:Ff(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`}}}},Lf=lf(`et-EE`),Rf={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})=>`${Lf(e)}–${Lf(t)} / ${n===-1?`rohkem kui ${Lf(t)}`:Lf(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`}}}},zf=lf(`fa-IR`),Bf={components:{MuiBreadcrumbs:{defaultProps:{expandText:`نمایش مسیر`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`رفتن به اولین صفحه`:e===`last`?`رفتن به آخرین صفحه`:e===`next`?`رفتن به صفحه‌ی بعدی`:`رفتن به صفحه‌ی قبلی`,labelRowsPerPage:`تعداد سطرهای هر صفحه:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${zf(e)}–${zf(t)} از ${n===-1?`بیشتر از ${zf(t)}`:zf(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`?`رفتن به صفحه‌ی بعدی`:`رفتن به صفحه‌ی قبلی`}}}},Vf=lf(`fi-FI`),Hf={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})=>`${Vf(e)}–${Vf(t)} / ${n===-1?`enemmän kuin ${Vf(t)}`:Vf(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`}}}},Uf=lf(`fr-FR`),Wf={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})=>`${Uf(e)}–${Uf(t)} sur ${n===-1?`plus que ${Uf(t)}`:Uf(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`}}}},Gf=lf(`he-IL`),Kf={components:{MuiBreadcrumbs:{defaultProps:{expandText:`הצג נתיב`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`לעמוד הראשון`:e===`last`?`לעמוד האחרון`:e===`next`?`לעמוד הבא`:`לעמוד הקודם`,labelRowsPerPage:`שורות בעמוד:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Gf(e)}–${Gf(t)} מתוך ${n===-1?`יותר מ ${Gf(t)}`:Gf(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`?`לעמוד הבא`:`לעמוד הקודם`}}}},qf=lf(`hi-IN`),Jf={components:{MuiBreadcrumbs:{defaultProps:{expandText:`रास्ता दिखायें`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`पहले पृष्ठ पर जाएँ`:e===`last`?`अंतिम पृष्ठ पर जाएँ`:e===`next`?`अगले पृष्ठ पर जाएँ`:`पिछले पृष्ठ पर जाएँ`,labelRowsPerPage:`पंक्तियाँ प्रति पृष्ठ:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${qf(e)}-${qf(t===-1?n:t)} कुल ${qf(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`?`अगले पृष्ठ पर जाएँ`:`पिछले पृष्ठ पर जाएँ`}}}},Yf=lf(`hr-HR`),Xf={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})=>`${Yf(e)}–${Yf(t)} od ${n===-1?`više nego ${Yf(t)}`:Yf(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`}}}},Zf={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`}}}},Qf={components:{MuiTablePagination:{defaultProps:{labelRowsPerPage:"Տողեր մեկ էջում`"}},MuiRating:{defaultProps:{getLabelText:e=>`${e} Աստղ`,emptyLabelText:`Դատարկ`}},MuiAutocomplete:{defaultProps:{clearText:`Մաքրել`,closeText:`Փակել`,loadingText:`Բեռնում…`,noOptionsText:`Տարբերակներ չկան`,openText:`Բացել`}},MuiAlert:{defaultProps:{closeText:`Փակել`}}}},$f={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`}}}},ep=lf(`is-IS`),tp={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})=>`${ep(e)}–${ep(t)} af ${n===-1?`fleiri en ${ep(t)}`:ep(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`}}}},np=lf(`it-IT`),rp={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})=>`${np(e)}–${np(t)} di ${n===-1?`più di ${np(t)}`:np(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`}}}},ip=lf(`ja-JP`),ap={components:{MuiBreadcrumbs:{defaultProps:{expandText:`すべて表示`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`最初のページへ`:e===`last`?`最後のページへ`:e===`next`?`次のページへ`:`前のページへ`,labelRowsPerPage:`ページあたりの行数:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${ip(e)}~${ip(t)} / ${n===-1?`${ip(t)}以上`:ip(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`?`次のページへ`:`前のページへ`}}}},op=lf(`kh-KH`),sp={components:{MuiBreadcrumbs:{defaultProps:{expandText:`បង្ហាញផ្លូវ`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`ទៅទំព័រដំបូង`:e===`last`?`ទៅទំព័រចុងក្រោយ`:e===`next`?`ទៅទំព័របន្ទាប់`:`ទៅទំព័រមុន`,labelRowsPerPage:`ចំនួនជួរដេកក្នុងមួយទំព័រ:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${op(e)} - ${op(t)} នៃ ${n===-1?`ច្រើនជាង ${op(t)}`:op(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`?`ទៅទំព័របន្ទាប់`:`ទៅទំព័រមុន`}}}},cp=lf(`ko-KR`),lp={components:{MuiBreadcrumbs:{defaultProps:{expandText:`경로 보기`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`첫 번째 페이지로 이동`:e===`last`?`마지막 페이지로 이동`:e===`next`?`다음 페이지로 이동`:`이전 페이지로 이동`,labelRowsPerPage:`페이지 당 행:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${cp(e)}–${cp(t)} / ${n===-1?`${cp(t)}개 이상`:cp(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`?`다음 페이지로 이동`:`이전 페이지로 이동`}}}},up=lf(`ku-CKB`),dp={components:{MuiBreadcrumbs:{defaultProps:{expandText:`ڕێچکە پیشان بدە`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`چوونە یەکەم پەڕە`:e===`last`?`چوونە کۆتا پەڕە`:e===`next`?`چوونە پەڕەی دواتر`:`گەڕانەوە بۆ پەڕەی پێشوو`,labelRowsPerPage:`ژمارەی ڕیزەکان لە هەر پەڕەیەک:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${up(e)}–${up(t)} لە ${n===-1?` زیاترە لە${up(t)}`:up(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`?`چوونە پەڕەی دواتر`:`گەڕانەوە بۆ پەڕەی پێشوو`}}}},fp=lf(`ku-Latn`),pp={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})=>`${fp(e)}–${fp(t)} of ${n===-1?`zêdetir ji ${fp(t)}`:fp(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ê`}}}},mp=lf(`kk-KZ`),hp={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Толық жолды көрсету`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Бірінші бетке өту`:e===`last`?`Соңғы бетке өту`:e===`next`?`Келесі бетке өту`:`Алдыңғы бетке өту`,labelRowsPerPage:`Беттегі қатарлар:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${n===-1?`+${mp(t)}`:mp(n)} қатардың ішінен ${mp(e)}–${mp(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`?`Келесі бетке өту`:`Алдыңғы бетке өту`}}}},gp=lf(`mk-MK`),_p={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Прикажи патека`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Оди на прва страница`:e===`last`?`Оди на последна страница`:e===`next`?`Оди на следна страница`:`Оди на предходна страница`,labelRowsPerPage:`Редови по страница:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${gp(e)}–${gp(t)} од ${n===-1?`повеќе од ${gp(t)}`:gp(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`?`Оди на следна страница`:`Оди на предходна страница`}}}},vp=lf(`ms-MS`),yp={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})=>`${vp(e)}–${vp(t)} daripada ${n===-1?`lebih daripada ${vp(t)}`:vp(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`}}}},bp=lf(`my-MY`),xp={components:{MuiBreadcrumbs:{defaultProps:{expandText:`လမ်းကြောင်းပြပါ။`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`ပထမစာမျက်နှာသို့သွားပါ။`:e===`last`?`နောက်ဆုံးစာမျက်နှာသို့သွားပါ။`:e===`next`?`နောက်စာမျက်နှာသို့သွားပါ။`:`ယခင်စာမျက်နှာသို့သွားပါ။`,labelRowsPerPage:`စာမျက်နှာအလိုက် အတန်းများ:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${bp(e)}–${bp(t)} ၏ ${n===-1?`ထက်ပိုပြီး ${bp(t)}`:bp(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`?`နောက်စာမျက်နှာသို့သွားပါ။`:`ယခင်စာမျက်နှာသို့သွားပါ။`}}}},Sp=lf(`nb-NO`),Cp={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})=>`${Sp(e)}–${Sp(t)} av ${n===-1?`mer enn ${Sp(t)}`:Sp(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`}}}},wp=lf(`ne-NP`),Tp={components:{MuiBreadcrumbs:{defaultProps:{expandText:`बाटो देखाउनुहोस्`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`पहिलो पृष्ठमा जानुहोस्`:e===`last`?`अन्तिम पृष्ठमा जानुहोस्`:e===`next`?`अर्को पृष्ठमा जानुहोस्`:`अघिल्लो पृष्ठमा जानुहोस्`,labelRowsPerPage:`प्रति पृष्ठ पङ्क्तिहरू:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${wp(e)}–${wp(t)} को ${n===-1?`धेरै ${wp(t)}`:wp(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`?`अर्को पृष्ठमा जानुहोस्`:`अघिल्लो पृष्ठमा जानुहोस्`}}}},Ep=lf(`nn-NO`),Dp={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})=>`${Ep(e)}–${Ep(t)} av ${n===-1?`fleire enn ${Ep(t)}`:Ep(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`}}}},Op=lf(`nl-NL`),kp={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})=>`${Op(e)}–${Op(t)} van ${n===-1?`meer dan ${Op(t)}`:Op(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`}}}},Ap=lf(`pl-PL`),jp={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})=>`${Ap(e)}–${Ap(t)} z ${n===-1?`ponad ${Ap(t)}`:Ap(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`}}}},Mp=lf(`ps-AF`),Np={components:{MuiBreadcrumbs:{defaultProps:{expandText:`لاره ښکاره کړه`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`لومړۍ پاڼې ته لاړ شه`:e===`last`?`ورستۍ پاڼې ته لاړ شه`:e===`next`?`بلی پاڼې ته لاړ شه`:`مخکینۍ پاڼې ته لاړ شه`,labelRowsPerPage:`په پاڼه کی د کرښو شمیر`,labelDisplayedRows:({from:e,to:t,count:n})=>`${n===-1?`${Mp(t)} زیات له`:Mp(n)} ${Mp(t)}- ${Mp(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`?`بلې پاڼې ته لاړ شه`:`مخکنۍ پاڼې ته لاړ شه`}}}},Pp=lf(`pt-BR`),Fp={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})=>`${Pp(e)}–${Pp(t)} de ${n===-1?`mais de ${Pp(t)}`:Pp(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`}}}},Ip=lf(`pt-PT`),Lp={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})=>`${Ip(e)}–${Ip(t)} de ${n===-1?`mais de ${Ip(t)}`:Ip(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`}}}},Rp=lf(`ro-RO`),zp={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})=>`${Rp(e)}–${Rp(t)} din ${n===-1?`mai mult de ${Rp(t)}`:Rp(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ă`}}}},Bp=lf(`ru-RU`),Vp={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Показать полный путь`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Перейти на первую страницу`:e===`last`?`Перейти на последнюю страницу`:e===`next`?`Перейти на следующую страницу`:`Перейти на предыдущую страницу`,labelRowsPerPage:`Строк на странице:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Bp(e)}–${Bp(t)} из ${n===-1?`более чем ${Bp(t)}`:Bp(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`?`Перейти на следующую страницу`:`Перейти на предыдущую страницу`}}}},Hp=lf(`si-LK`),Up={components:{MuiBreadcrumbs:{defaultProps:{expandText:`ගමන් මඟ පෙන්වන්න`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`පළමු පිටුවට යන්න`:e===`last`?`අවසාන පිටුවට යන්න`:e===`next`?`මීළඟ පිටුවට යන්න`:`පෙර පිටුවට යන්න`,labelRowsPerPage:`පිටුවක පේළි:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Hp(e)}–${Hp(t)} දක්වා ${n===-1?`${Hp(t)} ට වැඩි ප්‍රමාණයකින්`:Hp(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`?`මීළඟ පිටුවට යන්න`:`පෙර පිටුවට යන්න`}}}},Wp=lf(`sk-SK`),Gp={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})=>`${Wp(e)}–${Wp(t)} z ${n===-1?`viac ako ${Wp(t)}`:Wp(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`}}}},Kp=lf(`sr-RS`),qp={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})=>`${Kp(e)}–${Kp(t)} od ${n===-1?`više nego ${Kp(t)}`:Kp(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`}}}},Jp=lf(`sv-SE`),Yp={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})=>`${Jp(e)}–${Jp(t)} av ${n===-1?`fler än ${Jp(t)}`:Jp(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`}}}},Xp=lf(`th-TH`),Zp={components:{MuiBreadcrumbs:{defaultProps:{expandText:`แสดงเส้นทาง`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`ไปที่หน้าแรก`:e===`last`?`ไปที่หน้าสุดท้าย`:e===`next`?`ไปที่หน้าถัดไป`:`ไปที่หน้าก่อน`,labelRowsPerPage:`จำนวนแถวต่อหน้า:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${Xp(e)}–${Xp(t)} จาก ${n===-1?`มากกว่า ${Xp(t)}`:Xp(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`?`ไปที่หน้าถัดไป`:`ไปที่หน้าก่อน`}}}},Qp=lf(`tr-TR`),$p={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})=>`${Qp(e)}-${Qp(t)} / ${n===-1?`${Qp(t)}'den fazla`:Qp(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`}}}},em=lf(`tl-TL`),tm={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})=>`${em(e)}–${em(t)} ng ${n===-1?`higit sa ${em(t)}`:em(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`}}}},nm=lf(`uk-UA`),rm={components:{MuiBreadcrumbs:{defaultProps:{expandText:`Показати шлях сторінок`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`Перейти на першу сторінку`:e===`last`?`Перейти на останню сторінку`:e===`next`?`Перейти на наступну сторінку`:`Перейти на попередню сторінку`,labelRowsPerPage:`Рядків на сторінці:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${nm(e)}–${nm(t)} з ${n===-1?`понад ${nm(t)}`:nm(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`?`Перейти на наступну сторінку`:`Перейти на попередню сторінку`}}}},im=lf(`ur-PK`),am={components:{MuiBreadcrumbs:{defaultProps:{expandText:`راستہ دکھائیں`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`پہلے صفحے پر جائیں`:e===`last`?`آخری صفحے پر جائیں`:e===`next`?`اگلے صفحے پر جائیں`:`پچھلے صفحے پر جائیں`,labelRowsPerPage:`ایک صفحے پر قطاریں:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${n===-1?`${im(t)} سے ذیادہ میں سے`:`${im(n)} میں سے`} ${im(e)} سے ${im(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`?`اگلے صفحے پر جائیں`:`پچھلے صفحے پر جائیں`}}}},om=lf(`vi-VN`),sm={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})=>`${om(e)}–${om(t)} trong ${n===-1?`nhiều hơn ${om(t)}`:om(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 đó`}}}},cm=lf(`zh-CN`),lm={components:{MuiBreadcrumbs:{defaultProps:{expandText:`展开`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`第一页`:e===`last`?`最后一页`:e===`next`?`下一页`:`上一页`,labelRowsPerPage:`每页行数:`,labelDisplayedRows:({from:e,to:t,count:n})=>`第 ${cm(e)} 条到第 ${cm(t)} 条,${n===-1?`至少 ${cm(t)} 条`:`共 ${cm(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`?`转到下一页`:`转到上一页`}}}},um=lf(`zh-HK`),dm={components:{MuiBreadcrumbs:{defaultProps:{expandText:`展開`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`第一頁`:e===`last`?`最後一頁`:e===`next`?`下一頁`:`上一頁`,labelRowsPerPage:`每頁行數:`,labelDisplayedRows:({from:e,to:t,count:n})=>`第 ${um(e)} 項至第 ${um(t)} 項,${n===-1?`超過 ${um(t)} 項`:`共 ${um(n)} 項`}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} 粒星`,emptyLabelText:`無標籤`}},MuiAutocomplete:{defaultProps:{clearText:`清除`,closeText:`關閉`,loadingText:`載入中……`,noOptionsText:`沒有可用選項`,openText:`開啟`}},MuiAlert:{defaultProps:{closeText:`關閉`}}}},fm=lf(`zh-TW`),pm={components:{MuiBreadcrumbs:{defaultProps:{expandText:`展開`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`前往第一頁`:e===`last`?`前往最後一頁`:e===`next`?`前往下一頁`:`前往上一頁`,labelRowsPerPage:`每頁列數:`,labelDisplayedRows:({from:e,to:t,count:n})=>`第 ${fm(e)} 至 ${fm(t)} 筆,${n===-1?`超過 ${fm(t)} 筆`:`共 ${fm(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`?`前往下一頁`:`前往上一頁`}}}},mm=e({amET:()=>df,arEG:()=>pf,arSA:()=>hf,arSD:()=>_f,azAZ:()=>vf,beBY:()=>bf,bgBG:()=>xf,bnBD:()=>Cf,caES:()=>Tf,csCZ:()=>Df,daDK:()=>kf,deDE:()=>jf,elGR:()=>Nf,enUS:()=>Pf,esES:()=>If,etEE:()=>Rf,faIR:()=>Bf,fiFI:()=>Hf,frFR:()=>Wf,heIL:()=>Kf,hiIN:()=>Jf,hrHR:()=>Xf,huHU:()=>Zf,hyAM:()=>Qf,idID:()=>$f,isIS:()=>tp,itIT:()=>rp,jaJP:()=>ap,khKH:()=>sp,kkKZ:()=>hp,koKR:()=>lp,kuCKB:()=>dp,kuLatn:()=>pp,mkMK:()=>_p,msMS:()=>yp,myMY:()=>xp,nbNO:()=>Cp,neNP:()=>Tp,nlNL:()=>kp,nnNO:()=>Dp,plPL:()=>jp,psAF:()=>Np,ptBR:()=>Fp,ptPT:()=>Lp,roRO:()=>zp,ruRU:()=>Vp,siLK:()=>Up,skSK:()=>Gp,srRS:()=>qp,svSE:()=>Yp,thTH:()=>Zp,tlTL:()=>tm,trTR:()=>$p,ukUA:()=>rm,urPK:()=>am,viVN:()=>sm,zhCN:()=>lm,zhHK:()=>dm,zhTW:()=>pm});function hm(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 gm(e){let[t,n,r]=hm(e);return`${t} ${n} ${r}`}function _m(e,t,n){let r=e=>Math.round(e).toString(16).padStart(2,`0`);return`#${r(e)}${r(t)}${r(n)}`.toUpperCase()}function vm(e){let[t,n,r]=hm(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 ym(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],_m(Math.round((c+s)*255),Math.round((l+s)*255),Math.round((u+s)*255))}function bm(e,t){return`rgba(${e} / ${t})`}function xm(e){return{...e,lighterChannel:gm(e.lighter),lightChannel:gm(e.light),mainChannel:gm(e.main),darkChannel:gm(e.dark),darkerChannel:gm(e.darker),contrastTextChannel:gm(e.contrastText)}}function Sm(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]=gm(e[r])}return{...e,...n}}function Cm(e,t,n){return Math.max(t,Math.min(n,e))}function wm(e){let t=vm(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=Cm(t.l+i,5,95);r[e]=ym(t.h,t.s,n)}return r}function Tm(e){let[t,n,r]=hm(e).map(e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return .2126*t+.7152*n+.0722*r}function Em(e,t){let n=Tm(e),r=Tm(t),i=Math.max(n,r),a=Math.min(n,r);return(i+.05)/(a+.05)}function Dm(e,t=`#FFFFFF`,n=`#000000`){return Em(e,t)>=Em(e,n)?t:n}function Om(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 km(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(`
52
+ `));let n=Om(t,e);return e.toLowerCase()===`currentcolor`?`color-mix(in srgb, currentColor ${n}, transparent)`:`rgba(${e} / ${n})`}var Am={50:`#F7FAFC`,100:`#EBF2F5`,200:`#DBE6EB`,300:`#C3D3DB`,400:`#9CAEB8`,500:`#77878F`,600:`#4D595E`,700:`#262D30`,800:`#1B2124`,900:`#111417`,950:`#06080A`},jm={50:`#EAF3FD`,100:`#C6DDFB`,200:`#A1C7F8`,300:`#7DB1F5`,400:`#589BF3`,500:`#3385F0`,600:`#2B71CC`,700:`#245DA8`,800:`#1C4984`,900:`#143560`,950:`#0A1B30`},Mm={50:`#E6F5F0`,100:`#BBE4D5`,200:`#8ED3BA`,300:`#62C29F`,400:`#35B084`,500:`#099F69`,600:`#088759`,700:`#066F49`,800:`#05573A`,900:`#04402A`,950:`#022015`},Nm={50:`#F2E4FE`,100:`#E6CAFE`,200:`#D6A8FD`,300:`#C686FC`,400:`#B663FB`,500:`#A641FA`,600:`#8D37D5`,700:`#742DAF`,800:`#5B2489`,900:`#421A64`,950:`#210D32`},Pm={50:`#F9E2E6`,100:`#F2C1CA`,200:`#E99AA8`,300:`#E17286`,400:`#D84A63`,500:`#D02241`,600:`#B11D37`,700:`#91182D`,800:`#721324`,900:`#530E1A`,950:`#3A0A12`},Fm={50:`#FEEFE1`,100:`#FCDFC4`,200:`#FBCB9D`,300:`#F9B677`,400:`#F8A250`,500:`#F68D2A`,600:`#D17824`,700:`#AC631D`,800:`#874E17`,900:`#623811`,950:`#372412`},Im={50:`#E0F3FA`,100:`#BCE6F4`,200:`#90D6EC`,300:`#64C6E5`,400:`#39B6DD`,500:`#0DA6D6`,600:`#0B8DB6`,700:`#097496`,800:`#075B76`,900:`#054256`,950:`#03212B`},Lm={white:`#FFFFFF`,black:`#000000`};function Rm(e,t=`light`){let n=t===`dark`?e[400]:e[500],r=Dm(n,`#FFFFFF`,`#212121`);return xm(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 zm(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 Bm(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:gm(n.primary),secondaryChannel:gm(n.secondary),disabledChannel:gm(n.disabled)}}function Vm(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 Hm(e,t,n=`light`){let r=gm(t);return{listItemHover:bm(e,n===`dark`?.08:.5),buttonHover:bm(e,n===`dark`?.12:.7),textFieldHover:bm(e,n===`dark`?.12:.7),text:{secondary:bm(r,.76),disabled:bm(r,.4)},overlay:bm(e,n===`dark`?.16:.7)}}function Um(e){return{chGrey:Sm(e.grey),chRed:Sm(e.red),chBlue:Sm(e.blue),chGreen:Sm(e.green),chOrange:Sm(e.orange),chLightBlue:Sm(e.lightBlue),chPurple:Sm(e.purple)}}function Wm(e){let{primary:t,secondary:n,info:r,success:i,warning:a,error:o,grey:s,mode:c,backgroundDefault:l,paperColor:u}=e,d=Sm(s),f=zm(s,c),p=Bm(s,c),m=Vm(s,c);l&&(f.default=l),u&&(f.paper=u,f.menu=u);let h={black:Lm.black,white:Lm.white,blackChannel:gm(Lm.black),whiteChannel:gm(Lm.white)},g=Hm(h.whiteChannel,p.primary,c),_=Um({grey:s,red:Pm,blue:jm,green:Mm,orange:Fm,lightBlue:Im,purple:Nm}),v=c===`dark`?s[700]:s[300],y=bm(gm(s[c===`dark`?700:300]),.6),b=bm(gm(s[700]),0);return{mode:c,common:h,grey:d,primary:Rm(t,c),secondary:Rm(n,c),info:Rm(r,c),success:Rm(i,c),warning:Rm(a,c),error:Rm(o,c),neutral:Rm(s,c),background:f,text:p,action:m,divider:v,dividerLight:y,menuDivider:b,vibrant:g,chart:_}}var Gm=Wm({primary:jm,secondary:Nm,info:Im,success:Mm,warning:Fm,error:Pm,grey:Am,mode:`light`}),Km=Wm({primary:jm,secondary:Nm,info:Im,success:Mm,warning:Fm,error:Pm,grey:Am,mode:`dark`});function qm(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function Jm(e){return V(`MuiSvgIcon`,e)}var Ym=H(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]),Xm=e=>{let{color:t,fontSize:n,classes:r}=e;return W({root:[`root`,t!==`inherit`&&`color${Y(t)}`,`fontSize${Y(n)}`]},Jm,r)},Zm=K(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${Y(n.color)}`],t[`fontSize${Y(n.fontSize)}`]]}})(q(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,..._d(e,`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}}]}))),Qm=S.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=S.isValidElement(r)&&r.type===`svg`,m={...n,color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:d,hasSvgAsChild:p},h={};l||(h.viewBox=d);let g=Xm(m);return(0,z.jsxs)(Zm,{as:o,className:B(g.root,i),focusable:`false`,color:c,"aria-hidden":!u||void 0,role:u?`img`:void 0,ref:t,...h,...f,...p&&r.props,ownerState:m,children:[p?r.props.children:r,u?(0,z.jsx)(`title`,{children:u}):null]})});Qm.muiName=`SvgIcon`;function $m(e,t){function n(t,n){return(0,z.jsx)(Qm,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=Qm.muiName,S.memo(S.forwardRef(n))}var eh=Eu,th=Hc,nh=Au;function rh(e,t){typeof e==`function`?e(t):e&&(e.current=t)}var ih=lc;function ah(e){let{controlled:t,default:n,name:r,state:i=`value`}=e,{current:a}=S.useRef(t!==void 0),[o,s]=S.useState(n);return[a?t:o,S.useCallback(e=>{a||s(e)},[])]}var oh=ah,sh=Ou;function ch(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function lh(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{ch(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=B(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=B(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 uh(e){return typeof e.main==`string`}function dh(e,t=[]){if(!uh(e))return!1;for(let n of t)if(!e.hasOwnProperty(n)||typeof e[n]!=`string`)return!1;return!0}function fh(e=[]){return([,t])=>t&&dh(t,e)}function ph(e){try{return e.matches(`:focus-visible`)}catch{}return!1}function mh(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return S.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 hh={};function gh(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=S.useRef(null),m=l===!0,h=mh({focusableWhenDisabled:m,disabled:a,isNativeButton:t,tabIndex:c}),g=S.useCallback(()=>{let e=p.current;return e==null?t:e.tagName===`BUTTON`||!!(e.tagName===`A`&&e.href)},[t]),_=S.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:S.useCallback((e=hh)=>{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 _h={};function vh(e,t){let n=S.useRef(_h);return n.current===_h&&(n.current=e(t)),n}var yh=class e{static create(){return new e}static use(){let t=vh(e.create).current,[n,r]=S.useState(!1);return t.shouldMount=n,t.setShouldMount=r,S.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=xh(),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 bh(){return yh.use()}function xh(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}var Sh=[];function Ch(e){S.useEffect(e,Sh)}var wh=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 Th(){let e=vh(wh.create).current;return Ch(e.disposeEffect),e}function Eh(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=S.useState(!1),f=Th(),p=S.useRef(!1),m=S.useRef(c);m.current=c;let h=c!=null,g=B(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),_={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},v=B(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),S.useEffect(()=>{!s&&h?p.current||(p.current=!0,f.start(l,()=>{p.current=!1,m.current?.()})):(p.current=!1,f.clear())},[f,h,s,l]),(0,z.jsx)(`span`,{className:g,style:_,children:(0,z.jsx)(`span`,{className:v})})}var Dh=H(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),Oh=`(prefers-reduced-motion: reduce)`,kh=0,Ah=`0ms`,jh=()=>{},Mh=()=>!1,Nh=()=>!0,Ph=()=>jh;function Fh(e){let[t,n]=S.useState(()=>({enabled:e,matches:e?null:!1})),r=t.matches;return t.enabled!==e&&(r=null,e||(r=!1)),Es(()=>{let r=t=>{n(n=>n.enabled===e&&n.matches===t?n:{enabled:e,matches:t})};if(!e){t.enabled&&r(!1);return}if(typeof window>`u`||typeof window.matchMedia!=`function`){r(!1);return}let i=window.matchMedia(Oh),a=()=>{r(i.matches)};return a(),i.addEventListener(`change`,a),()=>{i.removeEventListener(`change`,a)}},[e,t.enabled]),r}var Ih={...S}.useSyncExternalStore;function Lh(e){let t=e?Nh:Mh,[n,r]=S.useMemo(()=>{if(!e||typeof window>`u`||typeof window.matchMedia!=`function`)return[Mh,Ph];let t=window.matchMedia(Oh);return[()=>t.matches,e=>(t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)})]},[e]);return Ih(r,n,t)}var Rh=Ih===void 0?Fh:Lh;function zh(e,t){let n=Rh(!t&&e===`system`),r=!t&&(e===`always`||e===`system`&&n!==!1);return S.useMemo(()=>({shouldReduceMotion:r,getTransitionTiming(e){return r?{duration:kh,delay:Ah}:e}}),[r])}var Bh=550,Vh={},Hh=[],Uh=()=>{};function Wh(e,t){let n=new Set(t),r=new Map,i=[];for(let t of e)n.has(t)?i.length>0&&(r.set(t,i),i=[]):i.push(t);let a=[];for(let e of t){let t=r.get(e);t&&a.push(...t),a.push(e)}return a.push(...i),a}function Gh({event:e,element:t,center:n}){let r=t?t.getBoundingClientRect():{width:0,height:0,left:0,top:0},i,a;if(n||e===void 0||e.clientX===0&&e.clientY===0||!e.clientX&&!e.touches)i=Math.round(r.width/2),a=Math.round(r.height/2);else{let{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;i=Math.round(t-r.left),a=Math.round(n-r.top)}let o;if(n)o=Math.sqrt((2*r.width**2+r.height**2)/3),o%2==0&&(o+=1);else{let e=Math.max(Math.abs((t?t.clientWidth:0)-i),i)*2+2,n=Math.max(Math.abs((t?t.clientHeight:0)-a),a)*2+2;o=Math.sqrt(e**2+n**2)}return{rippleX:i,rippleY:a,rippleSize:o}}var Kh=qi`
53
+ 0% {
54
+ transform: scale(0);
55
+ opacity: 0.1;
56
+ }
57
+
58
+ 100% {
59
+ transform: scale(1);
60
+ opacity: 0.3;
61
+ }
62
+ `,qh=qi`
63
+ 0% {
64
+ opacity: 1;
65
+ }
66
+
67
+ 100% {
68
+ opacity: 0;
69
+ }
70
+ `,Jh=qi`
71
+ 0% {
72
+ transform: scale(1);
73
+ }
74
+
75
+ 50% {
76
+ transform: scale(0.92);
77
+ }
78
+
79
+ 100% {
80
+ transform: scale(1);
81
+ }
82
+ `;function Yh(e){if(e.motion.reducedMotion===`always`)return null;let t=Ki`
83
+ &.${Dh.rippleVisible} {
84
+ animation-name: ${Kh};
85
+ animation-duration: ${Bh}ms;
86
+ animation-timing-function: ${e.transitions.easing.easeInOut};
87
+ }
88
+
89
+ &.${Dh.ripplePulsate} {
90
+ animation-duration: ${e.transitions.duration.shorter}ms;
91
+ }
92
+
93
+ & .${Dh.childLeaving} {
94
+ animation-name: ${qh};
95
+ animation-duration: ${Bh}ms;
96
+ animation-timing-function: ${e.transitions.easing.easeInOut};
97
+ }
98
+
99
+ & .${Dh.childPulsate} {
100
+ animation-name: ${Jh};
101
+ animation-duration: 2500ms;
102
+ animation-timing-function: ${e.transitions.easing.easeInOut};
103
+ animation-iteration-count: infinite;
104
+ animation-delay: 200ms;
105
+ }
106
+ `;return e.motion.reducedMotion===`system`?Ki`
107
+ @media (prefers-reduced-motion: no-preference) {
108
+ ${t}
109
+ }
110
+ `:t}var Xh=K(`span`,{name:`MuiTouchRipple`,slot:`Root`})({overflow:`hidden`,pointerEvents:`none`,position:`absolute`,zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:`inherit`}),Zh=K(Eh,{name:`MuiTouchRipple`,slot:`Ripple`})`
111
+ opacity: 0;
112
+ position: absolute;
113
+
114
+ &.${Dh.rippleVisible} {
115
+ opacity: 0.3;
116
+ transform: scale(1);
117
+ }
118
+
119
+ /*
120
+ * Order matters: 'child', 'childLeaving' and 'childPulsate' apply to the same
121
+ * element with equal specificity, so the later rule wins. 'child' must come
122
+ * before 'childLeaving' so the leaving 'opacity: 0' takes precedence. A focus
123
+ * (pulsate) ripple keeps 'pulsateKeyframe' (no opacity animation) on exit, so
124
+ * it relies on this static 'opacity: 0' to disappear on blur instead of
125
+ * lingering until removal.
126
+ */
127
+ & .${Dh.child} {
128
+ opacity: 1;
129
+ display: block;
130
+ width: 100%;
131
+ height: 100%;
132
+ border-radius: 50%;
133
+ background-color: currentColor;
134
+ }
135
+
136
+ & .${Dh.childLeaving} {
137
+ opacity: 0;
138
+ }
139
+
140
+ & .${Dh.childPulsate} {
141
+ position: absolute;
142
+ /* @noflip */
143
+ left: 0px;
144
+ top: 0;
145
+ }
146
+
147
+ ${({theme:e})=>Yh(e)}
148
+ `,Qh=S.forwardRef(function(e,t){let n=J({props:e,name:`MuiTouchRipple`}),r=zh(Bu().motion.reducedMotion,!1),{center:i=!1,classes:a=Vh,className:o,...s}=n,[c,l]=S.useState({items:Hh,order:Hh}),u=c.items,d=S.useRef(0),f=S.useRef(null),p=S.useRef(!1);Ch(()=>(p.current=!0,()=>{p.current=!1})),S.useEffect(()=>{f.current&&=(f.current(),null)},[u]);let m=S.useRef(!1),h=Th(),g=S.useRef(null),_=S.useRef(null),v=sh(e=>{p.current&&l(t=>{let n=t.items.filter(t=>t.key!==e);return{items:n,order:Wh(t.order.filter(t=>t!==e),n.filter(e=>!e.exiting).map(e=>e.key))}})}),y=sh(e=>{let{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e,o=d.current;d.current+=1,l(e=>{let a=[...e.items,{key:o,pulsate:t,rippleX:n,rippleY:r,rippleSize:i,exiting:!1}];return{items:a,order:Wh(e.order,a.filter(e=>!e.exiting).map(e=>e.key))}}),f.current=a}),b=sh((e=Vh,t=Vh,n=Uh)=>{let{pulsate:r=!1,center:a=i||t.pulsate,fakeElement:o=!1}=t;if(e?.type===`mousedown`&&m.current){m.current=!1;return}e?.type===`touchstart`&&(m.current=!0);let{rippleX:s,rippleY:c,rippleSize:l}=Gh({event:e,element:o?null:_.current,center:a});e?.touches?g.current===null&&(g.current=()=>{y({pulsate:r,rippleX:s,rippleY:c,rippleSize:l,cb:n})},h.start(80,()=>{g.current&&=(g.current(),null)})):y({pulsate:r,rippleX:s,rippleY:c,rippleSize:l,cb:n})}),x=sh(()=>{b(Vh,{pulsate:!0})}),C=sh((e,t)=>{if(h.clear(),e?.type===`touchend`&&g.current){g.current(),g.current=null,h.start(0,()=>{C(e,t)});return}g.current=null,l(e=>{let t=e.items.findIndex(e=>!e.exiting);if(t===-1)return e;let n=e.items.slice();return n[t]={...n[t],exiting:!0},{items:n,order:Wh(e.order,n.filter(e=>!e.exiting).map(e=>e.key))}}),f.current=t});S.useImperativeHandle(t,()=>({pulsate:x,start:b,stop:C}),[x,b,C]);let w=new Map(u.map(e=>[e.key,e])),T=c.order.map(e=>w.get(e)).filter(Boolean);return(0,z.jsx)(Xh,{className:B(Dh.root,a.root,o),ref:_,...s,children:T.map(e=>(0,z.jsx)(Zh,{classes:{ripple:B(a.ripple,Dh.ripple),rippleVisible:B(a.rippleVisible,Dh.rippleVisible),ripplePulsate:B(a.ripplePulsate,Dh.ripplePulsate),child:B(a.child,Dh.child),childLeaving:B(a.childLeaving,Dh.childLeaving),childPulsate:B(a.childPulsate,Dh.childPulsate)},timeout:r.shouldReduceMotion?0:Bh,pulsate:e.pulsate,rippleX:e.rippleX,rippleY:e.rippleY,rippleSize:e.rippleSize,in:!e.exiting,onExited:()=>v(e.key)},e.key))})});function $h(e){return V(`MuiButtonBase`,e)}var eg=H(`MuiButtonBase`,[`root`,`disabled`,`focusVisible`]),tg=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,suppressFocusVisible:i,classes:a}=e,o=W({root:[`root`,t&&`disabled`,n&&!i&&`focusVisible`]},$h,a);return n&&!i&&r&&(o.root+=` ${r}`),o},ng=K(`button`,{name:`MuiButtonBase`,slot:`Root`})(q(({theme:e})=>({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`},[`&.${eg.disabled}`]:{pointerEvents:`none`,cursor:`default`},"@media print":{colorAdjust:`exact`},variants:[{props:{internalDisabledThemeFocusVisible:!1},style:e.focusVisible&&{...Cl,[`&.${eg.focusVisible}`]:e.focusVisible}}]}))),rg=S.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,internalDisabledThemeFocusVisible:g=!1,LinkComponent:_=`a`,nativeButton:v,onBlur:y,onClick:b,onContextMenu:x,onDragLeave:C,onFocus:w,onFocusVisible:T,onKeyDown:E,onKeyUp:D,onMouseDown:O,onMouseLeave:k,onMouseUp:A,onTouchEnd:j,onTouchMove:M,onTouchStart:N,tabIndex:P=0,TouchRippleProps:F,touchRippleRef:I,type:R,...ee}=n,te=!!(ee.href||ee.to),ne=!!ee.formAction,re=s;re===`button`&&te&&(re=_);let ie=typeof re==`string`?re===`button`:h??!1,ae=v??ie,oe=bh(),se=Gu(oe.ref,I),[ce,le]=S.useState(!1);(c||m)&&ce&&le(!1);let ue=sh(e=>{d&&!e.repeat&&ce&&e.key===` `&&oe.stop(e,()=>{oe.start(e)})}),de=sh(e=>{d&&e.key===` `&&ce&&!e.defaultPrevented&&oe.stop(e,()=>{oe.pulsate(e)})}),{getButtonProps:fe,rootRef:pe}=gh({nativeButton:ae,nativeButtonProp:v,internalNativeButton:ie,allowInferredHostMismatch:te||typeof re==`string`,disabled:c,type:R,hasFormAction:ne,tabIndex:P,onBeforeKeyDown:ue,onBeforeKeyUp:de}),{onClick:me,onKeyDown:he,onKeyUp:ge,..._e}=fe({onClick:b,onKeyDown:E,onKeyUp:D});S.useImperativeHandle(r,()=>({focusVisible:()=>{le(!0),pe.current.focus()}}),[pe]);let ve=oe.shouldMount&&!l&&!c;S.useEffect(()=>{ce&&d&&!l&&oe.pulsate()},[l,d,ce,oe]);let ye=ig(oe,`start`,O,u),be=ig(oe,`stop`,x,u),xe=ig(oe,`stop`,C,u),Se=ig(oe,`stop`,A,u),Ce=ig(oe,`stop`,e=>{ce&&e.preventDefault(),k&&k(e)},u),we=ig(oe,`start`,N,u),Te=ig(oe,`stop`,j,u),Ee=ig(oe,`stop`,M,u),De=ig(oe,`stop`,e=>{ph(e.target)||le(!1),y&&y(e)},!1),Oe=sh(e=>{pe.current||=e.currentTarget,!m&&ph(e.target)&&(le(!0),T&&T(e)),w&&w(e)}),ke={};te&&(ke.tabIndex=c?-1:P,c&&(ke[`aria-disabled`]=c),ke.type=R);let Ae=Gu(t,pe),je={...n,centerRipple:i,component:s,disabled:c,disableRipple:l,disableTouchRipple:u,focusRipple:d,suppressFocusVisible:m,tabIndex:P,focusVisible:ce,internalDisabledThemeFocusVisible:g},Me=tg(je);return(0,z.jsxs)(ng,{as:re,className:B(Me.root,o),ownerState:je,onBlur:De,onClick:me,onContextMenu:be,onFocus:Oe,onKeyDown:he,onKeyUp:ge,onMouseDown:ye,onMouseLeave:Ce,onMouseUp:Se,onDragLeave:xe,onTouchEnd:Te,onTouchMove:Ee,onTouchStart:we,ref:Ae,...te?ke:_e,...ee,children:[a,ve?(0,z.jsx)(Qh,{ref:se,center:i,...F}):null]})});function ig(e,t,n,r=!1){return sh(i=>(n&&n(i),r||e[t](i),!0))}function ag(e){return V(`MuiCircularProgress`,e)}H(`MuiCircularProgress`,[`root`,`determinate`,`indeterminate`,`colorPrimary`,`colorSecondary`,`svg`,`track`,`circle`,`circleDisableShrink`]);var og=44,sg=qi`
149
+ 0% {
150
+ transform: rotate(0deg);
151
+ }
152
+
153
+ 100% {
154
+ transform: rotate(360deg);
155
+ }
156
+ `,cg=qi`
157
+ 0% {
158
+ stroke-dasharray: 1px, 200px;
159
+ stroke-dashoffset: 0;
160
+ }
161
+
162
+ 50% {
163
+ stroke-dasharray: 100px, 200px;
164
+ stroke-dashoffset: -15px;
165
+ }
166
+
167
+ 100% {
168
+ stroke-dasharray: 1px, 200px;
169
+ stroke-dashoffset: -126px;
170
+ }
171
+ `,eee=typeof sg==`string`?null:Ki`
172
+ animation: ${sg} 1.4s linear infinite;
173
+ `,tee=typeof cg==`string`?null:Ki`
174
+ animation: ${cg} 1.4s ease-in-out infinite;
175
+ `,nee=e=>{let{classes:t,variant:n,color:r,disableShrink:i}=e;return W({root:[`root`,n,`color${Y(r)}`],svg:[`svg`],track:[`track`],circle:[`circle`,i&&`circleDisableShrink`]},ag,t)},ree=K(`span`,{name:`MuiCircularProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Y(n.color)}`]]}})(q(({theme:e})=>{let t=gd(e,{animation:`none`});return{display:`inline-block`,variants:[{props:{variant:`determinate`},style:{..._d(e,`transform`)}},{props:{variant:`indeterminate`},style:eee||{animation:`${sg} 1.4s linear infinite`}},...t?[{props:{variant:`indeterminate`},style:t}]:[],...Object.entries(e.palette).filter(fh()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}})),iee=K(`svg`,{name:`MuiCircularProgress`,slot:`Svg`})({display:`block`}),aee=K(`circle`,{name:`MuiCircularProgress`,slot:`Circle`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,n.disableShrink&&t.circleDisableShrink]}})(q(({theme:e})=>{let t=gd(e,{animation:`none`});return{stroke:`currentColor`,variants:[{props:{variant:`determinate`},style:{..._d(e,`stroke-dashoffset`)}},{props:{variant:`indeterminate`},style:{strokeDasharray:`80px, 200px`,strokeDashoffset:0}},{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:tee||{animation:`${cg} 1.4s ease-in-out infinite`}},...t?[{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:t}]:[]]}})),oee=K(`circle`,{name:`MuiCircularProgress`,slot:`Track`})(q(({theme:e})=>({stroke:`currentColor`,opacity:(e.vars||e).palette.action.activatedOpacity}))),lg=S.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=nee(_),y={},b={},x={};if(p===`determinate`){let e=2*Math.PI*((og-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,z.jsx)(ree,{className:B(v.root,r),style:{width:l,height:l,...b,...u},ownerState:_,ref:t,role:`progressbar`,...x,...m,children:(0,z.jsxs)(iee,{className:v.svg,ownerState:_,viewBox:`${og/2} ${og/2} ${og} ${og}`,children:[o?(0,z.jsx)(oee,{className:v.track,ownerState:_,cx:og,cy:og,r:(og-d)/2,fill:`none`,strokeWidth:d,"aria-hidden":`true`}):null,(0,z.jsx)(aee,{className:v.circle,style:y,ownerState:_,cx:og,cy:og,r:(og-d)/2,fill:`none`,strokeWidth:d})]})})});function see(e){return V(`MuiIconButton`,e)}var ug=H(`MuiIconButton`,[`root`,`disabled`,`colorInherit`,`colorPrimary`,`colorSecondary`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`,`edgeStart`,`edgeEnd`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`loading`,`loadingIndicator`,`loadingWrapper`]),dg=e=>{let{classes:t,disabled:n,color:r,edge:i,size:a,loading:o}=e;return W({root:[`root`,o&&`loading`,n&&`disabled`,r!=="default"&&`color${Y(r)}`,i&&`edge${Y(i)}`,`size${Y(a)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},see,t)},fg=K(rg,{name:`MuiIconButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${Y(n.color)}`],n.edge&&t[`edge${Y(n.edge)}`],t[`size${Y(n.size)}`]]}})(q(({theme:e})=>({textAlign:`center`,flex:`0 0 auto`,fontSize:e.typography.pxToRem(24),padding:8,borderRadius:`50%`,color:(e.vars||e).palette.action.active,..._d(e,`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}}]})),q(({theme:e})=>({variants:[{props:{color:`inherit`},style:{color:`inherit`}},...Object.entries(e.palette).filter(fh()).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)}}],[`&.${ug.disabled}`]:{backgroundColor:`transparent`,color:(e.vars||e).palette.action.disabled},[`&.${ug.loading}`]:{color:`transparent`}}))),pg=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`}}]})),mg=S.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=ih(u),h=f??(0,z.jsx)(lg,{"aria-labelledby":m,color:`inherit`,size:16}),g={...n,edge:r,color:o,disabled:s,disableFocusRipple:c,loading:d,loadingIndicator:h,size:l},_=dg(g);return(0,z.jsxs)(fg,{id:d?m:u,className:B(_.root,a),centerRipple:!0,internalNativeButton:!0,focusRipple:!c,disabled:s||d,ref:t,...p,ownerState:g,children:[typeof d==`boolean`&&(0,z.jsx)(`span`,{className:_.loadingWrapper,style:{display:`contents`},children:(0,z.jsx)(pg,{className:_.loadingIndicator,ownerState:g,children:d&&h})}),i]})});function hg(e){let t=vh(()=>gg(e)).current;return t.next=e,Es(t.effect),t}function gg(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var _g=S.createContext(null);function vg(e){if(e==null)return{appear:void 0,enter:void 0,exit:void 0};if(typeof e==`number`)return{appear:e,enter:e,exit:e};let t=e.enter,n=e.exit;return{appear:e.appear===void 0?t:e.appear,enter:t,exit:n}}function cee(e){if(e.autoTimeout!=null)return e.autoTimeout;let t=vg(e.timeout);return e.currentStatus===`entering`?e.isAppearing?t.appear??t.enter??null:t.enter??null:t.exit??null}function yg(e){let{in:t=!1,appear:n=!1,enter:r=!0,exit:i=!0,mountOnEnter:a=!1,unmountOnExit:o=!1,timeout:s,addEndListener:c,reduceMotion:l=!1,getAutoTimeout:u,nodeRef:d,onEnter:f,onEntering:p,onEntered:m,onExit:h,onExiting:g,onExited:_,children:v,...y}=e,b=S.useContext(_g),x=b&&!b.isMounting?r:n,[C,w]=S.useState(()=>t?x?`exited`:`entered`:a||o?`unmounted`:`exited`),T=S.useRef(C);T.current=C,t&&C===`unmounted`&&(T.current=`exited`,w(`exited`));let E=S.useRef(t&&x),D=S.useRef(!1),O=S.useRef(null),k=S.useRef(C),A=S.useRef(!1),j=S.useRef(l),M=hg({timeout:s,addEndListener:c,reduceMotion:l,getAutoTimeout:u,onEnter:f,onEntering:p,onEntered:m,onExit:h,onExiting:g,onExited:_,enter:r,exit:i,mountOnEnter:a,unmountOnExit:o,nodeRef:d,parentGroup:b}),N=S.useCallback(()=>{O.current!==null&&(O.current.cancel(),O.current=null)},[]),P=S.useCallback(e=>{let t=!0,n=()=>{t&&(t=!1,O.current=null,e())};return n.cancel=()=>{t=!1},O.current=n,n},[]),F=S.useCallback((e,t)=>{let n,r=()=>{n!==void 0&&(clearTimeout(n),n=void 0)},i=P(()=>{r(),T.current=e,w(e)}),a=i.cancel;i.cancel=()=>{r(),a()};let o=M.current.nodeRef.current,s=M.current.addEndListener,c=M.current.getAutoTimeout!==void 0,l=M.current.getAutoTimeout?.(),u=cee({currentStatus:t,isAppearing:A.current,timeout:M.current.timeout,autoTimeout:l}),d=j.current,f=u??(d&&c?0:null),p=e=>{n=setTimeout(i,e)};if(!o){p(0);return}if(s){f!=null&&p(d?0:f),s.length>=2?s(o,i):s(i);return}p(d?0:u??0)},[P,M]),I=S.useCallback(e=>{let t=M.current,n=t.parentGroup?t.parentGroup.isMounting:e;if(A.current=n,!e&&!t.enter){T.current=`entered`,w(`entered`);return}j.current=t.reduceMotion,t.onEnter?.(n),T.current=`entering`,w(`entering`)},[M]),R=S.useCallback(()=>{let e=M.current;if(!e.exit){T.current=`exited`,w(`exited`);return}j.current=e.reduceMotion,e.onExit?.(),T.current=`exiting`,w(`exiting`)},[M]),ee=S.useCallback((e,t)=>{if(N(),t===`entering`){let t=M.current;if(t.mountOnEnter||t.unmountOnExit){let e=t.nodeRef.current;e&&rd(e)}I(e)}else R()},[N,I,R,M]);return Es(()=>(D.current=!0,E.current&&(E.current=!1,ee(!0,`entering`)),()=>{D.current=!1,N()}),[N,ee]),Es(()=>{if(!D.current)return;let e=T.current;t?e!==`entering`&&e!==`entered`&&ee(!1,`entering`):e===`entering`||e===`entered`?ee(!1,`exiting`):e===`exited`&&o&&(T.current=`unmounted`,w(`unmounted`))},[t,C,o,ee]),Es(()=>{if(C===`unmounted`||k.current===`unmounted`){k.current=C;return}let e=k.current!==C;e&&(k.current=C);let t=M.current;C===`entering`?(e&&t.onEntering?.(A.current),O.current===null&&T.current===C&&F(`entered`,`entering`)):C===`exiting`?(e&&t.onExiting?.(),O.current===null&&T.current===C&&F(`exited`,`exiting`)):C===`entered`&&e?t.onEntered?.(A.current):C===`exited`&&e&&t.onExited?.()},[M,F,C]),C===`unmounted`?null:(0,z.jsx)(_g.Provider,{value:null,children:v(C,y)})}function bg(e,t,n){return e===void 0||Tu(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function xg(e,t,n){return typeof e==`function`?e(t,n):e}function Sg(e){if(e===void 0)return{};let t={};for(let n of Object.keys(e))ch(n,e[n])&&(t[n]=e[n]);return t}function Cg(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 wg(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=B(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=Sg({...i,...r}),s=Cg(r),c=Cg(i),l=t(o),u=B(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 X(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=xg(d[e],i),{props:{component:h,...g},internalRef:_}=wg({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=Du(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,bg(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 Tg(e){return V(`MuiCollapse`,e)}H(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var Eg={},Dg=e=>{let{orientation:t,classes:n}=e;return W({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},Tg,n)},Og=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]}})(q(({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`}}]}))),kg=K(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Ag=K(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),jg=S.forwardRef(function(e,t){let n=J({props:e,name:`MuiCollapse`}),{addEndListener:r,children:i,className:a,collapsedSize:o=`0px`,component:s,disablePrefersReducedMotion:c=!1,easing:l,in:u,onEnter:d,onEntered:f,onEntering:p,onExit:m,onExited:h,onExiting:g,orientation:_=`vertical`,slots:v=Eg,slotProps:y=Eg,style:b,timeout:x=Wl.standard,TransitionComponent:C=yg,...w}=n,T={...n,orientation:_,collapsedSize:o},E=Dg(T),D=Bu(),O=S.useRef(null),k=S.useRef(null),A=typeof o==`number`?`${o}px`:o,j=_===`horizontal`,M=j?`width`:`height`,N=zh(D.motion.reducedMotion,c),P=S.useRef(null),F=Gu(t,P),I=()=>O.current?O.current[j?`clientWidth`:`clientHeight`]:0,R=pd(P,(e,t)=>{O.current&&j&&(O.current.style.position=`absolute`),e.style[M]=A,d&&d(e,t)}),ee=pd(P,(e,t)=>{let n=I();O.current&&j&&(O.current.style.position=``);let{duration:r,easing:i}=hd({style:b,timeout:x,easing:l},{mode:`enter`});if(x===`auto`&&!N.shouldReduceMotion){let e=D.transitions.getAutoHeightDuration(n);k.current=e}else k.current=null;let a=N.getTransitionTiming({duration:k.current??r,delay:void 0});e.style.transitionDuration=typeof a.duration==`string`?a.duration:`${a.duration}ms`,e.style[M]=`${n}px`,e.style.transitionTimingFunction=i,p&&p(e,t)}),te=pd(P,(e,t)=>{e.style[M]=`auto`,f&&f(e,t)}),ne=pd(P,e=>{e.style[M]=`${I()}px`,m&&m(e)}),re=pd(P,h),ie=pd(P,e=>{let t=I(),{duration:n,easing:r}=hd({style:b,timeout:x,easing:l},{mode:`exit`});if(x===`auto`&&!N.shouldReduceMotion){let e=D.transitions.getAutoHeightDuration(t);k.current=e}else k.current=null;let i=N.getTransitionTiming({duration:k.current??n,delay:void 0});e.style.transitionDuration=typeof i.duration==`string`?i.duration:`${i.duration}ms`,e.style[M]=A,e.style.transitionTimingFunction=r,g&&g(e)}),ae=r?e=>{r(P.current,e)}:void 0,oe={slots:v,slotProps:y,component:s},[se,ce]=X(`root`,{ref:F,className:B(E.root,a),elementType:Og,externalForwardedProps:oe,ownerState:T,additionalProps:{style:{[j?`minWidth`:`minHeight`]:A,...b}}}),[le,ue]=X(`wrapper`,{ref:O,className:E.wrapper,elementType:kg,externalForwardedProps:oe,ownerState:T}),[de,fe]=X(`wrapperInner`,{className:E.wrapperInner,elementType:Ag,externalForwardedProps:oe,ownerState:T});return(0,z.jsx)(C,{in:u,onEnter:R,onEntered:te,onEntering:ee,onExit:ne,onExited:re,onExiting:ie,addEndListener:ae,getAutoTimeout:x===`auto`?()=>k.current:void 0,reduceMotion:N.shouldReduceMotion,nodeRef:P,timeout:x===`auto`?null:x,...w,children:(e,{ownerState:t,...n})=>{let r={...T,state:e};return(0,z.jsx)(se,{...ce,className:B(ce.className,{entered:E.entered,exited:!u&&A===`0px`&&E.hidden}[e]),ownerState:r,...n,children:(0,z.jsx)(le,{...ue,ownerState:r,children:(0,z.jsx)(de,{...fe,ownerState:r,children:i})})})}})});jg&&(jg.muiSupportAuto=!0);function Mg(e){return V(`MuiPaper`,e)}H(`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 Ng=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return W({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},Mg,i)},Pg=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}`]]}})(q(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,..._d(e,`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)`}}]}))),Fg=S.forwardRef(function(e,t){let n=J({props:e,name:`MuiPaper`}),r=Bu(),{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},d=Ng(u);return(0,z.jsx)(Pg,{as:a,ownerState:u,className:B(d.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(${U(`#fff`,ru(o))}, ${U(`#fff`,ru(o))})`}},...l.style}})}),Ig=H(`MuiAccordion`,[`root`,`heading`,`rounded`,`expanded`,`disabled`,`gutters`,`region`]),Lg=S.createContext();function lee(e){return V(`MuiTableRow`,e)}var Rg=H(`MuiTableRow`,[`root`,`selected`,`hover`,`head`,`footer`]),uee=e=>{let{classes:t,selected:n,hover:r,head:i,footer:a}=e;return W({root:[`root`,n&&`selected`,r&&`hover`,i&&`head`,a&&`footer`]},lee,t)},dee=K(`tr`,{name:`MuiTableRow`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(q(({theme:e})=>({color:`inherit`,display:`table-row`,verticalAlign:`middle`,outline:0,[`&.${Rg.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Rg.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}`)}}}))),zg=`tr`,Bg=S.forwardRef(function(e,t){let n=J({props:e,name:`MuiTableRow`}),{className:r,component:i=zg,hover:a=!1,selected:o=!1,...s}=n,c=S.useContext(Lg),l={...n,component:i,hover:a,selected:o,head:c&&c.variant===`head`,footer:c&&c.variant===`footer`},u=uee(l);return(0,z.jsx)(dee,{as:i,ref:t,className:B(u.root,r),role:i===zg?null:`row`,ownerState:l,...s})}),Vg=S.createContext();function Hg(e){return V(`MuiTableCell`,e)}var Ug=H(`MuiTableCell`,[`root`,`head`,`body`,`footer`,`sizeSmall`,`sizeMedium`,`paddingCheckbox`,`paddingNone`,`alignLeft`,`alignCenter`,`alignRight`,`alignJustify`,`stickyHeader`]),Wg=e=>{let{classes:t,variant:n,align:r,padding:i,size:a,stickyHeader:o}=e;return W({root:[`root`,n,o&&`stickyHeader`,r!==`inherit`&&`align${Y(r)}`,i!==`normal`&&`padding${Y(i)}`,`size${Y(a)}`]},Hg,t)},Gg=K(`td`,{name:`MuiTableCell`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Y(n.size)}`],n.padding!==`normal`&&t[`padding${Y(n.padding)}`],n.align!==`inherit`&&t[`align${Y(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(q(({theme:e})=>({...e.typography.body2,display:`table-cell`,verticalAlign:`inherit`,borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
176
+ ${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`,[`&.${Ug.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}}]}))),Kg=S.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=S.useContext(Vg),p=S.useContext(Lg),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=Wg(v),b=null;return l&&(b=l===`asc`?`ascending`:`descending`),(0,z.jsx)(Gg,{as:h,ref:t,className:B(y.root,i),"aria-sort":b,scope:g,ownerState:v,...d})}),qg=$m((0,z.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`),Jg=$m((0,z.jsx)(`path`,{d:`M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z`}),`Warning`);function Yg(e){return V(`MuiStepIcon`,e)}var Xg=H(`MuiStepIcon`,[`root`,`active`,`completed`,`error`,`text`]),Zg,Qg=e=>{let{classes:t,active:n,completed:r,error:i}=e;return W({root:[`root`,n&&`active`,r&&`completed`,i&&`error`],text:[`text`]},Yg,t)},$g=K(Qm,{name:`MuiStepIcon`,slot:`Root`})(q(({theme:e})=>({display:`block`,..._d(e,`color`,{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${Xg.completed}, &.${Xg.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${Xg.error}`]:{color:(e.vars||e).palette.error.main}}))),e_=K(`text`,{name:`MuiStepIcon`,slot:`Text`})(q(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily}))),t_=S.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=Qg(l);if(typeof s==`number`||typeof s==`string`){let e=B(i,u.root);return o?(0,z.jsx)($g,{as:Jg,className:e,ref:t,ownerState:l,...c}):a?(0,z.jsx)($g,{as:qg,className:e,ref:t,ownerState:l,...c}):(0,z.jsxs)($g,{className:e,ref:t,ownerState:l,...c,children:[Zg||=(0,z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`12`}),(0,z.jsx)(e_,{className:u.text,x:`12`,y:`12`,textAnchor:`middle`,dominantBaseline:`central`,ownerState:l,children:s})]})}return s}),n_=S.createContext({}),r_=S.createContext({});function i_(){return S.useContext(r_)}function a_(e){return V(`MuiStepLabel`,e)}var o_=H(`MuiStepLabel`,[`root`,`horizontal`,`vertical`,`label`,`active`,`completed`,`error`,`disabled`,`iconContainer`,`alternativeLabel`,`labelContainer`]),s_=e=>{let{classes:t,orientation:n,active:r,completed:i,error:a,disabled:o,alternativeLabel:s}=e;return W({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`]},a_,t)},c_=K(`span`,{name:`MuiStepLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation]]}})({display:`flex`,alignItems:`center`,[`&.${o_.disabled}`]:{cursor:`default`},variants:[{props:{orientation:`vertical`},style:{textAlign:`left`,padding:`8px 0`}},{props:{alternativeLabel:!0},style:{flexDirection:`column`}},{props:{orientation:`vertical`,alternativeLabel:!0},style:{flexDirection:`row-reverse`}}]}),l_=K(`span`,{name:`MuiStepLabel`,slot:`Label`})(q(({theme:e})=>({...e.typography.body2,display:`block`,..._d(e,`color`,{duration:e.transitions.duration.shortest}),[`&.${o_.active}, &.${o_.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${o_.alternativeLabel}`]:{marginTop:16},[`&.${o_.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{orientation:`vertical`,alternativeLabel:!0},style:{[`&.${o_.alternativeLabel}`]:{marginTop:0}}}]}))),u_=K(`span`,{name:`MuiStepLabel`,slot:`IconContainer`})({flexShrink:0,display:`flex`,paddingRight:8,[`&.${o_.alternativeLabel}`]:{paddingRight:0},variants:[{props:{orientation:`vertical`,alternativeLabel:!0},style:{paddingRight:0,paddingLeft:8}}]}),d_=K(`span`,{name:`MuiStepLabel`,slot:`LabelContainer`})(q(({theme:e})=>({width:`100%`,color:(e.vars||e).palette.text.secondary,[`&.${o_.alternativeLabel}`]:{textAlign:`center`},variants:[{props:{orientation:`vertical`,alternativeLabel:!0},style:{[`&.${o_.alternativeLabel}`]:{textAlign:`right`}}}]}))),f_=S.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}=i_(),{active:p,disabled:m,completed:h,icon:g}=S.useContext(n_),_=o||g,v={...n,active:p,alternativeLabel:d,completed:h,disabled:m,error:a,orientation:f},y=s_(v),b={slots:c,slotProps:l},[x,C]=X(`root`,{elementType:c_,externalForwardedProps:{...b,...u},ownerState:v,ref:t,className:B(y.root,i)}),[w,T]=X(`label`,{elementType:l_,externalForwardedProps:b,ownerState:v}),[E,D]=X(`stepIcon`,{elementType:_?t_:void 0,externalForwardedProps:b,ownerState:v});return(0,z.jsxs)(x,{...C,children:[_||E?(0,z.jsx)(u_,{className:y.iconContainer,ownerState:v,children:(0,z.jsx)(E,{completed:h,active:p,error:a,icon:_,...D})}):null,(0,z.jsxs)(d_,{className:y.labelContainer,ownerState:v,children:[r?(0,z.jsx)(w,{...T,className:B(y.label,T?.className),children:r}):null,s]})]})});f_.muiName=`StepLabel`;var p_=S.createContext(void 0);function m_(){let e=S.useContext(p_);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 h_=Object.is;function g_(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,!h_(e[r],t[r])||!(r in t))return!1;for(let e in t)r+=1;return n===r}var __=[`ArrowRight`,`ArrowLeft`,`ArrowUp`,`ArrowDown`,`Home`,`End`];function v_(e){let{activeItemId:t,getDefaultActiveItemId:n,orientation:r,isRtl:i=!1,isItemFocusable:a=M_,wrap:o=!0}=e,[s,c]=S.useState(t),[l,u]=S.useState(t),d=s;t!==l&&(u(t),t!==void 0&&t!==s&&(d=t,c(t)));let f=S.useRef(null),p=S.useRef(new Map),[m,h]=S.useState(0),g=S.useMemo(()=>k_(p.current),[m]),_=b_(d,g,a,n),v=S.useRef(_);v.current=_;let y=S.useCallback(()=>{let e=k_(p.current);return E_(e,b_(v.current,e,a,n))},[n,a]),b=S.useCallback(()=>p.current,[]),x=Ou(e=>{g_(p.current.get(e.id)??null,e)||(p.current.set(e.id,e),h(e=>e+1))}),C=Ou(e=>{p.current.delete(e)&&h(e=>e+1)}),w=Ou(e=>{c(e)}),T=S.useCallback(e=>v.current===e,[]),E=S.useCallback((e,t,n,r)=>{let i=w_(A_(p.current),e,t,n,r??a);return i?(i.element?.focus(),c(i.id),i):null},[a]),D=S.useCallback((e,t,n)=>({onFocus:e=>{t?.(e);let n=A_(p.current),r=O_(n,e.target);r!==-1&&c(n[r].id)},onKeyDown:e=>{if(n?.(e),e.defaultPrevented||e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||!__.includes(e.key))return;let t=r===`horizontal`?`ArrowLeft`:`ArrowUp`,a=r===`horizontal`?`ArrowRight`:`ArrowDown`;r===`horizontal`&&i&&(t=`ArrowRight`,a=`ArrowLeft`);let s=A_(p.current),c=Ju(ku(f.current)),l=c===f.current,u=C_(s,c,v.current),d=`next`;switch(e.key){case t:d=`previous`,e.preventDefault(),l&&(u=s.length);break;case a:e.preventDefault(),l&&(u=-1);break;case`Home`:e.preventDefault(),u=-1;break;case`End`:e.preventDefault(),d=`previous`,u=s.length;break;default:return}E(u,d,o)},ref:F_(e,e=>{f.current=e})}),[E,i,r,o]),O=S.useCallback(e=>{let t=A_(p.current),n=Ju(ku(f.current)),r=n===f.current?-1:C_(t,n,v.current);return E(r,`next`,!0,e)?.id??null},[E]);return S.useMemo(()=>({activeItemId:_,focusNext:O,getActiveItem:y,getContainerProps:D,getItemMap:b,isItemActive:T,registerItem:x,setActiveItemId:w,unregisterItem:C}),[_,O,y,D,b,T,x,w,C])}function y_(e){let{activeItemId:t,registerItem:n,unregisterItem:r}=m_(),i=S.useRef(null),a=S.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=S.useRef(a);o.current=a;let s=S.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=Du(e.ref,s);return Es(()=>{i.current&&n({...a,element:i.current})},[a,n]),Es(()=>{let t=e.id;return()=>{r(t)}},[e.id,r]),{ref:c,tabIndex:t===e.id?0:-1}}function b_(e,t,n,r){return e==null?S_(t,n,r):x_(e,t,n)}function x_(e,t,n){let r=D_(t,e);return r===-1?T_(t,n):n(t[r])?t[r].id:w_(t,r,`next`,!1,n)?.id??null}function S_(e,t,n){let r=n?.(e);if(r!=null){let n=E_(e,r);if(n&&t(n))return n.id}return T_(e,t)}function C_(e,t,n){if(t){let n=O_(e,t);if(n!==-1)return n}return D_(e,n)}function w_(e,t,n,r,i){let a=e.length-1;if(a===-1)return null;let o=!1,s=j_(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=j_(s,a,n,r);else return t}return null}function T_(e,t){return e.find(e=>t(e))?.id??null}function E_(e,t){return t==null?null:e.find(e=>e.id===t)??null}function D_(e,t){return t==null?-1:e.findIndex(e=>e.id===t)}function O_(e,t){return t?e.findIndex(e=>e.element===t||e.element?.contains(t)):-1}function k_(e){let t=Array.from(e.values());if(t.every(e=>e.element==null))return t;let n=t.filter(N_).sort((e,t)=>P_(e.element,t.element)),r=t.filter(e=>!N_(e));return[...n,...r]}function A_(e){return k_(e).filter(N_)}function j_(e,t,n,r=!0){return n===`next`?e===t?r?0:-1:e+1:e===0?r?t:-1:e-1}function M_(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 N_(e){return e.element!=null&&e.element.isConnected}function P_(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 F_(...e){return t=>{e.forEach(e=>{rh(e??null,t)})}}var I_=H(`MuiPaginationItem`,[`root`,`page`,`sizeSmall`,`sizeLarge`,`text`,`outlined`,`rounded`,`ellipsis`,`firstLast`,`previousNext`,`focusVisible`,`disabled`,`selected`,`icon`,`colorPrimary`,`colorSecondary`]),L_=$m((0,z.jsx)(`path`,{d:`M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z`}),`FirstPage`),R_=$m((0,z.jsx)(`path`,{d:`M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z`}),`LastPage`);function z_(e,t=`500`){let n=`${t}Channel`;return e.vars?.palette.grey?.[n]??{500:`145 158 171`,900:`0 0 0`}[t]}function B_(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 V_(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 H_(e){switch(e){case`compact`:return .75;case`comfortable`:return 1.25;default:return 1}}function U_(e){return V(`MuiButton`,e)}var W_=H(`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(`.`)),G_=S.createContext({}),K_=S.createContext(void 0),q_=e=>{let{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,loading:o,loadingPosition:s,classes:c}=e,l=W({root:[`root`,o&&`loading`,a,`size${Y(i)}`,`color${Y(t)}`,n&&`disableElevation`,r&&`fullWidth`,o&&`loadingPosition${Y(s)}`],startIcon:[`icon`,`startIcon`],endIcon:[`icon`,`endIcon`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},U_,c);return{...c,...l}},J_=[{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}}}],Y_=K(rg,{shouldForwardProp:e=>Uu(e)||e===`classes`,name:`MuiButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Y(n.size)}`],n.color===`inherit`&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(q(({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,..._d(e,[`background-color`,`box-shadow`,`border-color`,`color`],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:`none`},[`&.${W_.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]},[`&.${W_.focusVisible}`]:{...e.focusVisible,boxShadow:e.focusVisible?.boxShadow?`${(e.vars||e).shadows[6]}, ${e.focusVisible.boxShadow}`:(e.vars||e).shadows[6]},[`&.${W_.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)`,[`&.${W_.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(fh()).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`},[`&.${W_.focusVisible}`]:{boxShadow:e.focusVisible?.boxShadow??`none`},"&:active":{boxShadow:`none`},[`&.${W_.disabled}`]:{boxShadow:`none`}}},{props:{fullWidth:!0},style:{width:`100%`}},{props:{loadingPosition:`center`},style:{..._d(e,[`background-color`,`box-shadow`,`border-color`],{duration:e.transitions.duration.short}),[`&.${W_.loading}`]:{color:`transparent`}}}]}})),X_=K(`span`,{name:`MuiButton`,slot:`StartIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart]}})(({theme:e})=>({display:`inherit`,alignItems:`center`,marginRight:8,marginLeft:-4,"&::before":{content:`"\\200b"`,width:0,overflow:`hidden`},variants:[{props:{size:`small`},style:{marginLeft:-2}},{props:{loadingPosition:`start`,loading:!0},style:{..._d(e,[`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`start`,loading:!0,fullWidth:!0},style:{marginRight:-8}},...J_]})),Z_=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:{..._d(e,[`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`end`,loading:!0,fullWidth:!0},style:{marginLeft:-8}},...J_]})),Q_=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}}]})),$_=K(`span`,{name:`MuiButton`,slot:`LoadingIconPlaceholder`})({display:`inline-block`,width:`1em`,height:`1em`}),ev=S.forwardRef(function(e,t){let n=S.useContext(G_),r=S.useContext(K_),i=J({props:Cs(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:C=`text`,...w}=i,T=ih(h),E=_??(0,z.jsx)(lg,{"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:C},O=q_(D),k=(b||g&&v===`start`)&&(0,z.jsx)(X_,{className:O.startIcon,ownerState:D,children:b||(0,z.jsx)($_,{className:O.loadingIconPlaceholder,ownerState:D})}),A=(f||g&&v===`end`)&&(0,z.jsx)(Z_,{className:O.endIcon,ownerState:D,children:f||(0,z.jsx)($_,{className:O.loadingIconPlaceholder,ownerState:D})}),j=r||``,M=typeof g==`boolean`?(0,z.jsx)(`span`,{className:O.loadingWrapper,style:{display:`contents`},children:g&&(0,z.jsx)(Q_,{className:O.loadingIndicator,ownerState:D,children:E})}):null,{root:N,...P}=O;return(0,z.jsxs)(Y_,{ownerState:D,className:B(n.className,O.root,c,j),component:s,disabled:l||g,focusRipple:!d,focusVisibleClassName:B(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]})}),tv=[`primary`,`secondary`,`info`,`success`,`warning`,`error`],nv=[...tv.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`}})}],rv=[...tv.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}})}],iv=[`circle`,`square`],av={small:30,medium:36,large:42,xLarge:52},ov=iv.flatMap(e=>Object.keys(av).map(t=>({props:{shape:e,size:t},style:{height:av[t],minWidth:av[t],padding:0,borderRadius:e===`circle`?`50%`:void 0}}))),sv=[{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}})}],cv=[{props:{variant:`soft`},style:({theme:e})=>({[`&.${W_.disabled}`]:{backgroundColor:e.vars?.palette.action.disabledBackground||e.palette.action.disabledBackground}})},{props:{variant:`dashed`},style:({theme:e})=>({[`&.${W_.disabled}`]:{borderStyle:`dashed`}})}];function lv(e){let{borderRadius:t,density:n}=e,r=H_(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:[...nv,...rv,...ov,...sv,...i,...cv,{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-child":{fontSize:16}},endIcon:{marginLeft:4,"& > :first-child":{fontSize:16}}}}}function uv(){return{defaultProps:{disableRipple:!1}}}function dv(e){return{defaultProps:{disableElevation:!0},styleOverrides:{root:{borderRadius:e.borderRadius}}}}var fv=$m((0,z.jsx)(`path`,{d:`M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z`}),`Cancel`);function pv(e){return V(`MuiChip`,e)}var mv=H(`MuiChip`,[`root`,`sizeSmall`,`sizeMedium`,`colorDefault`,`colorError`,`colorInfo`,`colorPrimary`,`colorSecondary`,`colorSuccess`,`colorWarning`,`disabled`,`clickable`,`deletable`,`outlined`,`filled`,`avatar`,`icon`,`label`,`deleteIcon`,`focusVisible`]),hv=e=>{let{classes:t,disabled:n,size:r,color:i,onDelete:a,clickable:o,variant:s}=e;return W({root:[`root`,s,n&&`disabled`,`size${Y(r)}`,`color${Y(i)}`,o&&`clickable`,a&&`deletable`],label:[`label`],avatar:[`avatar`],icon:[`icon`],deleteIcon:[`deleteIcon`]},pv,t)},gv=K(`div`,{name:`MuiChip`,slot:`Root`,shouldForwardProp:e=>Uu(e)&&e!==`focusableWhenDisabled`&&e!==`skipFocusWhenDisabled`,overridesResolver:(e,t)=>{let{ownerState:n}=e,{color:r,clickable:i,onDelete:a,size:o,variant:s}=n;return[{[`& .${mv.avatar}`]:t.avatar},{[`& .${mv.icon}`]:t.icon},{[`& .${mv.deleteIcon}`]:t.deleteIcon},t.root,t[`size${Y(o)}`],t[`color${Y(r)}`],i&&t.clickable,a&&t.deletable,t[s]]}})(q(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:`100%`,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:`inline-flex`,alignItems:`center`,justifyContent:`center`,height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:`nowrap`,..._d(e,[`background-color`,`box-shadow`]),cursor:`unset`,outline:0,textDecoration:`none`,border:0,padding:0,verticalAlign:`middle`,boxSizing:`border-box`,[`&.${mv.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:`none`},[`& .${mv.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${mv.icon}`]:{marginLeft:5,marginRight:-6},[`& .${mv.deleteIcon}`]:{WebkitTapHighlightColor:`transparent`,color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:`pointer`,margin:`0 5px 0 -6px`,"&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{color:`primary`},style:{[`& .${mv.avatar}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark}}},{props:{color:`secondary`},style:{[`& .${mv.avatar}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark}}},{props:{size:`small`},style:{height:24,[`& .${mv.avatar}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${mv.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${mv.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(fh([`contrastText`])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText,[`& .${mv.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[t].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].contrastText}}}})),{props:e=>e.iconColor===e.color,style:{[`& .${mv.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:e=>e.iconColor===e.color&&e.color!=="default",style:{[`& .${mv.icon}`]:{color:`inherit`}}},{props:{onDelete:!0},style:!e.focusVisible&&{[`&.${mv.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(fh([`dark`])).map(([t])=>({props:{color:t,onDelete:!0},style:!e.focusVisible&&{[`&.${mv.focusVisible}`]:{background:(e.vars||e).palette[t].dark}}})),{props:{clickable:!0},style:{userSelect:`none`,WebkitTapHighlightColor:`transparent`,cursor:`pointer`,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},...!e.focusVisible&&{[`&.${mv.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(fh([`dark`])).map(([t])=>({props:{color:t,clickable:!0},style:{"&:hover":{backgroundColor:(e.vars||e).palette[t].dark},...!e.focusVisible&&{[`&.${mv.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark}}}})),{props:{variant:`outlined`},style:{backgroundColor:`transparent`,border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode===`light`?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${mv.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},...!e.focusVisible&&{[`&.${mv.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus}},[`& .${mv.avatar}`]:{marginLeft:4},[`& .${mv.icon}`]:{marginLeft:4},[`& .${mv.deleteIcon}`]:{marginRight:5}}},{props:{size:`small`,variant:`outlined`},style:{[`& .${mv.avatar}`]:{marginLeft:2},[`& .${mv.icon}`]:{marginLeft:2},[`& .${mv.deleteIcon}`]:{marginRight:3}}},...Object.entries(e.palette).filter(fh()).map(([t])=>({props:{variant:`outlined`,color:t},style:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.alpha((e.vars||e).palette[t].main,.7)}`,[`&.${mv.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)},...!e.focusVisible&&{[`&.${mv.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.focusOpacity)}},[`& .${mv.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[t].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].main}}}}))]}})),_v=K(`span`,{name:`MuiChip`,slot:`Label`})({overflow:`hidden`,textOverflow:`ellipsis`,paddingLeft:12,paddingRight:12,whiteSpace:`nowrap`,variants:[{props:{variant:`outlined`},style:{paddingLeft:11,paddingRight:11}},{props:{size:`small`},style:{paddingLeft:8,paddingRight:8}},{props:{size:`small`,variant:`outlined`},style:{paddingLeft:7,paddingRight:7}}]});function vv(e){return e.key===`Backspace`||e.key===`Delete`}var yv=S.forwardRef(function(e,t){let n=J({props:e,name:`MuiChip`}),{avatar:r,className:i,clickable:a,color:o=`default`,component:s,deleteIcon:c,disabled:l=!1,icon:u,label:d,onClick:f,onDelete:p,onKeyDown:m,onKeyUp:h,size:g=`medium`,variant:_=`filled`,tabIndex:v,skipFocusWhenDisabled:y=!1,slots:b={},slotProps:x={},...C}=n,{nativeButton:w,...T}=C,E=Gu(S.useRef(null),t),D=e=>{e.stopPropagation(),p(e)},O=e=>{e.currentTarget===e.target&&vv(e)&&e.preventDefault(),m&&m(e)},k=e=>{e.currentTarget===e.target&&p&&vv(e)&&p(e),h&&h(e)},A=a!==!1&&f?!0:a,j=A||p?rg:s||`div`,M={...n,component:j,disabled:l,size:g,color:o,iconColor:S.isValidElement(u)&&u.props.color||o,onDelete:!!p,clickable:A,variant:_},N=hv(M),P=j===rg?{component:s||`div`,internalNativeButton:!1,focusVisibleClassName:N.focusVisible,...p&&{disableRipple:!0},...w!==void 0&&{nativeButton:w}}:{},F=null;p&&(F=c&&S.isValidElement(c)?S.cloneElement(c,{className:B(c.props.className,N.deleteIcon),onClick:D}):(0,z.jsx)(fv,{className:N.deleteIcon,onClick:D}));let I=null;r&&S.isValidElement(r)&&(I=S.cloneElement(r,{className:B(N.avatar,r.props.className)}));let R=null;u&&S.isValidElement(u)&&(R=S.cloneElement(u,{className:B(N.icon,u.props.className)}));let ee={slots:b,slotProps:x},[te,ne]=X(`root`,{elementType:gv,externalForwardedProps:{...ee,...T},ownerState:M,shouldForwardComponentProp:!0,ref:E,className:B(N.root,i),additionalProps:{disabled:A&&l?!0:void 0,tabIndex:y&&l?-1:v,...P},getSlotProps:e=>({...e,onClick:t=>{e.onClick?.(t),f?.(t)},onKeyDown:t=>{e.onKeyDown?.(t),O(t)},onKeyUp:t=>{e.onKeyUp?.(t),k(t)}})}),[re,ie]=X(`label`,{elementType:_v,externalForwardedProps:ee,ownerState:M,className:N.label});return(0,z.jsxs)(te,{as:j,...ne,children:[I||R,(0,z.jsx)(re,{...ie,children:d}),F]})}),bv=[`primary`,`secondary`,`info`,`success`,`warning`,`error`],xv=[...bv.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})}],Sv=[...bv.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})}],Cv=[{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})}],wv=[{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})}],Tv=[{props:{},style:({theme:e})=>({[`&.${mv.disabled}`]:{opacity:1,color:e.vars?.palette.action.disabled||e.palette.action.disabled,[`&:not(.${mv.outlined})`]:{backgroundColor:e.vars?.palette.action.disabledBackground||e.palette.action.disabledBackground},[`&.${mv.outlined}`]:{borderColor:e.vars?.palette.action.disabledBackground||e.palette.action.disabledBackground}}})}],Ev=[{props:{size:`xSmall`},style:{height:20,fontSize:`0.6875rem`,padding:`0 6px`}}];function Dv(e){let{borderRadius:t,density:n}=e,r=H_(n);return{styleOverrides:{root:{borderRadius:t,fontWeight:500,variants:[...xv,...Sv,...Cv,...wv,...Tv,...Ev]},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 Ov(e,t){return e?{"&:hover":{...t,...typeof e==`object`?e:{}}}:{}}function kv(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=Ov(n?.hover,{backgroundColor:i[400]});return{...e,...t}}if(t===`inherit`){let e={color:r.common.white,backgroundColor:i[800]},t=Ov(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=Ov(n?.hover,{opacity:.8});return{...i,...a}}let a=r[t],o={color:a.contrastText,backgroundColor:a.main},s=Ov(n?.hover,{backgroundColor:a.dark});return{...o,...s}}function Av(e,t,n){if(!t)return{};let r=e.vars?.palette||e.palette,i=r.grey;if(t==="default")return{...kv(e,`default`,n),boxShadow:`none`};if(t===`inherit`){let e=i[`500Channel`]||`145, 158, 171`,t={boxShadow:`none`,backgroundColor:km(e,.16)},r=Ov(n?.hover,{backgroundColor:km(e,.32)});return{...t,...r}}if(t===`white`||t===`black`){let e={boxShadow:`none`,color:r.common[t],backgroundColor:km(`currentColor`,.08)},i=Ov(n?.hover,{backgroundColor:km(`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:km(o,.16)},c=Ov(n?.hover,{backgroundColor:km(o,.32)});return{...s,...c}}function jv(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 Mv(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 Nv(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??km(`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 Pv(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-child)":{marginBottom:4},"&.Mui-selected":{fontWeight:e.typography.fontWeightMedium,backgroundColor:t.action.selected,"&:hover":{backgroundColor:t.action.hover}}}}function Fv(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 Iv(e,...t){return{background:`linear-gradient(${e}, ${t.join(`, `)})`,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`,backgroundClip:`text`,textFillColor:`transparent`,display:`inline-block`}}function Lv(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 Rv(e){let t=(e.vars?.palette||e.palette).grey[`500Channel`]||`145, 158, 171`;return{scrollbarWidth:`thin`,scrollbarColor:`${km(t,.4)} ${km(t,.08)}`,"&::-webkit-scrollbar":{width:6,height:6},"&::-webkit-scrollbar-track":{backgroundColor:`transparent`},"&::-webkit-scrollbar-thumb":{backgroundColor:km(t,.4),borderRadius:3,"&:hover":{backgroundColor:km(t,.6)}}}}var zv={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:Mv,bgGradient:jv,maxLine:Fv,softStyles:Av,filledStyles:kv,paperStyles:Nv,menuItemStyles:Pv,varAlpha:km,textGradient:Iv,borderGradient:Lv,scrollbarStyles:Rv},Bv,Vv=K(`fieldset`,{name:`MuiNotchedOutlined`,shouldForwardProp:Uu})({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%`}),Hv=K(`legend`,{name:`MuiNotchedOutlined`,shouldForwardProp:Uu})(q(({theme:e})=>({float:`unset`,width:`auto`,overflow:`hidden`,variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:`11px`,..._d(e,`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,..._d(e,`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%`,..._d(e,`max-width`,{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Uv(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,z.jsx)(Vv,{"aria-hidden":!0,className:r,ownerState:c,...o,children:(0,z.jsx)(Hv,{ownerState:c,children:s?(0,z.jsx)(`span`,{children:i}):Bv||=(0,z.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:`​`})})})}function Wv(e){return V(`MuiSelect`,e)}var Gv=H(`MuiSelect`,[`root`,`select`,`multiple`,`filled`,`outlined`,`standard`,`disabled`,`focused`,`icon`,`iconOpen`,`nativeInput`,`error`]),Kv=e=>{let{classes:t}=e,n=W({root:[`root`],notchedOutline:[`notchedOutline`],input:[`input`]},Hd,t);return{...t,...n}},qv=K(wd,{shouldForwardProp:e=>Uu(e)||e===`classes`,name:`MuiOutlinedInput`,slot:`Root`,overridesResolver:xd})(q(({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 .${Ud.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ud.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ud.focused} .${Ud.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(fh()).map(([t])=>({props:{color:t},style:{[`&.${Ud.focused} .${Ud.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Ud.error} .${Ud.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ud.disabled} .${Ud.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{"--_trailingPad":`14px`,paddingRight:`var(--_trailingPad)`,[`&.${Gv.root}`]:{"--_trailingPad":`0px`}}},{props:({ownerState:e})=>e.multiline,style:{padding:`16.5px 14px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{padding:`8.5px 14px`}}]}})),Jv=K(Uv,{name:`MuiOutlinedInput`,slot:`NotchedOutline`})(q(({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}})),Yv=K(Td,{name:`MuiOutlinedInput`,slot:`Input`,overridesResolver:Sd})(q(({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}}]}))),Xv=S.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=Kv(n),[p,m]=Ru({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??qv,_=c.input??Yv,[v,y]=X(`notchedOutline`,{elementType:Jv,className:f.notchedOutline,shouldForwardComponentProp:!0,ownerState:h,externalForwardedProps:{slots:c,slotProps:l},additionalProps:{label:a!=null&&a!==``&&p.required?(0,z.jsxs)(S.Fragment,{children:[a,` `,`*`]}):a}});return(0,z.jsx)(Dd,{slots:{root:g,input:_},slotProps:l,renderSuffix:e=>(0,z.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}})});Xv.muiName=`Input`;var Zv=e=>{let{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:a,hiddenLabel:o,multiline:s}=e,c=W({root:[`root`,!n&&`underline`,r&&`adornedStart`,i&&`adornedEnd`,a===`small`&&`size${Y(a)}`,o&&`hiddenLabel`,s&&`multiline`],input:[`input`]},Od,t);return{...t,...c}},Qv=K(wd,{shouldForwardProp:e=>Uu(e)||e===`classes`,name:`MuiFilledInput`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...xd(e,t),!n.disableUnderline&&t.underline]}})(q(({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,..._d(e,`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}},[`&.${kd.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${kd.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)`,..._d(e,`transform`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:`none`},[`&.${kd.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${kd.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,..._d(e,`border-bottom-color`,{duration:e.transitions.duration.shorter}),pointerEvents:`none`},[`&:hover:not(.${kd.disabled}, .${kd.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${kd.disabled}:before`]:{borderBottomStyle:`dotted`}}},...Object.entries(e.palette).filter(fh()).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:{"--_trailingPad":`12px`,paddingRight:`var(--_trailingPad)`,[`&.${Gv.root}`]:{"--_trailingPad":`0px`}}},{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}}]}})),$v=K(Td,{name:`MuiFilledInput`,slot:`Input`,overridesResolver:Sd})(q(({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}}]}))),ey=S.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=Zv(n),h={root:{ownerState:p},input:{ownerState:p}},g=l?ha(h,l):h,_=u.root??Qv,v=u.input??$v;return(0,z.jsx)(Dd,{slots:{root:_,input:v},slotProps:g,fullWidth:i,inputComponent:o,multiline:s,ref:t,type:d,...f,classes:m})});ey.muiName=`Input`;function ty(e){return V(`MuiTypography`,e)}var ny=H(`MuiTypography`,[`root`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`subtitle1`,`subtitle2`,`body1`,`body2`,`inherit`,`button`,`caption`,`overline`,`alignLeft`,`alignRight`,`alignCenter`,`alignJustify`,`noWrap`,`gutterBottom`]),ry=e=>{let{align:t,gutterBottom:n,noWrap:r,variant:i,classes:a}=e;return W({root:[`root`,i,e.align!==`inherit`&&`align${Y(t)}`,n&&`gutterBottom`,r&&`noWrap`]},ty,a)},iy=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${Y(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom]}})(q(({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(fh()).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${Y(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`}}]}))),ay={h1:`h1`,h2:`h2`,h3:`h3`,h4:`h4`,h5:`h5`,h6:`h6`,subtitle1:`h6`,subtitle2:`h6`,body1:`p`,body2:`p`,inherit:`p`},oy=S.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=ay,...d}=n,f={...n,align:i,color:r,className:a,component:o,gutterBottom:s,noWrap:c,variant:l,variantMapping:u},p=o||u[l]||ay[l]||`span`,m=ry(f);return(0,z.jsx)(iy,{as:p,ref:t,className:B(m.root,a),...d,ownerState:f,style:{...i!==`inherit`&&{"--Typography-textAlign":i},...d.style}})});function sy(e){return V(`MuiInputAdornment`,e)}var cy=H(`MuiInputAdornment`,[`root`,`filled`,`standard`,`outlined`,`positionStart`,`positionEnd`,`disablePointerEvents`,`hiddenLabel`,`sizeSmall`]),ly,uy=(e,t)=>{let{ownerState:n}=e;return[t.root,t[`position${Y(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},dy=e=>{let{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:a,variant:o}=e;return W({root:[`root`,n&&`disablePointerEvents`,i&&`position${Y(i)}`,o,r&&`hiddenLabel`,a&&`size${Y(a)}`]},sy,t)},fy=K(`div`,{name:`MuiInputAdornment`,slot:`Root`,overridesResolver:uy})(q(({theme:e})=>({display:`flex`,maxHeight:`2em`,alignItems:`center`,whiteSpace:`nowrap`,color:(e.vars||e).palette.action.active,variants:[{props:{variant:`filled`},style:{[`&.${cy.positionStart}&:not(.${cy.hiddenLabel})`]:{marginTop:16}}},{props:{position:`start`},style:{marginRight:8}},{props:{position:`end`},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:`none`}}]}))),py=S.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=Lu()||{},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=dy(p);return(0,z.jsx)(Iu.Provider,{value:null,children:(0,z.jsx)(fy,{as:a,ownerState:p,className:B(m.root,i),ref:t,...u,children:typeof r==`string`&&!s?(0,z.jsx)(oy,{color:`textSecondary`,children:r}):(0,z.jsxs)(S.Fragment,{children:[c===`start`?ly||=(0,z.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:`​`}):null,r]})})})}),fee=e=>{let{classes:t,color:n,focused:r,disabled:i,error:a,filled:o,required:s}=e;return W({root:[`root`,`color${Y(n)}`,i&&`disabled`,a&&`error`,o&&`filled`,r&&`focused`,s&&`required`],asterisk:[`asterisk`,a&&`error`]},Md,t)},pee=K(`label`,{name:`MuiFormLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color===`secondary`&&t.colorSecondary,n.filled&&t.filled]}})(q(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:`1.4375em`,padding:0,position:`relative`,variants:[...Object.entries(e.palette).filter(fh()).map(([t])=>({props:{color:t},style:{[`&.${Nd.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Nd.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Nd.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),mee=K(`span`,{name:`MuiFormLabel`,slot:`Asterisk`})(q(({theme:e})=>({[`&.${Nd.error}`]:{color:(e.vars||e).palette.error.main}}))),hee=S.forwardRef(function(e,t){let n=J({props:e,name:`MuiFormLabel`}),{children:r,className:i,color:a,component:o=`label`,disabled:s,error:c,filled:l,focused:u,required:d,...f}=n,[p]=Ru({props:n,states:[`color`,`required`,`focused`,`disabled`,`error`,`filled`]}),m={...n,color:p.color||`primary`,component:o,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},h=fee(m);return(0,z.jsxs)(pee,{as:o,ownerState:m,className:B(h.root,i),ref:t,...f,children:[r,p.required&&(0,z.jsxs)(mee,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[` `,`*`]})]})});function gee(e){return V(`MuiInputLabel`,e)}var my=H(`MuiInputLabel`,[`root`,`focused`,`disabled`,`error`,`required`,`asterisk`,`formControl`,`sizeSmall`,`shrink`,`animated`,`standard`,`filled`,`outlined`]),_ee=e=>{let{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:o,required:s}=e,c=W({root:[`root`,n&&`formControl`,!a&&`animated`,i&&`shrink`,r&&r!==`medium`&&`size${Y(r)}`,o],asterisk:[s&&`asterisk`]},gee,t);return{...t,...c}},vee=K(hee,{shouldForwardProp:e=>Uu(e)||e===`classes`,name:`MuiInputLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${Nd.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size===`small`&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(q(({theme:e})=>({display:`block`,transformOrigin:`top left`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`,variants:[{props:({ownerState:e})=>e.formControl,style:{position:`absolute`,left:0,top:0,transform:`translate(0, 20px) scale(1)`}},{props:{size:`small`},style:{transform:`translate(0, 17px) scale(1)`}},{props:({ownerState:e})=>e.shrink,style:{transform:`translate(0, -1.5px) scale(0.75)`,transformOrigin:`top left`,maxWidth:`133%`}},{props:({ownerState:e})=>!e.disableAnimation,style:{..._d(e,[`color`,`transform`,`max-width`],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:`filled`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(12px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`filled`,size:`small`},style:{transform:`translate(12px, 13px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`filled`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,transform:`translate(12px, 7px) scale(0.75)`,maxWidth:`calc(133% - 24px)`}},{props:({variant:e,ownerState:t,size:n})=>e===`filled`&&t.shrink&&n===`small`,style:{transform:`translate(12px, 4px) scale(0.75)`}},{props:{variant:`outlined`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(14px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`outlined`,size:`small`},style:{transform:`translate(14px, 9px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`outlined`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,maxWidth:`calc(133% - 32px)`,transform:`translate(14px, -9px) scale(0.75)`}}]}))),hy=S.forwardRef(function(e,t){let n=J({name:`MuiInputLabel`,props:e}),{disableAnimation:r=!1,margin:i,shrink:a,variant:o,className:s,...c}=n,[l,u]=Ru({props:n,states:[`size`,`variant`,`required`,`focused`]}),d=a;d===void 0&&u&&(d=u.filled||u.focused||u.adornedStart);let f={...n,disableAnimation:r,formControl:u,shrink:d,size:l.size,variant:l.variant,required:l.required,focused:l.focused},p=_ee(f);return(0,z.jsx)(vee,{"data-shrink":d,ref:t,className:B(p.root,s),...c,ownerState:f,classes:p})}),yee={fontSize:{base:15,responsive:16},lineHeight:24},gy={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 _y(e,t){let{fontSize:n,lineHeight:r}=yee,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 bee(e){return e.vars?.palette.error?.mainChannel??`208 34 65`}var vy=[{props:e=>!!e.multiline,style:{padding:0}}],yy={root:e=>({"--disabled-color":e.vars?.palette.action.disabled||e.palette.action.disabled,..._y(e,[`lineHeight`]),[`&.${ed.disabled}`]:{[`& .${cy.root} *`]:{color:`var(--disabled-color)`}}}),input:e=>({..._y(e,[`fontSize`,`height`,`lineHeight`]),"&:focus":{borderRadius:`inherit`},"&::placeholder":{color:e.vars?.palette.text.disabled||e.palette.text.disabled,opacity:1}})},by={root:[{props:e=>!!e.multiline,style:{...gy.base.medium}},{props:e=>!!e.multiline&&e.size===`small`,style:{...gy.base.small}}],input:[{props:{},style:{...gy.base.medium}},{props:e=>e.size===`small`,style:{...gy.base.small}}]};function xee(e){return{styleOverrides:{root:({theme:e})=>({...yy.root(e),variants:by.root}),input:({theme:e})=>({...yy.input(e),variants:[...by.input,...vy]})}}}var See={root:e=>({"&::before":{borderBottomColor:km(z_(e),.2)},"&::after":{borderBottomColor:e.vars?.palette.text.primary||e.palette.text.primary}})};function Cee(e){return{styleOverrides:{root:({theme:e})=>See.root(e)}}}var xy={root:(e,t)=>({borderRadius:t,[`&.${Ud.focused}:not(.${Ud.error})`]:{[`& .${Ud.notchedOutline}`]:{borderColor:e.vars?.palette.text.primary||e.palette.text.primary}},[`&.${Ud.disabled}`]:{[`& .${Ud.notchedOutline}`]:{borderColor:e.vars?.palette.action.disabledBackground||e.palette.action.disabledBackground}}}),notchedOutline:e=>({borderColor:km(z_(e),.2),transition:e.transitions.create([`border-color`],{duration:e.transitions.duration.shortest}),fontSize:e.typography.pxToRem(14),"& legend > span":{paddingInline:3}})},Sy={root:[{props:e=>!!e.multiline,style:{...gy.outlined.medium}},{props:e=>!!e.multiline&&e.size===`small`,style:{...gy.outlined.small}}],input:[{props:{},style:{...gy.outlined.medium}},{props:e=>e.size===`small`,style:{...gy.outlined.small}}]};function wee(e){let{borderRadius:t}=e;return{styleOverrides:{root:({theme:e})=>({...xy.root(e,t),variants:Sy.root}),input:()=>({variants:[...Sy.input,...vy]}),notchedOutline:({theme:e})=>xy.notchedOutline(e)}}}var Tee={root:(e,t)=>{let n=z_(e),r=bee(e),i=km(n,.08),a=km(n,.16),o=km(r,.08),s=km(r,.16),c=e.vars?.palette.action.disabledBackground||e.palette.action.disabledBackground;return{backgroundColor:i,borderRadius:t,[`&:hover, &.${kd.focused}`]:{backgroundColor:a},[`&.${kd.error}`]:{backgroundColor:o,[`&:hover, &.${kd.focused}`]:{backgroundColor:s}},[`&.${kd.disabled}`]:{backgroundColor:c}}}},Cy={root:[{props:e=>!!e.multiline,style:{...gy.filled.medium}},{props:e=>!!e.multiline&&e.size===`small`,style:{...gy.filled.small}},{props:e=>!!e.multiline&&!!e.hiddenLabel,style:{...gy.filled.mediumHidden}},{props:e=>!!e.multiline&&!!e.hiddenLabel&&e.size===`small`,style:{...gy.filled.smallHidden}}],input:[{props:{},style:{...gy.filled.medium}},{props:e=>e.size===`small`,style:{...gy.filled.small}},{props:e=>!!e.hiddenLabel,style:{...gy.filled.mediumHidden}},{props:e=>!!e.hiddenLabel&&e.size===`small`,style:{...gy.filled.smallHidden}}]};function Eee(e){let{borderRadius:t}=e;return{defaultProps:{disableUnderline:!0},styleOverrides:{root:({theme:e})=>({...Tee.root(e,t),variants:Cy.root}),input:()=>({variants:[...Cy.input,...vy]})}}}function Dee(e){return{defaultProps:{variant:`outlined`,size:e.density===`compact`?`small`:`medium`}}}function Oee(e){return{styleOverrides:{root:({theme:e})=>({fontSize:e.typography.pxToRem(14),lineHeight:1.5,variants:[{props:e=>!e.shrink,style:{..._y(e,[`fontSize`,`lineHeight`]),color:e.vars?.palette.text.disabled||e.palette.text.disabled}},{props:e=>!!e.shrink,style:{fontWeight:600,[`&.${my.focused}:not(.${my.error})`]:{color:`inherit`}}}]})}}}function kee(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 Aee(e){return V(`PrivateSwitchBase`,e)}H(`PrivateSwitchBase`,[`root`,`checked`,`disabled`,`input`,`edgeStart`,`edgeEnd`]);var jee=e=>{let{classes:t,checked:n,disabled:r,edge:i}=e;return W({root:[`root`,n&&`checked`,r&&`disabled`,i&&`edge${Y(i)}`],input:[`input`]},Aee,t)},Mee=K(rg,{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}}]}),Nee=K(`input`,{name:`MuiSwitchBase`,shouldForwardProp:Uu})({cursor:`inherit`,position:`absolute`,opacity:0,width:`100%`,height:`100%`,top:0,left:0,margin:0,padding:0,zIndex:1}),wy=S.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]=oh({controlled:r,default:!!a,name:`SwitchBase`,state:`checked`}),D=Lu(),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=jee(N),F={slots:b,slotProps:x},[I,R]=X(`root`,{ref:t,elementType:Mee,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,internalDisabledThemeFocusVisible:!0}}),[ee,te]=X(`input`,{elementType:Nee,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,z.jsxs)(I,{...R,children:[(0,z.jsx)(ee,{...te}),T?i:l]})}),Ty=$m((0,z.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`),Ey=$m((0,z.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`),Dy=$m((0,z.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`),Oy=e=>{let{classes:t,indeterminate:n,color:r,size:i}=e,a=W({root:[`root`,n&&`indeterminate`,`color${Y(r)}`,`size${Y(i)}`]},Cu,t);return{...t,...a}},ky=K(wy,{shouldForwardProp:e=>Uu(e)||e===`classes`,name:`MuiCheckbox`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Y(n.size)}`],n.color!=="default"&&t[`color${Y(n.color)}`]]}})(q(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.focusVisible&&{[`&.${eg.focusVisible} svg:first-of-type`]:{...Cl,borderRadius:(e.vars||e).shape.borderRadius,...e.focusVisible}},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(fh()).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(fh()).map(([t])=>({props:{color:t},style:{[`&.${wu.checked}, &.${wu.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${wu.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:`transparent`}}}}]}))),Ay=(0,z.jsx)(Ey,{}),jy=(0,z.jsx)(Ty,{}),My=(0,z.jsx)(Dy,{}),Ny=S.forwardRef(function(e,t){let n=J({props:e,name:`MuiCheckbox`}),{checkedIcon:r=Ay,color:i=`primary`,icon:a=jy,indeterminate:o=!1,indeterminateIcon:s=My,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},_=Oy(g),v=f.input,[y,b]=X(`root`,{ref:t,elementType:ky,className:B(_.root,u),shouldForwardComponentProp:!0,externalForwardedProps:{slots:d,slotProps:f,...p},ownerState:g,additionalProps:{type:`checkbox`,icon:S.cloneElement(m,{fontSize:m.props.fontSize??c}),checkedIcon:S.cloneElement(h,{fontSize:h.props.fontSize??c}),disableRipple:n.disableRipple,slots:d,slotProps:{input:lh(typeof v==`function`?v(g):v,{"data-indeterminate":o,"aria-checked":o?`mixed`:void 0})}}});return(0,z.jsx)(y,{...b,classes:_})});function Py(e){return V(`MuiSwitch`,e)}var Fy=H(`MuiSwitch`,[`root`,`edgeStart`,`edgeEnd`,`switchBase`,`colorPrimary`,`colorSecondary`,`sizeSmall`,`sizeMedium`,`checked`,`disabled`,`input`,`thumb`,`track`]);function Iy(e){return(0,z.jsx)(Qm,{...e,children:(0,z.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 Ly(e){return(0,z.jsx)(Qm,{...e,children:(0,z.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 Ry(e){return(0,z.jsx)(Qm,{...e,children:(0,z.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 zy={small:{thumb:10,track:16,trackRadius:8,translateX:`10px`},medium:{thumb:14,track:20,trackRadius:10,translateX:`14px`}},By=[{props:e=>e.color==="default",style:({theme:e})=>({[`&.${Fy.checked}`]:{[`& + .${Fy.track}`]:{backgroundColor:e.vars?.palette.text.primary},[`& .${Fy.thumb}`]:{...e.applyStyles(`dark`,{color:e.vars?.palette.grey[800]})}}})}],Vy=[{props:{},style:{[`&.${Fy.checked}`]:{transform:`translateX(${zy.medium.translateX})`,[`& + .${Fy.track}`]:{opacity:1}}}}],Hy=[{props:{},style:({theme:e})=>({[`&.${Fy.disabled}`]:{[`& + .${Fy.track}`]:{opacity:.48},[`& .${Fy.thumb}`]:{...e.applyStyles(`dark`,{opacity:.48})}}})}],Uy=[{props:e=>e.size===`small`,style:{[`& .${Fy.switchBase}`]:{[`&.${Fy.checked}`]:{transform:`translateX(${zy.small.translateX})`}},[`& .${Fy.thumb}`]:{width:zy.small.thumb,height:zy.small.thumb},[`& .${Fy.track}`]:{height:zy.small.track,borderRadius:zy.small.trackRadius}}}];function Wy(e){return{defaultProps:{size:e.density===`compact`?`small`:`medium`,icon:(0,z.jsx)(Iy,{}),checkedIcon:(0,z.jsx)(Ly,{}),indeterminateIcon:(0,z.jsx)(Ry,{})},styleOverrides:{root:({theme:e})=>({padding:e.spacing(1),variants:[{props:e=>e.color==="default",style:{[`&.${wu.checked}`]:{color:e.vars?.palette.text.primary}}},...[`primary`,`secondary`,`info`,`success`,`warning`,`error`].map(t=>({props:{color:t},style:{"&:hover":{backgroundColor:km(e.vars?.palette[t]?.mainChannel??`51 133 240`,.12)}}}))]}),sizeSmall:{"& svg":{fontSize:16}},sizeMedium:{"& svg":{fontSize:20}}}}}function Gy(e){return{defaultProps:{size:e.density===`compact`?`small`:`medium`},styleOverrides:{root:({theme:e})=>({padding:e.spacing(1),variants:[{props:e=>e.color==="default",style:{[`&.${Wd.checked}`]:{color:e.vars?.palette.text.primary}}}]})}}}function Ky(e){return{defaultProps:{size:e.density===`compact`?`small`:`medium`},styleOverrides:{root:{alignItems:`center`,variants:[...Uy]},switchBase:{top:`auto`,left:`6px`,variants:[...By,...Vy,...Hy]},thumb:({theme:e})=>({width:zy.medium.thumb,height:zy.medium.thumb,color:e.vars?.palette.common.white}),track:({theme:e})=>({height:zy.medium.track,borderRadius:zy.medium.trackRadius,backgroundColor:km(z_(e),.48),opacity:1})}}}function qy(e){return{styleOverrides:{root:({theme:e})=>({[`&.${Nd.disabled}`]:{color:e.vars?.palette.action.disabled},variants:[{props:e=>!e.error,style:{[`&.${Nd.focused}`]:{color:e.vars?.palette.text.secondary}}}]})}}}function Jy(e){return{styleOverrides:{label:({theme:e})=>({...e.typography.body2})}}}function Yy(e){return{defaultProps:{variant:`outlined`},styleOverrides:{root:{"& .MuiFormLabel-root":{marginBottom:8}}}}}function Xy(e){return V(`MuiTab`,e)}var Zy=H(`MuiTab`,[`root`,`labelIcon`,`textColorInherit`,`textColorPrimary`,`textColorSecondary`,`selected`,`disabled`,`fullWidth`,`wrapped`,`icon`]),Qy=e=>{let{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:a,label:o,selected:s,disabled:c}=e;return W({root:[`root`,a&&o&&`labelIcon`,`textColor${Y(n)}`,r&&`fullWidth`,i&&`wrapped`,s&&`selected`,c&&`disabled`],icon:[`icon`]},Xy,t)},$y=K(rg,{name:`MuiTab`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Y(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Zy.icon}`]:t.icon}]}})(q(({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,...e.focusVisible&&Tl(3),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:{[`& > .${Zy.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`bottom`,style:{[`& > .${Zy.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`start`,style:{[`& > .${Zy.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`end`,style:{[`& > .${Zy.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:`inherit`},style:{color:`inherit`,opacity:.6,[`&.${Zy.selected}`]:{opacity:1},...e.focusVisible&&{[`&.${eg.focusVisible}`]:{opacity:1}},[`&.${Zy.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:`primary`},style:{color:(e.vars||e).palette.text.secondary,[`&.${Zy.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Zy.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:`secondary`},style:{color:(e.vars||e).palette.text.secondary,[`&.${Zy.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Zy.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)}}]}))),eb=S.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=m_(),x=y_({id:_,ref:t,disabled:i,selected:m}),C=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=Qy(w),E=s&&u&&S.isValidElement(s)?S.cloneElement(s,{className:B(T.icon,s.props.className)}):s;return(0,z.jsxs)($y,{internalNativeButton:!0,focusRipple:!a,className:B(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:C,ownerState:w,...y,children:[c===`top`||c===`start`?(0,z.jsxs)(S.Fragment,{children:[E,u]}):(0,z.jsxs)(S.Fragment,{children:[u,E]}),l]})}),tb={root:[{props:e=>e.indicatorColor===`inherit`,style:{"& .MuiTabs-indicator":{backgroundColor:`currentColor`}}}],list:[{props:{},style:({theme:e})=>({gap:e.spacing(1)})}]},nb=[{props:{},style:({theme:e})=>({[`&.${Zy.selected}`]:{fontWeight:600,color:e.vars?.palette.text.primary||e.palette.text.primary}})},{props:e=>!!e.icon&&!!e.label,style:{minHeight:`auto`}}];function rb(e){let t=H_(e.density);return{defaultProps:{variant:`scrollable`,textColor:`inherit`,indicatorColor:`primary`,allowScrollButtonsMobile:!0},styleOverrides:{root:({theme:e})=>({minHeight:36*t,variants:[...tb.root]}),list:{variants:[...tb.list]},indicator:{borderRadius:2}}}}function ib(e){let t=H_(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,[`& .${Ym.root}`]:{fontSize:20},variants:[...nb]})}}}function ab(e){let{density:t,borderRadius:n}=e,r=H_(t);return{MuiDialog:{styleOverrides:{paper:({theme:e})=>({boxShadow:`0 24px 48px -12px rgba(${z_(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 ob(e){let{density:t,borderRadius:n}=e,r=H_(t);return{MuiCard:{defaultProps:{elevation:0},styleOverrides:{root:({theme:e})=>({position:`relative`,zIndex:0,borderRadius:n*1.5,border:`1px solid ${B_(e,`divider`)}`,backgroundImage:`none`,boxShadow:`0 0 2px 0 rgba(${z_(e)} / 0.2), 0 12px 24px -4px rgba(${z_(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:B_(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 sb(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 cb(e){let t=S.useRef({});return S.useEffect(()=>{t.current=e}),t.current}var lb=`bottom`,ub=`right`,db=`left`,fb=`auto`,pb=[`top`,lb,ub,db],mb=`start`,hb=`clippingParents`,gb=`viewport`,_b=`popper`,vb=`reference`,yb=pb.reduce(function(e,t){return e.concat([t+`-`+mb,t+`-end`])},[]),bb=[].concat(pb,[fb]).reduce(function(e,t){return e.concat([t,t+`-`+mb,t+`-end`])},[]),xb=[`beforeRead`,`read`,`afterRead`,`beforeMain`,`main`,`afterMain`,`beforeWrite`,`write`,`afterWrite`];function Sb(e){return e?(e.nodeName||``).toLowerCase():null}function Cb(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function wb(e){return e instanceof Cb(e).Element||e instanceof Element}function Tb(e){return e instanceof Cb(e).HTMLElement||e instanceof HTMLElement}function Eb(e){return typeof ShadowRoot>`u`?!1:e instanceof Cb(e).ShadowRoot||e instanceof ShadowRoot}function Db(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];Tb(i)&&Sb(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function Ob(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});Tb(r)&&Sb(r)&&(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var kb={name:`applyStyles`,enabled:!0,phase:`write`,fn:Db,effect:Ob,requires:[`computeStyles`]};function Ab(e){return e.split(`-`)[0]}var jb=Math.max,Mb=Math.min,Nb=Math.round;function Pb(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function Fb(){return!/^((?!chrome|android).)*safari/i.test(Pb())}function Ib(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&Tb(e)&&(i=e.offsetWidth>0&&Nb(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Nb(r.height)/e.offsetHeight||1);var o=(wb(e)?Cb(e):window).visualViewport,s=!Fb()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function Lb(e){var t=Ib(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Rb(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Eb(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function zb(e){return Cb(e).getComputedStyle(e)}function Bb(e){return[`table`,`td`,`th`].indexOf(Sb(e))>=0}function Vb(e){return((wb(e)?e.ownerDocument:e.document)||window.document).documentElement}function Hb(e){return Sb(e)===`html`?e:e.assignedSlot||e.parentNode||(Eb(e)?e.host:null)||Vb(e)}function Ub(e){return!Tb(e)||zb(e).position===`fixed`?null:e.offsetParent}function Wb(e){var t=/firefox/i.test(Pb());if(/Trident/i.test(Pb())&&Tb(e)&&zb(e).position===`fixed`)return null;var n=Hb(e);for(Eb(n)&&(n=n.host);Tb(n)&&[`html`,`body`].indexOf(Sb(n))<0;){var r=zb(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function Gb(e){for(var t=Cb(e),n=Ub(e);n&&Bb(n)&&zb(n).position===`static`;)n=Ub(n);return n&&(Sb(n)===`html`||Sb(n)===`body`&&zb(n).position===`static`)?t:n||Wb(e)||t}function Kb(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function qb(e,t,n){return jb(e,Mb(t,n))}function Jb(e,t,n){var r=qb(e,t,n);return r>n?n:r}function Yb(){return{top:0,right:0,bottom:0,left:0}}function Xb(e){return Object.assign({},Yb(),e)}function Zb(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Qb=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,Xb(typeof e==`number`?Zb(e,pb):e)};function $b(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Ab(n.placement),c=Kb(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(a&&o){var u=Qb(i.padding,n),d=Lb(a),f=c===`y`?`top`:db,p=c===`y`?lb:ub,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=Gb(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=qb(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function ex(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||Rb(t.elements.popper,r)&&(t.elements.arrow=r))}var tx={name:`arrow`,enabled:!0,phase:`main`,fn:$b,effect:ex,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function nx(e){return e.split(`-`)[1]}var rx={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function ix(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Nb(n*i)/i||0,y:Nb(r*i)/i||0}}function ax(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=db,b=`top`,x=window;if(l){var S=Gb(n),C=`clientHeight`,w=`clientWidth`;if(S===Cb(n)&&(S=Vb(n),zb(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=lb;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=ub;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var D=Object.assign({position:s},l&&rx),O=u===!0?ix({x:p,y:h},Cb(n)):{x:p,y:h};if(p=O.x,h=O.y,c){var k;return Object.assign({},D,(k={},k[b]=v?`0`:``,k[y]=_?`0`:``,k.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,k))}return Object.assign({},D,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function ox(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0||r,a=n.adaptive,o=a===void 0||a,s=n.roundOffsets,c=s===void 0||s,l={placement:Ab(t.placement),variation:nx(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ax(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ax(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var sx={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:ox,data:{}},cx={passive:!0};function lx(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0||i,o=r.resize,s=o===void 0||o,c=Cb(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,cx)}),s&&c.addEventListener(`resize`,n.update,cx),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,cx)}),s&&c.removeEventListener(`resize`,n.update,cx)}}var ux={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:lx,data:{}},dx={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function fx(e){return e.replace(/left|right|bottom|top/g,function(e){return dx[e]})}var px={start:`end`,end:`start`};function mx(e){return e.replace(/start|end/g,function(e){return px[e]})}function hx(e){var t=Cb(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function gx(e){return Ib(Vb(e)).left+hx(e).scrollLeft}function _x(e,t){var n=Cb(e),r=Vb(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=Fb();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+gx(e),y:c}}function vx(e){var t=Vb(e),n=hx(e),r=e.ownerDocument?.body,i=jb(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=jb(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+gx(e),s=-n.scrollTop;return zb(r||t).direction===`rtl`&&(o+=jb(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function yx(e){var t=zb(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function bx(e){return[`html`,`body`,`#document`].indexOf(Sb(e))>=0?e.ownerDocument.body:Tb(e)&&yx(e)?e:bx(Hb(e))}function xx(e,t){t===void 0&&(t=[]);var n=bx(e),r=n===e.ownerDocument?.body,i=Cb(n),a=r?[i].concat(i.visualViewport||[],yx(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(xx(Hb(a)))}function Sx(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Cx(e,t){var n=Ib(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function wx(e,t,n){return t===`viewport`?Sx(_x(e,n)):wb(t)?Cx(t,n):Sx(vx(Vb(e)))}function Tx(e){var t=xx(Hb(e)),n=[`absolute`,`fixed`].indexOf(zb(e).position)>=0&&Tb(e)?Gb(e):e;return wb(n)?t.filter(function(e){return wb(e)&&Rb(e,n)&&Sb(e)!==`body`}):[]}function Ex(e,t,n,r){var i=t===`clippingParents`?Tx(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=wx(e,n,r);return t.top=jb(i.top,t.top),t.right=Mb(i.right,t.right),t.bottom=Mb(i.bottom,t.bottom),t.left=jb(i.left,t.left),t},wx(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Dx(e){var t=e.reference,n=e.element,r=e.placement,i=r?Ab(r):null,a=r?nx(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case lb:c={x:o,y:t.y+t.height};break;case ub:c={x:t.x+t.width,y:s};break;case db:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?Kb(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case mb:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2)}}return c}function Ox(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?hb:s,l=n.rootBoundary,u=l===void 0?gb:l,d=n.elementContext,f=d===void 0?_b:d,p=n.altBoundary,m=p!==void 0&&p,h=n.padding,g=h===void 0?0:h,_=Xb(typeof g==`number`?Zb(g,pb):g),v=f===`popper`?vb:_b,y=e.rects.popper,b=e.elements[m?v:f],x=Ex(wb(b)?b:b.contextElement||Vb(e.elements.popper),c,u,o),S=Ib(e.elements.reference),C=Dx({reference:S,element:y,strategy:`absolute`,placement:i}),w=Sx(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function kx(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?bb:c,u=nx(r),d=u?s?yb:yb.filter(function(e){return nx(e)===u}):pb,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=Ox(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[Ab(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function Ax(e){if(Ab(e)===`auto`)return[];var t=fx(e);return[mx(e),t,mx(t)]}function jx(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o===void 0||o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0||p,h=n.allowedAutoPlacements,g=t.options.placement,_=Ab(g)===g,v=c||(_||!m?[fx(g)]:Ax(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(Ab(n)===`auto`?kx(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T<y.length;T++){var E=y[T],D=Ab(E),O=nx(E)===mb,k=[`top`,lb].indexOf(D)>=0,A=k?`width`:`height`,j=Ox(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),M=k?O?ub:db:O?lb:`top`;b[A]>x[A]&&(M=fx(M));var N=fx(M),P=[];if(a&&P.push(j[D]<=0),s&&P.push(j[M]<=0,j[N]<=0),P.every(function(e){return e})){w=E,C=!1;break}S.set(E,P)}if(C)for(var F=m?3:1,I=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},R=F;R>0&&I(R)!==`break`;R--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var Mx={name:`flip`,enabled:!0,phase:`main`,fn:jx,requiresIfExists:[`offset`],data:{_skip:!1}};function Nx(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Px(e){return[`top`,ub,lb,db].some(function(t){return e[t]>=0})}function Fx(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=Ox(t,{elementContext:`reference`}),s=Ox(t,{altBoundary:!0}),c=Nx(o,r),l=Nx(s,i,a),u=Px(c),d=Px(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var Ix={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:Fx};function Lx(e,t,n){var r=Ab(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function Rx(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=bb.reduce(function(e,n){return e[n]=Lx(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var zx={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:Rx};function Bx(e){var t=e.state,n=e.name;t.modifiersData[n]=Dx({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var Vx={name:`popperOffsets`,enabled:!0,phase:`read`,fn:Bx,data:{}};function Hx(e){return e===`x`?`y`:`x`}function Ux(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o!==void 0&&o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0||f,m=n.tetherOffset,h=m===void 0?0:m,g=Ox(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=Ab(t.placement),v=nx(t.placement),y=!v,b=Kb(_),x=Hx(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var k=b===`y`?`top`:db,A=b===`y`?lb:ub,j=b===`y`?`height`:`width`,M=S[b],N=M+g[k],P=M-g[A],F=p?-w[j]/2:0,I=v===`start`?C[j]:w[j],R=v===`start`?-w[j]:-C[j],ee=t.elements.arrow,te=p&&ee?Lb(ee):{width:0,height:0},ne=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:Yb(),re=ne[k],ie=ne[A],ae=qb(0,C[j],te[j]),oe=y?C[j]/2-F-ae-re-E.mainAxis:I-ae-re-E.mainAxis,se=y?-C[j]/2+F+ae+ie+E.mainAxis:R+ae+ie+E.mainAxis,ce=t.elements.arrow&&Gb(t.elements.arrow),le=ce?b===`y`?ce.clientTop||0:ce.clientLeft||0:0,ue=D?.[b]??0,de=M+oe-ue-le,fe=M+se-ue,pe=qb(p?Mb(N,de):N,M,p?jb(P,fe):P);S[b]=pe,O[b]=pe-M}if(s){var me=b===`x`?`top`:db,he=b===`x`?lb:ub,ge=S[x],_e=x===`y`?`height`:`width`,ve=ge+g[me],ye=ge-g[he],be=[`top`,db].indexOf(_)!==-1,xe=D?.[x]??0,Se=be?ve:ge-C[_e]-w[_e]-xe+E.altAxis,Ce=be?ge+C[_e]+w[_e]-xe-E.altAxis:ye,we=p&&be?Jb(Se,ge,Ce):qb(p?Se:ve,ge,p?Ce:ye);S[x]=we,O[x]=we-ge}t.modifiersData[r]=O}}var Wx={name:`preventOverflow`,enabled:!0,phase:`main`,fn:Ux,requiresIfExists:[`offset`]};function Gx(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Kx(e){return e===Cb(e)||!Tb(e)?hx(e):Gx(e)}function qx(e){var t=e.getBoundingClientRect(),n=Nb(t.width)/e.offsetWidth||1,r=Nb(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Jx(e,t,n){n===void 0&&(n=!1);var r=Tb(t),i=Tb(t)&&qx(t),a=Vb(t),o=Ib(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Sb(t)!==`body`||yx(a))&&(s=Kx(t)),Tb(t)?(c=Ib(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=gx(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function Yx(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function Xx(e){var t=Yx(e);return xb.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function Zx(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function Qx(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var $x={placement:`bottom`,modifiers:[],strategy:`absolute`};function eS(){return![...arguments].some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function tS(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?$x:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},$x,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:wb(e)?xx(e):e.contextElement?xx(e.contextElement):[],popper:xx(t)};var s=Xx(Qx([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(eS(t,n)){i.rects={reference:Jx(t,Gb(n),i.options.strategy===`fixed`),popper:Lb(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++){if(i.reset===!0){i.reset=!1,r=-1;continue}var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:Zx(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!eS(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var nS=tS({defaultModifiers:[ux,Vx,sx,kb,zx,Mx,Wx,tx,Ix]});function rS(e){let{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,o=i?{}:xg(n,r),{props:s,internalRef:c}=wg({...a,externalSlotProps:o}),l=Du(c,o?.ref,e.additionalProps?.ref);return bg(t,{...s,ref:l},r)}function iS(e){return e?.props?.ref||null}var aS=t(y(),1);function oS(e){return typeof e==`function`?e():e}var sS=S.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=S.useState(null),s=Du(S.isValidElement(n)?iS(n):null,t);if(Es(()=>{i||o(oS(r)||document.body)},[r,i]),Es(()=>{if(a&&!i)return rh(t,a),()=>{rh(t,null)}},[t,a,i]),i){if(S.isValidElement(n)){let e={ref:s};return S.cloneElement(n,e)}return n}return a&&aS.createPortal(n,a)});function cS(e){return V(`MuiPopper`,e)}H(`MuiPopper`,[`root`]);function lS(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 uS(e){return typeof e==`function`?e():e}function dS(e){return e.nodeType!==void 0}var fS=e=>{let{classes:t}=e;return W({root:[`root`]},cS,t)},pS={},mS=S.forwardRef(function(e,t){let{anchorEl:n,children:r,direction:i,disablePortal:a,modifiers:o,open:s,placement:c,popperOptions:l,popperRef:u,slotProps:d={},slots:f={},TransitionProps:p,ownerState:m,...h}=e,g=S.useRef(null),_=Du(g,t),v=S.useRef(null),y=Du(v,u),b=S.useRef(y);Es(()=>{b.current=y},[y]),S.useImperativeHandle(u,()=>v.current,[]);let x=lS(c,i),[C,w]=S.useState(x),T=S.useMemo(()=>uS(n),[n]);S.useEffect(()=>{v.current&&v.current.forceUpdate()}),Es(()=>{if(!T||!s)return;let e=e=>{w(e.placement)},t=[{name:`preventOverflow`,options:{altBoundary:a}},{name:`flip`,options:{altBoundary:a}},{name:`onUpdate`,enabled:!0,phase:`afterWrite`,fn:({state:t})=>{e(t)}}];o!=null&&(t=t.concat(o)),l&&l.modifiers!=null&&(t=t.concat(l.modifiers));let n=nS(T,g.current,{placement:x,...l,modifiers:t});b.current(n);let r=g.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();b.current(null)}},[T,a,o,s,l,x]);let E={placement:C};p!==null&&(E.TransitionProps=p);let D=fS(e),O=f.root??`div`,k=rS({elementType:O,externalSlotProps:d.root,externalForwardedProps:h,additionalProps:{role:`tooltip`,ref:_},ownerState:e,className:D.root});return(0,z.jsx)(O,{...k,children:typeof r==`function`?r(E):r})}),hS=K(S.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=pS,popperRef:f,style:p,transition:m=!1,slotProps:h={},slots:g={},..._}=e,[v,y]=S.useState(!0),b=()=>{y(!1)},x=()=>{y(!0)};if(!s&&!l&&(!m||v))return null;let C;if(i)C=i;else if(n){let e=uS(n);C=e&&dS(e)?ku(e).body:ku(null).body}let w=!l&&s&&(!m||v)?`none`:void 0,T=m?{in:l,onEnter:b,onExited:x}:void 0;return(0,z.jsx)(sS,{disablePortal:o,container:C,children:(0,z.jsx)(mS,{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`})({}),gS=S.forwardRef(function(e,t){let n=tc(),{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,z.jsx)(hS,{as:i,direction:n?`rtl`:`ltr`,slots:m,slotProps:h,..._,ref:t})});function _S(e){return V(`MuiListSubheader`,e)}H(`MuiListSubheader`,[`root`,`colorPrimary`,`colorInherit`,`gutters`,`inset`,`sticky`]);var vS=e=>{let{classes:t,color:n,disableGutters:r,inset:i,disableSticky:a}=e;return W({root:[`root`,n!=="default"&&`color${Y(n)}`,!r&&`gutters`,i&&`inset`,!a&&`sticky`]},_S,t)},yS=K(`li`,{name:`MuiListSubheader`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Y(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(q(({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}}]}))),bS=S.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},d=vS(u);return(0,z.jsx)(yS,{as:a,className:B(d.root,r),ref:t,ownerState:u,...l})}),xS=$m((0,z.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`),SS=$m((0,z.jsx)(`path`,{d:`M7 10l5 5 5-5z`}),`ArrowDropDown`);function CS(e){let{borderRadius:t}=e;return{styleOverrides:{paper:({theme:e})=>({borderRadius:t,boxShadow:`0 0 2px 0 rgba(${z_(e)} / 0.24), -20px 20px 40px -4px rgba(${z_(e)} / 0.24)`}),listbox:{padding:4},option:({theme:e})=>({borderRadius:t-2,margin:2,[`&.${Su.focused}`]:{backgroundColor:B_(e,`action.hover`)},'&[aria-selected="true"]':{backgroundColor:B_(e,`action.selected`),fontWeight:500,[`&.${Su.focused}`]:{backgroundColor:B_(e,`action.hover`)}}}),popupIndicator:{[`& .${Ym.root}`]:{fontSize:20}},clearIndicator:{[`& .${Ym.root}`]:{fontSize:18}}}}}function wS(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":B_(e,`background.paper`),"& .MuiDataGrid-columnHeaders":{borderBottom:`1px solid ${B_(e,`divider`)}`},"& .MuiDataGrid-columnHeader":{fontWeight:600,fontSize:e.typography.pxToRem(14),color:B_(e,`text.secondary`),"&:focus, &:focus-within":{outline:`none`}},"& .MuiDataGrid-cell":{borderBottom:`1px solid rgba(${z_(e)} / 0.12)`,"&:focus, &:focus-within":{outline:`none`}},"& .MuiDataGrid-row":{"&:hover":{backgroundColor:B_(e,`action.hover`)},"&.Mui-selected":{backgroundColor:`rgba(${V_(e,`primary`)} / 0.08)`,"&:hover":{backgroundColor:`rgba(${V_(e,`primary`)} / 0.12)`}}},"& .MuiDataGrid-footerContainer":{borderTop:`1px solid ${B_(e,`divider`)}`},"& .MuiDataGrid-selectedRowCount":{whiteSpace:`nowrap`},"& .MuiDataGrid-toolbarContainer":{padding:e.spacing(1.5,1.5,.5),gap:e.spacing(1)},"& .MuiDataGrid-columnSeparator":{color:B_(e,`divider`)}})}}}function TS(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:B_(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 ES(e){let{density:t,borderRadius:n}=e,r=H_(t);return{MuiButton:lv(e),MuiButtonBase:uv(),MuiButtonGroup:dv(e),MuiIconButton:{styleOverrides:{root:({theme:e})=>({borderRadius:n,"&:hover":{backgroundColor:B_(e,`action.hover`)}})}},MuiInputAdornment:{styleOverrides:{root:{[`& .${ug.root}:hover`]:{backgroundColor:`transparent`}}}},MuiFab:{defaultProps:{color:`primary`},styleOverrides:{root:({theme:e})=>({boxShadow:`0 8px 16px 0 rgba(${V_(e,`primary`)} / 0.24)`,"&:hover":{boxShadow:`0 8px 16px 0 rgba(${V_(e,`primary`)} / 0.32)`}})}},MuiInputBase:xee(e),MuiInput:Cee(e),MuiTextField:Dee(e),MuiOutlinedInput:wee(e),MuiFilledInput:Eee(e),MuiInputLabel:Oee(e),MuiFormHelperText:kee(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:CS(e),...ob(e),MuiStack:{defaultProps:{useFlexGap:!0}},MuiPaper:{defaultProps:{elevation:0},styleOverrides:{root:{backgroundImage:`none`},rounded:{borderRadius:n*1.5},outlined:({theme:e})=>({borderColor:`rgba(${z_(e)} / 0.16)`}),elevation1:({theme:e})=>({boxShadow:`0 1px 2px 0 rgba(${z_(e,`900`)} / 0.08)`}),elevation2:({theme:e})=>({boxShadow:`0 2px 4px 0 rgba(${z_(e,`900`)} / 0.08), 0 1px 2px 0 rgba(${z_(e,`900`)} / 0.04)`}),elevation3:({theme:e})=>({boxShadow:`0 4px 8px 0 rgba(${z_(e,`900`)} / 0.08), 0 2px 4px 0 rgba(${z_(e,`900`)} / 0.04)`}),elevation4:({theme:e})=>({boxShadow:`0 8px 16px 0 rgba(${z_(e,`900`)} / 0.08), 0 4px 8px 0 rgba(${z_(e,`900`)} / 0.04)`}),elevation5:({theme:e})=>({boxShadow:`0 12px 24px -4px rgba(${z_(e,`900`)} / 0.08), 0 8px 16px 0 rgba(${z_(e,`900`)} / 0.04)`})}},...ab(e),MuiDrawer:{styleOverrides:{paper:{backgroundImage:`none`}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:({theme:e})=>({backgroundImage:`none`,borderBottom:`1px solid ${B_(e,`divider`)}`})}},MuiTabs:rb(e),MuiTab:ib(e),MuiBreadcrumbs:{styleOverrides:{separator:{marginLeft:8,marginRight:8}}},MuiAccordion:{defaultProps:{disableGutters:!0,elevation:0},styleOverrides:{root:({theme:e})=>({border:`1px solid ${B_(e,`divider`)}`,borderRadius:n,"&::before":{display:`none`},"&:first-child":{borderTopLeftRadius:n,borderTopRightRadius:n},"&:last-child":{borderBottomLeftRadius:n,borderBottomRightRadius:n},"&:not(:last-child)":{borderBottom:0},[`&.${Ig.expanded}`]:{margin:0,"&:first-child":{marginTop:0},"&:last-child":{marginBottom:0}},[`&.${Ig.disabled}`]:{backgroundColor:`transparent`}})}},MuiAccordionSummary:{styleOverrides:{root:({theme:e})=>({minHeight:48*r,padding:`0 ${16*r}px`,fontWeight:500,[`&.${xu.expanded}`]:{minHeight:48*r},[`&.${xu.disabled}`]:{opacity:.5}}),content:{margin:`${12*r}px 0`,[`&.${xu.expanded}`]:{margin:`${12*r}px 0`}},expandIconWrapper:({theme:e})=>({color:B_(e,`text.secondary`)})}},MuiAccordionDetails:{styleOverrides:{root:({theme:e})=>({padding:`${8*r}px ${16*r}px ${16*r}px`,borderTop:`1px solid ${B_(e,`divider`)}`})}},MuiStep:{styleOverrides:{root:{padding:0}}},MuiStepLabel:{styleOverrides:{label:({theme:e})=>({fontSize:e.typography.pxToRem(14),fontWeight:500,[`&.${o_.active}`]:{fontWeight:600,color:B_(e,`text.primary`)},[`&.${o_.completed}`]:{fontWeight:500,color:B_(e,`text.primary`)}}),iconContainer:{paddingRight:12*r}}},MuiStepConnector:{styleOverrides:{line:({theme:e})=>({borderColor:B_(e,`divider`),borderTopWidth:2})}},MuiStepIcon:{styleOverrides:{root:({theme:e})=>({color:B_(e,`grey.300`),[`&.${Xg.active}`]:{color:B_(e,`primary.main`)},[`&.${Xg.completed}`]:{color:B_(e,`primary.main`)}}),text:{fontWeight:600,fontSize:`0.75rem`}}},MuiStepContent:{styleOverrides:{root:({theme:e})=>({borderLeft:`2px solid ${B_(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,[`&.${I_.selected}`]:{fontWeight:600}}),outlined:({theme:e})=>({borderColor:B_(e,`divider`),[`&.${I_.selected}`]:{backgroundColor:`rgba(${V_(e,`primary`)} / 0.08)`,borderColor:B_(e,`primary.main`)}}),text:({theme:e})=>({[`&.${I_.selected}`]:{backgroundColor:B_(e,`primary.main`),color:B_(e,`primary.contrastText`),"&:hover":{backgroundColor:B_(e,`primary.dark`)}}}),previousNext:({theme:e})=>({borderRadius:n-2,"&:hover":{backgroundColor:B_(e,`action.hover`)}}),firstLast:({theme:e})=>({borderRadius:n-2})}},MuiChip:Dv(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:B_(e,`grey.800`)}),arrow:({theme:e})=>({color:B_(e,`grey.800`)})}},MuiTableContainer:{styleOverrides:{root:{position:`relative`}}},MuiTableHead:{styleOverrides:{root:({theme:e})=>({[`& .${Ug.head}`]:{fontWeight:600,backgroundColor:e.vars?.palette.background.neutral||e.palette.grey[50],color:B_(e,`text.secondary`)}})}},MuiTableCell:{styleOverrides:{root:({theme:e})=>({padding:`${12*r}px ${16*r}px`,borderBottomColor:`rgba(${z_(e)} / 0.2)`}),sizeSmall:{padding:`${8*r}px ${12*r}px`}}},MuiTableRow:{styleOverrides:{root:({theme:e})=>({[`&:last-child .${Ug.root}`]:{borderBottom:`none`},[`&.${Rg.selected}`]:{backgroundColor:`rgba(${V_(e,`primary`)} / 0.08)`,"&:hover":{backgroundColor:`rgba(${V_(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 ${B_(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(${V_(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:B_(e,`action.disabled`)}}),rail:({theme:e})=>({opacity:.32,backgroundColor:B_(e,`grey.500`)}),track:{border:`none`},thumb:({theme:e})=>({width:t===`compact`?16:20,height:t===`compact`?16:20,backgroundColor:B_(e,`common.white`),border:`2px solid currentColor`,boxShadow:`0 1px 3px 0 rgba(${z_(e,`900`)} / 0.2)`,"&::before":{display:`none`},"&:hover, &.Mui-focusVisible":{boxShadow:`0 0 0 8px rgba(${V_(e,`primary`)} / 0.16)`},"&.Mui-active":{boxShadow:`0 0 0 12px rgba(${V_(e,`primary`)} / 0.24)`}}),valueLabel:({theme:e})=>({borderRadius:n-2,backgroundColor:B_(e,`grey.800`),"&::before":{display:`none`}}),mark:({theme:e})=>({width:4,height:4,borderRadius:`50%`,backgroundColor:B_(e,`grey.400`)}),markActive:({theme:e})=>({backgroundColor:B_(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:B_(e,`grey.300`)}),iconFilled:({theme:e})=>({color:B_(e,`warning.main`)}),iconHover:({theme:e})=>({color:B_(e,`warning.dark`)}),sizeSmall:{fontSize:`1.125rem`},sizeMedium:{fontSize:`1.5rem`},sizeLarge:{fontSize:`2rem`}}},MuiCheckbox:Wy(e),MuiRadio:Gy(e),MuiSwitch:Ky(e),MuiFormControl:Yy(e),MuiFormControlLabel:Jy(e),MuiFormLabel:qy(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(${V_(e,`primary`)} / 0.08)`,fontWeight:500},"&:hover":{backgroundColor:B_(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:B_(e,`text.secondary`)})}},MuiMenu:{styleOverrides:{paper:({theme:e})=>({borderRadius:n,marginTop:4,boxShadow:`0 0 2px 0 rgba(${z_(e)} / 0.24), -20px 20px 40px -4px rgba(${z_(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-child)":{marginBottom:4},"&.Mui-selected":{fontWeight:500,backgroundColor:B_(e,`action.selected`),"&:hover":{backgroundColor:B_(e,`action.hover`)}}})}},MuiPopover:{styleOverrides:{paper:({theme:e})=>({borderRadius:n,boxShadow:`0 0 2px 0 rgba(${z_(e)} / 0.24), -20px 20px 40px -4px rgba(${z_(e)} / 0.24)`})}},MuiDivider:{styleOverrides:{root:({theme:e})=>({borderColor:`rgba(${z_(e)} / 0.2)`})}},MuiSkeleton:{styleOverrides:{rounded:{borderRadius:n}}},MuiBackdrop:{styleOverrides:{root:({theme:e})=>({backgroundColor:`rgba(${z_(e,`900`)} / 0.5)`})}},MuiLink:{defaultProps:{underline:`hover`},styleOverrides:{root:({theme:e})=>({color:B_(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 ${B_(e,`divider`)}`,[`&.${Gd.selected}`]:{backgroundColor:`rgba(${V_(e,`primary`)} / 0.08)`,borderColor:`currentColor`,color:B_(e,`primary.main`),"&:hover":{backgroundColor:`rgba(${V_(e,`primary`)} / 0.16)`}},[`&.${Gd.disabled}`]:{borderColor:B_(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:{grouped:({theme:e})=>({borderLeftColor:B_(e,`divider`),borderTopColor:B_(e,`divider`),[`&.${Gd.selected}`]:{zIndex:1,borderLeftColor:`currentColor`,borderTopColor:`currentColor`}})}},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:B_(e,`divider`),backgroundColor:`transparent`})}},MuiTimelineConnector:{styleOverrides:{root:({theme:e})=>({backgroundColor:B_(e,`divider`),width:2})}},MuiTimelineContent:{styleOverrides:{root:({theme:e})=>({...e.typography.body2,padding:`${6*r}px ${16*r}px`})}},MuiDataGrid:wS(e),...TS(e),MuiTreeItem:{styleOverrides:{root:{},content:({theme:e})=>({borderRadius:n-2,padding:`${4*r}px ${8*r}px`,"&.Mui-selected":{backgroundColor:`rgba(${V_(e,`primary`)} / 0.08)`,"&:hover":{backgroundColor:`rgba(${V_(e,`primary`)} / 0.16)`},"&.Mui-focused":{backgroundColor:`rgba(${V_(e,`primary`)} / 0.12)`}},"&:hover":{backgroundColor:B_(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(${z_(e)} / 0.4) rgba(${z_(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(${z_(e)} / 0.4)`,borderRadius:3},"::-webkit-scrollbar-thumb:hover":{backgroundColor:`rgba(${z_(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 DS=[`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 OS(e,t=1){return t===1?[...DS]:DS.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)})`))}DS[0],DS[1],DS[2],DS[3],DS[4],DS[5],DS[6],DS[8],DS[9],DS[14],DS[15],DS[19],DS[20],DS[21],DS[22];var kS={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}},AS={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`},jS={tight:1.25,snug:1.375,normal:1.5,relaxed:1.625,loose:2};function MS(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:AS[`5xl`],lineHeight:jS.tight,letterSpacing:`-0.025em`},h2:{fontFamily:t.secondary||t.primary,fontWeight:n.bold,fontSize:AS[`4xl`],lineHeight:jS.tight,letterSpacing:`-0.025em`},h3:{fontFamily:t.secondary||t.primary,fontWeight:n.semiBold,fontSize:AS[`3xl`],lineHeight:jS.snug,letterSpacing:`-0.02em`},h4:{fontFamily:t.secondary||t.primary,fontWeight:n.semiBold,fontSize:AS[`2xl`],lineHeight:jS.snug,letterSpacing:`-0.02em`},h5:{fontFamily:t.secondary||t.primary,fontWeight:n.semiBold,fontSize:AS.xl,lineHeight:jS.snug},h6:{fontFamily:t.secondary||t.primary,fontWeight:n.semiBold,fontSize:AS.lg,lineHeight:jS.snug},body1:{fontSize:AS.md,lineHeight:jS.relaxed},body2:{fontSize:AS.sm,lineHeight:jS.relaxed},subtitle1:{fontSize:AS.md,fontWeight:n.medium,lineHeight:jS.normal},subtitle2:{fontSize:AS.sm,fontWeight:n.medium,lineHeight:jS.normal},caption:{fontSize:AS.xs,lineHeight:jS.normal},overline:{fontSize:AS.xs,fontWeight:n.semiBold,lineHeight:jS.normal,textTransform:`uppercase`,letterSpacing:`0.08em`},button:{fontSize:AS.sm,fontWeight:n.semiBold,lineHeight:jS.normal,textTransform:`none`}}}var NS={50:`#FBF7E8`,100:`#F5EBC9`,200:`#EDDFA8`,300:`#E3D086`,400:`#D9C164`,500:`#C9A227`,600:`#A88820`,700:`#876D1A`,800:`#665314`,900:`#45380E`,950:`#241D07`},PS={50:`#F5EEF5`,100:`#E8D5E8`,200:`#D4B3D4`,300:`#B38AB3`,400:`#996399`,500:`#6B3A6B`,600:`#5A305A`,700:`#4A284A`,800:`#3A1F3A`,900:`#2A172A`,950:`#1A0F1A`},FS={50:`#FAF9F7`,100:`#F5F3F0`,200:`#E8E4DE`,300:`#D4CEC4`,400:`#B8AFA0`,500:`#9C917C`,600:`#7A6F5C`,700:`#5C5244`,800:`#3E362C`,900:`#201C16`,950:`#100E0B`},IS={50:`#F9E8E8`,100:`#F0C9C9`,200:`#E4A3A3`,300:`#D57C7C`,400:`#C65656`,500:`#B82E2E`,600:`#9A2626`,700:`#7D1E1E`,800:`#5F1717`,900:`#42100F`,950:`#250908`},LS={50:`#FEF8E6`,100:`#FCEFC2`,200:`#F9E394`,300:`#F5D566`,400:`#F0C538`,500:`#D4A012`,600:`#B1850F`,700:`#8E6B0C`,800:`#6B5009`,900:`#483606`,950:`#251B03`},RS={50:`#E8F4E8`,100:`#C9E4C9`,200:`#A3D1A3`,300:`#7DBD7D`,400:`#56A956`,500:`#2E8B2E`,600:`#267426`,700:`#1E5D1E`,800:`#174717`,900:`#0F300F`,950:`#081A08`},zS={50:`#E8F0F6`,100:`#C9DCEB`,200:`#A3C4DD`,300:`#7DACCE`,400:`#5694C0`,500:`#2E7AB8`,600:`#26669A`,700:`#1E527C`,800:`#173E5E`,900:`#0F2A40`,950:`#081520`},BS={50:`#F9F5FF`,100:`#F0E6FF`,200:`#E3CFFF`,300:`#CEA9FF`,400:`#B574FF`,500:`#BD93F9`,600:`#A57EE0`,700:`#8666B8`,800:`#6E5394`,900:`#5B4579`,950:`#3B2D4D`},VS={50:`#FFF5F7`,100:`#FFE5EA`,200:`#FFCCD6`,300:`#FFA4B5`,400:`#FF6E8B`,500:`#FF79C6`,600:`#E85AA1`,700:`#C4407F`,800:`#A2356A`,900:`#87305B`,950:`#4E1533`},HS={50:`#ECFFFE`,100:`#CFFFFE`,200:`#A5FFFE`,300:`#67FFFC`,400:`#22FFF5`,500:`#8BE9FD`,600:`#06D1E7`,700:`#0BA6BC`,800:`#118497`,900:`#136C7D`,950:`#05484E`};BS[500];var US={50:`#FFF4ED`,100:`#FFE4D4`,200:`#FFC9A8`,300:`#FFAA71`,400:`#FF8038`,500:`#FF5F11`,600:`#F04006`,700:`#C72D07`,800:`#9E250E`,900:`#7F230F`,950:`#450E05`},WS={50:`#FFF1F2`,100:`#FFE1E3`,200:`#FFC8CD`,300:`#FFA1A9`,400:`#FF6B78`,500:`#FA3D4D`,600:`#E81B2D`,700:`#C31323`,800:`#A11421`,900:`#861721`,950:`#49060C`};US[500];var GS={50:`#EEF2FF`,100:`#E0E7FF`,200:`#C7D2FE`,300:`#A5B4FC`,400:`#818CF8`,500:`#6366F1`,600:`#4F46E5`,700:`#4338CA`,800:`#3730A3`,900:`#312E81`,950:`#1E1B4B`},KS={50:`#F8FAFC`,100:`#F1F5F9`,200:`#E2E8F0`,300:`#CBD5E1`,400:`#94A3B8`,500:`#64748B`,600:`#475569`,700:`#334155`,800:`#1E293B`,900:`#0F172A`,950:`#020617`};GS[500];var qS={50:`#FFFBEB`,100:`#FEF3C7`,200:`#FDE68A`,300:`#FCD34D`,400:`#FBBF24`,500:`#F59E0B`,600:`#D97706`,700:`#B45309`,800:`#92400E`,900:`#78350F`,950:`#451A03`},JS={50:`#F0FDFA`,100:`#CCFBF1`,200:`#99F6E4`,300:`#5EEAD4`,400:`#2DD4BF`,500:`#14B8A6`,600:`#0D9488`,700:`#0F766E`,800:`#115E59`,900:`#134E4A`,950:`#042F2E`};qS[500];var YS={50:`#FAFAFA`,100:`#F5F5F5`,200:`#E5E5E5`,300:`#D4D4D4`,400:`#A3A3A3`,500:`#737373`,600:`#525252`,700:`#404040`,800:`#262626`,900:`#171717`,950:`#0A0A0A`},XS={50:`#F8FAFC`,100:`#F1F5F9`,200:`#E2E8F0`,300:`#CBD5E1`,400:`#94A3B8`,500:`#64748B`,600:`#475569`,700:`#334155`,800:`#1E293B`,900:`#0F172A`,950:`#020617`};YS[500];var ZS={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:`#000000`},info:{lighter:`#E0F7FA`,light:`#80DEEA`,main:`#26C6DA`,dark:`#00ACC1`,darker:`#00838F`,contrastText:`#000000`},success:{lighter:`#E8F5E9`,light:`#A5D6A7`,main:`#66BB6A`,dark:`#43A047`,darker:`#2E7D32`,contrastText:`#000000`},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:`#000000`},secondary:{lighter:`#E3F2FD`,light:`#90CAF9`,main:`#64B5F6`,dark:`#42A5F5`,darker:`#1E88E5`,contrastText:`#000000`},info:{lighter:`#E0F7FA`,light:`#80DEEA`,main:`#4DD0E1`,dark:`#26C6DA`,darker:`#00ACC1`,contrastText:`#000000`},success:{lighter:`#E8F5E9`,light:`#A5D6A7`,main:`#81C784`,dark:`#66BB6A`,darker:`#4CAF50`,contrastText:`#000000`},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 QS(e){switch(e){case`luxury`:return{lightPalette:Wm({primary:NS,secondary:PS,info:zS,success:RS,warning:LS,error:IS,grey:FS,mode:`light`,backgroundDefault:`#FAF7F5`,paperColor:`#FDFBFB`}),darkPalette:Wm({primary:NS,secondary:PS,info:zS,success:RS,warning:LS,error:IS,grey:FS,mode:`dark`}),colorGroup:{key:`luxury`,main:NS[500],palette:NS}};case`arctic`:return{lightPalette:$S(ZS.lightPalette,`light`),darkPalette:$S(ZS.darkPalette,`dark`),colorGroup:{key:`arctic`,main:`#1E88E5`,palette:jm}};case`dracula`:return{lightPalette:Wm({primary:BS,secondary:VS,info:HS,success:Mm,warning:Fm,error:Pm,grey:Am,mode:`light`,backgroundDefault:`#F5F0FA`,paperColor:`#FAF7FC`}),darkPalette:Wm({primary:BS,secondary:VS,info:HS,success:Mm,warning:Fm,error:Pm,grey:Am,mode:`dark`,backgroundDefault:`#282A36`,paperColor:`#21222C`}),colorGroup:{key:`dracula`,main:BS[500],palette:BS}};case`ember`:return{lightPalette:Wm({primary:US,secondary:WS,info:Im,success:Mm,warning:Fm,error:WS,grey:Am,mode:`light`,backgroundDefault:`#FFF5F0`,paperColor:`#FFFAF7`}),darkPalette:Wm({primary:US,secondary:WS,info:Im,success:Mm,warning:Fm,error:WS,grey:Am,mode:`dark`,backgroundDefault:`#1A0A05`,paperColor:`#2D1610`}),colorGroup:{key:`ember`,main:US[500],palette:US}};case`midnight`:return{lightPalette:Wm({primary:GS,secondary:Nm,info:Im,success:Mm,warning:Fm,error:Pm,grey:KS,mode:`light`,backgroundDefault:`#F0F0F8`,paperColor:`#F7F7FC`}),darkPalette:Wm({primary:GS,secondary:Nm,info:Im,success:Mm,warning:Fm,error:Pm,grey:KS,mode:`dark`,backgroundDefault:KS[950],paperColor:KS[900]}),colorGroup:{key:`midnight`,main:GS[500],palette:GS}};case`retro`:return{lightPalette:Wm({primary:qS,secondary:JS,info:Im,success:JS,warning:qS,error:Pm,grey:Am,mode:`light`,backgroundDefault:`#F8F1E0`,paperColor:`#FDF8EE`}),darkPalette:Wm({primary:qS,secondary:JS,info:Im,success:JS,warning:qS,error:Pm,grey:Am,mode:`dark`,backgroundDefault:`#1A1814`,paperColor:`#252218`}),colorGroup:{key:`retro`,main:qS[500],palette:qS}};case`minimal`:return{lightPalette:Wm({primary:XS,secondary:YS,info:Im,success:Mm,warning:Fm,error:Pm,grey:YS,mode:`light`,backgroundDefault:`#FAFAFA`,paperColor:`#FFFFFF`}),darkPalette:Wm({primary:XS,secondary:YS,info:Im,success:Mm,warning:Fm,error:Pm,grey:YS,mode:`dark`,backgroundDefault:`#0A0A0A`,paperColor:`#171717`}),colorGroup:{key:`minimal`,main:XS[500],palette:XS}};case`nature`:return{lightPalette:Wm({primary:Mm,secondary:Nm,info:Im,success:Mm,warning:Fm,error:Pm,grey:Am,mode:`light`,backgroundDefault:`#EEF6EE`,paperColor:`#F5FAF5`}),darkPalette:Wm({primary:Mm,secondary:Nm,info:Im,success:Mm,warning:Fm,error:Pm,grey:Am,mode:`dark`,backgroundDefault:`#0A1A0A`,paperColor:`#0F1F0F`}),colorGroup:{key:`nature`,main:Mm[500],palette:Mm}};case`default-dark`:return{lightPalette:Gm,darkPalette:Km,colorGroup:{key:`default-dark`,main:jm[400],palette:jm}};default:return{lightPalette:Gm,darkPalette:Km,colorGroup:{key:`default-light`,main:jm[500],palette:jm}}}}function $S(e,t){let n=e.grey;return{mode:t,primary:xm(e.primary),secondary:xm(e.secondary),info:xm(e.info),success:xm(e.success),warning:xm(e.warning),error:xm(e.error),grey:n,common:e.common,background:e.background,text:e.text}}var eC=[{key:`default-light`,main:jm[500],palette:jm},{key:`default-dark`,main:jm[400],palette:jm},{key:`green`,main:Mm[500],palette:Mm},{key:`purple`,main:Nm[500],palette:Nm},{key:`red`,main:Pm[500],palette:Pm},{key:`orange`,main:Fm[500],palette:Fm},{key:`lightBlue`,main:Im[500],palette:Im},{key:`luxury`,main:NS[500],palette:NS},{key:`dracula`,main:BS[500],palette:BS},{key:`ember`,main:US[500],palette:US},{key:`midnight`,main:GS[500],palette:GS},{key:`retro`,main:qS[500],palette:qS},{key:`minimal`,main:XS[500],palette:XS},{key:`nature`,main:Mm[500],palette:Mm},{key:`arctic`,main:`#1E88E5`,palette:jm}];function tC(e,t,n){if(!t)return e;let r=eC.find(e=>e.main===t);if(r?.palette){let i=xm(n===`dark`?{lighter:r.palette[950],light:r.palette[700],main:t,dark:r.palette[300],darker:r.palette[100],contrastText:Dm(t)}:{lighter:r.palette[50],light:r.palette[400],main:t,dark:r.palette[600],darker:r.palette[900],contrastText:Dm(t)});return{...e,primary:i}}let i=wm(t),a=xm(n===`dark`?{lighter:i[950],light:i[700],main:i[400],dark:i[300],darker:i[100],contrastText:Dm(i[400])}:{lighter:i[50],light:i[400],main:i[500],dark:i[600],darker:i[900],contrastText:Dm(i[500])});return{...e,primary:a}}function nC(e){switch(e){case`compact`:return .75;case`comfortable`:return 1.25;default:return 1}}function rC(e,t){let n={...e};for(let r of Object.keys(t)){let i=e[r],a=t[r];n[r]=typeof a==`object`&&a&&!Array.isArray(a)&&typeof a!=`function`&&typeof i==`object`&&i&&!Array.isArray(i)&&typeof i!=`function`?rC(i,a):a}return n}function iC(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=QS(t),p=tC(f.lightPalette,a,`light`),m=tC(f.darkPalette,a,`dark`);u===`high`&&(p={...p,background:{...p.background,default:Am[200],paper:`#FFFFFF`}},m={...m,background:{...m.background,default:`#000000`,paper:Am[900]}});let h=nC(s),g={density:s,borderRadius:c,buttonStyle:`contained`},_={prefix:o,colorSchemeSelector:`data-${o}-color-scheme`,enabled:!0},v=mm[i]||Pf,y=p.primary?.main||jm[500],b=OS(y),x=OS(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:MS({fontFamily:{primary:e.fontFamily?`"${e.fontFamily}", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`:kS.fontFamily.primary,secondary:kS.fontFamily.secondary,mono:kS.fontFamily.mono},fontWeights:kS.fontWeights}),direction:r,shape:{borderRadius:c},mixins:zv,components:ES(g)},E=bu(d?rC(T,d):T,v);l&&(E=$d(E));let D=E;return D.prism={preset:t,mode:n,direction:r,density:s,densityMultiplier:h,cssVariables:_},D}Mm[500];var aC=typeof Wu({})==`function`,oC=(e,t)=>({WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,boxSizing:`border-box`,WebkitTextSizeAdjust:`100%`,...t&&!e.vars&&{colorScheme:e.palette.mode}}),sC=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}}),cC=(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:oC(e,t),"*, *::before, *::after":{boxSizing:`inherit`},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...sC(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n},i=e.components?.MuiCssBaseline?.styleOverrides;return i&&(r=[r,i]),r},lC=`mui-ecs`,uC=e=>{let t=cC(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${lC})`]={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(.${lC}))`]:{colorScheme:r.palette?.mode}}:n[i.replace(/\s*&/,``)]={[`&:not(:has(.${lC}))`]:{colorScheme:r.palette?.mode}}}),t},dC=Wu(aC?({theme:e,enableColorScheme:t})=>cC(e,t):({theme:e})=>uC(e));function fC(e){let{children:t,enableColorScheme:n=!1}=J({props:e,name:`MuiCssBaseline`});return(0,z.jsxs)(S.Fragment,{children:[aC&&(0,z.jsx)(dC,{enableColorScheme:n}),!aC&&!n&&(0,z.jsx)(`span`,{className:lC,style:{display:`none`}}),t]})}function pC(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.`}function mC(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}var hC=[`localeText`],gC=S.createContext(null),_C=function(e){let{localeText:t}=e,n=mC(e,hC),{adapter:r,localeText:i}=S.useContext(gC)??{adapter:void 0,localeText:void 0},{children:a,dateAdapter:o,dateFormats:s,dateLibInstance:c,adapterLocale:l,localeText:u}=ef({props:n,name:`MuiLocalizationProvider`}),d=S.useMemo(()=>Zn({},u,i,t),[u,i,t]),f=S.useMemo(()=>{if(!o)return r||null;let e=new o({locale:l,formats:s,instance:c});if(!e.isMUIAdapter)throw Error(pC(143));return e},[o,l,s,c,r]),p=S.useMemo(()=>f?{minDate:f.date(`1900-01-01T00:00:00.000`),maxDate:f.date(`2099-12-31T00:00:00.000`)}:null,[f]),m=S.useMemo(()=>({adapter:f,defaultDates:p,localeText:d}),[p,f,d]);return(0,z.jsx)(gC.Provider,{value:m,children:a})},vC=n(((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=/\[([^\]]+)]|YYYY|YY|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}))})),yC=n(((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)}}}))})),bC=n(((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)}}}))})),xC=n(((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)}}}))})),SC=n(((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))}}}))})),CC=n(((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)}}}))})),wC=t(vC(),1),TC=t(yC(),1),EC=t(bC(),1),DC=t(xC(),1),OC=t(SC(),1),kC=t(CC(),1);wC.default.extend(DC.default),wC.default.extend(TC.default),wC.default.extend(OC.default),wC.default.extend(kC.default);var AC={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`},jC={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 MC(){throw Error(pC(138))}function NC(){throw Error(pC(139))}var PC=class{isMUIAdapter=!0;isTimezoneCompatible=!0;lib=`dayjs`;escapedCharacters={start:`[`,end:`]`};formatTokenMap=AC;constructor({locale:e,formats:t}={}){this.locale=e,this.formats=Zn({},jC,t),wC.default.extend(EC.default)}setLocaleToValue=e=>{let t=this.getCurrentLocaleCode();return t===e.locale()?e:e.locale(t)};hasUTCPlugin=()=>wC.default.utc!==void 0;hasTimezonePlugin=()=>wC.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 wC.default.tz.guess();default:return e}};createSystemDate=e=>this.setLocaleToValue((0,wC.default)(e));createUTCDate=e=>(this.hasUTCPlugin()||MC(),this.setLocaleToValue(wC.default.utc(e)));createTZDate=(e,t)=>{this.hasUTCPlugin()||MC(),this.hasTimezonePlugin()||NC();let n=e!==void 0&&!e.endsWith(`Z`);return this.setLocaleToValue((0,wC.default)(e).tz(this.cleanTimezone(t),n))};getLocaleFormats=()=>{let e=wC.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};restoreDayOfMonth=(e,t)=>{let n=this.getTimezone(e);if(!this.hasUTCPlugin()||n===`system`||n===`UTC`)return e;let r=wC.default.utc(e.format(`YYYY-MM-DDTHH:mm:ss.SSS`));if(!r.isValid())return e;let i=Math.min(t.date(),r.daysInMonth());return e.date()===i?e:e.set(`date`,i)};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,wC.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()||MC(),e.utc();if(t===`system`)return e.local();if(!this.hasTimezonePlugin()){if(t==="default")return e;NC()}return this.setLocaleToValue(wC.default.tz(e,this.cleanTimezone(t)))};toJsDate=e=>e.toDate();parse=(e,t)=>e===``?null:(0,wC.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&&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(this.restoreDayOfMonth(e.add(t,`year`),e));addMonths=(e,t)=>this.adjustOffset(this.restoreDayOfMonth(e.add(t,`month`),e));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(this.restoreDayOfMonth(e.set(`year`,t),e));setMonth=(e,t)=>this.adjustOffset(this.restoreDayOfMonth(e.set(`month`,t),e));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}},FC=n(((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="`COMMENT`",t=`[^\\u0020-\\u007e]`,n=`(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)`,i=`(?:[0-9]*\\.[0-9]+|[0-9]+)`,a=`(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)`,o=`direction\\s*:\\s*`,s=`[!#$%&*-~]`,c=`['"]?\\s*`,l=`(^|[^a-zA-Z])`,u=`[^\\}]*?`,d=`\\/\\*\\!?\\s*@noflip\\s*\\*\\/`,f=`\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/`,p=`(?:`+n+`|\\\\[^\\r\\n\\f0-9a-f])`,m=`(?:[_a-z]|`+t+`|`+p+`)`,h=`(?:[_a-z0-9-]|`+t+`|`+p+`)`,g=`-?`+m+h+`*`,_=i+`(?:\\s*`+a+`|`+g+`)?`,v=`((?:-?`+_+`)|(?:inherit|auto))`,y=`(?:calc\\((?:`+(`(?:(?:\\(|\\)|\\t| )|`+(`(?:-?`+i+`(?:\\s*`+a+`)?)`)+`|(?:\\+|\\-|\\*|\\/)){3,}`)+`)\\))`,b=`((?:-?`+_+`)|(?:inherit|auto)|`+y+`)`,x=`((?:margin|padding|border-width)\\s*:\\s*)`,S=`((?:-color|border-style)\\s*:\\s*)`,C=`(#?`+h+`+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))`,w=`(?:`+s+`|`+t+`|`+p+`)*?`,T=`(?![a-zA-Z])`,E=`(?!(`+h+`|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|"[^"]*"|`+e+`)*?{)`,D=`(?!`+w+c+`\\))`,O=`(?=`+w+c+`\\))`,k=`(\\s*(?:!important\\s*)?[;}])`,A=/`TMP`/g,j=/`TMPLTR`/g,M=/`TMPRTL`/g,N=new RegExp(f,`gi`),P=RegExp(`(`+d+E+`[^;}]+;?)`,`gi`),F=RegExp(`(`+d+u+`})`,`gi`),I=RegExp(`(`+o+`)ltr`,`gi`),R=RegExp(`(`+o+`)rtl`,`gi`),ee=RegExp(l+`(left)`+T+D+E,`gi`),te=RegExp(l+`(right)`+T+D+E,`gi`),ne=RegExp(l+`(left)`+O,`gi`),re=RegExp(l+`(right)`+O,`gi`),ie=/(:dir\( *)ltr( *\))/g,ae=/(:dir\( *)rtl( *\))/g,oe=RegExp(l+`(ltr)`+O,`gi`),se=RegExp(l+`(rtl)`+O,`gi`),ce=RegExp(l+`([ns]?)e-resize`,`gi`),le=RegExp(l+`([ns]?)w-resize`,`gi`),ue=RegExp(x+b+`(\\s+)`+b+`(\\s+)`+b+`(\\s+)`+b+k,`gi`),de=RegExp(S+C+`(\\s+)`+C+`(\\s+)`+C+`(\\s+)`+C+k,`gi`),fe=RegExp(`(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)(`+_+`)`,`gi`),pe=RegExp(`(background-position-x\\s*:\\s*)(-?`+i+`%)`,`gi`),me=RegExp(`(border-radius\\s*:\\s*)`+v+`(?:(?:\\s+`+v+`)(?:\\s+`+v+`)?(?:\\s+`+v+`)?)?(?:(?:(?:\\s*\\/\\s*)`+v+`)(?:\\s+`+v+`)?(?:\\s+`+v+`)?(?:\\s+`+v+`)?)?`+k,`gi`),he=RegExp(`(box-shadow\\s*:\\s*(?:inset\\s*)?)`+v,`gi`),ge=RegExp(`(text-shadow\\s*:\\s*)`+v+`(\\s*)`+C,`gi`),_e=RegExp(`(text-shadow\\s*:\\s*)`+C+`(\\s*)`+v,`gi`),ve=RegExp(`(text-shadow\\s*:\\s*)`+v,`gi`),ye=RegExp(`(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)`+v+`(\\s*\\))`,`gi`),be=RegExp(`(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)`+v+`((?:\\s*,\\s*`+v+`){0,2}\\s*\\))`,`gi`);function xe(e,t,n){var r,i;return t.split(`(`).length>t.split(`)`).length?e:(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 Se(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]]}return e.join(` `)}function Ce(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?Se(i)+` / `+Se(a):Se(i),t+n+o}function we(e){return parseFloat(e)===0?e:e[0]===`-`?e.slice(1):`-`+e}function Te(e,t,n){return t+we(n)}function Ee(e,t,n,r,i){return t+n+we(r)+i}function De(e,t,n,r,i){return t+n+r+we(i)}return{transform:function(t,n){var i=new r(P,"`NOFLIP_SINGLE`"),a=new r(F,"`NOFLIP_CLASS`"),o=new r(N,e);return t=o.tokenize(a.tokenize(i.tokenize(t.replace("`",`%60`)))),n.transformDirInUrl&&(t=t.replace(ie,"$1`TMPLTR`$2").replace(ae,"$1`TMPRTL`$2").replace(oe,"$1`TMP`").replace(se,`$1ltr`).replace(A,`rtl`).replace(j,`ltr`).replace(M,`rtl`)),n.transformEdgeInUrl&&(t=t.replace(ne,"$1`TMP`").replace(re,`$1left`).replace(A,`right`)),t=t.replace(I,"$1`TMP`").replace(R,`$1ltr`).replace(A,`rtl`).replace(ee,"$1`TMP`").replace(te,`$1left`).replace(A,`right`).replace(ce,"$1$2`TMP`").replace(le,`$1$2e-resize`).replace(A,`w-resize`).replace(me,Ce).replace(he,Te).replace(ge,De).replace(_e,De).replace(ve,Te).replace(ye,Ee).replace(be,Ee).replace(ue,`$1$2$3$8$5$6$7$4$9`).replace(de,`$1$2$3$8$5$6$7$4$9`).replace(fe,xe).replace(pe,xe),t=i.detokenize(a.detokenize(o.detokenize(t))),t}}}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)})),IC=`comm`,LC=`rule`,RC=`decl`,zC=`@import`,BC=Math.abs,VC=String.fromCharCode;function HC(e){return e.trim()}function UC(e,t,n){return e.replace(t,n)}function WC(e,t){return e.charCodeAt(t)|0}function GC(e,t,n){return e.slice(t,n)}function KC(e){return e.length}function qC(e){return e.length}function JC(e,t){return t.push(e),e}var YC=1,XC=1,ZC=0,QC=0,$C=0,ew=``;function tw(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:YC,column:XC,length:o,return:``,siblings:s}}function nw(){return $C}function rw(){return $C=QC>0?WC(ew,--QC):0,XC--,$C===10&&(XC=1,YC--),$C}function iw(){return $C=QC<ZC?WC(ew,QC++):0,XC++,$C===10&&(XC=1,YC++),$C}function aw(){return WC(ew,QC)}function ow(){return QC}function sw(e,t){return GC(ew,e,t)}function cw(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 lw(e){return YC=XC=1,ZC=KC(ew=e),QC=0,[]}function uw(e){return ew=``,e}function dw(e){return HC(sw(QC-1,mw(e===91?e+2:e===40?e+1:e)))}function fw(e){for(;($C=aw())&&$C<33;)iw();return cw(e)>2||cw($C)>3?``:` `}function pw(e,t){for(;--t&&iw()&&!($C<48||$C>102||$C>57&&$C<65||$C>70&&$C<97););return sw(e,ow()+(t<6&&aw()==32&&iw()==32))}function mw(e){for(;iw();)switch($C){case e:return QC;case 34:case 39:e!==34&&e!==39&&mw($C);break;case 40:e===41&&mw(e);break;case 92:iw()}return QC}function hw(e,t){for(;iw()&&e+$C!==57&&(e+$C!==84||aw()!==47););return`/*`+sw(t,QC-1)+`*`+VC(e===47?e:iw())}function gw(e){for(;!cw(aw());)iw();return sw(e,QC)}function _w(e){return uw(vw(``,null,null,null,[``],e=lw(e),0,[0],e))}function vw(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=iw()){case 40:m!=108&&WC(w,d-1)==58?(v++,w+=`(`):w+=dw(y);break;case 41:v--,w+=`)`;break;case 34:case 39:case 91:w+=dw(y);break;case 9:case 10:case 13:case 32:if(v>0){w+=VC(y);break}w+=fw(m);break;case 92:w+=pw(ow()-1,7);continue;case 47:switch(aw()){case 42:case 47:JC(bw(hw(iw(),ow()),t,n,c),c),(cw(m||1)==5||cw(aw()||1)==5)&&KC(w)&&GC(w,-1,void 0)!==` `&&(w+=` `);break;default:w+=`/`}break;case 123*h:s[l++]=KC(w)*_;case 125*h:case 59:case 0:if(v>0&&y){w+=VC(y);break}switch(y){case 0:case 125:g=0;case 59+u:_==-1&&(w=UC(w,/\f/g,``)),p>0&&(KC(w)-d||h===0)&&JC(p>32?xw(w+`;`,r,n,d-1,c):xw(UC(w,` `,``)+`;`,r,n,d-2,c),c);break;case 59:w+=`;`;default:if(JC(C=yw(w,t,n,l,u,i,s,b,x=[],S=[],d,a),a),y===123){if(u===0)vw(w,t,C,C,x,a,d,s,S);else{switch(f){case 99:if(WC(w,3)===110)break;case 108:if(WC(w,2)===97)break;default:u=0;case 100:case 109:case 115:}u?vw(e,C,C,r&&JC(yw(e,C,C,0,0,i,s,b,i,x=[],d,S),S),i,S,d,s,r?x:S):vw(w,C,C,C,[``],S,0,s,S)}}}l=u=p=0,h=_=1,b=w=``,d=o;break;case 58:d=1+KC(w),p=m;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&rw()==125)continue}switch(w+=VC(y),y*h){case 38:_=u>0?1:(w+=`\f`,-1);break;case 44:if(v>0)break;s[l++]=(KC(w)-1)*_,_=1;break;case 64:aw()===45&&(w+=dw(iw())),f=aw(),u=d=KC(b=w+=gw(ow())),y++;break;case 45:m===45&&KC(w)==2&&(h=0)}}return a}function yw(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=qC(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=GC(e,f+1,f=BC(g=o[h])),b=e;v<m;++v)(b=HC(g>0?p[v]+` `+y:UC(y,/&\f/g,p[v])))&&(c[_++]=b);return tw(e,t,n,i===0?LC:s,c,l,u,d)}function bw(e,t,n,r){return tw(e,t,n,IC,VC(nw()),GC(e,2,-2),0,r)}function xw(e,t,n,r,i){return tw(e,t,n,RC,GC(e,0,r),GC(e,r+1,-1),r,i)}function Sw(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}var Cw=t(FC());function ww(e,t,n){switch(e.type){case zC:case RC:case IC:return e.return=e.return||e.value;case LC: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=Sw(Array.prototype.concat(e.children),ww);return KC(r)?e.return=e.value+`{`+r+`}`:``}function Tw(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=Cw.transform(ww(e,t,n));e.children=i?_w(i)[0].children:[],e.return=``}}Object.defineProperty(Tw,"name",{value:`stylisRTLPlugin`});var Ew={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},Dw=(0,S.createContext)(null);Dw.displayName=`PrismContext`;function Ow(){let e=(0,S.useContext)(Dw);if(!e)throw Error(`usePrismContext must be used within a PrismProvider`);return e}function kw(e){return V(`MuiAlert`,e)}var Aw=H(`MuiAlert`,[`root`,`action`,`icon`,`message`,`filled`,`colorSuccess`,`colorInfo`,`colorWarning`,`colorError`,`outlined`,`standard`]),jw=$m((0,z.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`),Mw=$m((0,z.jsx)(`path`,{d:`M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z`}),`ReportProblemOutlined`),Nw=$m((0,z.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`),Pw=$m((0,z.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`),Fw=e=>{let{variant:t,color:n,severity:r,classes:i}=e;return W({root:[`root`,`color${Y(n||r)}`,`${t}`],icon:[`icon`],message:[`message`],action:[`action`]},kw,i)},Iw=K(Fg,{name:`MuiAlert`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant]]}})(q(({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(fh([`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),[`& .${Aw.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(fh([`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}`,[`& .${Aw.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(fh([`dark`])).map(([t])=>({props:{colorSeverity:t,variant:`filled`},style:{...e.focusVisible&&wl(`0 0 0 4px ${(e.vars||e).palette.background.default}`),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)}}}))]}})),Lw=K(`div`,{name:`MuiAlert`,slot:`Icon`})({marginRight:12,padding:`7px 0`,display:`flex`,fontSize:22,opacity:.9}),Rw=K(`div`,{name:`MuiAlert`,slot:`Message`})({padding:`8px 0`,minWidth:0,overflow:`auto`}),zw=K(`div`,{name:`MuiAlert`,slot:`Action`})({display:`flex`,alignItems:`flex-start`,padding:`4px 0 0 16px`,marginLeft:`auto`,marginRight:-8}),Bw={success:(0,z.jsx)(jw,{fontSize:`inherit`}),warning:(0,z.jsx)(Mw,{fontSize:`inherit`}),error:(0,z.jsx)(Nw,{fontSize:`inherit`}),info:(0,z.jsx)(Pw,{fontSize:`inherit`})},Vw=S.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=Bw,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=Fw(_),y={slots:m,slotProps:p},[b,x]=X(`root`,{ref:t,shouldForwardComponentProp:!0,className:B(v.root,a),elementType:Iw,externalForwardedProps:{...y,...g},ownerState:_,additionalProps:{role:d,elevation:0}}),[S,C]=X(`icon`,{className:v.icon,elementType:Lw,externalForwardedProps:y,ownerState:_}),[w,T]=X(`message`,{className:v.message,elementType:Rw,externalForwardedProps:y,ownerState:_}),[E,D]=X(`action`,{className:v.action,elementType:zw,externalForwardedProps:y,ownerState:_}),[O,k]=X(`closeButton`,{elementType:mg,externalForwardedProps:y,ownerState:_}),[A,j]=X(`closeIcon`,{elementType:xS,externalForwardedProps:y,ownerState:_});return(0,z.jsxs)(b,{...x,children:[c===!1?null:(0,z.jsx)(S,{...C,children:c||l[f]||Bw[f]}),(0,z.jsx)(w,{...T,children:i}),r==null?null:(0,z.jsx)(E,{...D,children:r}),r==null&&u?(0,z.jsx)(E,{...D,children:(0,z.jsx)(O,{size:`small`,"aria-label":o,title:o,color:`inherit`,onClick:u,...k,children:(0,z.jsx)(A,{fontSize:`small`,...j})})}):null]})});function Hw(e){return V(`MuiAlertTitle`,e)}H(`MuiAlertTitle`,[`root`]);var Uw=e=>{let{classes:t}=e;return W({root:[`root`]},Hw,t)},Ww=K(oy,{name:`MuiAlertTitle`,slot:`Root`})(q(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),Gw=S.forwardRef(function(e,t){let n=J({props:e,name:`MuiAlertTitle`}),{className:r,...i}=n,a=n,o=Uw(a);return(0,z.jsx)(Ww,{gutterBottom:!0,component:`div`,ownerState:a,ref:t,className:B(o.root,r),...i})});function Kw(e){return V(`MuiAppBar`,e)}H(`MuiAppBar`,[`root`,`positionFixed`,`positionAbsolute`,`positionSticky`,`positionStatic`,`positionRelative`,`colorDefault`,`colorPrimary`,`colorSecondary`,`colorInherit`,`colorTransparent`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`]);var qw=e=>{let{color:t,position:n,classes:r}=e;return W({root:[`root`,`color${Y(t)}`,`position${Y(n)}`]},Kw,r)},Jw=(e,t)=>e?`${e.replace(`)`,``)}, ${t})`:t,Yw=K(Fg,{name:`MuiAppBar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`position${Y(n.position)}`],t[`color${Y(n.color)}`]]}})(q(({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(fh([`contrastText`])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText,...e.focusVisible&&wl(`0 0 0 4px ${(e.vars||e).palette.background.default}`)}})),{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?Jw(e.vars.palette.AppBar.darkBg,`var(--AppBar-background)`):null,color:e.vars?Jw(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`})}}]}))),Xw=S.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},l=qw(c);return(0,z.jsx)(Yw,{square:!0,component:`header`,ownerState:c,elevation:4,className:B(l.root,r,o===`fixed`&&`mui-fixed`),ref:t,...s})}),Zw=$m((0,z.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 Qw(e){return V(`MuiAvatar`,e)}H(`MuiAvatar`,[`root`,`colorDefault`,`circular`,`rounded`,`square`,`img`,`fallback`]);var $w=e=>{let{classes:t,variant:n,colorDefault:r}=e;return W({root:[`root`,n,r&&`colorDefault`],img:[`img`],fallback:[`fallback`]},Qw,t)},eT=K(`div`,{name:`MuiAvatar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(q(({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]})}}}]}))),tT=K(`img`,{name:`MuiAvatar`,slot:`Img`})({width:`100%`,height:`100%`,textAlign:`center`,objectFit:`cover`,color:`transparent`,textIndent:1e4}),nT=K(Zw,{name:`MuiAvatar`,slot:`Fallback`})({width:`75%`,height:`75%`});function rT(e,t,n,r){let[i,a]=S.useState(!1);return S.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 iT=S.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=rT(u,d,g,_),y=u||d,b=y&&v!==`error`;h.colorDefault=!b,delete h.ownerState;let x=$w(h),S={slots:s,slotProps:c},[C,w]=X(`root`,{ref:t,className:B(x.root,a),elementType:eT,externalForwardedProps:{...S,component:o,...p},ownerState:h}),[T,E]=X(`img`,{className:x.img,elementType:tT,externalForwardedProps:S,additionalProps:{alt:r,src:u,srcSet:d,sizes:l},ownerState:h}),[D,O]=X(`fallback`,{className:x.fallback,elementType:nT,externalForwardedProps:S,shouldForwardComponentProp:!0,ownerState:h});return m=b?(0,z.jsx)(T,{...E}):i||i===0?i:y&&r?r[0]:(0,z.jsx)(D,{...O}),(0,z.jsx)(C,{...w,children:m})}),aT={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},oT={opacity:0,visibility:`hidden`},sT=S.forwardRef(function(e,t){let n=Bu(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:o,disablePrefersReducedMotion:s=!1,easing:c,in:l,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:h,style:g,timeout:_=r,...v}=e,y=zh(n.motion.reducedMotion,s),b=S.useRef(null),x=Gu(b,iS(o),t),C=pd(b,f),w=pd(b,(e,t)=>{y.shouldReduceMotion||rd(e);let r=hd({style:g,timeout:_,easing:c},{mode:`enter`}),i=y.getTransitionTiming({duration:r.duration,delay:r.delay});e.style.transition=n.transitions.create(`opacity`,{duration:i.duration,easing:r.easing,delay:i.delay}),u&&u(e,t)}),T=pd(b,d),E=pd(b,h),D=pd(b,e=>{let t=hd({style:g,timeout:_,easing:c},{mode:`exit`}),r=y.getTransitionTiming({duration:t.duration,delay:t.delay});e.style.transition=n.transitions.create(`opacity`,{duration:r.duration,easing:t.easing,delay:r.delay}),p&&p(e)}),O=pd(b,e=>{e.style.transition=``,m&&m(e)});return(0,z.jsx)(yg,{appear:a,in:l,nodeRef:b,onEnter:w,onEntered:T,onEntering:C,onExit:D,onExited:O,onExiting:E,addEndListener:i?e=>{i(b.current,e)}:void 0,reduceMotion:y.shouldReduceMotion,timeout:_,...v,children:(e,{ownerState:t,...n})=>{let r=md(e,l,aT,oT,g,o.props.style);return S.cloneElement(o,{style:r,ref:x,...n})}})});function cT(e){return V(`MuiBackdrop`,e)}H(`MuiBackdrop`,[`root`,`invisible`]);var lT=e=>{let{classes:t,invisible:n}=e;return W({root:[`root`,n&&`invisible`]},cT,t)},uT=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`}}]}),dT=S.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=lT(f),m={component:a,slots:l,slotProps:c},[h,g]=X(`root`,{elementType:uT,externalForwardedProps:m,className:B(p.root,i),ownerState:f}),[_,v]=X(`transition`,{elementType:sT,externalForwardedProps:m,ownerState:f});return(0,z.jsx)(_,{in:s,timeout:u,...d,...v,children:(0,z.jsx)(h,{...g,ref:t,children:r})})});function fT(e){let{badgeContent:t,invisible:n=!1,max:r=99,showZero:i=!1}=e,a=cb({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 pT(e){return V(`MuiBadge`,e)}var mT=H(`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`]),hT=10,gT=4,_T=e=>{let{color:t,anchorOrigin:n,invisible:r,overlap:i,variant:a,classes:o={}}=e;return W({root:[`root`],badge:[`badge`,a,r&&`invisible`,`anchorOrigin${Y(n.vertical)}${Y(n.horizontal)}`,`anchorOrigin${Y(n.vertical)}${Y(n.horizontal)}${Y(i)}`,`overlap${Y(i)}`,t!=="default"&&`color${Y(t)}`]},pT,o)},vT=K(`span`,{name:`MuiBadge`,slot:`Root`})({position:`relative`,display:`inline-flex`,verticalAlign:`middle`,flexShrink:0}),yT=K(`span`,{name:`MuiBadge`,slot:`Badge`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Y(n.anchorOrigin.vertical)}${Y(n.anchorOrigin.horizontal)}${Y(n.overlap)}`],n.color!=="default"&&t[`color${Y(n.color)}`],n.invisible&&t.invisible]}})(q(({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:20,lineHeight:1,padding:`0 6px`,height:20,borderRadius:hT,zIndex:1,"@media (forced-colors: active)":{border:`1px solid ButtonBorder`},..._d(e,`transform`,{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(fh([`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:gT,height:8,minWidth:8,padding:0}},{props:{invisible:!0},style:{..._d(e,`transform`,{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}},{style:{inset:`var(--Badge-inset)`,transform:`scale(1) translate(var(--Badge-translate))`,transformOrigin:`var(--Badge-origin)`,[`&.${mT.invisible}`]:{transform:`scale(0) translate(var(--Badge-translate))`}}}]})));function bT(e){return{vertical:e?.vertical??`top`,horizontal:e?.horizontal??`right`}}var xT=S.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}=fT({max:d,invisible:u,badgeContent:f,showZero:h}),S=cb({anchorOrigin:bT(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=bT(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=_T(A),M={slots:p,slotProps:m},[N,P]=X(`root`,{elementType:vT,externalForwardedProps:{...M,..._},ownerState:A,className:B(j.root,i),ref:t,additionalProps:{as:o}}),{vertical:F,horizontal:I}=O,R=T===`circular`?`14%`:`0`,ee=F===`top`?R:`auto`,te=F===`bottom`?R:`auto`,ne=I===`right`?R:`auto`,re=I===`left`?R:`auto`,[ie,ae]=X(`badge`,{elementType:yT,externalForwardedProps:M,ownerState:A,className:j.badge,additionalProps:{"aria-hidden":!0,style:{"--Badge-translate":`${I===`right`?`50%`:`-50%`}, ${F===`top`?`-50%`:`50%`}`,"--Badge-inset":`${ee} ${ne} ${te} ${re}`,"--Badge-origin":`${I===`right`?`100%`:`0%`} ${F===`top`?`0%`:`100%`}`}}});return(0,z.jsxs)(N,{...P,children:[s,(0,z.jsx)(ie,{...ae,children:k})]})}),ST=H(`MuiBox`,[`root`]),Z=ls({themeId:Xn,defaultTheme:bu(),defaultClassName:ST.root,generateClassName:ss.generate}),CT=$m((0,z.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`),wT=K(rg,{name:`MuiBreadcrumbCollapsed`})(q(({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:Ks(e.palette.grey[200],.12)}:{backgroundColor:Ks(e.palette.grey[600],.12)}}}))),TT=K(CT)({width:24,height:16});function ET(e){let{slots:t={},slotProps:n={},...r}=e,{nativeButton:i,...a}=r,o=e;return(0,z.jsx)(`li`,{children:(0,z.jsx)(wT,{focusRipple:!0,...a,ownerState:o,children:(0,z.jsx)(TT,{as:t.CollapsedIcon,ownerState:o,...n.collapsedIcon})})})}function DT(e){return V(`MuiBreadcrumbs`,e)}var OT=H(`MuiBreadcrumbs`,[`root`,`ol`,`li`,`separator`]),kT=e=>{let{classes:t}=e;return W({root:[`root`],li:[`li`],ol:[`ol`],separator:[`separator`]},DT,t)},AT=K(oy,{name:`MuiBreadcrumbs`,slot:`Root`,overridesResolver:(e,t)=>[{[`& .${OT.li}`]:t.li},t.root]})({}),jT=K(`ol`,{name:`MuiBreadcrumbs`,slot:`Ol`})({display:`flex`,flexWrap:`wrap`,alignItems:`center`,padding:0,margin:0,listStyle:`none`}),MT=K(`li`,{name:`MuiBreadcrumbs`,slot:`Separator`})({display:`flex`,userSelect:`none`,marginLeft:8,marginRight:8});function NT(e,t,n,r){return e.reduce((i,a,o)=>(o<e.length-1?i=i.concat(a,(0,z.jsx)(MT,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${o}`)):i.push(a),i),[])}var PT=S.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]=S.useState(!1),g={...n,component:a,expanded:m,expandText:c,itemsAfterCollapse:l,itemsBeforeCollapse:u,maxItems:d,separator:f},_=kT(g),v=rS({elementType:o.CollapsedIcon,externalSlotProps:s.collapsedIcon,ownerState:g}),y=S.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,z.jsx)(ET,{"aria-label":c,slots:{CollapsedIcon:o.CollapsedIcon},slotProps:{collapsedIcon:v},onClick:t},`ellipsis`),...e.slice(e.length-l,e.length)]},x=S.Children.toArray(r).filter(e=>S.isValidElement(e)).map((e,t)=>(0,z.jsx)(`li`,{className:_.li,children:e},`child-${t}`));return(0,z.jsx)(AT,{ref:t,component:a,color:`textSecondary`,className:B(_.root,i),ownerState:g,...p,children:(0,z.jsx)(jT,{className:_.ol,ref:y,ownerState:g,children:NT(m||d&&x.length<=d?x:b(x),_.separator,f,g)})})});function FT(e){return V(`MuiCard`,e)}H(`MuiCard`,[`root`]);var Pee=e=>{let{classes:t}=e;return W({root:[`root`]},FT,t)},Fee=K(Fg,{name:`MuiCard`,slot:`Root`})({overflow:`hidden`}),IT=S.forwardRef(function(e,t){let n=J({props:e,name:`MuiCard`}),{className:r,raised:i=!1,...a}=n,o={...n,raised:i},s=Pee(o);return(0,z.jsx)(Fee,{className:B(s.root,r),elevation:i?8:void 0,ref:t,ownerState:o,...a})});function Iee(e){return V(`MuiCardActions`,e)}H(`MuiCardActions`,[`root`,`spacing`]);var Lee=e=>{let{classes:t,disableSpacing:n}=e;return W({root:[`root`,!n&&`spacing`]},Iee,t)},Ree=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}}}]}),LT=S.forwardRef(function(e,t){let n=J({props:e,name:`MuiCardActions`}),{disableSpacing:r=!1,className:i,...a}=n,o={...n,disableSpacing:r},s=Lee(o);return(0,z.jsx)(Ree,{className:B(s.root,i),ownerState:o,ref:t,...a})});function zee(e){return V(`MuiCardContent`,e)}H(`MuiCardContent`,[`root`]);var Bee=e=>{let{classes:t}=e;return W({root:[`root`]},zee,t)},Vee=K(`div`,{name:`MuiCardContent`,slot:`Root`})({padding:16,"&:last-child":{paddingBottom:24}}),RT=S.forwardRef(function(e,t){let n=J({props:e,name:`MuiCardContent`}),{className:r,component:i=`div`,...a}=n,o={...n,component:i},s=Bee(o);return(0,z.jsx)(Vee,{as:i,className:B(s.root,r),ownerState:o,ref:t,...a})});function Hee(e){return V(`MuiCardHeader`,e)}var zT=H(`MuiCardHeader`,[`root`,`avatar`,`action`,`content`,`title`,`subheader`]),Uee=e=>{let{classes:t}=e;return W({root:[`root`],avatar:[`avatar`],action:[`action`],content:[`content`],title:[`title`],subheader:[`subheader`]},Hee,t)},Wee=K(`div`,{name:`MuiCardHeader`,slot:`Root`,overridesResolver:(e,t)=>[{[`& .${zT.title}`]:t.title},{[`& .${zT.subheader}`]:t.subheader},t.root]})({display:`flex`,alignItems:`center`,padding:16}),Gee=K(`div`,{name:`MuiCardHeader`,slot:`Avatar`})({display:`flex`,flex:`0 0 auto`,marginRight:16}),Kee=K(`div`,{name:`MuiCardHeader`,slot:`Action`})({flex:`0 0 auto`,alignSelf:`flex-start`,marginTop:-4,marginRight:-8,marginBottom:-4}),qee=K(`div`,{name:`MuiCardHeader`,slot:`Content`})({flex:`1 1 auto`,[`.${ny.root}:where(& .${zT.title})`]:{display:`block`},[`.${ny.root}:where(& .${zT.subheader})`]:{display:`block`}}),BT=S.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=Uee(f),m={slots:l,slotProps:u},h=c,[g,_]=X(`title`,{className:p.title,elementType:oy,externalForwardedProps:m,ownerState:f,additionalProps:{variant:i?`body2`:`h5`,component:`span`}});h!=null&&h.type!==oy&&!o&&(h=(0,z.jsx)(g,{..._,children:h}));let v=s,[y,b]=X(`subheader`,{className:p.subheader,elementType:oy,externalForwardedProps:m,ownerState:f,additionalProps:{variant:i?`body2`:`body1`,color:`textSecondary`,component:`span`}});v!=null&&v.type!==oy&&!o&&(v=(0,z.jsx)(y,{...b,children:v}));let[x,S]=X(`root`,{ref:t,className:p.root,elementType:Wee,externalForwardedProps:{...m,...d,component:a},ownerState:f}),[C,w]=X(`avatar`,{className:p.avatar,elementType:Gee,externalForwardedProps:m,ownerState:f}),[T,E]=X(`content`,{className:p.content,elementType:qee,externalForwardedProps:m,ownerState:f}),[D,O]=X(`action`,{className:p.action,elementType:Kee,externalForwardedProps:m,ownerState:f});return(0,z.jsxs)(x,{...S,children:[i&&(0,z.jsx)(C,{...w,children:i}),(0,z.jsxs)(T,{...E,children:[h,v]}),r&&(0,z.jsx)(D,{...O,children:r})]})});function VT(e){return e.substring(2).toLowerCase()}function Jee(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Yee(e){let{children:t,disableReactTree:n=!1,mouseEvent:r=`onClick`,onClickAway:i,touchEvent:a=`onTouchEnd`}=e,o=S.useRef(!1),s=S.useRef(null),c=S.useRef(!1),l=S.useRef(!1);S.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);let u=Du(iS(t),s),d=Ou(e=>{let t=l.current;l.current=!1;let r=ku(s.current);if(!c.current||!s.current||`clientX`in e&&Jee(e,r))return;if(o.current){o.current=!1;return}let a;a=e.composedPath?e.composedPath().includes(s.current):!sb(r.documentElement,e.target)||sb(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)),S.useEffect(()=>{if(a!==!1){let e=VT(a),t=ku(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)),S.useEffect(()=>{if(r!==!1){let e=VT(r),t=ku(s.current);return t.addEventListener(e,d),()=>{t.removeEventListener(e,d)}}},[d,r]),S.cloneElement(t,p)}var HT=Vc({createStyledComponent:K(`div`,{name:`MuiContainer`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`maxWidth${Y(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>J({props:e,name:`MuiContainer`})});function UT(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Xee(e){let t=ku(e);return e===t.body||e===t.documentElement?Au(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function WT(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function GT(e){return parseFloat(Au(e).getComputedStyle(e).paddingRight)||0}function Zee(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 KT(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!Zee(e);t&&n&&WT(e,i)})}function Qee(e,t){let n=[],r=e.container;if(!t.disableScrollLock){let e;if(r.parentNode instanceof DocumentFragment)e=ku(r).body;else{let t=r.parentElement,n=Au(r);e=t?.nodeName===`HTML`&&n.getComputedStyle(t).overflowY===`scroll`?t:r}if(Xee(e)){let t=UT(Au(e));n.push({value:e.style.paddingRight,property:`padding-right`,el:e}),e.style.paddingRight=`${GT(e)+t}px`;let i=ku(r).querySelectorAll(`.mui-fixed`);[].forEach.call(i,e=>{n.push({value:e.style.paddingRight,property:`padding-right`,el:e}),e.style.paddingRight=`${GT(e)+t}px`})}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 $ee(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var ete=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&&WT(e.modalRef,!1);let r=$ee(t);KT(t,e.mount,e.modalRef,r,!0);let i=this.containers.findIndex(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=this.containers.findIndex(t=>t.modals.includes(e)),r=this.containers[n];r.restore||=Qee(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=this.containers.findIndex(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&&WT(e.modalRef,t),KT(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&&WT(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},qT=sb,JT=`data-mui-focusable`;function YT(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${JT}]`):null}var tte=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function XT(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 nte(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 rte(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||nte(e))}function ite(e){let t=[],n=[];return Array.from(e.querySelectorAll(tte)).forEach((e,r)=>{let i=XT(e);i!==-1&&rte(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 ate(){return!0}function ote(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=ite,isEnabled:o=ate,open:s}=e,c=S.useRef(!1),l=S.useRef(null),u=S.useRef(null),d=S.useRef(null),f=S.useRef(null),p=S.useRef(!1),m=S.useRef(null),h=Du(iS(t),m),g=S.useRef(null);S.useEffect(()=>{s&&m.current&&(p.current=!n)},[n,s]),S.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=Yu(ku(m.current)),t=YT(m.current)??m.current;return qT(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]),S.useEffect(()=>{if(!s||!m.current)return;let e=ku(m.current),t=t=>{if(g.current=t,r||!o()||t.key!==`Tab`)return;let n=m.current,i=Yu(e);if(n===null)return;let s=YT(n);if(i===n||i===s){let e=a(n);if(e.length===0)return;t.preventDefault(),t.shiftKey?e[e.length-1].focus():e[0].focus();return}if(qT(n,i)){let e=a(n),r=e.indexOf(i);if(r===-1||!e.some(e=>XT(e)>0))return;t.preventDefault();let o=0;o=t.shiftKey?r<=0?e.length-1:r-1:r===e.length-1?0:r+1,e[o].focus()}},n=()=>{let t=m.current;if(t===null)return;let n=Yu(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(qT(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=Yu(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,z.jsxs)(S.Fragment,{children:[(0,z.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),S.cloneElement(t,{ref:h,onFocus:_}),(0,z.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}function ste(e){return typeof e==`function`?e():e}function cte(e){return e?e.props.hasOwnProperty(`in`):!1}var ZT=()=>{},QT=new ete;function lte(e){let{container:t,disableScrollLock:n=!1,closeAfterTransition:r=!1,onTransitionEnter:i,onTransitionExited:a,children:o,onClose:s,open:c,rootRef:l}=e,u=S.useRef({}),d=S.useRef(null),f=S.useRef(null),p=S.useRef(null),m=Du(p,l),[h,g]=S.useState(!c),_=cte(o),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>ku(d.current),b=()=>(u.current.modalRef=p.current,u.current.mount=d.current,u.current),x=()=>{QT.mount(b(),{disableScrollLock:n}),p.current&&(p.current.scrollTop=0)},C=Ou(()=>{let e=ste(t)||y().body;QT.add(b(),e),p.current&&x()}),w=()=>QT.isTopModal(b()),T=Ou(e=>{d.current=e,e&&(f.current=e,c&&w()?x():p.current&&WT(p.current,v))}),E=S.useCallback(()=>{QT.remove(b(),v)},[v]);S.useEffect(()=>()=>{E()},[E]),S.useEffect(()=>{c?C():(!_||!r)&&E()},[c,E,_,r,C]);let D=e=>t=>{e.onKeyDown?.(t),t.key===`Escape`&&t.which!==229&&w()&&(t.stopPropagation(),s&&s(t,`escapeKeyDown`))},O=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&s&&s(t,`backdropClick`)};return{getRootProps:(t={})=>{let n=Sg(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:c}},getTransitionProps:()=>({onEnter:qm(()=>{g(!1),i&&i()},o?.props.onEnter??ZT),onExited:qm(()=>{g(!0),a&&a(),r&&E()},o?.props.onExited??ZT)}),rootRef:m,portalRef:T,portalContainer:!c&&_&&!h?f.current??t:t,isTopModal:w,exited:h,hasTransition:_}}function ute(e){return V(`MuiModal`,e)}H(`MuiModal`,[`root`,`hidden`,`backdrop`]);var dte=e=>{let{open:t,exited:n,classes:r}=e;return W({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},ute,r)},fte=K(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(q(({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`}}]}))),pte=K(dT,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),$T=S.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:C,...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,portalContainer:A,isTopModal:j,exited:M,hasTransition:N}=lte({...T,rootRef:t}),P={...T,exited:M},F=dte(P),I={};if(o.props.tabIndex===void 0&&(I.tabIndex=`-1`),N){let{onEnter:e,onExited:t}=O();I.onEnter=e,I.onExited=t}let R={slots:x,slotProps:b},[ee,te]=X(`root`,{ref:t,elementType:fte,externalForwardedProps:{...R,...w,component:c},getSlotProps:E,ownerState:P,className:B(i,F?.root,!P.open&&P.exited&&F?.hidden)}),[ne,re]=X(`backdrop`,{elementType:pte,externalForwardedProps:R,shouldForwardComponentProp:!0,getSlotProps:e=>D({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:F?.backdrop,ownerState:P});return!h&&!y&&(!N||M)?null:(0,z.jsx)(sS,{ref:k,container:A,disablePortal:d,children:(0,z.jsxs)(ee,{...te,children:[m?null:(0,z.jsx)(ne,{...re}),(0,z.jsx)(ote,{disableEnforceFocus:u,disableAutoFocus:l,disableRestoreFocus:f,isEnabled:j,open:y,children:S.cloneElement(o,I)})]})})});function mte(e){return V(`MuiDialog`,e)}H(`MuiDialog`,[`root`,`backdrop`,`scrollPaper`,`scrollBody`,`container`,`paper`,`paperWidthFalse`,`paperWidthXs`,`paperWidthSm`,`paperWidthMd`,`paperWidthLg`,`paperWidthXl`,`paperFullWidth`,`paperFullScreen`]);var eE=S.createContext({}),hte=K(dT,{name:`MuiDialog`,slot:`Backdrop`})({zIndex:-1}),gte=e=>{let{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=e;return W({root:[`root`],backdrop:[`backdrop`],container:[`container`,`scroll${Y(n)}`],paper:[`paper`,`paperWidth${Y(String(r))}`,i&&`paperFullWidth`,a&&`paperFullScreen`]},mte,t)},_te=K($T,{name:`MuiDialog`,slot:`Root`})({"@media print":{position:`absolute !important`}}),vte=K(`div`,{name:`MuiDialog`,slot:`Container`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.container,t[`scroll${Y(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`}}}]}),yte=K(Fg,{name:`MuiDialog`,slot:`Paper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.paper,t[`paperWidth${Y(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(q(({theme:e})=>({margin:32,position:`relative`,overflowY:`auto`,outline:0,"@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%`}}]}))),tE=S.forwardRef(function(e,t){let n=J({props:e,name:`MuiDialog`}),r=Bu(),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=Fg,role:_=`dialog`,scroll:v=`paper`,slots:y={},slotProps:b={},transitionDuration:x=i,...C}=n,w={...n,fullScreen:u,fullWidth:d,maxWidth:f,scroll:v},T=gte(w),E=S.useRef(),D=e=>{E.current=e.target===e.currentTarget},O=e=>{p&&p(e),E.current&&(E.current=null,m&&m(e,`backdropClick`))},k=lc(o),A=S.useMemo(()=>({titleId:k}),[k]),j={slots:y,slotProps:b},[M,N]=X(`root`,{elementType:_te,shouldForwardComponentProp:!0,externalForwardedProps:j,ownerState:w,className:B(T.root,l),ref:t}),[P,F]=X(`backdrop`,{elementType:hte,shouldForwardComponentProp:!0,externalForwardedProps:j,ownerState:w,className:T.backdrop}),[I,R]=X(`paper`,{elementType:yte,shouldForwardComponentProp:!0,externalForwardedProps:j,ownerState:w,className:T.paper,additionalProps:{elevation:24,role:_,"aria-describedby":a,"aria-labelledby":k,"aria-modal":s,tabIndex:-1,[JT]:``}}),[ee,te]=X(`container`,{elementType:vte,externalForwardedProps:j,ownerState:w,className:T.container}),[ne,re]=X(`transition`,{elementType:sT,externalForwardedProps:j,ownerState:w,additionalProps:{appear:!0,in:h,timeout:x,role:`presentation`}});return(0,z.jsx)(M,{closeAfterTransition:!0,slots:{backdrop:P},slotProps:{backdrop:{transitionDuration:x,...F}},onClose:m,open:h,onClick:O,...N,...C,children:(0,z.jsx)(ne,{...re,children:(0,z.jsx)(ee,{onMouseDown:D,...te,children:(0,z.jsx)(I,{as:g,...R,children:(0,z.jsx)(eE.Provider,{value:A,children:c})})})})})});function bte(e){return V(`MuiDialogActions`,e)}H(`MuiDialogActions`,[`root`,`spacing`]);var xte=e=>{let{classes:t,disableSpacing:n}=e;return W({root:[`root`,!n&&`spacing`]},bte,t)},Ste=K(`div`,{name:`MuiDialogActions`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:`flex`,alignItems:`center`,padding:8,justifyContent:`flex-end`,flex:`0 0 auto`,variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),nE=S.forwardRef(function(e,t){let n=J({props:e,name:`MuiDialogActions`}),{className:r,disableSpacing:i=!1,...a}=n,o={...n,disableSpacing:i},s=xte(o);return(0,z.jsx)(Ste,{className:B(s.root,r),ownerState:o,ref:t,...a})});function Cte(e){return V(`MuiDialogContent`,e)}H(`MuiDialogContent`,[`root`,`dividers`]);function wte(e){return V(`MuiDialogTitle`,e)}var Tte=H(`MuiDialogTitle`,[`root`]),Ete=e=>{let{classes:t,dividers:n}=e;return W({root:[`root`,n&&`dividers`]},Cte,t)},Dte=K(`div`,{name:`MuiDialogContent`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(q(({theme:e})=>({flex:`1 1 auto`,WebkitOverflowScrolling:`touch`,overflowY:`auto`,padding:`20px 24px`,variants:[{props:({ownerState:e})=>e.dividers,style:{padding:`16px 24px`,borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${Tte.root} + &`]:{paddingTop:0}}}]}))),rE=S.forwardRef(function(e,t){let n=J({props:e,name:`MuiDialogContent`}),{className:r,dividers:i=!1,...a}=n,o={...n,dividers:i},s=Ete(o);return(0,z.jsx)(Dte,{className:B(s.root,r),ownerState:o,ref:t,...a})});function Ote(e){return V(`MuiDialogContentText`,e)}H(`MuiDialogContentText`,[`root`]);var kte=e=>{let{classes:t}=e,n=W({root:[`root`]},Ote,t);return{...t,...n}},Ate=K(oy,{shouldForwardProp:e=>Uu(e)||e===`classes`,name:`MuiDialogContentText`,slot:`Root`})({}),iE=S.forwardRef(function(e,t){let n=J({props:e,name:`MuiDialogContentText`}),{children:r,className:i,...a}=n,o=kte(a);return(0,z.jsx)(Ate,{component:`p`,variant:`body1`,color:`textSecondary`,ref:t,ownerState:a,className:B(o.root,i),...n,classes:o})}),jte=e=>{let{classes:t}=e;return W({root:[`root`]},wte,t)},Mte=K(oy,{name:`MuiDialogTitle`,slot:`Root`})({padding:`16px 24px`,flex:`0 0 auto`}),aE=S.forwardRef(function(e,t){let n=J({props:e,name:`MuiDialogTitle`}),{className:r,id:i,...a}=n,o=n,s=jte(o),{titleId:c=i}=S.useContext(eE);return(0,z.jsx)(Mte,{component:`h2`,className:B(s.root,r),ownerState:o,ref:t,variant:`h6`,id:i??c,...a})});function Nte(e){return V(`MuiDivider`,e)}var oE=H(`MuiDivider`,[`root`,`absolute`,`fullWidth`,`inset`,`middle`,`flexItem`,`vertical`,`withChildren`,`textAlignRight`,`textAlignLeft`,`wrapper`,`wrapperVertical`]),Pte=e=>{let{absolute:t,children:n,classes:r,flexItem:i,orientation:a,textAlign:o,variant:s}=e;return W({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`]},Nte,r)},Fte=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]}})(q(({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%`}}}]}))),Ite=K(`span`,{name:`MuiDivider`,slot:`Wrapper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.wrapper,n.orientation===`vertical`&&t.wrapperVertical]}})(q(({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)`}}]}))),sE=S.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=Pte(p);return(0,z.jsx)(Fte,{as:s,className:B(m.root,a),role:l,ref:t,ownerState:p,"aria-orientation":l===`separator`&&(s!==`hr`||o===`vertical`)?o:void 0,...f,children:i?(0,z.jsx)(Ite,{className:m.wrapper,ownerState:p,children:i}):null})}),Lte={visibility:`hidden`},Rte={};function zte(e){return typeof e==`string`&&/^translate\(.+,\s*.+\)$/.test(e)}function Bte(e,t,n,r=Rte){let{resetInlineTransform:i=!0}=r,a=n&&n.getBoundingClientRect(),o=nh(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}=fd(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 Vte(e){return typeof e==`function`?e():e}function cE(e,t,n,r){let i=Bte(e,t,Vte(n),r);i&&(t.style.transform=i)}var lE=S.forwardRef(function(e,t){let n=Bu(),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,disablePrefersReducedMotion:l=!1,direction:u=`down`,easing:d=r,in:f,onEnter:p,onEntered:m,onEntering:h,onExit:g,onExited:_,onExiting:v,style:y,timeout:b=i,...x}=e,C=zh(n.motion.reducedMotion,l),w=S.useRef(null),T=S.useRef(!1),E=Gu(iS(s),w,t),D=pd(w,(e,t)=>{cE(u,e,c),C.shouldReduceMotion||rd(e),p&&p(e,t)}),O=pd(w,(e,t)=>{let r=hd({timeout:b,style:y,easing:d},{mode:`enter`}),i=C.getTransitionTiming({duration:r.duration,delay:r.delay});e.style.transition=n.transitions.create(`transform`,{duration:i.duration,easing:r.easing,delay:i.delay}),e.style.transform=`none`,h&&h(e,t)}),k=pd(w,m),A=pd(w,v),j=pd(w,e=>{let t=hd({timeout:b,style:y,easing:d},{mode:`exit`}),r=C.getTransitionTiming({duration:t.duration,delay:t.delay});e.style.transition=n.transitions.create(`transform`,{duration:r.duration,easing:t.easing,delay:r.delay});let i=zte(e.style.transform);T.current=i,cE(u,e,c,{resetInlineTransform:!i}),g&&g(e)}),M=pd(w,e=>{T.current=!1,e.style.transition=``,_&&_(e)}),N=a?e=>{a(w.current,e)}:void 0,P=S.useCallback(()=>{w.current&&cE(u,w.current,c)},[u,c]);return S.useEffect(()=>{if(f||u===`down`||u===`right`)return;let e=eh(()=>{w.current&&cE(u,w.current,c)}),t=nh(w.current);return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[u,f,c]),S.useEffect(()=>{!f&&!T.current&&P()},[f,P]),(0,z.jsx)(yg,{nodeRef:w,onEnter:D,onEntered:k,onEntering:O,onExit:j,onExited:M,onExiting:A,addEndListener:N,appear:o,in:f,reduceMotion:C.shouldReduceMotion,timeout:b,...x,children:(e,{ownerState:t,...n})=>{let r;return r=e===`exited`&&!f?y||s.props.style?{visibility:`hidden`,...y,...s.props.style}:Lte:y&&s.props.style?{...y,...s.props.style}:y||s.props.style,S.cloneElement(s,{ref:E,style:r,...n})}})});function Hte(e){return V(`MuiDrawer`,e)}H(`MuiDrawer`,[`root`,`docked`,`paper`,`anchorLeft`,`anchorRight`,`anchorTop`,`anchorBottom`,`modal`]);var uE=(e,t)=>{let{ownerState:n}=e;return[t.root,(n.variant===`permanent`||n.variant===`persistent`)&&t.docked,n.variant===`temporary`&&t.modal]},Ute=e=>{let{classes:t,anchor:n,variant:r}=e;return W({root:[`root`,`anchor${Y(n)}`],docked:[(r===`permanent`||r===`persistent`)&&`docked`],modal:[`modal`],paper:[`paper`]},Hte,t)},Wte=K($T,{name:`MuiDrawer`,slot:`Root`,overridesResolver:uE})(q(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),Gte=K(`div`,{shouldForwardProp:Uu,name:`MuiDrawer`,slot:`Docked`,skipVariantsResolver:!1,overridesResolver:uE})({flex:`0 0 auto`}),dE=K(Fg,{name:`MuiDrawer`,slot:`Paper`})(q(({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}`}}]}))),fE={left:`right`,right:`left`,top:`down`,bottom:`up`};function pE(e){return[`left`,`right`].includes(e)}function mE({direction:e},t){return e===`rtl`&&pE(t)?fE[t]:t}var hE=S.forwardRef(function(e,t){let n=J({props:e,name:`MuiDrawer`}),r=Bu(),i=tc(),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=S.useRef(!1),b=S.useRef(null),x=Gu(t,b);S.useEffect(()=>{y.current=!0},[]);let C=S.useCallback(()=>b.current,[]),w=mE({direction:i?`rtl`:`ltr`},o),T=o,E={...n,anchor:T,elevation:l,open:p,variant:h,...v},D=Ute(E),O={slots:g,slotProps:{..._,backdrop:lh(_.backdrop,{transitionDuration:m})}},[k,A]=X(`root`,{ref:x,elementType:Wte,className:B(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]=X(`paper`,{elementType:dE,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]=X(`docked`,{elementType:Gte,ref:x,className:B(D.root,D.docked,c),ownerState:E,externalForwardedProps:O,additionalProps:v}),[F,I]=X(`transition`,{elementType:lE,ownerState:E,externalForwardedProps:O,additionalProps:{in:p,direction:fE[w],timeout:m,appear:y.current,...h===`temporary`&&(g.transition==null||g.transition===lE)&&{container:C}}}),R=(0,z.jsx)(j,{...M,children:s});if(h===`permanent`)return(0,z.jsx)(N,{...P,children:R});let ee=(0,z.jsx)(F,{...I,children:R});return h===`persistent`?(0,z.jsx)(N,{...P,children:ee}):(0,z.jsx)(k,{...A,children:ee})});function gE(e){return V(`MuiFormControl`,e)}H(`MuiFormControl`,[`root`,`marginNone`,`marginNormal`,`marginDense`,`fullWidth`,`disabled`]);var _E=e=>{let{classes:t,margin:n,fullWidth:r}=e;return W({root:[`root`,n!==`none`&&`margin${Y(n)}`,r&&`fullWidth`]},gE,t)},vE=K(`div`,{name:`MuiFormControl`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`margin${Y(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:`inline-flex`,flexDirection:`column`,position:`relative`,minWidth:0,padding:0,margin:0,border:0,verticalAlign:`top`,variants:[{props:{margin:`normal`},style:{marginTop:16,marginBottom:8}},{props:{margin:`dense`},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:`100%`}}]}),yE=S.forwardRef(function(e,t){let n=J({props:e,name:`MuiFormControl`}),{children:r,className:i,color:a=`primary`,component:o=`div`,disabled:s=!1,error:c=!1,focused:l,fullWidth:u=!1,hiddenLabel:d=!1,margin:f=`none`,required:p=!1,size:m=`medium`,variant:h=`outlined`,...g}=n,_={...n,color:a,component:o,disabled:s,error:c,fullWidth:u,hiddenLabel:d,margin:f,required:p,size:m,variant:h},v=_E(_),[y,b]=S.useState(()=>{let e=!1;return r&&S.Children.forEach(r,t=>{if(!th(t,[`Input`,`Select`]))return;let n=th(t,[`Select`])?t.props.input:t;n&&Qu(n.props)&&(e=!0)}),e}),[x,C]=S.useState(()=>{let e=!1;return r&&S.Children.forEach(r,t=>{th(t,[`Input`,`Select`])&&(Zu(t.props,!0)||Zu(t.props.inputProps,!0))&&(e=!0)}),e}),[w,T]=S.useState(!1);s&&w&&T(!1);let E=l!==void 0&&!s?l:w,D;S.useRef(!1);let O=S.useCallback(()=>{C(!0)},[]),k=S.useCallback(()=>{C(!1)},[]),A=S.useMemo(()=>({adornedStart:y,setAdornedStart:b,color:a,disabled:s,error:c,filled:x,focused:E,fullWidth:u,hiddenLabel:d,size:m,onBlur:()=>{T(!1)},onFocus:()=>{T(!0)},onEmpty:k,onFilled:O,registerEffect:D,required:p,variant:h}),[y,a,s,c,x,E,u,d,D,k,O,p,m,h]);return(0,z.jsx)(Iu.Provider,{value:A,children:(0,z.jsx)(vE,{as:o,ownerState:_,className:B(v.root,i),ref:t,...g,children:r})})}),Kte,qte=e=>{let{classes:t,contained:n,size:r,disabled:i,error:a,filled:o,focused:s,required:c}=e;return W({root:[`root`,i&&`disabled`,a&&`error`,r&&`size${Y(r)}`,n&&`contained`,s&&`focused`,o&&`filled`,c&&`required`]},Ad,t)},bE=K(`p`,{name:`MuiFormHelperText`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.size&&t[`size${Y(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(q(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:`left`,marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${jd.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${jd.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:`small`},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),xE=S.forwardRef(function(e,t){let n=J({props:e,name:`MuiFormHelperText`}),{children:r,className:i,component:a=`p`,disabled:o,error:s,filled:c,focused:l,margin:u,required:d,variant:f,...p}=n,[m]=Ru({props:n,states:[`variant`,`size`,`disabled`,`error`,`filled`,`focused`,`required`]}),h={...n,component:a,contained:m.variant===`filled`||m.variant===`outlined`,variant:m.variant,size:m.size,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required};delete h.ownerState;let g=qte(h);return(0,z.jsx)(bE,{as:a,className:B(g.root,i),ref:t,...p,ownerState:h,children:r===` `?Kte||=(0,z.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:`​`}):r})});function SE(e){return`scale(${e}, ${e**2})`}var CE={entering:{opacity:1,transform:SE(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:SE(.75)},exited:{opacity:0,transform:SE(.75)}},wE={opacity:0,transform:SE(.75),visibility:`hidden`},TE=S.forwardRef(function(e,t){let{addEndListener:n,appear:r=!0,children:i,disablePrefersReducedMotion:a=!1,easing:o,in:s,onEnter:c,onEntered:l,onEntering:u,onExit:d,onExited:f,onExiting:p,style:m,timeout:h=`auto`,...g}=e,_=S.useRef(null),v=Bu(),y=zh(v.motion.reducedMotion,a),b=S.useRef(null),x=Gu(b,iS(i),t),C=pd(b,u),w=pd(b,(e,t)=>{y.shouldReduceMotion||rd(e);let{duration:n,delay:r,easing:i}=hd({style:m,timeout:h,easing:o},{mode:`enter`}),a;h===`auto`&&!y.shouldReduceMotion?(a=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=a):(a=n,_.current=null);let s=y.getTransitionTiming({duration:a,delay:r});e.style.transition=[v.transitions.create(`opacity`,{duration:s.duration,delay:s.delay}),v.transitions.create(`transform`,{duration:typeof s.duration==`string`?s.duration:s.duration*.666,delay:s.delay,easing:i})].join(`,`),c&&c(e,t)}),T=pd(b,l),E=pd(b,p),D=pd(b,e=>{let{duration:t,delay:n,easing:r}=hd({style:m,timeout:h,easing:o},{mode:`exit`}),i;h===`auto`&&!y.shouldReduceMotion?(i=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=i):(i=t,_.current=null);let a=y.getTransitionTiming({duration:i,delay:n});e.style.transition=[v.transitions.create(`opacity`,{duration:a.duration,delay:a.delay}),v.transitions.create(`transform`,{duration:typeof a.duration==`string`?a.duration:a.duration*.666,delay:a.delay||(typeof a.duration==`string`?a.duration:a.duration*.333),easing:r})].join(`,`),e.style.opacity=0,e.style.transform=SE(.75),d&&d(e)}),O=pd(b,e=>{e.style.transition=``,f&&f(e)});return(0,z.jsx)(yg,{appear:r,in:s,nodeRef:b,onEnter:w,onEntered:T,onEntering:C,onExit:D,onExited:O,onExiting:E,addEndListener:n?e=>{n(b.current,e)}:void 0,getAutoTimeout:h===`auto`?()=>_.current:void 0,reduceMotion:y.shouldReduceMotion,timeout:h===`auto`?null:h,...g,children:(e,{ownerState:t,...n})=>{let r=md(e,s,CE,wE,m,i.props.style);return S.cloneElement(i,{style:r,ref:x,...n})}})});TE&&(TE.muiSupportAuto=!0);var EE=e=>{let{classes:t,disableUnderline:n}=e,r=W({root:[`root`,!n&&`underline`],input:[`input`]},Pd,t);return{...t,...r}},DE=K(wd,{shouldForwardProp:e=>Uu(e)||e===`classes`,name:`MuiInput`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...xd(e,t),!n.disableUnderline&&t.underline]}})(q(({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 + &, .${my.root} + &`]:{marginTop:16}}},{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:`""`,position:`absolute`,right:0,transform:`scaleX(0)`,..._d(e,`transform`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:`none`},[`&.${Fd.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${Fd.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:`""`,position:`absolute`,right:0,..._d(e,`border-bottom-color`,{duration:e.transitions.duration.shorter}),pointerEvents:`none`},[`&:hover:not(.${Fd.disabled}, .${Fd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${Fd.disabled}:before`]:{borderBottomStyle:`dotted`}}},...Object.entries(e.palette).filter(fh()).map(([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}}))]}})),OE=K(Td,{name:`MuiInput`,slot:`Input`,overridesResolver:Sd})({}),kE=S.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=EE(n),p={root:{ownerState:{disableUnderline:r}}},m=c?ha(c,p):p,h=l.root??DE,g=l.input??OE;return(0,z.jsx)(Dd,{slots:{root:h,input:g},slotProps:m,fullWidth:i,inputComponent:a,multiline:o,ref:t,type:u,...d,classes:f})});kE.muiName=`Input`;function AE(e){return V(`MuiLinearProgress`,e)}H(`MuiLinearProgress`,[`root`,`colorPrimary`,`colorSecondary`,`determinate`,`indeterminate`,`buffer`,`query`,`dashed`,`bar`,`bar1`,`bar2`]);var jE=4,ME={},NE=qi`
177
+ 0% {
178
+ left: -35%;
179
+ right: 100%;
180
+ }
181
+
182
+ 60% {
183
+ left: 100%;
184
+ right: -90%;
185
+ }
186
+
187
+ 100% {
188
+ left: 100%;
189
+ right: -90%;
190
+ }
191
+ `,PE=typeof NE==`string`?null:Ki`
192
+ animation: ${NE} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
193
+ `,FE=qi`
194
+ 0% {
195
+ left: -200%;
196
+ right: 100%;
197
+ }
198
+
199
+ 60% {
200
+ left: 107%;
201
+ right: -8%;
202
+ }
203
+
204
+ 100% {
205
+ left: 107%;
206
+ right: -8%;
207
+ }
208
+ `,IE=typeof FE==`string`?null:Ki`
209
+ animation: ${FE} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
210
+ `,LE=qi`
211
+ 0% {
212
+ opacity: 1;
213
+ background-position: 0 -23px;
214
+ }
215
+
216
+ 60% {
217
+ opacity: 0;
218
+ background-position: 0 -23px;
219
+ }
220
+
221
+ 100% {
222
+ opacity: 1;
223
+ background-position: -200px -23px;
224
+ }
225
+ `,RE=typeof LE==`string`?null:Ki`
226
+ animation: ${LE} 3s infinite linear;
227
+ `,zE=e=>{let{classes:t,variant:n,color:r}=e;return W({root:[`root`,`color${Y(r)}`,n],dashed:[`dashed`],bar1:[`bar`,`bar1`],bar2:[`bar`,`bar2`,n===`buffer`&&`color${Y(r)}`]},AE,t)},BE=(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),VE=K(`span`,{name:`MuiLinearProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`color${Y(n.color)}`],t[n.variant]]}})(q(({theme:e})=>({position:`relative`,overflow:`hidden`,display:`block`,height:4,zIndex:0,"@media print":{colorAdjust:`exact`},variants:[...Object.entries(e.palette).filter(fh()).map(([t])=>({props:{color:t},style:{backgroundColor:BE(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)`}}]}))),HE=K(`span`,{name:`MuiLinearProgress`,slot:`Dashed`})(q(({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(fh()).map(([t])=>{let n=BE(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),RE||{animation:`${LE} 3s infinite linear`},q(({theme:e})=>gd(e,{animation:`none`})||ME)),UE=K(`span`,{name:`MuiLinearProgress`,slot:`Bar1`,overridesResolver:(e,t)=>[t.bar,t.bar1]})(q(({theme:e})=>{let t=gd(e,{animation:`none`,left:`30%`,right:`auto`,width:`40%`});return{width:`100%`,position:`absolute`,left:0,bottom:0,top:0,..._d(e,`transform`,{duration:`0.2s`,easing:`linear`}),transformOrigin:`left`,variants:[{props:{color:`inherit`},style:{backgroundColor:`currentColor`}},...Object.entries(e.palette).filter(fh()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:`determinate`},style:{..._d(e,`transform`,{duration:`.${jE}s`,easing:`linear`})}},{props:{variant:`buffer`},style:{zIndex:1,..._d(e,`transform`,{duration:`.${jE}s`,easing:`linear`})}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:{width:`auto`}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:PE||{animation:`${NE} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}},...t?[{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:t}]:[]]}})),WE=K(`span`,{name:`MuiLinearProgress`,slot:`Bar2`,overridesResolver:(e,t)=>[t.bar,t.bar2]})(q(({theme:e})=>{let t=gd(e,{animation:`none`,display:`none`});return{width:`100%`,position:`absolute`,left:0,bottom:0,top:0,..._d(e,`transform`,{duration:`0.2s`,easing:`linear`}),transformOrigin:`left`,variants:[...Object.entries(e.palette).filter(fh()).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(fh()).map(([t])=>({props:{color:t,variant:`buffer`},style:{backgroundColor:BE(e,t),..._d(e,`transform`,{duration:`.${jE}s`,easing:`linear`})}})),{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:{width:`auto`}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:IE||{animation:`${FE} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}},...t?[{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:t}]:[]]}})),GE=S.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=zE(d),h=tc(),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,z.jsxs)(VE,{className:B(m.root,r),ownerState:d,role:`progressbar`,...g,ref:t,...u,children:[l===`buffer`?(0,z.jsx)(HE,{className:m.dashed,ownerState:d}):null,(0,z.jsx)(UE,{className:m.bar1,ownerState:d,style:_.bar1}),l===`determinate`?null:(0,z.jsx)(WE,{className:m.bar2,ownerState:d,style:_.bar2})]})});function KE(e){return V(`MuiLink`,e)}var qE=H(`MuiLink`,[`root`,`underlineNone`,`underlineHover`,`underlineAlways`,`button`,`focusVisible`]),JE=({theme:e,ownerState:t})=>{let n=t.color;if(`colorSpace`in e&&e.colorSpace){let r=Xa(e,`palette.${n}.main`)||Xa(e,`palette.${n}`)||t.color;return e.alpha(r,.4)}let r=Xa(e,`palette.${n}.main`,!1)||Xa(e,`palette.${n}`,!1)||t.color,i=Xa(e,`palette.${n}.mainChannel`)||Xa(e,`palette.${n}Channel`);return`vars`in e&&i?`rgba(${i} / 0.4)`:U(r,.4)},YE={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},XE=e=>{let{classes:t,component:n,focusVisible:r,underline:i}=e;return W({root:[`root`,`underline${Y(i)}`,n===`button`&&`button`,r&&`focusVisible`]},KE,t)},ZE=K(oy,{name:`MuiLink`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`underline${Y(n.underline)}`],n.component===`button`&&t.button]}})(q(({theme:e})=>({...e.focusVisible&&{[`&.${qE.focusVisible}`]:{...Cl,...e.focusVisible}},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(fh()).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`},...!e.focusVisible&&{[`&.${qE.focusVisible}`]:{outline:`auto`}}}}]}))),QE=S.forwardRef(function(e,t){let n=J({props:e,name:`MuiLink`}),r=Bu(),{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]=S.useState(!1),g=e=>{ph(e.target)||h(!1),s&&s(e)},_=e=>{ph(e.target)&&h(!0),c&&c(e)},v={...n,color:a,component:o,focusVisible:m,underline:u,variant:d},y=XE(v);return(0,z.jsx)(ZE,{color:a,className:B(y.root,i),classes:l,component:o,onBlur:g,onFocus:_,ref:t,ownerState:v,variant:d,...p,sx:[...YE[a]===void 0?[{color:a}]:[],...Array.isArray(f)?f:[f]],style:{...p.style,...u===`always`&&a!==`inherit`&&!YE[a]&&{"--Link-underlineColor":JE({theme:r,ownerState:v})}}})}),$E=S.createContext({});function Jte(e){return V(`MuiList`,e)}var Yte=H(`MuiList`,[`root`,`padding`,`dense`,`subheader`]),Xte=e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return W({root:[`root`,!n&&`padding`,r&&`dense`,i&&`subheader`]},Jte,t)},Zte=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`}}]}),eD=S.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=S.useMemo(()=>({dense:o}),[o]),d={...n,component:a,dense:o,disablePadding:s},f=Xte(d);return(0,z.jsx)($E.Provider,{value:u,children:(0,z.jsxs)(Zte,{as:a,className:B(f.root,i),ref:t,ownerState:d,...l,children:[c,r]})})}),Qte=(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]},$te=e=>{let{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:a,divider:o,selected:s}=e,c=W({root:[`root`,r&&`dense`,!a&&`gutters`,o&&`divider`,i&&`disabled`,t===`flex-start`&&`alignItemsFlexStart`,s&&`selected`]},Id,n);return{...n,...c}},ene=K(rg,{shouldForwardProp:e=>Uu(e)||e===`classes`,name:`MuiListItemButton`,slot:`Root`,overridesResolver:Qte})(q(({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,..._d(e,`background-color`,{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:`none`,backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}},[`&.${Ld.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),...!e.focusVisible&&{[`&.${Ld.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},[`&.${Ld.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)}},...e.focusVisible?Tl(1):{[`&.${Ld.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus}},[`&.${Ld.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}}]}))),tD=S.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=S.useContext($E),h=S.useMemo(()=>({dense:s||m.dense||!1,alignItems:r,disableGutters:c}),[r,m.dense,s,c]),g=S.useRef(null);Ku(()=>{i&&g.current&&g.current.focus()},[i]);let _={...n,alignItems:r,dense:h.dense,disableGutters:c,divider:l,selected:d},v=$te(_),{root:y,...b}=v,x=Gu(g,t);return(0,z.jsx)($E.Provider,{value:h,children:(0,z.jsx)(ene,{ref:x,href:p.href||p.to,component:(p.href||p.to)&&a===`div`?`button`:a,internalNativeButton:!1,focusVisibleClassName:B(v.focusVisible,u),ownerState:_,className:B(v.root,f),...p,classes:b,children:o})})});function nD(e){return V(`MuiListItemIcon`,e)}var rD=H(`MuiListItemIcon`,[`root`,`alignItemsFlexStart`]),iD=e=>{let{alignItems:t,classes:n}=e;return W({root:[`root`,t===`flex-start`&&`alignItemsFlexStart`]},nD,n)},aD=K(`div`,{name:`MuiListItemIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.alignItems===`flex-start`&&t.alignItemsFlexStart]}})(q(({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}}]}))),oD=S.forwardRef(function(e,t){let n=J({props:e,name:`MuiListItemIcon`}),{className:r,...i}=n,a=S.useContext($E),o={...n,alignItems:a.alignItems},s=iD(o);return(0,z.jsx)(aD,{className:B(s.root,r),ownerState:o,ref:t,...i})});function sD(e){return V(`MuiListItemText`,e)}var cD=H(`MuiListItemText`,[`root`,`multiline`,`dense`,`inset`,`primary`,`secondary`]),lD=e=>{let{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return W({root:[`root`,n&&`inset`,a&&`dense`,r&&i&&`multiline`],primary:[`primary`],secondary:[`secondary`]},sD,t)},uD=K(`div`,{name:`MuiListItemText`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${cD.primary}`]:t.primary},{[`& .${cD.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,[`.${ny.root}:where(& .${cD.primary})`]:{display:`block`},[`.${ny.root}:where(& .${cD.secondary})`]:{display:`block`},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),dD=S.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}=S.useContext($E),p=s??r,m=c,h={...n,disableTypography:a,inset:o,primary:!!p,secondary:!!m,dense:f},g=lD(h),_={slots:l,slotProps:u},[v,y]=X(`root`,{className:B(g.root,i),elementType:uD,externalForwardedProps:{..._,...d},ownerState:h,ref:t}),[b,x]=X(`primary`,{className:g.primary,elementType:oy,externalForwardedProps:_,ownerState:h}),[C,w]=X(`secondary`,{className:g.secondary,elementType:oy,externalForwardedProps:_,ownerState:h});return p!=null&&p.type!==oy&&!a&&(p=(0,z.jsx)(b,{variant:f?`body2`:`body1`,component:x?.variant?void 0:`span`,...x,children:p})),m!=null&&m.type!==oy&&!a&&(m=(0,z.jsx)(C,{variant:`body2`,color:`textSecondary`,...w,children:m})),(0,z.jsxs)(v,{...y,children:[p,m]})}),fD=UT;function pD(e,t){if(t==null){e.focus();return}try{e.focus({focusVisible:t===`keyboard`})}catch{e.focus()}}function mD(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 hD(e){return e==null||typeof e==`string`&&!e.trim()}function gD(e,t){return typeof t==`object`&&t?e===t:String(e)===String(t)}var _D=S.createContext(null);function vD(){return S.useContext(_D)}var yD=_D.Provider,bD=S.createContext(void 0);function xD(){let e=S.useContext(bD);if(e===void 0)throw Error(`MUI: MenuListContext is missing. MenuItems must be placed within Menu or MenuList.`);return e}function SD(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 CD(e,t){if(t===void 0)return!0;let n=SD(e);return n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(``))}function wD(e,t){return CD(e,t)?M_(e):!1}function TD(e,t){pD(e,t)}var ED=S.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=S.useRef(null),p=S.useRef(!1),[m,h]=S.useState(!1),g=vD(),_=S.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null}),v=v_({activeItemId:void 0,getDefaultActiveItemId:S.useCallback(e=>u===`selectedMenu`?e.find(e=>e.selected&&M_(e))?.id??e.find(e=>M_(e))?.id??null:e.find(e=>M_(e))?.id??null,[u]),orientation:`vertical`,wrap:!c}),{activeItemId:y,focusNext:b,getActiveItem:x,getContainerProps:C,getItemMap:w}=v,T=sh((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),n=u===`menu`&&t&&!e.selected&&g==null;return h(n),TD(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)});Ku(()=>{if(!r&&!i){p.current=!1,h(!1);return}T()},[y,i,r,T]),S.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){let n=nh(e),r=fD(n);if(r>0){let e=`${r}px`,i=t===`rtl`?`paddingLeft`:`paddingRight`,a=parseFloat(n.getComputedStyle(f.current)[i])||0;f.current.style[i]=`${a+r}px`,f.current.style.width=`calc(100% + ${e})`}}return f.current},focusInitialTarget:()=>{if(!f.current)return null;let e=Yu(qu(f.current));return e&&qT(f.current,e)?e:T(!0)}}),[T]);let E=C(void 0,d.onFocus),D=Gu(f,E.ref,t),O=S.useMemo(()=>({itemsFocusableWhenDisabled:s,suppressInitialFocusVisible:m,variant:u}),[s,m,u]),k=sh(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=Yu(qu(f.current)),a=i&&!t.repeating&&CD(i,t);t.previousKeyMatched&&(a||b(e=>wD(e,t))!=null)?e.preventDefault():t.previousKeyMatched=!1}l&&l(e)});return(0,z.jsx)(eD,{role:`menu`,ref:D,className:o,onKeyDown:k,tabIndex:-1,...d,onFocus:E.onFocus,children:(0,z.jsx)(bD.Provider,{value:O,children:(0,z.jsx)(p_.Provider,{value:v,children:a})})})});function DD(e){return V(`MuiPopover`,e)}H(`MuiPopover`,[`root`,`paper`]);function OD(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function kD(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function AD(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function jD(e){return typeof e==`function`?e():e}var MD=e=>{let{classes:t}=e;return W({root:[`root`],paper:[`paper`]},DD,t)},ND=K($T,{name:`MuiPopover`,slot:`Root`})({}),PD=K(Fg,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),FD=S.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=S.useRef(),C={...n,anchorOrigin:a,anchorReference:s,elevation:f,marginThreshold:p,transformOrigin:_,transitionDuration:v},w=MD(C),T=S.useCallback(()=>{if(s===`anchorPosition`)return o;let e=jD(i),t=(e&&e.nodeType===1?e:qu(x.current).body).getBoundingClientRect();return{top:t.top+OD(t,a.vertical),left:t.left+kD(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),E=S.useCallback(e=>({vertical:OD(e,_.vertical),horizontal:kD(e,_.horizontal)}),[_.horizontal,_.vertical]),D=S.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=E(t);if(s===`none`)return{top:null,left:null,transformOrigin:AD(n)};let r=T(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=nh(jD(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:AD(n)}},[i,s,T,E,p]),[O,k]=S.useState(m),A=S.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]);S.useEffect(()=>(y&&window.addEventListener(`scroll`,A),()=>window.removeEventListener(`scroll`,A)),[i,y,A]);let j=()=>{A()},M=()=>{k(!1)};S.useEffect(()=>{m&&A()}),S.useImperativeHandle(r,()=>m?{updatePosition:()=>{A()}}:null,[m,A]),S.useEffect(()=>{if(!m)return;let e=eh(()=>{A()}),t=nh(jD(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]=X(`transition`,{elementType:TE,externalForwardedProps:P,ownerState:C,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 R=u||(i?qu(jD(i)).body:void 0),[ee,{slots:te,slotProps:ne,...re}]=X(`root`,{ref:t,elementType:ND,externalForwardedProps:{...P,...b},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:lh(typeof g.backdrop==`function`?g.backdrop(C):g.backdrop,{invisible:!0})},container:R,open:m},ownerState:C,className:B(w.root,l)}),[ie,ae]=X(`paper`,{ref:x,className:w.paper,elementType:PD,externalForwardedProps:P,shouldForwardComponentProp:!0,additionalProps:{elevation:f,style:O?void 0:{opacity:0}},ownerState:C});return(0,z.jsx)(ee,{...re,...!Tu(ee)&&{slots:te,slotProps:ne,disableAutoFocus:d,disableScrollLock:y},children:(0,z.jsx)(F,{...I,timeout:N,children:(0,z.jsx)(ie,{...ae,children:c})})})});function ID(e){return V(`MuiMenu`,e)}H(`MuiMenu`,[`root`,`paper`,`list`]);var LD={vertical:`top`,horizontal:`right`},RD={vertical:`top`,horizontal:`left`},zD=e=>{let{classes:t}=e;return W({root:[`root`],paper:[`paper`],list:[`list`]},ID,t)},BD=K(FD,{shouldForwardProp:e=>Uu(e)||e===`classes`,name:`MuiMenu`,slot:`Root`})({}),VD=K(PD,{name:`MuiMenu`,slot:`Paper`})({maxHeight:`calc(100% - 96px)`,WebkitOverflowScrolling:`touch`}),HD=K(ED,{name:`MuiMenu`,slot:`List`})({outline:0}),UD=S.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=tc(),g={...n,autoFocus:r,disableAutoFocusItem:o,transitionDuration:u,variant:d},_=zD(g),v=r&&c,y=v&&!o,b=S.useRef(null),x=(e,t)=>{b.current&&(b.current.adjustStyleForScrollbar(e,{direction:h?`rtl`:`ltr`}),v&&b.current.focusInitialTarget?.())},C=e=>{e.key===`Tab`&&(e.preventDefault(),s&&s(e,`tabKeyDown`))},w={slots:f,slotProps:p},T=rS({elementType:f.root,externalSlotProps:p.root,ownerState:g,className:[_.root,a]}),[E,D]=X(`paper`,{className:_.paper,elementType:VD,externalForwardedProps:w,shouldForwardComponentProp:!0,ownerState:g}),[O,k]=X(`list`,{className:_.list,elementType:HD,shouldForwardComponentProp:!0,externalForwardedProps:w,getSlotProps:e=>({...e,onKeyDown:t=>{C(t),e.onKeyDown?.(t)}}),ownerState:g}),A=typeof p.transition==`function`?p.transition(g):p.transition;return(0,z.jsx)(BD,{disableAutoFocus:r,onClose:s,anchorOrigin:{vertical:`bottom`,horizontal:h?`right`:`left`},transformOrigin:h?LD:RD,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,z.jsx)(O,{actions:b,autoFocus:v,autoFocusItem:y,variant:d,...k,children:i})})}),WD=(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},GD=e=>{let{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:o}=e,s=W({root:[`root`,n&&`dense`,t&&`disabled`,!i&&`gutters`,r&&`divider`,a&&`selected`]},Rd,o);return{...o,...s}},KD=K(rg,{shouldForwardProp:e=>Uu(e)||e===`classes`,name:`MuiMenuItem`,slot:`Root`,overridesResolver:WD})(q(({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`}},[`&.${zd.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),...!e.focusVisible&&{[`&.${zd.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},[`&.${zd.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)}},...e.focusVisible?Tl(1):{[`&.${zd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus}},[`&.${zd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${oE.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${oE.inset}`]:{marginLeft:52},[`& .${cD.root}`]:{marginTop:0,marginBottom:0},[`& .${cD.inset}`]:{paddingLeft:36},[`& .${rD.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,[`& .${rD.root} svg`]:{fontSize:`1.25rem`}}}]}))),qD=S.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=l===`menuitemcheckbox`||l===`menuitemradio`?!!n.selected:void 0,m=vD(),h=S.useContext($E),g=S.useMemo(()=>({dense:a||h.dense||!1,disableGutters:s}),[h.dense,a,s]),_=xD(),v=ih(),y=_.suppressInitialFocusVisible,b=_.itemsFocusableWhenDisabled,x=S.useRef(null);Ku(()=>{r&&x.current&&pD(x.current,m)},[r]);let C={...n,dense:g.dense,divider:o,disableGutters:s},w=GD(n),{root:T,...E}=w,D=y_({id:v,ref:t,disabled:n.disabled,focusableWhenDisabled:b,selected:n.selected}),O=Gu(x,D.ref),k;return u===void 0?_.variant===`selectedMenu`?k=D.tabIndex:(!n.disabled||b)&&(k=-1):k=u,(0,z.jsx)($E.Provider,{value:g,children:(0,z.jsx)(KD,{ref:O,role:l,"aria-checked":p,tabIndex:k,component:i,internalNativeButton:!1,focusableWhenDisabled:b,suppressFocusVisible:y,focusVisibleClassName:B(w.focusVisible,c),className:B(w.root,d),...f,ownerState:C,classes:E})})}),JD=e=>{let{classes:t,variant:n,disabled:r,multiple:i,open:a,error:o}=e;return W({select:[`select`,n,r&&`disabled`,i&&`multiple`,o&&`error`],icon:[`icon`,`icon${Y(n)}`,a&&`iconOpen`,r&&`disabled`]},Bd,t)},YD=K(`select`,{name:`MuiNativeSelect`})(({theme:e})=>({MozAppearance:`none`,WebkitAppearance:`none`,userSelect:`none`,borderRadius:0,cursor:`pointer`,"&:focus":{borderRadius:0},[`&.${Vd.disabled}`]:{cursor:`default`},"&[multiple]":{height:`auto`},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},[`& ~ .${cy.root}`]:{position:`absolute`,top:`50%`,transform:`translateY(-50%)`,right:`calc(var(--_caret, 24px) + (var(--_endAdornment, 28px) - 1.5rem)/2)`},[`.${ed.root}:has(> &)`]:{"--_endAdornment":`0px`},variants:[{props:({ownerState:e})=>e.variant!==`filled`&&e.variant!==`outlined`,style:{[`.${ed.root}:has(> &)`]:{"--_caret":`24px`},[`.${ed.root}:has(> & ~ .${cy.root})`]:{"--_endAdornment":`28px`},"&&&":{paddingRight:`calc(var(--_caret, 24px) + var(--_endAdornment, 0px))`,minWidth:16}}},{props:{variant:`filled`},style:{[`.${ed.root}:has(> &)`]:{"--_caret":`32px`},[`.${ed.root}:has(> & ~ .${cy.root})`]:{"--_endAdornment":`28px`},"&&&":{paddingRight:`calc(var(--_caret, 32px) + var(--_endAdornment, 0px))`}}},{props:{variant:`outlined`},style:{[`.${ed.root}:has(> &)`]:{"--_caret":`32px`},[`.${ed.root}:has(> & ~ .${cy.root})`]:{"--_endAdornment":`28px`},borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:`calc(var(--_caret, 32px) + var(--_endAdornment, 0px))`}}}]})),XD=K(YD,{name:`MuiNativeSelect`,slot:`Select`,shouldForwardProp:Uu,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Vd.multiple}`]:t.multiple}]}})({}),ZD=K(`svg`,{name:`MuiNativeSelect`})(({theme:e})=>({position:`absolute`,right:0,top:`calc(50% - .5em)`,pointerEvents:`none`,color:(e.vars||e).palette.action.active,[`&.${Vd.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}}]})),QD=K(ZD,{name:`MuiNativeSelect`,slot:`Icon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Y(n.variant)}`],n.open&&t.iconOpen]}})({}),$D=S.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=JD(l);return(0,z.jsxs)(S.Fragment,{children:[(0,z.jsx)(XD,{ownerState:l,className:B(u.select,n),disabled:r,ref:o||t,...c}),e.multiple?null:(0,z.jsx)(QD,{as:a,ownerState:l,className:u.icon})]})});function eO(e){return Object.prototype.hasOwnProperty.call(e.props,`value`)}function tO(e){if(typeof e==`string`||typeof e==`number`)return String(e);let t=``;return S.Children.forEach(e,e=>{typeof e==`string`||typeof e==`number`?t+=String(e):S.isValidElement(e)&&(t+=tO(e.props.children))}),t}function nO(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length;for(let n=0;n<e.length;n+=1){let i=(r+n)%e.length;if(e[i].label.startsWith(t))return i}return-1}function rO(e,t){return!e.some(e=>e.label[0]===t&&e.label[1]===t)}function iO(e,t){let n=[],r=-1;for(let i=0;i<e.length;i+=1){let a=e[i];if(!S.isValidElement(a)||!eO(a)||a.props.disabled)continue;let o=tO(a.props.children).trim().toLowerCase();o!==``&&(r===-1&&gD(t,a.props.value)&&(r=n.length),n.push({child:a,label:o,value:a.props.value}))}return{options:n,selectedIndex:r}}var aO,oO=2,sO=400,cO=200,lO=750,uO=` `,dO=`ArrowUp`,fO=`ArrowDown`,pO=`Enter`;function mO(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-oO&&e.clientX<=n.right+oO&&e.clientY>=n.top-oO&&e.clientY<=n.bottom+oO}var hO=K(YD,{name:`MuiSelect`,slot:`Select`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`&.${Gv.select}`]:t.select},{[`&.${Gv.select}`]:t[n.variant]},{[`&.${Gv.error}`]:t.error},{[`&.${Gv.multiple}`]:t.multiple}]}})({[`&.${Gv.select}`]:{height:`auto`,minHeight:`1.4375em`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,overflow:`hidden`}}),gO=K(ZD,{name:`MuiSelect`,slot:`Icon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.open&&t.iconOpen]}})({}),_O=K(`input`,{shouldForwardProp:e=>Hu(e)&&e!==`classes`,name:`MuiSelect`,slot:`NativeInput`})({bottom:0,left:0,position:`absolute`,opacity:0,pointerEvents:`none`,width:`100%`,boxSizing:`border-box`}),vO=e=>{let{classes:t,variant:n,disabled:r,multiple:i,open:a,error:o}=e;return W({select:[`select`,n,r&&`disabled`,i&&`multiple`,o&&`error`],icon:[`icon`,a&&`iconOpen`,r&&`disabled`],nativeInput:[`nativeInput`]},Wv,t)},yO=S.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:C,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,[R,ee]=oh({controlled:P,default:l,name:`Select`}),[te,ne]=oh({controlled:D,default:c,name:`Select`}),re=S.useRef(null),ie=S.useRef(null),ae=S.useRef(null),oe=S.useRef(!1),se=S.useRef(!1),ce=S.useRef(null),le=S.useRef(!1),ue=S.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),de=S.useRef({buffer:``,previousSearchIndex:null,matchedIndex:null}),fe=Th(),pe=Th(),me=Th(),[he,ge]=S.useState(null),{current:_e}=S.useRef(D!=null),[ve,ye]=S.useState(),[be,xe]=S.useState(null),Se=Gu(t,m),Ce=S.useCallback(e=>{ie.current=e,e&&ge(e)},[]),we=he?.parentNode;S.useImperativeHandle(Se,()=>({focus:()=>{ie.current.focus()},node:re.current,value:R}),[R]);let Te=he!==null&&te,Ee=S.useCallback(()=>{me.clear(),de.current.buffer=``,de.current.previousSearchIndex=null,de.current.matchedIndex=null},[me]);Ku(()=>{oe.current=Te,Te&&Ee()},[Te,Ee]);let De=S.useCallback(()=>{fe.clear(),pe.clear()},[fe,pe]),Oe=S.useCallback(()=>{De(),le.current=!1,ue.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},[De]),ke=S.useCallback(()=>{ce.current&&=(ce.current(),null)},[]);S.useEffect(()=>{Te||(Oe(),ke())},[Te,Oe,ke]),S.useEffect(()=>()=>{Oe(),ke(),Ee()},[Oe,ke,Ee]),S.useEffect(()=>{if(!Te||!we||a||typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{ye(we.clientWidth)});return e.observe(we),()=>{e.disconnect()}},[Te,we,a]),S.useEffect(()=>{c&&te&&he&&!_e&&(ye(a?null:we.clientWidth),ie.current.focus())},[he,a]),S.useEffect(()=>{i&&ie.current.focus()},[i]),S.useEffect(()=>{if(!h)return;let e=qu(ie.current).getElementById(h);if(e){let t=()=>{getSelection().isCollapsed&&ie.current.focus()};return e.addEventListener(`click`,t),()=>{e.removeEventListener(`click`,t)}}},[h]);let Ae=sh((e,t)=>{e||(Oe(),ke()),e?(Ee(),xe(mD(t)),E&&E(t)):(xe(null),x&&x(t)),_e||(oe.current=e,ye(a?null:we.clientWidth),ne(e))}),je=()=>{Oe(),se.current?pe.start(cO,()=>{ue.current.allowUnselectedMouseUp=!0,fe.start(cO,()=>{ue.current.allowSelectedMouseUp=!0})}):fe.start(sO,()=>{ue.current.allowSelectedMouseUp=!0,ue.current.allowUnselectedMouseUp=!0})},Me=e=>{if(T?.(e),e.button!==0||(e.preventDefault(),!ie.current))return;ie.current.focus();let t=qu(e.currentTarget);je(),ke();let n=e=>{ce.current=null,ie.current&&(mO(e,ie.current)||mO(e,ae.current)||(oe.current||!_e)&&Ae(!1,e))};t.addEventListener(`mouseup`,n,{capture:!0,once:!0}),ce.current=()=>{t.removeEventListener(`mouseup`,n,!0)},Ae(!0,e)},Ne=e=>{Ae(!1,e)},Pe=S.Children.toArray(o),Fe=e=>{let t=Pe.find(t=>t.props.value===e.target.value);t!==void 0&&(ee(t.props.value),b&&b(e,t))},Ie=(e,t,n)=>{if(ee(n),b){let r=e.nativeEvent||e,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:v}}),b(i,t)}},Le=e=>t=>{le.current=!1;let n;if(t.currentTarget.hasAttribute(`tabindex`)){if(_){n=Array.isArray(R)?R.slice():[];let t=R.indexOf(e.props.value);t===-1?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),R!==n&&Ie(t,e,n),_||Ae(!1,t)}},Re=(e,t)=>n=>{if(e.props.onMouseUp?.(n),le.current){le.current=!1;return}let r=!ue.current.allowSelectedMouseUp&&t,i=!ue.current.allowUnselectedMouseUp&&!t;r||i||n.currentTarget.click()},ze=e=>{let t=de.current,n=t.buffer!==``;if(Te||_||u||e.defaultPrevented||e.nativeEvent?.isComposing||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey||e.key===uO&&!n)return!1;e.key===uO&&e.preventDefault();let r=t.buffer===``,{options:i,selectedIndex:a}=iO(Pe,R);if(i.length===0)return e.key!==uO&&Ee(),!0;r&&(t.previousSearchIndex=a);let o=e.key.toLowerCase();t.buffer===o&&rO(i,o)&&(t.buffer=``,t.previousSearchIndex=t.matchedIndex),t.buffer+=o,me.start(lO,Ee);let s=nO(i,t.buffer,(t.previousSearchIndex??-1)+1);if(s!==-1){let n=i[s];return t.matchedIndex=s,gD(R,n.value)||Ie(e,n.child,n.value),!0}return e.key!==uO&&Ee(),!0},Be=e=>{if(!O){let t=ze(e),n=e.key===uO||e.key===dO||e.key===fO||e.key===pO;!t&&n&&(e.preventDefault(),Ae(!0,e)),w?.(e)}},Ve=e=>{Ee(),!Te&&y&&(Object.defineProperty(e,"target",{writable:!0,value:{value:R,name:v}}),y(e))},He=e=>t=>{e?.props?.onKeyDown?.(t),t.key===uO&&t.target===t.currentTarget&&!t.defaultPrevented&&(t.preventDefault(),t.repeat||t.currentTarget.click())};delete I[`aria-invalid`];let Ue,We,Ge=[],Ke=!1,qe=!1;(Zu({value:R})||d)&&(k?Ue=k(R):Ke=!0);let Je=Pe.map(e=>{if(!S.isValidElement(e))return null;let t;if(_){if(!Array.isArray(R))throw Error(Yn(2));t=R.some(t=>gD(t,e.props.value)),t&&Ke&&Ge.push(e.props.children)}else t=gD(R,e.props.value),t&&Ke&&(We=e.props.children);return t&&(qe=!0),S.cloneElement(e,{"aria-selected":t?`true`:`false`,onMouseDown:t=>{le.current=!0,e.props.onMouseDown?.(t)},onPointerDown:t=>{le.current=!0,e.props.onPointerDown?.(t)},onClick:Le(e),onMouseUp:Re(e,t),onKeyUp:t=>{t.key===uO&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},onKeyDown:He(e),role:`option`,selected:t,value:void 0,"data-value":e.props.value})});Ku(()=>{se.current=qe,!Te&&!_&&!qe&&Ee()},[qe,_,Te,Ee]),Ke&&(Ue=_?Ge.length===0?null:Ge.reduce((e,t,n)=>(e.push(t),n<Ge.length-1&&e.push(`, `),e),[]):We);let Ye=ve;!a&&_e&&he&&(Ye=we.clientWidth);let Xe;Xe=M===void 0?u?null:0:M;let Ze=j.id||(v?`mui-component-select-${v}`:void 0),Qe={...e,variant:F,value:R,open:Te,error:f},$e=vO(Qe),et=typeof g.slotProps?.paper==`function`?g.slotProps.paper(Qe):g.slotProps?.paper,tt=Gu(et?.ref,ae),nt=typeof g.slotProps?.list==`function`?g.slotProps.list(Qe):g.slotProps?.list,rt=lc(),it=lc();return(0,z.jsxs)(S.Fragment,{children:[(0,z.jsx)(hO,{as:`div`,ref:Ce,tabIndex:Xe,role:`combobox`,"aria-controls":Te?rt:void 0,"aria-disabled":u?`true`:void 0,"aria-expanded":Te?`true`:`false`,"aria-haspopup":`listbox`,"aria-readonly":O?`true`:void 0,"aria-label":r,"aria-labelledby":h,"aria-describedby":n,"aria-required":A?`true`:void 0,"aria-invalid":f?`true`:void 0,onKeyDown:Be,onMouseDown:u||O?null:Me,onBlur:Ve,onFocus:C,...j,ownerState:Qe,className:B(j.className,$e.select,s),id:Ze,children:hD(Ue)?aO||=(0,z.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:`​`}):Ue}),(0,z.jsx)(_O,{"aria-invalid":f,value:Array.isArray(R)?R.join(`,`):R,name:v,ref:re,"aria-hidden":!0,onChange:Fe,tabIndex:-1,disabled:u,readOnly:O,className:$e.nativeInput,autoFocus:i,required:A,...I,id:I.id??it,ownerState:Qe}),(0,z.jsx)(gO,{as:p,className:$e.icon,ownerState:Qe}),(0,z.jsx)(yD,{value:be,children:(0,z.jsx)(UD,{id:`menu-${v||``}`,anchorEl:we,open:Te,onClose:Ne,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:rt,...nt},paper:{...et,ref:tt,style:{minWidth:Ye,...et?.style}}},children:Je})})]})}),bO=e=>{let{classes:t}=e,n=W({root:[`root`]},Wv,t);return{...t,...n}},xO={name:`MuiSelect`,slot:`Root`,shouldForwardProp:e=>Uu(e)&&e!==`variant`},SO=K(kE,xO)(``),CO=K(Xv,xO)(``),wO=K(ey,xO)(``),TO=S.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=SS,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:C,variant:w=`outlined`,...T}=n,E=_?$D:yO,[D]=Ru({props:n,states:[`variant`,`error`]}),O=D.variant||w,k={...n,variant:O,classes:a},A=bO(k),{root:j,...M}=A,N=d||{standard:(0,z.jsx)(SO,{ownerState:k}),outlined:(0,z.jsx)(CO,{label:p,ownerState:k}),filled:(0,z.jsx)(wO,{ownerState:k})}[O],P=Gu(t,iS(N));return(0,z.jsx)(S.Fragment,{children:S.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,...C}},...f,classes:f?ha(M,f.classes):M,...d?d.props.inputProps:{}},...(g&&_||c)&&O===`outlined`?{notched:!0}:{},ref:P,className:B(N.props.className,o,A.root),...!d&&{variant:O},...T})})});TO.muiName=`Select`;function EO(e){return V(`MuiSkeleton`,e)}H(`MuiSkeleton`,[`root`,`text`,`rectangular`,`rounded`,`circular`,`pulse`,`wave`,`withChildren`,`fitContent`,`heightAuto`]);var DO=e=>{let{classes:t,variant:n,animation:r,hasChildren:i,width:a,height:o}=e;return W({root:[`root`,n,r,i&&`withChildren`,i&&!a&&`fitContent`,i&&!o&&`heightAuto`]},EO,t)},OO=qi`
228
+ 0% {
229
+ opacity: 1;
230
+ }
231
+
232
+ 50% {
233
+ opacity: 0.4;
234
+ }
235
+
236
+ 100% {
237
+ opacity: 1;
238
+ }
239
+ `,kO=qi`
240
+ 0% {
241
+ transform: translateX(-100%);
242
+ }
243
+
244
+ 50% {
245
+ /* +0.5s of delay between each loop */
246
+ transform: translateX(100%);
247
+ }
248
+
249
+ 100% {
250
+ transform: translateX(100%);
251
+ }
252
+ `,AO=typeof OO==`string`?null:Ki`
253
+ animation: ${OO} 2s ease-in-out 0.5s infinite;
254
+ `,jO=typeof kO==`string`?null:Ki`
255
+ &::after {
256
+ animation: ${kO} 2s linear 0.5s infinite;
257
+ }
258
+ `,MO=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]}})(q(({theme:e})=>{let t=qd(e.shape.borderRadius)||`px`,n=Jd(e.shape.borderRadius),r=gd(e,{animation:`none`}),i=gd(e,{"&::after":{animation:`none`,display:`none`}});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:AO||{animation:`${OO} 2s ease-in-out 0.5s infinite`}},...r?[{props:{animation:`pulse`},style:r}]:[],{props:{animation:`wave`},style:{position:`relative`,overflow:`hidden`,WebkitMaskImage:`-webkit-radial-gradient(white, black)`,"&::after":{background:`linear-gradient(
259
+ 90deg,
260
+ transparent,
261
+ ${(e.vars||e).palette.action.hover},
262
+ transparent
263
+ )`,content:`""`,position:`absolute`,transform:`translateX(-100%)`,bottom:0,left:0,right:0,top:0}}},{props:{animation:`wave`},style:jO||{"&::after":{animation:`${kO} 2s linear 0.5s infinite`}}},...i?[{props:{animation:`wave`},style:i}]:[]]}})),NO=S.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},f=DO(d);return(0,z.jsx)(MO,{as:a,ref:t,className:B(f.root,i),ownerState:d,...u,style:{width:l,height:o,...s}})});function PO(e={}){let{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:a}=e,o=Th();S.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=Ou((e,t)=>{r?.(e,t)}),c=Ou(e=>{r&&e!=null&&o.start(e,()=>{s(null,`timeout`)})});S.useEffect(()=>(i&&c(t),o.clear),[i,t,c,o]);let l=e=>{r?.(e,`clickaway`)},u=o.clear,d=S.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 S.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={...Sg(e),...Sg(t)};return{role:`presentation`,...t,...n,onBlur:f(n),onFocus:p(n),onMouseEnter:m(n),onMouseLeave:h(n)}},onClickAway:l}}function FO(e){return V(`MuiSnackbarContent`,e)}H(`MuiSnackbarContent`,[`root`,`message`,`action`]);var IO=e=>{let{classes:t}=e;return W({root:[`root`],action:[`action`],message:[`message`]},FO,t)},LO=K(Fg,{name:`MuiSnackbarContent`,slot:`Root`})(q(({theme:e})=>{let t=e.palette.mode===`light`?.8:.98;return{...e.focusVisible&&wl(`0 0 0 4px ${(e.vars||e).palette.background.default}`),...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(Ks(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:Ks(e.palette.background.default,t),display:`flex`,alignItems:`center`,flexWrap:`wrap`,padding:`6px 16px`,flexGrow:1,[e.breakpoints.up(`sm`)]:{flexGrow:`initial`,minWidth:288}}})),RO=K(`div`,{name:`MuiSnackbarContent`,slot:`Message`})({padding:`8px 0`}),zO=K(`div`,{name:`MuiSnackbarContent`,slot:`Action`})({display:`flex`,alignItems:`center`,marginLeft:`auto`,paddingLeft:16,marginRight:-8}),BO=S.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=IO(c);return(0,z.jsxs)(LO,{role:o,elevation:6,className:B(l.root,i),ownerState:c,ref:t,...s,children:[(0,z.jsx)(RO,{className:l.message,ownerState:c,children:a}),r?(0,z.jsx)(zO,{className:l.action,ownerState:c,children:r}):null]})});function VO(e){return V(`MuiSnackbar`,e)}H(`MuiSnackbar`,[`root`,`anchorOriginTopCenter`,`anchorOriginBottomCenter`,`anchorOriginTopRight`,`anchorOriginBottomRight`,`anchorOriginTopLeft`,`anchorOriginBottomLeft`]);var HO=e=>{let{classes:t,anchorOrigin:n}=e;return W({root:[`root`,`anchorOrigin${Y(n.vertical)}${Y(n.horizontal)}`]},VO,t)},UO=K(`div`,{name:`MuiSnackbar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`anchorOrigin${Y(n.anchorOrigin.vertical)}${Y(n.anchorOrigin.horizontal)}`]]}})(q(({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%)`}}}]}))),WO=S.forwardRef(function(e,t){let n=J({props:e,name:`MuiSnackbar`}),r=Bu(),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:C=i,...w}=n,T={...n,anchorOrigin:{vertical:o,horizontal:s},autoHideDuration:c,disableWindowBlurListener:d,transitionDuration:C},E=HO(T),{getRootProps:D,onClickAway:O}=PO(T),[k,A]=S.useState(!0),j={slots:b,slotProps:x},[M,N]=X(`root`,{ref:t,className:[E.root,u],elementType:UO,getSlotProps:D,externalForwardedProps:{...j,...w},ownerState:T}),[P,{ownerState:F,...I}]=X(`clickAwayListener`,{elementType:Yee,externalForwardedProps:j,getSlotProps:e=>({onClickAway:(...t)=>{let n=t[0];e.onClickAway?.(...t),!n?.defaultMuiPrevented&&O(...t)}}),ownerState:T}),[R,ee]=X(`content`,{elementType:BO,shouldForwardComponentProp:!0,externalForwardedProps:j,additionalProps:{message:f,action:a},ownerState:T}),[te,ne]=X(`transition`,{elementType:TE,externalForwardedProps:j,getSlotProps:e=>({onEnter:(...t)=>{e.onEnter?.(...t),A(!1)},onExited:(...t)=>{e.onExited?.(...t),A(!0)}}),additionalProps:{appear:!0,in:v,timeout:C,direction:o===`top`?`down`:`up`},ownerState:T});return!v&&k?null:(0,z.jsx)(P,{...I,...b.clickAwayListener&&{ownerState:F},children:(0,z.jsx)(M,{...N,children:(0,z.jsx)(te,{...ne,children:l||(0,z.jsx)(R,{...ee})})})})});function GO(e){return V(`MuiTooltip`,e)}var KO=H(`MuiTooltip`,[`popper`,`popperInteractive`,`popperArrow`,`popperClose`,`tooltip`,`tooltipArrow`,`touch`,`tooltipPlacementLeft`,`tooltipPlacementRight`,`tooltipPlacementTop`,`tooltipPlacementBottom`,`arrow`]);function qO(e){return Math.round(e*1e5)/1e5}var JO=e=>{let{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e;return W({popper:[`popper`,!n&&`popperInteractive`,r&&`popperArrow`],tooltip:[`tooltip`,r&&`tooltipArrow`,i&&`touch`,`tooltipPlacement${Y(a.split(`-`)[0])}`],arrow:[`arrow`]},GO,t)},YO=K(gS,{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]}})(q(({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"] .${KO.arrow}`]:{top:0,marginTop:`-0.71em`,"&::before":{transformOrigin:`0 100%`}},[`&[data-popper-placement*="top"] .${KO.arrow}`]:{bottom:0,marginBottom:`-0.71em`,"&::before":{transformOrigin:`100% 0`}},[`&[data-popper-placement*="right"] .${KO.arrow}`]:{height:`1em`,width:`0.71em`,insetInlineStart:0,marginInlineStart:`-0.71em`,"&::before":{transformOrigin:`100% 100%`}},[`&[data-popper-placement*="left"] .${KO.arrow}`]:{height:`1em`,width:`0.71em`,insetInlineEnd:0,marginInlineEnd:`-0.71em`,"&::before":{transformOrigin:`0 0`}}}}]}))),XO=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${Y(n.placement.split(`-`)[0])}`]]}})(q(({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,[`.${KO.popper}[data-popper-placement*="left"] &`]:{transformOrigin:`right center`,marginInlineEnd:`14px`},[`.${KO.popper}[data-popper-placement*="right"] &`]:{transformOrigin:`left center`,marginInlineStart:`14px`},[`.${KO.popper}[data-popper-placement*="top"] &`]:{transformOrigin:`center bottom`,marginBottom:`14px`},[`.${KO.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:`${qO(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>e.touch,style:{[`.${KO.popper}[data-popper-placement*="left"] &`]:{marginInlineEnd:`24px`},[`.${KO.popper}[data-popper-placement*="right"] &`]:{marginInlineStart:`24px`},[`.${KO.popper}[data-popper-placement*="top"] &`]:{marginBottom:`24px`},[`.${KO.popper}[data-popper-placement*="bottom"] &`]:{marginTop:`24px`}}}]}))),ZO=K(`span`,{name:`MuiTooltip`,slot:`Arrow`})(q(({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)`}}))),QO=!1,$O=new wh,ek={x:0,y:0};function tk(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}var nk=S.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:C={},slots:w={},title:T,...E}=n,D=S.isValidElement(i)?i:(0,z.jsx)(`span`,{children:i}),O=Bu(),[k,A]=S.useState(),[j,M]=S.useState(null),N=S.useRef(!1),P=S.useRef(!1),F=l||m,I=Th(),R=Th(),ee=Th(),te=Th(),[ne,re]=oh({controlled:b,default:!1,name:`Tooltip`,state:`open`}),ie=ne,{current:ae}=S.useRef(b!==void 0),oe=ih(h),se=S.useRef(),ce=sh(()=>{se.current!==void 0&&(document.body.style.WebkitUserSelect=se.current,se.current=void 0),te.clear()});S.useEffect(()=>ce,[ce]);let le=e=>{$O.clear(),QO=!0,re(!0),y&&!ie&&y(e)},ue=sh(e=>{P.current=!1,$O.start(800+g,()=>{QO=!1}),re(!1),v&&ie&&v(e),I.start(O.transitions.duration.shortest,()=>{N.current=!1})}),de=e=>{N.current&&e.type!==`touchstart`||(k&&k.removeAttribute(`title`),R.clear(),ee.clear(),d||QO&&f?R.start(QO?f:d,()=>{le(e)}):le(e))},fe=e=>{if(k?.disabled&&!ae){if(ie&&!P.current)return;P.current=!0}else P.current=!1;de(e)},pe=e=>{(!k?.disabled||ae||P.current)&&de(e)},me=e=>{R.clear(),ee.start(g,()=>{ue(e)})},[,he]=S.useState(!1),ge=e=>{let t=e?.target??k;if(!t||t.disabled||!ph(t)){he(!1);let n=e??new Event(`blur`);!e&&t&&(Object.defineProperty(n,"target",{value:t}),Object.defineProperty(n,"currentTarget",{value:t})),me(n)}},_e=e=>{if(k||A(e.currentTarget),P.current=!1,ph(e.target)){let t=e=>{e.target.disabled&&ge(e),e.target.removeEventListener(`blur`,t)};e.target.addEventListener(`blur`,t),he(!0),de(e)}},ve=e=>{N.current=!0;let t=D.props;t.onTouchStart&&t.onTouchStart(e)},ye=e=>{ve(e),ee.clear(),I.clear(),ce(),se.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect=`none`,te.start(p,()=>{document.body.style.WebkitUserSelect=se.current,fe(e)})},be=e=>{D.props.onTouchEnd&&D.props.onTouchEnd(e),ce(),ee.start(_,()=>{ue(e)})};S.useEffect(()=>{if(!ie)return;function e(e){e.key===`Escape`&&ue(e)}return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[ue,ie]);let xe=Gu(iS(D),A,t);!T&&T!==0&&(ie=!1);let Se=S.useRef(),Ce=e=>{let t=D.props;t.onMouseMove&&t.onMouseMove(e),ek={x:e.clientX,y:e.clientY},Se.current&&Se.current.update()},we={},Te=typeof T==`string`;o?(we.title=!ie&&Te&&!c?T:null,we[`aria-describedby`]=ie?oe:null):(we[`aria-label`]=Te?T:null,we[`aria-labelledby`]=ie&&!Te?oe:null);let Ee={...we,...E,...D.props,className:B(E.className,D.props.className),onTouchStart:ve,ref:xe,...m?{onMouseMove:Ce}:{}},De={};u||(Ee.onTouchStart=ye,Ee.onTouchEnd=be),c||(Ee.onMouseOver=tk(fe,Ee.onMouseOver),Ee.onMouseLeave=tk(me,Ee.onMouseLeave),F||(De.onMouseOver=pe,De.onMouseLeave=me)),s||(Ee.onFocus=tk(_e,Ee.onFocus),Ee.onBlur=tk(ge,Ee.onBlur),F||(De.onFocus=_e,De.onBlur=ge));let Oe={...n,arrow:r,disableInteractive:F,placement:x,touch:N.current},ke=typeof C.popper==`function`?C.popper(Oe):C.popper,Ae=S.useMemo(()=>{let e=[{name:`arrow`,enabled:!!j,options:{element:j,padding:4}}];return ke?.popperOptions?.modifiers&&(e=e.concat(ke.popperOptions.modifiers)),{...ke?.popperOptions,modifiers:e}},[j,ke?.popperOptions]),je=JO(Oe),Me={slots:w,slotProps:{arrow:C.arrow,popper:ke,tooltip:C.tooltip,transition:C.transition}},[Ne,Pe]=X(`popper`,{elementType:YO,externalForwardedProps:Me,ownerState:Oe,className:je.popper}),[Fe,Ie]=X(`transition`,{elementType:TE,externalForwardedProps:Me,ownerState:Oe}),[Le,Re]=X(`tooltip`,{elementType:XO,className:je.tooltip,externalForwardedProps:Me,ownerState:Oe}),[ze,Be]=X(`arrow`,{elementType:ZO,className:je.arrow,externalForwardedProps:Me,ownerState:Oe,ref:M});return(0,z.jsxs)(S.Fragment,{children:[S.cloneElement(D,Ee),(0,z.jsx)(Ne,{as:gS,placement:x,anchorEl:m?{getBoundingClientRect:()=>({top:ek.y,left:ek.x,right:ek.x,bottom:ek.y,width:0,height:0})}:k,popperRef:Se,open:k?ie:!1,id:oe,transition:!0,...De,...Pe,popperOptions:Ae,children:({TransitionProps:e})=>(0,z.jsx)(Fe,{timeout:O.transitions.duration.shorter,...e,...Ie,children:(0,z.jsxs)(Le,{...Re,children:[T,r?(0,z.jsx)(ze,{...Be}):null]})})})]})}),rk=Yc({createStyledComponent:K(`div`,{name:`MuiStack`,slot:`Root`}),useThemeProps:e=>J({props:e,name:`MuiStack`})});function ik(e){return V(`MuiStep`,e)}H(`MuiStep`,[`root`,`horizontal`,`vertical`,`alternativeLabel`,`completed`]);var ak=e=>{let{classes:t,orientation:n,alternativeLabel:r,completed:i}=e;return W({root:[`root`,n,r&&`alternativeLabel`,i&&`completed`]},ik,t)},ok=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`,alternativeLabel:!1,hasConnector:!1},style:{paddingLeft:8}},{props:{orientation:`horizontal`,alternativeLabel:!1,last:!0},style:{paddingRight:8}},{props:{orientation:`horizontal`,alternativeLabel:!1,hasConnector:!0},style:{flex:`1 1 auto`,display:`grid`,gridTemplateColumns:`1fr auto`,alignItems:`center`,gap:8}},{props:{orientation:`vertical`,alternativeLabel:!0},style:{display:`flex`,flexDirection:`column`}},{props:{orientation:`horizontal`,alternativeLabel:!0},style:{flex:1,position:`relative`}}]}),sk=S.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}=i_(),[y=!1,b=!1,x=!1]=[r,s,c];p===u?y=r===void 0||r:!_&&p>u?b=s===void 0||s:!_&&p<u&&(x=c===void 0||c);let C=S.useMemo(()=>({index:u,last:d,expanded:l,icon:u+1,active:y,completed:b,disabled:x}),[u,d,l,y,b,x]),w=!!m&&u!==0,T={...n,active:y,orientation:g,alternativeLabel:h,completed:b,disabled:x,expanded:l,component:o,hasConnector:w},E=ak(T);return(0,z.jsx)(n_.Provider,{value:C,children:(0,z.jsxs)(ok,{as:o,className:B(E.root,a),ref:t,ownerState:T,role:v?`presentation`:void 0,...f,children:[w?m:null,i]})})});function ck(e){return V(`MuiStepButton`,e)}var lk=H(`MuiStepButton`,[`root`,`horizontal`,`vertical`,`touchRipple`]),uk=e=>{let{classes:t,orientation:n}=e;return W({root:[`root`,n],touchRipple:[`touchRipple`]},ck,t)},dk=K(rg,{name:`MuiStepButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${lk.touchRipple}`]:t.touchRipple},t.root,t[n.orientation]]}})(q(({theme:e})=>({width:`100%`,padding:`24px 16px`,margin:`-24px -16px`,boxSizing:`content-box`,[`& .${lk.touchRipple}`]:{color:`rgba(0, 0, 0, 0.3)`,...e.applyStyles(`dark`,{color:`rgba(255, 255, 255, 0.3)`})},...e.focusVisible&&{[`&.${eg.focusVisible} .${o_.root}`]:{borderRadius:(e.vars||e).shape.borderRadius,...e.focusVisible}},variants:[{props:{orientation:`vertical`},style:{justifyContent:`flex-start`,padding:`8px`,margin:`-8px`}}]}))),fk=S.forwardRef(function(e,t){let{children:n,disabled:r,index:i,...a}=e,o=y_({id:i,ref:t,disabled:r});return(0,z.jsx)(dk,{disabled:r,...o,...a,children:n})}),pk=S.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}=S.useContext(n_),{orientation:d,totalSteps:f,isTabList:p}=i_(),m={...n,orientation:d},h=uk(m),g={icon:a,optional:o},_=th(r,[`StepLabel`])?S.cloneElement(r,g):(0,z.jsx)(f_,{...g,children:r}),v={internalNativeButton:!0,focusRipple:!0,disabled:c,TouchRippleProps:{className:h.touchRipple},className:B(h.root,i),ownerState:m,"aria-selected":l,"aria-posinset":u+1,"aria-setsize":f,role:`tab`,internalDisabledThemeFocusVisible:!0,...s};return p?(0,z.jsx)(fk,{...v,index:u,ref:t,children:_}):(0,z.jsx)(dk,{ref:t,tabIndex:l?0:-1,...v,children:_})});function mk(e){return V(`MuiStepConnector`,e)}H(`MuiStepConnector`,[`root`,`horizontal`,`vertical`,`alternativeLabel`,`active`,`completed`,`disabled`,`line`]);var hk=e=>{let{classes:t,orientation:n,alternativeLabel:r,active:i,completed:a,disabled:o}=e;return W({root:[`root`,n,r&&`alternativeLabel`,i&&`active`,a&&`completed`,o&&`disabled`],line:[`line`]},mk,t)},gk=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:{orientation:`vertical`,alternativeLabel:!0},style:{marginLeft:`auto`,marginRight:12}},{props:{orientation:`horizontal`,alternativeLabel:!0},style:{position:`absolute`,top:12,left:`calc(-50% + 20px)`,right:`calc(50% + 20px)`}}]}),_k=K(`span`,{name:`MuiStepConnector`,slot:`Line`})(q(({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}}]}})),vk=S.forwardRef(function(e,t){let n=J({props:e,name:`MuiStepConnector`}),{className:r,...i}=n,{alternativeLabel:a,orientation:o=`horizontal`}=i_(),{active:s,disabled:c,completed:l}=S.useContext(n_),u={...n,alternativeLabel:a,orientation:o,active:s,completed:l,disabled:c},d=hk(u);return(0,z.jsx)(gk,{className:B(d.root,r),ref:t,ownerState:u,...i,children:(0,z.jsx)(_k,{className:d.line,ownerState:u})})});function yk(e){return V(`MuiStepContent`,e)}H(`MuiStepContent`,[`root`,`last`,`transition`]);var bk=e=>{let{classes:t,last:n}=e;return W({root:[`root`,n&&`last`],transition:[`transition`]},yk,t)},xk=K(`div`,{name:`MuiStepContent`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.last&&t.last]}})(q(({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`}},{props:{alternativeLabel:!0},style:{marginLeft:0,marginRight:12,paddingLeft:8,paddingRight:20,borderLeft:`none`,borderRight:e.vars?`1px solid ${e.vars.palette.StepContent.border}`:`1px solid ${e.palette.mode===`light`?e.palette.grey[400]:e.palette.grey[600]}`}},{props:{alternativeLabel:!0,last:!0},style:{borderRight:`none`}}]}))),Sk=K(jg,{name:`MuiStepContent`,slot:`Transition`})({}),Ck=S.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,alternativeLabel:u}=i_(),{active:d,last:f,expanded:p}=S.useContext(n_),m={...n,last:f,alternativeLabel:u},h=bk(m),g=a;a===`auto`&&!(o.transition??jg).muiSupportAuto&&(g=void 0);let[_,v]=X(`transition`,{elementType:Sk,externalForwardedProps:{slots:o,slotProps:s},ownerState:m,className:h.transition,additionalProps:{in:d||p,timeout:g,unmountOnExit:!0}});return(0,z.jsx)(xk,{className:B(h.root,i),ref:t,ownerState:m,...c,children:(0,z.jsx)(_,{...v,children:r})})});function wk(e){return V(`MuiStepper`,e)}H(`MuiStepper`,[`root`,`horizontal`,`vertical`,`nonLinear`,`alternativeLabel`]);var tne=e=>{let{orientation:t,nonLinear:n,alternativeLabel:r,classes:i}=e;return W({root:[`root`,t,n&&`nonLinear`,r&&`alternativeLabel`]},wk,i)},Tk=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:`horizontal`,alternativeLabel:!1},style:{gap:8}},{props:{orientation:`vertical`},style:{flexDirection:`column`}},{props:{alternativeLabel:!0},style:{alignItems:`flex-start`}},{props:{orientation:`vertical`,alternativeLabel:!0},style:{alignItems:`flex-end`}}]}),nne=(0,z.jsx)(vk,{});function rne(e){let{children:t,className:n,component:r,forwardedRef:i,isRtl:a,orientation:o,ownerState:s,...c}=e,l=v_({orientation:o,isRtl:a}),u=l.getContainerProps(i,c.onFocus,c.onKeyDown);return(0,z.jsx)(p_.Provider,{value:l,children:(0,z.jsx)(Tk,{as:r,ownerState:s,className:n,role:`tablist`,"aria-orientation":o,...c,...u,children:t})})}var ine=S.forwardRef(function(e,t){let n=tc(),r=J({props:e,name:`MuiStepper`}),{activeStep:i=0,alternativeLabel:a=!1,children:o,className:s,component:c=`ol`,connector:l=nne,nonLinear:u=!1,orientation:d=`horizontal`,...f}=r,p={...r,nonLinear:u,alternativeLabel:a,orientation:d,component:c},m=tne(p),h=S.Children.toArray(o).filter(Boolean),g=h.length,_=h.some(e=>{if(!S.isValidElement(e))return!1;if(e.type===pk)return!0;let t=e.props.children;return t?S.Children.toArray(t).some(e=>S.isValidElement(e)&&e.type===pk):!1}),v=h.map((e,t)=>S.cloneElement(e,{index:t,last:t+1===g,...e.props})),y=S.useMemo(()=>({activeStep:i,alternativeLabel:a,connector:l,nonLinear:u,orientation:d,totalSteps:g,isTabList:_}),[i,a,l,u,d,g,_]);return _?(0,z.jsx)(r_.Provider,{value:y,children:(0,z.jsx)(rne,{forwardedRef:t,isRtl:n,className:B(m.root,s),component:c,orientation:d,ownerState:p,...f,children:v})}):(0,z.jsx)(r_.Provider,{value:y,children:(0,z.jsx)(Tk,{as:c,ownerState:p,className:B(m.root,s),ref:t,...f,children:v})})});function ane(e){return V(`MuiTable`,e)}H(`MuiTable`,[`root`,`stickyHeader`]);var one=e=>{let{classes:t,stickyHeader:n}=e;return W({root:[`root`,n&&`stickyHeader`]},ane,t)},sne=K(`table`,{name:`MuiTable`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(q(({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`}}]}))),Ek=`table`,Dk=S.forwardRef(function(e,t){let n=J({props:e,name:`MuiTable`}),{className:r,component:i=Ek,padding:a=`normal`,size:o=`medium`,stickyHeader:s=!1,...c}=n,l={...n,component:i,padding:a,size:o,stickyHeader:s},u=one(l),d=S.useMemo(()=>({padding:a,size:o,stickyHeader:s}),[a,o,s]);return(0,z.jsx)(Vg.Provider,{value:d,children:(0,z.jsx)(sne,{as:i,role:i===Ek?null:`table`,ref:t,className:B(u.root,r),ownerState:l,...c})})});function cne(e){return V(`MuiTableBody`,e)}H(`MuiTableBody`,[`root`]);var lne=e=>{let{classes:t}=e;return W({root:[`root`]},cne,t)},une=K(`tbody`,{name:`MuiTableBody`,slot:`Root`})({display:`table-row-group`}),dne={variant:`body`},Ok=`tbody`,kk=S.forwardRef(function(e,t){let n=J({props:e,name:`MuiTableBody`}),{className:r,component:i=Ok,...a}=n,o={...n,component:i},s=lne(o);return(0,z.jsx)(Lg.Provider,{value:dne,children:(0,z.jsx)(une,{className:B(s.root,r),as:i,ref:t,role:i===Ok?null:`rowgroup`,ownerState:o,...a})})});function fne(e){return V(`MuiTableContainer`,e)}H(`MuiTableContainer`,[`root`]);var pne=e=>{let{classes:t}=e;return W({root:[`root`]},fne,t)},mne=K(`div`,{name:`MuiTableContainer`,slot:`Root`})({width:`100%`,overflowX:`auto`}),Ak=S.forwardRef(function(e,t){let n=J({props:e,name:`MuiTableContainer`}),{className:r,component:i=`div`,...a}=n,o={...n,component:i},s=pne(o);return(0,z.jsx)(mne,{ref:t,as:i,className:B(s.root,r),ownerState:o,...a})});function hne(e){return V(`MuiTableHead`,e)}H(`MuiTableHead`,[`root`]);var gne=e=>{let{classes:t}=e;return W({root:[`root`]},hne,t)},_ne=K(`thead`,{name:`MuiTableHead`,slot:`Root`})({display:`table-header-group`}),vne={variant:`head`},jk=`thead`,Mk=S.forwardRef(function(e,t){let n=J({props:e,name:`MuiTableHead`}),{className:r,component:i=jk,...a}=n,o={...n,component:i},s=gne(o);return(0,z.jsx)(Lg.Provider,{value:vne,children:(0,z.jsx)(_ne,{as:i,className:B(s.root,r),ref:t,role:i===jk?null:`rowgroup`,ownerState:o,...a})})});function yne(e){return V(`MuiToolbar`,e)}H(`MuiToolbar`,[`root`,`gutters`,`regular`,`dense`]);var bne=e=>{let{classes:t,disableGutters:n,variant:r}=e;return W({root:[`root`,!n&&`gutters`,r]},yne,t)},xne=K(`div`,{name:`MuiToolbar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(q(({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}]}))),Nk=S.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},l=bne(c);return(0,z.jsx)(xne,{as:i,className:B(l.root,r),ref:t,ownerState:c,...s})}),Pk=$m((0,z.jsx)(`path`,{d:`M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z`}),`KeyboardArrowLeft`),Fk=$m((0,z.jsx)(`path`,{d:`M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z`}),`KeyboardArrowRight`);function Sne(e){return V(`MuiTablePaginationActions`,e)}H(`MuiTablePaginationActions`,[`root`]);var Cne=e=>{let{classes:t}=e;return W({root:[`root`]},Sne,t)},wne=K(`div`,{name:`MuiTablePaginationActions`,slot:`Root`})({}),Tne=S.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=tc(),g=Cne(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??mg,S=f.lastButton??mg,C=f.nextButton??mg,w=f.previousButton??mg,T=f.firstButtonIcon??L_,E=f.lastButtonIcon??R_,D=f.nextButtonIcon??Fk,O=f.previousButtonIcon??Pk,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,z.jsxs)(wne,{ref:t,className:B(g.root,r),...m,children:[u&&(0,z.jsx)(k,{onClick:_,disabled:a||c===0,"aria-label":o(`first`,c),title:o(`first`,c),...N,children:h?(0,z.jsx)(E,{...p.lastButtonIcon}):(0,z.jsx)(T,{...p.firstButtonIcon})}),(0,z.jsx)(A,{onClick:v,disabled:a||c===0,color:`inherit`,"aria-label":o(`previous`,c),title:o(`previous`,c),...P,children:h?(0,z.jsx)(D,{...p.nextButtonIcon}):(0,z.jsx)(O,{...p.previousButtonIcon})}),(0,z.jsx)(j,{onClick:y,disabled:a||i!==-1&&c>=Math.ceil(i/l)-1,color:`inherit`,"aria-label":o(`next`,c),title:o(`next`,c),...F,children:h?(0,z.jsx)(O,{...p.previousButtonIcon}):(0,z.jsx)(D,{...p.nextButtonIcon})}),d&&(0,z.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,z.jsx)(T,{...p.firstButtonIcon}):(0,z.jsx)(E,{...p.lastButtonIcon})})]})});function Ene(e){return V(`MuiTablePagination`,e)}var Ik=H(`MuiTablePagination`,[`root`,`toolbar`,`spacer`,`selectLabel`,`selectRoot`,`select`,`selectIcon`,`input`,`menuItem`,`displayedRows`,`actions`]),Dne,Lk=lf(`en-US`),One=K(Kg,{name:`MuiTablePagination`,slot:`Root`})(q(({theme:e})=>({overflow:`auto`,color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),kne=K(Nk,{name:`MuiTablePagination`,slot:`Toolbar`,overridesResolver:(e,t)=>({[`& .${Ik.actions}`]:t.actions,...t.toolbar})})(q(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up(`xs`)} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up(`sm`)]:{minHeight:52,paddingRight:2},[`& .${Ik.actions}`]:{flexShrink:0,marginLeft:20}}))),Ane=K(`div`,{name:`MuiTablePagination`,slot:`Spacer`})({flex:`1 1 100%`}),jne=K(`p`,{name:`MuiTablePagination`,slot:`SelectLabel`})(q(({theme:e})=>({...e.typography.body2,flexShrink:0}))),Mne=K(TO,{name:`MuiTablePagination`,slot:`Select`,overridesResolver:(e,t)=>({[`& .${Ik.selectIcon}`]:t.selectIcon,[`& .${Ik.select}`]:t.select,...t.input,...t.selectRoot})})({color:`inherit`,fontSize:`inherit`,flexShrink:0,marginRight:32,marginLeft:8,[`& .${Ik.select}`]:{paddingLeft:8,paddingRight:24,textAlign:`right`,textAlignLast:`right`}}),Nne=K(Dd)(q(({theme:e})=>({[`& .${Ik.select}:focus`]:{backgroundColor:(e.vars||e).palette.action.focus}}))),Rk=K(qD,{name:`MuiTablePagination`,slot:`MenuItem`})({}),zk=K(`p`,{name:`MuiTablePagination`,slot:`DisplayedRows`})(q(({theme:e})=>({...e.typography.body2,flexShrink:0})));function Bk({from:e,to:t,count:n}){return`${Lk(e)}–${Lk(t)} of ${n===-1?`more than ${Lk(t)}`:Lk(n)}`}function Vk(e){return`Go to ${e} page`}var Hk=e=>{let{classes:t}=e;return W({root:[`root`],toolbar:[`toolbar`],spacer:[`spacer`],selectLabel:[`selectLabel`],select:[`select`],input:[`input`],selectIcon:[`selectIcon`],menuItem:[`menuItem`],displayedRows:[`displayedRows`],actions:[`actions`]},Ene,t)},Uk=S.forwardRef(function(e,t){let n=J({props:e,name:`MuiTablePagination`}),{ActionsComponent:r=Tne,colSpan:i,component:a=Kg,count:o,disabled:s=!1,getItemAriaLabel:c=Vk,labelDisplayedRows:l=Bk,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,C=Hk(x),w=typeof v?.select==`function`?v.select(x):v?.select??{},T=w.native?`option`:Rk,E;(a===Kg||a===`td`)&&(E=i||1e3);let D=ih(w.id),O=ih(w.labelId),k=()=>o===-1?(p+1)*m:m===-1?o:Math.min(o,(p+1)*m),A={slots:y,slotProps:v},[j,M]=X(`root`,{ref:t,className:C.root,elementType:One,externalForwardedProps:{...A,component:a,...b},ownerState:x,additionalProps:{colSpan:E}}),[N,P]=X(`toolbar`,{className:C.toolbar,elementType:kne,externalForwardedProps:A,ownerState:x}),[F,I]=X(`spacer`,{className:C.spacer,elementType:Ane,externalForwardedProps:A,ownerState:x}),[R,ee]=X(`selectLabel`,{className:C.selectLabel,elementType:jne,externalForwardedProps:A,ownerState:x,additionalProps:{id:O}}),[te,ne]=X(`select`,{className:C.select,elementType:Mne,externalForwardedProps:A,ownerState:x}),[re,ie]=X(`menuItem`,{className:C.menuItem,elementType:T,externalForwardedProps:A,ownerState:x}),[ae,oe]=X(`displayedRows`,{className:C.displayedRows,elementType:zk,externalForwardedProps:A,ownerState:x});return(0,z.jsx)(j,{...M,children:(0,z.jsxs)(N,{...P,children:[(0,z.jsx)(F,{...I}),h.length>1&&(0,z.jsx)(R,{...ee,children:u}),h.length>1&&(0,z.jsx)(te,{variant:`standard`,...!w.variant&&{input:Dne||=(0,z.jsx)(Nne,{})},value:m,onChange:f,id:D,labelId:O,...w,classes:{...w.classes,root:B(C.input,C.selectRoot,(w.classes||{}).root),select:B(C.select,(w.classes||{}).select),icon:B(C.selectIcon,(w.classes||{}).icon)},disabled:s,...ne,children:h.map(e=>(0,S.createElement)(re,{...ie,key:e.label?e.label:e,value:e.value?e.value:e},e.label?e.label:e))}),(0,z.jsx)(ae,{...oe,children:l({from:o===0?0:p*m+1,to:k(),count:o===-1?-1:o,page:p})}),(0,z.jsx)(r,{className:C.actions,count:o,onPageChange:d,page:p,rowsPerPage:m,showFirstButton:g,showLastButton:_,slotProps:v.actions,slots:y.actions,getItemAriaLabel:c,disabled:s})]})})}),Wk=$m((0,z.jsx)(`path`,{d:`M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z`}),`ArrowDownward`);function Gk(e){return V(`MuiTableSortLabel`,e)}var Kk=H(`MuiTableSortLabel`,[`root`,`active`,`icon`,`directionDesc`,`directionAsc`]),qk=e=>{let{classes:t,direction:n,active:r}=e;return W({root:[`root`,r&&`active`,`direction${Y(n)}`],icon:[`icon`]},Gk,t)},Jk=K(rg,{name:`MuiTableSortLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.active&&t.active]}})(q(({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,[`& .${Kk.icon}`]:{opacity:.5}},[`&.${Kk.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${Kk.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),Yk=K(`span`,{name:`MuiTableSortLabel`,slot:`Icon`})(q(({theme:e})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,..._d(e,[`opacity`,`transform`],{duration:e.transitions.duration.shorter}),userSelect:`none`,variants:[{props:{direction:`desc`},style:{transform:`rotate(0deg)`}},{props:{direction:`asc`},style:{transform:`rotate(180deg)`}}]}))),Xk=S.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=Wk,slots:l={},slotProps:u={},...d}=n,f={...n,active:r,direction:o,hideSortIcon:s,IconComponent:c},p=qk(f),m={slots:l,slotProps:u},[h,g]=X(`root`,{elementType:Jk,externalForwardedProps:m,ownerState:f,className:B(p.root,a),ref:t,additionalProps:{internalNativeButton:!1}}),[_,v]=X(`icon`,{elementType:Yk,externalForwardedProps:m,ownerState:f,className:p.icon});return(0,z.jsxs)(h,{disableRipple:!0,component:`span`,...g,...d,children:[i,s&&!r?null:(0,z.jsx)(_,{as:c,...v})]})});function Zk(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Qk(e,t,n,r={},i=()=>{}){let{ease:a=Zk,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 $k={width:99,height:99,position:`absolute`,top:-9999,overflow:`scroll`,pointerEvents:`none`};function eA(e){let{onChange:t,...n}=e,r=S.useRef(),i=S.useRef(null),a=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return Ku(()=>{let e=eh(()=>{let e=r.current;a(),e!==r.current&&t(r.current)}),n=nh(i.current);return n.addEventListener(`resize`,e),()=>{e.clear(),n.removeEventListener(`resize`,e)}},[t]),S.useEffect(()=>{a(),t(r.current)},[t]),(0,z.jsx)(`div`,{style:$k,...n,ref:i})}function tA(e){return V(`MuiTabScrollButton`,e)}var nA=H(`MuiTabScrollButton`,[`root`,`vertical`,`horizontal`,`disabled`]),rA=e=>{let{classes:t,orientation:n,disabled:r}=e;return W({root:[`root`,n,r&&`disabled`]},tA,t)},iA=K(rg,{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,[`&.${nA.disabled}`]:{opacity:0},variants:[{props:{orientation:`vertical`},style:{width:`100%`,height:40,"& svg":{transform:`var(--TabScrollButton-svgRotate)`}}}]}),aA=S.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=tc(),p={isRtl:f,...n},m=rA(p),h=i.StartScrollButtonIcon??Pk,g=i.EndScrollButtonIcon??Fk,_=rS({elementType:h,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:`small`},ownerState:p}),v=rS({elementType:g,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:`small`},ownerState:p});return(0,z.jsx)(iA,{component:`div`,className:B(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,z.jsx)(h,{..._}):(0,z.jsx)(g,{...v})})});function oA(e){return V(`MuiTabs`,e)}var sA=H(`MuiTabs`,[`root`,`vertical`,`list`,`centered`,`scroller`,`fixed`,`scrollableX`,`scrollableY`,`hideScrollbar`,`scrollButtons`,`scrollButtonsHideMobile`,`indicator`]),cA=e=>{let{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:c}=e;return W({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`]},oA,c)},lA=K(`div`,{name:`MuiTabs`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${sA.scrollButtons}`]:t.scrollButtons},{[`& .${sA.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(q(({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:{[`& .${sA.scrollButtons}`]:{[e.breakpoints.down(`sm`)]:{display:`none`}}}}]}))),uA=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`}}]}),dA=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`}}]}),fA=K(`span`,{name:`MuiTabs`,slot:`Indicator`})(q(({theme:e})=>({position:`absolute`,height:2,bottom:0,width:`100%`,..._d(e),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}}]}))),pA=K(eA)({overflowX:`auto`,overflowY:`hidden`,scrollbarWidth:`none`,"&::-webkit-scrollbar":{display:`none`}}),mA={},hA=S.forwardRef(function(e,t){let n=J({props:e,name:`MuiTabs`}),r=Bu(),i=tc(),a=zh(r.motion.reducedMotion,!1),{"aria-label":o,"aria-labelledby":s,action:c,centered:l=!1,children:u,className:d,component:f=`div`,allowScrollButtonsMobile:p=!1,indicatorColor:m=`primary`,onChange:h,orientation:g=`horizontal`,scrollButtons:_=`auto`,selectionFollowsFocus:v,slots:y={},slotProps:b={},textColor:x=`primary`,value:C,variant:w=`standard`,visibleScrollbar:T=!1,...E}=n,D=w===`scrollable`,O=g===`vertical`,k=O?`scrollTop`:`scrollLeft`,A=O?`top`:`left`,j=O?`bottom`:`right`,M=O?`clientHeight`:`clientWidth`,N=O?`height`:`width`,P={...n,component:f,allowScrollButtonsMobile:p,indicatorColor:m,orientation:g,vertical:O,scrollButtons:_,textColor:x,variant:w,visibleScrollbar:T,fixed:!D,hideScrollbar:D&&!T,scrollableX:D&&!O,scrollableY:D&&O,centered:l&&!D,scrollButtonsHideMobile:!p},F=cA(P),I=rS({elementType:y.startScrollButtonIcon,externalSlotProps:b.startScrollButtonIcon,ownerState:P}),R=rS({elementType:y.endScrollButtonIcon,externalSlotProps:b.endScrollButtonIcon,ownerState:P}),[ee,te]=S.useState(!1),[ne,re]=S.useState(mA),[ie,ae]=S.useState(!1),[oe,se]=S.useState(!1),[ce,le]=S.useState(!1),ue=C===!1?null:C,[de,fe]=S.useState(!1),[pe,me]=S.useState({overflow:`hidden`,scrollbarWidth:0}),he=new Map,ge=S.useRef(null),_e=S.useRef(null),ve={slots:y,slotProps:b},ye=()=>{let e=ge.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&&C!==!1){let e=_e.current.children;if(e.length>0){let t=e[he.get(C)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},be=sh(()=>{let{tabsMeta:e,tabMeta:t}=ye(),n=0,r;O?(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,[N]:t?t[N]:0};if(typeof ne[r]!=`number`||typeof ne[N]!=`number`)re(a);else{let e=Math.abs(ne[r]-a[r]),t=Math.abs(ne[N]-a[N]);(e>=1||t>=1)&&re(a)}}),xe=(e,{animation:t=!0}={})=>{t&&!a.shouldReduceMotion?Qk(k,ge.current,e,{duration:r.transitions.duration.standard}):ge.current[k]=e},Se=e=>{let t=ge.current[k];t+=O?e:e*(i?-1:1),xe(t)},Ce=()=>{let e=ge.current[M],t=0,n=Array.from(_e.current.children);for(let r=0;r<n.length;r+=1){let i=n[r];if(t+i[M]>e){r===0&&(t=e);break}t+=i[M]}return t},we=()=>{Se(-1*Ce())},Te=()=>{Se(Ce())},[Ee,{onChange:De,...Oe}]=X(`scrollbar`,{className:B(F.scrollableX,F.hideScrollbar),elementType:pA,shouldForwardComponentProp:!0,externalForwardedProps:ve,ownerState:P}),ke=S.useCallback(e=>{De?.(e),me({overflow:null,scrollbarWidth:e})},[De]),[Ae,je]=X(`scrollButtons`,{className:F.scrollButtons,elementType:aA,externalForwardedProps:ve,ownerState:P,additionalProps:{orientation:g,slots:{StartScrollButtonIcon:y.startScrollButtonIcon,EndScrollButtonIcon:y.endScrollButtonIcon},slotProps:{startScrollButtonIcon:I,endScrollButtonIcon:R}}}),Me=()=>{let e={};e.scrollbarSizeListener=D?(0,z.jsx)(Ee,{...Oe,onChange:ke}):null;let t=D&&(_===`auto`&&(ie||oe)||_===!0);return e.scrollButtonStart=t?(0,z.jsx)(Ae,{direction:i?`right`:`left`,onClick:we,disabled:!ie,...je}):null,e.scrollButtonEnd=t?(0,z.jsx)(Ae,{direction:i?`left`:`right`,onClick:Te,disabled:!oe,...je}):null,e},Ne=sh(e=>{let{tabsMeta:t,tabMeta:n}=ye();if(n&&t){if(n[A]<t[A]){let r=t[k]+(n[A]-t[A]);xe(r,{animation:e})}else if(n[j]>t[j]){let r=t[k]+(n[j]-t[j]);xe(r,{animation:e})}}}),Pe=sh(()=>{D&&_!==!1&&le(!ce)});S.useEffect(()=>{let e=eh(()=>{ge.current&&be()}),t,n=n=>{n.forEach(e=>{e.removedNodes.forEach(e=>{t?.unobserve(e)}),e.addedNodes.forEach(e=>{t?.observe(e)})}),e(),Pe()},r=nh(ge.current);r.addEventListener(`resize`,e);let i;return typeof ResizeObserver<`u`&&(t=new ResizeObserver(e),Array.from(_e.current.children).forEach(e=>{t.observe(e)})),typeof MutationObserver<`u`&&(i=new MutationObserver(n),i.observe(_e.current,{childList:!0})),()=>{e.clear(),r.removeEventListener(`resize`,e),i?.disconnect(),t?.disconnect()}},[be,Pe]),S.useEffect(()=>{let e=Array.from(_e.current.children),t=e.length;if(typeof IntersectionObserver<`u`&&t>0&&D&&_!==!1){let n=e[0],r=e[t-1],i={root:ge.current,threshold:.99},a=new IntersectionObserver(e=>{ae(!e[0].isIntersecting)},i);a.observe(n);let o=new IntersectionObserver(e=>{se(!e[0].isIntersecting)},i);return o.observe(r),()=>{a.disconnect(),o.disconnect()}}},[D,_,ce,u?.length]),S.useEffect(()=>{te(!0)},[]),S.useEffect(()=>{be()}),S.useEffect(()=>{Ne(mA!==ne)},[Ne,ne]),S.useImperativeHandle(c,()=>({updateIndicator:be,updateScrollButtons:Pe}),[be,Pe]);let[Fe,Ie]=X(`indicator`,{className:F.indicator,elementType:fA,externalForwardedProps:ve,ownerState:P,additionalProps:{style:ne}}),Le=(0,z.jsx)(Fe,{...Ie}),Re=v_({activeItemId:de?void 0:ue,orientation:g,isRtl:i}),ze=Re.getContainerProps(),Be=S.Children.toArray(u).filter(S.isValidElement).map((e,t)=>{let n=e.props.value===void 0?t:e.props.value;return he.set(n,t),{child:e,index:t,childValue:n}}).map(({child:e,childValue:t})=>{let n=t===C;return S.cloneElement(e,{fullWidth:w===`fullWidth`,indicator:n&&!ee&&Le,selected:n,selectionFollowsFocus:v,onChange:h,textColor:x,value:t})}),Ve=Me(),[He,Ue]=X(`root`,{ref:t,className:B(F.root,d),elementType:lA,externalForwardedProps:{...ve,...E,component:f},ownerState:P}),[We,Ge]=X(`scroller`,{ref:ge,className:F.scroller,elementType:uA,externalForwardedProps:ve,ownerState:P,additionalProps:{style:{overflow:pe.overflow,[O?`margin${i?`Left`:`Right`}`:`marginBottom`]:T?void 0:-pe.scrollbarWidth}}}),Ke=Gu(ze.ref,_e),qe=e=>{let t=_e.current;Yu(qu(t))?.getAttribute(`role`)===`tab`&&ze.onKeyDown(e)},[Je,Ye]=X(`list`,{ref:Ke,className:F.list,elementType:dA,externalForwardedProps:ve,ownerState:P,getSlotProps:e=>({...e,onBlur:t=>{qT(t.currentTarget,t.relatedTarget)||fe(!1),e.onBlur?.(t)},onKeyDown:t=>{qe(t),e.onKeyDown?.(t)},onFocus:t=>{fe(!0),ze.onFocus(t),e.onFocus?.(t)}})});return(0,z.jsxs)(He,{...Ue,children:[Ve.scrollButtonStart,Ve.scrollbarSizeListener,(0,z.jsxs)(We,{...Ge,children:[(0,z.jsx)(Je,{"aria-label":o,"aria-labelledby":s,"aria-orientation":g===`vertical`?`vertical`:null,role:`tablist`,...Ye,children:(0,z.jsx)(p_.Provider,{value:Re,children:Be})}),ee&&Le]}),Ve.scrollButtonEnd]})});function gA(e){return V(`MuiTextField`,e)}H(`MuiTextField`,[`root`]);var _A={standard:kE,filled:ey,outlined:Xv},vA=e=>{let{classes:t}=e;return W({root:[`root`]},gA,t)},yA=K(yE,{name:`MuiTextField`,slot:`Root`})({}),bA=S.forwardRef(function(e,t){let n=J({props:e,name:`MuiTextField`}),{autoComplete:r,autoFocus:i=!1,children:a,className:o,color:s=`primary`,defaultValue:c,disabled:l=!1,error:u=!1,fullWidth:d=!1,helperText:f,id:p,inputRef:m,label:h,maxRows:g,minRows:_,multiline:v=!1,name:y,onBlur:b,onChange:x,onFocus:S,placeholder:C,required:w=!1,rows:T,select:E=!1,slots:D={},slotProps:O={},type:k,value:A,variant:j=`outlined`,...M}=n,N={...n,autoFocus:i,color:s,disabled:l,error:u,fullWidth:d,multiline:v,required:w,select:E,variant:j},P=vA(N),F=lc(p),I=f&&F?`${F}-helper-text`:void 0,R=h&&F?`${F}-label`:void 0,ee=_A[j],te={slots:D,slotProps:O},[ne,re]=X(`select`,{elementType:TO,externalForwardedProps:te,ownerState:N}),ie=E&&re.native,ae={},oe=te.slotProps.inputLabel;j===`outlined`&&(oe&&oe.shrink!==void 0&&(ae.notched=oe.shrink),ae.label=h),E&&(ie||(ae.id=void 0),ae[`aria-describedby`]=void 0);let[se,ce]=X(`root`,{elementType:yA,shouldForwardComponentProp:!0,externalForwardedProps:{...te,...M},ownerState:N,className:B(P.root,o),ref:t,additionalProps:{disabled:l,error:u,fullWidth:d,required:w,color:s,variant:j}}),[le,ue]=X(`input`,{elementType:ee,externalForwardedProps:te,additionalProps:ae,ownerState:N}),[de,fe]=X(`inputLabel`,{elementType:hy,externalForwardedProps:te,ownerState:N}),[pe,me]=X(`htmlInput`,{elementType:`input`,externalForwardedProps:te,ownerState:N}),[he,ge]=X(`formHelperText`,{elementType:xE,externalForwardedProps:te,ownerState:N}),_e=(0,z.jsx)(le,{"aria-describedby":I,autoComplete:r,autoFocus:i,defaultValue:c,fullWidth:d,multiline:v,name:y,rows:T,maxRows:g,minRows:_,type:k,value:A,id:F,inputRef:m,onBlur:b,onChange:x,onFocus:S,placeholder:C,inputProps:me,slots:{input:D.htmlInput?pe:void 0},...ue});return(0,z.jsxs)(se,{...ce,children:[h!=null&&h!==``&&(0,z.jsx)(de,{htmlFor:E&&!ie?void 0:F,id:R,...E&&!ie&&{component:`div`},...fe,children:h}),E?(0,z.jsx)(ne,{"aria-describedby":I,id:F,labelId:R,value:A,input:_e,...re,children:a}):_e,f&&(0,z.jsx)(he,{id:I,...ge,children:f})]})}),xA=As({themeId:Xn});function SA(){return xA(`(prefers-color-scheme: dark)`)}function CA(e){let t=SA();return e===`system`?t?`dark`:`light`:e}var wA=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},TA=(e=>e?wA(e):wA),EA=e=>e;function DA(e,t=EA){let n=S.useSyncExternalStore(e.subscribe,S.useCallback(()=>t(e.getState()),[e,t]),S.useCallback(()=>t(e.getInitialState()),[e,t]));return S.useDebugValue(n),n}var OA=e=>{let t=TA(e),n=e=>DA(t,e);return Object.assign(n,t),n},kA=(e=>e?OA(e):OA),AA=e=>!!e.dispatchFromDevtools&&typeof e.dispatch==`function`,jA=new Map,MA=e=>{let t=jA.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([e,t])=>[e,t.getState()])):{}},NA=(e,t,n)=>{if(e===void 0)return{type:`untracked`,connection:t.connect(n)};let r=jA.get(n.name);if(r)return{type:`tracked`,store:e,...r};let i={connection:t.connect(n),stores:{}};return jA.set(n.name,i),{type:`tracked`,store:e,...i}},PA=(e,t)=>{if(t===void 0)return;let n=jA.get(e);n&&(delete n.stores[t],Object.keys(n.stores).length===0&&jA.delete(e))},FA=/^at (?:new |async )?(.+?) \(/,IA=/^([^@]+)@/;function LA(e){if(!e)return;let t=e.split(`
264
+ `),n=t.findIndex(e=>e.includes(`api.setState`));if(n<0)return;let r=t[n+1]?.trim()||``;return FA.exec(r)?.[1]||IA.exec(r)?.[1]}var RA=(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}=NA(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||LA(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}`},{...MA(c.name),[s]:i.getState()}),l)}),i.devtools={cleanup:()=>{u&&typeof u.unsubscribe==`function`&&u.unsubscribe(),PA(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()])))),AA(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 zA(e.payload,e=>{if(e.type===`__setState`){if(s===void 0){p(e.state);return}Object.keys(e.state).length!==1&&console.error(`
265
+ [zustand devtools middleware] Unsupported __setState action format.
266
+ When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
267
+ and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
268
+ `);let t=e.state[s];if(t==null)return;JSON.stringify(i.getState())!==JSON.stringify(t)&&p(t);return}AA(i)&&i.dispatch(e)});case`DISPATCH`:switch(e.payload.type){case`RESET`:return p(m),s===void 0?u?.init(i.getState()):u?.init(MA(c.name));case`COMMIT`:if(s===void 0){u?.init(i.getState());return}return u?.init(MA(c.name));case`ROLLBACK`:return zA(e.state,e=>{if(s===void 0){p(e),u?.init(i.getState());return}p(e[s]),u?.init(MA(c.name))});case`JUMP_TO_STATE`:case`JUMP_TO_ACTION`:return zA(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},zA=(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 BA(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 VA=e=>t=>{try{let n=e(t);return n instanceof Promise?n:{then(e){return VA(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return VA(t)(e)}}}},HA=(e,t)=>(n,r,i)=>{let a={storage:BA(()=>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 VA(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:()=>{++s,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},UA=Symbol.for(`immer-nothing`),WA=Symbol.for(`immer-draftable`),GA=Symbol.for(`immer-state`);function KA(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var qA=Object,JA=qA.getPrototypeOf,YA=`constructor`,XA=`prototype`,ZA=`configurable`,QA=`enumerable`,$A=`writable`,ej=`value`,tj=e=>!!e&&!!e[GA];function nj(e){return e?aj(e)||fj(e)||!!e[WA]||!!e[YA]?.[WA]||pj(e)||mj(e):!1}var rj=qA[XA][YA].toString(),ij=new WeakMap;function aj(e){if(!e||!hj(e))return!1;let t=JA(e);if(t===null||t===qA[XA])return!0;let n=qA.hasOwnProperty.call(t,YA)&&t[YA];if(n===Object)return!0;if(!gj(n))return!1;let r=ij.get(n);return r===void 0&&(r=Function.toString.call(n),ij.set(n,r)),r===rj}function oj(e,t,n=!0){sj(e)===0?(n?Reflect.ownKeys(e):qA.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function sj(e){let t=e[GA];return t?t.type_:fj(e)?1:pj(e)?2:mj(e)?3:0}var cj=(e,t,n=sj(e))=>n===2?e.has(t):qA[XA].hasOwnProperty.call(e,t),lj=(e,t,n=sj(e))=>n===2?e.get(t):e[t],uj=(e,t,n,r=sj(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function dj(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var fj=Array.isArray,pj=e=>e instanceof Map,mj=e=>e instanceof Set,hj=e=>typeof e==`object`,gj=e=>typeof e==`function`,_j=e=>typeof e==`boolean`;function vj(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var yj=e=>e.copy_||e.base_,bj=e=>e.modified_?e.copy_:e.base_;function xj(e,t){if(pj(e))return new Map(e);if(mj(e))return new Set(e);if(fj(e))return Array[XA].slice.call(e);let n=aj(e);if(t===!0||t===`class_only`&&!n){let t=qA.getOwnPropertyDescriptors(e);delete t[GA];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[$A]===!1&&(a[$A]=!0,a[ZA]=!0),(a.get||a.set)&&(t[i]={[ZA]:!0,[$A]:!0,[QA]:a[QA],[ej]:e[i]})}return qA.create(JA(e),t)}{let t=JA(e);if(t!==null&&n)return{...e};let r=qA.create(t);return qA.assign(r,e)}}function Sj(e,t=!1){return Tj(e)||tj(e)||!nj(e)?e:(sj(e)>1&&qA.defineProperties(e,{set:wj,add:wj,clear:wj,delete:wj}),qA.freeze(e),t&&oj(e,(e,t)=>{Sj(t,!0)},!1),e)}function Cj(){KA(2)}var wj={[ej]:Cj};function Tj(e){return e===null||!hj(e)||qA.isFrozen(e)}var Ej=`MapSet`,Dj=`Patches`,Oj=`ArrayMethods`,kj={};function Aj(e){let t=kj[e];return t||KA(0,e),t}var jj=e=>!!kj[e],Mj,Nj=()=>Mj,Pj=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:jj(Ej)?Aj(Ej):void 0,arrayMethodsPlugin_:jj(Oj)?Aj(Oj):void 0});function Fj(e,t){t&&(e.patchPlugin_=Aj(Dj),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Ij(e){Lj(e),e.drafts_.forEach(zj),e.drafts_=null}function Lj(e){e===Mj&&(Mj=e.parent_)}var Rj=e=>Mj=Pj(Mj,e);function zj(e){let t=e[GA];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Bj(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[GA].modified_&&(Ij(t),KA(4)),nj(e)&&(e=Vj(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[GA].base_,e,t)}else e=Vj(t,n);return Hj(t,e,!0),Ij(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===UA?void 0:e}function Vj(e,t){if(Tj(t))return t;let n=t[GA];if(!n)return Xj(t,e.handledSet_,e);if(!Wj(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);Jj(n,e)}return n.copy_}function Hj(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Sj(t,n)}function Uj(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Wj=(e,t)=>e.scope_===t,Gj=[];function Kj(e,t,n,r){let i=yj(e),a=e.type_;if(r!==void 0&&lj(i,r,a)===t){uj(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;oj(i,(e,n)=>{if(tj(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??Gj;for(let e of o)uj(i,e,n,a)}function qj(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!Wj(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=bj(i);Kj(e,i.draft_??i,a,n),Jj(i,r)})}function Jj(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)}Uj(e)}}function Yj(e,t,n){let{scope_:r}=e;if(tj(n)){let i=n[GA];Wj(i,r)&&i.callbacks_.push(function(){aM(e),Kj(e,n,bj(i),t)})}else nj(n)&&e.callbacks_.push(function(){let i=yj(e);e.type_===3?i.has(n)&&Xj(n,r.handledSet_,r):lj(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Xj(lj(e.copy_,t,e.type_),r.handledSet_,r)})}function Xj(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||tj(e)||t.has(e)||!nj(e)||Tj(e)?e:(t.add(e),oj(e,(r,i)=>{if(tj(i)){let t=i[GA];Wj(t,n)&&(uj(e,r,bj(t),e.type_),Uj(t))}else nj(i)&&Xj(i,t,n)}),e)}function Zj(e,t){let n=fj(e),r={type_:+!!n,scope_:t?t.scope_:Nj(),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=Qj;n&&(i=[r],a=$j);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var Qj={get(e,t){if(t===GA)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=yj(e);if(!cj(i,t,e.type_))return nM(e,i,t);let a=i[t];if(e.finalized_||!nj(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&vj(t))return a;if(a===eM(e.base_,t)||tM(e,t,a)){aM(e);let n=e.type_===1?+t:t,r=sM(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in yj(e)},ownKeys(e){return Reflect.ownKeys(yj(e))},set(e,t,n){let r=rM(yj(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=eM(yj(e),t),i=r?.[GA];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(dj(n,r)&&(n!==void 0||cj(e.base_,t,e.type_)))return!0;aM(e),iM(e)}return e.copy_[t]===n&&(n!==void 0||cj(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),Yj(e,t,n),!0)},deleteProperty(e,t){return aM(e),eM(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),iM(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=yj(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[$A]:!0,[ZA]:e.type_!==1||t!==`length`,[QA]:r[QA],[ej]:n[t]}},defineProperty(){KA(11)},getPrototypeOf(e){return JA(e.base_)},setPrototypeOf(){KA(12)}},$j={};for(let e in Qj){let t=Qj[e];$j[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}$j.deleteProperty=function(e,t){return $j.set.call(this,e,t,void 0)},$j.set=function(e,t,n){return Qj.set.call(this,e[0],t,n,e[0])};function eM(e,t){let n=e[GA];return(n?yj(n):e)[t]}function tM(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!nj(n)||n[GA]?!1:e.baseRefs_.has(n)}function nM(e,t,n){let r=rM(t,n);return r?ej in r?r[ej]:r.get?.call(e.draft_):void 0}function rM(e,t){if(!(t in e))return;let n=JA(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=JA(n)}}function iM(e){e.modified_||(e.modified_=!0,e.parent_&&iM(e.parent_))}function aM(e){e.copy_||=(e.assigned_=new Map,xj(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var oM=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(gj(e)&&!gj(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}gj(t)||KA(6),n!==void 0&&!gj(n)&&KA(7);let r;if(nj(e)){let i=Rj(this),a=sM(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?Ij(i):Lj(i)}return Fj(i,n),Bj(r,i)}if(!e||!hj(e)){if(r=t(e),r===void 0&&(r=e),r===UA&&(r=void 0),this.autoFreeze_&&Sj(r,!0),n){let t=[],i=[];Aj(Dj).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}KA(1,e)},this.produceWithPatches=(e,t)=>{if(gj(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]},_j(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),_j(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),_j(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){nj(e)||KA(8),tj(e)&&(e=cM(e));let t=Rj(this),n=sM(t,e,void 0);return n[GA].isManual_=!0,Lj(t),n}finishDraft(e,t){let n=e&&e[GA];(!n||!n.isManual_)&&KA(9);let{scope_:r}=n;return Fj(r,t),Bj(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=Aj(Dj).applyPatches_;return tj(e)?r(e,t):this.produce(e,e=>r(e,t))}};function sM(e,t,n,r){let[i,a]=pj(t)?Aj(Ej).proxyMap_(t,n):mj(t)?Aj(Ej).proxySet_(t,n):Zj(t,n);return(n?.scope_??Nj()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?qj(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 cM(e){return tj(e)||KA(10,e),lM(e)}function lM(e){if(!nj(e)||Tj(e))return e;let t=e[GA],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=xj(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=xj(e,!0);return oj(n,(e,t)=>{uj(n,e,lM(t))},r),t&&(t.finalized_=!1),n}globalThis.Iterator?.from;var uM=new oM().produce,dM=e=>(t,n,r)=>(r.setState=(e,n,...r)=>t(typeof e==`function`?uM(e):e,n,...r),e(r.setState,n,r));function fM(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?kA()(RA(HA(dM(e),o),s)):o?kA()(HA(dM(e),o)):a?kA()(RA(dM(e),s)):kA()(dM(e))}function pM(e,t){return fM(e,{name:t,persist:!1})}function mM(e,t){if(!e||typeof e!=`object`)return t;let n=e,r={...t};for(let[e,t]of Object.entries(n)){if(!(e in r))continue;let n=r[e];if(typeof n!=`function`){if(n==null){r[e]=t;continue}t!=null&&typeof t==typeof n&&Array.isArray(t)===Array.isArray(n)&&(r[e]=t)}}return r}function hM(e,t,n){return fM(e,{name:t,persist:{version:1,migrate:e=>e,merge:(e,t)=>mM(e,t),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 gM(e){let t=e;return t.use=new Proxy({},{get:(t,n)=>{if(typeof n==`string`)return()=>e(e=>e[n])}}),t}var _M={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:{}},vM=hM((e,t)=>({..._M,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(_M),canReset:()=>{let e=t();return Object.keys(_M).some(t=>e[t]!==_M[t])}}),`settings`);gM(vM);function yM(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 bM=()=>{};function xM({children:e,config:t,defaultSettings:n,disableCssBaseline:r=!1,themeOverrides:i,dateAdapterLocale:a,dateLocaleText:o}){let s=(0,S.useMemo)(()=>yM(Ew,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:C,reset:w}=vM();(0,S.useEffect)(()=>{n?.mode&&v(n.mode),n?.preset&&b(n.preset),n?.direction&&x(n.direction)},[]);let T=(0,S.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,S.useCallback)(()=>{let e=vM.getState().compactSidebar;C(!e)},[C]),D=(0,S.useMemo)(()=>di(u===`rtl`?{key:`prism-rtl`,stylisPlugins:[Tw]}:{key:`prism-ltr`}),[u]);(0,S.useEffect)(()=>{typeof document<`u`&&(document.documentElement.dir=u)},[u]),(0,S.useEffect)(()=>{typeof document<`u`&&(m&&m!==16?document.documentElement.style.fontSize=`${m}px`:document.documentElement.style.removeProperty(`font-size`))},[m]);let O=CA(c),k=(0,S.useMemo)(()=>iC({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,S.useMemo)(()=>({config:s,theme:k,settings:T,setMode:v,toggleMode:y,setPreset:b,setDirection:x,toggleSidebar:E,setSidebarCollapsed:C,resetSettings:w,openSettingsDrawer:bM,closeSettingsDrawer:bM,toggleSettingsDrawer:bM}),[s,k,T,v,y,b,x,E,C,w]);return(0,z.jsx)(Ii,{value:D,children:(0,z.jsx)(Dw.Provider,{value:A,children:(0,z.jsx)(cf,{theme:k,children:(0,z.jsxs)(_C,{dateAdapter:PC,adapterLocale:a,localeText:o,children:[!r&&(0,z.jsx)(fC,{}),e]})})})})}function SM({href:e,children:t,sx:n}){return(0,z.jsx)(Z,{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 CM={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`},wM=K(Fg)(({theme:e})=>({borderRadius:e.shape.borderRadius,border:`1px solid ${e.palette.divider}`,overflow:`auto`})),TM=K(Mk)(({theme:e})=>({backgroundColor:U(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}`}})),EM=K(Bg)(({theme:e})=>({transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.shortest}),"&:nth-child(even)":{backgroundColor:U(e.palette.grey[500],.02)},"&:hover":{backgroundColor:U(e.palette.primary.main,.04)},"& .MuiTableCell-body":{borderBottom:`1px solid ${U(e.palette.divider,.6)}`}})),DM=new Set;function OM(){return(0,z.jsxs)(`svg`,{width:`48`,height:`48`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,opacity:`0.3`,children:[(0,z.jsx)(`path`,{d:`M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z`}),(0,z.jsx)(`polyline`,{points:`14 2 14 8 20 8`}),(0,z.jsx)(`line`,{x1:`9`,y1:`15`,x2:`15`,y2:`15`})]})}function kM({columns:e,data:t,total:n,loading:r=!1,loadingRows:i=5,page:a,pageSize:o,onPageChange:s,onPageSizeChange:c,sortBy:l,sortOrder:u=`asc`,onSort:d,emptyMessage:f=`No data found`,loadError:p=null,loadErrorLabels:m,rowKey:h,onRowClick:g,rowSx:_,renderExpanded:v,pageSizeOptions:y=[10,25,50,100],stickyHeader:b=!1,dense:x=!1,maxHeight:C,paginationLabels:w,sx:T,selectable:E=!1,selectedKeys:D,onSelectionChange:O,bulkActions:k}){let A=(0,S.useCallback)((e,t)=>{if(h)return h(e);let n=e;return n.id===void 0?String(t):String(n.id)},[h,E]),j=D??DM,M=(0,S.useMemo)(()=>E?t.map((e,t)=>A(e,t)):[],[E,t,A]),N=M.length>0&&M.every(e=>j.has(e)),P=!N&&M.some(e=>j.has(e)),F=(0,S.useCallback)(()=>{if(!O)return;let e=new Set(j);N?M.forEach(t=>e.delete(t)):M.forEach(t=>e.add(t)),O(e)},[O,j,N,M]),I=(0,S.useCallback)(e=>{if(!O)return;let t=new Set(j);t.has(e)?t.delete(e):t.add(e),O(t)},[O,j]),R=(0,S.useCallback)(e=>{d?.(e)},[d]),ee=(0,S.useCallback)((e,t)=>{s(t)},[s]),te=(0,S.useCallback)(e=>{c?.(parseInt(e.target.value,10)),s(0)},[c,s]),ne=Math.max(1,Math.min(o,i)),re=(0,S.useMemo)(()=>Array.from({length:ne},(t,n)=>(0,z.jsxs)(Bg,{children:[E&&(0,z.jsx)(Kg,{padding:`checkbox`,children:(0,z.jsx)(NO,{variant:`rectangular`,width:18,height:18,sx:{borderRadius:.5}})}),e.map(e=>(0,z.jsx)(Kg,{align:e.align??`left`,children:(0,z.jsx)(NO,{variant:`text`,width:e.align===`right`?`60%`:`80%`,sx:{ml:e.align===`right`?`auto`:0,borderRadius:.5}})},e.key))]},`skeleton-${n}`)),[ne,e,E]),ie=E&&j.size>0&&!!k;return!r&&t.length===0?(0,z.jsxs)(wM,{sx:T,children:[(0,z.jsx)(Dk,{size:x?`small`:`medium`,stickyHeader:b,children:(0,z.jsx)(TM,{children:(0,z.jsxs)(Bg,{children:[E&&(0,z.jsx)(Kg,{padding:`checkbox`}),e.map(e=>(0,z.jsx)(Kg,{align:e.align??`left`,style:{width:e.width},children:e.header},e.key))]})})}),(0,z.jsxs)(Z,{sx:{py:6,display:`flex`,flexDirection:`column`,alignItems:`center`,gap:1.5},children:[(0,z.jsx)(OM,{}),(0,z.jsx)(oy,{variant:`body2`,sx:{color:p?`text.secondary`:`text.disabled`},children:p?m?.empty??`Could not load this data`:f}),p&&(0,z.jsx)(oy,{variant:`caption`,sx:{color:`text.disabled`,maxWidth:420,textAlign:`center`},children:p})]})]}):(0,z.jsxs)(wM,{sx:{maxHeight:C,...T},children:[p&&(0,z.jsxs)(Z,{role:`status`,sx:{display:`flex`,alignItems:`center`,gap:1,px:2,py:1,borderBottom:1,borderColor:`divider`,bgcolor:e=>U(e.palette.warning.main,.12)},children:[(0,z.jsx)(oy,{variant:`body2`,sx:{color:`warning.dark`,fontWeight:600},children:m?.partial??`Some of this data could not be loaded`}),(0,z.jsx)(oy,{variant:`caption`,sx:{color:`text.secondary`},children:p})]}),ie&&(0,z.jsxs)(rk,{direction:`row`,spacing:2,sx:{alignItems:`center`,px:2,py:1,borderBottom:e=>`1px solid ${e.palette.divider}`,bgcolor:e=>U(e.palette.primary.main,.06)},children:[(0,z.jsxs)(oy,{variant:`body2`,sx:{fontWeight:600},children:[j.size,` selected`]}),(0,z.jsx)(Z,{sx:{flex:1}}),k(j)]}),(0,z.jsx)(Ak,{children:(0,z.jsxs)(Dk,{size:x?`small`:`medium`,stickyHeader:b,children:[(0,z.jsx)(TM,{children:(0,z.jsxs)(Bg,{children:[E&&(0,z.jsx)(Kg,{padding:`checkbox`,children:(0,z.jsx)(Ny,{size:`small`,indeterminate:P,checked:N,disabled:r||M.length===0,onChange:F,slotProps:{input:{"aria-label":`select all rows on page`}}})}),e.map(e=>(0,z.jsx)(Kg,{align:e.align??`left`,style:{width:e.width},sortDirection:l===e.key&&u,children:e.sortable&&d?(0,z.jsx)(Xk,{active:l===e.key,direction:l===e.key?u:`asc`,onClick:()=>R(e.key),children:e.header}):e.header},e.key))]})}),(0,z.jsx)(kk,{children:r?re:t.map((t,n)=>{let r=A(t,n),i=E&&j.has(r),a=(0,z.jsxs)(EM,{hover:!0,selected:i,onClick:g?()=>g(t):void 0,sx:{cursor:g?`pointer`:`default`,..._?.(t,n)},children:[E&&(0,z.jsx)(Kg,{padding:`checkbox`,onClick:e=>e.stopPropagation(),children:(0,z.jsx)(Ny,{size:`small`,checked:i,onChange:()=>I(r),slotProps:{input:{"aria-label":`select row`}}})}),e.map(e=>(0,z.jsx)(Kg,{align:e.align??`left`,children:e.render(t,n)},e.key))]},r),o=v?.(t,n);return o==null?a:(0,z.jsxs)(S.Fragment,{children:[a,(0,z.jsx)(Bg,{children:(0,z.jsx)(Kg,{colSpan:e.length+ +!!E,sx:{py:0,borderBottom:0},children:o})})]},`${r}-group`)})})]})}),(0,z.jsx)(Uk,{component:`div`,count:n,page:a,rowsPerPage:o,rowsPerPageOptions:y,onPageChange:ee,onRowsPerPageChange:te,...w?.rowsPerPage!=null&&{labelRowsPerPage:w.rowsPerPage},...w?.displayedRows!=null&&{labelDisplayedRows:w.displayedRows},sx:{borderTop:e=>`1px solid ${e.palette.divider}`,"& .MuiTablePagination-displayedRows":{fontSize:`0.8rem`},"& .MuiTablePagination-selectLabel":{fontSize:`0.8rem`}}})]})}Object.freeze(Object.assign(Object.create(null),{btc:8,xmr:8})),Object.freeze(Object.assign(Object.create(null),{btc:8,xmr:12})),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 AM=(0,S.createContext)({}),jM=(0,S.createContext)(null);function MM(e,t){e.indexOf(t)===-1&&e.push(t)}function NM(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var PM=(e,t,n)=>n>t?t:n<e?e:n,FM={},IM=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),LM=e=>typeof e==`object`&&!!e,RM=e=>/^0[^.\s]+$/u.test(e);function zM(e){let t;return()=>(t===void 0&&(t=e()),t)}var BM=e=>e,VM=(...e)=>e.reduce((e,t)=>n=>t(e(n))),HM=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},UM=class{constructor(){this.subscriptions=[]}add(e){return MM(this.subscriptions,e),()=>NM(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}},WM=e=>e*1e3,GM=e=>e/1e3,KM=(e,t)=>t?1e3/t*e:0,qM=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,JM=1e-7,YM=12;function XM(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=qM(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>JM&&++s<YM);return o}function ZM(e,t,n,r){if(e===t&&n===r)return BM;let i=t=>XM(t,0,1,e,n);return e=>e===0||e===1?e:qM(i(e),t,r)}var QM=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,$M=e=>t=>1-e(1-t),eN=ZM(.33,1.53,.69,.99),tN=$M(eN),nN=QM(tN),rN=e=>e>=1?1:(e*=2)<1?.5*tN(e):.5*(2-2**(-10*(e-1))),iN=e=>1-Math.sin(Math.acos(e)),aN=$M(iN),oN=QM(iN),sN=ZM(.42,0,1,1),cN=ZM(0,0,.58,1),lN=ZM(.42,0,.58,1),uN=e=>Array.isArray(e)&&typeof e[0]!=`number`,dN=e=>Array.isArray(e)&&typeof e[0]==`number`,fN={linear:BM,easeIn:sN,easeInOut:lN,easeOut:cN,circIn:iN,circInOut:oN,circOut:aN,backIn:tN,backInOut:nN,backOut:eN,anticipate:rN},pN=e=>typeof e==`string`,mN=e=>{if(dN(e)){e.length;let[t,n,r,i]=e;return ZM(t,n,r,i)}return pN(e)?(fN[e],`${e}`,fN[e]):e},hN=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function gN(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var _N=40;function vN(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=hN.reduce((e,t)=>(e[t]=gN(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=FM.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,_N),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:hN.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<hN.length;t++)o[hN[t]].cancel(e)},state:i,steps:o}}var{schedule:yN,cancel:bN,state:xN,steps:SN}=vN(typeof requestAnimationFrame<`u`?requestAnimationFrame:BM,!0),CN;function wN(){CN=void 0}var TN={now:()=>(CN===void 0&&TN.set(xN.isProcessing||FM.useManualTiming?xN.timestamp:performance.now()),CN),set:e=>{CN=e,queueMicrotask(wN)}},EN=e=>t=>typeof t==`string`&&t.startsWith(e),DN=EN(`--`),ON=EN(`var(--`),kN=e=>ON(e)?AN.test(e.split(`/*`)[0].trim()):!1,AN=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function jN(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var MN={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},NN={...MN,transform:e=>PM(0,1,e)},PN={...MN,default:1},FN=e=>Math.round(e*1e5)/1e5,IN=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function LN(e){return e==null}var RN=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,zN=(e,t)=>n=>!!(typeof n==`string`&&RN.test(n)&&n.startsWith(e)||t&&!LN(n)&&Object.prototype.hasOwnProperty.call(n,t)),BN=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(IN);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},VN=e=>PM(0,255,e),HN={...MN,transform:e=>Math.round(VN(e))},UN={test:zN(`rgb`,`red`),parse:BN(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+HN.transform(e)+`, `+HN.transform(t)+`, `+HN.transform(n)+`, `+FN(NN.transform(r))+`)`};function WN(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 GN={test:zN(`#`),parse:WN,transform:UN.transform},KN=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),qN=KN(`deg`),JN=KN(`%`),YN=KN(`px`),XN=KN(`vh`),ZN=KN(`vw`),QN={...JN,parse:e=>JN.parse(e)/100,transform:e=>JN.transform(e*100)},$N={test:zN(`hsl`,`hue`),parse:BN(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+JN.transform(FN(t))+`, `+JN.transform(FN(n))+`, `+FN(NN.transform(r))+`)`},eP={test:e=>UN.test(e)||GN.test(e)||$N.test(e),parse:e=>UN.test(e)?UN.parse(e):$N.test(e)?$N.parse(e):GN.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?UN.transform(e):$N.transform(e),getAnimatableNone:e=>{let t=eP.parse(e);return t.alpha=0,eP.transform(t)}},tP=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function nP(e){return isNaN(e)&&typeof e==`string`&&(e.match(IN)?.length||0)+(e.match(tP)?.length||0)>0}var rP=`number`,iP=`color`,aP=`var`,oP=`var(`,sP="${}",cP=/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 lP(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(cP,e=>(eP.test(e)?(r.color.push(a),i.push(iP),n.push(eP.parse(e))):e.startsWith(oP)?(r.var.push(a),i.push(aP),n.push(e)):(r.number.push(a),i.push(rP),n.push(parseFloat(e))),++a,sP)).split(sP),indexes:r,types:i}}function uP(e){return lP(e).values}function dP({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];i+=e===rP?FN(r[a]):e===iP?eP.transform(r[a]):r[a]}return i}}function fP(e){return dP(lP(e))}var pP=e=>typeof e==`number`?0:eP.test(e)?eP.getAnimatableNone(e):e,mP=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:pP(e);function hP(e){let t=lP(e);return dP(t)(t.values.map((e,n)=>mP(e,t.split[n])))}var gP={test:nP,parse:uP,createTransformer:fP,getAnimatableNone:hP};function _P(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 vP({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=_P(s,r,e+1/3),a=_P(s,r,e),o=_P(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function yP(e,t){return n=>n>0?t:e}var bP=(e,t,n)=>e+(t-e)*n,xP=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},SP=[GN,UN,$N],CP=e=>SP.find(t=>t.test(e));function wP(e){let t=CP(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===$N&&(n=vP(n)),n}var TP=(e,t)=>{let n=wP(e),r=wP(t);if(!n||!r)return yP(e,t);let i={...n};return e=>(i.red=xP(n.red,r.red,e),i.green=xP(n.green,r.green,e),i.blue=xP(n.blue,r.blue,e),i.alpha=bP(n.alpha,r.alpha,e),UN.transform(i))},EP=new Set([`none`,`hidden`]);function DP(e,t){return EP.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function OP(e,t){return n=>bP(e,t,n)}function kP(e){return typeof e==`number`?OP:typeof e==`string`?kN(e)?yP:eP.test(e)?TP:NP:Array.isArray(e)?AP:typeof e==`object`?eP.test(e)?TP:jP:yP}function AP(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>kP(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function jP(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=kP(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function MP(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]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var NP=(e,t)=>{let n=gP.createTransformer(t),r=lP(e),i=lP(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?EP.has(e)&&!i.values.length||EP.has(t)&&!r.values.length?DP(e,t):VM(AP(MP(r,i),i.values),n):(`${e}${t}`,yP(e,t))};function PP(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?bP(e,t,n):kP(e)(e,t)}var FP=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>yN.update(t,e),stop:()=>bN(t),now:()=>xN.isProcessing?xN.timestamp:TN.now()}},IP=(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)})`},LP=2e4;function RP(e,t=50,n=LP,r){let i=0,a=e.next(i);for(r?.push(a.value);!a.done&&i<n;)i+=t,a=e.next(i),r?.push(a.value);return i>=n?1/0:i}function zP(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(RP(r),LP);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:GM(i)}}var BP={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 VP(e,t){return e*Math.sqrt(1-t*t)}var HP=12;function UP(e,t,n){let r=n;for(let n=1;n<HP;n++)r-=e(r)/t(r);return r}var WP=.001;function GP({duration:e=BP.duration,bounce:t=BP.bounce,velocity:n=BP.velocity,mass:r=BP.mass}){let i,a;BP.maxDuration;let o=1-t;o=PM(BP.minDamping,BP.maxDamping,o),e=PM(BP.minDuration,BP.maxDuration,GM(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=VP(t,o),c=Math.exp(-i);return WP-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o*o*t*t*e,c=Math.exp(-r),l=VP(t*t,o);return(-i(t)+WP>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=UP(i,a,s);if(e=WM(e),isNaN(c))return{stiffness:BP.stiffness,damping:BP.damping,duration:e};{let t=c*c*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var KP=[`duration`,`bounce`],qP=[`stiffness`,`damping`,`mass`];function JP(e,t){return t.some(t=>e[t]!==void 0)}function YP(e){let t={velocity:BP.velocity,stiffness:BP.stiffness,damping:BP.damping,mass:BP.mass,isResolvedFromDuration:!1,...e};if(!JP(e,qP)&&JP(e,KP)){if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*PM(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:BP.mass,stiffness:i,damping:a}}else{let n=GP({...e,velocity:0});t={...t,...n,mass:BP.mass},t.isResolvedFromDuration=!0}}return t}function XP(e=BP.visualDuration,t=BP.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}=YP({...n,velocity:-GM(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=GM(Math.sqrt(c/u)),v=h*_,y=Math.abs(g)<5;r||=y?BP.restSpeed.granular:BP.restSpeed.default,i||=y?BP.restDelta.granular:BP.restDelta.default;let b,x;if(h<1){let e=VP(_,h),t=(m+v*g)/e,n=v*t+g*e,r=v*g-t*e,i=-1,a=0,s=0,c=c=>{if(c!==i){i=c;let l=Math.exp(-v*c),u=Math.sin(e*c),d=Math.cos(e*c);a=o-l*(t*u+g*d),s=l*(n*u+r*d)}};b=e=>(c(e),a),x=e=>(c(e),s)}else if(h===1){b=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;x=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);b=t=>{let n=Math.exp(-v*t),r=Math.min(e*t,300);return o-n*((m+v*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+v*g)/e,n=v*t-g*e,r=v*g-t*e;x=t=>{let i=Math.exp(-v*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let S={calculatedDuration:p&&d||null,velocity:e=>WM(x(e)),next:e=>{let t=b(e);if(p)s.done=e>=d;else{let n=WM(x(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(RP(S),LP),t=IP(t=>S.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return S}XP.applyToOptions=e=>{let t=zP(e,100,XP);return e.ease=t.ease,e.duration=WM(t.duration),e.type=`keyframes`,e};function ZP({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=>e<s||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=>{let t=v(e);f.done=Math.abs(t)<=l,f.value=f.done?_:_+t},b,x,S=e=>{p(f.value)&&(b=e,x=XP({keyframes:[f.value,m(f.value)],velocity:-v(e)/r*1e3,damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return!x&&b===void 0&&(t=!0,y(e),S(e)),b!==void 0&&e>=b?x.next(e-b):(!t&&y(e),f)}}}function QP(e,t,n){let r=[],i=n||FM.mix||PP,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=VM(Array.isArray(t)?t[n]||BM:t,a)),r.push(a)}return r}function $P(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=QP(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=HM(e[r],e[r+1],n);return s[r](i)};return n?t=>l(PM(e[0],e[a-1],t)):l}function eF(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=HM(0,t,r);e.push(bP(n,1,i))}}function tF(e){let t=[0];return eF(t,e.length-1),t}function nF(e,t){return e.map(e=>e*t)}function rF(e,t){return e.map(()=>t||lN).splice(0,e.length-1)}function iF({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=uN(r)?r.map(mN):mN(r),a={done:!1,value:t[0]},o=$P(nF(n&&n.length===t.length?n:tF(t),e),t,{ease:Array.isArray(i)?i:rF(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var aF=5;function oF(e,t,n){let r=Math.max(t-aF,0);return KM(n-e(r),t-r)}var sF=e=>e!==null;function cF(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(sF),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var lF={decay:ZP,inertia:ZP,tween:iF,keyframes:iF,spring:XP};function uF(e){typeof e.type==`string`&&(e.type=lF[e.type])}var dF=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)}},fF=e=>e/100,pF=class extends dF{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!==TN.now()&&this.tick(TN.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;uF(e);let{type:t=iF,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||iF;s!==iF&&typeof o[0]!=`number`&&(this.mixKeyframes=VM(fF,PP(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=RP(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.currentTime=this.holdTime===null?t: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=PM(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!==ZP&&(b.value=cF(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 GM(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+GM(e)}get time(){return GM(this.currentTime)}set time(e){e=WM(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 oF(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(TN.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=GM(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=FP,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(TN.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}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 mF(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var hF=e=>e*180/Math.PI,gF=e=>vF(hF(Math.atan2(e[1],e[0]))),_F={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:gF,rotateZ:gF,skewX:e=>hF(Math.atan(e[1])),skewY:e=>hF(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},vF=e=>(e%=360,e<0&&(e+=360),e),yF=gF,bF=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),xF=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),SF={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:bF,scaleY:xF,scale:e=>(bF(e)+xF(e))/2,rotateX:e=>vF(hF(Math.atan2(e[6],e[5]))),rotateY:e=>vF(hF(Math.atan2(-e[2],e[0]))),rotateZ:yF,rotate:yF,skewX:e=>hF(Math.atan(e[4])),skewY:e=>hF(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function CF(e){return+!!e.includes(`scale`)}function wF(e,t){if(!e||e===`none`)return CF(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=SF,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=_F,i=t}if(!i)return CF(t);let a=r[t],o=i[1].split(`,`).map(EF);return typeof a==`function`?a(o):o[a]}var TF=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return wF(n,t)};function EF(e){return parseFloat(e.trim())}var DF=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],OF=new Set([...DF,`pathRotation`]),kF=e=>e===MN||e===YN,AF=new Set([`x`,`y`,`z`]),jF=DF.filter(e=>!AF.has(e));function MF(e){let t=[];return jF.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var NF={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})=>wF(t,`x`),y:(e,{transform:t})=>wF(t,`y`)};NF.translateX=NF.x,NF.translateY=NF.y;var PF=new Set,FF=!1,IF=!1,LF=!1;function RF(){if(IF){let e=Array.from(PF).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=MF(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)})}IF=!1,FF=!1,PF.forEach(e=>e.complete(LF)),PF.clear()}function zF(){PF.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(IF=!0)})}function BF(){LF=!0,zF(),RF(),LF=!1}var VF=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?(PF.add(this),FF||(FF=!0,yN.read(zF),yN.resolveKeyframes(RF))):(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])}mF(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),PF.delete(this)}cancel(){this.state===`scheduled`&&(PF.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},HF=e=>e.startsWith(`--`);function UF(e,t,n){HF(t)?e.style.setProperty(t,n):e.style[t]=n}var WF={};function GF(e,t){let n=zM(e);return()=>WF[t]??n()}var KF=GF(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),qF=GF(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),JF=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,YF={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:JF([0,.65,.55,1]),circOut:JF([.55,0,1,.45]),backIn:JF([.31,.01,.66,-.59]),backOut:JF([.33,1.53,.69,.99])};function XF(e,t){if(e)return typeof e==`function`?qF()?IP(e,t):`ease-out`:dN(e)?JF(e):Array.isArray(e)?e.map(e=>XF(e,t)||YF.easeOut):YF[e]}function ZF(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=XF(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function QF(e){return typeof e==`function`&&`applyToOptions`in e}function $F({type:e,...t}){return QF(e)&&qF()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var eI=class extends dF{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=$F(e);this.animation=ZF(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=cF(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),UF(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 GM(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+GM(e)}get time(){return GM(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=WM(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&&KF()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),BM):r(this)}},tI={anticipate:rN,backInOut:nN,circInOut:oN};function nI(e){return e in tI}function rI(e){typeof e.ease==`string`&&nI(e.ease)&&(e.ease=tI[e.ease])}var iI=10,aI=class extends eI{constructor(e){rI(e),uF(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 pF({...a,autoplay:!1}),s=Math.max(iI,TN.now()-this.startTime),c=PM(0,iI,s-iI),l=o.sample(s).value,{name:u}=this.options;i&&u&&UF(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},oI=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(gP.test(e)||e===`0`)&&!e.startsWith(`url(`));function sI(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 cI(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=oI(i,t),s=oI(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:sI(e)||(n===`spring`||QF(n))&&r}function lI(e){e.duration=0,e.type=`keyframes`}var uI=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),dI=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function fI(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&dI.test(e[t]))return!0;return!1}var pI=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),mI=zM(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function hI(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e,c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return mI()&&n&&(uI.has(n)||pI.has(n)&&fI(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var gI=40,_I=class extends dF{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=TN.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||VF;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=TN.now();let u=!0;cI(e,i,a,o)||(u=!1,(FM.instantAnimations||!s)&&l?.(cF(e,n,t)),e[0]=e[e.length-1],lI(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>gI?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&hI(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new aI({...d,element:p})}catch{m=new pF(d)}else m=new pF(d);m.finished.then(()=>{this.notifyFinished()}).catch(BM),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(),BF()),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 vI(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 yI=30,bI=e=>!isNaN(parseFloat(e)),xI={current:void 0},SI=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=TN.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=TN.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=bI(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 UM);let n=this.events[e].add(t);return e===`change`?()=>{n(),yN.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 xI.current&&xI.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=TN.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>yI)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,yI);return KM(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 CI(e,t){return new SI(e,t)}function wI(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function TI(e,t){let n=e?.[t]??e?.default??e;return n===e?n:wI(n,e)}var EI={type:`spring`,stiffness:500,damping:25,restSpeed:10},DI=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),OI={type:`keyframes`,duration:.8},kI={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},AI=(e,{keyframes:t})=>t.length>2?OI:OF.has(e)?e.startsWith(`scale`)?DI(t[1]):EI:kI,jI=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function MI(e){for(let t in e)if(!jI.has(t))return!0;return!1}var NI=(e,t,n,r={},i,a)=>o=>{let s=TI(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=WM(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};MI(s)||Object.assign(u,AI(e,u)),u.duration&&=WM(u.duration),u.repeatDelay&&=WM(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(lI(u),u.delay===0&&(d=!0)),(FM.instantAnimations||FM.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,lI(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=cF(u.keyframes,s);if(e!==void 0){yN.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new pF(u):new _I(u)},PI=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function FI(e){let t=PI.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function II(e,t,n=1){`${e}`;let[r,i]=FI(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return IM(e)?parseFloat(e):e}return kN(i)?II(i,t,n+1):i}function LI(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function RI(e,t,n,r){if(typeof t==`function`){let[i,a]=LI(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]=LI(r);t=t(n===void 0?e.custom:n,i,a)}return t}function zI(e,t,n){let r=e.getProps();return RI(r,t,n===void 0?r.custom:n,e)}var BI=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...DF]),VI=e=>Array.isArray(e);function HI(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,CI(n))}function UI(e){return VI(e)?e[e.length-1]||0:e}function WI(e,t){let{transitionEnd:n={},transition:r={},...i}=zI(e,t)||{};i={...i,...n};for(let t in i)HI(e,t,UI(i[t]))}var GI=e=>!!(e&&e.getVelocity);function KI(e){return!!(GI(e)&&e.add)}function qI(e,t){let n=e.getValue(`willChange`);if(KI(n))return n.add(t);if(!n&&FM.WillChange){let n=new FM.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function JI(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var YI=`data-`+JI(`framerAppearId`);function XI(e){return e.props[YI]}var ZI=typeof window<`u`;function QI({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function $I(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?wI(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&QI(f,t))continue;let o={delay:n,...TI(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){yN.update(()=>r.set(i));continue}let p=!1;if(ZI&&window.MotionHandoffAnimation){let n=XI(e);if(n){let e=window.MotionHandoffAnimation(n,t,yN);e!==null&&(o.startTime=e,p=!0)}}qI(e,t);let m=l??e.shouldReduceMotion;r.start(NI(t,r,i,m&&BI.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>yN.update(()=>{o&&WI(e,o)});d.length?Promise.all(d).then(t):t()}return d}function eL(e,t,n={}){let r=zI(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($I(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return tL(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())}return Promise.all([a(),o(n.delay)])}function tL(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(eL(c,t,{...o,delay:n+(typeof r==`function`?0:r)+vI(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function Pne(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>eL(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=eL(e,t,n);else{let i=typeof t==`function`?zI(e,t,n.custom):t;r=Promise.all($I(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var Fne={test:e=>e===`auto`,parse:e=>e},nL=e=>t=>t.test(e),rL=[MN,YN,JN,qN,ZN,XN,Fne],iL=e=>rL.find(nL(e));function Ine(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||RM(e)}var Lne=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Rne(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(IN)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Lne.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var zne=/\b([a-z-]*)\(.*?\)/gu,aL={...gP,getAnimatableNone:e=>{let t=e.match(zne);return t?t.map(Rne).join(` `):e}},oL={...gP,getAnimatableNone:e=>{let t=gP.parse(e);return gP.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},sL={...MN,transform:Math.round},cL={borderWidth:YN,borderTopWidth:YN,borderRightWidth:YN,borderBottomWidth:YN,borderLeftWidth:YN,borderRadius:YN,borderTopLeftRadius:YN,borderTopRightRadius:YN,borderBottomRightRadius:YN,borderBottomLeftRadius:YN,width:YN,maxWidth:YN,height:YN,maxHeight:YN,top:YN,right:YN,bottom:YN,left:YN,inset:YN,insetBlock:YN,insetBlockStart:YN,insetBlockEnd:YN,insetInline:YN,insetInlineStart:YN,insetInlineEnd:YN,padding:YN,paddingTop:YN,paddingRight:YN,paddingBottom:YN,paddingLeft:YN,paddingBlock:YN,paddingBlockStart:YN,paddingBlockEnd:YN,paddingInline:YN,paddingInlineStart:YN,paddingInlineEnd:YN,margin:YN,marginTop:YN,marginRight:YN,marginBottom:YN,marginLeft:YN,marginBlock:YN,marginBlockStart:YN,marginBlockEnd:YN,marginInline:YN,marginInlineStart:YN,marginInlineEnd:YN,fontSize:YN,backgroundPositionX:YN,backgroundPositionY:YN,rotate:qN,pathRotation:qN,rotateX:qN,rotateY:qN,rotateZ:qN,scale:PN,scaleX:PN,scaleY:PN,scaleZ:PN,skew:qN,skewX:qN,skewY:qN,distance:YN,translateX:YN,translateY:YN,translateZ:YN,x:YN,y:YN,z:YN,perspective:YN,transformPerspective:YN,opacity:NN,originX:QN,originY:QN,originZ:YN,zIndex:sL,fillOpacity:NN,strokeOpacity:NN,numOctaves:sL},Bne={...cL,color:eP,backgroundColor:eP,outlineColor:eP,fill:eP,stroke:eP,borderColor:eP,borderTopColor:eP,borderRightColor:eP,borderBottomColor:eP,borderLeftColor:eP,filter:aL,WebkitFilter:aL,mask:oL,WebkitMask:oL},lL=e=>Bne[e],Vne=new Set([aL,oL]);function uL(e,t){let n=lL(e);return Vne.has(n)||(n=gP),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Hne=new Set([`auto`,`none`,`0`]);function Une(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Hne.has(t)&&lP(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=uL(n,i)}var Wne=class extends VF{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(),kN(r))){let i=II(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!BI.has(n)||e.length!==2)return;let[r,i]=e,a=iL(r),o=iL(i);if(jN(r)!==jN(i)&&NF[n]){this.needsMeasurement=!0;return}if(a!==o){if(kF(a)&&kF(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else NF[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Ine(e[t]))&&n.push(t);n.length&&Une(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=NF[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]=NF[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()}},dL=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function fL(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 pL=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Gne(e){return LM(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:mL,cancel:Kne}=vN(queueMicrotask,!1),hL={x:!1,y:!1};function gL(){return hL.x||hL.y}function qne(e){return e===`x`||e===`y`?hL[e]?null:(hL[e]=!0,()=>{hL[e]=!1}):hL.x||hL.y?null:(hL.x=hL.y=!0,()=>{hL.x=hL.y=!1})}function _L(e,t){let n=fL(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Jne(e){return!(e.pointerType===`touch`||gL())}function Yne(e,t,n={}){let[r,i,a]=_L(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(!Jne(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 vL=(e,t)=>t?e===t||vL(e,t.parentElement):!1,yL=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Xne=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Zne(e){return Xne.has(e.tagName)||e.isContentEditable===!0}var Qne=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function $ne(e){return Qne.has(e.tagName)||e.isContentEditable===!0}var bL=new WeakSet;function xL(e){return t=>{t.key===`Enter`&&e(t)}}function SL(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var ere=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=xL(()=>{if(bL.has(n))return;SL(n,`down`);let e=xL(()=>{SL(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>SL(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function CL(e){return yL(e)&&!gL()}var wL=new WeakSet;function tre(e,t,n={}){let[r,i,a]=_L(e,n),o=e=>{let r=e.currentTarget;if(!CL(e)||wL.has(e))return;bL.add(r),n.stopPropagation&&wL.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),bL.has(r)&&bL.delete(r),CL(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||vL(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Gne(e)&&(e.addEventListener(`focus`,e=>ere(e,i)),!Zne(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function TL(e){return LM(e)&&`ownerSVGElement`in e}var EL=new WeakMap,DL,OL=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:TL(r)&&`getBBox`in r?r.getBBox()[t]:r[n],nre=OL(`inline`,`width`,`offsetWidth`),rre=OL(`block`,`height`,`offsetHeight`);function ire({target:e,borderBoxSize:t}){EL.get(e)?.forEach(n=>{n(e,{get width(){return nre(e,t)},get height(){return rre(e,t)}})})}function are(e){e.forEach(ire)}function ore(){typeof ResizeObserver>`u`||(DL=new ResizeObserver(are))}function sre(e,t){DL||ore();let n=fL(e);return n.forEach(e=>{let n=EL.get(e);n||(n=new Set,EL.set(e,n)),n.add(t),DL?.observe(e)}),()=>{n.forEach(e=>{let n=EL.get(e);n?.delete(t),n?.size||DL?.unobserve(e)})}}var kL=new Set,AL;function cre(){AL=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};kL.forEach(t=>t(e))},window.addEventListener(`resize`,AL)}function lre(e){return kL.add(e),AL||cre(),()=>{kL.delete(e),!kL.size&&typeof AL==`function`&&(window.removeEventListener(`resize`,AL),AL=void 0)}}function jL(e,t){return typeof e==`function`?lre(e):sre(e,t)}var ML={value:null,addProjectionMetrics:null};function ure(e){return TL(e)&&e.tagName===`svg`}var dre=[...rL,eP,gP],fre=e=>dre.find(nL(e)),NL=()=>({translate:0,scale:1,origin:0,originPoint:0}),PL=()=>({x:NL(),y:NL()}),FL=()=>({min:0,max:0}),IL=()=>({x:FL(),y:FL()}),pre=new WeakMap;function LL(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function RL(e){return typeof e==`string`||Array.isArray(e)}var zL=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],BL=[`initial`,...zL];function VL(e){return LL(e.animate)||BL.some(t=>RL(e[t]))}function mre(e){return!!(VL(e)||e.variants)}function hre(e,t,n){for(let r in t){let i=t[r],a=n[r];if(GI(i))e.addValue(r,i);else if(GI(a))e.addValue(r,CI(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,CI(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var HL={current:null},UL={current:!1},gre=typeof window<`u`;function _re(){if(UL.current=!0,gre){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>HL.current=e.matches;e.addEventListener(`change`,t),t()}else HL.current=!1}}var WL=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],GL={};function KL(e){GL=e}function vre(){return GL}var yre=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=VF,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=TN.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,yN.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=VL(t),this.isVariantNode=mre(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&&GI(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,pre.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:(UL.current||_re(),this.shouldReduceMotion=HL.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(),bN(this.notifyUpdate),bN(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&&uI.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new eI({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:WM(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=OF.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&yN.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()})}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 GL){let t=GL[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):IL()}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<WL.length;t++){let n=WL[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=hre(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=CI(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`&&(IM(n)||RM(n))?n=parseFloat(n):!fre(n)&&gP.test(t)&&(n=uL(e,t)),this.setBaseTarget(e,GI(n)?n.get():n)),GI(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=RI(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&&!GI(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 UM),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){mL.render(this.render)}},qL=class extends yre{constructor(){super(...arguments),this.KeyframeResolver=Wne}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;GI(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},JL=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function YL({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function bre({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function xre(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 XL(e){return e===void 0||e===1}function ZL({scale:e,scaleX:t,scaleY:n}){return!XL(e)||!XL(t)||!XL(n)}function QL(e){return ZL(e)||$L(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function $L(e){return eR(e.x)||eR(e.y)}function eR(e){return e&&e!==`0%`}function tR(e,t,n){return n+t*(e-n)}function nR(e,t,n,r,i){return i!==void 0&&(e=tR(e,i,r)),tR(e,n,r)+t}function rR(e,t=0,n=1,r,i){e.min=nR(e.min,t,n,r,i),e.max=nR(e.max,t,n,r,i)}function iR(e,{x:t,y:n}){rR(e.x,t.translate,t.scale,t.originPoint),rR(e.y,n.translate,n.scale,n.originPoint)}var aR=.999999999999,oR=1.0000000000001;function Sre(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&&(sR(e.x,-a.scroll.offset.x),sR(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,iR(e,o)),r&&QL(a.latestValues)&&uR(e,a.latestValues,a.layout?.layoutBox))}t.x<oR&&t.x>aR&&(t.x=1),t.y<oR&&t.y>aR&&(t.y=1)}function sR(e,t){e.min+=t,e.max+=t}function cR(e,t,n,r,i=.5){rR(e,t,n,bP(e.min,e.max,i),r)}function lR(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function uR(e,t,n){let r=n??e;cR(e.x,lR(t.x,r.x),t.scaleX,t.scale,t.originX),cR(e.y,lR(t.y,r.y),t.scaleY,t.scale,t.originY)}function dR(e,t){return YL(xre(e.getBoundingClientRect(),t))}function Cre(e,t,n){let r=dR(e,n),{scroll:i}=t;return i&&(sR(r.x,i.offset.x),sR(r.y,i.offset.y)),r}var wre={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Tre=DF.length;function Ere(e,t,n){let r=``,i=!0;for(let a=0;a<Tre;a++){let o=DF[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=pL(s,cL[o]);if(!c){i=!1;let t=wre[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${pL(a,cL.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function fR(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(OF.has(e)){o=!0;continue}if(DN(e)){i[e]=n;continue}{let t=pL(n,cL[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Ere(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 pR(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 mR(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var hR={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(YN.test(e))e=parseFloat(e);else return e}return`${mR(e,t.target.x)}% ${mR(e,t.target.y)}%`}},gR={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=gP.parse(e);if(i.length>5)return r;let a=gP.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=bP(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},_R={borderRadius:{...hR,applyTo:[...dL]},borderTopLeftRadius:hR,borderTopRightRadius:hR,borderBottomLeftRadius:hR,borderBottomRightRadius:hR,boxShadow:gR};function vR(e,{layout:t,layoutId:n}){return OF.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!_R[e]||e===`opacity`)}function yR(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(GI(r[t])||i&&GI(i[t])||vR(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function bR(e){return window.getComputedStyle(e)}var xR=class extends qL{constructor(){super(...arguments),this.type=`html`,this.renderInstance=pR}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(OF.has(t))return this.projection?.isProjecting?CF(t):TF(e,t);{let n=bR(e),r=(DN(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return dR(e,t)}build(e,t,n){fR(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return yR(e,t,n)}},SR={offset:`stroke-dashoffset`,array:`stroke-dasharray`},CR={offset:`strokeDashoffset`,array:`strokeDasharray`};function wR(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?SR:CR;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var TR=[`transform`,`opacity`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function ER(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(fR(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;for(let e of TR)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&wR(d,i,a,o,!1)}var DR=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`]),OR=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function kR(e,t,n,r){pR(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(DR.has(n)?n:JI(n),t.attrs[n])}function AR(e,t,n){let r=yR(e,t,n);for(let n in e)if(GI(e[n])||GI(t[n])){let t=DF.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var jR=class extends qL{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=IL}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(OF.has(t)){let e=lL(t);return e&&e.default||0}if(TR.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=DR.has(t)?t:JI(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return AR(e,t,n)}build(e,t,n){ER(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){kR(e,t,n,r)}mount(e){this.isSVGTag=OR(e.tagName),super.mount(e)}},MR=BL.length;function NR(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&NR(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<MR;n++){let r=BL[n],i=e.props[r];(RL(i)||i===!1)&&(t[r]=i)}return t}function PR(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 FR=[...zL].reverse(),IR=zL.length;function LR(e){return t=>Promise.all(t.map(({animation:t,options:n})=>Pne(e,t,n)))}function RR(e){let t=LR(e),n=VR(),r=!0,i=!1,a=t=>(n,r)=>{let i=zI(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=NR(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<IR;t++){let p=FR[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=RL(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||LL(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=zR(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=VI(t)&&VI(n)?!PR(t,n)||y: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=zI(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=vI(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=zI(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=VR(),i=!0}}}function zR(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!PR(t,e):!1}function BR(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function VR(){return{animate:BR(!0),whileInView:BR(),whileHover:BR(),whileTap:BR(),whileDrag:BR(),whileFocus:BR(),exit:BR()}}function HR(e,t){e.min=t.min,e.max=t.max}function UR(e,t){HR(e.x,t.x),HR(e.y,t.y)}function WR(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var GR=.9999,KR=1.0001,qR=-.01,JR=.01;function YR(e){return e.max-e.min}function XR(e,t,n){return Math.abs(e-t)<=n}function ZR(e,t,n,r=.5){e.origin=r,e.originPoint=bP(t.min,t.max,e.origin),e.scale=YR(n)/YR(t),e.translate=bP(n.min,n.max,e.origin)-e.originPoint,(e.scale>=GR&&e.scale<=KR||isNaN(e.scale))&&(e.scale=1),(e.translate>=qR&&e.translate<=JR||isNaN(e.translate))&&(e.translate=0)}function QR(e,t,n,r){ZR(e.x,t.x,n.x,r?r.originX:void 0),ZR(e.y,t.y,n.y,r?r.originY:void 0)}function $R(e,t,n,r=0){e.min=(r?bP(n.min,n.max,r):n.min)+t.min,e.max=e.min+YR(t)}function ez(e,t,n,r){$R(e.x,t.x,n.x,r?.x),$R(e.y,t.y,n.y,r?.y)}function tz(e,t,n,r=0){let i=r?bP(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+YR(t)}function nz(e,t,n,r){tz(e.x,t.x,n.x,r?.x),tz(e.y,t.y,n.y,r?.y)}function rz(e,t,n,r,i){return e-=t,e=tR(e,1/n,r),i!==void 0&&(e=tR(e,1/i,r)),e}function iz(e,t=0,n=1,r=.5,i,a=e,o=e){if(JN.test(t)&&(t=parseFloat(t),t=bP(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=bP(a.min,a.max,r);e===a&&(s-=t),e.min=rz(e.min,t,n,s,i),e.max=rz(e.max,t,n,s,i)}function az(e,t,[n,r,i],a,o){iz(e,t[n],t[r],t[i],t.scale,a,o)}var oz=[`x`,`scaleX`,`originX`],sz=[`y`,`scaleY`,`originY`];function cz(e,t,n,r){az(e.x,t,oz,n?n.x:void 0,r?r.x:void 0),az(e.y,t,sz,n?n.y:void 0,r?r.y:void 0)}function lz(e){return e.translate===0&&e.scale===1}function uz(e){return lz(e.x)&&lz(e.y)}function dz(e,t){return e.min===t.min&&e.max===t.max}function fz(e,t){return dz(e.x,t.x)&&dz(e.y,t.y)}function pz(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function mz(e,t){return pz(e.x,t.x)&&pz(e.y,t.y)}function hz(e){return YR(e.x)/YR(e.y)}function gz(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function _z(e){return[e(`x`),e(`y`)]}function vz(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,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}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 yz=dL.length,bz=e=>typeof e==`string`?parseFloat(e):e,xz=e=>typeof e==`number`||YN.test(e);function Sz(e,t,n,r,i,a){i?(e.opacity=bP(0,n.opacity??1,wz(r)),e.opacityExit=bP(t.opacity??1,0,Tz(r))):a&&(e.opacity=bP(t.opacity??1,n.opacity??1,r));for(let i=0;i<yz;i++){let a=dL[i],o=Cz(t,a),s=Cz(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||xz(o)===xz(s)?(e[a]=Math.max(bP(bz(o),bz(s),r),0),(JN.test(s)||JN.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=bP(t.rotate||0,n.rotate||0,r))}function Cz(e,t){return e[t]===void 0?e.borderRadius:e[t]}var wz=Ez(0,.5,aN),Tz=Ez(.5,.95,BM);function Ez(e,t,n){return r=>r<e?0:r>t?1:n(HM(e,t,r))}function Dz(e,t,n){let r=GI(e)?e:CI(e);return r.start(NI(``,r,t,n)),r.animation}function Oz(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var kz=(e,t)=>e.depth-t.depth,Az=class{constructor(){this.children=[],this.isDirty=!1}add(e){MM(this.children,e),this.isDirty=!0}remove(e){NM(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(kz),this.isDirty=!1,this.children.forEach(e)}};function jz(e,t){let n=TN.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(bN(r),e(a-t))};return yN.setup(r,!0),()=>bN(r)}function Mz(e){return GI(e)?e.get():e}var Nz=class{constructor(){this.members=[]}add(e){MM(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&&(NM(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(NM(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)}},Pz={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Fz={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Iz=[``,`X`,`Y`,`Z`],Lz=1e3,Rz=0;function zz(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Bz(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=XI(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,yN,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Bz(r)}function Vz({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Rz++,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,ML.value&&(Fz.nodes=Fz.calculatedTargetDeltas=Fz.calculatedProjections=0),this.nodes.forEach(Wz),this.nodes.forEach($z),this.nodes.forEach(eB),this.nodes.forEach(Gz),ML.addProjectionMetrics&&ML.addProjectionMetrics(Fz)},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 Az)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new UM),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=TL(t)&&!ure(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;yN.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=jz(i,250),Pz.hasAnimatedSinceResize&&(Pz.hasAnimatedSinceResize=!1,this.nodes.forEach(Qz)))})}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()||sB,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!mz(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={...TI(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||Qz(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(),bN(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(tB),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&&Bz(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(Jz),this.nodes.forEach(qz);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Yz);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Xz),this.nodes.forEach(Zz),this.nodes.forEach(Hz),this.nodes.forEach(Uz)):this.nodes.forEach(Yz),this.clearAllSnapshots();let e=TN.now();xN.delta=PM(0,1e3/60,e-xN.timestamp),xN.timestamp=e,xN.isProcessing=!0,SN.update.process(xN),SN.preRender.process(xN),SN.render.process(xN),xN.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,mL.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Kz),this.sharedNodes.forEach(nB)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,yN.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){yN.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!YR(this.snapshot.measuredBox.x)&&!YR(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||=IL(),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&&!uz(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||QL(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)),dB(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return IL();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(pB))){let{scroll:e}=this.root;e&&(sR(t.x,e.offset.x),sR(t.y,e.offset.y))}return t}removeElementScroll(e){let t=IL();if(UR(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&&UR(t,e),sR(t.x,i.offset.x),sR(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||IL();UR(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&&(sR(r.x,-n.scroll.offset.x),sR(r.y,-n.scroll.offset.y)),QL(n.latestValues)&&uR(r,n.latestValues,n.layout?.layoutBox)}return QL(this.latestValues)&&uR(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=IL();UR(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!QL(n.latestValues))continue;let r;n.instance&&(ZL(n.latestValues)&&n.updateSnapshot(),r=IL(),UR(r,n.measurePageBox())),cz(t,n.latestValues,n.snapshot?.layoutBox,r)}return QL(this.latestValues)&&cz(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||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!==xN.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=xN.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=IL(),this.targetWithTransforms=IL()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ez(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):UR(this.target,this.layout.layoutBox),iR(this.target,this.targetDelta)):UR(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),ML.value&&Fz.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||ZL(this.parent.latestValues)||$L(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=IL(),this.relativeTargetOrigin=IL(),nz(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),UR(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===xN.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;UR(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Sre(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=IL());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(WR(this.prevProjectionDelta.x,this.projectionDelta.x),WR(this.prevProjectionDelta.y,this.projectionDelta.y)),QR(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!gz(this.projectionDelta.x,this.prevProjectionDelta.x)||!gz(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),ML.value&&Fz.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=PL(),this.projectionDelta=PL(),this.projectionDeltaWithTransform=PL()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=PL();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=IL(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!(!c||u||this.options.crossfade!==!0||this.path.some(oB));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=bP(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=bP(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(rB(o.x,e.x,n),rB(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(nz(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),aB(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&fz(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=IL(),UR(f,this.relativeTarget)),c&&(this.animationValues=a,Sz(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),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&&=(bN(this.pendingAnimation),void 0),this.pendingAnimation=yN.update(()=>{Pz.hasAnimatedSinceResize=!0,this.motionValue||=CI(0),this.motionValue.jump(0,!1),this.currentAnimation=Dz(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{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(Lz),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&&fB(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||IL();let t=YR(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=YR(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}UR(t,n),uR(t,i),QR(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Nz),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}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&&zz(`z`,e,r,this.animationValues);for(let t=0;t<Iz.length;t++)zz(`rotate${Iz[t]}`,e,r,this.animationValues),zz(`skew${Iz[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=Mz(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=Mz(t?.pointerEvents)||``),this.hasProjected&&!QL(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=vz(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`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in _R){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=_R[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?Mz(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(qz),this.root.sharedNodes.clear()}}}function Hz(e){e.updateLayout()}function Uz(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`)_z(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=YR(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;HR(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else fB(i,t.layoutBox,n)&&_z(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=YR(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=PL();QR(o,n,t.layoutBox);let s=PL();a?QR(s,e.applyTransform(r,!0),t.measuredBox):QR(s,n,t.layoutBox);let c=!uz(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=IL();nz(s,t.layoutBox,i.layoutBox,o);let c=IL();nz(c,n,a.layoutBox,o),mz(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 Wz(e){ML.value&&Fz.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 Gz(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Kz(e){e.clearSnapshot()}function qz(e){e.clearMeasurements()}function Jz(e){e.isLayoutDirty=!0,e.updateLayout()}function Yz(e){e.isLayoutDirty=!1}function Xz(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Zz(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Qz(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function $z(e){e.resolveTargetDelta()}function eB(e){e.calcProjection()}function tB(e){e.resetSkewAndRotation()}function nB(e){e.removeLeadSnapshot()}function rB(e,t,n){e.translate=bP(t.translate,0,n),e.scale=bP(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function iB(e,t,n,r){e.min=bP(t.min,n.min,r),e.max=bP(t.max,n.max,r)}function aB(e,t,n,r){iB(e.x,t.x,n.x,r),iB(e.y,t.y,n.y,r)}function oB(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var sB={duration:.45,ease:[.4,0,.1,1]},cB=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),lB=cB(`applewebkit/`)&&!cB(`chrome/`)?Math.round:BM;function uB(e){e.min=lB(e.min),e.max=lB(e.max)}function dB(e){uB(e.x),uB(e.y)}function fB(e,t,n){return e===`position`||e===`preserve-aspect`&&!XR(hz(t),hz(n),.2)}function pB(e){return e!==e.root&&e.scroll?.wasRoot}var mB=Vz({attachResizeListener:(e,t)=>Oz(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),hB={current:void 0},gB=Vz({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!hB.current){let e=new mB({});e.mount(window),e.setOptions({layoutScroll:!0}),hB.current=e}return hB.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`});function _B(e=!0){let t=(0,S.useContext)(jM);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,S.useId)();(0,S.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,S.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var vB=(0,S.createContext)({strict:!1}),yB={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`]},bB=!1;function xB(){if(bB)return;let e={};for(let t in yB)e[t]={isEnabled:e=>yB[t].some(t=>!!e[t])};KL(e),bB=!0}function SB(){return xB(),vre()}function CB(e){let t=SB();for(let n in e)t[n]={...t[n],...e[n]};KL(t)}function wB({children:e,features:t,strict:n=!1}){let[,r]=(0,S.useState)(!TB(t)),i=(0,S.useRef)(void 0);if(!TB(t)){let{renderer:e,...n}=t;i.current=e,CB(n)}return(0,S.useEffect)(()=>{TB(t)&&t().then(({renderer:e,...t})=>{CB(t),i.current=e,r(!0)})},[]),(0,z.jsx)(vB.Provider,{value:{renderer:i.current,strict:n},children:e})}function TB(e){return typeof e==`function`}var EB=[`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 DB(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(EB.indexOf(e)>-1||/[A-Z]/u.test(e))}var OB=(0,S.createContext)({});function kB(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}var AB=(e,t)=>t.isSVG??DB(e)?new jR(t):new xR(t,{allowProjection:e!==S.Fragment}),jB=class extends JL{constructor(e){super(e),e.animationState||=RR(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();LL(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?.()}},MB=0,NB={animation:{Feature:jB},exit:{Feature:class extends JL{constructor(){super(...arguments),this.id=MB++,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`||typeof e==`object`&&e&&!Array.isArray(e)){let n=zI(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 PB(e){return{point:{x:e.pageX,y:e.pageY}}}var FB=e=>t=>yL(t)&&e(t,PB(t));function IB(e,t,n,r){return Oz(e,t,FB(n),r)}var LB=({current:e})=>e?e.ownerDocument.defaultView:null,RB=(e,t)=>Math.abs(e-t);function zB(e,t){let n=RB(e.x,t.x),r=RB(e.y,t.y);return Math.sqrt(n**2+r**2)}var BB=new Set([`auto`,`scroll`]),VB=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=HB(this.lastRawMoveEventInfo,this.transformPagePoint));let e=WB(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=zB(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=xN;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=HB(t,this.transformPagePoint),yN.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=WB(e.type===`pointercancel`?this.lastMoveEventInfo:HB(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!yL(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=HB(PB(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=xN;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,WB(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=VM(IB(this.contextWindow,`pointermove`,this.handlePointerMove,d),IB(this.contextWindow,`pointerup`,this.handlePointerUp,d),IB(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(BB.has(e.overflowX)||BB.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),yN.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),bN(this.updatePoint)}};function HB(e,t){return t?{point:t(e.point)}:e}function UB(e,t){return{x:e.x-t.x,y:e.y-t.y}}function WB({point:e},t){return{point:e,delta:UB(e,KB(t)),offset:UB(e,GB(t)),velocity:qB(t,.1)}}function GB(e){return e[0]}function KB(e){return e[e.length-1]}function qB(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=KB(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>WM(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>WM(t)*2&&(r=e[1]);let a=GM(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 JB(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?bP(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?bP(n,e,r.max):Math.min(e,n)),e}function YB(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 XB(e,{top:t,left:n,bottom:r,right:i}){return{x:YB(e.x,n,i),y:YB(e.y,t,r)}}function ZB(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 QB(e,t){return{x:ZB(e.x,t.x),y:ZB(e.y,t.y)}}function $B(e,t){let n=.5,r=YR(e),i=YR(t);return i>r?n=HM(t.min,t.max-r,e.min):r>i&&(n=HM(e.min,e.max-i,t.min)),PM(0,1,n)}function eV(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 tV=.35;function nV(e=tV){return e===!1?e=0:e===!0&&(e=tV),{x:rV(e,`left`,`right`),y:rV(e,`top`,`bottom`)}}function rV(e,t,n){return{min:iV(e,t),max:iV(e,n)}}function iV(e,t){return typeof e==`number`?e:e[t]||0}var aV=new WeakMap,oV=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=IL(),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(PB(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=qne(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),_z(e=>{let t=this.getAxisMotionValue(e).get()||0;if(JN.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=YR(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&yN.update(()=>i(e,t),!1,!0),qI(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=uV(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&&yN.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 VB(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:LB(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&&yN.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||!lV(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=JB(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&&kB(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?XB(n.layoutBox,e):!1,this.elastic=nV(t),r!==this.constraints&&!kB(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&_z(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=eV(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!kB(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=Cre(n,r.root,this.visualElement.getTransformPagePoint()),a=QB(r.layout.layoutBox,i);if(t){let e=t(bre(a));this.hasMutatedConstraints=!!e,e&&(a=YL(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=_z(o=>{if(!lV(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 qI(this.visualElement,e),n.start(NI(e,n,0,t,this.visualElement,!1))}stopAnimation(){_z(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){_z(t=>{let{drag:n}=this.getProps();if(!lV(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]-bP(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!kB(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};_z(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=$B({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(),_z(t=>{if(!lV(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(bP(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;aV.set(this.visualElement,this);let e=this.visualElement.current,t=IB(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&$ne(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();kB(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=cV(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),yN.read(r);let o=Oz(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(_z(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=tV,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function sV(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function cV(e,t,n){let r=jL(e,sV(n)),i=jL(t,sV(n));return()=>{r(),i()}}function lV(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function uV(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var dV=class extends JL{constructor(e){super(e),this.removeGroupControls=BM,this.removeListeners=BM,this.controls=new oV(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||BM}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()}},fV=e=>(t,n)=>{e&&yN.update(()=>e(t,n),!1,!0)},pV=class extends JL{constructor(){super(...arguments),this.removePointerDownListener=BM}onPointerDown(e){this.session=new VB(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:LB(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:fV(e),onStart:fV(t),onMove:fV(n),onEnd:(e,t)=>{delete this.session,r&&yN.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=IB(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},mV=!1,hV=class extends S.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),mV&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Pz.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}),mV=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||yN.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(),mL.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;mV=!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 gV(e){let[t,n]=_B(),r=(0,S.useContext)(AM);return(0,z.jsx)(hV,{...e,layoutGroup:r,switchLayoutGroup:(0,S.useContext)(OB),isPresent:t,safeToRemove:n})}var _V={pan:{Feature:pV},drag:{Feature:dV,ProjectionNode:gB,MeasureLayout:gV}};function vV(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&yN.postRender(()=>i(t,PB(t)))}var yV=class extends JL{mount(){let{current:e}=this.node;e&&(this.unmount=Yne(e,(e,t)=>(vV(this.node,t,`Start`),e=>vV(this.node,e,`End`))))}unmount(){}},bV=class extends JL{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=VM(Oz(this.node.current,`focus`,()=>this.onFocus()),Oz(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function xV(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&&yN.postRender(()=>i(t,PB(t)))}var SV=class extends JL{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=tre(e,(e,t)=>(xV(this.node,t,`Start`),(e,{success:t})=>xV(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},CV=new WeakMap,wV=new WeakMap,TV=e=>{let t=CV.get(e.target);t&&t(e)},EV=e=>{e.forEach(TV)};function DV({root:e,...t}){let n=e||document;wV.has(n)||wV.set(n,{});let r=wV.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(EV,{root:e,...t})),r[i]}function OV(e,t,n){let r=DV(t);return CV.set(e,n),r.observe(e),()=>{CV.delete(e),r.unobserve(e)}}var kV={some:0,all:1},AV=class extends JL{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:kV[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=OV(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(jV(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function jV({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var MV={inView:{Feature:AV},tap:{Feature:SV},focus:{Feature:bV},hover:{Feature:yV}},NV={layout:{ProjectionNode:gB,MeasureLayout:gV}},PV={renderer:AB,...NB,...MV,..._V,...NV},FV=`prism`;function IV(e){return`${FV}__${e}`}function LV(e,t){return t?t.reduce((t,n)=>(t[n]=IV(`${e}__${n}`),t),{}):t=>IV(`${e}__${t}`)}IV(`animate__border__root`),IV(`animate__border__primary`),IV(`animate__border__secondary`),IV(`animate__border__svg__wrapper`),IV(`animate__border__moving__shape`);function RV({children:e}){return(0,z.jsx)(wB,{strict:!0,features:PV,children:e})}var zV={xs:24,sm:32,md:40,lg:56,xl:80},BV={xs:10,sm:12,md:14,lg:20,xl:28};K(iT,{shouldForwardProp:e=>e!==`ownerState`})(({theme:e,ownerState:t})=>{let{size:n,shape:r,hasImage:i,bgColor:a}=t,o=zV[n],s=BV[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)}}}),K(xT,{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}}}}}});var VV=K(IT,{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:U(e.palette.grey[500],.08)};return{position:`relative`,borderRadius:r*2,...n===`soft`&&i,...n===`outlined`&&{boxShadow:`none`}}});function HV({variant:e=`elevation`,title:t,subheader:n,headerAction:r,headerSx:i,contentSx:a,actions:o,actionsSx:s,disablePadding:c,children:l,sx:u,ref:d,...f}){let p={variant:e},m=t||n||r;return(0,z.jsxs)(VV,{ref:d,ownerState:p,variant:e===`outlined`?`outlined`:`elevation`,sx:u,...f,children:[m&&(0,z.jsx)(BT,{title:t,subheader:n,action:r,sx:i}),l&&(0,z.jsx)(RT,{sx:{...c&&{p:0,"&:last-child":{pb:0}},...a},children:l}),o&&(0,z.jsx)(LT,{sx:s,children:o})]})}function UV({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,z.jsx)(HV,{variant:s,contentSx:{p:2,"&:last-child":{pb:2}},sx:c,...l,children:(0,z.jsxs)(Z,{sx:{display:`flex`,justifyContent:`space-between`,alignItems:`flex-start`},children:[(0,z.jsx)(Z,{children:a?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(NO,{width:80,height:16}),(0,z.jsx)(NO,{width:50,height:32,sx:{mt:.5}})]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(oy,{variant:`caption`,sx:{fontWeight:600,color:`text.secondary`,textTransform:`uppercase`,letterSpacing:.5},children:e}),(0,z.jsx)(oy,{variant:`h4`,sx:{fontWeight:700,color:`${i}.main`,mt:.5},children:t}),n!==void 0&&(0,z.jsxs)(oy,{variant:`caption`,color:u?`success.main`:d?`error.main`:`text.secondary`,sx:{fontWeight:500,mt:.5,display:`block`},children:[u?`+`:``,n,`%`]}),o&&(0,z.jsx)(oy,{variant:`caption`,sx:{color:`text.secondary`},children:o})]})}),r&&!a&&(0,z.jsx)(Z,{sx:{color:`${i}.main`},children:r})]})})}function WV({open:e,onClose:t,onConfirm:n,title:r=`Confirm`,content:i,confirmLabel:a=`Confirm`,cancelLabel:o=`Cancel`,confirmColor:s=`primary`,loading:c=!1,disabled:l=!1,maxWidth:u=`xs`,sx:d}){let f=(0,S.useId)(),p=(0,S.useId)(),[m,h]=(0,S.useState)(!1),g=c||m;return(0,z.jsxs)(tE,{open:e,onClose:g?void 0:t,maxWidth:u,fullWidth:!0,"aria-labelledby":f,"aria-describedby":i?p:void 0,sx:d,children:[(0,z.jsx)(aE,{id:f,children:r}),i&&(0,z.jsx)(rE,{children:typeof i==`string`?(0,z.jsx)(iE,{id:p,children:i}):(0,z.jsx)(`div`,{id:p,children:i})}),(0,z.jsxs)(nE,{sx:{px:3,pb:2},children:[(0,z.jsx)(ev,{onClick:t,color:`inherit`,disabled:g,variant:`outlined`,children:o}),(0,z.jsx)(ev,{onClick:()=>{if(g)return;let e=n();e instanceof Promise&&(h(!0),e.catch(()=>{}).finally(()=>h(!1)))},color:s,variant:`contained`,loading:g,disabled:l,children:a})]})]})}function GV({icon:e,color:t=`primary.main`,size:n=64}){return(0,z.jsx)(Z,{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 U(typeof r==`string`?r:e.palette.primary.main,.08)}},children:e})}function KV({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,z.jsx)(GV,{icon:t,color:n,size:r}):e?(0,z.jsx)(Z,{sx:d,children:e}):null,h=[...s??[],...o?[o]:[]];return(0,z.jsx)(rk,{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,z.jsxs)(Z,{sx:{maxWidth:c,display:`flex`,flexDirection:`column`,alignItems:`center`,gap:p?1.5:2.5},children:[m,(0,z.jsxs)(rk,{spacing:.5,sx:{alignItems:`center`},children:[i&&(0,z.jsx)(oy,{variant:p?`subtitle1`:`h6`,sx:{color:`text.secondary`,fontWeight:600,...f?.title},children:i}),a&&(0,z.jsx)(oy,{variant:`body2`,sx:{color:`text.disabled`,lineHeight:1.6,...f?.description},children:a})]}),h.length>0&&(0,z.jsx)(rk,{direction:`row`,spacing:1,sx:{mt:p?.5:1,flexWrap:`wrap`,justifyContent:`center`,...f?.actions},children:h.map((e,t)=>(0,z.jsx)(Z,{children:e},t))})]})})}var qV=3;function JV({children:e,gap:t=qV,fill:n,sx:r,ref:i,...a}){return(0,z.jsx)(rk,{ref:i,spacing:t,sx:{...n&&{flex:1},...r},...a,children:e})}K(Z,{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:U(e.palette.grey[500],.08)}}}),K(`img`)(()=>({width:`100%`,height:`100%`,objectFit:`cover`,display:`block`})),K(Z)(({theme:e})=>({position:`absolute`,top:0,left:0,width:`100%`,height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`,backgroundColor:U(e.palette.grey[500],.08),"&::after":{content:`""`,width:32,height:32,borderRadius:`50%`,border:`3px solid`,borderColor:U(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)`}}}})),K(Z)(()=>({position:`absolute`,top:0,left:0,width:`100%`,height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`})),K(Z)(({theme:e})=>({width:`100%`,height:`100%`,minHeight:100,display:`flex`,alignItems:`center`,justifyContent:`center`,color:e.palette.text.disabled}));var YV=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"?U(e.palette.grey[500],.32):U(s.main,.48)}`},soft:{color:r==="default"?e.palette.text.secondary:n?s.dark:s.light,backgroundColor:U(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 ${U(e.palette.grey[500],.16)}`,...o&&{boxShadow:`inset 0 0 0 1px ${U(o.main,.24)}`}}};return{...c,...l[i]}});function XV({children:e,color:t=`default`,variant:n=`soft`,startIcon:r,endIcon:i,sx:a,disabled:o,ref: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,z.jsxs)(YV,{ref:s,ownerState:l,sx:a,...c,children:[r&&(0,z.jsx)(Z,{sx:{mr:.5,...u},children:r}),e,i&&(0,z.jsx)(Z,{sx:{ml:.5,...u},children:i})]})}var ZV=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 QV({portal:e,slots:t,slotProps:n,sx:r,...i}){return(0,z.jsx)(e?sS:S.Fragment,{children:(0,z.jsx)(ZV,{sx:r,...i,children:t?.progress??(0,z.jsx)(GE,{color:`inherit`,sx:[{width:1,maxWidth:360},...Array.isArray(n?.progress?.sx)?n.progress.sx:[n?.progress?.sx]],...n?.progress})})})}var $V=K(Z,{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}}));function eH({variant:e=`circular`,message:t,indicator:n,portal:r=!1,size:i=48,progress:a,fullScreen:o=!1,sx:s}){let c=r?sS:S.Fragment,l=a!==void 0;return(0,z.jsx)(c,{children:(0,z.jsxs)($V,{fullScreen:o,sx:s,children:[n||(e===`linear`?(0,z.jsx)(GE,{variant:l?`determinate`:`indeterminate`,value:a,color:`primary`,sx:{width:`100%`,maxWidth:360,borderRadius:1}}):(0,z.jsx)(lg,{variant:l?`determinate`:`indeterminate`,value:a,size:i,thickness:3,color:`primary`})),t&&(0,z.jsx)(oy,{variant:`body2`,sx:{color:`text.secondary`,mt:1,textAlign:`center`},children:t}),l&&(0,z.jsxs)(oy,{variant:`caption`,sx:{color:`text.disabled`},children:[Math.round(a),`%`]})]})})}var tH=.75;function nH(e=`top-right`){let t={"top-left":{paperStyles:{ml:-.75},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:tH},anchorOrigin:{vertical:`bottom`,horizontal:`right`},transformOrigin:{vertical:`top`,horizontal:`right`}},"bottom-left":{paperStyles:{ml:-.75},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:tH},anchorOrigin:{vertical:`top`,horizontal:`right`},transformOrigin:{vertical:`bottom`,horizontal:`right`}},"left-top":{paperStyles:{mt:-.75},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:tH},anchorOrigin:{vertical:`bottom`,horizontal:`right`},transformOrigin:{vertical:`bottom`,horizontal:`left`}},"right-top":{paperStyles:{mt:-.75},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:tH},anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`bottom`,horizontal:`right`}}};return t[e]||t[`top-right`]}var rH=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 ${U(e.palette.grey[500],.12)}`,...o(),...s()}});function iH({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}=nH(u);return(0,z.jsxs)(FD,{open:!!e,anchorEl:r,onClose:t,anchorOrigin:p,transformOrigin:m,slotProps:{...o,paper:{...typeof o?.paper==`object`?o.paper:{},sx:[f,{overflow:`inherit`,[`& .${Yte.root}`]:{minWidth:a},[`& .${zd.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,z.jsx)(rH,{ownerState:{size:c,offset:l,placement:u},sx:i?.sx}),n]})}function aH(){let[e,t]=(0,S.useState)(null),n=(0,S.useCallback)(e=>{t(e.currentTarget)},[]),r=(0,S.useCallback)(()=>{t(null)},[]);return{open:!!e,anchorEl:e,onOpen:n,onClose:r,setAnchorEl:t}}K(Z,{shouldForwardProp:e=>e!==`ownerState`})(({theme:e,ownerState:t})=>{let{fillContent:n,hideScrollbar:r,axis:i}=t,a=U(e.palette.text.disabled,.4),o=U(e.palette.text.disabled,.6),s=U(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`}}}});var oH=$m((0,z.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`),sH=(0,S.createContext)(null);function cH(){let e=(0,S.useContext)(sH);if(!e)throw Error(`useSnackbar must be used within a SnackbarProvider`);return e}var lH={open:!1,message:``,severity:`info`,duration:5e3,position:{vertical:`bottom`,horizontal:`left`},key:0};function uH({children:e,defaultDuration:t=5e3,defaultPosition:n={vertical:`bottom`,horizontal:`left`},sx:r}){let[i,a]=(0,S.useState)({...lH,duration:t,position:n}),o=(0,S.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,S.useCallback)((e,t)=>{o({message:e,severity:`success`,...t})},[o]),c=(0,S.useCallback)((e,t)=>{o({message:e,severity:`error`,...t})},[o]),l=(0,S.useCallback)((e,t)=>{o({message:e,severity:`warning`,...t})},[o]),u=(0,S.useCallback)((e,t)=>{o({message:e,severity:`info`,...t})},[o]),d=(0,S.useCallback)(()=>{a(e=>({...e,open:!1}))},[]),f=(0,S.useCallback)((e,t)=>{t!==`clickaway`&&d()},[d]),p=(0,S.useMemo)(()=>({show:o,success:s,error:c,warning:l,info:u,close:d}),[o,s,c,l,u,d]);return(0,z.jsxs)(sH.Provider,{value:p,children:[e,(0,z.jsx)(WO,{open:i.open,autoHideDuration:i.duration,onClose:f,anchorOrigin:i.position,sx:r,children:(0,z.jsx)(Vw,{severity:i.severity,variant:`filled`,onClose:f,action:i.action||(0,z.jsx)(mg,{size:`small`,"aria-label":`close`,color:`inherit`,onClick:d,children:(0,z.jsx)(oH,{fontSize:`small`})}),sx:{width:`100%`,alignItems:`center`},children:i.message})},i.key)]})}K(`span`)(()=>({flexShrink:0,display:`inline-flex`,backgroundColor:`currentColor`}));var dH=K(Fg)(({theme:e})=>({borderRadius:e.shape.borderRadius,border:`1px solid ${e.palette.divider}`,overflow:`auto`})),fH=K(Mk)(({theme:e})=>({backgroundColor:U(e.palette.grey[500],.08),"& .MuiTableCell-head":{fontWeight:600,backgroundColor:`transparent`}})),pH=K(Bg)(({theme:e})=>({"&:hover":{backgroundColor:U(e.palette.primary.main,.04)},"&.Mui-selected":{backgroundColor:U(e.palette.primary.main,.08),"&:hover":{backgroundColor:U(e.palette.primary.main,.12)}}}));function mH({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,loadingRows:y=5,dense:b=!1,stickyHeader:x=!1,maxHeight:C,onRowClick:w,containerSx:T,sx:E,ref:D,...O}){let k=(0,S.useCallback)((e,t)=>{if(typeof n==`function`)return n(e);let r=e[n];return r===void 0?t:String(r)},[n]),A=(0,S.useMemo)(()=>t.length>0&&i.length===t.length,[t.length,i.length]),j=(0,S.useMemo)(()=>i.length>0&&i.length<t.length,[t.length,i.length]),M=(0,S.useCallback)(e=>{if(e.target.checked){let e=t.map((e,t)=>k(e,t));a?.(e)}else a?.([])},[t,k,a]),N=(0,S.useCallback)(e=>{let t=i.includes(e)?i.filter(t=>t!==e):[...i,e];a?.(t)},[i,a]),P=(0,S.useCallback)(e=>{l?.(e,s===e&&c===`asc`?`desc`:`asc`)},[s,c,l]),F=(0,S.useCallback)((e,t)=>{m?.(t)},[m]),I=(0,S.useCallback)(e=>{h?.(parseInt(e.target.value,10)),m?.(0)},[h,m]),R=p??t.length,ee=(0,S.useMemo)(()=>u&&!p?t.slice(d*f,d*f+f):t,[t,u,d,f,p]);return!v&&t.length===0?(0,z.jsx)(dH,{sx:T,children:(0,z.jsx)(Z,{sx:{p:4,textAlign:`center`},children:_||(0,z.jsx)(oy,{sx:{color:`text.secondary`},children:`No data available`})})}):(0,z.jsxs)(dH,{sx:{maxHeight:C,...T},children:[(0,z.jsxs)(Dk,{ref:D,stickyHeader:x,size:b?`small`:`medium`,sx:E,...O,children:[(0,z.jsx)(fH,{children:(0,z.jsxs)(Bg,{children:[r&&(0,z.jsx)(Kg,{padding:`checkbox`,children:(0,z.jsx)(Ny,{indeterminate:j,checked:A,onChange:M})}),e.map(e=>(0,z.jsx)(Kg,{align:e.align||`left`,style:{width:e.width,minWidth:e.minWidth},sortDirection:s===e.id&&c,children:o&&e.sortable!==!1?(0,z.jsx)(Xk,{active:s===e.id,direction:s===e.id?c:`asc`,onClick:()=>P(String(e.id)),children:e.label}):e.label},String(e.id)))]})}),(0,z.jsxs)(kk,{children:[v&&Array.from({length:Math.max(1,y)},(t,n)=>(0,z.jsxs)(Bg,{children:[r&&(0,z.jsx)(Kg,{padding:`checkbox`,children:(0,z.jsx)(NO,{variant:`rectangular`,width:18,height:18})}),e.map(e=>(0,z.jsx)(Kg,{align:e.align||`left`,children:(0,z.jsx)(NO,{variant:`text`,width:e.width??`80%`})},String(e.id)))]},`loading-${n}`)),!v&&ee.map((t,n)=>{let a=k(t,n),o=i.includes(a);return(0,z.jsxs)(pH,{hover:!0,selected:o,onClick:()=>w?.(t,n),sx:{cursor:w?`pointer`:`default`},children:[r&&(0,z.jsx)(Kg,{padding:`checkbox`,children:(0,z.jsx)(Ny,{checked:o,onClick:e=>e.stopPropagation(),onChange:()=>N(a)})}),e.map(e=>{let r=t[e.id];return(0,z.jsx)(Kg,{align:e.align||`left`,children:e.render?e.render(t,n):e.format?e.format(r):String(r??``)},String(e.id))})]},a)})]})]}),u&&(0,z.jsx)(Uk,{component:`div`,count:R,page:d,rowsPerPage:f,rowsPerPageOptions:g,onPageChange:F,onRowsPerPageChange:I})]})}function hH({variant:e=`text`,...t}){return(0,z.jsx)(NO,{variant:e,...t})}function gH({actions:e,open:t,onOpenChange:n,triggerKey:r=`k`,disableShortcut:i=!1,placeholder:a=`Type a command or search…`,emptyMessage:o=`No matching commands`}){let[s,c]=(0,S.useState)(!1),l=t??s,u=(0,S.useCallback)(e=>{t===void 0&&c(e),n?.(e)},[t,n]),[d,f]=(0,S.useState)(``),[p,m]=(0,S.useState)(0),h=(0,S.useRef)(null);(0,S.useEffect)(()=>{if(i)return;let e=e=>{(e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===r.toLowerCase()&&!e.altKey&&!e.shiftKey&&(e.preventDefault(),u(!l))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[r,i,l,u]),(0,S.useEffect)(()=>{if(l){f(``),m(0);let e=requestAnimationFrame(()=>h.current?.focus());return()=>cancelAnimationFrame(e)}},[l]);let g=(0,S.useMemo)(()=>vH(e,d),[e,d]);(0,S.useEffect)(()=>{p>=g.length&&m(0)},[g.length,p]);let _=(0,S.useCallback)(async e=>{if(!e.disabled){u(!1);try{await e.onSelect()}catch{}}},[u]),v=(0,S.useCallback)(e=>{if(e.key===`ArrowDown`)e.preventDefault(),m(e=>g.length===0?0:(e+1)%g.length);else if(e.key===`ArrowUp`)e.preventDefault(),m(e=>g.length===0?0:(e-1+g.length)%g.length);else if(e.key===`Enter`){e.preventDefault();let t=g[p];t&&_(t)}else e.key===`Escape`&&(e.preventDefault(),u(!1))},[g,p,_,u]),y=(0,S.useMemo)(()=>yH(g),[g]);return(0,z.jsx)(tE,{open:l,onClose:()=>u(!1),fullWidth:!0,maxWidth:`sm`,slotProps:{paper:{sx:{borderRadius:2,mt:`10vh`,alignSelf:`flex-start`}}},children:(0,z.jsxs)(rE,{sx:{p:0},children:[(0,z.jsx)(Z,{sx:{p:2,pb:1},children:(0,z.jsx)(bA,{inputRef:h,fullWidth:!0,variant:`standard`,value:d,onChange:e=>{f(e.target.value),m(0)},onKeyDown:v,placeholder:a,slotProps:{input:{disableUnderline:!0,startAdornment:(0,z.jsx)(py,{position:`start`,sx:{ml:.5,mr:1},children:(0,z.jsx)(Z,{component:`span`,sx:{fontSize:18,opacity:.6},children:`⌘`})})}}})}),(0,z.jsx)(sE,{}),(0,z.jsx)(Z,{sx:{maxHeight:360,overflowY:`auto`,py:.5},children:g.length===0?(0,z.jsx)(Z,{sx:{p:3,textAlign:`center`},children:(0,z.jsx)(oy,{variant:`body2`,sx:{color:`text.secondary`},children:o})}):y.map(e=>(0,z.jsxs)(Z,{children:[e.label?(0,z.jsx)(oy,{variant:`caption`,sx:{color:`text.secondary`,px:2,py:.75,display:`block`,textTransform:`uppercase`,letterSpacing:.5},children:e.label}):null,e.items.map(e=>(0,z.jsx)(_H,{action:e.action,selected:e.flatIndex===p,onSelect:()=>void _(e.action),onHover:()=>m(e.flatIndex)},e.action.id))]},e.label??`__none__`))})]})})}function _H({action:e,selected:t,onSelect:n,onHover:r}){let i=(0,S.useRef)(null);return(0,S.useEffect)(()=>{t&&i.current&&i.current.scrollIntoView({block:`nearest`})},[t]),(0,z.jsxs)(Z,{ref:i,onMouseEnter:r,onClick:n,sx:n=>({px:2,py:1.25,display:`flex`,alignItems:`center`,gap:1.5,cursor:e.disabled?`not-allowed`:`pointer`,opacity:e.disabled?.5:1,bgcolor:t?U(n.palette.primary.main,.12):`transparent`,"&:hover":{bgcolor:t?U(n.palette.primary.main,.16):U(n.palette.action.hover,1)}}),children:[e.icon?(0,z.jsx)(Z,{sx:{display:`flex`,alignItems:`center`,width:20,opacity:.8},children:e.icon}):null,(0,z.jsx)(Z,{sx:{flex:1,minWidth:0},children:(0,z.jsxs)(rk,{direction:`row`,spacing:1,sx:{alignItems:`baseline`},children:[(0,z.jsx)(oy,{variant:`body2`,sx:{fontWeight:500},noWrap:!0,children:e.title}),e.subtitle?(0,z.jsx)(oy,{variant:`caption`,noWrap:!0,sx:{color:`text.secondary`},children:e.subtitle}):null]})}),e.shortcut?.length?(0,z.jsx)(rk,{direction:`row`,spacing:.5,children:e.shortcut.map((e,t)=>(0,z.jsx)(yv,{size:`small`,label:e,variant:`outlined`,sx:{height:20,fontSize:10,fontFamily:`monospace`}},t))}):null]})}function vH(e,t){let n=t.trim().toLowerCase();if(!n)return e;let r=[];for(let t of e){let e=[t.title.toLowerCase()];if(t.subtitle&&e.push(t.subtitle.toLowerCase()),t.keywords?.length)for(let n of t.keywords)e.push(n.toLowerCase());let i=-1;for(let t of e){let e=t.indexOf(n);if(e===-1)continue;let r=e===0?1e3-t.length:100-e;r>i&&(i=r)}i>=0&&r.push({action:t,score:i})}return r.sort((e,t)=>t.score-e.score),r.map(e=>e.action)}function yH(e){let t=new Map,n=0;for(let r of e){let e=r.group,i=e??`__none__`,a=t.get(i);a||(a={label:e,items:[]},t.set(i,a)),a.items.push({action:r,flatIndex:n}),n+=1}return[...t.values()]}function bH({tabs:e,value:t,defaultValue:n,onChange:r,children:i,keepMounted:a=!1,action:o,...s}){let[c,l]=(0,S.useState)(n??e?.[0]?.value??``),u=t??c,d=(0,S.useCallback)((e,n)=>{t===void 0&&l(n),r?.(n)},[t,r]),f=(0,S.useMemo)(()=>{if(e)return e;let t=[];return S.Children.forEach(i,e=>{if((0,S.isValidElement)(e)&&e.type===xH){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,z.jsxs)(Z,{sx:{width:`100%`},children:[(0,z.jsxs)(Z,{sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:2},children:[(0,z.jsx)(hA,{value:u,onChange:d,...s,children:f.map(e=>(0,z.jsx)(eb,{value:e.value,label:e.label,icon:e.icon,iconPosition:`start`,disabled:e.disabled},e.value))}),p&&(0,z.jsx)(Z,{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,z.jsx)(Z,{role:`tabpanel`,hidden:!t,id:`tabpanel-${e.value}`,"aria-labelledby":`tab-${e.value}`,sx:{pt:2},children:e.content},e.value)})]})}function xH({children:e}){return(0,z.jsx)(z.Fragment,{children:e})}var SH=$m((0,z.jsx)(`path`,{d:`M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z`}),`ExpandMore`),CH=t(n(((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),wH=`var(--prism-palette-primary-main, var(--palette-primary-main, #1976d2))`,TH=`
269
+ #nprogress {
270
+ top: 0;
271
+ left: 0;
272
+ width: 100%;
273
+ height: 2.5px;
274
+ z-index: 9999;
275
+ position: fixed;
276
+ pointer-events: none;
277
+ }
278
+ #nprogress .bar {
279
+ height: 100%;
280
+ background-color: ${wH};
281
+ box-shadow: 0 0 2.5px ${wH};
282
+ }
283
+ #nprogress .peg {
284
+ right: 0;
285
+ opacity: 1;
286
+ width: 100px;
287
+ height: 100%;
288
+ display: block;
289
+ position: absolute;
290
+ transform: rotate(3deg) translate(0px, -4px);
291
+ box-shadow:
292
+ 0 0 10px ${wH},
293
+ 0 0 5px ${wH};
294
+ }
295
+ `;function EH(e){let t=e.getAttribute(`href`)?.trim()??``,n=e.getAttribute(`target`);return t.startsWith(`/`)&&n!==`_blank`}function DH(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 OH(e,t,n){let r=(0,S.useRef)(``);(0,S.useEffect)(()=>{r.current=window.location.href},[]),(0,S.useEffect)(()=>{let e=e=>{e&&!DH(e,r.current)&&(r.current=e,CH.default.start())},t=t=>{let n=t.target.closest(`a[href]`);n&&EH(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,S.useEffect)(()=>{let e=setTimeout(()=>CH.default.done(),n);return()=>clearTimeout(e)},[e,t,n])}function kH({pathname:e,search:t=``,delay:n=100}){return(0,S.useEffect)(()=>(CH.default.configure({showSpinner:!1}),()=>{CH.default.done()}),[]),OH(e,t,n),(0,z.jsx)(`style`,{children:TH})}function AH({pathname:e}){return(0,S.useEffect)(()=>{window.scrollTo(0,0)},[e]),null}var jH=$m((0,z.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 MH(e){for(let t of[/at\s+(?:async\s+)?([^\s(]+)\s+\((.+?):(\d+):(\d+)\)/,/at\s+(.+?):(\d+):(\d+)/]){let n=e.match(t);if(n){let[,e,t,r,i]=n,a=i!==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(`node_modules`)&&s.includes(`src/`);return{functionName:o||null,filePath:NH(s),lineNumber:isNaN(c)?null:c,columnNumber:isNaN(l)?null:l,isAppCode:u}}}return null}function NH(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 PH(e){if(!e)return{primary:null,frames:[],raw:``};let t=e.split(`
296
+ `),n=[];for(let e of t){let t=MH(e.trim());t&&n.push(t)}return{primary:n.find(e=>e.isAppCode)??n[0]??null,frames:n,raw:e}}function FH(e){let{primary:t}=PH(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 IH({error:e,parsedStack:t,resetErrorBoundary:n,sx:r,showDetails:i}){let[a,o]=(0,S.useState)(!1),[s,c]=(0,S.useState)(!1),l=i??(typeof process<`u`&&!1),u=async()=>{try{let n=[`Error: ${e.message}`,`Location: ${FH(e)}`,``,`Stack Trace:`,t.raw].join(`
297
+ `);await navigator.clipboard.writeText(n),c(!0),setTimeout(()=>c(!1),2e3)}catch{}};return(0,z.jsxs)(Z,{sx:{display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,minHeight:200,p:3,textAlign:`center`,...r},children:[(0,z.jsx)(oy,{variant:`h6`,color:`error`,gutterBottom:!0,children:`Something went wrong`}),(0,z.jsx)(oy,{variant:`body2`,sx:{color:`text.secondary`,mb:1,maxWidth:400},children:e.message||`An unexpected error occurred`}),l&&t.primary&&(0,z.jsxs)(oy,{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,z.jsxs)(Z,{sx:{display:`flex`,gap:1,mb:2},children:[(0,z.jsx)(ev,{variant:`outlined`,onClick:n,children:`Try Again`}),l&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(mg,{size:`small`,onClick:()=>o(!a),"aria-label":a?`Hide stack trace`:`Show stack trace`,"aria-expanded":a,sx:{transform:a?`rotate(180deg)`:`rotate(0deg)`,transition:`transform 0.2s`},children:(0,z.jsx)(SH,{})}),(0,z.jsx)(mg,{size:`small`,onClick:u,title:`Copy error details`,children:(0,z.jsx)(jH,{fontSize:`small`})}),s&&(0,z.jsx)(oy,{variant:`caption`,sx:{color:`success.main`,alignSelf:`center`},children:`Copied!`})]})]}),l&&(0,z.jsx)(jg,{in:a,children:(0,z.jsx)(Z,{sx:{mt:1,p:2,bgcolor:`action.hover`,borderRadius:1,maxWidth:600,maxHeight:300,overflow:`auto`,textAlign:`left`},children:(0,z.jsx)(oy,{variant:`caption`,component:`pre`,sx:{fontFamily:`monospace`,m:0},children:t.frames.map((e,t)=>(0,z.jsxs)(Z,{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 LH=class extends S.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=PH(e.stack);this.setState({errorInfo:t}),this.props.onError?.(e,t,n)}componentDidUpdate(e){let{resetKeys:t}=this.props,{hasError:n}=this.state;if(n&&t){let n=e.resetKeys;(n===void 0||n.length!==t.length||t.some((e,t)=>e!==n[t]))&&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:PH(t.stack),resetErrorBoundary:this.resetErrorBoundary};return typeof i==`function`?i(e):i||(0,z.jsx)(IH,{...e,sx:a,showDetails:o})}return r}};(0,S.createContext)(null);function RH(e,t){return[e,...Array.isArray(t)?t:t?[t]:[]]}function zH({severity:e=`info`,variant:t=`standard`,title:n,children:r,onClose:i,closable:a=!1,icon:o,action:s,sx:c,ref:l,...u}){let d=t===`soft`?`standard`:t;return(0,z.jsxs)(Vw,{ref:l,...u,severity:e,variant:d,onClose:a?i:void 0,icon:o,action:s,sx:RH(t===`soft`?{backgroundColor:t=>U(t.palette[e].main,t.palette.mode===`light`?.12:.16),color:t=>t.palette.mode===`light`?t.palette[e].dark:t.palette[e].light,"& .MuiAlert-icon":{color:`inherit`}}:{},c),children:[n&&(0,z.jsx)(Gw,{children:n}),r]})}function BH({severity:e=`error`,title:t,children:n,onClose:r,autoScroll:i=!0,sx:a,ref:o,...s}){let c=(0,S.useRef)(null),l=Gu(c,o);return(0,S.useEffect)(()=>{if(!i)return;let e=requestAnimationFrame(()=>{c.current?.scrollIntoView({block:`nearest`,behavior:`smooth`})});return()=>cancelAnimationFrame(e)},[i]),(0,z.jsxs)(Vw,{ref:l,...s,severity:e,onClose:r,role:`alert`,"aria-live":`assertive`,"aria-atomic":`true`,sx:RH({alignItems:`flex-start`,mb:2},a),children:[t&&(0,z.jsx)(Gw,{sx:{mb:.5},children:t}),n]})}var VH=K(`div`)(({theme:e})=>({display:`flex`,flexDirection:`column`,gap:e.spacing(2)})),HH=K(`h6`)(({theme:e})=>({...e.typography.h4,margin:0,padding:0,display:`inline-flex`})),UH=K(`div`)(({theme:e})=>({display:`flex`,flexWrap:`wrap`,gap:e.spacing(2),alignItems:`flex-start`,justifyContent:`flex-end`})),WH=K(`div`)(({theme:e})=>({display:`flex`,flex:`1 1 auto`,gap:e.spacing(2),flexDirection:`column`})),GH=K(`span`)(({theme:e})=>({width:4,height:4,borderRadius:`50%`,backgroundColor:e.palette.text.disabled})),KH=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}})),qH=K(`span`)({display:`inherit`,"& > :first-child:not(style)":{width:20,height:20}}),JH=K(`ul`)({display:`flex`,flexDirection:`column`,"& > li":{display:`flex`}});function YH(){return(0,z.jsx)(Qm,{sx:{fontSize:18},children:(0,z.jsx)(`path`,{d:`M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z`})})}function XH({href:e,label:t,sx:n,linkComponent:r}){let i=r?{component:r,to:e}:{href:e};return(0,z.jsxs)(QE,{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,z.jsx)(`span`,{className:`PrismBackLinkIcon`,children:(0,z.jsx)(YH,{})}),t]})}function ZH({href:e,icon:t,name:n,disabled:r,linkComponent:i}){let a=(0,z.jsxs)(KH,{disabled:r,children:[t&&(0,z.jsx)(qH,{children:t}),n]});return e&&!r?(0,z.jsx)(QE,{color:`inherit`,sx:{display:`inline-flex`},...i?{component:i,to:e}:{href:e},children:a}):a}var QH=new Set([`http:`,`https:`,`mailto:`,`tel:`]);function $H(e){let t=e.trim();if(t.startsWith(`/`)||t.startsWith(`#`))return!0;try{return QH.has(new URL(t,`https://placeholder.invalid`).protocol)}catch{return!1}}function eU({links:e,sx:t,...n}){return(0,z.jsx)(JH,{sx:t,...n,children:e?.filter($H).map(e=>(0,z.jsx)(`li`,{children:(0,z.jsx)(QE,{href:e,variant:`body2`,target:`_blank`,rel:`noopener noreferrer`,children:e})},e))})}function tU({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,z.jsx)(HH,{...s?.heading,children:n?(0,z.jsx)(XH,{href:n,label:r,linkComponent:l}):r}),p=()=>i?.breadcrumbs??(0,z.jsx)(PT,{separator:(0,z.jsx)(GH,{}),...s?.breadcrumbs,children:a.map((e,t)=>(0,z.jsx)(ZH,{icon:e.icon,href:e.href,name:e.name,disabled:e.name===d&&!c,linkComponent:l},e.name??t))}),m=()=>(0,z.jsx)(eU,{links:o,...s?.moreLinks});return(0,z.jsxs)(VH,{sx:e,...u,children:[(0,z.jsxs)(UH,{...s?.container,children:[(0,z.jsxs)(WH,{...s?.content,children:[(r||n)&&f(),(!!a.length||i?.breadcrumbs)&&p()]}),t]}),!!o?.length&&m()]})}function nU({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,z.jsx)(ine,{activeStep:t,orientation:r,nonLinear:i,alternativeLabel:a,...s,children:e.map((e,n)=>(0,z.jsxs)(sk,{completed:e.completed??n<t,children:[(0,z.jsx)(f_,{optional:e.optional?(0,z.jsx)(`span`,{style:{fontSize:`0.75rem`,color:`text.secondary`},children:`Optional`}):e.description?(0,z.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,z.jsx)(Ck,{children:e.content})]},n))})}function rU({initialStep:e=0,totalSteps:t,onStepChange:n,onComplete:r}){let[i,a]=(0,S.useState)(e),[o,s]=(0,S.useState)(!1),c=(0,S.useCallback)(e=>{e>=0&&e<t&&(a(e),n?.(e))},[t,n]);return{activeStep:i,nextStep:(0,S.useCallback)(()=>{i===t-1?(s(!0),r?.()):c(i+1)},[i,t,c,r]),prevStep:(0,S.useCallback)(()=>{c(i-1)},[i,c]),goToStep:c,reset:(0,S.useCallback)(()=>{a(0),s(!1),n?.(0)},[n]),isFirstStep:i===0,isLastStep:i===t-1,isCompleted:o}}function iU(...e){return B(e)}IV(`chart__root`),IV(`chart__loading`),IV(`chart__legends__root`),IV(`chart__legends__item__wrap`),IV(`chart__legends__item__root`),IV(`chart__legends__item__dot`),IV(`chart__legends__item__icon`),IV(`chart__legends__item__label`),IV(`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,S.lazy)(()=>D(()=>import(`./react-apexcharts.esm-Dy0Fez42.js`).then(e=>({default:e.default})),__vite__mapDeps([0,1,2]))),K(`div`)(({theme:e})=>({width:`100%`,flexShrink:0,position:`relative`,borderRadius:Number(e.shape.borderRadius)*1.5})),IV(`lightbox__root`),IV(`lightbox__backdrop`),IV(`lightbox__container`),IV(`lightbox__slide`),IV(`lightbox__slide--active`),IV(`lightbox__image`),IV(`lightbox__video`),IV(`lightbox__caption`),IV(`lightbox__toolbar`),IV(`lightbox__toolbar--top`),IV(`lightbox__toolbar--bottom`),IV(`lightbox__toolbar__button`),IV(`lightbox__nav`),IV(`lightbox__nav--prev`),IV(`lightbox__nav--next`),IV(`lightbox__counter`),IV(`lightbox__thumbnails`),IV(`lightbox__thumbnail`),IV(`lightbox__thumbnail--active`),IV(`lightbox__zoom`),IV(`lightbox__zoomed`),IV(`lightbox__loading`),IV(`lightbox__error`),K(tE)(({theme:e})=>({"& .MuiDialog-paper":{backgroundColor:`transparent`,boxShadow:`none`,margin:0,maxWidth:`100%`,maxHeight:`100%`,borderRadius:0},"& .MuiBackdrop-root":{backgroundColor:U(e.palette.common.black,.92),backdropFilter:`blur(8px)`}})),K(Z)({display:`flex`,flexDirection:`column`,width:`100vw`,height:`100vh`,position:`relative`,overflow:`hidden`,userSelect:`none`}),K(Z)(({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`}, ${U(e.palette.common.black,.55)} 0%, ${U(e.palette.common.black,.2)} 60%, transparent 100%)`,transition:`opacity 0.3s ease`})),K(mg)(({theme:e})=>({color:U(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:U(e.palette.common.white,.12),color:e.palette.common.white,transform:`scale(1.05)`},"&:active":{transform:`scale(0.95)`},"&.Mui-disabled":{color:U(e.palette.common.white,.2)}})),K(oy)(({theme:e})=>({color:U(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:U(e.palette.common.white,.1),backdropFilter:`blur(12px)`,border:`1px solid ${U(e.palette.common.white,.08)}`,display:`flex`,alignItems:`center`,letterSpacing:`0.02em`})),K(Z)({flex:1,display:`flex`,alignItems:`center`,justifyContent:`center`,position:`relative`,overflow:`hidden`}),K(Z)({position:`absolute`,inset:0,display:`flex`,alignItems:`center`,justifyContent:`center`,willChange:`opacity, transform`}),K(Z)({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(Z)({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:U(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(Z)(({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:U(e.palette.common.black,.45),backdropFilter:`blur(16px)`,border:`1px solid ${U(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(mg)(({theme:e,side:t})=>({position:`absolute`,top:`50%`,transform:`translateY(-50%)`,color:U(e.palette.common.white,.85),zIndex:10,width:44,height:44,borderRadius:`50%`,backgroundColor:U(e.palette.common.white,.08),backdropFilter:`blur(12px)`,border:`1px solid ${U(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:U(e.palette.common.white,.16),color:e.palette.common.white,transform:`translateY(-50%) scale(1.08)`,boxShadow:`0 0 20px ${U(e.palette.primary.main,.15)}`},"&:active":{transform:`translateY(-50%) scale(0.95)`}})),K(Z)(({theme:e})=>({display:`flex`,gap:e.spacing(.75),padding:e.spacing(1,2),justifyContent:`center`,overflowX:`auto`,backgroundColor:U(e.palette.common.black,.5),backdropFilter:`blur(12px)`,borderTop:`1px solid ${U(e.palette.common.white,.06)}`,scrollbarWidth:`none`,"&::-webkit-scrollbar":{display:`none`}})),K(Z)(({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:U(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 ${U(e.palette.primary.main,.3)}`},"& img":{width:`100%`,height:`100%`,objectFit:`cover`},"&:hover":{opacity:1,transform:`scale(1)`,borderColor:t?e.palette.primary.main:U(e.palette.common.white,.25)}})),IV(`carousel__root`),IV(`carousel__container`),IV(`carousel__track`),IV(`carousel__slide`),IV(`carousel__slide--active`),IV(`carousel__slide--prev`),IV(`carousel__slide--next`),IV(`carousel__arrow`),IV(`carousel__arrow--prev`),IV(`carousel__arrow--next`),IV(`carousel__arrow--inside`),IV(`carousel__arrow--outside`),IV(`carousel__arrow--disabled`),IV(`carousel__dots`),IV(`carousel__dots--top`),IV(`carousel__dots--bottom`),IV(`carousel__dots--left`),IV(`carousel__dots--right`),IV(`carousel__dot`),IV(`carousel__dot--active`),IV(`carousel__horizontal`),IV(`carousel__vertical`),IV(`carousel__dragging`),IV(`carousel__fade`),K(Z)({position:`relative`,width:`100%`,overflow:`hidden`,outline:`none`}),K(Z)({position:`relative`,width:`100%`,overflow:`hidden`}),K(Z)({display:`flex`,width:`100%`,willChange:`transform`,userSelect:`none`}),K(Z)({flexShrink:0,"& > *":{width:`100%`,height:`100%`}}),K(mg)(({theme:e,isHorizontal:t,direction:n})=>({position:`absolute`,zIndex:10,backgroundColor:U(e.palette.background.paper,.9),boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.background.paper},"&.Mui-disabled":{backgroundColor:U(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(Z)(({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:U(e.palette.common.black,.3),transition:e.transitions.create([`background-color`,`transform`],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:t?e.palette.primary.main:U(e.palette.common.black,.5),transform:`scale(1.2)`}}));var aU=LV(`nav-section`,[`root`,`vertical`,`horizontal`,`mini`,`ul`,`li`,`subheader`,`item`,`icon`,`texts`,`title`,`caption`,`info`,`arrow`,`active`,`disabled`,`open`]);K(rg)(({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:U(e.palette.grey[500],.08)}})),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)`}}));var oU=K(rg,{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`}}));function sU({className:e,active:t,disabled:n,open:r,depth:i,hasChild:a,ref:o,...s}){return(0,z.jsx)(oU,{ref:o,className:iU(aU.item,t&&aU.active,n&&aU.disabled,r&&aU.open,e),active:t,open:r,depth:i,hasChild:a,disabled:n,...s})}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%`}}),K(`span`)({flex:`1 1 auto`,display:`flex`,flexDirection:`column`,alignItems:`flex-start`,minWidth:0}),K(`span`)({fontSize:`var(--nav-item-font-size, 0.875rem)`,fontWeight:500,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`,lineHeight:1.5}),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})),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)`}})),K(`span`)({marginLeft:6,display:`inline-flex`,alignItems:`center`}),(0,S.createContext)(void 0),K(sU)(({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 cU=t(n(((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},R=I(`//`,`$`),ee=I(`/\\*`,`\\*/`),te=I(`#`,`$`),ne=Object.freeze({__proto__:null,APOS_STRING_MODE:N,BACKSLASH_ESCAPE:M,BINARY_NUMBER_MODE:{scope:`number`,begin:k,relevance:0},BINARY_NUMBER_RE:k,COMMENT:I,C_BLOCK_COMMENT_MODE:ee,C_LINE_COMMENT_MODE:R,C_NUMBER_MODE:{scope:`number`,begin:O,relevance:0},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:{begin:`\\.\\s*[a-zA-Z_]\\w*`,relevance:0},NUMBER_MODE:{scope:`number`,begin:D,relevance:0},NUMBER_RE:D,PHRASAL_WORDS_MODE:F,QUOTE_STRING_MODE:P,REGEXP_MODE:{scope:`regexp`,begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[M,{begin:/\[/,end:/\]/,relevance:0,contains:[M]}]},RE_STARTERS_RE:A,SHEBANG:j,TITLE_MODE:{scope:`title`,begin:T,relevance:0},UNDERSCORE_IDENT_RE:E,UNDERSCORE_TITLE_MODE:{scope:`title`,begin:E,relevance:0}});function re(e,t){e.input[e.index-1]===`.`&&t.ignoreMatch()}function ie(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function ae(e,t){t&&e.beginKeywords&&(e.begin=`\\b(`+e.beginKeywords.split(` `).join(`|`)+`)(?!\\.)(?=\\b|\\s)`,e.__beforeBegin=re,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function oe(e,t){Array.isArray(e.illegal)&&(e.illegal=y(...e.illegal))}function se(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 ce(e,t){e.relevance===void 0&&(e.relevance=1)}var le=(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},ue=[`of`,`and`,`for`,`in`,`not`,`or`,`if`,`then`,`parent`,`list`,`value`],de=`keyword`;function fe(e,t,n=de){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,fe(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,pe(n[0],n[1])]})}}function pe(e,t){return t?Number(t):+!me(e)}function me(e){return ue.includes(e.toLowerCase())}var he={},ge=e=>{console.error(e)},_e=(e,...t)=>{console.log(`WARN: ${e}`,...t)},ve=(e,t)=>{he[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),he[`${e}/${t}`]=!0)},ye=Error();function be(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 xe(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw ge(`skip, excludeBegin, returnBegin not compatible with beginScope: {}`),ye;if(typeof e.beginScope!=`object`||e.beginScope===null)throw ge(`beginScope must be object`),ye;be(e,e.begin,{key:`beginScope`}),e.begin=C(e.begin,{joinWith:``})}}function Se(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw ge(`skip, excludeEnd, returnEnd not compatible with endScope: {}`),ye;if(typeof e.endScope!=`object`||e.endScope===null)throw ge(`endScope must be object`),ye;be(e,e.end,{key:`endScope`}),e.end=C(e.end,{joinWith:``})}}function Ce(e){e.scope&&typeof e.scope==`object`&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function we(e){Ce(e),typeof e.beginScope==`string`&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope==`string`&&(e.endScope={_wrap:e.endScope}),xe(e),Se(e)}function Te(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;[ie,se,we,le].forEach(e=>e(n,r)),e.compilerExtensions.forEach(e=>e(n,r)),n.__beforeBegin=null,[ae,oe,ce].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&&=fe(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 De(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 Ee(e){return e?e.endsWithParent||Ee(e.starts):!1}function De(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return a(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Ee(e)?a(e,{starts:e.starts?a(e.starts):null}):Object.isFrozen(e)?a(e):e}var Oe=`11.11.2`,ke=class extends Error{constructor(e,t){super(e),this.name=`HTMLInjectionError`,this.html=t}},Ae=i,je=a,Me=Symbol(`nomatch`),Ne=7,Pe=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||(_e(s.replace(`{}`,n[1])),_e(`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):(ve(`10.7.0`,`highlight(lang, code, ...args) has been deprecated.`),ve(`10.7.0`,`Please use highlight(code, options) instead.
298
+ 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]<=Ne&&(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 Me;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}if(r.type===`end`){let e=C(r);if(e!==Me)return e}if(r.type===`illegal`&&a===``)return r.index===n.length||(P+=`
299
+ `),1;if(R>1e5&&R>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 ge(s.replace(`{}`,e)),Error(`Unknown language: "`+e+`"`);let O=Te(D),k=``,A=a||O,j={},M=new l.__emitter(l);w();let P=``,F=0,I=0,R=0,ee=!1;try{if(D.__emitTokens)D.__emitTokens(n,M);else{for(A.matcher.considerAll();;){R++,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:Ae(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:Ae(n),illegal:!1,relevance:0,errorRaised:t,_emitter:M,_top:A};throw t}}function b(e){let t={value:Ae(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 ke(`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=je(l,e)}let E=()=>{k(),ve(`10.6.0`,`initHighlighting() deprecated. Use highlightAll() now.`)};function D(){k(),ve(`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(ge(`Language definition for '{}' could not be registered.`.replace(`{}`,n)),o)ge(e);else throw e;i=c}i.name||(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 R(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 re(e){return ve(`10.7.0`,`highlightBlock will be removed entirely in v12.0`),ve(`10.7.0`,`Please use highlightElement now.`),w(e)}Object.assign(e,{highlight:p,highlightAuto:S,highlightAll:k,highlightElement:w,highlightBlock:re,configure:T,initHighlighting:E,initHighlightingOnLoad:D,registerLanguage:A,unregisterLanguage:j,listLanguages:M,getLanguage:N,registerAliases:P,autoDetection:F,inherit:je,addPlugin:R,removePlugin:ee}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString=Oe,e.regex={concat:_,lookahead:m,either:y,optional:g,anyNumberOfTimes:h};for(let e in ne)typeof ne[e]==`object`&&n(ne[e]);return Object.assign(e,ne),e},Fe=Pe({});Fe.newInstance=()=>Pe({}),t.exports=Fe,Fe.HighlightJS=Fe,Fe.default=Fe}))()).default,lU=Object.defineProperty,uU=(e,t)=>{let n={};for(var r in e)lU(n,r,{get:e[r],enumerable:!0});return t||lU(n,Symbol.toStringTag,{value:`Module`}),n};function dU(e){this.content=e}dU.prototype={constructor:dU,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 dU(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 dU(n)},addToStart:function(e,t){return new dU([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new dU(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 dU(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=dU.from(e),e.size?new dU(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=dU.from(e),e.size?new dU(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=dU.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}},dU.from=function(e){if(e instanceof dU)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new dU(t)};function fU(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){let e=i.text,t=a.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r<e.length&&r<t.length&&hU(e.charCodeAt(r-1))&&mU(e.charCodeAt(r))&&n--,n}if(i.content.size||a.content.size){let e=fU(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}function pU(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=o.text,t=s.text,i=e.length,a=t.length;for(;i>0&&a>0&&e[i-1]==t[a-1];)i--,a--,n--,r--;return i&&a&&i<e.length&&hU(e.charCodeAt(i-1))&&mU(e.charCodeAt(i))&&(n++,r++),{a:n,b:r}}if(o.content.size||s.content.size){let e=pU(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}function mU(e){return e>=56320&&e<57344}function hU(e){return e>=55296&&e<56320}var Q=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 fU(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return pU(this,e,t,n)}findIndex(e){if(e==0)return _U(0,e);if(e==this.size)return _U(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?_U(t+1,i):_U(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 e.fromArray(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)`:``))}};Q.empty=new Q([],0);var gU={index:0,offset:0};function _U(e,t){return gU.index=e,gU.offset=t,gU}function vU(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(!vU(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!vU(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var yU=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&&vU(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}};yU.none=[];var bU=class extends Error{},xU=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=CU(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(SU(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(Q.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)}};xU.empty=new xU(Q.empty,0,0);function SU(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(SU(a.content,t-i-1,n-i-1)))}function CU(e,t,n,r,i,a){let{index:o,offset:s}=e.findIndex(t),c=e.maybeChild(o);if(s==t||c.isText)return a&&r<=0&&i<=0&&!a.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=CU(c.content,t-s-1,n,o==0?r-1:0,o==e.childCount-1?i-1:0,c);return l&&e.replaceChild(o,c.copy(l))}function wU(e,t,n){if(n.openStart>e.depth)throw new bU(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new bU(`Inconsistent open depths`);return TU(e,t,n,0)}function TU(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=TU(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}if(!n.content.size)return AU(a,MU(e,t,r));if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return AU(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}{let{start:i,end:o}=NU(n,e);return AU(a,jU(e,i,o,t,r))}}function EU(e,t){if(!t.type.compatibleContent(e.type))throw new bU(`Cannot join `+t.type.name+` onto `+e.type.name)}function DU(e,t,n){let r=e.node(n);return EU(r,t.node(n)),r}function OU(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 kU(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&&(OU(e.nodeAfter,r),a++));for(let e=a;e<o;e++)OU(i.child(e),r);t&&t.depth==n&&t.textOffset&&OU(t.nodeBefore,r)}function AU(e,t){if(!e.type.validContent(t))throw new bU(`Invalid content for node `+e.type.name);return e.copy(t)}function jU(e,t,n,r,i){let a=e.depth>i&&DU(e,t,i+1),o=r.depth>i&&DU(n,r,i+1),s=[];return kU(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(EU(a,o),OU(AU(a,jU(e,t,n,r,i+1)),s)):(a&&OU(AU(a,MU(e,t,i+1)),s),kU(t,n,i,s),o&&OU(AU(o,MU(n,r,i+1)),s)),kU(r,null,i,s),new Q(s)}function MU(e,t,n){let r=[];return kU(null,e,n,r),e.depth>n&&OU(AU(DU(e,t,n+1),MU(e,t,n+1)),r),kU(t,null,n,r),new Q(r)}function NU(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(Q.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var PU=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 yU.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 RU(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=LU.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 LU.set(t,r=new FU);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%IU,i}},FU=class{constructor(){this.elts=[],this.i=0}},IU=12,LU=new WeakMap,RU=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)}},zU=Object.create(null),BU=class e{constructor(e,t,n,r=yU.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||Q.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&&vU(this.attrs,t||e.defaultAttrs||zU)&&yU.sameSet(this.marks,n||yU.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 xU.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new xU(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return wU(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 PU.resolveCached(this,e)}resolveNoCache(e){return PU.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()+`)`),HU(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=Q.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=yU.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(!yU.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=Q.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,r,n);return i.type.checkAttrs(i.attrs),i}};BU.prototype.text=void 0;var VU=class e extends BU{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):HU(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 HU(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}var UU=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new WU(t,n);if(r.next==null)return e.empty;let i=GU(r);r.next&&r.err(`Unexpected trailing text`);let a=tW(QU(i));return nW(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 Q.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(`
300
+ `)}};UU.empty=new UU(!0);var WU=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 GU(e){let t=[];do t.push(KU(e));while(e.eat(`|`));return t.length==1?t[0]:{type:`choice`,exprs:t}}function KU(e){let t=[];do t.push(qU(e));while(e.next&&e.next!=`)`&&e.next!=`|`);return t.length==1?t[0]:{type:`seq`,exprs:t}}function qU(e){let t=ZU(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=YU(e,t);else break;return t}function JU(e){/\D/.test(e.next)&&e.err(`Expected number, got '`+e.next+`'`);let t=Number(e.next);return e.pos++,t}function YU(e,t){let n=JU(e),r=n;return e.eat(`,`)&&(r=e.next==`}`?-1:JU(e)),e.eat(`}`)||e.err(`Unclosed braced range`),{type:`range`,min:n,max:r,expr:t}}function XU(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 ZU(e){if(e.eat(`(`)){let t=GU(e);return e.eat(`)`)||e.err(`Missing closing paren`),t}if(/\W/.test(e.next))e.err(`Unexpected token '`+e.next+`'`);else{let t=XU(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 QU(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 $U(e,t){return t-e}function eW(e,t){let n=[];return r(t),n.sort($U);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 tW(e){let t=Object.create(null);return n(eW(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]);eW(e,n).forEach(e=>{r||i.push([t,r=[]]),r.indexOf(e)==-1&&r.push(e)})})});let a=t[r.join(`,`)]=new UU(r.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let r=i[e][1].sort($U);a.next.push({type:i[e][0],next:t[r.join(`,`)]||n(r)})}return a}}function nW(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 rW(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 iW(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 aW(e,t,n,r){for(let i in t)if(!(i in e))throw RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);for(let n in e)e[n].validate&&e[n].validate(t[n])}function oW(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new lW(e,r,t[r]);return n}var sW=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=oW(e,n.attrs),this.defaultAttrs=rW(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==UU.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:iW(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error(`NodeType.create can't construct text nodes`);return new BU(this,this.computeAttrs(e),Q.from(t),yU.setFrom(n))}createChecked(e=null,t,n){return t=Q.from(t),this.checkContent(t),new BU(this,this.computeAttrs(e),t,yU.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),t=Q.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(Q.empty,!0);return i?new BU(this,e,t.append(i),yU.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){aW(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:yU.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 cW(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 lW=class{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,`default`),this.default=n.default,this.validate=typeof n.validate==`string`?cW(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}},uW=class e{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=oW(e,r.attrs),this.excluded=null;let i=rW(this.attrs);this.instance=i?new yU(this,i):null}create(e=null){return!e&&this.instance?this.instance:new yU(this,iW(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){aW(this.attrs,e,`mark`,this.name)}excludes(e){return this.excluded.indexOf(e)>-1}},dW=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=dU.from(e.nodes),t.marks=dU.from(e.marks||{}),this.nodes=sW.compile(this.spec.nodes,this),this.marks=uW.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]=UU.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?fW(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==``?[]:fW(this,n.split(` `))}this.nodeFromJSON=e=>BU.fromJSON(this,e),this.markFromJSON=e=>yU.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 sW))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 VU(n,n.defaultAttrs,e,yU.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 fW(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 pW(e){return e.tag!=null}function mW(e){return e.style!=null}var hW=class e{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(e=>{if(pW(e))this.tags.push(e);else if(mW(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 wW(this,t,!1);return n.addAll(e,yU.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new wW(this,t,!0);return n.addAll(e,yU.none,t.from,t.to),xU.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(EW(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=DW(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=DW(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)))}},gW={address:!0,article:!0,aside:!0,blockquote:!0,body:!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},_W={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},vW={ol:!0,ul:!0},yW=1,bW=2,xW=4;function SW(e,t,n){return t==null?e&&e.whitespace==`pre`?3:n&-5:(t?yW:0)|(t===`full`?bW:0)}var CW=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=yU.none,this.match=i||(a&xW?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(Q.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&yW)){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=Q.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(Q.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&&!gW.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},wW=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=SW(null,t.preserveWhitespace,0)|(n?xW:0);i=r?new CW(r.type,r.attrs,yU.none,!0,t.topMatch||r.type.contentMatch,a):n?new CW(null,null,yU.none,!0,null,a):new CW(e.schema.topNodeType,null,yU.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&bW?`full`:this.localPreserveWS||(r.options&yW)>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,`
301
+ `);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;vW.hasOwnProperty(a)&&this.parser.normalizeLists&&TW(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,n));out:if(s?s.ignore:_W.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(gW.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(`
302
+ `),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=yU.none;for(let i of r.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):OW(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=SW(e,i,a.options);a.options&xW&&a.content.length==0&&(o|=xW);let s=yU.none;return n=n.filter(t=>!(a.type?a.type.allowsMarkType(t.type):OW(t.type,e))||(s=t.addToSet(s),!1)),this.nodes.push(new CW(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|=yW);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}{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 TW(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=t.nodeType==1?t.nodeName.toLowerCase():null;e&&vW.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):e==`li`?n=t:e&&(n=null)}}function EW(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function DW(e){let t={};for(let n in e)t[n]=e[n];return t}function OW(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 kW=class e{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||=jW(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){if(e.isText)return jW(t).createTextNode(e.text);let{dom:n,contentDOM:r}=FW(jW(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&&FW(jW(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return typeof t==`string`?{dom:e.createTextNode(t)}:FW(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=AW(e.nodes);return t.text||=e=>e.text,t}static marksFromSchema(e){return AW(e.marks)}};function AW(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function jW(e){return e.document||window.document}var MW=new WeakMap;function NW(e){let t=MW.get(e);return t===void 0&&MW.set(e,t=PW(e)),t}function PW(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 FW(e,t,n,r){if(t.nodeType==1)return{dom:t};if(t.dom&&t.dom.nodeType==1)return t;let i=t[0],a;if(typeof i!=`string`)throw RangeError(`Invalid array passed to renderSpec`);if(r&&(a=NW(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}}if(typeof a==`string`)c.appendChild(e.createTextNode(a));else{let{dom:t,contentDOM:i}=FW(e,a,n,r);if(c.appendChild(t),i){if(s)throw RangeError(`Multiple content holes`);s=i}}}return{dom:c,contentDOM:s}}var IW=65535,LW=2**16;function RW(e,t){return e+t*LW}function zW(e){return e&IW}function BW(e){return(e-(e&IW))/LW}var VW=1,HW=2,UW=4,WW=8,GW=class{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&WW)>0}get deletedBefore(){return(this.delInfo&5)>0}get deletedAfter(){return(this.delInfo&6)>0}get deletedAcross(){return(this.delInfo&UW)>0}},KW=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=zW(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+BW(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:RW(o/3,e-s),f=e==s?HW:e==u?VW:UW;return(t<0?e!=s:e!=u)&&(f|=WW),new GW(a,f,d)}r+=l-c}return n?e+r:new GW(e+r,0,null)}touches(e,t){let n=0,r=zW(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])}};KW.empty=new KW([]);var qW=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 GW(e,r,null)}},JW=Object.create(null),YW=class{getMap(){return KW.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError(`Invalid input for Step.fromJSON`);let n=JW[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in JW)throw RangeError(`Duplicate use of step JSON ID `+e);return JW[e]=t,t.prototype.jsonID=e,t}},XW=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 bU)return e.fail(t.message);throw t}}};function ZW(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let a=e.child(i);a.content.size&&(a=a.copy(ZW(a.content,t,a))),a.isInline&&(a=t(a,n,i)),r.push(a)}return Q.fromArray(r)}var QW=class e extends YW{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 xU(ZW(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 XW.fromReplace(e,this.from,this.to,i)}invert(){return new $W(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))}};YW.jsonID(`addMark`,QW);var $W=class e extends YW{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 xU(ZW(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return XW.fromReplace(e,this.from,this.to,n)}invert(){return new QW(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))}};YW.jsonID(`removeMark`,$W);var eG=class e extends YW{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return XW.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return XW.fromReplace(e,this.pos,this.pos+1,new xU(Q.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 tG(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))}};YW.jsonID(`addNodeMark`,eG);var tG=class e extends YW{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return XW.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return XW.fromReplace(e,this.pos,this.pos+1,new xU(Q.from(n),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new eG(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))}};YW.jsonID(`removeNodeMark`,tG);var nG=class e extends YW{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&iG(e,this.from,this.to)?XW.fail(`Structure replace would overwrite content`):XW.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new KW([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?xU.empty:new xU(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)}if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let n=this.slice.size+t.slice.size==0?xU.empty:new xU(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new e(t.from,this.to,n,this.structure)}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,xU.fromJSON(t,n.slice),!!n.structure)}};nG.MAP_BIAS=1,YW.jsonID(`replace`,nG);var rG=class e extends YW{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&&(iG(e,this.from,this.gapFrom)||iG(e,this.gapTo,this.to)))return XW.fail(`Structure gap-replace would overwrite content`);let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return XW.fail(`Gap is not a flat range`);let n=this.slice.insertAt(this.insert,t.content);return n?XW.fromReplace(e,this.from,this.to,n):XW.fail(`Content does not fit in gap`)}getMap(){return new KW([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,xU.fromJSON(t,n.slice),n.insert,!!n.structure)}};YW.jsonID(`replaceAround`,rG);function iG(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 aG(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 $W(l,d,u[e])));s&&s.to==l?s.to=d:a.push(s=new QW(l,d,r))}}),i.forEach(t=>e.step(t)),a.forEach(t=>e.step(t))}function oG(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 uW){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 $W(t.from,t.to,t.style)))}function sG(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 nG(s,l,xU.empty));else{r=u;for(let t=0;t<c.marks.length;t++)n.allowsMarkType(c.marks[t].type)||e.step(new $W(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 xU(Q.from(n.schema.text(` `,n.allowedMarks(c.marks))),0,0),o.push(new nG(s+e.index,s+e.index+e[0].length,r))}}s=l}if(!r.validEnd){let t=r.fillBefore(Q.empty,!0);e.replace(s,s,new xU(t,0,0))}for(let t=o.length-1;t>=0;t--)e.step(o[t])}function cG(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function lG(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||!cG(a,o,s))break;o&&(r=1),s<a.childCount&&(i=1)}return null}function uG(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=Q.empty,d=0;for(let e=a,t=!1;e>n;e--)t||r.index(e)>0?(t=!0,u=Q.from(r.node(e).copy(u)),d++):c--;let f=Q.empty,p=0;for(let e=a,t=!1;e>n;e--)t||i.after(e+1)<i.end(e)?(t=!0,f=Q.from(i.node(e).copy(f)),p++):l++;e.step(new rG(c,l,o,s,new xU(u.append(f),d,p),u.size-d,!0))}function dG(e,t,n=null,r=e){let i=pG(e,t),a=i&&mG(r,t);return a?i.map(fG).concat({type:t,attrs:n}).concat(a.map(fG)):null}function fG(e){return{type:e,attrs:null}}function pG(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 mG(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 hG(e,t,n){let r=Q.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=Q.from(n[e].type.create(n[e].attrs,r))}let i=t.start,a=t.end;e.step(new rG(i,a,i,a,new xU(r,0,0),n.length,!0))}function gG(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)&&yG(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&&vG(e,t,n,a),sG(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 rG(c,l,c+1,l-1,new xU(Q.from(r.create(o,null,t.marks)),0,0),1,!0)),i===!0&&_G(e,t,n,a),!1}})}function _G(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 vG(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(`
303
+ `))}})}function yG(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function bG(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 rG(t,t+a.nodeSize,t+1,t+a.nodeSize-1,new xU(Q.from(o),0,0),1,!0))}function xG(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 SG(e,t,n=1,r){let i=e.doc.resolve(t),a=Q.empty,o=Q.empty;for(let e=i.depth,t=i.depth-n,s=n-1;e>t;e--,s--){a=Q.from(i.node(e).copy(a));let t=r&&r[s];o=Q.from(t?t.type.create(t.attrs,o):i.node(e).copy(o))}e.step(new nG(t,t,new xU(a.append(o),n,n),!0))}function CG(e,t){let n=e.resolve(t),r=n.index();return TG(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function wG(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 TG(e,t){return!!(e&&t&&!e.isLeaf&&wG(e,t))}function EG(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&&TG(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 DG(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);vG(e,r.node(),r.before(),s)}o.inlineContent&&sG(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 nG(l,c.map(t+n,-1),xU.empty,!0)),r===!0){let t=e.doc.resolve(l);_G(e,t.node(),t.before(),e.steps.length)}return e}function OG(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 kG(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 AG(e,t,n=t,r=xU.empty){if(t==n&&!r.size)return null;let i=e.resolve(t),a=e.resolve(n);return jG(i,a,r)?new nG(t,n,r):new MG(i,a,r).fit()}function jG(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}var MG=class{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=Q.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=Q.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 xU(i,a,o);return e>-1?new rG(n.pos,e,this.$to.pos,this.$to.end(),s,t):s.size||n.pos!=this.$to.pos?new nG(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=FG(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(Q.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;return BG(e,-1)<=t?!1:(this.unplaced.size>1&&BG(e,1)>n&&n++,this.unplaced=new xU(e,t+1,n),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=FG(e,t);if(r.childCount<=1&&t>0){let i=e.size-t<=t+r.size;this.unplaced=new xU(NG(e,t-1,1),t-1,i?t-1:n)}else this.unplaced=new xU(NG(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(IG(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=PG(this.placed,t,Q.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?xU.empty:new xU(NG(a.content,e-1,1),e-1,f<0?a.openEnd:e-1):new xU(NG(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||!LG(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=LG(e,t,r,n,i);if(a){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],i=LG(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=PG(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=PG(this.placed,this.depth,Q.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(Q.empty,!0);e.childCount&&(this.placed=PG(this.placed,this.frontier.length,e))}};function NG(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(NG(e.firstChild.content,t-1,n)))}function PG(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(PG(e.lastChild.content,t-1,n)))}function FG(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function IG(e,t,n){if(t<=0)return e;let r=e.content;return t>1&&(r=r.replaceChild(0,IG(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(Q.empty,!0)))),e.copy(r)}function LG(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&&!RG(n,a.content,o)?s:null}function RG(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}function zG(e){return e.spec.defining||e.spec.definingForContent}function BG(e,t){for(let n=0;;n++){let r=t<0?e.firstChild:e.lastChild;if(!r||r.isAtom)return n;e=r.content}}function VG(e,t,n,r){if(!r.size)return e.deleteRange(t,n);let i=e.doc.resolve(t),a=e.doc.resolve(n);if(jG(i,a,r))return e.step(new nG(t,n,r));let o=GG(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=zG(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 xU(HG(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 HG(e,t,n,r,i){if(t<n){let i=e.firstChild;e=e.replaceChild(0,i.copy(HG(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(Q.empty,!0))}return e}function UG(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let i=OG(e.doc,t,r.type);i!=null&&(t=n=i)}e.replaceRange(t,n,new xU(Q.from(r),0,0))}function WG(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=GG(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 GG(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 KG=class e extends YW{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 XW.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 XW.fromReplace(e,this.pos,this.pos+1,new xU(Q.from(r),0,+!t.isLeaf))}getMap(){return KW.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)}};YW.jsonID(`attr`,KG);var qG=class e extends YW{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 XW.ok(n)}getMap(){return KW.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)}};YW.jsonID(`docAttr`,qG);var JG=class extends Error{};JG=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},JG.prototype=Object.create(Error.prototype),JG.prototype.constructor=JG,JG.prototype.name=`TransformError`;var YG=class{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new qW}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new JG(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=xU.empty){let r=AG(this.doc,e,t,n);return r&&this.step(r),this}replaceWith(e,t,n){return this.replace(e,t,new xU(Q.from(n),0,0))}delete(e,t){return this.replace(e,t,xU.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return VG(this,e,t,n),this}replaceRangeWith(e,t,n){return UG(this,e,t,n),this}deleteRange(e,t){return WG(this,e,t),this}lift(e,t){return uG(this,e,t),this}join(e,t=1){return DG(this,e,t),this}wrap(e,t){return hG(this,e,t),this}setBlockType(e,t=e,n,r=null){return gG(this,e,t,n,r),this}setNodeMarkup(e,t,n=null,r){return bG(this,e,t,n,r),this}setNodeAttribute(e,t,n){return this.step(new KG(e,t,n)),this}setDocAttribute(e,t){return this.step(new qG(e,t)),this}addNodeMark(e,t){return this.step(new eG(e,t)),this}removeNodeMark(e,t){let n=this.doc.nodeAt(e);if(!n)throw RangeError(`No node at position `+e);if(t instanceof yU)t.isInSet(n.marks)&&this.step(new tG(e,t));else{let r=n.marks,i,a=[];for(;i=t.isInSet(r);)a.push(new tG(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 SG(this,e,t,n),this}addMark(e,t,n){return aG(this,e,t,n),this}removeMark(e,t,n){return oG(this,e,t,n),this}clearIncompatible(e,t,n){return sG(this,e,t,n),this}},XG=Object.create(null),ZG=class{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new QG(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=xU.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?xU.empty:t),o==0&&cK(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),cK(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new tK(e):sK(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?sK(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):sK(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 aK(e.node(0))}static atStart(e){return sK(e,e,0,0,1)||new aK(e)}static atEnd(e){return sK(e,e,e.content.size,e.childCount,-1)||new aK(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError(`Invalid input for Selection.fromJSON`);let n=XG[t.type];if(!n)throw RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in XG)throw RangeError(`Duplicate use of selection JSON ID `+e);return XG[e]=t,t.prototype.jsonID=e,t}getBookmark(){return tK.between(this.$anchor,this.$head).getBookmark()}};ZG.prototype.visible=!0;var QG=class{constructor(e,t){this.$from=e,this.$to=t}},$G=!1;function eK(e){!$G&&!e.parent.inlineContent&&($G=!0,console.warn(`TextSelection endpoint not pointing into a node with inline content (`+e.parent.type.name+`)`))}var tK=class e extends ZG{constructor(e,t=e){eK(e),eK(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 ZG.near(r);let i=t.resolve(n.map(this.anchor));return new e(i.parent.inlineContent?i:r,r)}replace(e,t=xU.empty){if(super.replace(e,t),t==xU.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 nK(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=ZG.findFrom(n,r,!0)||ZG.findFrom(n,-r,!0);if(e)n=e.$head;else return ZG.near(n,r)}return t.parent.inlineContent||(i==0?t=n:(t=(ZG.findFrom(t,-r,!0)||ZG.findFrom(t,r,!0)).$anchor,t.pos<n.pos!=i<0&&(t=n))),new e(t,n)}};ZG.jsonID(`text`,tK);var nK=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 tK.between(e.resolve(this.anchor),e.resolve(this.head))}},rK=class e extends ZG{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?ZG.near(a):new e(a)}content(){return new xU(Q.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 iK(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}};rK.prototype.visible=!1,ZG.jsonID(`node`,rK);var iK=class e{constructor(e){this.anchor=e}map(t){let{deleted:n,pos:r}=t.mapResult(this.anchor);return n?new nK(r,r):new e(r)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&rK.isSelectable(n)?new rK(t):ZG.near(t)}},aK=class e extends ZG{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=xU.empty){if(t==xU.empty){e.delete(0,e.doc.content.size);let t=ZG.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 oK}};ZG.jsonID(`all`,aK);var oK={map(){return this},resolve(e){return new aK(e)}};function sK(e,t,n,r,i,a=!1){if(t.inlineContent)return tK.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=sK(e,r,n+i,i<0?r.childCount:0,i,a);if(t)return t}else if(!a&&rK.isSelectable(r))return rK.create(e,n-(i<0?r.nodeSize:0));n+=r.nodeSize*i}return null}function cK(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof nG||i instanceof rG))return;let a=e.mapping.maps[r],o;a.forEach((e,t,n,r)=>{o??=r}),e.setSelection(ZG.near(e.doc.resolve(o),n))}function lK(e,t){return!t||!e?e:e.bind(t)}var uK=class{constructor(e,t,n){this.name=e,this.init=lK(t.init,n),this.apply=lK(t.apply,n)}};new uK(`doc`,{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new uK(`selection`,{init(e,t){return e.selection||ZG.atStart(t.doc)},apply(e){return e.selection}}),new uK(`storedMarks`,{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new uK(`scrollToSelection`,{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}});function dK(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):r==`handleDOMEvents`&&(i=dK(i,t,{})),n[r]=i}return n}var fK=class{constructor(e){this.spec=e,this.props={},e.props&&dK(e.props,this,this.props),this.key=e.key?e.key.key:mK(`plugin`)}getState(e){return e[this.key]}},pK=Object.create(null);function mK(e){return e in pK?e+`$`+ ++pK[e]:(pK[e]=0,e+`$`)}var hK=class{constructor(e=`key`){this.key=mK(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}},gK=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function _K(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock(`backward`,e):n.parentOffset>0)?null:n}var vK=(e,t,n)=>{let r=_K(e,n);if(!r)return!1;let i=wK(r);if(!i){let n=r.blockRange(),i=n&&lG(n);return i!=null&&(t&&t(e.tr.lift(n,i).scrollIntoView()),!0)}let a=i.nodeBefore;if(HK(e,i,t,-1))return!0;if(r.parent.content.size==0&&(SK(a,`end`)||rK.isSelectable(a)))for(let n=r.depth;;n--){let o=AG(e.doc,r.before(n),r.after(n),xU.empty);if(o&&o.slice.size<o.to-o.from){if(t){let n=e.tr.step(o);n.setSelection(SK(a,`end`)?ZG.findFrom(n.doc.resolve(n.mapping.map(i.pos,-1)),-1):rK.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},yK=(e,t,n)=>{let r=_K(e,n);if(!r)return!1;let i=wK(r);return i?xK(e,i,t):!1},bK=(e,t,n)=>{let r=TK(e,n);if(!r)return!1;let i=OK(r);return i?xK(e,i,t):!1};function xK(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=AG(e.doc,i,o,xU.empty);if(!s||s.from!=i||s instanceof nG&&s.slice.size>=o-i)return!1;if(n){let t=e.tr.step(s);t.setSelection(tK.create(t.doc,i)),n(t.scrollIntoView())}return!0}function SK(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 CK=(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=wK(r)}let o=a&&a.nodeBefore;return!o||!rK.isSelectable(o)?!1:(t&&t(e.tr.setSelection(rK.create(e.doc,a.pos-o.nodeSize)).scrollIntoView()),!0)};function wK(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 TK(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock(`forward`,e):n.parentOffset<n.parent.content.size)?null:n}var EK=(e,t,n)=>{let r=TK(e,n);if(!r)return!1;let i=OK(r);if(!i)return!1;let a=i.nodeAfter;if(HK(e,i,t,1))return!0;if(r.parent.content.size==0&&(SK(a,`start`)||rK.isSelectable(a))){let n=AG(e.doc,r.before(),r.after(),xU.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(SK(a,`start`)?ZG.findFrom(r.doc.resolve(r.mapping.map(i.pos)),1):rK.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},DK=(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=OK(r)}let o=a&&a.nodeAfter;return!o||!rK.isSelectable(o)?!1:(t&&t(e.tr.setSelection(rK.create(e.doc,a.pos)).scrollIntoView()),!0)};function OK(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 kK=(e,t)=>{let n=e.selection,r=n instanceof rK,i;if(r){if(n.node.isTextblock||!CG(e.doc,n.from))return!1;i=n.from}else if(i=EG(e.doc,n.from,-1),i==null)return!1;if(t){let n=e.tr.join(i);r&&n.setSelection(rK.create(n.doc,i-e.doc.resolve(i).nodeBefore.nodeSize)),t(n.scrollIntoView())}return!0},AK=(e,t)=>{let n=e.selection,r;if(n instanceof rK){if(n.node.isTextblock||!CG(e.doc,n.to))return!1;r=n.to}else if(r=EG(e.doc,n.to,1),r==null)return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},jK=(e,t)=>{let{$from:n,$to:r}=e.selection,i=n.blockRange(r),a=i&&lG(i);return a!=null&&(t&&t(e.tr.lift(i,a).scrollIntoView()),!0)},MK=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(t&&t(e.tr.insertText(`
304
+ `).scrollIntoView()),!0)};function NK(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 PK=(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=NK(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(ZG.near(i.doc.resolve(r),1)),t(i.scrollIntoView())}return!0},FK=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof aK||r.parent.inlineContent||i.parent.inlineContent)return!1;let a=NK(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(tK.create(o.doc,n+1)),t(o.scrollIntoView())}return!0},IK=(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(xG(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}let r=n.blockRange(),i=r&&lG(r);return i!=null&&(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)};function LK(e){return(t,n)=>{if(t.selection instanceof rK&&t.selection.node.isBlock){let{$from:e}=t.selection;return!e.parentOffset||!xG(t.doc,e.pos)?!1:(n&&n(t.tr.split(e.pos).scrollIntoView()),!0)}if(!t.selection.$from.depth)return!1;let r=t.tr;!t.selection.empty&&(t.selection instanceof tK||t.selection instanceof aK)&&r.deleteSelection();let{$from:i}=r.selection,a=r.steps.length,o=[],s,c,l=!1,u=!1;for(let t=i.depth;;t--)if(i.node(t).isBlock){l=i.end(t)==i.pos+(i.depth-t),u=i.start(t)==i.pos-(i.depth-t),c=NK(i.node(t-1).contentMatchAt(i.indexAfter(t-1)));let n=e&&e(i.parent,l,i);o.unshift(n||(l&&c?{type:c}:null)),s=t;break}else{if(t==1)return!1;o.unshift(null)}let d=i.pos,f=xG(r.doc,d,o.length,o);if(f||=(o[0]=c?{type:c}:null,xG(r.doc,d,o.length,o)),!f)return!1;if(r.split(d,o.length,o),!l&&u&&i.node(s).type!=c){let e=r.mapping.slice(a),t=e.map(i.before(s)),n=r.doc.resolve(t);c&&i.node(s-1).canReplaceWith(n.index(),n.index()+1,c)&&r.setNodeMarkup(e.map(i.before(s)),c)}return n&&n(r.scrollIntoView()),!0}}var RK=LK(),zK=(e,t)=>{let{$from:n,to:r}=e.selection,i,a=n.sharedDepth(r);return a!=0&&(i=n.before(a),t&&t(e.tr.setSelection(rK.create(e.doc,i))),!0)},BK=(e,t)=>(t&&t(e.tr.setSelection(new aK(e.doc))),!0);function VK(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||CG(e.doc,t.pos))?!1:(n&&n(e.tr.join(t.pos).scrollIntoView()),!0)}function HK(e,t,n,r){let i=t.nodeBefore,a=t.nodeAfter,o,s,c=i.type.spec.isolating||a.type.spec.isolating;if(!c&&VK(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=Q.empty;for(let e=o.length-1;e>=0;e--)s=Q.from(o[e].create(null,s));s=Q.from(i.copy(s));let c=e.tr.step(new rG(t.pos-1,r,t.pos,r,new xU(s,1,0),o.length,!0)),l=c.doc.resolve(r+2*o.length);l.nodeAfter&&l.nodeAfter.type==i.type&&CG(c.doc,l.pos)&&c.join(l.pos),n(c.scrollIntoView())}return!0}let u=a.type.spec.isolating||r>0&&c?null:ZG.findFrom(t,1),d=u&&u.$from.blockRange(u.$to),f=d&&lG(d);if(f!=null&&f>=t.depth)return n&&n(e.tr.lift(d,f).scrollIntoView()),!0;if(l&&SK(a,`start`,!0)&&SK(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=Q.empty;for(let e=o.length-1;e>=0;e--)r=Q.from(o[e].copy(r));n(e.tr.step(new rG(t.pos-o.length,t.pos+a.nodeSize,t.pos+c,t.pos+a.nodeSize-c,new xU(r,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function UK(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(tK.create(t.doc,e<0?i.start(a):i.end(a)))),!0):!1}}var WK=UK(-1),GK=UK(1);function KK(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a),s=o&&dG(o,e,t);return s?(r&&r(n.tr.wrap(o,s).scrollIntoView()),!0):!1}}function qK(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 JK(...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 YK=JK(gK,vK,CK),XK=JK(gK,EK,DK),ZK={Enter:JK(MK,FK,IK,RK),"Mod-Enter":PK,Backspace:YK,"Mod-Backspace":YK,"Shift-Backspace":YK,Delete:XK,"Mod-Delete":XK,"Mod-a":BK},QK={"Ctrl-h":ZK.Backspace,"Alt-Backspace":ZK[`Mod-Backspace`],"Ctrl-d":ZK.Delete,"Ctrl-Alt-Backspace":ZK[`Mod-Delete`],"Alt-Delete":ZK[`Mod-Delete`],"Alt-d":ZK[`Mod-Delete`],"Ctrl-a":WK,"Ctrl-e":GK};for(let e in ZK)QK[e]=ZK[e];typeof navigator<`u`?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<`u`&&os.platform&&os.platform();function $K(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 eq(s,o,e,t)?(r&&r(s.scrollIntoView()),!0):!1}}function eq(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 RU(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new RU(t.$from,o.resolve(t.$to.end(t.depth)),t.depth)),i=!0}let s=dG(a,n,r,t);return s?(e&&tq(e,t,s,i,n),!0):!1}function tq(e,t,n,r,i){let a=Q.empty;for(let e=n.length-1;e>=0;e--)a=Q.from(n[e].type.create(n[e].attrs,a));e.step(new rG(t.start-(r?2:0),t.end,t.start,t.end,new xU(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&&xG(e.doc,c,s)&&(e.split(c,s),c+=2*s),c+=l.child(n).nodeSize;return e}function nq(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?rq(t,n,e,a):iq(t,n,a):!0:!1}}function rq(e,t,n,r){let i=e.tr,a=r.end,o=r.$to.end(r.depth);a<o&&(i.step(new rG(a-1,o,a,o,new xU(Q.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new RU(i.doc.resolve(r.$from.pos),i.doc.resolve(o),r.depth));let s=lG(r);if(s==null)return!1;i.lift(r,s);let c=i.doc.resolve(i.mapping.map(a,-1)-1);return CG(i.doc,c.pos)&&c.nodeBefore.type==c.nodeAfter.type&&i.join(c.pos),t(i.scrollIntoView()),!0}function iq(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?Q.empty:Q.from(i))))return!1;let d=a.pos,f=d+o.nodeSize;return r.step(new rG(d-+!!s,f+ +!!c,d+1,f-1,new xU((s?Q.empty:Q.from(i.copy(Q.empty))).append(c?Q.empty:Q.from(i.copy(Q.empty))),+!s,+!c),+!s)),t(r.scrollIntoView()),!0}function aq(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=Q.from(r?e.create():null),o=new xU(Q.from(e.create(null,Q.from(s.type.create(null,i)))),r?3:1,0),l=a.start,u=a.end;n(t.tr.step(new rG(l-(r?3:1),u,l,u,o,1,!0)).scrollIntoView())}return!0}}var oq=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},sq=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t},cq=null,lq=function(e,t,n){let r=cq||=document.createRange();return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},uq=function(){cq=null},dq=function(e,t,n,r){return n&&(pq(e,t,n,r,-1)||pq(e,t,n,r,1))},fq=/^(img|br|input|textarea|hr)$/i;function pq(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:mq(e))){let n=e.parentNode;if(!n||n.nodeType!=1||vq(e)||fq.test(e.nodeName)||e.contentEditable==`false`)return!1;t=oq(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?mq(e):0}else return!1}}function mq(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function hq(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=mq(e)}else if(e.parentNode&&!vq(e))t=oq(e),e=e.parentNode;else return null}}function gq(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&&!vq(e))t=oq(e)+1,e=e.parentNode;else return null}}function _q(e,t,n){for(let r=t==0,i=t==mq(e);r||i;){if(e==n)return!0;let t=oq(e);if(e=e.parentNode,!e)return!1;r&&=t==0,i&&=t==mq(e)}}function vq(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 yq=function(e){return e.focusNode&&dq(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function bq(e,t){let n=document.createEvent(`Event`);return n.initEvent(`keydown`,!0,!0),n.keyCode=e,n.key=n.code=t,n}function xq(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function Sq(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:Math.min(mq(r.offsetNode),r.offset)}}catch{}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:Math.min(mq(r.startContainer),r.startOffset)}}}var Cq=typeof navigator<`u`?navigator:null,wq=typeof document<`u`?document:null,Tq=Cq&&Cq.userAgent||``,Eq=/Edge\/(\d+)/.exec(Tq),Dq=/MSIE \d/.exec(Tq),Oq=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Tq),kq=!!(Dq||Oq||Eq),Aq=Dq?document.documentMode:Oq?+Oq[1]:Eq?+Eq[1]:0,jq=!kq&&/gecko\/(\d+)/i.test(Tq);jq&&+(/Firefox\/(\d+)/.exec(Tq)||[0,0])[1];var Mq=!kq&&/Chrome\/(\d+)/.exec(Tq),Nq=!!Mq,Pq=Mq?+Mq[1]:0,Fq=!kq&&!!Cq&&/Apple Computer/.test(Cq.vendor),Iq=Fq&&(/Mobile\/\w+/.test(Tq)||!!Cq&&Cq.maxTouchPoints>2),Lq=Iq||(Cq?/Mac/.test(Cq.platform):!1),Rq=Cq?/Win/.test(Cq.platform):!1,zq=/Android \d/.test(Tq),Bq=!!wq&&`webkitFontSmoothing`in wq.documentElement.style,Vq=Bq?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function Hq(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 Uq(e,t){return typeof e==`number`?e:e[t]}function Wq(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 Gq(e,t,n){if(!oJ(t)&&t.left==0)return;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=sq(o);continue}let e=o,n=e==a.body,s=n?Hq(a):Wq(e),c=0,l=0;if(t.top<s.top+Uq(r,`top`)?l=-(s.top-t.top+Uq(i,`top`)):t.bottom>s.bottom-Uq(r,`bottom`)&&(l=t.bottom-t.top>s.bottom-s.top?t.top+Uq(i,`top`)-s.top:t.bottom-s.bottom+Uq(i,`bottom`)),t.left<s.left+Uq(r,`left`)?c=-(s.left-t.left+Uq(i,`left`)):t.right>s.right-Uq(r,`right`)&&(c=t.right-s.right+Uq(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:sq(o)}}function Kq(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:qq(e.dom)}}function qq(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=sq(r));return t}function Jq({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;Yq(n,r==0?0:r-t)}function Yq(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 Xq=null;function Zq(e){if(e.setActive)return e.setActive();if(Xq)return e.focus(Xq);let t=qq(e);e.focus(Xq==null?{get preventScroll(){return Xq={preventScroll:!0},!0}}:void 0),Xq||(Xq=!1,Yq(t,0))}function Qq(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=lq(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?$q(n,i):!n||r&&n.nodeType==1?{node:e,offset:a}:Qq(n,i)}function $q(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=sJ(r,1);if(n.top!=n.bottom&&eJ(t,n)){i={node:e,offset:a+ +(t.left>=(n.left+n.right)/2)};break}}return r.detach(),i||{node:e,offset:0}}function eJ(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function tJ(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}function nJ(e,t,n){let{node:r,offset:i}=Qq(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 rJ(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 iJ(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(eJ(t,i))return iJ(n,t,i)}}if((a=(a+1)%r)==i)break}return e}function aJ(e,t){let n=e.dom.ownerDocument,r,i=0,a=Sq(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(!eJ(t,n)||(o=iJ(e.dom,t,n),!o))return null}if(Fq)for(let e=o;r&&e;e=sq(e))e.draggable&&(r=void 0);if(o=tJ(o,t),r){if(jq&&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;Bq&&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=rJ(e,r,i,t))}s??=nJ(e,o,t);let c=e.docView.nearestDesc(o,!0);return{pos:s,inside:c?c.posAtStart-c.border:-1}}function oJ(e){return e.top<e.bottom||e.left<e.right}function sJ(e,t){let n=e.getClientRects();if(n.length){let e=n[t<0?0:n.length-1];if(oJ(e))return e}return Array.prototype.find.call(n,oJ)||e.getBoundingClientRect()}var cJ=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function lJ(e,t,n){let{node:r,offset:i,atom:a}=e.docView.domFromPos(t,n<0?-1:1),o=Bq||jq;if(r.nodeType==3){if(o&&(cJ.test(r.nodeValue)||(n<0?!i:i==r.nodeValue.length))){let e=sJ(lq(r,i,i),n);if(jq&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let t=sJ(lq(r,i-1,i-1),-1);if(t.top==e.top){let n=sJ(lq(r,i,i+1),-1);if(n.top!=e.top)return uJ(n,n.left<t.left)}}return e}{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++,uJ(sJ(lq(r,e,t),a),a<0)}}if(!e.state.doc.resolve(t-(a||0)).parent.inlineContent){if(a==null&&i&&(n<0||i==mq(r))){let e=r.childNodes[i-1];if(e.nodeType==1)return dJ(e.getBoundingClientRect(),!1)}if(a==null&&i<mq(r)){let e=r.childNodes[i];if(e.nodeType==1)return dJ(e.getBoundingClientRect(),!0)}return dJ(r.getBoundingClientRect(),n>=0)}if(a==null&&i&&(n<0||i==mq(r))){let e=r.childNodes[i-1],t=e.nodeType==3?lq(e,mq(e)-+!o):e.nodeType==1&&(e.nodeName!=`BR`||!e.nextSibling)?e:null;if(t)return uJ(sJ(t,1),!1)}if(a==null&&i<mq(r)){let e=r.childNodes[i];for(;e.pmViewDesc&&e.pmViewDesc.ignoreForCoords;)e=e.nextSibling;let t=e?e.nodeType==3?lq(e,0,+!o):e.nodeType==1?e:null:null;if(t)return uJ(sJ(t,-1),!0)}return uJ(sJ(r.nodeType==3?lq(r):r,-n),n>=0)}function uJ(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 dJ(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 fJ(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 pJ(e,t,n){let r=t.selection,i=n==`up`?r.$from:r.$to;return fJ(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=lJ(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=lq(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 mJ=/[\u0590-\u08ac]/;function hJ(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?!mJ.test(r.parent.textContent)||!s.modify?n==`left`||n==`backward`?a:o:fJ(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 gJ=null,_J=null,vJ=!1;function yJ(e,t,n){return gJ==t&&_J==n?vJ:(gJ=t,_J=n,vJ=n==`up`||n==`down`?pJ(e,t,n):hJ(e,t,n))}var bJ=0,xJ=1,SJ=2,CJ=3,wJ=class{constructor(e,t,n,r){this.parent=e,this.children=t,this.dom=n,this.contentDOM=r,this.dirty=bJ,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,n){return!1}matchesHack(e){return!1}parseRule(e){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}{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>oq(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 jJ){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 TJ&&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?oq(e.dom)+1:0}}{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?oq(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=oq(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=oq(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((jq||Fq)&&e==t){let{node:e,offset:t}=o;if(e.nodeType==3){if(u=!!(t&&e.nodeValue[t-1]==`
305
+ `),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:oq(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(jq&&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&&Fq)&&dq(o.node,o.offset,l.anchorNode,l.anchorOffset)&&dq(s.node,s.offset,l.focusNode,l.focusOffset))return;let d=!1;if((c.extend||e==t)&&!(u&&jq)){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?SJ:xJ,e==r&&t==o&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=CJ:i.markDirty(e-r,t-r);return}i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?SJ:CJ}n=a}this.dirty=SJ}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=e==1?SJ:xJ;t.dirty<n&&(t.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}},TJ=class extends wJ{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.hasAttribute(`contenteditable`)||(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==bJ&&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}},EJ=class extends wJ{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}},DJ=class e extends wJ{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=kW.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&CJ||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=CJ&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=bJ){let e=this.parent;for(;!e.node;)e=e.parent;e.dirty<this.dirty&&(e.dirty=this.dirty),this.dirty=bJ}}slice(t,n,r){let i=e.create(this.parent,this.mark,!0,r),a=this.children,o=this.size;n<o&&(a=JJ(a,n,o,r)),t>0&&(a=JJ(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()}},OJ=class e extends wJ{constructor(e,t,n,r,i,a,o){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=kW.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=zJ(u,r,n),l?c=new MJ(t,n,r,i,u,d||null,f,l):n.isText?new AJ(t,n,r,i,u,f):new e(t,n,r,i,u,d||null,f)}parseRule(e){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace==`pre`&&(t.preserveWhitespace=`full`),!this.contentDOM)t.getContent=()=>this.node.content;else if(!this.contentLost)t.contentElement=this.contentDOM;else{for(let e=this.children.length-1;e>=0;e--){let n=this.children[e];if(this.dom.contains(n.dom.parentNode)){t.contentElement=n.dom.parentNode;break}}if(!t.contentElement){let n=e&&e.find(t=>t.nodeType==1&&e.indexOf(t.parentNode)<0&&this.dom.contains(t));n?t.contentElement=n:t.getContent=()=>Q.empty}}return t}matchesNode(e,t,n){return this.dirty==bJ&&e.eq(this.node)&&BJ(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 HJ(this,a&&a.node,e);GJ(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?yU.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==SJ)&&(a&&this.protectLocalComposition(e,a),NJ(this.contentDOM,this.children,e),Iq&&KJ(this.dom))}localCompositionInfo(e,t){let{from:n,to:r}=e.state.selection;if(!(e.state.selection instanceof tK)||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=qJ(this.node.content,e,n-t,r-t);return a<0?null:{node:i,pos:a,text:e}}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&&(i.pmViewDesc=void 0)}let a=new EJ(this,i,t,r);e.input.compositionNodes.push(a),this.children=JJ(this.children,n,n+r.length,e,a)}update(e,t,n,r){return this.dirty==CJ||!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=bJ}updateOuterDeco(e){if(BJ(e,this.outerDeco))return;let t=this.nodeDOM.nodeType!=1,n=this.dom;this.dom=LJ(this.dom,this.nodeDOM,IJ(this.outerDeco,this.node,t),IJ(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 kJ(e,t,n,r,i){zJ(r,t,e);let a=new OJ(void 0,e,t,n,r,r,r);return a.contentDOM&&a.updateChildren(i,0),a}var AJ=class e extends OJ{constructor(e,t,n,r,i,a){super(e,t,n,r,i,null,a)}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==CJ||this.dirty!=bJ&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(t),(this.dirty!=bJ||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=bJ,!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)}markDirty(e,t){super.markDirty(e,t),this.dom!=this.nodeDOM&&(e==0||t==this.nodeDOM.nodeValue.length)&&(this.dirty=CJ)}get domAtom(){return!1}isText(e){return this.node.text==e}},jJ=class extends wJ{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==bJ&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName==`IMG`}},MJ=class extends OJ{constructor(e,t,n,r,i,a,o,s){super(e,t,n,r,i,a,o),this.spec=s}update(e,t,n,r){if(this.dirty==CJ)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}return!this.contentDOM&&!e.isLeaf?!1: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 NJ(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=VJ(r),i=!0;r=r.nextSibling}else i=!0,e.insertBefore(s,r);if(o instanceof DJ){let t=r?r.previousSibling:e.lastChild;NJ(o.contentDOM,o.children,n),r=t?t.nextSibling:e.firstChild}}for(;r;)r=VJ(r),i=!0;i&&n.trackWrites==e&&(n.trackWrites=null)}var PJ=function(e){e&&(this.nodeName=e)};PJ.prototype=Object.create(null);var FJ=[new PJ];function IJ(e,t,n){if(e.length==0)return FJ;let r=n?FJ[0]:new PJ,i=[r];for(let a=0;a<e.length;a++){let o=e[a].type.attrs;if(o){o.nodeName&&i.push(r=new PJ(o.nodeName));for(let e in o){let a=o[e];a!=null&&(n&&i.length==1&&i.push(r=new PJ(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 LJ(e,t,n,r){if(n==FJ&&r==FJ)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=FJ[0],i=t)}RJ(i,o||FJ[0],a)}return i}function RJ(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 zJ(e,t,n){return LJ(e,e,FJ,IJ(t,n,e.nodeType!=1))}function BJ(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 VJ(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}var HJ=class{constructor(e,t,n){this.lock=t,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=UJ(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=bJ,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<0&&this.index<this.top.children.length){let t=this.top.children[this.index];t instanceof DJ&&t.dirty!=CJ&&t.mark.type==e[a].type&&t.spec.update&&!this.isLocked(t.dom)&&t.spec.update(e[a])&&(t.mark=e[a],i=this.index,this.changed=!0)}if(i>-1)i>this.index&&(this.changed=!0,this.destroyBetween(this.index,i)),this.top=this.top.children[this.index];else{let r=DJ.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==CJ&&a.dom==a.contentDOM&&(a.dirty=SJ),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 OJ){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!=CJ&&BJ(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=SJ,u.updateChildren(r,a+1),u.dirty=bJ),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)||!BJ(n,e.outerDeco)||!r.eq(e.innerDeco))return null;let o=OJ.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=OJ.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 TJ(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 DJ;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof AJ)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((Fq||Nq)&&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 jJ(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 UJ(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 DJ)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 WJ(e,t){return e.type.side-t.type.side}function GJ(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(WJ);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 KJ(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 qJ(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 JJ(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 YJ(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(yq(n)){for(c=o;i&&!i.node;)i=i.parent;let e=i.node;if(i&&e.isAtom&&rK.isSelectable(e)&&i.parent&&!(e.isInline&&_q(n.focusNode,n.focusOffset,i.dom))){let e=i.posBefore;l=new rK(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=oY(e,u,s,n)}return l}function XJ(e){return e.editable?e.hasFocus():cY(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function ZJ(e,t=!1){let n=e.state.selection;if(iY(e,n),!XJ(e))return;let r=e.input.mouseDown;if(!t&&Nq&&r){let t=e.domSelectionRange(),n=e.domObserver.currentSelection;if(t.anchorNode&&n.anchorNode&&dq(t.anchorNode,t.anchorOffset,n.anchorNode,n.anchorOffset)&&r.delaySelUpdate()){e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)rY(e);else{let{anchor:r,head:i}=n,a,o;QJ&&!(n instanceof tK)&&(n.$from.parent.inlineContent||(a=$J(e,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(o=$J(e,n.to))),e.docView.setSelection(r,i,e,t),QJ&&(a&&tY(a),o&&tY(o)),n.visible?e.dom.classList.remove(`ProseMirror-hideselection`):(e.dom.classList.add(`ProseMirror-hideselection`),`onselectionchange`in document&&nY(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}var QJ=Fq||Nq&&Pq<63;function $J(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(Fq&&i&&i.contentEditable==`false`)return eY(i);if((!i||i.contentEditable==`false`)&&(!a||a.contentEditable==`false`)){if(i)return eY(i);if(a)return eY(a)}}function eY(e){return e.contentEditable=`true`,Fq&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function tY(e){e.contentEditable=`false`,e.wasDraggable&&=(e.draggable=!0,null)}function nY(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(()=>{(!XJ(e)||e.state.selection.visible)&&e.dom.classList.remove(`ProseMirror-hideselection`)},20))})}function rY(e){let t=e.domSelection();if(!t)return;let n=e.cursorWrapper.dom,r=n.nodeName==`IMG`;r?t.collapse(n.parentNode,oq(n)+1):t.collapse(n,0),!r&&!e.state.selection.visible&&kq&&Aq<=11&&(n.disabled=!0,n.disabled=!1)}function iY(e,t){if(t instanceof rK){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(aY(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else aY(e)}function aY(e){e.lastSelectedViewDesc&&=(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),void 0)}function oY(e,t,n,r){return e.someProp(`createSelectionBetween`,r=>r(e,t,n))||tK.between(t,n,r)}function sY(e){return e.editable&&!e.hasFocus()?!1:cY(e)}function cY(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 lY(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return dq(t.node,t.offset,n.anchorNode,n.anchorOffset)}function uY(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&&ZG.findFrom(a,t)}function dY(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function fY(e,t,n){let r=e.state.selection;if(r instanceof tK){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 dY(e,new tK(r.$anchor,a))}if(!r.empty)return!1;if(e.endOfTextblock(t>0?`forward`:`backward`)){let n=uY(e.state,t);return n&&n instanceof rK?dY(e,n):!1}if(!(Lq&&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?rK.isSelectable(i)?dY(e,new rK(t<0?e.state.doc.resolve(n.pos-i.nodeSize):n)):Bq?dY(e,new tK(e.state.doc.resolve(t<0?o:o+i.nodeSize))):!1:!1}}else if(r instanceof rK&&r.node.isInline)return dY(e,new tK(t>0?r.$to:r.$from));else{let n=uY(e.state,t);return n?dY(e,n):!1}}function pY(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function mY(e,t){let n=e.pmViewDesc;return n&&n.size==0&&(t<0||e.nextSibling||e.nodeName!=`BR`)}function hY(e,t){return t<0?gY(e):_Y(e)}function gY(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,a,o=!1;for(jq&&n.nodeType==1&&r<pY(n)&&mY(n.childNodes[r],-1)&&(o=!0);;)if(r>0){if(n.nodeType!=1)break;{let e=n.childNodes[r-1];if(mY(e,-1))i=n,a=--r;else if(e.nodeType==3)n=e,r=n.nodeValue.length;else break}}else if(vY(n))break;else{let t=n.previousSibling;for(;t&&mY(t,-1);)i=n.parentNode,a=oq(t),t=t.previousSibling;if(t)n=t,r=pY(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}o?xY(e,n,r):i&&xY(e,i,a)}function _Y(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i=pY(n),a,o;for(;;)if(r<i){if(n.nodeType!=1)break;let e=n.childNodes[r];if(mY(e,1))a=n,o=++r;else break}else if(vY(n))break;else{let t=n.nextSibling;for(;t&&mY(t,1);)a=t.parentNode,o=oq(t)+1,t=t.nextSibling;if(t)n=t,r=0,i=pY(n);else{if(n=n.parentNode,n==e.dom)break;r=i=0}}a&&xY(e,a,o)}function vY(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function yY(e,t){for(;e&&t==e.childNodes.length&&!vq(e);)t=oq(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 bY(e,t){for(;e&&!t&&!vq(e);)t=oq(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 xY(e,t,n){if(t.nodeType!=3){let e,r;(r=yY(t,n))?(t=r,n=0):(e=bY(t,n))&&(t=e,n=e.nodeValue.length)}let r=e.domSelection();if(!r)return;if(yq(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&&ZJ(e)},50)}function SY(e,t){let n=e.state.doc.resolve(t);if(!(Nq||Rq)&&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 CY(e,t,n){let r=e.state.selection;if(r instanceof tK&&!r.empty||n.indexOf(`s`)>-1||Lq&&n.indexOf(`m`)>-1)return!1;let{$from:i,$to:a}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?`up`:`down`)){let n=uY(e.state,t);if(n&&n instanceof rK)return dY(e,n)}if(!i.parent.inlineContent){let n=t<0?i:a,o=r instanceof aK?ZG.near(n,t):ZG.findFrom(n,t);return o?dY(e,o):!1}return!1}function wY(e,t){if(!(e.state.selection instanceof tK))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 TY(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function EY(e){if(!Fq||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;TY(e,n,`true`),setTimeout(()=>TY(e,n,`false`),20)}return!1}function DY(e){let t=``;return e.ctrlKey&&(t+=`c`),e.metaKey&&(t+=`m`),e.altKey&&(t+=`a`),e.shiftKey&&(t+=`s`),t}function OY(e,t){let n=t.keyCode,r=DY(t);if(n==8||Lq&&n==72&&r==`c`)return wY(e,-1)||hY(e,-1);if(n==46&&!t.shiftKey||Lq&&n==68&&r==`c`)return wY(e,1)||hY(e,1);if(n==13||n==27)return!0;if(n==37||Lq&&n==66&&r==`c`){let t=n==37?SY(e,e.state.selection.from)==`ltr`?-1:1:-1;return fY(e,t,r)||hY(e,t)}if(n==39||Lq&&n==70&&r==`c`){let t=n==39?SY(e,e.state.selection.from)==`ltr`?1:-1:1;return fY(e,t,r)||hY(e,t)}return n==38||Lq&&n==80&&r==`c`?CY(e,-1,r)||hY(e,-1):n==40||Lq&&n==78&&r==`c`?EY(e)||CY(e,1,r)||hY(e,1):!(r!=(Lq?`m`:`c`)||n!=66&&n!=73&&n!=89&&n!=90)}function kY(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`)||kW.fromSchema(e.state.schema),s=zY(),c=s.createElement(`div`);c.appendChild(o.serializeFragment(r,{document:s}));let l=c.firstChild,u,d=0;for(;l&&l.nodeType==1&&(u=RY[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,`
306
+
307
+ `),slice:t}}function AY(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 xU(Q.from(e.state.schema.text(t.replace(/\r\n?/g,`
308
+ `))),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=kW.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=HY(n),Bq&&UY(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`)||hW.fromSchema(e.state.schema)).parseSlice(o,{preserveWhitespace:!!(c||u),context:i,ruleFromNode(e){return e.nodeName==`BR`&&!e.nextSibling&&e.parentNode&&!jY.test(e.parentNode.nodeName)?{ignore:!0}:null}}),u)s=WY(LY(s,+u[1],+u[2]),u[4]);else if(s=xU.maxOpen(MY(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=LY(s,e,t)}return e.someProp(`transformPasted`,t=>{s=t(s,e,c)}),s}var jY=/^(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 MY(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&&PY(t,i,e,a[a.length-1],0))a[a.length-1]=n;else{a.length&&(a[a.length-1]=FY(a[a.length-1],i.length));let n=NY(e,t);a.push(n),r=r.matchType(n.type),i=t}}),a)return Q.from(a)}return e}function NY(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,Q.from(e));return e}function PY(e,t,n,r,i){if(i<e.length&&i<t.length&&e[i]==t[i]){let a=PY(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(Q.from(NY(n,e,i+1))))}}function FY(e,t){if(t==0)return e;let n=e.content.replaceChild(e.childCount-1,FY(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(Q.empty,!0);return e.copy(n.append(r))}function IY(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=IY(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(Q.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,o.copy(s))}function LY(e,t,n){return t<e.openStart&&(e=new xU(IY(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new xU(IY(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}var RY={thead:[`table`],tbody:[`table`],tfoot:[`table`],caption:[`table`],colgroup:[`table`],col:[`table`,`colgroup`],tr:[`table`,`tbody`],td:[`table`,`tbody`,`tr`],th:[`table`,`tbody`,`tr`]};function zY(){return document.implementation.createHTMLDocument(`title`)}var BY=null;function VY(e){let t=window.trustedTypes;if(!t)return e;if(!BY){if(BY=t.defaultPolicy)try{return BY.createHTML(e)}catch{}BY=t.createPolicy(`ProseMirrorClipboard`,{createHTML:e=>e})}return BY.createHTML(e)}function HY(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=zY(),r=n.body,i=/<([a-z][^>\s]+)/i.exec(e),a;if((a=i&&RY[i[1].toLowerCase()])&&(e=a.map(e=>`<`+e+`>`).join(``)+e+a.map(e=>`</`+e+`>`).reverse().join(``)),r.innerHTML=VY(e),a)for(let e=0;e<a.length;e++)r=r.querySelector(a[e])||r;for(let e=0;e<n.styleSheets.length;e++){let t=n.styleSheets[e];for(let e=0;e<t.rules.length;e++){let n=t.rules[e];if(n instanceof CSSStyleRule){let e=r.querySelectorAll(n.selectorText);for(let t=0;t<e.length;t++)e[t].style.cssText+=n.style.cssText}}}return r}function UY(e){let t=e.querySelectorAll(Nq?`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 WY(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;try{t.checkAttrs(r[e+1])}catch{break}i=Q.from(t.create(r[e+1],i)),a++,o++}return new xU(i,a,o)}var GY={},KY={},qY={touchstart:!0,touchmove:!0},JY=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 YY(e){for(let t in GY){let n=GY[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=t=>{eX(e,t)&&!$Y(e,t)&&(e.editable||!(t.type in KY))&&n(e,t)},qY[t]?{passive:!0}:void 0)}Fq&&e.dom.addEventListener(`input`,()=>null),QY(e)}function XY(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function ZY(e){e.input.mouseDown&&e.input.mouseDown.done(),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 QY(e){e.someProp(`handleDOMEvents`,t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=t=>$Y(e,t))})}function $Y(e,t){return e.someProp(`handleDOMEvents`,n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function eX(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 tX(e,t){!$Y(e,t)&&GY[t.type]&&(e.editable||!(t.type in KY))&&GY[t.type](e,t)}KY.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!vX(e)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(zq&&Nq&&n.keyCode==13))){if(n.keyCode!=229&&e.domObserver.forceFlush(),Iq&&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,bq(13,`Enter`))),e.input.lastIOSEnter=0)},200)}else e.someProp(`handleKeyDown`,t=>t(e,n))||OY(e,n)?n.preventDefault():XY(e,`key`)}},KY.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)},KY.keypress=(e,t)=>{let n=t;if(vX(e)||!n.charCode||n.ctrlKey&&!n.altKey||Lq&&n.metaKey)return;if(e.someProp(`handleKeyPress`,t=>t(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof tK)||!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 nX(e){return{left:e.clientX,top:e.clientY}}function rX(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function iX(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 aX(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 oX(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&rK.isSelectable(r)?(aX(e,new rK(n),`pointer`),!0):!1}function sX(e,t){if(t==-1)return!1;let n=e.state.selection,r,i;n instanceof rK&&(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(rK.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&&(aX(e,rK.create(e.state.doc,i),`pointer`),!0)}function cX(e,t,n,r,i){return iX(e,`handleClickOn`,t,n,r)||e.someProp(`handleClick`,n=>n(e,t,r))||(i?sX(e,n):oX(e,n))}function lX(e,t,n,r){return iX(e,`handleDoubleClickOn`,t,n,r)||e.someProp(`handleDoubleClick`,n=>n(e,t,r))}function uX(e,t,n,r){return iX(e,`handleTripleClickOn`,t,n,r)||e.someProp(`handleTripleClick`,n=>n(e,t,r))||dX(e,n,r)}function dX(e,t,n){if(n.button!=0)return!1;let r=fX(e,t,!0),i=e.state.doc;return r?(aX(e,r,`pointer`),r instanceof tK&&i.eq(e.state.doc)&&(e.input.mouseDown=new _X(e,r)),!0):!1}function fX(e,t,n){let r=e.state.doc;if(t==-1)return r.inlineContent?tK.create(r,0,r.content.size):null;let i=r.resolve(t);for(let e=i.depth+1;e>0;e--){let t=e>i.depth?i.nodeAfter:i.node(e),a=i.before(e);if(t.inlineContent)return tK.create(r,a+1,a+1+t.content.size);if(n&&rK.isSelectable(t))return rK.create(r,a)}return null}function pX(e){return wX(e)}var mX=Lq?`metaKey`:`ctrlKey`;GY.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=pX(e),i=Date.now(),a=`singleClick`;i-e.input.lastClick.time<500&&rX(n,e.input.lastClick)&&!n[mX]&&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},e.input.mouseDown&&e.input.mouseDown.done();let o=e.posAtCoords(nX(n));o&&(a==`singleClick`?e.input.mouseDown=new gX(e,o,n,!!r):(a==`doubleClick`?lX:uX)(e,o.pos,o.inside,n)?n.preventDefault():XY(e,`pointer`))};var hX=class{constructor(e){this.view=e,this.mightDrag=null,e.root.addEventListener(`mouseup`,this.up=this.up.bind(this)),e.root.addEventListener(`mousemove`,this.move=this.move.bind(this))}up(e){this.done()}move(e){e.buttons==0&&this.done()}done(){this.view.root.removeEventListener(`mouseup`,this.up),this.view.root.removeEventListener(`mousemove`,this.move),this.view.input.mouseDown==this&&(this.view.input.mouseDown=null)}delaySelUpdate(){return!1}},gX=class extends hX{constructor(e,t,n,r){super(e),this.pos=t,this.event=n,this.flushed=r,this.delayedSelectionSync=!1,this.startDoc=e.state.doc,this.selectNode=!!n[mX],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 rK&&c.from<=a&&c.to>a)&&(this.mightDrag={node:i,pos:a,addAttr:!(!this.target||this.target.draggable),setUneditable:!!(this.target&&jq&&!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()),XY(e,`pointer`)}done(){super.done(),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(()=>{this.view.isDestroyed||ZJ(this.view)})}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(nX(e))),this.updateAllowDefault(e),this.allowDefault||!t?XY(this.view,`pointer`):cX(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Fq&&this.mightDrag&&!this.mightDrag.node.isAtom||Nq&&!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)?(aX(this.view,ZG.near(this.view.state.doc.resolve(t.pos)),`pointer`),e.preventDefault()):XY(this.view,`pointer`)}move(e){this.updateAllowDefault(e),XY(this.view,`pointer`),super.move(e)}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}delaySelUpdate(){return this.allowDefault?(this.delayedSelectionSync=!0,!0):!1}},_X=class extends hX{constructor(e,t){super(e),this.startSelection=t,this.startDoc=e.state.doc}move(e){if(e.buttons==0||this.view.isDestroyed||!this.view.state.doc.eq(this.startDoc)){this.done();return}e.preventDefault(),XY(this.view,`pointer`);let t=this.view.posAtCoords(nX(e)),n=t&&fX(this.view,t.inside,!1);if(!n)return;let{doc:r}=this.view.state,i=this.startSelection,[a,o]=n.from<i.from?[i.to,n.from]:[i.from,n.to];aX(this.view,tK.create(r,a,o),`pointer`)}};GY.touchstart=e=>{e.input.lastTouch=Date.now(),pX(e),XY(e,`pointer`)},GY.touchmove=e=>{e.input.lastTouch=Date.now(),XY(e,`pointer`)},GY.contextmenu=e=>pX(e);function vX(e,t){return e.composing?!0:Fq&&Math.abs(Date.now()-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}var yX=zq?5e3:-1;KY.compositionstart=KY.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof tK&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(e=>e.type.spec.inclusive===!1)||Nq&&Rq&&bX(e)))e.markCursor=e.state.storedMarks||n.marks(),wX(e,!0),e.markCursor=null;else if(wX(e,!t.selection.empty),jq&&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}n=t,r=-1}}e.input.composing=!0}xX(e,yX)};function bX(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`}KY.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now(),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++,xX(e,20))};function xX(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>wX(e),t))}function SX(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function CX(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=hq(t.focusNode,t.focusOffset),r=gq(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 wX(e,t=!1){if(!(zq&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),SX(e),t||e.docView&&e.docView.dirty){let n=YJ(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 TX(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 EX=kq&&Aq<15||Iq&&Vq<604;GY.copy=KY.cut=(e,t)=>{let n=t,r=e.state.selection,i=n.type==`cut`;if(r.empty)return;let a=EX?null:n.clipboardData,{dom:o,text:s}=kY(e,r.content());a?(n.preventDefault(),a.clearData(),a.setData(`text/html`,o.innerHTML),a.setData(`text/plain`,s)):TX(e,o),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta(`uiEvent`,`cut`))};function DX(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function OX(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?kX(e,r.value,null,i,t):kX(e,r.textContent,r.innerHTML,i,t)},50)}function kX(e,t,n,r,i){let a=AY(e,t,n,r,e.state.selection.$from);if(e.someProp(`handlePaste`,t=>t(e,i,a||xU.empty)))return!0;if(!a)return!1;let o=DX(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 AX(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,` `):``}KY.paste=(e,t)=>{let n=t;if(e.composing&&!zq)return;let r=EX?null:n.clipboardData,i=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&kX(e,AX(r),r.getData(`text/html`),i,n)?n.preventDefault():OX(e,n)};var jX=class{constructor(e,t,n){this.slice=e,this.move=t,this.node=n}},MX=Lq?`altKey`:`ctrlKey`;function NX(e,t){let n;return e.someProp(`dragCopies`,e=>{n||=e(t)}),n==null?!t[MX]:!n}GY.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(nX(n)),o;if(!(a&&a.pos>=i.from&&a.pos<=(i instanceof rK?i.to-1:i.to))){if(r&&r.mightDrag)o=rK.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=rK.create(e.state.doc,t.posBefore))}}let{dom:s,text:c,slice:l}=kY(e,(o||e.state.selection).content());(!n.dataTransfer.files.length||!Nq||Pq>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(EX?`Text`:`text/html`,s.innerHTML),n.dataTransfer.effectAllowed=`copyMove`,EX||n.dataTransfer.setData(`text/plain`,c),e.dragging=new jX(l,NX(e,n),o)},GY.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},KY.dragover=KY.dragenter=(e,t)=>t.preventDefault(),KY.drop=(e,t)=>{try{PX(e,t,e.dragging)}finally{e.dragging=null}};function PX(e,t,n){if(!t.dataTransfer)return;let r=e.posAtCoords(nX(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=AY(e,AX(t.dataTransfer),EX?null:t.dataTransfer.getData(`text/html`),!1,i);let o=!!(n&&NX(e,t));if(e.someProp(`handleDrop`,n=>n(e,t,a||xU.empty,o))){t.preventDefault();return}if(!a)return;t.preventDefault();let s=a?kG(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&&rK.isSelectable(a.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(a.content.firstChild))c.setSelection(new rK(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(oY(e,f,c.doc.resolve(t)))}e.focus(),e.dispatch(c.setMeta(`uiEvent`,`drop`))}GY.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())&&ZJ(e)},20))},GY.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)},GY.beforeinput=(e,t)=>{if(zq&&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,bq(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 KY)GY[e]=KY[e];function FX(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 IX=class e{constructor(e,t){this.toDOM=e,this.spec=t||VX,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 zX(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&&FX(this.spec,t.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}},LX=class e{constructor(e,t){this.attrs=e,this.spec=t||VX}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 zX(i,a,this)}valid(e,t){return t.from<t.to}eq(t){return this==t||t instanceof e&&FX(this.attrs,t.attrs)&&FX(this.spec,t.spec)}static is(t){return t.type instanceof e}destroy(){}},RX=class e{constructor(e,t){this.attrs=e,this.spec=t||VX}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 zX(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&&FX(this.attrs,t.attrs)&&FX(this.spec,t.spec)}destroy(){}},zX=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 IX(n,r))}static inline(t,n,r,i){return new e(t,n,new LX(r,i))}static node(t,n,r,i){return new e(t,n,new RX(r,i))}get spec(){return this.type.spec}get inline(){return this.type instanceof LX}get widget(){return this.type instanceof IX}},BX=[],VX={},HX=class e{constructor(e,t){this.local=e.length?e:BX,this.children=t.length?t:BX}static create(e,t){return t.length?XX(t,e,0,VX):UX}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==UX||e.maps.length==0?this:this.mapInner(e,t,0,0,n||VX)}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?GX(this.children,o||[],t,n,r,i,a):o?new e(o.sort(ZX),BX):UX}add(t,n){return n.length?this==UX?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=JX(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,XX(s,e,o+1,VX)),a+=3}});let o=KX(a?YX(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(ZX):this.local,i||this.children)}remove(e){return e.length==0||this==UX?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==UX?(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):UX}forChild(t,n){if(this==UX)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 LX){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(ZX),BX);return r?new WX([t,r]):t}return r||UX}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 QX(this.localsInner(e))}localsInner(e){if(this==UX)return BX;if(e.inlineContent||!this.local.some(LX.is))return this.local;let t=[];for(let e=0;e<this.local.length;e++)this.local[e].type instanceof LX||t.push(this.local[e]);return t}forEachSet(e){e(this)}};HX.empty=new HX([],[]),HX.removeOverlap=QX;var UX=HX.empty,WX=class e{constructor(e){this.members=e}map(t,n){let r=this.members.map(e=>e.map(t,n,VX));return e.from(r)}forChild(t,n){if(n.isLeaf)return HX.empty;let r=[];for(let i=0;i<this.members.length;i++){let a=this.members[i].forChild(t,n);a!=UX&&(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?QX(n?t:t.sort(ZX)):BX}static from(t){switch(t.length){case 0:return UX;case 1:return t[0];default:return new e(t.every(e=>e instanceof HX)?t:t.reduce((e,t)=>e.concat(t instanceof HX?t:t.members),[]))}}forEachSet(e){for(let t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}};function GX(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==UX?(s[t+1]=-2,c=!0):(s[t]=u,s[t+1]=d,s[t+2]=r)}else c=!0}if(c){let c=XX(qX(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 HX(t.sort(ZX),s)}function KX(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 zX(i.from+t,i.to+t,i.type))}return n}function qX(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 JX(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 YX(e){let t=[];for(let n=0;n<e.length;n++)e[n]!=null&&t.push(e[n]);return t}function XX(e,t,n,r){let i=[],a=!1;t.forEach((t,o)=>{let s=JX(e,t,o+n);if(s){a=!0;let e=XX(s,t,n+o+1,r);e!=UX&&i.push(o,o+t.nodeSize,e)}});let o=KX(a?YX(e):e,-n).sort(ZX);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 HX(o,i):UX}function ZX(e,t){return e.from-t.from||e.to-t.to}function QX(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),$X(t,i+1,a.copy(r.to,a.to)));continue}a.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,a.from),$X(t,i,r.copy(a.from,r.to)));break}}return t}function $X(e,t,n){for(;t<e.length&&ZX(n,e[t])>0;)t++;e.splice(t,0,n)}function eZ(e){let t=[];return e.someProp(`decorations`,n=>{let r=n(e.state);r&&r!=UX&&t.push(r)}),e.cursorWrapper&&t.push(HX.create(e.state.doc,[e.cursorWrapper.deco])),WX.from(t)}var tZ={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},nZ=kq&&Aq<=11,rZ=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}},iZ=class{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new rZ,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]);kq&&Aq<=11&&t.some(e=>e.type==`childList`&&e.removedNodes.length||e.type==`characterData`&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():Fq&&e.composing&&t.some(e=>e.type==`childList`&&e.target.nodeName==`TR`)?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),nZ&&(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,tZ)),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(sY(this.view)){if(this.suppressingSelectionUpdates)return ZJ(this.view);if(kq&&Aq<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&dq(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=sq(n))t.add(n);for(let r=e.anchorNode;r;r=sq(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)&&sY(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||Nq&&(e.composing||e.input.compositionEndedAt>Date.now()-50)&&t.some(e=>e.type==`childList`&&e.removedNodes.length))){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(jq&&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||uZ(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&&yq(n)&&(c=YJ(e))&&c.eq(ZG.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,ZJ(e),this.currentSelection.set(n),e.scrollToSelection()):(i>-1||r)&&(i>-1&&(e.docView.markDirty(i,a),sZ(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,dZ(e,s)),this.handleDOMChange(i,a,o,s),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(n)||ZJ(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(kq&&Aq<=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?oq(r)+1:0,o=n.localPosFromDOM(e.target,a,-1),s=i&&i.parentNode==e.target?oq(i):e.target.childNodes.length;return{from:o,to:n.localPosFromDOM(e.target,s,1)}}return e.type==`attributes`?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:(this.lastChangedTextNode=e.target,{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}},aZ=new WeakMap,oZ=!1;function sZ(e){if(!aZ.has(e)&&(aZ.set(e,null),[`normal`,`nowrap`,`pre-line`].indexOf(getComputedStyle(e.dom).whiteSpace)!==-1)){if(e.requiresGeckoHackNode=jq,oZ)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.`),oZ=!0}}function cZ(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,a=t.endOffset,o=e.domAtPos(e.state.selection.anchor);return dq(o.node,o.offset,i,a)&&([n,r,i,a]=[i,a,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}}function lZ(e,t){if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return cZ(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?cZ(e,n):null}function uZ(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 dZ(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 fZ(e,t,n,r){let{node:i,fromOffset:a,toOffset:o,from:s,to:c}=e.docView.parseRange(t,n),l=e.domSelectionRange(),u,d=l.anchorNode;if(d&&e.dom.contains(d.nodeType==1?d:d.parentNode)&&(u=[{node:d,offset:l.anchorOffset}],yq(l)||u.push({node:l.focusNode,offset:l.focusOffset})),Nq&&e.input.lastKeyCode===8)for(let e=o;e>a;e--){let t=i.childNodes[e-1],n=t.pmViewDesc;if(t.nodeName==`BR`&&!n){o=e;break}if(!n||n.size)break}let f=e.state.doc,p=e.someProp(`domParser`)||hW.fromSchema(e.state.schema),m=f.resolve(s),h=null,g=p.parse(i,{topNode:m.parent,topMatch:m.parent.contentMatchAt(m.index()),topOpen:!0,from:a,to:o,preserveWhitespace:m.parent.type.whitespace!=`pre`||`full`,findPositions:u,ruleFromNode:pZ(r),context:m});if(u&&u[0].pos!=null){let e=u[0].pos,t=u[1]&&u[1].pos;t??=e,h={anchor:e+s,head:t+s}}return{doc:g,sel:h,from:s,to:c}}var pZ=e=>t=>{let n=t.pmViewDesc;if(n)return n.parseRule(e);if(t.nodeName==`BR`&&t.parentNode){if(Fq&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let e=document.createElement(`div`);return e.appendChild(document.createElement(`li`)),{skip:e}}if(t.parentNode.lastChild==t||Fq&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName==`IMG`&&t.getAttribute(`mark-placeholder`))return{ignore:!0};return null},mZ=/^(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 hZ(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=YJ(e,t);if(n&&!e.state.selection.eq(n)){if(Nq&&zq&&e.input.lastKeyCode===13&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp(`handleKeyDown`,t=>t(e,bq(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=fZ(e,t,n,i),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=bZ(d.content,l.doc.content,l.from,f,p);if(m&&e.input.domChangeCount++,(Iq&&e.input.lastIOSEnter>Date.now()-225||zq)&&i.some(e=>e.nodeType==1&&!mZ.test(e.nodeName))&&(!m||m.endA>=m.endB)&&e.someProp(`handleKeyDown`,t=>t(e,bq(13,`Enter`)))){e.input.lastIOSEnter=0;return}if(!m){if(r&&c instanceof tK&&!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=gZ(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 tK&&(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)),kq&&Aq<=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((Iq&&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,bq(13,`Enter`)))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>m.start&&vZ(u,m.start,m.endA,h,g)&&e.someProp(`handleKeyDown`,t=>t(e,bq(8,`Backspace`)))){zq&&Nq&&e.domObserver.suppressSelectionUpdates();return}Nq&&m.endB==m.start&&(e.input.lastChromeDelete=Date.now()),zq&&!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,bq(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=gZ(e,n.doc,l.sel);t&&!(Nq&&e.composing&&t.empty&&(m.start!=m.endB||e.input.lastChromeDelete<Date.now()-100)&&(t.head==y||t.head==n.mapping.map(b)-1)||kq&&t.empty&&t.head==y)&&n.setSelection(t)}return a&&n.setMeta(`composition`,a),n.scrollIntoView()},S;if(v){if(h.pos==g.pos){kq&&Aq<=11&&h.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>ZJ(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=_Z(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 gZ(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:oY(e,t.resolve(n.anchor),t.resolve(n.head))}function _Z(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(Q.from(l).eq(e))return{mark:s,type:o}}function vZ(e,t,n,r,i){if(n-t<=i.pos-r.pos||yZ(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(yZ(a,!0,!0));return!o.parent.isTextblock||o.pos>n||yZ(o,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(o.parent.content)}function yZ(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 bZ(e,t,n,r,i){let a=e.findDiffStart(t,n),o=n+e.size,s=n+t.size;if(a==null)return null;let{a:c,b:l}=e.findDiffEnd(t,o,s);if(i==`end`){let e=Math.max(0,a-Math.min(c,l));r-=c+e-a}if(c<a&&o<s){let e=r<=a&&r>=c?a-r:0;a-=e,l=a+(l-c),c=a}else if(l<a){let e=r<=a&&r>=l?a-r:0;a-=e,c=a+(c-l),l=a}return{start:a,endA:c,endB:l}}var xZ=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 JY,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(OZ),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=wZ(this),CZ(this),this.nodeViews=EZ(this),this.docView=kJ(this.state.doc,SZ(this),eZ(this),this.dom,this),this.domObserver=new iZ(this,(e,t,n,r)=>hZ(this,e,t,n,r)),this.domObserver.start(),YY(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&&QY(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(OZ),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&&(SX(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=EZ(this);DZ(e,this.nodeViews)&&(this.nodeViews=e,r=!0)}(a||t.handleDOMEvents!=this._props.handleDOMEvents)&&QY(this),this.editable=wZ(this),CZ(this);let o=eZ(this),s=SZ(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&&Kq(this);if(i){this.domObserver.stop();let t=l&&(kq||Nq)&&!this.composing&&!n.selection.empty&&!e.selection.empty&&TZ(n.selection,e.selection);if(l){let n=Nq?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=CX(this)),(r||!this.docView.update(e.doc,s,o,this))&&(this.docView.updateOuterDeco(s),this.docView.destroy(),this.docView=kJ(e.doc,s,o,this.dom,this)),n&&(!this.trackWrites||!this.dom.contains(this.trackWrites))&&(t=!0)}let i=this.input.mouseDown;t||!(i&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&lY(this)&&i.delaySelUpdate())?ZJ(this,t):(iY(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&&Jq(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 rK){let t=this.docView.domAfterPos(this.state.selection.from);t.nodeType==1&&Gq(this,t.getBoundingClientRect(),e)}else Gq(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 jX(e.slice,e.move,r<0?void 0:rK.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(kq){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&&Zq(this.dom),ZJ(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 aJ(this,e)}coordsAtPos(e,t=1){return lJ(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 yJ(this,t||this.state,e)}pasteHTML(e,t){return kX(this,``,e,!1,t||new ClipboardEvent(`paste`))}pasteText(e,t){return kX(this,e,null,!0,t||new ClipboardEvent(`paste`))}serializeForClipboard(e){return kY(this,e)}destroy(){this.docView&&(ZY(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],eZ(this),this),this.dom.textContent=``):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,uq())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return tX(this,e)}domSelectionRange(){let e=this.domSelection();return e?Fq&&this.root.nodeType===11&&xq(this.dom.ownerDocument)==this.dom&&lZ(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}};xZ.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))};function SZ(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`,[zX.node(0,e.state.doc.content.size,t)]}function CZ(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:zX.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function wZ(e){return!e.someProp(`editable`,t=>t(e.state)===!1)}function TZ(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 EZ(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 DZ(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 OZ(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 kZ={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:`'`},AZ={48:`)`,49:`!`,50:`@`,51:`#`,52:`$`,53:`%`,54:`^`,55:`&`,56:`*`,57:`(`,59:`:`,61:`+`,173:`_`,186:`:`,187:`+`,188:`<`,189:`_`,190:`>`,191:`?`,192:`~`,219:`{`,220:`|`,221:`}`,222:`"`},jZ=typeof navigator<`u`&&/Mac/.test(navigator.platform),MZ=typeof navigator<`u`&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),NZ=0;NZ<10;NZ++)kZ[48+NZ]=kZ[96+NZ]=String(NZ);for(var NZ=1;NZ<=24;NZ++)kZ[NZ+111]=`F`+NZ;for(var NZ=65;NZ<=90;NZ++)kZ[NZ]=String.fromCharCode(NZ+32),AZ[NZ]=String.fromCharCode(NZ);for(var PZ in kZ)AZ.hasOwnProperty(PZ)||(AZ[PZ]=kZ[PZ]);function FZ(e){var t=!(jZ&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||MZ&&e.shiftKey&&e.key&&e.key.length==1||e.key==`Unidentified`)&&e.key||(e.shiftKey?AZ:kZ)[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 IZ=typeof navigator<`u`&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),LZ=typeof navigator<`u`&&/Win/.test(navigator.platform);function RZ(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))IZ?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 zZ(e){let t=Object.create(null);for(let n in e)t[RZ(n)]=e[n];return t}function BZ(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 VZ(e){let t=zZ(e);return function(e,n){let r=FZ(n),i,a=t[BZ(r,n)];if(a&&a(e.state,e.dispatch,e))return!0;if(r.length==1&&r!=` `){if(n.shiftKey){let i=t[BZ(r,n,!1)];if(i&&i(e.state,e.dispatch,e))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(LZ&&n.ctrlKey&&n.altKey)&&(i=kZ[n.keyCode])&&i!=r){let r=t[BZ(i,n)];if(r&&r(e.state,e.dispatch,e))return!0}}return!1}}function HZ(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 UZ=class e{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}static createFakeChain(){let e=new Proxy({},{get:(t,n)=>{if(n!==`then`)return n===`run`?()=>!1:()=>e}});return e}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)}}static createFallbackCan(){let t=e.createFakeChain();return new Proxy({chain:()=>t},{get:(e,t)=>{if(t!==`then`)return t===`chain`?e.chain:()=>!1}})}buildProps(e,t=!0){let{rawCommands:n,editor:r,state:i}=this,{view:a}=r,o={tr:e,editor:r,view:a,state:HZ({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}},WZ=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{if(!e.isDestroyed){var n;t.dom.blur(),(n=window)==null||(n=n.getSelection())==null||n.removeAllRanges()}}),!0),GZ=(e=!0)=>({commands:t})=>t.setContent(``,{emitUpdate:e}),KZ=()=>({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=lG(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},qZ=e=>t=>e(t),JZ=()=>({state:e,dispatch:t})=>FK(e,t),YZ=(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 tK(r.doc.resolve(Math.max(o-1,0)))),!0},XZ=()=>({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 ZZ(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 QZ=e=>({tr:t,state:n,dispatch:r})=>{let i=ZZ(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},$Z=e=>({tr:t,dispatch:n})=>{let{from:r,to:i}=e;return n&&t.delete(r,i),!0},eQ=e=>e.content?/^text(\*|\+)/.test(e.content):!1,tQ=(e,t,n)=>{if(!e.parent.isInline||n===`left`&&e.pos>e.start()||n===`right`&&e.pos<e.end())return e.pos;let r=t.nodes[e.parent.type.name].spec;return eQ(r)?n===`left`?e.start()-1:e.end()+1:e.pos},nQ=(e,t,n)=>({from:tQ(e,n,`left`),to:tQ(t,n,`right`)}),rQ=()=>({state:e,dispatch:t})=>{if(e.selection.empty)return!1;if(t){let n=e.tr,{ranges:r}=e.selection,i=n.steps.length;r.forEach(t=>{let r=n.mapping.slice(i),{from:a,to:o}=nQ(n.doc.resolve(r.map(t.$from.pos)),n.doc.resolve(r.map(t.$to.pos)),e.schema);n.deleteRange(a,o)}),n.selection.empty||n.setSelection(tK.near(n.doc.resolve(n.selection.from))),n.scrollIntoView(),t(n)}return!0},iQ=()=>({commands:e})=>e.keyboardShortcut(`Enter`),aQ=()=>({state:e,dispatch:t})=>PK(e,t);function oQ(e){return Object.prototype.toString.call(e)===`[object RegExp]`}function sQ(e,t,n={strict:!0}){let r=Object.keys(t);return!r.length||r.every(r=>n.strict?t[r]===e[r]:oQ(t[r])?t[r].test(e[r]):t[r]===e[r])}function cQ(e,t,n={}){return e.find(e=>e.type===t&&sQ(Object.fromEntries(Object.keys(n).map(t=>[t,e.attrs[t]])),n))}function lQ(e,t,n={}){return!!cQ(e,t,n)}function uQ(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(!cQ([...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&&lQ([...e.parent.child(i-1).marks],t,n);)--i,a-=e.parent.child(i).nodeSize;for(;o<e.parent.childCount&&lQ([...e.parent.child(o).marks],t,n);)s+=e.parent.child(o).nodeSize,o+=1;return{from:a,to:s}}function dQ(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 fQ=(e,t)=>({tr:n,state:r,dispatch:i})=>{let a=dQ(e,r.schema),{doc:o,selection:s}=n,{$from:c,from:l,to:u}=s;if(i){let e=uQ(c,a,t);if(e&&e.from<=l&&e.to>=u){let t=tK.create(o,e.from,e.to);n.setSelection(t)}}return!0},pQ=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 mQ(e){return e instanceof tK}function hQ(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function gQ(e,t=null){if(!t)return null;let n=ZG.atStart(e),r=ZG.atEnd(e);if(t===`start`||t===!0)return n;if(t===`end`)return r;let i=n.from,a=r.to;return t===`all`?tK.create(e,hQ(0,i,a),hQ(e.content.size,i,a)):tK.create(e,hQ(t,i,a),hQ(t,i,a))}function _Q(){return[`Android`].includes(navigator.platform)||/android/i.test(navigator.userAgent)}function vQ(){return[`iPad Simulator`,`iPhone Simulator`,`iPod Simulator`,`iPad`,`iPhone`,`iPod`].includes(navigator.platform)||navigator.userAgent.includes(`Mac`)&&`ontouchend`in document}function yQ(){return typeof navigator<`u`&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}var bQ=(e=null,t={})=>({editor:n,view:r,tr:i,dispatch:a})=>{t={scrollIntoView:!0,...t};let o=()=>{(vQ()||_Q())&&r.dom.focus(),yQ()&&!vQ()&&!_Q()&&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&&!mQ(n.state.selection))return o(),!0;let s=gQ(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},xQ=(e,t)=>n=>e.every((e,r)=>t(e,{...n,index:r})),SQ=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),CQ=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&&CQ(r)}return e};function wQ(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 CQ(n)}function TQ(e){return typeof e?.nodesBetween==`function`}function EQ(e,t,n){if(TQ(e))return e;let r=typeof e==`object`&&!!e;n={slice:!0,parseOptions:{},...n};let i=typeof e==`string`;if(r)try{if(Array.isArray(e)&&e.length>0)return Q.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),EQ(``,t,n)}if(i){if(n.errorOnInvalidContent){let r=!1,i=``,a=new dW({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?hW.fromSchema(a).parseSlice(wQ(e),n.parseOptions):hW.fromSchema(a).parse(wQ(e),n.parseOptions),n.errorOnInvalidContent&&r)throw Error(`[tiptap error]: Invalid HTML content`,{cause:Error(`Invalid element found: ${i}`)})}let r=hW.fromSchema(t);return n.slice?r.parseSlice(wQ(e),n.parseOptions).content:r.parse(wQ(e),n.parseOptions)}return EQ(``,t,n)}function DQ(e){return!(`type`in e)}function OQ(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof nG||i instanceof rG))return;let a=e.mapping.maps[r],o=0;a.forEach((e,t,n,r)=>{o===0&&(o=r)}),e.setSelection(ZG.near(e.doc.resolve(o),n))}var kQ=(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{EQ(t,a.schema,{parseOptions:s,errorOnInvalidContent:!0})}catch(e){o(e)}try{i=EQ(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,f=DQ(i)?i.content:[i];if(f.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 p;if(u)p=Array.isArray(t)?t.map(e=>e.text||``).join(``):TQ(t)?f.map(e=>e.text??``).join(``):typeof t==`object`&&t&&t.text?t.text:t,r.insertText(p,c,l);else{p=Q.from(f);let e=r.doc.resolve(c),t=e.node(),n=e.parentOffset===0,i=t.isText||t.isTextblock,a=t.content.size>0;n&&i&&a&&d&&(c=Math.max(0,c-1)),r.replaceWith(c,l,f)}n.updateSelection&&OQ(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta(`applyInputRules`,{from:c,text:p}),n.applyPasteRules&&r.setMeta(`applyPasteRules`,{from:c,text:p})}return!0};function AQ(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}var jQ=(e={})=>({tr:t,dispatch:n,editor:r})=>{let{pos:i,attrs:a,content:o,updateSelection:s=!0}=e,c;c=typeof i==`number`?t.doc.resolve(i):i||t.selection.$from;let l=AQ(c.parent.contentMatchAt(c.index()));if(!l)return!1;let u=Object.keys(l.spec.attrs||{}),d=a?Object.fromEntries(Object.entries(a).filter(([e])=>u.includes(e))):{},f;if(o){let e=EQ(o,r.schema);f=l.createAndFill(d,e)}else f=l.createAndFill(d);return f?(n&&(t.insert(c.pos,f),s&&OQ(t,t.steps.length-1,-1)),!0):!1},MQ=()=>({state:e,dispatch:t})=>kK(e,t),NQ=()=>({state:e,dispatch:t})=>AK(e,t),PQ=()=>({state:e,dispatch:t})=>vK(e,t),FQ=()=>({state:e,dispatch:t})=>EK(e,t),IQ=()=>({state:e,dispatch:t,tr:n})=>{try{let r=EG(e.doc,e.selection.$from.pos,-1);return r!=null&&(n.join(r,2),t&&t(n),!0)}catch{return!1}},LQ=()=>({state:e,dispatch:t,tr:n})=>{try{let r=EG(e.doc,e.selection.$from.pos,1);return r!=null&&(n.join(r,2),t&&t(n),!0)}catch{return!1}},RQ=()=>({state:e,dispatch:t})=>yK(e,t),zQ=()=>({state:e,dispatch:t})=>bK(e,t);function BQ(){return typeof navigator<`u`&&/Mac/.test(navigator.platform)}function VQ(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))vQ()||BQ()?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 HQ=e=>({editor:t,view:n,tr:r,dispatch:i})=>{let a=VQ(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?ZZ(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).filter(e=>sQ(e.node.attrs,n,{strict:!1}));return a?!!l.length:l.reduce((e,t)=>e+t.to-t.from,0)>=c}var WQ=(e,t={})=>({state:n,dispatch:r})=>UQ(n,ZZ(e,n.schema),t)?jK(n,r):!1,GQ=()=>({state:e,dispatch:t})=>IK(e,t),KQ=e=>({state:t,dispatch:n})=>nq(ZZ(e,t.schema))(t,n),qQ=()=>({state:e,dispatch:t})=>MK(e,t);function JQ(e,t){return t.nodes[e]?`node`:t.marks[e]?`mark`:null}function YQ(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 XQ=(e,t)=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null,s=JQ(typeof e==`string`?e:e.name,r.schema);if(!s)return!1;s===`node`&&(a=ZZ(e,r.schema)),s===`mark`&&(o=dQ(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,YQ(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(YQ(a.attrs,t))))})})}),c},ZQ=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),QQ=()=>({tr:e,dispatch:t})=>{if(t){let t=new aK(e.doc);e.setSelection(t)}return!0},$Q=()=>({state:e,dispatch:t})=>CK(e,t),e$=()=>({state:e,dispatch:t})=>DK(e,t),t$=()=>({state:e,dispatch:t})=>zK(e,t),n$=()=>({state:e,dispatch:t})=>GK(e,t),r$=()=>({state:e,dispatch:t})=>WK(e,t);function i$(e,t,n={},r={}){return EQ(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}var a$=(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=i$(e,i.schema,r,{errorOnInvalidContent:t??i.options.enableContentCheck});if(o){let e=DQ(s)?s.content:[s];a.replaceWith(0,c.content.size,e).setMeta(`preventUpdate`,!n)}return!0}return o&&a.setMeta(`preventUpdate`,!n),s.insertContentAt({from:0,to:c.content.size},e,{parseOptions:r,errorOnInvalidContent:t??i.options.enableContentCheck})};function o$(e,t){let n=dQ(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 s$(e,t){let n=new YG(e);return t.forEach(e=>{e.steps.forEach(e=>{n.step(e)})}),n}function c$(e,t){let n=[];return e.descendants((e,r)=>{t(e)&&n.push({node:e,pos:r})}),n}function l$(e,t,n){let r=[];return e.nodesBetween(t.from,t.to,(e,t)=>{n(e)&&r.push({node:e,pos:t})}),r}function u$(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 d$(e){return t=>u$(t.$from,e)}function f$(e,t,n){return e.config[t]===void 0&&e.parent?f$(e.parent,t,n):typeof e.config[t]==`function`?e.config[t].bind({...n,parent:e.parent?f$(e.parent,t,n):null}):e.config[t]}function p$(e){return typeof e==`function`}function m$(e,t=void 0,...n){return p$(e)?t?e.bind(t)(...n):e(...n):e}function h$(e){return{baseExtensions:e.filter(e=>e.type===`extension`),nodeExtensions:e.filter(e=>e.type===`node`),markExtensions:e.filter(e=>e.type===`mark`)}}function g$(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 _$(e){let t=[],n=g$(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 v$(...e){return e.filter(e=>!!e).reduce((e,t)=>{let n={...e};return Object.entries(t).forEach(([e,t])=>{if(e===`__proto__`){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0});return}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([..._$(n[e]),..._$(t)]);n[e]=Array.from(r.entries()).map(([e,t])=>`${e}: ${t}`).join(`; `)}else n[e]=t}),n},{})}function y$(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)=>v$(e,t),{})}function b$(e,t,n){let{from:r,to:i}=t,{blockSeparator:a=`
309
+
310
+ `,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;if(e.isText){var d;s+=e==null||(d=e.text)==null?void 0:d.slice(Math.max(r,n)-n,i-n)}}),s}function x$(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}function S$(e,t){let n=ZZ(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 C$(e,t){let n=JQ(typeof t==`string`?t:t.name,e.schema);return n===`node`?S$(e,t):n===`mark`?o$(e,t):{}}function w$(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 T$(e){let t=w$(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 E$(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}})})}),T$(r)}function D$(e,t,n){let r=[];return e===t?n.resolve(e).marks().forEach(t=>{let i=uQ(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 O$=(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]},k$=e=>{let t=e.depth-1;if(t<0)return null;let n=e.index(t);return n===0?null:e.node(t).child(n-1)};function A$(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}))}function j$(e,t,n={}){let{empty:r,ranges:i}=e.selection,a=t?dQ(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(e=>!a||a.name===e.type.name).find(e=>sQ(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).filter(e=>sQ(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)).reduce((e,t)=>e+t.to-t.from,0);return(c>0?c+l:c)>=o}var M$=(e,t)=>{let{$from:n,$to:r,$anchor:i}=e.selection;if(t){let n=d$(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)},N$=e=>{let{$from:t,$to:n}=e.selection;return!(t.parentOffset>0||t.pos!==n.pos)};function P$(e,t){let{nodeExtensions:n}=h$(t),r=n.find(t=>t.name===e);if(!r)return!1;let i=m$(f$(r,`group`,{name:r.name,options:r.options,storage:r.storage}));return typeof i==`string`&&i.split(` `).includes(`list`)}function F$(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&&(F$(e,{ignoreWhitespace:n,checkChildren:t})||(r=!1))}),r}return!1}function I$(e){return e instanceof rK}function L$(e,t,n){let{selection:r}=t,i=null;if(mQ(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);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 R$=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let{selection:a}=n,{empty:o,ranges:s}=a,c=dQ(e,r.schema);if(i){if(o){let e=o$(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 L$(r,n,c)},z$=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),B$=(e,t={})=>({state:n,dispatch:r,chain:i})=>{let a=ZZ(e,n.schema),o;return n.selection.$anchor.sameParent(n.selection.$head)&&(o=n.selection.$anchor.parent.attrs),a.isTextblock?i().command(({commands:e})=>qK(a,{...o,...t})(n)?!0:e.clearNodes()).command(({state:e})=>qK(a,{...o,...t})(e,r)).run():(console.warn(`[tiptap warn]: Currently "setNode()" only supports text block nodes.`),!1)},V$=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,r=hQ(e,0,n.content.size),i=rK.create(n,r);t.setSelection(i)}return!0},H$=(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},U$=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,{from:r,to:i}=typeof e==`number`?{from:e,to:e}:e,a=tK.atStart(n).from,o=tK.atEnd(n).to,s=hQ(r,a,o),c=hQ(i,a,o),l=tK.create(n,s,c);t.setSelection(l)}return!0},W$=e=>({state:t,dispatch:n})=>aq(ZZ(e,t.schema))(t,n);function G$(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 K$=({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=A$(l,s.node().type.name,s.node().attrs);if(a instanceof rK&&a.node.isBlock)return!s.parentOffset||!xG(o,s.pos)?!1:(r&&(e&&G$(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:AQ(s.node(-1).contentMatchAt(s.indexAfter(-1))),p=d&&f?[{type:f,attrs:u}]:void 0,m=xG(t.doc,t.mapping.map(s.pos),1,p);if(!p&&!m&&xG(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 tK&&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&&G$(n,i.extensionManager.splittableMarks),t.scrollIntoView()}return m},q$=(e,t={})=>({tr:n,state:r,dispatch:i,editor:a})=>{let o=ZZ(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=Q.empty,r=s.index(-1)?1:s.index(-2)?2:3;for(let t=s.depth-r;t>=s.depth-3;--t)e=Q.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={...A$(d,s.node().type.name,s.node().attrs),...t},c=o.contentMatch.defaultType?.createAndFill(a)||void 0;e=e.append(Q.from(o.createAndFill(null,c)||void 0));let l=s.before(s.depth-(r-1));n.replace(l,s.after(-i),new xU(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(tK.near(n.doc.resolve(u))),n.scrollIntoView()}return!0}let f=c.pos===s.end()?u.contentMatchAt(0).defaultType:null,p={...A$(d,u.type.name,u.attrs),...t},m={...A$(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(!xG(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};function J$(e){return!e||e===`1`?null:e}function Y$(e,t){return J$(e)===J$(t)}var X$=(e,t)=>{let n=d$(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&&CG(e.doc,n.pos))||!Y$(n.node.attrs.type,i?.attrs.type)||e.join(n.pos),!0},Z$=(e,t)=>{let n=d$(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&&CG(e.doc,r))||!Y$(n.node.attrs.type,i?.attrs.type)||e.join(r),!0};function Q$(e){let t=e.doc,n=t.firstChild;if(!n)return null;let r=t.resolve(1),i=t.resolve(n.nodeSize-1);return tK.between(r,i)}var $$=(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=ZZ(e,o.schema),m=ZZ(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=d$(e=>P$(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&&P$(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=Q$(e);return n?(e.setSelection(n),t&&t(e),!0):!1}).liftListItem(m).run():l.liftListItem(m);if(P$(E.node.type.name,d)&&p.validContent(E.node.content))return c().command(()=>(a.setNodeMarkup(E.pos,p),!0)).command(()=>X$(a,p)).command(()=>Z$(a,p)).run()}return!n||!b||!s?c().command(()=>u().wrapInList(p,r)?!0:l.clearNodes()).wrapInList(p,r).command(()=>X$(a,p)).command(()=>Z$(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(()=>X$(a,p)).command(()=>Z$(a,p)).run()},e1=(e,t={},n={})=>({state:r,commands:i})=>{let{extendEmptyMarkRange:a=!1}=n,o=dQ(e,r.schema);return j$(r,o,t)?i.unsetMark(o,{extendEmptyMarkRange:a}):i.setMark(o,t)},t1=(e,t,n={})=>({state:r,commands:i})=>{let a=ZZ(e,r.schema),o=ZZ(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})},n1=(e,t={})=>({state:n,commands:r})=>{let i=ZZ(e,n.schema);return UQ(n,i,t)?r.lift(i):r.wrapIn(i,t)},r1=()=>({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},i1=(e={})=>({tr:t,dispatch:n,editor:r})=>{let{ignoreClearable:i=!1}=e,{selection:a}=t,{empty:o,ranges:s}=a;if(o)return!0;let{nonClearableMarks:c}=r.extensionManager;if(n){let e=Object.values(r.schema.marks).filter(e=>i||!c.includes(e.name));s.forEach(n=>{for(let r of e)t.removeMark(n.$from.pos,n.$to.pos,r)})}return!0},a1=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let{extendEmptyMarkRange:a=!1}=t,{selection:o}=n,s=dQ(e,r.schema),{$from:c,empty:l,ranges:u}=o;if(!i)return!0;if(l&&a){let{from:e,to:t}=o,r=uQ(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},o1=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},s1=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null,s=JQ(typeof e==`string`?e:e.name,r.schema);if(!s)return!1;s===`node`&&(a=ZZ(e,r.schema)),s===`mark`&&(o=dQ(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},c1=new hK(`__tiptap_decorations__`),l1=e=>({tr:t,dispatch:n})=>(n&&t.setMeta(c1,{type:`force`,name:e}),!0),u1=(e,t={})=>({state:n,dispatch:r})=>KK(ZZ(e,n.schema),t)(n,r),d1=(e,t={})=>({state:n,dispatch:r})=>$K(ZZ(e,n.schema),t)(n,r),f1=uU({blur:()=>WZ,clearContent:()=>GZ,clearNodes:()=>KZ,command:()=>qZ,createParagraphNear:()=>JZ,cut:()=>YZ,deleteCurrentNode:()=>XZ,deleteNode:()=>QZ,deleteRange:()=>$Z,deleteSelection:()=>rQ,enter:()=>iQ,exitCode:()=>aQ,extendMarkRange:()=>fQ,first:()=>pQ,focus:()=>bQ,forEach:()=>xQ,insertContent:()=>SQ,insertContentAt:()=>kQ,insertDefaultBlock:()=>jQ,joinBackward:()=>PQ,joinDown:()=>NQ,joinForward:()=>FQ,joinItemBackward:()=>IQ,joinItemForward:()=>LQ,joinTextblockBackward:()=>RQ,joinTextblockForward:()=>zQ,joinUp:()=>MQ,keyboardShortcut:()=>HQ,lift:()=>WQ,liftEmptyBlock:()=>GQ,liftListItem:()=>KQ,newlineInCode:()=>qQ,resetAttributes:()=>XQ,scrollIntoView:()=>ZQ,selectAll:()=>QQ,selectNodeBackward:()=>$Q,selectNodeForward:()=>e$,selectParentNode:()=>t$,selectTextblockEnd:()=>n$,selectTextblockStart:()=>r$,setContent:()=>a$,setMark:()=>R$,setMeta:()=>z$,setNode:()=>B$,setNodeSelection:()=>V$,setTextDirection:()=>H$,setTextSelection:()=>U$,sinkListItem:()=>W$,splitBlock:()=>K$,splitListItem:()=>q$,toggleList:()=>$$,toggleMark:()=>e1,toggleNode:()=>t1,toggleWrap:()=>n1,undoInputRule:()=>r1,unsetAllMarks:()=>i1,unsetMark:()=>a1,unsetTextDirection:()=>o1,updateAttributes:()=>s1,updateDecorations:()=>l1,wrapIn:()=>u1,wrapInList:()=>d1});function p1(e,t){let{selection:n}=e,{$from:r}=n;if(n instanceof rK){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}function m1(e){return Object.prototype.toString.call(e).slice(8,-1)}function h1(e){return m1(e)===`Object`&&e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function g1(e,t,n){let r=e.split(`
311
+ `),i=[],a=``,o=0,s=t.baseIndentSize||2;for(;o<r.length;){let e=r[o],u=e.match(t.itemPattern);if(!u){if(i.length>0)break;if(e.trim()===``){o+=1,a=`${a}${e}\n`;continue}return}let d=t.extractItemData(u),{indentLevel:f,mainContent:p}=d;a=`${a}${e}\n`;let m=[p];for(o+=1;o<r.length;){var c;let e=r[o];if(e.trim()===``){var l;let t=r.slice(o+1).findIndex(e=>e.trim()!==``);if(t===-1)break;if((((l=r[o+1+t].match(/^(\s*)/))==null||(l=l[1])==null?void 0:l.length)||0)>f){m.push(e),a=`${a}${e}\n`,o+=1;continue}break}if((((c=e.match(/^(\s*)/))==null||(c=c[1])==null?void 0:c.length)||0)>f)m.push(e),a=`${a}${e}\n`,o+=1;else break}let h,g=m.slice(1);if(g.length>0){let e=g.map(e=>e.slice(f+s)).join(`
312
+ `);e.trim()&&(h=t.customNestedParser?t.customNestedParser(e):n.blockTokens(e))}let _=t.createToken(d,h);i.push(_)}if(i.length!==0)return{items:i,raw:a}}var _1=4;function v1(e){let t=0;for(let n of e)t=n===` `?t+_1-t%_1:t+1;return t}function y1(e,t,n,r,i){if(!e||!Array.isArray(e.content))return``;let a=typeof n==`function`?n(r):n,[o,...s]=e.content,c=`${a}${t.renderChildren([o])}`;return s&&s.length>0&&s.forEach((e,n)=>{let r=t.renderChild?.call(t,e,n+1)??t.renderChildren([e]);if(r!=null){let n=e=>{if(!i?.alignNestedToPrefix)return t.indent(e);let n=t.indent(``),r=v1(a);return(v1(n)>=r?n:` `.repeat(r))+e},o=r.split(`
313
+ `).map(e=>n(e||``)).join(`
314
+ `);c+=e.type===`paragraph`?`\n\n${o}`:`\n${o}`}}),c}function b1(e,t){let n={...e};return h1(e)&&h1(t)&&Object.keys(t).forEach(r=>{h1(t[r])&&h1(e[r])?n[r]=b1(e[r],t[r]):n[r]=t[r]}),n}var x1=class{constructor(e){this.find=e.find,this.handler=e.handler,this.undoable=e.undoable??!0}},S1=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{...m$(f$(this,`addOptions`,{name:this.name}))}}get storage(){return{...m$(f$(this,`addStorage`,{name:this.name,options:this.options}))}}configure(e={}){let t=this.extend({...this.config,addOptions:()=>b1(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}},C1=class e extends S1{constructor(...e){super(...e),this.type=`mark`}static create(t={}){let n=typeof t==`function`?t():t;return new e(n)}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)}},w1=class{constructor(e){this.find=e.find,this.handler=e.handler}},T1=class e extends S1{constructor(...e){super(...e),this.type=`extension`}static create(t={}){let n=typeof t==`function`?t():t;return new e(n)}configure(e){return super.configure(e)}extend(e){let t=typeof e==`function`?e():e;return super.extend(t)}};T1.create({name:`clipboardTextSerializer`,addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new fK({key:new hK(`clipboardTextSerializer`),props:{clipboardTextSerializer:()=>{let{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:i}=t,a=x$(n),{blockSeparator:o}=this.options,s={...o===void 0?{}:{blockSeparator:o},textSerializers:a};return[...i.ranges].sort((e,t)=>e.$from.pos-t.$from.pos).map(({$from:e,$to:t})=>b$(r,{from:e.pos,to:t.pos},s)).join(o??`
315
+
316
+ `)}}})]}}),T1.create({name:`commands`,addCommands(){return{...f1}}}),T1.create({name:`delete`,onUpdate({transaction:e,appendedTransactions:t}){var n;let r=()=>{var n,r;if(((n=this.editor.options.coreExtensionOptions)==null||(n=n.delete)==null||(r=n.filterTransaction)==null?void 0:r.call(n,e))??e.getMeta(`y-sync$`))return;let i=s$(e.before,[e,...t]);E$(i).forEach(t=>{i.mapping.mapResult(t.oldRange.from).deletedAfter&&i.mapping.mapResult(t.oldRange.to).deletedBefore&&i.before.nodesBetween(t.oldRange.from,t.oldRange.to,(n,r)=>{let a=r+n.nodeSize-2,o=t.oldRange.from<=r&&a<=t.oldRange.to;this.editor.emit(`delete`,{type:`node`,node:n,from:r,to:a,newFrom:i.mapping.map(r),newTo:i.mapping.map(a),deletedRange:t.oldRange,newRange:t.newRange,partial:!o,editor:this.editor,transaction:e,combinedTransform:i})})});let a=i.mapping;i.steps.forEach((t,n)=>{if(t instanceof $W){let r=a.slice(n).map(t.from,-1),o=a.slice(n).map(t.to),s=a.invert().map(r,-1),c=a.invert().map(o),l=r>0&&i.doc.nodeAt(r-1)?.marks.some(e=>e.eq(t.mark)),u=i.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:r,to:o},partial:!!(u||l),editor:this.editor,transaction:e,combinedTransform:i})}})};((n=this.editor.options.coreExtensionOptions)==null||(n=n.delete)==null?void 0:n.async)??!0?setTimeout(r,0):r()}}),T1.create({name:`drop`,addProseMirrorPlugins(){return[new fK({key:new hK(`tiptapDrop`),props:{handleDrop:(e,t,n,r)=>{this.editor.emit(`drop`,{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),T1.create({name:`editable`,addProseMirrorPlugins(){return[new fK({key:new hK(`editable`),props:{editable:()=>this.editor.options.editable}})]}});var E1=new hK(`focusEvents`);T1.create({name:`focusEvents`,addProseMirrorPlugins(){let{editor:e}=this;return[new fK({key:E1,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}}}})]}}),T1.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:ZG.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 vQ()||BQ()?i:r},addProseMirrorPlugins(){return[new fK({key:new hK(`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=ZG.atStart(t.doc).from,l=ZG.atEnd(t.doc).to;if(a||o!==c||s!==l||!F$(n.doc))return;let u=n.tr,d=HZ({state:n,transaction:u}),{commands:f}=new UZ({editor:this.editor,state:d});if(f.clearNodes(),u.steps.length)return u}})]}}),T1.create({name:`paste`,addProseMirrorPlugins(){return[new fK({key:new hK(`tiptapPaste`),props:{handlePaste:(e,t,n)=>{this.editor.emit(`paste`,{editor:this.editor,event:t,slice:n})}}})]}}),T1.create({name:`tabindex`,addOptions(){return{value:void 0}},addProseMirrorPlugins(){return[new fK({key:new hK(`tabindex`),props:{attributes:()=>!this.editor.isEditable&&this.options.value===void 0?{}:{tabindex:this.options.value??`0`}}})]}}),T1.create({name:`textDirection`,addOptions(){return{direction:void 0}},addGlobalAttributes(){if(!this.options.direction)return[];let{nodeExtensions:e}=h$(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 fK({key:new hK(`textDirection`),props:{attributes:()=>{let e=this.options.direction;return e?{dir:e}:{}}}})]}});function D1(e){return new x1({find:e.find,handler:({state:t,range:n,match:r})=>{let i=m$(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(D$(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 O1(e){return new x1({find:e.find,handler:({state:t,range:n,match:r})=>{let i=m$(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 k1(e){return new x1({find:e.find,handler:({state:t,range:n,match:r})=>{let i=t.doc.resolve(n.from),a=m$(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 A1(e){return new x1({find:e.find,handler:({state:t,range:n,match:r,chain:i})=>{let a=m$(e.getAttributes,void 0,r)||{},o=t.tr.delete(n.from,n.to),s=o.doc.resolve(n.from).blockRange(),c=s&&dG(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&&CG(o.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,l))&&o.join(n.from-1)},undoable:e.undoable})}var j1=e=>`touches`in e,M1=class{constructor(e){var t;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.element.draggable=!1,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!=null&&(t=e.options)!=null&&t.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))}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,j1(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}}},N1=class e extends S1{constructor(...e){super(...e),this.type=`node`}static create(t={}){let n=typeof t==`function`?t():t;return new e(n)}configure(e){return super.configure(e)}extend(e){let t=typeof e==`function`?e():e;return super.extend(t)}};function P1(e){return new w1({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:i})=>{let a=m$(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(D$(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 F1=new WeakSet,I1=new WeakSet;function L1(e){let t=e;return F1.add(t),t}function R1(e){return Array.isArray(e)&&F1.has(e)}function z1(e){return e.flatMap(e=>e==null?[]:Array.isArray(e)&&I1.has(e)&&!R1(e)?z1(e):[e])}function B1(e,t){if(e===`slot`)return 0;if(e instanceof Function){let n=e(t);return Array.isArray(n)&&!R1(n)&&!I1.has(n)?L1(n):n}let{children:n,...r}=t??{};if(e===`svg`)throw Error(`SVG elements are not supported in the JSX syntax, use the array syntax instead`);if(Array.isArray(n)){if(R1(n))return L1([e,r,n]);if(n.length===0)return L1([e,r]);let t=z1(n);return t.length===0?L1([e,r]):L1([e,r,...t])}return L1(n==null?[e,r]:[e,r,n])}var V1=(e,t)=>B1(e,t),H1=(e,t)=>{let{state:n}=e,{selection:r}=n;if(!r.empty)return!1;let{$from:i}=r;if(i.parentOffset!==0)return!1;let a=i.depth-1;if(a<0)return!1;let o=i.node(a),s=i.index(a);if(s===0)return!1;if(o.type===t)return e.commands.lift(t.name);let c=o.child(s-1);if(c.type!==t||!c.lastChild?.isTextblock)return!1;let l=i.before()-1-1;return e.commands.command(({tr:e,dispatch:t})=>{if(!t)return!0;let n=i.parent.content,r=new xU(n,0,0);return e.replace(l,i.after(),r),e.setSelection(tK.create(e.doc,l+n.size)),e.scrollIntoView(),t(e),!0})},U1=/^\s*>\s$/,W1=N1.create({name:`blockquote`,addOptions(){return{HTMLAttributes:{}}},content:`block+`,group:`block`,defining:!0,parseHTML(){return[{tag:`blockquote`}]},renderHTML({HTMLAttributes:e}){return V1(`blockquote`,{...v$(this.options.HTMLAttributes,e),children:V1(`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(`
317
+ `).map(e=>e.trim()===``?`>`:`> ${e}`);n.push(i.join(`
318
+ `))}),n.join(`
319
+ >
320
+ `)},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(),Backspace:()=>H1(this.editor,this.type)}},addInputRules(){return[A1({find:U1,type:this.type})]}}),G1=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,K1=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,q1=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,J1=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,Y1=C1.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 V1(`strong`,{...v$(this.options.HTMLAttributes,e),children:V1(`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[D1({find:G1,type:this.type}),D1({find:q1,type:this.type})]},addPasteRules(){return[P1({find:K1,type:this.type}),P1({find:J1,type:this.type})]}}),X1=e=>{let t=/`([^`]+)`(?!`)$/.exec(e);return!t||t.index>0&&e[t.index-1]==="`"?null:{index:t.index,text:t[0],replaceWith:t[1]}},Z1=e=>{let t=/`([^`]+)`(?!`)/g,n=[],r;for(;(r=t.exec(e))!==null;)r.index>0&&e[r.index-1]==="`"||n.push({index:r.index,text:r[0],replaceWith:r[1]});return n},Q1=C1.create({name:`code`,addOptions(){return{HTMLAttributes:{}}},excludes:`_`,code:!0,exitable:!0,parseHTML(){return[{tag:`code`}]},renderHTML({HTMLAttributes:e}){return[`code`,v$(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[D1({find:X1,type:this.type})]},addPasteRules(){return[P1({find:Z1,type:this.type})]}}),$1=4,e0=/^```([a-z]+)?[\s\n]$/,t0=/^~~~([a-z]+)?[\s\n]$/,n0=N1.create({name:`codeBlock`,addOptions(){return{languageClassPrefix:`language-`,exitOnTripleEnter:!0,exitOnArrowDown:!0,exitOnArrowUp:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:$1,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`,v$(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(`
321
+ `):`\`\`\`${r}\n\n\`\`\``,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??$1,{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,`
322
+ `,`
323
+ `).split(`
324
+ `).map(e=>o+e).join(`
325
+ `);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??$1,{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,`
326
+ `,`
327
+ `).split(`
328
+ `),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(tK.create(e.doc,p)),!0}):e.commands.command(({tr:e})=>{let{from:i,to:a}=r,o=n.doc.textBetween(i,a,`
329
+ `,`
330
+ `).split(`
331
+ `).map(e=>{let n=e.match(/^ */)?.[0]||``,r=Math.min(n.length,t);return e.slice(r)}).join(`
332
+ `);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(`
333
+
334
+ `);return!a||!o?!1:e.chain().command(({tr:e})=>(e.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowUp:({editor:e})=>{if(!this.options.exitOnArrowUp)return!1;let{state:t}=e,{selection:n}=t,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type||r.parentOffset!==0)return!1;let a=r.before();return a>0?!1:e.commands.insertDefaultBlock({pos:a})},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(ZG.near(r.resolve(o))),!0)):e.commands.exitCode()}}},addInputRules(){return[k1({find:e0,type:this.type,getAttributes:e=>({language:e[1]})}),k1({find:t0,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new fK({key:new hK(`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,`
335
+ `));return a.replaceSelectionWith(this.type.create({language:i},s)),a.selection.$from.parent.type!==this.type&&a.setSelection(tK.near(a.doc.resolve(Math.max(0,a.selection.from-2)))),a.setMeta(`paste`,!0),e.dispatch(a),!0}}})]}}),r0=N1.create({name:`doc`,topNode:!0,content:`block+`,renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
336
+
337
+ `):``}),i0=N1.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`,v$(this.options.HTMLAttributes,e)]},renderText(){return`
338
+ `},renderMarkdown:()=>`
339
+ `,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}).scrollIntoView().run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),a0=N1.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]}`,v$(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=>k1({find:RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}}),o0=N1.create({name:`horizontalRule`,addOptions(){return{HTMLAttributes:{},nextNodeType:`paragraph`}},group:`block`,parseHTML(){return[{tag:`hr`}]},renderHTML({HTMLAttributes:e}){return[`hr`,v$(this.options.HTMLAttributes,e)]},markdownTokenName:`hr`,parseMarkdown:(e,t)=>t.createNode(`horizontalRule`),renderMarkdown:()=>`---`,addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{if(!p1(t,t.schema.nodes[this.name]))return!1;let{selection:n}=t,{$to:r}=n,i=e();return I$(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(tK.create(t.doc,n.pos+1)):n.nodeAfter.isBlock?t.setSelection(rK.create(t.doc,n.pos)):t.setSelection(tK.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(tK.create(t.doc,r+1)))}t.scrollIntoView()}return!0}).run()}}},addInputRules(){return[O1({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),s0=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,c0=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,l0=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,u0=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,d0=C1.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`,v$(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[D1({find:s0,type:this.type}),D1({find:l0,type:this.type})]},addPasteRules(){return[P1({find:c0,type:this.type}),P1({find:u0,type:this.type})]}}),f0=`aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2`,p0=`ελ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`,m0=`numeric`,h0=`ascii`,g0=`alpha`,_0=`asciinumeric`,v0=`alphanumeric`,y0=`domain`,b0=`emoji`,Dre=`scheme`,x0=`slashscheme`,S0=`whitespace`;function C0(e,t){return e in t||(t[e]=[]),t[e]}function w0(e,t,n){t[m0]&&(t[_0]=!0,t[v0]=!0),t[h0]&&(t[_0]=!0,t[g0]=!0),t[_0]&&(t[v0]=!0),t[g0]&&(t[v0]=!0),t[v0]&&(t[y0]=!0),t[b0]&&(t[y0]=!0);for(let r in t){let t=C0(r,n);t.indexOf(e)<0&&t.push(e)}}function T0(e,t){let n={};for(let r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}function E0(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}E0.groups={},E0.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||=E0.groups;let i;return t&&t.j?i=t:(i=new E0(t),n&&r&&w0(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||=E0.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 E0,Object.assign(o.j,s.j),o.jr.push.apply(o.jr,s.jr),o.jd=s.jd,o.t=s.t):o=new E0,a&&(r&&(o.t&&typeof o.t==`string`?w0(a,Object.assign(T0(o.t,r),n),r):n&&w0(a,n,r)),o.t=a),i.j[e]=o,o}};var D0=(e,t,n,r,i)=>e.ta(t,n,r,i),O0=(e,t,n,r,i)=>e.tr(t,n,r,i),k0=(e,t,n,r,i)=>e.ts(t,n,r,i),$=(e,t,n,r,i)=>e.tt(t,n,r,i),A0=`WORD`,j0=`UWORD`,M0=`ASCIINUMERICAL`,N0=`ALPHANUMERICAL`,P0=`LOCALHOST`,F0=`TLD`,I0=`UTLD`,L0=`SCHEME`,R0=`SLASH_SCHEME`,z0=`NUM`,B0=`WS`,V0=`NL`,H0=`OPENBRACE`,U0=`CLOSEBRACE`,W0=`OPENBRACKET`,G0=`CLOSEBRACKET`,K0=`OPENPAREN`,q0=`CLOSEPAREN`,J0=`OPENANGLEBRACKET`,Y0=`CLOSEANGLEBRACKET`,X0=`FULLWIDTHLEFTPAREN`,Z0=`FULLWIDTHRIGHTPAREN`,Q0=`LEFTCORNERBRACKET`,$0=`RIGHTCORNERBRACKET`,e2=`LEFTWHITECORNERBRACKET`,t2=`RIGHTWHITECORNERBRACKET`,n2=`FULLWIDTHLESSTHAN`,r2=`FULLWIDTHGREATERTHAN`,i2=`AMPERSAND`,a2=`APOSTROPHE`,o2=`ASTERISK`,s2=`AT`,c2=`BACKSLASH`,l2=`BACKTICK`,u2=`CARET`,d2=`COLON`,f2=`COMMA`,p2=`DOLLAR`,m2=`DOT`,h2=`EQUALS`,g2=`EXCLAMATION`,_2=`HYPHEN`,v2=`PERCENT`,y2=`PIPE`,b2=`PLUS`,x2=`POUND`,S2=`QUERY`,C2=`QUOTE`,w2=`FULLWIDTHMIDDLEDOT`,T2=`SEMI`,E2=`SLASH`,D2=`TILDE`,O2=`UNDERSCORE`,k2=`EMOJI`,A2=`SYM`,j2=Object.freeze({__proto__:null,ALPHANUMERICAL:N0,AMPERSAND:i2,APOSTROPHE:a2,ASCIINUMERICAL:M0,ASTERISK:o2,AT:s2,BACKSLASH:c2,BACKTICK:l2,CARET:u2,CLOSEANGLEBRACKET:Y0,CLOSEBRACE:U0,CLOSEBRACKET:G0,CLOSEPAREN:q0,COLON:d2,COMMA:f2,DOLLAR:p2,DOT:m2,EMOJI:k2,EQUALS:h2,EXCLAMATION:g2,FULLWIDTHGREATERTHAN:r2,FULLWIDTHLEFTPAREN:X0,FULLWIDTHLESSTHAN:n2,FULLWIDTHMIDDLEDOT:w2,FULLWIDTHRIGHTPAREN:Z0,HYPHEN:_2,LEFTCORNERBRACKET:Q0,LEFTWHITECORNERBRACKET:e2,LOCALHOST:P0,NL:V0,NUM:z0,OPENANGLEBRACKET:J0,OPENBRACE:H0,OPENBRACKET:W0,OPENPAREN:K0,PERCENT:v2,PIPE:y2,PLUS:b2,POUND:x2,QUERY:S2,QUOTE:C2,RIGHTCORNERBRACKET:$0,RIGHTWHITECORNERBRACKET:t2,SCHEME:L0,SEMI:T2,SLASH:E2,SLASH_SCHEME:R0,SYM:A2,TILDE:D2,TLD:F0,UNDERSCORE:O2,UTLD:I0,UWORD:j0,WORD:A0,WS:B0}),M2=/[a-z]/,N2=/\p{L}/u,P2=/\p{Emoji}/u,F2=/\d/,I2=/\s/,L2=`\r`,R2=`
340
+ `,z2=`️`,B2=`‍`,V2=``,H2=null,U2=null;function W2(e=[]){let t={};E0.groups=t;let n=new E0;H2??=J2(f0),U2??=J2(p0),$(n,`'`,a2),$(n,`{`,H0),$(n,`}`,U0),$(n,`[`,W0),$(n,`]`,G0),$(n,`(`,K0),$(n,`)`,q0),$(n,`<`,J0),$(n,`>`,Y0),$(n,`(`,X0),$(n,`)`,Z0),$(n,`「`,Q0),$(n,`」`,$0),$(n,`『`,e2),$(n,`』`,t2),$(n,`<`,n2),$(n,`>`,r2),$(n,`&`,i2),$(n,`*`,o2),$(n,`@`,s2),$(n,"`",l2),$(n,`^`,u2),$(n,`:`,d2),$(n,`,`,f2),$(n,`$`,p2),$(n,`.`,m2),$(n,`=`,h2),$(n,`!`,g2),$(n,`-`,_2),$(n,`%`,v2),$(n,`|`,y2),$(n,`+`,b2),$(n,`#`,x2),$(n,`?`,S2),$(n,`"`,C2),$(n,`/`,E2),$(n,`;`,T2),$(n,`~`,D2),$(n,`_`,O2),$(n,`\\`,c2),$(n,`・`,w2);let r=O0(n,F2,z0,{[m0]:!0});O0(r,F2,r);let i=O0(r,M2,M0,{[_0]:!0}),a=O0(r,N2,N0,{[v0]:!0}),o=O0(n,M2,A0,{[h0]:!0});O0(o,F2,i),O0(o,M2,o),O0(i,F2,i),O0(i,M2,i);let s=O0(n,N2,j0,{[g0]:!0});O0(s,M2),O0(s,F2,a),O0(s,N2,s),O0(a,F2,a),O0(a,M2),O0(a,N2,a);let c=$(n,R2,V0,{[S0]:!0}),l=$(n,L2,B0,{[S0]:!0}),u=O0(n,I2,B0,{[S0]:!0});$(n,V2,u),$(l,R2,c),$(l,V2,u),O0(l,I2,u),$(u,L2),$(u,R2),O0(u,I2,u),$(u,V2,u);let d=O0(n,P2,k2,{[b0]:!0});$(d,`#`),O0(d,P2,d),$(d,z2,d);let f=$(d,B2);$(f,`#`),O0(f,P2,d);let p=[[M2,o],[F2,i]],m=[[M2,null],[N2,s],[F2,a]];for(let e=0;e<H2.length;e++)q2(n,H2[e],F0,A0,p);for(let e=0;e<U2.length;e++)q2(n,U2[e],I0,j0,m);w0(F0,{tld:!0,ascii:!0},t),w0(I0,{utld:!0,alpha:!0},t),q2(n,`file`,L0,A0,p),q2(n,`mailto`,L0,A0,p),q2(n,`http`,R0,A0,p),q2(n,`https`,R0,A0,p),q2(n,`ftp`,R0,A0,p),q2(n,`ftps`,R0,A0,p),w0(L0,{scheme:!0,ascii:!0},t),w0(R0,{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]?{[Dre]:!0}:{[x0]:!0};r.indexOf(`-`)>=0?i[y0]=!0:M2.test(r)?F2.test(r)?i[_0]=!0:i[h0]=!0:i[m0]=!0,k0(n,r,r,i)}return k0(n,`localhost`,P0,{ascii:!0}),n.jd=new E0(A2),{start:n,tokens:Object.assign({groups:t},j2)}}function G2(e,t){let n=K2(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 K2(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 q2(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 E0(r),a.jr=i.slice(),e.j[o]=a),e=a}return a=new E0(n),a.jr=i.slice(),e.j[t[o-1]]=a,a}function J2(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 Y2={defaultProtocol:`http`,events:null,format:Z2,formatHref:Z2,nl2br:!1,tagName:`a`,target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function X2(e,t=null){let n=Object.assign({},Y2);e&&(n=Object.assign(n,e instanceof X2?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}X2.prototype={o:Y2,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]:Y2[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 Z2(e){return e}function Q2(e,t){this.t=`token`,this.v=e,this.tk=t}Q2.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=Y2.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 $2(e,t){class n extends Q2{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 e4=$2(`email`,{isLink:!0,toHref(){return`mailto:`+this.toString()}}),t4=$2(`text`),n4=$2(`nl`),r4=$2(`url`,{isLink:!0,toHref(e=Y2.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==P0&&e[1].t===d2}}),i4=e=>new E0(e);function a4({groups:e}){let t=e.domain.concat([i2,o2,s2,c2,l2,u2,p2,h2,_2,z0,v2,y2,b2,x2,E2,A2,D2,O2]),n=[a2,d2,f2,m2,g2,v2,S2,C2,T2,J0,Y0,H0,U0,G0,W0,K0,q0,X0,Z0,Q0,$0,e2,t2,n2,r2],r=[i2,a2,o2,c2,l2,u2,p2,h2,_2,H0,U0,v2,y2,b2,x2,S2,E2,A2,D2,O2],i=i4(),a=$(i,D2);D0(a,r,a),D0(a,e.domain,a);let o=i4(),s=i4(),c=i4();D0(i,e.domain,o),D0(i,e.scheme,s),D0(i,e.slashscheme,c),D0(o,r,a),D0(o,e.domain,o);let l=$(o,s2);$(a,s2,l),$(s,s2,l),$(c,s2,l);let u=$(a,m2);D0(u,r,a),D0(u,e.domain,a);let d=i4();D0(l,e.domain,d),D0(d,e.domain,d);let f=$(d,m2);D0(f,e.domain,d);let p=i4(e4);D0(f,e.tld,p),D0(f,e.utld,p),$(l,P0,p);let m=$(d,_2);$(m,_2,m),D0(m,e.domain,d),D0(p,e.domain,d),$(p,m2,f),$(p,_2,m);let h=$(o,_2),g=$(o,m2);$(h,_2,h),D0(h,e.domain,o),D0(g,r,a),D0(g,e.domain,o);let _=i4(r4);D0(g,e.tld,_),D0(g,e.utld,_),D0(_,e.domain,o),D0(_,r,a),$(_,m2,g),$(_,_2,h),$(_,s2,l);let v=$(_,d2),y=i4(r4);D0(v,e.numeric,y);let b=i4(r4),x=i4();D0(b,t,b),D0(b,n,x),D0(x,t,b),D0(x,n,x),$(_,E2,b),$(y,E2,b);let S=$(s,d2),C=$($($(c,d2),E2),E2);D0(s,e.domain,o),$(s,m2,g),$(s,_2,h),D0(c,e.domain,o),$(c,m2,g),$(c,_2,h),D0(S,e.domain,b),$(S,E2,b),$(S,S2,b),D0(C,e.domain,b),D0(C,t,b),$(C,E2,b);let w=[[H0,U0],[W0,G0],[K0,q0],[J0,Y0],[X0,Z0],[Q0,$0],[e2,t2],[n2,r2]];for(let e=0;e<w.length;e++){let[r,i]=w[e],a=$(b,r);$(x,r,a);let o=i4(r4);D0(a,t,o);let s=i4();D0(a,n,s),$(a,i,b),D0(o,t,o),D0(o,n,s),D0(s,t,o),D0(s,n,s),$(o,i,b),$(s,i,b)}return $(i,P0,_),$(i,V0,n4),{start:i,tokens:j2}}function o4(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(s4(t4,t,o)),o=[]),i-=f,u-=f;let e=d.t,r=n.slice(i-u,i);a.push(s4(e,t,r))}}return o.length>0&&a.push(s4(t4,t,o)),a}function s4(e,t,n){let r=n[0].s,i=n[n.length-1].e;return new e(t.slice(r,i),n)}var c4=typeof console<`u`&&console&&console.warn||(()=>{}),l4=`until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`,u4={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function d4(){return E0.groups={},u4.scanner=null,u4.parser=null,u4.tokenQueue=[],u4.pluginQueue=[],u4.customSchemes=[],u4.initialized=!1,u4}function f4(e,t=!1){if(u4.initialized&&c4(`linkifyjs: already initialized - will not register custom scheme "${e}" ${l4}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw Error(`linkifyjs: incorrect scheme format.
341
+ 1. Must only contain digits, lowercase ASCII letters or "-"
342
+ 2. Cannot start or end with "-"
343
+ 3. "-" cannot repeat`);u4.customSchemes.push([e,t])}function p4(){u4.scanner=W2(u4.customSchemes);for(let e=0;e<u4.tokenQueue.length;e++)u4.tokenQueue[e][1]({scanner:u4.scanner});u4.parser=a4(u4.scanner.tokens);for(let e=0;e<u4.pluginQueue.length;e++)u4.pluginQueue[e][1]({scanner:u4.scanner,parser:u4.parser});return u4.initialized=!0,u4}function m4(e){return u4.initialized||p4(),o4(u4.parser.start,e,G2(u4.scanner.start,e))}m4.scan=G2;function h4(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 X2(n),i=m4(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 g4=`[\0- \xA0 ᠎ -\u2029  ]`,_4=new RegExp(g4),v4=RegExp(`${g4}$`),y4=new RegExp(g4,`g`);function b4(e){return e.length===1?e[0].isLink:e.length===3&&e[1].isLink?[`()`,`[]`].includes(e[0].value+e[2].value):!1}function x4(e){return new fK({key:new hK(`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(E$(s$(n.doc,[...t])).forEach(({newRange:t})=>{let n=l$(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(!v4.test(e))return;i=n[0],a=r.doc.textBetween(i.pos,t.to,void 0,` `)}if(i&&a){let t=a.split(_4).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=m4(n).map(t=>t.toObject(e.defaultProtocol));if(!b4(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)).filter(t=>e.validate(t.value)).filter(t=>e.shouldAutoLink(t.value)).forEach(t=>{D$(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 S4(e){return new fK({key:new hK(`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=C$(t.state,e.type.name),r=i.href??n.href,o=i.target??n.target;r&&(window.open(r,o),a=!0)}return a}}})}var C4=/\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|“(.*?)”|‘(.*?)’))?\)$/,w4=/\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|“(.*?)”|‘(.*?)’))?\)/g;function T4(e,t){let n=0;for(let r=t-1;r>=0&&e[r]===`\\`;--r)n+=1;return n%2==1}function E4(e,t){let n=0,r=0;for(;r<t;){if(e[r]!=="`"){r+=1;continue}if(n===0&&T4(e,r)){r+=1;continue}let i=0;for(;r<t&&e[r]==="`";)i+=1,r+=1;n===0?n=i:i===n&&(n=0)}return n>0}function D4(e,t,n){let[,r,i]=t;return(t.index?e[t.index-1]:void 0)===`!`||T4(e,t.index??0)||E4(e,t.index??0)?!1:!!r.trim()&&n(i)}function O4(e){let[t,n,r,,i,a,o]=e,s=i??a??o;return{index:e.index??0,text:t,replaceWith:n,data:{href:r,title:s||null,markdown:!0}}}function k4(e,t){return e.index<t.index+t.text.length&&t.index<e.index+e.text.length}function A4(e){return{href:e.data?.href,title:e.data?.title??null}}function j4(e){let t=D1({find:t=>{let n=C4.exec(t);return!n||!D4(t,n,e.isAllowedHref)?null:O4(n)},type:e.type,getAttributes:A4});return new x1({find:t.find,handler:e=>{let n=t.handler(e);return n!==null&&e.state.tr.steps.length&&e.state.tr.setMeta(`preventAutolink`,!0),n}})}function M4(e){let t=P1({find:t=>{let n=[];for(let r of t.matchAll(w4))D4(t,r,e.isAllowedHref)&&n.push(O4(r));let r=(e.findPlainUrls?.call(e,t)??[]).filter(e=>!n.some(t=>k4(t,e)));return[...n,...r]},type:e.type,getAttributes:A4});return new w1({find:t.find,handler:e=>{let n=t.handler(e);return n!==null&&e.state.tr.steps.length&&e.match.data?.markdown&&e.state.tr.setMeta(`preventAutolink`,!0),n}})}function N4(e){return new fK({key:new hK(`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=h4(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 P4(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(y4,``).match(RegExp(`^(?:(?:${n.map(e=>e.replace(/[-/\\^$*+?.()|[\]{}]/g,`\\$&`)).join(`|`)}):|[^a-z]|[a-z0-9+.\\-]+(?:[^a-z+.\\-:]|$))`,`i`))}var F4=C1.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`){f4(e);return}f4(e.scheme,e.optionalSlashes)})},onDestroy(){d4()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,markdownLinks:!1,autolink:!0,protocols:[],defaultProtocol:`http`,HTMLAttributes:{target:`_blank`,rel:`noopener noreferrer nofollow`,class:null},isAllowedUri:(e,t)=>!!P4(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??null},rel:{default:this.options.HTMLAttributes.rel??null},class:{default:this.options.HTMLAttributes.class??null},title:{default:null}}},parseHTML(){return[{tag:`a[href]`,getAttrs:e=>{let t=e.getAttribute(`href`);return!t||!this.options.isAllowedUri(t,{defaultValidate:e=>!!P4(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=>!!P4(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?[`a`,v$(this.options.HTMLAttributes,e),0]:[`a`,v$(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=>!!P4(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=>!!P4(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()}},addInputRules(){return this.options.markdownLinks?[j4({type:this.type,isAllowedHref:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!P4(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})})]:[]},addPasteRules(){let e=e=>{let t=[];if(e){let{protocols:n,defaultProtocol:r}=this.options;h4(e).filter(e=>e.isLink&&this.options.isAllowedUri(e.value,{defaultValidate:e=>!!P4(e,n),protocols:n,defaultProtocol:r})).forEach(e=>{this.options.shouldAutoLink(e.value)&&t.push({text:e.value,data:{href:e.href},index:e.start})})}return t};return this.options.markdownLinks?[M4({type:this.type,isAllowedHref:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!P4(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol}),findPlainUrls:e})]:[P1({find:e,type:this.type,getAttributes:e=>({href:e.data?.href})})]},addProseMirrorPlugins(){let e=[],{protocols:t,defaultProtocol:n}=this.options;return this.options.autolink&&e.push(x4({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!P4(e,t),protocols:t,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),e.push(S4({type:this.type,editor:this.editor,openOnClick:this.options.openOnClick===`whenNotEditable`||this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&e.push(N4({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink})),e}}),I4=`listItem`,L4=`textStyle`,R4=/^\s*([-+*])\s$/,z4=N1.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`,v$(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,`
344
+ `):``,markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(I4,this.editor.getAttributes(L4)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=A1({find:R4,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=A1({find:R4,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(L4),editor:this.editor})),[e]}}),B4=(e,t,n)=>{let{selection:r}=e;if(!r.empty)return null;let{$from:i}=r;if(!i.parent.isTextblock||i.parentOffset!==i.parent.content.size)return null;let a=-1;for(let e=i.depth;e>0;--e)if(i.node(e).type.name===t){a=e;break}if(a<0)return null;let o=i.node(a),s=i.index(a);if(s+1>=o.childCount)return null;let c=o.child(s+1);if(!n.includes(c.type.name))return null;let l=e.schema.nodes[t],u=!1;if(c.forEach(e=>{e.type===l&&e.childCount>1&&(u=!0)}),!u)return null;let d=e.doc.resolve(i.after()).nodeAfter;if(!d||!n.includes(d.type.name))return null;let f=[];return d.forEach(e=>{f.push(e)}),f.length===0?null:{listItemDepth:a,nestedList:d,nestedListPos:i.after(),insertPos:i.after(a),items:f}},V4=(e,t,n,r)=>{let i=B4(e,n,r);if(!i)return!1;let{selection:a}=e,{nestedList:o,nestedListPos:s,insertPos:c,items:l}=i,u=e.tr;u.delete(s,s+o.nodeSize);let d=u.mapping.map(c);return u.insert(d,Q.from(l)),u.setSelection(a.map(u.doc,u.mapping)),t&&t(u),!0},H4=(e,t,n)=>V4(e.state,e.view.dispatch,t,n),U4=(e,t)=>T1.create({name:`${e}BranchingDeleteKeymap`,priority:101,addKeyboardShortcuts(){let n=()=>H4(this.editor,e,t);return{Delete:n,"Mod-Delete":n}}}),W4=[[1e3,`m`],[900,`cm`],[500,`d`],[400,`cd`],[100,`c`],[90,`xc`],[50,`l`],[40,`xl`],[10,`x`],[9,`ix`],[5,`v`],[4,`iv`],[1,`i`]],G4=`abcdefghijklmnopqrstuvwxyz`,K4=String.raw`\d+|[ivxlcdmIVXLCDM]+|${`[a-zA-Z]{1,2}`}`;function q4(e){let t=e,n=``;for(let[e,r]of W4)for(;t>=e;)n+=r,t-=e;return n}function J4(e){return q4(e).toUpperCase()}function Y4(e){let t=e.toLowerCase(),n=0,r=0;for(;n<t.length;){let e=!1;for(let[i,a]of W4)if(t.startsWith(a,n)){r+=i,n+=a.length,e=!0;break}if(!e)return 0}return r}function X4(e){if(!/^[ivxlcdmIVXLCDM]+$/.test(e))return!1;let t=Y4(e);return t<=0?!1:(e===e.toLowerCase()?q4(t):J4(t))===e}function Z4(e){let t=e.toLowerCase();if(t.length===1)return t.charCodeAt(0)-97+1;if(t.length===2){let e=t.charCodeAt(0)-97,n=t.charCodeAt(1)-97;return(e+1)*26+n+1}return 0}function Q4(e){if(e<=26)return G4[e-1];let t=Math.floor((e-1)/26)-1,n=(e-1)%26;return t<0?G4[n]:G4[t]+G4[n]}function $4(e){if(e&&!/^\d+$/.test(e)){if(X4(e))return e===e.toLowerCase()?`i`:`I`;if(/^[a-z]{1,2}$/.test(e))return`a`;if(/^[A-Z]{1,2}$/.test(e))return`A`}}function e3(e){if(/^\d+$/.test(e))return parseInt(e,10);let t=$4(e);if(t===`i`||t===`I`)return Y4(e);if(t===`a`||t===`A`){let t=Z4(e);return t>0?t:1}let n=parseInt(e,10);return Number.isNaN(n)?1:n}function t3(e,t){if(e===`numeric`)return String(t);switch(e){case`a`:return Q4(t);case`A`:return Q4(t).toUpperCase();case`i`:return q4(t);case`I`:return J4(t);default:return String(t)}}function n3(e){if(e.length===0)return!1;let t=$4(e[0])??`numeric`,n=e3(e[0]);if(n<1)return!1;for(let r=0;r<e.length;r++){let i=t3(t,n+r);if(e[r]!==i)return!1}return!0}function r3(e){return{type:$4(e),start:e3(e)}}function i3(e){let{type:t,start:n}=r3(e),r={};return t&&(r.type=t),n!==1&&(r.start=n),r}function a3(e,t,n=`. `){let r=t+1;if(!e||e===`1`)return`${r}${n}`;switch(e){case`a`:return`${Q4(r)}${n}`;case`A`:return`${Q4(r).toUpperCase()}${n}`;case`i`:return`${q4(r)}${n}`;case`I`:return`${J4(r)}${n}`;default:return`${r}${n}`}}function o3(e){let t=e.tokens?.[0];return!!(e.text&&e.tokens?.length===1&&t?.type===`list`&&t.ordered&&t.raw===e.text)}function s3(e,t){return t.tokenizeInline?t.parseInline(t.tokenizeInline(e)):t.parseInline([{type:`text`,raw:e,text:e}])}var c3=N1.create({name:`listItem`,addOptions(){return{HTMLAttributes:{},bulletListTypeName:`bulletList`,orderedListTypeName:`orderedList`}},content:`paragraph block*`,defining:!0,parseHTML(){return[{tag:`li`}]},renderHTML({HTMLAttributes:e}){return[`li`,v$(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(o3(e))return{type:`listItem`,content:[{type:`paragraph`,content:s3(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)=>y1(e,t,e=>{if(e.parentType===`bulletList`)return`- `;if(e.parentType===`orderedList`){var t,n;let r=((t=e.meta)==null||(t=t.parentAttrs)==null?void 0:t.start)||1;return a3((n=e.meta)==null||(n=n.parentAttrs)==null?void 0:n.type,r-1+(e.index||0),`. `)}return`- `},n,{alignNestedToPrefix:n?.parentType===`orderedList`}),addExtensions(){return[U4(this.name,[this.options.bulletListTypeName,this.options.orderedListTypeName])]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),l3=(e,t)=>{let{$from:n}=t.selection,r=ZZ(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}},u3=(e,t)=>{let n=l3(e,t);if(!n)return!1;let[,r]=O$(t,e,n.$pos.pos+4);return r},d3=(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))},f3=(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)&&d3(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)||!N$(e.state))return!1;let{$from:r}=e.state.selection,i=r.depth-1;return r.node(i).type!==e.schema.nodes[t]||r.index(i)!==0?!1:e.chain().liftListItem(t).run()},p3=(e,t)=>{let n=u3(e,t),r=l3(e,t);return!r||!n?!1:n>r.depth},m3=(e,t)=>{let n=u3(e,t),r=l3(e,t);return!r||!n?!1:n<r.depth},h3=(e,t)=>{if(!UQ(e.state,t)||!M$(e.state,t))return!1;let{selection:n}=e.state,{$from:r,$to:i}=n;return!n.empty&&r.sameParent(i)?!1:p3(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():m3(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward()},g3=(e,t,n)=>{let{state:r}=e,{selection:i}=r;if(!i.empty)return!1;let{$from:a}=i;if(a.parentOffset!==0||!a.parent.isTextblock||UQ(r,t))return!1;let o=k$(a);if(!o||!n.includes(o.type.name))return!1;let s=o.lastChild;if(!s||s.type.name!==t)return!1;let c=a.parent;if(!s.canReplace(s.childCount,s.childCount,Q.from(c)))return!1;let l=a.before(),u=a.after(),d=l-2;return e.commands.command(({tr:e,dispatch:t})=>(t&&(e.delete(l,u).insert(d,Q.from(c)),e.setSelection(tK.create(e.doc,d+1)),e.scrollIntoView()),!0))},_3=T1.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&&h3(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&&h3(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&&f3(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&&f3(e,n,r)&&(t=!0)}),t},Tab:({editor:e})=>{for(let{itemName:t,wrapperNames:n}of this.options.listTypes)if(e.state.schema.nodes[t]!==void 0&&g3(e,t,n))return!0;return!1}}}}),v3=RegExp(`^(\\s*)(${K4})([.)])\\s+(.*)$`),y3=/^\s/,b3={heading:/^#{1,6}(?:\s|$)/,bulletItem:/^[-+*]\s+/,codeFence:/^(?:```|~~~)/,blockMath:/^\$\$/,thematicBreak:/^(?:(?:-[ \t]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})$/};function x3(e){return v3.test(e.trimStart())}function S3(e){let t=e.trimStart();return b3.bulletItem.test(t)||x3(t)||b3.heading.test(t)||b3.thematicBreak.test(t)&&!t.startsWith(`-`)||/^>\s?/.test(t)||b3.codeFence.test(t)||b3.blockMath.test(t)}function C3(e){return Object.values(b3).some(t=>t.test(e))}function w3(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&&S3(e)){r=!0,n.push(e);return}t.push(e)}),{paragraphLines:t,blockLines:n}}function T3(e){let t=[],n=0,r=0;for(;n<e.length;){let i=e[n],a=i.match(v3);if(!a)break;let[,o,s,c,l]=a,u=o.length,d=parseInt(s,10),f=isNaN(d)?$4(s):void 0,p=isNaN(d)?e3(s):d,m=[l],h=n+1,g=[i],_=!1;for(;h<e.length;){let t=e[h];if(t.match(v3))break;if(t.trim()===``)g.push(t),m.push(``),_=!0,h+=1;else if(t.match(y3)){let e=t.length-t.trimStart().length,n=u+s.length+1;g.push(t),m.push(t.slice(Math.min(e,n))),h+=1}else{if(_||C3(t))break;g.push(t),m.push(t),h+=1}}t.push({indent:u,number:p,type:f,content:m.join(`
345
+ `).trim(),contentLines:m,raw:g.join(`
346
+ `)}),r=h,n=h}return[t,r]}var E3=RegExp(`^(${K4})([.)])\\s+(.+)$`);function D3(e){let t=e.split(`
347
+ `).filter(e=>e.trim().length>0);if(t.length===0)return null;let n=[];for(let e of t){let t=e.trim().match(E3);if(!t)return null;n.push({marker:t[1],content:t[3]})}return n3(n.map(e=>e.marker))?{type:`orderedList`,attrs:i3(n[0].marker),content:n.map(e=>({type:`listItem`,content:[{type:`paragraph`,content:[{type:`text`,text:e.content}]}]}))}:null}function O3(e,t,n){let r=[],i=0;for(;i<e.length;){let a=e[i];if(a.indent===t){let{paragraphLines:o,blockLines:s}=w3(a.contentLines),c=o.join(`
348
+ `).trim(),l=[];c&&l.push({type:`paragraph`,raw:c,tokens:n.inlineTokens(c)});let u=s.join(`
349
+ `).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=O3(f,Math.min(...f.map(e=>e.indent)),n);l.push({type:`list`,ordered:!0,start:f[0].number,typeMarker:f[0].type,items:e,raw:f.map(e=>e.raw).join(`
350
+ `)})}r.push({type:`list_item`,raw:a.raw,tokens:l}),i=d}else i+=1}return r}function k3(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 A3=`listItem`,j3=`textStyle`,M3=/^(\d+)\.\s$/;function N3(e){let t=e.match(/list-style-type\s*:\s*([^;]+)/i);if(!t)return null;switch(t[1].trim().toLowerCase()){case`upper-roman`:return`I`;case`lower-roman`:return`i`;case`upper-alpha`:case`upper-latin`:return`A`;case`lower-alpha`:case`lower-latin`:return`a`;default:return null}}var P3=N1.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=>{let t=e.getAttribute(`type`);if(t)return t;let n=e.getAttribute(`style`);if(n){let e=N3(n);if(e)return e}let r=e.querySelector(`li`);if(r){let e=r.getAttribute(`style`);if(e){let t=N3(e);if(t)return t}}return null}}}},parseHTML(){return[{tag:`ol`}]},renderHTML({HTMLAttributes:e}){let{start:t,type:n,...r}=e,i=v$(this.options.HTMLAttributes,r);return t!==1&&(i.start=t),n&&n!==`1`&&(i.type=n),[`ol`,i,0]},markdownTokenName:`list`,parseMarkdown:(e,t)=>{if(e.type!==`list`||!e.ordered)return[];let n=e.start||1,r=e.typeMarker,i=e.items?k3(e.items,t):[],a={};return n!==1&&(a.start=n),r&&(a.type=r),Object.keys(a).length>0?{type:`orderedList`,attrs:a,content:i}:{type:`orderedList`,content:i}},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
351
+ `):``,markdownTokenizer:{name:`orderedList`,level:`block`,start:()=>-1,tokenize:(e,t,n)=>{let r=e.split(`
352
+ `),[i,a]=T3(r);if(i.length===0)return;let o=O3(i,i[0].indent,n);if(o.length!==0)return{type:`list`,ordered:!0,start:i[0]?.number||1,typeMarker:i[0]?.type,items:o,raw:r.slice(0,a).join(`
353
+ `)}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(A3,this.editor.getAttributes(j3)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addProseMirrorPlugins(){return[new fK({props:{handlePaste:(e,t)=>{if((t.clipboardData?.getData(`text/html`))?.trim())return!1;let n=t.clipboardData?.getData(`text/plain`);if(!n)return!1;let r=D3(n);if(!r)return!1;try{let t=e.state.schema.nodeFromJSON(r),n=e.state.tr.replaceSelectionWith(t);return e.dispatch(n),!0}catch{return!1}}}})]},addInputRules(){let e=(e,t)=>(!t.attrs.type||t.attrs.type===`1`)&&t.childCount+t.attrs.start===+e[1],t=A1({find:M3,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:e});return(this.options.keepMarks||this.options.keepAttributes)&&(t=A1({find:M3,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(j3)}),joinPredicate:e,editor:this.editor})),[t]}}),F3=/^\s*(\[([( |x])?\])\s$/,I3=`position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0`,L3=(e,t,n)=>{var r;return(n==null||(r=n.checkboxLabel)==null?void 0:r.call(n,e,t))||`Task item checkbox for ${e.textContent||`empty task item`}`},R3=N1.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,contentElement:e=>e.querySelector(`div`)??e}]},renderHTML({node:e,HTMLAttributes:t}){return[`li`,v$(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)=>y1(e,t,`- [${e.attrs?.checked?`x`:` `}] `),addExtensions(){return this.options.nested?[U4(this.name,[this.options.taskListTypeName])]:[]},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`);o.style.cssText=I3;let l=e=>{let t=L3(e,e.attrs.checked,this.options.a11y);s.setAttribute(`aria-label`,t),o.textContent=t};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=y$(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[A1({find:F3,type:this.type,getAttributes:e=>({checked:e[e.length-1]===`x`})})]}}),z3=N1.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`,v$(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,`
354
+ `):``,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=g1(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(t){let r={type:`taskList`,raw:t.raw,items:t.items},i=e.slice(t.raw.length);return i.trim()?[r,...n.blockTokens(i)]:[r]}return n.blockTokens(e)},i=g1(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()}}});T1.create({name:`listKit`,addExtensions(){let e=[];return this.options.bulletList!==!1&&e.push(z4.configure(this.options.bulletList)),this.options.listItem!==!1&&e.push(c3.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(_3.configure(this.options.listKeymap)),this.options.orderedList!==!1&&e.push(P3.configure(this.options.orderedList)),this.options.taskItem!==!1&&e.push(R3.configure(this.options.taskItem)),this.options.taskList!==!1&&e.push(z3.configure(this.options.taskList)),e}});var B3=`&nbsp;`,V3=`\xA0`,H3=N1.create({name:`paragraph`,priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:`block`,content:`inline*`,parseHTML(){return[{tag:`p`}]},renderHTML({HTMLAttributes:e}){return[`p`,v$(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===B3||n[0].text===B3||n[0].raw===V3||n[0].text===V3)&&r.length===1&&r[0].type===`text`&&(r[0].text===B3||r[0].text===V3)?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){var i,a;let e=Array.isArray(n==null||(i=n.previousNode)==null?void 0:i.content)?n.previousNode.content:[];return(n==null||(a=n.previousNode)==null?void 0:a.type)===`paragraph`&&e.length===0?B3:``}return t.renderChildren(r)},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),U3=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,W3=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,G3=C1.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`,v$(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[D1({find:U3,type:this.type})]},addPasteRules(){return[P1({find:W3,type:this.type})]}}),K3=N1.create({name:`text`,group:`inline`,parseMarkdown:e=>({type:`text`,text:e.text||``}),renderMarkdown:e=>e.text||``}),q3=C1.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`,v$(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 J3(e={}){return new fK({view(t){return new Y3(t,e)}})}var Y3=class{constructor(e,t){this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.lastDragEvent=null,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){if(this.cursorPos!=null&&t.doc!=e.state.doc){if(this.lastDragEvent){let e=this.computeTarget(this.lastDragEvent);e==this.cursorPos?this.updateOverlay():this.setCursor(e)}else 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)}computeTarget(e){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)return null;let a=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let e=kG(this.editorView.state.doc,a,this.editorView.dragging.slice);e!=null&&(a=e)}return a}dragover(e){if(!this.editorView.editable)return;this.lastDragEvent=e;let t=this.computeTarget(e);t!=null&&(this.setCursor(t),this.scheduleRemoval(5e3))}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}},X3=class e extends ZG{constructor(e){super(e,e)}map(t,n){let r=t.resolve(n.map(this.head));return e.valid(r)?new e(r):ZG.near(r)}content(){return xU.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 Z3(this.anchor)}static valid(e){let t=e.parent;if(t.inlineContent||!$3(e)||!e6(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}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&&!rK.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}}};X3.prototype.visible=!1,X3.findFrom=X3.findGapCursorFrom,ZG.jsonID(`gapcursor`,X3);var Z3=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 X3.valid(t)?new X3(t):ZG.near(t)}};function Q3(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}function $3(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||Q3(e.type))return!0;if(e.inlineContent)return!1}}return!0}function e6(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||Q3(e.type))return!0;if(e.inlineContent)return!1}}return!0}function t6(){return new fK({props:{decorations:o6,createSelectionBetween(e,t,n){return t.pos==n.pos&&X3.valid(n)?new X3(n):null},handleClick:i6,handleKeyDown:n6,handleDOMEvents:{beforeinput:a6}}})}var n6=VZ({ArrowLeft:r6(`horiz`,-1),ArrowRight:r6(`horiz`,1),ArrowUp:r6(`vert`,-1),ArrowDown:r6(`vert`,1)});function r6(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 tK){if(!i.endOfTextblock(n)||o.depth==0)return!1;s=!1,o=e.doc.resolve(t>0?o.after():o.before())}let c=X3.findGapCursorFrom(o,t,s);return c?(r&&r(e.tr.setSelection(new X3(c))),!0):!1}}function i6(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!X3.valid(r))return!1;let i=e.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&rK.isSelectable(e.state.doc.nodeAt(i.inside))?!1:(e.dispatch(e.state.tr.setSelection(new X3(r))),!0)}function a6(e,t){if(t.inputType!=`insertCompositionText`||!(e.state.selection instanceof X3))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=Q.empty;for(let e=r.length-1;e>=0;e--)i=Q.from(r[e].createAndFill(null,i));let a=e.state.tr.replace(n.pos,n.pos,new xU(i,0,0));return a.setSelection(tK.near(a.doc.resolve(n.pos+1))),e.dispatch(a),!1}function o6(e){if(!(e.selection instanceof X3))return null;let t=document.createElement(`div`);return t.className=`ProseMirror-gapcursor`,HX.create(e.doc,[zX.widget(e.selection.head,t,{key:`gapcursor`})])}var s6=200,c6=function(){};c6.prototype.append=function(e){return e.length?(e=c6.from(e),!this.length&&e||e.length<s6&&this.leafAppend(e)||this.length<s6&&e.leafPrepend(this)||this.appendInner(e)):this},c6.prototype.prepend=function(e){return e.length?c6.from(e).append(this):this},c6.prototype.appendInner=function(e){return new u6(this,e)},c6.prototype.slice=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.length),e>=t?c6.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},c6.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},c6.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)},c6.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},c6.from=function(e){return e instanceof c6?e:e&&e.length?new l6(e):c6.empty};var l6=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<=s6)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=s6)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}(c6);c6.empty=new l6([]);var u6=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}(c6),d6=500,f6=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 m6(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 m6(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 m6(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>g6&&(s=p6(s,l),o-=l),new e(s.append(a),o)}remapping(e,t){let n=new qW;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 m6(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 m6(i,o,l))}else r.push(new m6(i))},i);let l=[];for(let e=n;e<o;e++)l.push(new m6(a.maps[e]));let u=this.items.slice(0,i).append(l).append(r),d=new e(u,s);return d.emptyItemCount()>d6&&(d=d.compress(this.items.length-r.length)),d}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 m6(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(c6.from(i.reverse()),a)}};f6.empty=new f6(c6.empty,0);function p6(e,t){let n;return e.forEach((e,r)=>{if(e.selection&&t--==0)return n=r,!1}),e.slice(n)}var m6=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)}}},h6=class{constructor(e,t,n,r,i){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}},g6=20;function _6(e,t,n,r){let i=n.getMeta(T6),a;if(i)return i.historyState;n.getMeta(E6)&&(e=new h6(e.done,e.undone,null,0,-1));let o=n.getMeta(`appendedTransaction`);if(n.steps.length==0)return e;if(o&&o.getMeta(T6))return o.getMeta(T6).redo?new h6(e.done.addTransform(n,void 0,r,w6(t)),e.undone,y6(n.mapping.maps),e.prevTime,e.prevComposition):new h6(e.done,e.undone.addTransform(n,void 0,r,w6(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||!v6(n,e.prevRanges)),s=o?b6(e.prevRanges,n.mapping):y6(n.mapping.maps);return new h6(e.done.addTransform(n,a?t.selection.getBookmark():void 0,r,w6(t)),f6.empty,s,n.time,i??e.prevComposition)}return(a=n.getMeta(`rebased`))?new h6(e.done.rebased(n,a),e.undone.rebased(n,a),b6(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new h6(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),b6(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function v6(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 y6(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 b6(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 x6(e,t,n){let r=w6(t),i=T6.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 h6(n?s:a.remaining,n?a.remaining:s,null,0,-1);return a.transform.setSelection(o).setMeta(T6,{redo:n,historyState:c})}var S6=!1,C6=null;function w6(e){let t=e.plugins;if(C6!=t){S6=!1,C6=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){S6=!0;break}}return S6}var T6=new hK(`history`),E6=new hK(`closeHistory`);function D6(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new fK({key:T6,state:{init(){return new h6(f6.empty,f6.empty,null,0,-1)},apply(t,n,r){return _6(n,r,t,e)}},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,r=n==`historyUndo`?k6:n==`historyRedo`?A6:null;return!r||!e.editable?!1:(t.preventDefault(),r(e.state,e.dispatch))}}}})}function O6(e,t){return(n,r)=>{let i=T6.getState(n);if(!i||(e?i.undone:i.done).eventCount==0)return!1;if(r){let a=x6(i,n,e);a&&r(t?a.scrollIntoView():a)}return!0}}var k6=O6(!1,!0),A6=O6(!0,!0);T1.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 fK({key:new hK(`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 j6=T1.create({name:`dropCursor`,addOptions(){return{color:`currentColor`,width:1,class:void 0}},addProseMirrorPlugins(){return[J3(this.options)]}});T1.create({name:`focus`,addOptions(){return{className:`has-focus`,mode:`all`}},addProseMirrorPlugins(){return[new fK({key:new hK(`focus`),props:{decorations:({doc:e,selection:t})=>{let{isEditable:n,isFocused:r}=this.editor,{anchor:i}=t,a=[];if(!n||!r)return HX.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(zX.node(t,t+e.nodeSize,{class:this.options.className}))}),HX.create(e,a)}}})]}});var M6=T1.create({name:`gapCursor`,addProseMirrorPlugins(){return[t6()]},extendNodeSchema(e){return{allowGapCursor:m$(f$(e,`allowGapCursor`,{name:e.name,options:e.options,storage:e.storage}))??null}}}),N6=`placeholder`,P6=new hK(`tiptap__placeholder`);function F6(e){let{editor:t,placeholder:n,dataAttribute:r,pos:i,node:a,isEmptyDoc:o,hasAnchor:s,classes:{emptyNode:c,emptyEditor:l}}=e,u=[c];return o&&u.push(l),zX.node(i,i+a.nodeSize,{class:u.join(` `),[r]:typeof n==`function`?n({editor:t,node:a,pos:i,hasAnchor:s}):n})}function I6(e,t){return typeof e==`function`?e(t):e}function L6({editor:e,options:t,dataAttribute:n,doc:r,selection:i,from:a,to:o}){let{anchor:s}=i,c=[],l=e.isEmpty;return r.nodesBetween(a,o,(r,i)=>{let a=s>=i&&s<=i+r.nodeSize,o=!r.isLeaf&&F$(r);return r.type.isTextblock&&(a||!t.showOnlyCurrent)&&o&&c.push(F6({editor:e,isEmptyDoc:l,dataAttribute:n,hasAnchor:a,placeholder:t.placeholder,classes:{emptyEditor:t.emptyEditorClass,emptyNode:I6(t.emptyNodeClass,{editor:e,node:r,pos:i,hasAnchor:a})},node:r,pos:i})),t.includeChildren}),c}function R6({editor:e,options:t,dataAttribute:n,doc:r,selection:i}){if(!e.isEditable&&t.showOnlyWhenEditable)return null;let{anchor:a}=i,o=[],s=e.isEmpty;if(t.showOnlyCurrent&&!t.includeChildren){let i=r.resolve(a),c=i.depth>0?i.node(1):i.nodeAfter,l=i.depth>0?i.before(1):a;if(c&&c.type.isTextblock&&F$(c)){let r=a>=l&&a<=l+c.nodeSize;o.push(F6({editor:e,isEmptyDoc:s,dataAttribute:n,hasAnchor:r,placeholder:t.placeholder,classes:{emptyEditor:t.emptyEditorClass,emptyNode:I6(t.emptyNodeClass,{editor:e,node:c,pos:l,hasAnchor:r})},node:c,pos:l}))}}else o.push(...L6({editor:e,options:t,dataAttribute:n,doc:r,selection:i,from:0,to:r.content.size}));return HX.create(r,o)}function z6(e,t){let n=e.resolve(t);if(n.depth===0){let e=n.nodeAfter??n.nodeBefore;if(!e)return{from:t,to:t};let r=n.nodeAfter?t:t-e.nodeSize;return{from:r,to:r+e.nodeSize}}let r=n.before(1);return{from:r,to:r+n.node(1).nodeSize}}function B6(e,t){return{from:Math.max(0,t.from-1),to:Math.min(e.content.size,t.to-1)}}function V6(e,t,n){let r=[];return e.forEach((e,i)=>{let a=i,o=a+e.nodeSize,s=a+1,c=o+1;s<n&&c>t&&r.push({from:a,to:o})}),r}function H6(e){if(e.length===0)return[];let t=[...e].sort((e,t)=>e.from-t.from),n=[{...t[0]}];for(let e=1;e<t.length;e+=1){let r=n[n.length-1],i=t[e];i.from<=r.to?r.to=Math.max(r.to,i.to):n.push({...i})}return n}function U6(e,t){let n=V6(e,t.from,t.to);return n.push(B6(e,z6(e,t.from))),t.to>t.from?n.push(B6(e,z6(e,Math.min(t.to,e.content.size+1)-1))):t.from<e.content.size+1&&n.push(B6(e,z6(e,Math.min(t.from+1,e.content.size)))),n}function W6(e,t,n){let r=[];if(e.docChanged){let t=E$(e);for(let e of t)r.push(...U6(n.doc,e.newRange))}return e.selectionSet&&(r.push(B6(n.doc,z6(n.doc,e.mapping.map(t.selection.anchor)))),r.push(B6(n.doc,z6(n.doc,n.selection.anchor)))),H6(r)}function G6(e,t,n){let r=Math.max(0,Math.min(e,n.content.size));return{from:r,to:Math.max(r,Math.min(t,n.content.size))}}function K6({decorations:e,ranges:t,editor:n,options:r,dataAttribute:i,doc:a,selection:o}){let s=e;for(let e of t){let{from:t,to:c}=G6(e.from,e.to,a),l=s.find(t,c).filter(e=>e.from>=t&&e.to<=c);l.length&&(s=s.remove(l));let u=L6({editor:n,options:r,dataAttribute:i,doc:a,selection:o,from:t,to:c});u.length&&(s=s.add(a,u))}return s}function q6({editor:e,options:t,dataAttribute:n}){return{init(r,i){return R6({editor:e,options:t,dataAttribute:n,doc:i.doc,selection:i.selection})??HX.empty},apply(r,i,a,o){return!r.docChanged&&!r.selectionSet?i:K6({decorations:i.map(r.mapping,r.doc),ranges:W6(r,a,o),editor:e,options:t,dataAttribute:n,doc:o.doc,selection:o.selection})}}}function J6(e){return e.replace(/\s+/g,`-`).replace(/[^a-zA-Z0-9-]/g,``).replace(/^[0-9-]+/,``).replace(/^-+/,``).toLowerCase()}function Y6({editor:e,options:t}){let n=t.dataAttribute?`data-${J6(t.dataAttribute)}`:`data-${N6}`,r=t.showOnlyCurrent&&!t.includeChildren;return new fK({key:P6,...r?{}:{state:q6({editor:e,options:t,dataAttribute:n})},props:{decorations:r?({doc:r,selection:i})=>R6({editor:e,options:t,dataAttribute:n,doc:r,selection:i}):n=>t.showOnlyWhenEditable&&!e.isEditable?HX.empty:P6.getState(n)??HX.empty}})}T1.create({name:`placeholder`,addOptions(){return{emptyEditorClass:`is-editor-empty`,emptyNodeClass:`is-empty`,dataAttribute:N6,placeholder:`Write something …`,showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[Y6({editor:this.editor,options:this.options})]}});function X6(e,t){return!e.selection.empty&&!I$(e.selection)&&t.isEditable}function Z6(e,t){return X6(e,t)&&!t.isFocused&&!t.view.dragging}function Q6(){var e;(e=window.getSelection())==null||e.removeAllRanges()}function $6(e){e.focus()}T1.create({name:`selection`,addOptions(){return{className:`selection`}},addProseMirrorPlugins(){let{editor:e,options:t}=this;return[new fK({key:new hK(`selection`),props:{decorations(n){return Z6(n,e)?HX.create(n.doc,[zX.inline(n.selection.from,n.selection.to,{class:t.className})]):null},handleDOMEvents:{blur(t){return X6(t.state,e)&&Q6(),!1},focus(t){return X6(t.state,e)&&requestAnimationFrame(()=>{!e.isDestroyed&&t.hasFocus()&&$6(t)}),!1}}}})]}});function e8({types:e,node:t}){return t&&Array.isArray(e)&&e.includes(t.type)||t?.type===e}var t8=T1.create({name:`trailingNode`,addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){let e=new hK(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 fK({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!e8({node:r,types:n})},apply:(e,t)=>{if(!e.docChanged||e.getMeta(`__uniqueIDTransaction`))return t;let r=e.doc.lastChild;return!e8({node:r,types:n})}}})]}}),n8=T1.create({name:`undoRedo`,addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:t})=>k6(e,t),redo:()=>({state:e,dispatch:t})=>A6(e,t)}},addProseMirrorPlugins(){return[D6(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()}}});T1.create({name:`starterKit`,addExtensions(){let e=[];return this.options.bold!==!1&&e.push(Y1.configure(this.options.bold)),this.options.blockquote!==!1&&e.push(W1.configure(this.options.blockquote)),this.options.bulletList!==!1&&e.push(z4.configure(this.options.bulletList)),this.options.code!==!1&&e.push(Q1.configure(this.options.code)),this.options.codeBlock!==!1&&e.push(n0.configure(this.options.codeBlock)),this.options.document!==!1&&e.push(r0.configure(this.options.document)),this.options.dropcursor!==!1&&e.push(j6.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&e.push(M6.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&e.push(i0.configure(this.options.hardBreak)),this.options.heading!==!1&&e.push(a0.configure(this.options.heading)),this.options.undoRedo!==!1&&e.push(n8.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&e.push(o0.configure(this.options.horizontalRule)),this.options.italic!==!1&&e.push(d0.configure(this.options.italic)),this.options.listItem!==!1&&e.push(c3.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(_3.configure(this.options?.listKeymap)),this.options.link!==!1&&e.push(F4.configure(this.options?.link)),this.options.orderedList!==!1&&e.push(P3.configure(this.options.orderedList)),this.options.paragraph!==!1&&e.push(H3.configure(this.options.paragraph)),this.options.strike!==!1&&e.push(G3.configure(this.options.strike)),this.options.text!==!1&&e.push(K3.configure(this.options.text)),this.options.underline!==!1&&e.push(q3.configure(this.options?.underline)),this.options.trailingNode!==!1&&e.push(t8.configure(this.options?.trailingNode)),e}}),T1.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 r8=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/;N1.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`,v$(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,i=new Set([`src`,`width`,`height`]);return({node:a,getPos:o,HTMLAttributes:s,editor:c})=>{let l=document.createElement(`img`);l.draggable=!1;let u=v$(this.options.HTMLAttributes,s);Object.entries(u).forEach(([e,t])=>{if(t!=null)switch(e){case`src`:case`width`:case`height`:break;default:l.setAttribute(e,t)}}),u.src!==null&&(l.src=u.src);let d={...s},f=e=>{if(typeof e==`string`&&e!==``){l.getAttribute(`src`)!==e&&(l.src=e);return}l.hasAttribute(`src`)&&l.removeAttribute(`src`),l.src!==``&&(l.src=``)};f(s.src);let p=new M1({element:l,editor:c,node:a,getPos:o,onResize:(e,t)=>{l.style.width=`${e}px`,l.style.height=`${t}px`},onCommit:(e,t)=>{let n=o();n!==void 0&&this.editor.chain().setNodeSelection(n).updateAttributes(this.name,{width:e,height:t}).run()},onUpdate:e=>{if(e.type!==a.type)return!1;let t=y$(e,c.extensionManager.attributes.filter(t=>t.type===e.type.name));return Object.keys(d).forEach(e=>{!i.has(e)&&!(e in t)&&l.removeAttribute(e)}),Object.entries(t).forEach(([e,t])=>{i.has(e)||(t==null?l.removeAttribute(e):l.setAttribute(e,t))}),f(t.src),d=t,!0},options:{directions:e,min:{width:t,height:n},preserveAspectRatio:r===!0}}),m=p.dom,h=()=>{m.style.visibility=``,m.style.pointerEvents=``};return m.style.visibility=`hidden`,m.style.pointerEvents=`none`,l.complete&&l.naturalWidth>0?h():(l.onload=h,l.onerror=h),p}},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[O1({find:r8,type:this.type,getAttributes:e=>{let[,,t,n,r]=e;return{src:n,alt:t,title:r}}})]}});function i8(e,t=[]){return e.flatMap(e=>{let n=[...t,...e.properties?e.properties.className:[]];return e.children?i8(e.children,n):{text:e.value,classes:n}})}function a8(e){return e.value||e.children||[]}function o8(e){return!!cU.getLanguage(e)}function s8({doc:e,name:t,lowlight:n,defaultLanguage:r}){let i=[];return c$(e,e=>e.type.name===t).forEach(e=>{let t=e.pos+1,a=e.node.attrs.language||r,o=n.listLanguages();i8(a&&(o.includes(a)||o8(a)||n.registered?.call(n,a))?a8(n.highlight(a,e.node.textContent)):a8(n.highlightAuto(e.node.textContent))).forEach(e=>{let n=t+e.text.length;if(e.classes.length){let r=zX.inline(t,n,{class:e.classes.join(` `)});i.push(r)}t=n})}),HX.create(e,i)}function c8(e){return typeof e==`function`}function l8({name:e,lowlight:t,defaultLanguage:n}){if(![`highlight`,`highlightAuto`,`listLanguages`].every(e=>c8(t[e])))throw Error(`You should provide an instance of lowlight to use the code-block-lowlight extension`);let r=new fK({key:new hK(`lowlight`),state:{init:(r,{doc:i})=>s8({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=c$(a.doc,t=>t.type.name===e),u=c$(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)))?s8({doc:r.doc,name:e,lowlight:t,defaultLanguage:n}):i.map(r.mapping,r.doc)}},props:{decorations(e){return r.getState(e)}}});return r}n0.extend({addOptions(){return{...this.parent?.call(this),lowlight:{},languageClassPrefix:`language-`,exitOnTripleEnter:!0,exitOnArrowDown:!0,exitOnArrowUp:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:4,HTMLAttributes:{}}},addProseMirrorPlugins(){return[...this.parent?.call(this)||[],l8({name:this.name,lowlight:this.options.lowlight,defaultLanguage:this.options.defaultLanguage})]}});var u8=e=>`prism-editor-${e}`,d8={root:u8(`root`),toolbar:{root:u8(`toolbar`),hr:u8(`toolbar-hr`),bold:u8(`toolbar-bold`),italic:u8(`toolbar-italic`),underline:u8(`toolbar-underline`),strike:u8(`toolbar-strike`),code:u8(`toolbar-code`),codeBlock:u8(`toolbar-code-block`),link:u8(`toolbar-link`),unlink:u8(`toolbar-unlink`),image:u8(`toolbar-image`),alignLeft:u8(`toolbar-align-left`),alignCenter:u8(`toolbar-align-center`),alignRight:u8(`toolbar-align-right`),alignJustify:u8(`toolbar-align-justify`),bulletList:u8(`toolbar-bullet-list`),orderedList:u8(`toolbar-ordered-list`),taskList:u8(`toolbar-task-list`),blockquote:u8(`toolbar-blockquote`),hardBreak:u8(`toolbar-hard-break`),clear:u8(`toolbar-clear`),undo:u8(`toolbar-undo`),redo:u8(`toolbar-redo`),fullscreen:u8(`toolbar-fullscreen`)},content:{root:u8(`content`),hr:u8(`content-hr`),link:u8(`content-link`),image:u8(`content-image`),heading:u8(`content-heading`),codeInline:u8(`content-code-inline`),codeBlock:u8(`content-code-block`),langSelect:u8(`content-lang-select`),blockquote:u8(`content-blockquote`),bulletList:u8(`content-bullet-list`),orderedList:u8(`content-ordered-list`),listItem:u8(`content-list-item`),taskList:u8(`content-task-list`),taskItem:u8(`content-task-item`),placeholder:u8(`content-placeholder`)},state:{error:u8(`state-error`),disabled:u8(`state-disabled`),fullscreen:u8(`state-fullscreen`)}},f8=`0.75em`;K(`div`)(({theme:e})=>({minHeight:240,display:`flex`,flexDirection:`column`,borderRadius:Number(e.shape.borderRadius)*1.5,border:`solid 1px ${U(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 ${U(e.palette.primary.main,.2)}`},[`&.${d8.state.error}`]:{borderColor:e.palette.error.main,[`& .${d8.content.root}`]:{backgroundColor:U(e.palette.error.main,.04)}},[`&.${d8.state.disabled}`]:{opacity:.48,pointerEvents:`none`},[`&.${d8.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]},[`& .${d8.content.placeholder}`]:{"&:first-child::before":{...e.typography.body2,height:0,float:`left`,pointerEvents:`none`,content:`attr(data-placeholder)`,color:e.palette.text.disabled}},[`& .${d8.content.root}`]:{display:`flex`,flex:`1 1 auto`,overflowY:`auto`,flexDirection:`column`,borderBottomLeftRadius:`inherit`,borderBottomRightRadius:`inherit`,backgroundColor:U(e.palette.grey[500],.04),"& .tiptap":{"> * + *":{marginTop:0,marginBottom:f8},"&.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`},[`& .${d8.content.link}`]:{color:e.palette.primary.main,textDecoration:`none`,"&:hover":{textDecoration:`underline`}},[`& .${d8.content.hr}`]:{flexShrink:0,borderWidth:0,margin:`2em 0`,borderStyle:`solid`,borderBottomWidth:`thin`,borderColor:e.palette.divider},[`& .${d8.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}},[`& .${d8.content.bulletList}`]:{paddingLeft:16,listStyleType:`disc`},[`& .${d8.content.orderedList}`]:{paddingLeft:16},[`& .${d8.content.listItem}`]:{lineHeight:2,"& > p":{margin:0}},[`& .${d8.content.taskList}`]:{listStyle:`none`,padding:0,"& li":{display:`flex`,alignItems:`flex-start`,gap:e.spacing(1),"& > label":{marginTop:4,flexShrink:0},"& > div":{flex:1}}},[`& .${d8.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 ${U(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}},[`& .${d8.content.codeInline}`]:{padding:e.spacing(.25,.5),color:e.palette.text.secondary,fontSize:e.typography.body2.fontSize,borderRadius:Number(e.shape.borderRadius)/2,backgroundColor:U(e.palette.grey[500],.16),fontFamily:`'JetBrains Mono', 'Fira Code', monospace`},[`& .${d8.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}},[`& .${d8.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:U(e.palette.grey[500],.08),backgroundColor:U(e.palette.grey[500],.08)}}}}})),K(rg,{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(rg)(({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 ${U(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 ${U(e.palette.grey[500],.16)}`})),T1.create({name:`clearFormat`,addKeyboardShortcuts(){return{"Mod-Shift-X":({editor:e})=>e.chain().focus().clearNodes().unsetAllMarks().run()}}});var p8=e=>e instanceof HTMLElement,m8=(e,t)=>typeof e==`string`&&t.includes(e);C1.create({name:`textTransform`,addOptions(){return{allowedValues:[`uppercase`,`lowercase`,`capitalize`],defaultValue:void 0}},addAttributes(){return{textTransform:{default:this.options.defaultValue,parseHTML:e=>{if(!p8(e))return;let t=e.style.textTransform||e.getAttribute(`style`)?.match(/text-transform:\s*(\w+)/)?.[1];return m8(t,this.options.allowedValues)?t:void 0},renderHTML:e=>e.textTransform?{style:`text-transform: ${e.textTransform}`}:{}}}},parseHTML(){return[{tag:`span[style]`,getAttrs:e=>{if(!p8(e))return null;let t=e.style.textTransform;return m8(t,this.options.allowedValues)?{}:!1}}]},renderHTML({HTMLAttributes:e}){return[`span`,e,0]},addCommands(){return{setTextTransform:e=>({commands:t})=>m8(e,this.options.allowedValues)?t.setMark(this.name,{textTransform:e}):!1,unsetTextTransform:()=>({commands:e})=>e.unsetMark(this.name),toggleTextTransform:e=>({editor:t,commands:n})=>m8(e,this.options.allowedValues)?t.isActive(this.name,{textTransform:e})?n.unsetTextTransform():n.setTextTransform(e):!1}}}),LV(`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(Fg)(({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(oy)(({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(QE,{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(Z)(({theme:e})=>({display:`flex`,flexWrap:`wrap`,gap:8,marginTop:16})),K(QE)(({theme:e})=>({display:`inline-flex`,padding:`4px 10px`,fontSize:`0.75rem`,fontWeight:500,color:e.palette.text.secondary,backgroundColor:U(e.palette.grey[500],.08),borderRadius:6,textDecoration:`none`,transition:e.transitions.create([`background-color`,`color`],{duration:e.transitions.duration.shorter}),"&:hover":{backgroundColor:U(e.palette.grey[500],.16),color:e.palette.text.primary}})),K(QE)(({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(Fg)(({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(oy)(({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-child":{marginTop:0}})),K(QE,{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 h8=(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})=>({...h8(e,t),"&:disabled":{color:`var(--nav-item-disabled-color)`,cursor:`not-allowed`}})),K(`a`)(({theme:e,active:t})=>h8(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(Z)(({theme:e})=>({padding:`8px 0`,paddingLeft:40,backgroundColor:e.palette.background.neutral})),K(oy)(({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(QE,{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,S.createContext)({activeId:null,registerSection:()=>{},unregisterSection:()=>{}});var g8=`prism-content`,_8={root:`${g8}__root`,compact:`${g8}__compact`,tiptap:`${g8}__tiptap`,markdown:`${g8}__markdown`,image:`${g8}__image`,link:`${g8}__link`,checkbox:`${g8}__checkbox`,codeBlock:`${g8}__code-block`,codeBlockTitle:`${g8}__code-block-title`,codeBlockCopy:`${g8}__code-block-copy`,codeBlockHighlight:`${g8}__code-block-highlight`,codeInline:`${g8}__code-inline`,spoiler:`${g8}__spoiler`,admonition:`${g8}__admonition`,admonitionNote:`${g8}__admonition-note`,admonitionTip:`${g8}__admonition-tip`,admonitionWarning:`${g8}__admonition-warning`,admonitionDanger:`${g8}__admonition-danger`,admonitionInfo:`${g8}__admonition-info`,admonitionCaution:`${g8}__admonition-caution`,admonitionTitle:`${g8}__admonition-title`,admonitionContent:`${g8}__admonition-content`,tabs:`${g8}__tabs`,tabsHeader:`${g8}__tabs-header`,tabsTab:`${g8}__tabs-tab`,tabsTabActive:`${g8}__tabs-tab-active`,tabsPanel:`${g8}__tabs-panel`,figure:`${g8}__figure`,figcaption:`${g8}__figcaption`,kbd:`${g8}__kbd`},v8=`0.75em`,y8=`'JetBrains Mono', 'Fira Code', 'Cascadia Code', Menlo, Monaco, 'Courier New', monospace`;K(`div`)(({theme:e})=>({"> * + *":{marginTop:0,marginBottom:v8},"& h1, & h2, & h3, & h4, & h5, & h6":{scrollMarginTop:100},h1:{...e.typography.h1,marginTop:0,marginBottom:12},h2:{...e.typography.h2,marginTop:0,marginBottom:12},h3:{...e.typography.h3,marginTop:0,marginBottom:8},h4:{...e.typography.h4,marginTop:0,marginBottom:8},h5:{...e.typography.h5,marginTop:0,marginBottom:8},h6:{...e.typography.h6,marginTop:0,marginBottom:8},"& * + h1, & * + h2":{marginTop:40},"& * + h3":{marginTop:32},"& * + h4, & * + h5, & * + h6":{marginTop:24},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},[`& .${_8.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:U(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:U(e.palette.primary.main,.3),lineHeight:1}},[`& .${_8.codeInline}`]:{padding:e.spacing(.25,.75),color:e.palette.text.secondary,fontSize:e.typography.body2.fontSize,borderRadius:Number(e.shape.borderRadius)/2,backgroundColor:U(e.palette.grey[500],.2),fontFamily:y8},"& :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:U(e.palette.grey[500],.2),fontFamily:y8},[`& .${_8.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:y8,fontSize:e.typography.body2.fontSize,lineHeight:1.7,backgroundColor:e.palette.grey[900],...e.palette.mode===`dark`&&{backgroundColor:U(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:y8,fontSize:e.typography.body2.fontSize,lineHeight:1.7,backgroundColor:e.palette.grey[900],marginBottom:`1.25rem`,...e.palette.mode===`dark`&&{backgroundColor:U(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:U(e.palette.grey[500],.08)},"& tbody tr:nth-of-type(odd)":{backgroundColor:U(e.palette.grey[500],.04)}},[`& .${_8.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:y8,borderRadius:4,border:`1px solid ${e.palette.divider}`,boxShadow:`0 1px 0 ${U(e.palette.grey[500],.1)}`,backgroundColor:U(e.palette.grey[500],.06)},"& mark":{padding:e.spacing(0,.5),borderRadius:2,backgroundColor:U(e.palette.warning.main,.3)},"& sup, & sub":{fontSize:`0.75em`},[`& .${_8.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`}},[`& .${_8.admonition}`]:{margin:e.spacing(2,0),padding:e.spacing(1.5,2),borderRadius:e.shape.borderRadius,borderLeft:`4px solid ${e.palette.divider}`,backgroundColor:U(e.palette.text.primary,.04),"& > :last-child":{marginBottom:0}},[`& .${_8.admonitionTitle}`]:{fontWeight:600,textTransform:`uppercase`,fontSize:`0.75rem`,letterSpacing:`0.05em`,marginBottom:e.spacing(.75),opacity:.85},[`& .${_8.admonitionContent}`]:{"& p:last-child":{marginBottom:0}},[`& .${_8.admonitionNote}`]:{borderLeftColor:e.palette.text.secondary,backgroundColor:U(e.palette.text.primary,.04)},[`& .${_8.admonitionTip}`]:{borderLeftColor:e.palette.success.main,backgroundColor:U(e.palette.success.main,.08)},[`& .${_8.admonitionWarning}`]:{borderLeftColor:e.palette.warning.main,backgroundColor:U(e.palette.warning.main,.08)},[`& .${_8.admonitionDanger}`]:{borderLeftColor:e.palette.error.main,backgroundColor:U(e.palette.error.main,.08)},[`& .${_8.admonitionInfo}`]:{borderLeftColor:e.palette.info.main,backgroundColor:U(e.palette.info.main,.08)},[`& .${_8.admonitionCaution}`]:{borderLeftColor:e.palette.warning.dark,backgroundColor:U(e.palette.warning.dark,.08)},[`& .${_8.tabs}`]:{margin:e.spacing(2,0),border:`1px solid ${e.palette.divider}`,borderRadius:e.shape.borderRadius,overflow:`hidden`},[`& .${_8.tabsHeader}`]:{display:`flex`,gap:0,borderBottom:`1px solid ${e.palette.divider}`,backgroundColor:U(e.palette.text.primary,.03)},[`& .${_8.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}},[`& .${_8.tabsTabActive}`]:{color:e.palette.text.primary,borderBottomColor:e.palette.primary.main},[`& .${_8.tabsPanel}`]:{padding:e.spacing(2),"& > :last-child":{marginBottom:0}},[`& .${_8.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:U(e.palette.text.primary,.06),borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},[`& .${_8.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:U(e.palette.text.primary,.08)}},[`& .${_8.figure}`]:{margin:e.spacing(2,0),textAlign:`center`},[`& .${_8.figcaption}`]:{fontSize:`0.8125rem`,color:e.palette.text.secondary,marginTop:e.spacing(.75)},[`& .${_8.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:U(e.palette.text.primary,.04),boxShadow:`0 1px 0 ${U(e.palette.text.primary,.15)}`,minWidth:`1.5em`,textAlign:`center`},[`&.${_8.compact}`]:{"> * + *":{marginTop:0,marginBottom:2},"& 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},[`& .${_8.codeBlock}`]:{marginBottom:4},[`& .${_8.codeBlock} pre, & pre:not([class])`]:{padding:e.spacing(1.5),fontSize:`0.75rem`,lineHeight:1.5,marginBottom:4},[`& .${_8.codeInline}, & :not(pre) > code:not([class])`]:{fontSize:`0.75rem`},"& table":{fontSize:`0.75rem`,marginBottom:4}}})),(0,S.createContext)({}),_8.admonitionNote,_8.admonitionTip,_8.admonitionWarning,_8.admonitionDanger,_8.admonitionInfo,_8.admonitionCaution;var b8=[`ariaDescribedBy`,`ariaLabel`,`ariaLabelledBy`],x8={ancestors:{tbody:[`table`],td:[`table`],th:[`table`],thead:[`table`],tfoot:[`table`],tr:[`table`]},attributes:{a:[...b8,`dataFootnoteBackref`,`dataFootnoteRef`,[`className`,`data-footnote-backref`],`href`],blockquote:[`cite`],code:[[`className`,/^language-./]],del:[`cite`],div:[`itemScope`,`itemType`],dl:[...b8],h2:[[`className`,`sr-only`]],img:[...b8,`longDesc`,`src`],input:[[`disabled`,!0],[`type`,`checkbox`]],ins:[`cite`],li:[[`className`,`task-list-item`]],ol:[...b8,[`className`,`contains-task-list`]],q:[`cite`],section:[`dataFootnotes`,[`className`,`footnotes`]],source:[`srcSet`],summary:[...b8],table:[...b8],ul:[...b8,[`className`,`contains-task-list`]],"*":`abbr.accept.acceptCharset.accessKey.action.align.alt.axis.border.cellPadding.cellSpacing.char.charOff.charSet.checked.clear.colSpan.color.cols.compact.coords.dateTime.dir.encType.frame.hSpace.headers.height.hrefLang.htmlFor.id.isMap.itemProp.label.lang.maxLength.media.method.multiple.name.noHref.noShade.noWrap.open.prompt.readOnly.rev.rowSpan.rows.rules.scope.selected.shape.size.span.start.summary.tabIndex.title.useMap.vAlign.value.width`.split(`.`)},clobber:[`ariaDescribedBy`,`ariaLabelledBy`,`id`,`name`],clobberPrefix:`user-content-`,protocols:{cite:[`http`,`https`],href:[`http`,`https`,`irc`,`ircs`,`mailto`,`xmpp`],longDesc:[`http`,`https`],src:[`http`,`https`]},required:{input:{disabled:!0,type:`checkbox`}},strip:[`script`],tagNames:`a.b.blockquote.br.code.dd.del.details.div.dl.dt.em.h1.h2.h3.h4.h5.h6.hr.i.img.input.ins.kbd.li.ol.p.picture.pre.q.rp.rt.ruby.s.samp.section.source.span.strike.strong.sub.summary.sup.table.tbody.td.tfoot.th.thead.tr.tt.ul.var`.split(`.`)};function S8(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 C8(e,t){return Array(t+1).join(e)}function w8(e){return e.replace(/^\n*/,``)}function T8(e){for(var t=e.length;t>0&&e[t-1]===`
355
+ `;)t--;return e.substring(0,t)}function E8(e){return T8(w8(e))}var Ore=`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 D8(e){return j8(e,Ore)}var O8=[`AREA`,`BASE`,`BR`,`COL`,`COMMAND`,`EMBED`,`HR`,`IMG`,`INPUT`,`KEYGEN`,`LINK`,`META`,`PARAM`,`SOURCE`,`TRACK`,`WBR`];function k8(e){return j8(e,O8)}function kre(e){return M8(e,O8)}var A8=[`A`,`TABLE`,`THEAD`,`TBODY`,`TFOOT`,`TH`,`TD`,`IFRAME`,`SCRIPT`,`AUDIO`,`VIDEO`];function Are(e){return j8(e,A8)}function jre(e){return M8(e,A8)}function j8(e,t){return t.indexOf(e.nodeName)>=0}function M8(e,t){return e.getElementsByTagName&&t.some(function(t){return e.getElementsByTagName(t).length})}var Mre=[[/\\/g,`\\\\`],[/\*/g,`\\*`],[/^-/g,`\\-`],[/^\+ /g,`\\+ `],[/^(=+)/g,`\\$1`],[/^(#{1,6}) /g,`\\$1 `],[/`/g,"\\`"],[/^~~~/g,`\\~~~`],[/\[/g,`\\[`],[/\]/g,`\\]`],[/^>/g,`\\>`],[/_/g,`\\_`],[/^(\d+)\. /g,`$1\\. `]];function N8(e){return Mre.reduce(function(e,t){return e.replace(t[0],t[1])},e)}var P8={};P8.paragraph={filter:`p`,replacement:function(e){return`
356
+
357
+ `+e+`
358
+
359
+ `}},P8.lineBreak={filter:`br`,replacement:function(e,t,n){return n.br+`
360
+ `}},P8.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=C8(r===1?`=`:`-`,e.length);return`
361
+
362
+ `+e+`
363
+ `+i+`
364
+
365
+ `}return`
366
+
367
+ `+C8(`#`,r)+` `+e+`
368
+
369
+ `}},P8.blockquote={filter:`blockquote`,replacement:function(e){return e=E8(e).replace(/^/gm,`> `),`
370
+
371
+ `+e+`
372
+
373
+ `}},P8.list={filter:[`ul`,`ol`],replacement:function(e,t){var n=t.parentNode;return n.nodeName===`LI`&&n.lastElementChild===t?`
374
+ `+e:`
375
+
376
+ `+e+`
377
+
378
+ `}},P8.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=E8(e)+(s?`
379
+ `:``),e=e.replace(/\n/gm,`
380
+ `+` `.repeat(r.length)),r+e+(t.nextSibling?`
381
+ `:``)}},P8.indentedCodeBlock={filter:function(e,t){return t.codeBlockStyle===`indented`&&e.nodeName===`PRE`&&e.firstChild&&e.firstChild.nodeName===`CODE`},replacement:function(e,t,n){return`
382
+
383
+ `+t.firstChild.textContent.replace(/\n/g,`
384
+ `)+`
385
+
386
+ `}},P8.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=C8(a,o);return`
387
+
388
+ `+l+r+`
389
+ `+i.replace(/\n$/,``)+`
390
+ `+l+`
391
+
392
+ `}},P8.horizontalRule={filter:`hr`,replacement:function(e,t,n){return`
393
+
394
+ `+n.hr+`
395
+
396
+ `}},P8.inlineLink={filter:function(e,t){return t.linkStyle===`inlined`&&e.nodeName===`A`&&e.getAttribute(`href`)},replacement:function(e,t){var n=I8(t.getAttribute(`href`)),r=L8(F8(t.getAttribute(`title`))),i=r?` "`+r+`"`:``;return`[`+e+`](`+n+i+`)`}},P8.referenceLink={filter:function(e,t){return t.linkStyle===`referenced`&&e.nodeName===`A`&&e.getAttribute(`href`)},replacement:function(e,t,n){var r=I8(t.getAttribute(`href`)),i=F8(t.getAttribute(`title`));i&&=` "`+L8(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=`
397
+
398
+ `+this.references.join(`
399
+ `)+`
400
+
401
+ `,this.references=[]),t}},P8.emphasis={filter:[`em`,`i`],replacement:function(e,t,n){return e.trim()?n.emDelimiter+e+n.emDelimiter:``}},P8.strong={filter:[`strong`,`b`],replacement:function(e,t,n){return e.trim()?n.strongDelimiter+e+n.strongDelimiter:``}},P8.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}},P8.image={filter:`img`,replacement:function(e,t){var n=N8(F8(t.getAttribute(`alt`))),r=I8(t.getAttribute(`src`)||``),i=F8(t.getAttribute(`title`)),a=i?` "`+L8(i)+`"`:``;return r?`![`+n+`](`+r+a+`)`:``}};function F8(e){return e?e.replace(/(\n+\s*)+/g,`
402
+ `):``}function I8(e){var t=e.replace(/([<>()])/g,`\\$1`);return t.indexOf(` `)>=0?`<`+t+`>`:t}function L8(e){return e.replace(/"/g,`\\"`)}function R8(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])}R8.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=z8(this.array,e,this.options))||(t=z8(this._keep,e,this.options))||(t=z8(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 z8(e,t,n){for(var r=0;r<e.length;r++){var i=e[r];if(Nre(i,t,n))return i}}function Nre(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 Pre(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=V8(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=B8(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=B8(c);continue}var u=V8(s,c,i);s=c,c=u}a&&(a.data=a.data.replace(/ $/,``),a.data||B8(a))}}function B8(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function V8(e,t,n){return e&&e.parentNode===t||n(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}var H8=typeof window<`u`?window:{};function Fre(){var e=H8.DOMParser,t=!1;try{new e().parseFromString(``,`text/html`)&&(t=!0)}catch{}return t}function Ire(){var e=function(){};return Lre()?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 Lre(){var e=!1;try{document.implementation.createHTMLDocument(``).open()}catch{H8.ActiveXObject&&(e=!0)}return e}var Rre=Fre()?H8.DOMParser:Ire();function zre(e,t){var n=typeof e==`string`?Bre().parseFromString(`<x-turndown id="turndown-root">`+e+`</x-turndown>`,`text/html`).getElementById(`turndown-root`):e.cloneNode(!0);return Pre({element:n,isBlock:D8,isVoid:k8,isPre:t.preformattedCode?Vre:null}),n}var U8;function Bre(){return U8||=new Rre,U8}function Vre(e){return e.nodeName===`PRE`||e.nodeName===`CODE`}function Hre(e,t){return e.isBlock=D8(e),e.isCode=e.nodeName===`CODE`||e.parentNode.isCode,e.isBlank=Ure(e),e.flankingWhitespace=Wre(e,t),e}function Ure(e){return!k8(e)&&!Are(e)&&/^\s*$/i.test(e.textContent)&&!kre(e)&&!jre(e)}function Wre(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:``,trailing:``};var n=Gre(e.textContent);return n.leadingAscii&&W8(`left`,e,t)&&(n.leading=n.leadingNonAscii),n.trailingAscii&&W8(`right`,e,t)&&(n.trailing=n.trailingNonAscii),{leading:n.leading,trailing:n.trailing}}function Gre(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 W8(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&&!D8(r)&&(a=i.test(r.textContent))),a}var Kre=Array.prototype.reduce;function G8(e){if(!(this instanceof G8))return new G8(e);var t={rules:P8,headingStyle:`setext`,hr:`* * *`,bulletListMarker:`*`,codeBlockStyle:`indented`,fence:"```",emDelimiter:`_`,strongDelimiter:`**`,linkStyle:`inlined`,linkReferenceStyle:`full`,br:` `,preformattedCode:!1,blankReplacement:function(e,t){return t.isBlock?`
403
+
404
+ `:``},keepReplacement:function(e,t){return t.isBlock?`
405
+
406
+ `+t.outerHTML+`
407
+
408
+ `:t.outerHTML},defaultReplacement:function(e,t){return t.isBlock?`
409
+
410
+ `+e+`
411
+
412
+ `:e}};this.options=S8({},t,e),this.rules=new R8(this.options)}G8.prototype={turndown:function(e){if(!Yre(e))throw TypeError(e+` is not a string, or an element/document/fragment node.`);if(e===``)return``;var t=K8.call(this,new zre(e,this.options));return qre.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 N8(e)}};function K8(e){var t=this;return Kre.call(e.childNodes,function(e,n){n=new Hre(n,t.options);var r=``;return n.nodeType===3?r=n.isCode?n.nodeValue:t.escape(n.nodeValue):n.nodeType===1&&(r=Jre.call(t,n)),q8(e,r)},``)}function qre(e){var t=this;return this.rules.forEach(function(n){typeof n.append==`function`&&(e=q8(e,n.append(t.options)))}),e.replace(/^[\t\r\n]+/,``).replace(/[\t\r\n\s]+$/,``)}function Jre(e){var t=this.rules.forNode(e),n=K8.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 q8(e,t){var n=T8(e),r=w8(t),i=Math.max(e.length-n.length,t.length-r.length);return n+`
413
+
414
+ `.substring(0,i)+r}function Yre(e){return e!=null&&(typeof e==`string`||e.nodeType&&(e.nodeType===1||e.nodeType===9||e.nodeType===11))}var Xre=`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(`.`),Zre=[`pre`,`code`],Qre=Xre.filter(e=>!Zre.includes(e));new G8({codeBlockStyle:`fenced`,fence:"```"}).addRule(`keep`,{filter:Qre,replacement(e,t){let{isBlock:n,outerHTML:r}=t;return t&&n?`\n\n${r}\n\n`:r}}),{...x8},{...x8.attributes},[...x8.attributes?.span??[]],[...x8.attributes?.code??[]],[...x8.attributes?.div??[]];var $re=3600,J8=86400;6*$re,7*J8,30*J8;var eie=S.createContext(null);function Y8(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Y8(e[n],t[n]))return!1;return!0}if(Array.isArray(t))return!1;if(typeof e==`object`&&typeof t==`object`){let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!t.hasOwnProperty(r)||!Y8(e[r],t[r]))return!1;return!0}return!1}function X8(e){return{center:e.getCenter(),zoom:e.getZoom(),bearing:e.getBearing(),pitch:e.getPitch(),elevation:e.getCenterElevation?.()??0,padding:e.getPadding()}}function Z8(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function Q8(e,t){let n=t.viewState||t,r={};if(`longitude`in n&&`latitude`in n&&(n.longitude!==e.center.lng||n.latitude!==e.center.lat)){let t=e.center.constructor;r.center=new t(n.longitude,n.latitude)}return`zoom`in n&&n.zoom!==e.zoom&&(r.zoom=n.zoom),`bearing`in n&&n.bearing!==e.bearing&&(r.bearing=n.bearing),`pitch`in n&&n.pitch!==e.pitch&&(r.pitch=n.pitch),n.padding&&e.padding&&!Y8(n.padding,e.padding)&&(r.padding=n.padding),r}function $8(e,t,n,r){return e.min===t.min&&e.max===t.max?!1:(e.min>=t.min?(e.max!==t.max&&r(e.max),e.min!==t.min&&n(e.min)):(e.min!==t.min&&n(e.min),e.max!==t.max&&r(e.max)),!0)}function tie(e,t,n){return $8(t,n,t=>e.setMinZoom(t),t=>e.setMaxZoom(t))}function nie(e,t,n){return $8(t,n,t=>e.setMinPitch(t),t=>e.setMaxPitch(t))}var rie=[`type`,`source`,`source-layer`,`minzoom`,`maxzoom`,`filter`,`layout`];function e5(e){if(!e)return null;if(typeof e==`string`||(`toJS`in e&&(e=e.toJS()),!e.layers))return e;let t={};for(let n of e.layers)t[n.id]=n;let n=e.layers.map(e=>{let n=null;`interactive`in e&&(n=Object.assign({},e),delete n.interactive);let r=t[e.ref];if(r){n||=Object.assign({},e),delete n.ref;for(let e of rie)e in r&&(n[e]=r[e])}return n||e});return{...e,layers:n}}var t5={version:8,sources:{},layers:[]},n5={minZoom:0,maxZoom:22,minPitch:0,maxPitch:85,maxBounds:[-180,-85.051129,180,85.051129],projection:`mercator`,renderWorldCopies:!0},r5={mousedown:`onMouseDown`,mouseup:`onMouseUp`,mouseover:`onMouseOver`,mousemove:`onMouseMove`,click:`onClick`,dblclick:`onDblClick`,mouseenter:`onMouseEnter`,mouseleave:`onMouseLeave`,mouseout:`onMouseOut`,contextmenu:`onContextMenu`,touchstart:`onTouchStart`,touchend:`onTouchEnd`,touchmove:`onTouchMove`,touchcancel:`onTouchCancel`},i5={movestart:`onMoveStart`,move:`onMove`,moveend:`onMoveEnd`,dragstart:`onDragStart`,drag:`onDrag`,dragend:`onDragEnd`,zoomstart:`onZoomStart`,zoom:`onZoom`,zoomend:`onZoomEnd`,rotatestart:`onRotateStart`,rotate:`onRotate`,rotateend:`onRotateEnd`,pitchstart:`onPitchStart`,pitch:`onPitch`,pitchend:`onPitchEnd`},a5={wheel:`onWheel`,boxzoomstart:`onBoxZoomStart`,boxzoomend:`onBoxZoomEnd`,boxzoomcancel:`onBoxZoomCancel`,resize:`onResize`,load:`onLoad`,render:`onRender`,idle:`onIdle`,remove:`onRemove`,data:`onData`,styledata:`onStyleData`,sourcedata:`onSourceData`,error:`onError`},iie=[`maxBounds`,`projection`,`renderWorldCopies`],aie=[`scrollZoom`,`boxZoom`,`dragRotate`,`dragPan`,`keyboard`,`doubleClickZoom`,`touchZoomRotate`,`touchPitch`],o5=class e{constructor(e,t,n){this._map=null,this._internalUpdate=!1,this._hoveredFeatures=null,this._propsedCameraUpdate=null,this._styleComponents={},this._onEvent=e=>{let t=this.props[a5[e.type]];t?t(e):e.type===`error`&&console.error(e.error)},this._onCameraEvent=e=>{if(this._internalUpdate)return;e.viewState=this._propsedCameraUpdate||Z8(X8(this._map));let t=this.props[i5[e.type]];t&&t(e)},this._onCameraUpdate=e=>this._internalUpdate?e:(this._propsedCameraUpdate=Z8(e),Q8(e,this.props)),this._onPointerEvent=e=>{(e.type===`mousemove`||e.type===`mouseout`)&&this._updateHover(e);let t=this.props[r5[e.type]];t&&(this.props.interactiveLayerIds&&e.type!==`mouseover`&&e.type!==`mouseout`&&(e.features=this._hoveredFeatures||this._queryRenderedFeatures(e.point)),t(e),delete e.features)},this._MapClass=e,this.props=t,this._initialize(n)}get map(){return this._map}setProps(e){let t=this.props;this.props=e;let n=this._updateSettings(e,t),r=this._updateSize(e),i=this._updateViewState(e);this._updateStyle(e,t),this._updateStyleComponents(e),this._updateHandlers(e,t),(n||r||i&&!this._map.isMoving())&&this.redraw()}static reuse(t,n){let r=e.savedMaps.pop();if(!r)return null;let i=r.map,a=i.getContainer();for(n.className=a.className;a.childNodes.length>0;)n.appendChild(a.childNodes[0]);i._container=n;let o=i._resizeObserver;o&&(o.disconnect(),o.observe(n)),r.setProps({...t,styleDiffing:!1}),i.resize();let{initialViewState:s}=t;return s&&(s.bounds?i.fitBounds(s.bounds,{...s.fitBoundsOptions,duration:0}):r._updateViewState(s)),i.isStyleLoaded()?i.fire(`load`):i.once(`style.load`,()=>i.fire(`load`)),i._update(),r}_initialize(e){let{props:t}=this,{mapStyle:n=t5}=t,r={...t,...t.initialViewState,container:e,style:e5(n)},i=r.initialViewState||r.viewState||r;if(Object.assign(r,{center:[i.longitude||0,i.latitude||0],zoom:i.zoom||0,pitch:i.pitch||0,bearing:i.bearing||0}),t.gl){let e=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=e,t.gl)}let a=new this._MapClass(r);i.padding&&a.setPadding(i.padding),t.cursor&&(a.getCanvas().style.cursor=t.cursor);let o=a;typeof o.setTransformCameraUpdate==`function`?o.setTransformCameraUpdate(this._onCameraUpdate):o.transformCameraUpdate=this._onCameraUpdate,a.on(`style.load`,()=>{this._styleComponents={light:a.getLight(),sky:a.getSky(),projection:a.getProjection?.(),terrain:a.getTerrain()},this._updateStyleComponents(this.props)}),a.on(`sourcedata`,()=>{this._updateStyleComponents(this.props)});for(let e in r5)a.on(e,this._onPointerEvent);for(let e in i5)a.on(e,this._onCameraEvent);for(let e in a5)a.on(e,this._onEvent);this._map=a}recycle(){this.map.getContainer().querySelector(`[mapboxgl-children]`)?.remove(),e.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){let e=this._map;e.style&&(e._frame&&=(e._frame.cancel(),null),e._render())}_updateSize(e){let{viewState:t}=e;if(t){let e=this._map,n=e.getCanvas();if(t.width!==n.clientWidth||t.height!==n.clientHeight)return e.resize(),!0}return!1}_updateViewState(e){let t=this._map,n=X8(t);if(!t.isMoving()){let r=Q8(n,e);if(Object.keys(r).length>0)return this._internalUpdate=!0,t.jumpTo(r),this._internalUpdate=!1,!0}return!1}_updateConstraints(e,t){let n=tie(this._map,{min:e.minZoom??n5.minZoom,max:e.maxZoom??n5.maxZoom},{min:t.minZoom??n5.minZoom,max:t.maxZoom??n5.maxZoom}),r=nie(this._map,{min:e.minPitch??n5.minPitch,max:e.maxPitch??n5.maxPitch},{min:t.minPitch??n5.minPitch,max:t.maxPitch??n5.maxPitch});return n||r}_updateSettings(e,t){let n=this._map,r=!1;for(let i of iie)if((i in e||i in t)&&!Y8(e[i],t[i])){r=!0;let t=i in e?e[i]:n5[i];n[`set${i[0].toUpperCase()}${i.slice(1)}`]?.call(n,t)}let i=this._updateConstraints(e,t);return r||i}_updateStyle(e,t){if(e.cursor!==t.cursor&&(this._map.getCanvas().style.cursor=e.cursor||``),e.mapStyle!==t.mapStyle){let{mapStyle:t=t5,styleDiffing:n=!0}=e,r={diff:n};`localIdeographFontFamily`in e&&(r.localIdeographFontFamily=e.localIdeographFontFamily),this._map.setStyle(e5(t),r)}}_updateStyleComponents({light:e,projection:t,sky:n,terrain:r}){let i=this._map,a=this._styleComponents;i.style?._loaded&&(e&&!Y8(e,a.light)&&(a.light=e,i.setLight(e)),t&&!Y8(t,a.projection)&&t!==a.projection?.type&&(a.projection=typeof t==`string`?{type:t}:t,i.setProjection?.(a.projection)),n&&!Y8(n,a.sky)&&(a.sky=n,i.setSky(n)),r!==void 0&&!Y8(r,a.terrain)&&(!r||i.getSource(r.source))&&(a.terrain=r,i.setTerrain(r)))}_updateHandlers(e,t){let n=this._map;for(let r of aie){let i=e[r]??!0;Y8(i,t[r]??!0)||(i?n[r].enable(i):n[r].disable())}}_queryRenderedFeatures(e){let t=this._map,{interactiveLayerIds:n=[]}=this.props;try{return t.queryRenderedFeatures(e,{layers:n.filter(t.getLayer.bind(t))})}catch{return[]}}_updateHover(e){let{props:t}=this;if(t.interactiveLayerIds&&(t.onMouseMove||t.onMouseEnter||t.onMouseLeave)){let t=e.type,n=this._hoveredFeatures?.length>0,r=this._queryRenderedFeatures(e.point),i=r.length>0;!i&&n&&(e.type=`mouseleave`,this._onPointerEvent(e)),this._hoveredFeatures=r,i&&!n&&(e.type=`mouseenter`,this._onPointerEvent(e)),e.type=t}else this._hoveredFeatures=null}};o5.savedMaps=[];var oie=[`setMaxBounds`,`setMinZoom`,`setMaxZoom`,`setMinPitch`,`setMaxPitch`,`setRenderWorldCopies`,`setProjection`,`setStyle`,`addSource`,`removeSource`,`addLayer`,`removeLayer`,`setLayerZoomRange`,`setFilter`,`setPaintProperty`,`setLayoutProperty`,`setLight`,`setTerrain`,`setFog`,`remove`];function sie(e){if(!e)return null;let t=e.map,n={getMap:()=>t};for(let e of cie(t))!(e in n)&&!oie.includes(e)&&(n[e]=t[e].bind(t));return n}function cie(e){let t=new Set,n=e;for(;n;){for(let r of Object.getOwnPropertyNames(n))r[0]!==`_`&&typeof e[r]==`function`&&r!==`fire`&&r!==`setEventedParent`&&t.add(r);n=Object.getPrototypeOf(n)}return Array.from(t)}var lie=typeof document<`u`?S.useLayoutEffect:S.useEffect;function uie(e,t){let{RTLTextPlugin:n,maxParallelImageRequests:r,workerCount:i,workerUrl:a}=t;if(n&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()===`unavailable`){let{pluginUrl:t,lazy:r=!0}=typeof n==`string`?{pluginUrl:n}:n;e.setRTLTextPlugin(t,e=>{e&&console.error(e)},r)}r!==void 0&&e.setMaxParallelImageRequests(r),i!==void 0&&e.setWorkerCount(i),a!==void 0&&e.setWorkerUrl(a)}var s5=S.createContext(null);function die(e,t){let n=(0,S.useContext)(eie),[r,i]=(0,S.useState)(null),a=(0,S.useRef)(),{current:o}=(0,S.useRef)({mapLib:null,map:null});(0,S.useEffect)(()=>{let t=e.mapLib,r=!0,s;return Promise.resolve(t||D(()=>import(`./maplibre-gl-MlmG2kbn.js`).then(e=>e.t),__vite__mapDeps([3,1]))).then(t=>{if(!r)return;if(!t)throw Error(`Invalid mapLib`);let c=`Map`in t?t:t.default;if(!c.Map)throw Error(`Invalid mapLib`);uie(c,e),e.reuseMaps&&(s=o5.reuse(e,a.current)),s||=new o5(c.Map,e,a.current),o.map=sie(s),o.mapLib=c,i(s),n?.onMapMount(o.map,e.id)}).catch(t=>{let{onError:n}=e;n?n({type:`error`,target:null,originalEvent:null,error:t}):console.error(t)}),()=>{r=!1,s&&(n?.onMapUnmount(e.id),e.reuseMaps?s.recycle():s.destroy())}},[]),lie(()=>{r&&r.setProps(e)}),(0,S.useImperativeHandle)(t,()=>o.map,[r]);let s=(0,S.useMemo)(()=>({position:`relative`,width:`100%`,height:`100%`,...e.style}),[e.style]);return S.createElement(`div`,{id:e.id,ref:a,style:s},r&&S.createElement(s5.Provider,{value:o},S.createElement(`div`,{"mapboxgl-children":``,style:{height:`100%`}},e.children)))}var fie=S.forwardRef(die),pie=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function c5(e,t){if(!e||!t)return;let n=e.style;for(let e in t){let r=t[e];n[e]=Number.isFinite(r)&&!pie.test(e)?`${r}px`:r}}function l5(e,t,n,r){let i=(0,S.useContext)(s5),a=(0,S.useMemo)(()=>e(i),[]);return(0,S.useEffect)(()=>{let e=r||n||t,o=typeof t==`function`&&typeof n==`function`?t:null,s=typeof n==`function`?n:typeof t==`function`?t:null,{map:c}=i;return c.hasControl(a)||(c.addControl(a,e?.position),o&&o(i)),()=>{s&&s(i),c.hasControl(a)&&c.removeControl(a)}},[]),a}function mie(e){let t=l5(({mapLib:t})=>new t.NavigationControl(e),{position:e.position});return(0,S.useEffect)(()=>{c5(t._container,e.style)},[e.style]),null}var hie=(0,S.memo)(mie);function gie(e){let t=l5(({mapLib:t})=>new t.ScaleControl(e),{position:e.position}),n=(0,S.useRef)(e),r=n.current;n.current=e;let{style:i}=e;return e.maxWidth!==void 0&&e.maxWidth!==r.maxWidth&&(t.options.maxWidth=e.maxWidth),e.unit!==void 0&&e.unit!==r.unit&&t.setUnit(e.unit),(0,S.useEffect)(()=>{c5(t._container,i)},[i]),null}var _ie=(0,S.memo)(gie),u5=Uint8Array,d5=Uint16Array,vie=Int32Array,f5=new u5([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),p5=new u5([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),yie=new u5([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m5=function(e,t){for(var n=new d5(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new vie(n[30]),r=1;r<30;++r)for(var a=n[r];a<n[r+1];++a)i[a]=a-n[r]<<5|r;return{b:n,r:i}},h5=m5(f5,2),g5=h5.b,bie=h5.r;g5[28]=258,bie[258]=28;var _5=m5(p5,0),xie=_5.b;_5.r;for(var v5=new d5(32768),y5=0;y5<32768;++y5){var b5=(y5&43690)>>1|(y5&21845)<<1;b5=(b5&52428)>>2|(b5&13107)<<2,b5=(b5&61680)>>4|(b5&3855)<<4,v5[y5]=((b5&65280)>>8|(b5&255)<<8)>>1}for(var x5=(function(e,t,n){for(var r=e.length,i=0,a=new d5(t);i<r;++i)e[i]&&++a[e[i]-1];var o=new d5(t);for(i=1;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;var s;if(n){s=new d5(1<<t);var c=15-t;for(i=0;i<r;++i)if(e[i])for(var l=i<<4|e[i],u=t-e[i],d=o[e[i]-1]++<<u,f=d|(1<<u)-1;d<=f;++d)s[v5[d]>>c]=l}else for(s=new d5(r),i=0;i<r;++i)e[i]&&(s[i]=v5[o[e[i]-1]++]>>15-e[i]);return s}),S5=new u5(288),y5=0;y5<144;++y5)S5[y5]=8;for(var y5=144;y5<256;++y5)S5[y5]=9;for(var y5=256;y5<280;++y5)S5[y5]=7;for(var y5=280;y5<288;++y5)S5[y5]=8;for(var C5=new u5(32),y5=0;y5<32;++y5)C5[y5]=5;var Sie=x5(S5,9,1),Cie=x5(C5,5,1),w5=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},T5=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(t&7)&n},E5=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},wie=function(e){return(e+7)/8|0},Tie=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new u5(e.subarray(t,n))},Eie=[`unexpected EOF`,`invalid block type`,`invalid length/literal`,`invalid distance`,`stream finished`,`no stream handler`,,`no callback`,`invalid UTF-8 data`,`extra field too long`,`date not in range 1980-2099`,`filename too long`,`stream finishing`,`invalid zip data`],D5=function(e,t,n){var r=Error(t||Eie[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,D5),!n)throw r;return r},O5=function(e,t,n,r){var i=e.length,a=r?r.length:0;if(!i||t.f&&!t.l)return n||new u5(0);var o=!n,s=o||t.i!=2,c=t.i;o&&(n=new u5(i*3));var l=function(e){var t=n.length;if(e>t){var r=new u5(Math.max(t*2,e));r.set(n),n=r}},u=t.f||0,d=t.p||0,f=t.b||0,p=t.l,m=t.d,h=t.m,g=t.n,_=i*8;do{if(!p){u=T5(e,d,1);var v=T5(e,d+1,3);if(d+=3,!v){var y=wie(d)+4,b=e[y-4]|e[y-3]<<8,x=y+b;if(x>i){c&&D5(0);break}s&&l(f+b),n.set(e.subarray(y,x),f),t.b=f+=b,t.p=d=x*8,t.f=u;continue}if(v==1)p=Sie,m=Cie,h=9,g=5;else if(v==2){var S=T5(e,d,31)+257,C=T5(e,d+10,15)+4,w=S+T5(e,d+5,31)+1;d+=14;for(var T=new u5(w),E=new u5(19),D=0;D<C;++D)E[yie[D]]=T5(e,d+D*3,7);d+=C*3;for(var O=w5(E),k=(1<<O)-1,A=x5(E,O,1),D=0;D<w;){var j=A[T5(e,d,k)];d+=j&15;var y=j>>4;if(y<16)T[D++]=y;else{var M=0,N=0;for(y==16?(N=3+T5(e,d,3),d+=2,M=T[D-1]):y==17?(N=3+T5(e,d,7),d+=3):y==18&&(N=11+T5(e,d,127),d+=7);N--;)T[D++]=M}}var P=T.subarray(0,S),F=T.subarray(S);h=w5(P),g=w5(F),p=x5(P,h,1),m=x5(F,g,1)}else D5(1);if(d>_){c&&D5(0);break}}s&&l(f+131072);for(var I=(1<<h)-1,R=(1<<g)-1,ee=d;;ee=d){var M=p[E5(e,d)&I],te=M>>4;if(d+=M&15,d>_){c&&D5(0);break}if(M||D5(2),te<256)n[f++]=te;else if(te==256){ee=d,p=null;break}else{var ne=te-254;if(te>264){var D=te-257,re=f5[D];ne=T5(e,d,(1<<re)-1)+g5[D],d+=re}var ie=m[E5(e,d)&R],ae=ie>>4;ie||D5(3),d+=ie&15;var F=xie[ae];if(ae>3){var re=p5[ae];F+=E5(e,d)&(1<<re)-1,d+=re}if(d>_){c&&D5(0);break}s&&l(f+131072);var oe=f+ne;if(f<F){var se=a-F,ce=Math.min(F,oe);for(se+f<0&&D5(3);f<ce;++f)n[f]=r[se+f]}for(;f<oe;++f)n[f]=n[f-F]}}t.l=p,t.p=ee,t.b=f,t.f=u,p&&(u=1,t.m=h,t.d=m,t.n=g)}while(!u);return f!=n.length&&o?Tie(n,0,f):n.subarray(0,f)},Die=new u5(0),Oie=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&D5(6,`invalid gzip data`);var t=e[3],n=10;t&4&&(n+=(e[10]|e[11]<<8)+2);for(var r=(t>>3&1)+(t>>4&1);r>0;r-=!e[n++]);return n+(t&2)},kie=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},Aie=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&D5(6,`invalid zlib data`),(e[1]>>5&1)==+!t&&D5(6,`invalid zlib data: `+(e[1]&32?`need`:`unexpected`)+` dictionary`),(e[1]>>3&4)+2};function jie(e,t){return O5(e,{i:2},t&&t.out,t&&t.dictionary)}function Mie(e,t){var n=Oie(e);return n+8>e.length&&D5(6,`invalid gzip data`),O5(e.subarray(n,-8),{i:2},t&&t.out||new u5(kie(e)),t&&t.dictionary)}function Nie(e,t){return O5(e.subarray(Aie(e,t&&t.dictionary),-4),{i:2},t&&t.out,t&&t.dictionary)}function Pie(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Mie(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?jie(e,t):Nie(e,t)}var Fie=typeof TextDecoder<`u`&&new TextDecoder;try{Fie.decode(Die,{stream:!0})}catch{}var Iie=Object.defineProperty,Lie=Math.pow,k5=(e,t)=>Iie(e,`name`,{value:t,configurable:!0}),A5=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())});k5((e,t)=>{let n=!1,r=``;return new(L.GridLayer.extend({createTile:k5((t,i)=>{let a=document.createElement(`img`),o=new AbortController,s=o.signal;return a.cancel=()=>{o.abort()},n||=(e.getHeader().then(e=>{e.tileType===1||e.tileType===6?console.error(`Error: archive contains vector tiles, but leafletRasterLayer is for displaying raster tiles. See https://github.com/protomaps/PMTiles/tree/main/js for details.`):e.tileType===2?r=`image/png`:e.tileType===3?r=`image/jpeg`:e.tileType===4?r=`image/webp`:e.tileType===5&&(r=`image/avif`)}),!0),e.getZxy(t.z,t.x,t.y,s).then(e=>{if(e){let t=new Blob([e.data],{type:r}),n=window.URL.createObjectURL(t);a.src=n}else a.style.display=`none`;a.cancel=void 0,i(void 0,a)}).catch(e=>{if(e.name!==`AbortError`)throw e}),a},`createTile`),_removeTile:k5(function(e){let t=this._tiles[e];t&&(t.el.cancel&&t.el.cancel(),t.el.src&&window.URL.revokeObjectURL(t.el.src),t.el.width=0,t.el.height=0,t.el.deleted=!0,L.DomUtil.remove(t.el),delete this._tiles[e],this.fire(`tileunload`,{tile:t.el,coords:this._keyToTileCoords(e)}))},`_removeTile`)}))(t)},`leafletRasterLayer`);var Rie=k5(e=>(t,n)=>{if(n instanceof AbortController)return e(t,n);let r=new AbortController;return e(t,r).then(e=>n(void 0,e.data,e.cacheControl||``,e.expires||``),e=>n(e)).catch(e=>n(e)),{cancel:k5(()=>r.abort(),`cancel`)}},`v3compat`),j5=class{constructor(e){this.tilev4=k5((e,t)=>A5(this,null,function*(){if(e.type===`json`){let n=e.url.substr(10),r=this.tiles.get(n);if(r||(r=new Z5(n),this.tiles.set(n,r)),this.metadata){let n=yield r.getTileJson(e.url);return t.signal.throwIfAborted(),{data:n}}let i=yield r.getHeader();return t.signal.throwIfAborted(),(i.minLon>=i.maxLon||i.minLat>=i.maxLat)&&console.error(`Bounds of PMTiles archive ${i.minLon},${i.minLat},${i.maxLon},${i.maxLat} are not valid.`),{data:{tiles:[`${e.url}/{z}/{x}/{y}`],minzoom:i.minZoom,maxzoom:i.maxZoom,bounds:[i.minLon,i.minLat,i.maxLon,i.maxLat]}}}let n=new RegExp(/pmtiles:\/\/(.+)\/(\d+)\/(\d+)\/(\d+)/),r=e.url.match(n);if(!r)throw Error(`Invalid PMTiles protocol URL`);let i=r[1],a=this.tiles.get(i);a||(a=new Z5(i),this.tiles.set(i,a));let o=r[2],s=r[3],c=r[4],l=yield a?.getZxy(+o,+s,+c,t.signal);if(t.signal.throwIfAborted(),l)return{data:new Uint8Array(l.data),cacheControl:l.cacheControl,expires:l.expires};let u=yield a.getHeader();if(u.tileType===1||u.tileType===6){if(this.errorOnMissingTile)throw Error(`Tile not found.`);return{data:new Uint8Array}}return{data:null}}),`tilev4`),this.tile=Rie(this.tilev4),this.tiles=new Map,this.metadata=e?.metadata||!1,this.errorOnMissingTile=e?.errorOnMissingTile||!1}add(e){this.tiles.set(e.source.getKey(),e)}get(e){return this.tiles.get(e)}};k5(j5,`Protocol`);var zie=j5;function M5(e,t){return(t>>>0)*4294967296+(e>>>0)}k5(M5,`toNum`);function N5(e,t){let n=t.buf,r=n[t.pos++],i=(r&112)>>4;if(r<128||(r=n[t.pos++],i|=(r&127)<<3,r<128)||(r=n[t.pos++],i|=(r&127)<<10,r<128)||(r=n[t.pos++],i|=(r&127)<<17,r<128)||(r=n[t.pos++],i|=(r&127)<<24,r<128)||(r=n[t.pos++],i|=(r&1)<<31,r<128))return M5(e,i);throw Error(`Expected varint not more than 10 bytes`)}k5(N5,`readVarintRemainder`);function P5(e){let t=e.buf,n=t[e.pos++],r=n&127;return n<128||(n=t[e.pos++],r|=(n&127)<<7,n<128)||(n=t[e.pos++],r|=(n&127)<<14,n<128)||(n=t[e.pos++],r|=(n&127)<<21,n<128)?r:(n=t[e.pos],r|=(n&15)<<28,N5(r,e))}k5(P5,`readVarint`);function F5(e,t,n,r,i){return i===0?r===0?[n,t]:[e-1-n,e-1-t]:[t,n]}k5(F5,`rotate`);function I5(e,t,n){if(e>26)throw Error(`Tile zoom level exceeds max safe number limit (26)`);if(t>=1<<e||n>=1<<e)throw Error(`tile x/y outside zoom level bounds`);let r=((1<<e)*(1<<e)-1)/3,i=e-1,[a,o]=[t,n];for(let e=1<<i;e>0;e>>=1){let t=a&e,n=o&e;r+=(3*t^n)*(1<<i),[a,o]=F5(e,a,o,t,n),i--}return r}k5(I5,`zxyToTileId`);function L5(e){let t=3*e+1;return t<4294967296?31-Math.clz32(t):63-Math.clz32(t/4294967296)}k5(L5,`tileIdToZ`);function Bie(e){let t=L5(e)>>1;if(t>26)throw Error(`Tile zoom level exceeds max safe number limit (26)`);let n=e-((1<<t)*(1<<t)-1)/3,r=0,i=0,a=1<<t;for(let e=1;e<a;e<<=1){let t=e&n/2,a=e&(n^t);[r,i]=F5(e,r,i,t,a),n/=2,r+=t,i+=a}return[t,r,i]}k5(Bie,`tileIdToZxy`);var Vie=(e=>(e[e.Unknown=0]=`Unknown`,e[e.None=1]=`None`,e[e.Gzip=2]=`Gzip`,e[e.Brotli=3]=`Brotli`,e[e.Zstd=4]=`Zstd`,e))(Vie||{});function R5(e,t){return A5(this,null,function*(){if(t===1||t===0)return e;if(t===2){if(globalThis.DecompressionStream===void 0)return Pie(new Uint8Array(e));let t=new Response(e).body;if(!t)throw Error(`Failed to read response stream`);let n=t.pipeThrough(new globalThis.DecompressionStream(`gzip`));return new Response(n).arrayBuffer()}throw Error(`Compression method not supported`)})}k5(R5,`defaultDecompress`);var Hie=(e=>(e[e.Unknown=0]=`Unknown`,e[e.Mvt=1]=`Mvt`,e[e.Png=2]=`Png`,e[e.Jpeg=3]=`Jpeg`,e[e.Webp=4]=`Webp`,e[e.Avif=5]=`Avif`,e[e.Mlt=6]=`Mlt`,e))(Hie||{});function z5(e){return e===1?`.mvt`:e===2?`.png`:e===3?`.jpg`:e===4?`.webp`:e===5?`.avif`:e===6?`.mlt`:``}k5(z5,`tileTypeExt`);var Uie=127;function B5(e,t){let n=0,r=e.length-1;for(;n<=r;){let i=r+n>>1,a=t-e[i].tileId;if(a>0)n=i+1;else if(a<0)r=i-1;else return e[i]}return r>=0&&(e[r].runLength===0||t-e[r].tileId<e[r].runLength)?e[r]:null}k5(B5,`findTile`),k5(class{constructor(e){this.file=e}getKey(){return this.file.name}getBytes(e,t){return A5(this,null,function*(){return{data:yield this.file.slice(e,e+t).arrayBuffer()}})}},`FileSource`);var V5=class{constructor(e,t=new Headers,n=void 0){this.url=e,this.customHeaders=t,this.credentials=n,this.mustReload=!1;let r=``;`navigator`in globalThis&&(r=globalThis.navigator?.userAgent??``);let i=r.indexOf(`Windows`)>-1,a=/Chrome|Chromium|Edg|OPR|Brave/.test(r);this.chromeWindowsNoCache=!1,i&&a&&(this.chromeWindowsNoCache=!0)}getKey(){return this.url}setHeaders(e){this.customHeaders=e}getBytes(e,t,n,r){return A5(this,null,function*(){let i,a;n?a=n:(i=new AbortController,a=i.signal);let o=new Headers(this.customHeaders);o.set(`range`,`bytes=${e}-${e+t-1}`);let s;this.mustReload?s=`reload`:this.chromeWindowsNoCache&&(s=`no-store`);let c=yield fetch(this.url,{signal:a,cache:s,headers:o,credentials:this.credentials});if(e===0&&c.status===416){let e=c.headers.get(`Content-Range`);if(!e||!e.startsWith(`bytes */`))throw Error(`Missing content-length on 416 response`);let t=+e.substr(8);o.set(`range`,`bytes=0-${t-1}`),c=yield fetch(this.url,{signal:a,cache:`reload`,headers:o,credentials:this.credentials})}let l=c.headers.get(`Etag`);if(l!=null&&l.startsWith(`W/`)&&(l=null),c.status===416||r&&l&&l!==r)throw this.mustReload=!0,new K5(`Server returned non-matching ETag ${r} after one retry. Check browser extensions and servers for issues that may affect correct ETag headers.`);if(c.status>=300)throw Error(`Bad response code: ${c.status}`);let u=c.headers.get(`Content-Length`);if(c.status===200&&(!u||+u>t))throw i&&i.abort(),Error(`Server returned no content-length header or content-length exceeding request. Check that your storage backend supports HTTP Byte Serving.`);return{data:yield c.arrayBuffer(),etag:l||void 0,cacheControl:c.headers.get(`Cache-Control`)||void 0,expires:c.headers.get(`Expires`)||void 0}})}};k5(V5,`FetchSource`);var Wie=V5;function H5(e,t){let n=e.getUint32(t+4,!0),r=e.getUint32(t+0,!0);return n*Lie(2,32)+r}k5(H5,`getUint64`);function U5(e,t){let n=new DataView(e),r=n.getUint8(7);if(r>3)throw Error(`Archive is spec version ${r} but this library supports up to spec version 3`);return{specVersion:r,rootDirectoryOffset:H5(n,8),rootDirectoryLength:H5(n,16),jsonMetadataOffset:H5(n,24),jsonMetadataLength:H5(n,32),leafDirectoryOffset:H5(n,40),leafDirectoryLength:H5(n,48),tileDataOffset:H5(n,56),tileDataLength:H5(n,64),numAddressedTiles:H5(n,72),numTileEntries:H5(n,80),numTileContents:H5(n,88),clustered:n.getUint8(96)===1,internalCompression:n.getUint8(97),tileCompression:n.getUint8(98),tileType:n.getUint8(99),minZoom:n.getUint8(100),maxZoom:n.getUint8(101),minLon:n.getInt32(102,!0)/1e7,minLat:n.getInt32(106,!0)/1e7,maxLon:n.getInt32(110,!0)/1e7,maxLat:n.getInt32(114,!0)/1e7,centerZoom:n.getUint8(118),centerLon:n.getInt32(119,!0)/1e7,centerLat:n.getInt32(123,!0)/1e7,etag:t}}k5(U5,`bytesToHeader`);function W5(e){let t={buf:new Uint8Array(e),pos:0},n=P5(t),r=[],i=0;for(let e=0;e<n;e++){let e=P5(t);r.push({tileId:i+e,offset:0,length:0,runLength:1}),i+=e}for(let e=0;e<n;e++)r[e].runLength=P5(t);for(let e=0;e<n;e++)r[e].length=P5(t);for(let e=0;e<n;e++){let n=P5(t);n===0&&e>0?r[e].offset=r[e-1].offset+r[e-1].length:r[e].offset=n-1}return r}k5(W5,`deserializeIndex`);var G5=class extends Error{};k5(G5,`EtagMismatch`);var K5=G5;function q5(e,t){return A5(this,null,function*(){let n=yield e.getBytes(0,16384);if(new DataView(n.data).getUint16(0,!0)!==19792)throw Error(`Wrong magic number for PMTiles archive`);let r=U5(n.data.slice(0,Uie),n.etag),i=n.data.slice(r.rootDirectoryOffset,r.rootDirectoryOffset+r.rootDirectoryLength),a=`${e.getKey()}|${r.etag||``}|${r.rootDirectoryOffset}|${r.rootDirectoryLength}`,o=W5(yield t(i,r.internalCompression));return[r,[a,o.length,o]]})}k5(q5,`getHeaderAndRoot`);function J5(e,t,n,r,i,a){return A5(this,null,function*(){let o=W5(yield t((yield e.getBytes(n,r,a,i.etag)).data,i.internalCompression));if(o.length===0)throw Error(`Empty directory is invalid`);return o})}k5(J5,`getDirectory`),k5(class{constructor(e=100,t=!0,n=R5){this.cache=new Map,this.maxCacheEntries=e,this.counter=1,this.decompress=n}getHeader(e){return A5(this,null,function*(){let t=e.getKey(),n=this.cache.get(t);if(n)return n.lastUsed=this.counter++,n.data;let r=yield q5(e,this.decompress);return r[1]&&this.cache.set(r[1][0],{lastUsed:this.counter++,data:r[1][2]}),this.cache.set(t,{lastUsed:this.counter++,data:r[0]}),this.prune(),r[0]})}getDirectory(e,t,n,r,i){return A5(this,null,function*(){let a=`${e.getKey()}|${r.etag||``}|${t}|${n}`,o=this.cache.get(a);if(o)return o.lastUsed=this.counter++,o.data;let s=yield J5(e,this.decompress,t,n,r,i);return this.cache.set(a,{lastUsed:this.counter++,data:s}),this.prune(),s})}prune(){if(this.cache.size>this.maxCacheEntries){let e=1/0,t;this.cache.forEach((n,r)=>{n.lastUsed<e&&(e=n.lastUsed,t=r)}),t&&this.cache.delete(t)}}invalidate(e){return A5(this,null,function*(){this.cache.delete(e.getKey())})}},`ResolvedValueCache`);var Y5=class{constructor(e=100,t=!0,n=R5){this.cache=new Map,this.invalidations=new Map,this.pendingFetches=new Map,this.maxCacheEntries=e,this.counter=1,this.decompress=n}getHeader(e){return A5(this,null,function*(){let t=e.getKey(),n=this.cache.get(t);if(n)return n.lastUsed=this.counter++,yield n.data;let r=new Promise((t,n)=>{q5(e,this.decompress).then(e=>{e[1]&&this.cache.set(e[1][0],{lastUsed:this.counter++,data:Promise.resolve(e[1][2])}),t(e[0]),this.prune()}).catch(e=>{n(e)})});return this.cache.set(t,{lastUsed:this.counter++,data:r}),r})}trackSignal(e,t,n){t.refs++,n.addEventListener(`abort`,()=>{--t.refs<=0&&this.pendingFetches.get(e)===t&&(t.controller.abort(),this.cache.delete(e),this.pendingFetches.delete(e))},{once:!0})}getDirectory(e,t,n,r,i){return A5(this,null,function*(){let a=`${e.getKey()}|${r.etag||``}|${t}|${n}`,o=this.cache.get(a);if(o){o.lastUsed=this.counter++;let e=this.pendingFetches.get(a);return e&&this.trackSignal(a,e,i??new AbortController().signal),yield o.data}let s=new AbortController,c={controller:s,refs:0};this.trackSignal(a,c,i??new AbortController().signal),this.pendingFetches.set(a,c);let l=new Promise((i,o)=>{J5(e,this.decompress,t,n,r,s.signal).then(e=>{this.pendingFetches.delete(a),i(e),this.prune()}).catch(e=>{o(e)})});return this.cache.set(a,{lastUsed:this.counter++,data:l}),l})}prune(){if(this.cache.size>=this.maxCacheEntries){let e=1/0,t;this.cache.forEach((n,r)=>{n.lastUsed<e&&(e=n.lastUsed,t=r)}),t&&this.cache.delete(t)}}invalidate(e){return A5(this,null,function*(){let t=e.getKey();if(this.invalidations.get(t))return yield this.invalidations.get(t);this.cache.delete(e.getKey());let n=new Promise((n,r)=>{this.getHeader(e).then(e=>{n(),this.invalidations.delete(t)}).catch(e=>{r(e)})});this.invalidations.set(t,n)})}};k5(Y5,`SharedPromiseCache`);var Gie=Y5,X5=class{constructor(e,t,n){this.source=typeof e==`string`?new Wie(e):e,this.decompress=n||R5,this.cache=t||new Gie}getHeader(){return A5(this,null,function*(){return yield this.cache.getHeader(this.source)})}getZxyAttempt(e,t,n,r){return A5(this,null,function*(){let i=I5(e,t,n),a=yield this.cache.getHeader(this.source);if(r?.throwIfAborted(),e<a.minZoom||e>a.maxZoom)return;let o=a.rootDirectoryOffset,s=a.rootDirectoryLength;for(let e=0;e<=3;e++){let e=yield this.cache.getDirectory(this.source,o,s,a,r);r?.throwIfAborted();let t=B5(e,i);if(t){if(t.runLength>0){let e=yield this.source.getBytes(a.tileDataOffset+t.offset,t.length,r,a.etag);return{data:yield this.decompress(e.data,a.tileCompression),cacheControl:e.cacheControl,expires:e.expires}}o=a.leafDirectoryOffset+t.offset,s=t.length}else return}throw Error(`Maximum directory depth exceeded`)})}getZxy(e,t,n,r){return A5(this,null,function*(){try{return yield this.getZxyAttempt(e,t,n,r)}catch(i){if(i instanceof K5)return this.cache.invalidate(this.source),yield this.getZxyAttempt(e,t,n,r);throw i}})}getMetadataAttempt(){return A5(this,null,function*(){let e=yield this.cache.getHeader(this.source),t=yield this.source.getBytes(e.jsonMetadataOffset,e.jsonMetadataLength,void 0,e.etag),n=yield this.decompress(t.data,e.internalCompression),r=new TextDecoder(`utf-8`);return JSON.parse(r.decode(n))})}getMetadata(){return A5(this,null,function*(){try{return yield this.getMetadataAttempt()}catch(e){if(e instanceof K5)return this.cache.invalidate(this.source),yield this.getMetadataAttempt();throw e}})}getTileJson(e){return A5(this,null,function*(){let t=yield this.getHeader(),n=yield this.getMetadata();return{tilejson:`3.0.0`,scheme:`xyz`,tiles:[`${e}/{z}/{x}/{y}${z5(t.tileType)}`],vector_layers:n.vector_layers,attribution:n.attribution,description:n.description,name:n.name,version:n.version,bounds:[t.minLon,t.minLat,t.maxLon,t.maxLat],center:[t.centerLon,t.centerLat,t.centerZoom],minzoom:t.minZoom,maxzoom:t.maxZoom}})}};k5(X5,`PMTiles`);var Z5=X5,Q5=!1;function Kie(){if(Q5)return;let e=new zie;i(`pmtiles`,e.tile),Q5=!0}var qie={longitude:37.6173,latitude:55.7558,zoom:4,bearing:0,pitch:0},Jie={version:8,sources:{},layers:[{id:`background`,type:`background`,paint:{"background-color":`#e0e0e0`}}]},Yie=(0,S.forwardRef)(function({styleUrl:e,viewport:t,initialViewport:n,onViewportChange:r,showNavigation:i=!0,showScale:a=!0,showAttribution:o=!0,style:s,cursor:c=`grab`,onClick:l,children:u},d){let f=Bu();(0,S.useEffect)(()=>{Kie()},[]);let p=(0,S.useMemo)(()=>{if(e)return e;let t=typeof window<`u`&&window.__MAP_STYLE_URL__;return typeof t==`string`&&t.length>0?t:Jie},[e]),m=(0,S.useMemo)(()=>({...qie,...n}),[n]),h=r?e=>{let t=e.viewState;r({longitude:t.longitude,latitude:t.latitude,zoom:t.zoom,bearing:t.bearing,pitch:t.pitch})}:void 0,g={width:`100%`,height:400,borderRadius:f.shape.borderRadius,overflow:`hidden`,...s};return(0,z.jsx)(`div`,{style:g,children:(0,z.jsxs)(fie,{ref:d,mapStyle:p,...t?{longitude:t.longitude??m.longitude,latitude:t.latitude??m.latitude,zoom:t.zoom??m.zoom,bearing:t.bearing??m.bearing,pitch:t.pitch??m.pitch}:{initialViewState:m},onMove:h,onClick:l?e=>l({lngLat:e.lngLat}):void 0,cursor:c,attributionControl:o?{}:!1,style:{width:`100%`,height:`100%`},children:[i&&(0,z.jsx)(hie,{position:`top-right`}),a&&(0,z.jsx)(_ie,{position:`bottom-left`}),u]})})});Yie.displayName=`Map`;var Xie=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 Zie(`${r} (key: ${t})`))},n)})])}},Zie=class e extends Error{name=`AsyncLockTimeoutError`;constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}};new Xie;function Qie(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 $ie=1,eae=100,$5=e=>typeof e?.id==`number`||e?.id?.length>0?e.id:$ie++,e7=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),this.getActiveToasts().forEach(t=>e(t)),()=>{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.trimHistory()},this.trimHistory=()=>{let e=this.toasts.length-eae;e<=0||(this.toasts=this.toasts.filter(t=>e>0&&this.dismissedToasts.has(t.id)?(this.dismissedToasts.delete(t.id),e--,!1):!0))},this.create=e=>{let{message:t,...n}=e,r=$5(e),i=this.pendingDismissals.get(r);i!==void 0&&(cancelAnimationFrame(i),this.pendingDismissals.delete(r),this.dismissedToasts.delete(r));let a=this.dismissedToasts.has(r),o=e.dismissible===void 0||e.dismissible;return a&&(this.dismissedToasts.delete(r),this.toasts=this.toasts.filter(e=>e.id!==r)),!a&&this.toasts.find(e=>e.id===r)?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:o,title:t}):n):this.addToast({title:t,...n,dismissible:o,id:r}),r},this.dismiss=e=>{if(e==null)return this.getActiveToasts().forEach(e=>{this.dismissedToasts.add(e.id),this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e;this.dismissedToasts.add(e);let t=this.pendingDismissals.get(e);return t!==void 0&&cancelAnimationFrame(t),this.pendingDismissals.set(e,requestAnimationFrame(()=>{this.pendingDismissals.delete(e),this.subscribers.forEach(t=>t({id:e,dismiss:!0}))})),e},this.message=(e,t)=>this.create({...t,message:e,type:void 0}),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],S.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(nae(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`&&!S.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`&&!S.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`&&!S.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`&&!S.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=$5(t);return this.create({...t,jsx:e(n),id:n,type:void 0}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set,this.pendingDismissals=new Map}},tae=(e,t)=>e7.message(e,t),nae=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,t7=Object.assign(tae,{success:e7.success,info:e7.info,warning:e7.warning,error:e7.error,custom:e7.custom,message:e7.message,promise:e7.promise,dismiss:e7.dismiss,loading:e7.loading},{getHistory:()=>e7.toasts,getToasts:()=>e7.getActiveToasts()});Qie(`[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;flex:1;min-width:0}[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(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);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]{-webkit-user-select:none;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 n7=1500,r7=new Map;function i7(e){let t=Date.now(),n=r7.get(e);if(n!==void 0&&t-n<n7)return r7.set(e,t),!0;if(r7.set(e,t),r7.size>64){let e=t-n7*4;for(let[t,n]of r7)n<e&&r7.delete(t)}return!1}function a7(e){return(t,n)=>{i7(`${e}:${t}`)||t7[e](t,n)}}Object.assign(((e,t)=>{i7(`default:${e}`)||t7(e,t)}),{error:a7(`error`),success:a7(`success`),info:a7(`info`),warning:a7(`warning`),loading:t7.loading.bind(t7),promise:t7.promise.bind(t7),dismiss:t7.dismiss.bind(t7),custom:t7.custom.bind(t7),message:t7.message.bind(t7)}),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??3e5}}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 D(()=>import(`./fs-Ccl3sAcp.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}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 o7={full:280,mini:73,mobile:280,stackedCollapsed:72,stackedExpanded:300},s7={mobile:64,desktop:72},c7={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`};c7.headerMobileHeight,`${s7.mobile}`,c7.headerDesktopHeight,`${s7.desktop}`,c7.headerBlur,c7.navWidth,`${o7.full}`,c7.navMiniWidth,`${o7.mini}`,c7.navMobileWidth,`${o7.mobile}`;var rae={navigationMenuType:`sidenav`,sidenavVariant:`default`,sidenavCollapsed:!1,topnavVariant:`default`,navColor:`default`,drawerOpen:!1,drawerWidth:o7.full,compactLayout:!1},l7=(0,S.createContext)(null);l7.displayName=`LayoutContext`;function iae({children:e,initialConfig:t,persistKey:n}){let r=xA(Bu().breakpoints.down(`md`)),i=vM(e=>e.sidebarCollapsed),a=vM(e=>e.setSidebarCollapsed),[o,s]=(0,S.useState)(()=>{let e=n?i[n]??!1:!1;return{...rae,...t,...n?{sidenavCollapsed:e}:{}}}),[c,l]=(0,S.useState)([]),u=(0,S.useMemo)(()=>o.sidenavVariant===`mini`||o.sidenavCollapsed?o.sidenavVariant===`stacked`?o7.stackedCollapsed:o7.mini:o.sidenavVariant===`stacked`?o7.stackedExpanded:o7.full,[o.sidenavVariant,o.sidenavCollapsed]),d=(0,S.useMemo)(()=>({...o,drawerWidth:u}),[o,u]),f=(0,S.useCallback)(e=>{s(t=>({...t,...e}))},[]),p=(0,S.useCallback)(()=>{s(e=>({...e,drawerOpen:!e.drawerOpen}))},[]),m=(0,S.useCallback)(()=>{s(e=>{let t=!e.sidenavCollapsed;return n&&queueMicrotask(()=>a(n,t)),{...e,sidenavCollapsed:t}})},[n,a]),h=(0,S.useCallback)(e=>{s(t=>({...t,navigationMenuType:e}))},[]),g=(0,S.useCallback)(e=>{s(t=>({...t,sidenavVariant:e}))},[]),_=(0,S.useCallback)(e=>{s(t=>({...t,navColor:e}))},[]),v=(0,S.useCallback)(e=>c.includes(e),[c]),y=(0,S.useCallback)(e=>{l(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},[]),b=(0,S.useCallback)((e,t)=>{if(!e.path)return!1;let n=t.split(/[?#]/)[0].replace(/\/+$/,``)||`/`;if(e.path===n||e.selectionPrefix&&(Array.isArray(e.selectionPrefix)?e.selectionPrefix:[e.selectionPrefix]).some(e=>n.startsWith(e)))return!0;if(e.deepMatch!==!1&&n.startsWith(e.path)){let t=n[e.path.length];return!t||t===`/`}return!1},[]),x=(0,S.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]),C=(0,S.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,z.jsx)(l7.Provider,{value:C,children:e})}function u7(){let e=(0,S.useContext)(l7);if(!e)throw Error(`useLayoutContext must be used within a LayoutProvider`);return e}function d7(){let{config:e}=u7();return e}function f7(e){let{isNavItemActive:t,isNestedItemActive:n}=u7();return(0,S.useMemo)(()=>({isItemActive:n=>t(n,e),isNestedActive:t=>n(t,e)}),[t,n,e])}K(Z)({minHeight:`100%`,display:`flex`,flex:`1 1 auto`,flexDirection:`column`}),K(Z)({display:`flex`,flex:`1 1 auto`,flexDirection:`row`,minHeight:0});function aae(e=10){let[t,n]=(0,S.useState)(!1);return(0,S.useEffect)(()=>{if(typeof window>`u`)return;let t=e,r=Math.max(0,e/2),i=!1,a=()=>{i||(i=!0,requestAnimationFrame(()=>{let e=window.scrollY;n(n=>n?e>r:e>t),i=!1}))};return window.addEventListener(`scroll`,a,{passive:!0}),a(),()=>{window.removeEventListener(`scroll`,a)}},[e]),t}var oae=K(Xw,{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(${c7.headerBlur}, 8px))`,WebkitBackdropFilter:`blur(var(${c7.headerBlur}, 8px))`,backgroundColor:U(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(${c7.headerZIndex}, ${e.zIndex.appBar})`,...!n&&{"&::before":a},...!r&&{"&::after":o}}}),sae=K(Nk)(({theme:e})=>({minHeight:s7.mobile,[e.breakpoints.up(`md`)]:{minHeight:s7.desktop,paddingLeft:e.spacing(4),paddingRight:e.spacing(4)}})),p7=K(Z)({display:`flex`,alignItems:`center`});function cae({slots:e,slotProps:t,disableSticky:n=!1,disableOffset:r=!1,disableElevation:i=!1,containerized:a=!1,maxWidth:o=`lg`,sx:s}){let c=aae(),l=(0,z.jsxs)(z.Fragment,{children:[e?.leftArea&&(0,z.jsx)(p7,{sx:{gap:1,...t?.leftArea},children:e.leftArea}),(0,z.jsx)(p7,{sx:{flex:1,justifyContent:`center`,mx:2,...t?.centerArea},children:e?.centerArea}),e?.rightArea&&(0,z.jsx)(p7,{sx:{gap:1,...t?.rightArea},children:e.rightArea})]});return(0,z.jsxs)(oae,{position:n?`static`:`sticky`,isOffset:c,disableOffset:r,disableElevation:i,sx:s,children:[e?.topArea&&(0,z.jsx)(Z,{sx:t?.topArea,children:e.topArea}),(0,z.jsx)(sae,{children:a?(0,z.jsx)(HT,{maxWidth:o,sx:{display:`flex`,alignItems:`center`,...t?.container},children:l}):l}),e?.bottomArea&&(0,z.jsx)(Z,{sx:t?.bottomArea,children:e.bottomArea})]})}K(rg)(({theme:e})=>({borderRadius:`50%`,padding:0,transition:e.transitions.create([`box-shadow`,`background-color`],{duration:e.transitions.duration.shorter}),"&:hover":{backgroundColor:U(e.palette.primary.main,.08)},"&:focus-visible":{outline:`2px solid ${e.palette.primary.main}`,outlineOffset:2}})),K(FD)(({theme:e})=>({"& .MuiPopover-paper":{minWidth:220,maxWidth:280,borderRadius:Number(e.shape.borderRadius)*1.5,boxShadow:e.shadows[8],overflow:`hidden`}})),K(Z)(({theme:e})=>({padding:e.spacing(2),display:`flex`,alignItems:`center`,gap:e.spacing(1.5)})),K(Z)({flex:1,minWidth:0,overflow:`hidden`}),K(qD,{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:U(e.palette.error.main,.08)}}}));var lae=K(Z,{shouldForwardProp:e=>![`variant`,`collapsed`].includes(e)})(({theme:e,variant:t,collapsed:n})=>{let r=o7.full;return n?r=t===`stacked`?o7.stackedCollapsed:o7.mini:t===`mini`?r=o7.mini:t===`stacked`&&(r=o7.stackedExpanded),{position:`fixed`,top:0,left:0,height:`100%`,width:r,flexShrink:0,display:`flex`,flexDirection:`column`,zIndex:e.zIndex.drawer,backgroundColor:`var(${c7.navBg}, ${e.palette.background.paper})`,borderRight:`1px solid ${e.palette.divider}`,transition:e.transitions.create(`width`,{duration:e.transitions.duration.shorter})}}),uae=K(Z)({display:`flex`,flexDirection:`column`,flex:1,overflow:`hidden`}),dae=K(Z)({flex:1,overflow:`auto`,"&::-webkit-scrollbar":{width:6},"&::-webkit-scrollbar-thumb":{backgroundColor:`rgba(0, 0, 0, 0.2)`,borderRadius:3}}),fae=K(mg)(({theme:e})=>({position:`absolute`,top:s7.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 pae({logo:e,navData:t,renderNavItem:n,footer:r,showCollapseButton:i=!0,layoutQuery:a=`md`,"aria-label":o=CM.mainNav,sx:s}){let{config:c,toggleSidenavCollapse:l}=u7(),{sidenavVariant:u,sidenavCollapsed:d}=c,f=!d&&u!==`mini`;return(0,z.jsxs)(lae,{role:`navigation`,"aria-label":o,variant:u,collapsed:d,sx:[e=>({display:{xs:`none`,[a]:`flex`}}),...Array.isArray(s)?s:[s]],children:[(0,z.jsx)(Z,{sx:{display:`flex`,alignItems:`center`,justifyContent:f?`flex-start`:`center`,height:{xs:s7.mobile,md:s7.desktop},px:f?3:1,flexShrink:0},children:e}),(0,z.jsx)(sE,{}),(0,z.jsxs)(uae,{children:[(0,z.jsx)(dae,{children:t?.map((e,t)=>(0,z.jsxs)(S.Fragment,{children:[!f&&t>0&&(0,z.jsx)(sE,{sx:{mx:1.5}}),(0,z.jsx)(eD,{subheader:f&&e.subheader?(0,z.jsx)(bS,{disableSticky:!0,sx:{px:2.5,py:1.5,typography:`overline`,color:`text.secondary`,bgcolor:`transparent`},children:e.subheader}):null,sx:{px:f?1:.5},children:e.items.map(e=>n?n(e,0):(0,z.jsx)(m7,{item:e,showText:f,depth:0},e.id))})]},e.id))}),r&&(0,z.jsx)(Z,{sx:{flexShrink:0,p:2},children:r})]}),i&&u!==`mini`&&(0,z.jsx)(fae,{onClick:l,size:`small`,"aria-label":d?`Expand sidebar`:`Collapse sidebar`,"aria-expanded":!d,children:(0,z.jsx)(gae,{direction:d?`right`:`left`})})]})}function mae({logo:e,navData:t,renderNavItem:n,footer:r,layoutQuery:i=`md`,"aria-label":a=CM.mainNav,sx:o}){let{config:s,toggleDrawer:c}=u7(),{drawerOpen:l}=s;return(0,z.jsxs)(hE,{open:l,onClose:c,"aria-label":a,sx:[e=>({display:{xs:`block`,[i]:`none`},"& .MuiDrawer-paper":{width:o7.mobile,backgroundColor:`var(${c7.navBg}, ${e.palette.background.paper})`}}),...Array.isArray(o)?o:[o]],children:[(0,z.jsx)(Z,{sx:{display:`flex`,alignItems:`center`,height:{xs:s7.mobile,md:s7.desktop},px:2.5},children:e}),(0,z.jsx)(sE,{}),(0,z.jsx)(Z,{component:`nav`,role:`navigation`,sx:{flex:1,overflow:`auto`},children:t?.map(e=>(0,z.jsx)(eD,{subheader:e.subheader?(0,z.jsx)(bS,{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,z.jsx)(m7,{item:e,showText:!0,depth:0},e.id))},e.id))}),r&&(0,z.jsx)(Z,{sx:{p:2},children:r})]})}function hae({item:e,showText:t,depth:n,active:r}){let i=(0,z.jsxs)(tD,{component:e.path?Ln:`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:U(e.palette.primary.main,.08),"&:hover":{bgcolor:U(e.palette.primary.main,.16)}}}),children:[e.icon&&(0,z.jsx)(oD,{sx:{minWidth:t?36:`unset`,color:r?`primary.main`:`text.secondary`,...!t&&{mr:0,justifyContent:`center`}},children:(0,z.jsx)(Z,{component:`span`,sx:{display:`flex`,alignItems:`center`,justifyContent:`center`,width:24,height:24},children:e.icon})}),t&&(0,z.jsx)(dD,{primary:e.title,slotProps:{primary:{variant:`body2`,noWrap:!0,sx:{fontWeight:r?600:500}}}}),t&&e.info]});return t?i:(0,z.jsx)(nk,{title:e.title,placement:`right`,arrow:!0,children:i},e.id)}function m7({item:e,showText:t,depth:n}){let{pathname:r}=gt(),{isItemActive:i}=f7(r),a=i(e);return(0,z.jsx)(hae,{item:e,showText:t,depth:n,active:a},e.id)}function gae({direction:e}){return(0,z.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,z.jsx)(`polyline`,{points:`15 18 9 12 15 6`})})}var _ae=K(`nav`)(({theme:e})=>({display:`flex`,alignItems:`center`,width:`100%`,minHeight:48,borderBottom:`1px solid ${e.palette.divider}`,backgroundColor:`var(${c7.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 vae({navData:e,renderNavItem:t,layoutQuery:n=`lg`,"aria-label":r=CM.mainNav,sx:i}){return(0,z.jsx)(_ae,{"aria-label":r,sx:i,children:e?.map(e=>e.items.map(e=>t?t(e,0):(0,z.jsx)(yae,{item:e},e.id)))})}function yae({item:e}){let{pathname:t}=gt(),{isItemActive:n}=f7(t),r=n(e);return(0,z.jsxs)(Z,{component:e.path?Ln:`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:U(t.palette.primary.main,.08)},"&:hover":{bgcolor:e.disabled?void 0:r?U(t.palette.primary.main,.16):`action.hover`},"&:focus-visible":{outline:`2px solid ${t.palette.primary.main}`,outlineOffset:-2}}),children:[e.icon&&(0,z.jsx)(Z,{component:`span`,"aria-hidden":`true`,sx:{display:`flex`,color:r?`primary.main`:`text.secondary`},children:e.icon}),(0,z.jsx)(`span`,{children:e.title}),e.info]})}function bae(){return(0,z.jsx)(Qm,{children:(0,z.jsx)(`path`,{d:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`})})}var xae=K(Z,{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 Sae({children:e,layoutQuery:t,navData:n,headerSlots:r,logo:i,footer:a,sidenavFooter:o,slotProps:s}){let c=d7(),{toggleDrawer:l}=u7(),{navigationMenuType:u,sidenavCollapsed:d,sidenavVariant:f,drawerWidth:p}=c,m=u===`sidenav`||u===`combo`,h=u===`topnav`||u===`combo`,g=m?p:0,_=(0,S.useMemo)(()=>{if(!m)return r;let e=(0,z.jsx)(mg,{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,z.jsx)(bae,{})});return{...r,leftArea:(0,z.jsxs)(z.Fragment,{children:[e,r?.leftArea]})}},[m,r,l,t]);return(0,z.jsxs)(xae,{hasSidebar:m,sidebarWidth:g,layoutQuery:t,children:[(0,z.jsx)(SM,{href:`#main-content`,children:`Skip to main content`}),(0,z.jsx)(cae,{slots:_,"aria-label":CM.header,sx:{...s?.header?.sx},...s?.header}),h&&(0,z.jsx)(vae,{navData:n,layoutQuery:t,"aria-label":m?`Secondary navigation`:CM.mainNav}),m&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(pae,{logo:i,navData:n,footer:o,layoutQuery:t,"aria-label":CM.mainNav}),(0,z.jsx)(mae,{logo:i,navData:n,footer:o,layoutQuery:t,"aria-label":CM.mainNav})]}),(0,z.jsx)(Z,{component:`main`,id:`main-content`,role:`main`,"aria-label":CM.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,z.jsx)(HT,{maxWidth:s.main.maxWidth,sx:{flex:1,display:`flex`,flexDirection:`column`},children:e}):e}),a]})}function Cae({children:e,layoutQuery:t=`lg`,navData:n,headerSlots:r,logo:i,footer:a,sidenavFooter:o,initialConfig:s,persistKey:c,slotProps:l}){return(0,z.jsx)(iae,{initialConfig:s,persistKey:c,children:(0,z.jsx)(Sae,{layoutQuery:t,navData:n,headerSlots:r,logo:i,footer:a,sidenavFooter:o,slotProps:l,children:e})})}var wae=K(Z)(({theme:e})=>({display:`flex`,flexDirection:`column`,minHeight:`100vh`,background:e.palette.mode===`dark`?`linear-gradient(135deg, ${U(e.palette.primary.dark,.1)} 0%, ${e.palette.background.default} 100%)`:`linear-gradient(135deg, ${U(e.palette.primary.light,.1)} 0%, ${e.palette.background.default} 100%)`})),Tae=K(Z)({display:`flex`,flex:`1 1 auto`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,padding:24}),Eae=K(IT)(({theme:e})=>({width:`100%`,maxWidth:420,padding:e.spacing(5,3),position:`relative`,zIndex:2}));function Dae({children:e,logo:t,maxWidth:n=420,sx:r}){return(0,z.jsxs)(wae,{sx:r,children:[t&&(0,z.jsx)(Z,{sx:{position:{xs:`static`,md:`fixed`},top:0,left:0,p:3,zIndex:3},children:t}),(0,z.jsx)(Tae,{children:(0,z.jsx)(Eae,{sx:{maxWidth:n},children:e})})]})}K(Z)({display:`flex`,flexDirection:`column`,minHeight:`100vh`}),K(Z)(({theme:e})=>({display:`flex`,flex:`1 1 auto`,[e.breakpoints.up(`md`)]:{flexDirection:`row`}})),K(Z)(({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(Z)({maxWidth:480,textAlign:`center`,position:`relative`,zIndex:1}),K(Z)(({theme:e})=>({display:`flex`,flexDirection:`column`,flex:1,[e.breakpoints.up(`md`)]:{width:`50%`}})),K(Z)(({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(Z)({display:`flex`,flexDirection:`column`,minHeight:`100vh`}),K(Z)({display:`flex`,flexDirection:`column`,flex:`1 1 auto`}),K(Z)(({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 h7={mode:`light`,direction:`ltr`,preset:`default`,compactLayout:!1,contrast:`default`,primaryColor:null};gM(hM(e=>({...h7,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(h7)}),`theme`));var g7=pM(e=>({token:null,setToken:t=>e({token:t})}),`token`);gM(hM(e=>({status:`loading`,sessionId:null,setStatus:t=>e({status:t}),setAuthenticated:t=>{e({status:`authenticated`,sessionId:t??null})},setUnauthenticated:()=>{g7.getState().setToken(null),e({status:`unauthenticated`,sessionId:null})},clearSession:()=>{g7.getState().setToken(null),typeof window<`u`&&window.sessionStorage.removeItem(`sessionId`),e({status:`unauthenticated`,sessionId:null})}}),`auth`,{partialize:e=>({status:e.status,sessionId:e.sessionId})})),gM(pM(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 _7=(0,S.createContext)(null);_7.displayName=`NetronContext`;var Oae=(0,S.createContext)(null);Oae.displayName=`ConnectionContext`;var kae=(0,S.createContext)(null);kae.displayName=`QueryClientContext`;var v7=(0,S.createContext)({staleTime:0,cacheTime:3e5,retry:3,refetchOnWindowFocus:!0,refetchOnReconnect:!0});v7.displayName=`DefaultsContext`;var Aae=(0,S.createContext)({isHydrating:!1,markHydrated:()=>{}});Aae.displayName=`HydrationContext`;function y7(e){return JSON.stringify(e,(e,t)=>typeof t==`object`&&t&&!Array.isArray(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function jae(e,t,n=!1){if(n)return y7(e)===y7(t);if(t.length>e.length)return!1;for(let n=0;n<t.length;n++)if(!b7(e[n],t[n]))return!1;return!0}function b7(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e===null||t===null)return e===t;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((e,n)=>b7(e,t[n]));if(typeof e==`object`&&typeof t==`object`){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>b7(e[n],t[n]))}return!1}function Mae(e,t){if(!t)return!0;if(t.queryKey&&!jae(e.queryKey,t.queryKey,t.exact)||t.status&&e.state.status!==t.status)return!1;if(t.stale!==void 0){let n=e.state.staleTime??0,r=e.state.isInvalidated||n===0||n!==1/0&&Date.now()>e.state.dataUpdatedAt+n;if(t.stale!==r)return!1}return!(t.predicate&&!t.predicate(e))}var x7={now:()=>Date.now(),isExpired:(e,t)=>Date.now()>e+t,timeUntilExpiry:(e,t)=>Math.max(0,e+t-Date.now())};function Nae(){return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,11)}`}var Pae={maxEntries:1e3,defaultCacheTime:3e5,gcEnabled:!0,gcInterval:6e4},S7=`\0infinite`,Fae=class{config;cache=new Map;gcTimer;constructor(e){this.config={...Pae,...e}}resolveHash(e,t=!1){let n=y7(e);return t?n+S7:n}get(e,t=!1){let n=this.resolveHash(e,t);return this.cache.get(n)?.data}getQuery(e,t=!1){let n=this.resolveHash(e,t),r=this.cache.get(n);if(r)return{queryKey:r.queryKey,queryHash:r.queryHash,state:{data:r.data,error:r.error,status:r.status,dataUpdatedAt:r.dataUpdatedAt,errorUpdatedAt:r.errorUpdatedAt,isInvalidated:r.isInvalidated,staleTime:r.staleTime}}}set(e,t,n,r=!1){let i=this.resolveHash(e,r),a=this.cache.get(i),o={queryKey:e,queryHash:i,data:t,error:null,status:`success`,dataUpdatedAt:x7.now(),errorUpdatedAt:a?.errorUpdatedAt??0,isInvalidated:!1,staleTime:n??a?.staleTime,fetchStatus:`idle`,observers:a?.observers??new Set};this.cache.set(i,o),this.notifyObservers(i),this.enforceMaxEntries(),this.ensureGcScheduled()}setError(e,t){let n=y7(e),r=this.cache.get(n),i={queryKey:e,queryHash:n,data:r?.data,error:t,status:`error`,dataUpdatedAt:r?.dataUpdatedAt??0,errorUpdatedAt:x7.now(),isInvalidated:!1,fetchStatus:`idle`,observers:r?.observers??new Set};this.cache.set(n,i),this.notifyObservers(n),this.ensureGcScheduled()}update(e,t){let n=y7(e),r=this.cache.get(n);r&&(Object.assign(r,t),this.notifyObservers(n))}isStale(e,t){let n=y7(e),r=this.cache.get(n);if(!r||r.isInvalidated)return!0;if(t===1/0)return!1;if(t===0)return!0;let i=t??0;return x7.isExpired(r.dataUpdatedAt,i)}invalidate(e){let t=y7(e);for(let e of[t,t+S7]){let t=this.cache.get(e);t&&(t.isInvalidated=!0,this.notifyObservers(e))}}remove(e){let t=y7(e);for(let e of[t,t+S7]){let t=this.cache.get(e);t&&(t.abortController?.abort(),t.gcTimeout&&clearTimeout(t.gcTimeout),this.cache.delete(e))}}clear(){for(let e of this.cache.values())e.abortController?.abort(),e.gcTimeout&&clearTimeout(e.gcTimeout);this.cache.clear(),this.gcTimer!==void 0&&(clearTimeout(this.gcTimer),this.gcTimer=void 0)}findAll(e){let t=[];for(let n of this.cache.values()){let r={queryKey:n.queryKey,queryHash:n.queryHash,state:{data:n.data,error:n.error,status:n.status,dataUpdatedAt:n.dataUpdatedAt,errorUpdatedAt:n.errorUpdatedAt,isInvalidated:n.isInvalidated,staleTime:n.staleTime}};Mae(r,e)&&t.push(r)}return t}cancelAll(e){let t=this.findAll(e);for(let e of t)this.cache.get(e.queryHash)?.abortController?.abort()}subscribe(e,t,n,r=!1){let i=this.resolveHash(e,r),a=this.cache.get(i);return a||(a={queryKey:e,queryHash:i,data:void 0,error:null,status:`idle`,dataUpdatedAt:0,errorUpdatedAt:0,isInvalidated:!1,fetchStatus:`idle`,observers:new Set},this.cache.set(i,a)),a.observers.add(t),n!==void 0&&(a.observerCacheTimes||(a.observerCacheTimes=new Map),a.observerCacheTimes.set(t,n)),a.gcTimeout&&(clearTimeout(a.gcTimeout),a.gcTimeout=void 0),()=>{a.observers.delete(t),a.observerCacheTimes?.delete(t),this.scheduleGC(i)}}notifyObservers(e){this.cache.get(e)?.observers.forEach(e=>{try{e()}catch(e){console.error(`Error in query observer:`,e)}})}startFetch(e){let t=y7(e),n=this.cache.get(t);n?.abortController?.abort();let r=new AbortController;return n&&(n.fetchStatus=`fetching`,n.abortController=r,n.status===`idle`&&(n.status=`loading`),this.notifyObservers(t)),r}endFetch(e){let t=y7(e),n=this.cache.get(t);n&&(n.fetchStatus=`idle`,n.abortController=void 0,this.notifyObservers(t))}isFetching(e){let t=y7(e);return this.cache.get(t)?.fetchStatus===`fetching`}getOrCreateFetch(e,t,n){let r=y7(e),i=this.cache.get(r);if(i?.promise&&i.fetchStatus===`fetching`)return i.promise;i?(i.fetchStatus=`fetching`,i.status===`idle`&&(i.status=`loading`)):(i={queryKey:e,queryHash:r,data:void 0,error:null,status:`loading`,dataUpdatedAt:0,errorUpdatedAt:0,isInvalidated:!1,fetchStatus:`fetching`,observers:new Set},this.cache.set(r,i)),i.abortController?.abort();let a=new AbortController;i.abortController=a;let o=t(a.signal).then(e=>{let t=this.cache.get(r);return t?.promise===o&&(t.data=e,t.error=null,t.status=`success`,t.dataUpdatedAt=x7.now(),t.isInvalidated=!1,n!==void 0&&(t.staleTime=n),t.fetchStatus=`idle`,t.promise=void 0,t.abortController=void 0,this.notifyObservers(r)),e}).catch(e=>{let t=this.cache.get(r);throw t?.promise===o&&(t.error=e,t.status=`error`,t.errorUpdatedAt=x7.now(),t.fetchStatus=`idle`,t.promise=void 0,t.abortController=void 0,this.notifyObservers(r)),e});return i.promise=o,this.notifyObservers(r),o}getInFlightPromise(e){let t=y7(e),n=this.cache.get(t);if(n?.promise&&n.fetchStatus===`fetching`)return n.promise}scheduleGC(e){if(!this.config.gcEnabled)return;let t=this.cache.get(e);!t||t.observers.size>0||(t.gcTimeout&&clearTimeout(t.gcTimeout),t.gcTimeout=setTimeout(()=>{t.observers.size===0&&this.cache.delete(e)},this.resolveCacheTime(t)))}resolveCacheTime(e){let t=e.observerCacheTimes;if(!t||t.size===0)return this.config.defaultCacheTime;let n=this.config.defaultCacheTime;for(let e of t.values())e>n&&(n=e);return n}ensureGcScheduled(){this.config.gcEnabled&&this.gcTimer===void 0&&this.cache.size!==0&&(this.gcTimer=setTimeout(()=>{this.gcTimer=void 0,this.runGarbageCollection(),this.ensureGcScheduled()},this.config.gcInterval))}runGarbageCollection(){for(let[e,t]of this.cache.entries()){if(t.observers.size>0)continue;let n=Math.max(t.dataUpdatedAt,t.errorUpdatedAt);x7.isExpired(n,this.config.defaultCacheTime)&&this.cache.delete(e)}}enforceMaxEntries(){if(this.cache.size<=this.config.maxEntries)return;let e=Array.from(this.cache.entries()).filter(([e,t])=>t.observers.size===0).sort((e,t)=>Math.max(e[1].dataUpdatedAt,e[1].errorUpdatedAt)-Math.max(t[1].dataUpdatedAt,t[1].errorUpdatedAt)),t=this.cache.size-this.config.maxEntries;for(let n=0;n<t&&n<e.length;n++){let[t,r]=e[n];r.gcTimeout&&clearTimeout(r.gcTimeout),this.cache.delete(t)}}dehydrate(){return Array.from(this.cache.values()).filter(e=>e.status===`success`).map(e=>({queryKey:e.queryKey,queryHash:e.queryHash,state:{data:e.data,error:e.error,status:e.status,dataUpdatedAt:e.dataUpdatedAt,errorUpdatedAt:e.errorUpdatedAt,isInvalidated:e.isInvalidated}}))}hydrate(e){for(let{queryKey:t,queryHash:n,state:r}of e)this.cache.has(n)||this.cache.set(n,{queryKey:t,queryHash:n,data:r.data,error:r.error,status:r.status,dataUpdatedAt:r.dataUpdatedAt,errorUpdatedAt:r.errorUpdatedAt,isInvalidated:r.isInvalidated,fetchStatus:`idle`,observers:new Set});this.ensureGcScheduled()}destroy(){this.gcTimer!==void 0&&(clearTimeout(this.gcTimer),this.gcTimer=void 0),this.clear()}getStats(){let e=0,t=0;for(let n of this.cache.values())e+=n.observers.size,n.fetchStatus===`fetching`&&t++;return{size:this.cache.size,maxEntries:this.config.maxEntries,observerCount:e,fetchingCount:t}}},Iae=class{mutations=new Map;mutationsByKey=new Map;observers=new Map;globalObservers=new Set;create(e){let t=Nae(),n={id:t,mutationKey:e?.mutationKey,status:`idle`,data:void 0,error:null,variables:e?.variables,context:void 0,submittedAt:0,isPaused:!1};if(this.mutations.set(t,n),e?.mutationKey){let n=JSON.stringify(e.mutationKey);this.mutationsByKey.has(n)||this.mutationsByKey.set(n,new Set),this.mutationsByKey.get(n).add(t)}return this.notifyObservers(t),t}get(e){return this.mutations.get(e)}getByKey(e){let t=JSON.stringify(e),n=this.mutationsByKey.get(t);return n?Array.from(n).map(e=>this.mutations.get(e)).filter(e=>e!==void 0):[]}update(e,t){let n=this.mutations.get(e);n&&(Object.assign(n,t),(t.status===`success`||t.status===`error`)&&(n.settledAt=x7.now()),this.notifyObservers(e))}start(e,t){this.update(e,{status:`loading`,variables:t,submittedAt:x7.now(),error:null})}success(e,t,n){this.update(e,{status:`success`,data:t,context:n,error:null})}failure(e,t){this.update(e,{status:`error`,error:t})}reset(e){this.update(e,{status:`idle`,data:void 0,error:null,variables:void 0,context:void 0,submittedAt:0,settledAt:void 0})}remove(e){let t=this.mutations.get(e);if(t){if(t.mutationKey){let n=JSON.stringify(t.mutationKey);this.mutationsByKey.get(n)?.delete(e)}this.mutations.delete(e),this.observers.delete(e),this.notifyGlobalObservers()}}clear(){this.mutations.clear(),this.mutationsByKey.clear(),this.observers.clear(),this.notifyGlobalObservers()}getAll(){return Array.from(this.mutations.values())}getByStatus(e){return this.getAll().filter(t=>t.status===e)}getPending(){return this.getByStatus(`loading`)}getPaused(){return this.getAll().filter(e=>e.isPaused)}subscribe(e,t){return this.observers.has(e)||this.observers.set(e,new Set),this.observers.get(e).add(t),()=>{this.observers.get(e)?.delete(t)}}subscribeAll(e){return this.globalObservers.add(e),()=>{this.globalObservers.delete(e)}}notifyObservers(e){this.observers.get(e)?.forEach(e=>{try{e()}catch(e){console.error(`Error in mutation observer:`,e)}}),this.notifyGlobalObservers()}notifyGlobalObservers(){this.globalObservers.forEach(e=>{try{e()}catch(e){console.error(`Error in global mutation observer:`,e)}})}pause(e){this.update(e,{isPaused:!0})}resume(e){this.update(e,{isPaused:!1})}pauseAll(){for(let e of this.mutations.keys())this.pause(e)}resumeAll(){for(let e of this.mutations.values())e.isPaused&&this.resume(e.id)}dehydrate(){return this.getPaused().map(e=>({mutationKey:e.mutationKey,state:{status:e.status,variables:e.variables,submittedAt:e.submittedAt}}))}hydrate(e){for(let{mutationKey:t,state:n}of e){let e=this.create({mutationKey:t}),r=n;this.update(e,{status:r.status??`idle`,variables:r.variables,submittedAt:r.submittedAt??0,isPaused:!0})}}getStats(){let e=this.getAll();return{total:e.length,idle:e.filter(e=>e.status===`idle`).length,loading:e.filter(e=>e.status===`loading`).length,success:e.filter(e=>e.status===`success`).length,error:e.filter(e=>e.status===`error`).length,paused:e.filter(e=>e.isPaused).length}}},C7=(0,S.createContext)(null);C7.displayName=`MultiBackendContext`;var w7=(0,S.createContext)(null);w7.displayName=`MultiBackendConnectionContext`;var Lae=class{multiClient;queryCache;mutationCache;listeners=new Map;transportUnsubs=[];constructor(e,t={}){this.multiClient=e,this.queryCache=new Fae({maxEntries:t.maxEntries??1e3,defaultCacheTime:t.defaultCacheTime??3e5}),this.mutationCache=new Iae,this.wireTransportEvents()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}async invalidateQueries(e){let t=this.queryCache.findAll(e);for(let e of t)this.queryCache.invalidate(e.queryKey)}getQueryData(e){return this.queryCache.get(e)}setQueryData(e,t){let n=this.queryCache.get(e),r=typeof t==`function`?t(n):t;this.queryCache.set(e,r)}async cancelQueries(e){this.queryCache.cancelAll(e)}on(e,t){let n=this.listeners.get(e);return n||(n=new Set,this.listeners.set(e,n)),n.add(t),()=>{this.listeners.get(e)?.delete(t)}}off(e,t){this.listeners.get(e)?.delete(t)}emit(e){let t=this.listeners.get(e);if(t)for(let e of t)try{e()}catch{}}wireTransportEvents(){let e=this.multiClient;if(typeof e.on!=`function`)return;let t=e.on(`reconnect`,()=>this.emit(`reconnect`));typeof t==`function`&&this.transportUnsubs.push(t)}destroy(){this.queryCache.destroy(),this.mutationCache.clear(),this.listeners.clear();for(let e of this.transportUnsubs)try{e()}catch{}this.transportUnsubs.length=0}};function Rae(e){return e}function zae({client:e,children:t,autoConnect:n=!0,connectTimeout:r=3e4,onConnect:i,onDisconnect:a,onError:o,defaultOptions:s,cacheOptions:c}){let l=(0,S.useRef)(!0),u=(0,S.useRef)(null);u.current===null&&(u.current=new Lae(e,{maxEntries:c?.maxEntries,defaultCacheTime:c?.defaultCacheTime}));let d=u.current;(0,S.useEffect)(()=>()=>{u.current?.destroy(),u.current=null},[]);let f=(0,S.useMemo)(()=>({staleTime:s?.queries?.staleTime??0,cacheTime:s?.queries?.cacheTime??3e5,retry:s?.queries?.retry??3,refetchOnWindowFocus:s?.queries?.refetchOnWindowFocus??!0,refetchOnReconnect:s?.queries?.refetchOnReconnect??!0}),[s]),p=(0,S.useMemo)(()=>`getBackendNames`in e&&typeof e.getBackendNames==`function`?e.getBackendNames():[],[e]),[m,h]=(0,S.useState)(()=>{let t=new Map;for(let n of p)t.set(n,{name:n,isConnected:e.isConnected(n),isConnecting:!1,error:null});return t}),[g,_]=(0,S.useState)(null),v=(0,S.useCallback)((e,t)=>{l.current&&h(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})},[]),y=(0,S.useCallback)(async t=>{v(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]),l.current&&(v(t,{isConnected:!0,isConnecting:!1}),i?.(t))}catch(e){if(l.current){let n=e;v(t,{isConnected:!1,isConnecting:!1,error:n}),o?.(t,n)}throw e}},[e,r,v,i,o]),b=(0,S.useCallback)(async t=>{try{await e.disconnect(t),l.current&&(v(t,{isConnected:!1,isConnecting:!1}),a?.(t))}catch(e){if(l.current){let n=e;v(t,{error:n}),o?.(t,n)}throw e}},[e,v,a,o]),x=(0,S.useCallback)(async e=>{if(e)await y(e);else{let e=p.map(e=>y(e).catch(t=>{console.error(`Failed to connect to backend '${e}':`,t)}));await Promise.all(e)}},[p,y]),C=(0,S.useCallback)(async e=>{if(e)await b(e);else{let e=p.map(e=>b(e).catch(t=>{console.error(`Failed to disconnect from backend '${e}':`,t)}));await Promise.all(e)}},[p,b]),w=(0,S.useCallback)(t=>t?m.get(t)?.isConnected??e.isConnected(t):e.isConnected(),[e,m]),T=(0,S.useCallback)(t=>e.backend(t),[e]);(0,S.useEffect)(()=>{n&&p.some(t=>!e.isConnected(t))&&x().catch(e=>{l.current&&_(e)})},[n,p,e,x]),(0,S.useEffect)(()=>()=>{l.current=!1},[]);let E=(0,S.useMemo)(()=>{let e=p.length>0&&p.every(e=>m.get(e)?.isConnected??!1),t=p.some(e=>m.get(e)?.isConnected??!1),n=p.some(e=>m.get(e)?.isConnecting??!1);return{backends:m,allConnected:e,anyConnected:t,anyConnecting:n,globalError:g}},[p,m,g]),D=(0,S.useMemo)(()=>({client:e,getBackend:T,backendNames:p,isConnected:w,connect:x,disconnect:C}),[e,T,p,w,x,C]);return(0,z.jsx)(C7.Provider,{value:D,children:(0,z.jsx)(w7.Provider,{value:E,children:(0,z.jsx)(_7.Provider,{value:Rae(d),children:(0,z.jsx)(v7.Provider,{value:f,children:t})})})})}var T7=`omnitron_token`,E7=3e4,Bae=5e3,Vae=3e5,D7=3,Hae=2e3,Uae=new Set([`SESSION_EXPIRED`,`SESSION_REVOKED`]),O7=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}isAccessTokenStale(){let e=this.getJwtExpiryMs();return e===null||e-Date.now()<=E7}async refresh(){if(!this.getSessionId())return!1;if(this.inflightRefresh)return this.inflightRefresh;if(Date.now()-this.lastRefreshAt<Bae)return!0;this.inflightRefresh=this.performRefreshWithRetry();try{return await this.inflightRefresh}finally{this.inflightRefresh=null}}async performRefreshWithRetry(){for(let e=0;e<=D7;e++)try{return await this.performRefresh()}catch(t){let n=String(t?.code??``);if(Uae.has(n)){let e=this.handler;return this.stop(),e?.(`expired`),!1}if(e<D7){let t=Hae*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`,{sessionId:e});if(!t?.success||!t?.result)return!1;let{accessToken:n,session:r}=t.result;return n&&(sessionStorage.setItem(T7,n),h(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-E7;r<=0&&(r=0),r=Math.min(r,Vae),this.refreshTimer=setTimeout(()=>{this.running&&this.refresh()},r)}getJwtExpiryMs(){try{let e=sessionStorage.getItem(T7);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(T7);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)}},k7=`__omnitronSessionManager`;function Wae(){let e=window[k7];if(e)return e;let t=new O7;return window[k7]=t,t}var A7=typeof window<`u`?Wae():new O7;function Gae(e){let t=Kae(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 j7(e,t=`/`){if(!e)return t;try{let n=decodeURIComponent(e),r=`https://console.invalid`,i=new URL(n,r);if(i.origin!==r)return t;let a=i.pathname+i.search+i.hash;return!a.startsWith(`/`)||a.startsWith(`//`)?t:a}catch{return t}}function Kae(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)}var M7=`unknown`;function N7(e){if(e===`expired`&&(s(),F7.setState({user:null,sessionId:null}),typeof window<`u`)){let e=window.location.pathname+window.location.search,t=encodeURIComponent(j7(e));window.location.href=`/auth/sign-in?returnTo=${t}`}}var P7=null;function qae(e){let t=e?.code;return t==null||t===401||t===`UNAUTHORIZED`||t===`SESSION_REVOKED`}function Jae(e){let t=e?.code;return t===`ECONNREFUSED`||t===`SESSION_STORE_UNAVAILABLE`?"The daemon could not reach its database, so your session could not be checked. This is not a sign-in problem — run `omnitron doctor` for the reason.":"The daemon could not check your session. Signing in again will not help until it can — run `omnitron doctor` for the reason."}async function Yae(e){let t=m();if(!t){e({initialized:!0});return}try{A7.isAccessTokenStale()&&await A7.refresh().catch(()=>!1);let n=await d(`validateSession`,{sessionId:m()??t});if(n.valid&&n.user){let r=n.session?.expiresAt??new Date(Date.now()+36e5).toISOString();e({user:{id:n.user.id,username:n.user.username,displayName:n.user.displayName??n.user.username,role:n.user.role??M7},sessionId:t,initialized:!0}),A7.start(r,N7);return}}catch(t){if(!qae(t)){e({initialized:!0,initError:Jae(t)});return}try{if(await A7.refresh()){let t=m();if(!t){s(),e({initialized:!0});return}let n=await d(`validateSession`,{sessionId:t});if(n.valid&&n.user){e({user:{id:n.user.id,username:n.user.username,displayName:n.user.displayName??n.user.username,role:n.user.role??M7},sessionId:m(),initialized:!0});return}}}catch{}}s(),e({initialized:!0})}var F7=kA((e,t)=>({user:null,sessionId:null,initialized:!1,initError:null,loading:!1,clearInitError:()=>e({initError:null}),initialize:async()=>{if(!t().initialized)return P7||(P7=Yae(e).finally(()=>{P7=null}),P7)},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&&h(r.accessToken);let i=r.session?.id??m(),a=r.session?.expiresAt??new Date(Date.now()+36e5).toISOString();e({user:{id:r.user.id,username:r.user.username,displayName:r.user.displayName??r.user.username,role:r.user.role??M7},sessionId:i,loading:!1}),A7.start(a,N7)}catch(t){throw e({loading:!1}),t}},signOut:async()=>{A7.stop();let{sessionId:n}=t();try{n&&await d(`signOut`,{sessionId:n})}finally{s(),e({user:null,sessionId:null})}},setUser:t=>e({user:t})}));function Xae({children:e}){let{user:t,initialized:n,initialize:r}=F7(),i=gt();if((0,S.useEffect)(()=>{r()},[r]),!n)return(0,z.jsx)(eH,{fullScreen:!0,message:`Checking your session…`});if(!t){let e=encodeURIComponent(i.pathname+i.search);return(0,z.jsx)(Gt,{to:`/auth/sign-in?returnTo=${e}`,replace:!0})}return(0,z.jsx)(z.Fragment,{children:e})}function Zae({children:e}){let{user:t,initialized:n,initialize:r}=F7(),i=gt();if((0,S.useEffect)(()=>{r()},[r]),!n)return(0,z.jsx)(eH,{fullScreen:!0,message:`Checking your session…`});if(t){let e=j7(new URLSearchParams(i.search).get(`returnTo`));return(0,z.jsx)(Gt,{to:e,replace:!0})}return(0,z.jsx)(z.Fragment,{children:e})}var I7=e=>Symbol.iterator in e,L7=e=>`entries`in e,R7=(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},Qae=(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 $ae(e,t){return Object.is(e,t)?!0:typeof e!=`object`||!e||typeof t!=`object`||!t||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?!1:I7(e)&&I7(t)?L7(e)&&L7(t)?R7(e,t):Qae(e,t):R7({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}function eoe(e){let t=S.useRef(void 0);return n=>{let r=e(n);return $ae(t.current,r)?t.current:t.current=r}}function z7(e){try{return localStorage.getItem(e)}catch{return null}}function B7(e,t){try{localStorage.setItem(e,t)}catch{}}function V7(e){try{localStorage.removeItem(e)}catch{}}function H7(e,t){let n=z7(e);if(n===null)return t;try{return JSON.parse(n)}catch{return t}}function U7(e,t){try{B7(e,JSON.stringify(t))}catch{}}var W7=`omnitron_active_project`,G7=`omnitron_active_stack`,K7=`omnitron_workspace_routes`,q7=`__omnitron__`;function J7(e,t){e?B7(W7,e):V7(W7),t?B7(G7,t):V7(G7)}function toe(){return{project:z7(W7),stack:z7(G7),routes:H7(K7,{})}}function Y7(e){U7(K7,e)}var X7=kA((e,t)=>{let n=toe();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 o.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}),J7(null,null));else if(n.length===1){let r=n[0].name;e({activeProject:r}),J7(r,null),t().fetchStacks(r)}}catch(t){e({error:t.message,loading:!1})}},fetchStacks:async n=>{try{let r=await o.listStacks({project:n});if(e(e=>({stacksByProject:{...e.stacksByProject,[n]:r}})),t().activeProject===n&&r.length===1&&!t().activeStack){let t=r[0].name;e({activeStack:t}),J7(n,t)}}catch(t){e({error:t.message})}},fetchStackStatus:async(t,n)=>{try{let r=await o.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??q7;a[e]=r}let o=a[n]??`/`;return e({activeProject:n,activeStack:null,workspaceRoutes:a}),J7(n,null),Y7(a),t().fetchStacks(n),o},deselectProject:n=>{let r=t(),i={...r.workspaceRoutes};n&&r.activeProject&&(i[r.activeProject]=n);let a=i[q7]??`/`;return e({activeProject:null,activeStack:null,workspaceRoutes:i}),J7(null,null),Y7(i),a},saveCurrentRoute:n=>{let r=t(),i=r.activeProject??q7,a={...r.workspaceRoutes,[i]:n};e({workspaceRoutes:a}),Y7(a)},selectStack:n=>{e({activeStack:n}),J7(t().activeProject,n)},addProject:async(n,r)=>{try{e({loading:!0,error:null}),await o.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 o.updateProject({name:n,...r});i.name!==n&&t().activeProject===n&&(e({activeProject:i.name,activeStack:null}),J7(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 o.removeProject({name:n}),t().activeProject===n&&(e({activeProject:null,activeStack:null}),J7(null,null)),await t().fetchProjects()}catch(t){throw e({error:t.message,loading:!1}),t}},startStack:async(n,r,i)=>{let a=`${n}/${r}`;if(!t().pendingOps[a]){e(e=>({error:null,pendingOps:{...e.pendingOps,[a]:`starting`},stacksByProject:Q7(e.stacksByProject,n,r,`starting`)}));try{await o.startStack({project:n,stack:r,...i?.release?{release:i.release}:{},...i?.allowDirty?{allowDirty:!0}:{}})}catch(t){Z7(t)||e({error:t.message})}finally{e(e=>{let t={...e.pendingOps};return delete t[a],{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:Q7(e.stacksByProject,n,r,`stopping`)}));try{await o.stopStack({project:n,stack:r})}catch(t){Z7(t)||e({error:t.message})}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 o.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 o.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 Z7(e){let t=e?.code;return t===`TIMEOUT`||t===408||/\bRequest timeout after \d+ms\b/.test(e?.message??``)}function Q7(e,t,n,r){let i=e[t];return i?{...e,[t]:i.map(e=>e.name===n?{...e,status:r}:e)}:e}var $7=()=>X7(e=>e.activeProject);function e9(){return X7(eoe(e=>(e.activeProject?e.stacksByProject[e.activeProject]:void 0)??noe))}var noe=[];function roe({children:e}){return $7()?(0,z.jsx)(z.Fragment,{children:e}):(0,z.jsx)(Gt,{to:`/`,replace:!0})}var ioe={STARTED:`app.started`,STOPPED:`app.stopped`,CRASHED:`app.crashed`,RESTARTING:`app.restarting`,SCALED:`app.scaled`,HEALTH_CHANGED:`app.health_changed`},aoe={READY:`infra.ready`,DEGRADED:`infra.degraded`,FAILED:`infra.failed`,SERVICE_UP:`infra.service_up`,SERVICE_DOWN:`infra.service_down`,SERVICE_RESTARTED:`infra.service_restarted`},ooe={FIRED:`alert.fired`,RESOLVED:`alert.resolved`,ACKNOWLEDGED:`alert.acknowledged`},soe={COLLECTED:`metrics.collected`},coe={ADDED:`project.added`,REMOVED:`project.removed`,CONFIG_RELOADED:`project.config_reloaded`},loe={STARTING:`stack.starting`,STARTED:`stack.started`,STOPPING:`stack.stopping`,STOPPED:`stack.stopped`,ERROR:`stack.error`,INFRA_READY:`stack.infra_ready`,SYNC_COMPLETED:`stack.sync_completed`,SYNC_FAILED:`stack.sync_failed`,DEPLOY_PROGRESS:`stack.deploy_progress`,NODE_CONNECTED:`stack.node_connected`,NODE_DISCONNECTED:`stack.node_disconnected`},uoe={STATUS_UPDATED:`node.status_updated`,WENT_ONLINE:`node.went_online`,WENT_OFFLINE:`node.went_offline`,WENT_DEGRADED:`node.went_degraded`,CHECK_COMPLETED:`node.check_completed`},doe={STARTED:`daemon.started`,STOPPING:`daemon.stopping`,CONFIG_RELOADED:`daemon.config_reloaded`};[...Object.values(ioe),...Object.values(aoe),...Object.values(ooe),...Object.values(soe),...Object.values(coe),...Object.values(loe),...Object.values(uoe),...Object.values(doe)];var foe=[`app.*`,`infra.*`,`alert.*`,`metrics.collected`,`project.*`,`stack.*`,`node.*`,`daemon.*`];function poe(e){return`${e.protocol===`https:`?`wss:`:`ws:`}//${e.host}/ws`}var moe=class{options;socket=null;eventListeners=new Map;connectionListeners=new Set;_connected=!1;constructor(e={}){this.options=e}get connected(){return this._connected}connect(){if(this.socket)return;let e=this.options.url??poe(window.location),t=this.options.socket?.(e)??new a({url:e,reconnect:!0,maxReconnectAttempts:1/0});this.socket=t,t.onTask(`emit`,(e,t)=>{e===`omnitron:event`&&this.dispatchEvent(t)}),t.on(`disconnect`,()=>this.setConnected(!1)),t.on(`reconnect`,()=>void this.handshake(t)),t.connect().then(()=>this.handshake(t)).catch(()=>this.setConnected(!1))}disconnect(){let e=this.socket;this.socket=null,this.setConnected(!1),e?.disconnect().catch(()=>void 0)}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)}async handshake(e){let t=(this.options.token??l)();if(!t||e!==this.socket)return this.setConnected(!1);try{if(!(await e.runTask(`authenticate`,{token:t}))?.success)return this.setConnected(!1);await e.invoke(`OmnitronEvents`,`subscribe`,[{channels:this.options.channels??foe}]),e===this.socket&&this.setConnected(!0)}catch{this.setConnected(!1)}}setConnected(e){if(this._connected!==e){this._connected=e;for(let t of this.connectionListeners)try{t(e)}catch{}}}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)}}},t9=null;function hoe(){return t9||=new moe,t9}var goe=3e4;function n9(e,t){return e.filter(e=>t-e.receivedAt<goe||e.status!==`success`&&e.status!==`failed`)}var r9=0,i9=null;function a9(){let e=!1;return()=>{e||(e=!0,--r9,r9===0&&i9&&(i9(),i9=null))}}var o9=kA((e,t)=>({connected:!1,appEvents:[],infraEvents:[],alerts:[],lastMetricsUpdate:0,lastEvent:null,lastNodeEvent:null,deployProgress:[],activeDeployProgress:()=>n9(t().deployProgress,Date.now()),initialize:()=>{if(r9+=1,i9)return a9();let t=hoe(),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=>{let r=Date.now();return{deployProgress:[...n9(e.deployProgress.filter(e=>e.node!==n.node||e.app!==n.app),r),{...n,timestamp:t.timestamp,receivedAt:r}],lastEvent:t}})}else e({lastEvent:t})})),n.push(t.on(`node.*`,t=>{e({lastNodeEvent:t,lastEvent:t})})),n.push(t.on(`daemon.*`,t=>{e({lastEvent:t})})),t.connect(),i9=()=>{for(let e of n)e();t.disconnect()},a9()}})),_oe=e=>e?.message??`Request failed`,voe=class{options;state={data:null,error:null,loading:!0};inFlight=!1;stopped=!1;describeError;constructor(e){this.options=e,this.describeError=e.describeError??_oe}get current(){return this.state}get busy(){return this.inFlight}async tick(){if(this.inFlight||this.stopped)return!1;this.inFlight=!0;try{let e=await this.options.fetcher();if(this.stopped)return!0;this.emit({data:e,error:null,loading:!1})}catch(e){if(this.stopped)return!0;this.emit({data:this.state.data,error:this.describeError(e),loading:!1})}finally{this.inFlight=!1}return!0}stop(){this.stopped=!0}resume(){this.stopped=!1}emit(e){this.state=e,this.options.onState(e)}};function s9(){return typeof document>`u`||document.visibilityState!==`hidden`}function c9(e,{intervalMs:t,enabled:n=!0,pauseWhileHidden:r=!0}){let i=(0,S.useRef)(e);i.current=e,(0,S.useEffect)(()=>{if(!n)return;let e=null,a=()=>{e===null&&(i.current(),e=setInterval(()=>i.current(),t))},o=()=>{e!==null&&(clearInterval(e),e=null)};if(!r)return a(),o;let s=()=>s9()?a():o();return s9()&&a(),typeof document<`u`&&document.addEventListener(`visibilitychange`,s),()=>{typeof document<`u`&&document.removeEventListener(`visibilitychange`,s),o()}},[t,n,r])}function l9(e,{intervalMs:t,enabled:n=!0,describeError:r,pauseWhileHidden:i=!0}){let[a,o]=(0,S.useState)({data:null,error:null,loading:!0}),s=(0,S.useRef)(e);s.current=e;let c=(0,S.useRef)(r);c.current=r;let l=(0,S.useMemo)(()=>new voe({fetcher:()=>s.current(),onState:o,...c.current&&{describeError:e=>c.current(e)}}),[]);(0,S.useEffect)(()=>(l.resume(),()=>l.stop()),[l]),c9(()=>void l.tick(),{intervalMs:t,enabled:n,pauseWhileHidden:i});let u=(0,S.useCallback)(async()=>{await l.tick()},[l]);return{...a,refresh:u}}var u9=e=>e.stackType===`local`,yoe=e=>`/apps/${encodeURIComponent(e.handleKey)}`,d9=(e,t)=>t?e.filter(e=>e.stack===t):e;function boe(e,t,n){return e.includes(`/`)||!t||!n?e:`${t}/${n}/${e}`}var f9=e=>({appsOnline:e.filter(e=>e.status===`online`).length,appsTotal:e.length});function p9(e,t,n,r){return e?r.status===`fulfilled`&&r.value?d9(r.value,t):null:n?.apps??[]}function xoe(e,t,n,r){let i=e=>({status:e.status,pid:e.pid,uptime:e.uptime,cpu:e.cpu,memory:e.memory,restarts:e.restarts});if(!e)return r.map(e=>{let t=e.name.split(`/`);return{...i(e),key:e.name,name:t[t.length-1],stack:t.length>=3?t[1]:null,remote:!1,...e.processes?{processes:e.processes}:{}}});if(!n)return null;let a=new Map(r.map(e=>[e.name,e]));return d9(n,t).map(e=>{let t=u9(e)?a.get(e.handleKey):void 0;return{...i(e),key:u9(e)?e.handleKey:`${e.stack}/${e.name}`,name:e.name,stack:e.stack,remote:!u9(e),...t?.processes?{processes:t.processes}:{}}})}var Soe=e=>e?.traffic===`measured`?e:null,Coe=({latency:e,held:t})=>{let n=e?`p50 ${Math.round(e.p50)} ms · ${e.count} finished in the last ${Math.round(e.windowMs/1e3)} s`:`nothing finished in its window`;return t?`${n} · long polls excluded`:n},woe=({held:e})=>e?`since the process started · ${e} of them long polls`:`since the process started`,Toe=(e,t)=>{if(t&&!Array.isArray(t.pools))return(e.processes?.length??0)>1?e.processes.find(e=>e.pid===t.pid):void 0};function m9({color:e,pulse:t}){return(0,z.jsx)(Z,{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 Eoe(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 h9({children:e}){return(0,z.jsx)(Z,{sx:{display:`flex`,alignItems:`center`,gap:.5},children:e})}function g9({children:e,highlight:t}){return(0,z.jsx)(oy,{variant:`caption`,sx:{fontSize:`inherit`,color:t?`#e4e4e7`:`text.secondary`,fontWeight:t?600:400},children:e})}function _9({label:e,value:t}){return(0,z.jsxs)(g9,{children:[e,` `,(0,z.jsx)(`span`,{style:{color:`#e4e4e7`,fontWeight:600},children:t})]})}function Doe(){let[e,t]=(0,S.useState)(null),n=(0,S.useRef)({nodesOnline:0,nodesTotal:0,firingAlerts:0,appsOnline:0,appsTotal:0}),r=o9(e=>e.connected),i=o9(e=>e.lastEvent),a=X7(e=>e.activeProject),s=X7(e=>e.activeStack),c=(0,S.useRef)({project:a,stack:s});c.current={project:a,stack:s};let{data:l,refresh:d}=l9(async()=>{let[e,t,r,i]=await Promise.allSettled([f.status(),a?o.getProjectApps({project:a}):Promise.resolve(null),u.listNodes(),p.getSummary()]),c=e.status===`fulfilled`?e.value:null,l=r.status===`fulfilled`?r.value:[],d=i.status===`fulfilled`?i.value:null,m=p9(a,s,c,t);return m&&Object.assign(n.current,f9(m)),r.status===`fulfilled`&&Array.isArray(l)&&(n.current.nodesOnline=l.filter(e=>e.status?.omnitronConnected).length,n.current.nodesTotal=l.length),i.status===`fulfilled`&&(n.current.firingAlerts=d?.firing??0),{daemonOnline:!!c,appsOnline:n.current.appsOnline,appsTotal:n.current.appsTotal,nodesOnline:n.current.nodesOnline,nodesTotal:n.current.nodesTotal,firingAlerts:n.current.firingAlerts,uptimeMs:c?.uptime??0,version:c?.version??``,pid:c?.pid??0,lastFetch:Date.now()}},{intervalMs:r?3e4:1e4});return(0,S.useEffect)(()=>{l&&t(l)},[l]),(0,S.useEffect)(()=>{d()},[a,s,d]),(0,S.useEffect)(()=>{if(!i)return;let e=i.channel;if(!(e.startsWith(`app.`)||e.startsWith(`alert.`)||e.startsWith(`daemon.`)||e.startsWith(`stack.`)))return;let{project:r,stack:a}=c.current;(async()=>{let[i,s,c]=await Promise.allSettled([f.status(),r?o.getProjectApps({project:r}):Promise.resolve(null),e.startsWith(`alert.`)?p.getSummary():Promise.resolve(null)]);if(c.status===`fulfilled`&&c.value&&(n.current.firingAlerts=c.value?.firing??0),i.status===`rejected`)return;let l=i.value,u=p9(r,a,l,s);u&&Object.assign(n.current,f9(u)),t(e=>e&&{...e,daemonOnline:!0,appsOnline:n.current.appsOnline,appsTotal:n.current.appsTotal,firingAlerts:n.current.firingAlerts,uptimeMs:l?.uptime??e.uptimeMs,version:l?.version??e.version,pid:l?.pid??e.pid,lastFetch:Date.now()})})()},[i]),e?(0,z.jsxs)(Z,{sx:{position:`fixed`,bottom:0,left:0,right:0,height:28,bgcolor:U(`#0a0a10`,.96),backdropFilter:`blur(12px)`,borderTop:`1px solid`,borderColor:U(`#fff`,.06),display:`flex`,alignItems:`center`,px:2,gap:2.5,zIndex:1300,fontSize:`0.68rem`,userSelect:`none`},children:[(0,z.jsxs)(h9,{children:[(0,z.jsx)(m9,{color:e.daemonOnline?`#22c55e`:`#ef4444`,pulse:e.daemonOnline}),(0,z.jsx)(g9,{highlight:e.daemonOnline,children:e.daemonOnline?`Online`:`Offline`})]}),(0,z.jsx)(Z,{sx:{width:`1px`,height:12,bgcolor:U(`#fff`,.08)}}),(0,z.jsx)(koe,{}),(0,z.jsx)(h9,{children:(0,z.jsx)(_9,{label:`Apps`,value:`${e.appsOnline}/${e.appsTotal}`})}),e.nodesTotal>0&&(0,z.jsx)(h9,{children:(0,z.jsx)(_9,{label:`Nodes`,value:`${e.nodesOnline}/${e.nodesTotal}`})}),e.firingAlerts>0&&(0,z.jsxs)(h9,{children:[(0,z.jsx)(m9,{color:`#ef4444`,pulse:!0}),(0,z.jsxs)(oy,{variant:`caption`,sx:{fontSize:`inherit`,color:`#ef4444`,fontWeight:600},children:[e.firingAlerts,` alert`,e.firingAlerts>1?`s`:``]})]}),(0,z.jsxs)(h9,{children:[(0,z.jsx)(m9,{color:r?`#3b82f6`:`#6b7280`}),(0,z.jsx)(g9,{children:r?`Live`:`Polling`})]}),(0,z.jsx)(Z,{sx:{flex:1}}),e.daemonOnline&&e.uptimeMs>0&&(0,z.jsx)(h9,{children:(0,z.jsx)(_9,{label:`Uptime`,value:Eoe(e.uptimeMs)})}),(0,z.jsx)(Ooe,{serverTimestamp:e.lastFetch}),(0,z.jsx)(Z,{sx:{px:.75,py:.1,borderRadius:.5,border:`1px solid`,borderColor:U(`#fff`,.08),fontSize:`inherit`,color:`text.disabled`,lineHeight:1},children:`⌘K`})]}):null}function Ooe({serverTimestamp:e}){let[t]=(0,S.useState)(()=>e?e-Date.now():0),[n,r]=(0,S.useState)(()=>Date.now()+t);(0,S.useEffect)(()=>{let e=setInterval(()=>r(Date.now()+t),1e3);return()=>clearInterval(e)},[t]);let i=new Date(n),a=String(i.getHours()).padStart(2,`0`),o=String(i.getMinutes()).padStart(2,`0`),s=String(i.getSeconds()).padStart(2,`0`);return(0,z.jsx)(h9,{children:(0,z.jsxs)(g9,{children:[a,`:`,o,`:`,s]})})}function koe(){let e=X7(e=>e.activeProject),t=X7(e=>e.activeStack),n=e9();if(!e)return null;let r=n.filter(e=>e.status===`running`).length;return(0,z.jsx)(h9,{children:(0,z.jsxs)(g9,{children:[(0,z.jsx)(`span`,{style:{color:`#e4e4e7`,fontWeight:600},children:e}),t&&(0,z.jsxs)(`span`,{style:{color:`#60a5fa`},children:[` / `,t]}),r>0&&!t&&(0,z.jsxs)(`span`,{style:{color:`#6b7280`},children:[` (`,r,` stack`,r>1?`s`:``,`)`]})]})})}function v9({size:e=32,sx:t}){return(0,z.jsxs)(Z,{component:`svg`,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 210 210`,sx:{width:e,height:e,flexShrink:0,...t},children:[(0,z.jsx)(`defs`,{children:(0,z.jsxs)(`linearGradient`,{id:`omni-logo-grad`,x1:`105`,y1:`165.47`,x2:`105`,y2:`52.73`,gradientUnits:`userSpaceOnUse`,children:[(0,z.jsx)(`stop`,{offset:`0`,stopColor:`#ff4fff`}),(0,z.jsx)(`stop`,{offset:`0.01`,stopColor:`#ff51fb`}),(0,z.jsx)(`stop`,{offset:`0.29`,stopColor:`#ff75af`}),(0,z.jsx)(`stop`,{offset:`0.53`,stopColor:`#ff9272`}),(0,z.jsx)(`stop`,{offset:`0.73`,stopColor:`#ffa747`}),(0,z.jsx)(`stop`,{offset:`0.89`,stopColor:`#ffb32c`}),(0,z.jsx)(`stop`,{offset:`0.98`,stopColor:`#ffb822`})]})}),(0,z.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 y9=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,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,z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,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,z.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,z.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,z.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,z.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`})]}),b9=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,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,z.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,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M5 22H19`}),(0,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M9 22V18M15 22V18`}),(0,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M9 7V13M12 9.5V13M15 7V13`})]}),x9=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,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,z.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,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M8 7H16M8 11H14M8 15H12`})]}),S9=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M12 2L4 5V11C4 16 7.5 20.3 12 22C16.5 20.3 20 16 20 11V5L12 2Z`}),(0,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12 2L4 5V11C4 16 7.5 20.3 12 22C16.5 20.3 20 16 20 11V5L12 2Z`}),(0,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M9 11.5L11.2 13.7L15.2 9.7`})]}),C9=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,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,z.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,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M7 17V14M12 17V8M17 17V11`})]}),w9=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,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,z.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,z.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,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M12 7V11M12 13.5V13.51`})]}),T9=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,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,z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,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,z.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,z.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,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M6 6H6.01M6 18H6.01`}),(0,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M12 9V15`})]}),E9=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M12 2L3 7V17L12 22L21 17V7L12 2Z`}),(0,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12 2L3 7V17L12 22L21 17V7L12 2Z`}),(0,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12 12L3 7M12 12V22M12 12L21 7`})]}),D9=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,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,z.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,z.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,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M5 19L8 17M7 22L12 17`})]}),O9=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,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,z.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,z.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,z.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,z.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`})]}),Aoe=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,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,z.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,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M17.5 17.5L22 22`})]}),joe=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,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,z.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,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M20 4V10H14`})]}),Moe=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,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,z.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`})]}),Noe=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,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,z.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`})]}),Poe=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,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,z.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,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12 8V4H8`})]}),Foe=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,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,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M15 9L9 15M9 9L15 15`}),(0,z.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`})]}),Ioe=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,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,z.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,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M8 12.5L10.5 15L16 9`})]}),k9=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,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,z.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,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M12 8V16M8 12H16`})]}),Loe=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,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,z.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,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M7 15L10 12L7 9`}),(0,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M13 15H17`})]}),A9=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,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,z.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,z.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,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M12 8H14M14 8V14M8 12V14H14`})]}),j9=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,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,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M3 12H7L9 7L12 17L15 9L17 12H21`})]}),Roe=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,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,z.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,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12 15V19M12 19L14 17M12 19L10 17`})]}),zoe=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,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,z.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,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M3 9H21M9 9V21`}),(0,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M15 13V17M13 15H17`})]}),M9=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,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,z.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,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M4 9H20M4 15H20`}),(0,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M8 5.5H8.01M8 12H8.01M8 18.5H8.01`}),(0,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M14 5.5H16M14 12H16M14 18.5H16`})]}),N9=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,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,z.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,z.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,z.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,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M8 3H16M7 21H17`}),(0,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M9 10H15M9 14H13`})]}),P9=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,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,z.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,z.jsx)(`circle`,{cx:`12`,cy:`13`,r:`2`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,z.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`})]}),Boe=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,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,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M16 8L18 6L16 4`}),(0,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M6 6H18`}),(0,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M8 16L6 18L8 20`}),(0,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M18 18H6`})]}),Voe=e=>e?.open?(0,z.jsxs)(Qm,{...e,children:[(0,z.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,z.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,z.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,z.jsxs)(Qm,{...e,children:[(0,z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M12 14C18 14 22 8 22 8H2C2 8 6 14 12 14Z`}),(0,z.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,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M15 13.5L16.5 16`}),(0,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M20 11L22 13`}),(0,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M2 13L4 11`}),(0,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M9 13.5L7.5 16`})]}),Hoe=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.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,z.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,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M21 5.5H3`}),(0,z.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`})]}),Uoe=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.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,z.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,z.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`})]}),Woe=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.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,z.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,z.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`})]}),Goe=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.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,z.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,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M15.5 15.5L20 20`}),(0,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M8.5 11H13.5M11 8.5V13.5`})]}),Koe=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.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,z.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,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M15.5 15.5L20 20`}),(0,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M8.5 11H13.5`})]}),qoe=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.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,z.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`})]}),Joe=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.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,z.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`})]}),Yoe=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.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,z.jsx)(`path`,{fill:`none`,d:`M12 16.5V14.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,z.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,z.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`})]}),Xoe=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.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,z.jsx)(`path`,{fill:`none`,d:`M12 16.5V14.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,z.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,z.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`})]}),Zoe=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.jsx)(`circle`,{fill:`currentColor`,opacity:`0.4`,cx:`12`,cy:`12`,r:`10`}),(0,z.jsx)(`circle`,{fill:`none`,cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinejoin:`round`})]}),F9=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.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,z.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,z.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,z.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`})]}),I9=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.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,z.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,z.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`})]}),L9=e=>(0,z.jsxs)(Qm,{...e,children:[(0,z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M12 2.5L20.5 7V17L12 21.5L3.5 17V7L12 2.5Z`}),(0,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12 2.5L20.5 7V17L12 21.5L3.5 17V7L12 2.5Z`}),(0,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M3.5 7L12 11.5L20.5 7M12 11.5V21.5`})]});function Qoe(){let{open:e,anchorEl:t,onClose:n,onOpen:r}=aH(),i=yt(),{pathname:a}=gt(),o=X7(e=>e.projects),s=$7(),c=X7(e=>e.selectProject),l=X7(e=>e.deselectProject),u=X7(e=>e.fetchProjects);(0,S.useEffect)(()=>{u()},[u]);let d=(0,S.useCallback)(()=>{let e=l(a);i(e),n()},[l,i,a,n]),f=(0,S.useCallback)(e=>{let t=c(e,a);i(t),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,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(rg,{disableRipple:!0,onClick:r,sx:{py:.5,gap:{xs:.5,sm:1},"&::before":h},children:[(0,z.jsx)(Z,{sx:{width:24,height:24,display:`flex`,alignItems:`center`,justifyContent:`center`},children:m?(0,z.jsx)(F9,{sx:{fontSize:20}}):(0,z.jsx)(I9,{sx:{fontSize:20}})}),(0,z.jsx)(Z,{component:`span`,sx:{typography:`subtitle2`,display:{xs:`none`,sm:`inline-flex`}},children:m?`Omnitron`:p?.displayName??s}),p&&(0,z.jsxs)(XV,{color:p.runningStacks>0?`success`:`default`,sx:{height:22,cursor:`inherit`,display:{xs:`none`,sm:`inline-flex`}},children:[p.runningStacks,`/`,p.totalStacks,` stacks`]}),(0,z.jsx)(Z,{component:`svg`,viewBox:`0 0 16 16`,sx:{width:16,height:16,color:`text.disabled`,flexShrink:0},children:(0,z.jsx)(`path`,{fill:`currentColor`,d:`M11.2 5.6L8 2.4 4.8 5.6m0 4.8L8 13.6l3.2-3.2`})})]}),(0,z.jsxs)(iH,{open:e,anchorEl:t,onClose:n,arrow:{placement:`top-left`},slotProps:{paper:{sx:{mt:.5,ml:-1.55,width:280}}},children:[(0,z.jsx)(Z,{sx:{maxHeight:320,overflow:`auto`},children:(0,z.jsxs)(ED,{children:[(0,z.jsxs)(qD,{selected:m,onClick:d,sx:{height:48,gap:1.5},children:[(0,z.jsx)(F9,{sx:m?_:g}),(0,z.jsxs)(Z,{sx:{flexGrow:1,minWidth:0},children:[(0,z.jsx)(oy,{noWrap:!0,variant:`body2`,sx:{fontWeight:`fontWeightMedium`},children:`Omnitron`}),(0,z.jsx)(oy,{noWrap:!0,variant:`caption`,color:`text.disabled`,children:`System`})]})]}),o.length>0&&(0,z.jsx)(sE,{sx:{my:.5,borderStyle:`dashed`}}),o.map(e=>{let t=e.name===s;return(0,z.jsx)(nk,{title:e.path,placement:`right`,arrow:!0,enterDelay:500,children:(0,z.jsxs)(qD,{selected:t,onClick:()=>f(e.name),sx:{height:48,gap:1.5},children:[(0,z.jsx)(I9,{sx:t?_:g}),(0,z.jsx)(Z,{sx:{flexGrow:1,minWidth:0},children:(0,z.jsx)(oy,{noWrap:!0,variant:`body2`,sx:{fontWeight:`fontWeightMedium`},children:e.displayName})}),(0,z.jsx)(XV,{color:e.runningStacks>0?`success`:`default`,children:e.runningStacks>0?`${e.runningStacks} live`:`idle`})]})},e.name)})]})}),(0,z.jsx)(sE,{sx:{my:.5,borderStyle:`dashed`}}),(0,z.jsx)(ev,{fullWidth:!0,startIcon:(0,z.jsx)(k9,{sx:{fontSize:18}}),onClick:n,sx:{gap:2,justifyContent:`flex-start`,fontWeight:`fontWeightMedium`,[`& .${W_.startIcon}`]:{m:0,width:24,height:24,display:`flex`,alignItems:`center`,justifyContent:`center`}},children:`Add project`})]})]})}function R9(e,t,n){let r=n.primary,i=r?`${r.filePath??`unknown`}:${r.lineNumber??`?`}${r.functionName?` (${r.functionName})`:``}`:`unknown location`;console.error(`[omnitron-console] crashed at ${i}: ${e.message}`,{error:e,componentStack:t.componentStack})}var $oe=[/^app\.(\*|[\w-]+)\.status\s*(!=|==)\s*(\w+)$/,/^app\.(\*|[\w-]+)\.(cpu|memory)\s*(>|<|>=|<=)\s*(\d+)$/,/^infra\.(\*|[\w-]+)\.health\s*(!=|==)\s*(\w+)$/,/^host\.disk\.free\s*(>|<|>=|<=)\s*(\d+)$/],z9=`app.<name|*>.status != <status> · app.<name|*>.<cpu|memory> <op> <number> · infra.<name|*>.health != <status> · host.disk.free <op> <bytes>`;function ese(e){let t=e.trim();return $oe.some(e=>e.test(t))}var B9=[`info`,`warning`,`critical`];function V9(e){return B9.indexOf(e)}var H9={name:100,expression:200,summary:500,forDuration:86400};function tse(e,t){let n=typeof e==`object`&&e?e:{},r={},i=[],a=e=>n[e]!==void 0;if(a(`name`)||!t){let e=typeof n.name==`string`?n.name.trim():``;e.length===0||e.length>H9.name?i.push(`name: 1 to ${H9.name} characters`):r.name=e}if(a(`expression`)||!t){let e=typeof n.expression==`string`?n.expression.trim():``;e.length>H9.expression||!ese(e)?i.push(`expression: not one the evaluator reads — ${z9}`):r.expression=e}if(a(`severity`)||!t){let e=n.severity;typeof e!=`string`||V9(e)<0?i.push(`severity: one of ${B9.join(`, `)}`):r.severity=e}if(a(`forDuration`)){let e=n.forDuration;e===null?r.forDuration=null:typeof e!=`number`||!Number.isInteger(e)||e<0||e>H9.forDuration?i.push(`forDuration: whole seconds from 0 to ${H9.forDuration}, or null`):r.forDuration=e===0?null:e}else t||(r.forDuration=null);if(a(`summary`)){let e=n.summary;e===null||typeof e==`string`&&e.trim()===``?r.summary=null:typeof e!=`string`||e.trim().length>H9.summary?i.push(`summary: at most ${H9.summary} characters`):r.summary=e.trim()}else t||(r.summary=null);return a(`enabled`)?typeof n.enabled==`boolean`?r.enabled=n.enabled:i.push(`enabled: true or false`):t||(r.enabled=!0),{fields:r,problems:i}}var U9=`omnitron_desktop_notifications`,W9=`omnitron_sound_alerts`,G9=`omnitron_alert_severity`,nse=`warning`;function K9(e,t){let n=z7(e);return n===null?t:n===`true`}function rse(e,t){B7(e,String(t))}function q9(){let e=z7(G9);return e!==null&&B9.includes(e)?e:nse}function ise(){return{desktop:K9(U9,!1),sound:K9(W9,!0),minSeverity:q9()}}function ase(e,t,n){let r=t.filter(t=>!e.has(t.id));for(let n of t)e.add(n.id);return r.filter(e=>V9(e.severity)>=V9(n))}function ose(){try{let e=new AudioContext,t=e.createOscillator(),n=e.createGain();t.frequency.value=880,n.gain.setValueAtTime(.15,e.currentTime),n.gain.exponentialRampToValueAtTime(1e-4,e.currentTime+.4),t.connect(n).connect(e.destination),t.start(),t.stop(e.currentTime+.4),t.onended=()=>void e.close()}catch{}}function sse(e){let t=(0,S.useRef)(null),{data:n}=l9(()=>p.getActiveAlerts(),{intervalMs:15e3,enabled:e,pauseWhileHidden:!1});(0,S.useEffect)(()=>{if(!n)return;if(t.current===null){t.current=new Set(n.map(e=>e.id));return}let e=ise(),r=ase(t.current,n,e.minSeverity);if(r.length!==0){if(e.desktop&&typeof Notification<`u`&&Notification.permission===`granted`)for(let e of r)new Notification(`${e.severity.toUpperCase()} · ${e.ruleName}`,{body:e.node?`${e.message} — ${e.node}`:e.message,tag:e.id});e.sound&&ose()}},[n])}function cse(){let e=$7();return(0,S.useMemo)(()=>e?[{id:`overview`,subheader:`Overview`,items:[{id:`dashboard`,title:`Dashboard`,path:`/`,icon:(0,z.jsx)(y9,{})},{id:`apps`,title:`Applications`,path:`/apps`,icon:(0,z.jsx)(b9,{}),selectionPrefix:`/apps`}]},{id:`observability`,subheader:`Observability`,items:[{id:`logs`,title:`Logs`,path:`/logs`,icon:(0,z.jsx)(x9,{})},{id:`metrics`,title:`Metrics`,path:`/metrics`,icon:(0,z.jsx)(C9,{})},{id:`traces`,title:`Traces`,path:`/traces`,icon:(0,z.jsx)(j9,{})},{id:`alerts`,title:`Alerts`,path:`/alerts`,icon:(0,z.jsx)(w9,{})}]},{id:`infrastructure`,subheader:`Infrastructure`,items:[{id:`stacks`,title:`Stacks`,path:`/stacks`,icon:(0,z.jsx)(N9,{}),selectionPrefix:`/stacks`},{id:`releases`,title:`Releases`,path:`/releases`,icon:(0,z.jsx)(L9,{}),selectionPrefix:`/releases`},{id:`topology`,title:`Topology`,path:`/topology`,icon:(0,z.jsx)(T9,{})},{id:`containers`,title:`Containers`,path:`/containers`,icon:(0,z.jsx)(E9,{})},{id:`deployments`,title:`Deployments`,path:`/deployments`,icon:(0,z.jsx)(D9,{})},{id:`pipelines`,title:`Pipelines`,path:`/pipelines`,icon:(0,z.jsx)(A9,{}),selectionPrefix:`/pipelines`}]},{id:`system`,subheader:`System`,items:[{id:`dashboard-builder`,title:`Dashboard Builder`,path:`/dashboard-builder`,icon:(0,z.jsx)(zoe,{})},{id:`settings`,title:`Settings`,path:`/settings`,icon:(0,z.jsx)(O9,{})},{id:`audit`,title:`Audit`,path:`/audit`,icon:(0,z.jsx)(S9,{})},{id:`system-info`,title:`System Info`,path:`/system`,icon:(0,z.jsx)(M9,{})}]}]:[{id:`overview`,subheader:`Overview`,items:[{id:`dashboard`,title:`Dashboard`,path:`/`,icon:(0,z.jsx)(y9,{})}]},{id:`observability`,subheader:`Observability`,items:[{id:`logs`,title:`Logs`,path:`/logs`,icon:(0,z.jsx)(x9,{})}]},{id:`infrastructure`,subheader:`Infrastructure`,items:[{id:`projects`,title:`Projects`,path:`/projects`,icon:(0,z.jsx)(P9,{})},{id:`nodes`,title:`Nodes`,path:`/nodes`,icon:(0,z.jsx)(T9,{})},{id:`releases`,title:`Releases`,path:`/releases`,icon:(0,z.jsx)(L9,{}),selectionPrefix:`/releases`}]},{id:`system`,subheader:`System`,items:[{id:`settings`,title:`Settings`,path:`/settings`,icon:(0,z.jsx)(O9,{})},{id:`audit`,title:`Audit`,path:`/audit`,icon:(0,z.jsx)(S9,{})},{id:`system-info`,title:`System Info`,path:`/system`,icon:(0,z.jsx)(M9,{})}]}],[e])}function lse(){let{sidenavCollapsed:e,sidenavVariant:t}=d7();return(0,z.jsxs)(rk,{direction:`row`,spacing:1,sx:{alignItems:`center`},children:[(0,z.jsx)(v9,{size:48}),!e&&t!==`mini`&&(0,z.jsx)(oy,{variant:`subtitle1`,noWrap:!0,sx:{fontWeight:800,letterSpacing:2,textTransform:`uppercase`,fontSize:`0.85rem`},children:`Omnitron`})]})}function use({mode:e}){return e===`dark`?(0,z.jsxs)(Z,{component:`svg`,viewBox:`0 0 24 24`,sx:{width:20,height:20},children:[(0,z.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,z.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,z.jsxs)(Z,{component:`svg`,viewBox:`0 0 24 24`,sx:{width:20,height:20},children:[(0,z.jsx)(`circle`,{fill:`currentColor`,opacity:`0.4`,cx:`12`,cy:`12`,r:`5`}),(0,z.jsx)(`circle`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,cx:`12`,cy:`12`,r:`5`}),(0,z.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,z.jsxs)(Z,{component:`svg`,viewBox:`0 0 24 24`,sx:{width:20,height:20},children:[(0,z.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,z.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,z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M2 12H22`})]})}var J9={p:.75,transition:`transform 0.2s ease`,"&:hover":{transform:`scale(1.1)`,bgcolor:`transparent`}};function dse(){let e=F7(e=>e.signOut),{setMode:t}=Ow(),n=vM(e=>e.mode);return(0,z.jsxs)(rk,{direction:`row`,spacing:.5,sx:{alignItems:`center`},children:[(0,z.jsx)(nk,{title:n===`light`?`Dark mode`:n===`dark`?`System mode`:`Light mode`,children:(0,z.jsx)(mg,{disableRipple:!0,onClick:()=>{let e=[`light`,`dark`,`system`],r=e.indexOf(n);t(e[(r+1)%e.length])},sx:J9,children:(0,z.jsx)(use,{mode:n})})}),(0,z.jsx)(nk,{title:`Sign out`,children:(0,z.jsx)(mg,{disableRipple:!0,onClick:()=>e(),sx:J9,children:(0,z.jsx)(Woe,{sx:{fontSize:20}})})})]})}function fse(){let e=cse();return sse(F7(e=>!!e.user)),(0,z.jsxs)(Cae,{logo:(0,z.jsx)(lse,{}),navData:e,persistKey:`console`,initialConfig:{navigationMenuType:`sidenav`,sidenavVariant:`default`,navColor:`default`},headerSlots:{leftArea:(0,z.jsx)(Qoe,{}),rightArea:(0,z.jsx)(dse,{})},slotProps:{main:{sx:{pb:{xs:6,sm:7,md:8}}}},children:[(0,z.jsx)(LH,{showDetails:!0,onError:R9,children:(0,z.jsx)(S.Suspense,{fallback:(0,z.jsx)(eH,{variant:`linear`,message:`Loading…`}),children:(0,z.jsx)(Kt,{})})}),(0,z.jsx)(Doe,{})]})}function pse(){return(0,z.jsx)(Dae,{maxWidth:460,children:(0,z.jsx)(S.Suspense,{fallback:(0,z.jsx)(eH,{message:`Loading sign-in…`}),children:(0,z.jsx)(Kt,{})})})}var mse=(0,S.lazy)(()=>D(()=>import(`./sign-in-Bcvjrr4C.js`),__vite__mapDeps([4,1,2]))),hse=(0,S.lazy)(()=>D(()=>import(`./dashboard-Cfuf95N3.js`),__vite__mapDeps([5,1,2,6,7,8,9]))),gse=(0,S.lazy)(()=>D(()=>import(`./apps-B_Ah8Flh.js`),__vite__mapDeps([10,1,2,7,8,11,9]))),_se=(0,S.lazy)(()=>D(()=>import(`./detail-D027j6aO.js`),__vite__mapDeps([12,1,2,7,8,0,11,9]))),vse=(0,S.lazy)(()=>D(()=>import(`./logs-L2b8Oqmo.js`),__vite__mapDeps([13,1,2,7,11,9]))),yse=(0,S.lazy)(()=>D(()=>import(`./topology-Cwch-uF1.js`),__vite__mapDeps([14,1,2,7,8,11,9,15]))),bse=(0,S.lazy)(()=>D(()=>import(`./alerts-sXqHJbsa.js`),__vite__mapDeps([16,1,2,6,17,18,7,8,19]))),xse=(0,S.lazy)(()=>D(()=>import(`./containers-Di4NOTLf.js`),__vite__mapDeps([20,1,2,6,7,9]))),Sse=(0,S.lazy)(()=>D(()=>import(`./deployments-ChTq5kCw.js`),__vite__mapDeps([21,1,2,7,8,19]))),Cse=(0,S.lazy)(()=>D(()=>import(`./metrics-CQgjz2Lz.js`),__vite__mapDeps([22,1,2,6,18,7,0,9]))),wse=(0,S.lazy)(()=>D(()=>import(`./settings-DU-mjiwb.js`),__vite__mapDeps([23,1,2,17,18,7,8]))),Tse=(0,S.lazy)(()=>D(()=>import(`./pipelines-DCu_rXOr.js`),__vite__mapDeps([24,1,2,7,8,19]))),Ese=(0,S.lazy)(()=>D(()=>import(`./traces-BbShR-4P.js`),__vite__mapDeps([25,1,2,6,7,8]))),Dse=(0,S.lazy)(()=>D(()=>import(`./dashboard-builder-CowaYb-M.js`),__vite__mapDeps([26,1,2,6,18,7,8,0,27]))),Ose=(0,S.lazy)(()=>D(()=>import(`./stacks-B-e8p50I.js`),__vite__mapDeps([28,1,2,6,17,7,8,29,30,31]))),kse=(0,S.lazy)(()=>D(()=>import(`./detail-BsGWv7Dj.js`),__vite__mapDeps([32,1,2,8,30,29,7,31]))),Ase=(0,S.lazy)(()=>D(()=>import(`./system-info-BtE3dgfw.js`),__vite__mapDeps([33,6,1,2,7,8]))),jse=(0,S.lazy)(()=>D(()=>import(`./nodes-Nwia2Ty6.js`),__vite__mapDeps([34,1,2,6,7,27,30]))),Mse=(0,S.lazy)(()=>D(()=>import(`./projects-Bb4aV76h.js`),__vite__mapDeps([35,1,2,6,8]))),Nse=(0,S.lazy)(()=>D(()=>import(`./audit-YXihwyui.js`),__vite__mapDeps([36,1,2,7]))),Pse=(0,S.lazy)(()=>D(()=>import(`./releases-CnAt3yO6.js`),__vite__mapDeps([37,1,2,17,18,7,30,29,38]))),Fse=(0,S.lazy)(()=>D(()=>import(`./detail-CyVf_cw5.js`),__vite__mapDeps([39,1,2,6,7,30,29,38])));function Ise(){return(0,z.jsxs)(Yt,{children:[(0,z.jsx)(qt,{element:(0,z.jsx)(Zae,{children:(0,z.jsx)(pse,{})}),children:(0,z.jsx)(qt,{path:`/auth/sign-in`,element:(0,z.jsx)(Y9,{children:(0,z.jsx)(mse,{})})})}),(0,z.jsxs)(qt,{element:(0,z.jsx)(Xae,{children:(0,z.jsx)(fse,{})}),children:[(0,z.jsx)(qt,{index:!0,element:(0,z.jsx)(Y9,{children:(0,z.jsx)(hse,{})})}),(0,z.jsx)(qt,{path:`nodes`,element:(0,z.jsx)(Y9,{children:(0,z.jsx)(jse,{})})}),(0,z.jsx)(qt,{path:`projects`,element:(0,z.jsx)(Y9,{children:(0,z.jsx)(Mse,{})})}),(0,z.jsx)(qt,{path:`system`,element:(0,z.jsx)(Y9,{children:(0,z.jsx)(Ase,{})})}),(0,z.jsx)(qt,{path:`settings`,element:(0,z.jsx)(Y9,{children:(0,z.jsx)(wse,{})})}),(0,z.jsx)(qt,{path:`logs`,element:(0,z.jsx)(Y9,{children:(0,z.jsx)(vse,{})})}),(0,z.jsx)(qt,{path:`audit`,element:(0,z.jsx)(Y9,{children:(0,z.jsx)(Nse,{})})}),(0,z.jsx)(qt,{path:`releases`,element:(0,z.jsx)(Y9,{children:(0,z.jsx)(Pse,{})})}),(0,z.jsx)(qt,{path:`releases/:id`,element:(0,z.jsx)(Y9,{children:(0,z.jsx)(Fse,{})})}),(0,z.jsx)(qt,{path:`apps`,element:(0,z.jsx)(X9,{children:(0,z.jsx)(gse,{})})}),(0,z.jsx)(qt,{path:`apps/:name`,element:(0,z.jsx)(X9,{children:(0,z.jsx)(_se,{})})}),(0,z.jsx)(qt,{path:`stacks`,element:(0,z.jsx)(X9,{children:(0,z.jsx)(Ose,{})})}),(0,z.jsx)(qt,{path:`stacks/:name`,element:(0,z.jsx)(X9,{children:(0,z.jsx)(kse,{})})}),(0,z.jsx)(qt,{path:`metrics`,element:(0,z.jsx)(X9,{children:(0,z.jsx)(Cse,{})})}),(0,z.jsx)(qt,{path:`topology`,element:(0,z.jsx)(X9,{children:(0,z.jsx)(yse,{})})}),(0,z.jsx)(qt,{path:`containers`,element:(0,z.jsx)(X9,{children:(0,z.jsx)(xse,{})})}),(0,z.jsx)(qt,{path:`deployments`,element:(0,z.jsx)(X9,{children:(0,z.jsx)(Sse,{})})}),(0,z.jsx)(qt,{path:`alerts`,element:(0,z.jsx)(X9,{children:(0,z.jsx)(bse,{})})}),(0,z.jsx)(qt,{path:`pipelines`,element:(0,z.jsx)(X9,{children:(0,z.jsx)(Tse,{})})}),(0,z.jsx)(qt,{path:`traces`,element:(0,z.jsx)(X9,{children:(0,z.jsx)(Ese,{})})}),(0,z.jsx)(qt,{path:`dashboard-builder`,element:(0,z.jsx)(X9,{children:(0,z.jsx)(Dse,{})})})]}),(0,z.jsx)(qt,{path:`*`,element:(0,z.jsx)(Gt,{to:`/`,replace:!0})})]})}function Y9({children:e}){return(0,z.jsx)(S.Suspense,{fallback:(0,z.jsx)(QV,{}),children:e})}function X9({children:e}){return(0,z.jsx)(S.Suspense,{fallback:(0,z.jsx)(QV,{}),children:(0,z.jsx)(roe,{children:e})})}var Lse=[{id:`nav-dashboard`,title:`Dashboard`,icon:y9,target:`/`,keywords:[`home`,`overview`],group:`Navigation`},{id:`nav-apps`,title:`Applications`,icon:b9,target:`/apps`,keywords:[`processes`,`services`],group:`Navigation`},{id:`nav-stacks`,title:`Stacks`,icon:N9,target:`/stacks`,keywords:[`environments`,`dev`,`prod`,`test`,`deploy`,`cluster`,`remote`],group:`Navigation`},{id:`nav-logs`,title:`Logs`,icon:x9,target:`/logs`,keywords:[`terminal`,`output`,`stream`],group:`Navigation`},{id:`nav-metrics`,title:`Metrics`,icon:C9,target:`/metrics`,keywords:[`charts`,`cpu`,`memory`,`performance`],group:`Navigation`},{id:`nav-alerts`,title:`Alerts`,icon:w9,target:`/alerts`,keywords:[`rules`,`notifications`,`warnings`],group:`Navigation`},{id:`nav-topology`,title:`Topology`,icon:T9,target:`/topology`,keywords:[`nodes`,`fleet`,`servers`,`infrastructure`],group:`Navigation`},{id:`nav-containers`,title:`Containers`,icon:E9,target:`/containers`,keywords:[`docker`,`images`],group:`Navigation`},{id:`nav-deployments`,title:`Deployments`,icon:D9,target:`/deployments`,keywords:[`deploy`,`rollback`,`releases`],group:`Navigation`},{id:`nav-settings`,title:`Settings`,icon:O9,target:`/settings`,keywords:[`profile`,`password`,`sessions`],group:`Navigation`},{id:`nav-pipelines`,title:`Pipelines`,target:`/pipelines`,keywords:[`ci`,`cd`,`jobs`,`workflow`],group:`Navigation`},{id:`nav-traces`,title:`Traces`,target:`/traces`,keywords:[`spans`,`distributed`,`tracing`],group:`Navigation`},{id:`act-logs-error`,title:`View error logs`,icon:x9,target:`/logs?level=error`,keywords:[`errors`,`failures`],group:`Quick Actions`},{id:`act-logs-live`,title:`Live log stream`,icon:x9,target:`/logs?live=true`,keywords:[`tail`,`stream`,`follow`],group:`Quick Actions`}];function Rse(){let e=yt(),t=(0,S.useMemo)(()=>Lse.map(t=>{let n=t.icon;return{id:t.id,title:t.title,...t.subtitle!==void 0&&{subtitle:t.subtitle},group:t.group,keywords:t.keywords,...n&&{icon:(0,z.jsx)(n,{})},onSelect:()=>e(t.target)}}),[e]);return(0,z.jsx)(gH,{actions:t,placeholder:`Search pages and actions…`,emptyMessage:`No matching command`})}function zse(e,t,n){return e===502||e===503?`down`:(t??``).includes(`text/html`)||e<200||e>=300||n===null?`unreachable`:n.status===`online`?`up`:`down`}function Bse(e,t){return e===`up`?{status:`online`,consecutiveUnreachable:0}:e===`down`?{status:`offline`,consecutiveUnreachable:0}:{status:`degraded`,consecutiveUnreachable:t+1}}var Vse=3e4,Hse=15e3;async function Use(){try{let e=new AbortController,t=setTimeout(()=>e.abort(),Hse),n=await fetch(`/api/health`,{signal:e.signal,cache:`no-store`});clearTimeout(t);let r=n.headers.get(`content-type`),i=n.ok?await n.json().catch(()=>null):null;return zse(n.status,r,i)}catch{return`unreachable`}}async function Z9(e,t){let n=Bse(await Use(),t().consecutiveUnreachable);e({status:n.status,consecutiveUnreachable:n.consecutiveUnreachable,lastChecked:Date.now()})}var Q9=kA((e,t)=>({status:`unknown`,lastChecked:null,consecutiveUnreachable:0,probe:async()=>{await Z9(e,t)},startPolling:()=>{Z9(e,t);let n=setInterval(()=>void Z9(e,t),Vse);return()=>clearInterval(n)}})),Wse=()=>Q9(e=>e.status!==`offline`),Gse=()=>Q9(e=>e.status);function Kse(){let e=Gse(),{probe:t,startPolling:n,consecutiveUnreachable:r}=Q9();return(0,S.useEffect)(()=>n(),[n]),(0,z.jsx)(jg,{in:e===`offline`||e===`degraded`,unmountOnExit:!0,children:(0,z.jsx)(zH,{severity:e===`offline`?`error`:`warning`,variant:`filled`,sx:{borderRadius:0,py:.5,"& .MuiAlert-message":{display:`flex`,alignItems:`center`,gap:2,width:`100%`}},action:(0,z.jsx)(ev,{color:`inherit`,size:`small`,onClick:t,sx:{fontWeight:700,whiteSpace:`nowrap`},children:`Retry`}),children:e===`offline`?(0,z.jsxs)(z.Fragment,{children:[`Daemon offline — run `,(0,z.jsx)(`code`,{style:{margin:`0 4px`},children:`omnitron up`}),` to start the backend`]}):(0,z.jsx)(z.Fragment,{children:r>1?`The daemon has not answered ${r} checks — it may be down, or the connection to it may be blocked`:`The daemon did not answer the last check — this view may be out of date`})})})}function qse(){let{pathname:e}=gt(),t=X7(e=>e.saveCurrentRoute);return(0,S.useEffect)(()=>{e.startsWith(`/auth`)||t(e)},[e,t]),(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(Kse,{}),(0,z.jsx)(kH,{pathname:e}),(0,z.jsx)(AH,{pathname:e}),(0,z.jsx)(Rse,{}),(0,z.jsx)(LH,{showDetails:!0,onError:R9,children:(0,z.jsx)(Ise,{})})]})}function Jse(){return(0,z.jsx)(xM,{defaultSettings:{mode:`dark`,preset:`midnight`,direction:`ltr`},children:(0,z.jsx)(RV,{children:(0,z.jsx)(zae,{client:c,autoConnect:!0,children:(0,z.jsx)(uH,{children:(0,z.jsx)(In,{children:(0,z.jsx)(qse,{})})})})})})}var $9=document.getElementById(`root`);if(!$9)throw Error(`Root element not found`);(0,C.createRoot)($9).render((0,z.jsx)(S.StrictMode,{children:(0,z.jsx)(Jse,{})}));export{Toe as $,qi as $n,iE as $t,A9 as A,eg as An,UV as At,Noe as B,Ru as Bn,nk as Bt,Joe as C,Kg as Cn,mH as Ct,x9 as D,mg as Dn,JV as Dt,Xoe as E,X as En,XV as Et,Poe as F,J as Fn,Mk as Ft,Koe as G,Ts as Gn,dD as Gt,Loe as H,Hc as Hn,TO as Ht,Aoe as I,q as In,Ak as It,boe as J,V as Jn,GE as Jt,v9 as K,Ss as Kn,oD as Kt,M9 as L,K as Ln,kk as Lt,k9 as M,lh as Mn,kA as Mt,P9 as N,_d as Nn,bA as Nt,C9 as O,lg as On,KV as Ot,joe as P,Y as Pn,hA as Pt,Coe as Q,ia as Qn,aE as Qt,O9 as R,Uu as Rn,Dk as Rt,Voe as S,W_ as Sn,hH as St,Yoe as T,jg as Tn,QV as Tt,j9 as U,W as Un,qD as Ut,Boe as V,Cl as Vn,WO as Vt,Goe as W,U as Wn,UD as Wt,yoe as X,ns as Xn,hE as Xt,d9 as Y,B as Yn,yE as Yt,u9 as Z,Qo as Zn,sE as Zt,Foe as _,oy as _n,tU as _t,K9 as a,LT as an,D as ar,Z7 as at,D9 as b,K_ as bn,xH as bt,z9 as c,xT as cn,X7 as ct,w9 as d,Py as dn,U7 as dt,rE as en,Ln as er,woe as et,b9 as f,Fy as fn,F7 as ft,Zoe as g,py as gn,rU as gt,F9 as h,hy as hn,nU as ht,W9 as i,RT as in,Un as ir,o9 as it,Moe as j,fh as jn,kM as jt,T9 as k,rg as kn,WV as kt,B9 as l,Vw as ln,H7 as lt,Ioe as m,wy as mn,j7 as mt,G9 as n,tE as nn,yt as nr,l9 as nt,q9 as o,IT as on,y as or,$7 as ot,Roe as p,Ny as pn,Gae as pt,Soe as q,H as qn,QE as qt,U9 as r,BT as rn,Ct as rr,c9 as rt,rse as s,Z as sn,e9 as st,Wse as t,nE as tn,gt as tr,xoe as tt,tse as u,eb as un,B7 as ut,E9 as v,yv as vn,zH as vt,qoe as w,Bg as wn,cH as wt,Uoe as x,G_ as xn,bH as xt,Hoe as y,ev as yn,BH as yt,N9 as z,Bu as zn,rk as zt};