@tmf_ciclica/ciclicastorybook 1.2.155 → 1.2.156

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.
package/dist/index.cjs.js CHANGED
@@ -1,29 +1,29 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@charset "UTF-8";@import"https://unpkg.com/maplibre-gl@^5.3.0/dist/maplibre-gl.css";@import"https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap";._ambitSelector_mcunf_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;width:100%;height:100%;flex:1}._ambitSelector_mcunf_2 ._header_mcunf_13{width:100%;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;padding-bottom:26px}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23{justify-content:flex-start;width:100%;flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23 ._ambitName_mcunf_39{font-size:18px;font-weight:600;flex:1}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23 ._ambitName_mcunf_39 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23 ._ambitDate_mcunf_53{font-size:18px;font-weight:600;flex:.5}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23 ._ambitDate_mcunf_53 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._ambitSelector_mcunf_2 ._header_mcunf_13 ._buttonsContainer_mcunf_67{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center}._ambitSelector_mcunf_2 ._ambitListContainer_mcunf_76{flex:1;width:100%}._ambitSelector_mcunf_2 ._newAmbitButtonContainer_mcunf_80{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:100%;padding-bottom:20px}._ambitItem_1qa6u_2{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;gap:10px;width:100%;padding-bottom:30px;padding-top:30px}._ambitItem_1qa6u_2 ._ambitNameDate_1qa6u_16{flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;cursor:pointer}._ambitItem_1qa6u_2 ._ambitNameDate_1qa6u_16 ._ambitName_1qa6u_16{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;flex:1}._ambitItem_1qa6u_2 ._ambitNameDate_1qa6u_16 ._ambitDate_1qa6u_35{flex:.5}._ambitItem_1qa6u_2 ._ambitButtons_1qa6u_38{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center;gap:8px}._ambitItem_1qa6u_2 ._ambitButtons_1qa6u_38 button:disabled{opacity:.5;cursor:default}._generalButton_phq4n_2{padding:5px 95px;border-radius:100px}._generalButton_phq4n_2:disabled{opacity:.6}._buttonsContainer_1ks7x_2{display:flex;gap:8px}._buttonsContainer_1ks7x_2._vertical_1ks7x_6{flex-direction:column}._buttonsContainer_1ks7x_2._horizontal_1ks7x_9{flex-direction:row}._button_1ks7x_2{background:transparent;border:none;display:flex;align-items:center;cursor:pointer;padding:4px;position:relative}._button_1ks7x_2:hover{opacity:.8}._button_1ks7x_2._active_1ks7x_25{font-weight:700}._button_1ks7x_2 ._buttonName_1ks7x_28{margin:0 4px}._button_1ks7x_2:disabled{opacity:.5!important;cursor:auto}._left_1l4m4_2{position:absolute;width:auto;bottom:50%;right:calc(100% + 10px);transform:translateY(50%);font-size:16px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:10px;margin:0;white-space:nowrap;color:#000}._left_1l4m4_2:before{content:"";position:absolute;top:50%;left:100%;transform:translateY(-50%);border-width:.6em;border-style:solid;border-color:transparent transparent transparent #ccc;z-index:-2}._left_1l4m4_2:after{content:"";position:absolute;top:50%;left:calc(100% - 1px);transform:translateY(-50%);border-width:.5em;border-style:solid;border-color:transparent transparent transparent #fff;z-index:-1}._top_1l4m4_40{position:absolute;width:auto;bottom:calc(100% + 10px);right:50%;transform:translate(50%);font-size:16px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:10px;margin:0;white-space:nowrap;color:#000;z-index:10}._top_1l4m4_40:before{content:"";position:absolute;top:100%;left:50%;transform:translate(-50%);border-width:.6em;border-style:solid;border-color:#ccc transparent transparent transparent;z-index:-2}._top_1l4m4_40:after{content:"";position:absolute;top:calc(100% - 1px);left:50%;transform:translate(-50%);border-width:.5em;border-style:solid;border-color:#fff transparent transparent transparent;z-index:-1}._bottom_1l4m4_79{position:absolute;width:auto;top:calc(100% + 10px);right:50%;transform:translate(50%);font-size:16px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:10px;margin:0;white-space:nowrap;color:#000;z-index:10}._bottom_1l4m4_79:before{content:"";position:absolute;bottom:100%;left:50%;transform:translate(-50%);border-width:.6em;border-style:solid;border-color:transparent transparent #ccc transparent;z-index:-2}._bottom_1l4m4_79:after{content:"";position:absolute;bottom:calc(100% - 1px);left:50%;transform:translate(-50%);border-width:.5em;border-style:solid;border-color:transparent transparent #fff transparent;z-index:-1}._right_1l4m4_118{position:absolute;width:auto;bottom:50%;left:calc(100% + 10px);transform:translateY(50%);font-size:16px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:20px;margin:0;white-space:nowrap;color:#000;z-index:10}._right_1l4m4_118:before{content:"";position:absolute;top:50%;right:100%;transform:translateY(-50%);border-width:.6em;border-style:solid;border-color:transparent #ccc transparent transparent;z-index:-2}._right_1l4m4_118:after{content:"";position:absolute;top:50%;right:calc(100% - 1px);transform:translateY(-50%);border-width:.5em;border-style:solid;border-color:transparent #fff transparent transparent;z-index:-1}._indicatorsCategory_11gdl_2{overflow:hidden;min-height:50px}._indicatorsCategory_11gdl_2 ._title_11gdl_6{align-items:center;gap:10px;cursor:pointer;display:grid;height:50px;grid-template-columns:12px auto}._indicatorsCategory_11gdl_2 ._title_11gdl_6._mainTitle_11gdl_14{border-bottom:1px solid;height:70px}._indicatorsCategory_11gdl_2 ._list_11gdl_18{display:flex;flex-wrap:nowrap;justify-content:start;flex-direction:column;align-items:start;width:100%;gap:20px;padding-bottom:20px}._AppliedFiltersContainer_cokx9_2{display:flex;flex-wrap:nowrap;justify-content:start;gap:10px;flex-direction:row;align-items:start;flex-wrap:wrap}._AppliedFiltersContainer_cokx9_2 ._AppliedFilterContent_cokx9_11{display:flex;flex-wrap:nowrap;justify-content:center;gap:10px;flex-direction:row;align-items:center;font-size:16px;font-weight:400;height:35px;width:fit-content;padding:0 20px;border-radius:100px}._GeographicalFilters_cn837_2{display:flex;flex-wrap:nowrap;justify-content:start;gap:10px;flex-direction:row;align-items:start}._GeographicalFilters_cn837_2 ._AppliedFilterContent_cn837_10{display:flex;flex-wrap:nowrap;justify-content:center;gap:10px;flex-direction:row;align-items:center;font-size:16px;font-weight:400;height:35px;width:fit-content;padding:20px;border-radius:100px}._layersList_cn837_25{display:flex;flex-wrap:nowrap;justify-content:center;gap:10px;flex-direction:column;align-items:flex-start}._layerName_cn837_34{padding-left:25px;cursor:pointer}._checkboxContainer_1nxra_2{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:400;cursor:pointer}._checkboxContainer_1nxra_2 input[type=checkbox]{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:10px;height:10px;border-radius:1px;background-color:#fff;cursor:pointer}._container_4u41i_2,._container_4u41i_2 span{font-size:14px}._container_4u41i_2 ._unitLabel_4u41i_8{height:40px}._container_4u41i_2 ._slider_4u41i_11{height:6px;background-color:#ddd;border-radius:3px;position:relative}._container_4u41i_2 ._thumb_4u41i_17{height:20px;width:20px;background-color:#605b56;border-radius:50%;cursor:grab;top:-7px;position:absolute}._container_4u41i_2 ._track_4u41i_26{top:0;bottom:0;background:#605b56;border-radius:3px}._container_4u41i_2 ._labels_4u41i_32{display:flex;justify-content:space-between;font-size:14px;margin-top:10px}._tematicalFiltersInputContainer_1vm1r_2 ._inputTypeContainer_1vm1r_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;gap:14px;padding-bottom:14px}._tematicalFiltersInputContainer_1vm1r_2 ._inputTypeContainer_1vm1r_2 label,._tematicalFiltersInputContainer_1vm1r_2 ._inputTypeContainer_1vm1r_2 input{cursor:pointer;font-size:14px}._tematicalFiltersInputContainer_1vm1r_2 ._inputTypeContainer_1vm1r_2 input[type=radio]{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:16px;height:16px;border-radius:50%;background-color:#fff;transition:background-color .2s ease;cursor:pointer;vertical-align:middle}._tematicalFiltersInputContainer_1vm1r_2 ._checkboxContainer_1vm1r_28{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;gap:14px}._tematicalFiltersInputContainer_1vm1r_2 ._absoluteSliderContainer_1vm1r_37{width:100%;display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:flex-start}._FiltersAmbitContainer_1hv16_2{width:100%;height:100%;padding-left:24px;position:relative;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:column;align-items:start;gap:20px}._FiltersAmbitContainer_1hv16_2 ._FiltersContainer_1hv16_15{width:100%}._FiltersAmbitContainer_1hv16_2 ._FiltersAmbitHeader_1hv16_18{display:flex;flex-wrap:nowrap;justify-content:start;gap:30px;flex-direction:column;align-items:start}._FiltersAmbitContainer_1hv16_2 ._FiltersAmbitHeader_1hv16_18 ._FiltersAmbitTitle_1hv16_26{font-size:18px;font-weight:600;border-bottom:1.5px solid #605b56;width:100%;height:70px;display:flex;align-items:center}._FiltersAmbitContainer_1hv16_2 ._FiltersAmbitHeader_1hv16_18 ._FiltersAmbitDescription_1hv16_35{display:flex;flex-wrap:nowrap;justify-content:start;gap:10px;flex-direction:column;align-items:start;padding:0 0 26px;font-size:16px;font-weight:400}._FiltersAmbitContainer_1hv16_2 ._FiltersAmbitHeader_1hv16_18 ._FiltersAmbitDescription_1hv16_35 ._FiltersAmbitDescriptionTitle_1hv16_46{font-size:18px;font-weight:600}._FiltersAmbitContainer_1hv16_2 ._warning_1hv16_50{color:red}._FiltersAmbitContainer_1hv16_2 ._buttonContainer_1hv16_53{width:100%;margin-left:-24px;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:column;align-items:center;margin-bottom:20px;height:60px}._barChartContainer_1ly7h_2{position:relative;overflow-x:scroll;overflow-y:scroll;scrollbar-width:thin;scrollbar-color:var(--main-color) transparent}._barChartContainer_1ly7h_2::-webkit-scrollbar{height:6px}._barChartContainer_1ly7h_2::-webkit-scrollbar-track{background:transparent}._barChartContainer_1ly7h_2::-webkit-scrollbar-thumb{background-color:var(--main-color);border-radius:3px}._barChartContainer_1ly7h_2::-webkit-scrollbar{display:none}._graphicContainer_1ozwp_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:center;width:100%;padding:33px 50px;border-radius:20px}._graphicContainer_1ozwp_2 ._titleContainer_1ozwp_13{display:flex;flex-wrap:nowrap;gap:0;flex-direction:row;align-items:center;justify-content:center;margin-bottom:83px}._indicatorsCategory_arwy3_2{overflow:hidden}._indicatorsCategory_arwy3_2 ._title_arwy3_5{align-items:center;gap:10px;cursor:pointer;margin-bottom:25px;display:grid;grid-template-columns:12px auto}._indicatorsCategory_arwy3_2 ._list_arwy3_13{display:flex;flex-wrap:nowrap;justify-content:start;flex-direction:column;align-items:start;width:100%;gap:20px;padding-bottom:20px}._indicatorContainer_swmx0_2{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:stretch;gap:10px;width:100%}._indicatorContainer_swmx0_2 ._indicatorNameContainer_swmx0_12{gap:8px;display:grid;grid-template-columns:15px auto;align-items:center;width:100%}._indicatorContainer_swmx0_2 ._dot_swmx0_19{border-radius:100px;width:13px;height:13px;display:flex;align-items:center;justify-content:center}._indicatorContainer_swmx0_2 ._indicatorName_swmx0_12{cursor:pointer;font-weight:400;text-align:left}._switchExternalContainer_swmx0_33{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;width:100%}._switchExternalContainer_swmx0_33 ._switchType_swmx0_42{margin:0;width:100%}._switchExternalContainer_swmx0_33 ._switchType_swmx0_42 ._switchTypeOptions_swmx0_46{gap:20px;display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;margin:0 0 20px 23px}._switchExternalContainer_swmx0_33 ._switchType_swmx0_42 ._switchTypeOptions_swmx0_46 ._optionContainer_swmx0_57{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;gap:9px;cursor:pointer}._switchExternalContainer_swmx0_33 ._switchType_swmx0_42 ._switchTypeOptions_swmx0_46 ._optionContainer_swmx0_57 ._customRadious_swmx0_67{width:13px;height:13px;border-radius:100px;border:1px solid;padding:0}._switchExternalContainer_swmx0_33 ._switchType_swmx0_42 ._switchTypeOptions_swmx0_46 ._optionContainer_swmx0_57 ._optionText_swmx0_74{font-weight:400}._indicatorsSubCategory_1nuug_2{overflow:hidden}._indicatorsSubCategory_1nuug_2 h3{text-align:left;display:grid;gap:10px;grid-template-columns:12px auto}._indicatorsSubCategory_1nuug_2 ._list_1nuug_11{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:start;margin:20px 0;gap:20px}._indicatorsList_13b3m_2{width:100%;padding-left:30px}._indicatorsList_13b3m_2 ._title_13b3m_6{border-bottom:1px solid;height:70px;display:flex;align-items:center;margin-bottom:32px}._langSelector_o9enq_2{position:relative;width:fit-content;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;height:100%}._currentLang_o9enq_14{color:#404040;cursor:pointer;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;gap:5px;text-transform:capitalize}._currentLang_o9enq_14 ._arrow_o9enq_26{width:10px}._currentLang_o9enq_14 ._prevImg_o9enq_29{width:20px}._langMenu_o9enq_33{position:absolute;width:80px;background:#000!important;border-radius:8px}._langMenu_o9enq_33 button{cursor:pointer;background:#000!important;color:#ccc;width:100%;padding:4px 8px;text-align:left}._langMenu_o9enq_33 button:first-child{border-radius:8px 8px 0 0}._langMenu_o9enq_33 button:last-child{border-radius:0 0 8px 8px}._langMenu_o9enq_33 button:hover{color:#cbcbcb;background-color:#fafafa!important}._legendContainer_r9cd6_3{width:402px;background-color:#fdfdfd;color:#605b56;border:solid 1.5px #605b56;border-radius:10px;display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:column;align-items:flexStart;padding:20px;position:relative;overflow-y:scroll}@media (max-width: 500px){._legendContainer_r9cd6_3{width:250px}}._legendContainer_r9cd6_3 ._sectionContainer_r9cd6_24:not(:first-child){margin-top:30px;padding-top:20px;border-top:1px solid #e0e0e0}._legendContainer_r9cd6_3::-webkit-scrollbar{width:8px}._legendContainer_r9cd6_3::-webkit-scrollbar-track{background:transparent;margin:5px 0}._legendContainer_r9cd6_3::-webkit-scrollbar-thumb{background-color:#ebebeb;border-radius:20px}._legendContainer_r9cd6_3 ._closeButton_r9cd6_43{position:absolute;right:20px;top:20px;width:24px;height:24px;border:none;background:transparent;cursor:pointer;padding:0;display:inline-flex;align-items:center;justify-content:center}._legendContainer_r9cd6_3 ._closeButton_r9cd6_43:before,._legendContainer_r9cd6_3 ._closeButton_r9cd6_43:after{content:"";position:absolute;width:16px;height:2px;background-color:#333}._legendContainer_r9cd6_3 ._closeButton_r9cd6_43:before{transform:rotate(45deg)}._legendContainer_r9cd6_3 ._closeButton_r9cd6_43:after{transform:rotate(-45deg)}._legendContainer_r9cd6_3 ._titleContainer_r9cd6_71{border-bottom:solid 1.5px #605b56}._legendContainer_r9cd6_3 ._titleContainer_r9cd6_71 h2{padding-bottom:16px}._legendContainer_r9cd6_3 ._infoContainer_r9cd6_77{padding-top:20px}._legendContainer_r9cd6_3 ._infoContainer_r9cd6_77 ul li{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:row;align-items:center}._legendContainer_r9cd6_3 ._titleLegendList_r9cd6_88{padding-bottom:20px;margin-bottom:20px;border-bottom:solid 1.5px #605b56;padding-right:30px}._legendContainer_r9cd6_3 ._legendListContainer_r9cd6_94 ._gridContainer_r9cd6_94{display:grid;grid-template-columns:auto;column-gap:20px;row-gap:15px}._legendContainer_r9cd6_3 ._legendListContainer_r9cd6_94 ._gridContainer_r9cd6_94 ._elementLegendContainer_r9cd6_100{display:grid;grid-template-columns:23px auto;align-items:center;gap:5px}._legendContainer_r9cd6_3 ._legendListContainer_r9cd6_94 ._gridContainer_r9cd6_94 ._elementLegendContainer_r9cd6_100 ._colorDot_r9cd6_106{width:22px;height:22px;border-radius:50%;margin-right:10px}._legendContainer_r9cd6_3 ._legendListContainer_r9cd6_94 ._absoluteValueContainer_r9cd6_112{position:relative}._legendContainer_r9cd6_3 ._legendListContainer_r9cd6_94 ._absoluteValueContainer_r9cd6_112 ._absoluteValueColor_r9cd6_115{height:130px;width:22px;border-radius:20px}._legendContainer_r9cd6_3 ._legendListContainer_r9cd6_94 ._absoluteValueContainer_r9cd6_112 ._absoluteValueText_r9cd6_120{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:column;align-items:flex-start;position:absolute;left:30px;top:0;height:100%}._legendContainer_r9cd6_3 ._legendListContainer_r9cd6_94 ._noDataContainer_r9cd6_132{position:relative;margin-top:10px}._legendContainer_r9cd6_3 ._legendListContainer_r9cd6_94 ._noDataContainer_r9cd6_132 ._noData_r9cd6_132{height:22px;width:22px;border-radius:20px}._legendContainer_r9cd6_3 ._legendListContainer_r9cd6_94 ._noDataContainer_r9cd6_132 ._absoluteValueText_r9cd6_120{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:column;align-items:flex-start;position:absolute;left:30px;top:0;height:100%}._legendContainer_r9cd6_3 ._moreInfoContainer_r9cd6_153{margin-top:30px;padding:8.5px 20px;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;border:1.5px solid #605b56;border-radius:25px;font-size:16px;font-weight:600}._logo_1ewa6_2{padding:10px;height:100%}._logo_1ewa6_2 img{height:100%}._mapContainer_84pkf_2{width:100vw;height:100vh}._mapContainer_1r3q4_3{width:100%;height:100%;position:absolute;top:0;z-index:0}._FeaturePopUp_oymb1_2{padding:15px;color:#92898a}._FeaturePopUp_oymb1_2 p{margin-bottom:10px;font-weight:600}._FeaturePopUp_oymb1_2 ._title_oymb1_10{font-weight:400;margin-right:5px;color:#92898a}._FeaturePopUp_oymb1_2 ._button_oymb1_15{background:#fdfdfd;width:100%;margin-top:8px;padding:8px 16px;color:#92898a;border:1px solid #92898a;border-radius:20px;font-size:14px;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px}._sectionBar_yf2vy_2{height:70px;width:100%;background-color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid black;transition:width .3s ease}._leftContent_yf2vy_14{display:flex;align-items:center;gap:12px}._textContainer_yf2vy_20{display:flex;flex-direction:row;align-items:center;gap:8px}._title_yf2vy_27{font-size:16px;font-weight:600;color:#605b56}._subtitle_yf2vy_33{font-size:16px;color:#605b56}._rightContent_yf2vy_38{display:flex;align-items:center;gap:8px}._slider_1prh1_2{padding:5px 20px;border:1px solid;border-radius:10px;display:flex;gap:20px;color:#605b56;justify-content:center;align-items:center;background-color:#fff;transition:all .5s ease-out}._slider_1prh1_2 ._playButton_1prh1_14,._slider_1prh1_2 ._playButton_1prh1_14._hover_1prh1_17{background-color:transparent!important}._slider_1prh1_2 ._playButton_1prh1_14 img{height:30px;width:30px}._sliderOpen_1prh1_25{right:490px}._sliderResults_1prh1_29{position:absolute;top:75px;right:430px;padding:5px 20px;border:1px solid;border-radius:10px;display:flex;gap:20px;color:#605b56;justify-content:center;align-items:center;background-color:#fff;transition:all .5s ease-out}._sliderResults_1prh1_29 ._playButton_1prh1_14,._sliderResults_1prh1_29 ._playButton_1prh1_14._hover_1prh1_17{background-color:transparent!important}._sliderResults_1prh1_29 ._playButton_1prh1_14 img{height:30px;width:30px}._TopNavMenuContainer_12mp4_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:fit-content;gap:80px;height:100%}._TopNavMenuContainer_12mp4_2 ._topNavOptions_12mp4_13{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;cursor:pointer;padding:0 10px;text-align:center;border-bottom:5px solid transparent;border-top:5px solid transparent;height:100%}._TopNavMenuContainer_12mp4_2 ._active_12mp4_27{border-bottom:5px solid white}._LogInButton_1vxj5_2{height:100%;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center}._elementSelector_1ox68_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;width:100%;padding-left:24px;min-height:100%;flex:1}._elementSelector_1ox68_2 ._header_1ox68_14{width:100%;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;height:70px}._elementSelector_1ox68_2 ._header_1ox68_14 ._nameDateContainer_1ox68_24{justify-content:flex-start;width:100%;flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._elementSelector_1ox68_2 ._header_1ox68_14 ._nameDateContainer_1ox68_24 ._elementName_1ox68_40{font-size:18px;font-weight:600;flex:1}._elementSelector_1ox68_2 ._header_1ox68_14 ._nameDateContainer_1ox68_24 ._elementName_1ox68_40 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._elementSelector_1ox68_2 ._header_1ox68_14 ._nameDateContainer_1ox68_24 ._elementDate_1ox68_54{font-size:18px;font-weight:600;flex:.5}._elementSelector_1ox68_2 ._header_1ox68_14 ._nameDateContainer_1ox68_24 ._elementDate_1ox68_54 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._elementSelector_1ox68_2 ._header_1ox68_14 ._buttonsContainer_1ox68_68{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center}._elementSelector_1ox68_2 ._elementListContainer_1ox68_77{flex:1;width:100%}._elementSelector_1ox68_2 ._newElementButtonContainer_1ox68_81{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:100%;padding-bottom:20px;padding-top:50px}._listElement_s4s4h_3{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;gap:5px;width:100%;padding-bottom:30px;padding-top:30px;flex-wrap:wrap;padding-right:15px}._listElement_s4s4h_3 ._elementNameDate_s4s4h_19{flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;cursor:pointer;gap:5px}._listElement_s4s4h_3 ._elementNameDate_s4s4h_19 ._elementNameContainer_s4s4h_30{flex:1;display:flex;flex-direction:column;align-items:flex-start;position:relative;overflow-wrap:break-word;word-break:break-word}._listElement_s4s4h_3 ._elementNameDate_s4s4h_19 ._elementName_s4s4h_19{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center}._listElement_s4s4h_3 ._elementNameDate_s4s4h_19 ._elementDate_s4s4h_47{flex:.5}._listElement_s4s4h_3 ._nameAndEye_s4s4h_50{display:grid!important;grid-template-columns:26px auto;gap:9px!important}._listElement_s4s4h_3 ._elementButtons_s4s4h_55{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center;gap:8px}._listElement_s4s4h_3 ._elementButtons_s4s4h_55 button:disabled{opacity:.5;cursor:default}._listElement_s4s4h_3 ._elementButtons_s4s4h_55 img{display:inline}._break_s4s4h_73{flex-basis:100%;height:0}._moreInfoContainer_s4s4h_78 ._moreInfo_s4s4h_78{display:flex;gap:5px;cursor:pointer}._formContainer_asv64_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:flex-start;flex-direction:column}._formContainer_asv64_2 ._categorySelectorContainer_asv64_11{margin-bottom:5px;width:100%}._formContainer_asv64_2 ._formObjectContainer_asv64_15{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:column;align-items:center;flex:1;width:100%;gap:80px}._formContainer_asv64_2 ._buttonContainer_asv64_26{width:100%;margin-top:30px;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:center;gap:20px}._textInputContainer_1o3iy_2{width:100%}._textInputContainer_1o3iy_2 ._labelContainer_1o3iy_5{margin-bottom:25px}._textInputContainer_1o3iy_2 ._inputContainer_1o3iy_8{background-color:#605b5620;padding:7px;border-radius:4px;position:relative}._textInputContainer_1o3iy_2 ._inputContainer_1o3iy_8 ._showPasswordButton_1o3iy_14{position:absolute;right:15px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer}._textInputContainer_1o3iy_2 ._inputContainer_1o3iy_8 input{width:100%}._textInputContainer_1o3iy_2 ._forgotPassButton_1o3iy_26{margin-top:10px;cursor:pointer}._textInputContainer_1o3iy_2 ._forgotPassButton_1o3iy_26 button{text-decoration:underline}._errorMessage_1xiyb_2{min-height:25px}._inputsContainer_10t9s_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;width:100%;gap:30px}._selectInputContainer_zzz6o_2{width:100%;position:relative}._selectInputContainer_zzz6o_2 ._labelContainer_zzz6o_6{margin-bottom:25px}._selectInputContainer_zzz6o_2 ._selectWrapper_zzz6o_9{display:flex;flex-direction:row;gap:15px;align-items:center}._selectInputContainer_zzz6o_2 ._inputContainer_zzz6o_15{position:relative}._selectInputContainer_zzz6o_2 ._inputContainer_zzz6o_15 ._selectInput_zzz6o_2{appearance:none;-webkit-appearance:none;-moz-appearance:none;width:100%;padding:9px 40px 9px 9px;border:1.5px solid #605b56;border-radius:4px;cursor:pointer}._selectInputContainer_zzz6o_2 ._inputContainer_zzz6o_15 ._selectInput_zzz6o_2 ._option_zzz6o_29{cursor:pointer}._selectInputContainer_zzz6o_2 ._inputContainer_zzz6o_15 ._dropdownArrow_zzz6o_32{position:absolute;right:18px;top:50%;transform:translateY(-50%);width:16px;height:16px;pointer-events:none}._radioButtonContainer_1e994_2{width:100%}._radioButtonContainer_1e994_2 ._wholeInputContainer_1e994_5{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;width:100%;flex-wrap:wrap;position:relative;gap:15px}@media (width < 768px){._radioButtonContainer_1e994_2 ._wholeInputContainer_1e994_5{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:flex-start}}._radioButtonContainer_1e994_2 ._questionContainer_1e994_27{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:100%;align-self:flex-start;position:relative}@media (width < 768px){._radioButtonContainer_1e994_2 ._questionContainer_1e994_27{min-width:auto;max-width:215px}}._radioButtonContainer_1e994_2 ._errorContainer_1e994_44{position:absolute;top:-25px;left:0}._radioButtonContainer_1e994_2 ._iconPrivacy_1e994_49{height:100%;padding-right:10px;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._radioButtonContainer_1e994_2 ._radioQuestion_1e994_59{width:100%;flex:1}._radioButtonContainer_1e994_2 ._inputContainer_1e994_63{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;gap:10px;position:relative;height:100%}._radioButtonContainer_1e994_2 ._inputContainer_1e994_63 label{text-align:left}._radioButtonContainer_1e994_2 ._inputContainer_1e994_63 label input{margin-right:5px}@media (width < 768px){._radioButtonContainer_1e994_2 ._inputContainer_1e994_63{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;flex:1}}label,._radioInput_1e994_93{cursor:pointer}._rankingSliderContainer_1dvpb_2{display:grid;width:100%}._rankingSliderContainer_1dvpb_2 ._labelContainer_1dvpb_6{margin-bottom:25px;color:#605b56}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10{width:100%;position:relative;display:flex;gap:14px;align-items:center;flex-wrap:nowrap;justify-content:center;height:48px}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._slider_1dvpb_20{height:3px;background:#efefef;border-radius:3px;position:relative;min-width:250px}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._thumb_1dvpb_27{height:15px;width:15px;border-radius:50%;top:-100%;transform:translateY(-20%);outline:none}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._labels_1dvpb_37{display:flex;justify-content:space-between;margin-top:8px;font-size:14px;color:#444}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._labels_1dvpb_37 span{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:10px;height:20px;position:relative}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._labels_1dvpb_37 span:before{content:"";background:#efefef;width:10px;height:10px;position:absolute;top:-14.5px;border-radius:50%}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._labels_1dvpb_37 ._labelsText_1dvpb_64{color:#605b56}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._minLabel_1dvpb_67,._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._maxLabel_1dvpb_68{align-self:baseline;padding-top:10px;color:#605b56;font-size:12px;white-space:nowrap;margin-top:-7px}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._minLabel_1dvpb_67{text-align:right}._textDescriptionContainer_163pc_2{margin:10px 0}._textDescriptionText_163pc_6{margin:0}._categorySelector_1guuv_2{min-height:50px;width:100%;display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:10px;background-color:#efefef;border-radius:10px;padding:5px}._categorySelector_1guuv_2 ._sectionItemActive_1guuv_16{color:#fff}._categorySelector_1guuv_2 ._sectionItem_1guuv_16{border-radius:10px;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;padding:5px;min-width:120px;height:100%;position:relative}._categorySelector_1guuv_2 ._sectionItemError_1guuv_32{border:1px solid #e74c3c}._categorySelector_1guuv_2 ._errorDot_1guuv_35{width:8px;height:8px;border-radius:50%;background-color:#e74c3c;display:inline-block;margin-right:6px}._overlay_mnd4j_2{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#0009;display:flex;align-items:center;justify-content:center;z-index:9999}._modal_mnd4j_15{background:#fff;border-radius:12px;position:relative;padding:24px 32px;display:flex;flex-direction:column;align-items:center;text-align:center;box-shadow:0 4px 20px #0003;overflow:hidden;min-width:300px}._closeButton_mnd4j_29{position:absolute;top:3px;right:8px;background:transparent;border:none;font-size:20px;cursor:pointer}._icon_mnd4j_39{width:60px;height:60px;margin-bottom:16px}._message_mnd4j_45{font-size:18px;font-weight:700;margin-bottom:8px}._submessage_mnd4j_51{font-size:14px;color:#666;margin-bottom:20px}._buttonsContainer_mnd4j_57{display:flex;gap:12px;justify-content:center;flex-wrap:nowrap}._buttonWrapper_mnd4j_64{display:inline-flex}._stepsContainer_1cyua_3{display:flex;flex-direction:column;position:relative}._stepWrapper_1cyua_9{display:flex;align-items:center;position:relative;margin-bottom:1.5rem}._stepWrapper_1cyua_9:last-child{margin-bottom:0}._circleContainer_1cyua_19{position:relative}._circle_1cyua_19{width:28px;height:28px;border-radius:50%;border:2px solid #ccc;background-color:#fff;color:#aaa;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;cursor:pointer;z-index:1}._active_1cyua_39{color:#fff;border:none}._completed_1cyua_44{background-color:#ccc;color:#fff;border:none}._label_1cyua_50{margin-left:10px;font-size:14px;color:#aaa}._labelActive_1cyua_56{font-weight:700;color:#333}._connector_1cyua_61{position:absolute;left:50%;transform:translate(-50%);top:32px;width:1px;height:calc(100% - 10px);background-color:#ccc;z-index:0}._statusTextContainer_ch14r_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:128px;height:31px;border-radius:200px}._statusTextContainer_ch14r_2 span{font-size:16px;color:#605b56}._buttonsContainer_1c7dw_2{padding:5px 7px;background-color:#efefef;border-radius:10px;display:flex;gap:8px}._buttonsContainer_1c7dw_2 ._button_1c7dw_2{border-radius:10px;display:flex;align-items:center;cursor:pointer;padding:4px;color:#605b56}._buttonsContainer_1c7dw_2 ._button_1c7dw_2:hover{opacity:.8}._buttonsContainer_1c7dw_2 ._button_1c7dw_2._active_1c7dw_20{background:#b32f5d;color:#efefef}._switchContainer_194wl_2{display:flex;align-items:center;gap:10px;font-size:12px;justify-content:center}._switchContainer_194wl_2 ._labelRight_194wl_9,._switchContainer_194wl_2 ._labelLeft_194wl_9{white-space:nowrap;color:#605b56}._switchContainer_194wl_2 ._labelLeft_194wl_9{text-align:right}._switch_194wl_2{position:relative;display:inline-block;width:44px;height:24px}._switch_194wl_2 input{opacity:0;width:0;height:0}._switch_194wl_2 ._slider_194wl_28{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#fff;border-radius:24px;transition:background-color .3s;border:2px solid #605b56}._switch_194wl_2 ._slider_194wl_28:before{position:absolute;content:"";height:16px;width:16px;left:3px;bottom:2.5px;background-color:var(--switch-thumb-color, #ccc);border-radius:50%;transition:transform .3s,background-color .3s}._switch_194wl_2 input:checked+._slider_194wl_28:before{transform:translate(20px)}._switch_194wl_2._disabled_194wl_54{opacity:.5;pointer-events:none}._overlay_1xyw2_2{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:9999}._popup_1xyw2_15{background:#fff;padding:2rem;border-radius:12px;display:flex;flex-direction:column;align-items:center;box-shadow:0 4px 20px #0003}._gif_1xyw2_25{width:120px;height:auto;margin-bottom:1rem}._message_1xyw2_31{font-size:1.1rem;text-align:center}._container_1pl8d_3{position:relative;display:flex;align-intems:center}._burger_1pl8d_10{position:fixed;top:10px;right:25px;background:none;border:none;cursor:pointer;z-index:1000}._menu_1pl8d_21{position:fixed;top:0;right:0;width:250px;height:100vh;padding:1.5rem;box-shadow:-2px 0 8px #00000026;z-index:999;transform:translate(100%);transition:transform .35s cubic-bezier(.4,0,.2,1)}._menuOpen_1pl8d_35{transform:translate(0)}._menuClose_1pl8d_40{transform:translate(100%);pointer-events:none}._list_1pl8d_46{list-style:none;padding:0;margin-top:50px;display:flex;flex-direction:column;gap:1rem}._item_1pl8d_56{opacity:0;transform:translate(20px);transition:opacity .3s ease,transform .3s ease;font-size:16px!important}._menuOpen_1pl8d_35 ._item_1pl8d_56{opacity:1;transform:translate(0)}._menuOpen_1pl8d_35 ._item_1pl8d_56:nth-child(1){transition-delay:.05s}._menuOpen_1pl8d_35 ._item_1pl8d_56:nth-child(2){transition-delay:.1s}._menuOpen_1pl8d_35 ._item_1pl8d_56:nth-child(3){transition-delay:.15s}._menuOpen_1pl8d_35 ._item_1pl8d_56:nth-child(4){transition-delay:.2s}._menuOpen_1pl8d_35 ._item_1pl8d_56:nth-child(5){transition-delay:.25s}._button_1pl8d_91{background:none;border:none;color:inherit;font-size:18px;cursor:pointer;padding:0}._svgContainer_1rxoe_2{width:100%;box-sizing:border-box;position:relative}._svgContainer_1rxoe_2 ._svg_1rxoe_2{width:100%;height:100%;overflow:visible;display:block}@media (max-width: 768px){._svgContainer_1rxoe_2{padding:10px}}@media (max-width: 480px){._svgContainer_1rxoe_2{padding:5px}}.bar{transition:opacity .2s ease-in-out}.bar:hover{opacity:.8}.x-axis ._domain_1rxoe_31,.y-axis ._domain_1rxoe_31{stroke:#333;stroke-width:1px}.x-axis ._tick_1rxoe_36 line,.y-axis ._tick_1rxoe_36 line{stroke:#333;stroke-width:1px}.x-axis ._tick_1rxoe_36 text,.y-axis ._tick_1rxoe_36 text{fill:#605b56;font-family:Arial,sans-serif}._svgContainer_7fkic_2{width:100%;box-sizing:border-box;position:relative;overflow-x:auto}._svgContainer_7fkic_2 ._svg_7fkic_2{overflow:visible;display:block;max-width:none}@media (max-width: 768px){._svgContainer_7fkic_2{padding:10px}}@media (max-width: 480px){._svgContainer_7fkic_2{padding:5px}}.layer rect{transition:opacity .2s ease-in-out}.layer rect:hover{opacity:.8}.x-axis ._domain_7fkic_32,.y-axis ._domain_7fkic_32{stroke:#333;stroke-width:1px}.x-axis ._tick_7fkic_37 line,.y-axis ._tick_7fkic_37 line{stroke:#333;stroke-width:1px}.x-axis ._tick_7fkic_37 text,.y-axis ._tick_7fkic_37 text{fill:#605b56;font-family:Arial,sans-serif}.y-ticks ._tick_7fkic_37 line{stroke:#e0e0e0;stroke-width:.5px}.grid{opacity:.5}.chart-tooltip{font-family:Arial,sans-serif;box-shadow:0 2px 4px #0003}._externalContainer_1er0i_2{display:grid;grid-template-columns:170px auto;width:100%;padding:20px;grid-column-gap:5px}._externalContainer_1er0i_2._externalSintetic_1er0i_9{grid-template-columns:250px 80px 1fr;row-gap:20px}._externalContainer_1er0i_2 ._titles_1er0i_13{display:flex;flex-wrap:nowrap;justify-content:end;gap:0;flex-direction:column;align-items:end;padding-right:5px}._externalContainer_1er0i_2 ._titles_1er0i_13 ._titleContainer_1er0i_22{display:flex;flex-wrap:nowrap;justify-content:end;gap:0;flex-direction:row;align-items:center;gap:12px;font-size:12px;font-style:normal;font-weight:400;color:#605b56;height:54px}._externalContainer_1er0i_2 ._yearTitles_1er0i_36{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center}._externalContainer_1er0i_2 ._yearTitles_1er0i_36 ._yearTitle_1er0i_36{transform:rotate(-90deg);color:#605b56;font-size:13px;flex-shrink:0}._externalContainer_1er0i_2 ._yearDatas_1er0i_50{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center}._externalContainer_1er0i_2 ._yearDataContainer_1er0i_58{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:column;align-items:center}._externalContainer_1er0i_2 ._yearDataContainer_1er0i_58 ._yearDataContent_1er0i_66{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:100%;border-bottom:1px solid #605b56;font-size:9px;color:#605b56;height:54px}._externalContainer_1er0i_2 ._yearDataContainer_1er0i_58 ._bigNumber_1er0i_79{font-size:8px}._externalContainer_1er0i_2 ._circle_1er0i_82{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:12px;height:12px;border-radius:50%;flex-shrink:0}._externalContainer_1er0i_2::-webkit-scrollbar{display:none}._totalContainer_1er0i_99{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:column;align-items:center;gap:7px;width:100%}._totalContainer_1er0i_99 ._total_1er0i_99{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:100%;font-size:9px;font-weight:700;color:#605b56;height:54px;text-align:center}._totalTitle_1er0i_124{font-size:11px;color:#605b56;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._speedGraphic_d1k72_2{display:flex;justify-content:center;align-items:center;width:100%;height:100%;flex-direction:column}._speedGraphic_d1k72_2 svg{width:100%;height:auto;max-width:244px}._percentageBarContainer_lgkme_3{width:100%;font-family:Arial,sans-serif;-webkit-user-select:none;user-select:none}._barContainer_lgkme_10{display:flex;width:100%;height:20px;border-radius:4px;overflow:visible;position:relative}._segment_lgkme_19{height:100%;position:relative;transition:width .05s linear;box-sizing:border-box}._segment_lgkme_19:first-child{border-radius:4px 0 0 4px}._segment_lgkme_19:last-child{border-radius:0 4px 4px 0}._segment_lgkme_19:only-child{border-radius:4px}._handle_lgkme_36{position:absolute;width:14px;height:28px;top:50%;left:0;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #888;border-radius:4px;cursor:ew-resize;z-index:10;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 3px #00000040;touch-action:none}._handle_lgkme_36:before{content:"";width:2px;height:10px;border-left:1px solid #bbb;border-right:1px solid #bbb}._handle_lgkme_36:hover,._handle_lgkme_36:active{border-color:#444;background-color:#f5f5f5}._labelsContainer_lgkme_68{display:flex;width:100%;margin-top:8px}._labelsContainer_lgkme_68 ._labelItem_lgkme_73{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:4px 2px;box-sizing:border-box;font-size:12px;overflow:hidden;min-width:0}._labelsListContainer_lgkme_85{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-top:18px}._labelsListContainer_lgkme_85 ._labelItem_lgkme_73{display:flex;flex-direction:row;gap:6px;align-items:center;justify-content:flex-start;padding:4px 2px;box-sizing:border-box;font-size:12px;overflow:hidden;min-width:0}._labelColor_lgkme_105{display:inline-block;width:10px;height:10px;border-radius:2px;margin-bottom:2px;flex-shrink:0}._labelText_lgkme_114{font-weight:600;margin-bottom:2px;text-align:center;word-break:break-word;line-height:1.2}._labelValue_lgkme_122{margin-bottom:2px}._labelTranslation_lgkme_126{color:#fff;font-size:11px;font-style:italic}._overlay_1vbid_2{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:9999;animation:_fadeIn_1vbid_1 .3s ease-out}._modal_1vbid_16{background:#fff;border-radius:12px;border:2px solid transparent;padding:24px 32px;min-width:300px;max-width:500px;box-shadow:0 4px 20px #0003;animation:_slideUp_1vbid_1 .3s ease-out;position:relative}._content_1vbid_28{display:flex;flex-direction:column;align-items:center;text-align:center;gap:16px}._iconContainer_1vbid_36{display:flex;align-items:center;justify-content:center;margin-bottom:8px}._iconSvg_1vbid_43{width:48px;height:48px}._textContainer_1vbid_48{display:flex;flex-direction:column;gap:8px;width:100%}._title_1vbid_55{font-size:20px;font-weight:600;margin:0;line-height:1.4}._message_1vbid_62{font-size:16px;margin:0;line-height:1.5;opacity:.9}._closeButton_1vbid_69{position:absolute;top:12px;right:12px;background:transparent;border:none;font-size:20px;cursor:pointer;padding:4px 8px;border-radius:4px;transition:background-color .2s}._closeButton_1vbid_69:hover{background-color:#0000001a}._closeButton_1vbid_69:focus{outline:2px solid currentColor;outline-offset:2px}@keyframes _fadeIn_1vbid_1{0%{opacity:0}to{opacity:1}}@keyframes _slideUp_1vbid_1{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}._errorModal_1vbid_107{background:#fff5f5;border-color:#feb2b2}._errorModal_1vbid_107 ._title_1vbid_55,._errorModal_1vbid_107 ._message_1vbid_62,._errorModal_1vbid_107 ._closeButton_1vbid_69,._errorModal_1vbid_107 ._iconSvg_1vbid_43{color:#c53030}._successModal_1vbid_120{background:#f0fff4;border-color:#9ae6b4}._successModal_1vbid_120 ._title_1vbid_55,._successModal_1vbid_120 ._message_1vbid_62,._successModal_1vbid_120 ._closeButton_1vbid_69,._successModal_1vbid_120 ._iconSvg_1vbid_43{color:#276749}._header_13kbt_2{width:100%;display:flex;align-items:center;position:absolute;top:0;left:0;padding:0 16px;background-color:#fff;border-bottom:1px solid black}._header_13kbt_2 ._leftComponents_13kbt_13,._header_13kbt_2 ._centerComponents_13kbt_14,._header_13kbt_2 ._rightComponents_13kbt_15{position:absolute;top:0;bottom:0;display:flex;align-items:center}._header_13kbt_2 ._leftComponents_13kbt_13{left:16px}._header_13kbt_2 ._centerComponents_13kbt_14{left:50%;transform:translate(-50%)}._header_13kbt_2 ._rightComponents_13kbt_15{right:16px}._header_13kbt_2 ._componentsContainer_13kbt_32{height:100%;width:100%}._sidebar_1kaqu_2{position:absolute;top:0;right:0;height:100%;background-color:#fff;box-shadow:-2px 0 5px #0000001a;overflow-x:hidden;overflow-y:auto;transition:width .3s ease;z-index:1000;width:0}._open_1kaqu_16{border-left:1px solid #ddd}._content_1kaqu_20{position:relative;height:100%}._closeButton_1kaqu_25{position:absolute;top:28px;right:28px;font-size:24px;background:none;border:none;cursor:pointer;color:#333;transition:color .2s ease;z-index:10}._closeButton_1kaqu_25:hover{color:#000}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- "use strict";var ca=Object.create;var lo=Object.defineProperty;var ua=Object.getOwnPropertyDescriptor;var da=Object.getOwnPropertyNames;var fa=Object.getPrototypeOf,pa=Object.prototype.hasOwnProperty;var ma=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of da(t))!pa.call(e,o)&&o!==n&&lo(e,o,{get:()=>t[o],enumerable:!(r=ua(t,o))||r.enumerable});return e};var ha=(e,t,n)=>(n=e!=null?ca(fa(e)):{},ma(t||!e||!e.__esModule?lo(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),S=require("react"),oe=require("react-i18next"),zr=require("framer-motion"),qr=require("zustand"),le=require("d3"),ga=require("mapbox-gl"),ya=require("react-redux"),Os=require("react-dom"),ir=require("maplibre-gl"),ba=require("pmtiles"),va=require("@reduxjs/toolkit"),co=require("@mui/material"),xa=require("@emotion/react"),Ca=require("@emotion/styled"),As=require("react-router-dom");function Ls(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Q=Ls(S),ar=Ls(le),_a="_ambitSelector_mcunf_2",wa="_header_mcunf_13",Sa="_nameDateContainer_mcunf_23",Ta="_ambitName_mcunf_39",ja="_ambitDate_mcunf_53",ka="_buttonsContainer_mcunf_67",$a="_ambitListContainer_mcunf_76",Ea="_newAmbitButtonContainer_mcunf_80",ut={ambitSelector:_a,header:wa,nameDateContainer:Sa,ambitName:Ta,ambitDate:ja,buttonsContainer:ka,ambitListContainer:$a,newAmbitButtonContainer:Ea},Na="_ambitItem_1qa6u_2",Oa="_ambitNameDate_1qa6u_16",Aa="_ambitName_1qa6u_16",La="_ambitDate_1qa6u_35",Ma="_ambitButtons_1qa6u_38",Yt={ambitItem:Na,ambitNameDate:Oa,ambitName:Aa,ambitDate:La,ambitButtons:Ma},Ra="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Eliminar'%3e%3ccircle%20id='Ellipse%20220'%20cx='15.5106'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M20.8581%2010.5548H17.5491V10.4015C17.5491%209.17493%2016.6257%208.255%2015.4714%208.255C14.3171%208.255%2013.3167%209.17493%2013.3167%2010.4015V10.5548H10.0846C9.69985%2010.5548%209.46899%2010.7848%209.46899%2011.1681C9.46899%2011.5514%209.69985%2011.7814%2010.0846%2011.7814H10.2385V21.2106C10.2385%2022.3605%2011.162%2023.3571%2012.3932%2023.3571H18.5495C19.7038%2023.3571%2020.7042%2022.4372%2020.7042%2021.2106V11.7047H20.9351C21.2429%2011.7047%2021.5507%2011.4747%2021.5507%2011.0914C21.5507%2010.7081%2021.1659%2010.5548%2020.8581%2010.5548ZM14.471%2010.4015C14.471%209.86488%2014.9327%209.40491%2015.4714%209.40491C16.01%209.40491%2016.3948%209.86488%2016.3948%2010.4015V10.5548H14.471V10.4015ZM16.3948%2018.8342V15.0011C16.3948%2014.6178%2016.6257%2014.3878%2017.0104%2014.3878C17.3952%2014.3878%2017.6261%2014.6178%2017.6261%2015.0011V18.8342C17.6261%2019.1408%2017.3952%2019.4474%2017.0104%2019.4474C16.6257%2019.4474%2016.3948%2019.1408%2016.3948%2018.8342ZM13.3167%2018.8342V15.0011C13.3167%2014.6178%2013.5475%2014.3878%2013.9323%2014.3878C14.3171%2014.3878%2014.5479%2014.6178%2014.5479%2015.0011V18.8342C14.5479%2019.1408%2014.3171%2019.4474%2013.9323%2019.4474C13.5475%2019.4474%2013.3167%2019.1408%2013.3167%2018.8342Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e",Da="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209259'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.3062'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cg%20id='Group%203973'%3e%3cg%20id='Rectangle%20495'%3e%3cmask%20id='path-2-inside-1_4451_10560'%20fill='white'%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'/%3e%3c/mask%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'%20stroke='%23605B56'%20stroke-width='3'%20mask='url(%23path-2-inside-1_4451_10560)'/%3e%3c/g%3e%3cg%20id='Group%203972'%3e%3crect%20id='Rectangle%20496'%20x='7.2041'%20y='10.9042'%20width='12.8'%20height='12.8'%20rx='1'%20fill='%23605B56'/%3e%3cpath%20id='+'%20d='M16.3785%2018.0509H14.3838V20.0776H12.9331V18.0509H10.9385V16.6749H12.9331V14.6376H14.3838V16.6749H16.3785V18.0509Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Ia="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209260'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M8.20744%208.70422C7.34769%208.70422%206.88873%209.71735%207.45568%2010.3637L13.3518%2017.085C13.5118%2017.2675%2013.6%2017.5018%2013.6%2017.7445V23.2443C13.6%2023.6283%2013.8199%2023.9783%2014.1658%2024.1451L15.9658%2025.0128C16.6297%2025.3329%2017.4%2024.8491%2017.4%2024.112V17.7445C17.4%2017.5018%2017.4882%2017.2675%2017.6482%2017.085L23.5443%2010.3637C24.1113%209.71735%2023.6523%208.70422%2022.7926%208.70422H8.20744Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e",Ba="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%206725'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.7148'%20r='14.3521'%20stroke='%23605B56'%20stroke-opacity='0.5'%20stroke-width='1.5'/%3e%3cg%20id='Group%206724'%3e%3cpath%20id='Vector'%20d='M17.4114%2023.3302C17.4114%2024.5419%2016.4269%2027.4724%2015.2126%2027.4724C13.9982%2027.4724%2013.0137%2024.5419%2013.0137%2023.3302C13.0137%2022.7483%2013.2453%2022.1902%2013.6577%2021.7787C14.0701%2021.3673%2014.6294%2021.1361%2015.2126%2021.1361C15.7957%2021.1361%2016.355%2021.3673%2016.7674%2021.7787C17.1798%2022.1902%2017.4114%2022.7483%2017.4114%2023.3302Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union'%20d='M15.2919%2020.6088H11.2899L11.289%2020.6078C10.6273%2020.7718%209.36856%2021.3396%209.39931%2023.2845C9.39931%2023.2845%207.41254%2021.7976%208.17372%2019.0179L8.25575%2018.7445C8.59675%2017.7118%209.66004%2016.7306%2010.7714%2016.2435C10.7337%2012.8666%2011.5045%208.19644%2015.2919%204.724V20.6088ZM10.6835%2017.4164C10.5323%2017.5091%2010.3819%2017.6125%2010.2372%2017.7279C9.77215%2018.099%209.43634%2018.5195%209.26747%2018.8988L9.20595%2019.058C8.95666%2019.8145%208.9632%2020.4347%209.07607%2020.9291C9.34144%2020.5645%209.66233%2020.2832%209.9999%2020.0746C10.2365%2019.9284%2010.4715%2019.8251%2010.6835%2019.7494V17.4164Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union_2'%20d='M15.293%204.724C19.0931%208.20817%2019.8548%2012.8981%2019.8115%2016.2777C20.8629%2016.7859%2021.8411%2017.7218%2022.165%2018.7045C23.1398%2021.6599%2021.0225%2023.2445%2021.0225%2023.2445C21.051%2021.4361%2019.9648%2020.8184%2019.2803%2020.6088H15.293V4.724ZM19.7676%2017.3949C19.7586%2017.5313%2019.7493%2017.6646%2019.7383%2017.7943V19.7094C19.9502%2019.7851%2020.1854%2019.8884%2020.4219%2020.0345C20.7595%2020.2432%2021.0794%2020.5253%2021.3447%2020.89C21.4466%2020.444%2021.4627%2019.8956%2021.2812%2019.2367L21.2148%2019.0179C21.0772%2018.6004%2020.7157%2018.1118%2020.1846%2017.6879C20.0493%2017.58%2019.9088%2017.4829%2019.7676%2017.3949Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cg%20id='Vector_2'%3e%3cpath%20d='M12.541%208.28445C12.541%208.28445%2014.8218%209.81829%2018.0434%208.28445C18.0434%208.28445%2016.9978%206.03912%2015.2919%204.61267C15.2919%204.61267%2013.7894%205.92343%2012.541%208.28445Z'%20fill='%23FDFDFD'/%3e%3cpath%20d='M15.3057%205.29626C15.9532%205.9116%2016.4918%206.63792%2016.8867%207.2533C17.0801%207.55466%2017.2355%207.82605%2017.3516%208.03748C16.0573%208.54342%2014.966%208.52427%2014.1807%208.36951C13.781%208.29074%2013.4584%208.17533%2013.2266%208.07556C13.7607%207.14513%2014.32%206.40895%2014.7646%205.88806C14.9759%205.64056%2015.1621%205.44302%2015.3057%205.29626Z'%20stroke='%23605B56'%20stroke-opacity='0.5'/%3e%3c/g%3e%3cpath%20id='Vector_3'%20d='M17.6984%2012.9862C17.6985%2013.4539%2017.5596%2013.9111%2017.2993%2014.3001C17.039%2014.689%2016.669%2014.9922%2016.236%2015.1712C15.803%2015.3503%2015.3265%2015.3972%2014.8668%2015.3061C14.4071%2015.2149%2013.9848%2014.9898%2013.6533%2014.6591C13.3218%2014.3285%2013.0961%2013.9072%2013.0046%2013.4485C12.9131%2012.9898%2012.96%2012.5143%2013.1393%2012.0822C13.3186%2011.6501%2013.6224%2011.2808%2014.0121%2011.021C14.4018%2010.7611%2014.86%2010.6224%2015.3287%2010.6224C15.957%2010.6224%2016.5597%2010.8715%2017.004%2011.3147C17.4484%2011.758%2017.6982%2012.3593%2017.6984%2012.9862Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_4'%20d='M17.1358%2013.0038C17.1358%2013.36%2017.0299%2013.7083%2016.8316%2014.0045C16.6332%2014.3007%2016.3513%2014.5316%2016.0214%2014.6679C15.6916%2014.8042%2015.3286%2014.8399%2014.9784%2014.7704C14.6282%2014.7009%2014.3066%2014.5294%2014.0541%2014.2774C13.8017%2014.0255%2013.6297%2013.7046%2013.5601%2013.3552C13.4904%2013.0058%2013.5262%2012.6436%2013.6628%2012.3145C13.7994%2011.9853%2014.0308%2011.704%2014.3277%2011.5061C14.6245%2011.3082%2014.9736%2011.2025%2015.3306%2011.2025C15.8094%2011.2025%2016.2685%2011.3923%2016.6071%2011.7301C16.9456%2012.0679%2017.1358%2012.526%2017.1358%2013.0038Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_5'%20d='M16.7061%2013.2093C16.6508%2013.2093%2016.5978%2013.1874%2016.5588%2013.1485C16.5197%2013.1095%2016.4978%2013.0566%2016.4978%2013.0015C16.4974%2012.7236%2016.3866%2012.4572%2016.1897%2012.2607C15.9928%2012.0642%2015.7258%2011.9537%2015.4473%2011.9533C15.4175%2011.9582%2015.3869%2011.9566%2015.3578%2011.9485C15.3287%2011.9405%2015.3017%2011.9262%2015.2786%2011.9067C15.2556%2011.8872%2015.237%2011.8629%2015.2244%2011.8356C15.2117%2011.8082%2015.2051%2011.7784%2015.2051%2011.7482C15.2051%2011.7181%2015.2117%2011.6883%2015.2244%2011.6609C15.237%2011.6336%2015.2556%2011.6093%2015.2786%2011.5898C15.3017%2011.5703%2015.3287%2011.556%2015.3578%2011.5479C15.3869%2011.5399%2015.4175%2011.5383%2015.4473%2011.5432C15.8348%2011.5435%2016.2063%2011.6973%2016.4803%2011.9707C16.7543%2012.2441%2016.9084%2012.6148%2016.9088%2013.0015C16.9088%2013.0557%2016.8876%2013.1077%2016.8498%2013.1465C16.8119%2013.1854%2016.7603%2013.2079%2016.7061%2013.2093Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_6'%20d='M16.8082%2013.6607C16.8082%2013.7106%2016.7934%2013.7594%2016.7656%2013.8008C16.7378%2013.8423%2016.6984%2013.8746%2016.6522%2013.8937C16.606%2013.9128%2016.5552%2013.9178%2016.5062%2013.9081C16.4571%2013.8983%2016.4121%2013.8743%2016.3768%2013.8391C16.3414%2013.8038%2016.3173%2013.7589%2016.3076%2013.7099C16.2978%2013.661%2016.3028%2013.6103%2016.322%2013.5642C16.3411%2013.5182%2016.3735%2013.4788%2016.4151%2013.4511C16.4566%2013.4234%2016.5055%2013.4086%2016.5555%2013.4086C16.6225%2013.4086%2016.6868%2013.4351%2016.7342%2013.4824C16.7816%2013.5297%2016.8082%2013.5939%2016.8082%2013.6607Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_7'%20d='M15.6008%2016.0612C15.5633%2016.0097%2015.5141%2015.9677%2015.4573%2015.9388C15.4005%2015.9099%2015.3376%2015.8949%2015.2738%2015.8949H15.1898C15.126%2015.8948%2015.0631%2015.9099%2015.0062%2015.9388C14.9494%2015.9677%2014.9002%2016.0096%2014.8627%2016.0612C14.8627%2016.0612%2013.6074%2017.4973%2014.1816%2021.0915C14.4989%2023.0777%2015.2314%2023.6694%2015.2314%2023.6694C15.2314%2023.6694%2015.9639%2023.0777%2016.2819%2021.0915C16.8561%2017.4973%2015.6008%2016.0612%2015.6008%2016.0612Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_8'%20d='M15.1468%2015.8949C15.083%2015.8948%2015.0201%2015.9099%2014.9632%2015.9388C14.9064%2015.9677%2014.8572%2016.0096%2014.8198%2016.0612C14.8198%2016.0612%2013.5645%2017.4973%2014.1387%2021.0915C14.456%2023.0777%2015.1884%2023.6694%2015.1884%2023.6694V15.8949H15.1468Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Va="data:image/svg+xml,%3csvg%20width='26'%20height='14'%20viewBox='0%200%2026%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205138'%3e%3cpath%20id='Vector'%20d='M12.95%200.408447C7.659%200.408447%202.84899%202.77185%200.0832465%206.72621C-0.0277488%206.88808%20-0.0277488%207.09621%200.0832465%207.25807C2.84439%2011.2125%207.65437%2013.5712%2012.95%2013.5712C18.2456%2013.5712%2023.0556%2011.2125%2025.8168%207.25807C25.9278%207.0962%2025.9278%206.88807%2025.8168%206.72621C23.051%202.77184%2018.241%200.408447%2012.95%200.408447ZM12.95%2011.2217C10.619%2011.2217%208.71812%209.32083%208.71812%206.98984C8.71812%204.65885%2010.619%202.75796%2012.95%202.75796C15.281%202.75796%2017.1819%204.65883%2017.1819%206.98984C17.1819%209.32085%2015.281%2011.2217%2012.95%2011.2217Z'%20fill='%23B32F5D'/%3e%3cpath%20id='Vector_2'%20d='M12.9514%2010.2966C14.7777%2010.2966%2016.2583%208.81607%2016.2583%206.98974C16.2583%205.1634%2014.7777%203.68286%2012.9514%203.68286C11.1251%203.68286%209.64453%205.1634%209.64453%206.98974C9.64453%208.81607%2011.1251%2010.2966%2012.9514%2010.2966Z'%20fill='%23B32F5D'/%3e%3c/g%3e%3c/svg%3e",Pa="data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%200%2026%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205207'%3e%3cpath%20id='Vector'%20d='M12.9837%206.40625C11.1707%206.40625%209.69531%207.88162%209.69531%209.69462C9.69531%2010.0276%209.74618%2010.3514%209.83869%2010.652C9.93579%2010.9711%2010.0792%2011.2718%2010.2642%2011.54L14.8291%206.97512C14.5562%206.79013%2014.2602%206.64676%2013.9411%206.54962C13.6404%206.45712%2013.3167%206.40625%2012.9837%206.40625Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_2'%20d='M19.4938%204.44079C19.318%204.36678%2019.1191%204.40841%2018.985%204.53792L16.3534%207.16955V7.17415C16.543%207.42855%2016.7049%207.70604%2016.8344%208.00204C17.0656%208.52004%2017.1905%209.09354%2017.1905%209.69478C17.1905%2012.0165%2015.3035%2013.9035%2012.9818%2013.9035C12.3805%2013.9035%2011.807%2013.7787%2011.289%2013.5474C10.993%2013.4179%2010.7155%2013.256%2010.4611%2013.0664H10.4565L8.52788%2014.995C8.41225%2015.1153%208.36601%2015.2864%208.41225%2015.4437C8.45389%2015.6055%208.57875%2015.7304%208.74063%2015.772C10.0958%2016.1189%2011.511%2016.2947%2012.9494%2016.2947C18.245%2016.2947%2023.055%2013.9359%2025.8161%209.98153C25.9271%209.82429%2025.9271%209.61153%2025.8161%209.45427C24.2991%207.27591%2022.1115%205.54154%2019.4938%204.44079Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_3'%20d='M12.9843%2012.979C14.7973%2012.979%2016.268%2011.5082%2016.268%209.6952C16.268%209.35295%2016.2171%209.0292%2016.12%208.71933C16.0229%208.4002%2015.8749%208.10419%2015.6899%207.83594L11.125%2012.4008C11.3933%2012.5858%2011.6893%2012.7338%2012.0084%2012.831C12.3183%2012.9281%2012.6466%2012.979%2012.9843%2012.979Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_4'%20d='M9.12048%2011.3694C8.89386%2010.856%208.769%2010.2918%208.769%209.69516C8.769%207.3734%2010.656%205.48178%2012.9824%205.48178C13.579%205.48178%2014.1433%205.60667%2014.6566%205.83329C14.9526%205.95815%2015.2347%206.12004%2015.4891%206.31428L17.3808%204.42267L21.0114%200.792026C21.1918%200.611646%2021.1918%200.315664%2021.0114%200.135285C20.831%20-0.0450949%2020.535%20-0.0450949%2020.3546%200.135285L16.8951%203.59478C15.6186%203.28491%2014.2959%203.13228%2012.95%203.13228C7.65437%203.13228%202.84439%205.49565%200.0832465%209.45464C-0.0277488%209.61191%20-0.0277488%209.82467%200.0832465%209.9819C1.48001%2011.9845%203.44563%2013.6079%205.78125%2014.7087L3.37162%2017.1183C3.19127%2017.2986%203.19127%2017.5947%203.37162%2017.775C3.46412%2017.8629%203.57975%2017.9091%203.7%2017.9091C3.82026%2017.9091%203.93588%2017.8629%204.02839%2017.775L9.60151%2012.2019C9.40727%2011.9429%209.24536%2011.6654%209.12048%2011.3694Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3c/g%3e%3c/svg%3e";function Fa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yn={exports:{}},bn={exports:{}},ce={};/** @license React v16.13.1
2
+ "use strict";var ca=Object.create;var lo=Object.defineProperty;var ua=Object.getOwnPropertyDescriptor;var da=Object.getOwnPropertyNames;var fa=Object.getPrototypeOf,pa=Object.prototype.hasOwnProperty;var ma=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of da(t))!pa.call(e,o)&&o!==n&&lo(e,o,{get:()=>t[o],enumerable:!(r=ua(t,o))||r.enumerable});return e};var ha=(e,t,n)=>(n=e!=null?ca(fa(e)):{},ma(t||!e||!e.__esModule?lo(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),w=require("react"),se=require("react-i18next"),zr=require("framer-motion"),qr=require("zustand"),ce=require("d3"),ga=require("mapbox-gl"),ya=require("react-redux"),Os=require("react-dom"),ir=require("maplibre-gl"),ba=require("pmtiles"),va=require("@reduxjs/toolkit"),co=require("@mui/material"),xa=require("@emotion/react"),Ca=require("@emotion/styled"),As=require("react-router-dom");function Ls(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Q=Ls(w),ar=Ls(ce),_a="_ambitSelector_mcunf_2",wa="_header_mcunf_13",Sa="_nameDateContainer_mcunf_23",Ta="_ambitName_mcunf_39",ka="_ambitDate_mcunf_53",ja="_buttonsContainer_mcunf_67",$a="_ambitListContainer_mcunf_76",Ea="_newAmbitButtonContainer_mcunf_80",ut={ambitSelector:_a,header:wa,nameDateContainer:Sa,ambitName:Ta,ambitDate:ka,buttonsContainer:ja,ambitListContainer:$a,newAmbitButtonContainer:Ea},Na="_ambitItem_1qa6u_2",Oa="_ambitNameDate_1qa6u_16",Aa="_ambitName_1qa6u_16",La="_ambitDate_1qa6u_35",Ma="_ambitButtons_1qa6u_38",Yt={ambitItem:Na,ambitNameDate:Oa,ambitName:Aa,ambitDate:La,ambitButtons:Ma},Ra="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Eliminar'%3e%3ccircle%20id='Ellipse%20220'%20cx='15.5106'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M20.8581%2010.5548H17.5491V10.4015C17.5491%209.17493%2016.6257%208.255%2015.4714%208.255C14.3171%208.255%2013.3167%209.17493%2013.3167%2010.4015V10.5548H10.0846C9.69985%2010.5548%209.46899%2010.7848%209.46899%2011.1681C9.46899%2011.5514%209.69985%2011.7814%2010.0846%2011.7814H10.2385V21.2106C10.2385%2022.3605%2011.162%2023.3571%2012.3932%2023.3571H18.5495C19.7038%2023.3571%2020.7042%2022.4372%2020.7042%2021.2106V11.7047H20.9351C21.2429%2011.7047%2021.5507%2011.4747%2021.5507%2011.0914C21.5507%2010.7081%2021.1659%2010.5548%2020.8581%2010.5548ZM14.471%2010.4015C14.471%209.86488%2014.9327%209.40491%2015.4714%209.40491C16.01%209.40491%2016.3948%209.86488%2016.3948%2010.4015V10.5548H14.471V10.4015ZM16.3948%2018.8342V15.0011C16.3948%2014.6178%2016.6257%2014.3878%2017.0104%2014.3878C17.3952%2014.3878%2017.6261%2014.6178%2017.6261%2015.0011V18.8342C17.6261%2019.1408%2017.3952%2019.4474%2017.0104%2019.4474C16.6257%2019.4474%2016.3948%2019.1408%2016.3948%2018.8342ZM13.3167%2018.8342V15.0011C13.3167%2014.6178%2013.5475%2014.3878%2013.9323%2014.3878C14.3171%2014.3878%2014.5479%2014.6178%2014.5479%2015.0011V18.8342C14.5479%2019.1408%2014.3171%2019.4474%2013.9323%2019.4474C13.5475%2019.4474%2013.3167%2019.1408%2013.3167%2018.8342Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e",Ia="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209259'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.3062'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cg%20id='Group%203973'%3e%3cg%20id='Rectangle%20495'%3e%3cmask%20id='path-2-inside-1_4451_10560'%20fill='white'%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'/%3e%3c/mask%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'%20stroke='%23605B56'%20stroke-width='3'%20mask='url(%23path-2-inside-1_4451_10560)'/%3e%3c/g%3e%3cg%20id='Group%203972'%3e%3crect%20id='Rectangle%20496'%20x='7.2041'%20y='10.9042'%20width='12.8'%20height='12.8'%20rx='1'%20fill='%23605B56'/%3e%3cpath%20id='+'%20d='M16.3785%2018.0509H14.3838V20.0776H12.9331V18.0509H10.9385V16.6749H12.9331V14.6376H14.3838V16.6749H16.3785V18.0509Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Da="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209260'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M8.20744%208.70422C7.34769%208.70422%206.88873%209.71735%207.45568%2010.3637L13.3518%2017.085C13.5118%2017.2675%2013.6%2017.5018%2013.6%2017.7445V23.2443C13.6%2023.6283%2013.8199%2023.9783%2014.1658%2024.1451L15.9658%2025.0128C16.6297%2025.3329%2017.4%2024.8491%2017.4%2024.112V17.7445C17.4%2017.5018%2017.4882%2017.2675%2017.6482%2017.085L23.5443%2010.3637C24.1113%209.71735%2023.6523%208.70422%2022.7926%208.70422H8.20744Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e",Ba="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%206725'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.7148'%20r='14.3521'%20stroke='%23605B56'%20stroke-opacity='0.5'%20stroke-width='1.5'/%3e%3cg%20id='Group%206724'%3e%3cpath%20id='Vector'%20d='M17.4114%2023.3302C17.4114%2024.5419%2016.4269%2027.4724%2015.2126%2027.4724C13.9982%2027.4724%2013.0137%2024.5419%2013.0137%2023.3302C13.0137%2022.7483%2013.2453%2022.1902%2013.6577%2021.7787C14.0701%2021.3673%2014.6294%2021.1361%2015.2126%2021.1361C15.7957%2021.1361%2016.355%2021.3673%2016.7674%2021.7787C17.1798%2022.1902%2017.4114%2022.7483%2017.4114%2023.3302Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union'%20d='M15.2919%2020.6088H11.2899L11.289%2020.6078C10.6273%2020.7718%209.36856%2021.3396%209.39931%2023.2845C9.39931%2023.2845%207.41254%2021.7976%208.17372%2019.0179L8.25575%2018.7445C8.59675%2017.7118%209.66004%2016.7306%2010.7714%2016.2435C10.7337%2012.8666%2011.5045%208.19644%2015.2919%204.724V20.6088ZM10.6835%2017.4164C10.5323%2017.5091%2010.3819%2017.6125%2010.2372%2017.7279C9.77215%2018.099%209.43634%2018.5195%209.26747%2018.8988L9.20595%2019.058C8.95666%2019.8145%208.9632%2020.4347%209.07607%2020.9291C9.34144%2020.5645%209.66233%2020.2832%209.9999%2020.0746C10.2365%2019.9284%2010.4715%2019.8251%2010.6835%2019.7494V17.4164Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union_2'%20d='M15.293%204.724C19.0931%208.20817%2019.8548%2012.8981%2019.8115%2016.2777C20.8629%2016.7859%2021.8411%2017.7218%2022.165%2018.7045C23.1398%2021.6599%2021.0225%2023.2445%2021.0225%2023.2445C21.051%2021.4361%2019.9648%2020.8184%2019.2803%2020.6088H15.293V4.724ZM19.7676%2017.3949C19.7586%2017.5313%2019.7493%2017.6646%2019.7383%2017.7943V19.7094C19.9502%2019.7851%2020.1854%2019.8884%2020.4219%2020.0345C20.7595%2020.2432%2021.0794%2020.5253%2021.3447%2020.89C21.4466%2020.444%2021.4627%2019.8956%2021.2812%2019.2367L21.2148%2019.0179C21.0772%2018.6004%2020.7157%2018.1118%2020.1846%2017.6879C20.0493%2017.58%2019.9088%2017.4829%2019.7676%2017.3949Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cg%20id='Vector_2'%3e%3cpath%20d='M12.541%208.28445C12.541%208.28445%2014.8218%209.81829%2018.0434%208.28445C18.0434%208.28445%2016.9978%206.03912%2015.2919%204.61267C15.2919%204.61267%2013.7894%205.92343%2012.541%208.28445Z'%20fill='%23FDFDFD'/%3e%3cpath%20d='M15.3057%205.29626C15.9532%205.9116%2016.4918%206.63792%2016.8867%207.2533C17.0801%207.55466%2017.2355%207.82605%2017.3516%208.03748C16.0573%208.54342%2014.966%208.52427%2014.1807%208.36951C13.781%208.29074%2013.4584%208.17533%2013.2266%208.07556C13.7607%207.14513%2014.32%206.40895%2014.7646%205.88806C14.9759%205.64056%2015.1621%205.44302%2015.3057%205.29626Z'%20stroke='%23605B56'%20stroke-opacity='0.5'/%3e%3c/g%3e%3cpath%20id='Vector_3'%20d='M17.6984%2012.9862C17.6985%2013.4539%2017.5596%2013.9111%2017.2993%2014.3001C17.039%2014.689%2016.669%2014.9922%2016.236%2015.1712C15.803%2015.3503%2015.3265%2015.3972%2014.8668%2015.3061C14.4071%2015.2149%2013.9848%2014.9898%2013.6533%2014.6591C13.3218%2014.3285%2013.0961%2013.9072%2013.0046%2013.4485C12.9131%2012.9898%2012.96%2012.5143%2013.1393%2012.0822C13.3186%2011.6501%2013.6224%2011.2808%2014.0121%2011.021C14.4018%2010.7611%2014.86%2010.6224%2015.3287%2010.6224C15.957%2010.6224%2016.5597%2010.8715%2017.004%2011.3147C17.4484%2011.758%2017.6982%2012.3593%2017.6984%2012.9862Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_4'%20d='M17.1358%2013.0038C17.1358%2013.36%2017.0299%2013.7083%2016.8316%2014.0045C16.6332%2014.3007%2016.3513%2014.5316%2016.0214%2014.6679C15.6916%2014.8042%2015.3286%2014.8399%2014.9784%2014.7704C14.6282%2014.7009%2014.3066%2014.5294%2014.0541%2014.2774C13.8017%2014.0255%2013.6297%2013.7046%2013.5601%2013.3552C13.4904%2013.0058%2013.5262%2012.6436%2013.6628%2012.3145C13.7994%2011.9853%2014.0308%2011.704%2014.3277%2011.5061C14.6245%2011.3082%2014.9736%2011.2025%2015.3306%2011.2025C15.8094%2011.2025%2016.2685%2011.3923%2016.6071%2011.7301C16.9456%2012.0679%2017.1358%2012.526%2017.1358%2013.0038Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_5'%20d='M16.7061%2013.2093C16.6508%2013.2093%2016.5978%2013.1874%2016.5588%2013.1485C16.5197%2013.1095%2016.4978%2013.0566%2016.4978%2013.0015C16.4974%2012.7236%2016.3866%2012.4572%2016.1897%2012.2607C15.9928%2012.0642%2015.7258%2011.9537%2015.4473%2011.9533C15.4175%2011.9582%2015.3869%2011.9566%2015.3578%2011.9485C15.3287%2011.9405%2015.3017%2011.9262%2015.2786%2011.9067C15.2556%2011.8872%2015.237%2011.8629%2015.2244%2011.8356C15.2117%2011.8082%2015.2051%2011.7784%2015.2051%2011.7482C15.2051%2011.7181%2015.2117%2011.6883%2015.2244%2011.6609C15.237%2011.6336%2015.2556%2011.6093%2015.2786%2011.5898C15.3017%2011.5703%2015.3287%2011.556%2015.3578%2011.5479C15.3869%2011.5399%2015.4175%2011.5383%2015.4473%2011.5432C15.8348%2011.5435%2016.2063%2011.6973%2016.4803%2011.9707C16.7543%2012.2441%2016.9084%2012.6148%2016.9088%2013.0015C16.9088%2013.0557%2016.8876%2013.1077%2016.8498%2013.1465C16.8119%2013.1854%2016.7603%2013.2079%2016.7061%2013.2093Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_6'%20d='M16.8082%2013.6607C16.8082%2013.7106%2016.7934%2013.7594%2016.7656%2013.8008C16.7378%2013.8423%2016.6984%2013.8746%2016.6522%2013.8937C16.606%2013.9128%2016.5552%2013.9178%2016.5062%2013.9081C16.4571%2013.8983%2016.4121%2013.8743%2016.3768%2013.8391C16.3414%2013.8038%2016.3173%2013.7589%2016.3076%2013.7099C16.2978%2013.661%2016.3028%2013.6103%2016.322%2013.5642C16.3411%2013.5182%2016.3735%2013.4788%2016.4151%2013.4511C16.4566%2013.4234%2016.5055%2013.4086%2016.5555%2013.4086C16.6225%2013.4086%2016.6868%2013.4351%2016.7342%2013.4824C16.7816%2013.5297%2016.8082%2013.5939%2016.8082%2013.6607Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_7'%20d='M15.6008%2016.0612C15.5633%2016.0097%2015.5141%2015.9677%2015.4573%2015.9388C15.4005%2015.9099%2015.3376%2015.8949%2015.2738%2015.8949H15.1898C15.126%2015.8948%2015.0631%2015.9099%2015.0062%2015.9388C14.9494%2015.9677%2014.9002%2016.0096%2014.8627%2016.0612C14.8627%2016.0612%2013.6074%2017.4973%2014.1816%2021.0915C14.4989%2023.0777%2015.2314%2023.6694%2015.2314%2023.6694C15.2314%2023.6694%2015.9639%2023.0777%2016.2819%2021.0915C16.8561%2017.4973%2015.6008%2016.0612%2015.6008%2016.0612Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_8'%20d='M15.1468%2015.8949C15.083%2015.8948%2015.0201%2015.9099%2014.9632%2015.9388C14.9064%2015.9677%2014.8572%2016.0096%2014.8198%2016.0612C14.8198%2016.0612%2013.5645%2017.4973%2014.1387%2021.0915C14.456%2023.0777%2015.1884%2023.6694%2015.1884%2023.6694V15.8949H15.1468Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Pa="data:image/svg+xml,%3csvg%20width='26'%20height='14'%20viewBox='0%200%2026%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205138'%3e%3cpath%20id='Vector'%20d='M12.95%200.408447C7.659%200.408447%202.84899%202.77185%200.0832465%206.72621C-0.0277488%206.88808%20-0.0277488%207.09621%200.0832465%207.25807C2.84439%2011.2125%207.65437%2013.5712%2012.95%2013.5712C18.2456%2013.5712%2023.0556%2011.2125%2025.8168%207.25807C25.9278%207.0962%2025.9278%206.88807%2025.8168%206.72621C23.051%202.77184%2018.241%200.408447%2012.95%200.408447ZM12.95%2011.2217C10.619%2011.2217%208.71812%209.32083%208.71812%206.98984C8.71812%204.65885%2010.619%202.75796%2012.95%202.75796C15.281%202.75796%2017.1819%204.65883%2017.1819%206.98984C17.1819%209.32085%2015.281%2011.2217%2012.95%2011.2217Z'%20fill='%23B32F5D'/%3e%3cpath%20id='Vector_2'%20d='M12.9514%2010.2966C14.7777%2010.2966%2016.2583%208.81607%2016.2583%206.98974C16.2583%205.1634%2014.7777%203.68286%2012.9514%203.68286C11.1251%203.68286%209.64453%205.1634%209.64453%206.98974C9.64453%208.81607%2011.1251%2010.2966%2012.9514%2010.2966Z'%20fill='%23B32F5D'/%3e%3c/g%3e%3c/svg%3e",Va="data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%200%2026%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205207'%3e%3cpath%20id='Vector'%20d='M12.9837%206.40625C11.1707%206.40625%209.69531%207.88162%209.69531%209.69462C9.69531%2010.0276%209.74618%2010.3514%209.83869%2010.652C9.93579%2010.9711%2010.0792%2011.2718%2010.2642%2011.54L14.8291%206.97512C14.5562%206.79013%2014.2602%206.64676%2013.9411%206.54962C13.6404%206.45712%2013.3167%206.40625%2012.9837%206.40625Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_2'%20d='M19.4938%204.44079C19.318%204.36678%2019.1191%204.40841%2018.985%204.53792L16.3534%207.16955V7.17415C16.543%207.42855%2016.7049%207.70604%2016.8344%208.00204C17.0656%208.52004%2017.1905%209.09354%2017.1905%209.69478C17.1905%2012.0165%2015.3035%2013.9035%2012.9818%2013.9035C12.3805%2013.9035%2011.807%2013.7787%2011.289%2013.5474C10.993%2013.4179%2010.7155%2013.256%2010.4611%2013.0664H10.4565L8.52788%2014.995C8.41225%2015.1153%208.36601%2015.2864%208.41225%2015.4437C8.45389%2015.6055%208.57875%2015.7304%208.74063%2015.772C10.0958%2016.1189%2011.511%2016.2947%2012.9494%2016.2947C18.245%2016.2947%2023.055%2013.9359%2025.8161%209.98153C25.9271%209.82429%2025.9271%209.61153%2025.8161%209.45427C24.2991%207.27591%2022.1115%205.54154%2019.4938%204.44079Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_3'%20d='M12.9843%2012.979C14.7973%2012.979%2016.268%2011.5082%2016.268%209.6952C16.268%209.35295%2016.2171%209.0292%2016.12%208.71933C16.0229%208.4002%2015.8749%208.10419%2015.6899%207.83594L11.125%2012.4008C11.3933%2012.5858%2011.6893%2012.7338%2012.0084%2012.831C12.3183%2012.9281%2012.6466%2012.979%2012.9843%2012.979Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_4'%20d='M9.12048%2011.3694C8.89386%2010.856%208.769%2010.2918%208.769%209.69516C8.769%207.3734%2010.656%205.48178%2012.9824%205.48178C13.579%205.48178%2014.1433%205.60667%2014.6566%205.83329C14.9526%205.95815%2015.2347%206.12004%2015.4891%206.31428L17.3808%204.42267L21.0114%200.792026C21.1918%200.611646%2021.1918%200.315664%2021.0114%200.135285C20.831%20-0.0450949%2020.535%20-0.0450949%2020.3546%200.135285L16.8951%203.59478C15.6186%203.28491%2014.2959%203.13228%2012.95%203.13228C7.65437%203.13228%202.84439%205.49565%200.0832465%209.45464C-0.0277488%209.61191%20-0.0277488%209.82467%200.0832465%209.9819C1.48001%2011.9845%203.44563%2013.6079%205.78125%2014.7087L3.37162%2017.1183C3.19127%2017.2986%203.19127%2017.5947%203.37162%2017.775C3.46412%2017.8629%203.57975%2017.9091%203.7%2017.9091C3.82026%2017.9091%203.93588%2017.8629%204.02839%2017.775L9.60151%2012.2019C9.40727%2011.9429%209.24536%2011.6654%209.12048%2011.3694Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3c/g%3e%3c/svg%3e";function Fa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yn={exports:{}},bn={exports:{}},ue={};/** @license React v16.13.1
3
3
  * react-is.production.min.js
4
4
  *
5
5
  * Copyright (c) Facebook, Inc. and its affiliates.
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var uo;function za(){if(uo)return ce;uo=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function E(v){if(typeof v=="object"&&v!==null){var T=v.$$typeof;switch(T){case t:switch(v=v.type,v){case u:case d:case r:case i:case o:case g:return v;default:switch(v=v&&v.$$typeof,v){case c:case m:case b:case h:case a:return v;default:return T}}case n:return T}}}function C(v){return E(v)===d}return ce.AsyncMode=u,ce.ConcurrentMode=d,ce.ContextConsumer=c,ce.ContextProvider=a,ce.Element=t,ce.ForwardRef=m,ce.Fragment=r,ce.Lazy=b,ce.Memo=h,ce.Portal=n,ce.Profiler=i,ce.StrictMode=o,ce.Suspense=g,ce.isAsyncMode=function(v){return C(v)||E(v)===u},ce.isConcurrentMode=C,ce.isContextConsumer=function(v){return E(v)===c},ce.isContextProvider=function(v){return E(v)===a},ce.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},ce.isForwardRef=function(v){return E(v)===m},ce.isFragment=function(v){return E(v)===r},ce.isLazy=function(v){return E(v)===b},ce.isMemo=function(v){return E(v)===h},ce.isPortal=function(v){return E(v)===n},ce.isProfiler=function(v){return E(v)===i},ce.isStrictMode=function(v){return E(v)===o},ce.isSuspense=function(v){return E(v)===g},ce.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===d||v===i||v===o||v===g||v===y||typeof v=="object"&&v!==null&&(v.$$typeof===b||v.$$typeof===h||v.$$typeof===a||v.$$typeof===c||v.$$typeof===m||v.$$typeof===x||v.$$typeof===_||v.$$typeof===w||v.$$typeof===f)},ce.typeOf=E,ce}var ue={};/** @license React v16.13.1
9
+ */var uo;function za(){if(uo)return ue;uo=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(v){if(typeof v=="object"&&v!==null){var T=v.$$typeof;switch(T){case t:switch(v=v.type,v){case u:case d:case r:case i:case o:case g:return v;default:switch(v=v&&v.$$typeof,v){case c:case m:case b:case h:case a:return v;default:return T}}case n:return T}}}function C(v){return E(v)===d}return ue.AsyncMode=u,ue.ConcurrentMode=d,ue.ContextConsumer=c,ue.ContextProvider=a,ue.Element=t,ue.ForwardRef=m,ue.Fragment=r,ue.Lazy=b,ue.Memo=h,ue.Portal=n,ue.Profiler=i,ue.StrictMode=o,ue.Suspense=g,ue.isAsyncMode=function(v){return C(v)||E(v)===u},ue.isConcurrentMode=C,ue.isContextConsumer=function(v){return E(v)===c},ue.isContextProvider=function(v){return E(v)===a},ue.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},ue.isForwardRef=function(v){return E(v)===m},ue.isFragment=function(v){return E(v)===r},ue.isLazy=function(v){return E(v)===b},ue.isMemo=function(v){return E(v)===h},ue.isPortal=function(v){return E(v)===n},ue.isProfiler=function(v){return E(v)===i},ue.isStrictMode=function(v){return E(v)===o},ue.isSuspense=function(v){return E(v)===g},ue.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===d||v===i||v===o||v===g||v===y||typeof v=="object"&&v!==null&&(v.$$typeof===b||v.$$typeof===h||v.$$typeof===a||v.$$typeof===c||v.$$typeof===m||v.$$typeof===x||v.$$typeof===_||v.$$typeof===S||v.$$typeof===f)},ue.typeOf=E,ue}var de={};/** @license React v16.13.1
10
10
  * react-is.development.js
11
11
  *
12
12
  * Copyright (c) Facebook, Inc. and its affiliates.
13
13
  *
14
14
  * This source code is licensed under the MIT license found in the
15
15
  * LICENSE file in the root directory of this source tree.
16
- */var fo;function qa(){return fo||(fo=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function E(F){return typeof F=="string"||typeof F=="function"||F===r||F===d||F===i||F===o||F===g||F===y||typeof F=="object"&&F!==null&&(F.$$typeof===b||F.$$typeof===h||F.$$typeof===a||F.$$typeof===c||F.$$typeof===m||F.$$typeof===x||F.$$typeof===_||F.$$typeof===w||F.$$typeof===f)}function C(F){if(typeof F=="object"&&F!==null){var ae=F.$$typeof;switch(ae){case t:var Ce=F.type;switch(Ce){case u:case d:case r:case i:case o:case g:return Ce;default:var ct=Ce&&Ce.$$typeof;switch(ct){case c:case m:case b:case h:case a:return ct;default:return ae}}case n:return ae}}}var v=u,T=d,A=c,k=a,j=t,D=m,M=r,p=b,N=h,$=n,P=i,q=o,Y=g,U=!1;function ge(F){return U||(U=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(F)||C(F)===u}function L(F){return C(F)===d}function R(F){return C(F)===c}function K(F){return C(F)===a}function J(F){return typeof F=="object"&&F!==null&&F.$$typeof===t}function V(F){return C(F)===m}function Z(F){return C(F)===r}function ne(F){return C(F)===b}function te(F){return C(F)===h}function re(F){return C(F)===n}function ee(F){return C(F)===i}function H(F){return C(F)===o}function be(F){return C(F)===g}ue.AsyncMode=v,ue.ConcurrentMode=T,ue.ContextConsumer=A,ue.ContextProvider=k,ue.Element=j,ue.ForwardRef=D,ue.Fragment=M,ue.Lazy=p,ue.Memo=N,ue.Portal=$,ue.Profiler=P,ue.StrictMode=q,ue.Suspense=Y,ue.isAsyncMode=ge,ue.isConcurrentMode=L,ue.isContextConsumer=R,ue.isContextProvider=K,ue.isElement=J,ue.isForwardRef=V,ue.isFragment=Z,ue.isLazy=ne,ue.isMemo=te,ue.isPortal=re,ue.isProfiler=ee,ue.isStrictMode=H,ue.isSuspense=be,ue.isValidElementType=E,ue.typeOf=C}()),ue}var po;function Ms(){return po||(po=1,process.env.NODE_ENV==="production"?bn.exports=za():bn.exports=qa()),bn.exports}/*
16
+ */var fo;function qa(){return fo||(fo=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(z){return typeof z=="string"||typeof z=="function"||z===r||z===d||z===i||z===o||z===g||z===y||typeof z=="object"&&z!==null&&(z.$$typeof===b||z.$$typeof===h||z.$$typeof===a||z.$$typeof===c||z.$$typeof===m||z.$$typeof===x||z.$$typeof===_||z.$$typeof===S||z.$$typeof===f)}function C(z){if(typeof z=="object"&&z!==null){var le=z.$$typeof;switch(le){case t:var Ce=z.type;switch(Ce){case u:case d:case r:case i:case o:case g:return Ce;default:var ct=Ce&&Ce.$$typeof;switch(ct){case c:case m:case b:case h:case a:return ct;default:return le}}case n:return le}}}var v=u,T=d,A=c,k=a,$=t,P=m,I=r,p=b,N=h,j=n,V=i,W=o,D=g,q=!1;function te(z){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(z)||C(z)===u}function L(z){return C(z)===d}function M(z){return C(z)===c}function H(z){return C(z)===a}function J(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function F(z){return C(z)===m}function K(z){return C(z)===r}function re(z){return C(z)===b}function ne(z){return C(z)===h}function oe(z){return C(z)===n}function ee(z){return C(z)===i}function G(z){return C(z)===o}function be(z){return C(z)===g}de.AsyncMode=v,de.ConcurrentMode=T,de.ContextConsumer=A,de.ContextProvider=k,de.Element=$,de.ForwardRef=P,de.Fragment=I,de.Lazy=p,de.Memo=N,de.Portal=j,de.Profiler=V,de.StrictMode=W,de.Suspense=D,de.isAsyncMode=te,de.isConcurrentMode=L,de.isContextConsumer=M,de.isContextProvider=H,de.isElement=J,de.isForwardRef=F,de.isFragment=K,de.isLazy=re,de.isMemo=ne,de.isPortal=oe,de.isProfiler=ee,de.isStrictMode=G,de.isSuspense=be,de.isValidElementType=E,de.typeOf=C}()),de}var po;function Ms(){return po||(po=1,process.env.NODE_ENV==="production"?bn.exports=za():bn.exports=qa()),bn.exports}/*
17
17
  object-assign
18
18
  (c) Sindre Sorhus
19
19
  @license MIT
20
- */var lr,mo;function Wa(){if(mo)return lr;mo=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(a).map(function(m){return a[m]});if(u.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(m){d[m]=m}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return lr=o()?Object.assign:function(i,a){for(var c,u=r(i),d,m=1;m<arguments.length;m++){c=Object(arguments[m]);for(var g in c)t.call(c,g)&&(u[g]=c[g]);if(e){d=e(c);for(var y=0;y<d.length;y++)n.call(c,d[y])&&(u[d[y]]=c[d[y]])}}return u},lr}var cr,ho;function Wr(){if(ho)return cr;ho=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return cr=e,cr}var ur,go;function Rs(){return go||(go=1,ur=Function.call.bind(Object.prototype.hasOwnProperty)),ur}var dr,yo;function Ua(){if(yo)return dr;yo=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Wr(),n={},r=Rs();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,c,u,d){if(process.env.NODE_ENV!=="production"){for(var m in i)if(r(i,m)){var g;try{if(typeof i[m]!="function"){var y=Error((u||"React class")+": "+c+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}g=i[m](a,m,u,c,null,t)}catch(b){g=b}if(g&&!(g instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in n)){n[g.message]=!0;var h=d?d():"";e("Failed "+c+" type: "+g.message+(h??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},dr=o,dr}var fr,bo;function Za(){if(bo)return fr;bo=1;var e=Ms(),t=Wa(),n=Wr(),r=Rs(),o=Ua(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return fr=function(c,u){var d=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function g(L){var R=L&&(d&&L[d]||L[m]);if(typeof R=="function")return R}var y="<<anonymous>>",h={array:_("array"),bigint:_("bigint"),bool:_("boolean"),func:_("function"),number:_("number"),object:_("object"),string:_("string"),symbol:_("symbol"),any:w(),arrayOf:E,element:C(),elementType:v(),instanceOf:T,node:D(),objectOf:k,oneOf:A,oneOfType:j,shape:p,exact:N};function b(L,R){return L===R?L!==0||1/L===1/R:L!==L&&R!==R}function f(L,R){this.message=L,this.data=R&&typeof R=="object"?R:{},this.stack=""}f.prototype=Error.prototype;function x(L){if(process.env.NODE_ENV!=="production")var R={},K=0;function J(Z,ne,te,re,ee,H,be){if(re=re||y,H=H||te,be!==n){if(u){var F=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw F.name="Invariant Violation",F}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ae=re+":"+te;!R[ae]&&K<3&&(i("You are manually calling a React.PropTypes validation function for the `"+H+"` prop on `"+re+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),R[ae]=!0,K++)}}return ne[te]==null?Z?ne[te]===null?new f("The "+ee+" `"+H+"` is marked as required "+("in `"+re+"`, but its value is `null`.")):new f("The "+ee+" `"+H+"` is marked as required in "+("`"+re+"`, but its value is `undefined`.")):null:L(ne,te,re,ee,H)}var V=J.bind(null,!1);return V.isRequired=J.bind(null,!0),V}function _(L){function R(K,J,V,Z,ne,te){var re=K[J],ee=q(re);if(ee!==L){var H=Y(re);return new f("Invalid "+Z+" `"+ne+"` of type "+("`"+H+"` supplied to `"+V+"`, expected ")+("`"+L+"`."),{expectedType:L})}return null}return x(R)}function w(){return x(a)}function E(L){function R(K,J,V,Z,ne){if(typeof L!="function")return new f("Property `"+ne+"` of component `"+V+"` has invalid PropType notation inside arrayOf.");var te=K[J];if(!Array.isArray(te)){var re=q(te);return new f("Invalid "+Z+" `"+ne+"` of type "+("`"+re+"` supplied to `"+V+"`, expected an array."))}for(var ee=0;ee<te.length;ee++){var H=L(te,ee,V,Z,ne+"["+ee+"]",n);if(H instanceof Error)return H}return null}return x(R)}function C(){function L(R,K,J,V,Z){var ne=R[K];if(!c(ne)){var te=q(ne);return new f("Invalid "+V+" `"+Z+"` of type "+("`"+te+"` supplied to `"+J+"`, expected a single ReactElement."))}return null}return x(L)}function v(){function L(R,K,J,V,Z){var ne=R[K];if(!e.isValidElementType(ne)){var te=q(ne);return new f("Invalid "+V+" `"+Z+"` of type "+("`"+te+"` supplied to `"+J+"`, expected a single ReactElement type."))}return null}return x(L)}function T(L){function R(K,J,V,Z,ne){if(!(K[J]instanceof L)){var te=L.name||y,re=ge(K[J]);return new f("Invalid "+Z+" `"+ne+"` of type "+("`"+re+"` supplied to `"+V+"`, expected ")+("instance of `"+te+"`."))}return null}return x(R)}function A(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function R(K,J,V,Z,ne){for(var te=K[J],re=0;re<L.length;re++)if(b(te,L[re]))return null;var ee=JSON.stringify(L,function(be,F){var ae=Y(F);return ae==="symbol"?String(F):F});return new f("Invalid "+Z+" `"+ne+"` of value `"+String(te)+"` "+("supplied to `"+V+"`, expected one of "+ee+"."))}return x(R)}function k(L){function R(K,J,V,Z,ne){if(typeof L!="function")return new f("Property `"+ne+"` of component `"+V+"` has invalid PropType notation inside objectOf.");var te=K[J],re=q(te);if(re!=="object")return new f("Invalid "+Z+" `"+ne+"` of type "+("`"+re+"` supplied to `"+V+"`, expected an object."));for(var ee in te)if(r(te,ee)){var H=L(te,ee,V,Z,ne+"."+ee,n);if(H instanceof Error)return H}return null}return x(R)}function j(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var R=0;R<L.length;R++){var K=L[R];if(typeof K!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+U(K)+" at index "+R+"."),a}function J(V,Z,ne,te,re){for(var ee=[],H=0;H<L.length;H++){var be=L[H],F=be(V,Z,ne,te,re,n);if(F==null)return null;F.data&&r(F.data,"expectedType")&&ee.push(F.data.expectedType)}var ae=ee.length>0?", expected one of type ["+ee.join(", ")+"]":"";return new f("Invalid "+te+" `"+re+"` supplied to "+("`"+ne+"`"+ae+"."))}return x(J)}function D(){function L(R,K,J,V,Z){return $(R[K])?null:new f("Invalid "+V+" `"+Z+"` supplied to "+("`"+J+"`, expected a ReactNode."))}return x(L)}function M(L,R,K,J,V){return new f((L||"React class")+": "+R+" type `"+K+"."+J+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+V+"`.")}function p(L){function R(K,J,V,Z,ne){var te=K[J],re=q(te);if(re!=="object")return new f("Invalid "+Z+" `"+ne+"` of type `"+re+"` "+("supplied to `"+V+"`, expected `object`."));for(var ee in L){var H=L[ee];if(typeof H!="function")return M(V,Z,ne,ee,Y(H));var be=H(te,ee,V,Z,ne+"."+ee,n);if(be)return be}return null}return x(R)}function N(L){function R(K,J,V,Z,ne){var te=K[J],re=q(te);if(re!=="object")return new f("Invalid "+Z+" `"+ne+"` of type `"+re+"` "+("supplied to `"+V+"`, expected `object`."));var ee=t({},K[J],L);for(var H in ee){var be=L[H];if(r(L,H)&&typeof be!="function")return M(V,Z,ne,H,Y(be));if(!be)return new f("Invalid "+Z+" `"+ne+"` key `"+H+"` supplied to `"+V+"`.\nBad object: "+JSON.stringify(K[J],null," ")+`
21
- Valid keys: `+JSON.stringify(Object.keys(L),null," "));var F=be(te,H,V,Z,ne+"."+H,n);if(F)return F}return null}return x(R)}function $(L){switch(typeof L){case"number":case"string":case"undefined":return!0;case"boolean":return!L;case"object":if(Array.isArray(L))return L.every($);if(L===null||c(L))return!0;var R=g(L);if(R){var K=R.call(L),J;if(R!==L.entries){for(;!(J=K.next()).done;)if(!$(J.value))return!1}else for(;!(J=K.next()).done;){var V=J.value;if(V&&!$(V[1]))return!1}}else return!1;return!0;default:return!1}}function P(L,R){return L==="symbol"?!0:R?R["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&R instanceof Symbol:!1}function q(L){var R=typeof L;return Array.isArray(L)?"array":L instanceof RegExp?"object":P(R,L)?"symbol":R}function Y(L){if(typeof L>"u"||L===null)return""+L;var R=q(L);if(R==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return R}function U(L){var R=Y(L);switch(R){case"array":case"object":return"an "+R;case"boolean":case"date":case"regexp":return"a "+R;default:return R}}function ge(L){return!L.constructor||!L.constructor.name?y:L.constructor.name}return h.checkPropTypes=o,h.resetWarningCache=o.resetWarningCache,h.PropTypes=h,h},fr}var pr,vo;function Ha(){if(vo)return pr;vo=1;var e=Wr();function t(){}function n(){}return n.resetWarningCache=t,pr=function(){function r(a,c,u,d,m,g){if(g!==e){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},pr}var xo;function Ka(){if(xo)return yn.exports;if(xo=1,process.env.NODE_ENV!=="production"){var e=Ms(),t=!0;yn.exports=Za()(e.isElement,t)}else yn.exports=Ha()();return yn.exports}var Ga=Ka();const s=Fa(Ga),Ds=({ambit:e,onClickCopy:t,onClickDelete:n,onClickFilters:r,onClickAmbit:o,isActive:i,activeColor:a,fontColor:c,moreInfo:u})=>{const{name:d,created_at:m,id:g,isBeingProcessed:y}=e;return l.jsxs("div",{className:Yt.ambitItem,style:{borderBottom:`1px solid ${c}`},children:[l.jsxs("div",{className:Yt.ambitNameDate,onClick:()=>o(g),children:[l.jsxs("div",{className:Yt.ambitName,children:[l.jsx("img",{style:{marginRight:9},src:i?Va:Pa}),l.jsx("span",{style:{color:i?a:c},children:d})]}),l.jsx("div",{className:Yt.ambitDate,children:m?new Date(m).toLocaleDateString():""})]}),l.jsxs("div",{className:Yt.ambitButtons,children:[y&&l.jsx("img",{src:Ba}),l.jsx("button",{onClick:()=>r(g),disabled:e.is_default,children:l.jsx("img",{src:Ia})}),l.jsx("button",{onClick:()=>t(g),children:l.jsx("img",{src:Da})}),l.jsx("button",{onClick:()=>n(g),disabled:e.is_default,children:l.jsx("img",{src:Ra})})]})]})};Ds.propTypes={ambit:s.shape({name:s.string.isRequired,created_at:s.string,id:s.string.isRequired,isBeingProcessed:s.bool}).isRequired,onClickCopy:s.func.isRequired,onClickDelete:s.func.isRequired,onClickFilters:s.func.isRequired,onClickAmbit:s.func.isRequired,isBeingProcessed:s.bool,isActive:s.bool,activeColor:s.string,fontColor:s.string,moreInfo:s.object};const Co="data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector'%20d='M7%2015L7%201M7%2015L1%209M7%2015L13%209'%20stroke='%23605B56'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Ya="_generalButton_phq4n_2",Xa={generalButton:Ya},un=({children:e,onClick:t,fontColor:n="#605B56",borderColor:r="#605B56",backgroundColor:o="#fff",type:i="button",containerStyles:a={},disabled:c=!1})=>l.jsx("button",{className:Xa.generalButton,style:{color:n,border:`1.5px solid ${r}`,background:o,...a},onClick:t,type:i,disabled:c,children:e}),Is=({ambitList:e,activeAmbitId:t,fontColor:n="#605B56",activeColor:r,nameLabel:o,dateLabel:i,newAmbitLabel:a="New field",buttonContainerStyles:c={},containerStyles:u={},onCLickNewAmbit:d=()=>console.log("New ambit clicked"),onClickCopy:m=b=>console.log(`Copy ambit: ${b}`),onCLickDelete:g=b=>console.log(`Delete ambit: ${b}`),onClickFilters:y=b=>console.log(`Filters clicked: ${b}`),onClickAmbit:h=b=>console.log(`OnCLickAmbit: ${b}`)})=>{const{t:b}=oe.useTranslation(),[f,x]=S.useState(e);S.useEffect(()=>{e&&x(e)},[e]);const _=w=>{if(f&&f.length>0){let E=[...f];E.sort((C,v)=>C[w].localeCompare(v[w])),x(E)}};return l.jsxs("div",{className:ut.ambitSelector,style:{color:n,...u},children:[l.jsxs("div",{className:ut.header,style:{borderBottom:`1px solid ${n}`},children:[l.jsxs("div",{className:ut.nameDateContainer,children:[l.jsx("div",{className:ut.ambitName,children:l.jsxs("button",{onClick:()=>_("name"),children:[l.jsx("span",{children:b(o)}),l.jsx("img",{src:Co})]})}),l.jsx("div",{className:ut.ambitDate,children:l.jsxs("button",{onClick:()=>_("date"),children:[l.jsx("span",{children:b(i)}),l.jsx("img",{src:Co})]})})]}),l.jsx("div",{className:ut.buttonsContainer})]}),l.jsx("div",{className:ut.ambitListContainer,children:f&&f.length>0&&f.map(w=>l.jsx(Ds,{isActive:t==w.id,ambit:w,fontColor:n,activeColor:r,onClickCopy:m,onClickDelete:g,onClickFilters:y,onClickAmbit:h},`ambitKey${w.id}`))}),l.jsx("div",{className:ut.newAmbitButtonContainer,children:l.jsx(un,{style:{...c},onClick:d,borderColor:"grey",children:b(a)})})]})};Is.propTypes={ambitList:s.arrayOf(s.shape({name:s.string.isRequired,date:s.string.isRequired,id:s.string.isRequired})).isRequired,activeAmbitId:s.string,fontColor:s.string,activeColor:s.string,onClickCopy:s.func.isRequired,onCLickDelete:s.func.isRequired,onClickFilters:s.func.isRequired,onClickAmbit:s.func.isRequired,nameLabel:s.string,dateLabel:s.string,newAmbitLabel:s.string,buttonContainerStyles:s.object,containerStyles:s.object,onCLickNewAmbit:s.func};const Qa="_buttonsContainer_1ks7x_2",Ja="_vertical_1ks7x_6",el="_horizontal_1ks7x_9",tl="_button_1ks7x_2",nl="_active_1ks7x_25",rl="_buttonName_1ks7x_28",vt={buttonsContainer:Qa,vertical:Ja,horizontal:el,button:tl,active:nl,buttonName:rl},ol="_left_1l4m4_2",sl="_top_1l4m4_40",il="_bottom_1l4m4_79",al="_right_1l4m4_118",ll={left:ol,top:sl,bottom:il,right:al},Je=({text:e,position:t,styleCustom:n=null})=>{const{t:r}=oe.useTranslation();return l.jsx("div",{className:`tooltip ${ll[t]}`,style:n,children:r(e)})};Je.propTypes={text:s.string.isRequired,position:s.oneOf(["top","bottom","left","right"]).isRequired,styleCustom:s.object};const Bs=({buttons:e=[],orientation:t="horizontal",showName:n=!0,namePosition:r="right",useTooltip:o=!1,tooltipPosition:i="top"})=>{const{t:a}=oe.useTranslation();return l.jsx("div",{className:`${vt.buttonsContainer} ${t==="vertical"&&vt.vertical}
20
+ */var lr,mo;function Wa(){if(mo)return lr;mo=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(a).map(function(m){return a[m]});if(u.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(m){d[m]=m}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return lr=o()?Object.assign:function(i,a){for(var c,u=r(i),d,m=1;m<arguments.length;m++){c=Object(arguments[m]);for(var g in c)t.call(c,g)&&(u[g]=c[g]);if(e){d=e(c);for(var y=0;y<d.length;y++)n.call(c,d[y])&&(u[d[y]]=c[d[y]])}}return u},lr}var cr,ho;function Wr(){if(ho)return cr;ho=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return cr=e,cr}var ur,go;function Rs(){return go||(go=1,ur=Function.call.bind(Object.prototype.hasOwnProperty)),ur}var dr,yo;function Ua(){if(yo)return dr;yo=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Wr(),n={},r=Rs();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,c,u,d){if(process.env.NODE_ENV!=="production"){for(var m in i)if(r(i,m)){var g;try{if(typeof i[m]!="function"){var y=Error((u||"React class")+": "+c+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}g=i[m](a,m,u,c,null,t)}catch(b){g=b}if(g&&!(g instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in n)){n[g.message]=!0;var h=d?d():"";e("Failed "+c+" type: "+g.message+(h??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},dr=o,dr}var fr,bo;function Za(){if(bo)return fr;bo=1;var e=Ms(),t=Wa(),n=Wr(),r=Rs(),o=Ua(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return fr=function(c,u){var d=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function g(L){var M=L&&(d&&L[d]||L[m]);if(typeof M=="function")return M}var y="<<anonymous>>",h={array:_("array"),bigint:_("bigint"),bool:_("boolean"),func:_("function"),number:_("number"),object:_("object"),string:_("string"),symbol:_("symbol"),any:S(),arrayOf:E,element:C(),elementType:v(),instanceOf:T,node:P(),objectOf:k,oneOf:A,oneOfType:$,shape:p,exact:N};function b(L,M){return L===M?L!==0||1/L===1/M:L!==L&&M!==M}function f(L,M){this.message=L,this.data=M&&typeof M=="object"?M:{},this.stack=""}f.prototype=Error.prototype;function x(L){if(process.env.NODE_ENV!=="production")var M={},H=0;function J(K,re,ne,oe,ee,G,be){if(oe=oe||y,G=G||ne,be!==n){if(u){var z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw z.name="Invariant Violation",z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var le=oe+":"+ne;!M[le]&&H<3&&(i("You are manually calling a React.PropTypes validation function for the `"+G+"` prop on `"+oe+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),M[le]=!0,H++)}}return re[ne]==null?K?re[ne]===null?new f("The "+ee+" `"+G+"` is marked as required "+("in `"+oe+"`, but its value is `null`.")):new f("The "+ee+" `"+G+"` is marked as required in "+("`"+oe+"`, but its value is `undefined`.")):null:L(re,ne,oe,ee,G)}var F=J.bind(null,!1);return F.isRequired=J.bind(null,!0),F}function _(L){function M(H,J,F,K,re,ne){var oe=H[J],ee=W(oe);if(ee!==L){var G=D(oe);return new f("Invalid "+K+" `"+re+"` of type "+("`"+G+"` supplied to `"+F+"`, expected ")+("`"+L+"`."),{expectedType:L})}return null}return x(M)}function S(){return x(a)}function E(L){function M(H,J,F,K,re){if(typeof L!="function")return new f("Property `"+re+"` of component `"+F+"` has invalid PropType notation inside arrayOf.");var ne=H[J];if(!Array.isArray(ne)){var oe=W(ne);return new f("Invalid "+K+" `"+re+"` of type "+("`"+oe+"` supplied to `"+F+"`, expected an array."))}for(var ee=0;ee<ne.length;ee++){var G=L(ne,ee,F,K,re+"["+ee+"]",n);if(G instanceof Error)return G}return null}return x(M)}function C(){function L(M,H,J,F,K){var re=M[H];if(!c(re)){var ne=W(re);return new f("Invalid "+F+" `"+K+"` of type "+("`"+ne+"` supplied to `"+J+"`, expected a single ReactElement."))}return null}return x(L)}function v(){function L(M,H,J,F,K){var re=M[H];if(!e.isValidElementType(re)){var ne=W(re);return new f("Invalid "+F+" `"+K+"` of type "+("`"+ne+"` supplied to `"+J+"`, expected a single ReactElement type."))}return null}return x(L)}function T(L){function M(H,J,F,K,re){if(!(H[J]instanceof L)){var ne=L.name||y,oe=te(H[J]);return new f("Invalid "+K+" `"+re+"` of type "+("`"+oe+"` supplied to `"+F+"`, expected ")+("instance of `"+ne+"`."))}return null}return x(M)}function A(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function M(H,J,F,K,re){for(var ne=H[J],oe=0;oe<L.length;oe++)if(b(ne,L[oe]))return null;var ee=JSON.stringify(L,function(be,z){var le=D(z);return le==="symbol"?String(z):z});return new f("Invalid "+K+" `"+re+"` of value `"+String(ne)+"` "+("supplied to `"+F+"`, expected one of "+ee+"."))}return x(M)}function k(L){function M(H,J,F,K,re){if(typeof L!="function")return new f("Property `"+re+"` of component `"+F+"` has invalid PropType notation inside objectOf.");var ne=H[J],oe=W(ne);if(oe!=="object")return new f("Invalid "+K+" `"+re+"` of type "+("`"+oe+"` supplied to `"+F+"`, expected an object."));for(var ee in ne)if(r(ne,ee)){var G=L(ne,ee,F,K,re+"."+ee,n);if(G instanceof Error)return G}return null}return x(M)}function $(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var M=0;M<L.length;M++){var H=L[M];if(typeof H!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+q(H)+" at index "+M+"."),a}function J(F,K,re,ne,oe){for(var ee=[],G=0;G<L.length;G++){var be=L[G],z=be(F,K,re,ne,oe,n);if(z==null)return null;z.data&&r(z.data,"expectedType")&&ee.push(z.data.expectedType)}var le=ee.length>0?", expected one of type ["+ee.join(", ")+"]":"";return new f("Invalid "+ne+" `"+oe+"` supplied to "+("`"+re+"`"+le+"."))}return x(J)}function P(){function L(M,H,J,F,K){return j(M[H])?null:new f("Invalid "+F+" `"+K+"` supplied to "+("`"+J+"`, expected a ReactNode."))}return x(L)}function I(L,M,H,J,F){return new f((L||"React class")+": "+M+" type `"+H+"."+J+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+F+"`.")}function p(L){function M(H,J,F,K,re){var ne=H[J],oe=W(ne);if(oe!=="object")return new f("Invalid "+K+" `"+re+"` of type `"+oe+"` "+("supplied to `"+F+"`, expected `object`."));for(var ee in L){var G=L[ee];if(typeof G!="function")return I(F,K,re,ee,D(G));var be=G(ne,ee,F,K,re+"."+ee,n);if(be)return be}return null}return x(M)}function N(L){function M(H,J,F,K,re){var ne=H[J],oe=W(ne);if(oe!=="object")return new f("Invalid "+K+" `"+re+"` of type `"+oe+"` "+("supplied to `"+F+"`, expected `object`."));var ee=t({},H[J],L);for(var G in ee){var be=L[G];if(r(L,G)&&typeof be!="function")return I(F,K,re,G,D(be));if(!be)return new f("Invalid "+K+" `"+re+"` key `"+G+"` supplied to `"+F+"`.\nBad object: "+JSON.stringify(H[J],null," ")+`
21
+ Valid keys: `+JSON.stringify(Object.keys(L),null," "));var z=be(ne,G,F,K,re+"."+G,n);if(z)return z}return null}return x(M)}function j(L){switch(typeof L){case"number":case"string":case"undefined":return!0;case"boolean":return!L;case"object":if(Array.isArray(L))return L.every(j);if(L===null||c(L))return!0;var M=g(L);if(M){var H=M.call(L),J;if(M!==L.entries){for(;!(J=H.next()).done;)if(!j(J.value))return!1}else for(;!(J=H.next()).done;){var F=J.value;if(F&&!j(F[1]))return!1}}else return!1;return!0;default:return!1}}function V(L,M){return L==="symbol"?!0:M?M["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&M instanceof Symbol:!1}function W(L){var M=typeof L;return Array.isArray(L)?"array":L instanceof RegExp?"object":V(M,L)?"symbol":M}function D(L){if(typeof L>"u"||L===null)return""+L;var M=W(L);if(M==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return M}function q(L){var M=D(L);switch(M){case"array":case"object":return"an "+M;case"boolean":case"date":case"regexp":return"a "+M;default:return M}}function te(L){return!L.constructor||!L.constructor.name?y:L.constructor.name}return h.checkPropTypes=o,h.resetWarningCache=o.resetWarningCache,h.PropTypes=h,h},fr}var pr,vo;function Ha(){if(vo)return pr;vo=1;var e=Wr();function t(){}function n(){}return n.resetWarningCache=t,pr=function(){function r(a,c,u,d,m,g){if(g!==e){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},pr}var xo;function Ka(){if(xo)return yn.exports;if(xo=1,process.env.NODE_ENV!=="production"){var e=Ms(),t=!0;yn.exports=Za()(e.isElement,t)}else yn.exports=Ha()();return yn.exports}var Ga=Ka();const s=Fa(Ga),Is=({ambit:e,onClickCopy:t,onClickDelete:n,onClickFilters:r,onClickAmbit:o,isActive:i,activeColor:a,fontColor:c,moreInfo:u})=>{const{name:d,created_at:m,id:g,isBeingProcessed:y}=e;return l.jsxs("div",{className:Yt.ambitItem,style:{borderBottom:`1px solid ${c}`},children:[l.jsxs("div",{className:Yt.ambitNameDate,onClick:()=>o(g),children:[l.jsxs("div",{className:Yt.ambitName,children:[l.jsx("img",{style:{marginRight:9},src:i?Pa:Va}),l.jsx("span",{style:{color:i?a:c},children:d})]}),l.jsx("div",{className:Yt.ambitDate,children:m?new Date(m).toLocaleDateString():""})]}),l.jsxs("div",{className:Yt.ambitButtons,children:[y&&l.jsx("img",{src:Ba}),l.jsx("button",{onClick:()=>r(g),disabled:e.is_default,children:l.jsx("img",{src:Da})}),l.jsx("button",{onClick:()=>t(g),children:l.jsx("img",{src:Ia})}),l.jsx("button",{onClick:()=>n(g),disabled:e.is_default,children:l.jsx("img",{src:Ra})})]})]})};Is.propTypes={ambit:s.shape({name:s.string.isRequired,created_at:s.string,id:s.string.isRequired,isBeingProcessed:s.bool}).isRequired,onClickCopy:s.func.isRequired,onClickDelete:s.func.isRequired,onClickFilters:s.func.isRequired,onClickAmbit:s.func.isRequired,isBeingProcessed:s.bool,isActive:s.bool,activeColor:s.string,fontColor:s.string,moreInfo:s.object};const Co="data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector'%20d='M7%2015L7%201M7%2015L1%209M7%2015L13%209'%20stroke='%23605B56'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Ya="_generalButton_phq4n_2",Xa={generalButton:Ya},un=({children:e,onClick:t,fontColor:n="#605B56",borderColor:r="#605B56",backgroundColor:o="#fff",type:i="button",containerStyles:a={},disabled:c=!1})=>l.jsx("button",{className:Xa.generalButton,style:{color:n,border:`1.5px solid ${r}`,background:o,...a},onClick:t,type:i,disabled:c,children:e}),Ds=({ambitList:e,activeAmbitId:t,fontColor:n="#605B56",activeColor:r,nameLabel:o,dateLabel:i,newAmbitLabel:a="New field",buttonContainerStyles:c={},containerStyles:u={},onCLickNewAmbit:d=()=>console.log("New ambit clicked"),onClickCopy:m=b=>console.log(`Copy ambit: ${b}`),onCLickDelete:g=b=>console.log(`Delete ambit: ${b}`),onClickFilters:y=b=>console.log(`Filters clicked: ${b}`),onClickAmbit:h=b=>console.log(`OnCLickAmbit: ${b}`)})=>{const{t:b}=se.useTranslation(),[f,x]=w.useState(e);w.useEffect(()=>{e&&x(e)},[e]);const _=S=>{if(f&&f.length>0){let E=[...f];E.sort((C,v)=>C[S].localeCompare(v[S])),x(E)}};return l.jsxs("div",{className:ut.ambitSelector,style:{color:n,...u},children:[l.jsxs("div",{className:ut.header,style:{borderBottom:`1px solid ${n}`},children:[l.jsxs("div",{className:ut.nameDateContainer,children:[l.jsx("div",{className:ut.ambitName,children:l.jsxs("button",{onClick:()=>_("name"),children:[l.jsx("span",{children:b(o)}),l.jsx("img",{src:Co})]})}),l.jsx("div",{className:ut.ambitDate,children:l.jsxs("button",{onClick:()=>_("date"),children:[l.jsx("span",{children:b(i)}),l.jsx("img",{src:Co})]})})]}),l.jsx("div",{className:ut.buttonsContainer})]}),l.jsx("div",{className:ut.ambitListContainer,children:f&&f.length>0&&f.map(S=>l.jsx(Is,{isActive:t==S.id,ambit:S,fontColor:n,activeColor:r,onClickCopy:m,onClickDelete:g,onClickFilters:y,onClickAmbit:h},`ambitKey${S.id}`))}),l.jsx("div",{className:ut.newAmbitButtonContainer,children:l.jsx(un,{style:{...c},onClick:d,borderColor:"grey",children:b(a)})})]})};Ds.propTypes={ambitList:s.arrayOf(s.shape({name:s.string.isRequired,date:s.string.isRequired,id:s.string.isRequired})).isRequired,activeAmbitId:s.string,fontColor:s.string,activeColor:s.string,onClickCopy:s.func.isRequired,onCLickDelete:s.func.isRequired,onClickFilters:s.func.isRequired,onClickAmbit:s.func.isRequired,nameLabel:s.string,dateLabel:s.string,newAmbitLabel:s.string,buttonContainerStyles:s.object,containerStyles:s.object,onCLickNewAmbit:s.func};const Qa="_buttonsContainer_1ks7x_2",Ja="_vertical_1ks7x_6",el="_horizontal_1ks7x_9",tl="_button_1ks7x_2",nl="_active_1ks7x_25",rl="_buttonName_1ks7x_28",vt={buttonsContainer:Qa,vertical:Ja,horizontal:el,button:tl,active:nl,buttonName:rl},ol="_left_1l4m4_2",sl="_top_1l4m4_40",il="_bottom_1l4m4_79",al="_right_1l4m4_118",ll={left:ol,top:sl,bottom:il,right:al},Je=({text:e,position:t,styleCustom:n=null})=>{const{t:r}=se.useTranslation();return l.jsx("div",{className:`tooltip ${ll[t]}`,style:n,children:r(e)})};Je.propTypes={text:s.string.isRequired,position:s.oneOf(["top","bottom","left","right"]).isRequired,styleCustom:s.object};const Bs=({buttons:e=[],orientation:t="horizontal",showName:n=!0,namePosition:r="right",useTooltip:o=!1,tooltipPosition:i="top"})=>{const{t:a}=se.useTranslation();return l.jsx("div",{className:`${vt.buttonsContainer} ${t==="vertical"&&vt.vertical}
22
22
  ${t==="horizontal"&&vt.horizontal}`,children:e.map((c,u)=>{const{icon:d,activeIcon:m,isActive:g,name:y,onClick:h,disabled:b}=c,f=l.jsxs(l.Fragment,{children:[n&&r==="left"&&l.jsx("span",{className:vt.buttonName,children:a(y)}),l.jsx("img",{src:g?m:d,alt:a(y)}),n&&r==="right"&&l.jsx("span",{className:vt.buttonName,children:a(y)})]});return l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:h,className:`${vt.button}
23
- ${g&&vt.active}`,disabled:b,children:f}),o&&l.jsx(Je,{text:y,position:i})]},u)})})};Bs.propTypes={buttons:s.arrayOf(s.shape({icon:s.node.isRequired,activeIcon:s.node,isActive:s.bool,name:s.string,onClick:s.func,disabled:s.bool})).isRequired,orientation:s.oneOf(["horizontal","vertical"]),showName:s.bool,namePosition:s.oneOf(["left","right"]),useTooltip:s.bool,tooltipPosition:s.oneOf(["top","bottom","left","right"])};const cl="_indicatorsCategory_11gdl_2",ul="_title_11gdl_6",dl="_mainTitle_11gdl_14",vn={indicatorsCategory:cl,title:ul,mainTitle:dl},yt=({isOpen:e,onClick:t,children:n,color:r,activeColor:o="#F8A925",title:i="Title",height:a=53,titleFontStyles:c,showBottomBar:u=!0,titleMarginChildren:d=15,mainTitle:m=!1})=>{const{t:g}=oe.useTranslation();return l.jsxs(zr.motion.div,{className:vn.indicatorsCategory,initial:{height:`${a}px`},animate:{height:e?"auto":`${a}px`},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:e&&u?`1px solid ${o}`:"0px",minHeight:m?"70px":"50px"},children:[l.jsxs("h2",{style:{...c},className:`${vn.title} ${m&&vn.mainTitle}`,onClick:t,children:[l.jsx("span",{style:{color:e?o:r},children:e?"-":"+"}),l.jsx("span",{style:{color:e?o:r},children:g(i)})]}),l.jsx("div",{className:vn.content,style:{padding:m?"20px 0px":"0px"},children:n})]})};yt.propTypes={isOpen:s.bool,onClick:s.func,children:s.node,color:s.string,activeColor:s.string,title:s.string,height:s.number,showBottomBar:s.bool,titleFontStyles:s.object};const fl=()=>l.jsx("div",{children:"EditAmbit"}),pl="data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2015%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1%201L13.9996%2013.9996'%20stroke='%23FDFDFD'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20d='M14%201L1.00044%2013.9996'%20stroke='%23FDFDFD'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e",ml="_AppliedFiltersContainer_cokx9_2",hl="_AppliedFilterContent_cokx9_11",_o={AppliedFiltersContainer:ml,AppliedFilterContent:hl},ye=qr.create(e=>({activeCategory:"",activeSubCategory:"",selectedIndicator:"",tematicalFiltersSelected:[],fontColor:"#605B56",inputsColor:"#605B56",activeFiltersType:null})),Vs=({title:e,onClick:t,isOpen:n=!0,textColor:r="#ffffff",backgroundColor:o="#605B5680",activeColor:i,fontColor:a="#605B56"})=>{const{t:c}=oe.useTranslation(),{tematicalFiltersSelected:u,activeFiltersType:d}=ye(y=>y),m=y=>{ye.setState(h=>({tematicalFiltersSelected:h.tematicalFiltersSelected.filter(b=>b.code!==y)}))},g=()=>{d=="applied"?ye.setState(()=>({activeFiltersType:null})):ye.setState(()=>({activeFiltersType:"applied"}))};return l.jsx(yt,{isOpen:n,onClick:g,title:e?c(e):"Applied Filters",activeColor:i,mainTitle:!0,color:a,children:l.jsx("div",{className:_o.AppliedFiltersContainer,children:u==null?void 0:u.map((y,h)=>l.jsxs("div",{className:_o.AppliedFilterContent,style:{color:r,background:o},children:[c(y.name),l.jsx("img",{src:pl,alt:"CloseIcon",onClick:()=>m(y.code),style:{cursor:"pointer"}})]},h))})})};Vs.propTypes={isOpen:s.bool,onClick:s.func,title:s.string,textColor:s.string,backgroundColor:s.string,indicators:s.arrayOf(s.shape({title:s.string.isRequired,Codename:s.string.isRequired})),activeColor:s.string};const gl="_layersList_cn837_25",yl="_layerName_cn837_34",wo={layersList:gl,layerName:yl},Ps=({title:e,isOpen:t=!0,fontColor:n="#605B56",backgroundColor:r="#605B5680",activeColor:o,geoLayers:i=[],onGeoLayersChange:a})=>{const{t:c}=oe.useTranslation(),{activeFiltersType:u}=ye(g=>g),d=()=>{u==="geographical"?ye.setState({activeFiltersType:null}):ye.setState({activeFiltersType:"geographical"})},m=g=>{const y=i.map(h=>({...h,active:h.name===g.name}));a==null||a(y)};return l.jsx(yt,{isOpen:u==="geographical",onClick:d,title:e?c(e):"Geographical Filters",activeColor:o,color:n,mainTitle:!0,children:l.jsx("div",{className:wo.layersList,children:i.map(g=>l.jsx("div",{className:wo.layerName,style:{color:g.active?o:n,fontWeight:g.active?"bold":"normal"},onClick:()=>m(g),children:c(g.name)},g.name))})})};Ps.propTypes={isOpen:s.bool,onClick:s.func,title:s.string,textColor:s.string,backgroundColor:s.string,activeColor:s.string};const bl="_checkboxContainer_1nxra_2",vl={checkboxContainer:bl},Fs=({onClick:e,containerStyles:t,color:n="#605B56",indicator:r,value:o})=>{const{t:i}=oe.useTranslation(),{title:a}=r||{},{fontColor:c,inputsColor:u}=ye(d=>d);return l.jsxs("div",{style:{...t,color:n},role:"checkbox",className:vl.checkboxContainer,onClick:e,children:[l.jsx("input",{type:"checkbox",checked:typeof o=="boolean"?o:!0,value:o,readOnly:!0,style:{border:`1.5px solid ${o?u:c}`,backgroundColor:o?u:"white"}}),l.jsx("span",{className:"checkmark",children:i(a)})]})};Fs.propTypes={onClick:s.func,value:s.bool,containerStyles:s.object,color:s.string,indicator:s.shape({title:s.string,codename:s.array}),checkedColor:s.string};function $r(e,t){return $r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},$r(e,t)}function xl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$r(e,t)}function mr(e){return e&&e.stopPropagation&&e.stopPropagation(),e&&e.preventDefault&&e.preventDefault(),!1}function hr(e){return e==null?[]:Array.isArray(e)?e.slice():[e]}function xn(e){return e!==null&&e.length===1?e[0]:e.slice()}function Cn(e){Object.keys(e).forEach(t=>{typeof document<"u"&&document.addEventListener(t,e[t],!1)})}function xt(e,t){return Er(function(n,r){let o=n;return o<=r.min&&(o=r.min),o>=r.max&&(o=r.max),o}(e,t),t)}function Er(e,t){const n=(e-t.min)%t.step;let r=e-n;return 2*Math.abs(n)>=t.step&&(r+=n>0?t.step:-t.step),parseFloat(r.toFixed(5))}let Nr=function(e){function t(r){var o;(o=e.call(this,r)||this).onKeyUp=()=>{o.onEnd()},o.onMouseUp=()=>{o.onEnd(o.getMouseEventMap())},o.onTouchEnd=c=>{c.preventDefault(),o.onEnd(o.getTouchEventMap())},o.onBlur=()=>{o.setState({index:-1},o.onEnd(o.getKeyDownEventMap()))},o.onMouseMove=c=>{o.setState({pending:!0});const u=o.getMousePosition(c),d=o.getDiffPosition(u[0]),m=o.getValueFromPosition(d);o.move(m)},o.onTouchMove=c=>{if(c.touches.length>1)return;o.setState({pending:!0});const u=o.getTouchPosition(c);if(o.isScrolling===void 0){const g=u[0]-o.startPosition[0],y=u[1]-o.startPosition[1];o.isScrolling=Math.abs(y)>Math.abs(g)}if(o.isScrolling)return void o.setState({index:-1});const d=o.getDiffPosition(u[0]),m=o.getValueFromPosition(d);o.move(m)},o.onKeyDown=c=>{if(!(c.ctrlKey||c.shiftKey||c.altKey||c.metaKey))switch(o.setState({pending:!0}),c.key){case"ArrowLeft":case"ArrowDown":case"Left":case"Down":c.preventDefault(),o.moveDownByStep();break;case"ArrowRight":case"ArrowUp":case"Right":case"Up":c.preventDefault(),o.moveUpByStep();break;case"Home":c.preventDefault(),o.move(o.props.min);break;case"End":c.preventDefault(),o.move(o.props.max);break;case"PageDown":c.preventDefault(),o.moveDownByStep(o.props.pageFn(o.props.step));break;case"PageUp":c.preventDefault(),o.moveUpByStep(o.props.pageFn(o.props.step))}},o.onSliderMouseDown=c=>{if(!o.props.disabled&&c.button!==2){if(o.setState({pending:!0}),!o.props.snapDragDisabled){const u=o.getMousePosition(c);o.forceValueFromPosition(u[0],d=>{o.start(d,u[0]),Cn(o.getMouseEventMap())})}mr(c)}},o.onSliderClick=c=>{if(!o.props.disabled&&o.props.onSliderClick&&!o.hasMoved){const u=o.getMousePosition(c),d=xt(o.calcValue(o.calcOffsetFromPosition(u[0])),o.props);o.props.onSliderClick(d)}},o.createOnKeyDown=c=>u=>{o.props.disabled||(o.start(c),Cn(o.getKeyDownEventMap()),mr(u))},o.createOnMouseDown=c=>u=>{if(o.props.disabled||u.button===2)return;o.setState({pending:!0});const d=o.getMousePosition(u);o.start(c,d[0]),Cn(o.getMouseEventMap()),mr(u)},o.createOnTouchStart=c=>u=>{if(o.props.disabled||u.touches.length>1)return;o.setState({pending:!0});const d=o.getTouchPosition(u);o.startPosition=d,o.isScrolling=void 0,o.start(c,d[0]),Cn(o.getTouchEventMap()),function(m){m.stopPropagation&&m.stopPropagation()}(u)},o.handleResize=()=>{const c=window.setTimeout(()=>{o.pendingResizeTimeouts.shift(),o.resize()},0);o.pendingResizeTimeouts.push(c)},o.renderThumb=(c,u)=>{const d=o.props.thumbClassName+" "+o.props.thumbClassName+"-"+u+" "+(o.state.index===u?o.props.thumbActiveClassName:""),m={ref:y=>{o["thumb"+u]=y},key:o.props.thumbClassName+"-"+u,className:d,style:c,onMouseDown:o.createOnMouseDown(u),onTouchStart:o.createOnTouchStart(u),onFocus:o.createOnKeyDown(u),tabIndex:0,role:"slider","aria-orientation":o.props.orientation,"aria-valuenow":o.state.value[u],"aria-valuemin":o.props.min,"aria-valuemax":o.props.max,"aria-label":Array.isArray(o.props.ariaLabel)?o.props.ariaLabel[u]:o.props.ariaLabel,"aria-labelledby":Array.isArray(o.props.ariaLabelledby)?o.props.ariaLabelledby[u]:o.props.ariaLabelledby,"aria-disabled":o.props.disabled},g={index:u,value:xn(o.state.value),valueNow:o.state.value[u]};return o.props.ariaValuetext&&(m["aria-valuetext"]=typeof o.props.ariaValuetext=="string"?o.props.ariaValuetext:o.props.ariaValuetext(g)),o.props.renderThumb(m,g)},o.renderTrack=(c,u,d)=>{const m={key:o.props.trackClassName+"-"+c,className:o.props.trackClassName+" "+o.props.trackClassName+"-"+c,style:o.buildTrackStyle(u,o.state.upperBound-d)},g={index:c,value:xn(o.state.value)};return o.props.renderTrack(m,g)};let i=hr(r.value);i.length||(i=hr(r.defaultValue)),o.pendingResizeTimeouts=[];const a=[];for(let c=0;c<i.length;c+=1)i[c]=xt(i[c],r),a.push(c);return o.resizeObserver=null,o.resizeElementRef=S.createRef(),o.state={index:-1,upperBound:0,sliderLength:0,value:i,zIndices:a},o}xl(t,e);var n=t.prototype;return n.componentDidMount=function(){typeof window<"u"&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.resizeElementRef.current),this.resize())},t.getDerivedStateFromProps=function(r,o){const i=hr(r.value);return i.length?o.pending?null:{value:i.map(a=>xt(a,r))}:null},n.componentDidUpdate=function(){this.state.upperBound===0&&this.resize()},n.componentWillUnmount=function(){this.clearPendingResizeTimeouts(),this.resizeObserver&&this.resizeObserver.disconnect()},n.onEnd=function(r){r&&function(o){Object.keys(o).forEach(i=>{typeof document<"u"&&document.removeEventListener(i,o[i],!1)})}(r),this.hasMoved&&this.fireChangeEvent("onAfterChange"),this.setState({pending:!1}),this.hasMoved=!1},n.getValue=function(){return xn(this.state.value)},n.getClosestIndex=function(r){let o=Number.MAX_VALUE,i=-1;const{value:a}=this.state,c=a.length;for(let u=0;u<c;u+=1){const d=this.calcOffset(a[u]),m=Math.abs(r-d);m<o&&(o=m,i=u)}return i},n.getMousePosition=function(r){return[r["page"+this.axisKey()],r["page"+this.orthogonalAxisKey()]]},n.getTouchPosition=function(r){const o=r.touches[0];return[o["page"+this.axisKey()],o["page"+this.orthogonalAxisKey()]]},n.getKeyDownEventMap=function(){return{keydown:this.onKeyDown,keyup:this.onKeyUp,focusout:this.onBlur}},n.getMouseEventMap=function(){return{mousemove:this.onMouseMove,mouseup:this.onMouseUp}},n.getTouchEventMap=function(){return{touchmove:this.onTouchMove,touchend:this.onTouchEnd}},n.getValueFromPosition=function(r){const o=r/(this.state.sliderLength-this.state.thumbSize)*(this.props.max-this.props.min);return xt(this.state.startValue+o,this.props)},n.getDiffPosition=function(r){let o=r-this.state.startPosition;return this.props.invert&&(o*=-1),o},n.resize=function(){const{slider:r,thumb0:o}=this;if(!r||!o)return;const i=this.sizeKey(),a=r.getBoundingClientRect(),c=r[i],u=a[this.posMaxKey()],d=a[this.posMinKey()],m=o.getBoundingClientRect()[i.replace("client","").toLowerCase()],g=c-m,y=Math.abs(u-d);this.state.upperBound===g&&this.state.sliderLength===y&&this.state.thumbSize===m||this.setState({upperBound:g,sliderLength:y,thumbSize:m})},n.calcOffset=function(r){const o=this.props.max-this.props.min;return o===0?0:(r-this.props.min)/o*this.state.upperBound},n.calcValue=function(r){return r/this.state.upperBound*(this.props.max-this.props.min)+this.props.min},n.calcOffsetFromPosition=function(r){const{slider:o}=this,i=o.getBoundingClientRect(),a=i[this.posMaxKey()],c=i[this.posMinKey()];let u=r-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?a:c));return this.props.invert&&(u=this.state.sliderLength-u),u-=this.state.thumbSize/2,u},n.forceValueFromPosition=function(r,o){const i=this.calcOffsetFromPosition(r),a=this.getClosestIndex(i),c=xt(this.calcValue(i),this.props),u=this.state.value.slice();u[a]=c;for(let d=0;d<u.length-1;d+=1)if(u[d+1]-u[d]<this.props.minDistance)return;this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0,this.setState({value:u},()=>{o(a),this.fireChangeEvent("onChange")})},n.clearPendingResizeTimeouts=function(){do{const r=this.pendingResizeTimeouts.shift();clearTimeout(r)}while(this.pendingResizeTimeouts.length)},n.start=function(r,o){const i=this["thumb"+r];i&&i.focus();const{zIndices:a}=this.state;a.splice(a.indexOf(r),1),a.push(r),this.setState(c=>({startValue:c.value[r],startPosition:o!==void 0?o:c.startPosition,index:r,zIndices:a}))},n.moveUpByStep=function(r){r===void 0&&(r=this.props.step);const o=this.state.value[this.state.index],i=xt(this.props.invert&&this.props.orientation==="horizontal"?o-r:o+r,this.props);this.move(Math.min(i,this.props.max))},n.moveDownByStep=function(r){r===void 0&&(r=this.props.step);const o=this.state.value[this.state.index],i=xt(this.props.invert&&this.props.orientation==="horizontal"?o+r:o-r,this.props);this.move(Math.max(i,this.props.min))},n.move=function(r){const o=this.state.value.slice(),{index:i}=this.state,{length:a}=o,c=o[i];if(r===c)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;const{pearling:u,max:d,min:m,minDistance:g}=this.props;if(!u){if(i>0){const y=o[i-1];r<y+g&&(r=y+g)}if(i<a-1){const y=o[i+1];r>y-g&&(r=y-g)}}o[i]=r,u&&a>1&&(r>c?(this.pushSucceeding(o,g,i),function(y,h,b,f){for(let x=0;x<y;x+=1){const _=f-x*b;h[y-1-x]>_&&(h[y-1-x]=_)}}(a,o,g,d)):r<c&&(this.pushPreceding(o,g,i),function(y,h,b,f){for(let x=0;x<y;x+=1){const _=f+x*b;h[x]<_&&(h[x]=_)}}(a,o,g,m))),this.setState({value:o},this.fireChangeEvent.bind(this,"onChange"))},n.pushSucceeding=function(r,o,i){let a,c;for(a=i,c=r[a]+o;r[a+1]!==null&&c>r[a+1];a+=1,c=r[a]+o)r[a+1]=Er(c,this.props)},n.pushPreceding=function(r,o,i){for(let a=i,c=r[a]-o;r[a-1]!==null&&c<r[a-1];a-=1,c=r[a]-o)r[a-1]=Er(c,this.props)},n.axisKey=function(){return this.props.orientation==="vertical"?"Y":"X"},n.orthogonalAxisKey=function(){return this.props.orientation==="vertical"?"X":"Y"},n.posMinKey=function(){return this.props.orientation==="vertical"?this.props.invert?"bottom":"top":this.props.invert?"right":"left"},n.posMaxKey=function(){return this.props.orientation==="vertical"?this.props.invert?"top":"bottom":this.props.invert?"left":"right"},n.sizeKey=function(){return this.props.orientation==="vertical"?"clientHeight":"clientWidth"},n.fireChangeEvent=function(r){this.props[r]&&this.props[r](xn(this.state.value),this.state.index)},n.buildThumbStyle=function(r,o){const i={position:"absolute",touchAction:"none",willChange:this.state.index>=0?this.posMinKey():void 0,zIndex:this.state.zIndices.indexOf(o)+1};return i[this.posMinKey()]=r+"px",i},n.buildTrackStyle=function(r,o){const i={position:"absolute",willChange:this.state.index>=0?this.posMinKey()+","+this.posMaxKey():void 0};return i[this.posMinKey()]=r,i[this.posMaxKey()]=o,i},n.buildMarkStyle=function(r){var o;return(o={position:"absolute"})[this.posMinKey()]=r,o},n.renderThumbs=function(r){const{length:o}=r,i=[];for(let c=0;c<o;c+=1)i[c]=this.buildThumbStyle(r[c],c);const a=[];for(let c=0;c<o;c+=1)a[c]=this.renderThumb(i[c],c);return a},n.renderTracks=function(r){const o=[],i=r.length-1;o.push(this.renderTrack(0,0,r[0]));for(let a=0;a<i;a+=1)o.push(this.renderTrack(a+1,r[a],r[a+1]));return o.push(this.renderTrack(i+1,r[i],this.state.upperBound)),o},n.renderMarks=function(){let{marks:r}=this.props;const o=this.props.max-this.props.min+1;return typeof r=="boolean"?r=Array.from({length:o}).map((i,a)=>a):typeof r=="number"&&(r=Array.from({length:o}).map((i,a)=>a).filter(i=>i%r==0)),r.map(parseFloat).sort((i,a)=>i-a).map(i=>{const a=this.calcOffset(i),c={key:i,className:this.props.markClassName,style:this.buildMarkStyle(a)};return this.props.renderMark(c)})},n.render=function(){const r=[],{value:o}=this.state,i=o.length;for(let d=0;d<i;d+=1)r[d]=this.calcOffset(o[d],d);const a=this.props.withTracks?this.renderTracks(r):null,c=this.renderThumbs(r),u=this.props.marks?this.renderMarks():null;return S.createElement("div",{ref:d=>{this.slider=d,this.resizeElementRef.current=d},style:{position:"relative"},className:this.props.className+(this.props.disabled?" disabled":""),onMouseDown:this.onSliderMouseDown,onClick:this.onSliderClick},a,c,u)},t}(S.Component);Nr.displayName="ReactSlider",Nr.defaultProps={min:0,max:100,step:1,pageFn:e=>10*e,minDistance:0,defaultValue:0,orientation:"horizontal",className:"slider",thumbClassName:"thumb",thumbActiveClassName:"active",trackClassName:"track",markClassName:"mark",withTracks:!0,pearling:!1,disabled:!1,snapDragDisabled:!1,invert:!1,marks:[],renderThumb:e=>S.createElement("div",e),renderTrack:e=>S.createElement("div",e),renderMark:e=>S.createElement("span",e)};var Or=Nr;const Cl="_container_4u41i_2",_l="_unitLabel_4u41i_8",wl="_slider_4u41i_11",Sl="_thumb_4u41i_17",Tl="_track_4u41i_26",jl="_labels_4u41i_32",Ot={container:Cl,unitLabel:_l,slider:wl,thumb:Sl,track:Tl,labels:jl},zs=({min:e=0,max:t=100,step:n=1,onChange:r,width:o=300,unit:i,fontColor:a="#605B56",defaultValue:c,isDate:u})=>{const{t:d}=oe.useTranslation(),m=u?new Date(e).getTime():null,g=u?new Date(t).getTime():null,[y,h]=S.useState(u?[m,g]:[e,t]),b=f=>{h(f),r==null||r({min:f[0],max:f[1]})};return S.useEffect(()=>{c||h(u?[m,g]:[e,t])},[c,u]),l.jsxs("div",{className:Ot.container,style:{width:`${o}px`,color:`${a}`},children:[l.jsx("div",{className:Ot.unitLabel,children:l.jsx("span",{children:d(i)})}),l.jsx(Or,{className:Ot.slider,thumbClassName:Ot.thumb,trackClassName:Ot.track,min:u?m:e,max:u?g:t,step:u?(g-m)/30:n,value:y,onAfterChange:b,withTracks:!0,pearling:!u,minDistance:u?0:.1}),l.jsxs("div",{className:Ot.labels,children:[l.jsx("span",{children:u?new Date(y[0]).toLocaleDateString("en-EN",{day:"2-digit",month:"short",year:"numeric"}):y[0]}),l.jsx("span",{children:u?new Date(y[1]).toLocaleDateString("en-EN",{day:"2-digit",month:"short",year:"numeric"}):y[1]})]})]})};zs.propTypes={min:s.number,max:s.number,step:s.number,initialMin:s.number,initialMax:s.number,onChange:s.func,width:s.number,unit:s.string,fontColor:s.string,value:s.arrayOf(s.number)};const kl="_tematicalFiltersInputContainer_1vm1r_2",$l="_inputTypeContainer_1vm1r_2",El="_checkboxContainer_1vm1r_28",Nl="_absoluteSliderContainer_1vm1r_37",_n={tematicalFiltersInputContainer:kl,inputTypeContainer:$l,checkboxContainer:El,absoluteSliderContainer:Nl},Ur=({indicator:e,activeColor:t})=>{const[n,r]=S.useState(),{type:o,name:i,values:a,minValue:c,maxValue:u,unit:d,step:m,disabled:g,isDate:y}=e||{},h=S.useMemo(()=>o=="cat"||n=="cat",[n,o]),b=S.useMemo(()=>o=="abs"||n=="abs",[n,o]),{tematicalFiltersSelected:f,selectedIndicator:x,fontColor:_,inputsColor:w}=ye(v=>v),E=v=>{if(v){const{min:T,max:A,valueClicked:k,allValues:j}=v||{},{code:D,type:M,source:p}=e||{},N=b?"abs":h?"cat":"both";let $=D[0];M=="both"&&($=N=="cat"?D[1]:D[0]),N=="cat"?ye.setState(P=>{let q=P.tematicalFiltersSelected.find(Y=>Y.code===$);if(q){let Y=[q.values];return q.values.includes(k)?Y=q.values.filter(U=>U!==k):Y=[...q.values,k],Y.length==j.length?{tematicalFiltersSelected:P.tematicalFiltersSelected.filter(U=>U.code!==$)}:{tematicalFiltersSelected:P.tematicalFiltersSelected.map(U=>U.code===$?{...U,values:Y}:U)}}else{let Y=(j||[]).map((U,ge)=>ge);return{tematicalFiltersSelected:[...f,{type:"cat",code:$,values:Y.filter(U=>U!==k),name:e.name,source:p,isDate:y}]}}}):N=="abs"&&ye.setState(P=>{let q=P.tematicalFiltersSelected.find(Y=>Y.code===$);if(T==e.minValue&&A==e.maxValue)return{tematicalFiltersSelected:P.tematicalFiltersSelected.filter(Y=>Y.code!==$)};if(q){let Y={...q,min:T,max:A,type:N,isDate:y};return{tematicalFiltersSelected:P.tematicalFiltersSelected.map(U=>U.code===$?Y:U)}}else return{tematicalFiltersSelected:[...f,{type:N,code:$,min:T,max:A,name:e.name,source:e.source}]}})}},C=S.useMemo(()=>{const v={};if((f==null?void 0:f.length)>0)for(const T of f)T.type==="cat"?v[T.code]=new Set(T.values):v[T.code]=[T.min,T.max];return v},[f]);return l.jsx("div",{className:_n.tematicalFiltersInputContainer,children:l.jsxs(yt,{titleFontStyles:{fontSize:16,fontWeight:400,opacity:g?.5:1},title:i,isOpen:x==`id${i}`,onClick:()=>{g||ye.setState(()=>({selectedIndicator:x==`id${i}`?"":`id${i}`}))},showBottomBar:!1,height:42,titleMarginChildren:14,className:"tematicalFiltersInputContainer",color:_,activeColor:t,children:[o=="both"&&l.jsxs("div",{className:_n.inputTypeContainer,style:{color:_},children:[l.jsxs("label",{children:[l.jsx("input",{type:"radio",name:"tipo",value:"abs",onChange:()=>{r("abs")},style:{marginRight:4,backgroundColor:n=="abs"?w:"white",border:`1.5px solid ${n=="abs"?w:_}`}}),"Absoluto"]}),l.jsxs("label",{children:[l.jsx("input",{type:"radio",name:"tipo",value:"cat",onChange:()=>{r("cat")},style:{marginRight:4,backgroundColor:n=="cat"?w:"white",border:`1.5px solid ${n=="cat"?w:_}`}}),"Categórico"]})]}),h&&l.jsx("div",{className:_n.checkboxContainer,children:(a||[]).map((v,T)=>{var A;return l.jsx(Fs,{onClick:()=>E({valueClicked:T,allValues:a}),indicator:v,value:((A=C[e.code[o=="both"?1:0]])==null?void 0:A.has(T))||!C[e.code[o=="both"?1:0]]},`checkbox-${T}`)})}),(b||o=="glb")&&l.jsx("div",{className:_n.absoluteSliderContainer,children:l.jsx(zs,{onChange:E,min:c,max:u,unit:d,defaultValue:C[e.code[0]]?C[e.code[0]]:"",isDate:y,step:m})})]})})};Ur.propTypes={indicator:s.shape({name:s.string,type:s.string,code:s.arrayOf(s.string),values:s.arrayOf(s.shape({codename:s.oneOfType(s.array,s.string),title:s.string}))}),activeColor:s.string};const qs=({subcategory:e,fontColor:t,activeColor:n})=>{const{activeSubcategory:r}=ye(a=>a),{name:o,indicators:i}=e||{};return l.jsx(yt,{title:o,isOpen:r==`id${o}`,onClick:()=>{ye.setState(a=>({activeSubcategory:a.activeSubcategory===`id${o}`?"":`id${o}`}))},titleFontStyles:{fontSize:16,fontWeight:400},showBottomBar:!1,titleMarginChildren:20,height:48,color:t,activeColor:n,children:i==null?void 0:i.map((a,c)=>l.jsx(Ur,{indicator:a,fontColor:t,activeColor:n},`indicatorSub-${c}`))})};qs.propTypes={subcategory:s.shape({name:s.string,indicators:s.arrayOf(s.shape({name:s.string,value:s.string}))}),activeColor:s.string};const Ws=({category:e,activeColor:t})=>{const{name:n,subcategories:r,indicators:o}=e||{},{activeCategory:i,fontColor:a}=ye(c=>c);return e&&l.jsx(yt,{onClick:()=>{ye.setState(c=>({activeCategory:i===`id${n}`?"":`id${n}`}))},title:n,isOpen:i===`id${n}`,titleFontStyles:{fontSize:18,fontWeight:"bold"},showBottomBar:!1,color:a,activeColor:t,children:r?r.map((c,u)=>l.jsx(qs,{subcategory:c,fontColor:a,activeColor:t},`subcategory-${u}`)):o&&o.map((c,u)=>l.jsx(Ur,{indicator:c,fontColor:a,activeColor:t},`indicator-${u}`))})};Ws.propTypes={category:s.shape({name:s.string.isRequired,subcategories:s.array,indicators:s.array}),activeColor:s.string};const Ar=({indicators:e,isOpen:t=!0,title:n,fontColor:r="#605B56",inputsColor:o="#605B56",activeColor:i,isExtra:a=!1})=>{const{tematicalFiltersSelected:c,activeFiltersType:u}=ye(g=>g),{t:d}=oe.useTranslation();S.useEffect(()=>{r&&ye.setState(()=>({fontColor:r}))},[r]),S.useEffect(()=>{o&&ye.setState(()=>({inputsColor:o}))},[o]);const m=()=>{a?u==a?ye.setState(()=>({activeFiltersType:null})):ye.setState(()=>({activeFiltersType:a})):u=="tematical"?ye.setState(()=>({activeFiltersType:null})):ye.setState(()=>({activeFiltersType:"tematical"}))};return l.jsx(yt,{isOpen:a&&u==a||!a&&u=="tematical",title:n?d(n):"Tematical filters",color:r,activeColor:i,onClick:m,mainTitle:!0,children:e==null?void 0:e.map((g,y)=>l.jsx(Ws,{category:g,fontColor:r,activeColor:i},`category-${y}`))})};Ar.propTypes={isOpen:s.bool,title:s.string,indicators:s.arrayOf(s.object),fontColor:s.string,onChangeTematicalFilters:s.func,inputsColor:s.string,activeColor:s.string};const Ol="_FiltersAmbitContainer_1hv16_2",Al="_FiltersContainer_1hv16_15",Ll="_FiltersAmbitHeader_1hv16_18",Ml="_FiltersAmbitTitle_1hv16_26",Rl="_FiltersAmbitDescription_1hv16_35",Dl="_FiltersAmbitDescriptionTitle_1hv16_46",Il="_warning_1hv16_50",Bl="_buttonContainer_1hv16_53",dt={FiltersAmbitContainer:Ol,FiltersContainer:Al,FiltersAmbitHeader:Ll,FiltersAmbitTitle:Ml,FiltersAmbitDescription:Rl,FiltersAmbitDescriptionTitle:Dl,warning:Il,buttonContainer:Bl},Us=({ambitName:e,ambitDescription:t,defaultFilters:n,indicators:r,activeColor:o,textColor:i,backgroundColor:a,onChangeAppliedFilters:c,saveAmbit:u,namePlaceholder:d,descPlaceholder:m,filtersTypes:g=["geographical","tematical"],nameRequiredText:y,geoLayers:h=[],onGeoLayersChange:b,onlyFilters:f=!1,descriptionRequired:x=!1,extraLists:_=!1})=>{const{t:w}=oe.useTranslation(),{tematicalFiltersSelected:E,activeFiltersType:C}=ye(p=>p),[v,T]=S.useState(e||null),[A,k]=S.useState(t||null),[j,D]=S.useState(!1);S.useEffect(()=>{ye.setState({tematicalFiltersSelected:n||[]})},[n]),S.useRef(!1),S.useEffect(()=>{c(E)},[E]);const M=()=>{x?v&&A?u({name:v,description:A}):D(!0):v?u({name:v,description:A}):D(!0)};return S.useEffect(()=>{if(g.includes("geographical")&&C!="geographical"&&h.length>0){const p=h.map(N=>({...N,active:!1}));b==null||b(p)}},[C]),l.jsxs("div",{className:dt.FiltersAmbitContainer,children:[l.jsxs("div",{className:dt.FiltersContainer,children:[!f&&l.jsxs("div",{className:dt.FiltersAmbitHeader,children:[l.jsx("div",{className:dt.FiltersAmbitTitle,children:l.jsx("input",{type:"text",onChange:p=>{D(!1),T(p.target.value)},value:v,placeholder:w(d)})}),l.jsx("div",{className:dt.FiltersAmbitDescription,children:l.jsx("div",{className:dt.FiltersAmbitDescriptionTitle,children:l.jsx("textarea",{value:A,onChange:p=>{x&&D(!1),k(p.target.value)},placeholder:w(m)})})})]}),l.jsx(Vs,{title:w("applied_filters"),isOpen:C=="applied",textColor:i||"#fff",backgroundColor:a||"#605B5680",activeColor:o}),g.includes("geographical")&&l.jsx(Ps,{title:"geo_filters",activeColor:o,geoLayers:h,onGeoLayersChange:b}),g.includes("extra")&&_.map(p=>l.jsx(Ar,{indicators:p.indicators,inputsColor:o,textColor:i,title:p.title,activeColor:o,isExtra:p.title})),g.includes("tematical")&&l.jsx(Ar,{indicators:r,inputsColor:o,textColor:i,title:"tematical_filters",activeColor:o,isExtra:!1})]}),!f&&l.jsxs("div",{className:dt.buttonContainer,children:[j&&l.jsx("div",{className:dt.warning,children:w(y)}),l.jsx(un,{onClick:()=>M(),children:w("save_ambit")})]})]})};Us.propTypes={indicators:s.arrayOf(s.object).isRequired,ambitName:s.string,ambitDescription:s.string,defaultFilters:s.arrayOf(s.object),activeColor:s.string,backgroundColor:s.string,textColor:s.string,onChangeAppliedFilters:s.func,saveAmbit:s.func,namePlaceholder:s.string,descPlaceholder:s.string,filtersTypes:s.arrayOf(s.string).isRequired,nameRequiredText:s.string,extraLists:s.arrayOf(s.object)};const Vl="_barChartContainer_1ly7h_2",So={barChartContainer:Vl},Zr=({data:e,barHeight:t=25,gap:n=23,fontColor:r="#605B56",leftPadding:o=200,numberOfDivisions:i=7,maxValue:a=null,orientation:c="horizontal",horizontalPadding:u=c=="vertical"?50:20,verticalPadding:d=10,xLabelPadding:m=c=="vertical"?50:40,containerWidth:g=700,containerHeight:y=500,mainColor:h="#000"})=>{const{xScale:b,yScale:f,ticks:x,height:_,chartWidth:w,svgWidth:E,svgHeight:C,contentWidth:v}=S.useMemo(()=>{if(e&&e.length>0){const T=ar.max(e,k=>k.value)||1,A=a||T;if(c==="vertical"){const k=e.length*(t+n)+u*2,j=Math.max(k,g||0),D=y,p=ar.scaleLinear().domain([0,A]).range([D-100,d]),N=Array.from({length:i+1},($,P)=>A/i*P);return{yScale:p,ticks:N,height:D,chartWidth:j,svgWidth:j,svgHeight:D,contentWidth:k}}else{const k=e.length*(t+n);console.log("barsHeight: ",k);const j=k+d*2+m+30,D=g+o+u*2,M=ar.scaleLinear().domain([0,A]).range([0,g-u*2]),p=Array.from({length:i+1},(N,$)=>A/i*$);return{xScale:M,ticks:p,height:j,chartWidth:g,svgWidth:D,svgHeight:j,contentWidth:D}}}else return{xScale:null,yScale:null,ticks:[],height:0,svgHeight:0}},[e,i,t,n,u,d,a,c,o,g,y]);return c==="vertical"?l.jsx("div",{style:{width:"100%",height:y?`${y}px`:"100%","--main-color":h},className:So.barChartContainer,children:l.jsx("svg",{width:E,height:C,style:{display:"block",width:E,height:C,maxWidth:"none","--main-color":h},children:l.jsxs("g",{transform:`translate(${u}, 0)`,children:[l.jsx("g",{children:x.map((T,A)=>{const k=f(T);return l.jsxs("g",{children:[l.jsx("line",{x1:0,x2:w-u*2,y1:k,y2:k,stroke:"#ccc"}),l.jsx("text",{x:-10,y:k+4,textAnchor:"end",fontSize:10,fill:r,children:parseInt(T)})]},A)})}),e&&e.length>0&&e.map((T,A)=>{const k=f(0)-f(T.value),j=A*(t+n),D=f(T.value);return l.jsxs("g",{children:[l.jsx("rect",{x:j,y:D,width:t,height:k,fill:T.color,rx:0}),l.jsx("text",{x:j+t/2,y:_-m,textAnchor:"start",fill:r,fontSize:12,transform:`rotate(-90, ${j+t/2}, ${_-m})`,children:T.title})]},A)})]})})}):(console.log("svgHeight: ",C),l.jsx("div",{style:{width:"100%",height:y?`${y}px`:"100%","--main-color":h},className:So.barChartContainer,children:l.jsx("svg",{width:E,height:C,style:{minWidth:"100%",height:C,width:v,maxWidth:"none"},children:l.jsxs("g",{transform:`translate(0,${d})`,children:[l.jsx("g",{transform:`translate(${o+u}, 0)`,children:x.map((T,A)=>{const k=b(T);return l.jsxs("g",{transform:`translate(${k}, 0)`,children:[l.jsx("line",{y1:0,y2:e.length*(t+n),stroke:"#ccc"}),l.jsx("text",{y:e.length*(t+n)+30,textAnchor:"middle",fontSize:10,fill:r,children:parseInt(T)})]},A)})}),e&&e.length>0&&e.map((T,A)=>{const k=b(T.value),j=A*(t+n);return console.log("y: ",j),l.jsxs("g",{transform:`translate(${o+u}, ${j})`,children:[l.jsx("text",{x:-24,y:t/2+5,textAnchor:"end",fill:r,fontSize:12,children:T.title}),l.jsx("rect",{width:k,height:t,fill:T.color,rx:0})]},A)})]})})}))};Zr.propTypes={data:s.arrayOf(s.shape({title:s.string,value:s.number,color:s.string})),length:s.number,barHeight:s.number,gap:s.number,verticalPadding:s.number,horizontalPadding:s.number,numberOfDivisions:s.number,fontColor:s.string,leftPadding:s.number,maxValue:s.number,orientation:s.oneOf(["horizontal","vertical"]),xLabelPadding:s.number,containerWidth:s.number,containerHeight:s.number,minBarWidth:s.number};const Pl="_graphicContainer_1ozwp_2",Fl="_titleContainer_1ozwp_13",To={graphicContainer:Pl,titleContainer:Fl},Zs=({data:e,graphLength:t=700,containerStyle:n,borderColor:r="#605B56",title:o="Graphic Title",fontColor:i="#605B56",maxValue:a=null,numberOfDivisions:c=7,leftPadding:u=-200,orientation:d="horizontal",xLabelPadding:m=0,mainColor:g})=>{const{t:y}=oe.useTranslation();return l.jsxs("div",{className:To.graphicContainer,style:{...n||{},paddingBottom:40},children:[l.jsx("div",{className:To.titleContainer,children:l.jsx("h2",{children:y(o)})}),l.jsx(Zr,{data:e,length:t,fontColor:i,maxValue:a,numberOfDivisions:c,leftPadding:u,orientation:d,xLabelPadding:m,mainColor:g})]})};Zs.propTypes={data:s.arrayOf(s.shape({color:s.string.isRequired,value:s.number.isRequired,title:s.string.isRequired})),borderColor:s.string,title:s.string,graphLength:s.number,containerStyle:s.object,fontColor:s.string,mainColor:s.string,maxValue:s.number,numberOfDivisions:s.number,leftPadding:s.number,xLabelPadding:s.number};const zl="_indicatorsCategory_arwy3_2",ql="_title_arwy3_5",Wl="_list_arwy3_13",wn={indicatorsCategory:zl,title:ql,list:Wl},Ul="data:image/svg+xml,%3csvg%20width='8'%20height='8'%20viewBox='0%200%208%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.32549%200H4.65882V3.40392H8V4.61176H4.65882V8H3.32549V4.61176H0V3.40392H3.32549V0Z'%20fill='%23605B56'/%3e%3c/svg%3e",Zl="data:image/svg+xml,%3csvg%20width='8'%20height='8'%20viewBox='0%200%208%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.32549%200H4.65882V3.40392H8V4.61176H4.65882V8H3.32549V4.61176H0V3.40392H3.32549V0Z'%20fill='%23ffffff'/%3e%3c/svg%3e",et=qr.create(e=>({activeColor:null,defaultColor:"#92898A",multiple:!1,activeIndicatorType:null,activeIndicatorSubcategory:""})),Hs=({indicator:e,subcatIndex:t,indicatorSubcategory:n})=>{const r={},o=new Set;return Object.entries(e).forEach(([i,a])=>{const c=i.match(/^(.*)_subcat_(\d+)$/);if(c){const[u,d,m]=c;Number(m)===t&&(r[d]=a,o.add(d))}}),Object.entries(e).forEach(([i,a])=>{!i.includes("_subcat_")&&!o.has(i)&&(r[i]=a)}),r.activeIndicatorSubcategory=n,r},Hl="_indicatorContainer_swmx0_2",Kl="_indicatorNameContainer_swmx0_12",Gl="_dot_swmx0_19",Yl="_indicatorName_swmx0_12",Xl="_switchExternalContainer_swmx0_33",Ql="_switchType_swmx0_42",Jl="_switchTypeOptions_swmx0_46",ec="_optionContainer_swmx0_57",tc="_customRadious_swmx0_67",nc="_optionText_swmx0_74",ve={indicatorContainer:Hl,indicatorNameContainer:Kl,dot:Gl,indicatorName:Yl,switchExternalContainer:Xl,switchType:Ql,switchTypeOptions:Jl,optionContainer:ec,customRadious:tc,optionText:nc},Hr=({indicator:e,values:t=[],activeIndicator:n,onClickIndicator:r,onChangeType:o,onChangeIndicatorSubcategory:i})=>{const{t:a}=oe.useTranslation(),{name:c,type:u,disabled:d,indicatorSubcategories:m}=e,{activeIndicatorType:g,activeColor:y,defaultColor:h,multiple:b,activeIndicatorSubcategory:f}=et(v=>v),[x,_]=S.useState(!1);S.useEffect(()=>{n&&_(b?n.some(v=>v.name==String(c)):n.name==c)},[n]);const w=()=>l.jsx("div",{className:ve.switchExternalContainer,children:l.jsx("div",{className:ve.switchType,children:l.jsxs("div",{className:ve.switchTypeOptions,children:[l.jsxs("div",{className:ve.optionContainer,onClick:()=>{et.setState(v=>({...v,activeIndicatorType:"cat"})),o("cat")},children:[l.jsx("span",{className:`${ve.customRadious}`,style:{backgroundColor:g==="cat"?y:"transparent",borderColor:g==="cat"?y:h}}),l.jsx("h4",{className:ve.optionText,style:{color:g==="cat"?y:h},children:a("indicators.cat")})]}),l.jsxs("div",{className:ve.optionContainer,onClick:()=>{et.setState(v=>({...v,activeIndicatorType:"abs"})),o("abs")},children:[l.jsx("span",{className:`${ve.customRadious}`,style:{backgroundColor:g==="abs"?y:"transparent",borderColor:g==="abs"?y:h}}),l.jsx("h4",{className:ve.optionText,style:{color:g==="abs"?y:h},children:a("indicators.abs")})]})]})})}),E=()=>l.jsx("div",{className:ve.switchExternalContainer,children:l.jsx("div",{className:ve.switchType,children:l.jsx("div",{className:ve.switchTypeOptions,children:m==null?void 0:m.map((v,T)=>l.jsxs("div",{className:ve.optionContainer,onClick:()=>{et.setState(k=>({...k,activeIndicatorSubcategory:v.title}));let A=Hs({indicator:e,subcatIndex:T,indicatorSubcategory:v.title});i&&i({indicator:A})},children:[l.jsx("span",{className:`${ve.customRadious}`,style:{backgroundColor:f===v.title?y:"transparent",borderColor:f===v.title?y:h}}),l.jsx("h4",{className:ve.optionText,style:{color:f===v.title?y:h},children:a(v.title)})]},`indicatorSubcategory-${v.title}`))})})}),C=()=>l.jsx("div",{className:ve.switchExternalContainer,children:l.jsx("div",{className:ve.switchType,children:l.jsx("div",{className:ve.switchTypeOptions,children:t.map((v,T)=>l.jsxs("div",{className:ve.optionContainer,children:[l.jsx("span",{className:ve.customRadious}),l.jsx("h4",{children:a(v.unit)})]},T))})})});return l.jsxs("div",{className:ve.indicatorContainer,children:[l.jsxs("div",{className:ve.indicatorNameContainer,onClick:()=>!d&&r({indicator:e}),children:[l.jsx("div",{style:{border:x?`1px solid ${y}`:`1px solid ${h}`,opacity:d?.5:1,backgroundColor:x?y:"transparent"},className:ve.dot,children:b&&l.jsx("img",{src:x?Zl:Ul,alt:""})}),l.jsx("h4",{className:ve.indicatorName,style:{color:x?y:h,opacity:d?.5:1},children:l.jsx(oe.Trans,{i18nKey:c,components:{sup:l.jsx("sup",{})},shouldUnescape:!0})})]}),(n==null?void 0:n.name)===c&&u==="both"&&w(),(n==null?void 0:n.name)===c&&u==="twoUnits"&&C(),(n==null?void 0:n.name)===c&&m&&m.length>0&&E()]})};Hr.propTypes={indicator:s.shape({name:s.string,type:s.string}),values:s.oneOfType([s.bool,s.array]),activeColor:s.string,defaultColor:s.string,activeIndicator:s.oneOfType([s.object,s.array]),multiple:s.bool,onClickIndicator:s.func};const rc="_indicatorsSubCategory_1nuug_2",oc="_list_1nuug_11",jo={indicatorsSubCategory:rc,list:oc},Ks=({subcName:e,indicators:t,activeSubCategory:n,onClickSubCategory:r,id:o,activeIndicator:i,onClickIndicator:a,onChangeType:c,onChangeIndicatorSubcategory:u})=>{const{t:d}=oe.useTranslation(),[m,g]=S.useState(!1);S.useEffect(()=>{g(n==o)},[n,o]);const{activeIndicatorType:y,activeColor:h,defaultColor:b,multiple:f,activeIndicatorSubcategory:x}=et(_=>_);return l.jsxs(zr.motion.div,{className:jo.indicatorsSubCategory,initial:{height:"43px"},animate:{height:m?"auto":"43px"},transition:{duration:.4},children:[l.jsx("button",{onClick:()=>r(o),children:l.jsxs("h3",{style:{color:m?h:b},children:[l.jsx("span",{style:{color:m?h:b},children:m?"-":"+"}),l.jsx("span",{style:{color:m?h:b},children:d(e)})]})}),t&&l.jsx("div",{className:jo.list,children:t==null?void 0:t.map((_,w)=>l.jsx(Hr,{indicator:_,activeIndicator:i,onClickIndicator:a,onChangeType:c,onChangeIndicatorSubcategory:u},"indicator"+w))})]})};Ks.propTypes={subcName:s.string,indicators:s.array,activeColor:s.string,defaultColor:s.string,activeSubCategory:s.string,id:s.string,activeIndicator:s.oneOfType([s.object,s.array]),multiple:s.bool,onClickSubCategory:s.func,onClickIndicator:s.func};const Gs=({cat:e,id:t,onClickCategory:n,activeCategory:r,activeSubCategory:o,onClickSubCategory:i,activeIndicator:a,onClickIndicator:c,onChangeType:u,onChangeIndicatorSubcategory:d})=>{var _;const{t:m}=oe.useTranslation(),{activeIndicatorType:g,activeColor:y,defaultColor:h,multiple:b}=et(w=>w),[f,x]=S.useState(!1);return S.useEffect(()=>{x(r===t)},[r,t]),l.jsxs(zr.motion.div,{className:wn.indicatorsCategory,initial:{height:"53px"},animate:{height:f?"auto":"53px"},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:f?`1px solid ${y}`:"0px",marginBottom:f?"20px":"0px"},children:[l.jsxs("h2",{className:`${wn.title}`,onClick:()=>n(t),children:[l.jsx("span",{className:wn.plus,style:{color:f?y:h},children:f?"-":"+"}),l.jsx("span",{style:{color:f?y:h},children:m(e.name)})]}),e.subcategories?e.subcategories.map(({name:w,subcategory:E,indicators:C},v)=>l.jsx(Ks,{id:E,activeSubCategory:o,subcName:w,onClickSubCategory:i,activeIndicator:a,onClickIndicator:c,indicators:C,onChangeType:u,onChangeIndicatorSubcategory:d},`subcKey ${v}`)):l.jsx("div",{className:wn.list,children:(_=e.indicators)==null?void 0:_.map((w,E)=>l.jsx(Hr,{indicator:w,values:w.type=="twoUnits"&&w.values,activeIndicator:a,onClickIndicator:c,onChangeType:u,onChangeIndicatorSubcategory:d},`indicator${E}`))})]})};Gs.propTypes={cat:s.object,id:s.string,onChange:s.func,onClickCategory:s.func,activeCategory:s.string,activeSubCategory:s.string,onClickSubCategory:s.func,onClickIndicator:s.func,activeIndicator:s.oneOfType([s.object,s.array]),multiple:s.bool,activeColor:s.string,defaultColor:s.string};const sc="_indicatorsList_13b3m_2",ic="_title_13b3m_6",ko={indicatorsList:sc,title:ic},Lr=(e,t)=>{if(e===t)return!0;if(e==null||t==null||typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t))return e.length!==t.length?!1:e.every((n,r)=>Lr(n,t[r]));if(typeof e=="object"&&typeof t=="object"){const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length?!1:n.every(o=>Lr(e[o],t[o]))}return!1},Ys=({indicators:e,activeColor:t,defaultColor:n="#92898A",onChange:r,multiple:o=!1,defaultValue:i=null,changeIndType:a,activeIndicatorType:c,onChangeIndicatorSubcategory:u})=>{const{t:d}=oe.useTranslation(),[m,g]=S.useState(),[y,h]=S.useState(),[b,f]=S.useState(),x=S.useRef(i),_=S.useRef(!1);S.useEffect(()=>{et.setState({activeColor:t||"",defaultColor:n||"",multiple:o||!1,activeIndicatorType:c||null})},[t,n,o,c]);const w=k=>{g(m==k?null:k)},E=k=>{h(y==k?null:k)},C=({indicator:k})=>{if(k!=null&&k.indicatorSubcategories&&k.indicatorSubcategories.length>0){const j=k.indicatorSubcategories[0],D=Hs({indicator:k,subcatIndex:0,indicatorSubcategory:j.title});et.setState({activeIndicatorSubcategory:j.title}),T(D,!0),u&&u({indicator:D})}else et.setState({activeIndicatorSubcategory:null}),T(k)},v=({indicator:k})=>{T(k,!0),u&&u({indicator:k})},T=(k,j=!1,D=!1)=>{if(o){let M=b&&b.length>0?[...b]:[];const p=M==null?void 0:M.some($=>$.name==k.name);let N;j?N=k:N=p?M.filter($=>$.name!=String(k.name)):[...M,k],f(N),k.type=="both"&&a("cat"),r&&typeof r=="function"&&(j||!(k!=null&&k.indicatorSubcategories))&&!D&&r({activeIndicator:N})}else{let M;j?M=k:M=(b==null?void 0:b.name)==k.name?null:k,f(M),(k==null?void 0:k.type)=="both"&&a("cat"),r&&typeof r=="function"&&(j||!(k!=null&&k.indicatorSubcategories))&&!D&&r({activeIndicator:M})}};S.useLayoutEffect(()=>{var k;if(x.current&&!b){_.current=!0;try{o&&Array.isArray(x.current)?(f([...x.current]),A((k=x.current[0])==null?void 0:k.name)):x.current&&(T(x.current,!1,!0),A(x.current.name))}finally{_.current=!1}}},[]),S.useEffect(()=>{var k;if(!_.current&&!Lr(i,b)){_.current=!0;try{const{activeIndicatorSubcategory:j}=i||{};j&&et.setState({activeIndicatorSubcategory:j}),o&&Array.isArray(i)?(f([...i]),A((k=i[0])==null?void 0:k.name)):i?(T(i,!1,!0),A(i.name)):(f(o?[]:null),g(null),h(null))}finally{_.current=!1}}},[i]);const A=k=>{const j=e.find(D=>{if(D.subcategories){let M=D.subcategories.find(p=>p.indicators.find(N=>N.name==k));if(M)return h(M.subcategory),M}else return D.indicators.some(M=>M.name==k)});j&&g(j.category)};return l.jsxs("div",{className:ko.indicatorsList,children:[l.jsx("h2",{className:ko.title,style:{color:n},children:d("indicators.indicators")}),e.map((k,j)=>l.jsx(Gs,{id:k.category,cat:k,onClickCategory:w,activeCategory:m,onClickSubCategory:E,activeSubCategory:y,onClickIndicator:C,activeIndicator:b,onChange:r,onChangeType:a,onChangeIndicatorSubcategory:v},`categoryKey${j}`))]})};Ys.propTypes={indicators:s.arrayOf(s.object),activeColor:s.string,defaultColor:s.string,onChange:s.func,changeIndType:s.func,multiple:s.bool,activeIndicator:s.oneOfType([s.object,s.array]),defaultValue:s.oneOfType([s.object,s.array]),activeIndicatorType:s.string,onChangeIndicatorSubcategory:s.func};const ac="_langSelector_o9enq_2",lc="_currentLang_o9enq_14",cc="_arrow_o9enq_26",uc="_prevImg_o9enq_29",dc="_langMenu_o9enq_33",At={langSelector:ac,currentLang:lc,arrow:cc,prevImg:uc,langMenu:dc},Xs=({langs:e,arrow:t,imgPrev:n})=>{const[r,o]=S.useState(!1),{i18n:i}=oe.useTranslation(),a=e.find(u=>u.code==i.language),c=u=>{i.changeLanguage(u),o(!1)};return l.jsxs("div",{className:At.langSelector,children:[l.jsxs("div",{className:At.currentLang,onClick:()=>{o(!r)},children:[n&&l.jsx("img",{className:At.prevImg,src:n}),(a==null?void 0:a.titleSelected)||(a==null?void 0:a.title),l.jsx("img",{src:t,className:At.arrow})]}),r&&l.jsx("div",{className:At.langMenu,children:e.map(u=>l.jsx("button",{className:(a==null?void 0:a.code)==u.code?At.active:"",onClick:()=>c(u.code),children:u.title},u.code))})]})};Xs.propTypes={langs:s.arrayOf(s.shape({code:s.string,title:s.string,titleSelected:s.string})),color:s.string,bckColor:s.string,hoverColor:s.string,arrow:s.object,imgPrev:s.object};const fc="_legendContainer_r9cd6_3",pc="_closeButton_r9cd6_43",mc="_titleContainer_r9cd6_71",hc="_infoContainer_r9cd6_77",gc="_titleLegendList_r9cd6_88",yc="_legendListContainer_r9cd6_94",bc="_gridContainer_r9cd6_94",vc="_elementLegendContainer_r9cd6_100",xc="_colorDot_r9cd6_106",Cc="_absoluteValueContainer_r9cd6_112",_c="_absoluteValueColor_r9cd6_115",wc="_absoluteValueText_r9cd6_120",Sc="_noDataContainer_r9cd6_132",Tc="_noData_r9cd6_132",jc="_moreInfoContainer_r9cd6_153",Oe={legendContainer:fc,closeButton:pc,titleContainer:mc,infoContainer:hc,titleLegendList:gc,legendListContainer:yc,gridContainer:bc,elementLegendContainer:vc,colorDot:xc,absoluteValueContainer:Cc,absoluteValueColor:_c,absoluteValueText:wc,noDataContainer:Sc,noData:Tc,moreInfoContainer:jc},Qs=({containerStyles:e,title:t,infoList:n,legendItems:r,onClickMoreInfo:o,buttonTitle:i,onClickClose:a})=>{const{t:c}=oe.useTranslation();return l.jsxs("div",{style:e?{...e}:{},className:`${Oe.legendContainer}`,children:[l.jsx("button",{className:Oe.closeButton,onClick:a}),t&&l.jsx("div",{className:Oe.titleContainer,style:{marginBottom:(!n||n.length==0)&&"15px"},children:l.jsx("h2",{children:t})}),n&&n.length>0&&l.jsx("div",{className:Oe.infoContainer,children:l.jsx("ul",{children:n.map(({title:u,value:d})=>l.jsxs("li",{children:[l.jsx("h3",{className:Oe.title,children:`${u}:`}),l.jsxs("span",{className:Oe.value,children:["  ",d]})]},t))})}),r&&r.length>0&&r.map((u,d)=>l.jsxs("div",{children:[l.jsx("h3",{className:Oe.titleLegendList,style:{marginTop:n&&n.length>0&&d===0?"30px":d>0?"20px":"0px"},children:u.title&&l.jsx(oe.Trans,{i18nKey:u.title,components:{sup:l.jsx("sup",{})},shouldUnescape:!0})}),l.jsxs("div",{className:Oe.legendListContainer,children:[u.absolute?l.jsxs("div",{className:Oe.absoluteValueContainer,children:[l.jsx("div",{className:Oe.absoluteValueColor,style:{background:`linear-gradient(to bottom, ${u.absolute.maxColor} 0%, ${u.absolute.midColor?`${u.absolute.midColor} 50%,`:""} ${u.absolute.minColor} 100%)`}}),l.jsxs("div",{className:Oe.absoluteValueText,children:[l.jsxs("span",{children:[u.absolute.maxValue," ",c(u.absolute.unit)," ",u.absolute.offlimits&&c(u.moreText)]}),u.absolute.midValue&&l.jsxs("span",{children:[u.absolute.midValue," ",c(u.absolute.unit)]}),l.jsxs("span",{children:[u.absolute.minValue," ",c(u.absolute.unit)," ",u.absolute.offlimits&&c(u.lessText)]})]})]}):u.categories&&u.categories.length>0&&l.jsx("div",{className:Oe.gridContainer,children:u.categories.map(({title:m,color:g},y)=>l.jsxs("div",{className:Oe.elementLegendContainer,children:[l.jsx("div",{className:Oe.colorDot,style:{backgroundColor:g}}),l.jsxs("div",{className:Oe.titleLegendElement,children:[c(m)," "]})]},y))}),u.absolute&&u.absolute.noDataColor&&l.jsxs("div",{className:Oe.noDataContainer,children:[l.jsx("div",{className:Oe.noData,style:{background:u.absolute.noDataColor}}),l.jsx("div",{className:Oe.absoluteValueText,children:l.jsx("span",{children:c(u.absolute.noDataText)})})]})]})]},d)),o&&l.jsx("button",{className:Oe.moreInfoContainer,onClick:o,children:i||c("moreInformation")})]})};Qs.propTypes={title:s.string,containerStyles:s.object,infoList:s.arrayOf(s.shape({title:s.string.isRequired,value:s.oneOfType([s.string,s.number])})),legendItems:s.arrayOf(s.shape({title:s.string,categories:s.arrayOf(s.shape({title:s.string,color:s.string})),absolute:s.shape({maxColor:s.string,minColor:s.string,midColor:s.string,maxValue:s.number,minValue:s.number,midValue:s.number,unit:s.string,noDataColor:s.string,noDataText:s.string})})),onClickMoreInfo:s.func,buttonTitle:s.string,onClickClose:s.func};const kc="_logo_1ewa6_2",$o={logo:kc},Js=({src:e,alt:t,href:n})=>{const{t:r}=oe.useTranslation(),o=l.jsx("img",{src:e,alt:r(t)});return n?l.jsx("div",{className:$o.logo,children:l.jsx("a",{href:n,children:o})}):l.jsx("div",{className:$o.logo,children:o})};Js.propTypes={src:s.string.isRequired,alt:s.string.isRequired,href:s.string,className:s.string};const $c=Q.createContext(null);function Ec(e,t){const n=Array.isArray(e)?e[0]:e?e.x:0,r=Array.isArray(e)?e[1]:e?e.y:0,o=Array.isArray(t)?t[0]:t?t.x:0,i=Array.isArray(t)?t[1]:t?t.y:0;return n===o&&r===i}function Fe(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Fe(e[n],t[n]))return!1;return!0}else if(Array.isArray(t))return!1;if(typeof e=="object"&&typeof t=="object"){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n)if(!t.hasOwnProperty(o)||!Fe(e[o],t[o]))return!1;return!0}return!1}function Nc(e){const t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}function Eo(e,t){if(!e.getProjection)return;const n=e.getProjection(),r=t.getProjection();Fe(n,r)||t.setProjection(n)}function No(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function Oo(e,t){const n=t.viewState||t;let r=!1;if("zoom"in n){const o=e.zoom;e.zoom=n.zoom,r=r||o!==e.zoom}if("bearing"in n){const o=e.bearing;e.bearing=n.bearing,r=r||o!==e.bearing}if("pitch"in n){const o=e.pitch;e.pitch=n.pitch,r=r||o!==e.pitch}if(n.padding&&!e.isPaddingEqual(n.padding)&&(r=!0,e.padding=n.padding),"longitude"in n&&"latitude"in n){const o=e.center;e.center=new o.constructor(n.longitude,n.latitude),r=r||o!==e.center}return r}const Oc=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Ao(e){if(!e)return null;if(typeof e=="string"||("toJS"in e&&(e=e.toJS()),!e.layers))return e;const t={};for(const r of e.layers)t[r.id]=r;const n=e.layers.map(r=>{let o=null;"interactive"in r&&(o=Object.assign({},r),delete o.interactive);const i=t[r.ref];if(i){o=o||Object.assign({},r),delete o.ref;for(const a of Oc)a in i&&(o[a]=i[a])}return o||r});return{...e,layers:n}}const Lo={version:8,sources:{},layers:[]},Mo={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},gr={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},Ro={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},Ac=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],Lc=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class Wt{constructor(t,n,r){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=o=>{const i=this.props[Ro[o.type]];i?i(o):o.type==="error"&&console.error(o.error)},this._onPointerEvent=o=>{(o.type==="mousemove"||o.type==="mouseout")&&this._updateHover(o);const i=this.props[Mo[o.type]];i&&(this.props.interactiveLayerIds&&o.type!=="mouseover"&&o.type!=="mouseout"&&(o.features=this._hoveredFeatures||this._queryRenderedFeatures(o.point)),i(o),delete o.features)},this._onCameraEvent=o=>{if(!this._internalUpdate){const i=this.props[gr[o.type]];i&&i(o)}o.type in this._deferredEvents&&(this._deferredEvents[o.type]=!1)},this._MapClass=t,this.props=n,this._initialize(r)}get map(){return this._map}get transform(){return this._renderTransform}setProps(t){const n=this.props;this.props=t;const r=this._updateSettings(t,n);r&&this._createShadowTransform(this._map);const o=this._updateSize(t),i=this._updateViewState(t,!0);this._updateStyle(t,n),this._updateStyleComponents(t,n),this._updateHandlers(t,n),(r||o||i&&!this._map.isMoving())&&this.redraw()}static reuse(t,n){const r=Wt.savedMaps.pop();if(!r)return null;const o=r.map,i=o.getContainer();for(n.className=i.className;i.childNodes.length>0;)n.appendChild(i.childNodes[0]);o._container=n;const a=o._resizeObserver;a&&(a.disconnect(),a.observe(n)),r.setProps({...t,styleDiffing:!1}),o.resize();const{initialViewState:c}=t;return c&&(c.bounds?o.fitBounds(c.bounds,{...c.fitBoundsOptions,duration:0}):r._updateViewState(c,!1)),o.isStyleLoaded()?o.fire("load"):o.once("styledata",()=>o.fire("load")),o._update(),r}_initialize(t){const{props:n}=this,{mapStyle:r=Lo}=n,o={...n,...n.initialViewState,accessToken:n.mapboxAccessToken||Mc()||null,container:t,style:Ao(r)},i=o.initialViewState||o.viewState||o;if(Object.assign(o,{center:[i.longitude||0,i.latitude||0],zoom:i.zoom||0,pitch:i.pitch||0,bearing:i.bearing||0}),n.gl){const m=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=m,n.gl)}const a=new this._MapClass(o);i.padding&&a.setPadding(i.padding),n.cursor&&(a.getCanvas().style.cursor=n.cursor),this._createShadowTransform(a);const c=a._render;a._render=m=>{this._inRender=!0,c.call(a,m),this._inRender=!1};const u=a._renderTaskQueue.run;a._renderTaskQueue.run=m=>{u.call(a._renderTaskQueue,m),this._onBeforeRepaint()},a.on("render",()=>this._onAfterRepaint());const d=a.fire;a.fire=this._fireEvent.bind(this,d),a.on("resize",()=>{this._renderTransform.resize(a.transform.width,a.transform.height)}),a.on("styledata",()=>{this._updateStyleComponents(this.props,{}),Eo(a.transform,this._renderTransform)}),a.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const m in Mo)a.on(m,this._onPointerEvent);for(const m in gr)a.on(m,this._onCameraEvent);for(const m in Ro)a.on(m,this._onEvent);this._map=a}recycle(){const n=this.map.getContainer().querySelector("[mapboxgl-children]");n==null||n.remove(),Wt.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const t=this._map;!this._inRender&&t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}_createShadowTransform(t){const n=Nc(t.transform);t.painter.transform=n,this._renderTransform=n}_updateSize(t){const{viewState:n}=t;if(n){const r=this._map;if(n.width!==r.transform.width||n.height!==r.transform.height)return r.resize(),!0}return!1}_updateViewState(t,n){if(this._internalUpdate)return!1;const r=this._map,o=this._renderTransform,{zoom:i,pitch:a,bearing:c}=o,u=r.isMoving();u&&(o.cameraElevationReference="sea");const d=Oo(o,{...No(r.transform),...t});if(u&&(o.cameraElevationReference="ground"),d&&n){const m=this._deferredEvents;m.move=!0,m.zoom||(m.zoom=i!==o.zoom),m.rotate||(m.rotate=c!==o.bearing),m.pitch||(m.pitch=a!==o.pitch)}return u||Oo(r.transform,t),d}_updateSettings(t,n){const r=this._map;let o=!1;for(const i of Ac)if(i in t&&!Fe(t[i],n[i])){o=!0;const a=r[`set${i[0].toUpperCase()}${i.slice(1)}`];a==null||a.call(r,t[i])}return o}_updateStyle(t,n){if(t.cursor!==n.cursor&&(this._map.getCanvas().style.cursor=t.cursor||""),t.mapStyle!==n.mapStyle){const{mapStyle:r=Lo,styleDiffing:o=!0}=t,i={diff:o};return"localIdeographFontFamily"in t&&(i.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(Ao(r),i),!0}return!1}_updateStyleComponents(t,n){const r=this._map;let o=!1;return r.isStyleLoaded()&&("light"in t&&r.setLight&&!Fe(t.light,n.light)&&(o=!0,r.setLight(t.light)),"fog"in t&&r.setFog&&!Fe(t.fog,n.fog)&&(o=!0,r.setFog(t.fog)),"terrain"in t&&r.setTerrain&&!Fe(t.terrain,n.terrain)&&(!t.terrain||r.getSource(t.terrain.source))&&(o=!0,r.setTerrain(t.terrain))),o}_updateHandlers(t,n){var r,o;const i=this._map;let a=!1;for(const c of Lc){const u=(r=t[c])!==null&&r!==void 0?r:!0,d=(o=n[c])!==null&&o!==void 0?o:!0;Fe(u,d)||(a=!0,u?i[c].enable(u):i[c].disable())}return a}_queryRenderedFeatures(t){const n=this._map,r=n.transform,{interactiveLayerIds:o=[]}=this.props;try{return n.transform=this._renderTransform,n.queryRenderedFeatures(t,{layers:o.filter(n.getLayer.bind(n))})}catch{return[]}finally{n.transform=r}}_updateHover(t){var n;const{props:r}=this;if(r.interactiveLayerIds&&(r.onMouseMove||r.onMouseEnter||r.onMouseLeave)){const i=t.type,a=((n=this._hoveredFeatures)===null||n===void 0?void 0:n.length)>0,c=this._queryRenderedFeatures(t.point),u=c.length>0;!u&&a&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=c,u&&!a&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=i}else this._hoveredFeatures=null}_fireEvent(t,n,r){const o=this._map,i=o.transform,a=typeof n=="string"?n:n.type;return a==="move"&&this._updateViewState(this.props,!1),a in gr&&(typeof n=="object"&&(n.viewState=No(i)),this._map.isMoving())?(o.transform=this._renderTransform,t.call(o,n,r),o.transform=i,o):(t.call(o,n,r),o)}_onBeforeRepaint(){const t=this._map;this._internalUpdate=!0;for(const r in this._deferredEvents)this._deferredEvents[r]&&t.fire(r);this._internalUpdate=!1;const n=this._map.transform;t.transform=this._renderTransform,this._onAfterRepaint=()=>{Eo(this._renderTransform,n),t.transform=n}}}Wt.savedMaps=[];function Mc(){let e=null;if(typeof location<"u"){const t=/access_token=([^&\/]*)/.exec(location.search);e=t&&t[1]}try{e=e||process.env.MapboxAccessToken}catch{}try{e=e||process.env.REACT_APP_MAPBOX_ACCESS_TOKEN}catch{}return e}const Rc=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function Dc(e){if(!e)return null;const t=e.map,n={getMap:()=>t,getCenter:()=>e.transform.center,getZoom:()=>e.transform.zoom,getBearing:()=>e.transform.bearing,getPitch:()=>e.transform.pitch,getPadding:()=>e.transform.padding,getBounds:()=>e.transform.getBounds(),project:r=>{const o=t.transform;t.transform=e.transform;const i=t.project(r);return t.transform=o,i},unproject:r=>{const o=t.transform;t.transform=e.transform;const i=t.unproject(r);return t.transform=o,i},queryTerrainElevation:(r,o)=>{const i=t.transform;t.transform=e.transform;const a=t.queryTerrainElevation(r,o);return t.transform=i,a},queryRenderedFeatures:(r,o)=>{const i=t.transform;t.transform=e.transform;const a=t.queryRenderedFeatures(r,o);return t.transform=i,a}};for(const r of Ic(t))!(r in n)&&!Rc.includes(r)&&(n[r]=t[r].bind(t));return n}function Ic(e){const t=new Set;let n=e;for(;n;){for(const r of Object.getOwnPropertyNames(n))r[0]!=="_"&&typeof e[r]=="function"&&r!=="fire"&&r!=="setEventedParent"&&t.add(r);n=Object.getPrototypeOf(n)}return Array.from(t)}const Bc=typeof document<"u"?S.useLayoutEffect:S.useEffect,Vc=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function Pc(e,t){for(const r of Vc)r in t&&(e[r]=t[r]);const{RTLTextPlugin:n="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"}=t;n&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()==="unavailable"&&e.setRTLTextPlugin(n,r=>{r&&console.error(r)},!0)}const Zt=Q.createContext(null);function Fc(e,t,n){const r=S.useContext($c),[o,i]=S.useState(null),a=S.useRef(),{current:c}=S.useRef({mapLib:null,map:null});S.useEffect(()=>{const m=e.mapLib;let g=!0,y;return Promise.resolve(m||n).then(h=>{if(!g)return;if(!h)throw new Error("Invalid mapLib");const b="Map"in h?h:h.default;if(!b.Map)throw new Error("Invalid mapLib");if(Pc(b,e),!b.supported||b.supported(e))e.reuseMaps&&(y=Wt.reuse(e,a.current)),y||(y=new Wt(b.Map,e,a.current)),c.map=Dc(y),c.mapLib=b,i(y),r==null||r.onMapMount(c.map,e.id);else throw new Error("Map is not supported by this browser")}).catch(h=>{const{onError:b}=e;b?b({type:"error",target:null,originalEvent:null,error:h}):console.error(h)}),()=>{g=!1,y&&(r==null||r.onMapUnmount(e.id),e.reuseMaps?y.recycle():y.destroy())}},[]),Bc(()=>{o&&o.setProps(e)}),S.useImperativeHandle(t,()=>c.map,[o]);const u=S.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),d={height:"100%"};return Q.createElement("div",{id:e.id,ref:a,style:u},o&&Q.createElement(Zt.Provider,{value:c},Q.createElement("div",{"mapboxgl-children":"",style:d},e.children)))}const zc=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function Et(e,t){if(!e||!t)return;const n=e.style;for(const r in t){const o=t[r];Number.isFinite(o)&&!zc.test(r)?n[r]=`${o}px`:n[r]=o}}function qc(e,t){const{map:n,mapLib:r}=S.useContext(Zt),o=S.useRef({props:e});o.current.props=e;const i=S.useMemo(()=>{let f=!1;Q.Children.forEach(e.children,w=>{w&&(f=!0)});const x={...e,element:f?document.createElement("div"):null},_=new r.Marker(x);return _.setLngLat([e.longitude,e.latitude]),_.getElement().addEventListener("click",w=>{var E,C;(C=(E=o.current.props).onClick)===null||C===void 0||C.call(E,{type:"click",target:_,originalEvent:w})}),_.on("dragstart",w=>{var E,C;const v=w;v.lngLat=i.getLngLat(),(C=(E=o.current.props).onDragStart)===null||C===void 0||C.call(E,v)}),_.on("drag",w=>{var E,C;const v=w;v.lngLat=i.getLngLat(),(C=(E=o.current.props).onDrag)===null||C===void 0||C.call(E,v)}),_.on("dragend",w=>{var E,C;const v=w;v.lngLat=i.getLngLat(),(C=(E=o.current.props).onDragEnd)===null||C===void 0||C.call(E,v)}),_},[]);S.useEffect(()=>(i.addTo(n.getMap()),()=>{i.remove()}),[]);const{longitude:a,latitude:c,offset:u,style:d,draggable:m=!1,popup:g=null,rotation:y=0,rotationAlignment:h="auto",pitchAlignment:b="auto"}=e;return S.useEffect(()=>{Et(i.getElement(),d)},[d]),S.useImperativeHandle(t,()=>i,[]),(i.getLngLat().lng!==a||i.getLngLat().lat!==c)&&i.setLngLat([a,c]),u&&!Ec(i.getOffset(),u)&&i.setOffset(u),i.isDraggable()!==m&&i.setDraggable(m),i.getRotation()!==y&&i.setRotation(y),i.getRotationAlignment()!==h&&i.setRotationAlignment(h),i.getPitchAlignment()!==b&&i.setPitchAlignment(b),i.getPopup()!==g&&i.setPopup(g),Os.createPortal(e.children,i.getElement())}S.memo(S.forwardRef(qc));function Do(e){return new Set(e?e.trim().split(/\s+/):[])}function Wc(e,t){const{map:n,mapLib:r}=S.useContext(Zt),o=S.useMemo(()=>document.createElement("div"),[]),i=S.useRef({props:e});i.current.props=e;const a=S.useMemo(()=>{const c={...e},u=new r.Popup(c);return u.setLngLat([e.longitude,e.latitude]),u.once("open",d=>{var m,g;(g=(m=i.current.props).onOpen)===null||g===void 0||g.call(m,d)}),u},[]);if(S.useEffect(()=>{const c=u=>{var d,m;(m=(d=i.current.props).onClose)===null||m===void 0||m.call(d,u)};return a.on("close",c),a.setDOMContent(o).addTo(n.getMap()),()=>{a.off("close",c),a.isOpen()&&a.remove()}},[]),S.useEffect(()=>{Et(a.getElement(),e.style)},[e.style]),S.useImperativeHandle(t,()=>a,[]),a.isOpen()&&((a.getLngLat().lng!==e.longitude||a.getLngLat().lat!==e.latitude)&&a.setLngLat([e.longitude,e.latitude]),e.offset&&!Fe(a.options.offset,e.offset)&&a.setOffset(e.offset),(a.options.anchor!==e.anchor||a.options.maxWidth!==e.maxWidth)&&(a.options.anchor=e.anchor,a.setMaxWidth(e.maxWidth)),a.options.className!==e.className)){const c=Do(a.options.className),u=Do(e.className);for(const d of c)u.has(d)||a.removeClassName(d);for(const d of u)c.has(d)||a.addClassName(d);a.options.className=e.className}return Os.createPortal(e.children,o)}const Uc=S.memo(S.forwardRef(Wc));function dn(e,t,n,r){const o=S.useContext(Zt),i=S.useMemo(()=>e(o),[]);return S.useEffect(()=>{const a=t,c=null,u=typeof t=="function"?t:null,{map:d}=o;return d.hasControl(i)||(d.addControl(i,a==null?void 0:a.position),c&&c(o)),()=>{u&&u(o),d.hasControl(i)&&d.removeControl(i)}},[]),i}function Zc(e){const t=dn(({mapLib:n})=>new n.AttributionControl(e),{position:e.position});return S.useEffect(()=>{Et(t._container,e.style)},[e.style]),null}S.memo(Zc);function Hc(e){const t=dn(({mapLib:n})=>new n.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return S.useEffect(()=>{Et(t._controlContainer,e.style)},[e.style]),null}S.memo(Hc);function Kc(e,t){const n=S.useRef({props:e}),r=dn(({mapLib:o})=>{const i=new o.GeolocateControl(e),a=i._setupUI;return i._setupUI=c=>{i._container.hasChildNodes()||a(c)},i.on("geolocate",c=>{var u,d;(d=(u=n.current.props).onGeolocate)===null||d===void 0||d.call(u,c)}),i.on("error",c=>{var u,d;(d=(u=n.current.props).onError)===null||d===void 0||d.call(u,c)}),i.on("outofmaxbounds",c=>{var u,d;(d=(u=n.current.props).onOutOfMaxBounds)===null||d===void 0||d.call(u,c)}),i.on("trackuserlocationstart",c=>{var u,d;(d=(u=n.current.props).onTrackUserLocationStart)===null||d===void 0||d.call(u,c)}),i.on("trackuserlocationend",c=>{var u,d;(d=(u=n.current.props).onTrackUserLocationEnd)===null||d===void 0||d.call(u,c)}),i},{position:e.position});return n.current.props=e,S.useImperativeHandle(t,()=>r,[]),S.useEffect(()=>{Et(r._container,e.style)},[e.style]),null}S.memo(S.forwardRef(Kc));function Gc(e){const t=dn(({mapLib:n})=>new n.NavigationControl(e),{position:e.position});return S.useEffect(()=>{Et(t._container,e.style)},[e.style]),null}const Yc=S.memo(Gc);function Xc(e){const t=dn(({mapLib:i})=>new i.ScaleControl(e),{position:e.position}),n=S.useRef(e),r=n.current;n.current=e;const{style:o}=e;return e.maxWidth!==void 0&&e.maxWidth!==r.maxWidth&&(t.options.maxWidth=e.maxWidth),e.unit!==void 0&&e.unit!==r.unit&&t.setUnit(e.unit),S.useEffect(()=>{Et(t._container,o)},[o]),null}S.memo(Xc);function Bn(e,t){if(!e)throw new Error(t)}function Qc(e,t,n,r){if(Bn(n.id===r.id,"layer id changed"),Bn(n.type===r.type,"layer type changed"),n.type==="custom"||r.type==="custom")return;const{layout:o={},paint:i={},filter:a,minzoom:c,maxzoom:u,beforeId:d}=n;if(d!==r.beforeId&&e.moveLayer(t,d),o!==r.layout){const m=r.layout||{};for(const g in o)Fe(o[g],m[g])||e.setLayoutProperty(t,g,o[g]);for(const g in m)o.hasOwnProperty(g)||e.setLayoutProperty(t,g,void 0)}if(i!==r.paint){const m=r.paint||{};for(const g in i)Fe(i[g],m[g])||e.setPaintProperty(t,g,i[g]);for(const g in m)i.hasOwnProperty(g)||e.setPaintProperty(t,g,void 0)}Fe(a,r.filter)||e.setFilter(t,a),(c!==r.minzoom||u!==r.maxzoom)&&e.setLayerZoomRange(t,c,u)}function Jc(e,t,n){if(e.style&&e.style._loaded&&(!("source"in n)||e.getSource(n.source))){const r={...n,id:t};delete r.beforeId,e.addLayer(r,n.beforeId)}}let e0=0;function t0(e){const t=S.useContext(Zt).map.getMap(),n=S.useRef(e),[,r]=S.useState(0),o=S.useMemo(()=>e.id||`jsx-layer-${e0++}`,[]);if(S.useEffect(()=>{if(t){const a=()=>r(c=>c+1);return t.on("styledata",a),a(),()=>{t.off("styledata",a),t.style&&t.style._loaded&&t.getLayer(o)&&t.removeLayer(o)}}},[t]),t&&t.style&&t.getLayer(o))try{Qc(t,o,e,n.current)}catch(a){console.warn(a)}else Jc(t,o,e);return n.current=e,null}let n0=0;function r0(e,t,n){if(e.style&&e.style._loaded){const r={...n};return delete r.id,delete r.children,e.addSource(t,r),e.getSource(t)}return null}function o0(e,t,n){Bn(t.id===n.id,"source id changed"),Bn(t.type===n.type,"source type changed");let r="",o=0;for(const a in t)a!=="children"&&a!=="id"&&!Fe(n[a],t[a])&&(r=a,o++);if(!o)return;const i=t.type;i==="geojson"?e.setData(t.data):i==="image"?e.updateImage({url:t.url,coordinates:t.coordinates}):"setCoordinates"in e&&o===1&&r==="coordinates"?e.setCoordinates(t.coordinates):"setUrl"in e&&r==="url"?e.setUrl(t.url):"setTiles"in e&&r==="tiles"?e.setTiles(t.tiles):console.warn(`Unable to update <Source> prop: ${r}`)}function s0(e){const t=S.useContext(Zt).map.getMap(),n=S.useRef(e),[,r]=S.useState(0),o=S.useMemo(()=>e.id||`jsx-source-${n0++}`,[]);S.useEffect(()=>{if(t){const a=()=>setTimeout(()=>r(c=>c+1),0);return t.on("styledata",a),a(),()=>{var c;if(t.off("styledata",a),t.style&&t.style._loaded&&t.getSource(o)){const u=(c=t.getStyle())===null||c===void 0?void 0:c.layers;if(u)for(const d of u)d.source===o&&t.removeLayer(d.id);t.removeSource(o)}}}},[t]);let i=t&&t.style&&t.getSource(o);return i?o0(i,e,n.current):i=r0(t,o,e),n.current=e,i&&Q.Children.map(e.children,a=>a&&S.cloneElement(a,{source:o}))||null}const i0=import("mapbox-gl"),ei=Q.forwardRef(function(t,n){return Fc(t,n,i0)}),ti=Uc,ni=Yc,ri=t0,oi=s0,a0="_mapContainer_84pkf_2",l0={mapContainer:a0};ga.accessToken="pk.eyJ1IjoiY2ljbGljYSIsImEiOiJja3llODhxZ2UwYzF1Mm5xcHVhMzI3anhqIn0.-r56FLAzEH57eVsB2ZeVcA";const si=({initialView:e={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:t=17,minZoom:n=8,mapStyle:r,firstSymbolLayer:o,cssProps:i={},onClick:a="",interactiveLayers:c=[],popUp:u=!1,sources:d=[],layers:m=[]})=>{const g=S.useRef(),[y,h]=S.useState(null),b=ya.useSelector(f=>f.mapState.showTexts);return S.useEffect(()=>{if(g.current){const f=g.current.getMap();f.getStyle().layers.map(_=>{_.type=="symbol"&&_.id!="professionals"&&(b?f.setLayoutProperty(_.id,"visibility","visible"):f.setLayoutProperty(_.id,"visibility","none"))})}},[b]),l.jsx("div",{className:`${l0.mapContainer}`,style:i,children:l.jsxs(ei,{initialViewState:e,ref:g,hash:!1,maxZoom:t,minZoom:n,mapStyle:r,onClick:a,interactiveLayerIds:c,children:[d.length&&d.map((f,x)=>l.jsx(oi,{...f,children:m.length&&m.map((_,w)=>{if(_.sourceId==f.id)return l.jsx(ri,{..._.layer,beforeId:o},w)})},x)),l.jsx(ni,{position:"bottom-right",visualizePitch:!0}),u&&y&&l.jsx(ti,{longitude:u.longitude,latitude:u.latitude,anchor:u.anchor,onClose:()=>h(null),children:u.content})]})})};si.propTypes={initialView:s.shape({latitude:s.number.isRequired,longitude:s.number.isRequired,zoom:s.number.isRequired}),mapStyle:s.object,firstSymbolLayer:s.string,cssProps:s.object,style:s.object,maxZoom:s.number,minZoom:s.number,onClick:s.func,interactiveLayers:s.array,popUp:s.shape({latitude:s.number,longitude:s.number,anchor:s.string,content:s.element}),textsUrl:s.string,sources:s.arrayOf(s.shape({id:s.string,type:s.string,url:s.string,data:s.object})),layers:s.arrayOf(s.shape({sourceId:s.string,layer:s.shape({id:s.string,type:s.string,sourceLayer:s.string,minZoom:s.number,maxZoom:s.number,paint:s.object})}))};const c0="_mapContainer_1r3q4_3",u0={mapContainer:c0},d0="_FeaturePopUp_oymb1_2",f0="_title_oymb1_10",p0="_button_oymb1_15",yr={FeaturePopUp:d0,title:f0,button:p0},m0=({props:e})=>{const{t}=oe.useTranslation();return l.jsx("div",{className:yr.FeaturePopUp,children:e.map(n=>n.type!="button"?l.jsxs("p",{children:[l.jsxs("span",{className:yr.title,children:[l.jsx(oe.Trans,{i18nKey:n.name,components:{sup:l.jsx("sup",{})},shouldUnescape:!0}),":"]}),n.type&&n.type=="html"?l.jsx("span",{dangerouslySetInnerHTML:{__html:n.value}}):isNaN(n.value)?l.jsx(l.Fragment,{children:t(n.value)}):l.jsxs(l.Fragment,{children:[n.value.toLocaleString("de",{maximumFractionDigits:2})," ",t(n.unit)]})]}):l.jsx("button",{className:yr.button,onClick:()=>n.onClick(),children:n.name}))})},ii=({initialView:e={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:t=17,minZoom:n=8,mapStyle:r,firstSymbolLayer:o,cssProps:i={},onClick:a="",interactiveLayers:c=[],sources:u=[],layers:d=[],popUpParams:m,onClosePopUp:g,showTexts:y,hash:h=!1})=>{const b=S.useRef();return S.useEffect(()=>{if(b.current){const f=b.current.getMap();f.getStyle().layers.map(_=>{_.type=="symbol"&&_.id!="professionals"&&(y?f.setLayoutProperty(_.id,"visibility","visible"):f.setLayoutProperty(_.id,"visibility","none"))})}},[y]),S.useEffect(()=>{let f=new ba.Protocol;return ir.addProtocol("pmtiles",f.tile),()=>{ir.removeProtocol("pmtiles")}},[]),l.jsx("div",{className:`${u0.mapContainer}`,style:i,children:l.jsxs(ei,{mapLib:ir,initialViewState:e,ref:b,hash:h,maxZoom:t,minZoom:n,mapStyle:r,onClick:a,interactiveLayerIds:c,children:[u.length&&u.map((f,x)=>l.jsx(oi,{...f,children:d.length&&d.map((_,w)=>{if(_.sourceId==f.id)return l.jsx(ri,{..._.layer,beforeId:o,filter:_.filters?_.filters:["all"],layout:{visibility:_.layer.visibility||"visible"}},w)})},x)),l.jsx(ni,{position:"bottom-right",visualizePitch:!0}),m&&l.jsx(ti,{longitude:m.lng,latitude:m.lat,onClose:g,children:l.jsx(m0,{props:m.props})})]})})};ii.propTypes={initialView:s.shape({latitude:s.number.isRequired,longitude:s.number.isRequired,zoom:s.number.isRequired}),mapStyle:s.string,firstSymbolLayer:s.string,cssProps:s.object,style:s.object,maxZoom:s.number,minZoom:s.number,onClick:s.func,interactiveLayers:s.array,popUp:s.bool,sources:s.arrayOf(s.shape({id:s.string,type:s.string,url:s.string,data:s.object})),layers:s.arrayOf(s.shape({sourceId:s.string,layer:s.shape({id:s.string,type:s.string,sourceLayer:s.string,minzoom:s.number,maxzoom:s.number,paint:s.object,visibility:s.string}),filters:s.array})),showTexts:s.bool,popUpParams:s.object,onClosePopUp:s.func};const h0="_sectionBar_yf2vy_2",g0="_leftContent_yf2vy_14",y0="_textContainer_yf2vy_20",b0="_title_yf2vy_27",v0="_subtitle_yf2vy_33",x0="_rightContent_yf2vy_38",Ct={sectionBar:h0,leftContent:g0,textContainer:y0,title:b0,subtitle:v0,rightContent:x0},ai=({leftIcon:e,title:t,subtitle:n,rightContent:r,mainColor:o,width:i,titleColor:a="#605b56",subTitleColor:c="#605b56",borderTop:u=!1})=>{const{t:d}=oe.useTranslation();return l.jsxs("div",{className:Ct.sectionBar,style:{width:i&&i,borderTop:u?"1px solid #000":"0px"},children:[l.jsxs("div",{className:Ct.leftContent,children:[e&&l.jsx("img",{src:e,alt:"Icono",className:Ct.icon}),l.jsxs("div",{className:Ct.textContainer,children:[l.jsx("div",{className:Ct.title,style:{color:a},children:d(t)}),n&&l.jsx("div",{className:Ct.subtitle,style:{color:c},children:n})]})]}),l.jsx("div",{className:Ct.rightContent,children:r})]})};ai.propTypes={leftIcon:s.string,title:s.string.isRequired,subtitle:s.string,rightContent:s.node,mainColor:s.string,width:s.oneOfType([s.string,s.number]),borderTop:s.bool};const C0=va.createSlice({name:"mapSlice",initialState:{showTexts:!0,sliderSelectedYear:2025,activeIndicatorKey:0,activeIndicatorType:"cat",activeIndicatorUnit:null},reducers:{setShowTexts:(e,t)=>{e.showTexts=t.payload},setYear:(e,t)=>{e.sliderSelectedYear=t.payload},setActiveIndicatorKey:(e,t)=>{e.activeIndicatorKey=t.payload},setActiveIndicatorType:(e,t)=>{e.activeIndicatorType=t.payload},setActiveIndicatorUnit:(e,t)=>{e.activeIndicatorUnit=t.payload}}}),{setShowTexts:Vp,setYear:Pp,setActiveIndicatorKey:Fp,setActiveIndicatorType:zp,setActiveIndicatorUnit:qp}=C0.actions,_0="data:image/svg+xml,%3csvg%20width='42'%20height='42'%20viewBox='0%200%2042%2042'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='21'%20cy='21'%20r='20.25'%20fill='%23FDFDFD'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20d='M15.2722%2012.6627C15.2722%2011.8929%2016.1055%2011.4118%2016.7722%2011.7967L31.5641%2020.3368C32.2308%2020.7217%2032.2308%2021.684%2031.5641%2022.0689L16.7722%2030.609C16.1055%2030.9939%2015.2722%2030.5128%2015.2722%2029.743L15.2722%2012.6627Z'%20fill='%23605B56'/%3e%3c/svg%3e",w0="data:image/svg+xml,%3csvg%20width='42'%20height='42'%20viewBox='0%200%2042%2042'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='21'%20cy='21'%20r='20.25'%20fill='%23FDFDFD'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3crect%20x='15'%20y='12'%20width='4'%20height='19'%20rx='1'%20fill='%23605B56'/%3e%3crect%20x='23'%20y='12'%20width='4'%20height='19'%20rx='1'%20fill='%23605B56'/%3e%3c/svg%3e";function li(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=li(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ht(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=li(e))&&(r&&(r+=" "),r+=t);return r}function Io(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function S0(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",c=!0;for(let u=0;u<i.length;u+=1){const d=i[u];d&&(a+=(c===!0?"":" ")+t(d),c=!1,n&&n[d]&&(a+=" "+n[d]))}r[o]=a}return r}const T0=Q.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const j0=()=>Q.useContext(T0)??!1;function ci(...e){const t=Q.useRef(void 0),n=Q.useCallback(r=>{const o=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,c=a(r);return typeof c=="function"?c:()=>{a(null)}}return i.current=r,()=>{i.current=null}});return()=>{o.forEach(i=>i==null?void 0:i())}},e);return Q.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function an(e){return typeof e=="string"}function k0(e,t,n){return e===void 0||an(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Mn(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Bo(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function $0(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const h=ht(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),b={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},f={...n,...o,...r};return h.length>0&&(f.className=h),Object.keys(b).length>0&&(f.style=b),{props:f,internalRef:void 0}}const a=Mn({...o,...r}),c=Bo(r),u=Bo(o),d=t(a),m=ht(d==null?void 0:d.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g={...d==null?void 0:d.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},y={...d,...n,...u,...c};return m.length>0&&(y.className=m),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:d.ref}}function E0(e,t,n){return typeof e=="function"?e(t,n):e}function ft(e){var g;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:E0(n,r),{props:c,internalRef:u}=$0({...i,externalSlotProps:a}),d=ci(u,a==null?void 0:a.ref,(g=e.additionalProps)==null?void 0:g.ref);return k0(t,{...c,ref:d},r)}function Rn(e){return e&&e.ownerDocument||document}function N0(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:i}=Q.useRef(t!==void 0),[a,c]=Q.useState(n),u=i?t:a;if(process.env.NODE_ENV!=="production"){Q.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${o} state of ${r} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
23
+ ${g&&vt.active}`,disabled:b,children:f}),o&&l.jsx(Je,{text:y,position:i})]},u)})})};Bs.propTypes={buttons:s.arrayOf(s.shape({icon:s.node.isRequired,activeIcon:s.node,isActive:s.bool,name:s.string,onClick:s.func,disabled:s.bool})).isRequired,orientation:s.oneOf(["horizontal","vertical"]),showName:s.bool,namePosition:s.oneOf(["left","right"]),useTooltip:s.bool,tooltipPosition:s.oneOf(["top","bottom","left","right"])};const cl="_indicatorsCategory_11gdl_2",ul="_title_11gdl_6",dl="_mainTitle_11gdl_14",vn={indicatorsCategory:cl,title:ul,mainTitle:dl},yt=({isOpen:e,onClick:t,children:n,color:r,activeColor:o="#F8A925",title:i="Title",height:a=53,titleFontStyles:c,showBottomBar:u=!0,titleMarginChildren:d=15,mainTitle:m=!1})=>{const{t:g}=se.useTranslation();return l.jsxs(zr.motion.div,{className:vn.indicatorsCategory,initial:{height:`${a}px`},animate:{height:e?"auto":`${a}px`},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:e&&u?`1px solid ${o}`:"0px",minHeight:m?"70px":"50px"},children:[l.jsxs("h2",{style:{...c},className:`${vn.title} ${m&&vn.mainTitle}`,onClick:t,children:[l.jsx("span",{style:{color:e?o:r},children:e?"-":"+"}),l.jsx("span",{style:{color:e?o:r},children:g(i)})]}),l.jsx("div",{className:vn.content,style:{padding:m?"20px 0px":"0px"},children:n})]})};yt.propTypes={isOpen:s.bool,onClick:s.func,children:s.node,color:s.string,activeColor:s.string,title:s.string,height:s.number,showBottomBar:s.bool,titleFontStyles:s.object};const fl=()=>l.jsx("div",{children:"EditAmbit"}),pl="data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2015%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1%201L13.9996%2013.9996'%20stroke='%23FDFDFD'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20d='M14%201L1.00044%2013.9996'%20stroke='%23FDFDFD'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e",ml="_AppliedFiltersContainer_cokx9_2",hl="_AppliedFilterContent_cokx9_11",_o={AppliedFiltersContainer:ml,AppliedFilterContent:hl},ye=qr.create(e=>({activeCategory:"",activeSubCategory:"",selectedIndicator:"",tematicalFiltersSelected:[],fontColor:"#605B56",inputsColor:"#605B56",activeFiltersType:null})),Ps=({title:e,onClick:t,isOpen:n=!0,textColor:r="#ffffff",backgroundColor:o="#605B5680",activeColor:i,fontColor:a="#605B56"})=>{const{t:c}=se.useTranslation(),{tematicalFiltersSelected:u,activeFiltersType:d}=ye(y=>y),m=y=>{ye.setState(h=>({tematicalFiltersSelected:h.tematicalFiltersSelected.filter(b=>b.code!==y)}))},g=()=>{d=="applied"?ye.setState(()=>({activeFiltersType:null})):ye.setState(()=>({activeFiltersType:"applied"}))};return l.jsx(yt,{isOpen:n,onClick:g,title:e?c(e):"Applied Filters",activeColor:i,mainTitle:!0,color:a,children:l.jsx("div",{className:_o.AppliedFiltersContainer,children:u==null?void 0:u.map((y,h)=>l.jsxs("div",{className:_o.AppliedFilterContent,style:{color:r,background:o},children:[c(y.name),l.jsx("img",{src:pl,alt:"CloseIcon",onClick:()=>m(y.code),style:{cursor:"pointer"}})]},h))})})};Ps.propTypes={isOpen:s.bool,onClick:s.func,title:s.string,textColor:s.string,backgroundColor:s.string,indicators:s.arrayOf(s.shape({title:s.string.isRequired,Codename:s.string.isRequired})),activeColor:s.string};const gl="_layersList_cn837_25",yl="_layerName_cn837_34",wo={layersList:gl,layerName:yl},Vs=({title:e,isOpen:t=!0,fontColor:n="#605B56",backgroundColor:r="#605B5680",activeColor:o,geoLayers:i=[],onGeoLayersChange:a})=>{const{t:c}=se.useTranslation(),{activeFiltersType:u}=ye(g=>g),d=()=>{u==="geographical"?ye.setState({activeFiltersType:null}):ye.setState({activeFiltersType:"geographical"})},m=g=>{const y=i.map(h=>({...h,active:h.name===g.name}));a==null||a(y)};return l.jsx(yt,{isOpen:u==="geographical",onClick:d,title:e?c(e):"Geographical Filters",activeColor:o,color:n,mainTitle:!0,children:l.jsx("div",{className:wo.layersList,children:i.map(g=>l.jsx("div",{className:wo.layerName,style:{color:g.active?o:n,fontWeight:g.active?"bold":"normal"},onClick:()=>m(g),children:c(g.name)},g.name))})})};Vs.propTypes={isOpen:s.bool,onClick:s.func,title:s.string,textColor:s.string,backgroundColor:s.string,activeColor:s.string};const bl="_checkboxContainer_1nxra_2",vl={checkboxContainer:bl},Fs=({onClick:e,containerStyles:t,color:n="#605B56",indicator:r,value:o})=>{const{t:i}=se.useTranslation(),{title:a}=r||{},{fontColor:c,inputsColor:u}=ye(d=>d);return l.jsxs("div",{style:{...t,color:n},role:"checkbox",className:vl.checkboxContainer,onClick:e,children:[l.jsx("input",{type:"checkbox",checked:typeof o=="boolean"?o:!0,value:o,readOnly:!0,style:{border:`1.5px solid ${o?u:c}`,backgroundColor:o?u:"white"}}),l.jsx("span",{className:"checkmark",children:i(a)})]})};Fs.propTypes={onClick:s.func,value:s.bool,containerStyles:s.object,color:s.string,indicator:s.shape({title:s.string,codename:s.array}),checkedColor:s.string};function $r(e,t){return $r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},$r(e,t)}function xl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$r(e,t)}function mr(e){return e&&e.stopPropagation&&e.stopPropagation(),e&&e.preventDefault&&e.preventDefault(),!1}function hr(e){return e==null?[]:Array.isArray(e)?e.slice():[e]}function xn(e){return e!==null&&e.length===1?e[0]:e.slice()}function Cn(e){Object.keys(e).forEach(t=>{typeof document<"u"&&document.addEventListener(t,e[t],!1)})}function xt(e,t){return Er(function(n,r){let o=n;return o<=r.min&&(o=r.min),o>=r.max&&(o=r.max),o}(e,t),t)}function Er(e,t){const n=(e-t.min)%t.step;let r=e-n;return 2*Math.abs(n)>=t.step&&(r+=n>0?t.step:-t.step),parseFloat(r.toFixed(5))}let Nr=function(e){function t(r){var o;(o=e.call(this,r)||this).onKeyUp=()=>{o.onEnd()},o.onMouseUp=()=>{o.onEnd(o.getMouseEventMap())},o.onTouchEnd=c=>{c.preventDefault(),o.onEnd(o.getTouchEventMap())},o.onBlur=()=>{o.setState({index:-1},o.onEnd(o.getKeyDownEventMap()))},o.onMouseMove=c=>{o.setState({pending:!0});const u=o.getMousePosition(c),d=o.getDiffPosition(u[0]),m=o.getValueFromPosition(d);o.move(m)},o.onTouchMove=c=>{if(c.touches.length>1)return;o.setState({pending:!0});const u=o.getTouchPosition(c);if(o.isScrolling===void 0){const g=u[0]-o.startPosition[0],y=u[1]-o.startPosition[1];o.isScrolling=Math.abs(y)>Math.abs(g)}if(o.isScrolling)return void o.setState({index:-1});const d=o.getDiffPosition(u[0]),m=o.getValueFromPosition(d);o.move(m)},o.onKeyDown=c=>{if(!(c.ctrlKey||c.shiftKey||c.altKey||c.metaKey))switch(o.setState({pending:!0}),c.key){case"ArrowLeft":case"ArrowDown":case"Left":case"Down":c.preventDefault(),o.moveDownByStep();break;case"ArrowRight":case"ArrowUp":case"Right":case"Up":c.preventDefault(),o.moveUpByStep();break;case"Home":c.preventDefault(),o.move(o.props.min);break;case"End":c.preventDefault(),o.move(o.props.max);break;case"PageDown":c.preventDefault(),o.moveDownByStep(o.props.pageFn(o.props.step));break;case"PageUp":c.preventDefault(),o.moveUpByStep(o.props.pageFn(o.props.step))}},o.onSliderMouseDown=c=>{if(!o.props.disabled&&c.button!==2){if(o.setState({pending:!0}),!o.props.snapDragDisabled){const u=o.getMousePosition(c);o.forceValueFromPosition(u[0],d=>{o.start(d,u[0]),Cn(o.getMouseEventMap())})}mr(c)}},o.onSliderClick=c=>{if(!o.props.disabled&&o.props.onSliderClick&&!o.hasMoved){const u=o.getMousePosition(c),d=xt(o.calcValue(o.calcOffsetFromPosition(u[0])),o.props);o.props.onSliderClick(d)}},o.createOnKeyDown=c=>u=>{o.props.disabled||(o.start(c),Cn(o.getKeyDownEventMap()),mr(u))},o.createOnMouseDown=c=>u=>{if(o.props.disabled||u.button===2)return;o.setState({pending:!0});const d=o.getMousePosition(u);o.start(c,d[0]),Cn(o.getMouseEventMap()),mr(u)},o.createOnTouchStart=c=>u=>{if(o.props.disabled||u.touches.length>1)return;o.setState({pending:!0});const d=o.getTouchPosition(u);o.startPosition=d,o.isScrolling=void 0,o.start(c,d[0]),Cn(o.getTouchEventMap()),function(m){m.stopPropagation&&m.stopPropagation()}(u)},o.handleResize=()=>{const c=window.setTimeout(()=>{o.pendingResizeTimeouts.shift(),o.resize()},0);o.pendingResizeTimeouts.push(c)},o.renderThumb=(c,u)=>{const d=o.props.thumbClassName+" "+o.props.thumbClassName+"-"+u+" "+(o.state.index===u?o.props.thumbActiveClassName:""),m={ref:y=>{o["thumb"+u]=y},key:o.props.thumbClassName+"-"+u,className:d,style:c,onMouseDown:o.createOnMouseDown(u),onTouchStart:o.createOnTouchStart(u),onFocus:o.createOnKeyDown(u),tabIndex:0,role:"slider","aria-orientation":o.props.orientation,"aria-valuenow":o.state.value[u],"aria-valuemin":o.props.min,"aria-valuemax":o.props.max,"aria-label":Array.isArray(o.props.ariaLabel)?o.props.ariaLabel[u]:o.props.ariaLabel,"aria-labelledby":Array.isArray(o.props.ariaLabelledby)?o.props.ariaLabelledby[u]:o.props.ariaLabelledby,"aria-disabled":o.props.disabled},g={index:u,value:xn(o.state.value),valueNow:o.state.value[u]};return o.props.ariaValuetext&&(m["aria-valuetext"]=typeof o.props.ariaValuetext=="string"?o.props.ariaValuetext:o.props.ariaValuetext(g)),o.props.renderThumb(m,g)},o.renderTrack=(c,u,d)=>{const m={key:o.props.trackClassName+"-"+c,className:o.props.trackClassName+" "+o.props.trackClassName+"-"+c,style:o.buildTrackStyle(u,o.state.upperBound-d)},g={index:c,value:xn(o.state.value)};return o.props.renderTrack(m,g)};let i=hr(r.value);i.length||(i=hr(r.defaultValue)),o.pendingResizeTimeouts=[];const a=[];for(let c=0;c<i.length;c+=1)i[c]=xt(i[c],r),a.push(c);return o.resizeObserver=null,o.resizeElementRef=w.createRef(),o.state={index:-1,upperBound:0,sliderLength:0,value:i,zIndices:a},o}xl(t,e);var n=t.prototype;return n.componentDidMount=function(){typeof window<"u"&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.resizeElementRef.current),this.resize())},t.getDerivedStateFromProps=function(r,o){const i=hr(r.value);return i.length?o.pending?null:{value:i.map(a=>xt(a,r))}:null},n.componentDidUpdate=function(){this.state.upperBound===0&&this.resize()},n.componentWillUnmount=function(){this.clearPendingResizeTimeouts(),this.resizeObserver&&this.resizeObserver.disconnect()},n.onEnd=function(r){r&&function(o){Object.keys(o).forEach(i=>{typeof document<"u"&&document.removeEventListener(i,o[i],!1)})}(r),this.hasMoved&&this.fireChangeEvent("onAfterChange"),this.setState({pending:!1}),this.hasMoved=!1},n.getValue=function(){return xn(this.state.value)},n.getClosestIndex=function(r){let o=Number.MAX_VALUE,i=-1;const{value:a}=this.state,c=a.length;for(let u=0;u<c;u+=1){const d=this.calcOffset(a[u]),m=Math.abs(r-d);m<o&&(o=m,i=u)}return i},n.getMousePosition=function(r){return[r["page"+this.axisKey()],r["page"+this.orthogonalAxisKey()]]},n.getTouchPosition=function(r){const o=r.touches[0];return[o["page"+this.axisKey()],o["page"+this.orthogonalAxisKey()]]},n.getKeyDownEventMap=function(){return{keydown:this.onKeyDown,keyup:this.onKeyUp,focusout:this.onBlur}},n.getMouseEventMap=function(){return{mousemove:this.onMouseMove,mouseup:this.onMouseUp}},n.getTouchEventMap=function(){return{touchmove:this.onTouchMove,touchend:this.onTouchEnd}},n.getValueFromPosition=function(r){const o=r/(this.state.sliderLength-this.state.thumbSize)*(this.props.max-this.props.min);return xt(this.state.startValue+o,this.props)},n.getDiffPosition=function(r){let o=r-this.state.startPosition;return this.props.invert&&(o*=-1),o},n.resize=function(){const{slider:r,thumb0:o}=this;if(!r||!o)return;const i=this.sizeKey(),a=r.getBoundingClientRect(),c=r[i],u=a[this.posMaxKey()],d=a[this.posMinKey()],m=o.getBoundingClientRect()[i.replace("client","").toLowerCase()],g=c-m,y=Math.abs(u-d);this.state.upperBound===g&&this.state.sliderLength===y&&this.state.thumbSize===m||this.setState({upperBound:g,sliderLength:y,thumbSize:m})},n.calcOffset=function(r){const o=this.props.max-this.props.min;return o===0?0:(r-this.props.min)/o*this.state.upperBound},n.calcValue=function(r){return r/this.state.upperBound*(this.props.max-this.props.min)+this.props.min},n.calcOffsetFromPosition=function(r){const{slider:o}=this,i=o.getBoundingClientRect(),a=i[this.posMaxKey()],c=i[this.posMinKey()];let u=r-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?a:c));return this.props.invert&&(u=this.state.sliderLength-u),u-=this.state.thumbSize/2,u},n.forceValueFromPosition=function(r,o){const i=this.calcOffsetFromPosition(r),a=this.getClosestIndex(i),c=xt(this.calcValue(i),this.props),u=this.state.value.slice();u[a]=c;for(let d=0;d<u.length-1;d+=1)if(u[d+1]-u[d]<this.props.minDistance)return;this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0,this.setState({value:u},()=>{o(a),this.fireChangeEvent("onChange")})},n.clearPendingResizeTimeouts=function(){do{const r=this.pendingResizeTimeouts.shift();clearTimeout(r)}while(this.pendingResizeTimeouts.length)},n.start=function(r,o){const i=this["thumb"+r];i&&i.focus();const{zIndices:a}=this.state;a.splice(a.indexOf(r),1),a.push(r),this.setState(c=>({startValue:c.value[r],startPosition:o!==void 0?o:c.startPosition,index:r,zIndices:a}))},n.moveUpByStep=function(r){r===void 0&&(r=this.props.step);const o=this.state.value[this.state.index],i=xt(this.props.invert&&this.props.orientation==="horizontal"?o-r:o+r,this.props);this.move(Math.min(i,this.props.max))},n.moveDownByStep=function(r){r===void 0&&(r=this.props.step);const o=this.state.value[this.state.index],i=xt(this.props.invert&&this.props.orientation==="horizontal"?o+r:o-r,this.props);this.move(Math.max(i,this.props.min))},n.move=function(r){const o=this.state.value.slice(),{index:i}=this.state,{length:a}=o,c=o[i];if(r===c)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;const{pearling:u,max:d,min:m,minDistance:g}=this.props;if(!u){if(i>0){const y=o[i-1];r<y+g&&(r=y+g)}if(i<a-1){const y=o[i+1];r>y-g&&(r=y-g)}}o[i]=r,u&&a>1&&(r>c?(this.pushSucceeding(o,g,i),function(y,h,b,f){for(let x=0;x<y;x+=1){const _=f-x*b;h[y-1-x]>_&&(h[y-1-x]=_)}}(a,o,g,d)):r<c&&(this.pushPreceding(o,g,i),function(y,h,b,f){for(let x=0;x<y;x+=1){const _=f+x*b;h[x]<_&&(h[x]=_)}}(a,o,g,m))),this.setState({value:o},this.fireChangeEvent.bind(this,"onChange"))},n.pushSucceeding=function(r,o,i){let a,c;for(a=i,c=r[a]+o;r[a+1]!==null&&c>r[a+1];a+=1,c=r[a]+o)r[a+1]=Er(c,this.props)},n.pushPreceding=function(r,o,i){for(let a=i,c=r[a]-o;r[a-1]!==null&&c<r[a-1];a-=1,c=r[a]-o)r[a-1]=Er(c,this.props)},n.axisKey=function(){return this.props.orientation==="vertical"?"Y":"X"},n.orthogonalAxisKey=function(){return this.props.orientation==="vertical"?"X":"Y"},n.posMinKey=function(){return this.props.orientation==="vertical"?this.props.invert?"bottom":"top":this.props.invert?"right":"left"},n.posMaxKey=function(){return this.props.orientation==="vertical"?this.props.invert?"top":"bottom":this.props.invert?"left":"right"},n.sizeKey=function(){return this.props.orientation==="vertical"?"clientHeight":"clientWidth"},n.fireChangeEvent=function(r){this.props[r]&&this.props[r](xn(this.state.value),this.state.index)},n.buildThumbStyle=function(r,o){const i={position:"absolute",touchAction:"none",willChange:this.state.index>=0?this.posMinKey():void 0,zIndex:this.state.zIndices.indexOf(o)+1};return i[this.posMinKey()]=r+"px",i},n.buildTrackStyle=function(r,o){const i={position:"absolute",willChange:this.state.index>=0?this.posMinKey()+","+this.posMaxKey():void 0};return i[this.posMinKey()]=r,i[this.posMaxKey()]=o,i},n.buildMarkStyle=function(r){var o;return(o={position:"absolute"})[this.posMinKey()]=r,o},n.renderThumbs=function(r){const{length:o}=r,i=[];for(let c=0;c<o;c+=1)i[c]=this.buildThumbStyle(r[c],c);const a=[];for(let c=0;c<o;c+=1)a[c]=this.renderThumb(i[c],c);return a},n.renderTracks=function(r){const o=[],i=r.length-1;o.push(this.renderTrack(0,0,r[0]));for(let a=0;a<i;a+=1)o.push(this.renderTrack(a+1,r[a],r[a+1]));return o.push(this.renderTrack(i+1,r[i],this.state.upperBound)),o},n.renderMarks=function(){let{marks:r}=this.props;const o=this.props.max-this.props.min+1;return typeof r=="boolean"?r=Array.from({length:o}).map((i,a)=>a):typeof r=="number"&&(r=Array.from({length:o}).map((i,a)=>a).filter(i=>i%r==0)),r.map(parseFloat).sort((i,a)=>i-a).map(i=>{const a=this.calcOffset(i),c={key:i,className:this.props.markClassName,style:this.buildMarkStyle(a)};return this.props.renderMark(c)})},n.render=function(){const r=[],{value:o}=this.state,i=o.length;for(let d=0;d<i;d+=1)r[d]=this.calcOffset(o[d],d);const a=this.props.withTracks?this.renderTracks(r):null,c=this.renderThumbs(r),u=this.props.marks?this.renderMarks():null;return w.createElement("div",{ref:d=>{this.slider=d,this.resizeElementRef.current=d},style:{position:"relative"},className:this.props.className+(this.props.disabled?" disabled":""),onMouseDown:this.onSliderMouseDown,onClick:this.onSliderClick},a,c,u)},t}(w.Component);Nr.displayName="ReactSlider",Nr.defaultProps={min:0,max:100,step:1,pageFn:e=>10*e,minDistance:0,defaultValue:0,orientation:"horizontal",className:"slider",thumbClassName:"thumb",thumbActiveClassName:"active",trackClassName:"track",markClassName:"mark",withTracks:!0,pearling:!1,disabled:!1,snapDragDisabled:!1,invert:!1,marks:[],renderThumb:e=>w.createElement("div",e),renderTrack:e=>w.createElement("div",e),renderMark:e=>w.createElement("span",e)};var Or=Nr;const Cl="_container_4u41i_2",_l="_unitLabel_4u41i_8",wl="_slider_4u41i_11",Sl="_thumb_4u41i_17",Tl="_track_4u41i_26",kl="_labels_4u41i_32",Ot={container:Cl,unitLabel:_l,slider:wl,thumb:Sl,track:Tl,labels:kl},zs=({min:e=0,max:t=100,step:n=1,onChange:r,width:o=300,unit:i,fontColor:a="#605B56",defaultValue:c,isDate:u})=>{const{t:d}=se.useTranslation(),m=u?new Date(e).getTime():null,g=u?new Date(t).getTime():null,[y,h]=w.useState(u?[m,g]:[e,t]),b=f=>{h(f),r==null||r({min:f[0],max:f[1]})};return w.useEffect(()=>{c||h(u?[m,g]:[e,t])},[c,u]),l.jsxs("div",{className:Ot.container,style:{width:`${o}px`,color:`${a}`},children:[l.jsx("div",{className:Ot.unitLabel,children:l.jsx("span",{children:d(i)})}),l.jsx(Or,{className:Ot.slider,thumbClassName:Ot.thumb,trackClassName:Ot.track,min:u?m:e,max:u?g:t,step:u?(g-m)/30:n,value:y,onAfterChange:b,withTracks:!0,pearling:!u,minDistance:u?0:.1}),l.jsxs("div",{className:Ot.labels,children:[l.jsx("span",{children:u?new Date(y[0]).toLocaleDateString("en-EN",{day:"2-digit",month:"short",year:"numeric"}):y[0]}),l.jsx("span",{children:u?new Date(y[1]).toLocaleDateString("en-EN",{day:"2-digit",month:"short",year:"numeric"}):y[1]})]})]})};zs.propTypes={min:s.number,max:s.number,step:s.number,initialMin:s.number,initialMax:s.number,onChange:s.func,width:s.number,unit:s.string,fontColor:s.string,value:s.arrayOf(s.number)};const jl="_tematicalFiltersInputContainer_1vm1r_2",$l="_inputTypeContainer_1vm1r_2",El="_checkboxContainer_1vm1r_28",Nl="_absoluteSliderContainer_1vm1r_37",_n={tematicalFiltersInputContainer:jl,inputTypeContainer:$l,checkboxContainer:El,absoluteSliderContainer:Nl},Ur=({indicator:e,activeColor:t})=>{const[n,r]=w.useState(),{type:o,name:i,values:a,minValue:c,maxValue:u,unit:d,step:m,disabled:g,isDate:y}=e||{},h=w.useMemo(()=>o=="cat"||n=="cat",[n,o]),b=w.useMemo(()=>o=="abs"||n=="abs",[n,o]),{tematicalFiltersSelected:f,selectedIndicator:x,fontColor:_,inputsColor:S}=ye(v=>v),E=v=>{if(v){const{min:T,max:A,valueClicked:k,allValues:$}=v||{},{code:P,type:I,source:p}=e||{},N=b?"abs":h?"cat":"both";let j=P[0];I=="both"&&(j=N=="cat"?P[1]:P[0]),N=="cat"?ye.setState(V=>{let W=V.tematicalFiltersSelected.find(D=>D.code===j);if(W){let D=[W.values];return W.values.includes(k)?D=W.values.filter(q=>q!==k):D=[...W.values,k],D.length==$.length?{tematicalFiltersSelected:V.tematicalFiltersSelected.filter(q=>q.code!==j)}:{tematicalFiltersSelected:V.tematicalFiltersSelected.map(q=>q.code===j?{...q,values:D}:q)}}else{let D=($||[]).map((q,te)=>te);return{tematicalFiltersSelected:[...f,{type:"cat",code:j,values:D.filter(q=>q!==k),name:e.name,source:p,isDate:y}]}}}):N=="abs"&&ye.setState(V=>{let W=V.tematicalFiltersSelected.find(D=>D.code===j);if(T==e.minValue&&A==e.maxValue)return{tematicalFiltersSelected:V.tematicalFiltersSelected.filter(D=>D.code!==j)};if(W){let D={...W,min:T,max:A,type:N,isDate:y};return{tematicalFiltersSelected:V.tematicalFiltersSelected.map(q=>q.code===j?D:q)}}else return{tematicalFiltersSelected:[...f,{type:N,code:j,min:T,max:A,name:e.name,source:e.source}]}})}},C=w.useMemo(()=>{const v={};if((f==null?void 0:f.length)>0)for(const T of f)T.type==="cat"?v[T.code]=new Set(T.values):v[T.code]=[T.min,T.max];return v},[f]);return l.jsx("div",{className:_n.tematicalFiltersInputContainer,children:l.jsxs(yt,{titleFontStyles:{fontSize:16,fontWeight:400,opacity:g?.5:1},title:i,isOpen:x==`id${i}`,onClick:()=>{g||ye.setState(()=>({selectedIndicator:x==`id${i}`?"":`id${i}`}))},showBottomBar:!1,height:42,titleMarginChildren:14,className:"tematicalFiltersInputContainer",color:_,activeColor:t,children:[o=="both"&&l.jsxs("div",{className:_n.inputTypeContainer,style:{color:_},children:[l.jsxs("label",{children:[l.jsx("input",{type:"radio",name:"tipo",value:"abs",onChange:()=>{r("abs")},style:{marginRight:4,backgroundColor:n=="abs"?S:"white",border:`1.5px solid ${n=="abs"?S:_}`}}),"Absoluto"]}),l.jsxs("label",{children:[l.jsx("input",{type:"radio",name:"tipo",value:"cat",onChange:()=>{r("cat")},style:{marginRight:4,backgroundColor:n=="cat"?S:"white",border:`1.5px solid ${n=="cat"?S:_}`}}),"Categórico"]})]}),h&&l.jsx("div",{className:_n.checkboxContainer,children:(a||[]).map((v,T)=>{var A;return l.jsx(Fs,{onClick:()=>E({valueClicked:T,allValues:a}),indicator:v,value:((A=C[e.code[o=="both"?1:0]])==null?void 0:A.has(T))||!C[e.code[o=="both"?1:0]]},`checkbox-${T}`)})}),(b||o=="glb")&&l.jsx("div",{className:_n.absoluteSliderContainer,children:l.jsx(zs,{onChange:E,min:c,max:u,unit:d,defaultValue:C[e.code[0]]?C[e.code[0]]:"",isDate:y,step:m})})]})})};Ur.propTypes={indicator:s.shape({name:s.string,type:s.string,code:s.arrayOf(s.string),values:s.arrayOf(s.shape({codename:s.oneOfType(s.array,s.string),title:s.string}))}),activeColor:s.string};const qs=({subcategory:e,fontColor:t,activeColor:n})=>{const{activeSubcategory:r}=ye(a=>a),{name:o,indicators:i}=e||{};return l.jsx(yt,{title:o,isOpen:r==`id${o}`,onClick:()=>{ye.setState(a=>({activeSubcategory:a.activeSubcategory===`id${o}`?"":`id${o}`}))},titleFontStyles:{fontSize:16,fontWeight:400},showBottomBar:!1,titleMarginChildren:20,height:48,color:t,activeColor:n,children:i==null?void 0:i.map((a,c)=>l.jsx(Ur,{indicator:a,fontColor:t,activeColor:n},`indicatorSub-${c}`))})};qs.propTypes={subcategory:s.shape({name:s.string,indicators:s.arrayOf(s.shape({name:s.string,value:s.string}))}),activeColor:s.string};const Ws=({category:e,activeColor:t})=>{const{name:n,subcategories:r,indicators:o}=e||{},{activeCategory:i,fontColor:a}=ye(c=>c);return e&&l.jsx(yt,{onClick:()=>{ye.setState(c=>({activeCategory:i===`id${n}`?"":`id${n}`}))},title:n,isOpen:i===`id${n}`,titleFontStyles:{fontSize:18,fontWeight:"bold"},showBottomBar:!1,color:a,activeColor:t,children:r?r.map((c,u)=>l.jsx(qs,{subcategory:c,fontColor:a,activeColor:t},`subcategory-${u}`)):o&&o.map((c,u)=>l.jsx(Ur,{indicator:c,fontColor:a,activeColor:t},`indicator-${u}`))})};Ws.propTypes={category:s.shape({name:s.string.isRequired,subcategories:s.array,indicators:s.array}),activeColor:s.string};const Ar=({indicators:e,isOpen:t=!0,title:n,fontColor:r="#605B56",inputsColor:o="#605B56",activeColor:i,isExtra:a=!1})=>{const{tematicalFiltersSelected:c,activeFiltersType:u}=ye(g=>g),{t:d}=se.useTranslation();w.useEffect(()=>{r&&ye.setState(()=>({fontColor:r}))},[r]),w.useEffect(()=>{o&&ye.setState(()=>({inputsColor:o}))},[o]);const m=()=>{a?u==a?ye.setState(()=>({activeFiltersType:null})):ye.setState(()=>({activeFiltersType:a})):u=="tematical"?ye.setState(()=>({activeFiltersType:null})):ye.setState(()=>({activeFiltersType:"tematical"}))};return l.jsx(yt,{isOpen:a&&u==a||!a&&u=="tematical",title:n?d(n):"Tematical filters",color:r,activeColor:i,onClick:m,mainTitle:!0,children:e==null?void 0:e.map((g,y)=>l.jsx(Ws,{category:g,fontColor:r,activeColor:i},`category-${y}`))})};Ar.propTypes={isOpen:s.bool,title:s.string,indicators:s.arrayOf(s.object),fontColor:s.string,onChangeTematicalFilters:s.func,inputsColor:s.string,activeColor:s.string};const Ol="_FiltersAmbitContainer_1hv16_2",Al="_FiltersContainer_1hv16_15",Ll="_FiltersAmbitHeader_1hv16_18",Ml="_FiltersAmbitTitle_1hv16_26",Rl="_FiltersAmbitDescription_1hv16_35",Il="_FiltersAmbitDescriptionTitle_1hv16_46",Dl="_warning_1hv16_50",Bl="_buttonContainer_1hv16_53",dt={FiltersAmbitContainer:Ol,FiltersContainer:Al,FiltersAmbitHeader:Ll,FiltersAmbitTitle:Ml,FiltersAmbitDescription:Rl,FiltersAmbitDescriptionTitle:Il,warning:Dl,buttonContainer:Bl},Us=({ambitName:e,ambitDescription:t,defaultFilters:n,indicators:r,activeColor:o,textColor:i,backgroundColor:a,onChangeAppliedFilters:c,saveAmbit:u,namePlaceholder:d,descPlaceholder:m,filtersTypes:g=["geographical","tematical"],nameRequiredText:y,geoLayers:h=[],onGeoLayersChange:b,onlyFilters:f=!1,descriptionRequired:x=!1,extraLists:_=!1})=>{const{t:S}=se.useTranslation(),{tematicalFiltersSelected:E,activeFiltersType:C}=ye(p=>p),[v,T]=w.useState(e||null),[A,k]=w.useState(t||null),[$,P]=w.useState(!1);w.useEffect(()=>{ye.setState({tematicalFiltersSelected:n||[]})},[n]),w.useRef(!1),w.useEffect(()=>{c(E)},[E]);const I=()=>{x?v&&A?u({name:v,description:A}):P(!0):v?u({name:v,description:A}):P(!0)};return w.useEffect(()=>{if(g.includes("geographical")&&C!="geographical"&&h.length>0){const p=h.map(N=>({...N,active:!1}));b==null||b(p)}},[C]),l.jsxs("div",{className:dt.FiltersAmbitContainer,children:[l.jsxs("div",{className:dt.FiltersContainer,children:[!f&&l.jsxs("div",{className:dt.FiltersAmbitHeader,children:[l.jsx("div",{className:dt.FiltersAmbitTitle,children:l.jsx("input",{type:"text",onChange:p=>{P(!1),T(p.target.value)},value:v,placeholder:S(d)})}),l.jsx("div",{className:dt.FiltersAmbitDescription,children:l.jsx("div",{className:dt.FiltersAmbitDescriptionTitle,children:l.jsx("textarea",{value:A,onChange:p=>{x&&P(!1),k(p.target.value)},placeholder:S(m)})})})]}),l.jsx(Ps,{title:S("applied_filters"),isOpen:C=="applied",textColor:i||"#fff",backgroundColor:a||"#605B5680",activeColor:o}),g.includes("geographical")&&l.jsx(Vs,{title:"geo_filters",activeColor:o,geoLayers:h,onGeoLayersChange:b}),g.includes("extra")&&_.map(p=>l.jsx(Ar,{indicators:p.indicators,inputsColor:o,textColor:i,title:p.title,activeColor:o,isExtra:p.title})),g.includes("tematical")&&l.jsx(Ar,{indicators:r,inputsColor:o,textColor:i,title:"tematical_filters",activeColor:o,isExtra:!1})]}),!f&&l.jsxs("div",{className:dt.buttonContainer,children:[$&&l.jsx("div",{className:dt.warning,children:S(y)}),l.jsx(un,{onClick:()=>I(),children:S("save_ambit")})]})]})};Us.propTypes={indicators:s.arrayOf(s.object).isRequired,ambitName:s.string,ambitDescription:s.string,defaultFilters:s.arrayOf(s.object),activeColor:s.string,backgroundColor:s.string,textColor:s.string,onChangeAppliedFilters:s.func,saveAmbit:s.func,namePlaceholder:s.string,descPlaceholder:s.string,filtersTypes:s.arrayOf(s.string).isRequired,nameRequiredText:s.string,extraLists:s.arrayOf(s.object)};const Pl="_barChartContainer_1ly7h_2",So={barChartContainer:Pl},Zr=({data:e,barHeight:t=25,gap:n=23,fontColor:r="#605B56",leftPadding:o=200,numberOfDivisions:i=7,maxValue:a=null,orientation:c="horizontal",horizontalPadding:u=c=="vertical"?50:20,verticalPadding:d=10,xLabelPadding:m=c=="vertical"?50:40,containerWidth:g=700,containerHeight:y=500,mainColor:h="#000"})=>{const{xScale:b,yScale:f,ticks:x,height:_,chartWidth:S,svgWidth:E,svgHeight:C,contentWidth:v}=w.useMemo(()=>{if(e&&e.length>0){const T=ar.max(e,k=>k.value)||1,A=a||T;if(c==="vertical"){const k=e.length*(t+n)+u*2,$=Math.max(k,g||0),P=y,p=ar.scaleLinear().domain([0,A]).range([P-100,d]),N=Array.from({length:i+1},(j,V)=>A/i*V);return{yScale:p,ticks:N,height:P,chartWidth:$,svgWidth:$,svgHeight:P,contentWidth:k}}else{const k=e.length*(t+n);console.log("barsHeight: ",k);const $=k+d*2+m+30,P=g+o+u*2,I=ar.scaleLinear().domain([0,A]).range([0,g-u*2]),p=Array.from({length:i+1},(N,j)=>A/i*j);return{xScale:I,ticks:p,height:$,chartWidth:g,svgWidth:P,svgHeight:$,contentWidth:P}}}else return{xScale:null,yScale:null,ticks:[],height:0,svgHeight:0}},[e,i,t,n,u,d,a,c,o,g,y]);return c==="vertical"?l.jsx("div",{style:{width:"100%",height:y?`${y}px`:"100%","--main-color":h},className:So.barChartContainer,children:l.jsx("svg",{width:E,height:C,style:{display:"block",width:E,height:C,maxWidth:"none","--main-color":h},children:l.jsxs("g",{transform:`translate(${u}, 0)`,children:[l.jsx("g",{children:x.map((T,A)=>{const k=f(T);return l.jsxs("g",{children:[l.jsx("line",{x1:0,x2:S-u*2,y1:k,y2:k,stroke:"#ccc"}),l.jsx("text",{x:-10,y:k+4,textAnchor:"end",fontSize:10,fill:r,children:parseInt(T)})]},A)})}),e&&e.length>0&&e.map((T,A)=>{const k=f(0)-f(T.value),$=A*(t+n),P=f(T.value);return l.jsxs("g",{children:[l.jsx("rect",{x:$,y:P,width:t,height:k,fill:T.color,rx:0}),l.jsx("text",{x:$+t/2,y:_-m,textAnchor:"start",fill:r,fontSize:12,transform:`rotate(-90, ${$+t/2}, ${_-m})`,children:T.title})]},A)})]})})}):(console.log("svgHeight: ",C),l.jsx("div",{style:{width:"100%",height:y?`${y}px`:"100%","--main-color":h},className:So.barChartContainer,children:l.jsx("svg",{width:E,height:C,style:{minWidth:"100%",height:C,width:v,maxWidth:"none"},children:l.jsxs("g",{transform:`translate(0,${d})`,children:[l.jsx("g",{transform:`translate(${o+u}, 0)`,children:x.map((T,A)=>{const k=b(T);return l.jsxs("g",{transform:`translate(${k}, 0)`,children:[l.jsx("line",{y1:0,y2:e.length*(t+n),stroke:"#ccc"}),l.jsx("text",{y:e.length*(t+n)+30,textAnchor:"middle",fontSize:10,fill:r,children:parseInt(T)})]},A)})}),e&&e.length>0&&e.map((T,A)=>{const k=b(T.value),$=A*(t+n);return console.log("y: ",$),l.jsxs("g",{transform:`translate(${o+u}, ${$})`,children:[l.jsx("text",{x:-24,y:t/2+5,textAnchor:"end",fill:r,fontSize:12,children:T.title}),l.jsx("rect",{width:k,height:t,fill:T.color,rx:0})]},A)})]})})}))};Zr.propTypes={data:s.arrayOf(s.shape({title:s.string,value:s.number,color:s.string})),length:s.number,barHeight:s.number,gap:s.number,verticalPadding:s.number,horizontalPadding:s.number,numberOfDivisions:s.number,fontColor:s.string,leftPadding:s.number,maxValue:s.number,orientation:s.oneOf(["horizontal","vertical"]),xLabelPadding:s.number,containerWidth:s.number,containerHeight:s.number,minBarWidth:s.number};const Vl="_graphicContainer_1ozwp_2",Fl="_titleContainer_1ozwp_13",To={graphicContainer:Vl,titleContainer:Fl},Zs=({data:e,graphLength:t=700,containerStyle:n,borderColor:r="#605B56",title:o="Graphic Title",fontColor:i="#605B56",maxValue:a=null,numberOfDivisions:c=7,leftPadding:u=-200,orientation:d="horizontal",xLabelPadding:m=0,mainColor:g})=>{const{t:y}=se.useTranslation();return l.jsxs("div",{className:To.graphicContainer,style:{...n||{},paddingBottom:40},children:[l.jsx("div",{className:To.titleContainer,children:l.jsx("h2",{children:y(o)})}),l.jsx(Zr,{data:e,length:t,fontColor:i,maxValue:a,numberOfDivisions:c,leftPadding:u,orientation:d,xLabelPadding:m,mainColor:g})]})};Zs.propTypes={data:s.arrayOf(s.shape({color:s.string.isRequired,value:s.number.isRequired,title:s.string.isRequired})),borderColor:s.string,title:s.string,graphLength:s.number,containerStyle:s.object,fontColor:s.string,mainColor:s.string,maxValue:s.number,numberOfDivisions:s.number,leftPadding:s.number,xLabelPadding:s.number};const zl="_indicatorsCategory_arwy3_2",ql="_title_arwy3_5",Wl="_list_arwy3_13",wn={indicatorsCategory:zl,title:ql,list:Wl},Ul="data:image/svg+xml,%3csvg%20width='8'%20height='8'%20viewBox='0%200%208%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.32549%200H4.65882V3.40392H8V4.61176H4.65882V8H3.32549V4.61176H0V3.40392H3.32549V0Z'%20fill='%23605B56'/%3e%3c/svg%3e",Zl="data:image/svg+xml,%3csvg%20width='8'%20height='8'%20viewBox='0%200%208%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.32549%200H4.65882V3.40392H8V4.61176H4.65882V8H3.32549V4.61176H0V3.40392H3.32549V0Z'%20fill='%23ffffff'/%3e%3c/svg%3e",et=qr.create(e=>({activeColor:null,defaultColor:"#92898A",multiple:!1,activeIndicatorType:null,activeIndicatorSubcategory:""})),Hs=({indicator:e,subcatIndex:t,indicatorSubcategory:n})=>{const r={},o=new Set;return Object.entries(e).forEach(([i,a])=>{const c=i.match(/^(.*)_subcat_(\d+)$/);if(c){const[u,d,m]=c;Number(m)===t&&(r[d]=a,o.add(d))}}),Object.entries(e).forEach(([i,a])=>{!i.includes("_subcat_")&&!o.has(i)&&(r[i]=a)}),r.activeIndicatorSubcategory=n,r},Hl="_indicatorContainer_swmx0_2",Kl="_indicatorNameContainer_swmx0_12",Gl="_dot_swmx0_19",Yl="_indicatorName_swmx0_12",Xl="_switchExternalContainer_swmx0_33",Ql="_switchType_swmx0_42",Jl="_switchTypeOptions_swmx0_46",ec="_optionContainer_swmx0_57",tc="_customRadious_swmx0_67",nc="_optionText_swmx0_74",ve={indicatorContainer:Hl,indicatorNameContainer:Kl,dot:Gl,indicatorName:Yl,switchExternalContainer:Xl,switchType:Ql,switchTypeOptions:Jl,optionContainer:ec,customRadious:tc,optionText:nc},Hr=({indicator:e,values:t=[],activeIndicator:n,onClickIndicator:r,onChangeType:o,onChangeIndicatorSubcategory:i})=>{const{t:a}=se.useTranslation(),{name:c,type:u,disabled:d,indicatorSubcategories:m}=e,{activeIndicatorType:g,activeColor:y,defaultColor:h,multiple:b,activeIndicatorSubcategory:f}=et(v=>v),[x,_]=w.useState(!1);w.useEffect(()=>{n&&_(b?n.some(v=>v.name==String(c)):n.name==c)},[n]);const S=()=>l.jsx("div",{className:ve.switchExternalContainer,children:l.jsx("div",{className:ve.switchType,children:l.jsxs("div",{className:ve.switchTypeOptions,children:[l.jsxs("div",{className:ve.optionContainer,onClick:()=>{et.setState(v=>({...v,activeIndicatorType:"cat"})),o("cat")},children:[l.jsx("span",{className:`${ve.customRadious}`,style:{backgroundColor:g==="cat"?y:"transparent",borderColor:g==="cat"?y:h}}),l.jsx("h4",{className:ve.optionText,style:{color:g==="cat"?y:h},children:a("indicators.cat")})]}),l.jsxs("div",{className:ve.optionContainer,onClick:()=>{et.setState(v=>({...v,activeIndicatorType:"abs"})),o("abs")},children:[l.jsx("span",{className:`${ve.customRadious}`,style:{backgroundColor:g==="abs"?y:"transparent",borderColor:g==="abs"?y:h}}),l.jsx("h4",{className:ve.optionText,style:{color:g==="abs"?y:h},children:a("indicators.abs")})]})]})})}),E=()=>l.jsx("div",{className:ve.switchExternalContainer,children:l.jsx("div",{className:ve.switchType,children:l.jsx("div",{className:ve.switchTypeOptions,children:m==null?void 0:m.map((v,T)=>l.jsxs("div",{className:ve.optionContainer,onClick:()=>{et.setState(k=>({...k,activeIndicatorSubcategory:v.title}));let A=Hs({indicator:e,subcatIndex:T,indicatorSubcategory:v.title});i&&i({indicator:A})},children:[l.jsx("span",{className:`${ve.customRadious}`,style:{backgroundColor:f===v.title?y:"transparent",borderColor:f===v.title?y:h}}),l.jsx("h4",{className:ve.optionText,style:{color:f===v.title?y:h},children:a(v.title)})]},`indicatorSubcategory-${v.title}`))})})}),C=()=>l.jsx("div",{className:ve.switchExternalContainer,children:l.jsx("div",{className:ve.switchType,children:l.jsx("div",{className:ve.switchTypeOptions,children:t.map((v,T)=>l.jsxs("div",{className:ve.optionContainer,children:[l.jsx("span",{className:ve.customRadious}),l.jsx("h4",{children:a(v.unit)})]},T))})})});return l.jsxs("div",{className:ve.indicatorContainer,children:[l.jsxs("div",{className:ve.indicatorNameContainer,onClick:()=>!d&&r({indicator:e}),children:[l.jsx("div",{style:{border:x?`1px solid ${y}`:`1px solid ${h}`,opacity:d?.5:1,backgroundColor:x?y:"transparent"},className:ve.dot,children:b&&l.jsx("img",{src:x?Zl:Ul,alt:""})}),l.jsx("h4",{className:ve.indicatorName,style:{color:x?y:h,opacity:d?.5:1},children:l.jsx(se.Trans,{i18nKey:c,components:{sup:l.jsx("sup",{})},shouldUnescape:!0})})]}),(n==null?void 0:n.name)===c&&u==="both"&&S(),(n==null?void 0:n.name)===c&&u==="twoUnits"&&C(),(n==null?void 0:n.name)===c&&m&&m.length>0&&E()]})};Hr.propTypes={indicator:s.shape({name:s.string,type:s.string}),values:s.oneOfType([s.bool,s.array]),activeColor:s.string,defaultColor:s.string,activeIndicator:s.oneOfType([s.object,s.array]),multiple:s.bool,onClickIndicator:s.func};const rc="_indicatorsSubCategory_1nuug_2",oc="_list_1nuug_11",ko={indicatorsSubCategory:rc,list:oc},Ks=({subcName:e,indicators:t,activeSubCategory:n,onClickSubCategory:r,id:o,activeIndicator:i,onClickIndicator:a,onChangeType:c,onChangeIndicatorSubcategory:u})=>{const{t:d}=se.useTranslation(),[m,g]=w.useState(!1);w.useEffect(()=>{g(n==o)},[n,o]);const{activeIndicatorType:y,activeColor:h,defaultColor:b,multiple:f,activeIndicatorSubcategory:x}=et(_=>_);return l.jsxs(zr.motion.div,{className:ko.indicatorsSubCategory,initial:{height:"43px"},animate:{height:m?"auto":"43px"},transition:{duration:.4},children:[l.jsx("button",{onClick:()=>r(o),children:l.jsxs("h3",{style:{color:m?h:b},children:[l.jsx("span",{style:{color:m?h:b},children:m?"-":"+"}),l.jsx("span",{style:{color:m?h:b},children:d(e)})]})}),t&&l.jsx("div",{className:ko.list,children:t==null?void 0:t.map((_,S)=>l.jsx(Hr,{indicator:_,activeIndicator:i,onClickIndicator:a,onChangeType:c,onChangeIndicatorSubcategory:u},"indicator"+S))})]})};Ks.propTypes={subcName:s.string,indicators:s.array,activeColor:s.string,defaultColor:s.string,activeSubCategory:s.string,id:s.string,activeIndicator:s.oneOfType([s.object,s.array]),multiple:s.bool,onClickSubCategory:s.func,onClickIndicator:s.func};const Gs=({cat:e,id:t,onClickCategory:n,activeCategory:r,activeSubCategory:o,onClickSubCategory:i,activeIndicator:a,onClickIndicator:c,onChangeType:u,onChangeIndicatorSubcategory:d})=>{var _;const{t:m}=se.useTranslation(),{activeIndicatorType:g,activeColor:y,defaultColor:h,multiple:b}=et(S=>S),[f,x]=w.useState(!1);return w.useEffect(()=>{x(r===t)},[r,t]),l.jsxs(zr.motion.div,{className:wn.indicatorsCategory,initial:{height:"53px"},animate:{height:f?"auto":"53px"},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:f?`1px solid ${y}`:"0px",marginBottom:f?"20px":"0px"},children:[l.jsxs("h2",{className:`${wn.title}`,onClick:()=>n(t),children:[l.jsx("span",{className:wn.plus,style:{color:f?y:h},children:f?"-":"+"}),l.jsx("span",{style:{color:f?y:h},children:m(e.name)})]}),e.subcategories?e.subcategories.map(({name:S,subcategory:E,indicators:C},v)=>l.jsx(Ks,{id:E,activeSubCategory:o,subcName:S,onClickSubCategory:i,activeIndicator:a,onClickIndicator:c,indicators:C,onChangeType:u,onChangeIndicatorSubcategory:d},`subcKey ${v}`)):l.jsx("div",{className:wn.list,children:(_=e.indicators)==null?void 0:_.map((S,E)=>l.jsx(Hr,{indicator:S,values:S.type=="twoUnits"&&S.values,activeIndicator:a,onClickIndicator:c,onChangeType:u,onChangeIndicatorSubcategory:d},`indicator${E}`))})]})};Gs.propTypes={cat:s.object,id:s.string,onChange:s.func,onClickCategory:s.func,activeCategory:s.string,activeSubCategory:s.string,onClickSubCategory:s.func,onClickIndicator:s.func,activeIndicator:s.oneOfType([s.object,s.array]),multiple:s.bool,activeColor:s.string,defaultColor:s.string};const sc="_indicatorsList_13b3m_2",ic="_title_13b3m_6",jo={indicatorsList:sc,title:ic},Lr=(e,t)=>{if(e===t)return!0;if(e==null||t==null||typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t))return e.length!==t.length?!1:e.every((n,r)=>Lr(n,t[r]));if(typeof e=="object"&&typeof t=="object"){const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length?!1:n.every(o=>Lr(e[o],t[o]))}return!1},Ys=({indicators:e,activeColor:t,defaultColor:n="#92898A",onChange:r,multiple:o=!1,defaultValue:i=null,changeIndType:a,activeIndicatorType:c,onChangeIndicatorSubcategory:u})=>{const{t:d}=se.useTranslation(),[m,g]=w.useState(),[y,h]=w.useState(),[b,f]=w.useState(),x=w.useRef(i),_=w.useRef(!1);w.useEffect(()=>{et.setState({activeColor:t||"",defaultColor:n||"",multiple:o||!1,activeIndicatorType:c||null})},[t,n,o,c]);const S=k=>{g(m==k?null:k)},E=k=>{h(y==k?null:k)},C=({indicator:k})=>{if(k!=null&&k.indicatorSubcategories&&k.indicatorSubcategories.length>0){const $=k.indicatorSubcategories[0],P=Hs({indicator:k,subcatIndex:0,indicatorSubcategory:$.title});et.setState({activeIndicatorSubcategory:$.title}),T(P,!0),u&&u({indicator:P})}else et.setState({activeIndicatorSubcategory:null}),T(k)},v=({indicator:k})=>{T(k,!0),u&&u({indicator:k})},T=(k,$=!1,P=!1)=>{if(o){let I=b&&b.length>0?[...b]:[];const p=I==null?void 0:I.some(j=>j.name==k.name);let N;$?N=k:N=p?I.filter(j=>j.name!=String(k.name)):[...I,k],f(N),k.type=="both"&&a("cat"),r&&typeof r=="function"&&($||!(k!=null&&k.indicatorSubcategories))&&!P&&r({activeIndicator:N})}else{let I;$?I=k:I=(b==null?void 0:b.name)==k.name?null:k,f(I),(k==null?void 0:k.type)=="both"&&a("cat"),r&&typeof r=="function"&&($||!(k!=null&&k.indicatorSubcategories))&&!P&&r({activeIndicator:I})}};w.useLayoutEffect(()=>{var k;if(x.current&&!b){_.current=!0;try{o&&Array.isArray(x.current)?(f([...x.current]),A((k=x.current[0])==null?void 0:k.name)):x.current&&(T(x.current,!1,!0),A(x.current.name))}finally{_.current=!1}}},[]),w.useEffect(()=>{var k;if(!_.current&&!Lr(i,b)){_.current=!0;try{const{activeIndicatorSubcategory:$}=i||{};$&&et.setState({activeIndicatorSubcategory:$}),o&&Array.isArray(i)?(f([...i]),A((k=i[0])==null?void 0:k.name)):i?(T(i,!1,!0),A(i.name)):(f(o?[]:null),g(null),h(null))}finally{_.current=!1}}},[i]);const A=k=>{const $=e.find(P=>{if(P.subcategories){let I=P.subcategories.find(p=>p.indicators.find(N=>N.name==k));if(I)return h(I.subcategory),I}else return P.indicators.some(I=>I.name==k)});$&&g($.category)};return l.jsxs("div",{className:jo.indicatorsList,children:[l.jsx("h2",{className:jo.title,style:{color:n},children:d("indicators.indicators")}),e.map((k,$)=>l.jsx(Gs,{id:k.category,cat:k,onClickCategory:S,activeCategory:m,onClickSubCategory:E,activeSubCategory:y,onClickIndicator:C,activeIndicator:b,onChange:r,onChangeType:a,onChangeIndicatorSubcategory:v},`categoryKey${$}`))]})};Ys.propTypes={indicators:s.arrayOf(s.object),activeColor:s.string,defaultColor:s.string,onChange:s.func,changeIndType:s.func,multiple:s.bool,activeIndicator:s.oneOfType([s.object,s.array]),defaultValue:s.oneOfType([s.object,s.array]),activeIndicatorType:s.string,onChangeIndicatorSubcategory:s.func};const ac="_langSelector_o9enq_2",lc="_currentLang_o9enq_14",cc="_arrow_o9enq_26",uc="_prevImg_o9enq_29",dc="_langMenu_o9enq_33",At={langSelector:ac,currentLang:lc,arrow:cc,prevImg:uc,langMenu:dc},Xs=({langs:e,arrow:t,imgPrev:n})=>{const[r,o]=w.useState(!1),{i18n:i}=se.useTranslation(),a=e.find(u=>u.code==i.language),c=u=>{i.changeLanguage(u),o(!1)};return l.jsxs("div",{className:At.langSelector,children:[l.jsxs("div",{className:At.currentLang,onClick:()=>{o(!r)},children:[n&&l.jsx("img",{className:At.prevImg,src:n}),(a==null?void 0:a.titleSelected)||(a==null?void 0:a.title),l.jsx("img",{src:t,className:At.arrow})]}),r&&l.jsx("div",{className:At.langMenu,children:e.map(u=>l.jsx("button",{className:(a==null?void 0:a.code)==u.code?At.active:"",onClick:()=>c(u.code),children:u.title},u.code))})]})};Xs.propTypes={langs:s.arrayOf(s.shape({code:s.string,title:s.string,titleSelected:s.string})),color:s.string,bckColor:s.string,hoverColor:s.string,arrow:s.object,imgPrev:s.object};const fc="_legendContainer_r9cd6_3",pc="_closeButton_r9cd6_43",mc="_titleContainer_r9cd6_71",hc="_infoContainer_r9cd6_77",gc="_titleLegendList_r9cd6_88",yc="_legendListContainer_r9cd6_94",bc="_gridContainer_r9cd6_94",vc="_elementLegendContainer_r9cd6_100",xc="_colorDot_r9cd6_106",Cc="_absoluteValueContainer_r9cd6_112",_c="_absoluteValueColor_r9cd6_115",wc="_absoluteValueText_r9cd6_120",Sc="_noDataContainer_r9cd6_132",Tc="_noData_r9cd6_132",kc="_moreInfoContainer_r9cd6_153",Oe={legendContainer:fc,closeButton:pc,titleContainer:mc,infoContainer:hc,titleLegendList:gc,legendListContainer:yc,gridContainer:bc,elementLegendContainer:vc,colorDot:xc,absoluteValueContainer:Cc,absoluteValueColor:_c,absoluteValueText:wc,noDataContainer:Sc,noData:Tc,moreInfoContainer:kc},Qs=({containerStyles:e,title:t,infoList:n,legendItems:r,onClickMoreInfo:o,buttonTitle:i,onClickClose:a})=>{const{t:c}=se.useTranslation();return l.jsxs("div",{style:e?{...e}:{},className:`${Oe.legendContainer}`,children:[l.jsx("button",{className:Oe.closeButton,onClick:a}),t&&l.jsx("div",{className:Oe.titleContainer,style:{marginBottom:(!n||n.length==0)&&"15px"},children:l.jsx("h2",{children:t})}),n&&n.length>0&&l.jsx("div",{className:Oe.infoContainer,children:l.jsx("ul",{children:n.map(({title:u,value:d})=>l.jsxs("li",{children:[l.jsx("h3",{className:Oe.title,children:`${u}:`}),l.jsxs("span",{className:Oe.value,children:["  ",d]})]},t))})}),r&&r.length>0&&r.map((u,d)=>l.jsxs("div",{children:[l.jsx("h3",{className:Oe.titleLegendList,style:{marginTop:n&&n.length>0&&d===0?"30px":d>0?"20px":"0px"},children:u.title&&l.jsx(se.Trans,{i18nKey:u.title,components:{sup:l.jsx("sup",{})},shouldUnescape:!0})}),l.jsxs("div",{className:Oe.legendListContainer,children:[u.absolute?l.jsxs("div",{className:Oe.absoluteValueContainer,children:[l.jsx("div",{className:Oe.absoluteValueColor,style:{background:`linear-gradient(to bottom, ${u.absolute.maxColor} 0%, ${u.absolute.midColor?`${u.absolute.midColor} 50%,`:""} ${u.absolute.minColor} 100%)`}}),l.jsxs("div",{className:Oe.absoluteValueText,children:[l.jsxs("span",{children:[u.absolute.maxValue," ",c(u.absolute.unit)," ",u.absolute.offlimits&&c(u.moreText)]}),u.absolute.midValue&&l.jsxs("span",{children:[u.absolute.midValue," ",c(u.absolute.unit)]}),l.jsxs("span",{children:[u.absolute.minValue," ",c(u.absolute.unit)," ",u.absolute.offlimits&&c(u.lessText)]})]})]}):u.categories&&u.categories.length>0&&l.jsx("div",{className:Oe.gridContainer,children:u.categories.map(({title:m,color:g},y)=>l.jsxs("div",{className:Oe.elementLegendContainer,children:[l.jsx("div",{className:Oe.colorDot,style:{backgroundColor:g}}),l.jsxs("div",{className:Oe.titleLegendElement,children:[c(m)," "]})]},y))}),u.absolute&&u.absolute.noDataColor&&l.jsxs("div",{className:Oe.noDataContainer,children:[l.jsx("div",{className:Oe.noData,style:{background:u.absolute.noDataColor}}),l.jsx("div",{className:Oe.absoluteValueText,children:l.jsx("span",{children:c(u.absolute.noDataText)})})]})]})]},d)),o&&l.jsx("button",{className:Oe.moreInfoContainer,onClick:o,children:i||c("moreInformation")})]})};Qs.propTypes={title:s.string,containerStyles:s.object,infoList:s.arrayOf(s.shape({title:s.string.isRequired,value:s.oneOfType([s.string,s.number])})),legendItems:s.arrayOf(s.shape({title:s.string,categories:s.arrayOf(s.shape({title:s.string,color:s.string})),absolute:s.shape({maxColor:s.string,minColor:s.string,midColor:s.string,maxValue:s.number,minValue:s.number,midValue:s.number,unit:s.string,noDataColor:s.string,noDataText:s.string})})),onClickMoreInfo:s.func,buttonTitle:s.string,onClickClose:s.func};const jc="_logo_1ewa6_2",$o={logo:jc},Js=({src:e,alt:t,href:n})=>{const{t:r}=se.useTranslation(),o=l.jsx("img",{src:e,alt:r(t)});return n?l.jsx("div",{className:$o.logo,children:l.jsx("a",{href:n,children:o})}):l.jsx("div",{className:$o.logo,children:o})};Js.propTypes={src:s.string.isRequired,alt:s.string.isRequired,href:s.string,className:s.string};const $c=Q.createContext(null);function Ec(e,t){const n=Array.isArray(e)?e[0]:e?e.x:0,r=Array.isArray(e)?e[1]:e?e.y:0,o=Array.isArray(t)?t[0]:t?t.x:0,i=Array.isArray(t)?t[1]:t?t.y:0;return n===o&&r===i}function Fe(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Fe(e[n],t[n]))return!1;return!0}else if(Array.isArray(t))return!1;if(typeof e=="object"&&typeof t=="object"){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n)if(!t.hasOwnProperty(o)||!Fe(e[o],t[o]))return!1;return!0}return!1}function Nc(e){const t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}function Eo(e,t){if(!e.getProjection)return;const n=e.getProjection(),r=t.getProjection();Fe(n,r)||t.setProjection(n)}function No(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function Oo(e,t){const n=t.viewState||t;let r=!1;if("zoom"in n){const o=e.zoom;e.zoom=n.zoom,r=r||o!==e.zoom}if("bearing"in n){const o=e.bearing;e.bearing=n.bearing,r=r||o!==e.bearing}if("pitch"in n){const o=e.pitch;e.pitch=n.pitch,r=r||o!==e.pitch}if(n.padding&&!e.isPaddingEqual(n.padding)&&(r=!0,e.padding=n.padding),"longitude"in n&&"latitude"in n){const o=e.center;e.center=new o.constructor(n.longitude,n.latitude),r=r||o!==e.center}return r}const Oc=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Ao(e){if(!e)return null;if(typeof e=="string"||("toJS"in e&&(e=e.toJS()),!e.layers))return e;const t={};for(const r of e.layers)t[r.id]=r;const n=e.layers.map(r=>{let o=null;"interactive"in r&&(o=Object.assign({},r),delete o.interactive);const i=t[r.ref];if(i){o=o||Object.assign({},r),delete o.ref;for(const a of Oc)a in i&&(o[a]=i[a])}return o||r});return{...e,layers:n}}const Lo={version:8,sources:{},layers:[]},Mo={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},gr={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},Ro={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},Ac=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],Lc=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class Wt{constructor(t,n,r){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=o=>{const i=this.props[Ro[o.type]];i?i(o):o.type==="error"&&console.error(o.error)},this._onPointerEvent=o=>{(o.type==="mousemove"||o.type==="mouseout")&&this._updateHover(o);const i=this.props[Mo[o.type]];i&&(this.props.interactiveLayerIds&&o.type!=="mouseover"&&o.type!=="mouseout"&&(o.features=this._hoveredFeatures||this._queryRenderedFeatures(o.point)),i(o),delete o.features)},this._onCameraEvent=o=>{if(!this._internalUpdate){const i=this.props[gr[o.type]];i&&i(o)}o.type in this._deferredEvents&&(this._deferredEvents[o.type]=!1)},this._MapClass=t,this.props=n,this._initialize(r)}get map(){return this._map}get transform(){return this._renderTransform}setProps(t){const n=this.props;this.props=t;const r=this._updateSettings(t,n);r&&this._createShadowTransform(this._map);const o=this._updateSize(t),i=this._updateViewState(t,!0);this._updateStyle(t,n),this._updateStyleComponents(t,n),this._updateHandlers(t,n),(r||o||i&&!this._map.isMoving())&&this.redraw()}static reuse(t,n){const r=Wt.savedMaps.pop();if(!r)return null;const o=r.map,i=o.getContainer();for(n.className=i.className;i.childNodes.length>0;)n.appendChild(i.childNodes[0]);o._container=n;const a=o._resizeObserver;a&&(a.disconnect(),a.observe(n)),r.setProps({...t,styleDiffing:!1}),o.resize();const{initialViewState:c}=t;return c&&(c.bounds?o.fitBounds(c.bounds,{...c.fitBoundsOptions,duration:0}):r._updateViewState(c,!1)),o.isStyleLoaded()?o.fire("load"):o.once("styledata",()=>o.fire("load")),o._update(),r}_initialize(t){const{props:n}=this,{mapStyle:r=Lo}=n,o={...n,...n.initialViewState,accessToken:n.mapboxAccessToken||Mc()||null,container:t,style:Ao(r)},i=o.initialViewState||o.viewState||o;if(Object.assign(o,{center:[i.longitude||0,i.latitude||0],zoom:i.zoom||0,pitch:i.pitch||0,bearing:i.bearing||0}),n.gl){const m=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=m,n.gl)}const a=new this._MapClass(o);i.padding&&a.setPadding(i.padding),n.cursor&&(a.getCanvas().style.cursor=n.cursor),this._createShadowTransform(a);const c=a._render;a._render=m=>{this._inRender=!0,c.call(a,m),this._inRender=!1};const u=a._renderTaskQueue.run;a._renderTaskQueue.run=m=>{u.call(a._renderTaskQueue,m),this._onBeforeRepaint()},a.on("render",()=>this._onAfterRepaint());const d=a.fire;a.fire=this._fireEvent.bind(this,d),a.on("resize",()=>{this._renderTransform.resize(a.transform.width,a.transform.height)}),a.on("styledata",()=>{this._updateStyleComponents(this.props,{}),Eo(a.transform,this._renderTransform)}),a.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const m in Mo)a.on(m,this._onPointerEvent);for(const m in gr)a.on(m,this._onCameraEvent);for(const m in Ro)a.on(m,this._onEvent);this._map=a}recycle(){const n=this.map.getContainer().querySelector("[mapboxgl-children]");n==null||n.remove(),Wt.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const t=this._map;!this._inRender&&t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}_createShadowTransform(t){const n=Nc(t.transform);t.painter.transform=n,this._renderTransform=n}_updateSize(t){const{viewState:n}=t;if(n){const r=this._map;if(n.width!==r.transform.width||n.height!==r.transform.height)return r.resize(),!0}return!1}_updateViewState(t,n){if(this._internalUpdate)return!1;const r=this._map,o=this._renderTransform,{zoom:i,pitch:a,bearing:c}=o,u=r.isMoving();u&&(o.cameraElevationReference="sea");const d=Oo(o,{...No(r.transform),...t});if(u&&(o.cameraElevationReference="ground"),d&&n){const m=this._deferredEvents;m.move=!0,m.zoom||(m.zoom=i!==o.zoom),m.rotate||(m.rotate=c!==o.bearing),m.pitch||(m.pitch=a!==o.pitch)}return u||Oo(r.transform,t),d}_updateSettings(t,n){const r=this._map;let o=!1;for(const i of Ac)if(i in t&&!Fe(t[i],n[i])){o=!0;const a=r[`set${i[0].toUpperCase()}${i.slice(1)}`];a==null||a.call(r,t[i])}return o}_updateStyle(t,n){if(t.cursor!==n.cursor&&(this._map.getCanvas().style.cursor=t.cursor||""),t.mapStyle!==n.mapStyle){const{mapStyle:r=Lo,styleDiffing:o=!0}=t,i={diff:o};return"localIdeographFontFamily"in t&&(i.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(Ao(r),i),!0}return!1}_updateStyleComponents(t,n){const r=this._map;let o=!1;return r.isStyleLoaded()&&("light"in t&&r.setLight&&!Fe(t.light,n.light)&&(o=!0,r.setLight(t.light)),"fog"in t&&r.setFog&&!Fe(t.fog,n.fog)&&(o=!0,r.setFog(t.fog)),"terrain"in t&&r.setTerrain&&!Fe(t.terrain,n.terrain)&&(!t.terrain||r.getSource(t.terrain.source))&&(o=!0,r.setTerrain(t.terrain))),o}_updateHandlers(t,n){var r,o;const i=this._map;let a=!1;for(const c of Lc){const u=(r=t[c])!==null&&r!==void 0?r:!0,d=(o=n[c])!==null&&o!==void 0?o:!0;Fe(u,d)||(a=!0,u?i[c].enable(u):i[c].disable())}return a}_queryRenderedFeatures(t){const n=this._map,r=n.transform,{interactiveLayerIds:o=[]}=this.props;try{return n.transform=this._renderTransform,n.queryRenderedFeatures(t,{layers:o.filter(n.getLayer.bind(n))})}catch{return[]}finally{n.transform=r}}_updateHover(t){var n;const{props:r}=this;if(r.interactiveLayerIds&&(r.onMouseMove||r.onMouseEnter||r.onMouseLeave)){const i=t.type,a=((n=this._hoveredFeatures)===null||n===void 0?void 0:n.length)>0,c=this._queryRenderedFeatures(t.point),u=c.length>0;!u&&a&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=c,u&&!a&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=i}else this._hoveredFeatures=null}_fireEvent(t,n,r){const o=this._map,i=o.transform,a=typeof n=="string"?n:n.type;return a==="move"&&this._updateViewState(this.props,!1),a in gr&&(typeof n=="object"&&(n.viewState=No(i)),this._map.isMoving())?(o.transform=this._renderTransform,t.call(o,n,r),o.transform=i,o):(t.call(o,n,r),o)}_onBeforeRepaint(){const t=this._map;this._internalUpdate=!0;for(const r in this._deferredEvents)this._deferredEvents[r]&&t.fire(r);this._internalUpdate=!1;const n=this._map.transform;t.transform=this._renderTransform,this._onAfterRepaint=()=>{Eo(this._renderTransform,n),t.transform=n}}}Wt.savedMaps=[];function Mc(){let e=null;if(typeof location<"u"){const t=/access_token=([^&\/]*)/.exec(location.search);e=t&&t[1]}try{e=e||process.env.MapboxAccessToken}catch{}try{e=e||process.env.REACT_APP_MAPBOX_ACCESS_TOKEN}catch{}return e}const Rc=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function Ic(e){if(!e)return null;const t=e.map,n={getMap:()=>t,getCenter:()=>e.transform.center,getZoom:()=>e.transform.zoom,getBearing:()=>e.transform.bearing,getPitch:()=>e.transform.pitch,getPadding:()=>e.transform.padding,getBounds:()=>e.transform.getBounds(),project:r=>{const o=t.transform;t.transform=e.transform;const i=t.project(r);return t.transform=o,i},unproject:r=>{const o=t.transform;t.transform=e.transform;const i=t.unproject(r);return t.transform=o,i},queryTerrainElevation:(r,o)=>{const i=t.transform;t.transform=e.transform;const a=t.queryTerrainElevation(r,o);return t.transform=i,a},queryRenderedFeatures:(r,o)=>{const i=t.transform;t.transform=e.transform;const a=t.queryRenderedFeatures(r,o);return t.transform=i,a}};for(const r of Dc(t))!(r in n)&&!Rc.includes(r)&&(n[r]=t[r].bind(t));return n}function Dc(e){const t=new Set;let n=e;for(;n;){for(const r of Object.getOwnPropertyNames(n))r[0]!=="_"&&typeof e[r]=="function"&&r!=="fire"&&r!=="setEventedParent"&&t.add(r);n=Object.getPrototypeOf(n)}return Array.from(t)}const Bc=typeof document<"u"?w.useLayoutEffect:w.useEffect,Pc=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function Vc(e,t){for(const r of Pc)r in t&&(e[r]=t[r]);const{RTLTextPlugin:n="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"}=t;n&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()==="unavailable"&&e.setRTLTextPlugin(n,r=>{r&&console.error(r)},!0)}const Zt=Q.createContext(null);function Fc(e,t,n){const r=w.useContext($c),[o,i]=w.useState(null),a=w.useRef(),{current:c}=w.useRef({mapLib:null,map:null});w.useEffect(()=>{const m=e.mapLib;let g=!0,y;return Promise.resolve(m||n).then(h=>{if(!g)return;if(!h)throw new Error("Invalid mapLib");const b="Map"in h?h:h.default;if(!b.Map)throw new Error("Invalid mapLib");if(Vc(b,e),!b.supported||b.supported(e))e.reuseMaps&&(y=Wt.reuse(e,a.current)),y||(y=new Wt(b.Map,e,a.current)),c.map=Ic(y),c.mapLib=b,i(y),r==null||r.onMapMount(c.map,e.id);else throw new Error("Map is not supported by this browser")}).catch(h=>{const{onError:b}=e;b?b({type:"error",target:null,originalEvent:null,error:h}):console.error(h)}),()=>{g=!1,y&&(r==null||r.onMapUnmount(e.id),e.reuseMaps?y.recycle():y.destroy())}},[]),Bc(()=>{o&&o.setProps(e)}),w.useImperativeHandle(t,()=>c.map,[o]);const u=w.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),d={height:"100%"};return Q.createElement("div",{id:e.id,ref:a,style:u},o&&Q.createElement(Zt.Provider,{value:c},Q.createElement("div",{"mapboxgl-children":"",style:d},e.children)))}const zc=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function Et(e,t){if(!e||!t)return;const n=e.style;for(const r in t){const o=t[r];Number.isFinite(o)&&!zc.test(r)?n[r]=`${o}px`:n[r]=o}}function qc(e,t){const{map:n,mapLib:r}=w.useContext(Zt),o=w.useRef({props:e});o.current.props=e;const i=w.useMemo(()=>{let f=!1;Q.Children.forEach(e.children,S=>{S&&(f=!0)});const x={...e,element:f?document.createElement("div"):null},_=new r.Marker(x);return _.setLngLat([e.longitude,e.latitude]),_.getElement().addEventListener("click",S=>{var E,C;(C=(E=o.current.props).onClick)===null||C===void 0||C.call(E,{type:"click",target:_,originalEvent:S})}),_.on("dragstart",S=>{var E,C;const v=S;v.lngLat=i.getLngLat(),(C=(E=o.current.props).onDragStart)===null||C===void 0||C.call(E,v)}),_.on("drag",S=>{var E,C;const v=S;v.lngLat=i.getLngLat(),(C=(E=o.current.props).onDrag)===null||C===void 0||C.call(E,v)}),_.on("dragend",S=>{var E,C;const v=S;v.lngLat=i.getLngLat(),(C=(E=o.current.props).onDragEnd)===null||C===void 0||C.call(E,v)}),_},[]);w.useEffect(()=>(i.addTo(n.getMap()),()=>{i.remove()}),[]);const{longitude:a,latitude:c,offset:u,style:d,draggable:m=!1,popup:g=null,rotation:y=0,rotationAlignment:h="auto",pitchAlignment:b="auto"}=e;return w.useEffect(()=>{Et(i.getElement(),d)},[d]),w.useImperativeHandle(t,()=>i,[]),(i.getLngLat().lng!==a||i.getLngLat().lat!==c)&&i.setLngLat([a,c]),u&&!Ec(i.getOffset(),u)&&i.setOffset(u),i.isDraggable()!==m&&i.setDraggable(m),i.getRotation()!==y&&i.setRotation(y),i.getRotationAlignment()!==h&&i.setRotationAlignment(h),i.getPitchAlignment()!==b&&i.setPitchAlignment(b),i.getPopup()!==g&&i.setPopup(g),Os.createPortal(e.children,i.getElement())}w.memo(w.forwardRef(qc));function Io(e){return new Set(e?e.trim().split(/\s+/):[])}function Wc(e,t){const{map:n,mapLib:r}=w.useContext(Zt),o=w.useMemo(()=>document.createElement("div"),[]),i=w.useRef({props:e});i.current.props=e;const a=w.useMemo(()=>{const c={...e},u=new r.Popup(c);return u.setLngLat([e.longitude,e.latitude]),u.once("open",d=>{var m,g;(g=(m=i.current.props).onOpen)===null||g===void 0||g.call(m,d)}),u},[]);if(w.useEffect(()=>{const c=u=>{var d,m;(m=(d=i.current.props).onClose)===null||m===void 0||m.call(d,u)};return a.on("close",c),a.setDOMContent(o).addTo(n.getMap()),()=>{a.off("close",c),a.isOpen()&&a.remove()}},[]),w.useEffect(()=>{Et(a.getElement(),e.style)},[e.style]),w.useImperativeHandle(t,()=>a,[]),a.isOpen()&&((a.getLngLat().lng!==e.longitude||a.getLngLat().lat!==e.latitude)&&a.setLngLat([e.longitude,e.latitude]),e.offset&&!Fe(a.options.offset,e.offset)&&a.setOffset(e.offset),(a.options.anchor!==e.anchor||a.options.maxWidth!==e.maxWidth)&&(a.options.anchor=e.anchor,a.setMaxWidth(e.maxWidth)),a.options.className!==e.className)){const c=Io(a.options.className),u=Io(e.className);for(const d of c)u.has(d)||a.removeClassName(d);for(const d of u)c.has(d)||a.addClassName(d);a.options.className=e.className}return Os.createPortal(e.children,o)}const Uc=w.memo(w.forwardRef(Wc));function dn(e,t,n,r){const o=w.useContext(Zt),i=w.useMemo(()=>e(o),[]);return w.useEffect(()=>{const a=t,c=null,u=typeof t=="function"?t:null,{map:d}=o;return d.hasControl(i)||(d.addControl(i,a==null?void 0:a.position),c&&c(o)),()=>{u&&u(o),d.hasControl(i)&&d.removeControl(i)}},[]),i}function Zc(e){const t=dn(({mapLib:n})=>new n.AttributionControl(e),{position:e.position});return w.useEffect(()=>{Et(t._container,e.style)},[e.style]),null}w.memo(Zc);function Hc(e){const t=dn(({mapLib:n})=>new n.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return w.useEffect(()=>{Et(t._controlContainer,e.style)},[e.style]),null}w.memo(Hc);function Kc(e,t){const n=w.useRef({props:e}),r=dn(({mapLib:o})=>{const i=new o.GeolocateControl(e),a=i._setupUI;return i._setupUI=c=>{i._container.hasChildNodes()||a(c)},i.on("geolocate",c=>{var u,d;(d=(u=n.current.props).onGeolocate)===null||d===void 0||d.call(u,c)}),i.on("error",c=>{var u,d;(d=(u=n.current.props).onError)===null||d===void 0||d.call(u,c)}),i.on("outofmaxbounds",c=>{var u,d;(d=(u=n.current.props).onOutOfMaxBounds)===null||d===void 0||d.call(u,c)}),i.on("trackuserlocationstart",c=>{var u,d;(d=(u=n.current.props).onTrackUserLocationStart)===null||d===void 0||d.call(u,c)}),i.on("trackuserlocationend",c=>{var u,d;(d=(u=n.current.props).onTrackUserLocationEnd)===null||d===void 0||d.call(u,c)}),i},{position:e.position});return n.current.props=e,w.useImperativeHandle(t,()=>r,[]),w.useEffect(()=>{Et(r._container,e.style)},[e.style]),null}w.memo(w.forwardRef(Kc));function Gc(e){const t=dn(({mapLib:n})=>new n.NavigationControl(e),{position:e.position});return w.useEffect(()=>{Et(t._container,e.style)},[e.style]),null}const Yc=w.memo(Gc);function Xc(e){const t=dn(({mapLib:i})=>new i.ScaleControl(e),{position:e.position}),n=w.useRef(e),r=n.current;n.current=e;const{style:o}=e;return e.maxWidth!==void 0&&e.maxWidth!==r.maxWidth&&(t.options.maxWidth=e.maxWidth),e.unit!==void 0&&e.unit!==r.unit&&t.setUnit(e.unit),w.useEffect(()=>{Et(t._container,o)},[o]),null}w.memo(Xc);function Bn(e,t){if(!e)throw new Error(t)}function Qc(e,t,n,r){if(Bn(n.id===r.id,"layer id changed"),Bn(n.type===r.type,"layer type changed"),n.type==="custom"||r.type==="custom")return;const{layout:o={},paint:i={},filter:a,minzoom:c,maxzoom:u,beforeId:d}=n;if(d!==r.beforeId&&e.moveLayer(t,d),o!==r.layout){const m=r.layout||{};for(const g in o)Fe(o[g],m[g])||e.setLayoutProperty(t,g,o[g]);for(const g in m)o.hasOwnProperty(g)||e.setLayoutProperty(t,g,void 0)}if(i!==r.paint){const m=r.paint||{};for(const g in i)Fe(i[g],m[g])||e.setPaintProperty(t,g,i[g]);for(const g in m)i.hasOwnProperty(g)||e.setPaintProperty(t,g,void 0)}Fe(a,r.filter)||e.setFilter(t,a),(c!==r.minzoom||u!==r.maxzoom)&&e.setLayerZoomRange(t,c,u)}function Jc(e,t,n){if(e.style&&e.style._loaded&&(!("source"in n)||e.getSource(n.source))){const r={...n,id:t};delete r.beforeId,e.addLayer(r,n.beforeId)}}let e0=0;function t0(e){const t=w.useContext(Zt).map.getMap(),n=w.useRef(e),[,r]=w.useState(0),o=w.useMemo(()=>e.id||`jsx-layer-${e0++}`,[]);if(w.useEffect(()=>{if(t){const a=()=>r(c=>c+1);return t.on("styledata",a),a(),()=>{t.off("styledata",a),t.style&&t.style._loaded&&t.getLayer(o)&&t.removeLayer(o)}}},[t]),t&&t.style&&t.getLayer(o))try{Qc(t,o,e,n.current)}catch(a){console.warn(a)}else Jc(t,o,e);return n.current=e,null}let n0=0;function r0(e,t,n){if(e.style&&e.style._loaded){const r={...n};return delete r.id,delete r.children,e.addSource(t,r),e.getSource(t)}return null}function o0(e,t,n){Bn(t.id===n.id,"source id changed"),Bn(t.type===n.type,"source type changed");let r="",o=0;for(const a in t)a!=="children"&&a!=="id"&&!Fe(n[a],t[a])&&(r=a,o++);if(!o)return;const i=t.type;i==="geojson"?e.setData(t.data):i==="image"?e.updateImage({url:t.url,coordinates:t.coordinates}):"setCoordinates"in e&&o===1&&r==="coordinates"?e.setCoordinates(t.coordinates):"setUrl"in e&&r==="url"?e.setUrl(t.url):"setTiles"in e&&r==="tiles"?e.setTiles(t.tiles):console.warn(`Unable to update <Source> prop: ${r}`)}function s0(e){const t=w.useContext(Zt).map.getMap(),n=w.useRef(e),[,r]=w.useState(0),o=w.useMemo(()=>e.id||`jsx-source-${n0++}`,[]);w.useEffect(()=>{if(t){const a=()=>setTimeout(()=>r(c=>c+1),0);return t.on("styledata",a),a(),()=>{var c;if(t.off("styledata",a),t.style&&t.style._loaded&&t.getSource(o)){const u=(c=t.getStyle())===null||c===void 0?void 0:c.layers;if(u)for(const d of u)d.source===o&&t.removeLayer(d.id);t.removeSource(o)}}}},[t]);let i=t&&t.style&&t.getSource(o);return i?o0(i,e,n.current):i=r0(t,o,e),n.current=e,i&&Q.Children.map(e.children,a=>a&&w.cloneElement(a,{source:o}))||null}const i0=import("mapbox-gl"),ei=Q.forwardRef(function(t,n){return Fc(t,n,i0)}),ti=Uc,ni=Yc,ri=t0,oi=s0,a0="_mapContainer_84pkf_2",l0={mapContainer:a0};ga.accessToken="pk.eyJ1IjoiY2ljbGljYSIsImEiOiJja3llODhxZ2UwYzF1Mm5xcHVhMzI3anhqIn0.-r56FLAzEH57eVsB2ZeVcA";const si=({initialView:e={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:t=17,minZoom:n=8,mapStyle:r,firstSymbolLayer:o,cssProps:i={},onClick:a="",interactiveLayers:c=[],popUp:u=!1,sources:d=[],layers:m=[]})=>{const g=w.useRef(),[y,h]=w.useState(null),b=ya.useSelector(f=>f.mapState.showTexts);return w.useEffect(()=>{if(g.current){const f=g.current.getMap();f.getStyle().layers.map(_=>{_.type=="symbol"&&_.id!="professionals"&&(b?f.setLayoutProperty(_.id,"visibility","visible"):f.setLayoutProperty(_.id,"visibility","none"))})}},[b]),l.jsx("div",{className:`${l0.mapContainer}`,style:i,children:l.jsxs(ei,{initialViewState:e,ref:g,hash:!1,maxZoom:t,minZoom:n,mapStyle:r,onClick:a,interactiveLayerIds:c,children:[d.length&&d.map((f,x)=>l.jsx(oi,{...f,children:m.length&&m.map((_,S)=>{if(_.sourceId==f.id)return l.jsx(ri,{..._.layer,beforeId:o},S)})},x)),l.jsx(ni,{position:"bottom-right",visualizePitch:!0}),u&&y&&l.jsx(ti,{longitude:u.longitude,latitude:u.latitude,anchor:u.anchor,onClose:()=>h(null),children:u.content})]})})};si.propTypes={initialView:s.shape({latitude:s.number.isRequired,longitude:s.number.isRequired,zoom:s.number.isRequired}),mapStyle:s.object,firstSymbolLayer:s.string,cssProps:s.object,style:s.object,maxZoom:s.number,minZoom:s.number,onClick:s.func,interactiveLayers:s.array,popUp:s.shape({latitude:s.number,longitude:s.number,anchor:s.string,content:s.element}),textsUrl:s.string,sources:s.arrayOf(s.shape({id:s.string,type:s.string,url:s.string,data:s.object})),layers:s.arrayOf(s.shape({sourceId:s.string,layer:s.shape({id:s.string,type:s.string,sourceLayer:s.string,minZoom:s.number,maxZoom:s.number,paint:s.object})}))};const c0="_mapContainer_1r3q4_3",u0={mapContainer:c0},d0="_FeaturePopUp_oymb1_2",f0="_title_oymb1_10",p0="_button_oymb1_15",yr={FeaturePopUp:d0,title:f0,button:p0},m0=({props:e})=>{const{t}=se.useTranslation();return l.jsx("div",{className:yr.FeaturePopUp,children:e.map(n=>n.type!="button"?l.jsxs("p",{children:[l.jsxs("span",{className:yr.title,children:[l.jsx(se.Trans,{i18nKey:n.name,components:{sup:l.jsx("sup",{})},shouldUnescape:!0}),":"]}),n.type&&n.type=="html"?l.jsx("span",{dangerouslySetInnerHTML:{__html:n.value}}):isNaN(n.value)?l.jsx(l.Fragment,{children:t(n.value)}):l.jsxs(l.Fragment,{children:[n.value.toLocaleString("de",{maximumFractionDigits:2})," ",t(n.unit)]})]}):l.jsx("button",{className:yr.button,onClick:()=>n.onClick(),children:n.name}))})},ii=({initialView:e={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:t=17,minZoom:n=8,mapStyle:r,firstSymbolLayer:o,cssProps:i={},onClick:a="",interactiveLayers:c=[],sources:u=[],layers:d=[],popUpParams:m,onClosePopUp:g,showTexts:y,hash:h=!1})=>{const b=w.useRef();return w.useEffect(()=>{if(b.current){const f=b.current.getMap();f.getStyle().layers.map(_=>{_.type=="symbol"&&_.id!="professionals"&&(y?f.setLayoutProperty(_.id,"visibility","visible"):f.setLayoutProperty(_.id,"visibility","none"))})}},[y]),w.useEffect(()=>{let f=new ba.Protocol;return ir.addProtocol("pmtiles",f.tile),()=>{ir.removeProtocol("pmtiles")}},[]),l.jsx("div",{className:`${u0.mapContainer}`,style:i,children:l.jsxs(ei,{mapLib:ir,initialViewState:e,ref:b,hash:h,maxZoom:t,minZoom:n,mapStyle:r,onClick:a,interactiveLayerIds:c,children:[u.length&&u.map((f,x)=>l.jsx(oi,{...f,children:d.length&&d.map((_,S)=>{if(_.sourceId==f.id)return l.jsx(ri,{..._.layer,beforeId:o,filter:_.filters?_.filters:["all"],layout:{visibility:_.layer.visibility||"visible"}},S)})},x)),l.jsx(ni,{position:"bottom-right",visualizePitch:!0}),m&&l.jsx(ti,{longitude:m.lng,latitude:m.lat,onClose:g,children:l.jsx(m0,{props:m.props})})]})})};ii.propTypes={initialView:s.shape({latitude:s.number.isRequired,longitude:s.number.isRequired,zoom:s.number.isRequired}),mapStyle:s.string,firstSymbolLayer:s.string,cssProps:s.object,style:s.object,maxZoom:s.number,minZoom:s.number,onClick:s.func,interactiveLayers:s.array,popUp:s.bool,sources:s.arrayOf(s.shape({id:s.string,type:s.string,url:s.string,data:s.object})),layers:s.arrayOf(s.shape({sourceId:s.string,layer:s.shape({id:s.string,type:s.string,sourceLayer:s.string,minzoom:s.number,maxzoom:s.number,paint:s.object,visibility:s.string}),filters:s.array})),showTexts:s.bool,popUpParams:s.object,onClosePopUp:s.func};const h0="_sectionBar_yf2vy_2",g0="_leftContent_yf2vy_14",y0="_textContainer_yf2vy_20",b0="_title_yf2vy_27",v0="_subtitle_yf2vy_33",x0="_rightContent_yf2vy_38",Ct={sectionBar:h0,leftContent:g0,textContainer:y0,title:b0,subtitle:v0,rightContent:x0},ai=({leftIcon:e,title:t,subtitle:n,rightContent:r,mainColor:o,width:i,titleColor:a="#605b56",subTitleColor:c="#605b56",borderTop:u=!1})=>{const{t:d}=se.useTranslation();return l.jsxs("div",{className:Ct.sectionBar,style:{width:i&&i,borderTop:u?"1px solid #000":"0px"},children:[l.jsxs("div",{className:Ct.leftContent,children:[e&&l.jsx("img",{src:e,alt:"Icono",className:Ct.icon}),l.jsxs("div",{className:Ct.textContainer,children:[l.jsx("div",{className:Ct.title,style:{color:a},children:d(t)}),n&&l.jsx("div",{className:Ct.subtitle,style:{color:c},children:n})]})]}),l.jsx("div",{className:Ct.rightContent,children:r})]})};ai.propTypes={leftIcon:s.string,title:s.string.isRequired,subtitle:s.string,rightContent:s.node,mainColor:s.string,width:s.oneOfType([s.string,s.number]),borderTop:s.bool};const C0=va.createSlice({name:"mapSlice",initialState:{showTexts:!0,sliderSelectedYear:2025,activeIndicatorKey:0,activeIndicatorType:"cat",activeIndicatorUnit:null},reducers:{setShowTexts:(e,t)=>{e.showTexts=t.payload},setYear:(e,t)=>{e.sliderSelectedYear=t.payload},setActiveIndicatorKey:(e,t)=>{e.activeIndicatorKey=t.payload},setActiveIndicatorType:(e,t)=>{e.activeIndicatorType=t.payload},setActiveIndicatorUnit:(e,t)=>{e.activeIndicatorUnit=t.payload}}}),{setShowTexts:Pp,setYear:Vp,setActiveIndicatorKey:Fp,setActiveIndicatorType:zp,setActiveIndicatorUnit:qp}=C0.actions,_0="data:image/svg+xml,%3csvg%20width='42'%20height='42'%20viewBox='0%200%2042%2042'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='21'%20cy='21'%20r='20.25'%20fill='%23FDFDFD'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20d='M15.2722%2012.6627C15.2722%2011.8929%2016.1055%2011.4118%2016.7722%2011.7967L31.5641%2020.3368C32.2308%2020.7217%2032.2308%2021.684%2031.5641%2022.0689L16.7722%2030.609C16.1055%2030.9939%2015.2722%2030.5128%2015.2722%2029.743L15.2722%2012.6627Z'%20fill='%23605B56'/%3e%3c/svg%3e",w0="data:image/svg+xml,%3csvg%20width='42'%20height='42'%20viewBox='0%200%2042%2042'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='21'%20cy='21'%20r='20.25'%20fill='%23FDFDFD'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3crect%20x='15'%20y='12'%20width='4'%20height='19'%20rx='1'%20fill='%23605B56'/%3e%3crect%20x='23'%20y='12'%20width='4'%20height='19'%20rx='1'%20fill='%23605B56'/%3e%3c/svg%3e";function li(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=li(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ht(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=li(e))&&(r&&(r+=" "),r+=t);return r}function Do(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function S0(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",c=!0;for(let u=0;u<i.length;u+=1){const d=i[u];d&&(a+=(c===!0?"":" ")+t(d),c=!1,n&&n[d]&&(a+=" "+n[d]))}r[o]=a}return r}const T0=Q.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const k0=()=>Q.useContext(T0)??!1;function ci(...e){const t=Q.useRef(void 0),n=Q.useCallback(r=>{const o=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,c=a(r);return typeof c=="function"?c:()=>{a(null)}}return i.current=r,()=>{i.current=null}});return()=>{o.forEach(i=>i==null?void 0:i())}},e);return Q.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function an(e){return typeof e=="string"}function j0(e,t,n){return e===void 0||an(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Mn(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Bo(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function $0(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const h=ht(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),b={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},f={...n,...o,...r};return h.length>0&&(f.className=h),Object.keys(b).length>0&&(f.style=b),{props:f,internalRef:void 0}}const a=Mn({...o,...r}),c=Bo(r),u=Bo(o),d=t(a),m=ht(d==null?void 0:d.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g={...d==null?void 0:d.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},y={...d,...n,...u,...c};return m.length>0&&(y.className=m),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:d.ref}}function E0(e,t,n){return typeof e=="function"?e(t,n):e}function ft(e){var g;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:E0(n,r),{props:c,internalRef:u}=$0({...i,externalSlotProps:a}),d=ci(u,a==null?void 0:a.ref,(g=e.additionalProps)==null?void 0:g.ref);return j0(t,{...c,ref:d},r)}function Rn(e){return e&&e.ownerDocument||document}function N0(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:i}=Q.useRef(t!==void 0),[a,c]=Q.useState(n),u=i?t:a;if(process.env.NODE_ENV!=="production"){Q.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${o} state of ${r} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
24
24
  `))},[o,r,t]);const{current:m}=Q.useRef(n);Q.useEffect(()=>{!i&&JSON.stringify(n)!==JSON.stringify(m)&&console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
25
- `))},[JSON.stringify(n)])}const d=Q.useCallback(m=>{i||c(m)},[]);return[u,d]}const ui=typeof window<"u"?Q.useLayoutEffect:Q.useEffect;function br(e){const t=Q.useRef(e);return ui(()=>{t.current=e}),Q.useRef((...n)=>(0,t.current)(...n)).current}function Vo(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
26
- `))}return!1}const O0={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function zt(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function A0(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const L0=2;function Lt(e,t,n,r,o){return n===1?Math.min(e+t,o):Math.max(e-t,r)}function di(e,t){return e-t}function Po(e,t){const{index:n}=e.reduce((r,o,i)=>{const a=Math.abs(t-o);return r===null||a<r.distance||a===r.distance?{distance:a,index:i}:r},null)??{};return n}function Sn(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const o=n.changedTouches[r];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Vn(e,t,n){return(e-t)*100/(n-t)}function M0(e,t,n){return(n-t)*e+t}function R0(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function D0(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(R0(t)))}function Fo({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(di)}function Tn({sliderRef:e,activeIndex:t,setActive:n}){var o,i,a;const r=Rn(e.current);(!((o=e.current)!=null&&o.contains(r.activeElement))||Number((i=r==null?void 0:r.activeElement)==null?void 0:i.getAttribute("data-index"))!==t)&&((a=e.current)==null||a.querySelector(`[type="range"][data-index="${t}"]`).focus()),n&&n(t)}function jn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?A0(e,t):!1}const I0={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},B0=e=>e;let kn;function zo(){return kn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?kn=CSS.supports("touch-action","none"):kn=!0),kn}function V0(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:a=!1,max:c=100,min:u=0,name:d,onChange:m,onChangeCommitted:g,orientation:y="horizontal",rootRef:h,scale:b=B0,step:f=1,shiftStep:x=10,tabIndex:_,value:w}=e,E=Q.useRef(void 0),[C,v]=Q.useState(-1),[T,A]=Q.useState(-1),[k,j]=Q.useState(!1),D=Q.useRef(0),M=Q.useRef(null),[p,N]=N0({controlled:w,default:n??u,name:"Slider"}),$=m&&((I,B,W)=>{const X=I.nativeEvent||I,se=new X.constructor(X.type,X);Object.defineProperty(se,"target",{writable:!0,value:{value:B,name:d}}),M.current=B,m(se,B,W)}),P=Array.isArray(p);let q=P?p.slice().sort(di):[p];q=q.map(I=>I==null?u:zt(I,u,c));const Y=a===!0&&f!==null?[...Array(Math.floor((c-u)/f)+1)].map((I,B)=>({value:u+f*B})):a||[],U=Y.map(I=>I.value),[ge,L]=Q.useState(-1),R=Q.useRef(null),K=ci(h,R),J=I=>B=>{var X;const W=Number(B.currentTarget.getAttribute("data-index"));Vo(B.target)&&L(W),A(W),(X=I==null?void 0:I.onFocus)==null||X.call(I,B)},V=I=>B=>{var W;Vo(B.target)||L(-1),A(-1),(W=I==null?void 0:I.onBlur)==null||W.call(I,B)},Z=(I,B)=>{const W=Number(I.currentTarget.getAttribute("data-index")),X=q[W],se=U.indexOf(X);let G=B;if(Y&&f==null){const Ae=U[U.length-1];G>=Ae?G=Ae:G<=U[0]?G=U[0]:G=G<X?U[se-1]:U[se+1]}if(G=zt(G,u,c),P){o&&(G=zt(G,q[W-1]||-1/0,q[W+1]||1/0));const Ae=G;G=Fo({values:q,newValue:G,index:W});let Re=W;o||(Re=G.indexOf(Ae)),Tn({sliderRef:R,activeIndex:Re})}N(G),L(W),$&&!jn(G,p)&&$(I,G,W),g&&g(I,M.current??G)},ne=I=>B=>{var W;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(B.key)){B.preventDefault();const X=Number(B.currentTarget.getAttribute("data-index")),se=q[X];let G=null;if(f!=null){const Ae=B.shiftKey?x:f;switch(B.key){case"ArrowUp":G=Lt(se,Ae,1,u,c);break;case"ArrowRight":G=Lt(se,Ae,i?-1:1,u,c);break;case"ArrowDown":G=Lt(se,Ae,-1,u,c);break;case"ArrowLeft":G=Lt(se,Ae,i?1:-1,u,c);break;case"PageUp":G=Lt(se,x,1,u,c);break;case"PageDown":G=Lt(se,x,-1,u,c);break;case"Home":G=u;break;case"End":G=c;break}}else if(Y){const Ae=U[U.length-1],Re=U.indexOf(se),Ne=[i?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],We=[i?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Ne.includes(B.key)?Re===0?G=U[0]:G=U[Re-1]:We.includes(B.key)&&(Re===U.length-1?G=Ae:G=U[Re+1])}G!=null&&Z(B,G)}(W=I==null?void 0:I.onKeyDown)==null||W.call(I,B)};ui(()=>{var I;r&&R.current.contains(document.activeElement)&&((I=document.activeElement)==null||I.blur())},[r]),r&&C!==-1&&v(-1),r&&ge!==-1&&L(-1);const te=I=>B=>{var W;(W=I.onChange)==null||W.call(I,B),Z(B,B.target.valueAsNumber)},re=Q.useRef(void 0);let ee=y;i&&y==="horizontal"&&(ee+="-reverse");const H=({finger:I,move:B=!1})=>{const{current:W}=R,{width:X,height:se,bottom:G,left:Ae}=W.getBoundingClientRect();let Re;ee.startsWith("vertical")?Re=(G-I.y)/se:Re=(I.x-Ae)/X,ee.includes("-reverse")&&(Re=1-Re);let Ne;if(Ne=M0(Re,u,c),f)Ne=D0(Ne,f,u);else{const Gt=Po(U,Ne);Ne=U[Gt]}Ne=zt(Ne,u,c);let We=0;if(P){B?We=re.current:We=Po(q,Ne),o&&(Ne=zt(Ne,q[We-1]||-1/0,q[We+1]||1/0));const Gt=Ne;Ne=Fo({values:q,newValue:Ne,index:We}),o&&B||(We=Ne.indexOf(Gt),re.current=We)}return{newValue:Ne,activeIndex:We}},be=br(I=>{const B=Sn(I,E);if(!B)return;if(D.current+=1,I.type==="mousemove"&&I.buttons===0){F(I);return}const{newValue:W,activeIndex:X}=H({finger:B,move:!0});Tn({sliderRef:R,activeIndex:X,setActive:v}),N(W),!k&&D.current>L0&&j(!0),$&&!jn(W,p)&&$(I,W,X)}),F=br(I=>{const B=Sn(I,E);if(j(!1),!B)return;const{newValue:W}=H({finger:B,move:!0});v(-1),I.type==="touchend"&&A(-1),g&&g(I,M.current??W),E.current=void 0,Ce()}),ae=br(I=>{if(r)return;zo()||I.preventDefault();const B=I.changedTouches[0];B!=null&&(E.current=B.identifier);const W=Sn(I,E);if(W!==!1){const{newValue:se,activeIndex:G}=H({finger:W});Tn({sliderRef:R,activeIndex:G,setActive:v}),N(se),$&&!jn(se,p)&&$(I,se,G)}D.current=0;const X=Rn(R.current);X.addEventListener("touchmove",be,{passive:!0}),X.addEventListener("touchend",F,{passive:!0})}),Ce=Q.useCallback(()=>{const I=Rn(R.current);I.removeEventListener("mousemove",be),I.removeEventListener("mouseup",F),I.removeEventListener("touchmove",be),I.removeEventListener("touchend",F)},[F,be]);Q.useEffect(()=>{const{current:I}=R;return I.addEventListener("touchstart",ae,{passive:zo()}),()=>{I.removeEventListener("touchstart",ae),Ce()}},[Ce,ae]),Q.useEffect(()=>{r&&Ce()},[r,Ce]);const ct=I=>B=>{var se;if((se=I.onMouseDown)==null||se.call(I,B),r||B.defaultPrevented||B.button!==0)return;B.preventDefault();const W=Sn(B,E);if(W!==!1){const{newValue:G,activeIndex:Ae}=H({finger:W});Tn({sliderRef:R,activeIndex:Ae,setActive:v}),N(G),$&&!jn(G,p)&&$(B,G,Ae)}D.current=0;const X=Rn(R.current);X.addEventListener("mousemove",be,{passive:!0}),X.addEventListener("mouseup",F)},Ie=Vn(P?q[0]:u,u,c),Ee=Vn(q[q.length-1],u,c)-Ie,tt=(I={})=>{const B=Mn(I),W={onMouseDown:ct(B||{})},X={...B,...W};return{...I,ref:K,...X}},z=I=>B=>{var X;(X=I.onMouseOver)==null||X.call(I,B);const W=Number(B.currentTarget.getAttribute("data-index"));A(W)},ie=I=>B=>{var W;(W=I.onMouseLeave)==null||W.call(I,B),A(-1)},pe=(I={})=>{const B=Mn(I),W={onMouseOver:z(B||{}),onMouseLeave:ie(B||{})};return{...I,...B,...W}},_e=I=>({pointerEvents:C!==-1&&C!==I?"none":void 0});let je;return y==="vertical"&&(je=i?"vertical-rl":"vertical-lr"),{active:C,axis:ee,axisProps:I0,dragging:k,focusedThumbIndex:ge,getHiddenInputProps:(I={})=>{const B=Mn(I),W={onChange:te(B||{}),onFocus:J(B||{}),onBlur:V(B||{}),onKeyDown:ne(B||{})},X={...B,...W};return{tabIndex:_,"aria-labelledby":t,"aria-orientation":y,"aria-valuemax":b(c),"aria-valuemin":b(u),name:d,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:r,...I,...X,style:{...O0,direction:i?"rtl":"ltr",width:"100%",height:"100%",writingMode:je}}},getRootProps:tt,getThumbProps:pe,marks:Y,open:T,range:P,rootRef:K,trackLeap:Ee,trackOffset:Ie,values:q,getThumbStyle:_e}}function kt(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function Ge(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":kt(7));return e.charAt(0).toUpperCase()+e.slice(1)}var $n={exports:{}},me={};/**
25
+ `))},[JSON.stringify(n)])}const d=Q.useCallback(m=>{i||c(m)},[]);return[u,d]}const ui=typeof window<"u"?Q.useLayoutEffect:Q.useEffect;function br(e){const t=Q.useRef(e);return ui(()=>{t.current=e}),Q.useRef((...n)=>(0,t.current)(...n)).current}function Po(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
26
+ `))}return!1}const O0={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function zt(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function A0(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const L0=2;function Lt(e,t,n,r,o){return n===1?Math.min(e+t,o):Math.max(e-t,r)}function di(e,t){return e-t}function Vo(e,t){const{index:n}=e.reduce((r,o,i)=>{const a=Math.abs(t-o);return r===null||a<r.distance||a===r.distance?{distance:a,index:i}:r},null)??{};return n}function Sn(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const o=n.changedTouches[r];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Pn(e,t,n){return(e-t)*100/(n-t)}function M0(e,t,n){return(n-t)*e+t}function R0(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function I0(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(R0(t)))}function Fo({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(di)}function Tn({sliderRef:e,activeIndex:t,setActive:n}){var o,i,a;const r=Rn(e.current);(!((o=e.current)!=null&&o.contains(r.activeElement))||Number((i=r==null?void 0:r.activeElement)==null?void 0:i.getAttribute("data-index"))!==t)&&((a=e.current)==null||a.querySelector(`[type="range"][data-index="${t}"]`).focus()),n&&n(t)}function kn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?A0(e,t):!1}const D0={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},B0=e=>e;let jn;function zo(){return jn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?jn=CSS.supports("touch-action","none"):jn=!0),jn}function P0(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:a=!1,max:c=100,min:u=0,name:d,onChange:m,onChangeCommitted:g,orientation:y="horizontal",rootRef:h,scale:b=B0,step:f=1,shiftStep:x=10,tabIndex:_,value:S}=e,E=Q.useRef(void 0),[C,v]=Q.useState(-1),[T,A]=Q.useState(-1),[k,$]=Q.useState(!1),P=Q.useRef(0),I=Q.useRef(null),[p,N]=N0({controlled:S,default:n??u,name:"Slider"}),j=m&&((R,B,Z)=>{const X=R.nativeEvent||R,ie=new X.constructor(X.type,X);Object.defineProperty(ie,"target",{writable:!0,value:{value:B,name:d}}),I.current=B,m(ie,B,Z)}),V=Array.isArray(p);let W=V?p.slice().sort(di):[p];W=W.map(R=>R==null?u:zt(R,u,c));const D=a===!0&&f!==null?[...Array(Math.floor((c-u)/f)+1)].map((R,B)=>({value:u+f*B})):a||[],q=D.map(R=>R.value),[te,L]=Q.useState(-1),M=Q.useRef(null),H=ci(h,M),J=R=>B=>{var X;const Z=Number(B.currentTarget.getAttribute("data-index"));Po(B.target)&&L(Z),A(Z),(X=R==null?void 0:R.onFocus)==null||X.call(R,B)},F=R=>B=>{var Z;Po(B.target)||L(-1),A(-1),(Z=R==null?void 0:R.onBlur)==null||Z.call(R,B)},K=(R,B)=>{const Z=Number(R.currentTarget.getAttribute("data-index")),X=W[Z],ie=q.indexOf(X);let Y=B;if(D&&f==null){const Ae=q[q.length-1];Y>=Ae?Y=Ae:Y<=q[0]?Y=q[0]:Y=Y<X?q[ie-1]:q[ie+1]}if(Y=zt(Y,u,c),V){o&&(Y=zt(Y,W[Z-1]||-1/0,W[Z+1]||1/0));const Ae=Y;Y=Fo({values:W,newValue:Y,index:Z});let Re=Z;o||(Re=Y.indexOf(Ae)),Tn({sliderRef:M,activeIndex:Re})}N(Y),L(Z),j&&!kn(Y,p)&&j(R,Y,Z),g&&g(R,I.current??Y)},re=R=>B=>{var Z;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(B.key)){B.preventDefault();const X=Number(B.currentTarget.getAttribute("data-index")),ie=W[X];let Y=null;if(f!=null){const Ae=B.shiftKey?x:f;switch(B.key){case"ArrowUp":Y=Lt(ie,Ae,1,u,c);break;case"ArrowRight":Y=Lt(ie,Ae,i?-1:1,u,c);break;case"ArrowDown":Y=Lt(ie,Ae,-1,u,c);break;case"ArrowLeft":Y=Lt(ie,Ae,i?1:-1,u,c);break;case"PageUp":Y=Lt(ie,x,1,u,c);break;case"PageDown":Y=Lt(ie,x,-1,u,c);break;case"Home":Y=u;break;case"End":Y=c;break}}else if(D){const Ae=q[q.length-1],Re=q.indexOf(ie),Ne=[i?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],We=[i?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Ne.includes(B.key)?Re===0?Y=q[0]:Y=q[Re-1]:We.includes(B.key)&&(Re===q.length-1?Y=Ae:Y=q[Re+1])}Y!=null&&K(B,Y)}(Z=R==null?void 0:R.onKeyDown)==null||Z.call(R,B)};ui(()=>{var R;r&&M.current.contains(document.activeElement)&&((R=document.activeElement)==null||R.blur())},[r]),r&&C!==-1&&v(-1),r&&te!==-1&&L(-1);const ne=R=>B=>{var Z;(Z=R.onChange)==null||Z.call(R,B),K(B,B.target.valueAsNumber)},oe=Q.useRef(void 0);let ee=y;i&&y==="horizontal"&&(ee+="-reverse");const G=({finger:R,move:B=!1})=>{const{current:Z}=M,{width:X,height:ie,bottom:Y,left:Ae}=Z.getBoundingClientRect();let Re;ee.startsWith("vertical")?Re=(Y-R.y)/ie:Re=(R.x-Ae)/X,ee.includes("-reverse")&&(Re=1-Re);let Ne;if(Ne=M0(Re,u,c),f)Ne=I0(Ne,f,u);else{const Gt=Vo(q,Ne);Ne=q[Gt]}Ne=zt(Ne,u,c);let We=0;if(V){B?We=oe.current:We=Vo(W,Ne),o&&(Ne=zt(Ne,W[We-1]||-1/0,W[We+1]||1/0));const Gt=Ne;Ne=Fo({values:W,newValue:Ne,index:We}),o&&B||(We=Ne.indexOf(Gt),oe.current=We)}return{newValue:Ne,activeIndex:We}},be=br(R=>{const B=Sn(R,E);if(!B)return;if(P.current+=1,R.type==="mousemove"&&R.buttons===0){z(R);return}const{newValue:Z,activeIndex:X}=G({finger:B,move:!0});Tn({sliderRef:M,activeIndex:X,setActive:v}),N(Z),!k&&P.current>L0&&$(!0),j&&!kn(Z,p)&&j(R,Z,X)}),z=br(R=>{const B=Sn(R,E);if($(!1),!B)return;const{newValue:Z}=G({finger:B,move:!0});v(-1),R.type==="touchend"&&A(-1),g&&g(R,I.current??Z),E.current=void 0,Ce()}),le=br(R=>{if(r)return;zo()||R.preventDefault();const B=R.changedTouches[0];B!=null&&(E.current=B.identifier);const Z=Sn(R,E);if(Z!==!1){const{newValue:ie,activeIndex:Y}=G({finger:Z});Tn({sliderRef:M,activeIndex:Y,setActive:v}),N(ie),j&&!kn(ie,p)&&j(R,ie,Y)}P.current=0;const X=Rn(M.current);X.addEventListener("touchmove",be,{passive:!0}),X.addEventListener("touchend",z,{passive:!0})}),Ce=Q.useCallback(()=>{const R=Rn(M.current);R.removeEventListener("mousemove",be),R.removeEventListener("mouseup",z),R.removeEventListener("touchmove",be),R.removeEventListener("touchend",z)},[z,be]);Q.useEffect(()=>{const{current:R}=M;return R.addEventListener("touchstart",le,{passive:zo()}),()=>{R.removeEventListener("touchstart",le),Ce()}},[Ce,le]),Q.useEffect(()=>{r&&Ce()},[r,Ce]);const ct=R=>B=>{var ie;if((ie=R.onMouseDown)==null||ie.call(R,B),r||B.defaultPrevented||B.button!==0)return;B.preventDefault();const Z=Sn(B,E);if(Z!==!1){const{newValue:Y,activeIndex:Ae}=G({finger:Z});Tn({sliderRef:M,activeIndex:Ae,setActive:v}),N(Y),j&&!kn(Y,p)&&j(B,Y,Ae)}P.current=0;const X=Rn(M.current);X.addEventListener("mousemove",be,{passive:!0}),X.addEventListener("mouseup",z)},De=Pn(V?W[0]:u,u,c),Ee=Pn(W[W.length-1],u,c)-De,tt=(R={})=>{const B=Mn(R),Z={onMouseDown:ct(B||{})},X={...B,...Z};return{...R,ref:H,...X}},U=R=>B=>{var X;(X=R.onMouseOver)==null||X.call(R,B);const Z=Number(B.currentTarget.getAttribute("data-index"));A(Z)},ae=R=>B=>{var Z;(Z=R.onMouseLeave)==null||Z.call(R,B),A(-1)},me=(R={})=>{const B=Mn(R),Z={onMouseOver:U(B||{}),onMouseLeave:ae(B||{})};return{...R,...B,...Z}},_e=R=>({pointerEvents:C!==-1&&C!==R?"none":void 0});let ke;return y==="vertical"&&(ke=i?"vertical-rl":"vertical-lr"),{active:C,axis:ee,axisProps:D0,dragging:k,focusedThumbIndex:te,getHiddenInputProps:(R={})=>{const B=Mn(R),Z={onChange:ne(B||{}),onFocus:J(B||{}),onBlur:F(B||{}),onKeyDown:re(B||{})},X={...B,...Z};return{tabIndex:_,"aria-labelledby":t,"aria-orientation":y,"aria-valuemax":b(c),"aria-valuemin":b(u),name:d,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:r,...R,...X,style:{...O0,direction:i?"rtl":"ltr",width:"100%",height:"100%",writingMode:ke}}},getRootProps:tt,getThumbProps:me,marks:D,open:T,range:V,rootRef:H,trackLeap:Ee,trackOffset:De,values:W,getThumbStyle:_e}}function jt(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function Ge(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":jt(7));return e.charAt(0).toUpperCase()+e.slice(1)}var $n={exports:{}},he={};/**
27
27
  * @license React
28
28
  * react-is.production.js
29
29
  *
@@ -31,7 +31,7 @@ Valid keys: `+JSON.stringify(Object.keys(L),null," "));var F=be(te,H,V,Z,ne+"."
31
31
  *
32
32
  * This source code is licensed under the MIT license found in the
33
33
  * LICENSE file in the root directory of this source tree.
34
- */var qo;function P0(){if(qo)return me;qo=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function b(f){if(typeof f=="object"&&f!==null){var x=f.$$typeof;switch(x){case e:switch(f=f.type,f){case n:case o:case r:case u:case d:case y:return f;default:switch(f=f&&f.$$typeof,f){case a:case c:case g:case m:return f;case i:return f;default:return x}}case t:return x}}}return me.ContextConsumer=i,me.ContextProvider=a,me.Element=e,me.ForwardRef=c,me.Fragment=n,me.Lazy=g,me.Memo=m,me.Portal=t,me.Profiler=o,me.StrictMode=r,me.Suspense=u,me.SuspenseList=d,me.isContextConsumer=function(f){return b(f)===i},me.isContextProvider=function(f){return b(f)===a},me.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},me.isForwardRef=function(f){return b(f)===c},me.isFragment=function(f){return b(f)===n},me.isLazy=function(f){return b(f)===g},me.isMemo=function(f){return b(f)===m},me.isPortal=function(f){return b(f)===t},me.isProfiler=function(f){return b(f)===o},me.isStrictMode=function(f){return b(f)===r},me.isSuspense=function(f){return b(f)===u},me.isSuspenseList=function(f){return b(f)===d},me.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===o||f===r||f===u||f===d||typeof f=="object"&&f!==null&&(f.$$typeof===g||f.$$typeof===m||f.$$typeof===a||f.$$typeof===i||f.$$typeof===c||f.$$typeof===h||f.getModuleId!==void 0)},me.typeOf=b,me}var he={};/**
34
+ */var qo;function V0(){if(qo)return he;qo=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function b(f){if(typeof f=="object"&&f!==null){var x=f.$$typeof;switch(x){case e:switch(f=f.type,f){case n:case o:case r:case u:case d:case y:return f;default:switch(f=f&&f.$$typeof,f){case a:case c:case g:case m:return f;case i:return f;default:return x}}case t:return x}}}return he.ContextConsumer=i,he.ContextProvider=a,he.Element=e,he.ForwardRef=c,he.Fragment=n,he.Lazy=g,he.Memo=m,he.Portal=t,he.Profiler=o,he.StrictMode=r,he.Suspense=u,he.SuspenseList=d,he.isContextConsumer=function(f){return b(f)===i},he.isContextProvider=function(f){return b(f)===a},he.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},he.isForwardRef=function(f){return b(f)===c},he.isFragment=function(f){return b(f)===n},he.isLazy=function(f){return b(f)===g},he.isMemo=function(f){return b(f)===m},he.isPortal=function(f){return b(f)===t},he.isProfiler=function(f){return b(f)===o},he.isStrictMode=function(f){return b(f)===r},he.isSuspense=function(f){return b(f)===u},he.isSuspenseList=function(f){return b(f)===d},he.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===o||f===r||f===u||f===d||typeof f=="object"&&f!==null&&(f.$$typeof===g||f.$$typeof===m||f.$$typeof===a||f.$$typeof===i||f.$$typeof===c||f.$$typeof===h||f.getModuleId!==void 0)},he.typeOf=b,he}var ge={};/**
35
35
  * @license React
36
36
  * react-is.development.js
37
37
  *
@@ -39,22 +39,22 @@ Valid keys: `+JSON.stringify(Object.keys(L),null," "));var F=be(te,H,V,Z,ne+"."
39
39
  *
40
40
  * This source code is licensed under the MIT license found in the
41
41
  * LICENSE file in the root directory of this source tree.
42
- */var Wo;function F0(){return Wo||(Wo=1,process.env.NODE_ENV!=="production"&&function(){function e(f){if(typeof f=="object"&&f!==null){var x=f.$$typeof;switch(x){case t:switch(f=f.type,f){case r:case i:case o:case d:case m:case h:return f;default:switch(f=f&&f.$$typeof,f){case c:case u:case y:case g:return f;case a:return f;default:return x}}case n:return x}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");he.ContextConsumer=a,he.ContextProvider=c,he.Element=t,he.ForwardRef=u,he.Fragment=r,he.Lazy=y,he.Memo=g,he.Portal=n,he.Profiler=i,he.StrictMode=o,he.Suspense=d,he.SuspenseList=m,he.isContextConsumer=function(f){return e(f)===a},he.isContextProvider=function(f){return e(f)===c},he.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},he.isForwardRef=function(f){return e(f)===u},he.isFragment=function(f){return e(f)===r},he.isLazy=function(f){return e(f)===y},he.isMemo=function(f){return e(f)===g},he.isPortal=function(f){return e(f)===n},he.isProfiler=function(f){return e(f)===i},he.isStrictMode=function(f){return e(f)===o},he.isSuspense=function(f){return e(f)===d},he.isSuspenseList=function(f){return e(f)===m},he.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===i||f===o||f===d||f===m||typeof f=="object"&&f!==null&&(f.$$typeof===y||f.$$typeof===g||f.$$typeof===c||f.$$typeof===a||f.$$typeof===u||f.$$typeof===b||f.getModuleId!==void 0)},he.typeOf=e}()),he}var Uo;function z0(){return Uo||(Uo=1,process.env.NODE_ENV==="production"?$n.exports=P0():$n.exports=F0()),$n.exports}var Pn=z0();function it(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function fi(e){if(Q.isValidElement(e)||Pn.isValidElementType(e)||!it(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=fi(e[n])}),t}function qe(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return it(e)&&it(t)&&Object.keys(t).forEach(o=>{Q.isValidElement(t[o])||Pn.isValidElementType(t[o])?r[o]=t[o]:it(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&it(e[o])?r[o]=qe(e[o],t[o],n):n.clone?r[o]=it(t[o])?fi(t[o]):t[o]:r[o]=t[o]}),r}function ln(e,t){return t?qe(e,t,{clone:!1}):e}const bt=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function Zo(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var a,c;const i=/min-width:\s*([0-9.]+)/;return+(((a=r.match(i))==null?void 0:a[1])||0)-+(((c=o.match(i))==null?void 0:c[1])||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function q0(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function W0(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
42
+ */var Wo;function F0(){return Wo||(Wo=1,process.env.NODE_ENV!=="production"&&function(){function e(f){if(typeof f=="object"&&f!==null){var x=f.$$typeof;switch(x){case t:switch(f=f.type,f){case r:case i:case o:case d:case m:case h:return f;default:switch(f=f&&f.$$typeof,f){case c:case u:case y:case g:return f;case a:return f;default:return x}}case n:return x}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");ge.ContextConsumer=a,ge.ContextProvider=c,ge.Element=t,ge.ForwardRef=u,ge.Fragment=r,ge.Lazy=y,ge.Memo=g,ge.Portal=n,ge.Profiler=i,ge.StrictMode=o,ge.Suspense=d,ge.SuspenseList=m,ge.isContextConsumer=function(f){return e(f)===a},ge.isContextProvider=function(f){return e(f)===c},ge.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},ge.isForwardRef=function(f){return e(f)===u},ge.isFragment=function(f){return e(f)===r},ge.isLazy=function(f){return e(f)===y},ge.isMemo=function(f){return e(f)===g},ge.isPortal=function(f){return e(f)===n},ge.isProfiler=function(f){return e(f)===i},ge.isStrictMode=function(f){return e(f)===o},ge.isSuspense=function(f){return e(f)===d},ge.isSuspenseList=function(f){return e(f)===m},ge.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===i||f===o||f===d||f===m||typeof f=="object"&&f!==null&&(f.$$typeof===y||f.$$typeof===g||f.$$typeof===c||f.$$typeof===a||f.$$typeof===u||f.$$typeof===b||f.getModuleId!==void 0)},ge.typeOf=e}()),ge}var Uo;function z0(){return Uo||(Uo=1,process.env.NODE_ENV==="production"?$n.exports=V0():$n.exports=F0()),$n.exports}var Vn=z0();function it(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function fi(e){if(Q.isValidElement(e)||Vn.isValidElementType(e)||!it(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=fi(e[n])}),t}function qe(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return it(e)&&it(t)&&Object.keys(t).forEach(o=>{Q.isValidElement(t[o])||Vn.isValidElementType(t[o])?r[o]=t[o]:it(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&it(e[o])?r[o]=qe(e[o],t[o],n):n.clone?r[o]=it(t[o])?fi(t[o]):t[o]:r[o]=t[o]}),r}function ln(e,t){return t?qe(e,t,{clone:!1}):e}const bt=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function Zo(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var a,c;const i=/min-width:\s*([0-9.]+)/;return+(((a=r.match(i))==null?void 0:a[1])||0)-+(((c=o.match(i))==null?void 0:c[1])||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function q0(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function W0(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
43
43
  For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`);return null}const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function U0(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...c)=>t(e.breakpoints.up(...c),a),i.down=(...c)=>t(e.breakpoints.down(...c),a),i.between=(...c)=>t(e.breakpoints.between(...c),a),i.only=(...c)=>t(e.breakpoints.only(...c),a),i.not=(...c)=>{const u=t(e.breakpoints.not(...c),a);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const qn={xs:0,sm:600,md:900,lg:1200,xl:1536},Ho={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${qn[e]}px)`},Z0={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:qn[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function lt(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Ho;return t.reduce((a,c,u)=>(a[i.up(i.keys[u])]=n(t[u]),a),{})}if(typeof t=="object"){const i=r.breakpoints||Ho;return Object.keys(t).reduce((a,c)=>{if(q0(i.keys,c)){const u=W0(r.containerQueries?r:Z0,c);u&&(a[u]=n(t[c],c))}else if(Object.keys(i.values||qn).includes(c)){const u=i.up(c);a[u]=n(t[c],c)}else{const u=c;a[u]=t[u]}return a},{})}return n(t)}function H0(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function Ko(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Wn(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Fn(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Wn(e,n)||r,t&&(o=t(o,r,e)),o}function Te(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const c=a[t],u=a.theme,d=Wn(u,r)||{};return lt(a,c,g=>{let y=Fn(d,o,g);return g===y&&typeof g=="string"&&(y=Fn(d,o,`${t}${g==="default"?"":Ge(g)}`,g)),n===!1?y:{[n]:y}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:bt}:{},i.filterProps=[t],i}function K0(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const G0={m:"margin",p:"padding"},Y0={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Go={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},X0=K0(e=>{if(e.length>2)if(Go[e])e=Go[e];else return[e];const[t,n]=e.split(""),r=G0[t],o=Y0[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Un=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Zn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Q0=[...Un,...Zn];function fn(e,t,n,r){const o=Wn(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${i}.`),typeof o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
44
44
  `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
45
45
  `)));const c=o[a];return i>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
46
- `)),()=>{})}function Kr(e){return fn(e,"spacing",8,"spacing")}function pn(e,t){return typeof t=="string"||t==null?t:e(t)}function J0(e,t){return n=>e.reduce((r,o)=>(r[o]=pn(t,n),r),{})}function e2(e,t,n,r){if(!t.includes(n))return null;const o=X0(n),i=J0(o,r),a=e[n];return lt(e,a,i)}function pi(e,t){const n=Kr(e.theme);return Object.keys(e).map(r=>e2(e,t,r,n)).reduce(ln,{})}function we(e){return pi(e,Un)}we.propTypes=process.env.NODE_ENV!=="production"?Un.reduce((e,t)=>(e[t]=bt,e),{}):{};we.filterProps=Un;function Se(e){return pi(e,Zn)}Se.propTypes=process.env.NODE_ENV!=="production"?Zn.reduce((e,t)=>(e[t]=bt,e),{}):{};Se.filterProps=Zn;process.env.NODE_ENV!=="production"&&Q0.reduce((e,t)=>(e[t]=bt,e),{});function Hn(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?ln(o,t[i](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Ze(e){return typeof e!="number"?e:`${e}px solid`}function Ke(e,t){return Te({prop:e,themeKey:"borders",transform:t})}const t2=Ke("border",Ze),n2=Ke("borderTop",Ze),r2=Ke("borderRight",Ze),o2=Ke("borderBottom",Ze),s2=Ke("borderLeft",Ze),i2=Ke("borderColor"),a2=Ke("borderTopColor"),l2=Ke("borderRightColor"),c2=Ke("borderBottomColor"),u2=Ke("borderLeftColor"),d2=Ke("outline",Ze),f2=Ke("outlineColor"),Kn=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=fn(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:pn(t,r)});return lt(e,e.borderRadius,n)}return null};Kn.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:bt}:{};Kn.filterProps=["borderRadius"];Hn(t2,n2,r2,o2,s2,i2,a2,l2,c2,u2,Kn,d2,f2);const Gn=e=>{if(e.gap!==void 0&&e.gap!==null){const t=fn(e.theme,"spacing",8,"gap"),n=r=>({gap:pn(t,r)});return lt(e,e.gap,n)}return null};Gn.propTypes=process.env.NODE_ENV!=="production"?{gap:bt}:{};Gn.filterProps=["gap"];const Yn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=fn(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:pn(t,r)});return lt(e,e.columnGap,n)}return null};Yn.propTypes=process.env.NODE_ENV!=="production"?{columnGap:bt}:{};Yn.filterProps=["columnGap"];const Xn=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=fn(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:pn(t,r)});return lt(e,e.rowGap,n)}return null};Xn.propTypes=process.env.NODE_ENV!=="production"?{rowGap:bt}:{};Xn.filterProps=["rowGap"];const p2=Te({prop:"gridColumn"}),m2=Te({prop:"gridRow"}),h2=Te({prop:"gridAutoFlow"}),g2=Te({prop:"gridAutoColumns"}),y2=Te({prop:"gridAutoRows"}),b2=Te({prop:"gridTemplateColumns"}),v2=Te({prop:"gridTemplateRows"}),x2=Te({prop:"gridTemplateAreas"}),C2=Te({prop:"gridArea"});Hn(Gn,Yn,Xn,p2,m2,h2,g2,y2,b2,v2,x2,C2);function qt(e,t){return t==="grey"?t:e}const _2=Te({prop:"color",themeKey:"palette",transform:qt}),w2=Te({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:qt}),S2=Te({prop:"backgroundColor",themeKey:"palette",transform:qt});Hn(_2,w2,S2);function ze(e){return e<=1&&e!==0?`${e*100}%`:e}const T2=Te({prop:"width",transform:ze}),Gr=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,a,c,u;const r=((a=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||qn[n];return r?((u=(c=e.theme)==null?void 0:c.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:ze(n)}};return lt(e,e.maxWidth,t)}return null};Gr.filterProps=["maxWidth"];const j2=Te({prop:"minWidth",transform:ze}),k2=Te({prop:"height",transform:ze}),$2=Te({prop:"maxHeight",transform:ze}),E2=Te({prop:"minHeight",transform:ze});Te({prop:"size",cssProperty:"width",transform:ze});Te({prop:"size",cssProperty:"height",transform:ze});const N2=Te({prop:"boxSizing"});Hn(T2,Gr,j2,k2,$2,E2,N2);const Qn={border:{themeKey:"borders",transform:Ze},borderTop:{themeKey:"borders",transform:Ze},borderRight:{themeKey:"borders",transform:Ze},borderBottom:{themeKey:"borders",transform:Ze},borderLeft:{themeKey:"borders",transform:Ze},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ze},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Kn},color:{themeKey:"palette",transform:qt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:qt},backgroundColor:{themeKey:"palette",transform:qt},p:{style:Se},pt:{style:Se},pr:{style:Se},pb:{style:Se},pl:{style:Se},px:{style:Se},py:{style:Se},padding:{style:Se},paddingTop:{style:Se},paddingRight:{style:Se},paddingBottom:{style:Se},paddingLeft:{style:Se},paddingX:{style:Se},paddingY:{style:Se},paddingInline:{style:Se},paddingInlineStart:{style:Se},paddingInlineEnd:{style:Se},paddingBlock:{style:Se},paddingBlockStart:{style:Se},paddingBlockEnd:{style:Se},m:{style:we},mt:{style:we},mr:{style:we},mb:{style:we},ml:{style:we},mx:{style:we},my:{style:we},margin:{style:we},marginTop:{style:we},marginRight:{style:we},marginBottom:{style:we},marginLeft:{style:we},marginX:{style:we},marginY:{style:we},marginInline:{style:we},marginInlineStart:{style:we},marginInlineEnd:{style:we},marginBlock:{style:we},marginBlockStart:{style:we},marginBlockEnd:{style:we},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Gn},rowGap:{style:Xn},columnGap:{style:Yn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ze},maxWidth:{style:Gr},minWidth:{transform:ze},height:{transform:ze},maxHeight:{transform:ze},minHeight:{transform:ze},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function O2(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function A2(e,t){return typeof e=="function"?e(t):e}function L2(){function e(n,r,o,i){const a={[n]:r,theme:o},c=i[n];if(!c)return{[n]:r};const{cssProperty:u=n,themeKey:d,transform:m,style:g}=c;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const y=Wn(o,d)||{};return g?g(a):lt(a,r,b=>{let f=Fn(y,m,b);return b===f&&typeof b=="string"&&(f=Fn(y,m,`${n}${b==="default"?"":Ge(b)}`,b)),u===!1?f:{[u]:f}})}function t(n){const{sx:r,theme:o={},nested:i}=n||{};if(!r)return null;const a=o.unstable_sxConfig??Qn;function c(u){let d=u;if(typeof u=="function")d=u(o);else if(typeof u!="object")return u;if(!d)return null;const m=H0(o.breakpoints),g=Object.keys(m);let y=m;return Object.keys(d).forEach(h=>{const b=A2(d[h],o);if(b!=null)if(typeof b=="object")if(a[h])y=ln(y,e(h,b,o,a));else{const f=lt({theme:o},b,x=>({[h]:x}));O2(f,b)?y[h]=t({sx:b,theme:o,nested:!0}):y=ln(y,f)}else y=ln(y,e(h,b,o,a))}),!i&&o.modularCssLayers?{"@layer sx":Zo(o,Ko(g,y))}:Zo(o,Ko(g,y))}return Array.isArray(r)?r.map(c):c(r)}return t}const Ut=L2();Ut.filterProps=["sx"];function M2(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var R2={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function D2(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var I2=/[A-Z]|^ms/g,B2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,mi=function(t){return t.charCodeAt(1)===45},Yo=function(t){return t!=null&&typeof t!="boolean"},vr=D2(function(e){return mi(e)?e:e.replace(I2,"-$&").toLowerCase()}),Xo=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(B2,function(r,o,i){return mt={name:o,styles:i,next:mt},o})}return R2[t]!==1&&!mi(t)&&typeof n=="number"&&n!==0?n+"px":n};function zn(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return mt={name:o.name,styles:o.styles,next:mt},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)mt={name:a.name,styles:a.styles,next:mt},a=a.next;var c=i.styles+";";return c}return V2(e,t,n)}}var u=n;return u}function V2(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=zn(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var c=a;Yo(c)&&(r+=vr(i)+":"+Xo(i,c)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var u=0;u<a.length;u++)Yo(a[u])&&(r+=vr(i)+":"+Xo(i,a[u])+";");else{var d=zn(e,t,a);switch(i){case"animation":case"animationName":{r+=vr(i)+":"+d+";";break}default:r+=i+"{"+d+"}"}}}return r}var Qo=/label:\s*([^\s;{]+)\s*(;|$)/g,mt;function P2(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";mt=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=zn(n,t,i);else{var a=i;o+=a[0]}for(var c=1;c<e.length;c++)if(o+=zn(n,t,e[c]),r){var u=i;o+=u[c]}Qo.lastIndex=0;for(var d="",m;(m=Qo.exec(o))!==null;)d+="-"+m[1];var g=M2(o)+d;return{name:g,styles:o,next:mt}}/**
46
+ `)),()=>{})}function Kr(e){return fn(e,"spacing",8,"spacing")}function pn(e,t){return typeof t=="string"||t==null?t:e(t)}function J0(e,t){return n=>e.reduce((r,o)=>(r[o]=pn(t,n),r),{})}function e2(e,t,n,r){if(!t.includes(n))return null;const o=X0(n),i=J0(o,r),a=e[n];return lt(e,a,i)}function pi(e,t){const n=Kr(e.theme);return Object.keys(e).map(r=>e2(e,t,r,n)).reduce(ln,{})}function we(e){return pi(e,Un)}we.propTypes=process.env.NODE_ENV!=="production"?Un.reduce((e,t)=>(e[t]=bt,e),{}):{};we.filterProps=Un;function Se(e){return pi(e,Zn)}Se.propTypes=process.env.NODE_ENV!=="production"?Zn.reduce((e,t)=>(e[t]=bt,e),{}):{};Se.filterProps=Zn;process.env.NODE_ENV!=="production"&&Q0.reduce((e,t)=>(e[t]=bt,e),{});function Hn(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?ln(o,t[i](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Ze(e){return typeof e!="number"?e:`${e}px solid`}function Ke(e,t){return Te({prop:e,themeKey:"borders",transform:t})}const t2=Ke("border",Ze),n2=Ke("borderTop",Ze),r2=Ke("borderRight",Ze),o2=Ke("borderBottom",Ze),s2=Ke("borderLeft",Ze),i2=Ke("borderColor"),a2=Ke("borderTopColor"),l2=Ke("borderRightColor"),c2=Ke("borderBottomColor"),u2=Ke("borderLeftColor"),d2=Ke("outline",Ze),f2=Ke("outlineColor"),Kn=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=fn(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:pn(t,r)});return lt(e,e.borderRadius,n)}return null};Kn.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:bt}:{};Kn.filterProps=["borderRadius"];Hn(t2,n2,r2,o2,s2,i2,a2,l2,c2,u2,Kn,d2,f2);const Gn=e=>{if(e.gap!==void 0&&e.gap!==null){const t=fn(e.theme,"spacing",8,"gap"),n=r=>({gap:pn(t,r)});return lt(e,e.gap,n)}return null};Gn.propTypes=process.env.NODE_ENV!=="production"?{gap:bt}:{};Gn.filterProps=["gap"];const Yn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=fn(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:pn(t,r)});return lt(e,e.columnGap,n)}return null};Yn.propTypes=process.env.NODE_ENV!=="production"?{columnGap:bt}:{};Yn.filterProps=["columnGap"];const Xn=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=fn(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:pn(t,r)});return lt(e,e.rowGap,n)}return null};Xn.propTypes=process.env.NODE_ENV!=="production"?{rowGap:bt}:{};Xn.filterProps=["rowGap"];const p2=Te({prop:"gridColumn"}),m2=Te({prop:"gridRow"}),h2=Te({prop:"gridAutoFlow"}),g2=Te({prop:"gridAutoColumns"}),y2=Te({prop:"gridAutoRows"}),b2=Te({prop:"gridTemplateColumns"}),v2=Te({prop:"gridTemplateRows"}),x2=Te({prop:"gridTemplateAreas"}),C2=Te({prop:"gridArea"});Hn(Gn,Yn,Xn,p2,m2,h2,g2,y2,b2,v2,x2,C2);function qt(e,t){return t==="grey"?t:e}const _2=Te({prop:"color",themeKey:"palette",transform:qt}),w2=Te({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:qt}),S2=Te({prop:"backgroundColor",themeKey:"palette",transform:qt});Hn(_2,w2,S2);function ze(e){return e<=1&&e!==0?`${e*100}%`:e}const T2=Te({prop:"width",transform:ze}),Gr=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,a,c,u;const r=((a=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||qn[n];return r?((u=(c=e.theme)==null?void 0:c.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:ze(n)}};return lt(e,e.maxWidth,t)}return null};Gr.filterProps=["maxWidth"];const k2=Te({prop:"minWidth",transform:ze}),j2=Te({prop:"height",transform:ze}),$2=Te({prop:"maxHeight",transform:ze}),E2=Te({prop:"minHeight",transform:ze});Te({prop:"size",cssProperty:"width",transform:ze});Te({prop:"size",cssProperty:"height",transform:ze});const N2=Te({prop:"boxSizing"});Hn(T2,Gr,k2,j2,$2,E2,N2);const Qn={border:{themeKey:"borders",transform:Ze},borderTop:{themeKey:"borders",transform:Ze},borderRight:{themeKey:"borders",transform:Ze},borderBottom:{themeKey:"borders",transform:Ze},borderLeft:{themeKey:"borders",transform:Ze},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ze},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Kn},color:{themeKey:"palette",transform:qt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:qt},backgroundColor:{themeKey:"palette",transform:qt},p:{style:Se},pt:{style:Se},pr:{style:Se},pb:{style:Se},pl:{style:Se},px:{style:Se},py:{style:Se},padding:{style:Se},paddingTop:{style:Se},paddingRight:{style:Se},paddingBottom:{style:Se},paddingLeft:{style:Se},paddingX:{style:Se},paddingY:{style:Se},paddingInline:{style:Se},paddingInlineStart:{style:Se},paddingInlineEnd:{style:Se},paddingBlock:{style:Se},paddingBlockStart:{style:Se},paddingBlockEnd:{style:Se},m:{style:we},mt:{style:we},mr:{style:we},mb:{style:we},ml:{style:we},mx:{style:we},my:{style:we},margin:{style:we},marginTop:{style:we},marginRight:{style:we},marginBottom:{style:we},marginLeft:{style:we},marginX:{style:we},marginY:{style:we},marginInline:{style:we},marginInlineStart:{style:we},marginInlineEnd:{style:we},marginBlock:{style:we},marginBlockStart:{style:we},marginBlockEnd:{style:we},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Gn},rowGap:{style:Xn},columnGap:{style:Yn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ze},maxWidth:{style:Gr},minWidth:{transform:ze},height:{transform:ze},maxHeight:{transform:ze},minHeight:{transform:ze},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function O2(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function A2(e,t){return typeof e=="function"?e(t):e}function L2(){function e(n,r,o,i){const a={[n]:r,theme:o},c=i[n];if(!c)return{[n]:r};const{cssProperty:u=n,themeKey:d,transform:m,style:g}=c;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const y=Wn(o,d)||{};return g?g(a):lt(a,r,b=>{let f=Fn(y,m,b);return b===f&&typeof b=="string"&&(f=Fn(y,m,`${n}${b==="default"?"":Ge(b)}`,b)),u===!1?f:{[u]:f}})}function t(n){const{sx:r,theme:o={},nested:i}=n||{};if(!r)return null;const a=o.unstable_sxConfig??Qn;function c(u){let d=u;if(typeof u=="function")d=u(o);else if(typeof u!="object")return u;if(!d)return null;const m=H0(o.breakpoints),g=Object.keys(m);let y=m;return Object.keys(d).forEach(h=>{const b=A2(d[h],o);if(b!=null)if(typeof b=="object")if(a[h])y=ln(y,e(h,b,o,a));else{const f=lt({theme:o},b,x=>({[h]:x}));O2(f,b)?y[h]=t({sx:b,theme:o,nested:!0}):y=ln(y,f)}else y=ln(y,e(h,b,o,a))}),!i&&o.modularCssLayers?{"@layer sx":Zo(o,Ko(g,y))}:Zo(o,Ko(g,y))}return Array.isArray(r)?r.map(c):c(r)}return t}const Ut=L2();Ut.filterProps=["sx"];function M2(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var R2={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function I2(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var D2=/[A-Z]|^ms/g,B2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,mi=function(t){return t.charCodeAt(1)===45},Yo=function(t){return t!=null&&typeof t!="boolean"},vr=I2(function(e){return mi(e)?e:e.replace(D2,"-$&").toLowerCase()}),Xo=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(B2,function(r,o,i){return mt={name:o,styles:i,next:mt},o})}return R2[t]!==1&&!mi(t)&&typeof n=="number"&&n!==0?n+"px":n};function zn(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return mt={name:o.name,styles:o.styles,next:mt},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)mt={name:a.name,styles:a.styles,next:mt},a=a.next;var c=i.styles+";";return c}return P2(e,t,n)}}var u=n;return u}function P2(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=zn(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var c=a;Yo(c)&&(r+=vr(i)+":"+Xo(i,c)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var u=0;u<a.length;u++)Yo(a[u])&&(r+=vr(i)+":"+Xo(i,a[u])+";");else{var d=zn(e,t,a);switch(i){case"animation":case"animationName":{r+=vr(i)+":"+d+";";break}default:r+=i+"{"+d+"}"}}}return r}var Qo=/label:\s*([^\s;{]+)\s*(;|$)/g,mt;function V2(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";mt=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=zn(n,t,i);else{var a=i;o+=a[0]}for(var c=1;c<e.length;c++)if(o+=zn(n,t,e[c]),r){var u=i;o+=u[c]}Qo.lastIndex=0;for(var d="",m;(m=Qo.exec(o))!==null;)d+="-"+m[1];var g=M2(o)+d;return{name:g,styles:o,next:mt}}/**
47
47
  * @mui/styled-engine v7.3.10
48
48
  *
49
49
  * @license MIT
50
50
  * This source code is licensed under the MIT license found in the
51
51
  * LICENSE file in the root directory of this source tree.
52
52
  */function F2(e,t){const n=Ca(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
53
- `)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}function z2(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Jo=[];function jt(e){return Jo[0]=e,P2(Jo)}const q2=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function W2(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=q2(t),a=Object.keys(i);function c(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function u(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-r/100}${n})`}function d(y,h){const b=a.indexOf(h);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(b!==-1&&typeof t[a[b]]=="number"?t[a[b]]:h)-r/100}${n})`}function m(y){return a.indexOf(y)+1<a.length?d(y,a[a.indexOf(y)+1]):c(y)}function g(y){const h=a.indexOf(y);return h===0?c(a[1]):h===a.length-1?u(a[h]):d(y,a[a.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:c,down:u,between:d,only:m,not:g,unit:n,...o}}const U2={borderRadius:4};function hi(e=8,t=Kr({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function Z2(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function gi(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e,c=W2(n),u=hi(o);let d=qe({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:u,shape:{...U2,...i}},a);return d=U0(d),d.applyStyles=Z2,d=t.reduce((m,g)=>qe(m,g),d),d.unstable_sxConfig={...Qn,...a==null?void 0:a.unstable_sxConfig},d.unstable_sx=function(g){return Ut({sx:g,theme:this})},d}const es=e=>e,H2=()=>{let e=es;return{configure(t){e=t},generate(t){return e(t)},reset(){e=es}}},K2=H2(),G2={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Yr(e,t,n="Mui"){const r=G2[t];return r?`${n}-${r}`:`${K2.generate(e)}-${t}`}function Y2(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Yr(e,o,n)}),r}function yi(e,t=""){return e.displayName||e.name||t}function ts(e,t,n){const r=yi(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function X2(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return yi(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Pn.ForwardRef:return ts(e,e.render,"ForwardRef");case Pn.Memo:return ts(e,e.type,"memo");default:return}}}function bi(e){const{variants:t,...n}=e,r={variants:t,style:jt(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=jt(o.style))}),r}const Q2=gi();function xr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Tt(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function J2(e){return e?(t,n)=>n[e]:null}function eu(e,t,n){e.theme=ou(e.theme)?n:e.theme[t]||e.theme}function Dn(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>Dn(e,o,n));if(Array.isArray(r==null?void 0:r.variants)){let o;if(r.isProcessed)o=n?Tt(r.style,n):r.style;else{const{variants:i,...a}=r;o=n?Tt(jt(a),n):a}return vi(e,r.variants,[o],n)}return r!=null&&r.isProcessed?n?Tt(jt(r.style),n):r.style:n?Tt(jt(r),n):r}function vi(e,t,n=[],r=void 0){var i;let o;e:for(let a=0;a<t.length;a+=1){const c=t[a];if(typeof c.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!c.props(o))continue}else for(const u in c.props)if(e[u]!==c.props[u]&&((i=e.ownerState)==null?void 0:i[u])!==c.props[u])continue e;typeof c.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),n.push(r?Tt(jt(c.style(o)),r):c.style(o))):n.push(r?Tt(jt(c.style),r):c.style)}return n}function tu(e={}){const{themeId:t,defaultTheme:n=Q2,rootShouldForwardProp:r=xr,slotShouldForwardProp:o=xr}=e;function i(c){eu(c,t,n)}return(c,u={})=>{z2(c,T=>T.filter(A=>A!==Ut));const{name:d,slot:m,skipVariantsResolver:g,skipSx:y,overridesResolver:h=J2(xi(m)),...b}=u,f=d&&d.startsWith("Mui")||m?"components":"custom",x=g!==void 0?g:m&&m!=="Root"&&m!=="root"||!1,_=y||!1;let w=xr;m==="Root"||m==="root"?w=r:m?w=o:su(c)&&(w=void 0);const E=F2(c,{shouldForwardProp:w,label:ru(d,m),...b}),C=T=>{if(T.__emotion_real===T)return T;if(typeof T=="function")return function(k){return Dn(k,T,k.theme.modularCssLayers?f:void 0)};if(it(T)){const A=bi(T);return function(j){return A.variants?Dn(j,A,j.theme.modularCssLayers?f:void 0):j.theme.modularCssLayers?Tt(A.style,f):A.style}}return T},v=(...T)=>{const A=[],k=T.map(C),j=[];if(A.push(i),d&&h&&j.push(function(N){var Y,U;const P=(U=(Y=N.theme.components)==null?void 0:Y[d])==null?void 0:U.styleOverrides;if(!P)return null;const q={};for(const ge in P)q[ge]=Dn(N,P[ge],N.theme.modularCssLayers?"theme":void 0);return h(N,q)}),d&&!x&&j.push(function(N){var q,Y;const $=N.theme,P=(Y=(q=$==null?void 0:$.components)==null?void 0:q[d])==null?void 0:Y.variants;return P?vi(N,P,[],N.theme.modularCssLayers?"theme":void 0):null}),_||j.push(Ut),Array.isArray(k[0])){const p=k.shift(),N=new Array(A.length).fill(""),$=new Array(j.length).fill("");let P;P=[...N,...p,...$],P.raw=[...N,...p.raw,...$],A.unshift(P)}const D=[...A,...k,...j],M=E(...D);return c.muiName&&(M.muiName=c.muiName),process.env.NODE_ENV!=="production"&&(M.displayName=nu(d,m,c)),M};return E.withConfig&&(v.withConfig=E.withConfig),v}}function nu(e,t,n){return e?`${e}${Ge(t||"")}`:`Styled(${X2(n)})`}function ru(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${xi(t||"Root")}`),n}function ou(e){for(const t in e)return!1;return!0}function su(e){return typeof e=="string"&&e.charCodeAt(0)>96}function xi(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Mr(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if(i==="components"||i==="slots")r[i]={...e[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],c=t[i];if(!c)r[i]=a||{};else if(!a)r[i]=c;else{r[i]={...c};for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u)){const d=u;r[i][d]=Mr(a[d],c[d],n)}}}else i==="className"&&n&&t.className?r.className=ht(e==null?void 0:e.className,t==null?void 0:t.className):i==="style"&&n&&t.style?r.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:r[i]===void 0&&(r[i]=e[i])}return r}function Xr(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),zt(e,t,n)}function iu(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function gt(e){if(e.type)return e;if(e.charAt(0)==="#")return gt(iu(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
54
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:kt(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
55
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:kt(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const au=e=>{const t=gt(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},rn=(e,t)=>{try{return au(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Jn(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Ci(e){e=gt(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(d,m=(d+n/30)%12)=>o-i*Math.max(Math.min(m-3,9-m,1),-1);let c="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(c+="a",u.push(t[3])),Jn({type:c,values:u})}function Rr(e){e=gt(e);let t=e.type==="hsl"||e.type==="hsla"?gt(Ci(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ns(e,t){const n=Rr(e),r=Rr(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function _i(e,t){return e=gt(e),t=Xr(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Jn(e)}function _t(e,t,n){try{return _i(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function er(e,t){if(e=gt(e),t=Xr(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Jn(e)}function de(e,t,n){try{return er(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function tr(e,t){if(e=gt(e),t=Xr(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Jn(e)}function fe(e,t,n){try{return tr(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function lu(e,t=.15){return Rr(e)>.5?er(e,t):tr(e,t)}function En(e,t,n){try{return lu(e,t)}catch{return e}}const cu=Q.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function uu(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Mr(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Mr(o,r,t.components.mergeClassNameAndStyle):r}function du({props:e,name:t}){const n=Q.useContext(cu);return uu({props:e,name:t,theme:{components:n}})}const rs={theme:void 0};function fu(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(rs.theme=o.theme,i=bi(e(rs)),t=i,n=o.theme),i}}function pu(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const os=(e,t,n,r=[])=>{let o=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},mu=(e,t,n)=>{function r(o,i=[],a=[]){Object.entries(o).forEach(([c,u])=>{(!n||n&&!n([...i,c]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?r(u,[...i,c],Array.isArray(u)?[...a,c]:a):t([...i,c],u,a))})}r(e)},hu=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Cr(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};return mu(e,(c,u,d)=>{if((typeof u=="string"||typeof u=="number")&&(!r||!r(c,u))){const m=`--${n?`${n}-`:""}${c.join("-")}`,g=hu(c,u);Object.assign(o,{[m]:g}),os(i,c,`var(${m})`,d),os(a,c,`var(${m}, ${g})`,d)}},c=>c[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function gu(e,t={}){const{getSelector:n=_,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:a={},components:c,defaultColorScheme:u="light",...d}=e,{vars:m,css:g,varsWithDefaults:y}=Cr(d,t);let h=y;const b={},{[u]:f,...x}=a;if(Object.entries(x||{}).forEach(([C,v])=>{const{vars:T,css:A,varsWithDefaults:k}=Cr(v,t);h=qe(h,k),b[C]={css:A,vars:T}}),f){const{css:C,vars:v,varsWithDefaults:T}=Cr(f,t);h=qe(h,T),b[u]={css:C,vars:v}}function _(C,v){var A,k;let T=o;if(o==="class"&&(T=".%s"),o==="data"&&(T="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(T=`[${o}="%s"]`),C){if(T==="media")return e.defaultColorScheme===C?":root":{[`@media (prefers-color-scheme: ${((k=(A=a[C])==null?void 0:A.palette)==null?void 0:k.mode)||C})`]:{":root":v}};if(T)return e.defaultColorScheme===C?`:root, ${T.replace("%s",String(C))}`:T.replace("%s",String(C))}return":root"}return{vars:h,generateThemeVars:()=>{let C={...m};return Object.entries(b).forEach(([,{vars:v}])=>{C=qe(C,v)}),C},generateStyleSheets:()=>{var j,D;const C=[],v=e.defaultColorScheme||"light";function T(M,p){Object.keys(p).length&&C.push(typeof M=="string"?{[M]:{...p}}:M)}T(n(void 0,{...g}),g);const{[v]:A,...k}=b;if(A){const{css:M}=A,p=(D=(j=a[v])==null?void 0:j.palette)==null?void 0:D.mode,N=!r&&p?{colorScheme:p,...M}:{...M};T(n(v,{...N}),N)}return Object.entries(k).forEach(([M,{css:p}])=>{var P,q;const N=(q=(P=a[M])==null?void 0:P.palette)==null?void 0:q.mode,$=!r&&N?{colorScheme:N,...p}:{...p};T(n(M,{...$}),$)}),i&&C.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),C}}}function yu(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const cn={black:"#000",white:"#fff"},bu={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Mt={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Rt={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Xt={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Dt={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},It={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Bt={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function wi(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:cn.white,default:cn.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Si=wi();function Ti(){return{text:{primary:cn.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:cn.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Dr=Ti();function ss(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=tr(e.main,o):t==="dark"&&(e.dark=er(e.main,i)))}function is(e,t,n,r,o){const i=o.light||o,a=o.dark||o*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function vu(e="light"){return e==="dark"?{main:Dt[200],light:Dt[50],dark:Dt[400]}:{main:Dt[700],light:Dt[400],dark:Dt[800]}}function xu(e="light"){return e==="dark"?{main:Mt[200],light:Mt[50],dark:Mt[400]}:{main:Mt[500],light:Mt[300],dark:Mt[700]}}function Cu(e="light"){return e==="dark"?{main:Rt[500],light:Rt[300],dark:Rt[700]}:{main:Rt[700],light:Rt[400],dark:Rt[800]}}function _u(e="light"){return e==="dark"?{main:It[400],light:It[300],dark:It[700]}:{main:It[700],light:It[500],dark:It[900]}}function wu(e="light"){return e==="dark"?{main:Bt[400],light:Bt[300],dark:Bt[700]}:{main:Bt[800],light:Bt[500],dark:Bt[900]}}function Su(e="light"){return e==="dark"?{main:Xt[400],light:Xt[300],dark:Xt[700]}:{main:"#ed6c02",light:Xt[500],dark:Xt[900]}}function Tu(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Qr(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...i}=e,a=e.primary||vu(t),c=e.secondary||xu(t),u=e.error||Cu(t),d=e.info||_u(t),m=e.success||wu(t),g=e.warning||Su(t);function y(x){if(o)return Tu(x);const _=ns(x,Dr.text.primary)>=n?Dr.text.primary:Si.text.primary;if(process.env.NODE_ENV!=="production"){const w=ns(x,_);w<3&&console.error([`MUI: The contrast ratio of ${w}:1 for ${_} on ${x}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
56
- `))}return _}const h=({color:x,name:_,mainShade:w=500,lightShade:E=300,darkShade:C=700})=>{if(x={...x},!x.main&&x[w]&&(x.main=x[w]),!x.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${_?` (${_})`:""} provided to augmentColor(color) is invalid.
57
- The color object needs to have a \`main\` property or a \`${w}\` property.`:kt(11,_?` (${_})`:"",w));if(typeof x.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${_?` (${_})`:""} provided to augmentColor(color) is invalid.
53
+ `)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}function z2(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Jo=[];function kt(e){return Jo[0]=e,V2(Jo)}const q2=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function W2(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=q2(t),a=Object.keys(i);function c(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function u(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-r/100}${n})`}function d(y,h){const b=a.indexOf(h);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(b!==-1&&typeof t[a[b]]=="number"?t[a[b]]:h)-r/100}${n})`}function m(y){return a.indexOf(y)+1<a.length?d(y,a[a.indexOf(y)+1]):c(y)}function g(y){const h=a.indexOf(y);return h===0?c(a[1]):h===a.length-1?u(a[h]):d(y,a[a.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:c,down:u,between:d,only:m,not:g,unit:n,...o}}const U2={borderRadius:4};function hi(e=8,t=Kr({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function Z2(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function gi(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e,c=W2(n),u=hi(o);let d=qe({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:u,shape:{...U2,...i}},a);return d=U0(d),d.applyStyles=Z2,d=t.reduce((m,g)=>qe(m,g),d),d.unstable_sxConfig={...Qn,...a==null?void 0:a.unstable_sxConfig},d.unstable_sx=function(g){return Ut({sx:g,theme:this})},d}const es=e=>e,H2=()=>{let e=es;return{configure(t){e=t},generate(t){return e(t)},reset(){e=es}}},K2=H2(),G2={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Yr(e,t,n="Mui"){const r=G2[t];return r?`${n}-${r}`:`${K2.generate(e)}-${t}`}function Y2(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Yr(e,o,n)}),r}function yi(e,t=""){return e.displayName||e.name||t}function ts(e,t,n){const r=yi(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function X2(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return yi(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Vn.ForwardRef:return ts(e,e.render,"ForwardRef");case Vn.Memo:return ts(e,e.type,"memo");default:return}}}function bi(e){const{variants:t,...n}=e,r={variants:t,style:kt(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=kt(o.style))}),r}const Q2=gi();function xr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Tt(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function J2(e){return e?(t,n)=>n[e]:null}function eu(e,t,n){e.theme=ou(e.theme)?n:e.theme[t]||e.theme}function In(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>In(e,o,n));if(Array.isArray(r==null?void 0:r.variants)){let o;if(r.isProcessed)o=n?Tt(r.style,n):r.style;else{const{variants:i,...a}=r;o=n?Tt(kt(a),n):a}return vi(e,r.variants,[o],n)}return r!=null&&r.isProcessed?n?Tt(kt(r.style),n):r.style:n?Tt(kt(r),n):r}function vi(e,t,n=[],r=void 0){var i;let o;e:for(let a=0;a<t.length;a+=1){const c=t[a];if(typeof c.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!c.props(o))continue}else for(const u in c.props)if(e[u]!==c.props[u]&&((i=e.ownerState)==null?void 0:i[u])!==c.props[u])continue e;typeof c.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),n.push(r?Tt(kt(c.style(o)),r):c.style(o))):n.push(r?Tt(kt(c.style),r):c.style)}return n}function tu(e={}){const{themeId:t,defaultTheme:n=Q2,rootShouldForwardProp:r=xr,slotShouldForwardProp:o=xr}=e;function i(c){eu(c,t,n)}return(c,u={})=>{z2(c,T=>T.filter(A=>A!==Ut));const{name:d,slot:m,skipVariantsResolver:g,skipSx:y,overridesResolver:h=J2(xi(m)),...b}=u,f=d&&d.startsWith("Mui")||m?"components":"custom",x=g!==void 0?g:m&&m!=="Root"&&m!=="root"||!1,_=y||!1;let S=xr;m==="Root"||m==="root"?S=r:m?S=o:su(c)&&(S=void 0);const E=F2(c,{shouldForwardProp:S,label:ru(d,m),...b}),C=T=>{if(T.__emotion_real===T)return T;if(typeof T=="function")return function(k){return In(k,T,k.theme.modularCssLayers?f:void 0)};if(it(T)){const A=bi(T);return function($){return A.variants?In($,A,$.theme.modularCssLayers?f:void 0):$.theme.modularCssLayers?Tt(A.style,f):A.style}}return T},v=(...T)=>{const A=[],k=T.map(C),$=[];if(A.push(i),d&&h&&$.push(function(N){var D,q;const V=(q=(D=N.theme.components)==null?void 0:D[d])==null?void 0:q.styleOverrides;if(!V)return null;const W={};for(const te in V)W[te]=In(N,V[te],N.theme.modularCssLayers?"theme":void 0);return h(N,W)}),d&&!x&&$.push(function(N){var W,D;const j=N.theme,V=(D=(W=j==null?void 0:j.components)==null?void 0:W[d])==null?void 0:D.variants;return V?vi(N,V,[],N.theme.modularCssLayers?"theme":void 0):null}),_||$.push(Ut),Array.isArray(k[0])){const p=k.shift(),N=new Array(A.length).fill(""),j=new Array($.length).fill("");let V;V=[...N,...p,...j],V.raw=[...N,...p.raw,...j],A.unshift(V)}const P=[...A,...k,...$],I=E(...P);return c.muiName&&(I.muiName=c.muiName),process.env.NODE_ENV!=="production"&&(I.displayName=nu(d,m,c)),I};return E.withConfig&&(v.withConfig=E.withConfig),v}}function nu(e,t,n){return e?`${e}${Ge(t||"")}`:`Styled(${X2(n)})`}function ru(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${xi(t||"Root")}`),n}function ou(e){for(const t in e)return!1;return!0}function su(e){return typeof e=="string"&&e.charCodeAt(0)>96}function xi(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Mr(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if(i==="components"||i==="slots")r[i]={...e[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],c=t[i];if(!c)r[i]=a||{};else if(!a)r[i]=c;else{r[i]={...c};for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u)){const d=u;r[i][d]=Mr(a[d],c[d],n)}}}else i==="className"&&n&&t.className?r.className=ht(e==null?void 0:e.className,t==null?void 0:t.className):i==="style"&&n&&t.style?r.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:r[i]===void 0&&(r[i]=e[i])}return r}function Xr(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),zt(e,t,n)}function iu(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function gt(e){if(e.type)return e;if(e.charAt(0)==="#")return gt(iu(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
54
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:jt(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
55
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:jt(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const au=e=>{const t=gt(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},rn=(e,t)=>{try{return au(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Jn(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Ci(e){e=gt(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(d,m=(d+n/30)%12)=>o-i*Math.max(Math.min(m-3,9-m,1),-1);let c="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(c+="a",u.push(t[3])),Jn({type:c,values:u})}function Rr(e){e=gt(e);let t=e.type==="hsl"||e.type==="hsla"?gt(Ci(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ns(e,t){const n=Rr(e),r=Rr(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function _i(e,t){return e=gt(e),t=Xr(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Jn(e)}function _t(e,t,n){try{return _i(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function er(e,t){if(e=gt(e),t=Xr(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Jn(e)}function fe(e,t,n){try{return er(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function tr(e,t){if(e=gt(e),t=Xr(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Jn(e)}function pe(e,t,n){try{return tr(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function lu(e,t=.15){return Rr(e)>.5?er(e,t):tr(e,t)}function En(e,t,n){try{return lu(e,t)}catch{return e}}const cu=Q.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function uu(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Mr(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Mr(o,r,t.components.mergeClassNameAndStyle):r}function du({props:e,name:t}){const n=Q.useContext(cu);return uu({props:e,name:t,theme:{components:n}})}const rs={theme:void 0};function fu(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(rs.theme=o.theme,i=bi(e(rs)),t=i,n=o.theme),i}}function pu(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const os=(e,t,n,r=[])=>{let o=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},mu=(e,t,n)=>{function r(o,i=[],a=[]){Object.entries(o).forEach(([c,u])=>{(!n||n&&!n([...i,c]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?r(u,[...i,c],Array.isArray(u)?[...a,c]:a):t([...i,c],u,a))})}r(e)},hu=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Cr(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};return mu(e,(c,u,d)=>{if((typeof u=="string"||typeof u=="number")&&(!r||!r(c,u))){const m=`--${n?`${n}-`:""}${c.join("-")}`,g=hu(c,u);Object.assign(o,{[m]:g}),os(i,c,`var(${m})`,d),os(a,c,`var(${m}, ${g})`,d)}},c=>c[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function gu(e,t={}){const{getSelector:n=_,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:a={},components:c,defaultColorScheme:u="light",...d}=e,{vars:m,css:g,varsWithDefaults:y}=Cr(d,t);let h=y;const b={},{[u]:f,...x}=a;if(Object.entries(x||{}).forEach(([C,v])=>{const{vars:T,css:A,varsWithDefaults:k}=Cr(v,t);h=qe(h,k),b[C]={css:A,vars:T}}),f){const{css:C,vars:v,varsWithDefaults:T}=Cr(f,t);h=qe(h,T),b[u]={css:C,vars:v}}function _(C,v){var A,k;let T=o;if(o==="class"&&(T=".%s"),o==="data"&&(T="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(T=`[${o}="%s"]`),C){if(T==="media")return e.defaultColorScheme===C?":root":{[`@media (prefers-color-scheme: ${((k=(A=a[C])==null?void 0:A.palette)==null?void 0:k.mode)||C})`]:{":root":v}};if(T)return e.defaultColorScheme===C?`:root, ${T.replace("%s",String(C))}`:T.replace("%s",String(C))}return":root"}return{vars:h,generateThemeVars:()=>{let C={...m};return Object.entries(b).forEach(([,{vars:v}])=>{C=qe(C,v)}),C},generateStyleSheets:()=>{var $,P;const C=[],v=e.defaultColorScheme||"light";function T(I,p){Object.keys(p).length&&C.push(typeof I=="string"?{[I]:{...p}}:I)}T(n(void 0,{...g}),g);const{[v]:A,...k}=b;if(A){const{css:I}=A,p=(P=($=a[v])==null?void 0:$.palette)==null?void 0:P.mode,N=!r&&p?{colorScheme:p,...I}:{...I};T(n(v,{...N}),N)}return Object.entries(k).forEach(([I,{css:p}])=>{var V,W;const N=(W=(V=a[I])==null?void 0:V.palette)==null?void 0:W.mode,j=!r&&N?{colorScheme:N,...p}:{...p};T(n(I,{...j}),j)}),i&&C.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),C}}}function yu(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const cn={black:"#000",white:"#fff"},bu={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Mt={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Rt={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Xt={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},It={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Dt={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Bt={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function wi(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:cn.white,default:cn.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Si=wi();function Ti(){return{text:{primary:cn.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:cn.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Ir=Ti();function ss(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=tr(e.main,o):t==="dark"&&(e.dark=er(e.main,i)))}function is(e,t,n,r,o){const i=o.light||o,a=o.dark||o*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function vu(e="light"){return e==="dark"?{main:It[200],light:It[50],dark:It[400]}:{main:It[700],light:It[400],dark:It[800]}}function xu(e="light"){return e==="dark"?{main:Mt[200],light:Mt[50],dark:Mt[400]}:{main:Mt[500],light:Mt[300],dark:Mt[700]}}function Cu(e="light"){return e==="dark"?{main:Rt[500],light:Rt[300],dark:Rt[700]}:{main:Rt[700],light:Rt[400],dark:Rt[800]}}function _u(e="light"){return e==="dark"?{main:Dt[400],light:Dt[300],dark:Dt[700]}:{main:Dt[700],light:Dt[500],dark:Dt[900]}}function wu(e="light"){return e==="dark"?{main:Bt[400],light:Bt[300],dark:Bt[700]}:{main:Bt[800],light:Bt[500],dark:Bt[900]}}function Su(e="light"){return e==="dark"?{main:Xt[400],light:Xt[300],dark:Xt[700]}:{main:"#ed6c02",light:Xt[500],dark:Xt[900]}}function Tu(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Qr(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...i}=e,a=e.primary||vu(t),c=e.secondary||xu(t),u=e.error||Cu(t),d=e.info||_u(t),m=e.success||wu(t),g=e.warning||Su(t);function y(x){if(o)return Tu(x);const _=ns(x,Ir.text.primary)>=n?Ir.text.primary:Si.text.primary;if(process.env.NODE_ENV!=="production"){const S=ns(x,_);S<3&&console.error([`MUI: The contrast ratio of ${S}:1 for ${_} on ${x}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
56
+ `))}return _}const h=({color:x,name:_,mainShade:S=500,lightShade:E=300,darkShade:C=700})=>{if(x={...x},!x.main&&x[S]&&(x.main=x[S]),!x.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${_?` (${_})`:""} provided to augmentColor(color) is invalid.
57
+ The color object needs to have a \`main\` property or a \`${S}\` property.`:jt(11,_?` (${_})`:"",S));if(typeof x.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${_?` (${_})`:""} provided to augmentColor(color) is invalid.
58
58
  \`color.main\` should be a string, but \`${JSON.stringify(x.main)}\` was provided instead.
59
59
 
60
60
  Did you intend to use one of the following approaches?
@@ -67,17 +67,17 @@ const theme1 = createTheme({ palette: {
67
67
 
68
68
  const theme2 = createTheme({ palette: {
69
69
  primary: { main: green[500] },
70
- } });`:kt(12,_?` (${_})`:"",JSON.stringify(x.main)));return o?(is(o,x,"light",E,r),is(o,x,"dark",C,r)):(ss(x,"light",E,r),ss(x,"dark",C,r)),x.contrastText||(x.contrastText=y(x.main)),x};let b;return t==="light"?b=wi():t==="dark"&&(b=Ti()),process.env.NODE_ENV!=="production"&&(b||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),qe({common:{...cn},mode:t,primary:h({color:a,name:"primary"}),secondary:h({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:u,name:"error"}),warning:h({color:g,name:"warning"}),info:h({color:d,name:"info"}),success:h({color:m,name:"success"}),grey:bu,contrastThreshold:n,getContrastText:y,augmentColor:h,tonalOffset:r,...b},i)}function ju(e){const t={};return Object.entries(e).forEach(r=>{const[o,i]=r;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function ku(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function $u(e){return Math.round(e*1e5)/1e5}const as={textTransform:"uppercase"},ls='"Roboto", "Helvetica", "Arial", sans-serif';function Eu(e,t){const{fontFamily:n=ls,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:m,...g}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const y=r/14,h=m||(x=>`${x/u*y}rem`),b=(x,_,w,E,C)=>({fontFamily:n,fontWeight:x,fontSize:h(_),lineHeight:w,...n===ls?{letterSpacing:`${$u(E/_)}em`}:{},...C,...d}),f={h1:b(o,96,1.167,-1.5),h2:b(o,60,1.2,-.5),h3:b(i,48,1.167,0),h4:b(i,34,1.235,.25),h5:b(i,24,1.334,0),h6:b(a,20,1.6,.15),subtitle1:b(i,16,1.75,.15),subtitle2:b(a,14,1.57,.1),body1:b(i,16,1.5,.15),body2:b(i,14,1.43,.15),button:b(a,14,1.75,.4,as),caption:b(i,12,1.66,.4),overline:b(i,12,2.66,1,as),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return qe({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:c,...f},g,{clone:!1})}const Nu=.2,Ou=.14,Au=.12;function xe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Nu})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Ou})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Au})`].join(",")}const Lu=["none",xe(0,2,1,-1,0,1,1,0,0,1,3,0),xe(0,3,1,-2,0,2,2,0,0,1,5,0),xe(0,3,3,-2,0,3,4,0,0,1,8,0),xe(0,2,4,-1,0,4,5,0,0,1,10,0),xe(0,3,5,-1,0,5,8,0,0,1,14,0),xe(0,3,5,-1,0,6,10,0,0,1,18,0),xe(0,4,5,-2,0,7,10,1,0,2,16,1),xe(0,5,5,-3,0,8,10,1,0,3,14,2),xe(0,5,6,-3,0,9,12,1,0,3,16,2),xe(0,6,6,-3,0,10,14,1,0,4,18,3),xe(0,6,7,-4,0,11,15,1,0,4,20,3),xe(0,7,8,-4,0,12,17,2,0,5,22,4),xe(0,7,8,-4,0,13,19,2,0,5,24,4),xe(0,7,9,-4,0,14,21,2,0,5,26,4),xe(0,8,9,-5,0,15,22,2,0,6,28,5),xe(0,8,10,-5,0,16,24,2,0,6,30,5),xe(0,8,11,-5,0,17,26,2,0,6,32,5),xe(0,9,11,-5,0,18,28,2,0,7,34,6),xe(0,9,12,-6,0,19,29,2,0,7,36,6),xe(0,10,13,-6,0,20,31,3,0,8,38,7),xe(0,10,13,-6,0,21,33,3,0,8,40,7),xe(0,10,14,-6,0,22,35,3,0,8,42,7),xe(0,11,14,-7,0,23,36,3,0,9,44,8),xe(0,11,15,-7,0,24,38,3,0,9,46,8)],Mu={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Ru={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function cs(e){return`${Math.round(e)}ms`}function Du(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Iu(e){const t={...Mu,...e.easing},n={...Ru,...e.duration};return{getAutoHeightDuration:Du,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:c=t.easeInOut,delay:u=0,...d}=i;if(process.env.NODE_ENV!=="production"){const m=y=>typeof y=="string",g=y=>!Number.isNaN(parseFloat(y));!m(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!g(a)&&!m(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),m(c)||console.error('MUI: Argument "easing" must be a string.'),!g(u)&&!m(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
71
- `)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(m=>`${m} ${typeof a=="string"?a:cs(a)} ${c} ${typeof u=="string"?u:cs(u)}`).join(",")},...e,easing:t,duration:n}}const Bu={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Vu(e){return it(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function ji(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;i<o.length;i++){const[a,c]=o[i];!Vu(c)||a.startsWith("unstable_")?delete r[a]:it(c)&&(r[a]={...c},n(r[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
70
+ } });`:jt(12,_?` (${_})`:"",JSON.stringify(x.main)));return o?(is(o,x,"light",E,r),is(o,x,"dark",C,r)):(ss(x,"light",E,r),ss(x,"dark",C,r)),x.contrastText||(x.contrastText=y(x.main)),x};let b;return t==="light"?b=wi():t==="dark"&&(b=Ti()),process.env.NODE_ENV!=="production"&&(b||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),qe({common:{...cn},mode:t,primary:h({color:a,name:"primary"}),secondary:h({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:u,name:"error"}),warning:h({color:g,name:"warning"}),info:h({color:d,name:"info"}),success:h({color:m,name:"success"}),grey:bu,contrastThreshold:n,getContrastText:y,augmentColor:h,tonalOffset:r,...b},i)}function ku(e){const t={};return Object.entries(e).forEach(r=>{const[o,i]=r;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function ju(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function $u(e){return Math.round(e*1e5)/1e5}const as={textTransform:"uppercase"},ls='"Roboto", "Helvetica", "Arial", sans-serif';function Eu(e,t){const{fontFamily:n=ls,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:m,...g}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const y=r/14,h=m||(x=>`${x/u*y}rem`),b=(x,_,S,E,C)=>({fontFamily:n,fontWeight:x,fontSize:h(_),lineHeight:S,...n===ls?{letterSpacing:`${$u(E/_)}em`}:{},...C,...d}),f={h1:b(o,96,1.167,-1.5),h2:b(o,60,1.2,-.5),h3:b(i,48,1.167,0),h4:b(i,34,1.235,.25),h5:b(i,24,1.334,0),h6:b(a,20,1.6,.15),subtitle1:b(i,16,1.75,.15),subtitle2:b(a,14,1.57,.1),body1:b(i,16,1.5,.15),body2:b(i,14,1.43,.15),button:b(a,14,1.75,.4,as),caption:b(i,12,1.66,.4),overline:b(i,12,2.66,1,as),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return qe({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:c,...f},g,{clone:!1})}const Nu=.2,Ou=.14,Au=.12;function xe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Nu})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Ou})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Au})`].join(",")}const Lu=["none",xe(0,2,1,-1,0,1,1,0,0,1,3,0),xe(0,3,1,-2,0,2,2,0,0,1,5,0),xe(0,3,3,-2,0,3,4,0,0,1,8,0),xe(0,2,4,-1,0,4,5,0,0,1,10,0),xe(0,3,5,-1,0,5,8,0,0,1,14,0),xe(0,3,5,-1,0,6,10,0,0,1,18,0),xe(0,4,5,-2,0,7,10,1,0,2,16,1),xe(0,5,5,-3,0,8,10,1,0,3,14,2),xe(0,5,6,-3,0,9,12,1,0,3,16,2),xe(0,6,6,-3,0,10,14,1,0,4,18,3),xe(0,6,7,-4,0,11,15,1,0,4,20,3),xe(0,7,8,-4,0,12,17,2,0,5,22,4),xe(0,7,8,-4,0,13,19,2,0,5,24,4),xe(0,7,9,-4,0,14,21,2,0,5,26,4),xe(0,8,9,-5,0,15,22,2,0,6,28,5),xe(0,8,10,-5,0,16,24,2,0,6,30,5),xe(0,8,11,-5,0,17,26,2,0,6,32,5),xe(0,9,11,-5,0,18,28,2,0,7,34,6),xe(0,9,12,-6,0,19,29,2,0,7,36,6),xe(0,10,13,-6,0,20,31,3,0,8,38,7),xe(0,10,13,-6,0,21,33,3,0,8,40,7),xe(0,10,14,-6,0,22,35,3,0,8,42,7),xe(0,11,14,-7,0,23,36,3,0,9,44,8),xe(0,11,15,-7,0,24,38,3,0,9,46,8)],Mu={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Ru={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function cs(e){return`${Math.round(e)}ms`}function Iu(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Du(e){const t={...Mu,...e.easing},n={...Ru,...e.duration};return{getAutoHeightDuration:Iu,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:c=t.easeInOut,delay:u=0,...d}=i;if(process.env.NODE_ENV!=="production"){const m=y=>typeof y=="string",g=y=>!Number.isNaN(parseFloat(y));!m(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!g(a)&&!m(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),m(c)||console.error('MUI: Argument "easing" must be a string.'),!g(u)&&!m(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
71
+ `)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(m=>`${m} ${typeof a=="string"?a:cs(a)} ${c} ${typeof u=="string"?u:cs(u)}`).join(",")},...e,easing:t,duration:n}}const Bu={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Pu(e){return it(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function ki(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;i<o.length;i++){const[a,c]=o[i];!Pu(c)||a.startsWith("unstable_")?delete r[a]:it(c)&&(r[a]={...c},n(r[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
72
72
 
73
73
  const theme = ${JSON.stringify(t,null,2)};
74
74
 
75
75
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
76
76
  theme.transitions = createTransitions(theme.transitions || {});
77
77
 
78
- export default theme;`}function us(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Pu=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function Fu(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:_i(t,Pu(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${us(n)})`:tr(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${us(n)})`:er(t,n)}})}function Ir(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:c={},shape:u,colorSpace:d,...m}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://v7.mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":kt(20));const g=Qr({...i,colorSpace:d}),y=gi(e);let h=qe(y,{mixins:ku(y.breakpoints,r),palette:g,shadows:Lu.slice(),typography:Eu(g,c),transitions:Iu(a),zIndex:{...Bu}});if(h=qe(h,m),h=t.reduce((b,f)=>qe(b,f),h),process.env.NODE_ENV!=="production"){const b=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(x,_)=>{let w;for(w in x){const E=x[w];if(b.includes(w)&&Object.keys(E).length>0){if(process.env.NODE_ENV!=="production"){const C=Yr("",w);console.error([`MUI: The \`${_}\` component increases the CSS specificity of the \`${w}\` internal state.`,"You can not override it like this: ",JSON.stringify(x,null,2),"",`Instead, you need to use the '&.${C}' syntax:`,JSON.stringify({root:{[`&.${C}`]:E}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
79
- `))}x[w]={}}}};Object.keys(h.components).forEach(x=>{const _=h.components[x].styleOverrides;_&&x.startsWith("Mui")&&f(_,x)})}return h.unstable_sxConfig={...Qn,...m==null?void 0:m.unstable_sxConfig},h.unstable_sx=function(f){return Ut({sx:f,theme:this})},h.toRuntimeSource=ji,Fu(h),h}function zu(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const qu=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=zu(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function ki(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function $i(e){return e==="dark"?qu:[]}function Wu(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...i}=e,a=Qr({...t,colorSpace:o});return{palette:a,opacity:{...ki(a.mode),...n},overlays:r||$i(a.mode),...i}}function Uu(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const Zu=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Hu=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return Zu(e.cssVarPrefix).forEach(c=>{a[c]=n[c],delete n[c]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:i?{[i.replace("%s",t)]:a,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function Ku(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function O(e,t,n){!e[t]&&n&&(e[t]=n)}function on(e){return typeof e!="string"||!e.startsWith("hsl")?e:Ci(e)}function rt(e,t){`${t}Channel`in e||(e[`${t}Channel`]=rn(on(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
80
- To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Gu(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Ye=e=>{try{return e()}catch{}},Yu=(e="mui")=>pu(e);function _r(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const i=o==="dark"?"dark":"light";if(!r){t[o]=Wu({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:a,...c}=Ir({...r,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[o]={...n,palette:a,opacity:{...ki(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||$i(i)},c}function Xu(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:c=Uu,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...m}=e,g=Object.keys(n)[0],y=r||(n.light&&g!=="light"?"light":g),h=Yu(i),{[y]:b,light:f,dark:x,..._}=n,w={..._};let E=b;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&(E=!0),!E)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${y}\` option is either missing or invalid.`:kt(21,y));let C;a&&(C="oklch");const v=_r(C,w,E,m,y);f&&!w.light&&_r(C,w,f,void 0,"light"),x&&!w.dark&&_r(C,w,x,void 0,"dark");let T={defaultColorScheme:y,...v,cssVarPrefix:i,colorSchemeSelector:u,rootSelector:d,getCssVar:h,colorSchemes:w,font:{...ju(v.typography),...v.font},spacing:Gu(m.spacing)};Object.keys(T.colorSchemes).forEach(M=>{const p=T.colorSchemes[M].palette,N=P=>{const q=P.split("-"),Y=q[1],U=q[2];return h(P,p[Y][U])};p.mode==="light"&&(O(p.common,"background","#fff"),O(p.common,"onBackground","#000")),p.mode==="dark"&&(O(p.common,"background","#000"),O(p.common,"onBackground","#fff"));function $(P,q,Y){if(C){let U;return P===_t&&(U=`transparent ${((1-Y)*100).toFixed(0)}%`),P===de&&(U=`#000 ${(Y*100).toFixed(0)}%`),P===fe&&(U=`#fff ${(Y*100).toFixed(0)}%`),`color-mix(in ${C}, ${q}, ${U})`}return P(q,Y)}if(Ku(p,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),p.mode==="light"){O(p.Alert,"errorColor",$(de,a?h("palette-error-light"):p.error.light,.6)),O(p.Alert,"infoColor",$(de,a?h("palette-info-light"):p.info.light,.6)),O(p.Alert,"successColor",$(de,a?h("palette-success-light"):p.success.light,.6)),O(p.Alert,"warningColor",$(de,a?h("palette-warning-light"):p.warning.light,.6)),O(p.Alert,"errorFilledBg",N("palette-error-main")),O(p.Alert,"infoFilledBg",N("palette-info-main")),O(p.Alert,"successFilledBg",N("palette-success-main")),O(p.Alert,"warningFilledBg",N("palette-warning-main")),O(p.Alert,"errorFilledColor",Ye(()=>p.getContrastText(p.error.main))),O(p.Alert,"infoFilledColor",Ye(()=>p.getContrastText(p.info.main))),O(p.Alert,"successFilledColor",Ye(()=>p.getContrastText(p.success.main))),O(p.Alert,"warningFilledColor",Ye(()=>p.getContrastText(p.warning.main))),O(p.Alert,"errorStandardBg",$(fe,a?h("palette-error-light"):p.error.light,.9)),O(p.Alert,"infoStandardBg",$(fe,a?h("palette-info-light"):p.info.light,.9)),O(p.Alert,"successStandardBg",$(fe,a?h("palette-success-light"):p.success.light,.9)),O(p.Alert,"warningStandardBg",$(fe,a?h("palette-warning-light"):p.warning.light,.9)),O(p.Alert,"errorIconColor",N("palette-error-main")),O(p.Alert,"infoIconColor",N("palette-info-main")),O(p.Alert,"successIconColor",N("palette-success-main")),O(p.Alert,"warningIconColor",N("palette-warning-main")),O(p.AppBar,"defaultBg",N("palette-grey-100")),O(p.Avatar,"defaultBg",N("palette-grey-400")),O(p.Button,"inheritContainedBg",N("palette-grey-300")),O(p.Button,"inheritContainedHoverBg",N("palette-grey-A100")),O(p.Chip,"defaultBorder",N("palette-grey-400")),O(p.Chip,"defaultAvatarColor",N("palette-grey-700")),O(p.Chip,"defaultIconColor",N("palette-grey-700")),O(p.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),O(p.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),O(p.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),O(p.LinearProgress,"primaryBg",$(fe,a?h("palette-primary-main"):p.primary.main,.62)),O(p.LinearProgress,"secondaryBg",$(fe,a?h("palette-secondary-main"):p.secondary.main,.62)),O(p.LinearProgress,"errorBg",$(fe,a?h("palette-error-main"):p.error.main,.62)),O(p.LinearProgress,"infoBg",$(fe,a?h("palette-info-main"):p.info.main,.62)),O(p.LinearProgress,"successBg",$(fe,a?h("palette-success-main"):p.success.main,.62)),O(p.LinearProgress,"warningBg",$(fe,a?h("palette-warning-light"):p.warning.main,.62)),O(p.Skeleton,"bg",C?$(_t,a?h("palette-text-primary"):p.text.primary,.11):`rgba(${N("palette-text-primaryChannel")} / 0.11)`),O(p.Slider,"primaryTrack",$(fe,a?h("palette-primary-main"):p.primary.main,.62)),O(p.Slider,"secondaryTrack",$(fe,a?h("palette-secondary-main"):p.secondary.main,.62)),O(p.Slider,"errorTrack",$(fe,a?h("palette-error-main"):p.error.main,.62)),O(p.Slider,"infoTrack",$(fe,a?h("palette-info-main"):p.info.main,.62)),O(p.Slider,"successTrack",$(fe,a?h("palette-success-main"):p.success.main,.62)),O(p.Slider,"warningTrack",$(fe,a?h("palette-warning-main"):p.warning.main,.62));const P=C?$(de,a?h("palette-background-default"):p.background.default,.6825):En(p.background.default,.8);O(p.SnackbarContent,"bg",P),O(p.SnackbarContent,"color",Ye(()=>C?Dr.text.primary:p.getContrastText(P))),O(p.SpeedDialAction,"fabHoverBg",En(p.background.paper,.15)),O(p.StepConnector,"border",N("palette-grey-400")),O(p.StepContent,"border",N("palette-grey-400")),O(p.Switch,"defaultColor",N("palette-common-white")),O(p.Switch,"defaultDisabledColor",N("palette-grey-100")),O(p.Switch,"primaryDisabledColor",$(fe,a?h("palette-primary-main"):p.primary.main,.62)),O(p.Switch,"secondaryDisabledColor",$(fe,a?h("palette-secondary-main"):p.secondary.main,.62)),O(p.Switch,"errorDisabledColor",$(fe,a?h("palette-error-main"):p.error.main,.62)),O(p.Switch,"infoDisabledColor",$(fe,a?h("palette-info-main"):p.info.main,.62)),O(p.Switch,"successDisabledColor",$(fe,a?h("palette-success-main"):p.success.main,.62)),O(p.Switch,"warningDisabledColor",$(fe,a?h("palette-warning-main"):p.warning.main,.62)),O(p.TableCell,"border",$(fe,_t(a?h("palette-divider"):p.divider,1),.88)),O(p.Tooltip,"bg",$(_t,a?h("palette-grey-700"):p.grey[700],.92))}if(p.mode==="dark"){O(p.Alert,"errorColor",$(fe,a?h("palette-error-light"):p.error.light,.6)),O(p.Alert,"infoColor",$(fe,a?h("palette-info-light"):p.info.light,.6)),O(p.Alert,"successColor",$(fe,a?h("palette-success-light"):p.success.light,.6)),O(p.Alert,"warningColor",$(fe,a?h("palette-warning-light"):p.warning.light,.6)),O(p.Alert,"errorFilledBg",N("palette-error-dark")),O(p.Alert,"infoFilledBg",N("palette-info-dark")),O(p.Alert,"successFilledBg",N("palette-success-dark")),O(p.Alert,"warningFilledBg",N("palette-warning-dark")),O(p.Alert,"errorFilledColor",Ye(()=>p.getContrastText(p.error.dark))),O(p.Alert,"infoFilledColor",Ye(()=>p.getContrastText(p.info.dark))),O(p.Alert,"successFilledColor",Ye(()=>p.getContrastText(p.success.dark))),O(p.Alert,"warningFilledColor",Ye(()=>p.getContrastText(p.warning.dark))),O(p.Alert,"errorStandardBg",$(de,a?h("palette-error-light"):p.error.light,.9)),O(p.Alert,"infoStandardBg",$(de,a?h("palette-info-light"):p.info.light,.9)),O(p.Alert,"successStandardBg",$(de,a?h("palette-success-light"):p.success.light,.9)),O(p.Alert,"warningStandardBg",$(de,a?h("palette-warning-light"):p.warning.light,.9)),O(p.Alert,"errorIconColor",N("palette-error-main")),O(p.Alert,"infoIconColor",N("palette-info-main")),O(p.Alert,"successIconColor",N("palette-success-main")),O(p.Alert,"warningIconColor",N("palette-warning-main")),O(p.AppBar,"defaultBg",N("palette-grey-900")),O(p.AppBar,"darkBg",N("palette-background-paper")),O(p.AppBar,"darkColor",N("palette-text-primary")),O(p.Avatar,"defaultBg",N("palette-grey-600")),O(p.Button,"inheritContainedBg",N("palette-grey-800")),O(p.Button,"inheritContainedHoverBg",N("palette-grey-700")),O(p.Chip,"defaultBorder",N("palette-grey-700")),O(p.Chip,"defaultAvatarColor",N("palette-grey-300")),O(p.Chip,"defaultIconColor",N("palette-grey-300")),O(p.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),O(p.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),O(p.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),O(p.LinearProgress,"primaryBg",$(de,a?h("palette-primary-main"):p.primary.main,.5)),O(p.LinearProgress,"secondaryBg",$(de,a?h("palette-secondary-main"):p.secondary.main,.5)),O(p.LinearProgress,"errorBg",$(de,a?h("palette-error-main"):p.error.main,.5)),O(p.LinearProgress,"infoBg",$(de,a?h("palette-info-main"):p.info.main,.5)),O(p.LinearProgress,"successBg",$(de,a?h("palette-success-main"):p.success.main,.5)),O(p.LinearProgress,"warningBg",$(de,a?h("palette-warning-main"):p.warning.main,.5)),O(p.Skeleton,"bg",C?$(_t,a?h("palette-text-primary"):p.text.primary,.13):`rgba(${N("palette-text-primaryChannel")} / 0.13)`),O(p.Slider,"primaryTrack",$(de,a?h("palette-primary-main"):p.primary.main,.5)),O(p.Slider,"secondaryTrack",$(de,a?h("palette-secondary-main"):p.secondary.main,.5)),O(p.Slider,"errorTrack",$(de,a?h("palette-error-main"):p.error.main,.5)),O(p.Slider,"infoTrack",$(de,a?h("palette-info-main"):p.info.main,.5)),O(p.Slider,"successTrack",$(de,a?h("palette-success-main"):p.success.main,.5)),O(p.Slider,"warningTrack",$(de,a?h("palette-warning-light"):p.warning.main,.5));const P=C?$(fe,a?h("palette-background-default"):p.background.default,.985):En(p.background.default,.98);O(p.SnackbarContent,"bg",P),O(p.SnackbarContent,"color",Ye(()=>C?Si.text.primary:p.getContrastText(P))),O(p.SpeedDialAction,"fabHoverBg",En(p.background.paper,.15)),O(p.StepConnector,"border",N("palette-grey-600")),O(p.StepContent,"border",N("palette-grey-600")),O(p.Switch,"defaultColor",N("palette-grey-300")),O(p.Switch,"defaultDisabledColor",N("palette-grey-600")),O(p.Switch,"primaryDisabledColor",$(de,a?h("palette-primary-main"):p.primary.main,.55)),O(p.Switch,"secondaryDisabledColor",$(de,a?h("palette-secondary-main"):p.secondary.main,.55)),O(p.Switch,"errorDisabledColor",$(de,a?h("palette-error-main"):p.error.main,.55)),O(p.Switch,"infoDisabledColor",$(de,a?h("palette-info-main"):p.info.main,.55)),O(p.Switch,"successDisabledColor",$(de,a?h("palette-success-main"):p.success.main,.55)),O(p.Switch,"warningDisabledColor",$(de,a?h("palette-warning-light"):p.warning.main,.55)),O(p.TableCell,"border",$(de,_t(a?h("palette-divider"):p.divider,1),.68)),O(p.Tooltip,"bg",$(_t,a?h("palette-grey-700"):p.grey[700],.92))}a||(rt(p.background,"default"),rt(p.background,"paper"),rt(p.common,"background"),rt(p.common,"onBackground"),rt(p,"divider")),Object.keys(p).forEach(P=>{const q=p[P];P!=="tonalOffset"&&!a&&q&&typeof q=="object"&&(q.main&&O(p[P],"mainChannel",rn(on(q.main))),q.light&&O(p[P],"lightChannel",rn(on(q.light))),q.dark&&O(p[P],"darkChannel",rn(on(q.dark))),q.contrastText&&O(p[P],"contrastTextChannel",rn(on(q.contrastText))),P==="text"&&(rt(p[P],"primary"),rt(p[P],"secondary")),P==="action"&&(q.active&&rt(p[P],"active"),q.selected&&rt(p[P],"selected")))})}),T=t.reduce((M,p)=>qe(M,p),T);const A={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:c,getSelector:Hu(T),enableContrastVars:a},{vars:k,generateThemeVars:j,generateStyleSheets:D}=gu(T,A);return T.vars=k,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([M,p])=>{T[M]=p}),T.generateThemeVars=j,T.generateStyleSheets=D,T.generateSpacing=function(){return hi(m.spacing,Kr(this))},T.getColorSchemeSelector=yu(u),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=c,T.unstable_sxConfig={...Qn,...m==null?void 0:m.unstable_sxConfig},T.unstable_sx=function(p){return Ut({sx:p,theme:this})},T.toRuntimeSource=ji,T}function ds(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Qr({...n===!0?{}:n.palette,mode:t})})}function Qu(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=e,c=i||"light",u=o==null?void 0:o[c],d={...o,...n?{[c]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Ir(e,...t);let m=n;"palette"in e||d[c]&&(d[c]!==!0?m=d[c].palette:c==="dark"&&(m={mode:"dark"}));const g=Ir({...e,palette:m},...t);return g.defaultColorScheme=c,g.colorSchemes=d,g.palette.mode==="light"&&(g.colorSchemes.light={...d.light!==!0&&d.light,palette:g.palette},ds(g,"dark",d.dark)),g.palette.mode==="dark"&&(g.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:g.palette},ds(g,"light",d.light)),g}return!n&&!("light"in d)&&c==="light"&&(d.light=!0),Xu({...a,colorSchemes:d,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const Ju=Qu(),e1="$$material";function Jr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const t1=e=>Jr(e)&&e!=="classes",Nt=tu({themeId:e1,defaultTheme:Ju,rootShouldForwardProp:t1}),Ht=fu;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function n1(e){return du(e)}const r1=e=>!e||!an(e);function o1(e){return typeof e.main=="string"}function s1(e,t=[]){if(!o1(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function eo(e=[]){return([,t])=>t&&s1(t,e)}function i1(e){return Yr("MuiSlider",e)}const He=Y2("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),a1=e=>{const{open:t}=e;return{offset:ht(t&&He.valueLabelOpen),circle:He.valueLabelCircle,label:He.valueLabelLabel}};function Ei(e){const{children:t,className:n,value:r}=e,o=a1(e);return t?Q.cloneElement(t,{className:t.props.className},l.jsxs(Q.Fragment,{children:[t.props.children,l.jsx("span",{className:ht(o.offset,n),"aria-hidden":!0,children:l.jsx("span",{className:o.circle,children:l.jsx("span",{className:o.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(Ei.propTypes={children:s.element.isRequired,className:s.string,value:s.node});function fs(e){return e}const l1=Nt("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Ge(n.color)}`],n.size!=="medium"&&t[`size${Ge(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(Ht(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${He.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${He.dragging}`]:{[`& .${He.thumb}, & .${He.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(eo()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),c1=Nt("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),u1=Nt("span",{name:"MuiSlider",slot:"Track"})(Ht(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(eo()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:e.lighten(e.palette[t].main,.62),borderColor:e.lighten(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:e.darken(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:e.darken(e.palette[t].main,.5)})}}}))]}))),d1=Nt("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Ge(n.color)}`],n.size!=="medium"&&t[`thumbSize${Ge(n.size)}`]]}})(Ht(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${He.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(eo()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${He.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${He.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),Ni=Nt(Ei,{name:"MuiSlider",slot:"ValueLabel"})(Ht(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${He.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${He.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})));process.env.NODE_ENV!=="production"&&(Ni.propTypes={children:s.element.isRequired,index:s.number.isRequired,open:s.bool.isRequired,value:s.node});const f1=Nt("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Jr(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(Ht(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),p1=Nt("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Jr(e)&&e!=="markLabelActive"})(Ht(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),m1=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:a,color:c,size:u}=e,d={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",c&&`color${Ge(c)}`,u&&`size${Ge(u)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",u&&`thumbSize${Ge(u)}`,c&&`thumbColor${Ge(c)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return S0(d,i1,a)},h1=({children:e})=>e,Oi=Q.forwardRef(function(t,n){const r=n1({props:t,name:"MuiSlider"}),o=j0(),{"aria-label":i,"aria-valuetext":a,"aria-labelledby":c,component:u="span",components:d={},componentsProps:m={},color:g="primary",classes:y,className:h,disableSwap:b=!1,disabled:f=!1,getAriaLabel:x,getAriaValueText:_,marks:w=!1,max:E=100,min:C=0,name:v,onChange:T,onChangeCommitted:A,orientation:k="horizontal",shiftStep:j=10,size:D="medium",step:M=1,scale:p=fs,slotProps:N,slots:$,tabIndex:P,track:q="normal",value:Y,valueLabelDisplay:U="off",valueLabelFormat:ge=fs,...L}=r,R={...r,isRtl:o,max:E,min:C,classes:y,disabled:f,disableSwap:b,orientation:k,marks:w,color:g,size:D,step:M,shiftStep:j,scale:p,track:q,valueLabelDisplay:U,valueLabelFormat:ge},{axisProps:K,getRootProps:J,getHiddenInputProps:V,getThumbProps:Z,open:ne,active:te,axis:re,focusedThumbIndex:ee,range:H,dragging:be,marks:F,values:ae,trackOffset:Ce,trackLeap:ct,getThumbStyle:Ie}=V0({...R,rootRef:n});R.marked=F.length>0&&F.some(ke=>ke.label),R.dragging=be,R.focusedThumbIndex=ee;const Ee=m1(R),tt=($==null?void 0:$.root)??d.Root??l1,z=($==null?void 0:$.rail)??d.Rail??c1,ie=($==null?void 0:$.track)??d.Track??u1,pe=($==null?void 0:$.thumb)??d.Thumb??d1,_e=($==null?void 0:$.valueLabel)??d.ValueLabel??Ni,je=($==null?void 0:$.mark)??d.Mark??f1,Pe=($==null?void 0:$.markLabel)??d.MarkLabel??p1,I=($==null?void 0:$.input)??d.Input??"input",B=(N==null?void 0:N.root)??m.root,W=(N==null?void 0:N.rail)??m.rail,X=(N==null?void 0:N.track)??m.track,se=(N==null?void 0:N.thumb)??m.thumb,G=(N==null?void 0:N.valueLabel)??m.valueLabel,Ae=(N==null?void 0:N.mark)??m.mark,Re=(N==null?void 0:N.markLabel)??m.markLabel,Ne=(N==null?void 0:N.input)??m.input,We=ft({elementType:tt,getSlotProps:J,externalSlotProps:B,externalForwardedProps:L,additionalProps:{...r1(tt)&&{as:u}},ownerState:{...R,...B==null?void 0:B.ownerState},className:[Ee.root,h]}),Gt=ft({elementType:z,externalSlotProps:W,ownerState:R,className:Ee.rail}),ia=ft({elementType:ie,externalSlotProps:X,additionalProps:{style:{...K[re].offset(Ce),...K[re].leap(ct)}},ownerState:{...R,...X==null?void 0:X.ownerState},className:Ee.track}),nr=ft({elementType:pe,getSlotProps:Z,externalSlotProps:se,ownerState:{...R,...se==null?void 0:se.ownerState},className:Ee.thumb}),aa=ft({elementType:_e,externalSlotProps:G,ownerState:{...R,...G==null?void 0:G.ownerState},className:Ee.valueLabel}),rr=ft({elementType:je,externalSlotProps:Ae,ownerState:R,className:Ee.mark}),or=ft({elementType:Pe,externalSlotProps:Re,ownerState:R,className:Ee.markLabel}),la=ft({elementType:I,getSlotProps:V,externalSlotProps:Ne,ownerState:R});return l.jsxs(tt,{...We,children:[l.jsx(z,{...Gt}),l.jsx(ie,{...ia}),F.filter(ke=>ke.value>=C&&ke.value<=E).map((ke,Le)=>{const sr=Vn(ke.value,C,E),gn=K[re].offset(sr);let nt;return q===!1?nt=ae.includes(ke.value):nt=q==="normal"&&(H?ke.value>=ae[0]&&ke.value<=ae[ae.length-1]:ke.value<=ae[0])||q==="inverted"&&(H?ke.value<=ae[0]||ke.value>=ae[ae.length-1]:ke.value>=ae[0]),l.jsxs(Q.Fragment,{children:[l.jsx(je,{"data-index":Le,...rr,...!an(je)&&{markActive:nt},style:{...gn,...rr.style},className:ht(rr.className,nt&&Ee.markActive)}),ke.label!=null?l.jsx(Pe,{"aria-hidden":!0,"data-index":Le,...or,...!an(Pe)&&{markLabelActive:nt},style:{...gn,...or.style},className:ht(Ee.markLabel,or.className,nt&&Ee.markLabelActive),children:ke.label}):null]},Le)}),ae.map((ke,Le)=>{const sr=Vn(ke,C,E),gn=K[re].offset(sr),nt=U==="off"?h1:_e;return l.jsx(nt,{...!an(nt)&&{valueLabelFormat:ge,valueLabelDisplay:U,value:typeof ge=="function"?ge(p(ke),Le):ge,index:Le,open:ne===Le||te===Le||U==="on",disabled:f},...aa,children:l.jsx(pe,{"data-index":Le,...nr,className:ht(Ee.thumb,nr.className,te===Le&&Ee.active,ee===Le&&Ee.focusVisible),style:{...gn,...Ie(Le),...nr.style},children:l.jsx(I,{"data-index":Le,"aria-label":x?x(Le):i,"aria-valuenow":p(ke),"aria-labelledby":c,"aria-valuetext":_?_(p(ke),Le):a,value:ae[Le],...la})})},Le)})]})});process.env.NODE_ENV!=="production"&&(Oi.propTypes={"aria-label":Io(s.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":s.string,"aria-valuetext":Io(s.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),components:s.shape({Input:s.elementType,Mark:s.elementType,MarkLabel:s.elementType,Rail:s.elementType,Root:s.elementType,Thumb:s.elementType,Track:s.elementType,ValueLabel:s.elementType}),componentsProps:s.shape({input:s.oneOfType([s.func,s.object]),mark:s.oneOfType([s.func,s.object]),markLabel:s.oneOfType([s.func,s.object]),rail:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),thumb:s.oneOfType([s.func,s.object]),track:s.oneOfType([s.func,s.object]),valueLabel:s.oneOfType([s.func,s.shape({children:s.element,className:s.string,open:s.bool,style:s.object,value:s.node,valueLabelDisplay:s.oneOf(["auto","off","on"])})])}),defaultValue:s.oneOfType([s.arrayOf(s.number),s.number]),disabled:s.bool,disableSwap:s.bool,getAriaLabel:s.func,getAriaValueText:s.func,marks:s.oneOfType([s.arrayOf(s.shape({label:s.node,value:s.number.isRequired})),s.bool]),max:s.number,min:s.number,name:s.string,onChange:s.func,onChangeCommitted:s.func,orientation:s.oneOf(["horizontal","vertical"]),scale:s.func,shiftStep:s.number,size:s.oneOfType([s.oneOf(["small","medium"]),s.string]),slotProps:s.shape({input:s.oneOfType([s.func,s.object]),mark:s.oneOfType([s.func,s.object]),markLabel:s.oneOfType([s.func,s.object]),rail:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),thumb:s.oneOfType([s.func,s.object]),track:s.oneOfType([s.func,s.object]),valueLabel:s.oneOfType([s.func,s.shape({children:s.element,className:s.string,open:s.bool,style:s.object,value:s.node,valueLabelDisplay:s.oneOf(["auto","off","on"])})])}),slots:s.shape({input:s.elementType,mark:s.elementType,markLabel:s.elementType,rail:s.elementType,root:s.elementType,thumb:s.elementType,track:s.elementType,valueLabel:s.elementType}),step:s.number,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,track:s.oneOf(["inverted","normal",!1]),value:s.oneOfType([s.arrayOf(s.number),s.number]),valueLabelDisplay:s.oneOf(["auto","off","on"]),valueLabelFormat:s.oneOfType([s.func,s.string])});const g1="_slider_1prh1_2",y1="_playButton_1prh1_14",b1="_sliderOpen_1prh1_25",v1="_sliderResults_1prh1_29",Qt={slider:g1,playButton:y1,sliderOpen:b1,sliderResults:v1},Ai=({onResults:e=!1,defaultYear:t=2025,firstYear:n=2025,lastYear:r=2050,marcas:o=null,zIndex:i=10,rightBarOpen:a=!1,conditionToBeRuning:c=null,onChange:u=d=>{console.log("year changed to ",d)}})=>{const m=o||((C,v)=>{const T=[];T.push({label:"",value:C});const A=Math.ceil(C/10)*10;for(let k=A;k<v;k+=10)T.push({label:"",value:k});return T[T.length-1].value!==v&&T.push({label:"",value:v}),T})(n,r),[g,y]=S.useState(t);S.useEffect(()=>{y(t)},[t]);const h=(C,v)=>{y(v),u(v)},[b,f]=S.useState(!1);S.useEffect(()=>{t&&console.log("defaultYear changed:",t),t&&y(t)},[t]),S.useEffect(()=>{c===!1&&f(!1)},[c]);const x=()=>{f(!0)},_=()=>{f(!1)};((C,v,T=[])=>{const A=S.useRef();S.useEffect(()=>{A.current=C},[C]),S.useEffect(()=>{function k(){A.current()}{let j=setInterval(k,v);return()=>clearInterval(j)}},[v,...T])})(()=>{b&&y(C=>{const v=C+1;return v>r?(u(n),n):(u(v),v)})},1e3,[n,r,b]);const E=co.createTheme({palette:{primary:{main:"#605b56"}},components:{MuiSlider:{styleOverrides:{mark:{height:10,backgroundColor:"#605b56"},valueLabel:{backgroundColor:"transparent",color:"#605b56",padding:0,top:3}}}}});return l.jsx(xa.ThemeProvider,{theme:E,children:l.jsxs(co.Box,{sx:{width:400},className:`${e?Qt.sliderResults:Qt.slider} ${a?Qt.sliderOpen:""}`,style:{zIndex:i},children:[n,l.jsx(Oi,{"aria-label":"TimeSlider",value:g,valueLabelDisplay:"on",step:1,marks:m,min:n,max:r,onChange:h,color:"primary",size:"small"}),r,!b&&l.jsx("button",{className:Qt.playButton,onClick:x,children:l.jsx("img",{src:_0,alt:"Play"})}),b&&l.jsx("button",{className:Qt.playButton,onClick:_,children:l.jsx("img",{src:w0,alt:"Pause"})})]})})};Ai.propTypes={defaultYear:s.number,onResults:s.bool,firstYear:s.number,lastYear:s.number,marcas:s.arrayOf(s.shape({label:s.string,value:s.number})),zIndex:s.number,rightBarOpen:s.bool,onChange:s.func};const x1="_TopNavMenuContainer_12mp4_2",C1="_topNavOptions_12mp4_13",_1="_active_12mp4_27",wr={TopNavMenuContainer:x1,topNavOptions:C1,active:_1},Li=({options:e=[],containerStyles:t,borderColor:n="red",textColor:r="white",onChangeNavLink:o=i=>{console.log("Changed NavLink",i)}})=>{const{t:i}=oe.useTranslation();return l.jsx("div",{className:wr.TopNavMenuContainer,style:{...t},children:e.map((a,c)=>l.jsx(As.NavLink,{to:a.url,className:({isActive:u})=>`${wr.topNavOptions} ${u?wr.active:""} `,onClick:()=>o(a.url),style:({isActive:u})=>({color:r,borderBottom:u?`5px solid ${n}`:"5px solid transparent"}),children:i(a.name)},c))})};Li.propTypes={options:s.arrayOf(s.object),cssProps:s.shape({borderColor:s.string.isRequired,textColor:s.string.isRequired})};const w1="_LogInButton_1vxj5_2",S1={LogInButton:w1},Mi=({cssClass:e,notLoggedInLabel:t="Log in",loggedInLabel:n="Log out",containerStyles:r,userName:o="",isLoggedIn:i=!1,onClickLogIn:a=()=>{console.log("Login clicked")},onClickLogOut:c=()=>{console.log("Logout clicked")}})=>{const{t:u}=oe.useTranslation();return l.jsx("div",{style:{...r},className:`${S1.LogInButton} link ${e}`,onClick:i?c:a,children:i?o||u(n):u(t)})};Mi.propTypes={cssClass:s.string,notLoggedInLabel:s.string,loggedInLabel:s.string,containerStyles:s.object,userName:s.string,isLoggedIn:s.bool};const T1="_elementSelector_1ox68_2",j1="_header_1ox68_14",k1="_nameDateContainer_1ox68_24",$1="_elementName_1ox68_40",E1="_elementDate_1ox68_54",N1="_buttonsContainer_1ox68_68",O1="_elementListContainer_1ox68_77",A1="_newElementButtonContainer_1ox68_81",ot={elementSelector:T1,header:j1,nameDateContainer:k1,elementName:$1,elementDate:E1,buttonsContainer:N1,elementListContainer:O1,newElementButtonContainer:A1},L1="_listElement_s4s4h_3",M1="_elementNameDate_s4s4h_19",R1="_elementNameContainer_s4s4h_30",D1="_elementName_s4s4h_19",I1="_elementDate_s4s4h_47",B1="_nameAndEye_s4s4h_50",V1="_elementButtons_s4s4h_55",P1="_moreInfoContainer_s4s4h_78",F1="_moreInfo_s4s4h_78",Ue={listElement:L1,elementNameDate:M1,elementNameContainer:R1,elementName:D1,elementDate:I1,nameAndEye:B1,elementButtons:V1,break:"_break_s4s4h_73",moreInfoContainer:P1,moreInfo:F1},z1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Eliminar'%3e%3ccircle%20id='Ellipse%20220'%20cx='15.5106'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M20.8581%2010.5548H17.5491V10.4015C17.5491%209.17493%2016.6257%208.255%2015.4714%208.255C14.3171%208.255%2013.3167%209.17493%2013.3167%2010.4015V10.5548H10.0846C9.69985%2010.5548%209.46899%2010.7848%209.46899%2011.1681C9.46899%2011.5514%209.69985%2011.7814%2010.0846%2011.7814H10.2385V21.2106C10.2385%2022.3605%2011.162%2023.3571%2012.3932%2023.3571H18.5495C19.7038%2023.3571%2020.7042%2022.4372%2020.7042%2021.2106V11.7047H20.9351C21.2429%2011.7047%2021.5507%2011.4747%2021.5507%2011.0914C21.5507%2010.7081%2021.1659%2010.5548%2020.8581%2010.5548ZM14.471%2010.4015C14.471%209.86488%2014.9327%209.40491%2015.4714%209.40491C16.01%209.40491%2016.3948%209.86488%2016.3948%2010.4015V10.5548H14.471V10.4015ZM16.3948%2018.8342V15.0011C16.3948%2014.6178%2016.6257%2014.3878%2017.0104%2014.3878C17.3952%2014.3878%2017.6261%2014.6178%2017.6261%2015.0011V18.8342C17.6261%2019.1408%2017.3952%2019.4474%2017.0104%2019.4474C16.6257%2019.4474%2016.3948%2019.1408%2016.3948%2018.8342ZM13.3167%2018.8342V15.0011C13.3167%2014.6178%2013.5475%2014.3878%2013.9323%2014.3878C14.3171%2014.3878%2014.5479%2014.6178%2014.5479%2015.0011V18.8342C14.5479%2019.1408%2014.3171%2019.4474%2013.9323%2019.4474C13.5475%2019.4474%2013.3167%2019.1408%2013.3167%2018.8342Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e",q1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209259'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.3062'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cg%20id='Group%203973'%3e%3cg%20id='Rectangle%20495'%3e%3cmask%20id='path-2-inside-1_4451_10560'%20fill='white'%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'/%3e%3c/mask%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'%20stroke='%23605B56'%20stroke-width='3'%20mask='url(%23path-2-inside-1_4451_10560)'/%3e%3c/g%3e%3cg%20id='Group%203972'%3e%3crect%20id='Rectangle%20496'%20x='7.2041'%20y='10.9042'%20width='12.8'%20height='12.8'%20rx='1'%20fill='%23605B56'/%3e%3cpath%20id='+'%20d='M16.3785%2018.0509H14.3838V20.0776H12.9331V18.0509H10.9385V16.6749H12.9331V14.6376H14.3838V16.6749H16.3785V18.0509Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",W1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209260'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M8.20744%208.70422C7.34769%208.70422%206.88873%209.71735%207.45568%2010.3637L13.3518%2017.085C13.5118%2017.2675%2013.6%2017.5018%2013.6%2017.7445V23.2443C13.6%2023.6283%2013.8199%2023.9783%2014.1658%2024.1451L15.9658%2025.0128C16.6297%2025.3329%2017.4%2024.8491%2017.4%2024.112V17.7445C17.4%2017.5018%2017.4882%2017.2675%2017.6482%2017.085L23.5443%2010.3637C24.1113%209.71735%2023.6523%208.70422%2022.7926%208.70422H8.20744Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e",U1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%206725'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.7148'%20r='14.3521'%20stroke='%23605B56'%20stroke-opacity='0.5'%20stroke-width='1.5'/%3e%3cg%20id='Group%206724'%3e%3cpath%20id='Vector'%20d='M17.4114%2023.3302C17.4114%2024.5419%2016.4269%2027.4724%2015.2126%2027.4724C13.9982%2027.4724%2013.0137%2024.5419%2013.0137%2023.3302C13.0137%2022.7483%2013.2453%2022.1902%2013.6577%2021.7787C14.0701%2021.3673%2014.6294%2021.1361%2015.2126%2021.1361C15.7957%2021.1361%2016.355%2021.3673%2016.7674%2021.7787C17.1798%2022.1902%2017.4114%2022.7483%2017.4114%2023.3302Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union'%20d='M15.2919%2020.6088H11.2899L11.289%2020.6078C10.6273%2020.7718%209.36856%2021.3396%209.39931%2023.2845C9.39931%2023.2845%207.41254%2021.7976%208.17372%2019.0179L8.25575%2018.7445C8.59675%2017.7118%209.66004%2016.7306%2010.7714%2016.2435C10.7337%2012.8666%2011.5045%208.19644%2015.2919%204.724V20.6088ZM10.6835%2017.4164C10.5323%2017.5091%2010.3819%2017.6125%2010.2372%2017.7279C9.77215%2018.099%209.43634%2018.5195%209.26747%2018.8988L9.20595%2019.058C8.95666%2019.8145%208.9632%2020.4347%209.07607%2020.9291C9.34144%2020.5645%209.66233%2020.2832%209.9999%2020.0746C10.2365%2019.9284%2010.4715%2019.8251%2010.6835%2019.7494V17.4164Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union_2'%20d='M15.293%204.724C19.0931%208.20817%2019.8548%2012.8981%2019.8115%2016.2777C20.8629%2016.7859%2021.8411%2017.7218%2022.165%2018.7045C23.1398%2021.6599%2021.0225%2023.2445%2021.0225%2023.2445C21.051%2021.4361%2019.9648%2020.8184%2019.2803%2020.6088H15.293V4.724ZM19.7676%2017.3949C19.7586%2017.5313%2019.7493%2017.6646%2019.7383%2017.7943V19.7094C19.9502%2019.7851%2020.1854%2019.8884%2020.4219%2020.0345C20.7595%2020.2432%2021.0794%2020.5253%2021.3447%2020.89C21.4466%2020.444%2021.4627%2019.8956%2021.2812%2019.2367L21.2148%2019.0179C21.0772%2018.6004%2020.7157%2018.1118%2020.1846%2017.6879C20.0493%2017.58%2019.9088%2017.4829%2019.7676%2017.3949Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cg%20id='Vector_2'%3e%3cpath%20d='M12.541%208.28445C12.541%208.28445%2014.8218%209.81829%2018.0434%208.28445C18.0434%208.28445%2016.9978%206.03912%2015.2919%204.61267C15.2919%204.61267%2013.7894%205.92343%2012.541%208.28445Z'%20fill='%23FDFDFD'/%3e%3cpath%20d='M15.3057%205.29626C15.9532%205.9116%2016.4918%206.63792%2016.8867%207.2533C17.0801%207.55466%2017.2355%207.82605%2017.3516%208.03748C16.0573%208.54342%2014.966%208.52427%2014.1807%208.36951C13.781%208.29074%2013.4584%208.17533%2013.2266%208.07556C13.7607%207.14513%2014.32%206.40895%2014.7646%205.88806C14.9759%205.64056%2015.1621%205.44302%2015.3057%205.29626Z'%20stroke='%23605B56'%20stroke-opacity='0.5'/%3e%3c/g%3e%3cpath%20id='Vector_3'%20d='M17.6984%2012.9862C17.6985%2013.4539%2017.5596%2013.9111%2017.2993%2014.3001C17.039%2014.689%2016.669%2014.9922%2016.236%2015.1712C15.803%2015.3503%2015.3265%2015.3972%2014.8668%2015.3061C14.4071%2015.2149%2013.9848%2014.9898%2013.6533%2014.6591C13.3218%2014.3285%2013.0961%2013.9072%2013.0046%2013.4485C12.9131%2012.9898%2012.96%2012.5143%2013.1393%2012.0822C13.3186%2011.6501%2013.6224%2011.2808%2014.0121%2011.021C14.4018%2010.7611%2014.86%2010.6224%2015.3287%2010.6224C15.957%2010.6224%2016.5597%2010.8715%2017.004%2011.3147C17.4484%2011.758%2017.6982%2012.3593%2017.6984%2012.9862Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_4'%20d='M17.1358%2013.0038C17.1358%2013.36%2017.0299%2013.7083%2016.8316%2014.0045C16.6332%2014.3007%2016.3513%2014.5316%2016.0214%2014.6679C15.6916%2014.8042%2015.3286%2014.8399%2014.9784%2014.7704C14.6282%2014.7009%2014.3066%2014.5294%2014.0541%2014.2774C13.8017%2014.0255%2013.6297%2013.7046%2013.5601%2013.3552C13.4904%2013.0058%2013.5262%2012.6436%2013.6628%2012.3145C13.7994%2011.9853%2014.0308%2011.704%2014.3277%2011.5061C14.6245%2011.3082%2014.9736%2011.2025%2015.3306%2011.2025C15.8094%2011.2025%2016.2685%2011.3923%2016.6071%2011.7301C16.9456%2012.0679%2017.1358%2012.526%2017.1358%2013.0038Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_5'%20d='M16.7061%2013.2093C16.6508%2013.2093%2016.5978%2013.1874%2016.5588%2013.1485C16.5197%2013.1095%2016.4978%2013.0566%2016.4978%2013.0015C16.4974%2012.7236%2016.3866%2012.4572%2016.1897%2012.2607C15.9928%2012.0642%2015.7258%2011.9537%2015.4473%2011.9533C15.4175%2011.9582%2015.3869%2011.9566%2015.3578%2011.9485C15.3287%2011.9405%2015.3017%2011.9262%2015.2786%2011.9067C15.2556%2011.8872%2015.237%2011.8629%2015.2244%2011.8356C15.2117%2011.8082%2015.2051%2011.7784%2015.2051%2011.7482C15.2051%2011.7181%2015.2117%2011.6883%2015.2244%2011.6609C15.237%2011.6336%2015.2556%2011.6093%2015.2786%2011.5898C15.3017%2011.5703%2015.3287%2011.556%2015.3578%2011.5479C15.3869%2011.5399%2015.4175%2011.5383%2015.4473%2011.5432C15.8348%2011.5435%2016.2063%2011.6973%2016.4803%2011.9707C16.7543%2012.2441%2016.9084%2012.6148%2016.9088%2013.0015C16.9088%2013.0557%2016.8876%2013.1077%2016.8498%2013.1465C16.8119%2013.1854%2016.7603%2013.2079%2016.7061%2013.2093Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_6'%20d='M16.8082%2013.6607C16.8082%2013.7106%2016.7934%2013.7594%2016.7656%2013.8008C16.7378%2013.8423%2016.6984%2013.8746%2016.6522%2013.8937C16.606%2013.9128%2016.5552%2013.9178%2016.5062%2013.9081C16.4571%2013.8983%2016.4121%2013.8743%2016.3768%2013.8391C16.3414%2013.8038%2016.3173%2013.7589%2016.3076%2013.7099C16.2978%2013.661%2016.3028%2013.6103%2016.322%2013.5642C16.3411%2013.5182%2016.3735%2013.4788%2016.4151%2013.4511C16.4566%2013.4234%2016.5055%2013.4086%2016.5555%2013.4086C16.6225%2013.4086%2016.6868%2013.4351%2016.7342%2013.4824C16.7816%2013.5297%2016.8082%2013.5939%2016.8082%2013.6607Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_7'%20d='M15.6008%2016.0612C15.5633%2016.0097%2015.5141%2015.9677%2015.4573%2015.9388C15.4005%2015.9099%2015.3376%2015.8949%2015.2738%2015.8949H15.1898C15.126%2015.8948%2015.0631%2015.9099%2015.0062%2015.9388C14.9494%2015.9677%2014.9002%2016.0096%2014.8627%2016.0612C14.8627%2016.0612%2013.6074%2017.4973%2014.1816%2021.0915C14.4989%2023.0777%2015.2314%2023.6694%2015.2314%2023.6694C15.2314%2023.6694%2015.9639%2023.0777%2016.2819%2021.0915C16.8561%2017.4973%2015.6008%2016.0612%2015.6008%2016.0612Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_8'%20d='M15.1468%2015.8949C15.083%2015.8948%2015.0201%2015.9099%2014.9632%2015.9388C14.9064%2015.9677%2014.8572%2016.0096%2014.8198%2016.0612C14.8198%2016.0612%2013.5645%2017.4973%2014.1387%2021.0915C14.456%2023.0777%2015.1884%2023.6694%2015.1884%2023.6694V15.8949H15.1468Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Z1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='15.3062'%20cy='15.2144'%20r='14.3521'%20stroke='%2392898A'%20stroke-width='1.5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.9898%2012.7234V9.89008C11.9898%208.88815%2012.3811%207.92726%2013.0777%207.21879C13.7743%206.51032%2014.719%206.1123%2015.7041%206.1123C16.6892%206.1123%2017.6339%206.51032%2018.3305%207.21879C19.0271%207.92726%2019.4184%208.88815%2019.4184%209.89008V12.7234H20.347C20.8395%2012.7234%2021.3119%2012.9224%2021.6602%2013.2767C22.0084%2013.6309%2022.2041%2014.1113%2022.2041%2014.6123V21.2234C22.2041%2021.7244%2022.0084%2022.2048%2021.6602%2022.5591C21.3119%2022.9133%2020.8395%2023.1123%2020.347%2023.1123H11.0612C10.5687%2023.1123%2010.0963%2022.9133%209.74805%2022.5591C9.39976%2022.2048%209.2041%2021.7244%209.2041%2021.2234V14.6123C9.2041%2014.1113%209.39976%2013.6309%209.74805%2013.2767C10.0963%2012.9224%2010.5687%2012.7234%2011.0612%2012.7234H11.9898ZM13.847%209.89008C13.847%209.38912%2014.0426%208.90867%2014.3909%208.55444C14.7392%208.2002%2015.2116%208.00119%2015.7041%208.00119C16.1966%208.00119%2016.669%208.2002%2017.0173%208.55444C17.3656%208.90867%2017.5612%209.38912%2017.5612%209.89008V12.7234H13.847V9.89008ZM15.7041%2015.5567C15.9504%2015.5567%2016.1866%2015.6563%2016.3607%2015.8334C16.5348%2016.0105%2016.6327%2016.2507%2016.6327%2016.5012V19.3345C16.6327%2019.585%2016.5348%2019.8252%2016.3607%2020.0023C16.1866%2020.1795%2015.9504%2020.279%2015.7041%2020.279C15.4578%2020.279%2015.2216%2020.1795%2015.0475%2020.0023C14.8734%2019.8252%2014.7755%2019.585%2014.7755%2019.3345V16.5012C14.7755%2016.2507%2014.8734%2016.0105%2015.0475%2015.8334C15.2216%2015.6563%2015.4578%2015.5567%2015.7041%2015.5567Z'%20fill='%2392898A'/%3e%3c/svg%3e",H1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Editar'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.1021'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cg%20id='Group%203792'%3e%3cpath%20id='Vector%20530'%20d='M22.469%2010.8343L19.54%207.90531C19.3447%207.71005%2019.0281%207.71005%2018.8329%207.90531L8.39131%2018.3469C8.31762%2018.4206%208.2688%2018.5154%208.25167%2018.6182L7.66586%2022.1331C7.60946%2022.4715%207.90285%2022.7649%208.24126%2022.7085L11.7561%2022.1227C11.8589%2022.1055%2011.9538%2022.0567%2012.0275%2021.983L22.469%2011.5415C22.6643%2011.3462%2022.6643%2011.0296%2022.469%2010.8343Z'%20stroke='%23605B56'/%3e%3cpath%20id='Vector%20531'%20d='M9.00391%2017.7334L12.6401%2021.3695'%20stroke='%23605B56'/%3e%3cpath%20id='Vector%20614'%20d='M19.4292%207.55176L9.24805%2017.733L12.6418%2021.1267L22.823%2010.9455L19.4292%207.55176Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",K1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%206729'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.1021'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='i'%20d='M14%209.008C14%208.708%2014.102%208.468%2014.306%208.288C14.51%208.096%2014.78%208%2015.116%208C15.452%208%2015.722%208.096%2015.926%208.288C16.13%208.468%2016.232%208.708%2016.232%209.008C16.232%209.308%2016.13%209.554%2015.926%209.746C15.722%209.926%2015.452%2010.016%2015.116%2010.016C14.78%2010.016%2014.51%209.926%2014.306%209.746C14.102%209.554%2014%209.308%2014%209.008ZM15.926%2011.906V21.788H14.288V11.906H15.926Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e";var ps;function Br(){return Br=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Br.apply(null,arguments)}var G1=function(t){return Q.createElement("svg",Br({xmlns:"http://www.w3.org/2000/svg",width:26,height:14,fill:"none"},t),ps||(ps=Q.createElement("g",{fill:"currentColor"},Q.createElement("path",{d:"M12.95.408C7.659.408 2.849 2.772.083 6.726a.47.47 0 0 0 0 .532c2.761 3.955 7.571 6.313 12.867 6.313s10.106-2.358 12.867-6.313a.47.47 0 0 0 0-.532C23.05 2.772 18.24.408 12.95.408m0 10.814A4.24 4.24 0 0 1 8.718 6.99a4.24 4.24 0 0 1 4.232-4.232 4.24 4.24 0 0 1 4.232 4.232 4.24 4.24 0 0 1-4.232 4.232"}),Q.createElement("path",{d:"M12.951 10.297a3.307 3.307 0 1 0 0-6.614 3.307 3.307 0 0 0 0 6.614"}))))};const Y1="data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%200%2026%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205207'%3e%3cpath%20id='Vector'%20d='M12.9837%206.40625C11.1707%206.40625%209.69531%207.88162%209.69531%209.69462C9.69531%2010.0276%209.74618%2010.3514%209.83869%2010.652C9.93579%2010.9711%2010.0792%2011.2718%2010.2642%2011.54L14.8291%206.97512C14.5562%206.79013%2014.2602%206.64676%2013.9411%206.54962C13.6404%206.45712%2013.3167%206.40625%2012.9837%206.40625Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_2'%20d='M19.4938%204.44079C19.318%204.36678%2019.1191%204.40841%2018.985%204.53792L16.3534%207.16955V7.17415C16.543%207.42855%2016.7049%207.70604%2016.8344%208.00204C17.0656%208.52004%2017.1905%209.09354%2017.1905%209.69478C17.1905%2012.0165%2015.3035%2013.9035%2012.9818%2013.9035C12.3805%2013.9035%2011.807%2013.7787%2011.289%2013.5474C10.993%2013.4179%2010.7155%2013.256%2010.4611%2013.0664H10.4565L8.52788%2014.995C8.41225%2015.1153%208.36601%2015.2864%208.41225%2015.4437C8.45389%2015.6055%208.57875%2015.7304%208.74063%2015.772C10.0958%2016.1189%2011.511%2016.2947%2012.9494%2016.2947C18.245%2016.2947%2023.055%2013.9359%2025.8161%209.98153C25.9271%209.82429%2025.9271%209.61153%2025.8161%209.45427C24.2991%207.27591%2022.1115%205.54154%2019.4938%204.44079Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_3'%20d='M12.9843%2012.979C14.7973%2012.979%2016.268%2011.5082%2016.268%209.6952C16.268%209.35295%2016.2171%209.0292%2016.12%208.71933C16.0229%208.4002%2015.8749%208.10419%2015.6899%207.83594L11.125%2012.4008C11.3933%2012.5858%2011.6893%2012.7338%2012.0084%2012.831C12.3183%2012.9281%2012.6466%2012.979%2012.9843%2012.979Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_4'%20d='M9.12048%2011.3694C8.89386%2010.856%208.769%2010.2918%208.769%209.69516C8.769%207.3734%2010.656%205.48178%2012.9824%205.48178C13.579%205.48178%2014.1433%205.60667%2014.6566%205.83329C14.9526%205.95815%2015.2347%206.12004%2015.4891%206.31428L17.3808%204.42267L21.0114%200.792026C21.1918%200.611646%2021.1918%200.315664%2021.0114%200.135285C20.831%20-0.0450949%2020.535%20-0.0450949%2020.3546%200.135285L16.8951%203.59478C15.6186%203.28491%2014.2959%203.13228%2012.95%203.13228C7.65437%203.13228%202.84439%205.49565%200.0832465%209.45464C-0.0277488%209.61191%20-0.0277488%209.82467%200.0832465%209.9819C1.48001%2011.9845%203.44563%2013.6079%205.78125%2014.7087L3.37162%2017.1183C3.19127%2017.2986%203.19127%2017.5947%203.37162%2017.775C3.46412%2017.8629%203.57975%2017.9091%203.7%2017.9091C3.82026%2017.9091%203.93588%2017.8629%204.02839%2017.775L9.60151%2012.2019C9.40727%2011.9429%209.24536%2011.6654%209.12048%2011.3694Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3c/g%3e%3c/svg%3e",Ri=({listelement:e,onClickElement:t,isActive:n,activeColor:r,fontColor:o,moreInfo:i,columns:a,elementButtons:c,processTooltip:u,defaultTooltip:d,showEye:m=!0})=>{const{name:g,created_at:y,id:h,isBeingProcessed:b}=e,[f,x]=S.useState(!1),{t:_}=oe.useTranslation(),w=c&&c.edit&&!e.is_default&&!e.is_baseline,E=c&&c.trash&&!e.is_default&&!e.is_baseline;return l.jsxs("div",{className:Ue.listElement,style:{borderBottom:`1px solid ${o}`},children:[l.jsx("div",{className:Ue.elementNameDate,onClick:()=>t(h),children:Object.keys(a).map((C,v)=>C==="name"?l.jsx("div",{className:Ue.elementNameContainer,children:l.jsxs("div",{className:`${Ue.elementName} ${m&&Ue.nameAndEye}`,children:[m&&(n?l.jsx(G1,{style:{color:r,marginRight:9}}):l.jsx("img",{style:{marginRight:9},src:Y1,alt:"eye"})),l.jsx("span",{style:{color:n?r:o},children:g})]})},`col${v}`):C=="data"?l.jsx("div",{className:Ue.elementDate,children:y?new Date(y).toLocaleDateString():""},`col${v}data`):l.jsx("div",{className:Ue.elementDate,children:e[C]},`col${v}other`))}),l.jsxs("div",{className:Ue.elementButtons,children:[e.processing&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("img",{src:U1}),l.jsx(Je,{text:u,position:"left"})]}),c.filter&&!e.is_default&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:()=>c.filter.onclick(e),disabled:c.filter.disabled||!1,children:l.jsx("img",{src:W1})}),l.jsx(Je,{text:c.filter.tooltiptext,position:"left"})]}),c.copy&&!e.is_default&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:()=>c.copy.onclick(e),disabled:c.copy.disabled||!1,children:l.jsx("img",{src:q1})}),l.jsx(Je,{text:c.copy.tooltiptext,position:"left"})]}),w&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:()=>c.edit.onclick(e),disabled:c.edit.disabled||!1,children:l.jsx("img",{src:H1})}),l.jsx(Je,{text:c.edit.tooltiptext,position:"left"})]}),c.info&&e.is_default&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:()=>c.info.onclick(e),disabled:c.info.disabled||!1,children:l.jsx("img",{src:K1})}),l.jsx(Je,{text:c.info.tooltiptext,position:"left"})]}),E&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:()=>c.trash.onclick(e),disabled:c.trash.disabled||!1,children:l.jsx("img",{src:z1})}),l.jsx(Je,{text:c.trash.tooltiptext,position:"left"})]}),e.is_default&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("img",{src:Z1}),l.jsx(Je,{text:d,position:"left"})]})]}),i&&l.jsx("div",{className:Ue.break}),i&&l.jsxs("div",{className:Ue.moreInfoContainer,children:[l.jsxs("div",{className:Ue.moreInfo,onClick:()=>x(!f),children:[l.jsx("span",{children:f?"-":"+"}),_(i.label)]}),i&&f&&l.jsx("div",{className:Ue.moreInfoInfo,children:e[i.info]})]})]})};Ri.propTypes={listelement:s.shape({name:s.string.isRequired,created_at:s.string,id:s.any.isRequired,isBeingProcessed:s.bool}).isRequired,onClickElement:s.func.isRequired,isActive:s.bool,activeColor:s.string,fontColor:s.string,moreInfo:s.any,columns:s.shape({name:s.string,data:s.string,ambit:s.string,escenari:s.string}),elementButtons:s.shape({copy:s.shape({onclick:s.func,tooltiptext:s.string}),delete:s.shape({onclick:s.func,tooltiptext:s.string}),filter:s.shape({onclick:s.func,tooltiptext:s.string})}),processTooltip:s.string,defaultTooltip:s.string,showEye:s.bool};const ms="data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector'%20d='M7%2015L7%201M7%2015L1%209M7%2015L13%209'%20stroke='%23605B56'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Di=({elementsList:e,activeElementId:t,fontColor:n="#605B56",activeColor:r,buttonContainerStyles:o={},containerStyles:i={},newElementButton:a,onClickElement:c=b=>console.log(`OnCLickElement: ${b}`),columns:u,elementButtons:d,moreInfo:m=!1,processTooltip:g,defaultTooltip:y,showEye:h=!0})=>{const{t:b}=oe.useTranslation(),[f,x]=S.useState(e);S.useEffect(()=>{e&&x(e)},[e]);const _=C=>{if(typeof C!="string")return null;if(/^\d{4}[-/]\d{2}[-/]\d{2}$/.test(C))return new Date(C);const v=/^(\d{2})[-/.]\s*(\d{2})[-/.]\s*(\d{4})$/.exec(C);if(v)return new Date(`${v[3]}-${v[2]}-${v[1]}`);const T=/^(\d{2})[-/]\s*(\d{2})[-/]\s*(\d{4})$/.exec(C);return T?parseInt(T[1])>12?new Date(`${T[3]}-${T[2]}-${T[1]}`):new Date(`${T[3]}-${T[1]}-${T[2]}`):null},w=C=>_(C)!==null,E=C=>{if(!f||f.length===0)return;let v=[...f];const T=v.find(k=>k[C]!==null&&k[C]!==void 0),A=T?w(T[C]):!1;v.sort((k,j)=>{const D=k[C],M=j[C];if(D==null&&M==null)return 0;if(D==null)return 1;if(M==null)return-1;if(A){const $=_(D),P=_(M);return!$&&!P?0:$?P?$-P:-1:1}const p=String(D||"").trim(),N=String(M||"").trim();return p.localeCompare(N)}),x(v)};return l.jsxs("div",{className:ot.elementSelector,style:{color:n,...i},children:[l.jsxs("div",{className:ot.header,style:{borderBottom:`1px solid ${n}`},children:[l.jsx("div",{className:ot.nameDateContainer,children:Object.keys(u).map(C=>C==="name"?l.jsx("div",{className:ot.elementName,children:l.jsxs("button",{onClick:()=>E("name"),children:[l.jsx("span",{children:b(u.name)}),l.jsx("img",{src:ms,alt:"order arrow"})]})},C):C==="data"?l.jsx("div",{className:ot.elementDate,children:l.jsxs("button",{onClick:()=>E("created_at"),children:[l.jsx("span",{children:b(u.data)}),l.jsx("img",{src:ms,alt:"order arrow"})]})},C):l.jsx("div",{className:ot.elementDate,children:l.jsx("span",{children:b(u[C])})},C))}),l.jsx("div",{className:ot.buttonsContainer})]}),l.jsx("div",{className:ot.elementListContainer,children:f&&f.length>0&&f.map(C=>l.jsx(Ri,{isActive:t==C.id,listelement:C,fontColor:n,activeColor:r,onClickElement:c,columns:u,elementButtons:d,moreInfo:m,processTooltip:g,defaultTooltip:y,showEye:h},`elementKey${C.id}`))}),a&&l.jsx("div",{className:ot.newElementButtonContainer,children:l.jsx(un,{style:{...o},onClick:a.onClick,borderColor:"grey",disabled:a.disabled||!1,children:b(a.label)})})]})};Di.propTypes={elementsList:s.arrayOf(s.shape({name:s.string.isRequired,created_at:s.string,id:s.any.isRequired})).isRequired,activeElementId:s.any,fontColor:s.string,activeColor:s.string,onClickElement:s.func.isRequired,newElementButton:s.shape({label:s.string,onClick:s.func}),columns:s.shape({name:s.string,data:s.string,ambit:s.string,escenari:s.string}),elementButtons:s.shape({copy:s.shape({onclick:s.func,tooltiptext:s.string}),delete:s.shape({onclick:s.func,tooltiptext:s.string}),filter:s.shape({onclick:s.func,tooltiptext:s.string})}),buttonContainerStyles:s.object,containerStyles:s.object,onCLickNewElement:s.func,moreInfo:s.shape({label:s.string,info:s.any}),processTooltip:s.string,defaultTooltip:s.string,showEye:s.bool};const X1="_formContainer_asv64_2",Q1="_categorySelectorContainer_asv64_11",J1="_formObjectContainer_asv64_15",ed="_buttonContainer_asv64_26",Jt={formContainer:X1,categorySelectorContainer:Q1,formObjectContainer:J1,buttonContainer:ed},Vt={text:"text",password:"password",radioList:"radioList",select:"select",textDescription:"textDescription",rankingSlider:"rankingSlider"};var td=e=>e.type==="checkbox",sn=e=>e instanceof Date,to=e=>e==null;const Ii=e=>typeof e=="object";var $t=e=>!to(e)&&!Array.isArray(e)&&Ii(e)&&!sn(e),nd=e=>$t(e)&&e.target?td(e.target)?e.target.checked:e.target.value:e,rd=(e,t)=>t.split(".").some((n,r,o)=>!isNaN(Number(n))&&e.has(o.slice(0,r).join("."))),od=e=>{const t=e.constructor&&e.constructor.prototype;return $t(t)&&t.hasOwnProperty("isPrototypeOf")},sd=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Bi(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(sd&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!($t(e)&&od(e)))return e;const r=n?[]:Object.create(Object.getPrototypeOf(e));for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=Bi(e[o]));return r}var Vi=e=>/^\w*$/.test(e),Vr=e=>e===void 0,id=e=>Array.isArray(e)?e.filter(Boolean):[],Pi=e=>id(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ve=(e,t,n)=>{if(!t||!$t(e))return n;const r=(Vi(t)?[t]:Pi(t)).reduce((o,i)=>to(o)?o:o[i],e);return Vr(r)||r===e?Vr(e[t])?n:e[t]:r},Sr=e=>typeof e=="boolean",Nn=e=>typeof e=="function",hs=(e,t,n)=>{let r=-1;const o=Vi(t)?[t]:Pi(t),i=o.length,a=i-1;for(;++r<i;){const c=o[r];let u=n;if(r!==a){const d=e[c];u=$t(d)||Array.isArray(d)?d:isNaN(+o[r+1])?{}:[]}if(c==="__proto__"||c==="constructor"||c==="prototype")return;e[c]=u,e=e[c]}};const gs={BLUR:"blur",CHANGE:"change"},ys={all:"all"},Fi=S.createContext(null);Fi.displayName="HookFormControlContext";const no=()=>S.useContext(Fi);var ad=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const a=i;return t._proxyFormState[a]!==ys.all&&(t._proxyFormState[a]=!r||ys.all),n&&(n[a]=!0),e[a]}});return o};const zi=typeof window<"u"?S.useLayoutEffect:S.useEffect;function ld(e){const t=no(),{control:n=t,disabled:r,name:o,exact:i}=e||{},[a,c]=S.useState(n._formState),u=S.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return zi(()=>n._subscribe({name:o,formState:u.current,exact:i,callback:d=>{!r&&c({...n._formState,...d})}}),[o,r,i]),S.useEffect(()=>{u.current.isValid&&n._setValid(!0)},[n]),S.useMemo(()=>ad(a,n,u.current,!1),[a,n])}var cd=e=>typeof e=="string",bs=(e,t,n,r,o)=>cd(e)?Ve(n,e,o):Array.isArray(e)?e.map(i=>Ve(n,i)):n,vs=e=>to(e)||!Ii(e);function In(e,t,n=new WeakSet){if(vs(e)||vs(t))return Object.is(e,t);if(sn(e)&&sn(t))return Object.is(e.getTime(),t.getTime());const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const i of r){const a=e[i];if(!o.includes(i))return!1;if(i!=="ref"){const c=t[i];if(sn(a)&&sn(c)||($t(a)||Array.isArray(a))&&($t(c)||Array.isArray(c))?!In(a,c,n):!Object.is(a,c))return!1}}return!0}function ud(e){const t=no(),{control:n=t,name:r,defaultValue:o,disabled:i,exact:a,compute:c}=e||{},u=S.useRef(o),d=S.useRef(c),m=S.useRef(void 0),g=S.useRef(n),y=S.useRef(r);d.current=c;const[h,b]=S.useState(()=>{const C=n._getWatch(r,u.current);return d.current?d.current(C):C}),f=S.useCallback(C=>{const v=bs(r,n._names,C||n._formValues,!1,u.current);return d.current?d.current(v):v},[n._formValues,n._names,r]),x=S.useCallback(C=>{if(!i){const v=bs(r,n._names,C||n._formValues,!1,u.current);if(d.current){const T=d.current(v);In(T,m.current)||(b(T),m.current=T)}else b(v)}},[n._formValues,n._names,i,r]);zi(()=>((g.current!==n||!In(y.current,r))&&(g.current=n,y.current=r,x()),n._subscribe({name:r,formState:{values:!0},exact:a,callback:C=>{x(C.values)}})),[n,a,r,x]),S.useEffect(()=>n._removeUnmounted());const _=g.current!==n,w=y.current,E=S.useMemo(()=>{if(i)return null;const C=!_&&!In(w,r);return _||C?f():null},[i,_,r,w,f]);return E!==null?E:h}function dd(e){const t=no(),{name:n,disabled:r,control:o=t,shouldUnregister:i,defaultValue:a,exact:c=!0}=e,u=rd(o._names.array,n),d=S.useMemo(()=>Ve(o._formValues,n,Ve(o._defaultValues,n,a)),[o,n,a]),m=ud({control:o,name:n,defaultValue:d,exact:c}),g=ld({control:o,name:n,exact:c}),y=S.useRef(e),h=S.useRef(void 0),b=S.useRef(o.register(n,{...e.rules,value:m,...Sr(e.disabled)?{disabled:e.disabled}:{}}));y.current=e;const f=S.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ve(g.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ve(g.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ve(g.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ve(g.validatingFields,n)},error:{enumerable:!0,get:()=>Ve(g.errors,n)}}),[g,n]),x=S.useCallback(C=>b.current.onChange({target:{value:nd(C),name:n},type:gs.CHANGE}),[n]),_=S.useCallback(()=>b.current.onBlur({target:{value:Ve(o._formValues,n),name:n},type:gs.BLUR}),[n,o._formValues]),w=S.useCallback(C=>{const v=Ve(o._fields,n);v&&v._f&&C&&(v._f.ref={focus:()=>Nn(C.focus)&&C.focus(),select:()=>Nn(C.select)&&C.select(),setCustomValidity:T=>Nn(C.setCustomValidity)&&C.setCustomValidity(T),reportValidity:()=>Nn(C.reportValidity)&&C.reportValidity()})},[o._fields,n]),E=S.useMemo(()=>({name:n,value:m,...Sr(r)||g.disabled?{disabled:g.disabled||r}:{},onChange:x,onBlur:_,ref:w}),[n,r,g.disabled,x,_,w,m]);return S.useEffect(()=>{const C=o._options.shouldUnregister||i,v=h.current;v&&v!==n&&!u&&o.unregister(v),o.register(n,{...y.current.rules,...Sr(y.current.disabled)?{disabled:y.current.disabled}:{}});const T=(A,k)=>{const j=Ve(o._fields,A);j&&j._f&&(j._f.mount=k)};if(T(n,!0),C){const A=Bi(Ve(o._options.defaultValues,n,y.current.defaultValue));hs(o._defaultValues,n,A),Vr(Ve(o._formValues,n))&&hs(o._formValues,n,A)}return!u&&o.register(n),h.current=n,()=>{(u?C&&!o._state.action:C)?o.unregister(n):T(n,!1)}},[n,o,u,i]),S.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),S.useMemo(()=>({field:E,formState:g,fieldState:f}),[E,g,f])}const mn=e=>e.render(dd(e)),fd=S.createContext(null);fd.displayName="HookFormContext";const pd="_textInputContainer_1o3iy_2",md="_labelContainer_1o3iy_5",hd="_inputContainer_1o3iy_8",gd="_showPasswordButton_1o3iy_14",yd="_forgotPassButton_1o3iy_26",en={textInputContainer:pd,labelContainer:md,inputContainer:hd,showPasswordButton:gd,forgotPassButton:yd},bd="_errorMessage_1xiyb_2",vd={errorMessage:bd},Kt=({errorMessage:e,errorColor:t="red",containerStyles:n})=>{const{t:r}=oe.useTranslation();return l.jsx("div",{className:vd.errorMessage,style:{color:t,...n},children:e?r(e):""})},xd="data:image/svg+xml,%3csvg%20width='26'%20height='14'%20viewBox='0%200%2026%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205763'%3e%3cpath%20id='Vector'%20d='M12.95%200C7.659%200%202.84899%202.3634%200.0832465%206.31776C-0.0277488%206.47963%20-0.0277488%206.68776%200.0832465%206.84962C2.84439%2010.804%207.65437%2013.1628%2012.95%2013.1628C18.2456%2013.1628%2023.0556%2010.804%2025.8168%206.84962C25.9278%206.68775%2025.9278%206.47963%2025.8168%206.31776C23.051%202.36339%2018.241%200%2012.95%200ZM12.95%2010.8132C10.619%2010.8132%208.71812%208.91238%208.71812%206.58139C8.71812%204.25041%2010.619%202.34951%2012.95%202.34951C15.281%202.34951%2017.1819%204.25038%2017.1819%206.58139C17.1819%208.91241%2015.281%2010.8132%2012.95%2010.8132Z'%20fill='white'/%3e%3cpath%20id='Vector_2'%20d='M12.9514%209.88816C14.7777%209.88816%2016.2583%208.40763%2016.2583%206.58129C16.2583%204.75495%2014.7777%203.27441%2012.9514%203.27441C11.1251%203.27441%209.64453%204.75495%209.64453%206.58129C9.64453%208.40763%2011.1251%209.88816%2012.9514%209.88816Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",Cd="data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%200%2026%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205995'%3e%3cpath%20id='Vector'%20d='M12.9837%206.40625C11.1707%206.40625%209.69531%207.88162%209.69531%209.69462C9.69531%2010.0276%209.74618%2010.3514%209.83869%2010.652C9.93579%2010.9711%2010.0792%2011.2718%2010.2642%2011.54L14.8291%206.97512C14.5562%206.79013%2014.2602%206.64676%2013.9411%206.54962C13.6404%206.45712%2013.3167%206.40625%2012.9837%206.40625Z'%20fill='white'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_2'%20d='M19.4938%204.44079C19.318%204.36678%2019.1191%204.40841%2018.985%204.53792L16.3534%207.16955V7.17415C16.543%207.42855%2016.7049%207.70604%2016.8344%208.00204C17.0656%208.52004%2017.1905%209.09354%2017.1905%209.69478C17.1905%2012.0165%2015.3035%2013.9035%2012.9818%2013.9035C12.3805%2013.9035%2011.807%2013.7787%2011.289%2013.5474C10.993%2013.4179%2010.7155%2013.256%2010.4611%2013.0664H10.4565L8.52788%2014.995C8.41225%2015.1153%208.36601%2015.2864%208.41225%2015.4437C8.45389%2015.6055%208.57875%2015.7304%208.74063%2015.772C10.0958%2016.1189%2011.511%2016.2947%2012.9494%2016.2947C18.245%2016.2947%2023.055%2013.9359%2025.8161%209.98153C25.9271%209.82429%2025.9271%209.61153%2025.8161%209.45427C24.2991%207.27591%2022.1115%205.54154%2019.4938%204.44079Z'%20fill='white'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_3'%20d='M12.9843%2012.979C14.7973%2012.979%2016.268%2011.5082%2016.268%209.6952C16.268%209.35295%2016.2171%209.0292%2016.12%208.71933C16.0229%208.4002%2015.8749%208.10419%2015.6899%207.83594L11.125%2012.4008C11.3933%2012.5858%2011.6893%2012.7338%2012.0084%2012.831C12.3183%2012.9281%2012.6466%2012.979%2012.9843%2012.979Z'%20fill='white'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_4'%20d='M9.12048%2011.3694C8.89386%2010.856%208.769%2010.2918%208.769%209.69516C8.769%207.3734%2010.656%205.48178%2012.9824%205.48178C13.579%205.48178%2014.1433%205.60667%2014.6566%205.83329C14.9526%205.95815%2015.2347%206.12004%2015.4891%206.31428L17.3808%204.42267L21.0114%200.792026C21.1918%200.611646%2021.1918%200.315664%2021.0114%200.135285C20.831%20-0.0450949%2020.535%20-0.0450949%2020.3546%200.135285L16.8951%203.59478C15.6186%203.28491%2014.2959%203.13228%2012.95%203.13228C7.65437%203.13228%202.84439%205.49565%200.0832465%209.45464C-0.0277488%209.61191%20-0.0277488%209.82467%200.0832465%209.9819C1.48001%2011.9845%203.44563%2013.6079%205.78125%2014.7087L3.37162%2017.1183C3.19127%2017.2986%203.19127%2017.5947%203.37162%2017.775C3.46412%2017.8629%203.57975%2017.9091%203.7%2017.9091C3.82026%2017.9091%203.93588%2017.8629%204.02839%2017.775L9.60151%2012.2019C9.40727%2011.9429%209.24536%2011.6654%209.12048%2011.3694Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/g%3e%3c/svg%3e",hn=qr.create(e=>({errorColor:"red"})),Pr=({input:e,reactHookFormInstance:t})=>{const{code:n,type:r,label:o,maxLength:i,required:a,validateFunction:c,placeholder:u,errorColor:d="red",width:m=325,onClickForgotPass:g=()=>{console.log("Click on forgot password")},forgotPassLabel:y="forgot-password",onChangeExtraFunction:h=()=>{}}=e,{t:b}=oe.useTranslation(),{control:f,trigger:x,clearErrors:_}=t,{errorColor:w}=hn(T=>T),[E,C]=S.useState(!1);S.useRef(a);const v=()=>r?r==="password"&&E?"text":r:"text";return l.jsx(mn,{name:n,control:f,rules:{required:a?`${b(o)} ${b("errorMessages.required")}`:!1,maxLength:i||void 0,validate:c||void 0},render:({field:T,fieldState:A})=>{var M;const{onChange:k,...j}=T,D=p=>{k(p),h&&h(p)};return l.jsxs("div",{className:en.textInputContainer,children:[l.jsxs("h3",{className:en.labelContainer,children:[b(o)," ",a&&l.jsx("label",{style:{color:A.error?d:""},children:"*"})]}),l.jsxs("div",{style:{position:"relative",width:m},className:en.inputContainer,children:[l.jsx("input",{...j,type:v(),onChange:D,placeholder:u?b(u):"",maxLength:i||void 0}),r=="password"&&l.jsx("button",{onClick:()=>C(!E),type:"button",className:en.showPasswordButton,children:l.jsx("img",{src:E?Cd:xd,alt:b("show-password")})})]}),r=="password"&&l.jsx("div",{className:en.forgotPassButton,children:l.jsx("button",{onClick:g,children:b(y)})}),l.jsx(Kt,{errorMessage:(M=A.error)==null?void 0:M.message,errorColor:w||d})]})}})},_d="_inputsContainer_10t9s_2",Pt={inputsContainer:_d},wd="_selectInputContainer_zzz6o_2",Sd="_labelContainer_zzz6o_6",Td="_selectWrapper_zzz6o_9",jd="_inputContainer_zzz6o_15",kd="_selectInput_zzz6o_2",$d="_option_zzz6o_29",Ed="_dropdownArrow_zzz6o_32",De={selectInputContainer:wd,labelContainer:Sd,selectWrapper:Td,inputContainer:jd,selectInput:kd,option:$d,dropdownArrow:Ed},xs="data:image/svg+xml,%3csvg%20width='19'%20height='10'%20viewBox='0%200%2019%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector%20311'%20d='M1%201.09961L8.79289%208.8925C9.18342%209.28303%209.81658%209.28303%2010.2071%208.8925L18%201.09961'%20stroke='%23605B56'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e",qi=({input:e,reactHookFormInstance:t,onChange:n})=>{const{code:r,type:o,label:i,maxLength:a,required:c,validateFunction:u,placeholder:d,errorColor:m="red",width:g=325,options:y=[]}=e,{t:h}=oe.useTranslation(),{control:b,trigger:f,clearErrors:x}=t||{},{errorColor:_}=hn(C=>C);S.useRef(c);const[w,E]=S.useState(null);return S.useEffect(()=>{w&&n&&n(w)},[w,n]),t?l.jsx(mn,{name:r,control:b,rules:{required:c?`${h(i)} ${h("errorMessages.required")}`:!1,validate:u?C=>{let v=t.getValues();return u(C,v)}:void 0},render:({field:C,fieldState:v})=>{var A;const T=y.find(k=>k.value===C.value);return l.jsxs("div",{className:De.selectInputContainer,children:[i&&l.jsxs("h3",{className:De.labelContainer,children:[h(i)," ",c&&l.jsx("label",{style:{color:v.error?m:""},children:"*"})]}),l.jsxs("div",{className:De.selectWrapper,children:[l.jsxs("div",{className:De.inputContainer,style:{width:g},children:[l.jsxs("select",{...C,value:C.value??"",onChange:k=>{const j=k.target.value,D=y.every(M=>typeof M.value=="number")?Number(j):j;C.onChange(D)},className:De.selectInput,children:[l.jsx("option",{value:"",disabled:!0,hidden:!0,children:h(d||"selectOption")}),y.map((k,j)=>l.jsx("option",{value:k.value,className:De.option,children:h(k.label)},j))]}),l.jsx("img",{src:xs,alt:"Open",className:De.dropdownArrow})]}),T&&T.description&&l.jsx("div",{className:De.optionDescription,children:h(T.description)})]}),l.jsx(Kt,{errorMessage:(A=v.error)==null?void 0:A.message,errorColor:_||m})]})}}):l.jsxs("div",{className:De.selectInputContainer,children:[i&&l.jsxs("h3",{className:De.labelContainer,children:[h(i)," ",c&&l.jsx("label",{children:"*"})]}),l.jsxs("div",{className:De.inputContainer,style:{width:g},children:[l.jsxs("select",{value:w??"",onChange:C=>{const v=C.target.value,T=y.every(A=>typeof A.value=="number")?Number(v):v;E(T)},className:De.selectInput,children:[l.jsx("option",{value:"",disabled:!0,hidden:!0,children:h(d||"selectOption")}),y.map((C,v)=>l.jsx("option",{value:C.value,className:De.option,children:h(C.label)},v))]}),l.jsx("img",{src:xs,alt:"Open",className:De.dropdownArrow})]}),(()=>{const C=y.find(v=>v.value===w);return C&&C.description?l.jsx("div",{className:De.optionDescription,children:h(C.description)}):null})()]})},Nd="_radioButtonContainer_1e994_2",Od="_wholeInputContainer_1e994_5",Ad="_questionContainer_1e994_27",Ld="_radioQuestion_1e994_59",Md="_inputContainer_1e994_63",Rd="_radioInput_1e994_93",wt={radioButtonContainer:Nd,wholeInputContainer:Od,questionContainer:Ad,radioQuestion:Ld,inputContainer:Md,radioInput:Rd},Wi=({input:e,reactHookFormInstance:t})=>{const{code:n,label:r,required:o,validateFunction:i,errorColor:a="red",options:c=[],multi:u=!1}=e,{t:d}=oe.useTranslation(),{control:m,trigger:g,clearErrors:y}=t,{errorColor:h}=hn(x=>x),b=({options:x,onChange:_,actualValue:w})=>{if(u&&w&&w.length>0){let E=w.filter(C=>C!==x);_(E)}},f=({options:x,onChange:_,actualValue:w})=>{u?w&&w.length>0?_([...w,x]):_([x]):_(x)};return S.useRef(o),l.jsx(mn,{control:m,name:n,rules:{validate:x=>o&&(x==null||x==="")?`${d(r)} ${d("errorMessages.required")}`:null},render:({formState:{errors:x},field:{onChange:_,onBlur:w,value:E,ref:C},fieldState:v})=>{var T;return l.jsx("div",{id:n+"id",className:wt.radioButtonContainer,children:l.jsxs("div",{className:wt.wholeInputContainer,children:[r&&l.jsx("div",{className:wt.questionContainer,children:l.jsxs("h3",{htmlFor:n+"id",className:`${wt.radioQuestion} ${o&&wt.required}`,children:[d(r)," ",o&&l.jsx("label",{style:{color:v.error?a:""},children:"*"})]})}),l.jsxs("div",{className:wt.inputContainer,children:[c.map(({label:A,value:k,disabled:j=!1,italicLabel:D},M)=>{const p=E&&u?E.isArray&&(E==null?void 0:E.length)>0&&E.some(N=>N===k):E===k;return l.jsxs("label",{children:[l.jsx("input",{type:"radio",checked:p,onChange:()=>{u?p?b({actualValue:E,options:c,onChange:_}):f({actualValue:E,options:c,onChange:_}):_(k)},className:wt.radioInput}),l.jsx("span",{className:"radio-custom"}),d(A)]},`inputRadio ${M}`)}),l.jsx(Kt,{errorMessage:(T=v.error)==null?void 0:T.message,errorColor:h||a})]})]})})}})},Dd="_rankingSliderContainer_1dvpb_2",Id="_labelContainer_1dvpb_6",Bd="_inputContainer_1dvpb_10",Vd="_slider_1dvpb_20",Pd="_thumb_1dvpb_27",Fd="_labels_1dvpb_37",zd="_minLabel_1dvpb_67",qd="_maxLabel_1dvpb_68",$e={rankingSliderContainer:Dd,labelContainer:Id,inputContainer:Bd,slider:Vd,thumb:Pd,labels:Fd,minLabel:zd,maxLabel:qd},ro=({input:e,reactHookFormInstance:t,onChange:n})=>{const{code:r,label:o,minValue:i=1,maxValue:a=5,defValue:c=3,thumbColor:u="#B32F5D",required:d,errorColor:m="red",labelWidth:g="300px",sliderWidth:y="300px",minText:h,maxText:b,disabled:f=!1,marks:x=Array.from({length:a-i+1},(j,D)=>i+D),showMarksNumber:_=!0}=e,{t:w}=oe.useTranslation(),{control:E,trigger:C,clearErrors:v}=t||{};S.useRef(d);const{errorColorForm:T}=hn(j=>j),[A,k]=S.useState(c);return t?l.jsx(mn,{name:r,control:E,defaultValue:c,rules:{required:d?`${w(o)} ${w("errorMessages.required")}`:!1},render:({field:j,fieldState:D})=>{var M;return l.jsxs("div",{className:$e.rankingSliderContainer,style:{gridTemplateColumns:`${o&&g} ${y}`},children:[o&&l.jsx("p",{className:$e.labelContainer,style:{color:f?"#CCCCCC":"#605B56"},children:w(o)}),l.jsxs("div",{className:$e.inputContainer,children:[h&&l.jsx("div",{className:$e.minLabel,children:w(h)}),l.jsxs("div",{children:[l.jsx(Or,{min:i,max:a,step:1,value:j.value??c,onChange:p=>{j.onChange(p)},marks:!0,className:$e.slider,thumbClassName:$e.thumb,renderThumb:p=>l.jsx("div",{...p,style:{...p.style,backgroundColor:f?"#CCCCCC":u,cursor:f?"not-allowed":"grab"}}),trackClassName:$e.track,markClassName:$e.mark,disabled:f}),x&&l.jsx("div",{className:$e.labels,children:x.map(p=>l.jsx("span",{children:_&&p},p))})]}),b&&l.jsx("div",{className:$e.maxLabel,children:w(b)})]}),l.jsx(Kt,{errorMessage:(M=D.error)==null?void 0:M.message,errorColor:T||m})]})}}):l.jsxs("div",{className:$e.rankingSliderContainer,style:{gridTemplateColumns:`${o&&g} ${y}`},children:[o&&l.jsx("p",{className:$e.labelContainer,style:{color:f?"#CCCCCC":"#605B56"},children:w(o)}),l.jsxs("div",{className:$e.inputContainer,children:[h&&l.jsx("div",{className:$e.minLabel,children:w(h)}),l.jsxs("div",{children:[l.jsx(Or,{min:i,max:a,step:1,value:A,onChange:j=>{k(j),n&&n(j)},marks:!0,className:$e.slider,thumbClassName:$e.thumb,renderThumb:j=>l.jsx("div",{...j,style:{...j.style,backgroundColor:f?"#CCCCCC":u,cursor:f?"not-allowed":"grab"}}),trackClassName:$e.track,markClassName:$e.mark,disabled:f}),x&&l.jsx("div",{className:$e.labels,children:x.map(j=>l.jsx("span",{children:_&&j},j))})]}),b&&l.jsx("div",{className:$e.maxLabel,children:w(b)})]})]})};ro.propTypes={input:s.shape({code:s.string,label:s.string,minValue:s.number,maxValue:s.number,defValue:s.number,thumbColor:s.string,required:s.bool,errorColor:s.string,labelWidth:s.string,sliderWidth:s.string,minText:s.string,maxText:s.string}),reactHookFormInstance:s.object};const Wd="_textDescriptionContainer_163pc_2",Ud="_textDescriptionText_163pc_6",Cs={textDescriptionContainer:Wd,textDescriptionText:Ud},Zd=({input:e,inputContainerStyles:t})=>l.jsx("div",{className:Cs.textDescriptionContainer,style:{margin:"10px 0",...t},children:l.jsx("p",{className:Cs.textDescriptionText,children:e.text})}),tn=({inputs:e,inputContainerStyles:t,reactHookFormInstance:n})=>{const{watch:r}=n,o=r(),i=S.useMemo(()=>e==null?void 0:e.map(a=>{const c=typeof a.required=="function"?a.required(o):a.required;return{...a,required:c}}),[e,o]);return l.jsx("div",{className:Pt.inputsContainer,children:i==null?void 0:i.map((a,c)=>{const{inputType:u}=a;switch(u){case Vt.text:return l.jsx("div",{className:Pt.inputContainer,style:{...t},children:l.jsx(Pr,{input:a,reactHookFormInstance:n})},`${a.code}${c}`);case Vt.password:return l.jsx("div",{className:Pt.inputContainer,style:{...t},children:l.jsx(Pr,{input:a,reactHookFormInstance:n})},`${a.code}${c}`);case Vt.select:return l.jsx("div",{className:Pt.inputContainer,style:{...t},children:l.jsx(qi,{input:a,reactHookFormInstance:n})},`${a.code}${c}`);case Vt.radioList:return l.jsx("div",{className:Pt.inputContainer,style:{...t},children:l.jsx(Wi,{input:a,reactHookFormInstance:n})},`${a.code}${c}`);case Vt.rankingSlider:return l.jsx("div",{className:Pt.inputContainer,style:{...t},children:l.jsx(ro,{input:a,reactHookFormInstance:n})},`${a.code}${c}`);case Vt.textDescription:return l.jsx(Zd,{input:a,inputContainerStyles:t},`${a.code}${c}`);default:return l.jsx("div",{children:l.jsx("h4",{children:"Default"})},`${a.code}${c}`)}})})},Hd="_categorySelector_1guuv_2",Kd="_sectionItemActive_1guuv_16",Gd="_sectionItem_1guuv_16",Yd="_sectionItemError_1guuv_32",nn={categorySelector:Hd,sectionItemActive:Kd,sectionItem:Gd,sectionItemError:Yd},Fr=({categories:e,onChange:t,activeCategory:n,activeColor:r,containerStyles:o={},categoriesWithErrors:i=[]})=>{const{t:a}=oe.useTranslation(),c=u=>{t(u)};return l.jsx("div",{className:nn.categorySelector,style:o?{...o}:{},children:e.map((u,d)=>{const{id:m,label:g}=u,y=n==m,h=i.includes(m);return l.jsx("button",{className:`${nn.sectionItem} ${y?nn.sectionItemActive:""} ${h?nn.sectionItemError:""}`,type:"button",style:{backgroundColor:y?r:"inherit"},onClick:()=>c(m),children:l.jsx("span",{style:{color:y?"white":"inherit"},className:nn.sectionLabel,children:a(g)})},`keySection${d}`)})})},Xd=({reactHookFormInstance:e,formObject:t,CategoryComponent:n,inputContainerStyles:r,generalError:o,errorColor:i="red",submitButtonLabel:a="Submit",submitButtonStyles:c={width:325},showCategorySelector:u=!0,defaultCategory:d=null,categoryLabel:m="Select Category",activeCategory:g=null,activeCategoryColor:y="#b32f5d",categoriesWithErrors:h=[],onSubmit:b=f=>console.log("Form submitted with: ",f)})=>{const{t:f}=oe.useTranslation(),{handleSubmit:x,control:_}=e;S.useEffect(()=>{i&&hn.setState(()=>({errorColor:i}))},[i]);const w=S.useMemo(()=>t?t.filter(j=>j.category).map(j=>{var D;return{id:j.categoryId,label:j.category,hasSubcategories:((D=j.subcategories)==null?void 0:D.length)>0}}):[],[t]),E=j=>{const D=t==null?void 0:t.find(M=>M.categoryId===j);return(D==null?void 0:D.subcategories)||[]},[C,v]=S.useState(g||d||null),[T,A]=S.useState(null);S.useEffect(()=>{!C&&w.length>0&&v(w[0].id)},[w,C]),S.useEffect(()=>{const j=E(C);!T&&(j==null?void 0:j.length)>0&&A(j[0].id)},[C,T,t]);const k=(j,D)=>{var M;if(((M=j.subcategories)==null?void 0:M.length)>0){const p=j.subcategories;return l.jsxs("div",{children:[l.jsx("div",{className:Jt.categorySelectorContainer,children:l.jsx(Fr,{activeCategory:T,categories:p,categoriesWithErrors:h,onChange:N=>A(N),activeColor:y})},j.categoryId),p.map((N,$)=>{const P=!T||N.id===T;return n?l.jsx("div",{style:{display:P?"block":"none",width:"100%"},children:l.jsx(n,{title:N.label,children:l.jsx(tn,{inputs:N.inputs,control:_,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e})},N.id)},`${N.id}${$}`):l.jsxs("div",{style:{width:"100%",display:P?"block":"none"},children:[l.jsx("h3",{style:{marginBottom:15},children:f(N.label)}),l.jsx(tn,{inputs:N.inputs,control:_,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e})]},`${N.id}${$}`)})]})}return n?l.jsx(n,{title:j.category,children:l.jsx(tn,{inputs:j.inputs,control:_,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e})},j.categoryId):l.jsxs("div",{style:{width:"100%"},children:[l.jsx("h2",{children:f(j.category)}),l.jsx(tn,{inputs:j.inputs,control:_,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e})]},j.categoryId)};return l.jsxs("form",{className:Jt.formContainer,onSubmit:x(b),children:[u&&w.length>0&&l.jsx("div",{className:Jt.categorySelectorContainer,children:l.jsx(Fr,{activeCategory:C,categories:w,categoriesWithErrors:h,onChange:j=>{v(j),A(null)},activeColor:y})}),l.jsx("div",{className:Jt.formObjectContainer,children:t==null?void 0:t.map((j,D)=>{const M=j.categoryId===C;return j.category?l.jsx("div",{style:{width:"100%",display:M?"block":"none"},children:k(j)},j.categoryId):l.jsx(tn,{inputs:j.inputs,control:_,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e},`no-category-${D}`)})}),l.jsxs("div",{className:Jt.buttonContainer,children:[l.jsx(un,{containerStyles:c,type:"submit",children:f(a)}),l.jsx(Kt,{errorMessage:o,errorColor:i})]})]})},Qd="_overlay_mnd4j_2",Jd="_modal_mnd4j_15",ef="_closeButton_mnd4j_29",tf="_icon_mnd4j_39",nf="_message_mnd4j_45",rf="_submessage_mnd4j_51",of="_buttonsContainer_mnd4j_57",sf="_buttonWrapper_mnd4j_64",pt={overlay:Qd,modal:Jd,closeButton:ef,icon:tf,message:nf,submessage:rf,buttonsContainer:of,buttonWrapper:sf},Ui=({onClose:e,icon:t,message:n,submessage:r,buttons:o,maxHeight:i="450px",maxWidth:a="450px"})=>l.jsx("div",{className:pt.overlay,children:l.jsxs("div",{className:pt.modal,style:{maxHeight:i,maxWidth:a},children:[l.jsx("button",{className:pt.closeButton,onClick:e,"aria-label":"Close modal",children:"✕"}),t&&l.jsx("img",{src:t,alt:"icon",className:pt.icon}),l.jsx("p",{className:pt.message,children:n}),r&&l.jsx("p",{className:pt.submessage,children:r}),o.length>0&&l.jsx("div",{className:pt.buttonsContainer,children:o.map((c,u)=>l.jsx("div",{className:pt.buttonWrapper,children:c},u))})]})});Ui.propTypes={onClose:s.func.isRequired,icon:s.string,message:s.string.isRequired,submessage:s.string,buttons:s.arrayOf(s.node),maxHeight:s.string,maxWidth:s.string};const af="_stepsContainer_1cyua_3",lf="_stepWrapper_1cyua_9",cf="_circleContainer_1cyua_19",uf="_circle_1cyua_19",df="_active_1cyua_39",ff="_completed_1cyua_44",pf="_label_1cyua_50",mf="_labelActive_1cyua_56",hf="_connector_1cyua_61",st={stepsContainer:af,stepWrapper:lf,circleContainer:cf,circle:uf,active:df,completed:ff,label:pf,labelActive:mf,connector:hf},oo=({steps:e,activeColor:t})=>l.jsx("div",{className:st.stepsContainer,children:e.map((n,r)=>{const o=n.status==="active",i=n.status==="completed";return l.jsxs("div",{className:st.stepWrapper,children:[l.jsxs("div",{className:st.circleContainer,children:[l.jsx("div",{className:`${st.circle}
78
+ export default theme;`}function us(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Vu=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function Fu(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:_i(t,Vu(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${us(n)})`:tr(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${us(n)})`:er(t,n)}})}function Dr(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:c={},shape:u,colorSpace:d,...m}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://v7.mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":jt(20));const g=Qr({...i,colorSpace:d}),y=gi(e);let h=qe(y,{mixins:ju(y.breakpoints,r),palette:g,shadows:Lu.slice(),typography:Eu(g,c),transitions:Du(a),zIndex:{...Bu}});if(h=qe(h,m),h=t.reduce((b,f)=>qe(b,f),h),process.env.NODE_ENV!=="production"){const b=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(x,_)=>{let S;for(S in x){const E=x[S];if(b.includes(S)&&Object.keys(E).length>0){if(process.env.NODE_ENV!=="production"){const C=Yr("",S);console.error([`MUI: The \`${_}\` component increases the CSS specificity of the \`${S}\` internal state.`,"You can not override it like this: ",JSON.stringify(x,null,2),"",`Instead, you need to use the '&.${C}' syntax:`,JSON.stringify({root:{[`&.${C}`]:E}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
79
+ `))}x[S]={}}}};Object.keys(h.components).forEach(x=>{const _=h.components[x].styleOverrides;_&&x.startsWith("Mui")&&f(_,x)})}return h.unstable_sxConfig={...Qn,...m==null?void 0:m.unstable_sxConfig},h.unstable_sx=function(f){return Ut({sx:f,theme:this})},h.toRuntimeSource=ki,Fu(h),h}function zu(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const qu=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=zu(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function ji(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function $i(e){return e==="dark"?qu:[]}function Wu(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...i}=e,a=Qr({...t,colorSpace:o});return{palette:a,opacity:{...ji(a.mode),...n},overlays:r||$i(a.mode),...i}}function Uu(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const Zu=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Hu=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return Zu(e.cssVarPrefix).forEach(c=>{a[c]=n[c],delete n[c]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:i?{[i.replace("%s",t)]:a,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function Ku(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function O(e,t,n){!e[t]&&n&&(e[t]=n)}function on(e){return typeof e!="string"||!e.startsWith("hsl")?e:Ci(e)}function rt(e,t){`${t}Channel`in e||(e[`${t}Channel`]=rn(on(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
80
+ To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Gu(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Ye=e=>{try{return e()}catch{}},Yu=(e="mui")=>pu(e);function _r(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const i=o==="dark"?"dark":"light";if(!r){t[o]=Wu({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:a,...c}=Dr({...r,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[o]={...n,palette:a,opacity:{...ji(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||$i(i)},c}function Xu(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:c=Uu,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...m}=e,g=Object.keys(n)[0],y=r||(n.light&&g!=="light"?"light":g),h=Yu(i),{[y]:b,light:f,dark:x,..._}=n,S={..._};let E=b;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&(E=!0),!E)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${y}\` option is either missing or invalid.`:jt(21,y));let C;a&&(C="oklch");const v=_r(C,S,E,m,y);f&&!S.light&&_r(C,S,f,void 0,"light"),x&&!S.dark&&_r(C,S,x,void 0,"dark");let T={defaultColorScheme:y,...v,cssVarPrefix:i,colorSchemeSelector:u,rootSelector:d,getCssVar:h,colorSchemes:S,font:{...ku(v.typography),...v.font},spacing:Gu(m.spacing)};Object.keys(T.colorSchemes).forEach(I=>{const p=T.colorSchemes[I].palette,N=V=>{const W=V.split("-"),D=W[1],q=W[2];return h(V,p[D][q])};p.mode==="light"&&(O(p.common,"background","#fff"),O(p.common,"onBackground","#000")),p.mode==="dark"&&(O(p.common,"background","#000"),O(p.common,"onBackground","#fff"));function j(V,W,D){if(C){let q;return V===_t&&(q=`transparent ${((1-D)*100).toFixed(0)}%`),V===fe&&(q=`#000 ${(D*100).toFixed(0)}%`),V===pe&&(q=`#fff ${(D*100).toFixed(0)}%`),`color-mix(in ${C}, ${W}, ${q})`}return V(W,D)}if(Ku(p,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),p.mode==="light"){O(p.Alert,"errorColor",j(fe,a?h("palette-error-light"):p.error.light,.6)),O(p.Alert,"infoColor",j(fe,a?h("palette-info-light"):p.info.light,.6)),O(p.Alert,"successColor",j(fe,a?h("palette-success-light"):p.success.light,.6)),O(p.Alert,"warningColor",j(fe,a?h("palette-warning-light"):p.warning.light,.6)),O(p.Alert,"errorFilledBg",N("palette-error-main")),O(p.Alert,"infoFilledBg",N("palette-info-main")),O(p.Alert,"successFilledBg",N("palette-success-main")),O(p.Alert,"warningFilledBg",N("palette-warning-main")),O(p.Alert,"errorFilledColor",Ye(()=>p.getContrastText(p.error.main))),O(p.Alert,"infoFilledColor",Ye(()=>p.getContrastText(p.info.main))),O(p.Alert,"successFilledColor",Ye(()=>p.getContrastText(p.success.main))),O(p.Alert,"warningFilledColor",Ye(()=>p.getContrastText(p.warning.main))),O(p.Alert,"errorStandardBg",j(pe,a?h("palette-error-light"):p.error.light,.9)),O(p.Alert,"infoStandardBg",j(pe,a?h("palette-info-light"):p.info.light,.9)),O(p.Alert,"successStandardBg",j(pe,a?h("palette-success-light"):p.success.light,.9)),O(p.Alert,"warningStandardBg",j(pe,a?h("palette-warning-light"):p.warning.light,.9)),O(p.Alert,"errorIconColor",N("palette-error-main")),O(p.Alert,"infoIconColor",N("palette-info-main")),O(p.Alert,"successIconColor",N("palette-success-main")),O(p.Alert,"warningIconColor",N("palette-warning-main")),O(p.AppBar,"defaultBg",N("palette-grey-100")),O(p.Avatar,"defaultBg",N("palette-grey-400")),O(p.Button,"inheritContainedBg",N("palette-grey-300")),O(p.Button,"inheritContainedHoverBg",N("palette-grey-A100")),O(p.Chip,"defaultBorder",N("palette-grey-400")),O(p.Chip,"defaultAvatarColor",N("palette-grey-700")),O(p.Chip,"defaultIconColor",N("palette-grey-700")),O(p.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),O(p.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),O(p.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),O(p.LinearProgress,"primaryBg",j(pe,a?h("palette-primary-main"):p.primary.main,.62)),O(p.LinearProgress,"secondaryBg",j(pe,a?h("palette-secondary-main"):p.secondary.main,.62)),O(p.LinearProgress,"errorBg",j(pe,a?h("palette-error-main"):p.error.main,.62)),O(p.LinearProgress,"infoBg",j(pe,a?h("palette-info-main"):p.info.main,.62)),O(p.LinearProgress,"successBg",j(pe,a?h("palette-success-main"):p.success.main,.62)),O(p.LinearProgress,"warningBg",j(pe,a?h("palette-warning-light"):p.warning.main,.62)),O(p.Skeleton,"bg",C?j(_t,a?h("palette-text-primary"):p.text.primary,.11):`rgba(${N("palette-text-primaryChannel")} / 0.11)`),O(p.Slider,"primaryTrack",j(pe,a?h("palette-primary-main"):p.primary.main,.62)),O(p.Slider,"secondaryTrack",j(pe,a?h("palette-secondary-main"):p.secondary.main,.62)),O(p.Slider,"errorTrack",j(pe,a?h("palette-error-main"):p.error.main,.62)),O(p.Slider,"infoTrack",j(pe,a?h("palette-info-main"):p.info.main,.62)),O(p.Slider,"successTrack",j(pe,a?h("palette-success-main"):p.success.main,.62)),O(p.Slider,"warningTrack",j(pe,a?h("palette-warning-main"):p.warning.main,.62));const V=C?j(fe,a?h("palette-background-default"):p.background.default,.6825):En(p.background.default,.8);O(p.SnackbarContent,"bg",V),O(p.SnackbarContent,"color",Ye(()=>C?Ir.text.primary:p.getContrastText(V))),O(p.SpeedDialAction,"fabHoverBg",En(p.background.paper,.15)),O(p.StepConnector,"border",N("palette-grey-400")),O(p.StepContent,"border",N("palette-grey-400")),O(p.Switch,"defaultColor",N("palette-common-white")),O(p.Switch,"defaultDisabledColor",N("palette-grey-100")),O(p.Switch,"primaryDisabledColor",j(pe,a?h("palette-primary-main"):p.primary.main,.62)),O(p.Switch,"secondaryDisabledColor",j(pe,a?h("palette-secondary-main"):p.secondary.main,.62)),O(p.Switch,"errorDisabledColor",j(pe,a?h("palette-error-main"):p.error.main,.62)),O(p.Switch,"infoDisabledColor",j(pe,a?h("palette-info-main"):p.info.main,.62)),O(p.Switch,"successDisabledColor",j(pe,a?h("palette-success-main"):p.success.main,.62)),O(p.Switch,"warningDisabledColor",j(pe,a?h("palette-warning-main"):p.warning.main,.62)),O(p.TableCell,"border",j(pe,_t(a?h("palette-divider"):p.divider,1),.88)),O(p.Tooltip,"bg",j(_t,a?h("palette-grey-700"):p.grey[700],.92))}if(p.mode==="dark"){O(p.Alert,"errorColor",j(pe,a?h("palette-error-light"):p.error.light,.6)),O(p.Alert,"infoColor",j(pe,a?h("palette-info-light"):p.info.light,.6)),O(p.Alert,"successColor",j(pe,a?h("palette-success-light"):p.success.light,.6)),O(p.Alert,"warningColor",j(pe,a?h("palette-warning-light"):p.warning.light,.6)),O(p.Alert,"errorFilledBg",N("palette-error-dark")),O(p.Alert,"infoFilledBg",N("palette-info-dark")),O(p.Alert,"successFilledBg",N("palette-success-dark")),O(p.Alert,"warningFilledBg",N("palette-warning-dark")),O(p.Alert,"errorFilledColor",Ye(()=>p.getContrastText(p.error.dark))),O(p.Alert,"infoFilledColor",Ye(()=>p.getContrastText(p.info.dark))),O(p.Alert,"successFilledColor",Ye(()=>p.getContrastText(p.success.dark))),O(p.Alert,"warningFilledColor",Ye(()=>p.getContrastText(p.warning.dark))),O(p.Alert,"errorStandardBg",j(fe,a?h("palette-error-light"):p.error.light,.9)),O(p.Alert,"infoStandardBg",j(fe,a?h("palette-info-light"):p.info.light,.9)),O(p.Alert,"successStandardBg",j(fe,a?h("palette-success-light"):p.success.light,.9)),O(p.Alert,"warningStandardBg",j(fe,a?h("palette-warning-light"):p.warning.light,.9)),O(p.Alert,"errorIconColor",N("palette-error-main")),O(p.Alert,"infoIconColor",N("palette-info-main")),O(p.Alert,"successIconColor",N("palette-success-main")),O(p.Alert,"warningIconColor",N("palette-warning-main")),O(p.AppBar,"defaultBg",N("palette-grey-900")),O(p.AppBar,"darkBg",N("palette-background-paper")),O(p.AppBar,"darkColor",N("palette-text-primary")),O(p.Avatar,"defaultBg",N("palette-grey-600")),O(p.Button,"inheritContainedBg",N("palette-grey-800")),O(p.Button,"inheritContainedHoverBg",N("palette-grey-700")),O(p.Chip,"defaultBorder",N("palette-grey-700")),O(p.Chip,"defaultAvatarColor",N("palette-grey-300")),O(p.Chip,"defaultIconColor",N("palette-grey-300")),O(p.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),O(p.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),O(p.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),O(p.LinearProgress,"primaryBg",j(fe,a?h("palette-primary-main"):p.primary.main,.5)),O(p.LinearProgress,"secondaryBg",j(fe,a?h("palette-secondary-main"):p.secondary.main,.5)),O(p.LinearProgress,"errorBg",j(fe,a?h("palette-error-main"):p.error.main,.5)),O(p.LinearProgress,"infoBg",j(fe,a?h("palette-info-main"):p.info.main,.5)),O(p.LinearProgress,"successBg",j(fe,a?h("palette-success-main"):p.success.main,.5)),O(p.LinearProgress,"warningBg",j(fe,a?h("palette-warning-main"):p.warning.main,.5)),O(p.Skeleton,"bg",C?j(_t,a?h("palette-text-primary"):p.text.primary,.13):`rgba(${N("palette-text-primaryChannel")} / 0.13)`),O(p.Slider,"primaryTrack",j(fe,a?h("palette-primary-main"):p.primary.main,.5)),O(p.Slider,"secondaryTrack",j(fe,a?h("palette-secondary-main"):p.secondary.main,.5)),O(p.Slider,"errorTrack",j(fe,a?h("palette-error-main"):p.error.main,.5)),O(p.Slider,"infoTrack",j(fe,a?h("palette-info-main"):p.info.main,.5)),O(p.Slider,"successTrack",j(fe,a?h("palette-success-main"):p.success.main,.5)),O(p.Slider,"warningTrack",j(fe,a?h("palette-warning-light"):p.warning.main,.5));const V=C?j(pe,a?h("palette-background-default"):p.background.default,.985):En(p.background.default,.98);O(p.SnackbarContent,"bg",V),O(p.SnackbarContent,"color",Ye(()=>C?Si.text.primary:p.getContrastText(V))),O(p.SpeedDialAction,"fabHoverBg",En(p.background.paper,.15)),O(p.StepConnector,"border",N("palette-grey-600")),O(p.StepContent,"border",N("palette-grey-600")),O(p.Switch,"defaultColor",N("palette-grey-300")),O(p.Switch,"defaultDisabledColor",N("palette-grey-600")),O(p.Switch,"primaryDisabledColor",j(fe,a?h("palette-primary-main"):p.primary.main,.55)),O(p.Switch,"secondaryDisabledColor",j(fe,a?h("palette-secondary-main"):p.secondary.main,.55)),O(p.Switch,"errorDisabledColor",j(fe,a?h("palette-error-main"):p.error.main,.55)),O(p.Switch,"infoDisabledColor",j(fe,a?h("palette-info-main"):p.info.main,.55)),O(p.Switch,"successDisabledColor",j(fe,a?h("palette-success-main"):p.success.main,.55)),O(p.Switch,"warningDisabledColor",j(fe,a?h("palette-warning-light"):p.warning.main,.55)),O(p.TableCell,"border",j(fe,_t(a?h("palette-divider"):p.divider,1),.68)),O(p.Tooltip,"bg",j(_t,a?h("palette-grey-700"):p.grey[700],.92))}a||(rt(p.background,"default"),rt(p.background,"paper"),rt(p.common,"background"),rt(p.common,"onBackground"),rt(p,"divider")),Object.keys(p).forEach(V=>{const W=p[V];V!=="tonalOffset"&&!a&&W&&typeof W=="object"&&(W.main&&O(p[V],"mainChannel",rn(on(W.main))),W.light&&O(p[V],"lightChannel",rn(on(W.light))),W.dark&&O(p[V],"darkChannel",rn(on(W.dark))),W.contrastText&&O(p[V],"contrastTextChannel",rn(on(W.contrastText))),V==="text"&&(rt(p[V],"primary"),rt(p[V],"secondary")),V==="action"&&(W.active&&rt(p[V],"active"),W.selected&&rt(p[V],"selected")))})}),T=t.reduce((I,p)=>qe(I,p),T);const A={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:c,getSelector:Hu(T),enableContrastVars:a},{vars:k,generateThemeVars:$,generateStyleSheets:P}=gu(T,A);return T.vars=k,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([I,p])=>{T[I]=p}),T.generateThemeVars=$,T.generateStyleSheets=P,T.generateSpacing=function(){return hi(m.spacing,Kr(this))},T.getColorSchemeSelector=yu(u),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=c,T.unstable_sxConfig={...Qn,...m==null?void 0:m.unstable_sxConfig},T.unstable_sx=function(p){return Ut({sx:p,theme:this})},T.toRuntimeSource=ki,T}function ds(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Qr({...n===!0?{}:n.palette,mode:t})})}function Qu(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=e,c=i||"light",u=o==null?void 0:o[c],d={...o,...n?{[c]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Dr(e,...t);let m=n;"palette"in e||d[c]&&(d[c]!==!0?m=d[c].palette:c==="dark"&&(m={mode:"dark"}));const g=Dr({...e,palette:m},...t);return g.defaultColorScheme=c,g.colorSchemes=d,g.palette.mode==="light"&&(g.colorSchemes.light={...d.light!==!0&&d.light,palette:g.palette},ds(g,"dark",d.dark)),g.palette.mode==="dark"&&(g.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:g.palette},ds(g,"light",d.light)),g}return!n&&!("light"in d)&&c==="light"&&(d.light=!0),Xu({...a,colorSchemes:d,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const Ju=Qu(),e1="$$material";function Jr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const t1=e=>Jr(e)&&e!=="classes",Nt=tu({themeId:e1,defaultTheme:Ju,rootShouldForwardProp:t1}),Ht=fu;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function n1(e){return du(e)}const r1=e=>!e||!an(e);function o1(e){return typeof e.main=="string"}function s1(e,t=[]){if(!o1(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function eo(e=[]){return([,t])=>t&&s1(t,e)}function i1(e){return Yr("MuiSlider",e)}const He=Y2("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),a1=e=>{const{open:t}=e;return{offset:ht(t&&He.valueLabelOpen),circle:He.valueLabelCircle,label:He.valueLabelLabel}};function Ei(e){const{children:t,className:n,value:r}=e,o=a1(e);return t?Q.cloneElement(t,{className:t.props.className},l.jsxs(Q.Fragment,{children:[t.props.children,l.jsx("span",{className:ht(o.offset,n),"aria-hidden":!0,children:l.jsx("span",{className:o.circle,children:l.jsx("span",{className:o.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(Ei.propTypes={children:s.element.isRequired,className:s.string,value:s.node});function fs(e){return e}const l1=Nt("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Ge(n.color)}`],n.size!=="medium"&&t[`size${Ge(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(Ht(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${He.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${He.dragging}`]:{[`& .${He.thumb}, & .${He.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(eo()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),c1=Nt("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),u1=Nt("span",{name:"MuiSlider",slot:"Track"})(Ht(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(eo()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:e.lighten(e.palette[t].main,.62),borderColor:e.lighten(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:e.darken(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:e.darken(e.palette[t].main,.5)})}}}))]}))),d1=Nt("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Ge(n.color)}`],n.size!=="medium"&&t[`thumbSize${Ge(n.size)}`]]}})(Ht(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${He.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(eo()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${He.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${He.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),Ni=Nt(Ei,{name:"MuiSlider",slot:"ValueLabel"})(Ht(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${He.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${He.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})));process.env.NODE_ENV!=="production"&&(Ni.propTypes={children:s.element.isRequired,index:s.number.isRequired,open:s.bool.isRequired,value:s.node});const f1=Nt("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Jr(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(Ht(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),p1=Nt("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Jr(e)&&e!=="markLabelActive"})(Ht(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),m1=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:a,color:c,size:u}=e,d={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",c&&`color${Ge(c)}`,u&&`size${Ge(u)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",u&&`thumbSize${Ge(u)}`,c&&`thumbColor${Ge(c)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return S0(d,i1,a)},h1=({children:e})=>e,Oi=Q.forwardRef(function(t,n){const r=n1({props:t,name:"MuiSlider"}),o=k0(),{"aria-label":i,"aria-valuetext":a,"aria-labelledby":c,component:u="span",components:d={},componentsProps:m={},color:g="primary",classes:y,className:h,disableSwap:b=!1,disabled:f=!1,getAriaLabel:x,getAriaValueText:_,marks:S=!1,max:E=100,min:C=0,name:v,onChange:T,onChangeCommitted:A,orientation:k="horizontal",shiftStep:$=10,size:P="medium",step:I=1,scale:p=fs,slotProps:N,slots:j,tabIndex:V,track:W="normal",value:D,valueLabelDisplay:q="off",valueLabelFormat:te=fs,...L}=r,M={...r,isRtl:o,max:E,min:C,classes:y,disabled:f,disableSwap:b,orientation:k,marks:S,color:g,size:P,step:I,shiftStep:$,scale:p,track:W,valueLabelDisplay:q,valueLabelFormat:te},{axisProps:H,getRootProps:J,getHiddenInputProps:F,getThumbProps:K,open:re,active:ne,axis:oe,focusedThumbIndex:ee,range:G,dragging:be,marks:z,values:le,trackOffset:Ce,trackLeap:ct,getThumbStyle:De}=P0({...M,rootRef:n});M.marked=z.length>0&&z.some(je=>je.label),M.dragging=be,M.focusedThumbIndex=ee;const Ee=m1(M),tt=(j==null?void 0:j.root)??d.Root??l1,U=(j==null?void 0:j.rail)??d.Rail??c1,ae=(j==null?void 0:j.track)??d.Track??u1,me=(j==null?void 0:j.thumb)??d.Thumb??d1,_e=(j==null?void 0:j.valueLabel)??d.ValueLabel??Ni,ke=(j==null?void 0:j.mark)??d.Mark??f1,Ve=(j==null?void 0:j.markLabel)??d.MarkLabel??p1,R=(j==null?void 0:j.input)??d.Input??"input",B=(N==null?void 0:N.root)??m.root,Z=(N==null?void 0:N.rail)??m.rail,X=(N==null?void 0:N.track)??m.track,ie=(N==null?void 0:N.thumb)??m.thumb,Y=(N==null?void 0:N.valueLabel)??m.valueLabel,Ae=(N==null?void 0:N.mark)??m.mark,Re=(N==null?void 0:N.markLabel)??m.markLabel,Ne=(N==null?void 0:N.input)??m.input,We=ft({elementType:tt,getSlotProps:J,externalSlotProps:B,externalForwardedProps:L,additionalProps:{...r1(tt)&&{as:u}},ownerState:{...M,...B==null?void 0:B.ownerState},className:[Ee.root,h]}),Gt=ft({elementType:U,externalSlotProps:Z,ownerState:M,className:Ee.rail}),ia=ft({elementType:ae,externalSlotProps:X,additionalProps:{style:{...H[oe].offset(Ce),...H[oe].leap(ct)}},ownerState:{...M,...X==null?void 0:X.ownerState},className:Ee.track}),nr=ft({elementType:me,getSlotProps:K,externalSlotProps:ie,ownerState:{...M,...ie==null?void 0:ie.ownerState},className:Ee.thumb}),aa=ft({elementType:_e,externalSlotProps:Y,ownerState:{...M,...Y==null?void 0:Y.ownerState},className:Ee.valueLabel}),rr=ft({elementType:ke,externalSlotProps:Ae,ownerState:M,className:Ee.mark}),or=ft({elementType:Ve,externalSlotProps:Re,ownerState:M,className:Ee.markLabel}),la=ft({elementType:R,getSlotProps:F,externalSlotProps:Ne,ownerState:M});return l.jsxs(tt,{...We,children:[l.jsx(U,{...Gt}),l.jsx(ae,{...ia}),z.filter(je=>je.value>=C&&je.value<=E).map((je,Le)=>{const sr=Pn(je.value,C,E),gn=H[oe].offset(sr);let nt;return W===!1?nt=le.includes(je.value):nt=W==="normal"&&(G?je.value>=le[0]&&je.value<=le[le.length-1]:je.value<=le[0])||W==="inverted"&&(G?je.value<=le[0]||je.value>=le[le.length-1]:je.value>=le[0]),l.jsxs(Q.Fragment,{children:[l.jsx(ke,{"data-index":Le,...rr,...!an(ke)&&{markActive:nt},style:{...gn,...rr.style},className:ht(rr.className,nt&&Ee.markActive)}),je.label!=null?l.jsx(Ve,{"aria-hidden":!0,"data-index":Le,...or,...!an(Ve)&&{markLabelActive:nt},style:{...gn,...or.style},className:ht(Ee.markLabel,or.className,nt&&Ee.markLabelActive),children:je.label}):null]},Le)}),le.map((je,Le)=>{const sr=Pn(je,C,E),gn=H[oe].offset(sr),nt=q==="off"?h1:_e;return l.jsx(nt,{...!an(nt)&&{valueLabelFormat:te,valueLabelDisplay:q,value:typeof te=="function"?te(p(je),Le):te,index:Le,open:re===Le||ne===Le||q==="on",disabled:f},...aa,children:l.jsx(me,{"data-index":Le,...nr,className:ht(Ee.thumb,nr.className,ne===Le&&Ee.active,ee===Le&&Ee.focusVisible),style:{...gn,...De(Le),...nr.style},children:l.jsx(R,{"data-index":Le,"aria-label":x?x(Le):i,"aria-valuenow":p(je),"aria-labelledby":c,"aria-valuetext":_?_(p(je),Le):a,value:le[Le],...la})})},Le)})]})});process.env.NODE_ENV!=="production"&&(Oi.propTypes={"aria-label":Do(s.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":s.string,"aria-valuetext":Do(s.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),components:s.shape({Input:s.elementType,Mark:s.elementType,MarkLabel:s.elementType,Rail:s.elementType,Root:s.elementType,Thumb:s.elementType,Track:s.elementType,ValueLabel:s.elementType}),componentsProps:s.shape({input:s.oneOfType([s.func,s.object]),mark:s.oneOfType([s.func,s.object]),markLabel:s.oneOfType([s.func,s.object]),rail:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),thumb:s.oneOfType([s.func,s.object]),track:s.oneOfType([s.func,s.object]),valueLabel:s.oneOfType([s.func,s.shape({children:s.element,className:s.string,open:s.bool,style:s.object,value:s.node,valueLabelDisplay:s.oneOf(["auto","off","on"])})])}),defaultValue:s.oneOfType([s.arrayOf(s.number),s.number]),disabled:s.bool,disableSwap:s.bool,getAriaLabel:s.func,getAriaValueText:s.func,marks:s.oneOfType([s.arrayOf(s.shape({label:s.node,value:s.number.isRequired})),s.bool]),max:s.number,min:s.number,name:s.string,onChange:s.func,onChangeCommitted:s.func,orientation:s.oneOf(["horizontal","vertical"]),scale:s.func,shiftStep:s.number,size:s.oneOfType([s.oneOf(["small","medium"]),s.string]),slotProps:s.shape({input:s.oneOfType([s.func,s.object]),mark:s.oneOfType([s.func,s.object]),markLabel:s.oneOfType([s.func,s.object]),rail:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),thumb:s.oneOfType([s.func,s.object]),track:s.oneOfType([s.func,s.object]),valueLabel:s.oneOfType([s.func,s.shape({children:s.element,className:s.string,open:s.bool,style:s.object,value:s.node,valueLabelDisplay:s.oneOf(["auto","off","on"])})])}),slots:s.shape({input:s.elementType,mark:s.elementType,markLabel:s.elementType,rail:s.elementType,root:s.elementType,thumb:s.elementType,track:s.elementType,valueLabel:s.elementType}),step:s.number,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,track:s.oneOf(["inverted","normal",!1]),value:s.oneOfType([s.arrayOf(s.number),s.number]),valueLabelDisplay:s.oneOf(["auto","off","on"]),valueLabelFormat:s.oneOfType([s.func,s.string])});const g1="_slider_1prh1_2",y1="_playButton_1prh1_14",b1="_sliderOpen_1prh1_25",v1="_sliderResults_1prh1_29",Qt={slider:g1,playButton:y1,sliderOpen:b1,sliderResults:v1},Ai=({onResults:e=!1,defaultYear:t=2025,firstYear:n=2025,lastYear:r=2050,marcas:o=null,zIndex:i=10,rightBarOpen:a=!1,conditionToBeRuning:c=null,onChange:u=d=>{console.log("year changed to ",d)}})=>{const m=o||((C,v)=>{const T=[];T.push({label:"",value:C});const A=Math.ceil(C/10)*10;for(let k=A;k<v;k+=10)T.push({label:"",value:k});return T[T.length-1].value!==v&&T.push({label:"",value:v}),T})(n,r),[g,y]=w.useState(t);w.useEffect(()=>{y(t)},[t]);const h=(C,v)=>{y(v),u(v)},[b,f]=w.useState(!1);w.useEffect(()=>{t&&console.log("defaultYear changed:",t),t&&y(t)},[t]),w.useEffect(()=>{c===!1&&f(!1)},[c]);const x=()=>{f(!0)},_=()=>{f(!1)};((C,v,T=[])=>{const A=w.useRef();w.useEffect(()=>{A.current=C},[C]),w.useEffect(()=>{function k(){A.current()}{let $=setInterval(k,v);return()=>clearInterval($)}},[v,...T])})(()=>{b&&y(C=>{const v=C+1;return v>r?(u(n),n):(u(v),v)})},1e3,[n,r,b]);const E=co.createTheme({palette:{primary:{main:"#605b56"}},components:{MuiSlider:{styleOverrides:{mark:{height:10,backgroundColor:"#605b56"},valueLabel:{backgroundColor:"transparent",color:"#605b56",padding:0,top:3}}}}});return l.jsx(xa.ThemeProvider,{theme:E,children:l.jsxs(co.Box,{sx:{width:400},className:`${e?Qt.sliderResults:Qt.slider} ${a?Qt.sliderOpen:""}`,style:{zIndex:i},children:[n,l.jsx(Oi,{"aria-label":"TimeSlider",value:g,valueLabelDisplay:"on",step:1,marks:m,min:n,max:r,onChange:h,color:"primary",size:"small"}),r,!b&&l.jsx("button",{className:Qt.playButton,onClick:x,children:l.jsx("img",{src:_0,alt:"Play"})}),b&&l.jsx("button",{className:Qt.playButton,onClick:_,children:l.jsx("img",{src:w0,alt:"Pause"})})]})})};Ai.propTypes={defaultYear:s.number,onResults:s.bool,firstYear:s.number,lastYear:s.number,marcas:s.arrayOf(s.shape({label:s.string,value:s.number})),zIndex:s.number,rightBarOpen:s.bool,onChange:s.func};const x1="_TopNavMenuContainer_12mp4_2",C1="_topNavOptions_12mp4_13",_1="_active_12mp4_27",wr={TopNavMenuContainer:x1,topNavOptions:C1,active:_1},Li=({options:e=[],containerStyles:t,borderColor:n="red",textColor:r="white",onChangeNavLink:o=i=>{console.log("Changed NavLink",i)}})=>{const{t:i}=se.useTranslation();return l.jsx("div",{className:wr.TopNavMenuContainer,style:{...t},children:e.map((a,c)=>l.jsx(As.NavLink,{to:a.url,className:({isActive:u})=>`${wr.topNavOptions} ${u?wr.active:""} `,onClick:()=>o(a.url),style:({isActive:u})=>({color:r,borderBottom:u?`5px solid ${n}`:"5px solid transparent"}),children:i(a.name)},c))})};Li.propTypes={options:s.arrayOf(s.object),cssProps:s.shape({borderColor:s.string.isRequired,textColor:s.string.isRequired})};const w1="_LogInButton_1vxj5_2",S1={LogInButton:w1},Mi=({cssClass:e,notLoggedInLabel:t="Log in",loggedInLabel:n="Log out",containerStyles:r,userName:o="",isLoggedIn:i=!1,onClickLogIn:a=()=>{console.log("Login clicked")},onClickLogOut:c=()=>{console.log("Logout clicked")}})=>{const{t:u}=se.useTranslation();return l.jsx("div",{style:{...r},className:`${S1.LogInButton} link ${e}`,onClick:i?c:a,children:i?o||u(n):u(t)})};Mi.propTypes={cssClass:s.string,notLoggedInLabel:s.string,loggedInLabel:s.string,containerStyles:s.object,userName:s.string,isLoggedIn:s.bool};const T1="_elementSelector_1ox68_2",k1="_header_1ox68_14",j1="_nameDateContainer_1ox68_24",$1="_elementName_1ox68_40",E1="_elementDate_1ox68_54",N1="_buttonsContainer_1ox68_68",O1="_elementListContainer_1ox68_77",A1="_newElementButtonContainer_1ox68_81",ot={elementSelector:T1,header:k1,nameDateContainer:j1,elementName:$1,elementDate:E1,buttonsContainer:N1,elementListContainer:O1,newElementButtonContainer:A1},L1="_listElement_s4s4h_3",M1="_elementNameDate_s4s4h_19",R1="_elementNameContainer_s4s4h_30",I1="_elementName_s4s4h_19",D1="_elementDate_s4s4h_47",B1="_nameAndEye_s4s4h_50",P1="_elementButtons_s4s4h_55",V1="_moreInfoContainer_s4s4h_78",F1="_moreInfo_s4s4h_78",Ue={listElement:L1,elementNameDate:M1,elementNameContainer:R1,elementName:I1,elementDate:D1,nameAndEye:B1,elementButtons:P1,break:"_break_s4s4h_73",moreInfoContainer:V1,moreInfo:F1},z1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Eliminar'%3e%3ccircle%20id='Ellipse%20220'%20cx='15.5106'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M20.8581%2010.5548H17.5491V10.4015C17.5491%209.17493%2016.6257%208.255%2015.4714%208.255C14.3171%208.255%2013.3167%209.17493%2013.3167%2010.4015V10.5548H10.0846C9.69985%2010.5548%209.46899%2010.7848%209.46899%2011.1681C9.46899%2011.5514%209.69985%2011.7814%2010.0846%2011.7814H10.2385V21.2106C10.2385%2022.3605%2011.162%2023.3571%2012.3932%2023.3571H18.5495C19.7038%2023.3571%2020.7042%2022.4372%2020.7042%2021.2106V11.7047H20.9351C21.2429%2011.7047%2021.5507%2011.4747%2021.5507%2011.0914C21.5507%2010.7081%2021.1659%2010.5548%2020.8581%2010.5548ZM14.471%2010.4015C14.471%209.86488%2014.9327%209.40491%2015.4714%209.40491C16.01%209.40491%2016.3948%209.86488%2016.3948%2010.4015V10.5548H14.471V10.4015ZM16.3948%2018.8342V15.0011C16.3948%2014.6178%2016.6257%2014.3878%2017.0104%2014.3878C17.3952%2014.3878%2017.6261%2014.6178%2017.6261%2015.0011V18.8342C17.6261%2019.1408%2017.3952%2019.4474%2017.0104%2019.4474C16.6257%2019.4474%2016.3948%2019.1408%2016.3948%2018.8342ZM13.3167%2018.8342V15.0011C13.3167%2014.6178%2013.5475%2014.3878%2013.9323%2014.3878C14.3171%2014.3878%2014.5479%2014.6178%2014.5479%2015.0011V18.8342C14.5479%2019.1408%2014.3171%2019.4474%2013.9323%2019.4474C13.5475%2019.4474%2013.3167%2019.1408%2013.3167%2018.8342Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e",q1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209259'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.3062'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cg%20id='Group%203973'%3e%3cg%20id='Rectangle%20495'%3e%3cmask%20id='path-2-inside-1_4451_10560'%20fill='white'%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'/%3e%3c/mask%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'%20stroke='%23605B56'%20stroke-width='3'%20mask='url(%23path-2-inside-1_4451_10560)'/%3e%3c/g%3e%3cg%20id='Group%203972'%3e%3crect%20id='Rectangle%20496'%20x='7.2041'%20y='10.9042'%20width='12.8'%20height='12.8'%20rx='1'%20fill='%23605B56'/%3e%3cpath%20id='+'%20d='M16.3785%2018.0509H14.3838V20.0776H12.9331V18.0509H10.9385V16.6749H12.9331V14.6376H14.3838V16.6749H16.3785V18.0509Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",W1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209260'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M8.20744%208.70422C7.34769%208.70422%206.88873%209.71735%207.45568%2010.3637L13.3518%2017.085C13.5118%2017.2675%2013.6%2017.5018%2013.6%2017.7445V23.2443C13.6%2023.6283%2013.8199%2023.9783%2014.1658%2024.1451L15.9658%2025.0128C16.6297%2025.3329%2017.4%2024.8491%2017.4%2024.112V17.7445C17.4%2017.5018%2017.4882%2017.2675%2017.6482%2017.085L23.5443%2010.3637C24.1113%209.71735%2023.6523%208.70422%2022.7926%208.70422H8.20744Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e",U1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%206725'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.7148'%20r='14.3521'%20stroke='%23605B56'%20stroke-opacity='0.5'%20stroke-width='1.5'/%3e%3cg%20id='Group%206724'%3e%3cpath%20id='Vector'%20d='M17.4114%2023.3302C17.4114%2024.5419%2016.4269%2027.4724%2015.2126%2027.4724C13.9982%2027.4724%2013.0137%2024.5419%2013.0137%2023.3302C13.0137%2022.7483%2013.2453%2022.1902%2013.6577%2021.7787C14.0701%2021.3673%2014.6294%2021.1361%2015.2126%2021.1361C15.7957%2021.1361%2016.355%2021.3673%2016.7674%2021.7787C17.1798%2022.1902%2017.4114%2022.7483%2017.4114%2023.3302Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union'%20d='M15.2919%2020.6088H11.2899L11.289%2020.6078C10.6273%2020.7718%209.36856%2021.3396%209.39931%2023.2845C9.39931%2023.2845%207.41254%2021.7976%208.17372%2019.0179L8.25575%2018.7445C8.59675%2017.7118%209.66004%2016.7306%2010.7714%2016.2435C10.7337%2012.8666%2011.5045%208.19644%2015.2919%204.724V20.6088ZM10.6835%2017.4164C10.5323%2017.5091%2010.3819%2017.6125%2010.2372%2017.7279C9.77215%2018.099%209.43634%2018.5195%209.26747%2018.8988L9.20595%2019.058C8.95666%2019.8145%208.9632%2020.4347%209.07607%2020.9291C9.34144%2020.5645%209.66233%2020.2832%209.9999%2020.0746C10.2365%2019.9284%2010.4715%2019.8251%2010.6835%2019.7494V17.4164Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union_2'%20d='M15.293%204.724C19.0931%208.20817%2019.8548%2012.8981%2019.8115%2016.2777C20.8629%2016.7859%2021.8411%2017.7218%2022.165%2018.7045C23.1398%2021.6599%2021.0225%2023.2445%2021.0225%2023.2445C21.051%2021.4361%2019.9648%2020.8184%2019.2803%2020.6088H15.293V4.724ZM19.7676%2017.3949C19.7586%2017.5313%2019.7493%2017.6646%2019.7383%2017.7943V19.7094C19.9502%2019.7851%2020.1854%2019.8884%2020.4219%2020.0345C20.7595%2020.2432%2021.0794%2020.5253%2021.3447%2020.89C21.4466%2020.444%2021.4627%2019.8956%2021.2812%2019.2367L21.2148%2019.0179C21.0772%2018.6004%2020.7157%2018.1118%2020.1846%2017.6879C20.0493%2017.58%2019.9088%2017.4829%2019.7676%2017.3949Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cg%20id='Vector_2'%3e%3cpath%20d='M12.541%208.28445C12.541%208.28445%2014.8218%209.81829%2018.0434%208.28445C18.0434%208.28445%2016.9978%206.03912%2015.2919%204.61267C15.2919%204.61267%2013.7894%205.92343%2012.541%208.28445Z'%20fill='%23FDFDFD'/%3e%3cpath%20d='M15.3057%205.29626C15.9532%205.9116%2016.4918%206.63792%2016.8867%207.2533C17.0801%207.55466%2017.2355%207.82605%2017.3516%208.03748C16.0573%208.54342%2014.966%208.52427%2014.1807%208.36951C13.781%208.29074%2013.4584%208.17533%2013.2266%208.07556C13.7607%207.14513%2014.32%206.40895%2014.7646%205.88806C14.9759%205.64056%2015.1621%205.44302%2015.3057%205.29626Z'%20stroke='%23605B56'%20stroke-opacity='0.5'/%3e%3c/g%3e%3cpath%20id='Vector_3'%20d='M17.6984%2012.9862C17.6985%2013.4539%2017.5596%2013.9111%2017.2993%2014.3001C17.039%2014.689%2016.669%2014.9922%2016.236%2015.1712C15.803%2015.3503%2015.3265%2015.3972%2014.8668%2015.3061C14.4071%2015.2149%2013.9848%2014.9898%2013.6533%2014.6591C13.3218%2014.3285%2013.0961%2013.9072%2013.0046%2013.4485C12.9131%2012.9898%2012.96%2012.5143%2013.1393%2012.0822C13.3186%2011.6501%2013.6224%2011.2808%2014.0121%2011.021C14.4018%2010.7611%2014.86%2010.6224%2015.3287%2010.6224C15.957%2010.6224%2016.5597%2010.8715%2017.004%2011.3147C17.4484%2011.758%2017.6982%2012.3593%2017.6984%2012.9862Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_4'%20d='M17.1358%2013.0038C17.1358%2013.36%2017.0299%2013.7083%2016.8316%2014.0045C16.6332%2014.3007%2016.3513%2014.5316%2016.0214%2014.6679C15.6916%2014.8042%2015.3286%2014.8399%2014.9784%2014.7704C14.6282%2014.7009%2014.3066%2014.5294%2014.0541%2014.2774C13.8017%2014.0255%2013.6297%2013.7046%2013.5601%2013.3552C13.4904%2013.0058%2013.5262%2012.6436%2013.6628%2012.3145C13.7994%2011.9853%2014.0308%2011.704%2014.3277%2011.5061C14.6245%2011.3082%2014.9736%2011.2025%2015.3306%2011.2025C15.8094%2011.2025%2016.2685%2011.3923%2016.6071%2011.7301C16.9456%2012.0679%2017.1358%2012.526%2017.1358%2013.0038Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_5'%20d='M16.7061%2013.2093C16.6508%2013.2093%2016.5978%2013.1874%2016.5588%2013.1485C16.5197%2013.1095%2016.4978%2013.0566%2016.4978%2013.0015C16.4974%2012.7236%2016.3866%2012.4572%2016.1897%2012.2607C15.9928%2012.0642%2015.7258%2011.9537%2015.4473%2011.9533C15.4175%2011.9582%2015.3869%2011.9566%2015.3578%2011.9485C15.3287%2011.9405%2015.3017%2011.9262%2015.2786%2011.9067C15.2556%2011.8872%2015.237%2011.8629%2015.2244%2011.8356C15.2117%2011.8082%2015.2051%2011.7784%2015.2051%2011.7482C15.2051%2011.7181%2015.2117%2011.6883%2015.2244%2011.6609C15.237%2011.6336%2015.2556%2011.6093%2015.2786%2011.5898C15.3017%2011.5703%2015.3287%2011.556%2015.3578%2011.5479C15.3869%2011.5399%2015.4175%2011.5383%2015.4473%2011.5432C15.8348%2011.5435%2016.2063%2011.6973%2016.4803%2011.9707C16.7543%2012.2441%2016.9084%2012.6148%2016.9088%2013.0015C16.9088%2013.0557%2016.8876%2013.1077%2016.8498%2013.1465C16.8119%2013.1854%2016.7603%2013.2079%2016.7061%2013.2093Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_6'%20d='M16.8082%2013.6607C16.8082%2013.7106%2016.7934%2013.7594%2016.7656%2013.8008C16.7378%2013.8423%2016.6984%2013.8746%2016.6522%2013.8937C16.606%2013.9128%2016.5552%2013.9178%2016.5062%2013.9081C16.4571%2013.8983%2016.4121%2013.8743%2016.3768%2013.8391C16.3414%2013.8038%2016.3173%2013.7589%2016.3076%2013.7099C16.2978%2013.661%2016.3028%2013.6103%2016.322%2013.5642C16.3411%2013.5182%2016.3735%2013.4788%2016.4151%2013.4511C16.4566%2013.4234%2016.5055%2013.4086%2016.5555%2013.4086C16.6225%2013.4086%2016.6868%2013.4351%2016.7342%2013.4824C16.7816%2013.5297%2016.8082%2013.5939%2016.8082%2013.6607Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_7'%20d='M15.6008%2016.0612C15.5633%2016.0097%2015.5141%2015.9677%2015.4573%2015.9388C15.4005%2015.9099%2015.3376%2015.8949%2015.2738%2015.8949H15.1898C15.126%2015.8948%2015.0631%2015.9099%2015.0062%2015.9388C14.9494%2015.9677%2014.9002%2016.0096%2014.8627%2016.0612C14.8627%2016.0612%2013.6074%2017.4973%2014.1816%2021.0915C14.4989%2023.0777%2015.2314%2023.6694%2015.2314%2023.6694C15.2314%2023.6694%2015.9639%2023.0777%2016.2819%2021.0915C16.8561%2017.4973%2015.6008%2016.0612%2015.6008%2016.0612Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_8'%20d='M15.1468%2015.8949C15.083%2015.8948%2015.0201%2015.9099%2014.9632%2015.9388C14.9064%2015.9677%2014.8572%2016.0096%2014.8198%2016.0612C14.8198%2016.0612%2013.5645%2017.4973%2014.1387%2021.0915C14.456%2023.0777%2015.1884%2023.6694%2015.1884%2023.6694V15.8949H15.1468Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Z1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='15.3062'%20cy='15.2144'%20r='14.3521'%20stroke='%2392898A'%20stroke-width='1.5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.9898%2012.7234V9.89008C11.9898%208.88815%2012.3811%207.92726%2013.0777%207.21879C13.7743%206.51032%2014.719%206.1123%2015.7041%206.1123C16.6892%206.1123%2017.6339%206.51032%2018.3305%207.21879C19.0271%207.92726%2019.4184%208.88815%2019.4184%209.89008V12.7234H20.347C20.8395%2012.7234%2021.3119%2012.9224%2021.6602%2013.2767C22.0084%2013.6309%2022.2041%2014.1113%2022.2041%2014.6123V21.2234C22.2041%2021.7244%2022.0084%2022.2048%2021.6602%2022.5591C21.3119%2022.9133%2020.8395%2023.1123%2020.347%2023.1123H11.0612C10.5687%2023.1123%2010.0963%2022.9133%209.74805%2022.5591C9.39976%2022.2048%209.2041%2021.7244%209.2041%2021.2234V14.6123C9.2041%2014.1113%209.39976%2013.6309%209.74805%2013.2767C10.0963%2012.9224%2010.5687%2012.7234%2011.0612%2012.7234H11.9898ZM13.847%209.89008C13.847%209.38912%2014.0426%208.90867%2014.3909%208.55444C14.7392%208.2002%2015.2116%208.00119%2015.7041%208.00119C16.1966%208.00119%2016.669%208.2002%2017.0173%208.55444C17.3656%208.90867%2017.5612%209.38912%2017.5612%209.89008V12.7234H13.847V9.89008ZM15.7041%2015.5567C15.9504%2015.5567%2016.1866%2015.6563%2016.3607%2015.8334C16.5348%2016.0105%2016.6327%2016.2507%2016.6327%2016.5012V19.3345C16.6327%2019.585%2016.5348%2019.8252%2016.3607%2020.0023C16.1866%2020.1795%2015.9504%2020.279%2015.7041%2020.279C15.4578%2020.279%2015.2216%2020.1795%2015.0475%2020.0023C14.8734%2019.8252%2014.7755%2019.585%2014.7755%2019.3345V16.5012C14.7755%2016.2507%2014.8734%2016.0105%2015.0475%2015.8334C15.2216%2015.6563%2015.4578%2015.5567%2015.7041%2015.5567Z'%20fill='%2392898A'/%3e%3c/svg%3e",H1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Editar'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.1021'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cg%20id='Group%203792'%3e%3cpath%20id='Vector%20530'%20d='M22.469%2010.8343L19.54%207.90531C19.3447%207.71005%2019.0281%207.71005%2018.8329%207.90531L8.39131%2018.3469C8.31762%2018.4206%208.2688%2018.5154%208.25167%2018.6182L7.66586%2022.1331C7.60946%2022.4715%207.90285%2022.7649%208.24126%2022.7085L11.7561%2022.1227C11.8589%2022.1055%2011.9538%2022.0567%2012.0275%2021.983L22.469%2011.5415C22.6643%2011.3462%2022.6643%2011.0296%2022.469%2010.8343Z'%20stroke='%23605B56'/%3e%3cpath%20id='Vector%20531'%20d='M9.00391%2017.7334L12.6401%2021.3695'%20stroke='%23605B56'/%3e%3cpath%20id='Vector%20614'%20d='M19.4292%207.55176L9.24805%2017.733L12.6418%2021.1267L22.823%2010.9455L19.4292%207.55176Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",K1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%206729'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.1021'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='i'%20d='M14%209.008C14%208.708%2014.102%208.468%2014.306%208.288C14.51%208.096%2014.78%208%2015.116%208C15.452%208%2015.722%208.096%2015.926%208.288C16.13%208.468%2016.232%208.708%2016.232%209.008C16.232%209.308%2016.13%209.554%2015.926%209.746C15.722%209.926%2015.452%2010.016%2015.116%2010.016C14.78%2010.016%2014.51%209.926%2014.306%209.746C14.102%209.554%2014%209.308%2014%209.008ZM15.926%2011.906V21.788H14.288V11.906H15.926Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e";var ps;function Br(){return Br=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Br.apply(null,arguments)}var G1=function(t){return Q.createElement("svg",Br({xmlns:"http://www.w3.org/2000/svg",width:26,height:14,fill:"none"},t),ps||(ps=Q.createElement("g",{fill:"currentColor"},Q.createElement("path",{d:"M12.95.408C7.659.408 2.849 2.772.083 6.726a.47.47 0 0 0 0 .532c2.761 3.955 7.571 6.313 12.867 6.313s10.106-2.358 12.867-6.313a.47.47 0 0 0 0-.532C23.05 2.772 18.24.408 12.95.408m0 10.814A4.24 4.24 0 0 1 8.718 6.99a4.24 4.24 0 0 1 4.232-4.232 4.24 4.24 0 0 1 4.232 4.232 4.24 4.24 0 0 1-4.232 4.232"}),Q.createElement("path",{d:"M12.951 10.297a3.307 3.307 0 1 0 0-6.614 3.307 3.307 0 0 0 0 6.614"}))))};const Y1="data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%200%2026%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205207'%3e%3cpath%20id='Vector'%20d='M12.9837%206.40625C11.1707%206.40625%209.69531%207.88162%209.69531%209.69462C9.69531%2010.0276%209.74618%2010.3514%209.83869%2010.652C9.93579%2010.9711%2010.0792%2011.2718%2010.2642%2011.54L14.8291%206.97512C14.5562%206.79013%2014.2602%206.64676%2013.9411%206.54962C13.6404%206.45712%2013.3167%206.40625%2012.9837%206.40625Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_2'%20d='M19.4938%204.44079C19.318%204.36678%2019.1191%204.40841%2018.985%204.53792L16.3534%207.16955V7.17415C16.543%207.42855%2016.7049%207.70604%2016.8344%208.00204C17.0656%208.52004%2017.1905%209.09354%2017.1905%209.69478C17.1905%2012.0165%2015.3035%2013.9035%2012.9818%2013.9035C12.3805%2013.9035%2011.807%2013.7787%2011.289%2013.5474C10.993%2013.4179%2010.7155%2013.256%2010.4611%2013.0664H10.4565L8.52788%2014.995C8.41225%2015.1153%208.36601%2015.2864%208.41225%2015.4437C8.45389%2015.6055%208.57875%2015.7304%208.74063%2015.772C10.0958%2016.1189%2011.511%2016.2947%2012.9494%2016.2947C18.245%2016.2947%2023.055%2013.9359%2025.8161%209.98153C25.9271%209.82429%2025.9271%209.61153%2025.8161%209.45427C24.2991%207.27591%2022.1115%205.54154%2019.4938%204.44079Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_3'%20d='M12.9843%2012.979C14.7973%2012.979%2016.268%2011.5082%2016.268%209.6952C16.268%209.35295%2016.2171%209.0292%2016.12%208.71933C16.0229%208.4002%2015.8749%208.10419%2015.6899%207.83594L11.125%2012.4008C11.3933%2012.5858%2011.6893%2012.7338%2012.0084%2012.831C12.3183%2012.9281%2012.6466%2012.979%2012.9843%2012.979Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_4'%20d='M9.12048%2011.3694C8.89386%2010.856%208.769%2010.2918%208.769%209.69516C8.769%207.3734%2010.656%205.48178%2012.9824%205.48178C13.579%205.48178%2014.1433%205.60667%2014.6566%205.83329C14.9526%205.95815%2015.2347%206.12004%2015.4891%206.31428L17.3808%204.42267L21.0114%200.792026C21.1918%200.611646%2021.1918%200.315664%2021.0114%200.135285C20.831%20-0.0450949%2020.535%20-0.0450949%2020.3546%200.135285L16.8951%203.59478C15.6186%203.28491%2014.2959%203.13228%2012.95%203.13228C7.65437%203.13228%202.84439%205.49565%200.0832465%209.45464C-0.0277488%209.61191%20-0.0277488%209.82467%200.0832465%209.9819C1.48001%2011.9845%203.44563%2013.6079%205.78125%2014.7087L3.37162%2017.1183C3.19127%2017.2986%203.19127%2017.5947%203.37162%2017.775C3.46412%2017.8629%203.57975%2017.9091%203.7%2017.9091C3.82026%2017.9091%203.93588%2017.8629%204.02839%2017.775L9.60151%2012.2019C9.40727%2011.9429%209.24536%2011.6654%209.12048%2011.3694Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3c/g%3e%3c/svg%3e",Ri=({listelement:e,onClickElement:t,isActive:n,activeColor:r,fontColor:o,moreInfo:i,columns:a,elementButtons:c,processTooltip:u,defaultTooltip:d,showEye:m=!0})=>{const{name:g,created_at:y,id:h,isBeingProcessed:b}=e,[f,x]=w.useState(!1),{t:_}=se.useTranslation(),S=c&&c.edit&&!e.is_default&&!e.is_baseline,E=c&&c.trash&&!e.is_default&&!e.is_baseline;return l.jsxs("div",{className:Ue.listElement,style:{borderBottom:`1px solid ${o}`},children:[l.jsx("div",{className:Ue.elementNameDate,onClick:()=>t(h),children:Object.keys(a).map((C,v)=>C==="name"?l.jsx("div",{className:Ue.elementNameContainer,children:l.jsxs("div",{className:`${Ue.elementName} ${m&&Ue.nameAndEye}`,children:[m&&(n?l.jsx(G1,{style:{color:r,marginRight:9}}):l.jsx("img",{style:{marginRight:9},src:Y1,alt:"eye"})),l.jsx("span",{style:{color:n?r:o},children:g})]})},`col${v}`):C=="data"?l.jsx("div",{className:Ue.elementDate,children:y?new Date(y).toLocaleDateString():""},`col${v}data`):l.jsx("div",{className:Ue.elementDate,children:e[C]},`col${v}other`))}),l.jsxs("div",{className:Ue.elementButtons,children:[e.processing&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("img",{src:U1}),l.jsx(Je,{text:u,position:"left"})]}),c.filter&&!e.is_default&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:()=>c.filter.onclick(e),disabled:c.filter.disabled||!1,children:l.jsx("img",{src:W1})}),l.jsx(Je,{text:c.filter.tooltiptext,position:"left"})]}),c.copy&&!e.is_default&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:()=>c.copy.onclick(e),disabled:c.copy.disabled||!1,children:l.jsx("img",{src:q1})}),l.jsx(Je,{text:c.copy.tooltiptext,position:"left"})]}),S&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:()=>c.edit.onclick(e),disabled:c.edit.disabled||!1,children:l.jsx("img",{src:H1})}),l.jsx(Je,{text:c.edit.tooltiptext,position:"left"})]}),c.info&&e.is_default&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:()=>c.info.onclick(e),disabled:c.info.disabled||!1,children:l.jsx("img",{src:K1})}),l.jsx(Je,{text:c.info.tooltiptext,position:"left"})]}),E&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:()=>c.trash.onclick(e),disabled:c.trash.disabled||!1,children:l.jsx("img",{src:z1})}),l.jsx(Je,{text:c.trash.tooltiptext,position:"left"})]}),e.is_default&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("img",{src:Z1}),l.jsx(Je,{text:d,position:"left"})]})]}),i&&l.jsx("div",{className:Ue.break}),i&&l.jsxs("div",{className:Ue.moreInfoContainer,children:[l.jsxs("div",{className:Ue.moreInfo,onClick:()=>x(!f),children:[l.jsx("span",{children:f?"-":"+"}),_(i.label)]}),i&&f&&l.jsx("div",{className:Ue.moreInfoInfo,children:e[i.info]})]})]})};Ri.propTypes={listelement:s.shape({name:s.string.isRequired,created_at:s.string,id:s.any.isRequired,isBeingProcessed:s.bool}).isRequired,onClickElement:s.func.isRequired,isActive:s.bool,activeColor:s.string,fontColor:s.string,moreInfo:s.any,columns:s.shape({name:s.string,data:s.string,ambit:s.string,escenari:s.string}),elementButtons:s.shape({copy:s.shape({onclick:s.func,tooltiptext:s.string}),delete:s.shape({onclick:s.func,tooltiptext:s.string}),filter:s.shape({onclick:s.func,tooltiptext:s.string})}),processTooltip:s.string,defaultTooltip:s.string,showEye:s.bool};const ms="data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector'%20d='M7%2015L7%201M7%2015L1%209M7%2015L13%209'%20stroke='%23605B56'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Ii=({elementsList:e,activeElementId:t,fontColor:n="#605B56",activeColor:r,buttonContainerStyles:o={},containerStyles:i={},newElementButton:a,onClickElement:c=b=>console.log(`OnCLickElement: ${b}`),columns:u,elementButtons:d,moreInfo:m=!1,processTooltip:g,defaultTooltip:y,showEye:h=!0})=>{const{t:b}=se.useTranslation(),[f,x]=w.useState(e);w.useEffect(()=>{e&&x(e)},[e]);const _=C=>{if(typeof C!="string")return null;if(/^\d{4}[-/]\d{2}[-/]\d{2}$/.test(C))return new Date(C);const v=/^(\d{2})[-/.]\s*(\d{2})[-/.]\s*(\d{4})$/.exec(C);if(v)return new Date(`${v[3]}-${v[2]}-${v[1]}`);const T=/^(\d{2})[-/]\s*(\d{2})[-/]\s*(\d{4})$/.exec(C);return T?parseInt(T[1])>12?new Date(`${T[3]}-${T[2]}-${T[1]}`):new Date(`${T[3]}-${T[1]}-${T[2]}`):null},S=C=>_(C)!==null,E=C=>{if(!f||f.length===0)return;let v=[...f];const T=v.find(k=>k[C]!==null&&k[C]!==void 0),A=T?S(T[C]):!1;v.sort((k,$)=>{const P=k[C],I=$[C];if(P==null&&I==null)return 0;if(P==null)return 1;if(I==null)return-1;if(A){const j=_(P),V=_(I);return!j&&!V?0:j?V?j-V:-1:1}const p=String(P||"").trim(),N=String(I||"").trim();return p.localeCompare(N)}),x(v)};return l.jsxs("div",{className:ot.elementSelector,style:{color:n,...i},children:[l.jsxs("div",{className:ot.header,style:{borderBottom:`1px solid ${n}`},children:[l.jsx("div",{className:ot.nameDateContainer,children:Object.keys(u).map(C=>C==="name"?l.jsx("div",{className:ot.elementName,children:l.jsxs("button",{onClick:()=>E("name"),children:[l.jsx("span",{children:b(u.name)}),l.jsx("img",{src:ms,alt:"order arrow"})]})},C):C==="data"?l.jsx("div",{className:ot.elementDate,children:l.jsxs("button",{onClick:()=>E("created_at"),children:[l.jsx("span",{children:b(u.data)}),l.jsx("img",{src:ms,alt:"order arrow"})]})},C):l.jsx("div",{className:ot.elementDate,children:l.jsx("span",{children:b(u[C])})},C))}),l.jsx("div",{className:ot.buttonsContainer})]}),l.jsx("div",{className:ot.elementListContainer,children:f&&f.length>0&&f.map(C=>l.jsx(Ri,{isActive:t==C.id,listelement:C,fontColor:n,activeColor:r,onClickElement:c,columns:u,elementButtons:d,moreInfo:m,processTooltip:g,defaultTooltip:y,showEye:h},`elementKey${C.id}`))}),a&&l.jsx("div",{className:ot.newElementButtonContainer,children:l.jsx(un,{style:{...o},onClick:a.onClick,borderColor:"grey",disabled:a.disabled||!1,children:b(a.label)})})]})};Ii.propTypes={elementsList:s.arrayOf(s.shape({name:s.string.isRequired,created_at:s.string,id:s.any.isRequired})).isRequired,activeElementId:s.any,fontColor:s.string,activeColor:s.string,onClickElement:s.func.isRequired,newElementButton:s.shape({label:s.string,onClick:s.func}),columns:s.shape({name:s.string,data:s.string,ambit:s.string,escenari:s.string}),elementButtons:s.shape({copy:s.shape({onclick:s.func,tooltiptext:s.string}),delete:s.shape({onclick:s.func,tooltiptext:s.string}),filter:s.shape({onclick:s.func,tooltiptext:s.string})}),buttonContainerStyles:s.object,containerStyles:s.object,onCLickNewElement:s.func,moreInfo:s.shape({label:s.string,info:s.any}),processTooltip:s.string,defaultTooltip:s.string,showEye:s.bool};const X1="_formContainer_asv64_2",Q1="_categorySelectorContainer_asv64_11",J1="_formObjectContainer_asv64_15",ed="_buttonContainer_asv64_26",Jt={formContainer:X1,categorySelectorContainer:Q1,formObjectContainer:J1,buttonContainer:ed},Pt={text:"text",password:"password",radioList:"radioList",select:"select",textDescription:"textDescription",rankingSlider:"rankingSlider"};var td=e=>e.type==="checkbox",sn=e=>e instanceof Date,to=e=>e==null;const Di=e=>typeof e=="object";var $t=e=>!to(e)&&!Array.isArray(e)&&Di(e)&&!sn(e),nd=e=>$t(e)&&e.target?td(e.target)?e.target.checked:e.target.value:e,rd=(e,t)=>t.split(".").some((n,r,o)=>!isNaN(Number(n))&&e.has(o.slice(0,r).join("."))),od=e=>{const t=e.constructor&&e.constructor.prototype;return $t(t)&&t.hasOwnProperty("isPrototypeOf")},sd=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Bi(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(sd&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!($t(e)&&od(e)))return e;const r=n?[]:Object.create(Object.getPrototypeOf(e));for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=Bi(e[o]));return r}var Pi=e=>/^\w*$/.test(e),Pr=e=>e===void 0,id=e=>Array.isArray(e)?e.filter(Boolean):[],Vi=e=>id(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Pe=(e,t,n)=>{if(!t||!$t(e))return n;const r=(Pi(t)?[t]:Vi(t)).reduce((o,i)=>to(o)?o:o[i],e);return Pr(r)||r===e?Pr(e[t])?n:e[t]:r},Sr=e=>typeof e=="boolean",Nn=e=>typeof e=="function",hs=(e,t,n)=>{let r=-1;const o=Pi(t)?[t]:Vi(t),i=o.length,a=i-1;for(;++r<i;){const c=o[r];let u=n;if(r!==a){const d=e[c];u=$t(d)||Array.isArray(d)?d:isNaN(+o[r+1])?{}:[]}if(c==="__proto__"||c==="constructor"||c==="prototype")return;e[c]=u,e=e[c]}};const gs={BLUR:"blur",CHANGE:"change"},ys={all:"all"},Fi=w.createContext(null);Fi.displayName="HookFormControlContext";const no=()=>w.useContext(Fi);var ad=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const a=i;return t._proxyFormState[a]!==ys.all&&(t._proxyFormState[a]=!r||ys.all),n&&(n[a]=!0),e[a]}});return o};const zi=typeof window<"u"?w.useLayoutEffect:w.useEffect;function ld(e){const t=no(),{control:n=t,disabled:r,name:o,exact:i}=e||{},[a,c]=w.useState(n._formState),u=w.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return zi(()=>n._subscribe({name:o,formState:u.current,exact:i,callback:d=>{!r&&c({...n._formState,...d})}}),[o,r,i]),w.useEffect(()=>{u.current.isValid&&n._setValid(!0)},[n]),w.useMemo(()=>ad(a,n,u.current,!1),[a,n])}var cd=e=>typeof e=="string",bs=(e,t,n,r,o)=>cd(e)?Pe(n,e,o):Array.isArray(e)?e.map(i=>Pe(n,i)):n,vs=e=>to(e)||!Di(e);function Dn(e,t,n=new WeakSet){if(vs(e)||vs(t))return Object.is(e,t);if(sn(e)&&sn(t))return Object.is(e.getTime(),t.getTime());const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const i of r){const a=e[i];if(!o.includes(i))return!1;if(i!=="ref"){const c=t[i];if(sn(a)&&sn(c)||($t(a)||Array.isArray(a))&&($t(c)||Array.isArray(c))?!Dn(a,c,n):!Object.is(a,c))return!1}}return!0}function ud(e){const t=no(),{control:n=t,name:r,defaultValue:o,disabled:i,exact:a,compute:c}=e||{},u=w.useRef(o),d=w.useRef(c),m=w.useRef(void 0),g=w.useRef(n),y=w.useRef(r);d.current=c;const[h,b]=w.useState(()=>{const C=n._getWatch(r,u.current);return d.current?d.current(C):C}),f=w.useCallback(C=>{const v=bs(r,n._names,C||n._formValues,!1,u.current);return d.current?d.current(v):v},[n._formValues,n._names,r]),x=w.useCallback(C=>{if(!i){const v=bs(r,n._names,C||n._formValues,!1,u.current);if(d.current){const T=d.current(v);Dn(T,m.current)||(b(T),m.current=T)}else b(v)}},[n._formValues,n._names,i,r]);zi(()=>((g.current!==n||!Dn(y.current,r))&&(g.current=n,y.current=r,x()),n._subscribe({name:r,formState:{values:!0},exact:a,callback:C=>{x(C.values)}})),[n,a,r,x]),w.useEffect(()=>n._removeUnmounted());const _=g.current!==n,S=y.current,E=w.useMemo(()=>{if(i)return null;const C=!_&&!Dn(S,r);return _||C?f():null},[i,_,r,S,f]);return E!==null?E:h}function dd(e){const t=no(),{name:n,disabled:r,control:o=t,shouldUnregister:i,defaultValue:a,exact:c=!0}=e,u=rd(o._names.array,n),d=w.useMemo(()=>Pe(o._formValues,n,Pe(o._defaultValues,n,a)),[o,n,a]),m=ud({control:o,name:n,defaultValue:d,exact:c}),g=ld({control:o,name:n,exact:c}),y=w.useRef(e),h=w.useRef(void 0),b=w.useRef(o.register(n,{...e.rules,value:m,...Sr(e.disabled)?{disabled:e.disabled}:{}}));y.current=e;const f=w.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Pe(g.errors,n)},isDirty:{enumerable:!0,get:()=>!!Pe(g.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Pe(g.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Pe(g.validatingFields,n)},error:{enumerable:!0,get:()=>Pe(g.errors,n)}}),[g,n]),x=w.useCallback(C=>b.current.onChange({target:{value:nd(C),name:n},type:gs.CHANGE}),[n]),_=w.useCallback(()=>b.current.onBlur({target:{value:Pe(o._formValues,n),name:n},type:gs.BLUR}),[n,o._formValues]),S=w.useCallback(C=>{const v=Pe(o._fields,n);v&&v._f&&C&&(v._f.ref={focus:()=>Nn(C.focus)&&C.focus(),select:()=>Nn(C.select)&&C.select(),setCustomValidity:T=>Nn(C.setCustomValidity)&&C.setCustomValidity(T),reportValidity:()=>Nn(C.reportValidity)&&C.reportValidity()})},[o._fields,n]),E=w.useMemo(()=>({name:n,value:m,...Sr(r)||g.disabled?{disabled:g.disabled||r}:{},onChange:x,onBlur:_,ref:S}),[n,r,g.disabled,x,_,S,m]);return w.useEffect(()=>{const C=o._options.shouldUnregister||i,v=h.current;v&&v!==n&&!u&&o.unregister(v),o.register(n,{...y.current.rules,...Sr(y.current.disabled)?{disabled:y.current.disabled}:{}});const T=(A,k)=>{const $=Pe(o._fields,A);$&&$._f&&($._f.mount=k)};if(T(n,!0),C){const A=Bi(Pe(o._options.defaultValues,n,y.current.defaultValue));hs(o._defaultValues,n,A),Pr(Pe(o._formValues,n))&&hs(o._formValues,n,A)}return!u&&o.register(n),h.current=n,()=>{(u?C&&!o._state.action:C)?o.unregister(n):T(n,!1)}},[n,o,u,i]),w.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),w.useMemo(()=>({field:E,formState:g,fieldState:f}),[E,g,f])}const mn=e=>e.render(dd(e)),fd=w.createContext(null);fd.displayName="HookFormContext";const pd="_textInputContainer_1o3iy_2",md="_labelContainer_1o3iy_5",hd="_inputContainer_1o3iy_8",gd="_showPasswordButton_1o3iy_14",yd="_forgotPassButton_1o3iy_26",en={textInputContainer:pd,labelContainer:md,inputContainer:hd,showPasswordButton:gd,forgotPassButton:yd},bd="_errorMessage_1xiyb_2",vd={errorMessage:bd},Kt=({errorMessage:e,errorColor:t="red",containerStyles:n})=>{const{t:r}=se.useTranslation();return l.jsx("div",{className:vd.errorMessage,style:{color:t,...n},children:e?r(e):""})},xd="data:image/svg+xml,%3csvg%20width='26'%20height='14'%20viewBox='0%200%2026%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205763'%3e%3cpath%20id='Vector'%20d='M12.95%200C7.659%200%202.84899%202.3634%200.0832465%206.31776C-0.0277488%206.47963%20-0.0277488%206.68776%200.0832465%206.84962C2.84439%2010.804%207.65437%2013.1628%2012.95%2013.1628C18.2456%2013.1628%2023.0556%2010.804%2025.8168%206.84962C25.9278%206.68775%2025.9278%206.47963%2025.8168%206.31776C23.051%202.36339%2018.241%200%2012.95%200ZM12.95%2010.8132C10.619%2010.8132%208.71812%208.91238%208.71812%206.58139C8.71812%204.25041%2010.619%202.34951%2012.95%202.34951C15.281%202.34951%2017.1819%204.25038%2017.1819%206.58139C17.1819%208.91241%2015.281%2010.8132%2012.95%2010.8132Z'%20fill='white'/%3e%3cpath%20id='Vector_2'%20d='M12.9514%209.88816C14.7777%209.88816%2016.2583%208.40763%2016.2583%206.58129C16.2583%204.75495%2014.7777%203.27441%2012.9514%203.27441C11.1251%203.27441%209.64453%204.75495%209.64453%206.58129C9.64453%208.40763%2011.1251%209.88816%2012.9514%209.88816Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",Cd="data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%200%2026%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205995'%3e%3cpath%20id='Vector'%20d='M12.9837%206.40625C11.1707%206.40625%209.69531%207.88162%209.69531%209.69462C9.69531%2010.0276%209.74618%2010.3514%209.83869%2010.652C9.93579%2010.9711%2010.0792%2011.2718%2010.2642%2011.54L14.8291%206.97512C14.5562%206.79013%2014.2602%206.64676%2013.9411%206.54962C13.6404%206.45712%2013.3167%206.40625%2012.9837%206.40625Z'%20fill='white'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_2'%20d='M19.4938%204.44079C19.318%204.36678%2019.1191%204.40841%2018.985%204.53792L16.3534%207.16955V7.17415C16.543%207.42855%2016.7049%207.70604%2016.8344%208.00204C17.0656%208.52004%2017.1905%209.09354%2017.1905%209.69478C17.1905%2012.0165%2015.3035%2013.9035%2012.9818%2013.9035C12.3805%2013.9035%2011.807%2013.7787%2011.289%2013.5474C10.993%2013.4179%2010.7155%2013.256%2010.4611%2013.0664H10.4565L8.52788%2014.995C8.41225%2015.1153%208.36601%2015.2864%208.41225%2015.4437C8.45389%2015.6055%208.57875%2015.7304%208.74063%2015.772C10.0958%2016.1189%2011.511%2016.2947%2012.9494%2016.2947C18.245%2016.2947%2023.055%2013.9359%2025.8161%209.98153C25.9271%209.82429%2025.9271%209.61153%2025.8161%209.45427C24.2991%207.27591%2022.1115%205.54154%2019.4938%204.44079Z'%20fill='white'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_3'%20d='M12.9843%2012.979C14.7973%2012.979%2016.268%2011.5082%2016.268%209.6952C16.268%209.35295%2016.2171%209.0292%2016.12%208.71933C16.0229%208.4002%2015.8749%208.10419%2015.6899%207.83594L11.125%2012.4008C11.3933%2012.5858%2011.6893%2012.7338%2012.0084%2012.831C12.3183%2012.9281%2012.6466%2012.979%2012.9843%2012.979Z'%20fill='white'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_4'%20d='M9.12048%2011.3694C8.89386%2010.856%208.769%2010.2918%208.769%209.69516C8.769%207.3734%2010.656%205.48178%2012.9824%205.48178C13.579%205.48178%2014.1433%205.60667%2014.6566%205.83329C14.9526%205.95815%2015.2347%206.12004%2015.4891%206.31428L17.3808%204.42267L21.0114%200.792026C21.1918%200.611646%2021.1918%200.315664%2021.0114%200.135285C20.831%20-0.0450949%2020.535%20-0.0450949%2020.3546%200.135285L16.8951%203.59478C15.6186%203.28491%2014.2959%203.13228%2012.95%203.13228C7.65437%203.13228%202.84439%205.49565%200.0832465%209.45464C-0.0277488%209.61191%20-0.0277488%209.82467%200.0832465%209.9819C1.48001%2011.9845%203.44563%2013.6079%205.78125%2014.7087L3.37162%2017.1183C3.19127%2017.2986%203.19127%2017.5947%203.37162%2017.775C3.46412%2017.8629%203.57975%2017.9091%203.7%2017.9091C3.82026%2017.9091%203.93588%2017.8629%204.02839%2017.775L9.60151%2012.2019C9.40727%2011.9429%209.24536%2011.6654%209.12048%2011.3694Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/g%3e%3c/svg%3e",hn=qr.create(e=>({errorColor:"red"})),Vr=({input:e,reactHookFormInstance:t})=>{const{code:n,type:r,label:o,maxLength:i,required:a,validateFunction:c,placeholder:u,errorColor:d="red",width:m=325,onClickForgotPass:g=()=>{console.log("Click on forgot password")},forgotPassLabel:y="forgot-password",onChangeExtraFunction:h=()=>{}}=e,{t:b}=se.useTranslation(),{control:f,trigger:x,clearErrors:_}=t,{errorColor:S}=hn(T=>T),[E,C]=w.useState(!1);w.useRef(a);const v=()=>r?r==="password"&&E?"text":r:"text";return l.jsx(mn,{name:n,control:f,rules:{required:a?`${b(o)} ${b("errorMessages.required")}`:!1,maxLength:i||void 0,validate:c||void 0},render:({field:T,fieldState:A})=>{var I;const{onChange:k,...$}=T,P=p=>{k(p),h&&h(p)};return l.jsxs("div",{className:en.textInputContainer,children:[l.jsxs("h3",{className:en.labelContainer,children:[b(o)," ",a&&l.jsx("label",{style:{color:A.error?d:""},children:"*"})]}),l.jsxs("div",{style:{position:"relative",width:m},className:en.inputContainer,children:[l.jsx("input",{...$,type:v(),onChange:P,placeholder:u?b(u):"",maxLength:i||void 0}),r=="password"&&l.jsx("button",{onClick:()=>C(!E),type:"button",className:en.showPasswordButton,children:l.jsx("img",{src:E?Cd:xd,alt:b("show-password")})})]}),r=="password"&&l.jsx("div",{className:en.forgotPassButton,children:l.jsx("button",{onClick:g,children:b(y)})}),l.jsx(Kt,{errorMessage:(I=A.error)==null?void 0:I.message,errorColor:S||d})]})}})},_d="_inputsContainer_10t9s_2",Vt={inputsContainer:_d},wd="_selectInputContainer_zzz6o_2",Sd="_labelContainer_zzz6o_6",Td="_selectWrapper_zzz6o_9",kd="_inputContainer_zzz6o_15",jd="_selectInput_zzz6o_2",$d="_option_zzz6o_29",Ed="_dropdownArrow_zzz6o_32",Ie={selectInputContainer:wd,labelContainer:Sd,selectWrapper:Td,inputContainer:kd,selectInput:jd,option:$d,dropdownArrow:Ed},xs="data:image/svg+xml,%3csvg%20width='19'%20height='10'%20viewBox='0%200%2019%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector%20311'%20d='M1%201.09961L8.79289%208.8925C9.18342%209.28303%209.81658%209.28303%2010.2071%208.8925L18%201.09961'%20stroke='%23605B56'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e",qi=({input:e,reactHookFormInstance:t,onChange:n})=>{const{code:r,type:o,label:i,maxLength:a,required:c,validateFunction:u,placeholder:d,errorColor:m="red",width:g=325,options:y=[]}=e,{t:h}=se.useTranslation(),{control:b,trigger:f,clearErrors:x}=t||{},{errorColor:_}=hn(C=>C);w.useRef(c);const[S,E]=w.useState(null);return w.useEffect(()=>{S&&n&&n(S)},[S,n]),t?l.jsx(mn,{name:r,control:b,rules:{required:c?`${h(i)} ${h("errorMessages.required")}`:!1,validate:u?C=>{let v=t.getValues();return u(C,v)}:void 0},render:({field:C,fieldState:v})=>{var A;const T=y.find(k=>k.value===C.value);return l.jsxs("div",{className:Ie.selectInputContainer,children:[i&&l.jsxs("h3",{className:Ie.labelContainer,children:[h(i)," ",c&&l.jsx("label",{style:{color:v.error?m:""},children:"*"})]}),l.jsxs("div",{className:Ie.selectWrapper,children:[l.jsxs("div",{className:Ie.inputContainer,style:{width:g},children:[l.jsxs("select",{...C,value:C.value??"",onChange:k=>{const $=k.target.value,P=y.every(I=>typeof I.value=="number")?Number($):$;C.onChange(P)},className:Ie.selectInput,children:[l.jsx("option",{value:"",disabled:!0,hidden:!0,children:h(d||"selectOption")}),y.map((k,$)=>l.jsx("option",{value:k.value,className:Ie.option,children:h(k.label)},$))]}),l.jsx("img",{src:xs,alt:"Open",className:Ie.dropdownArrow})]}),T&&T.description&&l.jsx("div",{className:Ie.optionDescription,children:h(T.description)})]}),l.jsx(Kt,{errorMessage:(A=v.error)==null?void 0:A.message,errorColor:_||m})]})}}):l.jsxs("div",{className:Ie.selectInputContainer,children:[i&&l.jsxs("h3",{className:Ie.labelContainer,children:[h(i)," ",c&&l.jsx("label",{children:"*"})]}),l.jsxs("div",{className:Ie.inputContainer,style:{width:g},children:[l.jsxs("select",{value:S??"",onChange:C=>{const v=C.target.value,T=y.every(A=>typeof A.value=="number")?Number(v):v;E(T)},className:Ie.selectInput,children:[l.jsx("option",{value:"",disabled:!0,hidden:!0,children:h(d||"selectOption")}),y.map((C,v)=>l.jsx("option",{value:C.value,className:Ie.option,children:h(C.label)},v))]}),l.jsx("img",{src:xs,alt:"Open",className:Ie.dropdownArrow})]}),(()=>{const C=y.find(v=>v.value===S);return C&&C.description?l.jsx("div",{className:Ie.optionDescription,children:h(C.description)}):null})()]})},Nd="_radioButtonContainer_1e994_2",Od="_wholeInputContainer_1e994_5",Ad="_questionContainer_1e994_27",Ld="_radioQuestion_1e994_59",Md="_inputContainer_1e994_63",Rd="_radioInput_1e994_93",wt={radioButtonContainer:Nd,wholeInputContainer:Od,questionContainer:Ad,radioQuestion:Ld,inputContainer:Md,radioInput:Rd},Wi=({input:e,reactHookFormInstance:t})=>{const{code:n,label:r,required:o,validateFunction:i,errorColor:a="red",options:c=[],multi:u=!1}=e,{t:d}=se.useTranslation(),{control:m,trigger:g,clearErrors:y}=t,{errorColor:h}=hn(x=>x),b=({options:x,onChange:_,actualValue:S})=>{if(u&&S&&S.length>0){let E=S.filter(C=>C!==x);_(E)}},f=({options:x,onChange:_,actualValue:S})=>{u?S&&S.length>0?_([...S,x]):_([x]):_(x)};return w.useRef(o),l.jsx(mn,{control:m,name:n,rules:{validate:x=>o&&(x==null||x==="")?`${d(r)} ${d("errorMessages.required")}`:null},render:({formState:{errors:x},field:{onChange:_,onBlur:S,value:E,ref:C},fieldState:v})=>{var T;return l.jsx("div",{id:n+"id",className:wt.radioButtonContainer,children:l.jsxs("div",{className:wt.wholeInputContainer,children:[r&&l.jsx("div",{className:wt.questionContainer,children:l.jsxs("h3",{htmlFor:n+"id",className:`${wt.radioQuestion} ${o&&wt.required}`,children:[d(r)," ",o&&l.jsx("label",{style:{color:v.error?a:""},children:"*"})]})}),l.jsxs("div",{className:wt.inputContainer,children:[c.map(({label:A,value:k,disabled:$=!1,italicLabel:P},I)=>{const p=E&&u?E.isArray&&(E==null?void 0:E.length)>0&&E.some(N=>N===k):E===k;return l.jsxs("label",{children:[l.jsx("input",{type:"radio",checked:p,onChange:()=>{u?p?b({actualValue:E,options:c,onChange:_}):f({actualValue:E,options:c,onChange:_}):_(k)},className:wt.radioInput}),l.jsx("span",{className:"radio-custom"}),d(A)]},`inputRadio ${I}`)}),l.jsx(Kt,{errorMessage:(T=v.error)==null?void 0:T.message,errorColor:h||a})]})]})})}})},Id="_rankingSliderContainer_1dvpb_2",Dd="_labelContainer_1dvpb_6",Bd="_inputContainer_1dvpb_10",Pd="_slider_1dvpb_20",Vd="_thumb_1dvpb_27",Fd="_labels_1dvpb_37",zd="_minLabel_1dvpb_67",qd="_maxLabel_1dvpb_68",$e={rankingSliderContainer:Id,labelContainer:Dd,inputContainer:Bd,slider:Pd,thumb:Vd,labels:Fd,minLabel:zd,maxLabel:qd},ro=({input:e,reactHookFormInstance:t,onChange:n})=>{const{code:r,label:o,minValue:i=1,maxValue:a=5,defValue:c=3,thumbColor:u="#B32F5D",required:d,errorColor:m="red",labelWidth:g="300px",sliderWidth:y="300px",minText:h,maxText:b,disabled:f=!1,marks:x=Array.from({length:a-i+1},($,P)=>i+P),showMarksNumber:_=!0}=e,{t:S}=se.useTranslation(),{control:E,trigger:C,clearErrors:v}=t||{};w.useRef(d);const{errorColorForm:T}=hn($=>$),[A,k]=w.useState(c);return t?l.jsx(mn,{name:r,control:E,defaultValue:c,rules:{required:d?`${S(o)} ${S("errorMessages.required")}`:!1},render:({field:$,fieldState:P})=>{var I;return l.jsxs("div",{className:$e.rankingSliderContainer,style:{gridTemplateColumns:`${o&&g} ${y}`},children:[o&&l.jsx("p",{className:$e.labelContainer,style:{color:f?"#CCCCCC":"#605B56"},children:S(o)}),l.jsxs("div",{className:$e.inputContainer,children:[h&&l.jsx("div",{className:$e.minLabel,children:S(h)}),l.jsxs("div",{children:[l.jsx(Or,{min:i,max:a,step:1,value:$.value??c,onChange:p=>{$.onChange(p)},marks:!0,className:$e.slider,thumbClassName:$e.thumb,renderThumb:p=>l.jsx("div",{...p,style:{...p.style,backgroundColor:f?"#CCCCCC":u,cursor:f?"not-allowed":"grab"}}),trackClassName:$e.track,markClassName:$e.mark,disabled:f}),x&&l.jsx("div",{className:$e.labels,children:x.map(p=>l.jsx("span",{children:_&&p},p))})]}),b&&l.jsx("div",{className:$e.maxLabel,children:S(b)})]}),l.jsx(Kt,{errorMessage:(I=P.error)==null?void 0:I.message,errorColor:T||m})]})}}):l.jsxs("div",{className:$e.rankingSliderContainer,style:{gridTemplateColumns:`${o&&g} ${y}`},children:[o&&l.jsx("p",{className:$e.labelContainer,style:{color:f?"#CCCCCC":"#605B56"},children:S(o)}),l.jsxs("div",{className:$e.inputContainer,children:[h&&l.jsx("div",{className:$e.minLabel,children:S(h)}),l.jsxs("div",{children:[l.jsx(Or,{min:i,max:a,step:1,value:A,onChange:$=>{k($),n&&n($)},marks:!0,className:$e.slider,thumbClassName:$e.thumb,renderThumb:$=>l.jsx("div",{...$,style:{...$.style,backgroundColor:f?"#CCCCCC":u,cursor:f?"not-allowed":"grab"}}),trackClassName:$e.track,markClassName:$e.mark,disabled:f}),x&&l.jsx("div",{className:$e.labels,children:x.map($=>l.jsx("span",{children:_&&$},$))})]}),b&&l.jsx("div",{className:$e.maxLabel,children:S(b)})]})]})};ro.propTypes={input:s.shape({code:s.string,label:s.string,minValue:s.number,maxValue:s.number,defValue:s.number,thumbColor:s.string,required:s.bool,errorColor:s.string,labelWidth:s.string,sliderWidth:s.string,minText:s.string,maxText:s.string}),reactHookFormInstance:s.object};const Wd="_textDescriptionContainer_163pc_2",Ud="_textDescriptionText_163pc_6",Cs={textDescriptionContainer:Wd,textDescriptionText:Ud},Zd=({input:e,inputContainerStyles:t})=>l.jsx("div",{className:Cs.textDescriptionContainer,style:{margin:"10px 0",...t},children:l.jsx("p",{className:Cs.textDescriptionText,children:e.text})}),tn=({inputs:e,inputContainerStyles:t,reactHookFormInstance:n})=>{const{watch:r}=n,o=r(),i=w.useMemo(()=>e==null?void 0:e.map(a=>{const c=typeof a.required=="function"?a.required(o):a.required;return{...a,required:c}}),[e,o]);return l.jsx("div",{className:Vt.inputsContainer,children:i==null?void 0:i.map((a,c)=>{const{inputType:u}=a;switch(u){case Pt.text:return l.jsx("div",{className:Vt.inputContainer,style:{...t},children:l.jsx(Vr,{input:a,reactHookFormInstance:n})},`${a.code}${c}`);case Pt.password:return l.jsx("div",{className:Vt.inputContainer,style:{...t},children:l.jsx(Vr,{input:a,reactHookFormInstance:n})},`${a.code}${c}`);case Pt.select:return l.jsx("div",{className:Vt.inputContainer,style:{...t},children:l.jsx(qi,{input:a,reactHookFormInstance:n})},`${a.code}${c}`);case Pt.radioList:return l.jsx("div",{className:Vt.inputContainer,style:{...t},children:l.jsx(Wi,{input:a,reactHookFormInstance:n})},`${a.code}${c}`);case Pt.rankingSlider:return l.jsx("div",{className:Vt.inputContainer,style:{...t},children:l.jsx(ro,{input:a,reactHookFormInstance:n})},`${a.code}${c}`);case Pt.textDescription:return l.jsx(Zd,{input:a,inputContainerStyles:t},`${a.code}${c}`);default:return l.jsx("div",{children:l.jsx("h4",{children:"Default"})},`${a.code}${c}`)}})})},Hd="_categorySelector_1guuv_2",Kd="_sectionItemActive_1guuv_16",Gd="_sectionItem_1guuv_16",Yd="_sectionItemError_1guuv_32",nn={categorySelector:Hd,sectionItemActive:Kd,sectionItem:Gd,sectionItemError:Yd},Fr=({categories:e,onChange:t,activeCategory:n,activeColor:r,containerStyles:o={},categoriesWithErrors:i=[]})=>{const{t:a}=se.useTranslation(),c=u=>{t(u)};return l.jsx("div",{className:nn.categorySelector,style:o?{...o}:{},children:e.map((u,d)=>{const{id:m,label:g}=u,y=n==m,h=i.includes(m);return l.jsx("button",{className:`${nn.sectionItem} ${y?nn.sectionItemActive:""} ${h?nn.sectionItemError:""}`,type:"button",style:{backgroundColor:y?r:"inherit"},onClick:()=>c(m),children:l.jsx("span",{style:{color:y?"white":"inherit"},className:nn.sectionLabel,children:a(g)})},`keySection${d}`)})})},Xd=({reactHookFormInstance:e,formObject:t,CategoryComponent:n,inputContainerStyles:r,generalError:o,errorColor:i="red",submitButtonLabel:a="Submit",submitButtonStyles:c={width:325},showCategorySelector:u=!0,defaultCategory:d=null,categoryLabel:m="Select Category",activeCategory:g=null,activeCategoryColor:y="#b32f5d",categoriesWithErrors:h=[],onSubmit:b=f=>console.log("Form submitted with: ",f)})=>{const{t:f}=se.useTranslation(),{handleSubmit:x,control:_}=e;w.useEffect(()=>{i&&hn.setState(()=>({errorColor:i}))},[i]);const S=w.useMemo(()=>t?t.filter($=>$.category).map($=>{var P;return{id:$.categoryId,label:$.category,hasSubcategories:((P=$.subcategories)==null?void 0:P.length)>0}}):[],[t]),E=$=>{const P=t==null?void 0:t.find(I=>I.categoryId===$);return(P==null?void 0:P.subcategories)||[]},[C,v]=w.useState(g||d||null),[T,A]=w.useState(null);w.useEffect(()=>{!C&&S.length>0&&v(S[0].id)},[S,C]),w.useEffect(()=>{const $=E(C);!T&&($==null?void 0:$.length)>0&&A($[0].id)},[C,T,t]);const k=($,P)=>{var I;if(((I=$.subcategories)==null?void 0:I.length)>0){const p=$.subcategories;return l.jsxs("div",{children:[l.jsx("div",{className:Jt.categorySelectorContainer,children:l.jsx(Fr,{activeCategory:T,categories:p,categoriesWithErrors:h,onChange:N=>A(N),activeColor:y})},$.categoryId),p.map((N,j)=>{const V=!T||N.id===T;return n?l.jsx("div",{style:{display:V?"block":"none",width:"100%"},children:l.jsx(n,{title:N.label,children:l.jsx(tn,{inputs:N.inputs,control:_,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e})},N.id)},`${N.id}${j}`):l.jsxs("div",{style:{width:"100%",display:V?"block":"none"},children:[l.jsx("h3",{style:{marginBottom:15},children:f(N.label)}),l.jsx(tn,{inputs:N.inputs,control:_,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e})]},`${N.id}${j}`)})]})}return n?l.jsx(n,{title:$.category,children:l.jsx(tn,{inputs:$.inputs,control:_,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e})},$.categoryId):l.jsxs("div",{style:{width:"100%"},children:[l.jsx("h2",{children:f($.category)}),l.jsx(tn,{inputs:$.inputs,control:_,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e})]},$.categoryId)};return l.jsxs("form",{className:Jt.formContainer,onSubmit:x(b),children:[u&&S.length>0&&l.jsx("div",{className:Jt.categorySelectorContainer,children:l.jsx(Fr,{activeCategory:C,categories:S,categoriesWithErrors:h,onChange:$=>{v($),A(null)},activeColor:y})}),l.jsx("div",{className:Jt.formObjectContainer,children:t==null?void 0:t.map(($,P)=>{const I=$.categoryId===C;return $.category?l.jsx("div",{style:{width:"100%",display:I?"block":"none"},children:k($)},$.categoryId):l.jsx(tn,{inputs:$.inputs,control:_,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e},`no-category-${P}`)})}),l.jsxs("div",{className:Jt.buttonContainer,children:[l.jsx(un,{containerStyles:c,type:"submit",children:f(a)}),l.jsx(Kt,{errorMessage:o,errorColor:i})]})]})},Qd="_overlay_mnd4j_2",Jd="_modal_mnd4j_15",ef="_closeButton_mnd4j_29",tf="_icon_mnd4j_39",nf="_message_mnd4j_45",rf="_submessage_mnd4j_51",of="_buttonsContainer_mnd4j_57",sf="_buttonWrapper_mnd4j_64",pt={overlay:Qd,modal:Jd,closeButton:ef,icon:tf,message:nf,submessage:rf,buttonsContainer:of,buttonWrapper:sf},Ui=({onClose:e,icon:t,message:n,submessage:r,buttons:o,maxHeight:i="450px",maxWidth:a="450px"})=>l.jsx("div",{className:pt.overlay,children:l.jsxs("div",{className:pt.modal,style:{maxHeight:i,maxWidth:a},children:[l.jsx("button",{className:pt.closeButton,onClick:e,"aria-label":"Close modal",children:"✕"}),t&&l.jsx("img",{src:t,alt:"icon",className:pt.icon}),l.jsx("p",{className:pt.message,children:n}),r&&l.jsx("p",{className:pt.submessage,children:r}),o.length>0&&l.jsx("div",{className:pt.buttonsContainer,children:o.map((c,u)=>l.jsx("div",{className:pt.buttonWrapper,children:c},u))})]})});Ui.propTypes={onClose:s.func.isRequired,icon:s.string,message:s.string.isRequired,submessage:s.string,buttons:s.arrayOf(s.node),maxHeight:s.string,maxWidth:s.string};const af="_stepsContainer_1cyua_3",lf="_stepWrapper_1cyua_9",cf="_circleContainer_1cyua_19",uf="_circle_1cyua_19",df="_active_1cyua_39",ff="_completed_1cyua_44",pf="_label_1cyua_50",mf="_labelActive_1cyua_56",hf="_connector_1cyua_61",st={stepsContainer:af,stepWrapper:lf,circleContainer:cf,circle:uf,active:df,completed:ff,label:pf,labelActive:mf,connector:hf},oo=({steps:e,activeColor:t})=>l.jsx("div",{className:st.stepsContainer,children:e.map((n,r)=>{const o=n.status==="active",i=n.status==="completed";return l.jsxs("div",{className:st.stepWrapper,children:[l.jsxs("div",{className:st.circleContainer,children:[l.jsx("div",{className:`${st.circle}
81
81
  ${o?st.active:""}
82
- ${i?st.completed:""}`,style:o?{backgroundColor:t}:{},onClick:n.onClick,children:r+1}),r<e.length-1&&l.jsx("div",{className:st.connector})]}),l.jsx("div",{className:`${st.label} ${o?st.labelActive:""}`,children:n.name})]},r)})});oo.propTypes={steps:s.arrayOf(s.shape({name:s.string.isRequired,onClick:s.func,status:s.oneOf(["inactive","active","completed"]).isRequired})).isRequired,activeColor:s.string};oo.defaultProps={activeColor:"#C2185B"};const gf="_statusTextContainer_ch14r_2",yf={statusTextContainer:gf},so=({text:e,color:t})=>l.jsx("div",{className:yf.statusTextContainer,style:{background:t},children:l.jsx("span",{children:e})});so.propTypes={text:s.string,color:s.string};so.defaultProps={color:"#C2185B"};const bf="_buttonsContainer_1c7dw_2",vf="_button_1c7dw_2",xf="_active_1c7dw_20",On={buttonsContainer:bf,button:vf,active:xf},Zi=({buttons:e=[]})=>{const{t}=oe.useTranslation();return l.jsx("div",{className:`${On.buttonsContainer}`,children:e.map((n,r)=>{const{isActive:o,name:i,onClick:a}=n;return l.jsx("div",{children:l.jsx("button",{onClick:a,className:`${On.button}
83
- ${o&&On.active}`,children:l.jsx("span",{className:On.buttonName,children:t(i)})})},r)})})};Zi.propTypes={buttons:s.arrayOf(s.shape({isActive:s.bool,name:s.string,onClick:s.func})).isRequired};const Cf="_switchContainer_194wl_2",_f="_labelRight_194wl_9",wf="_labelLeft_194wl_9",Sf="_slider_194wl_28",Tf="_disabled_194wl_54",Ft={switchContainer:Cf,labelRight:_f,labelLeft:wf,switch:"_switch_194wl_2",slider:Sf,disabled:Tf},Hi=({input:e,reactHookFormInstance:t,onChange:n,onoff:r=!0})=>{const{code:o,labelLeft:i,labelRight:a,defValue:c=!1,colorOn:u="#5A514D",disabled:d=!1,width:m=240}=e,{t:g}=oe.useTranslation(),{control:y}=t||{},[h,b]=S.useState(c),f=_=>{b(_),n&&n(_)},x=(_,w)=>l.jsxs("div",{className:Ft.switchContainer,style:{width:`${m}px`},children:[i&&l.jsx("span",{className:Ft.labelLeft,style:{width:`${(m-74)/2}px`},children:g(i)}),l.jsxs("label",{className:`${Ft.switch} ${d?Ft.disabled:""}`,children:[l.jsx("input",{type:"checkbox",checked:!!_,onChange:()=>w(!_),disabled:d}),l.jsx("span",{className:Ft.slider,style:{"--switch-thumb-color":r?_?u:"#ccc":u}})]}),a&&l.jsx("span",{className:Ft.labelRight,style:{width:`${(m-74)/2}px`},children:g(a)})]});return t?l.jsx(mn,{name:o,control:y,defaultValue:c,render:({field:_})=>x(_.value,_.onChange)}):x(h,f)};Hi.propTypes={input:s.shape({code:s.string,labelLeft:s.string,labelRight:s.string,defValue:s.bool,colorOn:s.string,disabled:s.bool}),reactHookFormInstance:s.object,onChange:s.func};const jf="_overlay_1xyw2_2",kf="_popup_1xyw2_15",$f="_gif_1xyw2_25",Ef="_message_1xyw2_31",An={overlay:jf,popup:kf,gif:$f,message:Ef},Ki=({gifSrc:e,message:t})=>l.jsx("div",{className:An.overlay,children:l.jsxs("div",{className:An.popup,children:[e&&l.jsx("img",{src:e,alt:"loading animation",className:An.gif}),t&&l.jsx("p",{className:An.message,children:t})]})});Ki.propTypes={gifSrc:s.string,message:s.string};const Nf="_container_1pl8d_3",Of="_burger_1pl8d_10",Af="_menu_1pl8d_21",Lf="_menuOpen_1pl8d_35",Mf="_menuClose_1pl8d_40",Rf="_list_1pl8d_46",Df="_item_1pl8d_56",If="_button_1pl8d_91",Xe={container:Nf,burger:Of,menu:Af,menuOpen:Lf,menuClose:Mf,list:Rf,item:Df,button:If},io=({options:e,backgroundColor:t,textColor:n,iconColor:r})=>{const[o,i]=S.useState(!1),a=()=>i(b=>!b),c=()=>i(!1),u=7,d=o?11:0,m=o?13:0,g=o?-11.51666:0,y=o?-13:0,h="0.35s";return l.jsxs("div",{className:Xe.container,children:[l.jsx("button",{onClick:a,className:Xe.burger,children:l.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[l.jsx("g",{style:{transform:`translateY(${d}px)`,transition:`transform ${h} cubic-bezier(0.42, 0, 0.58, 1)`},children:l.jsx("circle",{cx:"20",cy:"9",r:u,fill:r})}),l.jsx("g",{style:{transform:`translate(${m}px, ${g}px)`,transition:`transform ${h} cubic-bezier(0.42, 0, 0.58, 1)`},children:l.jsx("circle",{cx:"7",cy:"31.51666",r:u,fill:r})}),l.jsx("g",{style:{transform:`translate(${y}px, ${g}px)`,transition:`transform ${h} cubic-bezier(0.42, 0, 0.58, 1)`},children:l.jsx("circle",{cx:"33",cy:"31.51666",r:u,fill:r})}),l.jsx("g",{style:{opacity:o?1:0,transition:`opacity ${h} cubic-bezier(0.42, 0, 0.58, 1)`},children:l.jsx("circle",{cx:"20",cy:"20",r:"10",fill:r})}),l.jsxs("g",{stroke:t,strokeWidth:"2",strokeLinecap:"round",style:{opacity:o?1:0,transition:`opacity ${h} cubic-bezier(0.42, 0, 0.58, 1)`},children:[l.jsx("line",{x1:"17",y1:"17",x2:"23",y2:"23"}),l.jsx("line",{x1:"23",y1:"17",x2:"17",y2:"23"})]})]})}),l.jsx("div",{className:`${Xe.menu} ${o?Xe.menuOpen:Xe.menuClose}`,style:{backgroundColor:t,color:n},children:l.jsx("ul",{className:Xe.list,children:e.map((b,f)=>l.jsxs("li",{className:Xe.item,children:[b.url&&l.jsx(As.NavLink,{to:b.url,className:({isActive:x})=>`${Xe.link} ${x?Xe.active:""}`,onClick:c,style:{color:n},children:b.name}),b.onclick&&l.jsx("button",{className:Xe.button,onClick:()=>{b.onclick(),c()},children:b.name}),b.component&&b.component]},f))})})]})};io.propTypes={options:s.array.isRequired,backgroundColor:s.string,textColor:s.string,iconColor:s.string};io.defaultProps={backgroundColor:"#ffffff",textColor:"#000000",iconColor:"#000000"};const Bf="_svgContainer_1rxoe_2",Vf="_svg_1rxoe_2",_s={svgContainer:Bf,svg:Vf},Gi=({data:e,keys:t,colors:n,width:r="100%",height:o=300,margin:i={top:20,right:20,bottom:60,left:60},className:a="",showXAxisLabels:c=!0,showYAxisLabels:u=!0,showGrid:d=!0,xAxisTickRotation:m=-90,yAxisTickFormat:g=C=>C.toLocaleString("es-ES"),barPadding:y=.1,groupPadding:h=.05,animationDuration:b=750,onBarHover:f,onBarClick:x,title:_,xAxisLabel:w,yAxisLabel:E})=>{const C=S.useRef(),v=S.useRef(),[T,A]=S.useState({width:0,height:0});return S.useEffect(()=>{const k=()=>{if(v.current){const j=v.current.getBoundingClientRect().width;A({width:typeof r=="number"?r:j,height:o})}};return k(),window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)},[r,o]),S.useEffect(()=>{if(!e||e.length===0||T.width===0)return;const k=le.select(C.current),j=T.width,D=T.height,M=j-i.left-i.right,p=D-i.top-i.bottom;if(M<=0||p<=0)return;const N=e.map(V=>V.anyo||V.year||V.x),$=t,P=le.min(e,V=>le.min($,Z=>V[Z]))||0,q=le.max(e,V=>le.max($,Z=>V[Z]))||0,Y=le.scaleBand().domain(N).rangeRound([0,M]).paddingInner(y),U=le.scaleBand().domain($).rangeRound([0,Y.bandwidth()]).padding(h),ge=le.scaleLinear().domain([Math.min(0,P),q]).nice().rangeRound([p,0]),L=le.scaleOrdinal().domain($).range(Array.isArray(n)?n:Object.values(n||{}));k.selectAll("*").remove();const R=k.append("g").attr("transform",`translate(${i.left},${i.top})`);_&&k.append("text").attr("x",j/2).attr("y",i.top/2).attr("text-anchor","middle").style("font-size","16px").style("font-weight","bold").style("fill","#333").text(_),d&&R.append("g").attr("class","grid").selectAll("line").data(ge.ticks()).enter().append("line").attr("x1",0).attr("x2",M).attr("y1",V=>ge(V)).attr("y2",V=>ge(V)).style("stroke","#e0e0e0").style("stroke-width",.5),c&&(R.append("g").attr("transform",`translate(0,${p})`).call(le.axisBottom(Y).tickSizeOuter(0)).attr("class","x-axis").selectAll("text").attr("transform",`translate(0,10)rotate(${m})`).style("text-anchor",m<0?"end":"middle").style("font-size","12px").style("fill","#605B56"),w&&R.append("text").attr("transform",`translate(${M/2}, ${p+i.bottom-5})`).style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(w)),u&&(R.append("g").call(le.axisLeft(ge).ticks(6).tickFormat(g)).attr("class","y-axis").call(V=>V.select(".domain").remove()),E&&R.append("text").attr("transform","rotate(-90)").attr("y",0-i.left).attr("x",0-p/2).attr("dy","1em").style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(E));const J=R.append("g").selectAll(".bar-group").data(e).enter().append("g").attr("class","bar-group").attr("transform",V=>`translate(${Y(V.anyo||V.year||V.x)},0)`).selectAll(".bar").data(V=>$.map(Z=>({key:Z,value:V[Z],data:V}))).enter().append("rect").attr("class","bar").attr("x",V=>U(V.key)).attr("y",p).attr("width",U.bandwidth()).attr("height",0).attr("fill",V=>L(V.key)).style("cursor",f||x?"pointer":"default");J.transition().duration(b).attr("y",V=>ge(Math.max(0,V.value))).attr("height",V=>Math.abs(ge(V.value)-ge(0))),f&&J.on("mouseover",function(V,Z){le.select(this).style("opacity",.8),f(V,Z)}).on("mouseout",function(V,Z){le.select(this).style("opacity",1)}),x&&J.on("click",x)},[e,t,n,T,i,y,h,c,u,d,m,g,b,f,x,_,w,E]),l.jsx("div",{ref:v,className:`${_s.svgContainer} ${a}`,style:{width:r,height:o+i.top+i.bottom},children:l.jsx("svg",{ref:C,className:_s.svg,width:T.width,height:T.height})})};Gi.propTypes={data:s.arrayOf(s.object).isRequired,keys:s.arrayOf(s.string).isRequired,colors:s.oneOfType([s.arrayOf(s.string),s.object]),width:s.oneOfType([s.string,s.number]),height:s.number,margin:s.shape({top:s.number,right:s.number,bottom:s.number,left:s.number}),className:s.string,showXAxisLabels:s.bool,showYAxisLabels:s.bool,showGrid:s.bool,xAxisTickRotation:s.number,yAxisTickFormat:s.func,barPadding:s.number,groupPadding:s.number,animationDuration:s.number,onBarHover:s.func,onBarClick:s.func,title:s.string,xAxisLabel:s.string,yAxisLabel:s.string};const Pf="_svgContainer_7fkic_2",Ff="_svg_7fkic_2",ws={svgContainer:Pf,svg:Ff},Yi=({data:e,keys:t,colors:n,lineData:r=null,width:o="100%",height:i=300,margin:a={top:20,right:20,bottom:60,left:60},className:c="",showXAxisLabels:u=!0,showYAxisLabels:d=!0,showGrid:m=!0,xAxisTickRotation:g=-90,yAxisTickFormat:y=D=>D.toLocaleString("es-ES"),barPadding:h=.4,animationDuration:b=750,onBarHover:f,onBarClick:x,title:_,xAxisLabel:w,yAxisLabel:E,stackOrder:C="reverse",showTooltip:v=!0,reverseKeys:T=!0,minBarSlotWidth:A=60,wrapXAxisLabels:k=!0,mode:j="stacked"})=>{const D=S.useRef(),M=S.useRef();S.useRef();const[p,N]=S.useState({containerWidth:0,height:0}),{t:$}=oe.useTranslation();return S.useEffect(()=>{const P=()=>{if(M.current){const q=M.current.getBoundingClientRect().width;N({containerWidth:typeof o=="number"?o:q,height:i})}};return P(),window.addEventListener("resize",P),()=>window.removeEventListener("resize",P)},[o,i]),S.useEffect(()=>{if(!e||e.length===0||p.containerWidth===0)return;const P=le.select(D.current),{containerWidth:q,height:Y}=p,U=q-a.left-a.right,ge=e.length*A,L=Math.max(U,ge),R=L+a.left+a.right,K=Y-a.top-a.bottom;if(L<=0||K<=0)return;P.attr("width",R).attr("height",Y);const J=j==="stacked"?T?[...t].reverse():t:[],V=z=>j==="single"?z.title:z.any||z.year||z.x,Z=[];e.forEach(z=>{const ie=V(z);if(j==="single"){const pe=Number(z.value)||0;Z.push({key:z.title,value:pe,y0:Math.min(0,pe),y1:Math.max(0,pe),height:Math.abs(pe),data:z,xKey:ie,color:z.color})}else{const pe=J.map(B=>({key:B,value:Number(z[B])||0,data:z})),_e=pe.filter(B=>B.value<0),je=pe.filter(B=>B.value>=0);let Pe=0;_e.forEach(B=>{const W=Pe,X=Pe+B.value,se=Math.abs(X-W);Z.push({key:B.key,value:B.value,y0:Math.max(W,X),y1:Math.min(W,X),height:se,data:B.data,xKey:ie}),Pe=X});let I=0;je.forEach(B=>{const W=I,X=I+B.value,se=X-W;Z.push({key:B.key,value:B.value,y0:Math.min(W,X),y1:Math.max(W,X),height:se,data:B.data,xKey:ie}),I=X})}});const ne=[le.min(Z,z=>Math.min(z.y0,z.y1))||0,le.max(Z,z=>Math.max(z.y0,z.y1))||0];let te=[0,0];r&&r.length>0&&(te=[le.min(r)||0,le.max(r)||0]);const re=[Math.min(ne[0],te[0]),Math.max(ne[1],te[1])],ee=le.scaleBand().domain(e.map(z=>V(z))).range([0,L]).padding(h),H=le.scaleLinear().domain([re[0],re[1]]).nice(6).range([K,0]),be=t?le.scaleOrdinal().domain(t).range(Array.isArray(n)?n:Object.values(n||{})):null,F=j==="single"?z=>z.color||(Array.isArray(n)?n[0]:Object.values(n||{})[0])||"#888":z=>be(z.key),ae=r&&r.length>0?e.map((z,ie)=>{const pe=ee(V(z))+ee.bandwidth()/2,_e=H(r[ie]||0);return{x:pe,y:_e}}):[];P.selectAll("*").remove();const Ce=P.append("g").attr("transform",`translate(${a.left},${a.top})`);_&&P.append("text").attr("x",R/2).attr("y",a.top-4).attr("text-anchor","middle").style("font-size","16px").style("font-weight","bold").style("fill","#333").text(_),m&&Ce.append("g").attr("class","grid").selectAll("line").data(H.ticks(6)).enter().append("line").attr("x1",0).attr("x2",L).attr("y1",z=>H(z)).attr("y2",z=>H(z)).style("stroke","#e0e0e0").style("stroke-width",.5);const ct=(z,ie=12)=>{if(!k||z.length<=ie)return[z];const pe=Math.floor(z.length/2);let _e=pe;for(let je=pe;je>=0;je--)if(z[je]===" "){_e=je;break}if(_e===pe){for(let je=pe;je<z.length;je++)if(z[je]===" "){_e=je;break}}return _e===pe&&(_e=pe),[z.substring(0,_e),z.substring(_e+1)]};u&&(Ce.append("g").attr("class","x-axis").attr("transform",`translate(0, ${K})`).call(le.axisBottom(ee).tickSizeOuter(0)).selectAll("text").remove(),Ce.append("g").attr("class","x-axis-labels").attr("transform",`translate(0, ${K})`).selectAll(".x-label-group").data(e).enter().append("g").attr("class","x-label-group").attr("transform",_e=>`translate(${ee(V(_e))+ee.bandwidth()/2}, 0)`).each(function(_e){const je=String(V(_e)),Pe=ct(je),I=le.select(this);if(Pe.length===1)I.append("text").attr("y",19).style("text-anchor",g===0?"middle":g<0?"end":"start").style("font-size","12px").style("fill","#605B56").attr("transform",g!==0?`rotate(${g} 0 15)`:null).text(Pe[0]);else{const X=-(Pe.length*14/2)+14/2;Pe.forEach((se,G)=>{I.append("text").attr("x",X+G*14).attr("y",19).style("text-anchor","end").style("font-size","11px").style("fill","#605B56").attr("transform",`rotate(${g} ${X+G*14} 15)`).text(se)})}}),w&&Ce.append("text").attr("transform",`translate(${L/2}, ${K+a.bottom-5})`).style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(w)),d&&(Ce.append("g").attr("class","y-axis").call(le.axisLeft(H).ticks(6).tickFormat(y)).call(z=>z.select(".domain").remove()),Ce.append("g").attr("class","y-ticks").attr("transform",`translate(${L}, 0)`).call(le.axisLeft(H).ticks(6).tickSizeInner(L)).call(z=>z.select(".domain").remove()).call(z=>z.selectAll(".tick text").remove()),E&&Ce.append("text").attr("transform","rotate(-90)").attr("y",0-a.left).attr("x",0-K/2).attr("dy","1em").style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(E));let Ie;v&&(Ie=le.select("body").append("div").attr("class","chart-tooltip").style("position","absolute").style("visibility","hidden").style("background","rgba(0, 0, 0, 0.8)").style("color","white").style("padding","8px").style("border-radius","4px").style("font-size","12px").style("pointer-events","none").style("z-index","1000"));const Ee=Ce.selectAll(".segment").data(Z,z=>`${z.xKey}-${z.key}`);Ee.exit().remove();const tt=Ee.enter().append("rect").attr("class","segment").attr("x",z=>ee(z.xKey)).attr("width",ee.bandwidth()).attr("y",z=>H(0)).attr("height",0).attr("fill",z=>F(z)).style("cursor",f||x||v?"pointer":"default").merge(Ee);if(tt.transition().duration(b).attr("x",z=>ee(z.xKey)).attr("y",z=>Math.min(H(z.y0),H(z.y1))).attr("height",z=>Math.abs(H(z.y1)-H(z.y0))),(v||f)&&tt.on("mouseover",function(z,ie){const pe=ie.value;if(v&&Ie){const _e=j==="single"?ie.data.title:$(ie.key);Ie.style("visibility","visible").html(j==="single"?`<strong>${_e}</strong><br/>${y(pe)}`:`<strong>${_e}</strong><br/>${ie.xKey}<br/>${y(pe)}`)}le.select(this).style("opacity",.8),f&&f(z,{key:ie.key,value:pe,data:ie.data})}).on("mousemove",function(z){v&&Ie&&Ie.style("top",z.pageY-10+"px").style("left",z.pageX+10+"px")}).on("mouseout",function(){v&&Ie&&Ie.style("visibility","hidden"),le.select(this).style("opacity",1)}),x&&tt.on("click",function(z,ie){const pe=ie.value;x(z,{key:ie.key,value:pe,data:ie.data})}),ae&&ae.length>1){const z=le.line().x(ie=>ie.x).y(ie=>ie.y).curve(le.curveMonotoneX);Ce.append("path").datum(ae).attr("class","line").attr("d",z).attr("fill","none").attr("stroke","#ff6b6b").attr("stroke-width",2).attr("stroke-linecap","round").attr("stroke-linejoin","round"),Ce.selectAll(".line-point").data(ae).enter().append("circle").attr("class","line-point").attr("cx",ie=>ie.x).attr("cy",ie=>ie.y).attr("r",4).attr("fill","#ff6b6b").attr("stroke","white").attr("stroke-width",1)}return()=>{Ie&&Ie.remove()}},[e,t,n,r,p,a,h,u,d,m,g,y,b,f,x,_,w,E,C,v,T,k,j]),l.jsx("div",{ref:M,className:`${ws.svgContainer} ${c}`,style:{width:o,height:i+a.top+a.bottom,overflowX:"auto"},children:l.jsx("svg",{ref:D,className:ws.svg})})};Yi.propTypes={data:s.arrayOf(s.object).isRequired,keys:s.arrayOf(s.string),colors:s.oneOfType([s.arrayOf(s.string),s.object]),lineData:s.arrayOf(s.number),width:s.oneOfType([s.string,s.number]),height:s.number,margin:s.shape({top:s.number,right:s.number,bottom:s.number,left:s.number}),className:s.string,showXAxisLabels:s.bool,showYAxisLabels:s.bool,showGrid:s.bool,xAxisTickRotation:s.number,yAxisTickFormat:s.func,barPadding:s.number,animationDuration:s.number,onBarHover:s.func,onBarClick:s.func,title:s.string,xAxisLabel:s.string,yAxisLabel:s.string,stackOrder:s.oneOf(["reverse","ascending","descending","insideOut","none"]),showTooltip:s.bool,reverseKeys:s.bool,minBarSlotWidth:s.number,wrapXAxisLabels:s.bool,mode:s.oneOf(["single","stacked"])};const zf="_externalContainer_1er0i_2",qf="_externalSintetic_1er0i_9",Wf="_titles_1er0i_13",Uf="_titleContainer_1er0i_22",Zf="_yearTitles_1er0i_36",Hf="_yearTitle_1er0i_36",Kf="_yearDatas_1er0i_50",Gf="_yearDataContainer_1er0i_58",Yf="_yearDataContent_1er0i_66",Xf="_bigNumber_1er0i_79",Qf="_circle_1er0i_82",Jf="_totalContainer_1er0i_99",ep="_total_1er0i_99",Be={externalContainer:zf,externalSintetic:qf,titles:Wf,titleContainer:Uf,yearTitles:Zf,yearTitle:Hf,yearDatas:Kf,yearDataContainer:Gf,yearDataContent:Yf,bigNumber:Xf,circle:Qf,totalContainer:Jf,total:ep},tp=e=>{if(e>=1e3||e<=-1e3)return parseInt(e.toFixed());if(e>=100||e<=-100)return parseFloat(e.toFixed(1));if(e>=10||e<=-10)return parseFloat(e.toFixed(2));if(e>0||e<0)return parseFloat(e.toFixed(3));if(e===0)return e},np=(e,t)=>{let n=0;return t.forEach(r=>{r[e]&&(n+=r[e])}),n},Xi=({data:e,keys:t,colors:n,locales:r,total:o=!1,years:i=!1,activeGraphics:a="ind",units:c={},translate:u,getTotal:d=np,columnWidth:m=50})=>{const g=u||(h=>h),y=h=>h==="demanda_red"||h==="reduccio_demanda_red"?(c.demanda||"").replace("(","").replace(")",""):c[h]||"";return l.jsxs("div",{className:`${Be.externalContainer} ${a==="sin"?Be.externalSintetic:""}`,children:[i===!0&&l.jsxs(l.Fragment,{children:[l.jsx("div",{}),l.jsx("div",{className:Be.yearTitles,children:e.map((h,b)=>l.jsx("div",{className:Be.yearTitle,style:{width:m},children:h.anyo},b))})]}),l.jsx("div",{className:Be.titles,children:t.map((h,b)=>l.jsxs("div",{className:Be.titleContainer,children:[g(r[h]),a!=="sin"&&l.jsx("span",{className:Be.circle,style:{background:n[h]}})]},b))}),o===!0&&l.jsx("div",{className:Be.totalContainer,children:t.map((h,b)=>{var f;return l.jsxs("div",{className:`${Be.total} ${d(h,e)>9999||d(h,e)<-9999?Be.bigNumber:""}`,children:[(f=d(h,e))==null?void 0:f.toLocaleString("es-ES")," ",y(h)]},b)})}),l.jsx("div",{className:Be.yearDatas,children:e.map((h,b)=>l.jsx("div",{className:Be.yearDataContainer,style:{width:m},children:t.map((f,x)=>{var _,w;return isNaN(h[f])?null:l.jsx("div",{className:`${Be.yearDataContent} ${h[f]>9999||h[f]<-9999?Be.bigNumber:""}`,children:h[f]<1e4||h[f]>-1e4?(_=tp(h[f]))==null?void 0:_.toLocaleString("es-ES"):(w=h[f])==null?void 0:w.toLocaleString("es-ES")},x)})},b))})]})};Xi.propTypes={data:s.arrayOf(s.shape({anyo:s.oneOfType([s.string,s.number]).isRequired})).isRequired,keys:s.arrayOf(s.string).isRequired,colors:s.objectOf(s.string).isRequired,locales:s.objectOf(s.string).isRequired,total:s.bool,years:s.bool,activeGraphics:s.oneOf(["ind","sin"]),units:s.objectOf(s.string),translate:s.func,getTotal:s.func,columnWidth:s.number};const rp="_speedGraphic_d1k72_2",Tr={speedGraphic:rp},Qi=({minValue:e=0,maxValue:t=100,value:n=50,title:r=!1,percent:o=!1,unit:i=!1,greenColor:a="#00CF1E",orangeColor:c="#FFAC00",redColor:u="#FF1E37"})=>{n<e&&(n=e),n>t&&(n=t);const d=(n-e)/(t-e),m=270+d*180,g=o?Math.round(d*100):n;return l.jsxs("div",{className:Tr.speedGraphic,children:[l.jsxs("svg",{width:"244",height:"130",viewBox:"0 0 244 130",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M0 122C0 111.944 1.2433 101.927 3.70162 92.1756L26.2619 97.8633C24.2724 105.755 23.2662 113.862 23.2662 122H0Z",fill:a}),l.jsx("path",{d:"M16.3442 61.0012C21.3714 52.2936 27.4557 44.2409 34.4588 37.0263L51.1534 53.2313C45.4859 59.0701 40.5619 65.5871 36.4934 72.6341L16.3442 61.0012Z",fill:a}),l.jsx("path",{d:"M60.9088 16.3976C69.6119 11.3628 78.9041 7.42322 88.5739 4.66843L94.9485 27.0443C87.1228 29.2737 79.6027 32.462 72.5592 36.5367L60.9088 16.3976Z",fill:c}),l.jsx("path",{d:"M121.797 0.000169508C131.851 -0.0165912 141.869 1.20965 151.623 3.65101L145.974 26.2209C138.08 24.2451 129.972 23.2527 121.835 23.2663L121.797 0.000169508Z",fill:c}),l.jsx("path",{d:"M182.623 16.1279C191.348 21.124 199.422 27.1797 206.662 34.157L190.516 50.9092C184.657 45.2625 178.123 40.3617 171.061 36.3183L182.623 16.1279Z",fill:u}),l.jsx("path",{d:"M227.238 60.2836C232.325 68.9568 236.319 78.2255 239.131 87.8788L216.794 94.3859C214.518 86.5735 211.285 79.0725 207.169 72.0533L227.238 60.2836Z",fill:u}),l.jsx("path",{d:"M4.15505 90.4316C6.75674 80.7194 10.5491 71.3662 15.4458 62.5846L35.7663 73.9155C31.8035 81.0224 28.7343 88.5919 26.6288 96.4519L4.15505 90.4316Z",fill:a}),l.jsx("path",{d:"M35.733 35.733C42.8426 28.6233 50.8039 22.4198 59.4357 17.2636L71.3671 37.2375C64.3814 41.4104 57.9384 46.4308 52.1846 52.1846L35.733 35.733Z",fill:a}),l.jsx("path",{d:"M90.3004 4.19027C100.01 1.57776 110.005 0.175523 120.058 0.0154601L120.428 23.2787C112.292 23.4082 104.203 24.543 96.3457 26.6573L90.3004 4.19027Z",fill:c}),l.jsx("path",{d:"M153.423 4.11614C163.138 6.70584 172.496 10.4866 181.284 15.3725L169.978 35.707C162.866 31.7529 155.293 28.6932 147.43 26.5973L153.423 4.11614Z",fill:c}),l.jsx("path",{d:"M239.602 89.538C242.532 100.152 244.011 111.114 244 122.125L220.734 122.101C220.743 113.19 219.546 104.319 217.175 95.7287L239.602 89.538Z",fill:u}),l.jsx("path",{d:"M207.769 35.2376C214.919 42.3062 221.168 50.2316 226.374 58.8336L206.469 70.8798C202.256 63.9183 197.199 57.5043 191.412 51.7837L207.769 35.2376Z",fill:u}),l.jsx("g",{transform:`rotate(${m} 122 122)`,children:l.jsx("path",{id:"aguja",d:"M121 119.5V33",stroke:"#605B56","stroke-width":"2"})})]}),l.jsxs("div",{className:Tr.value,children:[g,o&&"%",i&&i]}),r&&l.jsx("div",{className:Tr.title,children:r})]})};Qi.propTypes={minValue:s.number.isRequired,maxValue:s.number.isRequired,value:s.number.isRequired,percent:s.bool,title:s.string,unit:s.string,greenColor:s.string,orangeColor:s.string,redColor:s.string};const jr="#ffffff",op="#ffffff";function at(e,t,n,r){const o=(r-90)*Math.PI/180;return{x:e+n*Math.cos(o),y:t+n*Math.sin(o)}}function Ss(e,t,n,r,o,i){if(Math.abs(i-o)>=359.99)return n===0?`M ${e-r} ${t} A ${r} ${r} 0 1 1 ${e+r} ${t} A ${r} ${r} 0 1 1 ${e-r} ${t} Z`:[`M ${e-r} ${t} A ${r} ${r} 0 1 1 ${e+r} ${t} A ${r} ${r} 0 1 1 ${e-r} ${t} Z`,`M ${e-n} ${t} A ${n} ${n} 0 1 0 ${e+n} ${t} A ${n} ${n} 0 1 0 ${e-n} ${t} Z`].join(" ");const a=at(e,t,r,o),c=at(e,t,r,i),u=i-o>180?1:0;if(n===0)return`M ${e} ${t} L ${a.x} ${a.y} A ${r} ${r} 0 ${u} 1 ${c.x} ${c.y} Z`;const d=at(e,t,n,i),m=at(e,t,n,o);return[`M ${a.x} ${a.y}`,`A ${r} ${r} 0 ${u} 1 ${c.x} ${c.y}`,`L ${d.x} ${d.y}`,`A ${n} ${n} 0 ${u} 0 ${m.x} ${m.y}`,"Z"].join(" ")}function sp(e,t=0){const n=e.reduce((d,m)=>d+(m.value||0),0),r=e.length;if(n<=0||r===0)return[];const o=e.map(d=>d.value/n*100),i=Math.min(t,r>0?360/r-.01:0);let a=o.map(d=>d/100*360),c=new Array(r).fill(!1);if(i>0){let d=0,m=!0;for(;m&&d<r+2;){m=!1,d+=1;for(let g=0;g<r;g++)!c[g]&&a[g]<i&&(a[g]=i,c[g]=!0,m=!0);if(m){const g=a.reduce((f,x,_)=>c[_]?f+x:f,0),y=a.map((f,x)=>x).filter(f=>!c[f]),h=360-g,b=y.reduce((f,x)=>f+o[x]/100*360,0);y.forEach(f=>{const x=o[f]/100*360;a[f]=b>0?x/b*h:h/y.length})}}}let u=0;return e.map((d,m)=>{const g=u,y=u+a[m];return u=y,{...d,sa:g,ea:y,percent:o[m]}})}function Ji(e){const t=Math.round(e*10)/10;return Number.isInteger(t)?t:t.toFixed(1)}function ip(e){return typeof e=="number"?e.toLocaleString():e}function Ts(e,t){return t?`${Ji(e.percent)}%`:ip(e.value)}function js(e,t,n,r,o){const i=n+(r-n)/2,a=at(e,t,o,i);return{tx:a.x-e,ty:a.y-t}}const ea=({type:e="cheese",data:t=[],title:n,size:r=260,donutThickness:o=56,gapWidth:i=3,gapColor:a,backgroundColor:c="transparent",fontColor:u="black",fontColorInside:d="white",containerStyles:m={},alignLeft:g=!1,valuesArePercentages:y=!0,minSliceAngle:h=4})=>{const[b,f]=S.useState(null),x=r/2,_=r/2,w=r/2-14,E=e==="donut"?w-o:0,C=e==="donut"?w-o/2:w*.62,v=S.useMemo(()=>sp(t,h),[t,h]),T=b!==null?v[b]:null,A=v.some(j=>j.ea-j.sa>=359.99),k=a||(c==="transparent"?op:c);return l.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"4px",padding:"0px",background:c,borderRadius:"16px",fontFamily:"'Segoe UI', sans-serif",...m},children:[l.jsxs("div",{style:{minHeight:"40px",display:"flex",flexDirection:"column",gap:"2px"},children:[n&&l.jsx("h2",{style:{margin:0,color:u,fontSize:"22px",fontWeight:"700",letterSpacing:"-0.5px"},children:n}),l.jsx("div",{style:{height:"22px",display:"flex",alignItems:"center",gap:"8px",transition:"opacity 0.15s",opacity:T?1:0},children:T&&l.jsxs(l.Fragment,{children:[l.jsx("span",{style:{display:"inline-block",width:"10px",height:"10px",borderRadius:"50%",background:T.color||jr,flexShrink:0}}),l.jsxs("span",{style:{color:u,fontSize:"14px",fontWeight:"600"},children:[T.title," —"," ",Ts(T,y),!y&&` (${Ji(T.percent)}%)`]})]})})]}),l.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:g?"flex-start":"center",gap:"16px"},children:[l.jsxs("svg",{width:r,height:r,viewBox:`0 0 ${r} ${r}`,style:{overflow:"visible"},children:[v.map((j,D)=>{const M=b===D,{tx:p,ty:N}=M&&!A?js(x,_,j.sa,j.ea,10):{tx:0,ty:0};return l.jsx("g",{transform:`translate(${p}, ${N})`,style:{transition:"transform 0.18s ease",pointerEvents:"none"},children:l.jsx("path",{d:Ss(x,_,E,w,j.sa,j.ea),fill:j.color||jr,style:{filter:M?"brightness(1.25)":"brightness(1)",transition:"filter 0.18s ease"}})},D)}),!A&&v.map((j,D)=>{const M=at(x,_,w,j.sa),p=e==="cheese"?x:at(x,_,E,j.sa).x,N=e==="cheese"?_:at(x,_,E,j.sa).y;return l.jsx("line",{x1:p,y1:N,x2:M.x,y2:M.y,stroke:k,strokeWidth:i,strokeLinecap:"butt",style:{pointerEvents:"none"}},`gap-${D}`)}),v.map((j,D)=>{if(j.ea-j.sa<20)return null;const M=b===D,{tx:p,ty:N}=M&&!A?js(x,_,j.sa,j.ea,10):{tx:0,ty:0},$=j.sa+(j.ea-j.sa)/2,P=at(x,_,C,$);return l.jsx("text",{x:P.x+p,y:P.y+N,textAnchor:"middle",dominantBaseline:"middle",fill:d,fontSize:"14",fontWeight:"700",fontFamily:"'Segoe UI', sans-serif",pointerEvents:"none",style:{transition:"x 0.18s ease, y 0.18s ease"},children:Ts(j,y)},`lbl-${D}`)}),v.map((j,D)=>l.jsx("path",{d:Ss(x,_,E,w,j.sa,j.ea),fill:"transparent",style:{cursor:"pointer"},onMouseEnter:()=>f(D),onMouseLeave:()=>f(null)},`hit-${D}`))]}),l.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px 24px",justifyContent:g?"flex-start":"center"},children:t.map((j,D)=>l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",cursor:"pointer",opacity:b===null||b===D?1:.4,transition:"opacity 0.15s"},onMouseEnter:()=>f(D),onMouseLeave:()=>f(null),children:[l.jsx("span",{style:{width:"32px",height:"14px",borderRadius:"3px",background:j.color||jr,flexShrink:0}}),l.jsx("span",{style:{color:u,fontSize:"13px",fontWeight:"400"},children:j.title})]},D))})]})]})};ea.propTypes={type:s.oneOf(["cheese","donut"]),data:s.arrayOf(s.shape({value:s.number.isRequired,title:s.string.isRequired,color:s.string})).isRequired,title:s.string,size:s.number,donutThickness:s.number,gapWidth:s.number,gapColor:s.string,backgroundColor:s.string,fontColor:s.string,fontColorInside:s.string,containerStyles:s.object,alignLeft:s.bool,valuesArePercentages:s.bool,minSliceAngle:s.number};const ks=["#a8d8cf","#3bbfa0","#5dd4b8","#7ed4c2","#2aa88a"],ta=({data:e=[],title:t,backgroundColor:n="#0d3d4a",fontColor:r="#ffffff",barHeight:o=52,animated:i=!0,borderRadius:a,containerStyles:c={},fontColorInside:u="white",borderFontColorInside:d})=>{const[m,g]=S.useState(i?0:1);S.useEffect(()=>{if(!i)return;const b=requestAnimationFrame(()=>g(1));return()=>cancelAnimationFrame(b)},[i]);const y=Math.max(...e.map(b=>b.value),1),h=a??"6px";return l.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"0px",background:n,borderRadius:"16px",fontFamily:"'Segoe UI', sans-serif",minWidth:"420px",...c},children:[t&&l.jsx("h2",{style:{margin:"0 0 20px 0",color:r,fontSize:"22px",fontWeight:"700",letterSpacing:"-0.4px"},children:t}),l.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"18px"},children:e.map((b,f)=>{const x=b.color||ks[f%ks.length],_=b.value/y*100*m;return l.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[l.jsx("span",{style:{color:r,fontSize:"14px",fontWeight:"400",opacity:.9},children:b.title}),l.jsxs("div",{style:{position:"relative",height:`${o}px`,background:"transparent",borderRadius:h,overflow:"hidden"},children:[l.jsx("div",{style:{position:"absolute",left:0,top:0,height:"100%",width:`${_}%`,background:x,borderRadius:h,transition:i?"width 0.8s cubic-bezier(0.16, 1, 0.3, 1)":"none"}}),l.jsx("span",{style:{position:"absolute",left:"14px",top:"50%",transform:"translateY(-50%)",color:u||n,fontSize:"18px",fontWeight:"700",pointerEvents:"none",letterSpacing:"-0.3px",...d?{WebkitTextStroke:`1px ${d}`,paintOrder:"stroke fill"}:{}},children:b.value})]})]},f)})})]})};ta.propTypes={data:s.arrayOf(s.shape({title:s.string.isRequired,value:s.number.isRequired,color:s.string})),title:s.string,backgroundColor:s.string,fontColor:s.string,fontColorInside:s.string,borderFontColorInside:s.string,barHeight:s.number,animated:s.bool,borderRadius:s.oneOfType([s.string,s.number]),containerStyles:s.object};const $s=["#a8d8cf","#3bbfa0","#5dd4b8","#7ed4c2","#2aa88a"],na=({data:e=[],title:t,backgroundColor:n="black",fontColor:r="#ffffff",fontColorInside:o="#0d3d4a",borderFontColorInside:i,barWidth:a=52,maxBarHeight:c=200,animated:u=!0,separatorColor:d,containerStyles:m={}})=>{const[g,y]=S.useState(u?0:1);S.useEffect(()=>{if(!u)return;const E=requestAnimationFrame(()=>requestAnimationFrame(()=>y(1)));return()=>cancelAnimationFrame(E)},[u]);const h=Math.max(...e.map(E=>E.value),1),b=d||(r==="#ffffff"?"rgba(255,255,255,0.25)":"rgba(0,0,0,0.15)"),f=12,x=12,_=e.length*a+Math.max(0,e.length-1)*f,w={fontSize:"15px",fontWeight:"700",letterSpacing:"-0.3px",lineHeight:1,pointerEvents:"none",whiteSpace:"nowrap",...i?{WebkitTextStroke:`1px ${i}`,paintOrder:"stroke fill"}:{}};return l.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"0",background:n,borderRadius:"16px",fontFamily:"'Segoe UI', sans-serif",...m},children:[t&&l.jsx("h2",{style:{margin:"0 0 24px 0",color:r,fontSize:"22px",fontWeight:"700",letterSpacing:"-0.4px"},children:t}),l.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:0,overflow:"visible"},children:[l.jsx("div",{style:{display:"flex",alignItems:"flex-end",gap:`${f}px`,width:`${_}px`,height:`${c}px`},children:e.map((E,C)=>{const v=E.color||$s[C%$s.length],T=E.value===0,A=T?0:E.value/h*c*g;return l.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-end",width:`${a}px`,height:"100%"},children:T?l.jsx("span",{style:{...w,color:o,marginBottom:"6px"},children:E.value}):l.jsx("div",{style:{position:"relative",width:"100%",height:`${A}px`,background:v,borderRadius:"6px 6px 0 0",transition:u?"height 0.85s cubic-bezier(0.16, 1, 0.3, 1)":"none",display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"10px"},children:l.jsx("span",{style:{...w,color:o},children:E.value})})},C)})}),l.jsx("div",{style:{width:`${_+x*2}px`,marginLeft:`-${x}px`,height:"1.5px",background:b,borderRadius:"1px"}}),l.jsx("div",{style:{display:"flex",gap:`${f}px`,width:`${_}px`,marginTop:"10px"},children:e.map((E,C)=>l.jsx("div",{style:{width:`${a}px`,textAlign:"center",color:r,fontSize:"13px",fontWeight:"400",opacity:.8,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:E.title},C))})]})]})};na.propTypes={data:s.arrayOf(s.shape({title:s.string.isRequired,value:s.number.isRequired,color:s.string})).isRequired,title:s.string,backgroundColor:s.string,fontColor:s.string,fontColorInside:s.string,borderFontColorInside:s.string,barWidth:s.number,maxBarHeight:s.number,animated:s.bool,separatorColor:s.string,containerStyles:s.object};const ap="_percentageBarContainer_lgkme_3",lp="_barContainer_lgkme_10",cp="_segment_lgkme_19",up="_handle_lgkme_36",dp="_labelsContainer_lgkme_68",fp="_labelItem_lgkme_73",pp="_labelsListContainer_lgkme_85",mp="_labelColor_lgkme_105",hp="_labelText_lgkme_114",gp="_labelValue_lgkme_122",yp="_labelTranslation_lgkme_126",Me={percentageBarContainer:ap,barContainer:lp,segment:cp,handle:up,labelsContainer:dp,labelItem:fp,labelsListContainer:pp,labelColor:mp,labelText:hp,labelValue:gp,labelTranslation:yp},bp=2,Es=e=>{const t=e.reduce((n,r)=>n+r.value,0);return t===0?e.map(()=>100/e.length):e.map(n=>n.value/t*100)},kr=(e,t=100)=>e.map(n=>n.value/t*100),Ns=(e,t)=>{try{const r=new Function("x",`return (${t})`)(e);return isNaN(r)?"N/A":r.toFixed(2)}catch{return"N/A"}},ra=({items:e,showLabels:t="bar",showTranslations:n=!0,onChange:r,minPercentage:o=bp,maxValue:i=100,labelTextColor:a,labelValueColor:c})=>{const[u,d]=S.useState(()=>Es(e)),m=S.useRef(null),g=S.useRef(null);S.useEffect(()=>{e&&e.length>0&&d(Es(e))},[e]);const y=S.useCallback(f=>{if(!m.current||!g.current)return;const{dividerIndex:x}=m.current,_=g.current.getBoundingClientRect(),w=(f.touches?f.touches[0].clientX:f.clientX)-_.left,E=Math.max(0,Math.min(100,w/_.width*100));d(C=>{const v=[...C],T=C.slice(0,x).reduce((D,M)=>D+M,0),A=T+C[x]+C[x+1];let k=E-T,j=A-E;if(k<o&&(k=o,j=A-T-o),j<o&&(j=o,k=A-T-o),v[x]=k,v[x+1]=j,r)try{const D=e.reduce((M,p)=>M+p.value,0);r(e.map((M,p)=>({...M,value:v[p]/100*D})))}catch(D){console.error("PercentageBar onChange error:",D)}return v})},[o,r,e]),h=S.useCallback(()=>{m.current&&(m.current=null,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",h),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",h),d(f=>{if(r){const x=e.reduce((_,w)=>_+w.value,0);r(e.map((_,w)=>({..._,value:f[w]/100*x})))}return f}))},[y,r,e]),b=(f,x)=>{x.preventDefault(),m.current={dividerIndex:f},document.addEventListener("mousemove",y),document.addEventListener("mouseup",h),document.addEventListener("touchmove",y,{passive:!1}),document.addEventListener("touchend",h)};return l.jsxs("div",{className:Me.percentageBarContainer,children:[l.jsx("div",{className:Me.barContainer,ref:g,children:e.map((f,x)=>{var _;return l.jsx("div",{className:Me.segment,style:{width:`${u[x]}%`,backgroundColor:f.color||"#ccc"},children:x>0&&l.jsx("div",{className:Me.handle,onMouseDown:w=>b(x-1,w),onTouchStart:w=>b(x-1,w),role:"slider","aria-label":`Divisor entre ${(_=e[x-1])==null?void 0:_.title} y ${f.title}`,"aria-valuenow":Math.round(u[x]),tabIndex:0})},f.id??x)})}),t==="bar"&&l.jsx("div",{className:Me.labelsContainer,children:e.map((f,x)=>l.jsxs("div",{className:Me.labelItem,style:{width:`${u[x]}%`},children:[l.jsx("span",{className:Me.labelColor,style:{backgroundColor:f.color}}),l.jsx("span",{className:Me.labelText,style:{color:a||"#fff"},children:f.title}),l.jsxs("span",{className:Me.labelValue,style:{color:c||"#fff"},children:[kr(e,i)[x].toFixed(1),"%"]}),n&&f.translationFormula&&l.jsxs("span",{className:Me.labelTranslation,children:["(",Ns(u[x],f.translationFormula),")"]})]},f.id??x))}),t==="list"&&l.jsx("div",{className:Me.labelsListContainer,children:e.map((f,x)=>l.jsxs("div",{className:Me.labelItem,children:[l.jsx("span",{className:Me.labelColor,style:{backgroundColor:f.color}}),l.jsx("span",{className:Me.labelText,children:f.title}),l.jsxs("span",{className:Me.labelValue,children:[kr(e,i)[x].toFixed(1),"%"]}),n&&f.translationFormula&&l.jsxs("span",{className:Me.labelTranslation,children:["(",Ns(kr(e,i)[x],f.translationFormula),")"]})]},f.id??x))})]})};ra.propTypes={items:s.arrayOf(s.shape({id:s.oneOfType([s.string,s.number]),title:s.string.isRequired,value:s.number.isRequired,color:s.string.isRequired,translationFormula:s.string})).isRequired,showLabels:s.string,showTranslations:s.bool,onChange:s.func,minPercentage:s.number,maxValue:s.number,labelTextColor:s.string,labelValueColor:s.string};const vp="_overlay_1vbid_2",xp="_modal_1vbid_16",Cp="_content_1vbid_28",_p="_iconContainer_1vbid_36",wp="_iconSvg_1vbid_43",Sp="_textContainer_1vbid_48",Tp="_title_1vbid_55",jp="_message_1vbid_62",kp="_closeButton_1vbid_69",Qe={overlay:vp,modal:xp,content:Cp,iconContainer:_p,iconSvg:wp,textContainer:Sp,title:Tp,message:jp,closeButton:kp},ao=({isOpen:e,onClose:t,title:n,message:r,isError:o=!1,isSuccess:i=!1,customIcon:a=null,iconColor:c=null,textColor:u=null,backgroundColor:d=null,borderColor:m=null,showCloseButton:g=!0,autoClose:y=!1,autoCloseDelay:h=3e3})=>{if(S.useEffect(()=>{if(y&&e){const w=setTimeout(()=>{t()},h);return()=>clearTimeout(w)}},[y,e,t,h]),!e)return null;const b=()=>{const w={};return d&&(w.backgroundColor=d),m&&(w.borderColor=m),o&&!d?(w.backgroundColor="#fff5f5",w.borderColor="#feb2b2"):i&&!d&&(w.backgroundColor="#f0fff4",w.borderColor="#9ae6b4"),w},f=()=>{const w={};return u&&(w.color=u),o&&!u?w.color="#c53030":i&&!u&&(w.color="#276749"),w},x=()=>{const w={};return c&&(w.color=c),o&&!c?w.color="#c53030":i&&!c&&(w.color="#276749"),w},_=()=>a||(o?l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:Qe.iconSvg,style:x(),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[l.jsx("circle",{cx:"12",cy:"12",r:"10"}),l.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),l.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]}):i?l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:Qe.iconSvg,style:x(),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[l.jsx("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),l.jsx("polyline",{points:"22 4 12 14.01 9 11.01"})]}):null);return l.jsx("div",{className:Qe.overlay,children:l.jsx("div",{className:Qe.modal,style:b(),children:l.jsxs("div",{className:Qe.content,children:[l.jsx("div",{className:Qe.iconContainer,children:_()}),l.jsxs("div",{className:Qe.textContainer,children:[n&&l.jsx("h3",{className:Qe.title,style:f(),children:n}),l.jsx("p",{className:Qe.message,style:f(),children:r})]}),g&&l.jsx("button",{className:Qe.closeButton,onClick:t,"aria-label":"Close modal",style:f(),children:"✕"})]})})})};ao.propTypes={isOpen:s.bool.isRequired,onClose:s.func.isRequired,title:s.string,message:s.string.isRequired,isError:s.bool,isSuccess:s.bool,customIcon:s.node,iconColor:s.string,textColor:s.string,backgroundColor:s.string,borderColor:s.string,showCloseButton:s.bool,autoClose:s.bool,autoCloseDelay:s.number};ao.defaultProps={isError:!1,isSuccess:!1,showCloseButton:!0,autoClose:!1,autoCloseDelay:3e3};const $p="_header_13kbt_2",Ep="_leftComponents_13kbt_13",Np="_centerComponents_13kbt_14",Op="_rightComponents_13kbt_15",Ap="_componentsContainer_13kbt_32",St={header:$p,leftComponents:Ep,centerComponents:Np,rightComponents:Op,componentsContainer:Ap},oa=({cssProps:e,leftComponents:t=[],centerComponents:n=[],rightComponents:r=[],zIndex:o=10,height:i=60,backgroundColor:a="#605B56",isFooter:c=!1})=>l.jsxs("div",{className:St.header,style:{...e,zIndex:o,height:i,backgroundColor:a,top:c?"auto":0,bottom:c?0:"auto"},children:[l.jsx("div",{className:St.leftComponents,children:t.map((u,d)=>l.jsx("div",{className:St.componentsContainer,children:u},d))}),l.jsx("div",{className:St.centerComponents,children:n.map((u,d)=>l.jsx("div",{className:St.componentsContainer,children:u},d))}),l.jsx("div",{className:St.rightComponents,children:r.map((u,d)=>l.jsx("div",{className:St.componentsContainer,children:u},d))})]});oa.propTypes={leftComponents:s.arrayOf(s.node),centerComponents:s.arrayOf(s.node),rightComponents:s.arrayOf(s.node),cssProps:s.object,zIndex:s.number,height:s.number,backgroundColor:s.string,isFooter:s.bool};const Lp="_sidebar_1kaqu_2",Mp="_open_1kaqu_16",Rp="_content_1kaqu_20",Dp="_closeButton_1kaqu_25",Ln={sidebar:Lp,open:Mp,content:Rp,closeButton:Dp},Ip="data:image/svg+xml,%3csvg%20width='19'%20height='19'%20viewBox='0%200%2019%2019'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%203699'%3e%3cpath%20id='Vector%20223'%20d='M1%201L18.1566%2018.1566'%20stroke='%23605B56'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20id='Vector%20224'%20d='M18.1575%201L1.00083%2018.1566'%20stroke='%23605B56'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/g%3e%3c/svg%3e",sa=({width:e="300px",children:t,showRightBar:n,onCloseBar:r})=>{const o=()=>{r()};return l.jsx("div",{className:`${Ln.sidebar} ${n?Ln.open:""}`,style:{width:n?e:0},children:n&&l.jsxs("div",{className:Ln.content,children:[l.jsx("button",{className:Ln.closeButton,onClick:o,children:l.jsx("img",{src:Ip,alt:"Close Sidebar"})}),t]})})};sa.propTypes={width:s.string,children:s.node,showRightBar:s.bool,onCloseBar:s.func};exports.AmbitSelector=Is;exports.BarChart=Zr;exports.BurgerMenu=io;exports.ButtonsBar=Zi;exports.ButtonsList=Bs;exports.CategorySelector=Fr;exports.DropdownList=yt;exports.EditAmbit=fl;exports.ErrorMessage=Kt;exports.FiltersAmbit=Us;exports.Form=Xd;exports.GeneralButton=un;exports.Graphic=Zs;exports.GraphicLegend=Xi;exports.Groupedbarchart=Gi;exports.HeaderSection=oa;exports.HorizontalBarChart=ta;exports.IndicatorsList=Ys;exports.LangSelector=Xs;exports.Legend=Qs;exports.ListSelector=Di;exports.Loader=Ki;exports.LogInButton=Mi;exports.LogoApp=Js;exports.MapboxMap=si;exports.MaplibreMap=ii;exports.ModalAlert=Ui;exports.PercentageBar=ra;exports.PieChart=ea;exports.RadioButtonInput=Wi;exports.RankingSlider=ro;exports.RightSidebar=sa;exports.SectionBar=ai;exports.SelectInput=qi;exports.SpeedGraphic=Qi;exports.Stackedbarchart=Yi;exports.StatusModal=ao;exports.StatusText=so;exports.Steps=oo;exports.Switch=Hi;exports.TextInput=Pr;exports.TimeSlider=Ai;exports.Tooltip=Je;exports.TopNavMenu=Li;exports.VerticalBarChart=na;
82
+ ${i?st.completed:""}`,style:o?{backgroundColor:t}:{},onClick:n.onClick,children:r+1}),r<e.length-1&&l.jsx("div",{className:st.connector})]}),l.jsx("div",{className:`${st.label} ${o?st.labelActive:""}`,children:n.name})]},r)})});oo.propTypes={steps:s.arrayOf(s.shape({name:s.string.isRequired,onClick:s.func,status:s.oneOf(["inactive","active","completed"]).isRequired})).isRequired,activeColor:s.string};oo.defaultProps={activeColor:"#C2185B"};const gf="_statusTextContainer_ch14r_2",yf={statusTextContainer:gf},so=({text:e,color:t})=>l.jsx("div",{className:yf.statusTextContainer,style:{background:t},children:l.jsx("span",{children:e})});so.propTypes={text:s.string,color:s.string};so.defaultProps={color:"#C2185B"};const bf="_buttonsContainer_1c7dw_2",vf="_button_1c7dw_2",xf="_active_1c7dw_20",On={buttonsContainer:bf,button:vf,active:xf},Zi=({buttons:e=[]})=>{const{t}=se.useTranslation();return l.jsx("div",{className:`${On.buttonsContainer}`,children:e.map((n,r)=>{const{isActive:o,name:i,onClick:a}=n;return l.jsx("div",{children:l.jsx("button",{onClick:a,className:`${On.button}
83
+ ${o&&On.active}`,children:l.jsx("span",{className:On.buttonName,children:t(i)})})},r)})})};Zi.propTypes={buttons:s.arrayOf(s.shape({isActive:s.bool,name:s.string,onClick:s.func})).isRequired};const Cf="_switchContainer_194wl_2",_f="_labelRight_194wl_9",wf="_labelLeft_194wl_9",Sf="_slider_194wl_28",Tf="_disabled_194wl_54",Ft={switchContainer:Cf,labelRight:_f,labelLeft:wf,switch:"_switch_194wl_2",slider:Sf,disabled:Tf},Hi=({input:e,reactHookFormInstance:t,onChange:n,onoff:r=!0})=>{const{code:o,labelLeft:i,labelRight:a,defValue:c=!1,colorOn:u="#5A514D",disabled:d=!1,width:m=240}=e,{t:g}=se.useTranslation(),{control:y}=t||{},[h,b]=w.useState(c),f=_=>{b(_),n&&n(_)},x=(_,S)=>l.jsxs("div",{className:Ft.switchContainer,style:{width:`${m}px`},children:[i&&l.jsx("span",{className:Ft.labelLeft,style:{width:`${(m-74)/2}px`},children:g(i)}),l.jsxs("label",{className:`${Ft.switch} ${d?Ft.disabled:""}`,children:[l.jsx("input",{type:"checkbox",checked:!!_,onChange:()=>S(!_),disabled:d}),l.jsx("span",{className:Ft.slider,style:{"--switch-thumb-color":r?_?u:"#ccc":u}})]}),a&&l.jsx("span",{className:Ft.labelRight,style:{width:`${(m-74)/2}px`},children:g(a)})]});return t?l.jsx(mn,{name:o,control:y,defaultValue:c,render:({field:_})=>x(_.value,_.onChange)}):x(h,f)};Hi.propTypes={input:s.shape({code:s.string,labelLeft:s.string,labelRight:s.string,defValue:s.bool,colorOn:s.string,disabled:s.bool}),reactHookFormInstance:s.object,onChange:s.func};const kf="_overlay_1xyw2_2",jf="_popup_1xyw2_15",$f="_gif_1xyw2_25",Ef="_message_1xyw2_31",An={overlay:kf,popup:jf,gif:$f,message:Ef},Ki=({gifSrc:e,message:t})=>l.jsx("div",{className:An.overlay,children:l.jsxs("div",{className:An.popup,children:[e&&l.jsx("img",{src:e,alt:"loading animation",className:An.gif}),t&&l.jsx("p",{className:An.message,children:t})]})});Ki.propTypes={gifSrc:s.string,message:s.string};const Nf="_container_1pl8d_3",Of="_burger_1pl8d_10",Af="_menu_1pl8d_21",Lf="_menuOpen_1pl8d_35",Mf="_menuClose_1pl8d_40",Rf="_list_1pl8d_46",If="_item_1pl8d_56",Df="_button_1pl8d_91",Xe={container:Nf,burger:Of,menu:Af,menuOpen:Lf,menuClose:Mf,list:Rf,item:If,button:Df},io=({options:e,backgroundColor:t,textColor:n,iconColor:r})=>{const[o,i]=w.useState(!1),a=()=>i(b=>!b),c=()=>i(!1),u=7,d=o?11:0,m=o?13:0,g=o?-11.51666:0,y=o?-13:0,h="0.35s";return l.jsxs("div",{className:Xe.container,children:[l.jsx("button",{onClick:a,className:Xe.burger,children:l.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[l.jsx("g",{style:{transform:`translateY(${d}px)`,transition:`transform ${h} cubic-bezier(0.42, 0, 0.58, 1)`},children:l.jsx("circle",{cx:"20",cy:"9",r:u,fill:r})}),l.jsx("g",{style:{transform:`translate(${m}px, ${g}px)`,transition:`transform ${h} cubic-bezier(0.42, 0, 0.58, 1)`},children:l.jsx("circle",{cx:"7",cy:"31.51666",r:u,fill:r})}),l.jsx("g",{style:{transform:`translate(${y}px, ${g}px)`,transition:`transform ${h} cubic-bezier(0.42, 0, 0.58, 1)`},children:l.jsx("circle",{cx:"33",cy:"31.51666",r:u,fill:r})}),l.jsx("g",{style:{opacity:o?1:0,transition:`opacity ${h} cubic-bezier(0.42, 0, 0.58, 1)`},children:l.jsx("circle",{cx:"20",cy:"20",r:"10",fill:r})}),l.jsxs("g",{stroke:t,strokeWidth:"2",strokeLinecap:"round",style:{opacity:o?1:0,transition:`opacity ${h} cubic-bezier(0.42, 0, 0.58, 1)`},children:[l.jsx("line",{x1:"17",y1:"17",x2:"23",y2:"23"}),l.jsx("line",{x1:"23",y1:"17",x2:"17",y2:"23"})]})]})}),l.jsx("div",{className:`${Xe.menu} ${o?Xe.menuOpen:Xe.menuClose}`,style:{backgroundColor:t,color:n},children:l.jsx("ul",{className:Xe.list,children:e.map((b,f)=>l.jsxs("li",{className:Xe.item,children:[b.url&&l.jsx(As.NavLink,{to:b.url,className:({isActive:x})=>`${Xe.link} ${x?Xe.active:""}`,onClick:c,style:{color:n},children:b.name}),b.onclick&&l.jsx("button",{className:Xe.button,onClick:()=>{b.onclick(),c()},children:b.name}),b.component&&b.component]},f))})})]})};io.propTypes={options:s.array.isRequired,backgroundColor:s.string,textColor:s.string,iconColor:s.string};io.defaultProps={backgroundColor:"#ffffff",textColor:"#000000",iconColor:"#000000"};const Bf="_svgContainer_1rxoe_2",Pf="_svg_1rxoe_2",_s={svgContainer:Bf,svg:Pf},Gi=({data:e,keys:t,colors:n,width:r="100%",height:o=300,margin:i={top:20,right:20,bottom:60,left:60},className:a="",showXAxisLabels:c=!0,showYAxisLabels:u=!0,showGrid:d=!0,xAxisTickRotation:m=-90,yAxisTickFormat:g=C=>C.toLocaleString("es-ES"),barPadding:y=.1,groupPadding:h=.05,animationDuration:b=750,onBarHover:f,onBarClick:x,title:_,xAxisLabel:S,yAxisLabel:E})=>{const C=w.useRef(),v=w.useRef(),[T,A]=w.useState({width:0,height:0});return w.useEffect(()=>{const k=()=>{if(v.current){const $=v.current.getBoundingClientRect().width;A({width:typeof r=="number"?r:$,height:o})}};return k(),window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)},[r,o]),w.useEffect(()=>{if(!e||e.length===0||T.width===0)return;const k=ce.select(C.current),$=T.width,P=T.height,I=$-i.left-i.right,p=P-i.top-i.bottom;if(I<=0||p<=0)return;const N=e.map(F=>F.anyo||F.year||F.x),j=t,V=ce.min(e,F=>ce.min(j,K=>F[K]))||0,W=ce.max(e,F=>ce.max(j,K=>F[K]))||0,D=ce.scaleBand().domain(N).rangeRound([0,I]).paddingInner(y),q=ce.scaleBand().domain(j).rangeRound([0,D.bandwidth()]).padding(h),te=ce.scaleLinear().domain([Math.min(0,V),W]).nice().rangeRound([p,0]),L=ce.scaleOrdinal().domain(j).range(Array.isArray(n)?n:Object.values(n||{}));k.selectAll("*").remove();const M=k.append("g").attr("transform",`translate(${i.left},${i.top})`);_&&k.append("text").attr("x",$/2).attr("y",i.top/2).attr("text-anchor","middle").style("font-size","16px").style("font-weight","bold").style("fill","#333").text(_),d&&M.append("g").attr("class","grid").selectAll("line").data(te.ticks()).enter().append("line").attr("x1",0).attr("x2",I).attr("y1",F=>te(F)).attr("y2",F=>te(F)).style("stroke","#e0e0e0").style("stroke-width",.5),c&&(M.append("g").attr("transform",`translate(0,${p})`).call(ce.axisBottom(D).tickSizeOuter(0)).attr("class","x-axis").selectAll("text").attr("transform",`translate(0,10)rotate(${m})`).style("text-anchor",m<0?"end":"middle").style("font-size","12px").style("fill","#605B56"),S&&M.append("text").attr("transform",`translate(${I/2}, ${p+i.bottom-5})`).style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(S)),u&&(M.append("g").call(ce.axisLeft(te).ticks(6).tickFormat(g)).attr("class","y-axis").call(F=>F.select(".domain").remove()),E&&M.append("text").attr("transform","rotate(-90)").attr("y",0-i.left).attr("x",0-p/2).attr("dy","1em").style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(E));const J=M.append("g").selectAll(".bar-group").data(e).enter().append("g").attr("class","bar-group").attr("transform",F=>`translate(${D(F.anyo||F.year||F.x)},0)`).selectAll(".bar").data(F=>j.map(K=>({key:K,value:F[K],data:F}))).enter().append("rect").attr("class","bar").attr("x",F=>q(F.key)).attr("y",p).attr("width",q.bandwidth()).attr("height",0).attr("fill",F=>L(F.key)).style("cursor",f||x?"pointer":"default");J.transition().duration(b).attr("y",F=>te(Math.max(0,F.value))).attr("height",F=>Math.abs(te(F.value)-te(0))),f&&J.on("mouseover",function(F,K){ce.select(this).style("opacity",.8),f(F,K)}).on("mouseout",function(F,K){ce.select(this).style("opacity",1)}),x&&J.on("click",x)},[e,t,n,T,i,y,h,c,u,d,m,g,b,f,x,_,S,E]),l.jsx("div",{ref:v,className:`${_s.svgContainer} ${a}`,style:{width:r,height:o+i.top+i.bottom},children:l.jsx("svg",{ref:C,className:_s.svg,width:T.width,height:T.height})})};Gi.propTypes={data:s.arrayOf(s.object).isRequired,keys:s.arrayOf(s.string).isRequired,colors:s.oneOfType([s.arrayOf(s.string),s.object]),width:s.oneOfType([s.string,s.number]),height:s.number,margin:s.shape({top:s.number,right:s.number,bottom:s.number,left:s.number}),className:s.string,showXAxisLabels:s.bool,showYAxisLabels:s.bool,showGrid:s.bool,xAxisTickRotation:s.number,yAxisTickFormat:s.func,barPadding:s.number,groupPadding:s.number,animationDuration:s.number,onBarHover:s.func,onBarClick:s.func,title:s.string,xAxisLabel:s.string,yAxisLabel:s.string};const Vf="_svgContainer_7fkic_2",Ff="_svg_7fkic_2",ws={svgContainer:Vf,svg:Ff},Yi=({data:e,keys:t,colors:n,lineData:r=null,width:o="100%",height:i=300,margin:a={top:20,right:20,bottom:60,left:60},className:c="",showXAxisLabels:u=!0,showYAxisLabels:d=!0,showGrid:m=!0,xAxisTickRotation:g=-90,yAxisTickFormat:y=P=>P.toLocaleString("es-ES"),barPadding:h=.4,animationDuration:b=750,onBarHover:f,onBarClick:x,title:_,xAxisLabel:S,yAxisLabel:E,stackOrder:C="reverse",showTooltip:v=!0,reverseKeys:T=!0,minBarSlotWidth:A=60,wrapXAxisLabels:k=!0,mode:$="stacked"})=>{const P=w.useRef(),I=w.useRef();w.useRef();const[p,N]=w.useState({containerWidth:0,height:0}),{t:j}=se.useTranslation();return w.useEffect(()=>{const V=()=>{if(I.current){const W=I.current.getBoundingClientRect().width;N({containerWidth:typeof o=="number"?o:W,height:i})}};return V(),window.addEventListener("resize",V),()=>window.removeEventListener("resize",V)},[o,i]),w.useEffect(()=>{if(!e||e.length===0||p.containerWidth===0)return;const V=ce.select(P.current),{containerWidth:W,height:D}=p,q=W-a.left-a.right,te=e.length*A,L=Math.max(q,te),M=L+a.left+a.right,H=D-a.top-a.bottom;if(L<=0||H<=0)return;V.attr("width",M).attr("height",D);const J=$==="stacked"?T?[...t].reverse():t:[],F=U=>$==="single"?U.title:U.any||U.year||U.x,K=[];e.forEach(U=>{const ae=F(U);if($==="single"){const me=Number(U.value)||0;K.push({key:U.title,value:me,y0:Math.min(0,me),y1:Math.max(0,me),height:Math.abs(me),data:U,xKey:ae,color:U.color})}else{const me=J.map(B=>({key:B,value:Number(U[B])||0,data:U})),_e=me.filter(B=>B.value<0),ke=me.filter(B=>B.value>=0);let Ve=0;_e.forEach(B=>{const Z=Ve,X=Ve+B.value,ie=Math.abs(X-Z);K.push({key:B.key,value:B.value,y0:Math.max(Z,X),y1:Math.min(Z,X),height:ie,data:B.data,xKey:ae}),Ve=X});let R=0;ke.forEach(B=>{const Z=R,X=R+B.value,ie=X-Z;K.push({key:B.key,value:B.value,y0:Math.min(Z,X),y1:Math.max(Z,X),height:ie,data:B.data,xKey:ae}),R=X})}});const re=[ce.min(K,U=>Math.min(U.y0,U.y1))||0,ce.max(K,U=>Math.max(U.y0,U.y1))||0];let ne=[0,0];r&&r.length>0&&(ne=[ce.min(r)||0,ce.max(r)||0]);const oe=[Math.min(re[0],ne[0]),Math.max(re[1],ne[1])],ee=ce.scaleBand().domain(e.map(U=>F(U))).range([0,L]).padding(h),G=ce.scaleLinear().domain([oe[0],oe[1]]).nice(6).range([H,0]),be=t?ce.scaleOrdinal().domain(t).range(Array.isArray(n)?n:Object.values(n||{})):null,z=$==="single"?U=>U.color||(Array.isArray(n)?n[0]:Object.values(n||{})[0])||"#888":U=>be(U.key),le=r&&r.length>0?e.map((U,ae)=>{const me=ee(F(U))+ee.bandwidth()/2,_e=G(r[ae]||0);return{x:me,y:_e}}):[];V.selectAll("*").remove();const Ce=V.append("g").attr("transform",`translate(${a.left},${a.top})`);_&&V.append("text").attr("x",M/2).attr("y",a.top-4).attr("text-anchor","middle").style("font-size","16px").style("font-weight","bold").style("fill","#333").text(_),m&&Ce.append("g").attr("class","grid").selectAll("line").data(G.ticks(6)).enter().append("line").attr("x1",0).attr("x2",L).attr("y1",U=>G(U)).attr("y2",U=>G(U)).style("stroke","#e0e0e0").style("stroke-width",.5);const ct=(U,ae=12)=>{if(!k||U.length<=ae)return[U];const me=Math.floor(U.length/2);let _e=me;for(let ke=me;ke>=0;ke--)if(U[ke]===" "){_e=ke;break}if(_e===me){for(let ke=me;ke<U.length;ke++)if(U[ke]===" "){_e=ke;break}}return _e===me&&(_e=me),[U.substring(0,_e),U.substring(_e+1)]};u&&(Ce.append("g").attr("class","x-axis").attr("transform",`translate(0, ${H})`).call(ce.axisBottom(ee).tickSizeOuter(0)).selectAll("text").remove(),Ce.append("g").attr("class","x-axis-labels").attr("transform",`translate(0, ${H})`).selectAll(".x-label-group").data(e).enter().append("g").attr("class","x-label-group").attr("transform",_e=>`translate(${ee(F(_e))+ee.bandwidth()/2}, 0)`).each(function(_e){const ke=String(F(_e)),Ve=ct(ke),R=ce.select(this);if(Ve.length===1)R.append("text").attr("y",19).style("text-anchor",g===0?"middle":g<0?"end":"start").style("font-size","12px").style("fill","#605B56").attr("transform",g!==0?`rotate(${g} 0 15)`:null).text(Ve[0]);else{const X=-(Ve.length*14/2)+14/2;Ve.forEach((ie,Y)=>{R.append("text").attr("x",X+Y*14).attr("y",19).style("text-anchor","end").style("font-size","11px").style("fill","#605B56").attr("transform",`rotate(${g} ${X+Y*14} 15)`).text(ie)})}}),S&&Ce.append("text").attr("transform",`translate(${L/2}, ${H+a.bottom-5})`).style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(S)),d&&(Ce.append("g").attr("class","y-axis").call(ce.axisLeft(G).ticks(6).tickFormat(y)).call(U=>U.select(".domain").remove()),Ce.append("g").attr("class","y-ticks").attr("transform",`translate(${L}, 0)`).call(ce.axisLeft(G).ticks(6).tickSizeInner(L)).call(U=>U.select(".domain").remove()).call(U=>U.selectAll(".tick text").remove()),E&&Ce.append("text").attr("transform","rotate(-90)").attr("y",0-a.left).attr("x",0-H/2).attr("dy","1em").style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(E));let De;v&&(De=ce.select("body").append("div").attr("class","chart-tooltip").style("position","absolute").style("visibility","hidden").style("background","rgba(0, 0, 0, 0.8)").style("color","white").style("padding","8px").style("border-radius","4px").style("font-size","12px").style("pointer-events","none").style("z-index","1000"));const Ee=Ce.selectAll(".segment").data(K,U=>`${U.xKey}-${U.key}`);Ee.exit().remove();const tt=Ee.enter().append("rect").attr("class","segment").attr("x",U=>ee(U.xKey)).attr("width",ee.bandwidth()).attr("y",U=>G(0)).attr("height",0).attr("fill",U=>z(U)).style("cursor",f||x||v?"pointer":"default").merge(Ee);if(tt.transition().duration(b).attr("x",U=>ee(U.xKey)).attr("y",U=>Math.min(G(U.y0),G(U.y1))).attr("height",U=>Math.abs(G(U.y1)-G(U.y0))),(v||f)&&tt.on("mouseover",function(U,ae){const me=ae.value;if(v&&De){const _e=$==="single"?ae.data.title:j(ae.key);De.style("visibility","visible").html($==="single"?`<strong>${_e}</strong><br/>${y(me)}`:`<strong>${_e}</strong><br/>${ae.xKey}<br/>${y(me)}`)}ce.select(this).style("opacity",.8),f&&f(U,{key:ae.key,value:me,data:ae.data})}).on("mousemove",function(U){v&&De&&De.style("top",U.pageY-10+"px").style("left",U.pageX+10+"px")}).on("mouseout",function(){v&&De&&De.style("visibility","hidden"),ce.select(this).style("opacity",1)}),x&&tt.on("click",function(U,ae){const me=ae.value;x(U,{key:ae.key,value:me,data:ae.data})}),le&&le.length>1){const U=ce.line().x(ae=>ae.x).y(ae=>ae.y).curve(ce.curveMonotoneX);Ce.append("path").datum(le).attr("class","line").attr("d",U).attr("fill","none").attr("stroke","#ff6b6b").attr("stroke-width",2).attr("stroke-linecap","round").attr("stroke-linejoin","round"),Ce.selectAll(".line-point").data(le).enter().append("circle").attr("class","line-point").attr("cx",ae=>ae.x).attr("cy",ae=>ae.y).attr("r",4).attr("fill","#ff6b6b").attr("stroke","white").attr("stroke-width",1)}return()=>{De&&De.remove()}},[e,t,n,r,p,a,h,u,d,m,g,y,b,f,x,_,S,E,C,v,T,k,$]),l.jsx("div",{ref:I,className:`${ws.svgContainer} ${c}`,style:{width:o,height:i+a.top+a.bottom,overflowX:"auto"},children:l.jsx("svg",{ref:P,className:ws.svg})})};Yi.propTypes={data:s.arrayOf(s.object).isRequired,keys:s.arrayOf(s.string),colors:s.oneOfType([s.arrayOf(s.string),s.object]),lineData:s.arrayOf(s.number),width:s.oneOfType([s.string,s.number]),height:s.number,margin:s.shape({top:s.number,right:s.number,bottom:s.number,left:s.number}),className:s.string,showXAxisLabels:s.bool,showYAxisLabels:s.bool,showGrid:s.bool,xAxisTickRotation:s.number,yAxisTickFormat:s.func,barPadding:s.number,animationDuration:s.number,onBarHover:s.func,onBarClick:s.func,title:s.string,xAxisLabel:s.string,yAxisLabel:s.string,stackOrder:s.oneOf(["reverse","ascending","descending","insideOut","none"]),showTooltip:s.bool,reverseKeys:s.bool,minBarSlotWidth:s.number,wrapXAxisLabels:s.bool,mode:s.oneOf(["single","stacked"])};const zf="_externalContainer_1er0i_2",qf="_externalSintetic_1er0i_9",Wf="_titles_1er0i_13",Uf="_titleContainer_1er0i_22",Zf="_yearTitles_1er0i_36",Hf="_yearTitle_1er0i_36",Kf="_yearDatas_1er0i_50",Gf="_yearDataContainer_1er0i_58",Yf="_yearDataContent_1er0i_66",Xf="_bigNumber_1er0i_79",Qf="_circle_1er0i_82",Jf="_totalContainer_1er0i_99",ep="_total_1er0i_99",Be={externalContainer:zf,externalSintetic:qf,titles:Wf,titleContainer:Uf,yearTitles:Zf,yearTitle:Hf,yearDatas:Kf,yearDataContainer:Gf,yearDataContent:Yf,bigNumber:Xf,circle:Qf,totalContainer:Jf,total:ep},tp=e=>{if(e>=1e3||e<=-1e3)return parseInt(e.toFixed());if(e>=100||e<=-100)return parseFloat(e.toFixed(1));if(e>=10||e<=-10)return parseFloat(e.toFixed(2));if(e>0||e<0)return parseFloat(e.toFixed(3));if(e===0)return e},np=(e,t)=>{let n=0;return t.forEach(r=>{r[e]&&(n+=r[e])}),n},Xi=({data:e,keys:t,colors:n,locales:r,total:o=!1,years:i=!1,activeGraphics:a="ind",units:c={},translate:u,getTotal:d=np,columnWidth:m=50})=>{const g=u||(h=>h),y=h=>h==="demanda_red"||h==="reduccio_demanda_red"?(c.demanda||"").replace("(","").replace(")",""):c[h]||"";return l.jsxs("div",{className:`${Be.externalContainer} ${a==="sin"?Be.externalSintetic:""}`,children:[i===!0&&l.jsxs(l.Fragment,{children:[l.jsx("div",{}),l.jsx("div",{className:Be.yearTitles,children:e.map((h,b)=>l.jsx("div",{className:Be.yearTitle,style:{width:m},children:h.anyo},b))})]}),l.jsx("div",{className:Be.titles,children:t.map((h,b)=>l.jsxs("div",{className:Be.titleContainer,children:[g(r[h]),a!=="sin"&&l.jsx("span",{className:Be.circle,style:{background:n[h]}})]},b))}),o===!0&&l.jsx("div",{className:Be.totalContainer,children:t.map((h,b)=>{var f;return l.jsxs("div",{className:`${Be.total} ${d(h,e)>9999||d(h,e)<-9999?Be.bigNumber:""}`,children:[(f=d(h,e))==null?void 0:f.toLocaleString("es-ES")," ",y(h)]},b)})}),l.jsx("div",{className:Be.yearDatas,children:e.map((h,b)=>l.jsx("div",{className:Be.yearDataContainer,style:{width:m},children:t.map((f,x)=>{var _,S;return isNaN(h[f])?null:l.jsx("div",{className:`${Be.yearDataContent} ${h[f]>9999||h[f]<-9999?Be.bigNumber:""}`,children:h[f]<1e4||h[f]>-1e4?(_=tp(h[f]))==null?void 0:_.toLocaleString("es-ES"):(S=h[f])==null?void 0:S.toLocaleString("es-ES")},x)})},b))})]})};Xi.propTypes={data:s.arrayOf(s.shape({anyo:s.oneOfType([s.string,s.number]).isRequired})).isRequired,keys:s.arrayOf(s.string).isRequired,colors:s.objectOf(s.string).isRequired,locales:s.objectOf(s.string).isRequired,total:s.bool,years:s.bool,activeGraphics:s.oneOf(["ind","sin"]),units:s.objectOf(s.string),translate:s.func,getTotal:s.func,columnWidth:s.number};const rp="_speedGraphic_d1k72_2",Tr={speedGraphic:rp},Qi=({minValue:e=0,maxValue:t=100,value:n=50,title:r=!1,percent:o=!1,unit:i=!1,greenColor:a="#00CF1E",orangeColor:c="#FFAC00",redColor:u="#FF1E37"})=>{n<e&&(n=e),n>t&&(n=t);const d=(n-e)/(t-e),m=270+d*180,g=o?Math.round(d*100):n;return l.jsxs("div",{className:Tr.speedGraphic,children:[l.jsxs("svg",{width:"244",height:"130",viewBox:"0 0 244 130",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M0 122C0 111.944 1.2433 101.927 3.70162 92.1756L26.2619 97.8633C24.2724 105.755 23.2662 113.862 23.2662 122H0Z",fill:a}),l.jsx("path",{d:"M16.3442 61.0012C21.3714 52.2936 27.4557 44.2409 34.4588 37.0263L51.1534 53.2313C45.4859 59.0701 40.5619 65.5871 36.4934 72.6341L16.3442 61.0012Z",fill:a}),l.jsx("path",{d:"M60.9088 16.3976C69.6119 11.3628 78.9041 7.42322 88.5739 4.66843L94.9485 27.0443C87.1228 29.2737 79.6027 32.462 72.5592 36.5367L60.9088 16.3976Z",fill:c}),l.jsx("path",{d:"M121.797 0.000169508C131.851 -0.0165912 141.869 1.20965 151.623 3.65101L145.974 26.2209C138.08 24.2451 129.972 23.2527 121.835 23.2663L121.797 0.000169508Z",fill:c}),l.jsx("path",{d:"M182.623 16.1279C191.348 21.124 199.422 27.1797 206.662 34.157L190.516 50.9092C184.657 45.2625 178.123 40.3617 171.061 36.3183L182.623 16.1279Z",fill:u}),l.jsx("path",{d:"M227.238 60.2836C232.325 68.9568 236.319 78.2255 239.131 87.8788L216.794 94.3859C214.518 86.5735 211.285 79.0725 207.169 72.0533L227.238 60.2836Z",fill:u}),l.jsx("path",{d:"M4.15505 90.4316C6.75674 80.7194 10.5491 71.3662 15.4458 62.5846L35.7663 73.9155C31.8035 81.0224 28.7343 88.5919 26.6288 96.4519L4.15505 90.4316Z",fill:a}),l.jsx("path",{d:"M35.733 35.733C42.8426 28.6233 50.8039 22.4198 59.4357 17.2636L71.3671 37.2375C64.3814 41.4104 57.9384 46.4308 52.1846 52.1846L35.733 35.733Z",fill:a}),l.jsx("path",{d:"M90.3004 4.19027C100.01 1.57776 110.005 0.175523 120.058 0.0154601L120.428 23.2787C112.292 23.4082 104.203 24.543 96.3457 26.6573L90.3004 4.19027Z",fill:c}),l.jsx("path",{d:"M153.423 4.11614C163.138 6.70584 172.496 10.4866 181.284 15.3725L169.978 35.707C162.866 31.7529 155.293 28.6932 147.43 26.5973L153.423 4.11614Z",fill:c}),l.jsx("path",{d:"M239.602 89.538C242.532 100.152 244.011 111.114 244 122.125L220.734 122.101C220.743 113.19 219.546 104.319 217.175 95.7287L239.602 89.538Z",fill:u}),l.jsx("path",{d:"M207.769 35.2376C214.919 42.3062 221.168 50.2316 226.374 58.8336L206.469 70.8798C202.256 63.9183 197.199 57.5043 191.412 51.7837L207.769 35.2376Z",fill:u}),l.jsx("g",{transform:`rotate(${m} 122 122)`,children:l.jsx("path",{id:"aguja",d:"M121 119.5V33",stroke:"#605B56","stroke-width":"2"})})]}),l.jsxs("div",{className:Tr.value,children:[g,o&&"%",i&&i]}),r&&l.jsx("div",{className:Tr.title,children:r})]})};Qi.propTypes={minValue:s.number.isRequired,maxValue:s.number.isRequired,value:s.number.isRequired,percent:s.bool,title:s.string,unit:s.string,greenColor:s.string,orangeColor:s.string,redColor:s.string};const kr="#ffffff",op="#ffffff";function at(e,t,n,r){const o=(r-90)*Math.PI/180;return{x:e+n*Math.cos(o),y:t+n*Math.sin(o)}}function Ss(e,t,n,r,o,i){if(Math.abs(i-o)>=359.99)return n===0?`M ${e-r} ${t} A ${r} ${r} 0 1 1 ${e+r} ${t} A ${r} ${r} 0 1 1 ${e-r} ${t} Z`:[`M ${e-r} ${t} A ${r} ${r} 0 1 1 ${e+r} ${t} A ${r} ${r} 0 1 1 ${e-r} ${t} Z`,`M ${e-n} ${t} A ${n} ${n} 0 1 0 ${e+n} ${t} A ${n} ${n} 0 1 0 ${e-n} ${t} Z`].join(" ");const a=at(e,t,r,o),c=at(e,t,r,i),u=i-o>180?1:0;if(n===0)return`M ${e} ${t} L ${a.x} ${a.y} A ${r} ${r} 0 ${u} 1 ${c.x} ${c.y} Z`;const d=at(e,t,n,i),m=at(e,t,n,o);return[`M ${a.x} ${a.y}`,`A ${r} ${r} 0 ${u} 1 ${c.x} ${c.y}`,`L ${d.x} ${d.y}`,`A ${n} ${n} 0 ${u} 0 ${m.x} ${m.y}`,"Z"].join(" ")}function sp(e,t=0){const n=e.reduce((d,m)=>d+(m.value||0),0),r=e.length;if(n<=0||r===0)return[];const o=e.map(d=>d.value/n*100),i=Math.min(t,r>0?360/r-.01:0);let a=o.map(d=>d/100*360),c=new Array(r).fill(!1);if(i>0){let d=0,m=!0;for(;m&&d<r+2;){m=!1,d+=1;for(let g=0;g<r;g++)!c[g]&&a[g]<i&&(a[g]=i,c[g]=!0,m=!0);if(m){const g=a.reduce((f,x,_)=>c[_]?f+x:f,0),y=a.map((f,x)=>x).filter(f=>!c[f]),h=360-g,b=y.reduce((f,x)=>f+o[x]/100*360,0);y.forEach(f=>{const x=o[f]/100*360;a[f]=b>0?x/b*h:h/y.length})}}}let u=0;return e.map((d,m)=>{const g=u,y=u+a[m];return u=y,{...d,sa:g,ea:y,percent:o[m]}})}function Ji(e){const t=Math.round(e*10)/10;return Number.isInteger(t)?t:t.toFixed(1)}function ip(e){return typeof e=="number"?e.toLocaleString():e}function Ts(e,t){return t?`${Ji(e.percent)}%`:ip(e.value)}function ks(e,t,n,r,o){const i=n+(r-n)/2,a=at(e,t,o,i);return{tx:a.x-e,ty:a.y-t}}const ea=({type:e="cheese",data:t=[],title:n,size:r=260,donutThickness:o=56,gapWidth:i=3,gapColor:a,backgroundColor:c="transparent",fontColor:u="black",fontColorInside:d="white",containerStyles:m={},alignLeft:g=!1,valuesArePercentages:y=!0,minSliceAngle:h=8})=>{const[b,f]=w.useState(null),[x,_]=w.useState(()=>t.map(()=>!0)),S=t.map(D=>D.title).join("|"),[E,C]=w.useState(S);S!==E&&(C(S),_(t.map(()=>!0)));const v=x.filter(Boolean).length;function T(D){_(q=>{const te=q.filter(Boolean).length;if(q[D]&&te<=1)return q;const L=[...q];return L[D]=!L[D],L}),f(null)}const A=r/2,k=r/2,$=r/2-14,P=e==="donut"?$-o:0,I=e==="donut"?$-o/2:$*.62,p=w.useMemo(()=>t.reduce((D,q,te)=>(x[te]&&D.push({...q,origIndex:te}),D),[]),[t,x]),N=w.useMemo(()=>sp(p,h),[p,h]),j=b!==null&&N.find(D=>D.origIndex===b)||null,V=N.some(D=>D.ea-D.sa>=359.99),W=a||(c==="transparent"?op:c);return l.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"4px",padding:"0px",background:c,borderRadius:"16px",fontFamily:"'Segoe UI', sans-serif",...m},children:[l.jsxs("div",{style:{minHeight:"40px",display:"flex",flexDirection:"column",gap:"2px"},children:[n&&l.jsx("h2",{style:{margin:0,color:u,fontSize:"22px",fontWeight:"700",letterSpacing:"-0.5px"},children:n}),l.jsx("div",{style:{height:"22px",display:"flex",alignItems:"center",gap:"8px",transition:"opacity 0.15s",opacity:j?1:0},children:j&&l.jsxs(l.Fragment,{children:[l.jsx("span",{style:{display:"inline-block",width:"10px",height:"10px",borderRadius:"50%",background:j.color||kr,flexShrink:0}}),l.jsxs("span",{style:{color:u,fontSize:"14px",fontWeight:"600"},children:[j.title," —"," ",Ts(j,y),!y&&` (${Ji(j.percent)}%)`]})]})})]}),l.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:g?"flex-start":"center",gap:"16px"},children:[l.jsxs("svg",{width:r,height:r,viewBox:`0 0 ${r} ${r}`,style:{overflow:"visible"},children:[N.map(D=>{const q=b===D.origIndex,{tx:te,ty:L}=q&&!V?ks(A,k,D.sa,D.ea,10):{tx:0,ty:0};return l.jsx("g",{transform:`translate(${te}, ${L})`,style:{transition:"transform 0.18s ease",pointerEvents:"none"},children:l.jsx("path",{d:Ss(A,k,P,$,D.sa,D.ea),fill:D.color||kr,style:{filter:q?"brightness(1.25)":"brightness(1)",transition:"filter 0.18s ease"}})},D.origIndex)}),!V&&N.map(D=>{const q=at(A,k,$,D.sa),te=e==="cheese"?A:at(A,k,P,D.sa).x,L=e==="cheese"?k:at(A,k,P,D.sa).y;return l.jsx("line",{x1:te,y1:L,x2:q.x,y2:q.y,stroke:W,strokeWidth:i,strokeLinecap:"butt",style:{pointerEvents:"none"}},`gap-${D.origIndex}`)}),N.map(D=>{if(D.ea-D.sa<20)return null;const q=b===D.origIndex,{tx:te,ty:L}=q&&!V?ks(A,k,D.sa,D.ea,10):{tx:0,ty:0},M=D.sa+(D.ea-D.sa)/2,H=at(A,k,I,M);return l.jsx("text",{x:H.x+te,y:H.y+L,textAnchor:"middle",dominantBaseline:"middle",fill:d,fontSize:"14",fontWeight:"700",fontFamily:"'Segoe UI', sans-serif",pointerEvents:"none",style:{transition:"x 0.18s ease, y 0.18s ease"},children:Ts(D,y)},`lbl-${D.origIndex}`)}),N.map(D=>l.jsx("path",{d:Ss(A,k,P,$,D.sa,D.ea),fill:"transparent",style:{cursor:"pointer"},onMouseEnter:()=>f(D.origIndex),onMouseLeave:()=>f(null)},`hit-${D.origIndex}`))]}),l.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px 24px",justifyContent:g?"flex-start":"center"},children:t.map((D,q)=>{const te=x[q],L=te&&v<=1;return l.jsxs("div",{role:"button",tabIndex:0,"aria-pressed":te,"aria-label":`${te?"Ocultar":"Mostrar"} ${D.title}`,title:L?"Debe quedar al menos una categoría activa":te?"Ocultar del gráfico":"Mostrar en el gráfico",onClick:()=>T(q),onKeyDown:M=>{(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),T(q))},style:{display:"flex",alignItems:"center",gap:"8px",opacity:te&&(b===null||b===q)?1:.4,cursor:L?"not-allowed":"pointer",transition:"opacity 0.15s",userSelect:"none"},onMouseEnter:()=>te&&f(q),onMouseLeave:()=>f(null),children:[l.jsx("span",{style:{width:"32px",height:"14px",borderRadius:"3px",background:D.color||kr,flexShrink:0}}),l.jsx("span",{style:{color:u,fontSize:"13px",fontWeight:"400"},children:D.title})]},q)})})]})]})};ea.propTypes={type:s.oneOf(["cheese","donut"]),data:s.arrayOf(s.shape({value:s.number.isRequired,title:s.string.isRequired,color:s.string})).isRequired,title:s.string,size:s.number,donutThickness:s.number,gapWidth:s.number,gapColor:s.string,backgroundColor:s.string,fontColor:s.string,fontColorInside:s.string,containerStyles:s.object,alignLeft:s.bool,valuesArePercentages:s.bool,minSliceAngle:s.number};const js=["#a8d8cf","#3bbfa0","#5dd4b8","#7ed4c2","#2aa88a"],ta=({data:e=[],title:t,backgroundColor:n="#0d3d4a",fontColor:r="#ffffff",barHeight:o=52,animated:i=!0,borderRadius:a,containerStyles:c={},fontColorInside:u="white",borderFontColorInside:d})=>{const[m,g]=w.useState(i?0:1);w.useEffect(()=>{if(!i)return;const b=requestAnimationFrame(()=>g(1));return()=>cancelAnimationFrame(b)},[i]);const y=Math.max(...e.map(b=>b.value),1),h=a??"6px";return l.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"0px",background:n,borderRadius:"16px",fontFamily:"'Segoe UI', sans-serif",minWidth:"420px",...c},children:[t&&l.jsx("h2",{style:{margin:"0 0 20px 0",color:r,fontSize:"22px",fontWeight:"700",letterSpacing:"-0.4px"},children:t}),l.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"18px"},children:e.map((b,f)=>{const x=b.color||js[f%js.length],_=b.value/y*100*m;return l.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[l.jsx("span",{style:{color:r,fontSize:"14px",fontWeight:"400",opacity:.9},children:b.title}),l.jsxs("div",{style:{position:"relative",height:`${o}px`,background:"transparent",borderRadius:h,overflow:"hidden"},children:[l.jsx("div",{style:{position:"absolute",left:0,top:0,height:"100%",width:`${_}%`,background:x,borderRadius:h,transition:i?"width 0.8s cubic-bezier(0.16, 1, 0.3, 1)":"none"}}),l.jsx("span",{style:{position:"absolute",left:"14px",top:"50%",transform:"translateY(-50%)",color:u||n,fontSize:"18px",fontWeight:"700",pointerEvents:"none",letterSpacing:"-0.3px",...d?{WebkitTextStroke:`1px ${d}`,paintOrder:"stroke fill"}:{}},children:b.value})]})]},f)})})]})};ta.propTypes={data:s.arrayOf(s.shape({title:s.string.isRequired,value:s.number.isRequired,color:s.string})),title:s.string,backgroundColor:s.string,fontColor:s.string,fontColorInside:s.string,borderFontColorInside:s.string,barHeight:s.number,animated:s.bool,borderRadius:s.oneOfType([s.string,s.number]),containerStyles:s.object};const $s=["#a8d8cf","#3bbfa0","#5dd4b8","#7ed4c2","#2aa88a"],na=({data:e=[],title:t,backgroundColor:n="black",fontColor:r="#ffffff",fontColorInside:o="#0d3d4a",borderFontColorInside:i,barWidth:a=52,maxBarHeight:c=200,animated:u=!0,separatorColor:d,containerStyles:m={}})=>{const[g,y]=w.useState(u?0:1);w.useEffect(()=>{if(!u)return;const E=requestAnimationFrame(()=>requestAnimationFrame(()=>y(1)));return()=>cancelAnimationFrame(E)},[u]);const h=Math.max(...e.map(E=>E.value),1),b=d||(r==="#ffffff"?"rgba(255,255,255,0.25)":"rgba(0,0,0,0.15)"),f=12,x=12,_=e.length*a+Math.max(0,e.length-1)*f,S={fontSize:"15px",fontWeight:"700",letterSpacing:"-0.3px",lineHeight:1,pointerEvents:"none",whiteSpace:"nowrap",...i?{WebkitTextStroke:`1px ${i}`,paintOrder:"stroke fill"}:{}};return l.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"0",background:n,borderRadius:"16px",fontFamily:"'Segoe UI', sans-serif",...m},children:[t&&l.jsx("h2",{style:{margin:"0 0 24px 0",color:r,fontSize:"22px",fontWeight:"700",letterSpacing:"-0.4px"},children:t}),l.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:0,overflow:"visible"},children:[l.jsx("div",{style:{display:"flex",alignItems:"flex-end",gap:`${f}px`,width:`${_}px`,height:`${c}px`},children:e.map((E,C)=>{const v=E.color||$s[C%$s.length],T=E.value===0,A=T?0:E.value/h*c*g;return l.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-end",width:`${a}px`,height:"100%"},children:T?l.jsx("span",{style:{...S,color:o,marginBottom:"6px"},children:E.value}):l.jsx("div",{style:{position:"relative",width:"100%",height:`${A}px`,background:v,borderRadius:"6px 6px 0 0",transition:u?"height 0.85s cubic-bezier(0.16, 1, 0.3, 1)":"none",display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"10px"},children:l.jsx("span",{style:{...S,color:o},children:E.value})})},C)})}),l.jsx("div",{style:{width:`${_+x*2}px`,marginLeft:`-${x}px`,height:"1.5px",background:b,borderRadius:"1px"}}),l.jsx("div",{style:{display:"flex",gap:`${f}px`,width:`${_}px`,marginTop:"10px"},children:e.map((E,C)=>l.jsx("div",{style:{width:`${a}px`,textAlign:"center",color:r,fontSize:"13px",fontWeight:"400",opacity:.8,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:E.title},C))})]})]})};na.propTypes={data:s.arrayOf(s.shape({title:s.string.isRequired,value:s.number.isRequired,color:s.string})).isRequired,title:s.string,backgroundColor:s.string,fontColor:s.string,fontColorInside:s.string,borderFontColorInside:s.string,barWidth:s.number,maxBarHeight:s.number,animated:s.bool,separatorColor:s.string,containerStyles:s.object};const ap="_percentageBarContainer_lgkme_3",lp="_barContainer_lgkme_10",cp="_segment_lgkme_19",up="_handle_lgkme_36",dp="_labelsContainer_lgkme_68",fp="_labelItem_lgkme_73",pp="_labelsListContainer_lgkme_85",mp="_labelColor_lgkme_105",hp="_labelText_lgkme_114",gp="_labelValue_lgkme_122",yp="_labelTranslation_lgkme_126",Me={percentageBarContainer:ap,barContainer:lp,segment:cp,handle:up,labelsContainer:dp,labelItem:fp,labelsListContainer:pp,labelColor:mp,labelText:hp,labelValue:gp,labelTranslation:yp},bp=2,Es=e=>{const t=e.reduce((n,r)=>n+r.value,0);return t===0?e.map(()=>100/e.length):e.map(n=>n.value/t*100)},jr=(e,t=100)=>e.map(n=>n.value/t*100),Ns=(e,t)=>{try{const r=new Function("x",`return (${t})`)(e);return isNaN(r)?"N/A":r.toFixed(2)}catch{return"N/A"}},ra=({items:e,showLabels:t="bar",showTranslations:n=!0,onChange:r,minPercentage:o=bp,maxValue:i=100,labelTextColor:a,labelValueColor:c})=>{const[u,d]=w.useState(()=>Es(e)),m=w.useRef(null),g=w.useRef(null);w.useEffect(()=>{e&&e.length>0&&d(Es(e))},[e]);const y=w.useCallback(f=>{if(!m.current||!g.current)return;const{dividerIndex:x}=m.current,_=g.current.getBoundingClientRect(),S=(f.touches?f.touches[0].clientX:f.clientX)-_.left,E=Math.max(0,Math.min(100,S/_.width*100));d(C=>{const v=[...C],T=C.slice(0,x).reduce((P,I)=>P+I,0),A=T+C[x]+C[x+1];let k=E-T,$=A-E;if(k<o&&(k=o,$=A-T-o),$<o&&($=o,k=A-T-o),v[x]=k,v[x+1]=$,r)try{const P=e.reduce((I,p)=>I+p.value,0);r(e.map((I,p)=>({...I,value:v[p]/100*P})))}catch(P){console.error("PercentageBar onChange error:",P)}return v})},[o,r,e]),h=w.useCallback(()=>{m.current&&(m.current=null,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",h),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",h),d(f=>{if(r){const x=e.reduce((_,S)=>_+S.value,0);r(e.map((_,S)=>({..._,value:f[S]/100*x})))}return f}))},[y,r,e]),b=(f,x)=>{x.preventDefault(),m.current={dividerIndex:f},document.addEventListener("mousemove",y),document.addEventListener("mouseup",h),document.addEventListener("touchmove",y,{passive:!1}),document.addEventListener("touchend",h)};return l.jsxs("div",{className:Me.percentageBarContainer,children:[l.jsx("div",{className:Me.barContainer,ref:g,children:e.map((f,x)=>{var _;return l.jsx("div",{className:Me.segment,style:{width:`${u[x]}%`,backgroundColor:f.color||"#ccc"},children:x>0&&l.jsx("div",{className:Me.handle,onMouseDown:S=>b(x-1,S),onTouchStart:S=>b(x-1,S),role:"slider","aria-label":`Divisor entre ${(_=e[x-1])==null?void 0:_.title} y ${f.title}`,"aria-valuenow":Math.round(u[x]),tabIndex:0})},f.id??x)})}),t==="bar"&&l.jsx("div",{className:Me.labelsContainer,children:e.map((f,x)=>l.jsxs("div",{className:Me.labelItem,style:{width:`${u[x]}%`},children:[l.jsx("span",{className:Me.labelColor,style:{backgroundColor:f.color}}),l.jsx("span",{className:Me.labelText,style:{color:a||"#fff"},children:f.title}),l.jsxs("span",{className:Me.labelValue,style:{color:c||"#fff"},children:[jr(e,i)[x].toFixed(1),"%"]}),n&&f.translationFormula&&l.jsxs("span",{className:Me.labelTranslation,children:["(",Ns(u[x],f.translationFormula),")"]})]},f.id??x))}),t==="list"&&l.jsx("div",{className:Me.labelsListContainer,children:e.map((f,x)=>l.jsxs("div",{className:Me.labelItem,children:[l.jsx("span",{className:Me.labelColor,style:{backgroundColor:f.color}}),l.jsx("span",{className:Me.labelText,children:f.title}),l.jsxs("span",{className:Me.labelValue,children:[jr(e,i)[x].toFixed(1),"%"]}),n&&f.translationFormula&&l.jsxs("span",{className:Me.labelTranslation,children:["(",Ns(jr(e,i)[x],f.translationFormula),")"]})]},f.id??x))})]})};ra.propTypes={items:s.arrayOf(s.shape({id:s.oneOfType([s.string,s.number]),title:s.string.isRequired,value:s.number.isRequired,color:s.string.isRequired,translationFormula:s.string})).isRequired,showLabels:s.string,showTranslations:s.bool,onChange:s.func,minPercentage:s.number,maxValue:s.number,labelTextColor:s.string,labelValueColor:s.string};const vp="_overlay_1vbid_2",xp="_modal_1vbid_16",Cp="_content_1vbid_28",_p="_iconContainer_1vbid_36",wp="_iconSvg_1vbid_43",Sp="_textContainer_1vbid_48",Tp="_title_1vbid_55",kp="_message_1vbid_62",jp="_closeButton_1vbid_69",Qe={overlay:vp,modal:xp,content:Cp,iconContainer:_p,iconSvg:wp,textContainer:Sp,title:Tp,message:kp,closeButton:jp},ao=({isOpen:e,onClose:t,title:n,message:r,isError:o=!1,isSuccess:i=!1,customIcon:a=null,iconColor:c=null,textColor:u=null,backgroundColor:d=null,borderColor:m=null,showCloseButton:g=!0,autoClose:y=!1,autoCloseDelay:h=3e3})=>{if(w.useEffect(()=>{if(y&&e){const S=setTimeout(()=>{t()},h);return()=>clearTimeout(S)}},[y,e,t,h]),!e)return null;const b=()=>{const S={};return d&&(S.backgroundColor=d),m&&(S.borderColor=m),o&&!d?(S.backgroundColor="#fff5f5",S.borderColor="#feb2b2"):i&&!d&&(S.backgroundColor="#f0fff4",S.borderColor="#9ae6b4"),S},f=()=>{const S={};return u&&(S.color=u),o&&!u?S.color="#c53030":i&&!u&&(S.color="#276749"),S},x=()=>{const S={};return c&&(S.color=c),o&&!c?S.color="#c53030":i&&!c&&(S.color="#276749"),S},_=()=>a||(o?l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:Qe.iconSvg,style:x(),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[l.jsx("circle",{cx:"12",cy:"12",r:"10"}),l.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),l.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]}):i?l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:Qe.iconSvg,style:x(),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[l.jsx("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),l.jsx("polyline",{points:"22 4 12 14.01 9 11.01"})]}):null);return l.jsx("div",{className:Qe.overlay,children:l.jsx("div",{className:Qe.modal,style:b(),children:l.jsxs("div",{className:Qe.content,children:[l.jsx("div",{className:Qe.iconContainer,children:_()}),l.jsxs("div",{className:Qe.textContainer,children:[n&&l.jsx("h3",{className:Qe.title,style:f(),children:n}),l.jsx("p",{className:Qe.message,style:f(),children:r})]}),g&&l.jsx("button",{className:Qe.closeButton,onClick:t,"aria-label":"Close modal",style:f(),children:"✕"})]})})})};ao.propTypes={isOpen:s.bool.isRequired,onClose:s.func.isRequired,title:s.string,message:s.string.isRequired,isError:s.bool,isSuccess:s.bool,customIcon:s.node,iconColor:s.string,textColor:s.string,backgroundColor:s.string,borderColor:s.string,showCloseButton:s.bool,autoClose:s.bool,autoCloseDelay:s.number};ao.defaultProps={isError:!1,isSuccess:!1,showCloseButton:!0,autoClose:!1,autoCloseDelay:3e3};const $p="_header_13kbt_2",Ep="_leftComponents_13kbt_13",Np="_centerComponents_13kbt_14",Op="_rightComponents_13kbt_15",Ap="_componentsContainer_13kbt_32",St={header:$p,leftComponents:Ep,centerComponents:Np,rightComponents:Op,componentsContainer:Ap},oa=({cssProps:e,leftComponents:t=[],centerComponents:n=[],rightComponents:r=[],zIndex:o=10,height:i=60,backgroundColor:a="#605B56",isFooter:c=!1})=>l.jsxs("div",{className:St.header,style:{...e,zIndex:o,height:i,backgroundColor:a,top:c?"auto":0,bottom:c?0:"auto"},children:[l.jsx("div",{className:St.leftComponents,children:t.map((u,d)=>l.jsx("div",{className:St.componentsContainer,children:u},d))}),l.jsx("div",{className:St.centerComponents,children:n.map((u,d)=>l.jsx("div",{className:St.componentsContainer,children:u},d))}),l.jsx("div",{className:St.rightComponents,children:r.map((u,d)=>l.jsx("div",{className:St.componentsContainer,children:u},d))})]});oa.propTypes={leftComponents:s.arrayOf(s.node),centerComponents:s.arrayOf(s.node),rightComponents:s.arrayOf(s.node),cssProps:s.object,zIndex:s.number,height:s.number,backgroundColor:s.string,isFooter:s.bool};const Lp="_sidebar_1kaqu_2",Mp="_open_1kaqu_16",Rp="_content_1kaqu_20",Ip="_closeButton_1kaqu_25",Ln={sidebar:Lp,open:Mp,content:Rp,closeButton:Ip},Dp="data:image/svg+xml,%3csvg%20width='19'%20height='19'%20viewBox='0%200%2019%2019'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%203699'%3e%3cpath%20id='Vector%20223'%20d='M1%201L18.1566%2018.1566'%20stroke='%23605B56'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20id='Vector%20224'%20d='M18.1575%201L1.00083%2018.1566'%20stroke='%23605B56'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/g%3e%3c/svg%3e",sa=({width:e="300px",children:t,showRightBar:n,onCloseBar:r})=>{const o=()=>{r()};return l.jsx("div",{className:`${Ln.sidebar} ${n?Ln.open:""}`,style:{width:n?e:0},children:n&&l.jsxs("div",{className:Ln.content,children:[l.jsx("button",{className:Ln.closeButton,onClick:o,children:l.jsx("img",{src:Dp,alt:"Close Sidebar"})}),t]})})};sa.propTypes={width:s.string,children:s.node,showRightBar:s.bool,onCloseBar:s.func};exports.AmbitSelector=Ds;exports.BarChart=Zr;exports.BurgerMenu=io;exports.ButtonsBar=Zi;exports.ButtonsList=Bs;exports.CategorySelector=Fr;exports.DropdownList=yt;exports.EditAmbit=fl;exports.ErrorMessage=Kt;exports.FiltersAmbit=Us;exports.Form=Xd;exports.GeneralButton=un;exports.Graphic=Zs;exports.GraphicLegend=Xi;exports.Groupedbarchart=Gi;exports.HeaderSection=oa;exports.HorizontalBarChart=ta;exports.IndicatorsList=Ys;exports.LangSelector=Xs;exports.Legend=Qs;exports.ListSelector=Ii;exports.Loader=Ki;exports.LogInButton=Mi;exports.LogoApp=Js;exports.MapboxMap=si;exports.MaplibreMap=ii;exports.ModalAlert=Ui;exports.PercentageBar=ra;exports.PieChart=ea;exports.RadioButtonInput=Wi;exports.RankingSlider=ro;exports.RightSidebar=sa;exports.SectionBar=ai;exports.SelectInput=qi;exports.SpeedGraphic=Qi;exports.Stackedbarchart=Yi;exports.StatusModal=ao;exports.StatusText=so;exports.Steps=oo;exports.Switch=Hi;exports.TextInput=Vr;exports.TimeSlider=Ai;exports.Tooltip=Je;exports.TopNavMenu=Li;exports.VerticalBarChart=na;