@tmf_ciclica/ciclicastorybook 1.2.123 → 1.2.124

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_17b40_2{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:center;gap:10px}._indicatorContainer_17b40_2 ._indicatorNameContainer_17b40_11{gap:8px;display:grid;grid-template-columns:15px auto;align-items:center}._indicatorContainer_17b40_2 ._dot_17b40_17{border-radius:100px;width:13px;height:13px;display:flex;align-items:center;justify-content:center}._indicatorContainer_17b40_2 ._indicatorName_17b40_11{cursor:pointer;font-weight:400;text-align:left}._switchExternalContainer_17b40_31{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start}._switchExternalContainer_17b40_31 ._switchType_17b40_39{margin:0;width:100%}._switchExternalContainer_17b40_31 ._switchType_17b40_39 ._switchTypeOptions_17b40_43{gap:20px;display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;margin:0 0 20px 23px}._switchExternalContainer_17b40_31 ._switchType_17b40_39 ._switchTypeOptions_17b40_43 ._optionContainer_17b40_54{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;gap:9px;cursor:pointer}._switchExternalContainer_17b40_31 ._switchType_17b40_39 ._switchTypeOptions_17b40_43 ._optionContainer_17b40_54 ._customRadious_17b40_64{width:13px;height:13px;border-radius:100px;border:1px solid;padding:0}._switchExternalContainer_17b40_31 ._switchType_17b40_39 ._switchTypeOptions_17b40_43 ._optionContainer_17b40_54 ._optionText_17b40_71{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_1l2pz_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_1l2pz_3{width:250px}}._legendContainer_1l2pz_3 ._sectionContainer_1l2pz_24:not(:first-child){margin-top:30px;padding-top:20px;border-top:1px solid #e0e0e0}._legendContainer_1l2pz_3::-webkit-scrollbar{width:8px}._legendContainer_1l2pz_3::-webkit-scrollbar-track{background:transparent;margin:5px 0}._legendContainer_1l2pz_3::-webkit-scrollbar-thumb{background-color:#ebebeb;border-radius:20px}._legendContainer_1l2pz_3 ._closeButton_1l2pz_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_1l2pz_3 ._closeButton_1l2pz_43:before,._legendContainer_1l2pz_3 ._closeButton_1l2pz_43:after{content:"";position:absolute;width:16px;height:2px;background-color:#333}._legendContainer_1l2pz_3 ._closeButton_1l2pz_43:before{transform:rotate(45deg)}._legendContainer_1l2pz_3 ._closeButton_1l2pz_43:after{transform:rotate(-45deg)}._legendContainer_1l2pz_3 ._titleContainer_1l2pz_71{border-bottom:solid 1.5px #605b56}._legendContainer_1l2pz_3 ._titleContainer_1l2pz_71 h2{padding-bottom:16px}._legendContainer_1l2pz_3 ._infoContainer_1l2pz_77{padding-top:20px}._legendContainer_1l2pz_3 ._infoContainer_1l2pz_77 ul li{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:row;align-items:center}._legendContainer_1l2pz_3 ._titleLegendList_1l2pz_88{padding-bottom:20px;margin-bottom:20px;border-bottom:solid 1.5px #605b56}._legendContainer_1l2pz_3 ._legendListContainer_1l2pz_93 ._gridContainer_1l2pz_93{display:grid;grid-template-columns:auto;column-gap:20px;row-gap:15px}._legendContainer_1l2pz_3 ._legendListContainer_1l2pz_93 ._gridContainer_1l2pz_93 ._elementLegendContainer_1l2pz_99{display:grid;grid-template-columns:23px auto;align-items:center;gap:5px}._legendContainer_1l2pz_3 ._legendListContainer_1l2pz_93 ._gridContainer_1l2pz_93 ._elementLegendContainer_1l2pz_99 ._colorDot_1l2pz_105{width:22px;height:22px;border-radius:50%;margin-right:10px}._legendContainer_1l2pz_3 ._legendListContainer_1l2pz_93 ._absoluteValueContainer_1l2pz_111{position:relative}._legendContainer_1l2pz_3 ._legendListContainer_1l2pz_93 ._absoluteValueContainer_1l2pz_111 ._absoluteValueColor_1l2pz_114{height:130px;width:22px;border-radius:20px}._legendContainer_1l2pz_3 ._legendListContainer_1l2pz_93 ._absoluteValueContainer_1l2pz_111 ._absoluteValueText_1l2pz_119{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_1l2pz_3 ._legendListContainer_1l2pz_93 ._noDataContainer_1l2pz_131{position:relative;margin-top:10px}._legendContainer_1l2pz_3 ._legendListContainer_1l2pz_93 ._noDataContainer_1l2pz_131 ._noData_1l2pz_131{height:22px;width:22px;border-radius:20px}._legendContainer_1l2pz_3 ._legendListContainer_1l2pz_93 ._noDataContainer_1l2pz_131 ._absoluteValueText_1l2pz_119{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_1l2pz_3 ._moreInfoContainer_1l2pz_152{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_b0pyr_3{width:100vw;height:100vh;position:absolute;top:0;z-index:0}._FeaturePopUp_4sba4_2{padding:15px;color:#92898a}._FeaturePopUp_4sba4_2 p{margin-bottom:10px;font-weight:600}._FeaturePopUp_4sba4_2 ._title_4sba4_10{font-weight:400;margin-right:5px;color:#92898a}._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}._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 zi=Object.create;var Qr=Object.defineProperty;var qi=Object.getOwnPropertyDescriptor;var Wi=Object.getOwnPropertyNames;var Ui=Object.getPrototypeOf,Zi=Object.prototype.hasOwnProperty;var Ki=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Wi(t))!Zi.call(e,r)&&r!==n&&Qr(e,r,{get:()=>t[r],enumerable:!(o=qi(t,r))||o.enumerable});return e};var Hi=(e,t,n)=>(n=e!=null?zi(Ui(e)):{},Ki(t||!e||!e.__esModule?Qr(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),_=require("react"),oe=require("react-i18next"),Mr=require("framer-motion"),hs=require("zustand"),ce=require("d3"),Gi=require("mapbox-gl"),Yi=require("react-redux"),gs=require("react-dom"),nr=require("maplibre-gl"),Xi=require("pmtiles"),Qi=require("@reduxjs/toolkit"),Jr=require("@mui/material"),Ji=require("@emotion/react"),ea=require("@emotion/styled"),ys=require("react-router-dom");function bs(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Q=bs(_),rr=bs(ce),ta="_ambitSelector_mcunf_2",na="_header_mcunf_13",ra="_nameDateContainer_mcunf_23",oa="_ambitName_mcunf_39",sa="_ambitDate_mcunf_53",ia="_buttonsContainer_mcunf_67",aa="_ambitListContainer_mcunf_76",la="_newAmbitButtonContainer_mcunf_80",it={ambitSelector:ta,header:na,nameDateContainer:ra,ambitName:oa,ambitDate:sa,buttonsContainer:ia,ambitListContainer:aa,newAmbitButtonContainer:la},ca="_ambitItem_1qa6u_2",ua="_ambitNameDate_1qa6u_16",da="_ambitName_1qa6u_16",fa="_ambitDate_1qa6u_35",pa="_ambitButtons_1qa6u_38",Zt={ambitItem:ca,ambitNameDate:ua,ambitName:da,ambitDate:fa,ambitButtons:pa},ma="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",ha="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",ga="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",ya="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",ba="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 Ca(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pn={exports:{}},mn={exports:{}},ue={};/** @license React v16.13.1
2
+ "use strict";var Hi=Object.create;var to=Object.defineProperty;var Ki=Object.getOwnPropertyDescriptor;var Gi=Object.getOwnPropertyNames;var Yi=Object.getPrototypeOf,Xi=Object.prototype.hasOwnProperty;var Qi=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Gi(t))!Xi.call(e,o)&&o!==n&&to(e,o,{get:()=>t[o],enumerable:!(r=Ki(t,o))||r.enumerable});return e};var Ji=(e,t,n)=>(n=e!=null?Hi(Yi(e)):{},Qi(t||!e||!e.__esModule?to(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),_=require("react"),oe=require("react-i18next"),Dr=require("framer-motion"),Cs=require("zustand"),ce=require("d3"),ea=require("mapbox-gl"),ta=require("react-redux"),xs=require("react-dom"),rr=require("maplibre-gl"),na=require("pmtiles"),ra=require("@reduxjs/toolkit"),no=require("@mui/material"),oa=require("@emotion/react"),sa=require("@emotion/styled"),_s=require("react-router-dom");function ws(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=ws(_),or=ws(ce),ia="_ambitSelector_mcunf_2",aa="_header_mcunf_13",la="_nameDateContainer_mcunf_23",ca="_ambitName_mcunf_39",ua="_ambitDate_mcunf_53",da="_buttonsContainer_mcunf_67",fa="_ambitListContainer_mcunf_76",pa="_newAmbitButtonContainer_mcunf_80",at={ambitSelector:ia,header:aa,nameDateContainer:la,ambitName:ca,ambitDate:ua,buttonsContainer:da,ambitListContainer:fa,newAmbitButtonContainer:pa},ma="_ambitItem_1qa6u_2",ha="_ambitNameDate_1qa6u_16",ga="_ambitName_1qa6u_16",ya="_ambitDate_1qa6u_35",ba="_ambitButtons_1qa6u_38",Ht={ambitItem:ma,ambitNameDate:ha,ambitName:ga,ambitDate:ya,ambitButtons:ba},va="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",Ca="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",xa="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",_a="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",wa="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",Sa="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 Ta(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mn={exports:{}},hn={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 eo;function xa(){if(eo)return ue;eo=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function $(C){if(typeof C=="object"&&C!==null){var w=C.$$typeof;switch(w){case t:switch(C=C.type,C){case u:case d:case o:case i:case r:case g:return C;default:switch(C=C&&C.$$typeof,C){case l:case h:case v:case m:case a:return C;default:return w}}case n:return w}}}function b(C){return $(C)===d}return ue.AsyncMode=u,ue.ConcurrentMode=d,ue.ContextConsumer=l,ue.ContextProvider=a,ue.Element=t,ue.ForwardRef=h,ue.Fragment=o,ue.Lazy=v,ue.Memo=m,ue.Portal=n,ue.Profiler=i,ue.StrictMode=r,ue.Suspense=g,ue.isAsyncMode=function(C){return b(C)||$(C)===u},ue.isConcurrentMode=b,ue.isContextConsumer=function(C){return $(C)===l},ue.isContextProvider=function(C){return $(C)===a},ue.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},ue.isForwardRef=function(C){return $(C)===h},ue.isFragment=function(C){return $(C)===o},ue.isLazy=function(C){return $(C)===v},ue.isMemo=function(C){return $(C)===m},ue.isPortal=function(C){return $(C)===n},ue.isProfiler=function(C){return $(C)===i},ue.isStrictMode=function(C){return $(C)===r},ue.isSuspense=function(C){return $(C)===g},ue.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===o||C===d||C===i||C===r||C===g||C===y||typeof C=="object"&&C!==null&&(C.$$typeof===v||C.$$typeof===m||C.$$typeof===a||C.$$typeof===l||C.$$typeof===h||C.$$typeof===x||C.$$typeof===S||C.$$typeof===k||C.$$typeof===f)},ue.typeOf=$,ue}var de={};/** @license React v16.13.1
9
+ */var ro;function ka(){if(ro)return ue;ro=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,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function j(C){if(typeof C=="object"&&C!==null){var w=C.$$typeof;switch(w){case t:switch(C=C.type,C){case u:case d:case r:case i:case o:case g:return C;default:switch(C=C&&C.$$typeof,C){case l:case h:case v:case m:case a:return C;default:return w}}case n:return w}}}function b(C){return j(C)===d}return ue.AsyncMode=u,ue.ConcurrentMode=d,ue.ContextConsumer=l,ue.ContextProvider=a,ue.Element=t,ue.ForwardRef=h,ue.Fragment=r,ue.Lazy=v,ue.Memo=m,ue.Portal=n,ue.Profiler=i,ue.StrictMode=o,ue.Suspense=g,ue.isAsyncMode=function(C){return b(C)||j(C)===u},ue.isConcurrentMode=b,ue.isContextConsumer=function(C){return j(C)===l},ue.isContextProvider=function(C){return j(C)===a},ue.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},ue.isForwardRef=function(C){return j(C)===h},ue.isFragment=function(C){return j(C)===r},ue.isLazy=function(C){return j(C)===v},ue.isMemo=function(C){return j(C)===m},ue.isPortal=function(C){return j(C)===n},ue.isProfiler=function(C){return j(C)===i},ue.isStrictMode=function(C){return j(C)===o},ue.isSuspense=function(C){return j(C)===g},ue.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===d||C===i||C===o||C===g||C===y||typeof C=="object"&&C!==null&&(C.$$typeof===v||C.$$typeof===m||C.$$typeof===a||C.$$typeof===l||C.$$typeof===h||C.$$typeof===x||C.$$typeof===S||C.$$typeof===T||C.$$typeof===f)},ue.typeOf=j,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 to;function _a(){return to||(to=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,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function $(D){return typeof D=="string"||typeof D=="function"||D===o||D===d||D===i||D===r||D===g||D===y||typeof D=="object"&&D!==null&&(D.$$typeof===v||D.$$typeof===m||D.$$typeof===a||D.$$typeof===l||D.$$typeof===h||D.$$typeof===x||D.$$typeof===S||D.$$typeof===k||D.$$typeof===f)}function b(D){if(typeof D=="object"&&D!==null){var se=D.$$typeof;switch(se){case t:var Le=D.type;switch(Le){case u:case d:case o:case i:case r:case g:return Le;default:var Ye=Le&&Le.$$typeof;switch(Ye){case l:case h:case v:case m:case a:return Ye;default:return se}}case n:return se}}}var C=u,w=d,L=l,R=a,N=t,q=h,F=o,p=v,E=m,T=n,V=i,B=r,Y=g,W=!1;function ae(D){return W||(W=!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.")),M(D)||b(D)===u}function M(D){return b(D)===d}function O(D){return b(D)===l}function J(D){return b(D)===a}function H(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function I(D){return b(D)===h}function Z(D){return b(D)===o}function te(D){return b(D)===v}function G(D){return b(D)===m}function U(D){return b(D)===n}function re(D){return b(D)===i}function ee(D){return b(D)===r}function le(D){return b(D)===g}de.AsyncMode=C,de.ConcurrentMode=w,de.ContextConsumer=L,de.ContextProvider=R,de.Element=N,de.ForwardRef=q,de.Fragment=F,de.Lazy=p,de.Memo=E,de.Portal=T,de.Profiler=V,de.StrictMode=B,de.Suspense=Y,de.isAsyncMode=ae,de.isConcurrentMode=M,de.isContextConsumer=O,de.isContextProvider=J,de.isElement=H,de.isForwardRef=I,de.isFragment=Z,de.isLazy=te,de.isMemo=G,de.isPortal=U,de.isProfiler=re,de.isStrictMode=ee,de.isSuspense=le,de.isValidElementType=$,de.typeOf=b}()),de}var no;function vs(){return no||(no=1,process.env.NODE_ENV==="production"?mn.exports=xa():mn.exports=_a()),mn.exports}/*
16
+ */var oo;function ja(){return oo||(oo=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,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function j(D){return typeof D=="string"||typeof D=="function"||D===r||D===d||D===i||D===o||D===g||D===y||typeof D=="object"&&D!==null&&(D.$$typeof===v||D.$$typeof===m||D.$$typeof===a||D.$$typeof===l||D.$$typeof===h||D.$$typeof===x||D.$$typeof===S||D.$$typeof===T||D.$$typeof===f)}function b(D){if(typeof D=="object"&&D!==null){var se=D.$$typeof;switch(se){case t:var Le=D.type;switch(Le){case u:case d:case r:case i:case o:case g:return Le;default:var Ye=Le&&Le.$$typeof;switch(Ye){case l:case h:case v:case m:case a:return Ye;default:return se}}case n:return se}}}var C=u,w=d,L=l,R=a,N=t,q=h,F=r,p=v,E=m,k=n,B=i,V=o,Y=g,W=!1;function ae(D){return W||(W=!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.")),M(D)||b(D)===u}function M(D){return b(D)===d}function O(D){return b(D)===l}function J(D){return b(D)===a}function K(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function I(D){return b(D)===h}function Z(D){return b(D)===r}function te(D){return b(D)===v}function G(D){return b(D)===m}function U(D){return b(D)===n}function re(D){return b(D)===i}function ee(D){return b(D)===o}function le(D){return b(D)===g}de.AsyncMode=C,de.ConcurrentMode=w,de.ContextConsumer=L,de.ContextProvider=R,de.Element=N,de.ForwardRef=q,de.Fragment=F,de.Lazy=p,de.Memo=E,de.Portal=k,de.Profiler=B,de.StrictMode=V,de.Suspense=Y,de.isAsyncMode=ae,de.isConcurrentMode=M,de.isContextConsumer=O,de.isContextProvider=J,de.isElement=K,de.isForwardRef=I,de.isFragment=Z,de.isLazy=te,de.isMemo=G,de.isPortal=U,de.isProfiler=re,de.isStrictMode=ee,de.isSuspense=le,de.isValidElementType=j,de.typeOf=b}()),de}var so;function Ss(){return so||(so=1,process.env.NODE_ENV==="production"?hn.exports=ka():hn.exports=ja()),hn.exports}/*
17
17
  object-assign
18
18
  (c) Sindre Sorhus
19
19
  @license MIT
20
- */var or,ro;function wa(){if(ro)return or;ro=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function r(){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={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var u=Object.getOwnPropertyNames(a).map(function(h){return a[h]});if(u.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(h){d[h]=h}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return or=r()?Object.assign:function(i,a){for(var l,u=o(i),d,h=1;h<arguments.length;h++){l=Object(arguments[h]);for(var g in l)t.call(l,g)&&(u[g]=l[g]);if(e){d=e(l);for(var y=0;y<d.length;y++)n.call(l,d[y])&&(u[d[y]]=l[d[y]])}}return u},or}var sr,oo;function Rr(){if(oo)return sr;oo=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return sr=e,sr}var ir,so;function Cs(){return so||(so=1,ir=Function.call.bind(Object.prototype.hasOwnProperty)),ir}var ar,io;function Sa(){if(io)return ar;io=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Rr(),n={},o=Cs();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function r(i,a,l,u,d){if(process.env.NODE_ENV!=="production"){for(var h in i)if(o(i,h)){var g;try{if(typeof i[h]!="function"){var y=Error((u||"React class")+": "+l+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}g=i[h](a,h,u,l,null,t)}catch(v){g=v}if(g&&!(g instanceof Error)&&e((u||"React class")+": type specification of "+l+" `"+h+"` 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 m=d?d():"";e("Failed "+l+" type: "+g.message+(m??""))}}}}return r.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},ar=r,ar}var lr,ao;function Ta(){if(ao)return lr;ao=1;var e=vs(),t=wa(),n=Rr(),o=Cs(),r=Sa(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var u="Warning: "+l;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return lr=function(l,u){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function g(M){var O=M&&(d&&M[d]||M[h]);if(typeof O=="function")return O}var y="<<anonymous>>",m={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:k(),arrayOf:$,element:b(),elementType:C(),instanceOf:w,node:q(),objectOf:R,oneOf:L,oneOfType:N,shape:p,exact:E};function v(M,O){return M===O?M!==0||1/M===1/O:M!==M&&O!==O}function f(M,O){this.message=M,this.data=O&&typeof O=="object"?O:{},this.stack=""}f.prototype=Error.prototype;function x(M){if(process.env.NODE_ENV!=="production")var O={},J=0;function H(Z,te,G,U,re,ee,le){if(U=U||y,ee=ee||G,le!==n){if(u){var D=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 D.name="Invariant Violation",D}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var se=U+":"+G;!O[se]&&J<3&&(i("You are manually calling a React.PropTypes validation function for the `"+ee+"` prop on `"+U+"`. 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."),O[se]=!0,J++)}}return te[G]==null?Z?te[G]===null?new f("The "+re+" `"+ee+"` is marked as required "+("in `"+U+"`, but its value is `null`.")):new f("The "+re+" `"+ee+"` is marked as required in "+("`"+U+"`, but its value is `undefined`.")):null:M(te,G,U,re,ee)}var I=H.bind(null,!1);return I.isRequired=H.bind(null,!0),I}function S(M){function O(J,H,I,Z,te,G){var U=J[H],re=B(U);if(re!==M){var ee=Y(U);return new f("Invalid "+Z+" `"+te+"` of type "+("`"+ee+"` supplied to `"+I+"`, expected ")+("`"+M+"`."),{expectedType:M})}return null}return x(O)}function k(){return x(a)}function $(M){function O(J,H,I,Z,te){if(typeof M!="function")return new f("Property `"+te+"` of component `"+I+"` has invalid PropType notation inside arrayOf.");var G=J[H];if(!Array.isArray(G)){var U=B(G);return new f("Invalid "+Z+" `"+te+"` of type "+("`"+U+"` supplied to `"+I+"`, expected an array."))}for(var re=0;re<G.length;re++){var ee=M(G,re,I,Z,te+"["+re+"]",n);if(ee instanceof Error)return ee}return null}return x(O)}function b(){function M(O,J,H,I,Z){var te=O[J];if(!l(te)){var G=B(te);return new f("Invalid "+I+" `"+Z+"` of type "+("`"+G+"` supplied to `"+H+"`, expected a single ReactElement."))}return null}return x(M)}function C(){function M(O,J,H,I,Z){var te=O[J];if(!e.isValidElementType(te)){var G=B(te);return new f("Invalid "+I+" `"+Z+"` of type "+("`"+G+"` supplied to `"+H+"`, expected a single ReactElement type."))}return null}return x(M)}function w(M){function O(J,H,I,Z,te){if(!(J[H]instanceof M)){var G=M.name||y,U=ae(J[H]);return new f("Invalid "+Z+" `"+te+"` of type "+("`"+U+"` supplied to `"+I+"`, expected ")+("instance of `"+G+"`."))}return null}return x(O)}function L(M){if(!Array.isArray(M))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 O(J,H,I,Z,te){for(var G=J[H],U=0;U<M.length;U++)if(v(G,M[U]))return null;var re=JSON.stringify(M,function(le,D){var se=Y(D);return se==="symbol"?String(D):D});return new f("Invalid "+Z+" `"+te+"` of value `"+String(G)+"` "+("supplied to `"+I+"`, expected one of "+re+"."))}return x(O)}function R(M){function O(J,H,I,Z,te){if(typeof M!="function")return new f("Property `"+te+"` of component `"+I+"` has invalid PropType notation inside objectOf.");var G=J[H],U=B(G);if(U!=="object")return new f("Invalid "+Z+" `"+te+"` of type "+("`"+U+"` supplied to `"+I+"`, expected an object."));for(var re in G)if(o(G,re)){var ee=M(G,re,I,Z,te+"."+re,n);if(ee instanceof Error)return ee}return null}return x(O)}function N(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var O=0;O<M.length;O++){var J=M[O];if(typeof J!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+W(J)+" at index "+O+"."),a}function H(I,Z,te,G,U){for(var re=[],ee=0;ee<M.length;ee++){var le=M[ee],D=le(I,Z,te,G,U,n);if(D==null)return null;D.data&&o(D.data,"expectedType")&&re.push(D.data.expectedType)}var se=re.length>0?", expected one of type ["+re.join(", ")+"]":"";return new f("Invalid "+G+" `"+U+"` supplied to "+("`"+te+"`"+se+"."))}return x(H)}function q(){function M(O,J,H,I,Z){return T(O[J])?null:new f("Invalid "+I+" `"+Z+"` supplied to "+("`"+H+"`, expected a ReactNode."))}return x(M)}function F(M,O,J,H,I){return new f((M||"React class")+": "+O+" type `"+J+"."+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+I+"`.")}function p(M){function O(J,H,I,Z,te){var G=J[H],U=B(G);if(U!=="object")return new f("Invalid "+Z+" `"+te+"` of type `"+U+"` "+("supplied to `"+I+"`, expected `object`."));for(var re in M){var ee=M[re];if(typeof ee!="function")return F(I,Z,te,re,Y(ee));var le=ee(G,re,I,Z,te+"."+re,n);if(le)return le}return null}return x(O)}function E(M){function O(J,H,I,Z,te){var G=J[H],U=B(G);if(U!=="object")return new f("Invalid "+Z+" `"+te+"` of type `"+U+"` "+("supplied to `"+I+"`, expected `object`."));var re=t({},J[H],M);for(var ee in re){var le=M[ee];if(o(M,ee)&&typeof le!="function")return F(I,Z,te,ee,Y(le));if(!le)return new f("Invalid "+Z+" `"+te+"` key `"+ee+"` supplied to `"+I+"`.\nBad object: "+JSON.stringify(J[H],null," ")+`
21
- Valid keys: `+JSON.stringify(Object.keys(M),null," "));var D=le(G,ee,I,Z,te+"."+ee,n);if(D)return D}return null}return x(O)}function T(M){switch(typeof M){case"number":case"string":case"undefined":return!0;case"boolean":return!M;case"object":if(Array.isArray(M))return M.every(T);if(M===null||l(M))return!0;var O=g(M);if(O){var J=O.call(M),H;if(O!==M.entries){for(;!(H=J.next()).done;)if(!T(H.value))return!1}else for(;!(H=J.next()).done;){var I=H.value;if(I&&!T(I[1]))return!1}}else return!1;return!0;default:return!1}}function V(M,O){return M==="symbol"?!0:O?O["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&O instanceof Symbol:!1}function B(M){var O=typeof M;return Array.isArray(M)?"array":M instanceof RegExp?"object":V(O,M)?"symbol":O}function Y(M){if(typeof M>"u"||M===null)return""+M;var O=B(M);if(O==="object"){if(M instanceof Date)return"date";if(M instanceof RegExp)return"regexp"}return O}function W(M){var O=Y(M);switch(O){case"array":case"object":return"an "+O;case"boolean":case"date":case"regexp":return"a "+O;default:return O}}function ae(M){return!M.constructor||!M.constructor.name?y:M.constructor.name}return m.checkPropTypes=r,m.resetWarningCache=r.resetWarningCache,m.PropTypes=m,m},lr}var cr,lo;function ka(){if(lo)return cr;lo=1;var e=Rr();function t(){}function n(){}return n.resetWarningCache=t,cr=function(){function o(a,l,u,d,h,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}}o.isRequired=o;function r(){return o}var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:r,element:o,elementType:o,instanceOf:r,node:o,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},cr}var co;function ja(){if(co)return pn.exports;if(co=1,process.env.NODE_ENV!=="production"){var e=vs(),t=!0;pn.exports=Ta()(e.isElement,t)}else pn.exports=ka()();return pn.exports}var Ea=ja();const s=Ca(Ea),xs=({ambit:e,onClickCopy:t,onClickDelete:n,onClickFilters:o,onClickAmbit:r,isActive:i,activeColor:a,fontColor:l,moreInfo:u})=>{const{name:d,created_at:h,id:g,isBeingProcessed:y}=e;return c.jsxs("div",{className:Zt.ambitItem,style:{borderBottom:`1px solid ${l}`},children:[c.jsxs("div",{className:Zt.ambitNameDate,onClick:()=>r(g),children:[c.jsxs("div",{className:Zt.ambitName,children:[c.jsx("img",{style:{marginRight:9},src:i?ba:va}),c.jsx("span",{style:{color:i?a:l},children:d})]}),c.jsx("div",{className:Zt.ambitDate,children:h?new Date(h).toLocaleDateString():""})]}),c.jsxs("div",{className:Zt.ambitButtons,children:[y&&c.jsx("img",{src:ya}),c.jsx("button",{onClick:()=>o(g),disabled:e.is_default,children:c.jsx("img",{src:ga})}),c.jsx("button",{onClick:()=>t(g),children:c.jsx("img",{src:ha})}),c.jsx("button",{onClick:()=>n(g),disabled:e.is_default,children:c.jsx("img",{src:ma})})]})]})};xs.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 uo="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",$a="_generalButton_phq4n_2",Na={generalButton:$a},sn=({children:e,onClick:t,fontColor:n="#605B56",borderColor:o="#605B56",backgroundColor:r="#fff",type:i="button",containerStyles:a={},disabled:l=!1})=>c.jsx("button",{className:Na.generalButton,style:{color:n,border:`1.5px solid ${o}`,background:r,...a},onClick:t,type:i,disabled:l,children:e}),_s=({ambitList:e,activeAmbitId:t,fontColor:n="#605B56",activeColor:o,nameLabel:r,dateLabel:i,newAmbitLabel:a="New field",buttonContainerStyles:l={},containerStyles:u={},onCLickNewAmbit:d=()=>console.log("New ambit clicked"),onClickCopy:h=v=>console.log(`Copy ambit: ${v}`),onCLickDelete:g=v=>console.log(`Delete ambit: ${v}`),onClickFilters:y=v=>console.log(`Filters clicked: ${v}`),onClickAmbit:m=v=>console.log(`OnCLickAmbit: ${v}`)})=>{const{t:v}=oe.useTranslation(),[f,x]=_.useState(e);_.useEffect(()=>{e&&x(e)},[e]);const S=k=>{if(f&&f.length>0){let $=[...f];$.sort((b,C)=>b[k].localeCompare(C[k])),x($)}};return c.jsxs("div",{className:it.ambitSelector,style:{color:n,...u},children:[c.jsxs("div",{className:it.header,style:{borderBottom:`1px solid ${n}`},children:[c.jsxs("div",{className:it.nameDateContainer,children:[c.jsx("div",{className:it.ambitName,children:c.jsxs("button",{onClick:()=>S("name"),children:[c.jsx("span",{children:v(r)}),c.jsx("img",{src:uo})]})}),c.jsx("div",{className:it.ambitDate,children:c.jsxs("button",{onClick:()=>S("date"),children:[c.jsx("span",{children:v(i)}),c.jsx("img",{src:uo})]})})]}),c.jsx("div",{className:it.buttonsContainer})]}),c.jsx("div",{className:it.ambitListContainer,children:f&&f.length>0&&f.map(k=>c.jsx(xs,{isActive:t==k.id,ambit:k,fontColor:n,activeColor:o,onClickCopy:h,onClickDelete:g,onClickFilters:y,onClickAmbit:m},`ambitKey${k.id}`))}),c.jsx("div",{className:it.newAmbitButtonContainer,children:c.jsx(sn,{style:{...l},onClick:d,borderColor:"grey",children:v(a)})})]})};_s.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 Oa="_buttonsContainer_1ks7x_2",Aa="_vertical_1ks7x_6",La="_horizontal_1ks7x_9",Ma="_button_1ks7x_2",Ra="_active_1ks7x_25",Da="_buttonName_1ks7x_28",ht={buttonsContainer:Oa,vertical:Aa,horizontal:La,button:Ma,active:Ra,buttonName:Da},Ia="_left_1l4m4_2",Pa="_top_1l4m4_40",Va="_bottom_1l4m4_79",Ba="_right_1l4m4_118",Fa={left:Ia,top:Pa,bottom:Va,right:Ba},Je=({text:e,position:t,styleCustom:n=null})=>{const{t:o}=oe.useTranslation();return c.jsx("div",{className:`tooltip ${Fa[t]}`,style:n,children:o(e)})};Je.propTypes={text:s.string.isRequired,position:s.oneOf(["top","bottom","left","right"]).isRequired,styleCustom:s.object};const ws=({buttons:e=[],orientation:t="horizontal",showName:n=!0,namePosition:o="right",useTooltip:r=!1,tooltipPosition:i="top"})=>{const{t:a}=oe.useTranslation();return c.jsx("div",{className:`${ht.buttonsContainer} ${t==="vertical"&&ht.vertical}
22
- ${t==="horizontal"&&ht.horizontal}`,children:e.map((l,u)=>{const{icon:d,activeIcon:h,isActive:g,name:y,onClick:m,disabled:v}=l,f=c.jsxs(c.Fragment,{children:[n&&o==="left"&&c.jsx("span",{className:ht.buttonName,children:a(y)}),c.jsx("img",{src:g?h:d,alt:a(y)}),n&&o==="right"&&c.jsx("span",{className:ht.buttonName,children:a(y)})]});return c.jsxs("div",{className:"tooltip-parent",children:[c.jsx("button",{onClick:m,className:`${ht.button}
23
- ${g&&ht.active}`,disabled:v,children:f}),r&&c.jsx(Je,{text:y,position:i})]},u)})})};ws.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 za="_indicatorsCategory_11gdl_2",qa="_title_11gdl_6",Wa="_mainTitle_11gdl_14",hn={indicatorsCategory:za,title:qa,mainTitle:Wa},pt=({isOpen:e,onClick:t,children:n,color:o,activeColor:r="#F8A925",title:i="Title",height:a=53,titleFontStyles:l,showBottomBar:u=!0,titleMarginChildren:d=15,mainTitle:h=!1})=>{const{t:g}=oe.useTranslation();return c.jsxs(Mr.motion.div,{className:hn.indicatorsCategory,initial:{height:`${a}px`},animate:{height:e?"auto":`${a}px`},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:e&&u?`1px solid ${r}`:"0px",minHeight:h?"70px":"50px"},children:[c.jsxs("h2",{style:{...l},className:`${hn.title} ${h&&hn.mainTitle}`,onClick:t,children:[c.jsx("span",{style:{color:e?r:o},children:e?"-":"+"}),c.jsx("span",{style:{color:e?r:o},children:g(i)})]}),c.jsx("div",{className:hn.content,style:{padding:h?"20px 0px":"0px"},children:n})]})};pt.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 Ua=()=>c.jsx("div",{children:"EditAmbit"}),Za="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",Ka="_AppliedFiltersContainer_cokx9_2",Ha="_AppliedFilterContent_cokx9_11",fo={AppliedFiltersContainer:Ka,AppliedFilterContent:Ha},ye=hs.create(e=>({activeCategory:"",activeSubCategory:"",selectedIndicator:"",tematicalFiltersSelected:[],fontColor:"#605B56",inputsColor:"#605B56",activeFiltersType:null})),Ss=({title:e,onClick:t,isOpen:n=!0,textColor:o="#ffffff",backgroundColor:r="#605B5680",activeColor:i,fontColor:a="#605B56"})=>{const{t:l}=oe.useTranslation(),{tematicalFiltersSelected:u,activeFiltersType:d}=ye(y=>y),h=y=>{ye.setState(m=>({tematicalFiltersSelected:m.tematicalFiltersSelected.filter(v=>v.code!==y)}))},g=()=>{d=="applied"?ye.setState(()=>({activeFiltersType:null})):ye.setState(()=>({activeFiltersType:"applied"}))};return c.jsx(pt,{isOpen:n,onClick:g,title:e?l(e):"Applied Filters",activeColor:i,mainTitle:!0,color:a,children:c.jsx("div",{className:fo.AppliedFiltersContainer,children:u==null?void 0:u.map((y,m)=>c.jsxs("div",{className:fo.AppliedFilterContent,style:{color:o,background:r},children:[l(y.name),c.jsx("img",{src:Za,alt:"CloseIcon",onClick:()=>h(y.code),style:{cursor:"pointer"}})]},m))})})};Ss.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 Ga="_layersList_cn837_25",Ya="_layerName_cn837_34",po={layersList:Ga,layerName:Ya},Ts=({title:e,isOpen:t=!0,fontColor:n="#605B56",backgroundColor:o="#605B5680",activeColor:r,geoLayers:i=[],onGeoLayersChange:a})=>{const{t:l}=oe.useTranslation(),{activeFiltersType:u}=ye(g=>g),d=()=>{u==="geographical"?ye.setState({activeFiltersType:null}):ye.setState({activeFiltersType:"geographical"})},h=g=>{const y=i.map(m=>({...m,active:m.name===g.name}));a==null||a(y)};return c.jsx(pt,{isOpen:u==="geographical",onClick:d,title:e?l(e):"Geographical Filters",activeColor:r,color:n,mainTitle:!0,children:c.jsx("div",{className:po.layersList,children:i.map(g=>c.jsx("div",{className:po.layerName,style:{color:g.active?r:n,fontWeight:g.active?"bold":"normal"},onClick:()=>h(g),children:l(g.name)},g.name))})})};Ts.propTypes={isOpen:s.bool,onClick:s.func,title:s.string,textColor:s.string,backgroundColor:s.string,activeColor:s.string};const Xa="_checkboxContainer_1nxra_2",Qa={checkboxContainer:Xa},ks=({onClick:e,containerStyles:t,color:n="#605B56",indicator:o,value:r})=>{const{t:i}=oe.useTranslation(),{title:a}=o||{},{fontColor:l,inputsColor:u}=ye(d=>d);return c.jsxs("div",{style:{...t,color:n},role:"checkbox",className:Qa.checkboxContainer,onClick:e,children:[c.jsx("input",{type:"checkbox",checked:typeof r=="boolean"?r:!0,value:r,readOnly:!0,style:{border:`1.5px solid ${r?u:l}`,backgroundColor:r?u:"white"}}),c.jsx("span",{className:"checkmark",children:i(a)})]})};ks.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 xr(e,t){return xr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},xr(e,t)}function Ja(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,xr(e,t)}function ur(e){return e&&e.stopPropagation&&e.stopPropagation(),e&&e.preventDefault&&e.preventDefault(),!1}function dr(e){return e==null?[]:Array.isArray(e)?e.slice():[e]}function gn(e){return e!==null&&e.length===1?e[0]:e.slice()}function yn(e){Object.keys(e).forEach(t=>{typeof document<"u"&&document.addEventListener(t,e[t],!1)})}function gt(e,t){return _r(function(n,o){let r=n;return r<=o.min&&(r=o.min),r>=o.max&&(r=o.max),r}(e,t),t)}function _r(e,t){const n=(e-t.min)%t.step;let o=e-n;return 2*Math.abs(n)>=t.step&&(o+=n>0?t.step:-t.step),parseFloat(o.toFixed(5))}let wr=function(e){function t(o){var r;(r=e.call(this,o)||this).onKeyUp=()=>{r.onEnd()},r.onMouseUp=()=>{r.onEnd(r.getMouseEventMap())},r.onTouchEnd=l=>{l.preventDefault(),r.onEnd(r.getTouchEventMap())},r.onBlur=()=>{r.setState({index:-1},r.onEnd(r.getKeyDownEventMap()))},r.onMouseMove=l=>{r.setState({pending:!0});const u=r.getMousePosition(l),d=r.getDiffPosition(u[0]),h=r.getValueFromPosition(d);r.move(h)},r.onTouchMove=l=>{if(l.touches.length>1)return;r.setState({pending:!0});const u=r.getTouchPosition(l);if(r.isScrolling===void 0){const g=u[0]-r.startPosition[0],y=u[1]-r.startPosition[1];r.isScrolling=Math.abs(y)>Math.abs(g)}if(r.isScrolling)return void r.setState({index:-1});const d=r.getDiffPosition(u[0]),h=r.getValueFromPosition(d);r.move(h)},r.onKeyDown=l=>{if(!(l.ctrlKey||l.shiftKey||l.altKey||l.metaKey))switch(r.setState({pending:!0}),l.key){case"ArrowLeft":case"ArrowDown":case"Left":case"Down":l.preventDefault(),r.moveDownByStep();break;case"ArrowRight":case"ArrowUp":case"Right":case"Up":l.preventDefault(),r.moveUpByStep();break;case"Home":l.preventDefault(),r.move(r.props.min);break;case"End":l.preventDefault(),r.move(r.props.max);break;case"PageDown":l.preventDefault(),r.moveDownByStep(r.props.pageFn(r.props.step));break;case"PageUp":l.preventDefault(),r.moveUpByStep(r.props.pageFn(r.props.step))}},r.onSliderMouseDown=l=>{if(!r.props.disabled&&l.button!==2){if(r.setState({pending:!0}),!r.props.snapDragDisabled){const u=r.getMousePosition(l);r.forceValueFromPosition(u[0],d=>{r.start(d,u[0]),yn(r.getMouseEventMap())})}ur(l)}},r.onSliderClick=l=>{if(!r.props.disabled&&r.props.onSliderClick&&!r.hasMoved){const u=r.getMousePosition(l),d=gt(r.calcValue(r.calcOffsetFromPosition(u[0])),r.props);r.props.onSliderClick(d)}},r.createOnKeyDown=l=>u=>{r.props.disabled||(r.start(l),yn(r.getKeyDownEventMap()),ur(u))},r.createOnMouseDown=l=>u=>{if(r.props.disabled||u.button===2)return;r.setState({pending:!0});const d=r.getMousePosition(u);r.start(l,d[0]),yn(r.getMouseEventMap()),ur(u)},r.createOnTouchStart=l=>u=>{if(r.props.disabled||u.touches.length>1)return;r.setState({pending:!0});const d=r.getTouchPosition(u);r.startPosition=d,r.isScrolling=void 0,r.start(l,d[0]),yn(r.getTouchEventMap()),function(h){h.stopPropagation&&h.stopPropagation()}(u)},r.handleResize=()=>{const l=window.setTimeout(()=>{r.pendingResizeTimeouts.shift(),r.resize()},0);r.pendingResizeTimeouts.push(l)},r.renderThumb=(l,u)=>{const d=r.props.thumbClassName+" "+r.props.thumbClassName+"-"+u+" "+(r.state.index===u?r.props.thumbActiveClassName:""),h={ref:y=>{r["thumb"+u]=y},key:r.props.thumbClassName+"-"+u,className:d,style:l,onMouseDown:r.createOnMouseDown(u),onTouchStart:r.createOnTouchStart(u),onFocus:r.createOnKeyDown(u),tabIndex:0,role:"slider","aria-orientation":r.props.orientation,"aria-valuenow":r.state.value[u],"aria-valuemin":r.props.min,"aria-valuemax":r.props.max,"aria-label":Array.isArray(r.props.ariaLabel)?r.props.ariaLabel[u]:r.props.ariaLabel,"aria-labelledby":Array.isArray(r.props.ariaLabelledby)?r.props.ariaLabelledby[u]:r.props.ariaLabelledby,"aria-disabled":r.props.disabled},g={index:u,value:gn(r.state.value),valueNow:r.state.value[u]};return r.props.ariaValuetext&&(h["aria-valuetext"]=typeof r.props.ariaValuetext=="string"?r.props.ariaValuetext:r.props.ariaValuetext(g)),r.props.renderThumb(h,g)},r.renderTrack=(l,u,d)=>{const h={key:r.props.trackClassName+"-"+l,className:r.props.trackClassName+" "+r.props.trackClassName+"-"+l,style:r.buildTrackStyle(u,r.state.upperBound-d)},g={index:l,value:gn(r.state.value)};return r.props.renderTrack(h,g)};let i=dr(o.value);i.length||(i=dr(o.defaultValue)),r.pendingResizeTimeouts=[];const a=[];for(let l=0;l<i.length;l+=1)i[l]=gt(i[l],o),a.push(l);return r.resizeObserver=null,r.resizeElementRef=_.createRef(),r.state={index:-1,upperBound:0,sliderLength:0,value:i,zIndices:a},r}Ja(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(o,r){const i=dr(o.value);return i.length?r.pending?null:{value:i.map(a=>gt(a,o))}:null},n.componentDidUpdate=function(){this.state.upperBound===0&&this.resize()},n.componentWillUnmount=function(){this.clearPendingResizeTimeouts(),this.resizeObserver&&this.resizeObserver.disconnect()},n.onEnd=function(o){o&&function(r){Object.keys(r).forEach(i=>{typeof document<"u"&&document.removeEventListener(i,r[i],!1)})}(o),this.hasMoved&&this.fireChangeEvent("onAfterChange"),this.setState({pending:!1}),this.hasMoved=!1},n.getValue=function(){return gn(this.state.value)},n.getClosestIndex=function(o){let r=Number.MAX_VALUE,i=-1;const{value:a}=this.state,l=a.length;for(let u=0;u<l;u+=1){const d=this.calcOffset(a[u]),h=Math.abs(o-d);h<r&&(r=h,i=u)}return i},n.getMousePosition=function(o){return[o["page"+this.axisKey()],o["page"+this.orthogonalAxisKey()]]},n.getTouchPosition=function(o){const r=o.touches[0];return[r["page"+this.axisKey()],r["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(o){const r=o/(this.state.sliderLength-this.state.thumbSize)*(this.props.max-this.props.min);return gt(this.state.startValue+r,this.props)},n.getDiffPosition=function(o){let r=o-this.state.startPosition;return this.props.invert&&(r*=-1),r},n.resize=function(){const{slider:o,thumb0:r}=this;if(!o||!r)return;const i=this.sizeKey(),a=o.getBoundingClientRect(),l=o[i],u=a[this.posMaxKey()],d=a[this.posMinKey()],h=r.getBoundingClientRect()[i.replace("client","").toLowerCase()],g=l-h,y=Math.abs(u-d);this.state.upperBound===g&&this.state.sliderLength===y&&this.state.thumbSize===h||this.setState({upperBound:g,sliderLength:y,thumbSize:h})},n.calcOffset=function(o){const r=this.props.max-this.props.min;return r===0?0:(o-this.props.min)/r*this.state.upperBound},n.calcValue=function(o){return o/this.state.upperBound*(this.props.max-this.props.min)+this.props.min},n.calcOffsetFromPosition=function(o){const{slider:r}=this,i=r.getBoundingClientRect(),a=i[this.posMaxKey()],l=i[this.posMinKey()];let u=o-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?a:l));return this.props.invert&&(u=this.state.sliderLength-u),u-=this.state.thumbSize/2,u},n.forceValueFromPosition=function(o,r){const i=this.calcOffsetFromPosition(o),a=this.getClosestIndex(i),l=gt(this.calcValue(i),this.props),u=this.state.value.slice();u[a]=l;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},()=>{r(a),this.fireChangeEvent("onChange")})},n.clearPendingResizeTimeouts=function(){do{const o=this.pendingResizeTimeouts.shift();clearTimeout(o)}while(this.pendingResizeTimeouts.length)},n.start=function(o,r){const i=this["thumb"+o];i&&i.focus();const{zIndices:a}=this.state;a.splice(a.indexOf(o),1),a.push(o),this.setState(l=>({startValue:l.value[o],startPosition:r!==void 0?r:l.startPosition,index:o,zIndices:a}))},n.moveUpByStep=function(o){o===void 0&&(o=this.props.step);const r=this.state.value[this.state.index],i=gt(this.props.invert&&this.props.orientation==="horizontal"?r-o:r+o,this.props);this.move(Math.min(i,this.props.max))},n.moveDownByStep=function(o){o===void 0&&(o=this.props.step);const r=this.state.value[this.state.index],i=gt(this.props.invert&&this.props.orientation==="horizontal"?r+o:r-o,this.props);this.move(Math.max(i,this.props.min))},n.move=function(o){const r=this.state.value.slice(),{index:i}=this.state,{length:a}=r,l=r[i];if(o===l)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;const{pearling:u,max:d,min:h,minDistance:g}=this.props;if(!u){if(i>0){const y=r[i-1];o<y+g&&(o=y+g)}if(i<a-1){const y=r[i+1];o>y-g&&(o=y-g)}}r[i]=o,u&&a>1&&(o>l?(this.pushSucceeding(r,g,i),function(y,m,v,f){for(let x=0;x<y;x+=1){const S=f-x*v;m[y-1-x]>S&&(m[y-1-x]=S)}}(a,r,g,d)):o<l&&(this.pushPreceding(r,g,i),function(y,m,v,f){for(let x=0;x<y;x+=1){const S=f+x*v;m[x]<S&&(m[x]=S)}}(a,r,g,h))),this.setState({value:r},this.fireChangeEvent.bind(this,"onChange"))},n.pushSucceeding=function(o,r,i){let a,l;for(a=i,l=o[a]+r;o[a+1]!==null&&l>o[a+1];a+=1,l=o[a]+r)o[a+1]=_r(l,this.props)},n.pushPreceding=function(o,r,i){for(let a=i,l=o[a]-r;o[a-1]!==null&&l<o[a-1];a-=1,l=o[a]-r)o[a-1]=_r(l,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(o){this.props[o]&&this.props[o](gn(this.state.value),this.state.index)},n.buildThumbStyle=function(o,r){const i={position:"absolute",touchAction:"none",willChange:this.state.index>=0?this.posMinKey():void 0,zIndex:this.state.zIndices.indexOf(r)+1};return i[this.posMinKey()]=o+"px",i},n.buildTrackStyle=function(o,r){const i={position:"absolute",willChange:this.state.index>=0?this.posMinKey()+","+this.posMaxKey():void 0};return i[this.posMinKey()]=o,i[this.posMaxKey()]=r,i},n.buildMarkStyle=function(o){var r;return(r={position:"absolute"})[this.posMinKey()]=o,r},n.renderThumbs=function(o){const{length:r}=o,i=[];for(let l=0;l<r;l+=1)i[l]=this.buildThumbStyle(o[l],l);const a=[];for(let l=0;l<r;l+=1)a[l]=this.renderThumb(i[l],l);return a},n.renderTracks=function(o){const r=[],i=o.length-1;r.push(this.renderTrack(0,0,o[0]));for(let a=0;a<i;a+=1)r.push(this.renderTrack(a+1,o[a],o[a+1]));return r.push(this.renderTrack(i+1,o[i],this.state.upperBound)),r},n.renderMarks=function(){let{marks:o}=this.props;const r=this.props.max-this.props.min+1;return typeof o=="boolean"?o=Array.from({length:r}).map((i,a)=>a):typeof o=="number"&&(o=Array.from({length:r}).map((i,a)=>a).filter(i=>i%o==0)),o.map(parseFloat).sort((i,a)=>i-a).map(i=>{const a=this.calcOffset(i),l={key:i,className:this.props.markClassName,style:this.buildMarkStyle(a)};return this.props.renderMark(l)})},n.render=function(){const o=[],{value:r}=this.state,i=r.length;for(let d=0;d<i;d+=1)o[d]=this.calcOffset(r[d],d);const a=this.props.withTracks?this.renderTracks(o):null,l=this.renderThumbs(o),u=this.props.marks?this.renderMarks():null;return _.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,l,u)},t}(_.Component);wr.displayName="ReactSlider",wr.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=>_.createElement("div",e),renderTrack:e=>_.createElement("div",e),renderMark:e=>_.createElement("span",e)};var Sr=wr;const el="_container_4u41i_2",tl="_unitLabel_4u41i_8",nl="_slider_4u41i_11",rl="_thumb_4u41i_17",ol="_track_4u41i_26",sl="_labels_4u41i_32",jt={container:el,unitLabel:tl,slider:nl,thumb:rl,track:ol,labels:sl},js=({min:e=0,max:t=100,step:n=1,onChange:o,width:r=300,unit:i,fontColor:a="#605B56",defaultValue:l,isDate:u})=>{const{t:d}=oe.useTranslation(),h=u?new Date(e).getTime():null,g=u?new Date(t).getTime():null,[y,m]=_.useState(u?[h,g]:[e,t]),v=f=>{m(f),o==null||o({min:f[0],max:f[1]})};return _.useEffect(()=>{l||m(u?[h,g]:[e,t])},[l,u]),c.jsxs("div",{className:jt.container,style:{width:`${r}px`,color:`${a}`},children:[c.jsx("div",{className:jt.unitLabel,children:c.jsx("span",{children:d(i)})}),c.jsx(Sr,{className:jt.slider,thumbClassName:jt.thumb,trackClassName:jt.track,min:u?h:e,max:u?g:t,step:u?(g-h)/30:n,value:y,onAfterChange:v,withTracks:!0,pearling:!u,minDistance:u?0:.1}),c.jsxs("div",{className:jt.labels,children:[c.jsx("span",{children:u?new Date(y[0]).toLocaleDateString("en-EN",{day:"2-digit",month:"short",year:"numeric"}):y[0]}),c.jsx("span",{children:u?new Date(y[1]).toLocaleDateString("en-EN",{day:"2-digit",month:"short",year:"numeric"}):y[1]})]})]})};js.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 il="_tematicalFiltersInputContainer_1vm1r_2",al="_inputTypeContainer_1vm1r_2",ll="_checkboxContainer_1vm1r_28",cl="_absoluteSliderContainer_1vm1r_37",bn={tematicalFiltersInputContainer:il,inputTypeContainer:al,checkboxContainer:ll,absoluteSliderContainer:cl},Dr=({indicator:e,activeColor:t})=>{const[n,o]=_.useState(),{type:r,name:i,values:a,minValue:l,maxValue:u,unit:d,step:h,disabled:g,isDate:y}=e||{},m=_.useMemo(()=>r=="cat"||n=="cat",[n,r]),v=_.useMemo(()=>r=="abs"||n=="abs",[n,r]),{tematicalFiltersSelected:f,selectedIndicator:x,fontColor:S,inputsColor:k}=ye(C=>C),$=C=>{if(C){const{min:w,max:L,valueClicked:R,allValues:N}=C||{},{code:q,type:F,source:p}=e||{},E=v?"abs":m?"cat":"both";let T=q[0];F=="both"&&(T=E=="cat"?q[1]:q[0]),E=="cat"?ye.setState(V=>{let B=V.tematicalFiltersSelected.find(Y=>Y.code===T);if(B){let Y=[B.values];return B.values.includes(R)?Y=B.values.filter(W=>W!==R):Y=[...B.values,R],Y.length==N.length?{tematicalFiltersSelected:V.tematicalFiltersSelected.filter(W=>W.code!==T)}:{tematicalFiltersSelected:V.tematicalFiltersSelected.map(W=>W.code===T?{...W,values:Y}:W)}}else{let Y=(N||[]).map((W,ae)=>ae);return{tematicalFiltersSelected:[...f,{type:"cat",code:T,values:Y.filter(W=>W!==R),name:e.name,source:p,isDate:y}]}}}):E=="abs"&&ye.setState(V=>{let B=V.tematicalFiltersSelected.find(Y=>Y.code===T);if(w==e.minValue&&L==e.maxValue)return{tematicalFiltersSelected:V.tematicalFiltersSelected.filter(Y=>Y.code!==T)};if(B){let Y={...B,min:w,max:L,type:E,isDate:y};return{tematicalFiltersSelected:V.tematicalFiltersSelected.map(W=>W.code===T?Y:W)}}else return{tematicalFiltersSelected:[...f,{type:E,code:T,min:w,max:L,name:e.name,source:e.source}]}})}},b=_.useMemo(()=>{const C={};if((f==null?void 0:f.length)>0)for(const w of f)w.type==="cat"?C[w.code]=new Set(w.values):C[w.code]=[w.min,w.max];return C},[f]);return c.jsx("div",{className:bn.tematicalFiltersInputContainer,children:c.jsxs(pt,{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:S,activeColor:t,children:[r=="both"&&c.jsxs("div",{className:bn.inputTypeContainer,style:{color:S},children:[c.jsxs("label",{children:[c.jsx("input",{type:"radio",name:"tipo",value:"abs",onChange:()=>{o("abs")},style:{marginRight:4,backgroundColor:n=="abs"?k:"white",border:`1.5px solid ${n=="abs"?k:S}`}}),"Absoluto"]}),c.jsxs("label",{children:[c.jsx("input",{type:"radio",name:"tipo",value:"cat",onChange:()=>{o("cat")},style:{marginRight:4,backgroundColor:n=="cat"?k:"white",border:`1.5px solid ${n=="cat"?k:S}`}}),"Categórico"]})]}),m&&c.jsx("div",{className:bn.checkboxContainer,children:(a||[]).map((C,w)=>{var L;return c.jsx(ks,{onClick:()=>$({valueClicked:w,allValues:a}),indicator:C,value:((L=b[e.code[r=="both"?1:0]])==null?void 0:L.has(w))||!b[e.code[r=="both"?1:0]]},`checkbox-${w}`)})}),(v||r=="glb")&&c.jsx("div",{className:bn.absoluteSliderContainer,children:c.jsx(js,{onChange:$,min:l,max:u,unit:d,defaultValue:b[e.code[0]]?b[e.code[0]]:"",isDate:y,step:h})})]})})};Dr.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 Es=({subcategory:e,fontColor:t,activeColor:n})=>{const{activeSubcategory:o}=ye(a=>a),{name:r,indicators:i}=e||{};return c.jsx(pt,{title:r,isOpen:o==`id${r}`,onClick:()=>{ye.setState(a=>({activeSubcategory:a.activeSubcategory===`id${r}`?"":`id${r}`}))},titleFontStyles:{fontSize:16,fontWeight:400},showBottomBar:!1,titleMarginChildren:20,height:48,color:t,activeColor:n,children:i==null?void 0:i.map((a,l)=>c.jsx(Dr,{indicator:a,fontColor:t,activeColor:n},`indicatorSub-${l}`))})};Es.propTypes={subcategory:s.shape({name:s.string,indicators:s.arrayOf(s.shape({name:s.string,value:s.string}))}),activeColor:s.string};const $s=({category:e,activeColor:t})=>{const{name:n,subcategories:o,indicators:r}=e||{},{activeCategory:i,fontColor:a}=ye(l=>l);return e&&c.jsx(pt,{onClick:()=>{ye.setState(l=>({activeCategory:i===`id${n}`?"":`id${n}`}))},title:n,isOpen:i===`id${n}`,titleFontStyles:{fontSize:18,fontWeight:"bold"},showBottomBar:!1,color:a,activeColor:t,children:o?o.map((l,u)=>c.jsx(Es,{subcategory:l,fontColor:a,activeColor:t},`subcategory-${u}`)):r&&r.map((l,u)=>c.jsx(Dr,{indicator:l,fontColor:a,activeColor:t},`indicator-${u}`))})};$s.propTypes={category:s.shape({name:s.string.isRequired,subcategories:s.array,indicators:s.array}),activeColor:s.string};const Tr=({indicators:e,isOpen:t=!0,title:n,fontColor:o="#605B56",inputsColor:r="#605B56",activeColor:i,isExtra:a=!1})=>{const{tematicalFiltersSelected:l,activeFiltersType:u}=ye(g=>g),{t:d}=oe.useTranslation();_.useEffect(()=>{o&&ye.setState(()=>({fontColor:o}))},[o]),_.useEffect(()=>{r&&ye.setState(()=>({inputsColor:r}))},[r]);const h=()=>{a?u==a?ye.setState(()=>({activeFiltersType:null})):ye.setState(()=>({activeFiltersType:a})):u=="tematical"?ye.setState(()=>({activeFiltersType:null})):ye.setState(()=>({activeFiltersType:"tematical"}))};return c.jsx(pt,{isOpen:a&&u==a||!a&&u=="tematical",title:n?d(n):"Tematical filters",color:o,activeColor:i,onClick:h,mainTitle:!0,children:e==null?void 0:e.map((g,y)=>c.jsx($s,{category:g,fontColor:o,activeColor:i},`category-${y}`))})};Tr.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 ul="_FiltersAmbitContainer_1hv16_2",dl="_FiltersContainer_1hv16_15",fl="_FiltersAmbitHeader_1hv16_18",pl="_FiltersAmbitTitle_1hv16_26",ml="_FiltersAmbitDescription_1hv16_35",hl="_FiltersAmbitDescriptionTitle_1hv16_46",gl="_warning_1hv16_50",yl="_buttonContainer_1hv16_53",at={FiltersAmbitContainer:ul,FiltersContainer:dl,FiltersAmbitHeader:fl,FiltersAmbitTitle:pl,FiltersAmbitDescription:ml,FiltersAmbitDescriptionTitle:hl,warning:gl,buttonContainer:yl},Ns=({ambitName:e,ambitDescription:t,defaultFilters:n,indicators:o,activeColor:r,textColor:i,backgroundColor:a,onChangeAppliedFilters:l,saveAmbit:u,namePlaceholder:d,descPlaceholder:h,filtersTypes:g=["geographical","tematical"],nameRequiredText:y,geoLayers:m=[],onGeoLayersChange:v,onlyFilters:f=!1,descriptionRequired:x=!1,extraLists:S=!1})=>{const{t:k}=oe.useTranslation(),{tematicalFiltersSelected:$,activeFiltersType:b}=ye(p=>p),[C,w]=_.useState(e||null),[L,R]=_.useState(t||null),[N,q]=_.useState(!1);_.useEffect(()=>{ye.setState({tematicalFiltersSelected:n||[]})},[n]),_.useRef(!1),_.useEffect(()=>{l($)},[$]);const F=()=>{x?C&&L?u({name:C,description:L}):q(!0):C?u({name:C,description:L}):q(!0)};return _.useEffect(()=>{if(g.includes("geographical")&&b!="geographical"&&m.length>0){const p=m.map(E=>({...E,active:!1}));v==null||v(p)}},[b]),c.jsxs("div",{className:at.FiltersAmbitContainer,children:[c.jsxs("div",{className:at.FiltersContainer,children:[!f&&c.jsxs("div",{className:at.FiltersAmbitHeader,children:[c.jsx("div",{className:at.FiltersAmbitTitle,children:c.jsx("input",{type:"text",onChange:p=>{q(!1),w(p.target.value)},value:C,placeholder:k(d)})}),c.jsx("div",{className:at.FiltersAmbitDescription,children:c.jsx("div",{className:at.FiltersAmbitDescriptionTitle,children:c.jsx("textarea",{value:L,onChange:p=>{x&&q(!1),R(p.target.value)},placeholder:k(h)})})})]}),c.jsx(Ss,{title:k("applied_filters"),isOpen:b=="applied",textColor:i||"#fff",backgroundColor:a||"#605B5680",activeColor:r}),g.includes("geographical")&&c.jsx(Ts,{title:"geo_filters",activeColor:r,geoLayers:m,onGeoLayersChange:v}),g.includes("extra")&&S.map(p=>c.jsx(Tr,{indicators:p.indicators,inputsColor:r,textColor:i,title:p.title,activeColor:r,isExtra:p.title})),g.includes("tematical")&&c.jsx(Tr,{indicators:o,inputsColor:r,textColor:i,title:"tematical_filters",activeColor:r,isExtra:!1})]}),!f&&c.jsxs("div",{className:at.buttonContainer,children:[N&&c.jsx("div",{className:at.warning,children:k(y)}),c.jsx(sn,{onClick:()=>F(),children:k("save_ambit")})]})]})};Ns.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 bl="_barChartContainer_1ly7h_2",mo={barChartContainer:bl},Ir=({data:e,barHeight:t=25,gap:n=23,fontColor:o="#605B56",leftPadding:r=200,numberOfDivisions:i=7,maxValue:a=null,orientation:l="horizontal",horizontalPadding:u=l=="vertical"?50:20,verticalPadding:d=10,xLabelPadding:h=l=="vertical"?50:40,containerWidth:g=700,containerHeight:y=500,mainColor:m="#000"})=>{const{xScale:v,yScale:f,ticks:x,height:S,chartWidth:k,svgWidth:$,svgHeight:b,contentWidth:C}=_.useMemo(()=>{if(e&&e.length>0){const w=rr.max(e,R=>R.value)||1,L=a||w;if(l==="vertical"){const R=e.length*(t+n)+u*2,N=Math.max(R,g||0),q=y,p=rr.scaleLinear().domain([0,L]).range([q-100,d]),E=Array.from({length:i+1},(T,V)=>L/i*V);return{yScale:p,ticks:E,height:q,chartWidth:N,svgWidth:N,svgHeight:q,contentWidth:R}}else{const R=e.length*(t+n);console.log("barsHeight: ",R);const N=R+d*2+h+30,q=g+r+u*2,F=rr.scaleLinear().domain([0,L]).range([0,g-u*2]),p=Array.from({length:i+1},(E,T)=>L/i*T);return{xScale:F,ticks:p,height:N,chartWidth:g,svgWidth:q,svgHeight:N,contentWidth:q}}}else return{xScale:null,yScale:null,ticks:[],height:0,svgHeight:0}},[e,i,t,n,u,d,a,l,r,g,y]);return l==="vertical"?c.jsx("div",{style:{width:"100%",height:y?`${y}px`:"100%","--main-color":m},className:mo.barChartContainer,children:c.jsx("svg",{width:$,height:b,style:{display:"block",width:$,height:b,maxWidth:"none","--main-color":m},children:c.jsxs("g",{transform:`translate(${u}, 0)`,children:[c.jsx("g",{children:x.map((w,L)=>{const R=f(w);return c.jsxs("g",{children:[c.jsx("line",{x1:0,x2:k-u*2,y1:R,y2:R,stroke:"#ccc"}),c.jsx("text",{x:-10,y:R+4,textAnchor:"end",fontSize:10,fill:o,children:parseInt(w)})]},L)})}),e&&e.length>0&&e.map((w,L)=>{const R=f(0)-f(w.value),N=L*(t+n),q=f(w.value);return c.jsxs("g",{children:[c.jsx("rect",{x:N,y:q,width:t,height:R,fill:w.color,rx:0}),c.jsx("text",{x:N+t/2,y:S-h,textAnchor:"start",fill:o,fontSize:12,transform:`rotate(-90, ${N+t/2}, ${S-h})`,children:w.title})]},L)})]})})}):(console.log("svgHeight: ",b),c.jsx("div",{style:{width:"100%",height:y?`${y}px`:"100%","--main-color":m},className:mo.barChartContainer,children:c.jsx("svg",{width:$,height:b,style:{minWidth:"100%",height:b,width:C,maxWidth:"none"},children:c.jsxs("g",{transform:`translate(0,${d})`,children:[c.jsx("g",{transform:`translate(${r+u}, 0)`,children:x.map((w,L)=>{const R=v(w);return c.jsxs("g",{transform:`translate(${R}, 0)`,children:[c.jsx("line",{y1:0,y2:e.length*(t+n),stroke:"#ccc"}),c.jsx("text",{y:e.length*(t+n)+30,textAnchor:"middle",fontSize:10,fill:o,children:parseInt(w)})]},L)})}),e&&e.length>0&&e.map((w,L)=>{const R=v(w.value),N=L*(t+n);return console.log("y: ",N),c.jsxs("g",{transform:`translate(${r+u}, ${N})`,children:[c.jsx("text",{x:-24,y:t/2+5,textAnchor:"end",fill:o,fontSize:12,children:w.title}),c.jsx("rect",{width:R,height:t,fill:w.color,rx:0})]},L)})]})})}))};Ir.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",Cl="_titleContainer_1ozwp_13",ho={graphicContainer:vl,titleContainer:Cl},Os=({data:e,graphLength:t=700,containerStyle:n,borderColor:o="#605B56",title:r="Graphic Title",fontColor:i="#605B56",maxValue:a=null,numberOfDivisions:l=7,leftPadding:u=-200,orientation:d="horizontal",xLabelPadding:h=0,mainColor:g})=>{const{t:y}=oe.useTranslation();return c.jsxs("div",{className:ho.graphicContainer,style:{...n||{},paddingBottom:40},children:[c.jsx("div",{className:ho.titleContainer,children:c.jsx("h2",{children:y(r)})}),c.jsx(Ir,{data:e,length:t,fontColor:i,maxValue:a,numberOfDivisions:l,leftPadding:u,orientation:d,xLabelPadding:h,mainColor:g})]})};Os.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 xl="_indicatorsCategory_arwy3_2",_l="_title_arwy3_5",wl="_list_arwy3_13",vn={indicatorsCategory:xl,title:_l,list:wl},Sl="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",Tl="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",kl="_indicatorContainer_17b40_2",jl="_indicatorNameContainer_17b40_11",El="_dot_17b40_17",$l="_indicatorName_17b40_11",Nl="_switchExternalContainer_17b40_31",Ol="_switchType_17b40_39",Al="_switchTypeOptions_17b40_43",Ll="_optionContainer_17b40_54",Ml="_customRadious_17b40_64",Rl="_optionText_17b40_71",Oe={indicatorContainer:kl,indicatorNameContainer:jl,dot:El,indicatorName:$l,switchExternalContainer:Nl,switchType:Ol,switchTypeOptions:Al,optionContainer:Ll,customRadious:Ml,optionText:Rl},Pr=({indicator:e,values:t=[],activeColor:n,defaultColor:o="#92898A",activeIndicator:r,activeIndicatorType:i,onClickIndicator:a,multiple:l=!1,onChangeType:u})=>{const{t:d}=oe.useTranslation(),{name:h,type:g,disabled:y}=e,[m,v]=_.useState(!1);_.useEffect(()=>{r&&v(l?r.some(S=>S.name==String(h)):r.name==h)},[r]);const f=()=>c.jsx("div",{className:Oe.switchExternalContainer,children:c.jsx("div",{className:Oe.switchType,children:c.jsxs("div",{className:Oe.switchTypeOptions,children:[c.jsxs("div",{className:Oe.optionContainer,onClick:()=>u("cat"),children:[c.jsx("span",{className:`${Oe.customRadious}`,style:{backgroundColor:i==="cat"?n:"transparent",borderColor:i==="cat"?n:o}}),c.jsx("h4",{className:Oe.optionText,style:{color:i==="cat"?n:o},children:d("indicators.cat")})]}),c.jsxs("div",{className:Oe.optionContainer,onClick:()=>u("abs"),children:[c.jsx("span",{className:`${Oe.customRadious}`,style:{backgroundColor:i==="abs"?n:"transparent",borderColor:i==="abs"?n:o}}),c.jsx("h4",{className:Oe.optionText,style:{color:i==="abs"?n:o},children:d("indicators.abs")})]})]})})}),x=()=>c.jsx("div",{className:Oe.switchExternalContainer,children:c.jsx("div",{className:Oe.switchType,children:c.jsx("div",{className:Oe.switchTypeOptions,children:t.map((S,k)=>c.jsxs("div",{className:Oe.optionContainer,children:[c.jsx("span",{className:Oe.customRadious}),c.jsx("h4",{children:d(S.unit)})]},k))})})});return c.jsxs("div",{className:Oe.indicatorContainer,children:[c.jsxs("div",{className:Oe.indicatorNameContainer,onClick:()=>!y&&a({indicator:e}),children:[c.jsx("div",{style:{border:m?`1px solid ${n}`:`1px solid ${o}`,opacity:y?.5:1,backgroundColor:m?n:"transparent"},className:Oe.dot,children:l&&c.jsx("img",{src:m?Tl:Sl,alt:""})}),c.jsx("h4",{className:Oe.indicatorName,style:{color:m?n:o,opacity:y?.5:1},children:c.jsx(oe.Trans,{i18nKey:h,components:{sup:c.jsx("sup",{})},shouldUnescape:!0})})]}),(r==null?void 0:r.name)===h&&g==="both"&&c.jsx("div",{children:f()}),(r==null?void 0:r.name)===h&&g==="twoUnits"&&c.jsx("div",{children:x()})]})};Pr.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 Dl="_indicatorsSubCategory_1nuug_2",Il="_list_1nuug_11",go={indicatorsSubCategory:Dl,list:Il},As=({subcName:e,indicators:t,defaultColor:n,activeColor:o,activeSubCategory:r,onClickSubCategory:i,id:a,activeIndicator:l,onClickIndicator:u,multiple:d,activeIndicatorType:h,onChangeType:g})=>{const{t:y}=oe.useTranslation(),[m,v]=_.useState(!1);return _.useEffect(()=>{v(r==a)},[r,a]),c.jsxs(Mr.motion.div,{className:go.indicatorsSubCategory,initial:{height:"43px"},animate:{height:m?"auto":"43px"},transition:{duration:.4},children:[c.jsx("button",{onClick:()=>i(a),children:c.jsxs("h3",{style:{color:m?o:n},children:[c.jsx("span",{style:{color:m?o:n},children:m?"-":"+"}),c.jsx("span",{style:{color:m?o:n},children:y(e)})]})}),t&&c.jsx("div",{className:go.list,children:t==null?void 0:t.map((f,x)=>c.jsx(Pr,{indicator:f,defaultColor:n,activeColor:o,activeIndicator:l,onClickIndicator:u,multiple:d,activeIndicatorType:h,onChangeType:g},"indicator"+x))})]})};As.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 Ls=({cat:e,id:t,activeColor:n,defaultColor:o,onClickCategory:r,activeCategory:i,activeSubCategory:a,onClickSubCategory:l,activeIndicator:u,onClickIndicator:d,multiple:h,activeIndicatorType:g,onChangeType:y})=>{var x;const{t:m}=oe.useTranslation(),[v,f]=_.useState(!1);return _.useEffect(()=>{f(i===t)},[i,t]),c.jsxs(Mr.motion.div,{className:vn.indicatorsCategory,initial:{height:"53px"},animate:{height:v?"auto":"53px"},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:v?`1px solid ${n}`:"0px",marginBottom:v?"20px":"0px"},children:[c.jsxs("h2",{className:`${vn.title}`,onClick:()=>r(t),children:[c.jsx("span",{className:vn.plus,style:{color:v?n:o},children:v?"-":"+"}),c.jsx("span",{style:{color:v?n:o},children:m(e.name)})]}),e.subcategories?e.subcategories.map(({name:S,subcategory:k,indicators:$},b)=>c.jsx(As,{id:k,activeSubCategory:a,subcName:S,onClickSubCategory:l,activeIndicator:u,onClickIndicator:d,multiple:h,activeColor:n,defaultColor:o,indicators:$,activeIndicatorType:g,onChangeType:y},`subcKey ${b}`)):c.jsx("div",{className:vn.list,children:(x=e.indicators)==null?void 0:x.map((S,k)=>c.jsx(Pr,{indicator:S,values:S.type=="twoUnits"&&S.values,activeColor:n,defaultColor:o,activeIndicator:u,onClickIndicator:d,multiple:h,activeIndicatorType:g,onChangeType:y},`indicator${k}`))})]})};Ls.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 Pl="_indicatorsList_13b3m_2",Vl="_title_13b3m_6",yo={indicatorsList:Pl,title:Vl},Ms=({indicators:e,activeColor:t,defaultColor:n="#92898A",onChange:o,multiple:r=!1,defaultValue:i=null,changeIndType:a,activeIndicatorType:l})=>{const{t:u}=oe.useTranslation(),[d,h]=_.useState(),[g,y]=_.useState(),[m,v]=_.useState(),f=b=>{h(d==b?null:b)},x=b=>{y(g==b?null:b)},S=({indicator:b})=>{k(b)},k=b=>{if(!r)v((m==null?void 0:m.name)==b.name?null:b);else{let C=m&&m.length>0?[...m]:[];v(C!=null&&C.some(w=>w.name==b.name)?C.filter(w=>w.name!=String(b.name)):[...C,b]),b.type=="both"&&a("cat")}};_.useEffect(()=>{o&&typeof o=="function"&&m&&o({activeIndicator:m})},[m]),_.useLayoutEffect(()=>{if(i&&!m)if(r&&i&&Array.isArray(i)){let b=m&&m.length>0?[...m]:[];v([...b,...i]),$(i[0].name)}else k(i),$(i.name)},[]),_.useEffect(()=>{if(i!=m)if(r&&i&&Array.isArray(i)){let b=m&&m.length>0?[...m]:[];v([...b,...i]),$(i[0].name)}else k(i),$(i.name)},[i]);const $=b=>{const C=e.find(w=>{if(w.subcategories){let L=w.subcategories.find(R=>R.indicators.find(N=>N.name==b));if(L)return y(L.subcategory),L}else return w.indicators.some(L=>L.name==b)});C&&h(C.category)};return c.jsxs("div",{className:yo.indicatorsList,children:[c.jsx("h2",{className:yo.title,style:{color:n},children:u("indicators.indicators")}),e.map((b,C)=>c.jsx(Ls,{id:b.category,cat:b,onClickCategory:f,activeCategory:d,onClickSubCategory:x,activeSubCategory:g,onClickIndicator:S,activeIndicator:m,activeColor:t,defaultColor:n,multiple:r,onChange:o,onChangeType:a,activeIndicatorType:l},`categoryKey${C}`))]})};Ms.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};const Bl="_langSelector_o9enq_2",Fl="_currentLang_o9enq_14",zl="_arrow_o9enq_26",ql="_prevImg_o9enq_29",Wl="_langMenu_o9enq_33",Et={langSelector:Bl,currentLang:Fl,arrow:zl,prevImg:ql,langMenu:Wl},Rs=({langs:e,arrow:t,imgPrev:n})=>{const[o,r]=_.useState(!1),{i18n:i}=oe.useTranslation(),a=e.find(u=>u.code==i.language),l=u=>{i.changeLanguage(u),r(!1)};return c.jsxs("div",{className:Et.langSelector,children:[c.jsxs("div",{className:Et.currentLang,onClick:()=>{r(!o)},children:[n&&c.jsx("img",{className:Et.prevImg,src:n}),(a==null?void 0:a.titleSelected)||(a==null?void 0:a.title),c.jsx("img",{src:t,className:Et.arrow})]}),o&&c.jsx("div",{className:Et.langMenu,children:e.map(u=>c.jsx("button",{className:(a==null?void 0:a.code)==u.code?Et.active:"",onClick:()=>l(u.code),children:u.title},u.code))})]})};Rs.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 Ul="_legendContainer_1l2pz_3",Zl="_closeButton_1l2pz_43",Kl="_titleContainer_1l2pz_71",Hl="_infoContainer_1l2pz_77",Gl="_titleLegendList_1l2pz_88",Yl="_legendListContainer_1l2pz_93",Xl="_gridContainer_1l2pz_93",Ql="_elementLegendContainer_1l2pz_99",Jl="_colorDot_1l2pz_105",ec="_absoluteValueContainer_1l2pz_111",tc="_absoluteValueColor_1l2pz_114",nc="_absoluteValueText_1l2pz_119",rc="_noDataContainer_1l2pz_131",oc="_noData_1l2pz_131",sc="_moreInfoContainer_1l2pz_152",Ee={legendContainer:Ul,closeButton:Zl,titleContainer:Kl,infoContainer:Hl,titleLegendList:Gl,legendListContainer:Yl,gridContainer:Xl,elementLegendContainer:Ql,colorDot:Jl,absoluteValueContainer:ec,absoluteValueColor:tc,absoluteValueText:nc,noDataContainer:rc,noData:oc,moreInfoContainer:sc},Ds=({containerStyles:e,title:t,infoList:n,legendItems:o,onClickMoreInfo:r,buttonTitle:i,onClickClose:a})=>{const{t:l}=oe.useTranslation();return c.jsxs("div",{style:e?{...e}:{},className:`${Ee.legendContainer}`,children:[c.jsx("button",{className:Ee.closeButton,onClick:a}),t&&c.jsx("div",{className:Ee.titleContainer,style:{marginBottom:(!n||n.length==0)&&"15px"},children:c.jsx("h2",{children:t})}),n&&n.length>0&&c.jsx("div",{className:Ee.infoContainer,children:c.jsx("ul",{children:n.map(({title:u,value:d})=>c.jsxs("li",{children:[c.jsx("h3",{className:Ee.title,children:`${u}:`}),c.jsxs("span",{className:Ee.value,children:["  ",d]})]},t))})}),o&&o.length>0&&o.map((u,d)=>c.jsxs("div",{children:[c.jsx("h3",{className:Ee.titleLegendList,style:{marginTop:n&&n.length>0&&d===0?"30px":d>0?"20px":"0px"},children:u.title&&c.jsx(oe.Trans,{i18nKey:u.title,components:{sup:c.jsx("sup",{})},shouldUnescape:!0})}),c.jsxs("div",{className:Ee.legendListContainer,children:[u.absolute?c.jsxs("div",{className:Ee.absoluteValueContainer,children:[c.jsx("div",{className:Ee.absoluteValueColor,style:{background:`linear-gradient(to bottom, ${u.absolute.maxColor} 0%, ${u.absolute.midColor?`${u.absolute.midColor} 50%,`:""} ${u.absolute.minColor} 100%)`}}),c.jsxs("div",{className:Ee.absoluteValueText,children:[c.jsxs("span",{children:[u.absolute.maxValue," ",l(u.absolute.unit)," ",u.absolute.offlimits&&l(u.moreText)]}),u.absolute.midValue&&c.jsxs("span",{children:[u.absolute.midValue," ",l(u.absolute.unit)]}),c.jsxs("span",{children:[u.absolute.minValue," ",l(u.absolute.unit)," ",u.absolute.offlimits&&l(u.lessText)]})]})]}):u.categories&&u.categories.length>0&&c.jsx("div",{className:Ee.gridContainer,children:u.categories.map(({title:h,color:g},y)=>c.jsxs("div",{className:Ee.elementLegendContainer,children:[c.jsx("div",{className:Ee.colorDot,style:{backgroundColor:g}}),c.jsxs("div",{className:Ee.titleLegendElement,children:[l(h)," "]})]},y))}),u.absolute&&u.absolute.noDataColor&&c.jsxs("div",{className:Ee.noDataContainer,children:[c.jsx("div",{className:Ee.noData,style:{background:u.absolute.noDataColor}}),c.jsx("div",{className:Ee.absoluteValueText,children:c.jsx("span",{children:l(u.absolute.noDataText)})})]})]})]},d)),r&&c.jsx("button",{className:Ee.moreInfoContainer,onClick:r,children:i||l("moreInformation")})]})};Ds.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 ic="_logo_1ewa6_2",bo={logo:ic},Is=({src:e,alt:t,href:n})=>{const{t:o}=oe.useTranslation(),r=c.jsx("img",{src:e,alt:o(t)});return n?c.jsx("div",{className:bo.logo,children:c.jsx("a",{href:n,children:r})}):c.jsx("div",{className:bo.logo,children:r})};Is.propTypes={src:s.string.isRequired,alt:s.string.isRequired,href:s.string,className:s.string};const ac=Q.createContext(null);function lc(e,t){const n=Array.isArray(e)?e[0]:e?e.x:0,o=Array.isArray(e)?e[1]:e?e.y:0,r=Array.isArray(t)?t[0]:t?t.x:0,i=Array.isArray(t)?t[1]:t?t.y:0;return n===r&&o===i}function Be(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(!Be(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),o=Object.keys(t);if(n.length!==o.length)return!1;for(const r of n)if(!t.hasOwnProperty(r)||!Be(e[r],t[r]))return!1;return!0}return!1}function cc(e){const t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}function vo(e,t){if(!e.getProjection)return;const n=e.getProjection(),o=t.getProjection();Be(n,o)||t.setProjection(n)}function Co(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function xo(e,t){const n=t.viewState||t;let o=!1;if("zoom"in n){const r=e.zoom;e.zoom=n.zoom,o=o||r!==e.zoom}if("bearing"in n){const r=e.bearing;e.bearing=n.bearing,o=o||r!==e.bearing}if("pitch"in n){const r=e.pitch;e.pitch=n.pitch,o=o||r!==e.pitch}if(n.padding&&!e.isPaddingEqual(n.padding)&&(o=!0,e.padding=n.padding),"longitude"in n&&"latitude"in n){const r=e.center;e.center=new r.constructor(n.longitude,n.latitude),o=o||r!==e.center}return o}const uc=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function _o(e){if(!e)return null;if(typeof e=="string"||("toJS"in e&&(e=e.toJS()),!e.layers))return e;const t={};for(const o of e.layers)t[o.id]=o;const n=e.layers.map(o=>{let r=null;"interactive"in o&&(r=Object.assign({},o),delete r.interactive);const i=t[o.ref];if(i){r=r||Object.assign({},o),delete r.ref;for(const a of uc)a in i&&(r[a]=i[a])}return r||o});return{...e,layers:n}}const wo={version:8,sources:{},layers:[]},So={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"},fr={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"},To={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"},dc=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],fc=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class Bt{constructor(t,n,o){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=r=>{const i=this.props[To[r.type]];i?i(r):r.type==="error"&&console.error(r.error)},this._onPointerEvent=r=>{(r.type==="mousemove"||r.type==="mouseout")&&this._updateHover(r);const i=this.props[So[r.type]];i&&(this.props.interactiveLayerIds&&r.type!=="mouseover"&&r.type!=="mouseout"&&(r.features=this._hoveredFeatures||this._queryRenderedFeatures(r.point)),i(r),delete r.features)},this._onCameraEvent=r=>{if(!this._internalUpdate){const i=this.props[fr[r.type]];i&&i(r)}r.type in this._deferredEvents&&(this._deferredEvents[r.type]=!1)},this._MapClass=t,this.props=n,this._initialize(o)}get map(){return this._map}get transform(){return this._renderTransform}setProps(t){const n=this.props;this.props=t;const o=this._updateSettings(t,n);o&&this._createShadowTransform(this._map);const r=this._updateSize(t),i=this._updateViewState(t,!0);this._updateStyle(t,n),this._updateStyleComponents(t,n),this._updateHandlers(t,n),(o||r||i&&!this._map.isMoving())&&this.redraw()}static reuse(t,n){const o=Bt.savedMaps.pop();if(!o)return null;const r=o.map,i=r.getContainer();for(n.className=i.className;i.childNodes.length>0;)n.appendChild(i.childNodes[0]);r._container=n;const a=r._resizeObserver;a&&(a.disconnect(),a.observe(n)),o.setProps({...t,styleDiffing:!1}),r.resize();const{initialViewState:l}=t;return l&&(l.bounds?r.fitBounds(l.bounds,{...l.fitBoundsOptions,duration:0}):o._updateViewState(l,!1)),r.isStyleLoaded()?r.fire("load"):r.once("styledata",()=>r.fire("load")),r._update(),o}_initialize(t){const{props:n}=this,{mapStyle:o=wo}=n,r={...n,...n.initialViewState,accessToken:n.mapboxAccessToken||pc()||null,container:t,style:_o(o)},i=r.initialViewState||r.viewState||r;if(Object.assign(r,{center:[i.longitude||0,i.latitude||0],zoom:i.zoom||0,pitch:i.pitch||0,bearing:i.bearing||0}),n.gl){const h=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=h,n.gl)}const a=new this._MapClass(r);i.padding&&a.setPadding(i.padding),n.cursor&&(a.getCanvas().style.cursor=n.cursor),this._createShadowTransform(a);const l=a._render;a._render=h=>{this._inRender=!0,l.call(a,h),this._inRender=!1};const u=a._renderTaskQueue.run;a._renderTaskQueue.run=h=>{u.call(a._renderTaskQueue,h),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,{}),vo(a.transform,this._renderTransform)}),a.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const h in So)a.on(h,this._onPointerEvent);for(const h in fr)a.on(h,this._onCameraEvent);for(const h in To)a.on(h,this._onEvent);this._map=a}recycle(){const n=this.map.getContainer().querySelector("[mapboxgl-children]");n==null||n.remove(),Bt.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=cc(t.transform);t.painter.transform=n,this._renderTransform=n}_updateSize(t){const{viewState:n}=t;if(n){const o=this._map;if(n.width!==o.transform.width||n.height!==o.transform.height)return o.resize(),!0}return!1}_updateViewState(t,n){if(this._internalUpdate)return!1;const o=this._map,r=this._renderTransform,{zoom:i,pitch:a,bearing:l}=r,u=o.isMoving();u&&(r.cameraElevationReference="sea");const d=xo(r,{...Co(o.transform),...t});if(u&&(r.cameraElevationReference="ground"),d&&n){const h=this._deferredEvents;h.move=!0,h.zoom||(h.zoom=i!==r.zoom),h.rotate||(h.rotate=l!==r.bearing),h.pitch||(h.pitch=a!==r.pitch)}return u||xo(o.transform,t),d}_updateSettings(t,n){const o=this._map;let r=!1;for(const i of dc)if(i in t&&!Be(t[i],n[i])){r=!0;const a=o[`set${i[0].toUpperCase()}${i.slice(1)}`];a==null||a.call(o,t[i])}return r}_updateStyle(t,n){if(t.cursor!==n.cursor&&(this._map.getCanvas().style.cursor=t.cursor||""),t.mapStyle!==n.mapStyle){const{mapStyle:o=wo,styleDiffing:r=!0}=t,i={diff:r};return"localIdeographFontFamily"in t&&(i.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(_o(o),i),!0}return!1}_updateStyleComponents(t,n){const o=this._map;let r=!1;return o.isStyleLoaded()&&("light"in t&&o.setLight&&!Be(t.light,n.light)&&(r=!0,o.setLight(t.light)),"fog"in t&&o.setFog&&!Be(t.fog,n.fog)&&(r=!0,o.setFog(t.fog)),"terrain"in t&&o.setTerrain&&!Be(t.terrain,n.terrain)&&(!t.terrain||o.getSource(t.terrain.source))&&(r=!0,o.setTerrain(t.terrain))),r}_updateHandlers(t,n){var o,r;const i=this._map;let a=!1;for(const l of fc){const u=(o=t[l])!==null&&o!==void 0?o:!0,d=(r=n[l])!==null&&r!==void 0?r:!0;Be(u,d)||(a=!0,u?i[l].enable(u):i[l].disable())}return a}_queryRenderedFeatures(t){const n=this._map,o=n.transform,{interactiveLayerIds:r=[]}=this.props;try{return n.transform=this._renderTransform,n.queryRenderedFeatures(t,{layers:r.filter(n.getLayer.bind(n))})}catch{return[]}finally{n.transform=o}}_updateHover(t){var n;const{props:o}=this;if(o.interactiveLayerIds&&(o.onMouseMove||o.onMouseEnter||o.onMouseLeave)){const i=t.type,a=((n=this._hoveredFeatures)===null||n===void 0?void 0:n.length)>0,l=this._queryRenderedFeatures(t.point),u=l.length>0;!u&&a&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=l,u&&!a&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=i}else this._hoveredFeatures=null}_fireEvent(t,n,o){const r=this._map,i=r.transform,a=typeof n=="string"?n:n.type;return a==="move"&&this._updateViewState(this.props,!1),a in fr&&(typeof n=="object"&&(n.viewState=Co(i)),this._map.isMoving())?(r.transform=this._renderTransform,t.call(r,n,o),r.transform=i,r):(t.call(r,n,o),r)}_onBeforeRepaint(){const t=this._map;this._internalUpdate=!0;for(const o in this._deferredEvents)this._deferredEvents[o]&&t.fire(o);this._internalUpdate=!1;const n=this._map.transform;t.transform=this._renderTransform,this._onAfterRepaint=()=>{vo(this._renderTransform,n),t.transform=n}}}Bt.savedMaps=[];function pc(){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 mc=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function hc(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:o=>{const r=t.transform;t.transform=e.transform;const i=t.project(o);return t.transform=r,i},unproject:o=>{const r=t.transform;t.transform=e.transform;const i=t.unproject(o);return t.transform=r,i},queryTerrainElevation:(o,r)=>{const i=t.transform;t.transform=e.transform;const a=t.queryTerrainElevation(o,r);return t.transform=i,a},queryRenderedFeatures:(o,r)=>{const i=t.transform;t.transform=e.transform;const a=t.queryRenderedFeatures(o,r);return t.transform=i,a}};for(const o of gc(t))!(o in n)&&!mc.includes(o)&&(n[o]=t[o].bind(t));return n}function gc(e){const t=new Set;let n=e;for(;n;){for(const o of Object.getOwnPropertyNames(n))o[0]!=="_"&&typeof e[o]=="function"&&o!=="fire"&&o!=="setEventedParent"&&t.add(o);n=Object.getPrototypeOf(n)}return Array.from(t)}const yc=typeof document<"u"?_.useLayoutEffect:_.useEffect,bc=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function vc(e,t){for(const o of bc)o in t&&(e[o]=t[o]);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,o=>{o&&console.error(o)},!0)}const zt=Q.createContext(null);function Cc(e,t,n){const o=_.useContext(ac),[r,i]=_.useState(null),a=_.useRef(),{current:l}=_.useRef({mapLib:null,map:null});_.useEffect(()=>{const h=e.mapLib;let g=!0,y;return Promise.resolve(h||n).then(m=>{if(!g)return;if(!m)throw new Error("Invalid mapLib");const v="Map"in m?m:m.default;if(!v.Map)throw new Error("Invalid mapLib");if(vc(v,e),!v.supported||v.supported(e))e.reuseMaps&&(y=Bt.reuse(e,a.current)),y||(y=new Bt(v.Map,e,a.current)),l.map=hc(y),l.mapLib=v,i(y),o==null||o.onMapMount(l.map,e.id);else throw new Error("Map is not supported by this browser")}).catch(m=>{const{onError:v}=e;v?v({type:"error",target:null,originalEvent:null,error:m}):console.error(m)}),()=>{g=!1,y&&(o==null||o.onMapUnmount(e.id),e.reuseMaps?y.recycle():y.destroy())}},[]),yc(()=>{r&&r.setProps(e)}),_.useImperativeHandle(t,()=>l.map,[r]);const u=_.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},r&&Q.createElement(zt.Provider,{value:l},Q.createElement("div",{"mapboxgl-children":"",style:d},e.children)))}const xc=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function Tt(e,t){if(!e||!t)return;const n=e.style;for(const o in t){const r=t[o];Number.isFinite(r)&&!xc.test(o)?n[o]=`${r}px`:n[o]=r}}function _c(e,t){const{map:n,mapLib:o}=_.useContext(zt),r=_.useRef({props:e});r.current.props=e;const i=_.useMemo(()=>{let f=!1;Q.Children.forEach(e.children,k=>{k&&(f=!0)});const x={...e,element:f?document.createElement("div"):null},S=new o.Marker(x);return S.setLngLat([e.longitude,e.latitude]),S.getElement().addEventListener("click",k=>{var $,b;(b=($=r.current.props).onClick)===null||b===void 0||b.call($,{type:"click",target:S,originalEvent:k})}),S.on("dragstart",k=>{var $,b;const C=k;C.lngLat=i.getLngLat(),(b=($=r.current.props).onDragStart)===null||b===void 0||b.call($,C)}),S.on("drag",k=>{var $,b;const C=k;C.lngLat=i.getLngLat(),(b=($=r.current.props).onDrag)===null||b===void 0||b.call($,C)}),S.on("dragend",k=>{var $,b;const C=k;C.lngLat=i.getLngLat(),(b=($=r.current.props).onDragEnd)===null||b===void 0||b.call($,C)}),S},[]);_.useEffect(()=>(i.addTo(n.getMap()),()=>{i.remove()}),[]);const{longitude:a,latitude:l,offset:u,style:d,draggable:h=!1,popup:g=null,rotation:y=0,rotationAlignment:m="auto",pitchAlignment:v="auto"}=e;return _.useEffect(()=>{Tt(i.getElement(),d)},[d]),_.useImperativeHandle(t,()=>i,[]),(i.getLngLat().lng!==a||i.getLngLat().lat!==l)&&i.setLngLat([a,l]),u&&!lc(i.getOffset(),u)&&i.setOffset(u),i.isDraggable()!==h&&i.setDraggable(h),i.getRotation()!==y&&i.setRotation(y),i.getRotationAlignment()!==m&&i.setRotationAlignment(m),i.getPitchAlignment()!==v&&i.setPitchAlignment(v),i.getPopup()!==g&&i.setPopup(g),gs.createPortal(e.children,i.getElement())}_.memo(_.forwardRef(_c));function ko(e){return new Set(e?e.trim().split(/\s+/):[])}function wc(e,t){const{map:n,mapLib:o}=_.useContext(zt),r=_.useMemo(()=>document.createElement("div"),[]),i=_.useRef({props:e});i.current.props=e;const a=_.useMemo(()=>{const l={...e},u=new o.Popup(l);return u.setLngLat([e.longitude,e.latitude]),u.once("open",d=>{var h,g;(g=(h=i.current.props).onOpen)===null||g===void 0||g.call(h,d)}),u},[]);if(_.useEffect(()=>{const l=u=>{var d,h;(h=(d=i.current.props).onClose)===null||h===void 0||h.call(d,u)};return a.on("close",l),a.setDOMContent(r).addTo(n.getMap()),()=>{a.off("close",l),a.isOpen()&&a.remove()}},[]),_.useEffect(()=>{Tt(a.getElement(),e.style)},[e.style]),_.useImperativeHandle(t,()=>a,[]),a.isOpen()&&((a.getLngLat().lng!==e.longitude||a.getLngLat().lat!==e.latitude)&&a.setLngLat([e.longitude,e.latitude]),e.offset&&!Be(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 l=ko(a.options.className),u=ko(e.className);for(const d of l)u.has(d)||a.removeClassName(d);for(const d of u)l.has(d)||a.addClassName(d);a.options.className=e.className}return gs.createPortal(e.children,r)}const Sc=_.memo(_.forwardRef(wc));function an(e,t,n,o){const r=_.useContext(zt),i=_.useMemo(()=>e(r),[]);return _.useEffect(()=>{const a=t,l=null,u=typeof t=="function"?t:null,{map:d}=r;return d.hasControl(i)||(d.addControl(i,a==null?void 0:a.position),l&&l(r)),()=>{u&&u(r),d.hasControl(i)&&d.removeControl(i)}},[]),i}function Tc(e){const t=an(({mapLib:n})=>new n.AttributionControl(e),{position:e.position});return _.useEffect(()=>{Tt(t._container,e.style)},[e.style]),null}_.memo(Tc);function kc(e){const t=an(({mapLib:n})=>new n.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return _.useEffect(()=>{Tt(t._controlContainer,e.style)},[e.style]),null}_.memo(kc);function jc(e,t){const n=_.useRef({props:e}),o=an(({mapLib:r})=>{const i=new r.GeolocateControl(e),a=i._setupUI;return i._setupUI=l=>{i._container.hasChildNodes()||a(l)},i.on("geolocate",l=>{var u,d;(d=(u=n.current.props).onGeolocate)===null||d===void 0||d.call(u,l)}),i.on("error",l=>{var u,d;(d=(u=n.current.props).onError)===null||d===void 0||d.call(u,l)}),i.on("outofmaxbounds",l=>{var u,d;(d=(u=n.current.props).onOutOfMaxBounds)===null||d===void 0||d.call(u,l)}),i.on("trackuserlocationstart",l=>{var u,d;(d=(u=n.current.props).onTrackUserLocationStart)===null||d===void 0||d.call(u,l)}),i.on("trackuserlocationend",l=>{var u,d;(d=(u=n.current.props).onTrackUserLocationEnd)===null||d===void 0||d.call(u,l)}),i},{position:e.position});return n.current.props=e,_.useImperativeHandle(t,()=>o,[]),_.useEffect(()=>{Tt(o._container,e.style)},[e.style]),null}_.memo(_.forwardRef(jc));function Ec(e){const t=an(({mapLib:n})=>new n.NavigationControl(e),{position:e.position});return _.useEffect(()=>{Tt(t._container,e.style)},[e.style]),null}const $c=_.memo(Ec);function Nc(e){const t=an(({mapLib:i})=>new i.ScaleControl(e),{position:e.position}),n=_.useRef(e),o=n.current;n.current=e;const{style:r}=e;return e.maxWidth!==void 0&&e.maxWidth!==o.maxWidth&&(t.options.maxWidth=e.maxWidth),e.unit!==void 0&&e.unit!==o.unit&&t.setUnit(e.unit),_.useEffect(()=>{Tt(t._container,r)},[r]),null}_.memo(Nc);function Mn(e,t){if(!e)throw new Error(t)}function Oc(e,t,n,o){if(Mn(n.id===o.id,"layer id changed"),Mn(n.type===o.type,"layer type changed"),n.type==="custom"||o.type==="custom")return;const{layout:r={},paint:i={},filter:a,minzoom:l,maxzoom:u,beforeId:d}=n;if(d!==o.beforeId&&e.moveLayer(t,d),r!==o.layout){const h=o.layout||{};for(const g in r)Be(r[g],h[g])||e.setLayoutProperty(t,g,r[g]);for(const g in h)r.hasOwnProperty(g)||e.setLayoutProperty(t,g,void 0)}if(i!==o.paint){const h=o.paint||{};for(const g in i)Be(i[g],h[g])||e.setPaintProperty(t,g,i[g]);for(const g in h)i.hasOwnProperty(g)||e.setPaintProperty(t,g,void 0)}Be(a,o.filter)||e.setFilter(t,a),(l!==o.minzoom||u!==o.maxzoom)&&e.setLayerZoomRange(t,l,u)}function Ac(e,t,n){if(e.style&&e.style._loaded&&(!("source"in n)||e.getSource(n.source))){const o={...n,id:t};delete o.beforeId,e.addLayer(o,n.beforeId)}}let Lc=0;function Mc(e){const t=_.useContext(zt).map.getMap(),n=_.useRef(e),[,o]=_.useState(0),r=_.useMemo(()=>e.id||`jsx-layer-${Lc++}`,[]);if(_.useEffect(()=>{if(t){const a=()=>o(l=>l+1);return t.on("styledata",a),a(),()=>{t.off("styledata",a),t.style&&t.style._loaded&&t.getLayer(r)&&t.removeLayer(r)}}},[t]),t&&t.style&&t.getLayer(r))try{Oc(t,r,e,n.current)}catch(a){console.warn(a)}else Ac(t,r,e);return n.current=e,null}let Rc=0;function Dc(e,t,n){if(e.style&&e.style._loaded){const o={...n};return delete o.id,delete o.children,e.addSource(t,o),e.getSource(t)}return null}function Ic(e,t,n){Mn(t.id===n.id,"source id changed"),Mn(t.type===n.type,"source type changed");let o="",r=0;for(const a in t)a!=="children"&&a!=="id"&&!Be(n[a],t[a])&&(o=a,r++);if(!r)return;const i=t.type;i==="geojson"?e.setData(t.data):i==="image"?e.updateImage({url:t.url,coordinates:t.coordinates}):"setCoordinates"in e&&r===1&&o==="coordinates"?e.setCoordinates(t.coordinates):"setUrl"in e&&o==="url"?e.setUrl(t.url):"setTiles"in e&&o==="tiles"?e.setTiles(t.tiles):console.warn(`Unable to update <Source> prop: ${o}`)}function Pc(e){const t=_.useContext(zt).map.getMap(),n=_.useRef(e),[,o]=_.useState(0),r=_.useMemo(()=>e.id||`jsx-source-${Rc++}`,[]);_.useEffect(()=>{if(t){const a=()=>setTimeout(()=>o(l=>l+1),0);return t.on("styledata",a),a(),()=>{var l;if(t.off("styledata",a),t.style&&t.style._loaded&&t.getSource(r)){const u=(l=t.getStyle())===null||l===void 0?void 0:l.layers;if(u)for(const d of u)d.source===r&&t.removeLayer(d.id);t.removeSource(r)}}}},[t]);let i=t&&t.style&&t.getSource(r);return i?Ic(i,e,n.current):i=Dc(t,r,e),n.current=e,i&&Q.Children.map(e.children,a=>a&&_.cloneElement(a,{source:r}))||null}const Vc=import("mapbox-gl"),Ps=Q.forwardRef(function(t,n){return Cc(t,n,Vc)}),Vs=Sc,Bs=$c,Fs=Mc,zs=Pc,Bc="_mapContainer_84pkf_2",Fc={mapContainer:Bc};Gi.accessToken="pk.eyJ1IjoiY2ljbGljYSIsImEiOiJja3llODhxZ2UwYzF1Mm5xcHVhMzI3anhqIn0.-r56FLAzEH57eVsB2ZeVcA";const qs=({initialView:e={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:t=17,minZoom:n=8,mapStyle:o,firstSymbolLayer:r,cssProps:i={},onClick:a="",interactiveLayers:l=[],popUp:u=!1,sources:d=[],layers:h=[]})=>{const g=_.useRef(),[y,m]=_.useState(null),v=Yi.useSelector(f=>f.mapState.showTexts);return _.useEffect(()=>{if(g.current){const f=g.current.getMap();f.getStyle().layers.map(S=>{S.type=="symbol"&&S.id!="professionals"&&(v?f.setLayoutProperty(S.id,"visibility","visible"):f.setLayoutProperty(S.id,"visibility","none"))})}},[v]),c.jsx("div",{className:`${Fc.mapContainer}`,style:i,children:c.jsxs(Ps,{initialViewState:e,ref:g,hash:!1,maxZoom:t,minZoom:n,mapStyle:o,onClick:a,interactiveLayerIds:l,children:[d.length&&d.map((f,x)=>c.jsx(zs,{...f,children:h.length&&h.map((S,k)=>{if(S.sourceId==f.id)return c.jsx(Fs,{...S.layer,beforeId:r},k)})},x)),c.jsx(Bs,{position:"bottom-right",visualizePitch:!0}),u&&y&&c.jsx(Vs,{longitude:u.longitude,latitude:u.latitude,anchor:u.anchor,onClose:()=>m(null),children:u.content})]})})};qs.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 zc="_mapContainer_b0pyr_3",qc={mapContainer:zc},Wc="_FeaturePopUp_4sba4_2",Uc="_title_4sba4_10",jo={FeaturePopUp:Wc,title:Uc},Zc=({props:e})=>{const{t}=oe.useTranslation();return c.jsx("div",{className:jo.FeaturePopUp,children:e.map(n=>c.jsxs("p",{children:[c.jsxs("span",{className:jo.title,children:[c.jsx(oe.Trans,{i18nKey:n.name,components:{sup:c.jsx("sup",{})},shouldUnescape:!0}),":"]}),isNaN(n.value)?c.jsx(c.Fragment,{children:t(n.value)}):c.jsxs(c.Fragment,{children:[n.value.toLocaleString("de",{maximumFractionDigits:2})," ",t(n.unit)]})]}))})},Ws=({initialView:e={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:t=17,minZoom:n=8,mapStyle:o,firstSymbolLayer:r,cssProps:i={},onClick:a="",interactiveLayers:l=[],sources:u=[],layers:d=[],popUpParams:h,onClosePopUp:g,showTexts:y,hash:m=!1})=>{const v=_.useRef();return _.useEffect(()=>{if(v.current){const f=v.current.getMap();f.getStyle().layers.map(S=>{S.type=="symbol"&&S.id!="professionals"&&(y?f.setLayoutProperty(S.id,"visibility","visible"):f.setLayoutProperty(S.id,"visibility","none"))})}},[y]),_.useEffect(()=>{let f=new Xi.Protocol;return nr.addProtocol("pmtiles",f.tile),()=>{nr.removeProtocol("pmtiles")}},[]),c.jsx("div",{className:`${qc.mapContainer}`,style:i,children:c.jsxs(Ps,{mapLib:nr,initialViewState:e,ref:v,hash:m,maxZoom:t,minZoom:n,mapStyle:o,onClick:a,interactiveLayerIds:l,children:[u.length&&u.map((f,x)=>c.jsx(zs,{...f,children:d.length&&d.map((S,k)=>{if(S.sourceId==f.id)return c.jsx(Fs,{...S.layer,beforeId:r,filter:S.filters?S.filters:["all"],layout:{visibility:S.layer.visibility||"visible"}},k)})},x)),c.jsx(Bs,{position:"bottom-right",visualizePitch:!0}),h&&c.jsx(Vs,{longitude:h.lng,latitude:h.lat,onClose:g,children:c.jsx(Zc,{props:h.props})})]})})};Ws.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 Kc="_sectionBar_yf2vy_2",Hc="_leftContent_yf2vy_14",Gc="_textContainer_yf2vy_20",Yc="_title_yf2vy_27",Xc="_subtitle_yf2vy_33",Qc="_rightContent_yf2vy_38",yt={sectionBar:Kc,leftContent:Hc,textContainer:Gc,title:Yc,subtitle:Xc,rightContent:Qc},Us=({leftIcon:e,title:t,subtitle:n,rightContent:o,mainColor:r,width:i,titleColor:a="#605b56",subTitleColor:l="#605b56",borderTop:u=!1})=>{const{t:d}=oe.useTranslation();return c.jsxs("div",{className:yt.sectionBar,style:{width:i&&i,borderTop:u?"1px solid #000":"0px"},children:[c.jsxs("div",{className:yt.leftContent,children:[e&&c.jsx("img",{src:e,alt:"Icono",className:yt.icon}),c.jsxs("div",{className:yt.textContainer,children:[c.jsx("div",{className:yt.title,style:{color:a},children:d(t)}),n&&c.jsx("div",{className:yt.subtitle,style:{color:l},children:n})]})]}),c.jsx("div",{className:yt.rightContent,children:o})]})};Us.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 Jc=Qi.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:Kf,setYear:Hf,setActiveIndicatorKey:Gf,setActiveIndicatorType:Yf,setActiveIndicatorUnit:Xf}=Jc.actions,e0="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",t0="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 Zs(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Zs(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function dt(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Zs(e))&&(o&&(o+=" "),o+=t);return o}function Eo(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||t(...o)}}function n0(e,t,n=void 0){const o={};for(const r in e){const i=e[r];let a="",l=!0;for(let u=0;u<i.length;u+=1){const d=i[u];d&&(a+=(l===!0?"":" ")+t(d),l=!1,n&&n[d]&&(a+=" "+n[d]))}o[r]=a}return o}const r0=Q.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const o0=()=>Q.useContext(r0)??!1;function Ks(...e){const t=Q.useRef(void 0),n=Q.useCallback(o=>{const r=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(o);return typeof l=="function"?l:()=>{a(null)}}return i.current=o,()=>{i.current=null}});return()=>{r.forEach(i=>i==null?void 0:i())}},e);return Q.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}function nn(e){return typeof e=="string"}function s0(e,t,n){return e===void 0||nn(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Nn(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function $o(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 i0(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:i}=e;if(!t){const m=dt(n==null?void 0:n.className,i,r==null?void 0:r.className,o==null?void 0:o.className),v={...n==null?void 0:n.style,...r==null?void 0:r.style,...o==null?void 0:o.style},f={...n,...r,...o};return m.length>0&&(f.className=m),Object.keys(v).length>0&&(f.style=v),{props:f,internalRef:void 0}}const a=Nn({...r,...o}),l=$o(o),u=$o(r),d=t(a),h=dt(d==null?void 0:d.className,n==null?void 0:n.className,i,r==null?void 0:r.className,o==null?void 0:o.className),g={...d==null?void 0:d.style,...n==null?void 0:n.style,...r==null?void 0:r.style,...o==null?void 0:o.style},y={...d,...n,...u,...l};return h.length>0&&(y.className=h),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:d.ref}}function a0(e,t,n){return typeof e=="function"?e(t,n):e}function lt(e){var g;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:r=!1,...i}=e,a=r?{}:a0(n,o),{props:l,internalRef:u}=i0({...i,externalSlotProps:a}),d=Ks(u,a==null?void 0:a.ref,(g=e.additionalProps)==null?void 0:g.ref);return s0(t,{...l,ref:d},o)}function On(e){return e&&e.ownerDocument||document}function l0(e){const{controlled:t,default:n,name:o,state:r="value"}=e,{current:i}=Q.useRef(t!==void 0),[a,l]=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 ${r} state of ${o} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${o} 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
- `))},[r,o,t]);const{current:h}=Q.useRef(n);Q.useEffect(()=>{!i&&JSON.stringify(n)!==JSON.stringify(h)&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${o} after being initialized. To suppress this warning opt to use a controlled ${o}.`].join(`
25
- `))},[JSON.stringify(n)])}const d=Q.useCallback(h=>{i||l(h)},[]);return[u,d]}const Hs=typeof window<"u"?Q.useLayoutEffect:Q.useEffect;function pr(e){const t=Q.useRef(e);return Hs(()=>{t.current=e}),Q.useRef((...n)=>(0,t.current)(...n)).current}function No(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 c0={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Pt(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function u0(e,t,n=(o,r)=>o===r){return e.length===t.length&&e.every((o,r)=>n(o,t[r]))}const d0=2;function $t(e,t,n,o,r){return n===1?Math.min(e+t,r):Math.max(e-t,o)}function Gs(e,t){return e-t}function Oo(e,t){const{index:n}=e.reduce((o,r,i)=>{const a=Math.abs(t-r);return o===null||a<o.distance||a===o.distance?{distance:a,index:i}:o},null)??{};return n}function Cn(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let o=0;o<n.changedTouches.length;o+=1){const r=n.changedTouches[o];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Rn(e,t,n){return(e-t)*100/(n-t)}function f0(e,t,n){return(n-t)*e+t}function p0(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),o=n[0].split(".")[1];return(o?o.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function m0(e,t,n){const o=Math.round((e-n)/t)*t+n;return Number(o.toFixed(p0(t)))}function Ao({values:e,newValue:t,index:n}){const o=e.slice();return o[n]=t,o.sort(Gs)}function xn({sliderRef:e,activeIndex:t,setActive:n}){var r,i,a;const o=On(e.current);(!((r=e.current)!=null&&r.contains(o.activeElement))||Number((i=o==null?void 0:o.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 _n(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?u0(e,t):!1}const h0={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}%`})}},g0=e=>e;let wn;function Lo(){return wn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?wn=CSS.supports("touch-action","none"):wn=!0),wn}function y0(e){const{"aria-labelledby":t,defaultValue:n,disabled:o=!1,disableSwap:r=!1,isRtl:i=!1,marks:a=!1,max:l=100,min:u=0,name:d,onChange:h,onChangeCommitted:g,orientation:y="horizontal",rootRef:m,scale:v=g0,step:f=1,shiftStep:x=10,tabIndex:S,value:k}=e,$=Q.useRef(void 0),[b,C]=Q.useState(-1),[w,L]=Q.useState(-1),[R,N]=Q.useState(!1),q=Q.useRef(0),F=Q.useRef(null),[p,E]=l0({controlled:k,default:n??u,name:"Slider"}),T=h&&((A,P,K)=>{const ie=A.nativeEvent||A,ge=new ie.constructor(ie.type,ie);Object.defineProperty(ge,"target",{writable:!0,value:{value:P,name:d}}),F.current=P,h(ge,P,K)}),V=Array.isArray(p);let B=V?p.slice().sort(Gs):[p];B=B.map(A=>A==null?u:Pt(A,u,l));const Y=a===!0&&f!==null?[...Array(Math.floor((l-u)/f)+1)].map((A,P)=>({value:u+f*P})):a||[],W=Y.map(A=>A.value),[ae,M]=Q.useState(-1),O=Q.useRef(null),J=Ks(m,O),H=A=>P=>{var ie;const K=Number(P.currentTarget.getAttribute("data-index"));No(P.target)&&M(K),L(K),(ie=A==null?void 0:A.onFocus)==null||ie.call(A,P)},I=A=>P=>{var K;No(P.target)||M(-1),L(-1),(K=A==null?void 0:A.onBlur)==null||K.call(A,P)},Z=(A,P)=>{const K=Number(A.currentTarget.getAttribute("data-index")),ie=B[K],ge=W.indexOf(ie);let X=P;if(Y&&f==null){const Ne=W[W.length-1];X>=Ne?X=Ne:X<=W[0]?X=W[0]:X=X<ie?W[ge-1]:W[ge+1]}if(X=Pt(X,u,l),V){r&&(X=Pt(X,B[K-1]||-1/0,B[K+1]||1/0));const Ne=X;X=Ao({values:B,newValue:X,index:K});let Me=K;r||(Me=X.indexOf(Ne)),xn({sliderRef:O,activeIndex:Me})}E(X),M(K),T&&!_n(X,p)&&T(A,X,K),g&&g(A,F.current??X)},te=A=>P=>{var K;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(P.key)){P.preventDefault();const ie=Number(P.currentTarget.getAttribute("data-index")),ge=B[ie];let X=null;if(f!=null){const Ne=P.shiftKey?x:f;switch(P.key){case"ArrowUp":X=$t(ge,Ne,1,u,l);break;case"ArrowRight":X=$t(ge,Ne,i?-1:1,u,l);break;case"ArrowDown":X=$t(ge,Ne,-1,u,l);break;case"ArrowLeft":X=$t(ge,Ne,i?1:-1,u,l);break;case"PageUp":X=$t(ge,x,1,u,l);break;case"PageDown":X=$t(ge,x,-1,u,l);break;case"Home":X=u;break;case"End":X=l;break}}else if(Y){const Ne=W[W.length-1],Me=W.indexOf(ge),je=[i?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],qe=[i?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];je.includes(P.key)?Me===0?X=W[0]:X=W[Me-1]:qe.includes(P.key)&&(Me===W.length-1?X=Ne:X=W[Me+1])}X!=null&&Z(P,X)}(K=A==null?void 0:A.onKeyDown)==null||K.call(A,P)};Hs(()=>{var A;o&&O.current.contains(document.activeElement)&&((A=document.activeElement)==null||A.blur())},[o]),o&&b!==-1&&C(-1),o&&ae!==-1&&M(-1);const G=A=>P=>{var K;(K=A.onChange)==null||K.call(A,P),Z(P,P.target.valueAsNumber)},U=Q.useRef(void 0);let re=y;i&&y==="horizontal"&&(re+="-reverse");const ee=({finger:A,move:P=!1})=>{const{current:K}=O,{width:ie,height:ge,bottom:X,left:Ne}=K.getBoundingClientRect();let Me;re.startsWith("vertical")?Me=(X-A.y)/ge:Me=(A.x-Ne)/ie,re.includes("-reverse")&&(Me=1-Me);let je;if(je=f0(Me,u,l),f)je=m0(je,f,u);else{const Ut=Oo(W,je);je=W[Ut]}je=Pt(je,u,l);let qe=0;if(V){P?qe=U.current:qe=Oo(B,je),r&&(je=Pt(je,B[qe-1]||-1/0,B[qe+1]||1/0));const Ut=je;je=Ao({values:B,newValue:je,index:qe}),r&&P||(qe=je.indexOf(Ut),U.current=qe)}return{newValue:je,activeIndex:qe}},le=pr(A=>{const P=Cn(A,$);if(!P)return;if(q.current+=1,A.type==="mousemove"&&A.buttons===0){D(A);return}const{newValue:K,activeIndex:ie}=ee({finger:P,move:!0});xn({sliderRef:O,activeIndex:ie,setActive:C}),E(K),!R&&q.current>d0&&N(!0),T&&!_n(K,p)&&T(A,K,ie)}),D=pr(A=>{const P=Cn(A,$);if(N(!1),!P)return;const{newValue:K}=ee({finger:P,move:!0});C(-1),A.type==="touchend"&&L(-1),g&&g(A,F.current??K),$.current=void 0,Le()}),se=pr(A=>{if(o)return;Lo()||A.preventDefault();const P=A.changedTouches[0];P!=null&&($.current=P.identifier);const K=Cn(A,$);if(K!==!1){const{newValue:ge,activeIndex:X}=ee({finger:K});xn({sliderRef:O,activeIndex:X,setActive:C}),E(ge),T&&!_n(ge,p)&&T(A,ge,X)}q.current=0;const ie=On(O.current);ie.addEventListener("touchmove",le,{passive:!0}),ie.addEventListener("touchend",D,{passive:!0})}),Le=Q.useCallback(()=>{const A=On(O.current);A.removeEventListener("mousemove",le),A.removeEventListener("mouseup",D),A.removeEventListener("touchmove",le),A.removeEventListener("touchend",D)},[D,le]);Q.useEffect(()=>{const{current:A}=O;return A.addEventListener("touchstart",se,{passive:Lo()}),()=>{A.removeEventListener("touchstart",se),Le()}},[Le,se]),Q.useEffect(()=>{o&&Le()},[o,Le]);const Ye=A=>P=>{var ge;if((ge=A.onMouseDown)==null||ge.call(A,P),o||P.defaultPrevented||P.button!==0)return;P.preventDefault();const K=Cn(P,$);if(K!==!1){const{newValue:X,activeIndex:Ne}=ee({finger:K});xn({sliderRef:O,activeIndex:Ne,setActive:C}),E(X),T&&!_n(X,p)&&T(P,X,Ne)}q.current=0;const ie=On(O.current);ie.addEventListener("mousemove",le,{passive:!0}),ie.addEventListener("mouseup",D)},z=Rn(V?B[0]:u,u,l),ne=Rn(B[B.length-1],u,l)-z,xe=(A={})=>{const P=Nn(A),K={onMouseDown:Ye(P||{})},ie={...P,...K};return{...A,ref:J,...ie}},be=A=>P=>{var ie;(ie=A.onMouseOver)==null||ie.call(A,P);const K=Number(P.currentTarget.getAttribute("data-index"));L(K)},$e=A=>P=>{var K;(K=A.onMouseLeave)==null||K.call(A,P),L(-1)},Pe=(A={})=>{const P=Nn(A),K={onMouseOver:be(P||{}),onMouseLeave:$e(P||{})};return{...A,...P,...K}},He=A=>({pointerEvents:b!==-1&&b!==A?"none":void 0});let ve;return y==="vertical"&&(ve=i?"vertical-rl":"vertical-lr"),{active:b,axis:re,axisProps:h0,dragging:R,focusedThumbIndex:ae,getHiddenInputProps:(A={})=>{const P=Nn(A),K={onChange:G(P||{}),onFocus:H(P||{}),onBlur:I(P||{}),onKeyDown:te(P||{})},ie={...P,...K};return{tabIndex:S,"aria-labelledby":t,"aria-orientation":y,"aria-valuemax":v(l),"aria-valuemin":v(u),name:d,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:o,...A,...ie,style:{...c0,direction:i?"rtl":"ltr",width:"100%",height:"100%",writingMode:ve}}},getRootProps:xe,getThumbProps:Pe,marks:Y,open:w,range:V,rootRef:J,trackLeap:ne,trackOffset:z,values:B,getThumbStyle:He}}function wt(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`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.":wt(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Sn={exports:{}},me={};/**
20
+ */var sr,io;function $a(){if(io)return sr;io=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={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var u=Object.getOwnPropertyNames(a).map(function(h){return a[h]});if(u.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(h){d[h]=h}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return sr=o()?Object.assign:function(i,a){for(var l,u=r(i),d,h=1;h<arguments.length;h++){l=Object(arguments[h]);for(var g in l)t.call(l,g)&&(u[g]=l[g]);if(e){d=e(l);for(var y=0;y<d.length;y++)n.call(l,d[y])&&(u[d[y]]=l[d[y]])}}return u},sr}var ir,ao;function Ir(){if(ao)return ir;ao=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ir=e,ir}var ar,lo;function Ts(){return lo||(lo=1,ar=Function.call.bind(Object.prototype.hasOwnProperty)),ar}var lr,co;function Ea(){if(co)return lr;co=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ir(),n={},r=Ts();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,l,u,d){if(process.env.NODE_ENV!=="production"){for(var h in i)if(r(i,h)){var g;try{if(typeof i[h]!="function"){var y=Error((u||"React class")+": "+l+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}g=i[h](a,h,u,l,null,t)}catch(v){g=v}if(g&&!(g instanceof Error)&&e((u||"React class")+": type specification of "+l+" `"+h+"` 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 m=d?d():"";e("Failed "+l+" type: "+g.message+(m??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},lr=o,lr}var cr,uo;function Na(){if(uo)return cr;uo=1;var e=Ss(),t=$a(),n=Ir(),r=Ts(),o=Ea(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var u="Warning: "+l;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return cr=function(l,u){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function g(M){var O=M&&(d&&M[d]||M[h]);if(typeof O=="function")return O}var y="<<anonymous>>",m={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:T(),arrayOf:j,element:b(),elementType:C(),instanceOf:w,node:q(),objectOf:R,oneOf:L,oneOfType:N,shape:p,exact:E};function v(M,O){return M===O?M!==0||1/M===1/O:M!==M&&O!==O}function f(M,O){this.message=M,this.data=O&&typeof O=="object"?O:{},this.stack=""}f.prototype=Error.prototype;function x(M){if(process.env.NODE_ENV!=="production")var O={},J=0;function K(Z,te,G,U,re,ee,le){if(U=U||y,ee=ee||G,le!==n){if(u){var D=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 D.name="Invariant Violation",D}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var se=U+":"+G;!O[se]&&J<3&&(i("You are manually calling a React.PropTypes validation function for the `"+ee+"` prop on `"+U+"`. 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."),O[se]=!0,J++)}}return te[G]==null?Z?te[G]===null?new f("The "+re+" `"+ee+"` is marked as required "+("in `"+U+"`, but its value is `null`.")):new f("The "+re+" `"+ee+"` is marked as required in "+("`"+U+"`, but its value is `undefined`.")):null:M(te,G,U,re,ee)}var I=K.bind(null,!1);return I.isRequired=K.bind(null,!0),I}function S(M){function O(J,K,I,Z,te,G){var U=J[K],re=V(U);if(re!==M){var ee=Y(U);return new f("Invalid "+Z+" `"+te+"` of type "+("`"+ee+"` supplied to `"+I+"`, expected ")+("`"+M+"`."),{expectedType:M})}return null}return x(O)}function T(){return x(a)}function j(M){function O(J,K,I,Z,te){if(typeof M!="function")return new f("Property `"+te+"` of component `"+I+"` has invalid PropType notation inside arrayOf.");var G=J[K];if(!Array.isArray(G)){var U=V(G);return new f("Invalid "+Z+" `"+te+"` of type "+("`"+U+"` supplied to `"+I+"`, expected an array."))}for(var re=0;re<G.length;re++){var ee=M(G,re,I,Z,te+"["+re+"]",n);if(ee instanceof Error)return ee}return null}return x(O)}function b(){function M(O,J,K,I,Z){var te=O[J];if(!l(te)){var G=V(te);return new f("Invalid "+I+" `"+Z+"` of type "+("`"+G+"` supplied to `"+K+"`, expected a single ReactElement."))}return null}return x(M)}function C(){function M(O,J,K,I,Z){var te=O[J];if(!e.isValidElementType(te)){var G=V(te);return new f("Invalid "+I+" `"+Z+"` of type "+("`"+G+"` supplied to `"+K+"`, expected a single ReactElement type."))}return null}return x(M)}function w(M){function O(J,K,I,Z,te){if(!(J[K]instanceof M)){var G=M.name||y,U=ae(J[K]);return new f("Invalid "+Z+" `"+te+"` of type "+("`"+U+"` supplied to `"+I+"`, expected ")+("instance of `"+G+"`."))}return null}return x(O)}function L(M){if(!Array.isArray(M))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 O(J,K,I,Z,te){for(var G=J[K],U=0;U<M.length;U++)if(v(G,M[U]))return null;var re=JSON.stringify(M,function(le,D){var se=Y(D);return se==="symbol"?String(D):D});return new f("Invalid "+Z+" `"+te+"` of value `"+String(G)+"` "+("supplied to `"+I+"`, expected one of "+re+"."))}return x(O)}function R(M){function O(J,K,I,Z,te){if(typeof M!="function")return new f("Property `"+te+"` of component `"+I+"` has invalid PropType notation inside objectOf.");var G=J[K],U=V(G);if(U!=="object")return new f("Invalid "+Z+" `"+te+"` of type "+("`"+U+"` supplied to `"+I+"`, expected an object."));for(var re in G)if(r(G,re)){var ee=M(G,re,I,Z,te+"."+re,n);if(ee instanceof Error)return ee}return null}return x(O)}function N(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var O=0;O<M.length;O++){var J=M[O];if(typeof J!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+W(J)+" at index "+O+"."),a}function K(I,Z,te,G,U){for(var re=[],ee=0;ee<M.length;ee++){var le=M[ee],D=le(I,Z,te,G,U,n);if(D==null)return null;D.data&&r(D.data,"expectedType")&&re.push(D.data.expectedType)}var se=re.length>0?", expected one of type ["+re.join(", ")+"]":"";return new f("Invalid "+G+" `"+U+"` supplied to "+("`"+te+"`"+se+"."))}return x(K)}function q(){function M(O,J,K,I,Z){return k(O[J])?null:new f("Invalid "+I+" `"+Z+"` supplied to "+("`"+K+"`, expected a ReactNode."))}return x(M)}function F(M,O,J,K,I){return new f((M||"React class")+": "+O+" type `"+J+"."+K+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+I+"`.")}function p(M){function O(J,K,I,Z,te){var G=J[K],U=V(G);if(U!=="object")return new f("Invalid "+Z+" `"+te+"` of type `"+U+"` "+("supplied to `"+I+"`, expected `object`."));for(var re in M){var ee=M[re];if(typeof ee!="function")return F(I,Z,te,re,Y(ee));var le=ee(G,re,I,Z,te+"."+re,n);if(le)return le}return null}return x(O)}function E(M){function O(J,K,I,Z,te){var G=J[K],U=V(G);if(U!=="object")return new f("Invalid "+Z+" `"+te+"` of type `"+U+"` "+("supplied to `"+I+"`, expected `object`."));var re=t({},J[K],M);for(var ee in re){var le=M[ee];if(r(M,ee)&&typeof le!="function")return F(I,Z,te,ee,Y(le));if(!le)return new f("Invalid "+Z+" `"+te+"` key `"+ee+"` supplied to `"+I+"`.\nBad object: "+JSON.stringify(J[K],null," ")+`
21
+ Valid keys: `+JSON.stringify(Object.keys(M),null," "));var D=le(G,ee,I,Z,te+"."+ee,n);if(D)return D}return null}return x(O)}function k(M){switch(typeof M){case"number":case"string":case"undefined":return!0;case"boolean":return!M;case"object":if(Array.isArray(M))return M.every(k);if(M===null||l(M))return!0;var O=g(M);if(O){var J=O.call(M),K;if(O!==M.entries){for(;!(K=J.next()).done;)if(!k(K.value))return!1}else for(;!(K=J.next()).done;){var I=K.value;if(I&&!k(I[1]))return!1}}else return!1;return!0;default:return!1}}function B(M,O){return M==="symbol"?!0:O?O["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&O instanceof Symbol:!1}function V(M){var O=typeof M;return Array.isArray(M)?"array":M instanceof RegExp?"object":B(O,M)?"symbol":O}function Y(M){if(typeof M>"u"||M===null)return""+M;var O=V(M);if(O==="object"){if(M instanceof Date)return"date";if(M instanceof RegExp)return"regexp"}return O}function W(M){var O=Y(M);switch(O){case"array":case"object":return"an "+O;case"boolean":case"date":case"regexp":return"a "+O;default:return O}}function ae(M){return!M.constructor||!M.constructor.name?y:M.constructor.name}return m.checkPropTypes=o,m.resetWarningCache=o.resetWarningCache,m.PropTypes=m,m},cr}var ur,fo;function Oa(){if(fo)return ur;fo=1;var e=Ir();function t(){}function n(){}return n.resetWarningCache=t,ur=function(){function r(a,l,u,d,h,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},ur}var po;function Aa(){if(po)return mn.exports;if(po=1,process.env.NODE_ENV!=="production"){var e=Ss(),t=!0;mn.exports=Na()(e.isElement,t)}else mn.exports=Oa()();return mn.exports}var La=Aa();const s=Ta(La),ks=({ambit:e,onClickCopy:t,onClickDelete:n,onClickFilters:r,onClickAmbit:o,isActive:i,activeColor:a,fontColor:l,moreInfo:u})=>{const{name:d,created_at:h,id:g,isBeingProcessed:y}=e;return c.jsxs("div",{className:Ht.ambitItem,style:{borderBottom:`1px solid ${l}`},children:[c.jsxs("div",{className:Ht.ambitNameDate,onClick:()=>o(g),children:[c.jsxs("div",{className:Ht.ambitName,children:[c.jsx("img",{style:{marginRight:9},src:i?wa:Sa}),c.jsx("span",{style:{color:i?a:l},children:d})]}),c.jsx("div",{className:Ht.ambitDate,children:h?new Date(h).toLocaleDateString():""})]}),c.jsxs("div",{className:Ht.ambitButtons,children:[y&&c.jsx("img",{src:_a}),c.jsx("button",{onClick:()=>r(g),disabled:e.is_default,children:c.jsx("img",{src:xa})}),c.jsx("button",{onClick:()=>t(g),children:c.jsx("img",{src:Ca})}),c.jsx("button",{onClick:()=>n(g),disabled:e.is_default,children:c.jsx("img",{src:va})})]})]})};ks.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 mo="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",Ma="_generalButton_phq4n_2",Ra={generalButton:Ma},an=({children:e,onClick:t,fontColor:n="#605B56",borderColor:r="#605B56",backgroundColor:o="#fff",type:i="button",containerStyles:a={},disabled:l=!1})=>c.jsx("button",{className:Ra.generalButton,style:{color:n,border:`1.5px solid ${r}`,background:o,...a},onClick:t,type:i,disabled:l,children:e}),js=({ambitList:e,activeAmbitId:t,fontColor:n="#605B56",activeColor:r,nameLabel:o,dateLabel:i,newAmbitLabel:a="New field",buttonContainerStyles:l={},containerStyles:u={},onCLickNewAmbit:d=()=>console.log("New ambit clicked"),onClickCopy:h=v=>console.log(`Copy ambit: ${v}`),onCLickDelete:g=v=>console.log(`Delete ambit: ${v}`),onClickFilters:y=v=>console.log(`Filters clicked: ${v}`),onClickAmbit:m=v=>console.log(`OnCLickAmbit: ${v}`)})=>{const{t:v}=oe.useTranslation(),[f,x]=_.useState(e);_.useEffect(()=>{e&&x(e)},[e]);const S=T=>{if(f&&f.length>0){let j=[...f];j.sort((b,C)=>b[T].localeCompare(C[T])),x(j)}};return c.jsxs("div",{className:at.ambitSelector,style:{color:n,...u},children:[c.jsxs("div",{className:at.header,style:{borderBottom:`1px solid ${n}`},children:[c.jsxs("div",{className:at.nameDateContainer,children:[c.jsx("div",{className:at.ambitName,children:c.jsxs("button",{onClick:()=>S("name"),children:[c.jsx("span",{children:v(o)}),c.jsx("img",{src:mo})]})}),c.jsx("div",{className:at.ambitDate,children:c.jsxs("button",{onClick:()=>S("date"),children:[c.jsx("span",{children:v(i)}),c.jsx("img",{src:mo})]})})]}),c.jsx("div",{className:at.buttonsContainer})]}),c.jsx("div",{className:at.ambitListContainer,children:f&&f.length>0&&f.map(T=>c.jsx(ks,{isActive:t==T.id,ambit:T,fontColor:n,activeColor:r,onClickCopy:h,onClickDelete:g,onClickFilters:y,onClickAmbit:m},`ambitKey${T.id}`))}),c.jsx("div",{className:at.newAmbitButtonContainer,children:c.jsx(an,{style:{...l},onClick:d,borderColor:"grey",children:v(a)})})]})};js.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 Da="_buttonsContainer_1ks7x_2",Ia="_vertical_1ks7x_6",Pa="_horizontal_1ks7x_9",Ba="_button_1ks7x_2",Va="_active_1ks7x_25",Fa="_buttonName_1ks7x_28",gt={buttonsContainer:Da,vertical:Ia,horizontal:Pa,button:Ba,active:Va,buttonName:Fa},za="_left_1l4m4_2",qa="_top_1l4m4_40",Wa="_bottom_1l4m4_79",Ua="_right_1l4m4_118",Za={left:za,top:qa,bottom:Wa,right:Ua},Je=({text:e,position:t,styleCustom:n=null})=>{const{t:r}=oe.useTranslation();return c.jsx("div",{className:`tooltip ${Za[t]}`,style:n,children:r(e)})};Je.propTypes={text:s.string.isRequired,position:s.oneOf(["top","bottom","left","right"]).isRequired,styleCustom:s.object};const $s=({buttons:e=[],orientation:t="horizontal",showName:n=!0,namePosition:r="right",useTooltip:o=!1,tooltipPosition:i="top"})=>{const{t:a}=oe.useTranslation();return c.jsx("div",{className:`${gt.buttonsContainer} ${t==="vertical"&&gt.vertical}
22
+ ${t==="horizontal"&&gt.horizontal}`,children:e.map((l,u)=>{const{icon:d,activeIcon:h,isActive:g,name:y,onClick:m,disabled:v}=l,f=c.jsxs(c.Fragment,{children:[n&&r==="left"&&c.jsx("span",{className:gt.buttonName,children:a(y)}),c.jsx("img",{src:g?h:d,alt:a(y)}),n&&r==="right"&&c.jsx("span",{className:gt.buttonName,children:a(y)})]});return c.jsxs("div",{className:"tooltip-parent",children:[c.jsx("button",{onClick:m,className:`${gt.button}
23
+ ${g&&gt.active}`,disabled:v,children:f}),o&&c.jsx(Je,{text:y,position:i})]},u)})})};$s.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 Ha="_indicatorsCategory_11gdl_2",Ka="_title_11gdl_6",Ga="_mainTitle_11gdl_14",gn={indicatorsCategory:Ha,title:Ka,mainTitle:Ga},mt=({isOpen:e,onClick:t,children:n,color:r,activeColor:o="#F8A925",title:i="Title",height:a=53,titleFontStyles:l,showBottomBar:u=!0,titleMarginChildren:d=15,mainTitle:h=!1})=>{const{t:g}=oe.useTranslation();return c.jsxs(Dr.motion.div,{className:gn.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:h?"70px":"50px"},children:[c.jsxs("h2",{style:{...l},className:`${gn.title} ${h&&gn.mainTitle}`,onClick:t,children:[c.jsx("span",{style:{color:e?o:r},children:e?"-":"+"}),c.jsx("span",{style:{color:e?o:r},children:g(i)})]}),c.jsx("div",{className:gn.content,style:{padding:h?"20px 0px":"0px"},children:n})]})};mt.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 Ya=()=>c.jsx("div",{children:"EditAmbit"}),Xa="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",Qa="_AppliedFiltersContainer_cokx9_2",Ja="_AppliedFilterContent_cokx9_11",ho={AppliedFiltersContainer:Qa,AppliedFilterContent:Ja},ye=Cs.create(e=>({activeCategory:"",activeSubCategory:"",selectedIndicator:"",tematicalFiltersSelected:[],fontColor:"#605B56",inputsColor:"#605B56",activeFiltersType:null})),Es=({title:e,onClick:t,isOpen:n=!0,textColor:r="#ffffff",backgroundColor:o="#605B5680",activeColor:i,fontColor:a="#605B56"})=>{const{t:l}=oe.useTranslation(),{tematicalFiltersSelected:u,activeFiltersType:d}=ye(y=>y),h=y=>{ye.setState(m=>({tematicalFiltersSelected:m.tematicalFiltersSelected.filter(v=>v.code!==y)}))},g=()=>{d=="applied"?ye.setState(()=>({activeFiltersType:null})):ye.setState(()=>({activeFiltersType:"applied"}))};return c.jsx(mt,{isOpen:n,onClick:g,title:e?l(e):"Applied Filters",activeColor:i,mainTitle:!0,color:a,children:c.jsx("div",{className:ho.AppliedFiltersContainer,children:u==null?void 0:u.map((y,m)=>c.jsxs("div",{className:ho.AppliedFilterContent,style:{color:r,background:o},children:[l(y.name),c.jsx("img",{src:Xa,alt:"CloseIcon",onClick:()=>h(y.code),style:{cursor:"pointer"}})]},m))})})};Es.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 el="_layersList_cn837_25",tl="_layerName_cn837_34",go={layersList:el,layerName:tl},Ns=({title:e,isOpen:t=!0,fontColor:n="#605B56",backgroundColor:r="#605B5680",activeColor:o,geoLayers:i=[],onGeoLayersChange:a})=>{const{t:l}=oe.useTranslation(),{activeFiltersType:u}=ye(g=>g),d=()=>{u==="geographical"?ye.setState({activeFiltersType:null}):ye.setState({activeFiltersType:"geographical"})},h=g=>{const y=i.map(m=>({...m,active:m.name===g.name}));a==null||a(y)};return c.jsx(mt,{isOpen:u==="geographical",onClick:d,title:e?l(e):"Geographical Filters",activeColor:o,color:n,mainTitle:!0,children:c.jsx("div",{className:go.layersList,children:i.map(g=>c.jsx("div",{className:go.layerName,style:{color:g.active?o:n,fontWeight:g.active?"bold":"normal"},onClick:()=>h(g),children:l(g.name)},g.name))})})};Ns.propTypes={isOpen:s.bool,onClick:s.func,title:s.string,textColor:s.string,backgroundColor:s.string,activeColor:s.string};const nl="_checkboxContainer_1nxra_2",rl={checkboxContainer:nl},Os=({onClick:e,containerStyles:t,color:n="#605B56",indicator:r,value:o})=>{const{t:i}=oe.useTranslation(),{title:a}=r||{},{fontColor:l,inputsColor:u}=ye(d=>d);return c.jsxs("div",{style:{...t,color:n},role:"checkbox",className:rl.checkboxContainer,onClick:e,children:[c.jsx("input",{type:"checkbox",checked:typeof o=="boolean"?o:!0,value:o,readOnly:!0,style:{border:`1.5px solid ${o?u:l}`,backgroundColor:o?u:"white"}}),c.jsx("span",{className:"checkmark",children:i(a)})]})};Os.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 wr(e,t){return wr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},wr(e,t)}function ol(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,wr(e,t)}function dr(e){return e&&e.stopPropagation&&e.stopPropagation(),e&&e.preventDefault&&e.preventDefault(),!1}function fr(e){return e==null?[]:Array.isArray(e)?e.slice():[e]}function yn(e){return e!==null&&e.length===1?e[0]:e.slice()}function bn(e){Object.keys(e).forEach(t=>{typeof document<"u"&&document.addEventListener(t,e[t],!1)})}function yt(e,t){return Sr(function(n,r){let o=n;return o<=r.min&&(o=r.min),o>=r.max&&(o=r.max),o}(e,t),t)}function Sr(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 Tr=function(e){function t(r){var o;(o=e.call(this,r)||this).onKeyUp=()=>{o.onEnd()},o.onMouseUp=()=>{o.onEnd(o.getMouseEventMap())},o.onTouchEnd=l=>{l.preventDefault(),o.onEnd(o.getTouchEventMap())},o.onBlur=()=>{o.setState({index:-1},o.onEnd(o.getKeyDownEventMap()))},o.onMouseMove=l=>{o.setState({pending:!0});const u=o.getMousePosition(l),d=o.getDiffPosition(u[0]),h=o.getValueFromPosition(d);o.move(h)},o.onTouchMove=l=>{if(l.touches.length>1)return;o.setState({pending:!0});const u=o.getTouchPosition(l);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]),h=o.getValueFromPosition(d);o.move(h)},o.onKeyDown=l=>{if(!(l.ctrlKey||l.shiftKey||l.altKey||l.metaKey))switch(o.setState({pending:!0}),l.key){case"ArrowLeft":case"ArrowDown":case"Left":case"Down":l.preventDefault(),o.moveDownByStep();break;case"ArrowRight":case"ArrowUp":case"Right":case"Up":l.preventDefault(),o.moveUpByStep();break;case"Home":l.preventDefault(),o.move(o.props.min);break;case"End":l.preventDefault(),o.move(o.props.max);break;case"PageDown":l.preventDefault(),o.moveDownByStep(o.props.pageFn(o.props.step));break;case"PageUp":l.preventDefault(),o.moveUpByStep(o.props.pageFn(o.props.step))}},o.onSliderMouseDown=l=>{if(!o.props.disabled&&l.button!==2){if(o.setState({pending:!0}),!o.props.snapDragDisabled){const u=o.getMousePosition(l);o.forceValueFromPosition(u[0],d=>{o.start(d,u[0]),bn(o.getMouseEventMap())})}dr(l)}},o.onSliderClick=l=>{if(!o.props.disabled&&o.props.onSliderClick&&!o.hasMoved){const u=o.getMousePosition(l),d=yt(o.calcValue(o.calcOffsetFromPosition(u[0])),o.props);o.props.onSliderClick(d)}},o.createOnKeyDown=l=>u=>{o.props.disabled||(o.start(l),bn(o.getKeyDownEventMap()),dr(u))},o.createOnMouseDown=l=>u=>{if(o.props.disabled||u.button===2)return;o.setState({pending:!0});const d=o.getMousePosition(u);o.start(l,d[0]),bn(o.getMouseEventMap()),dr(u)},o.createOnTouchStart=l=>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(l,d[0]),bn(o.getTouchEventMap()),function(h){h.stopPropagation&&h.stopPropagation()}(u)},o.handleResize=()=>{const l=window.setTimeout(()=>{o.pendingResizeTimeouts.shift(),o.resize()},0);o.pendingResizeTimeouts.push(l)},o.renderThumb=(l,u)=>{const d=o.props.thumbClassName+" "+o.props.thumbClassName+"-"+u+" "+(o.state.index===u?o.props.thumbActiveClassName:""),h={ref:y=>{o["thumb"+u]=y},key:o.props.thumbClassName+"-"+u,className:d,style:l,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:yn(o.state.value),valueNow:o.state.value[u]};return o.props.ariaValuetext&&(h["aria-valuetext"]=typeof o.props.ariaValuetext=="string"?o.props.ariaValuetext:o.props.ariaValuetext(g)),o.props.renderThumb(h,g)},o.renderTrack=(l,u,d)=>{const h={key:o.props.trackClassName+"-"+l,className:o.props.trackClassName+" "+o.props.trackClassName+"-"+l,style:o.buildTrackStyle(u,o.state.upperBound-d)},g={index:l,value:yn(o.state.value)};return o.props.renderTrack(h,g)};let i=fr(r.value);i.length||(i=fr(r.defaultValue)),o.pendingResizeTimeouts=[];const a=[];for(let l=0;l<i.length;l+=1)i[l]=yt(i[l],r),a.push(l);return o.resizeObserver=null,o.resizeElementRef=_.createRef(),o.state={index:-1,upperBound:0,sliderLength:0,value:i,zIndices:a},o}ol(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=fr(r.value);return i.length?o.pending?null:{value:i.map(a=>yt(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 yn(this.state.value)},n.getClosestIndex=function(r){let o=Number.MAX_VALUE,i=-1;const{value:a}=this.state,l=a.length;for(let u=0;u<l;u+=1){const d=this.calcOffset(a[u]),h=Math.abs(r-d);h<o&&(o=h,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 yt(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(),l=r[i],u=a[this.posMaxKey()],d=a[this.posMinKey()],h=o.getBoundingClientRect()[i.replace("client","").toLowerCase()],g=l-h,y=Math.abs(u-d);this.state.upperBound===g&&this.state.sliderLength===y&&this.state.thumbSize===h||this.setState({upperBound:g,sliderLength:y,thumbSize:h})},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()],l=i[this.posMinKey()];let u=r-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?a:l));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),l=yt(this.calcValue(i),this.props),u=this.state.value.slice();u[a]=l;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(l=>({startValue:l.value[r],startPosition:o!==void 0?o:l.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=yt(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=yt(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,l=o[i];if(r===l)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;const{pearling:u,max:d,min:h,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>l?(this.pushSucceeding(o,g,i),function(y,m,v,f){for(let x=0;x<y;x+=1){const S=f-x*v;m[y-1-x]>S&&(m[y-1-x]=S)}}(a,o,g,d)):r<l&&(this.pushPreceding(o,g,i),function(y,m,v,f){for(let x=0;x<y;x+=1){const S=f+x*v;m[x]<S&&(m[x]=S)}}(a,o,g,h))),this.setState({value:o},this.fireChangeEvent.bind(this,"onChange"))},n.pushSucceeding=function(r,o,i){let a,l;for(a=i,l=r[a]+o;r[a+1]!==null&&l>r[a+1];a+=1,l=r[a]+o)r[a+1]=Sr(l,this.props)},n.pushPreceding=function(r,o,i){for(let a=i,l=r[a]-o;r[a-1]!==null&&l<r[a-1];a-=1,l=r[a]-o)r[a-1]=Sr(l,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](yn(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 l=0;l<o;l+=1)i[l]=this.buildThumbStyle(r[l],l);const a=[];for(let l=0;l<o;l+=1)a[l]=this.renderThumb(i[l],l);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),l={key:i,className:this.props.markClassName,style:this.buildMarkStyle(a)};return this.props.renderMark(l)})},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,l=this.renderThumbs(r),u=this.props.marks?this.renderMarks():null;return _.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,l,u)},t}(_.Component);Tr.displayName="ReactSlider",Tr.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=>_.createElement("div",e),renderTrack:e=>_.createElement("div",e),renderMark:e=>_.createElement("span",e)};var kr=Tr;const sl="_container_4u41i_2",il="_unitLabel_4u41i_8",al="_slider_4u41i_11",ll="_thumb_4u41i_17",cl="_track_4u41i_26",ul="_labels_4u41i_32",$t={container:sl,unitLabel:il,slider:al,thumb:ll,track:cl,labels:ul},As=({min:e=0,max:t=100,step:n=1,onChange:r,width:o=300,unit:i,fontColor:a="#605B56",defaultValue:l,isDate:u})=>{const{t:d}=oe.useTranslation(),h=u?new Date(e).getTime():null,g=u?new Date(t).getTime():null,[y,m]=_.useState(u?[h,g]:[e,t]),v=f=>{m(f),r==null||r({min:f[0],max:f[1]})};return _.useEffect(()=>{l||m(u?[h,g]:[e,t])},[l,u]),c.jsxs("div",{className:$t.container,style:{width:`${o}px`,color:`${a}`},children:[c.jsx("div",{className:$t.unitLabel,children:c.jsx("span",{children:d(i)})}),c.jsx(kr,{className:$t.slider,thumbClassName:$t.thumb,trackClassName:$t.track,min:u?h:e,max:u?g:t,step:u?(g-h)/30:n,value:y,onAfterChange:v,withTracks:!0,pearling:!u,minDistance:u?0:.1}),c.jsxs("div",{className:$t.labels,children:[c.jsx("span",{children:u?new Date(y[0]).toLocaleDateString("en-EN",{day:"2-digit",month:"short",year:"numeric"}):y[0]}),c.jsx("span",{children:u?new Date(y[1]).toLocaleDateString("en-EN",{day:"2-digit",month:"short",year:"numeric"}):y[1]})]})]})};As.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 dl="_tematicalFiltersInputContainer_1vm1r_2",fl="_inputTypeContainer_1vm1r_2",pl="_checkboxContainer_1vm1r_28",ml="_absoluteSliderContainer_1vm1r_37",vn={tematicalFiltersInputContainer:dl,inputTypeContainer:fl,checkboxContainer:pl,absoluteSliderContainer:ml},Pr=({indicator:e,activeColor:t})=>{const[n,r]=_.useState(),{type:o,name:i,values:a,minValue:l,maxValue:u,unit:d,step:h,disabled:g,isDate:y}=e||{},m=_.useMemo(()=>o=="cat"||n=="cat",[n,o]),v=_.useMemo(()=>o=="abs"||n=="abs",[n,o]),{tematicalFiltersSelected:f,selectedIndicator:x,fontColor:S,inputsColor:T}=ye(C=>C),j=C=>{if(C){const{min:w,max:L,valueClicked:R,allValues:N}=C||{},{code:q,type:F,source:p}=e||{},E=v?"abs":m?"cat":"both";let k=q[0];F=="both"&&(k=E=="cat"?q[1]:q[0]),E=="cat"?ye.setState(B=>{let V=B.tematicalFiltersSelected.find(Y=>Y.code===k);if(V){let Y=[V.values];return V.values.includes(R)?Y=V.values.filter(W=>W!==R):Y=[...V.values,R],Y.length==N.length?{tematicalFiltersSelected:B.tematicalFiltersSelected.filter(W=>W.code!==k)}:{tematicalFiltersSelected:B.tematicalFiltersSelected.map(W=>W.code===k?{...W,values:Y}:W)}}else{let Y=(N||[]).map((W,ae)=>ae);return{tematicalFiltersSelected:[...f,{type:"cat",code:k,values:Y.filter(W=>W!==R),name:e.name,source:p,isDate:y}]}}}):E=="abs"&&ye.setState(B=>{let V=B.tematicalFiltersSelected.find(Y=>Y.code===k);if(w==e.minValue&&L==e.maxValue)return{tematicalFiltersSelected:B.tematicalFiltersSelected.filter(Y=>Y.code!==k)};if(V){let Y={...V,min:w,max:L,type:E,isDate:y};return{tematicalFiltersSelected:B.tematicalFiltersSelected.map(W=>W.code===k?Y:W)}}else return{tematicalFiltersSelected:[...f,{type:E,code:k,min:w,max:L,name:e.name,source:e.source}]}})}},b=_.useMemo(()=>{const C={};if((f==null?void 0:f.length)>0)for(const w of f)w.type==="cat"?C[w.code]=new Set(w.values):C[w.code]=[w.min,w.max];return C},[f]);return c.jsx("div",{className:vn.tematicalFiltersInputContainer,children:c.jsxs(mt,{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:S,activeColor:t,children:[o=="both"&&c.jsxs("div",{className:vn.inputTypeContainer,style:{color:S},children:[c.jsxs("label",{children:[c.jsx("input",{type:"radio",name:"tipo",value:"abs",onChange:()=>{r("abs")},style:{marginRight:4,backgroundColor:n=="abs"?T:"white",border:`1.5px solid ${n=="abs"?T:S}`}}),"Absoluto"]}),c.jsxs("label",{children:[c.jsx("input",{type:"radio",name:"tipo",value:"cat",onChange:()=>{r("cat")},style:{marginRight:4,backgroundColor:n=="cat"?T:"white",border:`1.5px solid ${n=="cat"?T:S}`}}),"Categórico"]})]}),m&&c.jsx("div",{className:vn.checkboxContainer,children:(a||[]).map((C,w)=>{var L;return c.jsx(Os,{onClick:()=>j({valueClicked:w,allValues:a}),indicator:C,value:((L=b[e.code[o=="both"?1:0]])==null?void 0:L.has(w))||!b[e.code[o=="both"?1:0]]},`checkbox-${w}`)})}),(v||o=="glb")&&c.jsx("div",{className:vn.absoluteSliderContainer,children:c.jsx(As,{onChange:j,min:l,max:u,unit:d,defaultValue:b[e.code[0]]?b[e.code[0]]:"",isDate:y,step:h})})]})})};Pr.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 Ls=({subcategory:e,fontColor:t,activeColor:n})=>{const{activeSubcategory:r}=ye(a=>a),{name:o,indicators:i}=e||{};return c.jsx(mt,{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,l)=>c.jsx(Pr,{indicator:a,fontColor:t,activeColor:n},`indicatorSub-${l}`))})};Ls.propTypes={subcategory:s.shape({name:s.string,indicators:s.arrayOf(s.shape({name:s.string,value:s.string}))}),activeColor:s.string};const Ms=({category:e,activeColor:t})=>{const{name:n,subcategories:r,indicators:o}=e||{},{activeCategory:i,fontColor:a}=ye(l=>l);return e&&c.jsx(mt,{onClick:()=>{ye.setState(l=>({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((l,u)=>c.jsx(Ls,{subcategory:l,fontColor:a,activeColor:t},`subcategory-${u}`)):o&&o.map((l,u)=>c.jsx(Pr,{indicator:l,fontColor:a,activeColor:t},`indicator-${u}`))})};Ms.propTypes={category:s.shape({name:s.string.isRequired,subcategories:s.array,indicators:s.array}),activeColor:s.string};const jr=({indicators:e,isOpen:t=!0,title:n,fontColor:r="#605B56",inputsColor:o="#605B56",activeColor:i,isExtra:a=!1})=>{const{tematicalFiltersSelected:l,activeFiltersType:u}=ye(g=>g),{t:d}=oe.useTranslation();_.useEffect(()=>{r&&ye.setState(()=>({fontColor:r}))},[r]),_.useEffect(()=>{o&&ye.setState(()=>({inputsColor:o}))},[o]);const h=()=>{a?u==a?ye.setState(()=>({activeFiltersType:null})):ye.setState(()=>({activeFiltersType:a})):u=="tematical"?ye.setState(()=>({activeFiltersType:null})):ye.setState(()=>({activeFiltersType:"tematical"}))};return c.jsx(mt,{isOpen:a&&u==a||!a&&u=="tematical",title:n?d(n):"Tematical filters",color:r,activeColor:i,onClick:h,mainTitle:!0,children:e==null?void 0:e.map((g,y)=>c.jsx(Ms,{category:g,fontColor:r,activeColor:i},`category-${y}`))})};jr.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 hl="_FiltersAmbitContainer_1hv16_2",gl="_FiltersContainer_1hv16_15",yl="_FiltersAmbitHeader_1hv16_18",bl="_FiltersAmbitTitle_1hv16_26",vl="_FiltersAmbitDescription_1hv16_35",Cl="_FiltersAmbitDescriptionTitle_1hv16_46",xl="_warning_1hv16_50",_l="_buttonContainer_1hv16_53",lt={FiltersAmbitContainer:hl,FiltersContainer:gl,FiltersAmbitHeader:yl,FiltersAmbitTitle:bl,FiltersAmbitDescription:vl,FiltersAmbitDescriptionTitle:Cl,warning:xl,buttonContainer:_l},Rs=({ambitName:e,ambitDescription:t,defaultFilters:n,indicators:r,activeColor:o,textColor:i,backgroundColor:a,onChangeAppliedFilters:l,saveAmbit:u,namePlaceholder:d,descPlaceholder:h,filtersTypes:g=["geographical","tematical"],nameRequiredText:y,geoLayers:m=[],onGeoLayersChange:v,onlyFilters:f=!1,descriptionRequired:x=!1,extraLists:S=!1})=>{const{t:T}=oe.useTranslation(),{tematicalFiltersSelected:j,activeFiltersType:b}=ye(p=>p),[C,w]=_.useState(e||null),[L,R]=_.useState(t||null),[N,q]=_.useState(!1);_.useEffect(()=>{ye.setState({tematicalFiltersSelected:n||[]})},[n]),_.useRef(!1),_.useEffect(()=>{l(j)},[j]);const F=()=>{x?C&&L?u({name:C,description:L}):q(!0):C?u({name:C,description:L}):q(!0)};return _.useEffect(()=>{if(g.includes("geographical")&&b!="geographical"&&m.length>0){const p=m.map(E=>({...E,active:!1}));v==null||v(p)}},[b]),c.jsxs("div",{className:lt.FiltersAmbitContainer,children:[c.jsxs("div",{className:lt.FiltersContainer,children:[!f&&c.jsxs("div",{className:lt.FiltersAmbitHeader,children:[c.jsx("div",{className:lt.FiltersAmbitTitle,children:c.jsx("input",{type:"text",onChange:p=>{q(!1),w(p.target.value)},value:C,placeholder:T(d)})}),c.jsx("div",{className:lt.FiltersAmbitDescription,children:c.jsx("div",{className:lt.FiltersAmbitDescriptionTitle,children:c.jsx("textarea",{value:L,onChange:p=>{x&&q(!1),R(p.target.value)},placeholder:T(h)})})})]}),c.jsx(Es,{title:T("applied_filters"),isOpen:b=="applied",textColor:i||"#fff",backgroundColor:a||"#605B5680",activeColor:o}),g.includes("geographical")&&c.jsx(Ns,{title:"geo_filters",activeColor:o,geoLayers:m,onGeoLayersChange:v}),g.includes("extra")&&S.map(p=>c.jsx(jr,{indicators:p.indicators,inputsColor:o,textColor:i,title:p.title,activeColor:o,isExtra:p.title})),g.includes("tematical")&&c.jsx(jr,{indicators:r,inputsColor:o,textColor:i,title:"tematical_filters",activeColor:o,isExtra:!1})]}),!f&&c.jsxs("div",{className:lt.buttonContainer,children:[N&&c.jsx("div",{className:lt.warning,children:T(y)}),c.jsx(an,{onClick:()=>F(),children:T("save_ambit")})]})]})};Rs.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 wl="_barChartContainer_1ly7h_2",yo={barChartContainer:wl},Br=({data:e,barHeight:t=25,gap:n=23,fontColor:r="#605B56",leftPadding:o=200,numberOfDivisions:i=7,maxValue:a=null,orientation:l="horizontal",horizontalPadding:u=l=="vertical"?50:20,verticalPadding:d=10,xLabelPadding:h=l=="vertical"?50:40,containerWidth:g=700,containerHeight:y=500,mainColor:m="#000"})=>{const{xScale:v,yScale:f,ticks:x,height:S,chartWidth:T,svgWidth:j,svgHeight:b,contentWidth:C}=_.useMemo(()=>{if(e&&e.length>0){const w=or.max(e,R=>R.value)||1,L=a||w;if(l==="vertical"){const R=e.length*(t+n)+u*2,N=Math.max(R,g||0),q=y,p=or.scaleLinear().domain([0,L]).range([q-100,d]),E=Array.from({length:i+1},(k,B)=>L/i*B);return{yScale:p,ticks:E,height:q,chartWidth:N,svgWidth:N,svgHeight:q,contentWidth:R}}else{const R=e.length*(t+n);console.log("barsHeight: ",R);const N=R+d*2+h+30,q=g+o+u*2,F=or.scaleLinear().domain([0,L]).range([0,g-u*2]),p=Array.from({length:i+1},(E,k)=>L/i*k);return{xScale:F,ticks:p,height:N,chartWidth:g,svgWidth:q,svgHeight:N,contentWidth:q}}}else return{xScale:null,yScale:null,ticks:[],height:0,svgHeight:0}},[e,i,t,n,u,d,a,l,o,g,y]);return l==="vertical"?c.jsx("div",{style:{width:"100%",height:y?`${y}px`:"100%","--main-color":m},className:yo.barChartContainer,children:c.jsx("svg",{width:j,height:b,style:{display:"block",width:j,height:b,maxWidth:"none","--main-color":m},children:c.jsxs("g",{transform:`translate(${u}, 0)`,children:[c.jsx("g",{children:x.map((w,L)=>{const R=f(w);return c.jsxs("g",{children:[c.jsx("line",{x1:0,x2:T-u*2,y1:R,y2:R,stroke:"#ccc"}),c.jsx("text",{x:-10,y:R+4,textAnchor:"end",fontSize:10,fill:r,children:parseInt(w)})]},L)})}),e&&e.length>0&&e.map((w,L)=>{const R=f(0)-f(w.value),N=L*(t+n),q=f(w.value);return c.jsxs("g",{children:[c.jsx("rect",{x:N,y:q,width:t,height:R,fill:w.color,rx:0}),c.jsx("text",{x:N+t/2,y:S-h,textAnchor:"start",fill:r,fontSize:12,transform:`rotate(-90, ${N+t/2}, ${S-h})`,children:w.title})]},L)})]})})}):(console.log("svgHeight: ",b),c.jsx("div",{style:{width:"100%",height:y?`${y}px`:"100%","--main-color":m},className:yo.barChartContainer,children:c.jsx("svg",{width:j,height:b,style:{minWidth:"100%",height:b,width:C,maxWidth:"none"},children:c.jsxs("g",{transform:`translate(0,${d})`,children:[c.jsx("g",{transform:`translate(${o+u}, 0)`,children:x.map((w,L)=>{const R=v(w);return c.jsxs("g",{transform:`translate(${R}, 0)`,children:[c.jsx("line",{y1:0,y2:e.length*(t+n),stroke:"#ccc"}),c.jsx("text",{y:e.length*(t+n)+30,textAnchor:"middle",fontSize:10,fill:r,children:parseInt(w)})]},L)})}),e&&e.length>0&&e.map((w,L)=>{const R=v(w.value),N=L*(t+n);return console.log("y: ",N),c.jsxs("g",{transform:`translate(${o+u}, ${N})`,children:[c.jsx("text",{x:-24,y:t/2+5,textAnchor:"end",fill:r,fontSize:12,children:w.title}),c.jsx("rect",{width:R,height:t,fill:w.color,rx:0})]},L)})]})})}))};Br.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 Sl="_graphicContainer_1ozwp_2",Tl="_titleContainer_1ozwp_13",bo={graphicContainer:Sl,titleContainer:Tl},Ds=({data:e,graphLength:t=700,containerStyle:n,borderColor:r="#605B56",title:o="Graphic Title",fontColor:i="#605B56",maxValue:a=null,numberOfDivisions:l=7,leftPadding:u=-200,orientation:d="horizontal",xLabelPadding:h=0,mainColor:g})=>{const{t:y}=oe.useTranslation();return c.jsxs("div",{className:bo.graphicContainer,style:{...n||{},paddingBottom:40},children:[c.jsx("div",{className:bo.titleContainer,children:c.jsx("h2",{children:y(o)})}),c.jsx(Br,{data:e,length:t,fontColor:i,maxValue:a,numberOfDivisions:l,leftPadding:u,orientation:d,xLabelPadding:h,mainColor:g})]})};Ds.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 kl="_indicatorsCategory_arwy3_2",jl="_title_arwy3_5",$l="_list_arwy3_13",Cn={indicatorsCategory:kl,title:jl,list:$l},El="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",Nl="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",Ol="_indicatorContainer_17b40_2",Al="_indicatorNameContainer_17b40_11",Ll="_dot_17b40_17",Ml="_indicatorName_17b40_11",Rl="_switchExternalContainer_17b40_31",Dl="_switchType_17b40_39",Il="_switchTypeOptions_17b40_43",Pl="_optionContainer_17b40_54",Bl="_customRadious_17b40_64",Vl="_optionText_17b40_71",Oe={indicatorContainer:Ol,indicatorNameContainer:Al,dot:Ll,indicatorName:Ml,switchExternalContainer:Rl,switchType:Dl,switchTypeOptions:Il,optionContainer:Pl,customRadious:Bl,optionText:Vl},Vr=({indicator:e,values:t=[],activeColor:n,defaultColor:r="#92898A",activeIndicator:o,activeIndicatorType:i,onClickIndicator:a,multiple:l=!1,onChangeType:u})=>{const{t:d}=oe.useTranslation(),{name:h,type:g,disabled:y}=e,[m,v]=_.useState(!1);_.useEffect(()=>{o&&v(l?o.some(S=>S.name==String(h)):o.name==h)},[o]);const f=()=>c.jsx("div",{className:Oe.switchExternalContainer,children:c.jsx("div",{className:Oe.switchType,children:c.jsxs("div",{className:Oe.switchTypeOptions,children:[c.jsxs("div",{className:Oe.optionContainer,onClick:()=>u("cat"),children:[c.jsx("span",{className:`${Oe.customRadious}`,style:{backgroundColor:i==="cat"?n:"transparent",borderColor:i==="cat"?n:r}}),c.jsx("h4",{className:Oe.optionText,style:{color:i==="cat"?n:r},children:d("indicators.cat")})]}),c.jsxs("div",{className:Oe.optionContainer,onClick:()=>u("abs"),children:[c.jsx("span",{className:`${Oe.customRadious}`,style:{backgroundColor:i==="abs"?n:"transparent",borderColor:i==="abs"?n:r}}),c.jsx("h4",{className:Oe.optionText,style:{color:i==="abs"?n:r},children:d("indicators.abs")})]})]})})}),x=()=>c.jsx("div",{className:Oe.switchExternalContainer,children:c.jsx("div",{className:Oe.switchType,children:c.jsx("div",{className:Oe.switchTypeOptions,children:t.map((S,T)=>c.jsxs("div",{className:Oe.optionContainer,children:[c.jsx("span",{className:Oe.customRadious}),c.jsx("h4",{children:d(S.unit)})]},T))})})});return c.jsxs("div",{className:Oe.indicatorContainer,children:[c.jsxs("div",{className:Oe.indicatorNameContainer,onClick:()=>!y&&a({indicator:e}),children:[c.jsx("div",{style:{border:m?`1px solid ${n}`:`1px solid ${r}`,opacity:y?.5:1,backgroundColor:m?n:"transparent"},className:Oe.dot,children:l&&c.jsx("img",{src:m?Nl:El,alt:""})}),c.jsx("h4",{className:Oe.indicatorName,style:{color:m?n:r,opacity:y?.5:1},children:c.jsx(oe.Trans,{i18nKey:h,components:{sup:c.jsx("sup",{})},shouldUnescape:!0})})]}),(o==null?void 0:o.name)===h&&g==="both"&&c.jsx("div",{children:f()}),(o==null?void 0:o.name)===h&&g==="twoUnits"&&c.jsx("div",{children:x()})]})};Vr.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 Fl="_indicatorsSubCategory_1nuug_2",zl="_list_1nuug_11",vo={indicatorsSubCategory:Fl,list:zl},Is=({subcName:e,indicators:t,defaultColor:n,activeColor:r,activeSubCategory:o,onClickSubCategory:i,id:a,activeIndicator:l,onClickIndicator:u,multiple:d,activeIndicatorType:h,onChangeType:g})=>{const{t:y}=oe.useTranslation(),[m,v]=_.useState(!1);return _.useEffect(()=>{v(o==a)},[o,a]),c.jsxs(Dr.motion.div,{className:vo.indicatorsSubCategory,initial:{height:"43px"},animate:{height:m?"auto":"43px"},transition:{duration:.4},children:[c.jsx("button",{onClick:()=>i(a),children:c.jsxs("h3",{style:{color:m?r:n},children:[c.jsx("span",{style:{color:m?r:n},children:m?"-":"+"}),c.jsx("span",{style:{color:m?r:n},children:y(e)})]})}),t&&c.jsx("div",{className:vo.list,children:t==null?void 0:t.map((f,x)=>c.jsx(Vr,{indicator:f,defaultColor:n,activeColor:r,activeIndicator:l,onClickIndicator:u,multiple:d,activeIndicatorType:h,onChangeType:g},"indicator"+x))})]})};Is.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 Ps=({cat:e,id:t,activeColor:n,defaultColor:r,onClickCategory:o,activeCategory:i,activeSubCategory:a,onClickSubCategory:l,activeIndicator:u,onClickIndicator:d,multiple:h,activeIndicatorType:g,onChangeType:y})=>{var x;const{t:m}=oe.useTranslation(),[v,f]=_.useState(!1);return _.useEffect(()=>{f(i===t)},[i,t]),c.jsxs(Dr.motion.div,{className:Cn.indicatorsCategory,initial:{height:"53px"},animate:{height:v?"auto":"53px"},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:v?`1px solid ${n}`:"0px",marginBottom:v?"20px":"0px"},children:[c.jsxs("h2",{className:`${Cn.title}`,onClick:()=>o(t),children:[c.jsx("span",{className:Cn.plus,style:{color:v?n:r},children:v?"-":"+"}),c.jsx("span",{style:{color:v?n:r},children:m(e.name)})]}),e.subcategories?e.subcategories.map(({name:S,subcategory:T,indicators:j},b)=>c.jsx(Is,{id:T,activeSubCategory:a,subcName:S,onClickSubCategory:l,activeIndicator:u,onClickIndicator:d,multiple:h,activeColor:n,defaultColor:r,indicators:j,activeIndicatorType:g,onChangeType:y},`subcKey ${b}`)):c.jsx("div",{className:Cn.list,children:(x=e.indicators)==null?void 0:x.map((S,T)=>c.jsx(Vr,{indicator:S,values:S.type=="twoUnits"&&S.values,activeColor:n,defaultColor:r,activeIndicator:u,onClickIndicator:d,multiple:h,activeIndicatorType:g,onChangeType:y},`indicator${T}`))})]})};Ps.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 ql="_indicatorsList_13b3m_2",Wl="_title_13b3m_6",Co={indicatorsList:ql,title:Wl},Bs=({indicators:e,activeColor:t,defaultColor:n="#92898A",onChange:r,multiple:o=!1,defaultValue:i=null,changeIndType:a,activeIndicatorType:l})=>{const{t:u}=oe.useTranslation(),[d,h]=_.useState(),[g,y]=_.useState(),[m,v]=_.useState(),f=b=>{h(d==b?null:b)},x=b=>{y(g==b?null:b)},S=({indicator:b})=>{T(b)},T=b=>{if(!o)v((m==null?void 0:m.name)==b.name?null:b);else{let C=m&&m.length>0?[...m]:[];v(C!=null&&C.some(w=>w.name==b.name)?C.filter(w=>w.name!=String(b.name)):[...C,b]),b.type=="both"&&a("cat")}};_.useEffect(()=>{r&&typeof r=="function"&&m&&r({activeIndicator:m})},[m]),_.useLayoutEffect(()=>{if(i&&!m)if(o&&i&&Array.isArray(i)){let b=m&&m.length>0?[...m]:[];v([...b,...i]),j(i[0].name)}else T(i),j(i.name)},[]),_.useEffect(()=>{if(i!=m)if(o&&i&&Array.isArray(i)){let b=m&&m.length>0?[...m]:[];v([...b,...i]),j(i[0].name)}else T(i),j(i.name)},[i]);const j=b=>{const C=e.find(w=>{if(w.subcategories){let L=w.subcategories.find(R=>R.indicators.find(N=>N.name==b));if(L)return y(L.subcategory),L}else return w.indicators.some(L=>L.name==b)});C&&h(C.category)};return c.jsxs("div",{className:Co.indicatorsList,children:[c.jsx("h2",{className:Co.title,style:{color:n},children:u("indicators.indicators")}),e.map((b,C)=>c.jsx(Ps,{id:b.category,cat:b,onClickCategory:f,activeCategory:d,onClickSubCategory:x,activeSubCategory:g,onClickIndicator:S,activeIndicator:m,activeColor:t,defaultColor:n,multiple:o,onChange:r,onChangeType:a,activeIndicatorType:l},`categoryKey${C}`))]})};Bs.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};const Ul="_langSelector_o9enq_2",Zl="_currentLang_o9enq_14",Hl="_arrow_o9enq_26",Kl="_prevImg_o9enq_29",Gl="_langMenu_o9enq_33",Et={langSelector:Ul,currentLang:Zl,arrow:Hl,prevImg:Kl,langMenu:Gl},Vs=({langs:e,arrow:t,imgPrev:n})=>{const[r,o]=_.useState(!1),{i18n:i}=oe.useTranslation(),a=e.find(u=>u.code==i.language),l=u=>{i.changeLanguage(u),o(!1)};return c.jsxs("div",{className:Et.langSelector,children:[c.jsxs("div",{className:Et.currentLang,onClick:()=>{o(!r)},children:[n&&c.jsx("img",{className:Et.prevImg,src:n}),(a==null?void 0:a.titleSelected)||(a==null?void 0:a.title),c.jsx("img",{src:t,className:Et.arrow})]}),r&&c.jsx("div",{className:Et.langMenu,children:e.map(u=>c.jsx("button",{className:(a==null?void 0:a.code)==u.code?Et.active:"",onClick:()=>l(u.code),children:u.title},u.code))})]})};Vs.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 Yl="_legendContainer_1l2pz_3",Xl="_closeButton_1l2pz_43",Ql="_titleContainer_1l2pz_71",Jl="_infoContainer_1l2pz_77",ec="_titleLegendList_1l2pz_88",tc="_legendListContainer_1l2pz_93",nc="_gridContainer_1l2pz_93",rc="_elementLegendContainer_1l2pz_99",oc="_colorDot_1l2pz_105",sc="_absoluteValueContainer_1l2pz_111",ic="_absoluteValueColor_1l2pz_114",ac="_absoluteValueText_1l2pz_119",lc="_noDataContainer_1l2pz_131",cc="_noData_1l2pz_131",uc="_moreInfoContainer_1l2pz_152",$e={legendContainer:Yl,closeButton:Xl,titleContainer:Ql,infoContainer:Jl,titleLegendList:ec,legendListContainer:tc,gridContainer:nc,elementLegendContainer:rc,colorDot:oc,absoluteValueContainer:sc,absoluteValueColor:ic,absoluteValueText:ac,noDataContainer:lc,noData:cc,moreInfoContainer:uc},Fs=({containerStyles:e,title:t,infoList:n,legendItems:r,onClickMoreInfo:o,buttonTitle:i,onClickClose:a})=>{const{t:l}=oe.useTranslation();return c.jsxs("div",{style:e?{...e}:{},className:`${$e.legendContainer}`,children:[c.jsx("button",{className:$e.closeButton,onClick:a}),t&&c.jsx("div",{className:$e.titleContainer,style:{marginBottom:(!n||n.length==0)&&"15px"},children:c.jsx("h2",{children:t})}),n&&n.length>0&&c.jsx("div",{className:$e.infoContainer,children:c.jsx("ul",{children:n.map(({title:u,value:d})=>c.jsxs("li",{children:[c.jsx("h3",{className:$e.title,children:`${u}:`}),c.jsxs("span",{className:$e.value,children:["  ",d]})]},t))})}),r&&r.length>0&&r.map((u,d)=>c.jsxs("div",{children:[c.jsx("h3",{className:$e.titleLegendList,style:{marginTop:n&&n.length>0&&d===0?"30px":d>0?"20px":"0px"},children:u.title&&c.jsx(oe.Trans,{i18nKey:u.title,components:{sup:c.jsx("sup",{})},shouldUnescape:!0})}),c.jsxs("div",{className:$e.legendListContainer,children:[u.absolute?c.jsxs("div",{className:$e.absoluteValueContainer,children:[c.jsx("div",{className:$e.absoluteValueColor,style:{background:`linear-gradient(to bottom, ${u.absolute.maxColor} 0%, ${u.absolute.midColor?`${u.absolute.midColor} 50%,`:""} ${u.absolute.minColor} 100%)`}}),c.jsxs("div",{className:$e.absoluteValueText,children:[c.jsxs("span",{children:[u.absolute.maxValue," ",l(u.absolute.unit)," ",u.absolute.offlimits&&l(u.moreText)]}),u.absolute.midValue&&c.jsxs("span",{children:[u.absolute.midValue," ",l(u.absolute.unit)]}),c.jsxs("span",{children:[u.absolute.minValue," ",l(u.absolute.unit)," ",u.absolute.offlimits&&l(u.lessText)]})]})]}):u.categories&&u.categories.length>0&&c.jsx("div",{className:$e.gridContainer,children:u.categories.map(({title:h,color:g},y)=>c.jsxs("div",{className:$e.elementLegendContainer,children:[c.jsx("div",{className:$e.colorDot,style:{backgroundColor:g}}),c.jsxs("div",{className:$e.titleLegendElement,children:[l(h)," "]})]},y))}),u.absolute&&u.absolute.noDataColor&&c.jsxs("div",{className:$e.noDataContainer,children:[c.jsx("div",{className:$e.noData,style:{background:u.absolute.noDataColor}}),c.jsx("div",{className:$e.absoluteValueText,children:c.jsx("span",{children:l(u.absolute.noDataText)})})]})]})]},d)),o&&c.jsx("button",{className:$e.moreInfoContainer,onClick:o,children:i||l("moreInformation")})]})};Fs.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 dc="_logo_1ewa6_2",xo={logo:dc},zs=({src:e,alt:t,href:n})=>{const{t:r}=oe.useTranslation(),o=c.jsx("img",{src:e,alt:r(t)});return n?c.jsx("div",{className:xo.logo,children:c.jsx("a",{href:n,children:o})}):c.jsx("div",{className:xo.logo,children:o})};zs.propTypes={src:s.string.isRequired,alt:s.string.isRequired,href:s.string,className:s.string};const fc=Q.createContext(null);function pc(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 Ve(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(!Ve(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)||!Ve(e[o],t[o]))return!1;return!0}return!1}function mc(e){const t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}function _o(e,t){if(!e.getProjection)return;const n=e.getProjection(),r=t.getProjection();Ve(n,r)||t.setProjection(n)}function wo(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function So(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 hc=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function To(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 hc)a in i&&(o[a]=i[a])}return o||r});return{...e,layers:n}}const ko={version:8,sources:{},layers:[]},jo={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"},pr={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"},$o={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"},gc=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],yc=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class Ft{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[$o[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[jo[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[pr[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=Ft.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:l}=t;return l&&(l.bounds?o.fitBounds(l.bounds,{...l.fitBoundsOptions,duration:0}):r._updateViewState(l,!1)),o.isStyleLoaded()?o.fire("load"):o.once("styledata",()=>o.fire("load")),o._update(),r}_initialize(t){const{props:n}=this,{mapStyle:r=ko}=n,o={...n,...n.initialViewState,accessToken:n.mapboxAccessToken||bc()||null,container:t,style:To(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 h=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=h,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 l=a._render;a._render=h=>{this._inRender=!0,l.call(a,h),this._inRender=!1};const u=a._renderTaskQueue.run;a._renderTaskQueue.run=h=>{u.call(a._renderTaskQueue,h),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,{}),_o(a.transform,this._renderTransform)}),a.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const h in jo)a.on(h,this._onPointerEvent);for(const h in pr)a.on(h,this._onCameraEvent);for(const h in $o)a.on(h,this._onEvent);this._map=a}recycle(){const n=this.map.getContainer().querySelector("[mapboxgl-children]");n==null||n.remove(),Ft.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=mc(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:l}=o,u=r.isMoving();u&&(o.cameraElevationReference="sea");const d=So(o,{...wo(r.transform),...t});if(u&&(o.cameraElevationReference="ground"),d&&n){const h=this._deferredEvents;h.move=!0,h.zoom||(h.zoom=i!==o.zoom),h.rotate||(h.rotate=l!==o.bearing),h.pitch||(h.pitch=a!==o.pitch)}return u||So(r.transform,t),d}_updateSettings(t,n){const r=this._map;let o=!1;for(const i of gc)if(i in t&&!Ve(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=ko,styleDiffing:o=!0}=t,i={diff:o};return"localIdeographFontFamily"in t&&(i.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(To(r),i),!0}return!1}_updateStyleComponents(t,n){const r=this._map;let o=!1;return r.isStyleLoaded()&&("light"in t&&r.setLight&&!Ve(t.light,n.light)&&(o=!0,r.setLight(t.light)),"fog"in t&&r.setFog&&!Ve(t.fog,n.fog)&&(o=!0,r.setFog(t.fog)),"terrain"in t&&r.setTerrain&&!Ve(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 l of yc){const u=(r=t[l])!==null&&r!==void 0?r:!0,d=(o=n[l])!==null&&o!==void 0?o:!0;Ve(u,d)||(a=!0,u?i[l].enable(u):i[l].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,l=this._queryRenderedFeatures(t.point),u=l.length>0;!u&&a&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=l,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 pr&&(typeof n=="object"&&(n.viewState=wo(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=()=>{_o(this._renderTransform,n),t.transform=n}}}Ft.savedMaps=[];function bc(){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 vc=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function Cc(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 xc(t))!(r in n)&&!vc.includes(r)&&(n[r]=t[r].bind(t));return n}function xc(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 _c=typeof document<"u"?_.useLayoutEffect:_.useEffect,wc=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function Sc(e,t){for(const r of wc)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 qt=Q.createContext(null);function Tc(e,t,n){const r=_.useContext(fc),[o,i]=_.useState(null),a=_.useRef(),{current:l}=_.useRef({mapLib:null,map:null});_.useEffect(()=>{const h=e.mapLib;let g=!0,y;return Promise.resolve(h||n).then(m=>{if(!g)return;if(!m)throw new Error("Invalid mapLib");const v="Map"in m?m:m.default;if(!v.Map)throw new Error("Invalid mapLib");if(Sc(v,e),!v.supported||v.supported(e))e.reuseMaps&&(y=Ft.reuse(e,a.current)),y||(y=new Ft(v.Map,e,a.current)),l.map=Cc(y),l.mapLib=v,i(y),r==null||r.onMapMount(l.map,e.id);else throw new Error("Map is not supported by this browser")}).catch(m=>{const{onError:v}=e;v?v({type:"error",target:null,originalEvent:null,error:m}):console.error(m)}),()=>{g=!1,y&&(r==null||r.onMapUnmount(e.id),e.reuseMaps?y.recycle():y.destroy())}},[]),_c(()=>{o&&o.setProps(e)}),_.useImperativeHandle(t,()=>l.map,[o]);const u=_.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(qt.Provider,{value:l},Q.createElement("div",{"mapboxgl-children":"",style:d},e.children)))}const kc=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function kt(e,t){if(!e||!t)return;const n=e.style;for(const r in t){const o=t[r];Number.isFinite(o)&&!kc.test(r)?n[r]=`${o}px`:n[r]=o}}function jc(e,t){const{map:n,mapLib:r}=_.useContext(qt),o=_.useRef({props:e});o.current.props=e;const i=_.useMemo(()=>{let f=!1;Q.Children.forEach(e.children,T=>{T&&(f=!0)});const x={...e,element:f?document.createElement("div"):null},S=new r.Marker(x);return S.setLngLat([e.longitude,e.latitude]),S.getElement().addEventListener("click",T=>{var j,b;(b=(j=o.current.props).onClick)===null||b===void 0||b.call(j,{type:"click",target:S,originalEvent:T})}),S.on("dragstart",T=>{var j,b;const C=T;C.lngLat=i.getLngLat(),(b=(j=o.current.props).onDragStart)===null||b===void 0||b.call(j,C)}),S.on("drag",T=>{var j,b;const C=T;C.lngLat=i.getLngLat(),(b=(j=o.current.props).onDrag)===null||b===void 0||b.call(j,C)}),S.on("dragend",T=>{var j,b;const C=T;C.lngLat=i.getLngLat(),(b=(j=o.current.props).onDragEnd)===null||b===void 0||b.call(j,C)}),S},[]);_.useEffect(()=>(i.addTo(n.getMap()),()=>{i.remove()}),[]);const{longitude:a,latitude:l,offset:u,style:d,draggable:h=!1,popup:g=null,rotation:y=0,rotationAlignment:m="auto",pitchAlignment:v="auto"}=e;return _.useEffect(()=>{kt(i.getElement(),d)},[d]),_.useImperativeHandle(t,()=>i,[]),(i.getLngLat().lng!==a||i.getLngLat().lat!==l)&&i.setLngLat([a,l]),u&&!pc(i.getOffset(),u)&&i.setOffset(u),i.isDraggable()!==h&&i.setDraggable(h),i.getRotation()!==y&&i.setRotation(y),i.getRotationAlignment()!==m&&i.setRotationAlignment(m),i.getPitchAlignment()!==v&&i.setPitchAlignment(v),i.getPopup()!==g&&i.setPopup(g),xs.createPortal(e.children,i.getElement())}_.memo(_.forwardRef(jc));function Eo(e){return new Set(e?e.trim().split(/\s+/):[])}function $c(e,t){const{map:n,mapLib:r}=_.useContext(qt),o=_.useMemo(()=>document.createElement("div"),[]),i=_.useRef({props:e});i.current.props=e;const a=_.useMemo(()=>{const l={...e},u=new r.Popup(l);return u.setLngLat([e.longitude,e.latitude]),u.once("open",d=>{var h,g;(g=(h=i.current.props).onOpen)===null||g===void 0||g.call(h,d)}),u},[]);if(_.useEffect(()=>{const l=u=>{var d,h;(h=(d=i.current.props).onClose)===null||h===void 0||h.call(d,u)};return a.on("close",l),a.setDOMContent(o).addTo(n.getMap()),()=>{a.off("close",l),a.isOpen()&&a.remove()}},[]),_.useEffect(()=>{kt(a.getElement(),e.style)},[e.style]),_.useImperativeHandle(t,()=>a,[]),a.isOpen()&&((a.getLngLat().lng!==e.longitude||a.getLngLat().lat!==e.latitude)&&a.setLngLat([e.longitude,e.latitude]),e.offset&&!Ve(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 l=Eo(a.options.className),u=Eo(e.className);for(const d of l)u.has(d)||a.removeClassName(d);for(const d of u)l.has(d)||a.addClassName(d);a.options.className=e.className}return xs.createPortal(e.children,o)}const Ec=_.memo(_.forwardRef($c));function ln(e,t,n,r){const o=_.useContext(qt),i=_.useMemo(()=>e(o),[]);return _.useEffect(()=>{const a=t,l=null,u=typeof t=="function"?t:null,{map:d}=o;return d.hasControl(i)||(d.addControl(i,a==null?void 0:a.position),l&&l(o)),()=>{u&&u(o),d.hasControl(i)&&d.removeControl(i)}},[]),i}function Nc(e){const t=ln(({mapLib:n})=>new n.AttributionControl(e),{position:e.position});return _.useEffect(()=>{kt(t._container,e.style)},[e.style]),null}_.memo(Nc);function Oc(e){const t=ln(({mapLib:n})=>new n.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return _.useEffect(()=>{kt(t._controlContainer,e.style)},[e.style]),null}_.memo(Oc);function Ac(e,t){const n=_.useRef({props:e}),r=ln(({mapLib:o})=>{const i=new o.GeolocateControl(e),a=i._setupUI;return i._setupUI=l=>{i._container.hasChildNodes()||a(l)},i.on("geolocate",l=>{var u,d;(d=(u=n.current.props).onGeolocate)===null||d===void 0||d.call(u,l)}),i.on("error",l=>{var u,d;(d=(u=n.current.props).onError)===null||d===void 0||d.call(u,l)}),i.on("outofmaxbounds",l=>{var u,d;(d=(u=n.current.props).onOutOfMaxBounds)===null||d===void 0||d.call(u,l)}),i.on("trackuserlocationstart",l=>{var u,d;(d=(u=n.current.props).onTrackUserLocationStart)===null||d===void 0||d.call(u,l)}),i.on("trackuserlocationend",l=>{var u,d;(d=(u=n.current.props).onTrackUserLocationEnd)===null||d===void 0||d.call(u,l)}),i},{position:e.position});return n.current.props=e,_.useImperativeHandle(t,()=>r,[]),_.useEffect(()=>{kt(r._container,e.style)},[e.style]),null}_.memo(_.forwardRef(Ac));function Lc(e){const t=ln(({mapLib:n})=>new n.NavigationControl(e),{position:e.position});return _.useEffect(()=>{kt(t._container,e.style)},[e.style]),null}const Mc=_.memo(Lc);function Rc(e){const t=ln(({mapLib:i})=>new i.ScaleControl(e),{position:e.position}),n=_.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),_.useEffect(()=>{kt(t._container,o)},[o]),null}_.memo(Rc);function Rn(e,t){if(!e)throw new Error(t)}function Dc(e,t,n,r){if(Rn(n.id===r.id,"layer id changed"),Rn(n.type===r.type,"layer type changed"),n.type==="custom"||r.type==="custom")return;const{layout:o={},paint:i={},filter:a,minzoom:l,maxzoom:u,beforeId:d}=n;if(d!==r.beforeId&&e.moveLayer(t,d),o!==r.layout){const h=r.layout||{};for(const g in o)Ve(o[g],h[g])||e.setLayoutProperty(t,g,o[g]);for(const g in h)o.hasOwnProperty(g)||e.setLayoutProperty(t,g,void 0)}if(i!==r.paint){const h=r.paint||{};for(const g in i)Ve(i[g],h[g])||e.setPaintProperty(t,g,i[g]);for(const g in h)i.hasOwnProperty(g)||e.setPaintProperty(t,g,void 0)}Ve(a,r.filter)||e.setFilter(t,a),(l!==r.minzoom||u!==r.maxzoom)&&e.setLayerZoomRange(t,l,u)}function Ic(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 Pc=0;function Bc(e){const t=_.useContext(qt).map.getMap(),n=_.useRef(e),[,r]=_.useState(0),o=_.useMemo(()=>e.id||`jsx-layer-${Pc++}`,[]);if(_.useEffect(()=>{if(t){const a=()=>r(l=>l+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{Dc(t,o,e,n.current)}catch(a){console.warn(a)}else Ic(t,o,e);return n.current=e,null}let Vc=0;function Fc(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 zc(e,t,n){Rn(t.id===n.id,"source id changed"),Rn(t.type===n.type,"source type changed");let r="",o=0;for(const a in t)a!=="children"&&a!=="id"&&!Ve(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 qc(e){const t=_.useContext(qt).map.getMap(),n=_.useRef(e),[,r]=_.useState(0),o=_.useMemo(()=>e.id||`jsx-source-${Vc++}`,[]);_.useEffect(()=>{if(t){const a=()=>setTimeout(()=>r(l=>l+1),0);return t.on("styledata",a),a(),()=>{var l;if(t.off("styledata",a),t.style&&t.style._loaded&&t.getSource(o)){const u=(l=t.getStyle())===null||l===void 0?void 0:l.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?zc(i,e,n.current):i=Fc(t,o,e),n.current=e,i&&Q.Children.map(e.children,a=>a&&_.cloneElement(a,{source:o}))||null}const Wc=import("mapbox-gl"),qs=Q.forwardRef(function(t,n){return Tc(t,n,Wc)}),Ws=Ec,Us=Mc,Zs=Bc,Hs=qc,Uc="_mapContainer_84pkf_2",Zc={mapContainer:Uc};ea.accessToken="pk.eyJ1IjoiY2ljbGljYSIsImEiOiJja3llODhxZ2UwYzF1Mm5xcHVhMzI3anhqIn0.-r56FLAzEH57eVsB2ZeVcA";const Ks=({initialView:e={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:t=17,minZoom:n=8,mapStyle:r,firstSymbolLayer:o,cssProps:i={},onClick:a="",interactiveLayers:l=[],popUp:u=!1,sources:d=[],layers:h=[]})=>{const g=_.useRef(),[y,m]=_.useState(null),v=ta.useSelector(f=>f.mapState.showTexts);return _.useEffect(()=>{if(g.current){const f=g.current.getMap();f.getStyle().layers.map(S=>{S.type=="symbol"&&S.id!="professionals"&&(v?f.setLayoutProperty(S.id,"visibility","visible"):f.setLayoutProperty(S.id,"visibility","none"))})}},[v]),c.jsx("div",{className:`${Zc.mapContainer}`,style:i,children:c.jsxs(qs,{initialViewState:e,ref:g,hash:!1,maxZoom:t,minZoom:n,mapStyle:r,onClick:a,interactiveLayerIds:l,children:[d.length&&d.map((f,x)=>c.jsx(Hs,{...f,children:h.length&&h.map((S,T)=>{if(S.sourceId==f.id)return c.jsx(Zs,{...S.layer,beforeId:o},T)})},x)),c.jsx(Us,{position:"bottom-right",visualizePitch:!0}),u&&y&&c.jsx(Ws,{longitude:u.longitude,latitude:u.latitude,anchor:u.anchor,onClose:()=>m(null),children:u.content})]})})};Ks.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 Hc="_mapContainer_b0pyr_3",Kc={mapContainer:Hc},Gc="_FeaturePopUp_4sba4_2",Yc="_title_4sba4_10",No={FeaturePopUp:Gc,title:Yc},Xc=({props:e})=>{const{t}=oe.useTranslation();return c.jsx("div",{className:No.FeaturePopUp,children:e.map(n=>c.jsxs("p",{children:[c.jsxs("span",{className:No.title,children:[c.jsx(oe.Trans,{i18nKey:n.name,components:{sup:c.jsx("sup",{})},shouldUnescape:!0}),":"]}),isNaN(n.value)?c.jsx(c.Fragment,{children:t(n.value)}):c.jsxs(c.Fragment,{children:[n.value.toLocaleString("de",{maximumFractionDigits:2})," ",t(n.unit)]})]}))})},Gs=({initialView:e={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:t=17,minZoom:n=8,mapStyle:r,firstSymbolLayer:o,cssProps:i={},onClick:a="",interactiveLayers:l=[],sources:u=[],layers:d=[],popUpParams:h,onClosePopUp:g,showTexts:y,hash:m=!1})=>{const v=_.useRef();return _.useEffect(()=>{if(v.current){const f=v.current.getMap();f.getStyle().layers.map(S=>{S.type=="symbol"&&S.id!="professionals"&&(y?f.setLayoutProperty(S.id,"visibility","visible"):f.setLayoutProperty(S.id,"visibility","none"))})}},[y]),_.useEffect(()=>{let f=new na.Protocol;return rr.addProtocol("pmtiles",f.tile),()=>{rr.removeProtocol("pmtiles")}},[]),c.jsx("div",{className:`${Kc.mapContainer}`,style:i,children:c.jsxs(qs,{mapLib:rr,initialViewState:e,ref:v,hash:m,maxZoom:t,minZoom:n,mapStyle:r,onClick:a,interactiveLayerIds:l,children:[u.length&&u.map((f,x)=>c.jsx(Hs,{...f,children:d.length&&d.map((S,T)=>{if(S.sourceId==f.id)return c.jsx(Zs,{...S.layer,beforeId:o,filter:S.filters?S.filters:["all"],layout:{visibility:S.layer.visibility||"visible"}},T)})},x)),c.jsx(Us,{position:"bottom-right",visualizePitch:!0}),h&&c.jsx(Ws,{longitude:h.lng,latitude:h.lat,onClose:g,children:c.jsx(Xc,{props:h.props})})]})})};Gs.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 Qc="_sectionBar_yf2vy_2",Jc="_leftContent_yf2vy_14",e0="_textContainer_yf2vy_20",t0="_title_yf2vy_27",n0="_subtitle_yf2vy_33",r0="_rightContent_yf2vy_38",bt={sectionBar:Qc,leftContent:Jc,textContainer:e0,title:t0,subtitle:n0,rightContent:r0},Ys=({leftIcon:e,title:t,subtitle:n,rightContent:r,mainColor:o,width:i,titleColor:a="#605b56",subTitleColor:l="#605b56",borderTop:u=!1})=>{const{t:d}=oe.useTranslation();return c.jsxs("div",{className:bt.sectionBar,style:{width:i&&i,borderTop:u?"1px solid #000":"0px"},children:[c.jsxs("div",{className:bt.leftContent,children:[e&&c.jsx("img",{src:e,alt:"Icono",className:bt.icon}),c.jsxs("div",{className:bt.textContainer,children:[c.jsx("div",{className:bt.title,style:{color:a},children:d(t)}),n&&c.jsx("div",{className:bt.subtitle,style:{color:l},children:n})]})]}),c.jsx("div",{className:bt.rightContent,children:r})]})};Ys.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 o0=ra.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:tp,setYear:np,setActiveIndicatorKey:rp,setActiveIndicatorType:op,setActiveIndicatorUnit:sp}=o0.actions,s0="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",i0="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 Xs(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=Xs(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ft(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Xs(e))&&(r&&(r+=" "),r+=t);return r}function Oo(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function a0(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",l=!0;for(let u=0;u<i.length;u+=1){const d=i[u];d&&(a+=(l===!0?"":" ")+t(d),l=!1,n&&n[d]&&(a+=" "+n[d]))}r[o]=a}return r}const l0=Q.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const c0=()=>Q.useContext(l0)??!1;function Qs(...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,l=a(r);return typeof l=="function"?l:()=>{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 rn(e){return typeof e=="string"}function u0(e,t,n){return e===void 0||rn(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function On(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 Ao(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 d0(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const m=ft(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),v={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},f={...n,...o,...r};return m.length>0&&(f.className=m),Object.keys(v).length>0&&(f.style=v),{props:f,internalRef:void 0}}const a=On({...o,...r}),l=Ao(r),u=Ao(o),d=t(a),h=ft(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,...l};return h.length>0&&(y.className=h),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:d.ref}}function f0(e,t,n){return typeof e=="function"?e(t,n):e}function ct(e){var g;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:f0(n,r),{props:l,internalRef:u}=d0({...i,externalSlotProps:a}),d=Qs(u,a==null?void 0:a.ref,(g=e.additionalProps)==null?void 0:g.ref);return u0(t,{...l,ref:d},r)}function An(e){return e&&e.ownerDocument||document}function p0(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:i}=Q.useRef(t!==void 0),[a,l]=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
+ `))},[o,r,t]);const{current:h}=Q.useRef(n);Q.useEffect(()=>{!i&&JSON.stringify(n)!==JSON.stringify(h)&&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(h=>{i||l(h)},[]);return[u,d]}const Js=typeof window<"u"?Q.useLayoutEffect:Q.useEffect;function mr(e){const t=Q.useRef(e);return Js(()=>{t.current=e}),Q.useRef((...n)=>(0,t.current)(...n)).current}function Lo(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 m0={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Bt(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function h0(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const g0=2;function Nt(e,t,n,r,o){return n===1?Math.min(e+t,o):Math.max(e-t,r)}function ei(e,t){return e-t}function Mo(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 xn(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 Dn(e,t,n){return(e-t)*100/(n-t)}function y0(e,t,n){return(n-t)*e+t}function b0(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 v0(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(b0(t)))}function Ro({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(ei)}function _n({sliderRef:e,activeIndex:t,setActive:n}){var o,i,a;const r=An(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 wn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?h0(e,t):!1}const C0={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}%`})}},x0=e=>e;let Sn;function Do(){return Sn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Sn=CSS.supports("touch-action","none"):Sn=!0),Sn}function _0(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:a=!1,max:l=100,min:u=0,name:d,onChange:h,onChangeCommitted:g,orientation:y="horizontal",rootRef:m,scale:v=x0,step:f=1,shiftStep:x=10,tabIndex:S,value:T}=e,j=Q.useRef(void 0),[b,C]=Q.useState(-1),[w,L]=Q.useState(-1),[R,N]=Q.useState(!1),q=Q.useRef(0),F=Q.useRef(null),[p,E]=p0({controlled:T,default:n??u,name:"Slider"}),k=h&&((A,P,H)=>{const ie=A.nativeEvent||A,ge=new ie.constructor(ie.type,ie);Object.defineProperty(ge,"target",{writable:!0,value:{value:P,name:d}}),F.current=P,h(ge,P,H)}),B=Array.isArray(p);let V=B?p.slice().sort(ei):[p];V=V.map(A=>A==null?u:Bt(A,u,l));const Y=a===!0&&f!==null?[...Array(Math.floor((l-u)/f)+1)].map((A,P)=>({value:u+f*P})):a||[],W=Y.map(A=>A.value),[ae,M]=Q.useState(-1),O=Q.useRef(null),J=Qs(m,O),K=A=>P=>{var ie;const H=Number(P.currentTarget.getAttribute("data-index"));Lo(P.target)&&M(H),L(H),(ie=A==null?void 0:A.onFocus)==null||ie.call(A,P)},I=A=>P=>{var H;Lo(P.target)||M(-1),L(-1),(H=A==null?void 0:A.onBlur)==null||H.call(A,P)},Z=(A,P)=>{const H=Number(A.currentTarget.getAttribute("data-index")),ie=V[H],ge=W.indexOf(ie);let X=P;if(Y&&f==null){const Ne=W[W.length-1];X>=Ne?X=Ne:X<=W[0]?X=W[0]:X=X<ie?W[ge-1]:W[ge+1]}if(X=Bt(X,u,l),B){o&&(X=Bt(X,V[H-1]||-1/0,V[H+1]||1/0));const Ne=X;X=Ro({values:V,newValue:X,index:H});let Me=H;o||(Me=X.indexOf(Ne)),_n({sliderRef:O,activeIndex:Me})}E(X),M(H),k&&!wn(X,p)&&k(A,X,H),g&&g(A,F.current??X)},te=A=>P=>{var H;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(P.key)){P.preventDefault();const ie=Number(P.currentTarget.getAttribute("data-index")),ge=V[ie];let X=null;if(f!=null){const Ne=P.shiftKey?x:f;switch(P.key){case"ArrowUp":X=Nt(ge,Ne,1,u,l);break;case"ArrowRight":X=Nt(ge,Ne,i?-1:1,u,l);break;case"ArrowDown":X=Nt(ge,Ne,-1,u,l);break;case"ArrowLeft":X=Nt(ge,Ne,i?1:-1,u,l);break;case"PageUp":X=Nt(ge,x,1,u,l);break;case"PageDown":X=Nt(ge,x,-1,u,l);break;case"Home":X=u;break;case"End":X=l;break}}else if(Y){const Ne=W[W.length-1],Me=W.indexOf(ge),je=[i?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],qe=[i?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];je.includes(P.key)?Me===0?X=W[0]:X=W[Me-1]:qe.includes(P.key)&&(Me===W.length-1?X=Ne:X=W[Me+1])}X!=null&&Z(P,X)}(H=A==null?void 0:A.onKeyDown)==null||H.call(A,P)};Js(()=>{var A;r&&O.current.contains(document.activeElement)&&((A=document.activeElement)==null||A.blur())},[r]),r&&b!==-1&&C(-1),r&&ae!==-1&&M(-1);const G=A=>P=>{var H;(H=A.onChange)==null||H.call(A,P),Z(P,P.target.valueAsNumber)},U=Q.useRef(void 0);let re=y;i&&y==="horizontal"&&(re+="-reverse");const ee=({finger:A,move:P=!1})=>{const{current:H}=O,{width:ie,height:ge,bottom:X,left:Ne}=H.getBoundingClientRect();let Me;re.startsWith("vertical")?Me=(X-A.y)/ge:Me=(A.x-Ne)/ie,re.includes("-reverse")&&(Me=1-Me);let je;if(je=y0(Me,u,l),f)je=v0(je,f,u);else{const Zt=Mo(W,je);je=W[Zt]}je=Bt(je,u,l);let qe=0;if(B){P?qe=U.current:qe=Mo(V,je),o&&(je=Bt(je,V[qe-1]||-1/0,V[qe+1]||1/0));const Zt=je;je=Ro({values:V,newValue:je,index:qe}),o&&P||(qe=je.indexOf(Zt),U.current=qe)}return{newValue:je,activeIndex:qe}},le=mr(A=>{const P=xn(A,j);if(!P)return;if(q.current+=1,A.type==="mousemove"&&A.buttons===0){D(A);return}const{newValue:H,activeIndex:ie}=ee({finger:P,move:!0});_n({sliderRef:O,activeIndex:ie,setActive:C}),E(H),!R&&q.current>g0&&N(!0),k&&!wn(H,p)&&k(A,H,ie)}),D=mr(A=>{const P=xn(A,j);if(N(!1),!P)return;const{newValue:H}=ee({finger:P,move:!0});C(-1),A.type==="touchend"&&L(-1),g&&g(A,F.current??H),j.current=void 0,Le()}),se=mr(A=>{if(r)return;Do()||A.preventDefault();const P=A.changedTouches[0];P!=null&&(j.current=P.identifier);const H=xn(A,j);if(H!==!1){const{newValue:ge,activeIndex:X}=ee({finger:H});_n({sliderRef:O,activeIndex:X,setActive:C}),E(ge),k&&!wn(ge,p)&&k(A,ge,X)}q.current=0;const ie=An(O.current);ie.addEventListener("touchmove",le,{passive:!0}),ie.addEventListener("touchend",D,{passive:!0})}),Le=Q.useCallback(()=>{const A=An(O.current);A.removeEventListener("mousemove",le),A.removeEventListener("mouseup",D),A.removeEventListener("touchmove",le),A.removeEventListener("touchend",D)},[D,le]);Q.useEffect(()=>{const{current:A}=O;return A.addEventListener("touchstart",se,{passive:Do()}),()=>{A.removeEventListener("touchstart",se),Le()}},[Le,se]),Q.useEffect(()=>{r&&Le()},[r,Le]);const Ye=A=>P=>{var ge;if((ge=A.onMouseDown)==null||ge.call(A,P),r||P.defaultPrevented||P.button!==0)return;P.preventDefault();const H=xn(P,j);if(H!==!1){const{newValue:X,activeIndex:Ne}=ee({finger:H});_n({sliderRef:O,activeIndex:Ne,setActive:C}),E(X),k&&!wn(X,p)&&k(P,X,Ne)}q.current=0;const ie=An(O.current);ie.addEventListener("mousemove",le,{passive:!0}),ie.addEventListener("mouseup",D)},z=Dn(B?V[0]:u,u,l),ne=Dn(V[V.length-1],u,l)-z,xe=(A={})=>{const P=On(A),H={onMouseDown:Ye(P||{})},ie={...P,...H};return{...A,ref:J,...ie}},be=A=>P=>{var ie;(ie=A.onMouseOver)==null||ie.call(A,P);const H=Number(P.currentTarget.getAttribute("data-index"));L(H)},Ee=A=>P=>{var H;(H=A.onMouseLeave)==null||H.call(A,P),L(-1)},Pe=(A={})=>{const P=On(A),H={onMouseOver:be(P||{}),onMouseLeave:Ee(P||{})};return{...A,...P,...H}},Ke=A=>({pointerEvents:b!==-1&&b!==A?"none":void 0});let ve;return y==="vertical"&&(ve=i?"vertical-rl":"vertical-lr"),{active:b,axis:re,axisProps:C0,dragging:R,focusedThumbIndex:ae,getHiddenInputProps:(A={})=>{const P=On(A),H={onChange:G(P||{}),onFocus:K(P||{}),onBlur:I(P||{}),onKeyDown:te(P||{})},ie={...P,...H};return{tabIndex:S,"aria-labelledby":t,"aria-orientation":y,"aria-valuemax":v(l),"aria-valuemin":v(u),name:d,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:r,...A,...ie,style:{...m0,direction:i?"rtl":"ltr",width:"100%",height:"100%",writingMode:ve}}},getRootProps:xe,getThumbProps:Pe,marks:Y,open:w,range:B,rootRef:J,trackLeap:ne,trackOffset:z,values:V,getThumbStyle:Ke}}function St(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.":St(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Tn={exports:{}},me={};/**
27
27
  * @license React
28
28
  * react-is.production.js
29
29
  *
@@ -31,7 +31,7 @@ Valid keys: `+JSON.stringify(Object.keys(M),null," "));var D=le(G,ee,I,Z,te+"."
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 Mo;function b0(){if(Mo)return me;Mo=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function v(f){if(typeof f=="object"&&f!==null){var x=f.$$typeof;switch(x){case e:switch(f=f.type,f){case n:case r:case o:case u:case d:case y:return f;default:switch(f=f&&f.$$typeof,f){case a:case l:case g:case h: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=l,me.Fragment=n,me.Lazy=g,me.Memo=h,me.Portal=t,me.Profiler=r,me.StrictMode=o,me.Suspense=u,me.SuspenseList=d,me.isContextConsumer=function(f){return v(f)===i},me.isContextProvider=function(f){return v(f)===a},me.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},me.isForwardRef=function(f){return v(f)===l},me.isFragment=function(f){return v(f)===n},me.isLazy=function(f){return v(f)===g},me.isMemo=function(f){return v(f)===h},me.isPortal=function(f){return v(f)===t},me.isProfiler=function(f){return v(f)===r},me.isStrictMode=function(f){return v(f)===o},me.isSuspense=function(f){return v(f)===u},me.isSuspenseList=function(f){return v(f)===d},me.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===r||f===o||f===u||f===d||typeof f=="object"&&f!==null&&(f.$$typeof===g||f.$$typeof===h||f.$$typeof===a||f.$$typeof===i||f.$$typeof===l||f.$$typeof===m||f.getModuleId!==void 0)},me.typeOf=v,me}var he={};/**
34
+ */var Io;function w0(){if(Io)return me;Io=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"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function v(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 l:case g:case h: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=l,me.Fragment=n,me.Lazy=g,me.Memo=h,me.Portal=t,me.Profiler=o,me.StrictMode=r,me.Suspense=u,me.SuspenseList=d,me.isContextConsumer=function(f){return v(f)===i},me.isContextProvider=function(f){return v(f)===a},me.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},me.isForwardRef=function(f){return v(f)===l},me.isFragment=function(f){return v(f)===n},me.isLazy=function(f){return v(f)===g},me.isMemo=function(f){return v(f)===h},me.isPortal=function(f){return v(f)===t},me.isProfiler=function(f){return v(f)===o},me.isStrictMode=function(f){return v(f)===r},me.isSuspense=function(f){return v(f)===u},me.isSuspenseList=function(f){return v(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===h||f.$$typeof===a||f.$$typeof===i||f.$$typeof===l||f.$$typeof===m||f.getModuleId!==void 0)},me.typeOf=v,me}var he={};/**
35
35
  * @license React
36
36
  * react-is.development.js
37
37
  *
@@ -39,22 +39,22 @@ Valid keys: `+JSON.stringify(Object.keys(M),null," "));var D=le(G,ee,I,Z,te+"."
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 Ro;function v0(){return Ro||(Ro=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 o:case i:case r:case d:case h:case m:return f;default:switch(f=f&&f.$$typeof,f){case l: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"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),v=Symbol.for("react.client.reference");he.ContextConsumer=a,he.ContextProvider=l,he.Element=t,he.ForwardRef=u,he.Fragment=o,he.Lazy=y,he.Memo=g,he.Portal=n,he.Profiler=i,he.StrictMode=r,he.Suspense=d,he.SuspenseList=h,he.isContextConsumer=function(f){return e(f)===a},he.isContextProvider=function(f){return e(f)===l},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)===o},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)===r},he.isSuspense=function(f){return e(f)===d},he.isSuspenseList=function(f){return e(f)===h},he.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===o||f===i||f===r||f===d||f===h||typeof f=="object"&&f!==null&&(f.$$typeof===y||f.$$typeof===g||f.$$typeof===l||f.$$typeof===a||f.$$typeof===u||f.$$typeof===v||f.getModuleId!==void 0)},he.typeOf=e}()),he}var Do;function C0(){return Do||(Do=1,process.env.NODE_ENV==="production"?Sn.exports=b0():Sn.exports=v0()),Sn.exports}var Dn=C0();function ot(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 Ys(e){if(Q.isValidElement(e)||Dn.isValidElementType(e)||!ot(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Ys(e[n])}),t}function ze(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return ot(e)&&ot(t)&&Object.keys(t).forEach(r=>{Q.isValidElement(t[r])||Dn.isValidElementType(t[r])?o[r]=t[r]:ot(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&ot(e[r])?o[r]=ze(e[r],t[r],n):n.clone?o[r]=ot(t[r])?Ys(t[r]):t[r]:o[r]=t[r]}),o}function rn(e,t){return t?ze(e,t,{clone:!1}):e}const mt=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function Io(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,r)=>{var a,l;const i=/min-width:\s*([0-9.]+)/;return+(((a=o.match(i))==null?void 0:a[1])||0)-+(((l=r.match(i))==null?void 0:l[1])||0)});return n.length?n.reduce((o,r)=>{const i=t[r];return delete o[r],o[r]=i,o},{...t}):t}function x0(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function _0(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
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`);return null}const[,o,r]=n,i=Number.isNaN(+o)?o||0:+o;return e.containerQueries(r).up(i)}function w0(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...l)=>t(e.breakpoints.up(...l),a),i.down=(...l)=>t(e.breakpoints.down(...l),a),i.between=(...l)=>t(e.breakpoints.between(...l),a),i.only=(...l)=>t(e.breakpoints.only(...l),a),i.not=(...l)=>{const u=t(e.breakpoints.not(...l),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 o={},r=i=>(n(o,i),o);return n(r),{...e,containerQueries:r}}const Vn={xs:0,sm:600,md:900,lg:1200,xl:1536},Po={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Vn[e]}px)`},S0={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Vn[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function st(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const i=o.breakpoints||Po;return t.reduce((a,l,u)=>(a[i.up(i.keys[u])]=n(t[u]),a),{})}if(typeof t=="object"){const i=o.breakpoints||Po;return Object.keys(t).reduce((a,l)=>{if(x0(i.keys,l)){const u=_0(o.containerQueries?o:S0,l);u&&(a[u]=n(t[l],l))}else if(Object.keys(i.values||Vn).includes(l)){const u=i.up(l);a[u]=n(t[l],l)}else{const u=l;a[u]=t[u]}return a},{})}return n(t)}function T0(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((o,r)=>{const i=e.up(r);return o[i]={},o},{}))||{}}function Vo(e,t){return e.reduce((n,o)=>{const r=n[o];return(!r||Object.keys(r).length===0)&&delete n[o],n},t)}function Bn(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((r,i)=>r&&r[i]?r[i]:null,e);if(o!=null)return o}return t.split(".").reduce((o,r)=>o&&o[r]!=null?o[r]:null,e)}function In(e,t,n,o=n){let r;return typeof e=="function"?r=e(n):Array.isArray(e)?r=e[n]||o:r=Bn(e,n)||o,t&&(r=t(r,o,e)),r}function Se(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,i=a=>{if(a[t]==null)return null;const l=a[t],u=a.theme,d=Bn(u,o)||{};return st(a,l,g=>{let y=In(d,r,g);return g===y&&typeof g=="string"&&(y=In(d,r,`${t}${g==="default"?"":Ge(g)}`,g)),n===!1?y:{[n]:y}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:mt}:{},i.filterProps=[t],i}function k0(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const j0={m:"margin",p:"padding"},E0={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Bo={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},$0=k0(e=>{if(e.length>2)if(Bo[e])e=Bo[e];else return[e];const[t,n]=e.split(""),o=j0[t],r=E0[n]||"";return Array.isArray(r)?r.map(i=>o+i):[o+r]}),Fn=["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"],N0=[...Fn,...zn];function ln(e,t,n,o){const r=Bn(e,t,!0)??n;return typeof r=="number"||typeof r=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${i}.`),typeof r=="string"?r.startsWith("var(")&&i===0?0:r.startsWith("var(")&&i===1?r:`calc(${i} * ${r})`:r*i):Array.isArray(r)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>r.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(r)}.`,`${a} > ${r.length-1}, you need to add the missing values.`].join(`
42
+ */var Po;function S0(){return Po||(Po=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 h:case m:return f;default:switch(f=f&&f.$$typeof,f){case l: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"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),v=Symbol.for("react.client.reference");he.ContextConsumer=a,he.ContextProvider=l,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=h,he.isContextConsumer=function(f){return e(f)===a},he.isContextProvider=function(f){return e(f)===l},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)===h},he.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===i||f===o||f===d||f===h||typeof f=="object"&&f!==null&&(f.$$typeof===y||f.$$typeof===g||f.$$typeof===l||f.$$typeof===a||f.$$typeof===u||f.$$typeof===v||f.getModuleId!==void 0)},he.typeOf=e}()),he}var Bo;function T0(){return Bo||(Bo=1,process.env.NODE_ENV==="production"?Tn.exports=w0():Tn.exports=S0()),Tn.exports}var In=T0();function ot(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 ti(e){if(Q.isValidElement(e)||In.isValidElementType(e)||!ot(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=ti(e[n])}),t}function ze(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return ot(e)&&ot(t)&&Object.keys(t).forEach(o=>{Q.isValidElement(t[o])||In.isValidElementType(t[o])?r[o]=t[o]:ot(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ot(e[o])?r[o]=ze(e[o],t[o],n):n.clone?r[o]=ot(t[o])?ti(t[o]):t[o]:r[o]=t[o]}),r}function on(e,t){return t?ze(e,t,{clone:!1}):e}const ht=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function Vo(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var a,l;const i=/min-width:\s*([0-9.]+)/;return+(((a=r.match(i))==null?void 0:a[1])||0)-+(((l=o.match(i))==null?void 0:l[1])||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function k0(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function j0(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
+ 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 $0(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...l)=>t(e.breakpoints.up(...l),a),i.down=(...l)=>t(e.breakpoints.down(...l),a),i.between=(...l)=>t(e.breakpoints.between(...l),a),i.only=(...l)=>t(e.breakpoints.only(...l),a),i.not=(...l)=>{const u=t(e.breakpoints.not(...l),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 Vn={xs:0,sm:600,md:900,lg:1200,xl:1536},Fo={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Vn[e]}px)`},E0={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Vn[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function it(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Fo;return t.reduce((a,l,u)=>(a[i.up(i.keys[u])]=n(t[u]),a),{})}if(typeof t=="object"){const i=r.breakpoints||Fo;return Object.keys(t).reduce((a,l)=>{if(k0(i.keys,l)){const u=j0(r.containerQueries?r:E0,l);u&&(a[u]=n(t[l],l))}else if(Object.keys(i.values||Vn).includes(l)){const u=i.up(l);a[u]=n(t[l],l)}else{const u=l;a[u]=t[u]}return a},{})}return n(t)}function N0(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function zo(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Fn(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 Pn(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Fn(e,n)||r,t&&(o=t(o,r,e)),o}function Se(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const l=a[t],u=a.theme,d=Fn(u,r)||{};return it(a,l,g=>{let y=Pn(d,o,g);return g===y&&typeof g=="string"&&(y=Pn(d,o,`${t}${g==="default"?"":Ge(g)}`,g)),n===!1?y:{[n]:y}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:ht}:{},i.filterProps=[t],i}function O0(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const A0={m:"margin",p:"padding"},L0={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},qo={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},M0=O0(e=>{if(e.length>2)if(qo[e])e=qo[e];else return[e];const[t,n]=e.split(""),r=A0[t],o=L0[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),zn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],qn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],R0=[...zn,...qn];function cn(e,t,n,r){const o=Fn(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
- `)));const l=r[a];return i>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof r=="function"?r:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${r}) is invalid.`,"It should be a number, an array or a function."].join(`
46
- `)),()=>{})}function Vr(e){return ln(e,"spacing",8,"spacing")}function cn(e,t){return typeof t=="string"||t==null?t:e(t)}function O0(e,t){return n=>e.reduce((o,r)=>(o[r]=cn(t,n),o),{})}function A0(e,t,n,o){if(!t.includes(n))return null;const r=$0(n),i=O0(r,o),a=e[n];return st(e,a,i)}function Xs(e,t){const n=Vr(e.theme);return Object.keys(e).map(o=>A0(e,t,o,n)).reduce(rn,{})}function _e(e){return Xs(e,Fn)}_e.propTypes=process.env.NODE_ENV!=="production"?Fn.reduce((e,t)=>(e[t]=mt,e),{}):{};_e.filterProps=Fn;function we(e){return Xs(e,zn)}we.propTypes=process.env.NODE_ENV!=="production"?zn.reduce((e,t)=>(e[t]=mt,e),{}):{};we.filterProps=zn;process.env.NODE_ENV!=="production"&&N0.reduce((e,t)=>(e[t]=mt,e),{});function qn(...e){const t=e.reduce((o,r)=>(r.filterProps.forEach(i=>{o[i]=r}),o),{}),n=o=>Object.keys(o).reduce((r,i)=>t[i]?rn(r,t[i](o)):r,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((o,r)=>Object.assign(o,r.propTypes),{}):{},n.filterProps=e.reduce((o,r)=>o.concat(r.filterProps),[]),n}function Ue(e){return typeof e!="number"?e:`${e}px solid`}function Ke(e,t){return Se({prop:e,themeKey:"borders",transform:t})}const L0=Ke("border",Ue),M0=Ke("borderTop",Ue),R0=Ke("borderRight",Ue),D0=Ke("borderBottom",Ue),I0=Ke("borderLeft",Ue),P0=Ke("borderColor"),V0=Ke("borderTopColor"),B0=Ke("borderRightColor"),F0=Ke("borderBottomColor"),z0=Ke("borderLeftColor"),q0=Ke("outline",Ue),W0=Ke("outlineColor"),Wn=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ln(e.theme,"shape.borderRadius",4,"borderRadius"),n=o=>({borderRadius:cn(t,o)});return st(e,e.borderRadius,n)}return null};Wn.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:mt}:{};Wn.filterProps=["borderRadius"];qn(L0,M0,R0,D0,I0,P0,V0,B0,F0,z0,Wn,q0,W0);const Un=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ln(e.theme,"spacing",8,"gap"),n=o=>({gap:cn(t,o)});return st(e,e.gap,n)}return null};Un.propTypes=process.env.NODE_ENV!=="production"?{gap:mt}:{};Un.filterProps=["gap"];const Zn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ln(e.theme,"spacing",8,"columnGap"),n=o=>({columnGap:cn(t,o)});return st(e,e.columnGap,n)}return null};Zn.propTypes=process.env.NODE_ENV!=="production"?{columnGap:mt}:{};Zn.filterProps=["columnGap"];const Kn=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ln(e.theme,"spacing",8,"rowGap"),n=o=>({rowGap:cn(t,o)});return st(e,e.rowGap,n)}return null};Kn.propTypes=process.env.NODE_ENV!=="production"?{rowGap:mt}:{};Kn.filterProps=["rowGap"];const U0=Se({prop:"gridColumn"}),Z0=Se({prop:"gridRow"}),K0=Se({prop:"gridAutoFlow"}),H0=Se({prop:"gridAutoColumns"}),G0=Se({prop:"gridAutoRows"}),Y0=Se({prop:"gridTemplateColumns"}),X0=Se({prop:"gridTemplateRows"}),Q0=Se({prop:"gridTemplateAreas"}),J0=Se({prop:"gridArea"});qn(Un,Zn,Kn,U0,Z0,K0,H0,G0,Y0,X0,Q0,J0);function Vt(e,t){return t==="grey"?t:e}const e2=Se({prop:"color",themeKey:"palette",transform:Vt}),t2=Se({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Vt}),n2=Se({prop:"backgroundColor",themeKey:"palette",transform:Vt});qn(e2,t2,n2);function Fe(e){return e<=1&&e!==0?`${e*100}%`:e}const r2=Se({prop:"width",transform:Fe}),Br=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i,a,l,u;const o=((a=(i=(r=e.theme)==null?void 0:r.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||Vn[n];return o?((u=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Fe(n)}};return st(e,e.maxWidth,t)}return null};Br.filterProps=["maxWidth"];const o2=Se({prop:"minWidth",transform:Fe}),s2=Se({prop:"height",transform:Fe}),i2=Se({prop:"maxHeight",transform:Fe}),a2=Se({prop:"minHeight",transform:Fe});Se({prop:"size",cssProperty:"width",transform:Fe});Se({prop:"size",cssProperty:"height",transform:Fe});const l2=Se({prop:"boxSizing"});qn(r2,Br,o2,s2,i2,a2,l2);const Hn={border:{themeKey:"borders",transform:Ue},borderTop:{themeKey:"borders",transform:Ue},borderRight:{themeKey:"borders",transform:Ue},borderBottom:{themeKey:"borders",transform:Ue},borderLeft:{themeKey:"borders",transform:Ue},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ue},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Wn},color:{themeKey:"palette",transform:Vt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Vt},backgroundColor:{themeKey:"palette",transform:Vt},p:{style:we},pt:{style:we},pr:{style:we},pb:{style:we},pl:{style:we},px:{style:we},py:{style:we},padding:{style:we},paddingTop:{style:we},paddingRight:{style:we},paddingBottom:{style:we},paddingLeft:{style:we},paddingX:{style:we},paddingY:{style:we},paddingInline:{style:we},paddingInlineStart:{style:we},paddingInlineEnd:{style:we},paddingBlock:{style:we},paddingBlockStart:{style:we},paddingBlockEnd:{style:we},m:{style:_e},mt:{style:_e},mr:{style:_e},mb:{style:_e},ml:{style:_e},mx:{style:_e},my:{style:_e},margin:{style:_e},marginTop:{style:_e},marginRight:{style:_e},marginBottom:{style:_e},marginLeft:{style:_e},marginX:{style:_e},marginY:{style:_e},marginInline:{style:_e},marginInlineStart:{style:_e},marginInlineEnd:{style:_e},marginBlock:{style:_e},marginBlockStart:{style:_e},marginBlockEnd:{style:_e},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:Un},rowGap:{style:Kn},columnGap:{style:Zn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Fe},maxWidth:{style:Br},minWidth:{transform:Fe},height:{transform:Fe},maxHeight:{transform:Fe},minHeight:{transform:Fe},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 c2(...e){const t=e.reduce((o,r)=>o.concat(Object.keys(r)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function u2(e,t){return typeof e=="function"?e(t):e}function d2(){function e(n,o,r,i){const a={[n]:o,theme:r},l=i[n];if(!l)return{[n]:o};const{cssProperty:u=n,themeKey:d,transform:h,style:g}=l;if(o==null)return null;if(d==="typography"&&o==="inherit")return{[n]:o};const y=Bn(r,d)||{};return g?g(a):st(a,o,v=>{let f=In(y,h,v);return v===f&&typeof v=="string"&&(f=In(y,h,`${n}${v==="default"?"":Ge(v)}`,v)),u===!1?f:{[u]:f}})}function t(n){const{sx:o,theme:r={},nested:i}=n||{};if(!o)return null;const a=r.unstable_sxConfig??Hn;function l(u){let d=u;if(typeof u=="function")d=u(r);else if(typeof u!="object")return u;if(!d)return null;const h=T0(r.breakpoints),g=Object.keys(h);let y=h;return Object.keys(d).forEach(m=>{const v=u2(d[m],r);if(v!=null)if(typeof v=="object")if(a[m])y=rn(y,e(m,v,r,a));else{const f=st({theme:r},v,x=>({[m]:x}));c2(f,v)?y[m]=t({sx:v,theme:r,nested:!0}):y=rn(y,f)}else y=rn(y,e(m,v,r,a))}),!i&&r.modularCssLayers?{"@layer sx":Io(r,Vo(g,y))}:Io(r,Vo(g,y))}return Array.isArray(o)?o.map(l):l(o)}return t}const Ft=d2();Ft.filterProps=["sx"];function f2(e){for(var t=0,n,o=0,r=e.length;r>=4;++o,r-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&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(r){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&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 p2={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 m2(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var h2=/[A-Z]|^ms/g,g2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Qs=function(t){return t.charCodeAt(1)===45},Fo=function(t){return t!=null&&typeof t!="boolean"},mr=m2(function(e){return Qs(e)?e:e.replace(h2,"-$&").toLowerCase()}),zo=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(g2,function(o,r,i){return ut={name:r,styles:i,next:ut},r})}return p2[t]!==1&&!Qs(t)&&typeof n=="number"&&n!==0?n+"px":n};function Pn(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return ut={name:r.name,styles:r.styles,next:ut},r.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)ut={name:a.name,styles:a.styles,next:ut},a=a.next;var l=i.styles+";";return l}return y2(e,t,n)}}var u=n;return u}function y2(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=Pn(e,t,n[r])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var l=a;Fo(l)&&(o+=mr(i)+":"+zo(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var u=0;u<a.length;u++)Fo(a[u])&&(o+=mr(i)+":"+zo(i,a[u])+";");else{var d=Pn(e,t,a);switch(i){case"animation":case"animationName":{o+=mr(i)+":"+d+";";break}default:o+=i+"{"+d+"}"}}}return o}var qo=/label:\s*([^\s;{]+)\s*(;|$)/g,ut;function b2(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,r="";ut=void 0;var i=e[0];if(i==null||i.raw===void 0)o=!1,r+=Pn(n,t,i);else{var a=i;r+=a[0]}for(var l=1;l<e.length;l++)if(r+=Pn(n,t,e[l]),o){var u=i;r+=u[l]}qo.lastIndex=0;for(var d="",h;(h=qo.exec(r))!==null;)d+="-"+h[1];var g=f2(r)+d;return{name:g,styles:r,next:ut}}/**
45
+ `)));const l=o[a];return i>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}: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 Fr(e){return cn(e,"spacing",8,"spacing")}function un(e,t){return typeof t=="string"||t==null?t:e(t)}function D0(e,t){return n=>e.reduce((r,o)=>(r[o]=un(t,n),r),{})}function I0(e,t,n,r){if(!t.includes(n))return null;const o=M0(n),i=D0(o,r),a=e[n];return it(e,a,i)}function ni(e,t){const n=Fr(e.theme);return Object.keys(e).map(r=>I0(e,t,r,n)).reduce(on,{})}function _e(e){return ni(e,zn)}_e.propTypes=process.env.NODE_ENV!=="production"?zn.reduce((e,t)=>(e[t]=ht,e),{}):{};_e.filterProps=zn;function we(e){return ni(e,qn)}we.propTypes=process.env.NODE_ENV!=="production"?qn.reduce((e,t)=>(e[t]=ht,e),{}):{};we.filterProps=qn;process.env.NODE_ENV!=="production"&&R0.reduce((e,t)=>(e[t]=ht,e),{});function Wn(...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]?on(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 Ue(e){return typeof e!="number"?e:`${e}px solid`}function He(e,t){return Se({prop:e,themeKey:"borders",transform:t})}const P0=He("border",Ue),B0=He("borderTop",Ue),V0=He("borderRight",Ue),F0=He("borderBottom",Ue),z0=He("borderLeft",Ue),q0=He("borderColor"),W0=He("borderTopColor"),U0=He("borderRightColor"),Z0=He("borderBottomColor"),H0=He("borderLeftColor"),K0=He("outline",Ue),G0=He("outlineColor"),Un=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=cn(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:un(t,r)});return it(e,e.borderRadius,n)}return null};Un.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:ht}:{};Un.filterProps=["borderRadius"];Wn(P0,B0,V0,F0,z0,q0,W0,U0,Z0,H0,Un,K0,G0);const Zn=e=>{if(e.gap!==void 0&&e.gap!==null){const t=cn(e.theme,"spacing",8,"gap"),n=r=>({gap:un(t,r)});return it(e,e.gap,n)}return null};Zn.propTypes=process.env.NODE_ENV!=="production"?{gap:ht}:{};Zn.filterProps=["gap"];const Hn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=cn(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:un(t,r)});return it(e,e.columnGap,n)}return null};Hn.propTypes=process.env.NODE_ENV!=="production"?{columnGap:ht}:{};Hn.filterProps=["columnGap"];const Kn=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=cn(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:un(t,r)});return it(e,e.rowGap,n)}return null};Kn.propTypes=process.env.NODE_ENV!=="production"?{rowGap:ht}:{};Kn.filterProps=["rowGap"];const Y0=Se({prop:"gridColumn"}),X0=Se({prop:"gridRow"}),Q0=Se({prop:"gridAutoFlow"}),J0=Se({prop:"gridAutoColumns"}),e2=Se({prop:"gridAutoRows"}),t2=Se({prop:"gridTemplateColumns"}),n2=Se({prop:"gridTemplateRows"}),r2=Se({prop:"gridTemplateAreas"}),o2=Se({prop:"gridArea"});Wn(Zn,Hn,Kn,Y0,X0,Q0,J0,e2,t2,n2,r2,o2);function Vt(e,t){return t==="grey"?t:e}const s2=Se({prop:"color",themeKey:"palette",transform:Vt}),i2=Se({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Vt}),a2=Se({prop:"backgroundColor",themeKey:"palette",transform:Vt});Wn(s2,i2,a2);function Fe(e){return e<=1&&e!==0?`${e*100}%`:e}const l2=Se({prop:"width",transform:Fe}),zr=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,a,l,u;const r=((a=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||Vn[n];return r?((u=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Fe(n)}};return it(e,e.maxWidth,t)}return null};zr.filterProps=["maxWidth"];const c2=Se({prop:"minWidth",transform:Fe}),u2=Se({prop:"height",transform:Fe}),d2=Se({prop:"maxHeight",transform:Fe}),f2=Se({prop:"minHeight",transform:Fe});Se({prop:"size",cssProperty:"width",transform:Fe});Se({prop:"size",cssProperty:"height",transform:Fe});const p2=Se({prop:"boxSizing"});Wn(l2,zr,c2,u2,d2,f2,p2);const Gn={border:{themeKey:"borders",transform:Ue},borderTop:{themeKey:"borders",transform:Ue},borderRight:{themeKey:"borders",transform:Ue},borderBottom:{themeKey:"borders",transform:Ue},borderLeft:{themeKey:"borders",transform:Ue},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ue},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Un},color:{themeKey:"palette",transform:Vt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Vt},backgroundColor:{themeKey:"palette",transform:Vt},p:{style:we},pt:{style:we},pr:{style:we},pb:{style:we},pl:{style:we},px:{style:we},py:{style:we},padding:{style:we},paddingTop:{style:we},paddingRight:{style:we},paddingBottom:{style:we},paddingLeft:{style:we},paddingX:{style:we},paddingY:{style:we},paddingInline:{style:we},paddingInlineStart:{style:we},paddingInlineEnd:{style:we},paddingBlock:{style:we},paddingBlockStart:{style:we},paddingBlockEnd:{style:we},m:{style:_e},mt:{style:_e},mr:{style:_e},mb:{style:_e},ml:{style:_e},mx:{style:_e},my:{style:_e},margin:{style:_e},marginTop:{style:_e},marginRight:{style:_e},marginBottom:{style:_e},marginLeft:{style:_e},marginX:{style:_e},marginY:{style:_e},marginInline:{style:_e},marginInlineStart:{style:_e},marginInlineEnd:{style:_e},marginBlock:{style:_e},marginBlockStart:{style:_e},marginBlockEnd:{style:_e},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:Zn},rowGap:{style:Kn},columnGap:{style:Hn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Fe},maxWidth:{style:zr},minWidth:{transform:Fe},height:{transform:Fe},maxHeight:{transform:Fe},minHeight:{transform:Fe},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 m2(...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 h2(e,t){return typeof e=="function"?e(t):e}function g2(){function e(n,r,o,i){const a={[n]:r,theme:o},l=i[n];if(!l)return{[n]:r};const{cssProperty:u=n,themeKey:d,transform:h,style:g}=l;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const y=Fn(o,d)||{};return g?g(a):it(a,r,v=>{let f=Pn(y,h,v);return v===f&&typeof v=="string"&&(f=Pn(y,h,`${n}${v==="default"?"":Ge(v)}`,v)),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??Gn;function l(u){let d=u;if(typeof u=="function")d=u(o);else if(typeof u!="object")return u;if(!d)return null;const h=N0(o.breakpoints),g=Object.keys(h);let y=h;return Object.keys(d).forEach(m=>{const v=h2(d[m],o);if(v!=null)if(typeof v=="object")if(a[m])y=on(y,e(m,v,o,a));else{const f=it({theme:o},v,x=>({[m]:x}));m2(f,v)?y[m]=t({sx:v,theme:o,nested:!0}):y=on(y,f)}else y=on(y,e(m,v,o,a))}),!i&&o.modularCssLayers?{"@layer sx":Vo(o,zo(g,y))}:Vo(o,zo(g,y))}return Array.isArray(r)?r.map(l):l(r)}return t}const zt=g2();zt.filterProps=["sx"];function y2(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 b2={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 v2(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var C2=/[A-Z]|^ms/g,x2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ri=function(t){return t.charCodeAt(1)===45},Wo=function(t){return t!=null&&typeof t!="boolean"},hr=v2(function(e){return ri(e)?e:e.replace(C2,"-$&").toLowerCase()}),Uo=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(x2,function(r,o,i){return dt={name:o,styles:i,next:dt},o})}return b2[t]!==1&&!ri(t)&&typeof n=="number"&&n!==0?n+"px":n};function Bn(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 dt={name:o.name,styles:o.styles,next:dt},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)dt={name:a.name,styles:a.styles,next:dt},a=a.next;var l=i.styles+";";return l}return _2(e,t,n)}}var u=n;return u}function _2(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Bn(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var l=a;Wo(l)&&(r+=hr(i)+":"+Uo(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var u=0;u<a.length;u++)Wo(a[u])&&(r+=hr(i)+":"+Uo(i,a[u])+";");else{var d=Bn(e,t,a);switch(i){case"animation":case"animationName":{r+=hr(i)+":"+d+";";break}default:r+=i+"{"+d+"}"}}}return r}var Zo=/label:\s*([^\s;{]+)\s*(;|$)/g,dt;function w2(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="";dt=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=Bn(n,t,i);else{var a=i;o+=a[0]}for(var l=1;l<e.length;l++)if(o+=Bn(n,t,e[l]),r){var u=i;o+=u[l]}Zo.lastIndex=0;for(var d="",h;(h=Zo.exec(o))!==null;)d+="-"+h[1];var g=y2(o)+d;return{name:g,styles:o,next:dt}}/**
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
- */function v2(e,t){const n=ea(e,t);return process.env.NODE_ENV!=="production"?(...o)=>{const r=typeof e=="string"?`"${e}"`:"component";return o.length===0?console.error([`MUI: Seems like you called \`styled(${r})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
53
- `)):o.some(i=>i===void 0)&&console.error(`MUI: the styled(${r})(...args) API requires all its args to be defined.`),n(...o)}:n}function C2(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Wo=[];function _t(e){return Wo[0]=e,b2(Wo)}const x2=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,o)=>n.val-o.val),t.reduce((n,o)=>({...n,[o.key]:o.val}),{})};function _2(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...r}=e,i=x2(t),a=Object.keys(i);function l(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)-o/100}${n})`}function d(y,m){const v=a.indexOf(m);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(v!==-1&&typeof t[a[v]]=="number"?t[a[v]]:m)-o/100}${n})`}function h(y){return a.indexOf(y)+1<a.length?d(y,a[a.indexOf(y)+1]):l(y)}function g(y){const m=a.indexOf(y);return m===0?l(a[1]):m===a.length-1?u(a[m]):d(y,a[a.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:l,down:u,between:d,only:h,not:g,unit:n,...r}}const w2={borderRadius:4};function Js(e=8,t=Vr({spacing:e})){if(e.mui)return e;const n=(...o)=>(process.env.NODE_ENV!=="production"&&(o.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${o.length}`)),(o.length===0?[1]:o).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function S2(e,t){var o;const n=this;if(n.vars){if(!((o=n.colorSchemes)!=null&&o[e])||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function ei(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...a}=e,l=_2(n),u=Js(r);let d=ze({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:u,shape:{...w2,...i}},a);return d=w0(d),d.applyStyles=S2,d=t.reduce((h,g)=>ze(h,g),d),d.unstable_sxConfig={...Hn,...a==null?void 0:a.unstable_sxConfig},d.unstable_sx=function(g){return Ft({sx:g,theme:this})},d}const Uo=e=>e,T2=()=>{let e=Uo;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Uo}}},k2=T2(),j2={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 Fr(e,t,n="Mui"){const o=j2[t];return o?`${n}-${o}`:`${k2.generate(e)}-${t}`}function E2(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=Fr(e,r,n)}),o}function ti(e,t=""){return e.displayName||e.name||t}function Zo(e,t,n){const o=ti(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function $2(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return ti(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Dn.ForwardRef:return Zo(e,e.render,"ForwardRef");case Dn.Memo:return Zo(e,e.type,"memo");default:return}}}function ni(e){const{variants:t,...n}=e,o={variants:t,style:_t(n),isProcessed:!0};return o.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=_t(r.style))}),o}const N2=ei();function hr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function xt(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function O2(e){return e?(t,n)=>n[e]:null}function A2(e,t,n){e.theme=D2(e.theme)?n:e.theme[t]||e.theme}function An(e,t,n){const o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(r=>An(e,r,n));if(Array.isArray(o==null?void 0:o.variants)){let r;if(o.isProcessed)r=n?xt(o.style,n):o.style;else{const{variants:i,...a}=o;r=n?xt(_t(a),n):a}return ri(e,o.variants,[r],n)}return o!=null&&o.isProcessed?n?xt(_t(o.style),n):o.style:n?xt(_t(o),n):o}function ri(e,t,n=[],o=void 0){var i;let r;e:for(let a=0;a<t.length;a+=1){const l=t[a];if(typeof l.props=="function"){if(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(r))continue}else for(const u in l.props)if(e[u]!==l.props[u]&&((i=e.ownerState)==null?void 0:i[u])!==l.props[u])continue e;typeof l.style=="function"?(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),n.push(o?xt(_t(l.style(r)),o):l.style(r))):n.push(o?xt(_t(l.style),o):l.style)}return n}function L2(e={}){const{themeId:t,defaultTheme:n=N2,rootShouldForwardProp:o=hr,slotShouldForwardProp:r=hr}=e;function i(l){A2(l,t,n)}return(l,u={})=>{C2(l,w=>w.filter(L=>L!==Ft));const{name:d,slot:h,skipVariantsResolver:g,skipSx:y,overridesResolver:m=O2(oi(h)),...v}=u,f=d&&d.startsWith("Mui")||h?"components":"custom",x=g!==void 0?g:h&&h!=="Root"&&h!=="root"||!1,S=y||!1;let k=hr;h==="Root"||h==="root"?k=o:h?k=r:I2(l)&&(k=void 0);const $=v2(l,{shouldForwardProp:k,label:R2(d,h),...v}),b=w=>{if(w.__emotion_real===w)return w;if(typeof w=="function")return function(R){return An(R,w,R.theme.modularCssLayers?f:void 0)};if(ot(w)){const L=ni(w);return function(N){return L.variants?An(N,L,N.theme.modularCssLayers?f:void 0):N.theme.modularCssLayers?xt(L.style,f):L.style}}return w},C=(...w)=>{const L=[],R=w.map(b),N=[];if(L.push(i),d&&m&&N.push(function(E){var Y,W;const V=(W=(Y=E.theme.components)==null?void 0:Y[d])==null?void 0:W.styleOverrides;if(!V)return null;const B={};for(const ae in V)B[ae]=An(E,V[ae],E.theme.modularCssLayers?"theme":void 0);return m(E,B)}),d&&!x&&N.push(function(E){var B,Y;const T=E.theme,V=(Y=(B=T==null?void 0:T.components)==null?void 0:B[d])==null?void 0:Y.variants;return V?ri(E,V,[],E.theme.modularCssLayers?"theme":void 0):null}),S||N.push(Ft),Array.isArray(R[0])){const p=R.shift(),E=new Array(L.length).fill(""),T=new Array(N.length).fill("");let V;V=[...E,...p,...T],V.raw=[...E,...p.raw,...T],L.unshift(V)}const q=[...L,...R,...N],F=$(...q);return l.muiName&&(F.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(F.displayName=M2(d,h,l)),F};return $.withConfig&&(C.withConfig=$.withConfig),C}}function M2(e,t,n){return e?`${e}${Ge(t||"")}`:`Styled(${$2(n)})`}function R2(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${oi(t||"Root")}`),n}function D2(e){for(const t in e)return!1;return!0}function I2(e){return typeof e=="string"&&e.charCodeAt(0)>96}function oi(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function kr(e,t,n=!1){const o={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const i=r;if(i==="components"||i==="slots")o[i]={...e[i],...o[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],l=t[i];if(!l)o[i]=a||{};else if(!a)o[i]=l;else{o[i]={...l};for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u)){const d=u;o[i][d]=kr(a[d],l[d],n)}}}else i==="className"&&n&&t.className?o.className=dt(e==null?void 0:e.className,t==null?void 0:t.className):i==="style"&&n&&t.style?o.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:o[i]===void 0&&(o[i]=e[i])}return o}function zr(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}].`),Pt(e,t,n)}function P2(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(o=>o+o)),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((o,r)=>r<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function ft(e){if(e.type)return e;if(e.charAt(0)==="#")return ft(P2(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().`:wt(9,e));let o=e.substring(t+1,e.length-1),r;if(n==="color"){if(o=o.split(" "),r=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${r}\` color space.
55
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:wt(10,r))}else o=o.split(",");return o=o.map(i=>parseFloat(i)),{type:n,values:o,colorSpace:r}}const V2=e=>{const t=ft(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},Jt=(e,t)=>{try{return V2(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Gn(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((r,i)=>i<3?parseInt(r,10):r):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${n} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function si(e){e=ft(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),a=(d,h=(d+n/30)%12)=>r-i*Math.max(Math.min(h-3,9-h,1),-1);let l="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",u.push(t[3])),Gn({type:l,values:u})}function jr(e){e=ft(e);let t=e.type==="hsl"||e.type==="hsla"?ft(si(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 Ko(e,t){const n=jr(e),o=jr(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function ii(e,t){return e=ft(e),t=zr(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Gn(e)}function bt(e,t,n){try{return ii(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Yn(e,t){if(e=ft(e),t=zr(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 Gn(e)}function fe(e,t,n){try{return Yn(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Xn(e,t){if(e=ft(e),t=zr(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 Gn(e)}function pe(e,t,n){try{return Xn(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function B2(e,t=.15){return jr(e)>.5?Yn(e,t):Xn(e,t)}function Tn(e,t,n){try{return B2(e,t)}catch{return e}}const F2=Q.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function z2(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n])return o;const r=t.components[n];return r.defaultProps?kr(r.defaultProps,o,t.components.mergeClassNameAndStyle):!r.styleOverrides&&!r.variants?kr(r,o,t.components.mergeClassNameAndStyle):o}function q2({props:e,name:t}){const n=Q.useContext(F2);return z2({props:e,name:t,theme:{components:n}})}const Ho={theme:void 0};function W2(e){let t,n;return function(r){let i=t;return(i===void 0||r.theme!==n)&&(Ho.theme=r.theme,i=ni(e(Ho)),t=i,n=r.theme),i}}function U2(e=""){function t(...o){if(!o.length)return"";const r=o[0];return typeof r=="string"&&!r.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}-`:""}${r}${t(...o.slice(1))})`:`, ${r}`}return(o,...r)=>`var(--${e?`${e}-`:""}${o}${t(...r)})`}const Go=(e,t,n,o=[])=>{let r=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(r)?r[Number(i)]=n:r&&typeof r=="object"&&(r[i]=n):r&&typeof r=="object"&&(r[i]||(r[i]=o.includes(i)?[]:{}),r=r[i])})},Z2=(e,t,n)=>{function o(r,i=[],a=[]){Object.entries(r).forEach(([l,u])=>{(!n||n&&!n([...i,l]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?o(u,[...i,l],Array.isArray(u)?[...a,l]:a):t([...i,l],u,a))})}o(e)},K2=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function gr(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},a={};return Z2(e,(l,u,d)=>{if((typeof u=="string"||typeof u=="number")&&(!o||!o(l,u))){const h=`--${n?`${n}-`:""}${l.join("-")}`,g=K2(l,u);Object.assign(r,{[h]:g}),Go(i,l,`var(${h})`,d),Go(a,l,`var(${h}, ${g})`,d)}},l=>l[0]==="vars"),{css:r,vars:i,varsWithDefaults:a}}function H2(e,t={}){const{getSelector:n=S,disableCssColorScheme:o,colorSchemeSelector:r,enableContrastVars:i}=t,{colorSchemes:a={},components:l,defaultColorScheme:u="light",...d}=e,{vars:h,css:g,varsWithDefaults:y}=gr(d,t);let m=y;const v={},{[u]:f,...x}=a;if(Object.entries(x||{}).forEach(([b,C])=>{const{vars:w,css:L,varsWithDefaults:R}=gr(C,t);m=ze(m,R),v[b]={css:L,vars:w}}),f){const{css:b,vars:C,varsWithDefaults:w}=gr(f,t);m=ze(m,w),v[u]={css:b,vars:C}}function S(b,C){var L,R;let w=r;if(r==="class"&&(w=".%s"),r==="data"&&(w="[data-%s]"),r!=null&&r.startsWith("data-")&&!r.includes("%s")&&(w=`[${r}="%s"]`),b){if(w==="media")return e.defaultColorScheme===b?":root":{[`@media (prefers-color-scheme: ${((R=(L=a[b])==null?void 0:L.palette)==null?void 0:R.mode)||b})`]:{":root":C}};if(w)return e.defaultColorScheme===b?`:root, ${w.replace("%s",String(b))}`:w.replace("%s",String(b))}return":root"}return{vars:m,generateThemeVars:()=>{let b={...h};return Object.entries(v).forEach(([,{vars:C}])=>{b=ze(b,C)}),b},generateStyleSheets:()=>{var N,q;const b=[],C=e.defaultColorScheme||"light";function w(F,p){Object.keys(p).length&&b.push(typeof F=="string"?{[F]:{...p}}:F)}w(n(void 0,{...g}),g);const{[C]:L,...R}=v;if(L){const{css:F}=L,p=(q=(N=a[C])==null?void 0:N.palette)==null?void 0:q.mode,E=!o&&p?{colorScheme:p,...F}:{...F};w(n(C,{...E}),E)}return Object.entries(R).forEach(([F,{css:p}])=>{var V,B;const E=(B=(V=a[F])==null?void 0:V.palette)==null?void 0:B.mode,T=!o&&E?{colorScheme:E,...p}:{...p};w(n(F,{...T}),T)}),i&&b.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)"}}),b}}}function G2(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 on={black:"#000",white:"#fff"},Y2={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"},Nt={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ot={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Kt={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},At={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Lt={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Mt={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function ai(){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:on.white,default:on.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 li=ai();function ci(){return{text:{primary:on.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:on.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 Er=ci();function Yo(e,t,n,o){const r=o.light||o,i=o.dark||o*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Xn(e.main,r):t==="dark"&&(e.dark=Yn(e.main,i)))}function Xo(e,t,n,o,r){const i=r.light||r,a=r.dark||r*1.5;t[n]||(t.hasOwnProperty(o)?t[n]=t[o]: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 X2(e="light"){return e==="dark"?{main:At[200],light:At[50],dark:At[400]}:{main:At[700],light:At[400],dark:At[800]}}function Q2(e="light"){return e==="dark"?{main:Nt[200],light:Nt[50],dark:Nt[400]}:{main:Nt[500],light:Nt[300],dark:Nt[700]}}function J2(e="light"){return e==="dark"?{main:Ot[500],light:Ot[300],dark:Ot[700]}:{main:Ot[700],light:Ot[400],dark:Ot[800]}}function eu(e="light"){return e==="dark"?{main:Lt[400],light:Lt[300],dark:Lt[700]}:{main:Lt[700],light:Lt[500],dark:Lt[900]}}function tu(e="light"){return e==="dark"?{main:Mt[400],light:Mt[300],dark:Mt[700]}:{main:Mt[800],light:Mt[500],dark:Mt[900]}}function nu(e="light"){return e==="dark"?{main:Kt[400],light:Kt[300],dark:Kt[700]}:{main:"#ed6c02",light:Kt[500],dark:Kt[900]}}function ru(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function qr(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,colorSpace:r,...i}=e,a=e.primary||X2(t),l=e.secondary||Q2(t),u=e.error||J2(t),d=e.info||eu(t),h=e.success||tu(t),g=e.warning||nu(t);function y(x){if(r)return ru(x);const S=Ko(x,Er.text.primary)>=n?Er.text.primary:li.text.primary;if(process.env.NODE_ENV!=="production"){const k=Ko(x,S);k<3&&console.error([`MUI: The contrast ratio of ${k}:1 for ${S} 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 S}const m=({color:x,name:S,mainShade:k=500,lightShade:$=300,darkShade:b=700})=>{if(x={...x},!x.main&&x[k]&&(x.main=x[k]),!x.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${S?` (${S})`:""} provided to augmentColor(color) is invalid.
57
- The color object needs to have a \`main\` property or a \`${k}\` property.`:wt(11,S?` (${S})`:"",k));if(typeof x.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${S?` (${S})`:""} provided to augmentColor(color) is invalid.
52
+ */function S2(e,t){const n=sa(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 T2(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Ho=[];function wt(e){return Ho[0]=e,w2(Ho)}const k2=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 j2(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=k2(t),a=Object.keys(i);function l(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,m){const v=a.indexOf(m);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(v!==-1&&typeof t[a[v]]=="number"?t[a[v]]:m)-r/100}${n})`}function h(y){return a.indexOf(y)+1<a.length?d(y,a[a.indexOf(y)+1]):l(y)}function g(y){const m=a.indexOf(y);return m===0?l(a[1]):m===a.length-1?u(a[m]):d(y,a[a.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:l,down:u,between:d,only:h,not:g,unit:n,...o}}const $2={borderRadius:4};function oi(e=8,t=Fr({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 E2(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 si(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e,l=j2(n),u=oi(o);let d=ze({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:u,shape:{...$2,...i}},a);return d=$0(d),d.applyStyles=E2,d=t.reduce((h,g)=>ze(h,g),d),d.unstable_sxConfig={...Gn,...a==null?void 0:a.unstable_sxConfig},d.unstable_sx=function(g){return zt({sx:g,theme:this})},d}const Ko=e=>e,N2=()=>{let e=Ko;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ko}}},O2=N2(),A2={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 qr(e,t,n="Mui"){const r=A2[t];return r?`${n}-${r}`:`${O2.generate(e)}-${t}`}function L2(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=qr(e,o,n)}),r}function ii(e,t=""){return e.displayName||e.name||t}function Go(e,t,n){const r=ii(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function M2(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return ii(e,"Component");if(typeof e=="object")switch(e.$$typeof){case In.ForwardRef:return Go(e,e.render,"ForwardRef");case In.Memo:return Go(e,e.type,"memo");default:return}}}function ai(e){const{variants:t,...n}=e,r={variants:t,style:wt(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=wt(o.style))}),r}const R2=si();function gr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function _t(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function D2(e){return e?(t,n)=>n[e]:null}function I2(e,t,n){e.theme=F2(e.theme)?n:e.theme[t]||e.theme}function Ln(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>Ln(e,o,n));if(Array.isArray(r==null?void 0:r.variants)){let o;if(r.isProcessed)o=n?_t(r.style,n):r.style;else{const{variants:i,...a}=r;o=n?_t(wt(a),n):a}return li(e,r.variants,[o],n)}return r!=null&&r.isProcessed?n?_t(wt(r.style),n):r.style:n?_t(wt(r),n):r}function li(e,t,n=[],r=void 0){var i;let o;e:for(let a=0;a<t.length;a+=1){const l=t[a];if(typeof l.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(o))continue}else for(const u in l.props)if(e[u]!==l.props[u]&&((i=e.ownerState)==null?void 0:i[u])!==l.props[u])continue e;typeof l.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),n.push(r?_t(wt(l.style(o)),r):l.style(o))):n.push(r?_t(wt(l.style),r):l.style)}return n}function P2(e={}){const{themeId:t,defaultTheme:n=R2,rootShouldForwardProp:r=gr,slotShouldForwardProp:o=gr}=e;function i(l){I2(l,t,n)}return(l,u={})=>{T2(l,w=>w.filter(L=>L!==zt));const{name:d,slot:h,skipVariantsResolver:g,skipSx:y,overridesResolver:m=D2(ci(h)),...v}=u,f=d&&d.startsWith("Mui")||h?"components":"custom",x=g!==void 0?g:h&&h!=="Root"&&h!=="root"||!1,S=y||!1;let T=gr;h==="Root"||h==="root"?T=r:h?T=o:z2(l)&&(T=void 0);const j=S2(l,{shouldForwardProp:T,label:V2(d,h),...v}),b=w=>{if(w.__emotion_real===w)return w;if(typeof w=="function")return function(R){return Ln(R,w,R.theme.modularCssLayers?f:void 0)};if(ot(w)){const L=ai(w);return function(N){return L.variants?Ln(N,L,N.theme.modularCssLayers?f:void 0):N.theme.modularCssLayers?_t(L.style,f):L.style}}return w},C=(...w)=>{const L=[],R=w.map(b),N=[];if(L.push(i),d&&m&&N.push(function(E){var Y,W;const B=(W=(Y=E.theme.components)==null?void 0:Y[d])==null?void 0:W.styleOverrides;if(!B)return null;const V={};for(const ae in B)V[ae]=Ln(E,B[ae],E.theme.modularCssLayers?"theme":void 0);return m(E,V)}),d&&!x&&N.push(function(E){var V,Y;const k=E.theme,B=(Y=(V=k==null?void 0:k.components)==null?void 0:V[d])==null?void 0:Y.variants;return B?li(E,B,[],E.theme.modularCssLayers?"theme":void 0):null}),S||N.push(zt),Array.isArray(R[0])){const p=R.shift(),E=new Array(L.length).fill(""),k=new Array(N.length).fill("");let B;B=[...E,...p,...k],B.raw=[...E,...p.raw,...k],L.unshift(B)}const q=[...L,...R,...N],F=j(...q);return l.muiName&&(F.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(F.displayName=B2(d,h,l)),F};return j.withConfig&&(C.withConfig=j.withConfig),C}}function B2(e,t,n){return e?`${e}${Ge(t||"")}`:`Styled(${M2(n)})`}function V2(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${ci(t||"Root")}`),n}function F2(e){for(const t in e)return!1;return!0}function z2(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ci(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function $r(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],l=t[i];if(!l)r[i]=a||{};else if(!a)r[i]=l;else{r[i]={...l};for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u)){const d=u;r[i][d]=$r(a[d],l[d],n)}}}else i==="className"&&n&&t.className?r.className=ft(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 Wr(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}].`),Bt(e,t,n)}function q2(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 pt(e){if(e.type)return e;if(e.charAt(0)==="#")return pt(q2(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().`:St(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.`:St(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const W2=e=>{const t=pt(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},en=(e,t)=>{try{return W2(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Yn(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 ui(e){e=pt(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,h=(d+n/30)%12)=>o-i*Math.max(Math.min(h-3,9-h,1),-1);let l="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",u.push(t[3])),Yn({type:l,values:u})}function Er(e){e=pt(e);let t=e.type==="hsl"||e.type==="hsla"?pt(ui(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 Yo(e,t){const n=Er(e),r=Er(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function di(e,t){return e=pt(e),t=Wr(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Yn(e)}function vt(e,t,n){try{return di(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Xn(e,t){if(e=pt(e),t=Wr(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 Yn(e)}function fe(e,t,n){try{return Xn(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Qn(e,t){if(e=pt(e),t=Wr(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 Yn(e)}function pe(e,t,n){try{return Qn(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function U2(e,t=.15){return Er(e)>.5?Xn(e,t):Qn(e,t)}function kn(e,t,n){try{return U2(e,t)}catch{return e}}const Z2=Q.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function H2(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?$r(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?$r(o,r,t.components.mergeClassNameAndStyle):r}function K2({props:e,name:t}){const n=Q.useContext(Z2);return H2({props:e,name:t,theme:{components:n}})}const Xo={theme:void 0};function G2(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(Xo.theme=o.theme,i=ai(e(Xo)),t=i,n=o.theme),i}}function Y2(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 Qo=(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])})},X2=(e,t,n)=>{function r(o,i=[],a=[]){Object.entries(o).forEach(([l,u])=>{(!n||n&&!n([...i,l]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?r(u,[...i,l],Array.isArray(u)?[...a,l]:a):t([...i,l],u,a))})}r(e)},Q2=(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 yr(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};return X2(e,(l,u,d)=>{if((typeof u=="string"||typeof u=="number")&&(!r||!r(l,u))){const h=`--${n?`${n}-`:""}${l.join("-")}`,g=Q2(l,u);Object.assign(o,{[h]:g}),Qo(i,l,`var(${h})`,d),Qo(a,l,`var(${h}, ${g})`,d)}},l=>l[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function J2(e,t={}){const{getSelector:n=S,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:a={},components:l,defaultColorScheme:u="light",...d}=e,{vars:h,css:g,varsWithDefaults:y}=yr(d,t);let m=y;const v={},{[u]:f,...x}=a;if(Object.entries(x||{}).forEach(([b,C])=>{const{vars:w,css:L,varsWithDefaults:R}=yr(C,t);m=ze(m,R),v[b]={css:L,vars:w}}),f){const{css:b,vars:C,varsWithDefaults:w}=yr(f,t);m=ze(m,w),v[u]={css:b,vars:C}}function S(b,C){var L,R;let w=o;if(o==="class"&&(w=".%s"),o==="data"&&(w="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(w=`[${o}="%s"]`),b){if(w==="media")return e.defaultColorScheme===b?":root":{[`@media (prefers-color-scheme: ${((R=(L=a[b])==null?void 0:L.palette)==null?void 0:R.mode)||b})`]:{":root":C}};if(w)return e.defaultColorScheme===b?`:root, ${w.replace("%s",String(b))}`:w.replace("%s",String(b))}return":root"}return{vars:m,generateThemeVars:()=>{let b={...h};return Object.entries(v).forEach(([,{vars:C}])=>{b=ze(b,C)}),b},generateStyleSheets:()=>{var N,q;const b=[],C=e.defaultColorScheme||"light";function w(F,p){Object.keys(p).length&&b.push(typeof F=="string"?{[F]:{...p}}:F)}w(n(void 0,{...g}),g);const{[C]:L,...R}=v;if(L){const{css:F}=L,p=(q=(N=a[C])==null?void 0:N.palette)==null?void 0:q.mode,E=!r&&p?{colorScheme:p,...F}:{...F};w(n(C,{...E}),E)}return Object.entries(R).forEach(([F,{css:p}])=>{var B,V;const E=(V=(B=a[F])==null?void 0:B.palette)==null?void 0:V.mode,k=!r&&E?{colorScheme:E,...p}:{...p};w(n(F,{...k}),k)}),i&&b.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)"}}),b}}}function eu(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 sn={black:"#000",white:"#fff"},tu={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"},Ot={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},At={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Kt={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Lt={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Mt={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Rt={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function fi(){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:sn.white,default:sn.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 pi=fi();function mi(){return{text:{primary:sn.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:sn.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 Nr=mi();function Jo(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=Qn(e.main,o):t==="dark"&&(e.dark=Xn(e.main,i)))}function es(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 nu(e="light"){return e==="dark"?{main:Lt[200],light:Lt[50],dark:Lt[400]}:{main:Lt[700],light:Lt[400],dark:Lt[800]}}function ru(e="light"){return e==="dark"?{main:Ot[200],light:Ot[50],dark:Ot[400]}:{main:Ot[500],light:Ot[300],dark:Ot[700]}}function ou(e="light"){return e==="dark"?{main:At[500],light:At[300],dark:At[700]}:{main:At[700],light:At[400],dark:At[800]}}function su(e="light"){return e==="dark"?{main:Mt[400],light:Mt[300],dark:Mt[700]}:{main:Mt[700],light:Mt[500],dark:Mt[900]}}function iu(e="light"){return e==="dark"?{main:Rt[400],light:Rt[300],dark:Rt[700]}:{main:Rt[800],light:Rt[500],dark:Rt[900]}}function au(e="light"){return e==="dark"?{main:Kt[400],light:Kt[300],dark:Kt[700]}:{main:"#ed6c02",light:Kt[500],dark:Kt[900]}}function lu(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Ur(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...i}=e,a=e.primary||nu(t),l=e.secondary||ru(t),u=e.error||ou(t),d=e.info||su(t),h=e.success||iu(t),g=e.warning||au(t);function y(x){if(o)return lu(x);const S=Yo(x,Nr.text.primary)>=n?Nr.text.primary:pi.text.primary;if(process.env.NODE_ENV!=="production"){const T=Yo(x,S);T<3&&console.error([`MUI: The contrast ratio of ${T}:1 for ${S} 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 S}const m=({color:x,name:S,mainShade:T=500,lightShade:j=300,darkShade:b=700})=>{if(x={...x},!x.main&&x[T]&&(x.main=x[T]),!x.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${S?` (${S})`:""} provided to augmentColor(color) is invalid.
57
+ The color object needs to have a \`main\` property or a \`${T}\` property.`:St(11,S?` (${S})`:"",T));if(typeof x.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${S?` (${S})`:""} 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,21 +67,21 @@ const theme1 = createTheme({ palette: {
67
67
 
68
68
  const theme2 = createTheme({ palette: {
69
69
  primary: { main: green[500] },
70
- } });`:wt(12,S?` (${S})`:"",JSON.stringify(x.main)));return r?(Xo(r,x,"light",$,o),Xo(r,x,"dark",b,o)):(Yo(x,"light",$,o),Yo(x,"dark",b,o)),x.contrastText||(x.contrastText=y(x.main)),x};let v;return t==="light"?v=ai():t==="dark"&&(v=ci()),process.env.NODE_ENV!=="production"&&(v||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),ze({common:{...on},mode:t,primary:m({color:a,name:"primary"}),secondary:m({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:u,name:"error"}),warning:m({color:g,name:"warning"}),info:m({color:d,name:"info"}),success:m({color:h,name:"success"}),grey:Y2,contrastThreshold:n,getContrastText:y,augmentColor:m,tonalOffset:o,...v},i)}function ou(e){const t={};return Object.entries(e).forEach(o=>{const[r,i]=o;typeof i=="object"&&(t[r]=`${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 su(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function iu(e){return Math.round(e*1e5)/1e5}const Qo={textTransform:"uppercase"},Jo='"Roboto", "Helvetica", "Arial", sans-serif';function au(e,t){const{fontFamily:n=Jo,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:d,pxToRem:h,...g}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof o!="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=o/14,m=h||(x=>`${x/u*y}rem`),v=(x,S,k,$,b)=>({fontFamily:n,fontWeight:x,fontSize:m(S),lineHeight:k,...n===Jo?{letterSpacing:`${iu($/S)}em`}:{},...b,...d}),f={h1:v(r,96,1.167,-1.5),h2:v(r,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(a,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(a,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(a,14,1.75,.4,Qo),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,Qo),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ze({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...f},g,{clone:!1})}const lu=.2,cu=.14,uu=.12;function Ce(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${lu})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${cu})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${uu})`].join(",")}const du=["none",Ce(0,2,1,-1,0,1,1,0,0,1,3,0),Ce(0,3,1,-2,0,2,2,0,0,1,5,0),Ce(0,3,3,-2,0,3,4,0,0,1,8,0),Ce(0,2,4,-1,0,4,5,0,0,1,10,0),Ce(0,3,5,-1,0,5,8,0,0,1,14,0),Ce(0,3,5,-1,0,6,10,0,0,1,18,0),Ce(0,4,5,-2,0,7,10,1,0,2,16,1),Ce(0,5,5,-3,0,8,10,1,0,3,14,2),Ce(0,5,6,-3,0,9,12,1,0,3,16,2),Ce(0,6,6,-3,0,10,14,1,0,4,18,3),Ce(0,6,7,-4,0,11,15,1,0,4,20,3),Ce(0,7,8,-4,0,12,17,2,0,5,22,4),Ce(0,7,8,-4,0,13,19,2,0,5,24,4),Ce(0,7,9,-4,0,14,21,2,0,5,26,4),Ce(0,8,9,-5,0,15,22,2,0,6,28,5),Ce(0,8,10,-5,0,16,24,2,0,6,30,5),Ce(0,8,11,-5,0,17,26,2,0,6,32,5),Ce(0,9,11,-5,0,18,28,2,0,7,34,6),Ce(0,9,12,-6,0,19,29,2,0,7,36,6),Ce(0,10,13,-6,0,20,31,3,0,8,38,7),Ce(0,10,13,-6,0,21,33,3,0,8,40,7),Ce(0,10,14,-6,0,22,35,3,0,8,42,7),Ce(0,11,14,-7,0,23,36,3,0,9,44,8),Ce(0,11,15,-7,0,24,38,3,0,9,46,8)],fu={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)"},pu={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function es(e){return`${Math.round(e)}ms`}function mu(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function hu(e){const t={...fu,...e.easing},n={...pu,...e.duration};return{getAutoHeightDuration:mu,create:(r=["all"],i={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:u=0,...d}=i;if(process.env.NODE_ENV!=="production"){const h=y=>typeof y=="string",g=y=>!Number.isNaN(parseFloat(y));!h(r)&&!Array.isArray(r)&&console.error('MUI: Argument "props" must be a string or Array.'),!g(a)&&!h(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),h(l)||console.error('MUI: Argument "easing" must be a string.'),!g(u)&&!h(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(r)?r:[r]).map(h=>`${h} ${typeof a=="string"?a:es(a)} ${l} ${typeof u=="string"?u:es(u)}`).join(",")},...e,easing:t,duration:n}}const gu={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function yu(e){return ot(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function ui(e={}){const t={...e};function n(o){const r=Object.entries(o);for(let i=0;i<r.length;i++){const[a,l]=r[i];!yu(l)||a.startsWith("unstable_")?delete o[a]:ot(l)&&(o[a]={...l},n(o[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
70
+ } });`:St(12,S?` (${S})`:"",JSON.stringify(x.main)));return o?(es(o,x,"light",j,r),es(o,x,"dark",b,r)):(Jo(x,"light",j,r),Jo(x,"dark",b,r)),x.contrastText||(x.contrastText=y(x.main)),x};let v;return t==="light"?v=fi():t==="dark"&&(v=mi()),process.env.NODE_ENV!=="production"&&(v||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),ze({common:{...sn},mode:t,primary:m({color:a,name:"primary"}),secondary:m({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:u,name:"error"}),warning:m({color:g,name:"warning"}),info:m({color:d,name:"info"}),success:m({color:h,name:"success"}),grey:tu,contrastThreshold:n,getContrastText:y,augmentColor:m,tonalOffset:r,...v},i)}function cu(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 uu(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function du(e){return Math.round(e*1e5)/1e5}const ts={textTransform:"uppercase"},ns='"Roboto", "Helvetica", "Arial", sans-serif';function fu(e,t){const{fontFamily:n=ns,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:d,pxToRem:h,...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,m=h||(x=>`${x/u*y}rem`),v=(x,S,T,j,b)=>({fontFamily:n,fontWeight:x,fontSize:m(S),lineHeight:T,...n===ns?{letterSpacing:`${du(j/S)}em`}:{},...b,...d}),f={h1:v(o,96,1.167,-1.5),h2:v(o,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(a,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(a,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(a,14,1.75,.4,ts),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,ts),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ze({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...f},g,{clone:!1})}const pu=.2,mu=.14,hu=.12;function Ce(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${pu})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${mu})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${hu})`].join(",")}const gu=["none",Ce(0,2,1,-1,0,1,1,0,0,1,3,0),Ce(0,3,1,-2,0,2,2,0,0,1,5,0),Ce(0,3,3,-2,0,3,4,0,0,1,8,0),Ce(0,2,4,-1,0,4,5,0,0,1,10,0),Ce(0,3,5,-1,0,5,8,0,0,1,14,0),Ce(0,3,5,-1,0,6,10,0,0,1,18,0),Ce(0,4,5,-2,0,7,10,1,0,2,16,1),Ce(0,5,5,-3,0,8,10,1,0,3,14,2),Ce(0,5,6,-3,0,9,12,1,0,3,16,2),Ce(0,6,6,-3,0,10,14,1,0,4,18,3),Ce(0,6,7,-4,0,11,15,1,0,4,20,3),Ce(0,7,8,-4,0,12,17,2,0,5,22,4),Ce(0,7,8,-4,0,13,19,2,0,5,24,4),Ce(0,7,9,-4,0,14,21,2,0,5,26,4),Ce(0,8,9,-5,0,15,22,2,0,6,28,5),Ce(0,8,10,-5,0,16,24,2,0,6,30,5),Ce(0,8,11,-5,0,17,26,2,0,6,32,5),Ce(0,9,11,-5,0,18,28,2,0,7,34,6),Ce(0,9,12,-6,0,19,29,2,0,7,36,6),Ce(0,10,13,-6,0,20,31,3,0,8,38,7),Ce(0,10,13,-6,0,21,33,3,0,8,40,7),Ce(0,10,14,-6,0,22,35,3,0,8,42,7),Ce(0,11,14,-7,0,23,36,3,0,9,44,8),Ce(0,11,15,-7,0,24,38,3,0,9,46,8)],yu={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)"},bu={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function rs(e){return`${Math.round(e)}ms`}function vu(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Cu(e){const t={...yu,...e.easing},n={...bu,...e.duration};return{getAutoHeightDuration:vu,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:u=0,...d}=i;if(process.env.NODE_ENV!=="production"){const h=y=>typeof y=="string",g=y=>!Number.isNaN(parseFloat(y));!h(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!g(a)&&!h(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),h(l)||console.error('MUI: Argument "easing" must be a string.'),!g(u)&&!h(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(h=>`${h} ${typeof a=="string"?a:rs(a)} ${l} ${typeof u=="string"?u:rs(u)}`).join(",")},...e,easing:t,duration:n}}const xu={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function _u(e){return ot(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function hi(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;i<o.length;i++){const[a,l]=o[i];!_u(l)||a.startsWith("unstable_")?delete r[a]:ot(l)&&(r[a]={...l},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 ts(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const bu=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let o=0;o<t.length;o+=1)n+=+t[o];return n};function vu(e){Object.assign(e,{alpha(t,n){const o=this||e;return o.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:o.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:ii(t,bu(n))},lighten(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #fff ${ts(n)})`:Xn(t,n)},darken(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #000 ${ts(n)})`:Yn(t,n)}})}function $r(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,palette:i={},transitions:a={},typography:l={},shape:u,colorSpace:d,...h}=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.":wt(20));const g=qr({...i,colorSpace:d}),y=ei(e);let m=ze(y,{mixins:su(y.breakpoints,o),palette:g,shadows:du.slice(),typography:au(g,l),transitions:hu(a),zIndex:{...gu}});if(m=ze(m,h),m=t.reduce((v,f)=>ze(v,f),m),process.env.NODE_ENV!=="production"){const v=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(x,S)=>{let k;for(k in x){const $=x[k];if(v.includes(k)&&Object.keys($).length>0){if(process.env.NODE_ENV!=="production"){const b=Fr("",k);console.error([`MUI: The \`${S}\` component increases the CSS specificity of the \`${k}\` internal state.`,"You can not override it like this: ",JSON.stringify(x,null,2),"",`Instead, you need to use the '&.${b}' syntax:`,JSON.stringify({root:{[`&.${b}`]:$}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
79
- `))}x[k]={}}}};Object.keys(m.components).forEach(x=>{const S=m.components[x].styleOverrides;S&&x.startsWith("Mui")&&f(S,x)})}return m.unstable_sxConfig={...Hn,...h==null?void 0:h.unstable_sxConfig},m.unstable_sx=function(f){return Ft({sx:f,theme:this})},m.toRuntimeSource=ui,vu(m),m}function Cu(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 xu=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Cu(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function di(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function fi(e){return e==="dark"?xu:[]}function _u(e){const{palette:t={mode:"light"},opacity:n,overlays:o,colorSpace:r,...i}=e,a=qr({...t,colorSpace:r});return{palette:a,opacity:{...di(a.mode),...n},overlays:o||fi(a.mode),...i}}function wu(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 Su=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Tu=e=>(t,n)=>{const o=e.rootSelector||":root",r=e.colorSchemeSelector;let i=r;if(r==="class"&&(i=".%s"),r==="data"&&(i="[data-%s]"),r!=null&&r.startsWith("data-")&&!r.includes("%s")&&(i=`[${r}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return Su(e.cssVarPrefix).forEach(l=>{a[l]=n[l],delete n[l]}),i==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:a}}:i?{[i.replace("%s",t)]:a,[`${o}, ${i.replace("%s",t)}`]:n}:{[o]:{...n,...a}}}if(i&&i!=="media")return`${o}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(i)return i.replace("%s",String(t))}return o};function ku(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function j(e,t,n){!e[t]&&n&&(e[t]=n)}function en(e){return typeof e!="string"||!e.startsWith("hsl")?e:si(e)}function tt(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Jt(en(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 ju(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Xe=e=>{try{return e()}catch{}},Eu=(e="mui")=>U2(e);function yr(e,t,n,o,r){if(!n)return;n=n===!0?{}:n;const i=r==="dark"?"dark":"light";if(!o){t[r]=_u({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:a,...l}=$r({...o,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[r]={...n,palette:a,opacity:{...di(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||fi(i)},l}function $u(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=wu,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...h}=e,g=Object.keys(n)[0],y=o||(n.light&&g!=="light"?"light":g),m=Eu(i),{[y]:v,light:f,dark:x,...S}=n,k={...S};let $=v;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&($=!0),!$)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${y}\` option is either missing or invalid.`:wt(21,y));let b;a&&(b="oklch");const C=yr(b,k,$,h,y);f&&!k.light&&yr(b,k,f,void 0,"light"),x&&!k.dark&&yr(b,k,x,void 0,"dark");let w={defaultColorScheme:y,...C,cssVarPrefix:i,colorSchemeSelector:u,rootSelector:d,getCssVar:m,colorSchemes:k,font:{...ou(C.typography),...C.font},spacing:ju(h.spacing)};Object.keys(w.colorSchemes).forEach(F=>{const p=w.colorSchemes[F].palette,E=V=>{const B=V.split("-"),Y=B[1],W=B[2];return m(V,p[Y][W])};p.mode==="light"&&(j(p.common,"background","#fff"),j(p.common,"onBackground","#000")),p.mode==="dark"&&(j(p.common,"background","#000"),j(p.common,"onBackground","#fff"));function T(V,B,Y){if(b){let W;return V===bt&&(W=`transparent ${((1-Y)*100).toFixed(0)}%`),V===fe&&(W=`#000 ${(Y*100).toFixed(0)}%`),V===pe&&(W=`#fff ${(Y*100).toFixed(0)}%`),`color-mix(in ${b}, ${B}, ${W})`}return V(B,Y)}if(ku(p,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),p.mode==="light"){j(p.Alert,"errorColor",T(fe,a?m("palette-error-light"):p.error.light,.6)),j(p.Alert,"infoColor",T(fe,a?m("palette-info-light"):p.info.light,.6)),j(p.Alert,"successColor",T(fe,a?m("palette-success-light"):p.success.light,.6)),j(p.Alert,"warningColor",T(fe,a?m("palette-warning-light"):p.warning.light,.6)),j(p.Alert,"errorFilledBg",E("palette-error-main")),j(p.Alert,"infoFilledBg",E("palette-info-main")),j(p.Alert,"successFilledBg",E("palette-success-main")),j(p.Alert,"warningFilledBg",E("palette-warning-main")),j(p.Alert,"errorFilledColor",Xe(()=>p.getContrastText(p.error.main))),j(p.Alert,"infoFilledColor",Xe(()=>p.getContrastText(p.info.main))),j(p.Alert,"successFilledColor",Xe(()=>p.getContrastText(p.success.main))),j(p.Alert,"warningFilledColor",Xe(()=>p.getContrastText(p.warning.main))),j(p.Alert,"errorStandardBg",T(pe,a?m("palette-error-light"):p.error.light,.9)),j(p.Alert,"infoStandardBg",T(pe,a?m("palette-info-light"):p.info.light,.9)),j(p.Alert,"successStandardBg",T(pe,a?m("palette-success-light"):p.success.light,.9)),j(p.Alert,"warningStandardBg",T(pe,a?m("palette-warning-light"):p.warning.light,.9)),j(p.Alert,"errorIconColor",E("palette-error-main")),j(p.Alert,"infoIconColor",E("palette-info-main")),j(p.Alert,"successIconColor",E("palette-success-main")),j(p.Alert,"warningIconColor",E("palette-warning-main")),j(p.AppBar,"defaultBg",E("palette-grey-100")),j(p.Avatar,"defaultBg",E("palette-grey-400")),j(p.Button,"inheritContainedBg",E("palette-grey-300")),j(p.Button,"inheritContainedHoverBg",E("palette-grey-A100")),j(p.Chip,"defaultBorder",E("palette-grey-400")),j(p.Chip,"defaultAvatarColor",E("palette-grey-700")),j(p.Chip,"defaultIconColor",E("palette-grey-700")),j(p.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),j(p.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),j(p.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),j(p.LinearProgress,"primaryBg",T(pe,a?m("palette-primary-main"):p.primary.main,.62)),j(p.LinearProgress,"secondaryBg",T(pe,a?m("palette-secondary-main"):p.secondary.main,.62)),j(p.LinearProgress,"errorBg",T(pe,a?m("palette-error-main"):p.error.main,.62)),j(p.LinearProgress,"infoBg",T(pe,a?m("palette-info-main"):p.info.main,.62)),j(p.LinearProgress,"successBg",T(pe,a?m("palette-success-main"):p.success.main,.62)),j(p.LinearProgress,"warningBg",T(pe,a?m("palette-warning-light"):p.warning.main,.62)),j(p.Skeleton,"bg",b?T(bt,a?m("palette-text-primary"):p.text.primary,.11):`rgba(${E("palette-text-primaryChannel")} / 0.11)`),j(p.Slider,"primaryTrack",T(pe,a?m("palette-primary-main"):p.primary.main,.62)),j(p.Slider,"secondaryTrack",T(pe,a?m("palette-secondary-main"):p.secondary.main,.62)),j(p.Slider,"errorTrack",T(pe,a?m("palette-error-main"):p.error.main,.62)),j(p.Slider,"infoTrack",T(pe,a?m("palette-info-main"):p.info.main,.62)),j(p.Slider,"successTrack",T(pe,a?m("palette-success-main"):p.success.main,.62)),j(p.Slider,"warningTrack",T(pe,a?m("palette-warning-main"):p.warning.main,.62));const V=b?T(fe,a?m("palette-background-default"):p.background.default,.6825):Tn(p.background.default,.8);j(p.SnackbarContent,"bg",V),j(p.SnackbarContent,"color",Xe(()=>b?Er.text.primary:p.getContrastText(V))),j(p.SpeedDialAction,"fabHoverBg",Tn(p.background.paper,.15)),j(p.StepConnector,"border",E("palette-grey-400")),j(p.StepContent,"border",E("palette-grey-400")),j(p.Switch,"defaultColor",E("palette-common-white")),j(p.Switch,"defaultDisabledColor",E("palette-grey-100")),j(p.Switch,"primaryDisabledColor",T(pe,a?m("palette-primary-main"):p.primary.main,.62)),j(p.Switch,"secondaryDisabledColor",T(pe,a?m("palette-secondary-main"):p.secondary.main,.62)),j(p.Switch,"errorDisabledColor",T(pe,a?m("palette-error-main"):p.error.main,.62)),j(p.Switch,"infoDisabledColor",T(pe,a?m("palette-info-main"):p.info.main,.62)),j(p.Switch,"successDisabledColor",T(pe,a?m("palette-success-main"):p.success.main,.62)),j(p.Switch,"warningDisabledColor",T(pe,a?m("palette-warning-main"):p.warning.main,.62)),j(p.TableCell,"border",T(pe,bt(a?m("palette-divider"):p.divider,1),.88)),j(p.Tooltip,"bg",T(bt,a?m("palette-grey-700"):p.grey[700],.92))}if(p.mode==="dark"){j(p.Alert,"errorColor",T(pe,a?m("palette-error-light"):p.error.light,.6)),j(p.Alert,"infoColor",T(pe,a?m("palette-info-light"):p.info.light,.6)),j(p.Alert,"successColor",T(pe,a?m("palette-success-light"):p.success.light,.6)),j(p.Alert,"warningColor",T(pe,a?m("palette-warning-light"):p.warning.light,.6)),j(p.Alert,"errorFilledBg",E("palette-error-dark")),j(p.Alert,"infoFilledBg",E("palette-info-dark")),j(p.Alert,"successFilledBg",E("palette-success-dark")),j(p.Alert,"warningFilledBg",E("palette-warning-dark")),j(p.Alert,"errorFilledColor",Xe(()=>p.getContrastText(p.error.dark))),j(p.Alert,"infoFilledColor",Xe(()=>p.getContrastText(p.info.dark))),j(p.Alert,"successFilledColor",Xe(()=>p.getContrastText(p.success.dark))),j(p.Alert,"warningFilledColor",Xe(()=>p.getContrastText(p.warning.dark))),j(p.Alert,"errorStandardBg",T(fe,a?m("palette-error-light"):p.error.light,.9)),j(p.Alert,"infoStandardBg",T(fe,a?m("palette-info-light"):p.info.light,.9)),j(p.Alert,"successStandardBg",T(fe,a?m("palette-success-light"):p.success.light,.9)),j(p.Alert,"warningStandardBg",T(fe,a?m("palette-warning-light"):p.warning.light,.9)),j(p.Alert,"errorIconColor",E("palette-error-main")),j(p.Alert,"infoIconColor",E("palette-info-main")),j(p.Alert,"successIconColor",E("palette-success-main")),j(p.Alert,"warningIconColor",E("palette-warning-main")),j(p.AppBar,"defaultBg",E("palette-grey-900")),j(p.AppBar,"darkBg",E("palette-background-paper")),j(p.AppBar,"darkColor",E("palette-text-primary")),j(p.Avatar,"defaultBg",E("palette-grey-600")),j(p.Button,"inheritContainedBg",E("palette-grey-800")),j(p.Button,"inheritContainedHoverBg",E("palette-grey-700")),j(p.Chip,"defaultBorder",E("palette-grey-700")),j(p.Chip,"defaultAvatarColor",E("palette-grey-300")),j(p.Chip,"defaultIconColor",E("palette-grey-300")),j(p.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),j(p.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),j(p.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),j(p.LinearProgress,"primaryBg",T(fe,a?m("palette-primary-main"):p.primary.main,.5)),j(p.LinearProgress,"secondaryBg",T(fe,a?m("palette-secondary-main"):p.secondary.main,.5)),j(p.LinearProgress,"errorBg",T(fe,a?m("palette-error-main"):p.error.main,.5)),j(p.LinearProgress,"infoBg",T(fe,a?m("palette-info-main"):p.info.main,.5)),j(p.LinearProgress,"successBg",T(fe,a?m("palette-success-main"):p.success.main,.5)),j(p.LinearProgress,"warningBg",T(fe,a?m("palette-warning-main"):p.warning.main,.5)),j(p.Skeleton,"bg",b?T(bt,a?m("palette-text-primary"):p.text.primary,.13):`rgba(${E("palette-text-primaryChannel")} / 0.13)`),j(p.Slider,"primaryTrack",T(fe,a?m("palette-primary-main"):p.primary.main,.5)),j(p.Slider,"secondaryTrack",T(fe,a?m("palette-secondary-main"):p.secondary.main,.5)),j(p.Slider,"errorTrack",T(fe,a?m("palette-error-main"):p.error.main,.5)),j(p.Slider,"infoTrack",T(fe,a?m("palette-info-main"):p.info.main,.5)),j(p.Slider,"successTrack",T(fe,a?m("palette-success-main"):p.success.main,.5)),j(p.Slider,"warningTrack",T(fe,a?m("palette-warning-light"):p.warning.main,.5));const V=b?T(pe,a?m("palette-background-default"):p.background.default,.985):Tn(p.background.default,.98);j(p.SnackbarContent,"bg",V),j(p.SnackbarContent,"color",Xe(()=>b?li.text.primary:p.getContrastText(V))),j(p.SpeedDialAction,"fabHoverBg",Tn(p.background.paper,.15)),j(p.StepConnector,"border",E("palette-grey-600")),j(p.StepContent,"border",E("palette-grey-600")),j(p.Switch,"defaultColor",E("palette-grey-300")),j(p.Switch,"defaultDisabledColor",E("palette-grey-600")),j(p.Switch,"primaryDisabledColor",T(fe,a?m("palette-primary-main"):p.primary.main,.55)),j(p.Switch,"secondaryDisabledColor",T(fe,a?m("palette-secondary-main"):p.secondary.main,.55)),j(p.Switch,"errorDisabledColor",T(fe,a?m("palette-error-main"):p.error.main,.55)),j(p.Switch,"infoDisabledColor",T(fe,a?m("palette-info-main"):p.info.main,.55)),j(p.Switch,"successDisabledColor",T(fe,a?m("palette-success-main"):p.success.main,.55)),j(p.Switch,"warningDisabledColor",T(fe,a?m("palette-warning-light"):p.warning.main,.55)),j(p.TableCell,"border",T(fe,bt(a?m("palette-divider"):p.divider,1),.68)),j(p.Tooltip,"bg",T(bt,a?m("palette-grey-700"):p.grey[700],.92))}a||(tt(p.background,"default"),tt(p.background,"paper"),tt(p.common,"background"),tt(p.common,"onBackground"),tt(p,"divider")),Object.keys(p).forEach(V=>{const B=p[V];V!=="tonalOffset"&&!a&&B&&typeof B=="object"&&(B.main&&j(p[V],"mainChannel",Jt(en(B.main))),B.light&&j(p[V],"lightChannel",Jt(en(B.light))),B.dark&&j(p[V],"darkChannel",Jt(en(B.dark))),B.contrastText&&j(p[V],"contrastTextChannel",Jt(en(B.contrastText))),V==="text"&&(tt(p[V],"primary"),tt(p[V],"secondary")),V==="action"&&(B.active&&tt(p[V],"active"),B.selected&&tt(p[V],"selected")))})}),w=t.reduce((F,p)=>ze(F,p),w);const L={prefix:i,disableCssColorScheme:r,shouldSkipGeneratingVar:l,getSelector:Tu(w),enableContrastVars:a},{vars:R,generateThemeVars:N,generateStyleSheets:q}=H2(w,L);return w.vars=R,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([F,p])=>{w[F]=p}),w.generateThemeVars=N,w.generateStyleSheets=q,w.generateSpacing=function(){return Js(h.spacing,Vr(this))},w.getColorSchemeSelector=G2(u),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=l,w.unstable_sxConfig={...Hn,...h==null?void 0:h.unstable_sxConfig},w.unstable_sx=function(p){return Ft({sx:p,theme:this})},w.toRuntimeSource=ui,w}function ns(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:qr({...n===!0?{}:n.palette,mode:t})})}function Nu(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=e,l=i||"light",u=r==null?void 0:r[l],d={...r,...n?{[l]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return $r(e,...t);let h=n;"palette"in e||d[l]&&(d[l]!==!0?h=d[l].palette:l==="dark"&&(h={mode:"dark"}));const g=$r({...e,palette:h},...t);return g.defaultColorScheme=l,g.colorSchemes=d,g.palette.mode==="light"&&(g.colorSchemes.light={...d.light!==!0&&d.light,palette:g.palette},ns(g,"dark",d.dark)),g.palette.mode==="dark"&&(g.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:g.palette},ns(g,"light",d.light)),g}return!n&&!("light"in d)&&l==="light"&&(d.light=!0),$u({...a,colorSchemes:d,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const Ou=Nu(),Au="$$material";function Wr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Lu=e=>Wr(e)&&e!=="classes",kt=L2({themeId:Au,defaultTheme:Ou,rootShouldForwardProp:Lu}),qt=W2;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Mu(e){return q2(e)}const Ru=e=>!e||!nn(e);function Du(e){return typeof e.main=="string"}function Iu(e,t=[]){if(!Du(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Ur(e=[]){return([,t])=>t&&Iu(t,e)}function Pu(e){return Fr("MuiSlider",e)}const Ze=E2("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"]),Vu=e=>{const{open:t}=e;return{offset:dt(t&&Ze.valueLabelOpen),circle:Ze.valueLabelCircle,label:Ze.valueLabelLabel}};function pi(e){const{children:t,className:n,value:o}=e,r=Vu(e);return t?Q.cloneElement(t,{className:t.props.className},c.jsxs(Q.Fragment,{children:[t.props.children,c.jsx("span",{className:dt(r.offset,n),"aria-hidden":!0,children:c.jsx("span",{className:r.circle,children:c.jsx("span",{className:r.label,children:o})})})]})):null}process.env.NODE_ENV!=="production"&&(pi.propTypes={children:s.element.isRequired,className:s.string,value:s.node});function rs(e){return e}const Bu=kt("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]}})(qt(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Ze.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Ze.dragging}`]:{[`& .${Ze.thumb}, & .${Ze.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(Ur()).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}}]}))),Fu=kt("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}}]}),zu=kt("span",{name:"MuiSlider",slot:"Track"})(qt(({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(Ur()).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)})}}}))]}))),qu=kt("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)}`]]}})(qt(({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%)"},[`&.${Ze.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(Ur()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${Ze.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Ze.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),mi=kt(pi,{name:"MuiSlider",slot:"ValueLabel"})(qt(({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%"},[`&.${Ze.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%"},[`&.${Ze.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"&&(mi.propTypes={children:s.element.isRequired,index:s.number.isRequired,open:s.bool.isRequired,value:s.node});const Wu=kt("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Wr(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(qt(({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}}]}))),Uu=kt("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Wr(e)&&e!=="markLabelActive"})(qt(({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}}]}))),Zu=e=>{const{disabled:t,dragging:n,marked:o,orientation:r,track:i,classes:a,color:l,size:u}=e,d={root:["root",t&&"disabled",n&&"dragging",o&&"marked",r==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",l&&`color${Ge(l)}`,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)}`,l&&`thumbColor${Ge(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return n0(d,Pu,a)},Ku=({children:e})=>e,hi=Q.forwardRef(function(t,n){const o=Mu({props:t,name:"MuiSlider"}),r=o0(),{"aria-label":i,"aria-valuetext":a,"aria-labelledby":l,component:u="span",components:d={},componentsProps:h={},color:g="primary",classes:y,className:m,disableSwap:v=!1,disabled:f=!1,getAriaLabel:x,getAriaValueText:S,marks:k=!1,max:$=100,min:b=0,name:C,onChange:w,onChangeCommitted:L,orientation:R="horizontal",shiftStep:N=10,size:q="medium",step:F=1,scale:p=rs,slotProps:E,slots:T,tabIndex:V,track:B="normal",value:Y,valueLabelDisplay:W="off",valueLabelFormat:ae=rs,...M}=o,O={...o,isRtl:r,max:$,min:b,classes:y,disabled:f,disableSwap:v,orientation:R,marks:k,color:g,size:q,step:F,shiftStep:N,scale:p,track:B,valueLabelDisplay:W,valueLabelFormat:ae},{axisProps:J,getRootProps:H,getHiddenInputProps:I,getThumbProps:Z,open:te,active:G,axis:U,focusedThumbIndex:re,range:ee,dragging:le,marks:D,values:se,trackOffset:Le,trackLeap:Ye,getThumbStyle:z}=y0({...O,rootRef:n});O.marked=D.length>0&&D.some(Te=>Te.label),O.dragging=le,O.focusedThumbIndex=re;const ne=Zu(O),xe=(T==null?void 0:T.root)??d.Root??Bu,be=(T==null?void 0:T.rail)??d.Rail??Fu,$e=(T==null?void 0:T.track)??d.Track??zu,Pe=(T==null?void 0:T.thumb)??d.Thumb??qu,He=(T==null?void 0:T.valueLabel)??d.ValueLabel??mi,ve=(T==null?void 0:T.mark)??d.Mark??Wu,Ve=(T==null?void 0:T.markLabel)??d.MarkLabel??Uu,A=(T==null?void 0:T.input)??d.Input??"input",P=(E==null?void 0:E.root)??h.root,K=(E==null?void 0:E.rail)??h.rail,ie=(E==null?void 0:E.track)??h.track,ge=(E==null?void 0:E.thumb)??h.thumb,X=(E==null?void 0:E.valueLabel)??h.valueLabel,Ne=(E==null?void 0:E.mark)??h.mark,Me=(E==null?void 0:E.markLabel)??h.markLabel,je=(E==null?void 0:E.input)??h.input,qe=lt({elementType:xe,getSlotProps:H,externalSlotProps:P,externalForwardedProps:M,additionalProps:{...Ru(xe)&&{as:u}},ownerState:{...O,...P==null?void 0:P.ownerState},className:[ne.root,m]}),Ut=lt({elementType:be,externalSlotProps:K,ownerState:O,className:ne.rail}),Vi=lt({elementType:$e,externalSlotProps:ie,additionalProps:{style:{...J[U].offset(Le),...J[U].leap(Ye)}},ownerState:{...O,...ie==null?void 0:ie.ownerState},className:ne.track}),Qn=lt({elementType:Pe,getSlotProps:Z,externalSlotProps:ge,ownerState:{...O,...ge==null?void 0:ge.ownerState},className:ne.thumb}),Bi=lt({elementType:He,externalSlotProps:X,ownerState:{...O,...X==null?void 0:X.ownerState},className:ne.valueLabel}),Jn=lt({elementType:ve,externalSlotProps:Ne,ownerState:O,className:ne.mark}),er=lt({elementType:Ve,externalSlotProps:Me,ownerState:O,className:ne.markLabel}),Fi=lt({elementType:A,getSlotProps:I,externalSlotProps:je,ownerState:O});return c.jsxs(xe,{...qe,children:[c.jsx(be,{...Ut}),c.jsx($e,{...Vi}),D.filter(Te=>Te.value>=b&&Te.value<=$).map((Te,Ae)=>{const tr=Rn(Te.value,b,$),fn=J[U].offset(tr);let et;return B===!1?et=se.includes(Te.value):et=B==="normal"&&(ee?Te.value>=se[0]&&Te.value<=se[se.length-1]:Te.value<=se[0])||B==="inverted"&&(ee?Te.value<=se[0]||Te.value>=se[se.length-1]:Te.value>=se[0]),c.jsxs(Q.Fragment,{children:[c.jsx(ve,{"data-index":Ae,...Jn,...!nn(ve)&&{markActive:et},style:{...fn,...Jn.style},className:dt(Jn.className,et&&ne.markActive)}),Te.label!=null?c.jsx(Ve,{"aria-hidden":!0,"data-index":Ae,...er,...!nn(Ve)&&{markLabelActive:et},style:{...fn,...er.style},className:dt(ne.markLabel,er.className,et&&ne.markLabelActive),children:Te.label}):null]},Ae)}),se.map((Te,Ae)=>{const tr=Rn(Te,b,$),fn=J[U].offset(tr),et=W==="off"?Ku:He;return c.jsx(et,{...!nn(et)&&{valueLabelFormat:ae,valueLabelDisplay:W,value:typeof ae=="function"?ae(p(Te),Ae):ae,index:Ae,open:te===Ae||G===Ae||W==="on",disabled:f},...Bi,children:c.jsx(Pe,{"data-index":Ae,...Qn,className:dt(ne.thumb,Qn.className,G===Ae&&ne.active,re===Ae&&ne.focusVisible),style:{...fn,...z(Ae),...Qn.style},children:c.jsx(A,{"data-index":Ae,"aria-label":x?x(Ae):i,"aria-valuenow":p(Te),"aria-labelledby":l,"aria-valuetext":S?S(p(Te),Ae):a,value:se[Ae],...Fi})})},Ae)})]})});process.env.NODE_ENV!=="production"&&(hi.propTypes={"aria-label":Eo(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":Eo(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 Hu="_slider_1prh1_2",Gu="_playButton_1prh1_14",Yu="_sliderOpen_1prh1_25",Xu="_sliderResults_1prh1_29",Ht={slider:Hu,playButton:Gu,sliderOpen:Yu,sliderResults:Xu},gi=({onResults:e=!1,defaultYear:t=2025,firstYear:n=2025,lastYear:o=2050,marcas:r=null,zIndex:i=10,rightBarOpen:a=!1,conditionToBeRuning:l=null,onChange:u=d=>{console.log("year changed to ",d)}})=>{const h=r||((b,C)=>{const w=[];w.push({label:"",value:b});const L=Math.ceil(b/10)*10;for(let R=L;R<C;R+=10)w.push({label:"",value:R});return w[w.length-1].value!==C&&w.push({label:"",value:C}),w})(n,o),[g,y]=_.useState(t);_.useEffect(()=>{y(t)},[t]);const m=(b,C)=>{y(C),u(C)},[v,f]=_.useState(!1);_.useEffect(()=>{t&&console.log("defaultYear changed:",t),t&&y(t)},[t]),_.useEffect(()=>{l===!1&&f(!1)},[l]);const x=()=>{f(!0)},S=()=>{f(!1)};((b,C,w=[])=>{const L=_.useRef();_.useEffect(()=>{L.current=b},[b]),_.useEffect(()=>{function R(){L.current()}{let N=setInterval(R,C);return()=>clearInterval(N)}},[C,...w])})(()=>{v&&y(b=>{const C=b+1;return C>o?(u(n),n):(u(C),C)})},1e3,[n,o,v]);const $=Jr.createTheme({palette:{primary:{main:"#605b56"}},components:{MuiSlider:{styleOverrides:{mark:{height:10,backgroundColor:"#605b56"},valueLabel:{backgroundColor:"transparent",color:"#605b56",padding:0,top:3}}}}});return c.jsx(Ji.ThemeProvider,{theme:$,children:c.jsxs(Jr.Box,{sx:{width:400},className:`${e?Ht.sliderResults:Ht.slider} ${a?Ht.sliderOpen:""}`,style:{zIndex:i},children:[n,c.jsx(hi,{"aria-label":"TimeSlider",value:g,valueLabelDisplay:"on",step:1,marks:h,min:n,max:o,onChange:m,color:"primary",size:"small"}),o,!v&&c.jsx("button",{className:Ht.playButton,onClick:x,children:c.jsx("img",{src:e0,alt:"Play"})}),v&&c.jsx("button",{className:Ht.playButton,onClick:S,children:c.jsx("img",{src:t0,alt:"Pause"})})]})})};gi.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 Qu="_TopNavMenuContainer_12mp4_2",Ju="_topNavOptions_12mp4_13",e1="_active_12mp4_27",br={TopNavMenuContainer:Qu,topNavOptions:Ju,active:e1},yi=({options:e=[],containerStyles:t,borderColor:n="red",textColor:o="white",onChangeNavLink:r=i=>{console.log("Changed NavLink",i)}})=>{const{t:i}=oe.useTranslation();return c.jsx("div",{className:br.TopNavMenuContainer,style:{...t},children:e.map((a,l)=>c.jsx(ys.NavLink,{to:a.url,className:({isActive:u})=>`${br.topNavOptions} ${u?br.active:""} `,onClick:()=>r(a.url),style:({isActive:u})=>({color:o,borderBottom:u?`5px solid ${n}`:"5px solid transparent"}),children:i(a.name)},l))})};yi.propTypes={options:s.arrayOf(s.object),cssProps:s.shape({borderColor:s.string.isRequired,textColor:s.string.isRequired})};const t1="_LogInButton_1vxj5_2",n1={LogInButton:t1},bi=({cssClass:e,notLoggedInLabel:t="Log in",loggedInLabel:n="Log out",containerStyles:o,userName:r="",isLoggedIn:i=!1,onClickLogIn:a=()=>{console.log("Login clicked")},onClickLogOut:l=()=>{console.log("Logout clicked")}})=>{const{t:u}=oe.useTranslation();return c.jsx("div",{style:{...o},className:`${n1.LogInButton} link ${e}`,onClick:i?l:a,children:i?r||u(n):u(t)})};bi.propTypes={cssClass:s.string,notLoggedInLabel:s.string,loggedInLabel:s.string,containerStyles:s.object,userName:s.string,isLoggedIn:s.bool};const r1="_elementSelector_1ox68_2",o1="_header_1ox68_14",s1="_nameDateContainer_1ox68_24",i1="_elementName_1ox68_40",a1="_elementDate_1ox68_54",l1="_buttonsContainer_1ox68_68",c1="_elementListContainer_1ox68_77",u1="_newElementButtonContainer_1ox68_81",nt={elementSelector:r1,header:o1,nameDateContainer:s1,elementName:i1,elementDate:a1,buttonsContainer:l1,elementListContainer:c1,newElementButtonContainer:u1},d1="_listElement_s4s4h_3",f1="_elementNameDate_s4s4h_19",p1="_elementNameContainer_s4s4h_30",m1="_elementName_s4s4h_19",h1="_elementDate_s4s4h_47",g1="_nameAndEye_s4s4h_50",y1="_elementButtons_s4s4h_55",b1="_moreInfoContainer_s4s4h_78",v1="_moreInfo_s4s4h_78",We={listElement:d1,elementNameDate:f1,elementNameContainer:p1,elementName:m1,elementDate:h1,nameAndEye:g1,elementButtons:y1,break:"_break_s4s4h_73",moreInfoContainer:b1,moreInfo:v1},C1="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",x1="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",_1="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",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%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",S1="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",T1="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 os;function Nr(){return Nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Nr.apply(null,arguments)}var j1=function(t){return Q.createElement("svg",Nr({xmlns:"http://www.w3.org/2000/svg",width:26,height:14,fill:"none"},t),os||(os=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 E1="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",vi=({listelement:e,onClickElement:t,isActive:n,activeColor:o,fontColor:r,moreInfo:i,columns:a,elementButtons:l,processTooltip:u,defaultTooltip:d,showEye:h=!0})=>{const{name:g,created_at:y,id:m,isBeingProcessed:v}=e,[f,x]=_.useState(!1),{t:S}=oe.useTranslation();_.useEffect(()=>{console.log("elementButtons: ",l)},[l]);const k=l&&l.edit&&!e.is_default&&!e.is_baseline,$=l&&l.trash&&!e.is_default&&!e.is_baseline;return c.jsxs("div",{className:We.listElement,style:{borderBottom:`1px solid ${r}`},children:[c.jsx("div",{className:We.elementNameDate,onClick:()=>t(m),children:Object.keys(a).map((b,C)=>b==="name"?c.jsx("div",{className:We.elementNameContainer,children:c.jsxs("div",{className:`${We.elementName} ${h&&We.nameAndEye}`,children:[h&&(n?c.jsx(j1,{style:{color:o,marginRight:9}}):c.jsx("img",{style:{marginRight:9},src:E1,alt:"eye"})),c.jsx("span",{style:{color:n?o:r},children:g})]})},`col${C}`):b=="data"?c.jsx("div",{className:We.elementDate,children:y?new Date(y).toLocaleDateString():""},`col${C}data`):c.jsx("div",{className:We.elementDate,children:e[b]},`col${C}other`))}),c.jsxs("div",{className:We.elementButtons,children:[e.processing&&c.jsxs("div",{className:"tooltip-parent",children:[c.jsx("img",{src:w1}),c.jsx(Je,{text:u,position:"left"})]}),l.filter&&!e.is_default&&c.jsxs("div",{className:"tooltip-parent",children:[c.jsx("button",{onClick:()=>l.filter.onclick(e),disabled:l.filter.disabled||!1,children:c.jsx("img",{src:_1})}),c.jsx(Je,{text:l.filter.tooltiptext,position:"left"})]}),l.copy&&!e.is_default&&c.jsxs("div",{className:"tooltip-parent",children:[c.jsx("button",{onClick:()=>l.copy.onclick(e),disabled:l.copy.disabled||!1,children:c.jsx("img",{src:x1})}),c.jsx(Je,{text:l.copy.tooltiptext,position:"left"})]}),k&&c.jsxs("div",{className:"tooltip-parent",children:[c.jsx("button",{onClick:()=>l.edit.onclick(e),disabled:l.edit.disabled||!1,children:c.jsx("img",{src:T1})}),c.jsx(Je,{text:l.edit.tooltiptext,position:"left"})]}),l.info&&e.is_default&&c.jsxs("div",{className:"tooltip-parent",children:[c.jsx("button",{onClick:()=>l.info.onclick(e),disabled:l.info.disabled||!1,children:c.jsx("img",{src:k1})}),c.jsx(Je,{text:l.info.tooltiptext,position:"left"})]}),$&&c.jsxs("div",{className:"tooltip-parent",children:[c.jsx("button",{onClick:()=>l.trash.onclick(e),disabled:l.trash.disabled||!1,children:c.jsx("img",{src:C1})}),c.jsx(Je,{text:l.trash.tooltiptext,position:"left"})]}),e.is_default&&c.jsxs("div",{className:"tooltip-parent",children:[c.jsx("img",{src:S1}),c.jsx(Je,{text:d,position:"left"})]})]}),i&&c.jsx("div",{className:We.break}),i&&c.jsxs("div",{className:We.moreInfoContainer,children:[c.jsxs("div",{className:We.moreInfo,onClick:()=>x(!f),children:[c.jsx("span",{children:f?"-":"+"}),S(i.label)]}),i&&f&&c.jsx("div",{className:We.moreInfoInfo,children:e[i.info]})]})]})};vi.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 ss="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",Ci=({elementsList:e,activeElementId:t,fontColor:n="#605B56",activeColor:o,buttonContainerStyles:r={},containerStyles:i={},newElementButton:a,onClickElement:l=v=>console.log(`OnCLickElement: ${v}`),columns:u,elementButtons:d,moreInfo:h=!1,processTooltip:g,defaultTooltip:y,showEye:m=!0})=>{const{t:v}=oe.useTranslation(),[f,x]=_.useState(e);_.useEffect(()=>{e&&x(e)},[e]);const S=b=>{if(typeof b!="string")return null;if(/^\d{4}[-/]\d{2}[-/]\d{2}$/.test(b))return new Date(b);const C=/^(\d{2})[-/.]\s*(\d{2})[-/.]\s*(\d{4})$/.exec(b);if(C)return new Date(`${C[3]}-${C[2]}-${C[1]}`);const w=/^(\d{2})[-/]\s*(\d{2})[-/]\s*(\d{4})$/.exec(b);return w?parseInt(w[1])>12?new Date(`${w[3]}-${w[2]}-${w[1]}`):new Date(`${w[3]}-${w[1]}-${w[2]}`):null},k=b=>S(b)!==null,$=b=>{if(!f||f.length===0)return;let C=[...f];const w=C.find(R=>R[b]!==null&&R[b]!==void 0),L=w?k(w[b]):!1;C.sort((R,N)=>{const q=R[b],F=N[b];if(q==null&&F==null)return 0;if(q==null)return 1;if(F==null)return-1;if(L){const T=S(q),V=S(F);return!T&&!V?0:T?V?T-V:-1:1}const p=String(q||"").trim(),E=String(F||"").trim();return p.localeCompare(E)}),x(C)};return c.jsxs("div",{className:nt.elementSelector,style:{color:n,...i},children:[c.jsxs("div",{className:nt.header,style:{borderBottom:`1px solid ${n}`},children:[c.jsx("div",{className:nt.nameDateContainer,children:Object.keys(u).map(b=>b==="name"?c.jsx("div",{className:nt.elementName,children:c.jsxs("button",{onClick:()=>$("name"),children:[c.jsx("span",{children:v(u.name)}),c.jsx("img",{src:ss,alt:"order arrow"})]})},b):b==="data"?c.jsx("div",{className:nt.elementDate,children:c.jsxs("button",{onClick:()=>$("created_at"),children:[c.jsx("span",{children:v(u.data)}),c.jsx("img",{src:ss,alt:"order arrow"})]})},b):c.jsx("div",{className:nt.elementDate,children:c.jsx("span",{children:v(u[b])})},b))}),c.jsx("div",{className:nt.buttonsContainer})]}),c.jsx("div",{className:nt.elementListContainer,children:f&&f.length>0&&f.map(b=>c.jsx(vi,{isActive:t==b.id,listelement:b,fontColor:n,activeColor:o,onClickElement:l,columns:u,elementButtons:d,moreInfo:h,processTooltip:g,defaultTooltip:y,showEye:m},`elementKey${b.id}`))}),a&&c.jsx("div",{className:nt.newElementButtonContainer,children:c.jsx(sn,{style:{...r},onClick:a.onClick,borderColor:"grey",disabled:a.disabled||!1,children:v(a.label)})})]})};Ci.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 $1="_formContainer_asv64_2",N1="_categorySelectorContainer_asv64_11",O1="_formObjectContainer_asv64_15",A1="_buttonContainer_asv64_26",Gt={formContainer:$1,categorySelectorContainer:N1,formObjectContainer:O1,buttonContainer:A1},Rt={text:"text",password:"password",radioList:"radioList",select:"select",textDescription:"textDescription",rankingSlider:"rankingSlider"};var L1=e=>e.type==="checkbox",tn=e=>e instanceof Date,Zr=e=>e==null;const xi=e=>typeof e=="object";var St=e=>!Zr(e)&&!Array.isArray(e)&&xi(e)&&!tn(e),M1=e=>St(e)&&e.target?L1(e.target)?e.target.checked:e.target.value:e,R1=(e,t)=>t.split(".").some((n,o,r)=>!isNaN(Number(n))&&e.has(r.slice(0,o).join("."))),D1=e=>{const t=e.constructor&&e.constructor.prototype;return St(t)&&t.hasOwnProperty("isPrototypeOf")},I1=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function _i(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(I1&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(St(e)&&D1(e)))return e;const o=n?[]:Object.create(Object.getPrototypeOf(e));for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=_i(e[r]));return o}var wi=e=>/^\w*$/.test(e),Or=e=>e===void 0,P1=e=>Array.isArray(e)?e.filter(Boolean):[],Si=e=>P1(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ie=(e,t,n)=>{if(!t||!St(e))return n;const o=(wi(t)?[t]:Si(t)).reduce((r,i)=>Zr(r)?r:r[i],e);return Or(o)||o===e?Or(e[t])?n:e[t]:o},vr=e=>typeof e=="boolean",kn=e=>typeof e=="function",is=(e,t,n)=>{let o=-1;const r=wi(t)?[t]:Si(t),i=r.length,a=i-1;for(;++o<i;){const l=r[o];let u=n;if(o!==a){const d=e[l];u=St(d)||Array.isArray(d)?d:isNaN(+r[o+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=u,e=e[l]}};const as={BLUR:"blur",CHANGE:"change"},ls={all:"all"},Ti=_.createContext(null);Ti.displayName="HookFormControlContext";const Kr=()=>_.useContext(Ti);var V1=(e,t,n,o=!0)=>{const r={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(r,i,{get:()=>{const a=i;return t._proxyFormState[a]!==ls.all&&(t._proxyFormState[a]=!o||ls.all),n&&(n[a]=!0),e[a]}});return r};const ki=typeof window<"u"?_.useLayoutEffect:_.useEffect;function B1(e){const t=Kr(),{control:n=t,disabled:o,name:r,exact:i}=e||{},[a,l]=_.useState(n._formState),u=_.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return ki(()=>n._subscribe({name:r,formState:u.current,exact:i,callback:d=>{!o&&l({...n._formState,...d})}}),[r,o,i]),_.useEffect(()=>{u.current.isValid&&n._setValid(!0)},[n]),_.useMemo(()=>V1(a,n,u.current,!1),[a,n])}var F1=e=>typeof e=="string",cs=(e,t,n,o,r)=>F1(e)?Ie(n,e,r):Array.isArray(e)?e.map(i=>Ie(n,i)):n,us=e=>Zr(e)||!xi(e);function Ln(e,t,n=new WeakSet){if(us(e)||us(t))return Object.is(e,t);if(tn(e)&&tn(t))return Object.is(e.getTime(),t.getTime());const o=Object.keys(e),r=Object.keys(t);if(o.length!==r.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const i of o){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const l=t[i];if(tn(a)&&tn(l)||(St(a)||Array.isArray(a))&&(St(l)||Array.isArray(l))?!Ln(a,l,n):!Object.is(a,l))return!1}}return!0}function z1(e){const t=Kr(),{control:n=t,name:o,defaultValue:r,disabled:i,exact:a,compute:l}=e||{},u=_.useRef(r),d=_.useRef(l),h=_.useRef(void 0),g=_.useRef(n),y=_.useRef(o);d.current=l;const[m,v]=_.useState(()=>{const b=n._getWatch(o,u.current);return d.current?d.current(b):b}),f=_.useCallback(b=>{const C=cs(o,n._names,b||n._formValues,!1,u.current);return d.current?d.current(C):C},[n._formValues,n._names,o]),x=_.useCallback(b=>{if(!i){const C=cs(o,n._names,b||n._formValues,!1,u.current);if(d.current){const w=d.current(C);Ln(w,h.current)||(v(w),h.current=w)}else v(C)}},[n._formValues,n._names,i,o]);ki(()=>((g.current!==n||!Ln(y.current,o))&&(g.current=n,y.current=o,x()),n._subscribe({name:o,formState:{values:!0},exact:a,callback:b=>{x(b.values)}})),[n,a,o,x]),_.useEffect(()=>n._removeUnmounted());const S=g.current!==n,k=y.current,$=_.useMemo(()=>{if(i)return null;const b=!S&&!Ln(k,o);return S||b?f():null},[i,S,o,k,f]);return $!==null?$:m}function q1(e){const t=Kr(),{name:n,disabled:o,control:r=t,shouldUnregister:i,defaultValue:a,exact:l=!0}=e,u=R1(r._names.array,n),d=_.useMemo(()=>Ie(r._formValues,n,Ie(r._defaultValues,n,a)),[r,n,a]),h=z1({control:r,name:n,defaultValue:d,exact:l}),g=B1({control:r,name:n,exact:l}),y=_.useRef(e),m=_.useRef(void 0),v=_.useRef(r.register(n,{...e.rules,value:h,...vr(e.disabled)?{disabled:e.disabled}:{}}));y.current=e;const f=_.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ie(g.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ie(g.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ie(g.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ie(g.validatingFields,n)},error:{enumerable:!0,get:()=>Ie(g.errors,n)}}),[g,n]),x=_.useCallback(b=>v.current.onChange({target:{value:M1(b),name:n},type:as.CHANGE}),[n]),S=_.useCallback(()=>v.current.onBlur({target:{value:Ie(r._formValues,n),name:n},type:as.BLUR}),[n,r._formValues]),k=_.useCallback(b=>{const C=Ie(r._fields,n);C&&C._f&&b&&(C._f.ref={focus:()=>kn(b.focus)&&b.focus(),select:()=>kn(b.select)&&b.select(),setCustomValidity:w=>kn(b.setCustomValidity)&&b.setCustomValidity(w),reportValidity:()=>kn(b.reportValidity)&&b.reportValidity()})},[r._fields,n]),$=_.useMemo(()=>({name:n,value:h,...vr(o)||g.disabled?{disabled:g.disabled||o}:{},onChange:x,onBlur:S,ref:k}),[n,o,g.disabled,x,S,k,h]);return _.useEffect(()=>{const b=r._options.shouldUnregister||i,C=m.current;C&&C!==n&&!u&&r.unregister(C),r.register(n,{...y.current.rules,...vr(y.current.disabled)?{disabled:y.current.disabled}:{}});const w=(L,R)=>{const N=Ie(r._fields,L);N&&N._f&&(N._f.mount=R)};if(w(n,!0),b){const L=_i(Ie(r._options.defaultValues,n,y.current.defaultValue));is(r._defaultValues,n,L),Or(Ie(r._formValues,n))&&is(r._formValues,n,L)}return!u&&r.register(n),m.current=n,()=>{(u?b&&!r._state.action:b)?r.unregister(n):w(n,!1)}},[n,r,u,i]),_.useEffect(()=>{r._setDisabledField({disabled:o,name:n})},[o,n,r]),_.useMemo(()=>({field:$,formState:g,fieldState:f}),[$,g,f])}const un=e=>e.render(q1(e)),W1=_.createContext(null);W1.displayName="HookFormContext";const U1="_textInputContainer_1o3iy_2",Z1="_labelContainer_1o3iy_5",K1="_inputContainer_1o3iy_8",H1="_showPasswordButton_1o3iy_14",G1="_forgotPassButton_1o3iy_26",Yt={textInputContainer:U1,labelContainer:Z1,inputContainer:K1,showPasswordButton:H1,forgotPassButton:G1},Y1="_errorMessage_1xiyb_2",X1={errorMessage:Y1},Wt=({errorMessage:e,errorColor:t="red",containerStyles:n})=>{const{t:o}=oe.useTranslation();return c.jsx("div",{className:X1.errorMessage,style:{color:t,...n},children:e?o(e):""})},Q1="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",J1="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",dn=hs.create(e=>({errorColor:"red"})),Ar=({input:e,reactHookFormInstance:t})=>{const{code:n,type:o,label:r,maxLength:i,required:a,validateFunction:l,placeholder:u,errorColor:d="red",width:h=325,onClickForgotPass:g=()=>{console.log("Click on forgot password")},forgotPassLabel:y="forgot-password",onChangeExtraFunction:m=()=>{}}=e,{t:v}=oe.useTranslation(),{control:f,trigger:x,clearErrors:S}=t,{errorColor:k}=dn(w=>w),[$,b]=_.useState(!1);_.useRef(a);const C=()=>o?o==="password"&&$?"text":o:"text";return c.jsx(un,{name:n,control:f,rules:{required:a?`${v(r)} ${v("errorMessages.required")}`:!1,maxLength:i||void 0,validate:l||void 0},render:({field:w,fieldState:L})=>{var F;const{onChange:R,...N}=w,q=p=>{R(p),m&&m(p)};return c.jsxs("div",{className:Yt.textInputContainer,children:[c.jsxs("h3",{className:Yt.labelContainer,children:[v(r)," ",a&&c.jsx("label",{style:{color:L.error?d:""},children:"*"})]}),c.jsxs("div",{style:{position:"relative",width:h},className:Yt.inputContainer,children:[c.jsx("input",{...N,type:C(),onChange:q,placeholder:u?v(u):"",maxLength:i||void 0}),o=="password"&&c.jsx("button",{onClick:()=>b(!$),type:"button",className:Yt.showPasswordButton,children:c.jsx("img",{src:$?J1:Q1,alt:v("show-password")})})]}),o=="password"&&c.jsx("div",{className:Yt.forgotPassButton,children:c.jsx("button",{onClick:g,children:v(y)})}),c.jsx(Wt,{errorMessage:(F=L.error)==null?void 0:F.message,errorColor:k||d})]})}})},ed="_inputsContainer_10t9s_2",Dt={inputsContainer:ed},td="_selectInputContainer_zzz6o_2",nd="_labelContainer_zzz6o_6",rd="_selectWrapper_zzz6o_9",od="_inputContainer_zzz6o_15",sd="_selectInput_zzz6o_2",id="_option_zzz6o_29",ad="_dropdownArrow_zzz6o_32",Re={selectInputContainer:td,labelContainer:nd,selectWrapper:rd,inputContainer:od,selectInput:sd,option:id,dropdownArrow:ad},ds="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",ji=({input:e,reactHookFormInstance:t,onChange:n})=>{const{code:o,type:r,label:i,maxLength:a,required:l,validateFunction:u,placeholder:d,errorColor:h="red",width:g=325,options:y=[]}=e,{t:m}=oe.useTranslation(),{control:v,trigger:f,clearErrors:x}=t||{},{errorColor:S}=dn(b=>b);_.useRef(l);const[k,$]=_.useState(null);return _.useEffect(()=>{k&&n&&n(k)},[k,n]),t?c.jsx(un,{name:o,control:v,rules:{required:l?`${m(i)} ${m("errorMessages.required")}`:!1,validate:u?b=>{let C=t.getValues();return u(b,C)}:void 0},render:({field:b,fieldState:C})=>{var L;const w=y.find(R=>R.value===b.value);return c.jsxs("div",{className:Re.selectInputContainer,children:[i&&c.jsxs("h3",{className:Re.labelContainer,children:[m(i)," ",l&&c.jsx("label",{style:{color:C.error?h:""},children:"*"})]}),c.jsxs("div",{className:Re.selectWrapper,children:[c.jsxs("div",{className:Re.inputContainer,style:{width:g},children:[c.jsxs("select",{...b,value:b.value??"",onChange:R=>{const N=R.target.value,q=y.every(F=>typeof F.value=="number")?Number(N):N;b.onChange(q)},className:Re.selectInput,children:[c.jsx("option",{value:"",disabled:!0,hidden:!0,children:m(d||"selectOption")}),y.map((R,N)=>c.jsx("option",{value:R.value,className:Re.option,children:m(R.label)},N))]}),c.jsx("img",{src:ds,alt:"Open",className:Re.dropdownArrow})]}),w&&w.description&&c.jsx("div",{className:Re.optionDescription,children:m(w.description)})]}),c.jsx(Wt,{errorMessage:(L=C.error)==null?void 0:L.message,errorColor:S||h})]})}}):c.jsxs("div",{className:Re.selectInputContainer,children:[i&&c.jsxs("h3",{className:Re.labelContainer,children:[m(i)," ",l&&c.jsx("label",{children:"*"})]}),c.jsxs("div",{className:Re.inputContainer,style:{width:g},children:[c.jsxs("select",{value:k??"",onChange:b=>{const C=b.target.value,w=y.every(L=>typeof L.value=="number")?Number(C):C;$(w)},className:Re.selectInput,children:[c.jsx("option",{value:"",disabled:!0,hidden:!0,children:m(d||"selectOption")}),y.map((b,C)=>c.jsx("option",{value:b.value,className:Re.option,children:m(b.label)},C))]}),c.jsx("img",{src:ds,alt:"Open",className:Re.dropdownArrow})]}),(()=>{const b=y.find(C=>C.value===k);return b&&b.description?c.jsx("div",{className:Re.optionDescription,children:m(b.description)}):null})()]})},ld="_radioButtonContainer_1e994_2",cd="_wholeInputContainer_1e994_5",ud="_questionContainer_1e994_27",dd="_radioQuestion_1e994_59",fd="_inputContainer_1e994_63",pd="_radioInput_1e994_93",vt={radioButtonContainer:ld,wholeInputContainer:cd,questionContainer:ud,radioQuestion:dd,inputContainer:fd,radioInput:pd},Ei=({input:e,reactHookFormInstance:t})=>{const{code:n,label:o,required:r,validateFunction:i,errorColor:a="red",options:l=[],multi:u=!1}=e,{t:d}=oe.useTranslation(),{control:h,trigger:g,clearErrors:y}=t,{errorColor:m}=dn(x=>x),v=({options:x,onChange:S,actualValue:k})=>{if(u&&k&&k.length>0){let $=k.filter(b=>b!==x);S($)}},f=({options:x,onChange:S,actualValue:k})=>{u?k&&k.length>0?S([...k,x]):S([x]):S(x)};return _.useRef(r),c.jsx(un,{control:h,name:n,rules:{validate:x=>r&&(x==null||x==="")?`${d(o)} ${d("errorMessages.required")}`:null},render:({formState:{errors:x},field:{onChange:S,onBlur:k,value:$,ref:b},fieldState:C})=>{var w;return c.jsx("div",{id:n+"id",className:vt.radioButtonContainer,children:c.jsxs("div",{className:vt.wholeInputContainer,children:[o&&c.jsx("div",{className:vt.questionContainer,children:c.jsxs("h3",{htmlFor:n+"id",className:`${vt.radioQuestion} ${r&&vt.required}`,children:[d(o)," ",r&&c.jsx("label",{style:{color:C.error?a:""},children:"*"})]})}),c.jsxs("div",{className:vt.inputContainer,children:[l.map(({label:L,value:R,disabled:N=!1,italicLabel:q},F)=>{const p=$&&u?$.isArray&&($==null?void 0:$.length)>0&&$.some(E=>E===R):$===R;return c.jsxs("label",{children:[c.jsx("input",{type:"radio",checked:p,onChange:()=>{u?p?v({actualValue:$,options:l,onChange:S}):f({actualValue:$,options:l,onChange:S}):S(R)},className:vt.radioInput}),c.jsx("span",{className:"radio-custom"}),d(L)]},`inputRadio ${F}`)}),c.jsx(Wt,{errorMessage:(w=C.error)==null?void 0:w.message,errorColor:m||a})]})]})})}})},md="_rankingSliderContainer_1dvpb_2",hd="_labelContainer_1dvpb_6",gd="_inputContainer_1dvpb_10",yd="_slider_1dvpb_20",bd="_thumb_1dvpb_27",vd="_labels_1dvpb_37",Cd="_minLabel_1dvpb_67",xd="_maxLabel_1dvpb_68",ke={rankingSliderContainer:md,labelContainer:hd,inputContainer:gd,slider:yd,thumb:bd,labels:vd,minLabel:Cd,maxLabel:xd},Hr=({input:e,reactHookFormInstance:t,onChange:n})=>{const{code:o,label:r,minValue:i=1,maxValue:a=5,defValue:l=3,thumbColor:u="#B32F5D",required:d,errorColor:h="red",labelWidth:g="300px",sliderWidth:y="300px",minText:m,maxText:v,disabled:f=!1,marks:x=Array.from({length:a-i+1},(N,q)=>i+q),showMarksNumber:S=!0}=e,{t:k}=oe.useTranslation(),{control:$,trigger:b,clearErrors:C}=t||{};_.useRef(d);const{errorColorForm:w}=dn(N=>N),[L,R]=_.useState(l);return t?c.jsx(un,{name:o,control:$,defaultValue:l,rules:{required:d?`${k(r)} ${k("errorMessages.required")}`:!1},render:({field:N,fieldState:q})=>{var F;return c.jsxs("div",{className:ke.rankingSliderContainer,style:{gridTemplateColumns:`${r&&g} ${y}`},children:[r&&c.jsx("p",{className:ke.labelContainer,style:{color:f?"#CCCCCC":"#605B56"},children:k(r)}),c.jsxs("div",{className:ke.inputContainer,children:[m&&c.jsx("div",{className:ke.minLabel,children:k(m)}),c.jsxs("div",{children:[c.jsx(Sr,{min:i,max:a,step:1,value:N.value??l,onChange:p=>{N.onChange(p)},marks:!0,className:ke.slider,thumbClassName:ke.thumb,renderThumb:p=>c.jsx("div",{...p,style:{...p.style,backgroundColor:f?"#CCCCCC":u,cursor:f?"not-allowed":"grab"}}),trackClassName:ke.track,markClassName:ke.mark,disabled:f}),x&&c.jsx("div",{className:ke.labels,children:x.map(p=>c.jsx("span",{children:S&&p},p))})]}),v&&c.jsx("div",{className:ke.maxLabel,children:k(v)})]}),c.jsx(Wt,{errorMessage:(F=q.error)==null?void 0:F.message,errorColor:w||h})]})}}):c.jsxs("div",{className:ke.rankingSliderContainer,style:{gridTemplateColumns:`${r&&g} ${y}`},children:[r&&c.jsx("p",{className:ke.labelContainer,style:{color:f?"#CCCCCC":"#605B56"},children:k(r)}),c.jsxs("div",{className:ke.inputContainer,children:[m&&c.jsx("div",{className:ke.minLabel,children:k(m)}),c.jsxs("div",{children:[c.jsx(Sr,{min:i,max:a,step:1,value:L,onChange:N=>{R(N),n&&n(N)},marks:!0,className:ke.slider,thumbClassName:ke.thumb,renderThumb:N=>c.jsx("div",{...N,style:{...N.style,backgroundColor:f?"#CCCCCC":u,cursor:f?"not-allowed":"grab"}}),trackClassName:ke.track,markClassName:ke.mark,disabled:f}),x&&c.jsx("div",{className:ke.labels,children:x.map(N=>c.jsx("span",{children:S&&N},N))})]}),v&&c.jsx("div",{className:ke.maxLabel,children:k(v)})]})]})};Hr.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 _d="_textDescriptionContainer_163pc_2",wd="_textDescriptionText_163pc_6",fs={textDescriptionContainer:_d,textDescriptionText:wd},Sd=({input:e,inputContainerStyles:t})=>c.jsx("div",{className:fs.textDescriptionContainer,style:{margin:"10px 0",...t},children:c.jsx("p",{className:fs.textDescriptionText,children:e.text})}),Xt=({inputs:e,inputContainerStyles:t,reactHookFormInstance:n})=>{const{watch:o}=n,r=o(),i=_.useMemo(()=>e==null?void 0:e.map(a=>{const l=typeof a.required=="function"?a.required(r):a.required;return{...a,required:l}}),[e,r]);return c.jsx("div",{className:Dt.inputsContainer,children:i==null?void 0:i.map((a,l)=>{const{inputType:u}=a;switch(u){case Rt.text:return c.jsx("div",{className:Dt.inputContainer,style:{...t},children:c.jsx(Ar,{input:a,reactHookFormInstance:n})},`${a.code}${l}`);case Rt.password:return c.jsx("div",{className:Dt.inputContainer,style:{...t},children:c.jsx(Ar,{input:a,reactHookFormInstance:n})},`${a.code}${l}`);case Rt.select:return c.jsx("div",{className:Dt.inputContainer,style:{...t},children:c.jsx(ji,{input:a,reactHookFormInstance:n})},`${a.code}${l}`);case Rt.radioList:return c.jsx("div",{className:Dt.inputContainer,style:{...t},children:c.jsx(Ei,{input:a,reactHookFormInstance:n})},`${a.code}${l}`);case Rt.rankingSlider:return c.jsx("div",{className:Dt.inputContainer,style:{...t},children:c.jsx(Hr,{input:a,reactHookFormInstance:n})},`${a.code}${l}`);case Rt.textDescription:return c.jsx(Sd,{input:a,inputContainerStyles:t},`${a.code}${l}`);default:return c.jsx("div",{children:c.jsx("h4",{children:"Default"})},`${a.code}${l}`)}})})},Td="_categorySelector_1guuv_2",kd="_sectionItemActive_1guuv_16",jd="_sectionItem_1guuv_16",Ed="_sectionItemError_1guuv_32",Qt={categorySelector:Td,sectionItemActive:kd,sectionItem:jd,sectionItemError:Ed},Lr=({categories:e,onChange:t,activeCategory:n,activeColor:o,containerStyles:r={},categoriesWithErrors:i=[]})=>{const{t:a}=oe.useTranslation(),l=u=>{t(u)};return c.jsx("div",{className:Qt.categorySelector,style:r?{...r}:{},children:e.map((u,d)=>{const{id:h,label:g}=u,y=n==h,m=i.includes(h);return c.jsx("button",{className:`${Qt.sectionItem} ${y?Qt.sectionItemActive:""} ${m?Qt.sectionItemError:""}`,type:"button",style:{backgroundColor:y?o:"inherit"},onClick:()=>l(h),children:c.jsx("span",{style:{color:y?"white":"inherit"},className:Qt.sectionLabel,children:a(g)})},`keySection${d}`)})})},$d=({reactHookFormInstance:e,formObject:t,CategoryComponent:n,inputContainerStyles:o,generalError:r,errorColor:i="red",submitButtonLabel:a="Submit",submitButtonStyles:l={width:325},showCategorySelector:u=!0,defaultCategory:d=null,categoryLabel:h="Select Category",activeCategory:g=null,activeCategoryColor:y="#b32f5d",categoriesWithErrors:m=[],onSubmit:v=f=>console.log("Form submitted with: ",f)})=>{const{t:f}=oe.useTranslation(),{handleSubmit:x,control:S}=e;_.useEffect(()=>{i&&dn.setState(()=>({errorColor:i}))},[i]);const k=_.useMemo(()=>t?t.filter(N=>N.category).map(N=>{var q;return{id:N.categoryId,label:N.category,hasSubcategories:((q=N.subcategories)==null?void 0:q.length)>0}}):[],[t]),$=N=>{const q=t==null?void 0:t.find(F=>F.categoryId===N);return(q==null?void 0:q.subcategories)||[]},[b,C]=_.useState(g||d||null),[w,L]=_.useState(null);_.useEffect(()=>{!b&&k.length>0&&C(k[0].id)},[k,b]),_.useEffect(()=>{const N=$(b);!w&&(N==null?void 0:N.length)>0&&L(N[0].id)},[b,w,t]);const R=(N,q)=>{var F;if(((F=N.subcategories)==null?void 0:F.length)>0){const p=N.subcategories;return c.jsxs("div",{children:[c.jsx("div",{className:Gt.categorySelectorContainer,children:c.jsx(Lr,{activeCategory:w,categories:p,categoriesWithErrors:m,onChange:E=>L(E),activeColor:y})},N.categoryId),p.map((E,T)=>{const V=!w||E.id===w;return n?c.jsx("div",{style:{display:V?"block":"none",width:"100%"},children:c.jsx(n,{title:E.label,children:c.jsx(Xt,{inputs:E.inputs,control:S,inputContainerStyles:o,errorColor:i,reactHookFormInstance:e})},E.id)},`${E.id}${T}`):c.jsxs("div",{style:{width:"100%",display:V?"block":"none"},children:[c.jsx("h3",{style:{marginBottom:15},children:f(E.label)}),c.jsx(Xt,{inputs:E.inputs,control:S,inputContainerStyles:o,errorColor:i,reactHookFormInstance:e})]},`${E.id}${T}`)})]})}return n?c.jsx(n,{title:N.category,children:c.jsx(Xt,{inputs:N.inputs,control:S,inputContainerStyles:o,errorColor:i,reactHookFormInstance:e})},N.categoryId):c.jsxs("div",{style:{width:"100%"},children:[c.jsx("h2",{children:f(N.category)}),c.jsx(Xt,{inputs:N.inputs,control:S,inputContainerStyles:o,errorColor:i,reactHookFormInstance:e})]},N.categoryId)};return c.jsxs("form",{className:Gt.formContainer,onSubmit:x(v),children:[u&&k.length>0&&c.jsx("div",{className:Gt.categorySelectorContainer,children:c.jsx(Lr,{activeCategory:b,categories:k,categoriesWithErrors:m,onChange:N=>{C(N),L(null)},activeColor:y})}),c.jsx("div",{className:Gt.formObjectContainer,children:t==null?void 0:t.map((N,q)=>{const F=N.categoryId===b;return N.category?c.jsx("div",{style:{width:"100%",display:F?"block":"none"},children:R(N)},N.categoryId):c.jsx(Xt,{inputs:N.inputs,control:S,inputContainerStyles:o,errorColor:i,reactHookFormInstance:e},`no-category-${q}`)})}),c.jsxs("div",{className:Gt.buttonContainer,children:[c.jsx(sn,{containerStyles:l,type:"submit",children:f(a)}),c.jsx(Wt,{errorMessage:r,errorColor:i})]})]})},Nd="_overlay_mnd4j_2",Od="_modal_mnd4j_15",Ad="_closeButton_mnd4j_29",Ld="_icon_mnd4j_39",Md="_message_mnd4j_45",Rd="_submessage_mnd4j_51",Dd="_buttonsContainer_mnd4j_57",Id="_buttonWrapper_mnd4j_64",ct={overlay:Nd,modal:Od,closeButton:Ad,icon:Ld,message:Md,submessage:Rd,buttonsContainer:Dd,buttonWrapper:Id},$i=({onClose:e,icon:t,message:n,submessage:o,buttons:r,maxHeight:i="450px",maxWidth:a="450px"})=>c.jsx("div",{className:ct.overlay,children:c.jsxs("div",{className:ct.modal,style:{maxHeight:i,maxWidth:a},children:[c.jsx("button",{className:ct.closeButton,onClick:e,"aria-label":"Close modal",children:"✕"}),t&&c.jsx("img",{src:t,alt:"icon",className:ct.icon}),c.jsx("p",{className:ct.message,children:n}),o&&c.jsx("p",{className:ct.submessage,children:o}),r.length>0&&c.jsx("div",{className:ct.buttonsContainer,children:r.map((l,u)=>c.jsx("div",{className:ct.buttonWrapper,children:l},u))})]})});$i.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 Pd="_stepsContainer_1cyua_3",Vd="_stepWrapper_1cyua_9",Bd="_circleContainer_1cyua_19",Fd="_circle_1cyua_19",zd="_active_1cyua_39",qd="_completed_1cyua_44",Wd="_label_1cyua_50",Ud="_labelActive_1cyua_56",Zd="_connector_1cyua_61",rt={stepsContainer:Pd,stepWrapper:Vd,circleContainer:Bd,circle:Fd,active:zd,completed:qd,label:Wd,labelActive:Ud,connector:Zd},Gr=({steps:e,activeColor:t})=>c.jsx("div",{className:rt.stepsContainer,children:e.map((n,o)=>{const r=n.status==="active",i=n.status==="completed";return c.jsxs("div",{className:rt.stepWrapper,children:[c.jsxs("div",{className:rt.circleContainer,children:[c.jsx("div",{className:`${rt.circle}
81
- ${r?rt.active:""}
82
- ${i?rt.completed:""}`,style:r?{backgroundColor:t}:{},onClick:n.onClick,children:o+1}),o<e.length-1&&c.jsx("div",{className:rt.connector})]}),c.jsx("div",{className:`${rt.label} ${r?rt.labelActive:""}`,children:n.name})]},o)})});Gr.propTypes={steps:s.arrayOf(s.shape({name:s.string.isRequired,onClick:s.func,status:s.oneOf(["inactive","active","completed"]).isRequired})).isRequired,activeColor:s.string};Gr.defaultProps={activeColor:"#C2185B"};const Kd="_statusTextContainer_ch14r_2",Hd={statusTextContainer:Kd},Yr=({text:e,color:t})=>c.jsx("div",{className:Hd.statusTextContainer,style:{background:t},children:c.jsx("span",{children:e})});Yr.propTypes={text:s.string,color:s.string};Yr.defaultProps={color:"#C2185B"};const Gd="_buttonsContainer_1c7dw_2",Yd="_button_1c7dw_2",Xd="_active_1c7dw_20",jn={buttonsContainer:Gd,button:Yd,active:Xd},Ni=({buttons:e=[]})=>{const{t}=oe.useTranslation();return c.jsx("div",{className:`${jn.buttonsContainer}`,children:e.map((n,o)=>{const{isActive:r,name:i,onClick:a}=n;return c.jsx("div",{children:c.jsx("button",{onClick:a,className:`${jn.button}
83
- ${r&&jn.active}`,children:c.jsx("span",{className:jn.buttonName,children:t(i)})})},o)})})};Ni.propTypes={buttons:s.arrayOf(s.shape({isActive:s.bool,name:s.string,onClick:s.func})).isRequired};const Qd="_switchContainer_194wl_2",Jd="_labelRight_194wl_9",ef="_labelLeft_194wl_9",tf="_slider_194wl_28",nf="_disabled_194wl_54",It={switchContainer:Qd,labelRight:Jd,labelLeft:ef,switch:"_switch_194wl_2",slider:tf,disabled:nf},Oi=({input:e,reactHookFormInstance:t,onChange:n,onoff:o=!0})=>{const{code:r,labelLeft:i,labelRight:a,defValue:l=!1,colorOn:u="#5A514D",disabled:d=!1,width:h=240}=e,{t:g}=oe.useTranslation(),{control:y}=t||{},[m,v]=_.useState(l),f=S=>{v(S),n&&n(S)},x=(S,k)=>c.jsxs("div",{className:It.switchContainer,style:{width:`${h}px`},children:[i&&c.jsx("span",{className:It.labelLeft,style:{width:`${(h-74)/2}px`},children:g(i)}),c.jsxs("label",{className:`${It.switch} ${d?It.disabled:""}`,children:[c.jsx("input",{type:"checkbox",checked:!!S,onChange:()=>k(!S),disabled:d}),c.jsx("span",{className:It.slider,style:{"--switch-thumb-color":o?S?u:"#ccc":u}})]}),a&&c.jsx("span",{className:It.labelRight,style:{width:`${(h-74)/2}px`},children:g(a)})]});return t?c.jsx(un,{name:r,control:y,defaultValue:l,render:({field:S})=>x(S.value,S.onChange)}):x(m,f)};Oi.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 rf="_overlay_1xyw2_2",of="_popup_1xyw2_15",sf="_gif_1xyw2_25",af="_message_1xyw2_31",En={overlay:rf,popup:of,gif:sf,message:af},Ai=({gifSrc:e,message:t})=>c.jsx("div",{className:En.overlay,children:c.jsxs("div",{className:En.popup,children:[e&&c.jsx("img",{src:e,alt:"loading animation",className:En.gif}),t&&c.jsx("p",{className:En.message,children:t})]})});Ai.propTypes={gifSrc:s.string,message:s.string};const lf="_container_1pl8d_3",cf="_burger_1pl8d_10",uf="_menu_1pl8d_21",df="_menuOpen_1pl8d_35",ff="_menuClose_1pl8d_40",pf="_list_1pl8d_46",mf="_item_1pl8d_56",hf="_button_1pl8d_91",Qe={container:lf,burger:cf,menu:uf,menuOpen:df,menuClose:ff,list:pf,item:mf,button:hf},Xr=({options:e,backgroundColor:t,textColor:n,iconColor:o})=>{const[r,i]=_.useState(!1),a=()=>i(v=>!v),l=()=>i(!1),u=7,d=r?11:0,h=r?13:0,g=r?-11.51666:0,y=r?-13:0,m="0.35s";return c.jsxs("div",{className:Qe.container,children:[c.jsx("button",{onClick:a,className:Qe.burger,children:c.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[c.jsx("g",{style:{transform:`translateY(${d}px)`,transition:`transform ${m} cubic-bezier(0.42, 0, 0.58, 1)`},children:c.jsx("circle",{cx:"20",cy:"9",r:u,fill:o})}),c.jsx("g",{style:{transform:`translate(${h}px, ${g}px)`,transition:`transform ${m} cubic-bezier(0.42, 0, 0.58, 1)`},children:c.jsx("circle",{cx:"7",cy:"31.51666",r:u,fill:o})}),c.jsx("g",{style:{transform:`translate(${y}px, ${g}px)`,transition:`transform ${m} cubic-bezier(0.42, 0, 0.58, 1)`},children:c.jsx("circle",{cx:"33",cy:"31.51666",r:u,fill:o})}),c.jsx("g",{style:{opacity:r?1:0,transition:`opacity ${m} cubic-bezier(0.42, 0, 0.58, 1)`},children:c.jsx("circle",{cx:"20",cy:"20",r:"10",fill:o})}),c.jsxs("g",{stroke:t,strokeWidth:"2",strokeLinecap:"round",style:{opacity:r?1:0,transition:`opacity ${m} cubic-bezier(0.42, 0, 0.58, 1)`},children:[c.jsx("line",{x1:"17",y1:"17",x2:"23",y2:"23"}),c.jsx("line",{x1:"23",y1:"17",x2:"17",y2:"23"})]})]})}),c.jsx("div",{className:`${Qe.menu} ${r?Qe.menuOpen:Qe.menuClose}`,style:{backgroundColor:t,color:n},children:c.jsx("ul",{className:Qe.list,children:e.map((v,f)=>c.jsxs("li",{className:Qe.item,children:[v.url&&c.jsx(ys.NavLink,{to:v.url,className:({isActive:x})=>`${Qe.link} ${x?Qe.active:""}`,onClick:l,style:{color:n},children:v.name}),v.onclick&&c.jsx("button",{className:Qe.button,onClick:()=>{v.onclick(),l()},children:v.name}),v.component&&v.component]},f))})})]})};Xr.propTypes={options:s.array.isRequired,backgroundColor:s.string,textColor:s.string,iconColor:s.string};Xr.defaultProps={backgroundColor:"#ffffff",textColor:"#000000",iconColor:"#000000"};const gf="_svgContainer_1rxoe_2",yf="_svg_1rxoe_2",ps={svgContainer:gf,svg:yf},Li=({data:e,keys:t,colors:n,width:o="100%",height:r=300,margin:i={top:20,right:20,bottom:60,left:60},className:a="",showXAxisLabels:l=!0,showYAxisLabels:u=!0,showGrid:d=!0,xAxisTickRotation:h=-90,yAxisTickFormat:g=b=>b.toLocaleString("es-ES"),barPadding:y=.1,groupPadding:m=.05,animationDuration:v=750,onBarHover:f,onBarClick:x,title:S,xAxisLabel:k,yAxisLabel:$})=>{const b=_.useRef(),C=_.useRef(),[w,L]=_.useState({width:0,height:0});return _.useEffect(()=>{const R=()=>{if(C.current){const N=C.current.getBoundingClientRect().width;L({width:typeof o=="number"?o:N,height:r})}};return R(),window.addEventListener("resize",R),()=>window.removeEventListener("resize",R)},[o,r]),_.useEffect(()=>{if(!e||e.length===0||w.width===0)return;const R=ce.select(b.current),N=w.width,q=w.height,F=N-i.left-i.right,p=q-i.top-i.bottom;if(F<=0||p<=0)return;const E=e.map(I=>I.anyo||I.year||I.x),T=t,V=ce.min(e,I=>ce.min(T,Z=>I[Z]))||0,B=ce.max(e,I=>ce.max(T,Z=>I[Z]))||0,Y=ce.scaleBand().domain(E).rangeRound([0,F]).paddingInner(y),W=ce.scaleBand().domain(T).rangeRound([0,Y.bandwidth()]).padding(m),ae=ce.scaleLinear().domain([Math.min(0,V),B]).nice().rangeRound([p,0]),M=ce.scaleOrdinal().domain(T).range(Array.isArray(n)?n:Object.values(n||{}));R.selectAll("*").remove();const O=R.append("g").attr("transform",`translate(${i.left},${i.top})`);S&&R.append("text").attr("x",N/2).attr("y",i.top/2).attr("text-anchor","middle").style("font-size","16px").style("font-weight","bold").style("fill","#333").text(S),d&&O.append("g").attr("class","grid").selectAll("line").data(ae.ticks()).enter().append("line").attr("x1",0).attr("x2",F).attr("y1",I=>ae(I)).attr("y2",I=>ae(I)).style("stroke","#e0e0e0").style("stroke-width",.5),l&&(O.append("g").attr("transform",`translate(0,${p})`).call(ce.axisBottom(Y).tickSizeOuter(0)).attr("class","x-axis").selectAll("text").attr("transform",`translate(0,10)rotate(${h})`).style("text-anchor",h<0?"end":"middle").style("font-size","12px").style("fill","#605B56"),k&&O.append("text").attr("transform",`translate(${F/2}, ${p+i.bottom-5})`).style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(k)),u&&(O.append("g").call(ce.axisLeft(ae).ticks(6).tickFormat(g)).attr("class","y-axis").call(I=>I.select(".domain").remove()),$&&O.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($));const H=O.append("g").selectAll(".bar-group").data(e).enter().append("g").attr("class","bar-group").attr("transform",I=>`translate(${Y(I.anyo||I.year||I.x)},0)`).selectAll(".bar").data(I=>T.map(Z=>({key:Z,value:I[Z],data:I}))).enter().append("rect").attr("class","bar").attr("x",I=>W(I.key)).attr("y",p).attr("width",W.bandwidth()).attr("height",0).attr("fill",I=>M(I.key)).style("cursor",f||x?"pointer":"default");H.transition().duration(v).attr("y",I=>ae(Math.max(0,I.value))).attr("height",I=>Math.abs(ae(I.value)-ae(0))),f&&H.on("mouseover",function(I,Z){ce.select(this).style("opacity",.8),f(I,Z)}).on("mouseout",function(I,Z){ce.select(this).style("opacity",1)}),x&&H.on("click",x)},[e,t,n,w,i,y,m,l,u,d,h,g,v,f,x,S,k,$]),c.jsx("div",{ref:C,className:`${ps.svgContainer} ${a}`,style:{width:o,height:r+i.top+i.bottom},children:c.jsx("svg",{ref:b,className:ps.svg,width:w.width,height:w.height})})};Li.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 bf="_svgContainer_7fkic_2",vf="_svg_7fkic_2",ms={svgContainer:bf,svg:vf},Mi=({data:e,keys:t,colors:n,lineData:o=null,width:r="100%",height:i=300,margin:a={top:20,right:20,bottom:60,left:60},className:l="",showXAxisLabels:u=!0,showYAxisLabels:d=!0,showGrid:h=!0,xAxisTickRotation:g=-90,yAxisTickFormat:y=N=>N.toLocaleString("es-ES"),barPadding:m=.4,animationDuration:v=750,onBarHover:f,onBarClick:x,title:S,xAxisLabel:k,yAxisLabel:$,stackOrder:b="reverse",showTooltip:C=!0,reverseKeys:w=!0,minBarSlotWidth:L=60,wrapXAxisLabels:R=!0})=>{const N=_.useRef(),q=_.useRef();_.useRef();const[F,p]=_.useState({containerWidth:0,height:0}),{t:E}=oe.useTranslation();return _.useEffect(()=>{const T=()=>{if(q.current){const V=q.current.getBoundingClientRect().width;p({containerWidth:typeof r=="number"?r:V,height:i})}};return T(),window.addEventListener("resize",T),()=>window.removeEventListener("resize",T)},[r,i]),_.useEffect(()=>{if(!e||e.length===0||F.containerWidth===0)return;const T=ce.select(N.current),{containerWidth:V,height:B}=F,Y=V-a.left-a.right,W=e.length*L,ae=Math.max(Y,W),M=ae+a.left+a.right,O=B-a.top-a.bottom;if(ae<=0||O<=0)return;T.attr("width",M).attr("height",B);const J=w?[...t].reverse():t,H=[];e.forEach(z=>{const ne=z.any||z.year||z.x,xe=J.map(ve=>({key:ve,value:Number(z[ve])||0,data:z})),be=xe.filter(ve=>ve.value<0),$e=xe.filter(ve=>ve.value>=0);let Pe=0;be.forEach(ve=>{const Ve=Pe,A=Pe+ve.value,P=Math.abs(A-Ve);H.push({key:ve.key,value:ve.value,y0:Math.max(Ve,A),y1:Math.min(Ve,A),height:P,data:ve.data,xKey:ne}),Pe=A});let He=0;$e.forEach(ve=>{const Ve=He,A=He+ve.value,P=A-Ve;H.push({key:ve.key,value:ve.value,y0:Math.min(Ve,A),y1:Math.max(Ve,A),height:P,data:ve.data,xKey:ne}),He=A})});const I=[ce.min(H,z=>Math.min(z.y0,z.y1))||0,ce.max(H,z=>Math.max(z.y0,z.y1))||0];let Z=[0,0];o&&o.length>0&&(Z=[ce.min(o)||0,ce.max(o)||0]);const te=[Math.min(I[0],Z[0]),Math.max(I[1],Z[1])],G=ce.scaleBand().domain(e.map(z=>z.any||z.year||z.x)).range([0,ae]).padding(m),U=ce.scaleLinear().domain([te[0],te[1]]).nice(6).range([O,0]),re=ce.scaleOrdinal().domain(t).range(Array.isArray(n)?n:Object.values(n||{})),ee=o&&o.length>0?e.map((z,ne)=>{const xe=G(z.any||z.year||z.x)+G.bandwidth()/2,be=U(o[ne]||0);return{x:xe,y:be}}):[];T.selectAll("*").remove();const le=T.append("g").attr("transform",`translate(${a.left},${a.top})`);S&&T.append("text").attr("x",svgWidth/2).attr("y",a.top/2).attr("text-anchor","middle").style("font-size","16px").style("font-weight","bold").style("fill","#333").text(S),h&&le.append("g").attr("class","grid").selectAll("line").data(U.ticks(6)).enter().append("line").attr("x1",0).attr("x2",ae).attr("y1",z=>U(z)).attr("y2",z=>U(z)).style("stroke","#e0e0e0").style("stroke-width",.5);const D=(z,ne=12)=>{if(!R||z.length<=ne)return[z];const xe=Math.floor(z.length/2);let be=xe;for(let $e=xe;$e>=0;$e--)if(z[$e]===" "){be=$e;break}if(be===xe){for(let $e=xe;$e<z.length;$e++)if(z[$e]===" "){be=$e;break}}return be===xe&&(be=xe),[z.substring(0,be),z.substring(be+1)]};u&&(le.append("g").attr("class","x-axis").attr("transform",`translate(0, ${O})`).call(ce.axisBottom(G).tickSizeOuter(0)).selectAll("text").remove(),le.append("g").attr("class","x-axis-labels").attr("transform",`translate(0, ${O})`).selectAll(".x-label-group").data(e).enter().append("g").attr("class","x-label-group").attr("transform",be=>`translate(${G(be.any||be.year||be.x)+G.bandwidth()/2}, 0)`).each(function(be){const $e=String(be.any||be.year||be.x),Pe=D($e),He=ce.select(this);if(Pe.length===1)He.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 A=-(Pe.length*14/2)+14/2;Pe.forEach((P,K)=>{He.append("text").attr("x",A+K*14).attr("y",19).style("text-anchor","end").style("font-size","11px").style("fill","#605B56").attr("transform",`rotate(${g} ${A+K*14} 15)`).text(P)})}}),k&&le.append("text").attr("transform",`translate(${ae/2}, ${O+a.bottom-5})`).style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(k)),d&&(le.append("g").attr("class","y-axis").call(ce.axisLeft(U).ticks(6).tickFormat(y)).call(z=>z.select(".domain").remove()),le.append("g").attr("class","y-ticks").attr("transform",`translate(${ae}, 0)`).call(ce.axisLeft(U).ticks(6).tickSizeInner(ae)).call(z=>z.select(".domain").remove()).call(z=>z.selectAll(".tick text").remove()),$&&le.append("text").attr("transform","rotate(-90)").attr("y",0-a.left).attr("x",0-O/2).attr("dy","1em").style("text-anchor","middle").style("font-size","14px").style("fill","#333").text($));let se;C&&(se=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 Le=le.selectAll(".segment").data(H,z=>`${z.xKey}-${z.key}`);Le.exit().remove();const Ye=Le.enter().append("rect").attr("class","segment").attr("x",z=>G(z.xKey)).attr("width",G.bandwidth()).attr("y",z=>U(0)).attr("height",0).attr("fill",z=>re(z.key)).style("cursor",f||x||C?"pointer":"default").merge(Le);if(Ye.transition().duration(v).attr("x",z=>G(z.xKey)).attr("y",z=>Math.min(U(z.y0),U(z.y1))).attr("height",z=>Math.abs(U(z.y1)-U(z.y0))),(C||f)&&Ye.on("mouseover",function(z,ne){const xe=ne.value;C&&se&&se.style("visibility","visible").html(`
78
+ export default theme;`}function os(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const wu=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 Su(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})`:di(t,wu(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${os(n)})`:Qn(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${os(n)})`:Xn(t,n)}})}function Or(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:l={},shape:u,colorSpace:d,...h}=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.":St(20));const g=Ur({...i,colorSpace:d}),y=si(e);let m=ze(y,{mixins:uu(y.breakpoints,r),palette:g,shadows:gu.slice(),typography:fu(g,l),transitions:Cu(a),zIndex:{...xu}});if(m=ze(m,h),m=t.reduce((v,f)=>ze(v,f),m),process.env.NODE_ENV!=="production"){const v=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(x,S)=>{let T;for(T in x){const j=x[T];if(v.includes(T)&&Object.keys(j).length>0){if(process.env.NODE_ENV!=="production"){const b=qr("",T);console.error([`MUI: The \`${S}\` component increases the CSS specificity of the \`${T}\` internal state.`,"You can not override it like this: ",JSON.stringify(x,null,2),"",`Instead, you need to use the '&.${b}' syntax:`,JSON.stringify({root:{[`&.${b}`]:j}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
79
+ `))}x[T]={}}}};Object.keys(m.components).forEach(x=>{const S=m.components[x].styleOverrides;S&&x.startsWith("Mui")&&f(S,x)})}return m.unstable_sxConfig={...Gn,...h==null?void 0:h.unstable_sxConfig},m.unstable_sx=function(f){return zt({sx:f,theme:this})},m.toRuntimeSource=hi,Su(m),m}function Tu(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 ku=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Tu(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function gi(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function yi(e){return e==="dark"?ku:[]}function ju(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...i}=e,a=Ur({...t,colorSpace:o});return{palette:a,opacity:{...gi(a.mode),...n},overlays:r||yi(a.mode),...i}}function $u(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 Eu=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Nu=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 Eu(e.cssVarPrefix).forEach(l=>{a[l]=n[l],delete n[l]}),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 Ou(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function $(e,t,n){!e[t]&&n&&(e[t]=n)}function tn(e){return typeof e!="string"||!e.startsWith("hsl")?e:ui(e)}function tt(e,t){`${t}Channel`in e||(e[`${t}Channel`]=en(tn(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 Au(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Xe=e=>{try{return e()}catch{}},Lu=(e="mui")=>Y2(e);function br(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const i=o==="dark"?"dark":"light";if(!r){t[o]=ju({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:a,...l}=Or({...r,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[o]={...n,palette:a,opacity:{...gi(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||yi(i)},l}function Mu(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=$u,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...h}=e,g=Object.keys(n)[0],y=r||(n.light&&g!=="light"?"light":g),m=Lu(i),{[y]:v,light:f,dark:x,...S}=n,T={...S};let j=v;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&(j=!0),!j)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${y}\` option is either missing or invalid.`:St(21,y));let b;a&&(b="oklch");const C=br(b,T,j,h,y);f&&!T.light&&br(b,T,f,void 0,"light"),x&&!T.dark&&br(b,T,x,void 0,"dark");let w={defaultColorScheme:y,...C,cssVarPrefix:i,colorSchemeSelector:u,rootSelector:d,getCssVar:m,colorSchemes:T,font:{...cu(C.typography),...C.font},spacing:Au(h.spacing)};Object.keys(w.colorSchemes).forEach(F=>{const p=w.colorSchemes[F].palette,E=B=>{const V=B.split("-"),Y=V[1],W=V[2];return m(B,p[Y][W])};p.mode==="light"&&($(p.common,"background","#fff"),$(p.common,"onBackground","#000")),p.mode==="dark"&&($(p.common,"background","#000"),$(p.common,"onBackground","#fff"));function k(B,V,Y){if(b){let W;return B===vt&&(W=`transparent ${((1-Y)*100).toFixed(0)}%`),B===fe&&(W=`#000 ${(Y*100).toFixed(0)}%`),B===pe&&(W=`#fff ${(Y*100).toFixed(0)}%`),`color-mix(in ${b}, ${V}, ${W})`}return B(V,Y)}if(Ou(p,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),p.mode==="light"){$(p.Alert,"errorColor",k(fe,a?m("palette-error-light"):p.error.light,.6)),$(p.Alert,"infoColor",k(fe,a?m("palette-info-light"):p.info.light,.6)),$(p.Alert,"successColor",k(fe,a?m("palette-success-light"):p.success.light,.6)),$(p.Alert,"warningColor",k(fe,a?m("palette-warning-light"):p.warning.light,.6)),$(p.Alert,"errorFilledBg",E("palette-error-main")),$(p.Alert,"infoFilledBg",E("palette-info-main")),$(p.Alert,"successFilledBg",E("palette-success-main")),$(p.Alert,"warningFilledBg",E("palette-warning-main")),$(p.Alert,"errorFilledColor",Xe(()=>p.getContrastText(p.error.main))),$(p.Alert,"infoFilledColor",Xe(()=>p.getContrastText(p.info.main))),$(p.Alert,"successFilledColor",Xe(()=>p.getContrastText(p.success.main))),$(p.Alert,"warningFilledColor",Xe(()=>p.getContrastText(p.warning.main))),$(p.Alert,"errorStandardBg",k(pe,a?m("palette-error-light"):p.error.light,.9)),$(p.Alert,"infoStandardBg",k(pe,a?m("palette-info-light"):p.info.light,.9)),$(p.Alert,"successStandardBg",k(pe,a?m("palette-success-light"):p.success.light,.9)),$(p.Alert,"warningStandardBg",k(pe,a?m("palette-warning-light"):p.warning.light,.9)),$(p.Alert,"errorIconColor",E("palette-error-main")),$(p.Alert,"infoIconColor",E("palette-info-main")),$(p.Alert,"successIconColor",E("palette-success-main")),$(p.Alert,"warningIconColor",E("palette-warning-main")),$(p.AppBar,"defaultBg",E("palette-grey-100")),$(p.Avatar,"defaultBg",E("palette-grey-400")),$(p.Button,"inheritContainedBg",E("palette-grey-300")),$(p.Button,"inheritContainedHoverBg",E("palette-grey-A100")),$(p.Chip,"defaultBorder",E("palette-grey-400")),$(p.Chip,"defaultAvatarColor",E("palette-grey-700")),$(p.Chip,"defaultIconColor",E("palette-grey-700")),$(p.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),$(p.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),$(p.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),$(p.LinearProgress,"primaryBg",k(pe,a?m("palette-primary-main"):p.primary.main,.62)),$(p.LinearProgress,"secondaryBg",k(pe,a?m("palette-secondary-main"):p.secondary.main,.62)),$(p.LinearProgress,"errorBg",k(pe,a?m("palette-error-main"):p.error.main,.62)),$(p.LinearProgress,"infoBg",k(pe,a?m("palette-info-main"):p.info.main,.62)),$(p.LinearProgress,"successBg",k(pe,a?m("palette-success-main"):p.success.main,.62)),$(p.LinearProgress,"warningBg",k(pe,a?m("palette-warning-light"):p.warning.main,.62)),$(p.Skeleton,"bg",b?k(vt,a?m("palette-text-primary"):p.text.primary,.11):`rgba(${E("palette-text-primaryChannel")} / 0.11)`),$(p.Slider,"primaryTrack",k(pe,a?m("palette-primary-main"):p.primary.main,.62)),$(p.Slider,"secondaryTrack",k(pe,a?m("palette-secondary-main"):p.secondary.main,.62)),$(p.Slider,"errorTrack",k(pe,a?m("palette-error-main"):p.error.main,.62)),$(p.Slider,"infoTrack",k(pe,a?m("palette-info-main"):p.info.main,.62)),$(p.Slider,"successTrack",k(pe,a?m("palette-success-main"):p.success.main,.62)),$(p.Slider,"warningTrack",k(pe,a?m("palette-warning-main"):p.warning.main,.62));const B=b?k(fe,a?m("palette-background-default"):p.background.default,.6825):kn(p.background.default,.8);$(p.SnackbarContent,"bg",B),$(p.SnackbarContent,"color",Xe(()=>b?Nr.text.primary:p.getContrastText(B))),$(p.SpeedDialAction,"fabHoverBg",kn(p.background.paper,.15)),$(p.StepConnector,"border",E("palette-grey-400")),$(p.StepContent,"border",E("palette-grey-400")),$(p.Switch,"defaultColor",E("palette-common-white")),$(p.Switch,"defaultDisabledColor",E("palette-grey-100")),$(p.Switch,"primaryDisabledColor",k(pe,a?m("palette-primary-main"):p.primary.main,.62)),$(p.Switch,"secondaryDisabledColor",k(pe,a?m("palette-secondary-main"):p.secondary.main,.62)),$(p.Switch,"errorDisabledColor",k(pe,a?m("palette-error-main"):p.error.main,.62)),$(p.Switch,"infoDisabledColor",k(pe,a?m("palette-info-main"):p.info.main,.62)),$(p.Switch,"successDisabledColor",k(pe,a?m("palette-success-main"):p.success.main,.62)),$(p.Switch,"warningDisabledColor",k(pe,a?m("palette-warning-main"):p.warning.main,.62)),$(p.TableCell,"border",k(pe,vt(a?m("palette-divider"):p.divider,1),.88)),$(p.Tooltip,"bg",k(vt,a?m("palette-grey-700"):p.grey[700],.92))}if(p.mode==="dark"){$(p.Alert,"errorColor",k(pe,a?m("palette-error-light"):p.error.light,.6)),$(p.Alert,"infoColor",k(pe,a?m("palette-info-light"):p.info.light,.6)),$(p.Alert,"successColor",k(pe,a?m("palette-success-light"):p.success.light,.6)),$(p.Alert,"warningColor",k(pe,a?m("palette-warning-light"):p.warning.light,.6)),$(p.Alert,"errorFilledBg",E("palette-error-dark")),$(p.Alert,"infoFilledBg",E("palette-info-dark")),$(p.Alert,"successFilledBg",E("palette-success-dark")),$(p.Alert,"warningFilledBg",E("palette-warning-dark")),$(p.Alert,"errorFilledColor",Xe(()=>p.getContrastText(p.error.dark))),$(p.Alert,"infoFilledColor",Xe(()=>p.getContrastText(p.info.dark))),$(p.Alert,"successFilledColor",Xe(()=>p.getContrastText(p.success.dark))),$(p.Alert,"warningFilledColor",Xe(()=>p.getContrastText(p.warning.dark))),$(p.Alert,"errorStandardBg",k(fe,a?m("palette-error-light"):p.error.light,.9)),$(p.Alert,"infoStandardBg",k(fe,a?m("palette-info-light"):p.info.light,.9)),$(p.Alert,"successStandardBg",k(fe,a?m("palette-success-light"):p.success.light,.9)),$(p.Alert,"warningStandardBg",k(fe,a?m("palette-warning-light"):p.warning.light,.9)),$(p.Alert,"errorIconColor",E("palette-error-main")),$(p.Alert,"infoIconColor",E("palette-info-main")),$(p.Alert,"successIconColor",E("palette-success-main")),$(p.Alert,"warningIconColor",E("palette-warning-main")),$(p.AppBar,"defaultBg",E("palette-grey-900")),$(p.AppBar,"darkBg",E("palette-background-paper")),$(p.AppBar,"darkColor",E("palette-text-primary")),$(p.Avatar,"defaultBg",E("palette-grey-600")),$(p.Button,"inheritContainedBg",E("palette-grey-800")),$(p.Button,"inheritContainedHoverBg",E("palette-grey-700")),$(p.Chip,"defaultBorder",E("palette-grey-700")),$(p.Chip,"defaultAvatarColor",E("palette-grey-300")),$(p.Chip,"defaultIconColor",E("palette-grey-300")),$(p.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),$(p.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),$(p.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),$(p.LinearProgress,"primaryBg",k(fe,a?m("palette-primary-main"):p.primary.main,.5)),$(p.LinearProgress,"secondaryBg",k(fe,a?m("palette-secondary-main"):p.secondary.main,.5)),$(p.LinearProgress,"errorBg",k(fe,a?m("palette-error-main"):p.error.main,.5)),$(p.LinearProgress,"infoBg",k(fe,a?m("palette-info-main"):p.info.main,.5)),$(p.LinearProgress,"successBg",k(fe,a?m("palette-success-main"):p.success.main,.5)),$(p.LinearProgress,"warningBg",k(fe,a?m("palette-warning-main"):p.warning.main,.5)),$(p.Skeleton,"bg",b?k(vt,a?m("palette-text-primary"):p.text.primary,.13):`rgba(${E("palette-text-primaryChannel")} / 0.13)`),$(p.Slider,"primaryTrack",k(fe,a?m("palette-primary-main"):p.primary.main,.5)),$(p.Slider,"secondaryTrack",k(fe,a?m("palette-secondary-main"):p.secondary.main,.5)),$(p.Slider,"errorTrack",k(fe,a?m("palette-error-main"):p.error.main,.5)),$(p.Slider,"infoTrack",k(fe,a?m("palette-info-main"):p.info.main,.5)),$(p.Slider,"successTrack",k(fe,a?m("palette-success-main"):p.success.main,.5)),$(p.Slider,"warningTrack",k(fe,a?m("palette-warning-light"):p.warning.main,.5));const B=b?k(pe,a?m("palette-background-default"):p.background.default,.985):kn(p.background.default,.98);$(p.SnackbarContent,"bg",B),$(p.SnackbarContent,"color",Xe(()=>b?pi.text.primary:p.getContrastText(B))),$(p.SpeedDialAction,"fabHoverBg",kn(p.background.paper,.15)),$(p.StepConnector,"border",E("palette-grey-600")),$(p.StepContent,"border",E("palette-grey-600")),$(p.Switch,"defaultColor",E("palette-grey-300")),$(p.Switch,"defaultDisabledColor",E("palette-grey-600")),$(p.Switch,"primaryDisabledColor",k(fe,a?m("palette-primary-main"):p.primary.main,.55)),$(p.Switch,"secondaryDisabledColor",k(fe,a?m("palette-secondary-main"):p.secondary.main,.55)),$(p.Switch,"errorDisabledColor",k(fe,a?m("palette-error-main"):p.error.main,.55)),$(p.Switch,"infoDisabledColor",k(fe,a?m("palette-info-main"):p.info.main,.55)),$(p.Switch,"successDisabledColor",k(fe,a?m("palette-success-main"):p.success.main,.55)),$(p.Switch,"warningDisabledColor",k(fe,a?m("palette-warning-light"):p.warning.main,.55)),$(p.TableCell,"border",k(fe,vt(a?m("palette-divider"):p.divider,1),.68)),$(p.Tooltip,"bg",k(vt,a?m("palette-grey-700"):p.grey[700],.92))}a||(tt(p.background,"default"),tt(p.background,"paper"),tt(p.common,"background"),tt(p.common,"onBackground"),tt(p,"divider")),Object.keys(p).forEach(B=>{const V=p[B];B!=="tonalOffset"&&!a&&V&&typeof V=="object"&&(V.main&&$(p[B],"mainChannel",en(tn(V.main))),V.light&&$(p[B],"lightChannel",en(tn(V.light))),V.dark&&$(p[B],"darkChannel",en(tn(V.dark))),V.contrastText&&$(p[B],"contrastTextChannel",en(tn(V.contrastText))),B==="text"&&(tt(p[B],"primary"),tt(p[B],"secondary")),B==="action"&&(V.active&&tt(p[B],"active"),V.selected&&tt(p[B],"selected")))})}),w=t.reduce((F,p)=>ze(F,p),w);const L={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:Nu(w),enableContrastVars:a},{vars:R,generateThemeVars:N,generateStyleSheets:q}=J2(w,L);return w.vars=R,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([F,p])=>{w[F]=p}),w.generateThemeVars=N,w.generateStyleSheets=q,w.generateSpacing=function(){return oi(h.spacing,Fr(this))},w.getColorSchemeSelector=eu(u),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=l,w.unstable_sxConfig={...Gn,...h==null?void 0:h.unstable_sxConfig},w.unstable_sx=function(p){return zt({sx:p,theme:this})},w.toRuntimeSource=hi,w}function ss(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Ur({...n===!0?{}:n.palette,mode:t})})}function Ru(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,l=i||"light",u=o==null?void 0:o[l],d={...o,...n?{[l]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Or(e,...t);let h=n;"palette"in e||d[l]&&(d[l]!==!0?h=d[l].palette:l==="dark"&&(h={mode:"dark"}));const g=Or({...e,palette:h},...t);return g.defaultColorScheme=l,g.colorSchemes=d,g.palette.mode==="light"&&(g.colorSchemes.light={...d.light!==!0&&d.light,palette:g.palette},ss(g,"dark",d.dark)),g.palette.mode==="dark"&&(g.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:g.palette},ss(g,"light",d.light)),g}return!n&&!("light"in d)&&l==="light"&&(d.light=!0),Mu({...a,colorSchemes:d,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const Du=Ru(),Iu="$$material";function Zr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Pu=e=>Zr(e)&&e!=="classes",jt=P2({themeId:Iu,defaultTheme:Du,rootShouldForwardProp:Pu}),Wt=G2;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Bu(e){return K2(e)}const Vu=e=>!e||!rn(e);function Fu(e){return typeof e.main=="string"}function zu(e,t=[]){if(!Fu(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Hr(e=[]){return([,t])=>t&&zu(t,e)}function qu(e){return qr("MuiSlider",e)}const Ze=L2("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"]),Wu=e=>{const{open:t}=e;return{offset:ft(t&&Ze.valueLabelOpen),circle:Ze.valueLabelCircle,label:Ze.valueLabelLabel}};function bi(e){const{children:t,className:n,value:r}=e,o=Wu(e);return t?Q.cloneElement(t,{className:t.props.className},c.jsxs(Q.Fragment,{children:[t.props.children,c.jsx("span",{className:ft(o.offset,n),"aria-hidden":!0,children:c.jsx("span",{className:o.circle,children:c.jsx("span",{className:o.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(bi.propTypes={children:s.element.isRequired,className:s.string,value:s.node});function is(e){return e}const Uu=jt("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]}})(Wt(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Ze.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Ze.dragging}`]:{[`& .${Ze.thumb}, & .${Ze.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(Hr()).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}}]}))),Zu=jt("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}}]}),Hu=jt("span",{name:"MuiSlider",slot:"Track"})(Wt(({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(Hr()).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)})}}}))]}))),Ku=jt("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)}`]]}})(Wt(({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%)"},[`&.${Ze.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(Hr()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${Ze.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Ze.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),vi=jt(bi,{name:"MuiSlider",slot:"ValueLabel"})(Wt(({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%"},[`&.${Ze.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%"},[`&.${Ze.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"&&(vi.propTypes={children:s.element.isRequired,index:s.number.isRequired,open:s.bool.isRequired,value:s.node});const Gu=jt("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Zr(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(Wt(({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}}]}))),Yu=jt("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Zr(e)&&e!=="markLabelActive"})(Wt(({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}}]}))),Xu=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:a,color:l,size:u}=e,d={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",l&&`color${Ge(l)}`,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)}`,l&&`thumbColor${Ge(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return a0(d,qu,a)},Qu=({children:e})=>e,Ci=Q.forwardRef(function(t,n){const r=Bu({props:t,name:"MuiSlider"}),o=c0(),{"aria-label":i,"aria-valuetext":a,"aria-labelledby":l,component:u="span",components:d={},componentsProps:h={},color:g="primary",classes:y,className:m,disableSwap:v=!1,disabled:f=!1,getAriaLabel:x,getAriaValueText:S,marks:T=!1,max:j=100,min:b=0,name:C,onChange:w,onChangeCommitted:L,orientation:R="horizontal",shiftStep:N=10,size:q="medium",step:F=1,scale:p=is,slotProps:E,slots:k,tabIndex:B,track:V="normal",value:Y,valueLabelDisplay:W="off",valueLabelFormat:ae=is,...M}=r,O={...r,isRtl:o,max:j,min:b,classes:y,disabled:f,disableSwap:v,orientation:R,marks:T,color:g,size:q,step:F,shiftStep:N,scale:p,track:V,valueLabelDisplay:W,valueLabelFormat:ae},{axisProps:J,getRootProps:K,getHiddenInputProps:I,getThumbProps:Z,open:te,active:G,axis:U,focusedThumbIndex:re,range:ee,dragging:le,marks:D,values:se,trackOffset:Le,trackLeap:Ye,getThumbStyle:z}=_0({...O,rootRef:n});O.marked=D.length>0&&D.some(Te=>Te.label),O.dragging=le,O.focusedThumbIndex=re;const ne=Xu(O),xe=(k==null?void 0:k.root)??d.Root??Uu,be=(k==null?void 0:k.rail)??d.Rail??Zu,Ee=(k==null?void 0:k.track)??d.Track??Hu,Pe=(k==null?void 0:k.thumb)??d.Thumb??Ku,Ke=(k==null?void 0:k.valueLabel)??d.ValueLabel??vi,ve=(k==null?void 0:k.mark)??d.Mark??Gu,Be=(k==null?void 0:k.markLabel)??d.MarkLabel??Yu,A=(k==null?void 0:k.input)??d.Input??"input",P=(E==null?void 0:E.root)??h.root,H=(E==null?void 0:E.rail)??h.rail,ie=(E==null?void 0:E.track)??h.track,ge=(E==null?void 0:E.thumb)??h.thumb,X=(E==null?void 0:E.valueLabel)??h.valueLabel,Ne=(E==null?void 0:E.mark)??h.mark,Me=(E==null?void 0:E.markLabel)??h.markLabel,je=(E==null?void 0:E.input)??h.input,qe=ct({elementType:xe,getSlotProps:K,externalSlotProps:P,externalForwardedProps:M,additionalProps:{...Vu(xe)&&{as:u}},ownerState:{...O,...P==null?void 0:P.ownerState},className:[ne.root,m]}),Zt=ct({elementType:be,externalSlotProps:H,ownerState:O,className:ne.rail}),Wi=ct({elementType:Ee,externalSlotProps:ie,additionalProps:{style:{...J[U].offset(Le),...J[U].leap(Ye)}},ownerState:{...O,...ie==null?void 0:ie.ownerState},className:ne.track}),Jn=ct({elementType:Pe,getSlotProps:Z,externalSlotProps:ge,ownerState:{...O,...ge==null?void 0:ge.ownerState},className:ne.thumb}),Ui=ct({elementType:Ke,externalSlotProps:X,ownerState:{...O,...X==null?void 0:X.ownerState},className:ne.valueLabel}),er=ct({elementType:ve,externalSlotProps:Ne,ownerState:O,className:ne.mark}),tr=ct({elementType:Be,externalSlotProps:Me,ownerState:O,className:ne.markLabel}),Zi=ct({elementType:A,getSlotProps:I,externalSlotProps:je,ownerState:O});return c.jsxs(xe,{...qe,children:[c.jsx(be,{...Zt}),c.jsx(Ee,{...Wi}),D.filter(Te=>Te.value>=b&&Te.value<=j).map((Te,Ae)=>{const nr=Dn(Te.value,b,j),pn=J[U].offset(nr);let et;return V===!1?et=se.includes(Te.value):et=V==="normal"&&(ee?Te.value>=se[0]&&Te.value<=se[se.length-1]:Te.value<=se[0])||V==="inverted"&&(ee?Te.value<=se[0]||Te.value>=se[se.length-1]:Te.value>=se[0]),c.jsxs(Q.Fragment,{children:[c.jsx(ve,{"data-index":Ae,...er,...!rn(ve)&&{markActive:et},style:{...pn,...er.style},className:ft(er.className,et&&ne.markActive)}),Te.label!=null?c.jsx(Be,{"aria-hidden":!0,"data-index":Ae,...tr,...!rn(Be)&&{markLabelActive:et},style:{...pn,...tr.style},className:ft(ne.markLabel,tr.className,et&&ne.markLabelActive),children:Te.label}):null]},Ae)}),se.map((Te,Ae)=>{const nr=Dn(Te,b,j),pn=J[U].offset(nr),et=W==="off"?Qu:Ke;return c.jsx(et,{...!rn(et)&&{valueLabelFormat:ae,valueLabelDisplay:W,value:typeof ae=="function"?ae(p(Te),Ae):ae,index:Ae,open:te===Ae||G===Ae||W==="on",disabled:f},...Ui,children:c.jsx(Pe,{"data-index":Ae,...Jn,className:ft(ne.thumb,Jn.className,G===Ae&&ne.active,re===Ae&&ne.focusVisible),style:{...pn,...z(Ae),...Jn.style},children:c.jsx(A,{"data-index":Ae,"aria-label":x?x(Ae):i,"aria-valuenow":p(Te),"aria-labelledby":l,"aria-valuetext":S?S(p(Te),Ae):a,value:se[Ae],...Zi})})},Ae)})]})});process.env.NODE_ENV!=="production"&&(Ci.propTypes={"aria-label":Oo(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":Oo(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 Ju="_slider_1prh1_2",e1="_playButton_1prh1_14",t1="_sliderOpen_1prh1_25",n1="_sliderResults_1prh1_29",Gt={slider:Ju,playButton:e1,sliderOpen:t1,sliderResults:n1},xi=({onResults:e=!1,defaultYear:t=2025,firstYear:n=2025,lastYear:r=2050,marcas:o=null,zIndex:i=10,rightBarOpen:a=!1,conditionToBeRuning:l=null,onChange:u=d=>{console.log("year changed to ",d)}})=>{const h=o||((b,C)=>{const w=[];w.push({label:"",value:b});const L=Math.ceil(b/10)*10;for(let R=L;R<C;R+=10)w.push({label:"",value:R});return w[w.length-1].value!==C&&w.push({label:"",value:C}),w})(n,r),[g,y]=_.useState(t);_.useEffect(()=>{y(t)},[t]);const m=(b,C)=>{y(C),u(C)},[v,f]=_.useState(!1);_.useEffect(()=>{t&&console.log("defaultYear changed:",t),t&&y(t)},[t]),_.useEffect(()=>{l===!1&&f(!1)},[l]);const x=()=>{f(!0)},S=()=>{f(!1)};((b,C,w=[])=>{const L=_.useRef();_.useEffect(()=>{L.current=b},[b]),_.useEffect(()=>{function R(){L.current()}{let N=setInterval(R,C);return()=>clearInterval(N)}},[C,...w])})(()=>{v&&y(b=>{const C=b+1;return C>r?(u(n),n):(u(C),C)})},1e3,[n,r,v]);const j=no.createTheme({palette:{primary:{main:"#605b56"}},components:{MuiSlider:{styleOverrides:{mark:{height:10,backgroundColor:"#605b56"},valueLabel:{backgroundColor:"transparent",color:"#605b56",padding:0,top:3}}}}});return c.jsx(oa.ThemeProvider,{theme:j,children:c.jsxs(no.Box,{sx:{width:400},className:`${e?Gt.sliderResults:Gt.slider} ${a?Gt.sliderOpen:""}`,style:{zIndex:i},children:[n,c.jsx(Ci,{"aria-label":"TimeSlider",value:g,valueLabelDisplay:"on",step:1,marks:h,min:n,max:r,onChange:m,color:"primary",size:"small"}),r,!v&&c.jsx("button",{className:Gt.playButton,onClick:x,children:c.jsx("img",{src:s0,alt:"Play"})}),v&&c.jsx("button",{className:Gt.playButton,onClick:S,children:c.jsx("img",{src:i0,alt:"Pause"})})]})})};xi.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 r1="_TopNavMenuContainer_12mp4_2",o1="_topNavOptions_12mp4_13",s1="_active_12mp4_27",vr={TopNavMenuContainer:r1,topNavOptions:o1,active:s1},_i=({options:e=[],containerStyles:t,borderColor:n="red",textColor:r="white",onChangeNavLink:o=i=>{console.log("Changed NavLink",i)}})=>{const{t:i}=oe.useTranslation();return c.jsx("div",{className:vr.TopNavMenuContainer,style:{...t},children:e.map((a,l)=>c.jsx(_s.NavLink,{to:a.url,className:({isActive:u})=>`${vr.topNavOptions} ${u?vr.active:""} `,onClick:()=>o(a.url),style:({isActive:u})=>({color:r,borderBottom:u?`5px solid ${n}`:"5px solid transparent"}),children:i(a.name)},l))})};_i.propTypes={options:s.arrayOf(s.object),cssProps:s.shape({borderColor:s.string.isRequired,textColor:s.string.isRequired})};const i1="_LogInButton_1vxj5_2",a1={LogInButton:i1},wi=({cssClass:e,notLoggedInLabel:t="Log in",loggedInLabel:n="Log out",containerStyles:r,userName:o="",isLoggedIn:i=!1,onClickLogIn:a=()=>{console.log("Login clicked")},onClickLogOut:l=()=>{console.log("Logout clicked")}})=>{const{t:u}=oe.useTranslation();return c.jsx("div",{style:{...r},className:`${a1.LogInButton} link ${e}`,onClick:i?l:a,children:i?o||u(n):u(t)})};wi.propTypes={cssClass:s.string,notLoggedInLabel:s.string,loggedInLabel:s.string,containerStyles:s.object,userName:s.string,isLoggedIn:s.bool};const l1="_elementSelector_1ox68_2",c1="_header_1ox68_14",u1="_nameDateContainer_1ox68_24",d1="_elementName_1ox68_40",f1="_elementDate_1ox68_54",p1="_buttonsContainer_1ox68_68",m1="_elementListContainer_1ox68_77",h1="_newElementButtonContainer_1ox68_81",nt={elementSelector:l1,header:c1,nameDateContainer:u1,elementName:d1,elementDate:f1,buttonsContainer:p1,elementListContainer:m1,newElementButtonContainer:h1},g1="_listElement_s4s4h_3",y1="_elementNameDate_s4s4h_19",b1="_elementNameContainer_s4s4h_30",v1="_elementName_s4s4h_19",C1="_elementDate_s4s4h_47",x1="_nameAndEye_s4s4h_50",_1="_elementButtons_s4s4h_55",w1="_moreInfoContainer_s4s4h_78",S1="_moreInfo_s4s4h_78",We={listElement:g1,elementNameDate:y1,elementNameContainer:b1,elementName:v1,elementDate:C1,nameAndEye:x1,elementButtons:_1,break:"_break_s4s4h_73",moreInfoContainer:w1,moreInfo:S1},T1="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",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%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",j1="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",$1="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",E1="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",N1="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",O1="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 as;function Ar(){return Ar=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},Ar.apply(null,arguments)}var A1=function(t){return Q.createElement("svg",Ar({xmlns:"http://www.w3.org/2000/svg",width:26,height:14,fill:"none"},t),as||(as=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 L1="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",Si=({listelement:e,onClickElement:t,isActive:n,activeColor:r,fontColor:o,moreInfo:i,columns:a,elementButtons:l,processTooltip:u,defaultTooltip:d,showEye:h=!0})=>{const{name:g,created_at:y,id:m,isBeingProcessed:v}=e,[f,x]=_.useState(!1),{t:S}=oe.useTranslation();_.useEffect(()=>{console.log("elementButtons: ",l)},[l]);const T=l&&l.edit&&!e.is_default&&!e.is_baseline,j=l&&l.trash&&!e.is_default&&!e.is_baseline;return c.jsxs("div",{className:We.listElement,style:{borderBottom:`1px solid ${o}`},children:[c.jsx("div",{className:We.elementNameDate,onClick:()=>t(m),children:Object.keys(a).map((b,C)=>b==="name"?c.jsx("div",{className:We.elementNameContainer,children:c.jsxs("div",{className:`${We.elementName} ${h&&We.nameAndEye}`,children:[h&&(n?c.jsx(A1,{style:{color:r,marginRight:9}}):c.jsx("img",{style:{marginRight:9},src:L1,alt:"eye"})),c.jsx("span",{style:{color:n?r:o},children:g})]})},`col${C}`):b=="data"?c.jsx("div",{className:We.elementDate,children:y?new Date(y).toLocaleDateString():""},`col${C}data`):c.jsx("div",{className:We.elementDate,children:e[b]},`col${C}other`))}),c.jsxs("div",{className:We.elementButtons,children:[e.processing&&c.jsxs("div",{className:"tooltip-parent",children:[c.jsx("img",{src:$1}),c.jsx(Je,{text:u,position:"left"})]}),l.filter&&!e.is_default&&c.jsxs("div",{className:"tooltip-parent",children:[c.jsx("button",{onClick:()=>l.filter.onclick(e),disabled:l.filter.disabled||!1,children:c.jsx("img",{src:j1})}),c.jsx(Je,{text:l.filter.tooltiptext,position:"left"})]}),l.copy&&!e.is_default&&c.jsxs("div",{className:"tooltip-parent",children:[c.jsx("button",{onClick:()=>l.copy.onclick(e),disabled:l.copy.disabled||!1,children:c.jsx("img",{src:k1})}),c.jsx(Je,{text:l.copy.tooltiptext,position:"left"})]}),T&&c.jsxs("div",{className:"tooltip-parent",children:[c.jsx("button",{onClick:()=>l.edit.onclick(e),disabled:l.edit.disabled||!1,children:c.jsx("img",{src:N1})}),c.jsx(Je,{text:l.edit.tooltiptext,position:"left"})]}),l.info&&e.is_default&&c.jsxs("div",{className:"tooltip-parent",children:[c.jsx("button",{onClick:()=>l.info.onclick(e),disabled:l.info.disabled||!1,children:c.jsx("img",{src:O1})}),c.jsx(Je,{text:l.info.tooltiptext,position:"left"})]}),j&&c.jsxs("div",{className:"tooltip-parent",children:[c.jsx("button",{onClick:()=>l.trash.onclick(e),disabled:l.trash.disabled||!1,children:c.jsx("img",{src:T1})}),c.jsx(Je,{text:l.trash.tooltiptext,position:"left"})]}),e.is_default&&c.jsxs("div",{className:"tooltip-parent",children:[c.jsx("img",{src:E1}),c.jsx(Je,{text:d,position:"left"})]})]}),i&&c.jsx("div",{className:We.break}),i&&c.jsxs("div",{className:We.moreInfoContainer,children:[c.jsxs("div",{className:We.moreInfo,onClick:()=>x(!f),children:[c.jsx("span",{children:f?"-":"+"}),S(i.label)]}),i&&f&&c.jsx("div",{className:We.moreInfoInfo,children:e[i.info]})]})]})};Si.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 ls="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",Ti=({elementsList:e,activeElementId:t,fontColor:n="#605B56",activeColor:r,buttonContainerStyles:o={},containerStyles:i={},newElementButton:a,onClickElement:l=v=>console.log(`OnCLickElement: ${v}`),columns:u,elementButtons:d,moreInfo:h=!1,processTooltip:g,defaultTooltip:y,showEye:m=!0})=>{const{t:v}=oe.useTranslation(),[f,x]=_.useState(e);_.useEffect(()=>{e&&x(e)},[e]);const S=b=>{if(typeof b!="string")return null;if(/^\d{4}[-/]\d{2}[-/]\d{2}$/.test(b))return new Date(b);const C=/^(\d{2})[-/.]\s*(\d{2})[-/.]\s*(\d{4})$/.exec(b);if(C)return new Date(`${C[3]}-${C[2]}-${C[1]}`);const w=/^(\d{2})[-/]\s*(\d{2})[-/]\s*(\d{4})$/.exec(b);return w?parseInt(w[1])>12?new Date(`${w[3]}-${w[2]}-${w[1]}`):new Date(`${w[3]}-${w[1]}-${w[2]}`):null},T=b=>S(b)!==null,j=b=>{if(!f||f.length===0)return;let C=[...f];const w=C.find(R=>R[b]!==null&&R[b]!==void 0),L=w?T(w[b]):!1;C.sort((R,N)=>{const q=R[b],F=N[b];if(q==null&&F==null)return 0;if(q==null)return 1;if(F==null)return-1;if(L){const k=S(q),B=S(F);return!k&&!B?0:k?B?k-B:-1:1}const p=String(q||"").trim(),E=String(F||"").trim();return p.localeCompare(E)}),x(C)};return c.jsxs("div",{className:nt.elementSelector,style:{color:n,...i},children:[c.jsxs("div",{className:nt.header,style:{borderBottom:`1px solid ${n}`},children:[c.jsx("div",{className:nt.nameDateContainer,children:Object.keys(u).map(b=>b==="name"?c.jsx("div",{className:nt.elementName,children:c.jsxs("button",{onClick:()=>j("name"),children:[c.jsx("span",{children:v(u.name)}),c.jsx("img",{src:ls,alt:"order arrow"})]})},b):b==="data"?c.jsx("div",{className:nt.elementDate,children:c.jsxs("button",{onClick:()=>j("created_at"),children:[c.jsx("span",{children:v(u.data)}),c.jsx("img",{src:ls,alt:"order arrow"})]})},b):c.jsx("div",{className:nt.elementDate,children:c.jsx("span",{children:v(u[b])})},b))}),c.jsx("div",{className:nt.buttonsContainer})]}),c.jsx("div",{className:nt.elementListContainer,children:f&&f.length>0&&f.map(b=>c.jsx(Si,{isActive:t==b.id,listelement:b,fontColor:n,activeColor:r,onClickElement:l,columns:u,elementButtons:d,moreInfo:h,processTooltip:g,defaultTooltip:y,showEye:m},`elementKey${b.id}`))}),a&&c.jsx("div",{className:nt.newElementButtonContainer,children:c.jsx(an,{style:{...o},onClick:a.onClick,borderColor:"grey",disabled:a.disabled||!1,children:v(a.label)})})]})};Ti.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 M1="_formContainer_asv64_2",R1="_categorySelectorContainer_asv64_11",D1="_formObjectContainer_asv64_15",I1="_buttonContainer_asv64_26",Yt={formContainer:M1,categorySelectorContainer:R1,formObjectContainer:D1,buttonContainer:I1},Dt={text:"text",password:"password",radioList:"radioList",select:"select",textDescription:"textDescription",rankingSlider:"rankingSlider"};var P1=e=>e.type==="checkbox",nn=e=>e instanceof Date,Kr=e=>e==null;const ki=e=>typeof e=="object";var Tt=e=>!Kr(e)&&!Array.isArray(e)&&ki(e)&&!nn(e),B1=e=>Tt(e)&&e.target?P1(e.target)?e.target.checked:e.target.value:e,V1=(e,t)=>t.split(".").some((n,r,o)=>!isNaN(Number(n))&&e.has(o.slice(0,r).join("."))),F1=e=>{const t=e.constructor&&e.constructor.prototype;return Tt(t)&&t.hasOwnProperty("isPrototypeOf")},z1=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ji(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(z1&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(Tt(e)&&F1(e)))return e;const r=n?[]:Object.create(Object.getPrototypeOf(e));for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=ji(e[o]));return r}var $i=e=>/^\w*$/.test(e),Lr=e=>e===void 0,q1=e=>Array.isArray(e)?e.filter(Boolean):[],Ei=e=>q1(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ie=(e,t,n)=>{if(!t||!Tt(e))return n;const r=($i(t)?[t]:Ei(t)).reduce((o,i)=>Kr(o)?o:o[i],e);return Lr(r)||r===e?Lr(e[t])?n:e[t]:r},Cr=e=>typeof e=="boolean",jn=e=>typeof e=="function",cs=(e,t,n)=>{let r=-1;const o=$i(t)?[t]:Ei(t),i=o.length,a=i-1;for(;++r<i;){const l=o[r];let u=n;if(r!==a){const d=e[l];u=Tt(d)||Array.isArray(d)?d:isNaN(+o[r+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=u,e=e[l]}};const us={BLUR:"blur",CHANGE:"change"},ds={all:"all"},Ni=_.createContext(null);Ni.displayName="HookFormControlContext";const Gr=()=>_.useContext(Ni);var W1=(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]!==ds.all&&(t._proxyFormState[a]=!r||ds.all),n&&(n[a]=!0),e[a]}});return o};const Oi=typeof window<"u"?_.useLayoutEffect:_.useEffect;function U1(e){const t=Gr(),{control:n=t,disabled:r,name:o,exact:i}=e||{},[a,l]=_.useState(n._formState),u=_.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Oi(()=>n._subscribe({name:o,formState:u.current,exact:i,callback:d=>{!r&&l({...n._formState,...d})}}),[o,r,i]),_.useEffect(()=>{u.current.isValid&&n._setValid(!0)},[n]),_.useMemo(()=>W1(a,n,u.current,!1),[a,n])}var Z1=e=>typeof e=="string",fs=(e,t,n,r,o)=>Z1(e)?Ie(n,e,o):Array.isArray(e)?e.map(i=>Ie(n,i)):n,ps=e=>Kr(e)||!ki(e);function Mn(e,t,n=new WeakSet){if(ps(e)||ps(t))return Object.is(e,t);if(nn(e)&&nn(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 l=t[i];if(nn(a)&&nn(l)||(Tt(a)||Array.isArray(a))&&(Tt(l)||Array.isArray(l))?!Mn(a,l,n):!Object.is(a,l))return!1}}return!0}function H1(e){const t=Gr(),{control:n=t,name:r,defaultValue:o,disabled:i,exact:a,compute:l}=e||{},u=_.useRef(o),d=_.useRef(l),h=_.useRef(void 0),g=_.useRef(n),y=_.useRef(r);d.current=l;const[m,v]=_.useState(()=>{const b=n._getWatch(r,u.current);return d.current?d.current(b):b}),f=_.useCallback(b=>{const C=fs(r,n._names,b||n._formValues,!1,u.current);return d.current?d.current(C):C},[n._formValues,n._names,r]),x=_.useCallback(b=>{if(!i){const C=fs(r,n._names,b||n._formValues,!1,u.current);if(d.current){const w=d.current(C);Mn(w,h.current)||(v(w),h.current=w)}else v(C)}},[n._formValues,n._names,i,r]);Oi(()=>((g.current!==n||!Mn(y.current,r))&&(g.current=n,y.current=r,x()),n._subscribe({name:r,formState:{values:!0},exact:a,callback:b=>{x(b.values)}})),[n,a,r,x]),_.useEffect(()=>n._removeUnmounted());const S=g.current!==n,T=y.current,j=_.useMemo(()=>{if(i)return null;const b=!S&&!Mn(T,r);return S||b?f():null},[i,S,r,T,f]);return j!==null?j:m}function K1(e){const t=Gr(),{name:n,disabled:r,control:o=t,shouldUnregister:i,defaultValue:a,exact:l=!0}=e,u=V1(o._names.array,n),d=_.useMemo(()=>Ie(o._formValues,n,Ie(o._defaultValues,n,a)),[o,n,a]),h=H1({control:o,name:n,defaultValue:d,exact:l}),g=U1({control:o,name:n,exact:l}),y=_.useRef(e),m=_.useRef(void 0),v=_.useRef(o.register(n,{...e.rules,value:h,...Cr(e.disabled)?{disabled:e.disabled}:{}}));y.current=e;const f=_.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ie(g.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ie(g.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ie(g.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ie(g.validatingFields,n)},error:{enumerable:!0,get:()=>Ie(g.errors,n)}}),[g,n]),x=_.useCallback(b=>v.current.onChange({target:{value:B1(b),name:n},type:us.CHANGE}),[n]),S=_.useCallback(()=>v.current.onBlur({target:{value:Ie(o._formValues,n),name:n},type:us.BLUR}),[n,o._formValues]),T=_.useCallback(b=>{const C=Ie(o._fields,n);C&&C._f&&b&&(C._f.ref={focus:()=>jn(b.focus)&&b.focus(),select:()=>jn(b.select)&&b.select(),setCustomValidity:w=>jn(b.setCustomValidity)&&b.setCustomValidity(w),reportValidity:()=>jn(b.reportValidity)&&b.reportValidity()})},[o._fields,n]),j=_.useMemo(()=>({name:n,value:h,...Cr(r)||g.disabled?{disabled:g.disabled||r}:{},onChange:x,onBlur:S,ref:T}),[n,r,g.disabled,x,S,T,h]);return _.useEffect(()=>{const b=o._options.shouldUnregister||i,C=m.current;C&&C!==n&&!u&&o.unregister(C),o.register(n,{...y.current.rules,...Cr(y.current.disabled)?{disabled:y.current.disabled}:{}});const w=(L,R)=>{const N=Ie(o._fields,L);N&&N._f&&(N._f.mount=R)};if(w(n,!0),b){const L=ji(Ie(o._options.defaultValues,n,y.current.defaultValue));cs(o._defaultValues,n,L),Lr(Ie(o._formValues,n))&&cs(o._formValues,n,L)}return!u&&o.register(n),m.current=n,()=>{(u?b&&!o._state.action:b)?o.unregister(n):w(n,!1)}},[n,o,u,i]),_.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),_.useMemo(()=>({field:j,formState:g,fieldState:f}),[j,g,f])}const dn=e=>e.render(K1(e)),G1=_.createContext(null);G1.displayName="HookFormContext";const Y1="_textInputContainer_1o3iy_2",X1="_labelContainer_1o3iy_5",Q1="_inputContainer_1o3iy_8",J1="_showPasswordButton_1o3iy_14",ed="_forgotPassButton_1o3iy_26",Xt={textInputContainer:Y1,labelContainer:X1,inputContainer:Q1,showPasswordButton:J1,forgotPassButton:ed},td="_errorMessage_1xiyb_2",nd={errorMessage:td},Ut=({errorMessage:e,errorColor:t="red",containerStyles:n})=>{const{t:r}=oe.useTranslation();return c.jsx("div",{className:nd.errorMessage,style:{color:t,...n},children:e?r(e):""})},rd="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",od="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",fn=Cs.create(e=>({errorColor:"red"})),Mr=({input:e,reactHookFormInstance:t})=>{const{code:n,type:r,label:o,maxLength:i,required:a,validateFunction:l,placeholder:u,errorColor:d="red",width:h=325,onClickForgotPass:g=()=>{console.log("Click on forgot password")},forgotPassLabel:y="forgot-password",onChangeExtraFunction:m=()=>{}}=e,{t:v}=oe.useTranslation(),{control:f,trigger:x,clearErrors:S}=t,{errorColor:T}=fn(w=>w),[j,b]=_.useState(!1);_.useRef(a);const C=()=>r?r==="password"&&j?"text":r:"text";return c.jsx(dn,{name:n,control:f,rules:{required:a?`${v(o)} ${v("errorMessages.required")}`:!1,maxLength:i||void 0,validate:l||void 0},render:({field:w,fieldState:L})=>{var F;const{onChange:R,...N}=w,q=p=>{R(p),m&&m(p)};return c.jsxs("div",{className:Xt.textInputContainer,children:[c.jsxs("h3",{className:Xt.labelContainer,children:[v(o)," ",a&&c.jsx("label",{style:{color:L.error?d:""},children:"*"})]}),c.jsxs("div",{style:{position:"relative",width:h},className:Xt.inputContainer,children:[c.jsx("input",{...N,type:C(),onChange:q,placeholder:u?v(u):"",maxLength:i||void 0}),r=="password"&&c.jsx("button",{onClick:()=>b(!j),type:"button",className:Xt.showPasswordButton,children:c.jsx("img",{src:j?od:rd,alt:v("show-password")})})]}),r=="password"&&c.jsx("div",{className:Xt.forgotPassButton,children:c.jsx("button",{onClick:g,children:v(y)})}),c.jsx(Ut,{errorMessage:(F=L.error)==null?void 0:F.message,errorColor:T||d})]})}})},sd="_inputsContainer_10t9s_2",It={inputsContainer:sd},id="_selectInputContainer_zzz6o_2",ad="_labelContainer_zzz6o_6",ld="_selectWrapper_zzz6o_9",cd="_inputContainer_zzz6o_15",ud="_selectInput_zzz6o_2",dd="_option_zzz6o_29",fd="_dropdownArrow_zzz6o_32",Re={selectInputContainer:id,labelContainer:ad,selectWrapper:ld,inputContainer:cd,selectInput:ud,option:dd,dropdownArrow:fd},ms="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",Ai=({input:e,reactHookFormInstance:t,onChange:n})=>{const{code:r,type:o,label:i,maxLength:a,required:l,validateFunction:u,placeholder:d,errorColor:h="red",width:g=325,options:y=[]}=e,{t:m}=oe.useTranslation(),{control:v,trigger:f,clearErrors:x}=t||{},{errorColor:S}=fn(b=>b);_.useRef(l);const[T,j]=_.useState(null);return _.useEffect(()=>{T&&n&&n(T)},[T,n]),t?c.jsx(dn,{name:r,control:v,rules:{required:l?`${m(i)} ${m("errorMessages.required")}`:!1,validate:u?b=>{let C=t.getValues();return u(b,C)}:void 0},render:({field:b,fieldState:C})=>{var L;const w=y.find(R=>R.value===b.value);return c.jsxs("div",{className:Re.selectInputContainer,children:[i&&c.jsxs("h3",{className:Re.labelContainer,children:[m(i)," ",l&&c.jsx("label",{style:{color:C.error?h:""},children:"*"})]}),c.jsxs("div",{className:Re.selectWrapper,children:[c.jsxs("div",{className:Re.inputContainer,style:{width:g},children:[c.jsxs("select",{...b,value:b.value??"",onChange:R=>{const N=R.target.value,q=y.every(F=>typeof F.value=="number")?Number(N):N;b.onChange(q)},className:Re.selectInput,children:[c.jsx("option",{value:"",disabled:!0,hidden:!0,children:m(d||"selectOption")}),y.map((R,N)=>c.jsx("option",{value:R.value,className:Re.option,children:m(R.label)},N))]}),c.jsx("img",{src:ms,alt:"Open",className:Re.dropdownArrow})]}),w&&w.description&&c.jsx("div",{className:Re.optionDescription,children:m(w.description)})]}),c.jsx(Ut,{errorMessage:(L=C.error)==null?void 0:L.message,errorColor:S||h})]})}}):c.jsxs("div",{className:Re.selectInputContainer,children:[i&&c.jsxs("h3",{className:Re.labelContainer,children:[m(i)," ",l&&c.jsx("label",{children:"*"})]}),c.jsxs("div",{className:Re.inputContainer,style:{width:g},children:[c.jsxs("select",{value:T??"",onChange:b=>{const C=b.target.value,w=y.every(L=>typeof L.value=="number")?Number(C):C;j(w)},className:Re.selectInput,children:[c.jsx("option",{value:"",disabled:!0,hidden:!0,children:m(d||"selectOption")}),y.map((b,C)=>c.jsx("option",{value:b.value,className:Re.option,children:m(b.label)},C))]}),c.jsx("img",{src:ms,alt:"Open",className:Re.dropdownArrow})]}),(()=>{const b=y.find(C=>C.value===T);return b&&b.description?c.jsx("div",{className:Re.optionDescription,children:m(b.description)}):null})()]})},pd="_radioButtonContainer_1e994_2",md="_wholeInputContainer_1e994_5",hd="_questionContainer_1e994_27",gd="_radioQuestion_1e994_59",yd="_inputContainer_1e994_63",bd="_radioInput_1e994_93",Ct={radioButtonContainer:pd,wholeInputContainer:md,questionContainer:hd,radioQuestion:gd,inputContainer:yd,radioInput:bd},Li=({input:e,reactHookFormInstance:t})=>{const{code:n,label:r,required:o,validateFunction:i,errorColor:a="red",options:l=[],multi:u=!1}=e,{t:d}=oe.useTranslation(),{control:h,trigger:g,clearErrors:y}=t,{errorColor:m}=fn(x=>x),v=({options:x,onChange:S,actualValue:T})=>{if(u&&T&&T.length>0){let j=T.filter(b=>b!==x);S(j)}},f=({options:x,onChange:S,actualValue:T})=>{u?T&&T.length>0?S([...T,x]):S([x]):S(x)};return _.useRef(o),c.jsx(dn,{control:h,name:n,rules:{validate:x=>o&&(x==null||x==="")?`${d(r)} ${d("errorMessages.required")}`:null},render:({formState:{errors:x},field:{onChange:S,onBlur:T,value:j,ref:b},fieldState:C})=>{var w;return c.jsx("div",{id:n+"id",className:Ct.radioButtonContainer,children:c.jsxs("div",{className:Ct.wholeInputContainer,children:[r&&c.jsx("div",{className:Ct.questionContainer,children:c.jsxs("h3",{htmlFor:n+"id",className:`${Ct.radioQuestion} ${o&&Ct.required}`,children:[d(r)," ",o&&c.jsx("label",{style:{color:C.error?a:""},children:"*"})]})}),c.jsxs("div",{className:Ct.inputContainer,children:[l.map(({label:L,value:R,disabled:N=!1,italicLabel:q},F)=>{const p=j&&u?j.isArray&&(j==null?void 0:j.length)>0&&j.some(E=>E===R):j===R;return c.jsxs("label",{children:[c.jsx("input",{type:"radio",checked:p,onChange:()=>{u?p?v({actualValue:j,options:l,onChange:S}):f({actualValue:j,options:l,onChange:S}):S(R)},className:Ct.radioInput}),c.jsx("span",{className:"radio-custom"}),d(L)]},`inputRadio ${F}`)}),c.jsx(Ut,{errorMessage:(w=C.error)==null?void 0:w.message,errorColor:m||a})]})]})})}})},vd="_rankingSliderContainer_1dvpb_2",Cd="_labelContainer_1dvpb_6",xd="_inputContainer_1dvpb_10",_d="_slider_1dvpb_20",wd="_thumb_1dvpb_27",Sd="_labels_1dvpb_37",Td="_minLabel_1dvpb_67",kd="_maxLabel_1dvpb_68",ke={rankingSliderContainer:vd,labelContainer:Cd,inputContainer:xd,slider:_d,thumb:wd,labels:Sd,minLabel:Td,maxLabel:kd},Yr=({input:e,reactHookFormInstance:t,onChange:n})=>{const{code:r,label:o,minValue:i=1,maxValue:a=5,defValue:l=3,thumbColor:u="#B32F5D",required:d,errorColor:h="red",labelWidth:g="300px",sliderWidth:y="300px",minText:m,maxText:v,disabled:f=!1,marks:x=Array.from({length:a-i+1},(N,q)=>i+q),showMarksNumber:S=!0}=e,{t:T}=oe.useTranslation(),{control:j,trigger:b,clearErrors:C}=t||{};_.useRef(d);const{errorColorForm:w}=fn(N=>N),[L,R]=_.useState(l);return t?c.jsx(dn,{name:r,control:j,defaultValue:l,rules:{required:d?`${T(o)} ${T("errorMessages.required")}`:!1},render:({field:N,fieldState:q})=>{var F;return c.jsxs("div",{className:ke.rankingSliderContainer,style:{gridTemplateColumns:`${o&&g} ${y}`},children:[o&&c.jsx("p",{className:ke.labelContainer,style:{color:f?"#CCCCCC":"#605B56"},children:T(o)}),c.jsxs("div",{className:ke.inputContainer,children:[m&&c.jsx("div",{className:ke.minLabel,children:T(m)}),c.jsxs("div",{children:[c.jsx(kr,{min:i,max:a,step:1,value:N.value??l,onChange:p=>{N.onChange(p)},marks:!0,className:ke.slider,thumbClassName:ke.thumb,renderThumb:p=>c.jsx("div",{...p,style:{...p.style,backgroundColor:f?"#CCCCCC":u,cursor:f?"not-allowed":"grab"}}),trackClassName:ke.track,markClassName:ke.mark,disabled:f}),x&&c.jsx("div",{className:ke.labels,children:x.map(p=>c.jsx("span",{children:S&&p},p))})]}),v&&c.jsx("div",{className:ke.maxLabel,children:T(v)})]}),c.jsx(Ut,{errorMessage:(F=q.error)==null?void 0:F.message,errorColor:w||h})]})}}):c.jsxs("div",{className:ke.rankingSliderContainer,style:{gridTemplateColumns:`${o&&g} ${y}`},children:[o&&c.jsx("p",{className:ke.labelContainer,style:{color:f?"#CCCCCC":"#605B56"},children:T(o)}),c.jsxs("div",{className:ke.inputContainer,children:[m&&c.jsx("div",{className:ke.minLabel,children:T(m)}),c.jsxs("div",{children:[c.jsx(kr,{min:i,max:a,step:1,value:L,onChange:N=>{R(N),n&&n(N)},marks:!0,className:ke.slider,thumbClassName:ke.thumb,renderThumb:N=>c.jsx("div",{...N,style:{...N.style,backgroundColor:f?"#CCCCCC":u,cursor:f?"not-allowed":"grab"}}),trackClassName:ke.track,markClassName:ke.mark,disabled:f}),x&&c.jsx("div",{className:ke.labels,children:x.map(N=>c.jsx("span",{children:S&&N},N))})]}),v&&c.jsx("div",{className:ke.maxLabel,children:T(v)})]})]})};Yr.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 jd="_textDescriptionContainer_163pc_2",$d="_textDescriptionText_163pc_6",hs={textDescriptionContainer:jd,textDescriptionText:$d},Ed=({input:e,inputContainerStyles:t})=>c.jsx("div",{className:hs.textDescriptionContainer,style:{margin:"10px 0",...t},children:c.jsx("p",{className:hs.textDescriptionText,children:e.text})}),Qt=({inputs:e,inputContainerStyles:t,reactHookFormInstance:n})=>{const{watch:r}=n,o=r(),i=_.useMemo(()=>e==null?void 0:e.map(a=>{const l=typeof a.required=="function"?a.required(o):a.required;return{...a,required:l}}),[e,o]);return c.jsx("div",{className:It.inputsContainer,children:i==null?void 0:i.map((a,l)=>{const{inputType:u}=a;switch(u){case Dt.text:return c.jsx("div",{className:It.inputContainer,style:{...t},children:c.jsx(Mr,{input:a,reactHookFormInstance:n})},`${a.code}${l}`);case Dt.password:return c.jsx("div",{className:It.inputContainer,style:{...t},children:c.jsx(Mr,{input:a,reactHookFormInstance:n})},`${a.code}${l}`);case Dt.select:return c.jsx("div",{className:It.inputContainer,style:{...t},children:c.jsx(Ai,{input:a,reactHookFormInstance:n})},`${a.code}${l}`);case Dt.radioList:return c.jsx("div",{className:It.inputContainer,style:{...t},children:c.jsx(Li,{input:a,reactHookFormInstance:n})},`${a.code}${l}`);case Dt.rankingSlider:return c.jsx("div",{className:It.inputContainer,style:{...t},children:c.jsx(Yr,{input:a,reactHookFormInstance:n})},`${a.code}${l}`);case Dt.textDescription:return c.jsx(Ed,{input:a,inputContainerStyles:t},`${a.code}${l}`);default:return c.jsx("div",{children:c.jsx("h4",{children:"Default"})},`${a.code}${l}`)}})})},Nd="_categorySelector_1guuv_2",Od="_sectionItemActive_1guuv_16",Ad="_sectionItem_1guuv_16",Ld="_sectionItemError_1guuv_32",Jt={categorySelector:Nd,sectionItemActive:Od,sectionItem:Ad,sectionItemError:Ld},Rr=({categories:e,onChange:t,activeCategory:n,activeColor:r,containerStyles:o={},categoriesWithErrors:i=[]})=>{const{t:a}=oe.useTranslation(),l=u=>{t(u)};return c.jsx("div",{className:Jt.categorySelector,style:o?{...o}:{},children:e.map((u,d)=>{const{id:h,label:g}=u,y=n==h,m=i.includes(h);return c.jsx("button",{className:`${Jt.sectionItem} ${y?Jt.sectionItemActive:""} ${m?Jt.sectionItemError:""}`,type:"button",style:{backgroundColor:y?r:"inherit"},onClick:()=>l(h),children:c.jsx("span",{style:{color:y?"white":"inherit"},className:Jt.sectionLabel,children:a(g)})},`keySection${d}`)})})},Md=({reactHookFormInstance:e,formObject:t,CategoryComponent:n,inputContainerStyles:r,generalError:o,errorColor:i="red",submitButtonLabel:a="Submit",submitButtonStyles:l={width:325},showCategorySelector:u=!0,defaultCategory:d=null,categoryLabel:h="Select Category",activeCategory:g=null,activeCategoryColor:y="#b32f5d",categoriesWithErrors:m=[],onSubmit:v=f=>console.log("Form submitted with: ",f)})=>{const{t:f}=oe.useTranslation(),{handleSubmit:x,control:S}=e;_.useEffect(()=>{i&&fn.setState(()=>({errorColor:i}))},[i]);const T=_.useMemo(()=>t?t.filter(N=>N.category).map(N=>{var q;return{id:N.categoryId,label:N.category,hasSubcategories:((q=N.subcategories)==null?void 0:q.length)>0}}):[],[t]),j=N=>{const q=t==null?void 0:t.find(F=>F.categoryId===N);return(q==null?void 0:q.subcategories)||[]},[b,C]=_.useState(g||d||null),[w,L]=_.useState(null);_.useEffect(()=>{!b&&T.length>0&&C(T[0].id)},[T,b]),_.useEffect(()=>{const N=j(b);!w&&(N==null?void 0:N.length)>0&&L(N[0].id)},[b,w,t]);const R=(N,q)=>{var F;if(((F=N.subcategories)==null?void 0:F.length)>0){const p=N.subcategories;return c.jsxs("div",{children:[c.jsx("div",{className:Yt.categorySelectorContainer,children:c.jsx(Rr,{activeCategory:w,categories:p,categoriesWithErrors:m,onChange:E=>L(E),activeColor:y})},N.categoryId),p.map((E,k)=>{const B=!w||E.id===w;return n?c.jsx("div",{style:{display:B?"block":"none",width:"100%"},children:c.jsx(n,{title:E.label,children:c.jsx(Qt,{inputs:E.inputs,control:S,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e})},E.id)},`${E.id}${k}`):c.jsxs("div",{style:{width:"100%",display:B?"block":"none"},children:[c.jsx("h3",{style:{marginBottom:15},children:f(E.label)}),c.jsx(Qt,{inputs:E.inputs,control:S,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e})]},`${E.id}${k}`)})]})}return n?c.jsx(n,{title:N.category,children:c.jsx(Qt,{inputs:N.inputs,control:S,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e})},N.categoryId):c.jsxs("div",{style:{width:"100%"},children:[c.jsx("h2",{children:f(N.category)}),c.jsx(Qt,{inputs:N.inputs,control:S,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e})]},N.categoryId)};return c.jsxs("form",{className:Yt.formContainer,onSubmit:x(v),children:[u&&T.length>0&&c.jsx("div",{className:Yt.categorySelectorContainer,children:c.jsx(Rr,{activeCategory:b,categories:T,categoriesWithErrors:m,onChange:N=>{C(N),L(null)},activeColor:y})}),c.jsx("div",{className:Yt.formObjectContainer,children:t==null?void 0:t.map((N,q)=>{const F=N.categoryId===b;return N.category?c.jsx("div",{style:{width:"100%",display:F?"block":"none"},children:R(N)},N.categoryId):c.jsx(Qt,{inputs:N.inputs,control:S,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e},`no-category-${q}`)})}),c.jsxs("div",{className:Yt.buttonContainer,children:[c.jsx(an,{containerStyles:l,type:"submit",children:f(a)}),c.jsx(Ut,{errorMessage:o,errorColor:i})]})]})},Rd="_overlay_mnd4j_2",Dd="_modal_mnd4j_15",Id="_closeButton_mnd4j_29",Pd="_icon_mnd4j_39",Bd="_message_mnd4j_45",Vd="_submessage_mnd4j_51",Fd="_buttonsContainer_mnd4j_57",zd="_buttonWrapper_mnd4j_64",ut={overlay:Rd,modal:Dd,closeButton:Id,icon:Pd,message:Bd,submessage:Vd,buttonsContainer:Fd,buttonWrapper:zd},Mi=({onClose:e,icon:t,message:n,submessage:r,buttons:o,maxHeight:i="450px",maxWidth:a="450px"})=>c.jsx("div",{className:ut.overlay,children:c.jsxs("div",{className:ut.modal,style:{maxHeight:i,maxWidth:a},children:[c.jsx("button",{className:ut.closeButton,onClick:e,"aria-label":"Close modal",children:"✕"}),t&&c.jsx("img",{src:t,alt:"icon",className:ut.icon}),c.jsx("p",{className:ut.message,children:n}),r&&c.jsx("p",{className:ut.submessage,children:r}),o.length>0&&c.jsx("div",{className:ut.buttonsContainer,children:o.map((l,u)=>c.jsx("div",{className:ut.buttonWrapper,children:l},u))})]})});Mi.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 qd="_stepsContainer_1cyua_3",Wd="_stepWrapper_1cyua_9",Ud="_circleContainer_1cyua_19",Zd="_circle_1cyua_19",Hd="_active_1cyua_39",Kd="_completed_1cyua_44",Gd="_label_1cyua_50",Yd="_labelActive_1cyua_56",Xd="_connector_1cyua_61",rt={stepsContainer:qd,stepWrapper:Wd,circleContainer:Ud,circle:Zd,active:Hd,completed:Kd,label:Gd,labelActive:Yd,connector:Xd},Xr=({steps:e,activeColor:t})=>c.jsx("div",{className:rt.stepsContainer,children:e.map((n,r)=>{const o=n.status==="active",i=n.status==="completed";return c.jsxs("div",{className:rt.stepWrapper,children:[c.jsxs("div",{className:rt.circleContainer,children:[c.jsx("div",{className:`${rt.circle}
81
+ ${o?rt.active:""}
82
+ ${i?rt.completed:""}`,style:o?{backgroundColor:t}:{},onClick:n.onClick,children:r+1}),r<e.length-1&&c.jsx("div",{className:rt.connector})]}),c.jsx("div",{className:`${rt.label} ${o?rt.labelActive:""}`,children:n.name})]},r)})});Xr.propTypes={steps:s.arrayOf(s.shape({name:s.string.isRequired,onClick:s.func,status:s.oneOf(["inactive","active","completed"]).isRequired})).isRequired,activeColor:s.string};Xr.defaultProps={activeColor:"#C2185B"};const Qd="_statusTextContainer_ch14r_2",Jd={statusTextContainer:Qd},Qr=({text:e,color:t})=>c.jsx("div",{className:Jd.statusTextContainer,style:{background:t},children:c.jsx("span",{children:e})});Qr.propTypes={text:s.string,color:s.string};Qr.defaultProps={color:"#C2185B"};const ef="_buttonsContainer_1c7dw_2",tf="_button_1c7dw_2",nf="_active_1c7dw_20",$n={buttonsContainer:ef,button:tf,active:nf},Ri=({buttons:e=[]})=>{const{t}=oe.useTranslation();return c.jsx("div",{className:`${$n.buttonsContainer}`,children:e.map((n,r)=>{const{isActive:o,name:i,onClick:a}=n;return c.jsx("div",{children:c.jsx("button",{onClick:a,className:`${$n.button}
83
+ ${o&&$n.active}`,children:c.jsx("span",{className:$n.buttonName,children:t(i)})})},r)})})};Ri.propTypes={buttons:s.arrayOf(s.shape({isActive:s.bool,name:s.string,onClick:s.func})).isRequired};const rf="_switchContainer_194wl_2",of="_labelRight_194wl_9",sf="_labelLeft_194wl_9",af="_slider_194wl_28",lf="_disabled_194wl_54",Pt={switchContainer:rf,labelRight:of,labelLeft:sf,switch:"_switch_194wl_2",slider:af,disabled:lf},Di=({input:e,reactHookFormInstance:t,onChange:n,onoff:r=!0})=>{const{code:o,labelLeft:i,labelRight:a,defValue:l=!1,colorOn:u="#5A514D",disabled:d=!1,width:h=240}=e,{t:g}=oe.useTranslation(),{control:y}=t||{},[m,v]=_.useState(l),f=S=>{v(S),n&&n(S)},x=(S,T)=>c.jsxs("div",{className:Pt.switchContainer,style:{width:`${h}px`},children:[i&&c.jsx("span",{className:Pt.labelLeft,style:{width:`${(h-74)/2}px`},children:g(i)}),c.jsxs("label",{className:`${Pt.switch} ${d?Pt.disabled:""}`,children:[c.jsx("input",{type:"checkbox",checked:!!S,onChange:()=>T(!S),disabled:d}),c.jsx("span",{className:Pt.slider,style:{"--switch-thumb-color":r?S?u:"#ccc":u}})]}),a&&c.jsx("span",{className:Pt.labelRight,style:{width:`${(h-74)/2}px`},children:g(a)})]});return t?c.jsx(dn,{name:o,control:y,defaultValue:l,render:({field:S})=>x(S.value,S.onChange)}):x(m,f)};Di.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 cf="_overlay_1xyw2_2",uf="_popup_1xyw2_15",df="_gif_1xyw2_25",ff="_message_1xyw2_31",En={overlay:cf,popup:uf,gif:df,message:ff},Ii=({gifSrc:e,message:t})=>c.jsx("div",{className:En.overlay,children:c.jsxs("div",{className:En.popup,children:[e&&c.jsx("img",{src:e,alt:"loading animation",className:En.gif}),t&&c.jsx("p",{className:En.message,children:t})]})});Ii.propTypes={gifSrc:s.string,message:s.string};const pf="_container_1pl8d_3",mf="_burger_1pl8d_10",hf="_menu_1pl8d_21",gf="_menuOpen_1pl8d_35",yf="_menuClose_1pl8d_40",bf="_list_1pl8d_46",vf="_item_1pl8d_56",Cf="_button_1pl8d_91",Qe={container:pf,burger:mf,menu:hf,menuOpen:gf,menuClose:yf,list:bf,item:vf,button:Cf},Jr=({options:e,backgroundColor:t,textColor:n,iconColor:r})=>{const[o,i]=_.useState(!1),a=()=>i(v=>!v),l=()=>i(!1),u=7,d=o?11:0,h=o?13:0,g=o?-11.51666:0,y=o?-13:0,m="0.35s";return c.jsxs("div",{className:Qe.container,children:[c.jsx("button",{onClick:a,className:Qe.burger,children:c.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[c.jsx("g",{style:{transform:`translateY(${d}px)`,transition:`transform ${m} cubic-bezier(0.42, 0, 0.58, 1)`},children:c.jsx("circle",{cx:"20",cy:"9",r:u,fill:r})}),c.jsx("g",{style:{transform:`translate(${h}px, ${g}px)`,transition:`transform ${m} cubic-bezier(0.42, 0, 0.58, 1)`},children:c.jsx("circle",{cx:"7",cy:"31.51666",r:u,fill:r})}),c.jsx("g",{style:{transform:`translate(${y}px, ${g}px)`,transition:`transform ${m} cubic-bezier(0.42, 0, 0.58, 1)`},children:c.jsx("circle",{cx:"33",cy:"31.51666",r:u,fill:r})}),c.jsx("g",{style:{opacity:o?1:0,transition:`opacity ${m} cubic-bezier(0.42, 0, 0.58, 1)`},children:c.jsx("circle",{cx:"20",cy:"20",r:"10",fill:r})}),c.jsxs("g",{stroke:t,strokeWidth:"2",strokeLinecap:"round",style:{opacity:o?1:0,transition:`opacity ${m} cubic-bezier(0.42, 0, 0.58, 1)`},children:[c.jsx("line",{x1:"17",y1:"17",x2:"23",y2:"23"}),c.jsx("line",{x1:"23",y1:"17",x2:"17",y2:"23"})]})]})}),c.jsx("div",{className:`${Qe.menu} ${o?Qe.menuOpen:Qe.menuClose}`,style:{backgroundColor:t,color:n},children:c.jsx("ul",{className:Qe.list,children:e.map((v,f)=>c.jsxs("li",{className:Qe.item,children:[v.url&&c.jsx(_s.NavLink,{to:v.url,className:({isActive:x})=>`${Qe.link} ${x?Qe.active:""}`,onClick:l,style:{color:n},children:v.name}),v.onclick&&c.jsx("button",{className:Qe.button,onClick:()=>{v.onclick(),l()},children:v.name}),v.component&&v.component]},f))})})]})};Jr.propTypes={options:s.array.isRequired,backgroundColor:s.string,textColor:s.string,iconColor:s.string};Jr.defaultProps={backgroundColor:"#ffffff",textColor:"#000000",iconColor:"#000000"};const xf="_svgContainer_1rxoe_2",_f="_svg_1rxoe_2",gs={svgContainer:xf,svg:_f},Pi=({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:l=!0,showYAxisLabels:u=!0,showGrid:d=!0,xAxisTickRotation:h=-90,yAxisTickFormat:g=b=>b.toLocaleString("es-ES"),barPadding:y=.1,groupPadding:m=.05,animationDuration:v=750,onBarHover:f,onBarClick:x,title:S,xAxisLabel:T,yAxisLabel:j})=>{const b=_.useRef(),C=_.useRef(),[w,L]=_.useState({width:0,height:0});return _.useEffect(()=>{const R=()=>{if(C.current){const N=C.current.getBoundingClientRect().width;L({width:typeof r=="number"?r:N,height:o})}};return R(),window.addEventListener("resize",R),()=>window.removeEventListener("resize",R)},[r,o]),_.useEffect(()=>{if(!e||e.length===0||w.width===0)return;const R=ce.select(b.current),N=w.width,q=w.height,F=N-i.left-i.right,p=q-i.top-i.bottom;if(F<=0||p<=0)return;const E=e.map(I=>I.anyo||I.year||I.x),k=t,B=ce.min(e,I=>ce.min(k,Z=>I[Z]))||0,V=ce.max(e,I=>ce.max(k,Z=>I[Z]))||0,Y=ce.scaleBand().domain(E).rangeRound([0,F]).paddingInner(y),W=ce.scaleBand().domain(k).rangeRound([0,Y.bandwidth()]).padding(m),ae=ce.scaleLinear().domain([Math.min(0,B),V]).nice().rangeRound([p,0]),M=ce.scaleOrdinal().domain(k).range(Array.isArray(n)?n:Object.values(n||{}));R.selectAll("*").remove();const O=R.append("g").attr("transform",`translate(${i.left},${i.top})`);S&&R.append("text").attr("x",N/2).attr("y",i.top/2).attr("text-anchor","middle").style("font-size","16px").style("font-weight","bold").style("fill","#333").text(S),d&&O.append("g").attr("class","grid").selectAll("line").data(ae.ticks()).enter().append("line").attr("x1",0).attr("x2",F).attr("y1",I=>ae(I)).attr("y2",I=>ae(I)).style("stroke","#e0e0e0").style("stroke-width",.5),l&&(O.append("g").attr("transform",`translate(0,${p})`).call(ce.axisBottom(Y).tickSizeOuter(0)).attr("class","x-axis").selectAll("text").attr("transform",`translate(0,10)rotate(${h})`).style("text-anchor",h<0?"end":"middle").style("font-size","12px").style("fill","#605B56"),T&&O.append("text").attr("transform",`translate(${F/2}, ${p+i.bottom-5})`).style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(T)),u&&(O.append("g").call(ce.axisLeft(ae).ticks(6).tickFormat(g)).attr("class","y-axis").call(I=>I.select(".domain").remove()),j&&O.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(j));const K=O.append("g").selectAll(".bar-group").data(e).enter().append("g").attr("class","bar-group").attr("transform",I=>`translate(${Y(I.anyo||I.year||I.x)},0)`).selectAll(".bar").data(I=>k.map(Z=>({key:Z,value:I[Z],data:I}))).enter().append("rect").attr("class","bar").attr("x",I=>W(I.key)).attr("y",p).attr("width",W.bandwidth()).attr("height",0).attr("fill",I=>M(I.key)).style("cursor",f||x?"pointer":"default");K.transition().duration(v).attr("y",I=>ae(Math.max(0,I.value))).attr("height",I=>Math.abs(ae(I.value)-ae(0))),f&&K.on("mouseover",function(I,Z){ce.select(this).style("opacity",.8),f(I,Z)}).on("mouseout",function(I,Z){ce.select(this).style("opacity",1)}),x&&K.on("click",x)},[e,t,n,w,i,y,m,l,u,d,h,g,v,f,x,S,T,j]),c.jsx("div",{ref:C,className:`${gs.svgContainer} ${a}`,style:{width:r,height:o+i.top+i.bottom},children:c.jsx("svg",{ref:b,className:gs.svg,width:w.width,height:w.height})})};Pi.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 wf="_svgContainer_7fkic_2",Sf="_svg_7fkic_2",ys={svgContainer:wf,svg:Sf},Bi=({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:l="",showXAxisLabels:u=!0,showYAxisLabels:d=!0,showGrid:h=!0,xAxisTickRotation:g=-90,yAxisTickFormat:y=N=>N.toLocaleString("es-ES"),barPadding:m=.4,animationDuration:v=750,onBarHover:f,onBarClick:x,title:S,xAxisLabel:T,yAxisLabel:j,stackOrder:b="reverse",showTooltip:C=!0,reverseKeys:w=!0,minBarSlotWidth:L=60,wrapXAxisLabels:R=!0})=>{const N=_.useRef(),q=_.useRef();_.useRef();const[F,p]=_.useState({containerWidth:0,height:0}),{t:E}=oe.useTranslation();return _.useEffect(()=>{const k=()=>{if(q.current){const B=q.current.getBoundingClientRect().width;p({containerWidth:typeof o=="number"?o:B,height:i})}};return k(),window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)},[o,i]),_.useEffect(()=>{if(!e||e.length===0||F.containerWidth===0)return;const k=ce.select(N.current),{containerWidth:B,height:V}=F,Y=B-a.left-a.right,W=e.length*L,ae=Math.max(Y,W),M=ae+a.left+a.right,O=V-a.top-a.bottom;if(ae<=0||O<=0)return;k.attr("width",M).attr("height",V);const J=w?[...t].reverse():t,K=[];e.forEach(z=>{const ne=z.any||z.year||z.x,xe=J.map(ve=>({key:ve,value:Number(z[ve])||0,data:z})),be=xe.filter(ve=>ve.value<0),Ee=xe.filter(ve=>ve.value>=0);let Pe=0;be.forEach(ve=>{const Be=Pe,A=Pe+ve.value,P=Math.abs(A-Be);K.push({key:ve.key,value:ve.value,y0:Math.max(Be,A),y1:Math.min(Be,A),height:P,data:ve.data,xKey:ne}),Pe=A});let Ke=0;Ee.forEach(ve=>{const Be=Ke,A=Ke+ve.value,P=A-Be;K.push({key:ve.key,value:ve.value,y0:Math.min(Be,A),y1:Math.max(Be,A),height:P,data:ve.data,xKey:ne}),Ke=A})});const I=[ce.min(K,z=>Math.min(z.y0,z.y1))||0,ce.max(K,z=>Math.max(z.y0,z.y1))||0];let Z=[0,0];r&&r.length>0&&(Z=[ce.min(r)||0,ce.max(r)||0]);const te=[Math.min(I[0],Z[0]),Math.max(I[1],Z[1])],G=ce.scaleBand().domain(e.map(z=>z.any||z.year||z.x)).range([0,ae]).padding(m),U=ce.scaleLinear().domain([te[0],te[1]]).nice(6).range([O,0]),re=ce.scaleOrdinal().domain(t).range(Array.isArray(n)?n:Object.values(n||{})),ee=r&&r.length>0?e.map((z,ne)=>{const xe=G(z.any||z.year||z.x)+G.bandwidth()/2,be=U(r[ne]||0);return{x:xe,y:be}}):[];k.selectAll("*").remove();const le=k.append("g").attr("transform",`translate(${a.left},${a.top})`);S&&k.append("text").attr("x",svgWidth/2).attr("y",a.top/2).attr("text-anchor","middle").style("font-size","16px").style("font-weight","bold").style("fill","#333").text(S),h&&le.append("g").attr("class","grid").selectAll("line").data(U.ticks(6)).enter().append("line").attr("x1",0).attr("x2",ae).attr("y1",z=>U(z)).attr("y2",z=>U(z)).style("stroke","#e0e0e0").style("stroke-width",.5);const D=(z,ne=12)=>{if(!R||z.length<=ne)return[z];const xe=Math.floor(z.length/2);let be=xe;for(let Ee=xe;Ee>=0;Ee--)if(z[Ee]===" "){be=Ee;break}if(be===xe){for(let Ee=xe;Ee<z.length;Ee++)if(z[Ee]===" "){be=Ee;break}}return be===xe&&(be=xe),[z.substring(0,be),z.substring(be+1)]};u&&(le.append("g").attr("class","x-axis").attr("transform",`translate(0, ${O})`).call(ce.axisBottom(G).tickSizeOuter(0)).selectAll("text").remove(),le.append("g").attr("class","x-axis-labels").attr("transform",`translate(0, ${O})`).selectAll(".x-label-group").data(e).enter().append("g").attr("class","x-label-group").attr("transform",be=>`translate(${G(be.any||be.year||be.x)+G.bandwidth()/2}, 0)`).each(function(be){const Ee=String(be.any||be.year||be.x),Pe=D(Ee),Ke=ce.select(this);if(Pe.length===1)Ke.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 A=-(Pe.length*14/2)+14/2;Pe.forEach((P,H)=>{Ke.append("text").attr("x",A+H*14).attr("y",19).style("text-anchor","end").style("font-size","11px").style("fill","#605B56").attr("transform",`rotate(${g} ${A+H*14} 15)`).text(P)})}}),T&&le.append("text").attr("transform",`translate(${ae/2}, ${O+a.bottom-5})`).style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(T)),d&&(le.append("g").attr("class","y-axis").call(ce.axisLeft(U).ticks(6).tickFormat(y)).call(z=>z.select(".domain").remove()),le.append("g").attr("class","y-ticks").attr("transform",`translate(${ae}, 0)`).call(ce.axisLeft(U).ticks(6).tickSizeInner(ae)).call(z=>z.select(".domain").remove()).call(z=>z.selectAll(".tick text").remove()),j&&le.append("text").attr("transform","rotate(-90)").attr("y",0-a.left).attr("x",0-O/2).attr("dy","1em").style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(j));let se;C&&(se=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 Le=le.selectAll(".segment").data(K,z=>`${z.xKey}-${z.key}`);Le.exit().remove();const Ye=Le.enter().append("rect").attr("class","segment").attr("x",z=>G(z.xKey)).attr("width",G.bandwidth()).attr("y",z=>U(0)).attr("height",0).attr("fill",z=>re(z.key)).style("cursor",f||x||C?"pointer":"default").merge(Le);if(Ye.transition().duration(v).attr("x",z=>G(z.xKey)).attr("y",z=>Math.min(U(z.y0),U(z.y1))).attr("height",z=>Math.abs(U(z.y1)-U(z.y0))),(C||f)&&Ye.on("mouseover",function(z,ne){const xe=ne.value;C&&se&&se.style("visibility","visible").html(`
84
84
  <strong>${E(ne.key)}</strong><br/>
85
85
  ${ne.xKey}<br/>
86
86
  ${y(xe)}
87
- `),ce.select(this).style("opacity",.8),f&&f(z,{key:ne.key,value:xe,data:ne.data})}).on("mousemove",function(z){C&&se&&se.style("top",z.pageY-10+"px").style("left",z.pageX+10+"px")}).on("mouseout",function(){C&&se&&se.style("visibility","hidden"),ce.select(this).style("opacity",1)}),x&&Ye.on("click",function(z,ne){const xe=ne.value;x(z,{key:ne.key,value:xe,data:ne.data})}),ee&&ee.length>1){const z=ce.line().x(ne=>ne.x).y(ne=>ne.y).curve(ce.curveMonotoneX);le.append("path").datum(ee).attr("class","line").attr("d",z).attr("fill","none").attr("stroke","#ff6b6b").attr("stroke-width",2).attr("stroke-linecap","round").attr("stroke-linejoin","round"),le.selectAll(".line-point").data(ee).enter().append("circle").attr("class","line-point").attr("cx",ne=>ne.x).attr("cy",ne=>ne.y).attr("r",4).attr("fill","#ff6b6b").attr("stroke","white").attr("stroke-width",1)}return()=>{se&&se.remove()}},[e,t,n,o,F,a,m,u,d,h,g,y,v,f,x,S,k,$,b,C,w,R]),c.jsx("div",{ref:q,className:`${ms.svgContainer} ${l}`,style:{width:r,height:i+a.top+a.bottom,overflowX:"auto"},children:c.jsx("svg",{ref:N,className:ms.svg})})};Mi.propTypes={data:s.arrayOf(s.object).isRequired,keys:s.arrayOf(s.string).isRequired,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};const Cf="_externalContainer_1er0i_2",xf="_externalSintetic_1er0i_9",_f="_titles_1er0i_13",wf="_titleContainer_1er0i_22",Sf="_yearTitles_1er0i_36",Tf="_yearTitle_1er0i_36",kf="_yearDatas_1er0i_50",jf="_yearDataContainer_1er0i_58",Ef="_yearDataContent_1er0i_66",$f="_bigNumber_1er0i_79",Nf="_circle_1er0i_82",Of="_totalContainer_1er0i_99",Af="_total_1er0i_99",De={externalContainer:Cf,externalSintetic:xf,titles:_f,titleContainer:wf,yearTitles:Sf,yearTitle:Tf,yearDatas:kf,yearDataContainer:jf,yearDataContent:Ef,bigNumber:$f,circle:Nf,totalContainer:Of,total:Af},Lf=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},Mf=(e,t)=>{let n=0;return t.forEach(o=>{o[e]&&(n+=o[e])}),n},Ri=({data:e,keys:t,colors:n,locales:o,total:r=!1,years:i=!1,activeGraphics:a="ind",units:l={},translate:u,getTotal:d=Mf,columnWidth:h=50})=>{const g=u||(m=>m),y=m=>m==="demanda_red"||m==="reduccio_demanda_red"?(l.demanda||"").replace("(","").replace(")",""):l[m]||"";return c.jsxs("div",{className:`${De.externalContainer} ${a==="sin"?De.externalSintetic:""}`,children:[i===!0&&c.jsxs(c.Fragment,{children:[c.jsx("div",{}),c.jsx("div",{className:De.yearTitles,children:e.map((m,v)=>c.jsx("div",{className:De.yearTitle,style:{width:h},children:m.anyo},v))})]}),c.jsx("div",{className:De.titles,children:t.map((m,v)=>c.jsxs("div",{className:De.titleContainer,children:[g(o[m]),a!=="sin"&&c.jsx("span",{className:De.circle,style:{background:n[m]}})]},v))}),r===!0&&c.jsx("div",{className:De.totalContainer,children:t.map((m,v)=>{var f;return c.jsxs("div",{className:`${De.total} ${d(m,e)>9999||d(m,e)<-9999?De.bigNumber:""}`,children:[(f=d(m,e))==null?void 0:f.toLocaleString("es-ES")," ",y(m)]},v)})}),c.jsx("div",{className:De.yearDatas,children:e.map((m,v)=>c.jsx("div",{className:De.yearDataContainer,style:{width:h},children:t.map((f,x)=>{var S,k;return isNaN(m[f])?null:c.jsx("div",{className:`${De.yearDataContent} ${m[f]>9999||m[f]<-9999?De.bigNumber:""}`,children:m[f]<1e4||m[f]>-1e4?(S=Lf(m[f]))==null?void 0:S.toLocaleString("es-ES"):(k=m[f])==null?void 0:k.toLocaleString("es-ES")},x)})},v))})]})};Ri.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 Rf="_speedGraphic_d1k72_2",Cr={speedGraphic:Rf},Di=({minValue:e=0,maxValue:t=100,value:n=50,title:o=!1,percent:r=!1,unit:i=!1,greenColor:a="#00CF1E",orangeColor:l="#FFAC00",redColor:u="#FF1E37"})=>{n<e&&(n=e),n>t&&(n=t);const d=(n-e)/(t-e),h=270+d*180,g=r?Math.round(d*100):n;return c.jsxs("div",{className:Cr.speedGraphic,children:[c.jsxs("svg",{width:"244",height:"130",viewBox:"0 0 244 130",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.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}),c.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}),c.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:l}),c.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:l}),c.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}),c.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}),c.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}),c.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}),c.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:l}),c.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:l}),c.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}),c.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}),c.jsx("g",{transform:`rotate(${h} 122 122)`,children:c.jsx("path",{id:"aguja",d:"M121 119.5V33",stroke:"#605B56","stroke-width":"2"})})]}),c.jsxs("div",{className:Cr.value,children:[g,r&&"%",i&&i]}),o&&c.jsx("div",{className:Cr.title,children:o})]})};Di.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 Df="_header_13kbt_2",If="_leftComponents_13kbt_13",Pf="_centerComponents_13kbt_14",Vf="_rightComponents_13kbt_15",Bf="_componentsContainer_13kbt_32",Ct={header:Df,leftComponents:If,centerComponents:Pf,rightComponents:Vf,componentsContainer:Bf},Ii=({cssProps:e,leftComponents:t=[],centerComponents:n=[],rightComponents:o=[],zIndex:r=10,height:i=60,backgroundColor:a="#605B56",isFooter:l=!1})=>c.jsxs("div",{className:Ct.header,style:{...e,zIndex:r,height:i,backgroundColor:a,top:l?"auto":0,bottom:l?0:"auto"},children:[c.jsx("div",{className:Ct.leftComponents,children:t.map((u,d)=>c.jsx("div",{className:Ct.componentsContainer,children:u},d))}),c.jsx("div",{className:Ct.centerComponents,children:n.map((u,d)=>c.jsx("div",{className:Ct.componentsContainer,children:u},d))}),c.jsx("div",{className:Ct.rightComponents,children:o.map((u,d)=>c.jsx("div",{className:Ct.componentsContainer,children:u},d))})]});Ii.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 Ff="_sidebar_1kaqu_2",zf="_open_1kaqu_16",qf="_content_1kaqu_20",Wf="_closeButton_1kaqu_25",$n={sidebar:Ff,open:zf,content:qf,closeButton:Wf},Uf="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",Pi=({width:e="300px",children:t,showRightBar:n,onCloseBar:o})=>{const r=()=>{o()};return c.jsx("div",{className:`${$n.sidebar} ${n?$n.open:""}`,style:{width:n?e:0},children:n&&c.jsxs("div",{className:$n.content,children:[c.jsx("button",{className:$n.closeButton,onClick:r,children:c.jsx("img",{src:Uf,alt:"Close Sidebar"})}),t]})})};Pi.propTypes={width:s.string,children:s.node,showRightBar:s.bool,onCloseBar:s.func};exports.AmbitSelector=_s;exports.BarChart=Ir;exports.BurgerMenu=Xr;exports.ButtonsBar=Ni;exports.ButtonsList=ws;exports.CategorySelector=Lr;exports.DropdownList=pt;exports.EditAmbit=Ua;exports.ErrorMessage=Wt;exports.FiltersAmbit=Ns;exports.Form=$d;exports.GeneralButton=sn;exports.Graphic=Os;exports.GraphicLegend=Ri;exports.Groupedbarchart=Li;exports.HeaderSection=Ii;exports.IndicatorsList=Ms;exports.LangSelector=Rs;exports.Legend=Ds;exports.ListSelector=Ci;exports.Loader=Ai;exports.LogInButton=bi;exports.LogoApp=Is;exports.MapboxMap=qs;exports.MaplibreMap=Ws;exports.ModalAlert=$i;exports.RadioButtonInput=Ei;exports.RankingSlider=Hr;exports.RightSidebar=Pi;exports.SectionBar=Us;exports.SelectInput=ji;exports.SpeedGraphic=Di;exports.Stackedbarchart=Mi;exports.StatusText=Yr;exports.Steps=Gr;exports.Switch=Oi;exports.TextInput=Ar;exports.TimeSlider=gi;exports.Tooltip=Je;exports.TopNavMenu=yi;
87
+ `),ce.select(this).style("opacity",.8),f&&f(z,{key:ne.key,value:xe,data:ne.data})}).on("mousemove",function(z){C&&se&&se.style("top",z.pageY-10+"px").style("left",z.pageX+10+"px")}).on("mouseout",function(){C&&se&&se.style("visibility","hidden"),ce.select(this).style("opacity",1)}),x&&Ye.on("click",function(z,ne){const xe=ne.value;x(z,{key:ne.key,value:xe,data:ne.data})}),ee&&ee.length>1){const z=ce.line().x(ne=>ne.x).y(ne=>ne.y).curve(ce.curveMonotoneX);le.append("path").datum(ee).attr("class","line").attr("d",z).attr("fill","none").attr("stroke","#ff6b6b").attr("stroke-width",2).attr("stroke-linecap","round").attr("stroke-linejoin","round"),le.selectAll(".line-point").data(ee).enter().append("circle").attr("class","line-point").attr("cx",ne=>ne.x).attr("cy",ne=>ne.y).attr("r",4).attr("fill","#ff6b6b").attr("stroke","white").attr("stroke-width",1)}return()=>{se&&se.remove()}},[e,t,n,r,F,a,m,u,d,h,g,y,v,f,x,S,T,j,b,C,w,R]),c.jsx("div",{ref:q,className:`${ys.svgContainer} ${l}`,style:{width:o,height:i+a.top+a.bottom,overflowX:"auto"},children:c.jsx("svg",{ref:N,className:ys.svg})})};Bi.propTypes={data:s.arrayOf(s.object).isRequired,keys:s.arrayOf(s.string).isRequired,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};const Tf="_externalContainer_1er0i_2",kf="_externalSintetic_1er0i_9",jf="_titles_1er0i_13",$f="_titleContainer_1er0i_22",Ef="_yearTitles_1er0i_36",Nf="_yearTitle_1er0i_36",Of="_yearDatas_1er0i_50",Af="_yearDataContainer_1er0i_58",Lf="_yearDataContent_1er0i_66",Mf="_bigNumber_1er0i_79",Rf="_circle_1er0i_82",Df="_totalContainer_1er0i_99",If="_total_1er0i_99",De={externalContainer:Tf,externalSintetic:kf,titles:jf,titleContainer:$f,yearTitles:Ef,yearTitle:Nf,yearDatas:Of,yearDataContainer:Af,yearDataContent:Lf,bigNumber:Mf,circle:Rf,totalContainer:Df,total:If},Pf=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},Bf=(e,t)=>{let n=0;return t.forEach(r=>{r[e]&&(n+=r[e])}),n},Vi=({data:e,keys:t,colors:n,locales:r,total:o=!1,years:i=!1,activeGraphics:a="ind",units:l={},translate:u,getTotal:d=Bf,columnWidth:h=50})=>{const g=u||(m=>m),y=m=>m==="demanda_red"||m==="reduccio_demanda_red"?(l.demanda||"").replace("(","").replace(")",""):l[m]||"";return c.jsxs("div",{className:`${De.externalContainer} ${a==="sin"?De.externalSintetic:""}`,children:[i===!0&&c.jsxs(c.Fragment,{children:[c.jsx("div",{}),c.jsx("div",{className:De.yearTitles,children:e.map((m,v)=>c.jsx("div",{className:De.yearTitle,style:{width:h},children:m.anyo},v))})]}),c.jsx("div",{className:De.titles,children:t.map((m,v)=>c.jsxs("div",{className:De.titleContainer,children:[g(r[m]),a!=="sin"&&c.jsx("span",{className:De.circle,style:{background:n[m]}})]},v))}),o===!0&&c.jsx("div",{className:De.totalContainer,children:t.map((m,v)=>{var f;return c.jsxs("div",{className:`${De.total} ${d(m,e)>9999||d(m,e)<-9999?De.bigNumber:""}`,children:[(f=d(m,e))==null?void 0:f.toLocaleString("es-ES")," ",y(m)]},v)})}),c.jsx("div",{className:De.yearDatas,children:e.map((m,v)=>c.jsx("div",{className:De.yearDataContainer,style:{width:h},children:t.map((f,x)=>{var S,T;return isNaN(m[f])?null:c.jsx("div",{className:`${De.yearDataContent} ${m[f]>9999||m[f]<-9999?De.bigNumber:""}`,children:m[f]<1e4||m[f]>-1e4?(S=Pf(m[f]))==null?void 0:S.toLocaleString("es-ES"):(T=m[f])==null?void 0:T.toLocaleString("es-ES")},x)})},v))})]})};Vi.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 Vf="_speedGraphic_d1k72_2",xr={speedGraphic:Vf},Fi=({minValue:e=0,maxValue:t=100,value:n=50,title:r=!1,percent:o=!1,unit:i=!1,greenColor:a="#00CF1E",orangeColor:l="#FFAC00",redColor:u="#FF1E37"})=>{n<e&&(n=e),n>t&&(n=t);const d=(n-e)/(t-e),h=270+d*180,g=o?Math.round(d*100):n;return c.jsxs("div",{className:xr.speedGraphic,children:[c.jsxs("svg",{width:"244",height:"130",viewBox:"0 0 244 130",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.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}),c.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}),c.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:l}),c.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:l}),c.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}),c.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}),c.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}),c.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}),c.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:l}),c.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:l}),c.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}),c.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}),c.jsx("g",{transform:`rotate(${h} 122 122)`,children:c.jsx("path",{id:"aguja",d:"M121 119.5V33",stroke:"#605B56","stroke-width":"2"})})]}),c.jsxs("div",{className:xr.value,children:[g,o&&"%",i&&i]}),r&&c.jsx("div",{className:xr.title,children:r})]})};Fi.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 _r="#ffffff";function st(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 Ff(e,t,n,r,o,i){const a=st(e,t,r,o),l=st(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 ${l.x} ${l.y} Z`;const d=st(e,t,n,i),h=st(e,t,n,o);return[`M ${a.x} ${a.y}`,`A ${r} ${r} 0 ${u} 1 ${l.x} ${l.y}`,`L ${d.x} ${d.y}`,`A ${n} ${n} 0 ${u} 0 ${h.x} ${h.y}`,"Z"].join(" ")}function zf(e){const t=e.reduce((r,o)=>r+(o.value||0),0);let n=0;return e.map(r=>{const o=r.value/t*360,i=n;return n+=o,{...r,sa:i,ea:n}})}function bs(e,t,n,r,o){const i=n+(r-n)/2,a=st(e,t,o,i);return{tx:a.x-e,ty:a.y-t}}const eo=({type:e="cheese",data:t=[],title:n,size:r=260,donutThickness:o=56,gapWidth:i=3,backgroundColor:a="transparent",fontColor:l="black",fontColorInside:u="white"})=>{const[d,h]=_.useState(null),g=r/2,y=r/2,m=r/2-14,v=e==="donut"?m-o:0,f=e==="donut"?m-o/2:m*.62,x=_.useMemo(()=>zf(t),[t]),S=d!==null?x[d]:null;return c.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"4px",padding:"28px 32px",background:a,borderRadius:"16px",fontFamily:"'Segoe UI', sans-serif"},children:[c.jsxs("div",{style:{minHeight:"40px",display:"flex",flexDirection:"column",gap:"2px"},children:[n&&c.jsx("h2",{style:{margin:0,color:l,fontSize:"22px",fontWeight:"700",letterSpacing:"-0.5px"},children:n}),c.jsx("div",{style:{height:"22px",display:"flex",alignItems:"center",gap:"8px",transition:"opacity 0.15s",opacity:S?1:0},children:S&&c.jsxs(c.Fragment,{children:[c.jsx("span",{style:{display:"inline-block",width:"10px",height:"10px",borderRadius:"50%",background:S.color||_r,flexShrink:0}}),c.jsxs("span",{style:{color:l,fontSize:"14px",fontWeight:"600"},children:[S.title," — ",S.value,"%"]})]})})]}),c.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"16px"},children:[c.jsxs("svg",{width:r,height:r,viewBox:`0 0 ${r} ${r}`,style:{overflow:"visible"},children:[x.map((T,j)=>{const b=d===j,{tx:C,ty:w}=b?bs(g,y,T.sa,T.ea,10):{tx:0,ty:0};return c.jsx("g",{transform:`translate(${C}, ${w})`,style:{cursor:"pointer",transition:"transform 0.18s ease"},onMouseEnter:()=>h(j),onMouseLeave:()=>h(null),children:c.jsx("path",{d:Ff(g,y,v,m,T.sa,T.ea),fill:T.color||_r,style:{filter:b?"brightness(1.25)":"brightness(1)",transition:"filter 0.18s ease"}})},j)}),x.map((T,j)=>{const b=st(g,y,m,T.sa),C=e==="cheese"?g:st(g,y,v,T.sa).x,w=e==="cheese"?y:st(g,y,v,T.sa).y;return c.jsx("line",{x1:C,y1:w,x2:b.x,y2:b.y,stroke:a,strokeWidth:i,strokeLinecap:"butt",style:{pointerEvents:"none"}},`gap-${j}`)}),x.map((T,j)=>{if(T.ea-T.sa<20)return null;const b=d===j,{tx:C,ty:w}=b?bs(g,y,T.sa,T.ea,10):{tx:0,ty:0},L=T.sa+(T.ea-T.sa)/2,R=st(g,y,f,L);return c.jsxs("text",{x:R.x+C,y:R.y+w,textAnchor:"middle",dominantBaseline:"middle",fill:u,fontSize:"14",fontWeight:"700",fontFamily:"'Segoe UI', sans-serif",pointerEvents:"none",style:{transition:"transform 0.18s ease"},children:[T.value,"%"]},`lbl-${j}`)})]}),c.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px 24px",justifyContent:"center"},children:t.map((T,j)=>c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",cursor:"pointer",opacity:d===null||d===j?1:.4,transition:"opacity 0.15s"},onMouseEnter:()=>h(j),onMouseLeave:()=>h(null),children:[c.jsx("span",{style:{width:"32px",height:"14px",borderRadius:"3px",background:T.color||_r,flexShrink:0}}),c.jsx("span",{style:{color:l,fontSize:"13px",fontWeight:"400"},children:T.title})]},j))})]})]})};eo.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,backgroundColor:s.string,fontColor:s.string,fontColorInside:s.string};eo.defaultProps={type:"cheese",data:[],size:260,donutThickness:56,gapWidth:3,backgroundColor:"transparent",fontColor:"black",fontColorInside:"white"};const vs=["#a8d8cf","#3bbfa0","#5dd4b8","#7ed4c2","#2aa88a"],qf=({data:e=[],title:t,backgroundColor:n="#0d3d4a",fontColor:r="#ffffff",barHeight:o=52,animated:i=!0,borderRadius:a})=>{const[l,u]=_.useState(i?0:1);_.useEffect(()=>{if(!i)return;const h=requestAnimationFrame(()=>u(1));return()=>cancelAnimationFrame(h)},[i]);const d=Math.max(...e.map(h=>h.value),1);return c.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"0px",padding:"28px 32px",background:n,borderRadius:"16px",fontFamily:"'Segoe UI', sans-serif",minWidth:"420px"},children:[t&&c.jsx("h2",{style:{margin:"0 0 20px 0",color:r,fontSize:"22px",fontWeight:"700",letterSpacing:"-0.4px"},children:t}),c.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"18px"},children:e.map((h,g)=>{const y=h.color||vs[g%vs.length],m=h.value/d*100*l;return c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[c.jsx("span",{style:{color:r,fontSize:"14px",fontWeight:"400",opacity:.9},children:h.label}),c.jsxs("div",{style:{position:"relative",height:`${o}px`,background:"transparent",borderRadius:a??"6px",overflow:"hidden"},children:[c.jsx("div",{style:{position:"absolute",left:0,top:0,height:"100%",width:`${m}%`,background:y,borderRadius:a??"6px",transition:i?"width 0.8s cubic-bezier(0.16, 1, 0.3, 1)":"none"}}),c.jsx("span",{style:{position:"absolute",left:"14px",top:"50%",transform:"translateY(-50%)",color:"#0d3d4a",fontSize:"18px",fontWeight:"700",pointerEvents:"none",letterSpacing:"-0.3px"},children:h.value})]})]},g)})})]})},Wf="_header_13kbt_2",Uf="_leftComponents_13kbt_13",Zf="_centerComponents_13kbt_14",Hf="_rightComponents_13kbt_15",Kf="_componentsContainer_13kbt_32",xt={header:Wf,leftComponents:Uf,centerComponents:Zf,rightComponents:Hf,componentsContainer:Kf},zi=({cssProps:e,leftComponents:t=[],centerComponents:n=[],rightComponents:r=[],zIndex:o=10,height:i=60,backgroundColor:a="#605B56",isFooter:l=!1})=>c.jsxs("div",{className:xt.header,style:{...e,zIndex:o,height:i,backgroundColor:a,top:l?"auto":0,bottom:l?0:"auto"},children:[c.jsx("div",{className:xt.leftComponents,children:t.map((u,d)=>c.jsx("div",{className:xt.componentsContainer,children:u},d))}),c.jsx("div",{className:xt.centerComponents,children:n.map((u,d)=>c.jsx("div",{className:xt.componentsContainer,children:u},d))}),c.jsx("div",{className:xt.rightComponents,children:r.map((u,d)=>c.jsx("div",{className:xt.componentsContainer,children:u},d))})]});zi.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 Gf="_sidebar_1kaqu_2",Yf="_open_1kaqu_16",Xf="_content_1kaqu_20",Qf="_closeButton_1kaqu_25",Nn={sidebar:Gf,open:Yf,content:Xf,closeButton:Qf},Jf="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",qi=({width:e="300px",children:t,showRightBar:n,onCloseBar:r})=>{const o=()=>{r()};return c.jsx("div",{className:`${Nn.sidebar} ${n?Nn.open:""}`,style:{width:n?e:0},children:n&&c.jsxs("div",{className:Nn.content,children:[c.jsx("button",{className:Nn.closeButton,onClick:o,children:c.jsx("img",{src:Jf,alt:"Close Sidebar"})}),t]})})};qi.propTypes={width:s.string,children:s.node,showRightBar:s.bool,onCloseBar:s.func};exports.AmbitSelector=js;exports.BarChart=Br;exports.BurgerMenu=Jr;exports.ButtonsBar=Ri;exports.ButtonsList=$s;exports.CategorySelector=Rr;exports.DropdownList=mt;exports.EditAmbit=Ya;exports.ErrorMessage=Ut;exports.FiltersAmbit=Rs;exports.Form=Md;exports.GeneralButton=an;exports.Graphic=Ds;exports.GraphicLegend=Vi;exports.Groupedbarchart=Pi;exports.HeaderSection=zi;exports.HorizontalBarChart=qf;exports.IndicatorsList=Bs;exports.LangSelector=Vs;exports.Legend=Fs;exports.ListSelector=Ti;exports.Loader=Ii;exports.LogInButton=wi;exports.LogoApp=zs;exports.MapboxMap=Ks;exports.MaplibreMap=Gs;exports.ModalAlert=Mi;exports.PieChart=eo;exports.RadioButtonInput=Li;exports.RankingSlider=Yr;exports.RightSidebar=qi;exports.SectionBar=Ys;exports.SelectInput=Ai;exports.SpeedGraphic=Fi;exports.Stackedbarchart=Bi;exports.StatusText=Qr;exports.Steps=Xr;exports.Switch=Di;exports.TextInput=Mr;exports.TimeSlider=xi;exports.Tooltip=Je;exports.TopNavMenu=_i;