unleash-server 5.1.8 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (485) hide show
  1. package/dist/lib/create-config.js +5 -2
  2. package/dist/lib/create-config.js.map +1 -1
  3. package/dist/lib/db/access-store.d.ts +2 -1
  4. package/dist/lib/db/access-store.js +17 -3
  5. package/dist/lib/db/access-store.js.map +1 -1
  6. package/dist/lib/db/client-metrics-store-v2.js +19 -30
  7. package/dist/lib/db/client-metrics-store-v2.js.map +1 -1
  8. package/dist/lib/db/context-field-store.d.ts +4 -1
  9. package/dist/lib/db/context-field-store.js +44 -14
  10. package/dist/lib/db/context-field-store.js.map +1 -1
  11. package/dist/lib/db/environment-store.d.ts +1 -0
  12. package/dist/lib/db/environment-store.js +6 -0
  13. package/dist/lib/db/environment-store.js.map +1 -1
  14. package/dist/lib/db/event-store.js +2 -1
  15. package/dist/lib/db/event-store.js.map +1 -1
  16. package/dist/lib/db/feature-strategy-store.d.ts +2 -0
  17. package/dist/lib/db/feature-strategy-store.js +25 -0
  18. package/dist/lib/db/feature-strategy-store.js.map +1 -1
  19. package/dist/lib/db/feature-strategy-store.test.js +75 -0
  20. package/dist/lib/db/feature-strategy-store.test.js.map +1 -0
  21. package/dist/lib/db/group-store.d.ts +1 -1
  22. package/dist/lib/db/group-store.js +2 -2
  23. package/dist/lib/db/group-store.js.map +1 -1
  24. package/dist/lib/db/index.js +2 -2
  25. package/dist/lib/db/index.js.map +1 -1
  26. package/dist/lib/db/project-store.js +2 -1
  27. package/dist/lib/db/project-store.js.map +1 -1
  28. package/dist/lib/db/role-store.js +2 -2
  29. package/dist/lib/db/role-store.js.map +1 -1
  30. package/dist/lib/db/segment-store.d.ts +6 -2
  31. package/dist/lib/db/segment-store.js +27 -6
  32. package/dist/lib/db/segment-store.js.map +1 -1
  33. package/dist/lib/error/no-access-error.d.ts +3 -2
  34. package/dist/lib/error/no-access-error.js +10 -4
  35. package/dist/lib/error/no-access-error.js.map +1 -1
  36. package/dist/lib/error/unleash-error.test.js +8 -2
  37. package/dist/lib/error/unleash-error.test.js.map +1 -1
  38. package/dist/lib/features/access/createAccessService.js +5 -5
  39. package/dist/lib/features/access/createAccessService.js.map +1 -1
  40. package/dist/lib/features/export-import-toggles/createExportImportService.js +4 -2
  41. package/dist/lib/features/export-import-toggles/createExportImportService.js.map +1 -1
  42. package/dist/lib/features/export-import-toggles/export-import-api-usage.test.d.ts +1 -0
  43. package/dist/lib/features/export-import-toggles/export-import-api-usage.test.js +69 -0
  44. package/dist/lib/features/export-import-toggles/export-import-api-usage.test.js.map +1 -0
  45. package/dist/lib/features/export-import-toggles/export-import-controller.js +5 -1
  46. package/dist/lib/features/export-import-toggles/export-import-controller.js.map +1 -1
  47. package/dist/lib/features/export-import-toggles/export-import-service.js +7 -2
  48. package/dist/lib/features/export-import-toggles/export-import-service.js.map +1 -1
  49. package/dist/lib/features/feature-toggle/createFeatureToggleService.js +4 -4
  50. package/dist/lib/features/feature-toggle/createFeatureToggleService.js.map +1 -1
  51. package/dist/lib/features/playground/advanced-playground.test.d.ts +1 -0
  52. package/dist/lib/features/playground/advanced-playground.test.js +238 -0
  53. package/dist/lib/features/playground/advanced-playground.test.js.map +1 -0
  54. package/dist/lib/{util → features/playground}/feature-evaluator/client.d.ts +3 -2
  55. package/dist/lib/{util → features/playground}/feature-evaluator/client.js +1 -1
  56. package/dist/lib/features/playground/feature-evaluator/client.js.map +1 -0
  57. package/dist/lib/features/playground/feature-evaluator/constraint.js.map +1 -0
  58. package/dist/lib/features/playground/feature-evaluator/context.js.map +1 -0
  59. package/dist/lib/features/playground/feature-evaluator/feature-evaluator.js.map +1 -0
  60. package/dist/lib/features/playground/feature-evaluator/feature.js.map +1 -0
  61. package/dist/lib/{util → features/playground}/feature-evaluator/helpers.d.ts +1 -1
  62. package/dist/lib/features/playground/feature-evaluator/helpers.js.map +1 -0
  63. package/dist/lib/{util → features/playground}/feature-evaluator/index.d.ts +1 -1
  64. package/dist/lib/{util → features/playground}/feature-evaluator/index.js +2 -2
  65. package/dist/lib/features/playground/feature-evaluator/index.js.map +1 -0
  66. package/dist/lib/features/playground/feature-evaluator/repository/bootstrap-provider.js.map +1 -0
  67. package/dist/lib/features/playground/feature-evaluator/repository/index.js.map +1 -0
  68. package/dist/lib/features/playground/feature-evaluator/repository/storage-provider-in-mem.js.map +1 -0
  69. package/dist/lib/features/playground/feature-evaluator/repository/storage-provider.js.map +1 -0
  70. package/dist/lib/features/playground/feature-evaluator/strategy/application-hostname-strategy.js.map +1 -0
  71. package/dist/lib/features/playground/feature-evaluator/strategy/default-strategy.js.map +1 -0
  72. package/dist/lib/features/playground/feature-evaluator/strategy/flexible-rollout-strategy.js.map +1 -0
  73. package/dist/lib/features/playground/feature-evaluator/strategy/gradual-rollout-random.js.map +1 -0
  74. package/dist/lib/features/playground/feature-evaluator/strategy/gradual-rollout-session-id.js.map +1 -0
  75. package/dist/lib/features/playground/feature-evaluator/strategy/gradual-rollout-user-id.js.map +1 -0
  76. package/dist/lib/features/playground/feature-evaluator/strategy/index.js.map +1 -0
  77. package/dist/lib/features/playground/feature-evaluator/strategy/remote-address-strategy.js.map +1 -0
  78. package/dist/lib/features/playground/feature-evaluator/strategy/strategy.js.map +1 -0
  79. package/dist/lib/{util → features/playground}/feature-evaluator/strategy/unknown-strategy.js +1 -1
  80. package/dist/lib/features/playground/feature-evaluator/strategy/unknown-strategy.js.map +1 -0
  81. package/dist/lib/features/playground/feature-evaluator/strategy/user-with-id-strategy.js.map +1 -0
  82. package/dist/lib/features/playground/feature-evaluator/strategy/util.js.map +1 -0
  83. package/dist/lib/features/playground/feature-evaluator/variant.js.map +1 -0
  84. package/dist/lib/features/playground/generateObjectCombinations.d.ts +7 -0
  85. package/dist/lib/features/playground/generateObjectCombinations.js +16 -0
  86. package/dist/lib/features/playground/generateObjectCombinations.js.map +1 -0
  87. package/dist/lib/features/playground/generateObjectCombinations.test.d.ts +1 -0
  88. package/dist/lib/features/playground/generateObjectCombinations.test.js +33 -0
  89. package/dist/lib/features/playground/generateObjectCombinations.test.js.map +1 -0
  90. package/dist/lib/{util → features/playground}/offline-unleash-client.js +2 -2
  91. package/dist/lib/features/playground/offline-unleash-client.js.map +1 -0
  92. package/dist/lib/{util → features/playground}/offline-unleash-client.test.js +1 -1
  93. package/dist/lib/features/playground/offline-unleash-client.test.js.map +1 -0
  94. package/dist/lib/features/playground/playground-service.d.ts +34 -0
  95. package/dist/lib/features/playground/playground-service.js +114 -0
  96. package/dist/lib/features/playground/playground-service.js.map +1 -0
  97. package/dist/lib/features/playground/playground-view-model.d.ts +4 -0
  98. package/dist/lib/features/playground/playground-view-model.js +49 -0
  99. package/dist/lib/features/playground/playground-view-model.js.map +1 -0
  100. package/dist/lib/features/playground/playground-view-model.test.d.ts +1 -0
  101. package/dist/lib/features/playground/playground-view-model.test.js +122 -0
  102. package/dist/lib/features/playground/playground-view-model.test.js.map +1 -0
  103. package/dist/lib/features/playground/playground.d.ts +16 -0
  104. package/dist/lib/features/playground/playground.js +78 -0
  105. package/dist/lib/features/playground/playground.js.map +1 -0
  106. package/dist/lib/features/playground/playground.test.d.ts +1 -0
  107. package/dist/lib/{routes/admin-api → features/playground}/playground.test.js +3 -2
  108. package/dist/lib/features/playground/playground.test.js.map +1 -0
  109. package/dist/lib/features/playground/validateQueryComplexity.d.ts +1 -0
  110. package/dist/lib/features/playground/validateQueryComplexity.js +15 -0
  111. package/dist/lib/features/playground/validateQueryComplexity.js.map +1 -0
  112. package/dist/lib/features/playground/validateQueryComplexity.test.d.ts +1 -0
  113. package/dist/lib/features/playground/validateQueryComplexity.test.js +19 -0
  114. package/dist/lib/features/playground/validateQueryComplexity.test.js.map +1 -0
  115. package/dist/lib/middleware/rbac-middleware.d.ts +1 -1
  116. package/dist/lib/middleware/rbac-middleware.js +7 -4
  117. package/dist/lib/middleware/rbac-middleware.js.map +1 -1
  118. package/dist/lib/middleware/rbac-middleware.test.js +8 -8
  119. package/dist/lib/middleware/rbac-middleware.test.js.map +1 -1
  120. package/dist/lib/openapi/endpoint-descriptions.d.ts +4 -0
  121. package/dist/lib/openapi/endpoint-descriptions.js +4 -0
  122. package/dist/lib/openapi/endpoint-descriptions.js.map +1 -1
  123. package/dist/lib/openapi/index.js +7 -0
  124. package/dist/lib/openapi/index.js.map +1 -1
  125. package/dist/lib/openapi/meta-schema-rules.test.js +16 -25
  126. package/dist/lib/openapi/meta-schema-rules.test.js.map +1 -1
  127. package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.d.ts +652 -0
  128. package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.js +146 -0
  129. package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.js.map +1 -0
  130. package/dist/lib/openapi/spec/advanced-playground-feature-schema.d.ts +1217 -0
  131. package/dist/lib/openapi/spec/advanced-playground-feature-schema.js +51 -0
  132. package/dist/lib/openapi/spec/advanced-playground-feature-schema.js.map +1 -0
  133. package/dist/lib/openapi/spec/advanced-playground-request-schema.d.ts +95 -0
  134. package/dist/lib/openapi/spec/advanced-playground-request-schema.js +49 -0
  135. package/dist/lib/openapi/spec/advanced-playground-request-schema.js.map +1 -0
  136. package/dist/lib/openapi/spec/advanced-playground-response-schema.d.ts +2560 -0
  137. package/dist/lib/openapi/spec/advanced-playground-response-schema.js +50 -0
  138. package/dist/lib/openapi/spec/advanced-playground-response-schema.js.map +1 -0
  139. package/dist/lib/openapi/spec/client-application-schema.d.ts +17 -0
  140. package/dist/lib/openapi/spec/client-application-schema.js +17 -0
  141. package/dist/lib/openapi/spec/client-application-schema.js.map +1 -1
  142. package/dist/lib/openapi/spec/client-feature-schema.d.ts +44 -13
  143. package/dist/lib/openapi/spec/client-feature-schema.js +17 -12
  144. package/dist/lib/openapi/spec/client-feature-schema.js.map +1 -1
  145. package/dist/lib/openapi/spec/client-features-query-schema.d.ts +12 -0
  146. package/dist/lib/openapi/spec/client-features-query-schema.js +12 -0
  147. package/dist/lib/openapi/spec/client-features-query-schema.js.map +1 -1
  148. package/dist/lib/openapi/spec/client-features-schema.d.ts +90 -14
  149. package/dist/lib/openapi/spec/client-features-schema.js +7 -0
  150. package/dist/lib/openapi/spec/client-features-schema.js.map +1 -1
  151. package/dist/lib/openapi/spec/client-features-schema.test.js +5 -12
  152. package/dist/lib/openapi/spec/client-features-schema.test.js.map +1 -1
  153. package/dist/lib/openapi/spec/client-metrics-schema.d.ts +1 -1
  154. package/dist/lib/openapi/spec/client-metrics-schema.js +1 -1
  155. package/dist/lib/openapi/spec/client-metrics-schema.js.map +1 -1
  156. package/dist/lib/openapi/spec/context-field-schema.d.ts +13 -0
  157. package/dist/lib/openapi/spec/context-field-schema.js +13 -0
  158. package/dist/lib/openapi/spec/context-field-schema.js.map +1 -1
  159. package/dist/lib/openapi/spec/context-field-strategies-schema.d.ts +43 -0
  160. package/dist/lib/openapi/spec/context-field-strategies-schema.js +51 -0
  161. package/dist/lib/openapi/spec/context-field-strategies-schema.js.map +1 -0
  162. package/dist/lib/openapi/spec/context-fields-schema.d.ts +13 -0
  163. package/dist/lib/openapi/spec/create-application-schema.d.ts +0 -1
  164. package/dist/lib/openapi/spec/create-application-schema.js +0 -1
  165. package/dist/lib/openapi/spec/create-application-schema.js.map +1 -1
  166. package/dist/lib/openapi/spec/export-result-schema.d.ts +137 -4
  167. package/dist/lib/openapi/spec/feature-environment-schema.d.ts +22 -1
  168. package/dist/lib/openapi/spec/feature-schema.d.ts +49 -2
  169. package/dist/lib/openapi/spec/feature-schema.test.js +1 -1
  170. package/dist/lib/openapi/spec/feature-schema.test.js.map +1 -1
  171. package/dist/lib/openapi/spec/feature-strategy-schema.d.ts +1 -1
  172. package/dist/lib/openapi/spec/feature-strategy-schema.js +1 -1
  173. package/dist/lib/openapi/spec/feature-strategy-schema.js.map +1 -1
  174. package/dist/lib/openapi/spec/feature-variants-schema.d.ts +26 -0
  175. package/dist/lib/openapi/spec/features-schema.d.ts +98 -4
  176. package/dist/lib/openapi/spec/health-check-schema.d.ts +3 -0
  177. package/dist/lib/openapi/spec/health-check-schema.js +3 -0
  178. package/dist/lib/openapi/spec/health-check-schema.js.map +1 -1
  179. package/dist/lib/openapi/spec/health-overview-schema.d.ts +105 -4
  180. package/dist/lib/openapi/spec/health-overview-schema.js +7 -0
  181. package/dist/lib/openapi/spec/health-overview-schema.js.map +1 -1
  182. package/dist/lib/openapi/spec/health-report-schema.d.ts +105 -4
  183. package/dist/lib/openapi/spec/import-toggles-schema.d.ts +274 -8
  184. package/dist/lib/openapi/spec/index.d.ts +3 -0
  185. package/dist/lib/openapi/spec/index.js +3 -0
  186. package/dist/lib/openapi/spec/index.js.map +1 -1
  187. package/dist/lib/openapi/spec/instance-admin-stats-schema.d.ts +65 -2
  188. package/dist/lib/openapi/spec/instance-admin-stats-schema.js +65 -2
  189. package/dist/lib/openapi/spec/instance-admin-stats-schema.js.map +1 -1
  190. package/dist/lib/openapi/spec/override-schema.d.ts +5 -0
  191. package/dist/lib/openapi/spec/override-schema.js +5 -0
  192. package/dist/lib/openapi/spec/override-schema.js.map +1 -1
  193. package/dist/lib/openapi/spec/password-schema.d.ts +3 -0
  194. package/dist/lib/openapi/spec/password-schema.js +3 -0
  195. package/dist/lib/openapi/spec/password-schema.js.map +1 -1
  196. package/dist/lib/openapi/spec/playground-feature-schema.d.ts +41 -1
  197. package/dist/lib/openapi/spec/playground-feature-schema.js +6 -1
  198. package/dist/lib/openapi/spec/playground-feature-schema.js.map +1 -1
  199. package/dist/lib/openapi/spec/playground-feature-schema.test.js +3 -0
  200. package/dist/lib/openapi/spec/playground-feature-schema.test.js.map +1 -1
  201. package/dist/lib/openapi/spec/playground-request-schema.d.ts +7 -1
  202. package/dist/lib/openapi/spec/playground-request-schema.js +1 -1
  203. package/dist/lib/openapi/spec/playground-request-schema.js.map +1 -1
  204. package/dist/lib/openapi/spec/playground-response-schema.d.ts +93 -3
  205. package/dist/lib/openapi/spec/playground-strategy-schema.d.ts +13 -1
  206. package/dist/lib/openapi/spec/playground-strategy-schema.js +13 -0
  207. package/dist/lib/openapi/spec/playground-strategy-schema.js.map +1 -1
  208. package/dist/lib/openapi/spec/profile-schema.d.ts +49 -2
  209. package/dist/lib/openapi/spec/project-overview-schema.d.ts +104 -4
  210. package/dist/lib/openapi/spec/project-overview-schema.js +6 -0
  211. package/dist/lib/openapi/spec/project-overview-schema.js.map +1 -1
  212. package/dist/lib/openapi/spec/push-variants-schema.d.ts +26 -0
  213. package/dist/lib/openapi/spec/sdk-context-schema.d.ts +6 -0
  214. package/dist/lib/openapi/spec/sdk-context-schema.js +14 -2
  215. package/dist/lib/openapi/spec/sdk-context-schema.js.map +1 -1
  216. package/dist/lib/openapi/spec/state-schema.d.ts +72 -4
  217. package/dist/lib/openapi/spec/variant-schema.d.ts +21 -0
  218. package/dist/lib/openapi/spec/variant-schema.js +13 -0
  219. package/dist/lib/openapi/spec/variant-schema.js.map +1 -1
  220. package/dist/lib/openapi/spec/variants-schema.d.ts +26 -0
  221. package/dist/lib/openapi/util/create-response-schema.d.ts +1 -0
  222. package/dist/lib/openapi/util/create-response-schema.js +7 -1
  223. package/dist/lib/openapi/util/create-response-schema.js.map +1 -1
  224. package/dist/lib/proxy/proxy-repository.js +1 -1
  225. package/dist/lib/proxy/proxy-repository.js.map +1 -1
  226. package/dist/lib/routes/admin-api/api-token.d.ts +2 -0
  227. package/dist/lib/routes/admin-api/api-token.js +120 -11
  228. package/dist/lib/routes/admin-api/api-token.js.map +1 -1
  229. package/dist/lib/routes/admin-api/context.d.ts +3 -0
  230. package/dist/lib/routes/admin-api/context.js +21 -0
  231. package/dist/lib/routes/admin-api/context.js.map +1 -1
  232. package/dist/lib/routes/admin-api/index.js +1 -1
  233. package/dist/lib/routes/admin-api/index.js.map +1 -1
  234. package/dist/lib/routes/admin-api/instance-admin.d.ts +3 -1
  235. package/dist/lib/routes/admin-api/instance-admin.js +41 -0
  236. package/dist/lib/routes/admin-api/instance-admin.js.map +1 -1
  237. package/dist/lib/routes/admin-api/metrics.test.js +12 -0
  238. package/dist/lib/routes/admin-api/metrics.test.js.map +1 -1
  239. package/dist/lib/routes/admin-api/project/api-token.js +7 -0
  240. package/dist/lib/routes/admin-api/project/api-token.js.map +1 -1
  241. package/dist/lib/routes/admin-api/user/user.js +5 -4
  242. package/dist/lib/routes/admin-api/user/user.js.map +1 -1
  243. package/dist/lib/routes/admin-api/user/user.test.js +30 -5
  244. package/dist/lib/routes/admin-api/user/user.test.js.map +1 -1
  245. package/dist/lib/routes/admin-api/user-admin.js +0 -1
  246. package/dist/lib/routes/admin-api/user-admin.js.map +1 -1
  247. package/dist/lib/routes/client-api/feature.js +4 -0
  248. package/dist/lib/routes/client-api/feature.js.map +1 -1
  249. package/dist/lib/routes/client-api/metrics.js +2 -0
  250. package/dist/lib/routes/client-api/metrics.js.map +1 -1
  251. package/dist/lib/routes/client-api/register.js +2 -0
  252. package/dist/lib/routes/client-api/register.js.map +1 -1
  253. package/dist/lib/routes/controller.d.ts +8 -7
  254. package/dist/lib/routes/controller.js +11 -10
  255. package/dist/lib/routes/controller.js.map +1 -1
  256. package/dist/lib/routes/health-check.js +2 -0
  257. package/dist/lib/routes/health-check.js.map +1 -1
  258. package/dist/lib/server-impl.js +1 -1
  259. package/dist/lib/server-impl.js.map +1 -1
  260. package/dist/lib/services/access-service.d.ts +6 -4
  261. package/dist/lib/services/access-service.js +47 -11
  262. package/dist/lib/services/access-service.js.map +1 -1
  263. package/dist/lib/services/access-service.test.js +39 -22
  264. package/dist/lib/services/access-service.test.js.map +1 -1
  265. package/dist/lib/services/api-token-service.d.ts +1 -0
  266. package/dist/lib/services/api-token-service.js +3 -0
  267. package/dist/lib/services/api-token-service.js.map +1 -1
  268. package/dist/lib/services/context-service.d.ts +4 -1
  269. package/dist/lib/services/context-service.js +14 -1
  270. package/dist/lib/services/context-service.js.map +1 -1
  271. package/dist/lib/services/feature-toggle-service.d.ts +1 -1
  272. package/dist/lib/services/feature-toggle-service.js +6 -7
  273. package/dist/lib/services/feature-toggle-service.js.map +1 -1
  274. package/dist/lib/services/group-service.js +1 -3
  275. package/dist/lib/services/group-service.js.map +1 -1
  276. package/dist/lib/services/index.d.ts +1 -1
  277. package/dist/lib/services/index.js +1 -1
  278. package/dist/lib/services/index.js.map +1 -1
  279. package/dist/lib/services/instance-stats-service.d.ts +2 -3
  280. package/dist/lib/services/project-service.js +1 -0
  281. package/dist/lib/services/project-service.js.map +1 -1
  282. package/dist/lib/services/user-service.d.ts +1 -0
  283. package/dist/lib/services/user-service.js +8 -0
  284. package/dist/lib/services/user-service.js.map +1 -1
  285. package/dist/lib/services/version-service.d.ts +37 -1
  286. package/dist/lib/services/version-service.js +76 -5
  287. package/dist/lib/services/version-service.js.map +1 -1
  288. package/dist/lib/services/version-service.test.js +196 -9
  289. package/dist/lib/services/version-service.test.js.map +1 -1
  290. package/dist/lib/types/experimental.d.ts +1 -1
  291. package/dist/lib/types/experimental.js +6 -2
  292. package/dist/lib/types/experimental.js.map +1 -1
  293. package/dist/lib/types/model.d.ts +9 -4
  294. package/dist/lib/types/model.js +1 -0
  295. package/dist/lib/types/model.js.map +1 -1
  296. package/dist/lib/types/option.d.ts +2 -0
  297. package/dist/lib/types/permissions.d.ts +34 -27
  298. package/dist/lib/types/permissions.js +85 -29
  299. package/dist/lib/types/permissions.js.map +1 -1
  300. package/dist/lib/types/services.d.ts +1 -1
  301. package/dist/lib/types/stores/access-store.d.ts +1 -1
  302. package/dist/lib/types/stores/context-field-store.d.ts +2 -0
  303. package/dist/lib/types/stores/environment-store.d.ts +1 -0
  304. package/dist/lib/types/stores/feature-strategies-store.d.ts +2 -0
  305. package/dist/lib/types/stores/feature-toggle-store.d.ts +1 -1
  306. package/dist/lib/types/stores/group-store.d.ts +1 -1
  307. package/dist/lib/util/constants.d.ts +7 -1
  308. package/dist/lib/util/constants.js +8 -2
  309. package/dist/lib/util/constants.js.map +1 -1
  310. package/dist/lib/util/ensureArray.d.ts +1 -0
  311. package/dist/lib/util/ensureArray.js +8 -0
  312. package/dist/lib/util/ensureArray.js.map +1 -0
  313. package/dist/lib/util/index.d.ts +1 -1
  314. package/dist/lib/util/index.js +1 -1
  315. package/dist/lib/util/index.js.map +1 -1
  316. package/dist/migrations/20230615122909-fix-env-sort-order.d.ts +2 -0
  317. package/dist/migrations/20230615122909-fix-env-sort-order.js +28 -0
  318. package/dist/migrations/20230615122909-fix-env-sort-order.js.map +1 -0
  319. package/dist/migrations/20230619105029-new-fine-grained-api-token-permissions.d.ts +2 -0
  320. package/dist/migrations/20230619105029-new-fine-grained-api-token-permissions.js +26 -0
  321. package/dist/migrations/20230619105029-new-fine-grained-api-token-permissions.js.map +1 -0
  322. package/dist/migrations/20230619110243-assign-apitoken-permissions-to-rootroles.d.ts +2 -0
  323. package/dist/migrations/20230619110243-assign-apitoken-permissions-to-rootroles.js +23 -0
  324. package/dist/migrations/20230619110243-assign-apitoken-permissions-to-rootroles.js.map +1 -0
  325. package/dist/migrations/20230621141239-refactor-api-token-permissions.d.ts +2 -0
  326. package/dist/migrations/20230621141239-refactor-api-token-permissions.js +19 -0
  327. package/dist/migrations/20230621141239-refactor-api-token-permissions.js.map +1 -0
  328. package/dist/server-dev.js +3 -3
  329. package/dist/server-dev.js.map +1 -1
  330. package/dist/test/arbitraries.test.js +3 -1
  331. package/dist/test/arbitraries.test.js.map +1 -1
  332. package/dist/test/config/test-config.js +0 -1
  333. package/dist/test/config/test-config.js.map +1 -1
  334. package/dist/test/e2e/api/admin/api-token.auth.e2e.test.js +542 -3
  335. package/dist/test/e2e/api/admin/api-token.auth.e2e.test.js.map +1 -1
  336. package/dist/test/e2e/api/admin/api-token.e2e.test.js +14 -1
  337. package/dist/test/e2e/api/admin/api-token.e2e.test.js.map +1 -1
  338. package/dist/test/e2e/api/admin/client-metrics.e2e.test.js +1 -8
  339. package/dist/test/e2e/api/admin/client-metrics.e2e.test.js.map +1 -1
  340. package/dist/test/e2e/api/admin/context.e2e.test.js +47 -1
  341. package/dist/test/e2e/api/admin/context.e2e.test.js.map +1 -1
  342. package/dist/test/e2e/api/admin/project/features.e2e.test.js +14 -14
  343. package/dist/test/e2e/api/admin/project/features.e2e.test.js.map +1 -1
  344. package/dist/test/e2e/api/admin/project/projects.e2e.test.js +14 -0
  345. package/dist/test/e2e/api/admin/project/projects.e2e.test.js.map +1 -1
  346. package/dist/test/e2e/helpers/test-helper.d.ts +1 -1
  347. package/dist/test/e2e/helpers/test-helper.js +4 -2
  348. package/dist/test/e2e/helpers/test-helper.js.map +1 -1
  349. package/dist/test/e2e/services/access-service.e2e.test.js +1 -1
  350. package/dist/test/e2e/services/access-service.e2e.test.js.map +1 -1
  351. package/dist/test/e2e/services/playground-service.test.js +2 -2
  352. package/dist/test/e2e/services/playground-service.test.js.map +1 -1
  353. package/dist/test/fixtures/access-service-mock.js +1 -1
  354. package/dist/test/fixtures/access-service-mock.js.map +1 -1
  355. package/dist/test/fixtures/fake-access-store.d.ts +5 -3
  356. package/dist/test/fixtures/fake-access-store.js +24 -9
  357. package/dist/test/fixtures/fake-access-store.js.map +1 -1
  358. package/dist/test/fixtures/fake-environment-store.d.ts +1 -0
  359. package/dist/test/fixtures/fake-environment-store.js +3 -0
  360. package/dist/test/fixtures/fake-environment-store.js.map +1 -1
  361. package/dist/test/fixtures/fake-feature-strategies-store.d.ts +2 -0
  362. package/dist/test/fixtures/fake-feature-strategies-store.js +7 -0
  363. package/dist/test/fixtures/fake-feature-strategies-store.js.map +1 -1
  364. package/dist/test/fixtures/fake-group-store.d.ts +1 -1
  365. package/dist/test/fixtures/fake-group-store.js +1 -1
  366. package/dist/test/fixtures/fake-group-store.js.map +1 -1
  367. package/dist/test/fixtures/fake-role-store.d.ts +1 -1
  368. package/dist/test/fixtures/fake-role-store.js +9 -4
  369. package/dist/test/fixtures/fake-role-store.js.map +1 -1
  370. package/frontend/build/index.html +1 -1
  371. package/frontend/build/static/AdvancedPlayground-520a25e1.js +1 -0
  372. package/frontend/build/static/CreateProject-c430691b.js +4 -0
  373. package/frontend/build/static/{Error-5606eccd.js → Error-492e8b38.js} +1 -1
  374. package/frontend/build/static/FeatureArchiveDialog-70daa567.js +10 -0
  375. package/frontend/build/static/{FeatureMetricsChart-1c6bb078.js → FeatureMetricsChart-bc99b364.js} +2 -2
  376. package/frontend/build/static/FeatureViewLazyExport-01d70575.js +7 -0
  377. package/frontend/build/static/LazyAdminExport-e2c90193.js +37 -0
  378. package/frontend/build/static/LazyProjectExport-fa62d2fe.js +13 -0
  379. package/frontend/build/static/NetworkOverview-3b72e4ea.js +1298 -0
  380. package/frontend/build/static/NetworkTraffic-365db744.js +1 -0
  381. package/frontend/build/static/Playground-b473b399.js +1 -0
  382. package/frontend/build/static/{Playground-6602cb1a.js → PlaygroundGuidancePopper-8e3e97db.js} +12 -12
  383. package/frontend/build/static/RoleCell-9bb513a8.js +1 -0
  384. package/frontend/build/static/StrategyItemContainer-1f7503c7.js +1 -0
  385. package/frontend/build/static/{chartjs-adapter-date-fns.esm-c75aa905.js → chartjs-adapter-date-fns.esm-db338d44.js} +1 -1
  386. package/frontend/build/static/flowchart-elk-definition-170a3958-a428dd25.js +134 -0
  387. package/frontend/build/static/index-0a56292a.js +450 -0
  388. package/frontend/build/static/{index-b3def5eb.js → index-d362ae7a.js} +1 -1
  389. package/frontend/build/static/{index-f8439975.js → index-dc5debe9.js} +1 -1
  390. package/frontend/build/static/is_dark-884249e0.js +1 -0
  391. package/frontend/build/static/mindmap-definition-44684416-3c9425ff.js +101 -0
  392. package/frontend/build/static/stringify-ec884b6d.js +1 -0
  393. package/frontend/build/static/timeline-definition-8e5a9bc6-d289cd6d.js +62 -0
  394. package/frontend/build/static/{unknownify-6683037a.js → unknownify-5b23bf29.js} +1 -1
  395. package/frontend/package.json +18 -17
  396. package/package.json +16 -13
  397. package/dist/lib/routes/admin-api/playground.d.ts +0 -12
  398. package/dist/lib/routes/admin-api/playground.js +0 -46
  399. package/dist/lib/routes/admin-api/playground.js.map +0 -1
  400. package/dist/lib/routes/admin-api/playground.test.js.map +0 -1
  401. package/dist/lib/services/playground-service.d.ts +0 -12
  402. package/dist/lib/services/playground-service.js +0 -65
  403. package/dist/lib/services/playground-service.js.map +0 -1
  404. package/dist/lib/util/feature-evaluator/client.js.map +0 -1
  405. package/dist/lib/util/feature-evaluator/constraint.js.map +0 -1
  406. package/dist/lib/util/feature-evaluator/context.js.map +0 -1
  407. package/dist/lib/util/feature-evaluator/feature-evaluator.js.map +0 -1
  408. package/dist/lib/util/feature-evaluator/feature.js.map +0 -1
  409. package/dist/lib/util/feature-evaluator/helpers.js.map +0 -1
  410. package/dist/lib/util/feature-evaluator/index.js.map +0 -1
  411. package/dist/lib/util/feature-evaluator/repository/bootstrap-provider.js.map +0 -1
  412. package/dist/lib/util/feature-evaluator/repository/index.js.map +0 -1
  413. package/dist/lib/util/feature-evaluator/repository/storage-provider-in-mem.js.map +0 -1
  414. package/dist/lib/util/feature-evaluator/repository/storage-provider.js.map +0 -1
  415. package/dist/lib/util/feature-evaluator/strategy/application-hostname-strategy.js.map +0 -1
  416. package/dist/lib/util/feature-evaluator/strategy/default-strategy.js.map +0 -1
  417. package/dist/lib/util/feature-evaluator/strategy/flexible-rollout-strategy.js.map +0 -1
  418. package/dist/lib/util/feature-evaluator/strategy/gradual-rollout-random.js.map +0 -1
  419. package/dist/lib/util/feature-evaluator/strategy/gradual-rollout-session-id.js.map +0 -1
  420. package/dist/lib/util/feature-evaluator/strategy/gradual-rollout-user-id.js.map +0 -1
  421. package/dist/lib/util/feature-evaluator/strategy/index.js.map +0 -1
  422. package/dist/lib/util/feature-evaluator/strategy/remote-address-strategy.js.map +0 -1
  423. package/dist/lib/util/feature-evaluator/strategy/strategy.js.map +0 -1
  424. package/dist/lib/util/feature-evaluator/strategy/unknown-strategy.js.map +0 -1
  425. package/dist/lib/util/feature-evaluator/strategy/user-with-id-strategy.js.map +0 -1
  426. package/dist/lib/util/feature-evaluator/strategy/util.js.map +0 -1
  427. package/dist/lib/util/feature-evaluator/variant.js.map +0 -1
  428. package/dist/lib/util/offline-unleash-client.js.map +0 -1
  429. package/dist/lib/util/offline-unleash-client.test.js.map +0 -1
  430. package/frontend/build/static/CreateProject-217f67b6.js +0 -4
  431. package/frontend/build/static/FeatureArchiveDialog-c311c641.js +0 -4
  432. package/frontend/build/static/FeatureViewLazyExport-06cf4baa.js +0 -7
  433. package/frontend/build/static/LazyAdminExport-04c8032d.js +0 -43
  434. package/frontend/build/static/LazyProjectExport-d9663a8c.js +0 -19
  435. package/frontend/build/static/NetworkOverview-2bce4916.js +0 -1296
  436. package/frontend/build/static/NetworkTraffic-7db94d86.js +0 -1
  437. package/frontend/build/static/StrategyItemContainer-0140b94f.js +0 -1
  438. package/frontend/build/static/index-1f392976.js +0 -450
  439. package/frontend/build/static/useProjectRole-122ac4bb.js +0 -1
  440. package/frontend/build/static/v4-a960c1f4.js +0 -1
  441. /package/dist/lib/{routes/admin-api/playground.test.d.ts → db/feature-strategy-store.test.d.ts} +0 -0
  442. /package/dist/lib/{util → features/playground}/feature-evaluator/constraint.d.ts +0 -0
  443. /package/dist/lib/{util → features/playground}/feature-evaluator/constraint.js +0 -0
  444. /package/dist/lib/{util → features/playground}/feature-evaluator/context.d.ts +0 -0
  445. /package/dist/lib/{util → features/playground}/feature-evaluator/context.js +0 -0
  446. /package/dist/lib/{util → features/playground}/feature-evaluator/feature-evaluator.d.ts +0 -0
  447. /package/dist/lib/{util → features/playground}/feature-evaluator/feature-evaluator.js +0 -0
  448. /package/dist/lib/{util → features/playground}/feature-evaluator/feature.d.ts +0 -0
  449. /package/dist/lib/{util → features/playground}/feature-evaluator/feature.js +0 -0
  450. /package/dist/lib/{util → features/playground}/feature-evaluator/helpers.js +0 -0
  451. /package/dist/lib/{util → features/playground}/feature-evaluator/repository/bootstrap-provider.d.ts +0 -0
  452. /package/dist/lib/{util → features/playground}/feature-evaluator/repository/bootstrap-provider.js +0 -0
  453. /package/dist/lib/{util → features/playground}/feature-evaluator/repository/index.d.ts +0 -0
  454. /package/dist/lib/{util → features/playground}/feature-evaluator/repository/index.js +0 -0
  455. /package/dist/lib/{util → features/playground}/feature-evaluator/repository/storage-provider-in-mem.d.ts +0 -0
  456. /package/dist/lib/{util → features/playground}/feature-evaluator/repository/storage-provider-in-mem.js +0 -0
  457. /package/dist/lib/{util → features/playground}/feature-evaluator/repository/storage-provider.d.ts +0 -0
  458. /package/dist/lib/{util → features/playground}/feature-evaluator/repository/storage-provider.js +0 -0
  459. /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/application-hostname-strategy.d.ts +0 -0
  460. /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/application-hostname-strategy.js +0 -0
  461. /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/default-strategy.d.ts +0 -0
  462. /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/default-strategy.js +0 -0
  463. /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/flexible-rollout-strategy.d.ts +0 -0
  464. /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/flexible-rollout-strategy.js +0 -0
  465. /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/gradual-rollout-random.d.ts +0 -0
  466. /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/gradual-rollout-random.js +0 -0
  467. /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/gradual-rollout-session-id.d.ts +0 -0
  468. /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/gradual-rollout-session-id.js +0 -0
  469. /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/gradual-rollout-user-id.d.ts +0 -0
  470. /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/gradual-rollout-user-id.js +0 -0
  471. /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/index.d.ts +0 -0
  472. /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/index.js +0 -0
  473. /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/remote-address-strategy.d.ts +0 -0
  474. /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/remote-address-strategy.js +0 -0
  475. /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/strategy.d.ts +0 -0
  476. /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/strategy.js +0 -0
  477. /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/unknown-strategy.d.ts +0 -0
  478. /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/user-with-id-strategy.d.ts +0 -0
  479. /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/user-with-id-strategy.js +0 -0
  480. /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/util.d.ts +0 -0
  481. /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/util.js +0 -0
  482. /package/dist/lib/{util → features/playground}/feature-evaluator/variant.d.ts +0 -0
  483. /package/dist/lib/{util → features/playground}/feature-evaluator/variant.js +0 -0
  484. /package/dist/lib/{util → features/playground}/offline-unleash-client.d.ts +0 -0
  485. /package/dist/lib/{util → features/playground}/offline-unleash-client.test.d.ts +0 -0
@@ -1,450 +0,0 @@
1
- var yB=Object.defineProperty;var bB=(e,t,n)=>t in e?yB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var rs=(e,t,n)=>(bB(e,typeof t!="symbol"?t+"":t,n),n);function wB(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Ci=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function k4(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(t,o);return new i}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var A4={exports:{}},fh={};/*
2
- object-assign
3
- (c) Sindre Sorhus
4
- @license MIT
5
- */var _k=Object.getOwnPropertySymbols,SB=Object.prototype.hasOwnProperty,xB=Object.prototype.propertyIsEnumerable;function CB(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function EB(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(r.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(i){o[i]=i}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var R4=EB()?Object.assign:function(e,t){for(var n,r=CB(e),o,i=1;i<arguments.length;i++){n=Object(arguments[i]);for(var a in n)SB.call(n,a)&&(r[a]=n[a]);if(_k){o=_k(n);for(var s=0;s<o.length;s++)xB.call(n,o[s])&&(r[o[s]]=n[o[s]])}}return r},_4={exports:{}},un={};/** @license React v17.0.2
6
- * react.production.min.js
7
- *
8
- * Copyright (c) Facebook, Inc. and its affiliates.
9
- *
10
- * This source code is licensed under the MIT license found in the
11
- * LICENSE file in the root directory of this source tree.
12
- */var Yx=R4,ad=60103,P4=60106;un.Fragment=60107;un.StrictMode=60108;un.Profiler=60114;var I4=60109,O4=60110,$4=60112;un.Suspense=60113;var N4=60115,L4=60116;if(typeof Symbol=="function"&&Symbol.for){var Xi=Symbol.for;ad=Xi("react.element"),P4=Xi("react.portal"),un.Fragment=Xi("react.fragment"),un.StrictMode=Xi("react.strict_mode"),un.Profiler=Xi("react.profiler"),I4=Xi("react.provider"),O4=Xi("react.context"),$4=Xi("react.forward_ref"),un.Suspense=Xi("react.suspense"),N4=Xi("react.memo"),L4=Xi("react.lazy")}var Pk=typeof Symbol=="function"&&Symbol.iterator;function TB(e){return e===null||typeof e!="object"?null:(e=Pk&&e[Pk]||e["@@iterator"],typeof e=="function"?e:null)}function hh(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;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."}var M4={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D4={};function sd(e,t,n){this.props=e,this.context=t,this.refs=D4,this.updater=n||M4}sd.prototype.isReactComponent={};sd.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(hh(85));this.updater.enqueueSetState(this,e,t,"setState")};sd.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function B4(){}B4.prototype=sd.prototype;function Xx(e,t,n){this.props=e,this.context=t,this.refs=D4,this.updater=n||M4}var Jx=Xx.prototype=new B4;Jx.constructor=Xx;Yx(Jx,sd.prototype);Jx.isPureReactComponent=!0;var Qx={current:null},F4=Object.prototype.hasOwnProperty,z4={key:!0,ref:!0,__self:!0,__source:!0};function j4(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)F4.call(t,r)&&!z4.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:ad,type:e,key:i,ref:a,props:o,_owner:Qx.current}}function kB(e,t){return{$$typeof:ad,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Zx(e){return typeof e=="object"&&e!==null&&e.$$typeof===ad}function AB(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ik=/\/+/g;function K0(e,t){return typeof e=="object"&&e!==null&&e.key!=null?AB(""+e.key):t.toString(36)}function hg(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case ad:case P4:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+K0(a,0):r,Array.isArray(o)?(n="",e!=null&&(n=e.replace(Ik,"$&/")+"/"),hg(o,t,n,"",function(u){return u})):o!=null&&(Zx(o)&&(o=kB(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(Ik,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",Array.isArray(e))for(var s=0;s<e.length;s++){i=e[s];var c=r+K0(i,s);a+=hg(i,t,n,c,o)}else if(c=TB(e),typeof c=="function")for(e=c.call(e),s=0;!(i=e.next()).done;)i=i.value,c=r+K0(i,s++),a+=hg(i,t,n,c,o);else if(i==="object")throw t=""+e,Error(hh(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return a}function vm(e,t,n){if(e==null)return e;var r=[],o=0;return hg(e,r,"","",function(i){return t.call(n,i,o++)}),r}function RB(e){if(e._status===-1){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(n){e._status===0&&(n=n.default,e._status=1,e._result=n)},function(n){e._status===0&&(e._status=2,e._result=n)})}if(e._status===1)return e._result;throw e._result}var U4={current:null};function xs(){var e=U4.current;if(e===null)throw Error(hh(321));return e}var _B={ReactCurrentDispatcher:U4,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:Qx,IsSomeRendererActing:{current:!1},assign:Yx};un.Children={map:vm,forEach:function(e,t,n){vm(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return vm(e,function(){t++}),t},toArray:function(e){return vm(e,function(t){return t})||[]},only:function(e){if(!Zx(e))throw Error(hh(143));return e}};un.Component=sd;un.PureComponent=Xx;un.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_B;un.cloneElement=function(e,t,n){if(e==null)throw Error(hh(267,e));var r=Yx({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=Qx.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)F4.call(t,c)&&!z4.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&s!==void 0?s[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){s=Array(c);for(var u=0;u<c;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:ad,type:e.type,key:o,ref:i,props:r,_owner:a}};un.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:O4,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:I4,_context:e},e.Consumer=e};un.createElement=j4;un.createFactory=function(e){var t=j4.bind(null,e);return t.type=e,t};un.createRef=function(){return{current:null}};un.forwardRef=function(e){return{$$typeof:$4,render:e}};un.isValidElement=Zx;un.lazy=function(e){return{$$typeof:L4,_payload:{_status:-1,_result:e},_init:RB}};un.memo=function(e,t){return{$$typeof:N4,type:e,compare:t===void 0?null:t}};un.useCallback=function(e,t){return xs().useCallback(e,t)};un.useContext=function(e,t){return xs().useContext(e,t)};un.useDebugValue=function(){};un.useEffect=function(e,t){return xs().useEffect(e,t)};un.useImperativeHandle=function(e,t,n){return xs().useImperativeHandle(e,t,n)};un.useLayoutEffect=function(e,t){return xs().useLayoutEffect(e,t)};un.useMemo=function(e,t){return xs().useMemo(e,t)};un.useReducer=function(e,t,n){return xs().useReducer(e,t,n)};un.useRef=function(e){return xs().useRef(e)};un.useState=function(e){return xs().useState(e)};un.version="17.0.2";_4.exports=un;var m=_4.exports;const Te=qr(m),zg=wB({__proto__:null,default:Te},[m]);/** @license React v17.0.2
13
- * react-jsx-runtime.production.min.js
14
- *
15
- * Copyright (c) Facebook, Inc. and its affiliates.
16
- *
17
- * This source code is licensed under the MIT license found in the
18
- * LICENSE file in the root directory of this source tree.
19
- */var PB=m,W4=60103;fh.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var Ok=Symbol.for;W4=Ok("react.element"),fh.Fragment=Ok("react.fragment")}var IB=PB.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,OB=Object.prototype.hasOwnProperty,$B={key:!0,ref:!0,__self:!0,__source:!0};function H4(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)OB.call(t,r)&&!$B.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:W4,type:e,key:i,ref:a,props:o,_owner:IB.current}}fh.jsx=H4;fh.jsxs=H4;A4.exports=fh;var eC=A4.exports;const ve=eC.Fragment,l=eC.jsx,x=eC.jsxs,NB=Object.freeze(Object.defineProperty({__proto__:null,Fragment:ve,jsx:l,jsxs:x},Symbol.toStringTag,{value:"Module"}));var po=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof po<"u"&&po,No={searchParams:"URLSearchParams"in po,iterable:"Symbol"in po&&"iterator"in Symbol,blob:"FileReader"in po&&"Blob"in po&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in po,arrayBuffer:"ArrayBuffer"in po};function LB(e){return e&&DataView.prototype.isPrototypeOf(e)}if(No.arrayBuffer)var MB=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],DB=ArrayBuffer.isView||function(e){return e&&MB.indexOf(Object.prototype.toString.call(e))>-1};function mh(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||e==="")throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function tC(e){return typeof e!="string"&&(e=String(e)),e}function nC(e){var t={next:function(){var n=e.shift();return{done:n===void 0,value:n}}};return No.iterable&&(t[Symbol.iterator]=function(){return t}),t}function Mr(e){this.map={},e instanceof Mr?e.forEach(function(t,n){this.append(n,t)},this):Array.isArray(e)?e.forEach(function(t){this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}Mr.prototype.append=function(e,t){e=mh(e),t=tC(t);var n=this.map[e];this.map[e]=n?n+", "+t:t};Mr.prototype.delete=function(e){delete this.map[mh(e)]};Mr.prototype.get=function(e){return e=mh(e),this.has(e)?this.map[e]:null};Mr.prototype.has=function(e){return this.map.hasOwnProperty(mh(e))};Mr.prototype.set=function(e,t){this.map[mh(e)]=tC(t)};Mr.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)};Mr.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),nC(e)};Mr.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),nC(e)};Mr.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),nC(e)};No.iterable&&(Mr.prototype[Symbol.iterator]=Mr.prototype.entries);function Y0(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function V4(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function BB(e){var t=new FileReader,n=V4(t);return t.readAsArrayBuffer(e),n}function FB(e){var t=new FileReader,n=V4(t);return t.readAsText(e),n}function zB(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}function $k(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function G4(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?typeof e=="string"?this._bodyText=e:No.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:No.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:No.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():No.arrayBuffer&&No.blob&&LB(e)?(this._bodyArrayBuffer=$k(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):No.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||DB(e))?this._bodyArrayBuffer=$k(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||(typeof e=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):No.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},No.blob&&(this.blob=function(){var e=Y0(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=Y0(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(BB)}),this.text=function(){var e=Y0(this);if(e)return e;if(this._bodyBlob)return FB(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(zB(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},No.formData&&(this.formData=function(){return this.text().then(WB)}),this.json=function(){return this.text().then(JSON.parse)},this}var jB=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function UB(e){var t=e.toUpperCase();return jB.indexOf(t)>-1?t:e}function lc(e,t){if(!(this instanceof lc))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{};var n=t.body;if(e instanceof lc){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new Mr(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!n&&e._bodyInit!=null&&(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new Mr(t.headers)),this.method=UB(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),(this.method==="GET"||this.method==="HEAD")&&(t.cache==="no-store"||t.cache==="no-cache")){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+new Date().getTime());else{var o=/\?/;this.url+=(o.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}lc.prototype.clone=function(){return new lc(this,{body:this._bodyInit})};function WB(e){var t=new FormData;return e.trim().split("&").forEach(function(n){if(n){var r=n.split("="),o=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(i))}}),t}function HB(e){var t=new Mr,n=e.replace(/\r?\n[\t ]+/g," ");return n.split("\r").map(function(r){return r.indexOf(`
20
- `)===0?r.substr(1,r.length):r}).forEach(function(r){var o=r.split(":"),i=o.shift().trim();if(i){var a=o.join(":").trim();t.append(i,a)}}),t}G4.call(lc.prototype);function Fa(e,t){if(!(this instanceof Fa))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=t.status===void 0?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText===void 0?"":""+t.statusText,this.headers=new Mr(t.headers),this.url=t.url||"",this._initBody(e)}G4.call(Fa.prototype);Fa.prototype.clone=function(){return new Fa(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Mr(this.headers),url:this.url})};Fa.error=function(){var e=new Fa(null,{status:0,statusText:""});return e.type="error",e};var VB=[301,302,303,307,308];Fa.redirect=function(e,t){if(VB.indexOf(t)===-1)throw new RangeError("Invalid status code");return new Fa(null,{status:t,headers:{location:e}})};var Gl=po.DOMException;try{new Gl}catch{Gl=function(t,n){this.message=t,this.name=n;var r=Error(t);this.stack=r.stack},Gl.prototype=Object.create(Error.prototype),Gl.prototype.constructor=Gl}function q4(e,t){return new Promise(function(n,r){var o=new lc(e,t);if(o.signal&&o.signal.aborted)return r(new Gl("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var c={status:i.status,statusText:i.statusText,headers:HB(i.getAllResponseHeaders()||"")};c.url="responseURL"in i?i.responseURL:c.headers.get("X-Request-URL");var u="response"in i?i.response:i.responseText;setTimeout(function(){n(new Fa(u,c))},0)},i.onerror=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){r(new Gl("Aborted","AbortError"))},0)};function s(c){try{return c===""&&po.location.href?po.location.href:c}catch{return c}}i.open(o.method,s(o.url),!0),o.credentials==="include"?i.withCredentials=!0:o.credentials==="omit"&&(i.withCredentials=!1),"responseType"in i&&(No.blob?i.responseType="blob":No.arrayBuffer&&o.headers.get("Content-Type")&&o.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(i.responseType="arraybuffer")),t&&typeof t.headers=="object"&&!(t.headers instanceof Mr)?Object.getOwnPropertyNames(t.headers).forEach(function(c){i.setRequestHeader(c,tC(t.headers[c]))}):o.headers.forEach(function(c,u){i.setRequestHeader(u,c)}),o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){i.readyState===4&&o.signal.removeEventListener("abort",a)}),i.send(typeof o._bodyInit>"u"?null:o._bodyInit)})}q4.polyfill=!0;po.fetch||(po.fetch=q4,po.Headers=Mr,po.Request=lc,po.Response=Fa);var GB={exports:{}};(function(e){var t=function(n){var r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(j,z,O){j[z]=O.value},a,s=typeof Symbol=="function"?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",d=s.toStringTag||"@@toStringTag";function p(j,z,O){return Object.defineProperty(j,z,{value:O,enumerable:!0,configurable:!0,writable:!0}),j[z]}try{p({},"")}catch{p=function(z,O,B){return z[O]=B}}function f(j,z,O,B){var Z=z&&z.prototype instanceof S?z:S,ae=Object.create(Z.prototype),Ae=new H(B||[]);return i(ae,"_invoke",{value:U(j,O,Ae)}),ae}n.wrap=f;function h(j,z,O){try{return{type:"normal",arg:j.call(z,O)}}catch(B){return{type:"throw",arg:B}}}var g="suspendedStart",v="suspendedYield",y="executing",b="completed",w={};function S(){}function k(){}function A(){}var T={};p(T,c,function(){return this});var R=Object.getPrototypeOf,P=R&&R(R(Q([])));P&&P!==r&&o.call(P,c)&&(T=P);var _=A.prototype=S.prototype=Object.create(T);k.prototype=A,i(_,"constructor",{value:A,configurable:!0}),i(A,"constructor",{value:k,configurable:!0}),k.displayName=p(A,d,"GeneratorFunction");function I(j){["next","throw","return"].forEach(function(z){p(j,z,function(O){return this._invoke(z,O)})})}n.isGeneratorFunction=function(j){var z=typeof j=="function"&&j.constructor;return z?z===k||(z.displayName||z.name)==="GeneratorFunction":!1},n.mark=function(j){return Object.setPrototypeOf?Object.setPrototypeOf(j,A):(j.__proto__=A,p(j,d,"GeneratorFunction")),j.prototype=Object.create(_),j},n.awrap=function(j){return{__await:j}};function $(j,z){function O(ae,Ae,fe,Ie){var ne=h(j[ae],j,Ae);if(ne.type==="throw")Ie(ne.arg);else{var ie=ne.arg,ce=ie.value;return ce&&typeof ce=="object"&&o.call(ce,"__await")?z.resolve(ce.__await).then(function(te){O("next",te,fe,Ie)},function(te){O("throw",te,fe,Ie)}):z.resolve(ce).then(function(te){ie.value=te,fe(ie)},function(te){return O("throw",te,fe,Ie)})}}var B;function Z(ae,Ae){function fe(){return new z(function(Ie,ne){O(ae,Ae,Ie,ne)})}return B=B?B.then(fe,fe):fe()}i(this,"_invoke",{value:Z})}I($.prototype),p($.prototype,u,function(){return this}),n.AsyncIterator=$,n.async=function(j,z,O,B,Z){Z===void 0&&(Z=Promise);var ae=new $(f(j,z,O,B),Z);return n.isGeneratorFunction(z)?ae:ae.next().then(function(Ae){return Ae.done?Ae.value:ae.next()})};function U(j,z,O){var B=g;return function(ae,Ae){if(B===y)throw new Error("Generator is already running");if(B===b){if(ae==="throw")throw Ae;return V()}for(O.method=ae,O.arg=Ae;;){var fe=O.delegate;if(fe){var Ie=M(fe,O);if(Ie){if(Ie===w)continue;return Ie}}if(O.method==="next")O.sent=O._sent=O.arg;else if(O.method==="throw"){if(B===g)throw B=b,O.arg;O.dispatchException(O.arg)}else O.method==="return"&&O.abrupt("return",O.arg);B=y;var ne=h(j,z,O);if(ne.type==="normal"){if(B=O.done?b:v,ne.arg===w)continue;return{value:ne.arg,done:O.done}}else ne.type==="throw"&&(B=b,O.method="throw",O.arg=ne.arg)}}}function M(j,z){var O=z.method,B=j.iterator[O];if(B===a)return z.delegate=null,O==="throw"&&j.iterator.return&&(z.method="return",z.arg=a,M(j,z),z.method==="throw")||O!=="return"&&(z.method="throw",z.arg=new TypeError("The iterator does not provide a '"+O+"' method")),w;var Z=h(B,j.iterator,z.arg);if(Z.type==="throw")return z.method="throw",z.arg=Z.arg,z.delegate=null,w;var ae=Z.arg;if(!ae)return z.method="throw",z.arg=new TypeError("iterator result is not an object"),z.delegate=null,w;if(ae.done)z[j.resultName]=ae.value,z.next=j.nextLoc,z.method!=="return"&&(z.method="next",z.arg=a);else return ae;return z.delegate=null,w}I(_),p(_,d,"Generator"),p(_,c,function(){return this}),p(_,"toString",function(){return"[object Generator]"});function D(j){var z={tryLoc:j[0]};1 in j&&(z.catchLoc=j[1]),2 in j&&(z.finallyLoc=j[2],z.afterLoc=j[3]),this.tryEntries.push(z)}function K(j){var z=j.completion||{};z.type="normal",delete z.arg,j.completion=z}function H(j){this.tryEntries=[{tryLoc:"root"}],j.forEach(D,this),this.reset(!0)}n.keys=function(j){var z=Object(j),O=[];for(var B in z)O.push(B);return O.reverse(),function Z(){for(;O.length;){var ae=O.pop();if(ae in z)return Z.value=ae,Z.done=!1,Z}return Z.done=!0,Z}};function Q(j){if(j){var z=j[c];if(z)return z.call(j);if(typeof j.next=="function")return j;if(!isNaN(j.length)){var O=-1,B=function Z(){for(;++O<j.length;)if(o.call(j,O))return Z.value=j[O],Z.done=!1,Z;return Z.value=a,Z.done=!0,Z};return B.next=B}}return{next:V}}n.values=Q;function V(){return{value:a,done:!0}}return H.prototype={constructor:H,reset:function(j){if(this.prev=0,this.next=0,this.sent=this._sent=a,this.done=!1,this.delegate=null,this.method="next",this.arg=a,this.tryEntries.forEach(K),!j)for(var z in this)z.charAt(0)==="t"&&o.call(this,z)&&!isNaN(+z.slice(1))&&(this[z]=a)},stop:function(){this.done=!0;var j=this.tryEntries[0],z=j.completion;if(z.type==="throw")throw z.arg;return this.rval},dispatchException:function(j){if(this.done)throw j;var z=this;function O(Ie,ne){return ae.type="throw",ae.arg=j,z.next=Ie,ne&&(z.method="next",z.arg=a),!!ne}for(var B=this.tryEntries.length-1;B>=0;--B){var Z=this.tryEntries[B],ae=Z.completion;if(Z.tryLoc==="root")return O("end");if(Z.tryLoc<=this.prev){var Ae=o.call(Z,"catchLoc"),fe=o.call(Z,"finallyLoc");if(Ae&&fe){if(this.prev<Z.catchLoc)return O(Z.catchLoc,!0);if(this.prev<Z.finallyLoc)return O(Z.finallyLoc)}else if(Ae){if(this.prev<Z.catchLoc)return O(Z.catchLoc,!0)}else if(fe){if(this.prev<Z.finallyLoc)return O(Z.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(j,z){for(var O=this.tryEntries.length-1;O>=0;--O){var B=this.tryEntries[O];if(B.tryLoc<=this.prev&&o.call(B,"finallyLoc")&&this.prev<B.finallyLoc){var Z=B;break}}Z&&(j==="break"||j==="continue")&&Z.tryLoc<=z&&z<=Z.finallyLoc&&(Z=null);var ae=Z?Z.completion:{};return ae.type=j,ae.arg=z,Z?(this.method="next",this.next=Z.finallyLoc,w):this.complete(ae)},complete:function(j,z){if(j.type==="throw")throw j.arg;return j.type==="break"||j.type==="continue"?this.next=j.arg:j.type==="return"?(this.rval=this.arg=j.arg,this.method="return",this.next="end"):j.type==="normal"&&z&&(this.next=z),w},finish:function(j){for(var z=this.tryEntries.length-1;z>=0;--z){var O=this.tryEntries[z];if(O.finallyLoc===j)return this.complete(O.completion,O.afterLoc),K(O),w}},catch:function(j){for(var z=this.tryEntries.length-1;z>=0;--z){var O=this.tryEntries[z];if(O.tryLoc===j){var B=O.completion;if(B.type==="throw"){var Z=B.arg;K(O)}return Z}}throw new Error("illegal catch attempt")},delegateYield:function(j,z,O){return this.delegate={iterator:Q(j),resultName:z,nextLoc:O},this.method==="next"&&(this.arg=a),w}},n}(e.exports);try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}})(GB);var K4={exports:{}},Hi={},Y4={exports:{}},X4={};/** @license React v0.20.2
21
- * scheduler.production.min.js
22
- *
23
- * Copyright (c) Facebook, Inc. and its affiliates.
24
- *
25
- * This source code is licensed under the MIT license found in the
26
- * LICENSE file in the root directory of this source tree.
27
- */(function(e){var t,n,r,o;if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}if(typeof window>"u"||typeof MessageChannel!="function"){var c=null,u=null,d=function(){if(c!==null)try{var O=e.unstable_now();c(!0,O),c=null}catch(B){throw setTimeout(d,0),B}};t=function(O){c!==null?setTimeout(t,0,O):(c=O,setTimeout(d,0))},n=function(O,B){u=setTimeout(O,B)},r=function(){clearTimeout(u)},e.unstable_shouldYield=function(){return!1},o=e.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,f=window.clearTimeout;if(typeof console<"u"){var h=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof h!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var g=!1,v=null,y=-1,b=5,w=0;e.unstable_shouldYield=function(){return e.unstable_now()>=w},o=function(){},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<O?Math.floor(1e3/O):5};var S=new MessageChannel,k=S.port2;S.port1.onmessage=function(){if(v!==null){var O=e.unstable_now();w=O+b;try{v(!0,O)?k.postMessage(null):(g=!1,v=null)}catch(B){throw k.postMessage(null),B}}else g=!1},t=function(O){v=O,g||(g=!0,k.postMessage(null))},n=function(O,B){y=p(function(){O(e.unstable_now())},B)},r=function(){f(y),y=-1}}function A(O,B){var Z=O.length;O.push(B);e:for(;;){var ae=Z-1>>>1,Ae=O[ae];if(Ae!==void 0&&0<P(Ae,B))O[ae]=B,O[Z]=Ae,Z=ae;else break e}}function T(O){return O=O[0],O===void 0?null:O}function R(O){var B=O[0];if(B!==void 0){var Z=O.pop();if(Z!==B){O[0]=Z;e:for(var ae=0,Ae=O.length;ae<Ae;){var fe=2*(ae+1)-1,Ie=O[fe],ne=fe+1,ie=O[ne];if(Ie!==void 0&&0>P(Ie,Z))ie!==void 0&&0>P(ie,Ie)?(O[ae]=ie,O[ne]=Z,ae=ne):(O[ae]=Ie,O[fe]=Z,ae=fe);else if(ie!==void 0&&0>P(ie,Z))O[ae]=ie,O[ne]=Z,ae=ne;else break e}}return B}return null}function P(O,B){var Z=O.sortIndex-B.sortIndex;return Z!==0?Z:O.id-B.id}var _=[],I=[],$=1,U=null,M=3,D=!1,K=!1,H=!1;function Q(O){for(var B=T(I);B!==null;){if(B.callback===null)R(I);else if(B.startTime<=O)R(I),B.sortIndex=B.expirationTime,A(_,B);else break;B=T(I)}}function V(O){if(H=!1,Q(O),!K)if(T(_)!==null)K=!0,t(j);else{var B=T(I);B!==null&&n(V,B.startTime-O)}}function j(O,B){K=!1,H&&(H=!1,r()),D=!0;var Z=M;try{for(Q(B),U=T(_);U!==null&&(!(U.expirationTime>B)||O&&!e.unstable_shouldYield());){var ae=U.callback;if(typeof ae=="function"){U.callback=null,M=U.priorityLevel;var Ae=ae(U.expirationTime<=B);B=e.unstable_now(),typeof Ae=="function"?U.callback=Ae:U===T(_)&&R(_),Q(B)}else R(_);U=T(_)}if(U!==null)var fe=!0;else{var Ie=T(I);Ie!==null&&n(V,Ie.startTime-B),fe=!1}return fe}finally{U=null,M=Z,D=!1}}var z=o;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(O){O.callback=null},e.unstable_continueExecution=function(){K||D||(K=!0,t(j))},e.unstable_getCurrentPriorityLevel=function(){return M},e.unstable_getFirstCallbackNode=function(){return T(_)},e.unstable_next=function(O){switch(M){case 1:case 2:case 3:var B=3;break;default:B=M}var Z=M;M=B;try{return O()}finally{M=Z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=z,e.unstable_runWithPriority=function(O,B){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var Z=M;M=O;try{return B()}finally{M=Z}},e.unstable_scheduleCallback=function(O,B,Z){var ae=e.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?ae+Z:ae):Z=ae,O){case 1:var Ae=-1;break;case 2:Ae=250;break;case 5:Ae=1073741823;break;case 4:Ae=1e4;break;default:Ae=5e3}return Ae=Z+Ae,O={id:$++,callback:B,priorityLevel:O,startTime:Z,expirationTime:Ae,sortIndex:-1},Z>ae?(O.sortIndex=Z,A(I,O),T(_)===null&&O===T(I)&&(H?r():H=!0,n(V,Z-ae))):(O.sortIndex=Ae,A(_,O),K||D||(K=!0,t(j))),O},e.unstable_wrapCallback=function(O){var B=M;return function(){var Z=M;M=B;try{return O.apply(this,arguments)}finally{M=Z}}}})(X4);Y4.exports=X4;var qB=Y4.exports;/** @license React v17.0.2
28
- * react-dom.production.min.js
29
- *
30
- * Copyright (c) Facebook, Inc. and its affiliates.
31
- *
32
- * This source code is licensed under the MIT license found in the
33
- * LICENSE file in the root directory of this source tree.
34
- */var Xv=m,er=R4,Gr=qB;function Ue(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;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."}if(!Xv)throw Error(Ue(227));var J4=new Set,wf={};function Sc(e,t){Du(e,t),Du(e+"Capture",t)}function Du(e,t){for(wf[e]=t,e=0;e<t.length;e++)J4.add(t[e])}var ys=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),KB=/^[: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]*$/,Nk=Object.prototype.hasOwnProperty,Lk={},Mk={};function YB(e){return Nk.call(Mk,e)?!0:Nk.call(Lk,e)?!1:KB.test(e)?Mk[e]=!0:(Lk[e]=!0,!1)}function XB(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function JB(e,t,n,r){if(t===null||typeof t>"u"||XB(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ko(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var ro={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ro[e]=new ko(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ro[t]=new ko(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ro[e]=new ko(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ro[e]=new ko(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ro[e]=new ko(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ro[e]=new ko(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ro[e]=new ko(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ro[e]=new ko(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ro[e]=new ko(e,5,!1,e.toLowerCase(),null,!1,!1)});var rC=/[\-:]([a-z])/g;function oC(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(rC,oC);ro[t]=new ko(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(rC,oC);ro[t]=new ko(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(rC,oC);ro[t]=new ko(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ro[e]=new ko(e,1,!1,e.toLowerCase(),null,!1,!1)});ro.xlinkHref=new ko("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ro[e]=new ko(e,1,!1,e.toLowerCase(),null,!0,!0)});function iC(e,t,n,r){var o=ro.hasOwnProperty(t)?ro[t]:null,i=o!==null?o.type===0:r?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");i||(JB(t,n,o,r)&&(n=null),r||o===null?YB(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var xc=Xv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Lp=60103,Xl=60106,Fs=60107,aC=60108,Gp=60114,sC=60109,lC=60110,Jv=60112,qp=60113,jg=60120,Qv=60115,cC=60116,uC=60121,dC=60128,Q4=60129,pC=60130,jw=60131;if(typeof Symbol=="function"&&Symbol.for){var jr=Symbol.for;Lp=jr("react.element"),Xl=jr("react.portal"),Fs=jr("react.fragment"),aC=jr("react.strict_mode"),Gp=jr("react.profiler"),sC=jr("react.provider"),lC=jr("react.context"),Jv=jr("react.forward_ref"),qp=jr("react.suspense"),jg=jr("react.suspense_list"),Qv=jr("react.memo"),cC=jr("react.lazy"),uC=jr("react.block"),jr("react.scope"),dC=jr("react.opaque.id"),Q4=jr("react.debug_trace_mode"),pC=jr("react.offscreen"),jw=jr("react.legacy_hidden")}var Dk=typeof Symbol=="function"&&Symbol.iterator;function Kd(e){return e===null||typeof e!="object"?null:(e=Dk&&e[Dk]||e["@@iterator"],typeof e=="function"?e:null)}var X0;function Mp(e){if(X0===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);X0=t&&t[1]||""}return`
35
- `+X0+e}var J0=!1;function ym(e,t){if(!e||J0)return"";J0=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var o=c.stack.split(`
36
- `),i=r.stack.split(`
37
- `),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(a!==1||s!==1)do if(a--,s--,0>s||o[a]!==i[s])return`
38
- `+o[a].replace(" at new "," at ");while(1<=a&&0<=s);break}}}finally{J0=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Mp(e):""}function QB(e){switch(e.tag){case 5:return Mp(e.type);case 16:return Mp("Lazy");case 13:return Mp("Suspense");case 19:return Mp("SuspenseList");case 0:case 2:case 15:return e=ym(e.type,!1),e;case 11:return e=ym(e.type.render,!1),e;case 22:return e=ym(e.type._render,!1),e;case 1:return e=ym(e.type,!0),e;default:return""}}function hu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fs:return"Fragment";case Xl:return"Portal";case Gp:return"Profiler";case aC:return"StrictMode";case qp:return"Suspense";case jg:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case lC:return(e.displayName||"Context")+".Consumer";case sC:return(e._context.displayName||"Context")+".Provider";case Jv:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Qv:return hu(e.type);case uC:return hu(e._render);case cC:t=e._payload,e=e._init;try{return hu(e(t))}catch{}}return null}function al(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Z4(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ZB(e){var t=Z4(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bm(e){e._valueTracker||(e._valueTracker=ZB(e))}function eO(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Z4(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ug(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Uw(e,t){var n=t.checked;return er({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Bk(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=al(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function tO(e,t){t=t.checked,t!=null&&iC(e,"checked",t,!1)}function Ww(e,t){tO(e,t);var n=al(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Hw(e,t.type,n):t.hasOwnProperty("defaultValue")&&Hw(e,t.type,al(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Fk(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Hw(e,t,n){(t!=="number"||Ug(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function e7(e){var t="";return Xv.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}function Vw(e,t){return e=er({children:void 0},t),(t=e7(t.children))&&(e.children=t),e}function mu(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+al(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Gw(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Ue(91));return er({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function zk(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Ue(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(Ue(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:al(n)}}function nO(e,t){var n=al(t.value),r=al(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function jk(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var qw={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function rO(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Kw(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?rO(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var wm,oO=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!==qw.svg||"innerHTML"in e)e.innerHTML=t;else{for(wm=wm||document.createElement("div"),wm.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=wm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Sf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Kp={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},t7=["Webkit","ms","Moz","O"];Object.keys(Kp).forEach(function(e){t7.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Kp[t]=Kp[e]})});function iO(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Kp.hasOwnProperty(e)&&Kp[e]?(""+t).trim():t+"px"}function aO(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=iO(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var n7=er({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Yw(e,t){if(t){if(n7[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ue(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ue(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(Ue(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ue(62))}}function Xw(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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}}function fC(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Jw=null,gu=null,vu=null;function Uk(e){if(e=vh(e)){if(typeof Jw!="function")throw Error(Ue(280));var t=e.stateNode;t&&(t=oy(t),Jw(e.stateNode,e.type,t))}}function sO(e){gu?vu?vu.push(e):vu=[e]:gu=e}function lO(){if(gu){var e=gu,t=vu;if(vu=gu=null,Uk(e),t)for(e=0;e<t.length;e++)Uk(t[e])}}function hC(e,t){return e(t)}function cO(e,t,n,r,o){return e(t,n,r,o)}function mC(){}var uO=hC,Jl=!1,Q0=!1;function gC(){(gu!==null||vu!==null)&&(mC(),lO())}function r7(e,t,n){if(Q0)return e(t,n);Q0=!0;try{return uO(e,t,n)}finally{Q0=!1,gC()}}function xf(e,t){var n=e.stateNode;if(n===null)return null;var r=oy(n);if(r===null)return null;n=r[t];e: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 e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Ue(231,t,typeof n));return n}var Qw=!1;if(ys)try{var Yd={};Object.defineProperty(Yd,"passive",{get:function(){Qw=!0}}),window.addEventListener("test",Yd,Yd),window.removeEventListener("test",Yd,Yd)}catch{Qw=!1}function o7(e,t,n,r,o,i,a,s,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Yp=!1,Wg=null,Hg=!1,Zw=null,i7={onError:function(e){Yp=!0,Wg=e}};function a7(e,t,n,r,o,i,a,s,c){Yp=!1,Wg=null,o7.apply(i7,arguments)}function s7(e,t,n,r,o,i,a,s,c){if(a7.apply(this,arguments),Yp){if(Yp){var u=Wg;Yp=!1,Wg=null}else throw Error(Ue(198));Hg||(Hg=!0,Zw=u)}}function Cc(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&1026&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function dO(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 Wk(e){if(Cc(e)!==e)throw Error(Ue(188))}function l7(e){var t=e.alternate;if(!t){if(t=Cc(e),t===null)throw Error(Ue(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Wk(o),e;if(i===r)return Wk(o),t;i=i.sibling}throw Error(Ue(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a)throw Error(Ue(189))}}if(n.alternate!==r)throw Error(Ue(190))}if(n.tag!==3)throw Error(Ue(188));return n.stateNode.current===n?e:t}function pO(e){if(e=l7(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Hk(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var fO,vC,hO,mO,eS=!1,ka=[],Ys=null,Xs=null,Js=null,Cf=new Map,Ef=new Map,Xd=[],Vk="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function tS(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:o,targetContainers:[r]}}function Gk(e,t){switch(e){case"focusin":case"focusout":Ys=null;break;case"dragenter":case"dragleave":Xs=null;break;case"mouseover":case"mouseout":Js=null;break;case"pointerover":case"pointerout":Cf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ef.delete(t.pointerId)}}function Jd(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e=tS(t,n,r,o,i),t!==null&&(t=vh(t),t!==null&&vC(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function c7(e,t,n,r,o){switch(t){case"focusin":return Ys=Jd(Ys,e,t,n,r,o),!0;case"dragenter":return Xs=Jd(Xs,e,t,n,r,o),!0;case"mouseover":return Js=Jd(Js,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Cf.set(i,Jd(Cf.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Ef.set(i,Jd(Ef.get(i)||null,e,t,n,r,o)),!0}return!1}function u7(e){var t=Ql(e.target);if(t!==null){var n=Cc(t);if(n!==null){if(t=n.tag,t===13){if(t=dO(n),t!==null){e.blockedOn=t,mO(e.lanePriority,function(){Gr.unstable_runWithPriority(e.priority,function(){hO(n)})});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function mg(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=SC(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=vh(n),t!==null&&vC(t),e.blockedOn=n,!1;t.shift()}return!0}function qk(e,t,n){mg(e)&&n.delete(t)}function d7(){for(eS=!1;0<ka.length;){var e=ka[0];if(e.blockedOn!==null){e=vh(e.blockedOn),e!==null&&fO(e);break}for(var t=e.targetContainers;0<t.length;){var n=SC(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null){e.blockedOn=n;break}t.shift()}e.blockedOn===null&&ka.shift()}Ys!==null&&mg(Ys)&&(Ys=null),Xs!==null&&mg(Xs)&&(Xs=null),Js!==null&&mg(Js)&&(Js=null),Cf.forEach(qk),Ef.forEach(qk)}function Qd(e,t){e.blockedOn===t&&(e.blockedOn=null,eS||(eS=!0,Gr.unstable_scheduleCallback(Gr.unstable_NormalPriority,d7)))}function gO(e){function t(o){return Qd(o,e)}if(0<ka.length){Qd(ka[0],e);for(var n=1;n<ka.length;n++){var r=ka[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ys!==null&&Qd(Ys,e),Xs!==null&&Qd(Xs,e),Js!==null&&Qd(Js,e),Cf.forEach(t),Ef.forEach(t),n=0;n<Xd.length;n++)r=Xd[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Xd.length&&(n=Xd[0],n.blockedOn===null);)u7(n),n.blockedOn===null&&Xd.shift()}function Sm(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ou={animationend:Sm("Animation","AnimationEnd"),animationiteration:Sm("Animation","AnimationIteration"),animationstart:Sm("Animation","AnimationStart"),transitionend:Sm("Transition","TransitionEnd")},Z0={},vO={};ys&&(vO=document.createElement("div").style,"AnimationEvent"in window||(delete ou.animationend.animation,delete ou.animationiteration.animation,delete ou.animationstart.animation),"TransitionEvent"in window||delete ou.transitionend.transition);function Zv(e){if(Z0[e])return Z0[e];if(!ou[e])return e;var t=ou[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in vO)return Z0[e]=t[n];return e}var yO=Zv("animationend"),bO=Zv("animationiteration"),wO=Zv("animationstart"),SO=Zv("transitionend"),xO=new Map,yC=new Map,p7=["abort","abort",yO,"animationEnd",bO,"animationIteration",wO,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",SO,"transitionEnd","waiting","waiting"];function bC(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];o="on"+(o[0].toUpperCase()+o.slice(1)),yC.set(r,t),xO.set(r,o),Sc(o,[r])}}var f7=Gr.unstable_now;f7();var Un=8;function Zc(e){if(1&e)return Un=15,1;if(2&e)return Un=14,2;if(4&e)return Un=13,4;var t=24&e;return t!==0?(Un=12,t):e&32?(Un=11,32):(t=192&e,t!==0?(Un=10,t):e&256?(Un=9,256):(t=3584&e,t!==0?(Un=8,t):e&4096?(Un=7,4096):(t=4186112&e,t!==0?(Un=6,t):(t=62914560&e,t!==0?(Un=5,t):e&67108864?(Un=4,67108864):e&134217728?(Un=3,134217728):(t=805306368&e,t!==0?(Un=2,t):1073741824&e?(Un=1,1073741824):(Un=8,e))))))}function h7(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function m7(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(Ue(358,e))}}function Tf(e,t){var n=e.pendingLanes;if(n===0)return Un=0;var r=0,o=0,i=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(i!==0)r=i,o=Un=15;else if(i=n&134217727,i!==0){var c=i&~a;c!==0?(r=Zc(c),o=Un):(s&=i,s!==0&&(r=Zc(s),o=Un))}else i=n&~a,i!==0?(r=Zc(i),o=Un):s!==0&&(r=Zc(s),o=Un);if(r===0)return 0;if(r=31-sl(r),r=n&((0>r?0:1<<r)<<1)-1,t!==0&&t!==r&&!(t&a)){if(Zc(t),o<=Un)return t;Un=o}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-sl(t),o=1<<n,r|=e[n],t&=~o;return r}function CO(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Vg(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=eu(24&~t),e===0?Vg(10,t):e;case 10:return e=eu(192&~t),e===0?Vg(8,t):e;case 8:return e=eu(3584&~t),e===0&&(e=eu(4186112&~t),e===0&&(e=512)),e;case 2:return t=eu(805306368&~t),t===0&&(t=268435456),t}throw Error(Ue(358,e))}function eu(e){return e&-e}function eb(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ey(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,e=e.eventTimes,t=31-sl(t),e[t]=n}var sl=Math.clz32?Math.clz32:y7,g7=Math.log,v7=Math.LN2;function y7(e){return e===0?32:31-(g7(e)/v7|0)|0}var b7=Gr.unstable_UserBlockingPriority,w7=Gr.unstable_runWithPriority,gg=!0;function S7(e,t,n,r){Jl||mC();var o=wC,i=Jl;Jl=!0;try{cO(o,e,t,n,r)}finally{(Jl=i)||gC()}}function x7(e,t,n,r){w7(b7,wC.bind(null,e,t,n,r))}function wC(e,t,n,r){if(gg){var o;if((o=(t&4)===0)&&0<ka.length&&-1<Vk.indexOf(e))e=tS(null,e,t,n,r),ka.push(e);else{var i=SC(e,t,n,r);if(i===null)o&&Gk(e,r);else{if(o){if(-1<Vk.indexOf(e)){e=tS(i,e,t,n,r),ka.push(e);return}if(c7(i,e,t,n,r))return;Gk(e,r)}MO(e,t,r,null,n)}}}}function SC(e,t,n,r){var o=fC(r);if(o=Ql(o),o!==null){var i=Cc(o);if(i===null)o=null;else{var a=i.tag;if(a===13){if(o=dO(i),o!==null)return o;o=null}else if(a===3){if(i.stateNode.hydrate)return i.tag===3?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return MO(e,t,r,o,n),null}var Us=null,xC=null,vg=null;function EO(){if(vg)return vg;var e,t=xC,n=t.length,r,o="value"in Us?Us.value:Us.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===o[i-r];r++);return vg=o.slice(e,1<r?1-r:void 0)}function yg(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 xm(){return!0}function Kk(){return!1}function ui(e){function t(n,r,o,i,a){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?xm:Kk,this.isPropagationStopped=Kk,this}return er(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=xm)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=xm)},persist:function(){},isPersistent:xm}),t}var ld={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},CC=ui(ld),gh=er({},ld,{view:0,detail:0}),C7=ui(gh),tb,nb,Zd,ty=er({},gh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:EC,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!==Zd&&(Zd&&e.type==="mousemove"?(tb=e.screenX-Zd.screenX,nb=e.screenY-Zd.screenY):nb=tb=0,Zd=e),tb)},movementY:function(e){return"movementY"in e?e.movementY:nb}}),Yk=ui(ty),E7=er({},ty,{dataTransfer:0}),T7=ui(E7),k7=er({},gh,{relatedTarget:0}),rb=ui(k7),A7=er({},ld,{animationName:0,elapsedTime:0,pseudoElement:0}),R7=ui(A7),_7=er({},ld,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),P7=ui(_7),I7=er({},ld,{data:0}),Xk=ui(I7),O7={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$7={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"},N7={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function L7(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=N7[e])?!!t[e]:!1}function EC(){return L7}var M7=er({},gh,{key:function(e){if(e.key){var t=O7[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=yg(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$7[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:EC,charCode:function(e){return e.type==="keypress"?yg(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?yg(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),D7=ui(M7),B7=er({},ty,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jk=ui(B7),F7=er({},gh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:EC}),z7=ui(F7),j7=er({},ld,{propertyName:0,elapsedTime:0,pseudoElement:0}),U7=ui(j7),W7=er({},ty,{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}),H7=ui(W7),V7=[9,13,27,32],TC=ys&&"CompositionEvent"in window,Xp=null;ys&&"documentMode"in document&&(Xp=document.documentMode);var G7=ys&&"TextEvent"in window&&!Xp,TO=ys&&(!TC||Xp&&8<Xp&&11>=Xp),Qk=String.fromCharCode(32),Zk=!1;function kO(e,t){switch(e){case"keyup":return V7.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function AO(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var iu=!1;function q7(e,t){switch(e){case"compositionend":return AO(t);case"keypress":return t.which!==32?null:(Zk=!0,Qk);case"textInput":return e=t.data,e===Qk&&Zk?null:e;default:return null}}function K7(e,t){if(iu)return e==="compositionend"||!TC&&kO(e,t)?(e=EO(),vg=xC=Us=null,iu=!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 TO&&t.locale!=="ko"?null:t.data;default:return null}}var Y7={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 eA(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Y7[e.type]:t==="textarea"}function RO(e,t,n,r){sO(r),t=Gg(t,"onChange"),0<t.length&&(n=new CC("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Jp=null,kf=null;function X7(e){$O(e,0)}function ny(e){var t=su(e);if(eO(t))return e}function J7(e,t){if(e==="change")return t}var _O=!1;if(ys){var ob;if(ys){var ib="oninput"in document;if(!ib){var tA=document.createElement("div");tA.setAttribute("oninput","return;"),ib=typeof tA.oninput=="function"}ob=ib}else ob=!1;_O=ob&&(!document.documentMode||9<document.documentMode)}function nA(){Jp&&(Jp.detachEvent("onpropertychange",PO),kf=Jp=null)}function PO(e){if(e.propertyName==="value"&&ny(kf)){var t=[];if(RO(t,kf,e,fC(e)),e=X7,Jl)e(t);else{Jl=!0;try{hC(e,t)}finally{Jl=!1,gC()}}}}function Q7(e,t,n){e==="focusin"?(nA(),Jp=t,kf=n,Jp.attachEvent("onpropertychange",PO)):e==="focusout"&&nA()}function Z7(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ny(kf)}function eF(e,t){if(e==="click")return ny(t)}function tF(e,t){if(e==="input"||e==="change")return ny(t)}function nF(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wi=typeof Object.is=="function"?Object.is:nF,rF=Object.prototype.hasOwnProperty;function Af(e,t){if(wi(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)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++)if(!rF.call(t,n[r])||!wi(e[n[r]],t[n[r]]))return!1;return!0}function rA(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function oA(e,t){var n=rA(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}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=rA(n)}}function IO(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?IO(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function iA(){for(var e=window,t=Ug();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ug(e.document)}return t}function nS(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 oF=ys&&"documentMode"in document&&11>=document.documentMode,au=null,rS=null,Qp=null,oS=!1;function aA(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;oS||au==null||au!==Ug(r)||(r=au,"selectionStart"in r&&nS(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}),Qp&&Af(Qp,r)||(Qp=r,r=Gg(rS,"onSelect"),0<r.length&&(t=new CC("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=au)))}bC("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0);bC("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1);bC(p7,2);for(var sA="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),ab=0;ab<sA.length;ab++)yC.set(sA[ab],0);Du("onMouseEnter",["mouseout","mouseover"]);Du("onMouseLeave",["mouseout","mouseover"]);Du("onPointerEnter",["pointerout","pointerover"]);Du("onPointerLeave",["pointerout","pointerover"]);Sc("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Sc("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Sc("onBeforeInput",["compositionend","keypress","textInput","paste"]);Sc("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Sc("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Sc("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dp="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),OO=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dp));function lA(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,s7(r,t,void 0,e),e.currentTarget=null}function $O(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],c=s.instance,u=s.currentTarget;if(s=s.listener,c!==i&&o.isPropagationStopped())break e;lA(o,s,u),i=c}else for(a=0;a<r.length;a++){if(s=r[a],c=s.instance,u=s.currentTarget,s=s.listener,c!==i&&o.isPropagationStopped())break e;lA(o,s,u),i=c}}}if(Hg)throw e=Zw,Hg=!1,Zw=null,e}function Vn(e,t){var n=BO(t),r=e+"__bubble";n.has(r)||(LO(t,e,2,!1),n.add(r))}var cA="_reactListening"+Math.random().toString(36).slice(2);function NO(e){e[cA]||(e[cA]=!0,J4.forEach(function(t){OO.has(t)||uA(t,!1,e,null),uA(t,!0,e,null)}))}function uA(e,t,n,r){var o=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,i=n;if(e==="selectionchange"&&n.nodeType!==9&&(i=n.ownerDocument),r!==null&&!t&&OO.has(e)){if(e!=="scroll")return;o|=2,i=r}var a=BO(i),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(o|=4),LO(i,e,o,t),a.add(s))}function LO(e,t,n,r){var o=yC.get(t);switch(o===void 0?2:o){case 0:o=S7;break;case 1:o=x7;break;default:o=wC}n=o.bind(null,t,n,e),o=void 0,!Qw||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function MO(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(a===4)for(a=r.return;a!==null;){var c=a.tag;if((c===3||c===4)&&(c=a.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;a=a.return}for(;s!==null;){if(a=Ql(s),a===null)return;if(c=a.tag,c===5||c===6){r=i=a;continue e}s=s.parentNode}}r=r.return}r7(function(){var u=i,d=fC(n),p=[];e:{var f=xO.get(e);if(f!==void 0){var h=CC,g=e;switch(e){case"keypress":if(yg(n)===0)break e;case"keydown":case"keyup":h=D7;break;case"focusin":g="focus",h=rb;break;case"focusout":g="blur",h=rb;break;case"beforeblur":case"afterblur":h=rb;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=Yk;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=T7;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=z7;break;case yO:case bO:case wO:h=R7;break;case SO:h=U7;break;case"scroll":h=C7;break;case"wheel":h=H7;break;case"copy":case"cut":case"paste":h=P7;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Jk}var v=(t&4)!==0,y=!v&&e==="scroll",b=v?f!==null?f+"Capture":null:f;v=[];for(var w=u,S;w!==null;){S=w;var k=S.stateNode;if(S.tag===5&&k!==null&&(S=k,b!==null&&(k=xf(w,b),k!=null&&v.push(Rf(w,k,S)))),y)break;w=w.return}0<v.length&&(f=new h(f,g,null,n,d),p.push({event:f,listeners:v}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&!(t&16)&&(g=n.relatedTarget||n.fromElement)&&(Ql(g)||g[cd]))break e;if((h||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,h?(g=n.relatedTarget||n.toElement,h=u,g=g?Ql(g):null,g!==null&&(y=Cc(g),g!==y||g.tag!==5&&g.tag!==6)&&(g=null)):(h=null,g=u),h!==g)){if(v=Yk,k="onMouseLeave",b="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(v=Jk,k="onPointerLeave",b="onPointerEnter",w="pointer"),y=h==null?f:su(h),S=g==null?f:su(g),f=new v(k,w+"leave",h,n,d),f.target=y,f.relatedTarget=S,k=null,Ql(d)===u&&(v=new v(b,w+"enter",g,n,d),v.target=S,v.relatedTarget=y,k=v),y=k,h&&g)t:{for(v=h,b=g,w=0,S=v;S;S=Fc(S))w++;for(S=0,k=b;k;k=Fc(k))S++;for(;0<w-S;)v=Fc(v),w--;for(;0<S-w;)b=Fc(b),S--;for(;w--;){if(v===b||b!==null&&v===b.alternate)break t;v=Fc(v),b=Fc(b)}v=null}else v=null;h!==null&&dA(p,f,h,v,!1),g!==null&&y!==null&&dA(p,y,g,v,!0)}}e:{if(f=u?su(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var A=J7;else if(eA(f))if(_O)A=tF;else{A=Z7;var T=Q7}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(A=eF);if(A&&(A=A(e,u))){RO(p,A,n,d);break e}T&&T(e,f,u),e==="focusout"&&(T=f._wrapperState)&&T.controlled&&f.type==="number"&&Hw(f,"number",f.value)}switch(T=u?su(u):window,e){case"focusin":(eA(T)||T.contentEditable==="true")&&(au=T,rS=u,Qp=null);break;case"focusout":Qp=rS=au=null;break;case"mousedown":oS=!0;break;case"contextmenu":case"mouseup":case"dragend":oS=!1,aA(p,n,d);break;case"selectionchange":if(oF)break;case"keydown":case"keyup":aA(p,n,d)}var R;if(TC)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else iu?kO(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(TO&&n.locale!=="ko"&&(iu||P!=="onCompositionStart"?P==="onCompositionEnd"&&iu&&(R=EO()):(Us=d,xC="value"in Us?Us.value:Us.textContent,iu=!0)),T=Gg(u,P),0<T.length&&(P=new Xk(P,e,null,n,d),p.push({event:P,listeners:T}),R?P.data=R:(R=AO(n),R!==null&&(P.data=R)))),(R=G7?q7(e,n):K7(e,n))&&(u=Gg(u,"onBeforeInput"),0<u.length&&(d=new Xk("onBeforeInput","beforeinput",null,n,d),p.push({event:d,listeners:u}),d.data=R))}$O(p,t)})}function Rf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gg(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=xf(e,n),i!=null&&r.unshift(Rf(e,i,o)),i=xf(e,t),i!=null&&r.push(Rf(e,i,o))),e=e.return}return r}function Fc(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function dA(e,t,n,r,o){for(var i=t._reactName,a=[];n!==null&&n!==r;){var s=n,c=s.alternate,u=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&u!==null&&(s=u,o?(c=xf(n,i),c!=null&&a.unshift(Rf(n,c,s))):o||(c=xf(n,i),c!=null&&a.push(Rf(n,c,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}function qg(){}var sb=null,lb=null;function DO(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function iS(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var pA=typeof setTimeout=="function"?setTimeout:void 0,iF=typeof clearTimeout=="function"?clearTimeout:void 0;function kC(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function yu(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function fA(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var cb=0;function aF(e){return{$$typeof:dC,toString:e,valueOf:e}}var ry=Math.random().toString(36).slice(2),Ws="__reactFiber$"+ry,Kg="__reactProps$"+ry,cd="__reactContainer$"+ry,hA="__reactEvents$"+ry;function Ql(e){var t=e[Ws];if(t)return t;for(var n=e.parentNode;n;){if(t=n[cd]||n[Ws]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=fA(e);e!==null;){if(n=e[Ws])return n;e=fA(e)}return t}e=n,n=e.parentNode}return null}function vh(e){return e=e[Ws]||e[cd],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function su(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Ue(33))}function oy(e){return e[Kg]||null}function BO(e){var t=e[hA];return t===void 0&&(t=e[hA]=new Set),t}var aS=[],lu=-1;function Sl(e){return{current:e}}function qn(e){0>lu||(e.current=aS[lu],aS[lu]=null,lu--)}function hr(e,t){lu++,aS[lu]=e.current,e.current=t}var ll={},mo=Sl(ll),Do=Sl(!1),cc=ll;function Bu(e,t){var n=e.type.contextTypes;if(!n)return ll;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Bo(e){return e=e.childContextTypes,e!=null}function Yg(){qn(Do),qn(mo)}function mA(e,t,n){if(mo.current!==ll)throw Error(Ue(168));hr(mo,t),hr(Do,n)}function FO(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in e))throw Error(Ue(108,hu(t)||"Unknown",o));return er({},n,r)}function bg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ll,cc=mo.current,hr(mo,e),hr(Do,Do.current),!0}function gA(e,t,n){var r=e.stateNode;if(!r)throw Error(Ue(169));n?(e=FO(e,t,cc),r.__reactInternalMemoizedMergedChildContext=e,qn(Do),qn(mo),hr(mo,e)):qn(Do),hr(Do,n)}var AC=null,oc=null,sF=Gr.unstable_runWithPriority,RC=Gr.unstable_scheduleCallback,sS=Gr.unstable_cancelCallback,lF=Gr.unstable_shouldYield,vA=Gr.unstable_requestPaint,lS=Gr.unstable_now,cF=Gr.unstable_getCurrentPriorityLevel,iy=Gr.unstable_ImmediatePriority,zO=Gr.unstable_UserBlockingPriority,jO=Gr.unstable_NormalPriority,UO=Gr.unstable_LowPriority,WO=Gr.unstable_IdlePriority,ub={},uF=vA!==void 0?vA:function(){},as=null,wg=null,db=!1,yA=lS(),fo=1e4>yA?lS:function(){return lS()-yA};function Fu(){switch(cF()){case iy:return 99;case zO:return 98;case jO:return 97;case UO:return 96;case WO:return 95;default:throw Error(Ue(332))}}function HO(e){switch(e){case 99:return iy;case 98:return zO;case 97:return jO;case 96:return UO;case 95:return WO;default:throw Error(Ue(332))}}function uc(e,t){return e=HO(e),sF(e,t)}function _f(e,t,n){return e=HO(e),RC(e,t,n)}function Ga(){if(wg!==null){var e=wg;wg=null,sS(e)}VO()}function VO(){if(!db&&as!==null){db=!0;var e=0;try{var t=as;uc(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}}),as=null}catch(n){throw as!==null&&(as=as.slice(e+1)),RC(iy,Ga),n}finally{db=!1}}}var dF=xc.ReactCurrentBatchConfig;function Qi(e,t){if(e&&e.defaultProps){t=er({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Xg=Sl(null),Jg=null,cu=null,Qg=null;function _C(){Qg=cu=Jg=null}function PC(e){var t=Xg.current;qn(Xg),e.type._context._currentValue=t}function GO(e,t){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)===t){if(n===null||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,n!==null&&(n.childLanes|=t);e=e.return}}function bu(e,t){Jg=e,Qg=cu=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(na=!0),e.firstContext=null)}function $i(e,t){if(Qg!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(Qg=e,t=1073741823),t={context:e,observedBits:t,next:null},cu===null){if(Jg===null)throw Error(Ue(308));cu=t,Jg.dependencies={lanes:0,firstContext:t,responders:null}}else cu=cu.next=t;return e._currentValue}var Ds=!1;function IC(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function qO(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Qs(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Zs(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function bA(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Pf(e,t,n,r){var o=e.updateQueue;Ds=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var c=s,u=c.next;c.next=null,a===null?i=u:a.next=u,a=c;var d=e.alternate;if(d!==null){d=d.updateQueue;var p=d.lastBaseUpdate;p!==a&&(p===null?d.firstBaseUpdate=u:p.next=u,d.lastBaseUpdate=c)}}if(i!==null){p=o.baseState,a=0,d=u=c=null;do{s=i.lane;var f=i.eventTime;if((r&s)===s){d!==null&&(d=d.next={eventTime:f,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var h=e,g=i;switch(s=t,f=n,g.tag){case 1:if(h=g.payload,typeof h=="function"){p=h.call(f,p,s);break e}p=h;break e;case 3:h.flags=h.flags&-4097|64;case 0:if(h=g.payload,s=typeof h=="function"?h.call(f,p,s):h,s==null)break e;p=er({},p,s);break e;case 2:Ds=!0}}i.callback!==null&&(e.flags|=32,s=o.effects,s===null?o.effects=[i]:s.push(i))}else f={eventTime:f,lane:s,tag:i.tag,payload:i.payload,callback:i.callback,next:null},d===null?(u=d=f,c=p):d=d.next=f,a|=s;if(i=i.next,i===null){if(s=o.shared.pending,s===null)break;i=s.next,s.next=null,o.lastBaseUpdate=s,o.shared.pending=null}}while(1);d===null&&(c=p),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=d,bh|=a,e.lanes=a,e.memoizedState=p}}function wA(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(Ue(191,o));o.call(r)}}}var KO=new Xv.Component().refs;function Zg(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:er({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ay={isMounted:function(e){return(e=e._reactInternals)?Cc(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ri(),o=el(e),i=Qs(r,o);i.payload=t,n!=null&&(i.callback=n),Zs(e,i),tl(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ri(),o=el(e),i=Qs(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),Zs(e,i),tl(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ri(),r=el(e),o=Qs(n,r);o.tag=2,t!=null&&(o.callback=t),Zs(e,o),tl(e,r,n)}};function SA(e,t,n,r,o,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!Af(n,r)||!Af(o,i):!0}function YO(e,t,n){var r=!1,o=ll,i=t.contextType;return typeof i=="object"&&i!==null?i=$i(i):(o=Bo(t)?cc:mo.current,r=t.contextTypes,i=(r=r!=null)?Bu(e,o):ll),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ay,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function xA(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&&ay.enqueueReplaceState(t,t.state,null)}function cS(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=KO,IC(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=$i(i):(i=Bo(t)?cc:mo.current,o.context=Bu(e,i)),Pf(e,n,o,r),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Zg(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&ay.enqueueReplaceState(o,o.state,null),Pf(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4)}var Cm=Array.isArray;function ep(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Ue(309));var r=n.stateNode}if(!r)throw Error(Ue(147,e));var o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var a=r.refs;a===KO&&(a=r.refs={}),i===null?delete a[o]:a[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(Ue(284));if(!n._owner)throw Error(Ue(290,e))}return e}function Em(e,t){if(e.type!=="textarea")throw Error(Ue(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function XO(e){function t(y,b){if(e){var w=y.lastEffect;w!==null?(w.nextEffect=b,y.lastEffect=b):y.firstEffect=y.lastEffect=b,b.nextEffect=null,b.flags=8}}function n(y,b){if(!e)return null;for(;b!==null;)t(y,b),b=b.sibling;return null}function r(y,b){for(y=new Map;b!==null;)b.key!==null?y.set(b.key,b):y.set(b.index,b),b=b.sibling;return y}function o(y,b){return y=ul(y,b),y.index=0,y.sibling=null,y}function i(y,b,w){return y.index=w,e?(w=y.alternate,w!==null?(w=w.index,w<b?(y.flags=2,b):w):(y.flags=2,b)):b}function a(y){return e&&y.alternate===null&&(y.flags=2),y}function s(y,b,w,S){return b===null||b.tag!==6?(b=gb(w,y.mode,S),b.return=y,b):(b=o(b,w),b.return=y,b)}function c(y,b,w,S){return b!==null&&b.elementType===w.type?(S=o(b,w.props),S.ref=ep(y,b,w),S.return=y,S):(S=Eg(w.type,w.key,w.props,null,y.mode,S),S.ref=ep(y,b,w),S.return=y,S)}function u(y,b,w,S){return b===null||b.tag!==4||b.stateNode.containerInfo!==w.containerInfo||b.stateNode.implementation!==w.implementation?(b=vb(w,y.mode,S),b.return=y,b):(b=o(b,w.children||[]),b.return=y,b)}function d(y,b,w,S,k){return b===null||b.tag!==7?(b=Cu(w,y.mode,S,k),b.return=y,b):(b=o(b,w),b.return=y,b)}function p(y,b,w){if(typeof b=="string"||typeof b=="number")return b=gb(""+b,y.mode,w),b.return=y,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Lp:return w=Eg(b.type,b.key,b.props,null,y.mode,w),w.ref=ep(y,null,b),w.return=y,w;case Xl:return b=vb(b,y.mode,w),b.return=y,b}if(Cm(b)||Kd(b))return b=Cu(b,y.mode,w,null),b.return=y,b;Em(y,b)}return null}function f(y,b,w,S){var k=b!==null?b.key:null;if(typeof w=="string"||typeof w=="number")return k!==null?null:s(y,b,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Lp:return w.key===k?w.type===Fs?d(y,b,w.props.children,S,k):c(y,b,w,S):null;case Xl:return w.key===k?u(y,b,w,S):null}if(Cm(w)||Kd(w))return k!==null?null:d(y,b,w,S,null);Em(y,w)}return null}function h(y,b,w,S,k){if(typeof S=="string"||typeof S=="number")return y=y.get(w)||null,s(b,y,""+S,k);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Lp:return y=y.get(S.key===null?w:S.key)||null,S.type===Fs?d(b,y,S.props.children,k,S.key):c(b,y,S,k);case Xl:return y=y.get(S.key===null?w:S.key)||null,u(b,y,S,k)}if(Cm(S)||Kd(S))return y=y.get(w)||null,d(b,y,S,k,null);Em(b,S)}return null}function g(y,b,w,S){for(var k=null,A=null,T=b,R=b=0,P=null;T!==null&&R<w.length;R++){T.index>R?(P=T,T=null):P=T.sibling;var _=f(y,T,w[R],S);if(_===null){T===null&&(T=P);break}e&&T&&_.alternate===null&&t(y,T),b=i(_,b,R),A===null?k=_:A.sibling=_,A=_,T=P}if(R===w.length)return n(y,T),k;if(T===null){for(;R<w.length;R++)T=p(y,w[R],S),T!==null&&(b=i(T,b,R),A===null?k=T:A.sibling=T,A=T);return k}for(T=r(y,T);R<w.length;R++)P=h(T,y,R,w[R],S),P!==null&&(e&&P.alternate!==null&&T.delete(P.key===null?R:P.key),b=i(P,b,R),A===null?k=P:A.sibling=P,A=P);return e&&T.forEach(function(I){return t(y,I)}),k}function v(y,b,w,S){var k=Kd(w);if(typeof k!="function")throw Error(Ue(150));if(w=k.call(w),w==null)throw Error(Ue(151));for(var A=k=null,T=b,R=b=0,P=null,_=w.next();T!==null&&!_.done;R++,_=w.next()){T.index>R?(P=T,T=null):P=T.sibling;var I=f(y,T,_.value,S);if(I===null){T===null&&(T=P);break}e&&T&&I.alternate===null&&t(y,T),b=i(I,b,R),A===null?k=I:A.sibling=I,A=I,T=P}if(_.done)return n(y,T),k;if(T===null){for(;!_.done;R++,_=w.next())_=p(y,_.value,S),_!==null&&(b=i(_,b,R),A===null?k=_:A.sibling=_,A=_);return k}for(T=r(y,T);!_.done;R++,_=w.next())_=h(T,y,R,_.value,S),_!==null&&(e&&_.alternate!==null&&T.delete(_.key===null?R:_.key),b=i(_,b,R),A===null?k=_:A.sibling=_,A=_);return e&&T.forEach(function($){return t(y,$)}),k}return function(y,b,w,S){var k=typeof w=="object"&&w!==null&&w.type===Fs&&w.key===null;k&&(w=w.props.children);var A=typeof w=="object"&&w!==null;if(A)switch(w.$$typeof){case Lp:e:{for(A=w.key,k=b;k!==null;){if(k.key===A){switch(k.tag){case 7:if(w.type===Fs){n(y,k.sibling),b=o(k,w.props.children),b.return=y,y=b;break e}break;default:if(k.elementType===w.type){n(y,k.sibling),b=o(k,w.props),b.ref=ep(y,k,w),b.return=y,y=b;break e}}n(y,k);break}else t(y,k);k=k.sibling}w.type===Fs?(b=Cu(w.props.children,y.mode,S,w.key),b.return=y,y=b):(S=Eg(w.type,w.key,w.props,null,y.mode,S),S.ref=ep(y,b,w),S.return=y,y=S)}return a(y);case Xl:e:{for(k=w.key;b!==null;){if(b.key===k)if(b.tag===4&&b.stateNode.containerInfo===w.containerInfo&&b.stateNode.implementation===w.implementation){n(y,b.sibling),b=o(b,w.children||[]),b.return=y,y=b;break e}else{n(y,b);break}else t(y,b);b=b.sibling}b=vb(w,y.mode,S),b.return=y,y=b}return a(y)}if(typeof w=="string"||typeof w=="number")return w=""+w,b!==null&&b.tag===6?(n(y,b.sibling),b=o(b,w),b.return=y,y=b):(n(y,b),b=gb(w,y.mode,S),b.return=y,y=b),a(y);if(Cm(w))return g(y,b,w,S);if(Kd(w))return v(y,b,w,S);if(A&&Em(y,w),typeof w>"u"&&!k)switch(y.tag){case 1:case 22:case 0:case 11:case 15:throw Error(Ue(152,hu(y.type)||"Component"))}return n(y,b)}}var ev=XO(!0),JO=XO(!1),yh={},Oa=Sl(yh),If=Sl(yh),Of=Sl(yh);function Zl(e){if(e===yh)throw Error(Ue(174));return e}function uS(e,t){switch(hr(Of,t),hr(If,e),hr(Oa,yh),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Kw(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Kw(t,e)}qn(Oa),hr(Oa,t)}function zu(){qn(Oa),qn(If),qn(Of)}function CA(e){Zl(Of.current);var t=Zl(Oa.current),n=Kw(t,e.type);t!==n&&(hr(If,e),hr(Oa,n))}function OC(e){If.current===e&&(qn(Oa),qn(If))}var fr=Sl(0);function tv(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&64)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 ds=null,Hs=null,$a=!1;function QO(e,t){var n=Si(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function EA(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function dS(e){if($a){var t=Hs;if(t){var n=t;if(!EA(e,t)){if(t=yu(n.nextSibling),!t||!EA(e,t)){e.flags=e.flags&-1025|2,$a=!1,ds=e;return}QO(ds,n)}ds=e,Hs=yu(t.firstChild)}else e.flags=e.flags&-1025|2,$a=!1,ds=e}}function TA(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ds=e}function Tm(e){if(e!==ds)return!1;if(!$a)return TA(e),$a=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!iS(t,e.memoizedProps))for(t=Hs;t;)QO(e,t),t=yu(t.nextSibling);if(TA(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Ue(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Hs=yu(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Hs=null}}else Hs=ds?yu(e.stateNode.nextSibling):null;return!0}function pb(){Hs=ds=null,$a=!1}var wu=[];function $C(){for(var e=0;e<wu.length;e++)wu[e]._workInProgressVersionPrimary=null;wu.length=0}var Zp=xc.ReactCurrentDispatcher,Ai=xc.ReactCurrentBatchConfig,$f=0,yr=null,co=null,Zr=null,nv=!1,ef=!1;function Oo(){throw Error(Ue(321))}function NC(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!wi(e[n],t[n]))return!1;return!0}function LC(e,t,n,r,o,i){if($f=i,yr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Zp.current=e===null||e.memoizedState===null?fF:hF,e=n(r,o),ef){i=0;do{if(ef=!1,!(25>i))throw Error(Ue(301));i+=1,Zr=co=null,t.updateQueue=null,Zp.current=mF,e=n(r,o)}while(ef)}if(Zp.current=av,t=co!==null&&co.next!==null,$f=0,Zr=co=yr=null,nv=!1,t)throw Error(Ue(300));return e}function ec(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Zr===null?yr.memoizedState=Zr=e:Zr=Zr.next=e,Zr}function Ec(){if(co===null){var e=yr.alternate;e=e!==null?e.memoizedState:null}else e=co.next;var t=Zr===null?yr.memoizedState:Zr.next;if(t!==null)Zr=t,co=e;else{if(e===null)throw Error(Ue(310));co=e,e={memoizedState:co.memoizedState,baseState:co.baseState,baseQueue:co.baseQueue,queue:co.queue,next:null},Zr===null?yr.memoizedState=Zr=e:Zr=Zr.next=e}return Zr}function Aa(e,t){return typeof t=="function"?t(e):t}function tp(e){var t=Ec(),n=t.queue;if(n===null)throw Error(Ue(311));n.lastRenderedReducer=e;var r=co,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(o!==null){o=o.next,r=r.baseState;var s=a=i=null,c=o;do{var u=c.lane;if(($f&u)===u)s!==null&&(s=s.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===e?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};s===null?(a=s=d,i=r):s=s.next=d,yr.lanes|=u,bh|=u}c=c.next}while(c!==null&&c!==o);s===null?i=r:s.next=a,wi(r,t.memoizedState)||(na=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function np(e){var t=Ec(),n=t.queue;if(n===null)throw Error(Ue(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var a=o=o.next;do i=e(i,a.action),a=a.next;while(a!==o);wi(i,t.memoizedState)||(na=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function kA(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(o!==null?e=o===r:(e=e.mutableReadLanes,(e=($f&e)===e)&&(t._workInProgressVersionPrimary=r,wu.push(t))),e)return n(t._source);throw wu.push(t),Error(Ue(350))}function ZO(e,t,n,r){var o=Eo;if(o===null)throw Error(Ue(349));var i=t._getVersion,a=i(t._source),s=Zp.current,c=s.useState(function(){return kA(o,t,n)}),u=c[1],d=c[0];c=Zr;var p=e.memoizedState,f=p.refs,h=f.getSnapshot,g=p.source;p=p.subscribe;var v=yr;return e.memoizedState={refs:f,source:t,subscribe:r},s.useEffect(function(){f.getSnapshot=n,f.setSnapshot=u;var y=i(t._source);if(!wi(a,y)){y=n(t._source),wi(d,y)||(u(y),y=el(v),o.mutableReadLanes|=y&o.pendingLanes),y=o.mutableReadLanes,o.entangledLanes|=y;for(var b=o.entanglements,w=y;0<w;){var S=31-sl(w),k=1<<S;b[S]|=y,w&=~k}}},[n,t,r]),s.useEffect(function(){return r(t._source,function(){var y=f.getSnapshot,b=f.setSnapshot;try{b(y(t._source));var w=el(v);o.mutableReadLanes|=w&o.pendingLanes}catch(S){b(function(){throw S})}})},[t,r]),wi(h,n)&&wi(g,t)&&wi(p,r)||(e={pending:null,dispatch:null,lastRenderedReducer:Aa,lastRenderedState:d},e.dispatch=u=BC.bind(null,yr,e),c.queue=e,c.baseQueue=null,d=kA(o,t,n),c.memoizedState=c.baseState=d),d}function e$(e,t,n){var r=Ec();return ZO(r,e,t,n)}function rp(e){var t=ec();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Aa,lastRenderedState:e},e=e.dispatch=BC.bind(null,yr,e),[t.memoizedState,e]}function rv(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=yr.updateQueue,t===null?(t={lastEffect:null},yr.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function AA(e){var t=ec();return e={current:e},t.memoizedState=e}function ov(){return Ec().memoizedState}function pS(e,t,n,r){var o=ec();yr.flags|=e,o.memoizedState=rv(1|t,n,void 0,r===void 0?null:r)}function MC(e,t,n,r){var o=Ec();r=r===void 0?null:r;var i=void 0;if(co!==null){var a=co.memoizedState;if(i=a.destroy,r!==null&&NC(r,a.deps)){rv(t,n,i,r);return}}yr.flags|=e,o.memoizedState=rv(1|t,n,i,r)}function RA(e,t){return pS(516,4,e,t)}function iv(e,t){return MC(516,4,e,t)}function t$(e,t){return MC(4,2,e,t)}function n$(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function r$(e,t,n){return n=n!=null?n.concat([e]):null,MC(4,2,n$.bind(null,t,e),n)}function DC(){}function o$(e,t){var n=Ec();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&NC(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function i$(e,t){var n=Ec();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&NC(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function pF(e,t){var n=Fu();uc(98>n?98:n,function(){e(!0)}),uc(97<n?97:n,function(){var r=Ai.transition;Ai.transition=1;try{e(!1),t()}finally{Ai.transition=r}})}function BC(e,t,n){var r=ri(),o=el(e),i={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(a===null?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===yr||a!==null&&a===yr)ef=nv=!0;else{if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,c=a(s,n);if(i.eagerReducer=a,i.eagerState=c,wi(c,s))return}catch{}finally{}tl(e,o,r)}}var av={readContext:$i,useCallback:Oo,useContext:Oo,useEffect:Oo,useImperativeHandle:Oo,useLayoutEffect:Oo,useMemo:Oo,useReducer:Oo,useRef:Oo,useState:Oo,useDebugValue:Oo,useDeferredValue:Oo,useTransition:Oo,useMutableSource:Oo,useOpaqueIdentifier:Oo,unstable_isNewReconciler:!1},fF={readContext:$i,useCallback:function(e,t){return ec().memoizedState=[e,t===void 0?null:t],e},useContext:$i,useEffect:RA,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,pS(4,2,n$.bind(null,t,e),n)},useLayoutEffect:function(e,t){return pS(4,2,e,t)},useMemo:function(e,t){var n=ec();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ec();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=BC.bind(null,yr,e),[r.memoizedState,e]},useRef:AA,useState:rp,useDebugValue:DC,useDeferredValue:function(e){var t=rp(e),n=t[0],r=t[1];return RA(function(){var o=Ai.transition;Ai.transition=1;try{r(e)}finally{Ai.transition=o}},[e]),n},useTransition:function(){var e=rp(!1),t=e[0];return e=pF.bind(null,e[1]),AA(e),[e,t]},useMutableSource:function(e,t,n){var r=ec();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},ZO(r,e,t,n)},useOpaqueIdentifier:function(){if($a){var e=!1,t=aF(function(){throw e||(e=!0,n("r:"+(cb++).toString(36))),Error(Ue(355))}),n=rp(t)[1];return!(yr.mode&2)&&(yr.flags|=516,rv(5,function(){n("r:"+(cb++).toString(36))},void 0,null)),t}return t="r:"+(cb++).toString(36),rp(t),t},unstable_isNewReconciler:!1},hF={readContext:$i,useCallback:o$,useContext:$i,useEffect:iv,useImperativeHandle:r$,useLayoutEffect:t$,useMemo:i$,useReducer:tp,useRef:ov,useState:function(){return tp(Aa)},useDebugValue:DC,useDeferredValue:function(e){var t=tp(Aa),n=t[0],r=t[1];return iv(function(){var o=Ai.transition;Ai.transition=1;try{r(e)}finally{Ai.transition=o}},[e]),n},useTransition:function(){var e=tp(Aa)[0];return[ov().current,e]},useMutableSource:e$,useOpaqueIdentifier:function(){return tp(Aa)[0]},unstable_isNewReconciler:!1},mF={readContext:$i,useCallback:o$,useContext:$i,useEffect:iv,useImperativeHandle:r$,useLayoutEffect:t$,useMemo:i$,useReducer:np,useRef:ov,useState:function(){return np(Aa)},useDebugValue:DC,useDeferredValue:function(e){var t=np(Aa),n=t[0],r=t[1];return iv(function(){var o=Ai.transition;Ai.transition=1;try{r(e)}finally{Ai.transition=o}},[e]),n},useTransition:function(){var e=np(Aa)[0];return[ov().current,e]},useMutableSource:e$,useOpaqueIdentifier:function(){return np(Aa)[0]},unstable_isNewReconciler:!1},gF=xc.ReactCurrentOwner,na=!1;function Lo(e,t,n,r){t.child=e===null?JO(t,null,n,r):ev(t,e.child,n,r)}function _A(e,t,n,r,o){n=n.render;var i=t.ref;return bu(t,o),r=LC(e,t,n,r,i,o),e!==null&&!na?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,ps(e,t,o)):(t.flags|=1,Lo(e,t,r,o),t.child)}function PA(e,t,n,r,o,i){if(e===null){var a=n.type;return typeof a=="function"&&!HC(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,a$(e,t,a,r,o,i)):(e=Eg(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}return a=e.child,!(o&i)&&(o=a.memoizedProps,n=n.compare,n=n!==null?n:Af,n(o,r)&&e.ref===t.ref)?ps(e,t,i):(t.flags|=1,e=ul(a,r),e.ref=t.ref,e.return=t,t.child=e)}function a$(e,t,n,r,o,i){if(e!==null&&Af(e.memoizedProps,r)&&e.ref===t.ref)if(na=!1,(i&o)!==0)e.flags&16384&&(na=!0);else return t.lanes=e.lanes,ps(e,t,i);return fS(e,t,n,r,i)}function fb(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden"||r.mode==="unstable-defer-without-hiding")if(!(t.mode&4))t.memoizedState={baseLanes:0},Am(t,n);else if(n&1073741824)t.memoizedState={baseLanes:0},Am(t,i!==null?i.baseLanes:n);else return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Am(t,e),null;else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Am(t,r);return Lo(e,t,o,n),t.child}function s$(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function fS(e,t,n,r,o){var i=Bo(n)?cc:mo.current;return i=Bu(t,i),bu(t,o),n=LC(e,t,n,r,i,o),e!==null&&!na?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,ps(e,t,o)):(t.flags|=1,Lo(e,t,n,o),t.child)}function IA(e,t,n,r,o){if(Bo(n)){var i=!0;bg(t)}else i=!1;if(bu(t,o),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),YO(t,n,r),cS(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var c=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=$i(u):(u=Bo(n)?cc:mo.current,u=Bu(t,u));var d=n.getDerivedStateFromProps,p=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";p||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||c!==u)&&xA(t,a,r,u),Ds=!1;var f=t.memoizedState;a.state=f,Pf(t,r,a,o),c=t.memoizedState,s!==r||f!==c||Do.current||Ds?(typeof d=="function"&&(Zg(t,n,d,r),c=t.memoizedState),(s=Ds||SA(t,n,s,r,f,c,u))?(p||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|=4)):(typeof a.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=u,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4),r=!1)}else{a=t.stateNode,qO(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Qi(t.type,s),a.props=u,p=t.pendingProps,f=a.context,c=n.contextType,typeof c=="object"&&c!==null?c=$i(c):(c=Bo(n)?cc:mo.current,c=Bu(t,c));var h=n.getDerivedStateFromProps;(d=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==p||f!==c)&&xA(t,a,r,c),Ds=!1,f=t.memoizedState,a.state=f,Pf(t,r,a,o);var g=t.memoizedState;s!==p||f!==g||Do.current||Ds?(typeof h=="function"&&(Zg(t,n,h,r),g=t.memoizedState),(u=Ds||SA(t,n,u,r,f,g,c))?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,g,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,g,c)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=g),a.props=r,a.state=g,a.context=c,r=u):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),r=!1)}return hS(e,t,n,r,i,o)}function hS(e,t,n,r,o,i){s$(e,t);var a=(t.flags&64)!==0;if(!r&&!a)return o&&gA(t,n,!1),ps(e,t,i);r=t.stateNode,gF.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=ev(t,e.child,null,i),t.child=ev(t,null,s,i)):Lo(e,t,s,i),t.memoizedState=r.state,o&&gA(t,n,!0),t.child}function OA(e){var t=e.stateNode;t.pendingContext?mA(e,t.pendingContext,t.pendingContext!==t.context):t.context&&mA(e,t.context,!1),uS(e,t.containerInfo)}var km={dehydrated:null,retryLane:0};function $A(e,t,n){var r=t.pendingProps,o=fr.current,i=!1,a;return(a=(t.flags&64)!==0)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-65):e!==null&&e.memoizedState===null||r.fallback===void 0||r.unstable_avoidThisFallback===!0||(o|=1),hr(fr,o&1),e===null?(r.fallback!==void 0&&dS(t),e=r.children,o=r.fallback,i?(e=NA(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=km,e):typeof r.unstable_expectedLoadTime=="number"?(e=NA(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=km,t.lanes=33554432,e):(n=VC({mode:"visible",children:e},t.mode,n,null),n.return=t,t.child=n)):e.memoizedState!==null?i?(r=MA(e,t,r.children,r.fallback,n),i=t.child,o=e.child.memoizedState,i.memoizedState=o===null?{baseLanes:n}:{baseLanes:o.baseLanes|n},i.childLanes=e.childLanes&~n,t.memoizedState=km,r):(n=LA(e,t,r.children,n),t.memoizedState=null,n):i?(r=MA(e,t,r.children,r.fallback,n),i=t.child,o=e.child.memoizedState,i.memoizedState=o===null?{baseLanes:n}:{baseLanes:o.baseLanes|n},i.childLanes=e.childLanes&~n,t.memoizedState=km,r):(n=LA(e,t,r.children,n),t.memoizedState=null,n)}function NA(e,t,n,r){var o=e.mode,i=e.child;return t={mode:"hidden",children:t},!(o&2)&&i!==null?(i.childLanes=0,i.pendingProps=t):i=VC(t,o,0,null),n=Cu(n,o,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function LA(e,t,n,r){var o=e.child;return e=o.sibling,n=ul(o,{mode:"visible",children:n}),!(t.mode&2)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function MA(e,t,n,r,o){var i=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return!(i&2)&&t.child!==a?(n=t.child,n.childLanes=0,n.pendingProps=s,a=n.lastEffect,a!==null?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=ul(a,s),e!==null?r=ul(e,r):(r=Cu(r,i,o,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function DA(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),GO(e.return,t)}function hb(e,t,n,r,o,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.lastEffect=i)}function BA(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Lo(e,t,r.children,n),r=fr.current,r&2)r=r&1|2,t.flags|=64;else{if(e!==null&&e.flags&64)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&DA(e,n);else if(e.tag===19)DA(e,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(hr(fr,r),!(t.mode&2))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&tv(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),hb(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&tv(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}hb(t,!0,n,null,i,t.lastEffect);break;case"together":hb(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function ps(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),bh|=t.lanes,n&t.childLanes){if(e!==null&&t.child!==e.child)throw Error(Ue(153));if(t.child!==null){for(e=t.child,n=ul(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ul(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}var l$,mS,c$,u$;l$=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};mS=function(){};c$=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Zl(Oa.current);var i=null;switch(n){case"input":o=Uw(e,o),r=Uw(e,r),i=[];break;case"option":o=Vw(e,o),r=Vw(e,r),i=[];break;case"select":o=er({},o,{value:void 0}),r=er({},r,{value:void 0}),i=[];break;case"textarea":o=Gw(e,o),r=Gw(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=qg)}Yw(n,r);var a;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(wf.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var c=r[u];if(s=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&c!==s&&(c!=null||s!=null))if(u==="style")if(s){for(a in s)!s.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&s[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(i||(i=[]),i.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,s=s?s.__html:void 0,c!=null&&s!==c&&(i=i||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(wf.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&Vn("scroll",e),i||s===c||(i=[])):typeof c=="object"&&c!==null&&c.$$typeof===dC?c.toString():(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};u$=function(e,t,n,r){n!==r&&(t.flags|=4)};function op(e,t){if(!$a)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 vF(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Bo(t.type)&&Yg(),null;case 3:return zu(),qn(Do),qn(mo),$C(),r=t.stateNode,r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Tm(t)?t.flags|=4:r.hydrate||(t.flags|=256)),mS(t),null;case 5:OC(t);var o=Zl(Of.current);if(n=t.type,e!==null&&t.stateNode!=null)c$(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(t.stateNode===null)throw Error(Ue(166));return null}if(e=Zl(Oa.current),Tm(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ws]=t,r[Kg]=i,n){case"dialog":Vn("cancel",r),Vn("close",r);break;case"iframe":case"object":case"embed":Vn("load",r);break;case"video":case"audio":for(e=0;e<Dp.length;e++)Vn(Dp[e],r);break;case"source":Vn("error",r);break;case"img":case"image":case"link":Vn("error",r),Vn("load",r);break;case"details":Vn("toggle",r);break;case"input":Bk(r,i),Vn("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Vn("invalid",r);break;case"textarea":zk(r,i),Vn("invalid",r)}Yw(n,i),e=null;for(var a in i)i.hasOwnProperty(a)&&(o=i[a],a==="children"?typeof o=="string"?r.textContent!==o&&(e=["children",o]):typeof o=="number"&&r.textContent!==""+o&&(e=["children",""+o]):wf.hasOwnProperty(a)&&o!=null&&a==="onScroll"&&Vn("scroll",r));switch(n){case"input":bm(r),Fk(r,i,!0);break;case"textarea":bm(r),jk(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=qg)}r=e,t.updateQueue=r,r!==null&&(t.flags|=4)}else{switch(a=o.nodeType===9?o:o.ownerDocument,e===qw.html&&(e=rO(n)),e===qw.html?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Ws]=t,e[Kg]=r,l$(e,t,!1,!1),t.stateNode=e,a=Xw(n,r),n){case"dialog":Vn("cancel",e),Vn("close",e),o=r;break;case"iframe":case"object":case"embed":Vn("load",e),o=r;break;case"video":case"audio":for(o=0;o<Dp.length;o++)Vn(Dp[o],e);o=r;break;case"source":Vn("error",e),o=r;break;case"img":case"image":case"link":Vn("error",e),Vn("load",e),o=r;break;case"details":Vn("toggle",e),o=r;break;case"input":Bk(e,r),o=Uw(e,r),Vn("invalid",e);break;case"option":o=Vw(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=er({},r,{value:void 0}),Vn("invalid",e);break;case"textarea":zk(e,r),o=Gw(e,r),Vn("invalid",e);break;default:o=r}Yw(n,o);var s=o;for(i in s)if(s.hasOwnProperty(i)){var c=s[i];i==="style"?aO(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&oO(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Sf(e,c):typeof c=="number"&&Sf(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(wf.hasOwnProperty(i)?c!=null&&i==="onScroll"&&Vn("scroll",e):c!=null&&iC(e,i,c,a))}switch(n){case"input":bm(e),Fk(e,r,!1);break;case"textarea":bm(e),jk(e);break;case"option":r.value!=null&&e.setAttribute("value",""+al(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?mu(e,!!r.multiple,i,!1):r.defaultValue!=null&&mu(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=qg)}DO(n,r)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)u$(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Ue(166));n=Zl(Of.current),Zl(Oa.current),Tm(t)?(r=t.stateNode,n=t.memoizedProps,r[Ws]=t,r.nodeValue!==n&&(t.flags|=4)):(r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ws]=t,t.stateNode=r)}return null;case 13:return qn(fr),r=t.memoizedState,t.flags&64?(t.lanes=n,t):(r=r!==null,n=!1,e===null?t.memoizedProps.fallback!==void 0&&Tm(t):n=e.memoizedState!==null,r&&!n&&t.mode&2&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||fr.current&1?no===0&&(no=3):((no===0||no===3)&&(no=4),Eo===null||!(bh&134217727)&&!(dd&134217727)||Su(Eo,ho))),(r||n)&&(t.flags|=4),null);case 4:return zu(),mS(t),e===null&&NO(t.stateNode.containerInfo),null;case 10:return PC(t),null;case 17:return Bo(t.type)&&Yg(),null;case 19:if(qn(fr),r=t.memoizedState,r===null)return null;if(i=(t.flags&64)!==0,a=r.rendering,a===null)if(i)op(r,!1);else{if(no!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(a=tv(e),a!==null){for(t.flags|=64,op(r,!1),i=a.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),r.lastEffect===null&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return hr(fr,fr.current&1|2),t.child}e=e.sibling}r.tail!==null&&fo()>SS&&(t.flags|=64,i=!0,op(r,!1),t.lanes=33554432)}else{if(!i)if(e=tv(a),e!==null){if(t.flags|=64,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),op(r,!0),r.tail===null&&r.tailMode==="hidden"&&!a.alternate&&!$a)return t=t.lastEffect=r.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*fo()-r.renderingStartTime>SS&&n!==1073741824&&(t.flags|=64,i=!0,op(r,!1),t.lanes=33554432);r.isBackwards?(a.sibling=t.child,t.child=a):(n=r.last,n!==null?n.sibling=a:t.child=a,r.last=a)}return r.tail!==null?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=fo(),n.sibling=null,t=fr.current,hr(fr,i?t&1|2:t&1),n):null;case 23:case 24:return WC(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&r.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(Ue(156,t.tag))}function yF(e){switch(e.tag){case 1:Bo(e.type)&&Yg();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(zu(),qn(Do),qn(mo),$C(),t=e.flags,t&64)throw Error(Ue(285));return e.flags=t&-4097|64,e;case 5:return OC(e),null;case 13:return qn(fr),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return qn(fr),null;case 4:return zu(),null;case 10:return PC(e),null;case 23:case 24:return WC(),null;default:return null}}function FC(e,t){try{var n="",r=t;do n+=QB(r),r=r.return;while(r);var o=n}catch(i){o=`
39
- Error generating stack: `+i.message+`
40
- `+i.stack}return{value:e,source:t,stack:o}}function gS(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var bF=typeof WeakMap=="function"?WeakMap:Map;function d$(e,t,n){n=Qs(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){lv||(lv=!0,xS=r),gS(e,t)},n}function p$(e,t,n){n=Qs(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return gS(e,t),r(o)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){typeof r!="function"&&(Ra===null?Ra=new Set([this]):Ra.add(this),gS(e,t));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}var wF=typeof WeakSet=="function"?WeakSet:Set;function FA(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){nl(e,n)}else t.current=null}function SF(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var n=e.memoizedProps,r=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:Qi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&kC(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(Ue(163))}function xF(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var o=e;r=o.next,o=o.tag,o&4&&o&1&&(S$(n,e),PF(n,e)),e=r}while(e!==t)}return;case 1:e=n.stateNode,n.flags&4&&(t===null?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Qi(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&wA(n,t,e);return;case 3:if(t=n.updateQueue,t!==null){if(e=null,n.child!==null)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}wA(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&DO(n.type,n.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&gO(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(Ue(163))}function zA(e,t){for(var n=e;;){if(n.tag===5){var r=n.stateNode;if(t)r=r.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=o!=null&&o.hasOwnProperty("display")?o.display:null,r.style.display=iO("display",o)}}else if(n.tag===6)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function jA(e,t){if(oc&&typeof oc.onCommitFiberUnmount=="function")try{oc.onCommitFiberUnmount(AC,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,o!==void 0)if(r&4)S$(t,n);else{r=t;try{o()}catch(i){nl(r,i)}}n=n.next}while(n!==e)}break;case 1:if(FA(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(i){nl(t,i)}break;case 5:FA(t);break;case 4:f$(e,t)}}function UA(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function WA(e){return e.tag===5||e.tag===3||e.tag===4}function HA(e){e:{for(var t=e.return;t!==null;){if(WA(t))break e;t=t.return}throw Error(Ue(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:t=t.containerInfo,r=!0;break;case 4:t=t.containerInfo,r=!0;break;default:throw Error(Ue(161))}n.flags&16&&(Sf(t,""),n.flags&=-17);e:t:for(n=e;;){for(;n.sibling===null;){if(n.return===null||WA(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break e}}r?vS(e,n,t):yS(e,n,t)}function vS(e,t,n){var r=e.tag,o=r===5||r===6;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=qg));else if(r!==4&&(e=e.child,e!==null))for(vS(e,t,n),e=e.sibling;e!==null;)vS(e,t,n),e=e.sibling}function yS(e,t,n){var r=e.tag,o=r===5||r===6;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(yS(e,t,n),e=e.sibling;e!==null;)yS(e,t,n),e=e.sibling}function f$(e,t){for(var n=t,r=!1,o,i;;){if(!r){r=n.return;e:for(;;){if(r===null)throw Error(Ue(160));switch(o=r.stateNode,r.tag){case 5:i=!1;break e;case 3:o=o.containerInfo,i=!0;break e;case 4:o=o.containerInfo,i=!0;break e}r=r.return}r=!0}if(n.tag===5||n.tag===6){e:for(var a=e,s=n,c=s;;)if(jA(a,c),c.child!==null&&c.tag!==4)c.child.return=c,c=c.child;else{if(c===s)break e;for(;c.sibling===null;){if(c.return===null||c.return===s)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}i?(a=o,s=n.stateNode,a.nodeType===8?a.parentNode.removeChild(s):a.removeChild(s)):o.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){o=n.stateNode.containerInfo,i=!0,n.child.return=n,n=n.child;continue}}else if(jA(e,n),n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return,n.tag===4&&(r=!1)}n.sibling.return=n.return,n=n.sibling}}function mb(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var r=n=n.next;do(r.tag&3)===3&&(e=r.destroy,r.destroy=void 0,e!==void 0&&e()),r=r.next;while(r!==n)}return;case 1:return;case 5:if(n=t.stateNode,n!=null){r=t.memoizedProps;var o=e!==null?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,i!==null){for(n[Kg]=r,e==="input"&&r.type==="radio"&&r.name!=null&&tO(n,r),Xw(e,o),t=Xw(e,r),o=0;o<i.length;o+=2){var a=i[o],s=i[o+1];a==="style"?aO(n,s):a==="dangerouslySetInnerHTML"?oO(n,s):a==="children"?Sf(n,s):iC(n,a,s,t)}switch(e){case"input":Ww(n,r);break;case"textarea":nO(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,i=r.value,i!=null?mu(n,!!r.multiple,i,!1):e!==!!r.multiple&&(r.defaultValue!=null?mu(n,!!r.multiple,r.defaultValue,!0):mu(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(Ue(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:n=t.stateNode,n.hydrate&&(n.hydrate=!1,gO(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(UC=fo(),zA(t.child,!0)),VA(t);return;case 19:VA(t);return;case 17:return;case 23:case 24:zA(t,t.memoizedState!==null);return}throw Error(Ue(163))}function VA(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new wF),t.forEach(function(r){var o=$F.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function CF(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var EF=Math.ceil,sv=xc.ReactCurrentDispatcher,zC=xc.ReactCurrentOwner,Nt=0,Eo=null,Nr=null,ho=0,dc=0,bS=Sl(0),no=0,sy=null,ud=0,bh=0,dd=0,jC=0,wS=null,UC=0,SS=1/0;function pd(){SS=fo()+500}var ct=null,lv=!1,xS=null,Ra=null,cl=!1,tf=null,Bp=90,CS=[],ES=[],fs=null,nf=0,TS=null,Sg=-1,ls=0,xg=0,rf=null,Cg=!1;function ri(){return Nt&48?fo():Sg!==-1?Sg:Sg=fo()}function el(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return Fu()===99?1:2;if(ls===0&&(ls=ud),dF.transition!==0){xg!==0&&(xg=wS!==null?wS.pendingLanes:0),e=ls;var t=4186112&~xg;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=Fu(),Nt&4&&e===98?e=Vg(12,ls):(e=h7(e),e=Vg(e,ls)),e}function tl(e,t,n){if(50<nf)throw nf=0,TS=null,Error(Ue(185));if(e=ly(e,t),e===null)return null;ey(e,t,n),e===Eo&&(dd|=t,no===4&&Su(e,ho));var r=Fu();t===1?Nt&8&&!(Nt&48)?kS(e):(Ni(e,n),Nt===0&&(pd(),Ga())):(!(Nt&4)||r!==98&&r!==99||(fs===null?fs=new Set([e]):fs.add(e)),Ni(e,n)),wS=e}function ly(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}function Ni(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var s=31-sl(a),c=1<<s,u=i[s];if(u===-1){if(!(c&r)||c&o){u=t,Zc(c);var d=Un;i[s]=10<=d?u+250:6<=d?u+5e3:-1}}else u<=t&&(e.expiredLanes|=c);a&=~c}if(r=Tf(e,e===Eo?ho:0),t=Un,r===0)n!==null&&(n!==ub&&sS(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==ub&&sS(n)}t===15?(n=kS.bind(null,e),as===null?(as=[n],wg=RC(iy,VO)):as.push(n),n=ub):t===14?n=_f(99,kS.bind(null,e)):(n=m7(t),n=_f(n,h$.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function h$(e){if(Sg=-1,xg=ls=0,Nt&48)throw Error(Ue(327));var t=e.callbackNode;if(xl()&&e.callbackNode!==t)return null;var n=Tf(e,e===Eo?ho:0);if(n===0)return null;var r=n,o=Nt;Nt|=16;var i=y$();(Eo!==e||ho!==r)&&(pd(),xu(e,r));do try{AF();break}catch(s){v$(e,s)}while(1);if(_C(),sv.current=i,Nt=o,Nr!==null?r=0:(Eo=null,ho=0,r=no),ud&dd)xu(e,0);else if(r!==0){if(r===2&&(Nt|=64,e.hydrate&&(e.hydrate=!1,kC(e.containerInfo)),n=CO(e),n!==0&&(r=Fp(e,n))),r===1)throw t=sy,xu(e,0),Su(e,n),Ni(e,fo()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(Ue(345));case 2:Fl(e);break;case 3:if(Su(e,n),(n&62914560)===n&&(r=UC+500-fo(),10<r)){if(Tf(e,0)!==0)break;if(o=e.suspendedLanes,(o&n)!==n){ri(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=pA(Fl.bind(null,e),r);break}Fl(e);break;case 4:if(Su(e,n),(n&4186112)===n)break;for(r=e.eventTimes,o=-1;0<n;){var a=31-sl(n);i=1<<a,a=r[a],a>o&&(o=a),n&=~i}if(n=o,n=fo()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*EF(n/1960))-n,10<n){e.timeoutHandle=pA(Fl.bind(null,e),n);break}Fl(e);break;case 5:Fl(e);break;default:throw Error(Ue(329))}}return Ni(e,fo()),e.callbackNode===t?h$.bind(null,e):null}function Su(e,t){for(t&=~jC,t&=~dd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-sl(t),r=1<<n;e[n]=-1,t&=~r}}function kS(e){if(Nt&48)throw Error(Ue(327));if(xl(),e===Eo&&e.expiredLanes&ho){var t=ho,n=Fp(e,t);ud&dd&&(t=Tf(e,t),n=Fp(e,t))}else t=Tf(e,0),n=Fp(e,t);if(e.tag!==0&&n===2&&(Nt|=64,e.hydrate&&(e.hydrate=!1,kC(e.containerInfo)),t=CO(e),t!==0&&(n=Fp(e,t))),n===1)throw n=sy,xu(e,0),Su(e,t),Ni(e,fo()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Fl(e),Ni(e,fo()),null}function TF(){if(fs!==null){var e=fs;fs=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,Ni(t,fo())})}Ga()}function m$(e,t){var n=Nt;Nt|=1;try{return e(t)}finally{Nt=n,Nt===0&&(pd(),Ga())}}function g$(e,t){var n=Nt;Nt&=-2,Nt|=8;try{return e(t)}finally{Nt=n,Nt===0&&(pd(),Ga())}}function Am(e,t){hr(bS,dc),dc|=t,ud|=t}function WC(){dc=bS.current,qn(bS)}function xu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,iF(n)),Nr!==null)for(n=Nr.return;n!==null;){var r=n;switch(r.tag){case 1:r=r.type.childContextTypes,r!=null&&Yg();break;case 3:zu(),qn(Do),qn(mo),$C();break;case 5:OC(r);break;case 4:zu();break;case 13:qn(fr);break;case 19:qn(fr);break;case 10:PC(r);break;case 23:case 24:WC()}n=n.return}Eo=e,Nr=ul(e.current,null),ho=dc=ud=t,no=0,sy=null,jC=dd=bh=0}function v$(e,t){do{var n=Nr;try{if(_C(),Zp.current=av,nv){for(var r=yr.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}nv=!1}if($f=0,Zr=co=yr=null,ef=!1,zC.current=null,n===null||n.return===null){no=1,sy=t,Nr=null;break}e:{var i=e,a=n.return,s=n,c=t;if(t=ho,s.flags|=2048,s.firstEffect=s.lastEffect=null,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c;if(!(s.mode&2)){var d=s.alternate;d?(s.updateQueue=d.updateQueue,s.memoizedState=d.memoizedState,s.lanes=d.lanes):(s.updateQueue=null,s.memoizedState=null)}var p=(fr.current&1)!==0,f=a;do{var h;if(h=f.tag===13){var g=f.memoizedState;if(g!==null)h=g.dehydrated!==null;else{var v=f.memoizedProps;h=v.fallback===void 0?!1:v.unstable_avoidThisFallback!==!0?!0:!p}}if(h){var y=f.updateQueue;if(y===null){var b=new Set;b.add(u),f.updateQueue=b}else y.add(u);if(!(f.mode&2)){if(f.flags|=64,s.flags|=16384,s.flags&=-2981,s.tag===1)if(s.alternate===null)s.tag=17;else{var w=Qs(-1,1);w.tag=2,Zs(s,w)}s.lanes|=1;break e}c=void 0,s=t;var S=i.pingCache;if(S===null?(S=i.pingCache=new bF,c=new Set,S.set(u,c)):(c=S.get(u),c===void 0&&(c=new Set,S.set(u,c))),!c.has(s)){c.add(s);var k=OF.bind(null,i,u,s);u.then(k,k)}f.flags|=4096,f.lanes=t;break e}f=f.return}while(f!==null);c=Error((hu(s.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
41
-
42
- Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}no!==5&&(no=2),c=FC(c,s),f=a;do{switch(f.tag){case 3:i=c,f.flags|=4096,t&=-t,f.lanes|=t;var A=d$(f,i,t);bA(f,A);break e;case 1:i=c;var T=f.type,R=f.stateNode;if(!(f.flags&64)&&(typeof T.getDerivedStateFromError=="function"||R!==null&&typeof R.componentDidCatch=="function"&&(Ra===null||!Ra.has(R)))){f.flags|=4096,t&=-t,f.lanes|=t;var P=p$(f,i,t);bA(f,P);break e}}f=f.return}while(f!==null)}w$(n)}catch(_){t=_,Nr===n&&n!==null&&(Nr=n=n.return);continue}break}while(1)}function y$(){var e=sv.current;return sv.current=av,e===null?av:e}function Fp(e,t){var n=Nt;Nt|=16;var r=y$();Eo===e&&ho===t||xu(e,t);do try{kF();break}catch(o){v$(e,o)}while(1);if(_C(),Nt=n,sv.current=r,Nr!==null)throw Error(Ue(261));return Eo=null,ho=0,no}function kF(){for(;Nr!==null;)b$(Nr)}function AF(){for(;Nr!==null&&!lF();)b$(Nr)}function b$(e){var t=x$(e.alternate,e,dc);e.memoizedProps=e.pendingProps,t===null?w$(e):Nr=t,zC.current=null}function w$(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&2048){if(n=yF(t),n!==null){n.flags&=2047,Nr=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(n=vF(n,t,dc),n!==null){Nr=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||dc&1073741824||!(n.mode&4)){for(var r=0,o=n.child;o!==null;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}if(t=t.sibling,t!==null){Nr=t;return}Nr=t=e}while(t!==null);no===0&&(no=5)}function Fl(e){var t=Fu();return uc(99,RF.bind(null,e,t)),null}function RF(e,t){do xl();while(tf!==null);if(Nt&48)throw Error(Ue(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Ue(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,i=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var a=e.eventTimes,s=e.expirationTimes;0<i;){var c=31-sl(i),u=1<<c;o[c]=0,a[c]=-1,s[c]=-1,i&=~u}if(fs!==null&&!(r&24)&&fs.has(e)&&fs.delete(e),e===Eo&&(Nr=Eo=null,ho=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,r!==null){if(o=Nt,Nt|=32,zC.current=null,sb=gg,a=iA(),nS(a)){if("selectionStart"in a)s={start:a.selectionStart,end:a.selectionEnd};else e:if(s=(s=a.ownerDocument)&&s.defaultView||window,(u=s.getSelection&&s.getSelection())&&u.rangeCount!==0){s=u.anchorNode,i=u.anchorOffset,c=u.focusNode,u=u.focusOffset;try{s.nodeType,c.nodeType}catch{s=null;break e}var d=0,p=-1,f=-1,h=0,g=0,v=a,y=null;t:for(;;){for(var b;v!==s||i!==0&&v.nodeType!==3||(p=d+i),v!==c||u!==0&&v.nodeType!==3||(f=d+u),v.nodeType===3&&(d+=v.nodeValue.length),(b=v.firstChild)!==null;)y=v,v=b;for(;;){if(v===a)break t;if(y===s&&++h===i&&(p=d),y===c&&++g===u&&(f=d),(b=v.nextSibling)!==null)break;v=y,y=v.parentNode}v=b}s=p===-1||f===-1?null:{start:p,end:f}}else s=null;s=s||{start:0,end:0}}else s=null;lb={focusedElem:a,selectionRange:s},gg=!1,rf=null,Cg=!1,ct=r;do try{_F()}catch(_){if(ct===null)throw Error(Ue(330));nl(ct,_),ct=ct.nextEffect}while(ct!==null);rf=null,ct=r;do try{for(a=e;ct!==null;){var w=ct.flags;if(w&16&&Sf(ct.stateNode,""),w&128){var S=ct.alternate;if(S!==null){var k=S.ref;k!==null&&(typeof k=="function"?k(null):k.current=null)}}switch(w&1038){case 2:HA(ct),ct.flags&=-3;break;case 6:HA(ct),ct.flags&=-3,mb(ct.alternate,ct);break;case 1024:ct.flags&=-1025;break;case 1028:ct.flags&=-1025,mb(ct.alternate,ct);break;case 4:mb(ct.alternate,ct);break;case 8:s=ct,f$(a,s);var A=s.alternate;UA(s),A!==null&&UA(A)}ct=ct.nextEffect}}catch(_){if(ct===null)throw Error(Ue(330));nl(ct,_),ct=ct.nextEffect}while(ct!==null);if(k=lb,S=iA(),w=k.focusedElem,a=k.selectionRange,S!==w&&w&&w.ownerDocument&&IO(w.ownerDocument.documentElement,w)){for(a!==null&&nS(w)&&(S=a.start,k=a.end,k===void 0&&(k=S),"selectionStart"in w?(w.selectionStart=S,w.selectionEnd=Math.min(k,w.value.length)):(k=(S=w.ownerDocument||document)&&S.defaultView||window,k.getSelection&&(k=k.getSelection(),s=w.textContent.length,A=Math.min(a.start,s),a=a.end===void 0?A:Math.min(a.end,s),!k.extend&&A>a&&(s=a,a=A,A=s),s=oA(w,A),i=oA(w,a),s&&i&&(k.rangeCount!==1||k.anchorNode!==s.node||k.anchorOffset!==s.offset||k.focusNode!==i.node||k.focusOffset!==i.offset)&&(S=S.createRange(),S.setStart(s.node,s.offset),k.removeAllRanges(),A>a?(k.addRange(S),k.extend(i.node,i.offset)):(S.setEnd(i.node,i.offset),k.addRange(S)))))),S=[],k=w;k=k.parentNode;)k.nodeType===1&&S.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<S.length;w++)k=S[w],k.element.scrollLeft=k.left,k.element.scrollTop=k.top}gg=!!sb,lb=sb=null,e.current=n,ct=r;do try{for(w=e;ct!==null;){var T=ct.flags;if(T&36&&xF(w,ct.alternate,ct),T&128){S=void 0;var R=ct.ref;if(R!==null){var P=ct.stateNode;switch(ct.tag){case 5:S=P;break;default:S=P}typeof R=="function"?R(S):R.current=S}}ct=ct.nextEffect}}catch(_){if(ct===null)throw Error(Ue(330));nl(ct,_),ct=ct.nextEffect}while(ct!==null);ct=null,uF(),Nt=o}else e.current=n;if(cl)cl=!1,tf=e,Bp=t;else for(ct=r;ct!==null;)t=ct.nextEffect,ct.nextEffect=null,ct.flags&8&&(T=ct,T.sibling=null,T.stateNode=null),ct=t;if(r=e.pendingLanes,r===0&&(Ra=null),r===1?e===TS?nf++:(nf=0,TS=e):nf=0,n=n.stateNode,oc&&typeof oc.onCommitFiberRoot=="function")try{oc.onCommitFiberRoot(AC,n,void 0,(n.current.flags&64)===64)}catch{}if(Ni(e,fo()),lv)throw lv=!1,e=xS,xS=null,e;return Nt&8||Ga(),null}function _F(){for(;ct!==null;){var e=ct.alternate;Cg||rf===null||(ct.flags&8?Hk(ct,rf)&&(Cg=!0):ct.tag===13&&CF(e,ct)&&Hk(ct,rf)&&(Cg=!0));var t=ct.flags;t&256&&SF(e,ct),!(t&512)||cl||(cl=!0,_f(97,function(){return xl(),null})),ct=ct.nextEffect}}function xl(){if(Bp!==90){var e=97<Bp?97:Bp;return Bp=90,uc(e,IF)}return!1}function PF(e,t){CS.push(t,e),cl||(cl=!0,_f(97,function(){return xl(),null}))}function S$(e,t){ES.push(t,e),cl||(cl=!0,_f(97,function(){return xl(),null}))}function IF(){if(tf===null)return!1;var e=tf;if(tf=null,Nt&48)throw Error(Ue(331));var t=Nt;Nt|=32;var n=ES;ES=[];for(var r=0;r<n.length;r+=2){var o=n[r],i=n[r+1],a=o.destroy;if(o.destroy=void 0,typeof a=="function")try{a()}catch(c){if(i===null)throw Error(Ue(330));nl(i,c)}}for(n=CS,CS=[],r=0;r<n.length;r+=2){o=n[r],i=n[r+1];try{var s=o.create;o.destroy=s()}catch(c){if(i===null)throw Error(Ue(330));nl(i,c)}}for(s=e.current.firstEffect;s!==null;)e=s.nextEffect,s.nextEffect=null,s.flags&8&&(s.sibling=null,s.stateNode=null),s=e;return Nt=t,Ga(),!0}function GA(e,t,n){t=FC(n,t),t=d$(e,t,1),Zs(e,t),t=ri(),e=ly(e,1),e!==null&&(ey(e,1,t),Ni(e,t))}function nl(e,t){if(e.tag===3)GA(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){GA(n,e,t);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ra===null||!Ra.has(r))){e=FC(t,e);var o=p$(n,e,1);if(Zs(n,o),o=ri(),n=ly(n,1),n!==null)ey(n,1,o),Ni(n,o);else if(typeof r.componentDidCatch=="function"&&(Ra===null||!Ra.has(r)))try{r.componentDidCatch(t,e)}catch{}break}}n=n.return}}function OF(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ri(),e.pingedLanes|=e.suspendedLanes&n,Eo===e&&(ho&n)===n&&(no===4||no===3&&(ho&62914560)===ho&&500>fo()-UC?xu(e,0):jC|=n),Ni(e,t)}function $F(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(ls===0&&(ls=ud),t=eu(62914560&~ls),t===0&&(t=4194304)):t=Fu()===99?1:2:t=1),n=ri(),e=ly(e,t),e!==null&&(ey(e,t,n),Ni(e,n))}var x$;x$=function(e,t,n){var r=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||Do.current)na=!0;else if(n&r)na=!!(e.flags&16384);else{switch(na=!1,t.tag){case 3:OA(t),pb();break;case 5:CA(t);break;case 1:Bo(t.type)&&bg(t);break;case 4:uS(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;hr(Xg,o._currentValue),o._currentValue=r;break;case 13:if(t.memoizedState!==null)return n&t.child.childLanes?$A(e,t,n):(hr(fr,fr.current&1),t=ps(e,t,n),t!==null?t.sibling:null);hr(fr,fr.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&64){if(r)return BA(e,t,n);t.flags|=64}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),hr(fr,fr.current),r)break;return null;case 23:case 24:return t.lanes=0,fb(e,t,n)}return ps(e,t,n)}else na=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=Bu(t,mo.current),bu(t,n),o=LC(null,t,r,e,o,n),t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Bo(r)){var i=!0;bg(t)}else i=!1;t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,IC(t);var a=r.getDerivedStateFromProps;typeof a=="function"&&Zg(t,r,a,e),o.updater=ay,t.stateNode=o,o._reactInternals=t,cS(t,r,e,n),t=hS(null,t,r,!0,i,n)}else t.tag=0,Lo(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=o._init,o=i(o._payload),t.type=o,i=t.tag=LF(o),e=Qi(o,e),i){case 0:t=fS(null,t,o,e,n);break e;case 1:t=IA(null,t,o,e,n);break e;case 11:t=_A(null,t,o,e,n);break e;case 14:t=PA(null,t,o,Qi(o.type,e),r,n);break e}throw Error(Ue(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qi(r,o),fS(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qi(r,o),IA(e,t,r,o,n);case 3:if(OA(t),r=t.updateQueue,e===null||r===null)throw Error(Ue(282));if(r=t.pendingProps,o=t.memoizedState,o=o!==null?o.element:null,qO(e,t),Pf(t,r,null,n),r=t.memoizedState.element,r===o)pb(),t=ps(e,t,n);else{if(o=t.stateNode,(i=o.hydrate)&&(Hs=yu(t.stateNode.containerInfo.firstChild),ds=t,i=$a=!0),i){if(e=o.mutableSourceEagerHydrationData,e!=null)for(o=0;o<e.length;o+=2)i=e[o],i._workInProgressVersionPrimary=e[o+1],wu.push(i);for(n=JO(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else Lo(e,t,r,n),pb();t=t.child}return t;case 5:return CA(t),e===null&&dS(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,iS(r,o)?a=null:i!==null&&iS(r,i)&&(t.flags|=16),s$(e,t),Lo(e,t,a,n),t.child;case 6:return e===null&&dS(t),null;case 13:return $A(e,t,n);case 4:return uS(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ev(t,null,r,n):Lo(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qi(r,o),_A(e,t,r,o,n);case 7:return Lo(e,t,t.pendingProps,n),t.child;case 8:return Lo(e,t,t.pendingProps.children,n),t.child;case 12:return Lo(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value;var s=t.type._context;if(hr(Xg,s._currentValue),s._currentValue=i,a!==null)if(s=a.value,i=wi(s,i)?0:(typeof r._calculateChangedBits=="function"?r._calculateChangedBits(s,i):1073741823)|0,i===0){if(a.children===o.children&&!Do.current){t=ps(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var c=s.dependencies;if(c!==null){a=s.child;for(var u=c.firstContext;u!==null;){if(u.context===r&&u.observedBits&i){s.tag===1&&(u=Qs(-1,n&-n),u.tag=2,Zs(s,u)),s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),GO(s.return,n),c.lanes|=n;break}u=u.next}}else a=s.tag===10&&s.type===t.type?null:s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===t){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}Lo(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,i=t.pendingProps,r=i.children,bu(t,n),o=$i(o,i.unstable_observedBits),r=r(o),t.flags|=1,Lo(e,t,r,n),t.child;case 14:return o=t.type,i=Qi(o,t.pendingProps),i=Qi(o.type,i),PA(e,t,o,i,r,n);case 15:return a$(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qi(r,o),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Bo(r)?(e=!0,bg(t)):e=!1,bu(t,n),YO(t,r,o),cS(t,r,o,n),hS(null,t,r,!0,e,n);case 19:return BA(e,t,n);case 23:return fb(e,t,n);case 24:return fb(e,t,n)}throw Error(Ue(156,t.tag))};function NF(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.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Si(e,t,n,r){return new NF(e,t,n,r)}function HC(e){return e=e.prototype,!(!e||!e.isReactComponent)}function LF(e){if(typeof e=="function")return HC(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Jv)return 11;if(e===Qv)return 14}return 2}function ul(e,t){var n=e.alternate;return n===null?(n=Si(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),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}function Eg(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")HC(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Fs:return Cu(n.children,o,i,t);case Q4:a=8,o|=16;break;case aC:a=8,o|=1;break;case Gp:return e=Si(12,n,t,o|8),e.elementType=Gp,e.type=Gp,e.lanes=i,e;case qp:return e=Si(13,n,t,o),e.type=qp,e.elementType=qp,e.lanes=i,e;case jg:return e=Si(19,n,t,o),e.elementType=jg,e.lanes=i,e;case pC:return VC(n,o,i,t);case jw:return e=Si(24,n,t,o),e.elementType=jw,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case sC:a=10;break e;case lC:a=9;break e;case Jv:a=11;break e;case Qv:a=14;break e;case cC:a=16,r=null;break e;case uC:a=22;break e}throw Error(Ue(130,e==null?e:typeof e,""))}return t=Si(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Cu(e,t,n,r){return e=Si(7,e,r,t),e.lanes=n,e}function VC(e,t,n,r){return e=Si(23,e,r,t),e.elementType=pC,e.lanes=n,e}function gb(e,t,n){return e=Si(6,e,null,t),e.lanes=n,e}function vb(e,t,n){return t=Si(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function MF(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=eb(0),this.expirationTimes=eb(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=eb(0),this.mutableSourceEagerHydrationData=null}function DF(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Xl,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function cv(e,t,n,r){var o=t.current,i=ri(),a=el(o);e:if(n){n=n._reactInternals;t:{if(Cc(n)!==n||n.tag!==1)throw Error(Ue(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(Bo(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(s!==null);throw Error(Ue(171))}if(n.tag===1){var c=n.type;if(Bo(c)){n=FO(n,c,s);break e}}n=s}else n=ll;return t.context===null?t.context=n:t.pendingContext=n,t=Qs(i,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),Zs(o,t),tl(o,a,i),a}function yb(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function qA(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function GC(e,t){qA(e,t),(e=e.alternate)&&qA(e,t)}function BF(){return null}function qC(e,t,n){var r=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new MF(e,t,n!=null&&n.hydrate===!0),t=Si(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,IC(t),e[cd]=n.current,NO(e.nodeType===8?e.parentNode:e),r)for(e=0;e<r.length;e++){t=r[e];var o=t._getVersion;o=o(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}qC.prototype.render=function(e){cv(e,this._internalRoot,null,null)};qC.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;cv(null,e,null,function(){t[cd]=null})};function wh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function FF(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new qC(e,0,t?{hydrate:!0}:void 0)}function cy(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if(typeof o=="function"){var s=o;o=function(){var u=yb(a);s.call(u)}}cv(t,a,e,o)}else{if(i=n._reactRootContainer=FF(n,r),a=i._internalRoot,typeof o=="function"){var c=o;o=function(){var u=yb(a);c.call(u)}}g$(function(){cv(t,a,e,o)})}return yb(a)}fO=function(e){if(e.tag===13){var t=ri();tl(e,4,t),GC(e,4)}};vC=function(e){if(e.tag===13){var t=ri();tl(e,67108864,t),GC(e,67108864)}};hO=function(e){if(e.tag===13){var t=ri(),n=el(e);tl(e,n,t),GC(e,n)}};mO=function(e,t){return t()};Jw=function(e,t,n){switch(t){case"input":if(Ww(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=oy(r);if(!o)throw Error(Ue(90));eO(r),Ww(r,o)}}}break;case"textarea":nO(e,n);break;case"select":t=n.value,t!=null&&mu(e,!!n.multiple,t,!1)}};hC=m$;cO=function(e,t,n,r,o){var i=Nt;Nt|=4;try{return uc(98,e.bind(null,t,n,r,o))}finally{Nt=i,Nt===0&&(pd(),Ga())}};mC=function(){!(Nt&49)&&(TF(),xl())};uO=function(e,t){var n=Nt;Nt|=2;try{return e(t)}finally{Nt=n,Nt===0&&(pd(),Ga())}};function C$(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!wh(t))throw Error(Ue(200));return DF(e,t,null,n)}var zF={Events:[vh,su,oy,sO,lO,xl,{current:!1}]},ip={findFiberByHostInstance:Ql,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},jF={bundleType:ip.bundleType,version:ip.version,rendererPackageName:ip.rendererPackageName,rendererConfig:ip.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:xc.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=pO(e),e===null?null:e.stateNode},findFiberByHostInstance:ip.findFiberByHostInstance||BF,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Rm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Rm.isDisabled&&Rm.supportsFiber)try{AC=Rm.inject(jF),oc=Rm}catch{}}Hi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zF;Hi.createPortal=C$;Hi.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Ue(188)):Error(Ue(268,Object.keys(e)));return e=pO(t),e=e===null?null:e.stateNode,e};Hi.flushSync=function(e,t){var n=Nt;if(n&48)return e(t);Nt|=1;try{if(e)return uc(99,e.bind(null,t))}finally{Nt=n,Ga()}};Hi.hydrate=function(e,t,n){if(!wh(t))throw Error(Ue(200));return cy(null,e,t,!0,n)};Hi.render=function(e,t,n){if(!wh(t))throw Error(Ue(200));return cy(null,e,t,!1,n)};Hi.unmountComponentAtNode=function(e){if(!wh(e))throw Error(Ue(40));return e._reactRootContainer?(g$(function(){cy(null,null,e,!1,function(){e._reactRootContainer=null,e[cd]=null})}),!0):!1};Hi.unstable_batchedUpdates=m$;Hi.unstable_createPortal=function(e,t){return C$(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};Hi.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!wh(n))throw Error(Ue(200));if(e==null||e._reactInternals===void 0)throw Error(Ue(38));return cy(e,t,n,!1,r)};Hi.version="17.0.2";function E$(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(E$)}catch(e){console.error(e)}}E$(),K4.exports=Hi;var uy=K4.exports;const Ei=qr(uy);/**
43
- * @remix-run/router v1.6.2
44
- *
45
- * Copyright (c) Remix Software Inc.
46
- *
47
- * This source code is licensed under the MIT license found in the
48
- * LICENSE.md file in the root directory of this source tree.
49
- *
50
- * @license MIT
51
- */function Nf(){return Nf=Object.assign?Object.assign.bind():function(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},Nf.apply(this,arguments)}var Vs;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Vs||(Vs={}));const KA="popstate";function UF(e){e===void 0&&(e={});function t(r,o){let{pathname:i,search:a,hash:s}=r.location;return AS("",{pathname:i,search:a,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:uv(o)}return HF(t,n,null,e)}function br(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function KC(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function WF(){return Math.random().toString(36).substr(2,8)}function YA(e,t){return{usr:e.state,key:e.key,idx:t}}function AS(e,t,n,r){return n===void 0&&(n=null),Nf({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?fd(t):t,{state:n,key:t&&t.key||r||WF()})}function uv(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function fd(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function HF(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=Vs.Pop,c=null,u=d();u==null&&(u=0,a.replaceState(Nf({},a.state,{idx:u}),""));function d(){return(a.state||{idx:null}).idx}function p(){s=Vs.Pop;let y=d(),b=y==null?null:y-u;u=y,c&&c({action:s,location:v.location,delta:b})}function f(y,b){s=Vs.Push;let w=AS(v.location,y,b);n&&n(w,y),u=d()+1;let S=YA(w,u),k=v.createHref(w);try{a.pushState(S,"",k)}catch{o.location.assign(k)}i&&c&&c({action:s,location:v.location,delta:1})}function h(y,b){s=Vs.Replace;let w=AS(v.location,y,b);n&&n(w,y),u=d();let S=YA(w,u),k=v.createHref(w);a.replaceState(S,"",k),i&&c&&c({action:s,location:v.location,delta:0})}function g(y){let b=o.location.origin!=="null"?o.location.origin:o.location.href,w=typeof y=="string"?y:uv(y);return br(b,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,b)}let v={get action(){return s},get location(){return e(o,a)},listen(y){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(KA,p),c=y,()=>{o.removeEventListener(KA,p),c=null}},createHref(y){return t(o,y)},createURL:g,encodeLocation(y){let b=g(y);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:f,replace:h,go(y){return a.go(y)}};return v}var XA;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(XA||(XA={}));function VF(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?fd(t):t,o=YC(r.pathname||"/",n);if(o==null)return null;let i=T$(e);GF(i);let a=null;for(let s=0;a==null&&s<i.length;++s)a=tz(i[s],rz(o));return a}function T$(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,a,s)=>{let c={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};c.relativePath.startsWith("/")&&(br(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 u=rl([r,c.relativePath]),d=n.concat(c);i.children&&i.children.length>0&&(br(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),T$(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:ZF(u,i.index),routesMeta:d})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let c of k$(i.path))o(i,a,c)}),t}function k$(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=k$(r.join("/")),s=[];return s.push(...a.map(c=>c===""?i:[i,c].join("/"))),o&&s.push(...a),s.map(c=>e.startsWith("/")&&c===""?"/":c)}function GF(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ez(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const qF=/^:\w+$/,KF=3,YF=2,XF=1,JF=10,QF=-2,JA=e=>e==="*";function ZF(e,t){let n=e.split("/"),r=n.length;return n.some(JA)&&(r+=QF),t&&(r+=YF),n.filter(o=>!JA(o)).reduce((o,i)=>o+(qF.test(i)?KF:i===""?XF:JF),r)}function ez(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function tz(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a<n.length;++a){let s=n[a],c=a===n.length-1,u=o==="/"?t:t.slice(o.length)||"/",d=A$({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},u);if(!d)return null;Object.assign(r,d.params);let p=s.route;i.push({params:r,pathname:rl([o,d.pathname]),pathnameBase:sz(rl([o,d.pathnameBase])),route:p}),d.pathnameBase!=="/"&&(o=rl([o,d.pathnameBase]))}return i}function A$(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=nz(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((u,d,p)=>{if(d==="*"){let f=s[p]||"";a=i.slice(0,i.length-f.length).replace(/(.)\/+$/,"$1")}return u[d]=oz(s[p]||"",d),u},{}),pathname:i,pathnameBase:a,pattern:e}}function nz(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),KC(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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function rz(e){try{return decodeURI(e)}catch(t){return KC(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function oz(e,t){try{return decodeURIComponent(e)}catch(n){return KC(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function YC(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 iz(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?fd(e):e;return{pathname:n?n.startsWith("/")?n:az(n,t):t,search:lz(r),hash:cz(o)}}function az(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function bb(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 XC(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function JC(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=fd(e):(o=Nf({},e),br(!o.pathname||!o.pathname.includes("?"),bb("?","pathname","search",o)),br(!o.pathname||!o.pathname.includes("#"),bb("#","pathname","hash",o)),br(!o.search||!o.search.includes("#"),bb("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(r||a==null)s=n;else{let p=t.length-1;if(a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),p-=1;o.pathname=f.join("/")}s=p>=0?t[p]:"/"}let c=iz(o,s),u=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const rl=e=>e.join("/").replace(/\/\/+/g,"/"),sz=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),lz=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,cz=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function uz(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const R$=["post","put","patch","delete"];new Set(R$);const dz=["get",...R$];new Set(dz);/**
52
- * React Router v6.11.2
53
- *
54
- * Copyright (c) Remix Software Inc.
55
- *
56
- * This source code is licensed under the MIT license found in the
57
- * LICENSE.md file in the root directory of this source tree.
58
- *
59
- * @license MIT
60
- */function dv(){return dv=Object.assign?Object.assign.bind():function(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},dv.apply(this,arguments)}const QC=m.createContext(null),_$=m.createContext(null),Tc=m.createContext(null),dy=m.createContext(null),Cs=m.createContext({outlet:null,matches:[],isDataRoute:!1}),P$=m.createContext(null);function pz(e,t){let{relative:n}=t===void 0?{}:t;hd()||br(!1);let{basename:r,navigator:o}=m.useContext(Tc),{hash:i,pathname:a,search:s}=ZC(e,{relative:n}),c=a;return r!=="/"&&(c=a==="/"?r:rl([r,a])),o.createHref({pathname:c,search:s,hash:i})}function hd(){return m.useContext(dy)!=null}function Ho(){return hd()||br(!1),m.useContext(dy).location}function I$(e){m.useContext(Tc).static||m.useLayoutEffect(e)}function gt(){let{isDataRoute:e}=m.useContext(Cs);return e?kz():fz()}function fz(){hd()||br(!1);let e=m.useContext(QC),{basename:t,navigator:n}=m.useContext(Tc),{matches:r}=m.useContext(Cs),{pathname:o}=Ho(),i=JSON.stringify(XC(r).map(c=>c.pathnameBase)),a=m.useRef(!1);return I$(()=>{a.current=!0}),m.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){n.go(c);return}let d=JC(c,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:rl([t,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[t,n,i,o,e])}function hz(){let{matches:e}=m.useContext(Cs),t=e[e.length-1];return t?t.params:{}}function ZC(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=m.useContext(Cs),{pathname:o}=Ho(),i=JSON.stringify(XC(r).map(a=>a.pathnameBase));return m.useMemo(()=>JC(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function mz(e,t){return gz(e,t)}function gz(e,t,n){hd()||br(!1);let{navigator:r}=m.useContext(Tc),{matches:o}=m.useContext(Cs),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let c=Ho(),u;if(t){var d;let v=typeof t=="string"?fd(t):t;s==="/"||(d=v.pathname)!=null&&d.startsWith(s)||br(!1),u=v}else u=c;let p=u.pathname||"/",f=s==="/"?p:p.slice(s.length)||"/",h=VF(e,{pathname:f}),g=Sz(h&&h.map(v=>Object.assign({},v,{params:Object.assign({},a,v.params),pathname:rl([s,r.encodeLocation?r.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?s:rl([s,r.encodeLocation?r.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),o,n);return t&&g?m.createElement(dy.Provider,{value:{location:dv({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Vs.Pop}},g):g}function vz(){let e=Tz(),t=uz(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),n?m.createElement("pre",{style:o},n):null,i)}const yz=m.createElement(vz,null);class bz extends m.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?m.createElement(Cs.Provider,{value:this.props.routeContext},m.createElement(P$.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function wz(e){let{routeContext:t,match:n,children:r}=e,o=m.useContext(QC);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),m.createElement(Cs.Provider,{value:t},r)}function Sz(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let i=e,a=(r=n)==null?void 0:r.errors;if(a!=null){let s=i.findIndex(c=>c.route.id&&(a==null?void 0:a[c.route.id]));s>=0||br(!1),i=i.slice(0,Math.min(i.length,s+1))}return i.reduceRight((s,c,u)=>{let d=c.route.id?a==null?void 0:a[c.route.id]:null,p=null;n&&(p=c.route.errorElement||yz);let f=t.concat(i.slice(0,u+1)),h=()=>{let g;return d?g=p:c.route.Component?g=m.createElement(c.route.Component,null):c.route.element?g=c.route.element:g=s,m.createElement(wz,{match:c,routeContext:{outlet:s,matches:f,isDataRoute:n!=null},children:g})};return n&&(c.route.ErrorBoundary||c.route.errorElement||u===0)?m.createElement(bz,{location:n.location,revalidation:n.revalidation,component:p,error:d,children:h(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):h()},null)}var RS;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(RS||(RS={}));var Lf;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(Lf||(Lf={}));function xz(e){let t=m.useContext(QC);return t||br(!1),t}function Cz(e){let t=m.useContext(_$);return t||br(!1),t}function Ez(e){let t=m.useContext(Cs);return t||br(!1),t}function O$(e){let t=Ez(),n=t.matches[t.matches.length-1];return n.route.id||br(!1),n.route.id}function Tz(){var e;let t=m.useContext(P$),n=Cz(Lf.UseRouteError),r=O$(Lf.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function kz(){let{router:e}=xz(RS.UseNavigateStable),t=O$(Lf.UseNavigateStable),n=m.useRef(!1);return I$(()=>{n.current=!0}),m.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,dv({fromRouteId:t},i)))},[e,t])}function kc(e){let{to:t,replace:n,state:r,relative:o}=e;hd()||br(!1);let{matches:i}=m.useContext(Cs),{pathname:a}=Ho(),s=gt(),c=JC(t,XC(i).map(d=>d.pathnameBase),a,o==="path"),u=JSON.stringify(c);return m.useEffect(()=>s(JSON.parse(u),{replace:n,state:r,relative:o}),[s,u,o,n,r]),null}function Tg(e){br(!1)}function Az(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Vs.Pop,navigator:i,static:a=!1}=e;hd()&&br(!1);let s=t.replace(/^\/*/,"/"),c=m.useMemo(()=>({basename:s,navigator:i,static:a}),[s,i,a]);typeof r=="string"&&(r=fd(r));let{pathname:u="/",search:d="",hash:p="",state:f=null,key:h="default"}=r,g=m.useMemo(()=>{let v=YC(u,s);return v==null?null:{location:{pathname:v,search:d,hash:p,state:f,key:h},navigationType:o}},[s,u,d,p,f,h,o]);return g==null?null:m.createElement(Tc.Provider,{value:c},m.createElement(dy.Provider,{children:n,value:g}))}function Rz(e){let{children:t,location:n}=e;return mz(_S(t),n)}var QA;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(QA||(QA={}));new Promise(()=>{});function _S(e,t){t===void 0&&(t=[]);let n=[];return m.Children.forEach(e,(r,o)=>{if(!m.isValidElement(r))return;let i=[...t,o];if(r.type===m.Fragment){n.push.apply(n,_S(r.props.children,i));return}r.type!==Tg&&br(!1),!r.props.index||!r.props.children||br(!1);let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=_S(r.props.children,i)),n.push(a)}),n}/**
61
- * React Router DOM v6.11.2
62
- *
63
- * Copyright (c) Remix Software Inc.
64
- *
65
- * This source code is licensed under the MIT license found in the
66
- * LICENSE.md file in the root directory of this source tree.
67
- *
68
- * @license MIT
69
- */function pv(){return pv=Object.assign?Object.assign.bind():function(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},pv.apply(this,arguments)}function $$(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function _z(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Pz(e,t){return e.button===0&&(!t||t==="_self")&&!_z(e)}function PS(e){return e===void 0&&(e=""),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(o=>[n,o]):[[n,r]])},[]))}function Iz(e,t){let n=PS(e);if(t)for(let r of t.keys())n.has(r)||t.getAll(r).forEach(o=>{n.append(r,o)});return n}const Oz=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],$z=["aria-current","caseSensitive","className","end","style","to","children"];function Nz(e){let{basename:t,children:n,window:r}=e,o=m.useRef();o.current==null&&(o.current=UF({window:r,v5Compat:!0}));let i=o.current,[a,s]=m.useState({action:i.action,location:i.location});return m.useLayoutEffect(()=>i.listen(s),[i]),m.createElement(Az,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i})}const Lz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Mz=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hn=m.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:c,to:u,preventScrollReset:d}=t,p=$$(t,Oz),{basename:f}=m.useContext(Tc),h,g=!1;if(typeof u=="string"&&Mz.test(u)&&(h=u,Lz))try{let w=new URL(window.location.href),S=u.startsWith("//")?new URL(w.protocol+u):new URL(u),k=YC(S.pathname,f);S.origin===w.origin&&k!=null?u=k+S.search+S.hash:g=!0}catch{}let v=pz(u,{relative:o}),y=Dz(u,{replace:a,state:s,target:c,preventScrollReset:d,relative:o});function b(w){r&&r(w),w.defaultPrevented||y(w)}return m.createElement("a",pv({},p,{href:h||v,onClick:g||i?r:b,ref:n,target:c}))}),nMe=m.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:a=!1,style:s,to:c,children:u}=t,d=$$(t,$z),p=ZC(c,{relative:d.relative}),f=Ho(),h=m.useContext(_$),{navigator:g}=m.useContext(Tc),v=g.encodeLocation?g.encodeLocation(p).pathname:p.pathname,y=f.pathname,b=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;o||(y=y.toLowerCase(),b=b?b.toLowerCase():null,v=v.toLowerCase());let w=y===v||!a&&y.startsWith(v)&&y.charAt(v.length)==="/",S=b!=null&&(b===v||!a&&b.startsWith(v)&&b.charAt(v.length)==="/"),k=w?r:void 0,A;typeof i=="function"?A=i({isActive:w,isPending:S}):A=[i,w?"active":null,S?"pending":null].filter(Boolean).join(" ");let T=typeof s=="function"?s({isActive:w,isPending:S}):s;return m.createElement(hn,pv({},d,{"aria-current":k,className:A,ref:n,style:T,to:c}),typeof u=="function"?u({isActive:w,isPending:S}):u)});var ZA;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(ZA||(ZA={}));var eR;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(eR||(eR={}));function Dz(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a}=t===void 0?{}:t,s=gt(),c=Ho(),u=ZC(e,{relative:a});return m.useCallback(d=>{if(Pz(d,n)){d.preventDefault();let p=r!==void 0?r:uv(c)===uv(u);s(e,{replace:p,state:o,preventScrollReset:i,relative:a})}},[c,s,u,r,o,n,e,i,a])}function md(e){let t=m.useRef(PS(e)),n=m.useRef(!1),r=Ho(),o=m.useMemo(()=>Iz(r.search,n.current?null:t.current),[r.search]),i=gt(),a=m.useCallback((s,c)=>{const u=PS(typeof s=="function"?s(o):s);n.current=!0,i("?"+u,c)},[i,o]);return[o,a]}const Bz={black:"#000",white:"#fff"},Mf=Bz,Fz={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"},zc=Fz,zz={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"},jc=zz,jz={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"},Uc=jz,Uz={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"},Wc=Uz,Wz={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"},Hc=Wz,Hz={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"},ap=Hz,Vz={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"},Gz=Vz;function Eu(){return Eu=Object.assign?Object.assign.bind():function(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},Eu.apply(this,arguments)}function ql(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function N$(e){if(!ql(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=N$(e[n])}),t}function oi(e,t,n={clone:!0}){const r=n.clone?Eu({},e):e;return ql(e)&&ql(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(ql(t[o])&&o in e&&ql(e[o])?r[o]=oi(e[o],t[o],n):n.clone?r[o]=ql(t[o])?N$(t[o]):t[o]:r[o]=t[o])}),r}var L$={exports:{}},qz="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Kz=qz,Yz=Kz;function M$(){}function D$(){}D$.resetWarningCache=M$;var Xz=function(){function e(r,o,i,a,s,c){if(c!==Yz){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:D$,resetWarningCache:M$};return n.PropTypes=n,n};L$.exports=Xz();var Jz=L$.exports;const pe=qr(Jz);function dl(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var B$={exports:{}},On={};/**
70
- * @license React
71
- * react-is.production.min.js
72
- *
73
- * Copyright (c) Facebook, Inc. and its affiliates.
74
- *
75
- * This source code is licensed under the MIT license found in the
76
- * LICENSE file in the root directory of this source tree.
77
- */var e2=Symbol.for("react.element"),t2=Symbol.for("react.portal"),py=Symbol.for("react.fragment"),fy=Symbol.for("react.strict_mode"),hy=Symbol.for("react.profiler"),my=Symbol.for("react.provider"),gy=Symbol.for("react.context"),Qz=Symbol.for("react.server_context"),vy=Symbol.for("react.forward_ref"),yy=Symbol.for("react.suspense"),by=Symbol.for("react.suspense_list"),wy=Symbol.for("react.memo"),Sy=Symbol.for("react.lazy"),Zz=Symbol.for("react.offscreen"),F$;F$=Symbol.for("react.module.reference");function Vi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case e2:switch(e=e.type,e){case py:case hy:case fy:case yy:case by:return e;default:switch(e=e&&e.$$typeof,e){case Qz:case gy:case vy:case Sy:case wy:case my:return e;default:return t}}case t2:return t}}}On.ContextConsumer=gy;On.ContextProvider=my;On.Element=e2;On.ForwardRef=vy;On.Fragment=py;On.Lazy=Sy;On.Memo=wy;On.Portal=t2;On.Profiler=hy;On.StrictMode=fy;On.Suspense=yy;On.SuspenseList=by;On.isAsyncMode=function(){return!1};On.isConcurrentMode=function(){return!1};On.isContextConsumer=function(e){return Vi(e)===gy};On.isContextProvider=function(e){return Vi(e)===my};On.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===e2};On.isForwardRef=function(e){return Vi(e)===vy};On.isFragment=function(e){return Vi(e)===py};On.isLazy=function(e){return Vi(e)===Sy};On.isMemo=function(e){return Vi(e)===wy};On.isPortal=function(e){return Vi(e)===t2};On.isProfiler=function(e){return Vi(e)===hy};On.isStrictMode=function(e){return Vi(e)===fy};On.isSuspense=function(e){return Vi(e)===yy};On.isSuspenseList=function(e){return Vi(e)===by};On.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===py||e===hy||e===fy||e===yy||e===by||e===Zz||typeof e=="object"&&e!==null&&(e.$$typeof===Sy||e.$$typeof===wy||e.$$typeof===my||e.$$typeof===gy||e.$$typeof===vy||e.$$typeof===F$||e.getModuleId!==void 0)};On.typeOf=Vi;B$.exports=On;var ej=B$.exports;const tj=qr(ej);function de(e){if(typeof e!="string")throw new Error(dl(7));return e.charAt(0).toUpperCase()+e.slice(1)}function fv(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function pc(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function nj(e,t){return()=>null}function of(e,t){return m.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function Zn(e){return e&&e.ownerDocument||document}function Li(e){return Zn(e).defaultView||window}function rj(e,t){return()=>null}function Df(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const oj=typeof window<"u"?m.useLayoutEffect:m.useEffect,jo=oj;let tR=0;function ij(e){const[t,n]=m.useState(e),r=e||t;return m.useEffect(()=>{t==null&&(tR+=1,n(`mui-${tR}`))},[t]),r}const nR=zg["useId"];function gd(e){if(nR!==void 0){const t=nR();return e??t}return ij(e)}function aj(e,t,n,r,o){return null}function oa({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=m.useRef(e!==void 0),[i,a]=m.useState(t),s=o?e:i,c=m.useCallback(u=>{o||a(u)},[]);return[s,c]}function Lr(e){const t=m.useRef(e);return jo(()=>{t.current=e}),m.useCallback((...n)=>(0,t.current)(...n),[])}function In(...e){return m.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Df(n,t)})},e)}let xy=!0,IS=!1,rR;const sj={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function lj(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&sj[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function cj(e){e.metaKey||e.altKey||e.ctrlKey||(xy=!0)}function wb(){xy=!1}function uj(){this.visibilityState==="hidden"&&IS&&(xy=!0)}function dj(e){e.addEventListener("keydown",cj,!0),e.addEventListener("mousedown",wb,!0),e.addEventListener("pointerdown",wb,!0),e.addEventListener("touchstart",wb,!0),e.addEventListener("visibilitychange",uj,!0)}function pj(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return xy||lj(t)}function Sh(){const e=m.useCallback(o=>{o!=null&&dj(o.ownerDocument)},[]),t=m.useRef(!1);function n(){return t.current?(IS=!0,window.clearTimeout(rR),rR=window.setTimeout(()=>{IS=!1},100),t.current=!1,!0):!1}function r(o){return pj(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function z$(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Vc;function j$(){if(Vc)return Vc;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Vc="reverse",e.scrollLeft>0?Vc="default":(e.scrollLeft=1,e.scrollLeft===0&&(Vc="negative")),document.body.removeChild(e),Vc}function oR(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(j$()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const fj=e=>{const t=m.useRef({});return m.useEffect(()=>{t.current=e}),t.current},hj=fj,mj={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},gj=mj;function n2(e,t){const n=Eu({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Eu({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=Eu({},i),Object.keys(o).forEach(a=>{n[r][a]=n2(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function et(e,t,n){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>(a&&(i.push(t(a)),n&&n[a]&&i.push(n[a])),i),[]).join(" ")}),r}const iR=e=>e,vj=()=>{let e=iR;return{configure(t){e=t},generate(t){return e(t)},reset(){e=iR}}},yj=vj(),r2=yj,bj={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Je(e,t,n="Mui"){const r=bj[t];return r?`${n}-${r}`:`${r2.generate(e)}-${t}`}function tt(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Je(e,o,n)}),r}function N(){return N=Object.assign?Object.assign.bind():function(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},N.apply(this,arguments)}function Fe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function hv(){return hv=Object.assign?Object.assign.bind():function(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},hv.apply(this,arguments)}function U$(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var wj=/^((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|download|draggable|encType|enterKeyHint|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|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)-.*))$/,Sj=U$(function(e){return wj.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function xj(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 Cj(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 Ej=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Cj(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=xj(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}(),so="-ms-",mv="-moz-",vn="-webkit-",W$="comm",o2="rule",i2="decl",Tj="@import",H$="@keyframes",kj="@layer",Aj=Math.abs,Cy=String.fromCharCode,Rj=Object.assign;function _j(e,t){return eo(e,0)^45?(((t<<2^eo(e,0))<<2^eo(e,1))<<2^eo(e,2))<<2^eo(e,3):0}function V$(e){return e.trim()}function Pj(e,t){return(e=t.exec(e))?e[0]:e}function bn(e,t,n){return e.replace(t,n)}function OS(e,t){return e.indexOf(t)}function eo(e,t){return e.charCodeAt(t)|0}function Bf(e,t,n){return e.slice(t,n)}function va(e){return e.length}function a2(e){return e.length}function _m(e,t){return t.push(e),e}function Ij(e,t){return e.map(t).join("")}var Ey=1,ju=1,G$=0,Uo=0,kr=0,vd="";function Ty(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Ey,column:ju,length:a,return:""}}function sp(e,t){return Rj(Ty("",null,null,"",null,null,0),e,{length:-e.length},t)}function Oj(){return kr}function $j(){return kr=Uo>0?eo(vd,--Uo):0,ju--,kr===10&&(ju=1,Ey--),kr}function ii(){return kr=Uo<G$?eo(vd,Uo++):0,ju++,kr===10&&(ju=1,Ey++),kr}function Na(){return eo(vd,Uo)}function kg(){return Uo}function xh(e,t){return Bf(vd,e,t)}function Ff(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 q$(e){return Ey=ju=1,G$=va(vd=e),Uo=0,[]}function K$(e){return vd="",e}function Ag(e){return V$(xh(Uo-1,$S(e===91?e+2:e===40?e+1:e)))}function Nj(e){for(;(kr=Na())&&kr<33;)ii();return Ff(e)>2||Ff(kr)>3?"":" "}function Lj(e,t){for(;--t&&ii()&&!(kr<48||kr>102||kr>57&&kr<65||kr>70&&kr<97););return xh(e,kg()+(t<6&&Na()==32&&ii()==32))}function $S(e){for(;ii();)switch(kr){case e:return Uo;case 34:case 39:e!==34&&e!==39&&$S(kr);break;case 40:e===41&&$S(e);break;case 92:ii();break}return Uo}function Mj(e,t){for(;ii()&&e+kr!==47+10;)if(e+kr===42+42&&Na()===47)break;return"/*"+xh(t,Uo-1)+"*"+Cy(e===47?e:ii())}function Dj(e){for(;!Ff(Na());)ii();return xh(e,Uo)}function Bj(e){return K$(Rg("",null,null,null,[""],e=q$(e),0,[0],e))}function Rg(e,t,n,r,o,i,a,s,c){for(var u=0,d=0,p=a,f=0,h=0,g=0,v=1,y=1,b=1,w=0,S="",k=o,A=i,T=r,R=S;y;)switch(g=w,w=ii()){case 40:if(g!=108&&eo(R,p-1)==58){OS(R+=bn(Ag(w),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:R+=Ag(w);break;case 9:case 10:case 13:case 32:R+=Nj(g);break;case 92:R+=Lj(kg()-1,7);continue;case 47:switch(Na()){case 42:case 47:_m(Fj(Mj(ii(),kg()),t,n),c);break;default:R+="/"}break;case 123*v:s[u++]=va(R)*b;case 125*v:case 59:case 0:switch(w){case 0:case 125:y=0;case 59+d:b==-1&&(R=bn(R,/\f/g,"")),h>0&&va(R)-p&&_m(h>32?sR(R+";",r,n,p-1):sR(bn(R," ","")+";",r,n,p-2),c);break;case 59:R+=";";default:if(_m(T=aR(R,t,n,u,d,o,s,S,k=[],A=[],p),i),w===123)if(d===0)Rg(R,t,T,T,k,i,p,s,A);else switch(f===99&&eo(R,3)===110?100:f){case 100:case 108:case 109:case 115:Rg(e,T,T,r&&_m(aR(e,T,T,0,0,o,s,S,o,k=[],p),A),o,A,p,s,r?k:A);break;default:Rg(R,T,T,T,[""],A,0,s,A)}}u=d=h=0,v=b=1,S=R="",p=a;break;case 58:p=1+va(R),h=g;default:if(v<1){if(w==123)--v;else if(w==125&&v++==0&&$j()==125)continue}switch(R+=Cy(w),w*v){case 38:b=d>0?1:(R+="\f",-1);break;case 44:s[u++]=(va(R)-1)*b,b=1;break;case 64:Na()===45&&(R+=Ag(ii())),f=Na(),d=p=va(S=R+=Dj(kg())),w++;break;case 45:g===45&&va(R)==2&&(v=0)}}return i}function aR(e,t,n,r,o,i,a,s,c,u,d){for(var p=o-1,f=o===0?i:[""],h=a2(f),g=0,v=0,y=0;g<r;++g)for(var b=0,w=Bf(e,p+1,p=Aj(v=a[g])),S=e;b<h;++b)(S=V$(v>0?f[b]+" "+w:bn(w,/&\f/g,f[b])))&&(c[y++]=S);return Ty(e,t,n,o===0?o2:s,c,u,d)}function Fj(e,t,n){return Ty(e,t,n,W$,Cy(Oj()),Bf(e,2,-2),0)}function sR(e,t,n,r){return Ty(e,t,n,i2,Bf(e,0,r),Bf(e,r+1,-1),r)}function Tu(e,t){for(var n="",r=a2(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function zj(e,t,n,r){switch(e.type){case kj:if(e.children.length)break;case Tj:case i2:return e.return=e.return||e.value;case W$:return"";case H$:return e.return=e.value+"{"+Tu(e.children,r)+"}";case o2:e.value=e.props.join(",")}return va(n=Tu(e.children,r))?e.return=e.value+"{"+n+"}":""}function jj(e){var t=a2(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}function Uj(e){return function(t){t.root||(t=t.return)&&e(t)}}var Wj=function(t,n,r){for(var o=0,i=0;o=i,i=Na(),o===38&&i===12&&(n[r]=1),!Ff(i);)ii();return xh(t,Uo)},Hj=function(t,n){var r=-1,o=44;do switch(Ff(o)){case 0:o===38&&Na()===12&&(n[r]=1),t[r]+=Wj(Uo-1,n,r);break;case 2:t[r]+=Ag(o);break;case 4:if(o===44){t[++r]=Na()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Cy(o)}while(o=ii());return t},Vj=function(t,n){return K$(Hj(q$(t),n))},lR=new WeakMap,Gj=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!lR.get(r))&&!o){lR.set(t,!0);for(var i=[],a=Vj(n,i),s=r.props,c=0,u=0;c<a.length;c++)for(var d=0;d<s.length;d++,u++)t.props[u]=i[c]?a[c].replace(/&\f/g,s[d]):s[d]+" "+a[c]}}},qj=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Y$(e,t){switch(_j(e,t)){case 5103:return vn+"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 vn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return vn+e+mv+e+so+e+e;case 6828:case 4268:return vn+e+so+e+e;case 6165:return vn+e+so+"flex-"+e+e;case 5187:return vn+e+bn(e,/(\w+).+(:[^]+)/,vn+"box-$1$2"+so+"flex-$1$2")+e;case 5443:return vn+e+so+"flex-item-"+bn(e,/flex-|-self/,"")+e;case 4675:return vn+e+so+"flex-line-pack"+bn(e,/align-content|flex-|-self/,"")+e;case 5548:return vn+e+so+bn(e,"shrink","negative")+e;case 5292:return vn+e+so+bn(e,"basis","preferred-size")+e;case 6060:return vn+"box-"+bn(e,"-grow","")+vn+e+so+bn(e,"grow","positive")+e;case 4554:return vn+bn(e,/([^-])(transform)/g,"$1"+vn+"$2")+e;case 6187:return bn(bn(bn(e,/(zoom-|grab)/,vn+"$1"),/(image-set)/,vn+"$1"),e,"")+e;case 5495:case 3959:return bn(e,/(image-set\([^]*)/,vn+"$1$`$1");case 4968:return bn(bn(e,/(.+:)(flex-)?(.*)/,vn+"box-pack:$3"+so+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+vn+e+e;case 4095:case 3583:case 4068:case 2532:return bn(e,/(.+)-inline(.+)/,vn+"$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(va(e)-1-t>6)switch(eo(e,t+1)){case 109:if(eo(e,t+4)!==45)break;case 102:return bn(e,/(.+:)(.+)-([^]+)/,"$1"+vn+"$2-$3$1"+mv+(eo(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~OS(e,"stretch")?Y$(bn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(eo(e,t+1)!==115)break;case 6444:switch(eo(e,va(e)-3-(~OS(e,"!important")&&10))){case 107:return bn(e,":",":"+vn)+e;case 101:return bn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+vn+(eo(e,14)===45?"inline-":"")+"box$3$1"+vn+"$2$3$1"+so+"$2box$3")+e}break;case 5936:switch(eo(e,t+11)){case 114:return vn+e+so+bn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return vn+e+so+bn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return vn+e+so+bn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return vn+e+so+e+e}return e}var Kj=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case i2:t.return=Y$(t.value,t.length);break;case H$:return Tu([sp(t,{value:bn(t.value,"@","@"+vn)})],o);case o2:if(t.length)return Ij(t.props,function(i){switch(Pj(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Tu([sp(t,{props:[bn(i,/:(read-\w+)/,":"+mv+"$1")]})],o);case"::placeholder":return Tu([sp(t,{props:[bn(i,/:(plac\w+)/,":"+vn+"input-$1")]}),sp(t,{props:[bn(i,/:(plac\w+)/,":"+mv+"$1")]}),sp(t,{props:[bn(i,/:(plac\w+)/,so+"input-$1")]})],o)}return""})}},Yj=[Kj],Xj=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var y=v.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||Yj,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var y=v.getAttribute("data-emotion").split(" "),b=1;b<y.length;b++)i[y[b]]=!0;s.push(v)});var c,u=[Gj,qj];{var d,p=[zj,Uj(function(v){d.insert(v)})],f=jj(u.concat(o,p)),h=function(y){return Tu(Bj(y),f)};c=function(y,b,w,S){d=w,h(y?y+"{"+b.styles+"}":b.styles),S&&(g.inserted[b.name]=!0)}}var g={key:n,sheet:new Ej({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return g.sheet.hydrate(s),g},X$={exports:{}},$n={};/** @license React v16.13.1
78
- * react-is.production.min.js
79
- *
80
- * Copyright (c) Facebook, Inc. and its affiliates.
81
- *
82
- * This source code is licensed under the MIT license found in the
83
- * LICENSE file in the root directory of this source tree.
84
- */var Kr=typeof Symbol=="function"&&Symbol.for,s2=Kr?Symbol.for("react.element"):60103,l2=Kr?Symbol.for("react.portal"):60106,ky=Kr?Symbol.for("react.fragment"):60107,Ay=Kr?Symbol.for("react.strict_mode"):60108,Ry=Kr?Symbol.for("react.profiler"):60114,_y=Kr?Symbol.for("react.provider"):60109,Py=Kr?Symbol.for("react.context"):60110,c2=Kr?Symbol.for("react.async_mode"):60111,Iy=Kr?Symbol.for("react.concurrent_mode"):60111,Oy=Kr?Symbol.for("react.forward_ref"):60112,$y=Kr?Symbol.for("react.suspense"):60113,Jj=Kr?Symbol.for("react.suspense_list"):60120,Ny=Kr?Symbol.for("react.memo"):60115,Ly=Kr?Symbol.for("react.lazy"):60116,Qj=Kr?Symbol.for("react.block"):60121,Zj=Kr?Symbol.for("react.fundamental"):60117,eU=Kr?Symbol.for("react.responder"):60118,tU=Kr?Symbol.for("react.scope"):60119;function di(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case s2:switch(e=e.type,e){case c2:case Iy:case ky:case Ry:case Ay:case $y:return e;default:switch(e=e&&e.$$typeof,e){case Py:case Oy:case Ly:case Ny:case _y:return e;default:return t}}case l2:return t}}}function J$(e){return di(e)===Iy}$n.AsyncMode=c2;$n.ConcurrentMode=Iy;$n.ContextConsumer=Py;$n.ContextProvider=_y;$n.Element=s2;$n.ForwardRef=Oy;$n.Fragment=ky;$n.Lazy=Ly;$n.Memo=Ny;$n.Portal=l2;$n.Profiler=Ry;$n.StrictMode=Ay;$n.Suspense=$y;$n.isAsyncMode=function(e){return J$(e)||di(e)===c2};$n.isConcurrentMode=J$;$n.isContextConsumer=function(e){return di(e)===Py};$n.isContextProvider=function(e){return di(e)===_y};$n.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===s2};$n.isForwardRef=function(e){return di(e)===Oy};$n.isFragment=function(e){return di(e)===ky};$n.isLazy=function(e){return di(e)===Ly};$n.isMemo=function(e){return di(e)===Ny};$n.isPortal=function(e){return di(e)===l2};$n.isProfiler=function(e){return di(e)===Ry};$n.isStrictMode=function(e){return di(e)===Ay};$n.isSuspense=function(e){return di(e)===$y};$n.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ky||e===Iy||e===Ry||e===Ay||e===$y||e===Jj||typeof e=="object"&&e!==null&&(e.$$typeof===Ly||e.$$typeof===Ny||e.$$typeof===_y||e.$$typeof===Py||e.$$typeof===Oy||e.$$typeof===Zj||e.$$typeof===eU||e.$$typeof===tU||e.$$typeof===Qj)};$n.typeOf=di;X$.exports=$n;var nU=X$.exports,Q$=nU,rU={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},oU={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Z$={};Z$[Q$.ForwardRef]=rU;Z$[Q$.Memo]=oU;var iU=!0;function aU(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var e6=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||iU===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},t6=function(t,n,r){e6(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function sU(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=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(o){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 lU={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,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},cU=/[A-Z]|^ms/g,uU=/_EMO_([^_]+?)_([^]*?)_EMO_/g,n6=function(t){return t.charCodeAt(1)===45},cR=function(t){return t!=null&&typeof t!="boolean"},Sb=U$(function(e){return n6(e)?e:e.replace(cU,"-$&").toLowerCase()}),uR=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(uU,function(r,o,i){return ya={name:o,styles:i,next:ya},o})}return lU[t]!==1&&!n6(t)&&typeof n=="number"&&n!==0?n+"px":n};function zf(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return ya={name:n.name,styles:n.styles,next:ya},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)ya={name:r.name,styles:r.styles,next:ya},r=r.next;var o=n.styles+";";return o}return dU(e,t,n)}case"function":{if(e!==void 0){var i=ya,a=n(e);return ya=i,zf(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function dU(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=zf(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object")t!=null&&t[a]!==void 0?r+=i+"{"+t[a]+"}":cR(a)&&(r+=Sb(i)+":"+uR(i,a)+";");else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)cR(a[s])&&(r+=Sb(i)+":"+uR(i,a[s])+";");else{var c=zf(e,t,a);switch(i){case"animation":case"animationName":{r+=Sb(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}return r}var dR=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ya,u2=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,i="";ya=void 0;var a=t[0];a==null||a.raw===void 0?(o=!1,i+=zf(r,n,a)):i+=a[0];for(var s=1;s<t.length;s++)i+=zf(r,n,t[s]),o&&(i+=a[s]);dR.lastIndex=0;for(var c="",u;(u=dR.exec(i))!==null;)c+="-"+u[1];var d=sU(i)+c;return{name:d,styles:i,next:ya}},pU=function(t){return t()},r6=zg["useInsertionEffect"]?zg["useInsertionEffect"]:!1,fU=r6||pU,pR=r6||m.useLayoutEffect,d2=m.createContext(typeof HTMLElement<"u"?Xj({key:"css"}):null),hU=d2.Provider,mU=function(){return m.useContext(d2)},o6=function(t){return m.forwardRef(function(n,r){var o=m.useContext(d2);return t(n,o,r)})},p2=m.createContext({}),gU=o6(function(e,t){var n=e.styles,r=u2([n],void 0,m.useContext(p2)),o=m.useRef();return pR(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,c=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),c!==null&&(s=!0,c.setAttribute("data-emotion",i),a.hydrate([c])),o.current=[a,s],function(){a.flush()}},[t]),pR(function(){var i=o.current,a=i[0],s=i[1];if(s){i[1]=!1;return}if(r.next!==void 0&&t6(t,r.next,!0),a.tags.length){var c=a.tags[a.tags.length-1].nextElementSibling;a.before=c,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});function yd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return u2(t)}var Cl=function(){var t=yd.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},vU=Sj,yU=function(t){return t!=="theme"},fR=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?vU:yU},hR=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},bU=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return e6(n,r,o),fU(function(){return t6(n,r,o)}),null},wU=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=hR(t,n,r),c=s||fR(o),u=!c("as");return function(){var d=arguments,p=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&p.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)p.push.apply(p,d);else{p.push(d[0][0]);for(var f=d.length,h=1;h<f;h++)p.push(d[h],d[0][h])}var g=o6(function(v,y,b){var w=u&&v.as||o,S="",k=[],A=v;if(v.theme==null){A={};for(var T in v)A[T]=v[T];A.theme=m.useContext(p2)}typeof v.className=="string"?S=aU(y.registered,k,v.className):v.className!=null&&(S=v.className+" ");var R=u2(p.concat(k),y.registered,A);S+=y.key+"-"+R.name,a!==void 0&&(S+=" "+a);var P=u&&s===void 0?fR(w):c,_={};for(var I in v)u&&I==="as"||P(I)&&(_[I]=v[I]);return _.className=S,_.ref=b,m.createElement(m.Fragment,null,m.createElement(bU,{cache:y,serialized:R,isStringTag:typeof w=="string"}),m.createElement(w,_))});return g.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=o,g.__emotion_styles=p,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return"."+a}}),g.withComponent=function(v,y){return e(v,hv({},n,y,{shouldForwardProp:hR(g,y,!0)})).apply(void 0,p)},g}},SU=["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"],NS=wU.bind();SU.forEach(function(e){NS[e]=NS(e)});function xU(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 CU(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 EU=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(CU(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=xU(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}(),lo="-ms-",gv="-moz-",yn="-webkit-",i6="comm",f2="rule",h2="decl",TU="@import",a6="@keyframes",kU=Math.abs,My=String.fromCharCode,AU=Object.assign;function RU(e,t){return to(e,0)^45?(((t<<2^to(e,0))<<2^to(e,1))<<2^to(e,2))<<2^to(e,3):0}function s6(e){return e.trim()}function _U(e,t){return(e=t.exec(e))?e[0]:e}function Sn(e,t,n){return e.replace(t,n)}function LS(e,t){return e.indexOf(t)}function to(e,t){return e.charCodeAt(t)|0}function jf(e,t,n){return e.slice(t,n)}function ba(e){return e.length}function m2(e){return e.length}function Pm(e,t){return t.push(e),e}function PU(e,t){return e.map(t).join("")}var Dy=1,Uu=1,l6=0,Wo=0,Ar=0,bd="";function By(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Dy,column:Uu,length:a,return:""}}function lp(e,t){return AU(By("",null,null,"",null,null,0),e,{length:-e.length},t)}function IU(){return Ar}function OU(){return Ar=Wo>0?to(bd,--Wo):0,Uu--,Ar===10&&(Uu=1,Dy--),Ar}function ai(){return Ar=Wo<l6?to(bd,Wo++):0,Uu++,Ar===10&&(Uu=1,Dy++),Ar}function La(){return to(bd,Wo)}function _g(){return Wo}function Ch(e,t){return jf(bd,e,t)}function Uf(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 c6(e){return Dy=Uu=1,l6=ba(bd=e),Wo=0,[]}function u6(e){return bd="",e}function Pg(e){return s6(Ch(Wo-1,MS(e===91?e+2:e===40?e+1:e)))}function $U(e){for(;(Ar=La())&&Ar<33;)ai();return Uf(e)>2||Uf(Ar)>3?"":" "}function NU(e,t){for(;--t&&ai()&&!(Ar<48||Ar>102||Ar>57&&Ar<65||Ar>70&&Ar<97););return Ch(e,_g()+(t<6&&La()==32&&ai()==32))}function MS(e){for(;ai();)switch(Ar){case e:return Wo;case 34:case 39:e!==34&&e!==39&&MS(Ar);break;case 40:e===41&&MS(e);break;case 92:ai();break}return Wo}function LU(e,t){for(;ai()&&e+Ar!==47+10;)if(e+Ar===42+42&&La()===47)break;return"/*"+Ch(t,Wo-1)+"*"+My(e===47?e:ai())}function MU(e){for(;!Uf(La());)ai();return Ch(e,Wo)}function DU(e){return u6(Ig("",null,null,null,[""],e=c6(e),0,[0],e))}function Ig(e,t,n,r,o,i,a,s,c){for(var u=0,d=0,p=a,f=0,h=0,g=0,v=1,y=1,b=1,w=0,S="",k=o,A=i,T=r,R=S;y;)switch(g=w,w=ai()){case 40:if(g!=108&&to(R,p-1)==58){LS(R+=Sn(Pg(w),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:R+=Pg(w);break;case 9:case 10:case 13:case 32:R+=$U(g);break;case 92:R+=NU(_g()-1,7);continue;case 47:switch(La()){case 42:case 47:Pm(BU(LU(ai(),_g()),t,n),c);break;default:R+="/"}break;case 123*v:s[u++]=ba(R)*b;case 125*v:case 59:case 0:switch(w){case 0:case 125:y=0;case 59+d:h>0&&ba(R)-p&&Pm(h>32?gR(R+";",r,n,p-1):gR(Sn(R," ","")+";",r,n,p-2),c);break;case 59:R+=";";default:if(Pm(T=mR(R,t,n,u,d,o,s,S,k=[],A=[],p),i),w===123)if(d===0)Ig(R,t,T,T,k,i,p,s,A);else switch(f===99&&to(R,3)===110?100:f){case 100:case 109:case 115:Ig(e,T,T,r&&Pm(mR(e,T,T,0,0,o,s,S,o,k=[],p),A),o,A,p,s,r?k:A);break;default:Ig(R,T,T,T,[""],A,0,s,A)}}u=d=h=0,v=b=1,S=R="",p=a;break;case 58:p=1+ba(R),h=g;default:if(v<1){if(w==123)--v;else if(w==125&&v++==0&&OU()==125)continue}switch(R+=My(w),w*v){case 38:b=d>0?1:(R+="\f",-1);break;case 44:s[u++]=(ba(R)-1)*b,b=1;break;case 64:La()===45&&(R+=Pg(ai())),f=La(),d=p=ba(S=R+=MU(_g())),w++;break;case 45:g===45&&ba(R)==2&&(v=0)}}return i}function mR(e,t,n,r,o,i,a,s,c,u,d){for(var p=o-1,f=o===0?i:[""],h=m2(f),g=0,v=0,y=0;g<r;++g)for(var b=0,w=jf(e,p+1,p=kU(v=a[g])),S=e;b<h;++b)(S=s6(v>0?f[b]+" "+w:Sn(w,/&\f/g,f[b])))&&(c[y++]=S);return By(e,t,n,o===0?f2:s,c,u,d)}function BU(e,t,n){return By(e,t,n,i6,My(IU()),jf(e,2,-2),0)}function gR(e,t,n,r){return By(e,t,n,h2,jf(e,0,r),jf(e,r+1,-1),r)}function ku(e,t){for(var n="",r=m2(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function FU(e,t,n,r){switch(e.type){case TU:case h2:return e.return=e.return||e.value;case i6:return"";case a6:return e.return=e.value+"{"+ku(e.children,r)+"}";case f2:e.value=e.props.join(",")}return ba(n=ku(e.children,r))?e.return=e.value+"{"+n+"}":""}function zU(e){var t=m2(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}function jU(e){return function(t){t.root||(t=t.return)&&e(t)}}var UU=function(t,n,r){for(var o=0,i=0;o=i,i=La(),o===38&&i===12&&(n[r]=1),!Uf(i);)ai();return Ch(t,Wo)},WU=function(t,n){var r=-1,o=44;do switch(Uf(o)){case 0:o===38&&La()===12&&(n[r]=1),t[r]+=UU(Wo-1,n,r);break;case 2:t[r]+=Pg(o);break;case 4:if(o===44){t[++r]=La()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=My(o)}while(o=ai());return t},HU=function(t,n){return u6(WU(c6(t),n))},vR=new WeakMap,VU=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!vR.get(r))&&!o){vR.set(t,!0);for(var i=[],a=HU(n,i),s=r.props,c=0,u=0;c<a.length;c++)for(var d=0;d<s.length;d++,u++)t.props[u]=i[c]?a[c].replace(/&\f/g,s[d]):s[d]+" "+a[c]}}},GU=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function d6(e,t){switch(RU(e,t)){case 5103:return yn+"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 yn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return yn+e+gv+e+lo+e+e;case 6828:case 4268:return yn+e+lo+e+e;case 6165:return yn+e+lo+"flex-"+e+e;case 5187:return yn+e+Sn(e,/(\w+).+(:[^]+)/,yn+"box-$1$2"+lo+"flex-$1$2")+e;case 5443:return yn+e+lo+"flex-item-"+Sn(e,/flex-|-self/,"")+e;case 4675:return yn+e+lo+"flex-line-pack"+Sn(e,/align-content|flex-|-self/,"")+e;case 5548:return yn+e+lo+Sn(e,"shrink","negative")+e;case 5292:return yn+e+lo+Sn(e,"basis","preferred-size")+e;case 6060:return yn+"box-"+Sn(e,"-grow","")+yn+e+lo+Sn(e,"grow","positive")+e;case 4554:return yn+Sn(e,/([^-])(transform)/g,"$1"+yn+"$2")+e;case 6187:return Sn(Sn(Sn(e,/(zoom-|grab)/,yn+"$1"),/(image-set)/,yn+"$1"),e,"")+e;case 5495:case 3959:return Sn(e,/(image-set\([^]*)/,yn+"$1$`$1");case 4968:return Sn(Sn(e,/(.+:)(flex-)?(.*)/,yn+"box-pack:$3"+lo+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+yn+e+e;case 4095:case 3583:case 4068:case 2532:return Sn(e,/(.+)-inline(.+)/,yn+"$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(ba(e)-1-t>6)switch(to(e,t+1)){case 109:if(to(e,t+4)!==45)break;case 102:return Sn(e,/(.+:)(.+)-([^]+)/,"$1"+yn+"$2-$3$1"+gv+(to(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~LS(e,"stretch")?d6(Sn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(to(e,t+1)!==115)break;case 6444:switch(to(e,ba(e)-3-(~LS(e,"!important")&&10))){case 107:return Sn(e,":",":"+yn)+e;case 101:return Sn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+yn+(to(e,14)===45?"inline-":"")+"box$3$1"+yn+"$2$3$1"+lo+"$2box$3")+e}break;case 5936:switch(to(e,t+11)){case 114:return yn+e+lo+Sn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return yn+e+lo+Sn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return yn+e+lo+Sn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return yn+e+lo+e+e}return e}var qU=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case h2:t.return=d6(t.value,t.length);break;case a6:return ku([lp(t,{value:Sn(t.value,"@","@"+yn)})],o);case f2:if(t.length)return PU(t.props,function(i){switch(_U(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ku([lp(t,{props:[Sn(i,/:(read-\w+)/,":"+gv+"$1")]})],o);case"::placeholder":return ku([lp(t,{props:[Sn(i,/:(plac\w+)/,":"+yn+"input-$1")]}),lp(t,{props:[Sn(i,/:(plac\w+)/,":"+gv+"$1")]}),lp(t,{props:[Sn(i,/:(plac\w+)/,lo+"input-$1")]})],o)}return""})}},KU=[qU],YU=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var y=v.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||KU,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var y=v.getAttribute("data-emotion").split(" "),b=1;b<y.length;b++)i[y[b]]=!0;s.push(v)});var c,u=[VU,GU];{var d,p=[FU,jU(function(v){d.insert(v)})],f=zU(u.concat(o,p)),h=function(y){return ku(DU(y),f)};c=function(y,b,w,S){d=w,h(y?y+"{"+b.styles+"}":b.styles),S&&(g.inserted[b.name]=!0)}}var g={key:n,sheet:new EU({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return g.sheet.hydrate(s),g};function XU(e){return e==null||Object.keys(e).length===0}function JU(e){const{styles:t,defaultTheme:n={}}=e;return l(gU,{styles:typeof t=="function"?o=>t(XU(o)?n:o):t})}/**
85
- * @mui/styled-engine v5.11.9
86
- *
87
- * @license MIT
88
- * This source code is licensed under the MIT license found in the
89
- * LICENSE file in the root directory of this source tree.
90
- */function p6(e,t){return NS(e,t)}const QU=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function _r(){return _r=Object.assign?Object.assign.bind():function(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},_r.apply(this,arguments)}function af(e,t){return t?oi(e,t,{clone:!1}):e}const g2={xs:0,sm:600,md:900,lg:1200,xl:1536},yR={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${g2[e]}px)`};function Mi(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||yR;return t.reduce((a,s,c)=>(a[i.up(i.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const i=r.breakpoints||yR;return Object.keys(t).reduce((a,s)=>{if(Object.keys(i.values||g2).indexOf(s)!==-1){const c=i.up(s);a[c]=n(t[s],s)}else{const c=s;a[c]=t[c]}return a},{})}return n(t)}function f6(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function h6(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function rMe(e,...t){const n=f6(e),r=[n,...t].reduce((o,i)=>oi(o,i),{});return h6(Object.keys(n),r)}function ZU(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function Fy({values:e,breakpoints:t,base:n}){const r=n||ZU(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,s,c)=>(Array.isArray(e)?(a[s]=e[c]!=null?e[c]:e[i],i=c):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function Wu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function vv(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Wu(e,n)||r,t&&(o=t(o,r,e)),o}function Cn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],c=a.theme,u=Wu(c,r)||{};return Mi(a,s,p=>{let f=vv(u,o,p);return p===f&&typeof p=="string"&&(f=vv(u,o,`${t}${p==="default"?"":de(p)}`,p)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function zy(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?af(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function eW(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const tW={m:"margin",p:"padding"},nW={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},bR={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},rW=eW(e=>{if(e.length>2)if(bR[e])e=bR[e];else return[e];const[t,n]=e.split(""),r=tW[t],o=nW[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),v2=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],y2=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...v2,...y2];function Eh(e,t,n,r){var o;const i=(o=Wu(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function m6(e){return Eh(e,"spacing",8)}function Th(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function oW(e,t){return n=>e.reduce((r,o)=>(r[o]=Th(t,n),r),{})}function iW(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=rW(n),i=oW(o,r),a=e[n];return Mi(e,a,i)}function g6(e,t){const n=m6(e.theme);return Object.keys(e).map(r=>iW(e,t,r,n)).reduce(af,{})}function ur(e){return g6(e,v2)}ur.propTypes={};ur.filterProps=v2;function dr(e){return g6(e,y2)}dr.propTypes={};dr.filterProps=y2;function Sa(e){return typeof e!="number"?e:`${e}px solid`}const aW=Cn({prop:"border",themeKey:"borders",transform:Sa}),sW=Cn({prop:"borderTop",themeKey:"borders",transform:Sa}),lW=Cn({prop:"borderRight",themeKey:"borders",transform:Sa}),cW=Cn({prop:"borderBottom",themeKey:"borders",transform:Sa}),uW=Cn({prop:"borderLeft",themeKey:"borders",transform:Sa}),dW=Cn({prop:"borderColor",themeKey:"palette"}),pW=Cn({prop:"borderTopColor",themeKey:"palette"}),fW=Cn({prop:"borderRightColor",themeKey:"palette"}),hW=Cn({prop:"borderBottomColor",themeKey:"palette"}),mW=Cn({prop:"borderLeftColor",themeKey:"palette"}),jy=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Eh(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Th(t,r)});return Mi(e,e.borderRadius,n)}return null};jy.propTypes={};jy.filterProps=["borderRadius"];zy(aW,sW,lW,cW,uW,dW,pW,fW,hW,mW,jy);const Uy=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Eh(e.theme,"spacing",8),n=r=>({gap:Th(t,r)});return Mi(e,e.gap,n)}return null};Uy.propTypes={};Uy.filterProps=["gap"];const Wy=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Eh(e.theme,"spacing",8),n=r=>({columnGap:Th(t,r)});return Mi(e,e.columnGap,n)}return null};Wy.propTypes={};Wy.filterProps=["columnGap"];const Hy=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Eh(e.theme,"spacing",8),n=r=>({rowGap:Th(t,r)});return Mi(e,e.rowGap,n)}return null};Hy.propTypes={};Hy.filterProps=["rowGap"];const gW=Cn({prop:"gridColumn"}),vW=Cn({prop:"gridRow"}),yW=Cn({prop:"gridAutoFlow"}),bW=Cn({prop:"gridAutoColumns"}),wW=Cn({prop:"gridAutoRows"}),SW=Cn({prop:"gridTemplateColumns"}),xW=Cn({prop:"gridTemplateRows"}),CW=Cn({prop:"gridTemplateAreas"}),EW=Cn({prop:"gridArea"});zy(Uy,Wy,Hy,gW,vW,yW,bW,wW,SW,xW,CW,EW);function Au(e,t){return t==="grey"?t:e}const TW=Cn({prop:"color",themeKey:"palette",transform:Au}),kW=Cn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Au}),AW=Cn({prop:"backgroundColor",themeKey:"palette",transform:Au});zy(TW,kW,AW);function Qo(e){return e<=1&&e!==0?`${e*100}%`:e}const RW=Cn({prop:"width",transform:Qo}),b2=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o,i;return{maxWidth:((r=e.theme)==null||(o=r.breakpoints)==null||(i=o.values)==null?void 0:i[n])||g2[n]||Qo(n)}};return Mi(e,e.maxWidth,t)}return null};b2.filterProps=["maxWidth"];const _W=Cn({prop:"minWidth",transform:Qo}),PW=Cn({prop:"height",transform:Qo}),IW=Cn({prop:"maxHeight",transform:Qo}),OW=Cn({prop:"minHeight",transform:Qo});Cn({prop:"size",cssProperty:"width",transform:Qo});Cn({prop:"size",cssProperty:"height",transform:Qo});const $W=Cn({prop:"boxSizing"});zy(RW,b2,_W,PW,IW,OW,$W);const NW={border:{themeKey:"borders",transform:Sa},borderTop:{themeKey:"borders",transform:Sa},borderRight:{themeKey:"borders",transform:Sa},borderBottom:{themeKey:"borders",transform:Sa},borderLeft:{themeKey:"borders",transform:Sa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:jy},color:{themeKey:"palette",transform:Au},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Au},backgroundColor:{themeKey:"palette",transform:Au},p:{style:dr},pt:{style:dr},pr:{style:dr},pb:{style:dr},pl:{style:dr},px:{style:dr},py:{style:dr},padding:{style:dr},paddingTop:{style:dr},paddingRight:{style:dr},paddingBottom:{style:dr},paddingLeft:{style:dr},paddingX:{style:dr},paddingY:{style:dr},paddingInline:{style:dr},paddingInlineStart:{style:dr},paddingInlineEnd:{style:dr},paddingBlock:{style:dr},paddingBlockStart:{style:dr},paddingBlockEnd:{style:dr},m:{style:ur},mt:{style:ur},mr:{style:ur},mb:{style:ur},ml:{style:ur},mx:{style:ur},my:{style:ur},margin:{style:ur},marginTop:{style:ur},marginRight:{style:ur},marginBottom:{style:ur},marginLeft:{style:ur},marginX:{style:ur},marginY:{style:ur},marginInline:{style:ur},marginInlineStart:{style:ur},marginInlineEnd:{style:ur},marginBlock:{style:ur},marginBlockStart:{style:ur},marginBlockEnd:{style:ur},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:Uy},rowGap:{style:Hy},columnGap:{style:Wy},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Qo},maxWidth:{style:b2},minWidth:{transform:Qo},height:{transform:Qo},maxHeight:{transform:Qo},minHeight:{transform:Qo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Vy=NW;function LW(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function MW(e,t){return typeof e=="function"?e(t):e}function DW(){function e(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:c=n,themeKey:u,transform:d,style:p}=s;if(r==null)return null;const f=Wu(o,u)||{};return p?p(a):Mi(a,r,g=>{let v=vv(f,d,g);return g===v&&typeof g=="string"&&(v=vv(f,d,`${n}${g==="default"?"":de(g)}`,g)),c===!1?v:{[c]:v}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:Vy;function s(c){let u=c;if(typeof c=="function")u=c(i);else if(typeof c!="object")return c;if(!u)return null;const d=f6(i.breakpoints),p=Object.keys(d);let f=d;return Object.keys(u).forEach(h=>{const g=MW(u[h],i);if(g!=null)if(typeof g=="object")if(a[h])f=af(f,e(h,g,i,a));else{const v=Mi({theme:i},g,y=>({[h]:y}));LW(v,g)?f[h]=t({sx:g,theme:i}):f=af(f,v)}else f=af(f,e(h,g,i,a))}),h6(p,f)}return Array.isArray(o)?o.map(s):s(o)}return t}const v6=DW();v6.filterProps=["sx"];const Gy=v6;function hs(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}const BW=["sx"],FW=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Vy;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function w2(e){const{sx:t}=e,n=hs(e,BW),{systemProps:r,otherProps:o}=FW(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return ql(s)?_r({},r,s):r}:i=_r({},r,t),_r({},o,{sx:i})}function y6(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=y6(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ke(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=y6(e))&&(r&&(r+=" "),r+=t);return r}const zW=["values","unit","step"],jW=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>_r({},n,{[r.key]:r.val}),{})};function UW(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=hs(e,zW),i=jW(t),a=Object.keys(i);function s(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function c(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,h){const g=a.indexOf(h);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:h)-r/100}${n})`}function d(f){return a.indexOf(f)+1<a.length?u(f,a[a.indexOf(f)+1]):s(f)}function p(f){const h=a.indexOf(f);return h===0?s(a[1]):h===a.length-1?c(a[h]):u(f,a[a.indexOf(f)+1]).replace("@media","@media not all and")}return _r({keys:a,values:i,up:s,down:c,between:u,only:d,not:p,unit:n},o)}const WW={borderRadius:4},HW=WW;function VW(e=8){if(e.mui)return e;const t=m6({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}const GW=["breakpoints","palette","spacing","shape"];function qy(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=hs(e,GW),s=UW(n),c=VW(o);let u=oi({breakpoints:s,direction:"ltr",components:{},palette:_r({mode:"light"},r),spacing:c,shape:_r({},HW,i)},a);return u=t.reduce((d,p)=>oi(d,p),u),u.unstable_sxConfig=_r({},Vy,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(p){return Gy({sx:p,theme:this})},u}function DS(){return DS=Object.assign?Object.assign.bind():function(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},DS.apply(this,arguments)}const qW=m.createContext(null),b6=qW;function w6(){return m.useContext(b6)}const KW=typeof Symbol=="function"&&Symbol.for,YW=KW?Symbol.for("mui.nested"):"__THEME_NESTED__";function XW(e,t){return typeof t=="function"?t(e):DS({},e,t)}function JW(e){const{children:t,theme:n}=e,r=w6(),o=m.useMemo(()=>{const i=r===null?n:XW(r,n);return i!=null&&(i[YW]=r!==null),i},[n,r]);return l(b6.Provider,{value:o,children:t})}function QW(e){return Object.keys(e).length===0}function S2(e=null){const t=w6();return!t||QW(t)?e:t}const ZW=qy();function wd(e=ZW){return S2(e)}const eH=["className","component"];function tH(e={}){const{defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:r}=e,o=p6("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(Gy);return m.forwardRef(function(s,c){const u=wd(t),d=w2(s),{className:p,component:f="div"}=d,h=hs(d,eH);return l(o,_r({as:f,ref:c,className:ke(p,r?r(n):n),theme:u},h))})}const nH=["variant"];function wR(e){return e.length===0}function S6(e){const{variant:t}=e,n=hs(e,nH);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=wR(r)?e[o]:de(e[o]):r+=`${wR(r)?o:de(o)}${de(e[o].toString())}`}),r}const rH=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],oH=["theme"],iH=["theme"];function cp(e){return Object.keys(e).length===0}function aH(e){return typeof e=="string"&&e.charCodeAt(0)>96}const sH=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,lH=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(o=>{const i=S6(o.props);r[i]=o.style}),r},cH=(e,t,n,r)=>{var o,i;const{ownerState:a={}}=e,s=[],c=n==null||(o=n.components)==null||(i=o[r])==null?void 0:i.variants;return c&&c.forEach(u=>{let d=!0;Object.keys(u.props).forEach(p=>{a[p]!==u.props[p]&&e[p]!==u.props[p]&&(d=!1)}),d&&s.push(t[S6(u.props)])}),s};function sf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const uH=qy();function x6(e={}){const{defaultTheme:t=uH,rootShouldForwardProp:n=sf,slotShouldForwardProp:r=sf}=e,o=i=>{const a=cp(i.theme)?t:i.theme;return Gy(_r({},i,{theme:a}))};return o.__mui_systemSx=!0,(i,a={})=>{QU(i,S=>S.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:s,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:p}=a,f=hs(a,rH),h=u!==void 0?u:c&&c!=="Root"||!1,g=d||!1;let v,y=sf;c==="Root"?y=n:c?y=r:aH(i)&&(y=void 0);const b=p6(i,_r({shouldForwardProp:y,label:v},f)),w=(S,...k)=>{const A=k?k.map(_=>typeof _=="function"&&_.__emotion_real!==_?I=>{let{theme:$}=I,U=hs(I,oH);return _(_r({theme:cp($)?t:$},U))}:_):[];let T=S;s&&p&&A.push(_=>{const I=cp(_.theme)?t:_.theme,$=sH(s,I);if($){const U={};return Object.entries($).forEach(([M,D])=>{U[M]=typeof D=="function"?D(_r({},_,{theme:I})):D}),p(_,U)}return null}),s&&!h&&A.push(_=>{const I=cp(_.theme)?t:_.theme;return cH(_,lH(s,I),I,s)}),g||A.push(o);const R=A.length-k.length;if(Array.isArray(S)&&R>0){const _=new Array(R).fill("");T=[...S,..._],T.raw=[...S.raw,..._]}else typeof S=="function"&&S.__emotion_real!==S&&(T=_=>{let{theme:I}=_,$=hs(_,iH);return S(_r({theme:cp(I)?t:I},$))});return b(T,...A)};return b.withConfig&&(w.withConfig=b.withConfig),w}}const dH=x6(),oo=dH;function C6(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:n2(t.components[n].defaultProps,r)}function E6({props:e,name:t,defaultTheme:n}){const r=wd(n);return C6({theme:r,name:t,props:e})}function x2(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function pH(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function fc(e){if(e.type)return e;if(e.charAt(0)==="#")return fc(pH(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(dl(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(dl(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function Ky(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function fH(e){e=fc(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(u,d=(u+n/30)%12)=>o-i*Math.max(Math.min(d-3,9-d,1),-1);let s="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",c.push(t[3])),Ky({type:s,values:c})}function BS(e){e=fc(e);let t=e.type==="hsl"||e.type==="hsla"?fc(fH(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function hH(e,t){const n=BS(e),r=BS(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function yt(e,t){return e=fc(e),t=x2(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ky(e)}function pl(e,t){if(e=fc(e),t=x2(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Ky(e)}function fl(e,t){if(e=fc(e),t=x2(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Ky(e)}function SR(e,t=.15){return BS(e)>.5?pl(e,t):fl(e,t)}const mH={};function gH(e){const t=wd();return l(p2.Provider,{value:typeof t=="object"?t:mH,children:e.children})}function vH(e){const{children:t,theme:n}=e;return l(JW,{theme:n,children:l(gH,{children:t})})}const yH=["className","component","disableGutters","fixed","maxWidth","classes"],bH=qy(),wH=oo("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${de(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),SH=e=>E6({props:e,name:"MuiContainer",defaultTheme:bH}),xH=(e,t)=>{const n=c=>Je(t,c),{classes:r,fixed:o,disableGutters:i,maxWidth:a}=e,s={root:["root",a&&`maxWidth${de(String(a))}`,o&&"fixed",i&&"disableGutters"]};return et(s,n,r)};function CH(e={}){const{createStyledComponent:t=wH,useThemeProps:n=SH,componentName:r="MuiContainer"}=e,o=t(({theme:a,ownerState:s})=>_r({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}),({theme:a,ownerState:s})=>s.fixed&&Object.keys(a.breakpoints.values).reduce((c,u)=>{const d=u,p=a.breakpoints.values[d];return p!==0&&(c[a.breakpoints.up(d)]={maxWidth:`${p}${a.breakpoints.unit}`}),c},{}),({theme:a,ownerState:s})=>_r({},s.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[a.breakpoints.up(s.maxWidth)]:{maxWidth:`${a.breakpoints.values[s.maxWidth]}${a.breakpoints.unit}`}}));return m.forwardRef(function(s,c){const u=n(s),{className:d,component:p="div",disableGutters:f=!1,fixed:h=!1,maxWidth:g="lg"}=u,v=hs(u,yH),y=_r({},u,{component:p,disableGutters:f,fixed:h,maxWidth:g}),b=xH(y,r);return l(o,_r({as:p,ownerState:y,className:ke(b.root,d),ref:c},v))})}function EH(e,t){return N({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const TH=["mode","contrastThreshold","tonalOffset"],xR={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:Mf.white,default:Mf.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}},xb={text:{primary:Mf.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:Mf.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}};function CR(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=fl(e.main,o):t==="dark"&&(e.dark=pl(e.main,i)))}function kH(e="light"){return e==="dark"?{main:Uc[200],light:Uc[50],dark:Uc[400]}:{main:Uc[700],light:Uc[400],dark:Uc[800]}}function AH(e="light"){return e==="dark"?{main:jc[200],light:jc[50],dark:jc[400]}:{main:jc[500],light:jc[300],dark:jc[700]}}function RH(e="light"){return e==="dark"?{main:zc[500],light:zc[300],dark:zc[700]}:{main:zc[700],light:zc[400],dark:zc[800]}}function _H(e="light"){return e==="dark"?{main:Wc[400],light:Wc[300],dark:Wc[700]}:{main:Wc[700],light:Wc[500],dark:Wc[900]}}function PH(e="light"){return e==="dark"?{main:Hc[400],light:Hc[300],dark:Hc[700]}:{main:Hc[800],light:Hc[500],dark:Hc[900]}}function IH(e="light"){return e==="dark"?{main:ap[400],light:ap[300],dark:ap[700]}:{main:"#ed6c02",light:ap[500],dark:ap[900]}}function OH(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Fe(e,TH),i=e.primary||kH(t),a=e.secondary||AH(t),s=e.error||RH(t),c=e.info||_H(t),u=e.success||PH(t),d=e.warning||IH(t);function p(v){return hH(v,xb.text.primary)>=n?xb.text.primary:xR.text.primary}const f=({color:v,name:y,mainShade:b=500,lightShade:w=300,darkShade:S=700})=>{if(v=N({},v),!v.main&&v[b]&&(v.main=v[b]),!v.hasOwnProperty("main"))throw new Error(dl(11,y?` (${y})`:"",b));if(typeof v.main!="string")throw new Error(dl(12,y?` (${y})`:"",JSON.stringify(v.main)));return CR(v,"light",w,r),CR(v,"dark",S,r),v.contrastText||(v.contrastText=p(v.main)),v},h={dark:xb,light:xR};return oi(N({common:N({},Mf),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:d,name:"warning"}),info:f({color:c,name:"info"}),success:f({color:u,name:"success"}),grey:Gz,contrastThreshold:n,getContrastText:p,augmentColor:f,tonalOffset:r},h[t]),o)}const $H=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function NH(e){return Math.round(e*1e5)/1e5}const ER={textTransform:"uppercase"},TR='"Roboto", "Helvetica", "Arial", sans-serif';function LH(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=TR,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:p}=n,f=Fe(n,$H),h=o/14,g=p||(b=>`${b/u*h}rem`),v=(b,w,S,k,A)=>N({fontFamily:r,fontWeight:b,fontSize:g(w),lineHeight:S},r===TR?{letterSpacing:`${NH(k/w)}em`}:{},A,d),y={h1:v(i,96,1.167,-1.5),h2:v(i,60,1.2,-.5),h3:v(a,48,1.167,0),h4:v(a,34,1.235,.25),h5:v(a,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(a,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(a,16,1.5,.15),body2:v(a,14,1.43,.15),button:v(s,14,1.75,.4,ER),caption:v(a,12,1.66,.4),overline:v(a,12,2.66,1,ER)};return oi(N({htmlFontSize:u,pxToRem:g,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:c},y),f,{clone:!1})}const MH=.2,DH=.14,BH=.12;function Jn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${MH})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${DH})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${BH})`].join(",")}const FH=["none",Jn(0,2,1,-1,0,1,1,0,0,1,3,0),Jn(0,3,1,-2,0,2,2,0,0,1,5,0),Jn(0,3,3,-2,0,3,4,0,0,1,8,0),Jn(0,2,4,-1,0,4,5,0,0,1,10,0),Jn(0,3,5,-1,0,5,8,0,0,1,14,0),Jn(0,3,5,-1,0,6,10,0,0,1,18,0),Jn(0,4,5,-2,0,7,10,1,0,2,16,1),Jn(0,5,5,-3,0,8,10,1,0,3,14,2),Jn(0,5,6,-3,0,9,12,1,0,3,16,2),Jn(0,6,6,-3,0,10,14,1,0,4,18,3),Jn(0,6,7,-4,0,11,15,1,0,4,20,3),Jn(0,7,8,-4,0,12,17,2,0,5,22,4),Jn(0,7,8,-4,0,13,19,2,0,5,24,4),Jn(0,7,9,-4,0,14,21,2,0,5,26,4),Jn(0,8,9,-5,0,15,22,2,0,6,28,5),Jn(0,8,10,-5,0,16,24,2,0,6,30,5),Jn(0,8,11,-5,0,17,26,2,0,6,32,5),Jn(0,9,11,-5,0,18,28,2,0,7,34,6),Jn(0,9,12,-6,0,19,29,2,0,7,36,6),Jn(0,10,13,-6,0,20,31,3,0,8,38,7),Jn(0,10,13,-6,0,21,33,3,0,8,40,7),Jn(0,10,14,-6,0,22,35,3,0,8,42,7),Jn(0,11,14,-7,0,23,36,3,0,9,44,8),Jn(0,11,15,-7,0,24,38,3,0,9,46,8)],zH=FH,jH=["duration","easing","delay"],UH={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)"},T6={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function kR(e){return`${Math.round(e)}ms`}function WH(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function HH(e){const t=N({},UH,e.easing),n=N({},T6,e.duration);return N({getAutoHeightDuration:WH,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:c=0}=i;return Fe(i,jH),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:kR(a)} ${s} ${typeof c=="string"?c:kR(c)}`).join(",")}},e,{easing:t,duration:n})}const VH={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},GH=VH,qH=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Yy(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Fe(e,qH);if(e.vars)throw new Error(dl(18));const s=OH(r),c=qy(e);let u=oi(c,{mixins:EH(c.breakpoints,n),palette:s,shadows:zH.slice(),typography:LH(s,i),transitions:HH(o),zIndex:N({},GH)});return u=oi(u,a),u=t.reduce((d,p)=>oi(d,p),u),u.unstable_sxConfig=N({},Vy,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(p){return Gy({sx:p,theme:this})},u}const KH=Yy(),Xy=KH;function gn(){return wd(Xy)}function nt({props:e,name:t}){return E6({props:e,name:t,defaultTheme:Xy})}const Vo=e=>sf(e)&&e!=="classes",C2=sf,YH=x6({defaultTheme:Xy,rootShouldForwardProp:Vo}),C=YH,XH=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},AR=XH;function xn(){return xn=Object.assign?Object.assign.bind():function(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},xn.apply(this,arguments)}function Ma(e){return typeof e=="string"}function zp(e,t,n){return e===void 0||Ma(e)?t:xn({},t,{ownerState:xn({},t.ownerState,n)})}function JH(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function FS(e,t){return typeof e=="function"?e(t):e}function kh(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function RR(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function QH(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const h=ke(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),g=xn({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=xn({},n,o,r);return h.length>0&&(v.className=h),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:void 0}}const a=JH(xn({},o,r)),s=RR(r),c=RR(o),u=t(a),d=ke(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),p=xn({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=xn({},u,n,c,s);return d.length>0&&(f.className=d),Object.keys(p).length>0&&(f.style=p),{props:f,internalRef:u.ref}}const ZH=["elementType","externalSlotProps","ownerState"];function Zi(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,i=kh(e,ZH),a=FS(r,o),{props:s,internalRef:c}=QH(xn({},i,{externalSlotProps:a})),u=In(c,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return zp(n,xn({},s,{ref:u}),o)}function _R(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function eV(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:a=!1}=e;return(s,{inputValue:c,getOptionLabel:u})=>{let d=a?c.trim():c;n&&(d=d.toLowerCase()),t&&(d=_R(d));const p=d?s.filter(f=>{let h=(i||u)(f);return n&&(h=h.toLowerCase()),t&&(h=_R(h)),o==="start"?h.indexOf(d)===0:h.indexOf(d)>-1}):s;return typeof r=="number"?p.slice(0,r):p}}function Cb(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const tV=eV(),PR=5,nV=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function rV(e){const{unstable_isActiveElementInListbox:t=nV,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:d=e.multiple?[]:null,disableClearable:p=!1,disableCloseOnSelect:f=!1,disabled:h,disabledItemsFocusable:g=!1,disableListWrap:v=!1,filterOptions:y=tV,filterSelectedOptions:b=!1,freeSolo:w=!1,getOptionDisabled:S,getOptionLabel:k=ge=>{var ue;return(ue=ge.label)!=null?ue:ge},groupBy:A,handleHomeEndKeys:T=!e.freeSolo,id:R,includeInputInList:P=!1,inputValue:_,isOptionEqualToValue:I=(ge,ue)=>ge===ue,multiple:$=!1,onChange:U,onClose:M,onHighlightChange:D,onInputChange:K,onOpen:H,open:Q,openOnFocus:V=!1,options:j,readOnly:z=!1,selectOnFocus:O=!e.freeSolo,value:B}=e,Z=gd(R);let ae=k;ae=ge=>{const ue=k(ge);return typeof ue!="string"?String(ue):ue};const Ae=m.useRef(!1),fe=m.useRef(!0),Ie=m.useRef(null),ne=m.useRef(null),[ie,ce]=m.useState(null),[te,Ne]=m.useState(-1),ye=o?0:-1,Ce=m.useRef(ye),[me,at]=oa({controlled:B,default:d,name:u}),[Oe,Ge]=oa({controlled:_,default:"",name:u,state:"inputValue"}),[dt,ot]=m.useState(!1),st=m.useCallback((ge,ue)=>{if(!($?me.length<ue.length:ue!==null)&&!s)return;let pt;if($)pt="";else if(ue==null)pt="";else{const Mt=ae(ue);pt=typeof Mt=="string"?Mt:""}Oe!==pt&&(Ge(pt),K&&K(ge,pt,"reset"))},[ae,Oe,$,K,Ge,s,me]),[Lt,Ct]=oa({controlled:Q,default:!1,name:u,state:"open"}),[we,$e]=m.useState(!0),Qe=!$&&me!=null&&Oe===ae(me),oe=Lt&&!z,ee=oe?y(j.filter(ge=>!(b&&($?me:[me]).some(ue=>ue!==null&&I(ge,ue)))),{inputValue:Qe&&we?"":Oe,getOptionLabel:ae}):[],X=hj({filteredOptions:ee,value:me});m.useEffect(()=>{const ge=me!==X.value;dt&&!ge||w&&!ge||st(null,me)},[me,st,dt,X.value,w]);const Se=Lt&&ee.length>0&&!z,Re=Lr(ge=>{ge===-1?Ie.current.focus():ie.querySelector(`[data-tag-index="${ge}"]`).focus()});m.useEffect(()=>{$&&te>me.length-1&&(Ne(-1),Re(-1))},[me,$,te,Re]);function Me(ge,ue){if(!ne.current||ge===-1)return-1;let qe=ge;for(;;){if(ue==="next"&&qe===ee.length||ue==="previous"&&qe===-1)return-1;const pt=ne.current.querySelector(`[data-option-index="${qe}"]`),Mt=g?!1:!pt||pt.disabled||pt.getAttribute("aria-disabled")==="true";if(pt&&!pt.hasAttribute("tabindex")||Mt)qe+=ue==="next"?1:-1;else return qe}}const bt=Lr(({event:ge,index:ue,reason:qe="auto"})=>{if(Ce.current=ue,ue===-1?Ie.current.removeAttribute("aria-activedescendant"):Ie.current.setAttribute("aria-activedescendant",`${Z}-option-${ue}`),D&&D(ge,ue===-1?null:ee[ue],qe),!ne.current)return;const pt=ne.current.querySelector(`[role="option"].${n}-focused`);pt&&(pt.classList.remove(`${n}-focused`),pt.classList.remove(`${n}-focusVisible`));const Mt=ne.current.parentElement.querySelector('[role="listbox"]');if(!Mt)return;if(ue===-1){Mt.scrollTop=0;return}const Bn=ne.current.querySelector(`[data-option-index="${ue}"]`);if(Bn&&(Bn.classList.add(`${n}-focused`),qe==="keyboard"&&Bn.classList.add(`${n}-focusVisible`),Mt.scrollHeight>Mt.clientHeight&&qe!=="mouse")){const zn=Bn,Et=Mt.clientHeight+Mt.scrollTop,jn=zn.offsetTop+zn.offsetHeight;jn>Et?Mt.scrollTop=jn-Mt.clientHeight:zn.offsetTop-zn.offsetHeight*(A?1.3:0)<Mt.scrollTop&&(Mt.scrollTop=zn.offsetTop-zn.offsetHeight*(A?1.3:0))}}),_t=Lr(({event:ge,diff:ue,direction:qe="next",reason:pt="auto"})=>{if(!oe)return;const Bn=Me((()=>{const zn=ee.length-1;if(ue==="reset")return ye;if(ue==="start")return 0;if(ue==="end")return zn;const Et=Ce.current+ue;return Et<0?Et===-1&&P?-1:v&&Ce.current!==-1||Math.abs(ue)>1?0:zn:Et>zn?Et===zn+1&&P?-1:v||Math.abs(ue)>1?zn:0:Et})(),qe);if(bt({index:Bn,reason:pt,event:ge}),r&&ue!=="reset")if(Bn===-1)Ie.current.value=Oe;else{const zn=ae(ee[Bn]);Ie.current.value=zn,zn.toLowerCase().indexOf(Oe.toLowerCase())===0&&Oe.length>0&&Ie.current.setSelectionRange(Oe.length,zn.length)}}),zt=()=>{const ge=(ue,qe)=>{const pt=ue?ae(ue):"",Mt=qe?ae(qe):"";return pt===Mt};if(Ce.current!==-1&&X.filteredOptions&&X.filteredOptions.length!==ee.length&&($?me.length===X.value.length&&X.value.every((ue,qe)=>ae(me[qe])===ae(ue)):ge(X.value,me))){const ue=X.filteredOptions[Ce.current];if(ue&&ee.some(pt=>ae(pt)===ae(ue)))return!0}return!1},dn=m.useCallback(()=>{if(!oe||zt())return;const ge=$?me[0]:me;if(ee.length===0||ge==null){_t({diff:"reset"});return}if(ne.current){if(ge!=null){const ue=ee[Ce.current];if($&&ue&&Cb(me,pt=>I(ue,pt))!==-1)return;const qe=Cb(ee,pt=>I(pt,ge));qe===-1?_t({diff:"reset"}):bt({index:qe});return}if(Ce.current>=ee.length-1){bt({index:ee.length-1});return}bt({index:Ce.current})}},[ee.length,$?!1:me,b,_t,bt,oe,Oe,$]),jt=Lr(ge=>{Df(ne,ge),ge&&dn()});m.useEffect(()=>{dn()},[dn]);const Gt=ge=>{Lt||(Ct(!0),$e(!0),H&&H(ge))},nn=(ge,ue)=>{Lt&&(Ct(!1),M&&M(ge,ue))},Hn=(ge,ue,qe,pt)=>{if($){if(me.length===ue.length&&me.every((Mt,Bn)=>Mt===ue[Bn]))return}else if(me===ue)return;U&&U(ge,ue,qe,pt),at(ue)},pn=m.useRef(!1),qt=(ge,ue,qe="selectOption",pt="options")=>{let Mt=qe,Bn=ue;if($){Bn=Array.isArray(me)?me.slice():[];const zn=Cb(Bn,Et=>I(ue,Et));zn===-1?Bn.push(ue):pt!=="freeSolo"&&(Bn.splice(zn,1),Mt="removeOption")}st(ge,Bn),Hn(ge,Bn,Mt,{option:ue}),!f&&(!ge||!ge.ctrlKey&&!ge.metaKey)&&nn(ge,Mt),(a===!0||a==="touch"&&pn.current||a==="mouse"&&!pn.current)&&Ie.current.blur()};function sr(ge,ue){if(ge===-1)return-1;let qe=ge;for(;;){if(ue==="next"&&qe===me.length||ue==="previous"&&qe===-1)return-1;const pt=ie.querySelector(`[data-tag-index="${qe}"]`);if(!pt||!pt.hasAttribute("tabindex")||pt.disabled||pt.getAttribute("aria-disabled")==="true")qe+=ue==="next"?1:-1;else return qe}}const Br=(ge,ue)=>{if(!$)return;Oe===""&&nn(ge,"toggleInput");let qe=te;te===-1?Oe===""&&ue==="previous"&&(qe=me.length-1):(qe+=ue==="next"?1:-1,qe<0&&(qe=0),qe===me.length&&(qe=-1)),qe=sr(qe,ue),Ne(qe),Re(qe)},_o=ge=>{Ae.current=!0,Ge(""),K&&K(ge,"","clear"),Hn(ge,$?[]:null,"clear")},Go=ge=>ue=>{if(ge.onKeyDown&&ge.onKeyDown(ue),!ue.defaultMuiPrevented&&(te!==-1&&["ArrowLeft","ArrowRight"].indexOf(ue.key)===-1&&(Ne(-1),Re(-1)),ue.which!==229))switch(ue.key){case"Home":oe&&T&&(ue.preventDefault(),_t({diff:"start",direction:"next",reason:"keyboard",event:ue}));break;case"End":oe&&T&&(ue.preventDefault(),_t({diff:"end",direction:"previous",reason:"keyboard",event:ue}));break;case"PageUp":ue.preventDefault(),_t({diff:-PR,direction:"previous",reason:"keyboard",event:ue}),Gt(ue);break;case"PageDown":ue.preventDefault(),_t({diff:PR,direction:"next",reason:"keyboard",event:ue}),Gt(ue);break;case"ArrowDown":ue.preventDefault(),_t({diff:1,direction:"next",reason:"keyboard",event:ue}),Gt(ue);break;case"ArrowUp":ue.preventDefault(),_t({diff:-1,direction:"previous",reason:"keyboard",event:ue}),Gt(ue);break;case"ArrowLeft":Br(ue,"previous");break;case"ArrowRight":Br(ue,"next");break;case"Enter":if(Ce.current!==-1&&oe){const qe=ee[Ce.current],pt=S?S(qe):!1;if(ue.preventDefault(),pt)return;qt(ue,qe,"selectOption"),r&&Ie.current.setSelectionRange(Ie.current.value.length,Ie.current.value.length)}else w&&Oe!==""&&Qe===!1&&($&&ue.preventDefault(),qt(ue,Oe,"createOption","freeSolo"));break;case"Escape":oe?(ue.preventDefault(),ue.stopPropagation(),nn(ue,"escape")):c&&(Oe!==""||$&&me.length>0)&&(ue.preventDefault(),ue.stopPropagation(),_o(ue));break;case"Backspace":if($&&!z&&Oe===""&&me.length>0){const qe=te===-1?me.length-1:te,pt=me.slice();pt.splice(qe,1),Hn(ue,pt,"removeOption",{option:me[qe]})}break;case"Delete":if($&&!z&&Oe===""&&me.length>0&&te!==-1){const qe=te,pt=me.slice();pt.splice(qe,1),Hn(ue,pt,"removeOption",{option:me[qe]})}break}},qo=ge=>{ot(!0),V&&!Ae.current&&Gt(ge)},Jr=ge=>{if(t(ne)){Ie.current.focus();return}ot(!1),fe.current=!0,Ae.current=!1,i&&Ce.current!==-1&&oe?qt(ge,ee[Ce.current],"blur"):i&&w&&Oe!==""?qt(ge,Oe,"blur","freeSolo"):s&&st(ge,me),nn(ge,"blur")},Po=ge=>{const ue=ge.target.value;Oe!==ue&&(Ge(ue),$e(!1),K&&K(ge,ue,"input")),ue===""?!p&&!$&&Hn(ge,null,"clear"):Gt(ge)},vr=ge=>{bt({event:ge,index:Number(ge.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},Io=()=>{pn.current=!0},Fr=ge=>{const ue=Number(ge.currentTarget.getAttribute("data-option-index"));qt(ge,ee[ue],"selectOption"),pn.current=!1},Vt=ge=>ue=>{const qe=me.slice();qe.splice(ge,1),Hn(ue,qe,"removeOption",{option:me[ge]})},an=ge=>{Lt?nn(ge,"toggleInput"):Gt(ge)},tr=ge=>{ge.target.getAttribute("id")!==Z&&ge.preventDefault()},$r=()=>{Ie.current.focus(),O&&fe.current&&Ie.current.selectionEnd-Ie.current.selectionStart===0&&Ie.current.select(),fe.current=!1},bo=ge=>{(Oe===""||!Lt)&&an(ge)};let wo=w&&Oe.length>0;wo=wo||($?me.length>0:me!==null);let Yi=ee;return A&&(Yi=ee.reduce((ge,ue,qe)=>{const pt=A(ue);return ge.length>0&&ge[ge.length-1].group===pt?ge[ge.length-1].options.push(ue):ge.push({key:qe,index:qe,group:pt,options:[ue]}),ge},[])),h&&dt&&Jr(),{getRootProps:(ge={})=>xn({"aria-owns":Se?`${Z}-listbox`:null},ge,{onKeyDown:Go(ge),onMouseDown:tr,onClick:$r}),getInputLabelProps:()=>({id:`${Z}-label`,htmlFor:Z}),getInputProps:()=>({id:Z,value:Oe,onBlur:Jr,onFocus:qo,onChange:Po,onMouseDown:bo,"aria-activedescendant":oe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Se?`${Z}-listbox`:void 0,"aria-expanded":Se,autoComplete:"off",ref:Ie,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,onClick:_o}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:an}),getTagProps:({index:ge})=>xn({key:ge,"data-tag-index":ge,tabIndex:-1},!z&&{onDelete:Vt(ge)}),getListboxProps:()=>({role:"listbox",id:`${Z}-listbox`,"aria-labelledby":`${Z}-label`,ref:jt,onMouseDown:ge=>{ge.preventDefault()}}),getOptionProps:({index:ge,option:ue})=>{const qe=($?me:[me]).some(Mt=>Mt!=null&&I(ue,Mt)),pt=S?S(ue):!1;return{key:ae(ue),tabIndex:-1,role:"option",id:`${Z}-option-${ge}`,onMouseOver:vr,onClick:Fr,onTouchStart:Io,"data-option-index":ge,"aria-disabled":pt,"aria-selected":qe}},id:Z,inputValue:Oe,value:me,dirty:wo,popupOpen:oe,focused:dt||te!==-1,anchorEl:ie,setAnchorEl:ce,focusedTag:te,groupedOptions:Yi}}function IR(e){return e.substring(2).toLowerCase()}function oV(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function k6(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,a=m.useRef(!1),s=m.useRef(null),c=m.useRef(!1),u=m.useRef(!1);m.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const d=In(t.ref,s),p=Lr(g=>{const v=u.current;u.current=!1;const y=Zn(s.current);if(!c.current||!s.current||"clientX"in g&&oV(g,y))return;if(a.current){a.current=!1;return}let b;g.composedPath?b=g.composedPath().indexOf(s.current)>-1:b=!y.documentElement.contains(g.target)||s.current.contains(g.target),!b&&(n||!v)&&o(g)}),f=g=>v=>{u.current=!0;const y=t.props[g];y&&y(v)},h={ref:d};return i!==!1&&(h[i]=f(i)),m.useEffect(()=>{if(i!==!1){const g=IR(i),v=Zn(s.current),y=()=>{a.current=!0};return v.addEventListener(g,p),v.addEventListener("touchmove",y),()=>{v.removeEventListener(g,p),v.removeEventListener("touchmove",y)}}},[p,i]),r!==!1&&(h[r]=f(r)),m.useEffect(()=>{if(r!==!1){const g=IR(r),v=Zn(s.current);return v.addEventListener(g,p),()=>{v.removeEventListener(g,p)}}},[p,r]),l(m.Fragment,{children:m.cloneElement(t,h)})}const iV=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function aV(e){const 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 sV(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function lV(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||sV(e))}function cV(e){const t=[],n=[];return Array.from(e.querySelectorAll(iV)).forEach((r,o)=>{const i=aV(r);i===-1||!lV(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function uV(){return!0}function dV(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=cV,isEnabled:a=uV,open:s}=e,c=m.useRef(!1),u=m.useRef(null),d=m.useRef(null),p=m.useRef(null),f=m.useRef(null),h=m.useRef(!1),g=m.useRef(null),v=In(t.ref,g),y=m.useRef(null);m.useEffect(()=>{!s||!g.current||(h.current=!n)},[n,s]),m.useEffect(()=>{if(!s||!g.current)return;const S=Zn(g.current);return g.current.contains(S.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),h.current&&g.current.focus()),()=>{o||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}},[s]),m.useEffect(()=>{if(!s||!g.current)return;const S=Zn(g.current),k=R=>{const{current:P}=g;if(P!==null){if(!S.hasFocus()||r||!a()||c.current){c.current=!1;return}if(!P.contains(S.activeElement)){if(R&&f.current!==R.target||S.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!h.current)return;let $=[];if((S.activeElement===u.current||S.activeElement===d.current)&&($=i(g.current)),$.length>0){var _,I;const U=!!((_=y.current)!=null&&_.shiftKey&&((I=y.current)==null?void 0:I.key)==="Tab"),M=$[0],D=$[$.length-1];typeof M!="string"&&typeof D!="string"&&(U?D.focus():M.focus())}else P.focus()}}},A=R=>{y.current=R,!(r||!a()||R.key!=="Tab")&&S.activeElement===g.current&&R.shiftKey&&(c.current=!0,d.current&&d.current.focus())};S.addEventListener("focusin",k),S.addEventListener("keydown",A,!0);const T=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&k(null)},50);return()=>{clearInterval(T),S.removeEventListener("focusin",k),S.removeEventListener("keydown",A,!0)}},[n,r,o,a,s,i]);const b=S=>{p.current===null&&(p.current=S.relatedTarget),h.current=!0,f.current=S.target;const k=t.props.onFocus;k&&k(S)},w=S=>{p.current===null&&(p.current=S.relatedTarget),h.current=!0};return x(m.Fragment,{children:[l("div",{tabIndex:s?0:-1,onFocus:w,ref:u,"data-testid":"sentinelStart"}),m.cloneElement(t,{ref:v,onFocus:b}),l("div",{tabIndex:s?0:-1,onFocus:w,ref:d,"data-testid":"sentinelEnd"})]})}var Fo="top",Di="bottom",Bi="right",zo="left",E2="auto",Ah=[Fo,Di,Bi,zo],Hu="start",Wf="end",pV="clippingParents",A6="viewport",up="popper",fV="reference",OR=Ah.reduce(function(e,t){return e.concat([t+"-"+Hu,t+"-"+Wf])},[]),R6=[].concat(Ah,[E2]).reduce(function(e,t){return e.concat([t,t+"-"+Hu,t+"-"+Wf])},[]),hV="beforeRead",mV="read",gV="afterRead",vV="beforeMain",yV="main",bV="afterMain",wV="beforeWrite",SV="write",xV="afterWrite",CV=[hV,mV,gV,vV,yV,bV,wV,SV,xV];function za(e){return e?(e.nodeName||"").toLowerCase():null}function Gi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function hc(e){var t=Gi(e).Element;return e instanceof t||e instanceof Element}function Ri(e){var t=Gi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function T2(e){if(typeof ShadowRoot>"u")return!1;var t=Gi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function EV(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Ri(i)||!za(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function TV(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(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(c,u){return c[u]="",c},{});!Ri(o)||!za(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const kV={name:"applyStyles",enabled:!0,phase:"write",fn:EV,effect:TV,requires:["computeStyles"]};function Da(e){return e.split("-")[0]}var ic=Math.max,yv=Math.min,Vu=Math.round;function zS(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function _6(){return!/^((?!chrome|android).)*safari/i.test(zS())}function Gu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Ri(e)&&(o=e.offsetWidth>0&&Vu(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Vu(r.height)/e.offsetHeight||1);var a=hc(e)?Gi(e):window,s=a.visualViewport,c=!_6()&&n,u=(r.left+(c&&s?s.offsetLeft:0))/o,d=(r.top+(c&&s?s.offsetTop:0))/i,p=r.width/o,f=r.height/i;return{width:p,height:f,top:d,right:u+p,bottom:d+f,left:u,x:u,y:d}}function k2(e){var t=Gu(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 P6(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&T2(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function bs(e){return Gi(e).getComputedStyle(e)}function AV(e){return["table","td","th"].indexOf(za(e))>=0}function El(e){return((hc(e)?e.ownerDocument:e.document)||window.document).documentElement}function Jy(e){return za(e)==="html"?e:e.assignedSlot||e.parentNode||(T2(e)?e.host:null)||El(e)}function $R(e){return!Ri(e)||bs(e).position==="fixed"?null:e.offsetParent}function RV(e){var t=/firefox/i.test(zS()),n=/Trident/i.test(zS());if(n&&Ri(e)){var r=bs(e);if(r.position==="fixed")return null}var o=Jy(e);for(T2(o)&&(o=o.host);Ri(o)&&["html","body"].indexOf(za(o))<0;){var i=bs(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Rh(e){for(var t=Gi(e),n=$R(e);n&&AV(n)&&bs(n).position==="static";)n=$R(n);return n&&(za(n)==="html"||za(n)==="body"&&bs(n).position==="static")?t:n||RV(e)||t}function A2(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function lf(e,t,n){return ic(e,yv(t,n))}function _V(e,t,n){var r=lf(e,t,n);return r>n?n:r}function I6(){return{top:0,right:0,bottom:0,left:0}}function O6(e){return Object.assign({},I6(),e)}function $6(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var PV=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,O6(typeof t!="number"?t:$6(t,Ah))};function IV(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Da(n.placement),c=A2(s),u=[zo,Bi].indexOf(s)>=0,d=u?"height":"width";if(!(!i||!a)){var p=PV(o.padding,n),f=k2(i),h=c==="y"?Fo:zo,g=c==="y"?Di:Bi,v=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],y=a[c]-n.rects.reference[c],b=Rh(i),w=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,S=v/2-y/2,k=p[h],A=w-f[d]-p[g],T=w/2-f[d]/2+S,R=lf(k,T,A),P=c;n.modifiersData[r]=(t={},t[P]=R,t.centerOffset=R-T,t)}}function OV(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||P6(t.elements.popper,o)&&(t.elements.arrow=o))}const $V={name:"arrow",enabled:!0,phase:"main",fn:IV,effect:OV,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function qu(e){return e.split("-")[1]}var NV={top:"auto",right:"auto",bottom:"auto",left:"auto"};function LV(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:Vu(t*o)/o||0,y:Vu(n*o)/o||0}}function NR(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,p=e.isFixed,f=a.x,h=f===void 0?0:f,g=a.y,v=g===void 0?0:g,y=typeof d=="function"?d({x:h,y:v}):{x:h,y:v};h=y.x,v=y.y;var b=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),S=zo,k=Fo,A=window;if(u){var T=Rh(n),R="clientHeight",P="clientWidth";if(T===Gi(n)&&(T=El(n),bs(T).position!=="static"&&s==="absolute"&&(R="scrollHeight",P="scrollWidth")),T=T,o===Fo||(o===zo||o===Bi)&&i===Wf){k=Di;var _=p&&T===A&&A.visualViewport?A.visualViewport.height:T[R];v-=_-r.height,v*=c?1:-1}if(o===zo||(o===Fo||o===Di)&&i===Wf){S=Bi;var I=p&&T===A&&A.visualViewport?A.visualViewport.width:T[P];h-=I-r.width,h*=c?1:-1}}var $=Object.assign({position:s},u&&NV),U=d===!0?LV({x:h,y:v}):{x:h,y:v};if(h=U.x,v=U.y,c){var M;return Object.assign({},$,(M={},M[k]=w?"0":"",M[S]=b?"0":"",M.transform=(A.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",M))}return Object.assign({},$,(t={},t[k]=w?v+"px":"",t[S]=b?h+"px":"",t.transform="",t))}function MV(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,c=s===void 0?!0:s,u={placement:Da(t.placement),variation:qu(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,NR(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,NR(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const DV={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:MV,data:{}};var Im={passive:!0};function BV(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,c=Gi(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,Im)}),s&&c.addEventListener("resize",n.update,Im),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Im)}),s&&c.removeEventListener("resize",n.update,Im)}}const FV={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:BV,data:{}};var zV={left:"right",right:"left",bottom:"top",top:"bottom"};function Og(e){return e.replace(/left|right|bottom|top/g,function(t){return zV[t]})}var jV={start:"end",end:"start"};function LR(e){return e.replace(/start|end/g,function(t){return jV[t]})}function R2(e){var t=Gi(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function _2(e){return Gu(El(e)).left+R2(e).scrollLeft}function UV(e,t){var n=Gi(e),r=El(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;var u=_6();(u||!u&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s+_2(e),y:c}}function WV(e){var t,n=El(e),r=R2(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ic(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ic(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+_2(e),c=-r.scrollTop;return bs(o||n).direction==="rtl"&&(s+=ic(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}function P2(e){var t=bs(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function N6(e){return["html","body","#document"].indexOf(za(e))>=0?e.ownerDocument.body:Ri(e)&&P2(e)?e:N6(Jy(e))}function cf(e,t){var n;t===void 0&&(t=[]);var r=N6(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Gi(r),a=o?[i].concat(i.visualViewport||[],P2(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(cf(Jy(a)))}function jS(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function HV(e,t){var n=Gu(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=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 MR(e,t,n){return t===A6?jS(UV(e,n)):hc(t)?HV(t,n):jS(WV(El(e)))}function VV(e){var t=cf(Jy(e)),n=["absolute","fixed"].indexOf(bs(e).position)>=0,r=n&&Ri(e)?Rh(e):e;return hc(r)?t.filter(function(o){return hc(o)&&P6(o,r)&&za(o)!=="body"}):[]}function GV(e,t,n,r){var o=t==="clippingParents"?VV(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(c,u){var d=MR(e,u,r);return c.top=ic(d.top,c.top),c.right=yv(d.right,c.right),c.bottom=yv(d.bottom,c.bottom),c.left=ic(d.left,c.left),c},MR(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function L6(e){var t=e.reference,n=e.element,r=e.placement,o=r?Da(r):null,i=r?qu(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(o){case Fo:c={x:a,y:t.y-n.height};break;case Di:c={x:a,y:t.y+t.height};break;case Bi:c={x:t.x+t.width,y:s};break;case zo:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var u=o?A2(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case Hu:c[u]=c[u]-(t[d]/2-n[d]/2);break;case Wf:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function Hf(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,c=s===void 0?pV:s,u=n.rootBoundary,d=u===void 0?A6:u,p=n.elementContext,f=p===void 0?up:p,h=n.altBoundary,g=h===void 0?!1:h,v=n.padding,y=v===void 0?0:v,b=O6(typeof y!="number"?y:$6(y,Ah)),w=f===up?fV:up,S=e.rects.popper,k=e.elements[g?w:f],A=GV(hc(k)?k:k.contextElement||El(e.elements.popper),c,d,a),T=Gu(e.elements.reference),R=L6({reference:T,element:S,strategy:"absolute",placement:o}),P=jS(Object.assign({},S,R)),_=f===up?P:T,I={top:A.top-_.top+b.top,bottom:_.bottom-A.bottom+b.bottom,left:A.left-_.left+b.left,right:_.right-A.right+b.right},$=e.modifiersData.offset;if(f===up&&$){var U=$[o];Object.keys(I).forEach(function(M){var D=[Bi,Di].indexOf(M)>=0?1:-1,K=[Fo,Di].indexOf(M)>=0?"y":"x";I[M]+=U[K]*D})}return I}function qV(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?R6:c,d=qu(r),p=d?s?OR:OR.filter(function(g){return qu(g)===d}):Ah,f=p.filter(function(g){return u.indexOf(g)>=0});f.length===0&&(f=p);var h=f.reduce(function(g,v){return g[v]=Hf(e,{placement:v,boundary:o,rootBoundary:i,padding:a})[Da(v)],g},{});return Object.keys(h).sort(function(g,v){return h[g]-h[v]})}function KV(e){if(Da(e)===E2)return[];var t=Og(e);return[LR(e),t,LR(t)]}function YV(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,p=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,g=h===void 0?!0:h,v=n.allowedAutoPlacements,y=t.options.placement,b=Da(y),w=b===y,S=c||(w||!g?[Og(y)]:KV(y)),k=[y].concat(S).reduce(function(ae,Ae){return ae.concat(Da(Ae)===E2?qV(t,{placement:Ae,boundary:d,rootBoundary:p,padding:u,flipVariations:g,allowedAutoPlacements:v}):Ae)},[]),A=t.rects.reference,T=t.rects.popper,R=new Map,P=!0,_=k[0],I=0;I<k.length;I++){var $=k[I],U=Da($),M=qu($)===Hu,D=[Fo,Di].indexOf(U)>=0,K=D?"width":"height",H=Hf(t,{placement:$,boundary:d,rootBoundary:p,altBoundary:f,padding:u}),Q=D?M?Bi:zo:M?Di:Fo;A[K]>T[K]&&(Q=Og(Q));var V=Og(Q),j=[];if(i&&j.push(H[U]<=0),s&&j.push(H[Q]<=0,H[V]<=0),j.every(function(ae){return ae})){_=$,P=!1;break}R.set($,j)}if(P)for(var z=g?3:1,O=function(Ae){var fe=k.find(function(Ie){var ne=R.get(Ie);if(ne)return ne.slice(0,Ae).every(function(ie){return ie})});if(fe)return _=fe,"break"},B=z;B>0;B--){var Z=O(B);if(Z==="break")break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}}const XV={name:"flip",enabled:!0,phase:"main",fn:YV,requiresIfExists:["offset"],data:{_skip:!1}};function DR(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 BR(e){return[Fo,Bi,Di,zo].some(function(t){return e[t]>=0})}function JV(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Hf(t,{elementContext:"reference"}),s=Hf(t,{altBoundary:!0}),c=DR(a,r),u=DR(s,o,i),d=BR(c),p=BR(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}const QV={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:JV};function ZV(e,t,n){var r=Da(e),o=[zo,Fo].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[zo,Bi].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function eG(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=R6.reduce(function(d,p){return d[p]=ZV(p,t.rects,i),d},{}),s=a[t.placement],c=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const tG={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:eG};function nG(e){var t=e.state,n=e.name;t.modifiersData[n]=L6({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const rG={name:"popperOffsets",enabled:!0,phase:"read",fn:nG,data:{}};function oG(e){return e==="x"?"y":"x"}function iG(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,p=n.padding,f=n.tether,h=f===void 0?!0:f,g=n.tetherOffset,v=g===void 0?0:g,y=Hf(t,{boundary:c,rootBoundary:u,padding:p,altBoundary:d}),b=Da(t.placement),w=qu(t.placement),S=!w,k=A2(b),A=oG(k),T=t.modifiersData.popperOffsets,R=t.rects.reference,P=t.rects.popper,_=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,I=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(T){if(i){var M,D=k==="y"?Fo:zo,K=k==="y"?Di:Bi,H=k==="y"?"height":"width",Q=T[k],V=Q+y[D],j=Q-y[K],z=h?-P[H]/2:0,O=w===Hu?R[H]:P[H],B=w===Hu?-P[H]:-R[H],Z=t.elements.arrow,ae=h&&Z?k2(Z):{width:0,height:0},Ae=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:I6(),fe=Ae[D],Ie=Ae[K],ne=lf(0,R[H],ae[H]),ie=S?R[H]/2-z-ne-fe-I.mainAxis:O-ne-fe-I.mainAxis,ce=S?-R[H]/2+z+ne+Ie+I.mainAxis:B+ne+Ie+I.mainAxis,te=t.elements.arrow&&Rh(t.elements.arrow),Ne=te?k==="y"?te.clientTop||0:te.clientLeft||0:0,ye=(M=$==null?void 0:$[k])!=null?M:0,Ce=Q+ie-ye-Ne,me=Q+ce-ye,at=lf(h?yv(V,Ce):V,Q,h?ic(j,me):j);T[k]=at,U[k]=at-Q}if(s){var Oe,Ge=k==="x"?Fo:zo,dt=k==="x"?Di:Bi,ot=T[A],st=A==="y"?"height":"width",Lt=ot+y[Ge],Ct=ot-y[dt],we=[Fo,zo].indexOf(b)!==-1,$e=(Oe=$==null?void 0:$[A])!=null?Oe:0,Qe=we?Lt:ot-R[st]-P[st]-$e+I.altAxis,oe=we?ot+R[st]+P[st]-$e-I.altAxis:Ct,ee=h&&we?_V(Qe,ot,oe):lf(h?Qe:Lt,ot,h?oe:Ct);T[A]=ee,U[A]=ee-ot}t.modifiersData[r]=U}}const aG={name:"preventOverflow",enabled:!0,phase:"main",fn:iG,requiresIfExists:["offset"]};function sG(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lG(e){return e===Gi(e)||!Ri(e)?R2(e):sG(e)}function cG(e){var t=e.getBoundingClientRect(),n=Vu(t.width)/e.offsetWidth||1,r=Vu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function uG(e,t,n){n===void 0&&(n=!1);var r=Ri(t),o=Ri(t)&&cG(t),i=El(t),a=Gu(e,o,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((za(t)!=="body"||P2(i))&&(s=lG(t)),Ri(t)?(c=Gu(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=_2(i))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function dG(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var c=t.get(s);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function pG(e){var t=dG(e);return CV.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function fG(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function hG(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var FR={placement:"bottom",modifiers:[],strategy:"absolute"};function zR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function mG(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?FR:o;return function(s,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},FR,i),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},p=[],f=!1,h={state:d,setOptions:function(b){var w=typeof b=="function"?b(d.options):b;v(),d.options=Object.assign({},i,d.options,w),d.scrollParents={reference:hc(s)?cf(s):s.contextElement?cf(s.contextElement):[],popper:cf(c)};var S=pG(hG([].concat(r,d.options.modifiers)));return d.orderedModifiers=S.filter(function(k){return k.enabled}),g(),h.update()},forceUpdate:function(){if(!f){var b=d.elements,w=b.reference,S=b.popper;if(zR(w,S)){d.rects={reference:uG(w,Rh(S),d.options.strategy==="fixed"),popper:k2(S)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(I){return d.modifiersData[I.name]=Object.assign({},I.data)});for(var k=0;k<d.orderedModifiers.length;k++){if(d.reset===!0){d.reset=!1,k=-1;continue}var A=d.orderedModifiers[k],T=A.fn,R=A.options,P=R===void 0?{}:R,_=A.name;typeof T=="function"&&(d=T({state:d,options:P,name:_,instance:h})||d)}}}},update:fG(function(){return new Promise(function(y){h.forceUpdate(),y(d)})}),destroy:function(){v(),f=!0}};if(!zR(s,c))return h;h.setOptions(u).then(function(y){!f&&u.onFirstUpdate&&u.onFirstUpdate(y)});function g(){d.orderedModifiers.forEach(function(y){var b=y.name,w=y.options,S=w===void 0?{}:w,k=y.effect;if(typeof k=="function"){var A=k({state:d,name:b,instance:h,options:S}),T=function(){};p.push(A||T)}})}function v(){p.forEach(function(y){return y()}),p=[]}return h}}var gG=[FV,rG,DV,kV,tG,XV,aG,$V,QV],vG=mG({defaultModifiers:gG});function yG(e){return typeof e=="function"?e():e}const bG=m.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,s]=m.useState(null),c=In(m.isValidElement(r)?r.ref:null,n);if(jo(()=>{i||s(yG(o)||document.body)},[o,i]),jo(()=>{if(a&&!i)return Df(n,a),()=>{Df(n,null)}},[n,a,i]),i){if(m.isValidElement(r)){const u={ref:c};return m.cloneElement(r,u)}return l(m.Fragment,{children:r})}return l(m.Fragment,{children:a&&uy.createPortal(r,a)})}),I2=bG;function wG(e){return Je("MuiPopperUnstyled",e)}tt("MuiPopperUnstyled",["root"]);const SG=["anchorEl","children","component","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","slotProps","slots","TransitionProps"],xG=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function CG(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 EG(e){return e.nodeType!==void 0}const TG=()=>et({root:["root"]},wG,{}),kG={},AG=m.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,component:a,direction:s,disablePortal:c,modifiers:u,open:d,ownerState:p,placement:f,popperOptions:h,popperRef:g,slotProps:v={},slots:y={},TransitionProps:b}=t,w=kh(t,SG),S=m.useRef(null),k=In(S,n),A=m.useRef(null),T=In(A,g),R=m.useRef(T);jo(()=>{R.current=T},[T]),m.useImperativeHandle(g,()=>A.current,[]);const P=CG(f,s),[_,I]=m.useState(P),[$,U]=m.useState(US(o));m.useEffect(()=>{A.current&&A.current.forceUpdate()}),m.useEffect(()=>{o&&U(US(o))},[o]),jo(()=>{if(!$||!d)return;const Q=z=>{I(z.placement)};let V=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{Q(z)}}];u!=null&&(V=V.concat(u)),h&&h.modifiers!=null&&(V=V.concat(h.modifiers));const j=vG($,S.current,xn({placement:P},h,{modifiers:V}));return R.current(j),()=>{j.destroy(),R.current(null)}},[$,c,u,d,h,P]);const M={placement:_};b!==null&&(M.TransitionProps=b);const D=TG(),K=(r=a??y.root)!=null?r:"div",H=Zi({elementType:K,externalSlotProps:v.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:k},ownerState:xn({},t,p),className:D.root});return l(K,xn({},H,{children:typeof i=="function"?i(M):i}))}),RG=m.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:c=!1,modifiers:u,open:d,placement:p="bottom",popperOptions:f=kG,popperRef:h,style:g,transition:v=!1,slotProps:y={},slots:b={}}=t,w=kh(t,xG),[S,k]=m.useState(!0),A=()=>{k(!1)},T=()=>{k(!0)};if(!c&&!d&&(!v||S))return null;let R;if(i)R=i;else if(r){const I=US(r);R=I&&EG(I)?Zn(I).body:Zn(null).body}const P=!d&&c&&(!v||S)?"none":void 0,_=v?{in:d,onEnter:A,onExited:T}:void 0;return l(I2,{disablePortal:s,container:R,children:l(AG,xn({anchorEl:r,direction:a,disablePortal:s,modifiers:u,ref:n,open:v?!S:d,placement:p,popperOptions:f,popperRef:h,slotProps:y,slots:b},w,{style:xn({position:"fixed",top:0,left:0,display:P},g),TransitionProps:_,children:o}))})}),_G=RG;function PG(e){const t=Zn(e);return t.body===e?Li(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function uf(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function jR(e){return parseInt(Li(e).getComputedStyle(e).paddingRight,10)||0}function IG(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function UR(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const s=i.indexOf(a)===-1,c=!IG(a);s&&c&&uf(a,o)})}function Eb(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function OG(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(PG(r)){const a=z$(Zn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${jR(r)+a}px`;const s=Zn(r).querySelectorAll(".mui-fixed");[].forEach.call(s,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${jR(c)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Zn(r).body;else{const a=r.parentElement,s=Li(r);i=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:s})=>{i?a.style.setProperty(s,i):a.style.removeProperty(s)})}}function $G(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class NG{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&uf(t.modalRef,!1);const o=$G(n);UR(n,t.mount,t.modalRef,o,!0);const i=Eb(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Eb(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=OG(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Eb(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&uf(t.modalRef,n),UR(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&uf(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function LG(e){return Je("MuiModal",e)}tt("MuiModal",["root","hidden"]);const MG=["children","classes","closeAfterTransition","component","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],DG=e=>{const{open:t,exited:n,classes:r}=e;return et({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},LG,r)};function BG(e){return typeof e=="function"?e():e}function FG(e){return e?e.props.hasOwnProperty("in"):!1}const zG=new NG,jG=m.forwardRef(function(t,n){var r,o;const{children:i,classes:a,closeAfterTransition:s=!1,component:c,container:u,disableAutoFocus:d=!1,disableEnforceFocus:p=!1,disableEscapeKeyDown:f=!1,disablePortal:h=!1,disableRestoreFocus:g=!1,disableScrollLock:v=!1,hideBackdrop:y=!1,keepMounted:b=!1,manager:w=zG,onBackdropClick:S,onClose:k,onKeyDown:A,open:T,onTransitionEnter:R,onTransitionExited:P,slotProps:_={},slots:I={}}=t,$=kh(t,MG),[U,M]=m.useState(!T),D=m.useRef({}),K=m.useRef(null),H=m.useRef(null),Q=In(H,n),V=FG(i),j=(r=t["aria-hidden"])!=null?r:!0,z=()=>Zn(K.current),O=()=>(D.current.modalRef=H.current,D.current.mountNode=K.current,D.current),B=()=>{w.mount(O(),{disableScrollLock:v}),H.current&&(H.current.scrollTop=0)},Z=Lr(()=>{const Ge=BG(u)||z().body;w.add(O(),Ge),H.current&&B()}),ae=m.useCallback(()=>w.isTopModal(O()),[w]),Ae=Lr(Ge=>{K.current=Ge,!(!Ge||!H.current)&&(T&&ae()?B():uf(H.current,j))}),fe=m.useCallback(()=>{w.remove(O(),j)},[w,j]);m.useEffect(()=>()=>{fe()},[fe]),m.useEffect(()=>{T?Z():(!V||!s)&&fe()},[T,fe,V,s,Z]);const Ie=xn({},t,{classes:a,closeAfterTransition:s,disableAutoFocus:d,disableEnforceFocus:p,disableEscapeKeyDown:f,disablePortal:h,disableRestoreFocus:g,disableScrollLock:v,exited:U,hideBackdrop:y,keepMounted:b}),ne=DG(Ie),ie=()=>{M(!1),R&&R()},ce=()=>{M(!0),P&&P(),s&&fe()},te=Ge=>{Ge.target===Ge.currentTarget&&(S&&S(Ge),k&&k(Ge,"backdropClick"))},Ne=Ge=>{A&&A(Ge),!(Ge.key!=="Escape"||!ae())&&(f||(Ge.stopPropagation(),k&&k(Ge,"escapeKeyDown")))},ye={};i.props.tabIndex===void 0&&(ye.tabIndex="-1"),V&&(ye.onEnter=fv(ie,i.props.onEnter),ye.onExited=fv(ce,i.props.onExited));const Ce=(o=c??I.root)!=null?o:"div",me=Zi({elementType:Ce,externalSlotProps:_.root,externalForwardedProps:$,additionalProps:{ref:Q,role:"presentation",onKeyDown:Ne},className:ne.root,ownerState:Ie}),at=I.backdrop,Oe=Zi({elementType:at,externalSlotProps:_.backdrop,additionalProps:{"aria-hidden":!0,onClick:te,open:T},className:ne.backdrop,ownerState:Ie});return!b&&!T&&(!V||U)?null:l(I2,{ref:Ae,container:u,disablePortal:h,children:x(Ce,xn({},me,{children:[!y&&at?l(at,xn({},Oe)):null,l(dV,{disableEnforceFocus:p,disableAutoFocus:d,disableRestoreFocus:g,isEnabled:ae,open:T,children:m.cloneElement(i,ye)})]}))})}),UG=jG,WG=2;function M6(e,t){return e-t}function dp(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function WR(e,t){var n;const{index:r}=(n=e.reduce((o,i,a)=>{const s=Math.abs(t-i);return o===null||s<o.distance||s===o.distance?{distance:s,index:a}:o},null))!=null?n:{};return r}function Om(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const o=n.changedTouches[r];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function HR(e,t,n){return(e-t)*100/(n-t)}function HG(e,t,n){return(n-t)*e+t}function VG(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function GG(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(VG(t)))}function VR({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(M6)}function $m({sliderRef:e,activeIndex:t,setActive:n}){var r,o;const i=Zn(e.current);if(!((r=e.current)!=null&&r.contains(i.activeElement))||Number(i==null||(o=i.activeElement)==null?void 0:o.getAttribute("data-index"))!==t){var a;(a=e.current)==null||a.querySelector(`[type="range"][data-index="${t}"]`).focus()}n&&n(t)}const qG={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},KG=e=>e;let Nm;function Tb(){return Nm===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Nm=CSS.supports("touch-action","none"):Nm=!0),Nm}function YG(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:a=!1,max:s=100,min:c=0,name:u,onChange:d,onChangeCommitted:p,orientation:f="horizontal",ref:h,scale:g=KG,step:v=1,tabIndex:y,value:b}=e,w=m.useRef(),[S,k]=m.useState(-1),[A,T]=m.useState(-1),[R,P]=m.useState(!1),_=m.useRef(0),[I,$]=oa({controlled:b,default:n??c,name:"Slider"}),U=d&&((we,$e,Qe)=>{const oe=we.nativeEvent||we,ee=new oe.constructor(oe.type,oe);Object.defineProperty(ee,"target",{writable:!0,value:{value:$e,name:u}}),d(ee,$e,Qe)}),M=Array.isArray(I);let D=M?I.slice().sort(M6):[I];D=D.map(we=>dp(we,c,s));const K=a===!0&&v!==null?[...Array(Math.floor((s-c)/v)+1)].map((we,$e)=>({value:c+v*$e})):a||[],H=K.map(we=>we.value),{isFocusVisibleRef:Q,onBlur:V,onFocus:j,ref:z}=Sh(),[O,B]=m.useState(-1),Z=m.useRef(),ae=In(z,Z),Ae=In(h,ae),fe=we=>$e=>{var Qe;const oe=Number($e.currentTarget.getAttribute("data-index"));j($e),Q.current===!0&&B(oe),T(oe),we==null||(Qe=we.onFocus)==null||Qe.call(we,$e)},Ie=we=>$e=>{var Qe;V($e),Q.current===!1&&B(-1),T(-1),we==null||(Qe=we.onBlur)==null||Qe.call(we,$e)};jo(()=>{if(r&&Z.current.contains(document.activeElement)){var we;(we=document.activeElement)==null||we.blur()}},[r]),r&&S!==-1&&k(-1),r&&O!==-1&&B(-1);const ne=we=>$e=>{var Qe;(Qe=we.onChange)==null||Qe.call(we,$e);const oe=Number($e.currentTarget.getAttribute("data-index")),ee=D[oe],X=H.indexOf(ee);let Se=$e.target.valueAsNumber;if(K&&v==null&&(Se=Se<ee?H[X-1]:H[X+1]),Se=dp(Se,c,s),K&&v==null){const Re=H.indexOf(D[oe]);Se=Se<D[oe]?H[Re-1]:H[Re+1]}if(M){o&&(Se=dp(Se,D[oe-1]||-1/0,D[oe+1]||1/0));const Re=Se;Se=VR({values:D,newValue:Se,index:oe});let Me=oe;o||(Me=Se.indexOf(Re)),$m({sliderRef:Z,activeIndex:Me})}$(Se),B(oe),U&&U($e,Se,oe),p&&p($e,Se)},ie=m.useRef();let ce=f;i&&f==="horizontal"&&(ce+="-reverse");const te=({finger:we,move:$e=!1})=>{const{current:Qe}=Z,{width:oe,height:ee,bottom:X,left:Se}=Qe.getBoundingClientRect();let Re;ce.indexOf("vertical")===0?Re=(X-we.y)/ee:Re=(we.x-Se)/oe,ce.indexOf("-reverse")!==-1&&(Re=1-Re);let Me;if(Me=HG(Re,c,s),v)Me=GG(Me,v,c);else{const _t=WR(H,Me);Me=H[_t]}Me=dp(Me,c,s);let bt=0;if(M){$e?bt=ie.current:bt=WR(D,Me),o&&(Me=dp(Me,D[bt-1]||-1/0,D[bt+1]||1/0));const _t=Me;Me=VR({values:D,newValue:Me,index:bt}),o&&$e||(bt=Me.indexOf(_t),ie.current=bt)}return{newValue:Me,activeIndex:bt}},Ne=Lr(we=>{const $e=Om(we,w);if(!$e)return;if(_.current+=1,we.type==="mousemove"&&we.buttons===0){ye(we);return}const{newValue:Qe,activeIndex:oe}=te({finger:$e,move:!0});$m({sliderRef:Z,activeIndex:oe,setActive:k}),$(Qe),!R&&_.current>WG&&P(!0),U&&Qe!==I&&U(we,Qe,oe)}),ye=Lr(we=>{const $e=Om(we,w);if(P(!1),!$e)return;const{newValue:Qe}=te({finger:$e,move:!0});k(-1),we.type==="touchend"&&T(-1),p&&p(we,Qe),w.current=void 0,me()}),Ce=Lr(we=>{if(r)return;Tb()||we.preventDefault();const $e=we.changedTouches[0];$e!=null&&(w.current=$e.identifier);const Qe=Om(we,w);if(Qe!==!1){const{newValue:ee,activeIndex:X}=te({finger:Qe});$m({sliderRef:Z,activeIndex:X,setActive:k}),$(ee),U&&U(we,ee,X)}_.current=0;const oe=Zn(Z.current);oe.addEventListener("touchmove",Ne),oe.addEventListener("touchend",ye)}),me=m.useCallback(()=>{const we=Zn(Z.current);we.removeEventListener("mousemove",Ne),we.removeEventListener("mouseup",ye),we.removeEventListener("touchmove",Ne),we.removeEventListener("touchend",ye)},[ye,Ne]);m.useEffect(()=>{const{current:we}=Z;return we.addEventListener("touchstart",Ce,{passive:Tb()}),()=>{we.removeEventListener("touchstart",Ce,{passive:Tb()}),me()}},[me,Ce]),m.useEffect(()=>{r&&me()},[r,me]);const at=we=>$e=>{var Qe;if((Qe=we.onMouseDown)==null||Qe.call(we,$e),r||$e.defaultPrevented||$e.button!==0)return;$e.preventDefault();const oe=Om($e,w);if(oe!==!1){const{newValue:X,activeIndex:Se}=te({finger:oe});$m({sliderRef:Z,activeIndex:Se,setActive:k}),$(X),U&&U($e,X,Se)}_.current=0;const ee=Zn(Z.current);ee.addEventListener("mousemove",Ne),ee.addEventListener("mouseup",ye)},Oe=HR(M?D[0]:c,c,s),Ge=HR(D[D.length-1],c,s)-Oe,dt=(we={})=>{const $e={onMouseDown:at(we||{})},Qe=xn({},we,$e);return xn({ref:Ae},Qe)},ot=we=>$e=>{var Qe;(Qe=we.onMouseOver)==null||Qe.call(we,$e);const oe=Number($e.currentTarget.getAttribute("data-index"));T(oe)},st=we=>$e=>{var Qe;(Qe=we.onMouseLeave)==null||Qe.call(we,$e),T(-1)};return{active:S,axis:ce,axisProps:qG,dragging:R,focusedThumbIndex:O,getHiddenInputProps:(we={})=>{var $e;const Qe={onChange:ne(we||{}),onFocus:fe(we||{}),onBlur:Ie(we||{})},oe=xn({},we,Qe);return xn({tabIndex:y,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":g(s),"aria-valuemin":g(c),name:u,type:"range",min:e.min,max:e.max,step:($e=e.step)!=null?$e:void 0,disabled:r},oe,{style:xn({},gj,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:dt,getThumbProps:(we={})=>{const $e={onMouseOver:ot(we||{}),onMouseLeave:st(we||{})};return xn({},we,$e)},marks:K,open:A,range:M,trackLeap:Ge,trackOffset:Oe,values:D}}const XG=["onChange","maxRows","minRows","style","value"];function Lm(e,t){return parseInt(e[t],10)||0}const JG={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function GR(e){return e==null||Object.keys(e).length===0}const QG=m.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s}=t,c=kh(t,XG),{current:u}=m.useRef(s!=null),d=m.useRef(null),p=In(n,d),f=m.useRef(null),h=m.useRef(0),[g,v]=m.useState({}),y=m.useCallback(()=>{const A=d.current,R=Li(A).getComputedStyle(A);if(R.width==="0px")return{};const P=f.current;P.style.width=R.width,P.value=A.value||t.placeholder||"x",P.value.slice(-1)===`
91
- `&&(P.value+=" ");const _=R["box-sizing"],I=Lm(R,"padding-bottom")+Lm(R,"padding-top"),$=Lm(R,"border-bottom-width")+Lm(R,"border-top-width"),U=P.scrollHeight;P.value="x";const M=P.scrollHeight;let D=U;i&&(D=Math.max(Number(i)*M,D)),o&&(D=Math.min(Number(o)*M,D)),D=Math.max(D,M);const K=D+(_==="border-box"?I+$:0),H=Math.abs(D-U)<=1;return{outerHeightStyle:K,overflow:H}},[o,i,t.placeholder]),b=(A,T)=>{const{outerHeightStyle:R,overflow:P}=T;return h.current<20&&(R>0&&Math.abs((A.outerHeightStyle||0)-R)>1||A.overflow!==P)?(h.current+=1,{overflow:P,outerHeightStyle:R}):A},w=m.useCallback(()=>{const A=y();GR(A)||v(T=>b(T,A))},[y]),S=()=>{const A=y();GR(A)||uy.flushSync(()=>{v(T=>b(T,A))})};m.useEffect(()=>{const A=pc(()=>{h.current=0,d.current&&S()}),T=Li(d.current);T.addEventListener("resize",A);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(A),R.observe(d.current)),()=>{A.clear(),T.removeEventListener("resize",A),R&&R.disconnect()}}),jo(()=>{w()}),m.useEffect(()=>{h.current=0},[s]);const k=A=>{h.current=0,u||w(),r&&r(A)};return x(m.Fragment,{children:[l("textarea",xn({value:s,onChange:k,ref:p,rows:i,style:xn({height:g.outerHeightStyle,overflow:g.overflow?"hidden":null},a)},c)),l("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:xn({},JG.shadow,a,{padding:0})})]})}),ZG=QG;function eq(e){return Je("MuiSvgIcon",e)}tt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const tq=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],nq=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${de(t)}`,`fontSize${de(n)}`]};return et(o,eq,r)},rq=C("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${de(n.color)}`],t[`fontSize${de(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,c,u,d,p,f,h,g,v,y,b,w;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(i=o.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(s=a.pxToRem)==null?void 0:s.call(a,20))||"1.25rem",medium:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,24))||"1.5rem",large:((d=e.typography)==null||(p=d.pxToRem)==null?void 0:p.call(d,35))||"2.1875rem"}[t.fontSize],color:(f=(h=(e.vars||e).palette)==null||(g=h[t.color])==null?void 0:g.main)!=null?f:{action:(v=(e.vars||e).palette)==null||(y=v.action)==null?void 0:y.active,disabled:(b=(e.vars||e).palette)==null||(w=b.action)==null?void 0:w.disabled,inherit:void 0}[t.color]}}),D6=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:p,viewBox:f="0 0 24 24"}=r,h=Fe(r,tq),g=N({},r,{color:a,component:s,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:f}),v={};d||(v.viewBox=f);const y=nq(g);return x(rq,N({as:s,className:ke(y.root,i),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n},v,h,{ownerState:g,children:[o,p?l("title",{children:p}):null]}))});D6.muiName="SvgIcon";const WS=D6;function Xe(e,t){function n(r,o){return l(WS,N({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=WS.muiName,m.memo(m.forwardRef(n))}const oq={configure:e=>{r2.configure(e)}},iq=Object.freeze(Object.defineProperty({__proto__:null,capitalize:de,createChainedFunction:fv,createSvgIcon:Xe,debounce:pc,deprecatedPropType:nj,isMuiElement:of,ownerDocument:Zn,ownerWindow:Li,requirePropFactory:rj,setRef:Df,unstable_ClassNameGenerator:oq,unstable_useEnhancedEffect:jo,unstable_useId:gd,unsupportedProp:aj,useControlled:oa,useEventCallback:Lr,useForkRef:In,useIsFocusVisible:Sh},Symbol.toStringTag,{value:"Module"}));function B6(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function HS(e,t){return HS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},HS(e,t)}function O2(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,HS(e,t)}const qR={disabled:!1},bv=Te.createContext(null);var aq=function(t){return t.scrollTop},jp="unmounted",zl="exited",jl="entering",tu="entered",VS="exiting",Es=function(e){O2(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,s=a&&!a.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?s?(c=zl,i.appearStatus=jl):c=tu:r.unmountOnExit||r.mountOnEnter?c=jp:c=zl,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===jp?{status:zl}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==jl&&a!==tu&&(i=jl):(a===jl||a===tu)&&(i=VS)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===jl){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Ei.findDOMNode(this);a&&aq(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===zl&&this.setState({status:jp})},n.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,c=this.props.nodeRef?[s]:[Ei.findDOMNode(this),s],u=c[0],d=c[1],p=this.getTimeouts(),f=s?p.appear:p.enter;if(!o&&!a||qR.disabled){this.safeSetState({status:tu},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:jl},function(){i.props.onEntering(u,d),i.onTransitionEnd(f,function(){i.safeSetState({status:tu},function(){i.props.onEntered(u,d)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Ei.findDOMNode(this);if(!i||qR.disabled){this.safeSetState({status:zl},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:VS},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:zl},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Ei.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===jp)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=B6(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Te.createElement(bv.Provider,{value:null},typeof a=="function"?a(o,s):Te.cloneElement(Te.Children.only(a),s))},t}(Te.Component);Es.contextType=bv;Es.propTypes={};function Gc(){}Es.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Gc,onEntering:Gc,onEntered:Gc,onExit:Gc,onExiting:Gc,onExited:Gc};Es.UNMOUNTED=jp;Es.EXITED=zl;Es.ENTERING=jl;Es.ENTERED=tu;Es.EXITING=VS;const Qy=Es;function sq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $2(e,t){var n=function(i){return t&&m.isValidElement(i)?t(i):i},r=Object.create(null);return e&&m.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function lq(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var c in t){if(r[c])for(a=0;a<r[c].length;a++){var u=r[c][a];s[r[c][a]]=n(u)}s[c]=n(c)}for(a=0;a<o.length;a++)s[o[a]]=n(o[a]);return s}function tc(e,t,n){return n[t]!=null?n[t]:e.props[t]}function cq(e,t){return $2(e.children,function(n){return m.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:tc(n,"appear",e),enter:tc(n,"enter",e),exit:tc(n,"exit",e)})})}function uq(e,t,n){var r=$2(e.children),o=lq(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(m.isValidElement(a)){var s=i in t,c=i in r,u=t[i],d=m.isValidElement(u)&&!u.props.in;c&&(!s||d)?o[i]=m.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:tc(a,"exit",e),enter:tc(a,"enter",e)}):!c&&s&&!d?o[i]=m.cloneElement(a,{in:!1}):c&&s&&m.isValidElement(u)&&(o[i]=m.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:tc(a,"exit",e),enter:tc(a,"enter",e)}))}}),o}var dq=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},pq={component:"div",childFactory:function(t){return t}},N2=function(e){O2(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=i.handleExited.bind(sq(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,s=i.handleExited,c=i.firstRender;return{children:c?cq(o,s):uq(o,a,s),firstRender:!1}},n.handleExited=function(o,i){var a=$2(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(s){var c=hv({},s.children);return delete c[o.key],{children:c}}))},n.render=function(){var o=this.props,i=o.component,a=o.childFactory,s=B6(o,["component","childFactory"]),c=this.state.contextValue,u=dq(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,i===null?Te.createElement(bv.Provider,{value:c},u):Te.createElement(bv.Provider,{value:c},Te.createElement(i,s,u))},t}(Te.Component);N2.propTypes={};N2.defaultProps=pq;const fq=N2,L2=e=>e.scrollTop;function hl(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}function hq(e){return Je("MuiCollapse",e)}tt("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const mq=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],gq=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return et(r,hq,n)},vq=C("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>N({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&N({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),yq=C("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>N({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),bq=C("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>N({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),F6=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:a,collapsedSize:s="0px",component:c,easing:u,in:d,onEnter:p,onEntered:f,onEntering:h,onExit:g,onExited:v,onExiting:y,orientation:b="vertical",style:w,timeout:S=T6.standard,TransitionComponent:k=Qy}=r,A=Fe(r,mq),T=N({},r,{orientation:b,collapsedSize:s}),R=gq(T),P=gn(),_=m.useRef(),I=m.useRef(null),$=m.useRef(),U=typeof s=="number"?`${s}px`:s,M=b==="horizontal",D=M?"width":"height";m.useEffect(()=>()=>{clearTimeout(_.current)},[]);const K=m.useRef(null),H=In(n,K),Q=fe=>Ie=>{if(fe){const ne=K.current;Ie===void 0?fe(ne):fe(ne,Ie)}},V=()=>I.current?I.current[M?"clientWidth":"clientHeight"]:0,j=Q((fe,Ie)=>{I.current&&M&&(I.current.style.position="absolute"),fe.style[D]=U,p&&p(fe,Ie)}),z=Q((fe,Ie)=>{const ne=V();I.current&&M&&(I.current.style.position="");const{duration:ie,easing:ce}=hl({style:w,timeout:S,easing:u},{mode:"enter"});if(S==="auto"){const te=P.transitions.getAutoHeightDuration(ne);fe.style.transitionDuration=`${te}ms`,$.current=te}else fe.style.transitionDuration=typeof ie=="string"?ie:`${ie}ms`;fe.style[D]=`${ne}px`,fe.style.transitionTimingFunction=ce,h&&h(fe,Ie)}),O=Q((fe,Ie)=>{fe.style[D]="auto",f&&f(fe,Ie)}),B=Q(fe=>{fe.style[D]=`${V()}px`,g&&g(fe)}),Z=Q(v),ae=Q(fe=>{const Ie=V(),{duration:ne,easing:ie}=hl({style:w,timeout:S,easing:u},{mode:"exit"});if(S==="auto"){const ce=P.transitions.getAutoHeightDuration(Ie);fe.style.transitionDuration=`${ce}ms`,$.current=ce}else fe.style.transitionDuration=typeof ne=="string"?ne:`${ne}ms`;fe.style[D]=U,fe.style.transitionTimingFunction=ie,y&&y(fe)});return l(k,N({in:d,onEnter:j,onEntered:O,onEntering:z,onExit:B,onExited:Z,onExiting:ae,addEndListener:fe=>{S==="auto"&&(_.current=setTimeout(fe,$.current||0)),o&&o(K.current,fe)},nodeRef:K,timeout:S==="auto"?null:S},A,{children:(fe,Ie)=>l(vq,N({as:c,className:ke(R.root,a,{entered:R.entered,exited:!d&&U==="0px"&&R.hidden}[fe]),style:N({[M?"minWidth":"minHeight"]:U},w),ownerState:N({},T,{state:fe}),ref:H},Ie,{children:l(yq,{ownerState:N({},T,{state:fe}),className:R.wrapper,ref:I,children:l(bq,{ownerState:N({},T,{state:fe}),className:R.wrapperInner,children:i})})}))}))});F6.muiSupportAuto=!0;const z6=F6;function wq(e){return Je("MuiPaper",e)}tt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Sq=["className","component","elevation","square","variant"],xq=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return et(i,wq,o)},Cq=C("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return N({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&N({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${yt("#fff",AR(t.elevation))}, ${yt("#fff",AR(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Eq=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:c="elevation"}=r,u=Fe(r,Sq),d=N({},r,{component:i,elevation:a,square:s,variant:c}),p=xq(d);return l(Cq,N({as:i,ownerState:d,className:ke(p.root,o),ref:n},u))}),wr=Eq,Tq=m.createContext({}),j6=Tq;function kq(e){return Je("MuiAccordion",e)}const Aq=tt("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),Mm=Aq,Rq=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],_q=e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:i}=e;return et({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!i&&"gutters"],region:["region"]},kq,t)},Pq=C(wr,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Mm.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${Mm.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${Mm.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>N({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${Mm.expanded}`]:{margin:"16px 0"}})),Iq=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiAccordion"}),{children:o,className:i,defaultExpanded:a=!1,disabled:s=!1,disableGutters:c=!1,expanded:u,onChange:d,square:p=!1,TransitionComponent:f=z6,TransitionProps:h}=r,g=Fe(r,Rq),[v,y]=oa({controlled:u,default:a,name:"Accordion",state:"expanded"}),b=m.useCallback(R=>{y(!v),d&&d(R,!v)},[v,d,y]),[w,...S]=m.Children.toArray(o),k=m.useMemo(()=>({expanded:v,disabled:s,disableGutters:c,toggle:b}),[v,s,c,b]),A=N({},r,{square:p,disabled:s,disableGutters:c,expanded:v}),T=_q(A);return x(Pq,N({className:ke(T.root,i),ref:n,ownerState:A,square:p},g,{children:[l(j6.Provider,{value:k,children:w}),l(f,N({in:v,timeout:"auto"},h,{children:l("div",{"aria-labelledby":w.props.id,id:w.props["aria-controls"],role:"region",className:T.region,children:S})}))]}))}),Zy=Iq;function Oq(e){return Je("MuiAccordionDetails",e)}tt("MuiAccordionDetails",["root"]);const $q=["className"],Nq=e=>{const{classes:t}=e;return et({root:["root"]},Oq,t)},Lq=C("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),Mq=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiAccordionDetails"}),{className:o}=r,i=Fe(r,$q),a=r,s=Nq(a);return l(Lq,N({className:ke(s.root,o),ref:n,ownerState:a},i))}),e1=Mq;function Dq(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:c,timeout:u}=e,[d,p]=m.useState(!1),f=ke(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},g=ke(n.child,d&&n.childLeaving,r&&n.childPulsate);return!s&&!d&&p(!0),m.useEffect(()=>{if(!s&&c!=null){const v=setTimeout(c,u);return()=>{clearTimeout(v)}}},[c,s,u]),l("span",{className:f,style:h,children:l("span",{className:g})})}const Bq=tt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),vi=Bq,Fq=["center","classes","className"];let t1=e=>e,KR,YR,XR,JR;const GS=550,zq=80,jq=Cl(KR||(KR=t1`
92
- 0% {
93
- transform: scale(0);
94
- opacity: 0.1;
95
- }
96
-
97
- 100% {
98
- transform: scale(1);
99
- opacity: 0.3;
100
- }
101
- `)),Uq=Cl(YR||(YR=t1`
102
- 0% {
103
- opacity: 1;
104
- }
105
-
106
- 100% {
107
- opacity: 0;
108
- }
109
- `)),Wq=Cl(XR||(XR=t1`
110
- 0% {
111
- transform: scale(1);
112
- }
113
-
114
- 50% {
115
- transform: scale(0.92);
116
- }
117
-
118
- 100% {
119
- transform: scale(1);
120
- }
121
- `)),Hq=C("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Vq=C(Dq,{name:"MuiTouchRipple",slot:"Ripple"})(JR||(JR=t1`
122
- opacity: 0;
123
- position: absolute;
124
-
125
- &.${0} {
126
- opacity: 0.3;
127
- transform: scale(1);
128
- animation-name: ${0};
129
- animation-duration: ${0}ms;
130
- animation-timing-function: ${0};
131
- }
132
-
133
- &.${0} {
134
- animation-duration: ${0}ms;
135
- }
136
-
137
- & .${0} {
138
- opacity: 1;
139
- display: block;
140
- width: 100%;
141
- height: 100%;
142
- border-radius: 50%;
143
- background-color: currentColor;
144
- }
145
-
146
- & .${0} {
147
- opacity: 0;
148
- animation-name: ${0};
149
- animation-duration: ${0}ms;
150
- animation-timing-function: ${0};
151
- }
152
-
153
- & .${0} {
154
- position: absolute;
155
- /* @noflip */
156
- left: 0px;
157
- top: 0;
158
- animation-name: ${0};
159
- animation-duration: 2500ms;
160
- animation-timing-function: ${0};
161
- animation-iteration-count: infinite;
162
- animation-delay: 200ms;
163
- }
164
- `),vi.rippleVisible,jq,GS,({theme:e})=>e.transitions.easing.easeInOut,vi.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,vi.child,vi.childLeaving,Uq,GS,({theme:e})=>e.transitions.easing.easeInOut,vi.childPulsate,Wq,({theme:e})=>e.transitions.easing.easeInOut),Gq=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,s=Fe(r,Fq),[c,u]=m.useState([]),d=m.useRef(0),p=m.useRef(null);m.useEffect(()=>{p.current&&(p.current(),p.current=null)},[c]);const f=m.useRef(!1),h=m.useRef(null),g=m.useRef(null),v=m.useRef(null);m.useEffect(()=>()=>{clearTimeout(h.current)},[]);const y=m.useCallback(k=>{const{pulsate:A,rippleX:T,rippleY:R,rippleSize:P,cb:_}=k;u(I=>[...I,l(Vq,{classes:{ripple:ke(i.ripple,vi.ripple),rippleVisible:ke(i.rippleVisible,vi.rippleVisible),ripplePulsate:ke(i.ripplePulsate,vi.ripplePulsate),child:ke(i.child,vi.child),childLeaving:ke(i.childLeaving,vi.childLeaving),childPulsate:ke(i.childPulsate,vi.childPulsate)},timeout:GS,pulsate:A,rippleX:T,rippleY:R,rippleSize:P},d.current)]),d.current+=1,p.current=_},[i]),b=m.useCallback((k={},A={},T=()=>{})=>{const{pulsate:R=!1,center:P=o||A.pulsate,fakeElement:_=!1}=A;if((k==null?void 0:k.type)==="mousedown"&&f.current){f.current=!1;return}(k==null?void 0:k.type)==="touchstart"&&(f.current=!0);const I=_?null:v.current,$=I?I.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,M,D;if(P||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)U=Math.round($.width/2),M=Math.round($.height/2);else{const{clientX:K,clientY:H}=k.touches&&k.touches.length>0?k.touches[0]:k;U=Math.round(K-$.left),M=Math.round(H-$.top)}if(P)D=Math.sqrt((2*$.width**2+$.height**2)/3),D%2===0&&(D+=1);else{const K=Math.max(Math.abs((I?I.clientWidth:0)-U),U)*2+2,H=Math.max(Math.abs((I?I.clientHeight:0)-M),M)*2+2;D=Math.sqrt(K**2+H**2)}k!=null&&k.touches?g.current===null&&(g.current=()=>{y({pulsate:R,rippleX:U,rippleY:M,rippleSize:D,cb:T})},h.current=setTimeout(()=>{g.current&&(g.current(),g.current=null)},zq)):y({pulsate:R,rippleX:U,rippleY:M,rippleSize:D,cb:T})},[o,y]),w=m.useCallback(()=>{b({},{pulsate:!0})},[b]),S=m.useCallback((k,A)=>{if(clearTimeout(h.current),(k==null?void 0:k.type)==="touchend"&&g.current){g.current(),g.current=null,h.current=setTimeout(()=>{S(k,A)});return}g.current=null,u(T=>T.length>0?T.slice(1):T),p.current=A},[]);return m.useImperativeHandle(n,()=>({pulsate:w,start:b,stop:S}),[w,b,S]),l(Hq,N({className:ke(vi.root,i.root,a),ref:v},s,{children:l(fq,{component:null,exit:!0,children:c})}))}),qq=Gq;function Kq(e){return Je("MuiButtonBase",e)}const Yq=tt("MuiButtonBase",["root","disabled","focusVisible"]),Xq=Yq,Jq=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Qq=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=et({root:["root",t&&"disabled",n&&"focusVisible"]},Kq,o);return n&&r&&(a.root+=` ${r}`),a},Zq=C("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Xq.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),eK=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:p=!1,focusRipple:f=!1,LinkComponent:h="a",onBlur:g,onClick:v,onContextMenu:y,onDragLeave:b,onFocus:w,onFocusVisible:S,onKeyDown:k,onKeyUp:A,onMouseDown:T,onMouseLeave:R,onMouseUp:P,onTouchEnd:_,onTouchMove:I,onTouchStart:$,tabIndex:U=0,TouchRippleProps:M,touchRippleRef:D,type:K}=r,H=Fe(r,Jq),Q=m.useRef(null),V=m.useRef(null),j=In(V,D),{isFocusVisibleRef:z,onFocus:O,onBlur:B,ref:Z}=Sh(),[ae,Ae]=m.useState(!1);u&&ae&&Ae(!1),m.useImperativeHandle(o,()=>({focusVisible:()=>{Ae(!0),Q.current.focus()}}),[]);const[fe,Ie]=m.useState(!1);m.useEffect(()=>{Ie(!0)},[]);const ne=fe&&!d&&!u;m.useEffect(()=>{ae&&f&&!d&&fe&&V.current.pulsate()},[d,f,ae,fe]);function ie(X,Se,Re=p){return Lr(Me=>(Se&&Se(Me),!Re&&V.current&&V.current[X](Me),!0))}const ce=ie("start",T),te=ie("stop",y),Ne=ie("stop",b),ye=ie("stop",P),Ce=ie("stop",X=>{ae&&X.preventDefault(),R&&R(X)}),me=ie("start",$),at=ie("stop",_),Oe=ie("stop",I),Ge=ie("stop",X=>{B(X),z.current===!1&&Ae(!1),g&&g(X)},!1),dt=Lr(X=>{Q.current||(Q.current=X.currentTarget),O(X),z.current===!0&&(Ae(!0),S&&S(X)),w&&w(X)}),ot=()=>{const X=Q.current;return c&&c!=="button"&&!(X.tagName==="A"&&X.href)},st=m.useRef(!1),Lt=Lr(X=>{f&&!st.current&&ae&&V.current&&X.key===" "&&(st.current=!0,V.current.stop(X,()=>{V.current.start(X)})),X.target===X.currentTarget&&ot()&&X.key===" "&&X.preventDefault(),k&&k(X),X.target===X.currentTarget&&ot()&&X.key==="Enter"&&!u&&(X.preventDefault(),v&&v(X))}),Ct=Lr(X=>{f&&X.key===" "&&V.current&&ae&&!X.defaultPrevented&&(st.current=!1,V.current.stop(X,()=>{V.current.pulsate(X)})),A&&A(X),v&&X.target===X.currentTarget&&ot()&&X.key===" "&&!X.defaultPrevented&&v(X)});let we=c;we==="button"&&(H.href||H.to)&&(we=h);const $e={};we==="button"?($e.type=K===void 0?"button":K,$e.disabled=u):(!H.href&&!H.to&&($e.role="button"),u&&($e["aria-disabled"]=u));const Qe=In(n,Z,Q),oe=N({},r,{centerRipple:i,component:c,disabled:u,disableRipple:d,disableTouchRipple:p,focusRipple:f,tabIndex:U,focusVisible:ae}),ee=Qq(oe);return x(Zq,N({as:we,className:ke(ee.root,s),ownerState:oe,onBlur:Ge,onClick:v,onContextMenu:te,onFocus:dt,onKeyDown:Lt,onKeyUp:Ct,onMouseDown:ce,onMouseLeave:Ce,onMouseUp:ye,onDragLeave:Ne,onTouchEnd:at,onTouchMove:Oe,onTouchStart:me,ref:Qe,tabIndex:u?-1:U,type:K},$e,H,{children:[a,ne?l(qq,N({ref:j,center:i},M)):null]}))}),Fi=eK;function tK(e){return Je("MuiAccordionSummary",e)}const nK=tt("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),uu=nK,rK=["children","className","expandIcon","focusVisibleClassName","onClick"],oK=e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return et({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},tK,t)},iK=C(Fi,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const n={duration:e.transitions.duration.shortest};return N({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],n),[`&.${uu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${uu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${uu.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${uu.expanded}`]:{minHeight:64}})}),aK=C("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>N({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${uu.expanded}`]:{margin:"20px 0"}})),sK=C("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${uu.expanded}`]:{transform:"rotate(180deg)"}})),lK=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiAccordionSummary"}),{children:o,className:i,expandIcon:a,focusVisibleClassName:s,onClick:c}=r,u=Fe(r,rK),{disabled:d=!1,disableGutters:p,expanded:f,toggle:h}=m.useContext(j6),g=b=>{h&&h(b),c&&c(b)},v=N({},r,{expanded:f,disabled:d,disableGutters:p}),y=oK(v);return x(iK,N({focusRipple:!1,disableRipple:!0,disabled:d,component:"div","aria-expanded":f,className:ke(y.root,i),focusVisibleClassName:ke(y.focusVisible,s),onClick:g,ref:n,ownerState:v},u,{children:[l(aK,{className:y.content,ownerState:v,children:o}),a&&l(sK,{className:y.expandIconWrapper,ownerState:v,children:a})]}))}),n1=lK;function cK(e){return Je("MuiAlert",e)}const uK=tt("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),QR=uK;function dK(e){return Je("MuiIconButton",e)}const pK=tt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),fK=pK,hK=["edge","children","className","color","disabled","disableFocusRipple","size"],mK=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${de(r)}`,o&&`edge${de(o)}`,`size${de(i)}`]};return et(a,dK,t)},gK=C(Fi,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${de(n.color)}`],n.edge&&t[`edge${de(n.edge)}`],t[`size${de(n.size)}`]]}})(({theme:e,ownerState:t})=>N({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:yt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return N({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&N({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":N({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${fK.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),vK=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium"}=r,p=Fe(r,hK),f=N({},r,{edge:o,color:s,disabled:c,disableFocusRipple:u,size:d}),h=mK(f);return l(gK,N({className:ke(h.root,a),centerRipple:!0,focusRipple:!u,disabled:c,ref:n,ownerState:f},p,{children:i}))}),Ht=vK,yK=Xe(l("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"),bK=Xe(l("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),wK=Xe(l("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"),SK=Xe(l("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"),U6=Xe(l("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"),xK=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],CK=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`${t}${de(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return et(i,cK,o)},EK=C(wr,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${de(n.color||n.severity)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?pl:fl,r=e.palette.mode==="light"?fl:pl,o=t.color||t.severity;return N({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:r(e.palette[o].light,.9),[`& .${QR.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${QR.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="filled"&&N({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}))}),TK=C("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),kK=C("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),ZR=C("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),e_={success:l(yK,{fontSize:"inherit"}),warning:l(bK,{fontSize:"inherit"}),error:l(wK,{fontSize:"inherit"}),info:l(SK,{fontSize:"inherit"})},AK=m.forwardRef(function(t,n){var r,o,i,a,s,c;const u=nt({props:t,name:"MuiAlert"}),{action:d,children:p,className:f,closeText:h="Close",color:g,components:v={},componentsProps:y={},icon:b,iconMapping:w=e_,onClose:S,role:k="alert",severity:A="success",slotProps:T={},slots:R={},variant:P="standard"}=u,_=Fe(u,xK),I=N({},u,{color:g,severity:A,variant:P}),$=CK(I),U=(r=(o=R.closeButton)!=null?o:v.CloseButton)!=null?r:Ht,M=(i=(a=R.closeIcon)!=null?a:v.CloseIcon)!=null?i:U6,D=(s=T.closeButton)!=null?s:y.closeButton,K=(c=T.closeIcon)!=null?c:y.closeIcon;return x(EK,N({role:k,elevation:0,ownerState:I,className:ke($.root,f),ref:n},_,{children:[b!==!1?l(TK,{ownerState:I,className:$.icon,children:b||w[A]||e_[A]}):null,l(kK,{ownerState:I,className:$.message,children:p}),d!=null?l(ZR,{ownerState:I,className:$.action,children:d}):null,d==null&&S?l(ZR,{ownerState:I,className:$.action,children:l(U,N({size:"small","aria-label":h,title:h,color:"inherit",onClick:S},D,{children:l(M,N({fontSize:"small"},K))}))}):null]}))}),tn=AK;function RK(e){return Je("MuiTypography",e)}tt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const _K=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],PK=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${de(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return et(s,RK,a)},IK=C("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${de(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>N({margin:0},t.variant&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),t_={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},OK={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},$K=e=>OK[e]||e,NK=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTypography"}),o=$K(r.color),i=w2(N({},r,{color:o})),{align:a="inherit",className:s,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:p=!1,variant:f="body1",variantMapping:h=t_}=i,g=Fe(i,_K),v=N({},i,{align:a,color:o,className:s,component:c,gutterBottom:u,noWrap:d,paragraph:p,variant:f,variantMapping:h}),y=c||(p?"p":h[f]||t_[f])||"span",b=PK(v);return l(IK,N({as:y,ref:n,ownerState:v,className:ke(b.root,s)},g))}),se=NK;function LK(e){return Je("MuiAlertTitle",e)}tt("MuiAlertTitle",["root"]);const MK=["className"],DK=e=>{const{classes:t}=e;return et({root:["root"]},LK,t)},BK=C(se,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2})),FK=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiAlertTitle"}),{className:o}=r,i=Fe(r,MK),a=r,s=DK(a);return l(BK,N({gutterBottom:!0,component:"div",ownerState:a,ref:n,className:ke(s.root,o)},i))}),wv=FK;function zK(e){return Je("MuiAppBar",e)}tt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const jK=["className","color","enableColorOnDark","position"],UK=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${de(t)}`,`position${de(n)}`]};return et(o,zK,r)},Dm=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,WK=C(wr,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${de(n.position)}`],t[`color${de(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return N({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&N({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&N({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&N({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Dm(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Dm(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Dm(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Dm(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),HK=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:s="fixed"}=r,c=Fe(r,jK),u=N({},r,{color:i,position:s,enableColorOnDark:a}),d=UK(u);return l(WK,N({square:!0,component:"header",ownerState:u,elevation:4,className:ke(d.root,o,s==="fixed"&&"mui-fixed"),ref:n},c))}),VK=HK,GK=["components","componentsProps","slots","slotProps"],qK=C(_G,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),KK=m.forwardRef(function(t,n){var r;const o=S2(),i=nt({props:t,name:"MuiPopper"}),{components:a,componentsProps:s,slots:c,slotProps:u}=i,d=Fe(i,GK),p=(r=c==null?void 0:c.root)!=null?r:a==null?void 0:a.Root;return l(qK,N({direction:o==null?void 0:o.direction,slots:{root:p},slotProps:u??s},d,{ref:n}))}),r1=KK;function YK(e){return Je("MuiListSubheader",e)}tt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const XK=["className","color","component","disableGutters","disableSticky","inset"],JK=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,a={root:["root",n!=="default"&&`color${de(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return et(a,YK,t)},QK=C("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${de(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>N({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)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),ZK=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:a="li",disableGutters:s=!1,disableSticky:c=!1,inset:u=!1}=r,d=Fe(r,XK),p=N({},r,{color:i,component:a,disableGutters:s,disableSticky:c,inset:u}),f=JK(p);return l(QK,N({as:a,className:ke(f.root,o),ref:n,ownerState:p},d))}),eY=ZK,tY=Xe(l("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 nY(e){return Je("MuiChip",e)}const rY=tt("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),fn=rY,oY=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],iY=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:c}=e,u={root:["root",c,n&&"disabled",`size${de(r)}`,`color${de(o)}`,s&&"clickable",s&&`clickableColor${de(o)}`,a&&"deletable",a&&`deletableColor${de(o)}`,`${c}${de(o)}`],label:["label",`label${de(r)}`],avatar:["avatar",`avatar${de(r)}`,`avatarColor${de(o)}`],icon:["icon",`icon${de(r)}`,`iconColor${de(i)}`],deleteIcon:["deleteIcon",`deleteIcon${de(r)}`,`deleteIconColor${de(o)}`,`deleteIcon${de(c)}Color${de(o)}`]};return et(u,nY,t)},aY=C("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:c}=n;return[{[`& .${fn.avatar}`]:t.avatar},{[`& .${fn.avatar}`]:t[`avatar${de(s)}`]},{[`& .${fn.avatar}`]:t[`avatarColor${de(r)}`]},{[`& .${fn.icon}`]:t.icon},{[`& .${fn.icon}`]:t[`icon${de(s)}`]},{[`& .${fn.icon}`]:t[`iconColor${de(o)}`]},{[`& .${fn.deleteIcon}`]:t.deleteIcon},{[`& .${fn.deleteIcon}`]:t[`deleteIcon${de(s)}`]},{[`& .${fn.deleteIcon}`]:t[`deleteIconColor${de(r)}`]},{[`& .${fn.deleteIcon}`]:t[`deleteIcon${de(c)}Color${de(r)}`]},t.root,t[`size${de(s)}`],t[`color${de(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${de(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${de(r)}`],t[c],t[`${c}${de(r)}`]]}})(({theme:e,ownerState:t})=>{const n=yt(e.palette.text.primary,.26),r=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return N({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${fn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${fn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${fn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${fn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${fn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${fn.icon}`]:N({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&N({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},t.color!=="default"&&{color:"inherit"})),[`& .${fn.deleteIcon}`]:N({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:n,fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:yt(n,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:yt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:yt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>N({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:yt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:yt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>N({},t.variant==="outlined"&&{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]}`,[`&.${fn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${fn.avatar}`]:{marginLeft:4},[`& .${fn.avatarSmall}`]:{marginLeft:2},[`& .${fn.icon}`]:{marginLeft:4},[`& .${fn.iconSmall}`]:{marginLeft:2},[`& .${fn.deleteIcon}`]:{marginRight:5},[`& .${fn.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:yt(e.palette[t.color].main,.7)}`,[`&.${fn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:yt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${fn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:yt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),sY=C("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${de(r)}`]]}})(({ownerState:e})=>N({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.size==="small"&&{paddingLeft:8,paddingRight:8}));function n_(e){return e.key==="Backspace"||e.key==="Delete"}const lY=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:s="default",component:c,deleteIcon:u,disabled:d=!1,icon:p,label:f,onClick:h,onDelete:g,onKeyDown:v,onKeyUp:y,size:b="medium",variant:w="filled",tabIndex:S,skipFocusWhenDisabled:k=!1}=r,A=Fe(r,oY),T=m.useRef(null),R=In(T,n),P=j=>{j.stopPropagation(),g&&g(j)},_=j=>{j.currentTarget===j.target&&n_(j)&&j.preventDefault(),v&&v(j)},I=j=>{j.currentTarget===j.target&&(g&&n_(j)?g(j):j.key==="Escape"&&T.current&&T.current.blur()),y&&y(j)},$=a!==!1&&h?!0:a,U=$||g?Fi:c||"div",M=N({},r,{component:U,disabled:d,size:b,color:s,iconColor:m.isValidElement(p)&&p.props.color||s,onDelete:!!g,clickable:$,variant:w}),D=iY(M),K=U===Fi?N({component:c||"div",focusVisibleClassName:D.focusVisible},g&&{disableRipple:!0}):{};let H=null;g&&(H=u&&m.isValidElement(u)?m.cloneElement(u,{className:ke(u.props.className,D.deleteIcon),onClick:P}):l(tY,{className:ke(D.deleteIcon),onClick:P}));let Q=null;o&&m.isValidElement(o)&&(Q=m.cloneElement(o,{className:ke(D.avatar,o.props.className)}));let V=null;return p&&m.isValidElement(p)&&(V=m.cloneElement(p,{className:ke(D.icon,p.props.className)})),x(aY,N({as:U,className:ke(D.root,i),disabled:$&&d?!0:void 0,onClick:h,onKeyDown:_,onKeyUp:I,ref:R,tabIndex:k&&d?-1:S,ownerState:M},K,A,{children:[Q||V,l(sY,{className:ke(D.label),ownerState:M,children:f}),H]}))}),Ts=lY;function Tl({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const cY=m.createContext(void 0),o1=cY;function qa(){return m.useContext(o1)}function W6(e){return l(JU,N({},e,{defaultTheme:Xy}))}function r_(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function M2(e,t=!1){return e&&(r_(e.value)&&e.value!==""||t&&r_(e.defaultValue)&&e.defaultValue!=="")}function uY(e){return e.startAdornment}function dY(e){return Je("MuiInputBase",e)}const pY=tt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Xo=pY,fY=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],i1=(e,t)=>{const{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${de(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},a1=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},hY=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:p,size:f,startAdornment:h,type:g}=e,v={root:["root",`color${de(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",a&&"focused",s&&"formControl",f==="small"&&"sizeSmall",d&&"multiline",h&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",d&&"inputMultiline",f==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",p&&"readOnly"]};return et(v,dY,t)},s1=C("div",{name:"MuiInputBase",slot:"Root",overridesResolver:i1})(({theme:e,ownerState:t})=>N({},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",[`&.${Xo.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&N({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),l1=C("input",{name:"MuiInputBase",slot:"Input",overridesResolver:a1})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=N({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return N({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%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Xo.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Xo.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),mY=l(W6,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),gY=m.forwardRef(function(t,n){var r;const o=nt({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:c,components:u={},componentsProps:d={},defaultValue:p,disabled:f,disableInjectingGlobalStyles:h,endAdornment:g,fullWidth:v=!1,id:y,inputComponent:b="input",inputProps:w={},inputRef:S,maxRows:k,minRows:A,multiline:T=!1,name:R,onBlur:P,onChange:_,onClick:I,onFocus:$,onKeyDown:U,onKeyUp:M,placeholder:D,readOnly:K,renderSuffix:H,rows:Q,slotProps:V={},slots:j={},startAdornment:z,type:O="text",value:B}=o,Z=Fe(o,fY),ae=w.value!=null?w.value:B,{current:Ae}=m.useRef(ae!=null),fe=m.useRef(),Ie=m.useCallback(ee=>{},[]),ne=In(fe,S,w.ref,Ie),[ie,ce]=m.useState(!1),te=qa(),Ne=Tl({props:o,muiFormControl:te,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ne.focused=te?te.focused:ie,m.useEffect(()=>{!te&&f&&ie&&(ce(!1),P&&P())},[te,f,ie,P]);const ye=te&&te.onFilled,Ce=te&&te.onEmpty,me=m.useCallback(ee=>{M2(ee)?ye&&ye():Ce&&Ce()},[ye,Ce]);jo(()=>{Ae&&me({value:ae})},[ae,me,Ae]);const at=ee=>{if(Ne.disabled){ee.stopPropagation();return}$&&$(ee),w.onFocus&&w.onFocus(ee),te&&te.onFocus?te.onFocus(ee):ce(!0)},Oe=ee=>{P&&P(ee),w.onBlur&&w.onBlur(ee),te&&te.onBlur?te.onBlur(ee):ce(!1)},Ge=(ee,...X)=>{if(!Ae){const Se=ee.target||fe.current;if(Se==null)throw new Error(dl(1));me({value:Se.value})}w.onChange&&w.onChange(ee,...X),_&&_(ee,...X)};m.useEffect(()=>{me(fe.current)},[]);const dt=ee=>{fe.current&&ee.currentTarget===ee.target&&fe.current.focus(),I&&I(ee)};let ot=b,st=w;T&&ot==="input"&&(Q?st=N({type:void 0,minRows:Q,maxRows:Q},st):st=N({type:void 0,maxRows:k,minRows:A},st),ot=ZG);const Lt=ee=>{me(ee.animationName==="mui-auto-fill-cancel"?fe.current:{value:"x"})};m.useEffect(()=>{te&&te.setAdornedStart(!!z)},[te,z]);const Ct=N({},o,{color:Ne.color||"primary",disabled:Ne.disabled,endAdornment:g,error:Ne.error,focused:Ne.focused,formControl:te,fullWidth:v,hiddenLabel:Ne.hiddenLabel,multiline:T,size:Ne.size,startAdornment:z,type:O}),we=hY(Ct),$e=j.root||u.Root||s1,Qe=V.root||d.root||{},oe=j.input||u.Input||l1;return st=N({},st,(r=V.input)!=null?r:d.input),x(m.Fragment,{children:[!h&&mY,x($e,N({},Qe,!Ma($e)&&{ownerState:N({},Ct,Qe.ownerState)},{ref:n,onClick:dt},Z,{className:ke(we.root,Qe.className,c),children:[z,l(o1.Provider,{value:null,children:l(oe,N({ownerState:Ct,"aria-invalid":Ne.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:p,disabled:Ne.disabled,id:y,onAnimationStart:Lt,name:R,placeholder:D,readOnly:K,required:Ne.required,rows:Q,value:ae,onKeyDown:U,onKeyUp:M,type:O},st,!Ma(oe)&&{as:ot,ownerState:N({},Ct,st.ownerState)},{ref:ne,className:ke(we.input,st.className),onBlur:Oe,onChange:Ge,onFocus:at}))}),g,H?H(N({},Ne,{startAdornment:z})):null]}))]})}),c1=gY;function vY(e){return Je("MuiInput",e)}const yY=N({},Xo,tt("MuiInput",["root","underline","input"])),zs=yY;function bY(e){return Je("MuiOutlinedInput",e)}const wY=N({},Xo,tt("MuiOutlinedInput",["root","notchedOutline","input"])),ma=wY;function SY(e){return Je("MuiFilledInput",e)}const xY=N({},Xo,tt("MuiFilledInput",["root","underline","input"])),Jo=xY,H6=Xe(l("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function CY(e){return Je("MuiAutocomplete",e)}const EY=tt("MuiAutocomplete",["root","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),Jt=EY;var o_,i_;const TY=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],kY=e=>{const{classes:t,disablePortal:n,focused:r,fullWidth:o,hasClearIcon:i,hasPopupIcon:a,inputFocused:s,popupOpen:c,size:u}=e,d={root:["root",r&&"focused",o&&"fullWidth",i&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",s&&"inputFocused"],tag:["tag",`tagSize${de(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return et(d,CY,t)},AY=C("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:a,size:s}=n;return[{[`& .${Jt.tag}`]:t.tag},{[`& .${Jt.tag}`]:t[`tagSize${de(s)}`]},{[`& .${Jt.inputRoot}`]:t.inputRoot},{[`& .${Jt.input}`]:t.input},{[`& .${Jt.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>N({[`&.${Jt.focused} .${Jt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Jt.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${Jt.tag}`]:N({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${Jt.inputRoot}`]:{flexWrap:"wrap",[`.${Jt.hasPopupIcon}&, .${Jt.hasClearIcon}&`]:{paddingRight:26+4},[`.${Jt.hasPopupIcon}.${Jt.hasClearIcon}&`]:{paddingRight:52+4},[`& .${Jt.input}`]:{width:0,minWidth:30}},[`& .${zs.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${zs.root}.${Xo.sizeSmall}`]:{[`& .${zs.input}`]:{padding:"2px 4px 3px 0"}},[`& .${ma.root}`]:{padding:9,[`.${Jt.hasPopupIcon}&, .${Jt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${Jt.hasPopupIcon}.${Jt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Jt.input}`]:{padding:"7.5px 4px 7.5px 6px"},[`& .${Jt.endAdornment}`]:{right:9}},[`& .${ma.root}.${Xo.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Jt.input}`]:{padding:"2.5px 4px 2.5px 6px"}},[`& .${Jo.root}`]:{paddingTop:19,paddingLeft:8,[`.${Jt.hasPopupIcon}&, .${Jt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${Jt.hasPopupIcon}.${Jt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Jo.input}`]:{padding:"7px 4px"},[`& .${Jt.endAdornment}`]:{right:9}},[`& .${Jo.root}.${Xo.sizeSmall}`]:{paddingBottom:1,[`& .${Jo.input}`]:{padding:"2.5px 4px"}},[`& .${Xo.hiddenLabel}`]:{paddingTop:8},[`& .${Jo.root}.${Xo.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Jt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Jo.root}.${Xo.hiddenLabel}.${Xo.sizeSmall}`]:{[`& .${Jt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Jt.input}`]:N({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),RY=C("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),_Y=C(Ht,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),PY=C(Ht,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>N({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>N({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),IY=C(r1,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Jt.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>N({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),OY=C(wr,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>N({},e.typography.body1,{overflow:"auto"})),$Y=C("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),NY=C("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),LY=C("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Jt.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Jt.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Jt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Jt.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:yt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Jt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:yt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),MY=C(eY,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),DY=C("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Jt.option}`]:{paddingLeft:24}}),BY=m.forwardRef(function(t,n){var r,o,i,a;const s=nt({props:t,name:"MuiAutocomplete"}),{autoComplete:c=!1,autoHighlight:u=!1,autoSelect:d=!1,blurOnSelect:p=!1,ChipProps:f,className:h,clearIcon:g=o_||(o_=l(U6,{fontSize:"small"})),clearOnBlur:v=!s.freeSolo,clearOnEscape:y=!1,clearText:b="Clear",closeText:w="Close",componentsProps:S={},defaultValue:k=s.multiple?[]:null,disableClearable:A=!1,disableCloseOnSelect:T=!1,disabled:R=!1,disabledItemsFocusable:P=!1,disableListWrap:_=!1,disablePortal:I=!1,filterSelectedOptions:$=!1,forcePopupIcon:U="auto",freeSolo:M=!1,fullWidth:D=!1,getLimitTagsText:K=Vt=>`+${Vt}`,getOptionLabel:H=Vt=>{var an;return(an=Vt.label)!=null?an:Vt},groupBy:Q,handleHomeEndKeys:V=!s.freeSolo,includeInputInList:j=!1,limitTags:z=-1,ListboxComponent:O="ul",ListboxProps:B,loading:Z=!1,loadingText:ae="Loading…",multiple:Ae=!1,noOptionsText:fe="No options",openOnFocus:Ie=!1,openText:ne="Open",PaperComponent:ie=wr,PopperComponent:ce=r1,popupIcon:te=i_||(i_=l(H6,{})),readOnly:Ne=!1,renderGroup:ye,renderInput:Ce,renderOption:me,renderTags:at,selectOnFocus:Oe=!s.freeSolo,size:Ge="medium",slotProps:dt={}}=s,ot=Fe(s,TY),{getRootProps:st,getInputProps:Lt,getInputLabelProps:Ct,getPopupIndicatorProps:we,getClearProps:$e,getTagProps:Qe,getListboxProps:oe,getOptionProps:ee,value:X,dirty:Se,id:Re,popupOpen:Me,focused:bt,focusedTag:_t,anchorEl:zt,setAnchorEl:dn,inputValue:jt,groupedOptions:Gt}=rV(N({},s,{componentName:"Autocomplete"})),nn=!A&&!R&&Se&&!Ne,Hn=(!M||U===!0)&&U!==!1,pn=N({},s,{disablePortal:I,focused:bt,fullWidth:D,hasClearIcon:nn,hasPopupIcon:Hn,inputFocused:_t===-1,popupOpen:Me,size:Ge}),qt=kY(pn);let sr;if(Ae&&X.length>0){const Vt=an=>N({className:qt.tag,disabled:R},Qe(an));at?sr=at(X,Vt,pn):sr=X.map((an,tr)=>l(Ts,N({label:H(an),size:Ge},Vt({index:tr}),f)))}if(z>-1&&Array.isArray(sr)){const Vt=sr.length-z;!bt&&Vt>0&&(sr=sr.splice(0,z),sr.push(l("span",{className:qt.tag,children:K(Vt)},sr.length)))}const _o=ye||(Vt=>x("li",{children:[l(MY,{className:qt.groupLabel,ownerState:pn,component:"div",children:Vt.group}),l(DY,{className:qt.groupUl,ownerState:pn,children:Vt.children})]},Vt.key)),qo=me||((Vt,an)=>l("li",N({},Vt,{children:H(an)}))),Jr=(Vt,an)=>{const tr=ee({option:Vt,index:an});return qo(N({},tr,{className:qt.option}),Vt,{selected:tr["aria-selected"],index:an,inputValue:jt})},Po=(r=dt.clearIndicator)!=null?r:S.clearIndicator,vr=(o=dt.paper)!=null?o:S.paper,Io=(i=dt.popper)!=null?i:S.popper,Fr=(a=dt.popupIndicator)!=null?a:S.popupIndicator;return x(m.Fragment,{children:[l(AY,N({ref:n,className:ke(qt.root,h),ownerState:pn},st(ot),{children:Ce({id:Re,disabled:R,fullWidth:!0,size:Ge==="small"?"small":void 0,InputLabelProps:Ct(),InputProps:N({ref:dn,className:qt.inputRoot,startAdornment:sr},(nn||Hn)&&{endAdornment:x(RY,{className:qt.endAdornment,ownerState:pn,children:[nn?l(_Y,N({},$e(),{"aria-label":b,title:b,ownerState:pn},Po,{className:ke(qt.clearIndicator,Po==null?void 0:Po.className),children:g})):null,Hn?l(PY,N({},we(),{disabled:R,"aria-label":Me?w:ne,title:Me?w:ne,ownerState:pn},Fr,{className:ke(qt.popupIndicator,Fr==null?void 0:Fr.className),children:te})):null]})}),inputProps:N({className:qt.input,disabled:R,readOnly:Ne},Lt())})})),zt?l(IY,N({as:ce,disablePortal:I,style:{width:zt?zt.clientWidth:null},ownerState:pn,role:"presentation",anchorEl:zt,open:Me},Io,{className:ke(qt.popper,Io==null?void 0:Io.className),children:x(OY,N({ownerState:pn,as:ie},vr,{className:ke(qt.paper,vr==null?void 0:vr.className),children:[Z&&Gt.length===0?l($Y,{className:qt.loading,ownerState:pn,children:ae}):null,Gt.length===0&&!M&&!Z?l(NY,{className:qt.noOptions,ownerState:pn,role:"presentation",onMouseDown:Vt=>{Vt.preventDefault()},children:fe}):null,Gt.length>0?l(LY,N({as:O,className:qt.listbox,ownerState:pn},oe(),B,{children:Gt.map((Vt,an)=>Q?_o({key:Vt.key,group:Vt.group,children:Vt.options.map((tr,$r)=>Jr(tr,Vt.index+$r))}):Jr(Vt,an))})):null]}))})):null]})}),_h=BY,FY=Xe(l("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 zY(e){return Je("MuiAvatar",e)}tt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const jY=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],UY=e=>{const{classes:t,variant:n,colorDefault:r}=e;return et({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},zY,t)},WY=C("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>N({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"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&N({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),HY=C("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),VY=C(FY,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function GY({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=m.useState(!1);return m.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const s=new Image;return s.onload=()=>{a&&i("loaded")},s.onerror=()=>{a&&i("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const qY=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:a,component:s="div",imgProps:c,sizes:u,src:d,srcSet:p,variant:f="circular"}=r,h=Fe(r,jY);let g=null;const v=GY(N({},c,{src:d,srcSet:p})),y=d||p,b=y&&v!=="error",w=N({},r,{colorDefault:!b,component:s,variant:f}),S=UY(w);return b?g=l(HY,N({alt:o,src:d,srcSet:p,sizes:u,ownerState:w,className:S.img},c)):i!=null?g=i:y&&o?g=o[0]:g=l(VY,{ownerState:w,className:S.fallback}),l(WY,N({as:s,ownerState:w,className:ke(S.root,a),ref:n},h,{children:g}))}),Sd=qY,KY=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],YY={entering:{opacity:1},entered:{opacity:1}},XY=m.forwardRef(function(t,n){const r=gn(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:c,in:u,onEnter:d,onEntered:p,onEntering:f,onExit:h,onExited:g,onExiting:v,style:y,timeout:b=o,TransitionComponent:w=Qy}=t,S=Fe(t,KY),k=m.useRef(null),A=In(k,s.ref,n),T=D=>K=>{if(D){const H=k.current;K===void 0?D(H):D(H,K)}},R=T(f),P=T((D,K)=>{L2(D);const H=hl({style:y,timeout:b,easing:c},{mode:"enter"});D.style.webkitTransition=r.transitions.create("opacity",H),D.style.transition=r.transitions.create("opacity",H),d&&d(D,K)}),_=T(p),I=T(v),$=T(D=>{const K=hl({style:y,timeout:b,easing:c},{mode:"exit"});D.style.webkitTransition=r.transitions.create("opacity",K),D.style.transition=r.transitions.create("opacity",K),h&&h(D)}),U=T(g);return l(w,N({appear:a,in:u,nodeRef:k,onEnter:P,onEntered:_,onEntering:R,onExit:$,onExited:U,onExiting:I,addEndListener:D=>{i&&i(k.current,D)},timeout:b},S,{children:(D,K)=>m.cloneElement(s,N({style:N({opacity:0,visibility:D==="exited"&&!u?"hidden":void 0},YY[D],y,s.props.style),ref:A},K))}))}),D2=XY;function JY(e){return Je("MuiBackdrop",e)}tt("MuiBackdrop",["root","invisible"]);const QY=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],ZY=e=>{const{classes:t,invisible:n}=e;return et({root:["root",n&&"invisible"]},JY,t)},eX=C("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>N({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"},e.invisible&&{backgroundColor:"transparent"})),tX=m.forwardRef(function(t,n){var r,o,i;const a=nt({props:t,name:"MuiBackdrop"}),{children:s,className:c,component:u="div",components:d={},componentsProps:p={},invisible:f=!1,open:h,slotProps:g={},slots:v={},TransitionComponent:y=D2,transitionDuration:b}=a,w=Fe(a,QY),S=N({},a,{component:u,invisible:f}),k=ZY(S),A=(r=g.root)!=null?r:p.root;return l(y,N({in:h,timeout:b},w,{children:l(eX,N({"aria-hidden":!0},A,{as:(o=(i=v.root)!=null?i:d.Root)!=null?o:u,className:ke(k.root,c,A==null?void 0:A.className),ownerState:N({},S,A==null?void 0:A.ownerState),classes:k,ref:n,children:s}))}))}),B2=tX,nX=Yy(),rX=tH({defaultTheme:nX,defaultClassName:"MuiBox-root",generateClassName:r2.generate}),Le=rX,oX=Xe(l("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"),iX=C(Fi)(({theme:e})=>N({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":N({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":N({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:SR(e.palette.grey[200],.12)}:{backgroundColor:SR(e.palette.grey[600],.12)})})),aX=C(oX)({width:24,height:16});function sX(e){const t=e;return l("li",{children:l(iX,N({focusRipple:!0},e,{ownerState:t,children:l(aX,{ownerState:t})}))})}function lX(e){return Je("MuiBreadcrumbs",e)}const cX=tt("MuiBreadcrumbs",["root","ol","li","separator"]),uX=cX,dX=["children","className","component","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],pX=e=>{const{classes:t}=e;return et({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},lX,t)},fX=C(se,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${uX.li}`]:t.li},t.root]})({}),hX=C("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),mX=C("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function gX(e,t,n,r){return e.reduce((o,i,a)=>(a<e.length-1?o=o.concat(i,l(mX,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${a}`)):o.push(i),o),[])}const vX=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiBreadcrumbs"}),{children:o,className:i,component:a="nav",expandText:s="Show path",itemsAfterCollapse:c=1,itemsBeforeCollapse:u=1,maxItems:d=8,separator:p="/"}=r,f=Fe(r,dX),[h,g]=m.useState(!1),v=N({},r,{component:a,expanded:h,expandText:s,itemsAfterCollapse:c,itemsBeforeCollapse:u,maxItems:d,separator:p}),y=pX(v),b=m.useRef(null),w=k=>{const A=()=>{g(!0);const T=b.current.querySelector("a[href],button,[tabindex]");T&&T.focus()};return u+c>=k.length?k:[...k.slice(0,u),l(sX,{"aria-label":s,onClick:A},"ellipsis"),...k.slice(k.length-c,k.length)]},S=m.Children.toArray(o).filter(k=>m.isValidElement(k)).map((k,A)=>l("li",{className:y.li,children:k},`child-${A}`));return l(fX,N({ref:n,component:a,color:"text.secondary",className:ke(y.root,i),ownerState:v},f,{children:l(hX,{className:y.ol,ref:b,ownerState:v,children:gX(h||d&&S.length<=d?S:w(S),y.separator,p,v)})}))}),yX=vX;function bX(e){return Je("MuiButton",e)}const wX=tt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Bm=wX,SX=m.createContext({}),xX=SX,CX=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],EX=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${de(t)}`,`size${de(o)}`,`${i}Size${de(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${de(o)}`],endIcon:["endIcon",`iconSize${de(o)}`]},c=et(s,bX,a);return N({},a,c)},V6=e=>N({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),TX=C(Fi,{shouldForwardProp:e=>Vo(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${de(n.color)}`],t[`size${de(n.size)}`],t[`${n.variant}Size${de(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;return N({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":N({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:yt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:(e.vars||e).palette.grey.A100,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":N({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Bm.focusVisible}`]:N({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Bm.disabled}`]:N({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${yt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Bm.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Bm.disabled}`]:{boxShadow:"none"}}),kX=C("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${de(n.size)}`]]}})(({ownerState:e})=>N({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},V6(e))),AX=C("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${de(n.size)}`]]}})(({ownerState:e})=>N({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},V6(e))),RX=m.forwardRef(function(t,n){const r=m.useContext(xX),o=n2(r,t),i=nt({props:o,name:"MuiButton"}),{children:a,color:s="primary",component:c="button",className:u,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:f=!1,endIcon:h,focusVisibleClassName:g,fullWidth:v=!1,size:y="medium",startIcon:b,type:w,variant:S="text"}=i,k=Fe(i,CX),A=N({},i,{color:s,component:c,disabled:d,disableElevation:p,disableFocusRipple:f,fullWidth:v,size:y,type:w,variant:S}),T=EX(A),R=b&&l(kX,{className:T.startIcon,ownerState:A,children:b}),P=h&&l(AX,{className:T.endIcon,ownerState:A,children:h});return x(TX,N({ownerState:A,className:ke(r.className,T.root,u),component:c,disabled:d,focusRipple:!f,focusVisibleClassName:ke(T.focusVisible,g),ref:n,type:w},k,{classes:T,children:[R,a,P]}))}),Ve=RX;function _X(e){return Je("MuiCard",e)}tt("MuiCard",["root"]);const PX=["className","raised"],IX=e=>{const{classes:t}=e;return et({root:["root"]},_X,t)},OX=C(wr,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),$X=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiCard"}),{className:o,raised:i=!1}=r,a=Fe(r,PX),s=N({},r,{raised:i}),c=IX(s);return l(OX,N({className:ke(c.root,o),elevation:i?8:void 0,ref:n,ownerState:s},a))}),G6=$X;function NX(e){return Je("MuiCardActions",e)}tt("MuiCardActions",["root","spacing"]);const LX=["disableSpacing","className"],MX=e=>{const{classes:t,disableSpacing:n}=e;return et({root:["root",!n&&"spacing"]},NX,t)},DX=C("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>N({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})),BX=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiCardActions"}),{disableSpacing:o=!1,className:i}=r,a=Fe(r,LX),s=N({},r,{disableSpacing:o}),c=MX(s);return l(DX,N({className:ke(c.root,i),ownerState:s,ref:n},a))}),FX=BX;function zX(e){return Je("PrivateSwitchBase",e)}tt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const jX=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],UX=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${de(o)}`],input:["input"]};return et(i,zX,t)},WX=C(Fi)(({ownerState:e})=>N({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),HX=C("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),VX=m.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:a,defaultChecked:s,disabled:c,disableFocusRipple:u=!1,edge:d=!1,icon:p,id:f,inputProps:h,inputRef:g,name:v,onBlur:y,onChange:b,onFocus:w,readOnly:S,required:k=!1,tabIndex:A,type:T,value:R}=t,P=Fe(t,jX),[_,I]=oa({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),$=qa(),U=j=>{w&&w(j),$&&$.onFocus&&$.onFocus(j)},M=j=>{y&&y(j),$&&$.onBlur&&$.onBlur(j)},D=j=>{if(j.nativeEvent.defaultPrevented)return;const z=j.target.checked;I(z),b&&b(j,z)};let K=c;$&&typeof K>"u"&&(K=$.disabled);const H=T==="checkbox"||T==="radio",Q=N({},t,{checked:_,disabled:K,disableFocusRipple:u,edge:d}),V=UX(Q);return x(WX,N({component:"span",className:ke(V.root,a),centerRipple:!0,focusRipple:!u,disabled:K,tabIndex:null,role:void 0,onFocus:U,onBlur:M,ownerState:Q,ref:n},P,{children:[l(HX,N({autoFocus:r,checked:o,defaultChecked:s,className:V.input,disabled:K,id:H?f:void 0,name:v,onChange:D,readOnly:S,ref:g,required:k,ownerState:Q,tabIndex:A,type:T},T==="checkbox"&&R===void 0?{}:{value:R},h)),_?i:p]}))}),F2=VX,GX=Xe(l("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"),qX=Xe(l("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"),KX=Xe(l("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function YX(e){return Je("MuiCheckbox",e)}const XX=tt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),kb=XX,JX=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],QX=e=>{const{classes:t,indeterminate:n,color:r}=e,o={root:["root",n&&"indeterminate",`color${de(r)}`]},i=et(o,YX,t);return N({},t,i)},ZX=C(F2,{shouldForwardProp:e=>Vo(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${de(n.color)}`]]}})(({theme:e,ownerState:t})=>N({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${kb.checked}, &.${kb.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${kb.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),eJ=l(qX,{}),tJ=l(GX,{}),nJ=l(KX,{}),rJ=m.forwardRef(function(t,n){var r,o;const i=nt({props:t,name:"MuiCheckbox"}),{checkedIcon:a=eJ,color:s="primary",icon:c=tJ,indeterminate:u=!1,indeterminateIcon:d=nJ,inputProps:p,size:f="medium",className:h}=i,g=Fe(i,JX),v=u?d:c,y=u?d:a,b=N({},i,{color:s,indeterminate:u,size:f}),w=QX(b);return l(ZX,N({type:"checkbox",inputProps:N({"data-indeterminate":u},p),icon:m.cloneElement(v,{fontSize:(r=v.props.fontSize)!=null?r:f}),checkedIcon:m.cloneElement(y,{fontSize:(o=y.props.fontSize)!=null?o:f}),ownerState:b,ref:n,className:ke(w.root,h)},g,{classes:w}))}),Ka=rJ;function oJ(e){return Je("MuiCircularProgress",e)}tt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const iJ=["className","color","disableShrink","size","style","thickness","value","variant"];let u1=e=>e,a_,s_,l_,c_;const Os=44,aJ=Cl(a_||(a_=u1`
165
- 0% {
166
- transform: rotate(0deg);
167
- }
168
-
169
- 100% {
170
- transform: rotate(360deg);
171
- }
172
- `)),sJ=Cl(s_||(s_=u1`
173
- 0% {
174
- stroke-dasharray: 1px, 200px;
175
- stroke-dashoffset: 0;
176
- }
177
-
178
- 50% {
179
- stroke-dasharray: 100px, 200px;
180
- stroke-dashoffset: -15px;
181
- }
182
-
183
- 100% {
184
- stroke-dasharray: 100px, 200px;
185
- stroke-dashoffset: -125px;
186
- }
187
- `)),lJ=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${de(r)}`],svg:["svg"],circle:["circle",`circle${de(n)}`,o&&"circleDisableShrink"]};return et(i,oJ,t)},cJ=C("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${de(n.color)}`]]}})(({ownerState:e,theme:t})=>N({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&yd(l_||(l_=u1`
188
- animation: ${0} 1.4s linear infinite;
189
- `),aJ)),uJ=C("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),dJ=C("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${de(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>N({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&yd(c_||(c_=u1`
190
- animation: ${0} 1.4s ease-in-out infinite;
191
- `),sJ)),pJ=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:s=40,style:c,thickness:u=3.6,value:d=0,variant:p="indeterminate"}=r,f=Fe(r,iJ),h=N({},r,{color:i,disableShrink:a,size:s,thickness:u,value:d,variant:p}),g=lJ(h),v={},y={},b={};if(p==="determinate"){const w=2*Math.PI*((Os-u)/2);v.strokeDasharray=w.toFixed(3),b["aria-valuenow"]=Math.round(d),v.strokeDashoffset=`${((100-d)/100*w).toFixed(3)}px`,y.transform="rotate(-90deg)"}return l(cJ,N({className:ke(g.root,o),style:N({width:s,height:s},y,c),ownerState:h,ref:n,role:"progressbar"},b,f,{children:l(uJ,{className:g.svg,ownerState:h,viewBox:`${Os/2} ${Os/2} ${Os} ${Os}`,children:l(dJ,{className:g.circle,style:v,ownerState:h,cx:Os,cy:Os,r:(Os-u)/2,fill:"none",strokeWidth:u})})}))}),fJ=pJ,hJ=CH({createStyledComponent:C("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${de(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>nt({props:e,name:"MuiContainer"})}),mJ=hJ,gJ=(e,t)=>N({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),vJ=e=>N({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}}),yJ=(e,t=!1)=>{var n,r;const o={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,c])=>{var u;o[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(u=c.palette)==null?void 0:u.mode}});let i=N({html:gJ(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:N({margin:0},vJ(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},o);const a=(n=e.components)==null||(r=n.MuiCssBaseline)==null?void 0:r.styleOverrides;return a&&(i=[i,a]),i};function bJ(e){const t=nt({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return x(m.Fragment,{children:[l(W6,{styles:o=>yJ(o,r)}),n]})}const wJ=["BackdropComponent","BackdropProps","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],SJ=e=>e.classes,xJ=C("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>N({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),CJ=C(B2,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),EJ=m.forwardRef(function(t,n){var r,o,i,a,s,c;const u=nt({name:"MuiModal",props:t}),{BackdropComponent:d=CJ,BackdropProps:p,closeAfterTransition:f=!1,children:h,component:g,components:v={},componentsProps:y={},disableAutoFocus:b=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:S=!1,disablePortal:k=!1,disableRestoreFocus:A=!1,disableScrollLock:T=!1,hideBackdrop:R=!1,keepMounted:P=!1,slotProps:_,slots:I,theme:$}=u,U=Fe(u,wJ),[M,D]=m.useState(!0),K={closeAfterTransition:f,disableAutoFocus:b,disableEnforceFocus:w,disableEscapeKeyDown:S,disablePortal:k,disableRestoreFocus:A,disableScrollLock:T,hideBackdrop:R,keepMounted:P},H=N({},u,K,{exited:M}),Q=SJ(H),V=(r=(o=I==null?void 0:I.root)!=null?o:v.Root)!=null?r:xJ,j=(i=(a=I==null?void 0:I.backdrop)!=null?a:v.Backdrop)!=null?i:d,z=(s=_==null?void 0:_.root)!=null?s:y.root,O=(c=_==null?void 0:_.backdrop)!=null?c:y.backdrop;return l(UG,N({slots:{root:V,backdrop:j},slotProps:{root:()=>N({},FS(z,H),!Ma(V)&&{as:g,theme:$}),backdrop:()=>N({},p,FS(O,H))},onTransitionEnter:()=>D(!1),onTransitionExited:()=>D(!0),ref:n},U,{classes:Q},K,{children:h}))}),Ph=EJ;function TJ(e){return Je("MuiDialog",e)}const kJ=tt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Ab=kJ,AJ=m.createContext({}),q6=AJ,RJ=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],_J=C(B2,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),PJ=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${de(n)}`],paper:["paper",`paperScroll${de(n)}`,`paperWidth${de(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return et(a,TJ,t)},IJ=C(Ph,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),OJ=C("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${de(n.scroll)}`]]}})(({ownerState:e})=>N({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),$J=C(wr,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${de(n.scroll)}`],t[`paperWidth${de(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>N({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`${e.breakpoints.values.xs}${e.breakpoints.unit}`,[`&.${Ab.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Ab.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Ab.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),NJ=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiDialog"}),o=gn(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:c,BackdropProps:u,children:d,className:p,disableEscapeKeyDown:f=!1,fullScreen:h=!1,fullWidth:g=!1,maxWidth:v="sm",onBackdropClick:y,onClose:b,open:w,PaperComponent:S=wr,PaperProps:k={},scroll:A="paper",TransitionComponent:T=D2,transitionDuration:R=i,TransitionProps:P}=r,_=Fe(r,RJ),I=N({},r,{disableEscapeKeyDown:f,fullScreen:h,fullWidth:g,maxWidth:v,scroll:A}),$=PJ(I),U=m.useRef(),M=Q=>{U.current=Q.target===Q.currentTarget},D=Q=>{U.current&&(U.current=null,y&&y(Q),b&&b(Q,"backdropClick"))},K=gd(s),H=m.useMemo(()=>({titleId:K}),[K]);return l(IJ,N({className:ke($.root,p),closeAfterTransition:!0,components:{Backdrop:_J},componentsProps:{backdrop:N({transitionDuration:R,as:c},u)},disableEscapeKeyDown:f,onClose:b,open:w,ref:n,onClick:D,ownerState:I},_,{children:l(T,N({appear:!0,in:w,timeout:R,role:"presentation"},P,{children:l(OJ,{className:ke($.container),onMouseDown:M,ownerState:I,children:l($J,N({as:S,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":K},k,{className:ke($.paper,k.className),ownerState:I,children:l(q6.Provider,{value:H,children:d})}))})}))}))}),z2=NJ;function LJ(e){return Je("MuiDialogActions",e)}tt("MuiDialogActions",["root","spacing"]);const MJ=["className","disableSpacing"],DJ=e=>{const{classes:t,disableSpacing:n}=e;return et({root:["root",!n&&"spacing"]},LJ,t)},BJ=C("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>N({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})),FJ=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,a=Fe(r,MJ),s=N({},r,{disableSpacing:i}),c=DJ(s);return l(BJ,N({className:ke(c.root,o),ownerState:s,ref:n},a))}),zJ=FJ;function jJ(e){return Je("MuiDialogContent",e)}tt("MuiDialogContent",["root","dividers"]);function UJ(e){return Je("MuiDialogTitle",e)}const WJ=tt("MuiDialogTitle",["root"]),HJ=WJ,VJ=["className","dividers"],GJ=e=>{const{classes:t,dividers:n}=e;return et({root:["root",n&&"dividers"]},jJ,t)},qJ=C("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>N({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${HJ.root} + &`]:{paddingTop:0}})),KJ=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,a=Fe(r,VJ),s=N({},r,{dividers:i}),c=GJ(s);return l(qJ,N({className:ke(c.root,o),ownerState:s,ref:n},a))}),YJ=KJ,XJ=["className","id"],JJ=e=>{const{classes:t}=e;return et({root:["root"]},UJ,t)},QJ=C(se,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),ZJ=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiDialogTitle"}),{className:o,id:i}=r,a=Fe(r,XJ),s=r,c=JJ(s),{titleId:u=i}=m.useContext(q6);return l(QJ,N({component:"h2",className:ke(c.root,o),ownerState:s,ref:n,variant:"h6",id:u},a))}),eQ=ZJ;function tQ(e){return Je("MuiDivider",e)}const nQ=tt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),u_=nQ,rQ=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],oQ=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:c}=e;return et({root:["root",t&&"absolute",c,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},tQ,r)},iQ=C("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>N({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:yt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({theme:e,ownerState:t})=>N({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,top:"50%",content:'""',transform:"translateY(50%)"}}),({theme:e,ownerState:t})=>N({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:`thin solid ${(e.vars||e).palette.divider}`,transform:"translateX(0%)"}}),({ownerState:e})=>N({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),aQ=C("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>N({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),sQ=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,component:s=i?"div":"hr",flexItem:c=!1,light:u=!1,orientation:d="horizontal",role:p=s!=="hr"?"separator":void 0,textAlign:f="center",variant:h="fullWidth"}=r,g=Fe(r,rQ),v=N({},r,{absolute:o,component:s,flexItem:c,light:u,orientation:d,role:p,textAlign:f,variant:h}),y=oQ(v);return l(iQ,N({as:s,className:ke(y.root,a),role:p,ref:n,ownerState:v},g,{children:i?l(aQ,{className:y.wrapper,ownerState:v,children:i}):null}))}),To=sQ,lQ=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function cQ(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=Li(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const u=i.getComputedStyle(t);a=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let s=0,c=0;if(a&&a!=="none"&&typeof a=="string"){const u=a.split("(")[1].split(")")[0].split(",");s=parseInt(u[4],10),c=parseInt(u[5],10)}return e==="left"?o?`translateX(${o.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?o?`translateY(${o.bottom+c-r.top}px)`:`translateY(${i.innerHeight+c-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-c}px)`:`translateY(-${r.top+r.height-c}px)`}function uQ(e){return typeof e=="function"?e():e}function Fm(e,t,n){const r=uQ(n),o=cQ(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const dQ=m.forwardRef(function(t,n){const r=gn(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:c,container:u,direction:d="down",easing:p=o,in:f,onEnter:h,onEntered:g,onEntering:v,onExit:y,onExited:b,onExiting:w,style:S,timeout:k=i,TransitionComponent:A=Qy}=t,T=Fe(t,lQ),R=m.useRef(null),P=In(c.ref,R,n),_=V=>j=>{V&&(j===void 0?V(R.current):V(R.current,j))},I=_((V,j)=>{Fm(d,V,u),L2(V),h&&h(V,j)}),$=_((V,j)=>{const z=hl({timeout:k,style:S,easing:p},{mode:"enter"});V.style.webkitTransition=r.transitions.create("-webkit-transform",N({},z)),V.style.transition=r.transitions.create("transform",N({},z)),V.style.webkitTransform="none",V.style.transform="none",v&&v(V,j)}),U=_(g),M=_(w),D=_(V=>{const j=hl({timeout:k,style:S,easing:p},{mode:"exit"});V.style.webkitTransition=r.transitions.create("-webkit-transform",j),V.style.transition=r.transitions.create("transform",j),Fm(d,V,u),y&&y(V)}),K=_(V=>{V.style.webkitTransition="",V.style.transition="",b&&b(V)}),H=V=>{a&&a(R.current,V)},Q=m.useCallback(()=>{R.current&&Fm(d,R.current,u)},[d,u]);return m.useEffect(()=>{if(f||d==="down"||d==="right")return;const V=pc(()=>{R.current&&Fm(d,R.current,u)}),j=Li(R.current);return j.addEventListener("resize",V),()=>{V.clear(),j.removeEventListener("resize",V)}},[d,f,u]),m.useEffect(()=>{f||Q()},[f,Q]),l(A,N({nodeRef:R,onEnter:I,onEntered:U,onEntering:$,onExit:D,onExited:K,onExiting:M,addEndListener:H,appear:s,in:f,timeout:k},T,{children:(V,j)=>m.cloneElement(c,N({ref:P,style:N({visibility:V==="exited"&&!f?"hidden":void 0},S,c.props.style)},j))}))}),pQ=dQ;function fQ(e){return Je("MuiDrawer",e)}tt("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const hQ=["BackdropProps"],mQ=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],K6=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},gQ=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${de(n)}`,r!=="temporary"&&`paperAnchorDocked${de(n)}`]};return et(o,fQ,t)},vQ=C(Ph,{name:"MuiDrawer",slot:"Root",overridesResolver:K6})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),d_=C("div",{shouldForwardProp:Vo,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:K6})({flex:"0 0 auto"}),yQ=C(wr,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${de(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${de(n.anchor)}`]]}})(({theme:e,ownerState:t})=>N({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},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),Y6={left:"right",right:"left",top:"down",bottom:"up"};function bQ(e){return["left","right"].indexOf(e)!==-1}function wQ(e,t){return e.direction==="rtl"&&bQ(t)?Y6[t]:t}const SQ=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiDrawer"}),o=gn(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:s,children:c,className:u,elevation:d=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:f}={},onClose:h,open:g=!1,PaperProps:v={},SlideProps:y,TransitionComponent:b=pQ,transitionDuration:w=i,variant:S="temporary"}=r,k=Fe(r.ModalProps,hQ),A=Fe(r,mQ),T=m.useRef(!1);m.useEffect(()=>{T.current=!0},[]);const R=wQ(o,a),_=N({},r,{anchor:a,elevation:d,open:g,variant:S},A),I=gQ(_),$=l(yQ,N({elevation:S==="temporary"?d:0,square:!0},v,{className:ke(I.paper,v.className),ownerState:_,children:c}));if(S==="permanent")return l(d_,N({className:ke(I.root,I.docked,u),ownerState:_,ref:n},A,{children:$}));const U=l(b,N({in:g,direction:Y6[R],timeout:w,appear:T.current},y,{children:$}));return S==="persistent"?l(d_,N({className:ke(I.root,I.docked,u),ownerState:_,ref:n},A,{children:U})):l(vQ,N({BackdropProps:N({},s,f,{transitionDuration:w}),className:ke(I.root,I.modal,u),open:g,ownerState:_,onClose:h,hideBackdrop:p,ref:n},A,k,{children:U}))}),xQ=SQ,CQ=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],EQ=e=>{const{classes:t,disableUnderline:n}=e,o=et({root:["root",!n&&"underline"],input:["input"]},SY,t);return N({},t,o)},TQ=C(s1,{shouldForwardProp:e=>Vo(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...i1(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return N({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Jo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Jo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Jo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Jo.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Jo.disabled}, .${Jo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Jo.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&N({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),kQ=C(l1,{name:"MuiFilledInput",slot:"Input",overridesResolver:a1})(({theme:e,ownerState:t})=>N({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{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&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),X6=m.forwardRef(function(t,n){var r,o,i,a;const s=nt({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:u,fullWidth:d=!1,inputComponent:p="input",multiline:f=!1,slotProps:h,slots:g={},type:v="text"}=s,y=Fe(s,CQ),b=N({},s,{fullWidth:d,inputComponent:p,multiline:f,type:v}),w=EQ(s),S={root:{ownerState:b},input:{ownerState:b}},k=h??u?oi(h??u,S):S,A=(r=(o=g.root)!=null?o:c.Root)!=null?r:TQ,T=(i=(a=g.input)!=null?a:c.Input)!=null?i:kQ;return l(c1,N({slots:{root:A,input:T},componentsProps:k,fullWidth:d,inputComponent:p,multiline:f,ref:n,type:v},y,{classes:w}))});X6.muiName="Input";const J6=X6;function AQ(e){return Je("MuiFormControl",e)}tt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const RQ=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],_Q=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${de(n)}`,r&&"fullWidth"]};return et(o,AQ,t)},PQ=C("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>N({},t.root,t[`margin${de(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>N({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),IQ=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:s="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:p=!1,hiddenLabel:f=!1,margin:h="none",required:g=!1,size:v="medium",variant:y="outlined"}=r,b=Fe(r,RQ),w=N({},r,{color:a,component:s,disabled:c,error:u,fullWidth:p,hiddenLabel:f,margin:h,required:g,size:v,variant:y}),S=_Q(w),[k,A]=m.useState(()=>{let M=!1;return o&&m.Children.forEach(o,D=>{if(!of(D,["Input","Select"]))return;const K=of(D,["Select"])?D.props.input:D;K&&uY(K.props)&&(M=!0)}),M}),[T,R]=m.useState(()=>{let M=!1;return o&&m.Children.forEach(o,D=>{of(D,["Input","Select"])&&M2(D.props,!0)&&(M=!0)}),M}),[P,_]=m.useState(!1);c&&P&&_(!1);const I=d!==void 0&&!c?d:P;let $;const U=m.useMemo(()=>({adornedStart:k,setAdornedStart:A,color:a,disabled:c,error:u,filled:T,focused:I,fullWidth:p,hiddenLabel:f,size:v,onBlur:()=>{_(!1)},onEmpty:()=>{R(!1)},onFilled:()=>{R(!0)},onFocus:()=>{_(!0)},registerEffect:$,required:g,variant:y}),[k,a,c,u,T,I,p,f,$,g,v,y]);return l(o1.Provider,{value:U,children:l(PQ,N({as:s,ownerState:w,className:ke(S.root,i),ref:n},b,{children:o}))})}),ks=IQ;function OQ(e){return Je("MuiFormControlLabel",e)}const $Q=tt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]),zm=$Q,NQ=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","slotProps","value"],LQ=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o}=e,i={root:["root",n&&"disabled",`labelPlacement${de(r)}`,o&&"error"],label:["label",n&&"disabled"]};return et(i,OQ,t)},MQ=C("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${zm.label}`]:t.label},t.root,t[`labelPlacement${de(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>N({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${zm.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${zm.label}`]:{[`&.${zm.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),DQ=m.forwardRef(function(t,n){var r;const o=nt({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:a={},control:s,disabled:c,disableTypography:u,label:d,labelPlacement:p="end",slotProps:f={}}=o,h=Fe(o,NQ),g=qa();let v=c;typeof v>"u"&&typeof s.props.disabled<"u"&&(v=s.props.disabled),typeof v>"u"&&g&&(v=g.disabled);const y={disabled:v};["checked","name","onChange","value","inputRef"].forEach(T=>{typeof s.props[T]>"u"&&typeof o[T]<"u"&&(y[T]=o[T])});const b=Tl({props:o,muiFormControl:g,states:["error"]}),w=N({},o,{disabled:v,labelPlacement:p,error:b.error}),S=LQ(w),k=(r=f.typography)!=null?r:a.typography;let A=d;return A!=null&&A.type!==se&&!u&&(A=l(se,N({component:"span"},k,{className:ke(S.label,k==null?void 0:k.className),children:A}))),x(MQ,N({className:ke(S.root,i),ownerState:w,ref:n},h,{children:[m.cloneElement(s,y),A]}))}),Hr=DQ;function BQ(e){return Je("MuiFormGroup",e)}tt("MuiFormGroup",["root","row","error"]);const FQ=["className","row"],zQ=e=>{const{classes:t,row:n,error:r}=e;return et({root:["root",n&&"row",r&&"error"]},BQ,t)},jQ=C("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>N({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),UQ=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1}=r,a=Fe(r,FQ),s=qa(),c=Tl({props:r,muiFormControl:s,states:["error"]}),u=N({},r,{row:i,error:c.error}),d=zQ(u);return l(jQ,N({className:ke(d.root,o),ownerState:u,ref:n},a))}),WQ=UQ;function HQ(e){return Je("MuiFormHelperText",e)}const VQ=tt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),p_=VQ;var f_;const GQ=["children","className","component","disabled","error","filled","focused","margin","required","variant"],qQ=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:c}=e,u={root:["root",o&&"disabled",i&&"error",r&&`size${de(r)}`,n&&"contained",s&&"focused",a&&"filled",c&&"required"]};return et(u,HQ,t)},KQ=C("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${de(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>N({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${p_.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${p_.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),YQ=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p"}=r,s=Fe(r,GQ),c=qa(),u=Tl({props:r,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),d=N({},r,{component:a,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),p=qQ(d);return l(KQ,N({as:a,ownerState:d,className:ke(p.root,i),ref:n},s,{children:o===" "?f_||(f_=l("span",{className:"notranslate",children:"​"})):o}))}),XQ=YQ;function JQ(e){return Je("MuiFormLabel",e)}const QQ=tt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),df=QQ,ZQ=["children","className","color","component","disabled","error","filled","focused","required"],eZ=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,c={root:["root",`color${de(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return et(c,JQ,t)},tZ=C("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>N({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>N({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${df.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${df.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${df.error}`]:{color:(e.vars||e).palette.error.main}})),nZ=C("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${df.error}`]:{color:(e.vars||e).palette.error.main}})),rZ=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:a="label"}=r,s=Fe(r,ZQ),c=qa(),u=Tl({props:r,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),d=N({},r,{color:u.color||"primary",component:a,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),p=eZ(d);return x(tZ,N({as:a,ownerState:d,className:ke(p.root,i),ref:n},s,{children:[o,u.required&&x(nZ,{ownerState:d,"aria-hidden":!0,className:p.asterisk,children:[" ","*"]})]}))}),oZ=rZ,iZ=m.createContext(),h_=iZ;function aZ(e){return Je("MuiGrid",e)}const sZ=[0,1,2,3,4,5,6,7,8,9,10],lZ=["column-reverse","column","row-reverse","row"],cZ=["nowrap","wrap-reverse","wrap"],pp=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Vf=tt("MuiGrid",["root","container","item","zeroMinWidth",...sZ.map(e=>`spacing-xs-${e}`),...lZ.map(e=>`direction-xs-${e}`),...cZ.map(e=>`wrap-xs-${e}`),...pp.map(e=>`grid-xs-${e}`),...pp.map(e=>`grid-sm-${e}`),...pp.map(e=>`grid-md-${e}`),...pp.map(e=>`grid-lg-${e}`),...pp.map(e=>`grid-xl-${e}`)]),uZ=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Ru(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function dZ({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=Fy({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof a=="object"?a[o]:a;if(s==null)return r;const c=`${Math.round(n/s*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const d=e.spacing(t.columnSpacing);if(d!=="0px"){const p=`calc(${c} + ${Ru(d)})`;u={flexBasis:p,maxWidth:p}}}i=N({flexBasis:c,flexGrow:0,maxWidth:c},u)}return e.breakpoints.values[o]===0?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r},{})}function pZ({theme:e,ownerState:t}){const n=Fy({values:t.direction,breakpoints:e.breakpoints.values});return Mi({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${Vf.item}`]={maxWidth:"none"}),o})}function Q6({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,i)=>e[o]-e[i]);return r.slice(0,r.indexOf(n))}function fZ({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const i=Fy({values:r,breakpoints:e.breakpoints.values});let a;typeof i=="object"&&(a=Q6({breakpoints:e.breakpoints.values,values:i})),o=Mi({theme:e},i,(s,c)=>{var u;const d=e.spacing(s);return d!=="0px"?{marginTop:`-${Ru(d)}`,[`& > .${Vf.item}`]:{paddingTop:Ru(d)}}:(u=a)!=null&&u.includes(c)?{}:{marginTop:0,[`& > .${Vf.item}`]:{paddingTop:0}}})}return o}function hZ({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const i=Fy({values:r,breakpoints:e.breakpoints.values});let a;typeof i=="object"&&(a=Q6({breakpoints:e.breakpoints.values,values:i})),o=Mi({theme:e},i,(s,c)=>{var u;const d=e.spacing(s);return d!=="0px"?{width:`calc(100% + ${Ru(d)})`,marginLeft:`-${Ru(d)}`,[`& > .${Vf.item}`]:{paddingLeft:Ru(d)}}:(u=a)!=null&&u.includes(c)?{}:{width:"100%",marginLeft:0,[`& > .${Vf.item}`]:{paddingLeft:0}}})}return o}function mZ(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const i=e[o];Number(i)>0&&r.push(n[`spacing-${o}-${String(i)}`])}),r}const gZ=C("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:a,wrap:s,zeroMinWidth:c,breakpoints:u}=n;let d=[];r&&(d=mZ(a,u,t));const p=[];return u.forEach(f=>{const h=n[f];h&&p.push(t[`grid-${f}-${String(h)}`])}),[t.root,r&&t.container,i&&t.item,c&&t.zeroMinWidth,...d,o!=="row"&&t[`direction-xs-${String(o)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...p]}})(({ownerState:e})=>N({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),pZ,fZ,hZ,dZ);function vZ(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const i=`spacing-${r}-${String(o)}`;n.push(i)}}),n}const yZ=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:a,zeroMinWidth:s,breakpoints:c}=e;let u=[];n&&(u=vZ(i,c));const d=[];c.forEach(f=>{const h=e[f];h&&d.push(`grid-${f}-${String(h)}`)});const p={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...d]};return et(p,aZ,t)},bZ=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiGrid"}),{breakpoints:o}=gn(),i=w2(r),{className:a,columns:s,columnSpacing:c,component:u="div",container:d=!1,direction:p="row",item:f=!1,rowSpacing:h,spacing:g=0,wrap:v="wrap",zeroMinWidth:y=!1}=i,b=Fe(i,uZ),w=h||g,S=c||g,k=m.useContext(h_),A=d?s||12:k,T={},R=N({},b);o.keys.forEach(I=>{b[I]!=null&&(T[I]=b[I],delete R[I])});const P=N({},i,{columns:A,container:d,direction:p,item:f,rowSpacing:w,columnSpacing:S,wrap:v,zeroMinWidth:y,spacing:g},T,{breakpoints:o.keys}),_=yZ(P);return l(h_.Provider,{value:A,children:l(gZ,N({ownerState:P,className:ke(_.root,a),as:u,ref:n},R))})}),Wn=bZ,wZ=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function qS(e){return`scale(${e}, ${e**2})`}const SZ={entering:{opacity:1,transform:qS(1)},entered:{opacity:1,transform:"none"}},Rb=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Z6=m.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:g,timeout:v="auto",TransitionComponent:y=Qy}=t,b=Fe(t,wZ),w=m.useRef(),S=m.useRef(),k=gn(),A=m.useRef(null),T=In(A,i.ref,n),R=K=>H=>{if(K){const Q=A.current;H===void 0?K(Q):K(Q,H)}},P=R(d),_=R((K,H)=>{L2(K);const{duration:Q,delay:V,easing:j}=hl({style:g,timeout:v,easing:a},{mode:"enter"});let z;v==="auto"?(z=k.transitions.getAutoHeightDuration(K.clientHeight),S.current=z):z=Q,K.style.transition=[k.transitions.create("opacity",{duration:z,delay:V}),k.transitions.create("transform",{duration:Rb?z:z*.666,delay:V,easing:j})].join(","),c&&c(K,H)}),I=R(u),$=R(h),U=R(K=>{const{duration:H,delay:Q,easing:V}=hl({style:g,timeout:v,easing:a},{mode:"exit"});let j;v==="auto"?(j=k.transitions.getAutoHeightDuration(K.clientHeight),S.current=j):j=H,K.style.transition=[k.transitions.create("opacity",{duration:j,delay:Q}),k.transitions.create("transform",{duration:Rb?j:j*.666,delay:Rb?Q:Q||j*.333,easing:V})].join(","),K.style.opacity=0,K.style.transform=qS(.75),p&&p(K)}),M=R(f),D=K=>{v==="auto"&&(w.current=setTimeout(K,S.current||0)),r&&r(A.current,K)};return m.useEffect(()=>()=>{clearTimeout(w.current)},[]),l(y,N({appear:o,in:s,nodeRef:A,onEnter:_,onEntered:I,onEntering:P,onExit:U,onExited:M,onExiting:$,addEndListener:D,timeout:v==="auto"?null:v},b,{children:(K,H)=>m.cloneElement(i,N({style:N({opacity:0,transform:qS(.75),visibility:K==="exited"&&!s?"hidden":void 0},SZ[K],g,i.props.style),ref:T},H))}))});Z6.muiSupportAuto=!0;const KS=Z6;function xZ(e,t,n,r,o){const[i,a]=m.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return jo(()=>{let s=!0;if(!n)return;const c=n(e),u=()=>{s&&a(c.matches)};return u(),c.addListener(u),()=>{s=!1,c.removeListener(u)}},[e,n]),i}const eN=zg["useSyncExternalStore"];function CZ(e,t,n,r,o){const i=m.useCallback(()=>t,[t]),a=m.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:d}=r(e);return()=>d}return i},[i,e,r,o,n]),[s,c]=m.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const d=n(e);return[()=>d.matches,p=>(d.addListener(p),()=>{d.removeListener(p)})]},[i,n,e]);return eN(c,s,a)}function or(e,t={}){const n=S2(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:i=r?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:s=!1}=C6({name:"MuiUseMediaQuery",props:t,theme:n});let c=typeof e=="function"?e(n):e;return c=c.replace(/^@media( ?)/m,""),(eN!==void 0?CZ:xZ)(c,o,i,a,s)}function EZ(e){return Je("MuiIcon",e)}tt("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const TZ=["baseClassName","className","color","component","fontSize"],kZ=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${de(t)}`,`fontSize${de(n)}`]};return et(o,EZ,r)},AZ=C("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${de(n.color)}`],t[`fontSize${de(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]})),tN=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiIcon"}),{baseClassName:o="material-icons",className:i,color:a="inherit",component:s="span",fontSize:c="medium"}=r,u=Fe(r,TZ),d=N({},r,{baseClassName:o,color:a,component:s,fontSize:c}),p=kZ(d);return l(AZ,N({as:s,className:ke(o,"notranslate",p.root,i),ownerState:d,"aria-hidden":!0,ref:n},u))});tN.muiName="Icon";const j2=tN,RZ=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],_Z=e=>{const{classes:t,disableUnderline:n}=e,o=et({root:["root",!n&&"underline"],input:["input"]},vY,t);return N({},t,o)},PZ=C(s1,{shouldForwardProp:e=>Vo(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...i1(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),N({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${zs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${zs.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${zs.disabled}, .${zs.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${zs.disabled}:before`]:{borderBottomStyle:"dotted"}})}),IZ=C(l1,{name:"MuiInput",slot:"Input",overridesResolver:a1})({}),nN=m.forwardRef(function(t,n){var r,o,i,a;const s=nt({props:t,name:"MuiInput"}),{disableUnderline:c,components:u={},componentsProps:d,fullWidth:p=!1,inputComponent:f="input",multiline:h=!1,slotProps:g,slots:v={},type:y="text"}=s,b=Fe(s,RZ),w=_Z(s),k={root:{ownerState:{disableUnderline:c}}},A=g??d?oi(g??d,k):k,T=(r=(o=v.root)!=null?o:u.Root)!=null?r:PZ,R=(i=(a=v.input)!=null?a:u.Input)!=null?i:IZ;return l(c1,N({slots:{root:T,input:R},slotProps:A,fullWidth:p,inputComponent:f,multiline:h,ref:n,type:y},b,{classes:w}))});nN.muiName="Input";const rN=nN;function OZ(e){return Je("MuiInputAdornment",e)}const $Z=tt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),m_=$Z;var g_;const NZ=["children","className","component","disablePointerEvents","disableTypography","position","variant"],LZ=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${de(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},MZ=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${de(o)}`,a,r&&"hiddenLabel",i&&`size${de(i)}`]};return et(s,OZ,t)},DZ=C("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:LZ})(({theme:e,ownerState:t})=>N({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${m_.positionStart}&:not(.${m_.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),BZ=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:c=!1,position:u,variant:d}=r,p=Fe(r,NZ),f=qa()||{};let h=d;d&&f.variant,f&&!h&&(h=f.variant);const g=N({},r,{hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:s,position:u,variant:h}),v=MZ(g);return l(o1.Provider,{value:null,children:l(DZ,N({as:a,ownerState:g,className:ke(v.root,i),ref:n},p,{children:typeof o=="string"&&!c?l(se,{color:"text.secondary",children:o}):x(m.Fragment,{children:[u==="start"?g_||(g_=l("span",{className:"notranslate",children:"​"})):null,o]})}))})}),oN=BZ;function FZ(e){return Je("MuiInputLabel",e)}tt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const zZ=["disableAnimation","margin","shrink","variant","className"],jZ=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e,u=et({root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r==="small"&&"sizeSmall",a],asterisk:[s&&"asterisk"]},FZ,t);return N({},t,u)},UZ=C(oZ,{shouldForwardProp:e=>Vo(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${df.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>N({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&N({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&N({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&N({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 24px)",transform:"translate(14px, -9px) scale(0.75)"}))),WZ=m.forwardRef(function(t,n){const r=nt({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:a}=r,s=Fe(r,zZ),c=qa();let u=i;typeof u>"u"&&c&&(u=c.filled||c.focused||c.adornedStart);const d=Tl({props:r,muiFormControl:c,states:["size","variant","required"]}),p=N({},r,{disableAnimation:o,formControl:c,shrink:u,size:d.size,variant:d.variant,required:d.required}),f=jZ(p);return l(UZ,N({"data-shrink":u,ownerState:p,ref:n,className:ke(f.root,a)},s,{classes:f}))}),Ih=WZ;function HZ(e){return Je("MuiLinearProgress",e)}const VZ=tt("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]),v_=VZ,GZ=["className","color","value","valueBuffer","variant"];let xd=e=>e,y_,b_,w_,S_,x_,C_;const YS=4,qZ=Cl(y_||(y_=xd`
192
- 0% {
193
- left: -35%;
194
- right: 100%;
195
- }
196
-
197
- 60% {
198
- left: 100%;
199
- right: -90%;
200
- }
201
-
202
- 100% {
203
- left: 100%;
204
- right: -90%;
205
- }
206
- `)),KZ=Cl(b_||(b_=xd`
207
- 0% {
208
- left: -200%;
209
- right: 100%;
210
- }
211
-
212
- 60% {
213
- left: 107%;
214
- right: -8%;
215
- }
216
-
217
- 100% {
218
- left: 107%;
219
- right: -8%;
220
- }
221
- `)),YZ=Cl(w_||(w_=xd`
222
- 0% {
223
- opacity: 1;
224
- background-position: 0 -23px;
225
- }
226
-
227
- 60% {
228
- opacity: 0;
229
- background-position: 0 -23px;
230
- }
231
-
232
- 100% {
233
- opacity: 1;
234
- background-position: -200px -23px;
235
- }
236
- `)),XZ=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${de(r)}`,n],dashed:["dashed",`dashedColor${de(r)}`],bar1:["bar",`barColor${de(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${de(r)}`,n==="buffer"&&`color${de(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return et(o,HZ,t)},U2=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?fl(e.palette[t].main,.62):pl(e.palette[t].main,.5),JZ=C("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${de(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>N({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:U2(t,e.color)},e.color==="inherit"&&e.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},e.variant==="buffer"&&{backgroundColor:"transparent"},e.variant==="query"&&{transform:"rotate(180deg)"})),QZ=C("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${de(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=U2(t,e.color);return N({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},yd(S_||(S_=xd`
237
- animation: ${0} 3s infinite linear;
238
- `),YZ)),ZZ=C("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${de(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>N({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${YS}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${YS}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&yd(x_||(x_=xd`
239
- width: auto;
240
- animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
241
- `),qZ)),eee=C("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${de(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>N({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:U2(t,e.color),transition:`transform .${YS}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&yd(C_||(C_=xd`
242
- width: auto;
243
- animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
244
- `),KZ)),tee=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiLinearProgress"}),{className:o,color:i="primary",value:a,valueBuffer:s,variant:c="indeterminate"}=r,u=Fe(r,GZ),d=N({},r,{color:i,variant:c}),p=XZ(d),f=gn(),h={},g={bar1:{},bar2:{}};if((c==="determinate"||c==="buffer")&&a!==void 0){h["aria-valuenow"]=Math.round(a),h["aria-valuemin"]=0,h["aria-valuemax"]=100;let v=a-100;f.direction==="rtl"&&(v=-v),g.bar1.transform=`translateX(${v}%)`}if(c==="buffer"&&s!==void 0){let v=(s||0)-100;f.direction==="rtl"&&(v=-v),g.bar2.transform=`translateX(${v}%)`}return x(JZ,N({className:ke(p.root,o),ownerState:d,role:"progressbar"},h,{ref:n},u,{children:[c==="buffer"?l(QZ,{className:p.dashed,ownerState:d}):null,l(ZZ,{className:p.bar1,ownerState:d,style:g.bar1}),c==="determinate"?null:l(eee,{className:p.bar2,ownerState:d,style:g.bar2})]}))}),iN=tee;function nee(e){return Je("MuiLink",e)}const ree=tt("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),oee=ree,aN={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},iee=e=>aN[e]||e,aee=({theme:e,ownerState:t})=>{const n=iee(t.color),r=Wu(e,`palette.${n}`,!1)||t.color,o=Wu(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:yt(r,.4)},see=aee,lee=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],cee=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${de(o)}`,n==="button"&&"button",r&&"focusVisible"]};return et(i,nee,t)},uee=C(se,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${de(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>N({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&N({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:see({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{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"},[`&.${oee.focusVisible}`]:{outline:"auto"}})),dee=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:a="a",onBlur:s,onFocus:c,TypographyClasses:u,underline:d="always",variant:p="inherit",sx:f}=r,h=Fe(r,lee),{isFocusVisibleRef:g,onBlur:v,onFocus:y,ref:b}=Sh(),[w,S]=m.useState(!1),k=In(n,b),A=_=>{v(_),g.current===!1&&S(!1),s&&s(_)},T=_=>{y(_),g.current===!0&&S(!0),c&&c(_)},R=N({},r,{color:i,component:a,focusVisible:w,underline:d,variant:p}),P=cee(R);return l(uee,N({color:i,className:ke(P.root,o),classes:u,component:a,onBlur:A,onFocus:T,ref:k,ownerState:R,variant:p,sx:[...Object.keys(aN).includes(i)?[]:[{color:i}],...Array.isArray(f)?f:[f]]},h))}),Vr=dee,pee=m.createContext({}),_i=pee;function fee(e){return Je("MuiList",e)}tt("MuiList",["root","padding","dense","subheader"]);const hee=["children","className","component","dense","disablePadding","subheader"],mee=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return et({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},fee,t)},gee=C("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>N({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),vee=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:c=!1,subheader:u}=r,d=Fe(r,hee),p=m.useMemo(()=>({dense:s}),[s]),f=N({},r,{component:a,dense:s,disablePadding:c}),h=mee(f);return l(_i.Provider,{value:p,children:x(gee,N({as:a,className:ke(h.root,i),ref:n,ownerState:f},d,{children:[u,o]}))})}),ia=vee;function yee(e){return Je("MuiListItem",e)}const bee=tt("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),nu=bee;function wee(e){return Je("MuiListItemButton",e)}const See=tt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),ru=See,xee=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Cee=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Eee=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e,u=et({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",s&&"selected"]},wee,n);return N({},n,u)},Tee=C(Fi,{shouldForwardProp:e=>Vo(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:Cee})(({theme:e,ownerState:t})=>N({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ru.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ru.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:yt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ru.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:yt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ru.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ru.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),kee=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:a="div",children:s,dense:c=!1,disableGutters:u=!1,divider:d=!1,focusVisibleClassName:p,selected:f=!1,className:h}=r,g=Fe(r,xee),v=m.useContext(_i),y=m.useMemo(()=>({dense:c||v.dense||!1,alignItems:o,disableGutters:u}),[o,v.dense,c,u]),b=m.useRef(null);jo(()=>{i&&b.current&&b.current.focus()},[i]);const w=N({},r,{alignItems:o,dense:y.dense,disableGutters:u,divider:d,selected:f}),S=Eee(w),k=In(b,n);return l(_i.Provider,{value:y,children:l(Tee,N({ref:k,href:g.href||g.to,component:(g.href||g.to)&&a==="div"?"a":a,focusVisibleClassName:ke(S.focusVisible,p),ownerState:w,className:ke(S.root,h)},g,{classes:S,children:s}))})}),Aee=kee;function Ree(e){return Je("MuiListItemSecondaryAction",e)}tt("MuiListItemSecondaryAction",["root","disableGutters"]);const _ee=["className"],Pee=e=>{const{disableGutters:t,classes:n}=e;return et({root:["root",t&&"disableGutters"]},Ree,n)},Iee=C("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>N({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),sN=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=Fe(r,_ee),a=m.useContext(_i),s=N({},r,{disableGutters:a.disableGutters}),c=Pee(s);return l(Iee,N({className:ke(c.root,o),ownerState:s,ref:n},i))});sN.muiName="ListItemSecondaryAction";const Oee=sN,$ee=["className"],Nee=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Lee=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},Mee=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:c,hasSecondaryAction:u,selected:d}=e;return et({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",c&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",d&&"selected"],container:["container"]},yee,r)},Dee=C("div",{name:"MuiListItem",slot:"Root",overridesResolver:Lee})(({theme:e,ownerState:t})=>N({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&N({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${ru.root}`]:{paddingRight:48}},{[`&.${nu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${nu.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${nu.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:yt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${nu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${nu.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:yt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Bee=C("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Fee=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:a=!1,children:s,className:c,component:u,components:d={},componentsProps:p={},ContainerComponent:f="li",ContainerProps:{className:h}={},dense:g=!1,disabled:v=!1,disableGutters:y=!1,disablePadding:b=!1,divider:w=!1,focusVisibleClassName:S,secondaryAction:k,selected:A=!1,slotProps:T={},slots:R={}}=r,P=Fe(r.ContainerProps,$ee),_=Fe(r,Nee),I=m.useContext(_i),$=m.useMemo(()=>({dense:g||I.dense||!1,alignItems:o,disableGutters:y}),[o,I.dense,g,y]),U=m.useRef(null);jo(()=>{i&&U.current&&U.current.focus()},[i]);const M=m.Children.toArray(s),D=M.length&&of(M[M.length-1],["ListItemSecondaryAction"]),K=N({},r,{alignItems:o,autoFocus:i,button:a,dense:$.dense,disabled:v,disableGutters:y,disablePadding:b,divider:w,hasSecondaryAction:D,selected:A}),H=Mee(K),Q=In(U,n),V=R.root||d.Root||Dee,j=T.root||p.root||{},z=N({className:ke(H.root,j.className,c),disabled:v},_);let O=u||"li";return a&&(z.component=u||"div",z.focusVisibleClassName=ke(nu.focusVisible,S),O=Fi),D?(O=!z.component&&!u?"div":O,f==="li"&&(O==="li"?O="div":z.component==="li"&&(z.component="div")),l(_i.Provider,{value:$,children:x(Bee,N({as:f,className:ke(H.container,h),ref:Q,ownerState:K},P,{children:[l(V,N({},j,!Ma(V)&&{as:O,ownerState:N({},K,j.ownerState)},z,{children:M})),M.pop()]}))})):l(_i.Provider,{value:$,children:x(V,N({},j,{as:O,ref:Q},!Ma(V)&&{ownerState:N({},K,j.ownerState)},z,{children:[M,k&&l(Oee,{children:k})]}))})}),_a=Fee;function zee(e){return Je("MuiListItemAvatar",e)}tt("MuiListItemAvatar",["root","alignItemsFlexStart"]);const jee=["className"],Uee=e=>{const{alignItems:t,classes:n}=e;return et({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},zee,n)},Wee=C("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>N({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),Hee=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiListItemAvatar"}),{className:o}=r,i=Fe(r,jee),a=m.useContext(_i),s=N({},r,{alignItems:a.alignItems}),c=Uee(s);return l(Wee,N({className:ke(c.root,o),ownerState:s,ref:n},i))}),Gs=Hee;function Vee(e){return Je("MuiListItemIcon",e)}const Gee=tt("MuiListItemIcon",["root","alignItemsFlexStart"]),E_=Gee,qee=["className"],Kee=e=>{const{alignItems:t,classes:n}=e;return et({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Vee,n)},Yee=C("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>N({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Xee=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiListItemIcon"}),{className:o}=r,i=Fe(r,qee),a=m.useContext(_i),s=N({},r,{alignItems:a.alignItems}),c=Kee(s);return l(Yee,N({className:ke(c.root,o),ownerState:s,ref:n},i))}),_u=Xee;function Jee(e){return Je("MuiListItemText",e)}const Qee=tt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Sv=Qee,Zee=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],ete=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return et({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Jee,t)},tte=C("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Sv.primary}`]:t.primary},{[`& .${Sv.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>N({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),nte=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:s=!1,primary:c,primaryTypographyProps:u,secondary:d,secondaryTypographyProps:p}=r,f=Fe(r,Zee),{dense:h}=m.useContext(_i);let g=c??o,v=d;const y=N({},r,{disableTypography:a,inset:s,primary:!!g,secondary:!!v,dense:h}),b=ete(y);return g!=null&&g.type!==se&&!a&&(g=l(se,N({variant:h?"body2":"body1",className:b.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:g}))),v!=null&&v.type!==se&&!a&&(v=l(se,N({variant:"body2",className:b.secondary,color:"text.secondary",display:"block"},p,{children:v}))),x(tte,N({className:ke(b.root,i),ownerState:y,ref:n},f,{children:[g,v]}))}),rn=nte,rte=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function _b(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function T_(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function lN(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function fp(e,t,n,r,o,i){let a=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const c=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!lN(s,i)||c)s=o(e,s,n);else return s.focus(),!0}return!1}const ote=m.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:p="selectedMenu"}=t,f=Fe(t,rte),h=m.useRef(null),g=m.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});jo(()=>{o&&h.current.focus()},[o]),m.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,k)=>{const A=!h.current.style.width;if(S.clientHeight<h.current.clientHeight&&A){const T=`${z$(Zn(S))}px`;h.current.style[k.direction==="rtl"?"paddingLeft":"paddingRight"]=T,h.current.style.width=`calc(100% + ${T})`}return h.current}}),[]);const v=S=>{const k=h.current,A=S.key,T=Zn(k).activeElement;if(A==="ArrowDown")S.preventDefault(),fp(k,T,u,c,_b);else if(A==="ArrowUp")S.preventDefault(),fp(k,T,u,c,T_);else if(A==="Home")S.preventDefault(),fp(k,null,u,c,_b);else if(A==="End")S.preventDefault(),fp(k,null,u,c,T_);else if(A.length===1){const R=g.current,P=A.toLowerCase(),_=performance.now();R.keys.length>0&&(_-R.lastTime>500?(R.keys=[],R.repeating=!0,R.previousKeyMatched=!0):R.repeating&&P!==R.keys[0]&&(R.repeating=!1)),R.lastTime=_,R.keys.push(P);const I=T&&!R.repeating&&lN(T,R);R.previousKeyMatched&&(I||fp(k,T,!1,c,_b,R))?S.preventDefault():R.previousKeyMatched=!1}d&&d(S)},y=In(h,n);let b=-1;m.Children.forEach(a,(S,k)=>{m.isValidElement(S)&&(S.props.disabled||(p==="selectedMenu"&&S.props.selected||b===-1)&&(b=k))});const w=m.Children.map(a,(S,k)=>{if(k===b){const A={};return i&&(A.autoFocus=!0),S.props.tabIndex===void 0&&p==="selectedMenu"&&(A.tabIndex=0),m.cloneElement(S,A)}return S});return l(ia,N({role:"menu",ref:y,className:s,onKeyDown:v,tabIndex:o?0:-1},f,{children:w}))}),W2=ote;function ite(e){return Je("MuiPopover",e)}tt("MuiPopover",["root","paper"]);const ate=["onEntering"],ste=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function k_(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function A_(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function R_(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Pb(e){return typeof e=="function"?e():e}const lte=e=>{const{classes:t}=e;return et({root:["root"],paper:["paper"]},ite,t)},cte=C(Ph,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ute=C(wr,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),dte=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:c="anchorEl",children:u,className:d,container:p,elevation:f=8,marginThreshold:h=16,open:g,PaperProps:v={},transformOrigin:y={vertical:"top",horizontal:"left"},TransitionComponent:b=KS,transitionDuration:w="auto",TransitionProps:{onEntering:S}={}}=r,k=Fe(r.TransitionProps,ate),A=Fe(r,ste),T=m.useRef(),R=In(T,v.ref),P=N({},r,{anchorOrigin:a,anchorReference:c,elevation:f,marginThreshold:h,PaperProps:v,transformOrigin:y,TransitionComponent:b,transitionDuration:w,TransitionProps:k}),_=lte(P),I=m.useCallback(()=>{if(c==="anchorPosition")return s;const z=Pb(i),B=(z&&z.nodeType===1?z:Zn(T.current).body).getBoundingClientRect();return{top:B.top+k_(B,a.vertical),left:B.left+A_(B,a.horizontal)}},[i,a.horizontal,a.vertical,s,c]),$=m.useCallback(z=>({vertical:k_(z,y.vertical),horizontal:A_(z,y.horizontal)}),[y.horizontal,y.vertical]),U=m.useCallback(z=>{const O={width:z.offsetWidth,height:z.offsetHeight},B=$(O);if(c==="none")return{top:null,left:null,transformOrigin:R_(B)};const Z=I();let ae=Z.top-B.vertical,Ae=Z.left-B.horizontal;const fe=ae+O.height,Ie=Ae+O.width,ne=Li(Pb(i)),ie=ne.innerHeight-h,ce=ne.innerWidth-h;if(ae<h){const te=ae-h;ae-=te,B.vertical+=te}else if(fe>ie){const te=fe-ie;ae-=te,B.vertical+=te}if(Ae<h){const te=Ae-h;Ae-=te,B.horizontal+=te}else if(Ie>ce){const te=Ie-ce;Ae-=te,B.horizontal+=te}return{top:`${Math.round(ae)}px`,left:`${Math.round(Ae)}px`,transformOrigin:R_(B)}},[i,c,I,$,h]),[M,D]=m.useState(g),K=m.useCallback(()=>{const z=T.current;if(!z)return;const O=U(z);O.top!==null&&(z.style.top=O.top),O.left!==null&&(z.style.left=O.left),z.style.transformOrigin=O.transformOrigin,D(!0)},[U]),H=(z,O)=>{S&&S(z,O),K()},Q=()=>{D(!1)};m.useEffect(()=>{g&&K()}),m.useImperativeHandle(o,()=>g?{updatePosition:()=>{K()}}:null,[g,K]),m.useEffect(()=>{if(!g)return;const z=pc(()=>{K()}),O=Li(i);return O.addEventListener("resize",z),()=>{z.clear(),O.removeEventListener("resize",z)}},[i,g,K]);let V=w;w==="auto"&&!b.muiSupportAuto&&(V=void 0);const j=p||(i?Zn(Pb(i)).body:void 0);return l(cte,N({BackdropProps:{invisible:!0},className:ke(_.root,d),container:j,open:g,ref:n,ownerState:P},A,{children:l(b,N({appear:!0,in:g,onEntering:H,onExited:Q,timeout:V},k,{children:l(ute,N({elevation:f},v,{ref:R,className:ke(_.paper,v.className)},M?void 0:{style:N({},v.style,{opacity:0})},{ownerState:P,children:u}))}))}))}),H2=dte;function pte(e){return Je("MuiMenu",e)}tt("MuiMenu",["root","paper","list"]);const fte=["onEntering"],hte=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],mte={vertical:"top",horizontal:"right"},gte={vertical:"top",horizontal:"left"},vte=e=>{const{classes:t}=e;return et({root:["root"],paper:["paper"],list:["list"]},pte,t)},yte=C(H2,{shouldForwardProp:e=>Vo(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),bte=C(wr,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),wte=C(W2,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Ste=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,disableAutoFocusItem:a=!1,MenuListProps:s={},onClose:c,open:u,PaperProps:d={},PopoverClasses:p,transitionDuration:f="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu"}=r,v=Fe(r.TransitionProps,fte),y=Fe(r,hte),b=gn(),w=b.direction==="rtl",S=N({},r,{autoFocus:o,disableAutoFocusItem:a,MenuListProps:s,onEntering:h,PaperProps:d,transitionDuration:f,TransitionProps:v,variant:g}),k=vte(S),A=o&&!a&&u,T=m.useRef(null),R=(I,$)=>{T.current&&T.current.adjustStyleForScrollbar(I,b),h&&h(I,$)},P=I=>{I.key==="Tab"&&(I.preventDefault(),c&&c(I,"tabKeyDown"))};let _=-1;return m.Children.map(i,(I,$)=>{m.isValidElement(I)&&(I.props.disabled||(g==="selectedMenu"&&I.props.selected||_===-1)&&(_=$))}),l(yte,N({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?mte:gte,PaperProps:N({component:bte},d,{classes:N({},d.classes,{root:k.paper})}),className:k.root,open:u,ref:n,transitionDuration:f,TransitionProps:N({onEntering:R},v),ownerState:S},y,{classes:p,children:l(wte,N({onKeyDown:P,actions:T,autoFocus:o&&(_===-1||a),autoFocusItem:A,variant:g},s,{className:ke(k.list,s.className),children:i}))}))}),V2=Ste;function xte(e){return Je("MuiMenuItem",e)}const Cte=tt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),hp=Cte,Ete=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Tte=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},kte=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,c=et({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},xte,a);return N({},a,c)},Ate=C(Fi,{shouldForwardProp:e=>Vo(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Tte})(({theme:e,ownerState:t})=>N({},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"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${hp.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${hp.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:yt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${hp.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:yt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${hp.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${hp.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${u_.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${u_.inset}`]:{marginLeft:52},[`& .${Sv.root}`]:{marginTop:0,marginBottom:0},[`& .${Sv.inset}`]:{paddingLeft:36},[`& .${E_.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&N({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${E_.root} svg`]:{fontSize:"1.25rem"}}))),Rte=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:p,className:f}=r,h=Fe(r,Ete),g=m.useContext(_i),v=m.useMemo(()=>({dense:a||g.dense||!1,disableGutters:c}),[g.dense,a,c]),y=m.useRef(null);jo(()=>{o&&y.current&&y.current.focus()},[o]);const b=N({},r,{dense:v.dense,divider:s,disableGutters:c}),w=kte(r),S=In(y,n);let k;return r.disabled||(k=p!==void 0?p:-1),l(_i.Provider,{value:v,children:l(Ate,N({ref:S,role:d,tabIndex:k,component:i,focusVisibleClassName:ke(w.focusVisible,u),className:ke(w.root,f)},h,{ownerState:b,classes:w}))})}),ja=Rte;function _te(e){return Je("MuiNativeSelect",e)}const Pte=tt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),G2=Pte,Ite=["className","disabled","IconComponent","inputRef","variant"],Ote=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i}=e,a={select:["select",n,r&&"disabled",o&&"multiple"],icon:["icon",`icon${de(n)}`,i&&"iconOpen",r&&"disabled"]};return et(a,_te,t)},cN=({ownerState:e,theme:t})=>N({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":N({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${G2.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),$te=C("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Vo,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],{[`&.${G2.multiple}`]:t.multiple}]}})(cN),uN=({ownerState:e,theme:t})=>N({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${G2.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Nte=C("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${de(n.variant)}`],n.open&&t.iconOpen]}})(uN),Lte=m.forwardRef(function(t,n){const{className:r,disabled:o,IconComponent:i,inputRef:a,variant:s="standard"}=t,c=Fe(t,Ite),u=N({},t,{disabled:o,variant:s}),d=Ote(u);return x(m.Fragment,{children:[l($te,N({ownerState:u,className:ke(d.select,r),disabled:o,ref:a||n},c)),t.multiple?null:l(Nte,{as:i,ownerState:u,className:d.icon})]})}),Mte=Lte;var __;const Dte=["children","classes","className","label","notched"],Bte=C("fieldset")({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%"}),Fte=C("legend")(({ownerState:e,theme:t})=>N({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&N({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function zte(e){const{className:t,label:n,notched:r}=e,o=Fe(e,Dte),i=n!=null&&n!=="",a=N({},e,{notched:r,withLabel:i});return l(Bte,N({"aria-hidden":!0,className:t,ownerState:a},o,{children:l(Fte,{ownerState:a,children:i?l("span",{children:n}):__||(__=l("span",{className:"notranslate",children:"​"}))})}))}const jte=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Ute=e=>{const{classes:t}=e,r=et({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},bY,t);return N({},t,r)},Wte=C(s1,{shouldForwardProp:e=>Vo(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:i1})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return N({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ma.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ma.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${ma.focused} .${ma.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ma.error} .${ma.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ma.disabled} .${ma.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&N({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Hte=C(zte,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Vte=C(l1,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:a1})(({theme:e,ownerState:t})=>N({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{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&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),dN=m.forwardRef(function(t,n){var r,o,i,a,s;const c=nt({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:d=!1,inputComponent:p="input",label:f,multiline:h=!1,notched:g,slots:v={},type:y="text"}=c,b=Fe(c,jte),w=Ute(c),S=qa(),k=Tl({props:c,muiFormControl:S,states:["required"]}),A=N({},c,{color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:S,fullWidth:d,hiddenLabel:k.hiddenLabel,multiline:h,size:k.size,type:y}),T=(r=(o=v.root)!=null?o:u.Root)!=null?r:Wte,R=(i=(a=v.input)!=null?a:u.Input)!=null?i:Vte;return l(c1,N({slots:{root:T,input:R},renderSuffix:P=>l(Hte,{ownerState:A,className:w.notchedOutline,label:f!=null&&f!==""&&k.required?s||(s=x(m.Fragment,{children:[f," ","*"]})):f,notched:typeof g<"u"?g:!!(P.startAdornment||P.filled||P.focused)}),fullWidth:d,inputComponent:p,multiline:h,ref:n,type:y},b,{classes:N({},w,{notchedOutline:null})}))});dN.muiName="Input";const pN=dN,Gte=Xe(l("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),qte=Xe(l("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),Kte=C("span")({position:"relative",display:"flex"}),Yte=C(Gte)({transform:"scale(1)"}),Xte=C(qte)(({theme:e,ownerState:t})=>N({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function fN(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=N({},e,{checked:t});return x(Kte,{className:n.root,ownerState:o,children:[l(Yte,{fontSize:r,className:n.background,ownerState:o}),l(Xte,{fontSize:r,className:n.dot,ownerState:o})]})}const Jte=m.createContext(void 0),hN=Jte;function Qte(){return m.useContext(hN)}function Zte(e){return Je("MuiRadio",e)}const ene=tt("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]),P_=ene,tne=["checked","checkedIcon","color","icon","name","onChange","size","className"],nne=e=>{const{classes:t,color:n}=e,r={root:["root",`color${de(n)}`]};return N({},t,et(r,Zte,t))},rne=C(F2,{shouldForwardProp:e=>Vo(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${de(n.color)}`]]}})(({theme:e,ownerState:t})=>N({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${P_.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${P_.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function one(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const I_=l(fN,{checked:!0}),O_=l(fN,{}),ine=m.forwardRef(function(t,n){var r,o;const i=nt({props:t,name:"MuiRadio"}),{checked:a,checkedIcon:s=I_,color:c="primary",icon:u=O_,name:d,onChange:p,size:f="medium",className:h}=i,g=Fe(i,tne),v=N({},i,{color:c,size:f}),y=nne(v),b=Qte();let w=a;const S=fv(p,b&&b.onChange);let k=d;return b&&(typeof w>"u"&&(w=one(b.value,i.value)),typeof k>"u"&&(k=b.name)),l(rne,N({type:"radio",icon:m.cloneElement(u,{fontSize:(r=O_.props.fontSize)!=null?r:f}),checkedIcon:m.cloneElement(s,{fontSize:(o=I_.props.fontSize)!=null?o:f}),ownerState:v,classes:y,name:k,checked:w,onChange:S,ref:n,className:ke(y.root,h)},g))}),nc=ine,ane=["actions","children","defaultValue","name","onChange","value"],sne=m.forwardRef(function(t,n){const{actions:r,children:o,defaultValue:i,name:a,onChange:s,value:c}=t,u=Fe(t,ane),d=m.useRef(null),[p,f]=oa({controlled:c,default:i,name:"RadioGroup"});m.useImperativeHandle(r,()=>({focus:()=>{let y=d.current.querySelector("input:not(:disabled):checked");y||(y=d.current.querySelector("input:not(:disabled)")),y&&y.focus()}}),[]);const h=In(n,d),g=gd(a),v=m.useMemo(()=>({name:g,onChange(y){f(y.target.value),s&&s(y,y.target.value)},value:p}),[g,s,f,p]);return l(hN.Provider,{value:v,children:l(WQ,N({role:"radiogroup",ref:h},u,{children:o}))})}),q2=sne;function lne(e){return Je("MuiSelect",e)}const cne=tt("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),jm=cne;var $_;const une=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],dne=C("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${jm.select}`]:t.select},{[`&.${jm.select}`]:t[n.variant]},{[`&.${jm.multiple}`]:t.multiple}]}})(cN,{[`&.${jm.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),pne=C("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${de(n.variant)}`],n.open&&t.iconOpen]}})(uN),fne=C("input",{shouldForwardProp:e=>C2(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function N_(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function hne(e){return e==null||typeof e=="string"&&!e.trim()}const mne=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i}=e,a={select:["select",n,r&&"disabled",o&&"multiple"],icon:["icon",`icon${de(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return et(a,lne,t)},gne=m.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:c,defaultOpen:u,defaultValue:d,disabled:p,displayEmpty:f,IconComponent:h,inputRef:g,labelId:v,MenuProps:y={},multiple:b,name:w,onBlur:S,onChange:k,onClose:A,onFocus:T,onOpen:R,open:P,readOnly:_,renderValue:I,SelectDisplayProps:$={},tabIndex:U,value:M,variant:D="standard"}=t,K=Fe(t,une),[H,Q]=oa({controlled:M,default:d,name:"Select"}),[V,j]=oa({controlled:P,default:u,name:"Select"}),z=m.useRef(null),O=m.useRef(null),[B,Z]=m.useState(null),{current:ae}=m.useRef(P!=null),[Ae,fe]=m.useState(),Ie=In(n,g),ne=m.useCallback(X=>{O.current=X,X&&Z(X)},[]),ie=B==null?void 0:B.parentNode;m.useImperativeHandle(Ie,()=>({focus:()=>{O.current.focus()},node:z.current,value:H}),[H]),m.useEffect(()=>{u&&V&&B&&!ae&&(fe(a?null:ie.clientWidth),O.current.focus())},[B,a]),m.useEffect(()=>{i&&O.current.focus()},[i]),m.useEffect(()=>{if(!v)return;const X=Zn(O.current).getElementById(v);if(X){const Se=()=>{getSelection().isCollapsed&&O.current.focus()};return X.addEventListener("click",Se),()=>{X.removeEventListener("click",Se)}}},[v]);const ce=(X,Se)=>{X?R&&R(Se):A&&A(Se),ae||(fe(a?null:ie.clientWidth),j(X))},te=X=>{X.button===0&&(X.preventDefault(),O.current.focus(),ce(!0,X))},Ne=X=>{ce(!1,X)},ye=m.Children.toArray(s),Ce=X=>{const Se=ye.map(Me=>Me.props.value).indexOf(X.target.value);if(Se===-1)return;const Re=ye[Se];Q(Re.props.value),k&&k(X,Re)},me=X=>Se=>{let Re;if(Se.currentTarget.hasAttribute("tabindex")){if(b){Re=Array.isArray(H)?H.slice():[];const Me=H.indexOf(X.props.value);Me===-1?Re.push(X.props.value):Re.splice(Me,1)}else Re=X.props.value;if(X.props.onClick&&X.props.onClick(Se),H!==Re&&(Q(Re),k)){const Me=Se.nativeEvent||Se,bt=new Me.constructor(Me.type,Me);Object.defineProperty(bt,"target",{writable:!0,value:{value:Re,name:w}}),k(bt,X)}b||ce(!1,Se)}},at=X=>{_||[" ","ArrowUp","ArrowDown","Enter"].indexOf(X.key)!==-1&&(X.preventDefault(),ce(!0,X))},Oe=B!==null&&V,Ge=X=>{!Oe&&S&&(Object.defineProperty(X,"target",{writable:!0,value:{value:H,name:w}}),S(X))};delete K["aria-invalid"];let dt,ot;const st=[];let Lt=!1;(M2({value:H})||f)&&(I?dt=I(H):Lt=!0);const Ct=ye.map((X,Se,Re)=>{var Me,bt,_t,zt;if(!m.isValidElement(X))return null;let dn;if(b){if(!Array.isArray(H))throw new Error(dl(2));dn=H.some(Gt=>N_(Gt,X.props.value)),dn&&Lt&&st.push(X.props.children)}else dn=N_(H,X.props.value),dn&&Lt&&(ot=X.props.children);if(X.props.value===void 0)return m.cloneElement(X,{"aria-readonly":!0,role:"option"});const jt=()=>{if(H)return dn;const Gt=Re.find(nn=>{var Hn;return(nn==null||(Hn=nn.props)==null?void 0:Hn.value)!==void 0&&nn.props.disabled!==!0});return X===Gt?!0:dn};return m.cloneElement(X,{"aria-selected":dn?"true":"false",onClick:me(X),onKeyUp:Gt=>{Gt.key===" "&&Gt.preventDefault(),X.props.onKeyUp&&X.props.onKeyUp(Gt)},role:"option",selected:((Me=Re[0])==null||(bt=Me.props)==null?void 0:bt.value)===void 0||((_t=Re[0])==null||(zt=_t.props)==null?void 0:zt.disabled)===!0?jt():dn,value:void 0,"data-value":X.props.value})});Lt&&(b?st.length===0?dt=null:dt=st.reduce((X,Se,Re)=>(X.push(Se),Re<st.length-1&&X.push(", "),X),[]):dt=ot);let we=Ae;!a&&ae&&B&&(we=ie.clientWidth);let $e;typeof U<"u"?$e=U:$e=p?null:0;const Qe=$.id||(w?`mui-component-select-${w}`:void 0),oe=N({},t,{variant:D,value:H,open:Oe}),ee=mne(oe);return x(m.Fragment,{children:[l(dne,N({ref:ne,tabIndex:$e,role:"button","aria-disabled":p?"true":void 0,"aria-expanded":Oe?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[v,Qe].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:at,onMouseDown:p||_?null:te,onBlur:Ge,onFocus:T},$,{ownerState:oe,className:ke($.className,ee.select,c),id:Qe,children:hne(dt)?$_||($_=l("span",{className:"notranslate",children:"​"})):dt})),l(fne,N({value:Array.isArray(H)?H.join(","):H,name:w,ref:z,"aria-hidden":!0,onChange:Ce,tabIndex:-1,disabled:p,className:ee.nativeInput,autoFocus:i,ownerState:oe},K)),l(pne,{as:h,className:ee.icon,ownerState:oe}),l(V2,N({id:`menu-${w||""}`,anchorEl:ie,open:Oe,onClose:Ne,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},y,{MenuListProps:N({"aria-labelledby":v,role:"listbox",disableListWrap:!0},y.MenuListProps),PaperProps:N({},y.PaperProps,{style:N({minWidth:we},y.PaperProps!=null?y.PaperProps.style:null)}),children:Ct}))]})}),vne=gne;var L_,M_;const yne=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],bne=e=>{const{classes:t}=e;return t},K2={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Vo(e)&&e!=="variant",slot:"Root"},wne=C(rN,K2)(""),Sne=C(pN,K2)(""),xne=C(J6,K2)(""),mN=m.forwardRef(function(t,n){const r=nt({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=H6,id:p,input:f,inputProps:h,label:g,labelId:v,MenuProps:y,multiple:b=!1,native:w=!1,onClose:S,onOpen:k,open:A,renderValue:T,SelectDisplayProps:R,variant:P="outlined"}=r,_=Fe(r,yne),I=w?Mte:vne,$=qa(),M=Tl({props:r,muiFormControl:$,states:["variant"]}).variant||P,D=f||{standard:L_||(L_=l(wne,{})),outlined:l(Sne,{label:g}),filled:M_||(M_=l(xne,{}))}[M],K=N({},r,{variant:M,classes:a}),H=bne(K),Q=In(n,D.ref);return l(m.Fragment,{children:m.cloneElement(D,N({inputComponent:I,inputProps:N({children:i,IconComponent:d,variant:M,type:void 0,multiple:b},w?{id:p}:{autoWidth:o,defaultOpen:c,displayEmpty:u,labelId:v,MenuProps:y,onClose:S,onOpen:k,open:A,renderValue:T,SelectDisplayProps:N({id:p},R)},h,{classes:h?oi(H,h.classes):H},f?f.props.inputProps:{})},b&&w&&M==="outlined"?{notched:!0}:{},{ref:Q,className:ke(D.props.className,s)},!f&&{variant:M},_))})});mN.muiName="Select";const Oh=mN,Cne=e=>!e||!Ma(e),Ene=Cne;function Tne(e){return Je("MuiSlider",e)}const kne=tt("MuiSlider",["root","active","colorPrimary","colorSecondary","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),ra=kne,Ane=e=>{const{open:t}=e;return{offset:ke(t&&ra.valueLabelOpen),circle:ra.valueLabelCircle,label:ra.valueLabelLabel}};function Rne(e){const{children:t,className:n,value:r}=e,o=Ane(e);return t?m.cloneElement(t,{className:ke(t.props.className)},x(m.Fragment,{children:[t.props.children,l("span",{className:ke(o.offset,n),"aria-hidden":!0,children:l("span",{className:o.circle,children:l("span",{className:o.label,children:r})})})]})):null}const _ne=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"],D_=(e,t,n)=>(e-t)*100/(n-t);function B_(e){return e}const Pne=C("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${de(n.color)}`],n.size!=="medium"&&t[`size${de(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>N({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&N({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&N({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${ra.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${ra.dragging}`]:{[`& .${ra.thumb}, & .${ra.track}`]:{transition:"none"}}})),Ine=C("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>N({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),One=C("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?fl(e.palette[t.color].main,.62):pl(e.palette[t.color].main,.5);return N({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),$ne=C("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${de(n.color)}`],n.size!=="medium"&&t[`thumbSize${de(n.size)}`]]}})(({theme:e,ownerState:t})=>N({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":N({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${ra.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:yt(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${ra.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:yt(e.palette[t.color].main,.16)}`},[`&.${ra.disabled}`]:{"&:hover":{boxShadow:"none"}}})),Nne=C(Rne,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>N({[`&.${ra.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:"translateY(-100%) scale(0)",position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:"30px",top:"24px",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",right:"-20%",top:"25%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),Lne=C("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>C2(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>N({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),Mne=C("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>C2(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>N({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),Dne=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:a,color:s,size:c}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",s&&`color${de(s)}`,c&&`size${de(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${de(c)}`,s&&`thumbColor${de(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return et(u,Tne,a)},Bne=({children:e})=>e,Fne=m.forwardRef(function(t,n){var r,o,i,a,s,c,u,d,p,f,h,g,v,y,b,w,S,k,A,T,R,P,_,I;const $=nt({props:t,name:"MuiSlider"}),M=gn().direction==="rtl",{"aria-label":D,"aria-valuetext":K,"aria-labelledby":H,component:Q="span",components:V={},componentsProps:j={},color:z="primary",classes:O,className:B,disableSwap:Z=!1,disabled:ae=!1,getAriaLabel:Ae,getAriaValueText:fe,marks:Ie=!1,max:ne=100,min:ie=0,orientation:ce="horizontal",size:te="medium",step:Ne=1,scale:ye=B_,slotProps:Ce,slots:me,track:at="normal",valueLabelDisplay:Oe="off",valueLabelFormat:Ge=B_}=$,dt=Fe($,_ne),ot=N({},$,{isRtl:M,max:ne,min:ie,classes:O,disabled:ae,disableSwap:Z,orientation:ce,marks:Ie,color:z,size:te,step:Ne,scale:ye,track:at,valueLabelDisplay:Oe,valueLabelFormat:Ge}),{axisProps:st,getRootProps:Lt,getHiddenInputProps:Ct,getThumbProps:we,open:$e,active:Qe,axis:oe,focusedThumbIndex:ee,range:X,dragging:Se,marks:Re,values:Me,trackOffset:bt,trackLeap:_t}=YG(N({},ot,{ref:n}));ot.marked=Re.length>0&&Re.some(ge=>ge.label),ot.dragging=Se,ot.focusedThumbIndex=ee;const zt=Dne(ot),dn=(r=(o=me==null?void 0:me.root)!=null?o:V.Root)!=null?r:Pne,jt=(i=(a=me==null?void 0:me.rail)!=null?a:V.Rail)!=null?i:Ine,Gt=(s=(c=me==null?void 0:me.track)!=null?c:V.Track)!=null?s:One,nn=(u=(d=me==null?void 0:me.thumb)!=null?d:V.Thumb)!=null?u:$ne,Hn=(p=(f=me==null?void 0:me.valueLabel)!=null?f:V.ValueLabel)!=null?p:Nne,pn=(h=(g=me==null?void 0:me.mark)!=null?g:V.Mark)!=null?h:Lne,qt=(v=(y=me==null?void 0:me.markLabel)!=null?y:V.MarkLabel)!=null?v:Mne,sr=(b=(w=me==null?void 0:me.input)!=null?w:V.Input)!=null?b:"input",Br=(S=Ce==null?void 0:Ce.root)!=null?S:j.root,_o=(k=Ce==null?void 0:Ce.rail)!=null?k:j.rail,Go=(A=Ce==null?void 0:Ce.track)!=null?A:j.track,qo=(T=Ce==null?void 0:Ce.thumb)!=null?T:j.thumb,Jr=(R=Ce==null?void 0:Ce.valueLabel)!=null?R:j.valueLabel,Po=(P=Ce==null?void 0:Ce.mark)!=null?P:j.mark,vr=(_=Ce==null?void 0:Ce.markLabel)!=null?_:j.markLabel,Io=(I=Ce==null?void 0:Ce.input)!=null?I:j.input,Fr=Zi({elementType:dn,getSlotProps:Lt,externalSlotProps:Br,externalForwardedProps:dt,additionalProps:N({},Ene(dn)&&{as:Q}),ownerState:N({},ot,Br==null?void 0:Br.ownerState),className:[zt.root,B]}),Vt=Zi({elementType:jt,externalSlotProps:_o,ownerState:ot,className:zt.rail}),an=Zi({elementType:Gt,externalSlotProps:Go,additionalProps:{style:N({},st[oe].offset(bt),st[oe].leap(_t))},ownerState:N({},ot,Go==null?void 0:Go.ownerState),className:zt.track}),tr=Zi({elementType:nn,getSlotProps:we,externalSlotProps:qo,ownerState:N({},ot,qo==null?void 0:qo.ownerState)}),$r=Zi({elementType:Hn,externalSlotProps:Jr,ownerState:N({},ot,Jr==null?void 0:Jr.ownerState),className:zt.valueLabel}),bo=Zi({elementType:pn,externalSlotProps:Po,ownerState:ot,className:zt.mark}),wo=Zi({elementType:qt,externalSlotProps:vr,ownerState:ot}),Yi=Zi({elementType:sr,getSlotProps:Ct,externalSlotProps:Io,ownerState:ot});return x(dn,N({},Fr,{children:[l(jt,N({},Vt)),l(Gt,N({},an)),Re.filter(ge=>ge.value>=ie&&ge.value<=ne).map((ge,ue)=>{const qe=D_(ge.value,ie,ne),pt=st[oe].offset(qe);let Mt;return at===!1?Mt=Me.indexOf(ge.value)!==-1:Mt=at==="normal"&&(X?ge.value>=Me[0]&&ge.value<=Me[Me.length-1]:ge.value<=Me[0])||at==="inverted"&&(X?ge.value<=Me[0]||ge.value>=Me[Me.length-1]:ge.value>=Me[0]),x(m.Fragment,{children:[l(pn,N({"data-index":ue},bo,!Ma(pn)&&{markActive:Mt},{style:N({},pt,bo.style),className:ke(bo.className,Mt&&zt.markActive)})),ge.label!=null?l(qt,N({"aria-hidden":!0,"data-index":ue},wo,!Ma(qt)&&{markLabelActive:Mt},{style:N({},pt,wo.style),className:ke(zt.markLabel,wo.className,Mt&&zt.markLabelActive),children:ge.label})):null]},ue)}),Me.map((ge,ue)=>{const qe=D_(ge,ie,ne),pt=st[oe].offset(qe),Mt=Oe==="off"?Bne:Hn;return l(m.Fragment,{children:l(Mt,N({},!Ma(Mt)&&{valueLabelFormat:Ge,valueLabelDisplay:Oe,value:typeof Ge=="function"?Ge(ye(ge),ue):Ge,index:ue,open:$e===ue||Qe===ue||Oe==="on",disabled:ae},$r,{children:l(nn,N({"data-index":ue,"data-focusvisible":ee===ue},tr,{className:ke(zt.thumb,tr.className,Qe===ue&&zt.active,ee===ue&&zt.focusVisible),style:N({},pt,{pointerEvents:Z&&Qe!==ue?"none":void 0},tr.style),children:l(sr,N({"data-index":ue,"aria-label":Ae?Ae(ue):D,"aria-valuenow":ye(ge),"aria-labelledby":H,"aria-valuetext":fe?fe(ye(ge),ue):K,value:Me[ue]},Yi))}))}))},ue)})]}))}),zne=Fne;function jne(e){return Je("MuiTooltip",e)}const Une=tt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Pa=Une,Wne=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function Hne(e){return Math.round(e*1e5)/1e5}const Vne=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${de(i.split("-")[0])}`],arrow:["arrow"]};return et(a,jne,t)},Gne=C(r1,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>N({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Pa.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Pa.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Pa.arrow}`]:N({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Pa.arrow}`]:N({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),qne=C("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${de(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>N({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:yt(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},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Hne(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Pa.popper}[data-popper-placement*="left"] &`]:N({transformOrigin:"right center"},t.isRtl?N({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):N({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Pa.popper}[data-popper-placement*="right"] &`]:N({transformOrigin:"left center"},t.isRtl?N({marginRight:"14px"},t.touch&&{marginRight:"24px"}):N({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Pa.popper}[data-popper-placement*="top"] &`]:N({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Pa.popper}[data-popper-placement*="bottom"] &`]:N({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Kne=C("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:yt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Um=!1,Ib=null,mp={x:0,y:0};function Wm(e,t){return n=>{t&&t(n),e(n)}}const Yne=m.forwardRef(function(t,n){var r,o,i,a,s,c,u,d,p,f,h,g,v,y,b,w,S,k,A;const T=nt({props:t,name:"MuiTooltip"}),{arrow:R=!1,children:P,components:_={},componentsProps:I={},describeChild:$=!1,disableFocusListener:U=!1,disableHoverListener:M=!1,disableInteractive:D=!1,disableTouchListener:K=!1,enterDelay:H=100,enterNextDelay:Q=0,enterTouchDelay:V=700,followCursor:j=!1,id:z,leaveDelay:O=0,leaveTouchDelay:B=1500,onClose:Z,onOpen:ae,open:Ae,placement:fe="bottom",PopperComponent:Ie,PopperProps:ne={},slotProps:ie={},slots:ce={},title:te,TransitionComponent:Ne=KS,TransitionProps:ye}=T,Ce=Fe(T,Wne),me=gn(),at=me.direction==="rtl",[Oe,Ge]=m.useState(),[dt,ot]=m.useState(null),st=m.useRef(!1),Lt=D||j,Ct=m.useRef(),we=m.useRef(),$e=m.useRef(),Qe=m.useRef(),[oe,ee]=oa({controlled:Ae,default:!1,name:"Tooltip",state:"open"});let X=oe;const Se=gd(z),Re=m.useRef(),Me=m.useCallback(()=>{Re.current!==void 0&&(document.body.style.WebkitUserSelect=Re.current,Re.current=void 0),clearTimeout(Qe.current)},[]);m.useEffect(()=>()=>{clearTimeout(Ct.current),clearTimeout(we.current),clearTimeout($e.current),Me()},[Me]);const bt=Et=>{clearTimeout(Ib),Um=!0,ee(!0),ae&&!X&&ae(Et)},_t=Lr(Et=>{clearTimeout(Ib),Ib=setTimeout(()=>{Um=!1},800+O),ee(!1),Z&&X&&Z(Et),clearTimeout(Ct.current),Ct.current=setTimeout(()=>{st.current=!1},me.transitions.duration.shortest)}),zt=Et=>{st.current&&Et.type!=="touchstart"||(Oe&&Oe.removeAttribute("title"),clearTimeout(we.current),clearTimeout($e.current),H||Um&&Q?we.current=setTimeout(()=>{bt(Et)},Um?Q:H):bt(Et))},dn=Et=>{clearTimeout(we.current),clearTimeout($e.current),$e.current=setTimeout(()=>{_t(Et)},O)},{isFocusVisibleRef:jt,onBlur:Gt,onFocus:nn,ref:Hn}=Sh(),[,pn]=m.useState(!1),qt=Et=>{Gt(Et),jt.current===!1&&(pn(!1),dn(Et))},sr=Et=>{Oe||Ge(Et.currentTarget),nn(Et),jt.current===!0&&(pn(!0),zt(Et))},Br=Et=>{st.current=!0;const jn=P.props;jn.onTouchStart&&jn.onTouchStart(Et)},_o=zt,Go=dn,qo=Et=>{Br(Et),clearTimeout($e.current),clearTimeout(Ct.current),Me(),Re.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Qe.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Re.current,zt(Et)},V)},Jr=Et=>{P.props.onTouchEnd&&P.props.onTouchEnd(Et),Me(),clearTimeout($e.current),$e.current=setTimeout(()=>{_t(Et)},B)};m.useEffect(()=>{if(!X)return;function Et(jn){(jn.key==="Escape"||jn.key==="Esc")&&_t(jn)}return document.addEventListener("keydown",Et),()=>{document.removeEventListener("keydown",Et)}},[_t,X]);const Po=In(P.ref,Hn,Ge,n);!te&&te!==0&&(X=!1);const vr=m.useRef(),Io=Et=>{const jn=P.props;jn.onMouseMove&&jn.onMouseMove(Et),mp={x:Et.clientX,y:Et.clientY},vr.current&&vr.current.update()},Fr={},Vt=typeof te=="string";$?(Fr.title=!X&&Vt&&!M?te:null,Fr["aria-describedby"]=X?Se:null):(Fr["aria-label"]=Vt?te:null,Fr["aria-labelledby"]=X&&!Vt?Se:null);const an=N({},Fr,Ce,P.props,{className:ke(Ce.className,P.props.className),onTouchStart:Br,ref:Po},j?{onMouseMove:Io}:{}),tr={};K||(an.onTouchStart=qo,an.onTouchEnd=Jr),M||(an.onMouseOver=Wm(_o,an.onMouseOver),an.onMouseLeave=Wm(Go,an.onMouseLeave),Lt||(tr.onMouseOver=_o,tr.onMouseLeave=Go)),U||(an.onFocus=Wm(sr,an.onFocus),an.onBlur=Wm(qt,an.onBlur),Lt||(tr.onFocus=sr,tr.onBlur=qt));const $r=m.useMemo(()=>{var Et;let jn=[{name:"arrow",enabled:!!dt,options:{element:dt,padding:4}}];return(Et=ne.popperOptions)!=null&&Et.modifiers&&(jn=jn.concat(ne.popperOptions.modifiers)),N({},ne.popperOptions,{modifiers:jn})},[dt,ne]),bo=N({},T,{isRtl:at,arrow:R,disableInteractive:Lt,placement:fe,PopperComponentProp:Ie,touch:st.current}),wo=Vne(bo),Yi=(r=(o=ce.popper)!=null?o:_.Popper)!=null?r:Gne,ge=(i=(a=(s=ce.transition)!=null?s:_.Transition)!=null?a:Ne)!=null?i:KS,ue=(c=(u=ce.tooltip)!=null?u:_.Tooltip)!=null?c:qne,qe=(d=(p=ce.arrow)!=null?p:_.Arrow)!=null?d:Kne,pt=zp(Yi,N({},ne,(f=ie.popper)!=null?f:I.popper,{className:ke(wo.popper,ne==null?void 0:ne.className,(h=(g=ie.popper)!=null?g:I.popper)==null?void 0:h.className)}),bo),Mt=zp(ge,N({},ye,(v=ie.transition)!=null?v:I.transition),bo),Bn=zp(ue,N({},(y=ie.tooltip)!=null?y:I.tooltip,{className:ke(wo.tooltip,(b=(w=ie.tooltip)!=null?w:I.tooltip)==null?void 0:b.className)}),bo),zn=zp(qe,N({},(S=ie.arrow)!=null?S:I.arrow,{className:ke(wo.arrow,(k=(A=ie.arrow)!=null?A:I.arrow)==null?void 0:k.className)}),bo);return x(m.Fragment,{children:[m.cloneElement(P,an),l(Yi,N({as:Ie??r1,placement:fe,anchorEl:j?{getBoundingClientRect:()=>({top:mp.y,left:mp.x,right:mp.x,bottom:mp.y,width:0,height:0})}:Oe,popperRef:vr,open:Oe?X:!1,id:Se,transition:!0},tr,pt,{popperOptions:$r,children:({TransitionProps:Et})=>l(ge,N({timeout:me.transitions.duration.shorter},Et,Mt,{children:x(ue,N({},Bn,{children:[te,R?l(qe,N({},zn,{ref:ot})):null]}))}))}))]})}),xt=Yne;function Xne(e){return Je("MuiSwitch",e)}const Jne=tt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Co=Jne,Qne=["className","color","edge","size","sx"],Zne=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:a}=e,s={root:["root",n&&`edge${de(n)}`,`size${de(r)}`],switchBase:["switchBase",`color${de(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=et(s,Xne,t);return N({},t,c)},ere=C("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${de(n.edge)}`],t[`size${de(n.size)}`]]}})(({ownerState:e})=>N({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${Co.thumb}`]:{width:16,height:16},[`& .${Co.switchBase}`]:{padding:4,[`&.${Co.checked}`]:{transform:"translateX(16px)"}}})),tre=C(F2,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Co.input}`]:t.input},n.color!=="default"&&t[`color${de(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Co.checked}`]:{transform:"translateX(20px)"},[`&.${Co.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Co.checked} + .${Co.track}`]:{opacity:.5},[`&.${Co.disabled} + .${Co.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Co.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>N({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:yt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Co.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Co.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?fl(e.palette[t.color].main,.62):pl(e.palette[t.color].main,.55)}`}},[`&.${Co.checked} + .${Co.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),nre=C("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),rre=C("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),ore=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:a=!1,size:s="medium",sx:c}=r,u=Fe(r,Qne),d=N({},r,{color:i,edge:a,size:s}),p=Zne(d),f=l(rre,{className:p.thumb,ownerState:d});return x(ere,{className:ke(p.root,o),sx:c,ownerState:d,children:[l(tre,N({type:"checkbox",icon:f,checkedIcon:f,ref:n,ownerState:d},u,{classes:N({},p,{root:p.switchBase})})),l(nre,{className:p.track,ownerState:d})]})}),Ya=ore;function ire(e){return Je("MuiTab",e)}const are=tt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Ml=are,sre=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],lre=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:s,disabled:c}=e,u={root:["root",i&&a&&"labelIcon",`textColor${de(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return et(u,ire,t)},cre=C(Fi,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${de(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>N({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Ml.iconWrapper}`]:N({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Ml.selected}`]:{opacity:1},[`&.${Ml.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Ml.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Ml.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Ml.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Ml.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),ure=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:s,icon:c,iconPosition:u="top",indicator:d,label:p,onChange:f,onClick:h,onFocus:g,selected:v,selectionFollowsFocus:y,textColor:b="inherit",value:w,wrapped:S=!1}=r,k=Fe(r,sre),A=N({},r,{disabled:i,disableFocusRipple:a,selected:v,icon:!!c,iconPosition:u,label:!!p,fullWidth:s,textColor:b,wrapped:S}),T=lre(A),R=c&&p&&m.isValidElement(c)?m.cloneElement(c,{className:ke(T.iconWrapper,c.props.className)}):c,P=I=>{!v&&f&&f(I,w),h&&h(I)},_=I=>{y&&!v&&f&&f(I,w),g&&g(I)};return x(cre,N({focusRipple:!a,className:ke(T.root,o),ref:n,role:"tab","aria-selected":v,disabled:i,onClick:P,onFocus:_,ownerState:A,tabIndex:v?0:-1},k,{children:[u==="top"||u==="start"?x(m.Fragment,{children:[R,p]}):x(m.Fragment,{children:[p,R]}),d]}))}),dre=ure,pre=m.createContext(),gN=pre;function fre(e){return Je("MuiTable",e)}tt("MuiTable",["root","stickyHeader"]);const hre=["className","component","padding","size","stickyHeader"],mre=e=>{const{classes:t,stickyHeader:n}=e;return et({root:["root",n&&"stickyHeader"]},fre,t)},gre=C("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>N({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":N({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),F_="table",vre=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTable"}),{className:o,component:i=F_,padding:a="normal",size:s="medium",stickyHeader:c=!1}=r,u=Fe(r,hre),d=N({},r,{component:i,padding:a,size:s,stickyHeader:c}),p=mre(d),f=m.useMemo(()=>({padding:a,size:s,stickyHeader:c}),[a,s,c]);return l(gN.Provider,{value:f,children:l(gre,N({as:i,role:i===F_?null:"table",ref:n,className:ke(p.root,o),ownerState:d},u))})}),yre=vre,bre=m.createContext(),d1=bre;function wre(e){return Je("MuiTableBody",e)}tt("MuiTableBody",["root"]);const Sre=["className","component"],xre=e=>{const{classes:t}=e;return et({root:["root"]},wre,t)},Cre=C("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Ere={variant:"body"},z_="tbody",Tre=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTableBody"}),{className:o,component:i=z_}=r,a=Fe(r,Sre),s=N({},r,{component:i}),c=xre(s);return l(d1.Provider,{value:Ere,children:l(Cre,N({className:ke(c.root,o),as:i,ref:n,role:i===z_?null:"rowgroup",ownerState:s},a))})}),aa=Tre;function kre(e){return Je("MuiTableCell",e)}const Are=tt("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Rre=Are,_re=["align","className","component","padding","scope","size","sortDirection","variant"],Pre=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,s={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${de(r)}`,o!=="normal"&&`padding${de(o)}`,`size${de(i)}`]};return et(s,kre,t)},Ire=C("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${de(n.size)}`],n.padding!=="normal"&&t[`padding${de(n.padding)}`],n.align!=="inherit"&&t[`align${de(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>N({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
245
- ${e.palette.mode==="light"?fl(yt(e.palette.divider,1),.88):pl(yt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${Rre.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Ore=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:s,scope:c,size:u,sortDirection:d,variant:p}=r,f=Fe(r,_re),h=m.useContext(gN),g=m.useContext(d1),v=g&&g.variant==="head";let y;a?y=a:y=v?"th":"td";let b=c;y==="td"?b=void 0:!b&&v&&(b="col");const w=p||g&&g.variant,S=N({},r,{align:o,component:y,padding:s||(h&&h.padding?h.padding:"normal"),size:u||(h&&h.size?h.size:"medium"),sortDirection:d,stickyHeader:w==="head"&&h&&h.stickyHeader,variant:w}),k=Pre(S);let A=null;return d&&(A=d==="asc"?"ascending":"descending"),l(Ire,N({as:y,ref:n,className:ke(k.root,i),"aria-sort":A,scope:b,ownerState:S},f))}),vN=Ore;function $re(e){return Je("MuiTableHead",e)}tt("MuiTableHead",["root"]);const Nre=["className","component"],Lre=e=>{const{classes:t}=e;return et({root:["root"]},$re,t)},Mre=C("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Dre={variant:"head"},j_="thead",Bre=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTableHead"}),{className:o,component:i=j_}=r,a=Fe(r,Nre),s=N({},r,{component:i}),c=Lre(s);return l(d1.Provider,{value:Dre,children:l(Mre,N({as:i,className:ke(c.root,o),ref:n,role:i===j_?null:"rowgroup",ownerState:s},a))})}),Fre=Bre,zre=Xe(l("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),jre=Xe(l("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Ure(e){return Je("MuiTableRow",e)}const Wre=tt("MuiTableRow",["root","selected","hover","head","footer"]),U_=Wre,Hre=["className","component","hover","selected"],Vre=e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return et({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},Ure,t)},Gre=C("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${U_.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${U_.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:yt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),W_="tr",qre=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTableRow"}),{className:o,component:i=W_,hover:a=!1,selected:s=!1}=r,c=Fe(r,Hre),u=m.useContext(d1),d=N({},r,{component:i,hover:a,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),p=Vre(d);return l(Gre,N({as:i,ref:n,className:ke(p.root,o),role:i===W_?null:"row",ownerState:d},c))}),zi=qre;function Kre(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Yre(e,t,n,r={},o=()=>{}){const{ease:i=Kre,duration:a=300}=r;let s=null;const c=t[e];let u=!1;const d=()=>{u=!0},p=f=>{if(u){o(new Error("Animation cancelled"));return}s===null&&(s=f);const h=Math.min(1,(f-s)/a);if(t[e]=i(h)*(n-c)+c,h>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(p)};return c===n?(o(new Error("Element already at target position")),d):(requestAnimationFrame(p),d)}const Xre=["onChange"],Jre={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Qre(e){const{onChange:t}=e,n=Fe(e,Xre),r=m.useRef(),o=m.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return m.useEffect(()=>{const a=pc(()=>{const c=r.current;i(),c!==r.current&&t(r.current)}),s=Li(o.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),m.useEffect(()=>{i(),t(r.current)},[t]),l("div",N({style:Jre,ref:o},n))}function Zre(e){return Je("MuiTabScrollButton",e)}const eoe=tt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),toe=eoe;var H_,V_;const noe=["className","direction","orientation","disabled"],roe=e=>{const{classes:t,orientation:n,disabled:r}=e;return et({root:["root",n,r&&"disabled"]},Zre,t)},ooe=C(Fi,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>N({width:40,flexShrink:0,opacity:.8,[`&.${toe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),ioe=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTabScrollButton"}),{className:o,direction:i}=r,a=Fe(r,noe),c=gn().direction==="rtl",u=N({isRtl:c},r),d=roe(u);return l(ooe,N({component:"div",className:ke(d.root,o),ref:n,role:null,ownerState:u,tabIndex:null},a,{children:i==="left"?H_||(H_=l(zre,{fontSize:"small"})):V_||(V_=l(jre,{fontSize:"small"}))}))}),aoe=ioe;function soe(e){return Je("MuiTabs",e)}const loe=tt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Ob=loe,coe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],G_=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,q_=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Hm=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},uoe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:c}=e;return et({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},soe,c)},doe=C("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ob.scrollButtons}`]:t.scrollButtons},{[`& .${Ob.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>N({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Ob.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),poe=C("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>N({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),foe=C("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>N({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),hoe=C("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>N({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),moe=C(Qre,{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),K_={},goe=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTabs"}),o=gn(),i=o.direction==="rtl",{"aria-label":a,"aria-labelledby":s,action:c,centered:u=!1,children:d,className:p,component:f="div",allowScrollButtonsMobile:h=!1,indicatorColor:g="primary",onChange:v,orientation:y="horizontal",ScrollButtonComponent:b=aoe,scrollButtons:w="auto",selectionFollowsFocus:S,TabIndicatorProps:k={},TabScrollButtonProps:A={},textColor:T="primary",value:R,variant:P="standard",visibleScrollbar:_=!1}=r,I=Fe(r,coe),$=P==="scrollable",U=y==="vertical",M=U?"scrollTop":"scrollLeft",D=U?"top":"left",K=U?"bottom":"right",H=U?"clientHeight":"clientWidth",Q=U?"height":"width",V=N({},r,{component:f,allowScrollButtonsMobile:h,indicatorColor:g,orientation:y,vertical:U,scrollButtons:w,textColor:T,variant:P,visibleScrollbar:_,fixed:!$,hideScrollbar:$&&!_,scrollableX:$&&!U,scrollableY:$&&U,centered:u&&!$,scrollButtonsHideMobile:!h}),j=uoe(V),[z,O]=m.useState(!1),[B,Z]=m.useState(K_),[ae,Ae]=m.useState({start:!1,end:!1}),[fe,Ie]=m.useState({overflow:"hidden",scrollbarWidth:0}),ne=new Map,ie=m.useRef(null),ce=m.useRef(null),te=()=>{const ee=ie.current;let X;if(ee){const Re=ee.getBoundingClientRect();X={clientWidth:ee.clientWidth,scrollLeft:ee.scrollLeft,scrollTop:ee.scrollTop,scrollLeftNormalized:oR(ee,o.direction),scrollWidth:ee.scrollWidth,top:Re.top,bottom:Re.bottom,left:Re.left,right:Re.right}}let Se;if(ee&&R!==!1){const Re=ce.current.children;if(Re.length>0){const Me=Re[ne.get(R)];Se=Me?Me.getBoundingClientRect():null}}return{tabsMeta:X,tabMeta:Se}},Ne=Lr(()=>{const{tabsMeta:ee,tabMeta:X}=te();let Se=0,Re;if(U)Re="top",X&&ee&&(Se=X.top-ee.top+ee.scrollTop);else if(Re=i?"right":"left",X&&ee){const bt=i?ee.scrollLeftNormalized+ee.clientWidth-ee.scrollWidth:ee.scrollLeft;Se=(i?-1:1)*(X[Re]-ee[Re]+bt)}const Me={[Re]:Se,[Q]:X?X[Q]:0};if(isNaN(B[Re])||isNaN(B[Q]))Z(Me);else{const bt=Math.abs(B[Re]-Me[Re]),_t=Math.abs(B[Q]-Me[Q]);(bt>=1||_t>=1)&&Z(Me)}}),ye=(ee,{animation:X=!0}={})=>{X?Yre(M,ie.current,ee,{duration:o.transitions.duration.standard}):ie.current[M]=ee},Ce=ee=>{let X=ie.current[M];U?X+=ee:(X+=ee*(i?-1:1),X*=i&&j$()==="reverse"?-1:1),ye(X)},me=()=>{const ee=ie.current[H];let X=0;const Se=Array.from(ce.current.children);for(let Re=0;Re<Se.length;Re+=1){const Me=Se[Re];if(X+Me[H]>ee){Re===0&&(X=ee);break}X+=Me[H]}return X},at=()=>{Ce(-1*me())},Oe=()=>{Ce(me())},Ge=m.useCallback(ee=>{Ie({overflow:null,scrollbarWidth:ee})},[]),dt=()=>{const ee={};ee.scrollbarSizeListener=$?l(moe,{onChange:Ge,className:ke(j.scrollableX,j.hideScrollbar)}):null;const X=ae.start||ae.end,Se=$&&(w==="auto"&&X||w===!0);return ee.scrollButtonStart=Se?l(b,N({orientation:y,direction:i?"right":"left",onClick:at,disabled:!ae.start},A,{className:ke(j.scrollButtons,A.className)})):null,ee.scrollButtonEnd=Se?l(b,N({orientation:y,direction:i?"left":"right",onClick:Oe,disabled:!ae.end},A,{className:ke(j.scrollButtons,A.className)})):null,ee},ot=Lr(ee=>{const{tabsMeta:X,tabMeta:Se}=te();if(!(!Se||!X)){if(Se[D]<X[D]){const Re=X[M]+(Se[D]-X[D]);ye(Re,{animation:ee})}else if(Se[K]>X[K]){const Re=X[M]+(Se[K]-X[K]);ye(Re,{animation:ee})}}}),st=Lr(()=>{if($&&w!==!1){const{scrollTop:ee,scrollHeight:X,clientHeight:Se,scrollWidth:Re,clientWidth:Me}=ie.current;let bt,_t;if(U)bt=ee>1,_t=ee<X-Se-1;else{const zt=oR(ie.current,o.direction);bt=i?zt<Re-Me-1:zt>1,_t=i?zt>1:zt<Re-Me-1}(bt!==ae.start||_t!==ae.end)&&Ae({start:bt,end:_t})}});m.useEffect(()=>{const ee=pc(()=>{ie.current&&(Ne(),st())}),X=Li(ie.current);X.addEventListener("resize",ee);let Se;return typeof ResizeObserver<"u"&&(Se=new ResizeObserver(ee),Array.from(ce.current.children).forEach(Re=>{Se.observe(Re)})),()=>{ee.clear(),X.removeEventListener("resize",ee),Se&&Se.disconnect()}},[Ne,st]);const Lt=m.useMemo(()=>pc(()=>{st()}),[st]);m.useEffect(()=>()=>{Lt.clear()},[Lt]),m.useEffect(()=>{O(!0)},[]),m.useEffect(()=>{Ne(),st()}),m.useEffect(()=>{ot(K_!==B)},[ot,B]),m.useImperativeHandle(c,()=>({updateIndicator:Ne,updateScrollButtons:st}),[Ne,st]);const Ct=l(hoe,N({},k,{className:ke(j.indicator,k.className),ownerState:V,style:N({},B,k.style)}));let we=0;const $e=m.Children.map(d,ee=>{if(!m.isValidElement(ee))return null;const X=ee.props.value===void 0?we:ee.props.value;ne.set(X,we);const Se=X===R;return we+=1,m.cloneElement(ee,N({fullWidth:P==="fullWidth",indicator:Se&&!z&&Ct,selected:Se,selectionFollowsFocus:S,onChange:v,textColor:T,value:X},we===1&&R===!1&&!ee.props.tabIndex?{tabIndex:0}:{}))}),Qe=ee=>{const X=ce.current,Se=Zn(X).activeElement;if(Se.getAttribute("role")!=="tab")return;let Me=y==="horizontal"?"ArrowLeft":"ArrowUp",bt=y==="horizontal"?"ArrowRight":"ArrowDown";switch(y==="horizontal"&&i&&(Me="ArrowRight",bt="ArrowLeft"),ee.key){case Me:ee.preventDefault(),Hm(X,Se,q_);break;case bt:ee.preventDefault(),Hm(X,Se,G_);break;case"Home":ee.preventDefault(),Hm(X,null,G_);break;case"End":ee.preventDefault(),Hm(X,null,q_);break}},oe=dt();return x(doe,N({className:ke(j.root,p),ownerState:V,ref:n,as:f},I,{children:[oe.scrollButtonStart,oe.scrollbarSizeListener,x(poe,{className:j.scroller,ownerState:V,style:{overflow:fe.overflow,[U?`margin${i?"Left":"Right"}`:"marginBottom"]:_?void 0:-fe.scrollbarWidth},ref:ie,onScroll:Lt,children:[l(foe,{"aria-label":a,"aria-labelledby":s,"aria-orientation":y==="vertical"?"vertical":null,className:j.flexContainer,ownerState:V,onKeyDown:Qe,ref:ce,role:"tablist",children:$e}),z&&Ct]}),oe.scrollButtonEnd]}))}),voe=goe;function yoe(e){return Je("MuiTextField",e)}tt("MuiTextField",["root"]);const boe=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],woe={standard:rN,filled:J6,outlined:pN},Soe=e=>{const{classes:t}=e;return et({root:["root"]},yoe,t)},xoe=C(ks,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Coe=m.forwardRef(function(t,n){const r=nt({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:s,color:c="primary",defaultValue:u,disabled:d=!1,error:p=!1,FormHelperTextProps:f,fullWidth:h=!1,helperText:g,id:v,InputLabelProps:y,inputProps:b,InputProps:w,inputRef:S,label:k,maxRows:A,minRows:T,multiline:R=!1,name:P,onBlur:_,onChange:I,onFocus:$,placeholder:U,required:M=!1,rows:D,select:K=!1,SelectProps:H,type:Q,value:V,variant:j="outlined"}=r,z=Fe(r,boe),O=N({},r,{autoFocus:i,color:c,disabled:d,error:p,fullWidth:h,multiline:R,required:M,select:K,variant:j}),B=Soe(O),Z={};j==="outlined"&&(y&&typeof y.shrink<"u"&&(Z.notched=y.shrink),Z.label=k),K&&((!H||!H.native)&&(Z.id=void 0),Z["aria-describedby"]=void 0);const ae=gd(v),Ae=g&&ae?`${ae}-helper-text`:void 0,fe=k&&ae?`${ae}-label`:void 0,Ie=woe[j],ne=l(Ie,N({"aria-describedby":Ae,autoComplete:o,autoFocus:i,defaultValue:u,fullWidth:h,multiline:R,name:P,rows:D,maxRows:A,minRows:T,type:Q,value:V,id:ae,inputRef:S,onBlur:_,onChange:I,onFocus:$,placeholder:U,inputProps:b},Z,w));return x(xoe,N({className:ke(B.root,s),disabled:d,error:p,fullWidth:h,ref:n,required:M,color:c,variant:j,ownerState:O},z,{children:[k!=null&&k!==""&&l(Ih,N({htmlFor:ae,id:fe},y,{children:k})),K?l(Oh,N({"aria-describedby":Ae,id:ae,labelId:fe,value:V,input:ne},H,{children:a})):ne,g&&l(XQ,N({id:Ae},f,{children:g}))]}))}),wn=Coe,yN=()=>({type:"success",title:"",text:"",components:[],show:!1,persist:!1}),Eoe=()=>{throw new Error("setToast called outside UIContext")},Toe=()=>{throw new Error("setShowFeedback called outside UIContext")},koe=()=>{throw new Error("setMode called outside UIContext")},kl=Te.createContext({toastData:yN(),setToast:Eoe,showFeedback:!1,setShowFeedback:Toe,themeMode:"light",setThemeMode:koe});function Gf(e){try{return Aoe(window.localStorage.getItem(e))}catch(t){console.warn(t)}}function Ku(e,t){try{window.localStorage.setItem(e,JSON.stringify(t,(n,r)=>r instanceof Set?[...r]:r))}catch(n){console.warn(n)}}function Aoe(e){try{return e?JSON.parse(e):void 0}catch(t){console.warn(t)}}const Ye={grey:{900:"#202021",800:"#6E6E70",700:"#78787A",600:"#9F9FA1",500:"#BDBDBF",400:"#E1E1E3",300:"#EAEAED",200:"#F2F2F5",100:"#F7F7FA",50:"#FFFFFF"},action:{.54:"rgba(25, 24, 41, 0.54)",.32:"rgba(25, 24, 41, 0.32)",.12:"rgba(25, 24, 41, 0.12)",.08:"rgba(25, 24, 41, 0.08)",.05:"rgba(25, 24, 41, 0.05)"},purple:{950:"#4944a7",900:"#615BC2",800:"#6C65E5",700:"#817AFE",600:"#8C87EB",500:"#9D98EE",400:"#ADA9F1",300:"#BEBBF3",200:"#CECCF6",100:"#E4E3F9",50:"#F1F0FC"},red:{900:"#A6000E",800:"#D11525",700:"#D93644",600:"#E04C59",500:"#E04C59",400:"#F0616D",300:"#FEB0B7",200:"#FFD4D8",100:"#FFE5E7",50:"#FFF2F3"},orange:{900:"#A34C00",800:"#D76500",700:"#F28D00",600:"#FFAA33",500:"#FFC46F",400:"#FFCF8B",300:"#FFD9A3",200:"#FFEACC",100:"#FFF4E5",50:"#FFFCF5"},green:{900:"#305200",800:"#3B6600",700:"#4D8400",600:"#68A611",500:"#7FB435",400:"#99C35D",300:"#B0D182",200:"#CFE5AE",100:"#E4F0D3",50:"#F4FAEB"},blue:{900:"#163E59",800:"#0060A1",700:"#0071BD",600:"#007ACA",500:"#0087E0",400:"#1C98EB",300:"#5BB4F0",200:"#96D2FA",100:"#DCEEFA",50:"#EBF7FF"},darkblue:{1e3:"#091826",900:"#041c32",800:"#1d3247",700:"#28415c",600:"#1f3751",500:"#0e2840"}},Roe=Object.fromEntries?Object.fromEntries:e=>{if(!e||!e[Symbol.iterator])throw new Error("Object.fromEntries() requires a single iterable argument");const t={};return Object.keys(e).forEach(n=>{const[r,o]=e[n];t[r]=o}),t};function xv(e){return Object.keys(e)}function bN(e,t){if(!e)throw new Error(t)}function wN(e,t){return t}const Y2=e=>{const t=e.length;let n=0,r="";for(;n<t;n++){const o=e[n];if(o==null)continue;let i;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))i=Y2(o);else{bN(!wN(o,!1)),i="";for(const a in o)o[a]&&a&&(i&&(i+=" "),i+=a)}break}default:i=o}i&&(r&&(r+=" "),r+=i)}return r};function _oe(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=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(o){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 Poe={animationIterationCount: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,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};function Ioe(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Ooe=/[A-Z]|^ms/g,$oe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,SN=function(t){return t.charCodeAt(1)===45},Y_=function(t){return t!=null&&typeof t!="boolean"},$b=Ioe(function(e){return SN(e)?e:e.replace(Ooe,"-$&").toLowerCase()}),X_=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace($oe,function(r,o,i){return wa={name:o,styles:i,next:wa},o})}return Poe[t]!==1&&!SN(t)&&typeof n=="number"&&n!==0?n+"px":n};function qf(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return wa={name:n.name,styles:n.styles,next:wa},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)wa={name:r.name,styles:r.styles,next:wa},r=r.next;var o=n.styles+";";return o}return Noe(e,t,n)}case"function":{if(e!==void 0){var i=wa,a=n(e);return wa=i,qf(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function Noe(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=qf(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object")t!=null&&t[a]!==void 0?r+=i+"{"+t[a]+"}":Y_(a)&&(r+=$b(i)+":"+X_(i,a)+";");else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)Y_(a[s])&&(r+=$b(i)+":"+X_(i,a[s])+";");else{var c=qf(e,t,a);switch(i){case"animation":case"animationName":{r+=$b(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}return r}var J_=/label:\s*([^\s;\n{]+)\s*(;|$)/g,wa,Loe=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,i="";wa=void 0;var a=t[0];a==null||a.raw===void 0?(o=!1,i+=qf(r,n,a)):i+=a[0];for(var s=1;s<t.length;s++)i+=qf(r,n,t[s]),o&&(i+=a[s]);J_.lastIndex=0;for(var c="",u;(u=J_.exec(i))!==null;)c+="-"+u[1];var d=_oe(i)+c;return{name:d,styles:i,next:wa}},Moe=!0;function Doe(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var Boe=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Moe===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Foe=function(t,n,r){Boe(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function zoe(e,t){const n=m.useRef();return(!n.current||t.length!==n.current.prevDeps.length||n.current.prevDeps.map((r,o)=>r===t[o]).indexOf(!1)>=0)&&(n.current={v:e(),prevDeps:[...t]}),n.current.v}function joe(e){return e instanceof Object&&!("styles"in e)&&!("length"in e)&&!("__emotion_styles"in e)}const{createCssAndCx:Uoe}=(()=>{function e(n,r,o){const i=[],a=Doe(n,i,o);return i.length<2?o:a+r(i)}function t(n){const{cache:r}=n,o=(...a)=>{const s=Loe(a,r.registered);Foe(r,s,!1);const c=`${r.key}-${s.name}`;e:{const u=a[0];if(!joe(u))break e;Q_.saveClassNameCSSObjectMapping(r,c,u)}return c};return{css:o,cx:(...a)=>{const s=Y2(a),c=Q_.fixClassName(r,s,o);return e(r.registered,o,c)}}}return{createCssAndCx:t}})();function Woe(e){const{useCache:t}=e;function n(){const r=t(),{css:o,cx:i}=zoe(()=>Uoe({cache:r}),[r]);return{css:o,cx:i}}return{useCssAndCx:n}}const Q_=(()=>{const e=new WeakMap;return{saveClassNameCSSObjectMapping:(t,n,r)=>{let o=e.get(t);o===void 0&&(o=new Map,e.set(t,o)),o.set(n,r)},fixClassName:(()=>{function t(n){let r=!1;return n.map(([o,i])=>{if(i===void 0)return o;let a;if(r)a={"&&":i};else{a=o;for(const s in i)if(s.startsWith("@media")){r=!0;break}}return a})}return(n,r,o)=>{const i=e.get(n);return Y2(t(r.split(" ").map(a=>[a,i==null?void 0:i.get(a)])).map(a=>typeof a=="string"?a:o(a)))}})()}})();function Vm(e){if(!(e instanceof Object)||typeof e=="function")return e;const t=[];for(const n in e){const r=e[n],o=typeof r;if(!(o==="string"||o==="number"&&!isNaN(r)||o==="boolean"||r===void 0||r===null))return e;t.push(`${n}:${o}_${r}`)}return"xSqLiJdLMd9s"+t.join("|")}function Z_(e,t,n){if(!(t instanceof Object))return e;const r={};return xv(e).forEach(o=>r[o]=n(e[o],t[o])),xv(t).forEach(o=>{if(o in e)return;const i=t[o];typeof i=="string"&&(r[o]=i)}),r}let Hoe=0;function xN(e){const{useTheme:t,cache:n}=e;function r(){var s;const c=mU(),u=Goe(),d=(s=n??u)!==null&&s!==void 0?s:c;if(d===null)throw new Error(["In order to get SSR working with tss-react you need to explicitly provide an Emotion cache.","MUI users be aware: This is not an error strictly related to tss-react, with or without tss-react,","MUI needs an Emotion cache to be provided for SSR to work.","Here is the MUI documentation related to SSR setup: https://mui.com/material-ui/guides/server-rendering/","TSS provides helper that makes the process of setting up SSR easier: https://docs.tss-react.dev/ssr"].join(`
246
- `));return d}const{useCssAndCx:o}=Woe({useCache:r});function i(s){const{name:c,uniqId:u=Hoe++}=s??{},d=typeof c!="object"?c:Object.keys(c)[0];return function(p){const f=typeof p=="function"?p:()=>p;return function(g,v){var y,b;const w=v==null?void 0:v.props,S=t(),{css:k,cx:A}=o(),T=r();let R=m.useMemo(()=>{const _={},I=typeof Proxy<"u"&&new Proxy({},{get:(M,D)=>(typeof D=="symbol"&&bN(!1),_[D]=`${T.key}-${u}${d!==void 0?`-${d}`:""}-${D}-ref`)}),$=f(S,g,I||{}),U=Roe(xv($).map(M=>{const D=$[M];return D.label||(D.label=`${d!==void 0?`${d}-`:""}${M}`),[M,`${k(D)}${wN(M,M in _)?` ${_[M]}`:""}`]}));return xv(_).forEach(M=>{M in U||(U[M]=_[M])}),U},[T,k,A,S,Vm(g)]);const P=w==null?void 0:w.classes;R=m.useMemo(()=>Z_(R,P,A),[R,Vm(P),A]);{let _;try{_=d!==void 0?(b=(y=S.components)===null||y===void 0?void 0:y[d])===null||b===void 0?void 0:b.styleOverrides:void 0}catch{}const I=m.useMemo(()=>{if(!_)return;const $={};for(const U in _){const M=_[U];M instanceof Object&&($[U]=k(typeof M=="function"?M(Object.assign({theme:S,ownerState:v==null?void 0:v.ownerState},w)):M))}return $},[_===void 0?void 0:typeof _=="function"?_:JSON.stringify(_),Vm(w),Vm(v==null?void 0:v.ownerState),k]);R=m.useMemo(()=>Z_(R,I,A),[R,I,A])}return{classes:R,theme:S,css:k,cx:A}}}}function a(){const s=t(),{css:c,cx:u}=o();return{theme:s,css:c,cx:u}}return{makeStyles:i,useStyles:a}}const Voe=m.createContext(void 0);function Goe(){return m.useContext(Voe)}function e5(e){return e.charAt(0).toUpperCase()+e.slice(1)}var t5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function qoe(e){const{useTheme:t,cache:n}=e,{makeStyles:r}=xN({useTheme:t,cache:n});function o(i,a,s){const c=typeof i=="string"?(()=>{const h=i,g=function(v){var{children:y}=v,b=t5(v,["children"]);return m.createElement(h,b,y)};return Object.defineProperty(g,"name",{value:e5(h)}),g})():i,u=(()=>{{const{name:h}=s??{};if(h!==void 0)return typeof h!="object"?h:Object.keys(h)[0]}{const h=c.displayName;if(typeof h=="string"&&h!=="")return h}{const{name:h}=c;if(h)return h}})(),d=r(Object.assign(Object.assign({},s),{name:u}))(typeof a=="function"?(h,g,v)=>r5(a(h,g,v)):r5(a));function p(h){for(const g in h)if(g!=="root")return!0;return!1}const f=m.forwardRef(function(h,g){const{className:v,classes:y}=h,b=t5(h,["className","classes"]),{classes:w,cx:S}=d(h,{props:h}),k=S(w.root,v);return CN.set(w,Object.assign(Object.assign({},w),{root:k})),Te.createElement(c,Object.assign({ref:g,className:p(w)?v:k},typeof i=="string"?{}:{classes:w},b))});return u!==void 0&&(f.displayName=`${e5(u)}WithStyles`,Object.defineProperty(f,"name",{value:f.displayName})),f}return o.getClasses=Koe,{withStyles:o}}const CN=new WeakMap,n5="getClasses should only be used in conjunction with withStyles";function Koe(e){const t=e.classes;if(t===void 0)throw new Error(n5);const n=CN.get(t);if(n===void 0)throw new Error(n5);return n}function r5(e){const t={},n={};return Object.keys(e).forEach(r=>(r.startsWith("@media")?n:t)[r]=e[r]),Object.keys(n).forEach(r=>{const o=n[r];Object.keys(o).forEach(i=>{var a;return t[i]=Object.assign(Object.assign({},(a=t[i])!==null&&a!==void 0?a:{}),{[r]:o[i]})})}),t}function Yoe(e){return Object.assign(Object.assign({},xN(e)),qoe(e))}const{makeStyles:As,withStyles:Xoe,useStyles:oMe}=Yoe({useTheme:gn}),ji=e=>({"&:focus-visible":{outline:0,outlineStyle:"solid",outlineWidth:2,outlineOffset:2,outlineColor:e.palette.primary.main,borderRadius:"2px"}}),p1=e=>({"& > *":{marginTop:`${e.spacing(1)} !important`,marginBottom:`${e.spacing(1)} !important`}}),Joe=e=>({fontSize:e.fontSizes.mainHeader,fontWeight:"bold",marginBottom:e.spacing(1)}),EN={textAlign:"center"},TN={textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},Ac={display:"flex",alignItems:"center"},kN={display:"flex",flexDirection:"column"},Qoe={alignItems:"center"},Zoe={position:"relative"},iMe=e=>({borderRadius:`${e.shape.borderRadius}px`}),AN={opacity:"0",right:"40px",bottom:"40px",transform:"translateY(400px)",zIndex:1400,position:"fixed"},RN={transform:"translateY(0)",opacity:"1",transition:"transform 0.6s ease, opacity 1s ease"},eie={transform:"translateY(400px)",opacity:"0",transition:"transform 1.25s ease, opacity 1s ease"},tie=e=>({opacity:"0",position:"fixed",transform:"translateY(-400px)"}),nie={transform:"translateY(100px)",opacity:"1",transition:"transform 0.6s ease, opacity 1s ease"},rie={transform:"translateY(-400px)",opacity:"0",transition:"transform 1.25s ease, opacity 1s ease"},$h=As()(e=>({focusable:{"&:focus-visible":{outline:0,outlineStyle:"solid",outlineWidth:2,outlineOffset:2,outlineColor:e.palette.primary.main}},contentSpacingY:{"& > *":{marginTop:"0.5rem !important",marginBottom:"0.5rem !important"}},divider:{margin:"1rem 0",backgroundColor:e.palette.divider,height:"3px",width:"100%"},largeDivider:{margin:"2rem 0",backgroundColor:e.palette.divider,height:"3px",width:"100%"},bold:{fontWeight:"bold"},flexRow:{display:"flex",alignItems:"center"},flexColumn:{display:"flex",flexDirection:"column"},itemsCenter:{alignItems:"center"},justifyCenter:{justifyContent:"center"},flexWrap:{flexWrap:"wrap"},textCenter:{textAlign:"center"},fullWidth:{width:"100%"},fullHeight:{height:"100%"},title:{fontSize:e.fontSizes.mainHeader,fontWeight:"bold",marginBottom:"0.5rem"},error:{fontSize:e.fontSizes.smallBody,color:e.palette.error.main}})),Nb={breakpoints:{values:{xs:0,sm:600,md:960,lg:1260,xl:1536}},boxShadows:{main:"0px 2px 4px rgba(129, 122, 254, 0.2)",card:"0px 2px 10px rgba(28, 25, 78, 0.12)",elevated:"0px 1px 20px rgba(45, 42, 89, 0.1)",popup:"0px 2px 6px rgba(0, 0, 0, 0.25)",primaryHeader:"0px 8px 24px rgba(97, 91, 194, 0.2)",separator:"0px 2px 4px rgba(32, 32, 33, 0.12)"},typography:{fontFamily:"Sen, Roboto, sans-serif",fontWeightBold:"700",fontWeightMedium:"700",allVariants:{lineHeight:1.4},button:{lineHeight:1.75},h1:{fontSize:"1.5rem",lineHeight:1.875},h2:{fontSize:`${20/16}rem`,fontWeight:"700"},h3:{fontSize:"1rem",fontWeight:"700"},caption:{fontSize:`${12/16}rem`}},fontSizes:{largeHeader:"2rem",mainHeader:"1.25rem",bodySize:"1rem",smallBody:`${14/16}rem`,smallerBody:`${12/16}rem`},fontWeight:{thin:300,medium:400,semi:700,bold:700},shape:{borderRadius:4,borderRadiusMedium:8,borderRadiusLarge:12,borderRadiusExtraLarge:20,tableRowHeight:64,tableRowHeightCompact:56,tableRowHeightDense:48},zIndex:{sticky:2e3},palette:{common:{white:Ye.grey[50],black:Ye.grey[900]},text:{primary:Ye.grey[900],secondary:Ye.grey[800],disabled:Ye.grey[600]},primary:{main:Ye.purple[800],light:Ye.purple[700],dark:Ye.purple[900],contrastText:Ye.grey[50]},secondary:{main:Ye.purple[800],light:Ye.purple[50],dark:Ye.purple[900],border:Ye.purple[300],contrastText:Ye.purple[900]},info:{main:Ye.blue[500],light:Ye.blue[50],dark:Ye.blue[800],border:Ye.blue[200],contrastText:Ye.blue[800]},success:{main:Ye.green[600],light:Ye.green[50],dark:Ye.green[800],border:Ye.green[300],contrastText:Ye.green[800]},warning:{main:Ye.orange[800],light:Ye.orange[100],dark:Ye.orange[900],border:Ye.orange[500],contrastText:Ye.orange[900]},error:{main:Ye.red[700],light:Ye.red[50],dark:Ye.red[800],border:Ye.red[300],contrastText:Ye.red[800]},web:{main:"#1A4049",contrastText:Ye.grey[50]},neutral:{main:Ye.grey[700],light:Ye.grey[100],dark:Ye.grey[800],border:Ye.grey[400],contrastText:Ye.grey[800]},background:{paper:Ye.grey[50],default:Ye.grey[50],application:Ye.grey[300],sidebar:Ye.purple[800],alternative:Ye.purple[800],elevation1:Ye.grey[100],elevation2:Ye.grey[200]},action:{active:Ye.action[.54],hover:Ye.action[.05],hoverOpacity:.05,selected:Ye.action[.08],selectedOpacity:.08,disabled:Ye.action[.32],disabledBackground:Ye.action[.12],disabledOpacity:.38,focus:Ye.action[.12],focusOpacity:.12,activatedOpacity:.12},divider:Ye.grey[400],table:{headerBackground:Ye.grey[200],headerHover:Ye.grey[300],divider:Ye.grey[300],rowHover:Ye.grey[100]},highlight:Ye.orange[200],spotlight:{border:"#463cfb",outline:"#6058f5",pulse:"#463cfb"},codebox:Ye.action[.12],links:Ye.purple[900],loginGradient:{from:Ye.purple[800],to:Ye.purple[950]},eventLog:{diffAdd:Ye.green[800],diffSub:Ye.red[800],edited:Ye.grey[900]},seen:{unknown:Ye.grey[100],recent:Ye.green[100],inactive:Ye.orange[200],abandoned:Ye.red[200],primary:Ye.purple[100]},envAccordion:{disabled:Ye.grey[100],expanded:Ye.grey[200]},grey:{100:Ye.grey[100],600:Ye.grey[800],700:Ye.grey[800]}}},ml=Yy({...Nb,components:{MuiCssBaseline:{styleOverrides:{"#react-joyride-portal ~ .MuiDialog-root":{zIndex:1500},".skeleton":{"&::before":{backgroundColor:Nb.palette.background.elevation1},"&::after":{background:"linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.2) 100%, rgba(255, 255, 255, 0.5) 100%, rgba(255, 255, 255, 0))"}},a:{color:Nb.palette.links}}},MuiLink:{styleOverrides:{root:({theme:e})=>({...ji(e),color:e.palette.links,"&:hover":{textDecoration:"none"}})}},MuiBreadcrumbs:{styleOverrides:{root:({theme:e})=>({color:e.palette.text.primary,fontSize:"0.875rem","& a":{color:e.palette.links,textDecoration:"none","&:hover":{textDecoration:"underline"}}})}},MuiTableHead:{styleOverrides:{root:({theme:e})=>({"& th":{height:e.shape.tableRowHeightCompact,backgroundColor:e.palette.table.headerBackground,border:0,"&:first-of-type":{borderTopLeftRadius:e.shape.borderRadiusMedium,borderBottomLeftRadius:e.shape.borderRadiusMedium},"&:last-of-type":{borderTopRightRadius:e.shape.borderRadiusMedium,borderBottomRightRadius:e.shape.borderRadiusMedium}}})}},MuiTableRow:{styleOverrides:{root:({theme:e})=>({"&.MuiTableRow-root:hover":{background:e.palette.table.rowHover}})}},MuiTableCell:{styleOverrides:{root:({theme:e})=>({borderBottomColor:e.palette.table.divider})}},MuiAlert:{styleOverrides:{root:({theme:e})=>({padding:e.spacing(2,3),borderRadius:e.shape.borderRadiusMedium,a:{color:"inherit"},"> .MuiAlert-icon":{padding:0,opacity:1,fontSize:"24px"},"> .MuiAlert-message":{padding:"3px 0 0 0"},"&.MuiAlert-standardInfo":{backgroundColor:e.palette.info.light,color:e.palette.info.dark,border:`1px solid ${e.palette.info.border}`,"& .MuiAlert-icon":{color:e.palette.info.main}},"&.MuiAlert-standardSuccess":{backgroundColor:e.palette.success.light,color:e.palette.success.dark,border:`1px solid ${e.palette.success.border}`,"& .MuiAlert-icon":{color:e.palette.success.main}},"&.MuiAlert-standardWarning":{backgroundColor:e.palette.warning.light,color:e.palette.warning.dark,border:`1px solid ${e.palette.warning.border}`,"& .MuiAlert-icon":{color:e.palette.warning.main}},"&.MuiAlert-standardError":{backgroundColor:e.palette.error.light,color:e.palette.error.dark,border:`1px solid ${e.palette.error.border}`,"& .MuiAlert-icon":{color:e.palette.error.main}}})}},MuiTabs:{styleOverrides:{root:({theme:e})=>({"& .MuiTabs-indicator":{height:"4px"},"& .MuiTabs-flexContainer":{minHeight:"70px",maxHeight:"70px"}})}},MuiTab:{styleOverrides:{root:({theme:e})=>({color:e.palette.text.primary,fontSize:"1rem",textTransform:"none",fontWeight:400,lineHeight:"1",minHeight:"62px","&:hover":{backgroundColor:e.palette.action.hover},"&.Mui-selected":{color:e.palette.text.primary,fontWeight:700},"& > span":{color:e.palette.primary.main},[e.breakpoints.down("md")]:{padding:"12px 0px"}})}},MuiAccordion:{styleOverrides:{root:({theme:e})=>({"&:first-of-type, &:last-of-type":{borderRadius:e.shape.borderRadiusLarge},"&.environment-accordion.Mui-expanded":{outline:`2px solid ${yt(e.palette.background.alternative,.6)}`,boxShadow:`0px 2px 8px ${yt(e.palette.primary.main,.2)}`}})}},MuiAccordionSummary:{styleOverrides:{root:{"& > .MuiAccordionSummary-content.Mui-expanded":{margin:"12px 0"},"&.Mui-expanded":{minHeight:"0"}}}},MuiSwitch:{styleOverrides:{root:({theme:e})=>({zIndex:1,".MuiSwitch-switchBase:not(.Mui-checked) .MuiTouchRipple-child":{color:e.palette.action.disabled}})}},MuiMenuItem:{styleOverrides:{root:{"&.Mui-disabled":{opacity:.66}}}},MuiInputBase:{styleOverrides:{root:({theme:e})=>({backgroundColor:e.palette.background.paper})}},MuiAppBar:{styleOverrides:{root:({theme:e})=>({color:e.palette.text.primary})}}}}),Ul={.54:"rgba(223, 222, 255, 0.54)",.32:"rgba(223, 222, 255, 0.32)",.12:"rgba(223, 222, 255, 0.12)",.08:"rgba(223, 222, 255, 0.08)",.05:"rgba(223, 222, 255, 0.05)"},Gm={breakpoints:{values:{xs:0,sm:600,md:960,lg:1260,xl:1536}},boxShadows:{main:"0px 2px 4px rgba(129, 122, 254, 0.2)",card:"0px 2px 10px rgba(28, 25, 78, 0.12)",elevated:"0px 1px 20px rgba(45, 42, 89, 0.1)",popup:"0px 2px 6px rgba(0, 0, 0, 0.25)",primaryHeader:"0px 8px 24px rgba(97, 91, 194, 0.2)",separator:"0px 2px 4px rgba(32, 32, 33, 0.12)"},typography:{fontFamily:"Sen, Roboto, sans-serif",fontWeightBold:"700",fontWeightMedium:"700",allVariants:{lineHeight:1.4},button:{lineHeight:1.75},h1:{fontSize:"1.5rem",lineHeight:1.875},h2:{fontSize:`${20/16}rem`,fontWeight:"700"},h3:{fontSize:"1rem",fontWeight:"700"},caption:{fontSize:`${12/16}rem`}},fontSizes:{largeHeader:"2rem",mainHeader:"1.25rem",bodySize:"1rem",smallBody:`${14/16}rem`,smallerBody:`${12/16}rem`},fontWeight:{thin:300,medium:400,semi:700,bold:700},shape:{borderRadius:4,borderRadiusMedium:8,borderRadiusLarge:12,borderRadiusExtraLarge:20,tableRowHeight:64,tableRowHeightCompact:56,tableRowHeightDense:48},zIndex:{sticky:2e3},palette:{common:{white:"#EEEEFC",black:"#A0A0B1"},text:{primary:"#EEEEFC",secondary:"#A0A0B1",disabled:"#888799"},primary:{main:"#9792ED",light:"#4C4992",dark:"#9792ED",contrastText:"#EEEEFC"},secondary:{main:"#9792ED",light:"#34325E",dark:"#EEEEFC",border:"#4C4992",contrastText:"#EEEEFC"},info:{main:"#a2bbe2",light:"#1A2641",dark:"#a2bbe2",border:"#1B407A",contrastText:"#EEEEFC"},success:{main:"#94ae6f",light:"#333D30",dark:"#94ae6f",border:"#3D600C",contrastText:"#EEEEFC"},warning:{main:"#bc7d21",light:"#3B302C",dark:"#bc7d21",contrastText:"#EEEEFC",border:"#6C4A19"},error:{main:"#ff6472",light:"#3F2835",dark:"#ff6472",border:"#8A3E45",contrastText:"#EEEEFC"},web:{main:"#1A4049",contrastText:"#EEEEFC"},neutral:{main:"#858699",light:"#2B2A3C",dark:"#EEEEFC",border:"#454360",contrastText:"#EEEEFC"},background:{paper:"#222130",default:"#222130",application:"#1A1924",sidebar:"#4C4992",alternative:"#4C4992",elevation1:"#2B2A3C",elevation2:"#2B2A3C"},action:{active:Ul[.54],hover:Ul[.05],hoverOpacity:.05,selected:Ul[.08],selectedOpacity:.08,disabled:Ul[.32],disabledBackground:Ul[.12],disabledOpacity:.38,focus:Ul[.12],focusOpacity:.12,activatedOpacity:.12},divider:"#39384C",table:{headerBackground:"#2B2A3C",headerHover:"#313045",divider:"#323144",rowHover:"#262536"},highlight:"rgba(255, 234, 204, 0.7)",spotlight:{border:"#8c89bf",outline:"#bcb9f3",pulse:"#bcb9f3"},codebox:"rgba(52, 50, 94, 0.3)",links:"#9792ED",loginGradient:{from:"#4C4992",to:"#4944a7"},eventLog:{diffAdd:"#77AB2E",diffSub:"#df626c",edited:"#EEEEFC"},seen:{unknown:"#2B2A3C",recent:"#4E6131",inactive:"#875D21",abandoned:"#8A3E45",primary:"#302E42"},envAccordion:{disabled:"#2B2A3C",expanded:"#1A1924"},grey:{100:"#888799",600:"#343348",700:"#343348"}}},oie=Yy({...Gm,components:{MuiCssBaseline:{styleOverrides:{"#react-joyride-portal ~ .MuiDialog-root":{zIndex:1500},".skeleton":{"&::before":{backgroundColor:Gm.palette.background.elevation1},"&::after":{background:"linear-gradient(90deg, rgba(223, 222, 255, 0) 0, rgba(223, 222, 255, 0.2) 100%, rgba(223, 222, 255, 0.5) 100%, rgba(223, 222, 255, 0))"}},a:{color:Gm.palette.links},".dropdown-outline, .MuiAutocomplete-popper":{outline:`1px solid ${Gm.palette.divider}`}}},MuiLink:{styleOverrides:{root:({theme:e})=>({...ji(e),color:e.palette.links,"&:hover":{textDecoration:"none"}})}},MuiBreadcrumbs:{styleOverrides:{root:({theme:e})=>({color:e.palette.text.primary,fontSize:"0.875rem","& a":{color:e.palette.links,textDecoration:"none","&:hover":{textDecoration:"underline"}}})}},MuiTableHead:{styleOverrides:{root:({theme:e})=>({"& th":{height:e.shape.tableRowHeightCompact,backgroundColor:e.palette.table.headerBackground,border:0,"&:first-of-type":{borderTopLeftRadius:e.shape.borderRadiusMedium,borderBottomLeftRadius:e.shape.borderRadiusMedium},"&:last-of-type":{borderTopRightRadius:e.shape.borderRadiusMedium,borderBottomRightRadius:e.shape.borderRadiusMedium}}})}},MuiTableRow:{styleOverrides:{root:({theme:e})=>({"&.MuiTableRow-root:hover":{background:e.palette.table.rowHover}})}},MuiTableCell:{styleOverrides:{root:({theme:e})=>({borderBottomColor:e.palette.table.divider})}},MuiAlert:{styleOverrides:{root:({theme:e})=>({padding:e.spacing(2,3),borderRadius:e.shape.borderRadiusMedium,a:{color:"inherit"},"> .MuiAlert-icon":{padding:0,opacity:1,fontSize:"24px"},"> .MuiAlert-message":{padding:"3px 0 0 0"},"&.MuiAlert-standardInfo":{backgroundColor:e.palette.info.light,color:e.palette.info.contrastText,border:`1px solid ${e.palette.info.border}`,"& .MuiAlert-icon":{color:e.palette.info.main}},"&.MuiAlert-standardSuccess":{backgroundColor:e.palette.success.light,color:e.palette.success.contrastText,border:`1px solid ${e.palette.success.border}`,"& .MuiAlert-icon":{color:e.palette.success.main}},"&.MuiAlert-standardWarning":{backgroundColor:e.palette.warning.light,color:e.palette.warning.contrastText,border:`1px solid ${e.palette.warning.border}`,"& .MuiAlert-icon":{color:e.palette.warning.main}},"&.MuiAlert-standardError":{backgroundColor:e.palette.error.light,color:e.palette.error.contrastText,border:`1px solid ${e.palette.error.border}`,"& .MuiAlert-icon":{color:e.palette.error.main}}})}},MuiTabs:{styleOverrides:{root:({theme:e})=>({"& .MuiTabs-indicator":{backgroundColor:e.palette.background.alternative,height:"4px"},"& .MuiTabs-flexContainer":{minHeight:"70px",maxHeight:"70px"}})}},MuiTab:{styleOverrides:{root:({theme:e})=>({color:e.palette.text.primary,fontSize:"1rem",textTransform:"none",fontWeight:400,lineHeight:"1",minHeight:"62px","&:hover":{backgroundColor:e.palette.action.hover},"&.Mui-selected":{color:e.palette.text.primary,fontWeight:700},"& > span":{color:e.palette.primary.main},[e.breakpoints.down("md")]:{padding:"12px 0px"}})}},MuiAccordion:{styleOverrides:{root:({theme:e})=>({"&:first-of-type, &:last-of-type":{borderRadius:e.shape.borderRadiusLarge},"&.environment-accordion.Mui-expanded":{outline:`2px solid ${yt(e.palette.background.alternative,.6)}`,boxShadow:`0px 2px 8px ${yt(e.palette.primary.main,.2)}`},"&.accordion-disabled":{outline:`1px solid ${yt("#39384C",.5)}`,backgroundColor:e.palette.background.application},"&.accordion-disabled.Mui-expanded .MuiAccordionSummary-root":{borderBottom:`1px solid ${e.palette.divider}`}})}},MuiAccordionSummary:{styleOverrides:{root:{"& > .MuiAccordionSummary-content.Mui-expanded":{margin:"12px 0"},"&.Mui-expanded":{minHeight:"0"}}}},MuiSwitch:{styleOverrides:{root:({theme:e})=>({zIndex:1,"&&& > .Mui-checked:hover":{backgroundColor:Ul[.08]},"&&& > .Mui-checked.Mui-disabled":{color:"#423F6E"}})}},MuiMenuItem:{styleOverrides:{root:{"&.Mui-disabled":{opacity:.4}}}},MuiInputBase:{styleOverrides:{root:({theme:e})=>({backgroundColor:e.palette.background.paper})}},MuiAppBar:{styleOverrides:{root:({theme:e})=>({color:e.palette.text.primary})}},MuiButton:{styleOverrides:{root:({theme:e})=>({"&:not(.Mui-disabled).MuiButton-containedPrimary":{backgroundColor:e.palette.background.alternative,"&:hover":{backgroundColor:e.palette.secondary.light}}})}},MuiIconButton:{styleOverrides:{root:({theme:e})=>({"&.operator-is-active svg":{fill:e.palette.background.application}})}},MuiOutlinedInput:{styleOverrides:{root:({theme:e})=>({fieldset:{borderColor:"#646382"},"&&&:hover fieldset":{borderColor:"#8B8BA7"},"&&&.Mui-focused fieldset":{borderColor:"#9792ED"},"&&&.Mui-disabled fieldset":{borderColor:"#47475D"}})}},MuiPopover:{styleOverrides:{root:({theme:e})=>({".MuiPopover-paper":{outline:`1px solid ${e.palette.divider}`}})}}}}),_N=()=>{const{themeMode:e,setThemeMode:t}=m.useContext(kl),n="unleash-theme";return{resolveTheme:()=>e==="light"?ml:oie,onSetThemeMode:()=>{t(i=>i==="light"?(Ku(n,"dark"),"dark"):(Ku(n,"light"),"light"))},themeMode:e}},iie=YU({key:"mui",prepend:!0}),aie=({children:e})=>{const{resolveTheme:t}=_N();return l(hU,{value:iie,children:x(vH,{theme:t(),children:[l(bJ,{}),e]})})};var sie=function(t,n){return t===void 0&&(t=[]),n===void 0&&(n=[]),t.length!==n.length||t.some(function(r,o){return!Object.is(r,n[o])})},o5={error:null},i5=function(e){O2(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=e.call.apply(e,[this].concat(i))||this,r.state=o5,r.resetErrorBoundary=function(){for(var s,c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];r.props.onReset==null||(s=r.props).onReset.apply(s,u),r.reset()},r}t.getDerivedStateFromError=function(o){return{error:o}};var n=t.prototype;return n.reset=function(){this.setState(o5)},n.componentDidCatch=function(o,i){var a,s;(a=(s=this.props).onError)==null||a.call(s,o,i)},n.componentDidUpdate=function(o,i){var a=this.state.error,s=this.props.resetKeys;if(a!==null&&i.error!==null&&sie(o.resetKeys,s)){var c,u;(c=(u=this.props).onResetKeysChange)==null||c.call(u,o.resetKeys,s),this.reset()}},n.render=function(){var o=this.state.error,i=this.props,a=i.fallbackRender,s=i.FallbackComponent,c=i.fallback;if(o!==null){var u={error:o,resetErrorBoundary:this.resetErrorBoundary};if(m.isValidElement(c))return c;if(typeof a=="function")return a(u);if(s)return m.createElement(s,u);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(m.Component);const q=({condition:e,show:t,elseShow:n})=>{const r=i=>{const a=i();return a||(console.warn("Nothing was returned from your render function. Verify that you are returning a valid react component"),null)},o=i=>typeof i=="function";return e?o(t)?r(t):t:!e&&n?o(n)?r(n):n:null},lie="NAVIGATE_TO_CREATE_FEATURE",aMe="NAVIGATE_TO_CREATE_GROUP",cie="NAVIGATE_TO_CREATE_SEGMENT",sMe="CREATE_API_TOKEN_BUTTON",uie="CF_NAME_ID",die="CF_TYPE_ID",pie="CF_DESC_ID",fie="CF_CREATE_BTN_ID",lMe="UG_NAME_ID",cMe="UG_DESC_ID",uMe="UG_USERS_ID",dMe="UG_CREATE_BTN_ID",pMe="UG_SAVE_BTN_ID",fMe="UG_EDIT_BTN_ID",hMe="UG_DELETE_BTN_ID",mMe="UG_EDIT_USERS_BTN_ID",gMe="UG_REMOVE_USER_BTN_ID",vMe="PROJECT_ENVIRONMENT_ACCORDION",yMe="PA_ASSIGN_BUTTON_ID",bMe="PA_USERS_GROUPS_ID",wMe="PA_ROLE_ID",SMe="PA_ASSIGN_CREATE_ID",xMe="PA_USERS_GROUPS_TITLE_ID",CMe="PA_EDIT_BUTTON_ID",EMe="PA_REMOVE_BUTTON_ID",hie="SEGMENT_NAME_ID",mie="SEGMENT_DESC_ID",gie="SEGMENT_NEXT_BTN_ID",vie="SEGMENT_CREATE_BTN_ID",yie="SEGMENT_SAVE_BTN_ID",bie="SEGMENT_DELETE_BTN_ID",wie="SEGMENT_DIALOG_NAME_ID",f1="LOGIN_EMAIL_ID",h1="LOGIN_BUTTON",PN="LOGIN_PASSWORD_ID",Sie="SSO_LOGIN_BUTTON",xie="FORGOTTEN_PASSWORD_FIELD",Cie="INVALID_TOKEN_BUTTON",TMe="FEATURE_ENVIRONMENT_ACCORDION",a5="ADD_NEW_STRATEGY_ID",Eie="ROLLOUT_SLIDER_ID",Tie="DIALOGUE_CONFIRM_ID",kie="FLEXIBLE_STRATEGY_STICKINESS_ID",Aie="FLEXIBLE_STRATEGY_GROUP_ID",IN="SELECT_ITEM_ID",Rie="STRATEGY_INPUT_LIST",_ie="ADD_TO_STRATEGY_INPUT_LIST",Pie="STRATEGY_FORM_SUBMIT_ID",kMe="STRATEGY_FORM_REMOVE_ID",AMe="STRATEGY_FORM_COPY_ID",RMe="STRATEGY_REMOVE_MENU_BTN",ON="INPUT_ERROR_TEXT",Iie="HEADER_USER_AVATAR",Oie="SIDEBAR_MODAL_ID",$ie="AUTH_PAGE_ID",Nie="ANNOUNCER_ELEMENT_TEST_ID",X2="INSTANCE_STATUS_BAR_ID",Lie="TOAST_TEXT",_Me="LARGE_NUMBER_PRETTIFIED",PMe="IMPORT_BUTTON",IMe="CODE_EDITOR_TAB",OMe="IMPORT_ENVIRONMENT",$Me="CODE_TEXT_FIELD",NMe="VALIDATE_BUTTON",LMe="IMPORT_CONFIGURATION_BUTTON",Mie="SEARCH_INPUT",Die="BATCH_ACTIONS_BAR",Bie="BATCH_SELECTED_COUNT",Fie="BATCH_SELECT",MMe="MORE_BATCH_ACTIONS",zie=C(z2)(({theme:e,maxWidth:t})=>({"& .MuiDialog-paper":{borderRadius:e.shape.borderRadiusLarge,maxWidth:t?void 0:e.spacing(85),backgroundColor:"transparent"}})),jie=C(eQ)(({theme:e})=>({backgroundColor:e.palette.background.alternative,color:e.palette.primary.contrastText,padding:e.spacing(3.5,6),fontWeight:e.fontWeight.medium})),Uie=C("div")(({theme:e})=>({padding:e.spacing(6),backgroundColor:e.palette.background.paper})),Wie=C(YJ)(({theme:e})=>({padding:0,marginBottom:e.spacing(6)})),Hie=C(zJ)(({theme:e})=>({gap:e.spacing(2),padding:0})),gr=({children:e,open:t,onClick:n,onClose:r,title:o,primaryButtonText:i,disabledPrimaryButton:a=!1,secondaryButtonText:s,maxWidth:c,fullWidth:u=!1,formId:d,permissionButton:p})=>x(zie,{open:t,onClose:r,fullWidth:u,"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description",maxWidth:c,children:[l(jie,{children:o}),x(Uie,{children:[l(q,{condition:!!e,show:l(Wie,{children:e})}),x(Hie,{children:[l(q,{condition:!!p,show:p,elseShow:l(q,{condition:!!n,show:l(Ve,{form:d,color:"primary",variant:"contained",onClick:d?h=>{h.preventDefault(),n&&n(h)}:n,autoFocus:!d,disabled:a,"data-testid":Tie,type:d?"submit":"button",children:i||"Yes, I'm sure"})})}),l(q,{condition:!!r,show:l(Ve,{onClick:r,children:s||"No, take me back"})})]})]})]}),$N=m.createContext(null),Dr=()=>{const e=m.useContext($N);return{trackEvent:m.useCallback((n,r,o)=>{e!=null&&e.trackEvent?e.trackEvent(n,r,o):r!=null&&r.callback&&r.callback()},[e])}},s5=({error:e})=>{const t=gt(),{trackEvent:n}=Dr();return m.useEffect(()=>{var i;const{message:r,stack:o="unknown"}=e;n("unknown_ui_error",{props:{location:((i=window==null?void 0:window.location)==null?void 0:i.href)||"unknown",message:r,stack:o}})},[]),l(Le,{sx:{backgroundColor:"neutral.light",height:"100%",p:4},children:x(gr,{open:!0,title:"Something went wrong",primaryButtonText:"Go back",onClick:()=>{var r;t("/"),(r=window==null?void 0:window.location)==null||r.reload()},secondaryButtonText:"Reload this page",onClose:()=>{var r;(r=window==null?void 0:window.location)==null||r.reload()},maxWidth:"xl",children:[l(Le,{component:"pre",sx:{color:"error.main"},children:e.message}),l(q,{condition:!!e.stack,show:l(Le,{component:"pre",sx:{color:"error.main"},children:e.stack})})]})})};var J2={},NN={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(NN);var En=NN.exports,Lb={};const Vie=k4(iq);var l5;function Tn(){return l5||(l5=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Vie}(Lb)),Lb}const kn=k4(NB);var Gie=En;Object.defineProperty(J2,"__esModule",{value:!0});var mc=J2.default=void 0,qie=Gie(Tn()),Kie=kn,Yie=(0,qie.default)((0,Kie.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");mc=J2.default=Yie;const Q2=e=>m.createElement("svg",{width:35,height:35,viewBox:"0 0 35 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M17.5 35C27.165 35 35 27.165 35 17.5S27.165 0 17.5 0 0 7.835 0 17.5 7.835 35 17.5 35Z",fill:"#1A4049"}),m.createElement("path",{d:"M15 10h-5v15h15V10h-5v10h-5V10Z",fill:"#fff"}),m.createElement("path",{d:"M20 20h5v5h-5v-5Z",fill:"#817AFE"})),DMe="/static/logoBg-3fc9c711.svg",LN=e=>m.createElement("svg",{width:35,height:35,viewBox:"0 0 35 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M17.5 35C27.165 35 35 27.165 35 17.5S27.165 0 17.5 0 0 7.835 0 17.5 7.835 35 17.5 35Z",fill:"#fff"}),m.createElement("path",{d:"M15 10h-5v15h15V10h-5v10h-5V10Z",fill:"#1A4049"}),m.createElement("path",{d:"M20 20h5v5h-5v-5Z",fill:"#817AFE"})),BMe="/static/logoWhiteBg-dacde9ce.svg",Z2=({mounted:e,enter:t,start:n,leave:r,children:o,onStart:i,onEnd:a})=>{const[s,c]=m.useState(e),[u,d]=m.useState({}),p=m.useRef(null);return m.useEffect(()=>{(p.current!==e||p===null)&&(e?(c(!0),i==null||i(),setTimeout(()=>{d(t)},50)):(r||c(!1),d(r||{})))},[e,t,i,r]),l(q,{condition:s,show:l("div",{onTransitionEnd:()=>{e||(c(!1),a==null||a())},style:{...n,...u},children:o})})};function Cv(e){return Cv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cv(e)}function ar(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Pr(e){ar(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Cv(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Kf(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function c5(e){ar(1,arguments);var t=Pr(e);return t.setHours(0,0,0,0),t}var Xie=864e5;function Jie(e,t){ar(2,arguments);var n=c5(e),r=c5(t),o=n.getTime()-Kf(n),i=r.getTime()-Kf(r);return Math.round((o-i)/Xie)}function u5(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function MN(e,t){ar(2,arguments);var n=Pr(e),r=Pr(t),o=u5(n,r),i=Math.abs(Jie(n,r));n.setDate(n.getDate()-o*i);var a=+(u5(n,r)===-o),s=o*(i-a);return s===0?0:s}const DN="pnps",Qie=e=>{if(!e)return!1;if(e.length===0)return!0;const t=e.find(n=>n.feedbackId===DN);return t?t.neverShow?!1:t.given?MN(new Date,new Date(t.given))>182:!1:!0};var BN={exports:{}},FN={};/**
247
- * @license React
248
- * use-sync-external-store-shim.production.min.js
249
- *
250
- * Copyright (c) Facebook, Inc. and its affiliates.
251
- *
252
- * This source code is licensed under the MIT license found in the
253
- * LICENSE file in the root directory of this source tree.
254
- */var Yu=m;function Zie(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var eae=typeof Object.is=="function"?Object.is:Zie,tae=Yu.useState,nae=Yu.useEffect,rae=Yu.useLayoutEffect,oae=Yu.useDebugValue;function iae(e,t){var n=t(),r=tae({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return rae(function(){o.value=n,o.getSnapshot=t,Mb(o)&&i({inst:o})},[e,n,t]),nae(function(){return Mb(o)&&i({inst:o}),e(function(){Mb(o)&&i({inst:o})})},[e]),oae(n),n}function Mb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!eae(e,n)}catch{return!0}}function aae(e,t){return t()}var sae=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?aae:iae;FN.useSyncExternalStore=Yu.useSyncExternalStore!==void 0?Yu.useSyncExternalStore:sae;BN.exports=FN;var zN=BN.exports;const cs=new WeakMap,Db={},qm={},qs=()=>{},xi=qs(),$g=Object,_n=e=>e===xi,xa=e=>typeof e=="function",ws=(e,t)=>({...e,...t}),eE="undefined",m1=typeof window!=eE,XS=typeof document!=eE,lae=()=>m1&&typeof window.requestAnimationFrame!=eE,jN=(e,t)=>{const n=cs.get(e);return[()=>!_n(t)&&e.get(t)||Db,r=>{if(!_n(t)){const o=e.get(t);t in qm||(qm[t]=o),n[5](t,ws(o,r),o||Db)}},n[6],()=>!_n(t)&&t in qm?qm[t]:!_n(t)&&e.get(t)||Db]},Km=new WeakMap;let cae=0;const Yf=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if($g(e)===e&&!r&&n!=RegExp){if(o=Km.get(e),o)return o;if(o=++cae+"~",Km.set(e,o),n==Array){for(o="@",i=0;i<e.length;i++)o+=Yf(e[i])+",";Km.set(e,o)}if(n==$g){o="#";const a=$g.keys(e).sort();for(;!_n(i=a.pop());)_n(e[i])||(o+=i+":"+Yf(e[i])+",");Km.set(e,o)}}else o=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return o};let JS=!0;const uae=()=>JS,[QS,ZS]=m1&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[qs,qs],dae=()=>{const e=XS&&document.visibilityState;return _n(e)||e!=="hidden"},pae=e=>(XS&&document.addEventListener("visibilitychange",e),QS("focus",e),()=>{XS&&document.removeEventListener("visibilitychange",e),ZS("focus",e)}),fae=e=>{const t=()=>{JS=!0,e()},n=()=>{JS=!1};return QS("online",t),QS("offline",n),()=>{ZS("online",t),ZS("offline",n)}},hae={isOnline:uae,isVisible:dae},mae={initFocus:pae,initReconnect:fae},d5=!Te.useId,Xf=!m1||"Deno"in window,gae=e=>lae()?window.requestAnimationFrame(e):setTimeout(e,1),Ng=Xf?m.useEffect:m.useLayoutEffect,Bb=typeof navigator<"u"&&navigator.connection,p5=!Xf&&Bb&&(["slow-2g","2g"].includes(Bb.effectiveType)||Bb.saveData),tE=e=>{if(xa(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Yf(e):"",[e,t]};let vae=0;const ex=()=>++vae,UN=0,WN=1,HN=2,yae=3;var gp={__proto__:null,ERROR_REVALIDATE_EVENT:yae,FOCUS_EVENT:UN,MUTATE_EVENT:HN,RECONNECT_EVENT:WN};async function VN(...e){const[t,n,r,o]=e,i=ws({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let a=i.populateCache;const s=i.rollbackOnError;let c=i.optimisticData;const u=i.revalidate!==!1,d=h=>typeof s=="function"?s(h):s!==!1,p=i.throwOnError;if(xa(n)){const h=n,g=[],v=t.keys();for(let y=v.next();!y.done;y=v.next()){const b=y.value;!/^\$(inf|sub)\$/.test(b)&&h(t.get(b)._k)&&g.push(b)}return Promise.all(g.map(f))}return f(n);async function f(h){const[g]=tE(h);if(!g)return;const[v,y]=jN(t,g),[b,w,S]=cs.get(t),k=b[g],A=()=>u&&(delete S[g],k&&k[0])?k[0](HN).then(()=>v().data):v().data;if(e.length<3)return A();let T=r,R;const P=ex();w[g]=[P,0];const _=!_n(c),I=v(),$=I.data,U=I._c,M=_n(U)?$:U;if(_&&(c=xa(c)?c(M):c,y({data:c,_c:M})),xa(T))try{T=T(M)}catch(K){R=K}if(T&&xa(T.then))if(T=await T.catch(K=>{R=K}),P!==w[g][0]){if(R)throw R;return T}else R&&_&&d(R)&&(a=!0,T=M,y({data:T,_c:xi}));a&&(R||(xa(a)&&(T=a(T,M)),y({data:T,_c:xi}))),w[g][1]=ex();const D=await A();if(y({_c:xi}),R){if(p)throw R;return}return a?D:T}}const f5=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},GN=(e,t)=>{if(!cs.has(e)){const n=ws(mae,t),r={},o=VN.bind(xi,e);let i=qs;const a={},s=(d,p)=>{const f=a[d]||[];return a[d]=f,f.push(p),()=>f.splice(f.indexOf(p),1)},c=(d,p,f)=>{e.set(d,p);const h=a[d];if(h)for(const g of h)g(p,f)},u=()=>{if(!cs.has(e)&&(cs.set(e,[r,{},{},{},o,c,s]),!Xf)){const d=n.initFocus(setTimeout.bind(xi,f5.bind(xi,r,UN))),p=n.initReconnect(setTimeout.bind(xi,f5.bind(xi,r,WN)));i=()=>{d&&d(),p&&p(),cs.delete(e)}}};return u(),[e,o,u,i]}return[e,cs.get(e)[4]]},bae=(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!_n(i)&&a>i||setTimeout(r,s,o)},wae=(e,t)=>Yf(e)==Yf(t),[nE,io]=GN(new Map),qN=ws({onLoadingSlow:qs,onSuccess:qs,onError:qs,onErrorRetry:bae,onDiscarded:qs,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:p5?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:p5?5e3:3e3,compare:wae,isPaused:()=>!1,cache:nE,mutate:io,fallback:{}},hae),KN=(e,t)=>{const n=ws(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:a}=t;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=ws(o,a))}return n},tx=m.createContext({}),Sae=e=>{const{value:t}=e,n=m.useContext(tx),r=xa(t),o=m.useMemo(()=>r?t(n):t,[r,n,t]),i=m.useMemo(()=>r?o:KN(n,o),[r,n,o]),a=o&&o.provider,s=m.useRef(xi);a&&!s.current&&(s.current=GN(a(i.cache||nE),o));const c=s.current;return c&&(i.cache=c[0],i.mutate=c[1]),Ng(()=>{if(c)return c[2]&&c[2](),c[3]},[]),m.createElement(tx.Provider,ws(e,{value:i}))},YN=m1&&window.__SWR_DEVTOOLS_USE__,xae=YN?window.__SWR_DEVTOOLS_USE__:[],Cae=()=>{YN&&(window.__SWR_DEVTOOLS_REACT__=Te)},XN=e=>xa(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Eae=()=>ws(qN,m.useContext(tx)),Tae=e=>(t,n,r)=>e(t,n&&((...i)=>{const[a]=tE(t),[,,,s]=cs.get(nE),c=s[a];return c?(delete s[a],c):n(...i)}),r),kae=xae.concat(Tae),Aae=e=>function(...n){const r=Eae(),[o,i,a]=XN(n),s=KN(r,a);let c=e;const{use:u}=s,d=(u||[]).concat(kae);for(let p=d.length;p--;)c=d[p](c);return c(o,i||s.fetcher||null,s)},Rae=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}},FMe=(e,t)=>(...n)=>{const[r,o,i]=XN(n),a=(i.use||[]).concat(t);return e(r,o,{...i,use:a})};Cae();const Fb={dedupe:!0},_ae=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:a,revalidateOnMount:s,revalidateIfStale:c,refreshInterval:u,refreshWhenHidden:d,refreshWhenOffline:p,keepPreviousData:f}=n,[h,g,v]=cs.get(r),[y,b]=tE(e),w=m.useRef(!1),S=m.useRef(!1),k=m.useRef(y),A=m.useRef(t),T=m.useRef(n),R=()=>T.current,P=()=>R().isVisible()&&R().isOnline(),[_,I,$,U]=jN(r,y),M=m.useRef({}).current,D=_n(a)?n.fallback[y]:a,K=(te,Ne)=>{for(const ye in M){const Ce=ye;if(Ce==="data"){if(!o(te[Ce],Ne[Ce])&&(!_n(te[Ce])||!o(ae,Ne[Ce])))return!1}else if(Ne[Ce]!==te[Ce])return!1}return!0},H=m.useMemo(()=>{const te=(()=>!y||!t?!1:_n(s)?R().isPaused()||i?!1:_n(c)?!0:c:s)(),Ne=Ge=>{const dt=ws(Ge);return delete dt._k,te?{isValidating:!0,isLoading:!0,...dt}:dt},ye=_(),Ce=U(),me=Ne(ye),at=ye===Ce?me:Ne(Ce);let Oe=me;return[()=>{const Ge=Ne(_());return K(Ge,Oe)?(Oe.data=Ge.data,Oe.isLoading=Ge.isLoading,Oe.isValidating=Ge.isValidating,Oe.error=Ge.error,Oe):(Oe=Ge,Ge)},()=>at]},[r,y]),Q=zN.useSyncExternalStore(m.useCallback(te=>$(y,(Ne,ye)=>{K(ye,Ne)||te()}),[r,y]),H[0],H[1]),V=!w.current,j=h[y]&&h[y].length>0,z=Q.data,O=_n(z)?D:z,B=Q.error,Z=m.useRef(O),ae=f?_n(z)?Z.current:z:O,Ae=(()=>j&&!_n(B)?!1:V&&!_n(s)?s:R().isPaused()?!1:i?_n(O)?!1:c:_n(O)||c)(),fe=!!(y&&t&&V&&Ae),Ie=_n(Q.isValidating)?fe:Q.isValidating,ne=_n(Q.isLoading)?fe:Q.isLoading,ie=m.useCallback(async te=>{const Ne=A.current;if(!y||!Ne||S.current||R().isPaused())return!1;let ye,Ce,me=!0;const at=te||{},Oe=!v[y]||!at.dedupe,Ge=()=>d5?!S.current&&y===k.current&&w.current:y===k.current,dt={isValidating:!1,isLoading:!1},ot=()=>{I(dt)},st=()=>{const Ct=v[y];Ct&&Ct[1]===Ce&&delete v[y]},Lt={isValidating:!0};_n(_().data)&&(Lt.isLoading=!0);try{if(Oe&&(I(Lt),n.loadingTimeout&&_n(_().data)&&setTimeout(()=>{me&&Ge()&&R().onLoadingSlow(y,n)},n.loadingTimeout),v[y]=[Ne(b),ex()]),[ye,Ce]=v[y],ye=await ye,Oe&&setTimeout(st,n.dedupingInterval),!v[y]||v[y][1]!==Ce)return Oe&&Ge()&&R().onDiscarded(y),!1;dt.error=xi;const Ct=g[y];if(!_n(Ct)&&(Ce<=Ct[0]||Ce<=Ct[1]||Ct[1]===0))return ot(),Oe&&Ge()&&R().onDiscarded(y),!1;const we=_().data;dt.data=o(we,ye)?we:ye,Oe&&Ge()&&R().onSuccess(ye,y,n)}catch(Ct){st();const we=R(),{shouldRetryOnError:$e}=we;we.isPaused()||(dt.error=Ct,Oe&&Ge()&&(we.onError(Ct,y,we),($e===!0||xa($e)&&$e(Ct))&&P()&&we.onErrorRetry(Ct,y,we,Qe=>{const oe=h[y];oe&&oe[0]&&oe[0](gp.ERROR_REVALIDATE_EVENT,Qe)},{retryCount:(at.retryCount||0)+1,dedupe:!0})))}return me=!1,ot(),!0},[y,r]),ce=m.useCallback((...te)=>VN(r,k.current,...te),[]);if(Ng(()=>{A.current=t,T.current=n,_n(z)||(Z.current=z)}),Ng(()=>{if(!y)return;const te=ie.bind(xi,Fb);let Ne=0;const Ce=Rae(y,h,(me,at={})=>{if(me==gp.FOCUS_EVENT){const Oe=Date.now();R().revalidateOnFocus&&Oe>Ne&&P()&&(Ne=Oe+R().focusThrottleInterval,te())}else if(me==gp.RECONNECT_EVENT)R().revalidateOnReconnect&&P()&&te();else{if(me==gp.MUTATE_EVENT)return ie();if(me==gp.ERROR_REVALIDATE_EVENT)return ie(at)}});return S.current=!1,k.current=y,w.current=!0,I({_k:b}),Ae&&(_n(O)||Xf?te():gae(te)),()=>{S.current=!0,Ce()}},[y]),Ng(()=>{let te;function Ne(){const Ce=xa(u)?u(_().data):u;Ce&&te!==-1&&(te=setTimeout(ye,Ce))}function ye(){!_().error&&(d||R().isVisible())&&(p||R().isOnline())?ie(Fb).then(Ne):Ne()}return Ne(),()=>{te&&(clearTimeout(te),te=-1)}},[u,d,p,y]),m.useDebugValue(ae),i&&_n(O)&&y)throw!d5&&Xf?new Error("Fallback data is required when using suspense in SSR."):(A.current=t,T.current=n,S.current=!1,_n(B)?ie(Fb):B);return{mutate:ce,get data(){return M.data=!0,ae},get error(){return M.error=!0,B},get isValidating(){return M.isValidating=!0,Ie},get isLoading(){return M.isLoading=!0,ne}}},Pae=$g.defineProperty(Sae,"defaultValue",{value:qN}),An=Aae(_ae),Bt=(e,t=ei)=>rE(t,e),ea=(e,t=ei)=>rE(t,e),Iae=(e=Oae())=>e==="::baseUriPath::"?"":rE(e),rE=(...e)=>["",...e].join("/").replace(/\/+$/g,"").replace(/\/+/g,"/"),Oae=()=>{const e=document.querySelector('meta[name="baseUriPath"]');return(e==null?void 0:e.content)??""},ei=Iae(),Nh=()=>{const{data:e,error:t}=An(nx,$ae,Nae),n=m.useCallback(()=>{io(nx).catch(console.warn)},[]);return{data:e,refetchAuth:n,loading:!t&&!e,error:t}},$ae=()=>fetch(nx).then(e=>e.json()),Nae={revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1,refreshInterval:15e3},nx=Bt("api/admin/user"),oE=()=>{const e=Nh();return{feedback:e.data&&"feedback"in e.data?e.data.feedback:void 0,refetchFeedback:e.refetchAuth,loading:e.loading,error:e.error}},JN=()=>{const{refetchFeedback:e}=oE(),t=Bt("api/admin/feedback"),n=m.useCallback(async o=>{await h5("POST",t,o),await e()},[t,e]),r=m.useCallback(async o=>{const i=`${t}/${o.feedbackId}`;await h5("PUT",i,o),await e()},[t,e]);return{createFeedback:n,updateFeedback:r}},h5=async(e,t,n)=>{await fetch(t,{method:e,headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})},Lh=({darkmode:e,lightmode:t})=>{const{themeMode:n}=m.useContext(kl);return l(q,{condition:n==="dark",show:e,elseShow:t})},Lae=C("h3")(({theme:e})=>({margin:0,color:e.palette.text.primary,marginLeft:e.spacing(1)})),Mae=({openUrl:e})=>{const{showFeedback:t,setShowFeedback:n}=m.useContext(kl),{createFeedback:r,updateFeedback:o}=JN(),{feedback:i}=oE(),[a,s]=m.useState(!1),c=gn(),u=DN,d=or(c.breakpoints.down("sm")),p=m.useMemo(()=>({start:{...tie(),zIndex:c.zIndex.tooltip,right:c.spacing(4),top:c.spacing(2),left:"auto",maxWidth:"400px",...d&&{right:c.spacing(3),left:c.spacing(3),top:c.spacing(5),display:"flex",maxWidth:"600px"}},enter:nie,leave:rie}),[c,d]),f=async()=>{try{await r({feedbackId:u})}catch(g){console.warn(g),n(!1)}window.open(e,"_blank"),setTimeout(()=>{n(!1)},200)},h=async()=>{try{await o({feedbackId:u,neverShow:!0})}catch(g){console.warn(g),n(!1)}setTimeout(()=>{n(!1)},100)};return Qie(i)?l(Z2,{mounted:t,start:p.start,enter:p.enter,leave:p.leave,children:l(Le,{className:"dropdown-outline",sx:{borderRadius:`${c.shape.borderRadiusLarge}px`,backgroundColor:c.palette.background.paper,zIndex:9999,boxShadow:c.boxShadows.elevated,padding:c.spacing(4),flexGrow:1},children:x(Le,{sx:{display:"flex",flexDirection:"column",rowGap:c.spacing(1.5),position:"relative"},children:[l(xt,{title:"Close",arrow:!0,children:l(Ht,{sx:g=>({position:"absolute",right:g.spacing(-4),top:g.spacing(-4)}),onClick:()=>n(!1),size:"large",children:l(mc,{})})}),x(Le,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[l(Lh,{darkmode:l(LN,{}),lightmode:l(Q2,{})}),l(Lae,{children:"Unleash feedback"})]}),l(q,{condition:a,show:l("p",{children:"Alright, apologies for the disruption. Have a nice day!"}),elseShow:x("p",{children:["Hi. Do you have 2 minutes to help us improve Unleash?"," "]})}),l(Le,{sx:{textAlign:"right",marginTop:c.spacing(2.5)},children:l(q,{condition:a,show:l(Ve,{variant:"outlined",onClick:h,children:"Don't show again"}),elseShow:x(ve,{children:[l(Ve,{variant:"contained",color:"primary",onClick:f,children:"Yes, no problem"}),l(Ve,{sx:{marginLeft:g=>g.spacing(2)},onClick:()=>s(!0),children:"Not now"})]})})})]})})}):null};var iE={},Dae=En;Object.defineProperty(iE,"__esModule",{value:!0});var QN=iE.default=void 0,Bae=Dae(Tn()),Fae=kn,zae=(0,Bae.default)((0,Fae.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");QN=iE.default=zae;var aE={},jae=En;Object.defineProperty(aE,"__esModule",{value:!0});var ZN=aE.default=void 0,Uae=jae(Tn()),Wae=kn,Hae=(0,Uae.default)((0,Wae.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}),"Settings");ZN=aE.default=Hae;var sE={},Vae=En;Object.defineProperty(sE,"__esModule",{value:!0});var e9=sE.default=void 0,Gae=Vae(Tn()),qae=kn,Kae=(0,Gae.default)((0,qae.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDown");e9=sE.default=Kae;var lE={},Yae=En;Object.defineProperty(lE,"__esModule",{value:!0});var t9=lE.default=void 0,Xae=Yae(Tn()),Jae=kn,Qae=(0,Xae.default)((0,Jae.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"OpenInNew");t9=lE.default=Qae;const Zae=C(Sd)(({theme:e})=>({width:e.spacing(3.5),height:e.spacing(3.5),margin:"auto",backgroundColor:e.palette.secondary.light,color:e.palette.text.primary,fontSize:e.fontSizes.smallerBody,fontWeight:e.fontWeight.bold})),cE=({user:e,src:t,title:n,onMouseEnter:r,onMouseLeave:o,className:i,sx:a,children:s,...c})=>{!n&&!r&&e&&(n=`${(e==null?void 0:e.name)||(e==null?void 0:e.email)||(e==null?void 0:e.username)} (id: ${e==null?void 0:e.id})`),!t&&e&&(t=e==null?void 0:e.imageUrl);let u;return!s&&e&&(u=(e==null?void 0:e.name)||(e==null?void 0:e.email)||(e==null?void 0:e.username),u&&u.includes(" ")?u=`${u.split(" ")[0][0]}${u.split(" ")[1][0]}`.toUpperCase():u&&(u=u[0].toUpperCase())),l(Zae,{className:i,sx:a,...c,"data-loading":!0,alt:"Gravatar",src:t,title:n,onMouseEnter:r,onMouseLeave:o,children:l(q,{condition:!!u,show:u,elseShow:s})})},ese=C(wr)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",padding:e.spacing(3),borderRadius:e.shape.borderRadiusMedium,boxShadow:e.boxShadows.popup,position:"absolute",zIndex:5e3,minWidth:e.spacing(37.5),right:0,[e.breakpoints.down("md")]:{width:"100%",padding:"1rem"}})),tse=C("div")(({theme:e})=>({alignSelf:"flex-start",display:"flex",alignItems:"center",marginBottom:e.spacing(2)})),nse=C(cE)(({theme:e})=>({width:e.spacing(4.75),height:e.spacing(4.75),marginRight:e.spacing(1.5)})),rse=C(se)(({theme:e})=>({color:e.palette.text.secondary})),n9=C(Vr)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1),padding:0,color:e.palette.links,fontWeight:e.fontWeight.medium,"&:hover, &:focus":{textDecoration:"underline"},"& svg":{fontSize:e.spacing(2.25)}})),ose=C(n9)(({theme:e})=>({alignSelf:"flex-start"})),ise=C(Ve)(({theme:e})=>({width:"100%",height:e.spacing(5)})),m5=C("div")(({theme:e})=>({width:"100%",height:"1px",backgroundColor:e.palette.divider,margin:e.spacing(3,0)})),ase=({id:e,showProfile:t,setShowProfile:n,profile:r})=>l(q,{condition:t,show:x(ese,{className:"dropdown-outline",id:e,children:[x(tse,{children:[l(nse,{user:r}),x("div",{children:[l(se,{children:r.name||r.username}),l(rse,{variant:"body2",children:r.email})]})]}),l(n9,{component:hn,to:"/profile",underline:"hover",onClick:()=>n(!1),children:"View profile settings"}),l(m5,{}),x(ose,{component:"a",href:"https://www.getunleash.io/privacy-policy",underline:"hover",rel:"noopener noreferrer",target:"_blank",children:["Privacy Policy ",l(t9,{})]}),l(m5,{}),l("form",{method:"POST",action:`${ei}/logout`,children:l(ise,{type:"submit",variant:"outlined",color:"primary",children:"Log out"})})]})}),gl=(e="useId")=>m.useMemo(()=>`${e}-${sse++}`,[e]);let sse=0;const lse=C(cE)(({theme:e})=>({width:e.spacing(4.5),height:e.spacing(4.5)})),cse=C("div")(({theme:e})=>({position:"relative"})),use=C(Ve)(({theme:e})=>({...ji(e),...Ac,...Qoe,color:"inherit",padding:e.spacing(.5,2),"&:hover":{backgroundColor:"transparent"}})),dse=C(e9)(({theme:e})=>({color:e.palette.neutral.main})),pse=({profile:e})=>{const[t,n]=m.useState(!1),r=gl();return l(k6,{onClickAway:()=>n(!1),children:x(cse,{children:[x(use,{onClick:()=>n(o=>!o),"aria-controls":t?r:void 0,"aria-expanded":t,color:"secondary",disableRipple:!0,children:[l(lse,{user:e,"data-testid":Iie}),l(dse,{})]}),l(ase,{id:r,showProfile:t,setShowProfile:n,profile:e})]})})},pi=()=>{const e=Nh();return{user:e.data&&"user"in e.data?e.data.user:void 0,refetchUser:e.refetchAuth,loading:e.loading,error:e.error}},g5=()=>{const{user:e}=pi();return e?l(pse,{profile:e}):null};var uE={},fse=En;Object.defineProperty(uE,"__esModule",{value:!0});var dE=uE.default=void 0,hse=fse(Tn()),v5=kn,mse=(0,hse.default)([(0,v5.jsx)("path",{d:"M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5 1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5V6c-.6-.45-1.25-.75-2-1zm0 13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5V8c1.35-.85 3.8-1.5 5.5-1.5 1.2 0 2.4.15 3.5.5v11.5z"},"0"),(0,v5.jsx)("path",{d:"M17.5 10.5c.88 0 1.73.09 2.5.26V9.24c-.79-.15-1.64-.24-2.5-.24-1.7 0-3.24.29-4.5.83v1.66c1.13-.64 2.7-.99 4.5-.99zM13 12.49v1.66c1.13-.64 2.7-.99 4.5-.99.88 0 1.73.09 2.5.26V11.9c-.79-.15-1.64-.24-2.5-.24-1.7 0-3.24.3-4.5.83zm4.5 1.84c-1.7 0-3.24.29-4.5.83v1.66c1.13-.64 2.7-.99 4.5-.99.88 0 1.73.09 2.5.26v-1.52c-.79-.16-1.64-.24-2.5-.24z"},"1")],"MenuBook");dE=uE.default=mse;const gse=e=>m.createElement("svg",{id:"bg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 653.4 251.24",...e},m.createElement("defs",null,m.createElement("style",null,".cls-1{fill:#1a4049;}.cls-2{fill:#fff;}.cls-3{fill:#817afe;}")),m.createElement("circle",{className:"cls-1",cx:125.62,cy:125.62,r:80}),m.createElement("polygon",{className:"cls-2",points:"137.05 91.33 137.05 114.19 137.05 137.05 159.9 137.05 159.9 114.19 159.9 91.33 137.05 91.33"}),m.createElement("polygon",{className:"cls-2",points:"114.19 114.19 114.19 91.33 91.33 91.33 91.33 114.19 91.33 137.05 91.33 159.9 114.19 159.9 137.05 159.9 137.05 137.05 114.19 137.05 114.19 114.19"}),m.createElement("polygon",{className:"cls-2",points:"137.05 91.33 137.05 114.19 137.05 137.05 159.9 137.05 159.9 114.19 159.9 91.33 137.05 91.33"}),m.createElement("polygon",{className:"cls-2",points:"114.19 114.19 114.19 91.33 91.33 91.33 91.33 114.19 91.33 137.05 91.33 159.9 114.19 159.9 137.05 159.9 137.05 137.05 114.19 137.05 114.19 114.19"}),m.createElement("rect",{className:"cls-3",x:137.05,y:137.05,width:22.86,height:22.86}),m.createElement("path",{className:"cls-1",d:"M251.58,139.13V112.77h11.93v25.06c0,7.36,3.91,12.2,11.27,12.2s11.27-4.84,11.27-12.2V112.77h12v26.36c0,12.67-8.48,21.8-23.1,21.8C260.06,160.93,251.58,151.8,251.58,139.13Z"}),m.createElement("path",{className:"cls-1",d:"M321.91,159.9H310.08V112.77h11.83v7.92a17.93,17.93,0,0,1,15.65-9c11.83,0,19.66,8.67,19.66,20.68V159.9h-12V134.75c0-7.45-4.38-12.39-11.46-12.39s-11.83,5-11.83,12.39Z"}),m.createElement("path",{className:"cls-1",d:"M369.42,91.34h11.92V159.9H369.42Z"}),m.createElement("path",{className:"cls-1",d:"M441.24,137v1.3H403.79c.47,7.36,5.87,13,13.69,13,7.55,0,10.62-3.82,11.46-5.12h11.74c-.75,4.84-7.17,15-23.2,15-15.27,0-25.61-10.61-25.61-24.77,0-14.63,10.24-24.78,24.68-24.78S441.24,121.62,441.24,137Zm-37.08-6.9h24.6c-1.77-6-6.15-9.31-12.21-9.31C410.12,120.78,405.65,124.23,404.16,130.09Z"}),m.createElement("path",{className:"cls-1",d:"M467.78,130.37h15.47c0-5.68-4.29-9.31-11.27-9.31-6.62,0-9,3.54-9.78,4.75h-12c1-4.94,6.89-14.25,21.8-14.25,14.62,0,22.73,7.64,22.73,18.81V146.3c0,2.89,1,4,3.72,4.29v9.59h-3.72c-6.06-.09-9.69-2.33-11-6.52-2.23,3.45-7.26,7.27-15.27,7.27-11.09,0-19.47-6.24-19.47-15.93S456.14,130.37,467.78,130.37Zm15.47,12.11v-4H469.74c-5.59,0-9,2-9,6.33,0,4.57,4.29,7.27,10.25,7.27C477.66,152.08,483.25,148.82,483.25,142.48Z"}),m.createElement("path",{className:"cls-1",d:"M523.12,140.62c-10.34-.74-17.33-5.59-17.33-14.72,0-8.85,8.1-14.44,20.77-14.44,17,0,21.8,8.76,23.1,13.32H537.09c-.84-1-3.54-4.28-10.62-4.28-5.68,0-8.66,1.86-8.66,4.75,0,2.61,2,4.29,6.7,4.94l8,.84c12.77,1.11,18,6,18,15.27,0,8.85-7.36,14.91-21.8,14.91-17.51,0-23.19-10.16-24.12-14.53h12.76c.47,1.11,3.35,5.31,11.36,5.31,6.62,0,9.69-2.24,9.69-5.22s-1.67-4.66-7-5.31C528.05,141.18,526.38,141,523.12,140.62Z"}),m.createElement("path",{className:"cls-1",d:"M571.55,159.9H559.72V91.34h11.83v29.35a17.93,17.93,0,0,1,15.65-9c11.83,0,19.66,8.67,19.66,20.68V159.9h-12V134.75c0-7.45-4.38-12.39-11.46-12.39s-11.83,5-11.83,12.39Z"})),vse=e=>m.createElement("svg",{id:"bg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 653.4 251.24",...e},m.createElement("defs",null,m.createElement("style",null,".cls-1{fill:#fff;}.cls-2{fill:#1a4049;}.cls-3{fill:#817afe;}")),m.createElement("circle",{className:"cls-1",cx:125.62,cy:125.62,r:80}),m.createElement("polygon",{className:"cls-1",points:"137.05 91.33 137.05 114.19 137.05 137.05 159.9 137.05 159.9 114.19 159.9 91.33 137.05 91.33"}),m.createElement("polygon",{className:"cls-1",points:"114.19 114.19 114.19 91.33 91.33 91.33 91.33 114.19 91.33 137.05 91.33 159.9 114.19 159.9 137.05 159.9 137.05 137.05 114.19 137.05 114.19 114.19"}),m.createElement("polygon",{className:"cls-2",points:"137.05 91.33 137.05 114.19 137.05 137.05 159.9 137.05 159.9 114.19 159.9 91.33 137.05 91.33"}),m.createElement("polygon",{className:"cls-2",points:"114.19 114.19 114.19 91.33 91.33 91.33 91.33 114.19 91.33 137.05 91.33 159.9 114.19 159.9 137.05 159.9 137.05 137.05 114.19 137.05 114.19 114.19"}),m.createElement("rect",{className:"cls-3",x:137.05,y:137.05,width:22.86,height:22.86}),m.createElement("path",{className:"cls-1",d:"M251.58,139.13V112.77h11.93v25.06c0,7.36,3.91,12.2,11.27,12.2s11.27-4.84,11.27-12.2V112.77h12v26.36c0,12.67-8.48,21.8-23.1,21.8C260.06,160.93,251.58,151.8,251.58,139.13Z"}),m.createElement("path",{className:"cls-1",d:"M321.91,159.9H310.08V112.77h11.83v7.92a17.93,17.93,0,0,1,15.65-9c11.83,0,19.66,8.67,19.66,20.68V159.9h-12V134.75c0-7.45-4.38-12.39-11.46-12.39s-11.83,5-11.83,12.39Z"}),m.createElement("path",{className:"cls-1",d:"M369.42,91.34h11.92V159.9H369.42Z"}),m.createElement("path",{className:"cls-1",d:"M441.24,137v1.3H403.79c.47,7.36,5.87,13,13.69,13,7.55,0,10.62-3.82,11.46-5.12h11.74c-.75,4.84-7.17,15-23.2,15-15.27,0-25.61-10.61-25.61-24.77,0-14.63,10.24-24.78,24.68-24.78S441.24,121.62,441.24,137Zm-37.08-6.9h24.6c-1.77-6-6.15-9.31-12.21-9.31C410.12,120.78,405.65,124.23,404.16,130.09Z"}),m.createElement("path",{className:"cls-1",d:"M467.78,130.37h15.47c0-5.68-4.29-9.31-11.27-9.31-6.62,0-9,3.54-9.78,4.75h-12c1-4.94,6.89-14.25,21.8-14.25,14.62,0,22.73,7.64,22.73,18.81V146.3c0,2.89,1,4,3.72,4.29v9.59h-3.72c-6.06-.09-9.69-2.33-11-6.52-2.23,3.45-7.26,7.27-15.27,7.27-11.09,0-19.47-6.24-19.47-15.93S456.14,130.37,467.78,130.37Zm15.47,12.11v-4H469.74c-5.59,0-9,2-9,6.33,0,4.57,4.29,7.27,10.25,7.27C477.66,152.08,483.25,148.82,483.25,142.48Z"}),m.createElement("path",{className:"cls-1",d:"M523.12,140.62c-10.34-.74-17.33-5.59-17.33-14.72,0-8.85,8.1-14.44,20.77-14.44,17,0,21.8,8.76,23.1,13.32H537.09c-.84-1-3.54-4.28-10.62-4.28-5.68,0-8.66,1.86-8.66,4.75,0,2.61,2,4.29,6.7,4.94l8,.84c12.77,1.11,18,6,18,15.27,0,8.85-7.36,14.91-21.8,14.91-17.51,0-23.19-10.16-24.12-14.53h12.76c.47,1.11,3.35,5.31,11.36,5.31,6.62,0,9.69-2.24,9.69-5.22s-1.67-4.66-7-5.31C528.05,141.18,526.38,141,523.12,140.62Z"}),m.createElement("path",{className:"cls-1",d:"M571.55,159.9H559.72V91.34h11.83v29.35a17.93,17.93,0,0,1,15.65-9c11.83,0,19.66,8.67,19.66,20.68V159.9h-12V134.75c0-7.45-4.38-12.39-11.46-12.39s-11.83,5-11.83,12.39Z"}));var pE={},yse=En;Object.defineProperty(pE,"__esModule",{value:!0});var r9=pE.default=void 0;Sse(m);var bse=yse(Tn()),wse=kn;function o9(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(o9=function(r){return r?n:t})(e)}function Sse(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=o9(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}var xse=(0,bse.default)((0,wse.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub");r9=pE.default=xse;var fE={},Cse=En;Object.defineProperty(fE,"__esModule",{value:!0});var i9=fE.default=void 0,Ese=Cse(Tn()),Tse=kn,kse=(0,Ese.default)((0,Tse.jsx)("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9H9V9h10v2zm-4 4H9v-2h6v2zm4-8H9V5h10v2z"}),"LibraryBooks");i9=fE.default=kse;var hE={},Ase=En;Object.defineProperty(hE,"__esModule",{value:!0});var a9=hE.default=void 0,Rse=Ase(Tn()),_se=kn,Pse=(0,Rse.default)((0,_se.jsx)("path",{d:"M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"ExitToApp");a9=hE.default=Pse;const Ise=C(_a)({minWidth:"150px",height:"100%",width:"100%",margin:"0",padding:"0"}),Ose=C(hn)(({theme:e})=>({textDecoration:"none",alignItems:"center",display:"flex",color:"inherit",height:"100%",width:"100%","&&":{color:e.palette.text.primary,padding:e.spacing(1,2)}})),$se=C("span")(({theme:e})=>({width:"12.5px",height:"12.5px",display:"block",backgroundColor:e.palette.primary.main,marginRight:"1rem",borderRadius:"2px"})),y5=({path:e,text:t,handleClose:n})=>l(Ise,{onClick:()=>{n()},children:x(Vr,{style:{textDecoration:"none"},component:Ose,to:e,underline:"hover",children:[l($se,{}),t]})}),Nse="_drawer_cxqms_1",Lse="_drawerTitle_cxqms_6",Mse="_drawerContainer_cxqms_13",Dse="_drawerTitleLogo_cxqms_17",Bse="_drawerTitleText_cxqms_22",Fse="_drawerList_cxqms_27",zse="_iconLinkList_cxqms_28",jse="_iconLink_cxqms_28",Use="_navigationLink_cxqms_42",Wse="_navigationLinkActive_cxqms_50",Hse="_navigationIcon_cxqms_56",Vse="_iconGitHub_cxqms_61",Ko={drawer:Nse,drawerTitle:Lse,drawerContainer:Mse,drawerTitleLogo:Dse,drawerTitleText:Bse,drawerList:Fse,iconLinkList:zse,iconLink:jse,navigationLink:Use,navigationLinkActive:Wse,navigationIcon:Hse,iconGitHub:Vse},Gse=({links:e=[],title:t="Unleash",flags:n={},open:r=!1,toggleDrawer:o,admin:i=!1,routes:a})=>{const s=()=>e.map(c=>{let u=null;return c.value==="GitHub"?u=l(r9,{className:Ko.navigationIcon}):c.value==="Documentation"&&(u=l(i9,{className:Ko.navigationIcon})),x("a",{href:c.href,rel:"noopener noreferrer",target:"_blank",className:Ko.iconLink,children:[u,c.value]},c.value)});return l(xQ,{className:Ko.drawer,open:r,anchor:"left",onClose:o,children:x("nav",{id:"header-drawer",className:Ko.drawerContainer,children:[l("div",{children:x(hn,{to:"/",className:Ko.drawerTitle,"aria-label":"Home",onClick:()=>o(),children:[l(Q2,{className:Ko.drawerTitleLogo,"aria-label":"Unleash logo"}),l("span",{className:Ko.drawerTitleText,children:t})]})}),l(To,{}),l(ia,{className:Ko.drawerList,children:a.mobileRoutes.map(c=>l(y5,{handleClose:()=>o(),path:c.path,text:c.title},c.path))}),l(q,{condition:i,show:x(ve,{children:[l(To,{}),l(ia,{className:Ko.drawerList,children:a.adminRoutes.map(c=>l(y5,{handleClose:()=>o(),path:c.path,text:c.title},c.path))})]})}),l(To,{}),x("div",{className:Ko.iconLinkList,children:[s(),x("a",{className:Ko.iconLink,href:`${ei}/logout`,children:[l(a9,{className:Ko.navigationIcon}),"Sign out"]})]})]})})},ca=Xe(l("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),qse=Xe(l("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9h-4v4h-2v-4H9V9h4V5h2v4h4v2z"}),"AddToPhotos"),Kse=Xe(l("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3-8c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3z"}),"Adjust"),Yse=Xe(l("path",{d:"M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z"}),"Apps"),Xse=Xe(l("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),Jse=Xe(l("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"),Ev=Xe(l("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),s9=Xe(l("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle"),l9=Xe(l("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"CircleOutlined"),Qse=Xe(l("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"}),"Clear"),g1=Xe(l("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"),c9=Xe(l("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 12 19 6.41z"}),"CloseOutlined"),u9=Xe(l("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.5 14H8c-1.66 0-3-1.34-3-3s1.34-3 3-3l.14.01C8.58 8.28 10.13 7 12 7c2.21 0 4 1.79 4 4h.5c1.38 0 2.5 1.12 2.5 2.5S17.88 16 16.5 16z"}),"CloudCircle"),Zse=Xe(l("path",{d:"M9.37 5.51c-.18.64-.27 1.31-.27 1.99 0 4.08 3.32 7.4 7.4 7.4.68 0 1.35-.09 1.99-.27C17.45 17.19 14.93 19 12 19c-3.86 0-7-3.14-7-7 0-2.93 1.81-5.45 4.37-6.49zM12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"}),"DarkModeOutlined"),go=Xe(l("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),ele=Xe(l("path",{d:"m17 16-4-4V8.82C14.16 8.4 15 7.3 15 6c0-1.66-1.34-3-3-3S9 4.34 9 6c0 1.3.84 2.4 2 2.82V12l-4 4H3v5h5v-3.05l4-4.2 4 4.2V21h5v-5h-4z"}),"DeviceHub"),d9=Xe(l("path",{d:"M11 5.08V2c-5 .5-9 4.81-9 10s4 9.5 9 10v-3.08c-3-.48-6-3.4-6-6.92s3-6.44 6-6.92zM18.97 11H22c-.47-5-4-8.53-9-9v3.08C16 5.51 18.54 8 18.97 11zM13 18.92V22c5-.47 8.53-4 9-9h-3.03c-.43 3-2.97 5.49-5.97 5.92z"}),"DonutLarge"),tle=Xe(l("path",{d:"M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"}),"Download"),nle=Xe(l("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"DragIndicator"),Ui=Xe(l("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit"),rle=Xe(l("path",{d:"M12 7c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1s-1-.45-1-1V8c0-.55.45-1 1-1zm-.01-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 8zm1-3h-2v-2h2v2z"}),"ErrorOutlineRounded"),p9=Xe(l("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),f9=Xe(l("path",{d:"M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11z"}),"Extension"),ole=Xe(l("circle",{cx:"12",cy:"12",r:"8"}),"FiberManualRecord"),h9=Xe(l("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4 6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"}),"FileCopy"),ile=Xe(l("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),ale=Xe(l("path",{d:"m14.4 6-.24-1.2c-.09-.46-.5-.8-.98-.8H6c-.55 0-1 .45-1 1v15c0 .55.45 1 1 1s1-.45 1-1v-6h5.6l.24 1.2c.09.47.5.8.98.8H19c.55 0 1-.45 1-1V7c0-.55-.45-1-1-1h-4.6z"}),"FlagRounded"),sle=Xe(l("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub"),Tv=Xe(l("path",{d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z"}),"HelpOutline"),lle=Xe(l("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info"),pf=Xe(l("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined"),rx=Xe(l("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDown"),ox=Xe(l("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDownOutlined"),cle=Xe(l("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp"),ule=Xe(l("path",{d:"M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z"}),"Label"),m9=Xe(l("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"Launch"),dle=Xe(l("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9H9V9h10v2zm-4 4H9v-2h6v2zm4-8H9V5h10v2z"}),"LibraryBooks"),ple=Xe(l("path",{d:"M12 9c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z"}),"LightModeOutlined"),fle=Xe(l("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}),"Link"),hle=Xe(l("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"}),"Lock"),mle=Xe(l("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),gle=Xe(l("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"}),"Pause"),vle=Xe(l("path",{d:"M8 5v14l11-7z"}),"PlayArrow"),yle=Xe(l("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonChecked"),b5=Xe(l("path",{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM12 17.3c-.72 0-1.3-.58-1.3-1.3 0-.72.58-1.3 1.3-1.3.72 0 1.3.58 1.3 1.3 0 .72-.58 1.3-1.3 1.3zm1-4.3h-2V7h2v6z"}),"Report"),mE=Xe(l("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search"),gE=Xe(l("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),vE=Xe(l("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarBorder"),ble=Xe(l("path",{d:"M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07s-.36-.02-.52-.07l-4.55 4.56c.05.16.07.33.07.51 0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.18 0 .35.02.51.07l4.56-4.55C8.02 9.36 8 9.18 8 9c0-1.1.9-2 2-2s2 .9 2 2c0 .18-.02.36-.07.52l2.55 2.55c.16-.05.34-.07.52-.07s.36.02.52.07l3.55-3.56C19.02 8.35 19 8.18 19 8c0-1.1.9-2 2-2s2 .9 2 2z"}),"Timeline"),wle=Xe(l("path",{d:"M17 6H7c-3.31 0-6 2.69-6 6s2.69 6 6 6h10c3.31 0 6-2.69 6-6s-2.69-6-6-6zm0 10H7c-2.21 0-4-1.79-4-4s1.79-4 4-4h10c2.21 0 4 1.79 4 4s-1.79 4-4 4zM7 9c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"ToggleOffOutlined"),Sle=Xe(l("path",{d:"m19.07 4.93-1.41 1.41C19.1 7.79 20 9.79 20 12c0 4.42-3.58 8-8 8s-8-3.58-8-8c0-4.08 3.05-7.44 7-7.93v2.02C8.16 6.57 6 9.03 6 12c0 3.31 2.69 6 6 6s6-2.69 6-6c0-1.66-.67-3.16-1.76-4.24l-1.41 1.41C15.55 9.9 16 10.9 16 12c0 2.21-1.79 4-4 4s-4-1.79-4-4c0-1.86 1.28-3.41 3-3.86v2.14c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2s2-.9 2-2c0-.74-.4-1.38-1-1.72V2h-1C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-2.76-1.12-5.26-2.93-7.07z"}),"TrackChanges"),g9=Xe(l("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"}),"Undo"),xle=Xe(l("path",{d:"M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z"}),"UnfoldMoreOutlined"),v9=Xe(l("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility"),y9=Xe(l("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),Cle=Xe(l("path",{d:"M12 6c3.79 0 7.17 2.13 8.82 5.5-.59 1.22-1.42 2.27-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6zm-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14zM2.01 3.87l2.68 2.68C3.06 7.83 1.77 9.53 1 11.5 2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45 2.01 3.87zm7.5 7.5 2.61 2.61c-.04.01-.08.02-.12.02-1.38 0-2.5-1.12-2.5-2.5 0-.05.01-.08.01-.13zm-3.4-3.4 1.75 1.75c-.23.55-.36 1.15-.36 1.78 0 2.48 2.02 4.5 4.5 4.5.63 0 1.23-.13 1.77-.36l.98.98c-.88.24-1.8.38-2.75.38-3.79 0-7.17-2.13-8.82-5.5.7-1.43 1.72-2.61 2.93-3.53z"}),"VisibilityOffOutlined"),Ele=Xe(l("path",{d:"M12 6c3.79 0 7.17 2.13 8.82 5.5C19.17 14.87 15.79 17 12 17s-7.17-2.13-8.82-5.5C4.83 8.13 8.21 6 12 6m0-2C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 5c1.38 0 2.5 1.12 2.5 2.5S13.38 14 12 14s-2.5-1.12-2.5-2.5S10.62 9 12 9m0-2c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7z"}),"VisibilityOutlined"),Tle=Xe(l("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning"),b9=Xe([l("path",{d:"M12 5.99 19.53 19H4.47L12 5.99M12 2 1 21h22L12 2z"},"0"),l("path",{d:"M13 16h-2v2h2zm0-6h-2v5h2z"},"1")],"WarningAmber"),w5={name:"Unleash",version:"3.x",slogan:"The enterprise ready feature toggle service.",flags:{P:!1,RE:!1,EEA:!1,SE:!1,T:!1,UNLEASH_CLOUD:!1,UG:!1},links:[{value:"Documentation",icon:dle,href:"https://docs.getunleash.io/docs?source=oss",title:"User documentation"},{value:"GitHub",icon:"c_github",href:"https://github.com/Unleash",title:"Source code on GitHub"}],networkViewEnabled:!1},yE=400,Mh=200,kle=201,w9=404,S9=403,x9=401;class C9 extends Error{constructor(n=x9){super("Authentication required");rs(this,"statusCode");this.name="AuthenticationError",this.statusCode=n}}class Ale extends Error{constructor(n=S9,r={}){var o;super((o=r.details)!=null&&o.length?r.details[0].message:"You cannot perform this action");rs(this,"statusCode");rs(this,"body");this.name="ForbiddenError",this.statusCode=n,this.body=r}}class bE extends Error{constructor(n=yE,r={}){var o;super((o=r.details)!=null&&o.length?r.details[0].message:"Bad request");rs(this,"statusCode");rs(this,"body");this.name="BadRequestError",this.statusCode=n,this.body=r}}class wE extends Error{constructor(n=w9){super("The requested resource could not be found.");rs(this,"statusCode");this.name="NotFoundError",this.statusCode=n}}class E9 extends Error{constructor(n,r,o){super(`An error occurred while trying to get ${n}.`);rs(this,"status");rs(this,"body");this.name="ResponseError",this.status=r,this.body=o}}const ix={Accept:"application/json","Content-Type":"application/json"},Rn=e=>async t=>{if(!t.ok)throw new E9(e,t.status,await Rle(t));return t},Rle=async e=>{try{return await e.json()}catch{return e.statusText}},Ot=()=>{const e=Bt("api/admin/ui-config"),{data:t,error:n,mutate:r}=An(e,_le),o=m.useCallback(()=>{var c,u;return!((u=(c=t==null?void 0:t.versionInfo)==null?void 0:c.current)!=null&&u.enterprise)},[t]),i=m.useCallback(()=>{var c;return((c=t==null?void 0:t.environment)==null?void 0:c.toLowerCase())==="pro"},[t]),a=m.useCallback(()=>{var c,u,d;return((c=t==null?void 0:t.environment)==null?void 0:c.toLowerCase())!=="pro"&&!!((d=(u=t==null?void 0:t.versionInfo)==null?void 0:u.current)!=null&&d.enterprise)},[t]);return{uiConfig:m.useMemo(()=>({...w5,...t,flags:{...w5.flags,...t==null?void 0:t.flags}}),[t]),loading:!n&&!t,error:n,refetch:r,isOss:o,isPro:i,isEnterprise:a}},_le=e=>fetch(e).then(Rn("configuration")).then(t=>t.json()),fi="ADMIN",Jf="CREATE_FEATURE",SE="UPDATE_FEATURE",T9="DELETE_FEATURE",kv="CREATE_STRATEGY",Qf="UPDATE_STRATEGY",Ple="DELETE_STRATEGY",S5="UPDATE_APPLICATION",Av="CREATE_CONTEXT_FIELD",k9="UPDATE_CONTEXT_FIELD",Ile="DELETE_CONTEXT_FIELD",x5="CREATE_PROJECT",ax="UPDATE_PROJECT",Ole="DELETE_PROJECT",$le="DELETE_TAG_TYPE",Zf="UPDATE_TAG_TYPE",A9="CREATE_ADDON",sx="UPDATE_ADDON",Nle="DELETE_ADDON",zMe="CREATE_API_TOKEN",jMe="DELETE_API_TOKEN",UMe="READ_API_TOKEN",Lle="DELETE_ENVIRONMENT",lx="UPDATE_ENVIRONMENT",R9="CREATE_FEATURE_STRATEGY",v1="UPDATE_FEATURE_STRATEGY",Mle="DELETE_FEATURE_STRATEGY",Dle="UPDATE_FEATURE_ENVIRONMENT",Ble="UPDATE_FEATURE_ENVIRONMENT_VARIANTS",WMe="MOVE_FEATURE_TOGGLE",y1="CREATE_SEGMENT",xE="UPDATE_SEGMENT",Fle="DELETE_SEGMENT",HMe="APPLY_CHANGE_REQUEST",VMe="APPROVE_CHANGE_REQUEST",_9="SKIP_CHANGE_REQUEST",GMe="CREATE_PROJECT_API_TOKEN",CE="UPDATE_PROJECT_SEGMENT",zle=C(hn)(({theme:e})=>({textDecoration:"none",alignItems:"center",display:"flex",color:"inherit",height:"100%",width:"100%","&&":{padding:e.spacing(1,2)}})),jle=C("span")(({theme:e})=>({width:"12.5px",height:"12.5px",display:"block",backgroundColor:e.palette.primary.main,marginRight:e.spacing(2),borderRadius:"2px"})),C5=({options:e,id:t,handleClose:n,anchorEl:r,style:o})=>l(V2,{id:t,onClose:n,anchorEl:r,open:!!r,style:o,children:e.map(i=>x(ja,{component:zle,to:i.path,onClick:n,children:[l(jle,{}),i.title]},i.path))});var P9={exports:{}},cx={exports:{}};(function(e,t){(function(n,r){r(t,m)})(Ci,function(n,r){function o(E,L,F,W,J,Y,re){try{var he=E[Y](re),be=he.value}catch(Ee){return void F(Ee)}he.done?L(be):Promise.resolve(be).then(W,J)}function i(E){return function(){var L=this,F=arguments;return new Promise(function(W,J){var Y=E.apply(L,F);function re(be){o(Y,W,J,re,he,"next",be)}function he(be){o(Y,W,J,re,he,"throw",be)}re(void 0)})}}function a(){return(a=Object.assign||function(E){for(var L=1;L<arguments.length;L++){var F=arguments[L];for(var W in F)Object.prototype.hasOwnProperty.call(F,W)&&(E[W]=F[W])}return E}).apply(this,arguments)}function s(E,L){if(E==null)return{};var F,W,J={},Y=Object.keys(E);for(W=0;W<Y.length;W++)F=Y[W],L.indexOf(F)>=0||(J[F]=E[F]);return J}function c(E){var L=function(F,W){if(typeof F!="object"||F===null)return F;var J=F[Symbol.toPrimitive];if(J!==void 0){var Y=J.call(F,W||"default");if(typeof Y!="object")return Y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(W==="string"?String:Number)(F)}(E,"string");return typeof L=="symbol"?L:String(L)}r=r&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r;var u={init:"init"},d=function(E){var L=E.value;return L===void 0?"":L},p=function(){return r.createElement(r.Fragment,null," ")},f={Cell:d,width:150,minWidth:0,maxWidth:Number.MAX_SAFE_INTEGER};function h(){for(var E=arguments.length,L=new Array(E),F=0;F<E;F++)L[F]=arguments[F];return L.reduce(function(W,J){var Y=J.style,re=J.className;return W=a({},W,{},s(J,["style","className"])),Y&&(W.style=W.style?a({},W.style||{},{},Y||{}):Y),re&&(W.className=W.className?W.className+" "+re:re),W.className===""&&delete W.className,W},{})}var g=function(E,L){return L===void 0&&(L={}),function(F){return F===void 0&&(F={}),[].concat(E,[F]).reduce(function(W,J){return function Y(re,he,be){return typeof he=="function"?Y({},he(re,be)):Array.isArray(he)?h.apply(void 0,[re].concat(he)):h(re,he)}(W,J,a({},L,{userProps:F}))},{})}},v=function(E,L,F,W){return F===void 0&&(F={}),E.reduce(function(J,Y){return Y(J,F)},L)},y=function(E,L,F){return F===void 0&&(F={}),E.forEach(function(W){W(L,F)})};function b(E,L,F,W){E.findIndex(function(J){return J.pluginName===F}),L.forEach(function(J){E.findIndex(function(Y){return Y.pluginName===J})})}function w(E,L){return typeof E=="function"?E(L):E}function S(E){var L=r.useRef();return L.current=E,r.useCallback(function(){return L.current},[])}var k=typeof document<"u"?r.useLayoutEffect:r.useEffect;function A(E,L){var F=r.useRef(!1);k(function(){F.current&&E(),F.current=!0},L)}function T(E,L,F){return F===void 0&&(F={}),function(W,J){J===void 0&&(J={});var Y=typeof W=="string"?L[W]:W;if(Y===void 0)throw console.info(L),new Error("Renderer Error ☝️");return R(Y,a({},E,{column:L},F,{},J))}}function R(E,L){return function(W){return typeof W=="function"&&(J=Object.getPrototypeOf(W)).prototype&&J.prototype.isReactComponent;var J}(F=E)||typeof F=="function"||function(W){return typeof W=="object"&&typeof W.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(W.$$typeof.description)}(F)?r.createElement(E,L):E;var F}function P(E,L,F){return F===void 0&&(F=0),E.map(function(W){return I(W=a({},W,{parent:L,depth:F})),W.columns&&(W.columns=P(W.columns,W,F+1)),W})}function _(E){return H(E,"columns")}function I(E){var L=E.id,F=E.accessor,W=E.Header;if(typeof F=="string"){L=L||F;var J=F.split(".");F=function(Y){return function(re,he,be){if(!he)return re;var Ee,We=typeof he=="function"?he:JSON.stringify(he),Be=M.get(We)||function(){var ze=function(Pe){return function je(Ke,rt){if(rt===void 0&&(rt=[]),Array.isArray(Ke))for(var mt=0;mt<Ke.length;mt+=1)je(Ke[mt],rt);else rt.push(Ke);return rt}(Pe).map(function(je){return String(je).replace(".","_")}).join(".").replace(B,".").replace(Z,"").split(".")}(he);return M.set(We,ze),ze}();try{Ee=Be.reduce(function(ze,Pe){return ze[Pe]},re)}catch{}return Ee!==void 0?Ee:be}(Y,J)}}if(!L&&typeof W=="string"&&W&&(L=W),!L&&E.columns)throw console.error(E),new Error('A column ID (or unique "Header" value) is required!');if(!L)throw console.error(E),new Error("A column ID (or string accessor) is required!");return Object.assign(E,{id:L,accessor:F}),E}function $(E,L){if(!L)throw new Error;return Object.assign(E,a({Header:p,Footer:p},f,{},L,{},E)),Object.assign(E,{originalWidth:E.width}),E}function U(E,L,F){F===void 0&&(F=function(){return{}});for(var W=[],J=E,Y=0,re=function(){return Y++},he=function(){var be={headers:[]},Ee=[],We=J.some(function(Be){return Be.parent});J.forEach(function(Be){var ze,Pe=[].concat(Ee).reverse()[0];We&&(Be.parent?ze=a({},Be.parent,{originalId:Be.parent.id,id:Be.parent.id+"_"+re(),headers:[Be]},F(Be)):ze=$(a({originalId:Be.id+"_placeholder",id:Be.id+"_placeholder_"+re(),placeholderOf:Be,headers:[Be]},F(Be)),L),Pe&&Pe.originalId===ze.originalId?Pe.headers.push(Be):Ee.push(ze)),be.headers.push(Be)}),W.push(be),J=Ee};J.length;)he();return W.reverse()}var M=new Map;function D(){for(var E=arguments.length,L=new Array(E),F=0;F<E;F++)L[F]=arguments[F];for(var W=0;W<L.length;W+=1)if(L[W]!==void 0)return L[W]}function K(E){if(typeof E=="function")return E}function H(E,L){var F=[];return function W(J){J.forEach(function(Y){Y[L]?W(Y[L]):F.push(Y)})}(E),F}function Q(E,L){var F=L.manualExpandedKey,W=L.expanded,J=L.expandSubRows,Y=J===void 0||J,re=[];return E.forEach(function(he){return function be(Ee,We){We===void 0&&(We=!0),Ee.isExpanded=Ee.original&&Ee.original[F]||W[Ee.id],Ee.canExpand=Ee.subRows&&!!Ee.subRows.length,We&&re.push(Ee),Ee.subRows&&Ee.subRows.length&&Ee.isExpanded&&Ee.subRows.forEach(function(Be){return be(Be,Y)})}(he)}),re}function V(E,L,F){return K(E)||L[E]||F[E]||F.text}function j(E,L,F){return E?E(L,F):L===void 0}function z(){throw new Error("React-Table: You have not called prepareRow(row) one or more rows you are attempting to render.")}var O=null,B=/\[/g,Z=/\]/g,ae=function(E){return a({role:"table"},E)},Ae=function(E){return a({role:"rowgroup"},E)},fe=function(E,L){var F=L.column;return a({key:"header_"+F.id,colSpan:F.totalVisibleHeaderCount,role:"columnheader"},E)},Ie=function(E,L){var F=L.column;return a({key:"footer_"+F.id,colSpan:F.totalVisibleHeaderCount},E)},ne=function(E,L){return a({key:"headerGroup_"+L.index,role:"row"},E)},ie=function(E,L){return a({key:"footerGroup_"+L.index},E)},ce=function(E,L){return a({key:"row_"+L.row.id,role:"row"},E)},te=function(E,L){var F=L.cell;return a({key:"cell_"+F.row.id+"_"+F.column.id,role:"cell"},E)};function Ne(){return{useOptions:[],stateReducers:[],useControlledState:[],columns:[],columnsDeps:[],allColumns:[],allColumnsDeps:[],accessValue:[],materializedColumns:[],materializedColumnsDeps:[],useInstanceAfterData:[],visibleColumns:[],visibleColumnsDeps:[],headerGroups:[],headerGroupsDeps:[],useInstanceBeforeDimensions:[],useInstance:[],prepareRow:[],getTableProps:[ae],getTableBodyProps:[Ae],getHeaderGroupProps:[ne],getFooterGroupProps:[ie],getHeaderProps:[fe],getFooterProps:[Ie],getRowProps:[ce],getCellProps:[te],useFinalInstance:[]}}u.resetHiddenColumns="resetHiddenColumns",u.toggleHideColumn="toggleHideColumn",u.setHiddenColumns="setHiddenColumns",u.toggleHideAllColumns="toggleHideAllColumns";var ye=function(E){E.getToggleHiddenProps=[Ce],E.getToggleHideAllColumnsProps=[me],E.stateReducers.push(at),E.useInstanceBeforeDimensions.push(Oe),E.headerGroupsDeps.push(function(L,F){var W=F.instance;return[].concat(L,[W.state.hiddenColumns])}),E.useInstance.push(Ge)};ye.pluginName="useColumnVisibility";var Ce=function(E,L){var F=L.column;return[E,{onChange:function(W){F.toggleHidden(!W.target.checked)},style:{cursor:"pointer"},checked:F.isVisible,title:"Toggle Column Visible"}]},me=function(E,L){var F=L.instance;return[E,{onChange:function(W){F.toggleHideAllColumns(!W.target.checked)},style:{cursor:"pointer"},checked:!F.allColumnsHidden&&!F.state.hiddenColumns.length,title:"Toggle All Columns Hidden",indeterminate:!F.allColumnsHidden&&F.state.hiddenColumns.length}]};function at(E,L,F,W){if(L.type===u.init)return a({hiddenColumns:[]},E);if(L.type===u.resetHiddenColumns)return a({},E,{hiddenColumns:W.initialState.hiddenColumns||[]});if(L.type===u.toggleHideColumn){var J=(L.value!==void 0?L.value:!E.hiddenColumns.includes(L.columnId))?[].concat(E.hiddenColumns,[L.columnId]):E.hiddenColumns.filter(function(Y){return Y!==L.columnId});return a({},E,{hiddenColumns:J})}return L.type===u.setHiddenColumns?a({},E,{hiddenColumns:w(L.value,E.hiddenColumns)}):L.type===u.toggleHideAllColumns?a({},E,{hiddenColumns:(L.value!==void 0?L.value:!E.hiddenColumns.length)?W.allColumns.map(function(Y){return Y.id}):[]}):void 0}function Oe(E){var L=E.headers,F=E.state.hiddenColumns;r.useRef(!1).current;var W=0;L.forEach(function(J){return W+=function Y(re,he){re.isVisible=he&&!F.includes(re.id);var be=0;return re.headers&&re.headers.length?re.headers.forEach(function(Ee){return be+=Y(Ee,re.isVisible)}):be=re.isVisible?1:0,re.totalVisibleHeaderCount=be,be}(J,!0)})}function Ge(E){var L=E.columns,F=E.flatHeaders,W=E.dispatch,J=E.allColumns,Y=E.getHooks,re=E.state.hiddenColumns,he=E.autoResetHiddenColumns,be=he===void 0||he,Ee=S(E),We=J.length===re.length,Be=r.useCallback(function(rt,mt){return W({type:u.toggleHideColumn,columnId:rt,value:mt})},[W]),ze=r.useCallback(function(rt){return W({type:u.setHiddenColumns,value:rt})},[W]),Pe=r.useCallback(function(rt){return W({type:u.toggleHideAllColumns,value:rt})},[W]),je=g(Y().getToggleHideAllColumnsProps,{instance:Ee()});F.forEach(function(rt){rt.toggleHidden=function(mt){W({type:u.toggleHideColumn,columnId:rt.id,value:mt})},rt.getToggleHiddenProps=g(Y().getToggleHiddenProps,{instance:Ee(),column:rt})});var Ke=S(be);A(function(){Ke()&&W({type:u.resetHiddenColumns})},[W,L]),Object.assign(E,{allColumnsHidden:We,toggleHideColumn:Be,setHiddenColumns:ze,toggleHideAllColumns:Pe,getToggleHideAllColumnsProps:je})}var dt={},ot={},st=function(E,L,F){return E},Lt=function(E,L){return E.subRows||[]},Ct=function(E,L,F){return""+(F?[F.id,L].join("."):L)},we=function(E){return E};function $e(E){var L=E.initialState,F=L===void 0?dt:L,W=E.defaultColumn,J=W===void 0?ot:W,Y=E.getSubRows,re=Y===void 0?Lt:Y,he=E.getRowId,be=he===void 0?Ct:he,Ee=E.stateReducer,We=Ee===void 0?st:Ee,Be=E.useControlledState,ze=Be===void 0?we:Be;return a({},s(E,["initialState","defaultColumn","getSubRows","getRowId","stateReducer","useControlledState"]),{initialState:F,defaultColumn:J,getSubRows:re,getRowId:be,stateReducer:We,useControlledState:ze})}function Qe(E,L){L===void 0&&(L=0);var F=0,W=0,J=0,Y=0;return E.forEach(function(re){var he=re.headers;if(re.totalLeft=L,he&&he.length){var be=Qe(he,L),Ee=be[0],We=be[1],Be=be[2],ze=be[3];re.totalMinWidth=Ee,re.totalWidth=We,re.totalMaxWidth=Be,re.totalFlexWidth=ze}else re.totalMinWidth=re.minWidth,re.totalWidth=Math.min(Math.max(re.minWidth,re.width),re.maxWidth),re.totalMaxWidth=re.maxWidth,re.totalFlexWidth=re.canResize?re.totalWidth:0;re.isVisible&&(L+=re.totalWidth,F+=re.totalMinWidth,W+=re.totalWidth,J+=re.totalMaxWidth,Y+=re.totalFlexWidth)}),[F,W,J,Y]}function oe(E){var L=E.data,F=E.rows,W=E.flatRows,J=E.rowsById,Y=E.column,re=E.getRowId,he=E.getSubRows,be=E.accessValueHooks,Ee=E.getInstance;L.forEach(function(We,Be){return function ze(Pe,je,Ke,rt,mt){Ke===void 0&&(Ke=0);var Ft=Pe,ft=re(Pe,je,rt),He=J[ft];if(He)He.subRows&&He.originalSubRows.forEach(function(lt,At){return ze(lt,At,Ke+1,He)});else if((He={id:ft,original:Ft,index:je,depth:Ke,cells:[{}]}).cells.map=z,He.cells.filter=z,He.cells.forEach=z,He.cells[0].getCellProps=z,He.values={},mt.push(He),W.push(He),J[ft]=He,He.originalSubRows=he(Pe,je),He.originalSubRows){var It=[];He.originalSubRows.forEach(function(lt,At){return ze(lt,At,Ke+1,He,It)}),He.subRows=It}Y.accessor&&(He.values[Y.id]=Y.accessor(Pe,je,He,mt,L)),He.values[Y.id]=v(be,He.values[Y.id],{row:He,column:Y,instance:Ee()})}(We,Be,0,void 0,F)})}u.resetExpanded="resetExpanded",u.toggleRowExpanded="toggleRowExpanded",u.toggleAllRowsExpanded="toggleAllRowsExpanded";var ee=function(E){E.getToggleAllRowsExpandedProps=[X],E.getToggleRowExpandedProps=[Se],E.stateReducers.push(Re),E.useInstance.push(Me),E.prepareRow.push(bt)};ee.pluginName="useExpanded";var X=function(E,L){var F=L.instance;return[E,{onClick:function(W){F.toggleAllRowsExpanded()},style:{cursor:"pointer"},title:"Toggle All Rows Expanded"}]},Se=function(E,L){var F=L.row;return[E,{onClick:function(){F.toggleRowExpanded()},style:{cursor:"pointer"},title:"Toggle Row Expanded"}]};function Re(E,L,F,W){if(L.type===u.init)return a({expanded:{}},E);if(L.type===u.resetExpanded)return a({},E,{expanded:W.initialState.expanded||{}});if(L.type===u.toggleAllRowsExpanded){var J=L.value,Y=W.rowsById,re=Object.keys(Y).length===Object.keys(E.expanded).length;if(J!==void 0?J:!re){var he={};return Object.keys(Y).forEach(function(je){he[je]=!0}),a({},E,{expanded:he})}return a({},E,{expanded:{}})}if(L.type===u.toggleRowExpanded){var be,Ee=L.id,We=L.value,Be=E.expanded[Ee],ze=We!==void 0?We:!Be;if(!Be&&ze)return a({},E,{expanded:a({},E.expanded,(be={},be[Ee]=!0,be))});if(Be&&!ze){var Pe=E.expanded;return Pe[Ee],a({},E,{expanded:s(Pe,[Ee].map(c))})}return E}}function Me(E){var L=E.data,F=E.rows,W=E.rowsById,J=E.manualExpandedKey,Y=J===void 0?"expanded":J,re=E.paginateExpandedRows,he=re===void 0||re,be=E.expandSubRows,Ee=be===void 0||be,We=E.autoResetExpanded,Be=We===void 0||We,ze=E.getHooks,Pe=E.plugins,je=E.state.expanded,Ke=E.dispatch;b(Pe,["useSortBy","useGroupBy","usePivotColumns","useGlobalFilter"],"useExpanded");var rt=S(Be),mt=!!(Object.keys(W).length&&Object.keys(je).length);mt&&Object.keys(W).some(function(Kt){return!je[Kt]})&&(mt=!1),A(function(){rt()&&Ke({type:u.resetExpanded})},[Ke,L]);var Ft=r.useCallback(function(Kt,wt){Ke({type:u.toggleRowExpanded,id:Kt,value:wt})},[Ke]),ft=r.useCallback(function(Kt){return Ke({type:u.toggleAllRowsExpanded,value:Kt})},[Ke]),He=r.useMemo(function(){return he?Q(F,{manualExpandedKey:Y,expanded:je,expandSubRows:Ee}):F},[he,F,Y,je,Ee]),It=r.useMemo(function(){return function(Kt){var wt=0;return Object.keys(Kt).forEach(function(Tt){var cn=Tt.split(".");wt=Math.max(wt,cn.length)}),wt}(je)},[je]),lt=S(E),At=g(ze().getToggleAllRowsExpandedProps,{instance:lt()});Object.assign(E,{preExpandedRows:F,expandedRows:He,rows:He,expandedDepth:It,isAllRowsExpanded:mt,toggleRowExpanded:Ft,toggleAllRowsExpanded:ft,getToggleAllRowsExpandedProps:At})}function bt(E,L){var F=L.instance.getHooks,W=L.instance;E.toggleRowExpanded=function(J){return W.toggleRowExpanded(E.id,J)},E.getToggleRowExpandedProps=g(F().getToggleRowExpandedProps,{instance:W,row:E})}var _t=function(E,L,F){return E=E.filter(function(W){return L.some(function(J){var Y=W.values[J];return String(Y).toLowerCase().includes(String(F).toLowerCase())})})};_t.autoRemove=function(E){return!E};var zt=function(E,L,F){return E.filter(function(W){return L.some(function(J){var Y=W.values[J];return Y===void 0||String(Y).toLowerCase()===String(F).toLowerCase()})})};zt.autoRemove=function(E){return!E};var dn=function(E,L,F){return E.filter(function(W){return L.some(function(J){var Y=W.values[J];return Y===void 0||String(Y)===String(F)})})};dn.autoRemove=function(E){return!E};var jt=function(E,L,F){return E.filter(function(W){return L.some(function(J){return W.values[J].includes(F)})})};jt.autoRemove=function(E){return!E||!E.length};var Gt=function(E,L,F){return E.filter(function(W){return L.some(function(J){var Y=W.values[J];return Y&&Y.length&&F.every(function(re){return Y.includes(re)})})})};Gt.autoRemove=function(E){return!E||!E.length};var nn=function(E,L,F){return E.filter(function(W){return L.some(function(J){var Y=W.values[J];return Y&&Y.length&&F.some(function(re){return Y.includes(re)})})})};nn.autoRemove=function(E){return!E||!E.length};var Hn=function(E,L,F){return E.filter(function(W){return L.some(function(J){var Y=W.values[J];return F.includes(Y)})})};Hn.autoRemove=function(E){return!E||!E.length};var pn=function(E,L,F){return E.filter(function(W){return L.some(function(J){return W.values[J]===F})})};pn.autoRemove=function(E){return E===void 0};var qt=function(E,L,F){return E.filter(function(W){return L.some(function(J){return W.values[J]==F})})};qt.autoRemove=function(E){return E==null};var sr=function(E,L,F){var W=F||[],J=W[0],Y=W[1];if((J=typeof J=="number"?J:-1/0)>(Y=typeof Y=="number"?Y:1/0)){var re=J;J=Y,Y=re}return E.filter(function(he){return L.some(function(be){var Ee=he.values[be];return Ee>=J&&Ee<=Y})})};sr.autoRemove=function(E){return!E||typeof E[0]!="number"&&typeof E[1]!="number"};var Br=Object.freeze({__proto__:null,text:_t,exactText:zt,exactTextCase:dn,includes:jt,includesAll:Gt,includesSome:nn,includesValue:Hn,exact:pn,equals:qt,between:sr});u.resetFilters="resetFilters",u.setFilter="setFilter",u.setAllFilters="setAllFilters";var _o=function(E){E.stateReducers.push(Go),E.useInstance.push(qo)};function Go(E,L,F,W){if(L.type===u.init)return a({filters:[]},E);if(L.type===u.resetFilters)return a({},E,{filters:W.initialState.filters||[]});if(L.type===u.setFilter){var J=L.columnId,Y=L.filterValue,re=W.allColumns,he=W.filterTypes,be=re.find(function(Ke){return Ke.id===J});if(!be)throw new Error("React-Table: Could not find a column with id: "+J);var Ee=V(be.filter,he||{},Br),We=E.filters.find(function(Ke){return Ke.id===J}),Be=w(Y,We&&We.value);return j(Ee.autoRemove,Be,be)?a({},E,{filters:E.filters.filter(function(Ke){return Ke.id!==J})}):a({},E,We?{filters:E.filters.map(function(Ke){return Ke.id===J?{id:J,value:Be}:Ke})}:{filters:[].concat(E.filters,[{id:J,value:Be}])})}if(L.type===u.setAllFilters){var ze=L.filters,Pe=W.allColumns,je=W.filterTypes;return a({},E,{filters:w(ze,E.filters).filter(function(Ke){var rt=Pe.find(function(mt){return mt.id===Ke.id});return!j(V(rt.filter,je||{},Br).autoRemove,Ke.value,rt)})})}}function qo(E){var L=E.data,F=E.rows,W=E.flatRows,J=E.rowsById,Y=E.allColumns,re=E.filterTypes,he=E.manualFilters,be=E.defaultCanFilter,Ee=be!==void 0&&be,We=E.disableFilters,Be=E.state.filters,ze=E.dispatch,Pe=E.autoResetFilters,je=Pe===void 0||Pe,Ke=r.useCallback(function(lt,At){ze({type:u.setFilter,columnId:lt,filterValue:At})},[ze]),rt=r.useCallback(function(lt){ze({type:u.setAllFilters,filters:lt})},[ze]);Y.forEach(function(lt){var At=lt.id,Kt=lt.accessor,wt=lt.defaultCanFilter,Tt=lt.disableFilters;lt.canFilter=Kt?D(Tt!==!0&&void 0,We!==!0&&void 0,!0):D(wt,Ee,!1),lt.setFilter=function(Pt){return Ke(lt.id,Pt)};var cn=Be.find(function(Pt){return Pt.id===At});lt.filterValue=cn&&cn.value});var mt=r.useMemo(function(){if(he||!Be.length)return[F,W,J];var lt=[],At={};return[function Kt(wt,Tt){Tt===void 0&&(Tt=0);var cn=wt;return(cn=Be.reduce(function(Pt,sn){var en=sn.id,Ln=sn.value,vt=Y.find(function(lr){return lr.id===en});if(!vt)return Pt;Tt===0&&(vt.preFilteredRows=Pt);var Xt=V(vt.filter,re||{},Br);return Xt?(vt.filteredRows=Xt(Pt,[en],Ln),vt.filteredRows):(console.warn("Could not find a valid 'column.filter' for column with the ID: "+vt.id+"."),Pt)},wt)).forEach(function(Pt){lt.push(Pt),At[Pt.id]=Pt,Pt.subRows&&(Pt.subRows=Pt.subRows&&Pt.subRows.length>0?Kt(Pt.subRows,Tt+1):Pt.subRows)}),cn}(F),lt,At]},[he,Be,F,W,J,Y,re]),Ft=mt[0],ft=mt[1],He=mt[2];r.useMemo(function(){Y.filter(function(lt){return!Be.find(function(At){return At.id===lt.id})}).forEach(function(lt){lt.preFilteredRows=Ft,lt.filteredRows=Ft})},[Ft,Be,Y]);var It=S(je);A(function(){It()&&ze({type:u.resetFilters})},[ze,he?null:L]),Object.assign(E,{preFilteredRows:F,preFilteredFlatRows:W,preFilteredRowsById:J,filteredRows:Ft,filteredFlatRows:ft,filteredRowsById:He,rows:Ft,flatRows:ft,rowsById:He,setFilter:Ke,setAllFilters:rt})}_o.pluginName="useFilters",u.resetGlobalFilter="resetGlobalFilter",u.setGlobalFilter="setGlobalFilter";var Jr=function(E){E.stateReducers.push(Po),E.useInstance.push(vr)};function Po(E,L,F,W){if(L.type===u.resetGlobalFilter)return a({},E,{globalFilter:W.initialState.globalFilter||void 0});if(L.type===u.setGlobalFilter){var J=L.filterValue,Y=W.userFilterTypes,re=V(W.globalFilter,Y||{},Br),he=w(J,E.globalFilter);return j(re.autoRemove,he)?(E.globalFilter,s(E,["globalFilter"])):a({},E,{globalFilter:he})}}function vr(E){var L=E.data,F=E.rows,W=E.flatRows,J=E.rowsById,Y=E.allColumns,re=E.filterTypes,he=E.globalFilter,be=E.manualGlobalFilter,Ee=E.state.globalFilter,We=E.dispatch,Be=E.autoResetGlobalFilter,ze=Be===void 0||Be,Pe=E.disableGlobalFilter,je=r.useCallback(function(He){We({type:u.setGlobalFilter,filterValue:He})},[We]),Ke=r.useMemo(function(){if(be||Ee===void 0)return[F,W,J];var He=[],It={},lt=V(he,re||{},Br);if(!lt)return console.warn("Could not find a valid 'globalFilter' option."),F;Y.forEach(function(Kt){var wt=Kt.disableGlobalFilter;Kt.canFilter=D(wt!==!0&&void 0,Pe!==!0&&void 0,!0)});var At=Y.filter(function(Kt){return Kt.canFilter===!0});return[function Kt(wt){return(wt=lt(wt,At.map(function(Tt){return Tt.id}),Ee)).forEach(function(Tt){He.push(Tt),It[Tt.id]=Tt,Tt.subRows=Tt.subRows&&Tt.subRows.length?Kt(Tt.subRows):Tt.subRows}),wt}(F),He,It]},[be,Ee,he,re,Y,F,W,J,Pe]),rt=Ke[0],mt=Ke[1],Ft=Ke[2],ft=S(ze);A(function(){ft()&&We({type:u.resetGlobalFilter})},[We,be?null:L]),Object.assign(E,{preGlobalFilteredRows:F,preGlobalFilteredFlatRows:W,preGlobalFilteredRowsById:J,globalFilteredRows:rt,globalFilteredFlatRows:mt,globalFilteredRowsById:Ft,rows:rt,flatRows:mt,rowsById:Ft,setGlobalFilter:je,disableGlobalFilter:Pe})}function Io(E,L){return L.reduce(function(F,W){return F+(typeof W=="number"?W:0)},0)}Jr.pluginName="useGlobalFilter";var Fr=Object.freeze({__proto__:null,sum:Io,min:function(E){var L=E[0]||0;return E.forEach(function(F){typeof F=="number"&&(L=Math.min(L,F))}),L},max:function(E){var L=E[0]||0;return E.forEach(function(F){typeof F=="number"&&(L=Math.max(L,F))}),L},minMax:function(E){var L=E[0]||0,F=E[0]||0;return E.forEach(function(W){typeof W=="number"&&(L=Math.min(L,W),F=Math.max(F,W))}),L+".."+F},average:function(E){return Io(0,E)/E.length},median:function(E){if(!E.length)return null;var L=Math.floor(E.length/2),F=[].concat(E).sort(function(W,J){return W-J});return E.length%2!=0?F[L]:(F[L-1]+F[L])/2},unique:function(E){return Array.from(new Set(E).values())},uniqueCount:function(E){return new Set(E).size},count:function(E){return E.length}}),Vt=[],an={};u.resetGroupBy="resetGroupBy",u.setGroupBy="setGroupBy",u.toggleGroupBy="toggleGroupBy";var tr=function(E){E.getGroupByToggleProps=[$r],E.stateReducers.push(bo),E.visibleColumnsDeps.push(function(L,F){var W=F.instance;return[].concat(L,[W.state.groupBy])}),E.visibleColumns.push(wo),E.useInstance.push(ge),E.prepareRow.push(ue)};tr.pluginName="useGroupBy";var $r=function(E,L){var F=L.header;return[E,{onClick:F.canGroupBy?function(W){W.persist(),F.toggleGroupBy()}:void 0,style:{cursor:F.canGroupBy?"pointer":void 0},title:"Toggle GroupBy"}]};function bo(E,L,F,W){if(L.type===u.init)return a({groupBy:[]},E);if(L.type===u.resetGroupBy)return a({},E,{groupBy:W.initialState.groupBy||[]});if(L.type===u.setGroupBy)return a({},E,{groupBy:L.value});if(L.type===u.toggleGroupBy){var J=L.columnId,Y=L.value,re=Y!==void 0?Y:!E.groupBy.includes(J);return a({},E,re?{groupBy:[].concat(E.groupBy,[J])}:{groupBy:E.groupBy.filter(function(he){return he!==J})})}}function wo(E,L){var F=L.instance.state.groupBy,W=F.map(function(Y){return E.find(function(re){return re.id===Y})}).filter(Boolean),J=E.filter(function(Y){return!F.includes(Y.id)});return(E=[].concat(W,J)).forEach(function(Y){Y.isGrouped=F.includes(Y.id),Y.groupedIndex=F.indexOf(Y.id)}),E}var Yi={};function ge(E){var L=E.data,F=E.rows,W=E.flatRows,J=E.rowsById,Y=E.allColumns,re=E.flatHeaders,he=E.groupByFn,be=he===void 0?qe:he,Ee=E.manualGroupBy,We=E.aggregations,Be=We===void 0?Yi:We,ze=E.plugins,Pe=E.state.groupBy,je=E.dispatch,Ke=E.autoResetGroupBy,rt=Ke===void 0||Ke,mt=E.disableGroupBy,Ft=E.defaultCanGroupBy,ft=E.getHooks;b(ze,["useColumnOrder","useFilters"],"useGroupBy");var He=S(E);Y.forEach(function(vt){var Xt=vt.accessor,lr=vt.defaultGroupBy,So=vt.disableGroupBy;vt.canGroupBy=Xt?D(vt.canGroupBy,So!==!0&&void 0,mt!==!0&&void 0,!0):D(vt.canGroupBy,lr,Ft,!1),vt.canGroupBy&&(vt.toggleGroupBy=function(){return E.toggleGroupBy(vt.id)}),vt.Aggregated=vt.Aggregated||vt.Cell});var It=r.useCallback(function(vt,Xt){je({type:u.toggleGroupBy,columnId:vt,value:Xt})},[je]),lt=r.useCallback(function(vt){je({type:u.setGroupBy,value:vt})},[je]);re.forEach(function(vt){vt.getGroupByToggleProps=g(ft().getGroupByToggleProps,{instance:He(),header:vt})});var At=r.useMemo(function(){if(Ee||!Pe.length)return[F,W,J,Vt,an,W,J];var vt=Pe.filter(function(zr){return Y.find(function(Is){return Is.id===zr})}),Xt=[],lr={},So=[],St={},Xn=[],Cr={},xo=function zr(Is,ns,Ck){if(ns===void 0&&(ns=0),ns===vt.length)return Is.map(function(pm){return a({},pm,{depth:ns})});var V0=vt[ns],dB=be(Is,V0);return Object.entries(dB).map(function(pm,pB){var Ek=pm[0],fm=pm[1],hm=V0+":"+Ek,Tk=zr(fm,ns+1,hm=Ck?Ck+">"+hm:hm),kk=ns?H(fm,"leafRows"):fm,fB=function(gi,G0,mB){var mm={};return Y.forEach(function(Er){if(vt.includes(Er.id))mm[Er.id]=G0[0]?G0[0].values[Er.id]:null;else{var Ak=typeof Er.aggregate=="function"?Er.aggregate:Be[Er.aggregate]||Fr[Er.aggregate];if(Ak){var gB=G0.map(function(gm){return gm.values[Er.id]}),vB=gi.map(function(gm){var q0=gm.values[Er.id];if(!mB&&Er.aggregateValue){var Rk=typeof Er.aggregateValue=="function"?Er.aggregateValue:Be[Er.aggregateValue]||Fr[Er.aggregateValue];if(!Rk)throw console.info({column:Er}),new Error("React Table: Invalid column.aggregateValue option for column listed above");q0=Rk(q0,gm,Er)}return q0});mm[Er.id]=Ak(vB,gB)}else{if(Er.aggregate)throw console.info({column:Er}),new Error("React Table: Invalid column.aggregate option for column listed above");mm[Er.id]=null}}}),mm}(kk,fm,ns),hB={id:hm,isGrouped:!0,groupByID:V0,groupByVal:Ek,values:fB,subRows:Tk,leafRows:kk,depth:ns,index:pB};return Tk.forEach(function(gi){Xt.push(gi),lr[gi.id]=gi,gi.isGrouped?(So.push(gi),St[gi.id]=gi):(Xn.push(gi),Cr[gi.id]=gi)}),hB})}(F);return xo.forEach(function(zr){Xt.push(zr),lr[zr.id]=zr,zr.isGrouped?(So.push(zr),St[zr.id]=zr):(Xn.push(zr),Cr[zr.id]=zr)}),[xo,Xt,lr,So,St,Xn,Cr]},[Ee,Pe,F,W,J,Y,Be,be]),Kt=At[0],wt=At[1],Tt=At[2],cn=At[3],Pt=At[4],sn=At[5],en=At[6],Ln=S(rt);A(function(){Ln()&&je({type:u.resetGroupBy})},[je,Ee?null:L]),Object.assign(E,{preGroupedRows:F,preGroupedFlatRow:W,preGroupedRowsById:J,groupedRows:Kt,groupedFlatRows:wt,groupedRowsById:Tt,onlyGroupedFlatRows:cn,onlyGroupedRowsById:Pt,nonGroupedFlatRows:sn,nonGroupedRowsById:en,rows:Kt,flatRows:wt,rowsById:Tt,toggleGroupBy:It,setGroupBy:lt})}function ue(E){E.allCells.forEach(function(L){var F;L.isGrouped=L.column.isGrouped&&L.column.id===E.groupByID,L.isPlaceholder=!L.isGrouped&&L.column.isGrouped,L.isAggregated=!L.isGrouped&&!L.isPlaceholder&&((F=E.subRows)==null?void 0:F.length)})}function qe(E,L){return E.reduce(function(F,W,J){var Y=""+W.values[L];return F[Y]=Array.isArray(F[Y])?F[Y]:[],F[Y].push(W),F},{})}var pt=/([0-9]+)/gm;function Mt(E,L){return E===L?0:E>L?1:-1}function Bn(E,L,F){return[E.values[F],L.values[F]]}function zn(E){return typeof E=="number"?isNaN(E)||E===1/0||E===-1/0?"":String(E):typeof E=="string"?E:""}var Et=Object.freeze({__proto__:null,alphanumeric:function(E,L,F){var W=Bn(E,L,F),J=W[0],Y=W[1];for(J=zn(J),Y=zn(Y),J=J.split(pt).filter(Boolean),Y=Y.split(pt).filter(Boolean);J.length&&Y.length;){var re=J.shift(),he=Y.shift(),be=parseInt(re,10),Ee=parseInt(he,10),We=[be,Ee].sort();if(isNaN(We[0])){if(re>he)return 1;if(he>re)return-1}else{if(isNaN(We[1]))return isNaN(be)?-1:1;if(be>Ee)return 1;if(Ee>be)return-1}}return J.length-Y.length},datetime:function(E,L,F){var W=Bn(E,L,F),J=W[0],Y=W[1];return Mt(J=J.getTime(),Y=Y.getTime())},basic:function(E,L,F){var W=Bn(E,L,F);return Mt(W[0],W[1])},string:function(E,L,F){var W=Bn(E,L,F),J=W[0],Y=W[1];for(J=J.split("").filter(Boolean),Y=Y.split("").filter(Boolean);J.length&&Y.length;){var re=J.shift(),he=Y.shift(),be=re.toLowerCase(),Ee=he.toLowerCase();if(be>Ee)return 1;if(Ee>be)return-1;if(re>he)return 1;if(he>re)return-1}return J.length-Y.length},number:function(E,L,F){var W=Bn(E,L,F),J=W[0],Y=W[1],re=/[^0-9.]/gi;return Mt(J=Number(String(J).replace(re,"")),Y=Number(String(Y).replace(re,"")))}});u.resetSortBy="resetSortBy",u.setSortBy="setSortBy",u.toggleSortBy="toggleSortBy",u.clearSortBy="clearSortBy",f.sortType="alphanumeric",f.sortDescFirst=!1;var jn=function(E){E.getSortByToggleProps=[v0],E.stateReducers.push(y0),E.useInstance.push(b0)};jn.pluginName="useSortBy";var v0=function(E,L){var F=L.instance,W=L.column,J=F.isMultiSortEvent,Y=J===void 0?function(re){return re.shiftKey}:J;return[E,{onClick:W.canSort?function(re){re.persist(),W.toggleSortBy(void 0,!F.disableMultiSort&&Y(re))}:void 0,style:{cursor:W.canSort?"pointer":void 0},title:W.canSort?"Toggle SortBy":void 0}]};function y0(E,L,F,W){if(L.type===u.init)return a({sortBy:[]},E);if(L.type===u.resetSortBy)return a({},E,{sortBy:W.initialState.sortBy||[]});if(L.type===u.clearSortBy)return a({},E,{sortBy:E.sortBy.filter(function(He){return He.id!==L.columnId})});if(L.type===u.setSortBy)return a({},E,{sortBy:L.sortBy});if(L.type===u.toggleSortBy){var J,Y=L.columnId,re=L.desc,he=L.multi,be=W.allColumns,Ee=W.disableMultiSort,We=W.disableSortRemove,Be=W.disableMultiRemove,ze=W.maxMultiSortColCount,Pe=ze===void 0?Number.MAX_SAFE_INTEGER:ze,je=E.sortBy,Ke=be.find(function(He){return He.id===Y}).sortDescFirst,rt=je.find(function(He){return He.id===Y}),mt=je.findIndex(function(He){return He.id===Y}),Ft=re!=null,ft=[];return(J=!Ee&&he?rt?"toggle":"add":mt!==je.length-1||je.length!==1?"replace":rt?"toggle":"replace")!="toggle"||We||Ft||he&&Be||!(rt&&rt.desc&&!Ke||!rt.desc&&Ke)||(J="remove"),J==="replace"?ft=[{id:Y,desc:Ft?re:Ke}]:J==="add"?(ft=[].concat(je,[{id:Y,desc:Ft?re:Ke}])).splice(0,ft.length-Pe):J==="toggle"?ft=je.map(function(He){return He.id===Y?a({},He,{desc:Ft?re:!rt.desc}):He}):J==="remove"&&(ft=je.filter(function(He){return He.id!==Y})),a({},E,{sortBy:ft})}}function b0(E){var L=E.data,F=E.rows,W=E.flatRows,J=E.allColumns,Y=E.orderByFn,re=Y===void 0?rm:Y,he=E.sortTypes,be=E.manualSortBy,Ee=E.defaultCanSort,We=E.disableSortBy,Be=E.flatHeaders,ze=E.state.sortBy,Pe=E.dispatch,je=E.plugins,Ke=E.getHooks,rt=E.autoResetSortBy,mt=rt===void 0||rt;b(je,["useFilters","useGlobalFilter","useGroupBy","usePivotColumns"],"useSortBy");var Ft=r.useCallback(function(wt){Pe({type:u.setSortBy,sortBy:wt})},[Pe]),ft=r.useCallback(function(wt,Tt,cn){Pe({type:u.toggleSortBy,columnId:wt,desc:Tt,multi:cn})},[Pe]),He=S(E);Be.forEach(function(wt){var Tt=wt.accessor,cn=wt.canSort,Pt=wt.disableSortBy,sn=wt.id,en=Tt?D(Pt!==!0&&void 0,We!==!0&&void 0,!0):D(Ee,cn,!1);wt.canSort=en,wt.canSort&&(wt.toggleSortBy=function(vt,Xt){return ft(wt.id,vt,Xt)},wt.clearSortBy=function(){Pe({type:u.clearSortBy,columnId:wt.id})}),wt.getSortByToggleProps=g(Ke().getSortByToggleProps,{instance:He(),column:wt});var Ln=ze.find(function(vt){return vt.id===sn});wt.isSorted=!!Ln,wt.sortedIndex=ze.findIndex(function(vt){return vt.id===sn}),wt.isSortedDesc=wt.isSorted?Ln.desc:void 0});var It=r.useMemo(function(){if(be||!ze.length)return[F,W];var wt=[],Tt=ze.filter(function(cn){return J.find(function(Pt){return Pt.id===cn.id})});return[function cn(Pt){var sn=re(Pt,Tt.map(function(en){var Ln=J.find(function(lr){return lr.id===en.id});if(!Ln)throw new Error("React-Table: Could not find a column with id: "+en.id+" while sorting");var vt=Ln.sortType,Xt=K(vt)||(he||{})[vt]||Et[vt];if(!Xt)throw new Error("React-Table: Could not find a valid sortType of '"+vt+"' for column '"+en.id+"'.");return function(lr,So){return Xt(lr,So,en.id,en.desc)}}),Tt.map(function(en){var Ln=J.find(function(vt){return vt.id===en.id});return Ln&&Ln.sortInverted?en.desc:!en.desc}));return sn.forEach(function(en){wt.push(en),en.subRows&&en.subRows.length!==0&&(en.subRows=cn(en.subRows))}),sn}(F),wt]},[be,ze,F,W,J,re,he]),lt=It[0],At=It[1],Kt=S(mt);A(function(){Kt()&&Pe({type:u.resetSortBy})},[be?null:L]),Object.assign(E,{preSortedRows:F,preSortedFlatRows:W,sortedRows:lt,sortedFlatRows:At,rows:lt,flatRows:At,setSortBy:Ft,toggleSortBy:ft})}function rm(E,L,F){return[].concat(E).sort(function(W,J){for(var Y=0;Y<L.length;Y+=1){var re=L[Y],he=F[Y]===!1||F[Y]==="desc",be=re(W,J);if(be!==0)return he?-be:be}return F[0]?W.index-J.index:J.index-W.index})}u.resetPage="resetPage",u.gotoPage="gotoPage",u.setPageSize="setPageSize";var om=function(E){E.stateReducers.push(w0),E.useInstance.push(im)};function w0(E,L,F,W){if(L.type===u.init)return a({pageSize:10,pageIndex:0},E);if(L.type===u.resetPage)return a({},E,{pageIndex:W.initialState.pageIndex||0});if(L.type===u.gotoPage){var J=W.pageCount,Y=W.page,re=w(L.pageIndex,E.pageIndex),he=!1;return re>E.pageIndex?he=J===-1?Y.length>=E.pageSize:re<J:re<E.pageIndex&&(he=re>-1),he?a({},E,{pageIndex:re}):E}if(L.type===u.setPageSize){var be=L.pageSize,Ee=E.pageSize*E.pageIndex;return a({},E,{pageIndex:Math.floor(Ee/be),pageSize:be})}}function im(E){var L=E.rows,F=E.autoResetPage,W=F===void 0||F,J=E.manualExpandedKey,Y=J===void 0?"expanded":J,re=E.plugins,he=E.pageCount,be=E.paginateExpandedRows,Ee=be===void 0||be,We=E.expandSubRows,Be=We===void 0||We,ze=E.state,Pe=ze.pageSize,je=ze.pageIndex,Ke=ze.expanded,rt=ze.globalFilter,mt=ze.filters,Ft=ze.groupBy,ft=ze.sortBy,He=E.dispatch,It=E.data,lt=E.manualPagination;b(re,["useGlobalFilter","useFilters","useGroupBy","useSortBy","useExpanded"],"usePagination");var At=S(W);A(function(){At()&&He({type:u.resetPage})},[He,lt?null:It,rt,mt,Ft,ft]);var Kt=lt?he:Math.ceil(L.length/Pe),wt=r.useMemo(function(){return Kt>0?[].concat(new Array(Kt)).fill(null).map(function(Xt,lr){return lr}):[]},[Kt]),Tt=r.useMemo(function(){var Xt;if(lt)Xt=L;else{var lr=Pe*je,So=lr+Pe;Xt=L.slice(lr,So)}return Ee?Xt:Q(Xt,{manualExpandedKey:Y,expanded:Ke,expandSubRows:Be})},[Be,Ke,Y,lt,je,Pe,Ee,L]),cn=je>0,Pt=Kt===-1?Tt.length>=Pe:je<Kt-1,sn=r.useCallback(function(Xt){He({type:u.gotoPage,pageIndex:Xt})},[He]),en=r.useCallback(function(){return sn(function(Xt){return Xt-1})},[sn]),Ln=r.useCallback(function(){return sn(function(Xt){return Xt+1})},[sn]),vt=r.useCallback(function(Xt){He({type:u.setPageSize,pageSize:Xt})},[He]);Object.assign(E,{pageOptions:wt,pageCount:Kt,page:Tt,canPreviousPage:cn,canNextPage:Pt,gotoPage:sn,previousPage:en,nextPage:Ln,setPageSize:vt})}om.pluginName="usePagination",u.resetPivot="resetPivot",u.togglePivot="togglePivot";var Il=function(E){E.getPivotToggleProps=[Ud],E.stateReducers.push(S0),E.useInstanceAfterData.push(x0),E.allColumns.push(C0),E.accessValue.push(E0),E.materializedColumns.push(T0),E.materializedColumnsDeps.push(k0),E.visibleColumns.push(Wd),E.visibleColumnsDeps.push(A0),E.useInstance.push(R0),E.prepareRow.push(_0)};Il.pluginName="usePivotColumns";var am=[],Ud=function(E,L){var F=L.header;return[E,{onClick:F.canPivot?function(W){W.persist(),F.togglePivot()}:void 0,style:{cursor:F.canPivot?"pointer":void 0},title:"Toggle Pivot"}]};function S0(E,L,F,W){if(L.type===u.init)return a({pivotColumns:am},E);if(L.type===u.resetPivot)return a({},E,{pivotColumns:W.initialState.pivotColumns||am});if(L.type===u.togglePivot){var J=L.columnId,Y=L.value,re=Y!==void 0?Y:!E.pivotColumns.includes(J);return a({},E,re?{pivotColumns:[].concat(E.pivotColumns,[J])}:{pivotColumns:E.pivotColumns.filter(function(he){return he!==J})})}}function x0(E){E.allColumns.forEach(function(L){L.isPivotSource=E.state.pivotColumns.includes(L.id)})}function C0(E,L){var F=L.instance;return E.forEach(function(W){W.isPivotSource=F.state.pivotColumns.includes(W.id),W.uniqueValues=new Set}),E}function E0(E,L){var F=L.column;return F.uniqueValues&&E!==void 0&&F.uniqueValues.add(E),E}function T0(E,L){var F=L.instance,W=F.allColumns,J=F.state;if(!J.pivotColumns.length||!J.groupBy||!J.groupBy.length)return E;var Y=J.pivotColumns.map(function(be){return W.find(function(Ee){return Ee.id===be})}).filter(Boolean),re=W.filter(function(be){return!be.isPivotSource&&!J.groupBy.includes(be.id)&&!J.pivotColumns.includes(be.id)}),he=_(function be(Ee,We,Be){Ee===void 0&&(Ee=0),Be===void 0&&(Be=[]);var ze=Y[Ee];return ze?Array.from(ze.uniqueValues).sort().map(function(Pe){var je=a({},ze,{Header:ze.PivotHeader||typeof ze.header=="string"?ze.Header+": "+Pe:Pe,isPivotGroup:!0,parent:We,depth:Ee,id:We?We.id+"."+ze.id+"."+Pe:ze.id+"."+Pe,pivotValue:Pe});return je.columns=be(Ee+1,je,[].concat(Be,[function(Ke){return Ke.values[ze.id]===Pe}])),je}):re.map(function(Pe){return a({},Pe,{canPivot:!1,isPivoted:!0,parent:We,depth:Ee,id:""+(We?We.id+"."+Pe.id:Pe.id),accessor:function(je,Ke,rt){if(Be.every(function(mt){return mt(rt)}))return rt.values[Pe.id]}})})}());return[].concat(E,he)}function k0(E,L){var F=L.instance.state,W=F.pivotColumns,J=F.groupBy;return[].concat(E,[W,J])}function Wd(E,L){var F=L.instance.state;return E=E.filter(function(W){return!W.isPivotSource}),F.pivotColumns.length&&F.groupBy&&F.groupBy.length&&(E=E.filter(function(W){return W.isGrouped||W.isPivoted})),E}function A0(E,L){var F=L.instance;return[].concat(E,[F.state.pivotColumns,F.state.groupBy])}function R0(E){var L=E.columns,F=E.allColumns,W=E.flatHeaders,J=E.getHooks,Y=E.plugins,re=E.dispatch,he=E.autoResetPivot,be=he===void 0||he,Ee=E.manaulPivot,We=E.disablePivot,Be=E.defaultCanPivot;b(Y,["useGroupBy"],"usePivotColumns");var ze=S(E);F.forEach(function(je){var Ke=je.accessor,rt=je.defaultPivot,mt=je.disablePivot;je.canPivot=Ke?D(je.canPivot,mt!==!0&&void 0,We!==!0&&void 0,!0):D(je.canPivot,rt,Be,!1),je.canPivot&&(je.togglePivot=function(){return E.togglePivot(je.id)}),je.Aggregated=je.Aggregated||je.Cell}),W.forEach(function(je){je.getPivotToggleProps=g(J().getPivotToggleProps,{instance:ze(),header:je})});var Pe=S(be);A(function(){Pe()&&re({type:u.resetPivot})},[re,Ee?null:L]),Object.assign(E,{togglePivot:function(je,Ke){re({type:u.togglePivot,columnId:je,value:Ke})}})}function _0(E){E.allCells.forEach(function(L){L.isPivoted=L.column.isPivoted})}u.resetSelectedRows="resetSelectedRows",u.toggleAllRowsSelected="toggleAllRowsSelected",u.toggleRowSelected="toggleRowSelected",u.toggleAllPageRowsSelected="toggleAllPageRowsSelected";var sm=function(E){E.getToggleRowSelectedProps=[P0],E.getToggleAllRowsSelectedProps=[I0],E.getToggleAllPageRowsSelectedProps=[O0],E.stateReducers.push(lm),E.useInstance.push($0),E.prepareRow.push(N0)};sm.pluginName="useRowSelect";var P0=function(E,L){var F=L.instance,W=L.row,J=F.manualRowSelectedKey,Y=J===void 0?"isSelected":J;return[E,{onChange:function(re){W.toggleRowSelected(re.target.checked)},style:{cursor:"pointer"},checked:!(!W.original||!W.original[Y])||W.isSelected,title:"Toggle Row Selected",indeterminate:W.isSomeSelected}]},I0=function(E,L){var F=L.instance;return[E,{onChange:function(W){F.toggleAllRowsSelected(W.target.checked)},style:{cursor:"pointer"},checked:F.isAllRowsSelected,title:"Toggle All Rows Selected",indeterminate:!!(!F.isAllRowsSelected&&Object.keys(F.state.selectedRowIds).length)}]},O0=function(E,L){var F=L.instance;return[E,{onChange:function(W){F.toggleAllPageRowsSelected(W.target.checked)},style:{cursor:"pointer"},checked:F.isAllPageRowsSelected,title:"Toggle All Current Page Rows Selected",indeterminate:!!(!F.isAllPageRowsSelected&&F.page.some(function(W){var J=W.id;return F.state.selectedRowIds[J]}))}]};function lm(E,L,F,W){if(L.type===u.init)return a({selectedRowIds:{}},E);if(L.type===u.resetSelectedRows)return a({},E,{selectedRowIds:W.initialState.selectedRowIds||{}});if(L.type===u.toggleAllRowsSelected){var J=L.value,Y=W.isAllRowsSelected,re=W.rowsById,he=W.nonGroupedRowsById,be=he===void 0?re:he,Ee=J!==void 0?J:!Y,We=Object.assign({},E.selectedRowIds);return Ee?Object.keys(be).forEach(function(sn){We[sn]=!0}):Object.keys(be).forEach(function(sn){delete We[sn]}),a({},E,{selectedRowIds:We})}if(L.type===u.toggleRowSelected){var Be=L.id,ze=L.value,Pe=W.rowsById,je=W.selectSubRows,Ke=je===void 0||je,rt=W.getSubRows,mt=E.selectedRowIds[Be],Ft=ze!==void 0?ze:!mt;if(mt===Ft)return E;var ft=a({},E.selectedRowIds);return function sn(en){var Ln=Pe[en];if(Ln&&(Ln.isGrouped||(Ft?ft[en]=!0:delete ft[en]),Ke&&rt(Ln)))return rt(Ln).forEach(function(vt){return sn(vt.id)})}(Be),a({},E,{selectedRowIds:ft})}if(L.type===u.toggleAllPageRowsSelected){var He=L.value,It=W.page,lt=W.rowsById,At=W.selectSubRows,Kt=At===void 0||At,wt=W.isAllPageRowsSelected,Tt=W.getSubRows,cn=He!==void 0?He:!wt,Pt=a({},E.selectedRowIds);return It.forEach(function(sn){return function en(Ln){var vt=lt[Ln];if(vt.isGrouped||(cn?Pt[Ln]=!0:delete Pt[Ln]),Kt&&Tt(vt))return Tt(vt).forEach(function(Xt){return en(Xt.id)})}(sn.id)}),a({},E,{selectedRowIds:Pt})}return E}function $0(E){var L=E.data,F=E.rows,W=E.getHooks,J=E.plugins,Y=E.rowsById,re=E.nonGroupedRowsById,he=re===void 0?Y:re,be=E.autoResetSelectedRows,Ee=be===void 0||be,We=E.state.selectedRowIds,Be=E.selectSubRows,ze=Be===void 0||Be,Pe=E.dispatch,je=E.page,Ke=E.getSubRows;b(J,["useFilters","useGroupBy","useSortBy","useExpanded","usePagination"],"useRowSelect");var rt=r.useMemo(function(){var Tt=[];return F.forEach(function(cn){var Pt=ze?function sn(en,Ln,vt){if(Ln[en.id])return!0;var Xt=vt(en);if(Xt&&Xt.length){var lr=!0,So=!1;return Xt.forEach(function(St){So&&!lr||(sn(St,Ln,vt)?So=!0:lr=!1)}),!!lr||!!So&&null}return!1}(cn,We,Ke):!!We[cn.id];cn.isSelected=!!Pt,cn.isSomeSelected=Pt===null,Pt&&Tt.push(cn)}),Tt},[F,ze,We,Ke]),mt=!!(Object.keys(he).length&&Object.keys(We).length),Ft=mt;mt&&Object.keys(he).some(function(Tt){return!We[Tt]})&&(mt=!1),mt||je&&je.length&&je.some(function(Tt){var cn=Tt.id;return!We[cn]})&&(Ft=!1);var ft=S(Ee);A(function(){ft()&&Pe({type:u.resetSelectedRows})},[Pe,L]);var He=r.useCallback(function(Tt){return Pe({type:u.toggleAllRowsSelected,value:Tt})},[Pe]),It=r.useCallback(function(Tt){return Pe({type:u.toggleAllPageRowsSelected,value:Tt})},[Pe]),lt=r.useCallback(function(Tt,cn){return Pe({type:u.toggleRowSelected,id:Tt,value:cn})},[Pe]),At=S(E),Kt=g(W().getToggleAllRowsSelectedProps,{instance:At()}),wt=g(W().getToggleAllPageRowsSelectedProps,{instance:At()});Object.assign(E,{selectedFlatRows:rt,isAllRowsSelected:mt,isAllPageRowsSelected:Ft,toggleRowSelected:lt,toggleAllRowsSelected:He,getToggleAllRowsSelectedProps:Kt,getToggleAllPageRowsSelectedProps:wt,toggleAllPageRowsSelected:It})}function N0(E,L){var F=L.instance;E.toggleRowSelected=function(W){return F.toggleRowSelected(E.id,W)},E.getToggleRowSelectedProps=g(F.getHooks().getToggleRowSelectedProps,{instance:F,row:E})}var Ol=function(E){return{}},Za=function(E){return{}};u.setRowState="setRowState",u.setCellState="setCellState",u.resetRowState="resetRowState";var Hd=function(E){E.stateReducers.push(es),E.useInstance.push(L0),E.prepareRow.push(M0)};function es(E,L,F,W){var J=W.initialRowStateAccessor,Y=J===void 0?Ol:J,re=W.initialCellStateAccessor,he=re===void 0?Za:re,be=W.rowsById;if(L.type===u.init)return a({rowState:{}},E);if(L.type===u.resetRowState)return a({},E,{rowState:W.initialState.rowState||{}});if(L.type===u.setRowState){var Ee,We=L.rowId,Be=L.value,ze=E.rowState[We]!==void 0?E.rowState[We]:Y(be[We]);return a({},E,{rowState:a({},E.rowState,(Ee={},Ee[We]=w(Be,ze),Ee))})}if(L.type===u.setCellState){var Pe,je,Ke,rt,mt,Ft=L.rowId,ft=L.columnId,He=L.value,It=E.rowState[Ft]!==void 0?E.rowState[Ft]:Y(be[Ft]),lt=(It==null||(Pe=It.cellState)==null?void 0:Pe[ft])!==void 0?It.cellState[ft]:he((je=be[Ft])==null||(Ke=je.cells)==null?void 0:Ke.find(function(At){return At.column.id===ft}));return a({},E,{rowState:a({},E.rowState,(mt={},mt[Ft]=a({},It,{cellState:a({},It.cellState||{},(rt={},rt[ft]=w(He,lt),rt))}),mt))})}}function L0(E){var L=E.autoResetRowState,F=L===void 0||L,W=E.data,J=E.dispatch,Y=r.useCallback(function(be,Ee){return J({type:u.setRowState,rowId:be,value:Ee})},[J]),re=r.useCallback(function(be,Ee,We){return J({type:u.setCellState,rowId:be,columnId:Ee,value:We})},[J]),he=S(F);A(function(){he()&&J({type:u.resetRowState})},[W]),Object.assign(E,{setRowState:Y,setCellState:re})}function M0(E,L){var F=L.instance,W=F.initialRowStateAccessor,J=W===void 0?Ol:W,Y=F.initialCellStateAccessor,re=Y===void 0?Za:Y,he=F.state.rowState;E&&(E.state=he[E.id]!==void 0?he[E.id]:J(E),E.setState=function(be){return F.setRowState(E.id,be)},E.cells.forEach(function(be){E.state.cellState||(E.state.cellState={}),be.state=E.state.cellState[be.column.id]!==void 0?E.state.cellState[be.column.id]:re(be),be.setState=function(Ee){return F.setCellState(E.id,be.column.id,Ee)}}))}Hd.pluginName="useRowState",u.resetColumnOrder="resetColumnOrder",u.setColumnOrder="setColumnOrder";var cm=function(E){E.stateReducers.push(D0),E.visibleColumnsDeps.push(function(L,F){var W=F.instance;return[].concat(L,[W.state.columnOrder])}),E.visibleColumns.push(B0),E.useInstance.push(F0)};function D0(E,L,F,W){return L.type===u.init?a({columnOrder:[]},E):L.type===u.resetColumnOrder?a({},E,{columnOrder:W.initialState.columnOrder||[]}):L.type===u.setColumnOrder?a({},E,{columnOrder:w(L.columnOrder,E.columnOrder)}):void 0}function B0(E,L){var F=L.instance.state.columnOrder;if(!F||!F.length)return E;for(var W=[].concat(F),J=[].concat(E),Y=[],re=function(){var he=W.shift(),be=J.findIndex(function(Ee){return Ee.id===he});be>-1&&Y.push(J.splice(be,1)[0])};J.length&&W.length;)re();return[].concat(Y,J)}function F0(E){var L=E.dispatch;E.setColumnOrder=r.useCallback(function(F){return L({type:u.setColumnOrder,columnOrder:F})},[L])}cm.pluginName="useColumnOrder",f.canResize=!0,u.columnStartResizing="columnStartResizing",u.columnResizing="columnResizing",u.columnDoneResizing="columnDoneResizing",u.resetResize="resetResize";var Vd=function(E){E.getResizerProps=[ts],E.getHeaderProps.push({style:{position:"relative"}}),E.stateReducers.push(z0),E.useInstance.push(j0),E.useInstanceBeforeDimensions.push(um)},ts=function(E,L){var F=L.instance,W=L.header,J=F.dispatch,Y=function(re,he){var be=!1;if(re.type==="touchstart"){if(re.touches&&re.touches.length>1)return;be=!0}var Ee,We,Be=function(ft){var He=[];return function It(lt){lt.columns&&lt.columns.length&&lt.columns.map(It),He.push(lt)}(ft),He}(he).map(function(ft){return[ft.id,ft.totalWidth]}),ze=be?Math.round(re.touches[0].clientX):re.clientX,Pe=function(){window.cancelAnimationFrame(Ee),Ee=null,J({type:u.columnDoneResizing})},je=function(){window.cancelAnimationFrame(Ee),Ee=null,J({type:u.columnResizing,clientX:We})},Ke=function(ft){We=ft,Ee||(Ee=window.requestAnimationFrame(je))},rt={mouse:{moveEvent:"mousemove",moveHandler:function(ft){return Ke(ft.clientX)},upEvent:"mouseup",upHandler:function(ft){document.removeEventListener("mousemove",rt.mouse.moveHandler),document.removeEventListener("mouseup",rt.mouse.upHandler),Pe()}},touch:{moveEvent:"touchmove",moveHandler:function(ft){return ft.cancelable&&(ft.preventDefault(),ft.stopPropagation()),Ke(ft.touches[0].clientX),!1},upEvent:"touchend",upHandler:function(ft){document.removeEventListener(rt.touch.moveEvent,rt.touch.moveHandler),document.removeEventListener(rt.touch.upEvent,rt.touch.moveHandler),Pe()}}},mt=be?rt.touch:rt.mouse,Ft=!!function(){if(typeof O=="boolean")return O;var ft=!1;try{var He={get passive(){return ft=!0,!1}};window.addEventListener("test",null,He),window.removeEventListener("test",null,He)}catch{ft=!1}return O=ft}()&&{passive:!1};document.addEventListener(mt.moveEvent,mt.moveHandler,Ft),document.addEventListener(mt.upEvent,mt.upHandler,Ft),J({type:u.columnStartResizing,columnId:he.id,columnWidth:he.totalWidth,headerIdWidths:Be,clientX:ze})};return[E,{onMouseDown:function(re){return re.persist()||Y(re,W)},onTouchStart:function(re){return re.persist()||Y(re,W)},style:{cursor:"col-resize"},draggable:!1,role:"separator"}]};function z0(E,L){if(L.type===u.init)return a({columnResizing:{columnWidths:{}}},E);if(L.type===u.resetResize)return a({},E,{columnResizing:{columnWidths:{}}});if(L.type===u.columnStartResizing){var F=L.clientX,W=L.columnId,J=L.columnWidth,Y=L.headerIdWidths;return a({},E,{columnResizing:a({},E.columnResizing,{startX:F,headerIdWidths:Y,columnWidth:J,isResizingColumn:W})})}if(L.type===u.columnResizing){var re=L.clientX,he=E.columnResizing,be=he.startX,Ee=he.columnWidth,We=he.headerIdWidths,Be=(re-be)/Ee,ze={};return(We===void 0?[]:We).forEach(function(Pe){var je=Pe[0],Ke=Pe[1];ze[je]=Math.max(Ke+Ke*Be,0)}),a({},E,{columnResizing:a({},E.columnResizing,{columnWidths:a({},E.columnResizing.columnWidths,{},ze)})})}return L.type===u.columnDoneResizing?a({},E,{columnResizing:a({},E.columnResizing,{startX:null,isResizingColumn:null})}):void 0}Vd.pluginName="useResizeColumns";var um=function(E){var L=E.flatHeaders,F=E.disableResizing,W=E.getHooks,J=E.state.columnResizing,Y=S(E);L.forEach(function(re){var he=D(re.disableResizing!==!0&&void 0,F!==!0&&void 0,!0);re.canResize=he,re.width=J.columnWidths[re.id]||re.originalWidth||re.width,re.isResizing=J.isResizingColumn===re.id,he&&(re.getResizerProps=g(W().getResizerProps,{instance:Y(),header:re}))})};function j0(E){var L=E.plugins,F=E.dispatch,W=E.autoResetResize,J=W===void 0||W,Y=E.columns;b(L,["useAbsoluteLayout"],"useResizeColumns");var re=S(J);A(function(){re()&&F({type:u.resetResize})},[Y]);var he=r.useCallback(function(){return F({type:u.resetResize})},[F]);Object.assign(E,{resetResizing:he})}var $l={position:"absolute",top:0},Gd=function(E){E.getTableBodyProps.push(Dc),E.getRowProps.push(Dc),E.getHeaderGroupProps.push(Dc),E.getFooterGroupProps.push(Dc),E.getHeaderProps.push(function(L,F){var W=F.column;return[L,{style:a({},$l,{left:W.totalLeft+"px",width:W.totalWidth+"px"})}]}),E.getCellProps.push(function(L,F){var W=F.cell;return[L,{style:a({},$l,{left:W.column.totalLeft+"px",width:W.column.totalWidth+"px"})}]}),E.getFooterProps.push(function(L,F){var W=F.column;return[L,{style:a({},$l,{left:W.totalLeft+"px",width:W.totalWidth+"px"})}]})};Gd.pluginName="useAbsoluteLayout";var Dc=function(E,L){return[E,{style:{position:"relative",width:L.instance.totalColumnsWidth+"px"}}]},qd={display:"inline-block",boxSizing:"border-box"},Bc=function(E,L){return[E,{style:{display:"flex",width:L.instance.totalColumnsWidth+"px"}}]},dm=function(E){E.getRowProps.push(Bc),E.getHeaderGroupProps.push(Bc),E.getFooterGroupProps.push(Bc),E.getHeaderProps.push(function(L,F){var W=F.column;return[L,{style:a({},qd,{width:W.totalWidth+"px"})}]}),E.getCellProps.push(function(L,F){var W=F.cell;return[L,{style:a({},qd,{width:W.column.totalWidth+"px"})}]}),E.getFooterProps.push(function(L,F){var W=F.column;return[L,{style:a({},qd,{width:W.totalWidth+"px"})}]})};function Nl(E){E.getTableProps.push(U0),E.getRowProps.push(Ll),E.getHeaderGroupProps.push(Ll),E.getFooterGroupProps.push(Ll),E.getHeaderProps.push(W0),E.getCellProps.push(H0),E.getFooterProps.push(G)}dm.pluginName="useBlockLayout",Nl.pluginName="useFlexLayout";var U0=function(E,L){return[E,{style:{minWidth:L.instance.totalColumnsMinWidth+"px"}}]},Ll=function(E,L){return[E,{style:{display:"flex",flex:"1 0 auto",minWidth:L.instance.totalColumnsMinWidth+"px"}}]},W0=function(E,L){var F=L.column;return[E,{style:{boxSizing:"border-box",flex:F.totalFlexWidth?F.totalFlexWidth+" 0 auto":void 0,minWidth:F.totalMinWidth+"px",width:F.totalWidth+"px"}}]},H0=function(E,L){var F=L.cell;return[E,{style:{boxSizing:"border-box",flex:F.column.totalFlexWidth+" 0 auto",minWidth:F.column.totalMinWidth+"px",width:F.column.totalWidth+"px"}}]},G=function(E,L){var F=L.column;return[E,{style:{boxSizing:"border-box",flex:F.totalFlexWidth?F.totalFlexWidth+" 0 auto":void 0,minWidth:F.totalMinWidth+"px",width:F.totalWidth+"px"}}]};function le(E){E.stateReducers.push(Qr),E.getTableProps.push(_e),E.getHeaderProps.push(ut),E.getRowProps.push(xr)}u.columnStartResizing="columnStartResizing",u.columnResizing="columnResizing",u.columnDoneResizing="columnDoneResizing",u.resetResize="resetResize",le.pluginName="useGridLayout";var _e=function(E,L){var F=L.instance;return[E,{style:{display:"grid",gridTemplateColumns:F.visibleColumns.map(function(W){var J;return F.state.gridLayout.columnWidths[W.id]?F.state.gridLayout.columnWidths[W.id]+"px":(J=F.state.columnResizing)!=null&&J.isResizingColumn?F.state.gridLayout.startWidths[W.id]+"px":typeof W.width=="number"?W.width+"px":W.width}).join(" ")}}]},ut=function(E,L){var F=L.column;return[E,{id:"header-cell-"+F.id,style:{position:"sticky",gridColumn:"span "+F.totalVisibleHeaderCount}}]},xr=function(E,L){var F=L.row;return F.isExpanded?[E,{style:{gridColumn:"1 / "+(F.cells.length+1)}}]:[E,{}]};function Qr(E,L,F,W){if(L.type===u.init)return a({gridLayout:{columnWidths:{}}},E);if(L.type===u.resetResize)return a({},E,{gridLayout:{columnWidths:{}}});if(L.type===u.columnStartResizing){var J=L.columnId,Y=L.headerIdWidths,re=ao(J);if(re!==void 0){var he=W.visibleColumns.reduce(function(He,It){var lt;return a({},He,((lt={})[It.id]=ao(It.id),lt))},{}),be=W.visibleColumns.reduce(function(He,It){var lt;return a({},He,((lt={})[It.id]=It.minWidth,lt))},{}),Ee=W.visibleColumns.reduce(function(He,It){var lt;return a({},He,((lt={})[It.id]=It.maxWidth,lt))},{}),We=Y.map(function(He){var It=He[0];return[It,ao(It)]});return a({},E,{gridLayout:a({},E.gridLayout,{startWidths:he,minWidths:be,maxWidths:Ee,headerIdGridWidths:We,columnWidth:re})})}return E}if(L.type===u.columnResizing){var Be=L.clientX,ze=E.columnResizing.startX,Pe=E.gridLayout,je=Pe.columnWidth,Ke=Pe.minWidths,rt=Pe.maxWidths,mt=Pe.headerIdGridWidths,Ft=(Be-ze)/je,ft={};return(mt===void 0?[]:mt).forEach(function(He){var It=He[0],lt=He[1];ft[It]=Math.min(Math.max(Ke[It],lt+lt*Ft),rt[It])}),a({},E,{gridLayout:a({},E.gridLayout,{columnWidths:a({},E.gridLayout.columnWidths,{},ft)})})}return L.type===u.columnDoneResizing?a({},E,{gridLayout:a({},E.gridLayout,{startWidths:{},minWidths:{},maxWidths:{}})}):void 0}function ao(E){var L,F=(L=document.getElementById("header-cell-"+E))==null?void 0:L.offsetWidth;if(F!==void 0)return F}n._UNSTABLE_usePivotColumns=Il,n.actions=u,n.defaultColumn=f,n.defaultGroupByFn=qe,n.defaultOrderByFn=rm,n.defaultRenderer=d,n.emptyRenderer=p,n.ensurePluginOrder=b,n.flexRender=R,n.functionalUpdate=w,n.loopHooks=y,n.makePropGetter=g,n.makeRenderer=T,n.reduceHooks=v,n.safeUseLayoutEffect=k,n.useAbsoluteLayout=Gd,n.useAsyncDebounce=function(E,L){L===void 0&&(L=0);var F=r.useRef({}),W=S(E),J=S(L);return r.useCallback(function(){var Y=i(regeneratorRuntime.mark(function re(){var he,be,Ee,We=arguments;return regeneratorRuntime.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:for(he=We.length,be=new Array(he),Ee=0;Ee<he;Ee++)be[Ee]=We[Ee];return F.current.promise||(F.current.promise=new Promise(function(ze,Pe){F.current.resolve=ze,F.current.reject=Pe})),F.current.timeout&&clearTimeout(F.current.timeout),F.current.timeout=setTimeout(i(regeneratorRuntime.mark(function ze(){return regeneratorRuntime.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return delete F.current.timeout,Pe.prev=1,Pe.t0=F.current,Pe.next=5,W().apply(void 0,be);case 5:Pe.t1=Pe.sent,Pe.t0.resolve.call(Pe.t0,Pe.t1),Pe.next=12;break;case 9:Pe.prev=9,Pe.t2=Pe.catch(1),F.current.reject(Pe.t2);case 12:return Pe.prev=12,delete F.current.promise,Pe.finish(12);case 15:case"end":return Pe.stop()}},ze,null,[[1,9,12,15]])})),J()),Be.abrupt("return",F.current.promise);case 5:case"end":return Be.stop()}},re)}));return function(){return Y.apply(this,arguments)}}(),[W,J])},n.useBlockLayout=dm,n.useColumnOrder=cm,n.useExpanded=ee,n.useFilters=_o,n.useFlexLayout=Nl,n.useGetLatest=S,n.useGlobalFilter=Jr,n.useGridLayout=le,n.useGroupBy=tr,n.useMountedLayoutEffect=A,n.usePagination=om,n.useResizeColumns=Vd,n.useRowSelect=sm,n.useRowState=Hd,n.useSortBy=jn,n.useTable=function(E){for(var L=arguments.length,F=new Array(L>1?L-1:0),W=1;W<L;W++)F[W-1]=arguments[W];E=$e(E),F=[ye].concat(F);var J=r.useRef({}),Y=S(J.current);Object.assign(Y(),a({},E,{plugins:F,hooks:Ne()})),F.filter(Boolean).forEach(function(St){St(Y().hooks)});var re=S(Y().hooks);Y().getHooks=re,delete Y().hooks,Object.assign(Y(),v(re().useOptions,$e(E)));var he=Y(),be=he.data,Ee=he.columns,We=he.initialState,Be=he.defaultColumn,ze=he.getSubRows,Pe=he.getRowId,je=he.stateReducer,Ke=he.useControlledState,rt=S(je),mt=r.useCallback(function(St,Xn){if(!Xn.type)throw console.info({action:Xn}),new Error("Unknown Action 👆");return[].concat(re().stateReducers,Array.isArray(rt())?rt():[rt()]).reduce(function(Cr,xo){return xo(Cr,Xn,St,Y())||Cr},St)},[re,rt,Y]),Ft=r.useReducer(mt,void 0,function(){return mt(We,{type:u.init})}),ft=Ft[0],He=Ft[1],It=v([].concat(re().useControlledState,[Ke]),ft,{instance:Y()});Object.assign(Y(),{state:It,dispatch:He});var lt=r.useMemo(function(){return P(v(re().columns,Ee,{instance:Y()}))},[re,Y,Ee].concat(v(re().columnsDeps,[],{instance:Y()})));Y().columns=lt;var At=r.useMemo(function(){return v(re().allColumns,_(lt),{instance:Y()}).map(I)},[lt,re,Y].concat(v(re().allColumnsDeps,[],{instance:Y()})));Y().allColumns=At;var Kt=r.useMemo(function(){for(var St=[],Xn=[],Cr={},xo=[].concat(At);xo.length;){var zr=xo.shift();oe({data:be,rows:St,flatRows:Xn,rowsById:Cr,column:zr,getRowId:Pe,getSubRows:ze,accessValueHooks:re().accessValue,getInstance:Y})}return[St,Xn,Cr]},[At,be,Pe,ze,re,Y]),wt=Kt[0],Tt=Kt[1],cn=Kt[2];Object.assign(Y(),{rows:wt,initialRows:[].concat(wt),flatRows:Tt,rowsById:cn}),y(re().useInstanceAfterData,Y());var Pt=r.useMemo(function(){return v(re().visibleColumns,At,{instance:Y()}).map(function(St){return $(St,Be)})},[re,At,Y,Be].concat(v(re().visibleColumnsDeps,[],{instance:Y()})));At=r.useMemo(function(){var St=[].concat(Pt);return At.forEach(function(Xn){St.find(function(Cr){return Cr.id===Xn.id})||St.push(Xn)}),St},[At,Pt]),Y().allColumns=At;var sn=r.useMemo(function(){return v(re().headerGroups,U(Pt,Be),Y())},[re,Pt,Be,Y].concat(v(re().headerGroupsDeps,[],{instance:Y()})));Y().headerGroups=sn;var en=r.useMemo(function(){return sn.length?sn[0].headers:[]},[sn]);Y().headers=en,Y().flatHeaders=sn.reduce(function(St,Xn){return[].concat(St,Xn.headers)},[]),y(re().useInstanceBeforeDimensions,Y());var Ln=Pt.filter(function(St){return St.isVisible}).map(function(St){return St.id}).sort().join("_");Pt=r.useMemo(function(){return Pt.filter(function(St){return St.isVisible})},[Pt,Ln]),Y().visibleColumns=Pt;var vt=Qe(en),Xt=vt[0],lr=vt[1],So=vt[2];return Y().totalColumnsMinWidth=Xt,Y().totalColumnsWidth=lr,Y().totalColumnsMaxWidth=So,y(re().useInstance,Y()),[].concat(Y().flatHeaders,Y().allColumns).forEach(function(St){St.render=T(Y(),St),St.getHeaderProps=g(re().getHeaderProps,{instance:Y(),column:St}),St.getFooterProps=g(re().getFooterProps,{instance:Y(),column:St})}),Y().headerGroups=r.useMemo(function(){return sn.filter(function(St,Xn){return St.headers=St.headers.filter(function(Cr){return Cr.headers?function xo(zr){return zr.filter(function(Is){return Is.headers?xo(Is.headers):Is.isVisible}).length}(Cr.headers):Cr.isVisible}),!!St.headers.length&&(St.getHeaderGroupProps=g(re().getHeaderGroupProps,{instance:Y(),headerGroup:St,index:Xn}),St.getFooterGroupProps=g(re().getFooterGroupProps,{instance:Y(),headerGroup:St,index:Xn}),!0)})},[sn,Y,re]),Y().footerGroups=[].concat(Y().headerGroups).reverse(),Y().prepareRow=r.useCallback(function(St){St.getRowProps=g(re().getRowProps,{instance:Y(),row:St}),St.allCells=At.map(function(Xn){var Cr=St.values[Xn.id],xo={column:Xn,row:St,value:Cr};return xo.getCellProps=g(re().getCellProps,{instance:Y(),cell:xo}),xo.render=T(Y(),Xn,{row:St,cell:xo,value:Cr}),xo}),St.cells=Pt.map(function(Xn){return St.allCells.find(function(Cr){return Cr.column.id===Xn.id})}),y(re().prepareRow,St,{instance:Y()})},[re,Y,At,Pt]),Y().getTableProps=g(re().getTableProps,{instance:Y()}),Y().getTableBodyProps=g(re().getTableBodyProps,{instance:Y()}),y(re().useFinalInstance,Y()),Y()},Object.defineProperty(n,"__esModule",{value:!0})})})(cx,cx.exports);var Ule=cx.exports;P9.exports=Ule;var Yt=P9.exports;const Wle=()=>{throw new Error("setAnnouncement called outside AnnouncerContext")},EE=Te.createContext({setAnnouncement:Wle}),Hle=C(vN,{shouldForwardProp:e=>e!=="isFlex"&&e!=="isSortable"&&e!=="isFlexGrow"})(({theme:e,isFlex:t,isSortable:n,isFlexGrow:r})=>({position:"relative",fontWeight:e.typography.fontWeightRegular,...t&&{justifyContent:"stretch",alignItems:"center",display:"flex",flexShrink:0,"& > *":{flexGrow:1}},...n&&{padding:0,"&:hover, &:focus":{backgroundColor:e.palette.table.headerHover,"& svg":{color:"inherit"}}},...r&&{flexGrow:1}})),Vle=C("button",{shouldForwardProp:e=>e!=="isSorted"})(({theme:e,isSorted:t})=>({...ji(e),all:"unset",whiteSpace:"nowrap",width:"100%",position:"relative",zIndex:1,":hover, :focus, &:focus-visible, &:active":{".hover-only":{display:"inline-block"}},display:"flex",boxSizing:"inherit",cursor:"pointer",...t&&{fontWeight:e.typography.fontWeightBold}})),Gle=C("span")(({theme:e})=>({display:"flex",flexDirection:"column",flexShrink:1,minWidth:0,"::after":{fontWeight:"bold",display:"inline-block",height:0,content:"attr(data-text)",visibility:"hidden",overflow:"hidden"}})),qle=C("span")(({theme:e})=>({padding:e.spacing(2),visibility:"hidden",display:"flex",alignItems:"center",width:"100%"})),Kle=C("span")(({theme:e})=>({padding:e.spacing(2),position:"absolute",display:"flex",alignItems:"center",width:"100%",height:"100%",".hover-only":{display:"none"},"& > span":{minWidth:0,whiteSpace:"nowrap",textOverflow:"ellipsis",overflowX:"hidden",overflowY:"visible"}}));var I9={exports:{}};/*!
255
- Copyright (c) 2018 Jed Watson.
256
- Licensed under the MIT License (MIT), see
257
- http://jedwatson.github.io/classnames
258
- */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var a=typeof i;if(a==="string"||a==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var s=n.apply(null,i);s&&r.push(s)}}else if(a==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var c in i)t.call(i,c)&&i[c]&&r.push(c)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(I9);var Yle=I9.exports;const Pi=qr(Yle),zb=e=>({marginLeft:e.spacing(.25),marginRight:e.spacing(-.5),fontSize:e.fontSizes.mainHeader,verticalAlign:"middle"}),E5=({isSorted:e,isDesc:t=!1,className:n})=>l(q,{condition:!!e,show:l(q,{condition:!!t,show:l(rx,{sx:r=>({...zb(r)}),className:n,fontSize:"inherit"}),elseShow:l(cle,{sx:r=>({...zb(r)}),className:n,fontSize:"inherit"})}),elseShow:l(xle,{sx:r=>({...zb(r)}),className:Pi(n,"hover-only"),fontSize:"inherit"})}),Xle=({children:e,isSortable:t=!0,isSorted:n=!1,isDescending:r,width:o,minWidth:i,maxWidth:a,align:s,ariaTitle:c,isFlex:u,isFlexGrow:d,onClick:p=()=>{}})=>{const{setAnnouncement:f}=m.useContext(EE),[h,g]=m.useState(""),v=m.useRef(null),y=n?r?"descending":"ascending":void 0,b=S=>{p(S),f(`Sorted${c?` by ${c} `:""}, ${r?"ascending":"descending"}`)},w=m.useMemo(()=>{switch(s){case"left":return{justifyContent:"flex-start",textAlign:"left"};case"center":return{justifyContent:"center",textAlign:"center"};case"right":return{justifyContent:"flex-end",textAlign:"right"};default:return}},[s]);return m.useEffect(()=>{(()=>{var A,T;const k=c&&v.current&&((A=v==null?void 0:v.current)==null?void 0:A.offsetWidth)<((T=v==null?void 0:v.current)==null?void 0:T.scrollWidth)?`${e}`:"";k!==h&&g(k)})()},[g,c]),l(Hle,{component:"th","aria-sort":y,style:{width:o,minWidth:i,maxWidth:a},isFlex:u,isFlexGrow:d,isSortable:t,children:l(q,{condition:t,show:l(xt,{title:h,arrow:!0,children:x(Vle,{isSorted:n,type:"button",onClick:b,children:[x(qle,{style:w,"aria-hidden":!0,children:[l(Gle,{tabIndex:-1,"data-text":e,children:e}),l(E5,{isSorted:n,isDesc:r})]}),x(Kle,{style:w,children:[l("span",{ref:v,tabIndex:-1,children:l("span",{children:e})}),l(E5,{isSorted:n,isDesc:r,className:"sort-arrow"})]})]})}),elseShow:l("div",{style:w,children:e})})})},sa=({headerGroups:e,className:t,flex:n})=>l(Fre,{className:t,children:e.map(r=>l(zi,{...r.getHeaderGroupProps(),children:r.headers.map(o=>{const i=o.render("Header");return l(Xle,{...o.getHeaderProps(o.canSort?o.getSortByToggleProps():void 0),ariaTitle:typeof i=="string"?i:void 0,isSortable:!!o.canSort,isSorted:o.isSorted,isDescending:o.isSortedDesc,maxWidth:o.maxWidth,minWidth:o.minWidth,width:o.width,isFlex:n,isFlexGrow:!!o.minWidth,align:o.align,children:i})})}))}),la=({rowHeight:e="auto",...t})=>l(yre,{sx:{position:"relative","& tbody tr":{height:n=>({auto:"auto",standard:n.shape.tableRowHeight,compact:n.shape.tableRowHeightCompact,dense:n.shape.tableRowHeightDense})[e]??e}},...t}),Jle=C(vN)(({theme:e})=>({padding:0})),Wi=m.forwardRef(({className:e,...t},n)=>l(Jle,{...t,ref:n})),Kn=({children:e})=>l(Le,{sx:{border:t=>`2px dashed ${t.palette.divider}`,p:8,textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",mt:2,width:"100%"},children:e}),Qle=(e,t=40,n=5)=>{const[r,o]=m.useState(Math.floor(window.pageYOffset/e));return m.useEffect(()=>{const i=()=>{requestAnimationFrame(()=>{o(Math.floor(window.pageYOffset/(e*n))*n)})};return window.addEventListener("scroll",i,{passive:!0}),()=>{window.removeEventListener("scroll",i)}},[e,n]),[r-t,r+t]},b1=({rowHeight:e,headerGroups:t,rows:n,prepareRow:r})=>{const o=gn(),i=m.useMemo(()=>e||o.shape.tableRowHeight,[e,o.shape.tableRowHeight]),[a,s]=Qle(i),c=m.useMemo(()=>i*n.length+o.shape.tableRowHeightCompact,[i,n.length,o.shape.tableRowHeightCompact]);return x(la,{role:"table",rowHeight:i,style:{height:c},children:[l(sa,{headerGroups:t,flex:!0}),l(aa,{role:"rowgroup",sx:{"& tr":{position:"absolute",width:"100%","&:hover":{".show-row-hover":{opacity:1}}},"& tr td":{alignItems:"center",display:"flex",flexShrink:0,"& > *":{flexGrow:1}}},children:n.map((u,d)=>{const p=d*i+o.shape.tableRowHeightCompact;return d<a||d>s?null:(r(u),m.createElement(zi,{hover:!0,...u.getRowProps({style:{display:"flex",top:p}}),key:u.id},u.cells.map(h=>l(Wi,{...h.getCellProps({style:{flex:h.column.minWidth?"1 0 auto":void 0}}),children:h.render("Cell")}))))})})]})},Zle=e=>fetch(e).then(Rn("Feature toggle")).then(t=>t.json()),TE=()=>{const{data:e,error:t,mutate:n}=An(Bt("api/admin/features"),Zle,{refreshInterval:15e3});return{features:e==null?void 0:e.features,loading:!t&&!e,refetchFeatures:n,error:t}},O9=m.createContext(""),Xa=O9.Provider,Al=()=>({searchQuery:m.useContext(O9)}),T5=e=>{let t;const n=new Set,r=(c,u)=>{const d=typeof c=="function"?c(t):c;if(d!==t){const p=t;t=u?d:Object.assign({},t,d),n.forEach(f=>f(t,p))}},o=()=>t,s={setState:r,getState:o,subscribe:c=>(n.add(c),()=>n.delete(c)),destroy:()=>n.clear()};return t=e(r,o,s),s},ece=e=>e?T5(e):T5;var $9={exports:{}},N9={};/**
259
- * @license React
260
- * use-sync-external-store-shim/with-selector.production.min.js
261
- *
262
- * Copyright (c) Facebook, Inc. and its affiliates.
263
- *
264
- * This source code is licensed under the MIT license found in the
265
- * LICENSE file in the root directory of this source tree.
266
- */var w1=m,tce=zN;function nce(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var rce=typeof Object.is=="function"?Object.is:nce,oce=tce.useSyncExternalStore,ice=w1.useRef,ace=w1.useEffect,sce=w1.useMemo,lce=w1.useDebugValue;N9.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=ice(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=sce(function(){function c(h){if(!u){if(u=!0,d=h,h=r(h),o!==void 0&&a.hasValue){var g=a.value;if(o(g,h))return p=g}return p=h}if(g=p,rce(d,h))return g;var v=r(h);return o!==void 0&&o(g,v)?g:(d=h,p=v)}var u=!1,d,p,f=n===void 0?null:n;return[function(){return c(t())},f===null?void 0:function(){return c(f())}]},[t,n,r,o]);var s=oce(e,i[0],i[1]);return ace(function(){a.hasValue=!0,a.value=s},[s]),lce(s),s};$9.exports=N9;var cce=$9.exports;const uce=qr(cce),{useSyncExternalStoreWithSelector:dce}=uce;function pce(e,t=e.getState,n){const r=dce(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return m.useDebugValue(r),r}const k5=e=>{const t=typeof e=="function"?ece(e):e,n=(r,o)=>pce(t,r,o);return Object.assign(n,t),n},fce=e=>e?k5(e):k5;var hce=fce;const mce=e=>{const t=hce(()=>e),n=(r,o)=>{t.setState(i=>{return{[r]:(a=i[r],s=o,typeof s=="function"?s(a):s)};var a,s})};return{useGlobalState:r=>{const o=m.useCallback(i=>i[r],[r]);return[t(o),m.useCallback(i=>n(r,i),[r])]},getGlobalState:r=>t.getState()[r],setGlobalState:n,subscribe:(r,o)=>{t.subscribe((i,a)=>{i[r]!==a[r]&&o(i[r])})}}},kE=(e,t)=>{const n=mce({[e]:Gf(e)??t}),r=o=>{const i=n.getGlobalState(e),a=o instanceof Function?o(i):o;n.setGlobalState(e,a),Ku(e,a)};return()=>[n.useGlobalState(e)[0],r]},Ja=()=>{const[e,t]=vce();return{locationSettings:e,setLocationSettings:t}},gce=()=>({locale:navigator.language}),vce=kE(`${ei}:useLocationSettings:v1`,gce()),S1=(e,t)=>new Date(e).toLocaleString(t,{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"}),Xu=(e,t)=>new Date(e).toLocaleString(t,{day:"2-digit",month:"2-digit",year:"numeric"}),qMe=(e,t)=>new Date(e).toLocaleString(t,{hour:"2-digit",minute:"2-digit"});function vl(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function yce(e,t){ar(2,arguments);var n=Pr(e).getTime(),r=vl(t);return new Date(n+r)}var bce={};function Dh(){return bce}function wce(e,t){ar(2,arguments);var n=Pr(e),r=Pr(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}var L9=6e4,M9=36e5,KMe=1e3;function Sce(e){return ar(1,arguments),e instanceof Date||Cv(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function AE(e){if(ar(1,arguments),!Sce(e)&&typeof e!="number")return!1;var t=Pr(e);return!isNaN(Number(t))}function xce(e,t){ar(2,arguments);var n=vl(t);return yce(e,-n)}var Cce=864e5;function Ece(e){ar(1,arguments);var t=Pr(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/Cce)+1}function Rv(e){ar(1,arguments);var t=1,n=Pr(e),r=n.getUTCDay(),o=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}function D9(e){ar(1,arguments);var t=Pr(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=Rv(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=Rv(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function Tce(e){ar(1,arguments);var t=D9(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Rv(n);return r}var kce=6048e5;function Ace(e){ar(1,arguments);var t=Pr(e),n=Rv(t).getTime()-Tce(t).getTime();return Math.round(n/kce)+1}function _v(e,t){var n,r,o,i,a,s,c,u;ar(1,arguments);var d=Dh(),p=vl((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&r!==void 0?r:(c=d.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Pr(e),h=f.getUTCDay(),g=(h<p?7:0)+h-p;return f.setUTCDate(f.getUTCDate()-g),f.setUTCHours(0,0,0,0),f}function B9(e,t){var n,r,o,i,a,s,c,u;ar(1,arguments);var d=Pr(e),p=d.getUTCFullYear(),f=Dh(),h=vl((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&o!==void 0?o:f.firstWeekContainsDate)!==null&&r!==void 0?r:(c=f.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(p+1,0,h),g.setUTCHours(0,0,0,0);var v=_v(g,t),y=new Date(0);y.setUTCFullYear(p,0,h),y.setUTCHours(0,0,0,0);var b=_v(y,t);return d.getTime()>=v.getTime()?p+1:d.getTime()>=b.getTime()?p:p-1}function Rce(e,t){var n,r,o,i,a,s,c,u;ar(1,arguments);var d=Dh(),p=vl((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&o!==void 0?o:d.firstWeekContainsDate)!==null&&r!==void 0?r:(c=d.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),f=B9(e,t),h=new Date(0);h.setUTCFullYear(f,0,p),h.setUTCHours(0,0,0,0);var g=_v(h,t);return g}var _ce=6048e5;function Pce(e,t){ar(1,arguments);var n=Pr(e),r=_v(n,t).getTime()-Rce(n,t).getTime();return Math.round(r/_ce)+1}function Pn(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var Ice={y:function(t,n){var r=t.getUTCFullYear(),o=r>0?r:1-r;return Pn(n==="yy"?o%100:o,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):Pn(r+1,2)},d:function(t,n){return Pn(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return Pn(t.getUTCHours()%12||12,n.length)},H:function(t,n){return Pn(t.getUTCHours(),n.length)},m:function(t,n){return Pn(t.getUTCMinutes(),n.length)},s:function(t,n){return Pn(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,o=t.getUTCMilliseconds(),i=Math.floor(o*Math.pow(10,r-3));return Pn(i,n.length)}};const $s=Ice;var qc={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Oce={G:function(t,n,r){var o=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var o=t.getUTCFullYear(),i=o>0?o:1-o;return r.ordinalNumber(i,{unit:"year"})}return $s.y(t,n)},Y:function(t,n,r,o){var i=B9(t,o),a=i>0?i:1-i;if(n==="YY"){var s=a%100;return Pn(s,2)}return n==="Yo"?r.ordinalNumber(a,{unit:"year"}):Pn(a,n.length)},R:function(t,n){var r=D9(t);return Pn(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return Pn(r,n.length)},Q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(o);case"QQ":return Pn(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(o);case"qq":return Pn(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,n,r){var o=t.getUTCMonth();switch(n){case"M":case"MM":return $s.M(t,n);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(t,n,r){var o=t.getUTCMonth();switch(n){case"L":return String(o+1);case"LL":return Pn(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(t,n,r,o){var i=Pce(t,o);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):Pn(i,n.length)},I:function(t,n,r){var o=Ace(t);return n==="Io"?r.ordinalNumber(o,{unit:"week"}):Pn(o,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):$s.d(t,n)},D:function(t,n,r){var o=Ece(t);return n==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):Pn(o,n.length)},E:function(t,n,r){var o=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(t,n,r,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return Pn(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return Pn(a,n.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var o=t.getUTCDay(),i=o===0?7:o;switch(n){case"i":return String(i);case"ii":return Pn(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(t,n,r){var o=t.getUTCHours(),i=o/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var o=t.getUTCHours(),i;switch(o===12?i=qc.noon:o===0?i=qc.midnight:i=o/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var o=t.getUTCHours(),i;switch(o>=17?i=qc.evening:o>=12?i=qc.afternoon:o>=4?i=qc.morning:i=qc.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var o=t.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return $s.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):$s.H(t,n)},K:function(t,n,r){var o=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(o,{unit:"hour"}):Pn(o,n.length)},k:function(t,n,r){var o=t.getUTCHours();return o===0&&(o=24),n==="ko"?r.ordinalNumber(o,{unit:"hour"}):Pn(o,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):$s.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):$s.s(t,n)},S:function(t,n){return $s.S(t,n)},X:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return R5(a);case"XXXX":case"XX":return Wl(a);case"XXXXX":case"XXX":default:return Wl(a,":")}},x:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"x":return R5(a);case"xxxx":case"xx":return Wl(a);case"xxxxx":case"xxx":default:return Wl(a,":")}},O:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+A5(a,":");case"OOOO":default:return"GMT"+Wl(a,":")}},z:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+A5(a,":");case"zzzz":default:return"GMT"+Wl(a,":")}},t:function(t,n,r,o){var i=o._originalDate||t,a=Math.floor(i.getTime()/1e3);return Pn(a,n.length)},T:function(t,n,r,o){var i=o._originalDate||t,a=i.getTime();return Pn(a,n.length)}};function A5(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var a=t||"";return n+String(o)+a+Pn(i,2)}function R5(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Pn(Math.abs(e)/60,2)}return Wl(e,t)}function Wl(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e),i=Pn(Math.floor(o/60),2),a=Pn(o%60,2);return r+i+n+a}const $ce=Oce;var _5=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},F9=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Nce=function(t,n){var r=t.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return _5(t,n);var a;switch(o){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",_5(o,n)).replace("{{time}}",F9(i,n))},Lce={p:F9,P:Nce};const Mce=Lce;var Dce=["D","DD"],Bce=["YY","YYYY"];function Fce(e){return Dce.indexOf(e)!==-1}function zce(e){return Bce.indexOf(e)!==-1}function P5(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var jce={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Uce=function(t,n,r){var o,i=jce[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};const Wce=Uce;function jb(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var Hce={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Vce={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Gce={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},qce={date:jb({formats:Hce,defaultWidth:"full"}),time:jb({formats:Vce,defaultWidth:"full"}),dateTime:jb({formats:Gce,defaultWidth:"full"})};const Kce=qce;var Yce={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Xce=function(t,n,r,o){return Yce[t]};const Jce=Xce;function vp(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",o;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):i;o=e.formattingValues[a]||e.formattingValues[i]}else{var s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[c]||e.values[s]}var u=e.argumentCallback?e.argumentCallback(t):t;return o[u]}}var Qce={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Zce={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},eue={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},tue={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},nue={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},rue={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},oue=function(t,n){var r=Number(t),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},iue={ordinalNumber:oue,era:vp({values:Qce,defaultWidth:"wide"}),quarter:vp({values:Zce,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:vp({values:eue,defaultWidth:"wide"}),day:vp({values:tue,defaultWidth:"wide"}),dayPeriod:vp({values:nue,defaultWidth:"wide",formattingValues:rue,defaultFormattingWidth:"wide"})};const aue=iue;function yp(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?lue(s,function(p){return p.test(a)}):sue(s,function(p){return p.test(a)}),u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;var d=t.slice(a.length);return{value:u,rest:d}}}function sue(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function lue(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function cue(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;var s=t.slice(o.length);return{value:a,rest:s}}}var uue=/^(\d+)(th|st|nd|rd)?/i,due=/\d+/i,pue={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},fue={any:[/^b/i,/^(a|c)/i]},hue={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},mue={any:[/1/i,/2/i,/3/i,/4/i]},gue={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},vue={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},yue={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},bue={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},wue={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Sue={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},xue={ordinalNumber:cue({matchPattern:uue,parsePattern:due,valueCallback:function(t){return parseInt(t,10)}}),era:yp({matchPatterns:pue,defaultMatchWidth:"wide",parsePatterns:fue,defaultParseWidth:"any"}),quarter:yp({matchPatterns:hue,defaultMatchWidth:"wide",parsePatterns:mue,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:yp({matchPatterns:gue,defaultMatchWidth:"wide",parsePatterns:vue,defaultParseWidth:"any"}),day:yp({matchPatterns:yue,defaultMatchWidth:"wide",parsePatterns:bue,defaultParseWidth:"any"}),dayPeriod:yp({matchPatterns:wue,defaultMatchWidth:"any",parsePatterns:Sue,defaultParseWidth:"any"})};const Cue=xue;var Eue={code:"en-US",formatDistance:Wce,formatLong:Kce,formatRelative:Jce,localize:aue,match:Cue,options:{weekStartsOn:0,firstWeekContainsDate:1}};const z9=Eue;var Tue=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,kue=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Aue=/^'([^]*?)'?$/,Rue=/''/g,_ue=/[a-zA-Z]/;function eh(e,t,n){var r,o,i,a,s,c,u,d,p,f,h,g,v,y,b,w,S,k;ar(2,arguments);var A=String(t),T=Dh(),R=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:T.locale)!==null&&r!==void 0?r:z9,P=vl((i=(a=(s=(c=n==null?void 0:n.firstWeekContainsDate)!==null&&c!==void 0?c:n==null||(u=n.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&s!==void 0?s:T.firstWeekContainsDate)!==null&&a!==void 0?a:(p=T.locale)===null||p===void 0||(f=p.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(P>=1&&P<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=vl((h=(g=(v=(y=n==null?void 0:n.weekStartsOn)!==null&&y!==void 0?y:n==null||(b=n.locale)===null||b===void 0||(w=b.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&v!==void 0?v:T.weekStartsOn)!==null&&g!==void 0?g:(S=T.locale)===null||S===void 0||(k=S.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&h!==void 0?h:0);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!R.localize)throw new RangeError("locale must contain localize property");if(!R.formatLong)throw new RangeError("locale must contain formatLong property");var I=Pr(e);if(!AE(I))throw new RangeError("Invalid time value");var $=Kf(I),U=xce(I,$),M={firstWeekContainsDate:P,weekStartsOn:_,locale:R,_originalDate:I},D=A.match(kue).map(function(K){var H=K[0];if(H==="p"||H==="P"){var Q=Mce[H];return Q(K,R.formatLong)}return K}).join("").match(Tue).map(function(K){if(K==="''")return"'";var H=K[0];if(H==="'")return Pue(K);var Q=$ce[H];if(Q)return!(n!=null&&n.useAdditionalWeekYearTokens)&&zce(K)&&P5(K,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Fce(K)&&P5(K,t,String(e)),Q(U,K,R.localize,M);if(H.match(_ue))throw new RangeError("Format string contains an unescaped latin alphabet character `"+H+"`");return K}).join("");return D}function Pue(e){var t=e.match(Aue);return t?t[1].replace(Rue,"'"):e}function j9(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Iue(e){return j9({},e)}var I5=1e3*60,Pv=60*24,O5=Pv*30,$5=Pv*365;function Oue(e,t,n){var r,o,i;ar(2,arguments);var a=Dh(),s=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:a.locale)!==null&&r!==void 0?r:z9;if(!s.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var c=wce(e,t);if(isNaN(c))throw new RangeError("Invalid time value");var u=j9(Iue(n),{addSuffix:!!(n!=null&&n.addSuffix),comparison:c}),d,p;c>0?(d=Pr(t),p=Pr(e)):(d=Pr(e),p=Pr(t));var f=String((i=n==null?void 0:n.roundingMethod)!==null&&i!==void 0?i:"round"),h;if(f==="floor")h=Math.floor;else if(f==="ceil")h=Math.ceil;else if(f==="round")h=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var g=p.getTime()-d.getTime(),v=g/I5,y=Kf(p)-Kf(d),b=(g-y)/I5,w=n==null?void 0:n.unit,S;if(w?S=String(w):v<1?S="second":v<60?S="minute":v<Pv?S="hour":b<O5?S="day":b<$5?S="month":S="year",S==="second"){var k=h(g/1e3);return s.formatDistance("xSeconds",k,u)}else if(S==="minute"){var A=h(v);return s.formatDistance("xMinutes",A,u)}else if(S==="hour"){var T=h(v/60);return s.formatDistance("xHours",T,u)}else if(S==="day"){var R=h(b/Pv);return s.formatDistance("xDays",R,u)}else if(S==="month"){var P=h(b/O5);return P===12&&w!=="month"?s.formatDistance("xYears",1,u):s.formatDistance("xMonths",P,u)}else if(S==="year"){var _=h(b/$5);return s.formatDistance("xYears",_,u)}throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}function $ue(e,t){return ar(1,arguments),Oue(e,Date.now(),t)}function Nue(e){return ar(1,arguments),Pr(e).getTime()<Date.now()}function Bh(e,t){var n;ar(1,arguments);var r=vl((n=t==null?void 0:t.additionalDigits)!==null&&n!==void 0?n:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var o=Bue(e),i;if(o.date){var a=Fue(o.date,r);i=zue(a.restDateString,a.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var s=i.getTime(),c=0,u;if(o.time&&(c=jue(o.time),isNaN(c)))return new Date(NaN);if(o.timezone){if(u=Uue(o.timezone),isNaN(u))return new Date(NaN)}else{var d=new Date(s+c),p=new Date(0);return p.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),p.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),p}return new Date(s+c+u)}var Ym={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Lue=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Mue=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Due=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Bue(e){var t={},n=e.split(Ym.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Ym.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Ym.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var o=Ym.timezone.exec(r);o?(t.time=r.replace(o[1],""),t.timezone=o[1]):t.time=r}return t}function Fue(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function zue(e,t){if(t===null)return new Date(NaN);var n=e.match(Lue);if(!n)return new Date(NaN);var r=!!n[4],o=bp(n[1]),i=bp(n[2])-1,a=bp(n[3]),s=bp(n[4]),c=bp(n[5])-1;if(r)return que(t,s,c)?Wue(t,s,c):new Date(NaN);var u=new Date(0);return!Vue(t,i,a)||!Gue(t,o)?new Date(NaN):(u.setUTCFullYear(t,i,Math.max(o,a)),u)}function bp(e){return e?parseInt(e):1}function jue(e){var t=e.match(Mue);if(!t)return NaN;var n=Ub(t[1]),r=Ub(t[2]),o=Ub(t[3]);return Kue(n,r,o)?n*M9+r*L9+o*1e3:NaN}function Ub(e){return e&&parseFloat(e.replace(",","."))||0}function Uue(e){if(e==="Z")return 0;var t=e.match(Due);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return Yue(r,o)?n*(r*M9+o*L9):NaN}function Wue(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,i=(t-1)*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}var Hue=[31,null,31,30,31,30,31,31,30,31,30,31];function U9(e){return e%400===0||e%4===0&&e%100!==0}function Vue(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Hue[t]||(U9(e)?29:28))}function Gue(e,t){return t>=1&&t<=(U9(e)?366:365)}function que(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Kue(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Yue(e,t){return t>=0&&t<=59}const Xue=C(Le,{shouldForwardProp:e=>e!=="lineClamp"})(({theme:e,lineClamp:t})=>({padding:e.spacing(1,2),display:"-webkit-box",overflow:t?"hidden":"auto",WebkitLineClamp:t||"none",WebkitBoxOrient:"vertical",wordBreak:"break-all",[e.breakpoints.down("sm")]:{wordBreak:"normal"}})),rr=({value:e,children:t,lineClamp:n,sx:r,"data-testid":o})=>l(Xue,{lineClamp:n,sx:r,children:l("span",{"data-loading":"true","data-testid":o,children:t??e})}),th=({value:e})=>{const{locationSettings:t}=Ja(),n=e?e instanceof Date?Xu(e,t.locale):Xu(Bh(e),t.locale):void 0;return l(rr,{lineClamp:1,children:n})};function RE(e,t){return new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),t)}const Jue=C("span")(({theme:e})=>({"&>mark":{backgroundColor:e.palette.highlight}})),Ua=({search:e,children:t,caseSensitive:n})=>{if(!t)return null;if(!e)return l(ve,{children:t});const r=RE(e,n?"g":"gi");return l(Jue,{dangerouslySetInnerHTML:{__html:(t==null?void 0:t.replaceAll(r,"<mark>$&</mark>"))||""}})},W9=e=>({paddingTop:e.spacing(1.5),paddingBottom:e.spacing(1.5),paddingLeft:e.spacing(2),paddingRight:e.spacing(2),display:"flex",alignItems:"center",minHeight:"62px"}),Que=C("div")(({theme:e})=>W9(e)),N5=C(Vr)(({theme:e})=>({...W9(e),"&:hover, &:focus":{textDecoration:"none","& > div > span:first-of-type":{textDecoration:"underline"}}})),Zue=C("div")(({theme:e})=>({display:"flex",flexDirection:"column",justifyContent:"center",wordBreak:"break-all"})),ede=C("span")(({theme:e})=>({overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical"})),tde=C("span")(({theme:e})=>({color:e.palette.text.secondary,textDecoration:"none",fontSize:"inherit",WebkitLineClamp:1,lineClamp:1,overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical"})),Rs=({title:e,to:t,onClick:n,subtitle:r,children:o})=>{const{searchQuery:i}=Al(),a=x(Zue,{children:[x(ede,{"data-loading":!0,style:{WebkitLineClamp:r?1:2,lineClamp:r?1:2},children:[l(Ua,{search:i,children:e}),o]}),l(q,{condition:!!r,show:l(ve,{children:l(tde,{"data-loading":!0,children:l(Ua,{search:i,children:r})})})})]});return t?l(N5,{component:hn,to:t,underline:"hover",children:a}):n?l(N5,{onClick:n,underline:"hover",children:a}):l(Que,{children:a})};function Xm(e){const t=new Date(e);if(!Number.isNaN(t.valueOf()))return t;const n=String(e).match(/\d+/g);if(n==null||n.length<=2)return t;{const[r,o,...i]=n.map(c=>parseInt(c)),a=[r,o-1,...i];return new Date(Date.UTC(...a))}}function L5(e,t,n){const r=e!==1?t+"s":t;return e+" "+r+" "+n}function ux(){return ux=Object.assign?Object.assign.bind():function(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},ux.apply(this,arguments)}const Up=60,Wp=Up*60,Pu=Wp*24,Jm=Pu*7,M5=Pu*30,D5=Pu*365;function x1({date:e,formatter:t=L5,component:n="time",live:r=!0,minPeriod:o=0,maxPeriod:i=Jm,title:a,now:s=()=>Date.now(),...c}){const[u,d]=m.useState(s());m.useEffect(()=>{if(!r)return;const A=(()=>{const T=Xm(e).valueOf();if(!T)return console.warn("[react-timeago] Invalid Date provided"),0;const R=Math.round(Math.abs(u-T)/1e3),P=R<Up?1e3:R<Wp?1e3*Up:R<Pu?1e3*Wp:1e3*Jm,_=Math.min(Math.max(P,o*1e3),i*1e3);return _?setTimeout(()=>{d(s())},_):0})();return()=>{A&&clearTimeout(A)}},[e,r,i,o,s,u]);const p=n,f=Xm(e).valueOf();if(!f)return null;const h=Math.round(Math.abs(u-f)/1e3),g=f<u?"ago":"from now",[v,y]=h<Up?[Math.round(h),"second"]:h<Wp?[Math.round(h/Up),"minute"]:h<Pu?[Math.round(h/Wp),"hour"]:h<Jm?[Math.round(h/Pu),"day"]:h<M5?[Math.round(h/Jm),"week"]:h<D5?[Math.round(h/M5),"month"]:[Math.round(h/D5),"year"],b=typeof a>"u"?typeof e=="string"?e:Xm(e).toISOString().substr(0,16).replace("T"," "):a,w=p==="time"?{...c,dateTime:Xm(e).toISOString()}:c,S=L5.bind(null,v,y,g);return m.createElement(p,ux({},w,{title:b}),t(v,y,g,f,S,s))}function nde(e){switch(e){case"second":return"s";case"minute":return"m";case"hour":return"h";case"day":return"D";case"week":return"W";case"month":return"M";case"year":return"Y";default:return""}}const rde=()=>{const e=gn();return t=>{switch(t){case"second":return e.palette.seen.recent;case"minute":return e.palette.seen.recent;case"hour":return e.palette.seen.recent;case"day":return e.palette.seen.recent;case"week":return e.palette.seen.inactive;case"month":return e.palette.seen.abandoned;case"year":return e.palette.seen.abandoned;default:return e.palette.seen.unknown}}},ode=C("div")(({theme:e})=>({display:"flex",padding:e.spacing(1.5)})),ide=C("div")(({theme:e})=>({width:"38px",height:"38px",background:e.palette.background.paper,borderRadius:`${e.shape.borderRadius}px`,textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center",fontSize:e.typography.body2.fontSize,margin:"0 auto"})),B5=({unit:e,tooltip:t,children:n})=>{const r=rde();return l(ode,{children:l(xt,{title:t,arrow:!0,describeChild:!0,children:l(ide,{style:{background:r(e)},"data-loading":!0,children:n})})})},H9=({value:e})=>l(q,{condition:!!e,show:l(x1,{date:e,title:"",live:!1,formatter:(t,n,r)=>x(B5,{tooltip:`Last usage reported ${t} ${n}${t!==1?"s":""} ${r}`,unit:n,children:[t,nde(n)]})}),elseShow:l(B5,{tooltip:"No usage reported from connected applications",children:"–"})}),ade="experiment",sde="release",lde="operational",cde="kill-switch",ude="permission";var _E={},dde=En;Object.defineProperty(_E,"__esModule",{value:!0});var dx=_E.default=void 0,pde=dde(Tn()),fde=kn,hde=(0,pde.default)((0,fde.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Loop");dx=_E.default=hde;var PE={},mde=En;Object.defineProperty(PE,"__esModule",{value:!0});var V9=PE.default=void 0,gde=mde(Tn()),vde=kn,yde=(0,gde.default)((0,vde.jsx)("path",{d:"M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07s-.36-.02-.52-.07l-4.55 4.56c.05.16.07.33.07.51 0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.18 0 .35.02.51.07l4.56-4.55C8.02 9.36 8 9.18 8 9c0-1.1.9-2 2-2s2 .9 2 2c0 .18-.02.36-.07.52l2.55 2.55c.16-.05.34-.07.52-.07s.36.02.52.07l3.55-3.56C19.02 8.35 19 8.18 19 8c0-1.1.9-2 2-2s2 .9 2 2z"}),"Timeline");V9=PE.default=yde;var IE={},bde=En;Object.defineProperty(IE,"__esModule",{value:!0});var OE=IE.default=void 0,wde=bde(Tn()),Sde=kn,xde=(0,wde.default)((0,Sde.jsx)("path",{d:"M13 3h-2v10h2V3zm4.83 2.17-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83z"}),"PowerSettingsNew");OE=IE.default=xde;var $E={},Cde=En;Object.defineProperty($E,"__esModule",{value:!0});var G9=$E.default=void 0,Ede=Cde(Tn()),Tde=kn,kde=(0,Ede.default)((0,Tde.jsx)("path",{d:"M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"}),"PanTool");G9=$E.default=kde;var NE={},Ade=En;Object.defineProperty(NE,"__esModule",{value:!0});var q9=NE.default=void 0,Rde=Ade(Tn()),_de=kn,Pde=(0,Rde.default)((0,_de.jsx)("path",{d:"m22.7 19-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z"}),"Build");q9=NE.default=Pde;const Ide=e=>{switch(e){case sde:return dx;case ade:return V9;case cde:return OE;case lde:return q9;case ude:return G9;default:return dx}},LE=(e={})=>{const t=async()=>{const c=Bt("api/admin/feature-types");return(await fetch(c,{method:"GET"}).then(Rn("Feature types"))).json()},n="api/admin/feature-types",{data:r,error:o}=An(n,t,e),[i,a]=m.useState(!o&&!r),s=()=>{io(n)};return m.useEffect(()=>{a(!o&&!r)},[r,o]),{featureTypes:(r==null?void 0:r.types)||[],error:o,loading:i,refetch:s}},Ode=C("div")(({theme:e})=>({padding:e.spacing(1.5),display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),K9=({value:e})=>{const{featureTypes:t}=LE(),n=Ide(e),o=`This is a "${t.filter(i=>i.id===e).map(i=>i.name)||e}" toggle`;return l(Ode,{children:l(xt,{arrow:!0,title:o,describeChild:!0,children:l(n,{"data-loading":!0})})})},$de=({row:e})=>l(Rs,{title:e.original.name,subtitle:e.original.description,to:`/projects/${e.original.project}/features/${e.original.name}`}),Y9=e=>{const{setAnnouncement:t}=m.useContext(EE);m.useEffect(()=>{if(e)return document.title=e,()=>{document.title=F5}},[e]),m.useEffect(()=>{e&&e!==F5&&t(`Navigated to ${e}`)},[t,e])},F5="Unleash",Nde=C(To)(({theme:e})=>({height:"100%",borderColor:e.palette.divider,width:"1px",display:"inline-block",marginLeft:e.spacing(2),marginRight:e.spacing(2),padding:e.spacing(.5,0),verticalAlign:"middle"})),Lde=C("div")(()=>({display:"flex",flexDirection:"column"})),Mde=C("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative"})),Dde=C("div")(({theme:e})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginRight:e.spacing(2)})),Bde=C(se)(({theme:e})=>({fontSize:e.fontSizes.mainHeader,fontWeight:"normal",lineHeight:e.spacing(5)})),Fde=C("div")(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-end",alignItems:"center",gap:e.spacing(1)})),X9=({title:e,titleElement:t,actions:n,subtitle:r,variant:o,loading:i,className:a="",secondary:s,children:c})=>{const u=Pi({skeleton:i});return Y9(s?"":e),x(Lde,{children:[x(Mde,{children:[x(Dde,{className:Pi(u),"data-loading":!0,children:[l(Bde,{variant:o||s?"h2":"h1",className:Pi(a),children:t||e}),r&&l("small",{children:r})]}),l(q,{condition:!!n,show:l(Fde,{children:n})})]}),c]})},zde=({sx:e})=>l(Nde,{orientation:"vertical",variant:"middle",sx:e});X9.Divider=zde;const Dn=X9,jde=As()(e=>({headerPadding:{padding:e.spacing(2,4)},bodyContainer:{padding:e.spacing(4),[e.breakpoints.down("md")]:{padding:e.spacing(2)},overflowX:"auto"},paddingDisabled:{padding:"0"},borderDisabled:{border:"none"}})),C1=(e,t="[data-loading=true]")=>{const n=m.createRef();return m.useLayoutEffect(()=>{n.current&&n.current.querySelectorAll(t).forEach(o=>{e?o.classList.add("skeleton"):o.classList.remove("skeleton")})},[e,n]),n},Ude=C("div")(({theme:e})=>({borderBottomStyle:"solid",borderBottomWidth:"1px",borderBottomColor:e.palette.divider,[e.breakpoints.down("md")]:{padding:e.spacing(3,2)}})),Wde=C(wr)(({theme:e})=>({borderRadius:e.shape.borderRadiusLarge,boxShadow:"none"})),Hde=({children:e,isLoading:t})=>{const n=C1(t);return l("div",{ref:n,"aria-busy":t,"aria-live":"polite",children:e})},Or=({children:e,header:t,disablePadding:n=!1,disableBorder:r=!1,bodyClass:o="",headerClass:i="",isLoading:a=!1,disableLoading:s=!1,className:c,...u})=>{const{classes:d}=jde(),p=Pi("header",i||d.headerPadding,{[d.paddingDisabled]:n,[d.borderDisabled]:r}),f=Pi("body",o||d.bodyContainer,{[d.paddingDisabled]:n,[d.borderDisabled]:r}),g=x(Wde,{...u,...r?{elevation:0}:{},className:Pi(c),children:[l(q,{condition:!!t,show:l(Ude,{className:p,children:l(q,{condition:typeof t=="string",show:l(Dn,{title:t}),elseShow:t})})}),l("div",{className:f,children:e})]});return s?g:l(Hde,{isLoading:a,children:g})},Rc=(e,t)=>{const n=`${ei}:${e}:localStorage:v2`;return{value:(()=>{const i=Gf(n);return i===void 0?t:i})(),setValue:i=>{if(i instanceof Function){const a=Gf(n),s=i(a??t);return Ku(n,s),s}return Ku(n,i),i}}},Qa=(e={})=>{const t=()=>{const c=Bt("api/admin/projects");return fetch(c,{method:"GET"}).then(Rn("Projects")).then(u=>u.json())},n="api/admin/projects",{data:r,error:o}=An(n,t,e),[i,a]=m.useState(!o&&!r),s=()=>{io(n)};return m.useEffect(()=>{a(!o&&!r)},[r,o]),{projects:(r==null?void 0:r.projects)||[],error:o,loading:i,refetch:s}},Lg="default",Vde=()=>{var n;const{projects:e=[]}=Qa(),t=e.find(r=>r.id===Lg);return(t==null?void 0:t.id)||((n=e[0])==null?void 0:n.id)},Iv=(e,t)=>`/projects/${e}/features/${t}`,Gde=(e,t)=>{const n=`/projects/${e}/create-toggle`;let r;return t&&(r=Object.keys(t).reduce((o,i)=>(o+=`${i}=${t[i]}`,o),"")),r?`${n}?${r}`:n},qde=e=>`/projects/${e}/edit`,Kde=e=>{const t=Vde(),n=e.project==="*"||!e.project?t:e.project;if(n)return{path:Gde(n),projectId:n}},Yde=C("div")(({theme:e})=>({overflow:"auto",padding:e.spacing(1,1.5)})),Xde=C(({className:e,maxWidth:t,maxHeight:n,fontSize:r,...o})=>l(xt,{...o,title:l(Yde,{children:o.title}),classes:{popper:e}}),{shouldForwardProp:e=>e!=="maxWidth"&&e!=="maxHeight"&&e!=="fontSize"})(({theme:e,maxWidth:t=e.spacing(37.5),maxHeight:n=e.spacing(37.5),fontSize:r=e.fontSizes.smallerBody})=>({maxWidth:t,[`& .${Pa.tooltip}`]:{display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper,padding:0,borderRadius:e.shape.borderRadiusMedium,boxShadow:e.shadows[2],color:e.palette.text.primary,fontWeight:e.fontWeight.medium,maxWidth:"inherit",border:`1px solid ${e.palette.divider}`,maxHeight:n,fontSize:r},[`& .${Pa.arrow}`]:{"&:before":{border:`1px solid ${e.palette.divider}`},color:e.palette.background.paper}})),Fh=e=>l(Xde,{...e,children:e.children}),Cd=({title:e,children:t,variant:n="default",titleComponent:r,...o})=>!e&&!r?t:n==="custom"?l(Fh,{...o,title:e||r,arrow:!0,children:t}):l(xt,{...o,title:e||r,arrow:!0,children:t}),px="Access denied",E1=(e,t)=>e?t:t?`${t} (${px})`:px,Jde=()=>{throw new Error("hasAccess called outside AccessContext")},yo=Te.createContext({isAdmin:!1,hasAccess:Jde}),zh=(e,t,n,r,o={})=>{const i=An(e?n:null,r,o);return{...i,error:e?i.error:void 0,data:e?i.data:t}},Qde=e=>{const{isEnterprise:t}=Ot(),{data:n,error:r,mutate:o}=zh(!!e&&t(),[],Bt(`api/admin/projects/${e}/change-requests/config`),Zde);return{data:n||[],loading:!r&&!n,refetchChangeRequestConfig:o,error:r}},Zde=e=>fetch(e).then(Rn("Request changes")).then(t=>t.json()),_c=e=>{const{data:t}=Qde(e),n=k1(e),r=Te.useCallback(i=>n(_9,i)?!1:t.some(s=>s.environment===i&&s.changeRequestEnabled),[JSON.stringify(t)]),o=Te.useCallback(()=>t.some(i=>i.changeRequestEnabled),[JSON.stringify(t)]);return{isChangeRequestConfigured:r,isChangeRequestConfiguredInAnyEnv:o}},epe=(e,t)=>{let n=e.data&&"permissions"in e.data?e.data.permissions:void 0;return n&&(t!=null&&t.maintenanceMode)&&(n=n.filter(r=>r.permission==="ADMIN")),n},T1=()=>{const e=Nh(),{uiConfig:t}=Ot();return{permissions:epe(e,t),refetchPermissions:e.refetchAuth,loading:e.loading,error:e.error}},J9=e=>{const t=()=>{const r=Bt(`api/admin/projects/${e}`);return fetch(r,{method:"GET"}).then(Rn("Project overview")).then(o=>o.json())},n=`api/admin/projects/${e}`;return{fetcher:t,KEY:n}},tpe={features:[],environments:[],name:"",health:0,members:0,version:"1",description:"Default",favorite:!1,mode:"open",defaultStickiness:"default",stats:{archivedCurrentWindow:0,archivedPastWindow:0,avgTimeToProdCurrentWindow:0,createdCurrentWindow:0,createdPastWindow:0,projectActivityCurrentWindow:0,projectActivityPastWindow:0,projectMembersAddedCurrentWindow:0}},nh=(e,t={})=>{const{KEY:n,fetcher:r}=J9(e),{data:o,error:i,mutate:a}=An(n,r,t),s=m.useCallback(()=>{a()},[a]);return{project:o||tpe,loading:!i&&!o,error:i,refetch:s}},YMe=e=>nh(e).project.name||e,k1=e=>{const{hasAccess:t}=m.useContext(yo),n=(o,i,a)=>i&&a?t(o,i,a):i?t(o,i):t(o),r=(o,i,a)=>Array.isArray(o)?o.some(s=>n(s,i,a)):n(o,i,a);return(o,i)=>r(o,e,i)},XMe=e=>{const{isChangeRequestConfigured:t}=_c(e),n=k1(e);return(r,o)=>t(o)||n(r,o)},npe=[R9,v1,Mle,Dle,Ble],rpe=(e,t)=>e.filter(n=>t.includes(n)).length>0,ope=e=>{const{permissions:t}=T1();return t?t.find(r=>r.project===e):!1},ipe=e=>{const t=ope(e),{project:n}=nh(e);return n.mode==="protected"?t:!0},ape=e=>rpe(npe,[].concat(e)),spe=(e,t,n)=>{const{isChangeRequestConfigured:r}=_c(t),o=r(n),i=ipe(t);return o&&i&&ape(e)},Ju=(e,t,n)=>{const r=k1(t);return spe(e,t,n)||r(e,n)},A1=(e,t,n)=>k1(t)(e,n),lpe=Te.forwardRef((e,t)=>{const n=Ju(e.permission,e.projectId,e.environmentId);return l(Q9,{...e,access:n,ref:t})}),cpe=Te.forwardRef((e,t)=>{const n=A1(e.permission,e.projectId,e.environmentId);return l(Q9,{...e,access:n,ref:t})}),Q9=Te.forwardRef(({permission:e,access:t,variant:n="contained",color:r="primary",onClick:o,children:i,disabled:a,projectId:s,environmentId:c,tooltipProps:u,...d},p)=>{const f=gl();return l(Cd,{...u,title:E1(t,u==null?void 0:u.title),arrow:!0,children:l("span",{id:f,children:l(Ve,{ref:p,onClick:o,disabled:a||!t,"aria-labelledby":f,variant:n,color:r,...d,endIcon:l(ve,{children:l(q,{condition:!t,show:l(hle,{titleAccess:"Locked"}),elseShow:!!d.endIcon&&d.endIcon})}),children:i})})})}),hi=Te.forwardRef((e,t)=>typeof e.projectId<"u"&&typeof e.environmentId<"u"?l(lpe,{...e,environmentId:e.environmentId,projectId:e.projectId,ref:t}):l(cpe,{...e,ref:t})),upe=e=>{const t=A1(e.permission,e.projectId,e.environmentId);return l(Z9,{...e,access:t})},dpe=e=>{const t=Ju(e.permission,e.projectId,e.environmentId);return l(Z9,{...e,access:t})},Z9=({access:e,permission:t,projectId:n,children:r,environmentId:o,tooltipProps:i,disabled:a,...s})=>{const c=gl();return l(Cd,{...i,title:E1(e,i==null?void 0:i.title),arrow:!0,onClick:u=>u.preventDefault(),children:l("div",{id:c,children:l(Ht,{...s,disabled:!e||a,"aria-labelledby":c,size:"large",children:r})})})},Ir=e=>typeof e.projectId<"u"&&typeof e.environmentId<"u"?l(dpe,{...e,projectId:e.projectId,environmentId:e.environmentId}):l(upe,{...e}),ppe=({loading:e,filter:t})=>{const n=or("(max-width:800px)"),r=Kde(t),o=gt();return r?l(q,{condition:n,show:l(Ir,{permission:Jf,projectId:r.projectId,component:hn,to:r.path,size:"large",tooltipProps:{title:"Create feature toggle"},children:l(ca,{})}),elseShow:l(hi,{onClick:()=>{o(r.path)},permission:Jf,projectId:r.projectId,color:"primary",variant:"contained","data-testid":lie,className:Pi({skeleton:e}),children:"New feature toggle"})}):null},fpe=e=>({color:e.palette.error.dark,fontSize:"inherit"}),hpe=e=>({color:e.palette.success.dark,fontSize:"inherit"}),mpe=C(Le)(({theme:e})=>({padding:e.spacing(1.5,2)})),eL=({value:e})=>l(mpe,{children:l(q,{condition:!!e,show:l(se,{component:"span",sx:fpe,"data-loading":!0,children:"Stale"}),elseShow:l(se,{component:"span",sx:hpe,"data-loading":!0,children:"Active"})})}),jh=(e,t,n)=>{const r=m.useCallback(a=>tL(e)(a),[e]),o=m.useCallback(()=>({data:n,searchValue:t,columns:e}),[n,t,e]);return{data:m.useMemo(()=>{if(!t)return n;const a=gpe(e,t,n);return vpe(e,r(t),a)},[e,t,n,r]),getSearchText:r,getSearchContext:o}},gpe=(e,t,n)=>{let r=n;return rL(e).filter(o=>nL(t,o.filterName)).forEach(o=>{const i=oL(o.filterName,t);r=r.filter(a=>o.filterBy?o.filterBy(a,i):ype(Ov(o,a),i))}),r},vpe=(e,t,n)=>{const r=e.filter(o=>o.searchable&&o.accessor);return n.filter(o=>r.some(i=>i.searchBy?i.searchBy(o,t):bpe(Ov(i,o),t)))},ype=(e,t)=>t.some(n=>(e==null?void 0:e.toLowerCase())===(n==null?void 0:n.toLowerCase())),bpe=(e,t)=>e==null?void 0:e.toLowerCase().includes(t==null?void 0:t.toLowerCase()),tL=e=>{const t=e.filter(r=>r.filterName).map(r=>r.filterName),n=r=>t.some(o=>nL(r,o));return r=>r.split(" ").filter(o=>!n(o)).join(" ")},nL=(e,t)=>new RegExp(`${t}:\\w+`).test(e),rL=e=>e.filter(t=>t.filterName&&t.accessor),Ov=(e,t)=>{const n=typeof e.accessor=="function"?e.accessor(t):e.accessor.includes(".")?e.accessor.split(".").reduce((r,o)=>r==null?void 0:r[o],t):t[e.accessor];return e.filterParsing?e.filterParsing(n):n},oL=(e,t)=>{var n,r;return((r=(n=t==null?void 0:t.split(`${e}:`)[1])==null?void 0:n.split(" ")[0])==null?void 0:r.split(",").filter(o=>o))??[]},z5=C("span")(({theme:e})=>({fontSize:e.fontSizes.smallBody,color:e.palette.text.primary})),j5=C("span")(({theme:e})=>({backgroundColor:e.palette.background.elevation2,color:e.palette.text.primary,padding:e.spacing(0,.5),borderRadius:e.spacing(.5)})),wpe=({filters:e,getSearchContext:t,searchableColumnsString:n})=>{const r=t(),i=tL(r.columns)(r.searchValue),a=e.filter(s=>s.values.length>0);return x(ve,{children:[l(q,{condition:!!i,show:x(ve,{children:[l(z5,{children:"Searching for:"}),x("p",{children:[l(j5,{children:i})," ",n?` in ${n}`:""]})]})}),l(q,{condition:a.length>0,show:x(ve,{children:[l(z5,{children:"Filtering by:"}),a.map(s=>x("p",{children:[l(j5,{children:s.values.join(",")})," ","in ",s.header,". Options:"," ",s.options.join(", ")]},s.name))]})})]})},Spe=C("span")(({theme:e})=>({fontSize:e.fontSizes.smallBody,color:e.palette.text.primary})),U5=C("span")(({theme:e})=>({backgroundColor:e.palette.background.elevation2,color:e.palette.text.primary,padding:e.spacing(0,.5),borderRadius:e.spacing(.5)})),xpe=({filters:e,getSearchContext:t,searchableColumnsString:n})=>x(ve,{children:[l(Spe,{children:e.length>0?"Filter your search with operators like:":`Start typing to search${n?` in ${n}`:"..."}`}),e.map(r=>x("p",{children:["Filter by ",r.header,":"," ",x(U5,{children:[r.name,":",r.options[0]]}),l(q,{condition:r.options.length>1,show:x(ve,{children:[" or ",x(U5,{children:[r.name,":",r.options.slice(0,2).join(",")]})]})})]},r.name))]}),Cpe=e=>Math.floor(Math.random()*e.length),Epe=C(wr)(({theme:e})=>({position:"absolute",width:"100%",left:0,top:"20px",zIndex:2,padding:e.spacing(4,1.5,1.5),borderBottomLeftRadius:e.spacing(1),borderBottomRightRadius:e.spacing(1),boxShadow:"0px 8px 20px rgba(33, 33, 33, 0.15)",fontSize:e.fontSizes.smallBody,color:e.palette.text.secondary,wordBreak:"break-word"})),Tpe=C(Le)(({theme:e})=>({display:"flex",gap:e.spacing(2)})),kpe=C(ile)(({theme:e})=>({color:e.palette.text.secondary})),Ape=C(To)(({theme:e})=>({border:`1px dashed ${e.palette.divider}`,margin:e.spacing(1.5,0)})),Rpe=C("span")(({theme:e})=>({backgroundColor:e.palette.background.elevation2,color:e.palette.text.primary,padding:e.spacing(0,.5),borderRadius:e.spacing(.5)})),_pe=({getSearchContext:e})=>{const t=e(),n=m.useMemo(()=>Cpe(t.data),[t.data]),r=rL(t.columns).map(s=>{const c=t.data.map(u=>Ov(s,u));return{name:s.filterName,header:s.Header??s.filterName,options:[...new Set(c)].sort((u,d)=>u.localeCompare(d)),suggestedOption:c[n]??`example-${s.filterName}`,values:oL(s.filterName,t.searchValue)}}).sort((s,c)=>s.name.localeCompare(c.name)),o=t.columns.filter(s=>s.searchable&&s.accessor),i=o.map(s=>s.Header??s.accessor).join(", "),a=t.data.length&&o.length?Ov(o[0],t.data[n]):"example-search-text";return x(Epe,{className:"dropdown-outline",children:[x(Tpe,{children:[l(kpe,{}),l(Le,{children:l(q,{condition:!!t.searchValue,show:l(wpe,{filters:r,getSearchContext:e,searchableColumnsString:i}),elseShow:l(xpe,{filters:r,getSearchContext:e,searchableColumnsString:i})})})]}),l(Ape,{}),l(q,{condition:r.length>0,show:"Combine filters and search."}),x("p",{children:["Example:"," ",x(Rpe,{children:[r.map(s=>x("span",{children:[s.name,":",s.suggestedOption," "]},s.name)),l("span",{children:a})]})]})]})},Ppe=()=>{const[e,t]=m.useState();return m.useEffect(()=>{var r;const n=((r=navigator==null?void 0:navigator.userAgentData)==null?void 0:r.platform)||(navigator==null?void 0:navigator.platform)||"unknown";t(n.toLowerCase().includes("mac")||n==="iPhone"||n==="iPad")},[]),e},W5=({key:e,modifiers:t=[],preventDefault:n=!1},r)=>{const o=Ppe();m.useEffect(()=>{const s=c=>{if(e===c.key){if(t.includes("ctrl")){if(o){if(!c.metaKey)return}else if(!c.ctrlKey)return}t.includes("alt")&&!c.altKey||t.includes("shift")&&!c.shiftKey||(n&&c.preventDefault(),r())}};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[o,e,t,n,r]);const i=m.useMemo(()=>t.map(s=>({ctrl:o?"⌘":"Ctrl",alt:"Alt",shift:"Shift"})[s]),[o,t]);return m.useMemo(()=>[...i,`${e[0].toUpperCase()}${e.slice(1)}`].join("+"),[i,e])},Ipe=C("div")(({theme:e})=>({display:"flex",flexGrow:1,alignItems:"center",position:"relative",backgroundColor:e.palette.background.paper,maxWidth:"400px",[e.breakpoints.down("md")]:{marginTop:e.spacing(1),maxWidth:"100%"}})),Ope=C("div")(({theme:e})=>({display:"flex",alignItems:"center",backgroundColor:e.palette.background.elevation1,border:`1px solid ${e.palette.neutral.border}`,borderRadius:e.shape.borderRadiusExtraLarge,padding:"3px 5px 3px 12px",width:"100%",zIndex:3,"&:focus-within":{borderColor:e.palette.primary.main,boxShadow:e.boxShadows.main}})),$pe=C(c1)(({theme:e})=>({width:"100%",backgroundColor:e.palette.background.elevation1})),Npe=C(g1)(({theme:e})=>({color:e.palette.neutral.main,fontSize:e.typography.body1.fontSize})),vo=({initialValue:e="",onChange:t,className:n,placeholder:r,hasFilters:o,disabled:i,getSearchContext:a,containerStyles:s,debounceTime:c=200})=>{const u=m.useRef(),[d,p]=m.useState(!1),[f,h]=m.useState(e),g=Yt.useAsyncDebounce(t,c),v=w=>{g(w),h(w)},y=W5({modifiers:["ctrl"],key:"k",preventDefault:!0},()=>{var w,S;document.activeElement===u.current?(w=u.current)==null||w.blur():(S=u.current)==null||S.focus()});W5({key:"Escape"},()=>{var w;document.activeElement===u.current&&((w=u.current)==null||w.blur())});const b=`${r??"Search"} (${y})`;return x(Ipe,{style:s,children:[x(Ope,{className:n,children:[l(mE,{sx:{mr:1,color:w=>w.palette.action.disabled}}),l($pe,{inputRef:u,placeholder:b,inputProps:{"aria-label":b,"data-testid":Mie},value:f,onChange:w=>v(w.target.value),onFocus:()=>p(!0),onBlur:()=>p(!1),disabled:i}),l(Le,{sx:{width:w=>w.spacing(4)},children:l(q,{condition:!!f,show:l(xt,{title:"Clear search query",arrow:!0,children:l(Ht,{size:"small",onClick:()=>{var w;v(""),(w=u.current)==null||w.focus()},sx:{padding:w=>w.spacing(1)},children:l(Npe,{})})})})})]}),l(q,{condition:!!o&&d,show:l(_pe,{getSearchContext:a})})]})},Lpe=C(Vr,{shouldForwardProp:e=>e!=="highlighted"})(({theme:e,highlighted:t})=>({backgroundColor:t?e.palette.highlight:"transparent",color:e.palette.text.primary,textDecorationColor:e.palette.text.disabled,textDecorationStyle:"dashed",textUnderlineOffset:e.spacing(.5)})),Uh=({tooltip:e,highlighted:t,tooltipProps:n,children:r,...o})=>l(Fh,{title:e,...n,arrow:!0,children:l(Lpe,{tabIndex:0,highlighted:t,...o,children:r})}),Mpe=C(se)(({theme:e})=>({fontSize:e.fontSizes.smallerBody})),Dpe=({row:e,value:t})=>{var r,o,i;const{searchQuery:n}=Al();return!e.original.tags||e.original.tags.length===0?l(rr,{}):l(rr,{children:l(Uh,{highlighted:n.length>0&&t.toLowerCase().includes(n.toLowerCase()),tooltip:l(ve,{children:(r=e.original.tags)==null?void 0:r.map(a=>l(Mpe,{children:l(Ua,{search:n,children:`${a.type}:${a.value}`})},a.type+a.value))}),children:((o=e.original.tags)==null?void 0:o.length)===1?"1 tag":`${(i=e.original.tags)==null?void 0:i.length} tags`})})},si={date:(e,t,n,r)=>{var a,s;const o=new Date(((a=e==null?void 0:e.values)==null?void 0:a[n])||0),i=new Date(((s=t==null?void 0:t.values)==null?void 0:s[n])||0);return(i==null?void 0:i.getTime())-(o==null?void 0:o.getTime())},boolean:(e,t,n,r)=>{var a,s;const o=(a=e==null?void 0:e.values)==null?void 0:a[n],i=(s=t==null?void 0:t.values)==null?void 0:s[n];return o===i?0:o?1:-1},alphanumeric:(e,t,n,r)=>{var a,s;const o=`${((a=e==null?void 0:e.values)==null?void 0:a[n])||""}`.toLowerCase(),i=`${((s=t==null?void 0:t.values)==null?void 0:s[n])||""}`.toLowerCase();return o==null?void 0:o.localeCompare(i)},playgroundResultState:(e,t,n,r)=>{var a,s;const o=(a=e==null?void 0:e.values)==null?void 0:a[n],i=(s=t==null?void 0:t.values)==null?void 0:s[n];return o===i?0:o==="true"?1:i==="true"||o==="false"?-1:i==="false"?1:0}},Bpe=Object.assign({},...Object.entries(si).map(([e,t])=>({[e]:(n,r,o,i)=>{var a,s,c,u;return(a=n==null?void 0:n.original)!=null&&a.favorite&&!((s=r==null?void 0:r.original)!=null&&s.favorite)?i?1:-1:!((c=n==null?void 0:n.original)!=null&&c.favorite)&&((u=r==null?void 0:r.original)!=null&&u.favorite)?i?-1:1:t(n,r,o,i)}}))),Fpe=(e=!1)=>{const[t,n]=m.useState(e),{trackEvent:r}=Dr(),o=a=>{r("favorite",{props:{eventType:`features ${a?"":"un"}pinned `}}),n(a)},i=m.useMemo(()=>t?Bpe:si,[t]);return{isFavoritesPinned:t,onChangeIsFavoritePinned:o,sortTypes:i}},$t=()=>{const{setToast:e}=m.useContext(kl),t=()=>e(o=>({...o,show:!1})),n=m.useCallback((o,i)=>{e({title:"Something went wrong",text:o,type:"error",show:!0,autoHideDuration:12e3,...i})},[e]);return{setToastData:m.useCallback(o=>{o.persist?e({...o,show:!0}):e({autoHideDuration:6e3,...o,show:!0})},[e]),setToastApiError:n,hideToast:t}},ht=e=>e instanceof Error?e.message||e.toString():typeof e=="string"?e:"Unknown error",Yn=({handleBadRequest:e,handleNotFound:t,handleForbidden:n,handleUnauthorized:r,propagateErrors:o=!1})=>{const[i,a]=m.useState({}),[s,c]=m.useState(!1),u=m.useCallback(async(f,h)=>{var g;if(f.status===yE){if(e)return e(a,f,h);if(a(v=>({...v,badRequest:"Bad request format"})),o){const v=await f.json();throw new bE(f.status,v)}}if(f.status===w9){if(t)return t(a,f,h);if(a(v=>({...v,notFound:"Could not find the requested resource"})),o)throw new wE(f.status)}if(f.status===x9){if(r)return r(a,f,h);if(a(v=>({...v,unauthorized:px})),o)throw new C9(f.status)}if(f.status===S9){if(n)return n(a,f,h);if(a(v=>({...v,forbidden:"This operation is forbidden"})),o){const v=await f.json();throw new Ale(f.status,v)}}if(f.status>399){const v=await f.json();if(((g=v==null?void 0:v.details)==null?void 0:g.length)>0&&o){const y=v.details[0];if(o)throw new Error(y.message||y.msg);return y}if((v==null?void 0:v.length)>0&&o){const y=v[0];throw new Error(y.message||y.msg)}if(o)throw new Error("Action could not be performed")}},[e,n,t,r,o]),d=m.useCallback(async(f,h,g=!0)=>{g&&c(!0);try{const v=await f();return c(!1),v.status>299&&await u(v,h),v.status===Mh&&a({}),v}catch(v){throw c(!1),v}},[u]),p=m.useCallback((f,h,g="")=>{const v={headers:ix,credentials:"include"};return{caller:()=>fetch(Bt(f),{...v,...h}),id:g}},[]);return{loading:s,makeRequest:d,createRequest:p,errors:i}},zpe=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Yn({propagateErrors:!0}),{setToastData:o,setToastApiError:i}=$t(),{trackEvent:a}=Dr(),s=m.useCallback(async(u,d)=>{const p=`api/admin/projects/${u}/features/${d}/favorites`,f=t(p,{method:"POST"},"addFavoriteFeature");try{await e(f.caller,f.id),o({title:"Toggle added to favorites",type:"success"}),a("favorite",{props:{eventType:"feature favorited"}})}catch(h){i(ht(h))}},[t,e]),c=m.useCallback(async(u,d)=>{const p=`api/admin/projects/${u}/features/${d}/favorites`,f=t(p,{method:"DELETE"},"removeFavoriteFeature");try{await e(f.caller,f.id),o({title:"Toggle removed from favorites",type:"success"}),a("favorite",{props:{eventType:"feature unfavorited"}})}catch(h){i(ht(h))}},[t,e]);return{favorite:s,unfavorite:c,errors:n,loading:r}},jpe=C(Le)(({theme:e})=>({paddingLeft:e.spacing(1.25)})),iL=C(Ht)(({theme:e})=>({color:e.palette.primary.main,padding:e.spacing(1.25)})),Upe=C(iL)({opacity:0}),Wpe=({value:e,onClick:t})=>l(jpe,{children:l(q,{condition:!!e,show:l(iL,{onClick:t,size:"small",children:l(gE,{fontSize:"small"})}),elseShow:l(Upe,{className:"show-row-hover",onClick:t,size:"small",children:l(vE,{fontSize:"small"})})})}),Hpe=({isActive:e=!1,onClick:t})=>{const[n,r]=m.useState(e);return l(Cd,{title:n?"Unpin favorite features from the top":"Pin favorite features to the top",children:l(Ht,{sx:{mx:-.75,display:"flex",alignItems:"center",justifyContent:"center",padding:1.25},onClick:()=>{r(!n),t(!n)},size:"small",children:l(q,{condition:n,show:l(gE,{fontSize:"small"}),elseShow:l(vE,{fontSize:"small"})})})})},Vpe=()=>{const{value:e,setValue:t}=Rc("global:v1",{});return{value:e,setValue:t}},Ed=(e,t,n)=>{m.useEffect(()=>{const r=e.filter(({condition:i})=>i).flatMap(({columns:i})=>i),o=e.flatMap(({columns:i})=>i).filter(i=>!r.includes(i));t(i=>[...new Set([...i,...r].filter(a=>!o.includes(a)))])},[...e.map(({condition:r})=>r),t,n])};var ME={},Gpe=En;Object.defineProperty(ME,"__esModule",{value:!0});var aL=ME.default=void 0,qpe=Gpe(Tn()),Kpe=kn,Ype=(0,qpe.default)((0,Kpe.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"}),"FileDownload");aL=ME.default=Ype;const Td=()=>{const{data:e,error:t,mutate:n}=An(Bt("api/admin/environments"),Xpe),r=m.useMemo(()=>e||[],[e]),o=m.useCallback(async()=>{await n()},[n]),i=m.useCallback(async a=>{await n(a,!1)},[n]);return{environments:r,refetchEnvironments:o,mutateEnvironments:i,loading:!t&&!e,error:t}},Xpe=async e=>(await fetch(e).then(Rn("Environments")).then(n=>n.json())).environments.sort((n,r)=>n.sortOrder-r.sortOrder),kd=({name:e,value:t="",label:n="",options:r,onChange:o,id:i,disabled:a=!1,className:s,classes:c,fullWidth:u,...d})=>x(ks,{variant:"outlined",size:"small",classes:c,fullWidth:u,children:[l(Ih,{htmlFor:i,children:n}),l(Oh,{name:e,disabled:a,onChange:f=>{f.preventDefault(),o(String(f.target.value))},className:s,label:n,id:i,value:t,IconComponent:ox,...d,children:r.map(f=>l(ja,{sx:f.sx,value:f.key,title:f.title||"","data-testid":`${IN}-${f.label}`,disabled:f.disabled,children:f.label},f.key))})]}),Jpe=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Yn({propagateErrors:!0}),{trackEvent:o}=Dr();return{loading:r,errors:n,createExport:async a=>{const c=t("api/admin/features-batch/export",{method:"POST",body:JSON.stringify(a)});try{const u=await e(c.caller,c.id);return o("export_import",{props:{eventType:"features exported"}}),u}catch(u){throw u}}}},Qpe=C(kd)(({theme:e})=>({minWidth:"250px",marginTop:e.spacing(2)})),Zpe=({showExportDialog:e,data:t,onClose:n,onConfirm:r,environments:o})=>{const[i,a]=m.useState(o[0]),{createExport:s}=Jpe(),c=m.createRef(),{setToastApiError:u}=$t(),d=()=>o.map(h=>({key:h,label:h})),p=h=>{var w,S;const g=document.createElement("a");(w=c.current)==null||w.appendChild(g),g.style.display="display: none";const v=new Blob([JSON.stringify(h)],{type:"application/json"}),y=window.URL.createObjectURL(v);g.href=y;const b=new Date;g.download=`${b.toISOString()}-export.json`,g.click(),window.URL.revokeObjectURL(y),(S=c.current)==null||S.removeChild(g)};return l(gr,{open:e,title:"Export feature toggle configuration",onClose:n,onClick:async()=>{try{const h={features:t.map(y=>y.name),environment:i},v=await(await s(h)).json();p(v),n(),r==null||r()}catch(h){u(ht(h))}},primaryButtonText:"Export selection",secondaryButtonText:"Cancel",children:x(Le,{ref:c,children:["The current search filter will be used to export feature toggles. Currently ",t.length," feature toggles will be exported.",l("br",{}),l("br",{}),l(se,{children:"Select which environment to export feature toggle configuration from:"}),l(Qpe,{options:d(),value:i,onChange:h=>a(h)})]})})},sL=Array(15).fill({name:"Name of the feature",description:"Short description of the feature",type:"-",createdAt:new Date(2022,1,1),project:"projectID"}),efe={id:"createdAt"},{value:H5,setValue:tfe}=Rc("FeatureToggleListTable:v1",efe),nfe=()=>{var V,j;const e=gn(),{environments:t}=Td(),n=t.filter(z=>z.enabled).map(z=>z.name),r=or(e.breakpoints.down("md")),o=or(e.breakpoints.down("lg")),[i,a]=m.useState(!1),{features:s=[],loading:c,refetchFeatures:u}=TE(),[d,p]=md(),{uiConfig:f}=Ot(),[h]=m.useState(()=>({sortBy:[{id:d.get("sort")||H5.id,desc:d.has("order")?d.get("order")==="desc":H5.desc}],hiddenColumns:["description"],globalFilter:d.get("search")||""})),{value:g,setValue:v}=Vpe(),{isFavoritesPinned:y,sortTypes:b,onChangeIsFavoritePinned:w}=Fpe(d.has("favorites")?d.get("favorites")==="true":g.favorites),[S,k]=m.useState(h.globalFilter),{favorite:A,unfavorite:T}=zpe(),R=m.useCallback(async z=>{z!=null&&z.favorite?await T(z.project,z.name):await A(z.project,z.name),u()},[A,u,T]),P=m.useMemo(()=>[{Header:l(Hpe,{isActive:y,onClick:w}),accessor:"favorite",Cell:({row:{original:z}})=>l(Wpe,{value:z==null?void 0:z.favorite,onClick:()=>R(z)}),maxWidth:50,disableSortBy:!0},{Header:"Seen",accessor:"lastSeenAt",Cell:H9,sortType:"date",align:"center",maxWidth:85},{Header:"Type",accessor:"type",Cell:K9,align:"center",maxWidth:85},{Header:"Name",accessor:"name",minWidth:150,Cell:$de,sortType:"alphanumeric",searchable:!0},{id:"tags",Header:"Tags",accessor:z=>{var O;return((O=z.tags)==null?void 0:O.map(({type:B,value:Z})=>`${B}:${Z}`).join(`
267
- `))||""},Cell:Dpe,width:80,searchable:!0},{Header:"Created",accessor:"createdAt",Cell:th,sortType:"date",maxWidth:150},{Header:"Project ID",accessor:"project",Cell:({value:z})=>l(Rs,{title:z,to:`/projects/${z}`}),sortType:"alphanumeric",maxWidth:150,filterName:"project",searchable:!0},{Header:"State",accessor:"stale",Cell:eL,sortType:"boolean",maxWidth:120,filterName:"state",filterParsing:z=>z?"stale":"active"},{accessor:"description",Header:"Description",searchable:!0}],[y]),{data:_,getSearchText:I,getSearchContext:$}=jh(P,S,s),U=m.useMemo(()=>(_==null?void 0:_.length)===0&&c?sL:_,[_,c]),{headerGroups:M,rows:D,prepareRow:K,state:{sortBy:H},setHiddenColumns:Q}=Yt.useTable({columns:P,data:U,initialState:h,sortTypes:b,autoResetHiddenColumns:!1,autoResetSortBy:!1,disableSortRemove:!0,disableMultiSort:!0},Yt.useSortBy,Yt.useFlexLayout);return Ed([{condition:!s.some(({tags:z})=>z==null?void 0:z.length),columns:["tags"]},{condition:r,columns:["type","createdAt","tags"]},{condition:o,columns:["lastSeenAt","stale"]}],Q,P),m.useEffect(()=>{const z={};z.sort=H[0].id,H[0].desc&&(z.order="desc"),S&&(z.search=S),y&&(z.favorites="true"),p(z,{replace:!0}),tfe({id:H[0].id,desc:H[0].desc||!1}),v(O=>({...O,favorites:!!y}))},[H,S,p,y]),t.length>0?x(Or,{isLoading:c,header:l(Dn,{title:`Feature toggles (${D.length<U.length?`${D.length} of ${U.length}`:U.length})`,actions:x(ve,{children:[l(q,{condition:!r,show:x(ve,{children:[l(vo,{initialValue:S,onChange:k,hasFilters:!0,getSearchContext:$}),l(Dn.Divider,{})]})}),l(Vr,{component:hn,to:"/archive",underline:"always",sx:{marginRight:2,...ji(e)},children:"View archive"}),l(q,{condition:!!((V=f==null?void 0:f.flags)!=null&&V.featuresExportImport),show:l(xt,{title:"Export current selection",arrow:!0,children:l(Ht,{onClick:()=>a(!0),sx:z=>({marginRight:z.spacing(2)}),children:l(aL,{})})})}),l(ppe,{loading:!1,filter:{query:"",project:"default"}})]}),children:l(q,{condition:r,show:l(vo,{initialValue:S,onChange:k,hasFilters:!0,getSearchContext:$})})}),children:[l(Xa,{value:I(S),children:l(b1,{rows:D,headerGroups:M,prepareRow:K})}),l(q,{condition:D.length===0,show:l(q,{condition:(S==null?void 0:S.length)>0,show:x(Kn,{children:["No feature toggles found matching “",S,"”"]}),elseShow:l(Kn,{children:"No feature toggles available. Get started by adding a new feature toggle."})})}),l(q,{condition:!!((j=f==null?void 0:f.flags)!=null&&j.featuresExportImport),show:l(Zpe,{showExportDialog:i,data:U,onClose:()=>a(!1),environments:n})})]}):null},Ad=()=>{const{data:e,error:t}=An(fx,rfe),n=m.useCallback(()=>{io(fx).catch(console.warn)},[]);return{strategies:(e==null?void 0:e.strategies)||ife,refetchStrategies:n,loading:!t&&!e,error:t}},rfe=()=>fetch(fx).then(Rn("Strategy types")).then(e=>e.json()),ofe={deprecated:!1,name:"flexibleRollout",displayName:"Gradual rollout",editable:!1,description:"Roll out to a percentage of your userbase, and ensure that the experience is the same for the user on each visit.",parameters:[{name:"rollout",type:"percentage",description:"",required:!1},{name:"stickiness",type:"string",description:"Used to defined stickiness",required:!0},{name:"groupId",type:"string",description:"",required:!0}]},ife=[ofe],fx=Bt("api/admin/strategies"),afe=Bt("api/admin/metrics/applications"),lL=(e={})=>{const t=async()=>fetch(afe,{method:"GET"}).then(Rn("Applications data")).then(c=>c.json()),n="api/admin/metrics/applications",{data:r,error:o}=An(n,t,{...e}),[i,a]=m.useState(!o&&!r),s=()=>{io(n)};return m.useEffect(()=>{a(!o&&!r)},[r,o]),{applications:(r==null?void 0:r.applications)||[],error:o,loading:i,refetchApplications:s,APPLICATIONS_CACHE_KEY:n}},sfe="_truncate_19sq2_2",lfe="_fullwidth_19sq2_8",cfe="_sectionPadding_19sq2_12",ufe="_horisontalScroll_19sq2_16",dfe="_listLink_19sq2_25",pfe="_hideLt920_19sq2_36",ffe="_hideLt600_19sq2_41",hfe="_dataTableHeader_19sq2_45",mfe="_titleText_19sq2_50",gfe="_actions_19sq2_55",vfe="_switchWithLabel_19sq2_59",yfe="_label_19sq2_62",bfe="_emptyState_19sq2_71",wfe="_toggleName_19sq2_79",Sfe="_toolbar_19sq2_84",xfe="_toolbarButton_19sq2_90",Cfe="_error_19sq2_97",Efe="_headerTitle_19sq2_101",Tfe="_listItem_19sq2_106",kfe="_section_19sq2_12",Afe="_contentPadding_19sq2_114",Rfe="_contentSpacing_19sq2_118",_fe="_searchField_19sq2_122",Iu={truncate:sfe,fullwidth:lfe,sectionPadding:cfe,horisontalScroll:ufe,listLink:dfe,hideLt920:pfe,hideLt600:ffe,dataTableHeader:hfe,titleText:mfe,actions:gfe,switchWithLabel:vfe,label:yfe,switch:"_switch_19sq2_59",emptyState:bfe,toggleName:wfe,toolbar:Sfe,toolbarButton:xfe,error:Cfe,headerTitle:Efe,listItem:Tfe,section:kfe,contentPadding:Afe,contentSpacing:Rfe,searchField:_fe},DE=({apps:e})=>l(ia,{children:l(q,{condition:e.length>0,show:e.map(({appName:t,description:n,icon:r})=>x(_a,{className:Iu.listItem,children:[l(Gs,{children:l(Sd,{children:l(q,{condition:r,show:l(j2,{children:r}),elseShow:l(Yse,{})},`avatar_conditional_${t}`)})}),l(rn,{primary:l(hn,{to:`/applications/${encodeURIComponent(t)}`,className:[Iu.listLink,Iu.truncate].join(" "),children:t}),secondary:n||"No description"})]},t))})});DE.propTypes={apps:pe.array.isRequired};pe.string,pe.any;pe.string,pe.func.isRequired,pe.string;pe.string,pe.object;const Pfe=Te.forwardRef(({icon:e,label:t,disabled:n,...r},o)=>x(ja,{disabled:n,style:{display:"flex",alignItems:"center"},...r,children:[l(e,{}),t]}));Pfe.propTypes={icon:pe.object,label:pe.string,disabled:pe.bool};const Ife="_deprecated_nqviu_10",Ofe="_formButtons_nqviu_14",$fe="_header_nqviu_18",Nfe="_formContainer_nqviu_32",Lfe="_inset_nqviu_38",Mfe="_parameter_menu_nqviu_42",Dfe="_listcontainer_nqviu_52",Bfe="_listItem_nqviu_56",Ffe={"non-style-button":"_non-style-button_nqviu_1",deprecated:Ife,formButtons:Ofe,header:$fe,formContainer:Nfe,inset:Lfe,parameter_menu:Mfe,listcontainer:Dfe,listItem:Bfe},zfe=({toggles:e})=>l(ia,{style:{textAlign:"left"},className:Iu.truncate,children:l(q,{condition:e.length>0,show:e.map(({name:t,description:n="-",enabled:r})=>x(_a,{children:[l(Gs,{children:l(q,{condition:!!r,show:l(xt,{title:"Enabled",arrow:!0,children:l(vle,{"aria-hidden":!1})}),elseShow:l(xt,{title:"Disabled",arrow:!0,children:l(gle,{"aria-hidden":!1})})})}),l(rn,{primary:l(hn,{to:`/features/view/${t}`,children:t},t),secondary:n})]},t))})}),jfe=({strategy:e,applications:t,toggles:n})=>{const r=gn(),{parameters:o=[]}=e,i=a=>a.length>0?a.map(({name:s,type:c,description:u,required:d},p)=>x(_a,{children:[l(q,{condition:d,show:l(Gs,{children:l(xt,{title:"Required parameter",arrow:!0,children:l(ca,{"aria-hidden":!1})})}),elseShow:l(Gs,{children:l(xt,{title:"Optional parameter",arrow:!0,children:l(yle,{"aria-hidden":!1})})})}),l(rn,{primary:x("div",{children:[s," ",x("small",{children:["(",c,")"]})]}),secondary:u})]},`${s}-${p}`)):l(_a,{children:"No params"});return l("div",{className:Ffe.listcontainer,children:x(Wn,{container:!0,children:[l(q,{condition:e.deprecated,show:l(Wn,{item:!0,children:l("h5",{style:{color:r.palette.error.main},children:"Deprecated"})})}),x(Wn,{item:!0,sm:12,md:12,children:[l("h6",{children:"Parameters"}),l("hr",{}),l(ia,{children:i(o)})]}),x(Wn,{item:!0,sm:12,md:n.length>0?6:12,children:[l("h6",{children:"Applications using this strategy"}),l("hr",{}),l(DE,{apps:t})]}),l(q,{condition:n.length>0,show:()=>x(Wn,{item:!0,sm:12,md:6,children:[l("h6",{children:"Toggles using this strategy"}),l("hr",{}),l(zfe,{toggles:n})]})})]})})},Wa=e=>hz()[e],ir=e=>{const t=Wa(e);if(!t)throw new Error(`Missing required path param: ${e}`);return t},Ufe=()=>{const e=ir("name"),{strategies:t}=Ad(),{features:n=[]}=TE(),{applications:r}=lL(),o=gt(),i=n.filter(c=>{var u;return(u=c==null?void 0:c.environments)==null?void 0:u.flatMap(d=>d.strategies).some(d=>d&&d.name===e)}),a=t.find(c=>c.name===e),s=()=>{o(`/strategies/${e}/edit`)};return a?l(Or,{header:l(Dn,{title:a==null?void 0:a.name,subtitle:a==null?void 0:a.description,actions:l(q,{condition:a.editable,show:l(Ir,{permission:Qf,"data-loading":!0,onClick:s,tooltipProps:{title:"Edit strategy"},children:l(Ui,{})})})}),children:l(Wn,{container:!0,children:l(Wn,{item:!0,xs:12,sm:12,children:l(jfe,{strategy:a,toggles:i,applications:r})})})}):null},Wfe=C(Le)(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",padding:e.spacing(0,1.5)})),Hfe=C(To)(({theme:e})=>({borderColor:e.palette.divider,height:e.spacing(3),margin:e.spacing(0,2)})),Vfe=()=>l(Hfe,{orientation:"vertical",variant:"middle"}),cL=({children:e})=>l(Wfe,{children:e});cL.Divider=Vfe;const Ha=cL;var BE={},Gfe=En;Object.defineProperty(BE,"__esModule",{value:!0});var uL=BE.default=void 0,qfe=Gfe(Tn()),Kfe=kn,Yfe=(0,qfe.default)((0,Kfe.jsx)("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"}),"LocationOn");uL=BE.default=Yfe;var FE={},Xfe=En;Object.defineProperty(FE,"__esModule",{value:!0});var dL=FE.default=void 0,Jfe=Xfe(Tn()),Qfe=kn,Zfe=(0,Jfe.default)((0,Qfe.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"}),"People");dL=FE.default=Zfe;var zE={},ehe=En;Object.defineProperty(zE,"__esModule",{value:!0});var pL=zE.default=void 0,the=ehe(Tn()),nhe=kn,rhe=(0,the.default)((0,nhe.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"}),"Language");pL=zE.default=rhe;var jE={},ohe=En;Object.defineProperty(jE,"__esModule",{value:!0});var fL=jE.default=void 0,ihe=ohe(Tn()),ahe=kn,she=(0,ihe.default)((0,ahe.jsx)("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}),"Code");fL=jE.default=she;const lhe=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.584 10H22a2 2 0 1 1 0 4h-5.416a5.001 5.001 0 0 1-9.168 0H2a2 2 0 1 1 0-4h5.416a5.001 5.001 0 0 1 9.168 0Z"})),yl=e=>phe[e]??e,che=e=>l(WS,{...e,component:t=>l(lhe,{...t}),inheritViewBox:!0}),uhe=e=>{switch(e){case"default":return OE;case"remoteAddress":return pL;case"flexibleRollout":return che;case"userWithId":return dL;case"applicationHostname":return uL;default:return fL}},dhe=({strategyName:e})=>{const t=gn(),n=uhe(e);return l(n,{style:{color:t.palette.neutral.main}})},phe={applicationHostname:"Hosts",default:"Standard",flexibleRollout:"Gradual rollout",gradualRolloutRandom:"Randomized",gradualRolloutSessionId:"Sessions",gradualRolloutUserId:"Users",remoteAddress:"IPs",userWithId:"UserIDs"},wp="api/admin/strategies",UE=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Yn({propagateErrors:!0}),o=m.useCallback(async u=>{const d=t(wp,{method:"POST",body:JSON.stringify(u)});return e(d.caller,d.id)},[t,e]),i=m.useCallback(async u=>{const d=`${wp}/${u.name}`,p=t(d,{method:"PUT",body:JSON.stringify(u)});try{return await e(p.caller,p.id)}catch(f){throw f}},[t,e]),a=m.useCallback(async u=>{const d=`${wp}/${u.name}`,p=t(d,{method:"DELETE"});try{return await e(p.caller,p.id)}catch(f){throw f}},[t,e]),s=m.useCallback(async u=>{const d=`${wp}/${u.name}/deprecate`,p=t(d,{method:"POST"});try{return await e(p.caller,p.id)}catch(f){throw f}},[t,e]),c=m.useCallback(async u=>{const d=`${wp}/${u.name}/reactivate`,p=t(d,{method:"POST"});try{return await e(p.caller,p.id)}catch(f){throw f}},[t,e]);return{createStrategy:o,updateStrategy:i,removeStrategy:a,deprecateStrategy:s,reactivateStrategy:c,errors:n,loading:r}},fhe=()=>{const e=or("(max-width:700px)"),t=gt();return l(q,{condition:e,show:l(Ir,{"data-testid":a5,onClick:()=>t("/strategies/create"),permission:kv,size:"large",tooltipProps:{title:"New custom strategy"},children:l(ca,{})}),elseShow:l(hi,{onClick:()=>t("/strategies/create"),color:"primary",permission:kv,"data-testid":a5,children:"New custom strategy"})})},hhe=Te.forwardRef((e,t)=>{const n=Ju(e.permission,e.projectId,e.environmentId);return l(hL,{...e,access:n,ref:t})}),mhe=Te.forwardRef((e,t)=>{const n=A1(e.permission,e.projectId,e.environmentId);return l(hL,{...e,access:n,ref:t})}),hL=Te.forwardRef((e,t)=>{const{access:n,permission:r,tooltip:o,disabled:i,projectId:a,environmentId:s,checked:c,onChange:u,...d}=e;return l(Cd,{title:E1(n,o),arrow:!0,children:l("span",{"data-loading":!0,children:l(Ya,{"data-testid":"toggle-switch",onChange:u,disabled:i||!n,checked:c,ref:t,...d})})})}),mL=Te.forwardRef((e,t)=>typeof e.projectId<"u"&&typeof e.environmentId<"u"?l(hhe,{...e,projectId:e.projectId,environmentId:e.environmentId,ref:t}):l(mhe,{...e,ref:t})),ghe=({deprecated:e,disabled:t,onToggle:n})=>{const r=()=>{n(e)},o=gl(),i=A1(Qf),a=m.useMemo(()=>i?t?"You cannot disable default strategy":e?"Excluded from strategy list":"Included in strategy list":"",[e,t,i]);return l(xt,{title:a,describeChild:!0,arrow:!0,children:l("div",{id:o,children:l(mL,{checked:!e,permission:Qf,onClick:r,disabled:t,inputProps:{"aria-labelledby":o}})})})},vhe=({strategy:e,onClick:t})=>{const n=gl();return l(q,{condition:e==null?void 0:e.editable,show:l(Ir,{onClick:t,permission:Qf,tooltipProps:{title:"Edit strategy"},children:l(Ui,{})}),elseShow:l(xt,{title:"You cannot edit a built-in strategy",arrow:!0,children:l("div",{id:n,children:l(Ht,{disabled:!0,size:"large",children:l(Ui,{"aria-labelledby":n})})})})})},yhe=({strategy:e,onClick:t})=>{const n=gl();return l(q,{condition:e==null?void 0:e.editable,show:l(Ir,{onClick:t,permission:Ple,tooltipProps:{title:"Delete strategy"},children:l(go,{})}),elseShow:l(xt,{title:"You cannot delete a built-in strategy",arrow:!0,children:l("div",{id:n,children:l(Ht,{disabled:!0,size:"large",children:l(go,{"aria-labelledby":n})})})})})},bhe=C("div")(({theme:e,color:t="neutral",icon:n})=>({display:"inline-flex",alignItems:"center",padding:e.spacing(n?.375:.625,1),borderRadius:e.shape.borderRadius,fontSize:e.fontSizes.smallerBody,fontWeight:e.fontWeight.bold,lineHeight:1,...t==="disabled"?{color:e.palette.text.secondary,background:e.palette.background.paper,border:`1px solid ${e.palette.divider}`}:{backgroundColor:e.palette[t].light,color:e.palette[t].contrastText,border:`1px solid ${e.palette[t].border}`}})),whe=C("div")(({theme:e,color:t="neutral",iconRight:n=!1})=>({display:"flex",color:t==="disabled"?e.palette.action.disabled:e.palette[t].main,margin:n?e.spacing(0,0,0,.5):e.spacing(0,.5,0,0)})),V5=(e,t,n=!1)=>l(whe,{color:e,iconRight:n,children:l(q,{condition:!!(t!=null&&t.props.sx),show:t,elseShow:()=>m.cloneElement(t,{sx:{fontSize:"16px"}})})}),Zt=m.forwardRef(({as:e="div",color:t="neutral",icon:n,iconRight:r,className:o,sx:i,children:a,...s},c)=>x(bhe,{as:e,tabIndex:0,color:t,icon:n,className:o,sx:i,...s,ref:c,children:[l(q,{condition:!!n&&!r,show:V5(t,n)}),a,l(q,{condition:!!n&&!!r,show:V5(t,n,!0)})]})),G5=C("span")(({theme:e})=>({display:"inline-grid",alignItems:"center",outline:0,cursor:"pointer","&:is(:focus-visible, :active) > *, &:hover > *":{outlineStyle:"solid",outlineWidth:2,outlineOffset:0,outlineColor:e.palette.primary.main,borderRadius:"100%",color:e.palette.primary.main},"& svg":{fontSize:e.fontSizes.mainHeader,color:e.palette.action.active,marginLeft:e.spacing(.5)}})),Qu=({tooltip:e,htmlTooltip:t,placement:n,children:r})=>t?l(Fh,{title:e,placement:n,arrow:!0,children:l(G5,{tabIndex:0,"aria-label":"Help",children:r??l(Tv,{})})}):l(xt,{title:e,placement:n,arrow:!0,children:l(G5,{tabIndex:0,"aria-label":"Help",children:r??l(Tv,{})})}),Wb=({children:e})=>l(se,{variant:"body2",sx:t=>({marginBottom:t.spacing(2)}),children:e}),gL=({alert:e})=>{const t=x(ve,{children:[l(Wb,{children:"We recommend you to use the predefined strategies like Gradual rollout with constraints instead of creating a custom strategy."}),x(Wb,{children:["If you decide to create a custom strategy be aware of:",x("ul",{children:[l("li",{children:"They require writing custom code and deployments for each SDK you’re using."}),l("li",{children:"Differing implementation in each SDK will cause toggles to evaluate differently"}),l("li",{children:"Requires a lot of configuration in both Unleash admin UI and the SDK."})]})]}),l(Wb,{children:"Constraints don’t have these problems. They’re configured once in the admin UI and behave in the same way in each SDK without further configuration."})]});return e?l(tn,{severity:"info",sx:n=>({marginBottom:n.spacing(3)}),children:t}):l(Le,{sx:n=>({maxWidth:"720px",padding:n.spacing(4,2),margin:"0 auto"}),children:t})},She=C(Zt)(({theme:e})=>({marginLeft:e.spacing(1),display:"inline-block"})),vL=({title:e,description:t,link:n})=>x(se,{component:"h2",variant:"subtitle1",sx:{display:"flex"},children:[e,l(Qu,{htmlTooltip:!0,tooltip:x(ve,{children:[l(se,{variant:"body2",component:"p",sx:r=>({marginBottom:r.spacing(1)}),children:t}),l(Vr,{href:n,target:"_blank",variant:"body2",children:"Read more in the documentation"})]})})]}),xhe=()=>l(Le,{sx:e=>({marginBottom:e.spacing(1.5)}),children:l(vL,{title:"Predefined strategies",description:"The next level of control comes when you are able to enable a feature for specific users or enable it for a small subset of users. We achieve this level of control with the help of activation strategies.",link:"https://docs.getunleash.io/reference/activation-strategies"})}),Che=()=>x(Le,{sx:e=>({display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:e.spacing(1.5)}),children:[l(vL,{title:"Custom strategies",description:"Custom activation strategies let you define your own activation strategies to use with Unleash.",link:"https://docs.getunleash.io/reference/custom-activation-strategies"}),l(fhe,{})]}),Ehe=()=>{const e=gt(),[t,n]=m.useState({show:!1,title:"",onConfirm:()=>{}}),{strategies:r,refetchStrategies:o,loading:i}=Ad(),{removeStrategy:a,deprecateStrategy:s,reactivateStrategy:c}=UE(),{setToastData:u,setToastApiError:d}=$t(),p=m.useMemo(()=>{if(i){const Q=Array(5).fill({name:"Context name",description:"Context description when loading"});return{all:Q,predefined:Q,custom:Q}}const H=r.map(({name:Q,description:V,editable:j,deprecated:z})=>({name:Q,description:V,editable:j,deprecated:z}));return{all:H,predefined:H.filter(Q=>!Q.editable),custom:H.filter(Q=>Q.editable)}},[r,i]),f=m.useCallback(H=>Q=>{n(Q?{show:!0,title:"Really reactivate strategy?",onConfirm:async()=>{try{await c(H),o(),u({type:"success",title:"Success",text:"Strategy reactivated successfully"})}catch(V){d(ht(V))}}}:{show:!0,title:"Really deprecate strategy?",onConfirm:async()=>{try{await s(H),o(),u({type:"success",title:"Success",text:"Strategy deprecated successfully"})}catch(V){d(ht(V))}}})},[s,c,o,d,u]),h=m.useCallback(H=>{n({show:!0,title:"Really delete strategy?",onConfirm:async()=>{try{await a(H),o(),u({type:"success",title:"Success",text:"Strategy deleted successfully"})}catch(Q){d(ht(Q))}}})},[a,o,d,u]),g=m.useCallback(H=>{e(`/strategies/${H.name}/edit`)},[e]),v=m.useMemo(()=>[{id:"Icon",Cell:()=>l(Le,{"data-loading":!0,sx:{pl:3,pr:1,display:"flex",alignItems:"center"},children:l(f9,{color:"disabled"})}),disableGlobalFilter:!0},{id:"Name",Header:"Name",accessor:H=>yl(H.name),width:"90%",Cell:({row:{original:{name:H,description:Q,deprecated:V}}})=>l(Rs,{"data-loading":!0,title:yl(H),subtitle:Q,to:`/strategies/${H}`,children:l(q,{condition:V,show:()=>l(She,{color:"disabled",children:"Disabled"})})}),sortType:"alphanumeric"},{Header:"Actions",id:"Actions",align:"center",Cell:({row:{original:H}})=>x(Ha,{children:[l(ghe,{deprecated:H.deprecated,onToggle:f(H)}),l(q,{condition:H.editable,show:x(ve,{children:[l(Ha.Divider,{}),l(vhe,{strategy:H,onClick:()=>g(H)}),l(yhe,{strategy:H,onClick:()=>h(H)})]})})]}),width:150,minWidth:120,disableGlobalFilter:!0,disableSortBy:!0},{accessor:"description",disableSortBy:!0},{accessor:"sortOrder",disableGlobalFilter:!0,sortType:"number"}],[f,g,h]),y=m.useMemo(()=>({sortBy:[{id:"Name",desc:!1}],hiddenColumns:["description","sortOrder"]}),[]),{getTableProps:b,getTableBodyProps:w,headerGroups:S,rows:k,prepareRow:A,state:{globalFilter:T},setGlobalFilter:R}=Yt.useTable({columns:v,data:p.predefined,initialState:y,sortTypes:si,autoResetGlobalFilter:!1,autoResetSortBy:!1,disableSortRemove:!0},Yt.useGlobalFilter,Yt.useSortBy),{getTableProps:P,getTableBodyProps:_,headerGroups:I,rows:$,prepareRow:U,setGlobalFilter:M}=Yt.useTable({columns:v,data:p.custom,initialState:y,sortTypes:si,autoResetGlobalFilter:!1,autoResetSortBy:!1,disableSortRemove:!0},Yt.useGlobalFilter,Yt.useSortBy),D=()=>{t==null||t.onConfirm(),n(H=>({...H,show:!1}))};let K=k.length;return x(Or,{isLoading:i,header:l(Dn,{title:`Strategy types (${K})`,actions:l(vo,{initialValue:T,onChange:(...H)=>{R(...H),M(...H)}})}),children:[x(Xa,{value:T,children:[x(Le,{sx:H=>({paddingBottom:H.spacing(4)}),children:[l(xhe,{}),x(la,{...b(),children:[l(sa,{headerGroups:S}),l(aa,{...w(),children:k.map(H=>(A(H),l(zi,{hover:!0,...H.getRowProps(),children:H.cells.map(Q=>l(Wi,{...Q.getCellProps(),children:Q.render("Cell")}))})))})]}),l(q,{condition:k.length===0,show:l(q,{condition:(T==null?void 0:T.length)>0,show:x(Kn,{children:["No predefined strategies found matching “",T,"”"]}),elseShow:l(Kn,{children:"No strategies available."})})})]}),x(Le,{children:[l(Che,{}),x(la,{...P(),children:[l(sa,{headerGroups:I}),l(aa,{..._(),children:$.map(H=>(U(H),l(zi,{hover:!0,...H.getRowProps(),children:H.cells.map(Q=>l(Wi,{...Q.getCellProps(),children:Q.render("Cell")}))})))})]}),l(q,{condition:$.length===0,show:l(q,{condition:(T==null?void 0:T.length)>0,show:x(Kn,{children:["No custom strategies found matching “",T,"”"]}),elseShow:l(gL,{})})})]})]}),l(gr,{open:t.show,onClick:D,title:t==null?void 0:t.title,onClose:()=>n(H=>({...H,show:!1}))})]})},R1=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Yn({propagateErrors:!0});return{createTag:async c=>{const d=t("api/admin/tag-types",{method:"POST",body:JSON.stringify(c)});try{return await e(d.caller,d.id)}catch(p){throw p}},validateTagName:async c=>{const d=t("api/admin/tag-types/validate",{method:"POST",body:JSON.stringify({name:c})});try{return await e(d.caller,d.id)}catch(p){throw p}},updateTagType:async(c,u)=>{const d=`api/admin/tag-types/${c}`,p=t(d,{method:"PUT",body:JSON.stringify(u)});try{return await e(p.caller,p.id)}catch(f){throw f}},deleteTagType:async c=>{const u=`api/admin/tag-types/${c}`,d=t(u,{method:"DELETE"});try{return await e(d.caller,d.id)}catch(p){throw p}},errors:n,loading:r}},The=(e={})=>{const t=async()=>{const c=Bt("api/admin/tag-types");return(await fetch(c,{method:"GET"}).then(Rn("Tag types"))).json()},n="api/admin/tag-types",{data:r,error:o}=An(n,t,e),[i,a]=m.useState(!o&&!r),s=()=>{io(n)};return m.useEffect(()=>{a(!o&&!r)},[r,o]),{tagTypes:(r==null?void 0:r.tagTypes)||[],error:o,loading:i,refetch:s}},khe=()=>{const e=gt(),t=or("(max-width:700px)");return l(q,{condition:t,show:l(Ir,{onClick:()=>e("/tag-types/create"),size:"large",permission:Zf,children:l(ca,{})}),elseShow:l(hi,{permission:Zf,onClick:()=>e("/tag-types/create"),children:"New tag type"})})},Ahe=()=>{const[e,t]=m.useState({open:!1}),n=gt(),{deleteTagType:r}=R1(),{tagTypes:o,refetch:i,loading:a}=The(),{setToastData:s,setToastApiError:c}=$t(),u=m.useMemo(()=>a?Array(5).fill({name:"Tag type name",description:"Tag type description when loading"}):o.map(({name:k,description:A})=>({name:k,description:A})),[o,a]),d=m.useMemo(()=>[{id:"Icon",Cell:()=>l(Le,{"data-loading":!0,sx:{pl:2,pr:1,display:"flex",alignItems:"center"},children:l(ule,{color:"disabled"})}),disableGlobalFilter:!0},{Header:"Name",accessor:"name",width:"90%",Cell:({row:{original:{name:k,description:A}}})=>l(Rs,{"data-loading":!0,title:k,subtitle:A}),sortType:"alphanumeric"},{Header:"Actions",id:"Actions",align:"center",Cell:({row:{original:k}})=>x(Le,{sx:{display:"flex",justifyContent:"flex-end"},"data-loading":!0,children:[l(Ir,{onClick:()=>n(`/tag-types/edit/${k.name}`),permission:Zf,tooltipProps:{title:"Edit tag type"},children:l(Ui,{})}),l(Ir,{permission:$le,tooltipProps:{title:"Delete tag type"},onClick:()=>t({open:!0,name:k.name}),children:l(go,{})})]}),width:150,disableGlobalFilter:!0,disableSortBy:!0},{accessor:"description",disableSortBy:!0}],[n]),p=m.useMemo(()=>({sortBy:[{id:"name",desc:!1}],hiddenColumns:["description"]}),[]),{getTableProps:f,getTableBodyProps:h,headerGroups:g,rows:v,prepareRow:y,state:{globalFilter:b},setGlobalFilter:w}=Yt.useTable({columns:d,data:u,initialState:p,sortTypes:si,autoResetGlobalFilter:!1,autoResetSortBy:!1,disableSortRemove:!0},Yt.useGlobalFilter,Yt.useSortBy),S=async()=>{try{e.name&&(await r(e.name),i(),t({open:!1}),s({type:"success",show:!0,title:"Successfully deleted tag type."}))}catch(k){c(ht(k))}};return x(Or,{isLoading:a,header:l(Dn,{title:`Tag types (${v.length})`,actions:x(ve,{children:[l(vo,{initialValue:b,onChange:w}),l(Dn.Divider,{}),l(khe,{})]})}),children:[l(Xa,{value:b,children:x(la,{...f(),children:[l(sa,{headerGroups:g}),l(aa,{...h(),children:v.map(k=>(y(k),l(zi,{hover:!0,...k.getRowProps(),children:k.cells.map(A=>l(Wi,{...A.getCellProps(),children:A.render("Cell")}))})))})]})}),l(q,{condition:v.length===0,show:l(q,{condition:(b==null?void 0:b.length)>0,show:x(Kn,{children:["No tags found matching “",b,"”"]}),elseShow:l(Kn,{children:"No tags available. Get started by adding one."})})}),l(gr,{title:"Really delete Tag type?",open:e.open,onClick:S,onClose:()=>{t({open:!1})}})]})},_1=(e={})=>{const t=async()=>{const c=Bt("api/admin/addons");return(await fetch(c,{method:"GET"}).then(Rn("Addons"))).json()},n="api/admin/addons",{data:r,error:o}=An(n,t,e),[i,a]=m.useState(!o&&!r),s=m.useCallback(()=>{io(n)},[n]);return m.useEffect(()=>{a(!o&&!r)},[r,o]),{addons:(r==null?void 0:r.addons)||[],providers:(r==null?void 0:r.providers)||[],error:o,loading:i,refetchAddons:s}},yL=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Yn({propagateErrors:!0}),o="api/admin/addons",i=async c=>{const d=t(o,{method:"POST",body:JSON.stringify(c)});return e(d.caller,d.id)},a=async c=>{const u=`${o}/${c}`,d=t(u,{method:"DELETE"});return await e(d.caller,d.id)},s=m.useCallback(async c=>{const u=`${o}/${c.id}`,d=t(u,{method:"PUT",body:JSON.stringify(c)});return e(d.caller,d.id)},[t,e]);return{createAddon:i,updateAddon:s,removeAddon:a,errors:n,loading:r}},P1=({icon:e})=>l(Le,{sx:{pl:2,pr:1,display:"flex",alignItems:"center"},children:e}),Rhe="/static/slack-c0af31c6.svg",_he="/static/jira-d9eb9af9.svg",Phe="/static/webhooks-ffa904ac.svg",Ihe="/static/teams-62e72076.svg",Ohe="/static/datadog-591b6a73.svg",Sp={width:"32.5px",height:"32.5px",marginRight:"16px"},bL=({name:e})=>{switch(e){case"slack":return l("img",{style:Sp,alt:"Slack logo",src:ea(Rhe)});case"jira-comment":return l("img",{style:Sp,alt:"JIRA logo",src:ea(_he)});case"webhook":return l("img",{style:Sp,alt:"Generic Webhook logo",src:ea(Phe)});case"teams":return l("img",{style:Sp,alt:"Microsoft Teams logo",src:ea(Ihe)});case"datadog":return l("img",{style:Sp,alt:"Datadog logo",src:ea(Ohe)});default:return l(Sd,{children:l(ele,{})})}},$he=e=>{const[t,n]=m.useState(e),r=m.useCallback(()=>n(e),[e]);return m.useEffect(()=>{n(e)},[e]),[t,n,r]},Nhe=({toggleAddon:e,setShowDelete:t,setDeletedAddon:n,original:r})=>{const o=gt(),[i,a,s]=$he(r.enabled),c=()=>{a(!i),e(r).catch(s)};return x(Ha,{children:[l(xt,{title:i?`Disable addon ${r.provider}`:`Enable addon ${r.provider}`,arrow:!0,describeChild:!0,children:l(mL,{permission:sx,checked:i,onClick:c})}),l(Ha.Divider,{}),l(Ir,{permission:sx,tooltipProps:{title:"Edit Addon"},onClick:()=>o(`/addons/edit/${r.id}`),children:l(Ui,{})}),l(Ir,{permission:Nle,tooltipProps:{title:"Remove Addon"},onClick:()=>{n(r),t(!0)},children:l(go,{})})]})},Lhe=()=>{const{refetchAddons:e,addons:t,loading:n}=_1(),{updateAddon:r,removeAddon:o}=yL(),{setToastData:i,setToastApiError:a}=$t(),[s,c]=m.useState(!1),[u,d]=m.useState({id:0,provider:"",description:"",enabled:!1,events:[],parameters:{}}),p=m.useMemo(()=>n?Array(5).fill({name:"Addon name",description:"Addon description when loading"}):t.map(T=>({...T})),[t,n]),f=m.useCallback(async T=>{try{await r({...T,enabled:!T.enabled}),e(),i({type:"success",title:"Success",text:T.enabled?"Addon is now disabled":"Addon is now enabled"})}catch(R){throw a(ht(R)),R}},[a,e,i,r]),h=m.useMemo(()=>[{id:"Icon",Cell:({row:{original:{provider:T}}})=>l(P1,{icon:l(bL,{name:T})})},{Header:"Name",accessor:"provider",width:"90%",Cell:({row:{original:{provider:T,description:R}}})=>l(Rs,{"data-loading":!0,title:T,subtitle:R}),sortType:"alphanumeric"},{Header:"Actions",id:"Actions",align:"center",Cell:({row:{original:T}})=>l(Nhe,{setShowDelete:c,toggleAddon:f,setDeletedAddon:d,original:T}),width:150,disableSortBy:!0},{accessor:"description",disableSortBy:!0}],[f]),g=m.useMemo(()=>({sortBy:[{id:"provider",desc:!1}],hiddenColumns:["description"]}),[]),{getTableProps:v,getTableBodyProps:y,headerGroups:b,rows:w,prepareRow:S,state:{globalFilter:k}}=Yt.useTable({columns:h,data:p,initialState:g,sortTypes:si,autoResetGlobalFilter:!1,autoResetSortBy:!1,disableSortRemove:!0},Yt.useSortBy),A=async T=>{try{await o(T.id),e(),i({type:"success",title:"Success",text:"Deleted addon successfully"})}catch(R){a(ht(R))}};return x(Or,{isLoading:n,header:l(Dn,{title:`Configured addons (${w.length})`}),sx:T=>({marginBottom:T.spacing(2)}),children:[x(la,{...v(),children:[l(sa,{headerGroups:b}),l(aa,{...y(),children:w.map(T=>(S(T),l(zi,{hover:!0,...T.getRowProps(),children:T.cells.map(R=>l(Wi,{...R.getCellProps(),padding:"none",children:R.render("Cell")}))})))})]}),l(q,{condition:w.length===0,show:l(q,{condition:(k==null?void 0:k.length)>0,show:x(Kn,{children:["No addons found matching “",k,"”"]}),elseShow:l(Kn,{children:"No addons configured"})})}),l(gr,{open:s,onClick:()=>{A(u),c(!1)},onClose:()=>{c(!1)},title:"Confirm deletion",children:l("div",{children:"Are you sure you want to delete this Addon?"})})]})},Mhe=({name:e})=>{const t=gt();return l(hi,{permission:A9,variant:"outlined",onClick:()=>t(`/addons/create/${e}`),children:"Configure"})},Dhe=({providers:e,loading:t})=>{const n=m.useMemo(()=>t?Array(5).fill({name:"Provider name",description:"Provider description when loading"}):e.map(({name:p,displayName:f,description:h})=>({name:p,displayName:f,description:h})),[e,t]),r=m.useMemo(()=>[{id:"Icon",Cell:({row:{original:{name:p}}})=>l(P1,{icon:l(bL,{name:p})})},{Header:"Name",accessor:"name",width:"90%",Cell:({row:{original:{name:p,description:f}}})=>l(Rs,{"data-loading":!0,title:p,subtitle:f}),sortType:"alphanumeric"},{id:"Actions",align:"center",Cell:({row:{original:p}})=>l(Ha,{children:l(Mhe,{name:p.name})}),width:150,disableSortBy:!0},{accessor:"description",disableSortBy:!0}],[]),o=m.useMemo(()=>({sortBy:[{id:"name",desc:!1}],hiddenColumns:["description"]}),[]),{getTableProps:i,getTableBodyProps:a,headerGroups:s,rows:c,prepareRow:u,state:{globalFilter:d}}=Yt.useTable({columns:r,data:n,initialState:o,sortTypes:si,autoResetGlobalFilter:!1,autoResetSortBy:!1,disableSortRemove:!0},Yt.useSortBy);return x(Or,{isLoading:t,header:l(Dn,{title:`Available addons (${c.length})`}),children:[x(la,{...i(),children:[l(sa,{headerGroups:s}),l(aa,{...a(),children:c.map(p=>(u(p),l(zi,{hover:!0,...p.getRowProps(),children:p.cells.map(f=>l(Wi,{...f.getCellProps(),children:f.render("Cell")}))})))})]}),l(q,{condition:c.length===0,show:l(q,{condition:(d==null?void 0:d.length)>0,show:x(Kn,{children:["No providers found matching “",d,"”"]}),elseShow:l(Kn,{children:"No providers available."})})})]})},Bhe=()=>{const{providers:e,addons:t,loading:n}=_1();return x(ve,{children:[l(q,{condition:t.length>0,show:l(Lhe,{})}),l(Dhe,{loading:n,providers:e})]})},Pc=()=>new URLSearchParams(Ho().search),Fhe=({children:e,from:t,to:n,style:r,...o})=>l("div",{style:{background:`linear-gradient(${t}, ${n})`,height:"100%",width:"100%",position:"relative",...r},...o,children:e}),zhe=e=>m.createElement("svg",{id:"bg",width:"100%",height:"100%",viewBox:"0 0 622 318",fill:"none",...e},m.createElement("defs",null,m.createElement("style",null,".cls-1{fill:#fff;}.cls-2{fill:#1a4049;}.cls-3{fill:#817afe;}")),m.createElement("circle",{className:"cls-1",cx:125.62,cy:125.62,r:80}),m.createElement("polygon",{className:"cls-1",points:"137.05 91.33 137.05 114.19 137.05 137.05 159.9 137.05 159.9 114.19 159.9 91.33 137.05 91.33"}),m.createElement("polygon",{className:"cls-1",points:"114.19 114.19 114.19 91.33 91.33 91.33 91.33 114.19 91.33 137.05 91.33 159.9 114.19 159.9 137.05 159.9 137.05 137.05 114.19 137.05 114.19 114.19"}),m.createElement("polygon",{className:"cls-2",points:"137.05 91.33 137.05 114.19 137.05 137.05 159.9 137.05 159.9 114.19 159.9 91.33 137.05 91.33"}),m.createElement("polygon",{className:"cls-2",points:"114.19 114.19 114.19 91.33 91.33 91.33 91.33 114.19 91.33 137.05 91.33 159.9 114.19 159.9 137.05 159.9 137.05 137.05 114.19 137.05 114.19 114.19"}),m.createElement("rect",{className:"cls-3",x:137.05,y:137.05,width:22.86,height:22.86}),m.createElement("path",{className:"cls-1",d:"M251.58,139.13V112.77h11.93v25.06c0,7.36,3.91,12.2,11.27,12.2s11.27-4.84,11.27-12.2V112.77h12v26.36c0,12.67-8.48,21.8-23.1,21.8C260.06,160.93,251.58,151.8,251.58,139.13Z"}),m.createElement("path",{className:"cls-1",d:"M321.91,159.9H310.08V112.77h11.83v7.92a17.93,17.93,0,0,1,15.65-9c11.83,0,19.66,8.67,19.66,20.68V159.9h-12V134.75c0-7.45-4.38-12.39-11.46-12.39s-11.83,5-11.83,12.39Z"}),m.createElement("path",{className:"cls-1",d:"M369.42,91.34h11.92V159.9H369.42Z"}),m.createElement("path",{className:"cls-1",d:"M441.24,137v1.3H403.79c.47,7.36,5.87,13,13.69,13,7.55,0,10.62-3.82,11.46-5.12h11.74c-.75,4.84-7.17,15-23.2,15-15.27,0-25.61-10.61-25.61-24.77,0-14.63,10.24-24.78,24.68-24.78S441.24,121.62,441.24,137Zm-37.08-6.9h24.6c-1.77-6-6.15-9.31-12.21-9.31C410.12,120.78,405.65,124.23,404.16,130.09Z"}),m.createElement("path",{className:"cls-1",d:"M467.78,130.37h15.47c0-5.68-4.29-9.31-11.27-9.31-6.62,0-9,3.54-9.78,4.75h-12c1-4.94,6.89-14.25,21.8-14.25,14.62,0,22.73,7.64,22.73,18.81V146.3c0,2.89,1,4,3.72,4.29v9.59h-3.72c-6.06-.09-9.69-2.33-11-6.52-2.23,3.45-7.26,7.27-15.27,7.27-11.09,0-19.47-6.24-19.47-15.93S456.14,130.37,467.78,130.37Zm15.47,12.11v-4H469.74c-5.59,0-9,2-9,6.33,0,4.57,4.29,7.27,10.25,7.27C477.66,152.08,483.25,148.82,483.25,142.48Z"}),m.createElement("path",{className:"cls-1",d:"M523.12,140.62c-10.34-.74-17.33-5.59-17.33-14.72,0-8.85,8.1-14.44,20.77-14.44,17,0,21.8,8.76,23.1,13.32H537.09c-.84-1-3.54-4.28-10.62-4.28-5.68,0-8.66,1.86-8.66,4.75,0,2.61,2,4.29,6.7,4.94l8,.84c12.77,1.11,18,6,18,15.27,0,8.85-7.36,14.91-21.8,14.91-17.51,0-23.19-10.16-24.12-14.53h12.76c.47,1.11,3.35,5.31,11.36,5.31,6.62,0,9.69-2.24,9.69-5.22s-1.67-4.66-7-5.31C528.05,141.18,526.38,141,523.12,140.62Z"}),m.createElement("path",{className:"cls-1",d:"M571.55,159.9H559.72V91.34h11.83v29.35a17.93,17.93,0,0,1,15.65-9c11.83,0,19.66,8.67,19.66,20.68V159.9h-12V134.75c0-7.45-4.38-12.39-11.46-12.39s-11.83,5-11.83,12.39Z"})),jhe=C(Fhe)(({theme:e})=>({display:"flex",justifyContent:"center",borderTopLeftRadius:e.shape.borderRadiusLarge,[e.breakpoints.down("md")]:{borderTopLeftRadius:e.shape.borderRadiusLarge,borderTopRightRadius:e.shape.borderRadiusLarge},[e.breakpoints.down("sm")]:{borderTopLeftRadius:"0",borderTopRightRadius:"0"}})),Uhe=C("div")(({theme:e})=>({padding:e.spacing(12,8),color:e.palette.common.white,position:"relative",textAlign:"right",[e.breakpoints.down("md")]:{padding:e.spacing(6,4)},[e.breakpoints.down("sm")]:{padding:e.spacing(6,2)}})),Whe=C(se)(({theme:e})=>({color:e.palette.common.white,marginBottom:e.spacing(2),fontSize:e.spacing(4),marginTop:e.spacing(10),[e.breakpoints.down("md")]:{display:"none"}})),Hhe=C(se)(({theme:e})=>({[e.breakpoints.down("md")]:{display:"none"},fontSize:e.spacing(4),fontWeight:"normal"})),Vhe=C("div")(({theme:e})=>({position:"absolute",[e.breakpoints.up("md")]:{bottom:"-50px",left:"-50px",display:"flex",flexDirection:"column"},[e.breakpoints.down("md")]:{top:"9px"}})),wL=e=>({width:"200px",[e.breakpoints.up("md")]:{width:"240px",height:"200px"}}),Ghe=C(zhe)(({theme:e})=>({...wL(e)})),qhe=C(LN)(({theme:e})=>({...wL(e)})),SL=({title:e})=>{const t=gn(),n=or(t.breakpoints.down("md"));return x(jhe,{from:t.palette.loginGradient.from,to:t.palette.loginGradient.to,children:[x(Uhe,{children:[l(Whe,{variant:"h1",children:e}),l(Hhe,{children:"Committed to creating new ways of developing software"})]}),l(Vhe,{children:l(q,{condition:n,show:l(Ghe,{"aria-label":"Unleash logo"}),elseShow:l(qhe,{"aria-label":"Unleash logo"})})})]})},Khe=C("div")(({theme:e})=>({padding:e.spacing(11),background:e.palette.background.application,display:"flex",[e.breakpoints.down("md")]:{flexDirection:"column"},[e.breakpoints.down("sm")]:{padding:"0"},minHeight:"100vh"})),Yhe=C("header")(({theme:e})=>({width:"40%",borderRadius:e.shape.borderRadius,[e.breakpoints.down("md")]:{borderRadius:"0",width:"100%",minHeight:"auto"}})),Xhe=C("main")(({theme:e})=>({width:"60%",flex:"1",borderTopRightRadius:e.shape.borderRadiusLarge,borderBottomRightRadius:e.shape.borderRadiusLarge,backgroundColor:e.palette.background.paper,position:"relative",[e.breakpoints.down("md")]:{borderTopRightRadius:"0",borderBottomLeftRadius:e.shape.borderRadiusLarge,borderBottomRightRadius:e.shape.borderRadiusLarge,width:"100%",position:"static",minHeight:"auto"},[e.breakpoints.down("sm")]:{borderRadius:"0"}})),Jhe=C("div")(({theme:e})=>({display:"flex",justifyContent:"center",height:"100%",padding:e.spacing(12,6),[e.breakpoints.down("md")]:{padding:e.spacing(4,4)},[e.breakpoints.down("sm")]:{padding:e.spacing(4,2)}})),I1=({children:e,BannerComponent:t})=>{let n=l(SL,{title:"Unleash"});return t&&(n=t),x(Khe,{children:[l(Yhe,{children:n}),l(Xhe,{children:l(Jhe,{children:e})})]})},Qhe="unsecure",xL="demo",Zhe="password",eme="enterprise-hosted",tme="_container_wn392_1",nme="_button_wn392_10",q5={container:tme,button:nme},O1=()=>{const{makeRequest:e,errors:t,loading:n}=Yn({propagateErrors:!0});return{passwordAuth:(i,a,s)=>{const c={caller:()=>fetch(i,{headers:ix,method:"POST",body:JSON.stringify({username:a,password:s})}),id:"passwordAuth"};return e(c.caller,c.id)},emailAuth:(i,a)=>{const s={caller:()=>fetch(i,{headers:ix,method:"POST",body:JSON.stringify({email:a})}),id:"emailAuth"};return e(s.caller,s.id)},errors:t,loading:n}},rme=({authDetails:e,redirect:t})=>{const[n,r]=m.useState(""),{refetchUser:o}=pi(),{emailAuth:i}=O1(),a=gt(),{setToastApiError:s}=$t(),c=async d=>{d.preventDefault();try{await i(e.path,n),o(),a(t,{replace:!0})}catch(p){s(ht(p))}},u=d=>{const p=d.target.value;r(p)};return l("form",{onSubmit:c,children:x("div",{className:q5.container,children:[l("p",{children:e.message}),x("p",{children:["This instance of Unleash is not set up with a secure authentication provider. You can read more about"," ",l("a",{href:"https://github.com/Unleash/unleash/blob/master/docs/securing-unleash.md",target:"_blank",rel:"noreferrer",children:"securing Unleash on GitHub"})]}),l(wn,{value:n,onChange:u,inputProps:{"data-testid":"email-input-field"},size:"small",variant:"outlined",label:"Email",name:"email",id:"email",required:!0,type:"email","data-testid":f1,autoFocus:!0}),l("br",{}),l("div",{children:l(Ve,{type:"submit",variant:"contained",color:"primary",className:q5.button,"data-testid":h1,children:"Sign in"})})]})})},ome=({authDetails:e})=>x("div",{children:[l("p",{children:e.message}),l(FX,{style:{textAlign:"center"},children:l("a",{href:e.path,style:{width:"100%"},children:l(Ve,{variant:"contained",color:"primary",style:{width:"150px",margin:"0 auto"},children:"Sign In"})})})]}),ime=e=>m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"46px",height:"46px",viewBox:"0 0 46 46",...e},m.createElement("defs",null,m.createElement("filter",{x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"objectBoundingBox",id:"filter-1"},m.createElement("feOffset",{dx:0,dy:1,in:"SourceAlpha",result:"shadowOffsetOuter1"}),m.createElement("feGaussianBlur",{stdDeviation:.5,in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),m.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.168 0",in:"shadowBlurOuter1",type:"matrix",result:"shadowMatrixOuter1"}),m.createElement("feOffset",{dx:0,dy:0,in:"SourceAlpha",result:"shadowOffsetOuter2"}),m.createElement("feGaussianBlur",{stdDeviation:.5,in:"shadowOffsetOuter2",result:"shadowBlurOuter2"}),m.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.084 0",in:"shadowBlurOuter2",type:"matrix",result:"shadowMatrixOuter2"}),m.createElement("feMerge",null,m.createElement("feMergeNode",{in:"shadowMatrixOuter1"}),m.createElement("feMergeNode",{in:"shadowMatrixOuter2"}),m.createElement("feMergeNode",{in:"SourceGraphic"}))),m.createElement("rect",{id:"path-2",x:0,y:0,width:40,height:40,rx:2})),m.createElement("g",{id:"Google-Button",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},m.createElement("g",{id:"9-PATCH",transform:"translate(-608.000000, -160.000000)"}),m.createElement("g",{id:"btn_google_light_normal",transform:"translate(-1.000000, -1.000000)"},m.createElement("g",{id:"button",transform:"translate(4.000000, 4.000000)",filter:"url(#filter-1)"},m.createElement("g",{id:"button-bg"},m.createElement("use",{fill:"#FFFFFF",fillRule:"evenodd"}),m.createElement("use",{fill:"none"}),m.createElement("use",{fill:"none"}),m.createElement("use",{fill:"none"}))),m.createElement("g",{id:"logo_googleg_48dp",transform:"translate(15.000000, 15.000000)"},m.createElement("path",{d:"M17.64,9.20454545 C17.64,8.56636364 17.5827273,7.95272727 17.4763636,7.36363636 L9,7.36363636 L9,10.845 L13.8436364,10.845 C13.635,11.97 13.0009091,12.9231818 12.0477273,13.5613636 L12.0477273,15.8195455 L14.9563636,15.8195455 C16.6581818,14.2527273 17.64,11.9454545 17.64,9.20454545 L17.64,9.20454545 Z",id:"Shape",fill:"#000"}),m.createElement("path",{d:"M9,18 C11.43,18 13.4672727,17.1940909 14.9563636,15.8195455 L12.0477273,13.5613636 C11.2418182,14.1013636 10.2109091,14.4204545 9,14.4204545 C6.65590909,14.4204545 4.67181818,12.8372727 3.96409091,10.71 L0.957272727,10.71 L0.957272727,13.0418182 C2.43818182,15.9831818 5.48181818,18 9,18 L9,18 Z",id:"Shape",fill:"#000"}),m.createElement("path",{d:"M3.96409091,10.71 C3.78409091,10.17 3.68181818,9.59318182 3.68181818,9 C3.68181818,8.40681818 3.78409091,7.83 3.96409091,7.29 L3.96409091,4.95818182 L0.957272727,4.95818182 C0.347727273,6.17318182 0,7.54772727 0,9 C0,10.4522727 0.347727273,11.8268182 0.957272727,13.0418182 L3.96409091,10.71 L3.96409091,10.71 Z",id:"Shape",fill:"#000"}),m.createElement("path",{d:"M9,3.57954545 C10.3213636,3.57954545 11.5077273,4.03363636 12.4404545,4.92545455 L15.0218182,2.34409091 C13.4631818,0.891818182 11.4259091,0 9,0 C5.48181818,0 2.43818182,2.01681818 0.957272727,4.95818182 L3.96409091,7.29 C4.67181818,5.16272727 6.65590909,3.57954545 9,3.57954545 L9,3.57954545 Z",id:"Shape",fill:"#000"}),m.createElement("path",{d:"M0,0 L18,0 L18,18 L0,18 L0,0 Z",id:"Shape"})),m.createElement("g",{id:"handles_square"}))));var WE={},ame=En;Object.defineProperty(WE,"__esModule",{value:!0});var CL=WE.default=void 0,sme=ame(Tn()),lme=kn,cme=(0,sme.default)((0,lme.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM9 8V6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9z"}),"LockRounded");CL=WE.default=cme;const HE=({options:e})=>{const{classes:t}=$h();return l(ve,{children:e==null?void 0:e.map(n=>l("div",{className:Pi(t.flexColumn,t.contentSpacingY),children:l(Ve,{color:"primary","data-loading":!0,variant:"outlined",href:n.path,size:"small","data-testid":`${Sie}-${n.type}`,style:{height:"40px"},startIcon:l(q,{condition:n.type==="google",show:l(ime,{style:{height:"35px",width:"35px"}}),elseShow:l(CL,{style:{height:"25px",width:"25px"}})}),children:n.message})},n.type))})},ume=C("div")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",margin:e.spacing(2,"auto")})),K5=C("span")(({theme:e})=>({width:"80px",height:"3px",backgroundColor:e.palette.divider,borderRadius:e.shape.borderRadius})),dme=C(se)(({theme:e})=>({textAlign:"center",display:"block",margin:e.spacing(0,2)})),$1=({text:e,...t})=>x(ume,{...t,children:[l(K5,{}),l(dme,{variant:"body2",children:e}),l(K5,{})]}),Zu=({...e})=>{const[t,n]=m.useState(!1);return l(wn,{variant:"outlined",size:"small",type:t?"text":"password",InputProps:{style:{paddingRight:"0px"},endAdornment:l(oN,{position:"end",children:l(Ht,{onClick:()=>{n(!t)},onMouseDown:s=>{s.preventDefault()},size:"large",children:l(t?v9:y9,{titleAccess:"Toggle password visibility"})})})},...e})},pme=C(tn)(({theme:e})=>({color:e.palette.error.main,marginBottom:e.spacing(1)})),fme=C("div")(({theme:e})=>({...p1(e),display:"flex",flexDirection:"column"})),hme=({authDetails:e,redirect:t})=>{const n=gt(),{refetchUser:r}=pi(),o=Pc(),[i,a]=m.useState(o.get("email")||""),[s,c]=m.useState(""),{passwordAuth:u}=O1(),[d,p]=m.useState({}),f=async v=>{if(v.preventDefault(),i||p(y=>({...y,usernameError:"This is a required field"})),s||p(y=>({...y,passwordError:"This is a required field"})),!(!s||!i))try{await u(e.path,i,s),r(),n(t,{replace:!0})}catch(y){y instanceof wE||y instanceof bE?(p(b=>({...b,apiError:"Invalid login details"})),c(""),a("")):y instanceof C9?p({apiError:"Invalid password and username combination."}):p({apiError:"Unknown error while trying to authenticate."})}},h=()=>{const{usernameError:v,passwordError:y,apiError:b}=d;return l(q,{condition:!e.defaultHidden,show:x("form",{onSubmit:f,children:[l(q,{condition:!!b,show:l(pme,{severity:"error",children:b})}),x(fme,{children:[l(wn,{label:"Username or email",name:"username",id:"username",type:"text",onChange:w=>a(w.target.value),value:i,error:!!v,helperText:v,autoComplete:"username","data-testid":f1,variant:"outlined",size:"small",autoFocus:!0}),l(Zu,{label:"Password",onChange:w=>c(w.target.value),name:"password",id:"password",value:s,error:!!y,helperText:y,autoComplete:"current-password","data-testid":PN}),l(Ve,{variant:"contained",color:"primary",type:"submit",style:{width:"150px",margin:"1rem auto"},"data-testid":h1,children:"Sign in"})]})]})})},{options:g=[]}=e;return l(ve,{children:l(q,{condition:g.length>0,show:x(ve,{children:[l(HE,{options:g}),l(q,{condition:!e.defaultHidden,show:l($1,{text:"Or sign in with username"})}),h()]}),elseShow:h()})})},mme=C(se)(({theme:e})=>({color:e.palette.error.main})),gme=C("div")(({theme:e})=>({...p1(e),display:"flex",flexDirection:"column"})),vme=C(Ve)(({theme:e})=>({width:"150px",margin:e.spacing(2,"auto",0,"auto"),display:"block",textAlign:"center"})),yme=({authDetails:e,redirect:t})=>{const{refetchUser:n}=pi(),r=gt(),o=Pc(),{passwordAuth:i}=O1(),[a,s]=m.useState(o.get("email")||""),[c,u]=m.useState(""),[d,p]=m.useState({}),f=async b=>{if(b.preventDefault(),a||p(w=>({...w,usernameError:"This is a required field"})),c||p(w=>({...w,passwordError:"This is a required field"})),!(!c||!a))try{await i(e.path,a,c),n(),r(t,{replace:!0})}catch(w){w instanceof wE||w instanceof bE?(p(S=>({...S,apiError:"Invalid login details"})),u(""),s("")):p({apiError:"Unknown error while trying to authenticate."})}},{usernameError:h,passwordError:g,apiError:v}=d,{options:y=[]}=e;return x(ve,{children:[l(q,{condition:y.length>0,show:x(ve,{children:[l(HE,{options:y}),l($1,{text:"or signin with username"})]})}),l(q,{condition:!e.defaultHidden,show:x("form",{onSubmit:f,children:[l(mme,{variant:"subtitle2",children:v}),x(gme,{children:[l(wn,{label:"Username or email",name:"username",id:"username",type:"text",onChange:b=>s(b.target.value),value:a,error:!!h,helperText:h,variant:"outlined",size:"small","data-testid":f1}),l(Zu,{label:"Password",onChange:b=>u(b.target.value),name:"password",id:"password",value:c,error:!!g,helperText:g,autoComplete:"current-password","data-testid":PN}),l(Wn,{container:!0,children:l(vme,{variant:"contained",color:"primary",type:"submit","data-testid":h1,children:"Sign in"})})]})]})})]})},bme="_container_abcn7_1",wme="_emailField_abcn7_9",Sme="_form_abcn7_13",xme="_logo_abcn7_17",Cme="_button_abcn7_24",xp={container:bme,emailField:wme,form:Sme,logo:xme,button:Cme},Eme=e=>m.createElement("svg",{width:52,height:52,viewBox:"0 0 52 52",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("circle",{cx:26,cy:26,r:26,fill:"white"}),m.createElement("rect",{x:15,y:15,width:7,height:22,fill:"#1A4049"}),m.createElement("rect",{x:30,y:15,width:7,height:22,fill:"#1A4049"}),m.createElement("path",{d:"M37 30L37 37L15 37L15 30L37 30Z",fill:"#1A4049"}),m.createElement("rect",{x:30,y:30,width:7,height:7,fill:"#817AFE"})),Tme=({authDetails:e,redirect:t})=>{const[n,r]=m.useState(""),o=gt(),{refetchUser:i}=pi(),{emailAuth:a}=O1(),{setToastApiError:s}=$t(),c=async d=>{d.preventDefault();try{await a(e.path,n),i(),o(t,{replace:!0})}catch(p){s(ht(p))}},u=d=>{const p=d.target.value;r(p)};return x("form",{onSubmit:c,children:[l(Eme,{className:xp.logo,"aria-label":"Unleash logo"}),x("div",{className:xp.container,children:[l("h2",{children:"Access the Unleash demo instance"}),l("p",{children:"No further data or Credit Card required"}),x("div",{className:xp.form,children:[l(wn,{value:n,className:xp.emailField,onChange:u,inputProps:{"data-testid":"email-input-field"},size:"small",variant:"outlined",label:"Email",name:"email",id:"email","data-testid":f1,required:!0,type:"email"}),l(Ve,{type:"submit",variant:"contained",color:"primary",className:xp.button,"data-testid":h1,children:"Sign in"})]}),x("p",{children:["By accessing our demo instance, you agree to the Unleash ",l("a",{href:"https://www.unleash-hosted.com/tos/",target:"_blank",rel:"noreferrer",children:"Customer Terms of Service"})," ","and ",l("a",{href:"https://www.unleash-hosted.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:"Privacy Policy"})]})]})]})},kme=C("div")(({theme:e})=>({margin:"auto auto 0 auto",width:"230px",[e.breakpoints.down("md")]:{marginTop:e.spacing(2)}})),Ame=C(hn)(({theme:e})=>({fontWeight:"bold",textAlign:"center"})),Rme=C(se)(({theme:e})=>({fontWeight:"bold",marginBottom:e.spacing(1)})),_me=C("a")(({theme:e})=>({fontWeight:"bold",textAlign:"center"})),Y5=()=>x(kme,{children:[l(Ame,{to:"/forgotten-password",children:l(Rme,{variant:"body2",children:"Forgot password?"})}),x(se,{variant:"body2",children:["Don't have an account?"," ",l(_me,{href:"https://www.getunleash.io/plans",target:"_blank",rel:"noopener noreferrer",children:"Sign up"})]})]}),Rd=()=>{const e=Nh();return{authDetails:e.data&&"type"in e.data?e.data:void 0,refetchAuthDetails:e.refetchAuth,loading:e.loading,error:e.error}},Pme=({redirect:e,invited:t=!1})=>{const{authDetails:n}=Rd(),o=Pc().get("errorMsg"),{trackEvent:i}=Dr();if(m.useEffect(()=>{t&&i("invite",{props:{eventType:"user created"}})},[t,i]),!n)return null;let a;return n.type===Zhe?a=x(ve,{children:[l(hme,{authDetails:n,redirect:e}),l(q,{condition:!n.defaultHidden,show:l(Y5,{})})]}):n.type===Qhe?a=l(rme,{authDetails:n,redirect:e}):n.type===xL?a=l(Tme,{authDetails:n,redirect:e}):n.type===eme?a=x(ve,{children:[l(yme,{authDetails:n,redirect:e}),l(q,{condition:!n.defaultHidden,show:l(Y5,{})})]}):a=l(ome,{authDetails:n}),x(ve,{children:[l("div",{style:{maxWidth:"350px"},"data-testid":$ie,children:l(q,{condition:!!o,show:l(tn,{severity:"error",children:o})})}),a]})},Ime=e=>{const t=new URL(decodeURIComponent(e),window.location.protocol+"//"+window.location.host);return{pathname:t.pathname,search:t.search}},Ome=C("div")(({theme:e})=>({display:"flex",flexDirection:"column"})),$me=C("h2")(({theme:e})=>({fontSize:e.fontSizes.mainHeader,marginBottom:e.spacing(2),textAlign:"center"})),Nme=()=>{const{authDetails:e}=Rd(),{user:t}=pi(),n=Pc(),r=n.get("reset")==="true",o=n.get("invited")==="true",i=n.get("redirect")||"/";return t?l(kc,{to:Ime(i),replace:!0}):l(I1,{children:x(Ome,{children:[l(q,{condition:r,show:x(tn,{severity:"success",sx:{mb:4},children:[l(wv,{children:"Success"}),"You successfully reset your password."]})}),l(q,{condition:o,show:x(tn,{severity:"success",sx:{mb:4},children:[l(wv,{children:"Success"}),"Your account has been created."]})}),l(q,{condition:(e==null?void 0:e.type)!==xL,show:l($me,{children:"Log in to continue the great work"})}),l(Pme,{redirect:i,invited:o})]})})},Lme="P",Mme="EEA",Dme="RE",Hb="SE",Bme="UG",Fme=e=>()=>{if(!e)return Promise.resolve({name:EL});const t=Bt(`auth/reset/validate?token=${e}`);return fetch(t,{method:"GET"}).then(n=>n.json())},EL="InvalidTokenError",zme="UsedTokenError",TL=(e={})=>{const t=Pc(),n=t.get("token")||"",[r,o]=m.useState(n),i=Fme(r),a=`auth/reset/validate?token=${r}`,{data:s,error:c}=An(a,i,e),[u,d]=m.useState(!c&&!s),p=()=>{const h=t.get("token")||"";o(h)};m.useEffect(()=>{d(!c&&!s)},[s,c]);const f=!(!u&&(s==null?void 0:s.name)===EL||(s==null?void 0:s.name)===zme);return{token:r,data:s,error:c,loading:u,isValidToken:f,setLoading:d,retry:p}},jme=(e,t)=>()=>{if(!e)return Promise.resolve(!1);const n=Bt(t);return fetch(n,{method:"GET"}).then(r=>r.status===Mh)},kL=(e={})=>{const n=Pc().get("invite")||"",r=`/invite/${n}/validate`,{data:o,error:i}=An(r,jme(n,r),e),[a,s]=m.useState(!i&&!o);return m.useEffect(()=>{s(!i&&o===void 0)},[o,i]),{secret:n,isValid:o,error:i,loading:a}},X5="api/admin/invite-link/tokens",Ume=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Yn({propagateErrors:!0}),o=m.useCallback(async s=>{const c=t(X5,{method:"POST",body:JSON.stringify(s)});return await e(c.caller,c.id)},[t,e]),i=m.useCallback(async(s,c)=>{const u=t(`${X5}/${s}`,{method:"PUT",body:JSON.stringify({...c.expiresAt?{expiresAt:c.expiresAt}:{},...c.enabled!==void 0?{enabled:c.enabled}:{}})});return await e(u.caller,u.id)},[t,e]),a=m.useCallback(async(s,c)=>{const u=t(`/invite/${s}/signup`,{method:"POST",body:JSON.stringify(c)});return await e(u.caller,u.id)},[t,e]);return{createToken:o,updateToken:i,addUser:a,errors:n,loading:r}},AL=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Yn({propagateErrors:!0});return{resetPassword:m.useCallback(i=>{const a=t("auth/reset/password",{method:"POST",body:JSON.stringify(i)});return e(a.caller,a.id)},[t,e]),errors:n,loading:r}},Wme="The password must be at least 10 characters long.",Hme="The password must contain at least one number.",Vme="The password must contain at least one special character.",Gme="The password must contain at least one uppercase letter.",qme="The password must contain at least one lowercase letter.",Kme="The password may not contain sequences of three or more repeated characters.",RL="The password must be at least 10 characters long and must include an uppercase letter, a lowercase letter, a number, and a symbol.",Yme=C(se)(({theme:e})=>({marginBottom:"0",display:"flex",alignItems:"center",gap:"1ch"})),Xme=C("div")(({theme:e})=>({backgroundColor:e.palette.background.elevation2,borderRadius:e.shape.borderRadius,position:"relative",maxWidth:"350px",color:e.palette.text.secondary,padding:e.spacing(.5,0,1.5)})),Jme=C("div")(({theme:e})=>({display:"flex",padding:e.spacing(1)})),Ns=C("div")(({theme:e})=>({width:"95px",margin:e.spacing(0,.5),display:"flex",justifyContent:"center"})),Qme=C("div")(({theme:e})=>({backgroundColor:e.palette.neutral.light,height:"1px",width:"100%"})),Zme=C("div")(({theme:e})=>({display:"flex",padding:e.spacing(1)})),ege=C(tn)(({theme:e})=>({marginTop:e.spacing(1),bottom:"0",position:"absolute"})),Qm=C("div",{shouldForwardProp:e=>e!=="error"})(({theme:e,error:t})=>({width:"50px",borderRadius:e.shape.borderRadius,height:"6px",backgroundColor:t?e.palette.error.main:e.palette.primary.main})),_L=({password:e,callback:t,style:n={}})=>{const[r,o]=m.useState(!0),[i,a]=m.useState(!0),[s,c]=m.useState(!0),[u,d]=m.useState(!0),[p,f]=m.useState(!1),h=m.useCallback(()=>{const w=Bt("auth/reset/validate-password");return fetch(w,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify({password:e})})},[e]),g=m.useCallback(()=>{y(!1)},[]),v=m.useCallback(async()=>{if(!e){y(!0);return}if(e.length<3){d(!0);return}try{const w=await h();if(w.status===yE){const S=await w.json();b(S),t(!1)}w.status===Mh&&(g(),f(!1),t(!0))}catch{console.log("An exception was caught and handled")}},[h,t,e,g]);m.useEffect(()=>{v()},[e,v]);const y=w=>{o(w),a(w),c(w),d(w)},b=w=>{const S=w.details[0].validationErrors;S.includes(Hme)?a(!0):a(!1),S.includes(Vme)?c(!0):c(!1),S.includes(Wme)?d(!0):d(!1),S.includes(qme)||S.includes(Gme)?o(!0):o(!1),S.includes(Kme)?f(!0):f(!1)};return x(ve,{children:[x(Yme,{variant:"body2","data-loading":!0,children:["Please set a strong password",l(Qu,{tooltip:RL})]}),x(Xme,{style:{...n},children:[x(Jme,{children:[l(Ns,{children:l(se,{variant:"body2","data-loading":!0,children:"Length"})}),l(Ns,{children:l(se,{variant:"body2","data-loading":!0,children:"Casing"})}),l(Ns,{children:l(se,{variant:"body2","data-loading":!0,children:"Number"})}),l(Ns,{children:l(se,{variant:"body2","data-loading":!0,children:"Symbol"})})]}),l(Qme,{}),x(Zme,{children:[l(Ns,{children:l(Qm,{error:u,"data-loading":!0})}),l(Ns,{children:l(Qm,{error:r,"data-loading":!0})})," ",l(Ns,{children:l(Qm,{error:i,"data-loading":!0})}),l(Ns,{children:l(Qm,{error:s,"data-loading":!0})})]}),l(q,{condition:p,show:l(ege,{severity:"error",children:"You may not repeat three characters in a row."})})]})]})};var VE={},tge=En;Object.defineProperty(VE,"__esModule",{value:!0});var PL=VE.default=void 0,nge=tge(Tn()),rge=kn,oge=(0,nge.default)((0,rge.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");PL=VE.default=oge;const ige=C("div")(({theme:e})=>({position:"relative",paddingTop:e.spacing(.5)})),age=C(se,{shouldForwardProp:e=>e!=="matchingPasswords"})(({theme:e,matchingPasswords:t})=>({position:"absolute",bottom:"-8px",display:"flex",alignItems:"center",color:t?e.palette.primary.main:e.palette.error.main})),sge=C(PL)(({theme:e})=>({marginRight:"5px"})),IL=({started:e,matchingPasswords:t})=>l(ige,{children:l(q,{condition:e,show:x(age,{variant:"body2","data-loading":!0,matchingPasswords:t,children:[l(sge,{})," ",l(q,{condition:t,show:l(se,{children:" Passwords match"}),elseShow:l(se,{children:" Passwords do not match"})})]})})}),lge=C("form")(({theme:e})=>({display:"flex",flexDirection:"column",position:"relative","& > *":{marginTop:`${e.spacing(1)} !important`,marginBottom:`${e.spacing(1)} !important`}})),cge=C(Ve)(({theme:e})=>({width:"150px",margin:e.spacing(2,"auto"),display:"block"})),OL=({onSubmit:e})=>{const[t,n]=m.useState(""),[r,o]=m.useState(!1),[i,a]=m.useState(""),[s,c]=m.useState(!1),[u,d]=m.useState(!1),p=s&&u,f=m.useCallback(d,[d]);return m.useEffect(()=>{t||d(!1),c(t===i)},[t,i]),x(lge,{onSubmit:v=>{v.preventDefault(),p&&e(t)},children:[l(Zu,{placeholder:"Password",value:t||"",onChange:v=>n(v.target.value),onFocus:()=>o(!0),autoComplete:"new-password","data-loading":!0}),l(Zu,{value:i||"",placeholder:"Confirm password",onChange:v=>a(v.target.value),autoComplete:"new-password","data-loading":!0}),l(q,{condition:r,show:l(_L,{password:t,callback:f,style:{marginBottom:"1rem"}})}),l(IL,{started:!!(t&&i),matchingPasswords:s}),l(cge,{variant:"contained",color:"primary",type:"submit","data-loading":!0,disabled:!p,children:"Submit"})]})},$L=()=>{const{authDetails:e}=Rd(),{classes:t}=$h(),n=(e==null?void 0:e.defaultHidden)===!0,{secret:r}=kL();return x("div",{className:Pi(t.contentSpacingY,t.flexColumn,t.itemsCenter),children:[l(se,{variant:"h2",className:t.title,children:"Invalid token"}),l(q,{condition:n,show:x(ve,{children:[l(se,{variant:"subtitle1",children:"Your instance does not support password authentication. Use correct work email to access your account."}),l(Ve,{variant:"contained",color:"primary",component:hn,to:"/login",children:"Login"})]}),elseShow:l(q,{condition:!!r,show:l(se,{variant:"subtitle1",children:"Provided invite link is invalid or expired. Please request a new URL in order to create your account."}),elseShow:x(ve,{children:[l(se,{variant:"subtitle1",children:"Your token has either been used to reset your password, or it has expired. Please request a new reset password URL in order to reset your password."}),l(Ve,{variant:"contained",color:"primary",component:hn,to:"/forgotten-password","data-testid":Cie,children:"Reset password"})]})})})]})},J5=({children:e,loading:t,title:n})=>{const r=C1(t||!1);return l("div",{ref:r,children:l(I1,{showMenu:!1,BannerComponent:l(SL,{title:"Unleash"}),children:x(Le,{sx:{width:["100%","350px"]},children:[l(q,{condition:!!n,show:l(se,{component:"h2",sx:{fontSize:o=>o.fontSizes.mainHeader,marginBottom:2,textAlign:"center",fontWeight:o=>o.fontWeight.bold},children:n})}),e]})})})},NL=()=>x(tn,{severity:"error","data-loading":!0,children:[l(wv,{children:"Unable to reset password"}),"Something went wrong when attempting to update your password. This could be due to unstable internet connectivity. If retrying the request does not work, please try again later."]}),uge=()=>{var P,_;const{authDetails:e}=Rd(),{setToastApiError:t}=$t(),n=gt(),[r,o]=m.useState(!1),[i,a]=m.useState(""),[s,c]=m.useState(""),{token:u,data:d,loading:p,isValidToken:f}=TL(),{secret:h,loading:g,isValid:v}=kL(),{addUser:y,loading:b}=Ume(),{resetPassword:w,loading:S}=AL(),k=(e==null?void 0:e.defaultHidden)===!0,A=async I=>{try{(await y(h,{name:s,email:i,password:I})).status===kle?n("/login?invited=true"):t("Couldn't create user. Check if your invite link is valid.")}catch($){t(ht($))}},T=async I=>{try{(await w({token:u,password:I})).status===Mh?n("/login?reset=true"):o(!0)}catch{o(!0)}},R=I=>{v?A(I):T(I)};return!f&&!v?l(J5,{loading:p||g,children:l($L,{})}):x(J5,{loading:p||g||b||S,title:k?"Connect your account and start your journey":"Enter your personal details and start your journey",children:[l(q,{condition:d==null?void 0:d.createdBy,show:x(se,{variant:"body1","data-loading":!0,sx:{textAlign:"center",mb:2},children:[d==null?void 0:d.createdBy,l("br",{})," has invited you to join Unleash."]})}),x(se,{color:"text.secondary",children:["We suggest using"," ",l(se,{component:"strong",fontWeight:"bold",children:"the email you use for work"}),"."]}),l(q,{condition:!!((P=e==null?void 0:e.options)!=null&&P.length),show:l(Le,{sx:{mt:2},children:l(HE,{options:e==null?void 0:e.options})})}),l(q,{condition:!!((_=e==null?void 0:e.options)!=null&&_.length)&&!k,show:l($1,{text:"or sign-up with an email address","data-loading":!0})}),l(q,{condition:!k,show:x(ve,{children:[l(q,{condition:d==null?void 0:d.email,show:()=>l(se,{"data-loading":!0,variant:"body1",sx:{my:1},children:"Your username is"})}),l(wn,{"data-loading":!0,type:"email",value:f?(d==null?void 0:d.email)||"":i,id:"email",label:"Email",variant:"outlined",size:"small",sx:{my:1},disabled:f,fullWidth:!0,required:!0,onChange:I=>{f||a(I.target.value)}}),l(q,{condition:!!v,show:()=>l(wn,{"data-loading":!0,value:s,id:"username",label:"Full name",variant:"outlined",size:"small",sx:{my:1},fullWidth:!0,required:!0,onChange:I=>{c(I.target.value)}})}),l(se,{variant:"body1","data-loading":!0,sx:{mt:2},children:"Set a password for your account."}),l(q,{condition:r&&f,show:l(NL,{})}),l(OL,{onSubmit:R})]})})]})},dge=C("div")(({theme:e})=>({width:"350px",maxWidth:"350px",[e.breakpoints.down("sm")]:{width:"100%"}})),pge=C(se)(({theme:e})=>({fontWeight:"bold",fontSize:e.spacing(2.5),marginBottom:e.spacing(2)})),fge=()=>{const{token:e,loading:t,isValidToken:n}=TL(),{resetPassword:r,loading:o}=AL(),{authDetails:i}=Rd(),a=C1(t||o),s=gt(),[c,u]=m.useState(!1),d=(i==null?void 0:i.defaultHidden)===!0;return l("div",{ref:a,children:l(I1,{children:l(dge,{children:l(q,{condition:!n||d,show:l($L,{}),elseShow:x(ve,{children:[l(pge,{variant:"h2","data-loading":!0,children:"Reset password"}),l(q,{condition:c,show:l(NL,{})}),l(OL,{onSubmit:async f=>{try{(await r({token:e,password:f})).status===Mh?(s("/login?reset=true"),u(!1)):u(!0)}catch{u(!0)}}})]})})})})})},hge=C("div")(({theme:e})=>({...p1,...kN,width:"350px",[e.breakpoints.down("sm")]:{width:"100%"}})),mge=C("strong")(({theme:e})=>({display:"block",margin:e.spacing(1,0)})),gge=C(Ve)(({theme:e})=>({width:"150px",margin:e.spacing(2,"auto")})),vge=C("h2")(({theme:e})=>({...Joe(e),...EN})),yge=C("form")(({theme:e})=>({...p1(e),...kN})),bge=C(se)(({theme:e})=>({...EN})),wge=()=>{const[e,t]=m.useState(""),[n,r]=m.useState(!1),[o,i]=m.useState(!1),[a,s]=m.useState(""),c=C1(o);return l(I1,{children:x(hge,{ref:c,children:[l(vge,{"data-loading":!0,children:"Forgotten password"}),l(q,{condition:n,show:x(tn,{severity:"success","data-loading":!0,children:[l(wv,{children:"Attempted to send email"}),"We've attempted to send a reset password email to:",l(mge,{children:a}),"If you did not receive an email, please verify that you typed in the correct email, and contact your administrator to make sure that you are in the system."]})}),x(yge,{onSubmit:async d=>{d.preventDefault(),i(!0),s(e);const p=Bt("auth/reset/password-email");await fetch(p,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify({email:e})}),r(!0),i(!1)},children:[l(bge,{variant:"body1","data-loading":!0,children:"Please provide your email address. If it exists in the system we'll send a new reset link."}),l(wn,{variant:"outlined",size:"small",placeholder:"email",type:"email","data-loading":!0,"data-testid":xie,value:e,onChange:d=>{t(d.target.value)}}),l(gge,{variant:"contained",type:"submit","data-loading":!0,color:"primary",disabled:o,children:l(q,{condition:!n,show:l("span",{children:"Submit"}),elseShow:l("span",{children:"Try again"})})}),l($1,{text:"Or log in"}),l(Ve,{type:"submit","data-loading":!0,variant:"outlined",disabled:o,component:hn,to:"/login",sx:d=>({width:"150px",margin:d.spacing(2,"auto")}),children:"Log in"})]})]})})};var GE={},Sge=En;Object.defineProperty(GE,"__esModule",{value:!0});var qE=GE.default=void 0,xge=Sge(Tn()),Cge=kn,Ege=(0,xge.default)((0,Cge.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");qE=GE.default=Ege;const Tge=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Yn({propagateErrors:!0}),{setToastData:o,setToastApiError:i}=$t(),{trackEvent:a}=Dr(),s=m.useCallback(async u=>{const d=`api/admin/projects/${u}/favorites`,p=t(d,{method:"POST"},"addFavoriteProject");try{await e(p.caller,p.id),o({title:"Project added to favorites",type:"success"}),a("favorite",{props:{eventType:"project favorited"}})}catch(f){i(ht(f))}},[t,e]),c=m.useCallback(async u=>{const d=`api/admin/projects/${u}/favorites`,p=t(d,{method:"DELETE"},"removeFavoriteProject");try{await e(p.caller,p.id),o({title:"Project removed from favorites",type:"success"}),a("favorite",{props:{eventType:"project unfavorited"}})}catch(f){i(ht(f))}},[t,e]);return{favorite:s,unfavorite:c,errors:n,loading:r}},kge=({isFavorite:e,size:t="large",...n})=>l(Cd,{title:e?"Remove from favorites":"Add to favorites",children:l(Ht,{size:t,"data-loading":!0,...n,children:l(q,{condition:e,show:l(gE,{color:"primary",sx:{fontSize:r=>t==="medium"?r.spacing(2):r.spacing(3)}}),elseShow:l(vE,{color:"primary",sx:{fontSize:r=>t==="medium"?r.spacing(2):r.spacing(3)}})})})}),Wh=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Yn({propagateErrors:!0});return{createProject:async T=>{const P=t("api/admin/projects",{method:"POST",body:JSON.stringify(T)});try{return await e(P.caller,P.id)}catch(_){throw _}},validateId:async T=>{const P=t("api/admin/projects/validate",{method:"POST",body:JSON.stringify({id:T})});try{return await e(P.caller,P.id)}catch(_){throw _}},editProject:async(T,R)=>{const P=`api/admin/projects/${T}`,_=t(P,{method:"PUT",body:JSON.stringify(R)});try{return await e(_.caller,_.id)}catch(I){throw I}},deleteProject:async T=>{const R=`api/admin/projects/${T}`,P=t(R,{method:"DELETE"});try{return await e(P.caller,P.id)}catch(_){throw _}},addEnvironmentToProject:async(T,R)=>{const P=`api/admin/projects/${T}/environments`,_=t(P,{method:"POST",body:JSON.stringify({environment:R})});try{return await e(_.caller,_.id)}catch(I){throw I}},removeEnvironmentFromProject:async(T,R)=>{const P=`api/admin/projects/${T}/environments/${R}`,_=t(P,{method:"DELETE"});try{return await e(_.caller,_.id)}catch(I){throw I}},addAccessToProject:async(T,R,P)=>{const _=`api/admin/projects/${T}/role/${R}/access`,I=t(_,{method:"POST",body:JSON.stringify(P)});try{return await e(I.caller,I.id)}catch($){throw $}},removeUserFromRole:async(T,R,P)=>{const _=`api/admin/projects/${T}/users/${P}/roles/${R}`,I=t(_,{method:"DELETE"});try{return await e(I.caller,I.id)}catch($){throw $}},removeGroupFromRole:async(T,R,P)=>{const _=`api/admin/projects/${T}/groups/${P}/roles/${R}`,I=t(_,{method:"DELETE"});try{return await e(I.caller,I.id)}catch($){throw $}},changeUserRole:(T,R,P)=>{const _=`api/admin/projects/${T}/users/${P}/roles/${R}`,I=t(_,{method:"PUT"});return e(I.caller,I.id)},changeGroupRole:(T,R,P)=>{const _=`api/admin/projects/${T}/groups/${P}/roles/${R}`,I=t(_,{method:"PUT"});return e(I.caller,I.id)},archiveFeatures:async(T,R)=>{const P=`api/admin/projects/${T}/archive`,_=t(P,{method:"POST",body:JSON.stringify({features:R})});return e(_.caller,_.id)},reviveFeatures:async(T,R)=>{const P=`api/admin/projects/${T}/revive`,_=t(P,{method:"POST",body:JSON.stringify({features:R})});return e(_.caller,_.id)},staleFeatures:async(T,R,P=!0)=>{const _={features:R,stale:P},I=`api/admin/projects/${T}/stale`,$=t(I,{method:"POST",body:JSON.stringify(_)});return e($.caller,$.id)},deleteFeature:async T=>{const R=`api/admin/archive/${T}`,P=t(R,{method:"DELETE"});return e(P.caller,P.id)},deleteFeatures:async(T,R)=>{const P=`api/admin/projects/${T}/delete`,_=t(P,{method:"POST",body:JSON.stringify({features:R})});return e(_.caller,_.id)},searchProjectUser:async T=>{const R=`api/admin/user-admin/search?q=${T}`,P=t(R,{method:"GET"});try{return await e(P.caller,P.id)}catch(_){throw _}},updateDefaultStrategy:async(T,R,P)=>{const _=`api/admin/projects/${T}/environments/${R}/default-strategy`,I=t(_,{method:"POST",body:JSON.stringify(P)});return e(I.caller,I.id)},errors:n,loading:r}},Age=({open:e,onClose:t,project:n,onSuccess:r})=>{const{deleteProject:o}=Wh(),{refetch:i}=Qa(),{setToastData:a,setToastApiError:s}=$t();return l(gr,{open:e,onClick:async u=>{u.preventDefault();try{await o(n),i(),a({title:"Deleted project",type:"success",text:"Successfully deleted project"}),r==null||r()}catch(d){s(ht(d))}t==null||t()},onClose:t,title:"Really delete project"})},Rge=e=>m.createElement("svg",{width:88,height:40,viewBox:"0 0 88 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("rect",{width:9,height:39,fill:"#635DC5"}),m.createElement("rect",{x:13,width:10,height:39,fill:"#635DC5"}),m.createElement("rect",{x:27,y:6,width:9,height:33,fill:"#635DC5"}),m.createElement("rect",{x:40,y:12,width:9,height:27,fill:"#635DC5"}),m.createElement("rect",{x:52,y:15,width:9,height:24,fill:"#635DC5"}),m.createElement("rect",{x:65.0752,y:15.2578,width:9.2957,height:23.9101,fill:"#635DC5"}),m.createElement("rect",{x:78.355,y:19.0352,width:9.2957,height:20.1348,fill:"#635DC5"})),_ge=C(G6)(({theme:e})=>({padding:e.spacing(1,2,2,2),width:"220px",height:"204px",display:"flex",flexDirection:"column",justifyContent:"space-between",margin:e.spacing(1),boxShadow:"none",border:`1px solid ${e.palette.divider}`,[e.breakpoints.down("sm")]:{justifyContent:"center"},"&:hover":{transition:"background-color 0.2s ease-in-out",backgroundColor:e.palette.neutral.light}})),Pge=C("div")(()=>({...Ac,width:"100%"})),Ige=C("h2")(({theme:e})=>({fontWeight:"normal",fontSize:e.fontSizes.bodySize,lineClamp:2,display:"-webkit-box",boxOrient:"vertical",textOverflow:"ellipsis",overflow:"hidden",alignItems:"flex-start"})),Oge=C(Le)(()=>({...Ac,marginRight:"auto"})),$ge=C(Ui)(({theme:e})=>({color:e.palette.neutral.main,marginRight:e.spacing(1)})),Nge=C(go)(({theme:e})=>({color:e.palette.neutral.main,marginRight:e.spacing(1)})),Lge=C(Rge)(({theme:e})=>({margin:e.spacing(2,"auto"),width:"80px",display:"block",fill:"red"})),Mge=C("div")(({theme:e})=>({display:"flex",justifyContent:"space-between",fontSize:e.fontSizes.smallerBody})),Vb=C("div")(()=>({textAlign:"center"})),Gb=C("p")(({theme:e})=>({color:e.palette.primary.dark,fontWeight:"bold"})),Q5=({name:e,featureCount:t,health:n,memberCount:r,onHover:o,id:i,isFavorite:a=!1})=>{const{hasAccess:s}=m.useContext(yo),{isOss:c}=Ot(),[u,d]=m.useState(null),[p,f]=m.useState(!1),h=gt(),{favorite:g,unfavorite:v}=Tge(),{refetch:y}=Qa(),b=k=>{k.preventDefault(),d(k.currentTarget)},w=s(Ole,i)&&i!==Lg;return x(_ge,{onMouseEnter:o,children:[x(Pge,{"data-loading":!0,children:[x(Oge,{children:[l(kge,{onClick:async k=>{k.preventDefault(),a?await v(i):await g(i),y()},isFavorite:a,size:"medium",sx:{ml:-1}}),l(Ige,{children:e})]}),l(Ir,{style:{transform:"translateX(7px)"},permission:ax,hidden:c(),projectId:i,"data-loading":!0,onClick:b,tooltipProps:{title:"Options"},children:l(qE,{})}),x(V2,{id:"project-card-menu",open:!!u,anchorEl:u,style:{top:0,left:-100},onClick:k=>{k.preventDefault()},onClose:k=>{k.preventDefault(),d(null)},children:[x(ja,{onClick:k=>{k.preventDefault(),h(qde(i))},children:[l($ge,{}),"Edit project"]}),x(ja,{onClick:k=>{k.preventDefault(),f(!0)},disabled:!w,children:[l(Nge,{}),i===Lg&&!w?"You can't delete the default project":"Delete project"]})]})]}),l("div",{"data-loading":!0,children:l(Lge,{})}),x(Mge,{children:[x(Vb,{children:[l(Gb,{"data-loading":!0,children:t}),l("p",{"data-loading":!0,children:"toggles"})]}),x(Vb,{children:[x(Gb,{"data-loading":!0,children:[n,"%"]}),l("p",{"data-loading":!0,children:"health"})]}),l(q,{condition:i!==Lg,show:x(Vb,{children:[l(Gb,{"data-loading":!0,children:r}),l("p",{"data-loading":!0,children:"members"})]})})]}),l(Age,{project:i,open:p,onClose:()=>{d(null),f(!1)}})]})},Dge=[{id:"loading1",name:"loading1",memberCount:1,health:95,featureCount:4,createdAt:"",description:""},{id:"loading2",name:"loading2",memberCount:1,health:95,featureCount:4,createdAt:"",description:""},{id:"loading3",name:"loading3",memberCount:1,health:95,featureCount:4,createdAt:"",description:""},{id:"loading4",name:"loading4",memberCount:1,health:95,featureCount:4,createdAt:"",description:""}],LL=({Icon:e,onClick:t,maxWidth:n,disabled:r=!1,children:o,permission:i,environmentId:a,projectId:s,...c})=>{const u=or(`(max-width:${n})`);return l(q,{condition:u,show:l(Ir,{disabled:r,onClick:t,permission:i,projectId:s,environmentId:a,"data-loading":!0,...c,children:l(e,{})}),elseShow:l(hi,{onClick:t,permission:i,projectId:s,color:"primary",variant:"contained",disabled:r,environmentId:a,"data-loading":!0,...c,children:o})})},Bge=({className:e,onClick:t,text:n,...r})=>l(tn,{className:e||"",action:l(Ve,{color:"inherit",size:"small",onClick:t,children:"TRY AGAIN"}),severity:"error",...r,children:n}),ML=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M11.2608 0.811331C11.6574 0.375976 12.3426 0.375977 12.7392 0.811332L14.0529 2.25322C14.316 2.54202 14.7233 2.65114 15.0955 2.53259L16.9542 1.94073C17.5154 1.76203 18.1087 2.10458 18.2345 2.67993L18.6513 4.58549C18.7347 4.96716 19.0328 5.26527 19.4145 5.34875L21.3201 5.7655C21.8954 5.89133 22.238 6.48465 22.0593 7.04583L21.4674 8.90447C21.3489 9.27675 21.458 9.68397 21.7468 9.9471L23.1887 11.2608C23.624 11.6574 23.624 12.3426 23.1887 12.7392L21.7468 14.0529C21.458 14.316 21.3489 14.7233 21.4674 15.0955L22.0593 16.9542C22.238 17.5154 21.8954 18.1087 21.3201 18.2345L19.4145 18.6513C19.0328 18.7347 18.7347 19.0328 18.6513 19.4145L18.2345 21.3201C18.1087 21.8954 17.5154 22.238 16.9542 22.0593L15.0955 21.4674C14.7233 21.3489 14.316 21.458 14.0529 21.7468L12.7392 23.1887C12.3426 23.624 11.6574 23.624 11.2608 23.1887L9.9471 21.7468C9.68397 21.458 9.27675 21.3489 8.90447 21.4674L7.04583 22.0593C6.48465 22.238 5.89133 21.8954 5.7655 21.3201L5.34875 19.4145C5.26527 19.0328 4.96716 18.7347 4.58549 18.6513L2.67993 18.2345C2.10458 18.1087 1.76203 17.5154 1.94073 16.9542L2.53259 15.0955C2.65114 14.7233 2.54202 14.316 2.25322 14.0529L0.811331 12.7392C0.375976 12.3426 0.375977 11.6574 0.811332 11.2608L2.25322 9.9471C2.54202 9.68397 2.65114 9.27675 2.53259 8.90447L1.94073 7.04583C1.76203 6.48465 2.10458 5.89133 2.67993 5.7655L4.58549 5.34875C4.96716 5.26527 5.26527 4.96716 5.34875 4.58549L5.7655 2.67993C5.89133 2.10458 6.48465 1.76203 7.04583 1.94073L8.90447 2.53259C9.27675 2.65114 9.68397 2.54202 9.9471 2.25322L11.2608 0.811331Z",fill:"#1A4049"}),m.createElement("path",{d:"M10.4351 7.3042H7.30469V16.6955H16.696V7.3042H13.5656V13.5651H10.4351V7.3042Z",fill:"white"}),m.createElement("path",{d:"M13.5664 13.5649H16.6968V16.6954H13.5664V13.5649Z",fill:"#817AFE"})),DL=e=>m.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.739.811a1 1 0 0 0-1.479 0L9.947 2.253a1 1 0 0 1-1.043.28L7.045 1.94a1 1 0 0 0-1.28.739l-.417 1.906a1 1 0 0 1-.763.763l-1.906.417a1 1 0 0 0-.739 1.28l.592 1.859a1 1 0 0 1-.28 1.042L.812 11.261a1 1 0 0 0 0 1.478l1.442 1.314a1 1 0 0 1 .28 1.043l-.593 1.858a1 1 0 0 0 .74 1.28l1.905.417a1 1 0 0 1 .763.764l.417 1.905a1 1 0 0 0 1.28.74l1.859-.592a1 1 0 0 1 1.043.279l1.313 1.442a1 1 0 0 0 1.479 0l1.313-1.442a1 1 0 0 1 1.043-.28l1.859.592a1 1 0 0 0 1.28-.739l.417-1.905a1 1 0 0 1 .763-.764l1.906-.416a1 1 0 0 0 .739-1.28l-.592-1.86a1 1 0 0 1 .28-1.042l1.441-1.314a1 1 0 0 0 0-1.478l-1.442-1.314a1 1 0 0 1-.279-1.042l.592-1.86a1 1 0 0 0-.74-1.28l-1.905-.416a1 1 0 0 1-.763-.763l-.417-1.906a1 1 0 0 0-1.28-.74l-1.859.593a1 1 0 0 1-1.043-.28L12.74.811ZM7 7h3.434v6.565h3.13V7h3.436v10H7V7Z",fill:"#E2E1F5"}),m.createElement("path",{d:"M13.565 13.565H17V17h-3.435v-3.435Z",fill:"#817AFE"})),Fge=C(Le,{shouldForwardProp:e=>e!=="tooltip"})(({theme:e,tooltip:t})=>({display:"flex",flexDirection:"column",alignItems:t?"start":"center",textAlign:t?"left":"center",backgroundColor:t?"transparent":e.palette.background.elevation2,borderRadius:t?0:e.shape.borderRadiusLarge,padding:t?e.spacing(1,.5):e.spacing(7.5,1)})),zge=C(se)(({theme:e})=>({display:"inline-flex",alignItems:"center",fontWeight:e.fontWeight.bold,gap:e.spacing(1)})),Z5=C("div",{shouldForwardProp:e=>e!=="tooltip"})(({theme:e,tooltip:t})=>({margin:t?e.spacing(1,0):e.spacing(3,0,5,0)})),qb=C(se)(({theme:e})=>({fontSize:e.fontSizes.smallBody})),eP=C("div")(()=>({display:"flex"})),tP=C(Vr)(({theme:e})=>({fontSize:e.fontSizes.smallBody})),jge={"adding-new-projects":{plan:"Pro & Enterprise",url:"",label:"Adding new projects"},access:{plan:"Pro & Enterprise",url:"https://docs.getunleash.io/reference/rbac",label:"Access"},"change-requests":{plan:"Enterprise",url:"https://docs.getunleash.io/reference/change-requests",label:"Change Requests"},segments:{plan:"Pro & Enterprise",url:"https://docs.getunleash.io/reference/segments",label:"Segments"}},Uge="https://www.getunleash.io/plans",Wge=({feature:e,tooltip:t})=>{const{url:n,plan:r,label:o}=jge[e],i=Dr(),a=()=>{i.trackEvent("upgrade_plan_clicked",{props:{feature:o}})},c=x(ve,{children:[n?l(tP,{href:n,target:"_blank",rel:"noreferrer",children:o}):o," is a feature available for the"," ",l("strong",{children:r})," ",r==="Pro & Enterprise"?"plans":"plan"]}),u=`${Uge}?feature=${e}`;return x(Fge,{tooltip:t,children:[x(zge,{children:[l(Lh,{darkmode:l(DL,{}),lightmode:l(ML,{})}),`${r} feature`]}),l(q,{condition:!!t,show:x(ve,{children:[l(Z5,{tooltip:!0,children:x(qb,{children:[c,". You need to upgrade your plan if you want to use it"]})}),l(eP,{children:l(tP,{href:u,target:"_blank",rel:"noreferrer",onClick:a,children:"Upgrade now"})})]}),elseShow:x(ve,{children:[x(Z5,{children:[l(qb,{children:c}),l(qb,{children:"You need to upgrade your plan if you want to use it"})]}),l(eP,{children:l(Ve,{variant:"outlined",href:u,target:"_blank",rel:"noreferrer",onClick:a,children:"Upgrade now"})})]})})]})},Hge=C("div")(({theme:e})=>({display:"flex",flexWrap:"wrap",[e.breakpoints.down("sm")]:{justifyContent:"center"}})),Vge=C(Bge)(({theme:e})=>({maxWidth:"400px",marginBottom:e.spacing(2)})),Gge=C(hn)(({theme:e})=>({color:"inherit",textDecoration:"none",border:"none",padding:"0",background:"transparent",fontFamily:e.typography.fontFamily,pointer:"cursor"})),qge="NAVIGATE_TO_CREATE_PROJECT";function Kge(e,t){return e?{disabled:!0,tooltip:{titleComponent:l(Wge,{feature:"adding-new-projects",tooltip:!0}),sx:{maxWidth:"320px"},variant:"custom"},endIcon:l(Lh,{darkmode:l(DL,{}),lightmode:l(ML,{})})}:t?{tooltip:{title:"Click to create a new project"},disabled:!1}:{tooltip:{title:"You do not have permission to create new projects"},disabled:!0}}const Yge=()=>{const{hasAccess:e}=m.useContext(yo),t=gt(),{projects:n,loading:r,error:o,refetch:i}=Qa(),[a,s]=m.useState({}),{isOss:c}=Ot(),u=or(ml.breakpoints.down("md")),[d,p]=md(),[f,h]=m.useState(d.get("search")||"");m.useEffect(()=>{const S={};f&&(S.search=f),p(S,{replace:!0})},[f,p]);const g=m.useMemo(()=>{const S=RE(f,"i");return(f?n.filter(k=>S.test(k.name)):n).sort((k,A)=>k!=null&&k.favorite&&!(A!=null&&A.favorite)?-1:!(k!=null&&k.favorite)&&(A!=null&&A.favorite)?1:0)},[n,f]),v=S=>{if(a[S])return;const{KEY:k,fetcher:A}=J9(S);io(k,A),s(T=>({...T,[S]:!0}))},y=Kge(c(),e(x5)),b=()=>l(Vge,{onClick:i,text:"Error fetching projects"});let w=g.length<n.length?`${g.length} of ${n.length}`:n.length;return x(Or,{isLoading:r,header:l(Dn,{title:`Projects (${w})`,actions:x(ve,{children:[l(q,{condition:!u,show:x(ve,{children:[l(vo,{initialValue:f,onChange:h}),l(Dn.Divider,{})]})}),l(LL,{Icon:ca,endIcon:y.endIcon,onClick:()=>t("/projects/create"),maxWidth:"700px",permission:x5,disabled:y.disabled,tooltipProps:y.tooltip,"data-testid":qge,children:"New project"})]}),children:l(q,{condition:u,show:l(vo,{initialValue:f,onChange:h})})}),children:[l(q,{condition:o,show:b()}),l(Hge,{children:l(q,{condition:g.length<1&&!r,show:l(q,{condition:(f==null?void 0:f.length)>0,show:x(Kn,{children:["No projects found matching “",f,"”"]}),elseShow:l(Kn,{children:"No projects available."})}),elseShow:l(q,{condition:r,show:()=>Dge.map(S=>l(Q5,{"data-loading":!0,onHover:()=>{},name:S.name,id:S.id,memberCount:2,health:95,featureCount:4},S.id)),elseShow:()=>g.map(S=>l(Gge,{to:`/projects/${S.id}`,children:l(Q5,{onHover:()=>v(S.id),name:S.name,memberCount:S.memberCount??0,health:S.health,id:S.id,featureCount:S.featureCount,isFavorite:S.favorite})},S.id))})})})]})},Xge=()=>l(kc,{to:"/archive",replace:!0}),_d=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Yn({propagateErrors:!0});return{validateEnvName:async f=>{const g=t("api/admin/environments/validate",{method:"POST",body:JSON.stringify({name:f})},"validateEnvName");try{return await e(g.caller,g.id,!1)}catch(v){throw v}},createEnvironment:async f=>{const g=t("api/admin/environments",{method:"POST",body:JSON.stringify(f)},"createEnvironment");try{return await e(g.caller,g.id)}catch(v){throw v}},errors:n,loading:r,deleteEnvironment:async f=>{const h=`api/admin/environments/${f}`,g=t(h,{method:"DELETE"},"deleteEnvironment");try{return await e(g.caller,g.id)}catch(v){throw v}},updateEnvironment:async(f,h)=>{const g=`api/admin/environments/update/${f}`,v=t(g,{method:"PUT",body:JSON.stringify(h)},"updateEnvironment");try{return await e(v.caller,v.id)}catch(y){throw y}},cloneEnvironment:async(f,h)=>{const g=`api/admin/environments/${f}/clone`,v=t(g,{method:"POST",body:JSON.stringify(h)},"cloneEnvironment");return await e(v.caller,v.id)},changeSortOrder:async f=>{const g=t("api/admin/environments/sort-order",{method:"PUT",body:JSON.stringify(f)},"changeSortOrder");try{return await e(g.caller,g.id)}catch(v){throw v}},toggleEnvironmentOff:async f=>{const h=`api/admin/environments/${f}/off`,g=t(h,{method:"POST"},"toggleEnvironmentOff");try{return await e(g.caller,g.id)}catch(v){throw v}},toggleEnvironmentOn:async f=>{const h=`api/admin/environments/${f}/on`,g=t(h,{method:"POST"},"toggleEnvironmentOn");try{return await e(g.caller,g.id)}catch(v){throw v}}}},Jge=e=>e.reduce((t,n,r)=>(t[n.name]=r+1,t),{}),BL=(e="",t="development")=>{const[n,r]=m.useState(e),[o,i]=m.useState(t),[a,s]=m.useState({});m.useEffect(()=>{r(e)},[e]),m.useEffect(()=>{i(t)},[t]);const{validateEnvName:c}=_d();return{name:n,setName:r,type:o,setType:i,getEnvPayload:()=>({name:n,type:o}),validateEnvironmentName:async()=>{if(n.length===0)return s(f=>({...f,name:"Environment name can not be empty"})),!1;try{return await c(n),!0}catch(f){return s(h=>({...h,name:ht(f)})),!1}},clearErrors:()=>{s({})},errors:a}},Qge=As()(e=>({helperText:{position:"absolute",bottom:"-1rem",whiteSpace:"nowrap",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis"}})),Zge=C("div")({position:"relative"}),Sr=({label:e,placeholder:t,error:n,errorText:r,style:o,className:i,value:a,onChange:s,...c})=>{const{classes:u}=Qge();return l(Zge,{"data-loading":!0,children:l(wn,{size:"small",variant:"outlined",label:e,placeholder:t,error:n,helperText:r,style:o,className:i||"",value:a,onChange:s,FormHelperTextProps:{["data-testid"]:ON,title:r,classes:{root:u.helperText}},...c})})},eve=C(q2)({flexDirection:"row"}),nP=C("div")({display:"flex",flexDirection:"column"}),FL=({onChange:e,value:t})=>l(ks,{component:"fieldset",children:x(eve,{"data-loading":!0,value:t,onChange:e,children:[x(nP,{children:[l(Hr,{value:"development",label:"Development",control:l(nc,{})}),l(Hr,{value:"test",label:"Test",control:l(nc,{})})]}),x(nP,{children:[l(Hr,{value:"preproduction",label:"Pre production",control:l(nc,{})}),l(Hr,{value:"production",label:"Production",control:l(nc,{})})]})]})}),$v={FIX:"fix",VARIABLE:"variable"},Kb=e=>t=>t.flag?!!e.flags[t.flag]:t.configFlag?!!e[t.configFlag]:!0,tve=()=>{window.scrollTo(0,0)},bl=e=>e&&e.trim?e.trim():e,nve=e=>{const t=new Date(e);return eh(t,"yyyy-MM-dd")+"T"+eh(t,"HH:mm")},zL=e=>{const t=new Date(e);if(AE(t))return t},rve=e=>e/10;function JMe(e,t){if(e.length===0)return[];const n=e.reduce(({remainingPercentage:a,variableVariantCount:s},c)=>(c.weight&&c.weightType===$v.FIX?a-=Number(c.weight):s+=1,{remainingPercentage:a,variableVariantCount:s}),{remainingPercentage:t,variableVariantCount:0}),{remainingPercentage:r,variableVariantCount:o}=n;if(r<0)throw new Error("The traffic distribution total must equal 100%");if(!o)throw new Error("There must be at least one variable variant");const i=parseInt(String(r/o));return e.map(a=>(a.weightType!==$v.FIX&&(a.weight=i),a))}function QMe(e,t){if(e.length===0)return[];const{remainingPercentage:n,variableVariantCount:r}=e.reduce(({remainingPercentage:i,variableVariantCount:a},s)=>(s.weight&&s.weightType===$v.FIX?i-=Number(s.weight):a+=1,{remainingPercentage:i,variableVariantCount:a}),{remainingPercentage:t,variableVariantCount:0}),o=parseInt(String(n/r));return e.map(i=>(i.weightType!==$v.FIX&&(i.weight=o),i))}const ove=C("form")({display:"flex",flexDirection:"column",height:"100%"}),ive=C("h3")({fontWeight:"normal",marginTop:"0"}),ave=C("div")({maxWidth:"440px"}),rP=C("p")(({theme:e})=>({marginBottom:e.spacing(1)})),sve=C(Sr)(({theme:e})=>({width:"100%",marginBottom:e.spacing(2)})),lve=C("div")(({theme:e})=>({marginTop:"auto",display:"flex",justifyContent:"flex-end"})),cve=C(Ve)(({theme:e})=>({marginLeft:e.spacing(3)})),jL=({children:e,handleSubmit:t,handleCancel:n,name:r,type:o,setName:i,setType:a,validateEnvironmentName:s,errors:c,mode:u,clearErrors:d})=>x(ove,{onSubmit:t,children:[l(ive,{children:"Environment information"}),x(ave,{children:[l(rP,{children:"What is your environment name? (Can't be changed later)"}),l(sve,{label:"Environment name",value:r,onChange:p=>i(bl(p.target.value)),error:!!c.name,errorText:c.name,onFocus:()=>d(),onBlur:s,disabled:u==="Edit",autoFocus:!0}),l(rP,{children:"What type of environment do you want to create?"}),l(FL,{onChange:p=>a(p.currentTarget.value),value:o})]}),x(lve,{children:[e,l(cve,{onClick:n,children:"Cancel"})]})]}),uve=C("div")(({theme:e})=>({backgroundColor:e.palette.codebox,padding:e.spacing(2),borderRadius:e.shape.borderRadiusMedium,position:"relative",maxHeight:"500px",overflow:"auto"})),dve=C("pre")(({theme:e})=>({margin:0,wordBreak:"break-all",whiteSpace:"pre-wrap",color:e.palette.common.white,fontSize:e.fontSizes.smallBody})),pve=({text:e})=>l(uve,{children:l(dve,{children:e})}),fve="/static/unleashLogoIconDarkAlpha-de056a82.gif",hve=C("div")(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",backgroundColor:e.palette.background.paper})),mve=C("img")(({theme:e})=>({width:"100px",height:"100px"})),rh=()=>l(hve,{role:"alert","aria-label":"Loading",children:l(mve,{src:ea(fve),alt:""})});var gve=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}},vve=gve,oP={"text/plain":"Text","text/html":"Url",default:"Text"},yve="Copy to clipboard: #{key}, Enter";function bve(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function wve(e,t){var n,r,o,i,a,s,c=!1;t||(t={}),n=t.debug||!1;try{o=vve(),i=document.createRange(),a=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(d){if(d.stopPropagation(),t.format)if(d.preventDefault(),typeof d.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var p=oP[t.format]||oP.default;window.clipboardData.setData(p,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(s),i.selectNodeContents(s),a.addRange(i);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(p){n&&console.error("unable to copy using clipboardData: ",p),n&&console.error("falling back to prompt"),r=bve("message"in t?t.message:yve),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(i):a.removeAllRanges()),s&&document.body.removeChild(s),o()}return c}var Sve=wve;const UL=qr(Sve),xve=e=>m.createElement("svg",{width:48,height:50,viewBox:"0 0 48 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M0.5 0.000193412C11 2.00019 17 9 18 18C19 27 23.5 31.5 30.5 34C37.5 36.5 47.34 41.4 48 49.5L48 12.0012C48 5.37332 42.6309 0.000381623 36.003 0.000366343C24.1359 0.000338986 8.66406 -0.000263908 0.5 0.000193412Z",fill:"#6C65E5"})),WL="27.5rem",Cve=C("section",{shouldForwardProp:e=>e!=="modal"})(({theme:e,modal:t})=>({minHeight:t?"100vh":"80vh",borderRadius:t?0:e.spacing(2),width:"100%",display:"flex",margin:"0 auto",overflow:t?"unset":"hidden",[e.breakpoints.down(1100)]:{flexDirection:"column",minHeight:0}})),Eve=C("div")(({theme:e})=>Zoe),Tve=C("div")(({theme:e})=>({backgroundColor:e.palette.background.paper,display:"flex",flexDirection:"column",padding:e.spacing(6),flexGrow:1,[e.breakpoints.down("lg")]:{padding:e.spacing(4)},[e.breakpoints.down(1100)]:{width:"100%"},[e.breakpoints.down(500)]:{padding:e.spacing(4,2)}})),kve=C("h1")(({theme:e})=>({marginBottom:e.fontSizes.mainHeader,fontWeight:"normal"})),Ave=C(To)(({theme:e})=>({opacity:.3,marginBottom:e.spacing(.5)})),Rve=C("h2")(({theme:e})=>({color:e.palette.common.white,marginBottom:e.spacing(2),display:"flex",justifyContent:"space-between",alignItems:"center",fontWeight:e.fontWeight.bold,fontSize:e.fontSizes.bodySize})),_ve=C(h9)(({theme:e})=>({fill:e.palette.primary.contrastText})),Pve=C("div")(()=>({zIndex:1,position:"absolute",right:-3,top:-3})),Ive=C(xve)(()=>({width:"75px",height:"75px"})),Ove=C(Ht)(()=>({position:"absolute",zIndex:400,right:0})),$ve=C(lle)(({theme:e})=>({fill:e.palette.primary.contrastText})),Nve=C("aside")(({theme:e})=>({backgroundColor:e.palette.background.sidebar,padding:e.spacing(4),flexGrow:0,flexShrink:0,width:WL,[e.breakpoints.down(1100)]:{width:"100%",color:"red"},[e.breakpoints.down(500)]:{padding:e.spacing(4,2)}})),Lve=C("p")(({theme:e})=>({color:e.palette.common.white,zIndex:1,position:"relative"})),Mve=C("div")(({theme:e})=>({margin:e.spacing(3,0),display:"flex",alignItems:"center"})),Dve=C(dE)(({theme:e})=>({marginRight:e.spacing(1),color:e.palette.primary.contrastText})),Bve=C("a")(({theme:e})=>({color:e.palette.primary.contrastText,display:"block","&:hover":{textDecoration:"none"}})),Yr=({title:e,description:t,children:n,documentationLink:r,documentationLinkLabel:o,loading:i,modal:a,formatApiCode:s})=>{const{setToastData:c}=$t(),u=or("(max-width:1099px)");return x(Cve,{modal:a,children:[l(q,{condition:u,show:l(Eve,{children:l(Fve,{description:t,documentationLink:r,documentationLinkLabel:o})})}),x(Tve,{children:[l(q,{condition:i||!1,show:l(rh,{}),elseShow:x(ve,{children:[l(kve,{children:e}),n]})})," "]}),l(q,{condition:!u,show:x(HL,{description:t,documentationLink:r,documentationLinkLabel:o,children:[l(Ave,{}),x(Rve,{children:["API Command"," ",l(xt,{title:"Copy command",arrow:!0,children:l(Ht,{onClick:()=>{UL(s())?c({title:"Successfully copied the command",text:"The command should now be automatically copied to your clipboard",autoHideDuration:6e3,type:"success",show:!0}):c({title:"Could not copy the command",text:"Sorry, but we could not copy the command.",autoHideDuration:6e3,type:"error",show:!0})},size:"large",children:l(_ve,{})})})]}),l(pve,{text:s()})]})})]})},Fve=({description:e,documentationLink:t,documentationLinkLabel:n})=>{const[r,o]=m.useState(!1);return x(ve,{children:[l(Pve,{children:l(Ive,{})}),l(xt,{title:"Toggle help",arrow:!0,children:l(Ove,{onClick:()=>o(i=>!i),size:"large",children:l($ve,{})})}),l(z6,{in:r,timeout:500,children:l(HL,{description:e,documentationLink:t,documentationLinkLabel:n})})]})},HL=({description:e,children:t,documentationLink:n,documentationLinkLabel:r="Learn more"})=>x(Nve,{children:[l(Lve,{children:e}),x(Mve,{children:[l(Dve,{}),l(Bve,{href:n,rel:"noopener noreferrer",target:"_blank",children:r})]}),t]}),Pd=({name:e,...t})=>x(hi,{type:"submit",...t,children:["Create ",e]}),KE=(e={})=>{const t=()=>{const c=Bt("api/admin/permissions");return fetch(c,{method:"GET"}).then(Rn("Project permissions")).then(u=>u.json())},n="api/admin/permissions",{data:r,error:o}=An(n,t,e),[i,a]=m.useState(!o&&!r),s=()=>{io(n)};return m.useEffect(()=>{a(!o&&!r)},[r,o]),{permissions:(r==null?void 0:r.permissions)||{project:[],environments:[]},error:o,loading:i,refetch:s}},Ao=-1,Nv=50,zve=()=>{const{setToastApiError:e,setToastData:t}=$t(),{uiConfig:n}=Ot(),r=gt(),{environments:o}=Td(),i=o.length<Nv,{createEnvironment:a,loading:s}=_d(),{refetch:c}=KE(),{name:u,setName:d,type:p,setType:f,getEnvPayload:h,validateEnvironmentName:g,clearErrors:v,errors:y}=BL(),b=async k=>{if(k.preventDefault(),v(),await g()){const T=h();try{await a(T),c(),t({title:"Environment created",type:"success",confetti:!0}),r("/environments")}catch(R){e(ht(R))}}},w=()=>`curl --location --request POST '${n.unleashUrl}/api/admin/environments' \\
268
- --header 'Authorization: INSERT_API_KEY' \\
269
- --header 'Content-Type: application/json' \\
270
- --data-raw '${JSON.stringify(h(),void 0,2)}'`,S=()=>{r(Ao)};return l(q,{condition:i,show:l(Yr,{loading:s,title:"Create environment",description:`Environments allow you to manage your
271
- product lifecycle from local development
272
- through production. Your projects and
273
- feature toggles are accessible in all your
274
- environments, but they can take different
275
- configurations per environment. This means
276
- that you can enable a feature toggle in a
277
- development or test environment without
278
- enabling the feature toggle in the
279
- production environment.`,documentationLink:"https://docs.getunleash.io/reference/environments",documentationLinkLabel:"Environments documentation",formatApiCode:w,children:l(jL,{errors:y,handleSubmit:b,handleCancel:S,validateEnvironmentName:g,name:u,type:p,setName:d,setType:f,mode:"Create",clearErrors:v,children:l(Pd,{name:"environment",permission:fi})})}),elseShow:l(ve,{children:x(Or,{header:l(Dn,{title:"Create environment"}),children:[l(tn,{severity:"error",children:x("p",{children:["Currently Unleash does not support more than"," ",Nv," environments. If you need more please reach out."]})}),l("br",{}),l(Ve,{onClick:S,variant:"contained",color:"primary",children:"Go back"})]})})})},Ic=({...e})=>l(hi,{type:"submit",...e,children:"Save"}),jve={name:"",type:"",createdAt:"",sortOrder:0,enabled:!1,protected:!1},Uve=(e,t={})=>{const n=async()=>{const u=Bt(`api/admin/environments/${e}`);return fetch(u,{method:"GET"}).then(Rn("Environment data")).then(d=>d.json())},r=`api/admin/environments/${e}`,{data:o,error:i}=An(r,n,{...t}),[a,s]=m.useState(!i&&!o),c=()=>{io(r)};return m.useEffect(()=>{s(!i&&!o)},[o,i]),{environment:o||jve,error:i,loading:a,refetch:c,FEATURE_CACHE_KEY:r}},Wve=()=>{const{uiConfig:e}=Ot(),{setToastData:t,setToastApiError:n}=$t(),r=ir("id"),{environment:o}=Uve(r),{updateEnvironment:i}=_d(),a=gt(),{name:s,type:c,setName:u,setType:d,errors:p,clearErrors:f}=BL(o.name,o.type),{refetch:h}=KE(),g=()=>({type:c,sortOrder:o.sortOrder});return l(Yr,{title:"Edit environment",description:`Environments allow you to manage your
280
- product lifecycle from local development
281
- through production. Your projects and
282
- feature toggles are accessible in all your
283
- environments, but they can take different
284
- configurations per environment. This means
285
- that you can enable a feature toggle in a
286
- development or test environment without
287
- enabling the feature toggle in the
288
- production environment.`,documentationLink:"https://docs.getunleash.io/reference/environments",documentationLinkLabel:"Environments documentation",formatApiCode:()=>`curl --location --request PUT '${e.unleashUrl}/api/admin/environments/update/${r}' \\
289
- --header 'Authorization: INSERT_API_KEY' \\
290
- --header 'Content-Type: application/json' \\
291
- --data-raw '${JSON.stringify(g(),void 0,2)}'`,children:l(jL,{handleSubmit:async w=>{w.preventDefault();try{await i(r,g()),h(),a("/environments"),t({type:"success",title:"Successfully updated environment."})}catch(S){n(ht(S))}},handleCancel:()=>{a(Ao)},name:s,type:c,setName:u,setType:d,mode:"Edit",errors:p,clearErrors:f,children:l(Ic,{permission:fi})})})},N1=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Yn({propagateErrors:!0}),o="api/admin/context";return{createContext:async u=>{const p=t(o,{method:"POST",body:JSON.stringify(u)});try{return await e(p.caller,p.id)}catch(f){throw f}},validateContextName:async u=>{const d=`${o}/validate`,p=t(d,{method:"POST",body:JSON.stringify({name:u})});try{return await e(p.caller,p.id)}catch(f){throw f}},updateContext:async u=>{const d=`${o}/${u.name}`,p=t(d,{method:"PUT",body:JSON.stringify(u)});try{return await e(p.caller,p.id)}catch(f){throw f}},removeContext:async u=>{const d=`${o}/${u}`,p=t(d,{method:"DELETE"});try{return await e(p.caller,p.id)}catch(f){throw f}},errors:n,loading:r}},Hve=(e,t={})=>{const n=async()=>{const u=Bt(`api/admin/context/${e}`);return fetch(u,{method:"GET"}).then(Rn("Context data")).then(d=>d.json())},r=`api/admin/context/${e}`,{data:o,error:i}=An(r,n,{...t}),[a,s]=m.useState(!i&&!o),c=()=>{io(r)};return m.useEffect(()=>{s(!i&&!o)},[o,i]),{context:o||{name:"",description:"",legalValues:[],stickiness:!1},error:i,loading:a,refetch:c,FEATURE_CACHE_KEY:r}},Vve=C("li")(({theme:e})=>({display:"grid",lineHeight:1.25,gridTemplateColumns:"1fr auto",alignSelf:"start",alignItems:"start",gap:e.spacing(1),padding:e.spacing(1),background:e.palette.background.elevation2,borderRadius:e.shape.borderRadius,wordBreak:"break-word"})),Gve=C("div")(({theme:e})=>({fontSize:e.fontSizes.smallBody})),qve=C("div")(({theme:e})=>({fontSize:e.fontSizes.smallerBody,color:e.palette.neutral.main})),Kve=C("button")(({theme:e})=>({all:"unset",lineHeight:.1,paddingTop:"1px",display:"block",cursor:"pointer","& svg":{fontSize:e.fontSizes.bodySize,opacity:.5},"&:hover svg, &:focus-visible svg":{opacity:.75}})),Yve=({label:e,description:t,onRemove:n})=>x(Vve,{children:[x("div",{children:[l(Gve,{children:e}),l(q,{condition:!!t,show:()=>l(qve,{children:t})})]}),l(Kve,{onClick:n,children:l(Jse,{titleAccess:"Remove"})})]}),Xve=C("ul")(({theme:e})=>({listStyleType:"none",display:"flex",flexWrap:"wrap",gap:e.spacing(1),padding:0,margin:0,marginBottom:"1rem !important"})),Jve=Xve,Qve="Enter",Zve=C("form")({display:"flex",flexDirection:"column",height:"100%"}),eye=C("div")({maxWidth:"470px"}),Yb=C("p")(({theme:e})=>({marginBottom:e.spacing(1)})),iP=e=>({width:"100%",marginBottom:e.spacing(2)}),tye=C("div")(({theme:e})=>({display:"grid",gridTemplateColumns:"1fr auto",gap:e.spacing(1),marginBottom:e.spacing(2)})),nye=C("p")(({theme:e})=>({marginBottom:e.spacing(.5)})),rye=C("div")({display:"flex",alignItems:"center",marginLeft:"-9px"}),oye=C("div")({marginTop:"auto",display:"flex",justifyContent:"flex-end"}),iye=C(Ve)(({theme:e})=>({marginLeft:e.spacing(3)})),VL=({children:e,handleSubmit:t,onCancel:n,contextName:r,contextDesc:o,legalValues:i,stickiness:a,setContextName:s,setContextDesc:c,setLegalValues:u,setStickiness:d,errors:p,mode:f,validateContext:h,setErrors:g,clearErrors:v})=>{const[y,b]=m.useState(""),[w,S]=m.useState(""),[k,A]=m.useState(!1),T=w.trim()&&!y.trim(),R=i.some(M=>M.value.trim()===y.trim());m.useEffect(()=>{g(M=>({...M,tag:T?"Value cannot be empty":R?"Duplicate value":void 0}))},[g,T,R]);const P=M=>{M.preventDefault(),t(M)},_=M=>{M.key===Qve&&(M.preventDefault(),k?$():t(M))},I=(M,D)=>M.value.toLowerCase().localeCompare(D.value.toLowerCase()),$=()=>{const M={value:y.trim(),description:w.trim()};M.value&&!R&&(b(""),S(""),u(D=>[...D,M].sort(I)))},U=M=>{u(D=>D.filter(K=>K.value!==M.value))};return x(Zve,{onSubmit:P,children:[x(eye,{children:[l(Yb,{children:"What is your context name?"}),l(Sr,{sx:iP,label:"Context name",value:r,disabled:f==="Edit",onChange:M=>s(M.target.value.trim()),error:!!p.name,errorText:p.name,onFocus:()=>v("name"),onBlur:h,autoFocus:!0}),l(Yb,{children:"What is this context for?"}),l(wn,{sx:iP,label:"Context description (optional)",variant:"outlined",multiline:!0,maxRows:4,value:o,size:"small",onChange:M=>c(M.target.value)}),l(Yb,{children:"Which values do you want to allow?"}),x(tye,{children:[l(wn,{label:"Legal value (optional)",name:"value",sx:{gridColumn:1},value:y,error:!!p.tag,helperText:p.tag,variant:"outlined",size:"small",onChange:M=>b(M.target.value),onKeyPress:M=>_(M),onBlur:()=>A(!1),onFocus:()=>A(!0),inputProps:{maxLength:100}}),l(wn,{label:"Value description (optional)",sx:{gridColumn:1},value:w,variant:"outlined",size:"small",onChange:M=>S(M.target.value),onKeyPress:M=>_(M),onBlur:()=>A(!1),onFocus:()=>A(!0),inputProps:{maxLength:100}}),l(Ve,{sx:{gridColumn:2},startIcon:l(ca,{}),onClick:$,variant:"outlined",color:"primary",disabled:!y.trim()||R,children:"Add"})]}),l(Jve,{children:i.map(M=>l(Yve,{label:M.value,description:M.description,onRemove:()=>U(M)},M.value))}),l(nye,{children:"Custom stickiness"}),x("p",{children:["By enabling stickiness on this context field you can use it together with the flexible-rollout strategy. This will guarantee a consistent behavior for specific values of this context field. PS! Not all client SDK's support this feature yet!"," ",l(Vr,{href:"https://docs.getunleash.io/reference/stickiness",target:"_blank",rel:"noreferrer",children:"Read more"})]}),x(rye,{children:[l(Ya,{checked:a,value:a,onChange:()=>d(!a)}),l(se,{children:a?"On":"Off"})]})]}),x(oye,{children:[e,l(iye,{onClick:n,children:"Cancel"})]})]})},GL=(e="",t="",n=[],r=!1)=>{const[o,i]=m.useState(e),[a,s]=m.useState(t),[c,u]=m.useState(n),[d,p]=m.useState(r),[f,h]=m.useState({}),{validateContextName:g}=N1();return m.useEffect(()=>{i(e)},[e]),m.useEffect(()=>{s(t)},[t]),m.useEffect(()=>{u(n)},[n.length]),m.useEffect(()=>{p(r)},[r]),{contextName:o,contextDesc:a,legalValues:c,stickiness:d,setContextName:i,setContextDesc:s,setLegalValues:u,setStickiness:p,getContextPayload:()=>({name:o,description:a,legalValues:c,stickiness:d}),validateContext:async()=>{if(o.length===0)return h(w=>({...w,name:"Name can not be empty."})),!1;try{return await g(o),!0}catch(w){return h(S=>({...S,name:ht(w)})),!1}},setErrors:h,clearErrors:w=>{h(w?S=>({...S,[w]:void 0}):{})},errors:f}},aye=()=>{m.useEffect(()=>{tve()},[]);const{uiConfig:e}=Ot(),{setToastData:t,setToastApiError:n}=$t(),r=ir("name"),{context:o,refetch:i}=Hve(r),{updateContext:a,loading:s}=N1(),c=gt(),{contextName:u,contextDesc:d,legalValues:p,stickiness:f,setContextName:h,setContextDesc:g,setLegalValues:v,setStickiness:y,getContextPayload:b,clearErrors:w,setErrors:S,errors:k}=GL(o==null?void 0:o.name,o==null?void 0:o.description,o==null?void 0:o.legalValues,o==null?void 0:o.stickiness);return l(Yr,{loading:s,title:"Edit context",description:`Context fields are a basic building block used in Unleash to control roll-out.
292
- They can be used together with strategy constraints as part of the activation strategy evaluation.`,documentationLink:"https://docs.getunleash.io/reference/unleash-context#custom-context-fields",documentationLinkLabel:"Context fields documentation",formatApiCode:()=>`curl --location --request PUT '${e.unleashUrl}/api/admin/context/${r}' \\
293
- --header 'Authorization: INSERT_API_KEY' \\
294
- --header 'Content-Type: application/json' \\
295
- --data-raw '${JSON.stringify(b(),void 0,2)}'`,children:l(VL,{errors:k,handleSubmit:async P=>{P.preventDefault();const _=b();try{await a(_),i(),c("/context"),t({title:"Context information updated",type:"success"})}catch(I){n(ht(I))}},onCancel:()=>{c(Ao)},contextName:u,setContextName:h,contextDesc:d,setContextDesc:g,legalValues:p,setLegalValues:v,stickiness:f,setStickiness:y,mode:"Edit",setErrors:S,clearErrors:w,children:l(Ic,{permission:k9})})})},qL=(e="",t="")=>{const[n,r]=m.useState(e),[o,i]=m.useState(t),[a,s]=m.useState({}),{validateTagName:c}=R1();return m.useEffect(()=>{r(e)},[e]),m.useEffect(()=>{i(t)},[t]),{tagName:n,tagDesc:o,setTagName:r,setTagDesc:i,getTagPayload:()=>({name:n,description:o}),clearErrors:()=>{s({})},validateNameUniqueness:async()=>{if(n.length===0)return s(f=>({...f,name:"Name can not be empty."})),!1;if(n.length<2)return s(f=>({...f,name:"Tag name length must be at least 2 characters long"})),!1;try{return await c(n),!0}catch(f){return s(h=>({...h,name:ht(f)})),!1}},errors:a}},sye="Edit",ZMe="Create",lye=C("form")(({theme:e})=>({display:"flex",flexDirection:"column",height:"100%"})),cye=C("div")(({theme:e})=>({maxWidth:"400px"})),aP=C("p")(({theme:e})=>({marginBottom:e.spacing(1)})),uye=C(Sr)(({theme:e})=>({width:"100%",marginBottom:e.spacing(2)})),dye=C(wn)(({theme:e})=>({width:"100%",marginBottom:e.spacing(2)})),pye=C("div")(({theme:e})=>({marginTop:"auto",display:"flex",justifyContent:"flex-end"})),fye=C(Ve)(({theme:e})=>({marginLeft:e.spacing(3)})),KL=({children:e,handleSubmit:t,handleCancel:n,tagName:r,tagDesc:o,setTagName:i,setTagDesc:a,errors:s,mode:c,validateNameUniqueness:u,clearErrors:d})=>x(lye,{onSubmit:t,children:[x(cye,{children:[l(aP,{children:"What is your tag name?"}),l(uye,{label:"Tag name",value:r,onChange:p=>i(bl(p.target.value)),error:!!s.name,errorText:s.name,onFocus:()=>d(),disabled:c===sye,onBlur:u,autoFocus:!0}),l(aP,{children:"What is this tag for?"}),l(dye,{label:"Tag description",variant:"outlined",multiline:!0,maxRows:4,value:o,onChange:p=>a(p.target.value)})]}),x(pye,{children:[e,l(fye,{onClick:n,children:"Cancel"})]})]}),hye=(e,t={})=>{const n=async()=>{const u=Bt(`api/admin/tag-types/${e}`);return fetch(u,{method:"GET"}).then(Rn("Tag data")).then(d=>d.json())},r=`api/admin/tag-types/${e}`,{data:o,error:i}=An(r,n,{...t}),[a,s]=m.useState(!i&&!o),c=()=>{io(r)};return m.useEffect(()=>{s(!i&&!o)},[o,i]),{tagType:(o==null?void 0:o.tagType)||{name:"",description:""},error:i,loading:a,refetch:c,FEATURE_CACHE_KEY:r}},mye=()=>{const{setToastData:e,setToastApiError:t}=$t(),{uiConfig:n}=Ot(),r=gt(),o=ir("name"),{tagType:i}=hye(o),{tagName:a,tagDesc:s,setTagName:c,setTagDesc:u,getTagPayload:d,errors:p,clearErrors:f}=qL(i==null?void 0:i.name,i==null?void 0:i.description),{updateTagType:h,loading:g}=R1();return l(Yr,{loading:g,title:"Edit tag type",description:"Tag types allow you to group tags together in the management UI",documentationLink:"https://docs.getunleash.io/",documentationLinkLabel:"Tags documentation",formatApiCode:()=>`curl --location --request PUT '${n.unleashUrl}/api/admin/tag-types/${o}' \\
296
- --header 'Authorization: INSERT_API_KEY' \\
297
- --header 'Content-Type: application/json' \\
298
- --data-raw '${JSON.stringify(d(),void 0,2)}'`,children:l(KL,{errors:p,handleSubmit:async w=>{w.preventDefault(),f();const S=d();try{await h(a,S),r("/tag-types"),e({title:"Tag type updated",type:"success"})}catch(k){t(ht(k))}},handleCancel:()=>{r(Ao)},tagName:a,setTagName:c,tagDesc:s,setTagDesc:u,mode:"Edit",clearErrors:f,children:l(Ic,{permission:Zf})})})},gye=()=>{const{setToastData:e,setToastApiError:t}=$t(),{uiConfig:n}=Ot(),r=gt(),{tagName:o,tagDesc:i,setTagName:a,setTagDesc:s,getTagPayload:c,validateNameUniqueness:u,errors:d,clearErrors:p}=qL(),{createTag:f,loading:h}=R1();return l(Yr,{loading:h,title:"Create tag type",description:"Tag types allow you to group tags together in the management UI",documentationLink:"https://docs.getunleash.io/reference/tags",documentationLinkLabel:"Tags documentation",formatApiCode:()=>`curl --location --request POST '${n.unleashUrl}/api/admin/tag-types' \\
299
- --header 'Authorization: INSERT_API_KEY' \\
300
- --header 'Content-Type: application/json' \\
301
- --data-raw '${JSON.stringify(c(),void 0,2)}'`,children:l(KL,{errors:d,handleSubmit:async b=>{if(b.preventDefault(),p(),await u()){const S=c();try{await f(S),r("/tag-types"),e({title:"Tag type created",confetti:!0,type:"success"})}catch(k){t(ht(k))}}},handleCancel:()=>{r(Ao)},tagName:o,setTagName:a,tagDesc:i,setTagDesc:s,mode:"Create",clearErrors:p,validateNameUniqueness:u,children:l(Pd,{name:"type",permission:Zf})})})},vye=C("form")(()=>({display:"flex",flexDirection:"column",height:"100%"})),yye=C("div")(()=>({maxWidth:"400px"})),Zm=C("p")(({theme:e})=>({marginBottom:e.spacing(1),marginRight:e.spacing(1)})),sP=C(Sr)(({theme:e})=>({width:"100%",marginBottom:e.spacing(2)})),bye=C(wn)(({theme:e})=>({width:"100%",marginBottom:e.spacing(2)})),wye=C("div")(()=>({marginTop:"auto",display:"flex",justifyContent:"flex-end"})),Sye=C(Ve)(({theme:e})=>({marginLeft:e.spacing(3)})),YE=({name:e,value:t="",label:n="",options:r,onChange:o,id:i,disabled:a=!1,className:s,classes:c,...u})=>x(ks,{variant:"outlined",size:"small",classes:c,children:[l(Ih,{htmlFor:i,children:n}),l(Oh,{name:e,disabled:a,onChange:o,className:s,label:n,id:i,value:t,...u,children:(()=>r.map(p=>l(ja,{value:p.key,title:p.title||"","data-testid":`${IN}-${p.label}`,children:p.label},p.key)))()})]}),Rl=(e={revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0})=>{const t=()=>{const s=Bt("api/admin/context");return fetch(s,{method:"GET"}).then(Rn("Context variables")).then(c=>c.json())},n="api/admin/context",{data:r,mutate:o,error:i,isValidating:a}=An(n,t,e);return{context:r||[],error:i,loading:a&&!i&&!r,refetchUnleashContext:o}},xye="random",Cye="default",YL=({label:e,editable:t,value:n,onChange:r,dataTestId:o})=>{const{context:i}=Rl(),a=gn(),c=(()=>{const u=i.filter(d=>d.stickiness).map(d=>({key:d.name,label:d.name}));return!u.find(d=>d.key==="default")&&!i.find(d=>d.name===Cye)&&u.push({key:"default",label:"default"}),!u.find(d=>d.key==="random")&&!i.find(d=>d.name===xye)&&u.push({key:"random",label:"random"}),u})();return l(YE,{id:"stickiness-select",name:"stickiness",label:e,options:c,value:n,disabled:!t,"data-testid":o,onChange:r,style:{width:"inherit",minWidth:"100%",marginBottom:a.spacing(2)}})},lP=C(se)(({theme:e})=>({fontWeight:e.fontWeight.bold,display:" inline"})),cP=C(se)(({theme:e})=>({display:" inline",color:e.palette.text.secondary})),Eye=()=>l(Qu,{htmlTooltip:!0,tooltip:x(ve,{children:[x(Le,{children:[l(lP,{children:"open: "}),l(cP,{children:"everyone can submit change requests"})]}),x(Le,{sx:{mt:2},children:[l(lP,{children:"protected: "}),l(cP,{children:"only admins and project members can submit change requests"})]})]})}),Tye="PROJECT_STICKINESS_SELECT",kye="PROJECT_ID_INPUT",Aye="PROJECT_NAME_INPUT",Rye="PROJECT_DESCRIPTION_INPUT",_ye=({children:e,handleSubmit:t,handleCancel:n,projectId:r,projectName:o,projectDesc:i,projectStickiness:a,projectMode:s,setProjectId:c,setProjectName:u,setProjectDesc:d,setProjectStickiness:p,setProjectMode:f,errors:h,mode:g,validateProjectId:v,clearErrors:y})=>x(vye,{onSubmit:t,children:[x(yye,{children:[l(Zm,{children:"What is your project Id?"}),l(sP,{label:"Project Id",value:r,onChange:b=>c(bl(b.target.value)),error:!!h.id,errorText:h.id,onFocus:()=>y(),onBlur:v,disabled:g==="Edit","data-testid":kye,autoFocus:!0,required:!0}),l(Zm,{children:"What is your project name?"}),l(sP,{label:"Project name",value:o,onChange:b=>u(b.target.value),error:!!h.name,errorText:h.name,onFocus:()=>y(),"data-testid":Aye,required:!0}),l(Zm,{children:"What is your project description?"}),l(bye,{label:"Project description",variant:"outlined",multiline:!0,maxRows:4,value:i,onChange:b=>d(b.target.value),"data-testid":Rye}),l(q,{condition:p!=null,show:x(ve,{children:[l(Zm,{children:"What is the default stickiness for the project?"}),l(YL,{label:"Stickiness",value:a,"data-testid":Tye,onChange:b=>p&&p(b.target.value),editable:!0})]})}),x(ve,{children:[x(Le,{sx:{display:"flex",alignItems:"center",marginBottom:1,gap:1},children:[l("p",{children:"What is your project collaboration mode?"}),l(Eye,{})]}),l(YE,{id:"project-mode",value:s,label:"Project collaboration mode",name:"Project collaboration mode",onChange:b=>{f==null||f(b.target.value)},options:[{key:"open",label:"open"},{key:"protected",label:"protected"}],style:{minWidth:"200px"}})]})]}),x(wye,{children:[e,l(Sye,{onClick:n,children:"Cancel"})]})]}),XL="default",Pye=(e="",t="",n="",r=XL,o="open")=>{const[i,a]=m.useState(e),[s,c]=m.useState(t),[u,d]=m.useState(n),[p,f]=m.useState(r),[h,g]=m.useState(o),[v,y]=m.useState({}),{validateId:b}=Wh();m.useEffect(()=>{a(e)},[e]),m.useEffect(()=>{c(t)},[t]),m.useEffect(()=>{d(n)},[n]),m.useEffect(()=>{g(o)},[o]),m.useEffect(()=>{f(r)},[r]);const w=()=>({id:i,name:s,description:u,defaultStickiness:p,mode:h});return{projectId:i,projectName:s,projectDesc:u,projectStickiness:p,projectMode:h,setProjectId:a,setProjectName:c,setProjectDesc:d,setProjectStickiness:f,setProjectMode:g,getProjectPayload:w,validateName:()=>s.length===0?(y(T=>({...T,name:"Name can not be empty."})),!1):!0,validateProjectId:async()=>{if(i.length===0)return y(T=>({...T,id:"Id can not be empty."})),!1;try{return await b(w().id),!0}catch(T){return y(R=>({...R,id:ht(T)})),!1}},clearErrors:()=>{y({})},errors:v}},Iye="default",JL=e=>{const{project:t,loading:n,error:r}=nh(e);return{defaultStickiness:t.defaultStickiness?t.defaultStickiness:Iye,mode:t.mode,loading:n,error:r}},Oye="EDIT_PROJECT_BTN",$ye=()=>{const{uiConfig:e}=Ot(),{setToastData:t,setToastApiError:n}=$t(),{hasAccess:r}=m.useContext(yo),o=ir("projectId"),{project:i}=nh(o),{defaultStickiness:a}=JL(o),s=gt(),{trackEvent:c}=Dr(),{projectId:u,projectName:d,projectDesc:p,projectStickiness:f,projectMode:h,setProjectId:g,setProjectName:v,setProjectDesc:y,setProjectStickiness:b,setProjectMode:w,getProjectPayload:S,clearErrors:k,validateProjectId:A,validateName:T,errors:R}=Pye(o,i.name,i.description,a,i.mode),P=()=>`curl --location --request PUT '${e.unleashUrl}/api/admin/projects/${o}' \\
302
- --header 'Authorization: INSERT_API_KEY' \\
303
- --header 'Content-Type: application/json' \\
304
- --data-raw '${JSON.stringify(S(),void 0,2)}'`,{refetch:_}=nh(o),{editProject:I,loading:$}=Wh(),U=async K=>{K.preventDefault();const H=S();if(T())try{await I(o,H),_(),s(`/projects/${o}`),t({title:"Project information updated",type:"success"}),f!==XL&&c("project_stickiness_set")}catch(V){n(ht(V))}},M=()=>{s(Ao)},D=!r(ax,u)&&l(tn,{severity:"error",sx:{mb:4},children:"You do not have the required permissions to edit this project."});return x(Yr,{loading:$,title:"Edit project",description:"Projects allows you to group feature toggles together in the management UI.",documentationLink:"https://docs.getunleash.io/reference/projects",documentationLinkLabel:"Projects documentation",formatApiCode:P,children:[D,l(_ye,{errors:R,handleSubmit:U,handleCancel:M,projectId:u,setProjectId:g,projectName:d,projectMode:h,setProjectName:v,projectStickiness:f,setProjectStickiness:b,setProjectMode:w,projectDesc:p,setProjectDesc:y,mode:"Edit",clearErrors:k,validateProjectId:A,children:l(Ic,{permission:ax,projectId:u,"data-testid":Oye})})]})},Nye=({editable:e,value:t,id:n,label:r,onChange:o,...i})=>{const{featureTypes:a}=LE(),s=a.map(c=>({key:c.id,label:c.name,title:c.description}));return s.some(c=>c.key===t)||s.push({key:t,label:t}),l(ve,{children:l(kd,{disabled:!e,options:s,value:t,onChange:o,label:r,id:n,...i})})},Lye=(e=[],t)=>{let n=!1;const r=e.reduce((o,i)=>(i.permission===fi&&(n=!0),i.project&&i.permission===t&&(o[i.project]=t),o),{});return o=>n||!!r[o]},Mye=({enabled:e,value:t,onChange:n,filter:r,...o})=>{const{projects:i}=Qa();if(!e)return null;const a=c=>({key:c.id,label:c.name,title:c.description});let s;return r?s=i.filter(c=>r(c.id)).map(a):s=i.map(a),t&&!s.find(c=>c.key===t)&&s.push({key:t,label:t}),l(kd,{label:"Project",options:s,value:t,onChange:n,...o})},Dye=C("form")({display:"flex",flexDirection:"column",height:"100%"}),Bye=C("div")({maxWidth:"400px"}),eg=C("p")(({theme:e})=>({marginBottom:e.spacing(1)})),uP=C(Sr)(({theme:e})=>({width:"100%",marginBottom:e.spacing(2)})),Fye=C(ks)(({theme:e})=>({width:"100%",marginBottom:e.spacing(2)})),dP=e=>({marginBottom:e.spacing(2),minWidth:"400px",[e.breakpoints.down("sm")]:{minWidth:"379px"}}),zye=C("p")(({theme:e})=>({fontSize:e.fontSizes.smallBody,color:e.palette.text.secondary,top:"-13px",position:"relative"})),jye=C("div")({marginTop:"auto",display:"flex",justifyContent:"flex-end"}),Uye=C("div")(({theme:e})=>({display:"flex",alignItems:"center",marginTop:e.spacing(1)})),Wye=C(Ve)(({theme:e})=>({marginLeft:e.spacing(3)})),Hye=e=>({margin:e.spacing(1,0)}),QL=({children:e,type:t,name:n,description:r,project:o,setType:i,setName:a,setDescription:s,setProject:c,validateToggleName:u,setImpressionData:d,impressionData:p,handleSubmit:f,handleCancel:h,errors:g,mode:v,clearErrors:y})=>{const{featureTypes:b}=LE(),w=gt(),{permissions:S}=T1(),k=v!=="Edit",A=()=>{var T;return(T=b.find(R=>R.id===t))==null?void 0:T.description};return x(Dye,{onSubmit:f,children:[x(Bye,{children:[l(eg,{children:"What would you like to call your toggle?"}),l(uP,{autoFocus:!0,disabled:v==="Edit",label:"Name",id:"feature-toggle-name",error:!!g.name,errorText:g.name,onFocus:()=>y(),value:n,onChange:T=>a(bl(T.target.value)),"data-testid":uie,onBlur:u}),l(eg,{children:"What kind of feature toggle do you want?"}),l(Nye,{sx:dP,value:t,onChange:i,label:"Toggle type",id:"feature-type-select",editable:!0,"data-testid":die,IconComponent:ox}),l(zye,{children:A()}),l(q,{condition:k,show:l(eg,{children:"In which project do you want to save the toggle?"})}),l(Mye,{value:o,onChange:T=>{c(T),w(`/projects/${T}/create-toggle`,{replace:!0})},enabled:k,filter:Lye(S,Jf),IconComponent:ox,sx:dP}),l(eg,{children:"How would you describe your feature toggle?"}),l(uP,{multiline:!0,rows:4,label:"Description",placeholder:"A short description of the feature toggle",value:r,"data-testid":pie,onChange:T=>s(T.target.value)}),x(Fye,{children:[l(se,{variant:"subtitle1",sx:Hye,"data-loading":!0,component:"h2",children:"Impression Data"}),x("p",{children:["When you enable impression data for a feature toggle, your client SDKs will emit events you can listen for every time this toggle gets triggered. Learn more in"," ",l(Vr,{target:"_blank",rel:"noopener noreferrer",href:"https://docs.getunleash.io/advanced/impression_data",children:"the impression data documentation"})]}),l(Uye,{children:l(Hr,{labelPlacement:"start",style:{marginLeft:0},control:l(Ya,{name:"impressionData",onChange:()=>d(!p),checked:p}),label:"Enable impression data"})})]})]}),x(jye,{children:[e,l(Wye,{onClick:h,children:"Cancel"})]})]})},Id=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Yn({propagateErrors:!0}),o=async A=>{const R=t("api/admin/features/validate",{method:"POST",body:JSON.stringify({name:A})});try{return await e(R.caller,R.id)}catch(P){throw P}},i=async A=>{const R=t("api/admin/constraints/validate",{method:"POST",body:JSON.stringify(A)});await e(R.caller,R.id)},a=async(A,T)=>{const R=`/api/admin/projects/${A}/features`,P=t(R,{method:"POST",body:JSON.stringify(T)});await e(P.caller,P.id)},s=m.useCallback(async(A,T,R,P=!1)=>{const _=`api/admin/projects/${A}/features/${T}/environments/${R}/on?shouldActivateDisabledStrategies=${P}`,I=t(_,{method:"POST"},"toggleFeatureEnvironmentOn");try{return await e(I.caller,I.id)}catch($){throw $}},[t,e]),c=m.useCallback(async(A,T,R,P=!1)=>{const _=`api/admin/projects/${A}/bulk_features/environments/${R}/on?shouldActivateDisabledStrategies=${P}`,I=t(_,{method:"POST",body:JSON.stringify({features:T})},"bulkToggleFeaturesEnvironmentOn");try{return await e(I.caller,I.id)}catch($){throw $}},[t,e]),u=m.useCallback(async(A,T,R,P=!1)=>{const _=`api/admin/projects/${A}/bulk_features/environments/${R}/off?shouldActivateDisabledStrategies=${P}`,I=t(_,{method:"POST",body:JSON.stringify({features:T})},"bulkToggleFeaturesEnvironmentOff");try{return await e(I.caller,I.id)}catch($){throw $}},[t,e]),d=m.useCallback(async(A,T,R)=>{const P=`api/admin/projects/${A}/features/${T}/environments/${R}/off`,_=t(P,{method:"POST"},"toggleFeatureEnvironmentOff");try{return await e(_.caller,_.id)}catch(I){throw I}},[t,e]);return{validateFeatureToggleName:o,validateConstraint:i,createFeatureToggle:a,changeFeatureProject:async(A,T,R)=>{const P=`api/admin/projects/${A}/features/${T}/changeProject`,_=t(P,{method:"POST",body:JSON.stringify({newProjectId:R})});try{return await e(_.caller,_.id)}catch(I){throw I}},errors:n,toggleFeatureEnvironmentOn:s,toggleFeatureEnvironmentOff:d,addTagToFeature:async(A,T)=>{const R=`api/admin/features/${A}/tags`,P=t(R,{method:"POST",body:JSON.stringify({...T})});try{return await e(P.caller,P.id)}catch(_){throw _}},deleteTagFromFeature:async(A,T,R)=>{const P=`api/admin/features/${A}/tags/${T}/${R}`,_=t(P,{method:"DELETE"});try{return await e(_.caller,_.id)}catch(I){throw I}},updateFeatureTags:async(A,T)=>{const R=`api/admin/features/${A}/tags`,P=t(R,{method:"PUT",body:JSON.stringify({...T})});try{return await e(P.caller,P.id)}catch(_){throw _}},archiveFeatureToggle:async(A,T)=>{const R=`api/admin/projects/${A}/features/${T}`,P=t(R,{method:"DELETE"});try{return await e(P.caller,P.id)}catch(_){throw _}},patchFeatureToggle:async(A,T,R)=>{const P=`api/admin/projects/${A}/features/${T}`,_=t(P,{method:"PATCH",body:JSON.stringify(R)});try{return await e(_.caller,_.id)}catch(I){throw I}},patchFeatureVariants:async(A,T,R)=>{const P=`api/admin/projects/${A}/features/${T}/variants`,_=t(P,{method:"PATCH",body:JSON.stringify(R)});try{return await e(_.caller,_.id)}catch(I){throw I}},patchFeatureEnvironmentVariants:async(A,T,R,P)=>{const _=`api/admin/projects/${A}/features/${T}/environments/${R}/variants`,I=t(_,{method:"PATCH",body:JSON.stringify(P)});try{return await e(I.caller,I.id)}catch($){throw $}},overrideVariantsInEnvironments:async(A,T,R,P)=>{const _=`api/admin/projects/${A}/features/${T}/variants-batch`,I=t(_,{method:"PUT",body:JSON.stringify({variants:R,environments:P})});try{return await e(I.caller,I.id)}catch($){throw $}},cloneFeatureToggle:async(A,T,R)=>{const P=`api/admin/projects/${A}/features/${T}/clone`,_=t(P,{method:"POST",body:JSON.stringify(R)});try{return await e(_.caller,_.id)}catch(I){throw I}},loading:r,bulkToggleFeaturesEnvironmentOn:c,bulkToggleFeaturesEnvironmentOff:u}},ZL=(e="",t="release",n="default",r="",o=!1)=>{const i=ir("projectId"),a=Pc(),{validateFeatureToggleName:s}=Id(),c=a.get("name"),[u,d]=m.useState(t),[p,f]=m.useState(c||e),[h,g]=m.useState(i||n),[v,y]=m.useState(r),[b,w]=m.useState(o),[S,k]=m.useState({});return m.useEffect(()=>{d(t)},[t]),m.useEffect(()=>{p||f(c||e)},[p,e,c]),m.useEffect(()=>{g(i||n)},[n,i]),m.useEffect(()=>{y(r)},[r]),m.useEffect(()=>{w(o)},[o]),{type:u,setType:d,name:p,setName:f,project:h,setProject:g,description:v,setDescription:y,impressionData:b,setImpressionData:w,getTogglePayload:()=>({type:u,name:p,description:v,impressionData:b}),validateToggleName:async()=>{if(p.length===0)return k(P=>({...P,name:"Name can not be empty."})),!1;try{return await s(p),!0}catch(P){return k(_=>({..._,name:ht(P)})),!1}},clearErrors:()=>{k({})},errors:S}},Vye=()=>{const{setToastData:e,setToastApiError:t}=$t(),{setShowFeedback:n}=m.useContext(kl),{uiConfig:r}=Ot(),o=gt(),{type:i,setType:a,name:s,setName:c,project:u,setProject:d,description:p,setDescription:f,validateToggleName:h,impressionData:g,setImpressionData:v,getTogglePayload:y,clearErrors:b,errors:w}=ZL(),{createFeatureToggle:S,loading:k}=Id();return l(Yr,{loading:k,title:"Create feature toggle",description:`Feature toggles support different use cases, each with their own specific needs such as simple static routing or more complex routing.
305
- The feature toggle is disabled when created and you decide when to enable`,documentationLink:"https://docs.getunleash.io/reference/feature-toggle-types",documentationLinkLabel:"Feature toggle types documentation",formatApiCode:()=>`curl --location --request POST '${r.unleashUrl}/api/admin/projects/${u}/features' \\
306
- --header 'Authorization: INSERT_API_KEY' \\
307
- --header 'Content-Type: application/json' \\
308
- --data-raw '${JSON.stringify(y(),void 0,2)}'`,children:l(QL,{type:i,name:s,project:u,description:p,setType:a,setName:c,setProject:d,setDescription:f,validateToggleName:h,setImpressionData:v,impressionData:g,errors:w,handleSubmit:async P=>{if(P.preventDefault(),b(),await h()){const I=y();try{await S(u,I),o(`/projects/${u}/features/${s}`),e({title:"Toggle created successfully",text:"Now you can start using your toggle.",confetti:!0,type:"success"}),n(!0)}catch($){t(ht($))}}},handleCancel:()=>{o(Ao)},mode:"Create",clearErrors:b,children:l(Pd,{name:"feature toggle",permission:Jf,projectId:u,"data-testid":fie})})})};/*!
309
- * https://github.com/Starcounter-Jack/JSON-Patch
310
- * (c) 2017-2022 Joachim Wester
311
- * MIT licensed
312
- */var Gye=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)o.hasOwnProperty(i)&&(r[i]=o[i])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),qye=Object.prototype.hasOwnProperty;function hx(e,t){return qye.call(e,t)}function mx(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n<t.length;n++)t[n]=""+n;return t}if(Object.keys)return Object.keys(e);var r=[];for(var o in e)hx(e,o)&&r.push(o);return r}function ti(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function gx(e){for(var t=0,n=e.length,r;t<n;){if(r=e.charCodeAt(t),r>=48&&r<=57){t++;continue}return!1}return!0}function Hl(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function eM(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function vx(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,n=e.length;t<n;t++)if(vx(e[t]))return!0}else if(typeof e=="object"){for(var r=mx(e),o=r.length,i=0;i<o;i++)if(vx(e[r[i]]))return!0}}return!1}function pP(e,t){var n=[e];for(var r in t){var o=typeof t[r]=="object"?JSON.stringify(t[r],null,2):t[r];typeof o<"u"&&n.push(r+": "+o)}return n.join(`
313
- `)}var tM=function(e){Gye(t,e);function t(n,r,o,i,a){var s=this.constructor,c=e.call(this,pP(n,{name:r,index:o,operation:i,tree:a}))||this;return c.name=r,c.index=o,c.operation=i,c.tree=a,Object.setPrototypeOf(c,s.prototype),c.message=pP(n,{name:r,index:o,operation:i,tree:a}),c}return t}(Error),pr=tM,Kye=ti,du={add:function(e,t,n){return e[t]=this.value,{newDocument:n}},remove:function(e,t,n){var r=e[t];return delete e[t],{newDocument:n,removed:r}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:function(e,t,n){var r=Lv(n,this.path);r&&(r=ti(r));var o=ac(n,{op:"remove",path:this.from}).removed;return ac(n,{op:"add",path:this.path,value:o}),{newDocument:n,removed:r}},copy:function(e,t,n){var r=Lv(n,this.from);return ac(n,{op:"add",path:this.path,value:ti(r)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:oh(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}},Yye={add:function(e,t,n){return gx(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:n,index:t}},remove:function(e,t,n){var r=e.splice(t,1);return{newDocument:n,removed:r[0]}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:du.move,copy:du.copy,test:du.test,_get:du._get};function Lv(e,t){if(t=="")return e;var n={op:"_get",path:t};return ac(e,n),n.value}function ac(e,t,n,r,o,i){if(n===void 0&&(n=!1),r===void 0&&(r=!0),o===void 0&&(o=!0),i===void 0&&(i=0),n&&(typeof n=="function"?n(t,0,e,t.path):Mv(t,0)),t.path===""){var a={newDocument:e};if(t.op==="add")return a.newDocument=t.value,a;if(t.op==="replace")return a.newDocument=t.value,a.removed=e,a;if(t.op==="move"||t.op==="copy")return a.newDocument=Lv(e,t.from),t.op==="move"&&(a.removed=e),a;if(t.op==="test"){if(a.test=oh(e,t.value),a.test===!1)throw new pr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a.newDocument=e,a}else{if(t.op==="remove")return a.removed=e,a.newDocument=null,a;if(t.op==="_get")return t.value=e,a;if(n)throw new pr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return a}}else{r||(e=ti(e));var s=t.path||"",c=s.split("/"),u=e,d=1,p=c.length,f=void 0,h=void 0,g=void 0;for(typeof n=="function"?g=n:g=Mv;;){if(h=c[d],h&&h.indexOf("~")!=-1&&(h=eM(h)),o&&(h=="__proto__"||h=="prototype"&&d>0&&c[d-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&f===void 0&&(u[h]===void 0?f=c.slice(0,d).join("/"):d==p-1&&(f=t.path),f!==void 0&&g(t,0,e,f)),d++,Array.isArray(u)){if(h==="-")h=u.length;else{if(n&&!gx(h))throw new pr("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",i,t,e);gx(h)&&(h=~~h)}if(d>=p){if(n&&t.op==="add"&&h>u.length)throw new pr("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);var a=Yye[t.op].call(t,u,h,e);if(a.test===!1)throw new pr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}}else if(d>=p){var a=du[t.op].call(t,u,h,e);if(a.test===!1)throw new pr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return a}if(u=u[h],n&&d<p&&(!u||typeof u!="object"))throw new pr("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}}function XE(e,t,n,r,o){if(r===void 0&&(r=!0),o===void 0&&(o=!0),n&&!Array.isArray(t))throw new pr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");r||(e=ti(e));for(var i=new Array(t.length),a=0,s=t.length;a<s;a++)i[a]=ac(e,t[a],n,!0,o,a),e=i[a].newDocument;return i.newDocument=e,i}function Xye(e,t,n){var r=ac(e,t);if(r.test===!1)throw new pr("Test operation failed","TEST_OPERATION_FAILED",n,t,e);return r.newDocument}function Mv(e,t,n,r){if(typeof e!="object"||e===null||Array.isArray(e))throw new pr("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,n);if(du[e.op]){if(typeof e.path!="string")throw new pr("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,n);if(e.path.indexOf("/")!==0&&e.path.length>0)throw new pr('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new pr("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new pr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&vx(e.value))throw new pr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n){if(e.op=="add"){var o=e.path.split("/").length,i=r.split("/").length;if(o!==i+1&&o!==i)throw new pr("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==r)throw new pr("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if(e.op==="move"||e.op==="copy"){var a={op:"_get",path:e.from,value:void 0},s=nM([a],n);if(s&&s.name==="OPERATION_PATH_UNRESOLVABLE")throw new pr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}}else throw new pr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n)}function nM(e,t,n){try{if(!Array.isArray(e))throw new pr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)XE(ti(t),ti(e),n||!0);else{n=n||Mv;for(var r=0;r<e.length;r++)n(e[r],r,t,void 0)}}catch(o){if(o instanceof pr)return o;throw o}}function oh(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var n=Array.isArray(e),r=Array.isArray(t),o,i,a;if(n&&r){if(i=e.length,i!=t.length)return!1;for(o=i;o--!==0;)if(!oh(e[o],t[o]))return!1;return!0}if(n!=r)return!1;var s=Object.keys(e);if(i=s.length,i!==Object.keys(t).length)return!1;for(o=i;o--!==0;)if(!t.hasOwnProperty(s[o]))return!1;for(o=i;o--!==0;)if(a=s[o],!oh(e[a],t[a]))return!1;return!0}return e!==e&&t!==t}const Jye=Object.freeze(Object.defineProperty({__proto__:null,JsonPatchError:pr,_areEquals:oh,applyOperation:ac,applyPatch:XE,applyReducer:Xye,deepClone:Kye,getValueByPointer:Lv,validate:nM,validator:Mv},Symbol.toStringTag,{value:"Module"}));/*!
314
- * https://github.com/Starcounter-Jack/JSON-Patch
315
- * (c) 2017-2021 Joachim Wester
316
- * MIT license
317
- */var JE=new WeakMap,Qye=function(){function e(t){this.observers=new Map,this.obj=t}return e}(),Zye=function(){function e(t,n){this.callback=t,this.observer=n}return e}();function e1e(e){return JE.get(e)}function t1e(e,t){return e.observers.get(t)}function n1e(e,t){e.observers.delete(t.callback)}function r1e(e,t){t.unobserve()}function o1e(e,t){var n=[],r,o=e1e(e);if(!o)o=new Qye(e),JE.set(e,o);else{var i=t1e(o,t);r=i&&i.observer}if(r)return r;if(r={},o.value=ti(e),t){r.callback=t,r.next=null;var a=function(){yx(r)},s=function(){clearTimeout(r.next),r.next=setTimeout(a)};typeof window<"u"&&(window.addEventListener("mouseup",s),window.addEventListener("keyup",s),window.addEventListener("mousedown",s),window.addEventListener("keydown",s),window.addEventListener("change",s))}return r.patches=n,r.object=e,r.unobserve=function(){yx(r),clearTimeout(r.next),n1e(o,r),typeof window<"u"&&(window.removeEventListener("mouseup",s),window.removeEventListener("keyup",s),window.removeEventListener("mousedown",s),window.removeEventListener("keydown",s),window.removeEventListener("change",s))},o.observers.set(t,new Zye(t,r)),r}function yx(e,t){t===void 0&&(t=!1);var n=JE.get(e.object);QE(n.value,e.object,e.patches,"",t),e.patches.length&&XE(n.value,e.patches);var r=e.patches;return r.length>0&&(e.patches=[],e.callback&&e.callback(r)),r}function QE(e,t,n,r,o){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var i=mx(t),a=mx(e),s=!1,c=a.length-1;c>=0;c--){var u=a[c],d=e[u];if(hx(t,u)&&!(t[u]===void 0&&d!==void 0&&Array.isArray(t)===!1)){var p=t[u];typeof d=="object"&&d!=null&&typeof p=="object"&&p!=null&&Array.isArray(d)===Array.isArray(p)?QE(d,p,n,r+"/"+Hl(u),o):d!==p&&(o&&n.push({op:"test",path:r+"/"+Hl(u),value:ti(d)}),n.push({op:"replace",path:r+"/"+Hl(u),value:ti(p)}))}else Array.isArray(e)===Array.isArray(t)?(o&&n.push({op:"test",path:r+"/"+Hl(u),value:ti(d)}),n.push({op:"remove",path:r+"/"+Hl(u)}),s=!0):(o&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}))}if(!(!s&&i.length==a.length))for(var c=0;c<i.length;c++){var u=i[c];!hx(e,u)&&t[u]!==void 0&&n.push({op:"add",path:r+"/"+Hl(u),value:ti(t[u])})}}}function rM(e,t,n){n===void 0&&(n=!1);var r=[];return QE(e,t,r,"",n),r}const i1e=Object.freeze(Object.defineProperty({__proto__:null,compare:rM,generate:yx,observe:o1e,unobserve:r1e},Symbol.toStringTag,{value:"Module"}));Object.assign({},Jye,i1e,{JsonPatchError:tM,deepClone:ti,escapePathComponent:Hl,unescapePathComponent:eM});const a1e={environments:[],name:"",type:"",stale:!1,archived:!1,createdAt:"",lastSeenAt:"",project:"",variants:[],description:"",favorite:!1,impressionData:!1},Ss=(e,t,n)=>{const r=l1e(e,t),{data:o,error:i,mutate:a}=An(["useFeature",r],()=>s1e(r),n),s=m.useCallback(()=>{a().catch(console.warn)},[a]);return{feature:(o==null?void 0:o.body)||a1e,refetchFeature:s,loading:!i&&!o,status:o==null?void 0:o.status,error:i}},s1e=async e=>{const t=await fetch(e);return t.status===404?{status:404}:(t.ok||await Rn("Feature toggle data")(t),{status:t.status,body:await t.json()})},l1e=(e,t)=>Bt(`api/admin/projects/${e}/features/${t}?variantEnvironments=true`),c1e=()=>{const e=ir("projectId"),t=ir("featureId"),{setToastData:n,setToastApiError:r}=$t(),{uiConfig:o}=Ot(),i=gt(),{patchFeatureToggle:a,loading:s}=Id(),{feature:c}=Ss(e,t),{type:u,setType:d,name:p,setName:f,project:h,setProject:g,description:v,setDescription:y,impressionData:b,setImpressionData:w,clearErrors:S,errors:k}=ZL(c==null?void 0:c.name,c==null?void 0:c.type,c==null?void 0:c.project,c==null?void 0:c.description,c==null?void 0:c.impressionData),A=()=>{const _={...c,type:u,description:v,impressionData:b};return rM(c,_)};return l(Yr,{loading:s,title:"Edit Feature toggle",description:`Feature toggles support different use cases, each with their own specific needs such as simple static routing or more complex routing.
318
- The feature toggle is disabled when created and you decide when to enable`,documentationLink:"https://docs.getunleash.io/reference/feature-toggle-types",documentationLinkLabel:"Feature toggle types documentation",formatApiCode:()=>`curl --location --request PATCH '${o.unleashUrl}/api/admin/projects/${e}/features/${t}' \\
319
- --header 'Authorization: INSERT_API_KEY' \\
320
- --header 'Content-Type: application/json' \\
321
- --data-raw '${JSON.stringify(A(),void 0,2)}'`,children:l(QL,{type:u,name:p,project:h,description:v,setType:d,setName:f,setProject:g,setDescription:y,errors:k,handleSubmit:async _=>{_.preventDefault(),S();const I=A();try{await a(h,t,I),i(`/projects/${h}/features/${p}`),n({title:"Toggle updated successfully",type:"success"})}catch($){r(ht($))}},handleCancel:()=>{i(Ao)},impressionData:b,setImpressionData:w,mode:"Edit",clearErrors:S,children:l(Ic,{permission:SE,projectId:h})})})},ZE=(e,t={})=>{const n=Bt(`api/admin/metrics/applications/${e}`),r=async()=>fetch(n,{method:"GET"}).then(Rn("Application")).then(d=>d.json()),o=`api/admin/metrics/applications/${e}`,{data:i,error:a}=An(o,r,{...t}),[s,c]=m.useState(!a&&!i),u=()=>{io(o)};return m.useEffect(()=>{c(!a&&!i)},[i,a]),{application:i||{appName:e,color:"",createdAt:"2022-02-02T21:04:00.268Z",descriotion:"",instances:[],strategies:[],seenToggles:[],url:""},error:a,loading:s,refetchApplication:u,APPLICATION_CACHE_KEY:o}},u1e=()=>{const{hasAccess:e}=m.useContext(yo),t=ir("name"),{application:n}=ZE(t),{locationSettings:r}=Ja(),{instances:o,strategies:i,seenToggles:a}=n,s=({createUrl:u,name:d,permission:p})=>l(q,{condition:e(p),show:x(_a,{children:[l(Gs,{children:l(b5,{style:{color:"red"}})}),l(rn,{primary:l(hn,{to:`${u}`,children:d}),secondary:"Missing, want to create?"})]},`not_found_${d}`),elseShow:x(_a,{children:[l(Gs,{children:l(b5,{})}),l(rn,{primary:d,secondary:`Could not find feature toggle with name ${d}`})]},`not_found_${d}`)},`not_found_conditional_${d}`),c=({viewUrl:u,name:d,description:p,Icon:f,i:h})=>x(_a,{children:[l(Gs,{children:l(f,{})}),l(rn,{primary:l(hn,{to:`${u}/${d}`,style:{wordBreak:"break-all"},children:d}),secondary:p})]},`found_${d}-${h}`);return x(Wn,{container:!0,style:{margin:0},children:[x(Wn,{item:!0,xl:6,md:6,xs:12,children:[l(se,{variant:"subtitle1",style:{padding:"1rem 0"},children:"Toggles"}),l(To,{}),l(ia,{children:a.map(({name:u,description:d,notFound:p,project:f},h)=>l(q,{condition:p,show:s({createUrl:`/projects/default/create-toggle?name=${u}`,name:u,permission:Jf}),elseShow:c({viewUrl:Iv(f,u),name:u,description:d,Icon:ale,i:h})},`toggle_conditional_${u}`))})]}),x(Wn,{item:!0,xl:6,md:6,xs:12,children:[l(se,{variant:"subtitle1",style:{padding:"1rem 0"},children:"Implemented strategies"}),l(To,{}),l(ia,{children:i.map(({name:u,description:d,notFound:p},f)=>l(q,{condition:p,show:s({createUrl:"/strategies/create",name:u,permission:kv}),elseShow:c({viewUrl:"/strategies",name:u,Icon:f9,description:d,i:f})},`strategies_conditional_${u}`))})]}),x(Wn,{item:!0,xl:12,md:12,children:[x(se,{variant:"subtitle1",style:{padding:"1rem 0"},children:[o.length," Instances registered"]}),l(To,{}),l(ia,{children:o.map(({instanceId:u,clientIp:d,lastSeen:p,sdkVersion:f})=>x(_a,{children:[l(Gs,{children:l(ble,{})}),l(rn,{primary:l(q,{condition:!!f,show:x("span",{children:[u," ",f]}),elseShow:l("span",{children:u})},`${u}_conditional`),secondary:x("span",{children:[d," last seen at"," ",l("small",{children:S1(p,r.locale)})]})})]},`${u}`))})]})]})},d1e=["3d_rotation","ac_unit","access_alarm","access_alarms","access_time","accessibility","accessible","account_balance","account_balance_wallet","account_box","account_circle","adb","add","add_a_photo","add_alarm","add_alert","add_box","add_circle","add_circle_outline","add_location","add_shopping_cart","add_to_photos","add_to_queue","adjust","airline_seat_flat","airline_seat_flat_angled","airline_seat_individual_suite","airline_seat_legroom_extra","airline_seat_legroom_normal","airline_seat_legroom_reduced","airline_seat_recline_extra","airline_seat_recline_normal","airplanemode_active","airplanemode_inactive","airplay","airport_shuttle","alarm","alarm_add","alarm_off","alarm_on","album","all_inclusive","all_out","android","announcement","apps","archive","arrow_back","arrow_downward","arrow_drop_down","arrow_drop_down_circle","arrow_drop_up","arrow_forward","arrow_upward","art_track","aspect_ratio","assessment","assignment","assignment_ind","assignment_late","assignment_return","assignment_returned","assignment_turned_in","assistant","assistant_photo","attach_file","attach_money","attachment","audiotrack","autorenew","av_timer","backspace","backup","battery_alert","battery_charging_full","battery_full","battery_std","battery_unknown","beach_access","beenhere","block","bluetooth","bluetooth_audio","bluetooth_connected","bluetooth_disabled","bluetooth_searching","blur_circular","blur_linear","blur_off","blur_on","book","bookmark","bookmark_border","border_all","border_bottom","border_clear","border_color","border_horizontal","border_inner","border_left","border_outer","border_right","border_style","border_top","border_vertical","branding_watermark","brightness_1","brightness_2","brightness_3","brightness_4","brightness_5","brightness_6","brightness_7","brightness_auto","brightness_high","brightness_low","brightness_medium","broken_image","brush","bubble_chart","bug_report","build","burst_mode","business","business_center","cached","cake","call","call_end","call_made","call_merge","call_missed","call_missed_outgoing","call_received","call_split","call_to_action","camera","camera_alt","camera_enhance","camera_front","camera_rear","camera_roll","cancel","card_giftcard","card_membership","card_travel","casino","cast","cast_connected","center_focus_strong","center_focus_weak","change_history","chat","chat_bubble","chat_bubble_outline","check","check_box","check_box_outline_blank","check_circle","chevron_left","chevron_right","child_care","child_friendly","chrome_reader_mode","class","clear","clear_all","close","closed_caption","cloud","cloud_circle","cloud_done","cloud_download","cloud_off","cloud_queue","cloud_upload","code","collections","collections_bookmark","color_lens","colorize","comment","compare","compare_arrows","computer","confirmation_number","contact_mail","contact_phone","contacts","content_copy","content_cut","content_paste","control_point","control_point_duplicate","copyright","create","create_new_folder","credit_card","crop","crop_16_9","crop_3_2","crop_5_4","crop_7_5","crop_din","crop_free","crop_landscape","crop_original","crop_portrait","crop_rotate","crop_square","dashboard","data_usage","date_range","dehaze","delete","delete_forever","delete_sweep","description","desktop_mac","desktop_windows","details","developer_board","developer_mode","device_hub","devices","devices_other","dialer_sip","dialpad","directions","directions_bike","directions_boat","directions_bus","directions_car","directions_railway","directions_run","directions_subway","directions_transit","directions_walk","disc_full","dns","do_not_disturb","do_not_disturb_alt","do_not_disturb_off","do_not_disturb_on","dock","domain","done","done_all","donut_large","donut_small","drafts","drag_handle","drive_eta","dvr","edit","edit_location","eject","email","enhanced_encryption","equalizer","error","error_outline","euro_symbol","ev_station","event","event_available","event_busy","event_note","event_seat","exit_to_app","expand_less","expand_more","explicit","explore","exposure","exposure_neg_1","exposure_neg_2","exposure_plus_1","exposure_plus_2","exposure_zero","extension","face","fast_forward","fast_rewind","favorite","favorite_border","featured_play_list","featured_video","feedback","fiber_dvr","fiber_manual_record","fiber_new","fiber_pin","fiber_smart_record","file_download","file_upload","filter","filter_1","filter_2","filter_3","filter_4","filter_5","filter_6","filter_7","filter_8","filter_9","filter_9_plus","filter_b_and_w","filter_center_focus","filter_drama","filter_frames","filter_hdr","filter_list","filter_none","filter_tilt_shift","filter_vintage","find_in_page","find_replace","fingerprint","first_page","fitness_center","flag","flare","flash_auto","flash_off","flash_on","flight","flight_land","flight_takeoff","flip","flip_to_back","flip_to_front","folder","folder_open","folder_shared","folder_special","font_download","format_align_center","format_align_justify","format_align_left","format_align_right","format_bold","format_clear","format_color_fill","format_color_reset","format_color_text","format_indent_decrease","format_indent_increase","format_italic","format_line_spacing","format_list_bulleted","format_list_numbered","format_paint","format_quote","format_shapes","format_size","format_strikethrough","format_textdirection_l_to_r","format_textdirection_r_to_l","format_underlined","forum","forward","forward_10","forward_30","forward_5","free_breakfast","fullscreen","fullscreen_exit","functions","g_translate","gamepad","games","gavel","gesture","get_app","gif","golf_course","gps_fixed","gps_not_fixed","gps_off","grade","gradient","grain","graphic_eq","grid_off","grid_on","group","group_add","group_work","hd","hdr_off","hdr_on","hdr_strong","hdr_weak","headset","headset_mic","healing","hearing","help","help_outline","high_quality","highlight","highlight_off","history","home","hot_tub","hotel","hourglass_empty","hourglass_full","http","https","image","image_aspect_ratio","import_contacts","import_export","important_devices","inbox","indeterminate_check_box","info","info_outline","input","insert_chart","insert_comment","insert_drive_file","insert_emoticon","insert_invitation","insert_link","insert_photo","invert_colors","invert_colors_off","iso","keyboard","keyboard_arrow_down","keyboard_arrow_left","keyboard_arrow_right","keyboard_arrow_up","keyboard_backspace","keyboard_capslock","keyboard_hide","keyboard_return","keyboard_tab","keyboard_voice","kitchen","label","label_outline","landscape","language","laptop","laptop_chromebook","laptop_mac","laptop_windows","last_page","launch","layers","layers_clear","leak_add","leak_remove","lens","library_add","library_books","library_music","lightbulb_outline","line_style","line_weight","linear_scale","link","linked_camera","list","live_help","live_tv","local_activity","local_airport","local_atm","local_bar","local_cafe","local_car_wash","local_convenience_store","local_dining","local_drink","local_florist","local_gas_station","local_grocery_store","local_hospital","local_hotel","local_laundry_service","local_library","local_mall","local_movies","local_offer","local_parking","local_pharmacy","local_phone","local_pizza","local_play","local_post_office","local_printshop","local_see","local_shipping","local_taxi","location_city","location_disabled","location_off","location_on","location_searching","lock","lock_open","lock_outline","looks","looks_3","looks_4","looks_5","looks_6","looks_one","looks_two","loop","loupe","low_priority","loyalty","mail","mail_outline","map","markunread","markunread_mailbox","memory","menu","merge_type","message","mic","mic_none","mic_off","mms","mode_comment","mode_edit","monetization_on","money_off","monochrome_photos","mood","mood_bad","more","more_horiz","more_vert","motorcycle","mouse","move_to_inbox","movie","movie_creation","movie_filter","multiline_chart","music_note","music_video","my_location","nature","nature_people","navigate_before","navigate_next","navigation","near_me","network_cell","network_check","network_locked","network_wifi","new_releases","next_week","nfc","no_encryption","no_sim","not_interested","note","note_add","notifications","notifications_active","notifications_none","notifications_off","notifications_paused","offline_pin","ondemand_video","opacity","open_in_browser","open_in_new","open_with","pages","pageview","palette","pan_tool","panorama","panorama_fish_eye","panorama_horizontal","panorama_vertical","panorama_wide_angle","party_mode","pause","pause_circle_filled","pause_circle_outline","payment","people","people_outline","perm_camera_mic","perm_contact_calendar","perm_data_setting","perm_device_information","perm_identity","perm_media","perm_phone_msg","perm_scan_wifi","person","person_add","person_outline","person_pin","person_pin_circle","personal_video","pets","phone","phone_android","phone_bluetooth_speaker","phone_forwarded","phone_in_talk","phone_iphone","phone_locked","phone_missed","phone_paused","phonelink","phonelink_erase","phonelink_lock","phonelink_off","phonelink_ring","phonelink_setup","photo","photo_album","photo_camera","photo_filter","photo_library","photo_size_select_actual","photo_size_select_large","photo_size_select_small","picture_as_pdf","picture_in_picture","picture_in_picture_alt","pie_chart","pie_chart_outlined","pin_drop","place","play_arrow","play_circle_filled","play_circle_outline","play_for_work","playlist_add","playlist_add_check","playlist_play","plus_one","poll","polymer","pool","portable_wifi_off","portrait","power","power_input","power_settings_new","pregnant_woman","present_to_all","print","priority_high","public","publish","query_builder","question_answer","queue","queue_music","queue_play_next","radio","radio_button_checked","radio_button_unchecked","rate_review","receipt","recent_actors","record_voice_over","redeem","redo","refresh","remove","remove_circle","remove_circle_outline","remove_from_queue","remove_red_eye","remove_shopping_cart","reorder","repeat","repeat_one","replay","replay_10","replay_30","replay_5","reply","reply_all","report","report_problem","restaurant","restaurant_menu","restore","restore_page","ring_volume","room","room_service","rotate_90_degrees_ccw","rotate_left","rotate_right","rounded_corner","router","rowing","rss_feed","rv_hookup","satellite","save","scanner","schedule","school","screen_lock_landscape","screen_lock_portrait","screen_lock_rotation","screen_rotation","screen_share","sd_card","sd_storage","search","security","select_all","send","sentiment_dissatisfied","sentiment_neutral","sentiment_satisfied","sentiment_very_dissatisfied","sentiment_very_satisfied","settings","settings_applications","settings_backup_restore","settings_bluetooth","settings_brightness","settings_cell","settings_ethernet","settings_input_antenna","settings_input_component","settings_input_composite","settings_input_hdmi","settings_input_svideo","settings_overscan","settings_phone","settings_power","settings_remote","settings_system_daydream","settings_voice","share","shop","shop_two","shopping_basket","shopping_cart","short_text","show_chart","shuffle","signal_cellular_4_bar","signal_cellular_connected_no_internet_4_bar","signal_cellular_no_sim","signal_cellular_null","signal_cellular_off","signal_wifi_4_bar","signal_wifi_4_bar_lock","signal_wifi_off","sim_card","sim_card_alert","skip_next","skip_previous","slideshow","slow_motion_video","smartphone","smoke_free","smoking_rooms","sms","sms_failed","snooze","sort","sort_by_alpha","spa","space_bar","speaker","speaker_group","speaker_notes","speaker_notes_off","speaker_phone","spellcheck","star","star_border","star_half","stars","stay_current_landscape","stay_current_portrait","stay_primary_landscape","stay_primary_portrait","stop","stop_screen_share","storage","store","store_mall_directory","straighten","streetview","strikethrough_s","style","subdirectory_arrow_left","subdirectory_arrow_right","subject","subscriptions","subtitles","subway","supervisor_account","surround_sound","swap_calls","swap_horiz","swap_vert","swap_vertical_circle","switch_camera","switch_video","sync","sync_disabled","sync_problem","system_update","system_update_alt","tab","tab_unselected","tablet","tablet_android","tablet_mac","tag_faces","tap_and_play","terrain","text_fields","text_format","textsms","texture","theaters","thumb_down","thumb_up","thumbs_up_down","time_to_leave","timelapse","timeline","timer","timer_10","timer_3","timer_off","title","toc","today","toll","tonality","touch_app","toys","track_changes","traffic","train","tram","transfer_within_a_station","transform","translate","trending_down","trending_flat","trending_up","tune","turned_in","turned_in_not","tv","unarchive","undo","unfold_less","unfold_more","update","usb","verified_user","vertical_align_bottom","vertical_align_center","vertical_align_top","vibration","video_call","video_label","video_library","videocam","videocam_off","videogame_asset","view_agenda","view_array","view_carousel","view_column","view_comfy","view_compact","view_day","view_headline","view_list","view_module","view_quilt","view_stream","view_week","vignette","visibility","visibility_off","voice_chat","voicemail","volume_down","volume_mute","volume_off","volume_up","vpn_key","vpn_lock","wallpaper","warning","watch","watch_later","wb_auto","wb_cloudy","wb_incandescent","wb_iridescent","wb_sunny","wc","web","web_asset","weekend","whatshot","widgets","wifi","wifi_lock","wifi_tethering","work","wrap_text","youtube_searched_for","zoom_in","zoom_out","zoom_out_map"],oM=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Yn({propagateErrors:!0}),o="api/admin/metrics/applications";return{storeApplicationMetaData:async(s,c,u)=>{const d={};d[c]=u;const p=`${o}/${s}`,f=t(p,{method:"POST",body:JSON.stringify(d)});try{return await e(f.caller,f.id)}catch(h){throw h}},deleteApplication:async s=>{const c=`${o}/${encodeURIComponent(s)}`,u=t(c,{method:"DELETE"});try{return await e(u.caller,u.id)}catch(d){throw d}},errors:n,loading:r}},p1e=({application:e})=>{const{storeApplicationMetaData:t}=oM(),{appName:n,icon:r,url:o,description:i}=e,{refetchApplication:a}=ZE(n),[s,c]=m.useState(o||""),[u,d]=m.useState(i||""),{setToastData:p,setToastApiError:f}=$t(),{classes:h}=$h(),g=async(v,y,b)=>{b==null||b.preventDefault();try{await t(n,v,y),a(),p({type:"success",title:"Updated Successfully",text:`${v} successfully updated`})}catch(w){f(ht(w))}};return l(Wn,{container:!0,style:{marginTop:"1rem"},children:x(Wn,{item:!0,sm:12,xs:12,className:h.contentSpacingY,children:[l(Wn,{item:!0,children:l(kd,{name:"iconSelect",id:"selectIcon",label:"Icon",options:d1e.map(v=>({key:v,label:v})),value:r||"apps",onChange:v=>g("icon",v)})}),l(Wn,{item:!0,children:l(wn,{value:s,onChange:v=>c(v.target.value),label:"Application URL",placeholder:"https://example.com",type:"url",variant:"outlined",size:"small",onBlur:v=>g("url",s,v)})}),l(Wn,{item:!0,children:l(wn,{value:u,label:"Description",variant:"outlined",size:"small",rows:2,onChange:v=>d(v.target.value),onBlur:v=>g("description",u,v)})})]})})},f1e=({children:e,value:t,index:n})=>l("div",{role:"tabpanel",hidden:t!==n,id:`tabpanel-${n}`,"aria-labelledby":`tab-${n}`,children:t===n&&e}),h1e=({tabData:e,className:t="",navClass:n="",startingTab:r=0})=>{const[o,i]=m.useState(r),a=()=>e.map((c,u)=>l(dre,{label:c.label,id:`tab-${u}`,"aria-controls":`tabpanel-${u}`,sx:{minWidth:{lg:160}}},`${c.label}_${u}`)),s=()=>e.map((c,u)=>l(f1e,{value:o,index:u,children:c.component},u));return x(ve,{children:[l(wr,{className:n,elevation:0,sx:{backgroundColor:c=>c.palette.background.paper,borderBottom:"1px solid",borderBottomColor:c=>c.palette.divider,borderRadius:0},children:l(voe,{value:o,onChange:(c,u)=>{i(u)},indicatorColor:"primary",textColor:"primary",centered:!0,children:a()})}),l("div",{className:t,children:s()})]})},m1e=()=>{const e=gt(),t=ir("name"),{application:n,loading:r}=ZE(t),{appName:o,url:i,description:a,icon:s="apps",createdAt:c}=n,{hasAccess:u}=m.useContext(yo),{deleteApplication:d}=oM(),{locationSettings:p}=Ja(),{setToastData:f,setToastApiError:h}=$t(),[g,v]=m.useState(!1),y=()=>{v(!g)},b=A=>Xu(A,p.locale),w=async A=>{A.preventDefault();try{await d(o),f({title:"Deleted Successfully",text:"Application deleted successfully",type:"success"}),e("/applications")}catch(T){h(ht(T))}},S=()=>l(gr,{open:g,onClose:y,onClick:w,title:"Are you sure you want to delete this application?"}),k=[{label:"Application overview",component:l(u1e,{})},{label:"Edit application",component:l(p1e,{application:n})}];return r?x("div",{children:[l("p",{children:"Loading..."}),l(iN,{})]}):n?x(Or,{header:l(Dn,{titleElement:x("span",{style:{display:"flex",alignItems:"center"},children:[l(Sd,{style:{marginRight:"8px"},children:l(j2,{children:s||"apps"})}),o]}),title:o,actions:x(ve,{children:[l(q,{condition:!!i,show:l(Ht,{component:Vr,href:i,size:"large",children:l(fle,{titleAccess:i})})}),l(hi,{tooltipProps:{title:"Delete application"},onClick:y,permission:S5,children:"Delete"})]})}),children:[x("div",{children:[l(se,{variant:"body1",children:a||""}),x(se,{variant:"body2",children:["Created: ",l("strong",{children:b(c)})]})]}),l(q,{condition:u(S5),show:x("div",{children:[S(),l(h1e,{tabData:k})]})})]}):x("p",{children:["Application (",o,") not found"]})},g1e=()=>{const{applications:e,loading:t}=lL(),[n,r]=md(),[o,i]=m.useState(n.get("search")||"");m.useEffect(()=>{const u={};o&&(u.search=o),r(u,{replace:!0})},[o,r]);const a=m.useMemo(()=>{const u=RE(o,"i");return o?e==null?void 0:e.filter(d=>u.test(d.appName)):e},[e,o]),s=()=>l(ve,{children:x("section",{style:{textAlign:"center"},children:[l(Tle,{titleAccess:"Warning"})," ",l("br",{}),l("br",{}),"Oh snap, it does not seem like you have connected any applications. To connect your application to Unleash you will require a Client SDK.",l("br",{}),l("br",{}),"You can read more about how to use Unleash in your application in the"," ",l(Vr,{href:"https://docs.getunleash.io/docs/sdks/",children:"documentation."})]})});if(!a)return l(fJ,{variant:"indeterminate"});let c=a.length<e.length?`${a.length} of ${e.length}`:e.length;return l(ve,{children:l(Or,{header:l(Dn,{title:`Applications (${c})`,actions:l(vo,{initialValue:o,onChange:i})}),children:l("div",{className:Iu.fullwidth,children:l(q,{condition:a.length>0,show:l(DE,{apps:a}),elseShow:l(q,{condition:t,show:l("div",{children:"...loading"}),elseShow:s()})})})})})},v1e=()=>{const e=or("(max-width:700px)"),t=gt();return l(q,{condition:e,show:l(Ir,{permission:Av,onClick:()=>t("/context/create"),size:"large",tooltipProps:{title:"Add context type"},children:l(ca,{})}),elseShow:l(hi,{onClick:()=>t("/context/create"),permission:Av,color:"primary",variant:"contained",children:"New context field"})})},y1e=({name:e,onDelete:t})=>{const n=gt();return x(Ha,{children:[l(Ir,{permission:k9,onClick:()=>n(`/context/edit/${e}`),"data-loading":!0,"aria-label":"edit",tooltipProps:{title:"Edit context field"},children:l(Ui,{})}),l(Ir,{permission:Ile,onClick:t,"data-loading":!0,"aria-label":"delete",tooltipProps:{title:"Delete context field"},children:l(go,{})})]})},b1e=()=>{const[e,t]=m.useState(!1),[n,r]=m.useState(),{context:o,refetchUnleashContext:i,loading:a}=Rl(),{removeContext:s}=N1(),{setToastData:c,setToastApiError:u}=$t(),d=m.useMemo(()=>a?Array(5).fill({name:"Context name",description:"Context description when loading"}):o.map(({name:A,description:T,sortOrder:R})=>({name:A,description:T,sortOrder:R})).sort((A,T)=>A.sortOrder-T.sortOrder),[o,a]),p=m.useMemo(()=>[{id:"Icon",Cell:()=>l(P1,{icon:l(Kse,{color:"disabled"})}),disableGlobalFilter:!0},{Header:"Name",accessor:"name",width:"90%",Cell:({row:{original:{name:A,description:T}}})=>l(Rs,{title:A,to:`/context/edit/${A}`,subtitle:T}),sortType:"alphanumeric"},{Header:"Actions",id:"Actions",align:"center",Cell:({row:{original:{name:A}}})=>l(y1e,{name:A,onDelete:()=>{r(A),t(!0)}}),width:150,disableGlobalFilter:!0,disableSortBy:!0},{accessor:"description",disableSortBy:!0},{accessor:"sortOrder",disableGlobalFilter:!0,sortType:"number"}],[]),f=m.useMemo(()=>({sortBy:[{id:"name",desc:!1}],hiddenColumns:["description","sortOrder"]}),[]),h=async()=>{try{if(n===void 0)throw new Error;await s(n),i(),c({type:"success",title:"Successfully deleted context",text:"Your context is now deleted"})}catch(A){u(ht(A))}r(void 0),t(!1)},{getTableProps:g,getTableBodyProps:v,headerGroups:y,rows:b,prepareRow:w,state:{globalFilter:S},setGlobalFilter:k}=Yt.useTable({columns:p,data:d,initialState:f,sortTypes:si,autoResetGlobalFilter:!1,autoResetSortBy:!1,disableSortRemove:!0},Yt.useGlobalFilter,Yt.useSortBy);return x(Or,{isLoading:a,header:l(Dn,{title:`Context fields (${b.length})`,actions:x(ve,{children:[l(vo,{initialValue:S,onChange:k}),l(Dn.Divider,{}),l(v1e,{})]})}),children:[l(Xa,{value:S,children:x(la,{...g(),children:[l(sa,{headerGroups:y}),l(aa,{...v(),children:b.map(A=>(w(A),l(zi,{hover:!0,...A.getRowProps(),children:A.cells.map(T=>l(Wi,{...T.getCellProps(),children:T.render("Cell")}))})))})]})}),l(q,{condition:b.length===0,show:l(q,{condition:(S==null?void 0:S.length)>0,show:x(Kn,{children:["No contexts found matching “",S,"”"]}),elseShow:l(Kn,{children:"No contexts available. Get started by adding one."})})}),l(gr,{open:e,onClick:h,onClose:()=>{r(void 0),t(!1)},title:"Really delete context field"})]})},fP=()=>{const e=ir("featureId"),{features:t=[]}=TE(),[n,r]=m.useState();return m.useEffect(()=>{const o=t.find(i=>i.name===e);r(o)},[t,e]),n!=null&&n.project?l(kc,{to:Iv(n.project,n.name),replace:!0}):null};function ta(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ed(e){return!!e&&!!e[li]}function gc(e){var t;return!!e&&(function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var o=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===A1e}(e)||Array.isArray(e)||!!e[SP]||!!(!((t=e.constructor)===null||t===void 0)&&t[SP])||eT(e)||tT(e))}function ih(e,t,n){n===void 0&&(n=!1),Od(e)===0?(n?Object.keys:aT)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function Od(e){var t=e[li];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:eT(e)?2:tT(e)?3:0}function bx(e,t){return Od(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function w1e(e,t){return Od(e)===2?e.get(t):e[t]}function iM(e,t,n){var r=Od(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function S1e(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function eT(e){return T1e&&e instanceof Map}function tT(e){return k1e&&e instanceof Set}function Vl(e){return e.o||e.t}function nT(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=R1e(e);delete t[li];for(var n=aT(t),r=0;r<n.length;r++){var o=n[r],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function rT(e,t){return t===void 0&&(t=!1),oT(e)||ed(e)||!gc(e)||(Od(e)>1&&(e.set=e.add=e.clear=e.delete=x1e),Object.freeze(e),t&&ih(e,function(n,r){return rT(r,!0)},!0)),e}function x1e(){ta(2)}function oT(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ba(e){var t=_1e[e];return t||ta(18,e),t}function hP(){return ah}function Xb(e,t){t&&(Ba("Patches"),e.u=[],e.s=[],e.v=t)}function Dv(e){wx(e),e.p.forEach(C1e),e.p=null}function wx(e){e===ah&&(ah=e.l)}function mP(e){return ah={p:[],l:ah,h:e,m:!0,_:0}}function C1e(e){var t=e[li];t.i===0||t.i===1?t.j():t.g=!0}function Jb(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||Ba("ES5").S(t,e,r),r?(n[li].P&&(Dv(t),ta(4)),gc(e)&&(e=Bv(t,e),t.l||Fv(t,e)),t.u&&Ba("Patches").M(n[li].t,e,t.u,t.s)):e=Bv(t,n,[]),Dv(t),t.u&&t.v(t.u,t.s),e!==aM?e:void 0}function Bv(e,t,n){if(oT(t))return t;var r=t[li];if(!r)return ih(t,function(s,c){return gP(e,r,t,s,c,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Fv(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=nT(r.k):r.o,i=o,a=!1;r.i===3&&(i=new Set(o),o.clear(),a=!0),ih(i,function(s,c){return gP(e,r,o,s,c,n,a)}),Fv(e,o,!1),n&&e.u&&Ba("Patches").N(r,n,e.u,e.s)}return r.o}function gP(e,t,n,r,o,i,a){if(ed(o)){var s=Bv(e,o,i&&t&&t.i!==3&&!bx(t.R,r)?i.concat(r):void 0);if(iM(n,r,s),!ed(s))return;e.m=!1}else a&&n.add(o);if(gc(o)&&!oT(o)){if(!e.h.D&&e._<1)return;Bv(e,o),t&&t.A.l||Fv(e,o)}}function Fv(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&rT(t,n)}function Qb(e,t){var n=e[li];return(n?Vl(n):e)[t]}function vP(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Sx(e){e.P||(e.P=!0,e.l&&Sx(e.l))}function Zb(e){e.o||(e.o=nT(e.t))}function xx(e,t,n){var r=eT(t)?Ba("MapSet").F(t,n):tT(t)?Ba("MapSet").T(t,n):e.O?function(o,i){var a=Array.isArray(o),s={i:a?1:0,A:i?i.A:hP(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},c=s,u=Cx;a&&(c=[s],u=Hp);var d=Proxy.revocable(c,u),p=d.revoke,f=d.proxy;return s.k=f,s.j=p,f}(t,n):Ba("ES5").J(t,n);return(n?n.A:hP()).p.push(r),r}function E1e(e){return ed(e)||ta(22,e),function t(n){if(!gc(n))return n;var r,o=n[li],i=Od(n);if(o){if(!o.P&&(o.i<4||!Ba("ES5").K(o)))return o.t;o.I=!0,r=yP(n,i),o.I=!1}else r=yP(n,i);return ih(r,function(a,s){o&&w1e(o.t,a)===s||iM(r,a,t(s))}),i===3?new Set(r):r}(e)}function yP(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return nT(e)}var bP,ah,iT=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",T1e=typeof Map<"u",k1e=typeof Set<"u",wP=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",aM=iT?Symbol.for("immer-nothing"):((bP={})["immer-nothing"]=!0,bP),SP=iT?Symbol.for("immer-draftable"):"__$immer_draftable",li=iT?Symbol.for("immer-state"):"__$immer_state",A1e=""+Object.prototype.constructor,aT=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,R1e=Object.getOwnPropertyDescriptors||function(e){var t={};return aT(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},_1e={},Cx={get:function(e,t){if(t===li)return e;var n=Vl(e);if(!bx(n,t))return function(o,i,a){var s,c=vP(i,a);return c?"value"in c?c.value:(s=c.get)===null||s===void 0?void 0:s.call(o.k):void 0}(e,n,t);var r=n[t];return e.I||!gc(r)?r:r===Qb(e.t,t)?(Zb(e),e.o[t]=xx(e.A.h,r,e)):r},has:function(e,t){return t in Vl(e)},ownKeys:function(e){return Reflect.ownKeys(Vl(e))},set:function(e,t,n){var r=vP(Vl(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Qb(Vl(e),t),i=o==null?void 0:o[li];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(S1e(n,o)&&(n!==void 0||bx(e.t,t)))return!0;Zb(e),Sx(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return Qb(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Zb(e),Sx(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Vl(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){ta(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ta(12)}},Hp={};ih(Cx,function(e,t){Hp[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Hp.deleteProperty=function(e,t){return Hp.set.call(this,e,t,void 0)},Hp.set=function(e,t,n){return Cx.set.call(this,e[0],t,n,e[0])};var P1e=function(){function e(n){var r=this;this.O=wP,this.D=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var s=i;i=o;var c=r;return function(v){var y=this;v===void 0&&(v=s);for(var b=arguments.length,w=Array(b>1?b-1:0),S=1;S<b;S++)w[S-1]=arguments[S];return c.produce(v,function(k){var A;return(A=i).call.apply(A,[y,k].concat(w))})}}var u;if(typeof i!="function"&&ta(6),a!==void 0&&typeof a!="function"&&ta(7),gc(o)){var d=mP(r),p=xx(r,o,void 0),f=!0;try{u=i(p),f=!1}finally{f?Dv(d):wx(d)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(v){return Xb(d,a),Jb(v,d)},function(v){throw Dv(d),v}):(Xb(d,a),Jb(u,d))}if(!o||typeof o!="object"){if((u=i(o))===void 0&&(u=o),u===aM&&(u=void 0),r.D&&rT(u,!0),a){var h=[],g=[];Ba("Patches").M(o,u,h,g),a(h,g)}return u}ta(21,o)},this.produceWithPatches=function(o,i){if(typeof o=="function")return function(u){for(var d=arguments.length,p=Array(d>1?d-1:0),f=1;f<d;f++)p[f-1]=arguments[f];return r.produceWithPatches(u,function(h){return o.apply(void 0,[h].concat(p))})};var a,s,c=r.produce(o,i,function(u,d){a=u,s=d});return typeof Promise<"u"&&c instanceof Promise?c.then(function(u){return[u,a,s]}):[c,a,s]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){gc(n)||ta(8),ed(n)&&(n=E1e(n));var r=mP(this),o=xx(this,n,void 0);return o[li].C=!0,wx(r),o},t.finishDraft=function(n,r){var o=n&&n[li],i=o.A;return Xb(i,r),Jb(void 0,i)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!wP&&ta(20),this.O=n},t.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var a=Ba("Patches").$;return ed(n)?a(n,r):this.produce(n,function(s){return a(s,r)})},e}(),ci=new P1e,I1e=ci.produce;ci.produceWithPatches.bind(ci);ci.setAutoFreeze.bind(ci);ci.setUseProxies.bind(ci);ci.applyPatches.bind(ci);ci.createDraft.bind(ci);ci.finishDraft.bind(ci);const Ti=I1e,O1e=oo("form")({display:"flex",flexDirection:"column",height:"100%",gap:"1rem"}),Kc=oo("section")({marginBottom:"36px"}),Ex=oo("p")({marginBottom:"0.5rem"}),$1e=oo("div")({maxWidth:"600px"}),N1e=oo("div")({marginTop:"auto",display:"flex",justifyContent:"flex-end"}),L1e=oo("section")(({theme:e})=>({paddingTop:e.spacing(2),"& > *":{marginRight:e.spacing(1)}})),xP=oo(wn)({width:"100%",marginBottom:"1rem",marginTop:"0px"}),M1e=oo(Hr)({paddingBottom:"16px"}),sM=oo("h4")({marginBottom:"8px"}),D1e=oo("div")({marginTop:"25px"}),B1e=({type:e="text",sensitive:t=!1},n)=>t&&n===F1e||e==="textfield"?"text":e,F1e="*****",z1e=({definition:e,config:t,parametersErrors:n,setParameterValue:r})=>{const o=t.parameters[e.name]||"",i=B1e(e,o),a=n[e.name];return l(D1e,{children:l(wn,{size:"small",style:{width:"100%"},minRows:e.type==="textfield"?9:0,multiline:e.type==="textfield",type:i,label:x(ve,{children:[e.displayName,e.required?l(se,{component:"span",color:"error",children:"*"}):null]}),name:e.name,placeholder:e.placeholder||"",InputLabelProps:{shrink:!0},value:o,error:!!a,onChange:r(e.name),variant:"outlined",helperText:e.description})})},j1e=({provider:e,config:t,parametersErrors:n,setParameterValue:r,editMode:o})=>e?x(Te.Fragment,{children:[l(sM,{children:"Parameters"}),o?x("p",{children:['Sensitive parameters will be masked with value "',l("i",{children:"*****"}),`". If you don't change the value they will not be updated when saving.`]}):null,e.parameters.map(i=>l(z1e,{definition:i,parametersErrors:n,config:t,setParameterValue:r},i.name))]}):null;var zv={exports:{}};zv.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",s="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Function]",p="[object GeneratorFunction]",f="[object Map]",h="[object Number]",g="[object Object]",v="[object Promise]",y="[object RegExp]",b="[object Set]",w="[object String]",S="[object Symbol]",k="[object WeakMap]",A="[object ArrayBuffer]",T="[object DataView]",R="[object Float32Array]",P="[object Float64Array]",_="[object Int8Array]",I="[object Int16Array]",$="[object Int32Array]",U="[object Uint8Array]",M="[object Uint8ClampedArray]",D="[object Uint16Array]",K="[object Uint32Array]",H=/[\\^$.*+?()[\]{}|]/g,Q=/\w*$/,V=/^\[object .+?Constructor\]$/,j=/^(?:0|[1-9]\d*)$/,z={};z[i]=z[a]=z[A]=z[T]=z[s]=z[c]=z[R]=z[P]=z[_]=z[I]=z[$]=z[f]=z[h]=z[g]=z[y]=z[b]=z[w]=z[S]=z[U]=z[M]=z[D]=z[K]=!0,z[u]=z[d]=z[k]=!1;var O=typeof Ci=="object"&&Ci&&Ci.Object===Object&&Ci,B=typeof self=="object"&&self&&self.Object===Object&&self,Z=O||B||Function("return this")(),ae=t&&!t.nodeType&&t,Ae=ae&&!0&&e&&!e.nodeType&&e,fe=Ae&&Ae.exports===ae;function Ie(G,le){return G.set(le[0],le[1]),G}function ne(G,le){return G.add(le),G}function ie(G,le){for(var _e=-1,ut=G?G.length:0;++_e<ut&&le(G[_e],_e,G)!==!1;);return G}function ce(G,le){for(var _e=-1,ut=le.length,xr=G.length;++_e<ut;)G[xr+_e]=le[_e];return G}function te(G,le,_e,ut){var xr=-1,Qr=G?G.length:0;for(ut&&Qr&&(_e=G[++xr]);++xr<Qr;)_e=le(_e,G[xr],xr,G);return _e}function Ne(G,le){for(var _e=-1,ut=Array(G);++_e<G;)ut[_e]=le(_e);return ut}function ye(G,le){return G==null?void 0:G[le]}function Ce(G){var le=!1;if(G!=null&&typeof G.toString!="function")try{le=!!(G+"")}catch{}return le}function me(G){var le=-1,_e=Array(G.size);return G.forEach(function(ut,xr){_e[++le]=[xr,ut]}),_e}function at(G,le){return function(_e){return G(le(_e))}}function Oe(G){var le=-1,_e=Array(G.size);return G.forEach(function(ut){_e[++le]=ut}),_e}var Ge=Array.prototype,dt=Function.prototype,ot=Object.prototype,st=Z["__core-js_shared__"],Lt=function(){var G=/[^.]+$/.exec(st&&st.keys&&st.keys.IE_PROTO||"");return G?"Symbol(src)_1."+G:""}(),Ct=dt.toString,we=ot.hasOwnProperty,$e=ot.toString,Qe=RegExp("^"+Ct.call(we).replace(H,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),oe=fe?Z.Buffer:void 0,ee=Z.Symbol,X=Z.Uint8Array,Se=at(Object.getPrototypeOf,Object),Re=Object.create,Me=ot.propertyIsEnumerable,bt=Ge.splice,_t=Object.getOwnPropertySymbols,zt=oe?oe.isBuffer:void 0,dn=at(Object.keys,Object),jt=Za(Z,"DataView"),Gt=Za(Z,"Map"),nn=Za(Z,"Promise"),Hn=Za(Z,"Set"),pn=Za(Z,"WeakMap"),qt=Za(Object,"create"),sr=ts(jt),Br=ts(Gt),_o=ts(nn),Go=ts(Hn),qo=ts(pn),Jr=ee?ee.prototype:void 0,Po=Jr?Jr.valueOf:void 0;function vr(G){var le=-1,_e=G?G.length:0;for(this.clear();++le<_e;){var ut=G[le];this.set(ut[0],ut[1])}}function Io(){this.__data__=qt?qt(null):{}}function Fr(G){return this.has(G)&&delete this.__data__[G]}function Vt(G){var le=this.__data__;if(qt){var _e=le[G];return _e===r?void 0:_e}return we.call(le,G)?le[G]:void 0}function an(G){var le=this.__data__;return qt?le[G]!==void 0:we.call(le,G)}function tr(G,le){var _e=this.__data__;return _e[G]=qt&&le===void 0?r:le,this}vr.prototype.clear=Io,vr.prototype.delete=Fr,vr.prototype.get=Vt,vr.prototype.has=an,vr.prototype.set=tr;function $r(G){var le=-1,_e=G?G.length:0;for(this.clear();++le<_e;){var ut=G[le];this.set(ut[0],ut[1])}}function bo(){this.__data__=[]}function wo(G){var le=this.__data__,_e=Il(le,G);if(_e<0)return!1;var ut=le.length-1;return _e==ut?le.pop():bt.call(le,_e,1),!0}function Yi(G){var le=this.__data__,_e=Il(le,G);return _e<0?void 0:le[_e][1]}function ge(G){return Il(this.__data__,G)>-1}function ue(G,le){var _e=this.__data__,ut=Il(_e,G);return ut<0?_e.push([G,le]):_e[ut][1]=le,this}$r.prototype.clear=bo,$r.prototype.delete=wo,$r.prototype.get=Yi,$r.prototype.has=ge,$r.prototype.set=ue;function qe(G){var le=-1,_e=G?G.length:0;for(this.clear();++le<_e;){var ut=G[le];this.set(ut[0],ut[1])}}function pt(){this.__data__={hash:new vr,map:new(Gt||$r),string:new vr}}function Mt(G){return Ol(this,G).delete(G)}function Bn(G){return Ol(this,G).get(G)}function zn(G){return Ol(this,G).has(G)}function Et(G,le){return Ol(this,G).set(G,le),this}qe.prototype.clear=pt,qe.prototype.delete=Mt,qe.prototype.get=Bn,qe.prototype.has=zn,qe.prototype.set=Et;function jn(G){this.__data__=new $r(G)}function v0(){this.__data__=new $r}function y0(G){return this.__data__.delete(G)}function b0(G){return this.__data__.get(G)}function rm(G){return this.__data__.has(G)}function om(G,le){var _e=this.__data__;if(_e instanceof $r){var ut=_e.__data__;if(!Gt||ut.length<n-1)return ut.push([G,le]),this;_e=this.__data__=new qe(ut)}return _e.set(G,le),this}jn.prototype.clear=v0,jn.prototype.delete=y0,jn.prototype.get=b0,jn.prototype.has=rm,jn.prototype.set=om;function w0(G,le){var _e=$l(G)||j0(G)?Ne(G.length,String):[],ut=_e.length,xr=!!ut;for(var Qr in G)(le||we.call(G,Qr))&&!(xr&&(Qr=="length"||D0(Qr,ut)))&&_e.push(Qr);return _e}function im(G,le,_e){var ut=G[le];(!(we.call(G,le)&&um(ut,_e))||_e===void 0&&!(le in G))&&(G[le]=_e)}function Il(G,le){for(var _e=G.length;_e--;)if(um(G[_e][0],le))return _e;return-1}function am(G,le){return G&&lm(le,Ll(le),G)}function Ud(G,le,_e,ut,xr,Qr,ao){var E;if(ut&&(E=Qr?ut(G,xr,Qr,ao):ut(G)),E!==void 0)return E;if(!Nl(G))return G;var L=$l(G);if(L){if(E=L0(G),!le)return O0(G,E)}else{var F=es(G),W=F==d||F==p;if(qd(G))return k0(G,le);if(F==g||F==i||W&&!Qr){if(Ce(G))return Qr?G:{};if(E=M0(W?{}:G),!le)return $0(G,am(E,G))}else{if(!z[F])return Qr?G:{};E=cm(G,F,Ud,le)}}ao||(ao=new jn);var J=ao.get(G);if(J)return J;if(ao.set(G,E),!L)var Y=_e?N0(G):Ll(G);return ie(Y||G,function(re,he){Y&&(he=re,re=G[he]),im(E,he,Ud(re,le,_e,ut,he,G,ao))}),E}function S0(G){return Nl(G)?Re(G):{}}function x0(G,le,_e){var ut=le(G);return $l(G)?ut:ce(ut,_e(G))}function C0(G){return $e.call(G)}function E0(G){if(!Nl(G)||F0(G))return!1;var le=Bc(G)||Ce(G)?Qe:V;return le.test(ts(G))}function T0(G){if(!Vd(G))return dn(G);var le=[];for(var _e in Object(G))we.call(G,_e)&&_e!="constructor"&&le.push(_e);return le}function k0(G,le){if(le)return G.slice();var _e=new G.constructor(G.length);return G.copy(_e),_e}function Wd(G){var le=new G.constructor(G.byteLength);return new X(le).set(new X(G)),le}function A0(G,le){var _e=le?Wd(G.buffer):G.buffer;return new G.constructor(_e,G.byteOffset,G.byteLength)}function R0(G,le,_e){var ut=le?_e(me(G),!0):me(G);return te(ut,Ie,new G.constructor)}function _0(G){var le=new G.constructor(G.source,Q.exec(G));return le.lastIndex=G.lastIndex,le}function sm(G,le,_e){var ut=le?_e(Oe(G),!0):Oe(G);return te(ut,ne,new G.constructor)}function P0(G){return Po?Object(Po.call(G)):{}}function I0(G,le){var _e=le?Wd(G.buffer):G.buffer;return new G.constructor(_e,G.byteOffset,G.length)}function O0(G,le){var _e=-1,ut=G.length;for(le||(le=Array(ut));++_e<ut;)le[_e]=G[_e];return le}function lm(G,le,_e,ut){_e||(_e={});for(var xr=-1,Qr=le.length;++xr<Qr;){var ao=le[xr],E=ut?ut(_e[ao],G[ao],ao,_e,G):void 0;im(_e,ao,E===void 0?G[ao]:E)}return _e}function $0(G,le){return lm(G,Hd(G),le)}function N0(G){return x0(G,Ll,Hd)}function Ol(G,le){var _e=G.__data__;return B0(le)?_e[typeof le=="string"?"string":"hash"]:_e.map}function Za(G,le){var _e=ye(G,le);return E0(_e)?_e:void 0}var Hd=_t?at(_t,Object):W0,es=C0;(jt&&es(new jt(new ArrayBuffer(1)))!=T||Gt&&es(new Gt)!=f||nn&&es(nn.resolve())!=v||Hn&&es(new Hn)!=b||pn&&es(new pn)!=k)&&(es=function(G){var le=$e.call(G),_e=le==g?G.constructor:void 0,ut=_e?ts(_e):void 0;if(ut)switch(ut){case sr:return T;case Br:return f;case _o:return v;case Go:return b;case qo:return k}return le});function L0(G){var le=G.length,_e=G.constructor(le);return le&&typeof G[0]=="string"&&we.call(G,"index")&&(_e.index=G.index,_e.input=G.input),_e}function M0(G){return typeof G.constructor=="function"&&!Vd(G)?S0(Se(G)):{}}function cm(G,le,_e,ut){var xr=G.constructor;switch(le){case A:return Wd(G);case s:case c:return new xr(+G);case T:return A0(G,ut);case R:case P:case _:case I:case $:case U:case M:case D:case K:return I0(G,ut);case f:return R0(G,ut,_e);case h:case w:return new xr(G);case y:return _0(G);case b:return sm(G,ut,_e);case S:return P0(G)}}function D0(G,le){return le=le??o,!!le&&(typeof G=="number"||j.test(G))&&G>-1&&G%1==0&&G<le}function B0(G){var le=typeof G;return le=="string"||le=="number"||le=="symbol"||le=="boolean"?G!=="__proto__":G===null}function F0(G){return!!Lt&&Lt in G}function Vd(G){var le=G&&G.constructor,_e=typeof le=="function"&&le.prototype||ot;return G===_e}function ts(G){if(G!=null){try{return Ct.call(G)}catch{}try{return G+""}catch{}}return""}function z0(G){return Ud(G,!0,!0)}function um(G,le){return G===le||G!==G&&le!==le}function j0(G){return Dc(G)&&we.call(G,"callee")&&(!Me.call(G,"callee")||$e.call(G)==i)}var $l=Array.isArray;function Gd(G){return G!=null&&dm(G.length)&&!Bc(G)}function Dc(G){return U0(G)&&Gd(G)}var qd=zt||H0;function Bc(G){var le=Nl(G)?$e.call(G):"";return le==d||le==p}function dm(G){return typeof G=="number"&&G>-1&&G%1==0&&G<=o}function Nl(G){var le=typeof G;return!!G&&(le=="object"||le=="function")}function U0(G){return!!G&&typeof G=="object"}function Ll(G){return Gd(G)?w0(G):T0(G)}function W0(){return[]}function H0(){return!1}e.exports=z0})(zv,zv.exports);var U1e=zv.exports;const sT=qr(U1e);var lT={},W1e=En;Object.defineProperty(lT,"__esModule",{value:!0});var L1=lT.default=void 0,H1e=W1e(Tn()),V1e=kn,G1e=(0,H1e.default)((0,V1e.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");L1=lT.default=G1e;var cT={},q1e=En;Object.defineProperty(cT,"__esModule",{value:!0});var M1=cT.default=void 0,K1e=q1e(Tn()),Y1e=kn,X1e=(0,K1e.default)((0,Y1e.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 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox");M1=cT.default=X1e;const J1e=C(Vr)(({theme:e})=>({cursor:"pointer",fontSize:e.fontSizes.bodySize})),uT=({isAllSelected:e,onClick:t})=>l(Le,{sx:{ml:3.5,my:.5},children:l(J1e,{onClick:t,component:"button",underline:"hover",children:e?"Deselect all":"Select all"})}),tg="*",Q1e=oo(Ka)(()=>({marginRight:"0.2em"})),Z1e=({...e})=>l(wr,{elevation:8,...e}),ew=({options:e,selectedItems:t,onChange:n,error:r,onFocus:o,entityName:i,selectAllEnabled:a=!0,description:s,required:c})=>{const[u,d]=m.useState(t.includes(tg)),p=S=>l(wn,{...S,error:!!r,helperText:r,variant:"outlined",label:`${de(i)}s`,placeholder:`Select ${i}s to filter by`,onFocus:o,"data-testid":`select-${i}-input`}),f=t.length>0&&t.length===e.length&&t[0]!==tg,h=(S,k)=>{k?(d(!0),n([tg])):(d(!1),n(t.includes(tg)?[]:t))},g=()=>{const S=f?[]:e.map(({value:k})=>k);n(S)},v=(S,k,{selected:A})=>x("li",{...S,children:[l(Q1e,{icon:l(L1,{fontSize:"small"}),checkedIcon:l(M1,{fontSize:"small"}),checked:A}),k.label]}),y=({key:S,children:k})=>x(m.Fragment,{children:[l(q,{condition:e.length>2&&a,show:l(uT,{isAllSelected:f,onClick:g})}),k]},S),b=()=>l(M1e,{"data-testid":`select-all-${i}s`,control:l(Ka,{checked:u,onChange:h}),label:`ALL current and future ${i}s`}),w=()=>x(Ex,{children:["Selecting ",i,"(s) here will filter events so that your addon will only receive events that are tagged with one of your"," ",i,"s."]});return x(Te.Fragment,{children:[x(sM,{children:[de(i),"s",c?l(se,{component:"span",color:"error",children:"*"}):null]}),l(q,{condition:s!==void 0,show:l(Ex,{children:s})}),l(q,{condition:a,show:l(w,{})}),l(q,{condition:a,show:l(b,{})}),l(_h,{sx:{mb:8},disabled:u,multiple:!0,limitTags:2,options:e,disableCloseOnSelect:!0,getOptionLabel:({label:S})=>S,fullWidth:!0,groupBy:()=>"Select/Deselect all",renderGroup:y,PaperComponent:Z1e,renderOption:v,renderInput:p,value:u?e:e.filter(S=>t.includes(S.value)),onChange:(S,k)=>{const A=k.map(({value:T})=>T);n(A)}})]})},lM=({editMode:e,provider:t,addon:n,fetch:r})=>{const{createAddon:o,updateAddon:i}=yL(),{setToastData:a,setToastApiError:s}=$t(),c=gt(),u=wd(),{projects:d}=Qa(),p=d.map(V=>({value:V.id,label:V.name})),{environments:f}=Td(),h=f.map(V=>({value:V.name,label:V.name})),g=t==null?void 0:t.events.map(V=>({value:V,label:V})),{uiConfig:v}=Ot(),[y,b]=m.useState(n),[w,S]=m.useState({containsErrors:!1,parameters:{}}),k=e?"Update":"Create";let A=`${v.unleashUrl}/api/admin/addons${e?`/${y.id}`:""}`;const T=()=>`curl --location --request ${e?"PUT":"POST"} '${A}' \\
322
- --header 'Authorization: INSERT_API_KEY' \\
323
- --header 'Content-Type: application/json' \\
324
- --data-raw '${JSON.stringify(y,void 0,2)}'`;m.useEffect(()=>{t||r()},[r,t]),m.useEffect(()=>{b({...n})},[n.description,n.provider]),m.useEffect(()=>{t&&!y.provider&&b({...n,provider:t.name})},[t,n,y.provider]);const R=V=>j=>{j.preventDefault(),b({...y,[V]:j.target.value})},P=V=>{V.preventDefault(),b(({enabled:j})=>({...y,enabled:!j}))},_=V=>j=>{j.preventDefault();const z=bl(j.target.value)===""?void 0:j.target.value;b(Ti(O=>{O.parameters[V]=z}))},I=V=>{b(Ti(j=>{j.events=V})),S(j=>({...j,events:void 0}))},$=V=>{b(Ti(j=>{j.projects=V})),S(j=>({...j,projects:void 0}))},U=V=>{b(Ti(j=>{j.environments=V})),S(j=>({...j,environments:void 0}))},M=()=>{c(Ao)},D=async V=>{if(V.preventDefault(),!t)return;const j=sT(w);if(j.parameters={},j.containsErrors=!1,y.events.length===0&&(j.events="You must listen to at least one event",j.containsErrors=!0),t.parameters.forEach(z=>{const O=bl(y.parameters[z.name]);z.required&&!O&&(j.parameters[z.name]="This field is required",j.containsErrors=!0)}),j.containsErrors){S(j);return}try{e?(await i(y),c("/addons"),a({type:"success",title:"Addon updated successfully"})):(await o(y),c("/addons"),a({type:"success",confetti:!0,title:"Addon created successfully"}))}catch(z){const O=ht(z);s(O),S({parameters:{},general:O,containsErrors:!0})}},{name:K,description:H,documentationUrl:Q="https://unleash.github.io/docs/addons"}=t||{};return l(Yr,{title:`${k} ${K} addon`,description:H||"",documentationLink:Q,documentationLinkLabel:"Addon documentation",formatApiCode:T,children:x(O1e,{onSubmit:D,children:[x($1e,{children:[x(Kc,{children:[l(xP,{size:"small",label:"Provider",name:"provider",value:y.provider,disabled:!0,hidden:!0,variant:"outlined"}),l(Hr,{control:l(Ya,{checked:y.enabled,onClick:P}),label:y.enabled?"Enabled":"Disabled"})]}),x(Kc,{children:[l(Ex,{children:"What is your addon description?"}),l(xP,{size:"small",style:{width:"80%"},minRows:4,multiline:!0,label:"Description",name:"description",placeholder:"",value:y.description,error:!!w.description,helperText:w.description,onChange:R("description"),variant:"outlined"})]}),l(Kc,{children:l(ew,{options:g||[],selectedItems:y.events,onChange:I,entityName:"event",selectAllEnabled:!1,error:w.events,description:"Select what events you want your addon to be notified about.",required:!0})}),l(Kc,{children:l(ew,{options:p,selectedItems:y.projects||[],onChange:$,entityName:"project",selectAllEnabled:!0})}),l(Kc,{children:l(ew,{options:h,selectedItems:y.environments||[],onChange:U,entityName:"environment",selectAllEnabled:!0})}),l(Kc,{children:l(j1e,{provider:t,config:y,parametersErrors:w.parameters,editMode:e,setParameterValue:_})})]}),l(To,{}),l(N1e,{children:x(L1e,{theme:u,children:[l(hi,{type:"submit",color:"primary",variant:"contained",permission:e?sx:A9,children:k}),l(Ve,{type:"button",onClick:M,children:"Cancel"})]})})]})})},cM={provider:"",description:"",enabled:!0,parameters:{},events:[],projects:[],environments:[]},e0e=()=>{const e=ir("providerId"),{providers:t,refetchAddons:n}=_1(),r=!1,o=t.find(a=>a.name===e),i={...sT(cM),provider:o?o.name:""};return l(lM,{editMode:r,provider:o,fetch:n,addon:i})},t0e=()=>{const e=ir("addonId"),{providers:t,addons:n,refetchAddons:r}=_1(),o=!0,i=n.find(s=>s.id===Number(e))||{...sT(cM)},a=i?t.find(s=>s.name===i.provider):void 0;return l(lM,{editMode:o,provider:a,fetch:r,addon:i})},n0e=C(wr)(({theme:e})=>({overflow:"visible",borderRadius:e.shape.borderRadiusLarge})),r0e=C("div")(({theme:e})=>({padding:e.spacing(3,4),borderBottom:`1px solid ${e.palette.divider}`})),o0e=C("h1")(({theme:e})=>({fontSize:e.fontSizes.mainHeader,fontWeight:e.fontWeight.medium})),i0e=C("section")(({theme:e})=>({padding:e.spacing(4)})),a0e=C("p")(({theme:e})=>({marginTop:0,marginBottom:e.spacing(4)})),s0e=C("form")(({theme:e})=>({display:"flex",flexDirection:"column",marginBottom:e.spacing(3),maxWidth:e.spacing(50)})),l0e=C(Hr)(({theme:e})=>({marginTop:e.spacing(2),marginBottom:e.spacing(4)})),c0e=()=>{const[e,t]=m.useState(!0),[n,r]=m.useState(""),[o,i]=m.useState(),[a,s]=m.useState(),{cloneFeatureToggle:c,validateFeatureToggleName:u}=Id(),d=ir("featureId"),p=ir("projectId"),{feature:f}=Ss(p,d),h=gt(),{isChangeRequestConfiguredInAnyEnv:g}=_c(p),v=S=>{const k=bl(S.target.value);s(k)},y=()=>{t(S=>!S)},b=async()=>{try{return await u(a),i(void 0),!0}catch(S){i(ht(S))}return!1},w=async S=>{if(S.preventDefault(),!!await b())try{await c(p,d,{name:a,replaceGroupId:e}),h(Iv(p,a))}catch(A){r(ht(A))}};return!f||!f.name?l("span",{children:"Toggle not found"}):x(n0e,{className:Iu.fullwidth,children:[l(r0e,{children:x(o0e,{children:["Copy ",d]})}),l(q,{condition:!!n,show:l(tn,{severity:"error",children:n})}),x(i0e,{children:[x(a0e,{children:["You are about to create a new feature toggle by cloning the configuration of feature toggle ",l(hn,{to:Iv(p,d),children:d}),". You must give the new feature toggle a unique name before you can proceed."]}),x(s0e,{onSubmit:w,children:[l(wn,{label:"Name",name:"name",value:a||"",onBlur:b,onChange:v,error:o!==void 0,helperText:o,variant:"outlined",size:"small","aria-required":!0,autoFocus:!0}),l(l0e,{control:l(Ya,{value:e,checked:e,onChange:y}),label:"Replace groupId"}),x(Ve,{type:"submit",color:"primary",variant:"contained",disabled:g(),children:[l(h9,{}),"    Create from copy"]})]})]})]})},uM=()=>l(tn,{severity:"error",children:"You need instance admin to access this section."}),u0e=C("li")(({theme:e})=>({padding:e.spacing(4),backgroundColor:e.palette.neutral.light,borderRadius:e.shape.borderRadiusLarge,fontSize:e.fontSizes.smallBody,"& code":{wordWrap:"break-word",whiteSpace:"pre-wrap",fontFamily:"monospace",lineHeight:"100%"}})),d0e=({entry:e})=>{const t=JSON.parse(JSON.stringify(e));delete t.description,delete t.name,delete t.diffs;const n=JSON.stringify(t,null,2);return l(u0e,{children:l("div",{children:l("code",{children:n})})})};var dM={exports:{}};(function(e,t){(function(n,r){var o=r(n);e.exports=o})(Ci,function(n){var r=["N","E","A","D"];function o(P,_){P.super_=_,P.prototype=Object.create(_.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}})}function i(P,_){Object.defineProperty(this,"kind",{value:P,enumerable:!0}),_&&_.length&&Object.defineProperty(this,"path",{value:_,enumerable:!0})}function a(P,_,I){a.super_.call(this,"E",P),Object.defineProperty(this,"lhs",{value:_,enumerable:!0}),Object.defineProperty(this,"rhs",{value:I,enumerable:!0})}o(a,i);function s(P,_){s.super_.call(this,"N",P),Object.defineProperty(this,"rhs",{value:_,enumerable:!0})}o(s,i);function c(P,_){c.super_.call(this,"D",P),Object.defineProperty(this,"lhs",{value:_,enumerable:!0})}o(c,i);function u(P,_,I){u.super_.call(this,"A",P),Object.defineProperty(this,"index",{value:_,enumerable:!0}),Object.defineProperty(this,"item",{value:I,enumerable:!0})}o(u,i);function d(P,_,I){var $=P.slice((I||_)+1||P.length);return P.length=_<0?P.length+_:_,P.push.apply(P,$),P}function p(P){var _=typeof P;return _!=="object"?_:P===Math?"math":P===null?"null":Array.isArray(P)?"array":Object.prototype.toString.call(P)==="[object Date]"?"date":typeof P.toString=="function"&&/^\/.*\//.test(P.toString())?"regexp":"object"}function f(P){var _=0;if(P.length===0)return _;for(var I=0;I<P.length;I++){var $=P.charCodeAt(I);_=(_<<5)-_+$,_=_&_}return _}function h(P){var _=0,I=p(P);if(I==="array"){P.forEach(function(K){_+=h(K)});var $="[type: array, hash: "+_+"]";return _+f($)}if(I==="object"){for(var U in P)if(P.hasOwnProperty(U)){var M="[ type: object, key: "+U+", value hash: "+h(P[U])+"]";_+=f(M)}return _}var D="[ type: "+I+" ; value: "+P+"]";return _+f(D)}function g(P,_,I,$,U,M,D,K){I=I||[],U=U||[],D=D||[];var H=U.slice(0);if(typeof M<"u"&&M!==null){if($){if(typeof $=="function"&&$(H,M))return;if(typeof $=="object"){if($.prefilter&&$.prefilter(H,M))return;if($.normalize){var Q=$.normalize(H,M,P,_);Q&&(P=Q[0],_=Q[1])}}}H.push(M)}p(P)==="regexp"&&p(_)==="regexp"&&(P=P.toString(),_=_.toString());var V=typeof P,j=typeof _,z,O,B,Z,ae=V!=="undefined"||D&&D.length>0&&D[D.length-1].lhs&&Object.getOwnPropertyDescriptor(D[D.length-1].lhs,M),Ae=j!=="undefined"||D&&D.length>0&&D[D.length-1].rhs&&Object.getOwnPropertyDescriptor(D[D.length-1].rhs,M);if(!ae&&Ae)I.push(new s(H,_));else if(!Ae&&ae)I.push(new c(H,P));else if(p(P)!==p(_))I.push(new a(H,P,_));else if(p(P)==="date"&&P-_!==0)I.push(new a(H,P,_));else if(V==="object"&&P!==null&&_!==null){for(z=D.length-1;z>-1;--z)if(D[z].lhs===P){Z=!0;break}if(Z)P!==_&&I.push(new a(H,P,_));else{if(D.push({lhs:P,rhs:_}),Array.isArray(P)){for(K&&(P.sort(function(ne,ie){return h(ne)-h(ie)}),_.sort(function(ne,ie){return h(ne)-h(ie)})),z=_.length-1,O=P.length-1;z>O;)I.push(new u(H,z,new s(void 0,_[z--])));for(;O>z;)I.push(new u(H,O,new c(void 0,P[O--])));for(;z>=0;--z)g(P[z],_[z],I,$,H,z,D,K)}else{var fe=Object.keys(P),Ie=Object.keys(_);for(z=0;z<fe.length;++z)B=fe[z],Z=Ie.indexOf(B),Z>=0?(g(P[B],_[B],I,$,H,B,D,K),Ie[Z]=null):g(P[B],void 0,I,$,H,B,D,K);for(z=0;z<Ie.length;++z)B=Ie[z],B&&g(void 0,_[B],I,$,H,B,D,K)}D.length=D.length-1}}else P!==_&&(V==="number"&&isNaN(P)&&isNaN(_)||I.push(new a(H,P,_)))}function v(P,_,I,$,U){var M=[];if(g(P,_,M,$,null,null,null,U),I)for(var D=0;D<M.length;++D)I(M[D]);return M}function y(P,_,I,$,U,M,D){return g(P,_,I,$,U,M,D,!0)}function b(P,_,I,$){var U=$?function(D){D&&$.push(D)}:void 0,M=v(P,_,U,I);return $||(M.length?M:void 0)}function w(P,_,I,$){var U=$?function(D){D&&$.push(D)}:void 0,M=v(P,_,U,I,!0);return $||(M.length?M:void 0)}function S(P,_,I){if(I.path&&I.path.length){var $=P[_],U,M=I.path.length-1;for(U=0;U<M;U++)$=$[I.path[U]];switch(I.kind){case"A":S($[I.path[U]],I.index,I.item);break;case"D":delete $[I.path[U]];break;case"E":case"N":$[I.path[U]]=I.rhs;break}}else switch(I.kind){case"A":S(P[_],I.index,I.item);break;case"D":P=d(P,_);break;case"E":case"N":P[_]=I.rhs;break}return P}function k(P,_,I){if(typeof I>"u"&&_&&~r.indexOf(_.kind)&&(I=_),P&&I&&I.kind){for(var $=P,U=-1,M=I.path?I.path.length-1:0;++U<M;)typeof $[I.path[U]]>"u"&&($[I.path[U]]=typeof I.path[U+1]<"u"&&typeof I.path[U+1]=="number"?[]:{}),$=$[I.path[U]];switch(I.kind){case"A":I.path&&typeof $[I.path[U]]>"u"&&($[I.path[U]]=[]),S(I.path?$[I.path[U]]:$,I.index,I.item);break;case"D":delete $[I.path[U]];break;case"E":case"N":$[I.path[U]]=I.rhs;break}}}function A(P,_,I){if(I.path&&I.path.length){var $=P[_],U,M=I.path.length-1;for(U=0;U<M;U++)$=$[I.path[U]];switch(I.kind){case"A":A($[I.path[U]],I.index,I.item);break;case"D":$[I.path[U]]=I.lhs;break;case"E":$[I.path[U]]=I.lhs;break;case"N":delete $[I.path[U]];break}}else switch(I.kind){case"A":A(P[_],I.index,I.item);break;case"D":P[_]=I.lhs;break;case"E":P[_]=I.lhs;break;case"N":P=d(P,_);break}return P}function T(P,_,I){if(P&&_&&I&&I.kind){var $=P,U,M;for(M=I.path.length-1,U=0;U<M;U++)typeof $[I.path[U]]>"u"&&($[I.path[U]]={}),$=$[I.path[U]];switch(I.kind){case"A":A($[I.path[U]],I.index,I.item);break;case"D":$[I.path[U]]=I.lhs;break;case"E":$[I.path[U]]=I.lhs;break;case"N":delete $[I.path[U]];break}}}function R(P,_,I){if(P&&_){var $=function(U){(!I||I(P,_,U))&&k(P,_,U)};v(P,_,$)}}return Object.defineProperties(b,{diff:{value:b,enumerable:!0},orderIndependentDiff:{value:w,enumerable:!0},observableDiff:{value:v,enumerable:!0},orderIndependentObservableDiff:{value:y,enumerable:!0},orderIndepHash:{value:h,enumerable:!0},applyDiff:{value:R,enumerable:!0},applyChange:{value:k,enumerable:!0},revertChange:{value:T,enumerable:!0},isConflict:{value:function(){return typeof $conflict<"u"},enumerable:!0}}),b.DeepDiff=b,n&&(n.DeepDiff=b),b})})(dM);var p0e=dM.exports;const f0e={A:" ",E:" ",D:"-",N:"+"},D1=({entry:e,sort:t=(n,r)=>n.key.localeCompare(r.key)})=>{const n=wd(),r={A:{color:n.palette.eventLog.edited},E:{color:n.palette.eventLog.edited},D:{color:n.palette.eventLog.diffSub},N:{color:n.palette.eventLog.diffAdd}},o=e.data&&e.preData?p0e.diff(e.preData,e.data):void 0,i=(c,u)=>{let d;return c.lhs!==void 0?d=x("div",{style:r.D,children:["- ",u,": ",JSON.stringify(c.lhs)]}):c.rhs!==void 0&&(d=x("div",{style:r.N,children:["+ ",u,": ",JSON.stringify(c.rhs)]})),d},a=(c,u)=>{var f;let d;const p=((f=c.path)==null?void 0:f.join("."))??c.index;if(c.item)d=i(c.item,p);else if(c.lhs!==void 0&&c.rhs!==void 0)d=x("div",{children:[x("div",{style:r.D,children:["- ",p,": ",JSON.stringify(c.lhs)]}),x("div",{style:r.N,children:["+ ",p,": ",JSON.stringify(c.rhs)]})]});else{const h=JSON.stringify(c.rhs||c.item);d=x("div",{style:r[c.kind],children:[f0e[c.kind]," ",p,h?`: ${h}`:c.kind==="D"?" (deleted)":""]})}return{key:p.toString(),value:l("div",{children:d},u),index:u}};let s;if(o)s=o.map(a).sort(t).map(({value:c})=>c);else{const c=e.data||e.preData;s=[l("div",{style:e.data?r.N:r.D,children:JSON.stringify(c,null,2)},0)]}return l("pre",{style:{overflowX:"auto",overflowY:"hidden"},tabIndex:0,children:l("code",{children:s.length===0?"(no changes)":s})})},Dl=C("dt")(({theme:e})=>({color:e.palette.text.secondary})),h0e=C("strong")(({theme:e})=>({fontWeight:"inherit",color:e.palette.text.secondary})),m0e=C("li")(({theme:e})=>({display:"grid",backgroundColor:e.palette.neutral.light,borderRadius:e.shape.borderRadiusLarge,padding:e.spacing(.5),[e.breakpoints.up("md")]:{gridTemplateColumns:"2fr 3fr"},"& dl":{display:"grid",gridTemplateColumns:"auto 1fr",alignContent:"start",gap:e.spacing(1),padding:e.spacing(2),[e.breakpoints.up("md")]:{padding:e.spacing(4)}},a:{color:e.palette.links}})),g0e=C("div")(({theme:e})=>({backgroundColor:e.palette.background.paper,overflowX:"auto",padding:e.spacing(2),borderBottomLeftRadius:e.shape.borderRadiusLarge,borderBottomRightRadius:e.shape.borderRadiusLarge,[e.breakpoints.up("md")]:{padding:e.spacing(4),borderRadius:0,borderTopRightRadius:e.shape.borderRadiusLarge,borderBottomRightRadius:e.shape.borderRadiusLarge},"& code":{wordWrap:"break-word",whiteSpace:"pre-wrap",fontFamily:"monospace",lineHeight:1.5,fontSize:e.fontSizes.smallBody}})),v0e=({entry:e})=>{const{locationSettings:t}=Ja(),n=S1(e.createdAt,t.locale);return x(m0e,{children:[x("dl",{children:[l(Dl,{children:"Event id:"}),l("dd",{children:e.id}),l(Dl,{children:"Changed at:"}),l("dd",{children:n}),l(Dl,{children:"Event:"}),l("dd",{children:e.type}),l(Dl,{children:"Changed by:"}),l("dd",{title:e.createdBy,children:e.createdBy}),l(q,{condition:!!e.project,show:x(ve,{children:[l(Dl,{children:"Project:"}),l("dd",{children:l(hn,{to:`/projects/${e.project}`,children:e.project})})]})}),l(q,{condition:!!e.featureName,show:x(ve,{children:[l(Dl,{children:"Feature:"}),l("dd",{children:l(hn,{to:`/projects/${e.project}/features/${e.featureName}`,children:e.featureName})})]})}),l(q,{condition:!!e.environment,show:x(ve,{children:[l(Dl,{children:"Environment:"}),l("dd",{children:e.environment})]})})]}),l(q,{condition:e.data||e.preData,show:x(g0e,{children:[l(h0e,{children:"Changes:"}),l(D1,{entry:e})]})})]})},y0e=()=>{const[e,t]=w0e();return{eventSettings:e,setEventSettings:t}},b0e=()=>({showData:!1}),w0e=kE(`${ei}:useEventSettings:v1`,b0e()),CP=Bt("api/admin/events/search"),S0e=(e,t,n)=>{const[r,o]=m.useState(),[i,a]=m.useState(0),[s,c]=m.useState(0),u=m.useMemo(()=>({project:e,feature:t,query:n,limit:50}),[e,t,n]),{data:d,error:p,isValidating:f}=An([CP,u,s],()=>x0e(CP,{...u,offset:s}));m.useEffect(()=>{c(0),a(0),o(void 0)},[u]),m.useEffect(()=>{d&&(o(g=>[...(g==null?void 0:g.slice(0,s))||[],...d.events]),d.totalEvents&&a(d.totalEvents))},[d]);const h=m.useCallback(()=>{r&&!f&&c(r.length)},[r,f]);return{events:r,loading:!p&&!d,fetchNextPage:h,totalEvents:i,error:p}},x0e=(e,t)=>fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then(Rn("Event history")).then(n=>n.json()),C0e=e=>{const t=m.useRef(null);return m.useEffect(()=>{if(t.current){const n=o=>{o[0].isIntersecting&&e()},r=new IntersectionObserver(n);return r.observe(t.current),()=>r.disconnect()}},[e]),t},E0e=oo("ul")(({theme:e})=>({listStyleType:"none",margin:0,padding:0,display:"grid",gap:e.spacing(2)})),T0e=({title:e,project:t,feature:n,displayInline:r})=>{const[o,i]=m.useState(""),{events:a,totalEvents:s,fetchNextPage:c}=S0e(t,n,o),u=C0e(c),{eventSettings:d,setEventSettings:p}=y0e(),f=or(ml.breakpoints.down("md")),[h,g]=m.useState();m.useEffect(()=>a&&g(a),[a]);const v=()=>{p(A=>({showData:!A.showData}))},y=l(vo,{onChange:i,debounceTime:500}),b=l(Hr,{label:"Full events",control:l(Ya,{checked:d.showData,onChange:v,color:"primary"})});let k=`${(a==null?void 0:a.length)||0} of ${s||0}`;return x(Or,{disablePadding:r,disableBorder:r,header:l(Dn,{title:`${e} (${k})`,actions:x(ve,{children:[b,!f&&y]}),children:f&&y}),children:[r&&l(Le,{sx:{mt:4}}),l(q,{condition:!!(h&&h.length===0),show:()=>l("p",{children:"No events found."})}),l(q,{condition:!!(h&&h.length>0),show:()=>l(E0e,{children:h==null?void 0:h.map(A=>l(q,{condition:d.showData,show:()=>l(d0e,{entry:A}),elseShow:()=>l(v0e,{entry:A})},A.id))})}),l("div",{ref:u})]})},k0e=()=>{const{hasAccess:e}=m.useContext(yo);return l(q,{condition:e(fi),show:()=>l(T0e,{title:"Event log"}),elseShow:l(uM,{})})},pM=(e="",t="",n=[])=>{const[r,o]=m.useState(e),[i,a]=m.useState(t),[s,c]=m.useState(n),[u,d]=m.useState({}),{strategies:p}=Ad();return m.useEffect(()=>{o(e)},[e]),m.useEffect(()=>{a(t)},[t]),m.useEffect(()=>{c(n)},[JSON.stringify(n)]),{strategyName:r,strategyDesc:i,params:s,setStrategyName:o,setStrategyDesc:a,setParams:c,getStrategyPayload:()=>({name:r,description:i,parameters:s}),validateStrategyName:()=>r.length===0?(d(y=>({...y,name:"Name can not be empty."})),!1):p.some(y=>y.name===r)?(d(y=>({...y,name:"A strategy name with that name already exist"})),!1):!0,validateParams:()=>{let y=!0;for(const[b,w]of Object.entries(s))s.forEach((S,k)=>{S.name.length===0&&(d(A=>({...A,[`paramName${k}`]:"Name can not be empty"})),y=!1)});return y},setErrors:d,clearErrors:()=>{d({})},errors:u}},A0e=[{key:"string",label:"string"},{key:"percentage",label:"percentage"},{key:"list",label:"list"},{key:"number",label:"number"},{key:"boolean",label:"boolean"}],R0e=C("div")(({theme:e})=>({maxWidth:"400px",margin:e.spacing(2,0)})),_0e=C(To)(({theme:e})=>({borderStyle:"dashed",margin:e.spacing(2,0,3,0),borderColor:e.palette.neutral.border})),P0e=C("p")(({theme:e})=>({minWidth:"365px",width:"100%",marginBottom:e.spacing(2)})),I0e=C("div")(({theme:e})=>({display:"flex",alignItems:"center",marginBottom:e.spacing(2)})),O0e=C(Sr)(({theme:e})=>({minWidth:"365px",width:"100%"})),$0e=C(kd)(({theme:e})=>({minWidth:"365px",width:"100%",marginBottom:e.spacing(2)})),N0e=C(Sr)(({theme:e})=>({minWidth:"365px",marginBottom:e.spacing(2)})),L0e=C(Hr)(({theme:e})=>({marginTop:e.spacing(-1)})),M0e=({set:e,input:t,index:n,params:r,setParams:o,errors:i})=>{const a=s=>{e({type:s})};return x(R0e,{children:[l(_0e,{}),l(q,{condition:n===0,show:x(P0e,{children:["Parameters let you provide arguments to your strategy that it can access for evaluation. Read more in the"," ",l(Vr,{href:"https://docs.getunleash.io/reference/custom-activation-strategies#parameter-types",target:"_blank",rel:"noreferrer",children:"parameter types documentation"}),"."]})}),x(I0e,{children:[l(O0e,{autoFocus:!0,label:`Parameter name ${n+1}*`,onChange:s=>e({name:s.target.value}),value:t.name,error:!!(i!=null&&i[`paramName${n}`]),errorText:i==null?void 0:i[`paramName${n}`]}),l(xt,{title:"Remove parameter",arrow:!0,children:l(Ht,{onClick:()=>{o(r.filter((s,c)=>c!==n))},size:"large",children:l(go,{})})})]}),l($0e,{label:"Type*",name:"type",options:A0e,value:t.type,onChange:a,id:`prop-type-${n}-select`}),l(N0e,{rows:2,multiline:!0,label:`Parameter name ${n+1} description`,onChange:({target:s})=>e({description:s.value}),value:t.description}),l(L0e,{control:l(Ka,{checked:!!t.required,onChange:()=>e({required:!t.required})}),label:"Required"})]})},D0e=({input:e=[],updateParameter:t,setParams:n,errors:r})=>l("div",{style:{marginTop:"0.5rem"},children:e.map((o,i)=>l(M0e,{params:e,set:a=>t(i,a),index:i,input:e[i],setParams:n,errors:r},i))}),B0e=C("form")(({theme:e})=>({display:"flex",flexDirection:"column",height:"100%"})),F0e=C("div")(({theme:e})=>({maxWidth:400})),EP=C("p")(({theme:e})=>({marginBottom:e.spacing(1)})),TP=C(Sr)(({theme:e})=>({width:"100%",marginBottom:e.spacing(2)})),z0e=C(Ve)(({theme:e})=>({color:e.palette.primary.dark})),j0e=C("div")(({theme:e})=>({marginTop:"auto",display:"flex",justifyContent:"flex-end"})),U0e=C(Ve)(({theme:e})=>({marginLeft:e.spacing(3)})),fM=({children:e,handleSubmit:t,handleCancel:n,strategyName:r,strategyDesc:o,params:i,setParams:a,setStrategyName:s,validateStrategyName:c,setStrategyDesc:u,errors:d,mode:p,clearErrors:f})=>{const h=(v,y)=>{let b={...i[v]};i[v]=Object.assign({},b,y),a(w=>[...w])},g=()=>{a(v=>[...v,{name:"",type:"string",description:"",required:!1}])};return x(B0e,{onSubmit:t,children:[x(F0e,{children:[l(EP,{children:"What would you like to call your strategy?"}),l(TP,{disabled:p==="Edit",autoFocus:!0,label:"Strategy name*",value:r,onChange:v=>s(bl(v.target.value)),error:!!d.name,errorText:d.name,onFocus:f,onBlur:c}),l(EP,{children:"What is your strategy description?"}),l(TP,{label:"Strategy description",value:o,onChange:v=>u(v.target.value),rows:2,multiline:!0}),l(D0e,{input:i,updateParameter:h,setParams:a,errors:d}),l(z0e,{onClick:v=>{v.preventDefault(),g()},variant:"outlined",color:"secondary",startIcon:l(ca,{}),children:"Add parameter"})]}),x(j0e,{children:[e,l(U0e,{type:"button",onClick:n,children:"Cancel"})]})]})},W0e=()=>{const{setToastData:e,setToastApiError:t}=$t(),{uiConfig:n}=Ot(),r=gt(),{strategyName:o,strategyDesc:i,params:a,setParams:s,setStrategyName:c,setStrategyDesc:u,getStrategyPayload:d,validateStrategyName:p,validateParams:f,clearErrors:h,setErrors:g,errors:v}=pM(),{createStrategy:y,loading:b}=UE(),{refetchStrategies:w}=Ad();return x(Yr,{loading:b,title:"Create strategy type",description:`The strategy type and the parameters will be selectable when adding an activation strategy to a toggle in the environments.
325
- The parameter defines the type of activation strategy. E.g. you can create a type 'Teams' and add a parameter 'List'. Then it's easy to add team names to the activation strategy`,documentationLink:"https://docs.getunleash.io/reference/custom-activation-strategies",documentationLinkLabel:"Custom strategies documentation",formatApiCode:()=>`curl --location --request POST '${n.unleashUrl}/api/admin/strategies' \\
326
- --header 'Authorization: INSERT_API_KEY' \\
327
- --header 'Content-Type: application/json' \\
328
- --data-raw '${JSON.stringify(d(),void 0,2)}'`,children:[l(gL,{alert:!0}),l(fM,{errors:v,handleSubmit:async T=>{if(h(),T.preventDefault(),p()&&f()){const P=d();try{await y(P),w(),r(`/strategies/${o}`),e({title:"Strategy created",text:"Successfully created strategy",confetti:!0,type:"success"})}catch(_){t(ht(_))}}},handleCancel:()=>{r(Ao)},strategyName:o,setStrategyName:c,validateStrategyName:p,strategyDesc:i,setStrategyDesc:u,params:a,setParams:s,mode:"Create",setErrors:g,clearErrors:h,children:l(Pd,{name:"strategy",permission:kv,children:"Create strategy"})})]})},dT=e=>{const{data:t,error:n,mutate:r}=An(e?Bt(`api/admin/strategies/${e}`):null,H0e),o=m.useCallback(()=>{r().catch(console.warn)},[r]);return{strategyDefinition:t,refetchStrategy:o,loading:!n&&!t,error:n}},H0e=e=>fetch(e).then(Rn("Strategy")).then(t=>t.json()),V0e=()=>{const{setToastData:e,setToastApiError:t}=$t(),{uiConfig:n}=Ot(),r=gt(),o=ir("name"),{strategyDefinition:i}=dT(o),{strategyName:a,strategyDesc:s,params:c,setParams:u,setStrategyName:d,setStrategyDesc:p,getStrategyPayload:f,validateParams:h,clearErrors:g,setErrors:v,errors:y}=pM(i==null?void 0:i.name,i==null?void 0:i.description,i==null?void 0:i.parameters),{updateStrategy:b,loading:w}=UE(),{refetchStrategies:S}=Ad();return l(Yr,{loading:w,title:"Edit strategy type",description:`The strategy type and the parameters will be selectable when adding an activation strategy to a toggle in the environments.
329
- The parameter defines the type of activation strategy. E.g. you can create a type 'Teams' and add a parameter 'List'. Then it's easy to add team names to the activation strategy`,documentationLink:"https://docs.getunleash.io/reference/custom-activation-strategies",documentationLinkLabel:"Custom strategies documentation",formatApiCode:()=>`curl --location --request PUT '${n.unleashUrl}/api/admin/strategies/${o}' \\
330
- --header 'Authorization: INSERT_API_KEY' \\
331
- --header 'Content-Type: application/json' \\
332
- --data-raw '${JSON.stringify(f(),void 0,2)}'`,children:l(fM,{errors:y,handleSubmit:async R=>{if(g(),R.preventDefault(),h()){const P=f();try{await b(P),r(`/strategies/${a}`),e({type:"success",title:"Success",text:"Successfully updated strategy"}),S()}catch(_){t(ht(_))}}},handleCancel:()=>{r(Ao)},strategyName:a,setStrategyName:d,strategyDesc:s,setStrategyDesc:p,params:c,setParams:u,mode:"Edit",setErrors:v,clearErrors:g,children:l(Ic,{permission:Qf})})})},G0e=()=>{const{makeRequest:e,createRequest:t}=Yn({propagateErrors:!0});return{setSplashSeen:async r=>{const o=`api/admin/splash/${r}`,i=t(o,{method:"POST"});try{return await e(i.caller,i.id)}catch{console.log("An exception was caught and handled.")}}}},hM=()=>x(tn,{severity:"warning",children:["Remember to update your Unleash client! New operators require new SDK versions. ",l(q0e,{}),"."]}),q0e=()=>l("a",{href:"https://docs.getunleash.io/reference/strategy-constraints#strategy-constraint-operators",target:"_blank",rel:"noreferrer",children:"Read more"}),K0e=C("section")(({theme:e})=>({backgroundColor:e.palette.primary.light,minHeight:"100vh",padding:e.spacing(2),display:"grid",gap:e.spacing(2),alignItems:"center",alignContent:"center",justifyContent:"center",gridTemplateColumns:"minmax(0,auto)",fontWeight:e.fontWeight.thin})),Y0e=C("div")(({theme:e})=>({position:"relative",padding:e.spacing(4),borderRadius:e.spacing(1),backgroundColor:e.palette.primary.main,color:e.palette.common.white,[e.breakpoints.up("md")]:{padding:e.spacing(8)}})),X0e=C("header")(({theme:e})=>({textAlign:"center"})),J0e=C("h1")(({theme:e})=>({fontWeight:"inherit"})),Q0e=C(Ht)(({theme:e})=>({position:"absolute",top:0,right:0,color:"inherit"})),Z0e=C("p")(({theme:e})=>({maxWidth:e.spacing(64),margin:e.spacing(3,"auto",0,"auto")})),ebe=C("div")(({theme:e})=>({margin:e.spacing(4,0),padding:e.spacing(4,0),borderTop:"1px solid",borderBottom:"1px solid",borderTopColor:e.palette.primary.light,borderBottomColor:e.palette.primary.light})),tbe=C("ul")(({theme:e})=>({padding:e.spacing(2,0),[e.breakpoints.up("md")]:{padding:e.spacing(2,4)},"& li + li":{marginTop:e.spacing(.5)},"& strong":{padding:e.spacing(0,.5),fontSize:e.fontSizes.smallBody,fontWeight:"inherit",backgroundColor:"rgba(0, 0, 0, 0.2)"}})),nbe=C("footer")(({theme:e})=>({display:"grid",gap:e.spacing(4),textAlign:"center",justifyItems:"center"})),rbe=C("a")(({theme:e})=>({color:"inherit"})),obe=()=>{const e=gt();return x(K0e,{children:[x(Y0e,{children:[x(X0e,{children:[l(J0e,{children:"New strategy operators"}),l(Q0e,{onClick:()=>e("/"),size:"large",children:l(c9,{titleAccess:"Close"})}),l(Z0e,{children:"We've added some new feature strategy constraint operators. Fine-tune your feature targeting like never before."})]}),x(ebe,{children:[l("p",{children:"For example:"}),x(tbe,{children:[x("li",{children:[l("span",{children:"Toggle features at dates: "}),x("span",{children:[l("strong",{children:"DATE_BEFORE"})," ",l("strong",{children:"DATE_AFTER"})]})]}),x("li",{children:[l("span",{children:"Toggle features for versions: "}),x("span",{children:[l("strong",{children:"SEMVER_EQ"})," ",l("strong",{children:"SEMVER_GT"})," ",l("strong",{children:"SEMVER_LT"})]})]}),x("li",{children:[l("span",{children:"Toggle features for strings: "}),x("span",{children:[l("strong",{children:"STR_CONTAINS"})," ",l("strong",{children:"STR_ENDS_WITH"})," ",l("strong",{children:"STR_STARTS_WITH"})]})]}),x("li",{children:[l("span",{children:"Toggle features for numbers: "}),x("span",{children:[l("strong",{children:"NUM_GT"})," ",l("strong",{children:"NUM_GTE"})," ",l("strong",{children:"NUM_LT"})," ",l("strong",{children:"NUM_LTE"})]})]})]})]}),x(nbe,{children:[x("p",{children:[x(rbe,{href:"https://docs.getunleash.io/reference/strategy-constraints#numeric-operators",target:"_blank",rel:"noreferrer",children:["Read all about operators in our in-depth"," ",l("strong",{children:"docs"})]}),"."]}),l("p",{children:l(Ve,{sx:t=>({background:"white !important",color:t.palette.primary.main}),variant:"contained",component:hn,to:"/",children:"Fine, whatever, I have work to do!"})})]})]}),l(hM,{})]})},mM=()=>{const e=Nh();return{splash:e.data&&"splash"in e.data?e.data.splash:void 0,refetchSplash:e.refetchAuth,loading:e.loading,error:e.error}},ibe=["operators"],abe=[],sbe=()=>{const e=ir("splashId"),t=cbe(e),{refetchSplash:n}=mM(),{setSplashSeen:r}=G0e();if(lbe("Escape","/"),m.useEffect(()=>{e&&t&&r(e).then(()=>n()).catch(console.warn)},[e,t]),!t)return null;switch(e){case"operators":return l(obe,{});default:return l(kc,{to:"/",replace:!0})}},lbe=(e,t)=>{const n=gt();m.useEffect(()=>{const r=o=>{o.code===e&&n(t)};return window.addEventListener("keydown",r),()=>window.removeEventListener("keydown",r)},[e,t,n])},cbe=e=>ibe.includes(e),gM=({onSubmit:e,onCancel:t,modal:n})=>{const{setToastData:r,setToastApiError:o}=$t(),{uiConfig:i}=Ot(),{contextName:a,contextDesc:s,legalValues:c,stickiness:u,setContextName:d,setContextDesc:p,setLegalValues:f,setStickiness:h,getContextPayload:g,validateContext:v,clearErrors:y,setErrors:b,errors:w}=GL(),{createContext:S,loading:k}=N1(),{refetchUnleashContext:A}=Rl();return l(Yr,{loading:k,title:"Create context",description:`Context fields are a basic building block used in Unleash to control roll-out.
333
- They can be used together with strategy constraints as part of the activation strategy evaluation.`,documentationLink:"https://docs.getunleash.io/reference/unleash-context#custom-context-fields",documentationLinkLabel:"Context fields documentation",formatApiCode:()=>`curl --location --request POST '${i.unleashUrl}/api/admin/context' \\
334
- --header 'Authorization: INSERT_API_KEY' \\
335
- --header 'Content-Type: application/json' \\
336
- --data-raw '${JSON.stringify(g(),void 0,2)}'`,modal:n,children:l(VL,{errors:w,handleSubmit:async P=>{if(P.preventDefault(),P.stopPropagation(),await v()){const I=g();try{await S(I),A(),r({title:"Context created",confetti:!0,type:"success"}),e()}catch($){o(ht($))}}},onCancel:t,contextName:a,setContextName:d,contextDesc:s,setContextDesc:p,legalValues:c,setLegalValues:f,stickiness:u,setStickiness:h,mode:"Create",validateContext:v,setErrors:b,clearErrors:y,children:l(Pd,{name:"context",permission:Av})})})},ube=()=>{const e=gt();return l(gM,{onSubmit:()=>e("/context"),onCancel:()=>e(Ao)})},pT=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Yn({propagateErrors:!0});return{createSegment:async c=>{const u=t(fT(),{method:"POST",body:JSON.stringify(c)});return e(u.caller,u.id)},deleteSegment:async c=>{const u=t(kP(c),{method:"DELETE"});return e(u.caller,u.id)},updateSegment:async(c,u)=>{const d=t(kP(c),{method:"PUT",body:JSON.stringify(u)});return e(d.caller,d.id)},setStrategySegments:async c=>{const u=t(dbe(),{method:"POST",body:JSON.stringify(c)});return e(u.caller,u.id)},errors:n,loading:r}},fT=()=>"api/admin/segments",kP=e=>`${fT()}/${e}`,dbe=()=>`${fT()}/strategies`,hT=e=>{const t=!!(e&&e.length===0),[n,r]=m.useState(t),{validateConstraint:o}=Id();return m.useEffect(()=>{if(!e)return;const i=e.map(a=>o(a));Promise.all(i).then(()=>r(!0)).catch(()=>r(!1))},[e]),n},_l=e=>{var s;const{uiConfig:t}=Ot(),n=Bt(e?`api/admin/segments/strategies/${e}`:"api/admin/segments"),{data:r,error:o,mutate:i}=zh(!!((s=t.flags)!=null&&s.SE),[],n,()=>pbe(n),{refreshInterval:15*1e3}),a=m.useCallback(()=>{i().catch(console.warn)},[i]);return{segments:r,refetchSegments:a,loading:!o&&!r,error:o}},pbe=async e=>fetch(e).then(Rn("Segments")).then(t=>t.json()).then(t=>t.segments),fbe=(e,t)=>{const[n,r]=m.useState(),o=e!==t;return m.useEffect(()=>{r(void 0),e&&o&&hbe(e).then(mbe).then(r).catch(()=>r(void 0))},[e,o]),n},hbe=e=>fetch(Bt("api/admin/segments/validate"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e})}),mbe=async e=>e.ok?void 0:(await e.json()).details[0].message,vM=(e="",t="",n,r=[])=>{const[o,i]=m.useState(e),[a,s]=m.useState(t),[c,u]=m.useState(n),[d,p]=m.useState(r),[f,h]=m.useState({}),g=fbe(o,e);return m.useEffect(()=>{i(e)},[e]),m.useEffect(()=>{s(t)},[t]),m.useEffect(()=>{u(n)},[n]),m.useEffect(()=>{p(r)},[JSON.stringify(r)]),m.useEffect(()=>{h(b=>({...b,name:g}))},[g]),{name:o,setName:i,description:a,setDescription:s,project:c,setProject:u,constraints:d,setConstraints:p,getSegmentPayload:()=>({name:o,description:a,project:c,constraints:d}),clearErrors:()=>{h({})},errors:f}},yM=e=>{const t=Bt(`api/admin/segments/${e}/strategies`),{data:n,error:r}=zh(e,[],t,()=>gbe(t)),o=m.useCallback(()=>{io(t).catch(console.warn)},[t]);return{strategies:(n==null?void 0:n.strategies)||[],refetchUsedSegments:o,loading:!r&&!n,error:r}},gbe=e=>fetch(e,{method:"GET"}).then(Rn("Strategies by segment")).then(t=>t.json()),vbe=({strategyDefinition:e})=>l("p",{children:e==null?void 0:e.description}),ybe=Xoe(zne,e=>({root:{height:8},thumb:{height:24,width:24,backgroundColor:e.palette.background.paper,border:"2px solid currentColor"},active:{},valueLabel:{},track:{height:8,borderRadius:e.shape.borderRadius},rail:{height:8,borderRadius:e.shape.borderRadius}})),bbe=As()(e=>({slider:{width:"100%",maxWidth:"100%"},margin:{height:e.spacing(3)}})),wbe=[{value:0,label:"0%"},{value:25,label:"25%"},{value:50,label:"50%"},{value:75,label:"75%"},{value:100,label:"100%"}],bM=({name:e,value:t,onChange:n,disabled:r=!1})=>{const{classes:o}=bbe(),i=a=>`${a}%`;return x("div",{className:o.slider,children:[l(se,{id:"discrete-slider-always",variant:"h3",gutterBottom:!0,component:"h3",children:e}),l(ybe,{min:0,max:100,value:t,getAriaValueText:i,"aria-labelledby":"discrete-slider-always",step:1,"data-testid":Eie,marks:wbe,onChange:n,valueLabelDisplay:"on",disabled:r})]})},ff=e=>{const t=Number(ol(e));return Number.isFinite(t)?t:0},ol=e=>String(e??"").trim(),Ks=e=>ol(e).split(",").map(t=>t.trim()).filter(Boolean),Sbe=({updateParameter:e,parameters:t,editable:n=!0})=>{const r=ir("projectId"),{defaultStickiness:o,loading:i}=JL(r),a=d=>p=>{e(d,p)},s=(d,p)=>{e("rollout",p.toString())},c=t.rollout!==void 0?ff(t.rollout):100,u=m.useMemo(()=>t.stickiness===""&&!i?o:ol(t.stickiness),[i,t.stickiness]);return t.stickiness===""&&a("stickiness")(u),i?l(rh,{}):x("div",{children:[l(bM,{name:"Rollout",value:c,disabled:!n,onChange:s}),l("br",{}),x("div",{children:[x(se,{variant:"subtitle2",style:{marginBottom:"1rem",display:"flex",gap:"1ch"},component:"h2",children:["Stickiness",l(Qu,{tooltip:"Stickiness defines what parameter should be used to ensure that your users get consistency in features. By default unleash will use the first value present in the context in the order of userId, sessionId and random."})]}),l(YL,{label:"Stickiness",value:u,editable:n,dataTestId:kie,onChange:d=>a("stickiness")(d.target.value)})," ",l("br",{}),l("br",{}),x(se,{variant:"subtitle2",style:{marginBottom:"1rem",display:"flex",gap:"1ch"},component:"h2",children:["GroupId",l(Qu,{tooltip:"GroupId is used to ensure that different toggles will hash differently for the same user. The groupId defaults to feature toggle name, but you can override it to correlate rollout of multiple feature toggles."})]}),l(Sr,{label:"groupId",id:"groupId-input",value:ol(t.groupId),disabled:!n,onChange:d=>a("groupId")(d.target.value),"data-testid":Aie})]})]})},Ca=({text:e,maxWidth:t,maxLength:n,className:r,...o})=>l(q,{condition:((e==null?void 0:e.length)??0)>n,show:l(xt,{title:e,arrow:!0,children:l("span",{"data-loading":!0,className:r,style:{maxWidth:`${t}px`,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"inline-block",verticalAlign:"middle"},...o,children:e})}),elseShow:l("span",{className:r,children:e})}),xbe=C("div")(({theme:e})=>({display:"grid",gap:e.spacing(1)})),Cbe=C("div")(({theme:e})=>({display:"flex",gap:e.spacing(1),flexWrap:"wrap"})),Ebe=C("div")(({theme:e})=>({display:"flex",gap:e.spacing(1),alignItems:"start"})),wM=({name:e,list:t,setConfig:n,disabled:r,errors:o})=>{const[i,a]=m.useState(""),s="Enter",c=h=>{d(h)},u=h=>{(h==null?void 0:h.key)===s&&(d(h),h.preventDefault(),h.stopPropagation())},d=h=>{h.preventDefault();const g=h.target.value;if(g){const v=g.split(/,\s*/).filter(y=>!t.includes(y));if(v.length>0){const y=t.concat(v).filter(b=>b);n(e,y.join(","))}a("")}},p=h=>{t[h]=null,n(e,t.length===1?"":t.filter(Boolean).join(","))},f=h=>{a(h.currentTarget.value)};return x(xbe,{children:[x(se,{variant:"subtitle2",component:"h2",children:["List of ",e]}),l(q,{condition:t.length>0,show:l(Cbe,{children:t.map((h,g)=>l(Ts,{label:l(Ca,{maxWidth:"300",text:h,maxLength:50}),onDelete:r?void 0:()=>p(g),title:"Remove value"},g+h))})}),l(q,{condition:!r,show:x(Ebe,{children:[l(wn,{error:!!o.getFormError(e),helperText:o.getFormError(e),name:"input_field",variant:"outlined",label:"Add items",id:"input-add-items",value:i,size:"small",placeholder:"",onBlur:c,onChange:f,onKeyDown:u,"data-testid":Rie}),l(Ve,{onClick:d,"data-testid":_ie,variant:"outlined",color:"secondary",startIcon:l(ca,{}),children:"Add"})]})})]})},Tbe=({editable:e,parameters:t,updateParameter:n,errors:r})=>l("div",{children:l(wM,{name:"userIds",list:Ks(t.userIds),disabled:!e,setConfig:n,errors:r})}),Cp=({text:e})=>e?l(Le,{sx:t=>({color:t.palette.text.secondary,fontSize:t.fontSizes.smallerBody,marginTop:t.spacing(1)}),children:e}):null,kbe=({definition:e,parameters:t,updateParameter:n,editable:r,errors:o})=>{const{type:i,name:a,description:s,required:c}=e,u=t[a],d=o.getFormError(a),p=c?`${a} * `:a,f=b=>{n(a,b.target.value)},h=b=>{n(a,ol(b.target.value))},g=(b,w)=>{n(a,w.toString())},v=(b,w)=>{n(a,String(w))},y=(b,w)=>{n(b,Ks(w).join(","))};if(i==="percentage")return x("div",{children:[l(bM,{name:a,onChange:g,disabled:!r,value:ff(t[a]),minLabel:"off",maxLabel:"on"}),l(Cp,{text:s})]});if(i==="list")return x("div",{children:[l(wM,{name:a,list:Ks(t[a]),disabled:!r,setConfig:y,errors:o}),l(Cp,{text:s})]});if(i==="number")return x("div",{children:[l(wn,{error:!!d,helperText:d,variant:"outlined",size:"small","aria-required":c,style:{width:"100%"},disabled:!r,label:p,onChange:f,value:u}),l(Cp,{text:s})]});if(i==="boolean"){const w=ol(t[a])==="true";return x("div",{children:[l(Hr,{label:a,control:l(Ya,{name:a,onChange:v,checked:w})}),l(Cp,{text:s})]})}return x("div",{children:[l(wn,{rows:1,placeholder:"",variant:"outlined",size:"small",style:{width:"100%"},"aria-required":c,disabled:!r,error:!!d,helperText:d,name:a,label:p,onChange:h,value:ol(t[a])}),l(Cp,{text:s})]})},Abe=oo("div")(({theme:e})=>({display:"grid",gap:e.spacing(4)})),Rbe=({parameters:e,strategyDefinition:t,updateParameter:n,editable:r,errors:o})=>!t||t.parameters.length===0?null:l(Abe,{children:t.parameters.map((i,a)=>l("div",{children:l(kbe,{definition:i,parameters:e,updateParameter:n,editable:r,errors:o})},a))}),_be=({hasAccess:e,strategy:t,strategyDefinition:n,setStrategy:r,validateParameter:o,errors:i})=>{const{context:a}=Rl(),s=(c,u)=>{r(Ti(d=>{d.parameters=d.parameters??{},d.parameters[c]=u})),o(c,u)};switch(t.name){case"default":return l(vbe,{strategyDefinition:n});case"flexibleRollout":return l(Sbe,{context:a,parameters:t.parameters??{},updateParameter:s,editable:e});case"userWithId":return l(Tbe,{parameters:t.parameters??{},updateParameter:s,editable:e,errors:i});default:return l(Rbe,{strategyDefinition:n,parameters:t.parameters??{},updateParameter:s,editable:e,errors:i})}},Pbe=({projectId:e,featureId:t,environmentId:n,children:r})=>{const o=BT(e,t),{feature:i}=Ss(e,t),a=l(hn,{to:o,children:"feature toggle page"});return l(q,{condition:Ibe(i,n),show:r,elseShow:x(tn,{severity:"warning",children:["This feature toggle is currently disabled in the"," ",l("strong",{children:n})," environment. Any changes made here will not take effect until the toggle has been enabled on the ",a,"."]})})},Ibe=(e,t)=>{const n=e.environments.find(r=>r.name===t);return n?n.enabled:!1},mT="NOT_IN",B1="IN",gT="STR_ENDS_WITH",vT="STR_STARTS_WITH",yT="STR_CONTAINS",bT="NUM_EQ",wT="NUM_GT",ST="NUM_GTE",xT="NUM_LT",CT="NUM_LTE",F1="DATE_AFTER",ET="DATE_BEFORE",TT="SEMVER_EQ",kT="SEMVER_GT",AT="SEMVER_LT",Obe=[B1,mT,yT,vT,gT,bT,wT,ST,xT,CT,ET,F1,TT,kT,AT],ms=[yT,vT,gT],sc=[B1,mT],Ou=[bT,wT,ST,xT,CT],Ii=[ET,F1],$u=[TT,kT,AT],SM=[...$u,...Ii,...Ou];[...ms,...sc];const $be=[...ms,...Ii,...SM],Mn=(e,t)=>e.some(n=>n===t),Nbe=C("div")(({theme:e})=>({padding:e.spacing(2)})),Lbe=C("div")(({theme:e})=>({display:"flex",alignItems:"center",marginTop:e.spacing(2),borderTop:`1px solid ${e.palette.divider}`,width:"100%",padding:e.spacing(2)})),Mbe=C("div")({marginLeft:"auto"}),Dbe=C(Ve)(({theme:e})=>({marginRight:e.spacing(1),minWidth:"125px"})),Bbe=C(Ve)(({theme:e})=>({marginLeft:e.spacing(1),minWidth:"125px"})),Fbe=({localConstraint:e,children:t,triggerTransition:n,setAction:r,onSubmit:o})=>x(ve,{children:[x(Nbe,{children:[l(q,{condition:Mn($be,e.operator),show:l(hM,{})}),t]}),l(Lbe,{children:x(Mbe,{children:[l(Dbe,{type:"button",onClick:o,variant:"contained",color:"primary","data-testid":"CONSTRAINT_SAVE_BUTTON",children:"Save"}),l(Bbe,{onClick:()=>{r(YM),n()},children:"Cancel"})]})})]}),xM=({compact:e})=>l(Le,{sx:{backgroundColor:"primary.light",p:e?"1px":"2px",borderRadius:"50%",width:e?"18px":"24px",height:e?"18px":"24px",marginRight:"13px"},children:l(Sle,{sx:t=>({fill:t.palette.common.white,display:"block",width:e?t.spacing(2):t.spacing(2.5),height:e?t.spacing(2):t.spacing(2.5)})})}),zbe=(e,t)=>{const n=`To satisfy this constraint, values passed into the SDK as ${t} must`;if(e===B1)return`${n} include:`;if(e===mT)return`${n} not include:`;if(e===gT)return`${n} end with:`;if(e===vT)return`${n} start with:`;if(e===yT)return`${n} contain:`;if(e===bT)return`${n} match:`;if(e===wT)return`${n} be greater than:`;if(e===ST)return`${n} be greater than or equal to:`;if(e===xT)return`${n} be less than:`;if(e===CT)return`${n} be less than or equal to:`;if(e===F1)return`${n} be after the following date`;if(e===ET)return`${n} be before the following date:`;if(e===TT)return`${n} match the following version:`;if(e===kT)return`${n} be greater than the following version:`;if(e===AT)return`${n} be less than the following version:`},Tx=e=>jbe[e],jbe={IN:"is one of",NOT_IN:"is not one of",STR_CONTAINS:"is a string that contains",STR_STARTS_WITH:"is a string that starts with",STR_ENDS_WITH:"is a string that ends with",NUM_EQ:"is a number equal to",NUM_GT:"is a number greater than",NUM_GTE:"is a number greater than or equal to",NUM_LT:"is a number less than",NUM_LTE:"is a number less than or equal to",DATE_BEFORE:"is a date before",DATE_AFTER:"is a date after",SEMVER_EQ:"is a SemVer equal to",SEMVER_GT:"is a SemVer greater than",SEMVER_LT:"is a SemVer less than"},Ube=C("div")(({theme:e})=>({lineHeight:1.1,marginTop:-2,marginBottom:-10})),AP=C("div")(({theme:e})=>({fontSize:e.fontSizes.smallBody})),RP=C("div")(({theme:e})=>({fontSize:e.fontSizes.smallerBody,color:e.palette.neutral.main,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"})),Wbe=C(ks)(({theme:e})=>({[e.breakpoints.between(1101,1365)]:{width:"170px",marginRight:e.spacing(.5)}})),Hbe=C(ja,{shouldForwardProp:e=>e!=="separator"})(({theme:e,separator:t})=>t?{position:"relative",overflow:"visible",marginTop:e.spacing(2),"&:before":{content:'""',display:"block",position:"absolute",top:e.spacing(-1),left:0,right:0,borderTop:"1px solid",borderTopColor:e.palette.divider}}:{}),Vbe=C("div")(({theme:e})=>({lineHeight:1.2})),Gbe=({options:e,value:t,onChange:n})=>{const[r,o]=m.useState(!1);return x(Wbe,{variant:"outlined",size:"small",fullWidth:!0,children:[l(Ih,{htmlFor:"operator-select",children:"Operator"}),l(Oh,{id:"operator-select",name:"operator",label:"Operator",value:t,open:r,onOpen:()=>o(!0),onClose:()=>o(!1),onChange:s=>{n(s.target.value)},renderValue:()=>x(Ube,{children:[l(AP,{children:t}),l(RP,{children:Tx(t)})]}),children:e.map(s=>l(Hbe,{value:s,separator:qbe(e,s),children:x(Vbe,{children:[l(AP,{children:s}),l(RP,{children:Tx(s)})]})},s))})]})},qbe=(e,t)=>t===e[0]?!1:Kbe.some(n=>n[0]===t),Kbe=[sc,ms,Ou,Ii,$u],sh="currentTime",CM=e=>Obe.filter(t=>!(Mn(Ii,t)&&e!==sh||!Mn(Ii,t)&&e===sh)),EM=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0033 3C10.6666 3 9.62387 4.15704 9.76236 5.48654L10.6238 13.7567C10.6974 14.4633 11.293 15 12.0033 15C12.7137 15 13.3093 14.4633 13.3829 13.7567L14.2443 5.48655C14.3828 4.15704 13.34 3 12.0033 3ZM12.0033 17C11.0368 17 10.2533 17.7835 10.2533 18.75C10.2533 19.7165 11.0368 20.5 12.0033 20.5C12.9698 20.5 13.7533 19.7165 13.7533 18.75C13.7533 17.7835 12.9698 17 12.0033 17Z"})),Ybe=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.10831 2.60839C3.71687 2.23054 3.09322 2.23475 2.70696 2.62102C2.31643 3.01154 2.31643 3.64471 2.70696 4.03523L10.414 11.7423L10.6238 13.7566C10.6974 14.4631 11.293 14.9998 12.0033 14.9998C12.4551 14.9998 12.8605 14.7827 13.1147 14.4429L19.6775 21.0058C20.068 21.3963 20.7012 21.3963 21.0917 21.0058C21.478 20.6195 21.4822 19.9959 21.1044 19.6044C21.1001 19.6003 21.0958 19.5961 21.0916 19.5919L4.12102 2.62132C4.11674 2.61704 4.1125 2.61273 4.10831 2.60839ZM13.8264 9.4983L14.2443 5.4864C14.3828 4.15689 13.34 2.99985 12.0033 2.99985C10.6859 2.99985 9.65401 4.12375 9.7571 5.42898L13.8264 9.4983ZM12.0033 16.9998C11.0368 16.9998 10.2533 17.7834 10.2533 18.7498C10.2533 19.7163 11.0368 20.4998 12.0033 20.4998C12.9698 20.4998 13.7533 19.7163 13.7533 18.7498C13.7533 17.7834 12.9698 16.9998 12.0033 16.9998Z"})),TM=oo(Ht)(({theme:e})=>({width:"28px",minWidth:"28px",maxWidth:"28px",height:"auto",backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadius,padding:"0 1px 0",marginRight:"1rem","&:hover":{background:e.palette.background.application},[e.breakpoints.between(1101,1365)]:{marginRight:"0.5rem",alignItems:"center"}})),kM=oo(Ht)(({theme:e})=>({width:"28px",minWidth:"28px",maxWidth:"28px",color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,borderRadius:e.shape.borderRadius,marginRight:"1rem",padding:"0 1px 0","&:hover":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main},[e.breakpoints.between(1101,1365)]:{marginRight:"0.5rem",alignItems:"center"}})),Xbe=({localConstraint:e,setInvertedOperator:t})=>l(xt,{title:e.inverted?"Remove negation":"Negate operator",arrow:!0,children:l(Le,{sx:{display:"flex",alignItems:"stretch"},children:l(q,{condition:!!e.inverted,show:l(kM,{className:"operator-is-active",onClick:t,disableRipple:!0,children:l(EM,{})}),elseShow:l(TM,{onClick:t,disableRipple:!0,children:l(Ybe,{})})})})}),AM=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M5 18C5 18.55 5.45 19 6 19H18C18.55 19 19 18.55 19 18C19 17.45 18.55 17 18 17H6C5.45 17 5 17.45 5 18ZM9.5 12.8H14.5L15.16 14.4C15.31 14.76 15.66 15 16.05 15C16.74 15 17.2 14.29 16.93 13.66L13.05 4.69C12.87 4.27 12.46 4 12 4C11.54 4 11.13 4.27 10.95 4.69L7.07 13.66C6.8 14.29 7.27 15 7.96 15C8.35 15 8.7 14.76 8.85 14.4L9.5 12.8ZM12 5.98L13.87 11H10.13L12 5.98Z"})),Jbe=e=>m.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.10831 2.60839C3.71687 2.23054 3.09322 2.23475 2.70696 2.62102C2.31643 3.01154 2.31643 3.64471 2.70696 4.03523L8.65871 9.98698L7.07 13.6598C6.8 14.2898 7.27 14.9998 7.96 14.9998C8.35 14.9998 8.7 14.7598 8.85 14.3998L9.5 12.7998H11.4716L15.6716 16.9998H6C5.45 16.9998 5 17.4498 5 17.9998C5 18.5498 5.45 18.9998 6 18.9998H17.6716L19.6775 21.0058C20.068 21.3963 20.7012 21.3963 21.0917 21.0058C21.478 20.6195 21.4822 19.9959 21.1044 19.6044C21.1001 19.6003 21.0958 19.5961 21.0916 19.5919L4.12102 2.62132C4.11674 2.61704 4.1125 2.61273 4.10831 2.60839ZM16.1235 11.7954L13.05 4.68985C12.87 4.26985 12.46 3.99985 12 3.99985C11.54 3.99985 11.13 4.26985 10.95 4.68985L10.3666 6.03851L11.5408 7.21265L12 5.97985L13.0045 8.67635L16.1235 11.7954Z"})),Qbe=({localConstraint:e,setCaseInsensitive:t})=>l(xt,{title:e.caseInsensitive?"Make it case sensitive":"Make it case insensitive",arrow:!0,children:l(Le,{sx:{display:"flex",alignItems:"stretch"},children:l(q,{condition:!!e.caseInsensitive,show:l(TM,{onClick:t,disableRipple:!0,children:l(Jbe,{})}),elseShow:l(kM,{className:"operator-is-active",onClick:t,disableRipple:!0,children:l(AM,{})})})})}),Zbe=C("div")(({theme:e})=>({marginLeft:"auto",whiteSpace:"nowrap",[e.breakpoints.down("sm")]:{display:"none"}})),RM=({onEdit:e,onDelete:t,disableDelete:n=!1,disableEdit:r=!1})=>{const o=e&&(a=>{a.stopPropagation(),e()}),i=t&&(a=>{a.stopPropagation(),t()});return x(Zbe,{children:[l(q,{condition:!!o&&!r,show:l(xt,{title:"Edit constraint",arrow:!0,children:l(Ht,{type:"button",onClick:o,disabled:r,children:l(Ui,{})})})}),l(q,{condition:!!i&&!n,show:l(xt,{title:"Delete constraint",arrow:!0,children:l(Ht,{type:"button",onClick:i,disabled:n,children:l(go,{})})})})]})},ewe=C("div")(({theme:e})=>({display:"flex",alignItems:"center",width:"100%",[e.breakpoints.down("sm")]:{flexDirection:"column",alignItems:"center",position:"relative"}})),twe=C("div")(({theme:e})=>({display:"flex",alignItems:"center",[e.breakpoints.down(770)]:{flexDirection:"column"}})),nwe=C("div")(({theme:e})=>({[e.breakpoints.down(770)]:{marginTop:e.spacing(2)},display:"inline-flex"})),rwe=C("div")(({theme:e})=>({marginRight:e.spacing(2),width:"200px",[e.breakpoints.between(1101,1365)]:{width:"170px",marginRight:e.spacing(1)}})),owe=C(kd)(({theme:e})=>({marginRight:e.spacing(2),width:"200px",[e.breakpoints.between(1101,1365)]:{width:"170px",marginRight:e.spacing(1)}})),iwe=C("p")(({theme:e})=>({maxWidth:"400px",fontSize:e.fontSizes.smallBody,[e.breakpoints.down("xl")]:{display:"none"}})),awe=({compact:e,localConstraint:t,setLocalConstraint:n,setContextName:r,setOperator:o,onDelete:i,setInvertedOperator:a,setCaseInsensitive:s})=>{const{context:c}=Rl(),{contextName:u,operator:d}=t,[p,f]=m.useState(!1),{uiConfig:h}=Ot(),g=!!h.flags.caseInsensitiveInOperators;if(m.useEffect(()=>{u===sh&&!Mn(Ii,d)?n(b=>({...b,operator:F1,value:new Date().toISOString()})):u!==sh&&Mn(Ii,d)&&o(B1),Mn(ms,d)||Mn(sc,d)&&g?f(!0):f(!1)},[u,o,d,n,g]),!c)return null;const v=c.map(b=>({key:b.name,label:b.name})),y=b=>{Mn(ms,b)||Mn(sc,b)&&g?f(!0):f(!1),Mn(Ii,b)?n(w=>({...w,operator:b,value:new Date().toISOString()})):o(b)};return x(ewe,{children:[l(xM,{}),x(twe,{children:[l("div",{children:l(owe,{id:"context-field-select",name:"contextName",label:"Context Field",autoFocus:!0,options:v,value:u||"",onChange:r})}),x(nwe,{children:[l(Xbe,{localConstraint:t,setInvertedOperator:a}),l(rwe,{children:l(Gbe,{options:CM(u),value:d,onChange:y})}),l(q,{condition:p,show:l(Qbe,{localConstraint:t,setCaseInsensitive:s})})]})]}),l(q,{condition:!e,show:l(iwe,{children:zbe(d,u)})}),l(RM,{onDelete:i,disableEdit:!0})]})},_P=e=>Ti(e,t=>{Mn(SM,e.operator)?delete t.values:delete t.value});var kx={exports:{}};const swe="2.0.0",lwe=256,cwe=Number.MAX_SAFE_INTEGER||9007199254740991,uwe=16,dwe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var z1={MAX_LENGTH:lwe,MAX_SAFE_COMPONENT_LENGTH:uwe,MAX_SAFE_INTEGER:cwe,RELEASE_TYPES:dwe,SEMVER_SPEC_VERSION:swe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const pwe=typeof process=="object"&&process.env&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var j1=pwe;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n}=z1,r=j1;t=e.exports={};const o=t.re=[],i=t.src=[],a=t.t={};let s=0;const c=(u,d,p)=>{const f=s++;r(u,f,d),a[u]=f,i[f]=d,o[f]=new RegExp(d,p?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${i[a.NUMERICIDENTIFIER]})\\.(${i[a.NUMERICIDENTIFIER]})\\.(${i[a.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${i[a.NUMERICIDENTIFIERLOOSE]})\\.(${i[a.NUMERICIDENTIFIERLOOSE]})\\.(${i[a.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${i[a.NUMERICIDENTIFIER]}|${i[a.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${i[a.NUMERICIDENTIFIERLOOSE]}|${i[a.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${i[a.PRERELEASEIDENTIFIER]}(?:\\.${i[a.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${i[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[a.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${i[a.BUILDIDENTIFIER]}(?:\\.${i[a.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${i[a.MAINVERSION]}${i[a.PRERELEASE]}?${i[a.BUILD]}?`),c("FULL",`^${i[a.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${i[a.MAINVERSIONLOOSE]}${i[a.PRERELEASELOOSE]}?${i[a.BUILD]}?`),c("LOOSE",`^${i[a.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",`${i[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),c("XRANGEIDENTIFIER",`${i[a.NUMERICIDENTIFIER]}|x|X|\\*`),c("XRANGEPLAIN",`[v=\\s]*(${i[a.XRANGEIDENTIFIER]})(?:\\.(${i[a.XRANGEIDENTIFIER]})(?:\\.(${i[a.XRANGEIDENTIFIER]})(?:${i[a.PRERELEASE]})?${i[a.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${i[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[a.XRANGEIDENTIFIERLOOSE]})(?:${i[a.PRERELEASELOOSE]})?${i[a.BUILD]}?)?)?`),c("XRANGE",`^${i[a.GTLT]}\\s*${i[a.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${i[a.GTLT]}\\s*${i[a.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),c("COERCERTL",i[a.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${i[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",c("TILDE",`^${i[a.LONETILDE]}${i[a.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${i[a.LONETILDE]}${i[a.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${i[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",c("CARET",`^${i[a.LONECARET]}${i[a.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${i[a.LONECARET]}${i[a.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${i[a.GTLT]}\\s*(${i[a.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${i[a.GTLT]}\\s*(${i[a.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${i[a.GTLT]}\\s*(${i[a.LOOSEPLAIN]}|${i[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${i[a.XRANGEPLAIN]})\\s+-\\s+(${i[a.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${i[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[a.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(kx,kx.exports);var Hh=kx.exports;const fwe=Object.freeze({loose:!0}),hwe=Object.freeze({}),mwe=e=>e?typeof e!="object"?fwe:e:hwe;var RT=mwe;const PP=/^[0-9]+$/,_M=(e,t)=>{const n=PP.test(e),r=PP.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1},gwe=(e,t)=>_M(t,e);var PM={compareIdentifiers:_M,rcompareIdentifiers:gwe};const ng=j1,{MAX_LENGTH:IP,MAX_SAFE_INTEGER:rg}=z1,{re:OP,t:$P}=Hh,vwe=RT,{compareIdentifiers:Yc}=PM;let ywe=class ha{constructor(t,n){if(n=vwe(n),t instanceof ha){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>IP)throw new TypeError(`version is longer than ${IP} characters`);ng("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?OP[$P.LOOSE]:OP[$P.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>rg||this.major<0)throw new TypeError("Invalid major version");if(this.minor>rg||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>rg||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){const i=+o;if(i>=0&&i<rg)return i}return o}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(ng("SemVer.compare",this.version,this.options,t),!(t instanceof ha)){if(typeof t=="string"&&t===this.version)return 0;t=new ha(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof ha||(t=new ha(t,this.options)),Yc(this.major,t.major)||Yc(this.minor,t.minor)||Yc(this.patch,t.patch)}comparePre(t){if(t instanceof ha||(t=new ha(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const r=this.prerelease[n],o=t.prerelease[n];if(ng("prerelease compare",n,r,o),r===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(r===void 0)return-1;if(r===o)continue;return Yc(r,o)}while(++n)}compareBuild(t){t instanceof ha||(t=new ha(t,this.options));let n=0;do{const r=this.build[n],o=t.build[n];if(ng("prerelease compare",n,r,o),r===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(r===void 0)return-1;if(r===o)continue;return Yc(r,o)}while(++n)}inc(t,n,r){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,r),this.inc("pre",n,r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,r),this.inc("pre",n,r);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const o=Number(r)?1:0;if(!n&&r===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[o];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(n===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(n){let i=[n,o];r===!1&&(i=[n]),Yc(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.format(),this.raw=this.version,this}};var Ro=ywe;const NP=Ro,bwe=(e,t,n=!1)=>{if(e instanceof NP)return e;try{return new NP(e,t)}catch(r){if(!n)return null;throw r}};var $d=bwe;const wwe=$d,Swe=(e,t)=>{const n=wwe(e,t);return n?n.version:null};var xwe=Swe;const Cwe=$d,Ewe=(e,t)=>{const n=Cwe(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};var Twe=Ewe;const LP=Ro,kwe=(e,t,n,r,o)=>{typeof n=="string"&&(o=r,r=n,n=void 0);try{return new LP(e instanceof LP?e.version:e,n).inc(t,r,o).version}catch{return null}};var Awe=kwe;const MP=$d,Rwe=(e,t)=>{const n=MP(e,null,!0),r=MP(t,null,!0),o=n.compare(r);if(o===0)return null;const i=o>0,a=i?n:r,s=i?r:n,c=!!a.prerelease.length,u=c?"pre":"";return n.major!==r.major?u+"major":n.minor!==r.minor?u+"minor":n.patch!==r.patch?u+"patch":c?"prerelease":s.patch?"patch":s.minor?"minor":"major"};var _we=Rwe;const Pwe=Ro,Iwe=(e,t)=>new Pwe(e,t).major;var Owe=Iwe;const $we=Ro,Nwe=(e,t)=>new $we(e,t).minor;var Lwe=Nwe;const Mwe=Ro,Dwe=(e,t)=>new Mwe(e,t).patch;var Bwe=Dwe;const Fwe=$d,zwe=(e,t)=>{const n=Fwe(e,t);return n&&n.prerelease.length?n.prerelease:null};var jwe=zwe;const DP=Ro,Uwe=(e,t,n)=>new DP(e,n).compare(new DP(t,n));var ua=Uwe;const Wwe=ua,Hwe=(e,t,n)=>Wwe(t,e,n);var Vwe=Hwe;const Gwe=ua,qwe=(e,t)=>Gwe(e,t,!0);var Kwe=qwe;const BP=Ro,Ywe=(e,t,n)=>{const r=new BP(e,n),o=new BP(t,n);return r.compare(o)||r.compareBuild(o)};var _T=Ywe;const Xwe=_T,Jwe=(e,t)=>e.sort((n,r)=>Xwe(n,r,t));var Qwe=Jwe;const Zwe=_T,eSe=(e,t)=>e.sort((n,r)=>Zwe(r,n,t));var tSe=eSe;const nSe=ua,rSe=(e,t,n)=>nSe(e,t,n)>0;var U1=rSe;const oSe=ua,iSe=(e,t,n)=>oSe(e,t,n)<0;var PT=iSe;const aSe=ua,sSe=(e,t,n)=>aSe(e,t,n)===0;var IM=sSe;const lSe=ua,cSe=(e,t,n)=>lSe(e,t,n)!==0;var OM=cSe;const uSe=ua,dSe=(e,t,n)=>uSe(e,t,n)>=0;var IT=dSe;const pSe=ua,fSe=(e,t,n)=>pSe(e,t,n)<=0;var OT=fSe;const hSe=IM,mSe=OM,gSe=U1,vSe=IT,ySe=PT,bSe=OT,wSe=(e,t,n,r)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e===n;case"!==":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e!==n;case"":case"=":case"==":return hSe(e,n,r);case"!=":return mSe(e,n,r);case">":return gSe(e,n,r);case">=":return vSe(e,n,r);case"<":return ySe(e,n,r);case"<=":return bSe(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};var $M=wSe;const SSe=Ro,xSe=$d,{re:og,t:ig}=Hh,CSe=(e,t)=>{if(e instanceof SSe)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let n=null;if(!t.rtl)n=e.match(og[ig.COERCE]);else{let r;for(;(r=og[ig.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||r.index+r[0].length!==n.index+n[0].length)&&(n=r),og[ig.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;og[ig.COERCERTL].lastIndex=-1}return n===null?null:xSe(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};var ESe=CSe,tw,FP;function TSe(){return FP||(FP=1,tw=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),tw}var kSe=mn;mn.Node=vc;mn.create=mn;function mn(e){var t=this;if(t instanceof mn||(t=new mn),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(o){t.push(o)});else if(arguments.length>0)for(var n=0,r=arguments.length;n<r;n++)t.push(arguments[n]);return t}mn.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t};mn.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};mn.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};mn.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)RSe(this,arguments[e]);return this.length};mn.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)_Se(this,arguments[e]);return this.length};mn.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};mn.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};mn.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;n!==null;r++)e.call(t,n.value,r,this),n=n.next};mn.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;n!==null;r--)e.call(t,n.value,r,this),n=n.prev};mn.prototype.get=function(e){for(var t=0,n=this.head;n!==null&&t<e;t++)n=n.next;if(t===e&&n!==null)return n.value};mn.prototype.getReverse=function(e){for(var t=0,n=this.tail;n!==null&&t<e;t++)n=n.prev;if(t===e&&n!==null)return n.value};mn.prototype.map=function(e,t){t=t||this;for(var n=new mn,r=this.head;r!==null;)n.push(e.call(t,r.value,this)),r=r.next;return n};mn.prototype.mapReverse=function(e,t){t=t||this;for(var n=new mn,r=this.tail;r!==null;)n.push(e.call(t,r.value,this)),r=r.prev;return n};mn.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else if(this.head)r=this.head.next,n=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var o=0;r!==null;o++)n=e(n,r.value,o),r=r.next;return n};mn.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else if(this.tail)r=this.tail.prev,n=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var o=this.length-1;r!==null;o--)n=e(n,r.value,o),r=r.prev;return n};mn.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;n!==null;t++)e[t]=n.value,n=n.next;return e};mn.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;n!==null;t++)e[t]=n.value,n=n.prev;return e};mn.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var n=new mn;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=0,o=this.head;o!==null&&r<e;r++)o=o.next;for(;o!==null&&r<t;r++,o=o.next)n.push(o.value);return n};mn.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var n=new mn;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=this.length,o=this.tail;o!==null&&r>t;r--)o=o.prev;for(;o!==null&&r>e;r--,o=o.prev)n.push(o.value);return n};mn.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,o=this.head;o!==null&&r<e;r++)o=o.next;for(var i=[],r=0;o&&r<t;r++)i.push(o.value),o=this.removeNode(o);o===null&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(var r=0;r<n.length;r++)o=ASe(this,o,n[r]);return i};mn.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;n!==null;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};function ASe(e,t,n){var r=t===e.head?new vc(n,null,t,e):new vc(n,t,t.next,e);return r.next===null&&(e.tail=r),r.prev===null&&(e.head=r),e.length++,r}function RSe(e,t){e.tail=new vc(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function _Se(e,t){e.head=new vc(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function vc(e,t,n,r){if(!(this instanceof vc))return new vc(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}try{TSe()(mn)}catch{}const PSe=kSe,Kl=Symbol("max"),ss=Symbol("length"),Xc=Symbol("lengthCalculator"),hf=Symbol("allowStale"),rc=Symbol("maxAge"),is=Symbol("dispose"),zP=Symbol("noDisposeOnSet"),Wr=Symbol("lruList"),Ji=Symbol("cache"),NM=Symbol("updateAgeOnGet"),nw=()=>1;class ISe{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");this[Kl]=t.max||1/0;const n=t.length||nw;if(this[Xc]=typeof n!="function"?nw:n,this[hf]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[rc]=t.maxAge||0,this[is]=t.dispose,this[zP]=t.noDisposeOnSet||!1,this[NM]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[Kl]=t||1/0,Ep(this)}get max(){return this[Kl]}set allowStale(t){this[hf]=!!t}get allowStale(){return this[hf]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[rc]=t,Ep(this)}get maxAge(){return this[rc]}set lengthCalculator(t){typeof t!="function"&&(t=nw),t!==this[Xc]&&(this[Xc]=t,this[ss]=0,this[Wr].forEach(n=>{n.length=this[Xc](n.value,n.key),this[ss]+=n.length})),Ep(this)}get lengthCalculator(){return this[Xc]}get length(){return this[ss]}get itemCount(){return this[Wr].length}rforEach(t,n){n=n||this;for(let r=this[Wr].tail;r!==null;){const o=r.prev;jP(this,t,r,n),r=o}}forEach(t,n){n=n||this;for(let r=this[Wr].head;r!==null;){const o=r.next;jP(this,t,r,n),r=o}}keys(){return this[Wr].toArray().map(t=>t.key)}values(){return this[Wr].toArray().map(t=>t.value)}reset(){this[is]&&this[Wr]&&this[Wr].length&&this[Wr].forEach(t=>this[is](t.key,t.value)),this[Ji]=new Map,this[Wr]=new PSe,this[ss]=0}dump(){return this[Wr].map(t=>jv(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[Wr]}set(t,n,r){if(r=r||this[rc],r&&typeof r!="number")throw new TypeError("maxAge must be a number");const o=r?Date.now():0,i=this[Xc](n,t);if(this[Ji].has(t)){if(i>this[Kl])return Nu(this,this[Ji].get(t)),!1;const c=this[Ji].get(t).value;return this[is]&&(this[zP]||this[is](t,c.value)),c.now=o,c.maxAge=r,c.value=n,this[ss]+=i-c.length,c.length=i,this.get(t),Ep(this),!0}const a=new OSe(t,n,i,o,r);return a.length>this[Kl]?(this[is]&&this[is](t,n),!1):(this[ss]+=a.length,this[Wr].unshift(a),this[Ji].set(t,this[Wr].head),Ep(this),!0)}has(t){if(!this[Ji].has(t))return!1;const n=this[Ji].get(t).value;return!jv(this,n)}get(t){return rw(this,t,!0)}peek(t){return rw(this,t,!1)}pop(){const t=this[Wr].tail;return t?(Nu(this,t),t.value):null}del(t){Nu(this,this[Ji].get(t))}load(t){this.reset();const n=Date.now();for(let r=t.length-1;r>=0;r--){const o=t[r],i=o.e||0;if(i===0)this.set(o.k,o.v);else{const a=i-n;a>0&&this.set(o.k,o.v,a)}}}prune(){this[Ji].forEach((t,n)=>rw(this,n,!1))}}const rw=(e,t,n)=>{const r=e[Ji].get(t);if(r){const o=r.value;if(jv(e,o)){if(Nu(e,r),!e[hf])return}else n&&(e[NM]&&(r.value.now=Date.now()),e[Wr].unshiftNode(r));return o.value}},jv=(e,t)=>{if(!t||!t.maxAge&&!e[rc])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[rc]&&n>e[rc]},Ep=e=>{if(e[ss]>e[Kl])for(let t=e[Wr].tail;e[ss]>e[Kl]&&t!==null;){const n=t.prev;Nu(e,t),t=n}},Nu=(e,t)=>{if(t){const n=t.value;e[is]&&e[is](n.key,n.value),e[ss]-=n.length,e[Ji].delete(n.key),e[Wr].removeNode(t)}};class OSe{constructor(t,n,r,o,i){this.key=t,this.value=n,this.length=r,this.now=o,this.maxAge=i||0}}const jP=(e,t,n,r)=>{let o=n.value;jv(e,o)&&(Nu(e,n),e[hf]||(o=void 0)),o&&t.call(r,o.value,o.key,e)};var $Se=ISe,ow,UP;function da(){if(UP)return ow;UP=1;class e{constructor(D,K){if(K=r(K),D instanceof e)return D.loose===!!K.loose&&D.includePrerelease===!!K.includePrerelease?D:new e(D.raw,K);if(D instanceof o)return this.raw=D.value,this.set=[[D]],this.format(),this;if(this.options=K,this.loose=!!K.loose,this.includePrerelease=!!K.includePrerelease,this.raw=D,this.set=D.split("||").map(H=>this.parseRange(H.trim())).filter(H=>H.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${D}`);if(this.set.length>1){const H=this.set[0];if(this.set=this.set.filter(Q=>!g(Q[0])),this.set.length===0)this.set=[H];else if(this.set.length>1){for(const Q of this.set)if(Q.length===1&&v(Q[0])){this.set=[Q];break}}}this.format()}format(){return this.range=this.set.map(D=>D.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(D){D=D.trim();const H=((this.options.includePrerelease&&f)|(this.options.loose&&h))+":"+D,Q=n.get(H);if(Q)return Q;const V=this.options.loose,j=V?s[c.HYPHENRANGELOOSE]:s[c.HYPHENRANGE];D=D.replace(j,$(this.options.includePrerelease)),i("hyphen replace",D),D=D.replace(s[c.COMPARATORTRIM],u),i("comparator trim",D),D=D.replace(s[c.TILDETRIM],d),D=D.replace(s[c.CARETTRIM],p),D=D.split(/\s+/).join(" ");let z=D.split(" ").map(ae=>b(ae,this.options)).join(" ").split(/\s+/).map(ae=>I(ae,this.options));V&&(z=z.filter(ae=>(i("loose invalid filter",ae,this.options),!!ae.match(s[c.COMPARATORLOOSE])))),i("range list",z);const O=new Map,B=z.map(ae=>new o(ae,this.options));for(const ae of B){if(g(ae))return[ae];O.set(ae.value,ae)}O.size>1&&O.has("")&&O.delete("");const Z=[...O.values()];return n.set(H,Z),Z}intersects(D,K){if(!(D instanceof e))throw new TypeError("a Range is required");return this.set.some(H=>y(H,K)&&D.set.some(Q=>y(Q,K)&&H.every(V=>Q.every(j=>V.intersects(j,K)))))}test(D){if(!D)return!1;if(typeof D=="string")try{D=new a(D,this.options)}catch{return!1}for(let K=0;K<this.set.length;K++)if(U(this.set[K],D,this.options))return!0;return!1}}ow=e;const t=$Se,n=new t({max:1e3}),r=RT,o=W1(),i=j1,a=Ro,{re:s,t:c,comparatorTrimReplace:u,tildeTrimReplace:d,caretTrimReplace:p}=Hh,{FLAG_INCLUDE_PRERELEASE:f,FLAG_LOOSE:h}=z1,g=M=>M.value==="<0.0.0-0",v=M=>M.value==="",y=(M,D)=>{let K=!0;const H=M.slice();let Q=H.pop();for(;K&&H.length;)K=H.every(V=>Q.intersects(V,D)),Q=H.pop();return K},b=(M,D)=>(i("comp",M,D),M=A(M,D),i("caret",M),M=S(M,D),i("tildes",M),M=R(M,D),i("xrange",M),M=_(M,D),i("stars",M),M),w=M=>!M||M.toLowerCase()==="x"||M==="*",S=(M,D)=>M.trim().split(/\s+/).map(K=>k(K,D)).join(" "),k=(M,D)=>{const K=D.loose?s[c.TILDELOOSE]:s[c.TILDE];return M.replace(K,(H,Q,V,j,z)=>{i("tilde",M,H,Q,V,j,z);let O;return w(Q)?O="":w(V)?O=`>=${Q}.0.0 <${+Q+1}.0.0-0`:w(j)?O=`>=${Q}.${V}.0 <${Q}.${+V+1}.0-0`:z?(i("replaceTilde pr",z),O=`>=${Q}.${V}.${j}-${z} <${Q}.${+V+1}.0-0`):O=`>=${Q}.${V}.${j} <${Q}.${+V+1}.0-0`,i("tilde return",O),O})},A=(M,D)=>M.trim().split(/\s+/).map(K=>T(K,D)).join(" "),T=(M,D)=>{i("caret",M,D);const K=D.loose?s[c.CARETLOOSE]:s[c.CARET],H=D.includePrerelease?"-0":"";return M.replace(K,(Q,V,j,z,O)=>{i("caret",M,Q,V,j,z,O);let B;return w(V)?B="":w(j)?B=`>=${V}.0.0${H} <${+V+1}.0.0-0`:w(z)?V==="0"?B=`>=${V}.${j}.0${H} <${V}.${+j+1}.0-0`:B=`>=${V}.${j}.0${H} <${+V+1}.0.0-0`:O?(i("replaceCaret pr",O),V==="0"?j==="0"?B=`>=${V}.${j}.${z}-${O} <${V}.${j}.${+z+1}-0`:B=`>=${V}.${j}.${z}-${O} <${V}.${+j+1}.0-0`:B=`>=${V}.${j}.${z}-${O} <${+V+1}.0.0-0`):(i("no pr"),V==="0"?j==="0"?B=`>=${V}.${j}.${z}${H} <${V}.${j}.${+z+1}-0`:B=`>=${V}.${j}.${z}${H} <${V}.${+j+1}.0-0`:B=`>=${V}.${j}.${z} <${+V+1}.0.0-0`),i("caret return",B),B})},R=(M,D)=>(i("replaceXRanges",M,D),M.split(/\s+/).map(K=>P(K,D)).join(" ")),P=(M,D)=>{M=M.trim();const K=D.loose?s[c.XRANGELOOSE]:s[c.XRANGE];return M.replace(K,(H,Q,V,j,z,O)=>{i("xRange",M,H,Q,V,j,z,O);const B=w(V),Z=B||w(j),ae=Z||w(z),Ae=ae;return Q==="="&&Ae&&(Q=""),O=D.includePrerelease?"-0":"",B?Q===">"||Q==="<"?H="<0.0.0-0":H="*":Q&&Ae?(Z&&(j=0),z=0,Q===">"?(Q=">=",Z?(V=+V+1,j=0,z=0):(j=+j+1,z=0)):Q==="<="&&(Q="<",Z?V=+V+1:j=+j+1),Q==="<"&&(O="-0"),H=`${Q+V}.${j}.${z}${O}`):Z?H=`>=${V}.0.0${O} <${+V+1}.0.0-0`:ae&&(H=`>=${V}.${j}.0${O} <${V}.${+j+1}.0-0`),i("xRange return",H),H})},_=(M,D)=>(i("replaceStars",M,D),M.trim().replace(s[c.STAR],"")),I=(M,D)=>(i("replaceGTE0",M,D),M.trim().replace(s[D.includePrerelease?c.GTE0PRE:c.GTE0],"")),$=M=>(D,K,H,Q,V,j,z,O,B,Z,ae,Ae,fe)=>(w(H)?K="":w(Q)?K=`>=${H}.0.0${M?"-0":""}`:w(V)?K=`>=${H}.${Q}.0${M?"-0":""}`:j?K=`>=${K}`:K=`>=${K}${M?"-0":""}`,w(B)?O="":w(Z)?O=`<${+B+1}.0.0-0`:w(ae)?O=`<${B}.${+Z+1}.0-0`:Ae?O=`<=${B}.${Z}.${ae}-${Ae}`:M?O=`<${B}.${Z}.${+ae+1}-0`:O=`<=${O}`,`${K} ${O}`.trim()),U=(M,D,K)=>{for(let H=0;H<M.length;H++)if(!M[H].test(D))return!1;if(D.prerelease.length&&!K.includePrerelease){for(let H=0;H<M.length;H++)if(i(M[H].semver),M[H].semver!==o.ANY&&M[H].semver.prerelease.length>0){const Q=M[H].semver;if(Q.major===D.major&&Q.minor===D.minor&&Q.patch===D.patch)return!0}return!1}return!0};return ow}var iw,WP;function W1(){if(WP)return iw;WP=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(d,p){if(p=n(p),d instanceof t){if(d.loose===!!p.loose)return d;d=d.value}a("comparator",d,p),this.options=p,this.loose=!!p.loose,this.parse(d),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(d){const p=this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR],f=d.match(p);if(!f)throw new TypeError(`Invalid comparator: ${d}`);this.operator=f[1]!==void 0?f[1]:"",this.operator==="="&&(this.operator=""),f[2]?this.semver=new s(f[2],this.options.loose):this.semver=e}toString(){return this.value}test(d){if(a("Comparator.test",d,this.options.loose),this.semver===e||d===e)return!0;if(typeof d=="string")try{d=new s(d,this.options)}catch{return!1}return i(d,this.operator,this.semver,this.options)}intersects(d,p){if(!(d instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new c(d.value,p).test(this.value):d.operator===""?d.value===""?!0:new c(this.value,p).test(d.semver):(p=n(p),p.includePrerelease&&(this.value==="<0.0.0-0"||d.value==="<0.0.0-0")||!p.includePrerelease&&(this.value.startsWith("<0.0.0")||d.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&d.operator.startsWith(">")||this.operator.startsWith("<")&&d.operator.startsWith("<")||this.semver.version===d.semver.version&&this.operator.includes("=")&&d.operator.includes("=")||i(this.semver,"<",d.semver,p)&&this.operator.startsWith(">")&&d.operator.startsWith("<")||i(this.semver,">",d.semver,p)&&this.operator.startsWith("<")&&d.operator.startsWith(">")))}}iw=t;const n=RT,{re:r,t:o}=Hh,i=$M,a=j1,s=Ro,c=da();return iw}const NSe=da(),LSe=(e,t,n)=>{try{t=new NSe(t,n)}catch{return!1}return t.test(e)};var H1=LSe;const MSe=da(),DSe=(e,t)=>new MSe(e,t).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));var BSe=DSe;const FSe=Ro,zSe=da(),jSe=(e,t,n)=>{let r=null,o=null,i=null;try{i=new zSe(t,n)}catch{return null}return e.forEach(a=>{i.test(a)&&(!r||o.compare(a)===-1)&&(r=a,o=new FSe(r,n))}),r};var USe=jSe;const WSe=Ro,HSe=da(),VSe=(e,t,n)=>{let r=null,o=null,i=null;try{i=new HSe(t,n)}catch{return null}return e.forEach(a=>{i.test(a)&&(!r||o.compare(a)===1)&&(r=a,o=new WSe(r,n))}),r};var GSe=VSe;const aw=Ro,qSe=da(),HP=U1,KSe=(e,t)=>{e=new qSe(e,t);let n=new aw("0.0.0");if(e.test(n)||(n=new aw("0.0.0-0"),e.test(n)))return n;n=null;for(let r=0;r<e.set.length;++r){const o=e.set[r];let i=null;o.forEach(a=>{const s=new aw(a.semver.version);switch(a.operator){case">":s.prerelease.length===0?s.patch++:s.prerelease.push(0),s.raw=s.format();case"":case">=":(!i||HP(s,i))&&(i=s);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),i&&(!n||HP(n,i))&&(n=i)}return n&&e.test(n)?n:null};var YSe=KSe;const XSe=da(),JSe=(e,t)=>{try{return new XSe(e,t).range||"*"}catch{return null}};var QSe=JSe;const ZSe=Ro,LM=W1(),{ANY:exe}=LM,txe=da(),nxe=H1,VP=U1,GP=PT,rxe=OT,oxe=IT,ixe=(e,t,n,r)=>{e=new ZSe(e,r),t=new txe(t,r);let o,i,a,s,c;switch(n){case">":o=VP,i=rxe,a=GP,s=">",c=">=";break;case"<":o=GP,i=oxe,a=VP,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(nxe(e,t,r))return!1;for(let u=0;u<t.set.length;++u){const d=t.set[u];let p=null,f=null;if(d.forEach(h=>{h.semver===exe&&(h=new LM(">=0.0.0")),p=p||h,f=f||h,o(h.semver,p.semver,r)?p=h:a(h.semver,f.semver,r)&&(f=h)}),p.operator===s||p.operator===c||(!f.operator||f.operator===s)&&i(e,f.semver))return!1;if(f.operator===c&&a(e,f.semver))return!1}return!0};var $T=ixe;const axe=$T,sxe=(e,t,n)=>axe(e,t,">",n);var lxe=sxe;const cxe=$T,uxe=(e,t,n)=>cxe(e,t,"<",n);var dxe=uxe;const qP=da(),pxe=(e,t,n)=>(e=new qP(e,n),t=new qP(t,n),e.intersects(t,n));var fxe=pxe;const hxe=H1,mxe=ua;var gxe=(e,t,n)=>{const r=[];let o=null,i=null;const a=e.sort((d,p)=>mxe(d,p,n));for(const d of a)hxe(d,t,n)?(i=d,o||(o=d)):(i&&r.push([o,i]),i=null,o=null);o&&r.push([o,null]);const s=[];for(const[d,p]of r)d===p?s.push(d):!p&&d===a[0]?s.push("*"):p?d===a[0]?s.push(`<=${p}`):s.push(`${d} - ${p}`):s.push(`>=${d}`);const c=s.join(" || "),u=typeof t.raw=="string"?t.raw:String(t);return c.length<u.length?c:t};const KP=da(),NT=W1(),{ANY:sw}=NT,Tp=H1,LT=ua,vxe=(e,t,n={})=>{if(e===t)return!0;e=new KP(e,n),t=new KP(t,n);let r=!1;e:for(const o of e.set){for(const i of t.set){const a=bxe(o,i,n);if(r=r||a!==null,a)continue e}if(r)return!1}return!0},yxe=[new NT(">=0.0.0-0")],YP=[new NT(">=0.0.0")],bxe=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===sw){if(t.length===1&&t[0].semver===sw)return!0;n.includePrerelease?e=yxe:e=YP}if(t.length===1&&t[0].semver===sw){if(n.includePrerelease)return!0;t=YP}const r=new Set;let o,i;for(const h of e)h.operator===">"||h.operator===">="?o=XP(o,h,n):h.operator==="<"||h.operator==="<="?i=JP(i,h,n):r.add(h.semver);if(r.size>1)return null;let a;if(o&&i){if(a=LT(o.semver,i.semver,n),a>0)return null;if(a===0&&(o.operator!==">="||i.operator!=="<="))return null}for(const h of r){if(o&&!Tp(h,String(o),n)||i&&!Tp(h,String(i),n))return null;for(const g of t)if(!Tp(h,String(g),n))return!1;return!0}let s,c,u,d,p=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:!1,f=o&&!n.includePrerelease&&o.semver.prerelease.length?o.semver:!1;p&&p.prerelease.length===1&&i.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(const h of t){if(d=d||h.operator===">"||h.operator===">=",u=u||h.operator==="<"||h.operator==="<=",o){if(f&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===f.major&&h.semver.minor===f.minor&&h.semver.patch===f.patch&&(f=!1),h.operator===">"||h.operator===">="){if(s=XP(o,h,n),s===h&&s!==o)return!1}else if(o.operator===">="&&!Tp(o.semver,String(h),n))return!1}if(i){if(p&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===p.major&&h.semver.minor===p.minor&&h.semver.patch===p.patch&&(p=!1),h.operator==="<"||h.operator==="<="){if(c=JP(i,h,n),c===h&&c!==i)return!1}else if(i.operator==="<="&&!Tp(i.semver,String(h),n))return!1}if(!h.operator&&(i||o)&&a!==0)return!1}return!(o&&u&&!i&&a!==0||i&&d&&!o&&a!==0||f||p)},XP=(e,t,n)=>{if(!e)return t;const r=LT(e.semver,t.semver,n);return r>0?e:r<0||t.operator===">"&&e.operator===">="?t:e},JP=(e,t,n)=>{if(!e)return t;const r=LT(e.semver,t.semver,n);return r<0?e:r>0||t.operator==="<"&&e.operator==="<="?t:e};var wxe=vxe;const lw=Hh,QP=z1,Sxe=Ro,ZP=PM,xxe=$d,Cxe=xwe,Exe=Twe,Txe=Awe,kxe=_we,Axe=Owe,Rxe=Lwe,_xe=Bwe,Pxe=jwe,Ixe=ua,Oxe=Vwe,$xe=Kwe,Nxe=_T,Lxe=Qwe,Mxe=tSe,Dxe=U1,Bxe=PT,Fxe=IM,zxe=OM,jxe=IT,Uxe=OT,Wxe=$M,Hxe=ESe,Vxe=W1(),Gxe=da(),qxe=H1,Kxe=BSe,Yxe=USe,Xxe=GSe,Jxe=YSe,Qxe=QSe,Zxe=$T,eCe=lxe,tCe=dxe,nCe=fxe,rCe=gxe,oCe=wxe;var iCe={parse:xxe,valid:Cxe,clean:Exe,inc:Txe,diff:kxe,major:Axe,minor:Rxe,patch:_xe,prerelease:Pxe,compare:Ixe,rcompare:Oxe,compareLoose:$xe,compareBuild:Nxe,sort:Lxe,rsort:Mxe,gt:Dxe,lt:Bxe,eq:Fxe,neq:zxe,gte:jxe,lte:Uxe,cmp:Wxe,coerce:Hxe,Comparator:Vxe,Range:Gxe,satisfies:qxe,toComparators:Kxe,maxSatisfying:Yxe,minSatisfying:Xxe,minVersion:Jxe,validRange:Qxe,outside:Zxe,gtr:eCe,ltr:tCe,intersects:nCe,simplifyRange:rCe,subset:oCe,SemVer:Sxe,re:lw.re,src:lw.src,tokens:lw.t,SEMVER_SPEC_VERSION:QP.SEMVER_SPEC_VERSION,RELEASE_TYPES:QP.RELEASE_TYPES,compareIdentifiers:ZP.compareIdentifiers,rcompareIdentifiers:ZP.rcompareIdentifiers};const e3=qr(iCe),aCe=e=>()=>{const t=Number(e);return typeof t!="number"||Number.isNaN(t)?[!1,"Value must be a number"]:[!0,""]},sCe=e=>()=>{const t=[!1,"Values must be a list of strings"];return!Array.isArray(e)||!e.every(n=>typeof n=="string")?t:[!0,""]},lCe=e=>()=>{const t=e3.clean(e)===e;return!e3.valid(e)||!t?[!1,"Value is not a valid semver. For example 1.2.4"]:[!0,""]},cCe=e=>()=>AE(Bh(e))?[!0,""]:[!1,"Value must be a valid date matching RFC3339"],ag=e=>!!e&&Array.isArray(e)&&e.length>0,Ax="IN_OPERATORS_LEGAL_VALUES",MM="STRING_OPERATORS_LEGAL_VALUES",DM="NUM_OPERATORS_LEGAL_VALUES",BM="SEMVER_OPERATORS_LEGAL_VALUES",FM="DATE_OPERATORS_SINGLE_VALUE",zM="IN_OPERATORS_FREETEXT",jM="STRING_OPERATORS_FREETEXT",UM="NUM_OPERATORS_SINGLE_VALUE",WM="SEMVER_OPERATORS_SINGLE_VALUE",t3="NUMBER_VALIDATOR",n3="SEMVER_VALIDATOR",cw="STRING_ARRAY_VALIDATOR",r3="DATE_VALIDATOR",uCe=({contextDefinition:e,localConstraint:t})=>{const[n,r]=m.useState(Ax),[o,i]=m.useState(cw),[a,s]=m.useState(""),c=m.useCallback(()=>{ag(e.legalValues)&&Mn(sc,t.operator)?r(Ax):ag(e.legalValues)&&Mn(ms,t.operator)?r(MM):ag(e.legalValues)&&Mn(Ou,t.operator)?r(DM):ag(e.legalValues)&&Mn($u,t.operator)?r(BM):Mn(Ii,t.operator)?r(FM):Mn(sc,t.operator)?r(zM):Mn(ms,t.operator)?r(jM):Mn(Ou,t.operator)?r(UM):Mn($u,t.operator)&&r(WM)},[t,e]),u=()=>{switch(o){case t3:return aCe(t.value);case cw:return sCe(t.values||[]);case n3:return lCe(t.value||"");case r3:return cCe(t.value||"")}},d=m.useCallback(p=>{Mn(Ou,p)&&i(t3),Mn([...ms,...sc],p)&&i(cw),Mn($u,p)&&i(n3),Mn(Ii,p)&&i(r3)},[i]);return m.useEffect(()=>{d(t.operator)},[t.operator,t.value,t.values,d]),m.useEffect(()=>{c()},[e,t,c]),{input:n,error:a,validator:u(),setError:s}},dCe=C("h3")(({theme:e})=>({fontSize:e.fontSizes.bodySize,fontWeight:e.typography.fontWeightRegular,marginTop:e.spacing(2),marginBottom:e.spacing(.5)})),Vh=({children:e,...t})=>l(dCe,{...t,children:e});function o3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function lh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o3(Object(n),!0).forEach(function(r){V1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function V1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pCe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function fCe(e,t){if(e==null)return{};var n=pCe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hCe(e,t){return mCe(e)||gCe(e,t)||vCe(e,t)||yCe()}function mCe(e){if(Array.isArray(e))return e}function gCe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,s;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(c){i=!0,s=c}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function vCe(e,t){if(e){if(typeof e=="string")return i3(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i3(e,t)}}function i3(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yCe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
337
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var bCe={AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AG:"Antigua and Barbuda",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AQ:"Antarctica",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AX:"Åland Islands",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BL:"Saint Barthélemy",BM:"Bermuda",BN:"Brunei",BO:"Bolivia",BQ:"Caribbean Netherlands",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BV:"Bouvet Island",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CC:"Cocos Islands",CD:"Democratic Republic of the Congo",CF:"Central African Republic",CG:"Republic of the Congo",CH:"Switzerland",CI:"Ivory Coast",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cabo Verde",CW:"Curaçao",CX:"Christmas Island",CY:"Cyprus",CZ:"Czechia",DE:"Germany",DJ:"Djibouti",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",EH:"Western Sahara",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FM:"Micronesia",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GD:"Grenada",GE:"Georgia",GF:"French Guiana",GG:"Guernsey",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GP:"Guadeloupe",GQ:"Equatorial Guinea",GR:"Greece",GS:"South Georgia and the South Sandwich Islands",GT:"Guatemala",GU:"Guam",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HM:"Heard Island and McDonald Islands",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IO:"British Indian Ocean Territory",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JE:"Jersey",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KI:"Kiribati",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LK:"Sri Lanka",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MC:"Monaco",MD:"Moldova",ME:"Montenegro",MF:"Saint Martin",MG:"Madagascar",MH:"Marshall Islands",MK:"North Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MO:"Macao",MP:"Northern Mariana Islands",MQ:"Martinique",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MV:"Maldives",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NF:"Norfolk Island",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NR:"Nauru",NU:"Niue",NZ:"New Zealand",OM:"Oman",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PM:"Saint Pierre and Miquelon",PN:"Pitcairn",PR:"Puerto Rico",PS:"Palestine",PT:"Portugal",PW:"Palau",PY:"Paraguay",QA:"Qatar",RE:"Réunion",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena, Ascension and Tristan da Cunha",SI:"Slovenia",SJ:"Svalbard and Jan Mayen",SK:"Slovakia",SL:"Sierra Leone",SM:"San Marino",SN:"Senegal",SO:"Somalia",SR:"Suriname",SS:"South Sudan",ST:"Sao Tome and Principe",SV:"El Salvador",SX:"Sint Maarten",SY:"Syria",SZ:"Eswatini",TC:"Turks and Caicos Islands",TD:"Chad",TF:"French Southern Territories",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TK:"Tokelau",TL:"Timor-Leste",TM:"Turkmenistan",TN:"Tunisia",TO:"Tonga",TR:"Türkiye",TT:"Trinidad and Tobago",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",UM:"United States Minor Outlying Islands",US:"United States of America",UY:"Uruguay",UZ:"Uzbekistan",VA:"Holy See",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"Virgin Islands (UK)",VI:"Virgin Islands (US)",VN:"Vietnam",VU:"Vanuatu",WF:"Wallis and Futuna",WS:"Samoa",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe"},wCe={"Africa/Abidjan":{u:0,c:["CI","BF","GH","GM","GN","IS","ML","MR","SH","SL","SN","TG"]},"Africa/Accra":{a:"Africa/Abidjan",c:["GH"],r:1},"Africa/Addis_Ababa":{a:"Africa/Nairobi",c:["ET"],r:1},"Africa/Algiers":{u:60,c:["DZ"]},"Africa/Asmara":{a:"Africa/Nairobi",c:["ER"],r:1},"Africa/Asmera":{a:"Africa/Nairobi",c:["ER"],r:1},"Africa/Bamako":{a:"Africa/Abidjan",c:["ML"],r:1},"Africa/Bangui":{a:"Africa/Lagos",c:["CF"],r:1},"Africa/Banjul":{a:"Africa/Abidjan",c:["GM"],r:1},"Africa/Bissau":{u:0,c:["GW"]},"Africa/Blantyre":{a:"Africa/Maputo",c:["MW"],r:1},"Africa/Brazzaville":{a:"Africa/Lagos",c:["CG"],r:1},"Africa/Bujumbura":{a:"Africa/Maputo",c:["BI"],r:1},"Africa/Cairo":{u:120,c:["EG"]},"Africa/Casablanca":{u:60,d:0,c:["MA"]},"Africa/Ceuta":{u:60,d:120,c:["ES"]},"Africa/Conakry":{a:"Africa/Abidjan",c:["GN"],r:1},"Africa/Dakar":{a:"Africa/Abidjan",c:["SN"],r:1},"Africa/Dar_es_Salaam":{a:"Africa/Nairobi",c:["TZ"],r:1},"Africa/Djibouti":{a:"Africa/Nairobi",c:["DJ"],r:1},"Africa/Douala":{a:"Africa/Lagos",c:["CM"],r:1},"Africa/El_Aaiun":{u:60,d:0,c:["EH"]},"Africa/Freetown":{a:"Africa/Abidjan",c:["SL"],r:1},"Africa/Gaborone":{a:"Africa/Maputo",c:["BW"],r:1},"Africa/Harare":{a:"Africa/Maputo",c:["ZW"],r:1},"Africa/Johannesburg":{u:120,c:["ZA","LS","SZ"]},"Africa/Juba":{u:120,c:["SS"]},"Africa/Kampala":{a:"Africa/Nairobi",c:["UG"],r:1},"Africa/Khartoum":{u:120,c:["SD"]},"Africa/Kigali":{a:"Africa/Maputo",c:["RW"],r:1},"Africa/Kinshasa":{a:"Africa/Lagos",c:["CD"],r:1},"Africa/Lagos":{u:60,c:["NG","AO","BJ","CD","CF","CG","CM","GA","GQ","NE"]},"Africa/Libreville":{a:"Africa/Lagos",c:["GA"],r:1},"Africa/Lome":{a:"Africa/Abidjan",c:["TG"],r:1},"Africa/Luanda":{a:"Africa/Lagos",c:["AO"],r:1},"Africa/Lubumbashi":{a:"Africa/Maputo",c:["CD"],r:1},"Africa/Lusaka":{a:"Africa/Maputo",c:["ZM"],r:1},"Africa/Malabo":{a:"Africa/Lagos",c:["GQ"],r:1},"Africa/Maputo":{u:120,c:["MZ","BI","BW","CD","MW","RW","ZM","ZW"]},"Africa/Maseru":{a:"Africa/Johannesburg",c:["LS"],r:1},"Africa/Mbabane":{a:"Africa/Johannesburg",c:["SZ"],r:1},"Africa/Mogadishu":{a:"Africa/Nairobi",c:["SO"],r:1},"Africa/Monrovia":{u:0,c:["LR"]},"Africa/Nairobi":{u:180,c:["KE","DJ","ER","ET","KM","MG","SO","TZ","UG","YT"]},"Africa/Ndjamena":{u:60,c:["TD"]},"Africa/Niamey":{a:"Africa/Lagos",c:["NE"],r:1},"Africa/Nouakchott":{a:"Africa/Abidjan",c:["MR"],r:1},"Africa/Ouagadougou":{a:"Africa/Abidjan",c:["BF"],r:1},"Africa/Porto-Novo":{a:"Africa/Lagos",c:["BJ"],r:1},"Africa/Sao_Tome":{u:0,c:["ST"]},"Africa/Timbuktu":{a:"Africa/Abidjan",c:["ML"],r:1},"Africa/Tripoli":{u:120,c:["LY"]},"Africa/Tunis":{u:60,c:["TN"]},"Africa/Windhoek":{u:120,c:["NA"]},"America/Adak":{u:-600,d:-540,c:["US"]},"America/Anchorage":{u:-540,d:-480,c:["US"]},"America/Anguilla":{a:"America/Puerto_Rico",c:["AI"],r:1},"America/Antigua":{a:"America/Puerto_Rico",c:["AG"],r:1},"America/Araguaina":{u:-180,c:["BR"]},"America/Argentina/Buenos_Aires":{u:-180,c:["AR"]},"America/Argentina/Catamarca":{u:-180,c:["AR"]},"America/Argentina/ComodRivadavia":{a:"America/Argentina/Catamarca",r:1},"America/Argentina/Cordoba":{u:-180,c:["AR"]},"America/Argentina/Jujuy":{u:-180,c:["AR"]},"America/Argentina/La_Rioja":{u:-180,c:["AR"]},"America/Argentina/Mendoza":{u:-180,c:["AR"]},"America/Argentina/Rio_Gallegos":{u:-180,c:["AR"]},"America/Argentina/Salta":{u:-180,c:["AR"]},"America/Argentina/San_Juan":{u:-180,c:["AR"]},"America/Argentina/San_Luis":{u:-180,c:["AR"]},"America/Argentina/Tucuman":{u:-180,c:["AR"]},"America/Argentina/Ushuaia":{u:-180,c:["AR"]},"America/Aruba":{a:"America/Puerto_Rico",c:["AW"],r:1},"America/Asuncion":{u:-240,d:-180,c:["PY"]},"America/Atikokan":{a:"America/Panama",c:["CA"],r:1},"America/Atka":{a:"America/Adak",r:1},"America/Bahia":{u:-180,c:["BR"]},"America/Bahia_Banderas":{u:-360,c:["MX"]},"America/Barbados":{u:-240,c:["BB"]},"America/Belem":{u:-180,c:["BR"]},"America/Belize":{u:-360,c:["BZ"]},"America/Blanc-Sablon":{a:"America/Puerto_Rico",c:["CA"],r:1},"America/Boa_Vista":{u:-240,c:["BR"]},"America/Bogota":{u:-300,c:["CO"]},"America/Boise":{u:-420,d:-360,c:["US"]},"America/Buenos_Aires":{a:"America/Argentina/Buenos_Aires",r:1},"America/Cambridge_Bay":{u:-420,d:-360,c:["CA"]},"America/Campo_Grande":{u:-240,c:["BR"]},"America/Cancun":{u:-300,c:["MX"]},"America/Caracas":{u:-240,c:["VE"]},"America/Catamarca":{a:"America/Argentina/Catamarca",r:1},"America/Cayenne":{u:-180,c:["GF"]},"America/Cayman":{a:"America/Panama",c:["KY"],r:1},"America/Chicago":{u:-360,d:-300,c:["US"]},"America/Chihuahua":{u:-360,c:["MX"]},"America/Ciudad_Juarez":{u:-420,d:-360,c:["MX"]},"America/Coral_Harbour":{a:"America/Panama",c:["CA"],r:1},"America/Cordoba":{a:"America/Argentina/Cordoba",r:1},"America/Costa_Rica":{u:-360,c:["CR"]},"America/Creston":{a:"America/Phoenix",c:["CA"],r:1},"America/Cuiaba":{u:-240,c:["BR"]},"America/Curacao":{a:"America/Puerto_Rico",c:["CW"],r:1},"America/Danmarkshavn":{u:0,c:["GL"]},"America/Dawson":{u:-420,c:["CA"]},"America/Dawson_Creek":{u:-420,c:["CA"]},"America/Denver":{u:-420,d:-360,c:["US"]},"America/Detroit":{u:-300,d:-240,c:["US"]},"America/Dominica":{a:"America/Puerto_Rico",c:["DM"],r:1},"America/Edmonton":{u:-420,d:-360,c:["CA"]},"America/Eirunepe":{u:-300,c:["BR"]},"America/El_Salvador":{u:-360,c:["SV"]},"America/Ensenada":{a:"America/Tijuana",r:1},"America/Fort_Nelson":{u:-420,c:["CA"]},"America/Fort_Wayne":{a:"America/Indiana/Indianapolis",r:1},"America/Fortaleza":{u:-180,c:["BR"]},"America/Glace_Bay":{u:-240,d:-180,c:["CA"]},"America/Godthab":{a:"America/Nuuk",r:1},"America/Goose_Bay":{u:-240,d:-180,c:["CA"]},"America/Grand_Turk":{u:-300,d:-240,c:["TC"]},"America/Grenada":{a:"America/Puerto_Rico",c:["GD"],r:1},"America/Guadeloupe":{a:"America/Puerto_Rico",c:["GP"],r:1},"America/Guatemala":{u:-360,c:["GT"]},"America/Guayaquil":{u:-300,c:["EC"]},"America/Guyana":{u:-240,c:["GY"]},"America/Halifax":{u:-240,d:-180,c:["CA"]},"America/Havana":{u:-300,d:-240,c:["CU"]},"America/Hermosillo":{u:-420,c:["MX"]},"America/Indiana/Indianapolis":{u:-300,d:-240,c:["US"]},"America/Indiana/Knox":{u:-360,d:-300,c:["US"]},"America/Indiana/Marengo":{u:-300,d:-240,c:["US"]},"America/Indiana/Petersburg":{u:-300,d:-240,c:["US"]},"America/Indiana/Tell_City":{u:-360,d:-300,c:["US"]},"America/Indiana/Vevay":{u:-300,d:-240,c:["US"]},"America/Indiana/Vincennes":{u:-300,d:-240,c:["US"]},"America/Indiana/Winamac":{u:-300,d:-240,c:["US"]},"America/Indianapolis":{a:"America/Indiana/Indianapolis",r:1},"America/Inuvik":{u:-420,d:-360,c:["CA"]},"America/Iqaluit":{u:-300,d:-240,c:["CA"]},"America/Jamaica":{u:-300,c:["JM"]},"America/Jujuy":{a:"America/Argentina/Jujuy",r:1},"America/Juneau":{u:-540,d:-480,c:["US"]},"America/Kentucky/Louisville":{u:-300,d:-240,c:["US"]},"America/Kentucky/Monticello":{u:-300,d:-240,c:["US"]},"America/Knox_IN":{a:"America/Indiana/Knox",r:1},"America/Kralendijk":{a:"America/Puerto_Rico",c:["BQ"],r:1},"America/La_Paz":{u:-240,c:["BO"]},"America/Lima":{u:-300,c:["PE"]},"America/Los_Angeles":{u:-480,d:-420,c:["US"]},"America/Louisville":{a:"America/Kentucky/Louisville",r:1},"America/Lower_Princes":{a:"America/Puerto_Rico",c:["SX"],r:1},"America/Maceio":{u:-180,c:["BR"]},"America/Managua":{u:-360,c:["NI"]},"America/Manaus":{u:-240,c:["BR"]},"America/Marigot":{a:"America/Puerto_Rico",c:["MF"],r:1},"America/Martinique":{u:-240,c:["MQ"]},"America/Matamoros":{u:-360,d:-300,c:["MX"]},"America/Mazatlan":{u:-420,c:["MX"]},"America/Mendoza":{a:"America/Argentina/Mendoza",r:1},"America/Menominee":{u:-360,d:-300,c:["US"]},"America/Merida":{u:-360,c:["MX"]},"America/Metlakatla":{u:-540,d:-480,c:["US"]},"America/Mexico_City":{u:-360,c:["MX"]},"America/Miquelon":{u:-180,d:-120,c:["PM"]},"America/Moncton":{u:-240,d:-180,c:["CA"]},"America/Monterrey":{u:-360,c:["MX"]},"America/Montevideo":{u:-180,c:["UY"]},"America/Montreal":{a:"America/Toronto",c:["CA"],r:1},"America/Montserrat":{a:"America/Puerto_Rico",c:["MS"],r:1},"America/Nassau":{a:"America/Toronto",c:["BS"],r:1},"America/New_York":{u:-300,d:-240,c:["US"]},"America/Nipigon":{a:"America/Toronto",c:["CA"],r:1},"America/Nome":{u:-540,d:-480,c:["US"]},"America/Noronha":{u:-120,c:["BR"]},"America/North_Dakota/Beulah":{u:-360,d:-300,c:["US"]},"America/North_Dakota/Center":{u:-360,d:-300,c:["US"]},"America/North_Dakota/New_Salem":{u:-360,d:-300,c:["US"]},"America/Nuuk":{u:-180,c:["GL"]},"America/Ojinaga":{u:-360,d:-300,c:["MX"]},"America/Panama":{u:-300,c:["PA","CA","KY"]},"America/Pangnirtung":{a:"America/Iqaluit",r:1},"America/Paramaribo":{u:-180,c:["SR"]},"America/Phoenix":{u:-420,c:["US","CA"]},"America/Port-au-Prince":{u:-300,d:-240,c:["HT"]},"America/Port_of_Spain":{a:"America/Puerto_Rico",c:["TT"],r:1},"America/Porto_Acre":{a:"America/Rio_Branco",r:1},"America/Porto_Velho":{u:-240,c:["BR"]},"America/Puerto_Rico":{u:-240,c:["PR","AG","CA","AI","AW","BL","BQ","CW","DM","GD","GP","KN","LC","MF","MS","SX","TT","VC","VG","VI"]},"America/Punta_Arenas":{u:-180,c:["CL"]},"America/Rainy_River":{a:"America/Winnipeg",r:1},"America/Rankin_Inlet":{u:-360,d:-300,c:["CA"]},"America/Recife":{u:-180,c:["BR"]},"America/Regina":{u:-360,c:["CA"]},"America/Resolute":{u:-360,d:-300,c:["CA"]},"America/Rio_Branco":{u:-300,c:["BR"]},"America/Rosario":{a:"America/Argentina/Cordoba",r:1},"America/Santa_Isabel":{a:"America/Tijuana",r:1},"America/Santarem":{u:-180,c:["BR"]},"America/Santiago":{u:-240,d:-180,c:["CL"]},"America/Santo_Domingo":{u:-240,c:["DO"]},"America/Sao_Paulo":{u:-180,c:["BR"]},"America/Scoresbysund":{u:-60,d:0,c:["GL"]},"America/Shiprock":{a:"America/Denver",r:1},"America/Sitka":{u:-540,d:-480,c:["US"]},"America/St_Barthelemy":{a:"America/Puerto_Rico",c:["BL"],r:1},"America/St_Johns":{u:-210,d:-150,c:["CA"]},"America/St_Kitts":{a:"America/Puerto_Rico",c:["KN"],r:1},"America/St_Lucia":{a:"America/Puerto_Rico",c:["LC"],r:1},"America/St_Thomas":{a:"America/Puerto_Rico",c:["VI"],r:1},"America/St_Vincent":{a:"America/Puerto_Rico",c:["VC"],r:1},"America/Swift_Current":{u:-360,c:["CA"]},"America/Tegucigalpa":{u:-360,c:["HN"]},"America/Thule":{u:-240,d:-180,c:["GL"]},"America/Thunder_Bay":{a:"America/Toronto",c:["CA"],r:1},"America/Tijuana":{u:-480,d:-420,c:["MX"]},"America/Toronto":{u:-300,d:-240,c:["CA","BS"]},"America/Tortola":{a:"America/Puerto_Rico",c:["VG"],r:1},"America/Vancouver":{u:-480,d:-420,c:["CA"]},"America/Virgin":{a:"America/Puerto_Rico",c:["VI"],r:1},"America/Whitehorse":{u:-420,c:["CA"]},"America/Winnipeg":{u:-360,d:-300,c:["CA"]},"America/Yakutat":{u:-540,d:-480,c:["US"]},"America/Yellowknife":{u:-420,d:-360,c:["CA"]},"Antarctica/Casey":{u:660,c:["AQ"]},"Antarctica/Davis":{u:420,c:["AQ"]},"Antarctica/DumontDUrville":{a:"Pacific/Port_Moresby",c:["AQ"],r:1},"Antarctica/Macquarie":{u:600,d:660,c:["AU"]},"Antarctica/Mawson":{u:300,c:["AQ"]},"Antarctica/McMurdo":{a:"Pacific/Auckland",c:["AQ"],r:1},"Antarctica/Palmer":{u:-180,c:["AQ"]},"Antarctica/Rothera":{u:-180,c:["AQ"]},"Antarctica/South_Pole":{a:"Pacific/Auckland",c:["AQ"],r:1},"Antarctica/Syowa":{a:"Asia/Riyadh",c:["AQ"],r:1},"Antarctica/Troll":{u:0,d:120,c:["AQ"]},"Antarctica/Vostok":{a:"Asia/Urumqi",c:["AQ"],r:1},"Arctic/Longyearbyen":{a:"Europe/Berlin",c:["SJ"],r:1},"Asia/Aden":{a:"Asia/Riyadh",c:["YE"],r:1},"Asia/Almaty":{u:360,c:["KZ"]},"Asia/Amman":{u:180,c:["JO"]},"Asia/Anadyr":{u:720,c:["RU"]},"Asia/Aqtau":{u:300,c:["KZ"]},"Asia/Aqtobe":{u:300,c:["KZ"]},"Asia/Ashgabat":{u:300,c:["TM"]},"Asia/Ashkhabad":{a:"Asia/Ashgabat",r:1},"Asia/Atyrau":{u:300,c:["KZ"]},"Asia/Baghdad":{u:180,c:["IQ"]},"Asia/Bahrain":{a:"Asia/Qatar",c:["BH"],r:1},"Asia/Baku":{u:240,c:["AZ"]},"Asia/Bangkok":{u:420,c:["TH","CX","KH","LA","VN"]},"Asia/Barnaul":{u:420,c:["RU"]},"Asia/Beirut":{u:120,d:180,c:["LB"]},"Asia/Bishkek":{u:360,c:["KG"]},"Asia/Brunei":{a:"Asia/Kuching",c:["BN"],r:1},"Asia/Calcutta":{a:"Asia/Kolkata",r:1},"Asia/Chita":{u:540,c:["RU"]},"Asia/Choibalsan":{u:480,c:["MN"]},"Asia/Chongqing":{a:"Asia/Shanghai",r:1},"Asia/Chungking":{a:"Asia/Shanghai",r:1},"Asia/Colombo":{u:330,c:["LK"]},"Asia/Dacca":{a:"Asia/Dhaka",r:1},"Asia/Damascus":{u:180,c:["SY"]},"Asia/Dhaka":{u:360,c:["BD"]},"Asia/Dili":{u:540,c:["TL"]},"Asia/Dubai":{u:240,c:["AE","OM","RE","SC","TF"]},"Asia/Dushanbe":{u:300,c:["TJ"]},"Asia/Famagusta":{u:120,d:180,c:["CY"]},"Asia/Gaza":{u:120,d:180,c:["PS"]},"Asia/Harbin":{a:"Asia/Shanghai",r:1},"Asia/Hebron":{u:120,d:180,c:["PS"]},"Asia/Ho_Chi_Minh":{u:420,c:["VN"]},"Asia/Hong_Kong":{u:480,c:["HK"]},"Asia/Hovd":{u:420,c:["MN"]},"Asia/Irkutsk":{u:480,c:["RU"]},"Asia/Istanbul":{a:"Europe/Istanbul",r:1},"Asia/Jakarta":{u:420,c:["ID"]},"Asia/Jayapura":{u:540,c:["ID"]},"Asia/Jerusalem":{u:120,d:180,c:["IL"]},"Asia/Kabul":{u:270,c:["AF"]},"Asia/Kamchatka":{u:720,c:["RU"]},"Asia/Karachi":{u:300,c:["PK"]},"Asia/Kashgar":{a:"Asia/Urumqi",c:["CN"],r:1},"Asia/Kathmandu":{u:345,c:["NP"]},"Asia/Katmandu":{a:"Asia/Kathmandu",r:1},"Asia/Khandyga":{u:540,c:["RU"]},"Asia/Kolkata":{u:330,c:["IN"]},"Asia/Krasnoyarsk":{u:420,c:["RU"]},"Asia/Kuala_Lumpur":{a:"Asia/Singapore",c:["MY"],r:1},"Asia/Kuching":{u:480,c:["MY","BN"]},"Asia/Kuwait":{a:"Asia/Riyadh",c:["KW"],r:1},"Asia/Macao":{a:"Asia/Macau",r:1},"Asia/Macau":{u:480,c:["MO"]},"Asia/Magadan":{u:660,c:["RU"]},"Asia/Makassar":{u:480,c:["ID"]},"Asia/Manila":{u:480,c:["PH"]},"Asia/Muscat":{a:"Asia/Dubai",c:["OM"],r:1},"Asia/Nicosia":{u:120,d:180,c:["CY"]},"Asia/Novokuznetsk":{u:420,c:["RU"]},"Asia/Novosibirsk":{u:420,c:["RU"]},"Asia/Omsk":{u:360,c:["RU"]},"Asia/Oral":{u:300,c:["KZ"]},"Asia/Phnom_Penh":{a:"Asia/Bangkok",c:["KH"],r:1},"Asia/Pontianak":{u:420,c:["ID"]},"Asia/Pyongyang":{u:540,c:["KP"]},"Asia/Qatar":{u:180,c:["QA","BH"]},"Asia/Qostanay":{u:360,c:["KZ"]},"Asia/Qyzylorda":{u:300,c:["KZ"]},"Asia/Rangoon":{a:"Asia/Yangon",c:["MM"],r:1},"Asia/Riyadh":{u:180,c:["SA","AQ","KW","YE"]},"Asia/Saigon":{a:"Asia/Ho_Chi_Minh",r:1},"Asia/Sakhalin":{u:660,c:["RU"]},"Asia/Samarkand":{u:300,c:["UZ"]},"Asia/Seoul":{u:540,c:["KR"]},"Asia/Shanghai":{u:480,c:["CN"]},"Asia/Singapore":{u:480,c:["SG","MY"]},"Asia/Srednekolymsk":{u:660,c:["RU"]},"Asia/Taipei":{u:480,c:["TW"]},"Asia/Tashkent":{u:300,c:["UZ"]},"Asia/Tbilisi":{u:240,c:["GE"]},"Asia/Tehran":{u:210,c:["IR"]},"Asia/Tel_Aviv":{a:"Asia/Jerusalem",r:1},"Asia/Thimbu":{a:"Asia/Thimphu",r:1},"Asia/Thimphu":{u:360,c:["BT"]},"Asia/Tokyo":{u:540,c:["JP"]},"Asia/Tomsk":{u:420,c:["RU"]},"Asia/Ujung_Pandang":{a:"Asia/Makassar",r:1},"Asia/Ulaanbaatar":{u:480,c:["MN"]},"Asia/Ulan_Bator":{a:"Asia/Ulaanbaatar",r:1},"Asia/Urumqi":{u:360,c:["CN","AQ"]},"Asia/Ust-Nera":{u:600,c:["RU"]},"Asia/Vientiane":{a:"Asia/Bangkok",c:["LA"],r:1},"Asia/Vladivostok":{u:600,c:["RU"]},"Asia/Yakutsk":{u:540,c:["RU"]},"Asia/Yangon":{u:390,c:["MM","CC"]},"Asia/Yekaterinburg":{u:300,c:["RU"]},"Asia/Yerevan":{u:240,c:["AM"]},"Atlantic/Azores":{u:-60,d:0,c:["PT"]},"Atlantic/Bermuda":{u:-240,d:-180,c:["BM"]},"Atlantic/Canary":{u:0,d:60,c:["ES"]},"Atlantic/Cape_Verde":{u:-60,c:["CV"]},"Atlantic/Faeroe":{a:"Atlantic/Faroe",r:1},"Atlantic/Faroe":{u:0,d:60,c:["FO"]},"Atlantic/Jan_Mayen":{a:"Europe/Berlin",c:["SJ"],r:1},"Atlantic/Madeira":{u:0,d:60,c:["PT"]},"Atlantic/Reykjavik":{a:"Africa/Abidjan",c:["IS"],r:1},"Atlantic/South_Georgia":{u:-120,c:["GS"]},"Atlantic/St_Helena":{a:"Africa/Abidjan",c:["SH"],r:1},"Atlantic/Stanley":{u:-180,c:["FK"]},"Australia/ACT":{a:"Australia/Sydney",r:1},"Australia/Adelaide":{u:570,d:630,c:["AU"]},"Australia/Brisbane":{u:600,c:["AU"]},"Australia/Broken_Hill":{u:570,d:630,c:["AU"]},"Australia/Canberra":{a:"Australia/Sydney",r:1},"Australia/Currie":{a:"Australia/Hobart",r:1},"Australia/Darwin":{u:570,c:["AU"]},"Australia/Eucla":{u:525,c:["AU"]},"Australia/Hobart":{u:600,d:660,c:["AU"]},"Australia/LHI":{a:"Australia/Lord_Howe",r:1},"Australia/Lindeman":{u:600,c:["AU"]},"Australia/Lord_Howe":{u:630,d:660,c:["AU"]},"Australia/Melbourne":{u:600,d:660,c:["AU"]},"Australia/NSW":{a:"Australia/Sydney",r:1},"Australia/North":{a:"Australia/Darwin",r:1},"Australia/Perth":{u:480,c:["AU"]},"Australia/Queensland":{a:"Australia/Brisbane",r:1},"Australia/South":{a:"Australia/Adelaide",r:1},"Australia/Sydney":{u:600,d:660,c:["AU"]},"Australia/Tasmania":{a:"Australia/Hobart",r:1},"Australia/Victoria":{a:"Australia/Melbourne",r:1},"Australia/West":{a:"Australia/Perth",r:1},"Australia/Yancowinna":{a:"Australia/Broken_Hill",r:1},"Brazil/Acre":{a:"America/Rio_Branco",r:1},"Brazil/DeNoronha":{a:"America/Noronha",r:1},"Brazil/East":{a:"America/Sao_Paulo",r:1},"Brazil/West":{a:"America/Manaus",r:1},CET:{u:60,d:120},CST6CDT:{u:-360,d:-300},"Canada/Atlantic":{a:"America/Halifax",r:1},"Canada/Central":{a:"America/Winnipeg",r:1},"Canada/Eastern":{a:"America/Toronto",c:["CA"],r:1},"Canada/Mountain":{a:"America/Edmonton",r:1},"Canada/Newfoundland":{a:"America/St_Johns",r:1},"Canada/Pacific":{a:"America/Vancouver",r:1},"Canada/Saskatchewan":{a:"America/Regina",r:1},"Canada/Yukon":{a:"America/Whitehorse",r:1},"Chile/Continental":{a:"America/Santiago",r:1},"Chile/EasterIsland":{a:"Pacific/Easter",r:1},Cuba:{a:"America/Havana",r:1},EET:{u:120,d:180},EST:{u:-300},EST5EDT:{u:-300,d:-240},Egypt:{a:"Africa/Cairo",r:1},Eire:{a:"Europe/Dublin",r:1},"Etc/GMT":{u:0},"Etc/GMT+0":{a:"Etc/GMT",r:1},"Etc/GMT+1":{u:-60},"Etc/GMT+10":{u:-600},"Etc/GMT+11":{u:-660},"Etc/GMT+12":{u:-720},"Etc/GMT+2":{u:-120},"Etc/GMT+3":{u:-180},"Etc/GMT+4":{u:-240},"Etc/GMT+5":{u:-300},"Etc/GMT+6":{u:-360},"Etc/GMT+7":{u:-420},"Etc/GMT+8":{u:-480},"Etc/GMT+9":{u:-540},"Etc/GMT-0":{a:"Etc/GMT",r:1},"Etc/GMT-1":{u:60},"Etc/GMT-10":{u:600},"Etc/GMT-11":{u:660},"Etc/GMT-12":{u:720},"Etc/GMT-13":{u:780},"Etc/GMT-14":{u:840},"Etc/GMT-2":{u:120},"Etc/GMT-3":{u:180},"Etc/GMT-4":{u:240},"Etc/GMT-5":{u:300},"Etc/GMT-6":{u:360},"Etc/GMT-7":{u:420},"Etc/GMT-8":{u:480},"Etc/GMT-9":{u:540},"Etc/GMT0":{a:"Etc/GMT",r:1},"Etc/Greenwich":{a:"Etc/GMT",r:1},"Etc/UCT":{a:"Etc/UTC",r:1},"Etc/UTC":{u:0},"Etc/Universal":{a:"Etc/UTC",r:1},"Etc/Zulu":{a:"Etc/UTC",r:1},"Europe/Amsterdam":{a:"Europe/Brussels",c:["NL"],r:1},"Europe/Andorra":{u:60,d:120,c:["AD"]},"Europe/Astrakhan":{u:240,c:["RU"]},"Europe/Athens":{u:120,d:180,c:["GR"]},"Europe/Belfast":{a:"Europe/London",c:["GB"],r:1},"Europe/Belgrade":{u:60,d:120,c:["RS","BA","HR","ME","MK","SI"]},"Europe/Berlin":{u:60,d:120,c:["DE","DK","NO","SE","SJ"]},"Europe/Bratislava":{a:"Europe/Prague",c:["SK"],r:1},"Europe/Brussels":{u:60,d:120,c:["BE","LU","NL"]},"Europe/Bucharest":{u:120,d:180,c:["RO"]},"Europe/Budapest":{u:60,d:120,c:["HU"]},"Europe/Busingen":{a:"Europe/Zurich",c:["DE"],r:1},"Europe/Chisinau":{u:120,d:180,c:["MD"]},"Europe/Copenhagen":{a:"Europe/Berlin",c:["DK"],r:1},"Europe/Dublin":{u:60,d:0,c:["IE"]},"Europe/Gibraltar":{u:60,d:120,c:["GI"]},"Europe/Guernsey":{a:"Europe/London",c:["GG"],r:1},"Europe/Helsinki":{u:120,d:180,c:["FI","AX"]},"Europe/Isle_of_Man":{a:"Europe/London",c:["IM"],r:1},"Europe/Istanbul":{u:180,c:["TR"]},"Europe/Jersey":{a:"Europe/London",c:["JE"],r:1},"Europe/Kaliningrad":{u:120,c:["RU"]},"Europe/Kiev":{a:"Europe/Kyiv",r:1},"Europe/Kirov":{u:180,c:["RU"]},"Europe/Kyiv":{u:120,d:180,c:["UA"]},"Europe/Lisbon":{u:0,d:60,c:["PT"]},"Europe/Ljubljana":{a:"Europe/Belgrade",c:["SI"],r:1},"Europe/London":{u:0,d:60,c:["GB","GG","IM","JE"]},"Europe/Luxembourg":{a:"Europe/Brussels",c:["LU"],r:1},"Europe/Madrid":{u:60,d:120,c:["ES"]},"Europe/Malta":{u:60,d:120,c:["MT"]},"Europe/Mariehamn":{a:"Europe/Helsinki",c:["AX"],r:1},"Europe/Minsk":{u:180,c:["BY"]},"Europe/Monaco":{a:"Europe/Paris",c:["MC"],r:1},"Europe/Moscow":{u:180,c:["RU"]},"Europe/Nicosia":{a:"Asia/Nicosia",r:1},"Europe/Oslo":{a:"Europe/Berlin",c:["NO","BV"],r:1},"Europe/Paris":{u:60,d:120,c:["FR","MC"]},"Europe/Podgorica":{a:"Europe/Belgrade",c:["ME"],r:1},"Europe/Prague":{u:60,d:120,c:["CZ","SK"]},"Europe/Riga":{u:120,d:180,c:["LV"]},"Europe/Rome":{u:60,d:120,c:["IT","SM","VA"]},"Europe/Samara":{u:240,c:["RU"]},"Europe/San_Marino":{a:"Europe/Rome",c:["SM"],r:1},"Europe/Sarajevo":{a:"Europe/Belgrade",c:["BA"],r:1},"Europe/Saratov":{u:240,c:["RU"]},"Europe/Simferopol":{u:180,c:["RU","UA"]},"Europe/Skopje":{a:"Europe/Belgrade",c:["MK"],r:1},"Europe/Sofia":{u:120,d:180,c:["BG"]},"Europe/Stockholm":{a:"Europe/Berlin",c:["SE"],r:1},"Europe/Tallinn":{u:120,d:180,c:["EE"]},"Europe/Tirane":{u:60,d:120,c:["AL"]},"Europe/Tiraspol":{a:"Europe/Chisinau",r:1},"Europe/Ulyanovsk":{u:240,c:["RU"]},"Europe/Uzhgorod":{a:"Europe/Kyiv",r:1},"Europe/Vaduz":{a:"Europe/Zurich",c:["LI"],r:1},"Europe/Vatican":{a:"Europe/Rome",c:["VA"],r:1},"Europe/Vienna":{u:60,d:120,c:["AT"]},"Europe/Vilnius":{u:120,d:180,c:["LT"]},"Europe/Volgograd":{u:180,c:["RU"]},"Europe/Warsaw":{u:60,d:120,c:["PL"]},"Europe/Zagreb":{a:"Europe/Belgrade",c:["HR"],r:1},"Europe/Zaporozhye":{a:"Europe/Kyiv",r:1},"Europe/Zurich":{u:60,d:120,c:["CH","DE","LI"]},Factory:{u:0},GB:{a:"Europe/London",c:["GB"],r:1},"GB-Eire":{a:"Europe/London",c:["GB"],r:1},GMT:{a:"Etc/GMT",r:1},"GMT+0":{a:"Etc/GMT",r:1},"GMT-0":{a:"Etc/GMT",r:1},GMT0:{a:"Etc/GMT",r:1},Greenwich:{a:"Etc/GMT",r:1},HST:{u:-600},Hongkong:{a:"Asia/Hong_Kong",r:1},Iceland:{a:"Africa/Abidjan",c:["IS"],r:1},"Indian/Antananarivo":{a:"Africa/Nairobi",c:["MG"],r:1},"Indian/Chagos":{u:360,c:["IO"]},"Indian/Christmas":{a:"Asia/Bangkok",c:["CX"],r:1},"Indian/Cocos":{a:"Asia/Yangon",c:["CC"],r:1},"Indian/Comoro":{a:"Africa/Nairobi",c:["KM"],r:1},"Indian/Kerguelen":{a:"Indian/Maldives",c:["TF","HM"],r:1},"Indian/Mahe":{a:"Asia/Dubai",c:["SC"],r:1},"Indian/Maldives":{u:300,c:["MV","TF"]},"Indian/Mauritius":{u:240,c:["MU"]},"Indian/Mayotte":{a:"Africa/Nairobi",c:["YT"],r:1},"Indian/Reunion":{a:"Asia/Dubai",c:["RE"],r:1},Iran:{a:"Asia/Tehran",r:1},Israel:{a:"Asia/Jerusalem",r:1},Jamaica:{a:"America/Jamaica",r:1},Japan:{a:"Asia/Tokyo",r:1},Kwajalein:{a:"Pacific/Kwajalein",r:1},Libya:{a:"Africa/Tripoli",r:1},MET:{u:60,d:120},MST:{u:-420},MST7MDT:{u:-420,d:-360},"Mexico/BajaNorte":{a:"America/Tijuana",r:1},"Mexico/BajaSur":{a:"America/Mazatlan",r:1},"Mexico/General":{a:"America/Mexico_City",r:1},NZ:{a:"Pacific/Auckland",c:["NZ"],r:1},"NZ-CHAT":{a:"Pacific/Chatham",r:1},Navajo:{a:"America/Denver",r:1},PRC:{a:"Asia/Shanghai",r:1},PST8PDT:{u:-480,d:-420},"Pacific/Apia":{u:780,c:["WS"]},"Pacific/Auckland":{u:720,d:780,c:["NZ","AQ"]},"Pacific/Bougainville":{u:660,c:["PG"]},"Pacific/Chatham":{u:765,d:825,c:["NZ"]},"Pacific/Chuuk":{a:"Pacific/Port_Moresby",c:["FM"],r:1},"Pacific/Easter":{u:-360,d:-300,c:["CL"]},"Pacific/Efate":{u:660,c:["VU"]},"Pacific/Enderbury":{a:"Pacific/Kanton",r:1},"Pacific/Fakaofo":{u:780,c:["TK"]},"Pacific/Fiji":{u:720,c:["FJ"]},"Pacific/Funafuti":{a:"Pacific/Tarawa",c:["TV"],r:1},"Pacific/Galapagos":{u:-360,c:["EC"]},"Pacific/Gambier":{u:-540,c:["PF"]},"Pacific/Guadalcanal":{u:660,c:["SB","FM"]},"Pacific/Guam":{u:600,c:["GU","MP"]},"Pacific/Honolulu":{u:-600,c:["US","UM"]},"Pacific/Johnston":{a:"Pacific/Honolulu",c:["UM"],r:1},"Pacific/Kanton":{u:780,c:["KI"]},"Pacific/Kiritimati":{u:840,c:["KI"]},"Pacific/Kosrae":{u:660,c:["FM"]},"Pacific/Kwajalein":{u:720,c:["MH"]},"Pacific/Majuro":{a:"Pacific/Tarawa",c:["MH"],r:1},"Pacific/Marquesas":{u:-570,c:["PF"]},"Pacific/Midway":{a:"Pacific/Pago_Pago",c:["UM"],r:1},"Pacific/Nauru":{u:720,c:["NR"]},"Pacific/Niue":{u:-660,c:["NU"]},"Pacific/Norfolk":{u:660,d:720,c:["NF"]},"Pacific/Noumea":{u:660,c:["NC"]},"Pacific/Pago_Pago":{u:-660,c:["AS","UM"]},"Pacific/Palau":{u:540,c:["PW"]},"Pacific/Pitcairn":{u:-480,c:["PN"]},"Pacific/Pohnpei":{a:"Pacific/Guadalcanal",c:["FM"],r:1},"Pacific/Ponape":{a:"Pacific/Guadalcanal",c:["FM"],r:1},"Pacific/Port_Moresby":{u:600,c:["PG","AQ","FM"]},"Pacific/Rarotonga":{u:-600,c:["CK"]},"Pacific/Saipan":{a:"Pacific/Guam",c:["MP"],r:1},"Pacific/Samoa":{a:"Pacific/Pago_Pago",c:["AS"],r:1},"Pacific/Tahiti":{u:-600,c:["PF"]},"Pacific/Tarawa":{u:720,c:["KI","MH","TV","UM","WF"]},"Pacific/Tongatapu":{u:780,c:["TO"]},"Pacific/Truk":{a:"Pacific/Port_Moresby",c:["FM"],r:1},"Pacific/Wake":{a:"Pacific/Tarawa",c:["UM"],r:1},"Pacific/Wallis":{a:"Pacific/Tarawa",c:["WF"],r:1},"Pacific/Yap":{a:"Pacific/Port_Moresby",c:["FM"],r:1},Poland:{a:"Europe/Warsaw",r:1},Portugal:{a:"Europe/Lisbon",r:1},ROC:{a:"Asia/Taipei",r:1},ROK:{a:"Asia/Seoul",r:1},Singapore:{a:"Asia/Singapore",c:["SG"],r:1},Turkey:{a:"Europe/Istanbul",r:1},UCT:{a:"Etc/UTC",r:1},"US/Alaska":{a:"America/Anchorage",r:1},"US/Aleutian":{a:"America/Adak",r:1},"US/Arizona":{a:"America/Phoenix",c:["US"],r:1},"US/Central":{a:"America/Chicago",r:1},"US/East-Indiana":{a:"America/Indiana/Indianapolis",r:1},"US/Eastern":{a:"America/New_York",r:1},"US/Hawaii":{a:"Pacific/Honolulu",c:["US"],r:1},"US/Indiana-Starke":{a:"America/Indiana/Knox",r:1},"US/Michigan":{a:"America/Detroit",r:1},"US/Mountain":{a:"America/Denver",r:1},"US/Pacific":{a:"America/Los_Angeles",r:1},"US/Samoa":{a:"Pacific/Pago_Pago",c:["AS"],r:1},UTC:{a:"Etc/UTC",r:1},Universal:{a:"Etc/UTC",r:1},"W-SU":{a:"Europe/Moscow",r:1},WET:{u:0,d:60},Zulu:{a:"Etc/UTC",r:1}},Gh={countries:bCe,timezones:wCe},uw;function SCe(e,t){var n=e.countries[t];if(!n)return null;var r=xCe(e)[t]||{};return{id:t,name:n,timezones:r.current||[],allTimezones:r.all||[]}}function xCe(e){return uw||(uw=CCe(e)),uw}function CCe(e){return Object.keys(e.timezones).reduce(function(t,n){var r=e.timezones[n],o=r.c,i=r.a,a=e.timezones[i]||{},s=o||a.c;return s&&s.forEach(function(c){t[c]||Object.assign(t,V1({},c,{current:[],all:[]})),r.r===void 0&&t[c].current.push(n),t[c].all.push(n)}),t},{})}function ECe(e,t){var n=e.timezones[t];if(!n)return null;var r=n.a,o=r===void 0?null:r,i=o?e.timezones[o]:{},a=lh(lh({},i),e.timezones[t]),s=a.c||[],c=a.u,u=Number.isInteger(a.d)?a.d:c,d={name:t,countries:s,utcOffset:c,utcOffsetStr:a3(c),dstOffset:u,dstOffsetStr:a3(u),aliasOf:o};return n.r&&(d.deprecated=!0),d}function a3(e){var t=Math.floor(e/60),n=e%60,r=e<0?"-":"+";return"".concat(r).concat(s3(t),":").concat(s3(n))}function s3(e){var t=Math.abs(e),n=t<10?"0":"";return"".concat(n).concat(t)}var TCe=["allTimezones"],kCe=Object.keys(Gh.timezones).length,Rx={},mf={},HM=0;function ACe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(Gh.countries).reduce(function(t,n){return Object.assign(t,V1({},n,G1(n,e)))},{})}function RCe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return kCe!==HM&&Object.keys(Gh.timezones).forEach(q1),$Ce(mf,e)}function G1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Rx[e]||_Ce(SCe(Gh,e)),NCe(Rx[e],t)}function _Ce(e){e&&(Rx[e.id]=e)}function q1(e){return mf[e]||PCe(ECe(Gh,e)),mf[e]?lh({},mf[e]):null}function PCe(e){e&&(mf[e.name]=e,HM=Object.keys(e).length)}function VM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=q1(e)||{},r=n.countries||[];return r.map(function(o){return G1(o,t)})}function ICe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=VM(e,t),r=hCe(n,1),o=r[0];return o||null}function OCe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=G1(e,t);if(!n)return null;var r=n.timezones||[];return r.map(q1)}function $Ce(e,t){var n=t||{},r=n.deprecated;return r===!0?e:Object.keys(e).reduce(function(o,i){return e[i].deprecated||Object.assign(o,V1({},i,e[i])),o},{})}function NCe(e,t){if(!e)return null;var n=t||{},r=n.deprecated;e.allTimezones;var o=fCe(e,TCe),i=r?e.allTimezones:e.timezones;return lh(lh({},o),{},{timezones:i})}var LCe={getCountry:G1,getTimezone:q1,getAllCountries:ACe,getAllTimezones:RCe,getTimezonesForCountry:OCe,getCountriesForTimezone:VM,getCountryForTimezone:ICe};const MCe=C("div")(({theme:e})=>({display:"flex",flexDirection:"row",marginBottom:e.spacing(1),alignItems:"center",gap:e.spacing(1)})),DCe=({setValue:e,value:t,error:n,setError:r})=>{const o=Object.values(LCe.getAllTimezones({deprecated:!1})).map(u=>({key:u.name,label:`${u.name}`,utcOffset:u.utcOffsetStr})),{timeZone:i}=Intl.DateTimeFormat().resolvedOptions(),[a,s]=m.useState(t||""),c=m.useMemo(()=>{const u=o.find(d=>d.key===i);return u!=null?`${u.key} (UTC ${u.utcOffset})`:"The time shown is in your local time zone according to your browser."},[o,i]);return t?x(ve,{children:[l(Vh,{children:"Select a date"}),x(MCe,{children:[l(Sr,{id:"date",label:"Date",type:"datetime-local",value:nve(a),onChange:u=>{r("");const d=zL(u.target.value),p=d==null?void 0:d.toISOString();p&&s(p),p&&e(p)},InputLabelProps:{shrink:!0},error:!!n,errorText:n,required:!0}),l("p",{children:c})]})]}):null},GM=As()(e=>({valueChip:{margin:"0 0.5rem 0.5rem 0"},chipValue:{whiteSpace:"pre"},inputContainer:{display:"flex",alignItems:"center",[e.breakpoints.down(700)]:{flexDirection:"column",alignItems:"flex-start"}},inputInnerContainer:{minWidth:"300px",[e.breakpoints.down(700)]:{minWidth:"100%"}},input:{width:"100%",margin:"1rem 0"},button:{marginLeft:"1rem",[e.breakpoints.down(700)]:{marginLeft:0,marginBottom:"0.5rem"}},valuesContainer:{marginTop:"1rem"}})),BCe="Enter",l3=({values:e,removeValue:t,setValues:n,error:r,setError:o})=>{const[i,a]=m.useState(""),{classes:s}=GM(),c=d=>{d.key===BCe&&(d.preventDefault(),u())},u=()=>{const d=zCe([...e,...Ks(i)]);d.length===0?o("values cannot be empty"):d.some(p=>p.length>100)?o("values cannot be longer than 100 characters"):(o(""),a(""),n(d))};return x("div",{children:[l(Vh,{style:{marginBottom:0},children:"Set values (maximum 100 char length per value)"}),x("div",{className:s.inputContainer,children:[l("div",{className:s.inputInnerContainer,children:l(Sr,{onKeyPress:c,label:"Values",name:"values",value:i,onFocus:()=>{o("")},onChange:d=>a(d.target.value),placeholder:"value1, value2, value3...",className:s.input,error:!!r,errorText:r,"data-testid":"CONSTRAINT_VALUES_INPUT"})}),l(Ve,{className:s.button,variant:"outlined",color:"primary",onClick:()=>u(),"data-testid":"CONSTRAINT_VALUES_ADD_BUTTON",children:"Add values"})]}),l("div",{className:s.valuesContainer,children:l(FCe,{values:e,removeValue:t})})]})},FCe=({values:e,removeValue:t})=>{const{classes:n}=GM();return l(ve,{children:e.map((r,o)=>l(Ts,{label:l(Ca,{text:r,maxLength:35,maxWidth:"100",className:n.chipValue}),onDelete:()=>t(o),className:n.valueChip},`${r}-${o}`))})},zCe=e=>Array.from(new Set(e)),MT=({filter:e,setFilter:t})=>x("div",{style:{display:"flex",alignItems:"center"},children:[l("div",{style:{width:"300px"},children:l(wn,{label:"Search",name:"search",value:e,onChange:n=>t(n.target.value),placeholder:"Filter values",style:{width:"100%",margin:"1rem 0"},variant:"outlined",size:"small",InputProps:{startAdornment:l(oN,{position:"start",children:l(mE,{})})}})}),l(q,{condition:!!e,show:l(Ts,{style:{marginLeft:"1rem"},label:`filter active: ${e}`,onDelete:()=>t("")})})]}),jCe=As()(e=>({container:{display:"inline-block",wordBreak:"break-word"},value:{lineHeight:1.33,fontSize:e.fontSizes.smallBody},description:{lineHeight:1.33,fontSize:e.fontSizes.smallerBody,color:e.palette.action.active}})),qM=({legal:e,control:t})=>{const{classes:n}=jCe();return l("div",{className:n.container,children:l(Hr,{value:e.value,control:t,label:x(ve,{children:[l("div",{className:n.value,children:e.value}),l("div",{className:n.description,children:e.description})]})})})},KM=(e,t)=>e.filter(n=>n.value.includes(t)),c3=e=>e.reduce((t,n)=>(t[n]||(t[n]=!0),t),{}),u3=({legalValues:e,values:t,setValues:n,error:r,setError:o})=>{const[i,a]=m.useState(""),s=KM(e,i),[c,u]=m.useState(()=>c3(t)),{classes:d}=$h();m.useEffect(()=>{u(c3(t))},[t,u]);const p=f=>{if(o(""),c[f]){const h=t.findIndex(v=>v===f),g=[...t];g.splice(h,1),n(g);return}n([...t,f])};return x(ve,{children:[l(Vh,{children:"Select values from a predefined set"}),l(q,{condition:e.length>100,show:l(MT,{filter:i,setFilter:a})}),s.map(f=>l(qM,{legal:f,control:l(Ka,{checked:!!c[f.value],onChange:()=>p(f.value),name:f.value,color:"primary"})},f.value)),l(q,{condition:!!r,show:l("p",{className:d.error,children:r})})]})},d3=({setValue:e,value:t,type:n,legalValues:r,error:o,setError:i})=>{const[a,s]=m.useState(""),{classes:c}=$h(),u=KM(r,a);return x(ve,{children:[x(Vh,{children:["Add a single ",n.toLowerCase()," value"]}),l(q,{condition:r.length>100,show:l(MT,{filter:a,setFilter:s})}),l(q,{condition:!!r.length,show:l(ks,{component:"fieldset",children:l(q2,{"aria-label":"selected-value",name:"selected",value:t,onChange:d=>{i(""),e(d.target.value)},children:u.map(d=>l(qM,{legal:d,control:l(nc,{})},d.value))})}),elseShow:l("p",{children:"No valid legal values available for this operator."})}),l(q,{condition:!!o,show:l("p",{className:c.error,children:o})})]})},UCe=As()(e=>({singleValueContainer:{maxWidth:"300px",marginTop:"-1rem"},singleValueInput:{width:"100%",margin:"1rem 0"}})),p3=({setValue:e,value:t,type:n,error:r,setError:o})=>{const{classes:i}=UCe();return x(ve,{children:[x(Vh,{children:["Add a single ",n.toLowerCase()," value"]}),l("div",{className:i.singleValueContainer,children:l(Sr,{label:n,name:"value",value:t||"",onChange:a=>{o(""),e(a.target.value.trim())},onFocus:()=>o(""),placeholder:`Enter a single ${n} value`,className:i.singleValueInput,error:!!r,errorText:r})})]})},WCe=({input:e,contextDefinition:t,localConstraint:n,setValue:r,setValues:o,setError:i,removeValue:a,error:s})=>l(ve,{children:(()=>{var u;switch(e){case Ax:return l(u3,{legalValues:t.legalValues||[],values:n.values||[],setValues:o,error:s,setError:i});case MM:return l(ve,{children:l(u3,{legalValues:t.legalValues||[],values:n.values||[],setValues:o,error:s,setError:i})});case DM:return l(ve,{children:l(d3,{setValue:r,value:n.value,type:"number",legalValues:((u=t.legalValues)==null?void 0:u.filter(d=>Number(d.value)))||[],error:s,setError:i})});case BM:return l(ve,{children:l(d3,{setValue:r,value:n.value,type:"semver",legalValues:t.legalValues||[],error:s,setError:i})});case FM:return l(DCe,{value:n.value,setValue:r,error:s,setError:i});case zM:return l(l3,{values:n.values||[],removeValue:a,setValues:o,error:s,setError:i});case jM:return l(ve,{children:l(l3,{values:n.values||[],removeValue:a,setValues:o,error:s,setError:i})});case UM:return l(p3,{setValue:r,value:n.value,type:"number",error:s,setError:i});case WM:return l(p3,{setValue:r,value:n.value,type:"semver",error:s,setError:i})}})()}),YM="cancel",f3="save",h3=(e,t)=>e.find(r=>r.name===t)||{name:"",description:"",createdAt:"",sortOrder:1,stickiness:!1},HCe=C("div")({padding:0,margin:0,width:"100%"}),VCe=C(Zy)(({theme:e})=>({border:`1px solid ${e.palette.divider}`,borderRadius:e.shape.borderRadiusMedium,backgroundColor:e.palette.background.elevation1,boxShadow:"none",margin:0,"& .expanded":{"&:before":{opacity:"0 !important"}}})),GCe=C(n1)(({theme:e})=>({border:"none",padding:e.spacing(.5,3),"&:hover .valuesExpandLabel":{textDecoration:"underline"}})),qCe=C(e1)(({theme:e})=>({borderTop:`1px dashed ${e.palette.divider}`,display:"flex",flexDirection:"column",padding:0})),KCe=({constraint:e,compact:t,onCancel:n,onSave:r,onDelete:o})=>{const[i,a]=m.useState(_P(e)),{context:s}=Rl(),[c,u]=m.useState(h3(s,i.contextName)),{validateConstraint:d}=Id(),[p,f]=m.useState(!1),[h,g]=m.useState("");m.useEffect(()=>{f(!0)},[]),m.useEffect(()=>{u(h3(s,i.contextName))},[i.contextName,s]);const v=m.useCallback(M=>{a(D=>({...D,contextName:M,values:[],value:""}))},[]),y=m.useCallback(M=>{a(D=>({...D,operator:M,values:[],value:""}))},[]),b=m.useCallback(M=>{a(D=>({...D,values:M}))},[]),w=m.useCallback(M=>{a(D=>({...D,value:M}))},[]),S=()=>{a(M=>({...M,inverted:!M.inverted}))},k=m.useCallback(()=>{a(M=>({...M,caseInsensitive:!M.caseInsensitive}))},[]),A=m.useCallback(M=>{const D=[...i.values];D.splice(M,1),b(D)},[i,b]),T=()=>{f(!1)},R=()=>{const M=Array.isArray(i.values)&&i.values.length>0,D=!!i.value;return M||D?($(""),!0):($("You must provide a value for the constraint"),!1)},P=async()=>{if(!R())return;const[D,K]=I();if(D||$(K),D)try{await d(i),$(""),g(f3),T();return}catch(H){$(ht(H))}},{input:_,validator:I,setError:$,error:U}=uCe({contextDefinition:c,localConstraint:i});return m.useEffect(()=>{$(""),a(M=>_P(M))},[i.operator,i.contextName,$]),l(HCe,{children:x(VCe,{expanded:p,TransitionProps:{onExited:()=>{h===YM?(g(""),n()):h===f3&&(g(""),r(i))}},children:[l(GCe,{children:l(awe,{localConstraint:i,setLocalConstraint:a,setContextName:v,setOperator:y,action:h,compact:t,setInvertedOperator:S,setCaseInsensitive:k,onDelete:o})}),l(qCe,{children:l(Fbe,{localConstraint:i,setValues:b,setValue:w,triggerTransition:T,setAction:g,onSubmit:P,children:l(WCe,{setValues:b,setValue:w,setError:$,localConstraint:i,input:_,error:U,contextDefinition:c,removeValue:A})})})]})})},XM=(e,t)=>e.value&&e.contextName===sh?S1(e.value,t.locale):e.value,YCe=C(Ca)({whiteSpace:"pre"}),XCe=C(Ts)(({theme:e})=>({margin:e.spacing(0,1,1,0)})),JCe=({values:e})=>{const[t,n]=m.useState("");return!e||e.length===0?null:x(ve,{children:[l(q,{condition:e.length>20,show:l(MT,{filter:t,setFilter:n})}),e.filter(r=>r.includes(t)).map((r,o)=>l(XCe,{label:l(YCe,{maxWidth:"400",text:r,maxLength:50})},`${r}-${o}`))]})},QCe=C("div")(({theme:e})=>({display:"flex",alignItems:"center",[e.breakpoints.down(600)]:{flexDirection:"column"}})),ZCe=C("p")(({theme:e})=>({marginRight:e.spacing(1.5),[e.breakpoints.down(600)]:{marginBottom:e.spacing(1.5),marginRight:0}})),e2e=C(Ts)(({theme:e})=>({margin:e.spacing(0,1,1,0)})),t2e=({value:e,operator:t})=>e?x(QCe,{children:[x(ZCe,{children:["Value must be ",t]})," ",l(e2e,{label:l(Ca,{maxWidth:"400",text:e,maxLength:50})})]}):null,n2e=C("div")(({theme:e})=>({padding:e.spacing(2,0),maxHeight:"400px",overflowY:"auto"})),r2e=({constraint:e})=>{const{locationSettings:t}=Ja();return l("div",{children:x(n2e,{children:[l(JCe,{values:e.values}),l(t2e,{value:XM(e,t),operator:e.operator})]})})},o2e=C("div")(({theme:e})=>({padding:e.spacing(.5,1.5),borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.elevation2,lineHeight:1.25})),i2e=C("div")(({theme:e})=>({fontSize:e.fontSizes.smallBody,lineHeight:17/14})),a2e=C("div")(({theme:e})=>({fontSize:e.fontSizes.smallerBody,color:e.palette.neutral.main})),s2e=({constraint:e,hasPrefix:t})=>{const n=e.operator,r=Tx(e.operator);return x(o2e,{style:{borderTopLeftRadius:t?0:void 0,borderBottomLeftRadius:t?0:void 0,paddingLeft:t?0:void 0},children:[l(i2e,{children:n}),l(a2e,{children:r})]})},JM=C("div")(({theme:e})=>({backgroundColor:e.palette.background.elevation2,width:24,display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"stretch",color:e.palette.primary.main,marginLeft:e.spacing(1),borderRadius:e.shape.borderRadius})),l2e=C(JM)(()=>({marginLeft:0,borderTopRightRadius:0,borderBottomRightRadius:0})),m3=m.forwardRef(({isPrefix:e,...t},n)=>l(q,{condition:!!e,show:()=>l(l2e,{ref:n,...t}),elseShow:()=>l(JM,{ref:n,...t})})),c2e=C("div")(({theme:e})=>({display:"flex",alignItems:"stretch",margin:"auto 0"})),u2e=C("div")(({theme:e})=>({minWidth:"152px",position:"relative",[e.breakpoints.down("sm")]:{paddingRight:0}})),d2e=({constraint:e})=>x(c2e,{children:[l(q,{condition:!!e.inverted,show:l(xt,{title:"Operator is negated",arrow:!0,children:l(Le,{sx:{display:"flex"},children:l(m3,{isPrefix:!0,children:l(EM,{})})})})}),l(u2e,{children:l(s2e,{constraint:e,hasPrefix:!!e.inverted})}),l(q,{condition:!e.caseInsensitive&&Mn(ms,e.operator),show:l(xt,{title:"Case sensitive is active",arrow:!0,children:l(m3,{children:l(AM,{})})})})]}),p2e=C(Ts)(({theme:e})=>({margin:"auto 0",marginLeft:e.spacing(1),[e.breakpoints.down("sm")]:{margin:e.spacing(1,0)}})),f2e=C("div")(({theme:e})=>({display:"flex",alignItems:"stretch",margin:"auto 0"})),h2e=({constraint:e,allowExpand:t})=>{const{locationSettings:n}=Ja();return m.useEffect(()=>{t(!1)},[t]),l(f2e,{children:l(p2e,{label:XM(e,n)})})},m2e=C("span")(({theme:e})=>({display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",wordBreak:"break-word",fontSize:e.fontSizes.smallBody,margin:"auto 0",[e.breakpoints.down("sm")]:{margin:e.spacing(1,0),textAlign:"center"}})),g2e=C("div")(({theme:e})=>({display:"flex",alignItems:"stretch",margin:"auto 0"})),v2e=C("div")(({theme:e})=>({display:"flex",justifyContent:"stretch",margin:"auto 0",flexDirection:"column",marginLeft:e.spacing(1),[e.breakpoints.down("sm")]:{marginLeft:0}})),y2e=C("p")(({theme:e})=>({fontSize:e.fontSizes.smallBody,marginTop:e.spacing(.5),color:e.palette.links,[e.breakpoints.down("sm")]:{textAlign:"center"}})),b2e=({constraint:e,expanded:t,allowExpand:n,maxLength:r})=>{var s;const[o,i]=m.useState(!1),a=m.useMemo(()=>{var c;return(c=e==null?void 0:e.values)==null?void 0:c.map(u=>u).join(", ")},[e]);return m.useEffect(()=>{a&&(n(((a==null?void 0:a.length)??0)>r),i(((a==null?void 0:a.length)??0)>r))},[a,r,n,i]),l(g2e,{children:x(v2e,{children:[l(m2e,{children:a}),l(q,{condition:o,show:l(y2e,{className:"valuesExpandLabel",children:t?"View less":`View all (${(s=e==null?void 0:e.values)==null?void 0:s.length})`})})]})})},w2e=C("span")(({theme:e})=>({display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden",maxWidth:"100px",minWidth:"100px",marginRight:"10px",marginTop:"auto",marginBottom:"auto",wordBreak:"break-word",fontSize:e.fontSizes.smallBody,[e.breakpoints.down(710)]:{textAlign:"center",padding:e.spacing(1,0),marginRight:"inherit",maxWidth:"inherit"}})),S2e=C("div")(({theme:e})=>({display:"flex",width:"100%",justifyContent:"space-between",borderRadius:e.spacing(1)})),x2e=C("div")(({theme:e})=>({display:"flex",alignItems:"stretch",marginLeft:e.spacing(1),[e.breakpoints.down("sm")]:{marginLeft:0,flexDirection:"column",alignItems:"center",width:"100%"}})),C2e=({constraint:e,singleValue:t,allowExpand:n,expanded:r,maxLength:o=112})=>l(S2e,{children:x(x2e,{children:[l(xt,{title:e.contextName,arrow:!0,children:l(w2e,{children:e.contextName})}),l(d2e,{constraint:e}),l(q,{condition:t,show:l(h2e,{constraint:e,allowExpand:n}),elseShow:l(b2e,{constraint:e,expanded:r,allowExpand:n,maxLength:o})})]})}),E2e=oo("div")(({theme:e})=>({display:"flex",alignItems:"center",width:"100%",[e.breakpoints.down("sm")]:{flexDirection:"column",alignItems:"center",position:"relative"}})),T2e=({constraint:e,onEdit:t,onDelete:n,singleValue:r,allowExpand:o,expanded:i,compact:a})=>x(E2e,{children:[l(xM,{compact:a}),l(C2e,{constraint:e,singleValue:r,allowExpand:o,expanded:i}),l(RM,{onEdit:t,onDelete:n})]}),k2e=C(Zy)(({theme:e})=>({border:`1px solid ${e.palette.divider}`,borderRadius:e.shape.borderRadiusMedium,backgroundColor:"transparent",boxShadow:"none",margin:0,"&:before":{opacity:"0"}})),A2e=C(n1)(({theme:e})=>({"& .root":{border:"none",padding:e.spacing(.5,3),"&:hover .valuesExpandLabel":{textDecoration:"underline"}}})),R2e=C(e1)(({theme:e})=>({borderTop:`1px dashed ${e.palette.divider}`,display:"flex",flexDirection:"column"})),_2e=C("div")({display:"flex",flexDirection:"column",width:"100%"}),P2e=({constraint:e,onEdit:t,onDelete:n,sx:r=void 0,compact:o=!1,renderAfter:i})=>{const[a,s]=m.useState(!0),[c,u]=m.useState(!1),d=Mn([...$u,...Ou,...Ii],e.operator);return x(k2e,{expanded:c,sx:r,children:[l(A2e,{expandIcon:null,onClick:()=>{a&&u(!c)},sx:{cursor:a?"pointer":"default!important","&:hover":{cursor:a?"pointer":"default!important"}},children:x(_2e,{children:[l(T2e,{constraint:e,onEdit:t,onDelete:n,singleValue:d,allowExpand:s,expanded:c,compact:o}),i]})}),l(R2e,{children:l(r2e,{constraint:e})})]})},I2e=({constraint:e,compact:t=!1,editing:n,onEdit:r,onCancel:o,onDelete:i,onSave:a})=>e?l(q,{condition:!!(n&&a),show:l(KCe,{constraint:e,onCancel:o,onSave:a,onDelete:i,compact:t}),elseShow:l(P2e,{constraint:e,onEdit:r,onDelete:i})}):null,O2e=e=>{const t=m.useRef(e??new WeakMap),[,n]=m.useState(0),r=m.useCallback((i,a)=>{t.current.set(i,a),n(s=>s+1)},[]),o=m.useCallback(i=>t.current.get(i),[]);return m.useMemo(()=>({set:r,get:o}),[r,o])},QM=e=>(dw.has(e)||(g3++,dw.set(e,g3)),dw.get(e)),dw=new WeakMap;let g3=0;const $2e=e=>{const t=CM(e)[0],n=Mn(Ii,t)?new Date().toISOString():"";return{contextName:e,operator:t,value:n,values:[],caseInsensitive:!1,inverted:!1}},ZM=C("div")(({theme:e})=>({padding:e.spacing(.75,1),color:e.palette.text.primary,fontSize:e.fontSizes.smallerBody,backgroundColor:e.palette.background.elevation2,borderRadius:e.shape.borderRadius,position:"absolute",zIndex:e.zIndex.fab,top:"50%",left:e.spacing(2),transform:"translateY(-50%)",lineHeight:1})),N2e=C(ZM)(({theme:e})=>({top:"50%",left:"50%",transform:"translate(-50%, -50%)",backgroundColor:e.palette.seen.primary,borderRadius:e.shape.borderRadiusLarge,padding:e.spacing(.75,1.5)})),DT=({text:e})=>{const t=gn();return l(Le,{sx:{height:t.spacing(e==="AND"?1:1.5),position:"relative",width:"100%"},children:l(q,{condition:e==="AND",show:()=>l(ZM,{children:e}),elseShow:()=>l(N2e,{children:e})})})},eD="constraintAccordionListId",L2e=C("div")({width:"100%",display:"flex",flexDirection:"column"}),M2e=C(xt)(({theme:e})=>({marginLeft:e.spacing(.75),height:e.spacing(1.5)})),D2e=C(Tv)(({theme:e})=>({fill:e.palette.action.active,[e.breakpoints.down(860)]:{display:"none"}})),B2e=C("p")(({theme:e})=>({marginBottom:e.spacing(1),color:e.palette.text.secondary})),F2e=C("div")(({theme:e})=>({marginTop:e.spacing(1),marginBottom:e.spacing(1),color:e.palette.text.primary,display:"flex"})),K1=m.forwardRef(({constraints:e,setConstraints:t,showCreateButton:n,showLabel:r=!0},o)=>{const i=O2e(),{context:a}=Rl(),s=t&&(h=>{const g=$2e(h);i.set(g,{editing:!0,new:!0}),t(v=>[...v,g])});m.useImperativeHandle(o,()=>({addConstraint:s}));const c=s&&(()=>{s(a[0].name)}),u=t&&(h=>{i.set(h,{editing:!0})}),d=t&&(h=>{const g=e[h];i.set(g,{}),t(Ti(v=>{v.splice(h,1)}))}),p=t&&((h,g)=>{i.set(g,{}),t(Ti(v=>{v[h]=g}))}),f=h=>{var v;const g=e[h];(v=i.get(g))!=null&&v.new&&(d==null||d(h)),i.set(g,{})};return a.length===0?null:x(L2e,{id:eD,children:[l(q,{condition:e&&e.length>0&&r,show:l(B2e,{children:"Constraints"})}),e.map((h,g)=>{var v;return x(m.Fragment,{children:[l(q,{condition:g>0,show:l(DT,{text:"AND"})}),l(I2e,{constraint:h,onEdit:u&&u.bind(null,h),onCancel:f.bind(null,g),onDelete:d&&d.bind(null,g),onSave:p&&p.bind(null,g),editing:!!((v=i.get(h))!=null&&v.editing),compact:!0})]},QM(h))}),l(q,{condition:!!(n&&c),show:x("div",{children:[x(F2e,{children:[l("p",{children:"Add any number of constraints"}),l(M2e,{title:"View constraints documentation",arrow:!0,children:l("a",{href:"https://docs.getunleash.io/reference/strategy-constraints",target:"_blank",rel:"noopener noreferrer",children:l(D2e,{})})})]}),l(Ve,{type:"button",onClick:c,variant:"outlined",color:"primary","data-testid":"ADD_CONSTRAINT_BUTTON",children:"Add constraint"})]})})]})}),z2e=({projectId:e,environmentId:t,strategy:n,setStrategy:r})=>{const o=m.useMemo(()=>n.constraints??[],[n]),i=c=>{r(u=>({...u,constraints:c instanceof Function?c(o):c}))},a=Ju(R9,e,t),s=Ju(v1,e,t);return l(K1,{constraints:o,setConstraints:s?i:void 0,showCreateButton:a})},j2e=As()(e=>({inputRoot:{height:48,borderTopLeftRadius:0,borderBottomLeftRadius:0,borderTopRightRadius:50,borderBottomRightRadius:50,"& fieldset":{borderColor:e.palette.divider,borderLeftColor:"transparent"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderWidth:1}}})),U2e=C("div")(({theme:e})=>({display:"flex",alignItems:"center",borderRadius:e.spacing(2),'& .MuiInputLabel-root[data-shrink="false"]':{top:3}})),W2e=C("div",{shouldForwardProp:e=>!e.startsWith("$")})(({theme:e,$disabled:t})=>({background:t?e.palette.primary.light:e.palette.primary.main,height:"48px",width:"48px",display:"flex",alignItems:"center",justifyContent:"center",paddingLeft:6,borderTopLeftRadius:"40px",borderBottomLeftRadius:"40px",color:e.palette.primary.contrastText})),H2e=C(_h)({flex:1}),tD=({label:e,options:t,value:n=[],onChange:r,disabled:o})=>{const{classes:i}=j2e(),a=s=>l(wn,{...s,variant:"outlined",label:e});return x(U2e,{children:[l(W2e,{$disabled:!!o,"aria-hidden":!0,children:l(mE,{})}),l(H2e,{classes:{inputRoot:i.inputRoot},options:t,value:n,popupIcon:l(Xse,{titleAccess:"Toggle"}),onChange:(s,c)=>r(c||[]),renderInput:a,getOptionLabel:s=>s.label,disabled:o,size:"small",multiple:!0})]})},V2e=C("span")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(.5),paddingInlineStart:e.spacing(2),paddingInlineEnd:e.spacing(1),paddingBlockStart:e.spacing(.5),paddingBlockEnd:e.spacing(.5),borderRadius:"100rem",background:e.palette.primary.main,color:e.palette.primary.contrastText})),v3=C("button")(({theme:e})=>({all:"unset",height:e.spacing(2),cursor:"pointer"})),G2e=C(hn)(({theme:e})=>({marginRight:e.spacing(1),color:"inherit",textDecoration:"none"})),pw=e=>({fontSize:e.fontSizes.bodySize}),q2e=({segment:e,setSegments:t,preview:n,setPreview:r})=>{const o=()=>{t(c=>c.filter(u=>u.id!==e.id)),r(c=>c===e?void 0:c)},i=()=>{r(c=>c===e?void 0:e)},a=l(q,{condition:e===n,show:l(y9,{titleAccess:"Hide",sx:pw}),elseShow:l(v9,{titleAccess:"Show",sx:pw})}),s=e===n?"Hide segment constraints":"Preview segment constraints";return x(V2e,{children:[l(G2e,{to:`/segments/edit/${e.id}`,target:"_blank",rel:"noreferrer",children:e.name}),l(xt,{title:s,arrow:!0,children:l(v3,{type:"button",onClick:i,"aria-expanded":e===n,"aria-controls":eD,children:a})}),l(xt,{title:"Remove segment",arrow:!0,children:l(v3,{type:"button",onClick:o,children:l(Qse,{titleAccess:"Remove",sx:pw})})})]})},K2e=C(Zy)(({theme:e})=>({border:`1px solid ${e.palette.divider}`,borderRadius:e.shape.borderRadiusMedium,backgroundColor:e.palette.background.paper,boxShadow:"none",margin:0,transition:"all 0.1s ease","&:before":{opacity:"0 !important"},"&.Mui-expanded":{backgroundColor:e.palette.neutral.light}})),Y2e=C(n1)(({theme:e})=>({margin:e.spacing(0,.5),fontSize:e.typography.body2.fontSize,".MuiAccordionSummary-content":{display:"flex",alignItems:"center"}})),X2e=C(hn)(({theme:e})=>({textDecoration:"none",marginLeft:e.spacing(1),"&:hover":{textDecoration:"underline"}})),nD=({segment:e,isExpanded:t,headerContent:n,constraintList:r})=>{var a;const[o,i]=m.useState(t||!1);return x(K2e,{expanded:o,children:[x(Y2e,{id:`segment-accordion-${e.id}`,children:[l(d9,{color:"secondary",sx:{mr:1}}),l("span",{children:"Segment:"}),l(X2e,{to:`/segments/edit/${e.id}`,children:e.name}),l(q,{condition:!!n,show:n}),l(q,{condition:!t,show:l(Ve,{size:"small",variant:"outlined",onClick:()=>i(s=>!s),sx:{my:0,ml:"auto",fontSize:s=>s.typography.body2.fontSize},children:o?"Close preview":"Preview"})})]}),l(e1,{sx:{pt:0},children:l(q,{condition:!!r,show:r,elseShow:l(q,{condition:(((a=e==null?void 0:e.constraints)==null?void 0:a.length)||0)>0,show:l(K1,{constraints:e.constraints,showLabel:!1}),elseShow:l(se,{children:"This segment has no constraints."})})})})]})},J2e=C("div")(({theme:e})=>({display:"flex",flexWrap:"wrap",gap:e.spacing(1)})),Q2e=C("p")(({theme:e})=>({color:e.palette.text.secondary})),Z2e=C("p")(({theme:e})=>({fontSize:e.fontSizes.smallerBody,padding:e.spacing(.75,1),display:"block",marginTop:"auto",marginBottom:"auto",alignItems:"center",borderRadius:e.shape.borderRadius,lineHeight:1,color:e.palette.text.primary,backgroundColor:e.palette.background.elevation2})),eEe=({segments:e,setSegments:t})=>{const[n,r]=m.useState(),o=e.length-1;return e.length===0?null:x(ve,{children:[l(q,{condition:e&&e.length>0,show:l(Q2e,{children:"Selected Segments"})}),l(J2e,{children:e.map((i,a)=>x(m.Fragment,{children:[l(q2e,{segment:i,setSegments:t,preview:n,setPreview:r}),l(q,{condition:a<o,show:l(Z2e,{children:"AND"})})]},i.id))}),l(q,{condition:!!n,show:()=>l(nD,{segment:n,isExpanded:!0})})]})},Oc=()=>{const{uiConfig:e}=Ot();return{segmentValuesLimit:e.segmentValuesLimit,strategySegmentsLimit:e.strategySegmentsLimit}},tEe=()=>{const{segmentValuesLimit:e}=Oc();return typeof e>"u"?null:x(tn,{severity:"info",children:["A segment can have"," ",x("a",{href:"https://docs.getunleash.io/reference/segments#segment-limits",target:"_blank",rel:"noreferrer",children:["at most ",e," across all of its contraints"]}),". ",l(rD,{})]})},nEe=e=>{const{segmentValuesLimit:t}=Oc();return typeof t>"u"?null:x(tn,{severity:"error",children:["A segment can have"," ",x("a",{href:"https://docs.getunleash.io/reference/segments#segment-limits",target:"_blank",rel:"noreferrer",children:["at most ",t," across all of its contraints"]}),". This segment has ",e.values," ",e.values===1?"value":"values","."]})},rEe=()=>{const{strategySegmentsLimit:e}=Oc();return typeof e>"u"?null:x(tn,{severity:"warning",children:["You can't apply more than ",e," segments to a strategy. ",l(rD,{})]})},rD=()=>x(ve,{children:[l("a",{href:"https://slack.unleash.run",target:"_blank",rel:"noreferrer",children:"Get in touch"})," ","if you'd like to increase this limit."]}),oD="https://docs.getunleash.io/reference/segments",oEe=C(To)(({theme:e})=>({fontSize:e.fontSizes.smallBody})),iEe=({segments:e,setSegments:t,projectId:n})=>{const{segments:r}=_l(),{strategySegmentsLimit:o}=Oc(),i=!!(o&&e.length>=o);if(!r||r.length===0)return null;const c=r.filter(({project:d})=>!d||d===n).filter(d=>!e.find(p=>p.id===d.id)).map(d=>({value:String(d.id),label:d.name}));return x(ve,{children:[l(se,{component:"h3",sx:{m:0},variant:"h3",children:"Segmentation"}),i&&l(rEe,{}),l("p",{children:"Add a predefined segment to constrain this feature toggle:"}),l(tD,{label:"Select segments",options:c,onChange:([d])=>{const p=r.find(f=>String(f.id)===d.value);p&&t(f=>[...f,p])},disabled:i}),l(eEe,{segments:e,setSegments:t}),l(oEe,{})]})},aEe=(e,t)=>{const{type:n,required:r}=e;if(!(n!=="string"&&n!=="list"&&n!=="number")){if(r&&(typeof t>"u"||t===""))return"Field is required";if(n==="number"&&!sEe(t))return"Not a valid number."}},sEe=e=>typeof e>"u"||e===""||/^\d+$/.test(String(e)),lEe=({environment:e})=>x(tn,{severity:"info",children:[l("strong",{children:"Change requests"})," are enabled",e?` for ${e}`:"",". Your changes needs to be approved before they will be live. All the changes you do now will be added into a draft that you can submit for review."]}),cEe="production",uEe=({open:e,onClose:t,onClick:n,label:r,loading:o})=>{const[i,a]=iD(),s=()=>{a(c=>({hide:!c.hide}))};return x(gr,{title:"Changing production environment!",primaryButtonText:r,disabledPrimaryButton:o,secondaryButtonText:"Cancel",onClick:n,onClose:t,open:e,children:[l(tn,{severity:"error",children:"WARNING. You are about to make changes to a production environment. These changes will affect your customers."}),l("p",{style:{marginTop:"1rem"},children:"Are you sure you want to proceed?"}),l(Hr,{label:"Don't show again",control:l(Ka,{checked:i.hide,onChange:s})})]})},dEe=(e,t)=>{const[n]=iD(),r=e.environments.find(o=>o.name===t);return n.hide?!1:(r==null?void 0:r.type)===cEe},pEe="useFeatureStrategyProdGuardSettings:v2",iD=kE(pEe,{hide:!1}),fEe=e=>({changeRequestInReviewOrApproved:n=>e?e.some(r=>r.environment===n&&Mn(["In review","Approved"],r.state)):!1,alert:l(tn,{sx:{margin:"1rem 0"},severity:"warning",children:"You currently have a change request in review for this environment. Adding a new change will add the change to the existing change request, and all existing approvals will be reset. Are you sure you want to continue?"})}),hEe=(e,t,n,r={})=>{const{isEnterprise:o}=Ot();return zh(o(),e,t,n,r)},mEe=e=>fetch(e).then(Rn("ChangeRequest")).then(t=>t.json()),Y1=e=>{const{data:t,error:n,mutate:r}=hEe([],Bt(`api/admin/projects/${e}/change-requests/pending`),mEe);return{data:t,loading:!n&&!t,refetch:r,error:n}},gEe=({title:e,setTitle:t})=>{const{uiConfig:n}=Ot();return n.flags.strategyImprovements?x(Le,{sx:{paddingBottom:r=>r.spacing(2)},children:[l(se,{sx:{paddingBottom:r=>r.spacing(2)},children:"What would you like to call this strategy? (optional)"}),l(Sr,{label:"Strategy title",id:"title-input",value:e,onChange:r=>t(r.target.value),sx:{width:"100%"}})]}):null},vEe=({enabled:e,onToggleEnabled:t})=>l(Hr,{control:l(Ya,{name:"enabled",onChange:t,checked:e}),label:"Enabled – This strategy will be used when evaluating feature toggles."}),yEe=C("form")(({theme:e})=>({display:"grid",gap:e.spacing(2)})),sg=C("hr")(({theme:e})=>({width:"100%",height:"1px",margin:e.spacing(2,0),border:"none",background:e.palette.background.elevation2})),bEe=C("div")(({theme:e})=>({display:"flex",justifyContent:"end",gap:e.spacing(2),paddingBottom:e.spacing(10)})),aD=({projectId:e,feature:t,environmentId:n,permission:r,onSubmit:o,onCancel:i,loading:a,strategy:s,setStrategy:c,segments:u,setSegments:d,errors:p,isChangeRequest:f})=>{var Q;const[h,g]=m.useState(!1),v=hT(s.constraints),y=dEe(t,n),b=Ju(r,e,n),{strategyDefinition:w}=dT(s==null?void 0:s.name),{data:S}=Y1(t.project),{changeRequestInReviewOrApproved:k,alert:A}=fEe(S),T=k(n||""),R=T?"Add to existing change request":"Add change to draft",P=gt(),{uiConfig:_,error:I,loading:$}=Ot();if(I)throw I;if($||!w)return null;const U=V=>w.parameters.find(j=>j.name===V),M=(V,j)=>{const z=aEe(U(V),j);return z?(p.setFormError(V,z),!1):(p.removeFormError(V),!0)},D=()=>w.parameters.map(V=>V.name).map(V=>{var j;return M(V,(j=s.parameters)==null?void 0:j[V])}).every(Boolean),K=()=>{P(BT(t.project,t.name))};return x(yEe,{onSubmit:async V=>{V.preventDefault(),D()&&(y&&!f?g(!0):o())},children:[l(q,{condition:T,show:A,elseShow:l(q,{condition:!!f,show:l(lEe,{environment:n})})}),l(Pbe,{projectId:t.project,featureId:t.name,environmentId:n,children:l(q,{condition:!!f,show:x(tn,{severity:"success",children:["This feature toggle is currently enabled in the"," ",l("strong",{children:n})," environment. Any changes made here will be available to users as soon as these changes are approved and applied."]}),elseShow:x(tn,{severity:"success",children:["This feature toggle is currently enabled in the"," ",l("strong",{children:n})," environment. Any changes made here will be available to users as soon as you hit ",l("strong",{children:"save"}),"."]})})}),l(sg,{}),l(q,{condition:!!((Q=_==null?void 0:_.flags)!=null&&Q.strategyImprovements),show:l(gEe,{title:s.title||"",setTitle:V=>{c(j=>({...j,title:V}))}})}),l(q,{condition:!!_.flags.SE,show:l(iEe,{segments:u,setSegments:d,projectId:e})}),l(z2e,{projectId:t.project,environmentId:n,strategy:s,setStrategy:c}),l(sg,{}),l(_be,{strategy:s,strategyDefinition:w,setStrategy:c,validateParameter:M,errors:p,hasAccess:b}),l(sg,{}),l(vEe,{enabled:!(s!=null&&s.disabled),onToggleEnabled:()=>c(V=>({...V,disabled:!V.disabled}))}),l(sg,{}),x(bEe,{children:[l(hi,{permission:r,projectId:t.project,environmentId:n,variant:"contained",color:"primary",type:"submit",disabled:a||!v||p.hasFormErrors(),"data-testid":Pie,children:f?R:"Save strategy"}),l(Ve,{type:"button",color:"primary",onClick:i||K,disabled:a,children:"Cancel"}),l(uEe,{open:h,onClose:()=>g(!1),onClick:o,loading:a,label:"Save strategy"})]})]})},y3=e=>{const t=new URLSearchParams(window.location.search).get(e);if(!t)throw new Error(`Missing required query param: ${e}`);return t},wEe=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Yn({propagateErrors:!0});return{addStrategyToFeature:async(u,d,p,f)=>{const h=`api/admin/projects/${u}/features/${d}/environments/${p}/strategies`,g=t(h,{method:"POST",body:JSON.stringify(f)},"addStrategyToFeature");return(await e(g.caller,g.id)).json()},updateStrategyOnFeature:async(u,d,p,f,h)=>{const g=`api/admin/projects/${u}/features/${d}/environments/${p}/strategies/${f}`,v=t(g,{method:"PUT",body:JSON.stringify(h)},"updateStrategyOnFeature");await e(v.caller,v.id)},deleteStrategyFromFeature:async(u,d,p,f)=>{const h=`api/admin/projects/${u}/features/${d}/environments/${p}/strategies/${f}`,g=t(h,{method:"DELETE"},"deleteStrategyFromFeature");await e(g.caller,g.id)},setStrategiesSortOrder:async(u,d,p,f)=>{const h=`api/admin/projects/${u}/features/${d}/environments/${p}/strategies/set-sort-order`,g=t(h,{method:"POST",body:JSON.stringify(f)},"setStrategiesSortOrderOnFeature");await e(g.caller,g.id)},setStrategyDisabledState:async(u,d,p,f,h)=>{const g=`api/admin/projects/${u}/features/${d}/environments/${p}/strategies/${f}`,v=t(g,{method:"PATCH",body:JSON.stringify([{path:"/disabled",value:h,op:"replace"}])},"setStrategyDisabledState");await e(v.caller,v.id)},loading:r,errors:n}},sD=()=>{const[e,t]=m.useState({}),n=m.useCallback(a=>e[a],[e]),r=m.useCallback((a,s)=>{t(Ti(c=>{c[a]=s}))},[t]),o=m.useCallback(a=>{t(Ti(s=>{delete s[a]}))},[t]),i=m.useCallback(()=>Object.values(e).some(Boolean),[e]);return{getFormError:n,setFormError:r,removeFormError:o,hasFormErrors:i}},SEe=(e,t)=>{const n=t.parameters.map(r=>r.name);return Object.fromEntries(Object.entries(e).sort((r,o)=>n.indexOf(r[0])-n.indexOf(o[0])))};var b3=Object.prototype.hasOwnProperty;function w3(e,t,n){for(n of e.keys())if(gf(n,t))return n}function gf(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&gf(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(o=r,o&&typeof o=="object"&&(o=w3(t,o),!o)||!t.has(o))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(o=r[0],o&&typeof o=="object"&&(o=w3(t,o),!o)||!gf(r[1],t.get(o)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(b3.call(e,n)&&++r&&!b3.call(t,n)||!(n in t)||!gf(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}const xEe=({refresh:e,show:t,afterSubmitAction:n,data:r,cache:o})=>{const i=gn(),a=or(i.breakpoints.down("sm")),s=m.useMemo(()=>{const c={...AN,padding:`${i.spacing(3)} ${i.spacing(4)}`,boxShadow:i.boxShadows.elevated,borderRadius:i.shape.borderRadiusLarge,backgroundColor:i.palette.background.paper,maxWidth:i.spacing(75),zIndex:i.zIndex.mobileStepper};return a?{...c,right:0,left:0,bottom:0,borderRadius:0}:c},[i,a]);return x(Z2,{mounted:t,start:s,enter:RN,children:[l(se,{variant:"h5",sx:{my:2,mb:2},children:"Your data is stale"}),l(se,{variant:"body1",sx:{my:2,mb:3},children:"The data you have been working on is stale, would you like to refresh your data? This may happen if someone has been making changes to the data while you were working."}),l(D1,{entry:{preData:o,data:r}}),l(Ve,{sx:{mb:2},variant:"contained",color:"primary",onClick:()=>{e(),n()},children:"Refresh data"})]})},CEe=({unleashGetter:e,dataKey:t="",refetchFunctionKey:n="",options:r={},params:o=[""]})=>{const i=e(...o,{refreshInterval:5,...r});return{data:i[t],refetch:i[n]}},lD=(e,t,n,r)=>{const{data:o,refetch:i}=CEe(e),[a,s]=m.useState(t||null),[c,u]=m.useState(!1),d=f=>{u(!1),s(f)},p=f=>f&&(r&&typeof r=="function"?r(f):f);return m.useEffect(()=>{a===null&&s(t)},[t]),m.useEffect(()=>{if(!a||!o)return;gf(p(a),p(o))||u(!0)},[o]),{data:a,refetch:i,staleDataNotification:l(xEe,{cache:p(a),data:p(o),refresh:()=>d(o),show:c,afterSubmitAction:n.afterSubmitAction}),forceRefreshCache:d}},cD=e=>{const t={...e};return delete t.lastSeenAt,t},qh=()=>{const{trackEvent:e}=Dr(),{makeRequest:t,createRequest:n,errors:r,loading:o}=Yn({propagateErrors:!0});return{addChange:async(h,g,v)=>{e("change_request",{props:{eventType:"change added"}});const y=`api/admin/projects/${h}/environments/${g}/change-requests`,b=n(y,{method:"POST",body:JSON.stringify(v)});try{return(await t(b.caller,b.id)).json()}catch(w){throw w}},editChange:async(h,g,v,y)=>{const b=`api/admin/projects/${h}/change-requests/${g}/changes/${v}`,w=n(b,{method:"PUT",body:JSON.stringify(y)});try{return await t(w.caller,w.id)}catch(S){throw S}},changeState:async(h,g,v)=>{e("change_request",{props:{eventType:v.state}});const y=`api/admin/projects/${h}/change-requests/${g}/state`,b=n(y,{method:"PUT",body:JSON.stringify(v)});try{return(await t(b.caller,b.id)).json()}catch(w){throw w}},discardChange:async(h,g,v)=>{const y=`api/admin/projects/${h}/change-requests/${g}/changes/${v}`,b=n(y,{method:"DELETE"});try{return await t(b.caller,b.id)}catch(w){throw w}},updateChangeRequestEnvironmentConfig:async({project:h,enabled:g,environment:v,requiredApprovals:y})=>{const b=`api/admin/projects/${h}/environments/${v}/change-requests/config`,w=n(b,{method:"PUT",body:JSON.stringify({changeRequestsEnabled:g,requiredApprovals:y})});try{return await t(w.caller,w.id)}catch(S){throw S}},discardDraft:async(h,g)=>{const v=`api/admin/projects/${h}/change-requests/${g}`,y=n(v,{method:"DELETE"});try{return await t(y.caller,y.id)}catch(b){throw b}},addComment:async(h,g,v)=>{e("change_request",{props:{eventType:"comment added"}});const y=`/api/admin/projects/${h}/change-requests/${g}/comments`,b=n(y,{method:"POST",body:JSON.stringify({text:v})});try{return await t(b.caller,b.id)}catch(w){throw w}},updateTitle:async(h,g,v)=>{e("change_request",{props:{eventType:"title updated"}});const y=`api/admin/projects/${h}/change-requests/${g}/title`,b=n(y,{method:"PUT",body:JSON.stringify({title:v})});try{await t(b.caller,b.id)}catch(w){throw w}},errors:r,loading:o}},EEe=()=>{const[e,t]=m.useState(""),{trackEvent:n}=Dr();return{setPreviousTitle:t,trackTitle:(o="")=>{o===e&&n("strategyTitle",{props:{action:"none",on:"edit"}}),e===""&&o!==""&&n("strategyTitle",{props:{action:"added",on:"edit"}}),e!==""&&o===""&&n("strategyTitle",{props:{action:"removed",on:"edit"}}),e!==""&&o!==""&&o!==e&&n("strategyTitle",{props:{action:"edited",on:"edit"}})}}},eDe=()=>{const e=ir("projectId"),t=ir("featureId"),n=y3("environmentId"),r=y3("strategyId"),[o,i]=m.useState({}),[a,s]=m.useState([]),{updateStrategyOnFeature:c,loading:u}=wEe(),{strategyDefinition:d}=dT(o.name),{setToastData:p,setToastApiError:f}=$t(),h=sD(),{uiConfig:g}=Ot(),{unleashUrl:v}=g,y=gt(),{addChange:b}=qh(),{isChangeRequestConfigured:w}=_c(e),{refetch:S}=Y1(e),{setPreviousTitle:k,trackTitle:A}=EEe(),{feature:T,refetchFeature:R}=Ss(e,t),P=m.useRef(T),{data:_,staleDataNotification:I,forceRefreshCache:$}=lD({unleashGetter:Ss,params:[e,t],dataKey:"feature",refetchFunctionKey:"refetchFeature",options:{}},T,{afterSubmitAction:R},cD);m.useEffect(()=>{P.current.name===""&&T.name&&($(T),P.current=T)},[T]);const{segments:U,refetchSegments:M}=_l(r);m.useEffect(()=>{const j=_==null?void 0:_.environments.flatMap(z=>z.strategies).find(z=>z.id===r);i(z=>({...z,...j})),k((j==null?void 0:j.title)||"")},[r,_]),m.useEffect(()=>{U&&s(U)},[JSON.stringify(U)]);const D=g!=null&&g.flags.SE?a:[],K=TEe(o,D),H=async j=>{var z;await c(e,t,n,r,j),(z=g==null?void 0:g.flags)!=null&&z.strategyImprovements&&A(o.title),await M(),p({title:"Strategy updated",type:"success",confetti:!0})},Q=async j=>{await b(e,n,{action:"updateStrategy",feature:t,payload:{...j,id:r}}),p({title:"Change added to draft",type:"success",confetti:!0}),S()},V=async()=>{try{w(n)?await Q(K):await H(K),R(),y(BT(e,t))}catch(j){f(ht(j))}};return!o.id||!d||!_?null:x(Yr,{modal:!0,title:yl(o.name??""),description:AEe,documentationLink:REe,documentationLinkLabel:_Ee,formatApiCode:()=>kEe(e,t,n,r,K,d,v),children:[l(aD,{projectId:e,feature:_,strategy:o,setStrategy:i,segments:a,setSegments:s,environmentId:n,onSubmit:V,loading:u,permission:v1,errors:h,isChangeRequest:w(n)}),I]})},TEe=(e,t)=>({name:e.name,title:e.title,constraints:e.constraints??[],parameters:e.parameters??{},segments:t.map(n=>n.id),disabled:e.disabled??!1}),BT=(e,t)=>`/projects/${e}/features/${t}`,uD=(e,t,n,r)=>{const o=new URLSearchParams({environmentId:n,strategyId:r});return`/projects/${e}/features/${t}/strategies/edit?${o}`},kEe=(e,t,n,r,o,i,a)=>{if(!a)return"";const s={...o,parameters:SEe(o.parameters??{},i)},c=`${a}/api/admin/projects/${e}/features/${t}/environments/${n}/strategies/${r}`,u=JSON.stringify(s,void 0,2);return`curl --location --request PUT '${c}' \\
338
- --header 'Authorization: INSERT_API_KEY' \\
339
- --header 'Content-Type: application/json' \\
340
- --data-raw '${u}'`},AEe=`
341
- An activation strategy will only run when a feature toggle is enabled and provides a way to control who will get access to the feature.
342
- If any of a feature toggle's activation strategies returns true, the user will get access.
343
- `,REe="https://docs.getunleash.io/reference/activation-strategies",_Ee="Strategies documentation",PEe=C("ul")(({theme:e})=>({listStyle:"none",paddingLeft:0})),S3=C(tn)(({theme:e})=>({marginTop:e.spacing(1)})),IEe=({projects:e,strategies:t,projectsUsed:n,availableProjects:r})=>{const o=l(PEe,{children:Array.from(n).map(i=>{var a;return x("li",{children:[l(hn,{to:`/projects/${i}`,target:"_blank",rel:"noreferrer",children:((a=e.find(({id:s})=>s===i))==null?void 0:a.name)??i}),l("ul",{children:t==null?void 0:t.filter(s=>s.projectId===i).map(s=>l("li",{children:x(hn,{to:uD(s.projectId,s.featureName,s.environment,s.id),target:"_blank",rel:"noreferrer",children:[s.featureName," ",OEe(s)]})},s.id))})]},i)})});return n.length>1?x(S3,{severity:"info",children:["You can't specify a project for this segment because it is used in multiple projects:",o]}):r.length===1?x(S3,{severity:"info",children:["You can't specify a project other than"," ",l("strong",{children:r[0].name})," for this segment because it is used here:",o]}):null},OEe=e=>e.strategyName?`(${yl(e.strategyName)})`:"",$Ee=C("div")(({theme:e})=>({display:"flex",flexDirection:"column",height:"100%"})),NEe=C("div")(({theme:e})=>({maxWidth:"400px"})),fw=C("p")(({theme:e})=>({marginBottom:e.spacing(1)})),x3=C(Sr)(({theme:e})=>({width:"100%",marginBottom:e.spacing(2)})),LEe=C("div")(({theme:e})=>({marginTop:"auto",display:"flex",justifyContent:"flex-end"})),MEe=C(Ve)(({theme:e})=>({marginLeft:e.spacing(3)})),DEe=({children:e,name:t,description:n,project:r,setName:o,setDescription:i,setProject:a,errors:s,clearErrors:c,setCurrentStep:u})=>{const d=Wa("segmentId"),p=Wa("projectId");Ot();const f=gt(),{projects:h,loading:g}=Qa(),{strategies:v,loading:y}=yM(d),b=new Set(v.map(({projectId:T})=>T).filter(Boolean)),w=h.filter(({id:T})=>!b.size||b.size===1&&b.has(T)),[S,k]=Te.useState(h.find(({id:T})=>T===r)??null);m.useEffect(()=>{k(h.find(({id:T})=>T===r)??null)},[r,h]);const A=g&&y;return x($Ee,{children:[x(NEe,{children:[l(fw,{children:"What is the segment name?"}),l(x3,{label:"Segment name",value:t,onChange:T=>o(T.target.value),error:!!s.name,errorText:s.name,autoFocus:!0,required:!0,"data-testid":hie}),l(fw,{children:"What is the segment description?"}),l(x3,{label:"Description (optional)",value:n,onChange:T=>i(T.target.value),error:!!s.description,errorText:s.description,"data-testid":mie}),l(q,{condition:!p&&!A,show:x(ve,{children:[l(fw,{children:"Is this segment tied to a specific project?"}),l(_h,{size:"small",value:S,onChange:(T,R)=>{a(R==null?void 0:R.id)},options:w,getOptionLabel:T=>T.name,renderInput:T=>l(wn,{...T,label:"Project"}),disabled:b.size>1}),l(IEe,{projects:h,strategies:v,projectsUsed:Array.from(b),availableProjects:w})]})})]}),x(LEe,{children:[l(Ve,{type:"button",variant:"contained",color:"primary",onClick:()=>u(2),disabled:t.length===0||!!s.name,"data-testid":gie,children:"Next"}),l(MEe,{type:"button",onClick:()=>{f(Ao)},children:"Cancel"})]})]})},C3=250,dD=C("div")({position:"absolute",top:0,right:0,bottom:0,height:"100vh",maxWidth:"98vw",overflow:"auto",boxShadow:"0 0 1rem rgba(0, 0, 0, 0.25)"}),BEe=C(dD)({width:1300}),FEe=C(Ht)(({theme:e})=>({zIndex:1,position:"absolute",top:e.spacing(3),right:e.spacing(3)})),pD=({open:e,onClose:t,onClick:n,label:r,children:o})=>l(Ph,{open:e,onClose:t,onClick:n,closeAfterTransition:!0,"aria-label":r,BackdropComponent:B2,BackdropProps:{timeout:C3},"data-testid":Oie,sx:{minHeight:"100vh"},children:l(D2,{timeout:C3,in:e,children:o})}),X1=e=>l(pD,{...e,children:l(BEe,{children:e.children})}),E3=e=>l(pD,{...e,children:x(dD,{children:[l(xt,{title:"Close",arrow:!0,describeChild:!0,children:l(FEe,{onClick:e.onClose,children:l(mc,{})})}),e.children]})}),FT=e=>m.useMemo(()=>e.map(t=>t.values).reduce((t,n)=>t+((n==null?void 0:n.length)??0),0),[e]),zEe=C("div")(({theme:e})=>({display:"flex",flexDirection:"column",height:"100%"})),jEe=C("div")(({theme:e})=>({marginBottom:"1.5rem"})),hw=C("p")(({theme:e})=>({marginBottom:"1rem"})),UEe=C("div")(({theme:e})=>({marginTop:"1rem",borderBottom:`1px solid ${e.palette.divider}`,paddingBottom:"2rem"})),WEe=C("div")(({theme:e})=>({marginTop:"1.5rem"})),HEe=C("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",marginTop:e.spacing(12)})),VEe=C("p")(({theme:e})=>({fontSize:e.fontSizes.bodySize,color:e.palette.text.disabled,maxWidth:515,marginBottom:e.spacing(2.5),wordBreak:"break-word",whiteSpace:"normal",textAlign:"center"})),GEe=C("div")(({theme:e})=>({marginBlock:e.spacing(4)})),qEe=C("div")(({theme:e})=>({marginTop:"auto",display:"flex",justifyContent:"flex-end",borderTop:`1px solid ${e.palette.divider}`,paddingTop:e.spacing(2)})),KEe=C(Ve)(({theme:e})=>({marginRight:"auto"})),YEe=C(Ve)(({theme:e})=>({marginLeft:e.spacing(3)})),XEe=({children:e,constraints:t,setConstraints:n,setCurrentStep:r,mode:o})=>{const i=m.useRef(),a=gt(),{hasAccess:s}=m.useContext(yo),{context:c=[]}=Rl(),[u,d]=m.useState(!1),p=FT(t),f=o==="create"?y1:xE,{segmentValuesLimit:h}=Oc(),g=!!(h&&p>h),v=c.map(b=>({value:b.name,label:b.name}));return x(ve,{children:[x(zEe,{children:[l(jEe,{children:l(tEe,{})}),x("div",{children:[l(hw,{children:"Select the context fields you want to include in the segment."}),l(hw,{children:"Use a predefined context field:"}),l(tD,{label:"Select a context",options:v,onChange:([b])=>{var w,S;(S=(w=i.current)==null?void 0:w.addConstraint)==null||S.call(w,b.value)}})]}),x(UEe,{children:[l(hw,{children:"...or add a new context field:"}),l(X1,{label:"Create new context",onClose:()=>d(!1),open:u,children:l(gM,{onSubmit:()=>d(!1),onCancel:()=>d(!1),modal:!0})}),l(hi,{permission:Av,variant:"outlined",color:"primary",startIcon:l(ca,{}),onClick:()=>d(!0),children:"Add context field"}),g&&l(WEe,{children:l(nEe,{values:p})})]}),l(q,{condition:t.length===0,show:l(HEe,{children:l(VEe,{children:"Start adding context fields by selecting an option from above, or you can create a new context field and use it right away"})})}),l(GEe,{children:l(K1,{ref:i,constraints:t,setConstraints:s(f)?n:void 0})})]}),x(qEe,{children:[l(KEe,{type:"button",onClick:()=>r(1),children:"Back"}),e,l(YEe,{type:"button",onClick:()=>{a(Ao)},children:"Cancel"})]})]})},JEe=C("div")(({theme:e})=>({display:"flex",position:"absolute",alignItems:"center",justifyContent:"center",top:30,left:0,right:WL,[e.breakpoints.down(1100)]:{right:0}})),QEe=C("div")(({theme:e})=>({position:"relative",borderRadius:10,background:e.palette.background.paper,padding:e.spacing(1,2.5),margin:"auto",display:"flex",alignItems:"center"})),ZEe=C("span")(({theme:e})=>({marginRight:15,fontSize:e.fontSizes.smallBody})),eTe=C(ole,{shouldForwardProp:e=>e!=="filled"})(({theme:e,filled:t})=>({fill:e.palette.primary.main,transition:"opacity 0.4s ease",opacity:t?1:.4,fontSize:t?20:17})),tTe=({total:e,current:t})=>{const n=Array.from({length:e}).map((r,o)=>o+1);return l(JEe,{children:x(QEe,{children:[x(ZEe,{children:["Step ",t," of ",e]}),n.map(r=>l(eTe,{filled:r===t},r))]})})},nTe=C("form")(({theme:e})=>({display:"flex",flexDirection:"column",height:"100%"})),fD=({children:e,name:t,description:n,project:r,constraints:o,setName:i,setDescription:a,setProject:s,setConstraints:c,handleSubmit:u,errors:d,clearErrors:p,mode:f})=>{const[g,v]=m.useState(1);return x(ve,{children:[l(tTe,{total:2,current:g}),x(nTe,{onSubmit:u,children:[l(q,{condition:g===1,show:l(DEe,{name:t,description:n,project:r,setName:i,setDescription:a,setProject:s,errors:d,clearErrors:p,setCurrentStep:v})}),l(q,{condition:g===2,show:l(XEe,{constraints:o,setConstraints:c,setCurrentStep:v,mode:f,children:e})})]})]})},rTe=()=>{throw new Error("showFeedbackCES called outside feedbackCESContext")},oTe=()=>{throw new Error("hideFeedbackCES called outside feedbackCESContext")},zT=m.createContext({showFeedbackCES:rTe,hideFeedbackCES:oTe}),iTe=({modal:e})=>{const t=Wa("projectId"),{uiConfig:n}=Ot(),{setToastData:r,setToastApiError:o}=$t(),{showFeedbackCES:i}=m.useContext(zT),a=gt(),{createSegment:s,loading:c}=pT(),{refetchSegments:u}=_l(),{name:d,setName:p,description:f,setDescription:h,project:g,setProject:v,constraints:y,setConstraints:b,getSegmentPayload:w,errors:S,clearErrors:k}=vM("","",t),A=hT(y),{segmentValuesLimit:T}=Oc(),R=FT(y),P=!!(T&&R>T);return l(Yr,{loading:c,modal:e,title:"Create segment",description:hD,documentationLink:oD,documentationLinkLabel:"Segments documentation",formatApiCode:()=>`curl --location --request POST '${n.unleashUrl}/api/admin/segments' \\
344
- --header 'Authorization: INSERT_API_KEY' \\
345
- --header 'Content-Type: application/json' \\
346
- --data-raw '${JSON.stringify(w(),void 0,2)}'`,children:l(fD,{handleSubmit:async $=>{$.preventDefault(),k();try{await s(w()),await u(),a(t?`/projects/${t}/settings/segments/`:"/segments/"),r({title:"Segment created",confetti:!0,type:"success"}),i({title:"How easy was it to create a segment?",text:"Please help us understand how we can improve segments",path:"/segments/create"})}catch(U){o(ht(U))}},name:d,setName:p,description:f,setDescription:h,project:g,setProject:v,constraints:y,setConstraints:b,errors:S,clearErrors:k,mode:"create",children:l(Pd,{name:"segment",permission:y1,disabled:!A||P,"data-testid":vie})})})},hD=`
347
- Segments make it easy for you to define which of your users should get access to a feature.
348
- A segment is a reusable collection of constraints.
349
- You can create and apply a segment when configuring activation strategies for a feature toggle or at any time from the segments page in the navigation menu.
350
- `,aTe=e=>{const t=Bt(`api/admin/segments/${e}`),{data:n,error:r}=An(t,()=>sTe(t)),o=m.useCallback(()=>{io(t).catch(console.warn)},[t]);return{segment:n,refetchSegment:o,loading:!r&&!n,error:r}},sTe=e=>fetch(e,{method:"GET"}).then(Rn("Segment")).then(t=>t.json()),lTe=({modal:e})=>{const t=Wa("projectId"),n=ir("segmentId"),{segment:r}=aTe(Number(n)),{uiConfig:o}=Ot(),{setToastData:i,setToastApiError:a}=$t(),s=gt(),{updateSegment:c,loading:u}=pT(),{refetchSegments:d}=_l(),{name:p,setName:f,description:h,setDescription:g,project:v,setProject:y,constraints:b,setConstraints:w,getSegmentPayload:S,errors:k,clearErrors:A}=vM(r==null?void 0:r.name,r==null?void 0:r.description,r==null?void 0:r.project,r==null?void 0:r.constraints),T=hT(b),R=FT(b),{segmentValuesLimit:P}=Oc(),_=!!(P&&R>P);return l(Yr,{loading:u,modal:e,title:"Edit segment",description:hD,documentationLink:oD,documentationLinkLabel:"Segments documentation",formatApiCode:()=>`curl --location --request PUT '${o.unleashUrl}/api/admin/segments/${n}' \\
351
- --header 'Authorization: INSERT_API_KEY' \\
352
- --header 'Content-Type: application/json' \\
353
- --data-raw '${JSON.stringify(S(),void 0,2)}'`,children:l(fD,{handleSubmit:async U=>{if(r){U.preventDefault(),A();try{await c(r.id,S()),await d(),s(t?`/projects/${t}/settings/segments/`:"/segments/"),i({title:"Segment updated",type:"success"})}catch(M){a(ht(M))}}},name:p,setName:f,description:h,setDescription:g,project:v,setProject:y,constraints:b,setConstraints:w,errors:k,clearErrors:A,mode:"edit",children:l(Ic,{permission:xE,disabled:!T||_,"data-testid":yie})})})},cTe=()=>{const{uiConfig:e}=Ot(),t=gt();return l(LL,{onClick:()=>t("/environments/create"),maxWidth:"700px",Icon:ca,permission:fi,disabled:!e.flags.EEA,children:"New environment"})},uTe=(e,t,n)=>{const r=m.useRef(null);return m.useEffect(()=>{if(r.current)return r.current.dataset.index=String(e),dTe(r.current,t,(n==null?void 0:n.current)??void 0)},[e,t]),r},dTe=(e,t,n)=>{const r=p=>{lg&&t(Number(lg.dataset.index),Number(e.dataset.index),p)},o=n??e,i=p=>{p.target===o&&(e.draggable=!0)},a=()=>{e.draggable=!1},s=()=>{e.draggable=!0,lg=e},c=()=>{r(!1)},u=p=>{p.preventDefault()},d=()=>{r(!0),lg=null};return o.addEventListener("mouseenter",i),o.addEventListener("mouseleave",a),n&&e.addEventListener("mouseenter",a),e.addEventListener("dragstart",s),e.addEventListener("dragenter",c),e.addEventListener("dragover",u),e.addEventListener("drop",d),()=>{o.removeEventListener("mouseenter",i),o.removeEventListener("mouseleave",a),n&&e.removeEventListener("mouseenter",a),e.removeEventListener("dragstart",s),e.removeEventListener("dragenter",c),e.removeEventListener("dragover",u),e.removeEventListener("drop",d)}};let lg;const pTe=C(zi)(()=>({"&:hover":{".drag-handle .drag-icon":{display:"inherit",cursor:"grab"}}})),fTe=({row:e,moveListItem:t})=>{const{hasAccess:n}=m.useContext(yo),r=m.useRef(null),{searchQuery:o}=Al(),i=!o&&n(lx),a=uTe(e.index,t,r),s=(c,u)=>i&&c.column.isDragHandle?l(Wi,{...c.getCellProps(),ref:u,className:"drag-handle",children:c.render("Cell")}):l(Wi,{...c.getCellProps(),children:c.render("Cell")});return l(pTe,{hover:!0,ref:i?a:void 0,children:e.cells.map(c=>s(c,r))})},hTe=C(se)(({theme:e})=>({fontWeight:"bold",fontSize:e.fontSizes.smallerBody})),mTe=C(se)(({theme:e})=>({fontSize:e.fontSizes.smallerBody})),T3=C(Zt)(({theme:e})=>({marginLeft:e.spacing(1)})),gTe=({environment:e})=>{const{searchQuery:t}=Al();return x(rr,{sx:n=>({[n.breakpoints.up("sm")]:{minWidth:"350px"}}),children:[l(Ua,{search:t,children:e.name}),l(q,{condition:e.protected,show:l(T3,{color:"success",children:"Predefined"})}),l(q,{condition:!e.enabled,show:l(Fh,{maxWidth:"270px",title:x(ve,{children:[l(hTe,{children:"Deprecated environment"}),l(mTe,{children:"This environment is not auto-enabled for new projects. The project owner will need to manually enable it in the project."})]}),describeChild:!0,arrow:!0,children:l(T3,{color:"neutral",children:"Deprecated"})})})]})},pu=({permission:e,projectId:t,children:n,environmentId:r,tooltip:o,tooltipProps:i})=>{const{hasAccess:a}=m.useContext(yo);let s;return t&&r?s=a(e,t,r):t?s=a(e,t):s=a(e),l(Cd,{...i,title:E1(s,o),children:n({hasAccess:s})})},vTe=C(W2)(({theme:e})=>({padding:e.spacing(1)})),Mg=C(ja)(({theme:e})=>({borderRadius:e.shape.borderRadius})),yTe=C(Mg)(({theme:e})=>({color:e.palette.error.main})),bTe=C(_u)(({theme:e})=>({color:e.palette.error.main})),wTe=({environment:e,onEdit:t,onDeprecateToggle:n,onClone:r,onDelete:o})=>{const[i,a]=m.useState(null),s=!!i,c=f=>{a(f.currentTarget)},u=()=>{a(null)},d=`environment-${e.name}-actions`,p=`${d}-menu`;return x(ve,{children:[l(xt,{title:"Environment actions",arrow:!0,describeChild:!0,children:l(Ht,{id:d,"aria-controls":s?p:void 0,"aria-haspopup":"true","aria-expanded":s?"true":void 0,onClick:c,type:"button",children:l(qE,{})})}),l(H2,{id:p,anchorEl:i,open:s,onClose:u,transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},disableScrollLock:!0,children:x(vTe,{"aria-labelledby":d,children:[l(pu,{permission:lx,children:({hasAccess:f})=>x(Mg,{onClick:()=>{t(),u()},disabled:!f||e.protected,children:[l(_u,{children:l(Ui,{})}),l(rn,{children:l(se,{variant:"body2",children:"Edit"})})]})}),l(pu,{permission:fi,children:({hasAccess:f})=>x(Mg,{onClick:()=>{r(),u()},disabled:!f,children:[l(_u,{children:l(qse,{})}),l(rn,{children:l(se,{variant:"body2",children:"Clone"})})]})}),l(pu,{permission:lx,children:({hasAccess:f})=>x(Mg,{onClick:()=>{n(),u()},disabled:!f||e.protected,children:[l(_u,{children:l(q,{condition:e.enabled,show:l(Cle,{}),elseShow:l(Ele,{})})}),l(rn,{children:l(se,{variant:"body2",children:e.enabled?"Deprecate":"Undeprecate"})})]})}),l(pu,{permission:Lle,children:({hasAccess:f})=>x(yTe,{onClick:()=>{o(),u()},disabled:!f||e.protected,children:[l(bTe,{children:l(go,{})}),l(rn,{children:l(se,{variant:"body2",children:"Delete"})})]})})]})})]})},k3=(e,t)=>{var n;return!!((n=t==null?void 0:t.toLowerCase())!=null&&n.includes(e.toLowerCase()))},STe=C("div")(({theme:e})=>({display:"flex",flexDirection:"column",color:e.palette.text.secondary,"& > span:first-of-type":{color:e.palette.text.primary}})),xTe=C("div")(({theme:e})=>({paddingLeft:e.spacing(1)})),CTe=C("div")(({theme:e})=>({display:"flex",marginBottom:e.spacing(3),"& > div:first-of-type":{width:"100%",maxWidth:e.spacing(50),marginRight:e.spacing(1)}})),ETe=(e,t,n)=>x("li",{...e,children:[l(Ka,{icon:l(L1,{fontSize:"small"}),checkedIcon:l(M1,{fontSize:"small"}),style:{marginRight:8},checked:n}),x(STe,{children:[l("span",{children:t.name}),l("span",{children:t.description})]})]}),TTe=e=>l(xTe,{children:e.length>1?`${e.length} projects selected`:e[0].name}),kTe=({projects:e,setProjects:t})=>{const{projects:n}=Qa(),r=n.sort((c,u)=>c.name.localeCompare(u.name)).map(({id:c,name:u,description:d})=>({id:c,name:u,description:d})),o=r.filter(({id:c})=>e.includes(c)),i=e.length>0&&e.length===r.length,a=()=>{const c=i?[]:r.map(({id:u})=>u);t(c)};return l(CTe,{children:l(_h,{size:"small",multiple:!0,limitTags:1,openOnFocus:!0,disableCloseOnSelect:!0,value:o,onChange:(c,u,d)=>{c.type==="keydown"&&c.key==="Backspace"&&d==="removeOption"||t(u.map(({id:p})=>p))},options:r,renderOption:(c,u,{selected:d})=>ETe(c,u,d),filterOptions:(c,{inputValue:u})=>c.filter(({name:d,description:p})=>k3(u,d)||k3(u,p)),isOptionEqualToValue:(c,u)=>c.id===u.id,getOptionLabel:c=>c.name||c.description||"",renderInput:c=>l(wn,{...c,label:"Projects"}),renderTags:c=>TTe(c),groupBy:()=>"Select/Deselect all",renderGroup:({key:c,children:u})=>x(m.Fragment,{children:[l(q,{condition:r.length>2,show:l(uT,{isAllSelected:i,onClick:a})}),u]},c)})})},kp="*",ATe=({...e})=>l(wr,{elevation:8,...e}),RTe=C(Ka)(({theme:e})=>({marginRight:e.spacing(.4)})),_Te=({options:e,defaultValue:t=[kp],onChange:n,disabled:r,error:o,onFocus:i})=>{const[a,s]=m.useState(typeof t=="string"?[t]:t),[c,u]=m.useState(typeof t=="string"||t.includes(kp)),d=a.length>0&&a.length===e.length&&a[0]!==kp,p=(y,b)=>{b?(u(!0),n([kp])):(u(!1),n(a.includes(kp)?[]:a))},f=()=>{const y=d?[]:e.map(({value:b})=>b);s(y),n(y)};return x(Le,{sx:{mt:-1,mb:3},children:[l(Le,{sx:{mt:1,mb:.25,ml:1.5},children:l(Hr,{disabled:r,"data-testid":"select-all-projects",control:l(Ka,{checked:r||c,onChange:p}),label:"ALL current and future projects"})}),l(_h,{disabled:r||c,multiple:!0,limitTags:2,options:e,disableCloseOnSelect:!0,getOptionLabel:({label:y})=>y,groupBy:()=>"Select/Deselect all",renderGroup:({key:y,children:b})=>x(m.Fragment,{children:[l(q,{condition:e.length>2,show:l(uT,{isAllSelected:d,onClick:f})}),b]},y),fullWidth:!0,PaperComponent:ATe,renderOption:(y,b,{selected:w})=>x("li",{...y,children:[l(RTe,{icon:l(L1,{fontSize:"small"}),checkedIcon:l(M1,{fontSize:"small"}),checked:w}),b.label]}),renderInput:y=>l(wn,{...y,error:!!o,helperText:o,variant:"outlined",label:"Projects",placeholder:"Select one or more projects",onFocus:i,"data-testid":"select-input"}),value:c||r?e:e.filter(y=>a.includes(y.value)),onChange:(y,b)=>{const w=b.map(({value:S})=>S);s(w),n(w)}})]})},PTe=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Yn({propagateErrors:!0});return{deleteToken:async a=>{const s=`api/admin/api-tokens/${a}`,c=t(s,{method:"DELETE"});try{return await e(c.caller,c.id)}catch(u){throw u}},createToken:async a=>{const c=t("api/admin/api-tokens",{method:"POST",body:JSON.stringify(a)});try{return await e(c.caller,c.id)}catch(u){throw u}},errors:n,loading:r}},ITe=C("form")(()=>({display:"flex",flexDirection:"column",height:"100%"})),Jc=C("p")(({theme:e})=>({display:"flex",color:e.palette.text.primary,marginBottom:e.spacing(1),"&:not(:first-of-type)":{marginTop:e.spacing(4)}})),mw=C("p")(({theme:e})=>({color:e.palette.text.secondary,marginBottom:e.spacing(1)})),OTe=C(Sr)(({theme:e})=>({width:"100%",maxWidth:e.spacing(50)})),$Te=C("div")(({theme:e})=>({padding:e.spacing(3),backgroundColor:e.palette.background.elevation2,borderRadius:e.shape.borderRadiusMedium,marginTop:e.spacing(4)})),NTe=C("div")(({theme:e})=>({padding:e.spacing(0,4),"& > p:not(:first-of-type)":{marginTop:e.spacing(2)}})),LTe=C("div")(({theme:e})=>({marginTop:"auto",display:"flex",justifyContent:"flex-end",[e.breakpoints.down("sm")]:{marginTop:e.spacing(4)}})),MTe=C(Ve)(({theme:e})=>({marginLeft:e.spacing(3)})),DTe=({environment:e,open:t,setOpen:n,newToken:r})=>{const{environments:o,refetchEnvironments:i}=Td(),{cloneEnvironment:a,loading:s}=_d(),{createToken:c}=PTe(),{projects:u}=Qa(),{setToastData:d,setToastApiError:p}=$t(),{uiConfig:f}=Ot(),[h,g]=m.useState(`${e.name}_clone`),[v,y]=m.useState("development"),[b,w]=m.useState([]),[S,k]=m.useState(["*"]),[A,T]=m.useState(!0),[R,P]=m.useState("later"),[_,I]=m.useState({}),$=Z=>{I(ae=>({...ae,[Z]:void 0}))},U=(Z,ae)=>{I(Ae=>({...Ae,[Z]:ae}))};m.useEffect(()=>{g(M(e.name)),y("development"),w([]),k(["*"]),T(!0),P("later"),I({})},[e]);const M=Z=>{let ae=`${Z}_clone`,Ae=2;for(;!j(ae);)ae=`${e.name}_clone_${Ae}`,Ae++;return ae},D=()=>({name:h,type:v,projects:b,clonePermissions:A}),K=()=>({username:`${h}_token`,type:"CLIENT",environment:h,projects:S}),H=async Z=>{Z.preventDefault();try{if(await a(e.name,D()),R==="now"){const Ae=await(await c(K())).json();r(Ae)}d({title:"Environment successfully cloned!",type:"success"}),i(),n(!1)}catch(ae){p(ht(ae))}},Q=()=>`curl --location --request POST '${f.unleashUrl}/api/admin/environments/${e.name}/clone' \\
354
- --header 'Authorization: INSERT_API_KEY' \\
355
- --header 'Content-Type: application/json' \\
356
- --data-raw '${JSON.stringify(D(),void 0,2)}'`,V=Z=>Z.length,j=Z=>!(o!=null&&o.some(ae=>ae.name===Z)),z=V(h)&&j(h)&&S.length,O=Z=>{$("name"),j(Z)||U("name","An environment with that name already exists."),g(Z)},B=u.map(Z=>({value:Z.id,label:Z.name}));return l(X1,{open:t,onClose:()=>{n(!1)},label:`Clone ${e.name} environment`,children:l(Yr,{loading:s,modal:!0,title:`Clone ${e.name} environment`,description:"Cloning an environment will clone all feature toggles and their configuration (activation strategies, segments, status, etc) into a new environment.",documentationLink:"https://docs.getunleash.io/reference/environments#cloning-environments",documentationLinkLabel:"Cloning environments documentation",formatApiCode:Q,children:x(ITe,{onSubmit:H,children:[x("div",{children:[l(Jc,{children:"What is your new environment name? (Can't be changed later)"}),l(OTe,{autoFocus:!0,label:"Environment name",error:!!_.name,errorText:_.name,value:h,onChange:Z=>O(Z.target.value),required:!0}),l(Jc,{children:"What type of environment do you want to create?"}),l(FL,{onChange:Z=>y(Z.currentTarget.value),value:v}),x(Jc,{children:["Select which projects you want to clone the environment configuration in?",l(Qu,{tooltip:"The cloned environment will keep the feature toggle state for the selected projects, where it will be enabled by default."})]}),l(kTe,{projects:b,setProjects:w}),l(Jc,{children:"Keep the users permission for this environment?"}),l(mw,{children:"If you turn it off, the permission for this environment across all projects and feature toggles will remain only for admin and editor roles."}),l(Hr,{label:A?"Yes":"No",control:l(Ya,{onChange:Z=>T(Z.target.checked),checked:A})}),x($Te,{children:[l(Jc,{children:"API Token"}),x(mw,{children:["In order to connect your SDKs to your newly cloned environment, you will also need an API token."," ",l(Vr,{href:"https://docs.getunleash.io/reference/api-tokens-and-client-keys",target:"_blank",rel:"noreferrer",children:"Read more about API tokens"}),"."]}),l(ks,{children:x(q2,{value:R,onChange:Z=>P(Z.target.value),name:"api-token-generation",children:[l(Hr,{value:"later",control:l(nc,{}),label:"I want to generate an API token later"}),l(Hr,{value:"now",control:l(nc,{}),label:"Generate an API token now"})]})}),x(NTe,{children:[l(mw,{children:"A new Server-side SDK (CLIENT) API token will be generated for the cloned environment, so you can get started right away."}),l(q,{condition:R==="now",show:x(ve,{children:[l(Jc,{children:"Which projects do you want this token to give access to?"}),l(_Te,{options:B,defaultValue:S,onChange:k,error:_.projects,onFocus:()=>$("projects")})]})})]})]})]}),x(LTe,{children:[l(Ve,{type:"submit",variant:"contained",color:"primary",disabled:!z,children:"Clone environment"}),l(MTe,{onClick:()=>{n(!1)},children:"Cancel"})]})]})})})};var jT={},BTe=En;Object.defineProperty(jT,"__esModule",{value:!0});var mD=jT.default=void 0,FTe=BTe(Tn()),zTe=kn,jTe=(0,FTe.default)((0,zTe.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4 6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"}),"FileCopy");mD=jT.default=jTe;const gD=({token:e})=>{const{setToastData:t}=$t();return x(Le,{sx:r=>({backgroundColor:r.palette.background.elevation2,padding:r.spacing(4),borderRadius:`${r.shape.borderRadius}px`,marginTop:r.spacing(2),display:"flex",justifyContent:"space-between",alignItems:"center",wordBreak:"break-all"}),children:[e,l(xt,{title:"Copy token",arrow:!0,children:l(Ht,{onClick:()=>{UL(e)?t({type:"success",title:"Token copied to clipboard"}):t({type:"error",title:"Could not copy token"})},size:"large",children:l(mD,{})})})]})},UTe=({open:e,setOpen:t,token:n})=>x(gr,{open:e,secondaryButtonText:"Close",onClose:(r,o)=>{o||t(!1)},title:"New API token created",children:[l(se,{variant:"body1",children:"Your new token has been created successfully."}),x(se,{variant:"body1",children:['You can also find it as "',l("strong",{children:n==null?void 0:n.username}),'" in the'," ",l(hn,{to:"/admin/api",children:"API access page"}),"."]}),l(gD,{token:(n==null?void 0:n.secret)||""})]}),WTe=C(Le)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-end",paddingLeft:e.spacing(.5),minWidth:e.spacing(6.5)})),HTe=C(Ht)(({theme:e})=>({padding:e.spacing(1.5,0),cursor:"inherit",transition:"color 0.2s ease-in-out",display:"none",color:e.palette.neutral.main})),VTe=C(u9,{shouldForwardProp:e=>e!=="deprecated"})(({theme:e,deprecated:t})=>({color:t?e.palette.neutral.border:e.palette.primary.main})),vD=({environment:e})=>x(WTe,{children:[l(HTe,{size:"large",disableRipple:!0,className:"drag-icon",children:l(nle,{titleAccess:"Drag to reorder"})}),l(VTe,{deprecated:!e.enabled})]}),GTe=C(la)(({theme:e})=>({marginTop:e.spacing(3)})),qTe=C("p",{shouldForwardProp:e=>e!=="warning"})(({theme:e,warning:t})=>({color:t?e.palette.error.dark:e.palette.text.primary})),yD=({environment:e,warnEnabledToggles:t})=>{const n=m.useMemo(()=>[{id:"Icon",width:"1%",Cell:({row:{original:c}})=>l(vD,{environment:c})},{Header:"Name",accessor:"name",Cell:rr},{Header:"Type",accessor:"type",Cell:rr},{Header:"Visible in",accessor:c=>c.projectCount===1?"1 project":`${c.projectCount} projects`,Cell:({row:{original:c},value:u})=>x(rr,{children:[u,l(q,{condition:!!t,show:l(qTe,{warning:!!(c.enabledToggleCount&&c.enabledToggleCount>0),children:c.enabledToggleCount===1?"1 toggle enabled":`${c.enabledToggleCount} toggles enabled`})})]})}],[t]),{getTableProps:r,getTableBodyProps:o,headerGroups:i,rows:a,prepareRow:s}=Yt.useTable({columns:n,data:[e],disableSortBy:!0});return x(GTe,{...r(),rowHeight:"compact",children:[l(sa,{headerGroups:i}),l(aa,{...o(),children:a.map(c=>(s(c),l(zi,{hover:!0,...c.getRowProps(),children:c.cells.map(u=>l(Wi,{...u.getCellProps(),children:u.render("Cell")}))})))})]})},KTe=({environment:e,open:t,setOpen:n,onConfirm:r})=>{const{enabled:o}=e,i=o?"Deprecate":"Undeprecate";return x(gr,{title:`${i} environment?`,open:t,primaryButtonText:i,secondaryButtonText:"Close",onClick:r,onClose:()=>{n(!1)},children:[l(q,{condition:o,show:l(tn,{severity:"info",children:"Deprecating an environment will mark it as deprecated. Deprecated environments are set as not visible by default for new projects. Project owners are still able to override this setting in the project. This environment will still be visible in any current projects."}),elseShow:l(tn,{severity:"info",children:"Undeprecating an environment will no longer mark it as deprecated. An undeprecated environment will be set as visible by default for new projects."})}),l(yD,{environment:e})]})},YTe=C("p")(({theme:e})=>({marginTop:e.spacing(3),marginBottom:e.spacing(1.5)})),XTe=C(Sr)(()=>({width:"100%"})),JTe=({environment:e,open:t,setOpen:n,onConfirm:r})=>{const[o,i]=m.useState("");return m.useEffect(()=>{i("")},[t]),x(gr,{title:"Delete environment?",open:t,primaryButtonText:"Delete environment",disabledPrimaryButton:e.name!==o,secondaryButtonText:"Close",onClick:r,onClose:()=>{n(!1)},children:[x(tn,{severity:"error",children:[l("strong",{children:"Danger! This action is not reversible. Please proceed with caution."})," ","Deleting this environment will result in removing all strategies that are active in this environment across all feature toggles."]}),l(yD,{environment:e,warnEnabledToggles:!0}),x(YTe,{children:["In order to delete this environment, please enter the id of the environment in the textfield below:"," ",l("strong",{children:e.name})]}),l(XTe,{label:"Environment name",value:o,onChange:a=>i(a.target.value)})]})},QTe=({environment:e})=>{const t=gt(),{setToastApiError:n,setToastData:r}=$t(),{environments:o,refetchEnvironments:i}=Td(),{refetch:a}=KE(),{deleteEnvironment:s,toggleEnvironmentOn:c,toggleEnvironmentOff:u}=_d(),[d,p]=m.useState(!1),[f,h]=m.useState(!1),[g,v]=m.useState(!1),[y,b]=m.useState(!1),[w,S]=m.useState();return x(Ha,{children:[l(wTe,{environment:e,onEdit:()=>t(`/environments/${e.name}`),onDeprecateToggle:()=>h(!0),onClone:()=>{o.length<Nv?v(!0):r({type:"error",title:"Environment limit reached",text:`You have reached the maximum number of environments (${Nv}). Please reach out if you need more.`})},onDelete:()=>p(!0)}),l(JTe,{environment:e,open:d,setOpen:p,onConfirm:async()=>{try{await s(e.name),a(),r({type:"success",title:"Environment deleted",text:`You have successfully deleted the ${e.name} environment.`})}catch(T){n(ht(T))}finally{p(!1),await i()}}}),l(KTe,{environment:e,open:f,setOpen:h,onConfirm:async()=>{try{e.enabled?(await u(e.name),r({type:"success",title:"Environment deprecated successfully"})):(await c(e.name),r({type:"success",title:"Environment undeprecated successfully"}))}catch(T){n(ht(T))}finally{h(!1),await i()}}}),l(DTe,{environment:e,open:g,setOpen:v,newToken:T=>{S(T),b(!0)}}),l(UTe,{open:y,setOpen:b,token:w})]})},ZTe=C(Le)(({theme:e})=>({display:"flex",flexDirection:"column",justifyContent:"center",wordBreak:"break-word",padding:e.spacing(1,2)})),eke=C("span")(({theme:e})=>({overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"1",lineClamp:"1"})),tke=C("span")(({theme:e})=>({color:e.palette.text.secondary,overflow:"hidden",textOverflow:"ellipsis",fontSize:"inherit",WebkitLineClamp:"1",lineClamp:"1",display:"-webkit-box",WebkitBoxOrient:"vertical"})),gs=({value:e,subtitle:t})=>{const{searchQuery:n}=Al();return x(ZTe,{children:[l(eke,{style:{WebkitLineClamp:t?1:2,lineClamp:t?1:2},"data-loading":!0,children:l(Ua,{search:n,children:e})}),l(q,{condition:!!t,show:()=>l(tke,{"data-loading":!0,children:l(Ua,{search:n,children:t})})})]})},nke=C(tn)(({theme:e})=>({marginBottom:e.spacing(4)})),rke=()=>{const{changeSortOrder:e}=_d(),{setToastApiError:t}=$t(),{environments:n,mutateEnvironments:r}=Td(),o=m.useCallback(async(y,b,w=!1)=>{const S=[...n],k=S[y];if(S.splice(y,1),S.splice(b,0,k),await r(S),w)try{await e(Jge(S))}catch(A){t(ht(A))}},[e,n,r,t]),{getTableProps:i,getTableBodyProps:a,headerGroups:s,rows:c,prepareRow:u,state:{globalFilter:d},setGlobalFilter:p}=Yt.useTable({columns:oke,data:n,disableSortBy:!0},Yt.useGlobalFilter),h=x(ve,{children:[l(vo,{initialValue:d,onChange:p}),l(Dn.Divider,{}),l(cTe,{})]});let g=c.length;const v=l(Dn,{title:`Environments (${g})`,actions:h});return x(Or,{header:v,children:[l(nke,{severity:"info",children:"This is the order of environments that you have today in each feature toggle. Rearranging them here will change also the order inside each feature toggle."}),l(Xa,{value:d,children:x(la,{...i(),rowHeight:"compact",children:[l(sa,{headerGroups:s}),l(aa,{...a(),children:c.map(y=>(u(y),l(fTe,{row:y,moveListItem:o},y.original.name)))})]})}),l(q,{condition:c.length===0,show:l(q,{condition:(d==null?void 0:d.length)>0,show:x(Kn,{children:["No environments found matching “",d,"”"]}),elseShow:l(Kn,{children:"No environments available. Get started by adding one."})})})]})},oke=[{id:"Icon",width:"1%",Cell:({row:{original:e}})=>l(vD,{environment:e}),disableGlobalFilter:!0,isDragHandle:!0},{Header:"Name",accessor:"name",Cell:({row:{original:e}})=>l(gTe,{environment:e}),minWidth:350},{Header:"Type",accessor:"type",Cell:gs},{Header:"Visible in",accessor:e=>e.projectCount===1?"1 project":`${e.projectCount} projects`,Cell:rr},{Header:"API Tokens",accessor:e=>e.apiTokenCount===1?"1 token":`${e.apiTokenCount} tokens`,Cell:rr},{Header:"Actions",id:"Actions",align:"center",width:"1%",Cell:({row:{original:e}})=>l(QTe,{environment:e}),disableGlobalFilter:!0}],ike=()=>{const e=Wa("projectId"),t=gt();return l(hi,{onClick:()=>{t(e?`/projects/${e}/settings/segments/create`:"/segments/create")},permission:[y1,CE],projectId:e,"data-testid":cie,children:"New segment"})},ake=C("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",margin:e.spacing(6),marginLeft:"auto",marginRight:"auto"})),ske=C(se)(({theme:e})=>({fontSize:e.fontSizes.mainHeader,marginBottom:e.spacing(2.5)})),lke=C("p")(({theme:e})=>({fontSize:e.fontSizes.smallBody,color:e.palette.text.secondary,maxWidth:515,marginBottom:e.spacing(2.5),textAlign:"center"})),cke=C(hn)(({theme:e})=>({textDecoration:"none",color:e.palette.primary.main,fontWeight:e.fontWeight.bold})),uke=()=>{const{hasAccess:e}=m.useContext(yo);return x(ake,{children:[l(ske,{children:"No segments yet!"}),l(lke,{children:"Segment makes it easy for you to define who should be exposed to your feature. The segment is often a collection of constraints and can be reused."}),l(q,{condition:e(y1),show:l(cke,{to:"/segments/create",children:"Create your first segment"})})]})},dke=C(Sr)(({theme:e})=>({marginTop:e.spacing(2)})),pke=({segment:e,open:t,onClose:n,onRemove:r})=>{const[o,i]=m.useState(""),a=u=>i(u.currentTarget.value),s=()=>{n(),i("")},c="delete-segment-confirmation-form";return x(gr,{title:"Are you sure you want to delete this segment?",open:t,primaryButtonText:"Delete segment",secondaryButtonText:"Cancel",onClick:()=>{r(),i("")},disabledPrimaryButton:(e==null?void 0:e.name)!==o,onClose:s,formId:c,children:[x("p",{children:["In order to delete this segment, please enter the name of the segment in the field below: ",l("strong",{children:e==null?void 0:e.name})]}),l("form",{id:c,children:l(dke,{autoFocus:!0,onChange:a,value:o,label:"Segment name","data-testid":wie})})]})},fke=C("ul")({marginBottom:0}),hke=C(hn)(({theme:e})=>({textDecoration:"none",color:e.palette.primary.main,fontWeight:e.fontWeight.bold})),mke=({segment:e,open:t,onClose:n,strategies:r})=>x(gr,{title:"You can't delete a segment that's currently in use",open:t,primaryButtonText:"OK",onClick:n,children:[x("p",{children:["The following feature toggles are using the"," ",l("strong",{children:e.name})," segment for their strategies:"]}),l(fke,{children:r==null?void 0:r.map(o=>l("li",{children:x(hke,{to:uD(o.projectId,o.featureName,o.environment,o.id),target:"_blank",rel:"noopener noreferrer",children:[o.featureName," ",gke(o)]})},o.id))})]}),gke=e=>e.strategyName?`(${yl(e.strategyName)})`:"",vke=({segment:e,open:t,onClose:n,onRemove:r})=>{const{strategies:o,loading:i}=yM(e.id),a=(o==null?void 0:o.length)===0;return i?null:l(q,{condition:a,show:l(pke,{segment:e,open:t,onClose:n,onRemove:r}),elseShow:l(mke,{segment:e,open:t,onClose:n,strategies:o})})},yke=({segment:e})=>{const t=Wa("projectId"),{refetchSegments:n}=_l(),{deleteSegment:r}=pT(),{setToastData:o,setToastApiError:i}=$t(),[a,s]=m.useState(!1),c=async()=>{try{await r(e.id),await n(),o({type:"success",title:"Successfully deleted segment"})}catch(u){i(ht(u))}finally{s(!1)}};return x(ve,{children:[l(Ir,{onClick:()=>s(!0),permission:[Fle,CE],projectId:t,tooltipProps:{title:"Remove segment"},"data-testid":`${bie}_${e.name}`,children:l(go,{"data-loading":!0})}),l(q,{condition:a,show:()=>l(vke,{segment:e,open:a,onClose:()=>s(!1),onRemove:c})})]})},bke=({segment:e})=>{const t=Wa("projectId"),n=gt();return l(Ir,{onClick:()=>{n(t?`/projects/${t}/settings/segments/edit/${e.id}`:`/segments/edit/${e.id}`)},permission:[xE,CE],projectId:t,tooltipProps:{title:"Edit segment"},children:l(Ui,{"data-loading":!0})})},wke=({segment:e})=>x(Ha,{children:[l(bke,{segment:e}),l(yke,{segment:e})]}),Ske=()=>{const e=Wa("projectId"),{segments:t,loading:n}=_l(),r=or(ml.breakpoints.down("md")),[o]=m.useState({sortBy:[{id:"createdAt"}],hiddenColumns:["description"]}),i=m.useMemo(()=>t?e?t.filter(({project:g})=>g===e):t:Array(5).fill({name:"Segment name",description:"Segment descripton",createdAt:new Date().toISOString(),createdBy:"user",projectId:"Project"}),[t,e]),{getTableProps:a,getTableBodyProps:s,headerGroups:c,rows:u,prepareRow:d,state:{globalFilter:p},setGlobalFilter:f,setHiddenColumns:h}=Yt.useTable({initialState:o,columns:A3,data:i,sortTypes:si,autoResetGlobalFilter:!1,autoResetHiddenColumns:!1,autoResetSortBy:!1,disableSortRemove:!0,defaultColumn:{Cell:gs}},Yt.useGlobalFilter,Yt.useSortBy);return Ed([{condition:r,columns:["createdAt","createdBy"]},{condition:!!e,columns:["project"]}],h,A3),l(Or,{header:l(Dn,{title:`Segments (${u.length})`,actions:x(ve,{children:[l(vo,{initialValue:p,onChange:f}),l(Dn.Divider,{}),l(ike,{})]})}),isLoading:n,children:l(q,{condition:!n&&i.length===0,show:l(Kn,{children:l(uke,{})}),elseShow:()=>x(ve,{children:[l(Xa,{value:p,children:x(la,{...a(),rowHeight:"standard",children:[l(sa,{headerGroups:c}),l(aa,{...s(),children:u.map(g=>(d(g),l(zi,{hover:!0,...g.getRowProps(),children:g.cells.map(v=>l(Wi,{...v.getCellProps(),children:v.render("Cell")}))})))})]})}),l(q,{condition:u.length===0&&(p==null?void 0:p.length)>0,show:x(Kn,{children:["No segments found matching “",p,"”"]})})]})})})},A3=[{id:"Icon",width:"1%",disableGlobalFilter:!0,disableSortBy:!0,Cell:()=>l(P1,{icon:l(d9,{color:"disabled"})})},{Header:"Name",accessor:"name",width:"60%",Cell:({value:e,row:{original:t}})=>l(gs,{value:e,subtitle:t.description})},{Header:"Project",accessor:"project",Cell:({value:e})=>l(q,{condition:!!e,show:l(Rs,{title:e,to:`/projects/${e}`}),elseShow:l(rr,{children:"Global"})}),sortType:"alphanumeric",maxWidth:150,filterName:"project",searchable:!0},{Header:"Created at",accessor:"createdAt",minWidth:150,Cell:th,disableGlobalFilter:!0},{Header:"Created by",accessor:"createdBy",width:"25%"},{Header:"Actions",id:"Actions",align:"center",width:"1%",disableSortBy:!0,disableGlobalFilter:!0,Cell:({row:{original:e}})=>l(wke,{segment:e})},{accessor:"description"}],xke=e=>fetch(e).then(Rn("Feature toggle archive")).then(t=>t.json()),bD=e=>{const{data:t,error:n,mutate:r,isLoading:o}=An(Bt(e?`/api/admin/archive/features/${e}`:"api/admin/archive/features"),xke,{refreshInterval:15e3});return{archivedFeatures:t==null?void 0:t.features,refetchArchived:r,loading:o,error:n}},Cke=({onRevive:e,onDelete:t,project:n})=>x(Ha,{children:[l(Ir,{onClick:e,projectId:n,permission:SE,tooltipProps:{title:"Revive feature toggle"},children:l(g9,{})}),l(Ir,{permission:T9,projectId:n,tooltipProps:{title:"Delete feature toggle"},onClick:t,children:l(go,{})})]}),Eke=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Yn({propagateErrors:!0});return{reviveFeature:async a=>{const s=`api/admin/archive/revive/${a}`,c=t(s,{method:"POST"});return e(c.caller,c.id)},deleteFeature:async a=>{const s=`api/admin/archive/${a}`,c=t(s,{method:"DELETE"});return e(c.caller,c.id)},errors:n,loading:r}},Tke=({value:e})=>{const{locationSettings:t}=Ja(),n=gn();return e?l(rr,{children:l(xt,{title:`Archived on: ${Xu(e,t.locale)}`,arrow:!0,children:l(se,{noWrap:!0,variant:"body2","data-loading":!0,children:l(x1,{date:new Date(e),title:"",live:!1})})})}):l(rr,{children:l(se,{variant:"body2",color:n.palette.text.secondary,children:"not available"})})},kke=C("p")(({theme:e})=>({marginTop:e.spacing(3)})),Ake=C(Sr)(({theme:e})=>({marginTop:e.spacing(2),width:"100%"})),Rke="I want to delete",wD=({deletedFeatures:e,projectId:t,open:n,setOpen:r,refetch:o})=>{const[i,a]=m.useState(""),{setToastData:s,setToastApiError:c}=$t(),{deleteFeatures:u}=Wh(),d=async()=>{try{if(e.length===0)return;await u(t,e),await o(),s({type:"success",title:"Feature toggles deleted",text:`You have successfully deleted following features toggles: ${e.join(", ")}.`})}catch(h){c(ht(h))}finally{p()}},p=()=>{r(!1),a("")},f="delete-feature-toggle-confirmation-form";return x(gr,{title:"Delete feature toggles?",open:n,primaryButtonText:"Delete feature toggles",secondaryButtonText:"Cancel",onClick:d,onClose:p,disabledPrimaryButton:Rke!==i,formId:f,children:[x(tn,{severity:"warning",children:[l("b",{children:"Warning!"})," Before you delete a feature toggle, make sure all in-code references to that feature toggle have been removed. Otherwise, a new feature toggle with the same name could activate the old code paths."]}),x(kke,{children:["In order to delete feature toggles, please enter the following confirmation text in the text field below:"," ",l("strong",{children:"I want to delete"})]}),l("form",{id:f,children:l(Ake,{autoFocus:!0,onChange:h=>{a(h.currentTarget.value)},value:i,placeholder:"<deletion confirmation>",label:"Deletion confirmation"})})]})},_ke=C(Le)(({theme:e})=>({display:"flex",justifyContent:"center",paddingLeft:e.spacing(2)})),Pke=({onChange:e,checked:t,title:n})=>l(_ke,{"data-testid":Fie,children:l(Ka,{onChange:e,title:n,checked:t})}),Ike=C("div")(({theme:e})=>({position:"sticky",marginTop:"auto",bottom:0,zIndex:e.zIndex.mobileStepper,pointerEvents:"none"})),Oke=C(Le)(({theme:e})=>({display:"flex",justifyContent:"center",width:"100%",flexWrap:"wrap",paddingBottom:e.spacing(2)})),$ke=C(wr)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-end",marginTop:e.spacing(2),marginLeft:"auto",marginRight:"auto",padding:e.spacing(2,3),backgroundColor:e.palette.background.paper,border:`1px solid ${e.palette.background.alternative}`,borderRadius:e.shape.borderRadiusLarge,gap:e.spacing(1),flexWrap:"wrap",pointerEvents:"auto"})),Nke=C("span")(({theme:e})=>({background:e.palette.background.alternative,color:e.palette.common.white,padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius})),Lke=C(se)(({theme:e})=>({paddingRight:e.spacing(2),marginRight:"auto"})),Mke=({count:e,children:t})=>e===0?null:l(Ike,{"data-testid":Die,children:l(Oke,{children:x($ke,{elevation:4,children:[x(Lke,{children:[l(Nke,{"data-testid":Bie,children:e})," selected"]}),t]})})}),Dke=({selectedIds:e,projectId:t})=>{const{reviveFeatures:n}=Wh(),{setToastData:r,setToastApiError:o}=$t(),{refetchArchived:i}=bD(t),[a,s]=m.useState(!1),{trackEvent:c}=Dr(),u=async()=>{try{await n(t,e),await i(),r({type:"success",title:"And we're back!",text:"The feature toggles have been revived."}),c("batch_operations",{props:{eventType:"features revived"}})}catch(p){o(ht(p))}},d=async()=>{s(!0)};return x(ve,{children:[l(pu,{projectId:t,permission:SE,children:({hasAccess:p})=>l(Ve,{disabled:!p,startIcon:l(g9,{}),variant:"outlined",size:"small",onClick:u,children:"Revive"})}),l(pu,{projectId:t,permission:T9,children:({hasAccess:p})=>l(Ve,{disabled:!p,startIcon:l(go,{}),variant:"outlined",size:"small",onClick:d,children:"Delete"})}),l(wD,{deletedFeatures:e,projectId:t,open:a,setOpen:s,refetch:()=>{i(),c("batch_operations",{props:{eventType:"features deleted"}})}})]})},Bke=({archivedFeatures:e=[],loading:t,refetch:n,storedParams:r,setStoredParams:o,title:i,projectId:a})=>{const s=or(ml.breakpoints.down("md")),c=or(ml.breakpoints.down("lg")),{setToastData:u,setToastApiError:d}=$t(),[p,f]=m.useState(!1),[h,g]=m.useState(),[v,y]=md(),{reviveFeature:b}=Eke(),[w,S]=m.useState(v.get("search")||""),k=m.useCallback(async V=>{try{await b(V),await n(),u({type:"success",title:"And we're back!",text:"The feature toggle has been revived."})}catch(j){d(ht(j))}},[n,b,d,u]),A=m.useMemo(()=>[...a?[{id:"Select",Header:({getToggleAllRowsSelectedProps:V})=>l(Ka,{...V()}),Cell:({row:V})=>{var j;return l(Pke,{...(j=V==null?void 0:V.getToggleRowSelectedProps)==null?void 0:j.call(V)})},maxWidth:50,disableSortBy:!0,hideInMenu:!0}]:[],{Header:"Seen",width:85,canSort:!0,Cell:H9,accessor:"lastSeenAt",align:"center"},{Header:"Type",accessor:"type",width:85,canSort:!0,Cell:K9,align:"center"},{Header:"Name",accessor:"name",searchable:!0,minWidth:100,Cell:({value:V,row:{original:j}})=>l(gs,{value:V,subtitle:j.description}),sortType:"alphanumeric"},{Header:"Created",accessor:"createdAt",width:150,Cell:th,sortType:"date"},{Header:"Archived",accessor:"archivedAt",width:150,Cell:Tke,sortType:"date"},...a?[]:[{Header:"Project ID",accessor:"project",sortType:"alphanumeric",filterName:"project",searchable:!0,maxWidth:170,Cell:({value:V})=>l(Rs,{title:V,to:`/projects/${V}`})}],{Header:"State",accessor:"stale",Cell:eL,sortType:"boolean",maxWidth:120,filterName:"state",filterParsing:V=>V?"stale":"active"},{Header:"Actions",id:"Actions",align:"center",maxWidth:120,canSort:!1,Cell:({row:{original:V}})=>l(Cke,{project:V.project,onRevive:()=>k(V.name),onDelete:()=>{g(V),f(!0)}})},{accessor:"description",header:"Description",searchable:!0}],[a]),{data:T,getSearchText:R,getSearchContext:P}=jh(A,w,e),_=m.useMemo(()=>t?sL:T,[T,t]),[I]=m.useState(()=>({sortBy:[{id:v.get("sort")||r.id,desc:v.has("order")?v.get("order")==="desc":r.desc}],hiddenColumns:["description"],selectedRowIds:{}})),$=m.useCallback(V=>V.name,[]),{headerGroups:U,rows:M,state:{sortBy:D,selectedRowIds:K},prepareRow:H,setHiddenColumns:Q}=Yt.useTable({columns:A,data:_,initialState:I,sortTypes:si,autoResetHiddenColumns:!1,disableSortRemove:!0,autoResetSortBy:!1,getRowId:$},Yt.useFlexLayout,Yt.useSortBy,Yt.useRowSelect);return Ed([{condition:s,columns:["type","createdAt"]},{condition:c,columns:["lastSeenAt","stale"]}],Q,A),m.useEffect(()=>{if(t)return;const V={};V.sort=D[0].id,D[0].desc&&(V.order="desc"),w&&(V.search=w),y(V,{replace:!0}),o({id:D[0].id,desc:D[0].desc||!1})},[t,D,w]),x(ve,{children:[x(Or,{isLoading:t,header:l(Dn,{titleElement:`${i} (${M.length<_.length?`${M.length} of ${_.length}`:_.length})`,actions:l(vo,{initialValue:w,onChange:S,hasFilters:!0,getSearchContext:P})}),children:[l(Xa,{value:R(w),children:l(b1,{rows:M,headerGroups:U,prepareRow:H})}),l(q,{condition:M.length===0,show:()=>l(q,{condition:(w==null?void 0:w.length)>0,show:x(Kn,{children:["No feature toggles found matching “",w,"”"]}),elseShow:l(Kn,{children:"None of the feature toggles were archived yet."})})}),l(wD,{deletedFeatures:[h==null?void 0:h.name],projectId:a??(h==null?void 0:h.project),open:p,setOpen:f,refetch:n})]}),l(q,{condition:!!a,show:l(Mke,{count:Object.keys(K).length,children:l(Dke,{selectedIds:Object.keys(K),projectId:a})})})]})},Fke={id:"createdAt"},{value:zke,setValue:jke}=Rc("FeaturesArchiveTable:v1",Fke),Uke=()=>{Y9("Archive");const{archivedFeatures:e=[],loading:t,refetchArchived:n}=bD();return l(Bke,{title:"Archive",archivedFeatures:e,loading:t,storedParams:zke,setStoredParams:jke,refetch:n})},Wke=m.lazy(()=>import("./Playground-6602cb1a.js")),Hke=C(Ve)(({theme:e,selected:t})=>({"&.MuiButton-root":{cursor:"pointer",height:e.spacing(6.5),border:0,backgroundColor:t?e.palette.background.paper:"transparent",borderLeft:`${e.spacing(1)} solid ${t?e.palette.background.alternative:"transparent"}`,borderRadius:e.shape.borderRadiusMedium,justifyContent:"start",transition:"background-color 0.2s ease",color:e.palette.text.primary,textAlign:"left",padding:e.spacing(2,4),fontSize:e.fontSizes.bodySize,fontWeight:t?e.fontWeight.bold:e.fontWeight.medium,lineHeight:1.2},"&:hover":{backgroundColor:e.palette.neutral.light},"&.Mui-disabled":{pointerEvents:"auto"},justifyContent:"space-between"})),Vke=({label:e,selected:t,onClick:n})=>l(Hke,{selected:!!t,onClick:n,disableRipple:!0,disableElevation:!0,disableFocusRipple:!0,disableTouchRipple:!0,fullWidth:!0,children:e}),Gke=C("div")(({theme:e})=>({display:"flex",gap:e.spacing(3),[e.breakpoints.down("md")]:{flexDirection:"column"}})),qke=C("div")(()=>({flexGrow:1,display:"flex",flexDirection:"column"})),Kke=C("div")(({theme:e})=>({display:"flex",flexDirection:"column",gap:e.spacing(1),width:e.spacing(30),flexShrink:0,[e.breakpoints.down("md")]:{width:"100%"}})),Yke=({tabs:e,value:t,onChange:n,children:r})=>x(Gke,{children:[l(Kke,{children:e.filter(o=>!o.hidden).map(o=>l(Vke,{label:o.label,selected:o.id===t,onClick:()=>n(o)},o.id))}),l(qke,{children:r})]}),SD=(e,t={})=>{const n=async()=>{const u=Bt(`api/admin/auth/${e}/settings`);return(await fetch(u,{method:"GET"}).then(Rn("Auth settings"))).json()},r=`api/admin/auth/${e}/settings`,{data:o,error:i}=An(r,n,t),[a,s]=m.useState(!i&&!o),c=()=>{io(r)};return m.useEffect(()=>{s(!i&&!o)},[o,i]),{config:o||{},error:i,loading:a,refetch:c}},Xke=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Yn({propagateErrors:!0});return{changePassword:async i=>{const a=t("api/admin/user/change-password",{method:"POST",body:JSON.stringify(i)});try{await e(a.caller,a.id)}catch(s){throw s}},errors:n,loading:r}},Jke=C("form")(({theme:e})=>({display:"flex",flexDirection:"column",gap:e.spacing(2),maxWidth:e.spacing(44)})),Qke=()=>{const{config:e,loading:t}=SD("simple"),[n,r]=m.useState(!1),{setToastData:o,setToastApiError:i}=$t(),[a,s]=m.useState(!1),[c,u]=m.useState(),[d,p]=m.useState(""),[f,h]=m.useState(""),{changePassword:g}=Xke(),v=async y=>{if(y.preventDefault(),d===f){if(!a)u(RL);else{r(!0),u(void 0);try{await g({password:d,confirmPassword:f}),o({title:"Password changed successfully",text:"Now you can sign in using your new password.",type:"success"})}catch(b){const w=ht(b);u(w),i(w)}}r(!1)}};return t?null:l(Or,{isLoading:n,header:"Change password",children:l(q,{condition:e.disabled,show:l(tn,{severity:"error",children:"Password based login is currently disabled for your Unleash instance."}),elseShow:x(Jke,{children:[l(_L,{password:d,callback:s,"data-loading":!0}),l(Zu,{"data-loading":!0,label:"Password",name:"password",value:d,error:!!c,helperText:c,autoComplete:"new-password",onChange:y=>p(y.target.value)}),l(Zu,{"data-loading":!0,label:"Confirm password",name:"confirmPassword",value:f,autoComplete:"new-password",onChange:y=>h(y.target.value)}),l(IL,{"data-loading":!0,started:!!(d&&f),matchingPasswords:d===f}),l(Ve,{"data-loading":!0,variant:"contained",color:"primary",type:"submit",onClick:v,children:"Save"})]})})})},Zke=10,UT=()=>{const{data:e,error:t,mutate:n}=An(Bt("api/admin/user/tokens"),eAe);return{tokens:e?e.pats:void 0,loading:!t&&!e,refetchTokens:()=>n(),error:t}},eAe=e=>fetch(e).then(Rn("Personal API Tokens")).then(t=>t.json()),xD=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Yn({propagateErrors:!0});return{createPersonalAPIToken:async c=>{const u=t("api/admin/user/tokens",{method:"POST",body:JSON.stringify(c)});try{return await(await e(u.caller,u.id)).json()}catch(d){throw d}},deletePersonalAPIToken:async c=>{const u=t(`api/admin/user/tokens/${c}`,{method:"DELETE"});try{await e(u.caller,u.id)}catch(d){throw d}},createUserPersonalAPIToken:async(c,u)=>{const d=t(`api/admin/user-admin/${c}/pat`,{method:"POST",body:JSON.stringify(u)});try{return await(await e(d.caller,d.id)).json()}catch(p){throw p}},deleteUserPersonalAPIToken:async(c,u)=>{const d=t(`api/admin/user-admin/${c}/pat/${u}`,{method:"DELETE"});try{await e(d.caller,d.id)}catch(p){throw p}},errors:n,loading:r}},tAe=e=>{const t=new Date(e);return eh(t,"yyyy-MM-dd")},nAe=e=>{const t=new Date(e);return eh(t,"yyyy-MM-dd")+"T"+eh(t,"HH:mm")},rAe=({label:e,type:t="datetime",error:n,errorText:r,min:o,max:i,value:a,onChange:s,...c})=>{const u=t==="datetime"?nAe:tAe;return l(wn,{type:t==="datetime"?"datetime-local":"date",size:"small",variant:"outlined",label:e,error:n,helperText:r,value:u(a.toISOString()),onChange:p=>{const f=zL(p.target.value);s(f??a)},FormHelperTextProps:{["data-testid"]:ON},inputProps:{min:o&&u(o.toISOString()),max:i&&u(i.toISOString())},...c})},R3=C("p")(({theme:e})=>({color:e.palette.text.secondary,marginBottom:e.spacing(1)})),oAe=C(Sr)(({theme:e})=>({width:"100%",maxWidth:e.spacing(50),marginBottom:e.spacing(2)})),iAe=C("div")(({theme:e,custom:t})=>({display:"flex",alignItems:t?"start":"center",gap:e.spacing(1.5),marginBottom:e.spacing(2),[e.breakpoints.down("sm")]:{flexDirection:"column",alignItems:"flex-start"}})),aAe=C(YE)(({theme:e})=>({minWidth:e.spacing(20),marginRight:e.spacing(.5),[e.breakpoints.down("sm")]:{width:e.spacing(50)}})),sAe=C(rAe)(({theme:e})=>({width:e.spacing(28),[e.breakpoints.down("sm")]:{width:e.spacing(50)}})),lAe=C(tn)(({theme:e})=>({marginBottom:e.spacing(2),maxWidth:e.spacing(50)}));var CD=(e=>(e["7DAYS"]="7d",e["30DAYS"]="30d",e["60DAYS"]="60d",e.NEVER="never",e.CUSTOM="custom",e))(CD||{});const ED=[{key:"7d",days:7,label:"7 days"},{key:"30d",days:30,label:"30 days"},{key:"60d",days:60,label:"60 days"},{key:"never",label:"Never"},{key:"custom",label:"Custom"}],_x=e=>{const t=new Date,n=ED.find(({key:r})=>r===e);return e==="never"?t.setFullYear(t.getFullYear()+1e3):e==="custom"?t.setMinutes(t.getMinutes()+30):n!=null&&n.days&&t.setDate(t.getDate()+n.days),t},cAe=({description:e,setDescription:t,isDescriptionUnique:n,expiration:r,setExpiration:o,expiresAt:i,setExpiresAt:a,errors:s,setErrors:c})=>{const{locationSettings:u}=Ja(),d=v=>{c(y=>({...y,[v]:void 0}))},p=(v,y)=>{c(b=>({...b,[v]:y}))};m.useEffect(()=>{d("expiresAt"),a(_x(r))},[r]);const f=v=>{d("description"),n&&!n(v)&&p("description","A token with that description already exists."),t(v)},h=r==="custom",g=i.getFullYear()>new Date().getFullYear()+100;return x(ve,{children:[l(R3,{children:"Describe what this token will be used for"}),l(oAe,{autoFocus:!0,label:"Description",error:!!s.description,errorText:s.description,value:e,onChange:v=>f(v.target.value),required:!0}),l(R3,{children:"Token expiration date"}),x(iAe,{custom:h,children:[l(aAe,{name:"expiration",id:"expiration",label:"Token will expire in",value:r,onChange:v=>o(v.target.value),options:ED}),l(q,{condition:h,show:()=>l(sAe,{label:"Date",value:i,onChange:v=>{d("expiresAt"),v<new Date&&p("expiresAt","Invalid date, must be in the future"),a(v)},min:new Date,error:!!s.expiresAt,errorText:s.expiresAt,required:!0}),elseShow:l(q,{condition:g,show:x(se,{variant:"body2",children:["The token will ",l("strong",{children:"never"})," ","expire!"]}),elseShow:()=>x(se,{variant:"body2",children:["Token will expire on"," ",l("strong",{children:Xu(i,u.locale)})]})})})]}),l(q,{condition:g,show:l(lAe,{severity:"warning",children:"We strongly recommend that you set an expiration date for your token to help keep your information secure."})})]})},uAe=C("form")(()=>({display:"flex",flexDirection:"column",height:"100%"})),dAe=C("div")(({theme:e})=>({marginTop:"auto",display:"flex",justifyContent:"flex-end",[e.breakpoints.down("sm")]:{marginTop:e.spacing(4)}})),pAe=C(Ve)(({theme:e})=>({marginLeft:e.spacing(3)})),cg=CD["30DAYS"],fAe=({open:e,setOpen:t,newToken:n})=>{const{tokens:r,refetchTokens:o}=UT(),{createPersonalAPIToken:i,loading:a}=xD(),{setToastApiError:s}=$t(),{uiConfig:c}=Ot(),[u,d]=m.useState(""),[p,f]=m.useState(cg),[h,g]=m.useState(_x(cg)),[v,y]=m.useState({});m.useEffect(()=>{d(""),f(cg),g(_x(cg)),y({})},[e]);const b=()=>({description:u,expiresAt:h}),w=async R=>{R.preventDefault();try{const P=await i(b());n(P),o(),t(!1)}catch(P){s(ht(P))}},S=()=>`curl --location --request POST '${c.unleashUrl}/api/admin/user/tokens' \\
357
- --header 'Authorization: INSERT_API_KEY' \\
358
- --header 'Content-Type: application/json' \\
359
- --data-raw '${JSON.stringify(b(),void 0,2)}'`,k=R=>R.length,A=R=>!(r!=null&&r.some(P=>P.description===R)),T=k(u)&&A(u)&&h>new Date;return l(X1,{open:e,onClose:()=>{t(!1)},label:"Create personal API token",children:l(Yr,{loading:a,modal:!0,title:"Create personal API token",description:`Use personal API tokens to authenticate to the Unleash API as
360
- yourself. A personal API token has the same access privileges as
361
- your user.`,documentationLink:"https://docs.getunleash.io/reference/api-tokens-and-client-keys",documentationLinkLabel:"Tokens documentation",formatApiCode:S,children:x(uAe,{onSubmit:w,children:[l("div",{children:l(cAe,{description:u,setDescription:d,isDescriptionUnique:A,expiration:p,setExpiration:f,expiresAt:h,setExpiresAt:g,errors:v,setErrors:y})}),x(dAe,{children:[l(Ve,{type:"submit",variant:"contained",color:"primary",disabled:!T,children:"Create token"}),l(pAe,{onClick:()=>{t(!1)},children:"Cancel"})]})]})})})},hAe=({open:e,setOpen:t,token:n})=>{const{refetchTokens:r}=UT(),{deletePersonalAPIToken:o}=xD(),{setToastData:i,setToastApiError:a}=$t();return l(gr,{open:e,primaryButtonText:"Delete token",secondaryButtonText:"Cancel",onClick:async()=>{if(n)try{await o(n==null?void 0:n.id),r(),t(!1),i({title:"Token deleted successfully",type:"success"})}catch(c){a(ht(c))}},onClose:()=>{t(!1)},title:"Delete token?",children:x(se,{children:['Any applications or scripts using this token "',l("strong",{children:n==null?void 0:n.description}),'" will no longer be able to access the Unleash API. You cannot undo this action.']})})},mAe=C(tn)(({theme:e})=>({marginBottom:e.spacing(3)})),gAe=({open:e,setOpen:t,token:n})=>x(gr,{open:e,secondaryButtonText:"Close",onClose:(r,o)=>{o||t(!1)},title:"Personal API token created",children:[l(mAe,{severity:"info",children:"Make sure to copy your personal API token now. You won't be able to see it again!"}),l(se,{variant:"body1",children:"Your token:"}),l(gD,{token:(n==null?void 0:n.secret)||""})]}),TD=({value:e,live:t=!1,emptyText:n,title:r,dateFormat:o=Xu})=>{const{locationSettings:i}=Ja();if(!e)return l(rr,{children:n});const a=o(e,i.locale);return l(rr,{children:l(xt,{title:(r==null?void 0:r(a))??a,arrow:!0,children:l(se,{noWrap:!0,component:"span",variant:"body2","data-loading":!0,children:l(x1,{date:new Date(e),live:t,title:""})})})})},vAe=C(tn)(({theme:e})=>({marginBottom:e.spacing(3)})),yAe=C("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",padding:e.spacing(10,2)})),bAe=C(se)(({theme:e})=>({fontSize:e.fontSizes.mainHeader,marginBottom:e.spacing(1.5)})),wAe=C(se)(({theme:e})=>({color:e.palette.text.secondary,marginBottom:e.spacing(4.5)})),SAe=Array(15).fill({description:"Short description of the feature",type:"-",createdAt:new Date(2022,1,1),project:"projectID"}),xAe={id:"createdAt"},{value:_3,setValue:CAe}=Rc("PersonalAPITokensTable:v1",xAe),EAe=()=>{const e=gn(),t=or(e.breakpoints.down("md")),n=or(e.breakpoints.down("sm")),{tokens:r=[],loading:o}=UT(),[i,a]=md(),[s]=m.useState(()=>({sortBy:[{id:i.get("sort")||_3.id,desc:i.has("order")?i.get("order")==="desc":_3.desc}],globalFilter:i.get("search")||""})),[c,u]=m.useState(s.globalFilter),[d,p]=m.useState(!1),[f,h]=m.useState(!1),[g,v]=m.useState(!1),[y,b]=m.useState(),[w,S]=m.useState(),k=m.useMemo(()=>[{Header:"Description",accessor:"description",Cell:gs,minWidth:100,searchable:!0},{Header:"Expires",accessor:"expiresAt",Cell:({value:D})=>new Date(D).getFullYear()>new Date().getFullYear()+100?l(rr,{children:"Never"}):l(th,{value:D}),sortType:"date",maxWidth:150},{Header:"Created",accessor:"createdAt",Cell:th,sortType:"date",maxWidth:150},{Header:"Last seen",accessor:"seenAt",Cell:TD,sortType:"date",maxWidth:150},{Header:"Actions",id:"Actions",align:"center",Cell:({row:{original:D}})=>l(Ha,{children:l(xt,{title:"Delete token",arrow:!0,describeChild:!0,children:l("span",{children:l(Ht,{onClick:()=>{S(D),v(!0)},children:l(go,{})})})})}),maxWidth:100,disableSortBy:!0}],[S,v]),{data:A,getSearchText:T,getSearchContext:R}=jh(k,c,r),P=m.useMemo(()=>(A==null?void 0:A.length)===0&&o?SAe:A,[A,o]),{headerGroups:_,rows:I,prepareRow:$,state:{sortBy:U},setHiddenColumns:M}=Yt.useTable({columns:k,data:P,initialState:s,sortTypes:si,autoResetHiddenColumns:!1,autoResetSortBy:!1,disableSortRemove:!0,disableMultiSort:!0},Yt.useSortBy,Yt.useFlexLayout);return Ed([{condition:n,columns:["expiresAt"]},{condition:t,columns:["createdAt"]}],M,k),m.useEffect(()=>{const D={};D.sort=U[0].id,U[0].desc&&(D.order="desc"),c&&(D.search=c),a(D,{replace:!0}),CAe({id:U[0].id,desc:U[0].desc||!1})},[U,c,a]),x(Or,{isLoading:o,header:l(Dn,{title:`Personal API tokens (${I.length<P.length?`${I.length} of ${P.length}`:P.length})`,actions:x(ve,{children:[l(q,{condition:!t,show:x(ve,{children:[l(vo,{initialValue:c,onChange:u,getSearchContext:R}),l(Dn.Divider,{})]})}),l(Ve,{variant:"contained",color:"primary",disabled:r.length>=Zke,onClick:()=>p(!0),children:"New token"})]}),children:l(q,{condition:t,show:l(vo,{initialValue:c,onChange:u,hasFilters:!0,getSearchContext:R})})}),children:[l(vAe,{severity:"info",children:"Use personal API tokens to authenticate to the Unleash API as yourself. A personal API token has the same access privileges as your user."}),l(Xa,{value:T(c),children:l(b1,{rows:I,headerGroups:_,prepareRow:$})}),l(q,{condition:I.length===0,show:l(q,{condition:(c==null?void 0:c.length)>0,show:x(Kn,{children:["No tokens found matching “",c,"”"]}),elseShow:x(yAe,{children:[l(bAe,{children:"You have no personal API tokens yet."}),l(wAe,{variant:"body2",children:"Need an API token for scripts or testing? Create a personal API token for quick access to the Unleash API."}),l(Ve,{variant:"outlined",onClick:()=>p(!0),children:"Create your first token"})]})})}),l(fAe,{open:d,setOpen:p,newToken:D=>{b(D),h(!0)}}),l(gAe,{open:f,setOpen:h,token:y}),l(hAe,{open:g,setOpen:v,token:w})]})},TAe=()=>{const{data:e,error:t,mutate:n}=An(Bt("api/admin/user/profile"),kAe);return{profile:e,loading:!t&&!e,refetchProfile:()=>n(),error:t}},kAe=e=>fetch(e).then(Rn("Profile")).then(t=>t.json());var WT={},AAe=En;Object.defineProperty(WT,"__esModule",{value:!0});var Bs=WT.default=void 0,RAe=AAe(Tn()),_Ae=kn,PAe=(0,RAe.default)((0,_Ae.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined");Bs=WT.default=PAe;var HT={},IAe=En;Object.defineProperty(HT,"__esModule",{value:!0});var kD=HT.default=void 0,OAe=IAe(Tn()),$Ae=kn,NAe=(0,OAe.default)((0,$Ae.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16.77c.68 0 1.23-.56 1.23-1.23V8c0-1.1-.9-2-2-2zm0 12H4V6h5.17l2 2H20v10zm-2-6H6v-2h12v2zm-4 4H6v-2h8v2z"}),"TopicOutlined");kD=HT.default=NAe;const LAe=C("div")(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",padding:e.spacing(6),borderRadius:e.shape.borderRadiusLarge,backgroundColor:e.palette.background.alternative,color:e.palette.primary.contrastText,marginBottom:e.spacing(3),boxShadow:e.boxShadows.primaryHeader})),MAe=C("div")(()=>({flexGrow:1})),DAe=C(se)(({theme:e})=>({fontSize:e.spacing(3.75)})),BAe=C(cE)(({theme:e})=>({width:e.spacing(9.5),height:e.spacing(9.5),marginRight:e.spacing(3)})),P3=C(se)(({theme:e})=>({fontSize:e.fontSizes.mainHeader,marginBottom:e.spacing(3)})),FAe=C("div")(({theme:e})=>({display:"flex",flexDirection:"row","& > div > p":{marginBottom:e.spacing(1.5)}})),zAe=C(Zt)(({theme:e})=>({cursor:"pointer",marginRight:e.spacing(1)})),jAe=C("div")(({theme:e})=>({width:"100%",height:"1px",backgroundColor:e.palette.divider,margin:e.spacing(3,0)})),UAe=C(ks)(({theme:e})=>({marginTop:e.spacing(1.5),width:e.spacing(30)})),WAe=C(Ih)(({theme:e})=>({backgroundColor:e.palette.background.paper})),HAe=({user:e})=>{const{profile:t}=TAe(),n=gt(),{locationSettings:r,setLocationSettings:o}=Ja(),[i,a]=m.useState(),[s,c]=m.useState(["en-US","en-GB","nb-NO","sv-SE","da-DK","en-IN","de","cs","pt-BR","fr-FR"]);m.useEffect(()=>{const d=s.find(p=>p.toLowerCase().includes(r.locale.toLowerCase()));a(d),d||c(p=>[...p,r.locale])},[r]);const u=d=>{const p=d.target.value;a(p),o({locale:p})};return x(ve,{children:[x(LAe,{children:[l(BAe,{user:e}),x(MAe,{children:[l(DAe,{children:e.name||e.username}),l(se,{variant:"body1",children:e.email})]})]}),x(Or,{children:[l(P3,{children:"Access"}),x(FAe,{children:[x(Le,{sx:{width:"50%"},children:[l(se,{variant:"body2",children:"Your root role"}),l(xt,{title:(t==null?void 0:t.rootRole.description)||"",arrow:!0,placement:"bottom-end",describeChild:!0,children:l(Zt,{color:"success",icon:l(Bs,{}),iconRight:!0,children:t==null?void 0:t.rootRole.name})})]}),x(Le,{children:[l(se,{variant:"body2",children:"Projects"}),l(q,{condition:!!(t!=null&&t.projects.length),show:t==null?void 0:t.projects.map(d=>l(xt,{title:"View project",arrow:!0,placement:"bottom-end",describeChild:!0,children:l(zAe,{onClick:p=>{p.preventDefault(),n(`/projects/${d}`)},color:"secondary",icon:l(kD,{}),children:d})},d)),elseShow:l(xt,{title:"You are not assigned to any projects",arrow:!0,describeChild:!0,children:l(Zt,{children:"No projects"})})})]})]}),l(jAe,{}),l(P3,{children:"Settings"}),l(se,{variant:"body2",children:"This is the format used across the system for time and date"}),x(UAe,{variant:"outlined",size:"small",children:[l(WAe,{htmlFor:"locale-select",children:"Date/Time formatting"}),l(Oh,{id:"locale-select",value:i||"",native:!0,onChange:u,MenuProps:{style:{zIndex:9999}},children:s.map(d=>l("option",{value:d,children:d},d))})]})]})]})},VAe=()=>{const{user:e}=pi(),t=Ho(),n=gt(),{config:r,loading:o}=SD("simple"),{uiConfig:i}=Ot(),a=[{id:"profile",label:"Profile"},{id:"password",label:"Change password",path:"change-password",hidden:r.disabled},{id:"pat",label:"Personal API tokens",path:"personal-api-tokens",hidden:i.flags.personalAccessTokensKillSwitch}],s=p=>{n(p.path?`/profile/${p.path}`:"/profile",{replace:!0}),d(p.id)},c=()=>{const p=t.pathname;return(a.find(({path:h})=>h&&p.includes(h))||a[0]).id},[u,d]=m.useState(c());return m.useEffect(()=>{d(c())},[t]),o?null:x(Yke,{tabs:a,value:u,onChange:s,children:[l(q,{condition:u==="profile",show:l(HAe,{user:e})}),l(q,{condition:u==="password",show:l(Qke,{})}),l(q,{condition:u==="pat",show:l(EAe,{})})]})},GAe=m.lazy(()=>import("./CreateProject-217f67b6.js")),qAe=m.lazy(()=>import("./FeatureViewLazyExport-06cf4baa.js")),KAe=m.lazy(()=>import("./LazyAdminExport-04c8032d.js")),YAe=m.lazy(()=>import("./LazyProjectExport-d9663a8c.js")),XAe=()=>l(kc,{to:"/admin/users",replace:!0}),JAe=()=>{const{isEnterprise:e}=Ot(),{data:t,error:n,mutate:r}=zh(e(),{events:[]},Bt("api/admin/logins"),QAe);return m.useMemo(()=>({events:(t==null?void 0:t.events)??[],loading:!n&&!t,refetch:()=>r(),error:n}),[t,n,r])},QAe=e=>fetch(e).then(Rn("Login History")).then(t=>t.json()),I3=C(Le)(()=>({display:"flex",justifyContent:"center"})),ZAe=({row:e,value:t})=>{const{searchQuery:n}=Al();return t?l(I3,{children:l(Zt,{color:"success",children:"True"})}):l(I3,{children:l(Fh,{arrow:!0,title:l(Ua,{search:n,children:e.original.failure_reason}),children:l(Zt,{color:"error",children:"False"})})})},eRe=C(Le)(()=>({display:"flex",justifyContent:"center"})),tRe=({onDelete:e})=>l(eRe,{children:l(Ir,{"data-loading":!0,onClick:e,permission:fi,tooltipProps:{title:"Remove event"},children:l(go,{})})}),nRe=({event:e,open:t,setOpen:n,onConfirm:r})=>x(gr,{title:"Delete event?",open:t,primaryButtonText:"Delete event",secondaryButtonText:"Cancel",onClick:()=>r(e),onClose:()=>{n(!1)},children:["You are about to delete event: ",x("strong",{children:["#",e==null?void 0:e.id]})]}),rRe=()=>{const{loading:e,makeRequest:t,createRequest:n,errors:r}=Yn({propagateErrors:!0});return{downloadCSV:async()=>{const c=n("api/admin/logins",{method:"GET",responseType:"blob",headers:{Accept:"text/csv"}},"downloadCSV"),u=await(await t(c.caller,c.id)).blob(),d=window.URL.createObjectURL(u);window.location.assign(d)},removeEvent:async s=>{const c="removeEvent",u=n(`api/admin/logins/${s}`,{method:"DELETE"},c);await t(u.caller,u.id)},removeAllEvents:async()=>{const c=n("api/admin/logins",{method:"DELETE"},"removeAllEvents");await t(c.caller,c.id)},errors:r,loading:e}},oRe=({open:e,setOpen:t,onConfirm:n})=>x(gr,{title:"Clear login history?",open:e,primaryButtonText:"Clear login history",secondaryButtonText:"Cancel",onClick:n,onClose:()=>{t(!1)},children:["You are about to clear the login history.",l("br",{}),"This will delete all the login events."]}),iRe={id:"created_at"},{value:O3,setValue:aRe}=Rc("LoginHistoryTable:v1",iRe),sRe={simple:"Password",oidc:"OIDC",saml:"SAML",google:"Google"},lRe=()=>{const{setToastData:e,setToastApiError:t}=$t(),{events:n,loading:r,refetch:o}=JAe(),{removeEvent:i,removeAllEvents:a,downloadCSV:s}=rRe(),[c,u]=md(),[d]=m.useState(()=>({sortBy:[{id:c.get("sort")||O3.id,desc:c.has("order")?c.get("order")==="desc":O3.desc}],hiddenColumns:["failure_reason"],globalFilter:c.get("search")||""})),[p,f]=m.useState(d.globalFilter),[h,g]=m.useState(),[v,y]=m.useState(!1),[b,w]=m.useState(!1),S=async H=>{try{await i(H.id),e({title:"Event has been deleted",type:"success"}),o(),y(!1)}catch(Q){t(ht(Q))}},k=async()=>{try{await a(),e({title:"History has been cleared",type:"success"}),o(),w(!1)}catch(H){t(ht(H))}},A=or(ml.breakpoints.down("sm")),T=or(ml.breakpoints.down("md")),R=m.useMemo(()=>[{Header:"Created",accessor:"created_at",Cell:({value:H})=>l(TD,{value:H,dateFormat:S1}),sortType:"date",maxWidth:150},{Header:"Username",accessor:"username",minWidth:100,Cell:gs,searchable:!0},{Header:"Authentication",accessor:H=>sRe[H.auth_type]||H.auth_type,width:150,maxWidth:150,Cell:gs,searchable:!0,filterName:"auth"},{Header:"IP address",accessor:"ip",Cell:gs,searchable:!0},{Header:"Success",accessor:"successful",align:"center",Cell:ZAe,filterName:"success",filterParsing:H=>H.toString()},{Header:"Actions",id:"Actions",align:"center",Cell:({row:{original:H}})=>l(tRe,{onDelete:()=>{g(H),y(!0)}}),width:150,disableSortBy:!0},{accessor:"failure_reason",Header:"Failure Reason",searchable:!0}],[]),{data:P,getSearchText:_,getSearchContext:I}=jh(R,p,n),{headerGroups:$,rows:U,prepareRow:M,state:{sortBy:D},setHiddenColumns:K}=Yt.useTable({columns:R,data:P,initialState:d,sortTypes:si,autoResetHiddenColumns:!1,autoResetSortBy:!1,disableSortRemove:!0,disableMultiSort:!0,defaultColumn:{Cell:rr}},Yt.useSortBy,Yt.useFlexLayout);return Ed([{condition:A,columns:["role","seenAt"]},{condition:T,columns:["imageUrl","tokens","createdAt"]}],K,R),m.useEffect(()=>{const H={};H.sort=D[0].id,D[0].desc&&(H.order="desc"),p&&(H.search=p),u(H,{replace:!0}),aRe({id:D[0].id,desc:D[0].desc||!1})},[D,p,u]),x(Or,{isLoading:r,header:l(Dn,{title:`Login history (${U.length})`,actions:x(ve,{children:[l(q,{condition:!T,show:l(vo,{initialValue:p,onChange:f,hasFilters:!0,getSearchContext:I})}),l(q,{condition:U.length>0,show:x(ve,{children:[l(q,{condition:!T,show:l(Dn.Divider,{})}),l(xt,{title:"Download login history",arrow:!0,children:l(Ht,{onClick:s,children:l(tle,{})})}),l(xt,{title:"Clear login history",arrow:!0,children:l(Ht,{onClick:()=>w(!0),children:l(go,{})})})]})})]}),children:l(q,{condition:T,show:l(vo,{initialValue:p,onChange:f,hasFilters:!0,getSearchContext:I})})}),children:[l(Xa,{value:_(p),children:l(b1,{rows:U,headerGroups:$,prepareRow:M})}),l(q,{condition:U.length===0,show:l(q,{condition:(p==null?void 0:p.length)>0,show:x(Kn,{children:["No login events found matching “",p,"”"]}),elseShow:l(Kn,{children:"No login events available."})})}),l(nRe,{event:h,open:v,setOpen:y,onConfirm:S}),l(oRe,{open:b,setOpen:w,onConfirm:k})]})},cRe=()=>{const{hasAccess:e}=m.useContext(yo);return l("div",{children:l(q,{condition:e(fi),show:l(lRe,{}),elseShow:l(uM,{})})})},ch=[{path:"/splash/:splashId",title:"Unleash",component:sbe,type:"protected",menu:{},isStandalone:!0},{path:"/projects/create",parent:"/projects",title:"Create",component:GAe,type:"protected",enterprise:!0,menu:{}},{path:"/projects/:projectId/edit",parent:"/projects",title:":projectId",component:$ye,type:"protected",enterprise:!0,menu:{}},{path:"/projects/:projectId/archived",title:":projectId",parent:"/archive",component:Xge,type:"protected",menu:{}},{path:"/projects/:projectId/features/:featureId/:activeTab/copy",parent:"/projects/:projectId/features/:featureId/:activeTab",title:"Copy",component:c0e,type:"protected",menu:{}},{path:"/projects/:projectId/features/:featureId/edit",parent:"/projects",title:"Edit feature",component:c1e,type:"protected",menu:{}},{path:"/projects/:projectId/features/:featureId/*",parent:"/projects",title:"FeatureView",component:qAe,type:"protected",menu:{}},{path:"/projects/:projectId/create-toggle",parent:"/projects/:projectId/features",title:"Create feature toggle",component:Vye,type:"protected",menu:{}},{path:"/projects/:projectId/features2/:featureId",parent:"/features",title:":featureId",component:fP,type:"protected",menu:{}},{path:"/projects/:projectId/*",parent:"/projects",title:":projectId",component:YAe,flag:Lme,type:"protected",menu:{}},{path:"/projects",title:"Projects",component:Yge,type:"protected",menu:{mobile:!0}},{path:"/features/:activeTab/:featureId",parent:"/features",title:":featureId",component:fP,type:"protected",menu:{}},{path:"/features",title:"Feature toggles",component:nfe,type:"protected",menu:{mobile:!0}},{path:"/playground",title:"Playground",component:Wke,hidden:!1,type:"protected",menu:{mobile:!0}},{path:"/applications/:name",title:":name",parent:"/applications",component:m1e,type:"protected",menu:{}},{path:"/applications",title:"Applications",component:g1e,type:"protected",menu:{mobile:!0,advanced:!0}},{path:"/context/create",parent:"/context",title:"Create",component:ube,type:"protected",menu:{}},{path:"/context/edit/:name",parent:"/context",title:":name",component:aye,type:"protected",menu:{}},{path:"/context",title:"Context fields",component:b1e,type:"protected",menu:{mobile:!0,advanced:!0}},{path:"/strategies/create",title:"Create",parent:"/strategies",component:W0e,type:"protected",menu:{}},{path:"/strategies/:name/edit",title:":name",parent:"/strategies",component:V0e,type:"protected",menu:{}},{path:"/strategies/:name",title:":name",parent:"/strategies",component:Ufe,type:"protected",menu:{}},{path:"/strategies",title:"Strategy types",component:Ehe,type:"protected",menu:{mobile:!0,advanced:!0}},{path:"/environments/create",title:"Environments",component:zve,parent:"/environments",type:"protected",menu:{}},{path:"/environments/:id",title:"Edit",component:Wve,type:"protected",menu:{}},{path:"/environments",title:"Environments",component:rke,type:"protected",flag:Mme,menu:{mobile:!0,advanced:!0}},{path:"/tag-types/create",parent:"/tag-types",title:"Create",component:gye,type:"protected",menu:{}},{path:"/tag-types/edit/:name",parent:"/tag-types",title:":name",component:mye,type:"protected",menu:{}},{path:"/tag-types",title:"Tag types",component:Ahe,type:"protected",menu:{mobile:!0,advanced:!0}},{path:"/addons/create/:providerId",parent:"/addons",title:"Create",component:e0e,type:"protected",menu:{}},{path:"/addons/edit/:addonId",parent:"/addons",title:"Edit",component:t0e,type:"protected",menu:{}},{path:"/addons",title:"Addons",component:Bhe,hidden:!1,type:"protected",menu:{mobile:!0,advanced:!0}},{path:"/segments/create",title:"Segments",component:iTe,hidden:!1,type:"protected",layout:"main",menu:{},flag:Hb},{path:"/segments/edit/:segmentId",title:"Segments",component:lTe,hidden:!1,type:"protected",layout:"main",menu:{},flag:Hb},{path:"/segments",title:"Segments",component:Ske,hidden:!1,type:"protected",menu:{mobile:!0,advanced:!0},flag:Hb},{path:"/history",title:"Event log",component:k0e,type:"protected",menu:{adminSettings:!0}},{path:"/admin/logins",title:"Login history",component:cRe,type:"protected",menu:{adminSettings:!0}},{path:"/archive",title:"Archived toggles",component:Uke,type:"protected",menu:{}},{path:"/admin",title:"Admin",component:XAe,hidden:!1,type:"protected",menu:{}},{path:"/admin/*",title:"Admin",component:KAe,hidden:!1,type:"protected",menu:{}},{path:"/profile/*",title:"Profile",component:VAe,type:"protected",menu:{}},{path:"/login",title:"Log in",component:Nme,type:"unprotected",hidden:!0,menu:{},isStandalone:!0},{path:"/new-user",title:"New user",hidden:!0,component:uge,type:"unprotected",menu:{},isStandalone:!0},{path:"/reset-password",title:"Reset password",hidden:!0,component:fge,type:"unprotected",menu:{},isStandalone:!0},{path:"/forgotten-password",title:"Forgotten password",hidden:!0,component:wge,type:"unprotected",menu:{},isStandalone:!0}],uRe=[{path:"/history",title:"Event log",menu:{adminSettings:!0}},{path:"/admin/logins",title:"Login history",menu:{adminSettings:!0,mode:["enterprise"]}},{path:"/admin/users",title:"Users",menu:{adminSettings:!0}},{path:"/admin/groups",title:"Groups",menu:{adminSettings:!0,mode:["enterprise"]},flag:Bme},{path:"/admin/roles",title:"Project roles",flag:Dme,menu:{adminSettings:!0,mode:["enterprise"]}},{path:"/admin/auth",title:"Single sign-on",menu:{adminSettings:!0}},{path:"/admin/instance",title:"Instance stats",menu:{adminSettings:!0}},{path:"/admin/service-accounts",title:"Service accounts",menu:{adminSettings:!0,mode:["enterprise"]}},{path:"/admin/network/*",title:"Network",menu:{adminSettings:!0,mode:["pro","enterprise"]},configFlag:"networkViewEnabled"},{path:"/admin/maintenance",title:"Maintenance",menu:{adminSettings:!0}},{path:"/admin/cors",title:"CORS origins",flag:"embedProxyFrontend",menu:{adminSettings:!0}},{path:"/admin/admin-invoices",title:"Billing & invoices",menu:{adminSettings:!0,mode:["pro"]}}],dRe=ch.filter(e=>!e.hidden),pRe=()=>{const e=dRe.filter(o=>o.menu.advanced),t=ch.filter(o=>o.menu.adminSettings),n=ch.filter(o=>o.menu.mobile),r={mainNavRoutes:e,adminRoutes:t,mobileRoutes:n};return()=>r},$3=e=>e.map(t=>({path:t.path,flag:t.flag,title:t.title,menu:t.menu,configFlag:t.configFlag})),fRe=pRe(),hRe=(e={})=>{const t=Bt("api/admin/notifications"),{data:n,error:r,mutate:o}=An(t,mRe,e),i=m.useCallback(()=>{o().catch(console.warn)},[o]);return{notifications:n,error:r,loading:!r&&!n,refetchNotifications:i,mutateNotifications:o}},mRe=async e=>await(await fetch(e).then(Rn("Notifications"))).json();var VT={},gRe=En;Object.defineProperty(VT,"__esModule",{value:!0});var GT=VT.default=void 0,vRe=gRe(Tn()),yRe=kn,bRe=(0,vRe.default)((0,yRe.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"}),"Notifications");GT=VT.default=bRe;const wRe=C(Le)(({theme:e})=>({padding:e.spacing(1,1.5,1,3),display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",boxShadow:e.boxShadows.separator})),SRe=({children:e})=>l(ve,{children:x(wRe,{children:[l(se,{fontWeight:"bold",children:"Notifications"}),e]})}),xRe=C(ia)(({theme:e})=>({padding:e.spacing(1,1,3,1)})),CRe=({children:e})=>l(xRe,{"data-testid":"NOTIFICATIONS_LIST",children:e}),ERe=e=>m.createElement("svg",{width:18,height:14,viewBox:"0 0 18 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M0.59 2.00016L2 0.590157L5.41 4.00016L4 5.41016L0.59 2.00016ZM13 11.5002L13 8.00016L7.41 8.00016L2 13.4102L0.59 12.0002L6.59 6.00016L13 6.00016L13 2.50016L17.5 7.00016L13 11.5002Z",fill:"currentColor"})),N3=C(Le,{shouldForwardProp:e=>e!=="readAt"})(({theme:e,readAt:t})=>({padding:e.spacing(.5),marginRight:e.spacing(1.5),backgroundColor:t?e.palette.neutral.light:e.palette.secondary.light,width:"30px",height:"30px",display:"flex",justifyContent:"center",alignItems:"center",borderRadius:`${e.shape.borderRadius}px`,top:3,left:7})),TRe=C(Aee)(({theme:e})=>({position:"relative",cursor:"pointer",padding:e.spacing(2.5,2,3,2),borderRadius:e.shape.borderRadiusMedium,width:"100%","&:after":{content:'""',width:`calc(100% - ${e.spacing(4)})`,height:"1px",position:"absolute",bottom:0,backgroundColor:e.palette.divider}})),kRe=C(Le)(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%"})),ARe=C(Le)(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",margin:e.spacing(1,0,0,5.25)})),RRe=C(se,{shouldForwardProp:e=>e!=="readAt"})(({theme:e,readAt:t})=>({display:"flex",alignItems:"center",fontSize:e.fontSizes.smallBody,fontWeight:t?"normal":"bold",textDecoration:"none",color:"inherit",wordBreak:"break-all"})),_Re=C(se)(({theme:e})=>({fontSize:e.fontSizes.smallerBody,color:e.palette.neutral.main})),PRe=C(Le)(({theme:e})=>({...Ac})),IRe=C(Sd)(({theme:e})=>({width:"18px",height:"18px"})),ORe=C(se)(({theme:e})=>({fontSize:e.fontSizes.smallBody,color:e.palette.neutral.main,marginLeft:e.spacing(1)})),$Re=({notification:e,onNotificationClick:t})=>{const n=gn(),{readAt:r}=e;return l(TRe,{onClick:()=>t(e),children:x(kRe,{children:[x(RRe,{readAt:!!r,children:[(i=>{if(i==="change-request")return l(N3,{readAt:!!r,children:l(ERe,{color:e.readAt?n.palette.neutral.main:n.palette.primary.main,style:{transform:"scale(0.8)"}})});if(i==="toggle")return l(N3,{readAt:!!r,children:l(wle,{sx:a=>({height:"20px",width:"20px",color:r?a.palette.neutral.main:a.palette.primary.main})})})})(e.notificationType)," ",e.message]}),x(ARe,{children:[x(PRe,{children:[l(IRe,{src:e.createdBy.imageUrl||""}),x(ORe,{children:["Created by ",e.createdBy.username]})]}),l(_Re,{children:l(x1,{date:new Date(e.createdAt)})})]})]})})},NRe=C(Le)(()=>({display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",minHeight:"150px"})),LRe=C(GT)(({theme:e})=>({height:"30px",width:"30px",color:e.palette.neutral.main,marginBottom:e.spacing(1)})),MRe=({text:e})=>x(NRe,{children:[l(LRe,{}),l(se,{color:"neutral.main",children:e})]}),DRe=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Yn({propagateErrors:!0});return{loading:r,errors:n,markAsRead:async i=>{const s=t("api/admin/notifications/read",{method:"POST",body:JSON.stringify(i)});try{await e(s.caller,s.id)}catch(c){throw c}}}},BRe=C(Le)(({theme:e})=>({display:"flex",gap:e.spacing(1),marginTop:e.spacing(.5)})),FRe=({id:e,localStorageKey:t,eventName:n})=>{var d;const{uiConfig:r}=Ot(),{value:o,setValue:i}=Rc(`${r.baseUriPath}:${t}:v1:${e}`,{}),[a,s]=m.useState(o.value),{trackEvent:c}=Dr();if(!((d=r==null?void 0:r.flags)!=null&&d.T)||a)return null;const u=p=>{s(p),i({value:p}),c(n,{props:{eventType:e,wasHelpful:p==="yes"}})};return x(wr,{elevation:0,sx:{background:p=>p.palette.neutral.light,padding:p=>p.spacing(1.5,2),marginTop:p=>p.spacing(1.5)},children:["Was this information useful to you?",x(BRe,{children:[l(Ve,{size:"small",variant:a==="yes"?"contained":"outlined",sx:{padding:0},onClick:()=>u("yes"),disabled:!!a,children:"Yes"}),l(Ve,{size:"small",variant:a==="no"?"contained":"outlined",sx:{padding:0},onClick:()=>u("no"),disabled:!!a,children:"No"})]})]})},zRe=C(Le)(()=>({position:"relative"})),jRe=C(Le)(({theme:e})=>({backgroundColor:e.palette.background.elevation1,display:"flex",justifyContent:"center"})),URe=C(se)(({theme:e})=>({fontWeight:"bold",fontSize:e.fontSizes.smallBody,color:e.palette.primary.main,textAlign:"center"})),WRe=C(wr)(({theme:e})=>({width:"420px",boxShadow:e.boxShadows.popup,borderRadius:`${e.shape.borderRadiusLarge}px`,position:"absolute",right:-100,top:60,maxHeight:"80vh",overflowY:"auto"})),HRe=C(Le)(({theme:e})=>({backgroundColor:e.palette.primary.main,borderRadius:"100%",width:"7px",height:"7px",position:"absolute",top:7,right:4})),VRe=C(Le)(()=>({...Ac})),GRe=C(se)(({theme:e})=>({fontSize:e.fontSizes.smallBody})),qRe=C(Ht)(({theme:e})=>({"&:focus-visible":{outlineStyle:"solid",outlineWidth:2,outlineColor:e.palette.primary.main,borderRadius:"100%"}})),KRe=()=>{const[e,t]=m.useState(!1),{notifications:n,refetchNotifications:r}=hRe({refreshInterval:15e3}),o=gt(),{markAsRead:i}=DRe(),{uiConfig:a}=Ot(),{trackEvent:s}=Dr(),[c,u]=m.useState(!1),d=async w=>{var S;w.link&&o(w.link),(S=a==null?void 0:a.flags)!=null&&S.T&&s("notifications",{props:{eventType:w.notificationType}}),t(!1);try{await i({notifications:[w.id]}),r()}catch(k){console.error("Error marking notification as read: ",k)}},p=async()=>{try{n&&n.length>0&&(await i({notifications:n.map(w=>w.id)}),r())}catch(w){console.error("Error marking all notification as read: ",w)}},f=w=>{w.key==="Escape"&&t(!1)},h=n==null?void 0:n.filter(w=>w.readAt===null),g=!!(h&&h.length>0),v=w=>c?!w.readAt:!0,y=n==null?void 0:n.filter(v).map(w=>l($Re,{notification:w,onNotificationClick:d},w.id)),b=!!(n&&n.length>0&&!c);return x(zRe,{children:[x(qRe,{onClick:()=>t(!e),"data-testid":"NOTIFICATIONS_BUTTON",disableFocusRipple:!0,children:[l(q,{condition:g,show:l(HRe,{})}),l(GT,{})]}),l(q,{condition:e,show:l(k6,{onClickAway:()=>t(!1),children:x(WRe,{className:"dropdown-outline",onKeyDown:f,"data-testid":"NOTIFICATIONS_MODAL",children:[l(SRe,{children:x(VRe,{children:[l(GRe,{children:"Show only unread"}),l(Ya,{onClick:()=>u(!c),checked:c})]})}),l(q,{condition:g,show:l(jRe,{"data-testid":"UNREAD_NOTIFICATIONS",children:l(Ve,{onClick:p,children:x(URe,{children:["Mark all as read (",h==null?void 0:h.length,")"]})})})})," ",l(q,{condition:(y==null?void 0:y.length)===0,show:l(MRe,{text:c?"No unread notifications":"No new notifications"})}),l(CRe,{children:y}),l(q,{condition:b,show:x(ve,{children:[l(FRe,{eventName:"notifications",id:"useful",localStorageKey:"NotificationsUsefulPrompt"}),l("br",{})]})})]})})})]})},L3=C(VK)(({theme:e})=>({backgroundColor:e.palette.background.paper,padding:e.spacing(1),boxShadow:"none",position:"relative",zIndex:300})),M3=C(mJ)(({theme:e})=>({display:"flex",alignItems:"center",maxWidth:1280,"&&&":{padding:0}})),D3=C("div")({marginLeft:"auto",display:"flex",alignItems:"center"}),YRe=C("nav")({display:"flex",alignItems:"center",flexGrow:1}),XRe=C(vse)({width:"150px"}),JRe=C(gse)({width:"150px"}),QRe=C("div")(({theme:e})=>({display:"flex",justifyContent:"center",marginLeft:e.spacing(3),"& a":{textDecoration:"none",color:"inherit",marginRight:e.spacing(3),display:"flex",alignItems:"center"}})),ZRe=C("button")(({theme:e})=>({...ji(e),border:"none",background:"transparent",height:"100%",display:"flex",fontSize:e.fontSizes.bodySize,fontFamily:e.typography.fontFamily,alignItems:"center",color:"inherit",cursor:"pointer"})),B3=e=>({color:e.palette.neutral.main}),ug=C(hn)(({theme:e})=>ji(e)),e_e=C(Ht)(({theme:e})=>({...ji(e),borderRadius:100})),t_e=()=>{const{onSetThemeMode:e,themeMode:t}=_N(),n=gn(),r=gl(),o=gl(),[i,a]=m.useState(null),[s,c]=m.useState(null),[u,d]=m.useState(!1),{permissions:p}=T1(),{uiConfig:f,isOss:h,isPro:g,isEnterprise:v}=Ot(),y=or(n.breakpoints.down("md")),[b,w]=m.useState(!1),S=()=>w(_=>!_),k=()=>a(null),A=()=>c(null);m.useEffect(()=>{(p==null?void 0:p.find(I=>I.permission===fi))&&d(!0)},[p]);const T=fRe(),R=_=>{const{mode:I}=_.menu;return!I||I.includes("pro")&&g()||I.includes("enterprise")&&v()},P={mainNavRoutes:$3(T.mainNavRoutes).concat([{path:"/admin/api",title:"API access",menu:{}}]).filter(Kb(f)),mobileRoutes:$3(T.mobileRoutes).filter(Kb(f)),adminRoutes:uRe.filter(Kb(f)).filter(R).map(_=>({..._,path:_.path.replace("/*","")}))};return y?l(L3,{position:"static",children:x(M3,{children:[l(xt,{title:"Menu",arrow:!0,children:l(Ht,{sx:{color:_=>_.palette.text.primary},onClick:S,"aria-controls":"header-drawer","aria-expanded":b,size:"large",children:l(QN,{})})}),l(Gse,{title:f.name,flags:f.flags,links:f.links,open:b,toggleDrawer:S,admin:u,routes:P}),l(D3,{children:l(g5,{})})]})}):l(L3,{position:"static",children:x(M3,{children:[l(ug,{to:"/",sx:Ac,"aria-label":"Home",children:l(Lh,{darkmode:l(XRe,{"aria-label":"Unleash logo"}),lightmode:l(JRe,{"aria-label":"Unleash logo"})})}),x(YRe,{children:[x(QRe,{children:[l(ug,{to:"/projects",children:"Projects"}),l(ug,{to:"/features",children:"Feature toggles"}),l(ug,{to:"/playground",children:"Playground"}),x(ZRe,{onClick:_=>c(_.currentTarget),"aria-controls":s?o:void 0,"aria-expanded":!!s,children:["Configure",l(rx,{sx:B3})]}),l(C5,{id:o,options:P.mainNavRoutes,anchorEl:s,handleClose:A,style:{top:10}})]}),x(D3,{children:[l(xt,{title:t==="dark"?"Switch to light theme":"Switch to dark theme",arrow:!0,children:l(Ht,{onClick:e,sx:ji,children:l(q,{condition:t==="dark",show:l(Zse,{}),elseShow:l(ple,{})})})})," ",l(q,{condition:!h(),show:l(KRe,{})}),l(xt,{title:"Documentation",arrow:!0,children:l(Ht,{href:"https://docs.getunleash.io/",target:"_blank",rel:"noopener noreferrer",size:"large",disableRipple:!0,sx:ji,children:l(dE,{})})}),l(q,{condition:u,show:l(xt,{title:"Settings",arrow:!0,children:x(e_e,{onClick:_=>a(_.currentTarget),"aria-controls":i?r:void 0,"aria-expanded":!!i,size:"large",disableRipple:!0,children:[l(ZN,{}),l(rx,{sx:B3})]})})}),l(C5,{id:r,options:P.adminRoutes,anchorEl:i,handleClose:k,style:{top:5,left:-100}})," ",l(g5,{})]})]})]})})},n_e=e=>{var n;const t=(n=e.versionInfo)==null?void 0:n.current;return t!=null&&t.enterprise?`${e.name} ${t.enterprise}`:t!=null&&t.oss?`${e.name} ${t.oss}`:`${e.name} ${e.version}`},r_e=e=>{var r,o;const t=(r=e.versionInfo)==null?void 0:r.latest,n=(o=e.versionInfo)==null?void 0:o.isLatest;if(t!=null&&t.enterprise&&!n)return`Upgrade available - Latest Enterprise release: ${t.enterprise}`;if(t!=null&&t.oss&&!n)return`Upgrade available - Latest OSS release: ${t.oss}`},Dg=C("h2")(({theme:e})=>({all:"unset",display:"block",margin:e.spacing(2,0),fontSize:e.fontSizes.bodySize,fontWeight:e.fontWeight.bold})),o_e=e=>{var i;const t=(i=e.uiConfig.versionInfo)==null?void 0:i.instanceId,n=n_e(e.uiConfig),r=e.uiConfig.environment,o=r_e(e.uiConfig);return x("section",{title:"API details",children:[x(Dg,{children:[n," ",l(q,{condition:!!r,show:x("small",{children:["(",r,")"]})})]}),l(q,{condition:!!o,show:x("small",{children:[o,l("br",{})]})}),l("br",{}),l("small",{children:e.uiConfig.slogan}),l("br",{}),l(q,{condition:!!t,show:l("small",{children:`${t}`})})]})},i_e=C("footer")(({theme:e})=>({padding:e.spacing(4,8),width:"100%",flexGrow:1,zIndex:100,backgroundColor:e.palette.background.paper})),gw=C(ia)({padding:0,margin:0}),cr=C(_a)(({theme:e})=>({padding:0,margin:0,"& a":{...ji(e),textDecoration:"none",color:e.palette.text.primary,"&:hover":{textDecoration:"underline"}}})),a_e=()=>{const{uiConfig:e}=Ot();return l(i_e,{children:x(Wn,{container:!0,justifyContent:"center",spacing:10,style:{marginBottom:0},children:[l(Wn,{item:!0,md:4,xs:12,children:l(o_e,{uiConfig:e})}),l(Wn,{item:!0,xs:12,md:"auto",children:x(Wn,{container:!0,spacing:7,direction:"row",children:[l(Wn,{item:!0,children:x("section",{title:"Unleash SDK",children:[l(Dg,{children:"Server SDKs"}),x(gw,{dense:!0,children:[l(cr,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/sdks/node",target:"_blank",rel:"noreferrer",children:"Node.js"})})}),l(cr,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/sdks/java",target:"_blank",rel:"noreferrer",children:"Java"})})}),l(cr,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/sdks/go",target:"_blank",rel:"noreferrer",children:"Go"})})})," ",l(cr,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/sdks/rust",target:"_blank",rel:"noreferrer",children:"Rust"})})})," ",l(cr,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/sdks/ruby",target:"_blank",rel:"noreferrer",children:"Ruby"})})})," ",l(cr,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/sdks/python",target:"_blank",rel:"noreferrer",children:"Python"})})}),l(cr,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/sdks/dotnet",target:"_blank",rel:"noreferrer",children:".NET"})})}),l(cr,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/sdks/php",target:"_blank",rel:"noreferrer",children:"PHP"})})}),l(cr,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/sdks",target:"_blank",rel:"noreferrer",children:"All SDKs"})})})]})]})}),l(Wn,{item:!0,children:x("section",{title:"Unleash SDK",children:[l(Dg,{children:"Frontend SDKs"}),x(gw,{dense:!0,children:[l(cr,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/unleash-proxy",target:"_blank",rel:"noreferrer",children:"Unleash Proxy"})})}),l(cr,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/sdks/javascript-browser",target:"_blank",rel:"noreferrer",children:"JavaScript"})})}),l(cr,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/sdks/react",target:"_blank",rel:"noreferrer",children:"React"})})}),l(cr,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/sdks/next-js",target:"_blank",rel:"noreferrer",children:"Next.js"})})}),l(cr,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/sdks/vue",target:"_blank",rel:"noreferrer",children:"Vue"})})}),l(cr,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/sdks/ios-proxy",target:"_blank",rel:"noreferrer",children:"iOS"})})}),l(cr,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/sdks/android-proxy",target:"_blank",rel:"noreferrer",children:"Android"})})}),l(cr,{children:l(rn,{primary:l("a",{href:"https://docs.getunleash.io/reference/sdks/flutter",target:"_blank",rel:"noreferrer",children:"Flutter"})})})]})]})}),l(Wn,{item:!0,children:x("section",{children:[l(Dg,{children:"About"}),x(gw,{dense:!0,children:[l(cr,{children:l(rn,{primary:l("a",{href:"https://www.getunleash.io/",target:"_blank",rel:"noreferrer",children:"getunleash.io"})})}),l(cr,{children:l(rn,{primary:l("a",{href:"https://twitter.com/getunleash",target:"_blank",rel:"noreferrer",children:"Twitter"})})}),l(cr,{children:l(rn,{primary:l("a",{href:"https://www.linkedin.com/company/getunleash",target:"_blank",rel:"noreferrer",children:"LinkedIn"})})}),l(cr,{children:l(rn,{primary:l("a",{href:"https://github.com/Unleash/unleash",target:"_blank",rel:"noreferrer",children:"GitHub"})})}),l(cr,{children:l(rn,{primary:l("a",{href:"https://slack.unleash.run",target:"_blank",rel:"noreferrer",children:"Slack Community"})})})]})]})})]})})]})})},s_e=C(tn)(({theme:e})=>({marginBottom:e.spacing(2)})),l_e=C(se)(({theme:e})=>({maxWidth:"800px"})),c_e=C("a")(({theme:e})=>({display:"block",marginTop:e.spacing(1),width:"100px"})),u_e=e=>!(!e||localStorage&&localStorage.getItem(e)),d_e=({toast:e})=>{const[t,n]=m.useState(!1);m.useEffect(()=>{n(u_e((e==null?void 0:e.id)||""))},[e==null?void 0:e.id]);const r=()=>{localStorage&&localStorage.setItem((e==null?void 0:e.id)||"","seen"),n(!1)};return e?l(q,{condition:t,show:x(s_e,{severity:e.severity,onClose:r,children:[l(l_e,{variant:"body2",children:e.message}),l(c_e,{href:e.link,target:"_blank",rel:"noopener noreferrer",children:"View more"})]})}):null},p_e=C("div")(({theme:e})=>({height:e.spacing(2.5),margin:e.spacing(2,0)})),f_e=C(yX)({"& > ol":{flexWrap:"nowrap","& > li:last-child":{minWidth:0}}}),F3=C("p")(TN),h_e=C(hn)(({theme:e})=>({"& > *":{maxWidth:e.spacing(25)}})),m_e=()=>{const{isAdmin:e}=m.useContext(yo),t=Ho(),n=t.pathname.split("/").filter(r=>r).filter(r=>r!=="create"&&r!=="edit"&&r!=="view"&&r!=="variants"&&r!=="logs"&&r!=="metrics"&&r!=="copy"&&r!=="features"&&r!=="features2"&&r!=="create-toggle"&&r!=="settings"&&r!=="profile");return l(p_e,{children:l(q,{condition:t.pathname.includes("admin")&&e||!t.pathname.includes("admin"),show:l(q,{condition:n.length>1,show:l(f_e,{"aria-label":"Breadcrumbs",children:n.map((r,o)=>{if(o===n.length-1)return l(F3,{children:r},r);let a="/";return n.forEach((s,c)=>{c!==o&&c<o?a+=s+"/":c===o&&(a+=s)}),l(h_e,{to:a,children:l(F3,{children:r})},r)})})})})})},z3="/static/texture-c29e66c0.png",AD="skip-nav-target-id",g_e=()=>l("div",{id:AD}),v_e=C("a")(({theme:e})=>({position:"fixed",overflow:"hidden",zIndex:1e3,top:e.spacing(2.25),left:e.spacing(2.25),padding:e.spacing(1,2),whiteSpace:"nowrap",textDecoration:"none",background:e.palette.background.alternative,color:e.palette.common.white,borderRadius:e.shape.borderRadius,fontSize:e.fontSizes.smallBody,...ji(e),[e.breakpoints.down(960)]:{top:"0.8rem",left:"0.8rem"},"&:not(:focus):not(:active)":{clip:"rect(0 0 0 0)",clipPath:"inset(50%)",zIndex:-1,width:1,height:1,margin:-1,padding:0}})),y_e=()=>x(v_e,{href:`#${AD}`,children:["Skip to content ",l("span",{"aria-hidden":!0,children:"↓"})]}),b_e=({featureName:e,projectId:t,conflict:n,onNavigate:r,children:o})=>x(G6,{elevation:0,sx:i=>({marginTop:i.spacing(2),overflow:"hidden"}),children:[x(Le,{sx:i=>({backgroundColor:i.palette.neutral.light,borderRadius:a=>`${a.shape.borderRadiusLarge}px ${a.shape.borderRadiusLarge}px 0 0`,border:"1px solid",borderColor:a=>n?a.palette.warning.border:a.palette.divider,borderBottom:"none",overflow:"hidden"}),children:[l(q,{condition:!!n,show:x(tn,{severity:"warning",sx:{px:3,mb:2,"&.MuiAlert-standardWarning":{borderStyle:"none"}},children:[l("strong",{children:"Conflict!"})," ",n,"."]})}),x(Le,{sx:{display:"flex",pt:n?0:2,pb:2,px:3},children:[l(se,{children:"Feature toggle name: "}),l(Vr,{component:hn,to:`/projects/${t}/features/${e}`,color:"primary",underline:"hover",sx:{marginLeft:1,"& :hover":{textDecoration:"underline"}},onClick:r,children:l("strong",{children:e})})]})]}),l(Le,{children:o})]});var qT={},w_e=En;Object.defineProperty(qT,"__esModule",{value:!0});var RD=qT.default=void 0,S_e=w_e(Tn()),x_e=kn,C_e=(0,S_e.default)((0,x_e.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8z"}),"Block");RD=qT.default=C_e;var KT={},E_e=En;Object.defineProperty(KT,"__esModule",{value:!0});var _D=KT.default=void 0,T_e=E_e(Tn()),k_e=kn,A_e=(0,T_e.default)((0,k_e.jsx)("path",{d:"m19.07 4.93-1.41 1.41C19.1 7.79 20 9.79 20 12c0 4.42-3.58 8-8 8s-8-3.58-8-8c0-4.08 3.05-7.44 7-7.93v2.02C8.16 6.57 6 9.03 6 12c0 3.31 2.69 6 6 6s6-2.69 6-6c0-1.66-.67-3.16-1.76-4.24l-1.41 1.41C15.55 9.9 16 10.9 16 12c0 2.21-1.79 4-4 4s-4-1.79-4-4c0-1.86 1.28-3.41 3-3.86v2.14c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2s2-.9 2-2c0-.74-.4-1.38-1-1.72V2h-1C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-2.76-1.12-5.26-2.93-7.07z"}),"TrackChanges");_D=KT.default=A_e;var R_e=200,YT="__lodash_hash_undefined__",__e=1/0,PD=9007199254740991,P_e="[object Arguments]",I_e="[object Function]",O_e="[object GeneratorFunction]",$_e="[object Symbol]",N_e=/[\\^$.*+?()[\]{}|]/g,L_e=/^\[object .+?Constructor\]$/,M_e=/^(?:0|[1-9]\d*)$/,D_e=typeof Ci=="object"&&Ci&&Ci.Object===Object&&Ci,B_e=typeof self=="object"&&self&&self.Object===Object&&self,XT=D_e||B_e||Function("return this")();function F_e(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function z_e(e,t){var n=e?e.length:0;return!!n&&W_e(e,t,0)>-1}function j_e(e,t,n){for(var r=-1,o=e?e.length:0;++r<o;)if(n(t,e[r]))return!0;return!1}function ID(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function JT(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function U_e(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function W_e(e,t,n){if(t!==t)return U_e(e,H_e,n);for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}function H_e(e){return e!==e}function V_e(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function G_e(e){return function(t){return e(t)}}function q_e(e,t){return e.has(t)}function K_e(e,t){return e==null?void 0:e[t]}function Y_e(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function OD(e,t){return function(n){return e(t(n))}}var X_e=Array.prototype,J_e=Function.prototype,J1=Object.prototype,vw=XT["__core-js_shared__"],j3=function(){var e=/[^.]+$/.exec(vw&&vw.keys&&vw.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),$D=J_e.toString,Nd=J1.hasOwnProperty,QT=J1.toString,Q_e=RegExp("^"+$D.call(Nd).replace(N_e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),U3=XT.Symbol,Z_e=OD(Object.getPrototypeOf,Object),e5e=J1.propertyIsEnumerable,t5e=X_e.splice,W3=U3?U3.isConcatSpreadable:void 0,Px=Object.getOwnPropertySymbols,H3=Math.max,n5e=LD(XT,"Map"),uh=LD(Object,"create");function yc(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function r5e(){this.__data__=uh?uh(null):{}}function o5e(e){return this.has(e)&&delete this.__data__[e]}function i5e(e){var t=this.__data__;if(uh){var n=t[e];return n===YT?void 0:n}return Nd.call(t,e)?t[e]:void 0}function a5e(e){var t=this.__data__;return uh?t[e]!==void 0:Nd.call(t,e)}function s5e(e,t){var n=this.__data__;return n[e]=uh&&t===void 0?YT:t,this}yc.prototype.clear=r5e;yc.prototype.delete=o5e;yc.prototype.get=i5e;yc.prototype.has=a5e;yc.prototype.set=s5e;function Ld(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function l5e(){this.__data__=[]}function c5e(e){var t=this.__data__,n=Q1(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():t5e.call(t,n,1),!0}function u5e(e){var t=this.__data__,n=Q1(t,e);return n<0?void 0:t[n][1]}function d5e(e){return Q1(this.__data__,e)>-1}function p5e(e,t){var n=this.__data__,r=Q1(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Ld.prototype.clear=l5e;Ld.prototype.delete=c5e;Ld.prototype.get=u5e;Ld.prototype.has=d5e;Ld.prototype.set=p5e;function Md(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function f5e(){this.__data__={hash:new yc,map:new(n5e||Ld),string:new yc}}function h5e(e){return Z1(this,e).delete(e)}function m5e(e){return Z1(this,e).get(e)}function g5e(e){return Z1(this,e).has(e)}function v5e(e,t){return Z1(this,e).set(e,t),this}Md.prototype.clear=f5e;Md.prototype.delete=h5e;Md.prototype.get=m5e;Md.prototype.has=g5e;Md.prototype.set=v5e;function Uv(e){var t=-1,n=e?e.length:0;for(this.__data__=new Md;++t<n;)this.add(e[t])}function y5e(e){return this.__data__.set(e,YT),this}function b5e(e){return this.__data__.has(e)}Uv.prototype.add=Uv.prototype.push=y5e;Uv.prototype.has=b5e;function w5e(e,t){var n=ZT(e)||MD(e)?V_e(e.length,String):[],r=n.length,o=!!r;for(var i in e)(t||Nd.call(e,i))&&!(o&&(i=="length"||O5e(i,r)))&&n.push(i);return n}function Q1(e,t){for(var n=e.length;n--;)if(F5e(e[n][0],t))return n;return-1}function S5e(e,t,n,r){var o=-1,i=z_e,a=!0,s=e.length,c=[],u=t.length;if(!s)return c;n&&(t=ID(t,G_e(n))),r?(i=j_e,a=!1):t.length>=R_e&&(i=q_e,a=!1,t=new Uv(t));e:for(;++o<s;){var d=e[o],p=n?n(d):d;if(d=r||d!==0?d:0,a&&p===p){for(var f=u;f--;)if(t[f]===p)continue e;c.push(d)}else i(t,p,r)||c.push(d)}return c}function ND(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=I5e),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?ND(s,t-1,n,r,o):JT(o,s):r||(o[o.length]=s)}return o}function x5e(e,t,n){var r=t(e);return ZT(e)?r:JT(r,n(e))}function C5e(e){if(!ek(e)||N5e(e))return!1;var t=BD(e)||Y_e(e)?Q_e:L_e;return t.test(B5e(e))}function E5e(e){if(!ek(e))return M5e(e);var t=L5e(e),n=[];for(var r in e)r=="constructor"&&(t||!Nd.call(e,r))||n.push(r);return n}function T5e(e,t){return e=Object(e),k5e(e,t,function(n,r){return r in e})}function k5e(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=e[a];n(s,a)&&(i[a]=s)}return i}function A5e(e,t){return t=H3(t===void 0?e.length-1:t,0),function(){for(var n=arguments,r=-1,o=H3(n.length-t,0),i=Array(o);++r<o;)i[r]=n[t+r];r=-1;for(var a=Array(t+1);++r<t;)a[r]=n[r];return a[t]=i,F_e(e,this,a)}}function R5e(e){return x5e(e,W5e,P5e)}function Z1(e,t){var n=e.__data__;return $5e(t)?n[typeof t=="string"?"string":"hash"]:n.map}function LD(e,t){var n=K_e(e,t);return C5e(n)?n:void 0}var _5e=Px?OD(Px,Object):zD,P5e=Px?function(e){for(var t=[];e;)JT(t,_5e(e)),e=Z_e(e);return t}:zD;function I5e(e){return ZT(e)||MD(e)||!!(W3&&e&&e[W3])}function O5e(e,t){return t=t??PD,!!t&&(typeof e=="number"||M_e.test(e))&&e>-1&&e%1==0&&e<t}function $5e(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function N5e(e){return!!j3&&j3 in e}function L5e(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||J1;return e===n}function M5e(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}function D5e(e){if(typeof e=="string"||U5e(e))return e;var t=e+"";return t=="0"&&1/e==-__e?"-0":t}function B5e(e){if(e!=null){try{return $D.call(e)}catch{}try{return e+""}catch{}}return""}function F5e(e,t){return e===t||e!==e&&t!==t}function MD(e){return z5e(e)&&Nd.call(e,"callee")&&(!e5e.call(e,"callee")||QT.call(e)==P_e)}var ZT=Array.isArray;function DD(e){return e!=null&&j5e(e.length)&&!BD(e)}function z5e(e){return FD(e)&&DD(e)}function BD(e){var t=ek(e)?QT.call(e):"";return t==I_e||t==O_e}function j5e(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=PD}function ek(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function FD(e){return!!e&&typeof e=="object"}function U5e(e){return typeof e=="symbol"||FD(e)&&QT.call(e)==$_e}function W5e(e){return DD(e)?w5e(e,!0):E5e(e)}var H5e=A5e(function(e,t){return e==null?{}:(t=ID(ND(t,1),D5e),T5e(e,S5e(R5e(e),t)))});function zD(){return[]}var V5e=H5e;const G5e=qr(V5e),q5e=C("div")(({theme:e})=>({overflowX:"auto","& code":{wordWrap:"break-word",whiteSpace:"pre-wrap",fontFamily:"monospace",lineHeight:1.5,fontSize:e.fontSizes.smallBody}})),yw=({change:e,currentStrategy:t})=>{const n=e.action==="deleteStrategy"?void 0:e.payload;return l(q5e,{children:l(D1,{entry:{preData:G5e(t,"sortOrder"),data:n}})})},K5e=C("div")(({theme:e})=>({display:"grid",gridAutoFlow:"column",gridTemplateColumns:"auto 1fr",gap:e.spacing(1),alignItems:"center"})),bw=C("div")(()=>({...TN,maxWidth:500})),ww=({change:e,previousTitle:t,children:n})=>x(K5e,{children:[l(dhe,{strategyName:e.payload.name}),x(bw,{children:[l(q,{condition:!!(t&&t!==e.payload.title||!t&&e.payload.title),show:x(bw,{children:[l(se,{component:"s",color:"text.secondary",children:t||yl(e.payload.name)})," "]})}),l(bw,{children:l(Uh,{tooltip:n,tooltipProps:{maxWidth:500,maxHeight:600},children:l(se,{component:"span",children:e.payload.title||yl(e.payload.name)})})})]})]}),V3=({percentage:e,size:t="4rem"})=>{const n=gn(),r={display:"block",borderRadius:"100%",transform:"rotate(-90deg)",height:t,width:t,background:n.palette.background.elevation2},o=100/(2*Math.PI),i=2*o;return l("svg",{viewBox:`0 0 ${i} ${i}`,style:r,"aria-hidden":!0,children:l("circle",{r:o,cx:o,cy:o,fill:"none",stroke:n.palette.primary.light,strokeWidth:i,strokeDasharray:`${e} 100`})})},Y5e=C("div")(({theme:e})=>({width:"100%",padding:e.spacing(2,3),borderRadius:e.shape.borderRadiusMedium,border:`1px solid ${e.palette.divider}`})),X5e=C("p")(({theme:e})=>({display:"inline",margin:e.spacing(.5,0),maxWidth:"95%",textAlign:"center",wordBreak:"break-word"})),J5e=C(Ts)(({theme:e})=>({margin:e.spacing(.5)})),Sw=({value:e,text:t})=>l(Y5e,{children:l(q,{condition:e.length===0,show:x("p",{children:["No ",t,"s added yet."]}),elseShow:x("div",{children:[x(X5e,{children:[e.length," ",e.length>1?`${t}s`:t," will get access."]}),e.map(n=>l(J5e,{label:l(Ca,{maxWidth:"300",text:n,maxLength:50})},n))]})})}),Q5e=({segments:e})=>!e||e.length===0?null:l(ve,{children:e.map((t,n)=>x(m.Fragment,{children:[l(q,{condition:n>0,show:l(DT,{text:"AND"})}),l(nD,{segment:t})]},t.id))}),G3=()=>l(Le,{sx:{px:3,color:"text.disabled"},children:"This strategy does not have constraints or parameters."}),Bl=C(Le)(({theme:e})=>({padding:e.spacing(2,3),border:`1px solid ${e.palette.divider}`,borderRadius:e.shape.borderRadiusMedium})),xw=C("span")(({theme:e})=>({color:e.palette.neutral.main})),q3=({strategy:e})=>{const{parameters:t,constraints:n=[]}=e,{strategies:r}=Ad(),{uiConfig:o}=Ot(),{segments:i}=_l(),a=i==null?void 0:i.filter(p=>{var f;return(f=e.segments)==null?void 0:f.includes(p.id)}),s=r.find(p=>p.name===e.name),c=m.useMemo(()=>!t||s!=null&&s.editable?null:Object.keys(t).map(p=>{switch(p){case"rollout":case"Rollout":const f=ff(t[p]);return x(Bl,{sx:{display:"flex",alignItems:"center"},children:[l(Le,{sx:{mr:2},children:l(V3,{percentage:f,size:"2rem"})}),x("div",{children:[x(Zt,{color:"success",children:[f,"%"]})," of your base"," ",n.length>0?"who match constraints":""," ","is included."]})]});case"userIds":case"UserIds":const h=Ks(t[p]);return l(Sw,{value:h,text:"user"},p);case"hostNames":case"HostNames":const g=Ks(t[p]);return l(Sw,{value:g,text:"host"},p);case"IPs":const v=Ks(t[p]);return l(Sw,{value:v,text:"IP"},p);case"stickiness":case"groupId":return null;default:return null}}),[t,s,n]),u=m.useMemo(()=>{if(!t||!(s!=null&&s.editable))return null;const p=l(xw,{children:" is set to "});return s==null?void 0:s.parameters.map(f=>{const{type:h,name:g}={...f};if(!h||!g||t[g]===void 0)return null;const v=l(Ca,{maxLength:15,maxWidth:"150",text:g});switch(f==null?void 0:f.type){case"list":const y=Ks(t[g]);return y.length>0?x(Bl,{children:[v," ",x(xw,{children:["has ",y.length," ",y.length>1?"items":"item",":"," ",y.map(k=>l(Ts,{label:l(Ca,{maxWidth:"300",text:k,maxLength:50}),sx:{mr:.5}},k))]})]}):null;case"percentage":const b=ff(t[g]);return t[g]!==""?x(Bl,{sx:{display:"flex",alignItems:"center"},children:[l(Le,{sx:{mr:2},children:l(V3,{percentage:b,size:"2rem"})}),x("div",{children:[v,p,x(Zt,{color:"success",children:[b,"%"]})]})]}):null;case"boolean":return t[g]==="true"||t[g]==="false"?x(Bl,{children:[l(Ca,{maxLength:15,maxWidth:"150",text:g}),p,l(Zt,{color:t[g]==="true"?"success":"error",children:t[g]})]}):null;case"string":const w=ol(t[g]);return typeof t[g]<"u"?x(Bl,{children:[v,l(q,{condition:w==="",show:l(xw,{children:" is an empty string"}),elseShow:x(ve,{children:[p,l(Ca,{maxWidth:"300",text:w,maxLength:50})]})})]}):null;case"number":const S=ff(t[g]);return t[g]!==""&&S!==void 0?x(Bl,{children:[v,p,l(Ca,{maxWidth:"300",text:String(S),maxLength:50})]}):null;case"default":return null}return null})},[t,s]);if(!t)return l(G3,{});const d=[!!o.flags.SE&&a&&a.length>0&&l(Q5e,{segments:a}),n.length>0&&l(K1,{constraints:n,showLabel:!1}),e.name==="default"&&l(ve,{children:x(Bl,{sx:{width:"100%"},children:["The standard strategy is ",l(Zt,{color:"success",children:"ON"})," ","for all users."]})}),...c??[],...u??[]].filter(Boolean);return l(q,{condition:d.length>0,show:l(ve,{children:d.map((p,f)=>x(m.Fragment,{children:[l(q,{condition:f>0,show:l(DT,{text:"AND"})}),p]},f))}),elseShow:l(G3,{})})},Z5e=(e,t,n,r)=>{var a,s;return(s=(a=Ss(t,n).feature)==null?void 0:a.environments.find(c=>c.name===r))==null?void 0:s.strategies.find(c=>"id"in e.payload&&c.id===e.payload.id)},jD=C(Le)({display:"flex",justifyContent:"space-between",alignItems:"center"}),K3=C(Le)(({theme:e})=>({display:"grid",gridTemplateColumns:"auto 40px",gap:e.spacing(1),alignItems:"center",marginBottom:e.spacing(2),width:"100%"})),Cw=C(Le)(({theme:e})=>({display:"grid",gridTemplateColumns:"150px auto",gridAutoFlow:"column",alignItems:"center",flexGrow:1,gap:e.spacing(1)})),ePe=e=>typeof e=="object"&&e!==null&&"name"in e,Y3=({show:e=!0,disabled:t})=>e?t?l(xt,{title:"This strategy will not be taken into account when evaluating feature toggle.",arrow:!0,sx:{cursor:"pointer"},children:l(Zt,{color:"disabled",icon:l(RD,{}),children:"Disabled"})}):l(xt,{title:"This was disabled before and with this change it will be taken into account when evaluating feature toggle.",arrow:!0,sx:{cursor:"pointer"},children:l(Zt,{color:"success",icon:l(_D,{}),children:"Enabled"})}):null,tPe=({wasDisabled:e=!1,willBeDisabled:t=!1})=>e&&t?l(se,{color:"action.disabled",children:"Editing strategy:"}):!e&&t?l(se,{color:"error.dark",children:"Editing strategy:"}):e&&!t?l(se,{color:"success.dark",children:"Editing strategy:"}):l(se,{children:"Editing strategy:"}),nPe=({discard:e,change:t,featureName:n,environmentName:r,projectId:o})=>{var a,s,c,u,d;const i=Z5e(t,o,n,r);return x(ve,{children:[t.action==="addStrategy"&&x(ve,{children:[x(K3,{children:[x(Cw,{children:[l(se,{color:(a=t.payload)!=null&&a.disabled?"action.disabled":"success.dark",children:"+ Adding strategy:"}),l(ww,{change:t,children:l(yw,{change:t,currentStrategy:i})}),l("div",{children:l(Y3,{disabled:!0,show:((s=t.payload)==null?void 0:s.disabled)===!0})})]}),l("div",{children:e})]}),l(q3,{strategy:t.payload})]}),t.action==="deleteStrategy"&&x(jD,{children:[x(Cw,{children:[l(se,{sx:p=>({color:p.palette.error.main}),children:"- Deleting strategy:"}),ePe(t.payload)&&l(ww,{change:t,children:l(yw,{change:t,currentStrategy:i})})]}),l("div",{children:e})]}),t.action==="updateStrategy"&&x(ve,{children:[x(K3,{children:[x(Cw,{children:[l(tPe,{wasDisabled:i==null?void 0:i.disabled,willBeDisabled:(c=t.payload)==null?void 0:c.disabled}),l(ww,{change:t,previousTitle:i==null?void 0:i.title,children:l(yw,{change:t,currentStrategy:i})})]}),l("div",{children:e})]}),l(q,{condition:((u=t.payload)==null?void 0:u.disabled)!==(i==null?void 0:i.disabled),show:x(se,{sx:{marginTop:p=>p.spacing(2),marginBottom:p=>p.spacing(2),...Ac,gap:p=>p.spacing(1)},children:["This strategy will be"," ",l(Y3,{disabled:((d=t.payload)==null?void 0:d.disabled)||!1})]})}),l(q3,{strategy:t.payload})]})]})},rPe=({enabled:e,discard:t})=>x(jD,{children:[x(Le,{sx:{display:"flex",alignItems:"center"},children:["New status:"," ",l(Zt,{sx:n=>({marginLeft:n.spacing(1)}),color:e?"success":"error",children:e?" Enabled":"Disabled"})]}),t]}),oPe=C(se)(({theme:e})=>({fontSize:e.fontSizes.smallerBody,whiteSpace:"pre-wrap"})),iPe=({value:e})=>{const{searchQuery:t}=Al();return e?e.type==="string"&&e.value.length<20?l(rr,{children:l(Ua,{search:t,children:e.value})}):l(rr,{children:l(Uh,{tooltip:l(ve,{children:l(oPe,{children:l(Ua,{search:t,children:e.value})})}),highlighted:t.length>0&&e.value.toLowerCase().includes(t.toLowerCase()),children:e.type})}):l(rr,{})},aPe=C(se)(({theme:e})=>({fontSize:e.fontSizes.smallerBody})),sPe=({value:e})=>{const{searchQuery:t}=Al();if(!e||e.length===0)return l(rr,{});const n=r=>`${r.contextName}:${r.values.join()}`;return l(rr,{children:l(Uh,{tooltip:l(ve,{children:e.map((r,o)=>l(aPe,{children:l(Ua,{search:t,children:n(r)})},r.contextName+o))}),highlighted:t.length>0&&(e==null?void 0:e.map(n).join(`
362
- `).toLowerCase().includes(t.toLowerCase())),children:e.length===1?"1 override":`${e.length} overrides`})})},lPe=({variants:e,searchValue:t=""})=>{const n=ir("projectId"),r=gn(),o=or(r.breakpoints.down("md")),i=or(r.breakpoints.down("lg")),a=m.useMemo(()=>[{Header:"Name",accessor:"name",Cell:gs,sortType:"alphanumeric",minWidth:350,searchable:!0},{Header:"Payload",accessor:"payload",Cell:iPe,disableSortBy:!0,searchable:!0,filterParsing:y=>y==null?void 0:y.value},{Header:"Overrides",accessor:"overrides",Cell:sPe,disableSortBy:!0,searchable:!0,filterParsing:y=>(y==null?void 0:y.map(({contextName:b,values:w})=>`${b}:${w.join()}`).join(`
363
- `))||""},{Header:"Weight",accessor:"weight",Cell:({row:{original:{name:y,weight:b}}})=>x(rr,{"data-testid":`VARIANT_WEIGHT_${y}`,children:[rve(b)," %"]}),sortType:"number"},{Header:"Type",accessor:y=>y.weightType==="fix"?"Fixed":"Variable",Cell:rr,sortType:"alphanumeric"}],[n,e]),s=m.useMemo(()=>({sortBy:[{id:"name",desc:!1}]}),[]),{data:c,getSearchText:u}=jh(a,t,e),{getTableProps:d,getTableBodyProps:p,headerGroups:f,rows:h,prepareRow:g,setHiddenColumns:v}=Yt.useTable({columns:a,data:c,initialState:s,sortTypes:si,autoResetHiddenColumns:!1,autoResetSortBy:!1,disableSortRemove:!0,disableMultiSort:!0},Yt.useSortBy);return Ed([{condition:o,columns:["payload","overrides"]},{condition:i,columns:["weightType"]}],v,a),x(ve,{children:[l(Xa,{value:u(t),children:x(la,{...d(),children:[l(sa,{headerGroups:f}),l(aa,{...p(),children:h.map(y=>(g(y),l(zi,{hover:!0,...y.getRowProps(),children:y.cells.map(b=>l(Wi,{...b.getCellProps(),children:b.render("Cell")}))})))})]})}),l(q,{condition:h.length===0,show:l(q,{condition:(t==null?void 0:t.length)>0,show:x(Kn,{children:["No variants found matching “",t,"”"]})})})]})},cPe=C("div")(({theme:e})=>({overflowX:"auto","& code":{wordWrap:"break-word",whiteSpace:"pre-wrap",fontFamily:"monospace",lineHeight:1.5,fontSize:e.fontSizes.smallBody}})),X3=e=>e.reduce((t,{name:n,...r})=>({...t,[n]:r}),{}),uPe=({preData:e,data:t})=>l(cPe,{children:l(D1,{entry:{preData:X3(e),data:X3(t)},sort:(n,r)=>n.index-r.index})}),dPe=C(Le)({display:"flex",flexDirection:"column"}),pPe=C(Le)(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:e.spacing(2),lineHeight:e.spacing(3)})),fPe=C("div")(({theme:e})=>({marginTop:e.spacing(1.5),display:"flex",alignItems:"center",gap:e.spacing(1.5),marginBottom:e.spacing(.5),fontSize:e.fontSizes.smallBody})),hPe=({feature:e,project:t,environment:n,change:r,discard:o})=>{var s,c;const{feature:i}=Ss(t,e),a=((s=i.environments.find(({name:u})=>n===u))==null?void 0:s.variants)??[];return x(dPe,{children:[x(pPe,{children:[l(Uh,{tooltip:l(uPe,{preData:a,data:r.payload.variants}),tooltipProps:{maxWidth:500,maxHeight:600},children:"Updating variants to:"}),o]}),l(lPe,{variants:r.payload.variants}),l(q,{condition:r.payload.variants.length>1,show:l(ve,{children:x(fPe,{children:[l("p",{children:"Stickiness:"}),l(Zt,{children:((c=r.payload.variants[0])==null?void 0:c.stickiness)||"default"})]})})})]})},mPe=C(Le,{shouldForwardProp:e=>!e.startsWith("$")})(({theme:e,$hasConflict:t,$isInConflictFeature:n,$isAfterWarning:r,$isLast:o})=>({borderLeft:"1px solid",borderRight:"1px solid",borderTop:"1px solid",borderBottom:o?"1px solid":"none",borderRadius:o?`0 0
364
- ${e.shape.borderRadiusLarge}px ${e.shape.borderRadiusLarge}px`:0,borderColor:t||n?e.palette.warning.border:e.palette.divider,borderTopColor:(t||r)&&!n?e.palette.warning.border:e.palette.divider})),gPe=C(tn)(({theme:e})=>({borderRadius:0,padding:e.spacing(0,2),"&.MuiAlert-standardWarning":{borderStyle:"none none solid none"}})),J3=({index:e,change:t,feature:n,changeRequest:r,discard:o})=>{var a;const i=n.defaultChange?n.changes.length+1:n.changes.length;return x(mPe,{$hasConflict:!!t.conflict,$isInConflictFeature:!!n.conflict,$isAfterWarning:!!((a=n.changes[e-1])!=null&&a.conflict),$isLast:e+1===i,children:[l(q,{condition:!!t.conflict&&!n.conflict,show:x(gPe,{severity:"warning",children:[l("strong",{children:"Conflict!"})," This change can’t be applied."," ",t.conflict,"."]})}),x(Le,{sx:s=>({padding:s.spacing(3)}),children:[t.action==="updateEnabled"&&l(rPe,{enabled:t.payload.enabled,discard:o}),t.action==="addStrategy"||t.action==="deleteStrategy"||t.action==="updateStrategy"?l(nPe,{discard:o,change:t,featureName:n.name,environmentName:r.environment,projectId:r.project}):null,t.action==="patchVariant"&&l(hPe,{feature:n.name,project:r.project,environment:r.environment,change:t,discard:o})]})]},QM(t))},tk=e=>e.features.flatMap(t=>t.changes).length,vPe=({change:e,changeRequestId:t,environment:n,open:r,onSubmit:o,onClose:i,featureId:a})=>{const s=ir("projectId"),{editChange:c}=qh(),[u,d]=m.useState(e.payload),{segments:p}=_l(),f=(p==null?void 0:p.filter(D=>{var K;return(K=e.payload.segments)==null?void 0:K.includes(D.id)}))||[],[h,g]=m.useState(f),v={parameters:e.payload.parameters,name:e.payload.name},{setToastData:y,setToastApiError:b}=$t(),w=sD(),{uiConfig:S}=Ot(),{unleashUrl:k}=S,{isChangeRequestConfigured:A}=_c(s),{feature:T,refetchFeature:R}=Ss(s,a),P=m.useRef(T),{data:_,staleDataNotification:I,forceRefreshCache:$}=lD({unleashGetter:Ss,params:[s,a],dataKey:"feature",refetchFunctionKey:"refetchFeature",options:{}},T,{afterSubmitAction:R},cD);m.useEffect(()=>{P.current.name===""&&T.name&&($(T),P.current=T)},[T]);const U={...u,segments:h.map(D=>D.id)},M=async()=>{try{await c(s,t,e.id,{action:u.id?"updateStrategy":"addStrategy",feature:a,payload:U}),o(),y({title:"Change updated",type:"success"})}catch(D){b(ht(D))}};return!v||!_?null:l(X1,{open:r,onClose:i,label:"Edit change",onClick:D=>{D.stopPropagation()},children:x(Yr,{modal:!0,title:yl(v.name??""),description:bPe,documentationLink:wPe,documentationLinkLabel:SPe,formatApiCode:()=>yPe(s,t,e.id,U,k),children:[l(aD,{projectId:s,feature:_,strategy:u,setStrategy:d,segments:h,setSegments:g,environmentId:n,onSubmit:M,onCancel:i,loading:!1,permission:v1,errors:w,isChangeRequest:A(n)}),I]})})},yPe=(e,t,n,r,o)=>{if(!o)return"";const i=`${o}/api/admin/projects/${e}/change-requests/${t}/changes/${n}`,a=JSON.stringify(r,void 0,2);return`curl --location --request PUT '${i}' \\
365
- --header 'Authorization: INSERT_API_KEY' \\
366
- --header 'Content-Type: application/json' \\
367
- --data-raw '${a}'`},bPe=`
368
- An activation strategy will only run when a feature toggle is enabled and provides a way to control who will get access to the feature.
369
- If any of a feature toggle's activation strategies returns true, the user will get access.
370
- `,wPe="https://docs.getunleash.io/reference/activation-strategies",SPe="Strategies documentation",xPe=(e,t)=>{const{isChangeRequestConfigured:n}=_c(e.project),r=n(e.environment),o=!["Cancelled","Applied"].includes(e.state),{user:i}=pi(),a=(i==null?void 0:i.id)===e.createdBy.id,s=r&&o&&a,c=s&&["addStrategy","updateStrategy"].includes(t.action),u=s&&tk(e)>1;return{showEdit:c,showDiscard:u}},CPe=C(H2)(({theme:e})=>({borderRadius:e.shape.borderRadiusLarge,padding:e.spacing(1,1.5)})),EPe=({changeRequest:e,feature:t,change:n,onRefetch:r})=>{const{showDiscard:o,showEdit:i}=xPe(e,n),{discardChange:a}=qh(),{setToastData:s,setToastApiError:c}=$t(),[u,d]=m.useState(!1),p=`cr-${n.id}-actions`,f=`${p}-menu`,[h,g]=m.useState(null),v=!!h,y=k=>{g(k.currentTarget)},b=()=>{g(null)},w=()=>{d(!0)},S=async()=>{try{b(),await a(e.project,e.id,n.id),s({title:"Change discarded from change request draft.",type:"success"}),r==null||r()}catch(k){c(ht(k))}};return l(q,{condition:i||o,show:x(ve,{children:[l(xt,{title:"Change request actions",arrow:!0,describeChild:!0,children:l(Ht,{id:p,"aria-controls":v?f:void 0,"aria-haspopup":"true","aria-expanded":v?"true":void 0,onClick:y,type:"button",children:l(mle,{})})}),l(CPe,{id:f,anchorEl:h,open:v,onClose:b,transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},disableScrollLock:!0,children:x(W2,{"aria-labelledby":p,children:[l(q,{condition:i,show:x(ja,{onClick:w,children:[l(_u,{children:l(Ui,{})}),l(rn,{children:l(se,{variant:"body2",children:"Edit change"})}),l(vPe,{changeRequestId:e.id,featureId:t,change:n,environment:e.environment,open:u,onSubmit:()=>{d(!1),r==null||r()},onClose:()=>{d(!1)}})]})}),l(q,{condition:o,show:x(ja,{onClick:()=>{S()},children:[l(_u,{children:l(go,{})}),l(rn,{children:l(se,{variant:"body2",children:"Discard change"})})]})})]})})]})})},TPe=({changeRequest:e,onRefetch:t,onNavigate:n})=>{var r;return l(Le,{children:(r=e.features)==null?void 0:r.map(o=>x(b_e,{featureName:o.name,projectId:e.project,onNavigate:n,conflict:o.conflict,children:[o.changes.map((i,a)=>l(J3,{discard:l(EPe,{changeRequest:e,feature:o.name,change:i,onRefetch:t}),index:a,changeRequest:e,change:i,feature:o},a)),o.defaultChange?l(J3,{discard:l(se,{variant:"body2",color:"text.secondary",children:o.defaultChange.action==="addStrategy"?"Default strategy will be added":"Feature status will change"}),index:o.changes.length,changeRequest:e,change:o.defaultChange,feature:o}):null]},o.name))})},Q3=()=>l(Zt,{color:"secondary",icon:l(l9,{fontSize:"small"}),children:"Review required"}),kPe=()=>l(Zt,{color:"warning",children:"Draft"}),APe=({state:e})=>{switch(e){case"Draft":return l(kPe,{});case"In review":return l(Q3,{});case"Approved":return l(Zt,{color:"success",icon:l(Ev,{fontSize:"small"}),children:"Approved"});case"Applied":return l(Zt,{color:"success",icon:l(Ev,{fontSize:"small"}),children:"Applied"});case"Cancelled":return l(Zt,{color:"error",icon:l(g1,{fontSize:"small"}),children:"Cancelled"});default:return l(Q3,{})}},RPe=C(Sd)(({theme:e})=>({height:"32px",width:"32px",marginTop:e.spacing(1),marginRight:e.spacing(2)})),_Pe=C(Le)(({theme:e})=>({display:"flex",marginTop:e.spacing(2),marginBottom:e.spacing(1)})),PPe=({user:e,commentText:t,onTypeComment:n,children:r})=>x(ve,{children:[x(_Pe,{children:[l(xt,{title:(e==null?void 0:e.name)||(e==null?void 0:e.username),children:l(RPe,{src:(e==null?void 0:e.imageUrl)||""})}),l(wn,{variant:"outlined",placeholder:"Add your comment here",fullWidth:!0,multiline:!0,minRows:2,onChange:o=>n(o.target.value),value:t})]}),l(Le,{sx:{display:"flex",justifyContent:"flex-end"},children:r})]}),IPe=C(Le)(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%","& > div":{width:"100%"},justifyContent:"space-between",marginBottom:e.spacing(1)}));C(se)(({theme:e})=>({display:"flex",alignItems:"center",marginRight:e.spacing(1),fontSize:e.fontSizes.mainHeader}));const OPe=({environmentChangeRequest:e,title:t,setTitle:n,children:r})=>{const[o,i]=m.useState(!0),{updateTitle:a}=qh(),{setToastData:s,setToastApiError:c}=$t(),u=()=>{i(!o)},d=async()=>{u();try{await a(e.project,e.id,t),s({type:"success",title:"Change request title updated!"})}catch(p){c(ht(p))}};return x(IPe,{children:[l(q,{condition:o,show:r,elseShow:l(Sr,{label:"Change request title",id:"group-name",value:t,fullWidth:!0,onChange:p=>n(p.target.value),disabled:o})}),l(q,{condition:o,show:l(Ht,{onClick:u,children:l(Ui,{})})}),l(q,{condition:!o,show:x(ve,{children:[l(Ve,{variant:"contained",color:"primary",sx:p=>({marginLeft:p.spacing(2)}),onClick:()=>d(),children:"Save"}),l(Ve,{sx:p=>({marginLeft:p.spacing(1)}),variant:"outlined",onClick:u,children:"Cancel"})," "]})})]})},$Pe=({onClick:e,count:t})=>x(Ve,{sx:{ml:"auto"},variant:"contained",onClick:e,children:["Submit change request (",t,")"]}),NPe=C(Le)(({theme:e})=>({padding:e.spacing(3,3,1,3),border:"2px solid",borderColor:e.palette.divider,borderRadius:`${e.shape.borderRadiusLarge}px ${e.shape.borderRadiusLarge}px 0 0`,borderBottom:"none",overflow:"hidden",backgroundColor:e.palette.neutral.light})),LPe=C(Le)(({theme:e})=>({padding:e.spacing(3,3,3,3),border:"2px solid",mb:5,borderColor:e.palette.divider,borderRadius:`0 0 ${e.shape.borderRadiusLarge}px ${e.shape.borderRadiusLarge}px`,borderTop:"none",overflow:"hidden"})),MPe=({environmentChangeRequest:e,onClose:t,onReview:n,onDiscard:r,children:o})=>{const i=gn(),a=gt(),[s,c]=m.useState(""),{user:u}=pi(),[d,p]=m.useState(e.title);return x(Le,{children:[x(NPe,{children:[x(Le,{sx:{display:"flex",alignItems:"end"},children:[x(Le,{sx:{display:"flex",alignItems:"center"},children:[l(u9,{sx:f=>({color:f.palette.primary.light,mr:.5})}),l(se,{component:"span",variant:"h2",children:e.environment}),l(WPe,{}),l(HPe,{count:e.features.length})]}),l(Le,{sx:{ml:"auto"},children:l(APe,{state:e.state})})]}),l(To,{sx:{my:3}}),l(OPe,{environmentChangeRequest:e,title:d,setTitle:p,children:l(Sr,{label:"Change request title",id:"group-name",fullWidth:!0,value:d,onChange:()=>{},disabled:!0})})]}),x(LPe,{children:[l(se,{variant:"body2",color:"text.secondary",children:"You request changes for these feature toggles:"}),o,l(q,{condition:(e==null?void 0:e.state)==="Draft",show:l(PPe,{user:u,commentText:s,onTypeComment:c})}),x(Le,{sx:{display:"flex",mt:3},children:[l(q,{condition:(e==null?void 0:e.state)==="Draft",show:x(ve,{children:[l($Pe,{onClick:()=>n(e.id,s),count:tk(e)}),l(Ve,{sx:{ml:2},variant:"outlined",onClick:()=>r(e.id),children:"Discard changes"})]})}),l(q,{condition:e.state==="In review"||e.state==="Approved",show:l(ve,{children:x(UPe,{children:[l(jPe,{}),l(se,{color:i.palette.success.dark,children:"Draft successfully sent to review"}),l(Ve,{sx:{marginLeft:2},variant:"outlined",onClick:()=>{t(),a(`/projects/${e.project}/change-requests/${e.id}`)},children:"View change request page"})]})})})]})]})]},e.id)},DPe=C(Tv)(({theme:e})=>({fontSize:e.fontSizes.mainHeader,marginLeft:"0.3rem",color:e.palette.action.active})),BPe=C("div")(({theme:e})=>({color:e.palette.text.secondary,fontSize:e.fontSizes.smallBody})),FPe=()=>l(Dn,{actions:"",titleElement:x(ve,{children:[x(Le,{sx:{display:"flex",alignItems:"center"},children:["Review your changes",l(xt,{title:"Here you can see all the changes that you are suggesting and you can send them for review. You can still discard the changes after you sent them for review or even cancel the entire review if you need it",arrow:!0,children:l(DPe,{})})]}),l(BPe,{children:"Make sure you are sending the right changes to be reviewed"})]})}),Z3=C(Or)(({theme:e})=>({height:"100vh",overflow:"auto",minWidth:"50vw",padding:e.spacing(6),[e.breakpoints.down("md")]:{padding:e.spacing(4,2)},"& .header":{padding:e.spacing(0,0,2,0)},"& .body":{padding:e.spacing(3,0,0,0)},borderRadius:`${e.spacing(1.5,0,0,1.5)} !important`})),zPe=C(Ve)(({theme:e})=>({marginTop:e.spacing(2),marginLeft:"auto"})),jPe=C(s9)(({theme:e})=>({color:e.palette.success.main,height:"32px",width:"32px",marginRight:e.spacing(1)})),UPe=C(Le)(()=>({marginLeft:"auto",display:"flex",alignItems:"center"})),WPe=()=>l(se,{component:"span",sx:{marginLeft:1.5,marginRight:1.5,color:"divider"},children:"|"}),HPe=({count:e})=>x(Le,{children:[x(se,{component:"span",variant:"body1",color:"text.secondary",children:["Updates:"," "]}),x(se,{component:"span",sx:{fontWeight:"bold"},children:[e," ",e===1?"feature toggle":"feature toggles"]})]}),VPe=({open:e,project:t,onClose:n})=>{const{data:r,loading:o,refetch:i}=Y1(t),{changeState:a,discardDraft:s}=qh(),{setToastApiError:c}=$t(),u=async(p,f)=>{try{await a(t,p,{state:"In review",comment:f}),i()}catch(h){c(ht(h))}},d=async p=>{try{await s(t,p),i()}catch(f){c(ht(f))}};return!o&&!r?l(E3,{open:e,onClose:n,label:"Review changes",children:x(Z3,{disableBorder:!0,header:l(Dn,{titleElement:"Review your changes"}),children:["There are no changes to review.",l(zPe,{onClick:n,children:"Close"})]})}):l(E3,{open:e,onClose:n,label:"Review changes",children:l(Z3,{disableBorder:!0,header:l(FPe,{}),children:r==null?void 0:r.map(p=>l(MPe,{environmentChangeRequest:p,onClose:n,onReview:u,onDiscard:d,children:l(TPe,{changeRequest:p,onNavigate:n,onRefetch:i})},p.id))})})},GPe=C(Le)(({theme:e})=>({display:"flex",alignItems:"center",padding:e.spacing(1,0),[e.breakpoints.down("lg")]:{padding:e.spacing(1,2)}})),qPe=C(Le)(({theme:e})=>({width:"1250px",marginLeft:"auto",marginRight:"auto",[e.breakpoints.down("lg")]:{width:"1024px"},[e.breakpoints.down(1024)]:{width:"100%",marginLeft:0,marginRight:0},[e.breakpoints.down("sm")]:{minWidth:"100%"}})),KPe=({changeRequest:e,onClick:t})=>l(qPe,{children:x(GPe,{children:[x(se,{variant:"body2",sx:{mr:4},children:[l("strong",{children:"Change request mode"})," – You have changes"," ",l(q,{condition:!!e.environment,show:x(ve,{children:["in ",x("strong",{children:[e.environment," "]})]})}),l(q,{condition:e.state==="Draft",show:"that need to be reviewed"}),l(q,{condition:e.state==="In review",show:"that are in review"}),l(q,{condition:e.state==="Approved",show:"that are approved. Adding more changes will clear the approvals and require a new review"})]}),x(Ve,{variant:"contained",onClick:t,sx:{ml:"auto"},children:["View changes (",tk(e),")"]})]})}),YPe=C(Le)(({theme:e})=>({position:"sticky",top:-1,zIndex:250,borderTop:`1px solid ${e.palette.warning.border}`,borderBottom:`1px solid ${e.palette.warning.border}`,color:e.palette.warning.contrastText,backgroundColor:e.palette.warning.light})),XPe=({project:e})=>{const[t,n]=m.useState(!1),{data:r,loading:o}=Y1(e);return!o&&!r||(r==null?void 0:r.length)===0?null:x(YPe,{children:[r!=null&&r.length?r.filter(i=>["Draft","In review","Approved"].includes(i.state)).map(i=>l(KPe,{changeRequest:i,onClick:()=>{n(!0)}},i.id)):null,l(VPe,{project:e,open:t,onClose:()=>{n(!1)}})]})},JPe=e=>m.createElement("svg",{width:45,height:61,viewBox:"0 0 45 61",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{opacity:.789,d:"M29.701 38.852C25.591 37.941 24.679 37.007 23.764 32.915C23.664 32.469 23.764 32 23.306 32C22.848 32 22.937 32.469 22.848 32.915C21.937 37.044 21.022 37.94 16.911 38.852C16.465 38.952 16 38.852 16 39.31C16 39.768 16.465 39.679 16.911 39.768C21.021 40.679 21.936 41.613 22.848 45.705C22.948 46.151 22.848 46.62 23.306 46.62C23.764 46.62 23.675 46.151 23.764 45.705C24.679 41.595 25.609 40.68 29.701 39.768C30.147 39.668 30.616 39.768 30.616 39.31C30.616 38.852 30.148 38.952 29.701 38.852Z",fill:"white"}),m.createElement("path",{opacity:.4,d:"M10.686 52.1838C7.46503 51.4728 6.75403 50.7558 6.06003 47.5578C5.97903 47.2048 6.06003 46.8408 5.70103 46.8408C5.34203 46.8408 5.41803 47.2048 5.34203 47.5578C4.62503 50.7788 3.90803 51.4958 0.716026 52.1838C0.369026 52.2648 -0.000976562 52.1838 -0.000976562 52.5428C-0.000976562 52.9018 0.369026 52.8258 0.716026 52.9018C3.93703 53.6188 4.65403 54.3358 5.34203 57.5568C5.41703 57.9038 5.34203 58.2738 5.70103 58.2738C6.06003 58.2738 5.97903 57.9038 6.06003 57.5568C6.77703 54.3358 7.48803 53.6188 10.686 52.9018C11.039 52.8268 11.403 52.9018 11.403 52.5428C11.403 52.1838 11.039 52.2648 10.686 52.1838Z",fill:"white"}),m.createElement("path",{opacity:.739,d:"M34.19 12.595C31.434 11.981 30.825 11.37 30.209 8.612C30.142 8.312 30.209 8 29.902 8C29.595 8 29.662 8.313 29.595 8.612C28.983 11.37 28.37 11.977 25.614 12.595C25.314 12.66 25 12.595 25 12.902C25 13.209 25.315 13.142 25.614 13.202C28.37 13.816 28.979 14.427 29.595 17.185C29.662 17.485 29.595 17.797 29.902 17.797C30.209 17.797 30.142 17.484 30.209 17.185C30.821 14.427 31.434 13.82 34.19 13.202C34.49 13.137 34.804 13.202 34.804 12.902C34.804 12.602 34.49 12.66 34.19 12.595Z",fill:"white"}),m.createElement("path",{opacity:.7,d:"M38.666 55.832C36.366 55.32 35.859 54.81 35.345 52.51C35.289 52.261 35.345 52 35.089 52C34.833 52 34.889 52.261 34.833 52.51C34.323 54.81 33.811 55.317 31.512 55.832C31.263 55.886 31 55.832 31 56.088C31 56.344 31.263 56.288 31.512 56.342C33.812 56.854 34.319 57.364 34.833 59.664C34.889 59.913 34.833 60.174 35.089 60.174C35.345 60.174 35.289 59.913 35.345 59.664C35.855 57.364 36.367 56.857 38.666 56.342C38.917 56.287 39.178 56.342 39.178 56.088C39.178 55.834 38.917 55.886 38.666 55.832Z",fill:"white"}),m.createElement("path",{opacity:.855,d:"M19.336 2.668C17.736 2.312 17.382 1.95598 17.024 0.35498C16.985 0.18098 17.024 0 16.846 0C16.668 0 16.707 0.18198 16.668 0.35498C16.313 1.95498 15.956 2.309 14.356 2.668C14.182 2.706 14 2.66798 14 2.84598C14 3.02398 14.183 2.98498 14.356 3.02298C15.956 3.37898 16.31 3.735 16.668 5.336C16.707 5.51 16.668 5.69098 16.846 5.69098C17.024 5.69098 16.985 5.509 17.024 5.336C17.379 3.736 17.736 3.38198 19.336 3.02298C19.511 2.98498 19.692 3.02298 19.692 2.84598C19.692 2.66898 19.511 2.706 19.336 2.668Z",fill:"white"}),m.createElement("path",{opacity:.855,d:"M11.336 25.668C9.736 25.312 9.382 24.956 9.024 23.355C8.985 23.181 9.024 23 8.846 23C8.668 23 8.707 23.182 8.668 23.355C8.313 24.955 7.956 25.309 6.356 25.668C6.182 25.706 6 25.668 6 25.846C6 26.024 6.183 25.985 6.356 26.023C7.956 26.379 8.31 26.735 8.668 28.336C8.707 28.51 8.668 28.691 8.846 28.691C9.024 28.691 8.985 28.509 9.024 28.336C9.379 26.736 9.736 26.382 11.336 26.023C11.511 25.985 11.692 26.023 11.692 25.846C11.692 25.669 11.511 25.706 11.336 25.668Z",fill:"white"}),m.createElement("path",{opacity:.5,d:"M44.336 28.668C42.736 28.312 42.382 27.956 42.024 26.355C41.985 26.181 42.024 26 41.846 26C41.668 26 41.707 26.182 41.668 26.355C41.313 27.955 40.956 28.309 39.356 28.668C39.182 28.706 39 28.668 39 28.846C39 29.024 39.183 28.985 39.356 29.023C40.956 29.379 41.31 29.735 41.668 31.336C41.707 31.51 41.668 31.691 41.846 31.691C42.024 31.691 41.985 31.509 42.024 31.336C42.379 29.736 42.736 29.382 44.336 29.023C44.511 28.985 44.692 29.023 44.692 28.846C44.692 28.669 44.511 28.706 44.336 28.668Z",fill:"white"})),QPe=C(Zy)(({theme:e})=>({position:"fixed",bottom:0,left:0,width:"100%",maxWidth:e.spacing(30),zIndex:e.zIndex.sticky,boxShadow:e.boxShadows.popup,"&&&":{borderRadius:0,borderTopLeftRadius:e.shape.borderRadiusLarge,borderTopRightRadius:e.shape.borderRadiusLarge},"&:before":{display:"none"},"& .expand-icon":{position:"absolute",right:e.spacing(2),fontSize:e.fontSizes.mainHeader,transition:"transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",transform:"rotate(180deg)"},"&.Mui-expanded .expand-icon":{transform:"rotate(0)"}})),ZPe=C(n1)(({theme:e})=>({"& .MuiAccordionSummary-content":{flexDirection:"column",alignItems:"center"},backgroundColor:e.palette.web.main,color:e.palette.web.contrastText,borderTopLeftRadius:e.shape.borderRadiusLarge,borderTopRightRadius:e.shape.borderRadiusLarge,height:91})),e3e=C(JPe)({position:"absolute",left:6,top:-24}),t3e=C(p9)(({theme:e})=>({color:e.palette.primary.contrastText})),n3e=C("div")({display:"flex",alignItems:"center"}),r3e=C(se)(({theme:e})=>({fontSize:e.fontSizes.smallerBody,marginTop:e.spacing(.5),marginBottom:e.spacing(.5)})),o3e=C("div")(({theme:e})=>({width:"100%",display:"flex",alignItems:"center",gap:e.spacing(1.5)})),i3e=C(iN)(({theme:e})=>({width:"100%",height:e.spacing(1),borderRadius:e.shape.borderRadius,[`&.${v_.colorPrimary}`]:{backgroundColor:yt(e.palette.web.contrastText,.1)},[`& .${v_.bar}`]:{borderRadius:e.shape.borderRadius,backgroundColor:e.palette.web.contrastText}})),a3e=C("li",{shouldForwardProp:e=>e!=="selected"&&e!=="completed"})(({theme:e,selected:t,completed:n})=>({padding:e.spacing(1),cursor:"pointer",display:"flex",alignItems:"center",marginTop:e.spacing(1),borderRadius:e.shape.borderRadius,gap:e.spacing(1),backgroundColor:e.palette.background.elevation2,...t&&{backgroundColor:e.palette.secondary.light,fontWeight:e.typography.fontWeightBold,outline:`1px solid ${e.palette.primary.main}`},...n&&{backgroundColor:e.palette.background.elevation1,textDecoration:"line-through"}})),s3e=C(s9)(({theme:e})=>({color:e.palette.primary.main,fontSize:e.fontSizes.bodySize})),l3e=C(l9)(({theme:e})=>({color:e.palette.neutral.main,fontSize:e.fontSizes.bodySize})),c3e=C(p9)(({theme:e})=>({transform:"rotate(-90deg)",fontSize:e.fontSizes.bodySize})),u3e=C(Ve)(({theme:e})=>({width:"100%",marginTop:e.spacing(2),"&&&":{fontSize:e.fontSizes.smallBody}})),d3e=({expanded:e,setExpanded:t,stepsCompletion:n,currentTopic:r,setCurrentTopic:o,topics:i,onWelcome:a})=>{const s=n.reduce((d,p)=>d+(p||0),0),c=i.flatMap(({steps:d})=>d).length,u=s/c*100;return x(QPe,{expanded:e,onChange:()=>t(d=>!d),children:[x(ZPe,{children:[l(e3e,{}),x(n3e,{children:[l(se,{fontWeight:"bold",children:"Unleash demo"}),l(t3e,{className:"expand-icon"})]}),l(r3e,{children:"Complete all steps to finish demo"}),x(o3e,{children:[x(se,{variant:"body2",children:[u.toFixed(),"%"]}),l(i3e,{variant:"determinate",value:u})]})]}),x(e1,{children:[l(se,{variant:"body2",paddingTop:1,children:"The steps will guide you"}),i.map((d,p)=>{const f=r===p,h=n[p]===d.steps.length;return x(a3e,{onClick:()=>o(p),selected:f,completed:h,children:[l(q,{condition:h,show:l(s3e,{}),elseShow:l(l3e,{})}),l(se,{variant:"body2",sx:{flex:1},children:d.title}),l(c3e,{})]},d.title)}),l(u3e,{variant:"outlined",onClick:a,children:"View demo page"})]})]})};function UD(e){return function(t){return typeof t===e}}var p3e=UD("function"),f3e=function(e){return e===null},eI=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},tI=function(e){return!h3e(e)&&!f3e(e)&&(p3e(e)||typeof e=="object")},h3e=UD("undefined"),Ix=globalThis&&globalThis.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function m3e(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!Mo(e[r],t[r]))return!1;return!0}function g3e(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=new DataView(e.buffer),r=new DataView(t.buffer),o=e.byteLength;o--;)if(n.getUint8(o)!==r.getUint8(o))return!1;return!0}function v3e(e,t){var n,r,o,i;if(e.size!==t.size)return!1;try{for(var a=Ix(e.entries()),s=a.next();!s.done;s=a.next()){var c=s.value;if(!t.has(c[0]))return!1}}catch(p){n={error:p}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}try{for(var u=Ix(e.entries()),d=u.next();!d.done;d=u.next()){var c=d.value;if(!Mo(c[1],t.get(c[0])))return!1}}catch(p){o={error:p}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}return!0}function y3e(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var o=Ix(e.entries()),i=o.next();!i.done;i=o.next()){var a=i.value;if(!t.has(a[0]))return!1}}catch(s){n={error:s}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!0}function Mo(e,t){if(e===t)return!0;if(e&&tI(e)&&t&&tI(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return m3e(e,t);if(e instanceof Map&&t instanceof Map)return v3e(e,t);if(e instanceof Set&&t instanceof Set)return y3e(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return g3e(e,t);if(eI(e)&&eI(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=n.length;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(var o=n.length;o--!==0;){var i=n[o];if(!(i==="_owner"&&e.$$typeof)&&!Mo(e[i],t[i]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var b3e=["innerHTML","ownerDocument","style","attributes","nodeValue"],w3e=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],S3e=["bigint","boolean","null","number","string","symbol","undefined"];function e0(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(x3e(t))return t}function pa(e){return function(t){return e0(t)===e}}function x3e(e){return w3e.includes(e)}function Dd(e){return function(t){return typeof t===e}}function C3e(e){return S3e.includes(e)}function xe(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(xe.array(e))return"Array";if(xe.plainFunction(e))return"Function";var t=e0(e);return t||"Object"}xe.array=Array.isArray;xe.arrayOf=function(e,t){return!xe.array(e)&&!xe.function(t)?!1:e.every(function(n){return t(n)})};xe.asyncGeneratorFunction=function(e){return e0(e)==="AsyncGeneratorFunction"};xe.asyncFunction=pa("AsyncFunction");xe.bigint=Dd("bigint");xe.boolean=function(e){return e===!0||e===!1};xe.date=pa("Date");xe.defined=function(e){return!xe.undefined(e)};xe.domElement=function(e){return xe.object(e)&&!xe.plainObject(e)&&e.nodeType===1&&xe.string(e.nodeName)&&b3e.every(function(t){return t in e})};xe.empty=function(e){return xe.string(e)&&e.length===0||xe.array(e)&&e.length===0||xe.object(e)&&!xe.map(e)&&!xe.set(e)&&Object.keys(e).length===0||xe.set(e)&&e.size===0||xe.map(e)&&e.size===0};xe.error=pa("Error");xe.function=Dd("function");xe.generator=function(e){return xe.iterable(e)&&xe.function(e.next)&&xe.function(e.throw)};xe.generatorFunction=pa("GeneratorFunction");xe.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};xe.iterable=function(e){return!xe.nullOrUndefined(e)&&xe.function(e[Symbol.iterator])};xe.map=pa("Map");xe.nan=function(e){return Number.isNaN(e)};xe.null=function(e){return e===null};xe.nullOrUndefined=function(e){return xe.null(e)||xe.undefined(e)};xe.number=function(e){return Dd("number")(e)&&!xe.nan(e)};xe.numericString=function(e){return xe.string(e)&&e.length>0&&!Number.isNaN(Number(e))};xe.object=function(e){return!xe.nullOrUndefined(e)&&(xe.function(e)||typeof e=="object")};xe.oneOf=function(e,t){return xe.array(e)?e.indexOf(t)>-1:!1};xe.plainFunction=pa("Function");xe.plainObject=function(e){if(e0(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};xe.primitive=function(e){return xe.null(e)||C3e(typeof e)};xe.promise=pa("Promise");xe.propertyOf=function(e,t,n){if(!xe.object(e)||!t)return!1;var r=e[t];return xe.function(n)?n(r):xe.defined(r)};xe.regexp=pa("RegExp");xe.set=pa("Set");xe.string=Dd("string");xe.symbol=Dd("symbol");xe.undefined=Dd("undefined");xe.weakMap=pa("WeakMap");xe.weakSet=pa("WeakSet");function E3e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(n){return xe.string(n)||xe.array(n)||xe.plainObject(n)})}function T3e(e,t,n){return WD(e,t)?[e,t].every(xe.array)?!e.some(aI(n))&&t.some(aI(n)):[e,t].every(xe.plainObject)?!Object.entries(e).some(iI(n))&&Object.entries(t).some(iI(n)):t===n:!1}function nI(e,t,n){var r=n.actual,o=n.key,i=n.previous,a=n.type,s=Ia(e,o),c=Ia(t,o),u=[s,c].every(xe.number)&&(a==="increased"?s<c:s>c);return xe.undefined(r)||(u=u&&c===r),xe.undefined(i)||(u=u&&s===i),u}function rI(e,t,n){var r=n.key,o=n.type,i=n.value,a=Ia(e,r),s=Ia(t,r),c=o==="added"?a:s,u=o==="added"?s:a;if(!xe.nullOrUndefined(i)){if(xe.defined(c)){if(xe.array(c)||xe.plainObject(c))return T3e(c,u,i)}else return Mo(u,i);return!1}return[a,s].every(xe.array)?!u.every(nk(c)):[a,s].every(xe.plainObject)?k3e(Object.keys(c),Object.keys(u)):![a,s].every(function(d){return xe.primitive(d)&&xe.defined(d)})&&(o==="added"?!xe.defined(a)&&xe.defined(s):xe.defined(a)&&!xe.defined(s))}function oI(e,t,n){var r=n===void 0?{}:n,o=r.key,i=Ia(e,o),a=Ia(t,o);if(!WD(i,a))throw new TypeError("Inputs have different types");if(!E3e(i,a))throw new TypeError("Inputs don't have length");return[i,a].every(xe.plainObject)&&(i=Object.keys(i),a=Object.keys(a)),[i,a]}function iI(e){return function(t){var n=t[0],r=t[1];return xe.array(e)?Mo(e,r)||e.some(function(o){return Mo(o,r)||xe.array(r)&&nk(r)(o)}):xe.plainObject(e)&&e[n]?!!e[n]&&Mo(e[n],r):Mo(e,r)}}function k3e(e,t){return t.some(function(n){return!e.includes(n)})}function aI(e){return function(t){return xe.array(e)?e.some(function(n){return Mo(n,t)||xe.array(t)&&nk(t)(n)}):Mo(e,t)}}function Ap(e,t){return xe.array(e)?e.some(function(n){return Mo(n,t)}):Mo(e,t)}function nk(e){return function(t){return e.some(function(n){return Mo(n,t)})}}function WD(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(xe.array)||e.every(xe.number)||e.every(xe.plainObject)||e.every(xe.string)}function Ia(e,t){if(xe.plainObject(e)||xe.array(e)){if(xe.string(t)){var n=t.split(".");return n.reduce(function(r,o){return r&&r[o]},e)}return xe.number(t)?e[t]:e}return e}function dh(e,t){if([e,t].some(xe.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(p){return xe.plainObject(p)||xe.array(p)}))throw new Error("Expected plain objects or array");var n=function(p,f){try{return rI(e,t,{key:p,type:"added",value:f})}catch{return!1}},r=function(p,f,h){try{var g=Ia(e,p),v=Ia(t,p),y=xe.defined(f),b=xe.defined(h);if(y||b){var w=b?Ap(h,g):!Ap(f,g),S=Ap(f,v);return w&&S}return[g,v].every(xe.array)||[g,v].every(xe.plainObject)?!Mo(g,v):g!==v}catch{return!1}},o=function(p,f,h){if(!xe.defined(p))return!1;try{var g=Ia(e,p),v=Ia(t,p),y=xe.defined(h);return Ap(f,g)&&(y?Ap(h,v):!y)}catch{return!1}},i=function(p,f){return xe.defined(p)?r(p,f):!1},a=function(p,f,h){if(!xe.defined(p))return!1;try{return nI(e,t,{key:p,actual:f,previous:h,type:"decreased"})}catch{return!1}},s=function(p){try{var f=oI(e,t,{key:p}),h=f[0],g=f[1];return!!h.length&&!g.length}catch{return!1}},c=function(p){try{var f=oI(e,t,{key:p}),h=f[0],g=f[1];return!h.length&&!!g.length}catch{return!1}},u=function(p,f,h){if(!xe.defined(p))return!1;try{return nI(e,t,{key:p,actual:f,previous:h,type:"increased"})}catch{return!1}},d=function(p,f){try{return rI(e,t,{key:p,type:"removed",value:f})}catch{return!1}};return{added:n,changed:r,changedFrom:o,changedTo:i,decreased:a,emptied:s,filled:c,increased:u,removed:d}}var A3e=["innerHTML","ownerDocument","style","attributes","nodeValue"],R3e=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],_3e=["bigint","boolean","null","number","string","symbol","undefined"];function t0(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(P3e(t))return t}function fa(e){return t=>t0(t)===e}function P3e(e){return R3e.includes(e)}function Bd(e){return t=>typeof t===e}function I3e(e){return _3e.includes(e)}function it(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(it.array(e))return"Array";if(it.plainFunction(e))return"Function";const t=t0(e);return t||"Object"}it.array=Array.isArray;it.arrayOf=(e,t)=>!it.array(e)&&!it.function(t)?!1:e.every(n=>t(n));it.asyncGeneratorFunction=e=>t0(e)==="AsyncGeneratorFunction";it.asyncFunction=fa("AsyncFunction");it.bigint=Bd("bigint");it.boolean=e=>e===!0||e===!1;it.date=fa("Date");it.defined=e=>!it.undefined(e);it.domElement=e=>it.object(e)&&!it.plainObject(e)&&e.nodeType===1&&it.string(e.nodeName)&&A3e.every(t=>t in e);it.empty=e=>it.string(e)&&e.length===0||it.array(e)&&e.length===0||it.object(e)&&!it.map(e)&&!it.set(e)&&Object.keys(e).length===0||it.set(e)&&e.size===0||it.map(e)&&e.size===0;it.error=fa("Error");it.function=Bd("function");it.generator=e=>it.iterable(e)&&it.function(e.next)&&it.function(e.throw);it.generatorFunction=fa("GeneratorFunction");it.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;it.iterable=e=>!it.nullOrUndefined(e)&&it.function(e[Symbol.iterator]);it.map=fa("Map");it.nan=e=>Number.isNaN(e);it.null=e=>e===null;it.nullOrUndefined=e=>it.null(e)||it.undefined(e);it.number=e=>Bd("number")(e)&&!it.nan(e);it.numericString=e=>it.string(e)&&e.length>0&&!Number.isNaN(Number(e));it.object=e=>!it.nullOrUndefined(e)&&(it.function(e)||typeof e=="object");it.oneOf=(e,t)=>it.array(e)?e.indexOf(t)>-1:!1;it.plainFunction=fa("Function");it.plainObject=e=>{if(t0(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};it.primitive=e=>it.null(e)||I3e(typeof e);it.promise=fa("Promise");it.propertyOf=(e,t,n)=>{if(!it.object(e)||!t)return!1;const r=e[t];return it.function(n)?n(r):it.defined(r)};it.regexp=fa("RegExp");it.set=fa("Set");it.string=Bd("string");it.symbol=Bd("symbol");it.undefined=Bd("undefined");it.weakMap=fa("WeakMap");it.weakSet=fa("WeakSet");var mr=it,HD={exports:{}};/*!
371
- Copyright (c) 2015 Jed Watson.
372
- Based on code that is Copyright 2013-2015, Facebook, Inc.
373
- All rights reserved.
374
- */(function(e){(function(){var t=!!(typeof window<"u"&&window.document&&window.document.createElement),n={canUseDOM:t,canUseWorkers:typeof Worker<"u",canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen};e.exports?e.exports=n:window.ExecutionEnvironment=n})()})(HD);var O3e=HD.exports;const VD=qr(O3e);var $3e=new Error("Element already at target scroll position"),N3e=new Error("Scroll cancelled"),L3e=Math.min,sI=Date.now,M3e={left:lI("scrollLeft"),top:lI("scrollTop")};function lI(e){return function(n,r,o,i){o=o||{},typeof o=="function"&&(i=o,o={}),typeof i!="function"&&(i=B3e);var a=sI(),s=n[e],c=o.ease||D3e,u=isNaN(o.duration)?350:+o.duration,d=!1;return s===r?i($3e,n[e]):requestAnimationFrame(f),p;function p(){d=!0}function f(h){if(d)return i(N3e,n[e]);var g=sI(),v=L3e(1,(g-a)/u),y=c(v);n[e]=y*(r-s)+s,v<1?requestAnimationFrame(f):requestAnimationFrame(function(){i(null,n[e])})}}}function D3e(e){return .5*(1-Math.cos(Math.PI*e))}function B3e(){}const F3e=qr(M3e);var GD={exports:{}};(function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(Ci,function(){var t=/(auto|scroll)/,n=function(s,c){return s.parentNode===null?c:n(s.parentNode,c.concat([s]))},r=function(s,c){return getComputedStyle(s,null).getPropertyValue(c)},o=function(s){return r(s,"overflow")+r(s,"overflow-y")+r(s,"overflow-x")},i=function(s){return t.test(o(s))},a=function(s){if(s instanceof HTMLElement||s instanceof SVGElement){for(var c=n(s.parentNode,[]),u=0;u<c.length;u+=1)if(i(c[u]))return c[u];return document.scrollingElement||document.documentElement}};return a})})(GD);var z3e=GD.exports;const qD=qr(z3e);var KD={exports:{}},Nn={};/** @license React v16.13.1
375
- * react-is.production.min.js
376
- *
377
- * Copyright (c) Facebook, Inc. and its affiliates.
378
- *
379
- * This source code is licensed under the MIT license found in the
380
- * LICENSE file in the root directory of this source tree.
381
- */var Xr=typeof Symbol=="function"&&Symbol.for,rk=Xr?Symbol.for("react.element"):60103,ok=Xr?Symbol.for("react.portal"):60106,n0=Xr?Symbol.for("react.fragment"):60107,r0=Xr?Symbol.for("react.strict_mode"):60108,o0=Xr?Symbol.for("react.profiler"):60114,i0=Xr?Symbol.for("react.provider"):60109,a0=Xr?Symbol.for("react.context"):60110,ik=Xr?Symbol.for("react.async_mode"):60111,s0=Xr?Symbol.for("react.concurrent_mode"):60111,l0=Xr?Symbol.for("react.forward_ref"):60112,c0=Xr?Symbol.for("react.suspense"):60113,j3e=Xr?Symbol.for("react.suspense_list"):60120,u0=Xr?Symbol.for("react.memo"):60115,d0=Xr?Symbol.for("react.lazy"):60116,U3e=Xr?Symbol.for("react.block"):60121,W3e=Xr?Symbol.for("react.fundamental"):60117,H3e=Xr?Symbol.for("react.responder"):60118,V3e=Xr?Symbol.for("react.scope"):60119;function mi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case rk:switch(e=e.type,e){case ik:case s0:case n0:case o0:case r0:case c0:return e;default:switch(e=e&&e.$$typeof,e){case a0:case l0:case d0:case u0:case i0:return e;default:return t}}case ok:return t}}}function YD(e){return mi(e)===s0}Nn.AsyncMode=ik;Nn.ConcurrentMode=s0;Nn.ContextConsumer=a0;Nn.ContextProvider=i0;Nn.Element=rk;Nn.ForwardRef=l0;Nn.Fragment=n0;Nn.Lazy=d0;Nn.Memo=u0;Nn.Portal=ok;Nn.Profiler=o0;Nn.StrictMode=r0;Nn.Suspense=c0;Nn.isAsyncMode=function(e){return YD(e)||mi(e)===ik};Nn.isConcurrentMode=YD;Nn.isContextConsumer=function(e){return mi(e)===a0};Nn.isContextProvider=function(e){return mi(e)===i0};Nn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===rk};Nn.isForwardRef=function(e){return mi(e)===l0};Nn.isFragment=function(e){return mi(e)===n0};Nn.isLazy=function(e){return mi(e)===d0};Nn.isMemo=function(e){return mi(e)===u0};Nn.isPortal=function(e){return mi(e)===ok};Nn.isProfiler=function(e){return mi(e)===o0};Nn.isStrictMode=function(e){return mi(e)===r0};Nn.isSuspense=function(e){return mi(e)===c0};Nn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===n0||e===s0||e===o0||e===r0||e===c0||e===j3e||typeof e=="object"&&e!==null&&(e.$$typeof===d0||e.$$typeof===u0||e.$$typeof===i0||e.$$typeof===a0||e.$$typeof===l0||e.$$typeof===W3e||e.$$typeof===H3e||e.$$typeof===V3e||e.$$typeof===U3e)};Nn.typeOf=mi;KD.exports=Nn;var Rp=KD.exports,G3e=function(t){return q3e(t)&&!K3e(t)};function q3e(e){return!!e&&typeof e=="object"}function K3e(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||J3e(e)}var Y3e=typeof Symbol=="function"&&Symbol.for,X3e=Y3e?Symbol.for("react.element"):60103;function J3e(e){return e.$$typeof===X3e}function Q3e(e){return Array.isArray(e)?[]:{}}function ph(e,t){return t.clone!==!1&&t.isMergeableObject(e)?td(Q3e(e),e,t):e}function Z3e(e,t,n){return e.concat(t).map(function(r){return ph(r,n)})}function eIe(e,t){if(!t.customMerge)return td;var n=t.customMerge(e);return typeof n=="function"?n:td}function tIe(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function cI(e){return Object.keys(e).concat(tIe(e))}function XD(e,t){try{return t in e}catch{return!1}}function nIe(e,t){return XD(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function rIe(e,t,n){var r={};return n.isMergeableObject(e)&&cI(e).forEach(function(o){r[o]=ph(e[o],n)}),cI(t).forEach(function(o){nIe(e,o)||(XD(e,o)&&n.isMergeableObject(t[o])?r[o]=eIe(o,n)(e[o],t[o],n):r[o]=ph(t[o],n))}),r}function td(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Z3e,n.isMergeableObject=n.isMergeableObject||G3e,n.cloneUnlessOtherwiseSpecified=ph;var r=Array.isArray(t),o=Array.isArray(e),i=r===o;return i?r?n.arrayMerge(e,t,n):rIe(e,t,n):ph(t,n)}td.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,o){return td(r,o,n)},{})};var oIe=td,iIe=oIe;const Ea=qr(iIe);var JD={};Object.defineProperty(JD,"__esModule",{value:!0});var aIe="The typeValidator argument must be a function with the signature function(props, propName, componentName).",sIe="The error message is optional, but must be a string if provided.",lIe=function(t,n,r,o){return typeof t=="boolean"?t:typeof t=="function"?t(n,r,o):!!t&&!!t},cIe=function(t,n){return Object.hasOwnProperty.call(t,n)},uIe=function(t,n,r,o){return o?new Error(o):new Error("Required "+t[n]+" `"+n+"`"+(" was not specified in `"+r+"`."))},dIe=function(t,n){if(typeof t!="function")throw new TypeError(aIe);if(n&&typeof n!="string")throw new TypeError(sIe)},pIe=function(t,n,r){return dIe(t,r),function(o,i,a){for(var s=arguments.length,c=Array(3<s?s-3:0),u=3;u<s;u++)c[u-3]=arguments[u];return lIe(n,o,i,a)?cIe(o,i)?t.apply(void 0,[o,i,a].concat(c)):uIe(o,i,a,r):t.apply(void 0,[o,i,a].concat(c))}},uI=JD.default=pIe;/**!
382
- * @fileOverview Kickass library to create and place poppers near their reference elements.
383
- * @version 1.16.1
384
- * @license
385
- * Copyright (c) 2016 Federico Zivolo and contributors
386
- *
387
- * Permission is hereby granted, free of charge, to any person obtaining a copy
388
- * of this software and associated documentation files (the "Software"), to deal
389
- * in the Software without restriction, including without limitation the rights
390
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
391
- * copies of the Software, and to permit persons to whom the Software is
392
- * furnished to do so, subject to the following conditions:
393
- *
394
- * The above copyright notice and this permission notice shall be included in all
395
- * copies or substantial portions of the Software.
396
- *
397
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
398
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
399
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
400
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
401
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
402
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
403
- * SOFTWARE.
404
- */var Kh=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",fIe=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Kh&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function hIe(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function mIe(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},fIe))}}var gIe=Kh&&window.Promise,vIe=gIe?hIe:mIe;function QD(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function $c(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function ak(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function Yh(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=$c(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:Yh(ak(e))}function ZD(e){return e&&e.referenceNode?e.referenceNode:e}var dI=Kh&&!!(window.MSInputMethodContext&&document.documentMode),pI=Kh&&/MSIE 10/.test(navigator.userAgent);function Fd(e){return e===11?dI:e===10?pI:dI||pI}function nd(e){if(!e)return document.documentElement;for(var t=Fd(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return!r||r==="BODY"||r==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(n.nodeName)!==-1&&$c(n,"position")==="static"?nd(n):n}function yIe(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||nd(e.firstElementChild)===e}function Ox(e){return e.parentNode!==null?Ox(e.parentNode):e}function Wv(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a=i.commonAncestorContainer;if(e!==a&&t!==a||r.contains(o))return yIe(a)?a:nd(a);var s=Ox(e);return s.host?Wv(s.host,t):Wv(e,Ox(t).host)}function rd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",n=t==="top"?"scrollTop":"scrollLeft",r=e.nodeName;if(r==="BODY"||r==="HTML"){var o=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||o;return i[n]}return e[n]}function bIe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=rd(t,"top"),o=rd(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}function fI(e,t){var n=t==="x"?"Left":"Top",r=n==="Left"?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function hI(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Fd(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function e8(e){var t=e.body,n=e.documentElement,r=Fd(10)&&getComputedStyle(n);return{height:hI("Height",t,n,r),width:hI("Width",t,n,r)}}var wIe=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},SIe=function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),od=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},ki=Object.assign||function(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 wl(e){return ki({},e,{right:e.left+e.width,bottom:e.top+e.height})}function $x(e){var t={};try{if(Fd(10)){t=e.getBoundingClientRect();var n=rd(e,"top"),r=rd(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch{}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i=e.nodeName==="HTML"?e8(e.ownerDocument):{},a=i.width||e.clientWidth||o.width,s=i.height||e.clientHeight||o.height,c=e.offsetWidth-a,u=e.offsetHeight-s;if(c||u){var d=$c(e);c-=fI(d,"x"),u-=fI(d,"y"),o.width-=c,o.height-=u}return wl(o)}function sk(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Fd(10),o=t.nodeName==="HTML",i=$x(e),a=$x(t),s=Yh(e),c=$c(t),u=parseFloat(c.borderTopWidth),d=parseFloat(c.borderLeftWidth);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var p=wl({top:i.top-a.top-u,left:i.left-a.left-d,width:i.width,height:i.height});if(p.marginTop=0,p.marginLeft=0,!r&&o){var f=parseFloat(c.marginTop),h=parseFloat(c.marginLeft);p.top-=u-f,p.bottom-=u-f,p.left-=d-h,p.right-=d-h,p.marginTop=f,p.marginLeft=h}return(r&&!n?t.contains(s):t===s&&s.nodeName!=="BODY")&&(p=bIe(p,t)),p}function xIe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=sk(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:rd(n),s=t?0:rd(n,"left"),c={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i};return wl(c)}function t8(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if($c(e,"position")==="fixed")return!0;var n=ak(e);return n?t8(n):!1}function n8(e){if(!e||!e.parentElement||Fd())return document.documentElement;for(var t=e.parentElement;t&&$c(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function lk(e,t,n,r){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,i={top:0,left:0},a=o?n8(e):Wv(e,ZD(t));if(r==="viewport")i=xIe(a,o);else{var s=void 0;r==="scrollParent"?(s=Yh(ak(t)),s.nodeName==="BODY"&&(s=e.ownerDocument.documentElement)):r==="window"?s=e.ownerDocument.documentElement:s=r;var c=sk(s,a,o);if(s.nodeName==="HTML"&&!t8(a)){var u=e8(e.ownerDocument),d=u.height,p=u.width;i.top+=c.top-c.marginTop,i.bottom=d+c.top,i.left+=c.left-c.marginLeft,i.right=p+c.left}else i=c}n=n||0;var f=typeof n=="number";return i.left+=f?n:n.left||0,i.top+=f?n:n.top||0,i.right-=f?n:n.right||0,i.bottom-=f?n:n.bottom||0,i}function CIe(e){var t=e.width,n=e.height;return t*n}function r8(e,t,n,r,o){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var a=lk(n,r,i,o),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},c=Object.keys(s).map(function(f){return ki({key:f},s[f],{area:CIe(s[f])})}).sort(function(f,h){return h.area-f.area}),u=c.filter(function(f){var h=f.width,g=f.height;return h>=n.clientWidth&&g>=n.clientHeight}),d=u.length>0?u[0].key:c[0].key,p=e.split("-")[1];return d+(p?"-"+p:"")}function o8(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,o=r?n8(t):Wv(t,ZD(n));return sk(n,o,r)}function i8(e){var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),o=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),i={width:e.offsetWidth+o,height:e.offsetHeight+r};return i}function Hv(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(n){return t[n]})}function a8(e,t,n){n=n.split("-")[0];var r=i8(e),o={width:r.width,height:r.height},i=["right","left"].indexOf(n)!==-1,a=i?"top":"left",s=i?"left":"top",c=i?"height":"width",u=i?"width":"height";return o[a]=t[a]+t[c]/2-r[c]/2,n===s?o[s]=t[s]-r[u]:o[s]=t[Hv(s)],o}function Xh(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function EIe(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(o){return o[t]===n});var r=Xh(e,function(o){return o[t]===n});return e.indexOf(r)}function s8(e,t,n){var r=n===void 0?e:e.slice(0,EIe(e,"name",n));return r.forEach(function(o){o.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var i=o.function||o.fn;o.enabled&&QD(i)&&(t.offsets.popper=wl(t.offsets.popper),t.offsets.reference=wl(t.offsets.reference),t=i(t,o))}),t}function TIe(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=o8(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=r8(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=a8(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=s8(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function l8(e,t){return e.some(function(n){var r=n.name,o=n.enabled;return o&&r===t})}function ck(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],i=o?""+o+n:e;if(typeof document.body.style[i]<"u")return i}return null}function kIe(){return this.state.isDestroyed=!0,l8(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[ck("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function c8(e){var t=e.ownerDocument;return t?t.defaultView:window}function u8(e,t,n,r){var o=e.nodeName==="BODY",i=o?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),o||u8(Yh(i.parentNode),t,n,r),r.push(i)}function AIe(e,t,n,r){n.updateBound=r,c8(e).addEventListener("resize",n.updateBound,{passive:!0});var o=Yh(e);return u8(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function RIe(){this.state.eventsEnabled||(this.state=AIe(this.reference,this.options,this.state,this.scheduleUpdate))}function _Ie(e,t){return c8(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function PIe(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=_Ie(this.reference,this.state))}function uk(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function Nx(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&uk(t[n])&&(r="px"),e.style[n]=t[n]+r})}function IIe(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function OIe(e){return Nx(e.instance.popper,e.styles),IIe(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Nx(e.arrowElement,e.arrowStyles),e}function $Ie(e,t,n,r,o){var i=o8(o,t,e,n.positionFixed),a=r8(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),Nx(t,{position:n.positionFixed?"fixed":"absolute"}),n}function NIe(e,t){var n=e.offsets,r=n.popper,o=n.reference,i=Math.round,a=Math.floor,s=function(b){return b},c=i(o.width),u=i(r.width),d=["left","right"].indexOf(e.placement)!==-1,p=e.placement.indexOf("-")!==-1,f=c%2===u%2,h=c%2===1&&u%2===1,g=t?d||p||f?i:a:s,v=t?i:s;return{left:g(h&&!p&&t?r.left-1:r.left),top:v(r.top),bottom:v(r.bottom),right:g(r.right)}}var LIe=Kh&&/Firefox/i.test(navigator.userAgent);function MIe(e,t){var n=t.x,r=t.y,o=e.offsets.popper,i=Xh(e.instance.modifiers,function(S){return S.name==="applyStyle"}).gpuAcceleration;i!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=i!==void 0?i:t.gpuAcceleration,s=nd(e.instance.popper),c=$x(s),u={position:o.position},d=NIe(e,window.devicePixelRatio<2||!LIe),p=n==="bottom"?"top":"bottom",f=r==="right"?"left":"right",h=ck("transform"),g=void 0,v=void 0;if(p==="bottom"?s.nodeName==="HTML"?v=-s.clientHeight+d.bottom:v=-c.height+d.bottom:v=d.top,f==="right"?s.nodeName==="HTML"?g=-s.clientWidth+d.right:g=-c.width+d.right:g=d.left,a&&h)u[h]="translate3d("+g+"px, "+v+"px, 0)",u[p]=0,u[f]=0,u.willChange="transform";else{var y=p==="bottom"?-1:1,b=f==="right"?-1:1;u[p]=v*y,u[f]=g*b,u.willChange=p+", "+f}var w={"x-placement":e.placement};return e.attributes=ki({},w,e.attributes),e.styles=ki({},u,e.styles),e.arrowStyles=ki({},e.offsets.arrow,e.arrowStyles),e}function d8(e,t,n){var r=Xh(e,function(s){var c=s.name;return c===t}),o=!!r&&e.some(function(s){return s.name===n&&s.enabled&&s.order<r.order});if(!o){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}function DIe(e,t){var n;if(!d8(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if(typeof r=="string"){if(r=e.instance.popper.querySelector(r),!r)return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,a=i.popper,s=i.reference,c=["left","right"].indexOf(o)!==-1,u=c?"height":"width",d=c?"Top":"Left",p=d.toLowerCase(),f=c?"left":"top",h=c?"bottom":"right",g=i8(r)[u];s[h]-g<a[p]&&(e.offsets.popper[p]-=a[p]-(s[h]-g)),s[p]+g>a[h]&&(e.offsets.popper[p]+=s[p]+g-a[h]),e.offsets.popper=wl(e.offsets.popper);var v=s[p]+s[u]/2-g/2,y=$c(e.instance.popper),b=parseFloat(y["margin"+d]),w=parseFloat(y["border"+d+"Width"]),S=v-e.offsets.popper[p]-b-w;return S=Math.max(Math.min(a[u]-g,S),0),e.arrowElement=r,e.offsets.arrow=(n={},od(n,p,Math.round(S)),od(n,f,""),n),e}function BIe(e){return e==="end"?"start":e==="start"?"end":e}var p8=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Ew=p8.slice(3);function mI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ew.indexOf(e),r=Ew.slice(n+1).concat(Ew.slice(0,n));return t?r.reverse():r}var Tw={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function FIe(e,t){if(l8(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=lk(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=Hv(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Tw.FLIP:a=[r,o];break;case Tw.CLOCKWISE:a=mI(r);break;case Tw.COUNTERCLOCKWISE:a=mI(r,!0);break;default:a=t.behavior}return a.forEach(function(s,c){if(r!==s||a.length===c+1)return e;r=e.placement.split("-")[0],o=Hv(r);var u=e.offsets.popper,d=e.offsets.reference,p=Math.floor,f=r==="left"&&p(u.right)>p(d.left)||r==="right"&&p(u.left)<p(d.right)||r==="top"&&p(u.bottom)>p(d.top)||r==="bottom"&&p(u.top)<p(d.bottom),h=p(u.left)<p(n.left),g=p(u.right)>p(n.right),v=p(u.top)<p(n.top),y=p(u.bottom)>p(n.bottom),b=r==="left"&&h||r==="right"&&g||r==="top"&&v||r==="bottom"&&y,w=["top","bottom"].indexOf(r)!==-1,S=!!t.flipVariations&&(w&&i==="start"&&h||w&&i==="end"&&g||!w&&i==="start"&&v||!w&&i==="end"&&y),k=!!t.flipVariationsByContent&&(w&&i==="start"&&g||w&&i==="end"&&h||!w&&i==="start"&&y||!w&&i==="end"&&v),A=S||k;(f||b||A)&&(e.flipped=!0,(f||b)&&(r=a[c+1]),A&&(i=BIe(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=ki({},e.offsets.popper,a8(e.instance.popper,e.offsets.reference,e.placement)),e=s8(e.instance.modifiers,e,"flip"))}),e}function zIe(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=["top","bottom"].indexOf(o)!==-1,s=a?"right":"bottom",c=a?"left":"top",u=a?"width":"height";return n[s]<i(r[c])&&(e.offsets.popper[c]=i(r[c])-n[u]),n[c]>i(r[s])&&(e.offsets.popper[c]=i(r[s])),e}function jIe(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(a.indexOf("%")===0){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}var c=wl(s);return c[t]/100*i}else if(a==="vh"||a==="vw"){var u=void 0;return a==="vh"?u=Math.max(document.documentElement.clientHeight,window.innerHeight||0):u=Math.max(document.documentElement.clientWidth,window.innerWidth||0),u/100*i}else return i}function UIe(e,t,n,r){var o=[0,0],i=["right","left"].indexOf(r)!==-1,a=e.split(/(\+|\-)/).map(function(d){return d.trim()}),s=a.indexOf(Xh(a,function(d){return d.search(/,|\s/)!==-1}));a[s]&&a[s].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,u=s!==-1?[a.slice(0,s).concat([a[s].split(c)[0]]),[a[s].split(c)[1]].concat(a.slice(s+1))]:[a];return u=u.map(function(d,p){var f=(p===1?!i:i)?"height":"width",h=!1;return d.reduce(function(g,v){return g[g.length-1]===""&&["+","-"].indexOf(v)!==-1?(g[g.length-1]=v,h=!0,g):h?(g[g.length-1]+=v,h=!1,g):g.concat(v)},[]).map(function(g){return jIe(g,f,t,n)})}),u.forEach(function(d,p){d.forEach(function(f,h){uk(f)&&(o[p]+=f*(d[h-1]==="-"?-1:1))})}),o}function WIe(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,s=r.split("-")[0],c=void 0;return uk(+n)?c=[+n,0]:c=UIe(n,i,a,s),s==="left"?(i.top+=c[0],i.left-=c[1]):s==="right"?(i.top+=c[0],i.left+=c[1]):s==="top"?(i.left+=c[0],i.top-=c[1]):s==="bottom"&&(i.left+=c[0],i.top+=c[1]),e.popper=i,e}function HIe(e,t){var n=t.boundariesElement||nd(e.instance.popper);e.instance.reference===n&&(n=nd(n));var r=ck("transform"),o=e.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var c=lk(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=s,t.boundaries=c;var u=t.priority,d=e.offsets.popper,p={primary:function(h){var g=d[h];return d[h]<c[h]&&!t.escapeWithReference&&(g=Math.max(d[h],c[h])),od({},h,g)},secondary:function(h){var g=h==="right"?"left":"top",v=d[g];return d[h]>c[h]&&!t.escapeWithReference&&(v=Math.min(d[g],c[h]-(h==="right"?d.width:d.height))),od({},g,v)}};return u.forEach(function(f){var h=["left","top"].indexOf(f)!==-1?"primary":"secondary";d=ki({},d,p[h](f))}),e.offsets.popper=d,e}function VIe(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,s=["bottom","top"].indexOf(n)!==-1,c=s?"left":"top",u=s?"width":"height",d={start:od({},c,i[c]),end:od({},c,i[c]+i[u]-a[u])};e.offsets.popper=ki({},a,d[r])}return e}function GIe(e){if(!d8(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Xh(e.instance.modifiers,function(r){return r.name==="preventOverflow"}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function qIe(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=["left","right"].indexOf(n)!==-1,s=["top","left"].indexOf(n)===-1;return o[a?"left":"top"]=i[n]-(s?o[a?"width":"height"]:0),e.placement=Hv(t),e.offsets.popper=wl(o),e}var KIe={shift:{order:100,enabled:!0,fn:VIe},offset:{order:200,enabled:!0,fn:WIe,offset:0},preventOverflow:{order:300,enabled:!0,fn:HIe,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:zIe},arrow:{order:500,enabled:!0,fn:DIe,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:FIe,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:qIe},hide:{order:800,enabled:!0,fn:GIe},computeStyle:{order:850,enabled:!0,fn:MIe,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:OIe,onLoad:$Ie,gpuAcceleration:void 0}},YIe={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:KIe},p0=function(){function e(t,n){var r=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};wIe(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=vIe(this.update.bind(this)),this.options=ki({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(ki({},e.Defaults.modifiers,o.modifiers)).forEach(function(a){r.options.modifiers[a]=ki({},e.Defaults.modifiers[a]||{},o.modifiers?o.modifiers[a]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(a){return ki({name:a},r.options.modifiers[a])}).sort(function(a,s){return a.order-s.order}),this.modifiers.forEach(function(a){a.enabled&&QD(a.onLoad)&&a.onLoad(r.reference,r.popper,r.options,a,r.state)}),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return SIe(e,[{key:"update",value:function(){return TIe.call(this)}},{key:"destroy",value:function(){return kIe.call(this)}},{key:"enableEventListeners",value:function(){return RIe.call(this)}},{key:"disableEventListeners",value:function(){return PIe.call(this)}}]),e}();p0.Utils=(typeof window<"u"?window:global).PopperUtils;p0.placements=p8;p0.Defaults=YIe;const gI=p0;function vI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Qn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vI(Object(n),!0).forEach(function(r){uo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qh(e,t,n){return t&&yI(e.prototype,t),n&&yI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function uo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zh(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lx(e,t)}function Vv(e){return Vv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vv(e)}function Lx(e,t){return Lx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Lx(e,t)}function XIe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function JIe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function f8(e,t){if(e==null)return{};var n=JIe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function os(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QIe(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return os(e)}function em(e){var t=XIe();return function(){var r=Vv(e),o;if(t){var i=Vv(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return QIe(this,o)}}var ZIe={flip:{padding:20},preventOverflow:{padding:10}},ln={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},us=VD.canUseDOM,_p=Ei.createPortal!==void 0;function kw(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function dg(e){var t=e.title,n=e.data,r=e.warn,o=r===void 0?!1:r,i=e.debug,a=i===void 0?!1:i,s=o?console.warn||console.error:console.log;a&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(c){xe.plainObject(c)&&c.key?s.apply(console,[c.key,c.value]):s.apply(console,[c])}):s.apply(console,[n]),console.groupEnd())}function e4e(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function t4e(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function n4e(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o;o=function(a){n(a),t4e(e,t,o)},e4e(e,t,o,r)}function bI(){}var h8=function(e){Zh(n,e);var t=em(n);function n(){return Jh(this,n),t.apply(this,arguments)}return Qh(n,[{key:"componentDidMount",value:function(){us&&(this.node||this.appendNode(),_p||this.renderPortal())}},{key:"componentDidUpdate",value:function(){us&&(_p||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!us||!this.node||(_p||Ei.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var o=this.props,i=o.id,a=o.zIndex;this.node||(this.node=document.createElement("div"),i&&(this.node.id=i),a&&(this.node.style.zIndex=a),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!us)return null;var o=this.props,i=o.children,a=o.setRef;if(this.node||this.appendNode(),_p)return Ei.createPortal(i,this.node);var s=Ei.unstable_renderSubtreeIntoContainer(this,i.length>1?Te.createElement("div",null,i):i[0],this.node);return a(s),null}},{key:"renderReact16",value:function(){var o=this.props,i=o.hasChildren,a=o.placement,s=o.target;return i?this.renderPortal():s||a==="center"?this.renderPortal():null}},{key:"render",value:function(){return _p?this.renderReact16():null}}]),n}(Te.Component);uo(h8,"propTypes",{children:pe.oneOfType([pe.element,pe.array]),hasChildren:pe.bool,id:pe.oneOfType([pe.string,pe.number]),placement:pe.string,setRef:pe.func.isRequired,target:pe.oneOfType([pe.object,pe.string]),zIndex:pe.number});var m8=function(e){Zh(n,e);var t=em(n);function n(){return Jh(this,n),t.apply(this,arguments)}return Qh(n,[{key:"parentStyle",get:function(){var o=this.props,i=o.placement,a=o.styles,s=a.arrow.length,c={pointerEvents:"none",position:"absolute",width:"100%"};return i.startsWith("top")?(c.bottom=0,c.left=0,c.right=0,c.height=s):i.startsWith("bottom")?(c.left=0,c.right=0,c.top=0,c.height=s):i.startsWith("left")?(c.right=0,c.top=0,c.bottom=0):i.startsWith("right")&&(c.left=0,c.top=0),c}},{key:"render",value:function(){var o=this.props,i=o.placement,a=o.setArrowRef,s=o.styles,c=s.arrow,u=c.color,d=c.display,p=c.length,f=c.margin,h=c.position,g=c.spread,v={display:d,position:h},y,b=g,w=p;return i.startsWith("top")?(y="0,0 ".concat(b/2,",").concat(w," ").concat(b,",0"),v.bottom=0,v.marginLeft=f,v.marginRight=f):i.startsWith("bottom")?(y="".concat(b,",").concat(w," ").concat(b/2,",0 0,").concat(w),v.top=0,v.marginLeft=f,v.marginRight=f):i.startsWith("left")?(w=g,b=p,y="0,0 ".concat(b,",").concat(w/2," 0,").concat(w),v.right=0,v.marginTop=f,v.marginBottom=f):i.startsWith("right")&&(w=g,b=p,y="".concat(b,",").concat(w," ").concat(b,",0 0,").concat(w/2),v.left=0,v.marginTop=f,v.marginBottom=f),Te.createElement("div",{className:"__floater__arrow",style:this.parentStyle},Te.createElement("span",{ref:a,style:v},Te.createElement("svg",{width:b,height:w,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Te.createElement("polygon",{points:y,fill:u}))))}}]),n}(Te.Component);uo(m8,"propTypes",{placement:pe.string.isRequired,setArrowRef:pe.func.isRequired,styles:pe.object.isRequired});var r4e=["color","height","width"],g8=function(t){var n=t.handleClick,r=t.styles,o=r.color,i=r.height,a=r.width,s=f8(r,r4e);return Te.createElement("button",{"aria-label":"close",onClick:n,style:s,type:"button"},Te.createElement("svg",{width:"".concat(a,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},Te.createElement("g",null,Te.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:o}))))};g8.propTypes={handleClick:pe.func.isRequired,styles:pe.object.isRequired};var v8=function(t){var n=t.content,r=t.footer,o=t.handleClick,i=t.open,a=t.positionWrapper,s=t.showCloseButton,c=t.title,u=t.styles,d={content:Te.isValidElement(n)?n:Te.createElement("div",{className:"__floater__content",style:u.content},n)};return c&&(d.title=Te.isValidElement(c)?c:Te.createElement("div",{className:"__floater__title",style:u.title},c)),r&&(d.footer=Te.isValidElement(r)?r:Te.createElement("div",{className:"__floater__footer",style:u.footer},r)),(s||a)&&!xe.boolean(i)&&(d.close=Te.createElement(g8,{styles:u.close,handleClick:o})),Te.createElement("div",{className:"__floater__container",style:u.container},d.close,d.title,d.content,d.footer)};v8.propTypes={content:pe.node.isRequired,footer:pe.node,handleClick:pe.func.isRequired,open:pe.bool,positionWrapper:pe.bool.isRequired,showCloseButton:pe.bool.isRequired,styles:pe.object.isRequired,title:pe.node};var y8=function(e){Zh(n,e);var t=em(n);function n(){return Jh(this,n),t.apply(this,arguments)}return Qh(n,[{key:"style",get:function(){var o=this.props,i=o.disableAnimation,a=o.component,s=o.placement,c=o.hideArrow,u=o.status,d=o.styles,p=d.arrow.length,f=d.floater,h=d.floaterCentered,g=d.floaterClosing,v=d.floaterOpening,y=d.floaterWithAnimation,b=d.floaterWithComponent,w={};return c||(s.startsWith("top")?w.padding="0 0 ".concat(p,"px"):s.startsWith("bottom")?w.padding="".concat(p,"px 0 0"):s.startsWith("left")?w.padding="0 ".concat(p,"px 0 0"):s.startsWith("right")&&(w.padding="0 0 0 ".concat(p,"px"))),[ln.OPENING,ln.OPEN].indexOf(u)!==-1&&(w=Qn(Qn({},w),v)),u===ln.CLOSING&&(w=Qn(Qn({},w),g)),u===ln.OPEN&&!i&&(w=Qn(Qn({},w),y)),s==="center"&&(w=Qn(Qn({},w),h)),a&&(w=Qn(Qn({},w),b)),Qn(Qn({},f),w)}},{key:"render",value:function(){var o=this.props,i=o.component,a=o.handleClick,s=o.hideArrow,c=o.setFloaterRef,u=o.status,d={},p=["__floater"];return i?Te.isValidElement(i)?d.content=Te.cloneElement(i,{closeFn:a}):d.content=i({closeFn:a}):d.content=Te.createElement(v8,this.props),u===ln.OPEN&&p.push("__floater__open"),s||(d.arrow=Te.createElement(m8,this.props)),Te.createElement("div",{ref:c,className:p.join(" "),style:this.style},Te.createElement("div",{className:"__floater__body"},d.content,d.arrow))}}]),n}(Te.Component);uo(y8,"propTypes",{component:pe.oneOfType([pe.func,pe.element]),content:pe.node,disableAnimation:pe.bool.isRequired,footer:pe.node,handleClick:pe.func.isRequired,hideArrow:pe.bool.isRequired,open:pe.bool,placement:pe.string.isRequired,positionWrapper:pe.bool.isRequired,setArrowRef:pe.func.isRequired,setFloaterRef:pe.func.isRequired,showCloseButton:pe.bool,status:pe.string.isRequired,styles:pe.object.isRequired,title:pe.node});var b8=function(e){Zh(n,e);var t=em(n);function n(){return Jh(this,n),t.apply(this,arguments)}return Qh(n,[{key:"render",value:function(){var o=this.props,i=o.children,a=o.handleClick,s=o.handleMouseEnter,c=o.handleMouseLeave,u=o.setChildRef,d=o.setWrapperRef,p=o.style,f=o.styles,h;if(i)if(Te.Children.count(i)===1)if(!Te.isValidElement(i))h=Te.createElement("span",null,i);else{var g=xe.function(i.type)?"innerRef":"ref";h=Te.cloneElement(Te.Children.only(i),uo({},g,u))}else h=i;return h?Te.createElement("span",{ref:d,style:Qn(Qn({},f),p),onClick:a,onMouseEnter:s,onMouseLeave:c},h):null}}]),n}(Te.Component);uo(b8,"propTypes",{children:pe.node,handleClick:pe.func.isRequired,handleMouseEnter:pe.func.isRequired,handleMouseLeave:pe.func.isRequired,setChildRef:pe.func.isRequired,setWrapperRef:pe.func.isRequired,style:pe.object,styles:pe.object.isRequired});var o4e={zIndex:100};function i4e(e){var t=Ea(o4e,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}var a4e=["arrow","flip","offset"],s4e=["position","top","right","bottom","left"],dk=function(e){Zh(n,e);var t=em(n);function n(r){var o;return Jh(this,n),o=t.call(this,r),uo(os(o),"setArrowRef",function(i){o.arrowRef=i}),uo(os(o),"setChildRef",function(i){o.childRef=i}),uo(os(o),"setFloaterRef",function(i){o.floaterRef=i}),uo(os(o),"setWrapperRef",function(i){o.wrapperRef=i}),uo(os(o),"handleTransitionEnd",function(){var i=o.state.status,a=o.props.callback;o.wrapperPopper&&o.wrapperPopper.instance.update(),o.setState({status:i===ln.OPENING?ln.OPEN:ln.IDLE},function(){var s=o.state.status;a(s===ln.OPEN?"open":"close",o.props)})}),uo(os(o),"handleClick",function(){var i=o.props,a=i.event,s=i.open;if(!xe.boolean(s)){var c=o.state,u=c.positionWrapper,d=c.status;(o.event==="click"||o.event==="hover"&&u)&&(dg({title:"click",data:[{event:a,status:d===ln.OPEN?"closing":"opening"}],debug:o.debug}),o.toggle())}}),uo(os(o),"handleMouseEnter",function(){var i=o.props,a=i.event,s=i.open;if(!(xe.boolean(s)||kw())){var c=o.state.status;o.event==="hover"&&c===ln.IDLE&&(dg({title:"mouseEnter",data:[{key:"originalEvent",value:a}],debug:o.debug}),clearTimeout(o.eventDelayTimeout),o.toggle())}}),uo(os(o),"handleMouseLeave",function(){var i=o.props,a=i.event,s=i.eventDelay,c=i.open;if(!(xe.boolean(c)||kw())){var u=o.state,d=u.status,p=u.positionWrapper;o.event==="hover"&&(dg({title:"mouseLeave",data:[{key:"originalEvent",value:a}],debug:o.debug}),s?[ln.OPENING,ln.OPEN].indexOf(d)!==-1&&!p&&!o.eventDelayTimeout&&(o.eventDelayTimeout=setTimeout(function(){delete o.eventDelayTimeout,o.toggle()},s*1e3)):o.toggle(ln.IDLE))}}),o.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:ln.INIT,statusWrapper:ln.INIT},o._isMounted=!1,o.hasMounted=!1,us&&window.addEventListener("load",function(){o.popper&&o.popper.instance.update(),o.wrapperPopper&&o.wrapperPopper.instance.update()}),o}return Qh(n,[{key:"componentDidMount",value:function(){if(us){var o=this.state.positionWrapper,i=this.props,a=i.children,s=i.open,c=i.target;this._isMounted=!0,dg({title:"init",data:{hasChildren:!!a,hasTarget:!!c,isControlled:xe.boolean(s),positionWrapper:o,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!a&&c&&xe.boolean(s)}}},{key:"componentDidUpdate",value:function(o,i){if(us){var a=this.props,s=a.autoOpen,c=a.open,u=a.target,d=a.wrapperOptions,p=dh(i,this.state),f=p.changedFrom,h=p.changed;if(o.open!==c){var g;xe.boolean(c)&&(g=c?ln.OPENING:ln.CLOSING),this.toggle(g)}(o.wrapperOptions.position!==d.position||o.target!==u)&&this.changeWrapperPosition(this.props),h("status",ln.IDLE)&&c?this.toggle(ln.OPEN):f("status",ln.INIT,ln.IDLE)&&s&&this.toggle(ln.OPEN),this.popper&&h("status",ln.OPENING)&&this.popper.instance.update(),this.floaterRef&&(h("status",ln.OPENING)||h("status",ln.CLOSING))&&n4e(this.floaterRef,"transitionend",this.handleTransitionEnd),h("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){us&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var o=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,a=this.state.positionWrapper,s=this.props,c=s.disableFlip,u=s.getPopper,d=s.hideArrow,p=s.offset,f=s.placement,h=s.wrapperOptions,g=f==="top"||f==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(f==="center")this.setState({status:ln.IDLE});else if(i&&this.floaterRef){var v=this.options,y=v.arrow,b=v.flip,w=v.offset,S=f8(v,a4e);new gI(i,this.floaterRef,{placement:f,modifiers:Qn({arrow:Qn({enabled:!d,element:this.arrowRef},y),flip:Qn({enabled:!c,behavior:g},b),offset:Qn({offset:"0, ".concat(p,"px")},w)},S),onCreate:function(T){var R;if(o.popper=T,!((R=o.floaterRef)!==null&&R!==void 0&&R.isConnected)){o.setState({needsUpdate:!0});return}u(T,"floater"),o._isMounted&&o.setState({currentPlacement:T.placement,status:ln.IDLE}),f!==T.placement&&setTimeout(function(){T.instance.update()},1)},onUpdate:function(T){o.popper=T;var R=o.state.currentPlacement;o._isMounted&&T.placement!==R&&o.setState({currentPlacement:T.placement})}})}if(a){var k=xe.undefined(h.offset)?0:h.offset;new gI(this.target,this.wrapperRef,{placement:h.placement||f,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(k,"px")},flip:{enabled:!1}},onCreate:function(T){o.wrapperPopper=T,o._isMounted&&o.setState({statusWrapper:ln.IDLE}),u(T,"wrapper"),f!==T.placement&&setTimeout(function(){T.instance.update()},1)}})}}},{key:"rebuildPopper",value:function(){var o=this;this.floaterRefInterval=setInterval(function(){var i;(i=o.floaterRef)!==null&&i!==void 0&&i.isConnected&&(clearInterval(o.floaterRefInterval),o.setState({needsUpdate:!1}),o.initPopper())},50)}},{key:"changeWrapperPosition",value:function(o){var i=o.target,a=o.wrapperOptions;this.setState({positionWrapper:a.position&&!!i})}},{key:"toggle",value:function(o){var i=this.state.status,a=i===ln.OPEN?ln.CLOSING:ln.OPENING;xe.undefined(o)||(a=o),this.setState({status:a})}},{key:"debug",get:function(){var o=this.props.debug;return o||!!global.ReactFloaterDebug}},{key:"event",get:function(){var o=this.props,i=o.disableHoverToClick,a=o.event;return a==="hover"&&kw()&&!i?"click":a}},{key:"options",get:function(){var o=this.props.options;return Ea(ZIe,o||{})}},{key:"styles",get:function(){var o=this,i=this.state,a=i.status,s=i.positionWrapper,c=i.statusWrapper,u=this.props.styles,d=Ea(i4e(u),u);if(s){var p;[ln.IDLE].indexOf(a)===-1||[ln.IDLE].indexOf(c)===-1?p=d.wrapperPosition:p=this.wrapperPopper.styles,d.wrapper=Qn(Qn({},d.wrapper),p)}if(this.target){var f=window.getComputedStyle(this.target);this.wrapperStyles?d.wrapper=Qn(Qn({},d.wrapper),this.wrapperStyles):["relative","static"].indexOf(f.position)===-1&&(this.wrapperStyles={},s||(s4e.forEach(function(h){o.wrapperStyles[h]=f[h]}),d.wrapper=Qn(Qn({},d.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return d}},{key:"target",get:function(){if(!us)return null;var o=this.props.target;return o?xe.domElement(o)?o:document.querySelector(o):this.childRef||this.wrapperRef}},{key:"render",value:function(){var o=this.state,i=o.currentPlacement,a=o.positionWrapper,s=o.status,c=this.props,u=c.children,d=c.component,p=c.content,f=c.disableAnimation,h=c.footer,g=c.hideArrow,v=c.id,y=c.open,b=c.showCloseButton,w=c.style,S=c.target,k=c.title,A=Te.createElement(b8,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:w,styles:this.styles.wrapper},u),T={};return a?T.wrapperInPortal=A:T.wrapperAsChildren=A,Te.createElement("span",null,Te.createElement(h8,{hasChildren:!!u,id:v,placement:i,setRef:this.setFloaterRef,target:S,zIndex:this.styles.options.zIndex},Te.createElement(y8,{component:d,content:p,disableAnimation:f,footer:h,handleClick:this.handleClick,hideArrow:g||i==="center",open:y,placement:i,positionWrapper:a,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:b,status:s,styles:this.styles,title:k}),T.wrapperInPortal),T.wrapperAsChildren)}}]),n}(Te.Component);uo(dk,"propTypes",{autoOpen:pe.bool,callback:pe.func,children:pe.node,component:uI(pe.oneOfType([pe.func,pe.element]),function(e){return!e.content}),content:uI(pe.node,function(e){return!e.component}),debug:pe.bool,disableAnimation:pe.bool,disableFlip:pe.bool,disableHoverToClick:pe.bool,event:pe.oneOf(["hover","click"]),eventDelay:pe.number,footer:pe.node,getPopper:pe.func,hideArrow:pe.bool,id:pe.oneOfType([pe.string,pe.number]),offset:pe.number,open:pe.bool,options:pe.object,placement:pe.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:pe.bool,style:pe.object,styles:pe.object,target:pe.oneOfType([pe.object,pe.string]),title:pe.node,wrapperOptions:pe.shape({offset:pe.number,placement:pe.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:pe.bool})});uo(dk,"defaultProps",{autoOpen:!1,callback:bI,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:bI,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});function wI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ze(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wI(Object(n),!0).forEach(function(r){kt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,w8(r.key),r)}}function Ps(e,t,n){return t&&SI(e.prototype,t),n&&SI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function kt(e,t,n){return t=w8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zo(){return Zo=Object.assign?Object.assign.bind():function(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},Zo.apply(this,arguments)}function Nc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mx(e,t)}function Gv(e){return Gv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gv(e)}function Mx(e,t){return Mx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Mx(e,t)}function l4e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function c4e(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function qv(e,t){if(e==null)return{};var n=c4e(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u4e(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nr(e)}function Lc(e){var t=l4e();return function(){var r=Gv(e),o;if(t){var i=Gv(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return u4e(this,o)}}function d4e(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function w8(e){var t=d4e(e,"string");return typeof t=="symbol"?t:String(t)}var on={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},yi={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found",ERROR:"error"},Wt={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},Qt={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"},js=VD.canUseDOM,Pp=uy.createPortal!==void 0;function S8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:navigator.userAgent,t=e;return typeof window>"u"?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":window.opera||e.indexOf(" OPR/")>=0?t="opera":typeof window.InstallTrigger<"u"?t="firefox":window.chrome?t="chrome":/(Version\/([0-9._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function Aw(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Ip(e){var t=[],n=function r(o){if(typeof o=="string"||typeof o=="number")t.push(o);else if(Array.isArray(o))o.forEach(function(a){return r(a)});else if(o&&o.props){var i=o.props.children;Array.isArray(i)?i.forEach(function(a){return r(a)}):r(i)}};return n(e),t.join(" ").trim()}function xI(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function p4e(e,t){return!mr.plainObject(e)||!mr.array(t)?!1:Object.keys(e).every(function(n){return t.indexOf(n)!==-1})}function f4e(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,n=e.replace(t,function(o,i,a,s){return i+i+a+a+s+s}),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);return r?[parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16)]:[]}function CI(e){return e.disableBeacon||e.placement==="center"}function Dx(e,t){var n,r=m.isValidElement(e)||m.isValidElement(t),o=mr.undefined(e)||mr.undefined(t);if(Aw(e)!==Aw(t)||r||o)return!1;if(mr.domElement(e))return e.isSameNode(t);if(mr.number(e))return e===t;if(mr.function(e))return e.toString()===t.toString();for(var i in e)if(xI(e,i)){if(typeof e[i]>"u"||typeof t[i]>"u")return!1;if(n=Aw(e[i]),["object","array"].indexOf(n)!==-1&&Dx(e[i],t[i])||n==="function"&&Dx(e[i],t[i]))continue;if(e[i]!==t[i])return!1}for(var a in t)if(xI(t,a)&&typeof e[a]>"u")return!1;return!0}function EI(){return["chrome","safari","firefox","opera"].indexOf(S8())===-1}function bc(e){var t=e.title,n=e.data,r=e.warn,o=r===void 0?!1:r,i=e.debug,a=i===void 0?!1:i,s=o?console.warn||console.error:console.log;a&&(t&&n?(console.groupCollapsed("%creact-joyride: ".concat(t),"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(c){mr.plainObject(c)&&c.key?s.apply(console,[c.key,c.value]):s.apply(console,[c])}):s.apply(console,[n]),console.groupEnd()):console.error("Missing title or data props"))}var h4e={action:"",controlled:!1,index:0,lifecycle:Wt.INIT,size:0,status:Qt.IDLE},TI=["action","index","lifecycle","status"];function m4e(e){var t=new Map,n=new Map,r=function(){function o(){var i=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=a.continuous,c=s===void 0?!1:s,u=a.stepIndex,d=a.steps,p=d===void 0?[]:d;_s(this,o),kt(this,"listener",void 0),kt(this,"setSteps",function(f){var h=i.getState(),g=h.size,v=h.status,y={size:f.length,status:v};n.set("steps",f),v===Qt.WAITING&&!g&&f.length&&(y.status=Qt.RUNNING),i.setState(y)}),kt(this,"addListener",function(f){i.listener=f}),kt(this,"update",function(f){if(!p4e(f,TI))throw new Error("State is not valid. Valid keys: ".concat(TI.join(", ")));i.setState(Ze({},i.getNextState(Ze(Ze(Ze({},i.getState()),f),{},{action:f.action||on.UPDATE}),!0)))}),kt(this,"start",function(f){var h=i.getState(),g=h.index,v=h.size;i.setState(Ze(Ze({},i.getNextState({action:on.START,index:mr.number(f)?f:g},!0)),{},{status:v?Qt.RUNNING:Qt.WAITING}))}),kt(this,"stop",function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,h=i.getState(),g=h.index,v=h.status;[Qt.FINISHED,Qt.SKIPPED].indexOf(v)===-1&&i.setState(Ze(Ze({},i.getNextState({action:on.STOP,index:g+(f?1:0)})),{},{status:Qt.PAUSED}))}),kt(this,"close",function(){var f=i.getState(),h=f.index,g=f.status;g===Qt.RUNNING&&i.setState(Ze({},i.getNextState({action:on.CLOSE,index:h+1})))}),kt(this,"go",function(f){var h=i.getState(),g=h.controlled,v=h.status;if(!(g||v!==Qt.RUNNING)){var y=i.getSteps()[f];i.setState(Ze(Ze({},i.getNextState({action:on.GO,index:f})),{},{status:y?v:Qt.FINISHED}))}}),kt(this,"info",function(){return i.getState()}),kt(this,"next",function(){var f=i.getState(),h=f.index,g=f.status;g===Qt.RUNNING&&i.setState(i.getNextState({action:on.NEXT,index:h+1}))}),kt(this,"open",function(){var f=i.getState(),h=f.status;h===Qt.RUNNING&&i.setState(Ze({},i.getNextState({action:on.UPDATE,lifecycle:Wt.TOOLTIP})))}),kt(this,"prev",function(){var f=i.getState(),h=f.index,g=f.status;g===Qt.RUNNING&&i.setState(Ze({},i.getNextState({action:on.PREV,index:h-1})))}),kt(this,"reset",function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,h=i.getState(),g=h.controlled;g||i.setState(Ze(Ze({},i.getNextState({action:on.RESET,index:0})),{},{status:f?Qt.RUNNING:Qt.READY}))}),kt(this,"skip",function(){var f=i.getState(),h=f.status;h===Qt.RUNNING&&i.setState({action:on.SKIP,lifecycle:Wt.INIT,status:Qt.SKIPPED})}),this.setState({action:on.INIT,controlled:mr.number(u),continuous:c,index:mr.number(u)?u:0,lifecycle:Wt.INIT,status:p.length?Qt.READY:Qt.IDLE},!0),this.setSteps(p)}return Ps(o,[{key:"setState",value:function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=this.getState(),u=Ze(Ze({},c),a),d=u.action,p=u.index,f=u.lifecycle,h=u.size,g=u.status;t.set("action",d),t.set("index",p),t.set("lifecycle",f),t.set("size",h),t.set("status",g),s&&(t.set("controlled",a.controlled),t.set("continuous",a.continuous)),this.listener&&this.hasUpdatedState(c)&&this.listener(this.getState())}},{key:"getState",value:function(){return t.size?{action:t.get("action")||"",controlled:t.get("controlled")||!1,index:parseInt(t.get("index"),10),lifecycle:t.get("lifecycle")||"",size:t.get("size")||0,status:t.get("status")||""}:Ze({},h4e)}},{key:"getNextState",value:function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=this.getState(),u=c.action,d=c.controlled,p=c.index,f=c.size,h=c.status,g=mr.number(a.index)?a.index:p,v=d&&!s?p:Math.min(Math.max(g,0),f);return{action:a.action||u,controlled:d,index:v,lifecycle:a.lifecycle||Wt.INIT,size:a.size||f,status:v===f?Qt.FINISHED:a.status||h}}},{key:"hasUpdatedState",value:function(a){var s=JSON.stringify(a),c=JSON.stringify(this.getState());return s!==c}},{key:"getSteps",value:function(){var a=n.get("steps");return Array.isArray(a)?a:[]}},{key:"getHelpers",value:function(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}}]),o}();return new r(e)}function x8(e){return e?e.getBoundingClientRect():{}}function g4e(){var e=document,t=e.body,n=e.documentElement;return!t||!n?0:Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function il(e){return typeof e=="string"?document.querySelector(e):e}function v4e(e){return!e||e.nodeType!==1?{}:getComputedStyle(e)}function f0(e,t,n){var r=qD(e);if(r.isSameNode(vf()))return n?document:vf();var o=r.scrollHeight>r.offsetHeight;return!o&&!t?(r.style.overflow="initial",vf()):r}function h0(e,t){if(!e)return!1;var n=f0(e,t);return!n.isSameNode(vf())}function y4e(e){return e.offsetParent!==document.body}function id(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"fixed";if(!e||!(e instanceof HTMLElement))return!1;var n=e.nodeName;return n==="BODY"||n==="HTML"?!1:v4e(e).position===t?!0:id(e.parentNode,t)}function b4e(e){if(!e)return!1;for(var t=e;t&&t!==document.body;){if(t instanceof HTMLElement){var n=getComputedStyle(t),r=n.display,o=n.visibility;if(r==="none"||o==="hidden")return!1}t=t.parentNode}return!0}function w4e(e,t,n){var r=x8(e),o=f0(e,n),i=h0(e,n),a=0;o instanceof HTMLElement&&(a=o.scrollTop);var s=r.top+(!i&&!id(e)?a:0);return Math.floor(s-t)}function Bx(e){return e instanceof HTMLElement?e.offsetParent instanceof HTMLElement?Bx(e.offsetParent)+e.offsetTop:e.offsetTop:0}function S4e(e,t,n){if(!e)return 0;var r=qD(e),o=Bx(e);return h0(e,n)&&!y4e(e)&&(o-=Bx(r)),Math.floor(o-t)}function vf(){return document.scrollingElement||document.createElement("body")}function x4e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vf(),n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:300;return new Promise(function(r,o){var i=t.scrollTop,a=e>i?e-i:i-e;F3e.top(t,e,{duration:a<100?50:n},function(s){return s&&s.message!=="Element already at target scroll position"?o(s):r()})})}function C4e(e){function t(r,o,i,a,s,c){var u=a||"<<anonymous>>",d=c||i;if(o[i]==null)return r?new Error("Required ".concat(s," `").concat(d,"` was not specified in `").concat(u,"`.")):null;for(var p=arguments.length,f=new Array(p>6?p-6:0),h=6;h<p;h++)f[h-6]=arguments[h];return e.apply(void 0,[o,i,u,s,d].concat(f))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}C4e(function(e,t,n,r,o){var i=e[t],a=i;if(!Te.isValidElement(i)&&Rp.isValidElementType(i)){var s={ref:function(){},step:{}};a=Te.createElement(a,s)}if(mr.string(i)||mr.number(i)||!Rp.isValidElementType(i)||[Rp.Element,Rp.ForwardRef].indexOf(Rp.typeOf(a))===-1)return new Error("Invalid ".concat(r," `").concat(o,"` supplied to `").concat(n,"`. Expected a React class or forwardRef."))});var E4e={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",zIndex:100},Op={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},kI={borderRadius:4,position:"absolute"};function T4e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Ea(E4e,e.options||{}),n=290;window.innerWidth>480&&(n=380),t.width&&(window.innerWidth<t.width?n=window.innerWidth-30:n=t.width);var r={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:t.zIndex},o={beacon:Ze(Ze({},Op),{},{display:"inline-block",height:t.beaconSize,position:"relative",width:t.beaconSize,zIndex:t.zIndex}),beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:t.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:"rgba(".concat(f4e(t.primaryColor).join(","),", 0.2)"),border:"2px solid ".concat(t.primaryColor),borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:t.backgroundColor,borderRadius:5,boxSizing:"border-box",color:t.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:n},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:Ze(Ze({},Op),{},{backgroundColor:t.primaryColor,borderRadius:4,color:"#fff"}),buttonBack:Ze(Ze({},Op),{},{color:t.primaryColor,marginLeft:"auto",marginRight:5}),buttonClose:Ze(Ze({},Op),{},{color:t.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14}),buttonSkip:Ze(Ze({},Op),{},{color:t.textColor,fontSize:14}),overlay:Ze(Ze({},r),{},{backgroundColor:t.overlayColor,mixBlendMode:"hard-light"}),overlayLegacy:Ze({},r),overlayLegacyCenter:Ze(Ze({},r),{},{backgroundColor:t.overlayColor}),spotlight:Ze(Ze({},kI),{},{backgroundColor:"gray"}),spotlightLegacy:Ze(Ze({},kI),{},{boxShadow:"0 0 0 9999px ".concat(t.overlayColor,", ").concat(t.spotlightShadow)}),floaterStyles:{arrow:{color:t.arrowColor},options:{zIndex:t.zIndex+100}},options:t};return Ea(o,e)}var Rw={floaterProps:{options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},locale:{back:"Back",close:"Close",last:"Last",next:"Next",open:"Open the dialog",skip:"Skip"},step:{event:"click",placement:"bottom",offset:10}};function k4e(e){var t=["beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent"];return Object.keys(e).filter(function(n){return t.indexOf(n)!==-1}).reduce(function(n,r){return n[r]=e[r],n},{})}function $p(e,t){if(!e)return null;var n=Ea.all([k4e(t),Rw.step,e],{isMergeableObject:mr.plainObject}),r=T4e(Ea(t.styles||{},e.styles||{})),o=h0(il(e.target),n.disableScrollParentFix),i=Ea.all([t.floaterProps||{},Rw.floaterProps,n.floaterProps||{}]);return i.offset=n.offset,i.styles=Ea(i.styles||{},r.floaterStyles||{}),delete r.floaterStyles,i.offset+=t.spotlightPadding||e.spotlightPadding||0,e.placementBeacon&&(i.wrapperOptions.placement=e.placementBeacon),o&&(i.options.preventOverflow.boundariesElement="window"),Ze(Ze({},n),{},{locale:Ea.all([Rw.locale,t.locale||{},n.locale||{}]),floaterProps:i,styles:r})}function C8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return mr.plainObject(e)?e.target?!0:(bc({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(bc({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function AI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return mr.array(e)?e.every(function(n){return C8(n,t)}):(bc({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var A4e=Ps(function e(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(_s(this,e),kt(this,"element",void 0),kt(this,"options",void 0),kt(this,"canBeTabbed",function(o){var i=o.tabIndex;(i===null||i<0)&&(i=void 0);var a=isNaN(i);return!a&&n.canHaveFocus(o)}),kt(this,"canHaveFocus",function(o){var i=/input|select|textarea|button|object/,a=o.nodeName.toLowerCase(),s=i.test(a)&&!o.getAttribute("disabled")||a==="a"&&!!o.getAttribute("href");return s&&n.isVisible(o)}),kt(this,"findValidTabElements",function(){return[].slice.call(n.element.querySelectorAll("*"),0).filter(n.canBeTabbed)}),kt(this,"handleKeyDown",function(o){var i=n.options.keyCode,a=i===void 0?9:i;o.keyCode===a&&n.interceptTab(o)}),kt(this,"interceptTab",function(o){var i=n.findValidTabElements();if(i.length){o.preventDefault();var a=o.shiftKey,s=i.indexOf(document.activeElement);s===-1||!a&&s+1===i.length?s=0:a&&s===0?s=i.length-1:s+=a?-1:1,i[s].focus()}}),kt(this,"isHidden",function(o){var i=o.offsetWidth<=0&&o.offsetHeight<=0,a=window.getComputedStyle(o);return i&&!o.innerHTML?!0:i&&a.getPropertyValue("overflow")!=="visible"||a.getPropertyValue("display")==="none"}),kt(this,"isVisible",function(o){for(var i=o;i;)if(i instanceof HTMLElement){if(i===document.body)break;if(n.isHidden(i))return!1;i=i.parentNode}return!0}),kt(this,"removeScope",function(){window.removeEventListener("keydown",n.handleKeyDown)}),kt(this,"checkFocus",function(o){document.activeElement!==o&&(o.focus(),window.requestAnimationFrame(function(){return n.checkFocus(o)}))}),kt(this,"setFocus",function(){var o=n.options.selector;if(o){var i=n.element.querySelector(o);i&&window.requestAnimationFrame(function(){return n.checkFocus(i)})}}),!(t instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=t,this.options=r,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}),R4e=function(e){Nc(n,e);var t=Lc(n);function n(r){var o;if(_s(this,n),o=t.call(this,r),kt(nr(o),"setBeaconRef",function(c){o.beacon=c}),!r.beaconComponent){var i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style"),s=`
405
- @keyframes joyride-beacon-inner {
406
- 20% {
407
- opacity: 0.9;
408
- }
409
-
410
- 90% {
411
- opacity: 0.7;
412
- }
413
- }
414
-
415
- @keyframes joyride-beacon-outer {
416
- 0% {
417
- transform: scale(1);
418
- }
419
-
420
- 45% {
421
- opacity: 0.7;
422
- transform: scale(0.75);
423
- }
424
-
425
- 100% {
426
- opacity: 0.9;
427
- transform: scale(1);
428
- }
429
- }
430
- `;a.type="text/css",a.id="joyride-beacon-animation",r.nonce!==void 0&&a.setAttribute("nonce",r.nonce),a.appendChild(document.createTextNode(s)),i.appendChild(a)}return o}return Ps(n,[{key:"componentDidMount",value:function(){var o=this,i=this.props.shouldFocus;setTimeout(function(){mr.domElement(o.beacon)&&i&&o.beacon.focus()},0)}},{key:"componentWillUnmount",value:function(){var o=document.getElementById("joyride-beacon-animation");o&&o.parentNode.removeChild(o)}},{key:"render",value:function(){var o=this.props,i=o.beaconComponent,a=o.locale,s=o.onClickOrHover,c=o.styles,u={"aria-label":a.open,onClick:s,onMouseEnter:s,ref:this.setBeaconRef,title:a.open},d;if(i){var p=i;d=Te.createElement(p,u)}else d=Te.createElement("button",Zo({key:"JoyrideBeacon",className:"react-joyride__beacon",style:c.beacon,type:"button"},u),Te.createElement("span",{style:c.beaconInner}),Te.createElement("span",{style:c.beaconOuter}));return d}}]),n}(Te.Component);function _4e(e){var t=e.styles;return Te.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight",style:t})}var P4e=["mixBlendMode","zIndex"],I4e=function(e){Nc(n,e);var t=Lc(n);function n(){var r;_s(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),kt(nr(r),"_isMounted",!1),kt(nr(r),"state",{mouseOverSpotlight:!1,isScrolling:!1,showSpotlight:!0}),kt(nr(r),"handleMouseMove",function(s){var c=r.state.mouseOverSpotlight,u=r.spotlightStyles,d=u.height,p=u.left,f=u.position,h=u.top,g=u.width,v=f==="fixed"?s.clientY:s.pageY,y=f==="fixed"?s.clientX:s.pageX,b=v>=h&&v<=h+d,w=y>=p&&y<=p+g,S=w&&b;S!==c&&r.updateState({mouseOverSpotlight:S})}),kt(nr(r),"handleScroll",function(){var s=r.props.target,c=il(s);if(r.scrollParent!==document){var u=r.state.isScrolling;u||r.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(r.scrollTimeout),r.scrollTimeout=setTimeout(function(){r.updateState({isScrolling:!1,showSpotlight:!0})},50)}else id(c,"sticky")&&r.updateState({})}),kt(nr(r),"handleResize",function(){clearTimeout(r.resizeTimeout),r.resizeTimeout=setTimeout(function(){r._isMounted&&r.forceUpdate()},100)}),r}return Ps(n,[{key:"componentDidMount",value:function(){var o=this.props;o.debug,o.disableScrolling;var i=o.disableScrollParentFix,a=o.target,s=il(a);this.scrollParent=f0(s,i,!0),this._isMounted=!0,window.addEventListener("resize",this.handleResize)}},{key:"componentDidUpdate",value:function(o){var i=this,a=this.props,s=a.lifecycle,c=a.spotlightClicks,u=dh(o,this.props),d=u.changed;d("lifecycle",Wt.TOOLTIP)&&(this.scrollParent.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(function(){var p=i.state.isScrolling;p||i.updateState({showSpotlight:!0})},100)),(d("spotlightClicks")||d("disableOverlay")||d("lifecycle"))&&(c&&s===Wt.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):s!==Wt.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),this.scrollParent.removeEventListener("scroll",this.handleScroll)}},{key:"spotlightStyles",get:function(){var o=this.state.showSpotlight,i=this.props,a=i.disableScrollParentFix,s=i.spotlightClicks,c=i.spotlightPadding,u=i.styles,d=i.target,p=il(d),f=x8(p),h=id(p),g=w4e(p,c,a);return Ze(Ze({},EI()?u.spotlightLegacy:u.spotlight),{},{height:Math.round(f.height+c*2),left:Math.round(f.left-c),opacity:o?1:0,pointerEvents:s?"none":"auto",position:h?"fixed":"absolute",top:g,transition:"opacity 0.2s",width:Math.round(f.width+c*2)})}},{key:"updateState",value:function(o){this._isMounted&&this.setState(o)}},{key:"render",value:function(){var o=this.state,i=o.mouseOverSpotlight,a=o.showSpotlight,s=this.props,c=s.disableOverlay,u=s.disableOverlayClose,d=s.lifecycle,p=s.onClickOverlay,f=s.placement,h=s.styles;if(c||d!==Wt.TOOLTIP)return null;var g=h.overlay;EI()&&(g=f==="center"?h.overlayLegacyCenter:h.overlayLegacy);var v=Ze({cursor:u?"default":"pointer",height:g4e(),pointerEvents:i?"none":"auto"},g),y=f!=="center"&&a&&Te.createElement(_4e,{styles:this.spotlightStyles});if(S8()==="safari"){v.mixBlendMode,v.zIndex;var b=qv(v,P4e);y=Te.createElement("div",{style:Ze({},b)},y),delete v.backgroundColor}return Te.createElement("div",{className:"react-joyride__overlay",style:v,onClick:p},y)}}]),n}(Te.Component),O4e=["styles"],$4e=["color","height","width"];function N4e(e){var t=e.styles,n=qv(e,O4e),r=t.color,o=t.height,i=t.width,a=qv(t,$4e);return Te.createElement("button",Zo({style:a,type:"button"},n),Te.createElement("svg",{width:typeof i=="number"?"".concat(i,"px"):i,height:typeof o=="number"?"".concat(o,"px"):o,viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},Te.createElement("g",null,Te.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))}var L4e=function(e){Nc(n,e);var t=Lc(n);function n(){return _s(this,n),t.apply(this,arguments)}return Ps(n,[{key:"render",value:function(){var o=this.props,i=o.backProps,a=o.closeProps,s=o.continuous,c=o.index,u=o.isLastStep,d=o.primaryProps,p=o.size,f=o.skipProps,h=o.step,g=o.tooltipProps,v=h.content,y=h.hideBackButton,b=h.hideCloseButton,w=h.hideFooter,S=h.showProgress,k=h.showSkipButton,A=h.title,T=h.styles,R=h.locale,P=R.back,_=R.close,I=R.last,$=R.next,U=R.skip,M={primary:_};return s&&(M.primary=u?I:$,S&&(M.primary=Te.createElement("span",null,M.primary," (",c+1,"/",p,")"))),k&&!u&&(M.skip=Te.createElement("button",Zo({style:T.buttonSkip,type:"button","aria-live":"off"},f),U)),!y&&c>0&&(M.back=Te.createElement("button",Zo({style:T.buttonBack,type:"button"},i),P)),M.close=!b&&Te.createElement(N4e,Zo({styles:T.buttonClose},a)),Te.createElement("div",Zo({key:"JoyrideTooltip",className:"react-joyride__tooltip",style:T.tooltip},g),Te.createElement("div",{style:T.tooltipContainer},A&&Te.createElement("h4",{style:T.tooltipTitle,"aria-label":A},A),Te.createElement("div",{style:T.tooltipContent},v)),!w&&Te.createElement("div",{style:T.tooltipFooter},Te.createElement("div",{style:T.tooltipFooterSpacer},M.skip),M.back,Te.createElement("button",Zo({style:T.buttonNext,type:"button"},d),M.primary)),M.close)}}]),n}(Te.Component),M4e=["beaconComponent","tooltipComponent"],D4e=function(e){Nc(n,e);var t=Lc(n);function n(){var r;_s(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),kt(nr(r),"handleClickBack",function(s){s.preventDefault();var c=r.props.helpers;c.prev()}),kt(nr(r),"handleClickClose",function(s){s.preventDefault();var c=r.props.helpers;c.close()}),kt(nr(r),"handleClickPrimary",function(s){s.preventDefault();var c=r.props,u=c.continuous,d=c.helpers;if(!u){d.close();return}d.next()}),kt(nr(r),"handleClickSkip",function(s){s.preventDefault();var c=r.props.helpers;c.skip()}),kt(nr(r),"getElementsProps",function(){var s=r.props,c=s.continuous,u=s.isLastStep,d=s.setTooltipRef,p=s.step,f=Ip(p.locale.back),h=Ip(p.locale.close),g=Ip(p.locale.last),v=Ip(p.locale.next),y=Ip(p.locale.skip),b=c?v:h;return u&&(b=g),{backProps:{"aria-label":f,"data-action":"back",onClick:r.handleClickBack,role:"button",title:f},closeProps:{"aria-label":h,"data-action":"close",onClick:r.handleClickClose,role:"button",title:h},primaryProps:{"aria-label":b,"data-action":"primary",onClick:r.handleClickPrimary,role:"button",title:b},skipProps:{"aria-label":y,"data-action":"skip",onClick:r.handleClickSkip,role:"button",title:y},tooltipProps:{"aria-modal":!0,ref:d,role:"alertdialog"}}}),r}return Ps(n,[{key:"render",value:function(){var o=this.props,i=o.continuous,a=o.index,s=o.isLastStep,c=o.size,u=o.step;u.beaconComponent;var d=u.tooltipComponent,p=qv(u,M4e),f;if(d){var h=Ze(Ze({},this.getElementsProps()),{},{continuous:i,index:a,isLastStep:s,size:c,step:p}),g=d;f=Te.createElement(g,h)}else f=Te.createElement(L4e,Zo({},this.getElementsProps(),{continuous:i,index:a,isLastStep:s,size:c,step:u}));return f}}]),n}(Te.Component),B4e=function(e){Nc(n,e);var t=Lc(n);function n(){return _s(this,n),t.apply(this,arguments)}return Ps(n,[{key:"componentDidMount",value:function(){js&&(Pp||this.renderReact15())}},{key:"componentDidUpdate",value:function(){js&&(Pp||this.renderReact15())}},{key:"componentWillUnmount",value:function(){!js||!this.node||(Pp||Ei.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var o=this.props.id;this.node||(this.node=document.createElement("div"),o&&(this.node.id=o),document.body.appendChild(this.node))}},{key:"renderReact15",value:function(){if(!js)return null;var o=this.props.children;return this.node||this.appendNode(),Ei.unstable_renderSubtreeIntoContainer(this,o,this.node),null}},{key:"renderReact16",value:function(){if(!js||!Pp)return null;var o=this.props.children;return this.node||this.appendNode(),Ei.createPortal(o,this.node)}},{key:"render",value:function(){return Pp?this.renderReact16():null}}]),n}(Te.Component),F4e=function(e){Nc(n,e);var t=Lc(n);function n(){var r;_s(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),kt(nr(r),"scope",{removeScope:function(){}}),kt(nr(r),"handleClickHoverBeacon",function(s){var c=r.props,u=c.step,d=c.update;s.type==="mouseenter"&&u.event!=="hover"||d({lifecycle:Wt.TOOLTIP})}),kt(nr(r),"handleClickOverlay",function(){var s=r.props,c=s.helpers,u=s.step;u.disableOverlayClose||c.close()}),kt(nr(r),"setTooltipRef",function(s){r.tooltip=s}),kt(nr(r),"setPopper",function(s,c){var u=r.props,d=u.action,p=u.setPopper,f=u.update;c==="wrapper"?r.beaconPopper=s:r.tooltipPopper=s,p(s,c),r.beaconPopper&&r.tooltipPopper&&f({action:d===on.CLOSE?on.CLOSE:d,lifecycle:Wt.READY})}),r}return Ps(n,[{key:"componentDidMount",value:function(){var o=this.props,i=o.debug,a=o.index;bc({title:"step:".concat(a),data:[{key:"props",value:this.props}],debug:i})}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.action,s=i.callback,c=i.continuous,u=i.controlled,d=i.debug,p=i.index,f=i.lifecycle,h=i.size,g=i.status,v=i.step,y=i.update,b=dh(o,this.props),w=b.changed,S=b.changedFrom,k={action:a,controlled:u,index:p,lifecycle:f,size:h,status:g},A=c&&a!==on.CLOSE&&(p>0||a===on.PREV),T=w("action")||w("index")||w("lifecycle")||w("status"),R=S("lifecycle",[Wt.TOOLTIP,Wt.INIT],Wt.INIT),P=w("action",[on.NEXT,on.PREV,on.SKIP,on.CLOSE]);if(P&&(R||u)&&s(Ze(Ze({},k),{},{index:o.index,lifecycle:Wt.COMPLETE,step:o.step,type:yi.STEP_AFTER})),v.placement==="center"&&g===Qt.RUNNING&&w("index")&&a!==on.START&&f===Wt.INIT&&y({lifecycle:Wt.READY}),T){var _=il(v.target),I=!!_,$=I&&b4e(_);$?(S("status",Qt.READY,Qt.RUNNING)||S("lifecycle",Wt.INIT,Wt.READY))&&s(Ze(Ze({},k),{},{step:v,type:yi.STEP_BEFORE})):(console.warn(I?"Target not visible":"Target not mounted",v),s(Ze(Ze({},k),{},{type:yi.TARGET_NOT_FOUND,step:v})),u||y({index:p+([on.PREV].indexOf(a)!==-1?-1:1)}))}S("lifecycle",Wt.INIT,Wt.READY)&&y({lifecycle:CI(v)||A?Wt.TOOLTIP:Wt.BEACON}),w("index")&&bc({title:"step:".concat(f),data:[{key:"props",value:this.props}],debug:d}),w("lifecycle",Wt.BEACON)&&s(Ze(Ze({},k),{},{step:v,type:yi.BEACON})),w("lifecycle",Wt.TOOLTIP)&&(s(Ze(Ze({},k),{},{step:v,type:yi.TOOLTIP})),this.scope=new A4e(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus()),S("lifecycle",[Wt.TOOLTIP,Wt.INIT],Wt.INIT)&&(this.scope.removeScope(),delete this.beaconPopper,delete this.tooltipPopper)}},{key:"componentWillUnmount",value:function(){this.scope.removeScope()}},{key:"open",get:function(){var o=this.props,i=o.step,a=o.lifecycle;return!!(CI(i)||a===Wt.TOOLTIP)}},{key:"render",value:function(){var o=this.props,i=o.continuous,a=o.debug,s=o.helpers,c=o.index,u=o.lifecycle,d=o.nonce,p=o.shouldScroll,f=o.size,h=o.step,g=il(h.target);return!C8(h)||!mr.domElement(g)?null:Te.createElement("div",{key:"JoyrideStep-".concat(c),className:"react-joyride__step"},Te.createElement(B4e,{id:"react-joyride-portal"},Te.createElement(I4e,Zo({},h,{debug:a,lifecycle:u,onClickOverlay:this.handleClickOverlay}))),Te.createElement(dk,Zo({component:Te.createElement(D4e,{continuous:i,helpers:s,index:c,isLastStep:c+1===f,setTooltipRef:this.setTooltipRef,size:f,step:h}),debug:a,getPopper:this.setPopper,id:"react-joyride-step-".concat(c),isPositioned:h.isFixed||id(g),open:this.open,placement:h.placement,target:h.target},h.floaterProps),Te.createElement(R4e,{beaconComponent:h.beaconComponent,locale:h.locale,nonce:d,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:p,styles:h.styles})))}}]),n}(Te.Component),E8=function(e){Nc(n,e);var t=Lc(n);function n(r){var o;return _s(this,n),o=t.call(this,r),kt(nr(o),"initStore",function(){var i=o.props,a=i.debug,s=i.getHelpers,c=i.run,u=i.stepIndex;o.store=new m4e(Ze(Ze({},o.props),{},{controlled:c&&mr.number(u)})),o.helpers=o.store.getHelpers();var d=o.store.addListener;return bc({title:"init",data:[{key:"props",value:o.props},{key:"state",value:o.state}],debug:a}),d(o.syncState),s(o.helpers),o.store.getState()}),kt(nr(o),"callback",function(i){var a=o.props.callback;mr.function(a)&&a(i)}),kt(nr(o),"handleKeyboard",function(i){var a=o.state,s=a.index,c=a.lifecycle,u=o.props.steps,d=u[s],p=window.Event?i.which:i.keyCode;c===Wt.TOOLTIP&&p===27&&d&&!d.disableCloseOnEsc&&o.store.close()}),kt(nr(o),"syncState",function(i){o.setState(i)}),kt(nr(o),"setPopper",function(i,a){a==="wrapper"?o.beaconPopper=i:o.tooltipPopper=i}),kt(nr(o),"shouldScroll",function(i,a,s,c,u,d,p){return!i&&(a!==0||s||c===Wt.TOOLTIP)&&u.placement!=="center"&&(!u.isFixed||!id(d))&&p.lifecycle!==c&&[Wt.BEACON,Wt.TOOLTIP].indexOf(c)!==-1}),o.state=o.initStore(),o}return Ps(n,[{key:"componentDidMount",value:function(){if(js){var o=this.props,i=o.disableCloseOnEsc,a=o.debug,s=o.run,c=o.steps,u=this.store.start;AI(c,a)&&s&&u(),i||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}}},{key:"componentDidUpdate",value:function(o,i){if(js){var a=this.state,s=a.action,c=a.controlled,u=a.index,d=a.lifecycle,p=a.status,f=this.props,h=f.debug,g=f.run,v=f.stepIndex,y=f.steps,b=o.steps,w=o.stepIndex,S=this.store,k=S.reset,A=S.setSteps,T=S.start,R=S.stop,P=S.update,_=dh(o,this.props),I=_.changed,$=dh(i,this.state),U=$.changed,M=$.changedFrom,D=$p(y[u],this.props),K=!Dx(b,y),H=mr.number(v)&&I("stepIndex"),Q=il(D==null?void 0:D.target);if(K&&(AI(y,h)?A(y):console.warn("Steps are not valid",y)),I("run")&&(g?T(v):R()),H){var V=w<v?on.NEXT:on.PREV;s===on.STOP&&(V=on.START),[Qt.FINISHED,Qt.SKIPPED].indexOf(p)===-1&&P({action:s===on.CLOSE?on.CLOSE:V,index:v,lifecycle:Wt.INIT})}!c&&p===Qt.RUNNING&&u===0&&!Q&&(P({index:u+1}),this.callback(Ze(Ze({},this.state),{},{type:yi.TARGET_NOT_FOUND,step:D})));var j=Ze(Ze({},this.state),{},{index:u,step:D}),z=U("action",[on.NEXT,on.PREV,on.SKIP,on.CLOSE]);if(z&&U("status",Qt.PAUSED)){var O=$p(y[i.index],this.props);this.callback(Ze(Ze({},j),{},{index:i.index,lifecycle:Wt.COMPLETE,step:O,type:yi.STEP_AFTER}))}if(U("status",[Qt.FINISHED,Qt.SKIPPED])){var B=$p(y[i.index],this.props);c||this.callback(Ze(Ze({},j),{},{index:i.index,lifecycle:Wt.COMPLETE,step:B,type:yi.STEP_AFTER})),this.callback(Ze(Ze({},j),{},{index:i.index,step:B,type:yi.TOUR_END})),k()}else M("status",[Qt.IDLE,Qt.READY],Qt.RUNNING)?this.callback(Ze(Ze({},j),{},{type:yi.TOUR_START})):U("status")?this.callback(Ze(Ze({},j),{},{type:yi.TOUR_STATUS})):U("action",on.RESET)&&this.callback(Ze(Ze({},j),{},{type:yi.TOUR_STATUS}));D&&(this.scrollToStep(i),D.placement==="center"&&p===Qt.RUNNING&&s===on.START&&d===Wt.INIT&&P({lifecycle:Wt.READY}))}}},{key:"componentWillUnmount",value:function(){var o=this.props.disableCloseOnEsc;o||document.body.removeEventListener("keydown",this.handleKeyboard)}},{key:"scrollToStep",value:function(o){var i=this.state,a=i.index,s=i.lifecycle,c=i.status,u=this.props,d=u.debug,p=u.disableScrollParentFix,f=u.scrollToFirstStep,h=u.scrollOffset,g=u.scrollDuration,v=u.steps,y=$p(v[a],this.props);if(y){var b=il(y.target),w=this.shouldScroll(y.disableScrolling,a,f,s,y,b,o);if(c===Qt.RUNNING&&w){var S=h0(b,p),k=f0(b,p),A=Math.floor(S4e(b,h,p))||0;if(bc({title:"scrollToStep",data:[{key:"index",value:a},{key:"lifecycle",value:s},{key:"status",value:c}],debug:d}),s===Wt.BEACON&&this.beaconPopper){var T=this.beaconPopper,R=T.placement,P=T.popper;["bottom"].indexOf(R)===-1&&!S&&(A=Math.floor(P.top-h))}else if(s===Wt.TOOLTIP&&this.tooltipPopper){var _=this.tooltipPopper,I=_.flipped,$=_.placement,U=_.popper;["top","right","left"].indexOf($)!==-1&&!I&&!S?A=Math.floor(U.top-h):A-=y.spotlightPadding}A=A>=0?A:0,c===Qt.RUNNING&&x4e(A,k,g)}}}},{key:"render",value:function(){if(!js)return null;var o=this.state,i=o.index,a=o.status,s=this.props,c=s.continuous,u=s.debug,d=s.nonce,p=s.scrollToFirstStep,f=s.steps,h=$p(f[i],this.props),g;return a===Qt.RUNNING&&h&&(g=Te.createElement(F4e,Zo({},this.state,{callback:this.callback,continuous:c,debug:u,setPopper:this.setPopper,helpers:this.helpers,nonce:d,shouldScroll:!h.disableScrolling&&(i!==0||p),step:h,update:this.store.update}))),Te.createElement("div",{className:"react-joyride"},g)}}]),n}(Te.Component);kt(E8,"defaultProps",{continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:function(){},hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]});const z4e=C(z2)(({theme:e})=>({"& .MuiDialog-paper":{borderRadius:e.shape.borderRadiusMedium,width:"100%",maxWidth:e.spacing(45),padding:e.spacing(3)}})),j4e=C("div")(({theme:e})=>({"@keyframes pulse":{"0%":{boxShadow:`0 0 0 0 ${yt(e.palette.spotlight.pulse,1)}`},"70%":{boxShadow:`0 0 0 16px ${yt(e.palette.spotlight.pulse,0)}`},"100%":{boxShadow:`0 0 0 0 ${yt(e.palette.spotlight.pulse,0)}`}},position:"relative",backgroundColor:e.palette.background.paper,color:e.palette.text.primary,borderRadius:e.shape.borderRadiusMedium,width:"100%",maxWidth:e.spacing(45),padding:e.spacing(3)})),RI=C(Ht)(({theme:e})=>({position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.neutral.main})),_I=C("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1),marginBottom:e.spacing(1),flexWrap:"wrap",paddingRight:e.spacing(4)})),PI=C("div")(({theme:e})=>({display:"flex",justifyContent:"space-between",marginTop:e.spacing(3),"&&& button":{fontSize:e.fontSizes.smallBody}})),U4e=({tooltipProps:e,step:t,topic:n,topics:r,stepIndex:o,onClose:i,onBack:a,onNext:s})=>{const c=o===0?"Start":o===r[n].steps.length-1?"Finish":"Next";return t.target==="body"?l("div",{...e,children:x(z4e,{open:!0,onClose:(u,d)=>{d!=="backdropClick"&&i()},transitionDuration:0,hideBackdrop:!0,children:[l(RI,{"aria-label":"close",onClick:i,children:l(mc,{})}),l(_I,{children:l(q,{condition:!!t.title,show:t.title,elseShow:l(se,{fontWeight:"bold",children:r[n].title})})}),t.content,x(PI,{children:[l("div",{children:l(q,{condition:n>0||o>0,show:l(Ve,{variant:"outlined",onClick:()=>a(t),children:"Back"})})}),l("div",{children:l(q,{condition:!!t.nextButton,show:l(Ve,{onClick:()=>s(o),variant:"contained",sx:{alignSelf:"flex-end"},"data-testid":"DEMO_NEXT_BUTTON",children:c})})})]})]})}):x(j4e,{...e,children:[l(RI,{"aria-label":"close",onClick:i,children:l(mc,{})}),l(_I,{children:l(q,{condition:!!t.title,show:t.title,elseShow:l(se,{fontWeight:"bold",children:r[n].title})})}),t.content,x(PI,{children:[l("div",{children:l(q,{condition:n>0||o>0,show:l(Ve,{variant:"outlined",onClick:()=>a(t),children:"Back"})})}),l("div",{children:l(q,{condition:!!t.nextButton,show:l(Ve,{onClick:()=>s(o),variant:"contained",sx:{alignSelf:"flex-end"},"data-testid":"DEMO_NEXT_BUTTON",children:c})})})]})]})},W4e=({setExpanded:e,step:t,setStep:n,stepsCompletion:r,setStepsCompletion:o,topic:i,setTopic:a,topics:s,onFinish:c})=>{const u=gn(),d=gt(),p=Ho(),{trackEvent:f}=Dr(),[h,g]=m.useState(!1),[v,y]=m.useState("load"),b=new AbortController,w=($,U)=>{g(!1),U!==void 0&&(r[$]<U&&o(M=>{const D=[...M];return D[$]=U,D}),n(U)),a($)},S=()=>{b.abort(),w(-1),f("demo-close",{props:{topic:s[i].title,step:t+1}})},k=()=>{if(y("back"),t===0){const $=i-1;w($,s[$].steps.length-1)}else w(i,t-1)},A=()=>{const $=i,U=s.findIndex((M,D)=>D!==$&&r[D]<M.steps.length)??-1;U===-1?(w(-1),e(!1),c()):w(U,0)},T=($=t)=>{y("next"),w(i,$+1),$===s[i].steps.length-1&&A()},R=$=>{const{action:U,index:M,step:D}=$;if(U===on.CLOSE&&S(),U===on.UPDATE){const K=document.querySelector(D.target);if(K){if(K.scrollIntoView({block:"center"}),D.focus)if(D.focus===!0)K.focus();else{const H=K.querySelector(D.focus);H==null||H.focus()}if(!D.nextButton){const H=Q=>{b.abort(),T(M),D.preventDefault&&Q.preventDefault()};D.anyClick?window.addEventListener("click",Q=>{const V=Q.target;!V.closest(".__floater")&&!V.className.includes("react-joyride__overlay")&&H(Q)},{signal:b.signal}):K.addEventListener("click",H,{signal:b.signal})}}}},P=$=>{var U,M;$.backCloseModal&&((U=document.querySelector(".MuiModal-backdrop"))==null||U.click()),$.backCollapseExpanded&&((M=document.querySelector('.Mui-expanded[role="button"]'))==null||M.click()),k()},_=($,U=0)=>{setTimeout(()=>{document.querySelector($.target)?g(!0):v==="next"&&$.optional?T():v==="back"||U>4?k():_($,U+1)},300)};if(m.useEffect(()=>{if(i===-1)return;const U=s[i].steps[t];U&&setTimeout(()=>{U.href&&!p.pathname.endsWith(U.href.split("?")[0])&&d(U.href),_(U)},U.delay??0)},[i,t]),m.useEffect(()=>{var $,U;i>-1&&((U=($=s[i]).setup)==null||U.call($))},[i]),i===-1)return null;const I=s[i].steps.map($=>({...$,disableBeacon:!0}));return l(E8,{run:h,stepIndex:t,callback:R,steps:I,disableScrolling:!0,disableOverlayClose:!0,spotlightClicks:!0,spotlightPadding:0,floaterProps:{disableAnimation:!0,styles:{floater:{filter:"drop-shadow(rgba(32, 32, 33, .2) 0px 4px 12px)"}}},styles:{options:{arrowColor:u.palette.background.paper,zIndex:u.zIndex.snackbar-1},spotlight:{borderRadius:u.shape.borderRadiusMedium,border:`2px solid ${u.palette.spotlight.border}`,outline:`2px solid ${u.palette.spotlight.outline}`,animation:"pulse 2s infinite"},overlay:{backgroundColor:"rgba(0, 0, 0, 0.4)"}},tooltipComponent:$=>l(U4e,{...$,topic:i,topics:s,stepIndex:t,onClose:S,onBack:P,onNext:T})})},Kv="demo-app",Fx="dev",H4e=async()=>{var r;const e="demoApp.step3",{environments:t}=await fetch(Bt(`api/admin/projects/${Kv}/features/${e}?variantEnvironments=true`)).then(o=>o.json());(((r=t.find(({name:o})=>o===Fx))==null?void 0:r.strategies)||[]).find(({name:o})=>o==="flexibleRollout")||await fetch(Bt(`api/admin/projects/${Kv}/features/${e}/environments/${Fx}/strategies`),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"flexibleRollout",constraints:[],parameters:{rollout:"50",stickiness:"default",groupId:e}})})},V4e=async()=>{const e="demoApp.step4",{variants:t}=await fetch(Bt(`api/admin/projects/${Kv}/features/${e}?variantEnvironments=true`)).then(n=>n.json());t.length||await fetch(Bt(`api/admin/projects/${Kv}/features/${e}/environments/${Fx}/variants`),{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify([{op:"add",path:"/0",value:{name:"red",weightType:"variable",weight:333,overrides:[],stickiness:"default",payload:{type:"string",value:"red"}}},{op:"add",path:"/1",value:{name:"green",weightType:"variable",weight:333,overrides:[],stickiness:"default",payload:{type:"string",value:"green"}}},{op:"add",path:"/2",value:{name:"blue",weightType:"variable",weight:333,overrides:[],stickiness:"default",payload:{type:"string",value:"blue"}}}])})},II="/static/demo-userid-69a28f5e.png",Rt=e=>l(se,{variant:"body2",color:"text.secondary",...e}),OI=C("img")(({theme:e})=>({borderRadius:e.shape.borderRadius})),Ur="demo-app",Ls="dev",Vp=[{title:"Enable/disable a feature toggle",steps:[{href:`/projects/${Ur}?sort=name`,target:"body",placement:"center",content:x(ve,{children:[x(Rt,{children:[l("a",{href:"https://docs.getunleash.io/reference/feature-toggles",target:"_blank",rel:"noreferrer",children:"Feature toggles"})," ","are the central concept of Unleash."]}),x(Rt,{sx:{mt:1},children:["Feature toggles are organized within"," ",l("a",{href:"https://docs.getunleash.io/reference/projects",target:"_blank",rel:"noreferrer",children:"projects"}),"."]})]}),nextButton:!0},{href:`/projects/${Ur}?sort=name`,target:`div[data-testid="TOGGLE-demoApp.step1-${Ls}"]`,content:x(ve,{children:[l(Rt,{children:"Enable or disable the feature for everyone by toggling the highlighted switch."}),l(Zt,{sx:{mt:2},icon:l(Bs,{}),children:"Look at the demo page to see your changes!"})]}),nextButton:!0}]},{title:"Enable for a specific user",steps:[{href:`/projects/${Ur}?sort=name`,target:"body",placement:"center",content:x(ve,{children:[x(Rt,{children:[l("a",{href:"https://docs.getunleash.io/reference/activation-strategies",target:"_blank",rel:"noreferrer",children:"Activation strategies"})," ","give you more control over when a feature should be enabled."]}),l(Rt,{sx:{mt:1},children:"Let's try enabling a feature toggle only for a specific user."})]}),nextButton:!0},{href:`/projects/${Ur}?sort=name`,target:`a[href="${ei}/projects/${Ur}/features/demoApp.step2"]`,content:x(Rt,{children:["First, open the feature toggle configuration for"," ",l(Zt,{as:"span",children:"demoApp.step2"})," by using this link."]}),preventDefault:!0},{href:`/projects/${Ur}/features/demoApp.step2`,target:`div[data-testid="FEATURE_ENVIRONMENT_ACCORDION_${Ls}"] button`,content:l(Rt,{children:"Add a new strategy to this environment by using this button."})},{target:`a[href="${ei}/projects/${Ur}/features/demoApp.step2/strategies/create?environmentId=${Ls}&strategyName=default"]`,content:x(Rt,{children:["Select the ",l(Zt,{as:"span",children:"Standard"})," strategy type."]}),placement:"right",backCloseModal:!0},{target:'button[data-testid="ADD_CONSTRAINT_BUTTON"]',content:x(ve,{children:[x(Rt,{children:[l("a",{href:"https://docs.getunleash.io/reference/strategy-constraints",target:"_blank",rel:"noreferrer",children:"Strategy constraints"})," ","are conditions that must be satisfied for an"," ",l("a",{href:"https://docs.getunleash.io/reference/activation-strategies",target:"_blank",rel:"noreferrer",children:"activation strategy"})," ","to be evaluated for a feature toggle."]}),l(Rt,{sx:{mt:1},children:"Add a constraint by using this button."})]}),backCloseModal:!0},{target:"#context-field-select",content:x(ve,{children:[x(Rt,{children:[l("a",{href:"https://docs.getunleash.io/reference/unleash-context",target:"_blank",rel:"noreferrer",children:"Unleash context"})," ","contains information relating to the current feature toggle request."]}),l(Rt,{sx:{mt:1},children:"Select the context field by using this dropdown."})]}),backCloseModal:!0,anyClick:!0},{target:'li[data-testid="SELECT_ITEM_ID-userId"]',content:x(Rt,{children:["Select the ",l(Zt,{as:"span",children:"userId"})," context field."]}),placement:"right",backCloseModal:!0},{target:'div[data-testid="CONSTRAINT_VALUES_INPUT"]',content:x(ve,{children:[x(Rt,{children:["Enter your ",l(Zt,{as:"span",children:"userId"})]}),l(Zt,{sx:{mt:2,mb:1,width:"100%"},icon:l(Bs,{}),children:"You can find your userId on the demo page."}),l(OI,{src:ea(II),alt:"You can find your userId on the demo page."}),l(Rt,{sx:{mt:1},children:`When you're done, use the "Next" button in the dialog.`})]}),placement:"right",nextButton:!0,focus:"input"},{target:'button[data-testid="CONSTRAINT_VALUES_ADD_BUTTON"]',content:l(Rt,{children:"Add the constraint value by using this button."})},{target:'button[data-testid="CONSTRAINT_SAVE_BUTTON"]',content:l(Rt,{children:"Save the constraint by using this button."})},{target:'button[data-testid="STRATEGY_FORM_SUBMIT_ID"]',content:l(Rt,{children:"Save and apply your strategy by using this button."}),backCloseModal:!0},{target:'button[data-testid="DIALOGUE_CONFIRM_ID"]',content:l(Rt,{children:"Confirm your changes by using this button."}),optional:!0,backCloseModal:!0},{href:`/projects/${Ur}?sort=name`,target:`div[data-testid="TOGGLE-demoApp.step2-${Ls}"]`,content:x(ve,{children:[l(Rt,{children:"Finally, enable or disable the feature for your user by toggling the highlighted switch."}),l(Zt,{sx:{mt:2},icon:l(Bs,{}),children:"Look at the demo page to see your changes!"})]}),nextButton:!0,delay:500}]},{title:"Adjust gradual rollout",setup:H4e,steps:[{href:`/projects/${Ur}?sort=name`,target:"body",placement:"center",content:x(ve,{children:[x(Rt,{children:[l("a",{href:"https://docs.getunleash.io/reference/activation-strategies#gradual-rollout",target:"_blank",rel:"noreferrer",children:"Gradual rollout"})," ","is one of the available"," ",l("a",{href:"https://docs.getunleash.io/reference/activation-strategies",target:"_blank",rel:"noreferrer",children:"activation strategies"}),"."]}),l(Rt,{sx:{mt:1},children:"Let's try enabling a feature toggle only for a certain percentage of users."})]}),nextButton:!0},{href:`/projects/${Ur}?sort=name`,target:`a[href="${ei}/projects/${Ur}/features/demoApp.step3"]`,content:x(Rt,{children:["First, open the feature toggle configuration for"," ",l(Zt,{as:"span",children:"demoApp.step3"})," by using this link."]}),preventDefault:!0},{href:`/projects/${Ur}/features/demoApp.step3`,target:`div[data-testid="FEATURE_ENVIRONMENT_ACCORDION_${Ls}"] .MuiAccordionSummary-expandIconWrapper`,content:l(Rt,{children:"Expand the environment card to see all the defined strategies by using the arrow button."})},{target:`div[data-testid="FEATURE_ENVIRONMENT_ACCORDION_${Ls}"].Mui-expanded a[data-testid="STRATEGY_EDIT-flexibleRollout"]`,content:l(Rt,{children:'Edit the existing gradual rollout strategy by using the "Edit" button.'}),backCollapseExpanded:!0},{target:'span[data-testid="ROLLOUT_SLIDER_ID"]',content:x(ve,{children:[l(Rt,{children:"Change the rollout percentage by adjusting the percentage slider."}),l(Rt,{sx:{mt:1},children:`When you're done, use the "Next" button in the dialog.`})]}),backCloseModal:!0,nextButton:!0},{target:'button[data-testid="STRATEGY_FORM_SUBMIT_ID"]',content:l(Rt,{children:"Save and apply your strategy by using this button."})},{target:'button[data-testid="DIALOGUE_CONFIRM_ID"]',content:l(Rt,{children:"Confirm your changes by using this button."}),optional:!0,backCloseModal:!0},{href:`/projects/${Ur}?sort=name`,target:`div[data-testid="TOGGLE-demoApp.step3-${Ls}"]`,content:x(ve,{children:[l(Rt,{children:"Finally, enable or disable the feature with the new variant by toggling the highlighted switch."}),l(Zt,{sx:{mt:2},icon:l(Bs,{}),children:"Look at the demo page to see your changes!"})]}),nextButton:!0,delay:500}]},{title:"Adjust variants",setup:V4e,steps:[{href:`/projects/${Ur}?sort=name`,target:"body",placement:"center",content:x(ve,{children:[x(Rt,{children:[l("a",{href:"https://docs.getunleash.io/reference/feature-toggle-variants",target:"_blank",rel:"noreferrer",children:"Feature toggle variants"})," ","allow you to define different values for a feature toggle. They can be used for A/B testing or segmenting your users."]}),l(Rt,{sx:{mt:1},children:"Let's try adding a variant to a feature toggle, along with an override so our user can see it."})]}),nextButton:!0},{href:`/projects/${Ur}?sort=name`,target:`a[href="${ei}/projects/${Ur}/features/demoApp.step4"]`,content:x(Rt,{children:["First, open the feature toggle configuration for"," ",l(Zt,{as:"span",children:"demoApp.step4"})," by using this link."]}),preventDefault:!0},{href:`/projects/${Ur}/features/demoApp.step4`,target:'button[data-testid="TAB-Variants"]',content:l(Rt,{children:'Select the "Variants" tab.'})},{target:'button[data-testid="EDIT_VARIANTS_BUTTON"]',content:l(Rt,{children:"Edit the existing variants by using this button."})},{target:'button[data-testid="MODAL_ADD_VARIANT_BUTTON"]',content:l(Rt,{children:"Add a new variant to the list by using this button."}),backCloseModal:!0},{target:'div[data-testid="VARIANT"]:last-of-type div[data-testid="VARIANT_NAME_INPUT"]',content:x(ve,{children:[l(Rt,{children:"Enter a unique name for your variant."}),l(Rt,{sx:{mt:1},children:`When you're done, use the "Next" button in the dialog.`})]}),backCloseModal:!0,nextButton:!0,focus:"input"},{target:'div[data-testid="VARIANT"]:last-of-type #variant-payload-value',content:x(ve,{children:[x(Rt,{children:["Enter a"," ",l("a",{href:"https://developer.mozilla.org/en-US/docs/Web/CSS/named-color",target:"_blank",rel:"noreferrer",children:"color"})," ","as the payload. It will be passed along and used in the demo website."]}),x(Rt,{sx:{mt:1},children:["It can be any color. For example, you can use one of these: ",l(Zt,{as:"span",children:"teal"}),","," ",l(Zt,{as:"span",children:"orange"})," or"," ",l(Zt,{as:"span",children:"purple"})]}),l(Rt,{sx:{mt:1},children:`When you're done, use the "Next" button in the dialog.`})]}),nextButton:!0,focus:!0},{target:'div[data-testid="VARIANT"]:last-of-type button[data-testid="VARIANT_ADD_OVERRIDE_BUTTON"]',content:x(ve,{children:[l(Rt,{children:"By adding an override, we can specify that your user will always get this variant."}),l(Rt,{sx:{mt:1},children:"Let's add an override for your user by using this button."})]})},{target:'div[data-testid="VARIANT"]:last-of-type #override-context-name',content:l(Rt,{children:"Select the context field by using this dropdown."}),anyClick:!0,backCloseModal:!0},{target:'li[data-testid="SELECT_ITEM_ID-userId"]',content:x(Rt,{children:["Select the ",l(Zt,{as:"span",children:"userId"})," context field."]}),placement:"right",backCloseModal:!0},{target:'div[data-testid="VARIANT"]:last-of-type div[data-testid="OVERRIDE_VALUES"]',content:x(ve,{children:[x(Rt,{children:["Enter your ",l(Zt,{as:"span",children:"userId"})]}),l(Zt,{sx:{mt:2,mb:1,width:"100%"},icon:l(Bs,{}),children:"You can find your userId on the demo page."}),l(OI,{src:ea(II),alt:"You can find your userId on the demo page."}),l(Rt,{sx:{mt:1},children:`When you're done, use the "Next" button in the dialog.`})]}),placement:"right",nextButton:!0,backCloseModal:!0,focus:"input"},{target:'button[data-testid="DIALOGUE_CONFIRM_ID"]',content:l(Rt,{children:"Save your variants by using this button."})},{href:`/projects/${Ur}?sort=name`,target:`div[data-testid="TOGGLE-demoApp.step4-${Ls}"]`,content:x(ve,{children:[l(Rt,{children:"Finally, enable or disable the feature with the new variant by toggling the highlighted switch."}),l(Zt,{sx:{mt:2},icon:l(Bs,{}),children:"Look at the demo page to see your changes!"})]}),nextButton:!0,delay:500}]}],G4e="/static/demo-qr-1bebe2c9.png",q4e=C(z2)(({theme:e})=>({"& .MuiDialog-paper":{borderRadius:e.shape.borderRadiusExtraLarge,maxWidth:e.spacing(90),padding:e.spacing(7.5),textAlign:"center"}})),K4e=C(Ht)(({theme:e})=>({position:"absolute",right:e.spacing(2),top:e.spacing(2),color:e.palette.neutral.main})),Y4e=C(se)(({theme:e})=>({fontSize:e.fontSizes.largeHeader,fontWeight:e.fontWeight.bold})),wc=({open:e,onClose:t,preventCloseOnBackdropClick:n,children:r,...o})=>x(q4e,{open:e,onClose:(i,a)=>{n&&a==="backdropClick"||t()},...o,children:[l(K4e,{"aria-label":"close",onClick:t,children:l(mc,{})}),r]});wc.Header=Y4e;const X4e=C("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",backgroundColor:e.palette.neutral.light,borderRadius:e.shape.borderRadiusLarge,padding:e.spacing(4),margin:e.spacing(4,0)})),J4e=C(se)(({theme:e})=>({fontSize:e.fontSizes.mainHeader,fontWeight:e.fontWeight.bold,marginBottom:e.spacing(2)})),Q4e=C("img")(({theme:e})=>({width:e.spacing(20),height:e.spacing(20)})),Z4e=C(To)(({theme:e})=>({margin:e.spacing(4,0),padding:e.spacing(0,4),width:"100%",color:e.palette.text.secondary})),eOe=C("a")(({theme:e})=>({display:"inline-flex",alignItems:"center",gap:e.spacing(.5),"& > svg":{fontSize:e.fontSizes.bodySize}})),tOe=C(Ve)(({theme:e})=>({height:e.spacing(7)})),nOe=({open:e,onClose:t,onStart:n})=>{const{trackEvent:r}=Dr();return x(wc,{open:e,onClose:t,preventCloseOnBackdropClick:!0,children:[l(wc.Header,{children:"Explore Unleash"}),l(se,{color:"textSecondary",sx:{mt:2},children:"You can explore Unleash on your own, however for the best experience it's recommended you follow our interactive demo. To get started, you will need to open the demo website below."}),x(X4e,{children:[l(J4e,{children:"Scan the QR code with your phone"}),l(Q4e,{src:ea(G4e),alt:"Demo QR Code"}),l(Z4e,{children:"OR"}),x(se,{children:["Open demo website in another tab:"," ",x(eOe,{href:"https://hello.unleash.run/",target:"_blank",rel:"noreferrer",onClick:()=>{r("demo-open-demo-web")},children:["hello.unleash.run ",l(m9,{})]})]}),l(se,{color:"textSecondary",children:"(we recommend you keep the pages open side by side)"})]}),l(tOe,{variant:"contained",color:"primary",onClick:n,"data-testid":"DEMO_START_BUTTON",children:"Try Unleash demo"})]})};var T8={exports:{}};(function(e,t){(function(n,r){e.exports=r(m)})(typeof self<"u"?self:Ci,function(n){return function(r){var o={};function i(a){if(o[a])return o[a].exports;var s=o[a]={i:a,l:!1,exports:{}};return r[a].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=r,i.c=o,i.d=function(a,s,c){i.o(a,s)||Object.defineProperty(a,s,{enumerable:!0,get:c})},i.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},i.t=function(a,s){if(1&s&&(a=i(a)),8&s||4&s&&typeof a=="object"&&a&&a.__esModule)return a;var c=Object.create(null);if(i.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:a}),2&s&&typeof a!="string")for(var u in a)i.d(c,u,function(d){return a[d]}.bind(null,u));return c},i.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(s,"a",s),s},i.o=function(a,s){return Object.prototype.hasOwnProperty.call(a,s)},i.p="",i(i.s=2)}([function(r,o){r.exports=n},function(r,o,i){var a={linear:function(s,c,u,d){return(u-c)*s/d+c},easeInQuad:function(s,c,u,d){return(u-c)*(s/=d)*s+c},easeOutQuad:function(s,c,u,d){return-(u-c)*(s/=d)*(s-2)+c},easeInOutQuad:function(s,c,u,d){var p=u-c;return(s/=d/2)<1?p/2*s*s+c:-p/2*(--s*(s-2)-1)+c},easeInCubic:function(s,c,u,d){return(u-c)*(s/=d)*s*s+c},easeOutCubic:function(s,c,u,d){return(u-c)*((s=s/d-1)*s*s+1)+c},easeInOutCubic:function(s,c,u,d){var p=u-c;return(s/=d/2)<1?p/2*s*s*s+c:p/2*((s-=2)*s*s+2)+c},easeInQuart:function(s,c,u,d){return(u-c)*(s/=d)*s*s*s+c},easeOutQuart:function(s,c,u,d){return-(u-c)*((s=s/d-1)*s*s*s-1)+c},easeInOutQuart:function(s,c,u,d){var p=u-c;return(s/=d/2)<1?p/2*s*s*s*s+c:-p/2*((s-=2)*s*s*s-2)+c},easeInQuint:function(s,c,u,d){return(u-c)*(s/=d)*s*s*s*s+c},easeOutQuint:function(s,c,u,d){return(u-c)*((s=s/d-1)*s*s*s*s+1)+c},easeInOutQuint:function(s,c,u,d){var p=u-c;return(s/=d/2)<1?p/2*s*s*s*s*s+c:p/2*((s-=2)*s*s*s*s+2)+c},easeInSine:function(s,c,u,d){var p=u-c;return-p*Math.cos(s/d*(Math.PI/2))+p+c},easeOutSine:function(s,c,u,d){return(u-c)*Math.sin(s/d*(Math.PI/2))+c},easeInOutSine:function(s,c,u,d){return-(u-c)/2*(Math.cos(Math.PI*s/d)-1)+c},easeInExpo:function(s,c,u,d){return s==0?c:(u-c)*Math.pow(2,10*(s/d-1))+c},easeOutExpo:function(s,c,u,d){var p=u-c;return s==d?c+p:p*(1-Math.pow(2,-10*s/d))+c},easeInOutExpo:function(s,c,u,d){var p=u-c;return s===0?c:s===d?c+p:(s/=d/2)<1?p/2*Math.pow(2,10*(s-1))+c:p/2*(2-Math.pow(2,-10*--s))+c},easeInCirc:function(s,c,u,d){return-(u-c)*(Math.sqrt(1-(s/=d)*s)-1)+c},easeOutCirc:function(s,c,u,d){return(u-c)*Math.sqrt(1-(s=s/d-1)*s)+c},easeInOutCirc:function(s,c,u,d){var p=u-c;return(s/=d/2)<1?-p/2*(Math.sqrt(1-s*s)-1)+c:p/2*(Math.sqrt(1-(s-=2)*s)+1)+c},easeInElastic:function(s,c,u,d){var p,f,h,g=u-c;return h=1.70158,s===0?c:(s/=d)==1?c+g:((f=0)||(f=.3*d),(p=g)<Math.abs(g)?(p=g,h=f/4):h=f/(2*Math.PI)*Math.asin(g/p),-p*Math.pow(2,10*(s-=1))*Math.sin((s*d-h)*(2*Math.PI)/f)+c)},easeOutElastic:function(s,c,u,d){var p,f,h,g=u-c;return h=1.70158,s===0?c:(s/=d)==1?c+g:((f=0)||(f=.3*d),(p=g)<Math.abs(g)?(p=g,h=f/4):h=f/(2*Math.PI)*Math.asin(g/p),p*Math.pow(2,-10*s)*Math.sin((s*d-h)*(2*Math.PI)/f)+g+c)},easeInOutElastic:function(s,c,u,d){var p,f,h,g=u-c;return h=1.70158,s===0?c:(s/=d/2)==2?c+g:((f=0)||(f=d*.44999999999999996),(p=g)<Math.abs(g)?(p=g,h=f/4):h=f/(2*Math.PI)*Math.asin(g/p),s<1?p*Math.pow(2,10*(s-=1))*Math.sin((s*d-h)*(2*Math.PI)/f)*-.5+c:p*Math.pow(2,-10*(s-=1))*Math.sin((s*d-h)*(2*Math.PI)/f)*.5+g+c)},easeInBack:function(s,c,u,d,p){return p===void 0&&(p=1.70158),(u-c)*(s/=d)*s*((p+1)*s-p)+c},easeOutBack:function(s,c,u,d,p){return p===void 0&&(p=1.70158),(u-c)*((s=s/d-1)*s*((p+1)*s+p)+1)+c},easeInOutBack:function(s,c,u,d,p){var f=u-c;return p===void 0&&(p=1.70158),(s/=d/2)<1?f/2*(s*s*((1+(p*=1.525))*s-p))+c:f/2*((s-=2)*s*((1+(p*=1.525))*s+p)+2)+c},easeInBounce:function(s,c,u,d){var p=u-c;return p-a.easeOutBounce(d-s,0,p,d)+c},easeOutBounce:function(s,c,u,d){var p=u-c;return(s/=d)<.36363636363636365?p*(7.5625*s*s)+c:s<.7272727272727273?p*(7.5625*(s-=.5454545454545454)*s+.75)+c:s<.9090909090909091?p*(7.5625*(s-=.8181818181818182)*s+.9375)+c:p*(7.5625*(s-=.9545454545454546)*s+.984375)+c},easeInOutBounce:function(s,c,u,d){var p=u-c;return s<d/2?.5*a.easeInBounce(2*s,0,p,d)+c:.5*a.easeOutBounce(2*s-d,0,p,d)+.5*p+c}};r.exports=a},function(r,o,i){r.exports=i(3)},function(r,o,i){i.r(o),i.d(o,"ReactConfetti",function(){return Ie});var a,s,c=i(0),u=i.n(c),d=i(1),p=i.n(d);function f(ne,ie){return ne+Math.random()*(ie-ne)}function h(ne,ie){for(var ce=0;ce<ie.length;ce++){var te=ie[ce];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(ne,te.key,te)}}function g(ne,ie,ce){return ie in ne?Object.defineProperty(ne,ie,{value:ce,enumerable:!0,configurable:!0,writable:!0}):ne[ie]=ce,ne}(function(ne){ne[ne.Circle=0]="Circle",ne[ne.Square=1]="Square",ne[ne.Strip=2]="Strip"})(a||(a={})),function(ne){ne[ne.Positive=1]="Positive",ne[ne.Negative=-1]="Negative"}(s||(s={}));var v=function(){function ne(te,Ne,ye,Ce){(function(st,Lt){if(!(st instanceof Lt))throw new TypeError("Cannot call a class as a function")})(this,ne),g(this,"context",void 0),g(this,"radius",void 0),g(this,"x",void 0),g(this,"y",void 0),g(this,"w",void 0),g(this,"h",void 0),g(this,"vx",void 0),g(this,"vy",void 0),g(this,"shape",void 0),g(this,"angle",void 0),g(this,"angularSpin",void 0),g(this,"color",void 0),g(this,"rotateY",void 0),g(this,"rotationDirection",void 0),g(this,"getOptions",void 0),this.getOptions=Ne;var me,at,Oe=this.getOptions(),Ge=Oe.colors,dt=Oe.initialVelocityX,ot=Oe.initialVelocityY;this.context=te,this.x=ye,this.y=Ce,this.w=f(5,20),this.h=f(5,20),this.radius=f(5,10),this.vx=typeof dt=="number"?f(-dt,dt):f(dt.min,dt.max),this.vy=typeof ot=="number"?f(-ot,0):f(ot.min,ot.max),this.shape=(me=0,at=2,Math.floor(me+Math.random()*(at-me+1))),this.angle=f(0,360)*Math.PI/180,this.angularSpin=f(-.2,.2),this.color=Ge[Math.floor(Math.random()*Ge.length)],this.rotateY=f(0,1),this.rotationDirection=f(0,1)?s.Positive:s.Negative}var ie,ce;return ie=ne,(ce=[{key:"update",value:function(){var te=this.getOptions(),Ne=te.gravity,ye=te.wind,Ce=te.friction,me=te.opacity,at=te.drawShape;this.x+=this.vx,this.y+=this.vy,this.vy+=Ne,this.vx+=ye,this.vx*=Ce,this.vy*=Ce,this.rotateY>=1&&this.rotationDirection===s.Positive?this.rotationDirection=s.Negative:this.rotateY<=-1&&this.rotationDirection===s.Negative&&(this.rotationDirection=s.Positive);var Oe=.1*this.rotationDirection;if(this.rotateY+=Oe,this.angle+=this.angularSpin,this.context.save(),this.context.translate(this.x,this.y),this.context.rotate(this.angle),this.context.scale(1,this.rotateY),this.context.rotate(this.angle),this.context.beginPath(),this.context.fillStyle=this.color,this.context.strokeStyle=this.color,this.context.globalAlpha=me,this.context.lineCap="round",this.context.lineWidth=2,at&&typeof at=="function")at.call(this,this.context);else switch(this.shape){case a.Circle:this.context.beginPath(),this.context.arc(0,0,this.radius,0,2*Math.PI),this.context.fill();break;case a.Square:this.context.fillRect(-this.w/2,-this.h/2,this.w,this.h);break;case a.Strip:this.context.fillRect(-this.w/6,-this.h/2,this.w/3,this.h)}this.context.closePath(),this.context.restore()}}])&&h(ie.prototype,ce),ne}();function y(ne,ie,ce){return ie in ne?Object.defineProperty(ne,ie,{value:ce,enumerable:!0,configurable:!0,writable:!0}):ne[ie]=ce,ne}var b=function ne(ie,ce){var te=this;(function(ye,Ce){if(!(ye instanceof Ce))throw new TypeError("Cannot call a class as a function")})(this,ne),y(this,"canvas",void 0),y(this,"context",void 0),y(this,"getOptions",void 0),y(this,"x",0),y(this,"y",0),y(this,"w",0),y(this,"h",0),y(this,"lastNumberOfPieces",0),y(this,"tweenInitTime",Date.now()),y(this,"particles",[]),y(this,"particlesGenerated",0),y(this,"removeParticleAt",function(ye){te.particles.splice(ye,1)}),y(this,"getParticle",function(){var ye=f(te.x,te.w+te.x),Ce=f(te.y,te.h+te.y);return new v(te.context,te.getOptions,ye,Ce)}),y(this,"animate",function(){var ye=te.canvas,Ce=te.context,me=te.particlesGenerated,at=te.lastNumberOfPieces,Oe=te.getOptions(),Ge=Oe.run,dt=Oe.recycle,ot=Oe.numberOfPieces,st=Oe.debug,Lt=Oe.tweenFunction,Ct=Oe.tweenDuration;if(!Ge)return!1;var we=te.particles.length,$e=dt?we:me,Qe=Date.now();if($e<ot){at!==ot&&(te.tweenInitTime=Qe,te.lastNumberOfPieces=ot);for(var oe=te.tweenInitTime,ee=Lt(Qe-oe>Ct?Ct:Math.max(0,Qe-oe),$e,ot,Ct),X=Math.round(ee-$e),Se=0;Se<X;Se++)te.particles.push(te.getParticle());te.particlesGenerated+=X}return st&&(Ce.font="12px sans-serif",Ce.fillStyle="#333",Ce.textAlign="right",Ce.fillText("Particles: ".concat(we),ye.width-10,ye.height-20)),te.particles.forEach(function(Re,Me){Re.update(),(Re.y>ye.height||Re.y<-100||Re.x>ye.width+100||Re.x<-100)&&(dt&&$e<=ot?te.particles[Me]=te.getParticle():te.removeParticleAt(Me))}),we>0||$e<ot}),this.canvas=ie;var Ne=this.canvas.getContext("2d");if(!Ne)throw new Error("Could not get canvas context");this.context=Ne,this.getOptions=ce};function w(ne,ie){var ce=Object.keys(ne);if(Object.getOwnPropertySymbols){var te=Object.getOwnPropertySymbols(ne);ie&&(te=te.filter(function(Ne){return Object.getOwnPropertyDescriptor(ne,Ne).enumerable})),ce.push.apply(ce,te)}return ce}function S(ne){for(var ie=1;ie<arguments.length;ie++){var ce=arguments[ie]!=null?arguments[ie]:{};ie%2?w(Object(ce),!0).forEach(function(te){A(ne,te,ce[te])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(ce)):w(Object(ce)).forEach(function(te){Object.defineProperty(ne,te,Object.getOwnPropertyDescriptor(ce,te))})}return ne}function k(ne,ie){for(var ce=0;ce<ie.length;ce++){var te=ie[ce];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(ne,te.key,te)}}function A(ne,ie,ce){return ie in ne?Object.defineProperty(ne,ie,{value:ce,enumerable:!0,configurable:!0,writable:!0}):ne[ie]=ce,ne}var T={width:typeof window<"u"?window.innerWidth:300,height:typeof window<"u"?window.innerHeight:200,numberOfPieces:200,friction:.99,wind:0,gravity:.1,initialVelocityX:4,initialVelocityY:10,colors:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4CAF50","#8BC34A","#CDDC39","#FFEB3B","#FFC107","#FF9800","#FF5722","#795548"],opacity:1,debug:!1,tweenFunction:p.a.easeInOutQuad,tweenDuration:5e3,recycle:!0,run:!0},R=function(){function ne(te,Ne){var ye=this;(function(me,at){if(!(me instanceof at))throw new TypeError("Cannot call a class as a function")})(this,ne),A(this,"canvas",void 0),A(this,"context",void 0),A(this,"_options",void 0),A(this,"generator",void 0),A(this,"rafId",void 0),A(this,"setOptionsWithDefaults",function(me){var at={confettiSource:{x:0,y:0,w:ye.canvas.width,h:0}};ye._options=S(S(S({},at),T),me),Object.assign(ye,me.confettiSource)}),A(this,"update",function(){var me=ye.options,at=me.run,Oe=me.onConfettiComplete,Ge=ye.canvas,dt=ye.context;at&&(dt.fillStyle="white",dt.clearRect(0,0,Ge.width,Ge.height)),ye.generator.animate()?ye.rafId=requestAnimationFrame(ye.update):(Oe&&typeof Oe=="function"&&ye.generator.particlesGenerated>0&&Oe.call(ye,ye),ye._options.run=!1)}),A(this,"reset",function(){ye.generator&&ye.generator.particlesGenerated>0&&(ye.generator.particlesGenerated=0,ye.generator.particles=[],ye.generator.lastNumberOfPieces=0)}),A(this,"stop",function(){ye.options={run:!1},ye.rafId&&(cancelAnimationFrame(ye.rafId),ye.rafId=void 0)}),this.canvas=te;var Ce=this.canvas.getContext("2d");if(!Ce)throw new Error("Could not get canvas context");this.context=Ce,this.generator=new b(this.canvas,function(){return ye.options}),this.options=Ne,this.update()}var ie,ce;return ie=ne,(ce=[{key:"options",get:function(){return this._options},set:function(te){var Ne=this._options&&this._options.run,ye=this._options&&this._options.recycle;this.setOptionsWithDefaults(te),this.generator&&(Object.assign(this.generator,this.options.confettiSource),typeof te.recycle=="boolean"&&te.recycle&&ye===!1&&(this.generator.lastNumberOfPieces=this.generator.particles.length)),typeof te.run=="boolean"&&te.run&&Ne===!1&&this.update()}}])&&k(ie.prototype,ce),ne}();function P(ne){return function(ie){if(Array.isArray(ie))return K(ie)}(ne)||function(ie){if(typeof Symbol<"u"&&Symbol.iterator in Object(ie))return Array.from(ie)}(ne)||D(ne)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
431
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function _(ne){return(_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie})(ne)}function I(){return(I=Object.assign||function(ne){for(var ie=1;ie<arguments.length;ie++){var ce=arguments[ie];for(var te in ce)Object.prototype.hasOwnProperty.call(ce,te)&&(ne[te]=ce[te])}return ne}).apply(this,arguments)}function $(ne,ie){var ce=Object.keys(ne);if(Object.getOwnPropertySymbols){var te=Object.getOwnPropertySymbols(ne);ie&&(te=te.filter(function(Ne){return Object.getOwnPropertyDescriptor(ne,Ne).enumerable})),ce.push.apply(ce,te)}return ce}function U(ne){for(var ie=1;ie<arguments.length;ie++){var ce=arguments[ie]!=null?arguments[ie]:{};ie%2?$(Object(ce),!0).forEach(function(te){Z(ne,te,ce[te])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(ce)):$(Object(ce)).forEach(function(te){Object.defineProperty(ne,te,Object.getOwnPropertyDescriptor(ce,te))})}return ne}function M(ne,ie){return function(ce){if(Array.isArray(ce))return ce}(ne)||function(ce,te){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(ce)))){var Ne=[],ye=!0,Ce=!1,me=void 0;try{for(var at,Oe=ce[Symbol.iterator]();!(ye=(at=Oe.next()).done)&&(Ne.push(at.value),!te||Ne.length!==te);ye=!0);}catch(Ge){Ce=!0,me=Ge}finally{try{ye||Oe.return==null||Oe.return()}finally{if(Ce)throw me}}return Ne}}(ne,ie)||D(ne,ie)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
432
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function D(ne,ie){if(ne){if(typeof ne=="string")return K(ne,ie);var ce=Object.prototype.toString.call(ne).slice(8,-1);return ce==="Object"&&ne.constructor&&(ce=ne.constructor.name),ce==="Map"||ce==="Set"?Array.from(ne):ce==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ce)?K(ne,ie):void 0}}function K(ne,ie){(ie==null||ie>ne.length)&&(ie=ne.length);for(var ce=0,te=new Array(ie);ce<ie;ce++)te[ce]=ne[ce];return te}function H(ne,ie){if(!(ne instanceof ie))throw new TypeError("Cannot call a class as a function")}function Q(ne,ie){for(var ce=0;ce<ie.length;ce++){var te=ie[ce];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(ne,te.key,te)}}function V(ne,ie){return(V=Object.setPrototypeOf||function(ce,te){return ce.__proto__=te,ce})(ne,ie)}function j(ne){var ie=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var ce,te=B(ne);if(ie){var Ne=B(this).constructor;ce=Reflect.construct(te,arguments,Ne)}else ce=te.apply(this,arguments);return z(this,ce)}}function z(ne,ie){return!ie||_(ie)!=="object"&&typeof ie!="function"?O(ne):ie}function O(ne){if(ne===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ne}function B(ne){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(ie){return ie.__proto__||Object.getPrototypeOf(ie)})(ne)}function Z(ne,ie,ce){return ie in ne?Object.defineProperty(ne,ie,{value:ce,enumerable:!0,configurable:!0,writable:!0}):ne[ie]=ce,ne}var ae=u.a.createRef(),Ae=function(ne){(function(ye,Ce){if(typeof Ce!="function"&&Ce!==null)throw new TypeError("Super expression must either be null or a function");ye.prototype=Object.create(Ce&&Ce.prototype,{constructor:{value:ye,writable:!0,configurable:!0}}),Ce&&V(ye,Ce)})(Ne,ne);var ie,ce,te=j(Ne);function Ne(ye){var Ce;H(this,Ne);for(var me=arguments.length,at=new Array(me>1?me-1:0),Oe=1;Oe<me;Oe++)at[Oe-1]=arguments[Oe];return Z(O(Ce=te.call.apply(te,[this,ye].concat(at))),"canvas",u.a.createRef()),Z(O(Ce),"confetti",void 0),Ce.canvas=ye.canvasRef||ae,Ce}return ie=Ne,(ce=[{key:"componentDidMount",value:function(){if(this.canvas.current){var ye=fe(this.props)[0];this.confetti=new R(this.canvas.current,ye)}}},{key:"componentDidUpdate",value:function(){var ye=fe(this.props)[0];this.confetti&&(this.confetti.options=ye)}},{key:"componentWillUnmount",value:function(){this.confetti&&this.confetti.stop(),this.confetti=void 0}},{key:"render",value:function(){var ye=M(fe(this.props),2),Ce=ye[0],me=ye[1],at=U({zIndex:2,position:"absolute",pointerEvents:"none",top:0,left:0,bottom:0,right:0},me.style);return u.a.createElement("canvas",I({width:Ce.width,height:Ce.height,ref:this.canvas},me,{style:at}))}}])&&Q(ie.prototype,ce),Ne}(c.Component);function fe(ne){var ie={},ce={},te=[].concat(P(Object.keys(T)),["confettiSource","drawShape","onConfettiComplete"]),Ne=["canvasRef"];for(var ye in ne){var Ce=ne[ye];te.includes(ye)?ie[ye]=Ce:Ne.includes(ye)?Ne[ye]=Ce:ce[ye]=Ce}return[ie,ce,{}]}Z(Ae,"defaultProps",U({},T)),Z(Ae,"displayName","ReactConfetti");var Ie=u.a.forwardRef(function(ne,ie){return u.a.createElement(Ae,I({canvasRef:ie},ne))});o.default=Ie}]).default})})(T8);var rOe=T8.exports;const oOe=qr(rOe),iOe=C("div")(({theme:e})=>({display:"grid",gridTemplateColumns:"1fr 1fr",gap:e.spacing(3),marginTop:e.spacing(7.5)})),$I=C(Ve)(({theme:e})=>({height:e.spacing(7)})),aOe=({open:e,onClose:t,onRestart:n})=>x(ve,{children:[l(q,{condition:e,show:l(oOe,{recycle:!1,numberOfPieces:1e3,initialVelocityY:50,gravity:.3,style:{zIndex:3e3}})}),x(wc,{open:e,onClose:t,children:[l(wc.Header,{children:"You finished the demo"}),l(se,{color:"textSecondary",sx:{mt:4},children:"Great job! Keep exploring Unleash, as this was just a small example of its full potential. You can do the demo again at any moment."}),x(iOe,{children:[l($I,{variant:"outlined",color:"primary",onClick:n,children:"Restart demo"}),l($I,{variant:"contained",color:"primary",onClick:t,"data-testid":"DEMO_FINISH_BUTTON",children:"Continue"})]})]})]}),sOe=C(wc)(({theme:e})=>({"& .MuiDialog-paper":{maxWidth:e.spacing(120)}})),lOe=C("div")(({theme:e})=>({display:"grid",gridTemplateColumns:"auto auto auto",gap:e.spacing(1),marginTop:e.spacing(6)})),_w=C("div")(({theme:e})=>({display:"flex",flexDirection:"column",justifyContent:"space-between",backgroundColor:e.palette.background.elevation1,borderRadius:e.shape.borderRadiusLarge,padding:e.spacing(4,3),"& > a":{whiteSpace:"nowrap"},height:e.spacing(34),width:e.spacing(34)})),cOe=C("a")(({theme:e})=>({fontSize:e.fontSizes.mainHeader,textDecoration:"none","&:hover":{textDecoration:"underline"},margin:"auto",marginTop:e.spacing(4),display:"inline-flex",alignItems:"center",gap:e.spacing(1),"& > svg":{fontSize:e.fontSizes.mainHeader}})),uOe=({open:e,onClose:t})=>{const{trackEvent:n}=Dr();return x(sOe,{open:e,onClose:t,children:[l(wc.Header,{children:"Want to keep going with Unleash?"}),x(lOe,{children:[x(_w,{children:[l(se,{variant:"h5",fontWeight:"bold",children:"Open Source"}),l(se,{variant:"body2",color:"textSecondary",children:"Self-hosted basic feature management solution"}),l(se,{variant:"h6",fontWeight:"normal",children:"Free"}),l(Ve,{variant:"outlined",color:"primary",startIcon:l(sle,{}),href:"https://github.com/unleash/unleash",target:"_blank",rel:"noreferrer",onClick:()=>{n("demo-see-plan",{props:{plan:"open_source"}})},children:"View project on GitHub"})]}),x(_w,{children:[l(se,{variant:"h5",fontWeight:"bold",children:"Pro"}),l(se,{variant:"body2",color:"textSecondary",children:"Free your team to collaborate. We'll do the heavy lifting."}),x("div",{children:[l(se,{variant:"h6",fontWeight:"normal",children:"$80/month"}),l(se,{variant:"body2",children:"includes 5 seats"})]}),l(Ve,{variant:"contained",color:"primary",href:"https://www.getunleash.io/plans/pro",target:"_blank",rel:"noreferrer",onClick:()=>{n("demo-see-plan",{props:{plan:"pro"}})},children:"Start 14-day free trial"})]}),x(_w,{children:[l(se,{variant:"h5",fontWeight:"bold",children:"Enterprise"}),l(se,{variant:"body2",color:"textSecondary",children:"Security, compliance, and development controls for scale."}),x("div",{children:[l(se,{variant:"h6",fontWeight:"normal",children:"Custom"}),l(se,{variant:"body2",children:"unlimited seats"})]}),l(Ve,{variant:"contained",color:"web",href:"https://www.getunleash.io/plans/enterprise",target:"_blank",rel:"noreferrer",onClick:()=>{n("demo-see-plan",{props:{plan:"enterprise"}})},children:"Contact sales"})]})]}),x(cOe,{href:"https://www.getunleash.io/plans",target:"_blank",rel:"noreferrer",onClick:()=>{n("demo-see-plan",{props:{plan:"compare_plans"}})},children:["Compare plans ",l(m9,{})]})]})},dOe=C("div")(({theme:e})=>({position:"sticky",top:0,zIndex:e.zIndex.sticky,display:"flex",gap:e.spacing(1),justifyContent:"center",alignItems:"center",backgroundColor:e.palette.web.main,color:e.palette.web.contrastText,padding:e.spacing(1)})),k8=C(Ve)(({theme:e})=>({whiteSpace:"nowrap",flexShrink:0,"&&&":{fontSize:e.fontSizes.smallBody}})),pOe=C(k8)(({theme:e})=>({color:e.palette.web.contrastText,border:"1px solid rgba(255, 255, 255, 0.5)"})),fOe=({onPlans:e})=>{const{trackEvent:t}=Dr();return x(dOe,{children:[x("span",{children:["This is a ",l("strong",{children:"demo of Unleash"}),". Play around as much as you want. Reach out when you're ready."]}),l(pOe,{variant:"outlined",sx:{ml:1},href:"https://slack.unleash.run/",target:"_blank",rel:"noreferrer",onClick:()=>{t("demo-ask-questions")},children:"Ask questions"}),l(k8,{variant:"contained",color:"primary",onClick:e,children:"Get started"})]})},Qc={welcomeOpen:!0,expanded:!0,topic:-1,step:0,stepsCompletion:Array(Vp.length).fill(0)},hOe=({children:e})=>{const{uiConfig:t}=Ot(),{trackEvent:n}=Dr(),{value:r,setValue:o}=Rc("Tutorial:v1.1",Qc),[i,a]=m.useState(r.welcomeOpen??Qc.welcomeOpen),[s,c]=m.useState(!1),[u,d]=m.useState(!1),[p,f]=m.useState(r.expanded??Qc.expanded),[h,g]=m.useState(r.topic??Qc.topic),[v,y]=m.useState(r.step??Qc.step),[b,w]=m.useState(r.stepsCompletion??Qc.stepsCompletion);m.useEffect(()=>{o({welcomeOpen:i,expanded:p,topic:h,step:v,stepsCompletion:b})},[i,p,h,v,b]);const S=()=>{g(0),y(0),w(Array(Vp.length).fill(0)),f(!0)},k=()=>{c(!0),n("demo-finish")},A=()=>{g(-1),y(0)};return t.flags.demo?x(ve,{children:[l(fOe,{onPlans:()=>{A(),a(!1),d(!0),n("demo-see-plans")}}),e,l(nOe,{open:i,onClose:()=>{a(!1),f(!1),n("demo-close",{props:{topic:"welcome",step:"welcome"}})},onStart:()=>{a(!1),S(),n("demo-start")}}),l(aOe,{open:s,onClose:()=>{c(!1),d(!0)},onRestart:()=>{c(!1),S(),n("demo-restart")}}),l(uOe,{open:u,onClose:()=>d(!1)}),l(d3e,{expanded:p,setExpanded:f,stepsCompletion:b,currentTopic:h,setCurrentTopic:T=>{g(T),y(0),a(!1),d(!1),n("demo-start-topic",{props:{topic:Vp[T].title}})},topics:Vp,onWelcome:()=>{A(),d(!1),a(!0),n("demo-view-demo-link")}}),l(W4e,{setExpanded:f,step:v,setStep:y,stepsCompletion:b,setStepsCompletion:w,topic:h,setTopic:g,topics:Vp,onFinish:k})]}):e},mOe=C(Wn)(()=>({height:"100%",justifyContent:"space-between",display:"flex",flexDirection:"column",flexGrow:1,position:"relative"})),gOe=C("main")(({theme:e})=>({margin:e.spacing(0,"auto"),flexGrow:1,width:"100%",backgroundColor:e.palette.background.application,position:"relative"})),vOe=C(Wn)(({theme:e})=>({width:"1250px",margin:"0 auto",[e.breakpoints.down("lg")]:{width:"1024px"},[e.breakpoints.down(1024)]:{width:"100%",marginLeft:0,marginRight:0},[e.breakpoints.down("sm")]:{minWidth:"100%"}})),NI=C("img")(()=>({display:"block",position:"fixed",zIndex:0,bottom:0,right:0,width:400,pointerEvents:"none",userSelect:"none"})),yOe=C("div")(({theme:e})=>({height:"100%",padding:e.spacing(0,0,6.5,0),position:"relative",[e.breakpoints.down("md")]:{padding:e.spacing(0,1.5,6.5,1.5)},zIndex:200})),bOe=m.forwardRef(({children:e},t)=>{const{uiConfig:n}=Ot(),r=Wa("projectId"),{isChangeRequestConfiguredInAnyEnv:o}=_c(r||"");return x(ve,{children:[l(y_e,{}),l(hOe,{children:x(ve,{children:[l(t_e,{}),l(g_e,{}),x(mOe,{children:[x(gOe,{children:[l(q,{condition:!!(r&&o()),show:l(XPe,{project:r||""})}),l(vOe,{item:!0,xs:12,sm:12,my:2,children:x(yOe,{ref:t,children:[l(m_e,{}),l(d_e,{toast:n.toast}),e]})}),l(Lh,{darkmode:l(NI,{style:{opacity:.06},src:ea(z3),alt:""}),lightmode:l(NI,{src:ea(z3),alt:""})})]}),l(a_e,{})]})]})})]})}),wOe=({isStandalone:e,children:t})=>l(q,{condition:e===!0,show:t,elseShow:l(bOe,{children:t})}),SOe=C("div")(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",padding:e.spacing(4),position:"fixed",inset:0,backgroundColor:e.palette.primary.contrastText,width:"100%"})),xOe=C(Q2)(({theme:e})=>({height:"80px"})),COe=C("div")(({theme:e})=>({display:"flex",position:"relative"})),EOe=C("div")(({theme:e})=>({marginTop:e.spacing(4)})),TOe=C(Ve)(({theme:e})=>({height:"150px",width:"150px",position:"absolute",right:100,top:45})),kOe=()=>{const e=gt();return l(SOe,{children:x("div",{children:[l(xOe,{}),l(COe,{children:l(se,{variant:"h1",style:{fontSize:"2rem"},children:"Ooops. That's a page we haven't toggled on yet."})}),x(EOe,{children:[l(Ve,{variant:"contained",color:"primary",onClick:()=>{e(Ao)},children:"Go back"}),l(TOe,{onClick:()=>{e("/")},children:"Go home"})]})]})})},AOe=()=>{const{pathname:e,search:t}=Ho(),r=`/login?redirect=${encodeURIComponent(e+t)}`;return l(kc,{to:r,replace:!0})},ROe=({route:e})=>{const{user:t}=pi();return!!!(t!=null&&t.id)&&e.type==="protected"?l(AOe,{}):l(e.component,{})},_Oe=({children:e})=>{const{refetchUser:t}=pi();return l(Pae,{value:{onError:r=>{r instanceof E9&&r.status===401&&t()}},children:e})};function POe(e,t,n){const r=/^localhost$|^127(?:\.[0-9]+){0,2}\.[0-9]+$|^(?:0*:)*?:?0*1$/.test(location.hostname)||location.protocol==="file:";if(!t.trackLocalhost&&r)return console.warn("[Plausible] Ignoring event because website is running locally");try{if(window.localStorage.plausible_ignore==="true")return console.warn('[Plausible] Ignoring event because "plausible_ignore" is set to "true" in localStorage')}catch{}const o={n:e,u:t.url,d:t.domain,r:t.referrer,w:t.deviceWidth,h:t.hashMode?1:0,p:n&&n.props?JSON.stringify(n.props):void 0},i=new XMLHttpRequest;i.open("POST",`${t.apiHost}/api/event`,!0),i.setRequestHeader("Content-Type","text/plain"),i.send(JSON.stringify(o)),i.onreadystatechange=()=>{i.readyState===4&&n&&n.callback&&n.callback()}}function IOe(e){const t=()=>({hashMode:!1,trackLocalhost:!1,url:location.href,domain:location.hostname,referrer:document.referrer||null,deviceWidth:window.innerWidth,apiHost:"https://plausible.io",...e}),n=(a,s,c)=>{POe(a,{...t(),...c},s)},r=(a,s)=>{n("pageview",s,a)};return{trackEvent:n,trackPageview:r,enableAutoPageviews:()=>{const a=()=>r(),s=history.pushState;return s&&(history.pushState=function(c,u,d){s.apply(this,[c,u,d]),a()},addEventListener("popstate",a)),e&&e.hashMode&&addEventListener("hashchange",a),r(),function(){s&&(history.pushState=s,removeEventListener("popstate",a)),e&&e.hashMode&&removeEventListener("hashchange",a)}},enableAutoOutboundTracking:(a=document,s={subtree:!0,childList:!0,attributes:!0,attributeFilter:["href"]})=>{function c(h){n("Outbound Link: Click",{props:{url:this.href}}),typeof process<"u"&&process,setTimeout(()=>{location.href=this.href},150),h.preventDefault()}const u=new Set;function d(h){h instanceof HTMLAnchorElement?h.host!==location.host&&(h.addEventListener("click",c),u.add(h)):"querySelectorAll"in h&&h.querySelectorAll("a").forEach(d)}function p(h){h instanceof HTMLAnchorElement?(h.removeEventListener("click",c),u.delete(h)):"querySelectorAll"in h&&h.querySelectorAll("a").forEach(p)}const f=new MutationObserver(h=>{h.forEach(g=>{g.type==="attributes"?(p(g.target),d(g.target)):g.type==="childList"&&(g.addedNodes.forEach(d),g.removedNodes.forEach(p))})});return a.querySelectorAll("a").forEach(d),f.observe(a,s),function(){u.forEach(g=>{g.removeEventListener("click",c)}),u.clear(),f.disconnect()}}}}const OOe="https://plausible.getunleash.io",$Oe="app.unleash-hosted.com",Pw=!1,NOe=({children:e})=>{var s;const[t,n]=m.useState(null),o=(()=>{var c;try{const u=((c=document.querySelector('meta[name="uiFlags"]'))==null?void 0:c.content)||"{}";return JSON.parse(u)}catch{return{}}})(),{uiConfig:i}=Ot(),a=!!((s=i==null?void 0:i.flags)!=null&&s.T||o.T||Pw);return m.useEffect(()=>{if(a)try{const c=IOe({domain:Pw?void 0:$Oe,apiHost:Pw?"http://localhost:8000":OOe,trackLocalhost:!0});return n(()=>c),c.enableAutoPageviews()}catch(c){console.warn(c)}},[a]),l($N.Provider,{value:t,children:e})},LOe=As()(e=>({container:{maxWidth:"450px",background:e.palette.background.paper,boxShadow:e.boxShadows.popup,zIndex:500,margin:"0 0.8rem",borderRadius:"12.5px",padding:"2rem"},innerContainer:{position:"relative"},starting:{opacity:0},headerContainer:{display:"flex",alignItems:"center"},confettiContainer:{position:"relative",maxWidth:"600px",margin:"0 auto",display:"flex"},textContainer:{marginLeft:"1rem",wordBreak:"break-word"},headerStyles:{fontWeight:"normal",margin:0,marginBottom:"0.5rem"},createdContainer:{display:"flex",alignItems:"center",flexDirection:"column"},anim:{animation:"$drop 10s 3s"},checkMark:{width:"65px",height:"65px"},buttonStyle:{position:"absolute",top:"-33px",right:"-33px"},"@keyframes drop":{"0%":{opacity:"0%",top:"0%"},"10%":{opacity:"100%"},"100%":{top:"100%"}}})),MOe=C("div")(({theme:e})=>({backgroundColor:e.palette.background.alternative,width:"75px",height:"75px",borderRadius:"50px",display:"flex",justifyContent:"center",alignItems:"center",[e.breakpoints.down("sm")]:{width:"50px",height:"50px"}})),DOe=C(g1)(({theme:e})=>({color:e.palette.common.white,width:"35px",height:"35px"})),BOe=C(Ev)(({theme:e})=>({color:e.palette.common.white,width:"35px",height:"35px"})),FOe=({type:e,className:t})=>l(MOe,{className:t,children:e==="error"?l(DOe,{titleAccess:"Error"}):l(BOe,{})}),zOe=({title:e,text:t,type:n,confetti:r})=>{const{setToast:o}=m.useContext(kl),{classes:i}=LOe(),a=["#d13447","#ffbf00","#263672"],s=200,c=p=>Math.floor(Math.random()*p)+1,u=()=>new Array(s).fill(1).map((h,g)=>{const v=c(8),y=c(100),b={position:"absolute",width:`${v}px`,height:`${v*.4}px`,backgroundColor:a[c(2)],left:`${y}%`,transform:`rotate(${c(101)}deg)`,animationDelay:`${c(5)}s`,animationDuration:`${c(3)}s`,animationEase:`${c(2)}s`};return l("div",{style:b,className:Pi(i.starting,i.anim)},g)}),d=()=>{o(p=>({...p,show:!1}))};return l("div",{className:Pi(i.container,"dropdown-outline"),children:l("div",{className:i.innerContainer,children:x("div",{className:i.confettiContainer,children:[r&&u(),x("div",{className:i.createdContainer,children:[x("div",{className:i.headerContainer,children:[l("div",{children:l(FOe,{type:n,className:i.checkMark})}),x("div",{className:i.textContainer,children:[l("h3",{className:i.headerStyles,children:e}),l(q,{condition:!!t,show:l("p",{"data-testid":Lie,children:t})})]})]}),l(xt,{title:"Close",arrow:!0,children:l(Ht,{onClick:d,className:i.buttonStyle,size:"large",children:l(mc,{})})})]})]})})})},jOe=()=>{const{toastData:e,setToast:t}=m.useContext(kl),n=()=>{t(o=>({...o,show:!1}))};m.useEffect(()=>{if(!e.autoHideDuration)return;let o=setTimeout(()=>{n()},e.autoHideDuration);return()=>{clearTimeout(o)}},[e==null?void 0:e.show]);const r=m.useMemo(()=>({start:{...AN,right:0,left:0,margin:"0 auto",maxWidth:"450px"},enter:RN,leave:eie}),[]);return l(I2,{children:l(Z2,{mounted:!!(e!=null&&e.show),start:r.start,enter:r.enter,leave:r.leave,children:l(zOe,{...e})})})},UOe=()=>{const{pathname:e}=Ho(),{user:t}=pi(),{splash:n}=mM(),{uiConfig:r,loading:o}=Ot();if(!t||!n||!r||o||A$("/splash/:splashId",e)||t.isAPI)return null;const i=abe.find(a=>!WOe(a,n));return i?l(kc,{to:`/splash/${i}`,replace:!0}):null},WOe=(e,t)=>!!t[e],HOe=C(rle)(({theme:e})=>({color:e.palette.error.main,height:"20px",width:"20px",marginRight:e.spacing(1)})),VOe=C("div")(({theme:e})=>({display:"flex",fontSize:e.fontSizes.smallBody,justifyContent:"center",alignItems:"center",color:e.palette.error.contrastText,backgroundColor:e.palette.error.light,height:"65px",borderBottom:`1px solid ${e.palette.error.border}`,whiteSpace:"pre-wrap"})),GOe=()=>x(VOe,{children:[l(HOe,{}),l("b",{children:"Maintenance Mode! "}),l("p",{children:"During maintenance mode, any changes made will not be saved and you may receive an error. We apologize for any inconvenience this may cause."})]}),qOe=()=>{const e=`${ei}:unleash-lastViewedProject`,[t,n]=m.useState(()=>Gf(e));return m.useEffect(()=>{t&&Ku(e,t)},[t,e]),{lastViewed:t,setLastViewed:n}},KOe=()=>{const{lastViewed:e}=qOe(),{projects:t,loading:n}=Qa(),r=gt(),o=m.useCallback(()=>t&&e?`/projects/${e}`:t&&!e&&t.length===1?`/projects/${t[0].id}`:"/projects",[e,t]),i=()=>{r(o(),{replace:!0})};return m.useEffect(()=>{i()},[o]),n?l(rh,{}):null},YOe=C("div")(()=>({"& ul":{margin:0}})),XOe=()=>{const{authDetails:e}=Rd(),{refetch:t}=Ot(),{user:n}=pi(),r=!!(e||n),{isOss:o,uiConfig:i}=Ot(),a=o()?ch.filter(s=>!s.enterprise):ch;return m.useEffect(()=>{r&&(n!=null&&n.id)&&t()},[e,n]),l(i5,{FallbackComponent:s5,children:l(NOe,{children:l(i5,{FallbackComponent:s5,children:l(_Oe,{children:l(m.Suspense,{fallback:l(rh,{}),children:l(q,{condition:!r,show:l(rh,{}),elseShow:x(ve,{children:[l(q,{condition:!!(i!=null&&i.maintenanceMode),show:l(GOe,{})}),x(YOe,{children:[l(jOe,{}),x(Rz,{children:[a.map(s=>l(Tg,{path:s.path,element:l(wOe,{isStandalone:s.isStandalone===!0,children:l(ROe,{route:s})})},s.path)),l(Tg,{path:"/",element:l(KOe,{})}),l(Tg,{path:"*",element:l(kOe,{})})]}),l(Mae,{openUrl:"http://feedback.unleash.run"}),l(UOe,{})]})]})})})})})})})},JOe=()=>{const{pathname:e}=Ho();return m.useEffect(()=>{QOe.some(t=>e.includes(t))||window.scrollTo(0,0)},[e]),null},QOe=["/admin/api","/admin/users","/admin/auth","/admin/roles"],ZOe=({children:e})=>{const{permissions:t}=T1(),n=m.useMemo(()=>({isAdmin:e$e(t),hasAccess:t$e.bind(null,t)}),[t]);return l(yo.Provider,{value:n,children:e})},e$e=e=>e?e.some(t=>t.permission===fi):!1,t$e=(e,t,n,r)=>e?e.some(o=>n$e(o,t,n,r)):!1,n$e=(e,t,n,r)=>t?e.permission===fi&&t!==_9||e.permission===t&&(e.project===n||e.project==="*")&&(!e.environment||e.environment===r||e.environment==="*")?!0:e.permission===t&&!e.project&&!e.environment:(console.warn(`Missing permission for AccessProvider: ${t}`),!1),r$e=C("div")(({theme:e})=>({display:"flex",gap:e.spacing(2),alignItems:"center",margin:"0 auto"})),LI=C("span")(({theme:e})=>({width:"6.25rem",whiteSpace:"nowrap",color:e.palette.text.secondary,"&:first-of-type":{textAlign:"right"},[e.breakpoints.down("sm")]:{display:"none"}})),o$e=C("label")(({theme:e})=>({"& input":{clip:"rect(0 0 0 0)",clipPath:"inset(50%)",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:1,height:1},"& span":{display:"grid",justifyContent:"center",alignItems:"center",background:e.palette.divider,width:"3rem",height:"3rem",borderRadius:"10rem",fontSize:"1.25rem",paddingBottom:2,userSelect:"none",cursor:"pointer"},"& input:checked + span":{fontWeight:e.fontWeight.bold,background:e.palette.primary.main,color:e.palette.primary.contrastText},"& input:focus-visible + span":{outline:"2px solid",outlineOffset:2,outlineColor:e.palette.primary.main}})),i$e=({form:e,setForm:t})=>{const n=r=>{t(Ti(o=>{o.score=Number(r.target.value)}))};return x(r$e,{children:[l(LI,{children:"Very difficult"}),[1,2,3,4,5,6,7].map(r=>x(o$e,{children:[l("input",{type:"radio",name:"score",value:r,checked:e.score===r,onChange:n}),l("span",{children:r})]},r)),l(LI,{children:"Very easy"})]})},a$e=async e=>{if(!e.score)return;const t={source:"app:segments",data:{score:e.score,comment:e.comment,currentPage:e.path,openedManually:!1,customerType:"paying"}};await fetch("https://europe-west3-metrics-304612.cloudfunctions.net/docs-app-feedback",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})},s$e=C("div")(({theme:e})=>({fontWeight:e.fontWeight.thin})),l$e=C("h1")(({theme:e})=>({all:"unset",display:"block",textAlign:"center",color:e.palette.text.secondary})),c$e=C("form")(({theme:e})=>({display:"grid",gap:e.spacing(6),gridTemplateColumns:"minmax(auto, 40rem)",justifyContent:"center"})),u$e=C("p")(({theme:e})=>({all:"unset",display:"block",marginTop:e.spacing(5),fontSize:e.spacing(3),textAlign:"center"})),d$e=C("label")(({theme:e})=>({display:"block",marginBottom:e.spacing(1)})),p$e=({state:e,onClose:t})=>{const[n,r]=m.useState(!1),{setToastData:o}=$t(),[i,a]=m.useState({path:e.path}),s=u=>{a(Ti(d=>{d.comment=u.target.value}))};return x(s$e,{children:[l(l$e,{children:"Please help us improve"}),x(c$e,{onSubmit:async u=>{if(u.preventDefault(),!n)try{r(!0),await a$e(i),o({type:"success",title:"Feedback sent. Thank you!",confetti:!0}),t()}finally{r(!1)}},"aria-live":"polite",children:[l(u$e,{children:e.title}),l(i$e,{form:i,setForm:a}),x("div",{hidden:!i.score,children:[l(d$e,{htmlFor:"comment",children:e.text}),l(wn,{value:i.comment??"",onChange:s,multiline:!0,rows:3,variant:"outlined",fullWidth:!0})]}),l(Le,{hidden:!i.score,sx:{textAlign:"center"},children:l(Ve,{type:"submit",color:"primary",variant:"contained",sx:{minWidth:"15rem"},disabled:!i.score||n,children:"Send feedback"})})]})]})},f$e=C("div")(({theme:e})=>({pointerEvents:"none",display:"grid",padding:e.spacing(2),overflowY:"auto",alignItems:"center",justifyContent:"center",height:"100vh",width:"100vw"})),h$e=C("div")(({theme:e})=>({pointerEvents:"auto",position:"relative",padding:e.spacing(8),background:e.palette.background.paper,boxShadow:e.boxShadows.popup,borderRadius:e.spacing(2),[e.breakpoints.down("md")]:{padding:e.spacing(4)}})),m$e=C("div")({all:"unset",position:"absolute",top:0,right:0}),g$e=C(c9)(({theme:e})=>({fontSize:"1.5rem",color:e.palette.action.active})),v$e=({state:e})=>{const{hideFeedbackCES:t}=m.useContext(zT),n=e&&l(p$e,{state:e,onClose:t});return l(Ph,{open:!!e,onClose:t,"aria-label":e==null?void 0:e.title,children:l(f$e,{children:x(h$e,{children:[l(m$e,{children:l(Ht,{onClick:t,size:"large",children:l(g$e,{titleAccess:"Close"})})}),n]})})})},y$e=()=>{const{createFeedback:e}=JN(),{feedback:t}=oE(),n=m.useCallback(o=>!!t&&t.some(i=>i.feedbackId===MI(o)),[t]),r=m.useCallback(o=>e({feedbackId:MI(o)}),[e]);return{isSeen:n,setSeen:r}},MI=e=>`ces${e.path}`,b$e=(e=window.location.hostname)=>e==="localhost",w$e=(e=window.location.hostname)=>e.endsWith(".getunleash.io")||e.endsWith(".unleash-hosted.com"),S$e=(e=window.location.hostname)=>e.endsWith(".vercel.app"),x$e=()=>w$e()||S$e()||b$e(),C$e=({children:e})=>{const[t,n]=m.useState(),{isSeen:r,setSeen:o}=y$e(),i=x$e();m.useEffect(()=>{t&&o(t)},[t,o]);const a=m.useCallback(u=>{n(d=>{const p=u instanceof Function?u(d):u;return!i||!p||r(p)?void 0:p})},[i,r]),s=m.useCallback(()=>{n(void 0)},[n]),c=m.useMemo(()=>({showFeedbackCES:a,hideFeedbackCES:s}),[a,s]);return x(zT.Provider,{value:c,children:[e,l(v$e,{state:t})]})},E$e=C("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",zIndex:-1,width:1,height:1,margin:-1,padding:0,overflow:"hidden"}),T$e=({announcement:e})=>l(E$e,{role:"status","aria-live":"polite","aria-atomic":!0,"data-testid":Nie,children:e}),k$e=({children:e})=>{const[t,n]=m.useState(),r=m.useMemo(()=>({setAnnouncement:n}),[n]);return x(EE.Provider,{value:r,children:[e,l(T$e,{announcement:t})]})};var vs=(e=>(e.UNASSIGNED="UNASSIGNED",e.TRIAL="TRIAL",e.ACTIVE="ACTIVE",e.EXPIRED="EXPIRED",e.CHURNED="CHURNED",e))(vs||{}),fu=(e=>(e.PRO="Pro",e.COMPANY="Company",e.TEAM="Team",e.UNKNOWN="Unknown",e))(fu||{});const A$e=(e,t,n)=>{const{data:r,error:o,mutate:i}=An(e,t,n),a=m.useCallback(()=>{i().catch(console.warn)},[i]);return{data:r,error:o,refetch:a,loading:!o&&!r}},R$e=()=>{const{uiConfig:e}=Ot(),{flags:{UNLEASH_CLOUD:t}}=e,{data:n,refetch:r,loading:o,error:i}=A$e(["useInstanceStatus",t],()=>_$e(t)),a=[fu.PRO,fu.COMPANY,fu.TEAM];return{instanceStatus:n,refetchInstanceStatus:r,refresh:async()=>{await fetch(Bt("api/instance/refresh"))},isBilling:a.includes((n==null?void 0:n.plan)??fu.UNKNOWN),loading:o,error:i}},_$e=async e=>{if(!e)return DI;const t=await fetch(Bt("api/instance/status"));return t.ok?t.json():DI},DI={plan:fu.UNKNOWN},P$e=10,I$e=e=>(e==null?void 0:e.state)===vs.TRIAL||(e==null?void 0:e.state)===vs.EXPIRED||(e==null?void 0:e.state)===vs.CHURNED,A8=e=>(e==null?void 0:e.state)===vs.EXPIRED||(e==null?void 0:e.state)===vs.CHURNED?!0:(e==null?void 0:e.state)===vs.TRIAL&&(e!=null&&e.trialExpiry)?Nue(Bh(e.trialExpiry)):!1,O$e=e=>!e||e.state!==vs.TRIAL||!e.trialExpiry?!1:MN(Bh(e.trialExpiry),new Date)<=P$e,BI=e=>!!(e&&e.state===vs.EXPIRED&&!e.trialExtended),$$e=C("aside")(({theme:e})=>({position:"relative",zIndex:1,display:"flex",alignItems:"center",justifyContent:"center",padding:e.spacing(1),gap:e.spacing(1),borderBottom:"1px solid",borderColor:e.palette.warning.border,background:e.palette.warning.light,color:e.palette.warning.dark})),R8=C("aside")(({theme:e})=>({position:"relative",zIndex:1,display:"flex",alignItems:"center",justifyContent:"center",padding:e.spacing(1),gap:e.spacing(1),borderBottom:"1px solid",borderColor:e.palette.info.border,background:e.palette.info.light,color:e.palette.info.dark})),N$e=C(Ve)(({theme:e})=>({whiteSpace:"nowrap",minWidth:"8rem",marginLeft:e.spacing(2)})),L$e=C(b9)(({theme:e})=>({color:e.palette.warning.main})),_8=C(pf)(({theme:e})=>({color:e.palette.info.main})),M$e=({instanceStatus:e})=>A8(e)?l(D$e,{instanceStatus:e}):O$e(e)?l(B$e,{instanceStatus:e}):I$e(e)?l(F$e,{instanceStatus:e}):null,D$e=({instanceStatus:e})=>x($$e,{"data-testid":X2,children:[l(L$e,{}),x(se,{sx:t=>({fontSize:t.fontSizes.smallBody}),children:[l("strong",{children:"Warning!"})," Your free ",e.plan," trial has expired. ",l("strong",{children:"Upgrade trial"})," otherwise your"," ",l("strong",{children:"account will be deleted."})]}),l(pk,{})]}),B$e=({instanceStatus:e})=>{const t=$ue(Bh(e.trialExpiry),{roundingMethod:"floor"});return x(R8,{"data-testid":X2,children:[l(_8,{}),x(se,{sx:n=>({fontSize:n.fontSizes.smallBody}),children:[l("strong",{children:"Heads up!"})," You have"," ",l("strong",{children:t})," left of your free"," ",e.plan," trial."]}),l(pk,{})]})},F$e=({instanceStatus:e})=>x(R8,{"data-testid":X2,children:[l(_8,{}),x(se,{sx:t=>({fontSize:t.fontSizes.smallBody}),children:[l("strong",{children:"Heads up!"})," You're currently on a free"," ",e.plan," trial account."]}),l(pk,{})]}),pk=()=>{const{hasAccess:e}=m.useContext(yo),t=gt();return e(fi)?l(N$e,{onClick:()=>t("/admin/billing"),variant:"outlined",children:"Upgrade trial"}):null},z$e=()=>{const{makeRequest:e,createRequest:t,errors:n,loading:r}=Yn({propagateErrors:!0});return{extendTrial:async()=>{const a=t("api/instance/extend",{method:"POST"},"extendTrial");await e(a.caller,a.id)},loading:r,errors:n}},j$e=({instanceStatus:e,onExtendTrial:t})=>{const{hasAccess:n}=m.useContext(yo),r=gt(),o=A8(e),[i,a]=m.useState(o),s=(c,u)=>{u||(a(!1),BI(e)&&t().catch(console.error))};return m.useEffect(()=>{a(o);const c=setInterval(()=>{a(o)},6e4);return()=>clearInterval(c)},[o]),n(fi)?l(gr,{open:i,primaryButtonText:"Upgrade trial",secondaryButtonText:BI(e)?"Extend trial (5 days)":"Remind me later",onClick:()=>{r("/admin/billing"),a(!1)},onClose:s,title:`Your free ${e.plan} trial has expired!`,children:x(se,{children:[l("strong",{children:"Upgrade trial"})," otherwise your"," ",l("strong",{children:"account will be deleted."})]})}):l(gr,{open:i,secondaryButtonText:"Remind me later",onClose:()=>{a(!1)},title:`Your free ${e.plan} trial has expired!`,children:x(se,{children:["Please inform your admin to ",l("strong",{children:"Upgrade trial"})," or your ",l("strong",{children:"account will be deleted."})]})})},U$e=({children:e})=>{const{instanceStatus:t,refetchInstanceStatus:n,isBilling:r}=R$e(),{extendTrial:o}=z$e(),{setToastApiError:i}=$t(),a=async()=>{try{await o(),await n()}catch(s){i(ht(s))}};return x(ve,{children:[l(q,{condition:r&&!!t,show:()=>x(ve,{children:[l(W$e,{instanceStatus:t}),l(j$e,{instanceStatus:t,onExtendTrial:a})]})}),e]})},W$e=Te.memo(M$e),H$e=()=>{const e=Gf("unleash-theme");return e||(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")},V$e=({children:e})=>{const[t,n]=m.useState(yN()),[r,o]=m.useState(!1),[i,a]=m.useState(H$e()),s=Te.useMemo(()=>({setToast:n,toastData:t,showFeedback:r,setShowFeedback:o,themeMode:i,setThemeMode:a}),[t,r,i]);return l(kl.Provider,{value:s,children:e})},G$e=({children:e})=>{const{uiConfig:t}=Ot();return t.flags?l(V$e,{children:e}):null},FI=["http","https","mailto","tel"];function q$e(e){const t=(e||"").trim(),n=t.charAt(0);if(n==="#"||n==="/")return t;const r=t.indexOf(":");if(r===-1)return t;let o=-1;for(;++o<FI.length;){const i=FI[o];if(r===i.length&&t.slice(0,i.length).toLowerCase()===i)return t}return o=t.indexOf("?"),o!==-1&&r>o||(o=t.indexOf("#"),o!==-1&&r>o)?t:"javascript:void(0)"}/*!
433
- * Determine if an object is a Buffer
434
- *
435
- * @author Feross Aboukhadijeh <https://feross.org>
436
- * @license MIT
437
- */var K$e=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};const P8=qr(K$e);function yf(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?zI(e.position):"start"in e||"end"in e?zI(e):"line"in e||"column"in e?zx(e):""}function zx(e){return jI(e&&e.line)+":"+jI(e&&e.column)}function zI(e){return zx(e&&e.start)+"-"+zx(e&&e.end)}function jI(e){return e&&typeof e=="number"?e:1}class qi extends Error{constructor(t,n,r){const o=[null,null];let i={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof n=="string"&&(r=n,n=void 0),typeof r=="string"){const a=r.indexOf(":");a===-1?o[1]=r:(o[0]=r.slice(0,a),o[1]=r.slice(a+1))}n&&("type"in n||"position"in n?n.position&&(i=n.position):"start"in n||"end"in n?i=n:("line"in n||"column"in n)&&(i.start=n)),this.name=yf(n)||"1:1",this.message=typeof t=="object"?t.message:t,this.stack="",typeof t=="object"&&t.stack&&(this.stack=t.stack),this.reason=this.message,this.fatal,this.line=i.start.line,this.column=i.start.column,this.position=i,this.source=o[0],this.ruleId=o[1],this.file,this.actual,this.expected,this.url,this.note}}qi.prototype.file="";qi.prototype.name="";qi.prototype.reason="";qi.prototype.message="";qi.prototype.stack="";qi.prototype.fatal=null;qi.prototype.column=null;qi.prototype.line=null;qi.prototype.source=null;qi.prototype.ruleId=null;qi.prototype.position=null;const ga={basename:Y$e,dirname:X$e,extname:J$e,join:Q$e,sep:"/"};function Y$e(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');tm(e);let n=0,r=-1,o=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.charCodeAt(o)===47){if(i){n=o+1;break}}else r<0&&(i=!0,r=o+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,s=t.length-1;for(;o--;)if(e.charCodeAt(o)===47){if(i){n=o+1;break}}else a<0&&(i=!0,a=o+1),s>-1&&(e.charCodeAt(o)===t.charCodeAt(s--)?s<0&&(r=o):(s=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function X$e(e){if(tm(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.charCodeAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function J$e(e){tm(e);let t=e.length,n=-1,r=0,o=-1,i=0,a;for(;t--;){const s=e.charCodeAt(t);if(s===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),s===46?o<0?o=t:i!==1&&(i=1):o>-1&&(i=-1)}return o<0||n<0||i===0||i===1&&o===n-1&&o===r+1?"":e.slice(o,n)}function Q$e(...e){let t=-1,n;for(;++t<e.length;)tm(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Z$e(n)}function Z$e(e){tm(e);const t=e.charCodeAt(0)===47;let n=e6e(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function e6e(e,t){let n="",r=0,o=-1,i=0,a=-1,s,c;for(;++a<=e.length;){if(a<e.length)s=e.charCodeAt(a);else{if(s===47)break;s=47}if(s===47){if(!(o===a-1||i===1))if(o!==a-1&&i===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),o=a,i=0;continue}}else if(n.length>0){n="",r=0,o=a,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(o+1,a):n=e.slice(o+1,a),r=a-o-1;o=a,i=0}else s===46&&i>-1?i++:i=-1}return n}function tm(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const t6e={cwd:n6e};function n6e(){return"/"}function jx(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function r6e(e){if(typeof e=="string")e=new URL(e);else if(!jx(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return o6e(e)}function o6e(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.charCodeAt(n)===37&&t.charCodeAt(n+1)===50){const r=t.charCodeAt(n+2);if(r===70||r===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}const Iw=["history","path","basename","stem","extname","dirname"];class I8{constructor(t){let n;t?typeof t=="string"||i6e(t)?n={value:t}:jx(t)?n={path:t}:n=t:n={},this.data={},this.messages=[],this.history=[],this.cwd=t6e.cwd(),this.value,this.stored,this.result,this.map;let r=-1;for(;++r<Iw.length;){const i=Iw[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let o;for(o in n)Iw.includes(o)||(this[o]=n[o])}get path(){return this.history[this.history.length-1]}set path(t){jx(t)&&(t=r6e(t)),$w(t,"path"),this.path!==t&&this.history.push(t)}get dirname(){return typeof this.path=="string"?ga.dirname(this.path):void 0}set dirname(t){UI(this.basename,"dirname"),this.path=ga.join(t||"",this.basename)}get basename(){return typeof this.path=="string"?ga.basename(this.path):void 0}set basename(t){$w(t,"basename"),Ow(t,"basename"),this.path=ga.join(this.dirname||"",t)}get extname(){return typeof this.path=="string"?ga.extname(this.path):void 0}set extname(t){if(Ow(t,"extname"),UI(this.dirname,"extname"),t){if(t.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ga.join(this.dirname,this.stem+(t||""))}get stem(){return typeof this.path=="string"?ga.basename(this.path,this.extname):void 0}set stem(t){$w(t,"stem"),Ow(t,"stem"),this.path=ga.join(this.dirname||"",t+(this.extname||""))}toString(t){return(this.value||"").toString(t||void 0)}message(t,n,r){const o=new qi(t,n,r);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}info(t,n,r){const o=this.message(t,n,r);return o.fatal=null,o}fail(t,n,r){const o=this.message(t,n,r);throw o.fatal=!0,o}}function Ow(e,t){if(e&&e.includes(ga.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ga.sep+"`")}function $w(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function UI(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function i6e(e){return P8(e)}function WI(e){if(e)throw e}var Bg=Object.prototype.hasOwnProperty,O8=Object.prototype.toString,HI=Object.defineProperty,VI=Object.getOwnPropertyDescriptor,GI=function(t){return typeof Array.isArray=="function"?Array.isArray(t):O8.call(t)==="[object Array]"},qI=function(t){if(!t||O8.call(t)!=="[object Object]")return!1;var n=Bg.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Bg.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var o;for(o in t);return typeof o>"u"||Bg.call(t,o)},KI=function(t,n){HI&&n.name==="__proto__"?HI(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},YI=function(t,n){if(n==="__proto__")if(Bg.call(t,n)){if(VI)return VI(t,n).value}else return;return t[n]},a6e=function e(){var t,n,r,o,i,a,s=arguments[0],c=1,u=arguments.length,d=!1;for(typeof s=="boolean"&&(d=s,s=arguments[1]||{},c=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});c<u;++c)if(t=arguments[c],t!=null)for(n in t)r=YI(s,n),o=YI(t,n),s!==o&&(d&&o&&(qI(o)||(i=GI(o)))?(i?(i=!1,a=r&&GI(r)?r:[]):a=r&&qI(r)?r:{},KI(s,{name:n,newValue:e(d,a,o)})):typeof o<"u"&&KI(s,{name:n,newValue:o}));return s};const XI=qr(a6e);function Ux(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function s6e(){const e=[],t={run:n,use:r};return t;function n(...o){let i=-1;const a=o.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);s(null,...o);function s(c,...u){const d=e[++i];let p=-1;if(c){a(c);return}for(;++p<o.length;)(u[p]===null||u[p]===void 0)&&(u[p]=o[p]);o=u,d?l6e(d,s)(...u):a(null,...u)}}function r(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function l6e(e,t){let n;return r;function r(...a){const s=e.length>a.length;let c;s&&a.push(o);try{c=e.apply(this,a)}catch(u){const d=u;if(s&&n)throw d;return o(d)}s||(c instanceof Promise?c.then(i,o):c instanceof Error?o(c):i(c))}function o(a,...s){n||(n=!0,t(a,...s))}function i(a){o(null,a)}}const c6e=N8().freeze(),$8={}.hasOwnProperty;function N8(){const e=s6e(),t=[];let n={},r,o=-1;return i.data=a,i.Parser=void 0,i.Compiler=void 0,i.freeze=s,i.attachers=t,i.use=c,i.parse=u,i.stringify=d,i.run=p,i.runSync=f,i.process=h,i.processSync=g,i;function i(){const v=N8();let y=-1;for(;++y<t.length;)v.use(...t[y]);return v.data(XI(!0,{},n)),v}function a(v,y){return typeof v=="string"?arguments.length===2?(Mw("data",r),n[v]=y,i):$8.call(n,v)&&n[v]||null:v?(Mw("data",r),n=v,i):n}function s(){if(r)return i;for(;++o<t.length;){const[v,...y]=t[o];if(y[0]===!1)continue;y[0]===!0&&(y[0]=void 0);const b=v.call(i,...y);typeof b=="function"&&e.use(b)}return r=!0,o=Number.POSITIVE_INFINITY,i}function c(v,...y){let b;if(Mw("use",r),v!=null)if(typeof v=="function")A(v,...y);else if(typeof v=="object")Array.isArray(v)?k(v):S(v);else throw new TypeError("Expected usable value, not `"+v+"`");return b&&(n.settings=Object.assign(n.settings||{},b)),i;function w(T){if(typeof T=="function")A(T);else if(typeof T=="object")if(Array.isArray(T)){const[R,...P]=T;A(R,...P)}else S(T);else throw new TypeError("Expected usable value, not `"+T+"`")}function S(T){k(T.plugins),T.settings&&(b=Object.assign(b||{},T.settings))}function k(T){let R=-1;if(T!=null)if(Array.isArray(T))for(;++R<T.length;){const P=T[R];w(P)}else throw new TypeError("Expected a list of plugins, not `"+T+"`")}function A(T,R){let P=-1,_;for(;++P<t.length;)if(t[P][0]===T){_=t[P];break}_?(Ux(_[1])&&Ux(R)&&(R=XI(!0,_[1],R)),_[1]=R):t.push([...arguments])}}function u(v){i.freeze();const y=Np(v),b=i.Parser;return Nw("parse",b),JI(b,"parse")?new b(String(y),y).parse():b(String(y),y)}function d(v,y){i.freeze();const b=Np(y),w=i.Compiler;return Lw("stringify",w),QI(v),JI(w,"compile")?new w(v,b).compile():w(v,b)}function p(v,y,b){if(QI(v),i.freeze(),!b&&typeof y=="function"&&(b=y,y=void 0),!b)return new Promise(w);w(null,b);function w(S,k){e.run(v,Np(y),A);function A(T,R,P){R=R||v,T?k(T):S?S(R):b(null,R,P)}}}function f(v,y){let b,w;return i.run(v,y,S),ZI("runSync","run",w),b;function S(k,A){WI(k),b=A,w=!0}}function h(v,y){if(i.freeze(),Nw("process",i.Parser),Lw("process",i.Compiler),!y)return new Promise(b);b(null,y);function b(w,S){const k=Np(v);i.run(i.parse(k),k,(T,R,P)=>{if(T||!R||!P)A(T);else{const _=i.stringify(R,P);_==null||(p6e(_)?P.value=_:P.result=_),A(T,P)}});function A(T,R){T||!R?S(T):w?w(R):y(null,R)}}}function g(v){let y;i.freeze(),Nw("processSync",i.Parser),Lw("processSync",i.Compiler);const b=Np(v);return i.process(b,w),ZI("processSync","process",y),b;function w(S){y=!0,WI(S)}}}function JI(e,t){return typeof e=="function"&&e.prototype&&(u6e(e.prototype)||t in e.prototype)}function u6e(e){let t;for(t in e)if($8.call(e,t))return!0;return!1}function Nw(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function Lw(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function Mw(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function QI(e){if(!Ux(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ZI(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Np(e){return d6e(e)?e:new I8(e)}function d6e(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function p6e(e){return typeof e=="string"||P8(e)}const f6e={};function h6e(e,t){const n=t||f6e,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,o=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return L8(e,r,o)}function L8(e,t,n){if(m6e(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return e4(e.children,t,n)}return Array.isArray(e)?e4(e,t,n):""}function e4(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=L8(e[o],t,n);return r.join("")}function m6e(e){return!!(e&&typeof e=="object")}function Va(e,t,n,r){const o=e.length;let i=0,a;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),[].splice.apply(e,a);else for(n&&[].splice.apply(e,[t,n]);i<r.length;)a=r.slice(i,i+1e4),a.unshift(t,0),[].splice.apply(e,a),i+=1e4,t+=1e4}function bi(e,t){return e.length>0?(Va(e,e.length,0,t),e):t}const t4={}.hasOwnProperty;function g6e(e){const t={};let n=-1;for(;++n<e.length;)v6e(t,e[n]);return t}function v6e(e,t){let n;for(n in t){const o=(t4.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let a;for(a in i){t4.call(o,a)||(o[a]=[]);const s=i[a];y6e(o[a],Array.isArray(s)?s:s?[s]:[])}}}function y6e(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Va(e,0,0,r)}const b6e=/[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,Ta=Pl(/[A-Za-z]/),Wx=Pl(/\d/),w6e=Pl(/[\dA-Fa-f]/),ni=Pl(/[\dA-Za-z]/),S6e=Pl(/[!-/:-@[-`{-~]/),n4=Pl(/[#-'*+\--9=?A-Z^-~]/);function Hx(e){return e!==null&&(e<32||e===127)}function Oi(e){return e!==null&&(e<0||e===32)}function Dt(e){return e!==null&&e<-2}function Rr(e){return e===-2||e===-1||e===32}const x6e=Pl(/\s/),C6e=Pl(b6e);function Pl(e){return t;function t(n){return n!==null&&e.test(String.fromCharCode(n))}}function Fn(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return a;function a(c){return Rr(c)?(e.enter(n),s(c)):t(c)}function s(c){return Rr(c)&&i++<o?(e.consume(c),s):(e.exit(n),t(c))}}const E6e={tokenize:T6e};function T6e(e){const t=e.attempt(this.parser.constructs.contentInitial,r,o);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Fn(e,t,"linePrefix")}function o(s){return e.enter("paragraph"),i(s)}function i(s){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,a(s)}function a(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return Dt(s)?(e.consume(s),e.exit("chunkText"),i):(e.consume(s),a)}}const k6e={tokenize:A6e},r4={tokenize:R6e};function A6e(e){const t=this,n=[];let r=0,o,i,a;return s;function s(S){if(r<n.length){const k=n[r];return t.containerState=k[1],e.attempt(k[0].continuation,c,u)(S)}return u(S)}function c(S){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&w();const k=t.events.length;let A=k,T;for(;A--;)if(t.events[A][0]==="exit"&&t.events[A][1].type==="chunkFlow"){T=t.events[A][1].end;break}b(r);let R=k;for(;R<t.events.length;)t.events[R][1].end=Object.assign({},T),R++;return Va(t.events,A+1,0,t.events.slice(k)),t.events.length=R,u(S)}return s(S)}function u(S){if(r===n.length){if(!o)return f(S);if(o.currentConstruct&&o.currentConstruct.concrete)return g(S);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(r4,d,p)(S)}function d(S){return o&&w(),b(r),f(S)}function p(S){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,g(S)}function f(S){return t.containerState={},e.attempt(r4,h,g)(S)}function h(S){return r++,n.push([t.currentConstruct,t.containerState]),f(S)}function g(S){if(S===null){o&&w(),b(0),e.consume(S);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:o}),v(S)}function v(S){if(S===null){y(e.exit("chunkFlow"),!0),b(0),e.consume(S);return}return Dt(S)?(e.consume(S),y(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(S),v)}function y(S,k){const A=t.sliceStream(S);if(k&&A.push(null),S.previous=i,i&&(i.next=S),i=S,o.defineSkip(S.start),o.write(A),t.parser.lazy[S.start.line]){let T=o.events.length;for(;T--;)if(o.events[T][1].start.offset<a&&(!o.events[T][1].end||o.events[T][1].end.offset>a))return;const R=t.events.length;let P=R,_,I;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){if(_){I=t.events[P][1].end;break}_=!0}for(b(r),T=R;T<t.events.length;)t.events[T][1].end=Object.assign({},I),T++;Va(t.events,P+1,0,t.events.slice(R)),t.events.length=T}}function b(S){let k=n.length;for(;k-- >S;){const A=n[k];t.containerState=A[1],A[0].exit.call(t,e)}n.length=S}function w(){o.write([null]),i=void 0,o=void 0,t.containerState._closeFlow=void 0}}function R6e(e,t,n){return Fn(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function o4(e){if(e===null||Oi(e)||x6e(e))return 1;if(C6e(e))return 2}function fk(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const Vx={name:"attention",tokenize:P6e,resolveAll:_6e};function _6e(e,t){let n=-1,r,o,i,a,s,c,u,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const p=Object.assign({},e[r][1].end),f=Object.assign({},e[n][1].start);i4(p,-c),i4(f,c),a={type:c>1?"strongSequence":"emphasisSequence",start:p,end:Object.assign({},e[r][1].end)},s={type:c>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:f},i={type:c>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o={type:c>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},a.start),e[n][1].start=Object.assign({},s.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=bi(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=bi(u,[["enter",o,t],["enter",a,t],["exit",a,t],["enter",i,t]]),u=bi(u,fk(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=bi(u,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=bi(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,Va(e,r-1,n-r+3,u),n=r+u.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function P6e(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=o4(r);let i;return a;function a(c){return e.enter("attentionSequence"),i=c,s(c)}function s(c){if(c===i)return e.consume(c),s;const u=e.exit("attentionSequence"),d=o4(c),p=!d||d===2&&o||n.includes(c),f=!o||o===2&&d||n.includes(r);return u._open=!!(i===42?p:p&&(o||!f)),u._close=!!(i===42?f:f&&(d||!p)),t(c)}}function i4(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const I6e={name:"autolink",tokenize:O6e};function O6e(e,t,n){let r=1;return o;function o(g){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(g){return Ta(g)?(e.consume(g),a):n4(g)?u(g):n(g)}function a(g){return g===43||g===45||g===46||ni(g)?s(g):u(g)}function s(g){return g===58?(e.consume(g),c):(g===43||g===45||g===46||ni(g))&&r++<32?(e.consume(g),s):u(g)}function c(g){return g===62?(e.exit("autolinkProtocol"),h(g)):g===null||g===32||g===60||Hx(g)?n(g):(e.consume(g),c)}function u(g){return g===64?(e.consume(g),r=0,d):n4(g)?(e.consume(g),u):n(g)}function d(g){return ni(g)?p(g):n(g)}function p(g){return g===46?(e.consume(g),r=0,d):g===62?(e.exit("autolinkProtocol").type="autolinkEmail",h(g)):f(g)}function f(g){return(g===45||ni(g))&&r++<63?(e.consume(g),g===45?f:p):n(g)}function h(g){return e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t}}const m0={tokenize:$6e,partial:!0};function $6e(e,t,n){return Fn(e,r,"linePrefix");function r(o){return o===null||Dt(o)?t(o):n(o)}}const M8={name:"blockQuote",tokenize:N6e,continuation:{tokenize:L6e},exit:M6e};function N6e(e,t,n){const r=this;return o;function o(a){if(a===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),i}return n(a)}function i(a){return Rr(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function L6e(e,t,n){return Fn(e,e.attempt(M8,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function M6e(e){e.exit("blockQuote")}const D8={name:"characterEscape",tokenize:D6e};function D6e(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),o}function o(i){return S6e(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const a4=document.createElement("i");function hk(e){const t="&"+e+";";a4.innerHTML=t;const n=a4.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const B8={name:"characterReference",tokenize:B6e};function B6e(e,t,n){const r=this;let o=0,i,a;return s;function s(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),c}function c(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),i=31,a=ni,d(p))}function u(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,a=w6e,d):(e.enter("characterReferenceValue"),i=7,a=Wx,d(p))}function d(p){let f;return p===59&&o?(f=e.exit("characterReferenceValue"),a===ni&&!hk(r.sliceSerialize(f))?n(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)):a(p)&&o++<i?(e.consume(p),d):n(p)}}const s4={name:"codeFenced",tokenize:F6e,concrete:!0};function F6e(e,t,n){const r=this,o={tokenize:A,partial:!0},i={tokenize:k,partial:!0},a=this.events[this.events.length-1],s=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0;let c=0,u;return d;function d(T){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u=T,p(T)}function p(T){return T===u?(e.consume(T),c++,p):(e.exit("codeFencedFenceSequence"),c<3?n(T):Fn(e,f,"whitespace")(T))}function f(T){return T===null||Dt(T)?y(T):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(T))}function h(T){return T===null||Oi(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Fn(e,g,"whitespace")(T)):T===96&&T===u?n(T):(e.consume(T),h)}function g(T){return T===null||Dt(T)?y(T):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(T))}function v(T){return T===null||Dt(T)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),y(T)):T===96&&T===u?n(T):(e.consume(T),v)}function y(T){return e.exit("codeFencedFence"),r.interrupt?t(T):b(T)}function b(T){return T===null?S(T):Dt(T)?e.attempt(i,e.attempt(o,S,s?Fn(e,b,"linePrefix",s+1):b),S)(T):(e.enter("codeFlowValue"),w(T))}function w(T){return T===null||Dt(T)?(e.exit("codeFlowValue"),b(T)):(e.consume(T),w)}function S(T){return e.exit("codeFenced"),t(T)}function k(T,R,P){const _=this;return I;function I(U){return T.enter("lineEnding"),T.consume(U),T.exit("lineEnding"),$}function $(U){return _.parser.lazy[_.now().line]?P(U):R(U)}}function A(T,R,P){let _=0;return Fn(T,I,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function I(M){return T.enter("codeFencedFence"),T.enter("codeFencedFenceSequence"),$(M)}function $(M){return M===u?(T.consume(M),_++,$):_<c?P(M):(T.exit("codeFencedFenceSequence"),Fn(T,U,"whitespace")(M))}function U(M){return M===null||Dt(M)?(T.exit("codeFencedFence"),R(M)):P(M)}}}const Dw={name:"codeIndented",tokenize:j6e},z6e={tokenize:U6e,partial:!0};function j6e(e,t,n){const r=this;return o;function o(u){return e.enter("codeIndented"),Fn(e,i,"linePrefix",4+1)(u)}function i(u){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?a(u):n(u)}function a(u){return u===null?c(u):Dt(u)?e.attempt(z6e,a,c)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||Dt(u)?(e.exit("codeFlowValue"),a(u)):(e.consume(u),s)}function c(u){return e.exit("codeIndented"),t(u)}}function U6e(e,t,n){const r=this;return o;function o(a){return r.parser.lazy[r.now().line]?n(a):Dt(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):Fn(e,i,"linePrefix",4+1)(a)}function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):Dt(a)?o(a):n(a)}}const W6e={name:"codeText",tokenize:G6e,resolve:H6e,previous:V6e};function H6e(e){let t=e.length-4,n=3,r,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)o===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(o=r):(r===t||e[r][1].type==="lineEnding")&&(e[o][1].type="codeTextData",r!==o+2&&(e[o][1].end=e[r-1][1].end,e.splice(o+2,r-o-2),t-=r-o-2,r=o+2),o=void 0);return e}function V6e(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function G6e(e,t,n){let r=0,o,i;return a;function a(p){return e.enter("codeText"),e.enter("codeTextSequence"),s(p)}function s(p){return p===96?(e.consume(p),r++,s):(e.exit("codeTextSequence"),c(p))}function c(p){return p===null?n(p):p===96?(i=e.enter("codeTextSequence"),o=0,d(p)):p===32?(e.enter("space"),e.consume(p),e.exit("space"),c):Dt(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("codeTextData"),u(p))}function u(p){return p===null||p===32||p===96||Dt(p)?(e.exit("codeTextData"),c(p)):(e.consume(p),u)}function d(p){return p===96?(e.consume(p),o++,d):o===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(i.type="codeTextData",u(p))}}function F8(e){const t={};let n=-1,r,o,i,a,s,c,u;for(;++n<e.length;){for(;n in t;)n=t[n];if(r=e[n],n&&r[1].type==="chunkFlow"&&e[n-1][1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,i=0,i<c.length&&c[i][1].type==="lineEndingBlank"&&(i+=2),i<c.length&&c[i][1].type==="content"))for(;++i<c.length&&c[i][1].type!=="content";)c[i][1].type==="chunkText"&&(c[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,q6e(e,n)),n=t[n],u=!0);else if(r[1]._container){for(i=n,o=void 0;i--&&(a=e[i],a[1].type==="lineEnding"||a[1].type==="lineEndingBlank");)a[0]==="enter"&&(o&&(e[o][1].type="lineEndingBlank"),a[1].type="lineEnding",o=i);o&&(r[1].end=Object.assign({},e[o][1].start),s=e.slice(o,n),s.unshift(r),Va(e,o,n-o+1,s))}}return!u}function q6e(e,t){const n=e[t][1],r=e[t][2];let o=t-1;const i=[],a=n._tokenizer||r.parser[n.contentType](n.start),s=a.events,c=[],u={};let d,p,f=-1,h=n,g=0,v=0;const y=[v];for(;h;){for(;e[++o][1]!==h;);i.push(o),h._tokenizer||(d=r.sliceStream(h),h.next||d.push(null),p&&a.defineSkip(h.start),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(d),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),p=h,h=h.next}for(h=n;++f<s.length;)s[f][0]==="exit"&&s[f-1][0]==="enter"&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(v=f+1,y.push(v),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(a.events=[],h?(h._tokenizer=void 0,h.previous=void 0):y.pop(),f=y.length;f--;){const b=s.slice(y[f],y[f+1]),w=i.pop();c.unshift([w,w+b.length-1]),Va(e,w,2,b)}for(f=-1;++f<c.length;)u[g+c[f][0]]=g+c[f][1],g+=c[f][1]-c[f][0]-1;return u}const K6e={tokenize:J6e,resolve:X6e},Y6e={tokenize:Q6e,partial:!0};function X6e(e){return F8(e),e}function J6e(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(s)}function o(s){return s===null?i(s):Dt(s)?e.check(Y6e,a,i)(s):(e.consume(s),o)}function i(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function a(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function Q6e(e,t,n){const r=this;return o;function o(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Fn(e,i,"linePrefix")}function i(a){if(a===null||Dt(a))return n(a);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function z8(e,t,n,r,o,i,a,s,c){const u=c||Number.POSITIVE_INFINITY;let d=0;return p;function p(b){return b===60?(e.enter(r),e.enter(o),e.enter(i),e.consume(b),e.exit(i),f):b===null||b===41||Hx(b)?n(b):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(b))}function f(b){return b===62?(e.enter(i),e.consume(b),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===62?(e.exit("chunkString"),e.exit(s),f(b)):b===null||b===60||Dt(b)?n(b):(e.consume(b),b===92?g:h)}function g(b){return b===60||b===62||b===92?(e.consume(b),h):h(b)}function v(b){return b===40?++d>u?n(b):(e.consume(b),v):b===41?d--?(e.consume(b),v):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(b)):b===null||Oi(b)?d?n(b):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(b)):Hx(b)?n(b):(e.consume(b),b===92?y:v)}function y(b){return b===40||b===41||b===92?(e.consume(b),v):v(b)}}function j8(e,t,n,r,o,i){const a=this;let s=0,c;return u;function u(h){return e.enter(r),e.enter(o),e.consume(h),e.exit(o),e.enter(i),d}function d(h){return h===null||h===91||h===93&&!c||h===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs||s>999?n(h):h===93?(e.exit(i),e.enter(o),e.consume(h),e.exit(o),e.exit(r),t):Dt(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),p(h))}function p(h){return h===null||h===91||h===93||Dt(h)||s++>999?(e.exit("chunkString"),d(h)):(e.consume(h),c=c||!Rr(h),h===92?f:p)}function f(h){return h===91||h===92||h===93?(e.consume(h),s++,p):p(h)}}function U8(e,t,n,r,o,i){let a;return s;function s(f){return e.enter(r),e.enter(o),e.consume(f),e.exit(o),a=f===40?41:f,c}function c(f){return f===a?(e.enter(o),e.consume(f),e.exit(o),e.exit(r),t):(e.enter(i),u(f))}function u(f){return f===a?(e.exit(i),c(a)):f===null?n(f):Dt(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Fn(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===a||f===null||Dt(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?p:d)}function p(f){return f===a||f===92?(e.consume(f),d):d(f)}}function bf(e,t){let n;return r;function r(o){return Dt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):Rr(o)?Fn(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}function Lu(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Z6e={name:"definition",tokenize:tNe},eNe={tokenize:nNe,partial:!0};function tNe(e,t,n){const r=this;let o;return i;function i(c){return e.enter("definition"),j8.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(c)}function a(c){return o=Lu(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),c===58?(e.enter("definitionMarker"),e.consume(c),e.exit("definitionMarker"),bf(e,z8(e,e.attempt(eNe,Fn(e,s,"whitespace"),Fn(e,s,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(c)}function s(c){return c===null||Dt(c)?(e.exit("definition"),r.parser.defined.includes(o)||r.parser.defined.push(o),t(c)):n(c)}}function nNe(e,t,n){return r;function r(a){return Oi(a)?bf(e,o)(a):n(a)}function o(a){return a===34||a===39||a===40?U8(e,Fn(e,i,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a):n(a)}function i(a){return a===null||Dt(a)?t(a):n(a)}}const rNe={name:"hardBreakEscape",tokenize:oNe};function oNe(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(i),o}function o(i){return Dt(i)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(i)):n(i)}}const iNe={name:"headingAtx",tokenize:sNe,resolve:aNe};function aNe(e,t){let n=e.length-2,r=3,o,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(o={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Va(e,r,n-r+1,[["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t]])),e}function sNe(e,t,n){const r=this;let o=0;return i;function i(d){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),a(d)}function a(d){return d===35&&o++<6?(e.consume(d),a):d===null||Oi(d)?(e.exit("atxHeadingSequence"),r.interrupt?t(d):s(d)):n(d)}function s(d){return d===35?(e.enter("atxHeadingSequence"),c(d)):d===null||Dt(d)?(e.exit("atxHeading"),t(d)):Rr(d)?Fn(e,s,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function c(d){return d===35?(e.consume(d),c):(e.exit("atxHeadingSequence"),s(d))}function u(d){return d===null||d===35||Oi(d)?(e.exit("atxHeadingText"),s(d)):(e.consume(d),u)}}const lNe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],l4=["pre","script","style","textarea"],cNe={name:"htmlFlow",tokenize:pNe,resolveTo:dNe,concrete:!0},uNe={tokenize:fNe,partial:!0};function dNe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function pNe(e,t,n){const r=this;let o,i,a,s,c;return u;function u(B){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(B),d}function d(B){return B===33?(e.consume(B),p):B===47?(e.consume(B),g):B===63?(e.consume(B),o=3,r.interrupt?t:j):Ta(B)?(e.consume(B),a=String.fromCharCode(B),i=!0,v):n(B)}function p(B){return B===45?(e.consume(B),o=2,f):B===91?(e.consume(B),o=5,a="CDATA[",s=0,h):Ta(B)?(e.consume(B),o=4,r.interrupt?t:j):n(B)}function f(B){return B===45?(e.consume(B),r.interrupt?t:j):n(B)}function h(B){return B===a.charCodeAt(s++)?(e.consume(B),s===a.length?r.interrupt?t:$:h):n(B)}function g(B){return Ta(B)?(e.consume(B),a=String.fromCharCode(B),v):n(B)}function v(B){return B===null||B===47||B===62||Oi(B)?B!==47&&i&&l4.includes(a.toLowerCase())?(o=1,r.interrupt?t(B):$(B)):lNe.includes(a.toLowerCase())?(o=6,B===47?(e.consume(B),y):r.interrupt?t(B):$(B)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(B):i?w(B):b(B)):B===45||ni(B)?(e.consume(B),a+=String.fromCharCode(B),v):n(B)}function y(B){return B===62?(e.consume(B),r.interrupt?t:$):n(B)}function b(B){return Rr(B)?(e.consume(B),b):_(B)}function w(B){return B===47?(e.consume(B),_):B===58||B===95||Ta(B)?(e.consume(B),S):Rr(B)?(e.consume(B),w):_(B)}function S(B){return B===45||B===46||B===58||B===95||ni(B)?(e.consume(B),S):k(B)}function k(B){return B===61?(e.consume(B),A):Rr(B)?(e.consume(B),k):w(B)}function A(B){return B===null||B===60||B===61||B===62||B===96?n(B):B===34||B===39?(e.consume(B),c=B,T):Rr(B)?(e.consume(B),A):(c=null,R(B))}function T(B){return B===null||Dt(B)?n(B):B===c?(e.consume(B),P):(e.consume(B),T)}function R(B){return B===null||B===34||B===39||B===60||B===61||B===62||B===96||Oi(B)?k(B):(e.consume(B),R)}function P(B){return B===47||B===62||Rr(B)?w(B):n(B)}function _(B){return B===62?(e.consume(B),I):n(B)}function I(B){return Rr(B)?(e.consume(B),I):B===null||Dt(B)?$(B):n(B)}function $(B){return B===45&&o===2?(e.consume(B),K):B===60&&o===1?(e.consume(B),H):B===62&&o===4?(e.consume(B),z):B===63&&o===3?(e.consume(B),j):B===93&&o===5?(e.consume(B),V):Dt(B)&&(o===6||o===7)?e.check(uNe,z,U)(B):B===null||Dt(B)?U(B):(e.consume(B),$)}function U(B){return e.exit("htmlFlowData"),M(B)}function M(B){return B===null?O(B):Dt(B)?e.attempt({tokenize:D,partial:!0},M,O)(B):(e.enter("htmlFlowData"),$(B))}function D(B,Z,ae){return Ae;function Ae(Ie){return B.enter("lineEnding"),B.consume(Ie),B.exit("lineEnding"),fe}function fe(Ie){return r.parser.lazy[r.now().line]?ae(Ie):Z(Ie)}}function K(B){return B===45?(e.consume(B),j):$(B)}function H(B){return B===47?(e.consume(B),a="",Q):$(B)}function Q(B){return B===62&&l4.includes(a.toLowerCase())?(e.consume(B),z):Ta(B)&&a.length<8?(e.consume(B),a+=String.fromCharCode(B),Q):$(B)}function V(B){return B===93?(e.consume(B),j):$(B)}function j(B){return B===62?(e.consume(B),z):B===45&&o===2?(e.consume(B),j):$(B)}function z(B){return B===null||Dt(B)?(e.exit("htmlFlowData"),O(B)):(e.consume(B),z)}function O(B){return e.exit("htmlFlow"),t(B)}}function fNe(e,t,n){return r;function r(o){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),e.attempt(m0,t,n)}}const hNe={name:"htmlText",tokenize:mNe};function mNe(e,t,n){const r=this;let o,i,a,s;return c;function c(O){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(O),u}function u(O){return O===33?(e.consume(O),d):O===47?(e.consume(O),R):O===63?(e.consume(O),A):Ta(O)?(e.consume(O),I):n(O)}function d(O){return O===45?(e.consume(O),p):O===91?(e.consume(O),i="CDATA[",a=0,y):Ta(O)?(e.consume(O),k):n(O)}function p(O){return O===45?(e.consume(O),f):n(O)}function f(O){return O===null||O===62?n(O):O===45?(e.consume(O),h):g(O)}function h(O){return O===null||O===62?n(O):g(O)}function g(O){return O===null?n(O):O===45?(e.consume(O),v):Dt(O)?(s=g,V(O)):(e.consume(O),g)}function v(O){return O===45?(e.consume(O),z):g(O)}function y(O){return O===i.charCodeAt(a++)?(e.consume(O),a===i.length?b:y):n(O)}function b(O){return O===null?n(O):O===93?(e.consume(O),w):Dt(O)?(s=b,V(O)):(e.consume(O),b)}function w(O){return O===93?(e.consume(O),S):b(O)}function S(O){return O===62?z(O):O===93?(e.consume(O),S):b(O)}function k(O){return O===null||O===62?z(O):Dt(O)?(s=k,V(O)):(e.consume(O),k)}function A(O){return O===null?n(O):O===63?(e.consume(O),T):Dt(O)?(s=A,V(O)):(e.consume(O),A)}function T(O){return O===62?z(O):A(O)}function R(O){return Ta(O)?(e.consume(O),P):n(O)}function P(O){return O===45||ni(O)?(e.consume(O),P):_(O)}function _(O){return Dt(O)?(s=_,V(O)):Rr(O)?(e.consume(O),_):z(O)}function I(O){return O===45||ni(O)?(e.consume(O),I):O===47||O===62||Oi(O)?$(O):n(O)}function $(O){return O===47?(e.consume(O),z):O===58||O===95||Ta(O)?(e.consume(O),U):Dt(O)?(s=$,V(O)):Rr(O)?(e.consume(O),$):z(O)}function U(O){return O===45||O===46||O===58||O===95||ni(O)?(e.consume(O),U):M(O)}function M(O){return O===61?(e.consume(O),D):Dt(O)?(s=M,V(O)):Rr(O)?(e.consume(O),M):$(O)}function D(O){return O===null||O===60||O===61||O===62||O===96?n(O):O===34||O===39?(e.consume(O),o=O,K):Dt(O)?(s=D,V(O)):Rr(O)?(e.consume(O),D):(e.consume(O),o=void 0,Q)}function K(O){return O===o?(e.consume(O),H):O===null?n(O):Dt(O)?(s=K,V(O)):(e.consume(O),K)}function H(O){return O===62||O===47||Oi(O)?$(O):n(O)}function Q(O){return O===null||O===34||O===39||O===60||O===61||O===96?n(O):O===62||Oi(O)?$(O):(e.consume(O),Q)}function V(O){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),Fn(e,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function j(O){return e.enter("htmlTextData"),s(O)}function z(O){return O===62?(e.consume(O),e.exit("htmlTextData"),e.exit("htmlText"),t):n(O)}}const mk={name:"labelEnd",tokenize:SNe,resolveTo:wNe,resolveAll:bNe},gNe={tokenize:xNe},vNe={tokenize:CNe},yNe={tokenize:ENe};function bNe(e){let t=-1,n;for(;++t<e.length;)n=e[t][1],(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(e.splice(t+1,n.type==="labelImage"?4:2),n.type="data",t++);return e}function wNe(e,t){let n=e.length,r=0,o,i,a,s;for(;n--;)if(o=e[n][1],i){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[n][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(i=n,o.type!=="labelLink")){r=2;break}}else o.type==="labelEnd"&&(a=n);const c={type:e[i][1].type==="labelLink"?"link":"image",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)},u={type:"label",start:Object.assign({},e[i][1].start),end:Object.assign({},e[a][1].end)},d={type:"labelText",start:Object.assign({},e[i+r+2][1].end),end:Object.assign({},e[a-2][1].start)};return s=[["enter",c,t],["enter",u,t]],s=bi(s,e.slice(i+1,i+r+3)),s=bi(s,[["enter",d,t]]),s=bi(s,fk(t.parser.constructs.insideSpan.null,e.slice(i+r+4,a-3),t)),s=bi(s,[["exit",d,t],e[a-2],e[a-1],["exit",u,t]]),s=bi(s,e.slice(a+1)),s=bi(s,[["exit",c,t]]),Va(e,i,e.length,s),e}function SNe(e,t,n){const r=this;let o=r.events.length,i,a;for(;o--;)if((r.events[o][1].type==="labelImage"||r.events[o][1].type==="labelLink")&&!r.events[o][1]._balanced){i=r.events[o][1];break}return s;function s(d){return i?i._inactive?u(d):(a=r.parser.defined.includes(Lu(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),c):n(d)}function c(d){return d===40?e.attempt(gNe,t,a?t:u)(d):d===91?e.attempt(vNe,t,a?e.attempt(yNe,t,u):u)(d):a?t(d):u(d)}function u(d){return i._balanced=!0,n(d)}}function xNe(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),bf(e,o)}function o(c){return c===41?s(c):z8(e,i,n,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function i(c){return Oi(c)?bf(e,a)(c):s(c)}function a(c){return c===34||c===39||c===40?U8(e,bf(e,s),n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):s(c)}function s(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function CNe(e,t,n){const r=this;return o;function o(a){return j8.call(r,e,i,n,"reference","referenceMarker","referenceString")(a)}function i(a){return r.parser.defined.includes(Lu(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}}function ENe(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),o}function o(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const TNe={name:"labelStartImage",tokenize:kNe,resolveAll:mk.resolveAll};function kNe(e,t,n){const r=this;return o;function o(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),i}function i(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),a):n(s)}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const ANe={name:"labelStartLink",tokenize:RNe,resolveAll:mk.resolveAll};function RNe(e,t,n){const r=this;return o;function o(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),i}function i(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const Bw={name:"lineEnding",tokenize:_Ne};function _Ne(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Fn(e,t,"linePrefix")}}const Fg={name:"thematicBreak",tokenize:PNe};function PNe(e,t,n){let r=0,o;return i;function i(c){return e.enter("thematicBreak"),o=c,a(c)}function a(c){return c===o?(e.enter("thematicBreakSequence"),s(c)):Rr(c)?Fn(e,a,"whitespace")(c):r<3||c!==null&&!Dt(c)?n(c):(e.exit("thematicBreak"),t(c))}function s(c){return c===o?(e.consume(c),r++,s):(e.exit("thematicBreakSequence"),a(c))}}const $o={name:"list",tokenize:$Ne,continuation:{tokenize:NNe},exit:MNe},INe={tokenize:DNe,partial:!0},ONe={tokenize:LNe,partial:!0};function $Ne(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,a=0;return s;function s(h){const g=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Wx(h)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Fg,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(h)}return n(h)}function c(h){return Wx(h)&&++a<10?(e.consume(h),c):(!r.interrupt||a<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(m0,r.interrupt?n:d,e.attempt(INe,f,p))}function d(h){return r.containerState.initialBlankLine=!0,i++,f(h)}function p(h){return Rr(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),f):n(h)}function f(h){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function NNe(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(m0,o,i);function o(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Fn(e,t,"listItemIndent",r.containerState.size+1)(s)}function i(s){return r.containerState.furtherBlankLines||!Rr(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ONe,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Fn(e,e.attempt($o,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function LNe(e,t,n){const r=this;return Fn(e,o,"listItemIndent",r.containerState.size+1);function o(i){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(i):n(i)}}function MNe(e){e.exit(this.containerState.type)}function DNe(e,t,n){const r=this;return Fn(e,o,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function o(i){const a=r.events[r.events.length-1];return!Rr(i)&&a&&a[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const c4={name:"setextUnderline",tokenize:FNe,resolveTo:BNe};function BNe(e,t){let n=e.length,r,o,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const a={type:"setextHeading",start:Object.assign({},e[o][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[o][1].type="setextHeadingText",i?(e.splice(o,0,["enter",a,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=a,e.push(["exit",a,t]),e}function FNe(e,t,n){const r=this;let o=r.events.length,i,a;for(;o--;)if(r.events[o][1].type!=="lineEnding"&&r.events[o][1].type!=="linePrefix"&&r.events[o][1].type!=="content"){a=r.events[o][1].type==="paragraph";break}return s;function s(d){return!r.parser.lazy[r.now().line]&&(r.interrupt||a)?(e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),i=d,c(d)):n(d)}function c(d){return d===i?(e.consume(d),c):(e.exit("setextHeadingLineSequence"),Fn(e,u,"lineSuffix")(d))}function u(d){return d===null||Dt(d)?(e.exit("setextHeadingLine"),t(d)):n(d)}}const zNe={tokenize:jNe};function jNe(e){const t=this,n=e.attempt(m0,r,e.attempt(this.parser.constructs.flowInitial,o,Fn(e,e.attempt(this.parser.constructs.flow,o,e.attempt(K6e,o)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const UNe={resolveAll:H8()},WNe=W8("string"),HNe=W8("text");function W8(e){return{tokenize:t,resolveAll:H8(e==="text"?VNe:void 0)};function t(n){const r=this,o=this.parser.constructs[e],i=n.attempt(o,a,s);return a;function a(d){return u(d)?i(d):s(d)}function s(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),c}function c(d){return u(d)?(n.exit("data"),i(d)):(n.consume(d),c)}function u(d){if(d===null)return!0;const p=o[d];let f=-1;if(p)for(;++f<p.length;){const h=p[f];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function H8(e){return t;function t(n,r){let o=-1,i;for(;++o<=n.length;)i===void 0?n[o]&&n[o][1].type==="data"&&(i=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==i+2&&(n[i][1].end=n[o-1][1].end,n.splice(i+2,o-i-2),o=i+2),i=void 0);return e?e(n,r):n}}function VNe(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],o=t.sliceStream(r);let i=o.length,a=-1,s=0,c;for(;i--;){const u=o[i];if(typeof u=="string"){for(a=u.length;u.charCodeAt(a-1)===32;)s++,a--;if(a)break;a=-1}else if(u===-2)c=!0,s++;else if(u!==-1){i++;break}}if(s){const u={type:n===e.length||c||s<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-s,offset:r.end.offset-s,_index:r.start._index+i,_bufferIndex:i?a:r.start._bufferIndex+a},end:Object.assign({},r.end)};r.end=Object.assign({},u.start),r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}function GNe(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const o={},i=[];let a=[],s=[];const c={consume:w,enter:S,exit:k,attempt:R(A),check:R(T),interrupt:R(T,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:f,now:g,defineSkip:v,write:p};let d=t.tokenize.call(u,c);return t.resolveAll&&i.push(t),u;function p($){return a=bi(a,$),y(),a[a.length-1]!==null?[]:(P(t,0),u.events=fk(i,u.events,u),u.events)}function f($,U){return KNe(h($),U)}function h($){return qNe(a,$)}function g(){return Object.assign({},r)}function v($){o[$.line]=$.column,I()}function y(){let $;for(;r._index<a.length;){const U=a[r._index];if(typeof U=="string")for($=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===$&&r._bufferIndex<U.length;)b(U.charCodeAt(r._bufferIndex));else b(U)}}function b($){d=d($)}function w($){Dt($)?(r.line++,r.column=1,r.offset+=$===-3?2:1,I()):$!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=$}function S($,U){const M=U||{};return M.type=$,M.start=g(),u.events.push(["enter",M,u]),s.push(M),M}function k($){const U=s.pop();return U.end=g(),u.events.push(["exit",U,u]),U}function A($,U){P($,U.from)}function T($,U){U.restore()}function R($,U){return M;function M(D,K,H){let Q,V,j,z;return Array.isArray(D)?B(D):"tokenize"in D?B([D]):O(D);function O(fe){return Ie;function Ie(ne){const ie=ne!==null&&fe[ne],ce=ne!==null&&fe.null,te=[...Array.isArray(ie)?ie:ie?[ie]:[],...Array.isArray(ce)?ce:ce?[ce]:[]];return B(te)(ne)}}function B(fe){return Q=fe,V=0,fe.length===0?H:Z(fe[V])}function Z(fe){return Ie;function Ie(ne){return z=_(),j=fe,fe.partial||(u.currentConstruct=fe),fe.name&&u.parser.constructs.disable.null.includes(fe.name)?Ae():fe.tokenize.call(U?Object.assign(Object.create(u),U):u,c,ae,Ae)(ne)}}function ae(fe){return $(j,z),K}function Ae(fe){return z.restore(),++V<Q.length?Z(Q[V]):H}}}function P($,U){$.resolveAll&&!i.includes($)&&i.push($),$.resolve&&Va(u.events,U,u.events.length-U,$.resolve(u.events.slice(U),u)),$.resolveTo&&(u.events=$.resolveTo(u.events,u))}function _(){const $=g(),U=u.previous,M=u.currentConstruct,D=u.events.length,K=Array.from(s);return{restore:H,from:D};function H(){r=$,u.previous=U,u.currentConstruct=M,u.events.length=D,s=K,I()}}function I(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function qNe(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let a;return n===o?a=[e[n].slice(r,i)]:(a=e.slice(n,o),r>-1&&(a[0]=a[0].slice(r)),i>0&&a.push(e[o].slice(0,i))),a}function KNe(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let a;if(typeof i=="string")a=i;else switch(i){case-5:{a="\r";break}case-4:{a=`
438
- `;break}case-3:{a=`\r
439
- `;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&o)continue;a=" ";break}default:a=String.fromCharCode(i)}o=i===-2,r.push(a)}return r.join("")}const YNe={[42]:$o,[43]:$o,[45]:$o,[48]:$o,[49]:$o,[50]:$o,[51]:$o,[52]:$o,[53]:$o,[54]:$o,[55]:$o,[56]:$o,[57]:$o,[62]:M8},XNe={[91]:Z6e},JNe={[-2]:Dw,[-1]:Dw,[32]:Dw},QNe={[35]:iNe,[42]:Fg,[45]:[c4,Fg],[60]:cNe,[61]:c4,[95]:Fg,[96]:s4,[126]:s4},ZNe={[38]:B8,[92]:D8},e9e={[-5]:Bw,[-4]:Bw,[-3]:Bw,[33]:TNe,[38]:B8,[42]:Vx,[60]:[I6e,hNe],[91]:ANe,[92]:[rNe,D8],[93]:mk,[95]:Vx,[96]:W6e},t9e={null:[Vx,UNe]},n9e={null:[42,95]},r9e={null:[]},o9e=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:n9e,contentInitial:XNe,disable:r9e,document:YNe,flow:QNe,flowInitial:JNe,insideSpan:t9e,string:ZNe,text:e9e},Symbol.toStringTag,{value:"Module"}));function i9e(e={}){const t=g6e([o9e].concat(e.extensions||[])),n={defined:[],lazy:{},constructs:t,content:r(E6e),document:r(k6e),flow:r(zNe),string:r(WNe),text:r(HNe)};return n;function r(o){return i;function i(a){return GNe(n,o,a)}}}const u4=/[\0\t\n\r]/g;function a9e(){let e=1,t="",n=!0,r;return o;function o(i,a,s){const c=[];let u,d,p,f,h;for(i=t+i.toString(a),p=0,t="",n&&(i.charCodeAt(0)===65279&&p++,n=void 0);p<i.length;){if(u4.lastIndex=p,u=u4.exec(i),f=u&&u.index!==void 0?u.index:i.length,h=i.charCodeAt(f),!u){t=i.slice(p);break}if(h===10&&p===f&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),p<f&&(c.push(i.slice(p,f)),e+=f-p),h){case 0:{c.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,c.push(-2);e++<d;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}p=f+1}return s&&(r&&c.push(-5),t&&c.push(t),c.push(null)),c}}function s9e(e){for(;!F8(e););return e}function V8(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}const l9e=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function c9e(e){return e.replace(l9e,u9e)}function u9e(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const o=n.charCodeAt(1),i=o===120||o===88;return V8(n.slice(i?2:1),i?16:10)}return hk(n)||e}const G8={}.hasOwnProperty,d9e=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),p9e(n)(s9e(i9e(n).document().write(a9e()(e,t,!0))))};function p9e(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ot),autolinkProtocol:$,autolinkEmail:$,atxHeading:s(at),blockQuote:s(te),characterEscape:$,characterReference:$,codeFenced:s(Ne),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(Ne,c),codeText:s(ye,c),codeTextData:$,data:$,codeFlowValue:$,definition:s(Ce),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(me),hardBreakEscape:s(Oe),hardBreakTrailing:s(Oe),htmlFlow:s(Ge,c),htmlFlowData:$,htmlText:s(Ge,c),htmlTextData:$,image:s(dt),label:c,link:s(ot),listItem:s(Lt),listItemValue:g,listOrdered:s(st,h),listUnordered:s(st),paragraph:s(Ct),reference:Ae,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(at),strong:s(we),thematicBreak:s(Qe)},exit:{atxHeading:d(),atxHeadingSequence:R,autolink:d(),autolinkEmail:ce,autolinkProtocol:ie,blockQuote:d(),characterEscapeValue:U,characterReferenceMarkerHexadecimal:Ie,characterReferenceMarkerNumeric:Ie,characterReferenceValue:ne,codeFenced:d(w),codeFencedFence:b,codeFencedFenceInfo:v,codeFencedFenceMeta:y,codeFlowValue:U,codeIndented:d(S),codeText:d(Q),codeTextData:U,data:U,definition:d(),definitionDestinationString:T,definitionLabelString:k,definitionTitleString:A,emphasis:d(),hardBreakEscape:d(D),hardBreakTrailing:d(D),htmlFlow:d(K),htmlFlowData:U,htmlText:d(H),htmlTextData:U,image:d(j),label:O,labelText:z,lineEnding:M,link:d(V),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:fe,resourceDestinationString:B,resourceTitleString:Z,resource:ae,setextHeading:d(I),setextHeadingLineSequence:_,setextHeadingText:P,strong:d(),thematicBreak:d()}};q8(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(oe){let ee={type:"root",children:[]};const X={stack:[ee],tokenStack:[],config:t,enter:u,exit:p,buffer:c,resume:f,setData:i,getData:a},Se=[];let Re=-1;for(;++Re<oe.length;)if(oe[Re][1].type==="listOrdered"||oe[Re][1].type==="listUnordered")if(oe[Re][0]==="enter")Se.push(Re);else{const Me=Se.pop();Re=o(oe,Me,Re)}for(Re=-1;++Re<oe.length;){const Me=t[oe[Re][0]];G8.call(Me,oe[Re][1].type)&&Me[oe[Re][1].type].call(Object.assign({sliceSerialize:oe[Re][2].sliceSerialize},X),oe[Re][1])}if(X.tokenStack.length>0){const Me=X.tokenStack[X.tokenStack.length-1];(Me[1]||d4).call(X,void 0,Me[0])}for(ee.position={start:Ms(oe.length>0?oe[0][1].start:{line:1,column:1,offset:0}),end:Ms(oe.length>0?oe[oe.length-2][1].end:{line:1,column:1,offset:0})},Re=-1;++Re<t.transforms.length;)ee=t.transforms[Re](ee)||ee;return ee}function o(oe,ee,X){let Se=ee-1,Re=-1,Me=!1,bt,_t,zt,dn;for(;++Se<=X;){const jt=oe[Se];if(jt[1].type==="listUnordered"||jt[1].type==="listOrdered"||jt[1].type==="blockQuote"?(jt[0]==="enter"?Re++:Re--,dn=void 0):jt[1].type==="lineEndingBlank"?jt[0]==="enter"&&(bt&&!dn&&!Re&&!zt&&(zt=Se),dn=void 0):jt[1].type==="linePrefix"||jt[1].type==="listItemValue"||jt[1].type==="listItemMarker"||jt[1].type==="listItemPrefix"||jt[1].type==="listItemPrefixWhitespace"||(dn=void 0),!Re&&jt[0]==="enter"&&jt[1].type==="listItemPrefix"||Re===-1&&jt[0]==="exit"&&(jt[1].type==="listUnordered"||jt[1].type==="listOrdered")){if(bt){let Gt=Se;for(_t=void 0;Gt--;){const nn=oe[Gt];if(nn[1].type==="lineEnding"||nn[1].type==="lineEndingBlank"){if(nn[0]==="exit")continue;_t&&(oe[_t][1].type="lineEndingBlank",Me=!0),nn[1].type="lineEnding",_t=Gt}else if(!(nn[1].type==="linePrefix"||nn[1].type==="blockQuotePrefix"||nn[1].type==="blockQuotePrefixWhitespace"||nn[1].type==="blockQuoteMarker"||nn[1].type==="listItemIndent"))break}zt&&(!_t||zt<_t)&&(bt._spread=!0),bt.end=Object.assign({},_t?oe[_t][1].start:jt[1].end),oe.splice(_t||Se,0,["exit",bt,jt[2]]),Se++,X++}jt[1].type==="listItemPrefix"&&(bt={type:"listItem",_spread:!1,start:Object.assign({},jt[1].start)},oe.splice(Se,0,["enter",bt,jt[2]]),Se++,X++,zt=void 0,dn=!0)}}return oe[ee][1]._spread=Me,X}function i(oe,ee){n[oe]=ee}function a(oe){return n[oe]}function s(oe,ee){return X;function X(Se){u.call(this,oe(Se),Se),ee&&ee.call(this,Se)}}function c(){this.stack.push({type:"fragment",children:[]})}function u(oe,ee,X){return this.stack[this.stack.length-1].children.push(oe),this.stack.push(oe),this.tokenStack.push([ee,X]),oe.position={start:Ms(ee.start)},oe}function d(oe){return ee;function ee(X){oe&&oe.call(this,X),p.call(this,X)}}function p(oe,ee){const X=this.stack.pop(),Se=this.tokenStack.pop();if(Se)Se[0].type!==oe.type&&(ee?ee.call(this,oe,Se[0]):(Se[1]||d4).call(this,oe,Se[0]));else throw new Error("Cannot close `"+oe.type+"` ("+yf({start:oe.start,end:oe.end})+"): it’s not open");return X.position.end=Ms(oe.end),X}function f(){return h6e(this.stack.pop())}function h(){i("expectingFirstListItemValue",!0)}function g(oe){if(a("expectingFirstListItemValue")){const ee=this.stack[this.stack.length-2];ee.start=Number.parseInt(this.sliceSerialize(oe),10),i("expectingFirstListItemValue")}}function v(){const oe=this.resume(),ee=this.stack[this.stack.length-1];ee.lang=oe}function y(){const oe=this.resume(),ee=this.stack[this.stack.length-1];ee.meta=oe}function b(){a("flowCodeInside")||(this.buffer(),i("flowCodeInside",!0))}function w(){const oe=this.resume(),ee=this.stack[this.stack.length-1];ee.value=oe.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),i("flowCodeInside")}function S(){const oe=this.resume(),ee=this.stack[this.stack.length-1];ee.value=oe.replace(/(\r?\n|\r)$/g,"")}function k(oe){const ee=this.resume(),X=this.stack[this.stack.length-1];X.label=ee,X.identifier=Lu(this.sliceSerialize(oe)).toLowerCase()}function A(){const oe=this.resume(),ee=this.stack[this.stack.length-1];ee.title=oe}function T(){const oe=this.resume(),ee=this.stack[this.stack.length-1];ee.url=oe}function R(oe){const ee=this.stack[this.stack.length-1];if(!ee.depth){const X=this.sliceSerialize(oe).length;ee.depth=X}}function P(){i("setextHeadingSlurpLineEnding",!0)}function _(oe){const ee=this.stack[this.stack.length-1];ee.depth=this.sliceSerialize(oe).charCodeAt(0)===61?1:2}function I(){i("setextHeadingSlurpLineEnding")}function $(oe){const ee=this.stack[this.stack.length-1];let X=ee.children[ee.children.length-1];(!X||X.type!=="text")&&(X=$e(),X.position={start:Ms(oe.start)},ee.children.push(X)),this.stack.push(X)}function U(oe){const ee=this.stack.pop();ee.value+=this.sliceSerialize(oe),ee.position.end=Ms(oe.end)}function M(oe){const ee=this.stack[this.stack.length-1];if(a("atHardBreak")){const X=ee.children[ee.children.length-1];X.position.end=Ms(oe.end),i("atHardBreak");return}!a("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(ee.type)&&($.call(this,oe),U.call(this,oe))}function D(){i("atHardBreak",!0)}function K(){const oe=this.resume(),ee=this.stack[this.stack.length-1];ee.value=oe}function H(){const oe=this.resume(),ee=this.stack[this.stack.length-1];ee.value=oe}function Q(){const oe=this.resume(),ee=this.stack[this.stack.length-1];ee.value=oe}function V(){const oe=this.stack[this.stack.length-1];if(a("inReference")){const ee=a("referenceType")||"shortcut";oe.type+="Reference",oe.referenceType=ee,delete oe.url,delete oe.title}else delete oe.identifier,delete oe.label;i("referenceType")}function j(){const oe=this.stack[this.stack.length-1];if(a("inReference")){const ee=a("referenceType")||"shortcut";oe.type+="Reference",oe.referenceType=ee,delete oe.url,delete oe.title}else delete oe.identifier,delete oe.label;i("referenceType")}function z(oe){const ee=this.sliceSerialize(oe),X=this.stack[this.stack.length-2];X.label=c9e(ee),X.identifier=Lu(ee).toLowerCase()}function O(){const oe=this.stack[this.stack.length-1],ee=this.resume(),X=this.stack[this.stack.length-1];if(i("inReference",!0),X.type==="link"){const Se=oe.children;X.children=Se}else X.alt=ee}function B(){const oe=this.resume(),ee=this.stack[this.stack.length-1];ee.url=oe}function Z(){const oe=this.resume(),ee=this.stack[this.stack.length-1];ee.title=oe}function ae(){i("inReference")}function Ae(){i("referenceType","collapsed")}function fe(oe){const ee=this.resume(),X=this.stack[this.stack.length-1];X.label=ee,X.identifier=Lu(this.sliceSerialize(oe)).toLowerCase(),i("referenceType","full")}function Ie(oe){i("characterReferenceType",oe.type)}function ne(oe){const ee=this.sliceSerialize(oe),X=a("characterReferenceType");let Se;X?(Se=V8(ee,X==="characterReferenceMarkerNumeric"?10:16),i("characterReferenceType")):Se=hk(ee);const Re=this.stack.pop();Re.value+=Se,Re.position.end=Ms(oe.end)}function ie(oe){U.call(this,oe);const ee=this.stack[this.stack.length-1];ee.url=this.sliceSerialize(oe)}function ce(oe){U.call(this,oe);const ee=this.stack[this.stack.length-1];ee.url="mailto:"+this.sliceSerialize(oe)}function te(){return{type:"blockquote",children:[]}}function Ne(){return{type:"code",lang:null,meta:null,value:""}}function ye(){return{type:"inlineCode",value:""}}function Ce(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function me(){return{type:"emphasis",children:[]}}function at(){return{type:"heading",depth:void 0,children:[]}}function Oe(){return{type:"break"}}function Ge(){return{type:"html",value:""}}function dt(){return{type:"image",title:null,url:"",alt:null}}function ot(){return{type:"link",title:null,url:"",children:[]}}function st(oe){return{type:"list",ordered:oe.type==="listOrdered",start:null,spread:oe._spread,children:[]}}function Lt(oe){return{type:"listItem",spread:oe._spread,checked:null,children:[]}}function Ct(){return{type:"paragraph",children:[]}}function we(){return{type:"strong",children:[]}}function $e(){return{type:"text",value:""}}function Qe(){return{type:"thematicBreak"}}}function Ms(e){return{line:e.line,column:e.column,offset:e.offset}}function q8(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?q8(e,r):f9e(e,r)}}function f9e(e,t){let n;for(n in t)if(G8.call(t,n)){if(n==="canContainEols"){const r=t[n];r&&e[n].push(...r)}else if(n==="transforms"){const r=t[n];r&&e[n].push(...r)}else if(n==="enter"||n==="exit"){const r=t[n];r&&Object.assign(e[n],r)}}}function d4(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+yf({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+yf({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+yf({start:t.start,end:t.end})+") is still open")}function h9e(e){Object.assign(this,{Parser:n=>{const r=this.data("settings");return d9e(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function m9e(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function g9e(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
440
- `}]}function v9e(e,t){const n=t.value?t.value+`
441
- `:"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,o={};r&&(o.className=["language-"+r]);let i={type:"element",tagName:"code",properties:o,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function y9e(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function b9e(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function zd(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let a="";if(i===37&&ni(e.charCodeAt(n+1))&&ni(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const s=e.charCodeAt(n+1);i<56320&&s>56319&&s<57344?(a=String.fromCharCode(i,s),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function K8(e,t){const n=String(t.identifier).toUpperCase(),r=zd(n.toLowerCase()),o=e.footnoteOrder.indexOf(n);let i;o===-1?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,i=e.footnoteOrder.length):(e.footnoteCounts[n]++,i=o+1);const a=e.footnoteCounts[n],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,s);const c={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,c),e.applyData(t,c)}function w9e(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const o=String(r);return n[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},K8(e,{type:"footnoteReference",identifier:o,position:t.position})}function S9e(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function x9e(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null}function Y8(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return{type:"text",value:"!["+t.alt+r};const o=e.all(t),i=o[0];i&&i.type==="text"?i.value="["+i.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&a.type==="text"?a.value+=r:o.push({type:"text",value:r}),o}function C9e(e,t){const n=e.definition(t.identifier);if(!n)return Y8(e,t);const r={src:zd(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(r.title=n.title);const o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)}function E9e(e,t){const n={src:zd(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function T9e(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function k9e(e,t){const n=e.definition(t.identifier);if(!n)return Y8(e,t);const r={href:zd(n.url||"")};n.title!==null&&n.title!==void 0&&(r.title=n.title);const o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function A9e(e,t){const n={href:zd(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function R9e(e,t,n){const r=e.all(t),o=n?_9e(n):X8(t),i={},a=[];if(typeof t.checked=="boolean"){const d=r[0];let p;d&&d.type==="element"&&d.tagName==="p"?p=d:(p={type:"element",tagName:"p",properties:{},children:[]},r.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const d=r[s];(o||s!==0||d.type!=="element"||d.tagName!=="p")&&a.push({type:"text",value:`
442
- `}),d.type==="element"&&d.tagName==="p"&&!o?a.push(...d.children):a.push(d)}const c=r[r.length-1];c&&(o||c.type!=="element"||c.tagName!=="p")&&a.push({type:"text",value:`
443
- `});const u={type:"element",tagName:"li",properties:i,children:a};return e.patch(t,u),e.applyData(t,u)}function _9e(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=X8(n[r])}return t}function X8(e){const t=e.spread;return t??e.children.length>1}function P9e(e,t){const n={},r=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++o<r.length;){const a=r[o];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)}function I9e(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function O9e(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function $9e(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const gk=J8("start"),vk=J8("end");function N9e(e){return{start:gk(e),end:vk(e)}}function J8(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};return{line:r.line||null,column:r.column||null,offset:r.offset>-1?r.offset:null}}}function L9e(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),o.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=gk(t.children[1]),c=vk(t.children[t.children.length-1]);s.line&&c.line&&(a.position={start:s,end:c}),o.push(a)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)}function M9e(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,s=a?a.length:t.children.length;let c=-1;const u=[];for(;++c<s;){const p=t.children[c],f={},h=a?a[c]:void 0;h&&(f.align=h);let g={type:"element",tagName:i,properties:f,children:[]};p&&(g.children=e.all(p),e.patch(p,g),g=e.applyData(t,g)),u.push(g)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,d),e.applyData(t,d)}function D9e(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const p4=9,f4=32;function B9e(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(h4(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(h4(t.slice(o),o>0,!1)),i.join("")}function h4(e,t,n){let r=0,o=e.length;if(t){let i=e.codePointAt(r);for(;i===p4||i===f4;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(o-1);for(;i===p4||i===f4;)o--,i=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}function F9e(e,t){const n={type:"text",value:B9e(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function z9e(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const j9e={blockquote:m9e,break:g9e,code:v9e,delete:y9e,emphasis:b9e,footnoteReference:K8,footnote:w9e,heading:S9e,html:x9e,imageReference:C9e,image:E9e,inlineCode:T9e,linkReference:k9e,link:A9e,listItem:R9e,list:P9e,paragraph:I9e,root:O9e,strong:$9e,table:L9e,tableCell:D9e,tableRow:M9e,text:F9e,thematicBreak:z9e,toml:pg,yaml:pg,definition:pg,footnoteDefinition:pg};function pg(){return null}const Q8=function(e){if(e==null)return V9e;if(typeof e=="string")return H9e(e);if(typeof e=="object")return Array.isArray(e)?U9e(e):W9e(e);if(typeof e=="function")return g0(e);throw new Error("Expected function, string, or object as test")};function U9e(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Q8(e[n]);return g0(r);function r(...o){let i=-1;for(;++i<t.length;)if(t[i].call(this,...o))return!0;return!1}}function W9e(e){return g0(t);function t(n){let r;for(r in e)if(n[r]!==e[r])return!1;return!0}}function H9e(e){return g0(t);function t(n){return n&&n.type===e}}function g0(e){return t;function t(n,...r){return!!(n&&typeof n=="object"&&"type"in n&&e.call(this,n,...r))}}function V9e(){return!0}const G9e=!0,m4=!1,q9e="skip",K9e=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null);const o=Q8(t),i=r?-1:1;a(e,void 0,[])();function a(s,c,u){const d=s&&typeof s=="object"?s:{};if(typeof d.type=="string"){const f=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(s.type+(f?"<"+f+">":""))+")"})}return p;function p(){let f=[],h,g,v;if((!t||o(s,c,u[u.length-1]||null))&&(f=Y9e(n(s,u)),f[0]===m4))return f;if(s.children&&f[0]!==q9e)for(g=(r?s.children.length:-1)+i,v=u.concat(s);g>-1&&g<s.children.length;){if(h=a(s.children[g],g,v)(),h[0]===m4)return h;g=typeof h[1]=="number"?h[1]:g+i}return f}}};function Y9e(e){return Array.isArray(e)?e:typeof e=="number"?[G9e,e]:[e]}const yk=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),K9e(e,t,o,r);function o(i,a){const s=a[a.length-1];return n(i,s?s.children.indexOf(i):null,s)}};function X9e(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column}const g4={}.hasOwnProperty;function J9e(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return yk(e,"definition",r=>{const o=v4(r.identifier);o&&!g4.call(t,o)&&(t[o]=r)}),n;function n(r){const o=v4(r);return o&&g4.call(t,o)?t[o]:null}}function v4(e){return String(e||"").toUpperCase()}const Yv={}.hasOwnProperty;function Q9e(e,t){const n=t||{},r=n.allowDangerousHtml||!1,o={};return a.dangerous=r,a.clobberPrefix=n.clobberPrefix===void 0||n.clobberPrefix===null?"user-content-":n.clobberPrefix,a.footnoteLabel=n.footnoteLabel||"Footnotes",a.footnoteLabelTagName=n.footnoteLabelTagName||"h2",a.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},a.footnoteBackLabel=n.footnoteBackLabel||"Back to content",a.unknownHandler=n.unknownHandler,a.passThrough=n.passThrough,a.handlers={...j9e,...n.handlers},a.definition=J9e(e),a.footnoteById=o,a.footnoteOrder=[],a.footnoteCounts={},a.patch=Z9e,a.applyData=eLe,a.one=s,a.all=c,a.wrap=nLe,a.augment=i,yk(e,"footnoteDefinition",u=>{const d=String(u.identifier).toUpperCase();Yv.call(o,d)||(o[d]=u)}),a;function i(u,d){if(u&&"data"in u&&u.data){const p=u.data;p.hName&&(d.type!=="element"&&(d={type:"element",tagName:"",properties:{},children:[]}),d.tagName=p.hName),d.type==="element"&&p.hProperties&&(d.properties={...d.properties,...p.hProperties}),"children"in d&&d.children&&p.hChildren&&(d.children=p.hChildren)}if(u){const p="type"in u?u:{position:u};X9e(p)||(d.position={start:gk(p),end:vk(p)})}return d}function a(u,d,p,f){return Array.isArray(p)&&(f=p,p={}),i(u,{type:"element",tagName:d,properties:p||{},children:f||[]})}function s(u,d){return Z8(a,u,d)}function c(u){return bk(a,u)}}function Z9e(e,t){e.position&&(t.position=N9e(e))}function eLe(e,t){let n=t;if(e&&e.data){const r=e.data.hName,o=e.data.hChildren,i=e.data.hProperties;typeof r=="string"&&(n.type==="element"?n.tagName=r:n={type:"element",tagName:r,properties:{},children:[]}),n.type==="element"&&i&&(n.properties={...n.properties,...i}),"children"in n&&n.children&&o!==null&&o!==void 0&&(n.children=o)}return n}function Z8(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return Yv.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:bk(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):tLe(e,t)}function bk(e,t){const n=[];if("children"in t){const r=t.children;let o=-1;for(;++o<r.length;){const i=Z8(e,r[o],t);if(i){if(o&&r[o-1].type==="break"&&(!Array.isArray(i)&&i.type==="text"&&(i.value=i.value.replace(/^\s+/,"")),!Array.isArray(i)&&i.type==="element")){const a=i.children[0];a&&a.type==="text"&&(a.value=a.value.replace(/^\s+/,""))}Array.isArray(i)?n.push(...i):n.push(i)}}}return n}function tLe(e,t){const n=t.data||{},r="value"in t&&!(Yv.call(n,"hProperties")||Yv.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:bk(e,t)};return e.patch(t,r),e.applyData(t,r)}function nLe(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
444
- `});++r<e.length;)r&&n.push({type:"text",value:`
445
- `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
446
- `}),n}function rLe(e){const t=[];let n=-1;for(;++n<e.footnoteOrder.length;){const r=e.footnoteById[e.footnoteOrder[n]];if(!r)continue;const o=e.all(r),i=String(r.identifier).toUpperCase(),a=zd(i.toLowerCase());let s=0;const c=[];for(;++s<=e.footnoteCounts[i];){const p={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&p.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),c.length>0&&c.push({type:"text",value:" "}),c.push(p)}const u=o[o.length-1];if(u&&u.type==="element"&&u.tagName==="p"){const p=u.children[u.children.length-1];p&&p.type==="text"?p.value+=" ":u.children.push({type:"text",value:" "}),u.children.push(...c)}else o.push(...c);const d={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:e.wrap(o,!0)};e.patch(r,d),t.push(d)}if(t.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:`
447
- `},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:`
448
- `}]}}function eB(e,t){const n=Q9e(e,t),r=n.one(e,null),o=rLe(n);return o&&r.children.push({type:"text",value:`
449
- `},o),Array.isArray(r)?{type:"root",children:r}:r}const oLe=function(e,t){return e&&"run"in e?aLe(e,t):sLe(e||t)},iLe=oLe;function aLe(e,t){return(n,r,o)=>{e.run(eB(n,t),r,i=>{o(i)})}}function sLe(e){return t=>eB(t,e)}class nm{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}nm.prototype.property={};nm.prototype.normal={};nm.prototype.space=null;function tB(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new nm(n,r,t)}function Gx(e){return e.toLowerCase()}class Ki{constructor(t,n){this.property=t,this.attribute=n}}Ki.prototype.space=null;Ki.prototype.boolean=!1;Ki.prototype.booleanish=!1;Ki.prototype.overloadedBoolean=!1;Ki.prototype.number=!1;Ki.prototype.commaSeparated=!1;Ki.prototype.spaceSeparated=!1;Ki.prototype.commaOrSpaceSeparated=!1;Ki.prototype.mustUseProperty=!1;Ki.prototype.defined=!1;let lLe=0;const Ut=Mc(),Tr=Mc(),nB=Mc(),De=Mc(),Gn=Mc(),Mu=Mc(),Yo=Mc();function Mc(){return 2**++lLe}const qx=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ut,booleanish:Tr,commaOrSpaceSeparated:Yo,commaSeparated:Mu,number:De,overloadedBoolean:nB,spaceSeparated:Gn},Symbol.toStringTag,{value:"Module"})),Fw=Object.keys(qx);class wk extends Ki{constructor(t,n,r,o){let i=-1;if(super(t,n),y4(this,"space",o),typeof r=="number")for(;++i<Fw.length;){const a=Fw[i];y4(this,Fw[i],(r&qx[a])===qx[a])}}}wk.prototype.defined=!0;function y4(e,t,n){n&&(e[t]=n)}const cLe={}.hasOwnProperty;function jd(e){const t={},n={};let r;for(r in e.properties)if(cLe.call(e.properties,r)){const o=e.properties[r],i=new wk(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Gx(r)]=r,n[Gx(i.attribute)]=r}return new nm(t,n,e.space)}const rB=jd({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),oB=jd({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function iB(e,t){return t in e?e[t]:t}function aB(e,t){return iB(e,t.toLowerCase())}const sB=jd({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:aB,properties:{xmlns:null,xmlnsXLink:null}}),lB=jd({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Tr,ariaAutoComplete:null,ariaBusy:Tr,ariaChecked:Tr,ariaColCount:De,ariaColIndex:De,ariaColSpan:De,ariaControls:Gn,ariaCurrent:null,ariaDescribedBy:Gn,ariaDetails:null,ariaDisabled:Tr,ariaDropEffect:Gn,ariaErrorMessage:null,ariaExpanded:Tr,ariaFlowTo:Gn,ariaGrabbed:Tr,ariaHasPopup:null,ariaHidden:Tr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Gn,ariaLevel:De,ariaLive:null,ariaModal:Tr,ariaMultiLine:Tr,ariaMultiSelectable:Tr,ariaOrientation:null,ariaOwns:Gn,ariaPlaceholder:null,ariaPosInSet:De,ariaPressed:Tr,ariaReadOnly:Tr,ariaRelevant:null,ariaRequired:Tr,ariaRoleDescription:Gn,ariaRowCount:De,ariaRowIndex:De,ariaRowSpan:De,ariaSelected:Tr,ariaSetSize:De,ariaSort:null,ariaValueMax:De,ariaValueMin:De,ariaValueNow:De,ariaValueText:null,role:null}}),uLe=jd({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:aB,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Mu,acceptCharset:Gn,accessKey:Gn,action:null,allow:null,allowFullScreen:Ut,allowPaymentRequest:Ut,allowUserMedia:Ut,alt:null,as:null,async:Ut,autoCapitalize:null,autoComplete:Gn,autoFocus:Ut,autoPlay:Ut,capture:Ut,charSet:null,checked:Ut,cite:null,className:Gn,cols:De,colSpan:null,content:null,contentEditable:Tr,controls:Ut,controlsList:Gn,coords:De|Mu,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ut,defer:Ut,dir:null,dirName:null,disabled:Ut,download:nB,draggable:Tr,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ut,formTarget:null,headers:Gn,height:De,hidden:Ut,high:De,href:null,hrefLang:null,htmlFor:Gn,httpEquiv:Gn,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:Ut,itemId:null,itemProp:Gn,itemRef:Gn,itemScope:Ut,itemType:Gn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ut,low:De,manifest:null,max:null,maxLength:De,media:null,method:null,min:null,minLength:De,multiple:Ut,muted:Ut,name:null,nonce:null,noModule:Ut,noValidate:Ut,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ut,optimum:De,pattern:null,ping:Gn,placeholder:null,playsInline:Ut,poster:null,preload:null,readOnly:Ut,referrerPolicy:null,rel:Gn,required:Ut,reversed:Ut,rows:De,rowSpan:De,sandbox:Gn,scope:null,scoped:Ut,seamless:Ut,selected:Ut,shape:null,size:De,sizes:null,slot:null,span:De,spellCheck:Tr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:De,step:null,style:null,tabIndex:De,target:null,title:null,translate:null,type:null,typeMustMatch:Ut,useMap:null,value:Tr,width:De,wrap:null,align:null,aLink:null,archive:Gn,axis:null,background:null,bgColor:null,border:De,borderColor:null,bottomMargin:De,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ut,declare:Ut,event:null,face:null,frame:null,frameBorder:null,hSpace:De,leftMargin:De,link:null,longDesc:null,lowSrc:null,marginHeight:De,marginWidth:De,noResize:Ut,noHref:Ut,noShade:Ut,noWrap:Ut,object:null,profile:null,prompt:null,rev:null,rightMargin:De,rules:null,scheme:null,scrolling:Tr,standby:null,summary:null,text:null,topMargin:De,valueType:null,version:null,vAlign:null,vLink:null,vSpace:De,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ut,disableRemotePlayback:Ut,prefix:null,property:null,results:De,security:null,unselectable:null}}),dLe=jd({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:iB,properties:{about:Yo,accentHeight:De,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:De,amplitude:De,arabicForm:null,ascent:De,attributeName:null,attributeType:null,azimuth:De,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:De,by:null,calcMode:null,capHeight:De,className:Gn,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:De,diffuseConstant:De,direction:null,display:null,dur:null,divisor:De,dominantBaseline:null,download:Ut,dx:null,dy:null,edgeMode:null,editable:null,elevation:De,enableBackground:null,end:null,event:null,exponent:De,externalResourcesRequired:null,fill:null,fillOpacity:De,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Mu,g2:Mu,glyphName:Mu,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:De,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:De,horizOriginX:De,horizOriginY:De,id:null,ideographic:De,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:De,k:De,k1:De,k2:De,k3:De,k4:De,kernelMatrix:Yo,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:De,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:De,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:De,overlineThickness:De,paintOrder:null,panose1:null,path:null,pathLength:De,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Gn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:De,pointsAtY:De,pointsAtZ:De,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Yo,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Yo,rev:Yo,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Yo,requiredFeatures:Yo,requiredFonts:Yo,requiredFormats:Yo,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:De,specularExponent:De,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:De,strikethroughThickness:De,string:null,stroke:null,strokeDashArray:Yo,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:De,strokeOpacity:De,strokeWidth:null,style:null,surfaceScale:De,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Yo,tabIndex:De,tableValues:null,target:null,targetX:De,targetY:De,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Yo,to:null,transform:null,u1:null,u2:null,underlinePosition:De,underlineThickness:De,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:De,values:null,vAlphabetic:De,vMathematical:De,vectorEffect:null,vHanging:De,vIdeographic:De,version:null,vertAdvY:De,vertOriginX:De,vertOriginY:De,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:De,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),pLe=/^data[-\w.:]+$/i,b4=/-[a-z]/g,fLe=/[A-Z]/g;function hLe(e,t){const n=Gx(t);let r=t,o=Ki;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&pLe.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(b4,gLe);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!b4.test(i)){let a=i.replace(fLe,mLe);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}o=wk}return new o(r,t)}function mLe(e){return"-"+e.toLowerCase()}function gLe(e){return e.charAt(1).toUpperCase()}const w4={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},vLe=tB([oB,rB,sB,lB,uLe],"html"),yLe=tB([oB,rB,sB,lB,dLe],"svg");function bLe(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{yk(t,"element",(n,r,o)=>{const i=o;let a;if(e.allowedElements?a=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(a=e.disallowedElements.includes(n.tagName)),!a&&e.allowElement&&typeof r=="number"&&(a=!e.allowElement(n,r,i)),a&&typeof r=="number")return e.unwrapDisallowed&&n.children?i.children.splice(r,1,...n.children):i.children.splice(r,1),r})}}function wLe(e){const t=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}function SLe(e){return e.join(" ").trim()}function xLe(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var Sk={exports:{}},S4=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,CLe=/\n/g,ELe=/^\s*/,TLe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,kLe=/^:\s*/,ALe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,RLe=/^[;\s]*/,_Le=/^\s+|\s+$/g,PLe=`
450
- `,x4="/",C4="*",Yl="",ILe="comment",OLe="declaration",$Le=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(g){var v=g.match(CLe);v&&(n+=v.length);var y=g.lastIndexOf(PLe);r=~y?g.length-y:r+g.length}function i(){var g={line:n,column:r};return function(v){return v.position=new a(g),u(),v}}function a(g){this.start=g,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function s(g){var v=new Error(t.source+":"+n+":"+r+": "+g);if(v.reason=g,v.filename=t.source,v.line=n,v.column=r,v.source=e,!t.silent)throw v}function c(g){var v=g.exec(e);if(v){var y=v[0];return o(y),e=e.slice(y.length),v}}function u(){c(ELe)}function d(g){var v;for(g=g||[];v=p();)v!==!1&&g.push(v);return g}function p(){var g=i();if(!(x4!=e.charAt(0)||C4!=e.charAt(1))){for(var v=2;Yl!=e.charAt(v)&&(C4!=e.charAt(v)||x4!=e.charAt(v+1));)++v;if(v+=2,Yl===e.charAt(v-1))return s("End of comment missing");var y=e.slice(2,v-2);return r+=2,o(y),e=e.slice(v),r+=2,g({type:ILe,comment:y})}}function f(){var g=i(),v=c(TLe);if(v){if(p(),!c(kLe))return s("property missing ':'");var y=c(ALe),b=g({type:OLe,property:E4(v[0].replace(S4,Yl)),value:y?E4(y[0].replace(S4,Yl)):Yl});return c(RLe),b}}function h(){var g=[];d(g);for(var v;v=f();)v!==!1&&(g.push(v),d(g));return g}return u(),h()};function E4(e){return e?e.replace(_Le,Yl):Yl}var NLe=$Le;function cB(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,o=NLe(e),i=typeof t=="function",a,s,c=0,u=o.length;c<u;c++)r=o[c],a=r.property,s=r.value,i?t(a,s,r):s&&(n||(n={}),n[a]=s);return n}Sk.exports=cB;Sk.exports.default=cB;var LLe=Sk.exports;const MLe=qr(LLe),Kx={}.hasOwnProperty,DLe=new Set(["table","thead","tbody","tfoot","tr"]);function uB(e,t){const n=[];let r=-1,o;for(;++r<t.children.length;)o=t.children[r],o.type==="element"?n.push(BLe(e,o,r,t)):o.type==="text"?(t.type!=="element"||!DLe.has(t.tagName)||!wLe(o))&&n.push(o.value):o.type==="raw"&&!e.options.skipHtml&&n.push(o.value);return n}function BLe(e,t,n,r){const o=e.options,i=o.transformLinkUri===void 0?q$e:o.transformLinkUri,a=e.schema,s=t.tagName,c={};let u=a,d;if(a.space==="html"&&s==="svg"&&(u=yLe,e.schema=u),t.properties)for(d in t.properties)Kx.call(t.properties,d)&&zLe(c,d,t.properties[d],e);(s==="ol"||s==="ul")&&e.listDepth++;const p=uB(e,t);(s==="ol"||s==="ul")&&e.listDepth--,e.schema=a;const f=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},h=o.components&&Kx.call(o.components,s)?o.components[s]:s,g=typeof h=="string"||h===Te.Fragment;if(!tj.isValidElementType(h))throw new TypeError(`Component for name \`${s}\` not defined or is not renderable`);if(c.key=n,s==="a"&&o.linkTarget&&(c.target=typeof o.linkTarget=="function"?o.linkTarget(String(c.href||""),t.children,typeof c.title=="string"?c.title:null):o.linkTarget),s==="a"&&i&&(c.href=i(String(c.href||""),t.children,typeof c.title=="string"?c.title:null)),!g&&s==="code"&&r.type==="element"&&r.tagName!=="pre"&&(c.inline=!0),!g&&(s==="h1"||s==="h2"||s==="h3"||s==="h4"||s==="h5"||s==="h6")&&(c.level=Number.parseInt(s.charAt(1),10)),s==="img"&&o.transformImageUri&&(c.src=o.transformImageUri(String(c.src||""),String(c.alt||""),typeof c.title=="string"?c.title:null)),!g&&s==="li"&&r.type==="element"){const v=FLe(t);c.checked=v&&v.properties?!!v.properties.checked:null,c.index=zw(r,t),c.ordered=r.tagName==="ol"}return!g&&(s==="ol"||s==="ul")&&(c.ordered=s==="ol",c.depth=e.listDepth),(s==="td"||s==="th")&&(c.align&&(c.style||(c.style={}),c.style.textAlign=c.align,delete c.align),g||(c.isHeader=s==="th")),!g&&s==="tr"&&r.type==="element"&&(c.isHeader=r.tagName==="thead"),o.sourcePos&&(c["data-sourcepos"]=WLe(f)),!g&&o.rawSourcePos&&(c.sourcePosition=t.position),!g&&o.includeElementIndex&&(c.index=zw(r,t),c.siblingCount=zw(r)),g||(c.node=t),p.length>0?Te.createElement(h,c,p):Te.createElement(h,c)}function FLe(e){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n.type==="element"&&n.tagName==="input")return n}return null}function zw(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)e.children[n].type==="element"&&r++;return r}function zLe(e,t,n,r){const o=hLe(r.schema,t);let i=n;i==null||i!==i||(Array.isArray(i)&&(i=o.commaSeparated?xLe(i):SLe(i)),o.property==="style"&&typeof i=="string"&&(i=jLe(i)),o.space&&o.property?e[Kx.call(w4,o.property)?w4[o.property]:o.property]=i:o.attribute&&(e[o.attribute]=i))}function jLe(e){const t={};try{MLe(e,n)}catch{}return t;function n(r,o){const i=r.slice(0,4)==="-ms-"?`ms-${r.slice(4)}`:r;t[i.replace(/-([a-z])/g,ULe)]=o}}function ULe(e,t){return t.toUpperCase()}function WLe(e){return[e.start.line,":",e.start.column,"-",e.end.line,":",e.end.column].map(String).join("")}const T4={}.hasOwnProperty,HLe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",fg={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function xk(e){for(const i in fg)if(T4.call(fg,i)&&T4.call(e,i)){const a=fg[i];console.warn(`[react-markdown] Warning: please ${a.to?`use \`${a.to}\` instead of`:"remove"} \`${i}\` (see <${HLe}#${a.id}> for more info)`),delete fg[i]}const t=c6e().use(h9e).use(e.remarkPlugins||[]).use(iLe,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(bLe,e),n=new I8;typeof e.children=="string"?n.value=e.children:e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=t.runSync(t.parse(n),n);if(r.type!=="root")throw new TypeError("Expected a `root` node");let o=Te.createElement(Te.Fragment,{},uB({options:e,schema:vLe,listDepth:0},r));return e.className&&(o=Te.createElement("div",{className:e.className},o)),o}xk.propTypes={children:pe.string,className:pe.string,allowElement:pe.func,allowedElements:pe.arrayOf(pe.string),disallowedElements:pe.arrayOf(pe.string),unwrapDisallowed:pe.bool,remarkPlugins:pe.arrayOf(pe.oneOfType([pe.object,pe.func,pe.arrayOf(pe.oneOfType([pe.bool,pe.string,pe.object,pe.func,pe.arrayOf(pe.any)]))])),rehypePlugins:pe.arrayOf(pe.oneOfType([pe.object,pe.func,pe.arrayOf(pe.oneOfType([pe.bool,pe.string,pe.object,pe.func,pe.arrayOf(pe.any)]))])),sourcePos:pe.bool,rawSourcePos:pe.bool,skipHtml:pe.bool,includeElementIndex:pe.bool,transformLinkUri:pe.oneOfType([pe.func,pe.bool]),linkTarget:pe.oneOfType([pe.func,pe.string]),transformImageUri:pe.func,components:pe.object};const VLe=C(xk)(({theme:e})=>({"h1, h2, h3":{margin:e.spacing(2,0)}})),GLe=({open:e,setOpen:t,title:n,children:r})=>l(gr,{title:n,open:e,secondaryButtonText:"Close",onClose:()=>{t(!1)},children:l(VLe,{children:r})}),qLe=e=>{if(e!=null&&e.enabled)return e.payload?e.payload.type==="json"?JSON.parse(e.payload.value):e.payload.value:e.name},KLe=e=>m.useMemo(()=>{if(e!=null&&e.enabled)return qLe(e)},[e]),YLe=C("aside",{shouldForwardProp:e=>e!=="variant"&&e!=="sticky"})(({theme:e,variant:t,sticky:n})=>({position:n?"sticky":"relative",zIndex:1,display:"flex",alignItems:"center",justifyContent:"center",padding:e.spacing(1),gap:e.spacing(1),borderBottom:"1px solid",borderColor:e.palette[t].border,background:e.palette[t].light,color:e.palette[t].dark,fontSize:e.fontSizes.smallBody,...n&&{top:0,zIndex:e.zIndex.sticky}})),XLe=C("div",{shouldForwardProp:e=>e!=="variant"})(({theme:e,variant:t})=>({display:"flex",alignItems:"center",color:e.palette[t].main})),JLe=()=>{const{uiConfig:e}=Ot(),[t,n]=m.useState(!1),r=KLe(e.flags.messageBanner);if(!r)return null;const{message:o,variant:i="neutral",sticky:a,icon:s,link:c,linkText:u="More info",plausibleEvent:d,dialogTitle:p,dialog:f}=r;return x(YLe,{variant:i,sticky:a,children:[l(XLe,{variant:i,children:l(ZLe,{icon:s,variant:i})}),l(xk,{children:o}),l(eMe,{link:c,plausibleEvent:d,openDialog:()=>n(!0),children:u}),l(GLe,{open:t,setOpen:n,title:p||u,children:f})]})},QLe={warning:l(b9,{}),info:l(pf,{}),error:l(g1,{}),success:l(Ev,{}),neutral:l(pf,{}),secondary:l(pf,{})},ZLe=({icon:e,variant:t})=>e==="none"?null:e?l(j2,{children:e}):QLe[t]??l(pf,{}),eMe=({link:e,plausibleEvent:t,openDialog:n,children:r})=>{const o=gt(),i=Dr();if(!e)return null;const a=e==="dialog",s=!e.startsWith("http"),c=()=>{t&&i.trackEvent("message_banner",{props:{event:t}})};return a?l(Vr,{onClick:()=>{c(),n()},children:r}):s?l(Vr,{onClick:()=>{c(),o(e)},children:r}):l(Vr,{href:e,target:"_blank",rel:"noreferrer",onClick:c,children:r})};window.global||(window.global=window);Ei.render(l(G$e,{children:l(ZOe,{children:l(Nz,{basename:ei,children:l(aie,{children:l(k$e,{children:l(C$e,{children:x(U$e,{children:[l(JLe,{}),l(JOe,{}),l(XOe,{})]})})})})})})}),document.getElementById("app"));export{hv as $,tn as A,Zt as B,q as C,V3 as D,Ad as E,ve as F,ol as G,Ot as H,P1 as I,phe as J,Rc as K,md as L,C1 as M,or as N,Rs as O,H2 as P,jh as Q,gs as R,sa as S,se as T,Ed as U,vo as V,Kn as W,Xa as X,b1 as Y,Yn as Z,B6 as _,Le as a,_c as a$,kl as a0,PL as a1,$t as a2,Rl as a3,ht as a4,ks as a5,Ih as a6,Oh as a7,ja as a8,Ve as a9,nt as aA,Fe as aB,N as aC,ke as aD,et as aE,ir as aF,Ss as aG,T0e as aH,de as aI,Ir as aJ,SE as aK,hn as aL,Ui as aM,Ide as aN,An as aO,Bt as aP,Rn as aQ,io as aR,FMe as aS,l1e as aT,s1e as aU,a1e as aV,qh as aW,Y1 as aX,yl as aY,wEe as aZ,XMe as a_,zL as aa,nve as ab,wn as ac,_h as ad,Qa as ae,To as af,r1 as ag,wr as ah,g1 as ai,Td as aj,Or as ak,Dn as al,rh as am,pi as an,gt as ao,Dr as ap,Pye as aq,Wh as ar,Yr as as,_ye as at,Pd as au,x5 as av,XL as aw,Ao as ax,Je as ay,tt as az,rve as b,oN as b$,R9 as b0,xt as b1,AMe as b2,qse as b3,V2 as b4,_u as b5,hle as b6,rn as b7,gr as b8,BT as b9,n1 as bA,e1 as bB,Vpe as bC,TMe as bD,p9 as bE,Ja as bF,Xu as bG,Bh as bH,y9 as bI,v9 as bJ,Vr as bK,zh as bL,The as bM,Id as bN,sT as bO,Jse as bP,ca as bQ,Qu as bR,Y9 as bS,Rz as bT,Tg as bU,X1 as bV,eDe as bW,YE as bX,Hr as bY,Sr as bZ,Ya as b_,lEe as ba,Tn as bb,En as bc,kn as bd,Ju as be,RMe as bf,qE as bg,_D as bh,RD as bi,kMe as bj,Mle as bk,go as bl,hi as bm,uD as bn,v1 as bo,q3 as bp,yo as bq,G6 as br,uhe as bs,ia as bt,_a as bu,_Me as bv,Wn as bw,ole as bx,wd as by,Zy as bz,Xe as c,vN as c$,u9 as c0,YL as c1,JL as c2,Ble as c3,QMe as c4,fEe as c5,lPe as c6,Ka as c7,JMe as c8,rM as c9,rMe as cA,Th as cB,ar as cC,Cv as cD,vl as cE,Pr as cF,PTe as cG,UMe as cH,zMe as cI,uM as cJ,Ha as cK,jMe as cL,Wa as cM,_Te as cN,tve as cO,SD as cP,fi as cQ,h1e as cR,vs as cS,A8 as cT,fu as cU,I$e as cV,aL as cW,R$e as cX,t9 as cY,yre as cZ,Fre as c_,kd as ca,ml as cb,th as cc,Te as cd,gl as ce,ji as cf,nh as cg,hEe as ch,WMe as ci,Mye as cj,bD as ck,Gde as cl,dre as cm,zpe as cn,Ho as co,kge as cp,Jf as cq,h9 as cr,T9 as cs,ule as ct,voe as cu,w2 as cv,Mi as cw,Fy as cx,m6 as cy,oi as cz,Yt as d,MMe as d$,kc as d0,Ic as d1,uMe as d2,k3 as d3,L1 as d4,M1 as d5,cE as d6,lMe as d7,cMe as d8,Pc as d9,Uh as dA,Ua as dB,wE as dC,C9 as dD,Ale as dE,mD as dF,Eae as dG,Ume as dH,$h as dI,Pi as dJ,_L as dK,IL as dL,bl as dM,RL as dN,$ue as dO,vD as dP,Bge as dQ,YMe as dR,gTe as dS,mL as dT,ax as dU,Bke as dV,pu as dW,iMe as dX,Ac as dY,mc as dZ,As as d_,ZMe as da,dMe as db,sye as dc,pMe as dd,TD as de,gMe as df,fMe as dg,hMe as dh,LL as di,mMe as dj,mle as dk,W2 as dl,kD as dm,aMe as dn,tle as dp,nMe as dq,KE as dr,CD as ds,_x as dt,cAe as du,gD as dv,Zke as dw,nc as dx,q2 as dy,Al as dz,si as e,sD as e$,Zpe as e0,Fpe as e1,Pke as e2,Hpe as e3,Wpe as e4,H9 as e5,K9 as e6,Dpe as e7,Mke as e8,Lg as e9,PPe as eA,HMe as eB,sL as eC,Wge as eD,xMe as eE,bMe as eF,wMe as eG,SMe as eH,CMe as eI,EMe as eJ,yMe as eK,Qde as eL,ox as eM,GMe as eN,iTe as eO,lTe as eP,Ske as eQ,vMe as eR,hT as eS,dT as eT,gEe as eU,iEe as eV,z2e as eW,_be as eX,Pie as eY,aEe as eZ,y3 as e_,Tv as ea,k6 as eb,FRe as ec,qOe as ed,x1 as ee,Ev as ef,MN as eg,ade as eh,sde as ei,lde as ej,cde as ek,ude as el,$de as em,eL as en,Sd as eo,OPe as ep,APe as eq,WPe as er,of as es,s9 as et,ERe as eu,VMe as ev,KS as ew,RPe as ex,tk as ey,TPe as ez,x as f,_l as f0,SEe as f1,Yke as f2,yt as f3,pe as f4,IMe as f5,$Me as f6,NMe as f7,LMe as f8,OMe as f9,_N as fA,ea as fB,BMe as fC,DMe as fD,yce as fE,Dh as fF,M9 as fG,L9 as fH,wce as fI,KMe as fJ,B9 as fK,_v as fL,Rv as fM,Pce as fN,Ace as fO,z9 as fP,Mce as fQ,zce as fR,P5 as fS,Fce as fT,xce as fU,Kf as fV,j9 as fW,AE as fX,eh as fY,c5 as fZ,Tge as fa,PMe as fb,Ole as fc,Age as fd,lD as fe,TEe as ff,AEe as fg,REe as fh,_Ee as fi,aD as fj,cD as fk,$he as fl,Dle as fm,b9 as fn,Fh as fo,eV as fp,nle as fq,tH as fr,sMe as fs,UL as ft,qMe as fu,Ci as fv,qr as fw,ku as fx,FU as fy,DU as fz,la as g,aa as h,zi as i,l as j,Wi as k,rr as l,Ht as m,pf as n,c9 as o,DT as p,P2e as q,m as r,C as s,QM as t,gn as u,nD as v,Ts as w,Ca as x,Ks as y,ff as z};