model-test-bench 1.0.2

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 (288) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +389 -0
  3. package/dist/bin/mtb.d.ts +3 -0
  4. package/dist/bin/mtb.d.ts.map +1 -0
  5. package/dist/bin/mtb.js +148 -0
  6. package/dist/bin/mtb.js.map +1 -0
  7. package/dist/server/index.d.ts +13 -0
  8. package/dist/server/index.d.ts.map +1 -0
  9. package/dist/server/index.js +72 -0
  10. package/dist/server/index.js.map +1 -0
  11. package/dist/server/interfaces/evaluator.d.ts +15 -0
  12. package/dist/server/interfaces/evaluator.d.ts.map +1 -0
  13. package/dist/server/interfaces/evaluator.js +2 -0
  14. package/dist/server/interfaces/evaluator.js.map +1 -0
  15. package/dist/server/interfaces/logger.d.ts +9 -0
  16. package/dist/server/interfaces/logger.d.ts.map +1 -0
  17. package/dist/server/interfaces/logger.js +2 -0
  18. package/dist/server/interfaces/logger.js.map +1 -0
  19. package/dist/server/interfaces/runner.d.ts +9 -0
  20. package/dist/server/interfaces/runner.d.ts.map +1 -0
  21. package/dist/server/interfaces/runner.js +2 -0
  22. package/dist/server/interfaces/runner.js.map +1 -0
  23. package/dist/server/interfaces/storage.d.ts +36 -0
  24. package/dist/server/interfaces/storage.d.ts.map +1 -0
  25. package/dist/server/interfaces/storage.js +2 -0
  26. package/dist/server/interfaces/storage.js.map +1 -0
  27. package/dist/server/routes/eval-queue.d.ts +23 -0
  28. package/dist/server/routes/eval-queue.d.ts.map +1 -0
  29. package/dist/server/routes/eval-queue.js +45 -0
  30. package/dist/server/routes/eval-queue.js.map +1 -0
  31. package/dist/server/routes/evaluations.d.ts +8 -0
  32. package/dist/server/routes/evaluations.d.ts.map +1 -0
  33. package/dist/server/routes/evaluations.js +221 -0
  34. package/dist/server/routes/evaluations.js.map +1 -0
  35. package/dist/server/routes/providers.d.ts +5 -0
  36. package/dist/server/routes/providers.d.ts.map +1 -0
  37. package/dist/server/routes/providers.js +179 -0
  38. package/dist/server/routes/providers.js.map +1 -0
  39. package/dist/server/routes/run-queue.d.ts +17 -0
  40. package/dist/server/routes/run-queue.d.ts.map +1 -0
  41. package/dist/server/routes/run-queue.js +34 -0
  42. package/dist/server/routes/run-queue.js.map +1 -0
  43. package/dist/server/routes/run-sse.d.ts +18 -0
  44. package/dist/server/routes/run-sse.d.ts.map +1 -0
  45. package/dist/server/routes/run-sse.js +57 -0
  46. package/dist/server/routes/run-sse.js.map +1 -0
  47. package/dist/server/routes/runs.d.ts +9 -0
  48. package/dist/server/routes/runs.d.ts.map +1 -0
  49. package/dist/server/routes/runs.js +380 -0
  50. package/dist/server/routes/runs.js.map +1 -0
  51. package/dist/server/routes/scenarios.d.ts +5 -0
  52. package/dist/server/routes/scenarios.d.ts.map +1 -0
  53. package/dist/server/routes/scenarios.js +181 -0
  54. package/dist/server/routes/scenarios.js.map +1 -0
  55. package/dist/server/services/eval-helpers.d.ts +22 -0
  56. package/dist/server/services/eval-helpers.d.ts.map +1 -0
  57. package/dist/server/services/eval-helpers.js +75 -0
  58. package/dist/server/services/eval-helpers.js.map +1 -0
  59. package/dist/server/services/eval-parsers-debate-impl.d.ts +11 -0
  60. package/dist/server/services/eval-parsers-debate-impl.d.ts.map +1 -0
  61. package/dist/server/services/eval-parsers-debate-impl.js +133 -0
  62. package/dist/server/services/eval-parsers-debate-impl.js.map +1 -0
  63. package/dist/server/services/eval-parsers.d.ts +24 -0
  64. package/dist/server/services/eval-parsers.d.ts.map +1 -0
  65. package/dist/server/services/eval-parsers.js +153 -0
  66. package/dist/server/services/eval-parsers.js.map +1 -0
  67. package/dist/server/services/eval-prompts.d.ts +9 -0
  68. package/dist/server/services/eval-prompts.d.ts.map +1 -0
  69. package/dist/server/services/eval-prompts.js +164 -0
  70. package/dist/server/services/eval-prompts.js.map +1 -0
  71. package/dist/server/services/evaluator.d.ts +10 -0
  72. package/dist/server/services/evaluator.d.ts.map +1 -0
  73. package/dist/server/services/evaluator.js +143 -0
  74. package/dist/server/services/evaluator.js.map +1 -0
  75. package/dist/server/services/fs-adapter.d.ts +20 -0
  76. package/dist/server/services/fs-adapter.d.ts.map +1 -0
  77. package/dist/server/services/fs-adapter.js +13 -0
  78. package/dist/server/services/fs-adapter.js.map +1 -0
  79. package/dist/server/services/instruction-parser.d.ts +26 -0
  80. package/dist/server/services/instruction-parser.d.ts.map +1 -0
  81. package/dist/server/services/instruction-parser.js +121 -0
  82. package/dist/server/services/instruction-parser.js.map +1 -0
  83. package/dist/server/services/log-rotator.d.ts +20 -0
  84. package/dist/server/services/log-rotator.d.ts.map +1 -0
  85. package/dist/server/services/log-rotator.js +60 -0
  86. package/dist/server/services/log-rotator.js.map +1 -0
  87. package/dist/server/services/logger.d.ts +15 -0
  88. package/dist/server/services/logger.d.ts.map +1 -0
  89. package/dist/server/services/logger.js +69 -0
  90. package/dist/server/services/logger.js.map +1 -0
  91. package/dist/server/services/model-factory.d.ts +10 -0
  92. package/dist/server/services/model-factory.d.ts.map +1 -0
  93. package/dist/server/services/model-factory.js +33 -0
  94. package/dist/server/services/model-factory.js.map +1 -0
  95. package/dist/server/services/runner.d.ts +9 -0
  96. package/dist/server/services/runner.d.ts.map +1 -0
  97. package/dist/server/services/runner.js +99 -0
  98. package/dist/server/services/runner.js.map +1 -0
  99. package/dist/server/services/seeder.d.ts +5 -0
  100. package/dist/server/services/seeder.d.ts.map +1 -0
  101. package/dist/server/services/seeder.js +79 -0
  102. package/dist/server/services/seeder.js.map +1 -0
  103. package/dist/server/services/storage-test-helpers.d.ts +15 -0
  104. package/dist/server/services/storage-test-helpers.d.ts.map +1 -0
  105. package/dist/server/services/storage-test-helpers.js +151 -0
  106. package/dist/server/services/storage-test-helpers.js.map +1 -0
  107. package/dist/server/services/storage.d.ts +35 -0
  108. package/dist/server/services/storage.d.ts.map +1 -0
  109. package/dist/server/services/storage.js +219 -0
  110. package/dist/server/services/storage.js.map +1 -0
  111. package/dist/server/services/tools.d.ts +6 -0
  112. package/dist/server/services/tools.d.ts.map +1 -0
  113. package/dist/server/services/tools.js +94 -0
  114. package/dist/server/services/tools.js.map +1 -0
  115. package/dist/server/services/transcript-formatter.d.ts +18 -0
  116. package/dist/server/services/transcript-formatter.d.ts.map +1 -0
  117. package/dist/server/services/transcript-formatter.js +227 -0
  118. package/dist/server/services/transcript-formatter.js.map +1 -0
  119. package/dist/server/services/update-checker.d.ts +3 -0
  120. package/dist/server/services/update-checker.d.ts.map +1 -0
  121. package/dist/server/services/update-checker.js +34 -0
  122. package/dist/server/services/update-checker.js.map +1 -0
  123. package/dist/server/types/evaluation.d.ts +94 -0
  124. package/dist/server/types/evaluation.d.ts.map +1 -0
  125. package/dist/server/types/evaluation.js +5 -0
  126. package/dist/server/types/evaluation.js.map +1 -0
  127. package/dist/server/types/index.d.ts +5 -0
  128. package/dist/server/types/index.d.ts.map +1 -0
  129. package/dist/server/types/index.js +5 -0
  130. package/dist/server/types/index.js.map +1 -0
  131. package/dist/server/types/provider.d.ts +23 -0
  132. package/dist/server/types/provider.d.ts.map +1 -0
  133. package/dist/server/types/provider.js +5 -0
  134. package/dist/server/types/provider.js.map +1 -0
  135. package/dist/server/types/run.d.ts +31 -0
  136. package/dist/server/types/run.d.ts.map +1 -0
  137. package/dist/server/types/run.js +5 -0
  138. package/dist/server/types/run.js.map +1 -0
  139. package/dist/server/types/scenario.d.ts +19 -0
  140. package/dist/server/types/scenario.d.ts.map +1 -0
  141. package/dist/server/types/scenario.js +5 -0
  142. package/dist/server/types/scenario.js.map +1 -0
  143. package/dist/src/server/index.d.ts +13 -0
  144. package/dist/src/server/index.d.ts.map +1 -0
  145. package/dist/src/server/index.js +72 -0
  146. package/dist/src/server/index.js.map +1 -0
  147. package/dist/src/server/interfaces/evaluator.d.ts +15 -0
  148. package/dist/src/server/interfaces/evaluator.d.ts.map +1 -0
  149. package/dist/src/server/interfaces/evaluator.js +2 -0
  150. package/dist/src/server/interfaces/evaluator.js.map +1 -0
  151. package/dist/src/server/interfaces/logger.d.ts +9 -0
  152. package/dist/src/server/interfaces/logger.d.ts.map +1 -0
  153. package/dist/src/server/interfaces/logger.js +2 -0
  154. package/dist/src/server/interfaces/logger.js.map +1 -0
  155. package/dist/src/server/interfaces/runner.d.ts +9 -0
  156. package/dist/src/server/interfaces/runner.d.ts.map +1 -0
  157. package/dist/src/server/interfaces/runner.js +2 -0
  158. package/dist/src/server/interfaces/runner.js.map +1 -0
  159. package/dist/src/server/interfaces/storage.d.ts +36 -0
  160. package/dist/src/server/interfaces/storage.d.ts.map +1 -0
  161. package/dist/src/server/interfaces/storage.js +2 -0
  162. package/dist/src/server/interfaces/storage.js.map +1 -0
  163. package/dist/src/server/routes/eval-queue.d.ts +23 -0
  164. package/dist/src/server/routes/eval-queue.d.ts.map +1 -0
  165. package/dist/src/server/routes/eval-queue.js +45 -0
  166. package/dist/src/server/routes/eval-queue.js.map +1 -0
  167. package/dist/src/server/routes/evaluations.d.ts +8 -0
  168. package/dist/src/server/routes/evaluations.d.ts.map +1 -0
  169. package/dist/src/server/routes/evaluations.js +221 -0
  170. package/dist/src/server/routes/evaluations.js.map +1 -0
  171. package/dist/src/server/routes/providers.d.ts +5 -0
  172. package/dist/src/server/routes/providers.d.ts.map +1 -0
  173. package/dist/src/server/routes/providers.js +179 -0
  174. package/dist/src/server/routes/providers.js.map +1 -0
  175. package/dist/src/server/routes/run-queue.d.ts +17 -0
  176. package/dist/src/server/routes/run-queue.d.ts.map +1 -0
  177. package/dist/src/server/routes/run-queue.js +34 -0
  178. package/dist/src/server/routes/run-queue.js.map +1 -0
  179. package/dist/src/server/routes/run-sse.d.ts +18 -0
  180. package/dist/src/server/routes/run-sse.d.ts.map +1 -0
  181. package/dist/src/server/routes/run-sse.js +57 -0
  182. package/dist/src/server/routes/run-sse.js.map +1 -0
  183. package/dist/src/server/routes/runs.d.ts +9 -0
  184. package/dist/src/server/routes/runs.d.ts.map +1 -0
  185. package/dist/src/server/routes/runs.js +380 -0
  186. package/dist/src/server/routes/runs.js.map +1 -0
  187. package/dist/src/server/routes/scenarios.d.ts +5 -0
  188. package/dist/src/server/routes/scenarios.d.ts.map +1 -0
  189. package/dist/src/server/routes/scenarios.js +181 -0
  190. package/dist/src/server/routes/scenarios.js.map +1 -0
  191. package/dist/src/server/services/eval-helpers.d.ts +22 -0
  192. package/dist/src/server/services/eval-helpers.d.ts.map +1 -0
  193. package/dist/src/server/services/eval-helpers.js +75 -0
  194. package/dist/src/server/services/eval-helpers.js.map +1 -0
  195. package/dist/src/server/services/eval-parsers-debate-impl.d.ts +11 -0
  196. package/dist/src/server/services/eval-parsers-debate-impl.d.ts.map +1 -0
  197. package/dist/src/server/services/eval-parsers-debate-impl.js +133 -0
  198. package/dist/src/server/services/eval-parsers-debate-impl.js.map +1 -0
  199. package/dist/src/server/services/eval-parsers.d.ts +24 -0
  200. package/dist/src/server/services/eval-parsers.d.ts.map +1 -0
  201. package/dist/src/server/services/eval-parsers.js +153 -0
  202. package/dist/src/server/services/eval-parsers.js.map +1 -0
  203. package/dist/src/server/services/eval-prompts.d.ts +9 -0
  204. package/dist/src/server/services/eval-prompts.d.ts.map +1 -0
  205. package/dist/src/server/services/eval-prompts.js +164 -0
  206. package/dist/src/server/services/eval-prompts.js.map +1 -0
  207. package/dist/src/server/services/evaluator.d.ts +10 -0
  208. package/dist/src/server/services/evaluator.d.ts.map +1 -0
  209. package/dist/src/server/services/evaluator.js +143 -0
  210. package/dist/src/server/services/evaluator.js.map +1 -0
  211. package/dist/src/server/services/fs-adapter.d.ts +20 -0
  212. package/dist/src/server/services/fs-adapter.d.ts.map +1 -0
  213. package/dist/src/server/services/fs-adapter.js +13 -0
  214. package/dist/src/server/services/fs-adapter.js.map +1 -0
  215. package/dist/src/server/services/instruction-parser.d.ts +26 -0
  216. package/dist/src/server/services/instruction-parser.d.ts.map +1 -0
  217. package/dist/src/server/services/instruction-parser.js +121 -0
  218. package/dist/src/server/services/instruction-parser.js.map +1 -0
  219. package/dist/src/server/services/log-rotator.d.ts +20 -0
  220. package/dist/src/server/services/log-rotator.d.ts.map +1 -0
  221. package/dist/src/server/services/log-rotator.js +60 -0
  222. package/dist/src/server/services/log-rotator.js.map +1 -0
  223. package/dist/src/server/services/logger.d.ts +15 -0
  224. package/dist/src/server/services/logger.d.ts.map +1 -0
  225. package/dist/src/server/services/logger.js +69 -0
  226. package/dist/src/server/services/logger.js.map +1 -0
  227. package/dist/src/server/services/model-factory.d.ts +10 -0
  228. package/dist/src/server/services/model-factory.d.ts.map +1 -0
  229. package/dist/src/server/services/model-factory.js +33 -0
  230. package/dist/src/server/services/model-factory.js.map +1 -0
  231. package/dist/src/server/services/runner.d.ts +9 -0
  232. package/dist/src/server/services/runner.d.ts.map +1 -0
  233. package/dist/src/server/services/runner.js +99 -0
  234. package/dist/src/server/services/runner.js.map +1 -0
  235. package/dist/src/server/services/seeder.d.ts +5 -0
  236. package/dist/src/server/services/seeder.d.ts.map +1 -0
  237. package/dist/src/server/services/seeder.js +79 -0
  238. package/dist/src/server/services/seeder.js.map +1 -0
  239. package/dist/src/server/services/storage.d.ts +35 -0
  240. package/dist/src/server/services/storage.d.ts.map +1 -0
  241. package/dist/src/server/services/storage.js +219 -0
  242. package/dist/src/server/services/storage.js.map +1 -0
  243. package/dist/src/server/services/tools.d.ts +6 -0
  244. package/dist/src/server/services/tools.d.ts.map +1 -0
  245. package/dist/src/server/services/tools.js +94 -0
  246. package/dist/src/server/services/tools.js.map +1 -0
  247. package/dist/src/server/services/transcript-formatter.d.ts +18 -0
  248. package/dist/src/server/services/transcript-formatter.d.ts.map +1 -0
  249. package/dist/src/server/services/transcript-formatter.js +227 -0
  250. package/dist/src/server/services/transcript-formatter.js.map +1 -0
  251. package/dist/src/server/services/update-checker.d.ts +3 -0
  252. package/dist/src/server/services/update-checker.d.ts.map +1 -0
  253. package/dist/src/server/services/update-checker.js +34 -0
  254. package/dist/src/server/services/update-checker.js.map +1 -0
  255. package/dist/src/server/types/evaluation.d.ts +94 -0
  256. package/dist/src/server/types/evaluation.d.ts.map +1 -0
  257. package/dist/src/server/types/evaluation.js +5 -0
  258. package/dist/src/server/types/evaluation.js.map +1 -0
  259. package/dist/src/server/types/index.d.ts +5 -0
  260. package/dist/src/server/types/index.d.ts.map +1 -0
  261. package/dist/src/server/types/index.js +5 -0
  262. package/dist/src/server/types/index.js.map +1 -0
  263. package/dist/src/server/types/provider.d.ts +23 -0
  264. package/dist/src/server/types/provider.d.ts.map +1 -0
  265. package/dist/src/server/types/provider.js +5 -0
  266. package/dist/src/server/types/provider.js.map +1 -0
  267. package/dist/src/server/types/run.d.ts +31 -0
  268. package/dist/src/server/types/run.d.ts.map +1 -0
  269. package/dist/src/server/types/run.js +5 -0
  270. package/dist/src/server/types/run.js.map +1 -0
  271. package/dist/src/server/types/scenario.d.ts +19 -0
  272. package/dist/src/server/types/scenario.d.ts.map +1 -0
  273. package/dist/src/server/types/scenario.js +5 -0
  274. package/dist/src/server/types/scenario.js.map +1 -0
  275. package/dist/web/assets/index-AJu1Yn5F.js +70 -0
  276. package/dist/web/assets/index-C_ioEISr.css +1 -0
  277. package/dist/web/index.html +15 -0
  278. package/docs/schemas/provider-api.example.json +12 -0
  279. package/docs/schemas/provider-openai.example.json +11 -0
  280. package/docs/schemas/scenario-baseline.example.json +24 -0
  281. package/docs/schemas/scenario-carwash-baseline.example.json +22 -0
  282. package/docs/schemas/scenario-carwash-with-system-prompt.example.json +24 -0
  283. package/docs/schemas/scenario-golden-rules-baseline.example.json +24 -0
  284. package/docs/schemas/scenario-golden-rules-with-system-prompt.example.json +28 -0
  285. package/docs/schemas/scenario-negative-analysis-baseline.example.json +23 -0
  286. package/docs/schemas/scenario-negative-analysis-with-system-prompt.example.json +25 -0
  287. package/docs/schemas/scenario-with-system-prompt.example.json +25 -0
  288. package/package.json +97 -0
@@ -0,0 +1,70 @@
1
+ (function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))o(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&o(h)}).observe(document,{childList:!0,subtree:!0});function r(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function o(f){if(f.ep)return;f.ep=!0;const d=r(f);fetch(f.href,d)}})();var iu={exports:{}},Zl={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Bm;function qv(){if(Bm)return Zl;Bm=1;var s=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(o,f,d){var h=null;if(d!==void 0&&(h=""+d),f.key!==void 0&&(h=""+f.key),"key"in f){d={};for(var g in f)g!=="key"&&(d[g]=f[g])}else d=f;return f=d.ref,{$$typeof:s,type:o,key:h,ref:f!==void 0?f:null,props:d}}return Zl.Fragment=l,Zl.jsx=r,Zl.jsxs=r,Zl}var qm;function Yv(){return qm||(qm=1,iu.exports=qv()),iu.exports}var c=Yv(),su={exports:{}},ce={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Ym;function Gv(){if(Ym)return ce;Ym=1;var s=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),E=Symbol.iterator;function O(j){return j===null||typeof j!="object"?null:(j=E&&j[E]||j["@@iterator"],typeof j=="function"?j:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,A={};function M(j,B,Z){this.props=j,this.context=B,this.refs=A,this.updater=Z||T}M.prototype.isReactComponent={},M.prototype.setState=function(j,B){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,B,"setState")},M.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function K(){}K.prototype=M.prototype;function $(j,B,Z){this.props=j,this.context=B,this.refs=A,this.updater=Z||T}var J=$.prototype=new K;J.constructor=$,R(J,M.prototype),J.isPureReactComponent=!0;var I=Array.isArray;function X(){}var V={H:null,A:null,T:null,S:null},ne=Object.prototype.hasOwnProperty;function Q(j,B,Z){var F=Z.ref;return{$$typeof:s,type:j,key:B,ref:F!==void 0?F:null,props:Z}}function le(j,B){return Q(j.type,B,j.props)}function Me(j){return typeof j=="object"&&j!==null&&j.$$typeof===s}function ae(j){var B={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(Z){return B[Z]})}var se=/\/+/g;function re(j,B){return typeof j=="object"&&j!==null&&j.key!=null?ae(""+j.key):B.toString(36)}function G(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(X,X):(j.status="pending",j.then(function(B){j.status==="pending"&&(j.status="fulfilled",j.value=B)},function(B){j.status==="pending"&&(j.status="rejected",j.reason=B)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function _(j,B,Z,F,ue){var me=typeof j;(me==="undefined"||me==="boolean")&&(j=null);var Ee=!1;if(j===null)Ee=!0;else switch(me){case"bigint":case"string":case"number":Ee=!0;break;case"object":switch(j.$$typeof){case s:case l:Ee=!0;break;case b:return Ee=j._init,_(Ee(j._payload),B,Z,F,ue)}}if(Ee)return ue=ue(j),Ee=F===""?"."+re(j,0):F,I(ue)?(Z="",Ee!=null&&(Z=Ee.replace(se,"$&/")+"/"),_(ue,B,Z,"",function(el){return el})):ue!=null&&(Me(ue)&&(ue=le(ue,Z+(ue.key==null||j&&j.key===ue.key?"":(""+ue.key).replace(se,"$&/")+"/")+Ee)),B.push(ue)),1;Ee=0;var nt=F===""?".":F+":";if(I(j))for(var Ye=0;Ye<j.length;Ye++)F=j[Ye],me=nt+re(F,Ye),Ee+=_(F,B,Z,me,ue);else if(Ye=O(j),typeof Ye=="function")for(j=Ye.call(j),Ye=0;!(F=j.next()).done;)F=F.value,me=nt+re(F,Ye++),Ee+=_(F,B,Z,me,ue);else if(me==="object"){if(typeof j.then=="function")return _(G(j),B,Z,F,ue);throw B=String(j),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return Ee}function k(j,B,Z){if(j==null)return j;var F=[],ue=0;return _(j,F,"","",function(me){return B.call(Z,me,ue++)}),F}function ee(j){if(j._status===-1){var B=j._result;B=B(),B.then(function(Z){(j._status===0||j._status===-1)&&(j._status=1,j._result=Z)},function(Z){(j._status===0||j._status===-1)&&(j._status=2,j._result=Z)}),j._status===-1&&(j._status=0,j._result=B)}if(j._status===1)return j._result.default;throw j._result}var xe=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},je={map:k,forEach:function(j,B,Z){k(j,function(){B.apply(this,arguments)},Z)},count:function(j){var B=0;return k(j,function(){B++}),B},toArray:function(j){return k(j,function(B){return B})||[]},only:function(j){if(!Me(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return ce.Activity=y,ce.Children=je,ce.Component=M,ce.Fragment=r,ce.Profiler=f,ce.PureComponent=$,ce.StrictMode=o,ce.Suspense=v,ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,ce.__COMPILER_RUNTIME={__proto__:null,c:function(j){return V.H.useMemoCache(j)}},ce.cache=function(j){return function(){return j.apply(null,arguments)}},ce.cacheSignal=function(){return null},ce.cloneElement=function(j,B,Z){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var F=R({},j.props),ue=j.key;if(B!=null)for(me in B.key!==void 0&&(ue=""+B.key),B)!ne.call(B,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&B.ref===void 0||(F[me]=B[me]);var me=arguments.length-2;if(me===1)F.children=Z;else if(1<me){for(var Ee=Array(me),nt=0;nt<me;nt++)Ee[nt]=arguments[nt+2];F.children=Ee}return Q(j.type,ue,F)},ce.createContext=function(j){return j={$$typeof:h,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:d,_context:j},j},ce.createElement=function(j,B,Z){var F,ue={},me=null;if(B!=null)for(F in B.key!==void 0&&(me=""+B.key),B)ne.call(B,F)&&F!=="key"&&F!=="__self"&&F!=="__source"&&(ue[F]=B[F]);var Ee=arguments.length-2;if(Ee===1)ue.children=Z;else if(1<Ee){for(var nt=Array(Ee),Ye=0;Ye<Ee;Ye++)nt[Ye]=arguments[Ye+2];ue.children=nt}if(j&&j.defaultProps)for(F in Ee=j.defaultProps,Ee)ue[F]===void 0&&(ue[F]=Ee[F]);return Q(j,me,ue)},ce.createRef=function(){return{current:null}},ce.forwardRef=function(j){return{$$typeof:g,render:j}},ce.isValidElement=Me,ce.lazy=function(j){return{$$typeof:b,_payload:{_status:-1,_result:j},_init:ee}},ce.memo=function(j,B){return{$$typeof:p,type:j,compare:B===void 0?null:B}},ce.startTransition=function(j){var B=V.T,Z={};V.T=Z;try{var F=j(),ue=V.S;ue!==null&&ue(Z,F),typeof F=="object"&&F!==null&&typeof F.then=="function"&&F.then(X,xe)}catch(me){xe(me)}finally{B!==null&&Z.types!==null&&(B.types=Z.types),V.T=B}},ce.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},ce.use=function(j){return V.H.use(j)},ce.useActionState=function(j,B,Z){return V.H.useActionState(j,B,Z)},ce.useCallback=function(j,B){return V.H.useCallback(j,B)},ce.useContext=function(j){return V.H.useContext(j)},ce.useDebugValue=function(){},ce.useDeferredValue=function(j,B){return V.H.useDeferredValue(j,B)},ce.useEffect=function(j,B){return V.H.useEffect(j,B)},ce.useEffectEvent=function(j){return V.H.useEffectEvent(j)},ce.useId=function(){return V.H.useId()},ce.useImperativeHandle=function(j,B,Z){return V.H.useImperativeHandle(j,B,Z)},ce.useInsertionEffect=function(j,B){return V.H.useInsertionEffect(j,B)},ce.useLayoutEffect=function(j,B){return V.H.useLayoutEffect(j,B)},ce.useMemo=function(j,B){return V.H.useMemo(j,B)},ce.useOptimistic=function(j,B){return V.H.useOptimistic(j,B)},ce.useReducer=function(j,B,Z){return V.H.useReducer(j,B,Z)},ce.useRef=function(j){return V.H.useRef(j)},ce.useState=function(j){return V.H.useState(j)},ce.useSyncExternalStore=function(j,B,Z){return V.H.useSyncExternalStore(j,B,Z)},ce.useTransition=function(){return V.H.useTransition()},ce.version="19.2.4",ce}var Gm;function Ls(){return Gm||(Gm=1,su.exports=Gv()),su.exports}var N=Ls(),ru={exports:{}},$l={},ou={exports:{}},uu={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var km;function kv(){return km||(km=1,(function(s){function l(_,k){var ee=_.length;_.push(k);e:for(;0<ee;){var xe=ee-1>>>1,je=_[xe];if(0<f(je,k))_[xe]=k,_[ee]=je,ee=xe;else break e}}function r(_){return _.length===0?null:_[0]}function o(_){if(_.length===0)return null;var k=_[0],ee=_.pop();if(ee!==k){_[0]=ee;e:for(var xe=0,je=_.length,j=je>>>1;xe<j;){var B=2*(xe+1)-1,Z=_[B],F=B+1,ue=_[F];if(0>f(Z,ee))F<je&&0>f(ue,Z)?(_[xe]=ue,_[F]=ee,xe=F):(_[xe]=Z,_[B]=ee,xe=B);else if(F<je&&0>f(ue,ee))_[xe]=ue,_[F]=ee,xe=F;else break e}}return k}function f(_,k){var ee=_.sortIndex-k.sortIndex;return ee!==0?ee:_.id-k.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var h=Date,g=h.now();s.unstable_now=function(){return h.now()-g}}var v=[],p=[],b=1,y=null,E=3,O=!1,T=!1,R=!1,A=!1,M=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function J(_){for(var k=r(p);k!==null;){if(k.callback===null)o(p);else if(k.startTime<=_)o(p),k.sortIndex=k.expirationTime,l(v,k);else break;k=r(p)}}function I(_){if(R=!1,J(_),!T)if(r(v)!==null)T=!0,X||(X=!0,ae());else{var k=r(p);k!==null&&G(I,k.startTime-_)}}var X=!1,V=-1,ne=5,Q=-1;function le(){return A?!0:!(s.unstable_now()-Q<ne)}function Me(){if(A=!1,X){var _=s.unstable_now();Q=_;var k=!0;try{e:{T=!1,R&&(R=!1,K(V),V=-1),O=!0;var ee=E;try{t:{for(J(_),y=r(v);y!==null&&!(y.expirationTime>_&&le());){var xe=y.callback;if(typeof xe=="function"){y.callback=null,E=y.priorityLevel;var je=xe(y.expirationTime<=_);if(_=s.unstable_now(),typeof je=="function"){y.callback=je,J(_),k=!0;break t}y===r(v)&&o(v),J(_)}else o(v);y=r(v)}if(y!==null)k=!0;else{var j=r(p);j!==null&&G(I,j.startTime-_),k=!1}}break e}finally{y=null,E=ee,O=!1}k=void 0}}finally{k?ae():X=!1}}}var ae;if(typeof $=="function")ae=function(){$(Me)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,re=se.port2;se.port1.onmessage=Me,ae=function(){re.postMessage(null)}}else ae=function(){M(Me,0)};function G(_,k){V=M(function(){_(s.unstable_now())},k)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(_){_.callback=null},s.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ne=0<_?Math.floor(1e3/_):5},s.unstable_getCurrentPriorityLevel=function(){return E},s.unstable_next=function(_){switch(E){case 1:case 2:case 3:var k=3;break;default:k=E}var ee=E;E=k;try{return _()}finally{E=ee}},s.unstable_requestPaint=function(){A=!0},s.unstable_runWithPriority=function(_,k){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var ee=E;E=_;try{return k()}finally{E=ee}},s.unstable_scheduleCallback=function(_,k,ee){var xe=s.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?xe+ee:xe):ee=xe,_){case 1:var je=-1;break;case 2:je=250;break;case 5:je=1073741823;break;case 4:je=1e4;break;default:je=5e3}return je=ee+je,_={id:b++,callback:k,priorityLevel:_,startTime:ee,expirationTime:je,sortIndex:-1},ee>xe?(_.sortIndex=ee,l(p,_),r(v)===null&&_===r(p)&&(R?(K(V),V=-1):R=!0,G(I,ee-xe))):(_.sortIndex=je,l(v,_),T||O||(T=!0,X||(X=!0,ae()))),_},s.unstable_shouldYield=le,s.unstable_wrapCallback=function(_){var k=E;return function(){var ee=E;E=k;try{return _.apply(this,arguments)}finally{E=ee}}}})(uu)),uu}var Vm;function Vv(){return Vm||(Vm=1,ou.exports=kv()),ou.exports}var cu={exports:{}},at={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var Xm;function Xv(){if(Xm)return at;Xm=1;var s=Ls();function l(v){var p="https://react.dev/errors/"+v;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+v+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(l(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},f=Symbol.for("react.portal");function d(v,p,b){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:y==null?null:""+y,children:v,containerInfo:p,implementation:b}}var h=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(v,p){if(v==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return at.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,at.createPortal=function(v,p){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return d(v,p,null,b)},at.flushSync=function(v){var p=h.T,b=o.p;try{if(h.T=null,o.p=2,v)return v()}finally{h.T=p,o.p=b,o.d.f()}},at.preconnect=function(v,p){typeof v=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(v,p))},at.prefetchDNS=function(v){typeof v=="string"&&o.d.D(v)},at.preinit=function(v,p){if(typeof v=="string"&&p&&typeof p.as=="string"){var b=p.as,y=g(b,p.crossOrigin),E=typeof p.integrity=="string"?p.integrity:void 0,O=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?o.d.S(v,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:E,fetchPriority:O}):b==="script"&&o.d.X(v,{crossOrigin:y,integrity:E,fetchPriority:O,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},at.preinitModule=function(v,p){if(typeof v=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=g(p.as,p.crossOrigin);o.d.M(v,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(v)},at.preload=function(v,p){if(typeof v=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,y=g(b,p.crossOrigin);o.d.L(v,b,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},at.preloadModule=function(v,p){if(typeof v=="string")if(p){var b=g(p.as,p.crossOrigin);o.d.m(v,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(v)},at.requestFormReset=function(v){o.d.r(v)},at.unstable_batchedUpdates=function(v,p){return v(p)},at.useFormState=function(v,p,b){return h.H.useFormState(v,p,b)},at.useFormStatus=function(){return h.H.useHostTransitionStatus()},at.version="19.2.4",at}var Qm;function Qv(){if(Qm)return cu.exports;Qm=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(l){console.error(l)}}return s(),cu.exports=Xv(),cu.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var Km;function Kv(){if(Km)return $l;Km=1;var s=Vv(),l=Ls(),r=Qv();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function h(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 g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(d(e)!==e)throw Error(o(188))}function p(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,n=t;;){var i=a.return;if(i===null)break;var u=i.alternate;if(u===null){if(n=i.return,n!==null){a=n;continue}break}if(i.child===u.child){for(u=i.child;u;){if(u===a)return v(i),e;if(u===n)return v(i),t;u=u.sibling}throw Error(o(188))}if(a.return!==n.return)a=i,n=u;else{for(var m=!1,x=i.child;x;){if(x===a){m=!0,a=i,n=u;break}if(x===n){m=!0,n=i,a=u;break}x=x.sibling}if(!m){for(x=u.child;x;){if(x===a){m=!0,a=u,n=i;break}if(x===n){m=!0,n=u,a=i;break}x=x.sibling}if(!m)throw Error(o(189))}}if(a.alternate!==n)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,E=Symbol.for("react.element"),O=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),K=Symbol.for("react.consumer"),$=Symbol.for("react.context"),J=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),Q=Symbol.for("react.activity"),le=Symbol.for("react.memo_cache_sentinel"),Me=Symbol.iterator;function ae(e){return e===null||typeof e!="object"?null:(e=Me&&e[Me]||e["@@iterator"],typeof e=="function"?e:null)}var se=Symbol.for("react.client.reference");function re(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===se?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case M:return"Profiler";case A:return"StrictMode";case I:return"Suspense";case X:return"SuspenseList";case Q:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case $:return e.displayName||"Context";case K:return(e._context.displayName||"Context")+".Consumer";case J:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V:return t=e.displayName||null,t!==null?t:re(e.type)||"Memo";case ne:t=e._payload,e=e._init;try{return re(e(t))}catch{}}return null}var G=Array.isArray,_=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},xe=[],je=-1;function j(e){return{current:e}}function B(e){0>je||(e.current=xe[je],xe[je]=null,je--)}function Z(e,t){je++,xe[je]=e.current,e.current=t}var F=j(null),ue=j(null),me=j(null),Ee=j(null);function nt(e,t){switch(Z(me,t),Z(ue,e),Z(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?rm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=rm(t),e=om(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(F),Z(F,e)}function Ye(){B(F),B(ue),B(me)}function el(e){e.memoizedState!==null&&Z(Ee,e);var t=F.current,a=om(t,e.type);t!==a&&(Z(ue,e),Z(F,a))}function ii(e){ue.current===e&&(B(F),B(ue)),Ee.current===e&&(B(Ee),Vl._currentValue=ee)}var Ys,Uu;function Ga(e){if(Ys===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Ys=t&&t[1]||"",Uu=-1<a.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Ys+e+Uu}var Gs=!1;function ks(e,t){if(!e||Gs)return"";Gs=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(U){var L=U}Reflect.construct(e,[],Y)}else{try{Y.call()}catch(U){L=U}e.call(Y.prototype)}}else{try{throw Error()}catch(U){L=U}(Y=e())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(U){if(U&&L&&typeof U.stack=="string")return[U.stack,L.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=n.DetermineComponentFrameRoot(),m=u[0],x=u[1];if(m&&x){var S=m.split(`
44
+ `),D=x.split(`
45
+ `);for(i=n=0;n<S.length&&!S[n].includes("DetermineComponentFrameRoot");)n++;for(;i<D.length&&!D[i].includes("DetermineComponentFrameRoot");)i++;if(n===S.length||i===D.length)for(n=S.length-1,i=D.length-1;1<=n&&0<=i&&S[n]!==D[i];)i--;for(;1<=n&&0<=i;n--,i--)if(S[n]!==D[i]){if(n!==1||i!==1)do if(n--,i--,0>i||S[n]!==D[i]){var H=`
46
+ `+S[n].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),H}while(1<=n&&0<=i);break}}}finally{Gs=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ga(a):""}function gp(e,t){switch(e.tag){case 26:case 27:case 5:return Ga(e.type);case 16:return Ga("Lazy");case 13:return e.child!==t&&t!==null?Ga("Suspense Fallback"):Ga("Suspense");case 19:return Ga("SuspenseList");case 0:case 15:return ks(e.type,!1);case 11:return ks(e.type.render,!1);case 1:return ks(e.type,!0);case 31:return Ga("Activity");default:return""}}function Hu(e){try{var t="",a=null;do t+=gp(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
47
+ Error generating stack: `+n.message+`
48
+ `+n.stack}}var Vs=Object.prototype.hasOwnProperty,Xs=s.unstable_scheduleCallback,Qs=s.unstable_cancelCallback,vp=s.unstable_shouldYield,xp=s.unstable_requestPaint,mt=s.unstable_now,yp=s.unstable_getCurrentPriorityLevel,Bu=s.unstable_ImmediatePriority,qu=s.unstable_UserBlockingPriority,si=s.unstable_NormalPriority,bp=s.unstable_LowPriority,Yu=s.unstable_IdlePriority,Sp=s.log,Np=s.unstable_setDisableYieldValue,tl=null,ht=null;function ha(e){if(typeof Sp=="function"&&Np(e),ht&&typeof ht.setStrictMode=="function")try{ht.setStrictMode(tl,e)}catch{}}var pt=Math.clz32?Math.clz32:Cp,jp=Math.log,Ep=Math.LN2;function Cp(e){return e>>>=0,e===0?32:31-(jp(e)/Ep|0)|0}var ri=256,oi=262144,ui=4194304;function ka(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ci(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var i=0,u=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var x=n&134217727;return x!==0?(n=x&~u,n!==0?i=ka(n):(m&=x,m!==0?i=ka(m):a||(a=x&~e,a!==0&&(i=ka(a))))):(x=n&~u,x!==0?i=ka(x):m!==0?i=ka(m):a||(a=n&~e,a!==0&&(i=ka(a)))),i===0?0:t!==0&&t!==i&&(t&u)===0&&(u=i&-i,a=t&-t,u>=a||u===32&&(a&4194048)!==0)?t:i}function al(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Rp(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Gu(){var e=ui;return ui<<=1,(ui&62914560)===0&&(ui=4194304),e}function Ks(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function nl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Tp(e,t,a,n,i,u){var m=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var x=e.entanglements,S=e.expirationTimes,D=e.hiddenUpdates;for(a=m&~a;0<a;){var H=31-pt(a),Y=1<<H;x[H]=0,S[H]=-1;var L=D[H];if(L!==null)for(D[H]=null,H=0;H<L.length;H++){var U=L[H];U!==null&&(U.lane&=-536870913)}a&=~Y}n!==0&&ku(e,n,0),u!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=u&~(m&~t))}function ku(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-pt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function Vu(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-pt(a),i=1<<n;i&t|e[n]&t&&(e[n]|=t),a&=~i}}function Xu(e,t){var a=t&-t;return a=(a&42)!==0?1:Zs(a),(a&(e.suspendedLanes|t))!==0?0:a}function Zs(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function $s(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Qu(){var e=k.p;return e!==0?e:(e=window.event,e===void 0?32:zm(e.type))}function Ku(e,t){var a=k.p;try{return k.p=e,t()}finally{k.p=a}}var pa=Math.random().toString(36).slice(2),We="__reactFiber$"+pa,it="__reactProps$"+pa,fn="__reactContainer$"+pa,Js="__reactEvents$"+pa,wp="__reactListeners$"+pa,Op="__reactHandles$"+pa,Zu="__reactResources$"+pa,ll="__reactMarker$"+pa;function Fs(e){delete e[We],delete e[it],delete e[Js],delete e[wp],delete e[Op]}function dn(e){var t=e[We];if(t)return t;for(var a=e.parentNode;a;){if(t=a[fn]||a[We]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=pm(e);e!==null;){if(a=e[We])return a;e=pm(e)}return t}e=a,a=e.parentNode}return null}function mn(e){if(e=e[We]||e[fn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function il(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function hn(e){var t=e[Zu];return t||(t=e[Zu]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function $e(e){e[ll]=!0}var $u=new Set,Ju={};function Va(e,t){pn(e,t),pn(e+"Capture",t)}function pn(e,t){for(Ju[e]=t,e=0;e<t.length;e++)$u.add(t[e])}var Ap=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Fu={},Wu={};function zp(e){return Vs.call(Wu,e)?!0:Vs.call(Fu,e)?!1:Ap.test(e)?Wu[e]=!0:(Fu[e]=!0,!1)}function fi(e,t,a){if(zp(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function di(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function $t(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+n)}}function jt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Pu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Dp(e,t,a){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(m){a=""+m,u.call(this,m)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(m){a=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ws(e){if(!e._valueTracker){var t=Pu(e)?"checked":"value";e._valueTracker=Dp(e,t,""+e[t])}}function Iu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=Pu(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function mi(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}}var _p=/[\n"\\]/g;function Et(e){return e.replace(_p,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ps(e,t,a,n,i,u,m,x){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+jt(t)):e.value!==""+jt(t)&&(e.value=""+jt(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?Is(e,m,jt(t)):a!=null?Is(e,m,jt(a)):n!=null&&e.removeAttribute("value"),i==null&&u!=null&&(e.defaultChecked=!!u),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+jt(x):e.removeAttribute("name")}function ec(e,t,a,n,i,u,m,x){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||a!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Ws(e);return}a=a!=null?""+jt(a):"",t=t!=null?""+jt(t):a,x||t===e.value||(e.value=t),e.defaultValue=t}n=n??i,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=x?e.checked:!!n,e.defaultChecked=!!n,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),Ws(e)}function Is(e,t,a){t==="number"&&mi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function gn(e,t,a,n){if(e=e.options,t){t={};for(var i=0;i<a.length;i++)t["$"+a[i]]=!0;for(a=0;a<e.length;a++)i=t.hasOwnProperty("$"+e[a].value),e[a].selected!==i&&(e[a].selected=i),i&&n&&(e[a].defaultSelected=!0)}else{for(a=""+jt(a),t=null,i=0;i<e.length;i++){if(e[i].value===a){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function tc(e,t,a){if(t!=null&&(t=""+jt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+jt(a):""}function ac(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(o(92));if(G(n)){if(1<n.length)throw Error(o(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=jt(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),Ws(e)}function vn(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Lp=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function nc(e,t,a){var n=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,a):typeof a!="number"||a===0||Lp.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function lc(e,t,a){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,a!=null){for(var n in a)!a.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var i in t)n=t[i],t.hasOwnProperty(i)&&a[i]!==n&&nc(e,i,n)}else for(var u in t)t.hasOwnProperty(u)&&nc(e,u,t[u])}function er(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Mp=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Up=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function hi(e){return Up.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Jt(){}var tr=null;function ar(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xn=null,yn=null;function ic(e){var t=mn(e);if(t&&(e=t.stateNode)){var a=e[it]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ps(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Et(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var i=n[it]||null;if(!i)throw Error(o(90));Ps(n,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&Iu(n)}break e;case"textarea":tc(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&gn(e,!!a.multiple,t,!1)}}}var nr=!1;function sc(e,t,a){if(nr)return e(t,a);nr=!0;try{var n=e(t);return n}finally{if(nr=!1,(xn!==null||yn!==null)&&(ts(),xn&&(t=xn,e=yn,yn=xn=null,ic(t),e)))for(t=0;t<e.length;t++)ic(e[t])}}function sl(e,t){var a=e.stateNode;if(a===null)return null;var n=a[it]||null;if(n===null)return null;a=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var Ft=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lr=!1;if(Ft)try{var rl={};Object.defineProperty(rl,"passive",{get:function(){lr=!0}}),window.addEventListener("test",rl,rl),window.removeEventListener("test",rl,rl)}catch{lr=!1}var ga=null,ir=null,pi=null;function rc(){if(pi)return pi;var e,t=ir,a=t.length,n,i="value"in ga?ga.value:ga.textContent,u=i.length;for(e=0;e<a&&t[e]===i[e];e++);var m=a-e;for(n=1;n<=m&&t[a-n]===i[u-n];n++);return pi=i.slice(e,1<n?1-n:void 0)}function gi(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 vi(){return!0}function oc(){return!1}function st(e){function t(a,n,i,u,m){this._reactName=a,this._targetInst=i,this.type=n,this.nativeEvent=u,this.target=m,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(a=e[x],this[x]=a?a(u):u[x]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?vi:oc,this.isPropagationStopped=oc,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=vi)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=vi)},persist:function(){},isPersistent:vi}),t}var Xa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xi=st(Xa),ol=y({},Xa,{view:0,detail:0}),Hp=st(ol),sr,rr,ul,yi=y({},ol,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ur,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!==ul&&(ul&&e.type==="mousemove"?(sr=e.screenX-ul.screenX,rr=e.screenY-ul.screenY):rr=sr=0,ul=e),sr)},movementY:function(e){return"movementY"in e?e.movementY:rr}}),uc=st(yi),Bp=y({},yi,{dataTransfer:0}),qp=st(Bp),Yp=y({},ol,{relatedTarget:0}),or=st(Yp),Gp=y({},Xa,{animationName:0,elapsedTime:0,pseudoElement:0}),kp=st(Gp),Vp=y({},Xa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Xp=st(Vp),Qp=y({},Xa,{data:0}),cc=st(Qp),Kp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zp={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"},$p={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Jp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=$p[e])?!!t[e]:!1}function ur(){return Jp}var Fp=y({},ol,{key:function(e){if(e.key){var t=Kp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=gi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Zp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ur,charCode:function(e){return e.type==="keypress"?gi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?gi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Wp=st(Fp),Pp=y({},yi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fc=st(Pp),Ip=y({},ol,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ur}),eg=st(Ip),tg=y({},Xa,{propertyName:0,elapsedTime:0,pseudoElement:0}),ag=st(tg),ng=y({},yi,{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}),lg=st(ng),ig=y({},Xa,{newState:0,oldState:0}),sg=st(ig),rg=[9,13,27,32],cr=Ft&&"CompositionEvent"in window,cl=null;Ft&&"documentMode"in document&&(cl=document.documentMode);var og=Ft&&"TextEvent"in window&&!cl,dc=Ft&&(!cr||cl&&8<cl&&11>=cl),mc=" ",hc=!1;function pc(e,t){switch(e){case"keyup":return rg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var bn=!1;function ug(e,t){switch(e){case"compositionend":return gc(t);case"keypress":return t.which!==32?null:(hc=!0,mc);case"textInput":return e=t.data,e===mc&&hc?null:e;default:return null}}function cg(e,t){if(bn)return e==="compositionend"||!cr&&pc(e,t)?(e=rc(),pi=ir=ga=null,bn=!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 dc&&t.locale!=="ko"?null:t.data;default:return null}}var fg={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 vc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!fg[e.type]:t==="textarea"}function xc(e,t,a,n){xn?yn?yn.push(n):yn=[n]:xn=n,t=os(t,"onChange"),0<t.length&&(a=new xi("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var fl=null,dl=null;function dg(e){tm(e,0)}function bi(e){var t=il(e);if(Iu(t))return e}function yc(e,t){if(e==="change")return t}var bc=!1;if(Ft){var fr;if(Ft){var dr="oninput"in document;if(!dr){var Sc=document.createElement("div");Sc.setAttribute("oninput","return;"),dr=typeof Sc.oninput=="function"}fr=dr}else fr=!1;bc=fr&&(!document.documentMode||9<document.documentMode)}function Nc(){fl&&(fl.detachEvent("onpropertychange",jc),dl=fl=null)}function jc(e){if(e.propertyName==="value"&&bi(dl)){var t=[];xc(t,dl,e,ar(e)),sc(dg,t)}}function mg(e,t,a){e==="focusin"?(Nc(),fl=t,dl=a,fl.attachEvent("onpropertychange",jc)):e==="focusout"&&Nc()}function hg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return bi(dl)}function pg(e,t){if(e==="click")return bi(t)}function gg(e,t){if(e==="input"||e==="change")return bi(t)}function vg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gt=typeof Object.is=="function"?Object.is:vg;function ml(e,t){if(gt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var i=a[n];if(!Vs.call(t,i)||!gt(e[i],t[i]))return!1}return!0}function Ec(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Cc(e,t){var a=Ec(e);e=0;for(var n;a;){if(a.nodeType===3){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Ec(a)}}function Rc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Tc(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=mi(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=mi(e.document)}return t}function mr(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 xg=Ft&&"documentMode"in document&&11>=document.documentMode,Sn=null,hr=null,hl=null,pr=!1;function wc(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;pr||Sn==null||Sn!==mi(n)||(n=Sn,"selectionStart"in n&&mr(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),hl&&ml(hl,n)||(hl=n,n=os(hr,"onSelect"),0<n.length&&(t=new xi("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=Sn)))}function Qa(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Nn={animationend:Qa("Animation","AnimationEnd"),animationiteration:Qa("Animation","AnimationIteration"),animationstart:Qa("Animation","AnimationStart"),transitionrun:Qa("Transition","TransitionRun"),transitionstart:Qa("Transition","TransitionStart"),transitioncancel:Qa("Transition","TransitionCancel"),transitionend:Qa("Transition","TransitionEnd")},gr={},Oc={};Ft&&(Oc=document.createElement("div").style,"AnimationEvent"in window||(delete Nn.animationend.animation,delete Nn.animationiteration.animation,delete Nn.animationstart.animation),"TransitionEvent"in window||delete Nn.transitionend.transition);function Ka(e){if(gr[e])return gr[e];if(!Nn[e])return e;var t=Nn[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Oc)return gr[e]=t[a];return e}var Ac=Ka("animationend"),zc=Ka("animationiteration"),Dc=Ka("animationstart"),yg=Ka("transitionrun"),bg=Ka("transitionstart"),Sg=Ka("transitioncancel"),_c=Ka("transitionend"),Lc=new Map,vr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");vr.push("scrollEnd");function Mt(e,t){Lc.set(e,t),Va(t,[e])}var Si=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ct=[],jn=0,xr=0;function Ni(){for(var e=jn,t=xr=jn=0;t<e;){var a=Ct[t];Ct[t++]=null;var n=Ct[t];Ct[t++]=null;var i=Ct[t];Ct[t++]=null;var u=Ct[t];if(Ct[t++]=null,n!==null&&i!==null){var m=n.pending;m===null?i.next=i:(i.next=m.next,m.next=i),n.pending=i}u!==0&&Mc(a,i,u)}}function ji(e,t,a,n){Ct[jn++]=e,Ct[jn++]=t,Ct[jn++]=a,Ct[jn++]=n,xr|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function yr(e,t,a,n){return ji(e,t,a,n),Ei(e)}function Za(e,t){return ji(e,null,null,t),Ei(e)}function Mc(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var i=!1,u=e.return;u!==null;)u.childLanes|=a,n=u.alternate,n!==null&&(n.childLanes|=a),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(i=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,i&&t!==null&&(i=31-pt(a),e=u.hiddenUpdates,n=e[i],n===null?e[i]=[t]:n.push(t),t.lane=a|536870912),u):null}function Ei(e){if(50<Ul)throw Ul=0,Oo=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var En={};function Ng(e,t,a,n){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vt(e,t,a,n){return new Ng(e,t,a,n)}function br(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wt(e,t){var a=e.alternate;return a===null?(a=vt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Uc(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ci(e,t,a,n,i,u){var m=0;if(n=e,typeof e=="function")br(e)&&(m=1);else if(typeof e=="string")m=Tv(e,a,F.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Q:return e=vt(31,a,t,i),e.elementType=Q,e.lanes=u,e;case R:return $a(a.children,i,u,t);case A:m=8,i|=24;break;case M:return e=vt(12,a,t,i|2),e.elementType=M,e.lanes=u,e;case I:return e=vt(13,a,t,i),e.elementType=I,e.lanes=u,e;case X:return e=vt(19,a,t,i),e.elementType=X,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $:m=10;break e;case K:m=9;break e;case J:m=11;break e;case V:m=14;break e;case ne:m=16,n=null;break e}m=29,a=Error(o(130,e===null?"null":typeof e,"")),n=null}return t=vt(m,a,t,i),t.elementType=e,t.type=n,t.lanes=u,t}function $a(e,t,a,n){return e=vt(7,e,n,t),e.lanes=a,e}function Sr(e,t,a){return e=vt(6,e,null,t),e.lanes=a,e}function Hc(e){var t=vt(18,null,null,0);return t.stateNode=e,t}function Nr(e,t,a){return t=vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Bc=new WeakMap;function Rt(e,t){if(typeof e=="object"&&e!==null){var a=Bc.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Hu(t)},Bc.set(e,t),t)}return{value:e,source:t,stack:Hu(t)}}var Cn=[],Rn=0,Ri=null,pl=0,Tt=[],wt=0,va=null,qt=1,Yt="";function Pt(e,t){Cn[Rn++]=pl,Cn[Rn++]=Ri,Ri=e,pl=t}function qc(e,t,a){Tt[wt++]=qt,Tt[wt++]=Yt,Tt[wt++]=va,va=e;var n=qt;e=Yt;var i=32-pt(n)-1;n&=~(1<<i),a+=1;var u=32-pt(t)+i;if(30<u){var m=i-i%5;u=(n&(1<<m)-1).toString(32),n>>=m,i-=m,qt=1<<32-pt(t)+i|a<<i|n,Yt=u+e}else qt=1<<u|a<<i|n,Yt=e}function jr(e){e.return!==null&&(Pt(e,1),qc(e,1,0))}function Er(e){for(;e===Ri;)Ri=Cn[--Rn],Cn[Rn]=null,pl=Cn[--Rn],Cn[Rn]=null;for(;e===va;)va=Tt[--wt],Tt[wt]=null,Yt=Tt[--wt],Tt[wt]=null,qt=Tt[--wt],Tt[wt]=null}function Yc(e,t){Tt[wt++]=qt,Tt[wt++]=Yt,Tt[wt++]=va,qt=t.id,Yt=t.overflow,va=e}var Pe=null,_e=null,ye=!1,xa=null,Ot=!1,Cr=Error(o(519));function ya(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw gl(Rt(t,e)),Cr}function Gc(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[We]=e,t[it]=n,a){case"dialog":pe("cancel",t),pe("close",t);break;case"iframe":case"object":case"embed":pe("load",t);break;case"video":case"audio":for(a=0;a<Bl.length;a++)pe(Bl[a],t);break;case"source":pe("error",t);break;case"img":case"image":case"link":pe("error",t),pe("load",t);break;case"details":pe("toggle",t);break;case"input":pe("invalid",t),ec(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":pe("invalid",t);break;case"textarea":pe("invalid",t),ac(t,n.value,n.defaultValue,n.children)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||n.suppressHydrationWarning===!0||im(t.textContent,a)?(n.popover!=null&&(pe("beforetoggle",t),pe("toggle",t)),n.onScroll!=null&&pe("scroll",t),n.onScrollEnd!=null&&pe("scrollend",t),n.onClick!=null&&(t.onclick=Jt),t=!0):t=!1,t||ya(e,!0)}function kc(e){for(Pe=e.return;Pe;)switch(Pe.tag){case 5:case 31:case 13:Ot=!1;return;case 27:case 3:Ot=!0;return;default:Pe=Pe.return}}function Tn(e){if(e!==Pe)return!1;if(!ye)return kc(e),ye=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Xo(e.type,e.memoizedProps)),a=!a),a&&_e&&ya(e),kc(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));_e=hm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));_e=hm(e)}else t===27?(t=_e,_a(e.type)?(e=Jo,Jo=null,_e=e):_e=t):_e=Pe?zt(e.stateNode.nextSibling):null;return!0}function Ja(){_e=Pe=null,ye=!1}function Rr(){var e=xa;return e!==null&&(ct===null?ct=e:ct.push.apply(ct,e),xa=null),e}function gl(e){xa===null?xa=[e]:xa.push(e)}var Tr=j(null),Fa=null,It=null;function ba(e,t,a){Z(Tr,t._currentValue),t._currentValue=a}function ea(e){e._currentValue=Tr.current,B(Tr)}function wr(e,t,a){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===a)break;e=e.return}}function Or(e,t,a,n){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var u=i.dependencies;if(u!==null){var m=i.child;u=u.firstContext;e:for(;u!==null;){var x=u;u=i;for(var S=0;S<t.length;S++)if(x.context===t[S]){u.lanes|=a,x=u.alternate,x!==null&&(x.lanes|=a),wr(u.return,a,e),n||(m=null);break e}u=x.next}}else if(i.tag===18){if(m=i.return,m===null)throw Error(o(341));m.lanes|=a,u=m.alternate,u!==null&&(u.lanes|=a),wr(m,a,e),m=null}else m=i.child;if(m!==null)m.return=i;else for(m=i;m!==null;){if(m===e){m=null;break}if(i=m.sibling,i!==null){i.return=m.return,m=i;break}m=m.return}i=m}}function wn(e,t,a,n){e=null;for(var i=t,u=!1;i!==null;){if(!u){if((i.flags&524288)!==0)u=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var m=i.alternate;if(m===null)throw Error(o(387));if(m=m.memoizedProps,m!==null){var x=i.type;gt(i.pendingProps.value,m.value)||(e!==null?e.push(x):e=[x])}}else if(i===Ee.current){if(m=i.alternate,m===null)throw Error(o(387));m.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Vl):e=[Vl])}i=i.return}e!==null&&Or(t,e,a,n),t.flags|=262144}function Ti(e){for(e=e.firstContext;e!==null;){if(!gt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Wa(e){Fa=e,It=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ie(e){return Vc(Fa,e)}function wi(e,t){return Fa===null&&Wa(e),Vc(e,t)}function Vc(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},It===null){if(e===null)throw Error(o(308));It=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else It=It.next=t;return a}var jg=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Eg=s.unstable_scheduleCallback,Cg=s.unstable_NormalPriority,Ve={$$typeof:$,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ar(){return{controller:new jg,data:new Map,refCount:0}}function vl(e){e.refCount--,e.refCount===0&&Eg(Cg,function(){e.controller.abort()})}var xl=null,zr=0,On=0,An=null;function Rg(e,t){if(xl===null){var a=xl=[];zr=0,On=Mo(),An={status:"pending",value:void 0,then:function(n){a.push(n)}}}return zr++,t.then(Xc,Xc),t}function Xc(){if(--zr===0&&xl!==null){An!==null&&(An.status="fulfilled");var e=xl;xl=null,On=0,An=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Tg(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(i){a.push(i)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var i=0;i<a.length;i++)(0,a[i])(t)},function(i){for(n.status="rejected",n.reason=i,i=0;i<a.length;i++)(0,a[i])(void 0)}),n}var Qc=_.S;_.S=function(e,t){Od=mt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Rg(e,t),Qc!==null&&Qc(e,t)};var Pa=j(null);function Dr(){var e=Pa.current;return e!==null?e:De.pooledCache}function Oi(e,t){t===null?Z(Pa,Pa.current):Z(Pa,t.pool)}function Kc(){var e=Dr();return e===null?null:{parent:Ve._currentValue,pool:e}}var zn=Error(o(460)),_r=Error(o(474)),Ai=Error(o(542)),zi={then:function(){}};function Zc(e){return e=e.status,e==="fulfilled"||e==="rejected"}function $c(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Jt,Jt),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Fc(e),e;default:if(typeof t.status=="string")t.then(Jt,Jt);else{if(e=De,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=n}},function(n){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Fc(e),e}throw en=t,zn}}function Ia(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(en=a,zn):a}}var en=null;function Jc(){if(en===null)throw Error(o(459));var e=en;return en=null,e}function Fc(e){if(e===zn||e===Ai)throw Error(o(483))}var Dn=null,yl=0;function Di(e){var t=yl;return yl+=1,Dn===null&&(Dn=[]),$c(Dn,e,t)}function bl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function _i(e,t){throw t.$$typeof===E?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Wc(e){function t(w,C){if(e){var z=w.deletions;z===null?(w.deletions=[C],w.flags|=16):z.push(C)}}function a(w,C){if(!e)return null;for(;C!==null;)t(w,C),C=C.sibling;return null}function n(w){for(var C=new Map;w!==null;)w.key!==null?C.set(w.key,w):C.set(w.index,w),w=w.sibling;return C}function i(w,C){return w=Wt(w,C),w.index=0,w.sibling=null,w}function u(w,C,z){return w.index=z,e?(z=w.alternate,z!==null?(z=z.index,z<C?(w.flags|=67108866,C):z):(w.flags|=67108866,C)):(w.flags|=1048576,C)}function m(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function x(w,C,z,q){return C===null||C.tag!==6?(C=Sr(z,w.mode,q),C.return=w,C):(C=i(C,z),C.return=w,C)}function S(w,C,z,q){var te=z.type;return te===R?H(w,C,z.props.children,q,z.key):C!==null&&(C.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===ne&&Ia(te)===C.type)?(C=i(C,z.props),bl(C,z),C.return=w,C):(C=Ci(z.type,z.key,z.props,null,w.mode,q),bl(C,z),C.return=w,C)}function D(w,C,z,q){return C===null||C.tag!==4||C.stateNode.containerInfo!==z.containerInfo||C.stateNode.implementation!==z.implementation?(C=Nr(z,w.mode,q),C.return=w,C):(C=i(C,z.children||[]),C.return=w,C)}function H(w,C,z,q,te){return C===null||C.tag!==7?(C=$a(z,w.mode,q,te),C.return=w,C):(C=i(C,z),C.return=w,C)}function Y(w,C,z){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=Sr(""+C,w.mode,z),C.return=w,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case O:return z=Ci(C.type,C.key,C.props,null,w.mode,z),bl(z,C),z.return=w,z;case T:return C=Nr(C,w.mode,z),C.return=w,C;case ne:return C=Ia(C),Y(w,C,z)}if(G(C)||ae(C))return C=$a(C,w.mode,z,null),C.return=w,C;if(typeof C.then=="function")return Y(w,Di(C),z);if(C.$$typeof===$)return Y(w,wi(w,C),z);_i(w,C)}return null}function L(w,C,z,q){var te=C!==null?C.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return te!==null?null:x(w,C,""+z,q);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case O:return z.key===te?S(w,C,z,q):null;case T:return z.key===te?D(w,C,z,q):null;case ne:return z=Ia(z),L(w,C,z,q)}if(G(z)||ae(z))return te!==null?null:H(w,C,z,q,null);if(typeof z.then=="function")return L(w,C,Di(z),q);if(z.$$typeof===$)return L(w,C,wi(w,z),q);_i(w,z)}return null}function U(w,C,z,q,te){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return w=w.get(z)||null,x(C,w,""+q,te);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case O:return w=w.get(q.key===null?z:q.key)||null,S(C,w,q,te);case T:return w=w.get(q.key===null?z:q.key)||null,D(C,w,q,te);case ne:return q=Ia(q),U(w,C,z,q,te)}if(G(q)||ae(q))return w=w.get(z)||null,H(C,w,q,te,null);if(typeof q.then=="function")return U(w,C,z,Di(q),te);if(q.$$typeof===$)return U(w,C,z,wi(C,q),te);_i(C,q)}return null}function W(w,C,z,q){for(var te=null,be=null,P=C,de=C=0,ve=null;P!==null&&de<z.length;de++){P.index>de?(ve=P,P=null):ve=P.sibling;var Se=L(w,P,z[de],q);if(Se===null){P===null&&(P=ve);break}e&&P&&Se.alternate===null&&t(w,P),C=u(Se,C,de),be===null?te=Se:be.sibling=Se,be=Se,P=ve}if(de===z.length)return a(w,P),ye&&Pt(w,de),te;if(P===null){for(;de<z.length;de++)P=Y(w,z[de],q),P!==null&&(C=u(P,C,de),be===null?te=P:be.sibling=P,be=P);return ye&&Pt(w,de),te}for(P=n(P);de<z.length;de++)ve=U(P,w,de,z[de],q),ve!==null&&(e&&ve.alternate!==null&&P.delete(ve.key===null?de:ve.key),C=u(ve,C,de),be===null?te=ve:be.sibling=ve,be=ve);return e&&P.forEach(function(Ba){return t(w,Ba)}),ye&&Pt(w,de),te}function ie(w,C,z,q){if(z==null)throw Error(o(151));for(var te=null,be=null,P=C,de=C=0,ve=null,Se=z.next();P!==null&&!Se.done;de++,Se=z.next()){P.index>de?(ve=P,P=null):ve=P.sibling;var Ba=L(w,P,Se.value,q);if(Ba===null){P===null&&(P=ve);break}e&&P&&Ba.alternate===null&&t(w,P),C=u(Ba,C,de),be===null?te=Ba:be.sibling=Ba,be=Ba,P=ve}if(Se.done)return a(w,P),ye&&Pt(w,de),te;if(P===null){for(;!Se.done;de++,Se=z.next())Se=Y(w,Se.value,q),Se!==null&&(C=u(Se,C,de),be===null?te=Se:be.sibling=Se,be=Se);return ye&&Pt(w,de),te}for(P=n(P);!Se.done;de++,Se=z.next())Se=U(P,w,de,Se.value,q),Se!==null&&(e&&Se.alternate!==null&&P.delete(Se.key===null?de:Se.key),C=u(Se,C,de),be===null?te=Se:be.sibling=Se,be=Se);return e&&P.forEach(function(Bv){return t(w,Bv)}),ye&&Pt(w,de),te}function Ae(w,C,z,q){if(typeof z=="object"&&z!==null&&z.type===R&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case O:e:{for(var te=z.key;C!==null;){if(C.key===te){if(te=z.type,te===R){if(C.tag===7){a(w,C.sibling),q=i(C,z.props.children),q.return=w,w=q;break e}}else if(C.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===ne&&Ia(te)===C.type){a(w,C.sibling),q=i(C,z.props),bl(q,z),q.return=w,w=q;break e}a(w,C);break}else t(w,C);C=C.sibling}z.type===R?(q=$a(z.props.children,w.mode,q,z.key),q.return=w,w=q):(q=Ci(z.type,z.key,z.props,null,w.mode,q),bl(q,z),q.return=w,w=q)}return m(w);case T:e:{for(te=z.key;C!==null;){if(C.key===te)if(C.tag===4&&C.stateNode.containerInfo===z.containerInfo&&C.stateNode.implementation===z.implementation){a(w,C.sibling),q=i(C,z.children||[]),q.return=w,w=q;break e}else{a(w,C);break}else t(w,C);C=C.sibling}q=Nr(z,w.mode,q),q.return=w,w=q}return m(w);case ne:return z=Ia(z),Ae(w,C,z,q)}if(G(z))return W(w,C,z,q);if(ae(z)){if(te=ae(z),typeof te!="function")throw Error(o(150));return z=te.call(z),ie(w,C,z,q)}if(typeof z.then=="function")return Ae(w,C,Di(z),q);if(z.$$typeof===$)return Ae(w,C,wi(w,z),q);_i(w,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,C!==null&&C.tag===6?(a(w,C.sibling),q=i(C,z),q.return=w,w=q):(a(w,C),q=Sr(z,w.mode,q),q.return=w,w=q),m(w)):a(w,C)}return function(w,C,z,q){try{yl=0;var te=Ae(w,C,z,q);return Dn=null,te}catch(P){if(P===zn||P===Ai)throw P;var be=vt(29,P,null,w.mode);return be.lanes=q,be.return=w,be}finally{}}}var tn=Wc(!0),Pc=Wc(!1),Sa=!1;function Lr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Mr(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Na(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ja(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Ne&2)!==0){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,t=Ei(e),Mc(e,null,a),t}return ji(e,n,t,a),Ei(e)}function Sl(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Vu(e,a)}}function Ur(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var i=null,u=null;if(a=a.firstBaseUpdate,a!==null){do{var m={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};u===null?i=u=m:u=u.next=m,a=a.next}while(a!==null);u===null?i=u=t:u=u.next=t}else i=u=t;a={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:u,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Hr=!1;function Nl(){if(Hr){var e=An;if(e!==null)throw e}}function jl(e,t,a,n){Hr=!1;var i=e.updateQueue;Sa=!1;var u=i.firstBaseUpdate,m=i.lastBaseUpdate,x=i.shared.pending;if(x!==null){i.shared.pending=null;var S=x,D=S.next;S.next=null,m===null?u=D:m.next=D,m=S;var H=e.alternate;H!==null&&(H=H.updateQueue,x=H.lastBaseUpdate,x!==m&&(x===null?H.firstBaseUpdate=D:x.next=D,H.lastBaseUpdate=S))}if(u!==null){var Y=i.baseState;m=0,H=D=S=null,x=u;do{var L=x.lane&-536870913,U=L!==x.lane;if(U?(ge&L)===L:(n&L)===L){L!==0&&L===On&&(Hr=!0),H!==null&&(H=H.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var W=e,ie=x;L=t;var Ae=a;switch(ie.tag){case 1:if(W=ie.payload,typeof W=="function"){Y=W.call(Ae,Y,L);break e}Y=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=ie.payload,L=typeof W=="function"?W.call(Ae,Y,L):W,L==null)break e;Y=y({},Y,L);break e;case 2:Sa=!0}}L=x.callback,L!==null&&(e.flags|=64,U&&(e.flags|=8192),U=i.callbacks,U===null?i.callbacks=[L]:U.push(L))}else U={lane:L,tag:x.tag,payload:x.payload,callback:x.callback,next:null},H===null?(D=H=U,S=Y):H=H.next=U,m|=L;if(x=x.next,x===null){if(x=i.shared.pending,x===null)break;U=x,x=U.next,U.next=null,i.lastBaseUpdate=U,i.shared.pending=null}}while(!0);H===null&&(S=Y),i.baseState=S,i.firstBaseUpdate=D,i.lastBaseUpdate=H,u===null&&(i.shared.lanes=0),wa|=m,e.lanes=m,e.memoizedState=Y}}function Ic(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function ef(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Ic(a[e],t)}var _n=j(null),Li=j(0);function tf(e,t){e=ua,Z(Li,e),Z(_n,t),ua=e|t.baseLanes}function Br(){Z(Li,ua),Z(_n,_n.current)}function qr(){ua=Li.current,B(_n),B(Li)}var xt=j(null),At=null;function Ea(e){var t=e.alternate;Z(Ge,Ge.current&1),Z(xt,e),At===null&&(t===null||_n.current!==null||t.memoizedState!==null)&&(At=e)}function Yr(e){Z(Ge,Ge.current),Z(xt,e),At===null&&(At=e)}function af(e){e.tag===22?(Z(Ge,Ge.current),Z(xt,e),At===null&&(At=e)):Ca()}function Ca(){Z(Ge,Ge.current),Z(xt,xt.current)}function yt(e){B(xt),At===e&&(At=null),B(Ge)}var Ge=j(0);function Mi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Zo(a)||$o(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)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 ta=0,fe=null,we=null,Xe=null,Ui=!1,Ln=!1,an=!1,Hi=0,El=0,Mn=null,wg=0;function Be(){throw Error(o(321))}function Gr(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!gt(e[a],t[a]))return!1;return!0}function kr(e,t,a,n,i,u){return ta=u,fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?Yf:no,an=!1,u=a(n,i),an=!1,Ln&&(u=lf(t,a,n,i)),nf(e),u}function nf(e){_.H=Tl;var t=we!==null&&we.next!==null;if(ta=0,Xe=we=fe=null,Ui=!1,El=0,Mn=null,t)throw Error(o(300));e===null||Qe||(e=e.dependencies,e!==null&&Ti(e)&&(Qe=!0))}function lf(e,t,a,n){fe=e;var i=0;do{if(Ln&&(Mn=null),El=0,Ln=!1,25<=i)throw Error(o(301));if(i+=1,Xe=we=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}_.H=Gf,u=t(a,n)}while(Ln);return u}function Og(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?Cl(t):t,e=e.useState()[0],(we!==null?we.memoizedState:null)!==e&&(fe.flags|=1024),t}function Vr(){var e=Hi!==0;return Hi=0,e}function Xr(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Qr(e){if(Ui){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ui=!1}ta=0,Xe=we=fe=null,Ln=!1,El=Hi=0,Mn=null}function lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xe===null?fe.memoizedState=Xe=e:Xe=Xe.next=e,Xe}function ke(){if(we===null){var e=fe.alternate;e=e!==null?e.memoizedState:null}else e=we.next;var t=Xe===null?fe.memoizedState:Xe.next;if(t!==null)Xe=t,we=e;else{if(e===null)throw fe.alternate===null?Error(o(467)):Error(o(310));we=e,e={memoizedState:we.memoizedState,baseState:we.baseState,baseQueue:we.baseQueue,queue:we.queue,next:null},Xe===null?fe.memoizedState=Xe=e:Xe=Xe.next=e}return Xe}function Bi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Cl(e){var t=El;return El+=1,Mn===null&&(Mn=[]),e=$c(Mn,e,t),t=fe,(Xe===null?t.memoizedState:Xe.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?Yf:no),e}function qi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Cl(e);if(e.$$typeof===$)return Ie(e)}throw Error(o(438,String(e)))}function Kr(e){var t=null,a=fe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=fe.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Bi(),fe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=le;return t.index++,a}function aa(e,t){return typeof t=="function"?t(e):t}function Yi(e){var t=ke();return Zr(t,we,e)}function Zr(e,t,a){var n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=a;var i=e.baseQueue,u=n.pending;if(u!==null){if(i!==null){var m=i.next;i.next=u.next,u.next=m}t.baseQueue=i=u,n.pending=null}if(u=e.baseState,i===null)e.memoizedState=u;else{t=i.next;var x=m=null,S=null,D=t,H=!1;do{var Y=D.lane&-536870913;if(Y!==D.lane?(ge&Y)===Y:(ta&Y)===Y){var L=D.revertLane;if(L===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),Y===On&&(H=!0);else if((ta&L)===L){D=D.next,L===On&&(H=!0);continue}else Y={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},S===null?(x=S=Y,m=u):S=S.next=Y,fe.lanes|=L,wa|=L;Y=D.action,an&&a(u,Y),u=D.hasEagerState?D.eagerState:a(u,Y)}else L={lane:Y,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},S===null?(x=S=L,m=u):S=S.next=L,fe.lanes|=Y,wa|=Y;D=D.next}while(D!==null&&D!==t);if(S===null?m=u:S.next=x,!gt(u,e.memoizedState)&&(Qe=!0,H&&(a=An,a!==null)))throw a;e.memoizedState=u,e.baseState=m,e.baseQueue=S,n.lastRenderedState=u}return i===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function $r(e){var t=ke(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var n=a.dispatch,i=a.pending,u=t.memoizedState;if(i!==null){a.pending=null;var m=i=i.next;do u=e(u,m.action),m=m.next;while(m!==i);gt(u,t.memoizedState)||(Qe=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),a.lastRenderedState=u}return[u,n]}function sf(e,t,a){var n=fe,i=ke(),u=ye;if(u){if(a===void 0)throw Error(o(407));a=a()}else a=t();var m=!gt((we||i).memoizedState,a);if(m&&(i.memoizedState=a,Qe=!0),i=i.queue,Wr(uf.bind(null,n,i,e),[e]),i.getSnapshot!==t||m||Xe!==null&&Xe.memoizedState.tag&1){if(n.flags|=2048,Un(9,{destroy:void 0},of.bind(null,n,i,a,t),null),De===null)throw Error(o(349));u||(ta&127)!==0||rf(n,t,a)}return a}function rf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=fe.updateQueue,t===null?(t=Bi(),fe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function of(e,t,a,n){t.value=a,t.getSnapshot=n,cf(t)&&ff(e)}function uf(e,t,a){return a(function(){cf(t)&&ff(e)})}function cf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!gt(e,a)}catch{return!0}}function ff(e){var t=Za(e,2);t!==null&&ft(t,e,2)}function Jr(e){var t=lt();if(typeof e=="function"){var a=e;if(e=a(),an){ha(!0);try{a()}finally{ha(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:e},t}function df(e,t,a,n){return e.baseState=a,Zr(e,we,typeof n=="function"?n:aa)}function Ag(e,t,a,n,i){if(Vi(e))throw Error(o(485));if(e=t.action,e!==null){var u={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){u.listeners.push(m)}};_.T!==null?a(!0):u.isTransition=!1,n(u),a=t.pending,a===null?(u.next=t.pending=u,mf(t,u)):(u.next=a.next,t.pending=a.next=u)}}function mf(e,t){var a=t.action,n=t.payload,i=e.state;if(t.isTransition){var u=_.T,m={};_.T=m;try{var x=a(i,n),S=_.S;S!==null&&S(m,x),hf(e,t,x)}catch(D){Fr(e,t,D)}finally{u!==null&&m.types!==null&&(u.types=m.types),_.T=u}}else try{u=a(i,n),hf(e,t,u)}catch(D){Fr(e,t,D)}}function hf(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){pf(e,t,n)},function(n){return Fr(e,t,n)}):pf(e,t,a)}function pf(e,t,a){t.status="fulfilled",t.value=a,gf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,mf(e,a)))}function Fr(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,gf(t),t=t.next;while(t!==n)}e.action=null}function gf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function vf(e,t){return t}function xf(e,t){if(ye){var a=De.formState;if(a!==null){e:{var n=fe;if(ye){if(_e){t:{for(var i=_e,u=Ot;i.nodeType!==8;){if(!u){i=null;break t}if(i=zt(i.nextSibling),i===null){i=null;break t}}u=i.data,i=u==="F!"||u==="F"?i:null}if(i){_e=zt(i.nextSibling),n=i.data==="F!";break e}}ya(n)}n=!1}n&&(t=a[0])}}return a=lt(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vf,lastRenderedState:t},a.queue=n,a=Hf.bind(null,fe,n),n.dispatch=a,n=Jr(!1),u=ao.bind(null,fe,!1,n.queue),n=lt(),i={state:t,dispatch:null,action:e,pending:null},n.queue=i,a=Ag.bind(null,fe,i,u,a),i.dispatch=a,n.memoizedState=e,[t,a,!1]}function yf(e){var t=ke();return bf(t,we,e)}function bf(e,t,a){if(t=Zr(e,t,vf)[0],e=Yi(aa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Cl(t)}catch(m){throw m===zn?Ai:m}else n=t;t=ke();var i=t.queue,u=i.dispatch;return a!==t.memoizedState&&(fe.flags|=2048,Un(9,{destroy:void 0},zg.bind(null,i,a),null)),[n,u,e]}function zg(e,t){e.action=t}function Sf(e){var t=ke(),a=we;if(a!==null)return bf(t,a,e);ke(),t=t.memoizedState,a=ke();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function Un(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=fe.updateQueue,t===null&&(t=Bi(),fe.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(n=a.next,a.next=e,e.next=n,t.lastEffect=e),e}function Nf(){return ke().memoizedState}function Gi(e,t,a,n){var i=lt();fe.flags|=e,i.memoizedState=Un(1|t,{destroy:void 0},a,n===void 0?null:n)}function ki(e,t,a,n){var i=ke();n=n===void 0?null:n;var u=i.memoizedState.inst;we!==null&&n!==null&&Gr(n,we.memoizedState.deps)?i.memoizedState=Un(t,u,a,n):(fe.flags|=e,i.memoizedState=Un(1|t,u,a,n))}function jf(e,t){Gi(8390656,8,e,t)}function Wr(e,t){ki(2048,8,e,t)}function Dg(e){fe.flags|=4;var t=fe.updateQueue;if(t===null)t=Bi(),fe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Ef(e){var t=ke().memoizedState;return Dg({ref:t,nextImpl:e}),function(){if((Ne&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Cf(e,t){return ki(4,2,e,t)}function Rf(e,t){return ki(4,4,e,t)}function Tf(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function wf(e,t,a){a=a!=null?a.concat([e]):null,ki(4,4,Tf.bind(null,t,e),a)}function Pr(){}function Of(e,t){var a=ke();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&Gr(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function Af(e,t){var a=ke();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&Gr(t,n[1]))return n[0];if(n=e(),an){ha(!0);try{e()}finally{ha(!1)}}return a.memoizedState=[n,t],n}function Ir(e,t,a){return a===void 0||(ta&1073741824)!==0&&(ge&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=zd(),fe.lanes|=e,wa|=e,a)}function zf(e,t,a,n){return gt(a,t)?a:_n.current!==null?(e=Ir(e,a,n),gt(e,t)||(Qe=!0),e):(ta&42)===0||(ta&1073741824)!==0&&(ge&261930)===0?(Qe=!0,e.memoizedState=a):(e=zd(),fe.lanes|=e,wa|=e,t)}function Df(e,t,a,n,i){var u=k.p;k.p=u!==0&&8>u?u:8;var m=_.T,x={};_.T=x,ao(e,!1,t,a);try{var S=i(),D=_.S;if(D!==null&&D(x,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var H=Tg(S,n);Rl(e,t,H,Nt(e))}else Rl(e,t,n,Nt(e))}catch(Y){Rl(e,t,{then:function(){},status:"rejected",reason:Y},Nt())}finally{k.p=u,m!==null&&x.types!==null&&(m.types=x.types),_.T=m}}function _g(){}function eo(e,t,a,n){if(e.tag!==5)throw Error(o(476));var i=_f(e).queue;Df(e,i,t,ee,a===null?_g:function(){return Lf(e),a(n)})}function _f(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:ee},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Lf(e){var t=_f(e);t.next===null&&(t=e.alternate.memoizedState),Rl(e,t.next.queue,{},Nt())}function to(){return Ie(Vl)}function Mf(){return ke().memoizedState}function Uf(){return ke().memoizedState}function Lg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Nt();e=Na(a);var n=ja(t,e,a);n!==null&&(ft(n,t,a),Sl(n,t,a)),t={cache:Ar()},e.payload=t;return}t=t.return}}function Mg(e,t,a){var n=Nt();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Vi(e)?Bf(t,a):(a=yr(e,t,a,n),a!==null&&(ft(a,e,n),qf(a,t,n)))}function Hf(e,t,a){var n=Nt();Rl(e,t,a,n)}function Rl(e,t,a,n){var i={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Vi(e))Bf(t,i);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var m=t.lastRenderedState,x=u(m,a);if(i.hasEagerState=!0,i.eagerState=x,gt(x,m))return ji(e,t,i,0),De===null&&Ni(),!1}catch{}finally{}if(a=yr(e,t,i,n),a!==null)return ft(a,e,n),qf(a,t,n),!0}return!1}function ao(e,t,a,n){if(n={lane:2,revertLane:Mo(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Vi(e)){if(t)throw Error(o(479))}else t=yr(e,a,n,2),t!==null&&ft(t,e,2)}function Vi(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function Bf(e,t){Ln=Ui=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function qf(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Vu(e,a)}}var Tl={readContext:Ie,use:qi,useCallback:Be,useContext:Be,useEffect:Be,useImperativeHandle:Be,useLayoutEffect:Be,useInsertionEffect:Be,useMemo:Be,useReducer:Be,useRef:Be,useState:Be,useDebugValue:Be,useDeferredValue:Be,useTransition:Be,useSyncExternalStore:Be,useId:Be,useHostTransitionStatus:Be,useFormState:Be,useActionState:Be,useOptimistic:Be,useMemoCache:Be,useCacheRefresh:Be};Tl.useEffectEvent=Be;var Yf={readContext:Ie,use:qi,useCallback:function(e,t){return lt().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:jf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Gi(4194308,4,Tf.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Gi(4194308,4,e,t)},useInsertionEffect:function(e,t){Gi(4,2,e,t)},useMemo:function(e,t){var a=lt();t=t===void 0?null:t;var n=e();if(an){ha(!0);try{e()}finally{ha(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=lt();if(a!==void 0){var i=a(t);if(an){ha(!0);try{a(t)}finally{ha(!1)}}}else i=t;return n.memoizedState=n.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},n.queue=e,e=e.dispatch=Mg.bind(null,fe,e),[n.memoizedState,e]},useRef:function(e){var t=lt();return e={current:e},t.memoizedState=e},useState:function(e){e=Jr(e);var t=e.queue,a=Hf.bind(null,fe,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Pr,useDeferredValue:function(e,t){var a=lt();return Ir(a,e,t)},useTransition:function(){var e=Jr(!1);return e=Df.bind(null,fe,e.queue,!0,!1),lt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=fe,i=lt();if(ye){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),De===null)throw Error(o(349));(ge&127)!==0||rf(n,t,a)}i.memoizedState=a;var u={value:a,getSnapshot:t};return i.queue=u,jf(uf.bind(null,n,u,e),[e]),n.flags|=2048,Un(9,{destroy:void 0},of.bind(null,n,u,a,t),null),a},useId:function(){var e=lt(),t=De.identifierPrefix;if(ye){var a=Yt,n=qt;a=(n&~(1<<32-pt(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Hi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=wg++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:to,useFormState:xf,useActionState:xf,useOptimistic:function(e){var t=lt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=ao.bind(null,fe,!0,a),a.dispatch=t,[e,t]},useMemoCache:Kr,useCacheRefresh:function(){return lt().memoizedState=Lg.bind(null,fe)},useEffectEvent:function(e){var t=lt(),a={impl:e};return t.memoizedState=a,function(){if((Ne&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},no={readContext:Ie,use:qi,useCallback:Of,useContext:Ie,useEffect:Wr,useImperativeHandle:wf,useInsertionEffect:Cf,useLayoutEffect:Rf,useMemo:Af,useReducer:Yi,useRef:Nf,useState:function(){return Yi(aa)},useDebugValue:Pr,useDeferredValue:function(e,t){var a=ke();return zf(a,we.memoizedState,e,t)},useTransition:function(){var e=Yi(aa)[0],t=ke().memoizedState;return[typeof e=="boolean"?e:Cl(e),t]},useSyncExternalStore:sf,useId:Mf,useHostTransitionStatus:to,useFormState:yf,useActionState:yf,useOptimistic:function(e,t){var a=ke();return df(a,we,e,t)},useMemoCache:Kr,useCacheRefresh:Uf};no.useEffectEvent=Ef;var Gf={readContext:Ie,use:qi,useCallback:Of,useContext:Ie,useEffect:Wr,useImperativeHandle:wf,useInsertionEffect:Cf,useLayoutEffect:Rf,useMemo:Af,useReducer:$r,useRef:Nf,useState:function(){return $r(aa)},useDebugValue:Pr,useDeferredValue:function(e,t){var a=ke();return we===null?Ir(a,e,t):zf(a,we.memoizedState,e,t)},useTransition:function(){var e=$r(aa)[0],t=ke().memoizedState;return[typeof e=="boolean"?e:Cl(e),t]},useSyncExternalStore:sf,useId:Mf,useHostTransitionStatus:to,useFormState:Sf,useActionState:Sf,useOptimistic:function(e,t){var a=ke();return we!==null?df(a,we,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Kr,useCacheRefresh:Uf};Gf.useEffectEvent=Ef;function lo(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:y({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var io={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=Nt(),i=Na(n);i.payload=t,a!=null&&(i.callback=a),t=ja(e,i,n),t!==null&&(ft(t,e,n),Sl(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=Nt(),i=Na(n);i.tag=1,i.payload=t,a!=null&&(i.callback=a),t=ja(e,i,n),t!==null&&(ft(t,e,n),Sl(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Nt(),n=Na(a);n.tag=2,t!=null&&(n.callback=t),t=ja(e,n,a),t!==null&&(ft(t,e,a),Sl(t,e,a))}};function kf(e,t,a,n,i,u,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,u,m):t.prototype&&t.prototype.isPureReactComponent?!ml(a,n)||!ml(i,u):!0}function Vf(e,t,a,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,n),t.state!==e&&io.enqueueReplaceState(t,t.state,null)}function nn(e,t){var a=t;if("ref"in t){a={};for(var n in t)n!=="ref"&&(a[n]=t[n])}if(e=e.defaultProps){a===t&&(a=y({},a));for(var i in e)a[i]===void 0&&(a[i]=e[i])}return a}function Xf(e){Si(e)}function Qf(e){console.error(e)}function Kf(e){Si(e)}function Xi(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Zf(e,t,a){try{var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function so(e,t,a){return a=Na(a),a.tag=3,a.payload={element:null},a.callback=function(){Xi(e,t)},a}function $f(e){return e=Na(e),e.tag=3,e}function Jf(e,t,a,n){var i=a.type.getDerivedStateFromError;if(typeof i=="function"){var u=n.value;e.payload=function(){return i(u)},e.callback=function(){Zf(t,a,n)}}var m=a.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){Zf(t,a,n),typeof i!="function"&&(Oa===null?Oa=new Set([this]):Oa.add(this));var x=n.stack;this.componentDidCatch(n.value,{componentStack:x!==null?x:""})})}function Ug(e,t,a,n,i){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&wn(t,a,i,!0),a=xt.current,a!==null){switch(a.tag){case 31:case 13:return At===null?as():a.alternate===null&&qe===0&&(qe=3),a.flags&=-257,a.flags|=65536,a.lanes=i,n===zi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),Do(e,n,i)),!1;case 22:return a.flags|=65536,n===zi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([n]):a.add(n)),Do(e,n,i)),!1}throw Error(o(435,a.tag))}return Do(e,n,i),as(),!1}if(ye)return t=xt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,n!==Cr&&(e=Error(o(422),{cause:n}),gl(Rt(e,a)))):(n!==Cr&&(t=Error(o(423),{cause:n}),gl(Rt(t,a))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,n=Rt(n,a),i=so(e.stateNode,n,i),Ur(e,i),qe!==4&&(qe=2)),!1;var u=Error(o(520),{cause:n});if(u=Rt(u,a),Ml===null?Ml=[u]:Ml.push(u),qe!==4&&(qe=2),t===null)return!0;n=Rt(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=i&-i,a.lanes|=e,e=so(a.stateNode,n,e),Ur(a,e),!1;case 1:if(t=a.type,u=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Oa===null||!Oa.has(u))))return a.flags|=65536,i&=-i,a.lanes|=i,i=$f(i),Jf(i,e,a,n),Ur(a,i),!1}a=a.return}while(a!==null);return!1}var ro=Error(o(461)),Qe=!1;function et(e,t,a,n){t.child=e===null?Pc(t,null,a,n):tn(t,e.child,a,n)}function Ff(e,t,a,n,i){a=a.render;var u=t.ref;if("ref"in n){var m={};for(var x in n)x!=="ref"&&(m[x]=n[x])}else m=n;return Wa(t),n=kr(e,t,a,m,u,i),x=Vr(),e!==null&&!Qe?(Xr(e,t,i),na(e,t,i)):(ye&&x&&jr(t),t.flags|=1,et(e,t,n,i),t.child)}function Wf(e,t,a,n,i){if(e===null){var u=a.type;return typeof u=="function"&&!br(u)&&u.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=u,Pf(e,t,u,n,i)):(e=Ci(a.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!go(e,i)){var m=u.memoizedProps;if(a=a.compare,a=a!==null?a:ml,a(m,n)&&e.ref===t.ref)return na(e,t,i)}return t.flags|=1,e=Wt(u,n),e.ref=t.ref,e.return=t,t.child=e}function Pf(e,t,a,n,i){if(e!==null){var u=e.memoizedProps;if(ml(u,n)&&e.ref===t.ref)if(Qe=!1,t.pendingProps=n=u,go(e,i))(e.flags&131072)!==0&&(Qe=!0);else return t.lanes=e.lanes,na(e,t,i)}return oo(e,t,a,n,i)}function If(e,t,a,n){var i=n.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|a:a,e!==null){for(n=t.child=e.child,i=0;n!==null;)i=i|n.lanes|n.childLanes,n=n.sibling;n=i&~u}else n=0,t.child=null;return ed(e,t,u,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Oi(t,u!==null?u.cachePool:null),u!==null?tf(t,u):Br(),af(t);else return n=t.lanes=536870912,ed(e,t,u!==null?u.baseLanes|a:a,a,n)}else u!==null?(Oi(t,u.cachePool),tf(t,u),Ca(),t.memoizedState=null):(e!==null&&Oi(t,null),Br(),Ca());return et(e,t,i,a),t.child}function wl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ed(e,t,a,n,i){var u=Dr();return u=u===null?null:{parent:Ve._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&Oi(t,null),Br(),af(t),e!==null&&wn(e,t,n,!0),t.childLanes=i,null}function Qi(e,t){return t=Zi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function td(e,t,a){return tn(t,e.child,null,a),e=Qi(t,t.pendingProps),e.flags|=2,yt(t),t.memoizedState=null,e}function Hg(e,t,a){var n=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ye){if(n.mode==="hidden")return e=Qi(t,n),t.lanes=536870912,wl(null,e);if(Yr(t),(e=_e)?(e=mm(e,Ot),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:va!==null?{id:qt,overflow:Yt}:null,retryLane:536870912,hydrationErrors:null},a=Hc(e),a.return=t,t.child=a,Pe=t,_e=null)):e=null,e===null)throw ya(t);return t.lanes=536870912,null}return Qi(t,n)}var u=e.memoizedState;if(u!==null){var m=u.dehydrated;if(Yr(t),i)if(t.flags&256)t.flags&=-257,t=td(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Qe||wn(e,t,a,!1),i=(a&e.childLanes)!==0,Qe||i){if(n=De,n!==null&&(m=Xu(n,a),m!==0&&m!==u.retryLane))throw u.retryLane=m,Za(e,m),ft(n,e,m),ro;as(),t=td(e,t,a)}else e=u.treeContext,_e=zt(m.nextSibling),Pe=t,ye=!0,xa=null,Ot=!1,e!==null&&Yc(t,e),t=Qi(t,n),t.flags|=4096;return t}return e=Wt(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ki(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function oo(e,t,a,n,i){return Wa(t),a=kr(e,t,a,n,void 0,i),n=Vr(),e!==null&&!Qe?(Xr(e,t,i),na(e,t,i)):(ye&&n&&jr(t),t.flags|=1,et(e,t,a,i),t.child)}function ad(e,t,a,n,i,u){return Wa(t),t.updateQueue=null,a=lf(t,n,a,i),nf(e),n=Vr(),e!==null&&!Qe?(Xr(e,t,u),na(e,t,u)):(ye&&n&&jr(t),t.flags|=1,et(e,t,a,u),t.child)}function nd(e,t,a,n,i){if(Wa(t),t.stateNode===null){var u=En,m=a.contextType;typeof m=="object"&&m!==null&&(u=Ie(m)),u=new a(n,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=io,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=n,u.state=t.memoizedState,u.refs={},Lr(t),m=a.contextType,u.context=typeof m=="object"&&m!==null?Ie(m):En,u.state=t.memoizedState,m=a.getDerivedStateFromProps,typeof m=="function"&&(lo(t,a,m,n),u.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(m=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),m!==u.state&&io.enqueueReplaceState(u,u.state,null),jl(t,n,u,i),Nl(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){u=t.stateNode;var x=t.memoizedProps,S=nn(a,x);u.props=S;var D=u.context,H=a.contextType;m=En,typeof H=="object"&&H!==null&&(m=Ie(H));var Y=a.getDerivedStateFromProps;H=typeof Y=="function"||typeof u.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,H||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(x||D!==m)&&Vf(t,u,n,m),Sa=!1;var L=t.memoizedState;u.state=L,jl(t,n,u,i),Nl(),D=t.memoizedState,x||L!==D||Sa?(typeof Y=="function"&&(lo(t,a,Y,n),D=t.memoizedState),(S=Sa||kf(t,a,S,n,L,D,m))?(H||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=D),u.props=n,u.state=D,u.context=m,n=S):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{u=t.stateNode,Mr(e,t),m=t.memoizedProps,H=nn(a,m),u.props=H,Y=t.pendingProps,L=u.context,D=a.contextType,S=En,typeof D=="object"&&D!==null&&(S=Ie(D)),x=a.getDerivedStateFromProps,(D=typeof x=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(m!==Y||L!==S)&&Vf(t,u,n,S),Sa=!1,L=t.memoizedState,u.state=L,jl(t,n,u,i),Nl();var U=t.memoizedState;m!==Y||L!==U||Sa||e!==null&&e.dependencies!==null&&Ti(e.dependencies)?(typeof x=="function"&&(lo(t,a,x,n),U=t.memoizedState),(H=Sa||kf(t,a,H,n,L,U,S)||e!==null&&e.dependencies!==null&&Ti(e.dependencies))?(D||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(n,U,S),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(n,U,S)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||m===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=U),u.props=n,u.state=U,u.context=S,n=H):(typeof u.componentDidUpdate!="function"||m===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),n=!1)}return u=n,Ki(e,t),n=(t.flags&128)!==0,u||n?(u=t.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&n?(t.child=tn(t,e.child,null,i),t.child=tn(t,null,a,i)):et(e,t,a,i),t.memoizedState=u.state,e=t.child):e=na(e,t,i),e}function ld(e,t,a,n){return Ja(),t.flags|=256,et(e,t,a,n),t.child}var uo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function co(e){return{baseLanes:e,cachePool:Kc()}}function fo(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=St),e}function id(e,t,a){var n=t.pendingProps,i=!1,u=(t.flags&128)!==0,m;if((m=u)||(m=e!==null&&e.memoizedState===null?!1:(Ge.current&2)!==0),m&&(i=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(ye){if(i?Ea(t):Ca(),(e=_e)?(e=mm(e,Ot),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:va!==null?{id:qt,overflow:Yt}:null,retryLane:536870912,hydrationErrors:null},a=Hc(e),a.return=t,t.child=a,Pe=t,_e=null)):e=null,e===null)throw ya(t);return $o(e)?t.lanes=32:t.lanes=536870912,null}var x=n.children;return n=n.fallback,i?(Ca(),i=t.mode,x=Zi({mode:"hidden",children:x},i),n=$a(n,i,a,null),x.return=t,n.return=t,x.sibling=n,t.child=x,n=t.child,n.memoizedState=co(a),n.childLanes=fo(e,m,a),t.memoizedState=uo,wl(null,n)):(Ea(t),mo(t,x))}var S=e.memoizedState;if(S!==null&&(x=S.dehydrated,x!==null)){if(u)t.flags&256?(Ea(t),t.flags&=-257,t=ho(e,t,a)):t.memoizedState!==null?(Ca(),t.child=e.child,t.flags|=128,t=null):(Ca(),x=n.fallback,i=t.mode,n=Zi({mode:"visible",children:n.children},i),x=$a(x,i,a,null),x.flags|=2,n.return=t,x.return=t,n.sibling=x,t.child=n,tn(t,e.child,null,a),n=t.child,n.memoizedState=co(a),n.childLanes=fo(e,m,a),t.memoizedState=uo,t=wl(null,n));else if(Ea(t),$o(x)){if(m=x.nextSibling&&x.nextSibling.dataset,m)var D=m.dgst;m=D,n=Error(o(419)),n.stack="",n.digest=m,gl({value:n,source:null,stack:null}),t=ho(e,t,a)}else if(Qe||wn(e,t,a,!1),m=(a&e.childLanes)!==0,Qe||m){if(m=De,m!==null&&(n=Xu(m,a),n!==0&&n!==S.retryLane))throw S.retryLane=n,Za(e,n),ft(m,e,n),ro;Zo(x)||as(),t=ho(e,t,a)}else Zo(x)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,_e=zt(x.nextSibling),Pe=t,ye=!0,xa=null,Ot=!1,e!==null&&Yc(t,e),t=mo(t,n.children),t.flags|=4096);return t}return i?(Ca(),x=n.fallback,i=t.mode,S=e.child,D=S.sibling,n=Wt(S,{mode:"hidden",children:n.children}),n.subtreeFlags=S.subtreeFlags&65011712,D!==null?x=Wt(D,x):(x=$a(x,i,a,null),x.flags|=2),x.return=t,n.return=t,n.sibling=x,t.child=n,wl(null,n),n=t.child,x=e.child.memoizedState,x===null?x=co(a):(i=x.cachePool,i!==null?(S=Ve._currentValue,i=i.parent!==S?{parent:S,pool:S}:i):i=Kc(),x={baseLanes:x.baseLanes|a,cachePool:i}),n.memoizedState=x,n.childLanes=fo(e,m,a),t.memoizedState=uo,wl(e.child,n)):(Ea(t),a=e.child,e=a.sibling,a=Wt(a,{mode:"visible",children:n.children}),a.return=t,a.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=a,t.memoizedState=null,a)}function mo(e,t){return t=Zi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Zi(e,t){return e=vt(22,e,null,t),e.lanes=0,e}function ho(e,t,a){return tn(t,e.child,null,a),e=mo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sd(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),wr(e.return,t,a)}function po(e,t,a,n,i,u){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:i,treeForkCount:u}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=n,m.tail=a,m.tailMode=i,m.treeForkCount=u)}function rd(e,t,a){var n=t.pendingProps,i=n.revealOrder,u=n.tail;n=n.children;var m=Ge.current,x=(m&2)!==0;if(x?(m=m&1|2,t.flags|=128):m&=1,Z(Ge,m),et(e,t,n,a),n=ye?pl:0,!x&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&sd(e,a,t);else if(e.tag===19)sd(e,a,t);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}switch(i){case"forwards":for(a=t.child,i=null;a!==null;)e=a.alternate,e!==null&&Mi(e)===null&&(i=a),a=a.sibling;a=i,a===null?(i=t.child,t.child=null):(i=a.sibling,a.sibling=null),po(t,!1,i,a,u,n);break;case"backwards":case"unstable_legacy-backwards":for(a=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Mi(e)===null){t.child=i;break}e=i.sibling,i.sibling=a,a=i,i=e}po(t,!0,a,null,u,n);break;case"together":po(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function na(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),wa|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(wn(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=Wt(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Wt(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function go(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ti(e)))}function Bg(e,t,a){switch(t.tag){case 3:nt(t,t.stateNode.containerInfo),ba(t,Ve,e.memoizedState.cache),Ja();break;case 27:case 5:el(t);break;case 4:nt(t,t.stateNode.containerInfo);break;case 10:ba(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Yr(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(Ea(t),t.flags|=128,null):(a&t.child.childLanes)!==0?id(e,t,a):(Ea(t),e=na(e,t,a),e!==null?e.sibling:null);Ea(t);break;case 19:var i=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(wn(e,t,a,!1),n=(a&t.childLanes)!==0),i){if(n)return rd(e,t,a);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Z(Ge,Ge.current),n)break;return null;case 22:return t.lanes=0,If(e,t,a,t.pendingProps);case 24:ba(t,Ve,e.memoizedState.cache)}return na(e,t,a)}function od(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Qe=!0;else{if(!go(e,a)&&(t.flags&128)===0)return Qe=!1,Bg(e,t,a);Qe=(e.flags&131072)!==0}else Qe=!1,ye&&(t.flags&1048576)!==0&&qc(t,pl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=Ia(t.elementType),t.type=e,typeof e=="function")br(e)?(n=nn(e,n),t.tag=1,t=nd(null,t,e,n,a)):(t.tag=0,t=oo(null,t,e,n,a));else{if(e!=null){var i=e.$$typeof;if(i===J){t.tag=11,t=Ff(null,t,e,n,a);break e}else if(i===V){t.tag=14,t=Wf(null,t,e,n,a);break e}}throw t=re(e)||e,Error(o(306,t,""))}}return t;case 0:return oo(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,i=nn(n,t.pendingProps),nd(e,t,n,i,a);case 3:e:{if(nt(t,t.stateNode.containerInfo),e===null)throw Error(o(387));n=t.pendingProps;var u=t.memoizedState;i=u.element,Mr(e,t),jl(t,n,null,a);var m=t.memoizedState;if(n=m.cache,ba(t,Ve,n),n!==u.cache&&Or(t,[Ve],a,!0),Nl(),n=m.element,u.isDehydrated)if(u={element:n,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=ld(e,t,n,a);break e}else if(n!==i){i=Rt(Error(o(424)),t),gl(i),t=ld(e,t,n,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(_e=zt(e.firstChild),Pe=t,ye=!0,xa=null,Ot=!0,a=Pc(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Ja(),n===i){t=na(e,t,a);break e}et(e,t,n,a)}t=t.child}return t;case 26:return Ki(e,t),e===null?(a=ym(t.type,null,t.pendingProps,null))?t.memoizedState=a:ye||(a=t.type,e=t.pendingProps,n=us(me.current).createElement(a),n[We]=t,n[it]=e,tt(n,a,e),$e(n),t.stateNode=n):t.memoizedState=ym(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return el(t),e===null&&ye&&(n=t.stateNode=gm(t.type,t.pendingProps,me.current),Pe=t,Ot=!0,i=_e,_a(t.type)?(Jo=i,_e=zt(n.firstChild)):_e=i),et(e,t,t.pendingProps.children,a),Ki(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ye&&((i=n=_e)&&(n=hv(n,t.type,t.pendingProps,Ot),n!==null?(t.stateNode=n,Pe=t,_e=zt(n.firstChild),Ot=!1,i=!0):i=!1),i||ya(t)),el(t),i=t.type,u=t.pendingProps,m=e!==null?e.memoizedProps:null,n=u.children,Xo(i,u)?n=null:m!==null&&Xo(i,m)&&(t.flags|=32),t.memoizedState!==null&&(i=kr(e,t,Og,null,null,a),Vl._currentValue=i),Ki(e,t),et(e,t,n,a),t.child;case 6:return e===null&&ye&&((e=a=_e)&&(a=pv(a,t.pendingProps,Ot),a!==null?(t.stateNode=a,Pe=t,_e=null,e=!0):e=!1),e||ya(t)),null;case 13:return id(e,t,a);case 4:return nt(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=tn(t,null,n,a):et(e,t,n,a),t.child;case 11:return Ff(e,t,t.type,t.pendingProps,a);case 7:return et(e,t,t.pendingProps,a),t.child;case 8:return et(e,t,t.pendingProps.children,a),t.child;case 12:return et(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.pendingProps,ba(t,t.type,n.value),et(e,t,n.children,a),t.child;case 9:return i=t.type._context,n=t.pendingProps.children,Wa(t),i=Ie(i),n=n(i),t.flags|=1,et(e,t,n,a),t.child;case 14:return Wf(e,t,t.type,t.pendingProps,a);case 15:return Pf(e,t,t.type,t.pendingProps,a);case 19:return rd(e,t,a);case 31:return Hg(e,t,a);case 22:return If(e,t,a,t.pendingProps);case 24:return Wa(t),n=Ie(Ve),e===null?(i=Dr(),i===null&&(i=De,u=Ar(),i.pooledCache=u,u.refCount++,u!==null&&(i.pooledCacheLanes|=a),i=u),t.memoizedState={parent:n,cache:i},Lr(t),ba(t,Ve,i)):((e.lanes&a)!==0&&(Mr(e,t),jl(t,null,null,a),Nl()),i=e.memoizedState,u=t.memoizedState,i.parent!==n?(i={parent:n,cache:n},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),ba(t,Ve,n)):(n=u.cache,ba(t,Ve,n),n!==i.cache&&Or(t,[Ve],a,!0))),et(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function la(e){e.flags|=4}function vo(e,t,a,n,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Md())e.flags|=8192;else throw en=zi,_r}else e.flags&=-16777217}function ud(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Em(t))if(Md())e.flags|=8192;else throw en=zi,_r}function $i(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Gu():536870912,e.lanes|=t,Yn|=t)}function Ol(e,t){if(!ye)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Le(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)for(var i=e.child;i!==null;)a|=i.lanes|i.childLanes,n|=i.subtreeFlags&65011712,n|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)a|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function qg(e,t,a){var n=t.pendingProps;switch(Er(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Le(t),null;case 1:return Le(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ea(Ve),Ye(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Tn(t)?la(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Rr())),Le(t),null;case 26:var i=t.type,u=t.memoizedState;return e===null?(la(t),u!==null?(Le(t),ud(t,u)):(Le(t),vo(t,i,null,n,a))):u?u!==e.memoizedState?(la(t),Le(t),ud(t,u)):(Le(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&la(t),Le(t),vo(t,i,e,n,a)),null;case 27:if(ii(t),a=me.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&la(t);else{if(!n){if(t.stateNode===null)throw Error(o(166));return Le(t),null}e=F.current,Tn(t)?Gc(t):(e=gm(i,n,a),t.stateNode=e,la(t))}return Le(t),null;case 5:if(ii(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&la(t);else{if(!n){if(t.stateNode===null)throw Error(o(166));return Le(t),null}if(u=F.current,Tn(t))Gc(t);else{var m=us(me.current);switch(u){case 1:u=m.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:u=m.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":u=m.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":u=m.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":u=m.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof n.is=="string"?m.createElement("select",{is:n.is}):m.createElement("select"),n.multiple?u.multiple=!0:n.size&&(u.size=n.size);break;default:u=typeof n.is=="string"?m.createElement(i,{is:n.is}):m.createElement(i)}}u[We]=t,u[it]=n;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)u.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=u;e:switch(tt(u,i,n),i){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&la(t)}}return Le(t),vo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&la(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(o(166));if(e=me.current,Tn(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,i=Pe,i!==null)switch(i.tag){case 27:case 5:n=i.memoizedProps}e[We]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||im(e.nodeValue,a)),e||ya(t,!0)}else e=us(e).createTextNode(n),e[We]=t,t.stateNode=e}return Le(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=Tn(t),a!==null){if(e===null){if(!n)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[We]=t}else Ja(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Le(t),e=!1}else a=Rr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(yt(t),t):(yt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Le(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Tn(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(o(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(o(317));i[We]=t}else Ja(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Le(t),i=!1}else i=Rr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(yt(t),t):(yt(t),null)}return yt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,i=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(i=n.alternate.memoizedState.cachePool.pool),u=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==i&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),$i(t,t.updateQueue),Le(t),null);case 4:return Ye(),e===null&&qo(t.stateNode.containerInfo),Le(t),null;case 10:return ea(t.type),Le(t),null;case 19:if(B(Ge),n=t.memoizedState,n===null)return Le(t),null;if(i=(t.flags&128)!==0,u=n.rendering,u===null)if(i)Ol(n,!1);else{if(qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Mi(e),u!==null){for(t.flags|=128,Ol(n,!1),e=u.updateQueue,t.updateQueue=e,$i(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Uc(a,e),a=a.sibling;return Z(Ge,Ge.current&1|2),ye&&Pt(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&mt()>Ii&&(t.flags|=128,i=!0,Ol(n,!1),t.lanes=4194304)}else{if(!i)if(e=Mi(u),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,$i(t,e),Ol(n,!0),n.tail===null&&n.tailMode==="hidden"&&!u.alternate&&!ye)return Le(t),null}else 2*mt()-n.renderingStartTime>Ii&&a!==536870912&&(t.flags|=128,i=!0,Ol(n,!1),t.lanes=4194304);n.isBackwards?(u.sibling=t.child,t.child=u):(e=n.last,e!==null?e.sibling=u:t.child=u,n.last=u)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=mt(),e.sibling=null,a=Ge.current,Z(Ge,i?a&1|2:a&1),ye&&Pt(t,n.treeForkCount),e):(Le(t),null);case 22:case 23:return yt(t),qr(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(Le(t),t.subtreeFlags&6&&(t.flags|=8192)):Le(t),a=t.updateQueue,a!==null&&$i(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&B(Pa),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ea(Ve),Le(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Yg(e,t){switch(Er(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ea(Ve),Ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ii(t),null;case 31:if(t.memoizedState!==null){if(yt(t),t.alternate===null)throw Error(o(340));Ja()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(yt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Ja()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(Ge),null;case 4:return Ye(),null;case 10:return ea(t.type),null;case 22:case 23:return yt(t),qr(),e!==null&&B(Pa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ea(Ve),null;case 25:return null;default:return null}}function cd(e,t){switch(Er(t),t.tag){case 3:ea(Ve),Ye();break;case 26:case 27:case 5:ii(t);break;case 4:Ye();break;case 31:t.memoizedState!==null&&yt(t);break;case 13:yt(t);break;case 19:B(Ge);break;case 10:ea(t.type);break;case 22:case 23:yt(t),qr(),e!==null&&B(Pa);break;case 24:ea(Ve)}}function Al(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&e)===e){n=void 0;var u=a.create,m=a.inst;n=u(),m.destroy=n}a=a.next}while(a!==i)}}catch(x){Re(t,t.return,x)}}function Ra(e,t,a){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var u=i.next;n=u;do{if((n.tag&e)===e){var m=n.inst,x=m.destroy;if(x!==void 0){m.destroy=void 0,i=t;var S=a,D=x;try{D()}catch(H){Re(i,S,H)}}}n=n.next}while(n!==u)}}catch(H){Re(t,t.return,H)}}function fd(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{ef(t,a)}catch(n){Re(e,e.return,n)}}}function dd(e,t,a){a.props=nn(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){Re(e,t,n)}}function zl(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof a=="function"?e.refCleanup=a(n):a.current=n}}catch(i){Re(e,t,i)}}function Gt(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(i){Re(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(i){Re(e,t,i)}else a.current=null}function md(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break e;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(i){Re(e,e.return,i)}}function xo(e,t,a){try{var n=e.stateNode;ov(n,e.type,a,t),n[it]=t}catch(i){Re(e,e.return,i)}}function hd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&_a(e.type)||e.tag===4}function yo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&_a(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function bo(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Jt));else if(n!==4&&(n===27&&_a(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(bo(e,t,a),e=e.sibling;e!==null;)bo(e,t,a),e=e.sibling}function Ji(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(n!==4&&(n===27&&_a(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Ji(e,t,a),e=e.sibling;e!==null;)Ji(e,t,a),e=e.sibling}function pd(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);tt(t,n,a),t[We]=e,t[it]=a}catch(u){Re(e,e.return,u)}}var ia=!1,Ke=!1,So=!1,gd=typeof WeakSet=="function"?WeakSet:Set,Je=null;function Gg(e,t){if(e=e.containerInfo,ko=gs,e=Tc(e),mr(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var i=n.anchorOffset,u=n.focusNode;n=n.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break e}var m=0,x=-1,S=-1,D=0,H=0,Y=e,L=null;t:for(;;){for(var U;Y!==a||i!==0&&Y.nodeType!==3||(x=m+i),Y!==u||n!==0&&Y.nodeType!==3||(S=m+n),Y.nodeType===3&&(m+=Y.nodeValue.length),(U=Y.firstChild)!==null;)L=Y,Y=U;for(;;){if(Y===e)break t;if(L===a&&++D===i&&(x=m),L===u&&++H===n&&(S=m),(U=Y.nextSibling)!==null)break;Y=L,L=Y.parentNode}Y=U}a=x===-1||S===-1?null:{start:x,end:S}}else a=null}a=a||{start:0,end:0}}else a=null;for(Vo={focusedElem:e,selectionRange:a},gs=!1,Je=t;Je!==null;)if(t=Je,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Je=e;else for(;Je!==null;){switch(t=Je,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)i=e[a],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,a=t,i=u.memoizedProps,u=u.memoizedState,n=a.stateNode;try{var W=nn(a.type,i);e=n.getSnapshotBeforeUpdate(W,u),n.__reactInternalSnapshotBeforeUpdate=e}catch(ie){Re(a,a.return,ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Ko(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ko(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,Je=e;break}Je=t.return}}function vd(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:ra(e,a),n&4&&Al(5,a);break;case 1:if(ra(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(m){Re(a,a.return,m)}else{var i=nn(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Re(a,a.return,m)}}n&64&&fd(a),n&512&&zl(a,a.return);break;case 3:if(ra(e,a),n&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{ef(e,t)}catch(m){Re(a,a.return,m)}}break;case 27:t===null&&n&4&&pd(a);case 26:case 5:ra(e,a),t===null&&n&4&&md(a),n&512&&zl(a,a.return);break;case 12:ra(e,a);break;case 31:ra(e,a),n&4&&bd(e,a);break;case 13:ra(e,a),n&4&&Sd(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Fg.bind(null,a),gv(e,a))));break;case 22:if(n=a.memoizedState!==null||ia,!n){t=t!==null&&t.memoizedState!==null||Ke,i=ia;var u=Ke;ia=n,(Ke=t)&&!u?oa(e,a,(a.subtreeFlags&8772)!==0):ra(e,a),ia=i,Ke=u}break;case 30:break;default:ra(e,a)}}function xd(e){var t=e.alternate;t!==null&&(e.alternate=null,xd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Fs(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ue=null,rt=!1;function sa(e,t,a){for(a=a.child;a!==null;)yd(e,t,a),a=a.sibling}function yd(e,t,a){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(tl,a)}catch{}switch(a.tag){case 26:Ke||Gt(a,t),sa(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ke||Gt(a,t);var n=Ue,i=rt;_a(a.type)&&(Ue=a.stateNode,rt=!1),sa(e,t,a),Yl(a.stateNode),Ue=n,rt=i;break;case 5:Ke||Gt(a,t);case 6:if(n=Ue,i=rt,Ue=null,sa(e,t,a),Ue=n,rt=i,Ue!==null)if(rt)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(a.stateNode)}catch(u){Re(a,t,u)}else try{Ue.removeChild(a.stateNode)}catch(u){Re(a,t,u)}break;case 18:Ue!==null&&(rt?(e=Ue,fm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),$n(e)):fm(Ue,a.stateNode));break;case 4:n=Ue,i=rt,Ue=a.stateNode.containerInfo,rt=!0,sa(e,t,a),Ue=n,rt=i;break;case 0:case 11:case 14:case 15:Ra(2,a,t),Ke||Ra(4,a,t),sa(e,t,a);break;case 1:Ke||(Gt(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&dd(a,t,n)),sa(e,t,a);break;case 21:sa(e,t,a);break;case 22:Ke=(n=Ke)||a.memoizedState!==null,sa(e,t,a),Ke=n;break;default:sa(e,t,a)}}function bd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{$n(e)}catch(a){Re(t,t.return,a)}}}function Sd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{$n(e)}catch(a){Re(t,t.return,a)}}function kg(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new gd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new gd),t;default:throw Error(o(435,e.tag))}}function Fi(e,t){var a=kg(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var i=Wg.bind(null,e,n);n.then(i,i)}})}function ot(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var i=a[n],u=e,m=t,x=m;e:for(;x!==null;){switch(x.tag){case 27:if(_a(x.type)){Ue=x.stateNode,rt=!1;break e}break;case 5:Ue=x.stateNode,rt=!1;break e;case 3:case 4:Ue=x.stateNode.containerInfo,rt=!0;break e}x=x.return}if(Ue===null)throw Error(o(160));yd(u,m,i),Ue=null,rt=!1,u=i.alternate,u!==null&&(u.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Nd(t,e),t=t.sibling}var Ut=null;function Nd(e,t){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ot(t,e),ut(e),n&4&&(Ra(3,e,e.return),Al(3,e),Ra(5,e,e.return));break;case 1:ot(t,e),ut(e),n&512&&(Ke||a===null||Gt(a,a.return)),n&64&&ia&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?n:a.concat(n))));break;case 26:var i=Ut;if(ot(t,e),ut(e),n&512&&(Ke||a===null||Gt(a,a.return)),n&4){var u=a!==null?a.memoizedState:null;if(n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null){e:{n=e.type,a=e.memoizedProps,i=i.ownerDocument||i;t:switch(n){case"title":u=i.getElementsByTagName("title")[0],(!u||u[ll]||u[We]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=i.createElement(n),i.head.insertBefore(u,i.querySelector("head > title"))),tt(u,n,a),u[We]=e,$e(u),n=u;break e;case"link":var m=Nm("link","href",i).get(n+(a.href||""));if(m){for(var x=0;x<m.length;x++)if(u=m[x],u.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&u.getAttribute("rel")===(a.rel==null?null:a.rel)&&u.getAttribute("title")===(a.title==null?null:a.title)&&u.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){m.splice(x,1);break t}}u=i.createElement(n),tt(u,n,a),i.head.appendChild(u);break;case"meta":if(m=Nm("meta","content",i).get(n+(a.content||""))){for(x=0;x<m.length;x++)if(u=m[x],u.getAttribute("content")===(a.content==null?null:""+a.content)&&u.getAttribute("name")===(a.name==null?null:a.name)&&u.getAttribute("property")===(a.property==null?null:a.property)&&u.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&u.getAttribute("charset")===(a.charSet==null?null:a.charSet)){m.splice(x,1);break t}}u=i.createElement(n),tt(u,n,a),i.head.appendChild(u);break;default:throw Error(o(468,n))}u[We]=e,$e(u),n=u}e.stateNode=n}else jm(i,e.type,e.stateNode);else e.stateNode=Sm(i,n,e.memoizedProps);else u!==n?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,n===null?jm(i,e.type,e.stateNode):Sm(i,n,e.memoizedProps)):n===null&&e.stateNode!==null&&xo(e,e.memoizedProps,a.memoizedProps)}break;case 27:ot(t,e),ut(e),n&512&&(Ke||a===null||Gt(a,a.return)),a!==null&&n&4&&xo(e,e.memoizedProps,a.memoizedProps);break;case 5:if(ot(t,e),ut(e),n&512&&(Ke||a===null||Gt(a,a.return)),e.flags&32){i=e.stateNode;try{vn(i,"")}catch(W){Re(e,e.return,W)}}n&4&&e.stateNode!=null&&(i=e.memoizedProps,xo(e,i,a!==null?a.memoizedProps:i)),n&1024&&(So=!0);break;case 6:if(ot(t,e),ut(e),n&4){if(e.stateNode===null)throw Error(o(162));n=e.memoizedProps,a=e.stateNode;try{a.nodeValue=n}catch(W){Re(e,e.return,W)}}break;case 3:if(ds=null,i=Ut,Ut=cs(t.containerInfo),ot(t,e),Ut=i,ut(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{$n(t.containerInfo)}catch(W){Re(e,e.return,W)}So&&(So=!1,jd(e));break;case 4:n=Ut,Ut=cs(e.stateNode.containerInfo),ot(t,e),ut(e),Ut=n;break;case 12:ot(t,e),ut(e);break;case 31:ot(t,e),ut(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Fi(e,n)));break;case 13:ot(t,e),ut(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Pi=mt()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Fi(e,n)));break;case 22:i=e.memoizedState!==null;var S=a!==null&&a.memoizedState!==null,D=ia,H=Ke;if(ia=D||i,Ke=H||S,ot(t,e),Ke=H,ia=D,ut(e),n&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(a===null||S||ia||Ke||ln(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){S=a=t;try{if(u=S.stateNode,i)m=u.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{x=S.stateNode;var Y=S.memoizedProps.style,L=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;x.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(W){Re(S,S.return,W)}}}else if(t.tag===6){if(a===null){S=t;try{S.stateNode.nodeValue=i?"":S.memoizedProps}catch(W){Re(S,S.return,W)}}}else if(t.tag===18){if(a===null){S=t;try{var U=S.stateNode;i?dm(U,!0):dm(S.stateNode,!1)}catch(W){Re(S,S.return,W)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(a=n.retryQueue,a!==null&&(n.retryQueue=null,Fi(e,a))));break;case 19:ot(t,e),ut(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Fi(e,n)));break;case 30:break;case 21:break;default:ot(t,e),ut(e)}}function ut(e){var t=e.flags;if(t&2){try{for(var a,n=e.return;n!==null;){if(hd(n)){a=n;break}n=n.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var i=a.stateNode,u=yo(e);Ji(e,u,i);break;case 5:var m=a.stateNode;a.flags&32&&(vn(m,""),a.flags&=-33);var x=yo(e);Ji(e,x,m);break;case 3:case 4:var S=a.stateNode.containerInfo,D=yo(e);bo(e,D,S);break;default:throw Error(o(161))}}catch(H){Re(e,e.return,H)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function jd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;jd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ra(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)vd(e,t.alternate,t),t=t.sibling}function ln(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ra(4,t,t.return),ln(t);break;case 1:Gt(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&dd(t,t.return,a),ln(t);break;case 27:Yl(t.stateNode);case 26:case 5:Gt(t,t.return),ln(t);break;case 22:t.memoizedState===null&&ln(t);break;case 30:ln(t);break;default:ln(t)}e=e.sibling}}function oa(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,i=e,u=t,m=u.flags;switch(u.tag){case 0:case 11:case 15:oa(i,u,a),Al(4,u);break;case 1:if(oa(i,u,a),n=u,i=n.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(D){Re(n,n.return,D)}if(n=u,i=n.updateQueue,i!==null){var x=n.stateNode;try{var S=i.shared.hiddenCallbacks;if(S!==null)for(i.shared.hiddenCallbacks=null,i=0;i<S.length;i++)Ic(S[i],x)}catch(D){Re(n,n.return,D)}}a&&m&64&&fd(u),zl(u,u.return);break;case 27:pd(u);case 26:case 5:oa(i,u,a),a&&n===null&&m&4&&md(u),zl(u,u.return);break;case 12:oa(i,u,a);break;case 31:oa(i,u,a),a&&m&4&&bd(i,u);break;case 13:oa(i,u,a),a&&m&4&&Sd(i,u);break;case 22:u.memoizedState===null&&oa(i,u,a),zl(u,u.return);break;case 30:break;default:oa(i,u,a)}t=t.sibling}}function No(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&vl(a))}function jo(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&vl(e))}function Ht(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ed(e,t,a,n),t=t.sibling}function Ed(e,t,a,n){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Ht(e,t,a,n),i&2048&&Al(9,t);break;case 1:Ht(e,t,a,n);break;case 3:Ht(e,t,a,n),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&vl(e)));break;case 12:if(i&2048){Ht(e,t,a,n),e=t.stateNode;try{var u=t.memoizedProps,m=u.id,x=u.onPostCommit;typeof x=="function"&&x(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){Re(t,t.return,S)}}else Ht(e,t,a,n);break;case 31:Ht(e,t,a,n);break;case 13:Ht(e,t,a,n);break;case 23:break;case 22:u=t.stateNode,m=t.alternate,t.memoizedState!==null?u._visibility&2?Ht(e,t,a,n):Dl(e,t):u._visibility&2?Ht(e,t,a,n):(u._visibility|=2,Hn(e,t,a,n,(t.subtreeFlags&10256)!==0||!1)),i&2048&&No(m,t);break;case 24:Ht(e,t,a,n),i&2048&&jo(t.alternate,t);break;default:Ht(e,t,a,n)}}function Hn(e,t,a,n,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,m=t,x=a,S=n,D=m.flags;switch(m.tag){case 0:case 11:case 15:Hn(u,m,x,S,i),Al(8,m);break;case 23:break;case 22:var H=m.stateNode;m.memoizedState!==null?H._visibility&2?Hn(u,m,x,S,i):Dl(u,m):(H._visibility|=2,Hn(u,m,x,S,i)),i&&D&2048&&No(m.alternate,m);break;case 24:Hn(u,m,x,S,i),i&&D&2048&&jo(m.alternate,m);break;default:Hn(u,m,x,S,i)}t=t.sibling}}function Dl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,n=t,i=n.flags;switch(n.tag){case 22:Dl(a,n),i&2048&&No(n.alternate,n);break;case 24:Dl(a,n),i&2048&&jo(n.alternate,n);break;default:Dl(a,n)}t=t.sibling}}var _l=8192;function Bn(e,t,a){if(e.subtreeFlags&_l)for(e=e.child;e!==null;)Cd(e,t,a),e=e.sibling}function Cd(e,t,a){switch(e.tag){case 26:Bn(e,t,a),e.flags&_l&&e.memoizedState!==null&&wv(a,Ut,e.memoizedState,e.memoizedProps);break;case 5:Bn(e,t,a);break;case 3:case 4:var n=Ut;Ut=cs(e.stateNode.containerInfo),Bn(e,t,a),Ut=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=_l,_l=16777216,Bn(e,t,a),_l=n):Bn(e,t,a));break;default:Bn(e,t,a)}}function Rd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ll(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];Je=n,wd(n,e)}Rd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Td(e),e=e.sibling}function Td(e){switch(e.tag){case 0:case 11:case 15:Ll(e),e.flags&2048&&Ra(9,e,e.return);break;case 3:Ll(e);break;case 12:Ll(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Wi(e)):Ll(e);break;default:Ll(e)}}function Wi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];Je=n,wd(n,e)}Rd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ra(8,t,t.return),Wi(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Wi(t));break;default:Wi(t)}e=e.sibling}}function wd(e,t){for(;Je!==null;){var a=Je;switch(a.tag){case 0:case 11:case 15:Ra(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var n=a.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:vl(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,Je=n;else e:for(a=e;Je!==null;){n=Je;var i=n.sibling,u=n.return;if(xd(n),n===a){Je=null;break e}if(i!==null){i.return=u,Je=i;break e}Je=u}}}var Vg={getCacheForType:function(e){var t=Ie(Ve),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Ie(Ve).controller.signal}},Xg=typeof WeakMap=="function"?WeakMap:Map,Ne=0,De=null,he=null,ge=0,Ce=0,bt=null,Ta=!1,qn=!1,Eo=!1,ua=0,qe=0,wa=0,sn=0,Co=0,St=0,Yn=0,Ml=null,ct=null,Ro=!1,Pi=0,Od=0,Ii=1/0,es=null,Oa=null,Ze=0,Aa=null,Gn=null,ca=0,To=0,wo=null,Ad=null,Ul=0,Oo=null;function Nt(){return(Ne&2)!==0&&ge!==0?ge&-ge:_.T!==null?Mo():Qu()}function zd(){if(St===0)if((ge&536870912)===0||ye){var e=oi;oi<<=1,(oi&3932160)===0&&(oi=262144),St=e}else St=536870912;return e=xt.current,e!==null&&(e.flags|=32),St}function ft(e,t,a){(e===De&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)&&(kn(e,0),za(e,ge,St,!1)),nl(e,a),((Ne&2)===0||e!==De)&&(e===De&&((Ne&2)===0&&(sn|=a),qe===4&&za(e,ge,St,!1)),kt(e))}function Dd(e,t,a){if((Ne&6)!==0)throw Error(o(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||al(e,t),i=n?Zg(e,t):zo(e,t,!0),u=n;do{if(i===0){qn&&!n&&za(e,t,0,!1);break}else{if(a=e.current.alternate,u&&!Qg(a)){i=zo(e,t,!1),u=!1;continue}if(i===2){if(u=t,e.errorRecoveryDisabledLanes&u)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var x=e;i=Ml;var S=x.current.memoizedState.isDehydrated;if(S&&(kn(x,m).flags|=256),m=zo(x,m,!1),m!==2){if(Eo&&!S){x.errorRecoveryDisabledLanes|=u,sn|=u,i=4;break e}u=ct,ct=i,u!==null&&(ct===null?ct=u:ct.push.apply(ct,u))}i=m}if(u=!1,i!==2)continue}}if(i===1){kn(e,0),za(e,t,0,!0);break}e:{switch(n=e,u=i,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:za(n,t,St,!Ta);break e;case 2:ct=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(i=Pi+300-mt(),10<i)){if(za(n,t,St,!Ta),ci(n,0,!0)!==0)break e;ca=t,n.timeoutHandle=um(_d.bind(null,n,a,ct,es,Ro,t,St,sn,Yn,Ta,u,"Throttled",-0,0),i);break e}_d(n,a,ct,es,Ro,t,St,sn,Yn,Ta,u,null,-0,0)}}break}while(!0);kt(e)}function _d(e,t,a,n,i,u,m,x,S,D,H,Y,L,U){if(e.timeoutHandle=-1,Y=t.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Jt},Cd(t,u,Y);var W=(u&62914560)===u?Pi-mt():(u&4194048)===u?Od-mt():0;if(W=Ov(Y,W),W!==null){ca=u,e.cancelPendingCommit=W(Gd.bind(null,e,t,u,a,n,i,m,x,S,H,Y,null,L,U)),za(e,u,m,!D);return}}Gd(e,t,u,a,n,i,m,x,S)}function Qg(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var n=0;n<a.length;n++){var i=a[n],u=i.getSnapshot;i=i.value;try{if(!gt(u(),i))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function za(e,t,a,n){t&=~Co,t&=~sn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var i=t;0<i;){var u=31-pt(i),m=1<<u;n[u]=-1,i&=~m}a!==0&&ku(e,a,t)}function ts(){return(Ne&6)===0?(Hl(0),!1):!0}function Ao(){if(he!==null){if(Ce===0)var e=he.return;else e=he,It=Fa=null,Qr(e),Dn=null,yl=0,e=he;for(;e!==null;)cd(e.alternate,e),e=e.return;he=null}}function kn(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,fv(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ca=0,Ao(),De=e,he=a=Wt(e.current,null),ge=t,Ce=0,bt=null,Ta=!1,qn=al(e,t),Eo=!1,Yn=St=Co=sn=wa=qe=0,ct=Ml=null,Ro=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var i=31-pt(n),u=1<<i;t|=e[i],n&=~u}return ua=t,Ni(),a}function Ld(e,t){fe=null,_.H=Tl,t===zn||t===Ai?(t=Jc(),Ce=3):t===_r?(t=Jc(),Ce=4):Ce=t===ro?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,bt=t,he===null&&(qe=1,Xi(e,Rt(t,e.current)))}function Md(){var e=xt.current;return e===null?!0:(ge&4194048)===ge?At===null:(ge&62914560)===ge||(ge&536870912)!==0?e===At:!1}function Ud(){var e=_.H;return _.H=Tl,e===null?Tl:e}function Hd(){var e=_.A;return _.A=Vg,e}function as(){qe=4,Ta||(ge&4194048)!==ge&&xt.current!==null||(qn=!0),(wa&134217727)===0&&(sn&134217727)===0||De===null||za(De,ge,St,!1)}function zo(e,t,a){var n=Ne;Ne|=2;var i=Ud(),u=Hd();(De!==e||ge!==t)&&(es=null,kn(e,t)),t=!1;var m=qe;e:do try{if(Ce!==0&&he!==null){var x=he,S=bt;switch(Ce){case 8:Ao(),m=6;break e;case 3:case 2:case 9:case 6:xt.current===null&&(t=!0);var D=Ce;if(Ce=0,bt=null,Vn(e,x,S,D),a&&qn){m=0;break e}break;default:D=Ce,Ce=0,bt=null,Vn(e,x,S,D)}}Kg(),m=qe;break}catch(H){Ld(e,H)}while(!0);return t&&e.shellSuspendCounter++,It=Fa=null,Ne=n,_.H=i,_.A=u,he===null&&(De=null,ge=0,Ni()),m}function Kg(){for(;he!==null;)Bd(he)}function Zg(e,t){var a=Ne;Ne|=2;var n=Ud(),i=Hd();De!==e||ge!==t?(es=null,Ii=mt()+500,kn(e,t)):qn=al(e,t);e:do try{if(Ce!==0&&he!==null){t=he;var u=bt;t:switch(Ce){case 1:Ce=0,bt=null,Vn(e,t,u,1);break;case 2:case 9:if(Zc(u)){Ce=0,bt=null,qd(t);break}t=function(){Ce!==2&&Ce!==9||De!==e||(Ce=7),kt(e)},u.then(t,t);break e;case 3:Ce=7;break e;case 4:Ce=5;break e;case 7:Zc(u)?(Ce=0,bt=null,qd(t)):(Ce=0,bt=null,Vn(e,t,u,7));break;case 5:var m=null;switch(he.tag){case 26:m=he.memoizedState;case 5:case 27:var x=he;if(m?Em(m):x.stateNode.complete){Ce=0,bt=null;var S=x.sibling;if(S!==null)he=S;else{var D=x.return;D!==null?(he=D,ns(D)):he=null}break t}}Ce=0,bt=null,Vn(e,t,u,5);break;case 6:Ce=0,bt=null,Vn(e,t,u,6);break;case 8:Ao(),qe=6;break e;default:throw Error(o(462))}}$g();break}catch(H){Ld(e,H)}while(!0);return It=Fa=null,_.H=n,_.A=i,Ne=a,he!==null?0:(De=null,ge=0,Ni(),qe)}function $g(){for(;he!==null&&!vp();)Bd(he)}function Bd(e){var t=od(e.alternate,e,ua);e.memoizedProps=e.pendingProps,t===null?ns(e):he=t}function qd(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=ad(a,t,t.pendingProps,t.type,void 0,ge);break;case 11:t=ad(a,t,t.pendingProps,t.type.render,t.ref,ge);break;case 5:Qr(t);default:cd(a,t),t=he=Uc(t,ua),t=od(a,t,ua)}e.memoizedProps=e.pendingProps,t===null?ns(e):he=t}function Vn(e,t,a,n){It=Fa=null,Qr(t),Dn=null,yl=0;var i=t.return;try{if(Ug(e,i,t,a,ge)){qe=1,Xi(e,Rt(a,e.current)),he=null;return}}catch(u){if(i!==null)throw he=i,u;qe=1,Xi(e,Rt(a,e.current)),he=null;return}t.flags&32768?(ye||n===1?e=!0:qn||(ge&536870912)!==0?e=!1:(Ta=e=!0,(n===2||n===9||n===3||n===6)&&(n=xt.current,n!==null&&n.tag===13&&(n.flags|=16384))),Yd(t,e)):ns(t)}function ns(e){var t=e;do{if((t.flags&32768)!==0){Yd(t,Ta);return}e=t.return;var a=qg(t.alternate,t,ua);if(a!==null){he=a;return}if(t=t.sibling,t!==null){he=t;return}he=t=e}while(t!==null);qe===0&&(qe=5)}function Yd(e,t){do{var a=Yg(e.alternate,e);if(a!==null){a.flags&=32767,he=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){he=e;return}he=e=a}while(e!==null);qe=6,he=null}function Gd(e,t,a,n,i,u,m,x,S){e.cancelPendingCommit=null;do ls();while(Ze!==0);if((Ne&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(u=t.lanes|t.childLanes,u|=xr,Tp(e,a,u,m,x,S),e===De&&(he=De=null,ge=0),Gn=t,Aa=e,ca=a,To=u,wo=i,Ad=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Pg(si,function(){return Kd(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=_.T,_.T=null,i=k.p,k.p=2,m=Ne,Ne|=4;try{Gg(e,t,a)}finally{Ne=m,k.p=i,_.T=n}}Ze=1,kd(),Vd(),Xd()}}function kd(){if(Ze===1){Ze=0;var e=Aa,t=Gn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=_.T,_.T=null;var n=k.p;k.p=2;var i=Ne;Ne|=4;try{Nd(t,e);var u=Vo,m=Tc(e.containerInfo),x=u.focusedElem,S=u.selectionRange;if(m!==x&&x&&x.ownerDocument&&Rc(x.ownerDocument.documentElement,x)){if(S!==null&&mr(x)){var D=S.start,H=S.end;if(H===void 0&&(H=D),"selectionStart"in x)x.selectionStart=D,x.selectionEnd=Math.min(H,x.value.length);else{var Y=x.ownerDocument||document,L=Y&&Y.defaultView||window;if(L.getSelection){var U=L.getSelection(),W=x.textContent.length,ie=Math.min(S.start,W),Ae=S.end===void 0?ie:Math.min(S.end,W);!U.extend&&ie>Ae&&(m=Ae,Ae=ie,ie=m);var w=Cc(x,ie),C=Cc(x,Ae);if(w&&C&&(U.rangeCount!==1||U.anchorNode!==w.node||U.anchorOffset!==w.offset||U.focusNode!==C.node||U.focusOffset!==C.offset)){var z=Y.createRange();z.setStart(w.node,w.offset),U.removeAllRanges(),ie>Ae?(U.addRange(z),U.extend(C.node,C.offset)):(z.setEnd(C.node,C.offset),U.addRange(z))}}}}for(Y=[],U=x;U=U.parentNode;)U.nodeType===1&&Y.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<Y.length;x++){var q=Y[x];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}gs=!!ko,Vo=ko=null}finally{Ne=i,k.p=n,_.T=a}}e.current=t,Ze=2}}function Vd(){if(Ze===2){Ze=0;var e=Aa,t=Gn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=_.T,_.T=null;var n=k.p;k.p=2;var i=Ne;Ne|=4;try{vd(e,t.alternate,t)}finally{Ne=i,k.p=n,_.T=a}}Ze=3}}function Xd(){if(Ze===4||Ze===3){Ze=0,xp();var e=Aa,t=Gn,a=ca,n=Ad;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ze=5:(Ze=0,Gn=Aa=null,Qd(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Oa=null),$s(a),t=t.stateNode,ht&&typeof ht.onCommitFiberRoot=="function")try{ht.onCommitFiberRoot(tl,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=_.T,i=k.p,k.p=2,_.T=null;try{for(var u=e.onRecoverableError,m=0;m<n.length;m++){var x=n[m];u(x.value,{componentStack:x.stack})}}finally{_.T=t,k.p=i}}(ca&3)!==0&&ls(),kt(e),i=e.pendingLanes,(a&261930)!==0&&(i&42)!==0?e===Oo?Ul++:(Ul=0,Oo=e):Ul=0,Hl(0)}}function Qd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,vl(t)))}function ls(){return kd(),Vd(),Xd(),Kd()}function Kd(){if(Ze!==5)return!1;var e=Aa,t=To;To=0;var a=$s(ca),n=_.T,i=k.p;try{k.p=32>a?32:a,_.T=null,a=wo,wo=null;var u=Aa,m=ca;if(Ze=0,Gn=Aa=null,ca=0,(Ne&6)!==0)throw Error(o(331));var x=Ne;if(Ne|=4,Td(u.current),Ed(u,u.current,m,a),Ne=x,Hl(0,!1),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot(tl,u)}catch{}return!0}finally{k.p=i,_.T=n,Qd(e,t)}}function Zd(e,t,a){t=Rt(a,t),t=so(e.stateNode,t,2),e=ja(e,t,2),e!==null&&(nl(e,2),kt(e))}function Re(e,t,a){if(e.tag===3)Zd(e,e,a);else for(;t!==null;){if(t.tag===3){Zd(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Oa===null||!Oa.has(n))){e=Rt(a,e),a=$f(2),n=ja(t,a,2),n!==null&&(Jf(a,n,t,e),nl(n,2),kt(n));break}}t=t.return}}function Do(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new Xg;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(a)||(Eo=!0,i.add(a),e=Jg.bind(null,e,t,a),t.then(e,e))}function Jg(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,De===e&&(ge&a)===a&&(qe===4||qe===3&&(ge&62914560)===ge&&300>mt()-Pi?(Ne&2)===0&&kn(e,0):Co|=a,Yn===ge&&(Yn=0)),kt(e)}function $d(e,t){t===0&&(t=Gu()),e=Za(e,t),e!==null&&(nl(e,t),kt(e))}function Fg(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),$d(e,a)}function Wg(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(a=i.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(o(314))}n!==null&&n.delete(t),$d(e,a)}function Pg(e,t){return Xs(e,t)}var is=null,Xn=null,_o=!1,ss=!1,Lo=!1,Da=0;function kt(e){e!==Xn&&e.next===null&&(Xn===null?is=Xn=e:Xn=Xn.next=e),ss=!0,_o||(_o=!0,ev())}function Hl(e,t){if(!Lo&&ss){Lo=!0;do for(var a=!1,n=is;n!==null;){if(e!==0){var i=n.pendingLanes;if(i===0)var u=0;else{var m=n.suspendedLanes,x=n.pingedLanes;u=(1<<31-pt(42|e)+1)-1,u&=i&~(m&~x),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,Pd(n,u))}else u=ge,u=ci(n,n===De?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(u&3)===0||al(n,u)||(a=!0,Pd(n,u));n=n.next}while(a);Lo=!1}}function Ig(){Jd()}function Jd(){ss=_o=!1;var e=0;Da!==0&&cv()&&(e=Da);for(var t=mt(),a=null,n=is;n!==null;){var i=n.next,u=Fd(n,t);u===0?(n.next=null,a===null?is=i:a.next=i,i===null&&(Xn=a)):(a=n,(e!==0||(u&3)!==0)&&(ss=!0)),n=i}Ze!==0&&Ze!==5||Hl(e),Da!==0&&(Da=0)}function Fd(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var m=31-pt(u),x=1<<m,S=i[m];S===-1?((x&a)===0||(x&n)!==0)&&(i[m]=Rp(x,t)):S<=t&&(e.expiredLanes|=x),u&=~x}if(t=De,a=ge,a=ci(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,a===0||e===t&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&Qs(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||al(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&Qs(n),$s(a)){case 2:case 8:a=qu;break;case 32:a=si;break;case 268435456:a=Yu;break;default:a=si}return n=Wd.bind(null,e),a=Xs(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&Qs(n),e.callbackPriority=2,e.callbackNode=null,2}function Wd(e,t){if(Ze!==0&&Ze!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(ls()&&e.callbackNode!==a)return null;var n=ge;return n=ci(e,e===De?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(Dd(e,n,t),Fd(e,mt()),e.callbackNode!=null&&e.callbackNode===a?Wd.bind(null,e):null)}function Pd(e,t){if(ls())return null;Dd(e,t,!0)}function ev(){dv(function(){(Ne&6)!==0?Xs(Bu,Ig):Jd()})}function Mo(){if(Da===0){var e=On;e===0&&(e=ri,ri<<=1,(ri&261888)===0&&(ri=256)),Da=e}return Da}function Id(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:hi(""+e)}function em(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function tv(e,t,a,n,i){if(t==="submit"&&a&&a.stateNode===i){var u=Id((i[it]||null).action),m=n.submitter;m&&(t=(t=m[it]||null)?Id(t.formAction):m.getAttribute("formAction"),t!==null&&(u=t,m=null));var x=new xi("action","action",null,n,i);e.push({event:x,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Da!==0){var S=m?em(i,m):new FormData(i);eo(a,{pending:!0,data:S,method:i.method,action:u},null,S)}}else typeof u=="function"&&(x.preventDefault(),S=m?em(i,m):new FormData(i),eo(a,{pending:!0,data:S,method:i.method,action:u},u,S))},currentTarget:i}]})}}for(var Uo=0;Uo<vr.length;Uo++){var Ho=vr[Uo],av=Ho.toLowerCase(),nv=Ho[0].toUpperCase()+Ho.slice(1);Mt(av,"on"+nv)}Mt(Ac,"onAnimationEnd"),Mt(zc,"onAnimationIteration"),Mt(Dc,"onAnimationStart"),Mt("dblclick","onDoubleClick"),Mt("focusin","onFocus"),Mt("focusout","onBlur"),Mt(yg,"onTransitionRun"),Mt(bg,"onTransitionStart"),Mt(Sg,"onTransitionCancel"),Mt(_c,"onTransitionEnd"),pn("onMouseEnter",["mouseout","mouseover"]),pn("onMouseLeave",["mouseout","mouseover"]),pn("onPointerEnter",["pointerout","pointerover"]),pn("onPointerLeave",["pointerout","pointerover"]),Va("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Va("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Va("onBeforeInput",["compositionend","keypress","textInput","paste"]),Va("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Va("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Va("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),lv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Bl));function tm(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a],i=n.event;n=n.listeners;e:{var u=void 0;if(t)for(var m=n.length-1;0<=m;m--){var x=n[m],S=x.instance,D=x.currentTarget;if(x=x.listener,S!==u&&i.isPropagationStopped())break e;u=x,i.currentTarget=D;try{u(i)}catch(H){Si(H)}i.currentTarget=null,u=S}else for(m=0;m<n.length;m++){if(x=n[m],S=x.instance,D=x.currentTarget,x=x.listener,S!==u&&i.isPropagationStopped())break e;u=x,i.currentTarget=D;try{u(i)}catch(H){Si(H)}i.currentTarget=null,u=S}}}}function pe(e,t){var a=t[Js];a===void 0&&(a=t[Js]=new Set);var n=e+"__bubble";a.has(n)||(am(t,e,2,!1),a.add(n))}function Bo(e,t,a){var n=0;t&&(n|=4),am(a,e,n,t)}var rs="_reactListening"+Math.random().toString(36).slice(2);function qo(e){if(!e[rs]){e[rs]=!0,$u.forEach(function(a){a!=="selectionchange"&&(lv.has(a)||Bo(a,!1,e),Bo(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[rs]||(t[rs]=!0,Bo("selectionchange",!1,t))}}function am(e,t,a,n){switch(zm(t)){case 2:var i=Dv;break;case 8:i=_v;break;default:i=eu}a=i.bind(null,t,a,e),i=void 0,!lr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,a,{capture:!0,passive:i}):e.addEventListener(t,a,!0):i!==void 0?e.addEventListener(t,a,{passive:i}):e.addEventListener(t,a,!1)}function Yo(e,t,a,n,i){var u=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var m=n.tag;if(m===3||m===4){var x=n.stateNode.containerInfo;if(x===i)break;if(m===4)for(m=n.return;m!==null;){var S=m.tag;if((S===3||S===4)&&m.stateNode.containerInfo===i)return;m=m.return}for(;x!==null;){if(m=dn(x),m===null)return;if(S=m.tag,S===5||S===6||S===26||S===27){n=u=m;continue e}x=x.parentNode}}n=n.return}sc(function(){var D=u,H=ar(a),Y=[];e:{var L=Lc.get(e);if(L!==void 0){var U=xi,W=e;switch(e){case"keypress":if(gi(a)===0)break e;case"keydown":case"keyup":U=Wp;break;case"focusin":W="focus",U=or;break;case"focusout":W="blur",U=or;break;case"beforeblur":case"afterblur":U=or;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=uc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=qp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=eg;break;case Ac:case zc:case Dc:U=kp;break;case _c:U=ag;break;case"scroll":case"scrollend":U=Hp;break;case"wheel":U=lg;break;case"copy":case"cut":case"paste":U=Xp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=fc;break;case"toggle":case"beforetoggle":U=sg}var ie=(t&4)!==0,Ae=!ie&&(e==="scroll"||e==="scrollend"),w=ie?L!==null?L+"Capture":null:L;ie=[];for(var C=D,z;C!==null;){var q=C;if(z=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||z===null||w===null||(q=sl(C,w),q!=null&&ie.push(ql(C,q,z))),Ae)break;C=C.return}0<ie.length&&(L=new U(L,W,null,a,H),Y.push({event:L,listeners:ie}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",L&&a!==tr&&(W=a.relatedTarget||a.fromElement)&&(dn(W)||W[fn]))break e;if((U||L)&&(L=H.window===H?H:(L=H.ownerDocument)?L.defaultView||L.parentWindow:window,U?(W=a.relatedTarget||a.toElement,U=D,W=W?dn(W):null,W!==null&&(Ae=d(W),ie=W.tag,W!==Ae||ie!==5&&ie!==27&&ie!==6)&&(W=null)):(U=null,W=D),U!==W)){if(ie=uc,q="onMouseLeave",w="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(ie=fc,q="onPointerLeave",w="onPointerEnter",C="pointer"),Ae=U==null?L:il(U),z=W==null?L:il(W),L=new ie(q,C+"leave",U,a,H),L.target=Ae,L.relatedTarget=z,q=null,dn(H)===D&&(ie=new ie(w,C+"enter",W,a,H),ie.target=z,ie.relatedTarget=Ae,q=ie),Ae=q,U&&W)t:{for(ie=iv,w=U,C=W,z=0,q=w;q;q=ie(q))z++;q=0;for(var te=C;te;te=ie(te))q++;for(;0<z-q;)w=ie(w),z--;for(;0<q-z;)C=ie(C),q--;for(;z--;){if(w===C||C!==null&&w===C.alternate){ie=w;break t}w=ie(w),C=ie(C)}ie=null}else ie=null;U!==null&&nm(Y,L,U,ie,!1),W!==null&&Ae!==null&&nm(Y,Ae,W,ie,!0)}}e:{if(L=D?il(D):window,U=L.nodeName&&L.nodeName.toLowerCase(),U==="select"||U==="input"&&L.type==="file")var be=yc;else if(vc(L))if(bc)be=gg;else{be=hg;var P=mg}else U=L.nodeName,!U||U.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?D&&er(D.elementType)&&(be=yc):be=pg;if(be&&(be=be(e,D))){xc(Y,be,a,H);break e}P&&P(e,L,D),e==="focusout"&&D&&L.type==="number"&&D.memoizedProps.value!=null&&Is(L,"number",L.value)}switch(P=D?il(D):window,e){case"focusin":(vc(P)||P.contentEditable==="true")&&(Sn=P,hr=D,hl=null);break;case"focusout":hl=hr=Sn=null;break;case"mousedown":pr=!0;break;case"contextmenu":case"mouseup":case"dragend":pr=!1,wc(Y,a,H);break;case"selectionchange":if(xg)break;case"keydown":case"keyup":wc(Y,a,H)}var de;if(cr)e:{switch(e){case"compositionstart":var ve="onCompositionStart";break e;case"compositionend":ve="onCompositionEnd";break e;case"compositionupdate":ve="onCompositionUpdate";break e}ve=void 0}else bn?pc(e,a)&&(ve="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ve="onCompositionStart");ve&&(dc&&a.locale!=="ko"&&(bn||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&bn&&(de=rc()):(ga=H,ir="value"in ga?ga.value:ga.textContent,bn=!0)),P=os(D,ve),0<P.length&&(ve=new cc(ve,e,null,a,H),Y.push({event:ve,listeners:P}),de?ve.data=de:(de=gc(a),de!==null&&(ve.data=de)))),(de=og?ug(e,a):cg(e,a))&&(ve=os(D,"onBeforeInput"),0<ve.length&&(P=new cc("onBeforeInput","beforeinput",null,a,H),Y.push({event:P,listeners:ve}),P.data=de)),tv(Y,e,D,a,H)}tm(Y,t)})}function ql(e,t,a){return{instance:e,listener:t,currentTarget:a}}function os(e,t){for(var a=t+"Capture",n=[];e!==null;){var i=e,u=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||u===null||(i=sl(e,a),i!=null&&n.unshift(ql(e,i,u)),i=sl(e,t),i!=null&&n.push(ql(e,i,u))),e.tag===3)return n;e=e.return}return[]}function iv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function nm(e,t,a,n,i){for(var u=t._reactName,m=[];a!==null&&a!==n;){var x=a,S=x.alternate,D=x.stateNode;if(x=x.tag,S!==null&&S===n)break;x!==5&&x!==26&&x!==27||D===null||(S=D,i?(D=sl(a,u),D!=null&&m.unshift(ql(a,D,S))):i||(D=sl(a,u),D!=null&&m.push(ql(a,D,S)))),a=a.return}m.length!==0&&e.push({event:t,listeners:m})}var sv=/\r\n?/g,rv=/\u0000|\uFFFD/g;function lm(e){return(typeof e=="string"?e:""+e).replace(sv,`
49
+ `).replace(rv,"")}function im(e,t){return t=lm(t),lm(e)===t}function Oe(e,t,a,n,i,u){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||vn(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&vn(e,""+n);break;case"className":di(e,"class",n);break;case"tabIndex":di(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":di(e,a,n);break;case"style":lc(e,n,u);break;case"data":if(t!=="object"){di(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=hi(""+n),e.setAttribute(a,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(a==="formAction"?(t!=="input"&&Oe(e,t,"name",i.name,i,null),Oe(e,t,"formEncType",i.formEncType,i,null),Oe(e,t,"formMethod",i.formMethod,i,null),Oe(e,t,"formTarget",i.formTarget,i,null)):(Oe(e,t,"encType",i.encType,i,null),Oe(e,t,"method",i.method,i,null),Oe(e,t,"target",i.target,i,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=hi(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=Jt);break;case"onScroll":n!=null&&pe("scroll",e);break;case"onScrollEnd":n!=null&&pe("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(o(61));if(a=n.__html,a!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}a=hi(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""+n):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":n===!0?e.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,n):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(a,n):e.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(a):e.setAttribute(a,n);break;case"popover":pe("beforetoggle",e),pe("toggle",e),fi(e,"popover",n);break;case"xlinkActuate":$t(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":$t(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":$t(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":$t(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":$t(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":$t(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":$t(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":$t(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":$t(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":fi(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Mp.get(a)||a,fi(e,a,n))}}function Go(e,t,a,n,i,u){switch(a){case"style":lc(e,n,u);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(o(61));if(a=n.__html,a!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"children":typeof n=="string"?vn(e,n):(typeof n=="number"||typeof n=="bigint")&&vn(e,""+n);break;case"onScroll":n!=null&&pe("scroll",e);break;case"onScrollEnd":n!=null&&pe("scrollend",e);break;case"onClick":n!=null&&(e.onclick=Jt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ju.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(i=a.endsWith("Capture"),t=a.slice(2,i?a.length-7:void 0),u=e[it]||null,u=u!=null?u[a]:null,typeof u=="function"&&e.removeEventListener(t,u,i),typeof n=="function")){typeof u!="function"&&u!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,i);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):fi(e,a,n)}}}function tt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":pe("error",e),pe("load",e);var n=!1,i=!1,u;for(u in a)if(a.hasOwnProperty(u)){var m=a[u];if(m!=null)switch(u){case"src":n=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Oe(e,t,u,m,a,null)}}i&&Oe(e,t,"srcSet",a.srcSet,a,null),n&&Oe(e,t,"src",a.src,a,null);return;case"input":pe("invalid",e);var x=u=m=i=null,S=null,D=null;for(n in a)if(a.hasOwnProperty(n)){var H=a[n];if(H!=null)switch(n){case"name":i=H;break;case"type":m=H;break;case"checked":S=H;break;case"defaultChecked":D=H;break;case"value":u=H;break;case"defaultValue":x=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(o(137,t));break;default:Oe(e,t,n,H,a,null)}}ec(e,u,x,S,D,m,i,!1);return;case"select":pe("invalid",e),n=m=u=null;for(i in a)if(a.hasOwnProperty(i)&&(x=a[i],x!=null))switch(i){case"value":u=x;break;case"defaultValue":m=x;break;case"multiple":n=x;default:Oe(e,t,i,x,a,null)}t=u,a=m,e.multiple=!!n,t!=null?gn(e,!!n,t,!1):a!=null&&gn(e,!!n,a,!0);return;case"textarea":pe("invalid",e),u=i=n=null;for(m in a)if(a.hasOwnProperty(m)&&(x=a[m],x!=null))switch(m){case"value":n=x;break;case"defaultValue":i=x;break;case"children":u=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(o(91));break;default:Oe(e,t,m,x,a,null)}ac(e,n,i,u);return;case"option":for(S in a)if(a.hasOwnProperty(S)&&(n=a[S],n!=null))switch(S){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:Oe(e,t,S,n,a,null)}return;case"dialog":pe("beforetoggle",e),pe("toggle",e),pe("cancel",e),pe("close",e);break;case"iframe":case"object":pe("load",e);break;case"video":case"audio":for(n=0;n<Bl.length;n++)pe(Bl[n],e);break;case"image":pe("error",e),pe("load",e);break;case"details":pe("toggle",e);break;case"embed":case"source":case"link":pe("error",e),pe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(D in a)if(a.hasOwnProperty(D)&&(n=a[D],n!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Oe(e,t,D,n,a,null)}return;default:if(er(t)){for(H in a)a.hasOwnProperty(H)&&(n=a[H],n!==void 0&&Go(e,t,H,n,a,void 0));return}}for(x in a)a.hasOwnProperty(x)&&(n=a[x],n!=null&&Oe(e,t,x,n,a,null))}function ov(e,t,a,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,u=null,m=null,x=null,S=null,D=null,H=null;for(U in a){var Y=a[U];if(a.hasOwnProperty(U)&&Y!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":S=Y;default:n.hasOwnProperty(U)||Oe(e,t,U,null,n,Y)}}for(var L in n){var U=n[L];if(Y=a[L],n.hasOwnProperty(L)&&(U!=null||Y!=null))switch(L){case"type":u=U;break;case"name":i=U;break;case"checked":D=U;break;case"defaultChecked":H=U;break;case"value":m=U;break;case"defaultValue":x=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(o(137,t));break;default:U!==Y&&Oe(e,t,L,U,n,Y)}}Ps(e,m,x,S,D,H,u,i);return;case"select":U=m=x=L=null;for(u in a)if(S=a[u],a.hasOwnProperty(u)&&S!=null)switch(u){case"value":break;case"multiple":U=S;default:n.hasOwnProperty(u)||Oe(e,t,u,null,n,S)}for(i in n)if(u=n[i],S=a[i],n.hasOwnProperty(i)&&(u!=null||S!=null))switch(i){case"value":L=u;break;case"defaultValue":x=u;break;case"multiple":m=u;default:u!==S&&Oe(e,t,i,u,n,S)}t=x,a=m,n=U,L!=null?gn(e,!!a,L,!1):!!n!=!!a&&(t!=null?gn(e,!!a,t,!0):gn(e,!!a,a?[]:"",!1));return;case"textarea":U=L=null;for(x in a)if(i=a[x],a.hasOwnProperty(x)&&i!=null&&!n.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Oe(e,t,x,null,n,i)}for(m in n)if(i=n[m],u=a[m],n.hasOwnProperty(m)&&(i!=null||u!=null))switch(m){case"value":L=i;break;case"defaultValue":U=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(o(91));break;default:i!==u&&Oe(e,t,m,i,n,u)}tc(e,L,U);return;case"option":for(var W in a)if(L=a[W],a.hasOwnProperty(W)&&L!=null&&!n.hasOwnProperty(W))switch(W){case"selected":e.selected=!1;break;default:Oe(e,t,W,null,n,L)}for(S in n)if(L=n[S],U=a[S],n.hasOwnProperty(S)&&L!==U&&(L!=null||U!=null))switch(S){case"selected":e.selected=L&&typeof L!="function"&&typeof L!="symbol";break;default:Oe(e,t,S,L,n,U)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ie in a)L=a[ie],a.hasOwnProperty(ie)&&L!=null&&!n.hasOwnProperty(ie)&&Oe(e,t,ie,null,n,L);for(D in n)if(L=n[D],U=a[D],n.hasOwnProperty(D)&&L!==U&&(L!=null||U!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(o(137,t));break;default:Oe(e,t,D,L,n,U)}return;default:if(er(t)){for(var Ae in a)L=a[Ae],a.hasOwnProperty(Ae)&&L!==void 0&&!n.hasOwnProperty(Ae)&&Go(e,t,Ae,void 0,n,L);for(H in n)L=n[H],U=a[H],!n.hasOwnProperty(H)||L===U||L===void 0&&U===void 0||Go(e,t,H,L,n,U);return}}for(var w in a)L=a[w],a.hasOwnProperty(w)&&L!=null&&!n.hasOwnProperty(w)&&Oe(e,t,w,null,n,L);for(Y in n)L=n[Y],U=a[Y],!n.hasOwnProperty(Y)||L===U||L==null&&U==null||Oe(e,t,Y,L,n,U)}function sm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function uv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var i=a[n],u=i.transferSize,m=i.initiatorType,x=i.duration;if(u&&x&&sm(m)){for(m=0,x=i.responseEnd,n+=1;n<a.length;n++){var S=a[n],D=S.startTime;if(D>x)break;var H=S.transferSize,Y=S.initiatorType;H&&sm(Y)&&(S=S.responseEnd,m+=H*(S<x?1:(x-D)/(S-D)))}if(--n,t+=8*(u+m)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var ko=null,Vo=null;function us(e){return e.nodeType===9?e:e.ownerDocument}function rm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function om(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Xo(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Qo=null;function cv(){var e=window.event;return e&&e.type==="popstate"?e===Qo?!1:(Qo=e,!0):(Qo=null,!1)}var um=typeof setTimeout=="function"?setTimeout:void 0,fv=typeof clearTimeout=="function"?clearTimeout:void 0,cm=typeof Promise=="function"?Promise:void 0,dv=typeof queueMicrotask=="function"?queueMicrotask:typeof cm<"u"?function(e){return cm.resolve(null).then(e).catch(mv)}:um;function mv(e){setTimeout(function(){throw e})}function _a(e){return e==="head"}function fm(e,t){var a=t,n=0;do{var i=a.nextSibling;if(e.removeChild(a),i&&i.nodeType===8)if(a=i.data,a==="/$"||a==="/&"){if(n===0){e.removeChild(i),$n(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")Yl(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Yl(a);for(var u=a.firstChild;u;){var m=u.nextSibling,x=u.nodeName;u[ll]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&u.rel.toLowerCase()==="stylesheet"||a.removeChild(u),u=m}}else a==="body"&&Yl(e.ownerDocument.body);a=i}while(a);$n(t)}function dm(e,t){var a=e;e=0;do{var n=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),n&&n.nodeType===8)if(a=n.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=n}while(a)}function Ko(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Ko(a),Fs(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function hv(e,t,a,n){for(;e.nodeType===1;){var i=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[ll])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=zt(e.nextSibling),e===null)break}return null}function pv(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=zt(e.nextSibling),e===null))return null;return e}function mm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=zt(e.nextSibling),e===null))return null;return e}function Zo(e){return e.data==="$?"||e.data==="$~"}function $o(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function gv(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function zt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Jo=null;function hm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return zt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function pm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function gm(e,t,a){switch(t=us(a),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Yl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Fs(e)}var Dt=new Map,vm=new Set;function cs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var fa=k.d;k.d={f:vv,r:xv,D:yv,C:bv,L:Sv,m:Nv,X:Ev,S:jv,M:Cv};function vv(){var e=fa.f(),t=ts();return e||t}function xv(e){var t=mn(e);t!==null&&t.tag===5&&t.type==="form"?Lf(t):fa.r(e)}var Qn=typeof document>"u"?null:document;function xm(e,t,a){var n=Qn;if(n&&typeof t=="string"&&t){var i=Et(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),vm.has(i)||(vm.add(i),e={rel:e,crossOrigin:a,href:t},n.querySelector(i)===null&&(t=n.createElement("link"),tt(t,"link",e),$e(t),n.head.appendChild(t)))}}function yv(e){fa.D(e),xm("dns-prefetch",e,null)}function bv(e,t){fa.C(e,t),xm("preconnect",e,t)}function Sv(e,t,a){fa.L(e,t,a);var n=Qn;if(n&&e&&t){var i='link[rel="preload"][as="'+Et(t)+'"]';t==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+Et(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+Et(a.imageSizes)+'"]')):i+='[href="'+Et(e)+'"]';var u=i;switch(t){case"style":u=Kn(e);break;case"script":u=Zn(e)}Dt.has(u)||(e=y({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Dt.set(u,e),n.querySelector(i)!==null||t==="style"&&n.querySelector(Gl(u))||t==="script"&&n.querySelector(kl(u))||(t=n.createElement("link"),tt(t,"link",e),$e(t),n.head.appendChild(t)))}}function Nv(e,t){fa.m(e,t);var a=Qn;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Et(n)+'"][href="'+Et(e)+'"]',u=i;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Zn(e)}if(!Dt.has(u)&&(e=y({rel:"modulepreload",href:e},t),Dt.set(u,e),a.querySelector(i)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(kl(u)))return}n=a.createElement("link"),tt(n,"link",e),$e(n),a.head.appendChild(n)}}}function jv(e,t,a){fa.S(e,t,a);var n=Qn;if(n&&e){var i=hn(n).hoistableStyles,u=Kn(e);t=t||"default";var m=i.get(u);if(!m){var x={loading:0,preload:null};if(m=n.querySelector(Gl(u)))x.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Dt.get(u))&&Fo(e,a);var S=m=n.createElement("link");$e(S),tt(S,"link",e),S._p=new Promise(function(D,H){S.onload=D,S.onerror=H}),S.addEventListener("load",function(){x.loading|=1}),S.addEventListener("error",function(){x.loading|=2}),x.loading|=4,fs(m,t,n)}m={type:"stylesheet",instance:m,count:1,state:x},i.set(u,m)}}}function Ev(e,t){fa.X(e,t);var a=Qn;if(a&&e){var n=hn(a).hoistableScripts,i=Zn(e),u=n.get(i);u||(u=a.querySelector(kl(i)),u||(e=y({src:e,async:!0},t),(t=Dt.get(i))&&Wo(e,t),u=a.createElement("script"),$e(u),tt(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(i,u))}}function Cv(e,t){fa.M(e,t);var a=Qn;if(a&&e){var n=hn(a).hoistableScripts,i=Zn(e),u=n.get(i);u||(u=a.querySelector(kl(i)),u||(e=y({src:e,async:!0,type:"module"},t),(t=Dt.get(i))&&Wo(e,t),u=a.createElement("script"),$e(u),tt(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(i,u))}}function ym(e,t,a,n){var i=(i=me.current)?cs(i):null;if(!i)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Kn(a.href),a=hn(i).hoistableStyles,n=a.get(t),n||(n={type:"style",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Kn(a.href);var u=hn(i).hoistableStyles,m=u.get(e);if(m||(i=i.ownerDocument||i,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,m),(u=i.querySelector(Gl(e)))&&!u._p&&(m.instance=u,m.state.loading=5),Dt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Dt.set(e,a),u||Rv(i,e,a,m.state))),t&&n===null)throw Error(o(528,""));return m}if(t&&n!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Zn(a),a=hn(i).hoistableScripts,n=a.get(t),n||(n={type:"script",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Kn(e){return'href="'+Et(e)+'"'}function Gl(e){return'link[rel="stylesheet"]['+e+"]"}function bm(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function Rv(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),tt(t,"link",a),$e(t),e.head.appendChild(t))}function Zn(e){return'[src="'+Et(e)+'"]'}function kl(e){return"script[async]"+e}function Sm(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Et(a.href)+'"]');if(n)return t.instance=n,$e(n),n;var i=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),$e(n),tt(n,"style",i),fs(n,a.precedence,e),t.instance=n;case"stylesheet":i=Kn(a.href);var u=e.querySelector(Gl(i));if(u)return t.state.loading|=4,t.instance=u,$e(u),u;n=bm(a),(i=Dt.get(i))&&Fo(n,i),u=(e.ownerDocument||e).createElement("link"),$e(u);var m=u;return m._p=new Promise(function(x,S){m.onload=x,m.onerror=S}),tt(u,"link",n),t.state.loading|=4,fs(u,a.precedence,e),t.instance=u;case"script":return u=Zn(a.src),(i=e.querySelector(kl(u)))?(t.instance=i,$e(i),i):(n=a,(i=Dt.get(u))&&(n=y({},a),Wo(n,i)),e=e.ownerDocument||e,i=e.createElement("script"),$e(i),tt(i,"link",n),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,fs(n,a.precedence,e));return t.instance}function fs(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=n.length?n[n.length-1]:null,u=i,m=0;m<n.length;m++){var x=n[m];if(x.dataset.precedence===t)u=x;else if(u!==i)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Fo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Wo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ds=null;function Nm(e,t,a){if(ds===null){var n=new Map,i=ds=new Map;i.set(a,n)}else i=ds,n=i.get(a),n||(n=new Map,i.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),i=0;i<a.length;i++){var u=a[i];if(!(u[ll]||u[We]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var m=u.getAttribute(t)||"";m=e+m;var x=n.get(m);x?x.push(u):n.set(m,[u])}}return n}function jm(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Tv(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Em(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function wv(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var i=Kn(n.href),u=t.querySelector(Gl(i));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ms.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=u,$e(u);return}u=t.ownerDocument||t,n=bm(n),(i=Dt.get(i))&&Fo(n,i),u=u.createElement("link"),$e(u);var m=u;m._p=new Promise(function(x,S){m.onload=x,m.onerror=S}),tt(u,"link",n),a.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=ms.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Po=0;function Ov(e,t){return e.stylesheets&&e.count===0&&ps(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&ps(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Po===0&&(Po=62500*uv());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ps(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Po?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(i)}}:null}function ms(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ps(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var hs=null;function ps(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,hs=new Map,t.forEach(Av,e),hs=null,ms.call(e))}function Av(e,t){if(!(t.state.loading&4)){var a=hs.get(e);if(a)var n=a.get(null);else{a=new Map,hs.set(e,a);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<i.length;u++){var m=i[u];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(a.set(m.dataset.precedence,m),n=m)}n&&a.set(null,n)}i=t.instance,m=i.getAttribute("data-precedence"),u=a.get(m)||n,u===n&&a.set(null,i),a.set(m,i),this.count++,n=ms.bind(this),i.addEventListener("load",n),i.addEventListener("error",n),u?u.parentNode.insertBefore(i,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Vl={$$typeof:$,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function zv(e,t,a,n,i,u,m,x,S){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ks(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ks(0),this.hiddenUpdates=Ks(null),this.identifierPrefix=n,this.onUncaughtError=i,this.onCaughtError=u,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function Cm(e,t,a,n,i,u,m,x,S,D,H,Y){return e=new zv(e,t,a,m,S,D,H,Y,x),t=1,u===!0&&(t|=24),u=vt(3,null,null,t),e.current=u,u.stateNode=e,t=Ar(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:n,isDehydrated:a,cache:t},Lr(u),e}function Rm(e){return e?(e=En,e):En}function Tm(e,t,a,n,i,u){i=Rm(i),n.context===null?n.context=i:n.pendingContext=i,n=Na(t),n.payload={element:a},u=u===void 0?null:u,u!==null&&(n.callback=u),a=ja(e,n,t),a!==null&&(ft(a,e,t),Sl(a,e,t))}function wm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Io(e,t){wm(e,t),(e=e.alternate)&&wm(e,t)}function Om(e){if(e.tag===13||e.tag===31){var t=Za(e,67108864);t!==null&&ft(t,e,67108864),Io(e,67108864)}}function Am(e){if(e.tag===13||e.tag===31){var t=Nt();t=Zs(t);var a=Za(e,t);a!==null&&ft(a,e,t),Io(e,t)}}var gs=!0;function Dv(e,t,a,n){var i=_.T;_.T=null;var u=k.p;try{k.p=2,eu(e,t,a,n)}finally{k.p=u,_.T=i}}function _v(e,t,a,n){var i=_.T;_.T=null;var u=k.p;try{k.p=8,eu(e,t,a,n)}finally{k.p=u,_.T=i}}function eu(e,t,a,n){if(gs){var i=tu(n);if(i===null)Yo(e,t,n,vs,a),Dm(e,n);else if(Mv(i,e,t,a,n))n.stopPropagation();else if(Dm(e,n),t&4&&-1<Lv.indexOf(e)){for(;i!==null;){var u=mn(i);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var m=ka(u.pendingLanes);if(m!==0){var x=u;for(x.pendingLanes|=2,x.entangledLanes|=2;m;){var S=1<<31-pt(m);x.entanglements[1]|=S,m&=~S}kt(u),(Ne&6)===0&&(Ii=mt()+500,Hl(0))}}break;case 31:case 13:x=Za(u,2),x!==null&&ft(x,u,2),ts(),Io(u,2)}if(u=tu(n),u===null&&Yo(e,t,n,vs,a),u===i)break;i=u}i!==null&&n.stopPropagation()}else Yo(e,t,n,null,a)}}function tu(e){return e=ar(e),au(e)}var vs=null;function au(e){if(vs=null,e=dn(e),e!==null){var t=d(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=h(t),e!==null)return e;e=null}else if(a===31){if(e=g(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return vs=e,null}function zm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(yp()){case Bu:return 2;case qu:return 8;case si:case bp:return 32;case Yu:return 268435456;default:return 32}default:return 32}}var nu=!1,La=null,Ma=null,Ua=null,Xl=new Map,Ql=new Map,Ha=[],Lv="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Dm(e,t){switch(e){case"focusin":case"focusout":La=null;break;case"dragenter":case"dragleave":Ma=null;break;case"mouseover":case"mouseout":Ua=null;break;case"pointerover":case"pointerout":Xl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ql.delete(t.pointerId)}}function Kl(e,t,a,n,i,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:u,targetContainers:[i]},t!==null&&(t=mn(t),t!==null&&Om(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Mv(e,t,a,n,i){switch(t){case"focusin":return La=Kl(La,e,t,a,n,i),!0;case"dragenter":return Ma=Kl(Ma,e,t,a,n,i),!0;case"mouseover":return Ua=Kl(Ua,e,t,a,n,i),!0;case"pointerover":var u=i.pointerId;return Xl.set(u,Kl(Xl.get(u)||null,e,t,a,n,i)),!0;case"gotpointercapture":return u=i.pointerId,Ql.set(u,Kl(Ql.get(u)||null,e,t,a,n,i)),!0}return!1}function _m(e){var t=dn(e.target);if(t!==null){var a=d(t);if(a!==null){if(t=a.tag,t===13){if(t=h(a),t!==null){e.blockedOn=t,Ku(e.priority,function(){Am(a)});return}}else if(t===31){if(t=g(a),t!==null){e.blockedOn=t,Ku(e.priority,function(){Am(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function xs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=tu(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);tr=n,a.target.dispatchEvent(n),tr=null}else return t=mn(a),t!==null&&Om(t),e.blockedOn=a,!1;t.shift()}return!0}function Lm(e,t,a){xs(e)&&a.delete(t)}function Uv(){nu=!1,La!==null&&xs(La)&&(La=null),Ma!==null&&xs(Ma)&&(Ma=null),Ua!==null&&xs(Ua)&&(Ua=null),Xl.forEach(Lm),Ql.forEach(Lm)}function ys(e,t){e.blockedOn===t&&(e.blockedOn=null,nu||(nu=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,Uv)))}var bs=null;function Mm(e){bs!==e&&(bs=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){bs===e&&(bs=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],i=e[t+2];if(typeof n!="function"){if(au(n||a)===null)continue;break}var u=mn(a);u!==null&&(e.splice(t,3),t-=3,eo(u,{pending:!0,data:i,method:a.method,action:n},n,i))}}))}function $n(e){function t(S){return ys(S,e)}La!==null&&ys(La,e),Ma!==null&&ys(Ma,e),Ua!==null&&ys(Ua,e),Xl.forEach(t),Ql.forEach(t);for(var a=0;a<Ha.length;a++){var n=Ha[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Ha.length&&(a=Ha[0],a.blockedOn===null);)_m(a),a.blockedOn===null&&Ha.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var i=a[n],u=a[n+1],m=i[it]||null;if(typeof u=="function")m||Mm(a);else if(m){var x=null;if(u&&u.hasAttribute("formAction")){if(i=u,m=u[it]||null)x=m.formAction;else if(au(i)!==null)continue}else x=m.action;typeof x=="function"?a[n+1]=x:(a.splice(n,3),n-=3),Mm(a)}}}function Um(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(m){return i=m})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function lu(e){this._internalRoot=e}Ss.prototype.render=lu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,n=Nt();Tm(a,n,e,t,null,null)},Ss.prototype.unmount=lu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Tm(e.current,2,null,e,null,null),ts(),t[fn]=null}};function Ss(e){this._internalRoot=e}Ss.prototype.unstable_scheduleHydration=function(e){if(e){var t=Qu();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ha.length&&t!==0&&t<Ha[a].priority;a++);Ha.splice(a,0,e),a===0&&_m(e)}};var Hm=l.version;if(Hm!=="19.2.4")throw Error(o(527,Hm,"19.2.4"));k.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=p(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var Hv={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ns=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ns.isDisabled&&Ns.supportsFiber)try{tl=Ns.inject(Hv),ht=Ns}catch{}}return $l.createRoot=function(e,t){if(!f(e))throw Error(o(299));var a=!1,n="",i=Xf,u=Qf,m=Kf;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=Cm(e,1,!1,null,null,a,n,null,i,u,m,Um),e[fn]=t.current,qo(e),new lu(t)},$l.hydrateRoot=function(e,t,a){if(!f(e))throw Error(o(299));var n=!1,i="",u=Xf,m=Qf,x=Kf,S=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(i=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(x=a.onRecoverableError),a.formState!==void 0&&(S=a.formState)),t=Cm(e,1,!0,t,a??null,n,i,S,u,m,x,Um),t.context=Rm(null),a=t.current,n=Nt(),n=Zs(n),i=Na(n),i.callback=null,ja(a,i,n),a=n,t.current.lanes=a,nl(t,a),kt(t),e[fn]=t.current,qo(e),new Ss(t)},$l.version="19.2.4",$l}var Zm;function Zv(){if(Zm)return ru.exports;Zm=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(l){console.error(l)}}return s(),ru.exports=Kv(),ru.exports}var $v=Zv(),fu={};const oe=s=>typeof s=="string",Jl=()=>{let s,l;const r=new Promise((o,f)=>{s=o,l=f});return r.resolve=s,r.reject=l,r},$m=s=>s==null?"":""+s,Jv=(s,l,r)=>{s.forEach(o=>{l[o]&&(r[o]=l[o])})},Fv=/###/g,Jm=s=>s&&s.indexOf("###")>-1?s.replace(Fv,"."):s,Fm=s=>!s||oe(s),Wl=(s,l,r)=>{const o=oe(l)?l.split("."):l;let f=0;for(;f<o.length-1;){if(Fm(s))return{};const d=Jm(o[f]);!s[d]&&r&&(s[d]=new r),Object.prototype.hasOwnProperty.call(s,d)?s=s[d]:s={},++f}return Fm(s)?{}:{obj:s,k:Jm(o[f])}},Wm=(s,l,r)=>{const{obj:o,k:f}=Wl(s,l,Object);if(o!==void 0||l.length===1){o[f]=r;return}let d=l[l.length-1],h=l.slice(0,l.length-1),g=Wl(s,h,Object);for(;g.obj===void 0&&h.length;)d=`${h[h.length-1]}.${d}`,h=h.slice(0,h.length-1),g=Wl(s,h,Object),g!=null&&g.obj&&typeof g.obj[`${g.k}.${d}`]<"u"&&(g.obj=void 0);g.obj[`${g.k}.${d}`]=r},Wv=(s,l,r,o)=>{const{obj:f,k:d}=Wl(s,l,Object);f[d]=f[d]||[],f[d].push(r)},Os=(s,l)=>{const{obj:r,k:o}=Wl(s,l);if(r&&Object.prototype.hasOwnProperty.call(r,o))return r[o]},Pv=(s,l,r)=>{const o=Os(s,r);return o!==void 0?o:Os(l,r)},Uh=(s,l,r)=>{for(const o in l)o!=="__proto__"&&o!=="constructor"&&(o in s?oe(s[o])||s[o]instanceof String||oe(l[o])||l[o]instanceof String?r&&(s[o]=l[o]):Uh(s[o],l[o],r):s[o]=l[o]);return s},rn=s=>s.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Iv={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const ex=s=>oe(s)?s.replace(/[&<>"'\/]/g,l=>Iv[l]):s;class tx{constructor(l){this.capacity=l,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(l){const r=this.regExpMap.get(l);if(r!==void 0)return r;const o=new RegExp(l);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(l,o),this.regExpQueue.push(l),o}}const ax=[" ",",","?","!",";"],nx=new tx(20),lx=(s,l,r)=>{l=l||"",r=r||"";const o=ax.filter(h=>l.indexOf(h)<0&&r.indexOf(h)<0);if(o.length===0)return!0;const f=nx.getRegExp(`(${o.map(h=>h==="?"?"\\?":h).join("|")})`);let d=!f.test(s);if(!d){const h=s.indexOf(r);h>0&&!f.test(s.substring(0,h))&&(d=!0)}return d},Nu=(s,l,r=".")=>{if(!s)return;if(s[l])return Object.prototype.hasOwnProperty.call(s,l)?s[l]:void 0;const o=l.split(r);let f=s;for(let d=0;d<o.length;){if(!f||typeof f!="object")return;let h,g="";for(let v=d;v<o.length;++v)if(v!==d&&(g+=r),g+=o[v],h=f[g],h!==void 0){if(["string","number","boolean"].indexOf(typeof h)>-1&&v<o.length-1)continue;d+=v-d+1;break}f=h}return f},Il=s=>s==null?void 0:s.replace(/_/g,"-"),ix={type:"logger",log(s){this.output("log",s)},warn(s){this.output("warn",s)},error(s){this.output("error",s)},output(s,l){var r,o;(o=(r=console==null?void 0:console[s])==null?void 0:r.apply)==null||o.call(r,console,l)}};class As{constructor(l,r={}){this.init(l,r)}init(l,r={}){this.prefix=r.prefix||"i18next:",this.logger=l||ix,this.options=r,this.debug=r.debug}log(...l){return this.forward(l,"log","",!0)}warn(...l){return this.forward(l,"warn","",!0)}error(...l){return this.forward(l,"error","")}deprecate(...l){return this.forward(l,"warn","WARNING DEPRECATED: ",!0)}forward(l,r,o,f){return f&&!this.debug?null:(oe(l[0])&&(l[0]=`${o}${this.prefix} ${l[0]}`),this.logger[r](l))}create(l){return new As(this.logger,{prefix:`${this.prefix}:${l}:`,...this.options})}clone(l){return l=l||this.options,l.prefix=l.prefix||this.prefix,new As(this.logger,l)}}var Qt=new As;class Ms{constructor(){this.observers={}}on(l,r){return l.split(" ").forEach(o=>{this.observers[o]||(this.observers[o]=new Map);const f=this.observers[o].get(r)||0;this.observers[o].set(r,f+1)}),this}off(l,r){if(this.observers[l]){if(!r){delete this.observers[l];return}this.observers[l].delete(r)}}emit(l,...r){this.observers[l]&&Array.from(this.observers[l].entries()).forEach(([f,d])=>{for(let h=0;h<d;h++)f(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([f,d])=>{for(let h=0;h<d;h++)f.apply(f,[l,...r])})}}class Pm extends Ms{constructor(l,r={ns:["translation"],defaultNS:"translation"}){super(),this.data=l||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(l){this.options.ns.indexOf(l)<0&&this.options.ns.push(l)}removeNamespaces(l){const r=this.options.ns.indexOf(l);r>-1&&this.options.ns.splice(r,1)}getResource(l,r,o,f={}){var p,b;const d=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator,h=f.ignoreJSONStructure!==void 0?f.ignoreJSONStructure:this.options.ignoreJSONStructure;let g;l.indexOf(".")>-1?g=l.split("."):(g=[l,r],o&&(Array.isArray(o)?g.push(...o):oe(o)&&d?g.push(...o.split(d)):g.push(o)));const v=Os(this.data,g);return!v&&!r&&!o&&l.indexOf(".")>-1&&(l=g[0],r=g[1],o=g.slice(2).join(".")),v||!h||!oe(o)?v:Nu((b=(p=this.data)==null?void 0:p[l])==null?void 0:b[r],o,d)}addResource(l,r,o,f,d={silent:!1}){const h=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator;let g=[l,r];o&&(g=g.concat(h?o.split(h):o)),l.indexOf(".")>-1&&(g=l.split("."),f=r,r=g[1]),this.addNamespaces(r),Wm(this.data,g,f),d.silent||this.emit("added",l,r,o,f)}addResources(l,r,o,f={silent:!1}){for(const d in o)(oe(o[d])||Array.isArray(o[d]))&&this.addResource(l,r,d,o[d],{silent:!0});f.silent||this.emit("added",l,r,o)}addResourceBundle(l,r,o,f,d,h={silent:!1,skipCopy:!1}){let g=[l,r];l.indexOf(".")>-1&&(g=l.split("."),f=o,o=r,r=g[1]),this.addNamespaces(r);let v=Os(this.data,g)||{};h.skipCopy||(o=JSON.parse(JSON.stringify(o))),f?Uh(v,o,d):v={...v,...o},Wm(this.data,g,v),h.silent||this.emit("added",l,r,o)}removeResourceBundle(l,r){this.hasResourceBundle(l,r)&&delete this.data[l][r],this.removeNamespaces(r),this.emit("removed",l,r)}hasResourceBundle(l,r){return this.getResource(l,r)!==void 0}getResourceBundle(l,r){return r||(r=this.options.defaultNS),this.getResource(l,r)}getDataByLanguage(l){return this.data[l]}hasLanguageSomeTranslations(l){const r=this.getDataByLanguage(l);return!!(r&&Object.keys(r)||[]).find(f=>r[f]&&Object.keys(r[f]).length>0)}toJSON(){return this.data}}var Hh={processors:{},addPostProcessor(s){this.processors[s.name]=s},handle(s,l,r,o,f){return s.forEach(d=>{var h;l=((h=this.processors[d])==null?void 0:h.process(l,r,o,f))??l}),l}};const Bh=Symbol("i18next/PATH_KEY");function sx(){const s=[],l=Object.create(null);let r;return l.get=(o,f)=>{var d;return(d=r==null?void 0:r.revoke)==null||d.call(r),f===Bh?s:(s.push(f),r=Proxy.revocable(o,l),r.proxy)},Proxy.revocable(Object.create(null),l).proxy}function Wn(s,l){const{[Bh]:r}=s(sx()),o=(l==null?void 0:l.keySeparator)??".",f=(l==null?void 0:l.nsSeparator)??":";if(r.length>1&&f){const d=l==null?void 0:l.ns,h=Array.isArray(d)?d:null;if(h&&h.length>1&&h.slice(1).includes(r[0]))return`${r[0]}${f}${r.slice(1).join(o)}`}return r.join(o)}const Im={},du=s=>!oe(s)&&typeof s!="boolean"&&typeof s!="number";class zs extends Ms{constructor(l,r={}){super(),Jv(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],l,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Qt.create("translator")}changeLanguage(l){l&&(this.language=l)}exists(l,r={interpolation:{}}){const o={...r};if(l==null)return!1;const f=this.resolve(l,o);if((f==null?void 0:f.res)===void 0)return!1;const d=du(f.res);return!(o.returnObjects===!1&&d)}extractFromKey(l,r){let o=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");const f=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let d=r.ns||this.options.defaultNS||[];const h=o&&l.indexOf(o)>-1,g=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!lx(l,o,f);if(h&&!g){const v=l.match(this.interpolator.nestingRegexp);if(v&&v.length>0)return{key:l,namespaces:oe(d)?[d]:d};const p=l.split(o);(o!==f||o===f&&this.options.ns.indexOf(p[0])>-1)&&(d=p.shift()),l=p.join(f)}return{key:l,namespaces:oe(d)?[d]:d}}translate(l,r,o){let f=typeof r=="object"?{...r}:r;if(typeof f!="object"&&this.options.overloadTranslationOptionHandler&&(f=this.options.overloadTranslationOptionHandler(arguments)),typeof f=="object"&&(f={...f}),f||(f={}),l==null)return"";typeof l=="function"&&(l=Wn(l,{...this.options,...f})),Array.isArray(l)||(l=[String(l)]),l=l.map(se=>typeof se=="function"?Wn(se,{...this.options,...f}):String(se));const d=f.returnDetails!==void 0?f.returnDetails:this.options.returnDetails,h=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator,{key:g,namespaces:v}=this.extractFromKey(l[l.length-1],f),p=v[v.length-1];let b=f.nsSeparator!==void 0?f.nsSeparator:this.options.nsSeparator;b===void 0&&(b=":");const y=f.lng||this.language,E=f.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((y==null?void 0:y.toLowerCase())==="cimode")return E?d?{res:`${p}${b}${g}`,usedKey:g,exactUsedKey:g,usedLng:y,usedNS:p,usedParams:this.getUsedParamsDetails(f)}:`${p}${b}${g}`:d?{res:g,usedKey:g,exactUsedKey:g,usedLng:y,usedNS:p,usedParams:this.getUsedParamsDetails(f)}:g;const O=this.resolve(l,f);let T=O==null?void 0:O.res;const R=(O==null?void 0:O.usedKey)||g,A=(O==null?void 0:O.exactUsedKey)||g,M=["[object Number]","[object Function]","[object RegExp]"],K=f.joinArrays!==void 0?f.joinArrays:this.options.joinArrays,$=!this.i18nFormat||this.i18nFormat.handleAsObject,J=f.count!==void 0&&!oe(f.count),I=zs.hasDefaultValue(f),X=J?this.pluralResolver.getSuffix(y,f.count,f):"",V=f.ordinal&&J?this.pluralResolver.getSuffix(y,f.count,{ordinal:!1}):"",ne=J&&!f.ordinal&&f.count===0,Q=ne&&f[`defaultValue${this.options.pluralSeparator}zero`]||f[`defaultValue${X}`]||f[`defaultValue${V}`]||f.defaultValue;let le=T;$&&!T&&I&&(le=Q);const Me=du(le),ae=Object.prototype.toString.apply(le);if($&&le&&Me&&M.indexOf(ae)<0&&!(oe(K)&&Array.isArray(le))){if(!f.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const se=this.options.returnedObjectHandler?this.options.returnedObjectHandler(R,le,{...f,ns:v}):`key '${g} (${this.language})' returned an object instead of string.`;return d?(O.res=se,O.usedParams=this.getUsedParamsDetails(f),O):se}if(h){const se=Array.isArray(le),re=se?[]:{},G=se?A:R;for(const _ in le)if(Object.prototype.hasOwnProperty.call(le,_)){const k=`${G}${h}${_}`;I&&!T?re[_]=this.translate(k,{...f,defaultValue:du(Q)?Q[_]:void 0,joinArrays:!1,ns:v}):re[_]=this.translate(k,{...f,joinArrays:!1,ns:v}),re[_]===k&&(re[_]=le[_])}T=re}}else if($&&oe(K)&&Array.isArray(T))T=T.join(K),T&&(T=this.extendTranslation(T,l,f,o));else{let se=!1,re=!1;!this.isValidLookup(T)&&I&&(se=!0,T=Q),this.isValidLookup(T)||(re=!0,T=g);const _=(f.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&re?void 0:T,k=I&&Q!==T&&this.options.updateMissing;if(re||se||k){if(this.logger.log(k?"updateKey":"missingKey",y,p,g,k?Q:T),h){const j=this.resolve(g,{...f,keySeparator:!1});j&&j.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let ee=[];const xe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,f.lng||this.language);if(this.options.saveMissingTo==="fallback"&&xe&&xe[0])for(let j=0;j<xe.length;j++)ee.push(xe[j]);else this.options.saveMissingTo==="all"?ee=this.languageUtils.toResolveHierarchy(f.lng||this.language):ee.push(f.lng||this.language);const je=(j,B,Z)=>{var ue;const F=I&&Z!==T?Z:_;this.options.missingKeyHandler?this.options.missingKeyHandler(j,p,B,F,k,f):(ue=this.backendConnector)!=null&&ue.saveMissing&&this.backendConnector.saveMissing(j,p,B,F,k,f),this.emit("missingKey",j,p,B,T)};this.options.saveMissing&&(this.options.saveMissingPlurals&&J?ee.forEach(j=>{const B=this.pluralResolver.getSuffixes(j,f);ne&&f[`defaultValue${this.options.pluralSeparator}zero`]&&B.indexOf(`${this.options.pluralSeparator}zero`)<0&&B.push(`${this.options.pluralSeparator}zero`),B.forEach(Z=>{je([j],g+Z,f[`defaultValue${Z}`]||Q)})}):je(ee,g,Q))}T=this.extendTranslation(T,l,f,O,o),re&&T===g&&this.options.appendNamespaceToMissingKey&&(T=`${p}${b}${g}`),(re||se)&&this.options.parseMissingKeyHandler&&(T=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${p}${b}${g}`:g,se?T:void 0,f))}return d?(O.res=T,O.usedParams=this.getUsedParamsDetails(f),O):T}extendTranslation(l,r,o,f,d){var v,p;if((v=this.i18nFormat)!=null&&v.parse)l=this.i18nFormat.parse(l,{...this.options.interpolation.defaultVariables,...o},o.lng||this.language||f.usedLng,f.usedNS,f.usedKey,{resolved:f});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init({...o,interpolation:{...this.options.interpolation,...o.interpolation}});const b=oe(l)&&(((p=o==null?void 0:o.interpolation)==null?void 0:p.skipOnVariables)!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let y;if(b){const O=l.match(this.interpolator.nestingRegexp);y=O&&O.length}let E=o.replace&&!oe(o.replace)?o.replace:o;if(this.options.interpolation.defaultVariables&&(E={...this.options.interpolation.defaultVariables,...E}),l=this.interpolator.interpolate(l,E,o.lng||this.language||f.usedLng,o),b){const O=l.match(this.interpolator.nestingRegexp),T=O&&O.length;y<T&&(o.nest=!1)}!o.lng&&f&&f.res&&(o.lng=this.language||f.usedLng),o.nest!==!1&&(l=this.interpolator.nest(l,(...O)=>(d==null?void 0:d[0])===O[0]&&!o.context?(this.logger.warn(`It seems you are nesting recursively key: ${O[0]} in key: ${r[0]}`),null):this.translate(...O,r),o)),o.interpolation&&this.interpolator.reset()}const h=o.postProcess||this.options.postProcess,g=oe(h)?[h]:h;return l!=null&&(g!=null&&g.length)&&o.applyPostProcessor!==!1&&(l=Hh.handle(g,l,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...f,usedParams:this.getUsedParamsDetails(o)},...o}:o,this)),l}resolve(l,r={}){let o,f,d,h,g;return oe(l)&&(l=[l]),Array.isArray(l)&&(l=l.map(v=>typeof v=="function"?Wn(v,{...this.options,...r}):v)),l.forEach(v=>{if(this.isValidLookup(o))return;const p=this.extractFromKey(v,r),b=p.key;f=b;let y=p.namespaces;this.options.fallbackNS&&(y=y.concat(this.options.fallbackNS));const E=r.count!==void 0&&!oe(r.count),O=E&&!r.ordinal&&r.count===0,T=r.context!==void 0&&(oe(r.context)||typeof r.context=="number")&&r.context!=="",R=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);y.forEach(A=>{var M,K;this.isValidLookup(o)||(g=A,!Im[`${R[0]}-${A}`]&&((M=this.utils)!=null&&M.hasLoadedNamespace)&&!((K=this.utils)!=null&&K.hasLoadedNamespace(g))&&(Im[`${R[0]}-${A}`]=!0,this.logger.warn(`key "${f}" for languages "${R.join(", ")}" won't get resolved as namespace "${g}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),R.forEach($=>{var X;if(this.isValidLookup(o))return;h=$;const J=[b];if((X=this.i18nFormat)!=null&&X.addLookupKeys)this.i18nFormat.addLookupKeys(J,b,$,A,r);else{let V;E&&(V=this.pluralResolver.getSuffix($,r.count,r));const ne=`${this.options.pluralSeparator}zero`,Q=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(E&&(r.ordinal&&V.indexOf(Q)===0&&J.push(b+V.replace(Q,this.options.pluralSeparator)),J.push(b+V),O&&J.push(b+ne)),T){const le=`${b}${this.options.contextSeparator||"_"}${r.context}`;J.push(le),E&&(r.ordinal&&V.indexOf(Q)===0&&J.push(le+V.replace(Q,this.options.pluralSeparator)),J.push(le+V),O&&J.push(le+ne))}}let I;for(;I=J.pop();)this.isValidLookup(o)||(d=I,o=this.getResource($,A,I,r))}))})}),{res:o,usedKey:f,exactUsedKey:d,usedLng:h,usedNS:g}}isValidLookup(l){return l!==void 0&&!(!this.options.returnNull&&l===null)&&!(!this.options.returnEmptyString&&l==="")}getResource(l,r,o,f={}){var d;return(d=this.i18nFormat)!=null&&d.getResource?this.i18nFormat.getResource(l,r,o,f):this.resourceStore.getResource(l,r,o,f)}getUsedParamsDetails(l={}){const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],o=l.replace&&!oe(l.replace);let f=o?l.replace:l;if(o&&typeof l.count<"u"&&(f.count=l.count),this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),!o){f={...f};for(const d of r)delete f[d]}return f}static hasDefaultValue(l){const r="defaultValue";for(const o in l)if(Object.prototype.hasOwnProperty.call(l,o)&&r===o.substring(0,r.length)&&l[o]!==void 0)return!0;return!1}}class eh{constructor(l){this.options=l,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Qt.create("languageUtils")}getScriptPartFromCode(l){if(l=Il(l),!l||l.indexOf("-")<0)return null;const r=l.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(l){if(l=Il(l),!l||l.indexOf("-")<0)return l;const r=l.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(l){if(oe(l)&&l.indexOf("-")>-1){let r;try{r=Intl.getCanonicalLocales(l)[0]}catch{}return r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r||(this.options.lowerCaseLng?l.toLowerCase():l)}return this.options.cleanCode||this.options.lowerCaseLng?l.toLowerCase():l}isSupportedCode(l){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(l=this.getLanguagePartFromCode(l)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(l)>-1}getBestMatchFromCodes(l){if(!l)return null;let r;return l.forEach(o=>{if(r)return;const f=this.formatLanguageCode(o);(!this.options.supportedLngs||this.isSupportedCode(f))&&(r=f)}),!r&&this.options.supportedLngs&&l.forEach(o=>{if(r)return;const f=this.getScriptPartFromCode(o);if(this.isSupportedCode(f))return r=f;const d=this.getLanguagePartFromCode(o);if(this.isSupportedCode(d))return r=d;r=this.options.supportedLngs.find(h=>{if(h===d)return h;if(!(h.indexOf("-")<0&&d.indexOf("-")<0)&&(h.indexOf("-")>0&&d.indexOf("-")<0&&h.substring(0,h.indexOf("-"))===d||h.indexOf(d)===0&&d.length>1))return h})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(l,r){if(!l)return[];if(typeof l=="function"&&(l=l(r)),oe(l)&&(l=[l]),Array.isArray(l))return l;if(!r)return l.default||[];let o=l[r];return o||(o=l[this.getScriptPartFromCode(r)]),o||(o=l[this.formatLanguageCode(r)]),o||(o=l[this.getLanguagePartFromCode(r)]),o||(o=l.default),o||[]}toResolveHierarchy(l,r){const o=this.getFallbackCodes((r===!1?[]:r)||this.options.fallbackLng||[],l),f=[],d=h=>{h&&(this.isSupportedCode(h)?f.push(h):this.logger.warn(`rejecting language code not found in supportedLngs: ${h}`))};return oe(l)&&(l.indexOf("-")>-1||l.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&d(this.formatLanguageCode(l)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&d(this.getScriptPartFromCode(l)),this.options.load!=="currentOnly"&&d(this.getLanguagePartFromCode(l))):oe(l)&&d(this.formatLanguageCode(l)),o.forEach(h=>{f.indexOf(h)<0&&d(this.formatLanguageCode(h))}),f}}const th={zero:0,one:1,two:2,few:3,many:4,other:5},ah={select:s=>s===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class rx{constructor(l,r={}){this.languageUtils=l,this.options=r,this.logger=Qt.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(l,r={}){const o=Il(l==="dev"?"en":l),f=r.ordinal?"ordinal":"cardinal",d=JSON.stringify({cleanedCode:o,type:f});if(d in this.pluralRulesCache)return this.pluralRulesCache[d];let h;try{h=new Intl.PluralRules(o,{type:f})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),ah;if(!l.match(/-|_/))return ah;const v=this.languageUtils.getLanguagePartFromCode(l);h=this.getRule(v,r)}return this.pluralRulesCache[d]=h,h}needsPlural(l,r={}){let o=this.getRule(l,r);return o||(o=this.getRule("dev",r)),(o==null?void 0:o.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(l,r,o={}){return this.getSuffixes(l,o).map(f=>`${r}${f}`)}getSuffixes(l,r={}){let o=this.getRule(l,r);return o||(o=this.getRule("dev",r)),o?o.resolvedOptions().pluralCategories.sort((f,d)=>th[f]-th[d]).map(f=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${f}`):[]}getSuffix(l,r,o={}){const f=this.getRule(l,o);return f?`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${f.select(r)}`:(this.logger.warn(`no plural rule found for: ${l}`),this.getSuffix("dev",r,o))}}const nh=(s,l,r,o=".",f=!0)=>{let d=Pv(s,l,r);return!d&&f&&oe(r)&&(d=Nu(s,r,o),d===void 0&&(d=Nu(l,r,o))),d},mu=s=>s.replace(/\$/g,"$$$$");class lh{constructor(l={}){var r;this.logger=Qt.create("interpolator"),this.options=l,this.format=((r=l==null?void 0:l.interpolation)==null?void 0:r.format)||(o=>o),this.init(l)}init(l={}){l.interpolation||(l.interpolation={escapeValue:!0});const{escape:r,escapeValue:o,useRawValueToEscape:f,prefix:d,prefixEscaped:h,suffix:g,suffixEscaped:v,formatSeparator:p,unescapeSuffix:b,unescapePrefix:y,nestingPrefix:E,nestingPrefixEscaped:O,nestingSuffix:T,nestingSuffixEscaped:R,nestingOptionsSeparator:A,maxReplaces:M,alwaysFormat:K}=l.interpolation;this.escape=r!==void 0?r:ex,this.escapeValue=o!==void 0?o:!0,this.useRawValueToEscape=f!==void 0?f:!1,this.prefix=d?rn(d):h||"{{",this.suffix=g?rn(g):v||"}}",this.formatSeparator=p||",",this.unescapePrefix=b?"":y||"-",this.unescapeSuffix=this.unescapePrefix?"":b||"",this.nestingPrefix=E?rn(E):O||rn("$t("),this.nestingSuffix=T?rn(T):R||rn(")"),this.nestingOptionsSeparator=A||",",this.maxReplaces=M||1e3,this.alwaysFormat=K!==void 0?K:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const l=(r,o)=>(r==null?void 0:r.source)===o?(r.lastIndex=0,r):new RegExp(o,"g");this.regexp=l(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=l(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=l(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(l,r,o,f){var O;let d,h,g;const v=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=T=>{if(T.indexOf(this.formatSeparator)<0){const K=nh(r,v,T,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(K,void 0,o,{...f,...r,interpolationkey:T}):K}const R=T.split(this.formatSeparator),A=R.shift().trim(),M=R.join(this.formatSeparator).trim();return this.format(nh(r,v,A,this.options.keySeparator,this.options.ignoreJSONStructure),M,o,{...f,...r,interpolationkey:A})};this.resetRegExp();const b=(f==null?void 0:f.missingInterpolationHandler)||this.options.missingInterpolationHandler,y=((O=f==null?void 0:f.interpolation)==null?void 0:O.skipOnVariables)!==void 0?f.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:T=>mu(T)},{regex:this.regexp,safeValue:T=>this.escapeValue?mu(this.escape(T)):mu(T)}].forEach(T=>{for(g=0;d=T.regex.exec(l);){const R=d[1].trim();if(h=p(R),h===void 0)if(typeof b=="function"){const M=b(l,d,f);h=oe(M)?M:""}else if(f&&Object.prototype.hasOwnProperty.call(f,R))h="";else if(y){h=d[0];continue}else this.logger.warn(`missed to pass in variable ${R} for interpolating ${l}`),h="";else!oe(h)&&!this.useRawValueToEscape&&(h=$m(h));const A=T.safeValue(h);if(l=l.replace(d[0],A),y?(T.regex.lastIndex+=h.length,T.regex.lastIndex-=d[0].length):T.regex.lastIndex=0,g++,g>=this.maxReplaces)break}}),l}nest(l,r,o={}){let f,d,h;const g=(v,p)=>{const b=this.nestingOptionsSeparator;if(v.indexOf(b)<0)return v;const y=v.split(new RegExp(`${rn(b)}[ ]*{`));let E=`{${y[1]}`;v=y[0],E=this.interpolate(E,h);const O=E.match(/'/g),T=E.match(/"/g);(((O==null?void 0:O.length)??0)%2===0&&!T||((T==null?void 0:T.length)??0)%2!==0)&&(E=E.replace(/'/g,'"'));try{h=JSON.parse(E),p&&(h={...p,...h})}catch(R){return this.logger.warn(`failed parsing options string in nesting for key ${v}`,R),`${v}${b}${E}`}return h.defaultValue&&h.defaultValue.indexOf(this.prefix)>-1&&delete h.defaultValue,v};for(;f=this.nestingRegexp.exec(l);){let v=[];h={...o},h=h.replace&&!oe(h.replace)?h.replace:h,h.applyPostProcessor=!1,delete h.defaultValue;const p=/{.*}/.test(f[1])?f[1].lastIndexOf("}")+1:f[1].indexOf(this.formatSeparator);if(p!==-1&&(v=f[1].slice(p).split(this.formatSeparator).map(b=>b.trim()).filter(Boolean),f[1]=f[1].slice(0,p)),d=r(g.call(this,f[1].trim(),h),h),d&&f[0]===l&&!oe(d))return d;oe(d)||(d=$m(d)),d||(this.logger.warn(`missed to resolve ${f[1]} for nesting ${l}`),d=""),v.length&&(d=v.reduce((b,y)=>this.format(b,y,o.lng,{...o,interpolationkey:f[1].trim()}),d.trim())),l=l.replace(f[0],d),this.regexp.lastIndex=0}return l}}const ox=s=>{let l=s.toLowerCase().trim();const r={};if(s.indexOf("(")>-1){const o=s.split("(");l=o[0].toLowerCase().trim();const f=o[1].substring(0,o[1].length-1);l==="currency"&&f.indexOf(":")<0?r.currency||(r.currency=f.trim()):l==="relativetime"&&f.indexOf(":")<0?r.range||(r.range=f.trim()):f.split(";").forEach(h=>{if(h){const[g,...v]=h.split(":"),p=v.join(":").trim().replace(/^'+|'+$/g,""),b=g.trim();r[b]||(r[b]=p),p==="false"&&(r[b]=!1),p==="true"&&(r[b]=!0),isNaN(p)||(r[b]=parseInt(p,10))}})}return{formatName:l,formatOptions:r}},ih=s=>{const l={};return(r,o,f)=>{let d=f;f&&f.interpolationkey&&f.formatParams&&f.formatParams[f.interpolationkey]&&f[f.interpolationkey]&&(d={...d,[f.interpolationkey]:void 0});const h=o+JSON.stringify(d);let g=l[h];return g||(g=s(Il(o),f),l[h]=g),g(r)}},ux=s=>(l,r,o)=>s(Il(r),o)(l);class cx{constructor(l={}){this.logger=Qt.create("formatter"),this.options=l,this.init(l)}init(l,r={interpolation:{}}){this.formatSeparator=r.interpolation.formatSeparator||",";const o=r.cacheInBuiltFormats?ih:ux;this.formats={number:o((f,d)=>{const h=new Intl.NumberFormat(f,{...d});return g=>h.format(g)}),currency:o((f,d)=>{const h=new Intl.NumberFormat(f,{...d,style:"currency"});return g=>h.format(g)}),datetime:o((f,d)=>{const h=new Intl.DateTimeFormat(f,{...d});return g=>h.format(g)}),relativetime:o((f,d)=>{const h=new Intl.RelativeTimeFormat(f,{...d});return g=>h.format(g,d.range||"day")}),list:o((f,d)=>{const h=new Intl.ListFormat(f,{...d});return g=>h.format(g)})}}add(l,r){this.formats[l.toLowerCase().trim()]=r}addCached(l,r){this.formats[l.toLowerCase().trim()]=ih(r)}format(l,r,o,f={}){const d=r.split(this.formatSeparator);if(d.length>1&&d[0].indexOf("(")>1&&d[0].indexOf(")")<0&&d.find(g=>g.indexOf(")")>-1)){const g=d.findIndex(v=>v.indexOf(")")>-1);d[0]=[d[0],...d.splice(1,g)].join(this.formatSeparator)}return d.reduce((g,v)=>{var y;const{formatName:p,formatOptions:b}=ox(v);if(this.formats[p]){let E=g;try{const O=((y=f==null?void 0:f.formatParams)==null?void 0:y[f.interpolationkey])||{},T=O.locale||O.lng||f.locale||f.lng||o;E=this.formats[p](g,T,{...b,...f,...O})}catch(O){this.logger.warn(O)}return E}else this.logger.warn(`there was no format function for ${p}`);return g},l)}}const fx=(s,l)=>{s.pending[l]!==void 0&&(delete s.pending[l],s.pendingCount--)};class dx extends Ms{constructor(l,r,o,f={}){var d,h;super(),this.backend=l,this.store=r,this.services=o,this.languageUtils=o.languageUtils,this.options=f,this.logger=Qt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=f.maxParallelReads||10,this.readingCalls=0,this.maxRetries=f.maxRetries>=0?f.maxRetries:5,this.retryTimeout=f.retryTimeout>=1?f.retryTimeout:350,this.state={},this.queue=[],(h=(d=this.backend)==null?void 0:d.init)==null||h.call(d,o,f.backend,f)}queueLoad(l,r,o,f){const d={},h={},g={},v={};return l.forEach(p=>{let b=!0;r.forEach(y=>{const E=`${p}|${y}`;!o.reload&&this.store.hasResourceBundle(p,y)?this.state[E]=2:this.state[E]<0||(this.state[E]===1?h[E]===void 0&&(h[E]=!0):(this.state[E]=1,b=!1,h[E]===void 0&&(h[E]=!0),d[E]===void 0&&(d[E]=!0),v[y]===void 0&&(v[y]=!0)))}),b||(g[p]=!0)}),(Object.keys(d).length||Object.keys(h).length)&&this.queue.push({pending:h,pendingCount:Object.keys(h).length,loaded:{},errors:[],callback:f}),{toLoad:Object.keys(d),pending:Object.keys(h),toLoadLanguages:Object.keys(g),toLoadNamespaces:Object.keys(v)}}loaded(l,r,o){const f=l.split("|"),d=f[0],h=f[1];r&&this.emit("failedLoading",d,h,r),!r&&o&&this.store.addResourceBundle(d,h,o,void 0,void 0,{skipCopy:!0}),this.state[l]=r?-1:2,r&&o&&(this.state[l]=0);const g={};this.queue.forEach(v=>{Wv(v.loaded,[d],h),fx(v,l),r&&v.errors.push(r),v.pendingCount===0&&!v.done&&(Object.keys(v.loaded).forEach(p=>{g[p]||(g[p]={});const b=v.loaded[p];b.length&&b.forEach(y=>{g[p][y]===void 0&&(g[p][y]=!0)})}),v.done=!0,v.errors.length?v.callback(v.errors):v.callback())}),this.emit("loaded",g),this.queue=this.queue.filter(v=>!v.done)}read(l,r,o,f=0,d=this.retryTimeout,h){if(!l.length)return h(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:l,ns:r,fcName:o,tried:f,wait:d,callback:h});return}this.readingCalls++;const g=(p,b)=>{if(this.readingCalls--,this.waitingReads.length>0){const y=this.waitingReads.shift();this.read(y.lng,y.ns,y.fcName,y.tried,y.wait,y.callback)}if(p&&b&&f<this.maxRetries){setTimeout(()=>{this.read.call(this,l,r,o,f+1,d*2,h)},d);return}h(p,b)},v=this.backend[o].bind(this.backend);if(v.length===2){try{const p=v(l,r);p&&typeof p.then=="function"?p.then(b=>g(null,b)).catch(g):g(null,p)}catch(p){g(p)}return}return v(l,r,g)}prepareLoading(l,r,o={},f){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),f&&f();oe(l)&&(l=this.languageUtils.toResolveHierarchy(l)),oe(r)&&(r=[r]);const d=this.queueLoad(l,r,o,f);if(!d.toLoad.length)return d.pending.length||f(),null;d.toLoad.forEach(h=>{this.loadOne(h)})}load(l,r,o){this.prepareLoading(l,r,{},o)}reload(l,r,o){this.prepareLoading(l,r,{reload:!0},o)}loadOne(l,r=""){const o=l.split("|"),f=o[0],d=o[1];this.read(f,d,"read",void 0,void 0,(h,g)=>{h&&this.logger.warn(`${r}loading namespace ${d} for language ${f} failed`,h),!h&&g&&this.logger.log(`${r}loaded namespace ${d} for language ${f}`,g),this.loaded(l,h,g)})}saveMissing(l,r,o,f,d,h={},g=()=>{}){var v,p,b,y,E;if((p=(v=this.services)==null?void 0:v.utils)!=null&&p.hasLoadedNamespace&&!((y=(b=this.services)==null?void 0:b.utils)!=null&&y.hasLoadedNamespace(r))){this.logger.warn(`did not save key "${o}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(o==null||o==="")){if((E=this.backend)!=null&&E.create){const O={...h,isUpdate:d},T=this.backend.create.bind(this.backend);if(T.length<6)try{let R;T.length===5?R=T(l,r,o,f,O):R=T(l,r,o,f),R&&typeof R.then=="function"?R.then(A=>g(null,A)).catch(g):g(null,R)}catch(R){g(R)}else T(l,r,o,f,g,O)}!l||!l[0]||this.store.addResource(l[0],r,o,f)}}}const hu=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:s=>{let l={};if(typeof s[1]=="object"&&(l=s[1]),oe(s[1])&&(l.defaultValue=s[1]),oe(s[2])&&(l.tDescription=s[2]),typeof s[2]=="object"||typeof s[3]=="object"){const r=s[3]||s[2];Object.keys(r).forEach(o=>{l[o]=r[o]})}return l},interpolation:{escapeValue:!0,format:s=>s,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),sh=s=>{var l,r;return oe(s.ns)&&(s.ns=[s.ns]),oe(s.fallbackLng)&&(s.fallbackLng=[s.fallbackLng]),oe(s.fallbackNS)&&(s.fallbackNS=[s.fallbackNS]),((r=(l=s.supportedLngs)==null?void 0:l.indexOf)==null?void 0:r.call(l,"cimode"))<0&&(s.supportedLngs=s.supportedLngs.concat(["cimode"])),typeof s.initImmediate=="boolean"&&(s.initAsync=s.initImmediate),s},js=()=>{},mx=s=>{Object.getOwnPropertyNames(Object.getPrototypeOf(s)).forEach(r=>{typeof s[r]=="function"&&(s[r]=s[r].bind(s))})},qh="__i18next_supportNoticeShown",hx=()=>!!(typeof globalThis<"u"&&globalThis[qh]||typeof process<"u"&&fu&&fu.I18NEXT_NO_SUPPORT_NOTICE||typeof process<"u"&&fu),px=()=>{typeof globalThis<"u"&&(globalThis[qh]=!0)},gx=s=>{var l,r,o,f,d,h,g,v,p,b,y,E,O;return!!(((o=(r=(l=s==null?void 0:s.modules)==null?void 0:l.backend)==null?void 0:r.name)==null?void 0:o.indexOf("Locize"))>0||((g=(h=(d=(f=s==null?void 0:s.modules)==null?void 0:f.backend)==null?void 0:d.constructor)==null?void 0:h.name)==null?void 0:g.indexOf("Locize"))>0||(p=(v=s==null?void 0:s.options)==null?void 0:v.backend)!=null&&p.backends&&s.options.backend.backends.some(T=>{var R,A,M;return((R=T==null?void 0:T.name)==null?void 0:R.indexOf("Locize"))>0||((M=(A=T==null?void 0:T.constructor)==null?void 0:A.name)==null?void 0:M.indexOf("Locize"))>0})||(y=(b=s==null?void 0:s.options)==null?void 0:b.backend)!=null&&y.projectId||(O=(E=s==null?void 0:s.options)==null?void 0:E.backend)!=null&&O.backendOptions&&s.options.backend.backendOptions.some(T=>T==null?void 0:T.projectId))};class Pl extends Ms{constructor(l={},r){if(super(),this.options=sh(l),this.services={},this.logger=Qt,this.modules={external:[]},mx(this),r&&!this.isInitialized&&!l.isClone){if(!this.options.initAsync)return this.init(l,r),this;setTimeout(()=>{this.init(l,r)},0)}}init(l={},r){this.isInitializing=!0,typeof l=="function"&&(r=l,l={}),l.defaultNS==null&&l.ns&&(oe(l.ns)?l.defaultNS=l.ns:l.ns.indexOf("translation")<0&&(l.defaultNS=l.ns[0]));const o=hu();this.options={...o,...this.options,...sh(l)},this.options.interpolation={...o.interpolation,...this.options.interpolation},l.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=l.keySeparator),l.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=l.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=o.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!gx(this)&&!hx()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),px());const f=p=>p?typeof p=="function"?new p:p:null;if(!this.options.isClone){this.modules.logger?Qt.init(f(this.modules.logger),this.options):Qt.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=cx;const b=new eh(this.options);this.store=new Pm(this.options.resources,this.options);const y=this.services;y.logger=Qt,y.resourceStore=this.store,y.languageUtils=b,y.pluralResolver=new rx(b,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==o.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),p&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(y.formatter=f(p),y.formatter.init&&y.formatter.init(y,this.options),this.options.interpolation.format=y.formatter.format.bind(y.formatter)),y.interpolator=new lh(this.options),y.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},y.backendConnector=new dx(f(this.modules.backend),y.resourceStore,y,this.options),y.backendConnector.on("*",(O,...T)=>{this.emit(O,...T)}),this.modules.languageDetector&&(y.languageDetector=f(this.modules.languageDetector),y.languageDetector.init&&y.languageDetector.init(y,this.options.detection,this.options)),this.modules.i18nFormat&&(y.i18nFormat=f(this.modules.i18nFormat),y.i18nFormat.init&&y.i18nFormat.init(this)),this.translator=new zs(this.services,this.options),this.translator.on("*",(O,...T)=>{this.emit(O,...T)}),this.modules.external.forEach(O=>{O.init&&O.init(this)})}if(this.format=this.options.interpolation.format,r||(r=js),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(p=>{this[p]=(...b)=>this.store[p](...b)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=(...b)=>(this.store[p](...b),this)});const g=Jl(),v=()=>{const p=(b,y)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),g.resolve(y),r(b,y)};if(this.languages&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)};return this.options.resources||!this.options.initAsync?v():setTimeout(v,0),g}loadResources(l,r=js){var d,h;let o=r;const f=oe(l)?l:this.language;if(typeof l=="function"&&(o=l),!this.options.resources||this.options.partialBundledLanguages){if((f==null?void 0:f.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return o();const g=[],v=p=>{if(!p||p==="cimode")return;this.services.languageUtils.toResolveHierarchy(p).forEach(y=>{y!=="cimode"&&g.indexOf(y)<0&&g.push(y)})};f?v(f):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(b=>v(b)),(h=(d=this.options.preload)==null?void 0:d.forEach)==null||h.call(d,p=>v(p)),this.services.backendConnector.load(g,this.options.ns,p=>{!p&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),o(p)})}else o(null)}reloadResources(l,r,o){const f=Jl();return typeof l=="function"&&(o=l,l=void 0),typeof r=="function"&&(o=r,r=void 0),l||(l=this.languages),r||(r=this.options.ns),o||(o=js),this.services.backendConnector.reload(l,r,d=>{f.resolve(),o(d)}),f}use(l){if(!l)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!l.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return l.type==="backend"&&(this.modules.backend=l),(l.type==="logger"||l.log&&l.warn&&l.error)&&(this.modules.logger=l),l.type==="languageDetector"&&(this.modules.languageDetector=l),l.type==="i18nFormat"&&(this.modules.i18nFormat=l),l.type==="postProcessor"&&Hh.addPostProcessor(l),l.type==="formatter"&&(this.modules.formatter=l),l.type==="3rdParty"&&this.modules.external.push(l),this}setResolvedLanguage(l){if(!(!l||!this.languages)&&!(["cimode","dev"].indexOf(l)>-1)){for(let r=0;r<this.languages.length;r++){const o=this.languages[r];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}!this.resolvedLanguage&&this.languages.indexOf(l)<0&&this.store.hasLanguageSomeTranslations(l)&&(this.resolvedLanguage=l,this.languages.unshift(l))}}changeLanguage(l,r){this.isLanguageChangingTo=l;const o=Jl();this.emit("languageChanging",l);const f=g=>{this.language=g,this.languages=this.services.languageUtils.toResolveHierarchy(g),this.resolvedLanguage=void 0,this.setResolvedLanguage(g)},d=(g,v)=>{v?this.isLanguageChangingTo===l&&(f(v),this.translator.changeLanguage(v),this.isLanguageChangingTo=void 0,this.emit("languageChanged",v),this.logger.log("languageChanged",v)):this.isLanguageChangingTo=void 0,o.resolve((...p)=>this.t(...p)),r&&r(g,(...p)=>this.t(...p))},h=g=>{var b,y;!l&&!g&&this.services.languageDetector&&(g=[]);const v=oe(g)?g:g&&g[0],p=this.store.hasLanguageSomeTranslations(v)?v:this.services.languageUtils.getBestMatchFromCodes(oe(g)?[g]:g);p&&(this.language||f(p),this.translator.language||this.translator.changeLanguage(p),(y=(b=this.services.languageDetector)==null?void 0:b.cacheUserLanguage)==null||y.call(b,p)),this.loadResources(p,E=>{d(E,p)})};return!l&&this.services.languageDetector&&!this.services.languageDetector.async?h(this.services.languageDetector.detect()):!l&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(h):this.services.languageDetector.detect(h):h(l),o}getFixedT(l,r,o){const f=(d,h,...g)=>{let v;typeof h!="object"?v=this.options.overloadTranslationOptionHandler([d,h].concat(g)):v={...h},v.lng=v.lng||f.lng,v.lngs=v.lngs||f.lngs,v.ns=v.ns||f.ns,v.keyPrefix!==""&&(v.keyPrefix=v.keyPrefix||o||f.keyPrefix);const p={...this.options,...v};typeof v.keyPrefix=="function"&&(v.keyPrefix=Wn(v.keyPrefix,p));const b=this.options.keySeparator||".";let y;return v.keyPrefix&&Array.isArray(d)?y=d.map(E=>(typeof E=="function"&&(E=Wn(E,p)),`${v.keyPrefix}${b}${E}`)):(typeof d=="function"&&(d=Wn(d,p)),y=v.keyPrefix?`${v.keyPrefix}${b}${d}`:d),this.t(y,v)};return oe(l)?f.lng=l:f.lngs=l,f.ns=r,f.keyPrefix=o,f}t(...l){var r;return(r=this.translator)==null?void 0:r.translate(...l)}exists(...l){var r;return(r=this.translator)==null?void 0:r.exists(...l)}setDefaultNamespace(l){this.options.defaultNS=l}hasLoadedNamespace(l,r={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const o=r.lng||this.resolvedLanguage||this.languages[0],f=this.options?this.options.fallbackLng:!1,d=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;const h=(g,v)=>{const p=this.services.backendConnector.state[`${g}|${v}`];return p===-1||p===0||p===2};if(r.precheck){const g=r.precheck(this,h);if(g!==void 0)return g}return!!(this.hasResourceBundle(o,l)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||h(o,l)&&(!f||h(d,l)))}loadNamespaces(l,r){const o=Jl();return this.options.ns?(oe(l)&&(l=[l]),l.forEach(f=>{this.options.ns.indexOf(f)<0&&this.options.ns.push(f)}),this.loadResources(f=>{o.resolve(),r&&r(f)}),o):(r&&r(),Promise.resolve())}loadLanguages(l,r){const o=Jl();oe(l)&&(l=[l]);const f=this.options.preload||[],d=l.filter(h=>f.indexOf(h)<0&&this.services.languageUtils.isSupportedCode(h));return d.length?(this.options.preload=f.concat(d),this.loadResources(h=>{o.resolve(),r&&r(h)}),o):(r&&r(),Promise.resolve())}dir(l){var f,d;if(l||(l=this.resolvedLanguage||(((f=this.languages)==null?void 0:f.length)>0?this.languages[0]:this.language)),!l)return"rtl";try{const h=new Intl.Locale(l);if(h&&h.getTextInfo){const g=h.getTextInfo();if(g&&g.direction)return g.direction}}catch{}const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],o=((d=this.services)==null?void 0:d.languageUtils)||new eh(hu());return l.toLowerCase().indexOf("-latn")>1?"ltr":r.indexOf(o.getLanguagePartFromCode(l))>-1||l.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(l={},r){const o=new Pl(l,r);return o.createInstance=Pl.createInstance,o}cloneInstance(l={},r=js){const o=l.forkResourceStore;o&&delete l.forkResourceStore;const f={...this.options,...l,isClone:!0},d=new Pl(f);if((l.debug!==void 0||l.prefix!==void 0)&&(d.logger=d.logger.clone(l)),["store","services","language"].forEach(g=>{d[g]=this[g]}),d.services={...this.services},d.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},o){const g=Object.keys(this.store.data).reduce((v,p)=>(v[p]={...this.store.data[p]},v[p]=Object.keys(v[p]).reduce((b,y)=>(b[y]={...v[p][y]},b),v[p]),v),{});d.store=new Pm(g,f),d.services.resourceStore=d.store}if(l.interpolation){const v={...hu().interpolation,...this.options.interpolation,...l.interpolation},p={...f,interpolation:v};d.services.interpolator=new lh(p)}return d.translator=new zs(d.services,f),d.translator.on("*",(g,...v)=>{d.emit(g,...v)}),d.init(f,r),d.translator.options=f,d.translator.backendConnector.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},d}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Fe=Pl.createInstance();Fe.createInstance;Fe.dir;Fe.init;Fe.loadResources;Fe.reloadResources;Fe.use;Fe.changeLanguage;Fe.getFixedT;Fe.t;Fe.exists;Fe.setDefaultNamespace;Fe.hasLoadedNamespace;Fe.loadNamespaces;Fe.loadLanguages;const vx=(s,l,r,o)=>{var d,h,g,v;const f=[r,{code:l,...o||{}}];if((h=(d=s==null?void 0:s.services)==null?void 0:d.logger)!=null&&h.forward)return s.services.logger.forward(f,"warn","react-i18next::",!0);cn(f[0])&&(f[0]=`react-i18next:: ${f[0]}`),(v=(g=s==null?void 0:s.services)==null?void 0:g.logger)!=null&&v.warn?s.services.logger.warn(...f):console!=null&&console.warn&&console.warn(...f)},rh={},ju=(s,l,r,o)=>{cn(r)&&rh[r]||(cn(r)&&(rh[r]=new Date),vx(s,l,r,o))},Yh=(s,l)=>()=>{if(s.isInitialized)l();else{const r=()=>{setTimeout(()=>{s.off("initialized",r)},0),l()};s.on("initialized",r)}},Eu=(s,l,r)=>{s.loadNamespaces(l,Yh(s,r))},oh=(s,l,r,o)=>{if(cn(r)&&(r=[r]),s.options.preload&&s.options.preload.indexOf(l)>-1)return Eu(s,r,o);r.forEach(f=>{s.options.ns.indexOf(f)<0&&s.options.ns.push(f)}),s.loadLanguages(l,Yh(s,o))},xx=(s,l,r={})=>!l.languages||!l.languages.length?(ju(l,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:l.languages}),!0):l.hasLoadedNamespace(s,{lng:r.lng,precheck:(o,f)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!f(o.isLanguageChangingTo,s))return!1}}),cn=s=>typeof s=="string",yx=s=>typeof s=="object"&&s!==null,bx=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Sx={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},Nx=s=>Sx[s],jx=s=>s.replace(bx,Nx);let Cu={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:jx,transDefaultProps:void 0};const Ex=(s={})=>{Cu={...Cu,...s}},Cx=()=>Cu;let Gh;const Rx=s=>{Gh=s},Tx=()=>Gh,wx={type:"3rdParty",init(s){Ex(s.options.react),Rx(s)}},Ox=N.createContext();class Ax{constructor(){this.usedNamespaces={}}addUsedNamespaces(l){l.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var pu={exports:{}},gu={};/**
50
+ * @license React
51
+ * use-sync-external-store-shim.production.js
52
+ *
53
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
54
+ *
55
+ * This source code is licensed under the MIT license found in the
56
+ * LICENSE file in the root directory of this source tree.
57
+ */var uh;function zx(){if(uh)return gu;uh=1;var s=Ls();function l(y,E){return y===E&&(y!==0||1/y===1/E)||y!==y&&E!==E}var r=typeof Object.is=="function"?Object.is:l,o=s.useState,f=s.useEffect,d=s.useLayoutEffect,h=s.useDebugValue;function g(y,E){var O=E(),T=o({inst:{value:O,getSnapshot:E}}),R=T[0].inst,A=T[1];return d(function(){R.value=O,R.getSnapshot=E,v(R)&&A({inst:R})},[y,O,E]),f(function(){return v(R)&&A({inst:R}),y(function(){v(R)&&A({inst:R})})},[y]),h(O),O}function v(y){var E=y.getSnapshot;y=y.value;try{var O=E();return!r(y,O)}catch{return!0}}function p(y,E){return E()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:g;return gu.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:b,gu}var ch;function Dx(){return ch||(ch=1,pu.exports=zx()),pu.exports}var _x=Dx();const Lx=(s,l)=>{if(cn(l))return l;if(yx(l)&&cn(l.defaultValue))return l.defaultValue;if(typeof s=="function")return"";if(Array.isArray(s)){const r=s[s.length-1];return typeof r=="function"?"":r}return s},Mx={t:Lx,ready:!1},Ux=()=>()=>{},Te=(s,l={})=>{var Q,le,Me;const{i18n:r}=l,{i18n:o,defaultNS:f}=N.useContext(Ox)||{},d=r||o||Tx();d&&!d.reportNamespaces&&(d.reportNamespaces=new Ax),d||ju(d,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const h=N.useMemo(()=>{var ae;return{...Cx(),...(ae=d==null?void 0:d.options)==null?void 0:ae.react,...l}},[d,l]),{useSuspense:g,keyPrefix:v}=h,p=f||((Q=d==null?void 0:d.options)==null?void 0:Q.defaultNS),b=cn(p)?[p]:p||["translation"],y=N.useMemo(()=>b,b);(Me=(le=d==null?void 0:d.reportNamespaces)==null?void 0:le.addUsedNamespaces)==null||Me.call(le,y);const E=N.useRef(0),O=N.useCallback(ae=>{if(!d)return Ux;const{bindI18n:se,bindI18nStore:re}=h,G=()=>{E.current+=1,ae()};return se&&d.on(se,G),re&&d.store.on(re,G),()=>{se&&se.split(" ").forEach(_=>d.off(_,G)),re&&re.split(" ").forEach(_=>d.store.off(_,G))}},[d,h]),T=N.useRef(),R=N.useCallback(()=>{if(!d)return Mx;const ae=!!(d.isInitialized||d.initializedStoreOnce)&&y.every(ee=>xx(ee,d,h)),se=l.lng||d.language,re=E.current,G=T.current;if(G&&G.ready===ae&&G.lng===se&&G.keyPrefix===v&&G.revision===re)return G;const k={t:d.getFixedT(se,h.nsMode==="fallback"?y:y[0],v),ready:ae,lng:se,keyPrefix:v,revision:re};return T.current=k,k},[d,y,v,h,l.lng]),[A,M]=N.useState(0),{t:K,ready:$}=_x.useSyncExternalStore(O,R,R);N.useEffect(()=>{if(d&&!$&&!g){const ae=()=>M(se=>se+1);l.lng?oh(d,l.lng,y,ae):Eu(d,y,ae)}},[d,l.lng,y,$,g,A]);const J=d||{},I=N.useRef(null),X=N.useRef(),V=ae=>{const se=Object.getOwnPropertyDescriptors(ae);se.__original&&delete se.__original;const re=Object.create(Object.getPrototypeOf(ae),se);if(!Object.prototype.hasOwnProperty.call(re,"__original"))try{Object.defineProperty(re,"__original",{value:ae,writable:!1,enumerable:!1,configurable:!1})}catch{}return re},ne=N.useMemo(()=>{const ae=J,se=ae==null?void 0:ae.language;let re=ae;ae&&(I.current&&I.current.__original===ae?X.current!==se?(re=V(ae),I.current=re,X.current=se):re=I.current:(re=V(ae),I.current=re,X.current=se));const G=!$&&!g?(...k)=>(ju(d,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),K(...k)):K,_=[G,re,$];return _.t=G,_.i18n=re,_.ready=$,_},[K,J,$,J.resolvedLanguage,J.language,J.languages]);if(d&&g&&!$)throw new Promise(ae=>{const se=()=>ae();l.lng?oh(d,l.lng,y,se):Eu(d,y,se)});return ne},{slice:Hx,forEach:Bx}=[];function qx(s){return Bx.call(Hx.call(arguments,1),l=>{if(l)for(const r in l)s[r]===void 0&&(s[r]=l[r])}),s}function Yx(s){return typeof s!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(r=>r.test(s))}const fh=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Gx=function(s,l){const o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},f=encodeURIComponent(l);let d=`${s}=${f}`;if(o.maxAge>0){const h=o.maxAge-0;if(Number.isNaN(h))throw new Error("maxAge should be a Number");d+=`; Max-Age=${Math.floor(h)}`}if(o.domain){if(!fh.test(o.domain))throw new TypeError("option domain is invalid");d+=`; Domain=${o.domain}`}if(o.path){if(!fh.test(o.path))throw new TypeError("option path is invalid");d+=`; Path=${o.path}`}if(o.expires){if(typeof o.expires.toUTCString!="function")throw new TypeError("option expires is invalid");d+=`; Expires=${o.expires.toUTCString()}`}if(o.httpOnly&&(d+="; HttpOnly"),o.secure&&(d+="; Secure"),o.sameSite)switch(typeof o.sameSite=="string"?o.sameSite.toLowerCase():o.sameSite){case!0:d+="; SameSite=Strict";break;case"lax":d+="; SameSite=Lax";break;case"strict":d+="; SameSite=Strict";break;case"none":d+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return o.partitioned&&(d+="; Partitioned"),d},dh={create(s,l,r,o){let f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(f.expires=new Date,f.expires.setTime(f.expires.getTime()+r*60*1e3)),o&&(f.domain=o),document.cookie=Gx(s,l,f)},read(s){const l=`${s}=`,r=document.cookie.split(";");for(let o=0;o<r.length;o++){let f=r[o];for(;f.charAt(0)===" ";)f=f.substring(1,f.length);if(f.indexOf(l)===0)return f.substring(l.length,f.length)}return null},remove(s,l){this.create(s,"",-1,l)}};var kx={name:"cookie",lookup(s){let{lookupCookie:l}=s;if(l&&typeof document<"u")return dh.read(l)||void 0},cacheUserLanguage(s,l){let{lookupCookie:r,cookieMinutes:o,cookieDomain:f,cookieOptions:d}=l;r&&typeof document<"u"&&dh.create(r,s,o,f,d)}},Vx={name:"querystring",lookup(s){var o;let{lookupQuerystring:l}=s,r;if(typeof window<"u"){let{search:f}=window.location;!window.location.search&&((o=window.location.hash)==null?void 0:o.indexOf("?"))>-1&&(f=window.location.hash.substring(window.location.hash.indexOf("?")));const h=f.substring(1).split("&");for(let g=0;g<h.length;g++){const v=h[g].indexOf("=");v>0&&h[g].substring(0,v)===l&&(r=h[g].substring(v+1))}}return r}},Xx={name:"hash",lookup(s){var f;let{lookupHash:l,lookupFromHashIndex:r}=s,o;if(typeof window<"u"){const{hash:d}=window.location;if(d&&d.length>2){const h=d.substring(1);if(l){const g=h.split("&");for(let v=0;v<g.length;v++){const p=g[v].indexOf("=");p>0&&g[v].substring(0,p)===l&&(o=g[v].substring(p+1))}}if(o)return o;if(!o&&r>-1){const g=d.match(/\/([a-zA-Z-]*)/g);return Array.isArray(g)?(f=g[typeof r=="number"?r:0])==null?void 0:f.replace("/",""):void 0}}}return o}};let Jn=null;const mh=()=>{if(Jn!==null)return Jn;try{if(Jn=typeof window<"u"&&window.localStorage!==null,!Jn)return!1;const s="i18next.translate.boo";window.localStorage.setItem(s,"foo"),window.localStorage.removeItem(s)}catch{Jn=!1}return Jn};var Qx={name:"localStorage",lookup(s){let{lookupLocalStorage:l}=s;if(l&&mh())return window.localStorage.getItem(l)||void 0},cacheUserLanguage(s,l){let{lookupLocalStorage:r}=l;r&&mh()&&window.localStorage.setItem(r,s)}};let Fn=null;const hh=()=>{if(Fn!==null)return Fn;try{if(Fn=typeof window<"u"&&window.sessionStorage!==null,!Fn)return!1;const s="i18next.translate.boo";window.sessionStorage.setItem(s,"foo"),window.sessionStorage.removeItem(s)}catch{Fn=!1}return Fn};var Kx={name:"sessionStorage",lookup(s){let{lookupSessionStorage:l}=s;if(l&&hh())return window.sessionStorage.getItem(l)||void 0},cacheUserLanguage(s,l){let{lookupSessionStorage:r}=l;r&&hh()&&window.sessionStorage.setItem(r,s)}},Zx={name:"navigator",lookup(s){const l=[];if(typeof navigator<"u"){const{languages:r,userLanguage:o,language:f}=navigator;if(r)for(let d=0;d<r.length;d++)l.push(r[d]);o&&l.push(o),f&&l.push(f)}return l.length>0?l:void 0}},$x={name:"htmlTag",lookup(s){let{htmlTag:l}=s,r;const o=l||(typeof document<"u"?document.documentElement:null);return o&&typeof o.getAttribute=="function"&&(r=o.getAttribute("lang")),r}},Jx={name:"path",lookup(s){var f;let{lookupFromPathIndex:l}=s;if(typeof window>"u")return;const r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(r)?(f=r[typeof l=="number"?l:0])==null?void 0:f.replace("/",""):void 0}},Fx={name:"subdomain",lookup(s){var f,d;let{lookupFromSubdomainIndex:l}=s;const r=typeof l=="number"?l+1:1,o=typeof window<"u"&&((d=(f=window.location)==null?void 0:f.hostname)==null?void 0:d.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(o)return o[r]}};let kh=!1;try{document.cookie,kh=!0}catch{}const Vh=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];kh||Vh.splice(1,1);const Wx=()=>({order:Vh,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:s=>s});class Xh{constructor(l){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(l,r)}init(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=l,this.options=qx(r,this.options||{},Wx()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=f=>f.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=o,this.addDetector(kx),this.addDetector(Vx),this.addDetector(Qx),this.addDetector(Kx),this.addDetector(Zx),this.addDetector($x),this.addDetector(Jx),this.addDetector(Fx),this.addDetector(Xx)}addDetector(l){return this.detectors[l.name]=l,this}detect(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,r=[];return l.forEach(o=>{if(this.detectors[o]){let f=this.detectors[o].lookup(this.options);f&&typeof f=="string"&&(f=[f]),f&&(r=r.concat(f))}}),r=r.filter(o=>o!=null&&!Yx(o)).map(o=>this.options.convertDetectedLanguage(o)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}cacheUserLanguage(l){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(l)>-1||r.forEach(o=>{this.detectors[o]&&this.detectors[o].cacheUserLanguage(l,this.options)}))}}Xh.type="languageDetector";const Px={loading:"Loading...",save:"Save",cancel:"Cancel",delete:"Delete",edit:"Edit",add:"Add",discard:"Discard",duplicate:"Duplicate",name:"Name",description:"Description",yes:"Yes",no:"No",noLimit:"No limit",remove:"Remove",status:"Status"},Ix={appName:"Model Test Bench",testBench:"Test Bench",envLabel:"Local Environment",dashboard:"Dashboard",providers:"Providers",scenarios:"Scenarios",newRun:"New Run",runHistory:"Run History",createScenario:"Create Scenario"},ey={completed:"Success",running:"Running",failed:"Failed",pending:"Pending",cancelled:"Cancelled"},ty={title:"Dashboard",subtitle:"System performance and experiment orchestration overview.",totalProviders:"Total Providers",totalScenarios:"Total Scenarios",totalRuns:"Total Runs",newProvider:"New Provider",newProviderDesc:"Configure model provider, API credentials, and generation parameters for a new test environment.",initializeProvider:"INITIALIZE PROVIDER",startRun:"Start Run",startRunDesc:"Execute a test scenario using an existing provider. Real-time logging will be enabled.",launchEngine:"LAUNCH ENGINE",recentRuns:"Recent Runs",viewAllHistory:"View All History",noRuns:"No runs yet. Start your first run above."},ay={status:"Status",provider:"Provider",scenarioName:"Scenario Name",scenario:"Scenario",duration:"Duration",turns:"Turns",action:"Action",actions:"Actions",name:"Name",model:"Model",createdDate:"Created Date",cost:"Cost",date:"Date",providerDetails:"Provider & Details"},ny={title:"Providers",subtitle:"Configure and manage your LLM provider integration parameters.",newProvider:"New Provider",noProviders:"No providers yet. Create one to get started.",confirmDelete:"Delete this provider?"},ly={newTitle:"New Provider",editTitle:"Edit Provider",newSubtitle:"Configure a new model provider.",editSubtitle:"Editing provider {{id}}",loadingProvider:"Loading provider...",basicInfo:"Basic Information",providerConfig:"Provider Configuration",providerName:"Provider",model:"Model",apiKey:"API Key",baseUrl:"Base URL",modelParameters:"Model Parameters",temperature:"Temperature",maxTokens:"Max Tokens",topP:"Top P",timeoutSeconds:"Timeout (seconds)",createProvider:"Create Provider",saveChanges:"Save Changes"},iy={baseUrl:"Base URL",apiKey:"API Key",model:"Model",providerName:"Provider Name",temperature:"Temperature",maxTokens:"Max Tokens",topP:"Top P"},sy={title:"Advanced Settings",timeout:"Timeout (seconds)",temperature:"Temperature",maxTokens:"Max Tokens",topP:"Top P"},ry={newScenario:"New Scenario",loadingScenarios:"Loading scenarios...",noScenarios:"No scenarios found. Create one to get started.",criteria:"Criteria",scoring:"Scoring",noPrompt:"No prompt defined.",scenarioCount_one:"{{count}} Scenario",scenarioCount_other:"{{count}} Scenarios",toolCount_one:"{{count}} tool",toolCount_other:"{{count}} tools"},oy={createTitle:"Create New Scenario",editTitle:"Edit Scenario",subtitle:"Define task, system prompt, tool configuration, and grading rubric for model testing.",saveScenario:"Save Scenario",saving:"Saving...",loadingScenario:"Loading scenario...",basicInfo:"Basic Information",scenarioName:"Scenario Name",category:"Category",criticalRequirements:"Critical Requirements",expectedAnswer:"Expected Answer",gradingScoring:"Grading & Scoring",gradingGuidelines:"Grading Guidelines",scoringDimensions:"Scoring Dimensions",userPrompt:"User Prompt",systemPrompt:"System Prompt",enabledTools:"Enabled Tools",enabledToolsHelp:"Select which tools are available to the model during execution.",weight:"Weight"},uy={enabledTools:"Enabled Tools",enabledToolsHelp:"Select which tools are available to the model during execution.",toolCount:"{{count}} tool(s)",readFile:"Read File",searchFile:"Search File",webSearch:"Web Search"},cy={title:"New Run",subtitle:"Execute a test scenario against a model provider.",apiProvider:"API Provider",scenario:"Scenario",noProviders:"No providers available",noScenarios:"No scenarios available",startRun:"Start Run",starting:"Starting...",emptyState:"Select a provider and scenario, then click Start Run."},fy={title:"Run History",subtitle:"Browse and filter all previous test runs.",allProviders:"All Providers",allScenarios:"All Scenarios",allStatuses:"All Statuses",loadingRuns:"Loading runs...",noRuns:"No runs found.",viewRun:"View Run",newEval:"New Eval",evaluations:"Evaluations",noEvaluations:"No evaluations yet."},dy={title:"Run Detail",history:"History",loadingRun:"Loading run...",runNotFound:"Run not found",messageLog:"Message Log",result:"Result",providerSnapshot:"Provider Snapshot",scenarioSnapshot:"Scenario Snapshot",previousEvaluations:"Previous Evaluations",evaluateThisRun:"Evaluate This Run",nameLabel:"Name:",modelLabel:"Model:",providerLabel:"Provider:",timeoutLabel:"Timeout:",categoryLabel:"Category:",promptLabel:"Prompt:",systemPromptLabel:"System Prompt:",enabledToolsLabel:"Enabled Tools:",expectedAnswerLabel:"Expected Answer:"},my={title:"Evaluation Configuration",subtitle:"Configure evaluators for run against scenario {{name}}.",evaluate:"Evaluate",noProviders:"No providers available. Create a provider first to use as an evaluator.",evaluators:"Evaluators",finalArbiter:"(final arbiter)",roleName:"Role Name",provider:"Provider",addEvaluator:"Add Evaluator",settings:"Settings",maxDebateRounds:"Max Debate Rounds (1-5)",startEvaluation:"Start Evaluation",apiCallInfo:"{{evaluators}} evaluator(s) × {{rounds}} round(s) = up to {{total}} API calls."},hy={title:"Evaluation Report",loadingEvaluation:"Loading evaluation...",evaluationNotFound:"Evaluation not found",inProgress:"Evaluation in progress...",waitingToStart:"Waiting to start...",scoreBreakdown:"Score Breakdown",criticalRequirements:"Critical Requirements",answerComparison:"Answer Comparison",instructionCompliance:"Instruction Compliance",analysis:"Analysis",evaluationRounds:"Evaluation Rounds ({{count}})",round:"Round {{number}}",consensus:"Consensus",noConsensus:"No consensus",scenarioLabel:"Scenario: {{name}}",runLabel:"Run: {{id}}",strongPerformance:"Strong performance on {{dim}} ({{score}}/10)",lowScore:"Low score on {{dim}} ({{score}}/10)",failedReq:"Failed: {{requirement}}",addressReq:"Address critical requirement: {{requirement}}",violatedInstruction:"Violated instruction: {{instruction}}",evalSuccess:"Evaluation completed successfully",overallScore:"Overall Score",confidence:"Confidence: {{value}}%",dissentingOpinion_one:"{{count}} dissenting opinion",dissentingOpinion_other:"{{count}} dissenting opinions",answerMatch:"Answer Match",similar:"{{value}}% similar",evalCost:"Eval Cost",rounds:"Rounds",reached:"Reached",partial:"Partial",noDimensionScores:"No dimension scores available.",evidence:"Evidence",noCriticalRequirements:"No critical requirements defined.",passedCount:"{{passed}}/{{total}} passed",similarity:"Similarity",expected:"Expected",actual:"Actual",noExpectedAnswer:"No expected answer provided",noResultText:"No result text",followed:"Followed",violated:"Violated",notApplicable:"N/A",noComplianceData:"No compliance data available.",overallCompliance:"Overall compliance:",instruction:"Instruction",toolAgentUsage:"Compliance Overview",noUsageData:"No compliance data available.",strengths:"Strengths",weaknesses:"Weaknesses",recommendations:"Recommendations",noneIdentified:"None identified."},py={abort:"Abort",turns:"{{count}} turns"},gy={add:"Add",noItems:"No items yet."},vy={weightSum:"Weight Sum"},xy={reasoning:"Reasoning & Logic","instruction-following":"Instruction Following",planning:"Planning & Strategy","tool-strategy":"Tool Strategy","error-handling":"Error Handling","ambiguity-handling":"Ambiguity Handling","scope-management":"Scope Management",custom:"Custom"},yy={sessionInitialized:"Session initialized",apiRetry:"API retry #{{attempt}}",apiRetryWithError:"API retry #{{attempt}}: {{error}}"},by={input:"Input",output:"Output"},Sy={thinking:"Thinking"},Ny={common:Px,nav:Ix,status:ey,dashboard:ty,table:ay,providers:ny,providerEditor:ly,providerConfig:iy,advanced:sy,scenarios:ry,scenarioEditor:oy,toolConfig:uy,run:cy,runHistory:fy,runDetail:dy,evalConfig:my,report:hy,runStatusBar:py,dynamicList:gy,weight:vy,categories:xy,messageLog:yy,toolCallBlock:by,thinkingBlock:Sy},jy={loading:"加载中...",save:"保存",cancel:"取消",delete:"删除",edit:"编辑",add:"添加",discard:"放弃",duplicate:"复制",name:"名称",description:"描述",yes:"是",no:"否",noLimit:"无限制",remove:"移除",status:"状态"},Ey={appName:"模型测试平台",testBench:"测试平台",envLabel:"本地环境",dashboard:"概览",providers:"模型服务",scenarios:"测试场景",newRun:"新建运行",runHistory:"运行记录",createScenario:"创建场景"},Cy={completed:"已完成",running:"运行中",failed:"失败",pending:"等待中",cancelled:"已取消"},Ry={title:"概览",subtitle:"查看模型服务、场景和运行状况。",totalProviders:"模型服务总数",totalScenarios:"场景总数",totalRuns:"运行总数",newProvider:"新建模型服务",newProviderDesc:"配置模型服务连接和生成参数。",initializeProvider:"去配置",startRun:"启动运行",startRunDesc:"选择模型服务和场景,开始一次测试运行。",launchEngine:"去运行",recentRuns:"最近运行",viewAllHistory:"查看全部记录",noRuns:"暂无运行记录,从上方启动您的第一次运行。"},Ty={status:"状态",provider:"模型服务",scenarioName:"场景名称",scenario:"场景",duration:"时长",turns:"轮次",action:"操作",actions:"操作",name:"名称",model:"模型",createdDate:"创建日期",cost:"费用",date:"日期",providerDetails:"服务 & 详情"},wy={title:"模型服务",subtitle:"管理 LLM 模型服务的连接和参数配置。",newProvider:"新建模型服务",noProviders:"暂无模型服务,创建一个以开始使用。",confirmDelete:"确定删除该模型服务?"},Oy={newTitle:"新建模型服务",editTitle:"编辑模型服务",newSubtitle:"配置新的模型服务。",editSubtitle:"正在编辑模型服务 {{id}}",loadingProvider:"加载模型服务中...",basicInfo:"基本信息",providerConfig:"服务配置",providerName:"服务商",model:"模型",apiKey:"API 密钥",baseUrl:"基础 URL",modelParameters:"模型参数",temperature:"温度",maxTokens:"最大 Token 数",topP:"Top P",timeoutSeconds:"超时时间(秒)",createProvider:"创建模型服务",saveChanges:"保存更改"},Ay={baseUrl:"基础 URL",apiKey:"API 密钥",model:"模型",providerName:"服务商名称",temperature:"温度",maxTokens:"最大 Token 数",topP:"Top P"},zy={title:"高级设置",timeout:"超时时间(秒)",temperature:"温度",maxTokens:"最大 Token 数",topP:"Top P"},Dy={newScenario:"新建场景",loadingScenarios:"加载场景中...",noScenarios:"暂无场景,创建一个以开始使用。",criteria:"标准",scoring:"评分",noPrompt:"未定义提示词。",scenarioCount:"{{count}} 个场景",toolCount:"{{count}} 个工具"},_y={createTitle:"创建新场景",editTitle:"编辑场景",subtitle:"设置测试任务、系统提示、可用工具和评分规则。",saveScenario:"保存场景",saving:"保存中...",loadingScenario:"加载场景中...",basicInfo:"基本信息",scenarioName:"场景名称",category:"分类",criticalRequirements:"关键要求",expectedAnswer:"参考答案",gradingScoring:"评分 & 打分",gradingGuidelines:"评分指南",scoringDimensions:"评分维度",userPrompt:"用户提示",systemPrompt:"系统提示",enabledTools:"启用工具",enabledToolsHelp:"选择模型在执行期间可使用的工具。",weight:"权重"},Ly={enabledTools:"启用工具",enabledToolsHelp:"选择模型在执行期间可使用的工具。",toolCount:"{{count}} 个工具",readFile:"读取文件",searchFile:"搜索文件",webSearch:"网络搜索"},My={title:"新建运行",subtitle:"选择模型和场景,执行一次测试。",apiProvider:"API 模型服务",scenario:"场景",noProviders:"暂无可用模型服务",noScenarios:"暂无可用场景",startRun:"启动运行",starting:"启动中...",emptyState:"选择模型服务和场景,然后点击启动运行。"},Uy={title:"运行记录",subtitle:"查看和筛选历史运行记录。",allProviders:"所有模型服务",allScenarios:"所有场景",allStatuses:"所有状态",loadingRuns:"加载运行记录...",noRuns:"未找到运行记录。",viewRun:"查看运行",newEval:"新建评测",evaluations:"评测",noEvaluations:"暂无评测记录。"},Hy={title:"运行详情",history:"记录",loadingRun:"加载运行中...",runNotFound:"未找到运行记录",messageLog:"消息日志",result:"结果",providerSnapshot:"模型服务快照",scenarioSnapshot:"场景快照",previousEvaluations:"历史评测",evaluateThisRun:"评测此运行",nameLabel:"名称:",modelLabel:"模型:",providerLabel:"服务:",timeoutLabel:"超时:",categoryLabel:"分类:",promptLabel:"提示:",systemPromptLabel:"系统提示:",enabledToolsLabel:"启用工具:",expectedAnswerLabel:"参考答案:"},By={title:"评测配置",subtitle:"为「{{name}}」配置评测模型和参数。",evaluate:"评测",noProviders:"暂无模型服务。请先创建一个,用作评测器。",evaluators:"评测器",finalArbiter:"(最终裁决者)",roleName:"角色名称",provider:"模型服务",addEvaluator:"添加评测器",settings:"设置",maxDebateRounds:"最大辩论轮次 (1-5)",startEvaluation:"启动评测",apiCallInfo:"{{evaluators}} 个评测器 × {{rounds}} 轮 = 最多 {{total}} 次 API 调用。"},qy={title:"评测报告",loadingEvaluation:"加载评测中...",evaluationNotFound:"未找到评测记录",inProgress:"评测进行中...",waitingToStart:"等待启动...",scoreBreakdown:"评分明细",criticalRequirements:"关键要求",answerComparison:"答案对比",instructionCompliance:"指令合规性",analysis:"分析",evaluationRounds:"评测轮次 ({{count}})",round:"第 {{number}} 轮",consensus:"已达成共识",noConsensus:"未达成共识",scenarioLabel:"场景:{{name}}",runLabel:"运行:{{id}}",strongPerformance:"{{dim}} 得分较高 ({{score}}/10)",lowScore:"{{dim}} 得分较低 ({{score}}/10)",failedReq:"未通过:{{requirement}}",addressReq:"需关注:{{requirement}}",violatedInstruction:"违反:{{instruction}}",evalSuccess:"评测完成",overallScore:"综合得分",confidence:"置信度:{{value}}%",dissentingOpinion:"{{count}} 项分歧",answerMatch:"答案匹配",similar:"{{value}}% 相似",evalCost:"评测费用",rounds:"轮次",reached:"已达成",partial:"部分达成",noDimensionScores:"暂无维度评分数据。",evidence:"证据",noCriticalRequirements:"未定义关键要求。",passedCount:"{{passed}}/{{total}} 通过",similarity:"相似度",expected:"期望答案",actual:"实际答案",noExpectedAnswer:"未提供参考答案",noResultText:"无结果文本",followed:"已遵循",violated:"已违反",notApplicable:"不适用",noComplianceData:"暂无数据。",overallCompliance:"整体遵循率:",instruction:"指令",toolAgentUsage:"合规概览",noUsageData:"暂无数据。",strengths:"优势",weaknesses:"不足",recommendations:"建议",noneIdentified:"无。"},Yy={abort:"中止",turns:"{{count}} 轮"},Gy={add:"添加",noItems:"暂无项目。"},ky={weightSum:"权重总和"},Vy={reasoning:"推理 & 逻辑","instruction-following":"指令遵循",planning:"规划 & 策略","tool-strategy":"工具策略","error-handling":"错误处理","ambiguity-handling":"歧义处理","scope-management":"范围管理",custom:"自定义"},Xy={sessionInitialized:"会话已初始化",apiRetry:"API 重试 #{{attempt}}",apiRetryWithError:"API 重试 #{{attempt}}:{{error}}"},Qy={input:"输入",output:"输出"},Ky={thinking:"思考中"},Zy={common:jy,nav:Ey,status:Cy,dashboard:Ry,table:Ty,providers:wy,providerEditor:Oy,providerConfig:Ay,advanced:zy,scenarios:Dy,scenarioEditor:_y,toolConfig:Ly,run:My,runHistory:Uy,runDetail:Hy,evalConfig:By,report:qy,runStatusBar:Yy,dynamicList:Gy,weight:ky,categories:Vy,messageLog:Xy,toolCallBlock:Qy,thinkingBlock:Ky},$y={en:"en-GB","zh-CN":"zh-CN"};function Qh(){return $y[Fe.resolvedLanguage??"en"]??"en-GB"}Fe.use(Xh).use(wx).init({resources:{en:{translation:Ny},"zh-CN":{translation:Zy}},supportedLngs:["en","zh-CN"],fallbackLng:"en",interpolation:{escapeValue:!1},react:{useSuspense:!1},detection:{order:["localStorage","navigator"],caches:["localStorage"]}});Fe.on("languageChanged",s=>{document.documentElement.lang=s,document.title=Fe.t("nav.appName")});/**
58
+ * react-router v7.13.2
59
+ *
60
+ * Copyright (c) Remix Software Inc.
61
+ *
62
+ * This source code is licensed under the MIT license found in the
63
+ * LICENSE.md file in the root directory of this source tree.
64
+ *
65
+ * @license MIT
66
+ */var ph="popstate";function gh(s){return typeof s=="object"&&s!=null&&"pathname"in s&&"search"in s&&"hash"in s&&"state"in s&&"key"in s}function Jy(s={}){function l(o,f){var p;let d=(p=f.state)==null?void 0:p.masked,{pathname:h,search:g,hash:v}=d||o.location;return Ru("",{pathname:h,search:g,hash:v},f.state&&f.state.usr||null,f.state&&f.state.key||"default",d?{pathname:o.location.pathname,search:o.location.search,hash:o.location.hash}:void 0)}function r(o,f){return typeof f=="string"?f:ei(f)}return Wy(l,r,null,s)}function He(s,l){if(s===!1||s===null||typeof s>"u")throw new Error(l)}function Zt(s,l){if(!s){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function Fy(){return Math.random().toString(36).substring(2,10)}function vh(s,l){return{usr:s.state,key:s.key,idx:l,masked:s.unstable_mask?{pathname:s.pathname,search:s.search,hash:s.hash}:void 0}}function Ru(s,l,r=null,o,f){return{pathname:typeof s=="string"?s:s.pathname,search:"",hash:"",...typeof l=="string"?Pn(l):l,state:r,key:l&&l.key||o||Fy(),unstable_mask:f}}function ei({pathname:s="/",search:l="",hash:r=""}){return l&&l!=="?"&&(s+=l.charAt(0)==="?"?l:"?"+l),r&&r!=="#"&&(s+=r.charAt(0)==="#"?r:"#"+r),s}function Pn(s){let l={};if(s){let r=s.indexOf("#");r>=0&&(l.hash=s.substring(r),s=s.substring(0,r));let o=s.indexOf("?");o>=0&&(l.search=s.substring(o),s=s.substring(0,o)),s&&(l.pathname=s)}return l}function Wy(s,l,r,o={}){let{window:f=document.defaultView,v5Compat:d=!1}=o,h=f.history,g="POP",v=null,p=b();p==null&&(p=0,h.replaceState({...h.state,idx:p},""));function b(){return(h.state||{idx:null}).idx}function y(){g="POP";let A=b(),M=A==null?null:A-p;p=A,v&&v({action:g,location:R.location,delta:M})}function E(A,M){g="PUSH";let K=gh(A)?A:Ru(R.location,A,M);p=b()+1;let $=vh(K,p),J=R.createHref(K.unstable_mask||K);try{h.pushState($,"",J)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;f.location.assign(J)}d&&v&&v({action:g,location:R.location,delta:1})}function O(A,M){g="REPLACE";let K=gh(A)?A:Ru(R.location,A,M);p=b();let $=vh(K,p),J=R.createHref(K.unstable_mask||K);h.replaceState($,"",J),d&&v&&v({action:g,location:R.location,delta:0})}function T(A){return Py(A)}let R={get action(){return g},get location(){return s(f,h)},listen(A){if(v)throw new Error("A history only accepts one active listener");return f.addEventListener(ph,y),v=A,()=>{f.removeEventListener(ph,y),v=null}},createHref(A){return l(f,A)},createURL:T,encodeLocation(A){let M=T(A);return{pathname:M.pathname,search:M.search,hash:M.hash}},push:E,replace:O,go(A){return h.go(A)}};return R}function Py(s,l=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),He(r,"No window.location.(origin|href) available to create URL");let o=typeof s=="string"?s:ei(s);return o=o.replace(/ $/,"%20"),!l&&o.startsWith("//")&&(o=r+o),new URL(o,r)}function Kh(s,l,r="/"){return Iy(s,l,r,!1)}function Iy(s,l,r,o){let f=typeof l=="string"?Pn(l):l,d=ma(f.pathname||"/",r);if(d==null)return null;let h=Zh(s);e0(h);let g=null;for(let v=0;g==null&&v<h.length;++v){let p=f0(d);g=u0(h[v],p,o)}return g}function Zh(s,l=[],r=[],o="",f=!1){let d=(h,g,v=f,p)=>{let b={relativePath:p===void 0?h.path||"":p,caseSensitive:h.caseSensitive===!0,childrenIndex:g,route:h};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(o)&&v)return;He(b.relativePath.startsWith(o),`Absolute route path "${b.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(o.length)}let y=Kt([o,b.relativePath]),E=r.concat(b);h.children&&h.children.length>0&&(He(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),Zh(h.children,l,E,y,v)),!(h.path==null&&!h.index)&&l.push({path:y,score:r0(y,h.index),routesMeta:E})};return s.forEach((h,g)=>{var v;if(h.path===""||!((v=h.path)!=null&&v.includes("?")))d(h,g);else for(let p of $h(h.path))d(h,g,!0,p)}),l}function $h(s){let l=s.split("/");if(l.length===0)return[];let[r,...o]=l,f=r.endsWith("?"),d=r.replace(/\?$/,"");if(o.length===0)return f?[d,""]:[d];let h=$h(o.join("/")),g=[];return g.push(...h.map(v=>v===""?d:[d,v].join("/"))),f&&g.push(...h),g.map(v=>s.startsWith("/")&&v===""?"/":v)}function e0(s){s.sort((l,r)=>l.score!==r.score?r.score-l.score:o0(l.routesMeta.map(o=>o.childrenIndex),r.routesMeta.map(o=>o.childrenIndex)))}var t0=/^:[\w-]+$/,a0=3,n0=2,l0=1,i0=10,s0=-2,xh=s=>s==="*";function r0(s,l){let r=s.split("/"),o=r.length;return r.some(xh)&&(o+=s0),l&&(o+=n0),r.filter(f=>!xh(f)).reduce((f,d)=>f+(t0.test(d)?a0:d===""?l0:i0),o)}function o0(s,l){return s.length===l.length&&s.slice(0,-1).every((o,f)=>o===l[f])?s[s.length-1]-l[l.length-1]:0}function u0(s,l,r=!1){let{routesMeta:o}=s,f={},d="/",h=[];for(let g=0;g<o.length;++g){let v=o[g],p=g===o.length-1,b=d==="/"?l:l.slice(d.length)||"/",y=Ds({path:v.relativePath,caseSensitive:v.caseSensitive,end:p},b),E=v.route;if(!y&&p&&r&&!o[o.length-1].route.index&&(y=Ds({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},b)),!y)return null;Object.assign(f,y.params),h.push({params:f,pathname:Kt([d,y.pathname]),pathnameBase:p0(Kt([d,y.pathnameBase])),route:E}),y.pathnameBase!=="/"&&(d=Kt([d,y.pathnameBase]))}return h}function Ds(s,l){typeof s=="string"&&(s={path:s,caseSensitive:!1,end:!0});let[r,o]=c0(s.path,s.caseSensitive,s.end),f=l.match(r);if(!f)return null;let d=f[0],h=d.replace(/(.)\/+$/,"$1"),g=f.slice(1);return{params:o.reduce((p,{paramName:b,isOptional:y},E)=>{if(b==="*"){let T=g[E]||"";h=d.slice(0,d.length-T.length).replace(/(.)\/+$/,"$1")}const O=g[E];return y&&!O?p[b]=void 0:p[b]=(O||"").replace(/%2F/g,"/"),p},{}),pathname:d,pathnameBase:h,pattern:s}}function c0(s,l=!1,r=!0){Zt(s==="*"||!s.endsWith("*")||s.endsWith("/*"),`Route path "${s}" will be treated as if it were "${s.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${s.replace(/\*$/,"/*")}".`);let o=[],f="^"+s.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,g,v,p,b)=>{if(o.push({paramName:g,isOptional:v!=null}),v){let y=b.charAt(p+h.length);return y&&y!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return s.endsWith("*")?(o.push({paramName:"*"}),f+=s==="*"||s==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?f+="\\/*$":s!==""&&s!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,l?void 0:"i"),o]}function f0(s){try{return s.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return Zt(!1,`The URL path "${s}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),s}}function ma(s,l){if(l==="/")return s;if(!s.toLowerCase().startsWith(l.toLowerCase()))return null;let r=l.endsWith("/")?l.length-1:l.length,o=s.charAt(r);return o&&o!=="/"?null:s.slice(r)||"/"}var d0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function m0(s,l="/"){let{pathname:r,search:o="",hash:f=""}=typeof s=="string"?Pn(s):s,d;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?d=yh(r.substring(1),"/"):d=yh(r,l)):d=l,{pathname:d,search:g0(o),hash:v0(f)}}function yh(s,l){let r=l.replace(/\/+$/,"").split("/");return s.split("/").forEach(f=>{f===".."?r.length>1&&r.pop():f!=="."&&r.push(f)}),r.length>1?r.join("/"):"/"}function vu(s,l,r,o){return`Cannot include a '${s}' character in a manually specified \`to.${l}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function h0(s){return s.filter((l,r)=>r===0||l.route.path&&l.route.path.length>0)}function Jh(s){let l=h0(s);return l.map((r,o)=>o===l.length-1?r.pathname:r.pathnameBase)}function Ou(s,l,r,o=!1){let f;typeof s=="string"?f=Pn(s):(f={...s},He(!f.pathname||!f.pathname.includes("?"),vu("?","pathname","search",f)),He(!f.pathname||!f.pathname.includes("#"),vu("#","pathname","hash",f)),He(!f.search||!f.search.includes("#"),vu("#","search","hash",f)));let d=s===""||f.pathname==="",h=d?"/":f.pathname,g;if(h==null)g=r;else{let y=l.length-1;if(!o&&h.startsWith("..")){let E=h.split("/");for(;E[0]==="..";)E.shift(),y-=1;f.pathname=E.join("/")}g=y>=0?l[y]:"/"}let v=m0(f,g),p=h&&h!=="/"&&h.endsWith("/"),b=(d||h===".")&&r.endsWith("/");return!v.pathname.endsWith("/")&&(p||b)&&(v.pathname+="/"),v}var Kt=s=>s.join("/").replace(/\/\/+/g,"/"),p0=s=>s.replace(/\/+$/,"").replace(/^\/*/,"/"),g0=s=>!s||s==="?"?"":s.startsWith("?")?s:"?"+s,v0=s=>!s||s==="#"?"":s.startsWith("#")?s:"#"+s,x0=class{constructor(s,l,r,o=!1){this.status=s,this.statusText=l||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function y0(s){return s!=null&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.internal=="boolean"&&"data"in s}function b0(s){return s.map(l=>l.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Fh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Wh(s,l){let r=s;if(typeof r!="string"||!d0.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let o=r,f=!1;if(Fh)try{let d=new URL(window.location.href),h=r.startsWith("//")?new URL(d.protocol+r):new URL(r),g=ma(h.pathname,l);h.origin===d.origin&&g!=null?r=g+h.search+h.hash:f=!0}catch{Zt(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:f,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Ph=["POST","PUT","PATCH","DELETE"];new Set(Ph);var S0=["GET",...Ph];new Set(S0);var In=N.createContext(null);In.displayName="DataRouter";var Us=N.createContext(null);Us.displayName="DataRouterState";var N0=N.createContext(!1),Ih=N.createContext({isTransitioning:!1});Ih.displayName="ViewTransition";var j0=N.createContext(new Map);j0.displayName="Fetchers";var E0=N.createContext(null);E0.displayName="Await";var _t=N.createContext(null);_t.displayName="Navigation";var ti=N.createContext(null);ti.displayName="Location";var Bt=N.createContext({outlet:null,matches:[],isDataRoute:!1});Bt.displayName="Route";var Au=N.createContext(null);Au.displayName="RouteError";var ep="REACT_ROUTER_ERROR",C0="REDIRECT",R0="ROUTE_ERROR_RESPONSE";function T0(s){if(s.startsWith(`${ep}:${C0}:{`))try{let l=JSON.parse(s.slice(28));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.location=="string"&&typeof l.reloadDocument=="boolean"&&typeof l.replace=="boolean")return l}catch{}}function w0(s){if(s.startsWith(`${ep}:${R0}:{`))try{let l=JSON.parse(s.slice(40));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string")return new x0(l.status,l.statusText,l.data)}catch{}}function O0(s,{relative:l}={}){He(ai(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:o}=N.useContext(_t),{hash:f,pathname:d,search:h}=li(s,{relative:l}),g=d;return r!=="/"&&(g=d==="/"?r:Kt([r,d])),o.createHref({pathname:g,search:h,hash:f})}function ai(){return N.useContext(ti)!=null}function Ya(){return He(ai(),"useLocation() may be used only in the context of a <Router> component."),N.useContext(ti).location}var tp="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ap(s){N.useContext(_t).static||N.useLayoutEffect(s)}function Lt(){let{isDataRoute:s}=N.useContext(Bt);return s?X0():A0()}function A0(){He(ai(),"useNavigate() may be used only in the context of a <Router> component.");let s=N.useContext(In),{basename:l,navigator:r}=N.useContext(_t),{matches:o}=N.useContext(Bt),{pathname:f}=Ya(),d=JSON.stringify(Jh(o)),h=N.useRef(!1);return ap(()=>{h.current=!0}),N.useCallback((v,p={})=>{if(Zt(h.current,tp),!h.current)return;if(typeof v=="number"){r.go(v);return}let b=Ou(v,JSON.parse(d),f,p.relative==="path");s==null&&l!=="/"&&(b.pathname=b.pathname==="/"?l:Kt([l,b.pathname])),(p.replace?r.replace:r.push)(b,p.state,p)},[l,r,d,f,s])}var z0=N.createContext(null);function D0(s){let l=N.useContext(Bt).outlet;return N.useMemo(()=>l&&N.createElement(z0.Provider,{value:s},l),[l,s])}function ni(){let{matches:s}=N.useContext(Bt),l=s[s.length-1];return l?l.params:{}}function li(s,{relative:l}={}){let{matches:r}=N.useContext(Bt),{pathname:o}=Ya(),f=JSON.stringify(Jh(r));return N.useMemo(()=>Ou(s,JSON.parse(f),o,l==="path"),[s,f,o,l])}function _0(s,l){return np(s,l)}function np(s,l,r){var A;He(ai(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=N.useContext(_t),{matches:f}=N.useContext(Bt),d=f[f.length-1],h=d?d.params:{},g=d?d.pathname:"/",v=d?d.pathnameBase:"/",p=d&&d.route;{let M=p&&p.path||"";ip(g,!p||M.endsWith("*")||M.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${M}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
67
+
68
+ Please change the parent <Route path="${M}"> to <Route path="${M==="/"?"*":`${M}/*`}">.`)}let b=Ya(),y;if(l){let M=typeof l=="string"?Pn(l):l;He(v==="/"||((A=M.pathname)==null?void 0:A.startsWith(v)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${v}" but pathname "${M.pathname}" was given in the \`location\` prop.`),y=M}else y=b;let E=y.pathname||"/",O=E;if(v!=="/"){let M=v.replace(/^\//,"").split("/");O="/"+E.replace(/^\//,"").split("/").slice(M.length).join("/")}let T=Kh(s,{pathname:O});Zt(p||T!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Zt(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let R=B0(T&&T.map(M=>Object.assign({},M,{params:Object.assign({},h,M.params),pathname:Kt([v,o.encodeLocation?o.encodeLocation(M.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathname]),pathnameBase:M.pathnameBase==="/"?v:Kt([v,o.encodeLocation?o.encodeLocation(M.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathnameBase])})),f,r);return l&&R?N.createElement(ti.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...y},navigationType:"POP"}},R):R}function L0(){let s=V0(),l=y0(s)?`${s.status} ${s.statusText}`:s instanceof Error?s.message:JSON.stringify(s),r=s instanceof Error?s.stack:null,o="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:o},d={padding:"2px 4px",backgroundColor:o},h=null;return console.error("Error handled by React Router default ErrorBoundary:",s),h=N.createElement(N.Fragment,null,N.createElement("p",null,"💿 Hey developer 👋"),N.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",N.createElement("code",{style:d},"ErrorBoundary")," or"," ",N.createElement("code",{style:d},"errorElement")," prop on your route.")),N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},l),r?N.createElement("pre",{style:f},r):null,h)}var M0=N.createElement(L0,null),lp=class extends N.Component{constructor(s){super(s),this.state={location:s.location,revalidation:s.revalidation,error:s.error}}static getDerivedStateFromError(s){return{error:s}}static getDerivedStateFromProps(s,l){return l.location!==s.location||l.revalidation!=="idle"&&s.revalidation==="idle"?{error:s.error,location:s.location,revalidation:s.revalidation}:{error:s.error!==void 0?s.error:l.error,location:l.location,revalidation:s.revalidation||l.revalidation}}componentDidCatch(s,l){this.props.onError?this.props.onError(s,l):console.error("React Router caught the following error during render",s)}render(){let s=this.state.error;if(this.context&&typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){const r=w0(s.digest);r&&(s=r)}let l=s!==void 0?N.createElement(Bt.Provider,{value:this.props.routeContext},N.createElement(Au.Provider,{value:s,children:this.props.component})):this.props.children;return this.context?N.createElement(U0,{error:s},l):l}};lp.contextType=N0;var xu=new WeakMap;function U0({children:s,error:l}){let{basename:r}=N.useContext(_t);if(typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){let o=T0(l.digest);if(o){let f=xu.get(l);if(f)throw f;let d=Wh(o.location,r);if(Fh&&!xu.get(l))if(d.isExternal||o.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:o.replace}));throw xu.set(l,h),h}return N.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return s}function H0({routeContext:s,match:l,children:r}){let o=N.useContext(In);return o&&o.static&&o.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=l.route.id),N.createElement(Bt.Provider,{value:s},r)}function B0(s,l=[],r){let o=r==null?void 0:r.state;if(s==null){if(!o)return null;if(o.errors)s=o.matches;else if(l.length===0&&!o.initialized&&o.matches.length>0)s=o.matches;else return null}let f=s,d=o==null?void 0:o.errors;if(d!=null){let b=f.findIndex(y=>y.route.id&&(d==null?void 0:d[y.route.id])!==void 0);He(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),f=f.slice(0,Math.min(f.length,b+1))}let h=!1,g=-1;if(r&&o){h=o.renderFallback;for(let b=0;b<f.length;b++){let y=f[b];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(g=b),y.route.id){let{loaderData:E,errors:O}=o,T=y.route.loader&&!E.hasOwnProperty(y.route.id)&&(!O||O[y.route.id]===void 0);if(y.route.lazy||T){r.isStatic&&(h=!0),g>=0?f=f.slice(0,g+1):f=[f[0]];break}}}}let v=r==null?void 0:r.onError,p=o&&v?(b,y)=>{var E,O;v(b,{location:o.location,params:((O=(E=o.matches)==null?void 0:E[0])==null?void 0:O.params)??{},unstable_pattern:b0(o.matches),errorInfo:y})}:void 0;return f.reduceRight((b,y,E)=>{let O,T=!1,R=null,A=null;o&&(O=d&&y.route.id?d[y.route.id]:void 0,R=y.route.errorElement||M0,h&&(g<0&&E===0?(ip("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,A=null):g===E&&(T=!0,A=y.route.hydrateFallbackElement||null)));let M=l.concat(f.slice(0,E+1)),K=()=>{let $;return O?$=R:T?$=A:y.route.Component?$=N.createElement(y.route.Component,null):y.route.element?$=y.route.element:$=b,N.createElement(H0,{match:y,routeContext:{outlet:b,matches:M,isDataRoute:o!=null},children:$})};return o&&(y.route.ErrorBoundary||y.route.errorElement||E===0)?N.createElement(lp,{location:o.location,revalidation:o.revalidation,component:R,error:O,children:K(),routeContext:{outlet:null,matches:M,isDataRoute:!0},onError:p}):K()},null)}function zu(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function q0(s){let l=N.useContext(In);return He(l,zu(s)),l}function Y0(s){let l=N.useContext(Us);return He(l,zu(s)),l}function G0(s){let l=N.useContext(Bt);return He(l,zu(s)),l}function Du(s){let l=G0(s),r=l.matches[l.matches.length-1];return He(r.route.id,`${s} can only be used on routes that contain a unique "id"`),r.route.id}function k0(){return Du("useRouteId")}function V0(){var o;let s=N.useContext(Au),l=Y0("useRouteError"),r=Du("useRouteError");return s!==void 0?s:(o=l.errors)==null?void 0:o[r]}function X0(){let{router:s}=q0("useNavigate"),l=Du("useNavigate"),r=N.useRef(!1);return ap(()=>{r.current=!0}),N.useCallback(async(f,d={})=>{Zt(r.current,tp),r.current&&(typeof f=="number"?await s.navigate(f):await s.navigate(f,{fromRouteId:l,...d}))},[s,l])}var bh={};function ip(s,l,r){!l&&!bh[s]&&(bh[s]=!0,Zt(!1,r))}N.memo(Q0);function Q0({routes:s,future:l,state:r,isStatic:o,onError:f}){return np(s,void 0,{state:r,isStatic:o,onError:f})}function K0(s){return D0(s.context)}function dt(s){He(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Z0({basename:s="/",children:l=null,location:r,navigationType:o="POP",navigator:f,static:d=!1,unstable_useTransitions:h}){He(!ai(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=s.replace(/^\/*/,"/"),v=N.useMemo(()=>({basename:g,navigator:f,static:d,unstable_useTransitions:h,future:{}}),[g,f,d,h]);typeof r=="string"&&(r=Pn(r));let{pathname:p="/",search:b="",hash:y="",state:E=null,key:O="default",unstable_mask:T}=r,R=N.useMemo(()=>{let A=ma(p,g);return A==null?null:{location:{pathname:A,search:b,hash:y,state:E,key:O,unstable_mask:T},navigationType:o}},[g,p,b,y,E,O,o,T]);return Zt(R!=null,`<Router basename="${g}"> is not able to match the URL "${p}${b}${y}" because it does not start with the basename, so the <Router> won't render anything.`),R==null?null:N.createElement(_t.Provider,{value:v},N.createElement(ti.Provider,{children:l,value:R}))}function $0({children:s,location:l}){return _0(Tu(s),l)}function Tu(s,l=[]){let r=[];return N.Children.forEach(s,(o,f)=>{if(!N.isValidElement(o))return;let d=[...l,f];if(o.type===N.Fragment){r.push.apply(r,Tu(o.props.children,d));return}He(o.type===dt,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),He(!o.props.index||!o.props.children,"An index route cannot have child routes.");let h={id:o.props.id||d.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(h.children=Tu(o.props.children,d)),r.push(h)}),r}var Ts="get",ws="application/x-www-form-urlencoded";function Hs(s){return typeof HTMLElement<"u"&&s instanceof HTMLElement}function J0(s){return Hs(s)&&s.tagName.toLowerCase()==="button"}function F0(s){return Hs(s)&&s.tagName.toLowerCase()==="form"}function W0(s){return Hs(s)&&s.tagName.toLowerCase()==="input"}function P0(s){return!!(s.metaKey||s.altKey||s.ctrlKey||s.shiftKey)}function I0(s,l){return s.button===0&&(!l||l==="_self")&&!P0(s)}var Es=null;function eb(){if(Es===null)try{new FormData(document.createElement("form"),0),Es=!1}catch{Es=!0}return Es}var tb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function yu(s){return s!=null&&!tb.has(s)?(Zt(!1,`"${s}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ws}"`),null):s}function ab(s,l){let r,o,f,d,h;if(F0(s)){let g=s.getAttribute("action");o=g?ma(g,l):null,r=s.getAttribute("method")||Ts,f=yu(s.getAttribute("enctype"))||ws,d=new FormData(s)}else if(J0(s)||W0(s)&&(s.type==="submit"||s.type==="image")){let g=s.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=s.getAttribute("formaction")||g.getAttribute("action");if(o=v?ma(v,l):null,r=s.getAttribute("formmethod")||g.getAttribute("method")||Ts,f=yu(s.getAttribute("formenctype"))||yu(g.getAttribute("enctype"))||ws,d=new FormData(g,s),!eb()){let{name:p,type:b,value:y}=s;if(b==="image"){let E=p?`${p}.`:"";d.append(`${E}x`,"0"),d.append(`${E}y`,"0")}else p&&d.append(p,y)}}else{if(Hs(s))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Ts,o=null,f=ws,h=s}return d&&f==="text/plain"&&(h=d,d=void 0),{action:o,method:r.toLowerCase(),encType:f,formData:d,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function _u(s,l){if(s===!1||s===null||typeof s>"u")throw new Error(l)}function nb(s,l,r,o){let f=typeof s=="string"?new URL(s,typeof window>"u"?"server://singlefetch/":window.location.origin):s;return r?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${o}`:f.pathname=`${f.pathname}.${o}`:f.pathname==="/"?f.pathname=`_root.${o}`:l&&ma(f.pathname,l)==="/"?f.pathname=`${l.replace(/\/$/,"")}/_root.${o}`:f.pathname=`${f.pathname.replace(/\/$/,"")}.${o}`,f}async function lb(s,l){if(s.id in l)return l[s.id];try{let r=await import(s.module);return l[s.id]=r,r}catch(r){return console.error(`Error loading route module \`${s.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function ib(s){return s==null?!1:s.href==null?s.rel==="preload"&&typeof s.imageSrcSet=="string"&&typeof s.imageSizes=="string":typeof s.rel=="string"&&typeof s.href=="string"}async function sb(s,l,r){let o=await Promise.all(s.map(async f=>{let d=l.routes[f.route.id];if(d){let h=await lb(d,r);return h.links?h.links():[]}return[]}));return cb(o.flat(1).filter(ib).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function Sh(s,l,r,o,f,d){let h=(v,p)=>r[p]?v.route.id!==r[p].route.id:!0,g=(v,p)=>{var b;return r[p].pathname!==v.pathname||((b=r[p].route.path)==null?void 0:b.endsWith("*"))&&r[p].params["*"]!==v.params["*"]};return d==="assets"?l.filter((v,p)=>h(v,p)||g(v,p)):d==="data"?l.filter((v,p)=>{var y;let b=o.routes[v.route.id];if(!b||!b.hasLoader)return!1;if(h(v,p)||g(v,p))return!0;if(v.route.shouldRevalidate){let E=v.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:((y=r[0])==null?void 0:y.params)||{},nextUrl:new URL(s,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof E=="boolean")return E}return!0}):[]}function rb(s,l,{includeHydrateFallback:r}={}){return ob(s.map(o=>{let f=l.routes[o.route.id];if(!f)return[];let d=[f.module];return f.clientActionModule&&(d=d.concat(f.clientActionModule)),f.clientLoaderModule&&(d=d.concat(f.clientLoaderModule)),r&&f.hydrateFallbackModule&&(d=d.concat(f.hydrateFallbackModule)),f.imports&&(d=d.concat(f.imports)),d}).flat(1))}function ob(s){return[...new Set(s)]}function ub(s){let l={},r=Object.keys(s).sort();for(let o of r)l[o]=s[o];return l}function cb(s,l){let r=new Set;return new Set(l),s.reduce((o,f)=>{let d=JSON.stringify(ub(f));return r.has(d)||(r.add(d),o.push({key:d,link:f})),o},[])}function sp(){let s=N.useContext(In);return _u(s,"You must render this element inside a <DataRouterContext.Provider> element"),s}function fb(){let s=N.useContext(Us);return _u(s,"You must render this element inside a <DataRouterStateContext.Provider> element"),s}var Lu=N.createContext(void 0);Lu.displayName="FrameworkContext";function rp(){let s=N.useContext(Lu);return _u(s,"You must render this element inside a <HydratedRouter> element"),s}function db(s,l){let r=N.useContext(Lu),[o,f]=N.useState(!1),[d,h]=N.useState(!1),{onFocus:g,onBlur:v,onMouseEnter:p,onMouseLeave:b,onTouchStart:y}=l,E=N.useRef(null);N.useEffect(()=>{if(s==="render"&&h(!0),s==="viewport"){let R=M=>{M.forEach(K=>{h(K.isIntersecting)})},A=new IntersectionObserver(R,{threshold:.5});return E.current&&A.observe(E.current),()=>{A.disconnect()}}},[s]),N.useEffect(()=>{if(o){let R=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(R)}}},[o]);let O=()=>{f(!0)},T=()=>{f(!1),h(!1)};return r?s!=="intent"?[d,E,{}]:[d,E,{onFocus:Fl(g,O),onBlur:Fl(v,T),onMouseEnter:Fl(p,O),onMouseLeave:Fl(b,T),onTouchStart:Fl(y,O)}]:[!1,E,{}]}function Fl(s,l){return r=>{s&&s(r),r.defaultPrevented||l(r)}}function mb({page:s,...l}){let{router:r}=sp(),o=N.useMemo(()=>Kh(r.routes,s,r.basename),[r.routes,s,r.basename]);return o?N.createElement(pb,{page:s,matches:o,...l}):null}function hb(s){let{manifest:l,routeModules:r}=rp(),[o,f]=N.useState([]);return N.useEffect(()=>{let d=!1;return sb(s,l,r).then(h=>{d||f(h)}),()=>{d=!0}},[s,l,r]),o}function pb({page:s,matches:l,...r}){let o=Ya(),{future:f,manifest:d,routeModules:h}=rp(),{basename:g}=sp(),{loaderData:v,matches:p}=fb(),b=N.useMemo(()=>Sh(s,l,p,d,o,"data"),[s,l,p,d,o]),y=N.useMemo(()=>Sh(s,l,p,d,o,"assets"),[s,l,p,d,o]),E=N.useMemo(()=>{if(s===o.pathname+o.search+o.hash)return[];let R=new Set,A=!1;if(l.forEach(K=>{var J;let $=d.routes[K.route.id];!$||!$.hasLoader||(!b.some(I=>I.route.id===K.route.id)&&K.route.id in v&&((J=h[K.route.id])!=null&&J.shouldRevalidate)||$.hasClientLoader?A=!0:R.add(K.route.id))}),R.size===0)return[];let M=nb(s,g,f.unstable_trailingSlashAwareDataRequests,"data");return A&&R.size>0&&M.searchParams.set("_routes",l.filter(K=>R.has(K.route.id)).map(K=>K.route.id).join(",")),[M.pathname+M.search]},[g,f.unstable_trailingSlashAwareDataRequests,v,o,d,b,l,s,h]),O=N.useMemo(()=>rb(y,d),[y,d]),T=hb(y);return N.createElement(N.Fragment,null,E.map(R=>N.createElement("link",{key:R,rel:"prefetch",as:"fetch",href:R,...r})),O.map(R=>N.createElement("link",{key:R,rel:"modulepreload",href:R,...r})),T.map(({key:R,link:A})=>N.createElement("link",{key:R,nonce:r.nonce,...A,crossOrigin:A.crossOrigin??r.crossOrigin})))}function gb(...s){return l=>{s.forEach(r=>{typeof r=="function"?r(l):r!=null&&(r.current=l)})}}var vb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{vb&&(window.__reactRouterVersion="7.13.2")}catch{}function xb({basename:s,children:l,unstable_useTransitions:r,window:o}){let f=N.useRef();f.current==null&&(f.current=Jy({window:o,v5Compat:!0}));let d=f.current,[h,g]=N.useState({action:d.action,location:d.location}),v=N.useCallback(p=>{r===!1?g(p):N.startTransition(()=>g(p))},[r]);return N.useLayoutEffect(()=>d.listen(v),[d,v]),N.createElement(Z0,{basename:s,children:l,location:h.location,navigationType:h.action,navigator:d,unstable_useTransitions:r})}var op=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,up=N.forwardRef(function({onClick:l,discover:r="render",prefetch:o="none",relative:f,reloadDocument:d,replace:h,unstable_mask:g,state:v,target:p,to:b,preventScrollReset:y,viewTransition:E,unstable_defaultShouldRevalidate:O,...T},R){let{basename:A,navigator:M,unstable_useTransitions:K}=N.useContext(_t),$=typeof b=="string"&&op.test(b),J=Wh(b,A);b=J.to;let I=O0(b,{relative:f}),X=Ya(),V=null;if(g){let G=Ou(g,[],X.unstable_mask?X.unstable_mask.pathname:"/",!0);A!=="/"&&(G.pathname=G.pathname==="/"?A:Kt([A,G.pathname])),V=M.createHref(G)}let[ne,Q,le]=db(o,T),Me=Sb(b,{replace:h,unstable_mask:g,state:v,target:p,preventScrollReset:y,relative:f,viewTransition:E,unstable_defaultShouldRevalidate:O,unstable_useTransitions:K});function ae(G){l&&l(G),G.defaultPrevented||Me(G)}let se=!(J.isExternal||d),re=N.createElement("a",{...T,...le,href:(se?V:void 0)||J.absoluteURL||I,onClick:se?ae:l,ref:gb(R,Q),target:p,"data-discover":!$&&r==="render"?"true":void 0});return ne&&!$?N.createElement(N.Fragment,null,re,N.createElement(mb,{page:I})):re});up.displayName="Link";var cp=N.forwardRef(function({"aria-current":l="page",caseSensitive:r=!1,className:o="",end:f=!1,style:d,to:h,viewTransition:g,children:v,...p},b){let y=li(h,{relative:p.relative}),E=Ya(),O=N.useContext(Us),{navigator:T,basename:R}=N.useContext(_t),A=O!=null&&Rb(y)&&g===!0,M=T.encodeLocation?T.encodeLocation(y).pathname:y.pathname,K=E.pathname,$=O&&O.navigation&&O.navigation.location?O.navigation.location.pathname:null;r||(K=K.toLowerCase(),$=$?$.toLowerCase():null,M=M.toLowerCase()),$&&R&&($=ma($,R)||$);const J=M!=="/"&&M.endsWith("/")?M.length-1:M.length;let I=K===M||!f&&K.startsWith(M)&&K.charAt(J)==="/",X=$!=null&&($===M||!f&&$.startsWith(M)&&$.charAt(M.length)==="/"),V={isActive:I,isPending:X,isTransitioning:A},ne=I?l:void 0,Q;typeof o=="function"?Q=o(V):Q=[o,I?"active":null,X?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let le=typeof d=="function"?d(V):d;return N.createElement(up,{...p,"aria-current":ne,className:Q,ref:b,style:le,to:h,viewTransition:g},typeof v=="function"?v(V):v)});cp.displayName="NavLink";var yb=N.forwardRef(({discover:s="render",fetcherKey:l,navigate:r,reloadDocument:o,replace:f,state:d,method:h=Ts,action:g,onSubmit:v,relative:p,preventScrollReset:b,viewTransition:y,unstable_defaultShouldRevalidate:E,...O},T)=>{let{unstable_useTransitions:R}=N.useContext(_t),A=Eb(),M=Cb(g,{relative:p}),K=h.toLowerCase()==="get"?"get":"post",$=typeof g=="string"&&op.test(g),J=I=>{if(v&&v(I),I.defaultPrevented)return;I.preventDefault();let X=I.nativeEvent.submitter,V=(X==null?void 0:X.getAttribute("formmethod"))||h,ne=()=>A(X||I.currentTarget,{fetcherKey:l,method:V,navigate:r,replace:f,state:d,relative:p,preventScrollReset:b,viewTransition:y,unstable_defaultShouldRevalidate:E});R&&r!==!1?N.startTransition(()=>ne()):ne()};return N.createElement("form",{ref:T,method:K,action:M,onSubmit:o?v:J,...O,"data-discover":!$&&s==="render"?"true":void 0})});yb.displayName="Form";function bb(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function fp(s){let l=N.useContext(In);return He(l,bb(s)),l}function Sb(s,{target:l,replace:r,unstable_mask:o,state:f,preventScrollReset:d,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:v,unstable_useTransitions:p}={}){let b=Lt(),y=Ya(),E=li(s,{relative:h});return N.useCallback(O=>{if(I0(O,l)){O.preventDefault();let T=r!==void 0?r:ei(y)===ei(E),R=()=>b(s,{replace:T,unstable_mask:o,state:f,preventScrollReset:d,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:v});p?N.startTransition(()=>R()):R()}},[y,b,E,r,o,f,l,s,d,h,g,v,p])}var Nb=0,jb=()=>`__${String(++Nb)}__`;function Eb(){let{router:s}=fp("useSubmit"),{basename:l}=N.useContext(_t),r=k0(),o=s.fetch,f=s.navigate;return N.useCallback(async(d,h={})=>{let{action:g,method:v,encType:p,formData:b,body:y}=ab(d,l);if(h.navigate===!1){let E=h.fetcherKey||jb();await o(E,r,h.action||g,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:b,body:y,formMethod:h.method||v,formEncType:h.encType||p,flushSync:h.flushSync})}else await f(h.action||g,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:b,body:y,formMethod:h.method||v,formEncType:h.encType||p,replace:h.replace,state:h.state,fromRouteId:r,flushSync:h.flushSync,viewTransition:h.viewTransition})},[o,f,l,r])}function Cb(s,{relative:l}={}){let{basename:r}=N.useContext(_t),o=N.useContext(Bt);He(o,"useFormAction must be used inside a RouteContext");let[f]=o.matches.slice(-1),d={...li(s||".",{relative:l})},h=Ya();if(s==null){d.search=h.search;let g=new URLSearchParams(d.search),v=g.getAll("index");if(v.some(b=>b==="")){g.delete("index"),v.filter(y=>y).forEach(y=>g.append("index",y));let b=g.toString();d.search=b?`?${b}`:""}}return(!s||s===".")&&f.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(d.pathname=d.pathname==="/"?r:Kt([r,d.pathname])),ei(d)}function Rb(s,{relative:l}={}){let r=N.useContext(Ih);He(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=fp("useViewTransitionState"),f=li(s,{relative:l});if(!r.isTransitioning)return!1;let d=ma(r.currentLocation.pathname,o)||r.currentLocation.pathname,h=ma(r.nextLocation.pathname,o)||r.nextLocation.pathname;return Ds(f.pathname,h)!=null||Ds(f.pathname,d)!=null}const Tb=[{code:"en",label:"EN",icon:"language"},{code:"zh-CN",label:"中文",icon:"translate"}];function wb(){const{i18n:s}=Te(),l=s.resolvedLanguage??"en";return c.jsx("div",{className:"flex gap-1",children:Tb.map(({code:r,label:o,icon:f})=>c.jsxs("button",{type:"button",onClick:()=>void s.changeLanguage(r),className:"flex items-center gap-2 px-3 py-2 rounded-md text-xs font-medium transition-all duration-200 "+(l===r?"bg-surface-variant text-on-surface":"text-on-surface-variant opacity-80 hover:opacity-100 hover:bg-surface-variant/50"),children:[c.jsx("span",{className:"material-symbols-outlined "+(l===r?"text-primary-container":""),style:{fontSize:"1.1rem"},children:f}),o]},r))})}const Ob=[{to:"/",icon:"dashboard",labelKey:"nav.dashboard"},{to:"/providers",icon:"settings_input_component",labelKey:"nav.providers"},{to:"/scenarios",icon:"schema",labelKey:"nav.scenarios"},{to:"/run",icon:"play_circle",labelKey:"nav.newRun"},{to:"/history",icon:"history",labelKey:"nav.runHistory"}];function Ab(){const s=Lt(),{t:l}=Te();return c.jsxs("div",{className:"flex h-screen bg-surface text-on-surface overflow-hidden",children:[c.jsxs("aside",{className:"hidden md:flex flex-col h-full w-64 shrink-0 overflow-hidden bg-surface-container-low py-4 font-body text-xs font-medium border-r border-outline-variant/5",children:[c.jsxs("div",{className:"px-4 mb-4 flex items-center gap-2.5",children:[c.jsx("div",{className:"w-8 h-8 rounded-lg primary-gradient flex items-center justify-center",children:c.jsx("span",{className:"material-symbols-outlined text-white",style:{fontSize:"1rem"},children:"science"})}),c.jsxs("div",{className:"leading-tight",children:[c.jsx("div",{className:"text-sm font-bold text-on-surface tracking-tight",children:l("nav.testBench")}),c.jsx("div",{className:"text-[0.6rem] text-on-surface-variant",children:l("nav.envLabel")})]})]}),c.jsx("nav",{className:"flex-1 space-y-1 mt-2",children:Ob.map(({to:r,icon:o,labelKey:f})=>c.jsx(cp,{to:r,end:r==="/",className:({isActive:d})=>"mx-2 flex items-center gap-3 px-3 py-2.5 rounded-md transition-all duration-200 "+(d?"bg-surface-variant text-on-surface":"text-on-surface-variant opacity-80 hover:opacity-100 hover:bg-surface-variant/50"),children:({isActive:d})=>c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"material-symbols-outlined "+(d?"text-primary-container":""),children:o}),l(f)]})},r))}),c.jsxs("div",{className:"px-4 mt-auto space-y-3",children:[c.jsx(wb,{}),c.jsxs("button",{type:"button",onClick:()=>s("/scenarios/new"),className:"w-full bg-surface-container-highest text-on-surface py-2 rounded-md font-bold hover:bg-surface-bright transition-colors flex items-center justify-center gap-2",children:[c.jsx("span",{className:"material-symbols-outlined",style:{fontSize:"1rem"},children:"add_box"}),l("nav.createScenario")]})]})]}),c.jsx("main",{className:"flex-1 overflow-y-auto bg-surface p-6",children:c.jsx(K0,{})})]})}const dp=window.location.origin;async function Bs(s,l){const r=await fetch(`${dp}${s}`,{headers:{"Content-Type":"application/json",...l==null?void 0:l.headers},...l});if(!r.ok){const o=await r.text().catch(()=>"");throw new Error(`API ${r.status}: ${r.statusText} – ${o}`)}if(r.status!==204)return r.json()}function da(s){return Bs(s)}function Cs(s,l){return Bs(s,{method:"POST",body:JSON.stringify(l)})}function Nh(s,l){return Bs(s,{method:"PUT",body:JSON.stringify(l)})}function bu(s){return Bs(s,{method:"DELETE"})}function jh(s){const l=Object.entries(s).filter(r=>r[1]!==void 0);return l.length===0?"":"?"+new URLSearchParams(l).toString()}const ze={providers:{list:()=>da("/api/providers"),get:s=>da(`/api/providers/${s}`),create:s=>Cs("/api/providers",s),update:(s,l)=>Nh(`/api/providers/${s}`,l),delete:s=>bu(`/api/providers/${s}`)},scenarios:{list:()=>da("/api/scenarios"),get:s=>da(`/api/scenarios/${s}`),create:s=>Cs("/api/scenarios",s),update:(s,l)=>Nh(`/api/scenarios/${s}`,l),delete:s=>bu(`/api/scenarios/${s}`)},runs:{list:s=>da(`/api/runs${jh(s??{})}`),get:s=>da(`/api/runs/${s}`),getSummary:s=>da(`/api/runs/${s}/summary`),create:s=>Cs("/api/runs",s),delete:s=>bu(`/api/runs/${s}`)},evaluations:{list:s=>da(`/api/evaluations${jh(s??{})}`),get:s=>da(`/api/evaluations/${s}`),create:s=>Cs("/api/evaluations",s)}};function zb(s,l){const r=s.startsWith("http")?s:`${dp}${s}`,o=new EventSource(r);return l.onOpen&&o.addEventListener("open",l.onOpen),l.onMessage&&o.addEventListener("message",l.onMessage),l.onError&&o.addEventListener("error",l.onError),()=>{o.close()}}const Eh={completed:{dot:"bg-green-400",text:"text-green-400"},running:{dot:"bg-primary animate-pulse",text:"text-primary-fixed-dim"},failed:{dot:"bg-error",text:"text-error"},pending:{dot:"bg-outline",text:"text-on-surface-variant"},cancelled:{dot:"bg-outline",text:"text-on-surface-variant"}};function qa({status:s}){const{t:l}=Te(),r=Eh[s]??Eh.pending;return c.jsxs("span",{className:`inline-flex items-center gap-1.5 px-2 py-0.5 rounded-full bg-surface-container-high ${r.text} font-medium`,children:[c.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${r.dot}`}),l(`status.${s}`)]})}function qs(s){const l=Math.floor(s/1e3),r=Math.floor(l/60),o=l%60;return r>0?`${r}:${o.toString().padStart(2,"0")}`:`${o}s`}function Db(s){return new Date(s).toLocaleDateString(Qh(),{day:"2-digit",month:"short",year:"numeric"})}function wu(s){return new Date(s).toLocaleDateString(Qh(),{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function _b(){const s=Lt(),{t:l}=Te(),[r,o]=N.useState([]),[f,d]=N.useState([]),[h,g]=N.useState([]),[v,p]=N.useState(!0);N.useEffect(()=>{Promise.all([ze.providers.list().catch(()=>[]),ze.scenarios.list().catch(()=>[]),ze.runs.list().catch(()=>[])]).then(([E,O,T])=>{o(E),d(O),g(T),p(!1)})},[]);const b=h.slice(0,5),y=[{label:l("dashboard.totalProviders"),value:r.length,icon:"settings_suggest"},{label:l("dashboard.totalScenarios"),value:f.length,icon:"account_tree"},{label:l("dashboard.totalRuns"),value:h.length,icon:"rocket_launch"}];return c.jsxs("div",{children:[c.jsxs("div",{className:"mb-8",children:[c.jsx("h1",{className:"text-2xl font-extrabold tracking-tight text-on-surface mb-1",children:l("dashboard.title")}),c.jsx("p",{className:"text-on-surface-variant text-sm",children:l("dashboard.subtitle")})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 mb-8",children:y.map(E=>c.jsxs("div",{className:"bg-surface-container-low p-5 rounded-md flex flex-col justify-between group hover:bg-surface-container transition-colors",children:[c.jsxs("div",{className:"flex justify-between items-start mb-4",children:[c.jsx("span",{className:"text-on-surface-variant text-[0.65rem] font-bold uppercase tracking-widest",children:E.label}),c.jsx("span",{className:"material-symbols-outlined text-primary/40 group-hover:text-primary transition-colors",children:E.icon})]}),c.jsx("div",{className:"text-2xl font-mono font-bold text-on-surface",children:v?"--":E.value.toLocaleString()})]},E.label))}),c.jsx("div",{className:"grid grid-cols-1 gap-6 mb-8",children:c.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[c.jsxs("div",{onClick:()=>s("/providers/new"),className:"relative overflow-hidden group rounded-xl p-6 bg-surface-container-high border border-outline-variant/10 hover:border-primary/30 transition-all cursor-pointer",children:[c.jsx("div",{className:"absolute top-0 right-0 p-4 opacity-10 group-hover:opacity-20 transition-opacity",children:c.jsx("span",{className:"material-symbols-outlined text-8xl",children:"precision_manufacturing"})}),c.jsxs("div",{className:"relative z-10 h-full flex flex-col",children:[c.jsx("div",{className:"bg-primary-container/20 p-2 w-fit rounded-lg mb-4",children:c.jsx("span",{className:"material-symbols-outlined text-primary",children:"add_circle"})}),c.jsx("h3",{className:"text-lg font-bold text-on-surface mb-2",children:l("dashboard.newProvider")}),c.jsx("p",{className:"text-on-surface-variant text-sm mb-6 flex-1",children:l("dashboard.newProviderDesc")}),c.jsxs("span",{className:"text-primary text-[0.7rem] font-bold flex items-center gap-1",children:[l("dashboard.initializeProvider")," ",c.jsx("span",{className:"material-symbols-outlined text-[0.9rem]",children:"arrow_forward"})]})]})]}),c.jsxs("div",{onClick:()=>s("/run"),className:"relative overflow-hidden group rounded-xl p-6 bg-surface-container-highest border border-outline-variant/10 hover:border-primary/30 transition-all cursor-pointer",children:[c.jsx("div",{className:"absolute inset-0 opacity-20 pointer-events-none bg-gradient-to-br from-primary-container/40 to-transparent"}),c.jsxs("div",{className:"relative z-10 h-full flex flex-col",children:[c.jsx("div",{className:"bg-primary p-2 w-fit rounded-lg mb-4",children:c.jsx("span",{className:"material-symbols-outlined text-on-primary",children:"play_arrow"})}),c.jsx("h3",{className:"text-lg font-bold text-on-surface mb-2",children:l("dashboard.startRun")}),c.jsx("p",{className:"text-on-surface-variant text-sm mb-6 flex-1",children:l("dashboard.startRunDesc")}),c.jsxs("span",{className:"text-on-surface text-[0.7rem] font-bold flex items-center gap-1",children:[l("dashboard.launchEngine")," ",c.jsx("span",{className:"material-symbols-outlined text-[0.9rem]",children:"bolt"})]})]})]})]})}),c.jsxs("div",{className:"bg-surface-container-low rounded-lg overflow-hidden border border-outline-variant/5",children:[c.jsxs("div",{className:"px-6 py-4 flex items-center justify-between bg-surface-container",children:[c.jsx("h2",{className:"text-sm font-bold text-on-surface",children:l("dashboard.recentRuns")}),c.jsx("button",{onClick:()=>s("/history"),className:"text-[0.7rem] text-primary font-bold hover:underline",children:l("dashboard.viewAllHistory")})]}),c.jsx("div",{className:"overflow-x-auto",children:c.jsxs("table",{className:"w-full text-left border-collapse",children:[c.jsx("thead",{className:"bg-surface-container-low text-[0.65rem] text-on-surface-variant uppercase tracking-widest border-b border-outline-variant/10",children:c.jsxs("tr",{children:[c.jsx("th",{className:"px-6 py-3 font-semibold",children:l("table.status")}),c.jsx("th",{className:"px-6 py-3 font-semibold",children:l("table.provider")}),c.jsx("th",{className:"px-6 py-3 font-semibold",children:l("table.scenarioName")}),c.jsx("th",{className:"px-6 py-3 font-semibold",children:l("table.duration")}),c.jsx("th",{className:"px-6 py-3 font-semibold",children:l("table.turns")}),c.jsx("th",{className:"px-6 py-3 font-semibold text-right",children:l("table.action")})]})}),c.jsxs("tbody",{className:"text-[0.75rem] divide-y divide-outline-variant/5",children:[v&&c.jsx("tr",{children:c.jsx("td",{colSpan:6,className:"px-6 py-8 text-center text-on-surface-variant",children:l("common.loading")})}),!v&&b.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:6,className:"px-6 py-8 text-center text-on-surface-variant",children:l("dashboard.noRuns")})}),b.map((E,O)=>{var T,R;return c.jsxs("tr",{className:`hover:bg-surface-container-highest/40 transition-colors ${O%2===1?"bg-surface-container-low/30":""}`,children:[c.jsx("td",{className:"px-6 py-4",children:c.jsx(qa,{status:E.status})}),c.jsx("td",{className:"px-6 py-4 font-mono text-on-surface",children:((T=E.providerSnapshot)==null?void 0:T.name)??E.providerId}),c.jsx("td",{className:"px-6 py-4 text-on-surface-variant",children:((R=E.scenarioSnapshot)==null?void 0:R.name)??E.scenarioId}),c.jsx("td",{className:"px-6 py-4 font-mono",children:qs(E.durationMs)}),c.jsx("td",{className:"px-6 py-4 font-mono text-center",children:String(E.numTurns).padStart(2,"0")}),c.jsx("td",{className:"px-6 py-4 text-right",children:c.jsx("button",{onClick:()=>s(`/runs/${E.id}`),className:"text-on-surface-variant hover:text-on-surface transition-colors",children:c.jsx("span",{className:"material-symbols-outlined",children:"more_vert"})})})]},E.id)})]})]})})]})]})}function Lb(s){return!s||s.length<=6?"****":"****"+s.slice(-6)}const Ch=[{icon:"terminal",color:"bg-primary/10 text-primary"},{icon:"code",color:"bg-tertiary/10 text-tertiary"},{icon:"security",color:"bg-secondary/10 text-secondary"}];function Mb(){const s=Lt(),{t:l}=Te(),[r,o]=N.useState([]),[f,d]=N.useState(!0);N.useEffect(()=>{ze.providers.list().then(o).catch(()=>o([])).finally(()=>d(!1))},[]);function h(g){confirm(l("providers.confirmDelete"))&&ze.providers.delete(g).then(()=>o(v=>v.filter(p=>p.id!==g)))}return c.jsxs("div",{className:"max-w-7xl mx-auto",children:[c.jsxs("div",{className:"flex items-center justify-between mb-8",children:[c.jsxs("div",{children:[c.jsx("h2",{className:"text-2xl font-bold tracking-tight text-on-surface",children:l("providers.title")}),c.jsx("p",{className:"text-xs text-on-surface-variant mt-1",children:l("providers.subtitle")})]}),c.jsxs("button",{onClick:()=>s("/providers/new"),className:"bg-gradient-to-br from-primary-container to-primary hover:opacity-90 text-on-primary-container font-semibold px-5 py-2 rounded-full text-xs flex items-center gap-2 transition-all active:scale-95 shadow-lg shadow-primary-container/20",children:[c.jsx("span",{className:"material-symbols-outlined text-sm",children:"add"}),l("providers.newProvider")]})]}),c.jsx("div",{className:"bg-surface-container rounded-lg overflow-hidden shadow-xl",children:c.jsx("div",{className:"overflow-x-auto",children:c.jsxs("table",{className:"w-full text-left border-collapse",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"bg-surface-container-low/50",children:[c.jsx("th",{className:"px-6 py-4 text-[0.65rem] font-bold text-on-surface-variant uppercase tracking-widest",children:l("table.name")}),c.jsx("th",{className:"px-6 py-4 text-[0.65rem] font-bold text-on-surface-variant uppercase tracking-widest",children:l("table.providerDetails")}),c.jsx("th",{className:"px-6 py-4 text-[0.65rem] font-bold text-on-surface-variant uppercase tracking-widest",children:l("table.model")}),c.jsx("th",{className:"px-6 py-4 text-[0.65rem] font-bold text-on-surface-variant uppercase tracking-widest",children:l("table.createdDate")}),c.jsx("th",{className:"px-6 py-4 text-[0.65rem] font-bold text-on-surface-variant uppercase tracking-widest text-right",children:l("table.actions")})]})}),c.jsxs("tbody",{className:"divide-y divide-outline-variant/10",children:[f&&c.jsx("tr",{children:c.jsx("td",{colSpan:5,className:"px-6 py-8 text-center text-on-surface-variant",children:l("common.loading")})}),!f&&r.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:5,className:"px-6 py-8 text-center text-on-surface-variant",children:l("providers.noProviders")})}),r.map((g,v)=>{const p=Ch[v%Ch.length];return c.jsxs("tr",{className:`hover:bg-surface-container-highest/40 transition-colors group ${v%2===1?"bg-surface-container-low/20":""}`,children:[c.jsx("td",{className:"px-6 py-4",children:c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:`p-2 rounded ${p.color}`,children:c.jsx("span",{className:"material-symbols-outlined text-base",children:p.icon})}),c.jsxs("div",{children:[c.jsx("div",{className:"text-[0.8rem] font-semibold text-on-surface",children:g.name}),c.jsxs("div",{className:"text-[0.65rem] text-on-surface-variant font-mono",children:["ID: ",g.id.slice(0,8)]})]})]})}),c.jsx("td",{className:"px-6 py-4",children:c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("span",{className:"text-[0.7rem] px-2 py-0.5 w-fit rounded-full bg-surface-container-high text-tertiary-fixed-dim border border-outline-variant/20 mb-1 capitalize",children:g.providerName}),g.baseUrl&&c.jsx("div",{className:"text-[0.6rem] font-mono text-on-surface-variant flex flex-col",children:c.jsxs("span",{children:["URL: ",(()=>{try{return new URL(g.baseUrl).hostname}catch{return g.baseUrl}})()]})}),c.jsxs("span",{className:"text-[0.6rem] font-mono text-on-surface-variant",children:["KEY: ",Lb(g.apiKey)]})]})}),c.jsx("td",{className:"px-6 py-4",children:c.jsx("span",{className:"font-mono text-[0.75rem] text-on-surface-variant",children:g.model})}),c.jsx("td",{className:"px-6 py-4 text-[0.75rem] text-on-surface-variant",children:Db(g.createdAt)}),c.jsx("td",{className:"px-6 py-4 text-right",children:c.jsxs("div",{className:"flex items-center justify-end gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:[c.jsx("button",{onClick:()=>s(`/providers/${g.id}/edit`),className:"p-1.5 hover:bg-surface-bright rounded text-on-surface-variant hover:text-on-surface transition-colors",title:l("common.edit"),children:c.jsx("span",{className:"material-symbols-outlined text-[1.1rem]",children:"edit"})}),c.jsx("button",{onClick:()=>ze.providers.create({...g,name:`${g.name} (copy)`}).then(b=>o(y=>[...y,b])),className:"p-1.5 hover:bg-surface-bright rounded text-on-surface-variant hover:text-on-surface transition-colors",title:l("common.duplicate"),children:c.jsx("span",{className:"material-symbols-outlined text-[1.1rem]",children:"content_copy"})}),c.jsx("button",{onClick:()=>h(g.id),className:"p-1.5 hover:bg-error/10 rounded text-on-surface-variant hover:text-error transition-colors",title:l("common.delete"),children:c.jsx("span",{className:"material-symbols-outlined text-[1.1rem]",children:"delete"})})]})})]},g.id)})]})]})})})]})}const Vt="block text-[0.65rem] font-bold uppercase tracking-widest text-on-surface-variant mb-1.5",Xt="w-full bg-surface-container-low border border-outline-variant/20 rounded-md px-3 py-2 text-sm text-on-surface focus:ring-1 focus:ring-primary-container focus:border-primary-container placeholder:text-outline/50",Ub={name:"",description:"",providerName:"anthropic",model:"",apiKey:"",baseUrl:"",temperature:void 0,maxTokens:void 0,topP:void 0,timeoutSeconds:300};function Rh(){const{id:s}=ni(),l=Lt(),{t:r}=Te(),o=!s,[f,d]=N.useState(Ub),[h,g]=N.useState(!1),[v,p]=N.useState(!o),[b,y]=N.useState(null);N.useEffect(()=>{if(!s)return;let A=!1;return ze.providers.get(s).then(M=>{A||(d({name:M.name,description:M.description,providerName:M.providerName,model:M.model,apiKey:M.apiKey,baseUrl:M.baseUrl??"",temperature:M.temperature,maxTokens:M.maxTokens,topP:M.topP,timeoutSeconds:M.timeoutSeconds}),p(!1))}).catch(M=>{A||(y(M instanceof Error?M.message:"Failed to load provider"),p(!1))}),()=>{A=!0}},[s]);function E(A){d(M=>({...M,...A}))}async function O(){g(!0),y(null);try{const A={name:f.name,description:f.description,providerName:f.providerName,model:f.model,apiKey:f.apiKey,baseUrl:f.baseUrl||void 0,temperature:f.temperature,maxTokens:f.maxTokens,topP:f.topP,timeoutSeconds:f.timeoutSeconds};s?await ze.providers.update(s,A):await ze.providers.create(A),l("/providers")}catch(A){y(A instanceof Error?A.message:"Save failed")}finally{g(!1)}}const T="space-y-3",R="text-sm font-bold text-on-surface flex items-center gap-2";return v?c.jsx("div",{className:"flex items-center justify-center h-64",children:c.jsx("div",{className:"text-on-surface-variant text-sm animate-pulse",children:r("providerEditor.loadingProvider")})}):c.jsxs("div",{className:"max-w-3xl mx-auto",children:[c.jsxs("div",{className:"mb-6",children:[c.jsx("h1",{className:"text-2xl font-extrabold tracking-tight text-on-surface mb-1",children:r(o?"providerEditor.newTitle":"providerEditor.editTitle")}),c.jsx("p",{className:"text-on-surface-variant text-sm",children:o?r("providerEditor.newSubtitle"):r("providerEditor.editSubtitle",{id:s})})]}),b&&c.jsx("div",{className:"mb-4 p-3 rounded-md bg-error-container/20 border border-error/20 text-error text-sm",children:b}),c.jsxs("div",{className:"space-y-8",children:[c.jsxs("section",{className:T,children:[c.jsxs("h2",{className:R,children:[c.jsx("span",{className:"material-symbols-outlined",style:{fontSize:"1.1rem"},children:"info"}),r("providerEditor.basicInfo")]}),c.jsxs("div",{children:[c.jsx("label",{className:Vt,children:r("common.name")}),c.jsx("input",{type:"text",className:Xt,value:f.name,placeholder:"my-provider",onChange:A=>E({name:A.target.value})})]}),c.jsxs("div",{children:[c.jsx("label",{className:Vt,children:r("common.description")}),c.jsx("textarea",{className:Xt+" min-h-[60px] resize-y",value:f.description,placeholder:"Describe this provider...",onChange:A=>E({description:A.target.value})})]})]}),c.jsxs("section",{className:T,children:[c.jsxs("h2",{className:R,children:[c.jsx("span",{className:"material-symbols-outlined",style:{fontSize:"1.1rem"},children:"cloud"}),r("providerEditor.providerConfig")]}),c.jsxs("div",{children:[c.jsx("label",{className:Vt,children:r("providerEditor.providerName")}),c.jsxs("select",{className:Xt,value:f.providerName,onChange:A=>E({providerName:A.target.value}),children:[c.jsx("option",{value:"anthropic",children:"Anthropic"}),c.jsx("option",{value:"openai",children:"OpenAI"}),c.jsx("option",{value:"google",children:"Google"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:Vt,children:r("providerEditor.model")}),c.jsx("input",{type:"text",className:Xt,value:f.model,placeholder:"e.g. claude-sonnet-4-20250514",onChange:A=>E({model:A.target.value})})]}),c.jsxs("div",{children:[c.jsx("label",{className:Vt,children:r("providerEditor.apiKey")}),c.jsx("input",{type:"password",className:Xt,value:f.apiKey,placeholder:"sk-...",onChange:A=>E({apiKey:A.target.value})})]}),c.jsxs("div",{children:[c.jsx("label",{className:Vt,children:r("providerEditor.baseUrl")}),c.jsx("input",{type:"text",className:Xt,value:f.baseUrl,placeholder:"https://api.anthropic.com (optional)",onChange:A=>E({baseUrl:A.target.value})})]})]}),c.jsxs("section",{className:T,children:[c.jsxs("h2",{className:R,children:[c.jsx("span",{className:"material-symbols-outlined",style:{fontSize:"1.1rem"},children:"tune"}),r("providerEditor.modelParameters")]}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:Vt,children:r("providerEditor.temperature")}),c.jsx("input",{type:"number",className:Xt,min:0,max:2,step:.1,value:f.temperature??"",placeholder:"0.0 - 2.0",onChange:A=>E({temperature:A.target.value?Number(A.target.value):void 0})})]}),c.jsxs("div",{children:[c.jsx("label",{className:Vt,children:r("providerEditor.maxTokens")}),c.jsx("input",{type:"number",className:Xt,min:1,value:f.maxTokens??"",placeholder:"Max output tokens",onChange:A=>E({maxTokens:A.target.value?Number(A.target.value):void 0})})]}),c.jsxs("div",{children:[c.jsx("label",{className:Vt,children:r("providerEditor.topP")}),c.jsx("input",{type:"number",className:Xt,min:0,max:1,step:.05,value:f.topP??"",placeholder:"0.0 - 1.0",onChange:A=>E({topP:A.target.value?Number(A.target.value):void 0})})]}),c.jsxs("div",{children:[c.jsx("label",{className:Vt,children:r("providerEditor.timeoutSeconds")}),c.jsx("input",{type:"number",className:Xt,min:1,value:f.timeoutSeconds,onChange:A=>E({timeoutSeconds:Number(A.target.value)||300})})]})]})]}),c.jsxs("div",{className:"flex items-center gap-3 pt-4 border-t border-outline-variant/10",children:[c.jsxs("button",{type:"button",onClick:()=>void O(),disabled:h||!f.name.trim(),className:"bg-primary-container text-on-primary-container px-6 py-2.5 rounded-full font-bold text-sm hover:bg-primary transition-colors active:scale-95 disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2",children:[h&&c.jsx("span",{className:"material-symbols-outlined animate-spin",style:{fontSize:"1rem"},children:"progress_activity"}),r(o?"providerEditor.createProvider":"providerEditor.saveChanges")]}),c.jsx("button",{type:"button",onClick:()=>l("/providers"),className:"text-on-surface-variant hover:text-on-surface text-sm font-medium transition-colors px-4 py-2.5",children:r("common.cancel")})]})]})]})}const Th={planning:"bg-primary-container/20 text-primary","instruction-following":"bg-secondary-container/20 text-secondary",reasoning:"bg-surface-container-high text-tertiary","tool-strategy":"bg-tertiary-container/20 text-tertiary-fixed-dim","error-handling":"bg-error-container/20 text-error","ambiguity-handling":"bg-surface-container-highest text-on-secondary-container","scope-management":"bg-surface-container-high text-primary-fixed-dim",custom:"bg-surface-container-high text-on-surface-variant"};function Hb({category:s}){const{t:l}=Te(),r=Th[s]??Th.custom;return c.jsx("span",{className:`text-[9px] px-2 py-0.5 rounded-full font-bold uppercase tracking-wider ${r}`,children:l(`categories.${s}`)})}const Bb={reasoning:"psychology","instruction-following":"format_list_bulleted",planning:"event_note","tool-strategy":"code","error-handling":"error_outline","ambiguity-handling":"help_outline","scope-management":"adjust",custom:"tune"},qb=["reasoning","instruction-following","planning","tool-strategy","error-handling","ambiguity-handling","scope-management","custom"];function Yb(){const s=Lt(),{t:l}=Te(),[r,o]=N.useState([]),[f,d]=N.useState(!0);N.useEffect(()=>{ze.scenarios.list().then(o).catch(()=>o([])).finally(()=>d(!1))},[]);const h=r.reduce((v,p)=>{var b;return(v[b=p.category]??(v[b]=[])).push(p),v},{}),g=qb.filter(v=>{var p;return(p=h[v])==null?void 0:p.length});return c.jsxs("div",{className:"bg-surface-container-low min-h-full -m-6 p-6",children:[c.jsx("div",{className:"mb-8 flex items-center justify-end",children:c.jsxs("button",{onClick:()=>s("/scenarios/new"),className:"bg-gradient-to-br from-primary-container to-primary hover:opacity-90 text-on-primary-container font-semibold px-5 py-2 rounded-full text-xs flex items-center gap-2 transition-all active:scale-95 shadow-lg shadow-primary-container/20",children:[c.jsx("span",{className:"material-symbols-outlined text-sm",children:"add"}),l("scenarios.newScenario")]})}),f&&c.jsx("p",{className:"text-center text-on-surface-variant py-12",children:l("scenarios.loadingScenarios")}),c.jsxs("div",{className:"space-y-12 pb-20",children:[g.map(v=>{const p=Bb[v],b=h[v];return c.jsxs("section",{children:[c.jsxs("div",{className:"flex items-center gap-3 mb-6 border-b border-outline-variant/10 pb-2",children:[c.jsx("span",{className:"material-symbols-outlined text-primary text-lg",children:p}),c.jsx("h2",{className:"text-sm font-bold tracking-tight text-on-surface",children:l(`categories.${v}`)}),c.jsx("span",{className:"text-[10px] bg-surface-container-high px-2 py-0.5 rounded text-outline",children:l("scenarios.scenarioCount",{count:b.length})})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:b.map(y=>c.jsxs("div",{onClick:()=>s(`/scenarios/${y.id}`),className:"bg-surface group hover:bg-surface-container transition-all cursor-pointer p-4 rounded-md relative border border-transparent hover:border-outline-variant/20 shadow-sm",children:[c.jsxs("div",{className:"flex justify-between items-start mb-3",children:[c.jsx("div",{className:"flex flex-wrap gap-1.5",children:c.jsx(Hb,{category:y.category})}),c.jsx("button",{className:"text-on-surface-variant opacity-0 group-hover:opacity-100 transition-opacity",children:c.jsx("span",{className:"material-symbols-outlined text-sm",children:"more_vert"})})]}),c.jsx("h3",{className:"font-bold text-xs mb-2 group-hover:text-primary transition-colors",children:y.name}),c.jsx("p",{className:"text-[11px] text-on-surface-variant font-mono leading-relaxed mb-4 line-clamp-3 bg-surface-container-lowest p-2 rounded",children:y.prompt?`"${y.prompt.slice(0,160)}${y.prompt.length>160?"...":""}"`:l("scenarios.noPrompt")}),(y.enabledTools??[]).length>0&&c.jsx("div",{className:"text-[10px] text-on-surface-variant mb-3 flex flex-wrap gap-1.5",children:(y.enabledTools??[]).map(E=>c.jsx("span",{className:"px-1.5 py-0.5 rounded bg-surface-container-high border border-outline-variant/10 font-mono",children:E},E))}),c.jsx("div",{className:"flex items-center justify-between pt-3 border-t border-outline-variant/10",children:c.jsxs("div",{className:"flex gap-4",children:[c.jsxs("div",{className:"flex flex-col",children:[c.jsx("span",{className:"text-[9px] text-outline uppercase tracking-tighter",children:l("scenarios.criteria")}),c.jsx("span",{className:"text-xs font-mono font-bold text-on-surface",children:String((y.criticalRequirements??[]).length).padStart(2,"0")})]}),c.jsxs("div",{className:"flex flex-col",children:[c.jsx("span",{className:"text-[9px] text-outline uppercase tracking-tighter",children:l("scenarios.scoring")}),c.jsx("span",{className:"text-xs font-mono font-bold text-on-surface",children:String((y.scoringDimensions??[]).length).padStart(2,"0")})]})]})})]},y.id))})]},v)}),!f&&r.length===0&&c.jsxs("div",{className:"text-center py-12",children:[c.jsx("span",{className:"material-symbols-outlined text-outline-variant text-4xl mb-4 block",children:"schema"}),c.jsx("p",{className:"text-on-surface-variant text-sm",children:l("scenarios.noScenarios")})]})]})]})}function Rs({value:s,onChange:l,label:r,placeholder:o,rows:f=6,readOnly:d=!1}){return c.jsxs("div",{className:"space-y-1.5",children:[r&&c.jsx("label",{className:"text-[0.7rem] font-bold text-on-surface-variant uppercase tracking-wider",children:r}),c.jsx("textarea",{value:s,onChange:h=>l(h.target.value),placeholder:o,rows:f,readOnly:d,className:"w-full bg-surface-container-lowest border-none rounded-md font-mono text-sm p-4 text-on-surface focus:ring-1 focus:ring-primary/40 leading-relaxed resize-y"})]})}function wh({items:s,onAdd:l,onRemove:r,renderItem:o,label:f}){const{t:d}=Te();return c.jsxs("div",{className:"space-y-3",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("span",{className:"text-[0.7rem] font-bold text-on-surface-variant uppercase tracking-wider",children:f}),c.jsxs("button",{type:"button",onClick:l,className:"flex items-center gap-1 text-[0.65rem] font-bold text-primary hover:underline",children:[c.jsx("span",{className:"material-symbols-outlined text-sm",children:"add"}),d("dynamicList.add")]})]}),s.length===0&&c.jsx("p",{className:"text-[0.7rem] text-on-surface-variant/60 italic",children:d("dynamicList.noItems")}),s.map((h,g)=>c.jsxs("div",{className:"flex items-start gap-3 p-3 bg-surface-container-lowest rounded group border-l-2 border-primary/20",children:[c.jsx("div",{className:"flex-1 min-w-0",children:o(h,g)}),c.jsx("button",{type:"button",onClick:()=>r(g),className:"mt-1 text-on-surface-variant hover:text-error opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:c.jsx("span",{className:"material-symbols-outlined text-sm",children:"delete"})})]},g))]})}function Gb({weights:s}){const{t:l}=Te(),r=s.reduce((d,h)=>d+h,0),o=Math.round(r*100)/100,f=Math.abs(o-1)<.01;return c.jsxs("div",{className:"flex items-center justify-between pt-4 border-t border-outline-variant/20",children:[c.jsx("span",{className:"text-[0.65rem] font-bold text-on-surface-variant uppercase tracking-widest",children:l("weight.weightSum")}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{className:"w-32 h-1.5 bg-surface-container-lowest rounded-full overflow-hidden",children:c.jsx("div",{className:`h-full rounded-full transition-all ${f?"bg-primary shadow-[0_0_8px_rgba(147,51,234,0.5)]":"bg-error"}`,style:{width:`${Math.min(o*100,100)}%`}})}),c.jsx("span",{className:`font-mono text-xs font-bold ${f?"text-primary":"text-error"}`,children:o.toFixed(2)})]})]})}const kb=["read_file","search_file","web_search"],Vb=["planning","instruction-following","reasoning","tool-strategy","error-handling","ambiguity-handling","scope-management","custom"],Xb={name:"",category:"reasoning",prompt:"",systemPrompt:"",enabledTools:[],expectedAnswer:"",criticalRequirements:[],gradingGuidelines:"",scoringDimensions:[]};function on({icon:s,title:l}){return c.jsxs("div",{className:"flex items-center gap-2 text-primary",children:[c.jsx("span",{className:"material-symbols-outlined text-lg",children:s}),c.jsx("h3",{className:"text-xs font-bold uppercase tracking-widest",children:l})]})}const Oh="text-[0.7rem] font-bold text-on-surface-variant uppercase tracking-wider",Ah="w-full bg-surface-container-lowest border-none rounded focus:ring-1 focus:ring-primary/40 text-sm text-on-surface placeholder:text-on-surface-variant/30 py-2.5";function zh(){const{id:s}=ni(),l=Lt(),{t:r}=Te(),[o,f]=N.useState(Xb),[d,h]=N.useState(!!s),[g,v]=N.useState(!1),p=!s;N.useEffect(()=>{s&&ze.scenarios.get(s).then(R=>{f({name:R.name,category:R.category,prompt:R.prompt,systemPrompt:R.systemPrompt,enabledTools:[...R.enabledTools],expectedAnswer:R.expectedAnswer,criticalRequirements:[...R.criticalRequirements],gradingGuidelines:R.gradingGuidelines,scoringDimensions:[...R.scoringDimensions]})}).catch(()=>l("/scenarios")).finally(()=>h(!1))},[s,l]);const b=N.useCallback((R,A)=>{f(M=>({...M,[R]:A}))},[]);async function y(){v(!0);try{const R={...o};if(p){const A=await ze.scenarios.create(R);l(`/scenarios/${A.id}`)}else await ze.scenarios.update(s,R)}finally{v(!1)}}function E(R,A){b("criticalRequirements",o.criticalRequirements.map((M,K)=>K===R?A:M))}function O(R,A){b("scoringDimensions",o.scoringDimensions.map((M,K)=>K===R?{...M,...A}:M))}function T(R){b("enabledTools",o.enabledTools.includes(R)?o.enabledTools.filter(A=>A!==R):[...o.enabledTools,R])}return d?c.jsx("p",{className:"text-on-surface-variant py-12 text-center",children:r("scenarioEditor.loadingScenario")}):c.jsxs("div",{className:"max-w-6xl mx-auto space-y-6",children:[c.jsxs("div",{className:"flex items-end justify-between mb-4",children:[c.jsxs("div",{children:[c.jsx("h2",{className:"text-2xl font-bold tracking-tight text-on-surface",children:r(p?"scenarioEditor.createTitle":"scenarioEditor.editTitle")}),c.jsx("p",{className:"text-sm text-on-surface-variant",children:r("scenarioEditor.subtitle")})]}),c.jsxs("div",{className:"flex gap-3",children:[c.jsx("button",{type:"button",onClick:()=>l("/scenarios"),className:"px-6 py-2 rounded-lg text-sm font-semibold text-on-surface-variant hover:bg-surface-container-high transition-colors",children:r("common.discard")}),c.jsx("button",{type:"button",onClick:y,disabled:g,className:"px-6 py-2 rounded-lg text-sm font-semibold bg-primary text-on-primary hover:opacity-90 transition-opacity shadow-lg shadow-primary/20 disabled:opacity-50",children:r(g?"scenarioEditor.saving":"scenarioEditor.saveScenario")})]})]}),c.jsxs("div",{className:"grid grid-cols-12 gap-6",children:[c.jsx("section",{className:"col-span-12 lg:col-span-4",children:c.jsxs("div",{className:"lg:sticky lg:top-6 space-y-6",children:[c.jsxs("div",{className:"bg-surface-container p-5 rounded-lg space-y-4",children:[c.jsx(on,{icon:"info",title:r("scenarioEditor.basicInfo")}),c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"space-y-1.5",children:[c.jsx("label",{className:Oh,children:r("scenarioEditor.scenarioName")}),c.jsx("input",{type:"text",value:o.name,onChange:R=>b("name",R.target.value),placeholder:"e.g. complex_math_reasoning_01",className:Ah})]}),c.jsxs("div",{className:"space-y-1.5",children:[c.jsx("label",{className:Oh,children:r("scenarioEditor.category")}),c.jsx("select",{value:o.category,onChange:R=>b("category",R.target.value),className:Ah,children:Vb.map(R=>c.jsx("option",{value:R,children:r(`categories.${R}`)},R))})]})]})]}),c.jsxs("div",{className:"bg-surface-container p-5 rounded-lg space-y-4",children:[c.jsx(on,{icon:"rule",title:r("scenarioEditor.criticalRequirements")}),c.jsx(wh,{label:"",items:o.criticalRequirements,onAdd:()=>b("criticalRequirements",[...o.criticalRequirements,""]),onRemove:R=>b("criticalRequirements",o.criticalRequirements.filter((A,M)=>M!==R)),renderItem:(R,A)=>c.jsx("input",{type:"text",value:R,onChange:M=>E(A,M.target.value),placeholder:"Requirement...",className:"w-full bg-transparent border-none text-xs text-on-surface p-0 focus:ring-0"})})]}),c.jsxs("div",{className:"bg-surface-container p-5 rounded-lg space-y-4",children:[c.jsx(on,{icon:"verified",title:r("scenarioEditor.expectedAnswer")}),c.jsx(Rs,{value:o.expectedAnswer,onChange:R=>b("expectedAnswer",R),placeholder:"Describe the ideal response...",rows:8})]}),c.jsxs("div",{className:"bg-surface-container p-5 rounded-lg space-y-4",children:[c.jsx(on,{icon:"analytics",title:r("scenarioEditor.gradingScoring")}),c.jsx(Rs,{label:r("scenarioEditor.gradingGuidelines"),value:o.gradingGuidelines,onChange:R=>b("gradingGuidelines",R),placeholder:"General grading instructions...",rows:4}),c.jsx(wh,{label:r("scenarioEditor.scoringDimensions"),items:o.scoringDimensions,onAdd:()=>b("scoringDimensions",[...o.scoringDimensions,{name:"",weight:0,description:""}]),onRemove:R=>b("scoringDimensions",o.scoringDimensions.filter((A,M)=>M!==R)),renderItem:(R,A)=>c.jsxs("div",{className:"space-y-2",children:[c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsx("input",{type:"text",value:R.name,onChange:M=>O(A,{name:M.target.value}),placeholder:"Dimension name",className:"bg-transparent border-none text-xs font-bold text-on-surface p-0 focus:ring-0 flex-1"}),c.jsxs("div",{className:"flex items-center gap-2 bg-surface-container px-2 py-1 rounded",children:[c.jsx("span",{className:"text-[10px] text-on-surface-variant uppercase font-bold tracking-tighter",children:r("scenarioEditor.weight")}),c.jsx("input",{type:"number",step:"0.1",min:"0",max:"1",value:R.weight,onChange:M=>O(A,{weight:parseFloat(M.target.value)||0}),className:"bg-transparent border-none text-xs font-mono text-primary p-0 w-10 focus:ring-0 text-center"})]})]}),c.jsx("input",{type:"text",value:R.description,onChange:M=>O(A,{description:M.target.value}),placeholder:"Description of this dimension...",className:"w-full bg-transparent border-none text-[0.7rem] text-on-surface-variant italic p-0 focus:ring-0"})]})}),c.jsx(Gb,{weights:o.scoringDimensions.map(R=>R.weight)})]})]})}),c.jsxs("section",{className:"col-span-12 lg:col-span-8 space-y-6",children:[c.jsxs("div",{className:"bg-surface-container p-5 rounded-lg space-y-4",children:[c.jsx(on,{icon:"psychology",title:r("scenarioEditor.systemPrompt")}),c.jsx(Rs,{value:o.systemPrompt,onChange:R=>b("systemPrompt",R),placeholder:"System prompt for the model...",rows:6})]}),c.jsxs("div",{className:"bg-surface-container p-5 rounded-lg space-y-4",children:[c.jsx(on,{icon:"terminal",title:r("scenarioEditor.userPrompt")}),c.jsx(Rs,{value:o.prompt,onChange:R=>b("prompt",R),placeholder:"Enter the user test prompt here...",rows:8})]}),c.jsxs("div",{className:"bg-surface-container p-5 rounded-lg space-y-4",children:[c.jsx(on,{icon:"build",title:r("scenarioEditor.enabledTools")}),c.jsx("p",{className:"text-[0.65rem] text-on-surface-variant -mt-2",children:r("scenarioEditor.enabledToolsHelp")}),c.jsx("div",{className:"flex flex-wrap gap-2",children:kb.map(R=>{const A=o.enabledTools.includes(R);return c.jsxs("label",{className:"flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-medium cursor-pointer transition-colors border "+(A?"bg-primary-container/20 text-primary border-primary/30":"bg-surface-container-high text-on-surface-variant border-outline-variant/20 hover:border-outline-variant/40"),children:[c.jsx("input",{type:"checkbox",className:"sr-only",checked:A,onChange:()=>T(R)}),A&&c.jsx("span",{className:"material-symbols-outlined",style:{fontSize:"0.75rem"},children:"check"}),R]},R)})})]})]})]})]})}function Qb({runId:s,status:l,elapsedMs:r,turns:o,onAbort:f}){const{t:d}=Te();return c.jsxs("div",{className:"flex items-center justify-between gap-4 bg-surface-container-low px-4 py-2.5 rounded-md border border-outline-variant/10",children:[c.jsxs("div",{className:"flex items-center gap-4 flex-wrap text-xs",children:[c.jsx("span",{className:"font-mono text-on-surface-variant",title:"Run ID",children:s.slice(0,8)}),c.jsx(qa,{status:l}),c.jsxs("span",{className:"text-on-surface-variant flex items-center gap-1",children:[c.jsx("span",{className:"material-symbols-outlined",style:{fontSize:"0.9rem"},children:"timer"}),qs(r)]}),c.jsxs("span",{className:"text-on-surface-variant flex items-center gap-1",children:[c.jsx("span",{className:"material-symbols-outlined",style:{fontSize:"0.9rem"},children:"replay"}),d("runStatusBar.turns",{count:o})]})]}),(l==="running"||l==="pending")&&f&&c.jsxs("button",{type:"button",onClick:f,className:"bg-error-container text-on-error-container px-3 py-1 rounded-full text-xs font-bold hover:bg-error transition-colors active:scale-95 flex items-center gap-1",children:[c.jsx("span",{className:"material-symbols-outlined",style:{fontSize:"0.9rem"},children:"stop"}),d("runStatusBar.abort")]})]})}function Dh(s,l=500){const r=typeof s=="string"?s:JSON.stringify(s,null,2);return r?r.length>l?r.slice(0,l)+"...":r:""}function _s({name:s,input:l,output:r}){const{t:o}=Te(),[f,d]=N.useState(!1);return c.jsxs("div",{className:"border border-outline-variant/10 rounded-md overflow-hidden my-1",children:[c.jsxs("button",{type:"button",onClick:()=>d(!f),className:"w-full flex items-center gap-2 px-3 py-1.5 bg-surface-container hover:bg-surface-container-high transition-colors text-left",children:[c.jsx("span",{className:"material-symbols-outlined text-tertiary/60",style:{fontSize:"0.9rem"},children:"build"}),c.jsx("span",{className:"text-[0.7rem] font-mono font-medium text-tertiary",children:s}),c.jsx("span",{className:"material-symbols-outlined text-on-surface-variant transition-transform ml-auto "+(f?"rotate-180":""),style:{fontSize:"0.9rem"},children:"expand_more"})]}),f&&c.jsxs("div",{className:"px-3 py-2 space-y-2 bg-surface-container-low/50",children:[l!==void 0&&c.jsxs("div",{children:[c.jsx("div",{className:"text-[0.6rem] font-bold uppercase tracking-widest text-on-surface-variant mb-1",children:o("toolCallBlock.input")}),c.jsx("pre",{className:"text-[0.7rem] text-on-surface-variant/80 font-mono whitespace-pre-wrap break-all",children:Dh(l)})]}),r!==void 0&&c.jsxs("div",{children:[c.jsx("div",{className:"text-[0.6rem] font-bold uppercase tracking-widest text-on-surface-variant mb-1",children:o("toolCallBlock.output")}),c.jsx("pre",{className:"text-[0.7rem] text-on-surface-variant/80 font-mono whitespace-pre-wrap break-all",children:Dh(r)})]})]})]})}function mp({content:s}){const{t:l}=Te(),[r,o]=N.useState(!1);return c.jsxs("div",{className:"border border-outline-variant/10 rounded-md overflow-hidden my-1",children:[c.jsxs("button",{type:"button",onClick:()=>o(!r),className:"w-full flex items-center gap-2 px-3 py-1.5 bg-surface-container hover:bg-surface-container-high transition-colors text-left",children:[c.jsx("span",{className:"material-symbols-outlined text-primary/60",style:{fontSize:"0.9rem"},children:"psychology"}),c.jsx("span",{className:"text-[0.7rem] font-medium text-on-surface-variant",children:l("thinkingBlock.thinking")}),c.jsx("span",{className:"material-symbols-outlined text-on-surface-variant transition-transform ml-auto "+(r?"rotate-180":""),style:{fontSize:"0.9rem"},children:"expand_more"})]}),r&&c.jsx("div",{className:"px-3 py-2 text-xs text-on-surface-variant/70 font-mono whitespace-pre-wrap bg-surface-container-low/50",children:s})]})}const _h=new Set(["start-step","finish-step","text-start","text-end","reasoning-start","reasoning-end","tool-input-start","tool-input-end","tool-input-delta"]);function Kb(s){const l=[];let r=0;for(;r<s.length;){const f=s[r].message.type??"";if(_h.has(f)){r++;continue}if(f==="text-delta"||f==="reasoning-delta"){const d=[],h=s[r].timestamp;for(;r<s.length;){const g=s[r].message,v=g.type??"";if(_h.has(v)){r++;continue}if(v!==f)break;const p=g.text;p&&d.push(p),r++}d.length>0&&l.push({timestamp:h,message:{type:f,text:d.join("")}});continue}l.push(s[r]),r++}return l}function Zb(s){const l=s.type??"",r=s.message;return r&&typeof r=="object"?{type:l,role:r.role??void 0,content:r.content,raw:s}:{type:l,role:s.role??void 0,content:s.content,raw:s}}function Lh(s,l){const r=s.type;if(r==="text")return c.jsx("div",{className:"text-sm text-on-surface whitespace-pre-wrap leading-relaxed",children:s.text},l);if(r==="tool_use")return c.jsx(_s,{name:s.name??"unknown",input:s.input},l);if(r==="tool_result"){const o=s.content,f=s.is_error===!0,d=typeof o=="string"?o:Array.isArray(o)?o.filter(h=>h.type==="text").map(h=>h.text).join(`
69
+ `):JSON.stringify(o);return c.jsx(_s,{name:f?"Error":"Result",output:d},l)}return r==="thinking"?c.jsx(mp,{content:s.thinking??""},l):null}function $b(s){return typeof s=="string"?s:Array.isArray(s)?s.filter(l=>l.type==="text").map(l=>l.text).join(`
70
+ `):JSON.stringify(s)}function Jb({record:s}){const{t:l}=Te(),{type:r,role:o,content:f,raw:d}=Zb(s.message);if(r==="text-delta"){const h=d.text;return h?c.jsxs("div",{className:"flex gap-3",children:[c.jsx("div",{className:"w-6 h-6 rounded-full bg-primary-container/20 flex items-center justify-center flex-shrink-0 mt-0.5",children:c.jsx("span",{className:"material-symbols-outlined text-primary",style:{fontSize:"0.8rem"},children:"smart_toy"})}),c.jsx("div",{className:"text-sm text-on-surface whitespace-pre-wrap leading-relaxed",children:h})]}):null}if(r==="reasoning-delta"){const h=d.text;return h?c.jsx(mp,{content:h}):null}if(r==="tool-call")return c.jsx(_s,{name:d.toolName??"unknown",input:d.args});if(r==="tool-result")return c.jsx(_s,{name:d.toolName??"result",output:typeof d.result=="string"?d.result:JSON.stringify(d.result)});if(r==="system"){const h=d.subtype;if(h==="init")return c.jsxs("div",{className:"text-[0.65rem] text-on-surface-variant/40 font-mono pl-9 flex items-center gap-2",children:[c.jsx("span",{className:"material-symbols-outlined",style:{fontSize:"0.7rem"},children:"terminal"}),l("messageLog.sessionInitialized")]});if(h==="api_retry"){const g=d.attempt,v=d.error;return c.jsxs("div",{className:"text-[0.65rem] text-warning/60 font-mono pl-9 flex items-center gap-2",children:[c.jsx("span",{className:"material-symbols-outlined",style:{fontSize:"0.7rem"},children:"refresh"}),v?l("messageLog.apiRetryWithError",{attempt:g??"?",error:v}):l("messageLog.apiRetry",{attempt:g??"?"})]})}return c.jsxs("div",{className:"text-[0.65rem] text-on-surface-variant/40 font-mono pl-9",children:["system: ",h??JSON.stringify(d).slice(0,120)]})}if(r==="assistant"||o==="assistant"){const h=Array.isArray(f)?f:[],g=typeof f=="string";return c.jsxs("div",{className:"flex gap-3",children:[c.jsx("div",{className:"w-6 h-6 rounded-full bg-primary-container/20 flex items-center justify-center flex-shrink-0 mt-0.5",children:c.jsx("span",{className:"material-symbols-outlined text-primary",style:{fontSize:"0.8rem"},children:"smart_toy"})}),c.jsxs("div",{className:"flex-1 min-w-0 space-y-1",children:[g&&c.jsx("div",{className:"text-sm text-on-surface whitespace-pre-wrap leading-relaxed",children:f}),h.map((v,p)=>Lh(v,p)),!g&&h.length===0&&c.jsx("div",{className:"text-xs text-on-surface-variant/50 italic",children:"(assistant message)"})]})]})}if(r==="user"||o==="user"||o==="human"){if(Array.isArray(f)){const g=f;if(g.some(p=>p.type==="tool_result"))return c.jsx("div",{className:"ml-9 space-y-1",children:g.map((p,b)=>Lh(p,b))})}const h=$b(f);return c.jsxs("div",{className:"flex gap-3",children:[c.jsx("div",{className:"w-6 h-6 rounded-full bg-secondary-container/20 flex items-center justify-center flex-shrink-0 mt-0.5",children:c.jsx("span",{className:"material-symbols-outlined text-secondary",style:{fontSize:"0.8rem"},children:"person"})}),c.jsx("div",{className:"text-sm text-on-surface-variant whitespace-pre-wrap leading-relaxed",children:h})]})}if(r==="result"){const h=d.subtype,g=d.result,v=h==="success";return c.jsxs("div",{className:"flex gap-3",children:[c.jsx("div",{className:"w-6 h-6 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5 "+(v?"bg-green-400/20":"bg-error/20"),children:c.jsx("span",{className:"material-symbols-outlined "+(v?"text-green-400":"text-error"),style:{fontSize:"0.8rem"},children:v?"check":"error"})}),c.jsx("div",{className:"text-sm whitespace-pre-wrap "+(v?"text-green-400/80":"text-error/80"),children:g??(typeof f=="string"?f:JSON.stringify(f))})]})}return c.jsxs("div",{className:"text-[0.65rem] text-on-surface-variant/50 font-mono pl-9 truncate",children:[r||o||"event",": ",JSON.stringify(d).slice(0,200)]})}function Fb(){return c.jsx("div",{className:"space-y-4 animate-pulse",children:[1,2,3].map(s=>c.jsxs("div",{className:"flex gap-3",children:[c.jsx("div",{className:"w-6 h-6 rounded-full bg-surface-container-high"}),c.jsxs("div",{className:"flex-1 space-y-2",children:[c.jsx("div",{className:"h-3 bg-surface-container-high rounded w-3/4"}),c.jsx("div",{className:"h-3 bg-surface-container-high rounded w-1/2"})]})]},s))})}function Mu({messages:s,loading:l}){const r=N.useRef(null);if(N.useEffect(()=>{var f;(f=r.current)==null||f.scrollIntoView({behavior:"smooth"})},[s.length]),l&&s.length===0)return c.jsx("div",{className:"p-4",children:c.jsx(Fb,{})});const o=Kb(s);return c.jsxs("div",{className:"space-y-4 p-4",children:[o.map((f,d)=>c.jsx(Jb,{record:f},d)),c.jsx("div",{ref:r})]})}function hp({sseUrl:s,onComplete:l}){const[r,o]=N.useState([]),[f,d]=N.useState([]),[h,g]=N.useState(null),[v,p]=N.useState(0),[b,y]=N.useState(!1),E=N.useRef(null),O=N.useRef(null),T=N.useRef(l);T.current=l;const R=N.useCallback(()=>{O.current&&(clearInterval(O.current),O.current=null)},[]);return N.useEffect(()=>{if(!s)return;o([]),d([]),g(null),p(0),y(!0),E.current=Date.now(),O.current=setInterval(()=>{E.current&&p(Date.now()-E.current)},500);const A=zb(s,{onMessage:M=>{var K,$;try{const J=JSON.parse(M.data),I=J.type;if(I==="status"){const X=J.status;g(X),(X==="completed"||X==="failed"||X==="cancelled")&&(R(),y(!1),(K=T.current)==null||K.call(T,J))}else if(I==="progress"){const X=J.detail,V=J.step;d(ne=>[...ne,X?`${V}: ${X}`:V])}else if(I==="sdkMessage"){const X={timestamp:J.timestamp??new Date().toISOString(),message:J.message??J};o(V=>[...V,X])}else if(I==="runComplete")R(),y(!1),($=T.current)==null||$.call(T,J);else{const X={timestamp:J.timestamp??new Date().toISOString(),message:J};o(V=>[...V,X])}}catch{}},onError:()=>{R(),y(!1)}});return()=>{A(),R(),y(!1)}},[s,R]),{messages:r,progressSteps:f,status:h,elapsedMs:v,isConnected:b}}function Wb(){const s=Lt(),{t:l}=Te(),[r,o]=N.useState([]),[f,d]=N.useState([]),[h,g]=N.useState(""),[v,p]=N.useState(""),[b,y]=N.useState(null),[E,O]=N.useState(null),[T,R]=N.useState(!1),[A,M]=N.useState(null),{messages:K,elapsedMs:$}=hp({sseUrl:E,onComplete:Q=>{if(Q.type==="runComplete"){const le=Q.run;y(le),s(`/runs/${le.id}`)}else Q.type==="status"&&y(le=>le&&{...le,status:Q.status})}});N.useEffect(()=>{Promise.all([ze.providers.list(),ze.scenarios.list()]).then(([Q,le])=>{o(Q),d(le),Q.length>0&&g(Q[0].id),le.length>0&&p(le[0].id)}).catch(()=>M("Failed to load providers/scenarios"))},[]);const J=N.useCallback(async()=>{if(!(!h||!v)){R(!0),M(null);try{const Q=await ze.runs.create({providerId:h,scenarioId:v});y(Q),O(`/api/runs/${Q.id}/stream`)}catch(Q){M(Q instanceof Error?Q.message:"Failed to start run")}finally{R(!1)}}},[h,v]),I=N.useCallback(()=>{O(null),b&&y({...b,status:"cancelled"})},[b]),X=(b==null?void 0:b.status)==="running"||(b==null?void 0:b.status)==="pending",V="w-full bg-surface-container-low border border-outline-variant/20 rounded-md px-3 py-2 text-sm text-on-surface focus:ring-1 focus:ring-primary-container focus:border-primary-container",ne="block text-[0.65rem] font-bold uppercase tracking-widest text-on-surface-variant mb-1.5";return c.jsxs("div",{className:"h-full flex flex-col",children:[c.jsxs("div",{className:"mb-6",children:[c.jsx("h1",{className:"text-2xl font-extrabold tracking-tight text-on-surface mb-1",children:l("run.title")}),c.jsx("p",{className:"text-on-surface-variant text-sm",children:l("run.subtitle")})]}),A&&c.jsx("div",{className:"mb-4 p-3 rounded-md bg-error-container/20 border border-error/20 text-error text-sm",children:A}),c.jsxs("div",{className:"flex flex-col lg:flex-row gap-6 flex-1 min-h-0",children:[c.jsxs("div",{className:"w-full lg:w-80 flex-shrink-0 space-y-4 overflow-y-auto",children:[c.jsxs("div",{children:[c.jsx("label",{className:ne,children:l("run.apiProvider")}),c.jsxs("select",{className:V,value:h,onChange:Q=>g(Q.target.value),disabled:X,children:[r.length===0&&c.jsx("option",{value:"",children:l("run.noProviders")}),r.map(Q=>c.jsx("option",{value:Q.id,children:Q.name},Q.id))]})]}),c.jsxs("div",{children:[c.jsx("label",{className:ne,children:l("run.scenario")}),c.jsxs("select",{className:V,value:v,onChange:Q=>p(Q.target.value),disabled:X,children:[f.length===0&&c.jsx("option",{value:"",children:l("run.noScenarios")}),f.map(Q=>c.jsx("option",{value:Q.id,children:Q.name},Q.id))]})]}),c.jsx("button",{type:"button",onClick:()=>void J(),disabled:T||X||!h||!v,className:"w-full bg-primary-container text-on-primary-container py-2.5 rounded-full font-bold text-sm hover:bg-primary transition-colors active:scale-95 disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2",children:T?c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"material-symbols-outlined animate-spin",style:{fontSize:"1rem"},children:"progress_activity"}),l("run.starting")]}):c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"material-symbols-outlined",style:{fontSize:"1rem"},children:"play_arrow"}),l("run.startRun")]})})]}),c.jsxs("div",{className:"flex-1 flex flex-col min-h-0 bg-surface-container-low rounded-lg border border-outline-variant/5 overflow-hidden",children:[b&&c.jsx("div",{className:"p-3 border-b border-outline-variant/10",children:c.jsx(Qb,{runId:b.id,status:b.status,elapsedMs:X?$:b.durationMs,turns:b.numTurns,onAbort:X?I:void 0})}),c.jsx("div",{className:"flex-1 overflow-y-auto",children:b?c.jsx(Mu,{messages:K,loading:X&&K.length===0}):c.jsx("div",{className:"flex items-center justify-center h-full text-on-surface-variant/50 text-sm",children:l("run.emptyState")})})]})]})]})}function Pb(){const s=Lt(),{t:l}=Te(),[r,o]=N.useState([]),[f,d]=N.useState([]),[h,g]=N.useState([]),[v,p]=N.useState(!0),[b,y]=N.useState(""),[E,O]=N.useState(""),[T,R]=N.useState(""),[A,M]=N.useState("desc"),[K,$]=N.useState(null),[J,I]=N.useState([]),[X,V]=N.useState(!1),ne=N.useRef(0);N.useEffect(()=>{Promise.all([ze.runs.list(),ze.providers.list(),ze.scenarios.list()]).then(([G,_,k])=>{o(G),d(_),g(k)}).catch(()=>{}).finally(()=>p(!1))},[]);const Q=new Map(f.map(G=>[G.id,G.name])),le=new Map(h.map(G=>[G.id,G.name])),Me=r.filter(G=>!(b&&G.providerId!==b||E&&G.scenarioId!==E||T&&G.status!==T)).sort((G,_)=>{const k=new Date(G.createdAt).getTime()-new Date(_.createdAt).getTime();return A==="asc"?k:-k}),ae=K?r.find(G=>G.id===K)??null:null,se=N.useCallback(G=>{if(K===G.id){$(null);return}$(G.id),I([]),V(!0);const _=++ne.current;ze.evaluations.list({runId:G.id}).then(k=>{_===ne.current&&I(k.sort((ee,xe)=>new Date(xe.createdAt).getTime()-new Date(ee.createdAt).getTime()))}).catch(()=>{_===ne.current&&I([])}).finally(()=>{_===ne.current&&V(!1)})},[K]),re="bg-surface-container-low border border-outline-variant/20 rounded-md px-2 py-1 text-xs text-on-surface focus:ring-1 focus:ring-primary-container focus:border-primary-container";return c.jsxs("div",{className:"h-full flex flex-col",children:[c.jsxs("div",{className:"mb-6",children:[c.jsx("h1",{className:"text-2xl font-extrabold tracking-tight text-on-surface mb-1",children:l("runHistory.title")}),c.jsx("p",{className:"text-on-surface-variant text-sm",children:l("runHistory.subtitle")})]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-4",children:[c.jsxs("select",{className:re,value:b,onChange:G=>y(G.target.value),children:[c.jsx("option",{value:"",children:l("runHistory.allProviders")}),f.map(G=>c.jsx("option",{value:G.id,children:G.name},G.id))]}),c.jsxs("select",{className:re,value:E,onChange:G=>O(G.target.value),children:[c.jsx("option",{value:"",children:l("runHistory.allScenarios")}),h.map(G=>c.jsx("option",{value:G.id,children:G.name},G.id))]}),c.jsxs("select",{className:re,value:T,onChange:G=>R(G.target.value),children:[c.jsx("option",{value:"",children:l("runHistory.allStatuses")}),c.jsx("option",{value:"completed",children:l("status.completed")}),c.jsx("option",{value:"running",children:l("status.running")}),c.jsx("option",{value:"failed",children:l("status.failed")}),c.jsx("option",{value:"pending",children:l("status.pending")}),c.jsx("option",{value:"cancelled",children:l("status.cancelled")})]})]}),c.jsxs("div",{className:"flex flex-1 min-h-0 gap-0",children:[c.jsx("div",{className:"flex-1 min-w-0 bg-surface-container-low rounded-lg overflow-hidden border border-outline-variant/5",children:c.jsx("div",{className:"overflow-x-auto h-full overflow-y-auto",children:c.jsxs("table",{className:"w-full text-left border-collapse",children:[c.jsx("thead",{className:"bg-surface-container text-[0.65rem] text-on-surface-variant uppercase tracking-widest border-b border-outline-variant/10 sticky top-0",children:c.jsxs("tr",{children:[c.jsx("th",{className:"px-6 py-3 font-semibold",children:l("table.status")}),c.jsx("th",{className:"px-6 py-3 font-semibold",children:l("table.scenario")}),c.jsx("th",{className:"px-6 py-3 font-semibold",children:l("table.provider")}),c.jsx("th",{className:"px-6 py-3 font-semibold",children:l("table.duration")}),c.jsx("th",{className:"px-6 py-3 font-semibold text-center",children:l("table.turns")}),c.jsx("th",{className:"px-6 py-3 font-semibold text-right",children:l("table.cost")}),c.jsx("th",{className:"px-6 py-3 font-semibold text-right",children:c.jsxs("button",{type:"button",onClick:()=>M(G=>G==="desc"?"asc":"desc"),className:"inline-flex items-center gap-1 hover:text-on-surface transition-colors",children:[l("table.date"),c.jsx("span",{className:"material-symbols-outlined",style:{fontSize:"0.85rem"},children:A==="desc"?"arrow_downward":"arrow_upward"})]})})]})}),c.jsxs("tbody",{className:"text-[0.75rem] divide-y divide-outline-variant/5",children:[v&&c.jsx("tr",{children:c.jsx("td",{colSpan:7,className:"px-6 py-12 text-center text-on-surface-variant animate-pulse",children:l("runHistory.loadingRuns")})}),!v&&Me.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:7,className:"px-6 py-12 text-center text-on-surface-variant/50",children:l("runHistory.noRuns")})}),Me.map(G=>c.jsxs("tr",{onClick:()=>se(G),className:"hover:bg-surface-container-highest/40 transition-colors cursor-pointer"+(K===G.id?" bg-primary-container/10 ring-1 ring-inset ring-primary-container/30":""),children:[c.jsx("td",{className:"px-6 py-4",children:c.jsx(qa,{status:G.status})}),c.jsx("td",{className:"px-6 py-4 text-on-surface-variant",children:le.get(G.scenarioId)??G.scenarioId.slice(0,8)}),c.jsx("td",{className:"px-6 py-4 font-mono text-on-surface",children:Q.get(G.providerId)??G.providerId.slice(0,8)}),c.jsx("td",{className:"px-6 py-4 font-mono",children:qs(G.durationMs)}),c.jsx("td",{className:"px-6 py-4 font-mono text-center",children:G.numTurns}),c.jsxs("td",{className:"px-6 py-4 font-mono text-right",children:["$",G.totalCostUsd.toFixed(4)]}),c.jsx("td",{className:"px-6 py-4 text-on-surface-variant text-right",children:wu(G.createdAt)})]},G.id))]})]})})}),c.jsx("div",{className:"transition-all duration-300 overflow-hidden flex-shrink-0 "+(K?"w-96":"w-0"),children:ae&&c.jsxs("div",{className:"w-96 h-full overflow-y-auto border-l border-outline-variant/10 bg-surface-container-low",children:[c.jsxs("div",{className:"sticky top-0 bg-surface-container px-4 py-3 border-b border-outline-variant/10 flex items-center justify-between",children:[c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx("div",{className:"text-sm font-bold text-on-surface truncate",children:le.get(ae.scenarioId)??ae.scenarioId.slice(0,8)}),c.jsx("div",{className:"text-[0.65rem] text-on-surface-variant font-mono truncate",children:Q.get(ae.providerId)??ae.providerId.slice(0,8)})]}),c.jsxs("div",{className:"flex items-center gap-2 ml-2 flex-shrink-0",children:[c.jsx(qa,{status:ae.status}),c.jsx("button",{type:"button",onClick:()=>$(null),className:"text-on-surface-variant/60 hover:text-on-surface transition-colors",children:c.jsx("span",{className:"material-symbols-outlined",style:{fontSize:"1.1rem"},children:"close"})})]})]}),c.jsxs("div",{className:"px-4 py-3 flex gap-2 border-b border-outline-variant/10",children:[c.jsxs("button",{type:"button",onClick:()=>s(`/runs/${ae.id}`),className:"flex-1 bg-surface-container hover:bg-surface-container-highest text-on-surface text-xs font-bold py-2 rounded-md transition-colors flex items-center justify-center gap-1",children:[c.jsx("span",{className:"material-symbols-outlined",style:{fontSize:"0.85rem"},children:"visibility"}),l("runHistory.viewRun")]}),ae.status==="completed"&&c.jsxs("button",{type:"button",onClick:()=>s(`/runs/${ae.id}/evaluate`),className:"flex-1 bg-primary-container/20 hover:bg-primary-container/30 text-primary text-xs font-bold py-2 rounded-md transition-colors flex items-center justify-center gap-1",children:[c.jsx("span",{className:"material-symbols-outlined",style:{fontSize:"0.85rem"},children:"rate_review"}),l("runHistory.newEval")]})]}),c.jsxs("div",{className:"px-4 py-3",children:[c.jsx("div",{className:"text-[0.65rem] font-bold uppercase tracking-widest text-on-surface-variant mb-2",children:l("runHistory.evaluations")}),X&&c.jsx("div",{className:"text-xs text-on-surface-variant/60 animate-pulse py-4 text-center",children:l("common.loading")}),!X&&J.length===0&&c.jsx("div",{className:"text-xs text-on-surface-variant/50 py-4 text-center italic",children:l("runHistory.noEvaluations")}),c.jsx("div",{className:"space-y-2",children:J.map(G=>c.jsxs("button",{type:"button",onClick:()=>s(`/evaluations/${G.id}`),className:"w-full text-left bg-surface-container hover:bg-surface-container-highest rounded-md p-3 border border-outline-variant/10 transition-colors",children:[c.jsxs("div",{className:"flex items-center justify-between mb-1",children:[c.jsx(qa,{status:G.status}),G.status==="completed"&&c.jsxs("span",{className:"text-sm font-bold font-mono text-on-surface",children:[G.synthesis.weightedTotal.toFixed(1),c.jsx("span",{className:"text-on-surface-variant/60 text-xs",children:"/10"})]})]}),c.jsxs("div",{className:"flex items-center justify-between text-[0.65rem] text-on-surface-variant",children:[c.jsx("span",{className:"font-mono truncate",children:G.evaluators.map(_=>_.role).join(", ")}),c.jsx("span",{className:"ml-2 flex-shrink-0",children:wu(G.createdAt)})]})]},G.id))})]})]})})]})]})}function Mh({title:s,icon:l,children:r}){const[o,f]=N.useState(!1);return c.jsxs("div",{className:"border border-outline-variant/10 rounded-md overflow-hidden",children:[c.jsxs("button",{type:"button",onClick:()=>f(!o),className:"w-full flex items-center justify-between px-4 py-3 bg-surface-container hover:bg-surface-container-high transition-colors",children:[c.jsxs("span",{className:"text-sm font-bold text-on-surface flex items-center gap-2",children:[c.jsx("span",{className:"material-symbols-outlined",style:{fontSize:"1.1rem"},children:l}),s]}),c.jsx("span",{className:"material-symbols-outlined text-on-surface-variant transition-transform "+(o?"rotate-180":""),style:{fontSize:"1.1rem"},children:"expand_more"})]}),o&&c.jsx("div",{className:"p-4 bg-surface-container-low/50",children:r})]})}function Ib(){const{id:s}=ni(),l=Lt(),{t:r}=Te(),[o,f]=N.useState(null),[d,h]=N.useState([]),[g,v]=N.useState(!0),[p,b]=N.useState(null);if(N.useEffect(()=>{s&&Promise.all([ze.runs.get(s),ze.evaluations.list({runId:s})]).then(([O,T])=>{f(O),h([...T].sort((R,A)=>A.createdAt.localeCompare(R.createdAt)))}).catch(O=>b(O instanceof Error?O.message:"Failed to load run")).finally(()=>v(!1))},[s]),g)return c.jsx("div",{className:"flex items-center justify-center h-64",children:c.jsx("div",{className:"text-on-surface-variant text-sm animate-pulse",children:r("runDetail.loadingRun")})});if(p||!o)return c.jsx("div",{className:"flex items-center justify-center h-64",children:c.jsx("div",{className:"text-error text-sm",children:p??r("runDetail.runNotFound")})});const y=o.providerSnapshot,E=o.scenarioSnapshot;return c.jsxs("div",{className:"max-w-4xl mx-auto space-y-6",children:[c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-2 mb-2 text-on-surface-variant text-xs font-mono",children:[c.jsx("button",{type:"button",onClick:()=>l("/history"),className:"hover:text-on-surface transition-colors",children:r("runDetail.history")}),c.jsx("span",{children:"/"}),c.jsx("span",{children:o.id.slice(0,8)})]}),c.jsx("h1",{className:"text-2xl font-extrabold tracking-tight text-on-surface mb-1",children:r("runDetail.title")})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsxs("div",{className:"bg-surface-container-low p-4 rounded-md",children:[c.jsx("div",{className:"text-[0.65rem] font-bold uppercase tracking-widest text-on-surface-variant mb-2",children:r("common.status")}),c.jsx(qa,{status:o.status})]}),c.jsxs("div",{className:"bg-surface-container-low p-4 rounded-md",children:[c.jsx("div",{className:"text-[0.65rem] font-bold uppercase tracking-widest text-on-surface-variant mb-2",children:r("table.duration")}),c.jsx("div",{className:"text-lg font-mono font-bold text-on-surface",children:qs(o.durationMs)})]})]}),o.error&&c.jsx("div",{className:"p-3 rounded-md bg-error-container/20 border border-error/20 text-error text-sm font-mono",children:o.error}),c.jsxs("div",{className:"bg-surface-container-low rounded-lg border border-outline-variant/5 overflow-hidden",children:[c.jsx("div",{className:"px-4 py-3 bg-surface-container border-b border-outline-variant/10",children:c.jsx("h2",{className:"text-sm font-bold text-on-surface",children:r("runDetail.messageLog")})}),c.jsx("div",{className:"max-h-[500px] overflow-y-auto",children:c.jsx(Mu,{messages:o.messages})})]}),o.resultText&&c.jsxs("div",{className:"bg-surface-container-low rounded-lg border border-outline-variant/5 p-4",children:[c.jsx("h2",{className:"text-sm font-bold text-on-surface mb-2",children:r("runDetail.result")}),c.jsx("div",{className:"text-sm text-on-surface-variant whitespace-pre-wrap font-mono",children:o.resultText})]}),c.jsx(Mh,{title:r("runDetail.providerSnapshot"),icon:"settings_input_component",children:c.jsxs("div",{className:"space-y-2 text-xs",children:[c.jsxs("div",{children:[c.jsx("span",{className:"text-on-surface-variant",children:r("runDetail.nameLabel")})," ",c.jsx("span",{className:"text-on-surface font-medium",children:y.name})]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-on-surface-variant",children:r("runDetail.providerLabel")})," ",c.jsx("span",{className:"text-on-surface capitalize",children:y.providerName})]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-on-surface-variant",children:r("runDetail.modelLabel")})," ",c.jsx("span",{className:"text-on-surface font-mono",children:y.model})]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-on-surface-variant",children:r("runDetail.timeoutLabel")})," ",c.jsxs("span",{className:"text-on-surface font-mono",children:[y.timeoutSeconds,"s"]})]})]})}),c.jsx(Mh,{title:r("runDetail.scenarioSnapshot"),icon:"schema",children:c.jsxs("div",{className:"space-y-2 text-xs",children:[c.jsxs("div",{children:[c.jsx("span",{className:"text-on-surface-variant",children:r("runDetail.nameLabel")})," ",c.jsx("span",{className:"text-on-surface font-medium",children:E.name})]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-on-surface-variant",children:r("runDetail.categoryLabel")})," ",c.jsx("span",{className:"text-on-surface capitalize",children:E.category})]}),E.systemPrompt&&c.jsxs("div",{children:[c.jsx("span",{className:"text-on-surface-variant",children:r("runDetail.systemPromptLabel")}),c.jsx("div",{className:"mt-1 text-on-surface font-mono whitespace-pre-wrap bg-surface-container p-2 rounded text-[0.7rem] line-clamp-4",children:E.systemPrompt})]}),E.enabledTools.length>0&&c.jsxs("div",{children:[c.jsx("span",{className:"text-on-surface-variant",children:r("runDetail.enabledToolsLabel")}),c.jsx("div",{className:"mt-1 flex flex-wrap gap-1",children:E.enabledTools.map(O=>c.jsx("span",{className:"text-[0.65rem] font-mono px-1.5 py-0.5 rounded bg-surface-container-high text-on-surface-variant border border-outline-variant/10",children:O},O))})]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-on-surface-variant",children:r("runDetail.promptLabel")}),c.jsx("div",{className:"mt-1 text-on-surface font-mono whitespace-pre-wrap bg-surface-container p-2 rounded text-[0.7rem]",children:E.prompt})]}),E.expectedAnswer&&c.jsxs("div",{children:[c.jsx("span",{className:"text-on-surface-variant",children:r("runDetail.expectedAnswerLabel")}),c.jsx("div",{className:"mt-1 text-on-surface font-mono whitespace-pre-wrap bg-surface-container p-2 rounded text-[0.7rem]",children:E.expectedAnswer})]})]})}),d.length>0&&c.jsxs("div",{className:"bg-surface-container-low rounded-lg border border-outline-variant/5 overflow-hidden",children:[c.jsx("div",{className:"px-4 py-3 bg-surface-container border-b border-outline-variant/10",children:c.jsx("h2",{className:"text-sm font-bold text-on-surface",children:r("runDetail.previousEvaluations")})}),c.jsx("div",{className:"divide-y divide-outline-variant/10",children:d.map(O=>{var T;return c.jsxs("button",{type:"button",onClick:()=>l(`/evaluations/${O.id}`),className:"w-full flex items-center justify-between px-4 py-3 hover:bg-surface-container-high/50 transition-colors text-left",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(qa,{status:O.status}),c.jsx("span",{className:"text-xs text-on-surface font-mono",children:((T=O.evaluators[0])==null?void 0:T.model)??"unknown"})]}),c.jsxs("div",{className:"flex items-center gap-4",children:[O.status==="completed"&&c.jsxs("span",{className:"text-sm font-bold text-on-surface",children:[O.synthesis.weightedTotal.toFixed(1),"/10"]}),c.jsx("span",{className:"text-xs text-on-surface-variant",children:wu(O.createdAt)}),c.jsx("span",{className:"material-symbols-outlined text-on-surface-variant",style:{fontSize:"1rem"},children:"chevron_right"})]})]},O.id)})})]}),o.status==="completed"&&c.jsx("div",{className:"flex justify-end",children:c.jsxs("button",{type:"button",onClick:()=>l(`/runs/${o.id}/evaluate`),className:"bg-primary-container text-on-primary-container px-6 py-2.5 rounded-full font-bold text-sm hover:bg-primary transition-colors active:scale-95 flex items-center gap-2",children:[c.jsx("span",{className:"material-symbols-outlined",style:{fontSize:"1rem"},children:"rate_review"}),r("runDetail.evaluateThisRun")]})})]})}const Su="block text-[0.65rem] font-bold uppercase tracking-widest text-on-surface-variant mb-1.5",eS="w-full bg-surface-container-low border border-outline-variant/20 rounded-md px-3 py-2 text-sm text-on-surface focus:ring-1 focus:ring-primary-container focus:border-primary-container placeholder:text-outline/50",tS="w-full bg-surface-container-low border border-outline-variant/20 rounded-md px-3 py-2 text-sm text-on-surface focus:ring-1 focus:ring-primary-container focus:border-primary-container";function aS(){var I;const{id:s}=ni(),l=Lt(),{t:r}=Te(),[o,f]=N.useState(null),[d,h]=N.useState([]),[g,v]=N.useState(!0),[p,b]=N.useState(null),[y,E]=N.useState(!1),[O,T]=N.useState([]),[R,A]=N.useState(3);N.useEffect(()=>{s&&Promise.all([ze.runs.get(s),ze.providers.list()]).then(([X,V])=>{f(X),h(V),V.length>0&&T([{providerId:V[0].id,role:"Synthesizer"}])}).catch(X=>b(X instanceof Error?X.message:"Failed to load data")).finally(()=>v(!1))},[s]);function M(X,V){T(ne=>ne.map((Q,le)=>{const Me=le===X?{...Q,...V}:Q;return le===ne.length-1&&Me.role!=="Synthesizer"?{...Me,role:"Synthesizer"}:Me}))}function K(){d.length!==0&&T(X=>[...X.map((ne,Q)=>Q===X.length-1?{...ne,role:X.length>1?`Evaluator ${X.length}`:"Evaluator"}:ne),{providerId:d[0].id,role:"Synthesizer"}])}function $(X){O.length<=1||T(V=>{const ne=V.filter((Q,le)=>le!==X);return ne.map((Q,le)=>le===ne.length-1?{...Q,role:"Synthesizer"}:Q)})}async function J(){if(s){E(!0),b(null);try{const X=await ze.evaluations.create({runId:s,evaluators:O,maxRounds:R});l(`/evaluations/${X.id}`)}catch(X){b(X instanceof Error?X.message:"Failed to start evaluation")}finally{E(!1)}}}return g?c.jsx("div",{className:"flex items-center justify-center h-64",children:c.jsx("div",{className:"text-on-surface-variant text-sm animate-pulse",children:r("common.loading")})}):c.jsxs("div",{className:"max-w-3xl mx-auto",children:[c.jsxs("div",{className:"mb-6",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-2 text-on-surface-variant text-xs font-mono",children:[c.jsxs("button",{type:"button",onClick:()=>l(`/runs/${s}`),className:"hover:text-on-surface transition-colors",children:["Run ",s==null?void 0:s.slice(0,8)]}),c.jsx("span",{children:"/"}),c.jsx("span",{children:r("evalConfig.evaluate")})]}),c.jsx("h1",{className:"text-2xl font-extrabold tracking-tight text-on-surface mb-1",children:r("evalConfig.title")}),c.jsx("p",{className:"text-on-surface-variant text-sm",children:r("evalConfig.subtitle",{name:((I=o==null?void 0:o.scenarioSnapshot)==null?void 0:I.name)??""})})]}),p&&c.jsx("div",{className:"mb-4 p-3 rounded-md bg-error-container/20 border border-error/20 text-error text-sm",children:p}),d.length===0?c.jsx("div",{className:"bg-surface-container rounded-md p-6 text-center text-on-surface-variant text-sm",children:r("evalConfig.noProviders")}):c.jsxs("div",{className:"space-y-6",children:[c.jsxs("section",{className:"space-y-4",children:[c.jsxs("h2",{className:"text-sm font-bold text-on-surface flex items-center gap-2",children:[c.jsx("span",{className:"material-symbols-outlined",style:{fontSize:"1.1rem"},children:"groups"}),r("evalConfig.evaluators")]}),O.map((X,V)=>{const ne=V===O.length-1;return c.jsxs("div",{className:"bg-surface-container rounded-md p-4 space-y-3 border border-outline-variant/10",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("span",{className:"text-xs font-bold uppercase tracking-wider "+(ne?"text-primary":"text-on-surface-variant"),children:[X.role,ne&&c.jsx("span",{className:"ml-1 text-[0.6rem] normal-case font-normal",children:r("evalConfig.finalArbiter")})]}),O.length>1&&c.jsx("button",{type:"button",onClick:()=>$(V),className:"text-error/70 hover:text-error transition-colors p-1",children:c.jsx("span",{className:"material-symbols-outlined",style:{fontSize:"1rem"},children:"close"})})]}),!ne&&c.jsxs("div",{children:[c.jsx("label",{className:Su,children:r("evalConfig.roleName")}),c.jsx("input",{type:"text",className:eS+" max-w-[240px]",value:X.role,onChange:Q=>M(V,{role:Q.target.value})})]}),c.jsxs("div",{children:[c.jsx("label",{className:Su,children:r("evalConfig.provider")}),c.jsx("select",{className:tS,value:X.providerId,onChange:Q=>M(V,{providerId:Q.target.value}),children:d.map(Q=>c.jsxs("option",{value:Q.id,children:[Q.name," (",Q.model,")"]},Q.id))})]})]},V)}),c.jsxs("button",{type:"button",onClick:K,className:"w-full py-2 border border-dashed border-outline-variant/30 rounded-md text-xs font-bold text-on-surface-variant hover:text-on-surface hover:border-outline-variant/60 transition-colors flex items-center justify-center gap-1.5",children:[c.jsx("span",{className:"material-symbols-outlined",style:{fontSize:"0.9rem"},children:"add"}),r("evalConfig.addEvaluator")]})]}),c.jsxs("section",{className:"space-y-4",children:[c.jsxs("h2",{className:"text-sm font-bold text-on-surface flex items-center gap-2",children:[c.jsx("span",{className:"material-symbols-outlined",style:{fontSize:"1.1rem"},children:"settings"}),r("evalConfig.settings")]}),c.jsxs("div",{children:[c.jsx("label",{className:Su,children:r("evalConfig.maxDebateRounds")}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("input",{type:"range",className:"flex-1 accent-primary-container max-w-[200px]",min:1,max:5,value:R,onChange:X=>A(Number(X.target.value))}),c.jsx("span",{className:"text-sm font-mono text-on-surface w-4 text-center",children:R})]})]}),c.jsxs("div",{className:"text-xs text-on-surface-variant bg-surface-container rounded-md p-3",children:[c.jsx("span",{className:"material-symbols-outlined text-primary/60 mr-1",style:{fontSize:"0.9rem",verticalAlign:"middle"},children:"info"}),r("evalConfig.apiCallInfo",{evaluators:O.length,rounds:R,total:O.length*R})]})]}),c.jsxs("div",{className:"flex items-center gap-3 pt-4 border-t border-outline-variant/10",children:[c.jsxs("button",{type:"button",onClick:()=>void J(),disabled:y||O.length===0,className:"bg-primary-container text-on-primary-container px-6 py-2.5 rounded-full font-bold text-sm hover:bg-primary transition-colors active:scale-95 disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2",children:[y&&c.jsx("span",{className:"material-symbols-outlined animate-spin",style:{fontSize:"1rem"},children:"progress_activity"}),r("evalConfig.startEvaluation")]}),c.jsx("button",{type:"button",onClick:()=>l(`/runs/${s}`),className:"text-on-surface-variant hover:text-on-surface text-sm font-medium transition-colors px-4 py-2.5",children:r("common.cancel")})]})]})]})}function nS({synthesis:s,answerComparison:l,totalCostUsd:r,numRounds:o}){const{t:f}=Te(),d=s.weightedTotal,h=d>=7?"text-green-400":d>=4?"text-yellow-400":"text-error";return c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"primary-gradient rounded-lg p-6 flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-[0.65rem] font-bold uppercase tracking-widest text-white/60 mb-1",children:f("report.overallScore")}),c.jsx("div",{className:`text-5xl font-extrabold font-mono ${h}`,children:d.toFixed(1)}),c.jsx("div",{className:"text-xs text-white/60 mt-1",children:f("report.confidence",{value:(s.confidence*100).toFixed(0)})})]}),c.jsx("div",{className:"text-right space-y-1",children:s.dissenting.length>0&&c.jsx("div",{className:"text-xs text-yellow-200",children:f("report.dissentingOpinion",{count:s.dissenting.length})})})]}),c.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3",children:[c.jsxs("div",{className:"bg-surface-container-low p-4 rounded-md",children:[c.jsx("div",{className:"text-[0.65rem] font-bold uppercase tracking-widest text-on-surface-variant mb-2",children:f("report.answerMatch")}),c.jsx("div",{className:"text-lg font-bold "+(l.matches?"text-green-400":"text-error"),children:l.matches?f("common.yes"):f("common.no")}),c.jsx("div",{className:"text-xs text-on-surface-variant mt-1",children:f("report.similar",{value:(l.similarity*100).toFixed(0)})})]}),c.jsxs("div",{className:"bg-surface-container-low p-4 rounded-md",children:[c.jsx("div",{className:"text-[0.65rem] font-bold uppercase tracking-widest text-on-surface-variant mb-2",children:f("report.evalCost")}),c.jsxs("div",{className:"text-lg font-mono font-bold text-on-surface",children:["$",r.toFixed(4)]})]}),c.jsxs("div",{className:"bg-surface-container-low p-4 rounded-md",children:[c.jsx("div",{className:"text-[0.65rem] font-bold uppercase tracking-widest text-on-surface-variant mb-2",children:f("report.rounds")}),c.jsx("div",{className:"text-lg font-mono font-bold text-on-surface",children:o})]}),c.jsxs("div",{className:"bg-surface-container-low p-4 rounded-md",children:[c.jsx("div",{className:"text-[0.65rem] font-bold uppercase tracking-widest text-on-surface-variant mb-2",children:f("report.consensus")}),c.jsx("div",{className:"text-lg font-bold "+(s.dissenting.length===0?"text-green-400":"text-yellow-400"),children:s.dissenting.length===0?f("report.reached"):f("report.partial")})]})]})]})}function lS(s){return s>=7?"bg-green-400":s>=4?"bg-yellow-400":"bg-error"}function iS({dimensionScores:s,dimensions:l}){const{t:r}=Te(),o=l.length>0?l.map(f=>({name:f.name,score:s[f.name]??0,weight:f.weight})):Object.entries(s).map(([f,d])=>({name:f,score:d,weight:1}));return o.length===0?c.jsx("div",{className:"text-xs text-on-surface-variant/50",children:r("report.noDimensionScores")}):c.jsx("div",{className:"space-y-3",children:o.map(f=>c.jsxs("div",{className:"space-y-1",children:[c.jsxs("div",{className:"flex items-center justify-between text-xs",children:[c.jsx("span",{className:"text-on-surface font-medium",children:f.name}),c.jsxs("span",{className:"text-on-surface-variant font-mono",children:[f.score.toFixed(1),"/10",f.weight!==1&&c.jsxs("span",{className:"text-on-surface-variant/50 ml-1",children:["(",f.weight,"x)"]})]})]}),c.jsx("div",{className:"h-2 bg-surface-container-high rounded-full overflow-hidden",children:c.jsx("div",{className:`h-full rounded-full transition-all ${lS(f.score)}`,style:{width:`${f.score/10*100}%`}})})]},f.name))})}function sS({result:s}){const{t:l}=Te(),[r,o]=N.useState(!1);return c.jsxs("div",{className:"border border-outline-variant/10 rounded-md overflow-hidden",children:[c.jsxs("button",{type:"button",onClick:()=>o(!r),className:"w-full flex items-center gap-2.5 px-3 py-2 hover:bg-surface-container-high/50 transition-colors text-left",children:[c.jsx("span",{className:"material-symbols-outlined "+(s.met?"text-green-400":"text-error"),style:{fontSize:"1rem",fontVariationSettings:"'FILL' 1"},children:s.met?"check_circle":"cancel"}),c.jsx("span",{className:"flex-1 text-xs text-on-surface",children:s.requirement}),c.jsx("span",{className:"material-symbols-outlined text-on-surface-variant transition-transform "+(r?"rotate-180":""),style:{fontSize:"0.9rem"},children:"expand_more"})]}),r&&c.jsxs("div",{className:"px-3 py-2 bg-surface-container-low/50 border-t border-outline-variant/10",children:[c.jsx("div",{className:"text-[0.6rem] font-bold uppercase tracking-widest text-on-surface-variant mb-1",children:l("report.evidence")}),c.jsx("div",{className:"text-xs text-on-surface-variant whitespace-pre-wrap",children:s.evidence})]})]})}function rS({results:s}){const{t:l}=Te();if(s.length===0)return c.jsx("div",{className:"text-xs text-on-surface-variant/50",children:l("report.noCriticalRequirements")});const r=s.filter(o=>o.met).length;return c.jsxs("div",{className:"space-y-2",children:[c.jsx("div",{className:"text-xs text-on-surface-variant mb-2",children:l("report.passedCount",{passed:r,total:s.length})}),s.map((o,f)=>c.jsx(sS,{result:o},f))]})}function oS({comparison:s,expectedAnswer:l,actualAnswer:r}){const{t:o}=Te(),f=(s.similarity*100).toFixed(0),d=s.similarity>=.7?"bg-green-400":s.similarity>=.4?"bg-yellow-400":"bg-error";return c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"text-xs text-on-surface-variant font-medium",children:o("report.similarity")}),c.jsx("div",{className:"flex-1 h-2 bg-surface-container-high rounded-full overflow-hidden",children:c.jsx("div",{className:`h-full rounded-full transition-all ${d}`,style:{width:`${f}%`}})}),c.jsxs("span",{className:"text-xs font-mono text-on-surface font-bold",children:[f,"%"]})]}),s.explanation&&c.jsx("div",{className:"text-xs text-on-surface-variant bg-surface-container rounded-md p-3",children:s.explanation}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-[0.65rem] font-bold uppercase tracking-widest text-on-surface-variant mb-2",children:o("report.expected")}),c.jsx("div",{className:"bg-surface-container rounded-md p-3 text-xs text-on-surface font-mono whitespace-pre-wrap min-h-[80px] border border-outline-variant/10",children:l||c.jsx("span",{className:"text-on-surface-variant/50 italic",children:o("report.noExpectedAnswer")})})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-[0.65rem] font-bold uppercase tracking-widest text-on-surface-variant mb-2",children:o("report.actual")}),c.jsx("div",{className:"bg-surface-container rounded-md p-3 text-xs text-on-surface font-mono whitespace-pre-wrap min-h-[80px] border border-outline-variant/10",children:r||c.jsx("span",{className:"text-on-surface-variant/50 italic",children:o("report.noResultText")})})]})]})]})}const uS={followed:"bg-green-400/10 text-green-400",violated:"bg-error/10 text-error","not-applicable":"bg-surface-container-high text-on-surface-variant"},cS={followed:"report.followed",violated:"report.violated","not-applicable":"report.notApplicable"};function fS({compliance:s}){const{t:l}=Te(),r=[...s.followed.map(o=>({instruction:o,status:"followed"})),...s.violated.map(o=>({instruction:o,status:"violated"})),...s.notApplicable.map(o=>({instruction:o,status:"not-applicable"}))];return r.length===0?c.jsx("div",{className:"text-xs text-on-surface-variant/50",children:l("report.noComplianceData")}):c.jsxs("div",{className:"space-y-3",children:[c.jsxs("div",{className:"text-xs text-on-surface-variant",children:[l("report.overallCompliance")," ",c.jsxs("span",{className:"font-mono font-bold text-on-surface",children:[(s.overallCompliance*100).toFixed(0),"%"]})]}),c.jsx("div",{className:"overflow-x-auto",children:c.jsxs("table",{className:"w-full text-left border-collapse",children:[c.jsx("thead",{className:"text-[0.65rem] text-on-surface-variant uppercase tracking-widest border-b border-outline-variant/10",children:c.jsxs("tr",{children:[c.jsx("th",{className:"px-3 py-2 font-semibold",children:l("report.instruction")}),c.jsx("th",{className:"px-3 py-2 font-semibold text-right",children:l("common.status")})]})}),c.jsx("tbody",{className:"text-xs divide-y divide-outline-variant/5",children:r.map((o,f)=>c.jsxs("tr",{className:"hover:bg-surface-container-highest/40 transition-colors",children:[c.jsx("td",{className:"px-3 py-2.5 text-on-surface",children:o.instruction}),c.jsx("td",{className:"px-3 py-2.5 text-right",children:c.jsx("span",{className:`inline-block px-2 py-0.5 rounded-full text-[0.65rem] font-bold ${uS[o.status]}`,children:l(cS[o.status])})})]},f))})]})})]})}function dS({compliance:s}){const{t:l}=Te(),r=s.instructionCompliance;return r.followed.length+r.violated.length+r.notApplicable.length===0?c.jsx("div",{className:"text-xs text-on-surface-variant/50",children:l("report.noUsageData")}):c.jsxs("div",{className:"space-y-3",children:[c.jsxs("div",{className:"text-xs text-on-surface-variant",children:[l("report.overallCompliance")," ",c.jsxs("span",{className:"font-mono font-bold text-on-surface",children:[(r.overallCompliance*100).toFixed(0),"%"]})]}),c.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[c.jsxs("div",{className:"bg-green-400/10 rounded-md p-3 text-center",children:[c.jsx("div",{className:"text-lg font-bold font-mono text-green-400",children:r.followed.length}),c.jsx("div",{className:"text-[0.6rem] uppercase tracking-wider font-bold text-green-400/70",children:l("report.followed")})]}),c.jsxs("div",{className:"bg-error/10 rounded-md p-3 text-center",children:[c.jsx("div",{className:"text-lg font-bold font-mono text-error",children:r.violated.length}),c.jsx("div",{className:"text-[0.6rem] uppercase tracking-wider font-bold text-error/70",children:l("report.violated")})]}),c.jsxs("div",{className:"bg-surface-container-high rounded-md p-3 text-center",children:[c.jsx("div",{className:"text-lg font-bold font-mono text-on-surface-variant",children:r.notApplicable.length}),c.jsx("div",{className:"text-[0.6rem] uppercase tracking-wider font-bold text-on-surface-variant/70",children:l("report.notApplicable")})]})]})]})}function mS({strengths:s,weaknesses:l,recommendations:r}){const{t:o}=Te();return c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[c.jsxs("div",{className:"bg-green-400/5 border border-green-400/10 rounded-md p-4",children:[c.jsxs("h3",{className:"text-xs font-bold text-green-400 uppercase tracking-wider mb-2 flex items-center gap-1.5",children:[c.jsx("span",{className:"material-symbols-outlined",style:{fontSize:"0.9rem"},children:"thumb_up"}),o("report.strengths")]}),s.length===0?c.jsx("div",{className:"text-xs text-on-surface-variant/50",children:o("report.noneIdentified")}):c.jsx("ul",{className:"space-y-1.5",children:s.map((f,d)=>c.jsxs("li",{className:"text-xs text-on-surface flex items-start gap-1.5",children:[c.jsx("span",{className:"text-green-400 mt-0.5",children:"•"}),f]},d))})]}),c.jsxs("div",{className:"bg-error/5 border border-error/10 rounded-md p-4",children:[c.jsxs("h3",{className:"text-xs font-bold text-error uppercase tracking-wider mb-2 flex items-center gap-1.5",children:[c.jsx("span",{className:"material-symbols-outlined",style:{fontSize:"0.9rem"},children:"thumb_down"}),o("report.weaknesses")]}),l.length===0?c.jsx("div",{className:"text-xs text-on-surface-variant/50",children:o("report.noneIdentified")}):c.jsx("ul",{className:"space-y-1.5",children:l.map((f,d)=>c.jsxs("li",{className:"text-xs text-on-surface flex items-start gap-1.5",children:[c.jsx("span",{className:"text-error mt-0.5",children:"•"}),f]},d))})]}),r&&r.length>0&&c.jsxs("div",{className:"md:col-span-2 bg-primary-container/5 border border-primary-container/10 rounded-md p-4",children:[c.jsxs("h3",{className:"text-xs font-bold text-primary uppercase tracking-wider mb-2 flex items-center gap-1.5",children:[c.jsx("span",{className:"material-symbols-outlined",style:{fontSize:"0.9rem"},children:"lightbulb"}),o("report.recommendations")]}),c.jsx("ul",{className:"space-y-1.5",children:r.map((f,d)=>c.jsxs("li",{className:"text-xs text-on-surface flex items-start gap-1.5",children:[c.jsx("span",{className:"text-primary mt-0.5",children:"•"}),f]},d))})]})]})}function un({title:s,icon:l,children:r}){return c.jsxs("div",{className:"bg-surface-container-low rounded-lg border border-outline-variant/5 overflow-hidden",children:[c.jsxs("div",{className:"px-4 py-3 bg-surface-container border-b border-outline-variant/10 flex items-center gap-2",children:[c.jsx("span",{className:"material-symbols-outlined text-primary/60",style:{fontSize:"1.1rem"},children:l}),c.jsx("h2",{className:"text-sm font-bold text-on-surface",children:s})]}),c.jsx("div",{className:"p-4",children:r})]})}function hS(s,l){const r=[],o=[],f=[];for(const[d,h]of Object.entries(s.synthesis.dimensionScores))h>=8&&r.push(l("report.strongPerformance",{dim:d,score:h.toFixed(1)})),h<4&&o.push(l("report.lowScore",{dim:d,score:h.toFixed(1)}));for(const d of s.criticalResults.filter(h=>!h.met))o.push(l("report.failedReq",{requirement:d.requirement})),f.push(l("report.addressReq",{requirement:d.requirement}));for(const d of s.setupCompliance.instructionCompliance.violated)o.push(l("report.violatedInstruction",{instruction:d}));return r.length===0&&r.push(l("report.evalSuccess")),{strengths:r,weaknesses:o,recommendations:f}}function pS({evaluation:s,run:l}){const{t:r}=Te(),{strengths:o,weaknesses:f,recommendations:d}=hS(s,r),h=l==null?void 0:l.scenarioSnapshot;return c.jsxs("div",{className:"space-y-6",children:[s.synthesis&&c.jsx(nS,{synthesis:s.synthesis,answerComparison:s.answerComparison,totalCostUsd:s.totalCostUsd,numRounds:s.rounds.length}),s.synthesis&&c.jsx(un,{title:r("report.scoreBreakdown"),icon:"analytics",children:c.jsx(iS,{dimensionScores:s.synthesis.dimensionScores,dimensions:(h==null?void 0:h.scoringDimensions)??[]})}),c.jsx(un,{title:r("report.criticalRequirements"),icon:"checklist",children:c.jsx(rS,{results:s.criticalResults})}),c.jsx(un,{title:r("report.answerComparison"),icon:"compare_arrows",children:c.jsx(oS,{comparison:s.answerComparison,expectedAnswer:(h==null?void 0:h.expectedAnswer)??"",actualAnswer:(l==null?void 0:l.resultText)??""})}),c.jsx(un,{title:r("report.instructionCompliance"),icon:"policy",children:c.jsx(fS,{compliance:s.setupCompliance.instructionCompliance})}),c.jsx(un,{title:r("report.toolAgentUsage"),icon:"precision_manufacturing",children:c.jsx(dS,{compliance:s.setupCompliance})}),c.jsx(un,{title:r("report.analysis"),icon:"insights",children:c.jsx(mS,{strengths:o,weaknesses:f,recommendations:d})}),s.rounds.length>0&&c.jsx(un,{title:r("report.evaluationRounds",{count:s.rounds.length}),icon:"sync",children:c.jsx("div",{className:"space-y-3",children:s.rounds.map(g=>c.jsxs("div",{className:"bg-surface-container rounded-md p-3 border border-outline-variant/10",children:[c.jsxs("div",{className:"flex items-center justify-between mb-2",children:[c.jsx("span",{className:"text-xs font-bold text-on-surface",children:r("report.round",{number:g.roundNumber})}),c.jsx("span",{className:"text-[0.65rem] font-bold "+(g.consensusReached?"text-green-400":"text-yellow-400"),children:g.consensusReached?r("report.consensus"):r("report.noConsensus")})]}),c.jsx("div",{className:"space-y-1",children:g.evaluations.map((v,p)=>c.jsxs("div",{className:"text-xs text-on-surface-variant flex items-baseline gap-2",children:[c.jsx("span",{className:"font-mono text-on-surface-variant/60 w-20 flex-shrink-0",children:v.evaluatorRole}),c.jsx("span",{className:"text-on-surface font-medium",children:v.dimension}),c.jsx("span",{className:"font-mono ml-auto",children:v.score.toFixed(1)})]},p))})]},g.roundNumber))})})]})}function gS(){const{id:s}=ni(),l=Lt(),{t:r}=Te(),[o,f]=N.useState(null),[d,h]=N.useState(null),[g,v]=N.useState(!0),[p,b]=N.useState(null),[y,E]=N.useState(null),{messages:O,progressSteps:T}=hp({sseUrl:y,onComplete:()=>{s&&ze.evaluations.get(s).then(A=>f(A)).catch(()=>{})}});if(N.useEffect(()=>{if(!s)return;let A=!1;return ze.evaluations.get(s).then(async M=>{if(A)return;f(M);const K=await ze.runs.get(M.runId);A||h(K),(M.status==="pending"||M.status==="running")&&E(`/api/evaluations/${s}/stream`)}).catch(M=>{A||b(M instanceof Error?M.message:"Failed to load evaluation")}).finally(()=>{A||v(!1)}),()=>{A=!0}},[s]),g)return c.jsx("div",{className:"flex items-center justify-center h-64",children:c.jsx("div",{className:"text-on-surface-variant text-sm animate-pulse",children:r("report.loadingEvaluation")})});if(p||!o)return c.jsx("div",{className:"flex items-center justify-center h-64",children:c.jsx("div",{className:"text-error text-sm",children:p??r("report.evaluationNotFound")})});const R=o.status==="pending"||o.status==="running";return c.jsxs("div",{className:"max-w-4xl mx-auto space-y-6",children:[c.jsxs("div",{className:"flex items-center gap-2 text-on-surface-variant text-xs font-mono",children:[c.jsx("button",{type:"button",onClick:()=>l("/history"),className:"hover:text-on-surface transition-colors",children:r("runDetail.history")}),c.jsx("span",{children:"/"}),d&&c.jsxs(c.Fragment,{children:[c.jsxs("button",{type:"button",onClick:()=>l(`/runs/${d.id}`),className:"hover:text-on-surface transition-colors",children:["Run ",d.id.slice(0,8)]}),c.jsx("span",{children:"/"})]}),c.jsx("span",{children:r("evalConfig.evaluate")})]}),c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("h1",{className:"text-2xl font-extrabold tracking-tight text-on-surface mb-1",children:r("report.title")}),c.jsx("p",{className:"text-on-surface-variant text-sm",children:d!=null&&d.scenarioSnapshot?r("report.scenarioLabel",{name:d.scenarioSnapshot.name}):r("report.runLabel",{id:o.runId.slice(0,8)})})]}),c.jsx(qa,{status:o.status})]}),R?c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[o.status==="running"&&c.jsx("span",{className:"material-symbols-outlined animate-spin text-primary",style:{fontSize:"1.2rem"},children:"progress_activity"}),c.jsx("h2",{className:"text-lg font-bold text-on-surface",children:o.status==="running"?r("report.inProgress"):r("report.waitingToStart")})]}),T.length>0&&c.jsx("div",{className:"flex flex-wrap gap-2",children:T.map((A,M)=>c.jsx("span",{className:"text-xs font-mono bg-surface-container px-2 py-1 rounded text-on-surface-variant border border-outline-variant/10",children:A},M))}),c.jsx("div",{className:"bg-surface-container-low rounded-lg border border-outline-variant/5 overflow-hidden max-h-[60vh] overflow-y-auto",children:c.jsx(Mu,{messages:O,loading:O.length===0&&o.status==="running"})})]}):c.jsx(pS,{evaluation:o,run:d})]})}function vS(){return c.jsx(xb,{children:c.jsx($0,{children:c.jsxs(dt,{element:c.jsx(Ab,{}),children:[c.jsx(dt,{path:"/",element:c.jsx(_b,{})}),c.jsx(dt,{path:"/providers",element:c.jsx(Mb,{})}),c.jsx(dt,{path:"/providers/new",element:c.jsx(Rh,{})}),c.jsx(dt,{path:"/providers/:id/edit",element:c.jsx(Rh,{})}),c.jsx(dt,{path:"/scenarios",element:c.jsx(Yb,{})}),c.jsx(dt,{path:"/scenarios/new",element:c.jsx(zh,{})}),c.jsx(dt,{path:"/scenarios/:id",element:c.jsx(zh,{})}),c.jsx(dt,{path:"/run",element:c.jsx(Wb,{})}),c.jsx(dt,{path:"/history",element:c.jsx(Pb,{})}),c.jsx(dt,{path:"/runs/:id",element:c.jsx(Ib,{})}),c.jsx(dt,{path:"/runs/:id/evaluate",element:c.jsx(aS,{})}),c.jsx(dt,{path:"/evaluations/:id",element:c.jsx(gS,{})})]})})})}const pp=document.getElementById("root");if(!pp)throw new Error("Root element not found");$v.createRoot(pp).render(c.jsx(N.StrictMode,{children:c.jsx(vS,{})}));