crfm-helm 0.3.0__py3-none-any.whl → 0.5.0__py3-none-any.whl

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 (546) hide show
  1. {crfm_helm-0.3.0.dist-info → crfm_helm-0.5.0.dist-info}/METADATA +144 -36
  2. crfm_helm-0.5.0.dist-info/RECORD +642 -0
  3. {crfm_helm-0.3.0.dist-info → crfm_helm-0.5.0.dist-info}/WHEEL +1 -1
  4. helm/benchmark/adaptation/adapter_spec.py +37 -2
  5. helm/benchmark/adaptation/adapters/adapter.py +4 -42
  6. helm/benchmark/adaptation/adapters/adapter_factory.py +24 -27
  7. helm/benchmark/adaptation/adapters/binary_ranking_adapter.py +1 -0
  8. helm/benchmark/adaptation/adapters/generation_adapter.py +2 -0
  9. helm/benchmark/adaptation/adapters/in_context_learning_adapter.py +21 -4
  10. helm/benchmark/adaptation/adapters/language_modeling_adapter.py +12 -5
  11. helm/benchmark/adaptation/adapters/multimodal/generation_multimodal_adapter.py +1 -0
  12. helm/benchmark/adaptation/adapters/multimodal/in_context_learning_multimodal_adapter.py +1 -0
  13. helm/benchmark/adaptation/adapters/multimodal/multiple_choice_joint_multimodal_adapter.py +104 -0
  14. helm/benchmark/adaptation/adapters/multimodal/test_in_context_learning_multimodal_adapter.py +5 -1
  15. helm/benchmark/adaptation/adapters/multiple_choice_joint_adapter.py +1 -0
  16. helm/benchmark/adaptation/adapters/multiple_choice_separate_adapter.py +1 -0
  17. helm/benchmark/adaptation/adapters/test_adapter.py +2 -1
  18. helm/benchmark/adaptation/adapters/test_generation_adapter.py +59 -14
  19. helm/benchmark/adaptation/adapters/test_language_modeling_adapter.py +40 -5
  20. helm/benchmark/adaptation/adapters/test_multiple_choice_joint_adapter.py +78 -10
  21. helm/benchmark/adaptation/common_adapter_specs.py +376 -0
  22. helm/benchmark/adaptation/prompt.py +7 -1
  23. helm/benchmark/adaptation/request_state.py +6 -1
  24. helm/benchmark/adaptation/scenario_state.py +6 -2
  25. helm/benchmark/annotation/annotator.py +43 -0
  26. helm/benchmark/annotation/annotator_factory.py +61 -0
  27. helm/benchmark/annotation/image2structure/image_compiler_annotator.py +88 -0
  28. helm/benchmark/annotation/image2structure/latex_compiler_annotator.py +59 -0
  29. helm/benchmark/annotation/image2structure/lilypond_compiler_annotator.py +84 -0
  30. helm/benchmark/annotation/image2structure/webpage_compiler_annotator.py +132 -0
  31. helm/benchmark/annotation/test_annotator_factory.py +26 -0
  32. helm/benchmark/annotation/test_dummy_annotator.py +44 -0
  33. helm/benchmark/annotation_executor.py +124 -0
  34. helm/benchmark/augmentations/cleva_perturbation.py +7 -14
  35. helm/benchmark/augmentations/contraction_expansion_perturbation.py +3 -3
  36. helm/benchmark/augmentations/contrast_sets_perturbation.py +0 -3
  37. helm/benchmark/augmentations/data_augmenter.py +0 -2
  38. helm/benchmark/augmentations/dialect_perturbation.py +2 -2
  39. helm/benchmark/augmentations/extra_space_perturbation.py +2 -2
  40. helm/benchmark/augmentations/filler_words_perturbation.py +2 -2
  41. helm/benchmark/augmentations/gender_perturbation.py +3 -3
  42. helm/benchmark/augmentations/lowercase_perturbation.py +2 -2
  43. helm/benchmark/augmentations/mild_mix_perturbation.py +2 -2
  44. helm/benchmark/augmentations/misspelling_perturbation.py +2 -2
  45. helm/benchmark/augmentations/person_name_perturbation.py +0 -7
  46. helm/benchmark/augmentations/perturbation.py +20 -7
  47. helm/benchmark/augmentations/perturbation_description.py +1 -1
  48. helm/benchmark/augmentations/space_perturbation.py +2 -2
  49. helm/benchmark/augmentations/suffix_perturbation.py +29 -0
  50. helm/benchmark/augmentations/synonym_perturbation.py +2 -2
  51. helm/benchmark/augmentations/test_perturbation.py +11 -7
  52. helm/benchmark/augmentations/translate_perturbation.py +30 -0
  53. helm/benchmark/augmentations/typos_perturbation.py +2 -2
  54. helm/benchmark/config_registry.py +38 -0
  55. helm/benchmark/executor.py +46 -16
  56. helm/benchmark/huggingface_registration.py +37 -7
  57. helm/benchmark/metrics/basic_metrics.py +172 -641
  58. helm/benchmark/metrics/bbq_metrics.py +3 -4
  59. helm/benchmark/metrics/bias_metrics.py +6 -6
  60. helm/benchmark/metrics/classification_metrics.py +11 -8
  61. helm/benchmark/metrics/cleva_accuracy_metrics.py +8 -5
  62. helm/benchmark/metrics/cleva_harms_metrics.py +2 -2
  63. helm/benchmark/metrics/code_metrics.py +4 -3
  64. helm/benchmark/metrics/code_metrics_helper.py +0 -2
  65. helm/benchmark/metrics/common_metric_specs.py +167 -0
  66. helm/benchmark/metrics/decodingtrust_fairness_metrics.py +72 -0
  67. helm/benchmark/metrics/decodingtrust_ood_knowledge_metrics.py +66 -0
  68. helm/benchmark/metrics/decodingtrust_privacy_metrics.py +101 -0
  69. helm/benchmark/metrics/decodingtrust_stereotype_bias_metrics.py +202 -0
  70. helm/benchmark/metrics/disinformation_metrics.py +6 -112
  71. helm/benchmark/metrics/dry_run_metrics.py +5 -3
  72. helm/benchmark/metrics/efficiency_metrics.py +206 -0
  73. helm/benchmark/metrics/evaluate_instances_metric.py +59 -0
  74. helm/benchmark/metrics/evaluate_reference_metrics.py +376 -0
  75. helm/benchmark/metrics/image_generation/aesthetics_metrics.py +54 -0
  76. helm/benchmark/metrics/image_generation/aesthetics_scorer.py +66 -0
  77. helm/benchmark/metrics/image_generation/clip_score_metrics.py +73 -0
  78. helm/benchmark/metrics/image_generation/denoised_runtime_metric.py +42 -0
  79. helm/benchmark/metrics/image_generation/detection_metrics.py +57 -0
  80. helm/benchmark/metrics/image_generation/detectors/base_detector.py +8 -0
  81. helm/benchmark/metrics/image_generation/detectors/vitdet.py +178 -0
  82. helm/benchmark/metrics/image_generation/efficiency_metrics.py +41 -0
  83. helm/benchmark/metrics/image_generation/fidelity_metrics.py +168 -0
  84. helm/benchmark/metrics/image_generation/fractal_dimension/__init__.py +0 -0
  85. helm/benchmark/metrics/image_generation/fractal_dimension/fractal_dimension_util.py +63 -0
  86. helm/benchmark/metrics/image_generation/fractal_dimension/test_fractal_dimension_util.py +33 -0
  87. helm/benchmark/metrics/image_generation/fractal_dimension_metric.py +50 -0
  88. helm/benchmark/metrics/image_generation/gender_metrics.py +58 -0
  89. helm/benchmark/metrics/image_generation/image_critique_metrics.py +284 -0
  90. helm/benchmark/metrics/image_generation/lpips_metrics.py +82 -0
  91. helm/benchmark/metrics/image_generation/multi_scale_ssim_metrics.py +82 -0
  92. helm/benchmark/metrics/image_generation/nsfw_detector.py +96 -0
  93. helm/benchmark/metrics/image_generation/nsfw_metrics.py +103 -0
  94. helm/benchmark/metrics/image_generation/nudity_metrics.py +38 -0
  95. helm/benchmark/metrics/image_generation/photorealism_critique_metrics.py +153 -0
  96. helm/benchmark/metrics/image_generation/psnr_metrics.py +78 -0
  97. helm/benchmark/metrics/image_generation/q16/__init__.py +0 -0
  98. helm/benchmark/metrics/image_generation/q16/q16_toxicity_detector.py +90 -0
  99. helm/benchmark/metrics/image_generation/q16/test_q16.py +18 -0
  100. helm/benchmark/metrics/image_generation/q16_toxicity_metrics.py +48 -0
  101. helm/benchmark/metrics/image_generation/skin_tone_metrics.py +164 -0
  102. helm/benchmark/metrics/image_generation/uiqi_metrics.py +92 -0
  103. helm/benchmark/metrics/image_generation/watermark/__init__.py +0 -0
  104. helm/benchmark/metrics/image_generation/watermark/test_watermark_detector.py +16 -0
  105. helm/benchmark/metrics/image_generation/watermark/watermark_detector.py +87 -0
  106. helm/benchmark/metrics/image_generation/watermark_metrics.py +48 -0
  107. helm/benchmark/metrics/instruction_following_critique_metrics.py +3 -1
  108. helm/benchmark/metrics/language_modeling_metrics.py +99 -0
  109. helm/benchmark/metrics/machine_translation_metrics.py +5 -5
  110. helm/benchmark/metrics/metric.py +93 -172
  111. helm/benchmark/metrics/metric_name.py +0 -1
  112. helm/benchmark/metrics/metric_service.py +16 -0
  113. helm/benchmark/metrics/paraphrase_generation_metrics.py +3 -4
  114. helm/benchmark/metrics/ranking_metrics.py +6 -7
  115. helm/benchmark/metrics/reference_metric.py +148 -0
  116. helm/benchmark/metrics/summac/model_summac.py +0 -2
  117. helm/benchmark/metrics/summarization_metrics.py +8 -8
  118. helm/benchmark/metrics/test_classification_metrics.py +9 -6
  119. helm/benchmark/metrics/test_disinformation_metrics.py +78 -0
  120. helm/benchmark/metrics/test_evaluate_reference_metrics.py +30 -0
  121. helm/benchmark/metrics/test_metric.py +2 -2
  122. helm/benchmark/metrics/tokens/auto_token_cost_estimator.py +1 -1
  123. helm/benchmark/metrics/tokens/gooseai_token_cost_estimator.py +13 -3
  124. helm/benchmark/metrics/tokens/openai_token_cost_estimator.py +1 -1
  125. helm/benchmark/metrics/tokens/test_ai21_token_cost_estimator.py +2 -0
  126. helm/benchmark/metrics/tokens/test_openai_token_cost_estimator.py +9 -2
  127. helm/benchmark/metrics/toxicity_metrics.py +1 -1
  128. helm/benchmark/metrics/toxicity_utils.py +23 -0
  129. helm/benchmark/metrics/unitxt_metrics.py +81 -0
  130. helm/benchmark/metrics/vision_language/__init__.py +0 -0
  131. helm/benchmark/metrics/vision_language/emd_utils.py +341 -0
  132. helm/benchmark/metrics/vision_language/image_metrics.py +450 -0
  133. helm/benchmark/metrics/vision_language/image_utils.py +100 -0
  134. helm/benchmark/model_deployment_registry.py +164 -41
  135. helm/benchmark/model_metadata_registry.py +181 -35
  136. helm/benchmark/multi_gpu_runner.py +133 -0
  137. helm/benchmark/presentation/contamination.py +3 -3
  138. helm/benchmark/presentation/create_plots.py +8 -7
  139. helm/benchmark/presentation/run_display.py +50 -17
  140. helm/benchmark/presentation/schema.py +28 -46
  141. helm/benchmark/presentation/summarize.py +213 -96
  142. helm/benchmark/presentation/table.py +8 -8
  143. helm/benchmark/presentation/test_contamination.py +2 -2
  144. helm/benchmark/presentation/test_run_entry.py +14 -9
  145. helm/benchmark/presentation/test_summarize.py +5 -0
  146. helm/benchmark/run.py +66 -54
  147. helm/benchmark/run_expander.py +342 -31
  148. helm/benchmark/run_spec.py +93 -0
  149. helm/benchmark/run_spec_factory.py +162 -0
  150. helm/benchmark/run_specs/__init__.py +0 -0
  151. helm/benchmark/{run_specs.py → run_specs/classic_run_specs.py} +217 -1330
  152. helm/benchmark/run_specs/cleva_run_specs.py +277 -0
  153. helm/benchmark/run_specs/decodingtrust_run_specs.py +314 -0
  154. helm/benchmark/run_specs/heim_run_specs.py +623 -0
  155. helm/benchmark/run_specs/instruction_following_run_specs.py +129 -0
  156. helm/benchmark/run_specs/lite_run_specs.py +307 -0
  157. helm/benchmark/run_specs/simple_run_specs.py +104 -0
  158. helm/benchmark/run_specs/unitxt_run_specs.py +42 -0
  159. helm/benchmark/run_specs/vlm_run_specs.py +501 -0
  160. helm/benchmark/runner.py +116 -69
  161. helm/benchmark/runner_config_registry.py +21 -0
  162. helm/benchmark/scenarios/bbq_scenario.py +1 -1
  163. helm/benchmark/scenarios/bold_scenario.py +2 -2
  164. helm/benchmark/scenarios/cleva_scenario.py +43 -46
  165. helm/benchmark/scenarios/code_scenario.py +3 -2
  166. helm/benchmark/scenarios/commonsense_scenario.py +171 -191
  167. helm/benchmark/scenarios/decodingtrust_adv_demonstration_scenario.py +169 -0
  168. helm/benchmark/scenarios/decodingtrust_adv_robustness_scenario.py +121 -0
  169. helm/benchmark/scenarios/decodingtrust_fairness_scenario.py +77 -0
  170. helm/benchmark/scenarios/decodingtrust_machine_ethics_scenario.py +324 -0
  171. helm/benchmark/scenarios/decodingtrust_ood_robustness_scenario.py +204 -0
  172. helm/benchmark/scenarios/decodingtrust_privacy_scenario.py +559 -0
  173. helm/benchmark/scenarios/decodingtrust_stereotype_bias_scenario.py +67 -0
  174. helm/benchmark/scenarios/decodingtrust_toxicity_prompts_scenario.py +78 -0
  175. helm/benchmark/scenarios/dialogue_scenarios.py +0 -1
  176. helm/benchmark/scenarios/entity_matching_scenario.py +1 -1
  177. helm/benchmark/scenarios/image_generation/__init__.py +0 -0
  178. helm/benchmark/scenarios/image_generation/common_syntactic_processes_scenario.py +105 -0
  179. helm/benchmark/scenarios/image_generation/cub200_scenario.py +95 -0
  180. helm/benchmark/scenarios/image_generation/daily_dalle_scenario.py +124 -0
  181. helm/benchmark/scenarios/image_generation/demographic_stereotypes_scenario.py +82 -0
  182. helm/benchmark/scenarios/image_generation/detection_scenario.py +83 -0
  183. helm/benchmark/scenarios/image_generation/draw_bench_scenario.py +74 -0
  184. helm/benchmark/scenarios/image_generation/i2p_scenario.py +57 -0
  185. helm/benchmark/scenarios/image_generation/landing_page_scenario.py +46 -0
  186. helm/benchmark/scenarios/image_generation/logos_scenario.py +223 -0
  187. helm/benchmark/scenarios/image_generation/magazine_cover_scenario.py +91 -0
  188. helm/benchmark/scenarios/image_generation/mental_disorders_scenario.py +46 -0
  189. helm/benchmark/scenarios/image_generation/mscoco_scenario.py +91 -0
  190. helm/benchmark/scenarios/image_generation/paint_skills_scenario.py +72 -0
  191. helm/benchmark/scenarios/image_generation/parti_prompts_scenario.py +94 -0
  192. helm/benchmark/scenarios/image_generation/radiology_scenario.py +42 -0
  193. helm/benchmark/scenarios/image_generation/relational_understanding_scenario.py +52 -0
  194. helm/benchmark/scenarios/image_generation/time_most_significant_historical_figures_scenario.py +124 -0
  195. helm/benchmark/scenarios/image_generation/winoground_scenario.py +62 -0
  196. helm/benchmark/scenarios/imdb_scenario.py +0 -1
  197. helm/benchmark/scenarios/legalbench_scenario.py +123 -0
  198. helm/benchmark/scenarios/live_qa_scenario.py +94 -0
  199. helm/benchmark/scenarios/lm_entry_scenario.py +185 -0
  200. helm/benchmark/scenarios/lsat_qa_scenario.py +4 -2
  201. helm/benchmark/scenarios/math_scenario.py +19 -2
  202. helm/benchmark/scenarios/medication_qa_scenario.py +60 -0
  203. helm/benchmark/scenarios/numeracy_scenario.py +3 -3
  204. helm/benchmark/scenarios/opinions_qa_scenario.py +6 -10
  205. helm/benchmark/scenarios/raft_scenario.py +2 -6
  206. helm/benchmark/scenarios/scenario.py +14 -2
  207. helm/benchmark/scenarios/simple_scenarios.py +122 -1
  208. helm/benchmark/scenarios/test_math_scenario.py +22 -0
  209. helm/benchmark/scenarios/test_scenario.py +6 -3
  210. helm/benchmark/scenarios/test_simple_scenarios.py +50 -0
  211. helm/benchmark/scenarios/thai_exam_scenario.py +135 -0
  212. helm/benchmark/scenarios/the_pile_scenario.py +6 -7
  213. helm/benchmark/scenarios/unitxt_scenario.py +56 -0
  214. helm/benchmark/scenarios/verifiability_judgment_scenario.py +3 -1
  215. helm/benchmark/scenarios/vicuna_scenario.py +1 -1
  216. helm/benchmark/scenarios/vision_language/bingo_scenario.py +103 -0
  217. helm/benchmark/scenarios/vision_language/hateful_memes_scenario.py +92 -0
  218. helm/benchmark/scenarios/vision_language/heim_human_eval_scenario.py +113 -0
  219. helm/benchmark/scenarios/vision_language/image2structure/__init__.py +0 -0
  220. helm/benchmark/scenarios/vision_language/image2structure/chart2csv_scenario.py +55 -0
  221. helm/benchmark/scenarios/vision_language/image2structure/image2structure_scenario.py +214 -0
  222. helm/benchmark/scenarios/vision_language/image2structure/latex_scenario.py +25 -0
  223. helm/benchmark/scenarios/vision_language/image2structure/musicsheet_scenario.py +20 -0
  224. helm/benchmark/scenarios/vision_language/image2structure/utils_latex.py +347 -0
  225. helm/benchmark/scenarios/vision_language/image2structure/webpage/__init__.py +0 -0
  226. helm/benchmark/scenarios/vision_language/image2structure/webpage/driver.py +84 -0
  227. helm/benchmark/scenarios/vision_language/image2structure/webpage/jekyll_server.py +182 -0
  228. helm/benchmark/scenarios/vision_language/image2structure/webpage/utils.py +31 -0
  229. helm/benchmark/scenarios/vision_language/image2structure/webpage_scenario.py +225 -0
  230. helm/benchmark/scenarios/vision_language/mementos_scenario.py +124 -0
  231. helm/benchmark/scenarios/vision_language/mme_scenario.py +145 -0
  232. helm/benchmark/scenarios/vision_language/mmmu_scenario.py +187 -0
  233. helm/benchmark/scenarios/vision_language/multipanelvqa_scenario.py +169 -0
  234. helm/benchmark/scenarios/vision_language/pope_scenario.py +104 -0
  235. helm/benchmark/scenarios/vision_language/seed_bench_scenario.py +129 -0
  236. helm/benchmark/scenarios/vision_language/unicorn_scenario.py +108 -0
  237. helm/benchmark/scenarios/vision_language/viz_wiz_scenario.py +107 -0
  238. helm/benchmark/scenarios/vision_language/vqa_scenario.py +1 -1
  239. helm/benchmark/scenarios/wmt_14_scenario.py +18 -18
  240. helm/benchmark/server.py +59 -2
  241. helm/benchmark/slurm_jobs.py +12 -0
  242. helm/benchmark/slurm_runner.py +79 -51
  243. helm/benchmark/static/benchmarking.js +3 -4
  244. helm/benchmark/static/contamination.yaml +1 -1
  245. helm/benchmark/static/images/organizations/together.png +0 -0
  246. helm/benchmark/static/json-urls.js +4 -0
  247. helm/benchmark/static/{schema.yaml → schema_classic.yaml} +346 -930
  248. helm/benchmark/static/schema_instruction_following.yaml +210 -0
  249. helm/benchmark/static/schema_lite.yaml +824 -0
  250. helm/benchmark/static/schema_mmlu.yaml +1507 -0
  251. helm/benchmark/static/schema_unitxt.yaml +428 -0
  252. helm/benchmark/static/schema_vlm.yaml +576 -0
  253. helm/benchmark/static_build/assets/01-694cb9b7.png +0 -0
  254. helm/benchmark/static_build/assets/ai21-0eb91ec3.png +0 -0
  255. helm/benchmark/static_build/assets/aleph-alpha-7ce10034.png +0 -0
  256. helm/benchmark/static_build/assets/anthropic-70d8bc39.png +0 -0
  257. helm/benchmark/static_build/assets/bigscience-7f0400c0.png +0 -0
  258. helm/benchmark/static_build/assets/cohere-3550c6cb.png +0 -0
  259. helm/benchmark/static_build/assets/crfm-logo-74391ab8.png +0 -0
  260. helm/benchmark/static_build/assets/eleutherai-b9451114.png +0 -0
  261. helm/benchmark/static_build/assets/google-06d997ad.png +0 -0
  262. helm/benchmark/static_build/assets/heim-logo-3e5e3aa4.png +0 -0
  263. helm/benchmark/static_build/assets/helm-logo-simple-2ed5400b.png +0 -0
  264. helm/benchmark/static_build/assets/helmhero-28e90f4d.png +0 -0
  265. helm/benchmark/static_build/assets/index-5088afcb.css +1 -0
  266. helm/benchmark/static_build/assets/index-d839df55.js +9 -0
  267. helm/benchmark/static_build/assets/meta-5580e9f1.png +0 -0
  268. helm/benchmark/static_build/assets/microsoft-f5ee5016.png +0 -0
  269. helm/benchmark/static_build/assets/mistral-18e1be23.png +0 -0
  270. helm/benchmark/static_build/assets/nvidia-86fa75c1.png +0 -0
  271. helm/benchmark/static_build/assets/openai-3f8653e4.png +0 -0
  272. helm/benchmark/static_build/assets/react-d4a0b69b.js +85 -0
  273. helm/benchmark/static_build/assets/recharts-6d337683.js +97 -0
  274. helm/benchmark/static_build/assets/tii-24de195c.png +0 -0
  275. helm/benchmark/static_build/assets/together-a665a35b.png +0 -0
  276. helm/benchmark/static_build/assets/tremor-54a99cc4.js +10 -0
  277. helm/benchmark/static_build/assets/tsinghua-keg-97d4b395.png +0 -0
  278. helm/benchmark/static_build/assets/vhelm-framework-cde7618a.png +0 -0
  279. helm/benchmark/static_build/assets/vhelm-model-6d812526.png +0 -0
  280. helm/benchmark/static_build/assets/yandex-38e09d70.png +0 -0
  281. helm/benchmark/static_build/config.js +4 -0
  282. helm/benchmark/static_build/index.html +20 -0
  283. helm/benchmark/test_data_preprocessor.py +3 -3
  284. helm/benchmark/test_model_deployment_definition.py +90 -0
  285. helm/benchmark/test_run_expander.py +1 -1
  286. helm/benchmark/tokenizer_config_registry.py +10 -14
  287. helm/benchmark/window_services/ai21_window_service.py +22 -33
  288. helm/benchmark/window_services/cohere_window_service.py +1 -63
  289. helm/benchmark/window_services/default_window_service.py +2 -35
  290. helm/benchmark/window_services/encoder_decoder_window_service.py +0 -11
  291. helm/benchmark/window_services/ice_window_service.py +0 -34
  292. helm/benchmark/window_services/image_generation/__init__.py +0 -0
  293. helm/benchmark/window_services/image_generation/clip_window_service.py +15 -0
  294. helm/benchmark/window_services/image_generation/lexica_search_window_service.py +9 -0
  295. helm/benchmark/window_services/image_generation/openai_dalle_window_service.py +9 -0
  296. helm/benchmark/window_services/image_generation/test_clip_window_service.py +29 -0
  297. helm/benchmark/window_services/image_generation/test_openai_dalle_window_service.py +30 -0
  298. helm/benchmark/window_services/local_window_service.py +21 -4
  299. helm/benchmark/window_services/no_decoding_window_service.py +32 -0
  300. helm/benchmark/window_services/test_anthropic_window_service.py +2 -1
  301. helm/benchmark/window_services/test_bloom_window_service.py +2 -1
  302. helm/benchmark/window_services/test_cohere_window_service.py +2 -1
  303. helm/benchmark/window_services/test_flan_t5_window_service.py +2 -1
  304. helm/benchmark/window_services/test_gpt2_window_service.py +2 -2
  305. helm/benchmark/window_services/test_gpt4_window_service.py +2 -1
  306. helm/benchmark/window_services/test_gptj_window_service.py +3 -2
  307. helm/benchmark/window_services/test_gptneox_window_service.py +3 -2
  308. helm/benchmark/window_services/test_ice_window_service.py +2 -1
  309. helm/benchmark/window_services/test_openai_window_service.py +2 -1
  310. helm/benchmark/window_services/test_opt_window_service.py +3 -2
  311. helm/benchmark/window_services/test_palmyra_window_service.py +2 -1
  312. helm/benchmark/window_services/test_t0pp_window_service.py +2 -1
  313. helm/benchmark/window_services/test_t511b_window_service.py +2 -1
  314. helm/benchmark/window_services/test_ul2_window_service.py +2 -1
  315. helm/benchmark/window_services/test_utils.py +3 -2
  316. helm/benchmark/window_services/test_yalm_window_service.py +2 -1
  317. helm/benchmark/window_services/window_service.py +42 -0
  318. helm/benchmark/window_services/window_service_factory.py +24 -269
  319. helm/benchmark/window_services/yalm_window_service.py +0 -27
  320. helm/clients/__init__.py +0 -0
  321. helm/{proxy/clients → clients}/ai21_client.py +5 -12
  322. helm/clients/aleph_alpha_client.py +112 -0
  323. helm/{proxy/clients → clients}/anthropic_client.py +213 -24
  324. helm/clients/auto_client.py +215 -0
  325. helm/clients/bedrock_client.py +128 -0
  326. helm/clients/bedrock_utils.py +72 -0
  327. helm/{proxy/clients → clients}/client.py +67 -55
  328. helm/clients/clip_score_client.py +49 -0
  329. helm/clients/clip_scorers/__init__.py +0 -0
  330. helm/clients/clip_scorers/base_clip_scorer.py +18 -0
  331. helm/clients/clip_scorers/clip_scorer.py +50 -0
  332. helm/clients/clip_scorers/multilingual_clip_scorer.py +50 -0
  333. helm/{proxy/clients → clients}/cohere_client.py +6 -17
  334. helm/clients/gcs_client.py +82 -0
  335. helm/{proxy/clients → clients}/google_client.py +7 -8
  336. helm/clients/google_translate_client.py +35 -0
  337. helm/{proxy/clients → clients}/http_model_client.py +6 -10
  338. helm/{proxy/clients → clients}/huggingface_client.py +134 -92
  339. helm/clients/image_generation/__init__.py +0 -0
  340. helm/clients/image_generation/adobe_vision_client.py +78 -0
  341. helm/clients/image_generation/aleph_alpha_image_generation_client.py +98 -0
  342. helm/clients/image_generation/cogview2/__init__.py +0 -0
  343. helm/clients/image_generation/cogview2/coglm_strategy.py +96 -0
  344. helm/clients/image_generation/cogview2/coglm_utils.py +82 -0
  345. helm/clients/image_generation/cogview2/sr_pipeline/__init__.py +15 -0
  346. helm/clients/image_generation/cogview2/sr_pipeline/direct_sr.py +96 -0
  347. helm/clients/image_generation/cogview2/sr_pipeline/dsr_model.py +254 -0
  348. helm/clients/image_generation/cogview2/sr_pipeline/dsr_sampling.py +190 -0
  349. helm/clients/image_generation/cogview2/sr_pipeline/iterative_sr.py +141 -0
  350. helm/clients/image_generation/cogview2/sr_pipeline/itersr_model.py +269 -0
  351. helm/clients/image_generation/cogview2/sr_pipeline/itersr_sampling.py +120 -0
  352. helm/clients/image_generation/cogview2/sr_pipeline/sr_group.py +42 -0
  353. helm/clients/image_generation/cogview2_client.py +191 -0
  354. helm/clients/image_generation/dalle2_client.py +192 -0
  355. helm/clients/image_generation/dalle3_client.py +108 -0
  356. helm/clients/image_generation/dalle_mini/__init__.py +3 -0
  357. helm/clients/image_generation/dalle_mini/data.py +442 -0
  358. helm/clients/image_generation/dalle_mini/model/__init__.py +5 -0
  359. helm/clients/image_generation/dalle_mini/model/configuration.py +175 -0
  360. helm/clients/image_generation/dalle_mini/model/modeling.py +1834 -0
  361. helm/clients/image_generation/dalle_mini/model/partitions.py +84 -0
  362. helm/clients/image_generation/dalle_mini/model/processor.py +63 -0
  363. helm/clients/image_generation/dalle_mini/model/text.py +251 -0
  364. helm/clients/image_generation/dalle_mini/model/tokenizer.py +9 -0
  365. helm/clients/image_generation/dalle_mini/model/utils.py +29 -0
  366. helm/clients/image_generation/dalle_mini/vqgan_jax/__init__.py +1 -0
  367. helm/clients/image_generation/dalle_mini/vqgan_jax/configuration_vqgan.py +40 -0
  368. helm/clients/image_generation/dalle_mini/vqgan_jax/convert_pt_model_to_jax.py +107 -0
  369. helm/clients/image_generation/dalle_mini/vqgan_jax/modeling_flax_vqgan.py +610 -0
  370. helm/clients/image_generation/dalle_mini_client.py +190 -0
  371. helm/clients/image_generation/deep_floyd_client.py +78 -0
  372. helm/clients/image_generation/huggingface_diffusers_client.py +249 -0
  373. helm/clients/image_generation/image_generation_client_utils.py +9 -0
  374. helm/clients/image_generation/lexica_client.py +86 -0
  375. helm/clients/image_generation/mindalle/__init__.py +0 -0
  376. helm/clients/image_generation/mindalle/models/__init__.py +216 -0
  377. helm/clients/image_generation/mindalle/models/stage1/__init__.py +0 -0
  378. helm/clients/image_generation/mindalle/models/stage1/layers.py +312 -0
  379. helm/clients/image_generation/mindalle/models/stage1/vqgan.py +103 -0
  380. helm/clients/image_generation/mindalle/models/stage2/__init__.py +0 -0
  381. helm/clients/image_generation/mindalle/models/stage2/layers.py +144 -0
  382. helm/clients/image_generation/mindalle/models/stage2/transformer.py +268 -0
  383. helm/clients/image_generation/mindalle/models/tokenizer.py +30 -0
  384. helm/clients/image_generation/mindalle/utils/__init__.py +3 -0
  385. helm/clients/image_generation/mindalle/utils/config.py +129 -0
  386. helm/clients/image_generation/mindalle/utils/sampling.py +149 -0
  387. helm/clients/image_generation/mindalle/utils/utils.py +89 -0
  388. helm/clients/image_generation/mindalle_client.py +115 -0
  389. helm/clients/image_generation/nudity_check_client.py +64 -0
  390. helm/clients/image_generation/together_image_generation_client.py +111 -0
  391. helm/{proxy/clients → clients}/lit_gpt_client.py +7 -5
  392. helm/{proxy/clients → clients}/megatron_client.py +13 -7
  393. helm/clients/mistral_client.py +134 -0
  394. helm/clients/moderation_api_client.py +109 -0
  395. helm/clients/open_lm_client.py +43 -0
  396. helm/clients/openai_client.py +302 -0
  397. helm/{proxy/clients → clients}/palmyra_client.py +15 -12
  398. helm/{proxy/clients → clients}/perspective_api_client.py +7 -8
  399. helm/clients/simple_client.py +64 -0
  400. helm/{proxy/clients → clients}/test_auto_client.py +15 -15
  401. helm/clients/test_client.py +100 -0
  402. helm/clients/test_huggingface_client.py +70 -0
  403. helm/clients/test_simple_client.py +19 -0
  404. helm/{proxy/clients → clients}/test_together_client.py +23 -12
  405. helm/{proxy/clients → clients}/together_client.py +18 -71
  406. helm/clients/vertexai_client.py +391 -0
  407. helm/clients/vision_language/__init__.py +0 -0
  408. helm/clients/vision_language/huggingface_vlm_client.py +104 -0
  409. helm/{proxy/clients → clients}/vision_language/idefics_client.py +59 -52
  410. helm/clients/vision_language/open_flamingo/__init__.py +2 -0
  411. helm/clients/vision_language/open_flamingo/src/__init__.py +0 -0
  412. helm/clients/vision_language/open_flamingo/src/factory.py +147 -0
  413. helm/clients/vision_language/open_flamingo/src/flamingo.py +337 -0
  414. helm/clients/vision_language/open_flamingo/src/flamingo_lm.py +155 -0
  415. helm/clients/vision_language/open_flamingo/src/helpers.py +267 -0
  416. helm/clients/vision_language/open_flamingo/src/utils.py +47 -0
  417. helm/clients/vision_language/open_flamingo_client.py +155 -0
  418. helm/clients/vision_language/qwen_vlm_client.py +171 -0
  419. helm/clients/vllm_client.py +46 -0
  420. helm/common/cache.py +24 -179
  421. helm/common/cache_backend_config.py +47 -0
  422. helm/common/clip_score_request.py +41 -0
  423. helm/common/concurrency.py +32 -0
  424. helm/common/credentials_utils.py +28 -0
  425. helm/common/file_caches/__init__.py +0 -0
  426. helm/common/file_caches/file_cache.py +16 -0
  427. helm/common/file_caches/local_file_cache.py +61 -0
  428. helm/common/file_caches/test_local_file_cache.py +25 -0
  429. helm/common/file_upload_request.py +27 -0
  430. helm/common/general.py +29 -10
  431. helm/common/image_generation_parameters.py +25 -0
  432. helm/common/images_utils.py +24 -1
  433. helm/common/key_value_store.py +113 -0
  434. helm/common/media_object.py +13 -0
  435. helm/common/moderations_api_request.py +71 -0
  436. helm/common/mongo_key_value_store.py +88 -0
  437. helm/common/multimodal_request_utils.py +31 -0
  438. helm/common/nudity_check_request.py +29 -0
  439. helm/common/object_spec.py +2 -2
  440. helm/common/request.py +36 -27
  441. helm/common/test_general.py +6 -0
  442. helm/common/tokenization_request.py +6 -3
  443. helm/config/__init__.py +0 -0
  444. helm/config/model_deployments.yaml +1942 -0
  445. helm/config/model_metadata.yaml +2201 -0
  446. helm/config/tokenizer_configs.yaml +362 -0
  447. helm/proxy/accounts.py +31 -4
  448. helm/proxy/critique/mechanical_turk_critique_importer.py +3 -0
  449. helm/proxy/critique/model_critique_client.py +13 -5
  450. helm/proxy/example_queries.py +29 -17
  451. helm/proxy/retry.py +8 -2
  452. helm/proxy/server.py +77 -5
  453. helm/proxy/services/remote_service.py +31 -0
  454. helm/proxy/services/server_service.py +103 -20
  455. helm/proxy/services/service.py +34 -2
  456. helm/proxy/services/test_remote_service.py +7 -6
  457. helm/proxy/services/test_service.py +27 -18
  458. helm/proxy/test_accounts.py +32 -0
  459. helm/proxy/token_counters/auto_token_counter.py +37 -37
  460. helm/proxy/token_counters/test_auto_token_counter.py +164 -0
  461. helm/proxy/token_counters/token_counter.py +3 -5
  462. helm/py.typed +0 -0
  463. helm/tokenizers/__init__.py +0 -0
  464. helm/{proxy/tokenizers → tokenizers}/ai21_tokenizer.py +3 -3
  465. helm/{proxy/tokenizers → tokenizers}/aleph_alpha_tokenizer.py +3 -1
  466. helm/{proxy/tokenizers → tokenizers}/anthropic_tokenizer.py +17 -11
  467. helm/tokenizers/auto_tokenizer.py +93 -0
  468. helm/{proxy/tokenizers → tokenizers}/caching_tokenizer.py +8 -2
  469. helm/{proxy/tokenizers → tokenizers}/cohere_tokenizer.py +1 -1
  470. helm/{proxy/tokenizers → tokenizers}/http_model_tokenizer.py +3 -3
  471. helm/{proxy/tokenizers → tokenizers}/huggingface_tokenizer.py +56 -60
  472. helm/tokenizers/simple_tokenizer.py +33 -0
  473. helm/tokenizers/test_anthropic_tokenizer.py +82 -0
  474. helm/tokenizers/test_huggingface_tokenizer.py +136 -0
  475. helm/tokenizers/test_simple_tokenizer.py +33 -0
  476. helm/tokenizers/vertexai_tokenizer.py +97 -0
  477. helm/{proxy/tokenizers → tokenizers}/yalm_tokenizer.py +5 -3
  478. helm/tokenizers/yalm_tokenizer_data/__init__.py +0 -0
  479. helm/tokenizers/yalm_tokenizer_data/voc_100b.sp +0 -0
  480. helm/{proxy/tokenizers → tokenizers}/yalm_tokenizer_data/yalm_tokenizer.py +1 -1
  481. crfm_helm-0.3.0.dist-info/RECORD +0 -396
  482. helm/benchmark/vlm_run_specs.py +0 -71
  483. helm/benchmark/window_services/anthropic_window_service.py +0 -68
  484. helm/benchmark/window_services/bloom_window_service.py +0 -35
  485. helm/benchmark/window_services/flan_t5_window_service.py +0 -29
  486. helm/benchmark/window_services/gpt2_window_service.py +0 -32
  487. helm/benchmark/window_services/gptj_window_service.py +0 -38
  488. helm/benchmark/window_services/gptneox_window_service.py +0 -41
  489. helm/benchmark/window_services/http_model_window_service.py +0 -28
  490. helm/benchmark/window_services/huggingface_window_service.py +0 -59
  491. helm/benchmark/window_services/lit_gpt_window_service.py +0 -27
  492. helm/benchmark/window_services/llama_window_service.py +0 -28
  493. helm/benchmark/window_services/luminous_window_service.py +0 -67
  494. helm/benchmark/window_services/megatron_window_service.py +0 -10
  495. helm/benchmark/window_services/mt_nlg_window_service.py +0 -27
  496. helm/benchmark/window_services/openai_window_service.py +0 -13
  497. helm/benchmark/window_services/opt_window_service.py +0 -35
  498. helm/benchmark/window_services/palmyra_window_service.py +0 -45
  499. helm/benchmark/window_services/remote_window_service.py +0 -48
  500. helm/benchmark/window_services/santacoder_window_service.py +0 -27
  501. helm/benchmark/window_services/starcoder_window_service.py +0 -27
  502. helm/benchmark/window_services/t0pp_window_service.py +0 -35
  503. helm/benchmark/window_services/t511b_window_service.py +0 -30
  504. helm/benchmark/window_services/test_mt_nlg_window_service.py +0 -48
  505. helm/benchmark/window_services/ul2_window_service.py +0 -30
  506. helm/benchmark/window_services/wider_ai21_window_service.py +0 -24
  507. helm/benchmark/window_services/wider_openai_window_service.py +0 -52
  508. helm/proxy/clients/aleph_alpha_client.py +0 -99
  509. helm/proxy/clients/auto_client.py +0 -461
  510. helm/proxy/clients/goose_ai_client.py +0 -100
  511. helm/proxy/clients/microsoft_client.py +0 -182
  512. helm/proxy/clients/openai_client.py +0 -206
  513. helm/proxy/clients/remote_model_registry.py +0 -28
  514. helm/proxy/clients/simple_client.py +0 -61
  515. helm/proxy/clients/test_anthropic_client.py +0 -63
  516. helm/proxy/clients/test_client.py +0 -31
  517. helm/proxy/clients/test_huggingface_client.py +0 -87
  518. helm/proxy/models.py +0 -963
  519. helm/proxy/test_models.py +0 -27
  520. helm/proxy/token_counters/ai21_token_counter.py +0 -20
  521. helm/proxy/token_counters/cohere_token_counter.py +0 -13
  522. helm/proxy/token_counters/free_token_counter.py +0 -12
  523. helm/proxy/token_counters/gooseai_token_counter.py +0 -24
  524. helm/proxy/token_counters/openai_token_counter.py +0 -22
  525. helm/proxy/token_counters/test_ai21_token_counter.py +0 -86
  526. helm/proxy/token_counters/test_openai_token_counter.py +0 -79
  527. helm/proxy/tokenizers/simple_tokenizer.py +0 -32
  528. helm/proxy/tokenizers/test_huggingface_tokenizer.py +0 -56
  529. {crfm_helm-0.3.0.dist-info → crfm_helm-0.5.0.dist-info}/LICENSE +0 -0
  530. {crfm_helm-0.3.0.dist-info → crfm_helm-0.5.0.dist-info}/entry_points.txt +0 -0
  531. {crfm_helm-0.3.0.dist-info → crfm_helm-0.5.0.dist-info}/top_level.txt +0 -0
  532. /helm/{proxy/clients → benchmark/annotation}/__init__.py +0 -0
  533. /helm/{proxy/clients/vision_language → benchmark/annotation/image2structure}/__init__.py +0 -0
  534. /helm/{proxy/tokenizers → benchmark/metrics/image_generation}/__init__.py +0 -0
  535. /helm/{proxy/tokenizers/yalm_tokenizer_data → benchmark/metrics/image_generation/detectors}/__init__.py +0 -0
  536. /helm/{proxy/clients → clients}/ai21_utils.py +0 -0
  537. /helm/{proxy/clients → clients}/cohere_utils.py +0 -0
  538. /helm/{proxy/clients → clients}/lit_gpt_generate.py +0 -0
  539. /helm/{proxy/clients → clients}/toxicity_classifier_client.py +0 -0
  540. /helm/{proxy/tokenizers → tokenizers}/ice_tokenizer.py +0 -0
  541. /helm/{proxy/tokenizers → tokenizers}/lit_gpt_tokenizer.py +0 -0
  542. /helm/{proxy/tokenizers → tokenizers}/test_ice_tokenizer.py +0 -0
  543. /helm/{proxy/tokenizers → tokenizers}/test_yalm_tokenizer.py +0 -0
  544. /helm/{proxy/tokenizers → tokenizers}/tiktoken_tokenizer.py +0 -0
  545. /helm/{proxy/tokenizers → tokenizers}/tokenizer.py +0 -0
  546. /helm/{proxy/tokenizers → tokenizers}/yalm_tokenizer_data/test_yalm_tokenizer.py +0 -0
@@ -0,0 +1,85 @@
1
+ function gh(e,n){for(var t=0;t<n.length;t++){const r=n[t];if(typeof r!="string"&&!Array.isArray(r)){for(const l in r)if(l!=="default"&&!(l in e)){const i=Object.getOwnPropertyDescriptor(r,l);i&&Object.defineProperty(e,l,i.get?i:{enumerable:!0,get:()=>r[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Yk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ct(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zc={exports:{}},V={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var nl=Symbol.for("react.element"),yh=Symbol.for("react.portal"),vh=Symbol.for("react.fragment"),kh=Symbol.for("react.strict_mode"),xh=Symbol.for("react.profiler"),wh=Symbol.for("react.provider"),Sh=Symbol.for("react.context"),Eh=Symbol.for("react.forward_ref"),Ch=Symbol.for("react.suspense"),Ph=Symbol.for("react.memo"),Th=Symbol.for("react.lazy"),ba=Symbol.iterator;function Lh(e){return e===null||typeof e!="object"?null:(e=ba&&e[ba]||e["@@iterator"],typeof e=="function"?e:null)}var Jc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ef=Object.assign,nf={};function ir(e,n,t){this.props=e,this.context=n,this.refs=nf,this.updater=t||Jc}ir.prototype.isReactComponent={};ir.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")};ir.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function tf(){}tf.prototype=ir.prototype;function Mu(e,n,t){this.props=e,this.context=n,this.refs=nf,this.updater=t||Jc}var Bu=Mu.prototype=new tf;Bu.constructor=Mu;ef(Bu,ir.prototype);Bu.isPureReactComponent=!0;var Ga=Array.isArray,rf=Object.prototype.hasOwnProperty,ju={current:null},lf={key:!0,ref:!0,__self:!0,__source:!0};function of(e,n,t){var r,l={},i=null,o=null;if(n!=null)for(r in n.ref!==void 0&&(o=n.ref),n.key!==void 0&&(i=""+n.key),n)rf.call(n,r)&&!lf.hasOwnProperty(r)&&(l[r]=n[r]);var u=arguments.length-2;if(u===1)l.children=t;else if(1<u){for(var a=Array(u),s=0;s<u;s++)a[s]=arguments[s+2];l.children=a}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)l[r]===void 0&&(l[r]=u[r]);return{$$typeof:nl,type:e,key:i,ref:o,props:l,_owner:ju.current}}function zh(e,n){return{$$typeof:nl,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function Uu(e){return typeof e=="object"&&e!==null&&e.$$typeof===nl}function _h(e){var n={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(t){return n[t]})}var Za=/\/+/g;function Yi(e,n){return typeof e=="object"&&e!==null&&e.key!=null?_h(""+e.key):n.toString(36)}function _l(e,n,t,r,l){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case nl:case yh:o=!0}}if(o)return o=e,l=l(o),e=r===""?"."+Yi(o,0):r,Ga(l)?(t="",e!=null&&(t=e.replace(Za,"$&/")+"/"),_l(l,n,t,"",function(s){return s})):l!=null&&(Uu(l)&&(l=zh(l,t+(!l.key||o&&o.key===l.key?"":(""+l.key).replace(Za,"$&/")+"/")+e)),n.push(l)),1;if(o=0,r=r===""?".":r+":",Ga(e))for(var u=0;u<e.length;u++){i=e[u];var a=r+Yi(i,u);o+=_l(i,n,t,a,l)}else if(a=Lh(e),typeof a=="function")for(e=a.call(e),u=0;!(i=e.next()).done;)i=i.value,a=r+Yi(i,u++),o+=_l(i,n,t,a,l);else if(i==="object")throw n=String(e),Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.");return o}function cl(e,n,t){if(e==null)return e;var r=[],l=0;return _l(e,r,"","",function(i){return n.call(t,i,l++)}),r}function Oh(e){if(e._status===-1){var n=e._result;n=n(),n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var Ne={current:null},Ol={transition:null},Fh={ReactCurrentDispatcher:Ne,ReactCurrentBatchConfig:Ol,ReactCurrentOwner:ju};V.Children={map:cl,forEach:function(e,n,t){cl(e,function(){n.apply(this,arguments)},t)},count:function(e){var n=0;return cl(e,function(){n++}),n},toArray:function(e){return cl(e,function(n){return n})||[]},only:function(e){if(!Uu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};V.Component=ir;V.Fragment=vh;V.Profiler=xh;V.PureComponent=Mu;V.StrictMode=kh;V.Suspense=Ch;V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Fh;V.cloneElement=function(e,n,t){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=ef({},e.props),l=e.key,i=e.ref,o=e._owner;if(n!=null){if(n.ref!==void 0&&(i=n.ref,o=ju.current),n.key!==void 0&&(l=""+n.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(a in n)rf.call(n,a)&&!lf.hasOwnProperty(a)&&(r[a]=n[a]===void 0&&u!==void 0?u[a]:n[a])}var a=arguments.length-2;if(a===1)r.children=t;else if(1<a){u=Array(a);for(var s=0;s<a;s++)u[s]=arguments[s+2];r.children=u}return{$$typeof:nl,type:e.type,key:l,ref:i,props:r,_owner:o}};V.createContext=function(e){return e={$$typeof:Sh,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:wh,_context:e},e.Consumer=e};V.createElement=of;V.createFactory=function(e){var n=of.bind(null,e);return n.type=e,n};V.createRef=function(){return{current:null}};V.forwardRef=function(e){return{$$typeof:Eh,render:e}};V.isValidElement=Uu;V.lazy=function(e){return{$$typeof:Th,_payload:{_status:-1,_result:e},_init:Oh}};V.memo=function(e,n){return{$$typeof:Ph,type:e,compare:n===void 0?null:n}};V.startTransition=function(e){var n=Ol.transition;Ol.transition={};try{e()}finally{Ol.transition=n}};V.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};V.useCallback=function(e,n){return Ne.current.useCallback(e,n)};V.useContext=function(e){return Ne.current.useContext(e)};V.useDebugValue=function(){};V.useDeferredValue=function(e){return Ne.current.useDeferredValue(e)};V.useEffect=function(e,n){return Ne.current.useEffect(e,n)};V.useId=function(){return Ne.current.useId()};V.useImperativeHandle=function(e,n,t){return Ne.current.useImperativeHandle(e,n,t)};V.useInsertionEffect=function(e,n){return Ne.current.useInsertionEffect(e,n)};V.useLayoutEffect=function(e,n){return Ne.current.useLayoutEffect(e,n)};V.useMemo=function(e,n){return Ne.current.useMemo(e,n)};V.useReducer=function(e,n,t){return Ne.current.useReducer(e,n,t)};V.useRef=function(e){return Ne.current.useRef(e)};V.useState=function(e){return Ne.current.useState(e)};V.useSyncExternalStore=function(e,n,t){return Ne.current.useSyncExternalStore(e,n,t)};V.useTransition=function(){return Ne.current.useTransition()};V.version="18.2.0";Zc.exports=V;var N=Zc.exports;const gt=Ct(N),Ih=gh({__proto__:null,default:gt},[N]);var uf={exports:{}},Ye={},af={exports:{}},sf={};/**
10
+ * @license React
11
+ * scheduler.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */(function(e){function n(F,B){var g=F.length;F.push(B);e:for(;0<g;){var Q=g-1>>>1,G=F[Q];if(0<l(G,B))F[Q]=B,F[g]=G,g=Q;else break e}}function t(F){return F.length===0?null:F[0]}function r(F){if(F.length===0)return null;var B=F[0],g=F.pop();if(g!==B){F[0]=g;e:for(var Q=0,G=F.length,k=G>>>1;Q<k;){var ke=2*(Q+1)-1,gn=F[ke],re=ke+1,un=F[re];if(0>l(gn,g))re<G&&0>l(un,gn)?(F[Q]=un,F[re]=g,Q=re):(F[Q]=gn,F[ke]=g,Q=ke);else if(re<G&&0>l(un,g))F[Q]=un,F[re]=g,Q=re;else break e}}return B}function l(F,B){var g=F.sortIndex-B.sortIndex;return g!==0?g:F.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var a=[],s=[],c=1,f=null,h=3,p=!1,w=!1,v=!1,C=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(F){for(var B=t(s);B!==null;){if(B.callback===null)r(s);else if(B.startTime<=F)r(s),B.sortIndex=B.expirationTime,n(a,B);else break;B=t(s)}}function S(F){if(v=!1,y(F),!w)if(t(a)!==null)w=!0,me(T);else{var B=t(s);B!==null&&pe(S,B.startTime-F)}}function T(F,B){w=!1,v&&(v=!1,d(_),_=-1),p=!0;var g=h;try{for(y(B),f=t(a);f!==null&&(!(f.expirationTime>B)||F&&!I());){var Q=f.callback;if(typeof Q=="function"){f.callback=null,h=f.priorityLevel;var G=Q(f.expirationTime<=B);B=e.unstable_now(),typeof G=="function"?f.callback=G:f===t(a)&&r(a),y(B)}else r(a);f=t(a)}if(f!==null)var k=!0;else{var ke=t(s);ke!==null&&pe(S,ke.startTime-B),k=!1}return k}finally{f=null,h=g,p=!1}}var x=!1,P=null,_=-1,M=5,D=-1;function I(){return!(e.unstable_now()-D<M)}function A(){if(P!==null){var F=e.unstable_now();D=F;var B=!0;try{B=P(!0,F)}finally{B?Y():(x=!1,P=null)}}else x=!1}var Y;if(typeof m=="function")Y=function(){m(A)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,W=oe.port2;oe.port1.onmessage=A,Y=function(){W.postMessage(null)}}else Y=function(){C(A,0)};function me(F){P=F,x||(x=!0,Y())}function pe(F,B){_=C(function(){F(e.unstable_now())},B)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(F){F.callback=null},e.unstable_continueExecution=function(){w||p||(w=!0,me(T))},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return t(a)},e.unstable_next=function(F){switch(h){case 1:case 2:case 3:var B=3;break;default:B=h}var g=h;h=B;try{return F()}finally{h=g}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(F,B){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var g=h;h=F;try{return B()}finally{h=g}},e.unstable_scheduleCallback=function(F,B,g){var Q=e.unstable_now();switch(typeof g=="object"&&g!==null?(g=g.delay,g=typeof g=="number"&&0<g?Q+g:Q):g=Q,F){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=g+G,F={id:c++,callback:B,priorityLevel:F,startTime:g,expirationTime:G,sortIndex:-1},g>Q?(F.sortIndex=g,n(s,F),t(a)===null&&F===t(s)&&(v?(d(_),_=-1):v=!0,pe(S,g-Q))):(F.sortIndex=G,n(a,F),w||p||(w=!0,me(T))),F},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(F){var B=h;return function(){var g=h;h=B;try{return F.apply(this,arguments)}finally{h=g}}}})(sf);af.exports=sf;var Nh=af.exports;/**
18
+ * @license React
19
+ * react-dom.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var cf=N,Xe=Nh;function L(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ff=new Set,Mr={};function Pt(e,n){Zt(e,n),Zt(e+"Capture",n)}function Zt(e,n){for(Mr[e]=n,e=0;e<n.length;e++)ff.add(n[e])}var In=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Io=Object.prototype.hasOwnProperty,Rh=/^[: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]*$/,Ja={},es={};function Ah(e){return Io.call(es,e)?!0:Io.call(Ja,e)?!1:Rh.test(e)?es[e]=!0:(Ja[e]=!0,!1)}function Dh(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Mh(e,n,t,r){if(n===null||typeof n>"u"||Dh(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function Re(e,n,t,r,l,i,o){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=i,this.removeEmptyString=o}var Te={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Te[e]=new Re(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];Te[n]=new Re(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Te[e]=new Re(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Te[e]=new Re(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Te[e]=new Re(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Te[e]=new Re(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Te[e]=new Re(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Te[e]=new Re(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Te[e]=new Re(e,5,!1,e.toLowerCase(),null,!1,!1)});var $u=/[\-:]([a-z])/g;function Hu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace($u,Hu);Te[n]=new Re(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace($u,Hu);Te[n]=new Re(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace($u,Hu);Te[n]=new Re(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Te[e]=new Re(e,1,!1,e.toLowerCase(),null,!1,!1)});Te.xlinkHref=new Re("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Te[e]=new Re(e,1,!1,e.toLowerCase(),null,!0,!0)});function Vu(e,n,t,r){var l=Te.hasOwnProperty(n)?Te[n]:null;(l!==null?l.type!==0:r||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(Mh(n,t,l,r)&&(t=null),r||l===null?Ah(n)&&(t===null?e.removeAttribute(n):e.setAttribute(n,""+t)):l.mustUseProperty?e[l.propertyName]=t===null?l.type===3?!1:"":t:(n=l.attributeName,r=l.attributeNamespace,t===null?e.removeAttribute(n):(l=l.type,t=l===3||l===4&&t===!0?"":""+t,r?e.setAttributeNS(r,n,t):e.setAttribute(n,t))))}var Dn=cf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,fl=Symbol.for("react.element"),It=Symbol.for("react.portal"),Nt=Symbol.for("react.fragment"),Wu=Symbol.for("react.strict_mode"),No=Symbol.for("react.profiler"),pf=Symbol.for("react.provider"),df=Symbol.for("react.context"),Qu=Symbol.for("react.forward_ref"),Ro=Symbol.for("react.suspense"),Ao=Symbol.for("react.suspense_list"),Ku=Symbol.for("react.memo"),Hn=Symbol.for("react.lazy"),hf=Symbol.for("react.offscreen"),ns=Symbol.iterator;function dr(e){return e===null||typeof e!="object"?null:(e=ns&&e[ns]||e["@@iterator"],typeof e=="function"?e:null)}var ce=Object.assign,qi;function Sr(e){if(qi===void 0)try{throw Error()}catch(t){var n=t.stack.trim().match(/\n( *(at )?)/);qi=n&&n[1]||""}return`
26
+ `+qi+e}var bi=!1;function Gi(e,n){if(!e||bi)return"";bi=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(s){var r=s}Reflect.construct(e,[],n)}else{try{n.call()}catch(s){r=s}e.call(n.prototype)}else{try{throw Error()}catch(s){r=s}e()}}catch(s){if(s&&r&&typeof s.stack=="string"){for(var l=s.stack.split(`
27
+ `),i=r.stack.split(`
28
+ `),o=l.length-1,u=i.length-1;1<=o&&0<=u&&l[o]!==i[u];)u--;for(;1<=o&&0<=u;o--,u--)if(l[o]!==i[u]){if(o!==1||u!==1)do if(o--,u--,0>u||l[o]!==i[u]){var a=`
29
+ `+l[o].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=o&&0<=u);break}}}finally{bi=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?Sr(e):""}function Bh(e){switch(e.tag){case 5:return Sr(e.type);case 16:return Sr("Lazy");case 13:return Sr("Suspense");case 19:return Sr("SuspenseList");case 0:case 2:case 15:return e=Gi(e.type,!1),e;case 11:return e=Gi(e.type.render,!1),e;case 1:return e=Gi(e.type,!0),e;default:return""}}function Do(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Nt:return"Fragment";case It:return"Portal";case No:return"Profiler";case Wu:return"StrictMode";case Ro:return"Suspense";case Ao:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case df:return(e.displayName||"Context")+".Consumer";case pf:return(e._context.displayName||"Context")+".Provider";case Qu:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ku:return n=e.displayName||null,n!==null?n:Do(e.type)||"Memo";case Hn:n=e._payload,e=e._init;try{return Do(e(n))}catch{}}return null}function jh(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Do(n);case 8:return n===Wu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function lt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mf(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Uh(e){var n=mf(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var l=t.get,i=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function pl(e){e._valueTracker||(e._valueTracker=Uh(e))}function gf(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=mf(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function Vl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Mo(e,n){var t=n.checked;return ce({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function ts(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=lt(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function yf(e,n){n=n.checked,n!=null&&Vu(e,"checked",n,!1)}function Bo(e,n){yf(e,n);var t=lt(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?jo(e,n.type,t):n.hasOwnProperty("defaultValue")&&jo(e,n.type,lt(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function rs(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function jo(e,n,t){(n!=="number"||Vl(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var Er=Array.isArray;function Wt(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l<t.length;l++)n["$"+t[l]]=!0;for(t=0;t<e.length;t++)l=n.hasOwnProperty("$"+e[t].value),e[t].selected!==l&&(e[t].selected=l),l&&r&&(e[t].defaultSelected=!0)}else{for(t=""+lt(t),n=null,l=0;l<e.length;l++){if(e[l].value===t){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}n!==null||e[l].disabled||(n=e[l])}n!==null&&(n.selected=!0)}}function Uo(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(L(91));return ce({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ls(e,n){var t=n.value;if(t==null){if(t=n.children,n=n.defaultValue,t!=null){if(n!=null)throw Error(L(92));if(Er(t)){if(1<t.length)throw Error(L(93));t=t[0]}n=t}n==null&&(n=""),t=n}e._wrapperState={initialValue:lt(t)}}function vf(e,n){var t=lt(n.value),r=lt(n.defaultValue);t!=null&&(t=""+t,t!==e.value&&(e.value=t),n.defaultValue==null&&e.defaultValue!==t&&(e.defaultValue=t)),r!=null&&(e.defaultValue=""+r)}function is(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function kf(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function $o(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?kf(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var dl,xf=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,t,r,l){MSApp.execUnsafeLocalFunction(function(){return e(n,t,r,l)})}:e}(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(dl=dl||document.createElement("div"),dl.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=dl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Br(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var Tr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},$h=["Webkit","ms","Moz","O"];Object.keys(Tr).forEach(function(e){$h.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Tr[n]=Tr[e]})});function wf(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||Tr.hasOwnProperty(e)&&Tr[e]?(""+n).trim():n+"px"}function Sf(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,l=wf(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}var Hh=ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ho(e,n){if(n){if(Hh[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(L(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(L(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(L(61))}if(n.style!=null&&typeof n.style!="object")throw Error(L(62))}}function Vo(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Wo=null;function Xu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qo=null,Qt=null,Kt=null;function os(e){if(e=ll(e)){if(typeof Qo!="function")throw Error(L(280));var n=e.stateNode;n&&(n=wi(n),Qo(e.stateNode,e.type,n))}}function Ef(e){Qt?Kt?Kt.push(e):Kt=[e]:Qt=e}function Cf(){if(Qt){var e=Qt,n=Kt;if(Kt=Qt=null,os(e),n)for(e=0;e<n.length;e++)os(n[e])}}function Pf(e,n){return e(n)}function Tf(){}var Zi=!1;function Lf(e,n,t){if(Zi)return e(n,t);Zi=!0;try{return Pf(e,n,t)}finally{Zi=!1,(Qt!==null||Kt!==null)&&(Tf(),Cf())}}function jr(e,n){var t=e.stateNode;if(t===null)return null;var r=wi(t);if(r===null)return null;t=r[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(t&&typeof t!="function")throw Error(L(231,n,typeof t));return t}var Ko=!1;if(In)try{var hr={};Object.defineProperty(hr,"passive",{get:function(){Ko=!0}}),window.addEventListener("test",hr,hr),window.removeEventListener("test",hr,hr)}catch{Ko=!1}function Vh(e,n,t,r,l,i,o,u,a){var s=Array.prototype.slice.call(arguments,3);try{n.apply(t,s)}catch(c){this.onError(c)}}var Lr=!1,Wl=null,Ql=!1,Xo=null,Wh={onError:function(e){Lr=!0,Wl=e}};function Qh(e,n,t,r,l,i,o,u,a){Lr=!1,Wl=null,Vh.apply(Wh,arguments)}function Kh(e,n,t,r,l,i,o,u,a){if(Qh.apply(this,arguments),Lr){if(Lr){var s=Wl;Lr=!1,Wl=null}else throw Error(L(198));Ql||(Ql=!0,Xo=s)}}function Tt(e){var n=e,t=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,n.flags&4098&&(t=n.return),e=n.return;while(e)}return n.tag===3?t:null}function zf(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function us(e){if(Tt(e)!==e)throw Error(L(188))}function Xh(e){var n=e.alternate;if(!n){if(n=Tt(e),n===null)throw Error(L(188));return n!==e?null:e}for(var t=e,r=n;;){var l=t.return;if(l===null)break;var i=l.alternate;if(i===null){if(r=l.return,r!==null){t=r;continue}break}if(l.child===i.child){for(i=l.child;i;){if(i===t)return us(l),e;if(i===r)return us(l),n;i=i.sibling}throw Error(L(188))}if(t.return!==r.return)t=l,r=i;else{for(var o=!1,u=l.child;u;){if(u===t){o=!0,t=l,r=i;break}if(u===r){o=!0,r=l,t=i;break}u=u.sibling}if(!o){for(u=i.child;u;){if(u===t){o=!0,t=i,r=l;break}if(u===r){o=!0,r=i,t=l;break}u=u.sibling}if(!o)throw Error(L(189))}}if(t.alternate!==r)throw Error(L(190))}if(t.tag!==3)throw Error(L(188));return t.stateNode.current===t?e:n}function _f(e){return e=Xh(e),e!==null?Of(e):null}function Of(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=Of(e);if(n!==null)return n;e=e.sibling}return null}var Ff=Xe.unstable_scheduleCallback,as=Xe.unstable_cancelCallback,Yh=Xe.unstable_shouldYield,qh=Xe.unstable_requestPaint,he=Xe.unstable_now,bh=Xe.unstable_getCurrentPriorityLevel,Yu=Xe.unstable_ImmediatePriority,If=Xe.unstable_UserBlockingPriority,Kl=Xe.unstable_NormalPriority,Gh=Xe.unstable_LowPriority,Nf=Xe.unstable_IdlePriority,yi=null,Sn=null;function Zh(e){if(Sn&&typeof Sn.onCommitFiberRoot=="function")try{Sn.onCommitFiberRoot(yi,e,void 0,(e.current.flags&128)===128)}catch{}}var dn=Math.clz32?Math.clz32:nm,Jh=Math.log,em=Math.LN2;function nm(e){return e>>>=0,e===0?32:31-(Jh(e)/em|0)|0}var hl=64,ml=4194304;function Cr(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Xl(e,n){var t=e.pendingLanes;if(t===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=t&268435455;if(o!==0){var u=o&~l;u!==0?r=Cr(u):(i&=o,i!==0&&(r=Cr(i)))}else o=t&~l,o!==0?r=Cr(o):i!==0&&(r=Cr(i));if(r===0)return 0;if(n!==0&&n!==r&&!(n&l)&&(l=r&-r,i=n&-n,l>=i||l===16&&(i&4194240)!==0))return n;if(r&4&&(r|=t&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0<n;)t=31-dn(n),l=1<<t,r|=e[t],n&=~l;return r}function tm(e,n){switch(e){case 1:case 2:case 4:return n+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function rm(e,n){for(var t=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-dn(i),u=1<<o,a=l[o];a===-1?(!(u&t)||u&r)&&(l[o]=tm(u,n)):a<=n&&(e.expiredLanes|=u),i&=~u}}function Yo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Rf(){var e=hl;return hl<<=1,!(hl&4194240)&&(hl=64),e}function Ji(e){for(var n=[],t=0;31>t;t++)n.push(e);return n}function tl(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-dn(n),e[n]=t}function lm(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<t;){var l=31-dn(t),i=1<<l;n[l]=0,r[l]=-1,e[l]=-1,t&=~i}}function qu(e,n){var t=e.entangledLanes|=n;for(e=e.entanglements;t;){var r=31-dn(t),l=1<<r;l&n|e[r]&n&&(e[r]|=n),t&=~l}}var q=0;function Af(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Df,bu,Mf,Bf,jf,qo=!1,gl=[],qn=null,bn=null,Gn=null,Ur=new Map,$r=new Map,Wn=[],im="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ss(e,n){switch(e){case"focusin":case"focusout":qn=null;break;case"dragenter":case"dragleave":bn=null;break;case"mouseover":case"mouseout":Gn=null;break;case"pointerover":case"pointerout":Ur.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":$r.delete(n.pointerId)}}function mr(e,n,t,r,l,i){return e===null||e.nativeEvent!==i?(e={blockedOn:n,domEventName:t,eventSystemFlags:r,nativeEvent:i,targetContainers:[l]},n!==null&&(n=ll(n),n!==null&&bu(n)),e):(e.eventSystemFlags|=r,n=e.targetContainers,l!==null&&n.indexOf(l)===-1&&n.push(l),e)}function om(e,n,t,r,l){switch(n){case"focusin":return qn=mr(qn,e,n,t,r,l),!0;case"dragenter":return bn=mr(bn,e,n,t,r,l),!0;case"mouseover":return Gn=mr(Gn,e,n,t,r,l),!0;case"pointerover":var i=l.pointerId;return Ur.set(i,mr(Ur.get(i)||null,e,n,t,r,l)),!0;case"gotpointercapture":return i=l.pointerId,$r.set(i,mr($r.get(i)||null,e,n,t,r,l)),!0}return!1}function Uf(e){var n=dt(e.target);if(n!==null){var t=Tt(n);if(t!==null){if(n=t.tag,n===13){if(n=zf(t),n!==null){e.blockedOn=n,jf(e.priority,function(){Mf(t)});return}}else if(n===3&&t.stateNode.current.memoizedState.isDehydrated){e.blockedOn=t.tag===3?t.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Fl(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var t=bo(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(t===null){t=e.nativeEvent;var r=new t.constructor(t.type,t);Wo=r,t.target.dispatchEvent(r),Wo=null}else return n=ll(t),n!==null&&bu(n),e.blockedOn=t,!1;n.shift()}return!0}function cs(e,n,t){Fl(e)&&t.delete(n)}function um(){qo=!1,qn!==null&&Fl(qn)&&(qn=null),bn!==null&&Fl(bn)&&(bn=null),Gn!==null&&Fl(Gn)&&(Gn=null),Ur.forEach(cs),$r.forEach(cs)}function gr(e,n){e.blockedOn===n&&(e.blockedOn=null,qo||(qo=!0,Xe.unstable_scheduleCallback(Xe.unstable_NormalPriority,um)))}function Hr(e){function n(l){return gr(l,e)}if(0<gl.length){gr(gl[0],e);for(var t=1;t<gl.length;t++){var r=gl[t];r.blockedOn===e&&(r.blockedOn=null)}}for(qn!==null&&gr(qn,e),bn!==null&&gr(bn,e),Gn!==null&&gr(Gn,e),Ur.forEach(n),$r.forEach(n),t=0;t<Wn.length;t++)r=Wn[t],r.blockedOn===e&&(r.blockedOn=null);for(;0<Wn.length&&(t=Wn[0],t.blockedOn===null);)Uf(t),t.blockedOn===null&&Wn.shift()}var Xt=Dn.ReactCurrentBatchConfig,Yl=!0;function am(e,n,t,r){var l=q,i=Xt.transition;Xt.transition=null;try{q=1,Gu(e,n,t,r)}finally{q=l,Xt.transition=i}}function sm(e,n,t,r){var l=q,i=Xt.transition;Xt.transition=null;try{q=4,Gu(e,n,t,r)}finally{q=l,Xt.transition=i}}function Gu(e,n,t,r){if(Yl){var l=bo(e,n,t,r);if(l===null)so(e,n,r,ql,t),ss(e,r);else if(om(l,e,n,t,r))r.stopPropagation();else if(ss(e,r),n&4&&-1<im.indexOf(e)){for(;l!==null;){var i=ll(l);if(i!==null&&Df(i),i=bo(e,n,t,r),i===null&&so(e,n,r,ql,t),i===l)break;l=i}l!==null&&r.stopPropagation()}else so(e,n,r,null,t)}}var ql=null;function bo(e,n,t,r){if(ql=null,e=Xu(r),e=dt(e),e!==null)if(n=Tt(e),n===null)e=null;else if(t=n.tag,t===13){if(e=zf(n),e!==null)return e;e=null}else if(t===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return ql=e,null}function $f(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(bh()){case Yu:return 1;case If:return 4;case Kl:case Gh:return 16;case Nf:return 536870912;default:return 16}default:return 16}}var Kn=null,Zu=null,Il=null;function Hf(){if(Il)return Il;var e,n=Zu,t=n.length,r,l="value"in Kn?Kn.value:Kn.textContent,i=l.length;for(e=0;e<t&&n[e]===l[e];e++);var o=t-e;for(r=1;r<=o&&n[t-r]===l[i-r];r++);return Il=l.slice(e,1<r?1-r:void 0)}function Nl(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function yl(){return!0}function fs(){return!1}function qe(e){function n(t,r,l,i,o){this._reactName=t,this._targetInst=l,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var u in e)e.hasOwnProperty(u)&&(t=e[u],this[u]=t?t(i):i[u]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?yl:fs,this.isPropagationStopped=fs,this}return ce(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():typeof t.returnValue!="unknown"&&(t.returnValue=!1),this.isDefaultPrevented=yl)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():typeof t.cancelBubble!="unknown"&&(t.cancelBubble=!0),this.isPropagationStopped=yl)},persist:function(){},isPersistent:yl}),n}var or={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ju=qe(or),rl=ce({},or,{view:0,detail:0}),cm=qe(rl),eo,no,yr,vi=ce({},rl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ea,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!==yr&&(yr&&e.type==="mousemove"?(eo=e.screenX-yr.screenX,no=e.screenY-yr.screenY):no=eo=0,yr=e),eo)},movementY:function(e){return"movementY"in e?e.movementY:no}}),ps=qe(vi),fm=ce({},vi,{dataTransfer:0}),pm=qe(fm),dm=ce({},rl,{relatedTarget:0}),to=qe(dm),hm=ce({},or,{animationName:0,elapsedTime:0,pseudoElement:0}),mm=qe(hm),gm=ce({},or,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ym=qe(gm),vm=ce({},or,{data:0}),ds=qe(vm),km={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xm={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"},wm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sm(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=wm[e])?!!n[e]:!1}function ea(){return Sm}var Em=ce({},rl,{key:function(e){if(e.key){var n=km[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Nl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?xm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ea,charCode:function(e){return e.type==="keypress"?Nl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Nl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Cm=qe(Em),Pm=ce({},vi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hs=qe(Pm),Tm=ce({},rl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ea}),Lm=qe(Tm),zm=ce({},or,{propertyName:0,elapsedTime:0,pseudoElement:0}),_m=qe(zm),Om=ce({},vi,{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}),Fm=qe(Om),Im=[9,13,27,32],na=In&&"CompositionEvent"in window,zr=null;In&&"documentMode"in document&&(zr=document.documentMode);var Nm=In&&"TextEvent"in window&&!zr,Vf=In&&(!na||zr&&8<zr&&11>=zr),ms=String.fromCharCode(32),gs=!1;function Wf(e,n){switch(e){case"keyup":return Im.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Rt=!1;function Rm(e,n){switch(e){case"compositionend":return Qf(n);case"keypress":return n.which!==32?null:(gs=!0,ms);case"textInput":return e=n.data,e===ms&&gs?null:e;default:return null}}function Am(e,n){if(Rt)return e==="compositionend"||!na&&Wf(e,n)?(e=Hf(),Il=Zu=Kn=null,Rt=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Vf&&n.locale!=="ko"?null:n.data;default:return null}}var Dm={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 ys(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!Dm[e.type]:n==="textarea"}function Kf(e,n,t,r){Ef(r),n=bl(n,"onChange"),0<n.length&&(t=new Ju("onChange","change",null,t,r),e.push({event:t,listeners:n}))}var _r=null,Vr=null;function Mm(e){rp(e,0)}function ki(e){var n=Mt(e);if(gf(n))return e}function Bm(e,n){if(e==="change")return n}var Xf=!1;if(In){var ro;if(In){var lo="oninput"in document;if(!lo){var vs=document.createElement("div");vs.setAttribute("oninput","return;"),lo=typeof vs.oninput=="function"}ro=lo}else ro=!1;Xf=ro&&(!document.documentMode||9<document.documentMode)}function ks(){_r&&(_r.detachEvent("onpropertychange",Yf),Vr=_r=null)}function Yf(e){if(e.propertyName==="value"&&ki(Vr)){var n=[];Kf(n,Vr,e,Xu(e)),Lf(Mm,n)}}function jm(e,n,t){e==="focusin"?(ks(),_r=n,Vr=t,_r.attachEvent("onpropertychange",Yf)):e==="focusout"&&ks()}function Um(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ki(Vr)}function $m(e,n){if(e==="click")return ki(n)}function Hm(e,n){if(e==="input"||e==="change")return ki(n)}function Vm(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var mn=typeof Object.is=="function"?Object.is:Vm;function Wr(e,n){if(mn(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;for(r=0;r<t.length;r++){var l=t[r];if(!Io.call(n,l)||!mn(e[l],n[l]))return!1}return!0}function xs(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ws(e,n){var t=xs(e);e=0;for(var r;t;){if(t.nodeType===3){if(r=e+t.textContent.length,e<=n&&r>=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=xs(t)}}function qf(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?qf(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function bf(){for(var e=window,n=Vl();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=Vl(e.document)}return n}function ta(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Wm(e){var n=bf(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&qf(t.ownerDocument.documentElement,t)){if(r!==null&&ta(t)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var l=t.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=ws(t,i);var o=ws(t,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(n=n.createRange(),n.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(n),e.extend(o.node,o.offset)):(n.setEnd(o.node,o.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t<n.length;t++)e=n[t],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Qm=In&&"documentMode"in document&&11>=document.documentMode,At=null,Go=null,Or=null,Zo=!1;function Ss(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;Zo||At==null||At!==Vl(r)||(r=At,"selectionStart"in r&&ta(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Or&&Wr(Or,r)||(Or=r,r=bl(Go,"onSelect"),0<r.length&&(n=new Ju("onSelect","select",null,n,t),e.push({event:n,listeners:r}),n.target=At)))}function vl(e,n){var t={};return t[e.toLowerCase()]=n.toLowerCase(),t["Webkit"+e]="webkit"+n,t["Moz"+e]="moz"+n,t}var Dt={animationend:vl("Animation","AnimationEnd"),animationiteration:vl("Animation","AnimationIteration"),animationstart:vl("Animation","AnimationStart"),transitionend:vl("Transition","TransitionEnd")},io={},Gf={};In&&(Gf=document.createElement("div").style,"AnimationEvent"in window||(delete Dt.animationend.animation,delete Dt.animationiteration.animation,delete Dt.animationstart.animation),"TransitionEvent"in window||delete Dt.transitionend.transition);function xi(e){if(io[e])return io[e];if(!Dt[e])return e;var n=Dt[e],t;for(t in n)if(n.hasOwnProperty(t)&&t in Gf)return io[e]=n[t];return e}var Zf=xi("animationend"),Jf=xi("animationiteration"),ep=xi("animationstart"),np=xi("transitionend"),tp=new Map,Es="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ot(e,n){tp.set(e,n),Pt(n,[e])}for(var oo=0;oo<Es.length;oo++){var uo=Es[oo],Km=uo.toLowerCase(),Xm=uo[0].toUpperCase()+uo.slice(1);ot(Km,"on"+Xm)}ot(Zf,"onAnimationEnd");ot(Jf,"onAnimationIteration");ot(ep,"onAnimationStart");ot("dblclick","onDoubleClick");ot("focusin","onFocus");ot("focusout","onBlur");ot(np,"onTransitionEnd");Zt("onMouseEnter",["mouseout","mouseover"]);Zt("onMouseLeave",["mouseout","mouseover"]);Zt("onPointerEnter",["pointerout","pointerover"]);Zt("onPointerLeave",["pointerout","pointerover"]);Pt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Pt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Pt("onBeforeInput",["compositionend","keypress","textInput","paste"]);Pt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Pt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Pt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pr="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(" "),Ym=new Set("cancel close invalid load scroll toggle".split(" ").concat(Pr));function Cs(e,n,t){var r=e.type||"unknown-event";e.currentTarget=t,Kh(r,n,void 0,e),e.currentTarget=null}function rp(e,n){n=(n&4)!==0;for(var t=0;t<e.length;t++){var r=e[t],l=r.event;r=r.listeners;e:{var i=void 0;if(n)for(var o=r.length-1;0<=o;o--){var u=r[o],a=u.instance,s=u.currentTarget;if(u=u.listener,a!==i&&l.isPropagationStopped())break e;Cs(l,u,s),i=a}else for(o=0;o<r.length;o++){if(u=r[o],a=u.instance,s=u.currentTarget,u=u.listener,a!==i&&l.isPropagationStopped())break e;Cs(l,u,s),i=a}}}if(Ql)throw e=Xo,Ql=!1,Xo=null,e}function le(e,n){var t=n[ru];t===void 0&&(t=n[ru]=new Set);var r=e+"__bubble";t.has(r)||(lp(n,e,2,!1),t.add(r))}function ao(e,n,t){var r=0;n&&(r|=4),lp(t,e,r,n)}var kl="_reactListening"+Math.random().toString(36).slice(2);function Qr(e){if(!e[kl]){e[kl]=!0,ff.forEach(function(t){t!=="selectionchange"&&(Ym.has(t)||ao(t,!1,e),ao(t,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[kl]||(n[kl]=!0,ao("selectionchange",!1,n))}}function lp(e,n,t,r){switch($f(n)){case 1:var l=am;break;case 4:l=sm;break;default:l=Gu}t=l.bind(null,n,t,e),l=void 0,!Ko||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(n,t,{capture:!0,passive:l}):e.addEventListener(n,t,!0):l!==void 0?e.addEventListener(n,t,{passive:l}):e.addEventListener(n,t,!1)}function so(e,n,t,r,l){var i=r;if(!(n&1)&&!(n&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var u=r.stateNode.containerInfo;if(u===l||u.nodeType===8&&u.parentNode===l)break;if(o===4)for(o=r.return;o!==null;){var a=o.tag;if((a===3||a===4)&&(a=o.stateNode.containerInfo,a===l||a.nodeType===8&&a.parentNode===l))return;o=o.return}for(;u!==null;){if(o=dt(u),o===null)return;if(a=o.tag,a===5||a===6){r=i=o;continue e}u=u.parentNode}}r=r.return}Lf(function(){var s=i,c=Xu(t),f=[];e:{var h=tp.get(e);if(h!==void 0){var p=Ju,w=e;switch(e){case"keypress":if(Nl(t)===0)break e;case"keydown":case"keyup":p=Cm;break;case"focusin":w="focus",p=to;break;case"focusout":w="blur",p=to;break;case"beforeblur":case"afterblur":p=to;break;case"click":if(t.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=ps;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=pm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=Lm;break;case Zf:case Jf:case ep:p=mm;break;case np:p=_m;break;case"scroll":p=cm;break;case"wheel":p=Fm;break;case"copy":case"cut":case"paste":p=ym;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=hs}var v=(n&4)!==0,C=!v&&e==="scroll",d=v?h!==null?h+"Capture":null:h;v=[];for(var m=s,y;m!==null;){y=m;var S=y.stateNode;if(y.tag===5&&S!==null&&(y=S,d!==null&&(S=jr(m,d),S!=null&&v.push(Kr(m,S,y)))),C)break;m=m.return}0<v.length&&(h=new p(h,w,null,t,c),f.push({event:h,listeners:v}))}}if(!(n&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&t!==Wo&&(w=t.relatedTarget||t.fromElement)&&(dt(w)||w[Nn]))break e;if((p||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,p?(w=t.relatedTarget||t.toElement,p=s,w=w?dt(w):null,w!==null&&(C=Tt(w),w!==C||w.tag!==5&&w.tag!==6)&&(w=null)):(p=null,w=s),p!==w)){if(v=ps,S="onMouseLeave",d="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(v=hs,S="onPointerLeave",d="onPointerEnter",m="pointer"),C=p==null?h:Mt(p),y=w==null?h:Mt(w),h=new v(S,m+"leave",p,t,c),h.target=C,h.relatedTarget=y,S=null,dt(c)===s&&(v=new v(d,m+"enter",w,t,c),v.target=y,v.relatedTarget=C,S=v),C=S,p&&w)n:{for(v=p,d=w,m=0,y=v;y;y=Ft(y))m++;for(y=0,S=d;S;S=Ft(S))y++;for(;0<m-y;)v=Ft(v),m--;for(;0<y-m;)d=Ft(d),y--;for(;m--;){if(v===d||d!==null&&v===d.alternate)break n;v=Ft(v),d=Ft(d)}v=null}else v=null;p!==null&&Ps(f,h,p,v,!1),w!==null&&C!==null&&Ps(f,C,w,v,!0)}}e:{if(h=s?Mt(s):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var T=Bm;else if(ys(h))if(Xf)T=Hm;else{T=Um;var x=jm}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(T=$m);if(T&&(T=T(e,s))){Kf(f,T,t,c);break e}x&&x(e,h,s),e==="focusout"&&(x=h._wrapperState)&&x.controlled&&h.type==="number"&&jo(h,"number",h.value)}switch(x=s?Mt(s):window,e){case"focusin":(ys(x)||x.contentEditable==="true")&&(At=x,Go=s,Or=null);break;case"focusout":Or=Go=At=null;break;case"mousedown":Zo=!0;break;case"contextmenu":case"mouseup":case"dragend":Zo=!1,Ss(f,t,c);break;case"selectionchange":if(Qm)break;case"keydown":case"keyup":Ss(f,t,c)}var P;if(na)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else Rt?Wf(e,t)&&(_="onCompositionEnd"):e==="keydown"&&t.keyCode===229&&(_="onCompositionStart");_&&(Vf&&t.locale!=="ko"&&(Rt||_!=="onCompositionStart"?_==="onCompositionEnd"&&Rt&&(P=Hf()):(Kn=c,Zu="value"in Kn?Kn.value:Kn.textContent,Rt=!0)),x=bl(s,_),0<x.length&&(_=new ds(_,e,null,t,c),f.push({event:_,listeners:x}),P?_.data=P:(P=Qf(t),P!==null&&(_.data=P)))),(P=Nm?Rm(e,t):Am(e,t))&&(s=bl(s,"onBeforeInput"),0<s.length&&(c=new ds("onBeforeInput","beforeinput",null,t,c),f.push({event:c,listeners:s}),c.data=P))}rp(f,n)})}function Kr(e,n,t){return{instance:e,listener:n,currentTarget:t}}function bl(e,n){for(var t=n+"Capture",r=[];e!==null;){var l=e,i=l.stateNode;l.tag===5&&i!==null&&(l=i,i=jr(e,t),i!=null&&r.unshift(Kr(e,i,l)),i=jr(e,n),i!=null&&r.push(Kr(e,i,l))),e=e.return}return r}function Ft(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ps(e,n,t,r,l){for(var i=n._reactName,o=[];t!==null&&t!==r;){var u=t,a=u.alternate,s=u.stateNode;if(a!==null&&a===r)break;u.tag===5&&s!==null&&(u=s,l?(a=jr(t,i),a!=null&&o.unshift(Kr(t,a,u))):l||(a=jr(t,i),a!=null&&o.push(Kr(t,a,u)))),t=t.return}o.length!==0&&e.push({event:n,listeners:o})}var qm=/\r\n?/g,bm=/\u0000|\uFFFD/g;function Ts(e){return(typeof e=="string"?e:""+e).replace(qm,`
30
+ `).replace(bm,"")}function xl(e,n,t){if(n=Ts(n),Ts(e)!==n&&t)throw Error(L(425))}function Gl(){}var Jo=null,eu=null;function nu(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var tu=typeof setTimeout=="function"?setTimeout:void 0,Gm=typeof clearTimeout=="function"?clearTimeout:void 0,Ls=typeof Promise=="function"?Promise:void 0,Zm=typeof queueMicrotask=="function"?queueMicrotask:typeof Ls<"u"?function(e){return Ls.resolve(null).then(e).catch(Jm)}:tu;function Jm(e){setTimeout(function(){throw e})}function co(e,n){var t=n,r=0;do{var l=t.nextSibling;if(e.removeChild(t),l&&l.nodeType===8)if(t=l.data,t==="/$"){if(r===0){e.removeChild(l),Hr(n);return}r--}else t!=="$"&&t!=="$?"&&t!=="$!"||r++;t=l}while(t);Hr(n)}function Zn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function zs(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var t=e.data;if(t==="$"||t==="$!"||t==="$?"){if(n===0)return e;n--}else t==="/$"&&n++}e=e.previousSibling}return null}var ur=Math.random().toString(36).slice(2),xn="__reactFiber$"+ur,Xr="__reactProps$"+ur,Nn="__reactContainer$"+ur,ru="__reactEvents$"+ur,eg="__reactListeners$"+ur,ng="__reactHandles$"+ur;function dt(e){var n=e[xn];if(n)return n;for(var t=e.parentNode;t;){if(n=t[Nn]||t[xn]){if(t=n.alternate,n.child!==null||t!==null&&t.child!==null)for(e=zs(e);e!==null;){if(t=e[xn])return t;e=zs(e)}return n}e=t,t=e.parentNode}return null}function ll(e){return e=e[xn]||e[Nn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Mt(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(L(33))}function wi(e){return e[Xr]||null}var lu=[],Bt=-1;function ut(e){return{current:e}}function ie(e){0>Bt||(e.current=lu[Bt],lu[Bt]=null,Bt--)}function ne(e,n){Bt++,lu[Bt]=e.current,e.current=n}var it={},Oe=ut(it),Be=ut(!1),kt=it;function Jt(e,n){var t=e.type.contextTypes;if(!t)return it;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in t)l[i]=n[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function je(e){return e=e.childContextTypes,e!=null}function Zl(){ie(Be),ie(Oe)}function _s(e,n,t){if(Oe.current!==it)throw Error(L(168));ne(Oe,n),ne(Be,t)}function ip(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var l in r)if(!(l in n))throw Error(L(108,jh(e)||"Unknown",l));return ce({},t,r)}function Jl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||it,kt=Oe.current,ne(Oe,e),ne(Be,Be.current),!0}function Os(e,n,t){var r=e.stateNode;if(!r)throw Error(L(169));t?(e=ip(e,n,kt),r.__reactInternalMemoizedMergedChildContext=e,ie(Be),ie(Oe),ne(Oe,e)):ie(Be),ne(Be,t)}var zn=null,Si=!1,fo=!1;function op(e){zn===null?zn=[e]:zn.push(e)}function tg(e){Si=!0,op(e)}function at(){if(!fo&&zn!==null){fo=!0;var e=0,n=q;try{var t=zn;for(q=1;e<t.length;e++){var r=t[e];do r=r(!0);while(r!==null)}zn=null,Si=!1}catch(l){throw zn!==null&&(zn=zn.slice(e+1)),Ff(Yu,at),l}finally{q=n,fo=!1}}return null}var jt=[],Ut=0,ei=null,ni=0,be=[],Ge=0,xt=null,_n=1,On="";function ct(e,n){jt[Ut++]=ni,jt[Ut++]=ei,ei=e,ni=n}function up(e,n,t){be[Ge++]=_n,be[Ge++]=On,be[Ge++]=xt,xt=e;var r=_n;e=On;var l=32-dn(r)-1;r&=~(1<<l),t+=1;var i=32-dn(n)+l;if(30<i){var o=l-l%5;i=(r&(1<<o)-1).toString(32),r>>=o,l-=o,_n=1<<32-dn(n)+l|t<<l|r,On=i+e}else _n=1<<i|t<<l|r,On=e}function ra(e){e.return!==null&&(ct(e,1),up(e,1,0))}function la(e){for(;e===ei;)ei=jt[--Ut],jt[Ut]=null,ni=jt[--Ut],jt[Ut]=null;for(;e===xt;)xt=be[--Ge],be[Ge]=null,On=be[--Ge],be[Ge]=null,_n=be[--Ge],be[Ge]=null}var Ke=null,We=null,ue=!1,pn=null;function ap(e,n){var t=Je(5,null,null,0);t.elementType="DELETED",t.stateNode=n,t.return=e,n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)}function Fs(e,n){switch(e.tag){case 5:var t=e.type;return n=n.nodeType!==1||t.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,Ke=e,We=Zn(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,Ke=e,We=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(t=xt!==null?{id:_n,overflow:On}:null,e.memoizedState={dehydrated:n,treeContext:t,retryLane:1073741824},t=Je(18,null,null,0),t.stateNode=n,t.return=e,e.child=t,Ke=e,We=null,!0):!1;default:return!1}}function iu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ou(e){if(ue){var n=We;if(n){var t=n;if(!Fs(e,n)){if(iu(e))throw Error(L(418));n=Zn(t.nextSibling);var r=Ke;n&&Fs(e,n)?ap(r,t):(e.flags=e.flags&-4097|2,ue=!1,Ke=e)}}else{if(iu(e))throw Error(L(418));e.flags=e.flags&-4097|2,ue=!1,Ke=e}}}function Is(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ke=e}function wl(e){if(e!==Ke)return!1;if(!ue)return Is(e),ue=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!nu(e.type,e.memoizedProps)),n&&(n=We)){if(iu(e))throw sp(),Error(L(418));for(;n;)ap(e,n),n=Zn(n.nextSibling)}if(Is(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(L(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var t=e.data;if(t==="/$"){if(n===0){We=Zn(e.nextSibling);break e}n--}else t!=="$"&&t!=="$!"&&t!=="$?"||n++}e=e.nextSibling}We=null}}else We=Ke?Zn(e.stateNode.nextSibling):null;return!0}function sp(){for(var e=We;e;)e=Zn(e.nextSibling)}function er(){We=Ke=null,ue=!1}function ia(e){pn===null?pn=[e]:pn.push(e)}var rg=Dn.ReactCurrentBatchConfig;function cn(e,n){if(e&&e.defaultProps){n=ce({},n),e=e.defaultProps;for(var t in e)n[t]===void 0&&(n[t]=e[t]);return n}return n}var ti=ut(null),ri=null,$t=null,oa=null;function ua(){oa=$t=ri=null}function aa(e){var n=ti.current;ie(ti),e._currentValue=n}function uu(e,n,t){for(;e!==null;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,r!==null&&(r.childLanes|=n)):r!==null&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function Yt(e,n){ri=e,oa=$t=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&n&&(Me=!0),e.firstContext=null)}function nn(e){var n=e._currentValue;if(oa!==e)if(e={context:e,memoizedValue:n,next:null},$t===null){if(ri===null)throw Error(L(308));$t=e,ri.dependencies={lanes:0,firstContext:e}}else $t=$t.next=e;return n}var ht=null;function sa(e){ht===null?ht=[e]:ht.push(e)}function cp(e,n,t,r){var l=n.interleaved;return l===null?(t.next=t,sa(n)):(t.next=l.next,l.next=t),n.interleaved=t,Rn(e,r)}function Rn(e,n){e.lanes|=n;var t=e.alternate;for(t!==null&&(t.lanes|=n),t=e,e=e.return;e!==null;)e.childLanes|=n,t=e.alternate,t!==null&&(t.childLanes|=n),t=e,e=e.return;return t.tag===3?t.stateNode:null}var Vn=!1;function ca(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function fp(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fn(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function Jn(e,n,t){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,K&2){var l=r.pending;return l===null?n.next=n:(n.next=l.next,l.next=n),r.pending=n,Rn(e,t)}return l=r.interleaved,l===null?(n.next=n,sa(r)):(n.next=l.next,l.next=n),r.interleaved=n,Rn(e,t)}function Rl(e,n,t){if(n=n.updateQueue,n!==null&&(n=n.shared,(t&4194240)!==0)){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,qu(e,t)}}function Ns(e,n){var t=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,t===r)){var l=null,i=null;if(t=t.firstBaseUpdate,t!==null){do{var o={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};i===null?l=i=o:i=i.next=o,t=t.next}while(t!==null);i===null?l=i=n:i=i.next=n}else l=i=n;t={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=t;return}e=t.lastBaseUpdate,e===null?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}function li(e,n,t,r){var l=e.updateQueue;Vn=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var a=u,s=a.next;a.next=null,o===null?i=s:o.next=s,o=a;var c=e.alternate;c!==null&&(c=c.updateQueue,u=c.lastBaseUpdate,u!==o&&(u===null?c.firstBaseUpdate=s:u.next=s,c.lastBaseUpdate=a))}if(i!==null){var f=l.baseState;o=0,c=s=a=null,u=i;do{var h=u.lane,p=u.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:p,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var w=e,v=u;switch(h=n,p=t,v.tag){case 1:if(w=v.payload,typeof w=="function"){f=w.call(p,f,h);break e}f=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=v.payload,h=typeof w=="function"?w.call(p,f,h):w,h==null)break e;f=ce({},f,h);break e;case 2:Vn=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,h=l.effects,h===null?l.effects=[u]:h.push(u))}else p={eventTime:p,lane:h,tag:u.tag,payload:u.payload,callback:u.callback,next:null},c===null?(s=c=p,a=f):c=c.next=p,o|=h;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;h=u,u=h.next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}while(1);if(c===null&&(a=f),l.baseState=a,l.firstBaseUpdate=s,l.lastBaseUpdate=c,n=l.shared.interleaved,n!==null){l=n;do o|=l.lane,l=l.next;while(l!==n)}else i===null&&(l.shared.lanes=0);St|=o,e.lanes=o,e.memoizedState=f}}function Rs(e,n,t){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var r=e[n],l=r.callback;if(l!==null){if(r.callback=null,r=t,typeof l!="function")throw Error(L(191,l));l.call(r)}}}var pp=new cf.Component().refs;function au(e,n,t,r){n=e.memoizedState,t=t(r,n),t=t==null?n:ce({},n,t),e.memoizedState=t,e.lanes===0&&(e.updateQueue.baseState=t)}var Ei={isMounted:function(e){return(e=e._reactInternals)?Tt(e)===e:!1},enqueueSetState:function(e,n,t){e=e._reactInternals;var r=Ie(),l=nt(e),i=Fn(r,l);i.payload=n,t!=null&&(i.callback=t),n=Jn(e,i,l),n!==null&&(hn(n,e,l,r),Rl(n,e,l))},enqueueReplaceState:function(e,n,t){e=e._reactInternals;var r=Ie(),l=nt(e),i=Fn(r,l);i.tag=1,i.payload=n,t!=null&&(i.callback=t),n=Jn(e,i,l),n!==null&&(hn(n,e,l,r),Rl(n,e,l))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var t=Ie(),r=nt(e),l=Fn(t,r);l.tag=2,n!=null&&(l.callback=n),n=Jn(e,l,r),n!==null&&(hn(n,e,r,t),Rl(n,e,r))}};function As(e,n,t,r,l,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):n.prototype&&n.prototype.isPureReactComponent?!Wr(t,r)||!Wr(l,i):!0}function dp(e,n,t){var r=!1,l=it,i=n.contextType;return typeof i=="object"&&i!==null?i=nn(i):(l=je(n)?kt:Oe.current,r=n.contextTypes,i=(r=r!=null)?Jt(e,l):it),n=new n(t,i),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Ei,e.stateNode=n,n._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=i),n}function Ds(e,n,t,r){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(t,r),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(t,r),n.state!==e&&Ei.enqueueReplaceState(n,n.state,null)}function su(e,n,t,r){var l=e.stateNode;l.props=t,l.state=e.memoizedState,l.refs=pp,ca(e);var i=n.contextType;typeof i=="object"&&i!==null?l.context=nn(i):(i=je(n)?kt:Oe.current,l.context=Jt(e,i)),l.state=e.memoizedState,i=n.getDerivedStateFromProps,typeof i=="function"&&(au(e,n,i,t),l.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(n=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),n!==l.state&&Ei.enqueueReplaceState(l,l.state,null),li(e,t,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function vr(e,n,t){if(e=t.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(t._owner){if(t=t._owner,t){if(t.tag!==1)throw Error(L(309));var r=t.stateNode}if(!r)throw Error(L(147,e));var l=r,i=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===i?n.ref:(n=function(o){var u=l.refs;u===pp&&(u=l.refs={}),o===null?delete u[i]:u[i]=o},n._stringRef=i,n)}if(typeof e!="string")throw Error(L(284));if(!t._owner)throw Error(L(290,e))}return e}function Sl(e,n){throw e=Object.prototype.toString.call(n),Error(L(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function Ms(e){var n=e._init;return n(e._payload)}function hp(e){function n(d,m){if(e){var y=d.deletions;y===null?(d.deletions=[m],d.flags|=16):y.push(m)}}function t(d,m){if(!e)return null;for(;m!==null;)n(d,m),m=m.sibling;return null}function r(d,m){for(d=new Map;m!==null;)m.key!==null?d.set(m.key,m):d.set(m.index,m),m=m.sibling;return d}function l(d,m){return d=tt(d,m),d.index=0,d.sibling=null,d}function i(d,m,y){return d.index=y,e?(y=d.alternate,y!==null?(y=y.index,y<m?(d.flags|=2,m):y):(d.flags|=2,m)):(d.flags|=1048576,m)}function o(d){return e&&d.alternate===null&&(d.flags|=2),d}function u(d,m,y,S){return m===null||m.tag!==6?(m=ko(y,d.mode,S),m.return=d,m):(m=l(m,y),m.return=d,m)}function a(d,m,y,S){var T=y.type;return T===Nt?c(d,m,y.props.children,S,y.key):m!==null&&(m.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Hn&&Ms(T)===m.type)?(S=l(m,y.props),S.ref=vr(d,m,y),S.return=d,S):(S=Ul(y.type,y.key,y.props,null,d.mode,S),S.ref=vr(d,m,y),S.return=d,S)}function s(d,m,y,S){return m===null||m.tag!==4||m.stateNode.containerInfo!==y.containerInfo||m.stateNode.implementation!==y.implementation?(m=xo(y,d.mode,S),m.return=d,m):(m=l(m,y.children||[]),m.return=d,m)}function c(d,m,y,S,T){return m===null||m.tag!==7?(m=vt(y,d.mode,S,T),m.return=d,m):(m=l(m,y),m.return=d,m)}function f(d,m,y){if(typeof m=="string"&&m!==""||typeof m=="number")return m=ko(""+m,d.mode,y),m.return=d,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case fl:return y=Ul(m.type,m.key,m.props,null,d.mode,y),y.ref=vr(d,null,m),y.return=d,y;case It:return m=xo(m,d.mode,y),m.return=d,m;case Hn:var S=m._init;return f(d,S(m._payload),y)}if(Er(m)||dr(m))return m=vt(m,d.mode,y,null),m.return=d,m;Sl(d,m)}return null}function h(d,m,y,S){var T=m!==null?m.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return T!==null?null:u(d,m,""+y,S);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case fl:return y.key===T?a(d,m,y,S):null;case It:return y.key===T?s(d,m,y,S):null;case Hn:return T=y._init,h(d,m,T(y._payload),S)}if(Er(y)||dr(y))return T!==null?null:c(d,m,y,S,null);Sl(d,y)}return null}function p(d,m,y,S,T){if(typeof S=="string"&&S!==""||typeof S=="number")return d=d.get(y)||null,u(m,d,""+S,T);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case fl:return d=d.get(S.key===null?y:S.key)||null,a(m,d,S,T);case It:return d=d.get(S.key===null?y:S.key)||null,s(m,d,S,T);case Hn:var x=S._init;return p(d,m,y,x(S._payload),T)}if(Er(S)||dr(S))return d=d.get(y)||null,c(m,d,S,T,null);Sl(m,S)}return null}function w(d,m,y,S){for(var T=null,x=null,P=m,_=m=0,M=null;P!==null&&_<y.length;_++){P.index>_?(M=P,P=null):M=P.sibling;var D=h(d,P,y[_],S);if(D===null){P===null&&(P=M);break}e&&P&&D.alternate===null&&n(d,P),m=i(D,m,_),x===null?T=D:x.sibling=D,x=D,P=M}if(_===y.length)return t(d,P),ue&&ct(d,_),T;if(P===null){for(;_<y.length;_++)P=f(d,y[_],S),P!==null&&(m=i(P,m,_),x===null?T=P:x.sibling=P,x=P);return ue&&ct(d,_),T}for(P=r(d,P);_<y.length;_++)M=p(P,d,_,y[_],S),M!==null&&(e&&M.alternate!==null&&P.delete(M.key===null?_:M.key),m=i(M,m,_),x===null?T=M:x.sibling=M,x=M);return e&&P.forEach(function(I){return n(d,I)}),ue&&ct(d,_),T}function v(d,m,y,S){var T=dr(y);if(typeof T!="function")throw Error(L(150));if(y=T.call(y),y==null)throw Error(L(151));for(var x=T=null,P=m,_=m=0,M=null,D=y.next();P!==null&&!D.done;_++,D=y.next()){P.index>_?(M=P,P=null):M=P.sibling;var I=h(d,P,D.value,S);if(I===null){P===null&&(P=M);break}e&&P&&I.alternate===null&&n(d,P),m=i(I,m,_),x===null?T=I:x.sibling=I,x=I,P=M}if(D.done)return t(d,P),ue&&ct(d,_),T;if(P===null){for(;!D.done;_++,D=y.next())D=f(d,D.value,S),D!==null&&(m=i(D,m,_),x===null?T=D:x.sibling=D,x=D);return ue&&ct(d,_),T}for(P=r(d,P);!D.done;_++,D=y.next())D=p(P,d,_,D.value,S),D!==null&&(e&&D.alternate!==null&&P.delete(D.key===null?_:D.key),m=i(D,m,_),x===null?T=D:x.sibling=D,x=D);return e&&P.forEach(function(A){return n(d,A)}),ue&&ct(d,_),T}function C(d,m,y,S){if(typeof y=="object"&&y!==null&&y.type===Nt&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case fl:e:{for(var T=y.key,x=m;x!==null;){if(x.key===T){if(T=y.type,T===Nt){if(x.tag===7){t(d,x.sibling),m=l(x,y.props.children),m.return=d,d=m;break e}}else if(x.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Hn&&Ms(T)===x.type){t(d,x.sibling),m=l(x,y.props),m.ref=vr(d,x,y),m.return=d,d=m;break e}t(d,x);break}else n(d,x);x=x.sibling}y.type===Nt?(m=vt(y.props.children,d.mode,S,y.key),m.return=d,d=m):(S=Ul(y.type,y.key,y.props,null,d.mode,S),S.ref=vr(d,m,y),S.return=d,d=S)}return o(d);case It:e:{for(x=y.key;m!==null;){if(m.key===x)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){t(d,m.sibling),m=l(m,y.children||[]),m.return=d,d=m;break e}else{t(d,m);break}else n(d,m);m=m.sibling}m=xo(y,d.mode,S),m.return=d,d=m}return o(d);case Hn:return x=y._init,C(d,m,x(y._payload),S)}if(Er(y))return w(d,m,y,S);if(dr(y))return v(d,m,y,S);Sl(d,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(t(d,m.sibling),m=l(m,y),m.return=d,d=m):(t(d,m),m=ko(y,d.mode,S),m.return=d,d=m),o(d)):t(d,m)}return C}var nr=hp(!0),mp=hp(!1),il={},En=ut(il),Yr=ut(il),qr=ut(il);function mt(e){if(e===il)throw Error(L(174));return e}function fa(e,n){switch(ne(qr,n),ne(Yr,e),ne(En,il),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:$o(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=$o(n,e)}ie(En),ne(En,n)}function tr(){ie(En),ie(Yr),ie(qr)}function gp(e){mt(qr.current);var n=mt(En.current),t=$o(n,e.type);n!==t&&(ne(Yr,e),ne(En,t))}function pa(e){Yr.current===e&&(ie(En),ie(Yr))}var ae=ut(0);function ii(e){for(var n=e;n!==null;){if(n.tag===13){var t=n.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var po=[];function da(){for(var e=0;e<po.length;e++)po[e]._workInProgressVersionPrimary=null;po.length=0}var Al=Dn.ReactCurrentDispatcher,ho=Dn.ReactCurrentBatchConfig,wt=0,se=null,xe=null,Se=null,oi=!1,Fr=!1,br=0,lg=0;function Le(){throw Error(L(321))}function ha(e,n){if(n===null)return!1;for(var t=0;t<n.length&&t<e.length;t++)if(!mn(e[t],n[t]))return!1;return!0}function ma(e,n,t,r,l,i){if(wt=i,se=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,Al.current=e===null||e.memoizedState===null?ag:sg,e=t(r,l),Fr){i=0;do{if(Fr=!1,br=0,25<=i)throw Error(L(301));i+=1,Se=xe=null,n.updateQueue=null,Al.current=cg,e=t(r,l)}while(Fr)}if(Al.current=ui,n=xe!==null&&xe.next!==null,wt=0,Se=xe=se=null,oi=!1,n)throw Error(L(300));return e}function ga(){var e=br!==0;return br=0,e}function vn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Se===null?se.memoizedState=Se=e:Se=Se.next=e,Se}function tn(){if(xe===null){var e=se.alternate;e=e!==null?e.memoizedState:null}else e=xe.next;var n=Se===null?se.memoizedState:Se.next;if(n!==null)Se=n,xe=e;else{if(e===null)throw Error(L(310));xe=e,e={memoizedState:xe.memoizedState,baseState:xe.baseState,baseQueue:xe.baseQueue,queue:xe.queue,next:null},Se===null?se.memoizedState=Se=e:Se=Se.next=e}return Se}function Gr(e,n){return typeof n=="function"?n(e):n}function mo(e){var n=tn(),t=n.queue;if(t===null)throw Error(L(311));t.lastRenderedReducer=e;var r=xe,l=r.baseQueue,i=t.pending;if(i!==null){if(l!==null){var o=l.next;l.next=i.next,i.next=o}r.baseQueue=l=i,t.pending=null}if(l!==null){i=l.next,r=r.baseState;var u=o=null,a=null,s=i;do{var c=s.lane;if((wt&c)===c)a!==null&&(a=a.next={lane:0,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null}),r=s.hasEagerState?s.eagerState:e(r,s.action);else{var f={lane:c,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null};a===null?(u=a=f,o=r):a=a.next=f,se.lanes|=c,St|=c}s=s.next}while(s!==null&&s!==i);a===null?o=r:a.next=u,mn(r,n.memoizedState)||(Me=!0),n.memoizedState=r,n.baseState=o,n.baseQueue=a,t.lastRenderedState=r}if(e=t.interleaved,e!==null){l=e;do i=l.lane,se.lanes|=i,St|=i,l=l.next;while(l!==e)}else l===null&&(t.lanes=0);return[n.memoizedState,t.dispatch]}function go(e){var n=tn(),t=n.queue;if(t===null)throw Error(L(311));t.lastRenderedReducer=e;var r=t.dispatch,l=t.pending,i=n.memoizedState;if(l!==null){t.pending=null;var o=l=l.next;do i=e(i,o.action),o=o.next;while(o!==l);mn(i,n.memoizedState)||(Me=!0),n.memoizedState=i,n.baseQueue===null&&(n.baseState=i),t.lastRenderedState=i}return[i,r]}function yp(){}function vp(e,n){var t=se,r=tn(),l=n(),i=!mn(r.memoizedState,l);if(i&&(r.memoizedState=l,Me=!0),r=r.queue,ya(wp.bind(null,t,r,e),[e]),r.getSnapshot!==n||i||Se!==null&&Se.memoizedState.tag&1){if(t.flags|=2048,Zr(9,xp.bind(null,t,r,l,n),void 0,null),Ee===null)throw Error(L(349));wt&30||kp(t,n,l)}return l}function kp(e,n,t){e.flags|=16384,e={getSnapshot:n,value:t},n=se.updateQueue,n===null?(n={lastEffect:null,stores:null},se.updateQueue=n,n.stores=[e]):(t=n.stores,t===null?n.stores=[e]:t.push(e))}function xp(e,n,t,r){n.value=t,n.getSnapshot=r,Sp(n)&&Ep(e)}function wp(e,n,t){return t(function(){Sp(n)&&Ep(e)})}function Sp(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!mn(e,t)}catch{return!0}}function Ep(e){var n=Rn(e,1);n!==null&&hn(n,e,1,-1)}function Bs(e){var n=vn();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Gr,lastRenderedState:e},n.queue=e,e=e.dispatch=ug.bind(null,se,e),[n.memoizedState,e]}function Zr(e,n,t,r){return e={tag:e,create:n,destroy:t,deps:r,next:null},n=se.updateQueue,n===null?(n={lastEffect:null,stores:null},se.updateQueue=n,n.lastEffect=e.next=e):(t=n.lastEffect,t===null?n.lastEffect=e.next=e:(r=t.next,t.next=e,e.next=r,n.lastEffect=e)),e}function Cp(){return tn().memoizedState}function Dl(e,n,t,r){var l=vn();se.flags|=e,l.memoizedState=Zr(1|n,t,void 0,r===void 0?null:r)}function Ci(e,n,t,r){var l=tn();r=r===void 0?null:r;var i=void 0;if(xe!==null){var o=xe.memoizedState;if(i=o.destroy,r!==null&&ha(r,o.deps)){l.memoizedState=Zr(n,t,i,r);return}}se.flags|=e,l.memoizedState=Zr(1|n,t,i,r)}function js(e,n){return Dl(8390656,8,e,n)}function ya(e,n){return Ci(2048,8,e,n)}function Pp(e,n){return Ci(4,2,e,n)}function Tp(e,n){return Ci(4,4,e,n)}function Lp(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function zp(e,n,t){return t=t!=null?t.concat([e]):null,Ci(4,4,Lp.bind(null,n,e),t)}function va(){}function _p(e,n){var t=tn();n=n===void 0?null:n;var r=t.memoizedState;return r!==null&&n!==null&&ha(n,r[1])?r[0]:(t.memoizedState=[e,n],e)}function Op(e,n){var t=tn();n=n===void 0?null:n;var r=t.memoizedState;return r!==null&&n!==null&&ha(n,r[1])?r[0]:(e=e(),t.memoizedState=[e,n],e)}function Fp(e,n,t){return wt&21?(mn(t,n)||(t=Rf(),se.lanes|=t,St|=t,e.baseState=!0),n):(e.baseState&&(e.baseState=!1,Me=!0),e.memoizedState=t)}function ig(e,n){var t=q;q=t!==0&&4>t?t:4,e(!0);var r=ho.transition;ho.transition={};try{e(!1),n()}finally{q=t,ho.transition=r}}function Ip(){return tn().memoizedState}function og(e,n,t){var r=nt(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},Np(e))Rp(n,t);else if(t=cp(e,n,t,r),t!==null){var l=Ie();hn(t,e,r,l),Ap(t,n,r)}}function ug(e,n,t){var r=nt(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Np(e))Rp(n,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=n.lastRenderedReducer,i!==null))try{var o=n.lastRenderedState,u=i(o,t);if(l.hasEagerState=!0,l.eagerState=u,mn(u,o)){var a=n.interleaved;a===null?(l.next=l,sa(n)):(l.next=a.next,a.next=l),n.interleaved=l;return}}catch{}finally{}t=cp(e,n,l,r),t!==null&&(l=Ie(),hn(t,e,r,l),Ap(t,n,r))}}function Np(e){var n=e.alternate;return e===se||n!==null&&n===se}function Rp(e,n){Fr=oi=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Ap(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,qu(e,t)}}var ui={readContext:nn,useCallback:Le,useContext:Le,useEffect:Le,useImperativeHandle:Le,useInsertionEffect:Le,useLayoutEffect:Le,useMemo:Le,useReducer:Le,useRef:Le,useState:Le,useDebugValue:Le,useDeferredValue:Le,useTransition:Le,useMutableSource:Le,useSyncExternalStore:Le,useId:Le,unstable_isNewReconciler:!1},ag={readContext:nn,useCallback:function(e,n){return vn().memoizedState=[e,n===void 0?null:n],e},useContext:nn,useEffect:js,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,Dl(4194308,4,Lp.bind(null,n,e),t)},useLayoutEffect:function(e,n){return Dl(4194308,4,e,n)},useInsertionEffect:function(e,n){return Dl(4,2,e,n)},useMemo:function(e,n){var t=vn();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=vn();return n=t!==void 0?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=og.bind(null,se,e),[r.memoizedState,e]},useRef:function(e){var n=vn();return e={current:e},n.memoizedState=e},useState:Bs,useDebugValue:va,useDeferredValue:function(e){return vn().memoizedState=e},useTransition:function(){var e=Bs(!1),n=e[0];return e=ig.bind(null,e[1]),vn().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=se,l=vn();if(ue){if(t===void 0)throw Error(L(407));t=t()}else{if(t=n(),Ee===null)throw Error(L(349));wt&30||kp(r,n,t)}l.memoizedState=t;var i={value:t,getSnapshot:n};return l.queue=i,js(wp.bind(null,r,i,e),[e]),r.flags|=2048,Zr(9,xp.bind(null,r,i,t,n),void 0,null),t},useId:function(){var e=vn(),n=Ee.identifierPrefix;if(ue){var t=On,r=_n;t=(r&~(1<<32-dn(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=br++,0<t&&(n+="H"+t.toString(32)),n+=":"}else t=lg++,n=":"+n+"r"+t.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},sg={readContext:nn,useCallback:_p,useContext:nn,useEffect:ya,useImperativeHandle:zp,useInsertionEffect:Pp,useLayoutEffect:Tp,useMemo:Op,useReducer:mo,useRef:Cp,useState:function(){return mo(Gr)},useDebugValue:va,useDeferredValue:function(e){var n=tn();return Fp(n,xe.memoizedState,e)},useTransition:function(){var e=mo(Gr)[0],n=tn().memoizedState;return[e,n]},useMutableSource:yp,useSyncExternalStore:vp,useId:Ip,unstable_isNewReconciler:!1},cg={readContext:nn,useCallback:_p,useContext:nn,useEffect:ya,useImperativeHandle:zp,useInsertionEffect:Pp,useLayoutEffect:Tp,useMemo:Op,useReducer:go,useRef:Cp,useState:function(){return go(Gr)},useDebugValue:va,useDeferredValue:function(e){var n=tn();return xe===null?n.memoizedState=e:Fp(n,xe.memoizedState,e)},useTransition:function(){var e=go(Gr)[0],n=tn().memoizedState;return[e,n]},useMutableSource:yp,useSyncExternalStore:vp,useId:Ip,unstable_isNewReconciler:!1};function rr(e,n){try{var t="",r=n;do t+=Bh(r),r=r.return;while(r);var l=t}catch(i){l=`
31
+ Error generating stack: `+i.message+`
32
+ `+i.stack}return{value:e,source:n,stack:l,digest:null}}function yo(e,n,t){return{value:e,source:null,stack:t??null,digest:n??null}}function cu(e,n){try{console.error(n.value)}catch(t){setTimeout(function(){throw t})}}var fg=typeof WeakMap=="function"?WeakMap:Map;function Dp(e,n,t){t=Fn(-1,t),t.tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){si||(si=!0,xu=r),cu(e,n)},t}function Mp(e,n,t){t=Fn(-1,t),t.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=n.value;t.payload=function(){return r(l)},t.callback=function(){cu(e,n)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(t.callback=function(){cu(e,n),typeof r!="function"&&(et===null?et=new Set([this]):et.add(this));var o=n.stack;this.componentDidCatch(n.value,{componentStack:o!==null?o:""})}),t}function Us(e,n,t){var r=e.pingCache;if(r===null){r=e.pingCache=new fg;var l=new Set;r.set(n,l)}else l=r.get(n),l===void 0&&(l=new Set,r.set(n,l));l.has(t)||(l.add(t),e=Pg.bind(null,e,n,t),n.then(e,e))}function $s(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function Hs(e,n,t,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===n?e.flags|=65536:(e.flags|=128,t.flags|=131072,t.flags&=-52805,t.tag===1&&(t.alternate===null?t.tag=17:(n=Fn(-1,1),n.tag=2,Jn(t,n,1))),t.lanes|=1),e)}var pg=Dn.ReactCurrentOwner,Me=!1;function Fe(e,n,t,r){n.child=e===null?mp(n,null,t,r):nr(n,e.child,t,r)}function Vs(e,n,t,r,l){t=t.render;var i=n.ref;return Yt(n,l),r=ma(e,n,t,r,i,l),t=ga(),e!==null&&!Me?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,An(e,n,l)):(ue&&t&&ra(n),n.flags|=1,Fe(e,n,r,l),n.child)}function Ws(e,n,t,r,l){if(e===null){var i=t.type;return typeof i=="function"&&!Ta(i)&&i.defaultProps===void 0&&t.compare===null&&t.defaultProps===void 0?(n.tag=15,n.type=i,Bp(e,n,i,r,l)):(e=Ul(t.type,null,r,n,n.mode,l),e.ref=n.ref,e.return=n,n.child=e)}if(i=e.child,!(e.lanes&l)){var o=i.memoizedProps;if(t=t.compare,t=t!==null?t:Wr,t(o,r)&&e.ref===n.ref)return An(e,n,l)}return n.flags|=1,e=tt(i,r),e.ref=n.ref,e.return=n,n.child=e}function Bp(e,n,t,r,l){if(e!==null){var i=e.memoizedProps;if(Wr(i,r)&&e.ref===n.ref)if(Me=!1,n.pendingProps=r=i,(e.lanes&l)!==0)e.flags&131072&&(Me=!0);else return n.lanes=e.lanes,An(e,n,l)}return fu(e,n,t,r,l)}function jp(e,n,t){var r=n.pendingProps,l=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(n.mode&1))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},ne(Vt,Ve),Ve|=t;else{if(!(t&1073741824))return e=i!==null?i.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,ne(Vt,Ve),Ve|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:t,ne(Vt,Ve),Ve|=r}else i!==null?(r=i.baseLanes|t,n.memoizedState=null):r=t,ne(Vt,Ve),Ve|=r;return Fe(e,n,l,t),n.child}function Up(e,n){var t=n.ref;(e===null&&t!==null||e!==null&&e.ref!==t)&&(n.flags|=512,n.flags|=2097152)}function fu(e,n,t,r,l){var i=je(t)?kt:Oe.current;return i=Jt(n,i),Yt(n,l),t=ma(e,n,t,r,i,l),r=ga(),e!==null&&!Me?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,An(e,n,l)):(ue&&r&&ra(n),n.flags|=1,Fe(e,n,t,l),n.child)}function Qs(e,n,t,r,l){if(je(t)){var i=!0;Jl(n)}else i=!1;if(Yt(n,l),n.stateNode===null)Ml(e,n),dp(n,t,r),su(n,t,r,l),r=!0;else if(e===null){var o=n.stateNode,u=n.memoizedProps;o.props=u;var a=o.context,s=t.contextType;typeof s=="object"&&s!==null?s=nn(s):(s=je(t)?kt:Oe.current,s=Jt(n,s));var c=t.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(u!==r||a!==s)&&Ds(n,o,r,s),Vn=!1;var h=n.memoizedState;o.state=h,li(n,r,o,l),a=n.memoizedState,u!==r||h!==a||Be.current||Vn?(typeof c=="function"&&(au(n,t,c,r),a=n.memoizedState),(u=Vn||As(n,t,u,r,h,a,s))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(n.flags|=4194308)):(typeof o.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=a),o.props=r,o.state=a,o.context=s,r=u):(typeof o.componentDidMount=="function"&&(n.flags|=4194308),r=!1)}else{o=n.stateNode,fp(e,n),u=n.memoizedProps,s=n.type===n.elementType?u:cn(n.type,u),o.props=s,f=n.pendingProps,h=o.context,a=t.contextType,typeof a=="object"&&a!==null?a=nn(a):(a=je(t)?kt:Oe.current,a=Jt(n,a));var p=t.getDerivedStateFromProps;(c=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(u!==f||h!==a)&&Ds(n,o,r,a),Vn=!1,h=n.memoizedState,o.state=h,li(n,r,o,l);var w=n.memoizedState;u!==f||h!==w||Be.current||Vn?(typeof p=="function"&&(au(n,t,p,r),w=n.memoizedState),(s=Vn||As(n,t,s,r,h,w,a)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,w,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,w,a)),typeof o.componentDidUpdate=="function"&&(n.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof o.componentDidUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(n.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=w),o.props=r,o.state=w,o.context=a,r=s):(typeof o.componentDidUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(n.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(n.flags|=1024),r=!1)}return pu(e,n,t,r,i,l)}function pu(e,n,t,r,l,i){Up(e,n);var o=(n.flags&128)!==0;if(!r&&!o)return l&&Os(n,t,!1),An(e,n,i);r=n.stateNode,pg.current=n;var u=o&&typeof t.getDerivedStateFromError!="function"?null:r.render();return n.flags|=1,e!==null&&o?(n.child=nr(n,e.child,null,i),n.child=nr(n,null,u,i)):Fe(e,n,u,i),n.memoizedState=r.state,l&&Os(n,t,!0),n.child}function $p(e){var n=e.stateNode;n.pendingContext?_s(e,n.pendingContext,n.pendingContext!==n.context):n.context&&_s(e,n.context,!1),fa(e,n.containerInfo)}function Ks(e,n,t,r,l){return er(),ia(l),n.flags|=256,Fe(e,n,t,r),n.child}var du={dehydrated:null,treeContext:null,retryLane:0};function hu(e){return{baseLanes:e,cachePool:null,transitions:null}}function Hp(e,n,t){var r=n.pendingProps,l=ae.current,i=!1,o=(n.flags&128)!==0,u;if((u=o)||(u=e!==null&&e.memoizedState===null?!1:(l&2)!==0),u?(i=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),ne(ae,l&1),e===null)return ou(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(n.mode&1?e.data==="$!"?n.lanes=8:n.lanes=1073741824:n.lanes=1,null):(o=r.children,e=r.fallback,i?(r=n.mode,i=n.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Li(o,r,0,null),e=vt(e,r,t,null),i.return=n,e.return=n,i.sibling=e,n.child=i,n.child.memoizedState=hu(t),n.memoizedState=du,e):ka(n,o));if(l=e.memoizedState,l!==null&&(u=l.dehydrated,u!==null))return dg(e,n,o,r,u,l,t);if(i){i=r.fallback,o=n.mode,l=e.child,u=l.sibling;var a={mode:"hidden",children:r.children};return!(o&1)&&n.child!==l?(r=n.child,r.childLanes=0,r.pendingProps=a,n.deletions=null):(r=tt(l,a),r.subtreeFlags=l.subtreeFlags&14680064),u!==null?i=tt(u,i):(i=vt(i,o,t,null),i.flags|=2),i.return=n,r.return=n,r.sibling=i,n.child=r,r=i,i=n.child,o=e.child.memoizedState,o=o===null?hu(t):{baseLanes:o.baseLanes|t,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~t,n.memoizedState=du,r}return i=e.child,e=i.sibling,r=tt(i,{mode:"visible",children:r.children}),!(n.mode&1)&&(r.lanes=t),r.return=n,r.sibling=null,e!==null&&(t=n.deletions,t===null?(n.deletions=[e],n.flags|=16):t.push(e)),n.child=r,n.memoizedState=null,r}function ka(e,n){return n=Li({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function El(e,n,t,r){return r!==null&&ia(r),nr(n,e.child,null,t),e=ka(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function dg(e,n,t,r,l,i,o){if(t)return n.flags&256?(n.flags&=-257,r=yo(Error(L(422))),El(e,n,o,r)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(i=r.fallback,l=n.mode,r=Li({mode:"visible",children:r.children},l,0,null),i=vt(i,l,o,null),i.flags|=2,r.return=n,i.return=n,r.sibling=i,n.child=r,n.mode&1&&nr(n,e.child,null,o),n.child.memoizedState=hu(o),n.memoizedState=du,i);if(!(n.mode&1))return El(e,n,o,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var u=r.dgst;return r=u,i=Error(L(419)),r=yo(i,r,void 0),El(e,n,o,r)}if(u=(o&e.childLanes)!==0,Me||u){if(r=Ee,r!==null){switch(o&-o){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|o)?0:l,l!==0&&l!==i.retryLane&&(i.retryLane=l,Rn(e,l),hn(r,e,l,-1))}return Pa(),r=yo(Error(L(421))),El(e,n,o,r)}return l.data==="$?"?(n.flags|=128,n.child=e.child,n=Tg.bind(null,e),l._reactRetry=n,null):(e=i.treeContext,We=Zn(l.nextSibling),Ke=n,ue=!0,pn=null,e!==null&&(be[Ge++]=_n,be[Ge++]=On,be[Ge++]=xt,_n=e.id,On=e.overflow,xt=n),n=ka(n,r.children),n.flags|=4096,n)}function Xs(e,n,t){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n),uu(e.return,n,t)}function vo(e,n,t,r,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(i.isBackwards=n,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=t,i.tailMode=l)}function Vp(e,n,t){var r=n.pendingProps,l=r.revealOrder,i=r.tail;if(Fe(e,n,r.children,t),r=ae.current,r&2)r=r&1|2,n.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Xs(e,t,n);else if(e.tag===19)Xs(e,t,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ne(ae,r),!(n.mode&1))n.memoizedState=null;else switch(l){case"forwards":for(t=n.child,l=null;t!==null;)e=t.alternate,e!==null&&ii(e)===null&&(l=t),t=t.sibling;t=l,t===null?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),vo(n,!1,l,t,i);break;case"backwards":for(t=null,l=n.child,n.child=null;l!==null;){if(e=l.alternate,e!==null&&ii(e)===null){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}vo(n,!0,t,null,i);break;case"together":vo(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Ml(e,n){!(n.mode&1)&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function An(e,n,t){if(e!==null&&(n.dependencies=e.dependencies),St|=n.lanes,!(t&n.childLanes))return null;if(e!==null&&n.child!==e.child)throw Error(L(153));if(n.child!==null){for(e=n.child,t=tt(e,e.pendingProps),n.child=t,t.return=n;e.sibling!==null;)e=e.sibling,t=t.sibling=tt(e,e.pendingProps),t.return=n;t.sibling=null}return n.child}function hg(e,n,t){switch(n.tag){case 3:$p(n),er();break;case 5:gp(n);break;case 1:je(n.type)&&Jl(n);break;case 4:fa(n,n.stateNode.containerInfo);break;case 10:var r=n.type._context,l=n.memoizedProps.value;ne(ti,r._currentValue),r._currentValue=l;break;case 13:if(r=n.memoizedState,r!==null)return r.dehydrated!==null?(ne(ae,ae.current&1),n.flags|=128,null):t&n.child.childLanes?Hp(e,n,t):(ne(ae,ae.current&1),e=An(e,n,t),e!==null?e.sibling:null);ne(ae,ae.current&1);break;case 19:if(r=(t&n.childLanes)!==0,e.flags&128){if(r)return Vp(e,n,t);n.flags|=128}if(l=n.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),ne(ae,ae.current),r)break;return null;case 22:case 23:return n.lanes=0,jp(e,n,t)}return An(e,n,t)}var Wp,mu,Qp,Kp;Wp=function(e,n){for(var t=n.child;t!==null;){if(t.tag===5||t.tag===6)e.appendChild(t.stateNode);else if(t.tag!==4&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break;for(;t.sibling===null;){if(t.return===null||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}};mu=function(){};Qp=function(e,n,t,r){var l=e.memoizedProps;if(l!==r){e=n.stateNode,mt(En.current);var i=null;switch(t){case"input":l=Mo(e,l),r=Mo(e,r),i=[];break;case"select":l=ce({},l,{value:void 0}),r=ce({},r,{value:void 0}),i=[];break;case"textarea":l=Uo(e,l),r=Uo(e,r),i=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Gl)}Ho(t,r);var o;t=null;for(s in l)if(!r.hasOwnProperty(s)&&l.hasOwnProperty(s)&&l[s]!=null)if(s==="style"){var u=l[s];for(o in u)u.hasOwnProperty(o)&&(t||(t={}),t[o]="")}else s!=="dangerouslySetInnerHTML"&&s!=="children"&&s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Mr.hasOwnProperty(s)?i||(i=[]):(i=i||[]).push(s,null));for(s in r){var a=r[s];if(u=l!=null?l[s]:void 0,r.hasOwnProperty(s)&&a!==u&&(a!=null||u!=null))if(s==="style")if(u){for(o in u)!u.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(t||(t={}),t[o]="");for(o in a)a.hasOwnProperty(o)&&u[o]!==a[o]&&(t||(t={}),t[o]=a[o])}else t||(i||(i=[]),i.push(s,t)),t=a;else s==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,u=u?u.__html:void 0,a!=null&&u!==a&&(i=i||[]).push(s,a)):s==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(s,""+a):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&(Mr.hasOwnProperty(s)?(a!=null&&s==="onScroll"&&le("scroll",e),i||u===a||(i=[])):(i=i||[]).push(s,a))}t&&(i=i||[]).push("style",t);var s=i;(n.updateQueue=s)&&(n.flags|=4)}};Kp=function(e,n,t,r){t!==r&&(n.flags|=4)};function kr(e,n){if(!ue)switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;n!==null;)n.alternate!==null&&(t=n),n=n.sibling;t===null?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ze(e){var n=e.alternate!==null&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;l!==null;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function mg(e,n,t){var r=n.pendingProps;switch(la(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ze(n),null;case 1:return je(n.type)&&Zl(),ze(n),null;case 3:return r=n.stateNode,tr(),ie(Be),ie(Oe),da(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(wl(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&!(n.flags&256)||(n.flags|=1024,pn!==null&&(Eu(pn),pn=null))),mu(e,n),ze(n),null;case 5:pa(n);var l=mt(qr.current);if(t=n.type,e!==null&&n.stateNode!=null)Qp(e,n,t,r,l),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!r){if(n.stateNode===null)throw Error(L(166));return ze(n),null}if(e=mt(En.current),wl(n)){r=n.stateNode,t=n.type;var i=n.memoizedProps;switch(r[xn]=n,r[Xr]=i,e=(n.mode&1)!==0,t){case"dialog":le("cancel",r),le("close",r);break;case"iframe":case"object":case"embed":le("load",r);break;case"video":case"audio":for(l=0;l<Pr.length;l++)le(Pr[l],r);break;case"source":le("error",r);break;case"img":case"image":case"link":le("error",r),le("load",r);break;case"details":le("toggle",r);break;case"input":ts(r,i),le("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},le("invalid",r);break;case"textarea":ls(r,i),le("invalid",r)}Ho(t,i),l=null;for(var o in i)if(i.hasOwnProperty(o)){var u=i[o];o==="children"?typeof u=="string"?r.textContent!==u&&(i.suppressHydrationWarning!==!0&&xl(r.textContent,u,e),l=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(i.suppressHydrationWarning!==!0&&xl(r.textContent,u,e),l=["children",""+u]):Mr.hasOwnProperty(o)&&u!=null&&o==="onScroll"&&le("scroll",r)}switch(t){case"input":pl(r),rs(r,i,!0);break;case"textarea":pl(r),is(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Gl)}r=l,n.updateQueue=r,r!==null&&(n.flags|=4)}else{o=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=kf(t)),e==="http://www.w3.org/1999/xhtml"?t==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(t,{is:r.is}):(e=o.createElement(t),t==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,t),e[xn]=n,e[Xr]=r,Wp(e,n,!1,!1),n.stateNode=e;e:{switch(o=Vo(t,r),t){case"dialog":le("cancel",e),le("close",e),l=r;break;case"iframe":case"object":case"embed":le("load",e),l=r;break;case"video":case"audio":for(l=0;l<Pr.length;l++)le(Pr[l],e);l=r;break;case"source":le("error",e),l=r;break;case"img":case"image":case"link":le("error",e),le("load",e),l=r;break;case"details":le("toggle",e),l=r;break;case"input":ts(e,r),l=Mo(e,r),le("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=ce({},r,{value:void 0}),le("invalid",e);break;case"textarea":ls(e,r),l=Uo(e,r),le("invalid",e);break;default:l=r}Ho(t,l),u=l;for(i in u)if(u.hasOwnProperty(i)){var a=u[i];i==="style"?Sf(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&xf(e,a)):i==="children"?typeof a=="string"?(t!=="textarea"||a!=="")&&Br(e,a):typeof a=="number"&&Br(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Mr.hasOwnProperty(i)?a!=null&&i==="onScroll"&&le("scroll",e):a!=null&&Vu(e,i,a,o))}switch(t){case"input":pl(e),rs(e,r,!1);break;case"textarea":pl(e),is(e);break;case"option":r.value!=null&&e.setAttribute("value",""+lt(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Wt(e,!!r.multiple,i,!1):r.defaultValue!=null&&Wt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=Gl)}switch(t){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return ze(n),null;case 6:if(e&&n.stateNode!=null)Kp(e,n,e.memoizedProps,r);else{if(typeof r!="string"&&n.stateNode===null)throw Error(L(166));if(t=mt(qr.current),mt(En.current),wl(n)){if(r=n.stateNode,t=n.memoizedProps,r[xn]=n,(i=r.nodeValue!==t)&&(e=Ke,e!==null))switch(e.tag){case 3:xl(r.nodeValue,t,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&xl(r.nodeValue,t,(e.mode&1)!==0)}i&&(n.flags|=4)}else r=(t.nodeType===9?t:t.ownerDocument).createTextNode(r),r[xn]=n,n.stateNode=r}return ze(n),null;case 13:if(ie(ae),r=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ue&&We!==null&&n.mode&1&&!(n.flags&128))sp(),er(),n.flags|=98560,i=!1;else if(i=wl(n),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(L(318));if(i=n.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(L(317));i[xn]=n}else er(),!(n.flags&128)&&(n.memoizedState=null),n.flags|=4;ze(n),i=!1}else pn!==null&&(Eu(pn),pn=null),i=!0;if(!i)return n.flags&65536?n:null}return n.flags&128?(n.lanes=t,n):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(n.child.flags|=8192,n.mode&1&&(e===null||ae.current&1?we===0&&(we=3):Pa())),n.updateQueue!==null&&(n.flags|=4),ze(n),null);case 4:return tr(),mu(e,n),e===null&&Qr(n.stateNode.containerInfo),ze(n),null;case 10:return aa(n.type._context),ze(n),null;case 17:return je(n.type)&&Zl(),ze(n),null;case 19:if(ie(ae),i=n.memoizedState,i===null)return ze(n),null;if(r=(n.flags&128)!==0,o=i.rendering,o===null)if(r)kr(i,!1);else{if(we!==0||e!==null&&e.flags&128)for(e=n.child;e!==null;){if(o=ii(e),o!==null){for(n.flags|=128,kr(i,!1),r=o.updateQueue,r!==null&&(n.updateQueue=r,n.flags|=4),n.subtreeFlags=0,r=t,t=n.child;t!==null;)i=t,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t=t.sibling;return ne(ae,ae.current&1|2),n.child}e=e.sibling}i.tail!==null&&he()>lr&&(n.flags|=128,r=!0,kr(i,!1),n.lanes=4194304)}else{if(!r)if(e=ii(o),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),kr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!ue)return ze(n),null}else 2*he()-i.renderingStartTime>lr&&t!==1073741824&&(n.flags|=128,r=!0,kr(i,!1),n.lanes=4194304);i.isBackwards?(o.sibling=n.child,n.child=o):(t=i.last,t!==null?t.sibling=o:n.child=o,i.last=o)}return i.tail!==null?(n=i.tail,i.rendering=n,i.tail=n.sibling,i.renderingStartTime=he(),n.sibling=null,t=ae.current,ne(ae,r?t&1|2:t&1),n):(ze(n),null);case 22:case 23:return Ca(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?Ve&1073741824&&(ze(n),n.subtreeFlags&6&&(n.flags|=8192)):ze(n),null;case 24:return null;case 25:return null}throw Error(L(156,n.tag))}function gg(e,n){switch(la(n),n.tag){case 1:return je(n.type)&&Zl(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return tr(),ie(Be),ie(Oe),da(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return pa(n),null;case 13:if(ie(ae),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(L(340));er()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return ie(ae),null;case 4:return tr(),null;case 10:return aa(n.type._context),null;case 22:case 23:return Ca(),null;case 24:return null;default:return null}}var Cl=!1,_e=!1,yg=typeof WeakSet=="function"?WeakSet:Set,R=null;function Ht(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){fe(e,n,r)}else t.current=null}function gu(e,n,t){try{t()}catch(r){fe(e,n,r)}}var Ys=!1;function vg(e,n){if(Jo=Yl,e=bf(),ta(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break e}var o=0,u=-1,a=-1,s=0,c=0,f=e,h=null;n:for(;;){for(var p;f!==t||l!==0&&f.nodeType!==3||(u=o+l),f!==i||r!==0&&f.nodeType!==3||(a=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(p=f.firstChild)!==null;)h=f,f=p;for(;;){if(f===e)break n;if(h===t&&++s===l&&(u=o),h===i&&++c===r&&(a=o),(p=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=p}t=u===-1||a===-1?null:{start:u,end:a}}else t=null}t=t||{start:0,end:0}}else t=null;for(eu={focusedElem:e,selectionRange:t},Yl=!1,R=n;R!==null;)if(n=R,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,R=e;else for(;R!==null;){n=R;try{var w=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var v=w.memoizedProps,C=w.memoizedState,d=n.stateNode,m=d.getSnapshotBeforeUpdate(n.elementType===n.type?v:cn(n.type,v),C);d.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=n.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(S){fe(n,n.return,S)}if(e=n.sibling,e!==null){e.return=n.return,R=e;break}R=n.return}return w=Ys,Ys=!1,w}function Ir(e,n,t){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&gu(n,t,i)}l=l.next}while(l!==r)}}function Pi(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function yu(e){var n=e.ref;if(n!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof n=="function"?n(e):n.current=e}}function Xp(e){var n=e.alternate;n!==null&&(e.alternate=null,Xp(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[xn],delete n[Xr],delete n[ru],delete n[eg],delete n[ng])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Yp(e){return e.tag===5||e.tag===3||e.tag===4}function qs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Yp(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.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 vu(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.nodeType===8?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(t.nodeType===8?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,t!=null||n.onclick!==null||(n.onclick=Gl));else if(r!==4&&(e=e.child,e!==null))for(vu(e,n,t),e=e.sibling;e!==null;)vu(e,n,t),e=e.sibling}function ku(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ku(e,n,t),e=e.sibling;e!==null;)ku(e,n,t),e=e.sibling}var Ce=null,fn=!1;function Un(e,n,t){for(t=t.child;t!==null;)qp(e,n,t),t=t.sibling}function qp(e,n,t){if(Sn&&typeof Sn.onCommitFiberUnmount=="function")try{Sn.onCommitFiberUnmount(yi,t)}catch{}switch(t.tag){case 5:_e||Ht(t,n);case 6:var r=Ce,l=fn;Ce=null,Un(e,n,t),Ce=r,fn=l,Ce!==null&&(fn?(e=Ce,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):Ce.removeChild(t.stateNode));break;case 18:Ce!==null&&(fn?(e=Ce,t=t.stateNode,e.nodeType===8?co(e.parentNode,t):e.nodeType===1&&co(e,t),Hr(e)):co(Ce,t.stateNode));break;case 4:r=Ce,l=fn,Ce=t.stateNode.containerInfo,fn=!0,Un(e,n,t),Ce=r,fn=l;break;case 0:case 11:case 14:case 15:if(!_e&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&gu(t,n,o),l=l.next}while(l!==r)}Un(e,n,t);break;case 1:if(!_e&&(Ht(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(u){fe(t,n,u)}Un(e,n,t);break;case 21:Un(e,n,t);break;case 22:t.mode&1?(_e=(r=_e)||t.memoizedState!==null,Un(e,n,t),_e=r):Un(e,n,t);break;default:Un(e,n,t)}}function bs(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new yg),n.forEach(function(r){var l=Lg.bind(null,e,r);t.has(r)||(t.add(r),r.then(l,l))})}}function sn(e,n){var t=n.deletions;if(t!==null)for(var r=0;r<t.length;r++){var l=t[r];try{var i=e,o=n,u=o;e:for(;u!==null;){switch(u.tag){case 5:Ce=u.stateNode,fn=!1;break e;case 3:Ce=u.stateNode.containerInfo,fn=!0;break e;case 4:Ce=u.stateNode.containerInfo,fn=!0;break e}u=u.return}if(Ce===null)throw Error(L(160));qp(i,o,l),Ce=null,fn=!1;var a=l.alternate;a!==null&&(a.return=null),l.return=null}catch(s){fe(l,n,s)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)bp(n,e),n=n.sibling}function bp(e,n){var t=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(sn(n,e),yn(e),r&4){try{Ir(3,e,e.return),Pi(3,e)}catch(v){fe(e,e.return,v)}try{Ir(5,e,e.return)}catch(v){fe(e,e.return,v)}}break;case 1:sn(n,e),yn(e),r&512&&t!==null&&Ht(t,t.return);break;case 5:if(sn(n,e),yn(e),r&512&&t!==null&&Ht(t,t.return),e.flags&32){var l=e.stateNode;try{Br(l,"")}catch(v){fe(e,e.return,v)}}if(r&4&&(l=e.stateNode,l!=null)){var i=e.memoizedProps,o=t!==null?t.memoizedProps:i,u=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{u==="input"&&i.type==="radio"&&i.name!=null&&yf(l,i),Vo(u,o);var s=Vo(u,i);for(o=0;o<a.length;o+=2){var c=a[o],f=a[o+1];c==="style"?Sf(l,f):c==="dangerouslySetInnerHTML"?xf(l,f):c==="children"?Br(l,f):Vu(l,c,f,s)}switch(u){case"input":Bo(l,i);break;case"textarea":vf(l,i);break;case"select":var h=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?Wt(l,!!i.multiple,p,!1):h!==!!i.multiple&&(i.defaultValue!=null?Wt(l,!!i.multiple,i.defaultValue,!0):Wt(l,!!i.multiple,i.multiple?[]:"",!1))}l[Xr]=i}catch(v){fe(e,e.return,v)}}break;case 6:if(sn(n,e),yn(e),r&4){if(e.stateNode===null)throw Error(L(162));l=e.stateNode,i=e.memoizedProps;try{l.nodeValue=i}catch(v){fe(e,e.return,v)}}break;case 3:if(sn(n,e),yn(e),r&4&&t!==null&&t.memoizedState.isDehydrated)try{Hr(n.containerInfo)}catch(v){fe(e,e.return,v)}break;case 4:sn(n,e),yn(e);break;case 13:sn(n,e),yn(e),l=e.child,l.flags&8192&&(i=l.memoizedState!==null,l.stateNode.isHidden=i,!i||l.alternate!==null&&l.alternate.memoizedState!==null||(Sa=he())),r&4&&bs(e);break;case 22:if(c=t!==null&&t.memoizedState!==null,e.mode&1?(_e=(s=_e)||c,sn(n,e),_e=s):sn(n,e),yn(e),r&8192){if(s=e.memoizedState!==null,(e.stateNode.isHidden=s)&&!c&&e.mode&1)for(R=e,c=e.child;c!==null;){for(f=R=c;R!==null;){switch(h=R,p=h.child,h.tag){case 0:case 11:case 14:case 15:Ir(4,h,h.return);break;case 1:Ht(h,h.return);var w=h.stateNode;if(typeof w.componentWillUnmount=="function"){r=h,t=h.return;try{n=r,w.props=n.memoizedProps,w.state=n.memoizedState,w.componentWillUnmount()}catch(v){fe(r,t,v)}}break;case 5:Ht(h,h.return);break;case 22:if(h.memoizedState!==null){Zs(f);continue}}p!==null?(p.return=h,R=p):Zs(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{l=f.stateNode,s?(i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(u=f.stateNode,a=f.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,u.style.display=wf("display",o))}catch(v){fe(e,e.return,v)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=s?"":f.memoizedProps}catch(v){fe(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:sn(n,e),yn(e),r&4&&bs(e);break;case 21:break;default:sn(n,e),yn(e)}}function yn(e){var n=e.flags;if(n&2){try{e:{for(var t=e.return;t!==null;){if(Yp(t)){var r=t;break e}t=t.return}throw Error(L(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(Br(l,""),r.flags&=-33);var i=qs(e);ku(e,i,l);break;case 3:case 4:var o=r.stateNode.containerInfo,u=qs(e);vu(e,u,o);break;default:throw Error(L(161))}}catch(a){fe(e,e.return,a)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function kg(e,n,t){R=e,Gp(e)}function Gp(e,n,t){for(var r=(e.mode&1)!==0;R!==null;){var l=R,i=l.child;if(l.tag===22&&r){var o=l.memoizedState!==null||Cl;if(!o){var u=l.alternate,a=u!==null&&u.memoizedState!==null||_e;u=Cl;var s=_e;if(Cl=o,(_e=a)&&!s)for(R=l;R!==null;)o=R,a=o.child,o.tag===22&&o.memoizedState!==null?Js(l):a!==null?(a.return=o,R=a):Js(l);for(;i!==null;)R=i,Gp(i),i=i.sibling;R=l,Cl=u,_e=s}Gs(e)}else l.subtreeFlags&8772&&i!==null?(i.return=l,R=i):Gs(e)}}function Gs(e){for(;R!==null;){var n=R;if(n.flags&8772){var t=n.alternate;try{if(n.flags&8772)switch(n.tag){case 0:case 11:case 15:_e||Pi(5,n);break;case 1:var r=n.stateNode;if(n.flags&4&&!_e)if(t===null)r.componentDidMount();else{var l=n.elementType===n.type?t.memoizedProps:cn(n.type,t.memoizedProps);r.componentDidUpdate(l,t.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=n.updateQueue;i!==null&&Rs(n,i,r);break;case 3:var o=n.updateQueue;if(o!==null){if(t=null,n.child!==null)switch(n.child.tag){case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}Rs(n,o,t)}break;case 5:var u=n.stateNode;if(t===null&&n.flags&4){t=u;var a=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&t.focus();break;case"img":a.src&&(t.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var s=n.alternate;if(s!==null){var c=s.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&Hr(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(L(163))}_e||n.flags&512&&yu(n)}catch(h){fe(n,n.return,h)}}if(n===e){R=null;break}if(t=n.sibling,t!==null){t.return=n.return,R=t;break}R=n.return}}function Zs(e){for(;R!==null;){var n=R;if(n===e){R=null;break}var t=n.sibling;if(t!==null){t.return=n.return,R=t;break}R=n.return}}function Js(e){for(;R!==null;){var n=R;try{switch(n.tag){case 0:case 11:case 15:var t=n.return;try{Pi(4,n)}catch(a){fe(n,t,a)}break;case 1:var r=n.stateNode;if(typeof r.componentDidMount=="function"){var l=n.return;try{r.componentDidMount()}catch(a){fe(n,l,a)}}var i=n.return;try{yu(n)}catch(a){fe(n,i,a)}break;case 5:var o=n.return;try{yu(n)}catch(a){fe(n,o,a)}}}catch(a){fe(n,n.return,a)}if(n===e){R=null;break}var u=n.sibling;if(u!==null){u.return=n.return,R=u;break}R=n.return}}var xg=Math.ceil,ai=Dn.ReactCurrentDispatcher,xa=Dn.ReactCurrentOwner,en=Dn.ReactCurrentBatchConfig,K=0,Ee=null,ye=null,Pe=0,Ve=0,Vt=ut(0),we=0,Jr=null,St=0,Ti=0,wa=0,Nr=null,De=null,Sa=0,lr=1/0,Ln=null,si=!1,xu=null,et=null,Pl=!1,Xn=null,ci=0,Rr=0,wu=null,Bl=-1,jl=0;function Ie(){return K&6?he():Bl!==-1?Bl:Bl=he()}function nt(e){return e.mode&1?K&2&&Pe!==0?Pe&-Pe:rg.transition!==null?(jl===0&&(jl=Rf()),jl):(e=q,e!==0||(e=window.event,e=e===void 0?16:$f(e.type)),e):1}function hn(e,n,t,r){if(50<Rr)throw Rr=0,wu=null,Error(L(185));tl(e,t,r),(!(K&2)||e!==Ee)&&(e===Ee&&(!(K&2)&&(Ti|=t),we===4&&Qn(e,Pe)),Ue(e,r),t===1&&K===0&&!(n.mode&1)&&(lr=he()+500,Si&&at()))}function Ue(e,n){var t=e.callbackNode;rm(e,n);var r=Xl(e,e===Ee?Pe:0);if(r===0)t!==null&&as(t),e.callbackNode=null,e.callbackPriority=0;else if(n=r&-r,e.callbackPriority!==n){if(t!=null&&as(t),n===1)e.tag===0?tg(ec.bind(null,e)):op(ec.bind(null,e)),Zm(function(){!(K&6)&&at()}),t=null;else{switch(Af(r)){case 1:t=Yu;break;case 4:t=If;break;case 16:t=Kl;break;case 536870912:t=Nf;break;default:t=Kl}t=id(t,Zp.bind(null,e))}e.callbackPriority=n,e.callbackNode=t}}function Zp(e,n){if(Bl=-1,jl=0,K&6)throw Error(L(327));var t=e.callbackNode;if(qt()&&e.callbackNode!==t)return null;var r=Xl(e,e===Ee?Pe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||n)n=fi(e,r);else{n=r;var l=K;K|=2;var i=ed();(Ee!==e||Pe!==n)&&(Ln=null,lr=he()+500,yt(e,n));do try{Eg();break}catch(u){Jp(e,u)}while(1);ua(),ai.current=i,K=l,ye!==null?n=0:(Ee=null,Pe=0,n=we)}if(n!==0){if(n===2&&(l=Yo(e),l!==0&&(r=l,n=Su(e,l))),n===1)throw t=Jr,yt(e,0),Qn(e,r),Ue(e,he()),t;if(n===6)Qn(e,r);else{if(l=e.current.alternate,!(r&30)&&!wg(l)&&(n=fi(e,r),n===2&&(i=Yo(e),i!==0&&(r=i,n=Su(e,i))),n===1))throw t=Jr,yt(e,0),Qn(e,r),Ue(e,he()),t;switch(e.finishedWork=l,e.finishedLanes=r,n){case 0:case 1:throw Error(L(345));case 2:ft(e,De,Ln);break;case 3:if(Qn(e,r),(r&130023424)===r&&(n=Sa+500-he(),10<n)){if(Xl(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){Ie(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=tu(ft.bind(null,e,De,Ln),n);break}ft(e,De,Ln);break;case 4:if(Qn(e,r),(r&4194240)===r)break;for(n=e.eventTimes,l=-1;0<r;){var o=31-dn(r);i=1<<o,o=n[o],o>l&&(l=o),r&=~i}if(r=l,r=he()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xg(r/1960))-r,10<r){e.timeoutHandle=tu(ft.bind(null,e,De,Ln),r);break}ft(e,De,Ln);break;case 5:ft(e,De,Ln);break;default:throw Error(L(329))}}}return Ue(e,he()),e.callbackNode===t?Zp.bind(null,e):null}function Su(e,n){var t=Nr;return e.current.memoizedState.isDehydrated&&(yt(e,n).flags|=256),e=fi(e,n),e!==2&&(n=De,De=t,n!==null&&Eu(n)),e}function Eu(e){De===null?De=e:De.push.apply(De,e)}function wg(e){for(var n=e;;){if(n.flags&16384){var t=n.updateQueue;if(t!==null&&(t=t.stores,t!==null))for(var r=0;r<t.length;r++){var l=t[r],i=l.getSnapshot;l=l.value;try{if(!mn(i(),l))return!1}catch{return!1}}}if(t=n.child,n.subtreeFlags&16384&&t!==null)t.return=n,n=t;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Qn(e,n){for(n&=~wa,n&=~Ti,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var t=31-dn(n),r=1<<t;e[t]=-1,n&=~r}}function ec(e){if(K&6)throw Error(L(327));qt();var n=Xl(e,0);if(!(n&1))return Ue(e,he()),null;var t=fi(e,n);if(e.tag!==0&&t===2){var r=Yo(e);r!==0&&(n=r,t=Su(e,r))}if(t===1)throw t=Jr,yt(e,0),Qn(e,n),Ue(e,he()),t;if(t===6)throw Error(L(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,ft(e,De,Ln),Ue(e,he()),null}function Ea(e,n){var t=K;K|=1;try{return e(n)}finally{K=t,K===0&&(lr=he()+500,Si&&at())}}function Et(e){Xn!==null&&Xn.tag===0&&!(K&6)&&qt();var n=K;K|=1;var t=en.transition,r=q;try{if(en.transition=null,q=1,e)return e()}finally{q=r,en.transition=t,K=n,!(K&6)&&at()}}function Ca(){Ve=Vt.current,ie(Vt)}function yt(e,n){e.finishedWork=null,e.finishedLanes=0;var t=e.timeoutHandle;if(t!==-1&&(e.timeoutHandle=-1,Gm(t)),ye!==null)for(t=ye.return;t!==null;){var r=t;switch(la(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Zl();break;case 3:tr(),ie(Be),ie(Oe),da();break;case 5:pa(r);break;case 4:tr();break;case 13:ie(ae);break;case 19:ie(ae);break;case 10:aa(r.type._context);break;case 22:case 23:Ca()}t=t.return}if(Ee=e,ye=e=tt(e.current,null),Pe=Ve=n,we=0,Jr=null,wa=Ti=St=0,De=Nr=null,ht!==null){for(n=0;n<ht.length;n++)if(t=ht[n],r=t.interleaved,r!==null){t.interleaved=null;var l=r.next,i=t.pending;if(i!==null){var o=i.next;i.next=l,r.next=o}t.pending=r}ht=null}return e}function Jp(e,n){do{var t=ye;try{if(ua(),Al.current=ui,oi){for(var r=se.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}oi=!1}if(wt=0,Se=xe=se=null,Fr=!1,br=0,xa.current=null,t===null||t.return===null){we=1,Jr=n,ye=null;break}e:{var i=e,o=t.return,u=t,a=n;if(n=Pe,u.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var s=a,c=u,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=$s(o);if(p!==null){p.flags&=-257,Hs(p,o,u,i,n),p.mode&1&&Us(i,s,n),n=p,a=s;var w=n.updateQueue;if(w===null){var v=new Set;v.add(a),n.updateQueue=v}else w.add(a);break e}else{if(!(n&1)){Us(i,s,n),Pa();break e}a=Error(L(426))}}else if(ue&&u.mode&1){var C=$s(o);if(C!==null){!(C.flags&65536)&&(C.flags|=256),Hs(C,o,u,i,n),ia(rr(a,u));break e}}i=a=rr(a,u),we!==4&&(we=2),Nr===null?Nr=[i]:Nr.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,n&=-n,i.lanes|=n;var d=Dp(i,a,n);Ns(i,d);break e;case 1:u=a;var m=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof m.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(et===null||!et.has(y)))){i.flags|=65536,n&=-n,i.lanes|=n;var S=Mp(i,u,n);Ns(i,S);break e}}i=i.return}while(i!==null)}td(t)}catch(T){n=T,ye===t&&t!==null&&(ye=t=t.return);continue}break}while(1)}function ed(){var e=ai.current;return ai.current=ui,e===null?ui:e}function Pa(){(we===0||we===3||we===2)&&(we=4),Ee===null||!(St&268435455)&&!(Ti&268435455)||Qn(Ee,Pe)}function fi(e,n){var t=K;K|=2;var r=ed();(Ee!==e||Pe!==n)&&(Ln=null,yt(e,n));do try{Sg();break}catch(l){Jp(e,l)}while(1);if(ua(),K=t,ai.current=r,ye!==null)throw Error(L(261));return Ee=null,Pe=0,we}function Sg(){for(;ye!==null;)nd(ye)}function Eg(){for(;ye!==null&&!Yh();)nd(ye)}function nd(e){var n=ld(e.alternate,e,Ve);e.memoizedProps=e.pendingProps,n===null?td(e):ye=n,xa.current=null}function td(e){var n=e;do{var t=n.alternate;if(e=n.return,n.flags&32768){if(t=gg(t,n),t!==null){t.flags&=32767,ye=t;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{we=6,ye=null;return}}else if(t=mg(t,n,Ve),t!==null){ye=t;return}if(n=n.sibling,n!==null){ye=n;return}ye=n=e}while(n!==null);we===0&&(we=5)}function ft(e,n,t){var r=q,l=en.transition;try{en.transition=null,q=1,Cg(e,n,t,r)}finally{en.transition=l,q=r}return null}function Cg(e,n,t,r){do qt();while(Xn!==null);if(K&6)throw Error(L(327));t=e.finishedWork;var l=e.finishedLanes;if(t===null)return null;if(e.finishedWork=null,e.finishedLanes=0,t===e.current)throw Error(L(177));e.callbackNode=null,e.callbackPriority=0;var i=t.lanes|t.childLanes;if(lm(e,i),e===Ee&&(ye=Ee=null,Pe=0),!(t.subtreeFlags&2064)&&!(t.flags&2064)||Pl||(Pl=!0,id(Kl,function(){return qt(),null})),i=(t.flags&15990)!==0,t.subtreeFlags&15990||i){i=en.transition,en.transition=null;var o=q;q=1;var u=K;K|=4,xa.current=null,vg(e,t),bp(t,e),Wm(eu),Yl=!!Jo,eu=Jo=null,e.current=t,kg(t),qh(),K=u,q=o,en.transition=i}else e.current=t;if(Pl&&(Pl=!1,Xn=e,ci=l),i=e.pendingLanes,i===0&&(et=null),Zh(t.stateNode),Ue(e,he()),n!==null)for(r=e.onRecoverableError,t=0;t<n.length;t++)l=n[t],r(l.value,{componentStack:l.stack,digest:l.digest});if(si)throw si=!1,e=xu,xu=null,e;return ci&1&&e.tag!==0&&qt(),i=e.pendingLanes,i&1?e===wu?Rr++:(Rr=0,wu=e):Rr=0,at(),null}function qt(){if(Xn!==null){var e=Af(ci),n=en.transition,t=q;try{if(en.transition=null,q=16>e?16:e,Xn===null)var r=!1;else{if(e=Xn,Xn=null,ci=0,K&6)throw Error(L(331));var l=K;for(K|=4,R=e.current;R!==null;){var i=R,o=i.child;if(R.flags&16){var u=i.deletions;if(u!==null){for(var a=0;a<u.length;a++){var s=u[a];for(R=s;R!==null;){var c=R;switch(c.tag){case 0:case 11:case 15:Ir(8,c,i)}var f=c.child;if(f!==null)f.return=c,R=f;else for(;R!==null;){c=R;var h=c.sibling,p=c.return;if(Xp(c),c===s){R=null;break}if(h!==null){h.return=p,R=h;break}R=p}}}var w=i.alternate;if(w!==null){var v=w.child;if(v!==null){w.child=null;do{var C=v.sibling;v.sibling=null,v=C}while(v!==null)}}R=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,R=o;else e:for(;R!==null;){if(i=R,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Ir(9,i,i.return)}var d=i.sibling;if(d!==null){d.return=i.return,R=d;break e}R=i.return}}var m=e.current;for(R=m;R!==null;){o=R;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,R=y;else e:for(o=m;R!==null;){if(u=R,u.flags&2048)try{switch(u.tag){case 0:case 11:case 15:Pi(9,u)}}catch(T){fe(u,u.return,T)}if(u===o){R=null;break e}var S=u.sibling;if(S!==null){S.return=u.return,R=S;break e}R=u.return}}if(K=l,at(),Sn&&typeof Sn.onPostCommitFiberRoot=="function")try{Sn.onPostCommitFiberRoot(yi,e)}catch{}r=!0}return r}finally{q=t,en.transition=n}}return!1}function nc(e,n,t){n=rr(t,n),n=Dp(e,n,1),e=Jn(e,n,1),n=Ie(),e!==null&&(tl(e,1,n),Ue(e,n))}function fe(e,n,t){if(e.tag===3)nc(e,e,t);else for(;n!==null;){if(n.tag===3){nc(n,e,t);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(et===null||!et.has(r))){e=rr(t,e),e=Mp(n,e,1),n=Jn(n,e,1),e=Ie(),n!==null&&(tl(n,1,e),Ue(n,e));break}}n=n.return}}function Pg(e,n,t){var r=e.pingCache;r!==null&&r.delete(n),n=Ie(),e.pingedLanes|=e.suspendedLanes&t,Ee===e&&(Pe&t)===t&&(we===4||we===3&&(Pe&130023424)===Pe&&500>he()-Sa?yt(e,0):wa|=t),Ue(e,n)}function rd(e,n){n===0&&(e.mode&1?(n=ml,ml<<=1,!(ml&130023424)&&(ml=4194304)):n=1);var t=Ie();e=Rn(e,n),e!==null&&(tl(e,n,t),Ue(e,t))}function Tg(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),rd(e,t)}function Lg(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(L(314))}r!==null&&r.delete(n),rd(e,t)}var ld;ld=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||Be.current)Me=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return Me=!1,hg(e,n,t);Me=!!(e.flags&131072)}else Me=!1,ue&&n.flags&1048576&&up(n,ni,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;Ml(e,n),e=n.pendingProps;var l=Jt(n,Oe.current);Yt(n,t),l=ma(null,n,r,e,l,t);var i=ga();return n.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,je(r)?(i=!0,Jl(n)):i=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,ca(n),l.updater=Ei,n.stateNode=l,l._reactInternals=n,su(n,r,e,t),n=pu(null,n,r,!0,i,t)):(n.tag=0,ue&&i&&ra(n),Fe(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(Ml(e,n),e=n.pendingProps,l=r._init,r=l(r._payload),n.type=r,l=n.tag=_g(r),e=cn(r,e),l){case 0:n=fu(null,n,r,e,t);break e;case 1:n=Qs(null,n,r,e,t);break e;case 11:n=Vs(null,n,r,e,t);break e;case 14:n=Ws(null,n,r,cn(r.type,e),t);break e}throw Error(L(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:cn(r,l),fu(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:cn(r,l),Qs(e,n,r,l,t);case 3:e:{if($p(n),e===null)throw Error(L(387));r=n.pendingProps,i=n.memoizedState,l=i.element,fp(e,n),li(n,r,null,t);var o=n.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},n.updateQueue.baseState=i,n.memoizedState=i,n.flags&256){l=rr(Error(L(423)),n),n=Ks(e,n,r,t,l);break e}else if(r!==l){l=rr(Error(L(424)),n),n=Ks(e,n,r,t,l);break e}else for(We=Zn(n.stateNode.containerInfo.firstChild),Ke=n,ue=!0,pn=null,t=mp(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(er(),r===l){n=An(e,n,t);break e}Fe(e,n,r,t)}n=n.child}return n;case 5:return gp(n),e===null&&ou(n),r=n.type,l=n.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,nu(r,l)?o=null:i!==null&&nu(r,i)&&(n.flags|=32),Up(e,n),Fe(e,n,o,t),n.child;case 6:return e===null&&ou(n),null;case 13:return Hp(e,n,t);case 4:return fa(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=nr(n,null,r,t):Fe(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:cn(r,l),Vs(e,n,r,l,t);case 7:return Fe(e,n,n.pendingProps,t),n.child;case 8:return Fe(e,n,n.pendingProps.children,t),n.child;case 12:return Fe(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,i=n.memoizedProps,o=l.value,ne(ti,r._currentValue),r._currentValue=o,i!==null)if(mn(i.value,o)){if(i.children===l.children&&!Be.current){n=An(e,n,t);break e}}else for(i=n.child,i!==null&&(i.return=n);i!==null;){var u=i.dependencies;if(u!==null){o=i.child;for(var a=u.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Fn(-1,t&-t),a.tag=2;var s=i.updateQueue;if(s!==null){s=s.shared;var c=s.pending;c===null?a.next=a:(a.next=c.next,c.next=a),s.pending=a}}i.lanes|=t,a=i.alternate,a!==null&&(a.lanes|=t),uu(i.return,t,n),u.lanes|=t;break}a=a.next}}else if(i.tag===10)o=i.type===n.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(L(341));o.lanes|=t,u=o.alternate,u!==null&&(u.lanes|=t),uu(o,t,n),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===n){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Fe(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,Yt(n,t),l=nn(l),r=r(l),n.flags|=1,Fe(e,n,r,t),n.child;case 14:return r=n.type,l=cn(r,n.pendingProps),l=cn(r.type,l),Ws(e,n,r,l,t);case 15:return Bp(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:cn(r,l),Ml(e,n),n.tag=1,je(r)?(e=!0,Jl(n)):e=!1,Yt(n,t),dp(n,r,l),su(n,r,l,t),pu(null,n,r,!0,e,t);case 19:return Vp(e,n,t);case 22:return jp(e,n,t)}throw Error(L(156,n.tag))};function id(e,n){return Ff(e,n)}function zg(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Je(e,n,t,r){return new zg(e,n,t,r)}function Ta(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _g(e){if(typeof e=="function")return Ta(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Qu)return 11;if(e===Ku)return 14}return 2}function tt(e,n){var t=e.alternate;return t===null?(t=Je(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Ul(e,n,t,r,l,i){var o=2;if(r=e,typeof e=="function")Ta(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Nt:return vt(t.children,l,i,n);case Wu:o=8,l|=8;break;case No:return e=Je(12,t,n,l|2),e.elementType=No,e.lanes=i,e;case Ro:return e=Je(13,t,n,l),e.elementType=Ro,e.lanes=i,e;case Ao:return e=Je(19,t,n,l),e.elementType=Ao,e.lanes=i,e;case hf:return Li(t,l,i,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case pf:o=10;break e;case df:o=9;break e;case Qu:o=11;break e;case Ku:o=14;break e;case Hn:o=16,r=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return n=Je(o,t,n,l),n.elementType=e,n.type=r,n.lanes=i,n}function vt(e,n,t,r){return e=Je(7,e,r,n),e.lanes=t,e}function Li(e,n,t,r){return e=Je(22,e,r,n),e.elementType=hf,e.lanes=t,e.stateNode={isHidden:!1},e}function ko(e,n,t){return e=Je(6,e,null,n),e.lanes=t,e}function xo(e,n,t){return n=Je(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Og(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ji(0),this.expirationTimes=Ji(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ji(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function La(e,n,t,r,l,i,o,u,a){return e=new Og(e,n,t,u,a),n===1?(n=1,i===!0&&(n|=8)):n=0,i=Je(3,null,null,n),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},ca(i),e}function Fg(e,n,t){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:It,key:r==null?null:""+r,children:e,containerInfo:n,implementation:t}}function od(e){if(!e)return it;e=e._reactInternals;e:{if(Tt(e)!==e||e.tag!==1)throw Error(L(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(je(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(L(171))}if(e.tag===1){var t=e.type;if(je(t))return ip(e,t,n)}return n}function ud(e,n,t,r,l,i,o,u,a){return e=La(t,r,!0,e,l,i,o,u,a),e.context=od(null),t=e.current,r=Ie(),l=nt(t),i=Fn(r,l),i.callback=n??null,Jn(t,i,l),e.current.lanes=l,tl(e,l,r),Ue(e,r),e}function zi(e,n,t,r){var l=n.current,i=Ie(),o=nt(l);return t=od(t),n.context===null?n.context=t:n.pendingContext=t,n=Fn(i,o),n.payload={element:e},r=r===void 0?null:r,r!==null&&(n.callback=r),e=Jn(l,n,o),e!==null&&(hn(e,l,o,i),Rl(e,l,o)),o}function pi(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function tc(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var t=e.retryLane;e.retryLane=t!==0&&t<n?t:n}}function za(e,n){tc(e,n),(e=e.alternate)&&tc(e,n)}function Ig(){return null}var ad=typeof reportError=="function"?reportError:function(e){console.error(e)};function _a(e){this._internalRoot=e}_i.prototype.render=_a.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(L(409));zi(e,n,null,null)};_i.prototype.unmount=_a.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Et(function(){zi(null,e,null,null)}),n[Nn]=null}};function _i(e){this._internalRoot=e}_i.prototype.unstable_scheduleHydration=function(e){if(e){var n=Bf();e={blockedOn:null,target:e,priority:n};for(var t=0;t<Wn.length&&n!==0&&n<Wn[t].priority;t++);Wn.splice(t,0,e),t===0&&Uf(e)}};function Oa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Oi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function rc(){}function Ng(e,n,t,r,l){if(l){if(typeof r=="function"){var i=r;r=function(){var s=pi(o);i.call(s)}}var o=ud(n,r,e,0,null,!1,!1,"",rc);return e._reactRootContainer=o,e[Nn]=o.current,Qr(e.nodeType===8?e.parentNode:e),Et(),o}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var u=r;r=function(){var s=pi(a);u.call(s)}}var a=La(e,0,!1,null,null,!1,!1,"",rc);return e._reactRootContainer=a,e[Nn]=a.current,Qr(e.nodeType===8?e.parentNode:e),Et(function(){zi(n,a,t,r)}),a}function Fi(e,n,t,r,l){var i=t._reactRootContainer;if(i){var o=i;if(typeof l=="function"){var u=l;l=function(){var a=pi(o);u.call(a)}}zi(n,o,e,l)}else o=Ng(t,n,e,l,r);return pi(o)}Df=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var t=Cr(n.pendingLanes);t!==0&&(qu(n,t|1),Ue(n,he()),!(K&6)&&(lr=he()+500,at()))}break;case 13:Et(function(){var r=Rn(e,1);if(r!==null){var l=Ie();hn(r,e,1,l)}}),za(e,1)}};bu=function(e){if(e.tag===13){var n=Rn(e,134217728);if(n!==null){var t=Ie();hn(n,e,134217728,t)}za(e,134217728)}};Mf=function(e){if(e.tag===13){var n=nt(e),t=Rn(e,n);if(t!==null){var r=Ie();hn(t,e,n,r)}za(e,n)}};Bf=function(){return q};jf=function(e,n){var t=q;try{return q=e,n()}finally{q=t}};Qo=function(e,n,t){switch(n){case"input":if(Bo(e,t),n=t.name,t.type==="radio"&&n!=null){for(t=e;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<t.length;n++){var r=t[n];if(r!==e&&r.form===e.form){var l=wi(r);if(!l)throw Error(L(90));gf(r),Bo(r,l)}}}break;case"textarea":vf(e,t);break;case"select":n=t.value,n!=null&&Wt(e,!!t.multiple,n,!1)}};Pf=Ea;Tf=Et;var Rg={usingClientEntryPoint:!1,Events:[ll,Mt,wi,Ef,Cf,Ea]},xr={findFiberByHostInstance:dt,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Ag={bundleType:xr.bundleType,version:xr.version,rendererPackageName:xr.rendererPackageName,rendererConfig:xr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Dn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=_f(e),e===null?null:e.stateNode},findFiberByHostInstance:xr.findFiberByHostInstance||Ig,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Tl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Tl.isDisabled&&Tl.supportsFiber)try{yi=Tl.inject(Ag),Sn=Tl}catch{}}Ye.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Rg;Ye.createPortal=function(e,n){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Oa(n))throw Error(L(200));return Fg(e,n,null,t)};Ye.createRoot=function(e,n){if(!Oa(e))throw Error(L(299));var t=!1,r="",l=ad;return n!=null&&(n.unstable_strictMode===!0&&(t=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),n=La(e,1,!1,null,null,t,!1,r,l),e[Nn]=n.current,Qr(e.nodeType===8?e.parentNode:e),new _a(n)};Ye.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(L(188)):(e=Object.keys(e).join(","),Error(L(268,e)));return e=_f(n),e=e===null?null:e.stateNode,e};Ye.flushSync=function(e){return Et(e)};Ye.hydrate=function(e,n,t){if(!Oi(n))throw Error(L(200));return Fi(null,e,n,!0,t)};Ye.hydrateRoot=function(e,n,t){if(!Oa(e))throw Error(L(405));var r=t!=null&&t.hydratedSources||null,l=!1,i="",o=ad;if(t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),n=ud(n,null,e,1,t??null,l,!1,i,o),e[Nn]=n.current,Qr(e),r)for(e=0;e<r.length;e++)t=r[e],l=t._getVersion,l=l(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,l]:n.mutableSourceEagerHydrationData.push(t,l);return new _i(n)};Ye.render=function(e,n,t){if(!Oi(n))throw Error(L(200));return Fi(null,e,n,!1,t)};Ye.unmountComponentAtNode=function(e){if(!Oi(e))throw Error(L(40));return e._reactRootContainer?(Et(function(){Fi(null,null,e,!1,function(){e._reactRootContainer=null,e[Nn]=null})}),!0):!1};Ye.unstable_batchedUpdates=Ea;Ye.unstable_renderSubtreeIntoContainer=function(e,n,t,r){if(!Oi(t))throw Error(L(200));if(e==null||e._reactInternals===void 0)throw Error(L(38));return Fi(e,n,t,!1,r)};Ye.version="18.2.0-next-9e3b772b8-20220608";function sd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sd)}catch(e){console.error(e)}}sd(),uf.exports=Ye;var Dg=uf.exports;const qk=Ct(Dg);/**
33
+ * @remix-run/router v1.9.0
34
+ *
35
+ * Copyright (c) Remix Software Inc.
36
+ *
37
+ * This source code is licensed under the MIT license found in the
38
+ * LICENSE.md file in the root directory of this source tree.
39
+ *
40
+ * @license MIT
41
+ */function el(){return el=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},el.apply(this,arguments)}var Yn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Yn||(Yn={}));const lc="popstate";function Mg(e){e===void 0&&(e={});function n(l,i){let{pathname:o="/",search:u="",hash:a=""}=Lt(l.location.hash.substr(1));return!o.startsWith("/")&&!o.startsWith(".")&&(o="/"+o),Cu("",{pathname:o,search:u,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function t(l,i){let o=l.document.querySelector("base"),u="";if(o&&o.getAttribute("href")){let a=l.location.href,s=a.indexOf("#");u=s===-1?a:a.slice(0,s)}return u+"#"+(typeof i=="string"?i:di(i))}function r(l,i){Ii(l.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return jg(n,t,r,e)}function ve(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function Ii(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function Bg(){return Math.random().toString(36).substr(2,8)}function ic(e,n){return{usr:e.state,key:e.key,idx:n}}function Cu(e,n,t,r){return t===void 0&&(t=null),el({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof n=="string"?Lt(n):n,{state:t,key:n&&n.key||r||Bg()})}function di(e){let{pathname:n="/",search:t="",hash:r=""}=e;return t&&t!=="?"&&(n+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(n+=r.charAt(0)==="#"?r:"#"+r),n}function Lt(e){let n={};if(e){let t=e.indexOf("#");t>=0&&(n.hash=e.substr(t),e=e.substr(0,t));let r=e.indexOf("?");r>=0&&(n.search=e.substr(r),e=e.substr(0,r)),e&&(n.pathname=e)}return n}function jg(e,n,t,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:i=!1}=r,o=l.history,u=Yn.Pop,a=null,s=c();s==null&&(s=0,o.replaceState(el({},o.state,{idx:s}),""));function c(){return(o.state||{idx:null}).idx}function f(){u=Yn.Pop;let C=c(),d=C==null?null:C-s;s=C,a&&a({action:u,location:v.location,delta:d})}function h(C,d){u=Yn.Push;let m=Cu(v.location,C,d);t&&t(m,C),s=c()+1;let y=ic(m,s),S=v.createHref(m);try{o.pushState(y,"",S)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;l.location.assign(S)}i&&a&&a({action:u,location:v.location,delta:1})}function p(C,d){u=Yn.Replace;let m=Cu(v.location,C,d);t&&t(m,C),s=c();let y=ic(m,s),S=v.createHref(m);o.replaceState(y,"",S),i&&a&&a({action:u,location:v.location,delta:0})}function w(C){let d=l.location.origin!=="null"?l.location.origin:l.location.href,m=typeof C=="string"?C:di(C);return ve(d,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,d)}let v={get action(){return u},get location(){return e(l,o)},listen(C){if(a)throw new Error("A history only accepts one active listener");return l.addEventListener(lc,f),a=C,()=>{l.removeEventListener(lc,f),a=null}},createHref(C){return n(l,C)},createURL:w,encodeLocation(C){let d=w(C);return{pathname:d.pathname,search:d.search,hash:d.hash}},push:h,replace:p,go(C){return o.go(C)}};return v}var oc;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(oc||(oc={}));function Ug(e,n,t){t===void 0&&(t="/");let r=typeof n=="string"?Lt(n):n,l=Fa(r.pathname||"/",t);if(l==null)return null;let i=cd(e);$g(i);let o=null;for(let u=0;o==null&&u<i.length;++u)o=bg(i[u],Jg(l));return o}function cd(e,n,t,r){n===void 0&&(n=[]),t===void 0&&(t=[]),r===void 0&&(r="");let l=(i,o,u)=>{let a={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};a.relativePath.startsWith("/")&&(ve(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let s=rt([r,a.relativePath]),c=t.concat(a);i.children&&i.children.length>0&&(ve(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),cd(i.children,n,c,s)),!(i.path==null&&!i.index)&&n.push({path:s,score:Yg(s,i.index),routesMeta:c})};return e.forEach((i,o)=>{var u;if(i.path===""||!((u=i.path)!=null&&u.includes("?")))l(i,o);else for(let a of fd(i.path))l(i,o,a)}),n}function fd(e){let n=e.split("/");if(n.length===0)return[];let[t,...r]=n,l=t.endsWith("?"),i=t.replace(/\?$/,"");if(r.length===0)return l?[i,""]:[i];let o=fd(r.join("/")),u=[];return u.push(...o.map(a=>a===""?i:[i,a].join("/"))),l&&u.push(...o),u.map(a=>e.startsWith("/")&&a===""?"/":a)}function $g(e){e.sort((n,t)=>n.score!==t.score?t.score-n.score:qg(n.routesMeta.map(r=>r.childrenIndex),t.routesMeta.map(r=>r.childrenIndex)))}const Hg=/^:\w+$/,Vg=3,Wg=2,Qg=1,Kg=10,Xg=-2,uc=e=>e==="*";function Yg(e,n){let t=e.split("/"),r=t.length;return t.some(uc)&&(r+=Xg),n&&(r+=Wg),t.filter(l=>!uc(l)).reduce((l,i)=>l+(Hg.test(i)?Vg:i===""?Qg:Kg),r)}function qg(e,n){return e.length===n.length&&e.slice(0,-1).every((r,l)=>r===n[l])?e[e.length-1]-n[n.length-1]:0}function bg(e,n){let{routesMeta:t}=e,r={},l="/",i=[];for(let o=0;o<t.length;++o){let u=t[o],a=o===t.length-1,s=l==="/"?n:n.slice(l.length)||"/",c=Gg({path:u.relativePath,caseSensitive:u.caseSensitive,end:a},s);if(!c)return null;Object.assign(r,c.params);let f=u.route;i.push({params:r,pathname:rt([l,c.pathname]),pathnameBase:ry(rt([l,c.pathnameBase])),route:f}),c.pathnameBase!=="/"&&(l=rt([l,c.pathnameBase]))}return i}function Gg(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[t,r]=Zg(e.path,e.caseSensitive,e.end),l=n.match(t);if(!l)return null;let i=l[0],o=i.replace(/(.)\/+$/,"$1"),u=l.slice(1);return{params:r.reduce((s,c,f)=>{if(c==="*"){let h=u[f]||"";o=i.slice(0,i.length-h.length).replace(/(.)\/+$/,"$1")}return s[c]=ey(u[f]||"",c),s},{}),pathname:i,pathnameBase:o,pattern:e}}function Zg(e,n,t){n===void 0&&(n=!1),t===void 0&&(t=!0),Ii(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(o,u)=>(r.push(u),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,n?void 0:"i"),r]}function Jg(e){try{return decodeURI(e)}catch(n){return Ii(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+n+").")),e}}function ey(e,n){try{return decodeURIComponent(e)}catch(t){return Ii(!1,'The value for the URL param "'+n+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+t+").")),e}}function Fa(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let t=n.endsWith("/")?n.length-1:n.length,r=e.charAt(t);return r&&r!=="/"?null:e.slice(t)||"/"}function ny(e,n){n===void 0&&(n="/");let{pathname:t,search:r="",hash:l=""}=typeof e=="string"?Lt(e):e;return{pathname:t?t.startsWith("/")?t:ty(t,n):n,search:ly(r),hash:iy(l)}}function ty(e,n){let t=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?t.length>1&&t.pop():l!=="."&&t.push(l)}),t.length>1?t.join("/"):"/"}function wo(e,n,t,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+n+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+t+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function pd(e){return e.filter((n,t)=>t===0||n.route.path&&n.route.path.length>0)}function dd(e,n,t,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=Lt(e):(l=el({},e),ve(!l.pathname||!l.pathname.includes("?"),wo("?","pathname","search",l)),ve(!l.pathname||!l.pathname.includes("#"),wo("#","pathname","hash",l)),ve(!l.search||!l.search.includes("#"),wo("#","search","hash",l)));let i=e===""||l.pathname==="",o=i?"/":l.pathname,u;if(r||o==null)u=t;else{let f=n.length-1;if(o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),f-=1;l.pathname=h.join("/")}u=f>=0?n[f]:"/"}let a=ny(l,u),s=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&t.endsWith("/");return!a.pathname.endsWith("/")&&(s||c)&&(a.pathname+="/"),a}const rt=e=>e.join("/").replace(/\/\/+/g,"/"),ry=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ly=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,iy=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function oy(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const hd=["post","put","patch","delete"];new Set(hd);const uy=["get",...hd];new Set(uy);/**
42
+ * React Router v6.16.0
43
+ *
44
+ * Copyright (c) Remix Software Inc.
45
+ *
46
+ * This source code is licensed under the MIT license found in the
47
+ * LICENSE.md file in the root directory of this source tree.
48
+ *
49
+ * @license MIT
50
+ */function hi(){return hi=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},hi.apply(this,arguments)}const Ia=N.createContext(null),ay=N.createContext(null),ar=N.createContext(null),Ni=N.createContext(null),Mn=N.createContext({outlet:null,matches:[],isDataRoute:!1}),md=N.createContext(null);function sy(e,n){let{relative:t}=n===void 0?{}:n;ol()||ve(!1);let{basename:r,navigator:l}=N.useContext(ar),{hash:i,pathname:o,search:u}=vd(e,{relative:t}),a=o;return r!=="/"&&(a=o==="/"?r:rt([r,o])),l.createHref({pathname:a,search:u,hash:i})}function ol(){return N.useContext(Ni)!=null}function ul(){return ol()||ve(!1),N.useContext(Ni).location}function gd(e){N.useContext(ar).static||N.useLayoutEffect(e)}function yd(){let{isDataRoute:e}=N.useContext(Mn);return e?Cy():cy()}function cy(){ol()||ve(!1);let e=N.useContext(Ia),{basename:n,navigator:t}=N.useContext(ar),{matches:r}=N.useContext(Mn),{pathname:l}=ul(),i=JSON.stringify(pd(r).map(a=>a.pathnameBase)),o=N.useRef(!1);return gd(()=>{o.current=!0}),N.useCallback(function(a,s){if(s===void 0&&(s={}),!o.current)return;if(typeof a=="number"){t.go(a);return}let c=dd(a,JSON.parse(i),l,s.relative==="path");e==null&&n!=="/"&&(c.pathname=c.pathname==="/"?n:rt([n,c.pathname])),(s.replace?t.replace:t.push)(c,s.state,s)},[n,t,i,l,e])}const fy=N.createContext(null);function py(e){let n=N.useContext(Mn).outlet;return n&&N.createElement(fy.Provider,{value:e},n)}function bk(){let{matches:e}=N.useContext(Mn),n=e[e.length-1];return n?n.params:{}}function vd(e,n){let{relative:t}=n===void 0?{}:n,{matches:r}=N.useContext(Mn),{pathname:l}=ul(),i=JSON.stringify(pd(r).map(o=>o.pathnameBase));return N.useMemo(()=>dd(e,JSON.parse(i),l,t==="path"),[e,i,l,t])}function dy(e,n){return hy(e,n)}function hy(e,n,t){ol()||ve(!1);let{navigator:r}=N.useContext(ar),{matches:l}=N.useContext(Mn),i=l[l.length-1],o=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let a=ul(),s;if(n){var c;let v=typeof n=="string"?Lt(n):n;u==="/"||(c=v.pathname)!=null&&c.startsWith(u)||ve(!1),s=v}else s=a;let f=s.pathname||"/",h=u==="/"?f:f.slice(u.length)||"/",p=Ug(e,{pathname:h}),w=ky(p&&p.map(v=>Object.assign({},v,{params:Object.assign({},o,v.params),pathname:rt([u,r.encodeLocation?r.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?u:rt([u,r.encodeLocation?r.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),l,t);return n&&w?N.createElement(Ni.Provider,{value:{location:hi({pathname:"/",search:"",hash:"",state:null,key:"default"},s),navigationType:Yn.Pop}},w):w}function my(){let e=Ey(),n=oy(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),t=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},n),t?N.createElement("pre",{style:l},t):null,i)}const gy=N.createElement(my,null);class yy extends N.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,t){return t.location!==n.location||t.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error||t.error,location:t.location,revalidation:n.revalidation||t.revalidation}}componentDidCatch(n,t){console.error("React Router caught the following error during render",n,t)}render(){return this.state.error?N.createElement(Mn.Provider,{value:this.props.routeContext},N.createElement(md.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function vy(e){let{routeContext:n,match:t,children:r}=e,l=N.useContext(Ia);return l&&l.static&&l.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=t.route.id),N.createElement(Mn.Provider,{value:n},r)}function ky(e,n,t){var r;if(n===void 0&&(n=[]),t===void 0&&(t=null),e==null){var l;if((l=t)!=null&&l.errors)e=t.matches;else return null}let i=e,o=(r=t)==null?void 0:r.errors;if(o!=null){let u=i.findIndex(a=>a.route.id&&(o==null?void 0:o[a.route.id]));u>=0||ve(!1),i=i.slice(0,Math.min(i.length,u+1))}return i.reduceRight((u,a,s)=>{let c=a.route.id?o==null?void 0:o[a.route.id]:null,f=null;t&&(f=a.route.errorElement||gy);let h=n.concat(i.slice(0,s+1)),p=()=>{let w;return c?w=f:a.route.Component?w=N.createElement(a.route.Component,null):a.route.element?w=a.route.element:w=u,N.createElement(vy,{match:a,routeContext:{outlet:u,matches:h,isDataRoute:t!=null},children:w})};return t&&(a.route.ErrorBoundary||a.route.errorElement||s===0)?N.createElement(yy,{location:t.location,revalidation:t.revalidation,component:f,error:c,children:p(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):p()},null)}var kd=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(kd||{}),mi=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(mi||{});function xy(e){let n=N.useContext(Ia);return n||ve(!1),n}function wy(e){let n=N.useContext(ay);return n||ve(!1),n}function Sy(e){let n=N.useContext(Mn);return n||ve(!1),n}function xd(e){let n=Sy(),t=n.matches[n.matches.length-1];return t.route.id||ve(!1),t.route.id}function Ey(){var e;let n=N.useContext(md),t=wy(mi.UseRouteError),r=xd(mi.UseRouteError);return n||((e=t.errors)==null?void 0:e[r])}function Cy(){let{router:e}=xy(kd.UseNavigateStable),n=xd(mi.UseNavigateStable),t=N.useRef(!1);return gd(()=>{t.current=!0}),N.useCallback(function(l,i){i===void 0&&(i={}),t.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,hi({fromRouteId:n},i)))},[e,n])}function Gk(e){return py(e.context)}function Py(e){ve(!1)}function Ty(e){let{basename:n="/",children:t=null,location:r,navigationType:l=Yn.Pop,navigator:i,static:o=!1}=e;ol()&&ve(!1);let u=n.replace(/^\/*/,"/"),a=N.useMemo(()=>({basename:u,navigator:i,static:o}),[u,i,o]);typeof r=="string"&&(r=Lt(r));let{pathname:s="/",search:c="",hash:f="",state:h=null,key:p="default"}=r,w=N.useMemo(()=>{let v=Fa(s,u);return v==null?null:{location:{pathname:v,search:c,hash:f,state:h,key:p},navigationType:l}},[u,s,c,f,h,p,l]);return w==null?null:N.createElement(ar.Provider,{value:a},N.createElement(Ni.Provider,{children:t,value:w}))}function Zk(e){let{children:n,location:t}=e;return dy(Pu(n),t)}new Promise(()=>{});function Pu(e,n){n===void 0&&(n=[]);let t=[];return N.Children.forEach(e,(r,l)=>{if(!N.isValidElement(r))return;let i=[...n,l];if(r.type===N.Fragment){t.push.apply(t,Pu(r.props.children,i));return}r.type!==Py&&ve(!1),!r.props.index||!r.props.children||ve(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Pu(r.props.children,i)),t.push(o)}),t}/**
51
+ * React Router DOM v6.16.0
52
+ *
53
+ * Copyright (c) Remix Software Inc.
54
+ *
55
+ * This source code is licensed under the MIT license found in the
56
+ * LICENSE.md file in the root directory of this source tree.
57
+ *
58
+ * @license MIT
59
+ */function Tu(){return Tu=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Tu.apply(this,arguments)}function Ly(e,n){if(e==null)return{};var t={},r=Object.keys(e),l,i;for(i=0;i<r.length;i++)l=r[i],!(n.indexOf(l)>=0)&&(t[l]=e[l]);return t}function zy(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _y(e,n){return e.button===0&&(!n||n==="_self")&&!zy(e)}function Lu(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((n,t)=>{let r=e[t];return n.concat(Array.isArray(r)?r.map(l=>[t,l]):[[t,r]])},[]))}function Oy(e,n){let t=Lu(e);return n&&n.forEach((r,l)=>{t.has(l)||n.getAll(l).forEach(i=>{t.append(l,i)})}),t}const Fy=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],Iy="startTransition",ac=Ih[Iy];function Jk(e){let{basename:n,children:t,future:r,window:l}=e,i=N.useRef();i.current==null&&(i.current=Mg({window:l,v5Compat:!0}));let o=i.current,[u,a]=N.useState({action:o.action,location:o.location}),{v7_startTransition:s}=r||{},c=N.useCallback(f=>{s&&ac?ac(()=>a(f)):a(f)},[a,s]);return N.useLayoutEffect(()=>o.listen(c),[o,c]),N.createElement(Ty,{basename:n,children:t,location:u.location,navigationType:u.action,navigator:o})}const Ny=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ry=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ex=N.forwardRef(function(n,t){let{onClick:r,relative:l,reloadDocument:i,replace:o,state:u,target:a,to:s,preventScrollReset:c}=n,f=Ly(n,Fy),{basename:h}=N.useContext(ar),p,w=!1;if(typeof s=="string"&&Ry.test(s)&&(p=s,Ny))try{let m=new URL(window.location.href),y=s.startsWith("//")?new URL(m.protocol+s):new URL(s),S=Fa(y.pathname,h);y.origin===m.origin&&S!=null?s=S+y.search+y.hash:w=!0}catch{}let v=sy(s,{relative:l}),C=Ay(s,{replace:o,state:u,target:a,preventScrollReset:c,relative:l});function d(m){r&&r(m),m.defaultPrevented||C(m)}return N.createElement("a",Tu({},f,{href:p||v,onClick:w||i?r:d,ref:t,target:a}))});var sc;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(sc||(sc={}));var cc;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(cc||(cc={}));function Ay(e,n){let{target:t,replace:r,state:l,preventScrollReset:i,relative:o}=n===void 0?{}:n,u=yd(),a=ul(),s=vd(e,{relative:o});return N.useCallback(c=>{if(_y(c,t)){c.preventDefault();let f=r!==void 0?r:di(a)===di(s);u(e,{replace:f,state:l,preventScrollReset:i,relative:o})}},[a,u,s,r,l,t,e,i,o])}function nx(e){let n=N.useRef(Lu(e)),t=N.useRef(!1),r=ul(),l=N.useMemo(()=>Oy(r.search,t.current?null:n.current),[r.search]),i=yd(),o=N.useCallback((u,a)=>{const s=Lu(typeof u=="function"?u(l):u);t.current=!0,i("?"+s,a)},[i,l]);return[l,o]}var wd={exports:{}},Dy="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",My=Dy,By=My;function Sd(){}function Ed(){}Ed.resetWarningCache=Sd;var jy=function(){function e(r,l,i,o,u,a){if(a!==By){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}e.isRequired=e;function n(){return e}var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:Ed,resetWarningCache:Sd};return t.PropTypes=t,t};wd.exports=jy();var Uy=wd.exports;const $=Ct(Uy),fc=["http","https","mailto","tel"];function $y(e){const n=(e||"").trim(),t=n.charAt(0);if(t==="#"||t==="/")return n;const r=n.indexOf(":");if(r===-1)return n;let l=-1;for(;++l<fc.length;){const i=fc[l];if(r===i.length&&n.slice(0,i.length).toLowerCase()===i)return n}return l=n.indexOf("?"),l!==-1&&r>l||(l=n.indexOf("#"),l!==-1&&r>l)?n:"javascript:void(0)"}/*!
60
+ * Determine if an object is a Buffer
61
+ *
62
+ * @author Feross Aboukhadijeh <https://feross.org>
63
+ * @license MIT
64
+ */var Hy=function(n){return n!=null&&n.constructor!=null&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)};const Cd=Ct(Hy);function Ar(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?pc(e.position):"start"in e||"end"in e?pc(e):"line"in e||"column"in e?zu(e):""}function zu(e){return dc(e&&e.line)+":"+dc(e&&e.column)}function pc(e){return zu(e&&e.start)+"-"+zu(e&&e.end)}function dc(e){return e&&typeof e=="number"?e:1}class rn extends Error{constructor(n,t,r){const l=[null,null];let i={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof t=="string"&&(r=t,t=void 0),typeof r=="string"){const o=r.indexOf(":");o===-1?l[1]=r:(l[0]=r.slice(0,o),l[1]=r.slice(o+1))}t&&("type"in t||"position"in t?t.position&&(i=t.position):"start"in t||"end"in t?i=t:("line"in t||"column"in t)&&(i.start=t)),this.name=Ar(t)||"1:1",this.message=typeof n=="object"?n.message:n,this.stack="",typeof n=="object"&&n.stack&&(this.stack=n.stack),this.reason=this.message,this.fatal,this.line=i.start.line,this.column=i.start.column,this.position=i,this.source=l[0],this.ruleId=l[1],this.file,this.actual,this.expected,this.url,this.note}}rn.prototype.file="";rn.prototype.name="";rn.prototype.reason="";rn.prototype.message="";rn.prototype.stack="";rn.prototype.fatal=null;rn.prototype.column=null;rn.prototype.line=null;rn.prototype.source=null;rn.prototype.ruleId=null;rn.prototype.position=null;const kn={basename:Vy,dirname:Wy,extname:Qy,join:Ky,sep:"/"};function Vy(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');al(e);let t=0,r=-1,l=e.length,i;if(n===void 0||n.length===0||n.length>e.length){for(;l--;)if(e.charCodeAt(l)===47){if(i){t=l+1;break}}else r<0&&(i=!0,r=l+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let o=-1,u=n.length-1;for(;l--;)if(e.charCodeAt(l)===47){if(i){t=l+1;break}}else o<0&&(i=!0,o=l+1),u>-1&&(e.charCodeAt(l)===n.charCodeAt(u--)?u<0&&(r=l):(u=-1,r=o));return t===r?r=o:r<0&&(r=e.length),e.slice(t,r)}function Wy(e){if(al(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.charCodeAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.charCodeAt(0)===47?"/":".":n===1&&e.charCodeAt(0)===47?"//":e.slice(0,n)}function Qy(e){al(e);let n=e.length,t=-1,r=0,l=-1,i=0,o;for(;n--;){const u=e.charCodeAt(n);if(u===47){if(o){r=n+1;break}continue}t<0&&(o=!0,t=n+1),u===46?l<0?l=n:i!==1&&(i=1):l>-1&&(i=-1)}return l<0||t<0||i===0||i===1&&l===t-1&&l===r+1?"":e.slice(l,t)}function Ky(...e){let n=-1,t;for(;++n<e.length;)al(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":Xy(t)}function Xy(e){al(e);const n=e.charCodeAt(0)===47;let t=Yy(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.charCodeAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function Yy(e,n){let t="",r=0,l=-1,i=0,o=-1,u,a;for(;++o<=e.length;){if(o<e.length)u=e.charCodeAt(o);else{if(u===47)break;u=47}if(u===47){if(!(l===o-1||i===1))if(l!==o-1&&i===2){if(t.length<2||r!==2||t.charCodeAt(t.length-1)!==46||t.charCodeAt(t.length-2)!==46){if(t.length>2){if(a=t.lastIndexOf("/"),a!==t.length-1){a<0?(t="",r=0):(t=t.slice(0,a),r=t.length-1-t.lastIndexOf("/")),l=o,i=0;continue}}else if(t.length>0){t="",r=0,l=o,i=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(l+1,o):t=e.slice(l+1,o),r=o-l-1;l=o,i=0}else u===46&&i>-1?i++:i=-1}return t}function al(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const qy={cwd:by};function by(){return"/"}function _u(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function Gy(e){if(typeof e=="string")e=new URL(e);else if(!_u(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return Zy(e)}function Zy(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t<n.length;)if(n.charCodeAt(t)===37&&n.charCodeAt(t+1)===50){const r=n.charCodeAt(t+2);if(r===70||r===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(n)}const So=["history","path","basename","stem","extname","dirname"];class Pd{constructor(n){let t;n?typeof n=="string"||Jy(n)?t={value:n}:_u(n)?t={path:n}:t=n:t={},this.data={},this.messages=[],this.history=[],this.cwd=qy.cwd(),this.value,this.stored,this.result,this.map;let r=-1;for(;++r<So.length;){const i=So[r];i in t&&t[i]!==void 0&&t[i]!==null&&(this[i]=i==="history"?[...t[i]]:t[i])}let l;for(l in t)So.includes(l)||(this[l]=t[l])}get path(){return this.history[this.history.length-1]}set path(n){_u(n)&&(n=Gy(n)),Co(n,"path"),this.path!==n&&this.history.push(n)}get dirname(){return typeof this.path=="string"?kn.dirname(this.path):void 0}set dirname(n){hc(this.basename,"dirname"),this.path=kn.join(n||"",this.basename)}get basename(){return typeof this.path=="string"?kn.basename(this.path):void 0}set basename(n){Co(n,"basename"),Eo(n,"basename"),this.path=kn.join(this.dirname||"",n)}get extname(){return typeof this.path=="string"?kn.extname(this.path):void 0}set extname(n){if(Eo(n,"extname"),hc(this.dirname,"extname"),n){if(n.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=kn.join(this.dirname,this.stem+(n||""))}get stem(){return typeof this.path=="string"?kn.basename(this.path,this.extname):void 0}set stem(n){Co(n,"stem"),Eo(n,"stem"),this.path=kn.join(this.dirname||"",n+(this.extname||""))}toString(n){return(this.value||"").toString(n||void 0)}message(n,t,r){const l=new rn(n,t,r);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}info(n,t,r){const l=this.message(n,t,r);return l.fatal=null,l}fail(n,t,r){const l=this.message(n,t,r);throw l.fatal=!0,l}}function Eo(e,n){if(e&&e.includes(kn.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+kn.sep+"`")}function Co(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function hc(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function Jy(e){return Cd(e)}function mc(e){if(e)throw e}var $l=Object.prototype.hasOwnProperty,Td=Object.prototype.toString,gc=Object.defineProperty,yc=Object.getOwnPropertyDescriptor,vc=function(n){return typeof Array.isArray=="function"?Array.isArray(n):Td.call(n)==="[object Array]"},kc=function(n){if(!n||Td.call(n)!=="[object Object]")return!1;var t=$l.call(n,"constructor"),r=n.constructor&&n.constructor.prototype&&$l.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!t&&!r)return!1;var l;for(l in n);return typeof l>"u"||$l.call(n,l)},xc=function(n,t){gc&&t.name==="__proto__"?gc(n,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):n[t.name]=t.newValue},wc=function(n,t){if(t==="__proto__")if($l.call(n,t)){if(yc)return yc(n,t).value}else return;return n[t]},e1=function e(){var n,t,r,l,i,o,u=arguments[0],a=1,s=arguments.length,c=!1;for(typeof u=="boolean"&&(c=u,u=arguments[1]||{},a=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});a<s;++a)if(n=arguments[a],n!=null)for(t in n)r=wc(u,t),l=wc(n,t),u!==l&&(c&&l&&(kc(l)||(i=vc(l)))?(i?(i=!1,o=r&&vc(r)?r:[]):o=r&&kc(r)?r:{},xc(u,{name:t,newValue:e(c,o,l)})):typeof l<"u"&&xc(u,{name:t,newValue:l}));return u};const Sc=Ct(e1);function Ou(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function n1(){const e=[],n={run:t,use:r};return n;function t(...l){let i=-1;const o=l.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);u(null,...l);function u(a,...s){const c=e[++i];let f=-1;if(a){o(a);return}for(;++f<l.length;)(s[f]===null||s[f]===void 0)&&(s[f]=l[f]);l=s,c?t1(c,u)(...s):o(null,...s)}}function r(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),n}}function t1(e,n){let t;return r;function r(...o){const u=e.length>o.length;let a;u&&o.push(l);try{a=e.apply(this,o)}catch(s){const c=s;if(u&&t)throw c;return l(c)}u||(a instanceof Promise?a.then(i,l):a instanceof Error?l(a):i(a))}function l(o,...u){t||(t=!0,n(o,...u))}function i(o){l(null,o)}}const r1=zd().freeze(),Ld={}.hasOwnProperty;function zd(){const e=n1(),n=[];let t={},r,l=-1;return i.data=o,i.Parser=void 0,i.Compiler=void 0,i.freeze=u,i.attachers=n,i.use=a,i.parse=s,i.stringify=c,i.run=f,i.runSync=h,i.process=p,i.processSync=w,i;function i(){const v=zd();let C=-1;for(;++C<n.length;)v.use(...n[C]);return v.data(Sc(!0,{},t)),v}function o(v,C){return typeof v=="string"?arguments.length===2?(Lo("data",r),t[v]=C,i):Ld.call(t,v)&&t[v]||null:v?(Lo("data",r),t=v,i):t}function u(){if(r)return i;for(;++l<n.length;){const[v,...C]=n[l];if(C[0]===!1)continue;C[0]===!0&&(C[0]=void 0);const d=v.call(i,...C);typeof d=="function"&&e.use(d)}return r=!0,l=Number.POSITIVE_INFINITY,i}function a(v,...C){let d;if(Lo("use",r),v!=null)if(typeof v=="function")T(v,...C);else if(typeof v=="object")Array.isArray(v)?S(v):y(v);else throw new TypeError("Expected usable value, not `"+v+"`");return d&&(t.settings=Object.assign(t.settings||{},d)),i;function m(x){if(typeof x=="function")T(x);else if(typeof x=="object")if(Array.isArray(x)){const[P,..._]=x;T(P,..._)}else y(x);else throw new TypeError("Expected usable value, not `"+x+"`")}function y(x){S(x.plugins),x.settings&&(d=Object.assign(d||{},x.settings))}function S(x){let P=-1;if(x!=null)if(Array.isArray(x))for(;++P<x.length;){const _=x[P];m(_)}else throw new TypeError("Expected a list of plugins, not `"+x+"`")}function T(x,P){let _=-1,M;for(;++_<n.length;)if(n[_][0]===x){M=n[_];break}M?(Ou(M[1])&&Ou(P)&&(P=Sc(!0,M[1],P)),M[1]=P):n.push([...arguments])}}function s(v){i.freeze();const C=wr(v),d=i.Parser;return Po("parse",d),Ec(d,"parse")?new d(String(C),C).parse():d(String(C),C)}function c(v,C){i.freeze();const d=wr(C),m=i.Compiler;return To("stringify",m),Cc(v),Ec(m,"compile")?new m(v,d).compile():m(v,d)}function f(v,C,d){if(Cc(v),i.freeze(),!d&&typeof C=="function"&&(d=C,C=void 0),!d)return new Promise(m);m(null,d);function m(y,S){e.run(v,wr(C),T);function T(x,P,_){P=P||v,x?S(x):y?y(P):d(null,P,_)}}}function h(v,C){let d,m;return i.run(v,C,y),Pc("runSync","run",m),d;function y(S,T){mc(S),d=T,m=!0}}function p(v,C){if(i.freeze(),Po("process",i.Parser),To("process",i.Compiler),!C)return new Promise(d);d(null,C);function d(m,y){const S=wr(v);i.run(i.parse(S),S,(x,P,_)=>{if(x||!P||!_)T(x);else{const M=i.stringify(P,_);M==null||(o1(M)?_.value=M:_.result=M),T(x,_)}});function T(x,P){x||!P?y(x):m?m(P):C(null,P)}}}function w(v){let C;i.freeze(),Po("processSync",i.Parser),To("processSync",i.Compiler);const d=wr(v);return i.process(d,m),Pc("processSync","process",C),d;function m(y){C=!0,mc(y)}}}function Ec(e,n){return typeof e=="function"&&e.prototype&&(l1(e.prototype)||n in e.prototype)}function l1(e){let n;for(n in e)if(Ld.call(e,n))return!0;return!1}function Po(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function To(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function Lo(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Cc(e){if(!Ou(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Pc(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function wr(e){return i1(e)?e:new Pd(e)}function i1(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function o1(e){return typeof e=="string"||Cd(e)}const u1={};function a1(e,n){const t=n||u1,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,l=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return _d(e,r,l)}function _d(e,n,t){if(s1(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Tc(e.children,n,t)}return Array.isArray(e)?Tc(e,n,t):""}function Tc(e,n,t){const r=[];let l=-1;for(;++l<e.length;)r[l]=_d(e[l],n,t);return r.join("")}function s1(e){return!!(e&&typeof e=="object")}function Cn(e,n,t,r){const l=e.length;let i=0,o;if(n<0?n=-n>l?0:l+n:n=n>l?l:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);i<r.length;)o=r.slice(i,i+1e4),o.unshift(n,0),e.splice(...o),i+=1e4,n+=1e4}function Ze(e,n){return e.length>0?(Cn(e,e.length,0,n),e):n}const Lc={}.hasOwnProperty;function c1(e){const n={};let t=-1;for(;++t<e.length;)f1(n,e[t]);return n}function f1(e,n){let t;for(t in n){const l=(Lc.call(e,t)?e[t]:void 0)||(e[t]={}),i=n[t];let o;if(i)for(o in i){Lc.call(l,o)||(l[o]=[]);const u=i[o];p1(l[o],Array.isArray(u)?u:u?[u]:[])}}}function p1(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);Cn(e,0,0,r)}const d1=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,wn=st(/[A-Za-z]/),Qe=st(/[\dA-Za-z]/),h1=st(/[#-'*+\--9=?A-Z^-~]/);function Fu(e){return e!==null&&(e<32||e===127)}const Iu=st(/\d/),m1=st(/[\dA-Fa-f]/),g1=st(/[!-/:-@[-`{-~]/);function U(e){return e!==null&&e<-2}function $e(e){return e!==null&&(e<0||e===32)}function X(e){return e===-2||e===-1||e===32}const y1=st(d1),v1=st(/\s/);function st(e){return n;function n(t){return t!==null&&e.test(String.fromCharCode(t))}}function te(e,n,t,r){const l=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(a){return X(a)?(e.enter(t),u(a)):n(a)}function u(a){return X(a)&&i++<l?(e.consume(a),u):(e.exit(t),n(a))}}const k1={tokenize:x1};function x1(e){const n=e.attempt(this.parser.constructs.contentInitial,r,l);let t;return n;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),te(e,n,"linePrefix")}function l(u){return e.enter("paragraph"),i(u)}function i(u){const a=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=a),t=a,o(u)}function o(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return U(u)?(e.consume(u),e.exit("chunkText"),i):(e.consume(u),o)}}const w1={tokenize:S1},zc={tokenize:E1};function S1(e){const n=this,t=[];let r=0,l,i,o;return u;function u(y){if(r<t.length){const S=t[r];return n.containerState=S[1],e.attempt(S[0].continuation,a,s)(y)}return s(y)}function a(y){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,l&&m();const S=n.events.length;let T=S,x;for(;T--;)if(n.events[T][0]==="exit"&&n.events[T][1].type==="chunkFlow"){x=n.events[T][1].end;break}d(r);let P=S;for(;P<n.events.length;)n.events[P][1].end=Object.assign({},x),P++;return Cn(n.events,T+1,0,n.events.slice(S)),n.events.length=P,s(y)}return u(y)}function s(y){if(r===t.length){if(!l)return h(y);if(l.currentConstruct&&l.currentConstruct.concrete)return w(y);n.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(zc,c,f)(y)}function c(y){return l&&m(),d(r),h(y)}function f(y){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,w(y)}function h(y){return n.containerState={},e.attempt(zc,p,w)(y)}function p(y){return r++,t.push([n.currentConstruct,n.containerState]),h(y)}function w(y){if(y===null){l&&m(),d(0),e.consume(y);return}return l=l||n.parser.flow(n.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:l}),v(y)}function v(y){if(y===null){C(e.exit("chunkFlow"),!0),d(0),e.consume(y);return}return U(y)?(e.consume(y),C(e.exit("chunkFlow")),r=0,n.interrupt=void 0,u):(e.consume(y),v)}function C(y,S){const T=n.sliceStream(y);if(S&&T.push(null),y.previous=i,i&&(i.next=y),i=y,l.defineSkip(y.start),l.write(T),n.parser.lazy[y.start.line]){let x=l.events.length;for(;x--;)if(l.events[x][1].start.offset<o&&(!l.events[x][1].end||l.events[x][1].end.offset>o))return;const P=n.events.length;let _=P,M,D;for(;_--;)if(n.events[_][0]==="exit"&&n.events[_][1].type==="chunkFlow"){if(M){D=n.events[_][1].end;break}M=!0}for(d(r),x=P;x<n.events.length;)n.events[x][1].end=Object.assign({},D),x++;Cn(n.events,_+1,0,n.events.slice(P)),n.events.length=x}}function d(y){let S=t.length;for(;S-- >y;){const T=t[S];n.containerState=T[1],T[0].exit.call(n,e)}t.length=y}function m(){l.write([null]),i=void 0,l=void 0,n.containerState._closeFlow=void 0}}function E1(e,n,t){return te(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function _c(e){if(e===null||$e(e)||v1(e))return 1;if(y1(e))return 2}function Na(e,n,t){const r=[];let l=-1;for(;++l<e.length;){const i=e[l].resolveAll;i&&!r.includes(i)&&(n=i(n,t),r.push(i))}return n}const Nu={name:"attention",tokenize:P1,resolveAll:C1};function C1(e,n){let t=-1,r,l,i,o,u,a,s,c;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;a=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),h=Object.assign({},e[t][1].start);Oc(f,-a),Oc(h,a),o={type:a>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},u={type:a>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[t][1].start),end:h},i={type:a>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[t][1].start)},l={type:a>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},u.end)},e[r][1].end=Object.assign({},o.start),e[t][1].start=Object.assign({},u.end),s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=Ze(s,[["enter",e[r][1],n],["exit",e[r][1],n]])),s=Ze(s,[["enter",l,n],["enter",o,n],["exit",o,n],["enter",i,n]]),s=Ze(s,Na(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),s=Ze(s,[["exit",i,n],["enter",u,n],["exit",u,n],["exit",l,n]]),e[t][1].end.offset-e[t][1].start.offset?(c=2,s=Ze(s,[["enter",e[t][1],n],["exit",e[t][1],n]])):c=0,Cn(e,r-1,t-r+3,s),t=r+s.length-c-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function P1(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,l=_c(r);let i;return o;function o(a){return i=a,e.enter("attentionSequence"),u(a)}function u(a){if(a===i)return e.consume(a),u;const s=e.exit("attentionSequence"),c=_c(a),f=!c||c===2&&l||t.includes(a),h=!l||l===2&&c||t.includes(r);return s._open=!!(i===42?f:f&&(l||!h)),s._close=!!(i===42?h:h&&(c||!f)),n(a)}}function Oc(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const T1={name:"autolink",tokenize:L1};function L1(e,n,t){let r=0;return l;function l(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(p){return wn(p)?(e.consume(p),o):s(p)}function o(p){return p===43||p===45||p===46||Qe(p)?(r=1,u(p)):s(p)}function u(p){return p===58?(e.consume(p),r=0,a):(p===43||p===45||p===46||Qe(p))&&r++<32?(e.consume(p),u):(r=0,s(p))}function a(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):p===null||p===32||p===60||Fu(p)?t(p):(e.consume(p),a)}function s(p){return p===64?(e.consume(p),c):h1(p)?(e.consume(p),s):t(p)}function c(p){return Qe(p)?f(p):t(p)}function f(p){return p===46?(e.consume(p),r=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):h(p)}function h(p){if((p===45||Qe(p))&&r++<63){const w=p===45?h:f;return e.consume(p),w}return t(p)}}const Ri={tokenize:z1,partial:!0};function z1(e,n,t){return r;function r(i){return X(i)?te(e,l,"linePrefix")(i):l(i)}function l(i){return i===null||U(i)?n(i):t(i)}}const Od={name:"blockQuote",tokenize:_1,continuation:{tokenize:O1},exit:F1};function _1(e,n,t){const r=this;return l;function l(o){if(o===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),i}return t(o)}function i(o){return X(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function O1(e,n,t){const r=this;return l;function l(o){return X(o)?te(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):i(o)}function i(o){return e.attempt(Od,n,t)(o)}}function F1(e){e.exit("blockQuote")}const Fd={name:"characterEscape",tokenize:I1};function I1(e,n,t){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),l}function l(i){return g1(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(i)}}const Fc=document.createElement("i");function Ra(e){const n="&"+e+";";Fc.innerHTML=n;const t=Fc.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}const Id={name:"characterReference",tokenize:N1};function N1(e,n,t){const r=this;let l=0,i,o;return u;function u(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),a}function a(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),i=31,o=Qe,c(f))}function s(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=m1,c):(e.enter("characterReferenceValue"),i=7,o=Iu,c(f))}function c(f){if(f===59&&l){const h=e.exit("characterReferenceValue");return o===Qe&&!Ra(r.sliceSerialize(h))?t(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(f)&&l++<i?(e.consume(f),c):t(f)}}const Ic={tokenize:A1,partial:!0},Nc={name:"codeFenced",tokenize:R1,concrete:!0};function R1(e,n,t){const r=this,l={tokenize:T,partial:!0};let i=0,o=0,u;return a;function a(x){return s(x)}function s(x){const P=r.events[r.events.length-1];return i=P&&P[1].type==="linePrefix"?P[2].sliceSerialize(P[1],!0).length:0,u=x,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(x)}function c(x){return x===u?(o++,e.consume(x),c):o<3?t(x):(e.exit("codeFencedFenceSequence"),X(x)?te(e,f,"whitespace")(x):f(x))}function f(x){return x===null||U(x)?(e.exit("codeFencedFence"),r.interrupt?n(x):e.check(Ic,v,S)(x)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(x))}function h(x){return x===null||U(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(x)):X(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),te(e,p,"whitespace")(x)):x===96&&x===u?t(x):(e.consume(x),h)}function p(x){return x===null||U(x)?f(x):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(x))}function w(x){return x===null||U(x)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(x)):x===96&&x===u?t(x):(e.consume(x),w)}function v(x){return e.attempt(l,S,C)(x)}function C(x){return e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),d}function d(x){return i>0&&X(x)?te(e,m,"linePrefix",i+1)(x):m(x)}function m(x){return x===null||U(x)?e.check(Ic,v,S)(x):(e.enter("codeFlowValue"),y(x))}function y(x){return x===null||U(x)?(e.exit("codeFlowValue"),m(x)):(e.consume(x),y)}function S(x){return e.exit("codeFenced"),n(x)}function T(x,P,_){let M=0;return D;function D(W){return x.enter("lineEnding"),x.consume(W),x.exit("lineEnding"),I}function I(W){return x.enter("codeFencedFence"),X(W)?te(x,A,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):A(W)}function A(W){return W===u?(x.enter("codeFencedFenceSequence"),Y(W)):_(W)}function Y(W){return W===u?(M++,x.consume(W),Y):M>=o?(x.exit("codeFencedFenceSequence"),X(W)?te(x,oe,"whitespace")(W):oe(W)):_(W)}function oe(W){return W===null||U(W)?(x.exit("codeFencedFence"),P(W)):_(W)}}}function A1(e,n,t){const r=this;return l;function l(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const zo={name:"codeIndented",tokenize:M1},D1={tokenize:B1,partial:!0};function M1(e,n,t){const r=this;return l;function l(s){return e.enter("codeIndented"),te(e,i,"linePrefix",4+1)(s)}function i(s){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(s):t(s)}function o(s){return s===null?a(s):U(s)?e.attempt(D1,o,a)(s):(e.enter("codeFlowValue"),u(s))}function u(s){return s===null||U(s)?(e.exit("codeFlowValue"),o(s)):(e.consume(s),u)}function a(s){return e.exit("codeIndented"),n(s)}}function B1(e,n,t){const r=this;return l;function l(o){return r.parser.lazy[r.now().line]?t(o):U(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):te(e,i,"linePrefix",4+1)(o)}function i(o){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?n(o):U(o)?l(o):t(o)}}const j1={name:"codeText",tokenize:H1,resolve:U1,previous:$1};function U1(e){let n=e.length-4,t=3,r,l;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)l===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(l=r):(r===n||e[r][1].type==="lineEnding")&&(e[l][1].type="codeTextData",r!==l+2&&(e[l][1].end=e[r-1][1].end,e.splice(l+2,r-l-2),n-=r-l-2,r=l+2),l=void 0);return e}function $1(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function H1(e,n,t){let r=0,l,i;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),u(f)}function u(f){return f===96?(e.consume(f),r++,u):(e.exit("codeTextSequence"),a(f))}function a(f){return f===null?t(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),a):f===96?(i=e.enter("codeTextSequence"),l=0,c(f)):U(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),a):(e.enter("codeTextData"),s(f))}function s(f){return f===null||f===32||f===96||U(f)?(e.exit("codeTextData"),a(f)):(e.consume(f),s)}function c(f){return f===96?(e.consume(f),l++,c):l===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(f)):(i.type="codeTextData",s(f))}}function Nd(e){const n={};let t=-1,r,l,i,o,u,a,s;for(;++t<e.length;){for(;t in n;)t=n[t];if(r=e[t],t&&r[1].type==="chunkFlow"&&e[t-1][1].type==="listItemPrefix"&&(a=r[1]._tokenizer.events,i=0,i<a.length&&a[i][1].type==="lineEndingBlank"&&(i+=2),i<a.length&&a[i][1].type==="content"))for(;++i<a.length&&a[i][1].type!=="content";)a[i][1].type==="chunkText"&&(a[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,V1(e,t)),t=n[t],s=!0);else if(r[1]._container){for(i=t,l=void 0;i--&&(o=e[i],o[1].type==="lineEnding"||o[1].type==="lineEndingBlank");)o[0]==="enter"&&(l&&(e[l][1].type="lineEndingBlank"),o[1].type="lineEnding",l=i);l&&(r[1].end=Object.assign({},e[l][1].start),u=e.slice(l,t),u.unshift(r),Cn(e,l,t-l+1,u))}}return!s}function V1(e,n){const t=e[n][1],r=e[n][2];let l=n-1;const i=[],o=t._tokenizer||r.parser[t.contentType](t.start),u=o.events,a=[],s={};let c,f,h=-1,p=t,w=0,v=0;const C=[v];for(;p;){for(;e[++l][1]!==p;);i.push(l),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),f&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=t;++h<u.length;)u[h][0]==="exit"&&u[h-1][0]==="enter"&&u[h][1].type===u[h-1][1].type&&u[h][1].start.line!==u[h][1].end.line&&(v=h+1,C.push(v),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):C.pop(),h=C.length;h--;){const d=u.slice(C[h],C[h+1]),m=i.pop();a.unshift([m,m+d.length-1]),Cn(e,m,2,d)}for(h=-1;++h<a.length;)s[w+a[h][0]]=w+a[h][1],w+=a[h][1]-a[h][0]-1;return s}const W1={tokenize:X1,resolve:K1},Q1={tokenize:Y1,partial:!0};function K1(e){return Nd(e),e}function X1(e,n){let t;return r;function r(u){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),l(u)}function l(u){return u===null?i(u):U(u)?e.check(Q1,o,i)(u):(e.consume(u),l)}function i(u){return e.exit("chunkContent"),e.exit("content"),n(u)}function o(u){return e.consume(u),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,l}}function Y1(e,n,t){const r=this;return l;function l(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),te(e,i,"linePrefix")}function i(o){if(o===null||U(o))return t(o);const u=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function Rd(e,n,t,r,l,i,o,u,a){const s=a||Number.POSITIVE_INFINITY;let c=0;return f;function f(d){return d===60?(e.enter(r),e.enter(l),e.enter(i),e.consume(d),e.exit(i),h):d===null||d===32||d===41||Fu(d)?t(d):(e.enter(r),e.enter(o),e.enter(u),e.enter("chunkString",{contentType:"string"}),v(d))}function h(d){return d===62?(e.enter(i),e.consume(d),e.exit(i),e.exit(l),e.exit(r),n):(e.enter(u),e.enter("chunkString",{contentType:"string"}),p(d))}function p(d){return d===62?(e.exit("chunkString"),e.exit(u),h(d)):d===null||d===60||U(d)?t(d):(e.consume(d),d===92?w:p)}function w(d){return d===60||d===62||d===92?(e.consume(d),p):p(d)}function v(d){return!c&&(d===null||d===41||$e(d))?(e.exit("chunkString"),e.exit(u),e.exit(o),e.exit(r),n(d)):c<s&&d===40?(e.consume(d),c++,v):d===41?(e.consume(d),c--,v):d===null||d===32||d===40||Fu(d)?t(d):(e.consume(d),d===92?C:v)}function C(d){return d===40||d===41||d===92?(e.consume(d),v):v(d)}}function Ad(e,n,t,r,l,i){const o=this;let u=0,a;return s;function s(p){return e.enter(r),e.enter(l),e.consume(p),e.exit(l),e.enter(i),c}function c(p){return u>999||p===null||p===91||p===93&&!a||p===94&&!u&&"_hiddenFootnoteSupport"in o.parser.constructs?t(p):p===93?(e.exit(i),e.enter(l),e.consume(p),e.exit(l),e.exit(r),n):U(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||U(p)||u++>999?(e.exit("chunkString"),c(p)):(e.consume(p),a||(a=!X(p)),p===92?h:f)}function h(p){return p===91||p===92||p===93?(e.consume(p),u++,f):f(p)}}function Dd(e,n,t,r,l,i){let o;return u;function u(h){return h===34||h===39||h===40?(e.enter(r),e.enter(l),e.consume(h),e.exit(l),o=h===40?41:h,a):t(h)}function a(h){return h===o?(e.enter(l),e.consume(h),e.exit(l),e.exit(r),n):(e.enter(i),s(h))}function s(h){return h===o?(e.exit(i),a(o)):h===null?t(h):U(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),te(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===o||h===null||U(h)?(e.exit("chunkString"),s(h)):(e.consume(h),h===92?f:c)}function f(h){return h===o||h===92?(e.consume(h),c):c(h)}}function Dr(e,n){let t;return r;function r(l){return U(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t=!0,r):X(l)?te(e,r,t?"linePrefix":"lineSuffix")(l):n(l)}}function bt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const q1={name:"definition",tokenize:G1},b1={tokenize:Z1,partial:!0};function G1(e,n,t){const r=this;let l;return i;function i(p){return e.enter("definition"),o(p)}function o(p){return Ad.call(r,e,u,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function u(p){return l=bt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),a):t(p)}function a(p){return $e(p)?Dr(e,s)(p):s(p)}function s(p){return Rd(e,c,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(b1,f,f)(p)}function f(p){return X(p)?te(e,h,"whitespace")(p):h(p)}function h(p){return p===null||U(p)?(e.exit("definition"),r.parser.defined.push(l),n(p)):t(p)}}function Z1(e,n,t){return r;function r(u){return $e(u)?Dr(e,l)(u):t(u)}function l(u){return Dd(e,i,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function i(u){return X(u)?te(e,o,"whitespace")(u):o(u)}function o(u){return u===null||U(u)?n(u):t(u)}}const J1={name:"hardBreakEscape",tokenize:e0};function e0(e,n,t){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),l}function l(i){return U(i)?(e.exit("hardBreakEscape"),n(i)):t(i)}}const n0={name:"headingAtx",tokenize:r0,resolve:t0};function t0(e,n){let t=e.length-2,r=3,l,i;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(l={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},i={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},Cn(e,r,t-r+1,[["enter",l,n],["enter",i,n],["exit",i,n],["exit",l,n]])),e}function r0(e,n,t){let r=0;return l;function l(c){return e.enter("atxHeading"),i(c)}function i(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||$e(c)?(e.exit("atxHeadingSequence"),u(c)):t(c)}function u(c){return c===35?(e.enter("atxHeadingSequence"),a(c)):c===null||U(c)?(e.exit("atxHeading"),n(c)):X(c)?te(e,u,"whitespace")(c):(e.enter("atxHeadingText"),s(c))}function a(c){return c===35?(e.consume(c),a):(e.exit("atxHeadingSequence"),u(c))}function s(c){return c===null||c===35||$e(c)?(e.exit("atxHeadingText"),u(c)):(e.consume(c),s)}}const l0=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Rc=["pre","script","style","textarea"],i0={name:"htmlFlow",tokenize:s0,resolveTo:a0,concrete:!0},o0={tokenize:f0,partial:!0},u0={tokenize:c0,partial:!0};function a0(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function s0(e,n,t){const r=this;let l,i,o,u,a;return s;function s(k){return c(k)}function c(k){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(k),f}function f(k){return k===33?(e.consume(k),h):k===47?(e.consume(k),i=!0,v):k===63?(e.consume(k),l=3,r.interrupt?n:g):wn(k)?(e.consume(k),o=String.fromCharCode(k),C):t(k)}function h(k){return k===45?(e.consume(k),l=2,p):k===91?(e.consume(k),l=5,u=0,w):wn(k)?(e.consume(k),l=4,r.interrupt?n:g):t(k)}function p(k){return k===45?(e.consume(k),r.interrupt?n:g):t(k)}function w(k){const ke="CDATA[";return k===ke.charCodeAt(u++)?(e.consume(k),u===ke.length?r.interrupt?n:A:w):t(k)}function v(k){return wn(k)?(e.consume(k),o=String.fromCharCode(k),C):t(k)}function C(k){if(k===null||k===47||k===62||$e(k)){const ke=k===47,gn=o.toLowerCase();return!ke&&!i&&Rc.includes(gn)?(l=1,r.interrupt?n(k):A(k)):l0.includes(o.toLowerCase())?(l=6,ke?(e.consume(k),d):r.interrupt?n(k):A(k)):(l=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(k):i?m(k):y(k))}return k===45||Qe(k)?(e.consume(k),o+=String.fromCharCode(k),C):t(k)}function d(k){return k===62?(e.consume(k),r.interrupt?n:A):t(k)}function m(k){return X(k)?(e.consume(k),m):D(k)}function y(k){return k===47?(e.consume(k),D):k===58||k===95||wn(k)?(e.consume(k),S):X(k)?(e.consume(k),y):D(k)}function S(k){return k===45||k===46||k===58||k===95||Qe(k)?(e.consume(k),S):T(k)}function T(k){return k===61?(e.consume(k),x):X(k)?(e.consume(k),T):y(k)}function x(k){return k===null||k===60||k===61||k===62||k===96?t(k):k===34||k===39?(e.consume(k),a=k,P):X(k)?(e.consume(k),x):_(k)}function P(k){return k===a?(e.consume(k),a=null,M):k===null||U(k)?t(k):(e.consume(k),P)}function _(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||$e(k)?T(k):(e.consume(k),_)}function M(k){return k===47||k===62||X(k)?y(k):t(k)}function D(k){return k===62?(e.consume(k),I):t(k)}function I(k){return k===null||U(k)?A(k):X(k)?(e.consume(k),I):t(k)}function A(k){return k===45&&l===2?(e.consume(k),me):k===60&&l===1?(e.consume(k),pe):k===62&&l===4?(e.consume(k),Q):k===63&&l===3?(e.consume(k),g):k===93&&l===5?(e.consume(k),B):U(k)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(o0,G,Y)(k)):k===null||U(k)?(e.exit("htmlFlowData"),Y(k)):(e.consume(k),A)}function Y(k){return e.check(u0,oe,G)(k)}function oe(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),W}function W(k){return k===null||U(k)?Y(k):(e.enter("htmlFlowData"),A(k))}function me(k){return k===45?(e.consume(k),g):A(k)}function pe(k){return k===47?(e.consume(k),o="",F):A(k)}function F(k){if(k===62){const ke=o.toLowerCase();return Rc.includes(ke)?(e.consume(k),Q):A(k)}return wn(k)&&o.length<8?(e.consume(k),o+=String.fromCharCode(k),F):A(k)}function B(k){return k===93?(e.consume(k),g):A(k)}function g(k){return k===62?(e.consume(k),Q):k===45&&l===2?(e.consume(k),g):A(k)}function Q(k){return k===null||U(k)?(e.exit("htmlFlowData"),G(k)):(e.consume(k),Q)}function G(k){return e.exit("htmlFlow"),n(k)}}function c0(e,n,t){const r=this;return l;function l(o){return U(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):t(o)}function i(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function f0(e,n,t){return r;function r(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(Ri,n,t)}}const p0={name:"htmlText",tokenize:d0};function d0(e,n,t){const r=this;let l,i,o;return u;function u(g){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(g),a}function a(g){return g===33?(e.consume(g),s):g===47?(e.consume(g),T):g===63?(e.consume(g),y):wn(g)?(e.consume(g),_):t(g)}function s(g){return g===45?(e.consume(g),c):g===91?(e.consume(g),i=0,w):wn(g)?(e.consume(g),m):t(g)}function c(g){return g===45?(e.consume(g),p):t(g)}function f(g){return g===null?t(g):g===45?(e.consume(g),h):U(g)?(o=f,pe(g)):(e.consume(g),f)}function h(g){return g===45?(e.consume(g),p):f(g)}function p(g){return g===62?me(g):g===45?h(g):f(g)}function w(g){const Q="CDATA[";return g===Q.charCodeAt(i++)?(e.consume(g),i===Q.length?v:w):t(g)}function v(g){return g===null?t(g):g===93?(e.consume(g),C):U(g)?(o=v,pe(g)):(e.consume(g),v)}function C(g){return g===93?(e.consume(g),d):v(g)}function d(g){return g===62?me(g):g===93?(e.consume(g),d):v(g)}function m(g){return g===null||g===62?me(g):U(g)?(o=m,pe(g)):(e.consume(g),m)}function y(g){return g===null?t(g):g===63?(e.consume(g),S):U(g)?(o=y,pe(g)):(e.consume(g),y)}function S(g){return g===62?me(g):y(g)}function T(g){return wn(g)?(e.consume(g),x):t(g)}function x(g){return g===45||Qe(g)?(e.consume(g),x):P(g)}function P(g){return U(g)?(o=P,pe(g)):X(g)?(e.consume(g),P):me(g)}function _(g){return g===45||Qe(g)?(e.consume(g),_):g===47||g===62||$e(g)?M(g):t(g)}function M(g){return g===47?(e.consume(g),me):g===58||g===95||wn(g)?(e.consume(g),D):U(g)?(o=M,pe(g)):X(g)?(e.consume(g),M):me(g)}function D(g){return g===45||g===46||g===58||g===95||Qe(g)?(e.consume(g),D):I(g)}function I(g){return g===61?(e.consume(g),A):U(g)?(o=I,pe(g)):X(g)?(e.consume(g),I):M(g)}function A(g){return g===null||g===60||g===61||g===62||g===96?t(g):g===34||g===39?(e.consume(g),l=g,Y):U(g)?(o=A,pe(g)):X(g)?(e.consume(g),A):(e.consume(g),oe)}function Y(g){return g===l?(e.consume(g),l=void 0,W):g===null?t(g):U(g)?(o=Y,pe(g)):(e.consume(g),Y)}function oe(g){return g===null||g===34||g===39||g===60||g===61||g===96?t(g):g===47||g===62||$e(g)?M(g):(e.consume(g),oe)}function W(g){return g===47||g===62||$e(g)?M(g):t(g)}function me(g){return g===62?(e.consume(g),e.exit("htmlTextData"),e.exit("htmlText"),n):t(g)}function pe(g){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),F}function F(g){return X(g)?te(e,B,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g):B(g)}function B(g){return e.enter("htmlTextData"),o(g)}}const Aa={name:"labelEnd",tokenize:k0,resolveTo:v0,resolveAll:y0},h0={tokenize:x0},m0={tokenize:w0},g0={tokenize:S0};function y0(e){let n=-1;for(;++n<e.length;){const t=e[n][1];(t.type==="labelImage"||t.type==="labelLink"||t.type==="labelEnd")&&(e.splice(n+1,t.type==="labelImage"?4:2),t.type="data",n++)}return e}function v0(e,n){let t=e.length,r=0,l,i,o,u;for(;t--;)if(l=e[t][1],i){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[t][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(o){if(e[t][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(i=t,l.type!=="labelLink")){r=2;break}}else l.type==="labelEnd"&&(o=t);const a={type:e[i][1].type==="labelLink"?"link":"image",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"label",start:Object.assign({},e[i][1].start),end:Object.assign({},e[o][1].end)},c={type:"labelText",start:Object.assign({},e[i+r+2][1].end),end:Object.assign({},e[o-2][1].start)};return u=[["enter",a,n],["enter",s,n]],u=Ze(u,e.slice(i+1,i+r+3)),u=Ze(u,[["enter",c,n]]),u=Ze(u,Na(n.parser.constructs.insideSpan.null,e.slice(i+r+4,o-3),n)),u=Ze(u,[["exit",c,n],e[o-2],e[o-1],["exit",s,n]]),u=Ze(u,e.slice(o+1)),u=Ze(u,[["exit",a,n]]),Cn(e,i,e.length,u),e}function k0(e,n,t){const r=this;let l=r.events.length,i,o;for(;l--;)if((r.events[l][1].type==="labelImage"||r.events[l][1].type==="labelLink")&&!r.events[l][1]._balanced){i=r.events[l][1];break}return u;function u(h){return i?i._inactive?f(h):(o=r.parser.defined.includes(bt(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),a):t(h)}function a(h){return h===40?e.attempt(h0,c,o?c:f)(h):h===91?e.attempt(m0,c,o?s:f)(h):o?c(h):f(h)}function s(h){return e.attempt(g0,c,f)(h)}function c(h){return n(h)}function f(h){return i._balanced=!0,t(h)}}function x0(e,n,t){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),l}function l(f){return $e(f)?Dr(e,i)(f):i(f)}function i(f){return f===41?c(f):Rd(e,o,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return $e(f)?Dr(e,a)(f):c(f)}function u(f){return t(f)}function a(f){return f===34||f===39||f===40?Dd(e,s,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function s(f){return $e(f)?Dr(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),n):t(f)}}function w0(e,n,t){const r=this;return l;function l(u){return Ad.call(r,e,i,o,"reference","referenceMarker","referenceString")(u)}function i(u){return r.parser.defined.includes(bt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(u):t(u)}function o(u){return t(u)}}function S0(e,n,t){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),l}function l(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),n):t(i)}}const E0={name:"labelStartImage",tokenize:C0,resolveAll:Aa.resolveAll};function C0(e,n,t){const r=this;return l;function l(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),i}function i(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),o):t(u)}function o(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(u):n(u)}}const P0={name:"labelStartLink",tokenize:T0,resolveAll:Aa.resolveAll};function T0(e,n,t){const r=this;return l;function l(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),i}function i(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const _o={name:"lineEnding",tokenize:L0};function L0(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),te(e,n,"linePrefix")}}const Hl={name:"thematicBreak",tokenize:z0};function z0(e,n,t){let r=0,l;return i;function i(s){return e.enter("thematicBreak"),o(s)}function o(s){return l=s,u(s)}function u(s){return s===l?(e.enter("thematicBreakSequence"),a(s)):r>=3&&(s===null||U(s))?(e.exit("thematicBreak"),n(s)):t(s)}function a(s){return s===l?(e.consume(s),r++,a):(e.exit("thematicBreakSequence"),X(s)?te(e,u,"whitespace")(s):u(s))}}const Ae={name:"list",tokenize:F0,continuation:{tokenize:I0},exit:R0},_0={tokenize:A0,partial:!0},O0={tokenize:N0,partial:!0};function F0(e,n,t){const r=this,l=r.events[r.events.length-1];let i=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,o=0;return u;function u(p){const w=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Iu(p)){if(r.containerState.type||(r.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Hl,t,s)(p):s(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(p)}return t(p)}function a(p){return Iu(p)&&++o<10?(e.consume(p),a):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),s(p)):t(p)}function s(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Ri,r.interrupt?t:c,e.attempt(_0,h,f))}function c(p){return r.containerState.initialBlankLine=!0,i++,h(p)}function f(p){return X(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):t(p)}function h(p){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(p)}}function I0(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Ri,l,i);function l(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,te(e,n,"listItemIndent",r.containerState.size+1)(u)}function i(u){return r.containerState.furtherBlankLines||!X(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(O0,n,o)(u))}function o(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,te(e,e.attempt(Ae,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function N0(e,n,t){const r=this;return te(e,l,"listItemIndent",r.containerState.size+1);function l(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(i):t(i)}}function R0(e){e.exit(this.containerState.type)}function A0(e,n,t){const r=this;return te(e,l,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function l(i){const o=r.events[r.events.length-1];return!X(i)&&o&&o[1].type==="listItemPrefixWhitespace"?n(i):t(i)}}const Ac={name:"setextUnderline",tokenize:M0,resolveTo:D0};function D0(e,n){let t=e.length,r,l,i;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(l=t)}else e[t][1].type==="content"&&e.splice(t,1),!i&&e[t][1].type==="definition"&&(i=t);const o={type:"setextHeading",start:Object.assign({},e[l][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[l][1].type="setextHeadingText",i?(e.splice(l,0,["enter",o,n]),e.splice(i+1,0,["exit",e[r][1],n]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=o,e.push(["exit",o,n]),e}function M0(e,n,t){const r=this;let l;return i;function i(s){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),l=s,o(s)):t(s)}function o(s){return e.enter("setextHeadingLineSequence"),u(s)}function u(s){return s===l?(e.consume(s),u):(e.exit("setextHeadingLineSequence"),X(s)?te(e,a,"lineSuffix")(s):a(s))}function a(s){return s===null||U(s)?(e.exit("setextHeadingLine"),n(s)):t(s)}}const B0={tokenize:j0};function j0(e){const n=this,t=e.attempt(Ri,r,e.attempt(this.parser.constructs.flowInitial,l,te(e,e.attempt(this.parser.constructs.flow,l,e.attempt(W1,l)),"linePrefix")));return t;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function l(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const U0={resolveAll:Bd()},$0=Md("string"),H0=Md("text");function Md(e){return{tokenize:n,resolveAll:Bd(e==="text"?V0:void 0)};function n(t){const r=this,l=this.parser.constructs[e],i=t.attempt(l,o,u);return o;function o(c){return s(c)?i(c):u(c)}function u(c){if(c===null){t.consume(c);return}return t.enter("data"),t.consume(c),a}function a(c){return s(c)?(t.exit("data"),i(c)):(t.consume(c),a)}function s(c){if(c===null)return!0;const f=l[c];let h=-1;if(f)for(;++h<f.length;){const p=f[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Bd(e){return n;function n(t,r){let l=-1,i;for(;++l<=t.length;)i===void 0?t[l]&&t[l][1].type==="data"&&(i=l,l++):(!t[l]||t[l][1].type!=="data")&&(l!==i+2&&(t[i][1].end=t[l-1][1].end,t.splice(i+2,l-i-2),l=i+2),i=void 0);return e?e(t,r):t}}function V0(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],l=n.sliceStream(r);let i=l.length,o=-1,u=0,a;for(;i--;){const s=l[i];if(typeof s=="string"){for(o=s.length;s.charCodeAt(o-1)===32;)u++,o--;if(o)break;o=-1}else if(s===-2)a=!0,u++;else if(s!==-1){i++;break}}if(u){const s={type:t===e.length||a||u<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-u,offset:r.end.offset-u,_index:r.start._index+i,_bufferIndex:i?o:r.start._bufferIndex+o},end:Object.assign({},r.end)};r.end=Object.assign({},s.start),r.start.offset===r.end.offset?Object.assign(r,s):(e.splice(t,0,["enter",s,n],["exit",s,n]),t+=2)}t++}return e}function W0(e,n,t){let r=Object.assign(t?Object.assign({},t):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const l={},i=[];let o=[],u=[];const a={consume:m,enter:y,exit:S,attempt:P(T),check:P(x),interrupt:P(x,{interrupt:!0})},s={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:p,sliceSerialize:h,now:w,defineSkip:v,write:f};let c=n.tokenize.call(s,a);return n.resolveAll&&i.push(n),s;function f(I){return o=Ze(o,I),C(),o[o.length-1]!==null?[]:(_(n,0),s.events=Na(i,s.events,s),s.events)}function h(I,A){return K0(p(I),A)}function p(I){return Q0(o,I)}function w(){const{line:I,column:A,offset:Y,_index:oe,_bufferIndex:W}=r;return{line:I,column:A,offset:Y,_index:oe,_bufferIndex:W}}function v(I){l[I.line]=I.column,D()}function C(){let I;for(;r._index<o.length;){const A=o[r._index];if(typeof A=="string")for(I=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===I&&r._bufferIndex<A.length;)d(A.charCodeAt(r._bufferIndex));else d(A)}}function d(I){c=c(I)}function m(I){U(I)?(r.line++,r.column=1,r.offset+=I===-3?2:1,D()):I!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),s.previous=I}function y(I,A){const Y=A||{};return Y.type=I,Y.start=w(),s.events.push(["enter",Y,s]),u.push(Y),Y}function S(I){const A=u.pop();return A.end=w(),s.events.push(["exit",A,s]),A}function T(I,A){_(I,A.from)}function x(I,A){A.restore()}function P(I,A){return Y;function Y(oe,W,me){let pe,F,B,g;return Array.isArray(oe)?G(oe):"tokenize"in oe?G([oe]):Q(oe);function Q(re){return un;function un(Bn){const _t=Bn!==null&&re[Bn],Ot=Bn!==null&&re.null,Ki=[...Array.isArray(_t)?_t:_t?[_t]:[],...Array.isArray(Ot)?Ot:Ot?[Ot]:[]];return G(Ki)(Bn)}}function G(re){return pe=re,F=0,re.length===0?me:k(re[F])}function k(re){return un;function un(Bn){return g=M(),B=re,re.partial||(s.currentConstruct=re),re.name&&s.parser.constructs.disable.null.includes(re.name)?gn():re.tokenize.call(A?Object.assign(Object.create(s),A):s,a,ke,gn)(Bn)}}function ke(re){return I(B,g),W}function gn(re){return g.restore(),++F<pe.length?k(pe[F]):me}}}function _(I,A){I.resolveAll&&!i.includes(I)&&i.push(I),I.resolve&&Cn(s.events,A,s.events.length-A,I.resolve(s.events.slice(A),s)),I.resolveTo&&(s.events=I.resolveTo(s.events,s))}function M(){const I=w(),A=s.previous,Y=s.currentConstruct,oe=s.events.length,W=Array.from(u);return{restore:me,from:oe};function me(){r=I,s.previous=A,s.currentConstruct=Y,s.events.length=oe,u=W,D()}}function D(){r.line in l&&r.column<2&&(r.column=l[r.line],r.offset+=l[r.line]-1)}}function Q0(e,n){const t=n.start._index,r=n.start._bufferIndex,l=n.end._index,i=n.end._bufferIndex;let o;if(t===l)o=[e[t].slice(r,i)];else{if(o=e.slice(t,l),r>-1){const u=o[0];typeof u=="string"?o[0]=u.slice(r):o.shift()}i>0&&o.push(e[l].slice(0,i))}return o}function K0(e,n){let t=-1;const r=[];let l;for(;++t<e.length;){const i=e[t];let o;if(typeof i=="string")o=i;else switch(i){case-5:{o="\r";break}case-4:{o=`
65
+ `;break}case-3:{o=`\r
66
+ `;break}case-2:{o=n?" ":" ";break}case-1:{if(!n&&l)continue;o=" ";break}default:o=String.fromCharCode(i)}l=i===-2,r.push(o)}return r.join("")}const X0={42:Ae,43:Ae,45:Ae,48:Ae,49:Ae,50:Ae,51:Ae,52:Ae,53:Ae,54:Ae,55:Ae,56:Ae,57:Ae,62:Od},Y0={91:q1},q0={[-2]:zo,[-1]:zo,32:zo},b0={35:n0,42:Hl,45:[Ac,Hl],60:i0,61:Ac,95:Hl,96:Nc,126:Nc},G0={38:Id,92:Fd},Z0={[-5]:_o,[-4]:_o,[-3]:_o,33:E0,38:Id,42:Nu,60:[T1,p0],91:P0,92:[J1,Fd],93:Aa,95:Nu,96:j1},J0={null:[Nu,U0]},ev={null:[42,95]},nv={null:[]},tv=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:ev,contentInitial:Y0,disable:nv,document:X0,flow:b0,flowInitial:q0,insideSpan:J0,string:G0,text:Z0},Symbol.toStringTag,{value:"Module"}));function rv(e){const t=c1([tv,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:t,content:l(k1),document:l(w1),flow:l(B0),string:l($0),text:l(H0)};return r;function l(i){return o;function o(u){return W0(r,i,u)}}}const Dc=/[\0\t\n\r]/g;function lv(){let e=1,n="",t=!0,r;return l;function l(i,o,u){const a=[];let s,c,f,h,p;for(i=n+i.toString(o),f=0,n="",t&&(i.charCodeAt(0)===65279&&f++,t=void 0);f<i.length;){if(Dc.lastIndex=f,s=Dc.exec(i),h=s&&s.index!==void 0?s.index:i.length,p=i.charCodeAt(h),!s){n=i.slice(f);break}if(p===10&&f===h&&r)a.push(-3),r=void 0;else switch(r&&(a.push(-5),r=void 0),f<h&&(a.push(i.slice(f,h)),e+=h-f),p){case 0:{a.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,a.push(-2);e++<c;)a.push(-1);break}case 10:{a.push(-4),e=1;break}default:r=!0,e=1}f=h+1}return u&&(r&&a.push(-5),n&&a.push(n),a.push(null)),a}}function iv(e){for(;!Nd(e););return e}function jd(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCharCode(t)}const ov=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function uv(e){return e.replace(ov,av)}function av(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const l=t.charCodeAt(1),i=l===120||l===88;return jd(t.slice(i?2:1),i?16:10)}return Ra(t)||e}const Ud={}.hasOwnProperty,sv=function(e,n,t){return typeof n!="string"&&(t=n,n=void 0),cv(t)(iv(rv(t).document().write(lv()(e,n,!0))))};function cv(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(Ya),autolinkProtocol:I,autolinkEmail:I,atxHeading:u(Qa),blockQuote:u(Ki),characterEscape:I,characterReference:I,codeFenced:u(Wa),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:u(Wa,a),codeText:u(uh,a),codeTextData:I,data:I,codeFlowValue:I,definition:u(ah),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:u(sh),hardBreakEscape:u(Ka),hardBreakTrailing:u(Ka),htmlFlow:u(Xa,a),htmlFlowData:I,htmlText:u(Xa,a),htmlTextData:I,image:u(ch),label:a,link:u(Ya),listItem:u(fh),listItemValue:w,listOrdered:u(qa,p),listUnordered:u(qa),paragraph:u(ph),reference:gn,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:u(Qa),strong:u(dh),thematicBreak:u(mh)},exit:{atxHeading:c(),atxHeadingSequence:P,autolink:c(),autolinkEmail:Ot,autolinkProtocol:_t,blockQuote:c(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:un,characterReferenceMarkerNumeric:un,characterReferenceValue:Bn,codeFenced:c(m),codeFencedFence:d,codeFencedFenceInfo:v,codeFencedFenceMeta:C,codeFlowValue:A,codeIndented:c(y),codeText:c(pe),codeTextData:A,data:A,definition:c(),definitionDestinationString:x,definitionLabelString:S,definitionTitleString:T,emphasis:c(),hardBreakEscape:c(oe),hardBreakTrailing:c(oe),htmlFlow:c(W),htmlFlowData:A,htmlText:c(me),htmlTextData:A,image:c(B),label:Q,labelText:g,lineEnding:Y,link:c(F),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:re,resourceDestinationString:G,resourceTitleString:k,resource:ke,setextHeading:c(D),setextHeadingLineSequence:M,setextHeadingText:_,strong:c(),thematicBreak:c()}};$d(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(E){let O={type:"root",children:[]};const j={stack:[O],tokenStack:[],config:n,enter:s,exit:f,buffer:a,resume:h,setData:i,getData:o},Z=[];let J=-1;for(;++J<E.length;)if(E[J][1].type==="listOrdered"||E[J][1].type==="listUnordered")if(E[J][0]==="enter")Z.push(J);else{const an=Z.pop();J=l(E,an,J)}for(J=-1;++J<E.length;){const an=n[E[J][0]];Ud.call(an,E[J][1].type)&&an[E[J][1].type].call(Object.assign({sliceSerialize:E[J][2].sliceSerialize},j),E[J][1])}if(j.tokenStack.length>0){const an=j.tokenStack[j.tokenStack.length-1];(an[1]||Mc).call(j,void 0,an[0])}for(O.position={start:$n(E.length>0?E[0][1].start:{line:1,column:1,offset:0}),end:$n(E.length>0?E[E.length-2][1].end:{line:1,column:1,offset:0})},J=-1;++J<n.transforms.length;)O=n.transforms[J](O)||O;return O}function l(E,O,j){let Z=O-1,J=-1,an=!1,jn,Pn,fr,pr;for(;++Z<=j;){const de=E[Z];if(de[1].type==="listUnordered"||de[1].type==="listOrdered"||de[1].type==="blockQuote"?(de[0]==="enter"?J++:J--,pr=void 0):de[1].type==="lineEndingBlank"?de[0]==="enter"&&(jn&&!pr&&!J&&!fr&&(fr=Z),pr=void 0):de[1].type==="linePrefix"||de[1].type==="listItemValue"||de[1].type==="listItemMarker"||de[1].type==="listItemPrefix"||de[1].type==="listItemPrefixWhitespace"||(pr=void 0),!J&&de[0]==="enter"&&de[1].type==="listItemPrefix"||J===-1&&de[0]==="exit"&&(de[1].type==="listUnordered"||de[1].type==="listOrdered")){if(jn){let Xi=Z;for(Pn=void 0;Xi--;){const Tn=E[Xi];if(Tn[1].type==="lineEnding"||Tn[1].type==="lineEndingBlank"){if(Tn[0]==="exit")continue;Pn&&(E[Pn][1].type="lineEndingBlank",an=!0),Tn[1].type="lineEnding",Pn=Xi}else if(!(Tn[1].type==="linePrefix"||Tn[1].type==="blockQuotePrefix"||Tn[1].type==="blockQuotePrefixWhitespace"||Tn[1].type==="blockQuoteMarker"||Tn[1].type==="listItemIndent"))break}fr&&(!Pn||fr<Pn)&&(jn._spread=!0),jn.end=Object.assign({},Pn?E[Pn][1].start:de[1].end),E.splice(Pn||Z,0,["exit",jn,de[2]]),Z++,j++}de[1].type==="listItemPrefix"&&(jn={type:"listItem",_spread:!1,start:Object.assign({},de[1].start),end:void 0},E.splice(Z,0,["enter",jn,de[2]]),Z++,j++,fr=void 0,pr=!0)}}return E[O][1]._spread=an,j}function i(E,O){t[E]=O}function o(E){return t[E]}function u(E,O){return j;function j(Z){s.call(this,E(Z),Z),O&&O.call(this,Z)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(E,O,j){return this.stack[this.stack.length-1].children.push(E),this.stack.push(E),this.tokenStack.push([O,j]),E.position={start:$n(O.start)},E}function c(E){return O;function O(j){E&&E.call(this,j),f.call(this,j)}}function f(E,O){const j=this.stack.pop(),Z=this.tokenStack.pop();if(Z)Z[0].type!==E.type&&(O?O.call(this,E,Z[0]):(Z[1]||Mc).call(this,E,Z[0]));else throw new Error("Cannot close `"+E.type+"` ("+Ar({start:E.start,end:E.end})+"): it’s not open");return j.position.end=$n(E.end),j}function h(){return a1(this.stack.pop())}function p(){i("expectingFirstListItemValue",!0)}function w(E){if(o("expectingFirstListItemValue")){const O=this.stack[this.stack.length-2];O.start=Number.parseInt(this.sliceSerialize(E),10),i("expectingFirstListItemValue")}}function v(){const E=this.resume(),O=this.stack[this.stack.length-1];O.lang=E}function C(){const E=this.resume(),O=this.stack[this.stack.length-1];O.meta=E}function d(){o("flowCodeInside")||(this.buffer(),i("flowCodeInside",!0))}function m(){const E=this.resume(),O=this.stack[this.stack.length-1];O.value=E.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),i("flowCodeInside")}function y(){const E=this.resume(),O=this.stack[this.stack.length-1];O.value=E.replace(/(\r?\n|\r)$/g,"")}function S(E){const O=this.resume(),j=this.stack[this.stack.length-1];j.label=O,j.identifier=bt(this.sliceSerialize(E)).toLowerCase()}function T(){const E=this.resume(),O=this.stack[this.stack.length-1];O.title=E}function x(){const E=this.resume(),O=this.stack[this.stack.length-1];O.url=E}function P(E){const O=this.stack[this.stack.length-1];if(!O.depth){const j=this.sliceSerialize(E).length;O.depth=j}}function _(){i("setextHeadingSlurpLineEnding",!0)}function M(E){const O=this.stack[this.stack.length-1];O.depth=this.sliceSerialize(E).charCodeAt(0)===61?1:2}function D(){i("setextHeadingSlurpLineEnding")}function I(E){const O=this.stack[this.stack.length-1];let j=O.children[O.children.length-1];(!j||j.type!=="text")&&(j=hh(),j.position={start:$n(E.start)},O.children.push(j)),this.stack.push(j)}function A(E){const O=this.stack.pop();O.value+=this.sliceSerialize(E),O.position.end=$n(E.end)}function Y(E){const O=this.stack[this.stack.length-1];if(o("atHardBreak")){const j=O.children[O.children.length-1];j.position.end=$n(E.end),i("atHardBreak");return}!o("setextHeadingSlurpLineEnding")&&n.canContainEols.includes(O.type)&&(I.call(this,E),A.call(this,E))}function oe(){i("atHardBreak",!0)}function W(){const E=this.resume(),O=this.stack[this.stack.length-1];O.value=E}function me(){const E=this.resume(),O=this.stack[this.stack.length-1];O.value=E}function pe(){const E=this.resume(),O=this.stack[this.stack.length-1];O.value=E}function F(){const E=this.stack[this.stack.length-1];if(o("inReference")){const O=o("referenceType")||"shortcut";E.type+="Reference",E.referenceType=O,delete E.url,delete E.title}else delete E.identifier,delete E.label;i("referenceType")}function B(){const E=this.stack[this.stack.length-1];if(o("inReference")){const O=o("referenceType")||"shortcut";E.type+="Reference",E.referenceType=O,delete E.url,delete E.title}else delete E.identifier,delete E.label;i("referenceType")}function g(E){const O=this.sliceSerialize(E),j=this.stack[this.stack.length-2];j.label=uv(O),j.identifier=bt(O).toLowerCase()}function Q(){const E=this.stack[this.stack.length-1],O=this.resume(),j=this.stack[this.stack.length-1];if(i("inReference",!0),j.type==="link"){const Z=E.children;j.children=Z}else j.alt=O}function G(){const E=this.resume(),O=this.stack[this.stack.length-1];O.url=E}function k(){const E=this.resume(),O=this.stack[this.stack.length-1];O.title=E}function ke(){i("inReference")}function gn(){i("referenceType","collapsed")}function re(E){const O=this.resume(),j=this.stack[this.stack.length-1];j.label=O,j.identifier=bt(this.sliceSerialize(E)).toLowerCase(),i("referenceType","full")}function un(E){i("characterReferenceType",E.type)}function Bn(E){const O=this.sliceSerialize(E),j=o("characterReferenceType");let Z;j?(Z=jd(O,j==="characterReferenceMarkerNumeric"?10:16),i("characterReferenceType")):Z=Ra(O);const J=this.stack.pop();J.value+=Z,J.position.end=$n(E.end)}function _t(E){A.call(this,E);const O=this.stack[this.stack.length-1];O.url=this.sliceSerialize(E)}function Ot(E){A.call(this,E);const O=this.stack[this.stack.length-1];O.url="mailto:"+this.sliceSerialize(E)}function Ki(){return{type:"blockquote",children:[]}}function Wa(){return{type:"code",lang:null,meta:null,value:""}}function uh(){return{type:"inlineCode",value:""}}function ah(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function sh(){return{type:"emphasis",children:[]}}function Qa(){return{type:"heading",depth:void 0,children:[]}}function Ka(){return{type:"break"}}function Xa(){return{type:"html",value:""}}function ch(){return{type:"image",title:null,url:"",alt:null}}function Ya(){return{type:"link",title:null,url:"",children:[]}}function qa(E){return{type:"list",ordered:E.type==="listOrdered",start:null,spread:E._spread,children:[]}}function fh(E){return{type:"listItem",spread:E._spread,checked:null,children:[]}}function ph(){return{type:"paragraph",children:[]}}function dh(){return{type:"strong",children:[]}}function hh(){return{type:"text",value:""}}function mh(){return{type:"thematicBreak"}}}function $n(e){return{line:e.line,column:e.column,offset:e.offset}}function $d(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?$d(e,r):fv(e,r)}}function fv(e,n){let t;for(t in n)if(Ud.call(n,t)){if(t==="canContainEols"){const r=n[t];r&&e[t].push(...r)}else if(t==="transforms"){const r=n[t];r&&e[t].push(...r)}else if(t==="enter"||t==="exit"){const r=n[t];r&&Object.assign(e[t],r)}}}function Mc(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Ar({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Ar({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Ar({start:n.start,end:n.end})+") is still open")}function pv(e){Object.assign(this,{Parser:t=>{const r=this.data("settings");return sv(t,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function dv(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function hv(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
67
+ `}]}function mv(e,n){const t=n.value?n.value+`
68
+ `:"",r=n.lang?n.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,l={};r&&(l.className=["language-"+r]);let i={type:"element",tagName:"code",properties:l,children:[{type:"text",value:t}]};return n.meta&&(i.data={meta:n.meta}),e.patch(n,i),i=e.applyData(n,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(n,i),i}function gv(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function yv(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function sr(e){const n=[];let t=-1,r=0,l=0;for(;++t<e.length;){const i=e.charCodeAt(t);let o="";if(i===37&&Qe(e.charCodeAt(t+1))&&Qe(e.charCodeAt(t+2)))l=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(o=String.fromCharCode(i));else if(i>55295&&i<57344){const u=e.charCodeAt(t+1);i<56320&&u>56319&&u<57344?(o=String.fromCharCode(i,u),l=1):o="�"}else o=String.fromCharCode(i);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+l+1,o=""),l&&(t+=l,l=0)}return n.join("")+e.slice(r)}function Hd(e,n){const t=String(n.identifier).toUpperCase(),r=sr(t.toLowerCase()),l=e.footnoteOrder.indexOf(t);let i;l===-1?(e.footnoteOrder.push(t),e.footnoteCounts[t]=1,i=e.footnoteOrder.length):(e.footnoteCounts[t]++,i=l+1);const o=e.footnoteCounts[t],u={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(n,u);const a={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(n,a),e.applyData(n,a)}function vv(e,n){const t=e.footnoteById;let r=1;for(;r in t;)r++;const l=String(r);return t[l]={type:"footnoteDefinition",identifier:l,children:[{type:"paragraph",children:n.children}],position:n.position},Hd(e,{type:"footnoteReference",identifier:l,position:n.position})}function kv(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function xv(e,n){if(e.dangerous){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}return null}function Vd(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return{type:"text",value:"!["+n.alt+r};const l=e.all(n),i=l[0];i&&i.type==="text"?i.value="["+i.value:l.unshift({type:"text",value:"["});const o=l[l.length-1];return o&&o.type==="text"?o.value+=r:l.push({type:"text",value:r}),l}function wv(e,n){const t=e.definition(n.identifier);if(!t)return Vd(e,n);const r={src:sr(t.url||""),alt:n.alt};t.title!==null&&t.title!==void 0&&(r.title=t.title);const l={type:"element",tagName:"img",properties:r,children:[]};return e.patch(n,l),e.applyData(n,l)}function Sv(e,n){const t={src:sr(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function Ev(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function Cv(e,n){const t=e.definition(n.identifier);if(!t)return Vd(e,n);const r={href:sr(t.url||"")};t.title!==null&&t.title!==void 0&&(r.title=t.title);const l={type:"element",tagName:"a",properties:r,children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function Pv(e,n){const t={href:sr(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Tv(e,n,t){const r=e.all(n),l=t?Lv(t):Wd(n),i={},o=[];if(typeof n.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let u=-1;for(;++u<r.length;){const c=r[u];(l||u!==0||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:`
69
+ `}),c.type==="element"&&c.tagName==="p"&&!l?o.push(...c.children):o.push(c)}const a=r[r.length-1];a&&(l||a.type!=="element"||a.tagName!=="p")&&o.push({type:"text",value:`
70
+ `});const s={type:"element",tagName:"li",properties:i,children:o};return e.patch(n,s),e.applyData(n,s)}function Lv(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=Wd(t[r])}return n}function Wd(e){const n=e.spread;return n??e.children.length>1}function zv(e,n){const t={},r=e.all(n);let l=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++l<r.length;){const o=r[l];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const i={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,i),e.applyData(n,i)}function _v(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Ov(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function Fv(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const Da=Qd("start"),Ma=Qd("end");function Iv(e){return{start:Da(e),end:Ma(e)}}function Qd(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};return{line:r.line||null,column:r.column||null,offset:r.offset>-1?r.offset:null}}}function Nv(e,n){const t=e.all(n),r=t.shift(),l=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],o),l.push(o)}if(t.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},u=Da(n.children[1]),a=Ma(n.children[n.children.length-1]);u.line&&a.line&&(o.position={start:u,end:a}),l.push(o)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(n,i),e.applyData(n,i)}function Rv(e,n,t){const r=t?t.children:void 0,i=(r?r.indexOf(n):1)===0?"th":"td",o=t&&t.type==="table"?t.align:void 0,u=o?o.length:n.children.length;let a=-1;const s=[];for(;++a<u;){const f=n.children[a],h={},p=o?o[a]:void 0;p&&(h.align=p);let w={type:"element",tagName:i,properties:h,children:[]};f&&(w.children=e.all(f),e.patch(f,w),w=e.applyData(n,w)),s.push(w)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(n,c),e.applyData(n,c)}function Av(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const Bc=9,jc=32;function Dv(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),l=0;const i=[];for(;r;)i.push(Uc(n.slice(l,r.index),l>0,!0),r[0]),l=r.index+r[0].length,r=t.exec(n);return i.push(Uc(n.slice(l),l>0,!1)),i.join("")}function Uc(e,n,t){let r=0,l=e.length;if(n){let i=e.codePointAt(r);for(;i===Bc||i===jc;)r++,i=e.codePointAt(r)}if(t){let i=e.codePointAt(l-1);for(;i===Bc||i===jc;)l--,i=e.codePointAt(l-1)}return l>r?e.slice(r,l):""}function Mv(e,n){const t={type:"text",value:Dv(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function Bv(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const jv={blockquote:dv,break:hv,code:mv,delete:gv,emphasis:yv,footnoteReference:Hd,footnote:vv,heading:kv,html:xv,imageReference:wv,image:Sv,inlineCode:Ev,linkReference:Cv,link:Pv,listItem:Tv,list:zv,paragraph:_v,root:Ov,strong:Fv,table:Nv,tableCell:Av,tableRow:Rv,text:Mv,thematicBreak:Bv,toml:Ll,yaml:Ll,definition:Ll,footnoteDefinition:Ll};function Ll(){return null}const Kd=function(e){if(e==null)return Vv;if(typeof e=="string")return Hv(e);if(typeof e=="object")return Array.isArray(e)?Uv(e):$v(e);if(typeof e=="function")return Ai(e);throw new Error("Expected function, string, or object as test")};function Uv(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=Kd(e[t]);return Ai(r);function r(...l){let i=-1;for(;++i<n.length;)if(n[i].call(this,...l))return!0;return!1}}function $v(e){return Ai(n);function n(t){let r;for(r in e)if(t[r]!==e[r])return!1;return!0}}function Hv(e){return Ai(n);function n(t){return t&&t.type===e}}function Ai(e){return n;function n(t,...r){return!!(t&&typeof t=="object"&&"type"in t&&e.call(this,t,...r))}}function Vv(){return!0}const Wv=!0,$c=!1,Qv="skip",Kv=function(e,n,t,r){typeof n=="function"&&typeof t!="function"&&(r=t,t=n,n=null);const l=Kd(n),i=r?-1:1;o(e,void 0,[])();function o(u,a,s){const c=u&&typeof u=="object"?u:{};if(typeof c.type=="string"){const h=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(u.type+(h?"<"+h+">":""))+")"})}return f;function f(){let h=[],p,w,v;if((!n||l(u,a,s[s.length-1]||null))&&(h=Xv(t(u,s)),h[0]===$c))return h;if(u.children&&h[0]!==Qv)for(w=(r?u.children.length:-1)+i,v=s.concat(u);w>-1&&w<u.children.length;){if(p=o(u.children[w],w,v)(),p[0]===$c)return p;w=typeof p[1]=="number"?p[1]:w+i}return h}}};function Xv(e){return Array.isArray(e)?e:typeof e=="number"?[Wv,e]:[e]}const Ba=function(e,n,t,r){typeof n=="function"&&typeof t!="function"&&(r=t,t=n,n=null),Kv(e,n,l,r);function l(i,o){const u=o[o.length-1];return t(i,u?u.children.indexOf(i):null,u)}};function Yv(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column}const Hc={}.hasOwnProperty;function qv(e){const n=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return Ba(e,"definition",r=>{const l=Vc(r.identifier);l&&!Hc.call(n,l)&&(n[l]=r)}),t;function t(r){const l=Vc(r);return l&&Hc.call(n,l)?n[l]:null}}function Vc(e){return String(e||"").toUpperCase()}const gi={}.hasOwnProperty;function bv(e,n){const t=n||{},r=t.allowDangerousHtml||!1,l={};return o.dangerous=r,o.clobberPrefix=t.clobberPrefix===void 0||t.clobberPrefix===null?"user-content-":t.clobberPrefix,o.footnoteLabel=t.footnoteLabel||"Footnotes",o.footnoteLabelTagName=t.footnoteLabelTagName||"h2",o.footnoteLabelProperties=t.footnoteLabelProperties||{className:["sr-only"]},o.footnoteBackLabel=t.footnoteBackLabel||"Back to content",o.unknownHandler=t.unknownHandler,o.passThrough=t.passThrough,o.handlers={...jv,...t.handlers},o.definition=qv(e),o.footnoteById=l,o.footnoteOrder=[],o.footnoteCounts={},o.patch=Gv,o.applyData=Zv,o.one=u,o.all=a,o.wrap=ek,o.augment=i,Ba(e,"footnoteDefinition",s=>{const c=String(s.identifier).toUpperCase();gi.call(l,c)||(l[c]=s)}),o;function i(s,c){if(s&&"data"in s&&s.data){const f=s.data;f.hName&&(c.type!=="element"&&(c={type:"element",tagName:"",properties:{},children:[]}),c.tagName=f.hName),c.type==="element"&&f.hProperties&&(c.properties={...c.properties,...f.hProperties}),"children"in c&&c.children&&f.hChildren&&(c.children=f.hChildren)}if(s){const f="type"in s?s:{position:s};Yv(f)||(c.position={start:Da(f),end:Ma(f)})}return c}function o(s,c,f,h){return Array.isArray(f)&&(h=f,f={}),i(s,{type:"element",tagName:c,properties:f||{},children:h||[]})}function u(s,c){return Xd(o,s,c)}function a(s){return ja(o,s)}}function Gv(e,n){e.position&&(n.position=Iv(e))}function Zv(e,n){let t=n;if(e&&e.data){const r=e.data.hName,l=e.data.hChildren,i=e.data.hProperties;typeof r=="string"&&(t.type==="element"?t.tagName=r:t={type:"element",tagName:r,properties:{},children:[]}),t.type==="element"&&i&&(t.properties={...t.properties,...i}),"children"in t&&t.children&&l!==null&&l!==void 0&&(t.children=l)}return t}function Xd(e,n,t){const r=n&&n.type;if(!r)throw new Error("Expected node, got `"+n+"`");return gi.call(e.handlers,r)?e.handlers[r](e,n,t):e.passThrough&&e.passThrough.includes(r)?"children"in n?{...n,children:ja(e,n)}:n:e.unknownHandler?e.unknownHandler(e,n,t):Jv(e,n)}function ja(e,n){const t=[];if("children"in n){const r=n.children;let l=-1;for(;++l<r.length;){const i=Xd(e,r[l],n);if(i){if(l&&r[l-1].type==="break"&&(!Array.isArray(i)&&i.type==="text"&&(i.value=i.value.replace(/^\s+/,"")),!Array.isArray(i)&&i.type==="element")){const o=i.children[0];o&&o.type==="text"&&(o.value=o.value.replace(/^\s+/,""))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}function Jv(e,n){const t=n.data||{},r="value"in n&&!(gi.call(t,"hProperties")||gi.call(t,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:ja(e,n)};return e.patch(n,r),e.applyData(n,r)}function ek(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
71
+ `});++r<e.length;)r&&t.push({type:"text",value:`
72
+ `}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
73
+ `}),t}function nk(e){const n=[];let t=-1;for(;++t<e.footnoteOrder.length;){const r=e.footnoteById[e.footnoteOrder[t]];if(!r)continue;const l=e.all(r),i=String(r.identifier).toUpperCase(),o=sr(i.toLowerCase());let u=0;const a=[];for(;++u<=e.footnoteCounts[i];){const f={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+o+(u>1?"-"+u:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};u>1&&f.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(u)}]}),a.length>0&&a.push({type:"text",value:" "}),a.push(f)}const s=l[l.length-1];if(s&&s.type==="element"&&s.tagName==="p"){const f=s.children[s.children.length-1];f&&f.type==="text"?f.value+=" ":s.children.push({type:"text",value:" "}),s.children.push(...a)}else l.push(...a);const c={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+o},children:e.wrap(l,!0)};e.patch(r,c),n.push(c)}if(n.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:`
74
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(n,!0)},{type:"text",value:`
75
+ `}]}}function Yd(e,n){const t=bv(e,n),r=t.one(e,null),l=nk(t);return l&&r.children.push({type:"text",value:`
76
+ `},l),Array.isArray(r)?{type:"root",children:r}:r}const tk=function(e,n){return e&&"run"in e?lk(e,n):ik(e||n)},rk=tk;function lk(e,n){return(t,r,l)=>{e.run(Yd(t,n),r,i=>{l(i)})}}function ik(e){return n=>Yd(n,e)}class sl{constructor(n,t,r){this.property=n,this.normal=t,r&&(this.space=r)}}sl.prototype.property={};sl.prototype.normal={};sl.prototype.space=null;function qd(e,n){const t={},r={};let l=-1;for(;++l<e.length;)Object.assign(t,e[l].property),Object.assign(r,e[l].normal);return new sl(t,r,n)}function Ru(e){return e.toLowerCase()}class ln{constructor(n,t){this.property=n,this.attribute=t}}ln.prototype.space=null;ln.prototype.boolean=!1;ln.prototype.booleanish=!1;ln.prototype.overloadedBoolean=!1;ln.prototype.number=!1;ln.prototype.commaSeparated=!1;ln.prototype.spaceSeparated=!1;ln.prototype.commaOrSpaceSeparated=!1;ln.prototype.mustUseProperty=!1;ln.prototype.defined=!1;let ok=0;const H=zt(),ge=zt(),bd=zt(),z=zt(),ee=zt(),Gt=zt(),He=zt();function zt(){return 2**++ok}const Au=Object.freeze(Object.defineProperty({__proto__:null,boolean:H,booleanish:ge,commaOrSpaceSeparated:He,commaSeparated:Gt,number:z,overloadedBoolean:bd,spaceSeparated:ee},Symbol.toStringTag,{value:"Module"})),Oo=Object.keys(Au);class Ua extends ln{constructor(n,t,r,l){let i=-1;if(super(n,t),Wc(this,"space",l),typeof r=="number")for(;++i<Oo.length;){const o=Oo[i];Wc(this,Oo[i],(r&Au[o])===Au[o])}}}Ua.prototype.defined=!0;function Wc(e,n,t){t&&(e[n]=t)}const uk={}.hasOwnProperty;function cr(e){const n={},t={};let r;for(r in e.properties)if(uk.call(e.properties,r)){const l=e.properties[r],i=new Ua(r,e.transform(e.attributes||{},r),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),n[r]=i,t[Ru(r)]=r,t[Ru(i.attribute)]=r}return new sl(n,t,e.space)}const Gd=cr({space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Zd=cr({space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Jd(e,n){return n in e?e[n]:n}function eh(e,n){return Jd(e,n.toLowerCase())}const nh=cr({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:eh,properties:{xmlns:null,xmlnsXLink:null}}),th=cr({transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:ge,ariaAutoComplete:null,ariaBusy:ge,ariaChecked:ge,ariaColCount:z,ariaColIndex:z,ariaColSpan:z,ariaControls:ee,ariaCurrent:null,ariaDescribedBy:ee,ariaDetails:null,ariaDisabled:ge,ariaDropEffect:ee,ariaErrorMessage:null,ariaExpanded:ge,ariaFlowTo:ee,ariaGrabbed:ge,ariaHasPopup:null,ariaHidden:ge,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ee,ariaLevel:z,ariaLive:null,ariaModal:ge,ariaMultiLine:ge,ariaMultiSelectable:ge,ariaOrientation:null,ariaOwns:ee,ariaPlaceholder:null,ariaPosInSet:z,ariaPressed:ge,ariaReadOnly:ge,ariaRelevant:null,ariaRequired:ge,ariaRoleDescription:ee,ariaRowCount:z,ariaRowIndex:z,ariaRowSpan:z,ariaSelected:ge,ariaSetSize:z,ariaSort:null,ariaValueMax:z,ariaValueMin:z,ariaValueNow:z,ariaValueText:null,role:null}}),ak=cr({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:eh,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Gt,acceptCharset:ee,accessKey:ee,action:null,allow:null,allowFullScreen:H,allowPaymentRequest:H,allowUserMedia:H,alt:null,as:null,async:H,autoCapitalize:null,autoComplete:ee,autoFocus:H,autoPlay:H,blocking:ee,capture:H,charSet:null,checked:H,cite:null,className:ee,cols:z,colSpan:null,content:null,contentEditable:ge,controls:H,controlsList:ee,coords:z|Gt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:H,defer:H,dir:null,dirName:null,disabled:H,download:bd,draggable:ge,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:H,formTarget:null,headers:ee,height:z,hidden:H,high:z,href:null,hrefLang:null,htmlFor:ee,httpEquiv:ee,id:null,imageSizes:null,imageSrcSet:null,inert:H,inputMode:null,integrity:null,is:null,isMap:H,itemId:null,itemProp:ee,itemRef:ee,itemScope:H,itemType:ee,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:H,low:z,manifest:null,max:null,maxLength:z,media:null,method:null,min:null,minLength:z,multiple:H,muted:H,name:null,nonce:null,noModule:H,noValidate:H,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:H,optimum:z,pattern:null,ping:ee,placeholder:null,playsInline:H,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:H,referrerPolicy:null,rel:ee,required:H,reversed:H,rows:z,rowSpan:z,sandbox:ee,scope:null,scoped:H,seamless:H,selected:H,shape:null,size:z,sizes:null,slot:null,span:z,spellCheck:ge,src:null,srcDoc:null,srcLang:null,srcSet:null,start:z,step:null,style:null,tabIndex:z,target:null,title:null,translate:null,type:null,typeMustMatch:H,useMap:null,value:ge,width:z,wrap:null,align:null,aLink:null,archive:ee,axis:null,background:null,bgColor:null,border:z,borderColor:null,bottomMargin:z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:H,declare:H,event:null,face:null,frame:null,frameBorder:null,hSpace:z,leftMargin:z,link:null,longDesc:null,lowSrc:null,marginHeight:z,marginWidth:z,noResize:H,noHref:H,noShade:H,noWrap:H,object:null,profile:null,prompt:null,rev:null,rightMargin:z,rules:null,scheme:null,scrolling:ge,standby:null,summary:null,text:null,topMargin:z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:H,disableRemotePlayback:H,prefix:null,property:null,results:z,security:null,unselectable:null}}),sk=cr({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Jd,properties:{about:He,accentHeight:z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:z,amplitude:z,arabicForm:null,ascent:z,attributeName:null,attributeType:null,azimuth:z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:z,by:null,calcMode:null,capHeight:z,className:ee,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:z,diffuseConstant:z,direction:null,display:null,dur:null,divisor:z,dominantBaseline:null,download:H,dx:null,dy:null,edgeMode:null,editable:null,elevation:z,enableBackground:null,end:null,event:null,exponent:z,externalResourcesRequired:null,fill:null,fillOpacity:z,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Gt,g2:Gt,glyphName:Gt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:z,horizOriginX:z,horizOriginY:z,id:null,ideographic:z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:z,k:z,k1:z,k2:z,k3:z,k4:z,kernelMatrix:He,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:z,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:z,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:z,overlineThickness:z,paintOrder:null,panose1:null,path:null,pathLength:z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ee,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:z,pointsAtY:z,pointsAtZ:z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:He,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:He,rev:He,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:He,requiredFeatures:He,requiredFonts:He,requiredFormats:He,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:z,specularExponent:z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:z,strikethroughThickness:z,string:null,stroke:null,strokeDashArray:He,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:z,strokeOpacity:z,strokeWidth:null,style:null,surfaceScale:z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:He,tabIndex:z,tableValues:null,target:null,targetX:z,targetY:z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:He,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:z,underlineThickness:z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:z,values:null,vAlphabetic:z,vMathematical:z,vectorEffect:null,vHanging:z,vIdeographic:z,version:null,vertAdvY:z,vertOriginX:z,vertOriginY:z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),ck=/^data[-\w.:]+$/i,Qc=/-[a-z]/g,fk=/[A-Z]/g;function pk(e,n){const t=Ru(n);let r=n,l=ln;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&ck.test(n)){if(n.charAt(4)==="-"){const i=n.slice(5).replace(Qc,hk);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=n.slice(4);if(!Qc.test(i)){let o=i.replace(fk,dk);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}l=Ua}return new l(r,n)}function dk(e){return"-"+e.toLowerCase()}function hk(e){return e.charAt(1).toUpperCase()}const Kc={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},mk=qd([Zd,Gd,nh,th,ak],"html"),gk=qd([Zd,Gd,nh,th,sk],"svg");function yk(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return n=>{Ba(n,"element",(t,r,l)=>{const i=l;let o;if(e.allowedElements?o=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(o=e.disallowedElements.includes(t.tagName)),!o&&e.allowElement&&typeof r=="number"&&(o=!e.allowElement(t,r,i)),o&&typeof r=="number")return e.unwrapDisallowed&&t.children?i.children.splice(r,1,...t.children):i.children.splice(r,1),r})}}var rh={exports:{}},b={};/**
77
+ * @license React
78
+ * react-is.production.min.js
79
+ *
80
+ * Copyright (c) Facebook, Inc. and its affiliates.
81
+ *
82
+ * This source code is licensed under the MIT license found in the
83
+ * LICENSE file in the root directory of this source tree.
84
+ */var $a=Symbol.for("react.element"),Ha=Symbol.for("react.portal"),Di=Symbol.for("react.fragment"),Mi=Symbol.for("react.strict_mode"),Bi=Symbol.for("react.profiler"),ji=Symbol.for("react.provider"),Ui=Symbol.for("react.context"),vk=Symbol.for("react.server_context"),$i=Symbol.for("react.forward_ref"),Hi=Symbol.for("react.suspense"),Vi=Symbol.for("react.suspense_list"),Wi=Symbol.for("react.memo"),Qi=Symbol.for("react.lazy"),kk=Symbol.for("react.offscreen"),lh;lh=Symbol.for("react.module.reference");function on(e){if(typeof e=="object"&&e!==null){var n=e.$$typeof;switch(n){case $a:switch(e=e.type,e){case Di:case Bi:case Mi:case Hi:case Vi:return e;default:switch(e=e&&e.$$typeof,e){case vk:case Ui:case $i:case Qi:case Wi:case ji:return e;default:return n}}case Ha:return n}}}b.ContextConsumer=Ui;b.ContextProvider=ji;b.Element=$a;b.ForwardRef=$i;b.Fragment=Di;b.Lazy=Qi;b.Memo=Wi;b.Portal=Ha;b.Profiler=Bi;b.StrictMode=Mi;b.Suspense=Hi;b.SuspenseList=Vi;b.isAsyncMode=function(){return!1};b.isConcurrentMode=function(){return!1};b.isContextConsumer=function(e){return on(e)===Ui};b.isContextProvider=function(e){return on(e)===ji};b.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===$a};b.isForwardRef=function(e){return on(e)===$i};b.isFragment=function(e){return on(e)===Di};b.isLazy=function(e){return on(e)===Qi};b.isMemo=function(e){return on(e)===Wi};b.isPortal=function(e){return on(e)===Ha};b.isProfiler=function(e){return on(e)===Bi};b.isStrictMode=function(e){return on(e)===Mi};b.isSuspense=function(e){return on(e)===Hi};b.isSuspenseList=function(e){return on(e)===Vi};b.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Di||e===Bi||e===Mi||e===Hi||e===Vi||e===kk||typeof e=="object"&&e!==null&&(e.$$typeof===Qi||e.$$typeof===Wi||e.$$typeof===ji||e.$$typeof===Ui||e.$$typeof===$i||e.$$typeof===lh||e.getModuleId!==void 0)};b.typeOf=on;rh.exports=b;var xk=rh.exports;const wk=Ct(xk);function Sk(e){const n=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof n=="string"&&n.replace(/[ \t\n\f\r]/g,"")===""}function Ek(e){return e.join(" ").trim()}function Ck(e,n){const t=n||{};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}var Va={exports:{}},Xc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Pk=/\n/g,Tk=/^\s*/,Lk=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,zk=/^:\s*/,_k=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ok=/^[;\s]*/,Fk=/^\s+|\s+$/g,Ik=`
85
+ `,Yc="/",qc="*",pt="",Nk="comment",Rk="declaration",Ak=function(e,n){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];n=n||{};var t=1,r=1;function l(w){var v=w.match(Pk);v&&(t+=v.length);var C=w.lastIndexOf(Ik);r=~C?w.length-C:r+w.length}function i(){var w={line:t,column:r};return function(v){return v.position=new o(w),s(),v}}function o(w){this.start=w,this.end={line:t,column:r},this.source=n.source}o.prototype.content=e;function u(w){var v=new Error(n.source+":"+t+":"+r+": "+w);if(v.reason=w,v.filename=n.source,v.line=t,v.column=r,v.source=e,!n.silent)throw v}function a(w){var v=w.exec(e);if(v){var C=v[0];return l(C),e=e.slice(C.length),v}}function s(){a(Tk)}function c(w){var v;for(w=w||[];v=f();)v!==!1&&w.push(v);return w}function f(){var w=i();if(!(Yc!=e.charAt(0)||qc!=e.charAt(1))){for(var v=2;pt!=e.charAt(v)&&(qc!=e.charAt(v)||Yc!=e.charAt(v+1));)++v;if(v+=2,pt===e.charAt(v-1))return u("End of comment missing");var C=e.slice(2,v-2);return r+=2,l(C),e=e.slice(v),r+=2,w({type:Nk,comment:C})}}function h(){var w=i(),v=a(Lk);if(v){if(f(),!a(zk))return u("property missing ':'");var C=a(_k),d=w({type:Rk,property:bc(v[0].replace(Xc,pt)),value:C?bc(C[0].replace(Xc,pt)):pt});return a(Ok),d}}function p(){var w=[];c(w);for(var v;v=h();)v!==!1&&(w.push(v),c(w));return w}return s(),p()};function bc(e){return e?e.replace(Fk,pt):pt}var Dk=Ak;function ih(e,n){var t=null;if(!e||typeof e!="string")return t;for(var r,l=Dk(e),i=typeof n=="function",o,u,a=0,s=l.length;a<s;a++)r=l[a],o=r.property,u=r.value,i?n(o,u,r):u&&(t||(t={}),t[o]=u);return t}Va.exports=ih;Va.exports.default=ih;var Mk=Va.exports;const Bk=Ct(Mk),Du={}.hasOwnProperty,jk=new Set(["table","thead","tbody","tfoot","tr"]);function oh(e,n){const t=[];let r=-1,l;for(;++r<n.children.length;)l=n.children[r],l.type==="element"?t.push(Uk(e,l,r,n)):l.type==="text"?(n.type!=="element"||!jk.has(n.tagName)||!Sk(l))&&t.push(l.value):l.type==="raw"&&!e.options.skipHtml&&t.push(l.value);return t}function Uk(e,n,t,r){const l=e.options,i=l.transformLinkUri===void 0?$y:l.transformLinkUri,o=e.schema,u=n.tagName,a={};let s=o,c;if(o.space==="html"&&u==="svg"&&(s=gk,e.schema=s),n.properties)for(c in n.properties)Du.call(n.properties,c)&&Hk(a,c,n.properties[c],e);(u==="ol"||u==="ul")&&e.listDepth++;const f=oh(e,n);(u==="ol"||u==="ul")&&e.listDepth--,e.schema=o;const h=n.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},p=l.components&&Du.call(l.components,u)?l.components[u]:u,w=typeof p=="string"||p===gt.Fragment;if(!wk.isValidElementType(p))throw new TypeError(`Component for name \`${u}\` not defined or is not renderable`);if(a.key=t,u==="a"&&l.linkTarget&&(a.target=typeof l.linkTarget=="function"?l.linkTarget(String(a.href||""),n.children,typeof a.title=="string"?a.title:null):l.linkTarget),u==="a"&&i&&(a.href=i(String(a.href||""),n.children,typeof a.title=="string"?a.title:null)),!w&&u==="code"&&r.type==="element"&&r.tagName!=="pre"&&(a.inline=!0),!w&&(u==="h1"||u==="h2"||u==="h3"||u==="h4"||u==="h5"||u==="h6")&&(a.level=Number.parseInt(u.charAt(1),10)),u==="img"&&l.transformImageUri&&(a.src=l.transformImageUri(String(a.src||""),String(a.alt||""),typeof a.title=="string"?a.title:null)),!w&&u==="li"&&r.type==="element"){const v=$k(n);a.checked=v&&v.properties?!!v.properties.checked:null,a.index=Fo(r,n),a.ordered=r.tagName==="ol"}return!w&&(u==="ol"||u==="ul")&&(a.ordered=u==="ol",a.depth=e.listDepth),(u==="td"||u==="th")&&(a.align&&(a.style||(a.style={}),a.style.textAlign=a.align,delete a.align),w||(a.isHeader=u==="th")),!w&&u==="tr"&&r.type==="element"&&(a.isHeader=r.tagName==="thead"),l.sourcePos&&(a["data-sourcepos"]=Qk(h)),!w&&l.rawSourcePos&&(a.sourcePosition=n.position),!w&&l.includeElementIndex&&(a.index=Fo(r,n),a.siblingCount=Fo(r)),w||(a.node=n),f.length>0?gt.createElement(p,a,f):gt.createElement(p,a)}function $k(e){let n=-1;for(;++n<e.children.length;){const t=e.children[n];if(t.type==="element"&&t.tagName==="input")return t}return null}function Fo(e,n){let t=-1,r=0;for(;++t<e.children.length&&e.children[t]!==n;)e.children[t].type==="element"&&r++;return r}function Hk(e,n,t,r){const l=pk(r.schema,n);let i=t;i==null||i!==i||(Array.isArray(i)&&(i=l.commaSeparated?Ck(i):Ek(i)),l.property==="style"&&typeof i=="string"&&(i=Vk(i)),l.space&&l.property?e[Du.call(Kc,l.property)?Kc[l.property]:l.property]=i:l.attribute&&(e[l.attribute]=i))}function Vk(e){const n={};try{Bk(e,t)}catch{}return n;function t(r,l){const i=r.slice(0,4)==="-ms-"?`ms-${r.slice(4)}`:r;n[i.replace(/-([a-z])/g,Wk)]=l}}function Wk(e,n){return n.toUpperCase()}function Qk(e){return[e.start.line,":",e.start.column,"-",e.end.line,":",e.end.column].map(String).join("")}const Gc={}.hasOwnProperty,Kk="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",zl={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function Xk(e){for(const i in zl)if(Gc.call(zl,i)&&Gc.call(e,i)){const o=zl[i];console.warn(`[react-markdown] Warning: please ${o.to?`use \`${o.to}\` instead of`:"remove"} \`${i}\` (see <${Kk}#${o.id}> for more info)`),delete zl[i]}const n=r1().use(pv).use(e.remarkPlugins||[]).use(rk,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(yk,e),t=new Pd;typeof e.children=="string"?t.value=e.children:e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=n.runSync(n.parse(t),t);if(r.type!=="root")throw new TypeError("Expected a `root` node");let l=gt.createElement(gt.Fragment,{},oh({options:e,schema:mk,listDepth:0},r));return e.className&&(l=gt.createElement("div",{className:e.className},l)),l}Xk.propTypes={children:$.string,className:$.string,allowElement:$.func,allowedElements:$.arrayOf($.string),disallowedElements:$.arrayOf($.string),unwrapDisallowed:$.bool,remarkPlugins:$.arrayOf($.oneOfType([$.object,$.func,$.arrayOf($.oneOfType([$.bool,$.string,$.object,$.func,$.arrayOf($.any)]))])),rehypePlugins:$.arrayOf($.oneOfType([$.object,$.func,$.arrayOf($.oneOfType([$.bool,$.string,$.object,$.func,$.arrayOf($.any)]))])),sourcePos:$.bool,rawSourcePos:$.bool,skipHtml:$.bool,includeElementIndex:$.bool,transformLinkUri:$.oneOfType([$.func,$.bool]),linkTarget:$.oneOfType([$.func,$.string]),transformImageUri:$.func,components:$.object};export{Jk as H,ex as L,Gk as O,$ as P,gt as R,Dg as a,qk as b,Yk as c,Xk as d,Ih as e,nx as f,Ct as g,Zk as h,Py as i,N as r,bk as u};