crfm-helm 0.5.3__py3-none-any.whl → 0.5.5__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.
Potentially problematic release.
This version of crfm-helm might be problematic. Click here for more details.
- crfm_helm-0.5.5.dist-info/METADATA +413 -0
- crfm_helm-0.5.5.dist-info/RECORD +894 -0
- {crfm_helm-0.5.3.dist-info → crfm_helm-0.5.5.dist-info}/WHEEL +1 -1
- helm/benchmark/adaptation/adapter_spec.py +13 -1
- helm/benchmark/adaptation/adapters/adapter_factory.py +15 -1
- helm/benchmark/adaptation/adapters/binary_ranking_adapter.py +1 -1
- helm/benchmark/adaptation/adapters/chat_adapter.py +49 -0
- helm/benchmark/adaptation/adapters/ehr_instruction_adapter.py +108 -0
- helm/benchmark/adaptation/adapters/generation_adapter.py +1 -1
- helm/benchmark/adaptation/adapters/in_context_learning_adapter.py +1 -1
- helm/benchmark/adaptation/adapters/language_modeling_adapter.py +1 -1
- helm/benchmark/adaptation/adapters/multimodal/generation_multimodal_adapter.py +4 -2
- helm/benchmark/adaptation/adapters/multimodal/in_context_learning_multimodal_adapter.py +1 -1
- helm/benchmark/adaptation/adapters/multimodal/multiple_choice_joint_multimodal_adapter.py +1 -1
- helm/benchmark/adaptation/adapters/multimodal/test_in_context_learning_multimodal_adapter.py +4 -2
- helm/benchmark/adaptation/adapters/multimodal/test_multimodal_prompt.py +1 -1
- helm/benchmark/adaptation/adapters/multiple_choice_calibrated_adapter.py +1 -1
- helm/benchmark/adaptation/adapters/multiple_choice_joint_adapter.py +2 -2
- helm/benchmark/adaptation/adapters/multiple_choice_joint_chain_of_thought_adapter.py +87 -0
- helm/benchmark/adaptation/adapters/multiple_choice_separate_adapter.py +1 -1
- helm/benchmark/adaptation/adapters/test_generation_adapter.py +3 -3
- helm/benchmark/adaptation/adapters/test_language_modeling_adapter.py +2 -2
- helm/benchmark/adaptation/adapters/test_multiple_choice_joint_adapter.py +2 -2
- helm/benchmark/adaptation/common_adapter_specs.py +69 -4
- helm/benchmark/adaptation/prompt.py +1 -1
- helm/benchmark/annotation/aci_bench_annotator.py +95 -0
- helm/benchmark/annotation/air_bench_annotator.py +20 -5
- helm/benchmark/annotation/annotator.py +5 -0
- helm/benchmark/annotation/annotator_factory.py +3 -20
- helm/benchmark/annotation/anthropic_red_team_annotator.py +11 -24
- helm/benchmark/annotation/autobencher_capabilities_annotator.py +107 -0
- helm/benchmark/annotation/autobencher_safety_annotator.py +98 -0
- helm/benchmark/annotation/bigcodebench_annotator.py +108 -0
- helm/benchmark/annotation/bird_sql_annotator.py +58 -0
- helm/benchmark/annotation/call_center_annotator.py +22 -11
- helm/benchmark/annotation/chw_care_plan_annotator.py +98 -0
- helm/benchmark/annotation/czech_bank_qa_annotator.py +78 -0
- helm/benchmark/annotation/dischargeme_annotator.py +107 -0
- helm/benchmark/annotation/ehr_sql_annotator.py +87 -0
- helm/benchmark/annotation/harm_bench_annotator.py +11 -24
- helm/benchmark/annotation/helpdesk_call_summarization_annotator.py +131 -0
- helm/benchmark/annotation/image2struct/image_compiler_annotator.py +6 -1
- helm/benchmark/annotation/live_qa_annotator.py +10 -5
- helm/benchmark/annotation/med_dialog_annotator.py +99 -0
- helm/benchmark/annotation/medalign_annotator.py +100 -0
- helm/benchmark/annotation/medi_qa_annotator.py +98 -0
- helm/benchmark/annotation/medication_qa_annotator.py +90 -61
- helm/benchmark/annotation/mental_health_annotator.py +98 -0
- helm/benchmark/annotation/mimic_rrs_annotator.py +100 -0
- helm/benchmark/annotation/model_as_judge.py +281 -18
- helm/benchmark/annotation/mtsamples_procedures_annotator.py +98 -0
- helm/benchmark/annotation/mtsamples_replicate_annotator.py +101 -0
- helm/benchmark/annotation/omni_math/gpt_evaluation_template.txt +152 -0
- helm/benchmark/annotation/omni_math/gpt_evaluation_zero_shot_template.txt +36 -0
- helm/benchmark/annotation/omni_math_annotator.py +132 -0
- helm/benchmark/annotation/simple_safety_tests_annotator.py +11 -25
- helm/benchmark/annotation/spider_annotator.py +18 -0
- helm/benchmark/annotation/starr_patient_instructions_annotator.py +98 -0
- helm/benchmark/annotation/wildbench/eval_template.pairwise.v2.md +75 -0
- helm/benchmark/annotation/wildbench/eval_template.score.v2.md +66 -0
- helm/benchmark/annotation/wildbench_annotator.py +119 -0
- helm/benchmark/annotation/xstest_annotator.py +20 -30
- helm/benchmark/annotation_executor.py +35 -15
- helm/benchmark/augmentations/cleva_perturbation.py +9 -8
- helm/benchmark/augmentations/contraction_expansion_perturbation.py +2 -2
- helm/benchmark/augmentations/contrast_sets_perturbation.py +2 -2
- helm/benchmark/augmentations/dialect_perturbation.py +4 -5
- helm/benchmark/augmentations/extra_space_perturbation.py +2 -2
- helm/benchmark/augmentations/filler_words_perturbation.py +2 -2
- helm/benchmark/augmentations/gender_perturbation.py +2 -2
- helm/benchmark/augmentations/lowercase_perturbation.py +2 -2
- helm/benchmark/augmentations/mild_mix_perturbation.py +6 -6
- helm/benchmark/augmentations/misspelling_perturbation.py +2 -2
- helm/benchmark/augmentations/person_name_perturbation.py +4 -5
- helm/benchmark/augmentations/perturbation.py +1 -1
- helm/benchmark/augmentations/space_perturbation.py +2 -2
- helm/benchmark/augmentations/suffix_perturbation.py +2 -2
- helm/benchmark/augmentations/synonym_perturbation.py +4 -3
- helm/benchmark/augmentations/test_perturbation.py +16 -13
- helm/benchmark/augmentations/translate_perturbation.py +2 -2
- helm/benchmark/augmentations/typos_perturbation.py +2 -2
- helm/benchmark/data_preprocessor.py +2 -2
- helm/benchmark/huggingface_registration.py +2 -7
- helm/benchmark/metrics/aci_bench_metrics.py +34 -0
- helm/benchmark/metrics/basic_metrics.py +6 -6
- helm/benchmark/metrics/bbq_metrics.py +2 -2
- helm/benchmark/metrics/bias_metrics.py +12 -3
- helm/benchmark/metrics/bigcodebench_metrics.py +25 -0
- helm/benchmark/metrics/bird_sql_metrics.py +28 -0
- helm/benchmark/metrics/chw_care_plan_metrics.py +34 -0
- helm/benchmark/metrics/classification_metrics.py +76 -12
- helm/benchmark/metrics/cleva_harms_metrics.py +8 -7
- helm/benchmark/metrics/code_metrics.py +5 -5
- helm/benchmark/metrics/comet_metric.py +125 -0
- helm/benchmark/metrics/common_metric_specs.py +9 -2
- helm/benchmark/metrics/conv_fin_qa_calc_metrics.py +72 -0
- helm/benchmark/metrics/copyright_metrics.py +4 -4
- helm/benchmark/metrics/czech_bank_qa_metrics.py +29 -0
- helm/benchmark/metrics/decodingtrust_fairness_metrics.py +2 -2
- helm/benchmark/metrics/decodingtrust_privacy_metrics.py +2 -2
- helm/benchmark/metrics/decodingtrust_stereotype_bias_metrics.py +2 -2
- helm/benchmark/metrics/dischargeme_metrics.py +34 -0
- helm/benchmark/metrics/disinformation_metrics.py +4 -4
- helm/benchmark/metrics/dry_run_metrics.py +5 -5
- helm/benchmark/metrics/efficiency_metrics.py +3 -3
- helm/benchmark/metrics/ehr_sql_metrics.py +103 -0
- helm/benchmark/metrics/evaluate_instances_metric.py +3 -3
- helm/benchmark/metrics/evaluate_reference_metrics.py +144 -16
- helm/benchmark/metrics/gpqa_chain_of_thought_metric.py +103 -0
- helm/benchmark/metrics/gpt4_audio_critique_metrics.py +167 -0
- helm/benchmark/metrics/helpdesk_call_summarization_metrics.py +36 -0
- helm/benchmark/metrics/ifeval/instructions.py +1574 -0
- helm/benchmark/metrics/ifeval/instructions_registry.py +182 -0
- helm/benchmark/metrics/ifeval/instructions_registry.pyi +3 -0
- helm/benchmark/metrics/ifeval/instructions_util.py +153 -0
- helm/benchmark/metrics/ifeval_metrics.py +55 -0
- helm/benchmark/metrics/image_generation/aesthetics_metrics.py +1 -1
- helm/benchmark/metrics/image_generation/detection_metrics.py +1 -1
- helm/benchmark/metrics/image_generation/detectors/vitdet.py +1 -1
- helm/benchmark/metrics/image_generation/fractal_dimension/test_fractal_dimension_util.py +1 -1
- helm/benchmark/metrics/image_generation/fractal_dimension_metric.py +1 -1
- helm/benchmark/metrics/image_generation/nsfw_metrics.py +1 -1
- helm/benchmark/metrics/image_generation/q16/test_q16.py +3 -1
- helm/benchmark/metrics/image_generation/q16_toxicity_metrics.py +1 -1
- helm/benchmark/metrics/image_generation/skin_tone_metrics.py +2 -2
- helm/benchmark/metrics/image_generation/watermark/test_watermark_detector.py +1 -1
- helm/benchmark/metrics/image_generation/watermark_metrics.py +1 -1
- helm/benchmark/metrics/instruction_following_critique_metrics.py +4 -4
- helm/benchmark/metrics/language_modeling_metrics.py +4 -4
- helm/benchmark/metrics/machine_translation_metrics.py +2 -2
- helm/benchmark/metrics/med_dialog_metrics.py +34 -0
- helm/benchmark/metrics/medalign_metrics.py +34 -0
- helm/benchmark/metrics/medcalc_bench_metrics.py +124 -0
- helm/benchmark/metrics/medec_metrics.py +101 -0
- helm/benchmark/metrics/medi_qa_metrics.py +34 -0
- helm/benchmark/metrics/medication_qa_metrics.py +15 -4
- helm/benchmark/metrics/mental_health_metrics.py +34 -0
- helm/benchmark/metrics/metric.py +3 -3
- helm/benchmark/metrics/mimic_rrs_metrics.py +34 -0
- helm/benchmark/metrics/mimiciv_billing_code_metrics.py +96 -0
- helm/benchmark/metrics/mtsamples_procedures_metrics.py +34 -0
- helm/benchmark/metrics/mtsamples_replicate_metrics.py +34 -0
- helm/benchmark/metrics/nltk_helper.py +32 -0
- helm/benchmark/metrics/numeracy_metrics.py +4 -4
- helm/benchmark/metrics/omni_math_metrics.py +32 -0
- helm/benchmark/metrics/output_processing_metric.py +60 -0
- helm/benchmark/metrics/output_processors.py +15 -0
- helm/benchmark/metrics/paraphrase_generation_metrics.py +2 -2
- helm/benchmark/metrics/ranking_metrics.py +3 -3
- helm/benchmark/metrics/reference_metric.py +3 -3
- helm/benchmark/metrics/safety_metrics.py +39 -17
- helm/benchmark/metrics/{bhasa_metrics.py → seahelm_metrics.py} +3 -3
- helm/benchmark/metrics/seahelm_metrics_specs.py +10 -0
- helm/benchmark/metrics/spider_metrics.py +7 -0
- helm/benchmark/metrics/starr_patient_instructions_metrics.py +34 -0
- helm/benchmark/metrics/statistic.py +1 -1
- helm/benchmark/metrics/summac/model_summac.py +1 -1
- helm/benchmark/metrics/summarization_critique_metrics.py +4 -4
- helm/benchmark/metrics/summarization_metrics.py +19 -9
- helm/benchmark/metrics/test_bias_metrics.py +5 -1
- helm/benchmark/metrics/test_classification_metrics.py +140 -68
- helm/benchmark/metrics/test_evaluate_reference_metrics.py +15 -0
- helm/benchmark/metrics/test_metric.py +1 -1
- helm/benchmark/metrics/test_statistic.py +2 -2
- helm/benchmark/metrics/tokens/ai21_token_cost_estimator.py +1 -1
- helm/benchmark/metrics/tokens/auto_token_cost_estimator.py +6 -6
- helm/benchmark/metrics/tokens/cohere_token_cost_estimator.py +1 -1
- helm/benchmark/metrics/tokens/free_token_cost_estimator.py +1 -1
- helm/benchmark/metrics/tokens/gooseai_token_cost_estimator.py +1 -1
- helm/benchmark/metrics/tokens/openai_token_cost_estimator.py +1 -1
- helm/benchmark/metrics/tokens/test_ai21_token_cost_estimator.py +1 -1
- helm/benchmark/metrics/tokens/test_openai_token_cost_estimator.py +1 -1
- helm/benchmark/metrics/toxicity_metrics.py +4 -4
- helm/benchmark/metrics/unitxt_metrics.py +21 -4
- helm/benchmark/metrics/vision_language/image_metrics.py +7 -3
- helm/benchmark/metrics/wildbench_metrics.py +34 -0
- helm/benchmark/model_metadata_registry.py +16 -0
- helm/benchmark/presentation/create_plots.py +1 -1
- helm/benchmark/presentation/schema.py +3 -0
- helm/benchmark/presentation/summarize.py +119 -256
- helm/benchmark/presentation/test_summarize.py +145 -3
- helm/benchmark/presentation/torr_robustness_summarizer.py +178 -0
- helm/benchmark/reeval_run.py +203 -0
- helm/benchmark/reeval_runner.py +355 -0
- helm/benchmark/run.py +8 -17
- helm/benchmark/run_expander.py +105 -8
- helm/benchmark/run_spec_factory.py +12 -0
- helm/benchmark/run_specs/air_bench_run_specs.py +21 -3
- helm/benchmark/run_specs/audio_run_specs.py +613 -0
- helm/benchmark/run_specs/call_center_run_specs.py +49 -0
- helm/benchmark/run_specs/capabilities_run_specs.py +308 -0
- helm/benchmark/run_specs/classic_run_specs.py +1 -69
- helm/benchmark/run_specs/enem_challenge_specs.py +31 -0
- helm/benchmark/run_specs/enterprise_run_specs.py +260 -0
- helm/benchmark/run_specs/experimental_run_specs.py +112 -3
- helm/benchmark/run_specs/finance_run_specs.py +6 -2
- helm/benchmark/run_specs/imdb_ptbr_run_specs.py +30 -0
- helm/benchmark/run_specs/lite_run_specs.py +2 -2
- helm/benchmark/run_specs/long_context_run_specs.py +89 -0
- helm/benchmark/run_specs/medhelm_run_specs.py +1155 -0
- helm/benchmark/run_specs/mmlu_clinical_afr_run_specs.py +49 -0
- helm/benchmark/run_specs/oab_exams_specs.py +32 -0
- helm/benchmark/run_specs/safety_run_specs.py +37 -0
- helm/benchmark/run_specs/{bhasa_run_specs.py → seahelm_run_specs.py} +66 -52
- helm/benchmark/run_specs/sql_run_specs.py +54 -0
- helm/benchmark/run_specs/tweetsentbr_run_specs.py +32 -0
- helm/benchmark/run_specs/unitxt_run_specs.py +14 -5
- helm/benchmark/run_specs/vlm_run_specs.py +83 -5
- helm/benchmark/run_specs/winogrande_afr_run_specs.py +47 -0
- helm/benchmark/scenarios/aci_bench_scenario.py +120 -0
- helm/benchmark/scenarios/air_bench_scenario.py +6 -1
- helm/benchmark/scenarios/anthropic_hh_rlhf_scenario.py +5 -3
- helm/benchmark/scenarios/anthropic_red_team_scenario.py +1 -1
- helm/benchmark/scenarios/audio_language/__init__.py +0 -0
- helm/benchmark/scenarios/audio_language/air_bench_chat_scenario.py +128 -0
- helm/benchmark/scenarios/audio_language/air_bench_foundation_scenario.py +154 -0
- helm/benchmark/scenarios/audio_language/ami_scenario.py +96 -0
- helm/benchmark/scenarios/audio_language/audio_mnist_scenario.py +62 -0
- helm/benchmark/scenarios/audio_language/audio_pairs_scenario.py +62 -0
- helm/benchmark/scenarios/audio_language/audiocaps_scenario.py +59 -0
- helm/benchmark/scenarios/audio_language/casual_conversations2_scenario.py +152 -0
- helm/benchmark/scenarios/audio_language/common_voice_15_scenario.py +99 -0
- helm/benchmark/scenarios/audio_language/covost2_scenario.py +163 -0
- helm/benchmark/scenarios/audio_language/fleurs_fairness_scenario.py +83 -0
- helm/benchmark/scenarios/audio_language/fleurs_scenario.py +312 -0
- helm/benchmark/scenarios/audio_language/iemocap_audio_scenario.py +83 -0
- helm/benchmark/scenarios/audio_language/librispeech_fairness_scenario.py +96 -0
- helm/benchmark/scenarios/audio_language/librispeech_scenario.py +80 -0
- helm/benchmark/scenarios/audio_language/meld_audio_scenario.py +113 -0
- helm/benchmark/scenarios/audio_language/multilingual_librispeech_scenario.py +80 -0
- helm/benchmark/scenarios/audio_language/mustard_scenario.py +142 -0
- helm/benchmark/scenarios/audio_language/mutox_scenario.py +254 -0
- helm/benchmark/scenarios/audio_language/parade_scenario.py +97 -0
- helm/benchmark/scenarios/audio_language/speech_robust_bench_scenario.py +124 -0
- helm/benchmark/scenarios/audio_language/vocal_sound_scenario.py +69 -0
- helm/benchmark/scenarios/audio_language/voice_jailbreak_attacks_scenario.py +87 -0
- helm/benchmark/scenarios/audio_language/voxceleb2_scenario.py +106 -0
- helm/benchmark/scenarios/autobencher_capabilities_scenario.py +68 -0
- helm/benchmark/scenarios/autobencher_safety_scenario.py +51 -0
- helm/benchmark/scenarios/babi_qa_scenario.py +1 -1
- helm/benchmark/scenarios/banking77_scenario.py +6 -1
- helm/benchmark/scenarios/bbq_scenario.py +1 -1
- helm/benchmark/scenarios/big_bench_scenario.py +11 -1
- helm/benchmark/scenarios/bigcodebench_scenario.py +58 -0
- helm/benchmark/scenarios/bird_sql_scenario.py +94 -0
- helm/benchmark/scenarios/bird_sql_scenario_helper.py +118 -0
- helm/benchmark/scenarios/blimp_scenario.py +1 -1
- helm/benchmark/scenarios/bold_scenario.py +1 -1
- helm/benchmark/scenarios/boolq_scenario.py +1 -1
- helm/benchmark/scenarios/casehold_scenario.py +79 -0
- helm/benchmark/scenarios/chw_care_plan_scenario.py +105 -0
- helm/benchmark/scenarios/civil_comments_scenario.py +1 -1
- helm/benchmark/scenarios/clear_scenario.py +153 -0
- helm/benchmark/scenarios/cleva_scenario.py +2 -2
- helm/benchmark/scenarios/code_scenario.py +17 -4
- helm/benchmark/scenarios/commonsense_scenario.py +1 -1
- helm/benchmark/scenarios/conv_fin_qa_calc_scenario.py +97 -0
- helm/benchmark/scenarios/copyright_scenario.py +1 -1
- helm/benchmark/scenarios/covid_dialog_scenario.py +10 -1
- helm/benchmark/scenarios/cti_to_mitre_scenario.py +240 -0
- helm/benchmark/scenarios/custom_mcqa_scenario.py +1 -1
- helm/benchmark/scenarios/czech_bank_qa_scenario.py +130 -0
- helm/benchmark/scenarios/decodingtrust_adv_demonstration_scenario.py +1 -1
- helm/benchmark/scenarios/decodingtrust_privacy_scenario.py +1 -1
- helm/benchmark/scenarios/decodingtrust_stereotype_bias_scenario.py +1 -1
- helm/benchmark/scenarios/decodingtrust_toxicity_prompts_scenario.py +1 -1
- helm/benchmark/scenarios/dialogue_scenarios.py +13 -2
- helm/benchmark/scenarios/dischargeme_scenario.py +157 -0
- helm/benchmark/scenarios/disinformation_scenario.py +10 -1
- helm/benchmark/scenarios/dyck_language_scenario.py +10 -1
- helm/benchmark/scenarios/echr_judgment_classification_scenario.py +113 -0
- helm/benchmark/scenarios/ehr_sql_scenario.py +131 -0
- helm/benchmark/scenarios/ehrshot_scenario.py +1546 -0
- helm/benchmark/scenarios/enem_challenge_scenario.py +58 -0
- helm/benchmark/scenarios/entity_data_imputation_scenario.py +11 -1
- helm/benchmark/scenarios/entity_matching_scenario.py +12 -2
- helm/benchmark/scenarios/financial_phrasebank_scenario.py +94 -0
- helm/benchmark/scenarios/gold_commodity_news_scenario.py +124 -0
- helm/benchmark/scenarios/gpqa_scenario.py +80 -0
- helm/benchmark/scenarios/grammar_scenario.py +2 -2
- helm/benchmark/scenarios/gsm_scenario.py +10 -1
- helm/benchmark/scenarios/harm_bench_gcg_transfer_scenario.py +50 -0
- helm/benchmark/scenarios/harm_bench_scenario.py +1 -1
- helm/benchmark/scenarios/headqa_scenario.py +131 -0
- helm/benchmark/scenarios/helpdesk_call_summarization_scenario.py +37 -0
- helm/benchmark/scenarios/ice_scenario.py +8 -4
- helm/benchmark/scenarios/ifeval_scenario.py +53 -0
- helm/benchmark/scenarios/imdb_ptbr_scenario.py +60 -0
- helm/benchmark/scenarios/imdb_scenario.py +11 -2
- helm/benchmark/scenarios/infinite_bench_sum_scenario.py +82 -0
- helm/benchmark/scenarios/interactive_qa_mmlu_scenario.py +2 -2
- helm/benchmark/scenarios/koala_scenario.py +1 -1
- helm/benchmark/scenarios/legal_contract_summarization_scenario.py +129 -0
- helm/benchmark/scenarios/legal_opinion_sentiment_classification_scenario.py +77 -0
- helm/benchmark/scenarios/legal_summarization_scenario.py +11 -1
- helm/benchmark/scenarios/legal_support_scenario.py +11 -1
- helm/benchmark/scenarios/legalbench_scenario.py +22 -3
- helm/benchmark/scenarios/lex_glue_scenario.py +12 -2
- helm/benchmark/scenarios/lextreme_scenario.py +11 -1
- helm/benchmark/scenarios/live_qa_scenario.py +1 -1
- helm/benchmark/scenarios/lm_entry_scenario.py +1 -1
- helm/benchmark/scenarios/lsat_qa_scenario.py +1 -1
- helm/benchmark/scenarios/math_scenario.py +9 -1
- helm/benchmark/scenarios/me_q_sum_scenario.py +10 -1
- helm/benchmark/scenarios/med_dialog_scenario.py +22 -24
- helm/benchmark/scenarios/med_mcqa_scenario.py +10 -1
- helm/benchmark/scenarios/med_paragraph_simplification_scenario.py +10 -1
- helm/benchmark/scenarios/med_qa_scenario.py +10 -1
- helm/benchmark/scenarios/medalign_scenario.py +88 -0
- helm/benchmark/scenarios/medalign_scenario_helper.py +429 -0
- helm/benchmark/scenarios/medbullets_scenario.py +140 -0
- helm/benchmark/scenarios/medcalc_bench_scenario.py +125 -0
- helm/benchmark/scenarios/medec_scenario.py +120 -0
- helm/benchmark/scenarios/medhallu_scenario.py +66 -0
- helm/benchmark/scenarios/medi_qa_scenario.py +105 -0
- helm/benchmark/scenarios/medication_qa_scenario.py +2 -2
- helm/benchmark/scenarios/mental_health_scenario.py +112 -0
- helm/benchmark/scenarios/mimic_bhc_scenario.py +98 -0
- helm/benchmark/scenarios/mimic_rrs_scenario.py +89 -0
- helm/benchmark/scenarios/mimiciv_billing_code_scenario.py +71 -0
- helm/benchmark/scenarios/mmlu_clinical_afr_scenario.py +74 -0
- helm/benchmark/scenarios/mmlu_pro_scenario.py +95 -0
- helm/benchmark/scenarios/mmlu_scenario.py +11 -1
- helm/benchmark/scenarios/msmarco_scenario.py +1 -1
- helm/benchmark/scenarios/mtsamples_procedures_scenario.py +141 -0
- helm/benchmark/scenarios/mtsamples_replicate_scenario.py +141 -0
- helm/benchmark/scenarios/n2c2_ct_matching_scenario.py +271 -0
- helm/benchmark/scenarios/narrativeqa_scenario.py +1 -1
- helm/benchmark/scenarios/natural_qa_scenario.py +1 -1
- helm/benchmark/scenarios/newsqa_scenario.py +1 -1
- helm/benchmark/scenarios/numeracy_scenario.py +10 -1
- helm/benchmark/scenarios/oab_exams_scenario.py +57 -0
- helm/benchmark/scenarios/omni_math_scenario.py +53 -0
- helm/benchmark/scenarios/open_assistant_scenario.py +11 -2
- helm/benchmark/scenarios/opinions_qa_scenario.py +1 -1
- helm/benchmark/scenarios/pubmed_qa_scenario.py +54 -43
- helm/benchmark/scenarios/quac_scenario.py +10 -1
- helm/benchmark/scenarios/race_based_med_scenario.py +142 -0
- helm/benchmark/scenarios/raft_scenario.py +18 -3
- helm/benchmark/scenarios/real_toxicity_prompts_scenario.py +1 -1
- helm/benchmark/scenarios/ruler_qa_scenario_helper.py +171 -0
- helm/benchmark/scenarios/ruler_qa_scenarios.py +88 -0
- helm/benchmark/scenarios/scenario.py +9 -1
- helm/benchmark/scenarios/{bhasa_scenario.py → seahelm_scenario.py} +233 -84
- helm/benchmark/scenarios/self_instruct_scenario.py +1 -1
- helm/benchmark/scenarios/shc_bmt_scenario.py +69 -0
- helm/benchmark/scenarios/shc_cdi_scenario.py +70 -0
- helm/benchmark/scenarios/shc_conf_scenario.py +70 -0
- helm/benchmark/scenarios/shc_ent_scenario.py +72 -0
- helm/benchmark/scenarios/shc_gip_scenario.py +66 -0
- helm/benchmark/scenarios/shc_ptbm_scenario.py +76 -0
- helm/benchmark/scenarios/shc_sei_scenario.py +89 -0
- helm/benchmark/scenarios/shc_sequoia_scenario.py +69 -0
- helm/benchmark/scenarios/simple_safety_tests_scenario.py +1 -1
- helm/benchmark/scenarios/spider_scenario.py +91 -0
- helm/benchmark/scenarios/starr_patient_instructions_scenario.py +90 -0
- helm/benchmark/scenarios/summarization_scenario.py +11 -1
- helm/benchmark/scenarios/sumosum_scenario.py +157 -0
- helm/benchmark/scenarios/synthetic_efficiency_scenario.py +1 -1
- helm/benchmark/scenarios/synthetic_reasoning_natural_scenario.py +11 -1
- helm/benchmark/scenarios/synthetic_reasoning_scenario.py +11 -1
- helm/benchmark/scenarios/test_bigcodebench_scenario.py +26 -0
- helm/benchmark/scenarios/test_czech_bank_qa_scenario.py +18 -0
- helm/benchmark/scenarios/test_enem_challenge_scenario.py +53 -0
- helm/benchmark/scenarios/test_ewok_scenario.py +6 -2
- helm/benchmark/scenarios/test_gold_commodity_news_scenario.py +18 -0
- helm/benchmark/scenarios/test_gpqa_scenario.py +44 -0
- helm/benchmark/scenarios/test_ifeval_scenario.py +36 -0
- helm/benchmark/scenarios/test_imdb_ptbr_scenario.py +27 -0
- helm/benchmark/scenarios/test_infinite_bench_sum_scenario.py +46 -0
- helm/benchmark/scenarios/test_math_scenario.py +1 -0
- helm/benchmark/scenarios/test_mmlu_clinical_afr_scenario.py +21 -0
- helm/benchmark/scenarios/test_mmlu_pro_scenario.py +53 -0
- helm/benchmark/scenarios/test_oab_exams_scenario.py +51 -0
- helm/benchmark/scenarios/test_omni_math_scenario.py +27 -0
- helm/benchmark/scenarios/test_tweetsentbr_scenario.py +24 -0
- helm/benchmark/scenarios/test_wildbench_scenario.py +15 -0
- helm/benchmark/scenarios/test_winogrande_afr_scenario.py +19 -0
- helm/benchmark/scenarios/thai_exam_scenario.py +10 -1
- helm/benchmark/scenarios/the_pile_scenario.py +1 -1
- helm/benchmark/scenarios/truthful_qa_scenario.py +10 -1
- helm/benchmark/scenarios/tweetsentbr_scenario.py +66 -0
- helm/benchmark/scenarios/twitter_aae_scenario.py +1 -1
- helm/benchmark/scenarios/unitxt_scenario.py +8 -2
- helm/benchmark/scenarios/verifiability_judgment_scenario.py +1 -1
- helm/benchmark/scenarios/vicuna_scenario.py +1 -1
- helm/benchmark/scenarios/vision_language/blink_scenario.py +140 -0
- helm/benchmark/scenarios/vision_language/mm_star_scenario.py +95 -0
- helm/benchmark/scenarios/vision_language/vqa_rad_scenario.py +88 -0
- helm/benchmark/scenarios/wikifact_scenario.py +11 -1
- helm/benchmark/scenarios/wikitext_103_scenario.py +1 -1
- helm/benchmark/scenarios/wildbench_scenario.py +83 -0
- helm/benchmark/scenarios/winogrande_afr_scenario.py +78 -0
- helm/benchmark/scenarios/wmt_14_scenario.py +14 -2
- helm/benchmark/scenarios/xstest_scenario.py +1 -1
- helm/benchmark/server.py +11 -0
- helm/benchmark/slurm_runner.py +1 -1
- helm/benchmark/static/schema_audio.yaml +752 -0
- helm/benchmark/static/schema_autobencher.yaml +150 -0
- helm/benchmark/static/schema_call_center.yaml +97 -60
- helm/benchmark/static/schema_capabilities.yaml +254 -0
- helm/benchmark/static/schema_czech_bank.yaml +148 -0
- helm/benchmark/static/schema_enem_challenge.yaml +146 -0
- helm/benchmark/static/schema_enterprise.yaml +298 -0
- helm/benchmark/static/schema_finance.yaml +14 -12
- helm/benchmark/static/schema_heim.yaml +1389 -0
- helm/benchmark/static/schema_legal.yaml +566 -0
- helm/benchmark/static/{schema_medical.yaml → schema_long_context.yaml} +67 -82
- helm/benchmark/static/schema_medhelm.yaml +1081 -0
- helm/benchmark/static/schema_mmlu_winogrande_afr.yaml +1045 -0
- helm/benchmark/static/schema_safety.yaml +42 -6
- helm/benchmark/static/{schema_bhasa.yaml → schema_seahelm.yaml} +40 -26
- helm/benchmark/static/schema_social_audio.yaml +224 -0
- helm/benchmark/static/schema_sql.yaml +171 -0
- helm/benchmark/static/{schema_tables.yaml → schema_torr.yaml} +187 -30
- helm/benchmark/static/schema_tweetsentbr.yaml +146 -0
- helm/benchmark/static/schema_vhelm.yaml +151 -47
- helm/benchmark/static_build/assets/helm-safety-2907a7b6.png +0 -0
- helm/benchmark/static_build/assets/index-262903c1.js +10 -0
- helm/benchmark/static_build/assets/index-42060d71.css +1 -0
- helm/benchmark/static_build/assets/medhelm-overview-3ddfcd65.png +0 -0
- helm/benchmark/static_build/assets/{react-d4a0b69b.js → react-f82877fd.js} +1 -1
- helm/benchmark/static_build/assets/{recharts-6d337683.js → recharts-4037aff0.js} +1 -1
- helm/benchmark/static_build/assets/{tremor-54a99cc4.js → tremor-9cefc3c5.js} +1 -1
- helm/benchmark/static_build/assets/vhelm-aspects-1437d673.png +0 -0
- helm/benchmark/static_build/assets/vhelm-framework-a1ca3f3f.png +0 -0
- helm/benchmark/static_build/assets/vhelm-model-8afb7616.png +0 -0
- helm/benchmark/static_build/config.js +1 -1
- helm/benchmark/static_build/index.html +5 -5
- helm/benchmark/window_services/default_window_service.py +1 -1
- helm/benchmark/window_services/encoder_decoder_window_service.py +1 -1
- helm/benchmark/window_services/ice_window_service.py +1 -1
- helm/benchmark/window_services/image_generation/lexica_search_window_service.py +1 -1
- helm/benchmark/window_services/image_generation/openai_dalle_window_service.py +1 -1
- helm/benchmark/window_services/local_window_service.py +2 -2
- helm/benchmark/window_services/test_anthropic_window_service.py +3 -3
- helm/benchmark/window_services/test_bloom_window_service.py +3 -3
- helm/benchmark/window_services/test_gpt2_window_service.py +7 -2
- helm/benchmark/window_services/test_gpt4_window_service.py +8 -3
- helm/benchmark/window_services/test_gptj_window_service.py +8 -3
- helm/benchmark/window_services/test_gptneox_window_service.py +3 -3
- helm/benchmark/window_services/test_openai_window_service.py +8 -3
- helm/benchmark/window_services/test_opt_window_service.py +3 -3
- helm/benchmark/window_services/test_palmyra_window_service.py +3 -3
- helm/benchmark/window_services/test_t0pp_window_service.py +3 -3
- helm/benchmark/window_services/test_t511b_window_service.py +3 -3
- helm/benchmark/window_services/test_ul2_window_service.py +3 -3
- helm/benchmark/window_services/test_utils.py +1 -1
- helm/benchmark/window_services/test_yalm_window_service.py +3 -3
- helm/benchmark/window_services/tokenizer_service.py +0 -5
- helm/benchmark/window_services/yalm_window_service.py +1 -1
- helm/clients/ai21_client.py +3 -3
- helm/clients/aleph_alpha_client.py +1 -1
- helm/clients/audio_language/__init__.py +0 -0
- helm/clients/audio_language/diva_llama_client.py +118 -0
- helm/clients/audio_language/llama_omni_client.py +198 -0
- helm/clients/audio_language/qwen2_audiolm_client.py +188 -0
- helm/clients/audio_language/qwen_audiolm_client.py +150 -0
- helm/clients/auto_client.py +4 -2
- helm/clients/azure_openai_client.py +55 -0
- helm/clients/bedrock_client.py +201 -7
- helm/clients/bedrock_utils.py +33 -0
- helm/clients/clip_scorers/clip_scorer.py +1 -1
- helm/clients/clip_scorers/multilingual_clip_scorer.py +1 -1
- helm/clients/cohere_client.py +3 -3
- helm/clients/google_client.py +1 -1
- helm/clients/http_model_client.py +1 -1
- helm/clients/huggingface_client.py +10 -18
- helm/clients/ibm_client.py +267 -0
- helm/clients/image_generation/adobe_vision_client.py +1 -1
- helm/clients/image_generation/aleph_alpha_image_generation_client.py +1 -1
- helm/clients/image_generation/cogview2/sr_pipeline/__init__.py +3 -3
- helm/clients/image_generation/cogview2/sr_pipeline/direct_sr.py +5 -2
- helm/clients/image_generation/cogview2/sr_pipeline/iterative_sr.py +5 -2
- helm/clients/image_generation/cogview2/sr_pipeline/sr_group.py +2 -2
- helm/clients/image_generation/cogview2_client.py +1 -1
- helm/clients/image_generation/dalle2_client.py +1 -1
- helm/clients/image_generation/dalle3_client.py +2 -2
- helm/clients/image_generation/dalle_mini/__init__.py +1 -1
- helm/clients/image_generation/dalle_mini/data.py +1 -1
- helm/clients/image_generation/dalle_mini/model/__init__.py +5 -5
- helm/clients/image_generation/dalle_mini/model/configuration.py +1 -1
- helm/clients/image_generation/dalle_mini/model/modeling.py +2 -2
- helm/clients/image_generation/dalle_mini/model/processor.py +4 -4
- helm/clients/image_generation/dalle_mini/model/tokenizer.py +1 -1
- helm/clients/image_generation/dalle_mini/vqgan_jax/__init__.py +1 -1
- helm/clients/image_generation/dalle_mini/vqgan_jax/convert_pt_model_to_jax.py +2 -2
- helm/clients/image_generation/dalle_mini/vqgan_jax/modeling_flax_vqgan.py +1 -1
- helm/clients/image_generation/dalle_mini_client.py +1 -1
- helm/clients/image_generation/deep_floyd_client.py +1 -1
- helm/clients/image_generation/huggingface_diffusers_client.py +1 -1
- helm/clients/image_generation/lexica_client.py +1 -1
- helm/clients/image_generation/mindalle/models/__init__.py +6 -6
- helm/clients/image_generation/mindalle/models/stage1/vqgan.py +1 -1
- helm/clients/image_generation/mindalle/models/stage2/transformer.py +1 -1
- helm/clients/image_generation/mindalle/utils/__init__.py +3 -3
- helm/clients/image_generation/mindalle_client.py +1 -1
- helm/clients/image_generation/together_image_generation_client.py +1 -1
- helm/clients/lit_gpt_client.py +2 -2
- helm/clients/mistral_client.py +62 -18
- helm/clients/nvidia_nim_client.py +0 -3
- helm/clients/openai_client.py +255 -21
- helm/clients/palmyra_client.py +2 -6
- helm/clients/reka_client.py +1 -1
- helm/clients/stanfordhealthcare_azure_openai_client.py +58 -0
- helm/clients/stanfordhealthcare_claude_client.py +31 -0
- helm/clients/stanfordhealthcare_google_client.py +43 -0
- helm/clients/stanfordhealthcare_http_model_client.py +93 -0
- helm/clients/stanfordhealthcare_openai_client.py +62 -0
- helm/clients/stanfordhealthcare_shc_openai_client.py +42 -0
- helm/clients/test_client.py +1 -1
- helm/clients/test_together_client.py +6 -1
- helm/clients/together_client.py +69 -7
- helm/clients/upstage_client.py +23 -0
- helm/clients/vertexai_client.py +39 -13
- helm/clients/vision_language/open_flamingo/__init__.py +2 -2
- helm/clients/vision_language/open_flamingo/src/factory.py +3 -3
- helm/clients/vision_language/open_flamingo/src/flamingo.py +2 -2
- helm/clients/vision_language/open_flamingo/src/flamingo_lm.py +2 -2
- helm/clients/vision_language/qwen2_vlm_client.py +175 -0
- helm/clients/vllm_client.py +4 -6
- helm/clients/yi_client.py +0 -3
- helm/common/audio_utils.py +111 -0
- helm/common/cache.py +8 -30
- helm/common/file_caches/local_file_cache.py +1 -1
- helm/common/file_caches/test_local_file_cache.py +1 -1
- helm/common/images_utils.py +2 -2
- helm/common/key_value_store.py +9 -9
- helm/common/media_object.py +2 -2
- helm/common/mongo_key_value_store.py +3 -3
- helm/common/multimodal_request_utils.py +26 -0
- helm/common/reeval_parameters.py +12 -0
- helm/common/request.py +6 -2
- helm/common/response_format.py +18 -0
- helm/common/test_cache.py +1 -48
- helm/common/test_media_object.py +1 -1
- helm/common/tokenization_request.py +0 -9
- helm/config/model_deployments.yaml +1258 -33
- helm/config/model_metadata.yaml +1110 -41
- helm/config/tokenizer_configs.yaml +403 -3
- helm/proxy/cli.py +2 -2
- helm/proxy/example_queries.py +1 -1
- helm/proxy/server.py +11 -13
- helm/proxy/services/remote_service.py +1 -7
- helm/proxy/services/server_service.py +6 -19
- helm/proxy/services/service.py +0 -6
- helm/proxy/services/test_remote_service.py +2 -2
- helm/proxy/services/test_service.py +1 -1
- helm/proxy/static/general.js +122 -0
- helm/proxy/static/help.html +99 -0
- helm/proxy/static/index.css +57 -0
- helm/proxy/static/index.html +40 -0
- helm/proxy/static/index.js +456 -0
- helm/proxy/static/info-icon.png +0 -0
- helm/proxy/test_retry.py +1 -1
- helm/proxy/token_counters/auto_token_counter.py +1 -1
- helm/tokenizers/aleph_alpha_tokenizer.py +1 -1
- helm/tokenizers/caching_tokenizer.py +2 -30
- helm/tokenizers/http_model_tokenizer.py +1 -1
- helm/tokenizers/huggingface_tokenizer.py +2 -2
- helm/tokenizers/lit_gpt_tokenizer.py +1 -1
- helm/tokenizers/test_anthropic_tokenizer.py +6 -2
- helm/tokenizers/test_huggingface_tokenizer.py +1 -1
- helm/tokenizers/test_yalm_tokenizer.py +1 -1
- helm/tokenizers/tiktoken_tokenizer.py +1 -1
- helm/tokenizers/tokenizer.py +3 -1
- helm/tokenizers/yalm_tokenizer.py +3 -3
- helm/tokenizers/yalm_tokenizer_data/test_yalm_tokenizer.py +1 -1
- crfm_helm-0.5.3.dist-info/METADATA +0 -355
- crfm_helm-0.5.3.dist-info/RECORD +0 -699
- helm/benchmark/data_overlap/data_overlap_spec.py +0 -86
- helm/benchmark/data_overlap/export_scenario_text.py +0 -119
- helm/benchmark/data_overlap/light_scenario.py +0 -60
- helm/benchmark/metrics/bhasa_metrics_specs.py +0 -10
- helm/benchmark/static_build/assets/01-694cb9b7.png +0 -0
- helm/benchmark/static_build/assets/accenture-6f97eeda.png +0 -0
- helm/benchmark/static_build/assets/ai21-0eb91ec3.png +0 -0
- helm/benchmark/static_build/assets/aisingapore-6dfc9acf.png +0 -0
- helm/benchmark/static_build/assets/aleph-alpha-7ce10034.png +0 -0
- helm/benchmark/static_build/assets/anthropic-70d8bc39.png +0 -0
- helm/benchmark/static_build/assets/bigscience-7f0400c0.png +0 -0
- helm/benchmark/static_build/assets/cohere-3550c6cb.png +0 -0
- helm/benchmark/static_build/assets/cresta-9e22b983.png +0 -0
- helm/benchmark/static_build/assets/cuhk-8c5631e9.png +0 -0
- helm/benchmark/static_build/assets/eleutherai-b9451114.png +0 -0
- helm/benchmark/static_build/assets/google-06d997ad.png +0 -0
- helm/benchmark/static_build/assets/index-05c76bb1.css +0 -1
- helm/benchmark/static_build/assets/index-58f97dcd.js +0 -10
- helm/benchmark/static_build/assets/meta-5580e9f1.png +0 -0
- helm/benchmark/static_build/assets/microsoft-f5ee5016.png +0 -0
- helm/benchmark/static_build/assets/mistral-18e1be23.png +0 -0
- helm/benchmark/static_build/assets/nvidia-86fa75c1.png +0 -0
- helm/benchmark/static_build/assets/openai-3f8653e4.png +0 -0
- helm/benchmark/static_build/assets/scb10x-204bd786.png +0 -0
- helm/benchmark/static_build/assets/tii-24de195c.png +0 -0
- helm/benchmark/static_build/assets/together-a665a35b.png +0 -0
- helm/benchmark/static_build/assets/tsinghua-keg-97d4b395.png +0 -0
- helm/benchmark/static_build/assets/vhelm-framework-cde7618a.png +0 -0
- helm/benchmark/static_build/assets/vhelm-model-6d812526.png +0 -0
- helm/benchmark/static_build/assets/wellsfargo-a86a6c4a.png +0 -0
- helm/benchmark/static_build/assets/yandex-38e09d70.png +0 -0
- helm/tokenizers/anthropic_tokenizer.py +0 -52
- {crfm_helm-0.5.3.dist-info → crfm_helm-0.5.5.dist-info}/entry_points.txt +0 -0
- {crfm_helm-0.5.3.dist-info → crfm_helm-0.5.5.dist-info/licenses}/LICENSE +0 -0
- {crfm_helm-0.5.3.dist-info → crfm_helm-0.5.5.dist-info}/top_level.txt +0 -0
- /helm/benchmark/{data_overlap → metrics/ifeval}/__init__.py +0 -0
|
Binary file
|
|
@@ -82,4 +82,4 @@ Error generating stack: `+i.message+`
|
|
|
82
82
|
* This source code is licensed under the MIT license found in the
|
|
83
83
|
* LICENSE file in the root directory of this source tree.
|
|
84
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,
|
|
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,bk as f,Ct as g,yd as h,Zk as i,Py as j,N as r,nx as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as se,c as Li,r as W,R as S,P as J,a as Jy}from"./react-
|
|
1
|
+
import{g as se,c as Li,r as W,R as S,P as J,a as Jy}from"./react-f82877fd.js";var Vp={exports:{}};/*!
|
|
2
2
|
Copyright (c) 2018 Jed Watson.
|
|
3
3
|
Licensed under the MIT License (MIT), see
|
|
4
4
|
http://jedwatson.github.io/classnames
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as g,R as i,a as Ua,e as jr,b as Er}from"./react-d4a0b69b.js";import{R as ur,A as pi,C as qr,X as tr,Y as rr,T as cr,L as Qr,a as gi,D as nr,b as Bn,B as vi,c as hi,d as bi,P as xi,e as yi,S as wi,f as ki,Z as Ei,g as Ci}from"./recharts-6d337683.js";function X(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}const Jr=(e,t)=>{const r=new Map;return e.forEach((n,o)=>{r.set(n,t[o])}),r},or=(e,t,r)=>[e?"auto":t??0,r??"auto"],Ni=(e,t)=>{if(!t)return[];const r=new Set;return e.forEach(n=>{r.add(n[t])}),Array.from(r)};function ar(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e===null||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const o of r)if(!n.includes(o)||!ar(e[o],t[o]))return!1;return!0}function _t(e,t){const r=new Set;for(const n of e)if(Object.prototype.hasOwnProperty.call(n,t)&&(r.add(n[t]),r.size>1))return!1;return!0}const Si=(e,t)=>{const[r,n]=g.useState(t);g.useEffect(()=>{const o=()=>{n(window.innerWidth),e()};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e,r])},L={none:{height:"h-0",width:"w-0"},threeXs:{height:"h-0.5",width:"w-0.5"},twoXs:{height:"h-1",width:"w-1"},xs:{height:"h-2",width:"w-2"},sm:{height:"h-3",width:"w-3"},md:{height:"h-4",width:"w-4"},lg:{height:"h-5",width:"w-5"},xl:{height:"h-6",width:"w-6"},twoXl:{height:"h-7",width:"w-7"},threeXl:{height:"h-9",width:"w-9"}},k={none:{paddingLeft:"pl-0",paddingTop:"pt-0",paddingRight:"pr-0",paddingBottom:"pb-0",paddingX:"px-0",paddingY:"py-0",paddingAll:"p-0",marginLeft:"ml-0",marginTop:"mt-0",marginRight:"mr-0",marginBottom:"mb-0",negativeMarginLeft:"-ml-0",negativeMarginRight:"-mr-0",negativeMarginTop:"-mt-0",negativeMarginBottom:"-mb-0",left:"left-0",right:"right-0",top:"top-0",bottom:"bottom-0",spaceX:"space-x-0"},px:{paddingLeft:"pl-px",paddingTop:"pt-px",paddingRight:"pr-px",paddingBottom:"pb-px",paddingX:"px-px",paddingY:"py-px",paddingAll:"p-px",marginLeft:"ml-px",marginTop:"mt-px",marginRight:"mr-px",marginBottom:"mb-px",negativeMarginLeft:"-ml-px",negativeMarginRight:"-mr-px",negativeMarginTop:"-mt-px",negativeMarginBottom:"-mb-px",left:"left-px",right:"right-px",top:"top-px",bottom:"bottom-px",spaceX:"space-x-px"},threeXs:{paddingLeft:"pl-0.5",paddingTop:"pt-0.5",paddingRight:"pr-0.5",paddingBottom:"pb-0.5",paddingX:"px-0.5",paddingY:"py-0.5",paddingAll:"p-0.5",marginLeft:"ml-0.5",marginTop:"mt-0.5",marginRight:"mr-0.5",marginBottom:"mb-0.5",negativeMarginLeft:"-ml-0.5",negativeMarginRight:"-mr-0.5",negativeMarginTop:"-mt-0.5",negativeMarginBottom:"-mb-0.5",left:"left-0.5",right:"right-0.5",top:"top-0.5",bottom:"bottom-0.5",spaceX:"space-x-0.5"},twoXs:{paddingLeft:"pl-1",paddingTop:"pt-1",paddingRight:"pr-1",paddingBottom:"pb-1",paddingX:"px-1",paddingY:"py-1",paddingAll:"p-1",marginLeft:"ml-1",marginTop:"mt-1",marginRight:"mr-1",marginBottom:"mb-1",negativeMarginLeft:"-ml-1",negativeMarginRight:"-mr-1",left:"left-1",right:"right-1",top:"top-1",bottom:"bottom-1",spaceX:"space-x-1"},xs:{paddingLeft:"pl-1.5",paddingTop:"pt-1.5",paddingRight:"pr-1.5",paddingBottom:"pb-1.5",paddingX:"px-1.5",paddingY:"py-1.5",paddingAll:"p-1.5",marginLeft:"ml-1.5",marginTop:"mt-1.5",marginRight:"mr-1.5",marginBottom:"mb-1.5",negativeMarginLeft:"-ml-1.5",negativeMarginRight:"-mr-1.5",negativeMarginTop:"-mt-1.5",negativeMarginBottom:"-mb-1.5",left:"left-1.5",right:"right-1.5",top:"top-1.5",bottom:"bottom-1.5",spaceX:"space-x-1.5"},sm:{paddingLeft:"pl-2",paddingTop:"pt-2",paddingRight:"pr-2",paddingBottom:"pb-2",paddingX:"px-2",paddingY:"py-2",paddingAll:"p-2",marginLeft:"ml-2",marginTop:"mt-2",marginRight:"mr-2",marginBottom:"mb-2",negativeMarginLeft:"-ml-2",negativeMarginRight:"-mr-2",negativeMarginTop:"-mt-2",negativeMarginBottom:"-mb-2",left:"left-2",right:"right-2",top:"left-2",bottom:"bottom-2",spaceX:"space-x-2"},md:{paddingLeft:"pl-2.5",paddingTop:"pt-2.5",paddingRight:"pr-2.5",paddingBottom:"pb-2.5",paddingX:"px-2.5",paddingY:"py-2.5",paddingAll:"p-2.5",marginLeft:"ml-2.5",marginTop:"mt-2.5",marginRight:"mr-2.5",marginBottom:"mb-2.5",negativeMarginLeft:"-ml-2.5",negativeMarginRight:"-mr-2.5",negativeMarginTop:"-mt-2.5",negativeMarginBottom:"-mb-2.5",left:"left-2.5",right:"right-2.5",top:"top-2.5",bottom:"bottom-2.5",spaceX:"space-x-2.5"},lg:{paddingLeft:"pl-3",paddingTop:"pt-3",paddingRight:"pr-3",paddingBottom:"pb-3",paddingX:"px-3",paddingY:"py-3",paddingAll:"p-3",marginLeft:"ml-3",marginTop:"mt-3",marginRight:"mr-3",marginBottom:"mb-3",negativeMarginLeft:"-ml-3",negativeMarginRight:"-mr-3",negativeMarginTop:"-mt-3",negativeMarginBottom:"-mb-3",left:"left-3",right:"right-3",top:"top-3",bottom:"bottom-3",spaceX:"space-x-3"},xl:{paddingLeft:"pl-3.5",paddingTop:"pt-3.5",paddingRight:"pr-3.5",paddingBottom:"pb-3.5",paddingX:"px-3.5",paddingY:"py-3.5",paddingAll:"p-3.5",marginLeft:"ml-3.5",marginTop:"mt-3.5",marginRight:"mr-3.5",marginBottom:"mb-3.5",negativeMarginLeft:"-ml-3.5",negativeMarginRight:"-mr-3.5",negativeMarginTop:"-mt-3.5",negativeMarginBottom:"-mb-3.5",left:"left-3.5",right:"right-3.5",top:"top-3.5",bottom:"bottom-3.5",spaceX:"space-x-3.5"},twoXl:{paddingLeft:"pl-4",paddingTop:"pt-4",paddingRight:"pr-4",paddingBottom:"pb-4",paddingX:"px-4",paddingY:"py-4",paddingAll:"p-4",marginLeft:"ml-4",marginTop:"mt-4",marginRight:"mr-4",marginBottom:"mb-4",negativeMarginLeft:"-ml-4",negativeMarginRight:"-mr-4",negativeMarginTop:"-mt-4",negativeMarginBottom:"-mb-4",left:"left-4",right:"right-4",top:"top-4",bottom:"bottom-4",spaceX:"space-x-4"},threeXl:{paddingLeft:"pl-6",paddingTop:"pt-6",paddingRight:"pr-6",paddingBottom:"pb-6",paddingX:"px-6",paddingY:"py-6",paddingAll:"p-6",marginLeft:"ml-6",marginTop:"mt-6",marginRight:"mr-6",marginBottom:"mb-6",negativeMarginLeft:"-ml-6",negativeMarginRight:"-mr-6",negativeMarginTop:"-mt-6",negativeMarginBottom:"-mb-6",left:"left-6",right:"right-6",top:"top-6",bottom:"bottom-6",spaceX:"space-x-6"},fourXl:{paddingLeft:"pl-8",paddingTop:"pt-8",paddingRight:"pr-8",paddingBottom:"pb-8",paddingX:"px-8",paddingY:"py-8",paddingAll:"p-8",marginLeft:"ml-8",marginTop:"mt-8",marginRight:"mr-8",marginBottom:"mb-8",negativeMarginLeft:"-ml-8",negativeMarginRight:"-mr-8",negativeMarginTop:"-mt-8",negativeMarginBottom:"-mb-8",left:"left-8",right:"right-8",top:"top-8",bottom:"bottom-8",spaceX:"space-x-8"}},ue={Increase:"increase",ModerateIncrease:"moderateIncrease",Decrease:"decrease",ModerateDecrease:"moderateDecrease",Unchanged:"unchanged"},J={Slate:"slate",Gray:"gray",Zinc:"zinc",Neutral:"neutral",Stone:"stone",Red:"red",Orange:"orange",Amber:"amber",Yellow:"yellow",Lime:"lime",Green:"green",Emerald:"emerald",Teal:"teal",Cyan:"cyan",Sky:"sky",Blue:"blue",Indigo:"indigo",Violet:"violet",Purple:"purple",Fuchsia:"fuchsia",Pink:"pink",Rose:"rose"},Zr={XS:"xs",SM:"sm",MD:"md",LG:"lg",XL:"xl"},At={Left:"left",Right:"right"},zo={Top:"top",Bottom:"bottom"},G={canvasBackground:50,lightBackground:100,background:500,darkBackground:600,darkestBackground:800,lightBorder:200,border:500,darkBorder:700,lightRing:200,ring:300,lightText:400,text:500,darkText:700,darkestText:900,icon:500},Tt=[J.Blue,J.Cyan,J.Sky,J.Indigo,J.Violet,J.Purple,J.Fuchsia,J.Slate,J.Gray,J.Zinc,J.Neutral,J.Stone,J.Red,J.Orange,J.Amber,J.Yellow,J.Lime,J.Green,J.Emerald,J.Teal,J.Pink,J.Rose],Ga=(e,t)=>{if(t||e===ue.Unchanged)return e;switch(e){case ue.Increase:return ue.Decrease;case ue.ModerateIncrease:return ue.ModerateDecrease;case ue.Decrease:return ue.Increase;case ue.ModerateDecrease:return ue.ModerateIncrease}return""},Ke=e=>e.toString(),Ka=e=>e.reduce((t,r)=>t+r,0),Oi=(e,t)=>{for(let r=0;r<t.length;r++)if(t[r]===e)return!0;return!1};function Xt(e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}function te(e){return t=>`tremor-${e}-${t}`}function H(e,t){return e!=="white"&&e!=="black"&&e!=="transparent"&&t?{bgColor:`bg-${e}-${t}`,selectBgColor:`ui-selected:bg-${e}-${t}`,hoverBgColor:`hover:bg-${e}-${t}`,textColor:`text-${e}-${t}`,selectTextColor:`ui-selected:text-${e}-${t}`,hoverTextColor:`hover:text-${e}-${t}`,borderColor:`border-${e}-${t}`,selectBorderColor:`ui-selected:border-${e}-${t}`,hoverBorderColor:`hover:border-${e}-${t}`,ringColor:`ring-${e}-${t}`,strokeColor:`stroke-${e}-${t}`,fillColor:`fill-${e}-${t}`}:{bgColor:`bg-${e}`,hoverBgColor:`hover:bg-${e}`,selectBgColor:`ui-selected:bg-${e}`,textColor:`text-${e}`,selectTextColor:`ui-selected:text-${e}`,hoverTextColor:`hover:text-${e}`,borderColor:`border-${e}`,selectBorderColor:`ui-selected:border-${e}`,hoverBorderColor:`hover:border-${e}`,ringColor:`ring-${e}`,strokeColor:`stroke-${e}`,fillColor:`fill-${e}`}}function Ti(){for(var e=0,t,r,n="";e<arguments.length;)(t=arguments[e++])&&(r=qa(t))&&(n&&(n+=" "),n+=r);return n}function qa(e){if(typeof e=="string")return e;for(var t,r="",n=0;n<e.length;n++)e[n]&&(t=qa(e[n]))&&(r&&(r+=" "),r+=t);return r}var Qn="-";function Ri(e){var t=Di(e),r=e.conflictingClassGroups,n=e.conflictingClassGroupModifiers,o=n===void 0?{}:n;function a(s){var d=s.split(Qn);return d[0]===""&&d.length!==1&&d.shift(),Qa(d,t)||Mi(s)}function l(s,d){var u=r[s]||[];return d&&o[s]?[].concat(u,o[s]):u}return{getClassGroupId:a,getConflictingClassGroupIds:l}}function Qa(e,t){var l;if(e.length===0)return t.classGroupId;var r=e[0],n=t.nextPart.get(r),o=n?Qa(e.slice(1),n):void 0;if(o)return o;if(t.validators.length!==0){var a=e.join(Qn);return(l=t.validators.find(function(s){var d=s.validator;return d(a)}))==null?void 0:l.classGroupId}}var Ho=/^\[(.+)\]$/;function Mi(e){if(Ho.test(e)){var t=Ho.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function Di(e){var t=e.theme,r=e.prefix,n={nextPart:new Map,validators:[]},o=$i(Object.entries(e.classGroups),r);return o.forEach(function(a){var l=a[0],s=a[1];Wn(s,n,l,t)}),n}function Wn(e,t,r,n){e.forEach(function(o){if(typeof o=="string"){var a=o===""?t:Uo(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(Pi(o)){Wn(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(function(l){var s=l[0],d=l[1];Wn(d,Uo(t,s),r,n)})})}function Uo(e,t){var r=e;return t.split(Qn).forEach(function(n){r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r}function Pi(e){return e.isThemeGetter}function $i(e,t){return t?e.map(function(r){var n=r[0],o=r[1],a=o.map(function(l){return typeof l=="string"?t+l:typeof l=="object"?Object.fromEntries(Object.entries(l).map(function(s){var d=s[0],u=s[1];return[t+d,u]})):l});return[n,a]}):e}function Li(e){if(e<1)return{get:function(){},set:function(){}};var t=0,r=new Map,n=new Map;function o(a,l){r.set(a,l),t++,t>e&&(t=0,n=r,r=new Map)}return{get:function(l){var s=r.get(l);if(s!==void 0)return s;if((s=n.get(l))!==void 0)return o(l,s),s},set:function(l,s){r.has(l)?r.set(l,s):o(l,s)}}}var Ja="!";function Ii(e){var t=e.separator||":",r=t.length===1,n=t[0],o=t.length;return function(l){for(var s=[],d=0,u=0,c,f=0;f<l.length;f++){var m=l[f];if(d===0){if(m===n&&(r||l.slice(f,f+o)===t)){s.push(l.slice(u,f)),u=f+o;continue}if(m==="/"){c=f;continue}}m==="["?d++:m==="]"&&d--}var p=s.length===0?l:l.substring(u),h=p.startsWith(Ja),x=h?p.substring(1):p,b=c&&c>u?c-u:void 0;return{modifiers:s,hasImportantModifier:h,baseClassName:x,maybePostfixModifierPosition:b}}}function _i(e){if(e.length<=1)return e;var t=[],r=[];return e.forEach(function(n){var o=n[0]==="[";o?(t.push.apply(t,r.sort().concat([n])),r=[]):r.push(n)}),t.push.apply(t,r.sort()),t}function Ai(e){return{cache:Li(e.cacheSize),splitModifiers:Ii(e),...Ri(e)}}var Fi=/\s+/;function ji(e,t){var r=t.splitModifiers,n=t.getClassGroupId,o=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(Fi).map(function(l){var s=r(l),d=s.modifiers,u=s.hasImportantModifier,c=s.baseClassName,f=s.maybePostfixModifierPosition,m=n(f?c.substring(0,f):c),p=!!f;if(!m){if(!f)return{isTailwindClass:!1,originalClassName:l};if(m=n(c),!m)return{isTailwindClass:!1,originalClassName:l};p=!1}var h=_i(d).join(":"),x=u?h+Ja:h;return{isTailwindClass:!0,modifierId:x,classGroupId:m,originalClassName:l,hasPostfixModifier:p}}).reverse().filter(function(l){if(!l.isTailwindClass)return!0;var s=l.modifierId,d=l.classGroupId,u=l.hasPostfixModifier,c=s+d;return a.has(c)?!1:(a.add(c),o(d,u).forEach(function(f){return a.add(s+f)}),!0)}).reverse().map(function(l){return l.originalClassName}).join(" ")}function Go(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,o,a,l=s;function s(u){var c=t[0],f=t.slice(1),m=f.reduce(function(p,h){return h(p)},c());return n=Ai(m),o=n.cache.get,a=n.cache.set,l=d,d(u)}function d(u){var c=o(u);if(c)return c;var f=ji(u,n);return a(u,f),f}return function(){return l(Ti.apply(null,arguments))}}function ve(e){var t=function(n){return n[e]||[]};return t.isThemeGetter=!0,t}var Za=/^\[(?:([a-z-]+):)?(.+)\]$/i,Bi=/^\d+\/\d+$/,Wi=new Set(["px","full","screen"]),Yi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Xi=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Vi=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function Ae(e){return xt(e)||Wi.has(e)||Bi.test(e)||Yn(e)}function Yn(e){return Rt(e,"length",qi)}function zi(e){return Rt(e,"size",el)}function Hi(e){return Rt(e,"position",el)}function Ui(e){return Rt(e,"url",Qi)}function Cr(e){return Rt(e,"number",xt)}function xt(e){return!Number.isNaN(Number(e))}function Gi(e){return e.endsWith("%")&&xt(e.slice(0,-1))}function Ht(e){return Ko(e)||Rt(e,"number",Ko)}function le(e){return Za.test(e)}function Ut(){return!0}function nt(e){return Yi.test(e)}function Ki(e){return Rt(e,"",Ji)}function Rt(e,t,r){var n=Za.exec(e);return n?n[1]?n[1]===t:r(n[2]):!1}function qi(e){return Xi.test(e)}function el(){return!1}function Qi(e){return e.startsWith("url(")}function Ko(e){return Number.isInteger(Number(e))}function Ji(e){return Vi.test(e)}function qo(){var e=ve("colors"),t=ve("spacing"),r=ve("blur"),n=ve("brightness"),o=ve("borderColor"),a=ve("borderRadius"),l=ve("borderSpacing"),s=ve("borderWidth"),d=ve("contrast"),u=ve("grayscale"),c=ve("hueRotate"),f=ve("invert"),m=ve("gap"),p=ve("gradientColorStops"),h=ve("gradientColorStopPositions"),x=ve("inset"),b=ve("margin"),v=ve("opacity"),w=ve("padding"),R=ve("saturate"),O=ve("scale"),F=ve("sepia"),T=ve("skew"),A=ve("space"),C=ve("translate"),M=function(){return["auto","contain","none"]},D=function(){return["auto","hidden","clip","visible","scroll"]},I=function(){return["auto",le,t]},P=function(){return[le,t]},_=function(){return["",Ae]},S=function(){return["auto",xt,le]},j=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},$=function(){return["solid","dashed","dotted","double","none"]},N=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},E=function(){return["start","end","center","between","around","evenly","stretch"]},Y=function(){return["","0",le]},W=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},K=function(){return[xt,Cr]},z=function(){return[xt,le]};return{cacheSize:500,theme:{colors:[Ut],spacing:[Ae],blur:["none","",nt,le],brightness:K(),borderColor:[e],borderRadius:["none","","full",nt,le],borderSpacing:P(),borderWidth:_(),contrast:K(),grayscale:Y(),hueRotate:z(),invert:Y(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[Gi,Yn],inset:I(),margin:I(),opacity:K(),padding:P(),saturate:K(),scale:K(),sepia:Y(),skew:z(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",le]}],container:["container"],columns:[{columns:[nt]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(j(),[le])}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ht]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",le]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",Ht]}],"grid-cols":[{"grid-cols":[Ut]}],"col-start-end":[{col:["auto",{span:["full",Ht]},le]}],"col-start":[{"col-start":S()}],"col-end":[{"col-end":S()}],"grid-rows":[{"grid-rows":[Ut]}],"row-start-end":[{row:["auto",{span:[Ht]},le]}],"row-start":[{"row-start":S()}],"row-end":[{"row-end":S()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",le]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",le]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal"].concat(E())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(E(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(E(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",le,t]}],"min-w":[{"min-w":["min","max","fit",le,Ae]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[nt]},nt,le]}],h:[{h:[le,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",le,Ae]}],"max-h":[{"max-h":[le,t,"min","max","fit"]}],"font-size":[{text:["base",nt,Yn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Cr]}],"font-family":[{font:[Ut]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",le]}],"line-clamp":[{"line-clamp":["none",xt,Cr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",le,Ae]}],"list-image":[{"list-image":["none",le]}],"list-style-type":[{list:["none","disc","decimal",le]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat($(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",Ae]}],"underline-offset":[{"underline-offset":["auto",le,Ae]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",le]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(j(),[Hi])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",zi]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ui]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[].concat($(),["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:$()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat($())}],"outline-offset":[{"outline-offset":[le,Ae]}],"outline-w":[{outline:[Ae]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:_()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Ae]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",nt,Ki]}],"shadow-color":[{shadow:[Ut]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":N()}],"bg-blend":[{"bg-blend":N()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",nt,le]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[R]}],sepia:[{sepia:[F]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[R]}],"backdrop-sepia":[{"backdrop-sepia":[F]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",le]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",le]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",le]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[O]}],"scale-x":[{"scale-x":[O]}],"scale-y":[{"scale-y":[O]}],rotate:[{rotate:[Ht,le]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",le]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",le]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",le]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ae,Cr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function Zi(e,t){for(var r in t)tl(e,r,t[r]);return e}var es=Object.prototype.hasOwnProperty,ts=new Set(["string","number","boolean"]);function tl(e,t,r){if(!es.call(e,t)||ts.has(typeof r)||r===null){e[t]=r;return}if(Array.isArray(r)&&Array.isArray(e[t])){e[t]=e[t].concat(r);return}if(typeof r=="object"&&typeof e[t]=="object"){if(e[t]===null){e[t]=r;return}for(var n in r)tl(e[t],n,r[n])}}function rs(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return typeof e=="function"?Go.apply(void 0,[qo,e].concat(r)):Go.apply(void 0,[function(){return Zi(qo(),e)}].concat(r))}const y=rs({classGroups:{boxShadow:[{shadow:[{tremor:["input","card","dropdown"],"dark-tremor":["input","card","dropdown"]}]}],borderRadius:[{rounded:[{tremor:["small","default","full"],"dark-tremor":["small","default","full"]}]}],fontSize:[{text:[{tremor:["default","title","metric"],"dark-tremor":["default","title","metric"]}]}]}}),rl=te("Legend"),ns=({name:e,color:t,onClick:r,activeLegend:n})=>{const o=!!r;return i.createElement("li",{className:y(rl("legendItem"),"group inline-flex items-center truncate px-2 py-0.5 rounded-tremor-small transition ",o?"cursor-pointer":"cursor-default","text-tremor-content",o?"hover:bg-tremor-background-subtle":"","dark:text-dark-tremor-content",o?"dark:hover:bg-dark-tremor-background-subtle":""),onClick:a=>{a.stopPropagation(),r==null||r(e,t)}},i.createElement("svg",{className:y("flex-none",H(t,G.text).textColor,L.xs.height,L.xs.width,k.xs.marginRight,n&&n!==e?"opacity-40":"opacity-100"),fill:"currentColor",viewBox:"0 0 8 8"},i.createElement("circle",{cx:4,cy:4,r:4})),i.createElement("p",{className:y("whitespace-nowrap truncate text-tremor-default","text-tremor-content",o?"group-hover:text-tremor-content-emphasis":"","dark:text-dark-tremor-content",n&&n!==e?"opacity-40":"opacity-100",o?"dark:group-hover:text-dark-tremor-content-emphasis":"")},e))},nl=i.forwardRef((e,t)=>{const{categories:r,colors:n=Tt,className:o,onClickLegendItem:a,activeLegend:l}=e,s=X(e,["categories","colors","className","onClickLegendItem","activeLegend"]);return i.createElement("ol",Object.assign({ref:t,className:y(rl("root"),"flex flex-wrap overflow-hidden truncate",o)},s),r.map((d,u)=>i.createElement(ns,{key:`item-${u}`,name:d,color:n[u],onClick:a,activeLegend:l})))});nl.displayName="Legend";const en=({payload:e},t,r,n,o)=>{const a=g.useRef(null);Si(()=>{var s,d;r((d=(s=a.current)===null||s===void 0?void 0:s.clientHeight)?Number(d)+20:60)});const l=e.filter(s=>s.type!=="none");return i.createElement("div",{ref:a,className:"flex items-center justify-end"},i.createElement(nl,{categories:l.map(s=>s.value),colors:l.map(s=>t.get(s.value)),onClickLegendItem:o,activeLegend:n}))},oe={none:{left:"border-l-0",top:"border-t-0",right:"border-r-0",bottom:"border-b-0",all:"border-0"},sm:{left:"border-l",top:"border-t",right:"border-r",bottom:"border-b",all:"border"},md:{left:"border-l-2",top:"border-t-2",right:"border-r-2",bottom:"border-b-2",all:"border-2"},lg:{left:"border-l-4",top:"border-t-4",right:"border-r-4",bottom:"border-b-4",all:"border-4"}},ol=({children:e})=>i.createElement("div",{className:y("rounded-tremor-default text-tremor-default","bg-tremor-background shadow-tremor-dropdown border-tremor-border","dark:bg-dark-tremor-background dark:shadow-dark-tremor-dropdown dark:border-dark-tremor-border",oe.sm.all)},e),al=({value:e,name:t,color:r})=>i.createElement("div",{className:"flex items-center justify-between space-x-8"},i.createElement("div",{className:"flex items-center space-x-2"},i.createElement("span",{className:y("shrink-0 rounded-tremor-full","border-tremor-background shadow-tremor-card","dark:border-dark-tremor-background dark:shadow-dark-tremor-card",H(r,G.background).bgColor,L.sm.height,L.sm.width,oe.md.all)}),i.createElement("p",{className:y("text-right whitespace-nowrap","text-tremor-content","dark:text-dark-tremor-content")},t)),i.createElement("p",{className:y("font-medium tabular-nums text-right whitespace-nowrap","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},e)),Jn=({active:e,payload:t,label:r,categoryColors:n,valueFormatter:o})=>{if(e&&t){const a=t.filter(l=>l.type!=="none");return i.createElement(ol,null,i.createElement("div",{className:y("border-tremor-border","dark:border-dark-tremor-border",k.twoXl.paddingX,k.sm.paddingY,oe.sm.bottom)},i.createElement("p",{className:y("font-medium","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},r)),i.createElement("div",{className:y(k.twoXl.paddingX,k.sm.paddingY,"space-y-1")},a.map(({value:l,name:s},d)=>{var u;return i.createElement(al,{key:`id-${d}`,value:o(l),name:s,color:(u=n.get(s))!==null&&u!==void 0?u:J.Blue})})))}return null},os=te("Flex"),as={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},ls={start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},is={row:"flex-row",col:"flex-col","row-reverse":"flex-row-reverse","col-reverse":"flex-col-reverse"},ll=i.forwardRef((e,t)=>{const{flexDirection:r="row",justifyContent:n="between",alignItems:o="center",children:a,className:l}=e,s=X(e,["flexDirection","justifyContent","alignItems","children","className"]);return i.createElement("div",Object.assign({ref:t,className:y(os("root"),"flex w-full",is[r],as[n],ls[o],l)},s),a)});ll.displayName="Flex";const Zn=i.forwardRef((e,t)=>{const{color:r,className:n,children:o}=e;return i.createElement("p",{ref:t,className:y("text-tremor-default",r?H(r,G.text).textColor:y("text-tremor-content","dark:text-dark-tremor-content"),n)},o)});Zn.displayName="Text";const mr=({noDataText:e="No data"})=>i.createElement(ll,{alignItems:"center",justifyContent:"center",className:y("w-full h-full border border-dashed rounded-tremor-default","border-tremor-border","dark:border-dark-tremor-border")},i.createElement(Zn,{className:y("text-tremor-content","dark:text-dark-tremor-content")},e)),ss=i.forwardRef((e,t)=>{const{data:r=[],categories:n=[],index:o,stack:a=!1,colors:l=Tt,valueFormatter:s=Ke,startEndOnly:d=!1,showXAxis:u=!0,showYAxis:c=!0,yAxisWidth:f=56,showAnimation:m=!1,animationDuration:p=900,showTooltip:h=!0,showLegend:x=!0,showGridLines:b=!0,showGradient:v=!0,autoMinValue:w=!1,curveType:R="linear",minValue:O,maxValue:F,connectNulls:T=!1,allowDecimals:A=!0,noDataText:C,className:M,onValueChange:D}=e,I=X(e,["data","categories","index","stack","colors","valueFormatter","startEndOnly","showXAxis","showYAxis","yAxisWidth","showAnimation","animationDuration","showTooltip","showLegend","showGridLines","showGradient","autoMinValue","curveType","minValue","maxValue","connectNulls","allowDecimals","noDataText","className","onValueChange"]),[P,_]=g.useState(60),[S,j]=g.useState(void 0),[$,N]=g.useState(void 0),E=Jr(n,l),Y=or(w,O,F),W=!!D;function K(z){W&&(z===$&&!S||_t(r,z)&&S&&S.dataKey===z?(N(void 0),D==null||D(null)):(N(z),D==null||D({eventType:"category",categoryClicked:z})),j(void 0))}return i.createElement("div",Object.assign({ref:t,className:y("w-full h-80",M)},I),i.createElement(ur,{className:"h-full w-full"},r!=null&&r.length?i.createElement(pi,{data:r,onClick:W&&($||S)?()=>{j(void 0),N(void 0),D==null||D(null)}:void 0}," ",b?i.createElement(qr,{className:y("stroke-1","stroke-tremor-border","dark:stroke-dark-tremor-border"),horizontal:!0,vertical:!1}):null,i.createElement(tr,{hide:!u,dataKey:o,tick:{transform:"translate(0, 6)"},ticks:d?[r[0][o],r[r.length-1][o]]:void 0,fill:"",stroke:"",className:y("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),interval:"preserveStartEnd",tickLine:!1,axisLine:!1,padding:{left:10,right:10},minTickGap:5}),i.createElement(rr,{width:f,hide:!c,axisLine:!1,tickLine:!1,type:"number",domain:Y,tick:{transform:"translate(-3, 0)"},fill:"",stroke:"",className:y("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickFormatter:s,allowDecimals:A}),i.createElement(cr,{wrapperStyle:{outline:"none"},isAnimationActive:!1,cursor:{stroke:"#d1d5db",strokeWidth:1},content:h?({active:z,payload:q,label:B})=>i.createElement(Jn,{active:z,payload:q,label:B,valueFormatter:s,categoryColors:E}):i.createElement(i.Fragment,null),position:{y:0}}),x?i.createElement(Qr,{verticalAlign:"top",height:P,content:({payload:z})=>en({payload:z},E,_,$,W?q=>K(q):void 0)}):null,n.map(z=>{var q,B;return i.createElement("defs",{key:z},v?i.createElement("linearGradient",{className:H((q=E.get(z))!==null&&q!==void 0?q:J.Gray,G.text).textColor,id:E.get(z),x1:"0",y1:"0",x2:"0",y2:"1"},i.createElement("stop",{offset:"5%",stopColor:"currentColor",stopOpacity:S||$&&$!==z?.15:.4}),i.createElement("stop",{offset:"95%",stopColor:"currentColor",stopOpacity:0})):i.createElement("linearGradient",{className:H((B=E.get(z))!==null&&B!==void 0?B:J.Gray,G.text).textColor,id:E.get(z),x1:"0",y1:"0",x2:"0",y2:"1"},i.createElement("stop",{stopColor:"currentColor",stopOpacity:S||$&&$!==z?.1:.3})))}),n.map(z=>{var q;return i.createElement(gi,{className:H((q=E.get(z))!==null&&q!==void 0?q:J.Gray,G.text).strokeColor,strokeOpacity:S||$&&$!==z?.3:1,activeDot:B=>{var U;const{cx:re,cy:ae,stroke:fe,strokeLinecap:ye,strokeLinejoin:Ne,strokeWidth:Se,dataKey:Be}=B;return i.createElement(nr,{className:y("stroke-tremor-background dark:stroke-dark-tremor-background",D?"cursor-pointer":"",H((U=E.get(Be))!==null&&U!==void 0?U:J.Gray,G.text).fillColor),cx:re,cy:ae,r:5,fill:"",stroke:fe,strokeLinecap:ye,strokeLinejoin:Ne,strokeWidth:Se,onClick:(we,gt)=>function(_e,bn){bn.stopPropagation(),W&&(_e.index===(S==null?void 0:S.index)&&_e.dataKey===(S==null?void 0:S.dataKey)||_t(r,_e.dataKey)&&$&&$===_e.dataKey?(N(void 0),j(void 0),D==null||D(null)):(N(_e.dataKey),j({index:_e.index,dataKey:_e.dataKey}),D==null||D(Object.assign({eventType:"dot",categoryClicked:_e.dataKey},_e.payload))))}(B,gt)})},dot:B=>{var U;const{stroke:re,strokeLinecap:ae,strokeLinejoin:fe,strokeWidth:ye,cx:Ne,cy:Se,dataKey:Be,index:we}=B;return _t(r,z)&&!(S||$&&$!==z)||(S==null?void 0:S.index)===we&&(S==null?void 0:S.dataKey)===z?i.createElement(nr,{key:we,cx:Ne,cy:Se,r:5,stroke:re,fill:"",strokeLinecap:ae,strokeLinejoin:fe,strokeWidth:ye,className:y("stroke-tremor-background dark:stroke-dark-tremor-background",D?"cursor-pointer":"",H((U=E.get(Be))!==null&&U!==void 0?U:J.Gray,G.text).fillColor)}):i.createElement(g.Fragment,{key:we})},key:z,name:z,type:R,dataKey:z,stroke:"",fill:`url(#${E.get(z)})`,strokeWidth:2,strokeLinejoin:"round",strokeLinecap:"round",isAnimationActive:m,animationDuration:p,stackId:a?"a":void 0,connectNulls:T})}),D?n.map(z=>i.createElement(Bn,{className:y("cursor-pointer"),strokeOpacity:0,key:z,name:z,type:R,dataKey:z,stroke:"transparent",fill:"transparent",legendType:"none",tooltipType:"none",strokeWidth:12,connectNulls:T,onClick:(q,B)=>{B.stopPropagation();const{name:U}=q;K(U)}})):null):i.createElement(mr,{noDataText:C})))});ss.displayName="AreaChart";const ds=i.forwardRef((e,t)=>{const{data:r=[],categories:n=[],index:o,colors:a=Tt,valueFormatter:l=Ke,layout:s="horizontal",stack:d=!1,relative:u=!1,startEndOnly:c=!1,animationDuration:f=900,showAnimation:m=!1,showXAxis:p=!0,showYAxis:h=!0,yAxisWidth:x=56,showTooltip:b=!0,showLegend:v=!0,showGridLines:w=!0,autoMinValue:R=!1,minValue:O,maxValue:F,allowDecimals:T=!0,noDataText:A,onValueChange:C,className:M}=e,D=X(e,["data","categories","index","colors","valueFormatter","layout","stack","relative","startEndOnly","animationDuration","showAnimation","showXAxis","showYAxis","yAxisWidth","showTooltip","showLegend","showGridLines","autoMinValue","minValue","maxValue","allowDecimals","noDataText","onValueChange","className"]),[I,P]=g.useState(60),_=Jr(n,a),[S,j]=i.useState(void 0),[$,N]=g.useState(void 0),E=!!C;function Y(K,z,q){var B,U;q.stopPropagation(),C&&(ar(S,Object.assign(Object.assign({},K.payload),{value:K.value}))?(N(void 0),j(void 0),C==null||C(null)):(N((B=K.tooltipPayload[0])===null||B===void 0?void 0:B.dataKey),j(Object.assign(Object.assign({},K.payload),{value:K.value})),C==null||C(Object.assign({eventType:"bar",categoryClicked:(U=K.tooltipPayload[0])===null||U===void 0?void 0:U.dataKey},K.payload))))}const W=or(R,O,F);return i.createElement("div",Object.assign({ref:t,className:y("w-full h-80",M)},D),i.createElement(ur,{className:"h-full w-full"},r!=null&&r.length?i.createElement(vi,{data:r,stackOffset:u?"expand":"none",layout:s==="vertical"?"vertical":"horizontal",onClick:E&&($||S)?()=>{j(void 0),N(void 0),C==null||C(null)}:void 0},w?i.createElement(qr,{className:y("stroke-1","stroke-tremor-border","dark:stroke-dark-tremor-border"),horizontal:s!=="vertical",vertical:s==="vertical"}):null,s!=="vertical"?i.createElement(tr,{hide:!p,dataKey:o,interval:"preserveStartEnd",tick:{transform:"translate(0, 6)"},ticks:c?[r[0][o],r[r.length-1][o]]:void 0,fill:"",stroke:"",className:y("mt-4 text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickLine:!1,axisLine:!1}):i.createElement(tr,{hide:!p,type:"number",tick:{transform:"translate(-3, 0)"},domain:W,fill:"",stroke:"",className:y("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickLine:!1,axisLine:!1,tickFormatter:l,padding:{left:10,right:10},minTickGap:5,allowDecimals:T}),s!=="vertical"?i.createElement(rr,{width:x,hide:!h,axisLine:!1,tickLine:!1,type:"number",domain:W,tick:{transform:"translate(-3, 0)"},fill:"",stroke:"",className:y("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickFormatter:u?K=>`${(100*K).toString()} %`:l,allowDecimals:T}):i.createElement(rr,{width:x,hide:!h,dataKey:o,axisLine:!1,tickLine:!1,ticks:c?[r[0][o],r[r.length-1][o]]:void 0,type:"category",interval:"preserveStartEnd",tick:{transform:"translate(0, 6)"},fill:"",stroke:"",className:y("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content")}),i.createElement(cr,{wrapperStyle:{outline:"none"},isAnimationActive:!1,cursor:{fill:"#d1d5db",opacity:"0.15"},content:b?({active:K,payload:z,label:q})=>i.createElement(Jn,{active:K,payload:z,label:q,valueFormatter:l,categoryColors:_}):i.createElement(i.Fragment,null),position:{y:0}}),v?i.createElement(Qr,{verticalAlign:"top",height:I,content:({payload:K})=>en({payload:K},_,P,$,E?z=>{return q=z,void(E&&(q!==$||S?(N(q),C==null||C({eventType:"category",categoryClicked:q})):(N(void 0),C==null||C(null)),j(void 0)));var q}:void 0)}):null,n.map(K=>{var z;return i.createElement(hi,{className:y(H((z=_.get(K))!==null&&z!==void 0?z:J.Gray,G.background).fillColor,C?"cursor-pointer":""),key:K,name:K,type:"linear",stackId:d||u?"a":void 0,dataKey:K,fill:"",isAnimationActive:m,animationDuration:f,shape:q=>((B,U,re)=>{const{x:ae,y:fe,width:ye,height:Ne,fillOpacity:Se,name:Be,payload:we,value:gt}=B;return i.createElement("rect",{x:ae,y:fe,width:ye,height:Ne,opacity:U||re&&re!==Be?ar(U,Object.assign(Object.assign({},we),{value:gt}))?Se:.3:Se})})(q,S,$),onClick:Y})})):i.createElement(mr,{noDataText:A})))});ds.displayName="BarChart";const us=i.forwardRef((e,t)=>{const{data:r=[],categories:n=[],index:o,colors:a=Tt,valueFormatter:l=Ke,startEndOnly:s=!1,showXAxis:d=!0,showYAxis:u=!0,yAxisWidth:c=56,animationDuration:f=900,showAnimation:m=!1,showTooltip:p=!0,showLegend:h=!0,showGridLines:x=!0,autoMinValue:b=!1,curveType:v="linear",minValue:w,maxValue:R,connectNulls:O=!1,allowDecimals:F=!0,noDataText:T,className:A,onValueChange:C}=e,M=X(e,["data","categories","index","colors","valueFormatter","startEndOnly","showXAxis","showYAxis","yAxisWidth","animationDuration","showAnimation","showTooltip","showLegend","showGridLines","autoMinValue","curveType","minValue","maxValue","connectNulls","allowDecimals","noDataText","className","onValueChange"]),[D,I]=g.useState(60),[P,_]=g.useState(void 0),[S,j]=g.useState(void 0),$=Jr(n,a),N=or(b,w,R),E=!!C;function Y(W){E&&(W===S&&!P||_t(r,W)&&P&&P.dataKey===W?(j(void 0),C==null||C(null)):(j(W),C==null||C({eventType:"category",categoryClicked:W})),_(void 0))}return i.createElement("div",Object.assign({ref:t,className:y("w-full h-80",A)},M),i.createElement(ur,{className:"h-full w-full"},r!=null&&r.length?i.createElement(bi,{data:r,onClick:E&&(S||P)?()=>{_(void 0),j(void 0),C==null||C(null)}:void 0},x?i.createElement(qr,{className:y("stroke-1","stroke-tremor-border","dark:stroke-dark-tremor-border"),horizontal:!0,vertical:!1}):null,i.createElement(tr,{hide:!d,dataKey:o,interval:"preserveStartEnd",tick:{transform:"translate(0, 6)"},ticks:s?[r[0][o],r[r.length-1][o]]:void 0,fill:"",stroke:"",className:y("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickLine:!1,axisLine:!1,padding:{left:10,right:10},minTickGap:5}),i.createElement(rr,{width:c,hide:!u,axisLine:!1,tickLine:!1,type:"number",domain:N,tick:{transform:"translate(-3, 0)"},fill:"",stroke:"",className:y("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickFormatter:l,allowDecimals:F}),i.createElement(cr,{wrapperStyle:{outline:"none"},isAnimationActive:!1,cursor:{stroke:"#d1d5db",strokeWidth:1},content:p?({active:W,payload:K,label:z})=>i.createElement(Jn,{active:W,payload:K,label:z,valueFormatter:l,categoryColors:$}):i.createElement(i.Fragment,null),position:{y:0}}),h?i.createElement(Qr,{verticalAlign:"top",height:D,content:({payload:W})=>en({payload:W},$,I,S,E?K=>Y(K):void 0)}):null,n.map(W=>{var K;return i.createElement(Bn,{className:y(H((K=$.get(W))!==null&&K!==void 0?K:J.Gray,G.text).strokeColor),strokeOpacity:P||S&&S!==W?.3:1,activeDot:z=>{var q;const{cx:B,cy:U,stroke:re,strokeLinecap:ae,strokeLinejoin:fe,strokeWidth:ye,dataKey:Ne}=z;return i.createElement(nr,{className:y("stroke-tremor-background dark:stroke-dark-tremor-background",C?"cursor-pointer":"",H((q=$.get(Ne))!==null&&q!==void 0?q:J.Gray,G.text).fillColor),cx:B,cy:U,r:5,fill:"",stroke:re,strokeLinecap:ae,strokeLinejoin:fe,strokeWidth:ye,onClick:(Se,Be)=>function(we,gt){gt.stopPropagation(),E&&(we.index===(P==null?void 0:P.index)&&we.dataKey===(P==null?void 0:P.dataKey)||_t(r,we.dataKey)&&S&&S===we.dataKey?(j(void 0),_(void 0),C==null||C(null)):(j(we.dataKey),_({index:we.index,dataKey:we.dataKey}),C==null||C(Object.assign({eventType:"dot",categoryClicked:we.dataKey},we.payload))))}(z,Be)})},dot:z=>{var q;const{stroke:B,strokeLinecap:U,strokeLinejoin:re,strokeWidth:ae,cx:fe,cy:ye,dataKey:Ne,index:Se}=z;return _t(r,W)&&!(P||S&&S!==W)||(P==null?void 0:P.index)===Se&&(P==null?void 0:P.dataKey)===W?i.createElement(nr,{key:Se,cx:fe,cy:ye,r:5,stroke:B,fill:"",strokeLinecap:U,strokeLinejoin:re,strokeWidth:ae,className:y("stroke-tremor-background dark:stroke-dark-tremor-background",C?"cursor-pointer":"",H((q=$.get(Ne))!==null&&q!==void 0?q:J.Gray,G.text).fillColor)}):i.createElement(g.Fragment,{key:Se})},key:W,name:W,type:v,dataKey:W,stroke:"",strokeWidth:2,strokeLinejoin:"round",strokeLinecap:"round",isAnimationActive:m,animationDuration:f,connectNulls:O})}),C?n.map(W=>i.createElement(Bn,{className:y("cursor-pointer"),strokeOpacity:0,key:W,name:W,type:v,dataKey:W,stroke:"transparent",fill:"transparent",legendType:"none",tooltipType:"none",strokeWidth:12,connectNulls:O,onClick:(K,z)=>{z.stopPropagation();const{name:q}=K;Y(q)}})):null):i.createElement(mr,{noDataText:T})))});us.displayName="LineChart";const cs=(e,t)=>e.map((r,n)=>{const o=n<t.length?t[n]:J.Gray;return Object.assign(Object.assign({},r),{color:o,className:H(o??J.Gray,G.background).fillColor,fill:""})}),ms=(e,t,r,n)=>e||t(((o,a)=>Ka(o.map(l=>l[a])))(r,n)),fs=({active:e,payload:t,valueFormatter:r})=>{if(e&&t[0]){const n=t[0];return i.createElement(ol,null,i.createElement("div",{className:y(k.twoXl.paddingX,k.sm.paddingY)},i.createElement(al,{value:r(n.value),name:n.name,color:n.payload.color})))}return null},ps=e=>{const{cx:t,cy:r,innerRadius:n,outerRadius:o,startAngle:a,endAngle:l,className:s}=e;return i.createElement("g",null,i.createElement(wi,{cx:t,cy:r,innerRadius:n,outerRadius:o,startAngle:a,endAngle:l,className:s,fill:"",opacity:.3,style:{outline:"none"}}))},gs=i.forwardRef((e,t)=>{const{data:r=[],category:n="value",index:o="name",colors:a=Tt,variant:l="donut",valueFormatter:s=Ke,label:d,showLabel:u=!0,animationDuration:c=900,showAnimation:f=!0,showTooltip:m=!0,noDataText:p,onValueChange:h,className:x}=e,b=X(e,["data","category","index","colors","variant","valueFormatter","label","showLabel","animationDuration","showAnimation","showTooltip","noDataText","onValueChange","className"]),v=l=="donut",w=ms(d,s,r,n),[R,O]=i.useState(void 0),F=!!h;return g.useEffect(()=>{const T=document.querySelectorAll(".recharts-pie-sector");T&&T.forEach(A=>{A.setAttribute("style","outline: none")})},[R]),i.createElement("div",Object.assign({ref:t,className:y("w-full h-44",x)},b),i.createElement(ur,{className:"h-full w-full"},r!=null&&r.length?i.createElement(xi,{onClick:F&&R?()=>{O(void 0),h==null||h(null)}:void 0},u&&v?i.createElement("text",{className:y("fill-tremor-content-emphasis","dark:fill-dark-tremor-content-emphasis"),x:"50%",y:"50%",textAnchor:"middle",dominantBaseline:"middle"},w):null,i.createElement(yi,{className:y("stroke-tremor-background dark:stroke-dark-tremor-background",h?"cursor-pointer":"cursor-default"),data:cs(r,a),cx:"50%",cy:"50%",startAngle:90,endAngle:-270,innerRadius:v?"75%":"0%",outerRadius:"100%",stroke:"",strokeLinejoin:"round",dataKey:n,nameKey:o,isAnimationActive:f,animationDuration:c,onClick:function(T,A,C){C.stopPropagation(),F&&(R===A?(O(void 0),h==null||h(null)):(O(A),h==null||h(Object.assign({eventType:"slice"},T.payload.payload))))},activeIndex:R,inactiveShape:ps,style:{outline:"none"}}),m?i.createElement(cr,{wrapperStyle:{outline:"none"},isAnimationActive:!1,content:({active:T,payload:A})=>i.createElement(fs,{active:T,payload:A,valueFormatter:s})}):null):i.createElement(mr,{noDataText:p})))});gs.displayName="DonutChart";const vs=({children:e})=>i.createElement("div",{className:y("rounded-tremor-default text-tremor-default","bg-tremor-background shadow-tremor-dropdown border-tremor-border","dark:bg-dark-tremor-background dark:shadow-dark-tremor-dropdown dark:border-dark-tremor-border",oe.sm.all)},e),hs=({value:e,name:t})=>i.createElement("div",{className:"flex items-center justify-between space-x-8"},i.createElement("div",{className:"flex items-center space-x-2"},i.createElement("p",{className:y("text-right whitespace-nowrap","text-tremor-content","dark:text-dark-tremor-content")},t)),i.createElement("p",{className:y("font-medium tabular-nums text-right whitespace-nowrap","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},e)),bs=({label:e,active:t,payload:r,valueFormatter:n,axis:o,category:a,categoryColors:l})=>{var s;return t&&r?i.createElement(vs,null,i.createElement("div",{className:y("flex items-center space-x-2","border-tremor-border","dark:border-dark-tremor-border",k.twoXl.paddingX,k.sm.paddingY,oe.sm.bottom)},i.createElement("span",{className:y("shrink-0 rounded-tremor-full","border-tremor-background shadow-tremor-card","dark:border-dark-tremor-background dark:shadow-dark-tremor-card",H(a&&(s=l.get(r[0].payload[a]))!==null&&s!==void 0?s:J.Blue,G.background).bgColor,L.sm.height,L.sm.width,oe.md.all)}),i.createElement("p",{className:y("font-medium","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},e)),i.createElement("div",{className:y(k.twoXl.paddingX,k.sm.paddingY,"space-y-1")},r.map(({value:d,name:u},c)=>{var f,m;const p=(f=Object.keys(o).find(x=>o[x]===u))!==null&&f!==void 0?f:"",h=(m=n[p])!==null&&m!==void 0?m:Ke;return i.createElement(hs,{key:`id-${c}`,value:n&&h?h(d):`${d}`,name:u})}))):null},xs=i.forwardRef((e,t)=>{const{data:r=[],x:n,y:o,size:a,category:l,colors:s=Tt,showOpacity:d=!1,sizeRange:u=[1,1e3],valueFormatter:c={x:Ke,y:Ke,size:Ke},startEndOnly:f=!1,showXAxis:m=!0,showYAxis:p=!0,yAxisWidth:h=56,animationDuration:x=900,showAnimation:b=!1,showTooltip:v=!0,showLegend:w=!0,showGridLines:R=!0,autoMinXValue:O=!1,minXValue:F,maxXValue:T,autoMinYValue:A=!1,minYValue:C,maxYValue:M,allowDecimals:D=!0,onValueChange:I,noDataText:P,className:_}=e,S=X(e,["data","x","y","size","category","colors","showOpacity","sizeRange","valueFormatter","startEndOnly","showXAxis","showYAxis","yAxisWidth","animationDuration","showAnimation","showTooltip","showLegend","showGridLines","autoMinXValue","minXValue","maxXValue","autoMinYValue","minYValue","maxYValue","allowDecimals","onValueChange","noDataText","className"]),[j,$]=g.useState(60),[N,E]=i.useState(void 0),[Y,W]=g.useState(void 0),K=!!I;function z(ae,fe,ye){ye.stopPropagation(),K&&(ar(N,ae.node)?(W(void 0),E(void 0),I==null||I(null)):(E(ae.node),W(ae.payload[l]),I==null||I(Object.assign({eventType:"bubble",categoryClicked:ae.payload[l]},ae.payload))))}const q=Ni(r,l),B=Jr(q,s),U=or(O,F,T),re=or(A,C,M);return i.createElement("div",Object.assign({ref:t,className:y("w-full h-80",_)},S),i.createElement(ur,{className:"h-full w-full"},r!=null&&r.length?i.createElement(ki,{onClick:K&&(Y||N)?()=>{E(void 0),W(void 0),I==null||I(null)}:void 0},R?i.createElement(qr,{className:y("stroke-1","stroke-tremor-border","dark:stroke-dark-tremor-border"),horizontal:!0,vertical:!0}):null,n?i.createElement(tr,{hide:!m,dataKey:n,interval:"preserveStartEnd",tick:{transform:"translate(0, 6)"},ticks:f?[r[0][n],r[r.length-1][n]]:void 0,type:"number",name:n,fill:"",stroke:"",className:y("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickLine:!1,tickFormatter:c.x,axisLine:!1,padding:{left:0,right:0},minTickGap:5,domain:U,allowDataOverflow:!0}):null,o?i.createElement(rr,{width:h,hide:!p,axisLine:!1,tickLine:!1,dataKey:o,type:"number",name:o,domain:re,tick:{transform:"translate(-3, 0)"},tickFormatter:c.y,fill:"",stroke:"",className:y("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),allowDecimals:D,allowDataOverflow:!0}):null,i.createElement(cr,{wrapperStyle:{outline:"none"},isAnimationActive:!1,cursor:{stroke:"#d1d5db",strokeWidth:1},content:v?({active:ae,payload:fe,label:ye})=>{var Ne,Se;return i.createElement(bs,{active:ae,payload:fe,label:l?(Se=(Ne=fe==null?void 0:fe[0])===null||Ne===void 0?void 0:Ne.payload)===null||Se===void 0?void 0:Se[l]:ye,valueFormatter:c,axis:{x:n,y:o,size:a},category:l,categoryColors:B})}:i.createElement(i.Fragment,null)}),a?i.createElement(Ei,{dataKey:a,type:"number",range:u,name:a}):null,q.map(ae=>{var fe,ye;return i.createElement(Ci,{className:`
|
|
1
|
+
import{r as g,R as i,a as Ua,e as jr,b as Er}from"./react-f82877fd.js";import{R as ur,A as pi,C as qr,X as tr,Y as rr,T as cr,L as Qr,a as gi,D as nr,b as Bn,B as vi,c as hi,d as bi,P as xi,e as yi,S as wi,f as ki,Z as Ei,g as Ci}from"./recharts-4037aff0.js";function X(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}const Jr=(e,t)=>{const r=new Map;return e.forEach((n,o)=>{r.set(n,t[o])}),r},or=(e,t,r)=>[e?"auto":t??0,r??"auto"],Ni=(e,t)=>{if(!t)return[];const r=new Set;return e.forEach(n=>{r.add(n[t])}),Array.from(r)};function ar(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e===null||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const o of r)if(!n.includes(o)||!ar(e[o],t[o]))return!1;return!0}function _t(e,t){const r=new Set;for(const n of e)if(Object.prototype.hasOwnProperty.call(n,t)&&(r.add(n[t]),r.size>1))return!1;return!0}const Si=(e,t)=>{const[r,n]=g.useState(t);g.useEffect(()=>{const o=()=>{n(window.innerWidth),e()};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e,r])},L={none:{height:"h-0",width:"w-0"},threeXs:{height:"h-0.5",width:"w-0.5"},twoXs:{height:"h-1",width:"w-1"},xs:{height:"h-2",width:"w-2"},sm:{height:"h-3",width:"w-3"},md:{height:"h-4",width:"w-4"},lg:{height:"h-5",width:"w-5"},xl:{height:"h-6",width:"w-6"},twoXl:{height:"h-7",width:"w-7"},threeXl:{height:"h-9",width:"w-9"}},k={none:{paddingLeft:"pl-0",paddingTop:"pt-0",paddingRight:"pr-0",paddingBottom:"pb-0",paddingX:"px-0",paddingY:"py-0",paddingAll:"p-0",marginLeft:"ml-0",marginTop:"mt-0",marginRight:"mr-0",marginBottom:"mb-0",negativeMarginLeft:"-ml-0",negativeMarginRight:"-mr-0",negativeMarginTop:"-mt-0",negativeMarginBottom:"-mb-0",left:"left-0",right:"right-0",top:"top-0",bottom:"bottom-0",spaceX:"space-x-0"},px:{paddingLeft:"pl-px",paddingTop:"pt-px",paddingRight:"pr-px",paddingBottom:"pb-px",paddingX:"px-px",paddingY:"py-px",paddingAll:"p-px",marginLeft:"ml-px",marginTop:"mt-px",marginRight:"mr-px",marginBottom:"mb-px",negativeMarginLeft:"-ml-px",negativeMarginRight:"-mr-px",negativeMarginTop:"-mt-px",negativeMarginBottom:"-mb-px",left:"left-px",right:"right-px",top:"top-px",bottom:"bottom-px",spaceX:"space-x-px"},threeXs:{paddingLeft:"pl-0.5",paddingTop:"pt-0.5",paddingRight:"pr-0.5",paddingBottom:"pb-0.5",paddingX:"px-0.5",paddingY:"py-0.5",paddingAll:"p-0.5",marginLeft:"ml-0.5",marginTop:"mt-0.5",marginRight:"mr-0.5",marginBottom:"mb-0.5",negativeMarginLeft:"-ml-0.5",negativeMarginRight:"-mr-0.5",negativeMarginTop:"-mt-0.5",negativeMarginBottom:"-mb-0.5",left:"left-0.5",right:"right-0.5",top:"top-0.5",bottom:"bottom-0.5",spaceX:"space-x-0.5"},twoXs:{paddingLeft:"pl-1",paddingTop:"pt-1",paddingRight:"pr-1",paddingBottom:"pb-1",paddingX:"px-1",paddingY:"py-1",paddingAll:"p-1",marginLeft:"ml-1",marginTop:"mt-1",marginRight:"mr-1",marginBottom:"mb-1",negativeMarginLeft:"-ml-1",negativeMarginRight:"-mr-1",left:"left-1",right:"right-1",top:"top-1",bottom:"bottom-1",spaceX:"space-x-1"},xs:{paddingLeft:"pl-1.5",paddingTop:"pt-1.5",paddingRight:"pr-1.5",paddingBottom:"pb-1.5",paddingX:"px-1.5",paddingY:"py-1.5",paddingAll:"p-1.5",marginLeft:"ml-1.5",marginTop:"mt-1.5",marginRight:"mr-1.5",marginBottom:"mb-1.5",negativeMarginLeft:"-ml-1.5",negativeMarginRight:"-mr-1.5",negativeMarginTop:"-mt-1.5",negativeMarginBottom:"-mb-1.5",left:"left-1.5",right:"right-1.5",top:"top-1.5",bottom:"bottom-1.5",spaceX:"space-x-1.5"},sm:{paddingLeft:"pl-2",paddingTop:"pt-2",paddingRight:"pr-2",paddingBottom:"pb-2",paddingX:"px-2",paddingY:"py-2",paddingAll:"p-2",marginLeft:"ml-2",marginTop:"mt-2",marginRight:"mr-2",marginBottom:"mb-2",negativeMarginLeft:"-ml-2",negativeMarginRight:"-mr-2",negativeMarginTop:"-mt-2",negativeMarginBottom:"-mb-2",left:"left-2",right:"right-2",top:"left-2",bottom:"bottom-2",spaceX:"space-x-2"},md:{paddingLeft:"pl-2.5",paddingTop:"pt-2.5",paddingRight:"pr-2.5",paddingBottom:"pb-2.5",paddingX:"px-2.5",paddingY:"py-2.5",paddingAll:"p-2.5",marginLeft:"ml-2.5",marginTop:"mt-2.5",marginRight:"mr-2.5",marginBottom:"mb-2.5",negativeMarginLeft:"-ml-2.5",negativeMarginRight:"-mr-2.5",negativeMarginTop:"-mt-2.5",negativeMarginBottom:"-mb-2.5",left:"left-2.5",right:"right-2.5",top:"top-2.5",bottom:"bottom-2.5",spaceX:"space-x-2.5"},lg:{paddingLeft:"pl-3",paddingTop:"pt-3",paddingRight:"pr-3",paddingBottom:"pb-3",paddingX:"px-3",paddingY:"py-3",paddingAll:"p-3",marginLeft:"ml-3",marginTop:"mt-3",marginRight:"mr-3",marginBottom:"mb-3",negativeMarginLeft:"-ml-3",negativeMarginRight:"-mr-3",negativeMarginTop:"-mt-3",negativeMarginBottom:"-mb-3",left:"left-3",right:"right-3",top:"top-3",bottom:"bottom-3",spaceX:"space-x-3"},xl:{paddingLeft:"pl-3.5",paddingTop:"pt-3.5",paddingRight:"pr-3.5",paddingBottom:"pb-3.5",paddingX:"px-3.5",paddingY:"py-3.5",paddingAll:"p-3.5",marginLeft:"ml-3.5",marginTop:"mt-3.5",marginRight:"mr-3.5",marginBottom:"mb-3.5",negativeMarginLeft:"-ml-3.5",negativeMarginRight:"-mr-3.5",negativeMarginTop:"-mt-3.5",negativeMarginBottom:"-mb-3.5",left:"left-3.5",right:"right-3.5",top:"top-3.5",bottom:"bottom-3.5",spaceX:"space-x-3.5"},twoXl:{paddingLeft:"pl-4",paddingTop:"pt-4",paddingRight:"pr-4",paddingBottom:"pb-4",paddingX:"px-4",paddingY:"py-4",paddingAll:"p-4",marginLeft:"ml-4",marginTop:"mt-4",marginRight:"mr-4",marginBottom:"mb-4",negativeMarginLeft:"-ml-4",negativeMarginRight:"-mr-4",negativeMarginTop:"-mt-4",negativeMarginBottom:"-mb-4",left:"left-4",right:"right-4",top:"top-4",bottom:"bottom-4",spaceX:"space-x-4"},threeXl:{paddingLeft:"pl-6",paddingTop:"pt-6",paddingRight:"pr-6",paddingBottom:"pb-6",paddingX:"px-6",paddingY:"py-6",paddingAll:"p-6",marginLeft:"ml-6",marginTop:"mt-6",marginRight:"mr-6",marginBottom:"mb-6",negativeMarginLeft:"-ml-6",negativeMarginRight:"-mr-6",negativeMarginTop:"-mt-6",negativeMarginBottom:"-mb-6",left:"left-6",right:"right-6",top:"top-6",bottom:"bottom-6",spaceX:"space-x-6"},fourXl:{paddingLeft:"pl-8",paddingTop:"pt-8",paddingRight:"pr-8",paddingBottom:"pb-8",paddingX:"px-8",paddingY:"py-8",paddingAll:"p-8",marginLeft:"ml-8",marginTop:"mt-8",marginRight:"mr-8",marginBottom:"mb-8",negativeMarginLeft:"-ml-8",negativeMarginRight:"-mr-8",negativeMarginTop:"-mt-8",negativeMarginBottom:"-mb-8",left:"left-8",right:"right-8",top:"top-8",bottom:"bottom-8",spaceX:"space-x-8"}},ue={Increase:"increase",ModerateIncrease:"moderateIncrease",Decrease:"decrease",ModerateDecrease:"moderateDecrease",Unchanged:"unchanged"},J={Slate:"slate",Gray:"gray",Zinc:"zinc",Neutral:"neutral",Stone:"stone",Red:"red",Orange:"orange",Amber:"amber",Yellow:"yellow",Lime:"lime",Green:"green",Emerald:"emerald",Teal:"teal",Cyan:"cyan",Sky:"sky",Blue:"blue",Indigo:"indigo",Violet:"violet",Purple:"purple",Fuchsia:"fuchsia",Pink:"pink",Rose:"rose"},Zr={XS:"xs",SM:"sm",MD:"md",LG:"lg",XL:"xl"},At={Left:"left",Right:"right"},zo={Top:"top",Bottom:"bottom"},G={canvasBackground:50,lightBackground:100,background:500,darkBackground:600,darkestBackground:800,lightBorder:200,border:500,darkBorder:700,lightRing:200,ring:300,lightText:400,text:500,darkText:700,darkestText:900,icon:500},Tt=[J.Blue,J.Cyan,J.Sky,J.Indigo,J.Violet,J.Purple,J.Fuchsia,J.Slate,J.Gray,J.Zinc,J.Neutral,J.Stone,J.Red,J.Orange,J.Amber,J.Yellow,J.Lime,J.Green,J.Emerald,J.Teal,J.Pink,J.Rose],Ga=(e,t)=>{if(t||e===ue.Unchanged)return e;switch(e){case ue.Increase:return ue.Decrease;case ue.ModerateIncrease:return ue.ModerateDecrease;case ue.Decrease:return ue.Increase;case ue.ModerateDecrease:return ue.ModerateIncrease}return""},Ke=e=>e.toString(),Ka=e=>e.reduce((t,r)=>t+r,0),Oi=(e,t)=>{for(let r=0;r<t.length;r++)if(t[r]===e)return!0;return!1};function Xt(e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}function te(e){return t=>`tremor-${e}-${t}`}function H(e,t){return e!=="white"&&e!=="black"&&e!=="transparent"&&t?{bgColor:`bg-${e}-${t}`,selectBgColor:`ui-selected:bg-${e}-${t}`,hoverBgColor:`hover:bg-${e}-${t}`,textColor:`text-${e}-${t}`,selectTextColor:`ui-selected:text-${e}-${t}`,hoverTextColor:`hover:text-${e}-${t}`,borderColor:`border-${e}-${t}`,selectBorderColor:`ui-selected:border-${e}-${t}`,hoverBorderColor:`hover:border-${e}-${t}`,ringColor:`ring-${e}-${t}`,strokeColor:`stroke-${e}-${t}`,fillColor:`fill-${e}-${t}`}:{bgColor:`bg-${e}`,hoverBgColor:`hover:bg-${e}`,selectBgColor:`ui-selected:bg-${e}`,textColor:`text-${e}`,selectTextColor:`ui-selected:text-${e}`,hoverTextColor:`hover:text-${e}`,borderColor:`border-${e}`,selectBorderColor:`ui-selected:border-${e}`,hoverBorderColor:`hover:border-${e}`,ringColor:`ring-${e}`,strokeColor:`stroke-${e}`,fillColor:`fill-${e}`}}function Ti(){for(var e=0,t,r,n="";e<arguments.length;)(t=arguments[e++])&&(r=qa(t))&&(n&&(n+=" "),n+=r);return n}function qa(e){if(typeof e=="string")return e;for(var t,r="",n=0;n<e.length;n++)e[n]&&(t=qa(e[n]))&&(r&&(r+=" "),r+=t);return r}var Qn="-";function Ri(e){var t=Di(e),r=e.conflictingClassGroups,n=e.conflictingClassGroupModifiers,o=n===void 0?{}:n;function a(s){var d=s.split(Qn);return d[0]===""&&d.length!==1&&d.shift(),Qa(d,t)||Mi(s)}function l(s,d){var u=r[s]||[];return d&&o[s]?[].concat(u,o[s]):u}return{getClassGroupId:a,getConflictingClassGroupIds:l}}function Qa(e,t){var l;if(e.length===0)return t.classGroupId;var r=e[0],n=t.nextPart.get(r),o=n?Qa(e.slice(1),n):void 0;if(o)return o;if(t.validators.length!==0){var a=e.join(Qn);return(l=t.validators.find(function(s){var d=s.validator;return d(a)}))==null?void 0:l.classGroupId}}var Ho=/^\[(.+)\]$/;function Mi(e){if(Ho.test(e)){var t=Ho.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function Di(e){var t=e.theme,r=e.prefix,n={nextPart:new Map,validators:[]},o=$i(Object.entries(e.classGroups),r);return o.forEach(function(a){var l=a[0],s=a[1];Wn(s,n,l,t)}),n}function Wn(e,t,r,n){e.forEach(function(o){if(typeof o=="string"){var a=o===""?t:Uo(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(Pi(o)){Wn(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(function(l){var s=l[0],d=l[1];Wn(d,Uo(t,s),r,n)})})}function Uo(e,t){var r=e;return t.split(Qn).forEach(function(n){r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r}function Pi(e){return e.isThemeGetter}function $i(e,t){return t?e.map(function(r){var n=r[0],o=r[1],a=o.map(function(l){return typeof l=="string"?t+l:typeof l=="object"?Object.fromEntries(Object.entries(l).map(function(s){var d=s[0],u=s[1];return[t+d,u]})):l});return[n,a]}):e}function Li(e){if(e<1)return{get:function(){},set:function(){}};var t=0,r=new Map,n=new Map;function o(a,l){r.set(a,l),t++,t>e&&(t=0,n=r,r=new Map)}return{get:function(l){var s=r.get(l);if(s!==void 0)return s;if((s=n.get(l))!==void 0)return o(l,s),s},set:function(l,s){r.has(l)?r.set(l,s):o(l,s)}}}var Ja="!";function Ii(e){var t=e.separator||":",r=t.length===1,n=t[0],o=t.length;return function(l){for(var s=[],d=0,u=0,c,f=0;f<l.length;f++){var m=l[f];if(d===0){if(m===n&&(r||l.slice(f,f+o)===t)){s.push(l.slice(u,f)),u=f+o;continue}if(m==="/"){c=f;continue}}m==="["?d++:m==="]"&&d--}var p=s.length===0?l:l.substring(u),h=p.startsWith(Ja),x=h?p.substring(1):p,b=c&&c>u?c-u:void 0;return{modifiers:s,hasImportantModifier:h,baseClassName:x,maybePostfixModifierPosition:b}}}function _i(e){if(e.length<=1)return e;var t=[],r=[];return e.forEach(function(n){var o=n[0]==="[";o?(t.push.apply(t,r.sort().concat([n])),r=[]):r.push(n)}),t.push.apply(t,r.sort()),t}function Ai(e){return{cache:Li(e.cacheSize),splitModifiers:Ii(e),...Ri(e)}}var Fi=/\s+/;function ji(e,t){var r=t.splitModifiers,n=t.getClassGroupId,o=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(Fi).map(function(l){var s=r(l),d=s.modifiers,u=s.hasImportantModifier,c=s.baseClassName,f=s.maybePostfixModifierPosition,m=n(f?c.substring(0,f):c),p=!!f;if(!m){if(!f)return{isTailwindClass:!1,originalClassName:l};if(m=n(c),!m)return{isTailwindClass:!1,originalClassName:l};p=!1}var h=_i(d).join(":"),x=u?h+Ja:h;return{isTailwindClass:!0,modifierId:x,classGroupId:m,originalClassName:l,hasPostfixModifier:p}}).reverse().filter(function(l){if(!l.isTailwindClass)return!0;var s=l.modifierId,d=l.classGroupId,u=l.hasPostfixModifier,c=s+d;return a.has(c)?!1:(a.add(c),o(d,u).forEach(function(f){return a.add(s+f)}),!0)}).reverse().map(function(l){return l.originalClassName}).join(" ")}function Go(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,o,a,l=s;function s(u){var c=t[0],f=t.slice(1),m=f.reduce(function(p,h){return h(p)},c());return n=Ai(m),o=n.cache.get,a=n.cache.set,l=d,d(u)}function d(u){var c=o(u);if(c)return c;var f=ji(u,n);return a(u,f),f}return function(){return l(Ti.apply(null,arguments))}}function ve(e){var t=function(n){return n[e]||[]};return t.isThemeGetter=!0,t}var Za=/^\[(?:([a-z-]+):)?(.+)\]$/i,Bi=/^\d+\/\d+$/,Wi=new Set(["px","full","screen"]),Yi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Xi=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Vi=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function Ae(e){return xt(e)||Wi.has(e)||Bi.test(e)||Yn(e)}function Yn(e){return Rt(e,"length",qi)}function zi(e){return Rt(e,"size",el)}function Hi(e){return Rt(e,"position",el)}function Ui(e){return Rt(e,"url",Qi)}function Cr(e){return Rt(e,"number",xt)}function xt(e){return!Number.isNaN(Number(e))}function Gi(e){return e.endsWith("%")&&xt(e.slice(0,-1))}function Ht(e){return Ko(e)||Rt(e,"number",Ko)}function le(e){return Za.test(e)}function Ut(){return!0}function nt(e){return Yi.test(e)}function Ki(e){return Rt(e,"",Ji)}function Rt(e,t,r){var n=Za.exec(e);return n?n[1]?n[1]===t:r(n[2]):!1}function qi(e){return Xi.test(e)}function el(){return!1}function Qi(e){return e.startsWith("url(")}function Ko(e){return Number.isInteger(Number(e))}function Ji(e){return Vi.test(e)}function qo(){var e=ve("colors"),t=ve("spacing"),r=ve("blur"),n=ve("brightness"),o=ve("borderColor"),a=ve("borderRadius"),l=ve("borderSpacing"),s=ve("borderWidth"),d=ve("contrast"),u=ve("grayscale"),c=ve("hueRotate"),f=ve("invert"),m=ve("gap"),p=ve("gradientColorStops"),h=ve("gradientColorStopPositions"),x=ve("inset"),b=ve("margin"),v=ve("opacity"),w=ve("padding"),R=ve("saturate"),O=ve("scale"),F=ve("sepia"),T=ve("skew"),A=ve("space"),C=ve("translate"),M=function(){return["auto","contain","none"]},D=function(){return["auto","hidden","clip","visible","scroll"]},I=function(){return["auto",le,t]},P=function(){return[le,t]},_=function(){return["",Ae]},S=function(){return["auto",xt,le]},j=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},$=function(){return["solid","dashed","dotted","double","none"]},N=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},E=function(){return["start","end","center","between","around","evenly","stretch"]},Y=function(){return["","0",le]},W=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},K=function(){return[xt,Cr]},z=function(){return[xt,le]};return{cacheSize:500,theme:{colors:[Ut],spacing:[Ae],blur:["none","",nt,le],brightness:K(),borderColor:[e],borderRadius:["none","","full",nt,le],borderSpacing:P(),borderWidth:_(),contrast:K(),grayscale:Y(),hueRotate:z(),invert:Y(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[Gi,Yn],inset:I(),margin:I(),opacity:K(),padding:P(),saturate:K(),scale:K(),sepia:Y(),skew:z(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",le]}],container:["container"],columns:[{columns:[nt]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(j(),[le])}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ht]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",le]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",Ht]}],"grid-cols":[{"grid-cols":[Ut]}],"col-start-end":[{col:["auto",{span:["full",Ht]},le]}],"col-start":[{"col-start":S()}],"col-end":[{"col-end":S()}],"grid-rows":[{"grid-rows":[Ut]}],"row-start-end":[{row:["auto",{span:[Ht]},le]}],"row-start":[{"row-start":S()}],"row-end":[{"row-end":S()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",le]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",le]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal"].concat(E())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(E(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(E(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",le,t]}],"min-w":[{"min-w":["min","max","fit",le,Ae]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[nt]},nt,le]}],h:[{h:[le,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",le,Ae]}],"max-h":[{"max-h":[le,t,"min","max","fit"]}],"font-size":[{text:["base",nt,Yn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Cr]}],"font-family":[{font:[Ut]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",le]}],"line-clamp":[{"line-clamp":["none",xt,Cr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",le,Ae]}],"list-image":[{"list-image":["none",le]}],"list-style-type":[{list:["none","disc","decimal",le]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat($(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",Ae]}],"underline-offset":[{"underline-offset":["auto",le,Ae]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",le]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(j(),[Hi])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",zi]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ui]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[].concat($(),["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:$()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat($())}],"outline-offset":[{"outline-offset":[le,Ae]}],"outline-w":[{outline:[Ae]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:_()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Ae]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",nt,Ki]}],"shadow-color":[{shadow:[Ut]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":N()}],"bg-blend":[{"bg-blend":N()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",nt,le]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[R]}],sepia:[{sepia:[F]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[R]}],"backdrop-sepia":[{"backdrop-sepia":[F]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",le]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",le]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",le]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[O]}],"scale-x":[{"scale-x":[O]}],"scale-y":[{"scale-y":[O]}],rotate:[{rotate:[Ht,le]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",le]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",le]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",le]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ae,Cr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function Zi(e,t){for(var r in t)tl(e,r,t[r]);return e}var es=Object.prototype.hasOwnProperty,ts=new Set(["string","number","boolean"]);function tl(e,t,r){if(!es.call(e,t)||ts.has(typeof r)||r===null){e[t]=r;return}if(Array.isArray(r)&&Array.isArray(e[t])){e[t]=e[t].concat(r);return}if(typeof r=="object"&&typeof e[t]=="object"){if(e[t]===null){e[t]=r;return}for(var n in r)tl(e[t],n,r[n])}}function rs(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return typeof e=="function"?Go.apply(void 0,[qo,e].concat(r)):Go.apply(void 0,[function(){return Zi(qo(),e)}].concat(r))}const y=rs({classGroups:{boxShadow:[{shadow:[{tremor:["input","card","dropdown"],"dark-tremor":["input","card","dropdown"]}]}],borderRadius:[{rounded:[{tremor:["small","default","full"],"dark-tremor":["small","default","full"]}]}],fontSize:[{text:[{tremor:["default","title","metric"],"dark-tremor":["default","title","metric"]}]}]}}),rl=te("Legend"),ns=({name:e,color:t,onClick:r,activeLegend:n})=>{const o=!!r;return i.createElement("li",{className:y(rl("legendItem"),"group inline-flex items-center truncate px-2 py-0.5 rounded-tremor-small transition ",o?"cursor-pointer":"cursor-default","text-tremor-content",o?"hover:bg-tremor-background-subtle":"","dark:text-dark-tremor-content",o?"dark:hover:bg-dark-tremor-background-subtle":""),onClick:a=>{a.stopPropagation(),r==null||r(e,t)}},i.createElement("svg",{className:y("flex-none",H(t,G.text).textColor,L.xs.height,L.xs.width,k.xs.marginRight,n&&n!==e?"opacity-40":"opacity-100"),fill:"currentColor",viewBox:"0 0 8 8"},i.createElement("circle",{cx:4,cy:4,r:4})),i.createElement("p",{className:y("whitespace-nowrap truncate text-tremor-default","text-tremor-content",o?"group-hover:text-tremor-content-emphasis":"","dark:text-dark-tremor-content",n&&n!==e?"opacity-40":"opacity-100",o?"dark:group-hover:text-dark-tremor-content-emphasis":"")},e))},nl=i.forwardRef((e,t)=>{const{categories:r,colors:n=Tt,className:o,onClickLegendItem:a,activeLegend:l}=e,s=X(e,["categories","colors","className","onClickLegendItem","activeLegend"]);return i.createElement("ol",Object.assign({ref:t,className:y(rl("root"),"flex flex-wrap overflow-hidden truncate",o)},s),r.map((d,u)=>i.createElement(ns,{key:`item-${u}`,name:d,color:n[u],onClick:a,activeLegend:l})))});nl.displayName="Legend";const en=({payload:e},t,r,n,o)=>{const a=g.useRef(null);Si(()=>{var s,d;r((d=(s=a.current)===null||s===void 0?void 0:s.clientHeight)?Number(d)+20:60)});const l=e.filter(s=>s.type!=="none");return i.createElement("div",{ref:a,className:"flex items-center justify-end"},i.createElement(nl,{categories:l.map(s=>s.value),colors:l.map(s=>t.get(s.value)),onClickLegendItem:o,activeLegend:n}))},oe={none:{left:"border-l-0",top:"border-t-0",right:"border-r-0",bottom:"border-b-0",all:"border-0"},sm:{left:"border-l",top:"border-t",right:"border-r",bottom:"border-b",all:"border"},md:{left:"border-l-2",top:"border-t-2",right:"border-r-2",bottom:"border-b-2",all:"border-2"},lg:{left:"border-l-4",top:"border-t-4",right:"border-r-4",bottom:"border-b-4",all:"border-4"}},ol=({children:e})=>i.createElement("div",{className:y("rounded-tremor-default text-tremor-default","bg-tremor-background shadow-tremor-dropdown border-tremor-border","dark:bg-dark-tremor-background dark:shadow-dark-tremor-dropdown dark:border-dark-tremor-border",oe.sm.all)},e),al=({value:e,name:t,color:r})=>i.createElement("div",{className:"flex items-center justify-between space-x-8"},i.createElement("div",{className:"flex items-center space-x-2"},i.createElement("span",{className:y("shrink-0 rounded-tremor-full","border-tremor-background shadow-tremor-card","dark:border-dark-tremor-background dark:shadow-dark-tremor-card",H(r,G.background).bgColor,L.sm.height,L.sm.width,oe.md.all)}),i.createElement("p",{className:y("text-right whitespace-nowrap","text-tremor-content","dark:text-dark-tremor-content")},t)),i.createElement("p",{className:y("font-medium tabular-nums text-right whitespace-nowrap","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},e)),Jn=({active:e,payload:t,label:r,categoryColors:n,valueFormatter:o})=>{if(e&&t){const a=t.filter(l=>l.type!=="none");return i.createElement(ol,null,i.createElement("div",{className:y("border-tremor-border","dark:border-dark-tremor-border",k.twoXl.paddingX,k.sm.paddingY,oe.sm.bottom)},i.createElement("p",{className:y("font-medium","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},r)),i.createElement("div",{className:y(k.twoXl.paddingX,k.sm.paddingY,"space-y-1")},a.map(({value:l,name:s},d)=>{var u;return i.createElement(al,{key:`id-${d}`,value:o(l),name:s,color:(u=n.get(s))!==null&&u!==void 0?u:J.Blue})})))}return null},os=te("Flex"),as={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},ls={start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},is={row:"flex-row",col:"flex-col","row-reverse":"flex-row-reverse","col-reverse":"flex-col-reverse"},ll=i.forwardRef((e,t)=>{const{flexDirection:r="row",justifyContent:n="between",alignItems:o="center",children:a,className:l}=e,s=X(e,["flexDirection","justifyContent","alignItems","children","className"]);return i.createElement("div",Object.assign({ref:t,className:y(os("root"),"flex w-full",is[r],as[n],ls[o],l)},s),a)});ll.displayName="Flex";const Zn=i.forwardRef((e,t)=>{const{color:r,className:n,children:o}=e;return i.createElement("p",{ref:t,className:y("text-tremor-default",r?H(r,G.text).textColor:y("text-tremor-content","dark:text-dark-tremor-content"),n)},o)});Zn.displayName="Text";const mr=({noDataText:e="No data"})=>i.createElement(ll,{alignItems:"center",justifyContent:"center",className:y("w-full h-full border border-dashed rounded-tremor-default","border-tremor-border","dark:border-dark-tremor-border")},i.createElement(Zn,{className:y("text-tremor-content","dark:text-dark-tremor-content")},e)),ss=i.forwardRef((e,t)=>{const{data:r=[],categories:n=[],index:o,stack:a=!1,colors:l=Tt,valueFormatter:s=Ke,startEndOnly:d=!1,showXAxis:u=!0,showYAxis:c=!0,yAxisWidth:f=56,showAnimation:m=!1,animationDuration:p=900,showTooltip:h=!0,showLegend:x=!0,showGridLines:b=!0,showGradient:v=!0,autoMinValue:w=!1,curveType:R="linear",minValue:O,maxValue:F,connectNulls:T=!1,allowDecimals:A=!0,noDataText:C,className:M,onValueChange:D}=e,I=X(e,["data","categories","index","stack","colors","valueFormatter","startEndOnly","showXAxis","showYAxis","yAxisWidth","showAnimation","animationDuration","showTooltip","showLegend","showGridLines","showGradient","autoMinValue","curveType","minValue","maxValue","connectNulls","allowDecimals","noDataText","className","onValueChange"]),[P,_]=g.useState(60),[S,j]=g.useState(void 0),[$,N]=g.useState(void 0),E=Jr(n,l),Y=or(w,O,F),W=!!D;function K(z){W&&(z===$&&!S||_t(r,z)&&S&&S.dataKey===z?(N(void 0),D==null||D(null)):(N(z),D==null||D({eventType:"category",categoryClicked:z})),j(void 0))}return i.createElement("div",Object.assign({ref:t,className:y("w-full h-80",M)},I),i.createElement(ur,{className:"h-full w-full"},r!=null&&r.length?i.createElement(pi,{data:r,onClick:W&&($||S)?()=>{j(void 0),N(void 0),D==null||D(null)}:void 0}," ",b?i.createElement(qr,{className:y("stroke-1","stroke-tremor-border","dark:stroke-dark-tremor-border"),horizontal:!0,vertical:!1}):null,i.createElement(tr,{hide:!u,dataKey:o,tick:{transform:"translate(0, 6)"},ticks:d?[r[0][o],r[r.length-1][o]]:void 0,fill:"",stroke:"",className:y("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),interval:"preserveStartEnd",tickLine:!1,axisLine:!1,padding:{left:10,right:10},minTickGap:5}),i.createElement(rr,{width:f,hide:!c,axisLine:!1,tickLine:!1,type:"number",domain:Y,tick:{transform:"translate(-3, 0)"},fill:"",stroke:"",className:y("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickFormatter:s,allowDecimals:A}),i.createElement(cr,{wrapperStyle:{outline:"none"},isAnimationActive:!1,cursor:{stroke:"#d1d5db",strokeWidth:1},content:h?({active:z,payload:q,label:B})=>i.createElement(Jn,{active:z,payload:q,label:B,valueFormatter:s,categoryColors:E}):i.createElement(i.Fragment,null),position:{y:0}}),x?i.createElement(Qr,{verticalAlign:"top",height:P,content:({payload:z})=>en({payload:z},E,_,$,W?q=>K(q):void 0)}):null,n.map(z=>{var q,B;return i.createElement("defs",{key:z},v?i.createElement("linearGradient",{className:H((q=E.get(z))!==null&&q!==void 0?q:J.Gray,G.text).textColor,id:E.get(z),x1:"0",y1:"0",x2:"0",y2:"1"},i.createElement("stop",{offset:"5%",stopColor:"currentColor",stopOpacity:S||$&&$!==z?.15:.4}),i.createElement("stop",{offset:"95%",stopColor:"currentColor",stopOpacity:0})):i.createElement("linearGradient",{className:H((B=E.get(z))!==null&&B!==void 0?B:J.Gray,G.text).textColor,id:E.get(z),x1:"0",y1:"0",x2:"0",y2:"1"},i.createElement("stop",{stopColor:"currentColor",stopOpacity:S||$&&$!==z?.1:.3})))}),n.map(z=>{var q;return i.createElement(gi,{className:H((q=E.get(z))!==null&&q!==void 0?q:J.Gray,G.text).strokeColor,strokeOpacity:S||$&&$!==z?.3:1,activeDot:B=>{var U;const{cx:re,cy:ae,stroke:fe,strokeLinecap:ye,strokeLinejoin:Ne,strokeWidth:Se,dataKey:Be}=B;return i.createElement(nr,{className:y("stroke-tremor-background dark:stroke-dark-tremor-background",D?"cursor-pointer":"",H((U=E.get(Be))!==null&&U!==void 0?U:J.Gray,G.text).fillColor),cx:re,cy:ae,r:5,fill:"",stroke:fe,strokeLinecap:ye,strokeLinejoin:Ne,strokeWidth:Se,onClick:(we,gt)=>function(_e,bn){bn.stopPropagation(),W&&(_e.index===(S==null?void 0:S.index)&&_e.dataKey===(S==null?void 0:S.dataKey)||_t(r,_e.dataKey)&&$&&$===_e.dataKey?(N(void 0),j(void 0),D==null||D(null)):(N(_e.dataKey),j({index:_e.index,dataKey:_e.dataKey}),D==null||D(Object.assign({eventType:"dot",categoryClicked:_e.dataKey},_e.payload))))}(B,gt)})},dot:B=>{var U;const{stroke:re,strokeLinecap:ae,strokeLinejoin:fe,strokeWidth:ye,cx:Ne,cy:Se,dataKey:Be,index:we}=B;return _t(r,z)&&!(S||$&&$!==z)||(S==null?void 0:S.index)===we&&(S==null?void 0:S.dataKey)===z?i.createElement(nr,{key:we,cx:Ne,cy:Se,r:5,stroke:re,fill:"",strokeLinecap:ae,strokeLinejoin:fe,strokeWidth:ye,className:y("stroke-tremor-background dark:stroke-dark-tremor-background",D?"cursor-pointer":"",H((U=E.get(Be))!==null&&U!==void 0?U:J.Gray,G.text).fillColor)}):i.createElement(g.Fragment,{key:we})},key:z,name:z,type:R,dataKey:z,stroke:"",fill:`url(#${E.get(z)})`,strokeWidth:2,strokeLinejoin:"round",strokeLinecap:"round",isAnimationActive:m,animationDuration:p,stackId:a?"a":void 0,connectNulls:T})}),D?n.map(z=>i.createElement(Bn,{className:y("cursor-pointer"),strokeOpacity:0,key:z,name:z,type:R,dataKey:z,stroke:"transparent",fill:"transparent",legendType:"none",tooltipType:"none",strokeWidth:12,connectNulls:T,onClick:(q,B)=>{B.stopPropagation();const{name:U}=q;K(U)}})):null):i.createElement(mr,{noDataText:C})))});ss.displayName="AreaChart";const ds=i.forwardRef((e,t)=>{const{data:r=[],categories:n=[],index:o,colors:a=Tt,valueFormatter:l=Ke,layout:s="horizontal",stack:d=!1,relative:u=!1,startEndOnly:c=!1,animationDuration:f=900,showAnimation:m=!1,showXAxis:p=!0,showYAxis:h=!0,yAxisWidth:x=56,showTooltip:b=!0,showLegend:v=!0,showGridLines:w=!0,autoMinValue:R=!1,minValue:O,maxValue:F,allowDecimals:T=!0,noDataText:A,onValueChange:C,className:M}=e,D=X(e,["data","categories","index","colors","valueFormatter","layout","stack","relative","startEndOnly","animationDuration","showAnimation","showXAxis","showYAxis","yAxisWidth","showTooltip","showLegend","showGridLines","autoMinValue","minValue","maxValue","allowDecimals","noDataText","onValueChange","className"]),[I,P]=g.useState(60),_=Jr(n,a),[S,j]=i.useState(void 0),[$,N]=g.useState(void 0),E=!!C;function Y(K,z,q){var B,U;q.stopPropagation(),C&&(ar(S,Object.assign(Object.assign({},K.payload),{value:K.value}))?(N(void 0),j(void 0),C==null||C(null)):(N((B=K.tooltipPayload[0])===null||B===void 0?void 0:B.dataKey),j(Object.assign(Object.assign({},K.payload),{value:K.value})),C==null||C(Object.assign({eventType:"bar",categoryClicked:(U=K.tooltipPayload[0])===null||U===void 0?void 0:U.dataKey},K.payload))))}const W=or(R,O,F);return i.createElement("div",Object.assign({ref:t,className:y("w-full h-80",M)},D),i.createElement(ur,{className:"h-full w-full"},r!=null&&r.length?i.createElement(vi,{data:r,stackOffset:u?"expand":"none",layout:s==="vertical"?"vertical":"horizontal",onClick:E&&($||S)?()=>{j(void 0),N(void 0),C==null||C(null)}:void 0},w?i.createElement(qr,{className:y("stroke-1","stroke-tremor-border","dark:stroke-dark-tremor-border"),horizontal:s!=="vertical",vertical:s==="vertical"}):null,s!=="vertical"?i.createElement(tr,{hide:!p,dataKey:o,interval:"preserveStartEnd",tick:{transform:"translate(0, 6)"},ticks:c?[r[0][o],r[r.length-1][o]]:void 0,fill:"",stroke:"",className:y("mt-4 text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickLine:!1,axisLine:!1}):i.createElement(tr,{hide:!p,type:"number",tick:{transform:"translate(-3, 0)"},domain:W,fill:"",stroke:"",className:y("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickLine:!1,axisLine:!1,tickFormatter:l,padding:{left:10,right:10},minTickGap:5,allowDecimals:T}),s!=="vertical"?i.createElement(rr,{width:x,hide:!h,axisLine:!1,tickLine:!1,type:"number",domain:W,tick:{transform:"translate(-3, 0)"},fill:"",stroke:"",className:y("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickFormatter:u?K=>`${(100*K).toString()} %`:l,allowDecimals:T}):i.createElement(rr,{width:x,hide:!h,dataKey:o,axisLine:!1,tickLine:!1,ticks:c?[r[0][o],r[r.length-1][o]]:void 0,type:"category",interval:"preserveStartEnd",tick:{transform:"translate(0, 6)"},fill:"",stroke:"",className:y("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content")}),i.createElement(cr,{wrapperStyle:{outline:"none"},isAnimationActive:!1,cursor:{fill:"#d1d5db",opacity:"0.15"},content:b?({active:K,payload:z,label:q})=>i.createElement(Jn,{active:K,payload:z,label:q,valueFormatter:l,categoryColors:_}):i.createElement(i.Fragment,null),position:{y:0}}),v?i.createElement(Qr,{verticalAlign:"top",height:I,content:({payload:K})=>en({payload:K},_,P,$,E?z=>{return q=z,void(E&&(q!==$||S?(N(q),C==null||C({eventType:"category",categoryClicked:q})):(N(void 0),C==null||C(null)),j(void 0)));var q}:void 0)}):null,n.map(K=>{var z;return i.createElement(hi,{className:y(H((z=_.get(K))!==null&&z!==void 0?z:J.Gray,G.background).fillColor,C?"cursor-pointer":""),key:K,name:K,type:"linear",stackId:d||u?"a":void 0,dataKey:K,fill:"",isAnimationActive:m,animationDuration:f,shape:q=>((B,U,re)=>{const{x:ae,y:fe,width:ye,height:Ne,fillOpacity:Se,name:Be,payload:we,value:gt}=B;return i.createElement("rect",{x:ae,y:fe,width:ye,height:Ne,opacity:U||re&&re!==Be?ar(U,Object.assign(Object.assign({},we),{value:gt}))?Se:.3:Se})})(q,S,$),onClick:Y})})):i.createElement(mr,{noDataText:A})))});ds.displayName="BarChart";const us=i.forwardRef((e,t)=>{const{data:r=[],categories:n=[],index:o,colors:a=Tt,valueFormatter:l=Ke,startEndOnly:s=!1,showXAxis:d=!0,showYAxis:u=!0,yAxisWidth:c=56,animationDuration:f=900,showAnimation:m=!1,showTooltip:p=!0,showLegend:h=!0,showGridLines:x=!0,autoMinValue:b=!1,curveType:v="linear",minValue:w,maxValue:R,connectNulls:O=!1,allowDecimals:F=!0,noDataText:T,className:A,onValueChange:C}=e,M=X(e,["data","categories","index","colors","valueFormatter","startEndOnly","showXAxis","showYAxis","yAxisWidth","animationDuration","showAnimation","showTooltip","showLegend","showGridLines","autoMinValue","curveType","minValue","maxValue","connectNulls","allowDecimals","noDataText","className","onValueChange"]),[D,I]=g.useState(60),[P,_]=g.useState(void 0),[S,j]=g.useState(void 0),$=Jr(n,a),N=or(b,w,R),E=!!C;function Y(W){E&&(W===S&&!P||_t(r,W)&&P&&P.dataKey===W?(j(void 0),C==null||C(null)):(j(W),C==null||C({eventType:"category",categoryClicked:W})),_(void 0))}return i.createElement("div",Object.assign({ref:t,className:y("w-full h-80",A)},M),i.createElement(ur,{className:"h-full w-full"},r!=null&&r.length?i.createElement(bi,{data:r,onClick:E&&(S||P)?()=>{_(void 0),j(void 0),C==null||C(null)}:void 0},x?i.createElement(qr,{className:y("stroke-1","stroke-tremor-border","dark:stroke-dark-tremor-border"),horizontal:!0,vertical:!1}):null,i.createElement(tr,{hide:!d,dataKey:o,interval:"preserveStartEnd",tick:{transform:"translate(0, 6)"},ticks:s?[r[0][o],r[r.length-1][o]]:void 0,fill:"",stroke:"",className:y("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickLine:!1,axisLine:!1,padding:{left:10,right:10},minTickGap:5}),i.createElement(rr,{width:c,hide:!u,axisLine:!1,tickLine:!1,type:"number",domain:N,tick:{transform:"translate(-3, 0)"},fill:"",stroke:"",className:y("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickFormatter:l,allowDecimals:F}),i.createElement(cr,{wrapperStyle:{outline:"none"},isAnimationActive:!1,cursor:{stroke:"#d1d5db",strokeWidth:1},content:p?({active:W,payload:K,label:z})=>i.createElement(Jn,{active:W,payload:K,label:z,valueFormatter:l,categoryColors:$}):i.createElement(i.Fragment,null),position:{y:0}}),h?i.createElement(Qr,{verticalAlign:"top",height:D,content:({payload:W})=>en({payload:W},$,I,S,E?K=>Y(K):void 0)}):null,n.map(W=>{var K;return i.createElement(Bn,{className:y(H((K=$.get(W))!==null&&K!==void 0?K:J.Gray,G.text).strokeColor),strokeOpacity:P||S&&S!==W?.3:1,activeDot:z=>{var q;const{cx:B,cy:U,stroke:re,strokeLinecap:ae,strokeLinejoin:fe,strokeWidth:ye,dataKey:Ne}=z;return i.createElement(nr,{className:y("stroke-tremor-background dark:stroke-dark-tremor-background",C?"cursor-pointer":"",H((q=$.get(Ne))!==null&&q!==void 0?q:J.Gray,G.text).fillColor),cx:B,cy:U,r:5,fill:"",stroke:re,strokeLinecap:ae,strokeLinejoin:fe,strokeWidth:ye,onClick:(Se,Be)=>function(we,gt){gt.stopPropagation(),E&&(we.index===(P==null?void 0:P.index)&&we.dataKey===(P==null?void 0:P.dataKey)||_t(r,we.dataKey)&&S&&S===we.dataKey?(j(void 0),_(void 0),C==null||C(null)):(j(we.dataKey),_({index:we.index,dataKey:we.dataKey}),C==null||C(Object.assign({eventType:"dot",categoryClicked:we.dataKey},we.payload))))}(z,Be)})},dot:z=>{var q;const{stroke:B,strokeLinecap:U,strokeLinejoin:re,strokeWidth:ae,cx:fe,cy:ye,dataKey:Ne,index:Se}=z;return _t(r,W)&&!(P||S&&S!==W)||(P==null?void 0:P.index)===Se&&(P==null?void 0:P.dataKey)===W?i.createElement(nr,{key:Se,cx:fe,cy:ye,r:5,stroke:B,fill:"",strokeLinecap:U,strokeLinejoin:re,strokeWidth:ae,className:y("stroke-tremor-background dark:stroke-dark-tremor-background",C?"cursor-pointer":"",H((q=$.get(Ne))!==null&&q!==void 0?q:J.Gray,G.text).fillColor)}):i.createElement(g.Fragment,{key:Se})},key:W,name:W,type:v,dataKey:W,stroke:"",strokeWidth:2,strokeLinejoin:"round",strokeLinecap:"round",isAnimationActive:m,animationDuration:f,connectNulls:O})}),C?n.map(W=>i.createElement(Bn,{className:y("cursor-pointer"),strokeOpacity:0,key:W,name:W,type:v,dataKey:W,stroke:"transparent",fill:"transparent",legendType:"none",tooltipType:"none",strokeWidth:12,connectNulls:O,onClick:(K,z)=>{z.stopPropagation();const{name:q}=K;Y(q)}})):null):i.createElement(mr,{noDataText:T})))});us.displayName="LineChart";const cs=(e,t)=>e.map((r,n)=>{const o=n<t.length?t[n]:J.Gray;return Object.assign(Object.assign({},r),{color:o,className:H(o??J.Gray,G.background).fillColor,fill:""})}),ms=(e,t,r,n)=>e||t(((o,a)=>Ka(o.map(l=>l[a])))(r,n)),fs=({active:e,payload:t,valueFormatter:r})=>{if(e&&t[0]){const n=t[0];return i.createElement(ol,null,i.createElement("div",{className:y(k.twoXl.paddingX,k.sm.paddingY)},i.createElement(al,{value:r(n.value),name:n.name,color:n.payload.color})))}return null},ps=e=>{const{cx:t,cy:r,innerRadius:n,outerRadius:o,startAngle:a,endAngle:l,className:s}=e;return i.createElement("g",null,i.createElement(wi,{cx:t,cy:r,innerRadius:n,outerRadius:o,startAngle:a,endAngle:l,className:s,fill:"",opacity:.3,style:{outline:"none"}}))},gs=i.forwardRef((e,t)=>{const{data:r=[],category:n="value",index:o="name",colors:a=Tt,variant:l="donut",valueFormatter:s=Ke,label:d,showLabel:u=!0,animationDuration:c=900,showAnimation:f=!0,showTooltip:m=!0,noDataText:p,onValueChange:h,className:x}=e,b=X(e,["data","category","index","colors","variant","valueFormatter","label","showLabel","animationDuration","showAnimation","showTooltip","noDataText","onValueChange","className"]),v=l=="donut",w=ms(d,s,r,n),[R,O]=i.useState(void 0),F=!!h;return g.useEffect(()=>{const T=document.querySelectorAll(".recharts-pie-sector");T&&T.forEach(A=>{A.setAttribute("style","outline: none")})},[R]),i.createElement("div",Object.assign({ref:t,className:y("w-full h-44",x)},b),i.createElement(ur,{className:"h-full w-full"},r!=null&&r.length?i.createElement(xi,{onClick:F&&R?()=>{O(void 0),h==null||h(null)}:void 0},u&&v?i.createElement("text",{className:y("fill-tremor-content-emphasis","dark:fill-dark-tremor-content-emphasis"),x:"50%",y:"50%",textAnchor:"middle",dominantBaseline:"middle"},w):null,i.createElement(yi,{className:y("stroke-tremor-background dark:stroke-dark-tremor-background",h?"cursor-pointer":"cursor-default"),data:cs(r,a),cx:"50%",cy:"50%",startAngle:90,endAngle:-270,innerRadius:v?"75%":"0%",outerRadius:"100%",stroke:"",strokeLinejoin:"round",dataKey:n,nameKey:o,isAnimationActive:f,animationDuration:c,onClick:function(T,A,C){C.stopPropagation(),F&&(R===A?(O(void 0),h==null||h(null)):(O(A),h==null||h(Object.assign({eventType:"slice"},T.payload.payload))))},activeIndex:R,inactiveShape:ps,style:{outline:"none"}}),m?i.createElement(cr,{wrapperStyle:{outline:"none"},isAnimationActive:!1,content:({active:T,payload:A})=>i.createElement(fs,{active:T,payload:A,valueFormatter:s})}):null):i.createElement(mr,{noDataText:p})))});gs.displayName="DonutChart";const vs=({children:e})=>i.createElement("div",{className:y("rounded-tremor-default text-tremor-default","bg-tremor-background shadow-tremor-dropdown border-tremor-border","dark:bg-dark-tremor-background dark:shadow-dark-tremor-dropdown dark:border-dark-tremor-border",oe.sm.all)},e),hs=({value:e,name:t})=>i.createElement("div",{className:"flex items-center justify-between space-x-8"},i.createElement("div",{className:"flex items-center space-x-2"},i.createElement("p",{className:y("text-right whitespace-nowrap","text-tremor-content","dark:text-dark-tremor-content")},t)),i.createElement("p",{className:y("font-medium tabular-nums text-right whitespace-nowrap","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},e)),bs=({label:e,active:t,payload:r,valueFormatter:n,axis:o,category:a,categoryColors:l})=>{var s;return t&&r?i.createElement(vs,null,i.createElement("div",{className:y("flex items-center space-x-2","border-tremor-border","dark:border-dark-tremor-border",k.twoXl.paddingX,k.sm.paddingY,oe.sm.bottom)},i.createElement("span",{className:y("shrink-0 rounded-tremor-full","border-tremor-background shadow-tremor-card","dark:border-dark-tremor-background dark:shadow-dark-tremor-card",H(a&&(s=l.get(r[0].payload[a]))!==null&&s!==void 0?s:J.Blue,G.background).bgColor,L.sm.height,L.sm.width,oe.md.all)}),i.createElement("p",{className:y("font-medium","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis")},e)),i.createElement("div",{className:y(k.twoXl.paddingX,k.sm.paddingY,"space-y-1")},r.map(({value:d,name:u},c)=>{var f,m;const p=(f=Object.keys(o).find(x=>o[x]===u))!==null&&f!==void 0?f:"",h=(m=n[p])!==null&&m!==void 0?m:Ke;return i.createElement(hs,{key:`id-${c}`,value:n&&h?h(d):`${d}`,name:u})}))):null},xs=i.forwardRef((e,t)=>{const{data:r=[],x:n,y:o,size:a,category:l,colors:s=Tt,showOpacity:d=!1,sizeRange:u=[1,1e3],valueFormatter:c={x:Ke,y:Ke,size:Ke},startEndOnly:f=!1,showXAxis:m=!0,showYAxis:p=!0,yAxisWidth:h=56,animationDuration:x=900,showAnimation:b=!1,showTooltip:v=!0,showLegend:w=!0,showGridLines:R=!0,autoMinXValue:O=!1,minXValue:F,maxXValue:T,autoMinYValue:A=!1,minYValue:C,maxYValue:M,allowDecimals:D=!0,onValueChange:I,noDataText:P,className:_}=e,S=X(e,["data","x","y","size","category","colors","showOpacity","sizeRange","valueFormatter","startEndOnly","showXAxis","showYAxis","yAxisWidth","animationDuration","showAnimation","showTooltip","showLegend","showGridLines","autoMinXValue","minXValue","maxXValue","autoMinYValue","minYValue","maxYValue","allowDecimals","onValueChange","noDataText","className"]),[j,$]=g.useState(60),[N,E]=i.useState(void 0),[Y,W]=g.useState(void 0),K=!!I;function z(ae,fe,ye){ye.stopPropagation(),K&&(ar(N,ae.node)?(W(void 0),E(void 0),I==null||I(null)):(E(ae.node),W(ae.payload[l]),I==null||I(Object.assign({eventType:"bubble",categoryClicked:ae.payload[l]},ae.payload))))}const q=Ni(r,l),B=Jr(q,s),U=or(O,F,T),re=or(A,C,M);return i.createElement("div",Object.assign({ref:t,className:y("w-full h-80",_)},S),i.createElement(ur,{className:"h-full w-full"},r!=null&&r.length?i.createElement(ki,{onClick:K&&(Y||N)?()=>{E(void 0),W(void 0),I==null||I(null)}:void 0},R?i.createElement(qr,{className:y("stroke-1","stroke-tremor-border","dark:stroke-dark-tremor-border"),horizontal:!0,vertical:!0}):null,n?i.createElement(tr,{hide:!m,dataKey:n,interval:"preserveStartEnd",tick:{transform:"translate(0, 6)"},ticks:f?[r[0][n],r[r.length-1][n]]:void 0,type:"number",name:n,fill:"",stroke:"",className:y("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),tickLine:!1,tickFormatter:c.x,axisLine:!1,padding:{left:0,right:0},minTickGap:5,domain:U,allowDataOverflow:!0}):null,o?i.createElement(rr,{width:h,hide:!p,axisLine:!1,tickLine:!1,dataKey:o,type:"number",name:o,domain:re,tick:{transform:"translate(-3, 0)"},tickFormatter:c.y,fill:"",stroke:"",className:y("text-tremor-label","fill-tremor-content","dark:fill-dark-tremor-content"),allowDecimals:D,allowDataOverflow:!0}):null,i.createElement(cr,{wrapperStyle:{outline:"none"},isAnimationActive:!1,cursor:{stroke:"#d1d5db",strokeWidth:1},content:v?({active:ae,payload:fe,label:ye})=>{var Ne,Se;return i.createElement(bs,{active:ae,payload:fe,label:l?(Se=(Ne=fe==null?void 0:fe[0])===null||Ne===void 0?void 0:Ne.payload)===null||Se===void 0?void 0:Se[l]:ye,valueFormatter:c,axis:{x:n,y:o,size:a},category:l,categoryColors:B})}:i.createElement(i.Fragment,null)}),a?i.createElement(Ei,{dataKey:a,type:"number",range:u,name:a}):null,q.map(ae=>{var fe,ye;return i.createElement(Ci,{className:`
|
|
2
2
|
${H((fe=B.get(ae))!==null&&fe!==void 0?fe:J.Gray,G.text).fillColor}
|
|
3
3
|
${d?H((ye=B.get(ae))!==null&&ye!==void 0?ye:J.Gray,G.text).strokeColor:""}
|
|
4
4
|
${I?"cursor-pointer":""}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
<title>Holistic Evaluation of Language Models (HELM)</title>
|
|
8
8
|
<meta name="description" content="The Holistic Evaluation of Language Models (HELM) serves as a living benchmark for transparency in language models. Providing broad coverage and recognizing incompleteness, multi-metric measurements, and standardization. All data and analysis are freely accessible on the website for exploration and study." />
|
|
9
9
|
<script type="text/javascript" src="./config.js"></script>
|
|
10
|
-
<script type="module" crossorigin src="./assets/index-
|
|
11
|
-
<link rel="modulepreload" crossorigin href="./assets/react-
|
|
12
|
-
<link rel="modulepreload" crossorigin href="./assets/recharts-
|
|
13
|
-
<link rel="modulepreload" crossorigin href="./assets/tremor-
|
|
14
|
-
<link rel="stylesheet" href="./assets/index-
|
|
10
|
+
<script type="module" crossorigin src="./assets/index-262903c1.js"></script>
|
|
11
|
+
<link rel="modulepreload" crossorigin href="./assets/react-f82877fd.js">
|
|
12
|
+
<link rel="modulepreload" crossorigin href="./assets/recharts-4037aff0.js">
|
|
13
|
+
<link rel="modulepreload" crossorigin href="./assets/tremor-9cefc3c5.js">
|
|
14
|
+
<link rel="stylesheet" href="./assets/index-42060d71.css">
|
|
15
15
|
</head>
|
|
16
16
|
<body class="block">
|
|
17
17
|
<div id="root"></div>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from abc import ABC
|
|
2
2
|
|
|
3
3
|
from helm.common.hierarchical_logger import hlog
|
|
4
|
-
from .local_window_service import LocalWindowService
|
|
4
|
+
from helm.benchmark.window_services.local_window_service import LocalWindowService
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
class EncoderDecoderWindowService(LocalWindowService, ABC):
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
from abc import ABC
|
|
2
2
|
from typing import List, Optional, cast
|
|
3
3
|
|
|
4
|
-
from .window_service import ConfigurableWindowService, EncodeResult
|
|
5
|
-
from .tokenizer_service import TokenizerService
|
|
4
|
+
from helm.benchmark.window_services.window_service import ConfigurableWindowService, EncodeResult
|
|
5
|
+
from helm.benchmark.window_services.tokenizer_service import TokenizerService
|
|
6
6
|
from helm.common.tokenization_request import (
|
|
7
7
|
DecodeRequest,
|
|
8
8
|
DecodeRequestResult,
|
|
@@ -3,9 +3,9 @@ import tempfile
|
|
|
3
3
|
from typing import List
|
|
4
4
|
|
|
5
5
|
from helm.common.cache_backend_config import BlackHoleCacheBackendConfig
|
|
6
|
-
from .tokenizer_service import TokenizerService
|
|
7
|
-
from .window_service_factory import WindowServiceFactory
|
|
8
|
-
from .test_utils import get_tokenizer_service, TEST_PROMPT
|
|
6
|
+
from helm.benchmark.window_services.tokenizer_service import TokenizerService
|
|
7
|
+
from helm.benchmark.window_services.window_service_factory import WindowServiceFactory
|
|
8
|
+
from helm.benchmark.window_services.test_utils import get_tokenizer_service, TEST_PROMPT
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class TestAnthropicWindowService:
|
|
@@ -3,9 +3,9 @@ import tempfile
|
|
|
3
3
|
from typing import List
|
|
4
4
|
|
|
5
5
|
from helm.common.cache_backend_config import BlackHoleCacheBackendConfig
|
|
6
|
-
from .tokenizer_service import TokenizerService
|
|
7
|
-
from .window_service_factory import WindowServiceFactory
|
|
8
|
-
from .test_utils import get_tokenizer_service, TEST_PROMPT
|
|
6
|
+
from helm.benchmark.window_services.tokenizer_service import TokenizerService
|
|
7
|
+
from helm.benchmark.window_services.window_service_factory import WindowServiceFactory
|
|
8
|
+
from helm.benchmark.window_services.test_utils import get_tokenizer_service, TEST_PROMPT
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class TestBloomWindowService:
|
|
@@ -3,8 +3,13 @@ import tempfile
|
|
|
3
3
|
|
|
4
4
|
from helm.benchmark.window_services.tokenizer_service import TokenizerService
|
|
5
5
|
from helm.common.cache_backend_config import BlackHoleCacheBackendConfig
|
|
6
|
-
from .test_utils import
|
|
7
|
-
|
|
6
|
+
from helm.benchmark.window_services.test_utils import (
|
|
7
|
+
get_tokenizer_service,
|
|
8
|
+
TEST_PROMPT,
|
|
9
|
+
GPT2_TEST_TOKENS,
|
|
10
|
+
GPT2_TEST_TOKEN_IDS,
|
|
11
|
+
)
|
|
12
|
+
from helm.benchmark.window_services.window_service_factory import WindowServiceFactory
|
|
8
13
|
|
|
9
14
|
|
|
10
15
|
class TestGPT2WindowService:
|
|
@@ -2,9 +2,14 @@ import shutil
|
|
|
2
2
|
import tempfile
|
|
3
3
|
|
|
4
4
|
from helm.common.cache_backend_config import BlackHoleCacheBackendConfig
|
|
5
|
-
from .test_utils import
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
from helm.benchmark.window_services.test_utils import (
|
|
6
|
+
get_tokenizer_service,
|
|
7
|
+
TEST_PROMPT,
|
|
8
|
+
GPT4_TEST_TOKEN_IDS,
|
|
9
|
+
GPT4_TEST_TOKENS,
|
|
10
|
+
)
|
|
11
|
+
from helm.benchmark.window_services.tokenizer_service import TokenizerService
|
|
12
|
+
from helm.benchmark.window_services.window_service_factory import WindowServiceFactory
|
|
8
13
|
|
|
9
14
|
|
|
10
15
|
class TestOpenAIWindowService:
|
|
@@ -2,9 +2,14 @@ import shutil
|
|
|
2
2
|
import tempfile
|
|
3
3
|
|
|
4
4
|
from helm.common.cache_backend_config import BlackHoleCacheBackendConfig
|
|
5
|
-
from .tokenizer_service import TokenizerService
|
|
6
|
-
from .window_service_factory import WindowServiceFactory
|
|
7
|
-
from .test_utils import
|
|
5
|
+
from helm.benchmark.window_services.tokenizer_service import TokenizerService
|
|
6
|
+
from helm.benchmark.window_services.window_service_factory import WindowServiceFactory
|
|
7
|
+
from helm.benchmark.window_services.test_utils import (
|
|
8
|
+
get_tokenizer_service,
|
|
9
|
+
GPT2_TEST_TOKENS,
|
|
10
|
+
GPT2_TEST_TOKEN_IDS,
|
|
11
|
+
TEST_PROMPT,
|
|
12
|
+
)
|
|
8
13
|
|
|
9
14
|
|
|
10
15
|
class TestGPTJWindowService:
|
|
@@ -3,9 +3,9 @@ import tempfile
|
|
|
3
3
|
from typing import List
|
|
4
4
|
|
|
5
5
|
from helm.common.cache_backend_config import BlackHoleCacheBackendConfig
|
|
6
|
-
from .tokenizer_service import TokenizerService
|
|
7
|
-
from .window_service_factory import WindowServiceFactory
|
|
8
|
-
from .test_utils import get_tokenizer_service, TEST_PROMPT
|
|
6
|
+
from helm.benchmark.window_services.tokenizer_service import TokenizerService
|
|
7
|
+
from helm.benchmark.window_services.window_service_factory import WindowServiceFactory
|
|
8
|
+
from helm.benchmark.window_services.test_utils import get_tokenizer_service, TEST_PROMPT
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class TestGPTNeoXWindowService:
|